From 99c12f65ea7ce7306c4391111575335404b27c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Andrei?= Date: Tue, 7 Jul 2026 16:26:24 -0300 Subject: [PATCH 1/3] Upgrade kitconcept.core to 2.0.0b4 and plone.formblock to 1.0.0a3 --- backend/news/73.internal | 1 + backend/pyproject.toml | 6 +- backend/uv.lock | 18 +- backend/version.txt | 2 +- frontend/mrs.developer.json | 4 +- .../kitconcept-website/news/73.internal | 1 + frontend/pnpm-lock.yaml | 199 ++++++++++++++++++ 7 files changed, 216 insertions(+), 15 deletions(-) create mode 100644 backend/news/73.internal create mode 100644 frontend/packages/kitconcept-website/news/73.internal diff --git a/backend/news/73.internal b/backend/news/73.internal new file mode 100644 index 0000000..0737a02 --- /dev/null +++ b/backend/news/73.internal @@ -0,0 +1 @@ +Upgrade kitconcept.core to version 2.0.0b4 and plone.formblock to 1.0.0a3 @ericof diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 47038b8..246ace9 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -24,7 +24,7 @@ classifiers = [ "Programming Language :: Python :: 3.14", ] dependencies = [ - "kitconcept.core==2.0.0b3", + "kitconcept.core==2.0.0b4", "plone.api", "plone.distribution", "plone.restapi", @@ -348,7 +348,7 @@ constraint-dependencies = [ "jsonschema-specifications==2025.9.1", "jsonschema==4.26.0", "keyring==25.7.0", - "kitconcept.core==2.0.0b3", + "kitconcept.core==2.0.0b4", "kitconcept.voltolighttheme>=8.0.0a30", "legacy-cgi==2.6.4", "lockfile==0.12.2", @@ -439,7 +439,7 @@ constraint-dependencies = [ "plone.event==3.0.0", "plone.exportimport==2.0.1", "plone.folder==5.0.0", - "plone.formblock>=1.0.0a2", + "plone.formblock>=1.0.0a3", "plone.formwidget.autocomplete==2.0.0", "plone.formwidget.namedfile==4.0.0", "plone.formwidget.recurrence==4.0.0", diff --git a/backend/uv.lock b/backend/uv.lock index 1499c50..3d9c240 100644 --- a/backend/uv.lock +++ b/backend/uv.lock @@ -94,7 +94,7 @@ constraints = [ { name = "jsonschema", specifier = "==4.26.0" }, { name = "jsonschema-specifications", specifier = "==2025.9.1" }, { name = "keyring", specifier = "==25.7.0" }, - { name = "kitconcept-core", specifier = "==2.0.0b3" }, + { name = "kitconcept-core", specifier = "==2.0.0b4" }, { name = "kitconcept-voltolighttheme", specifier = ">=8.0.0a30" }, { name = "legacy-cgi", specifier = "==2.6.4" }, { name = "lockfile", specifier = "==0.12.2" }, @@ -194,7 +194,7 @@ constraints = [ { name = "plone-event", specifier = "==3.0.0" }, { name = "plone-exportimport", specifier = "==2.0.1" }, { name = "plone-folder", specifier = "==5.0.0" }, - { name = "plone-formblock", specifier = ">=1.0.0a2" }, + { name = "plone-formblock", specifier = ">=1.0.0a3" }, { name = "plone-formwidget-autocomplete", specifier = "==2.0.0" }, { name = "plone-formwidget-namedfile", specifier = "==4.0.0" }, { name = "plone-formwidget-recurrence", specifier = "==4.0.0" }, @@ -1418,7 +1418,7 @@ wheels = [ [[package]] name = "kitconcept-core" -version = "2.0.0b3" +version = "2.0.0b4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "collective-honeypot" }, @@ -1434,9 +1434,9 @@ dependencies = [ { name = "plone-volto" }, { name = "products-cmfplone" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/95/58/e364ac1492ffadb8ae8d4d4426838ad1a4aeade7c861f675aec7e78dbb68/kitconcept_core-2.0.0b3.tar.gz", hash = "sha256:765a9aeae7373192e4945c4177e52b3892aa73107beefc278e297ce6e33180ad", size = 373385, upload-time = "2026-07-06T13:23:14.703Z" } +sdist = { url = "https://files.pythonhosted.org/packages/83/be/79bcb271ed2f7ee5376e083fe866039ffdb2b7543cef05f97da6874afd19/kitconcept_core-2.0.0b4.tar.gz", hash = "sha256:1f224106e10f1be3e7d192bed8116de5b12ba96dd79b1a19111a9852b1b79a85", size = 374270, upload-time = "2026-07-07T19:07:05.762Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/13/b1/52b63c94dee5ba26b1bac1a8d2416e7dd1fdcd9000e525e8a0315a9ff321/kitconcept_core-2.0.0b3-py3-none-any.whl", hash = "sha256:5b81d1afce76c29699d86610297f59c4f24c8ae4555f4ba406e0a579e8246eb0", size = 260194, upload-time = "2026-07-06T13:23:12.826Z" }, + { url = "https://files.pythonhosted.org/packages/fb/df/018ee871bc052ec5b619f268a3433db07b60060929c4375ed76569c1cfe8/kitconcept_core-2.0.0b4-py3-none-any.whl", hash = "sha256:7ff109cb00b47ec54bc7fa0514c1a7ede5b3bf93b35288c06d5c8746bbf97718", size = 260942, upload-time = "2026-07-07T19:07:04.368Z" }, ] [[package]] @@ -1495,7 +1495,7 @@ test = [ [package.metadata] requires-dist = [ { name = "kitconcept-contactblock", specifier = "==1.0.0a5" }, - { name = "kitconcept-core", specifier = "==2.0.0b3" }, + { name = "kitconcept-core", specifier = "==2.0.0b4" }, { name = "plone-api" }, { name = "plone-distribution" }, { name = "plone-restapi" }, @@ -3362,7 +3362,7 @@ wheels = [ [[package]] name = "plone-formblock" -version = "1.0.0a2" +version = "1.0.0a3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "beautifulsoup4" }, @@ -3374,9 +3374,9 @@ dependencies = [ { name = "pyotp" }, { name = "souper-plone" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/0c/2c/f184add43539b0b53ceb7857a70cd532af520b9eef28b8fa60b9da3d4e47/plone_formblock-1.0.0a2.tar.gz", hash = "sha256:059ff2452349d79a0e007c80527758d02d771baf9d22f8ab75c7bbff534a2612", size = 133651, upload-time = "2026-06-18T15:23:09.514Z" } +sdist = { url = "https://files.pythonhosted.org/packages/df/fc/890be2b7e96232a507345cf9caaefaf6495abb24411383ab469aa923bc94/plone_formblock-1.0.0a3.tar.gz", hash = "sha256:00efa055eb83bb424570e5c19c393941df548bb3f5894f2a5ead6783419f454f", size = 138494, upload-time = "2026-07-07T17:48:30.263Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/66/86/c310b2d0202affd415eceee62308fa3b4b3774df5a34b4b641d27d946d47/plone_formblock-1.0.0a2-py3-none-any.whl", hash = "sha256:c91288c9e1821bb556638bfb29630c2cdeb93aba309d0c3c2f59f6e2c6670c66", size = 89528, upload-time = "2026-06-18T15:23:07.894Z" }, + { url = "https://files.pythonhosted.org/packages/73/32/c8b1d61849c77402b8ad427f292dd4a93e701c387d1f9c64ea3ef7b2704c/plone_formblock-1.0.0a3-py3-none-any.whl", hash = "sha256:74dbba615b221b80ea51dbfd3ba69706fea062a3b49e019fac4a6c68918f6ce9", size = 92976, upload-time = "2026-07-07T17:48:28.585Z" }, ] [[package]] diff --git a/backend/version.txt b/backend/version.txt index 60d3599..9478947 100644 --- a/backend/version.txt +++ b/backend/version.txt @@ -1 +1 @@ -2.0.0b3 +2.0.0b4 diff --git a/frontend/mrs.developer.json b/frontend/mrs.developer.json index 326883b..bc13bd8 100644 --- a/frontend/mrs.developer.json +++ b/frontend/mrs.developer.json @@ -22,7 +22,7 @@ "package": "@kitconcept/core", "url": "git@github.com:kitconcept/kitconcept-core.git", "https": "https://github.com/kitconcept/kitconcept-core.git", - "tag": "2.0.0b3" + "tag": "2.0.0b4" }, "volto-banner-block": { "develop": true, @@ -153,4 +153,4 @@ "https": "https://github.com/kitconcept/volto-contact-block.git", "tag": "1.0.0a5" } -} +} \ No newline at end of file diff --git a/frontend/packages/kitconcept-website/news/73.internal b/frontend/packages/kitconcept-website/news/73.internal new file mode 100644 index 0000000..3478100 --- /dev/null +++ b/frontend/packages/kitconcept-website/news/73.internal @@ -0,0 +1 @@ +Upgrade to @kitconcept/core 2.0.0-beta.4 @ericof diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index b1cf3bc..04f0fed 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -1769,6 +1769,34 @@ importers: specifier: ^3.1.2 version: 3.2.4(@types/debug@4.1.12)(@types/node@24.10.0)(@vitest/ui@3.2.4)(jiti@2.6.1)(jsdom@28.1.0)(less@3.13.1)(lightningcss@1.30.2)(sass@1.93.3)(terser@5.44.0)(yaml@2.8.1) + packages/volto-form-block/frontend/packages/volto-form-block: + dependencies: + '@hcaptcha/react-hcaptcha': + specifier: ^0.3.6 + version: 0.3.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + file-saver: + specifier: ^2.0.5 + version: 2.0.5 + react: + specifier: 18.2.0 + version: 18.2.0 + react-dom: + specifier: 18.2.0 + version: 18.2.0(react@18.2.0) + react-google-recaptcha-v3: + specifier: ^1.8.0 + version: 1.11.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + volto-subblocks: + specifier: ^2.1.0 + version: 2.1.0(@plone/volto@core+packages+volto)(react@18.2.0) + devDependencies: + '@plone/scripts': + specifier: ^3.6.1 + version: 3.10.3 + release-it: + specifier: ^17.1.1 + version: 17.1.1(typescript@5.9.3) + packages/volto-heading-block/packages/volto-heading-block: dependencies: react: @@ -6419,6 +6447,10 @@ packages: resolution: {integrity: sha512-mK8yQmJJy369cz0x2LJwhKD72tkTObBwhgR+3U8Ts8+wCSspED3ydXlWpsv1ZQ9g2iq4b+7EWli+ap2nTeUQog==} engines: {node: '>=16.0.0'} + autobind-decorator@2.4.0: + resolution: {integrity: sha512-OGYhWUO72V6DafbF8PM8rm3EPbfuyMZcJhtm5/n26IDwO18pohE4eNazLoCGhPiXOCD0gEGmrbU3849QvM8bbw==} + engines: {node: '>=8.10', npm: '>=6.4.1'} + autoprefixer@10.4.8: resolution: {integrity: sha512-75Jr6Q/XpTqEf6D2ltS5uMewJIx5irCU1oBYJrWjFenq/m12WRRrz6g15L1EIoYvPLXTbEry7rDOwrcYNj77xw==} engines: {node: ^10 || ^12 || >=14} @@ -6748,6 +6780,9 @@ packages: resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + change-emitter@0.1.6: + resolution: {integrity: sha512-YXzt1cQ4a2jqazhcuSWEOc1K2q8g9H6eWNsyZgi640LDzRWVQ2eDe+Y/kVdftH+vYdPF2rgDb3dLdpxE1jvAxw==} + char-regex@1.0.2: resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} engines: {node: '>=10'} @@ -7058,6 +7093,10 @@ packages: core-js-pure@3.46.0: resolution: {integrity: sha512-NMCW30bHNofuhwLhYPt66OLOKTMbOhgTTatKVbaQC3KRHpTCiRIBYvtshr+NBYSnBxwAFhjW/RfJ0XbIjS16rw==} + core-js@1.2.7: + resolution: {integrity: sha512-ZiPp9pZlgxpWRu0M+YWbm6+aQ84XEfH1JRXvfOc/fILWI0VKhLC2LX13X1NYq4fULzLMq7Hfh43CSo2/aIaUPA==} + deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. + core-js@2.6.12: resolution: {integrity: sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==} deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. @@ -7502,6 +7541,9 @@ packages: resolution: {integrity: sha512-GYqKi1aH7PJXxdhTeZBFrg8vUBeKXi+cNprXsC1kpJcbcVnV9wBsrOu1cQEdG0WeQwlfHiy3XvnKfIrJ2R0NzQ==} hasBin: true + dnd-core@4.0.5: + resolution: {integrity: sha512-GSyGmfGom9oyTFJ4Ll/95Dn3ZDvPkrgINwfeOd+gTI0RGIN1TcTGChrHnIHF3A3e1PymyEKZg+3ouN3w2uIJGQ==} + dns-packet@5.6.1: resolution: {integrity: sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==} engines: {node: '>=6'} @@ -7636,6 +7678,9 @@ packages: resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} engines: {node: '>= 0.8'} + encoding@0.1.13: + resolution: {integrity: sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==} + end-of-stream@1.4.5: resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} @@ -8088,6 +8133,9 @@ packages: resolution: {integrity: sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==} engines: {node: '>=0.8.0'} + fbjs@0.8.18: + resolution: {integrity: sha512-EQaWFK+fEPSoibjNy8IxUtaFOMXcWsY0JaVrQoZR9zC8N2Ygf9iDITPWjUTVIax95b6I742JFLqASHfsag/vKA==} + fdir@6.5.0: resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} engines: {node: '>=12.0.0'} @@ -8524,6 +8572,9 @@ packages: history@4.10.1: resolution: {integrity: sha512-36nwAD620w12kuzPAsyINPWJqlNbij+hpK1k9XRloDtym8mxzGYl2c17LnV6IAGB2Dmg4tEa7G7DlawS0+qjew==} + hoist-non-react-statics@2.5.5: + resolution: {integrity: sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==} + hoist-non-react-statics@3.3.2: resolution: {integrity: sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==} @@ -8649,6 +8700,10 @@ packages: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} + iconv-lite@0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + iconv-lite@0.7.2: resolution: {integrity: sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==} engines: {node: '>=0.10.0'} @@ -8766,6 +8821,9 @@ packages: intl-messageformat@7.8.4: resolution: {integrity: sha512-yS0cLESCKCYjseCOGXuV4pxJm/buTfyCJ1nzQjryHmSehlptbZbn9fnlk1I9peLopZGGbjj46yHHiTAEZ1qOTA==} + invariant@2.2.4: + resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==} + ip-address@10.0.1: resolution: {integrity: sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==} engines: {node: '>= 12'} @@ -8957,6 +9015,10 @@ packages: is-ssh@1.4.1: resolution: {integrity: sha512-JNeu1wQsHjyHgn9NcWTaXq6zWSR6hqE0++zhfZlkFBbScNkyvxCdeV8sRkSBaeLKxmbpR21brail63ACNxJ0Tg==} + is-stream@1.1.0: + resolution: {integrity: sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==} + engines: {node: '>=0.10.0'} + is-stream@2.0.1: resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==} engines: {node: '>=8'} @@ -9037,6 +9099,9 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + isomorphic-fetch@2.2.1: + resolution: {integrity: sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA==} + isstream@0.1.2: resolution: {integrity: sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==} @@ -9911,6 +9976,9 @@ packages: node-fetch-native@1.6.7: resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==} + node-fetch@1.7.3: + resolution: {integrity: sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==} + node-fetch@3.3.2: resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -10670,6 +10738,9 @@ packages: resolution: {integrity: sha512-hezvKvQQmsFkOdrZfYxUxkyxl8mgFQeT259Ajj9PXdbg9VzBCWrItOev72JyWxkCD5VSSqAeHmlN3tWx4DlmsA==} engines: {node: '>= 0.4'} + promise@7.3.1: + resolution: {integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==} + prompts@2.4.2: resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} engines: {node: '>= 6'} @@ -10915,6 +10986,14 @@ packages: typescript: optional: true + react-dnd-html5-backend@5.0.1: + resolution: {integrity: sha512-TLEjqDMUHRJAgRvdX2L0ssnF6bL30cVkxwO6+OkxWCoPJoiyS6Y6pl4LRidOjJ7CpeMTKeawFdIlbuezHL4oeQ==} + + react-dnd@5.0.0: + resolution: {integrity: sha512-y7qOPo4N7050p5WNli5XNfE5Ij3tl8Gw+Q6jhS0tABO3sCFZzCNKUCMUk7qTQd3t/MMDn2+Ck6xJgsGv+9Qi1A==} + peerDependencies: + react: '>= 16.3' + react-docgen-typescript@2.4.0: resolution: {integrity: sha512-ZtAp5XTO5HRzQctjPU0ybY0RRCQO19X/8fxn3w7y2VVTUbGHDKULPTL4ky3vB05euSgG5NpALhEhDPvQ56wvXg==} peerDependencies: @@ -11210,6 +11289,11 @@ packages: resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} engines: {node: '>= 0.10'} + recompose@0.27.1: + resolution: {integrity: sha512-p7xsyi/rfNjHfdP7vPU02uSFa+Q1eHhjKrvO+3+kRP4Ortj+MxEmpmd+UQtBGM2D2iNAjzNI5rCyBKp9Ob5McA==} + peerDependencies: + react: ^0.14.0 || ^15.0.0 || ^16.0.0 + recursive-readdir@2.2.3: resolution: {integrity: sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==} engines: {node: '>=6.0.0'} @@ -11582,6 +11666,9 @@ packages: resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==} engines: {node: '>= 0.4'} + setimmediate@1.0.5: + resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} + setprototypeof@1.1.0: resolution: {integrity: sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==} @@ -12028,6 +12115,10 @@ packages: engines: {node: '>=16'} hasBin: true + symbol-observable@1.2.0: + resolution: {integrity: sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==} + engines: {node: '>=0.10.0'} + symbol-tree@3.2.4: resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} @@ -12406,6 +12497,10 @@ packages: engines: {node: '>=14.17'} hasBin: true + ua-parser-js@0.7.41: + resolution: {integrity: sha512-O3oYyCMPYgNNHuO7Jjk3uacJWZF8loBgwrfd/5LE/HyZ3lUIOdniQ7DNXJcIgZbwioZxk0fLfI4EVnetdiX5jg==} + hasBin: true + uc.micro@1.0.6: resolution: {integrity: sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==} @@ -12725,6 +12820,11 @@ packages: jsdom: optional: true + volto-subblocks@2.1.0: + resolution: {integrity: sha512-AlhMb+PacQRGCIY/xc7p1zr3RhN64An/+ckVQ2YOytIVOtoChMUwxxSIj5Fkz7uScgIlzL/n976QqJlIf4k0rg==} + peerDependencies: + '@plone/volto': '>=16.0.0-alpha.38' + w3c-xmlserializer@5.0.0: resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} engines: {node: '>=18'} @@ -12879,6 +12979,9 @@ packages: resolution: {integrity: sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==} engines: {node: '>=0.8.0'} + whatwg-fetch@3.6.20: + resolution: {integrity: sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==} + whatwg-mimetype@5.0.0: resolution: {integrity: sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==} engines: {node: '>=20'} @@ -18416,6 +18519,8 @@ snapshots: toml-eslint-parser: 0.10.0 yaml-eslint-parser: 1.3.0 + autobind-decorator@2.4.0: {} + autoprefixer@10.4.8(postcss@8.5.12): dependencies: browserslist: 4.28.2 @@ -18862,6 +18967,8 @@ snapshots: chalk@5.6.2: {} + change-emitter@0.1.6: {} + char-regex@1.0.2: {} chardet@0.7.0: {} @@ -19132,6 +19239,8 @@ snapshots: core-js-pure@3.46.0: {} + core-js@1.2.7: {} + core-js@2.6.12: {} core-util-is@1.0.2: {} @@ -19588,6 +19697,13 @@ snapshots: direction@1.0.4: {} + dnd-core@4.0.5: + dependencies: + asap: 2.0.6 + invariant: 2.2.4 + lodash: 4.17.21 + redux: 4.2.1 + dns-packet@5.6.1: dependencies: '@leichtgewicht/ip-codec': 2.0.5 @@ -19721,6 +19837,10 @@ snapshots: encodeurl@2.0.0: {} + encoding@0.1.13: + dependencies: + iconv-lite: 0.6.3 + end-of-stream@1.4.5: dependencies: once: 1.4.0 @@ -20440,6 +20560,16 @@ snapshots: dependencies: websocket-driver: 0.7.4 + fbjs@0.8.18: + dependencies: + core-js: 1.2.7 + isomorphic-fetch: 2.2.1 + loose-envify: 1.4.0 + object-assign: 4.1.1 + promise: 7.3.1 + setimmediate: 1.0.5 + ua-parser-js: 0.7.41 + fdir@6.5.0(picomatch@4.0.3): optionalDependencies: picomatch: 4.0.3 @@ -20971,6 +21101,8 @@ snapshots: tiny-warning: 1.0.3 value-equal: 1.0.1 + hoist-non-react-statics@2.5.5: {} + hoist-non-react-statics@3.3.2: dependencies: react-is: 16.13.1 @@ -21145,6 +21277,10 @@ snapshots: dependencies: safer-buffer: 2.1.2 + iconv-lite@0.6.3: + dependencies: + safer-buffer: 2.1.2 + iconv-lite@0.7.2: dependencies: safer-buffer: 2.1.2 @@ -21270,6 +21406,10 @@ snapshots: intl-format-cache: 4.3.1 intl-messageformat-parser: 3.6.4 + invariant@2.2.4: + dependencies: + loose-envify: 1.4.0 + ip-address@10.0.1: {} ipaddr.js@1.9.1: {} @@ -21428,6 +21568,8 @@ snapshots: dependencies: protocols: 2.0.2 + is-stream@1.1.0: {} + is-stream@2.0.1: {} is-stream@3.0.0: {} @@ -21490,6 +21632,11 @@ snapshots: isexe@2.0.0: {} + isomorphic-fetch@2.2.1: + dependencies: + node-fetch: 1.7.3 + whatwg-fetch: 3.6.20 + isstream@0.1.2: {} issue-parser@6.0.0: @@ -22338,6 +22485,11 @@ snapshots: node-fetch-native@1.6.7: {} + node-fetch@1.7.3: + dependencies: + encoding: 0.1.13 + is-stream: 1.1.0 + node-fetch@3.3.2: dependencies: data-uri-to-buffer: 4.0.1 @@ -23112,6 +23264,10 @@ snapshots: get-intrinsic: 1.3.0 iterate-value: 1.0.2 + promise@7.3.1: + dependencies: + asap: 2.0.6 + prompts@2.4.2: dependencies: kleur: 3.0.3 @@ -23588,6 +23744,23 @@ snapshots: - supports-color - vue-template-compiler + react-dnd-html5-backend@5.0.1: + dependencies: + autobind-decorator: 2.4.0 + dnd-core: 4.0.5 + lodash: 4.17.21 + shallowequal: 1.1.0 + + react-dnd@5.0.0(react@18.2.0): + dependencies: + dnd-core: 4.0.5 + hoist-non-react-statics: 2.5.5 + invariant: 2.2.4 + lodash: 4.17.21 + react: 18.2.0 + recompose: 0.27.1(react@18.2.0) + shallowequal: 1.1.0 + react-docgen-typescript@2.4.0(typescript@5.9.3): dependencies: typescript: 5.9.3 @@ -23988,6 +24161,16 @@ snapshots: dependencies: resolve: 1.22.11 + recompose@0.27.1(react@18.2.0): + dependencies: + babel-runtime: 6.26.0 + change-emitter: 0.1.6 + fbjs: 0.8.18 + hoist-non-react-statics: 2.5.5 + react: 18.2.0 + react-lifecycles-compat: 3.0.4 + symbol-observable: 1.2.0 + recursive-readdir@2.2.3: dependencies: minimatch: 3.1.2 @@ -24543,6 +24726,8 @@ snapshots: es-errors: 1.3.0 es-object-atoms: 1.1.1 + setimmediate@1.0.5: {} + setprototypeof@1.1.0: {} setprototypeof@1.2.0: {} @@ -25122,6 +25307,8 @@ snapshots: picocolors: 1.1.1 sax: 1.5.0 + symbol-observable@1.2.0: {} + symbol-tree@3.2.4: {} synckit@0.11.11: @@ -25459,6 +25646,8 @@ snapshots: typescript@5.9.3: {} + ua-parser-js@0.7.41: {} + uc.micro@1.0.6: {} ufo@1.6.1: {} @@ -25950,6 +26139,14 @@ snapshots: - tsx - yaml + volto-subblocks@2.1.0(@plone/volto@core+packages+volto)(react@18.2.0): + dependencies: + '@plone/volto': link:core/packages/volto + react-dnd: 5.0.0(react@18.2.0) + react-dnd-html5-backend: 5.0.1 + transitivePeerDependencies: + - react + w3c-xmlserializer@5.0.0: dependencies: xml-name-validator: 5.0.0 @@ -26301,6 +26498,8 @@ snapshots: websocket-extensions@0.1.4: {} + whatwg-fetch@3.6.20: {} + whatwg-mimetype@5.0.0: {} whatwg-url@16.0.1: From 198e1d9c05591b33d6d7ae0b9060eff7baf236f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Andrei?= Date: Tue, 7 Jul 2026 16:28:42 -0300 Subject: [PATCH 2/3] Upgrade @plone/volto-form-block to version 1.0.0-alpha.3 --- frontend/mrs.developer.json | 2 +- .../kitconcept-website/news/73.feature | 1 + .../packages/kitconcept-website/package.json | 2 +- frontend/pnpm-lock.yaml | 50 +++++++++++++++++-- 4 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 frontend/packages/kitconcept-website/news/73.feature diff --git a/frontend/mrs.developer.json b/frontend/mrs.developer.json index bc13bd8..8a2dfe2 100644 --- a/frontend/mrs.developer.json +++ b/frontend/mrs.developer.json @@ -134,7 +134,7 @@ "package": "@plone/volto-form-block", "url": "git@github.com:plone/form-block.git", "https": "https://github.com/plone/form-block.git", - "tag": "1.0.0-alpha.0" + "tag": "1.0.0-alpha.3" }, "volto-solr": { "develop": false, diff --git a/frontend/packages/kitconcept-website/news/73.feature b/frontend/packages/kitconcept-website/news/73.feature new file mode 100644 index 0000000..d332cec --- /dev/null +++ b/frontend/packages/kitconcept-website/news/73.feature @@ -0,0 +1 @@ +Upgrade @plone/volto-form-block to version 1.0.0-alpha.3 @ericof diff --git a/frontend/packages/kitconcept-website/package.json b/frontend/packages/kitconcept-website/package.json index 45cabb1..6a7477a 100644 --- a/frontend/packages/kitconcept-website/package.json +++ b/frontend/packages/kitconcept-website/package.json @@ -81,7 +81,7 @@ "@kitconcept/volto-separator-block": "workspace:*", "@kitconcept/volto-slider-block": "workspace:*", "@plonegovbr/volto-social-media": "^3.0.0-alpha.0", - "@plone/volto-form-block": "^1.0.0-alpha.0", + "@plone/volto-form-block": "^1.0.0-alpha.3", "@plone-collective/volto-image-editor": "1.0.1" }, "volto_version": "19.1.5" diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 04f0fed..9429e0b 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -1461,8 +1461,8 @@ importers: specifier: 1.0.1 version: 1.0.1(@plone/registry@core+packages+registry)(@plone/types@core+packages+types)(advanced-cropper@0.17.1)(classnames@2.5.1)(react-aria-components@1.17.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@plone/volto-form-block': - specifier: ^1.0.0-alpha.0 - version: 1.0.0-alpha.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + specifier: ^1.0.0-alpha.3 + version: 1.0.0-alpha.3(@internationalized/date@3.12.1)(@loadable/component@5.16.7(react@18.2.0))(classnames@2.5.1)(promise-file-reader@1.0.2)(query-string@9.3.1)(react-dom@18.2.0(react@18.2.0))(react-intl@3.12.1(@types/react@18.3.26)(react@18.2.0))(react-redux@8.1.2(@types/react-dom@18.3.7(@types/react@18.3.26))(@types/react@18.3.26)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(redux@4.2.1))(react-router-dom@5.2.0(react@18.2.0))(react-toastify@5.5.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0)(semantic-ui-react@2.1.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0)) '@plonegovbr/volto-social-media': specifier: ^3.0.0-alpha.0 version: 3.0.0-alpha.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -4274,11 +4274,21 @@ packages: resolution: {integrity: sha512-ehklcOoczX1Ji06qA5Y6MZgz87YgR2GeW5zSaY4CzSG3YG7fF6pTnFa7MVVHAOcY8isSN2s97T6jB6PD75pQng==} hasBin: true - '@plone/volto-form-block@1.0.0-alpha.0': - resolution: {integrity: sha512-kIH2oxfbYpTwf3aErCjYh+a2lMnVrXPdQk8tzr7+L3YeHEDZd/7vycLL+GdY/2ikF3whUDt7LjxgltXHGFlj/g==} + '@plone/volto-form-block@1.0.0-alpha.3': + resolution: {integrity: sha512-/KWBoKWTceg1CFpqa3Rc8C+a9TNlnjdJWgCQm5jcOQkJQCqziuOmdbfv+slQsqp9hkkhDXo3e86LM07cUqstLw==} peerDependencies: + '@internationalized/date': ^3.12.1 + '@loadable/component': 5.16.7 + classnames: 2.5.1 + promise-file-reader: 1.0.2 + query-string: ^9.4.0 react: ^18.2.0 react-dom: ^18.2.0 + react-intl: 3.12.1 + react-redux: 8.1.2 + react-router-dom: 5.2.0 + react-toastify: 5.5.0 + semantic-ui-react: 2.1.5 '@plonegovbr/volto-social-media@3.0.0-alpha.0': resolution: {integrity: sha512-n8QTrerWjYcUAwG5yT2YOZuEplWTceoGpvEvqP4fw0PjxVvjnAjvA3YSor+vzDRQl0Ag+7fElLLFA6QIyPlvLw==} @@ -5511,6 +5521,17 @@ packages: peerDependencies: vite: ^5.2.0 || ^6 || ^7 + '@tanstack/react-table@8.21.2': + resolution: {integrity: sha512-11tNlEDTdIhMJba2RBH+ecJ9l1zgS2kjmexDPAraulc8jeNA4xocSNeyzextT0XJyASil4XsCYlJmf5jEWAtYg==} + engines: {node: '>=12'} + peerDependencies: + react: '>=16.8' + react-dom: '>=16.8' + + '@tanstack/table-core@8.21.2': + resolution: {integrity: sha512-uvXk/U4cBiFMxt+p9/G7yUWI/UbHYbyghLCjlpWZ3mLeIZiUBSKcUnw9UnKkdRz7Z/N4UBuFLWQdJCjUe7HjvA==} + engines: {node: '>=12'} + '@testing-library/cypress@10.0.3': resolution: {integrity: sha512-TeZJMCNtiS59cPWalra7LgADuufO5FtbqQBYxuAgdX6ZFAR2D9CtQwAG8VbgvFcchW3K414va/+7P4OkQ80UVg==} engines: {node: '>=12', npm: '>=6'} @@ -15691,13 +15712,24 @@ snapshots: - debug - supports-color - '@plone/volto-form-block@1.0.0-alpha.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + '@plone/volto-form-block@1.0.0-alpha.3(@internationalized/date@3.12.1)(@loadable/component@5.16.7(react@18.2.0))(classnames@2.5.1)(promise-file-reader@1.0.2)(query-string@9.3.1)(react-dom@18.2.0(react@18.2.0))(react-intl@3.12.1(@types/react@18.3.26)(react@18.2.0))(react-redux@8.1.2(@types/react-dom@18.3.7(@types/react@18.3.26))(@types/react@18.3.26)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(redux@4.2.1))(react-router-dom@5.2.0(react@18.2.0))(react-toastify@5.5.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0)(semantic-ui-react@2.1.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0))': dependencies: '@hcaptcha/react-hcaptcha': 0.3.10(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + '@internationalized/date': 3.12.1 + '@loadable/component': 5.16.7(react@18.2.0) + '@tanstack/react-table': 8.21.2(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + classnames: 2.5.1 file-saver: 2.0.5 + promise-file-reader: 1.0.2 + query-string: 9.3.1 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) react-google-recaptcha-v3: 1.11.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + react-intl: 3.12.1(@types/react@18.3.26)(react@18.2.0) + react-redux: 8.1.2(@types/react-dom@18.3.7(@types/react@18.3.26))(@types/react@18.3.26)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)(redux@4.2.1) + react-router-dom: 5.2.0(react@18.2.0) + react-toastify: 5.5.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + semantic-ui-react: 2.1.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@plonegovbr/volto-social-media@3.0.0-alpha.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: @@ -17405,6 +17437,14 @@ snapshots: tailwindcss: 4.1.16 vite: 6.4.2(@types/node@24.10.0)(jiti@2.6.1)(less@3.13.1)(lightningcss@1.30.2)(sass@1.93.3)(terser@5.44.0)(yaml@2.8.1) + '@tanstack/react-table@8.21.2(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': + dependencies: + '@tanstack/table-core': 8.21.2 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + + '@tanstack/table-core@8.21.2': {} + '@testing-library/cypress@10.0.3(cypress@15.16.0)': dependencies: '@babel/runtime': 7.28.4 From 9e159a3883d16672e5f90f4862199c32aaa4da1f Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Thu, 9 Jul 2026 09:56:37 +0200 Subject: [PATCH 3/3] Remove flakey test --- .../tests/core/blocks/blocks-teaser.cy.js | 201 ------------------ 1 file changed, 201 deletions(-) delete mode 100644 frontend/cypress/tests/core/blocks/blocks-teaser.cy.js diff --git a/frontend/cypress/tests/core/blocks/blocks-teaser.cy.js b/frontend/cypress/tests/core/blocks/blocks-teaser.cy.js deleted file mode 100644 index 225e084..0000000 --- a/frontend/cypress/tests/core/blocks/blocks-teaser.cy.js +++ /dev/null @@ -1,201 +0,0 @@ -context('Blocks Acceptance Tests', () => { - beforeEach(() => { - cy.intercept('GET', `/**/*?expand*`).as('content'); - cy.intercept('GET', '/**/Document').as('schema'); - cy.viewport('macbook-16'); - cy.createContent({ - contentType: 'Document', - contentId: 'document', - contentTitle: 'Document', - }); - cy.fixture('halfdome2022.jpg', 'base64').then((fileContent) => { - cy.createContent({ - contentType: 'Image', - contentId: 'my-image', - contentTitle: 'My Image', - bodyModifier(body) { - body.image = { - data: fileContent, - encoding: 'base64', - filename: 'image.png', - 'content-type': 'image/png', - }; - return body; - }, - }); - }); - cy.autologin(); - cy.visit('/'); - cy.wait('@content'); - }); - - it('As editor I can add a (standalone) Teaser block', () => { - // GIVEN a Document with the title document and a Document to reference with the title Blue Orchids - cy.createContent({ - contentType: 'Document', - contentId: 'blue-orchids', - contentTitle: 'Blue Orchids', - contentDescription: 'are growing on the mountain tops', - preview_image_link: { - '@id': '/my-image', - }, - path: '/document', - }); - cy.navigate('/document/edit'); - cy.wait('@schema'); - - // WHEN I create a Teaser block - cy.addNewBlock('teaser'); - cy.get( - '.objectbrowser-field[aria-labelledby="fieldset-default-field-label-href"] button[aria-label="Open object browser"]', - ).click(); - cy.get('[aria-label="Select Blue Orchids"]').dblclick(); - cy.wait(500); - cy.get( - '[class*="field-wrapper-align-"] .buttons input[aria-label="Center"]', - ).click({ force: true }); - cy.get('#toolbar-save').click(); - - // THEN I can see the Teaser block - cy.visit('/document'); - cy.get('.block.teaser').should('have.class', 'has--align--center'); - cy.get('.block.teaser .image-wrapper img') - .should(($img) => { - expect($img[0].naturalWidth).to.be.greaterThan(0); - expect($img[0].naturalHeight).to.be.greaterThan(0); - }) - .should('have.attr', 'src'); - cy.get('.block.teaser .card-summary .title').contains('Blue Orchids'); - cy.get('.block.teaser .card-summary p').contains( - 'are growing on the mountain tops', - ); - }); - - it('As editor I can add a (standalone) Teaser block that always fetches the live data', () => { - // GIVEN a Document with the title document and a Document to reference with the title Blue Orchids - cy.createContent({ - contentType: 'Document', - contentId: 'blue-orchids', - contentTitle: 'Blue Orchids', - contentDescription: 'are growing on the mountain tops', - preview_image_link: { - '@id': '/my-image', - }, - path: '/document', - }); - - cy.navigate('/document/edit'); - cy.wait('@schema'); - // WHEN I create a Teaser block and change the data of the referenced object - cy.addNewBlock('teaser'); - cy.get( - '.objectbrowser-field[aria-labelledby="fieldset-default-field-label-href"] button[aria-label="Open object browser"]', - ).click(); - cy.get('[aria-label="Select Blue Orchids"]').dblclick(); - cy.get('#toolbar-save').click(); - cy.wait('@content'); - - cy.navigate('/document'); - cy.wait('@content'); - cy.get('.block.teaser .card-summary .title').contains('Blue Orchids'); - cy.get('.block.teaser .card-summary p').contains( - 'are growing on the mountain tops', - ); - cy.navigate('/document/blue-orchids/edit'); - cy.wait('@schema'); - cy.getSlateTitle().type(' and Tulips'); - cy.get('#field-description') - .clear() - .type('are beautifully growing on the mountain tops'); - cy.get('#toolbar-save').click(); - - cy.get('.documentFirstHeading').contains('Blue Orchids and Tulips'); - // THEN I can see the updated content in the teaser - cy.navigate('/document'); - cy.wait('@content'); - cy.get('.block.teaser .card-summary .title').contains( - 'Blue Orchids and Tulips', - ); - cy.get('.block.teaser .card-summary p').contains( - 'are beautifully growing on the mountain tops', - ); - }); - - it('As editor I can create a Teaser block and overwrite the data which is is not updated when the target is changed', () => { - // GIVEN a Document with the title document and a Document to reference with the title Blue Orchids - cy.createContent({ - contentType: 'Document', - contentId: 'blue-orchids', - contentTitle: 'Blue Orchids', - contentDescription: 'are growing on the mountain tops', - preview_image_link: { - '@id': '/my-image', - }, - path: '/document', - }); - cy.navigate('/document/edit'); - // WHEN I create a Teaser block and change the data of the referenced object - cy.addNewBlock('teaser'); - cy.get( - '.objectbrowser-field[aria-labelledby="fieldset-default-field-label-href"] button[aria-label="Open object browser"]', - ).click(); - cy.get('[aria-label="Select Blue Orchids"]').dblclick(); - cy.wait(500); - cy.get('label[for="field-overwrite"]').click(); - cy.get('#sidebar-properties #field-title').type(' and Tulips'); - cy.get('#toolbar-save').click(); - cy.visit('/document'); - cy.get('.block.teaser .card-summary .title').contains( - 'Blue Orchids and Tulips', - ); - cy.navigate('/document/blue-orchids/edit'); - cy.get('.title .documentFirstHeading').type(' but no Tulips'); - cy.get('#toolbar-save').click(); - cy.visit('/document/blue-orchids'); - cy.get('.documentFirstHeading').contains('Blue Orchids but no Tulips'); - // THEN I still see the overwritten content in the teaser - cy.visit('/document'); - cy.get('.block.teaser .card-summary .title').contains( - 'Blue Orchids and Tulips', - ); - }); - - it('As editor I can add a Teaser block and override the data with an external image ', () => { - // GIVEN a Document with the title document and a Document to reference with the title Blue Orchids - cy.createContent({ - contentType: 'Document', - contentId: 'blue-orchids', - contentTitle: 'Blue Orchids', - contentDescription: 'are growing on the mountain tops', - preview_image_link: { - '@id': '/my-image', - }, - path: '/document', - }); - - cy.navigate('/document/edit'); - // WHEN I create a Teaser block and change the data of the referenced object - cy.addNewBlock('teaser'); - cy.get( - '.objectbrowser-field[aria-labelledby="fieldset-default-field-label-href"] button[aria-label="Open object browser"]', - ).click(); - cy.get('[aria-label="Select Blue Orchids"]').dblclick(); - cy.wait(500); - cy.get('input[name="field-overwrite"]').check({ force: true }); - cy.get( - '.objectbrowser-field[aria-labelledby="fieldset-default-field-label-preview_image"]', - ) - .click() - .type( - `https://github.com/plone/volto/raw/main/logos/volto-colorful.png{enter}`, - ); - cy.get('#toolbar-save').click(); - cy.get('.image-wrapper > img') - .should('have.attr', 'src') - .and( - 'include', - 'https://github.com/plone/volto/raw/main/logos/volto-colorful.png', - ); - cy.get('.block.teaser .card-summary .title').contains('Blue Orchids'); - }); -});