@plone/aurora 1.0.0-alpha.27 → 1.0.0-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/catalog.json +73 -0
  2. package/dist/preset.d.ts +25 -0
  3. package/dist/preset.js +14 -0
  4. package/dist/registry-publicui.config.d.ts +8 -0
  5. package/dist/registry-publicui.config.js +14 -0
  6. package/dist/registry.config.d.ts +16 -0
  7. package/dist/registry.config.js +17 -0
  8. package/dist/routes.d.ts +25 -0
  9. package/dist/routes.js +23 -0
  10. package/dist/vite.d.ts +24 -0
  11. package/dist/vite.js +135 -0
  12. package/package.json +93 -47
  13. package/pnpmfile.cjs +20 -0
  14. package/server.js +2 -1
  15. package/{app → src/app}/config/index.ts +1 -2
  16. package/{app → src/app}/config/server.server.ts +2 -4
  17. package/{app → src/app}/entry.client.tsx +1 -0
  18. package/{app → src/app}/entry.server.tsx +2 -1
  19. package/{app → src/app}/i18next.server.test.ts +48 -1
  20. package/{app → src/app}/i18next.server.ts +22 -14
  21. package/{app → src/app}/middleware.server.test.ts +0 -68
  22. package/{app → src/app}/middleware.server.ts +32 -40
  23. package/src/app/root.server.ts +124 -0
  24. package/{app → src/app}/root.test.tsx +36 -7
  25. package/src/app/root.tsx +101 -0
  26. package/.release-it.json +0 -32
  27. package/.stylelintrc +0 -8
  28. package/CHANGELOG.md +0 -456
  29. package/Makefile +0 -82
  30. package/acceptance/tests/anonymous-401-redirect.test.ts +0 -75
  31. package/acceptance/tests/basic.test.ts +0 -14
  32. package/acceptance/tests/hydration.test.ts +0 -106
  33. package/acceptance/tests/multilingual-root-redirect.test.ts +0 -45
  34. package/app/root.tsx +0 -191
  35. package/app/routes.ts +0 -20
  36. package/news/.gitkeep +0 -0
  37. package/public/favicon.ico +0 -0
  38. package/public/icon.svg +0 -13
  39. package/react-router.config.ts +0 -11
  40. package/registry-publicui.config.ts +0 -11
  41. package/registry.config.ts +0 -16
  42. package/tests/setup.ts +0 -6
  43. package/tests/testHelpers.tsx +0 -29
  44. package/towncrier.toml +0 -33
  45. package/tsconfig.json +0 -35
  46. package/vite.config.ts +0 -120
  47. package/vitest.config.ts +0 -32
  48. /package/{app → src/app}/config/index.test.ts +0 -0
  49. /package/{app → src/app}/config/server/content-migrations.server.test.ts +0 -0
  50. /package/{app → src/app}/config/server/content-migrations.server.ts +0 -0
  51. /package/{app → src/app}/config/server/migrations.server.ts +0 -0
  52. /package/{app → src/app}/config/server.server.test.ts +0 -0
  53. /package/{app → src/app}/config/types.ts +0 -0
  54. /package/{app → src/app}/i18n.ts +0 -0
  55. /package/{app → src/app}/okroute.test.tsx +0 -0
  56. /package/{app → src/app}/okroute.tsx +0 -0
  57. /package/{app → src/app}/reset-fetcher.test.tsx +0 -0
  58. /package/{app → src/app}/reset-fetcher.tsx +0 -0
package/.stylelintrc DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": ["stylelint-config-idiomatic-order"],
3
- "plugins": ["stylelint-prettier"],
4
- "rules": {
5
- "prettier/prettier": true,
6
- "order/properties-alphabetical-order": null
7
- }
8
- }
package/CHANGELOG.md DELETED
@@ -1,456 +0,0 @@
1
- # @plone/aurora Release Notes
2
-
3
- <!-- Do *NOT* add new change log entries to this file.
4
- Instead create a file in the news directory.
5
- For helpful instructions, see:
6
- https://6.docs.plone.org/contributing/index.html#change-log-entry
7
- -->
8
-
9
- <!-- towncrier release notes start -->
10
-
11
- ## 1.0.0-alpha.27 (2026-11-25)
12
-
13
- ### Feature
14
-
15
- - Added the Plone devtools (`@plone/devtools`) to the development server. Set `PLONE_DEVTOOLS=false` to turn them off; production builds never include them. @sneridagh [#381](https://github.com/plone/aurora/issues/381)
16
-
17
- ## 1.0.0-alpha.26 (2026-11-22)
18
-
19
- ### Documentation
20
-
21
- - Documented the Quanta tabs: the `segmented` look of `TabList` and the swipeable `TabPanelCarousel`. @sneridagh
22
-
23
- ## 1.0.0-alpha.25 (2026-11-21)
24
-
25
- ### Feature
26
-
27
- - Aurora registers `@plone/controlpanels` as an add-on, so its translations load. @sneridagh
28
-
29
- ### Documentation
30
-
31
- - Documented the new `@plone/controlpanels` package in the package overview and the release order. @sneridagh [#269](https://github.com/plone/aurora/issues/269)
32
- - Added the conceptual guide "Packages for Volto and Plone Aurora", on how `@plone/plate` and `@plone/controlpanels` run in both apps: no framework imports, a provider and a driver, translations, styles, building and the registry as a peer dependency. @sneridagh
33
-
34
- ## 1.0.0-alpha.24 (2026-11-18)
35
-
36
- ### Breaking
37
-
38
- - The page body is now stored in the `main` region of `blocks`, with `"@type": "plate"`, instead of the `__somersault__` block. Content with the old block is renamed when it is read, through the new `contentMigration` utility type, and keeps the new shape once it is saved. The backend must run Plone 6.2 with `plone.restapi` 10.3.0 or later before deploying this version, so that `plate` regions are indexed, checked for link integrity, and get `resolveuid` links. It also needs `plone.volto` 6.2.1 or later with the `plone.volto:aurora` profile applied, so that the Personal tools menu gets the links of Plone Aurora instead of those of the Volto toolbar. With a Nick backend, upgrade to Nick 3.1.0 or later first, which reads the `main` region. See the upgrade guide. @sneridagh [#379](https://github.com/plone/aurora/issues/379)
39
-
40
- ### Internal
41
-
42
- - Allowed up to 10 different pixels in the visual regression screenshots in CI, so anti-aliasing noise no longer fails the nightly run. @sneridagh
43
-
44
- ### Documentation
45
-
46
- - Say Plate.js blocks instead of Plate-native blocks in the docs. @silviubogan [#231](https://github.com/plone/aurora/issues/231)
47
- - Updated the control panel and toolbar how-to guides for the `/@@controlpanel` path. @sneridagh [#429](https://github.com/plone/aurora/issues/429)
48
- - Document the Nick 3.1.0 requirement, and remove the Volto versions, Python support and branch policy from the version policy and the system requirements. @sneridagh
49
- - Documented the `personal_tools` and `more_menu` actions for the Personal tools and More toolbar menus. @sneridagh
50
- - Documented the document model of the `@blocks-schema` endpoint, the `document_model` frontmatter of element docs and of the document model docs, and the `type` query parameter. @sneridagh
51
-
52
- ## 1.0.0-alpha.23 (2026-11-06)
53
-
54
- ### Internal
55
-
56
- - Added `usehooks-ts`, a new dependency of `@plone/quanta`, to the Vite `optimizeDeps` list. @sneridagh
57
- - Installed `plone.restapi` 10.2.0 in the development and acceptance backends, through `KGS` in `variables.mk`, which the acceptance backend now installs too. @sneridagh
58
- - Load the private `@plone/test-addon` add-on when the `PLONE_TEST_ADDON` environment variable is set, as the acceptance `make` targets do. It registers blocks and fields that only the acceptance and visual regression tests use. @sneridagh
59
-
60
- ### Documentation
61
-
62
- - Added the how-to guide "Add a control panel": the backend parts, the icon and description on the site setup page, hiding a control panel, and replacing its form with a page of your own. @sneridagh
63
-
64
- ## 1.0.0-alpha.22 (2026-10-30)
65
-
66
- ### Breaking
67
-
68
- - `REACT_ROUTER_ALLOWED_ACTION_ORIGINS` is now read when the production server starts, not when building. Set it in the environment of the running server. @sneridagh
69
-
70
- ### Bugfix
71
-
72
- - Fixed the interface language staying English when the project supports more languages: the i18next middleware and the client now read `config.settings.supportedLanguages` after the configuration is applied, and the client starts in the language the server detected. `app/i18n` now exports `getI18nOptions()` instead of a default options object. @sneridagh [#354](https://github.com/plone/aurora/issues/354)
73
- - Run the production server (`pnpm start:prod`) with an Aurora server that trusts the `X-Forwarded-*` headers of proxies on private networks, instead of `react-router-serve`. Behind a proxy that terminates TLS, React Router saw the request as `http` while the browser sends an `https` origin, so every action, login included, failed with a 400. It now works for every host the site is served on, without configuration. Set `TRUST_PROXY` to change which proxies are trusted. @sneridagh
74
-
75
- ## 1.0.0-alpha.21 (2026-10-30)
76
-
77
- ### Feature
78
-
79
- - The hosts allowed as action origins can be set from the environment when building (`REACT_ROUTER_ALLOWED_ACTION_ORIGINS`, comma separated, with `*`/`**` wildcards). Behind a proxy that terminates TLS, React Router sees the request as `http` while the browser sends an `https` origin, so every action, login included, failed with a 400. @sneridagh
80
-
81
- ## 1.0.0-alpha.20 (2026-10-29)
82
-
83
- ### Feature
84
-
85
- - A visitor who is not signed in and opens private content is sent to the login page with the page as `return_url`, as in Volto, instead of a bare 401 page. An expired sign-in does the same and clears the cookie. Signed-in users without permission still see the 401 page. @mpalomaki
86
- - Added `config.settings.apiExpanders`, so add-ons can add expandable components to the main content request, optionally for signed-in users only. @sneridagh
87
- - Added the `clientEndpoints` utility type, so add-ons can add custom endpoint methods to the request Plone client. @sneridagh
88
- - Added the `contentResource` utility type and its middleware, which answers resources below a content path, like `/<path>/@blocks-schema`. @sneridagh
89
- - On a multilingual site a request for the site root is redirected to the default language root — a full load and a client-side navigation alike — as Plone's language switcher view and Volto's `MultilingualRedirector` do. The root stays reachable through its contents view. @mpalomaki
90
- - The build directory can be set from the environment (`REACT_ROUTER_BUILD_DIR`), so a deployment can build aside into a versioned directory and swap a symlink rather than overwrite the directory the running server serves — `react-router build` removes its build directory first. The default `build` is unchanged. @mpalomaki
91
- - The content request expands the page's `translations` by default, for the LanguageSwitcher. A site without `plone.app.multilingual` ignores it. @sneridagh
92
- - The root middleware no longer loads the Plone content, site and user for resource routes, whose path has a segment that starts with a single `@` (`@search`, `@@contents/@delete`), nor for the `/ok` health check, which saves three backend requests per call. The `reset-fetcher` route is renamed to `@reset-fetcher`. @sneridagh
93
-
94
- ### Bugfix
95
-
96
- - Apply the server configuration once per process instead of on every request, which made `config.routes` and the slot components grow without bound. @sneridagh
97
- - Serve user portraits to browser image requests and persist the preferred interface language. @sneridagh
98
-
99
- ### Internal
100
-
101
- - Pre-bundled `jotai/vanilla` for `@plone/helpers`, which its form layer imports. @sneridagh
102
- - Removed the `@plone/components > react-aria-components/DropZone` Vite pre-bundling entry, since `@plone/components` no longer has a `DropZone`. @pnicolli
103
- - Updated React Aria Components to 1.22, and moved all React Aria packages and `tailwindcss-react-aria-components` into the pnpm catalog. @sneridagh
104
- - Upgraded pnpm to 12, and enabled `autoDedupe` and `minimumReleaseAgeExcludePrune`. @sneridagh
105
- - Upgraded to Node.js 26 in CI, and to React Router 8.5.0 and React 19.3. @sneridagh
106
-
107
- ### Documentation
108
-
109
- - Added the "Form fields, controls, widgets, and adapters" conceptual guide, with a diagram, worked examples and a glossary. @sneridagh [#97](https://github.com/plone/aurora/issues/97)
110
- - Solved a few Vale issues, by replacing failing regular expressions with functional ones, and corrected spelling of "Sass" in narrative docs. @silviubogan [#297](https://github.com/plone/aurora/issues/297)
111
- - Added Node.js 26 to the supported Node.js versions. @sneridagh
112
- - Added a "Forms and widgets" section to the upgrade guide: the widget contract, the new form engine, validators, and the renamed Quanta pickers. @sneridagh
113
- - Added the "Add custom endpoints to the Plone client" how-to guide. @sneridagh
114
- - Added the "Add expanders to the content request" how-to guide. @sneridagh
115
- - Added the "Core widgets" reference: what each widget is registered for, the value it reads and writes, and its widget options, such as the image widget's `extraFields`. @sneridagh
116
- - Added the "Validate form fields" how-to: default validators, registering validators by format, type, widget, behavior or block, overriding them, writing them, translating their messages, and invariants. Updated the block schema side effects how-to to the current block settings form. @sneridagh
117
- - Added the Quanta components reference, with how each component relates to React Aria's Tailwind starter. @sneridagh
118
- - Added the upgrade guide entry for the Quanta `Sheet`. @sneridagh
119
- - Added the upgrade guide entry for the Quanta palette removed from `@plone/components`' basic CSS. @pnicolli
120
- - Added the upgrade guide entry for the components removed from `@plone/components`, and linked the `@plone/icons` Storybook. @pnicolli
121
- - Added the upgrade guide for Quanta's `MultiSelect`. @sneridagh
122
- - Added the upgrade guide for the Quanta collections. @sneridagh
123
- - Added the upgrade guide for the Quanta fields, which follow React Aria's Tailwind starter. @sneridagh
124
- - Added the upgrade guide for the Quanta navigation components. @sneridagh
125
- - Documented form validation and how to register validators. @sneridagh
126
- - Documented how to add Plate plugins from an add-on. @sneridagh
127
- - Documented how to write block docs, the `@blocks-schema` endpoint, and how to answer a resource below a content path with a `contentResource` utility. @sneridagh
128
- - Documented how widgets read the form and where it is, and the widget context upgrade step. @sneridagh
129
- - Documented testing widgets against the contract, and the compile-time check of registered widgets. @sneridagh
130
- - Documented the new core widgets, the choices widget in the widget lookup order, and the file and image fields in the upgrade guide. @sneridagh
131
- - Documented the route naming convention, `@@` for views and a single `@` for resource routes, and that the root middleware does not load the content for resource routes. @sneridagh
132
- - Updated the metadata text binding reference for the form context. @sneridagh
133
-
134
- ## 1.0.0-alpha.19 (2026-10-06)
135
-
136
- ### Documentation
137
-
138
- - Documented the content styles loader, its authoring rules, and how to override block styles from an add-on. @sneridagh [#199](https://github.com/plone/aurora/issues/199)
139
- - Documented the block content classname contract for themers. @sneridagh [#200](https://github.com/plone/aurora/issues/200)
140
- - Added the block content CSS changes of plone/aurora#199 and plone/aurora#200 to the upgrade guide. @sneridagh
141
- - Added the how-to guide "Style blocks in a theme", with every block's parts and tokens, and fixed the content styles examples in the add-on styles loader and block anatomy docs. @sneridagh
142
-
143
- ## 1.0.0-alpha.18 (2026-10-06)
144
-
145
- ### Internal
146
-
147
- - Update to latest @plone/plate @sneridagh [#update](https://github.com/plone/aurora/issues/update)
148
-
149
- ## 1.0.0-alpha.17 (2026-10-06)
150
-
151
- ### Internal
152
-
153
- - Upgrade to use latest @plone/plate. @sneridagh
154
-
155
- ## 1.0.0-alpha.16 (2026-10-03)
156
-
157
- ### Bugfix
158
-
159
- - Fixed the server not loading the translations, which made it render raw message keys and React replace the whole server-rendered page on hydration. @sneridagh
160
-
161
- ### Internal
162
-
163
- - Added nightly Playwright visual regression tests for native blocks and editor overlays, with baselines stored in the `plone/aurora-visual-regression` repository and a protected workflow to update the screenshots. @sneridagh
164
- - Cached the Playwright browsers in CI, and stopped installing their system dependencies with apt, which was sometimes very slow. @sneridagh
165
- - Import icons from `@plone/icons`. Depend on `@plone/quanta` and pre-bundle its dependencies. @pnicolli
166
- - Sped up CI: superseded runs on branches and pull requests are cancelled, the format and style checks skip building the packages, and the `@plone/client` unit tests no longer install Playwright. @sneridagh
167
- - Split the Playwright acceptance tests in CI across 3 shards, and merge their reports into a single HTML report. @sneridagh
168
- - The `release` scripts of all the packages now take the GitHub token from `gh auth token` when `GITHUB_TOKEN` is not set. @sneridagh
169
- - The release configuration of all the packages now runs `towncrier` with `uvx` instead of `pipx`. @sneridagh
170
- - Updated `actions/checkout` to v7 and `JarvusInnovations/background-action` to v2 in the visual regression workflows. @sneridagh
171
-
172
- ### Documentation
173
-
174
- - Added the "How to make a Plone Aurora release" documentation page, with the release requirements and the `prereleaser` workflow. @sneridagh
175
- - Documented how to upgrade existing add-ons for the split of `@plone/components` into `@plone/quanta` and `@plone/icons`. @sneridagh
176
- - Documented the visual regression tests: how to run them, review a failure and update the baseline screenshots, and how maintainers set up the GitHub infrastructure. @sneridagh
177
-
178
- ## 1.0.0-alpha.15 (2026-10-01)
179
-
180
- ### Internal
181
-
182
- - Update to the latest @plone/plate and @plone/cmsui @sneridagh
183
-
184
- ## 1.0.0-alpha.14 (2026-09-30)
185
-
186
- ### Internal
187
-
188
- - Use latest @plone/plate @sneridagh
189
-
190
- ## 1.0.0-alpha.13 (2026-09-30)
191
-
192
- ### Internal
193
-
194
- - Use new @plone/plate release. @sneridagh
195
-
196
- ## 1.0.0-alpha.12 (2026-09-29)
197
-
198
- ### Internal
199
-
200
- - Use updated @plone/plate. @sneridagh
201
-
202
- ## 1.0.0-alpha.11 (2026-09-29)
203
-
204
- ### Feature
205
-
206
- - Registered a somersault migration that converts legacy flat blockquotes from volto-slate content into blockquote containers. @sneridagh
207
-
208
- ### Internal
209
-
210
- - Updated the pull request template to refer to Aurora instead of Volto. @stevepiercy
211
-
212
- ### Documentation
213
-
214
- - Added testing documentation. @pnicolli
215
-
216
- ## 1.0.0-alpha.10 (2026-09-21)
217
-
218
- ### Internal
219
-
220
- - Replaced `__dirname` with `import.meta.dirname` and added the `.js` extension to the `./.plone/vite.loader` import in `vite.config.ts` to silence the Vite native config loader deprecation warnings. @sneridagh
221
- - Replaced remaining `Seven`/`volto` references with `Plone Aurora`/`aurora` across repository docs, Makefile, and CI configuration. @sneridagh
222
- - Update to support Plone 6.2.2. @sneridagh
223
-
224
- ### Documentation
225
-
226
- - Expanded the "Create a package" and "Create a project" get-started guides to explain what a frontend add-on and a full project are, when to choose one over the other, and why an add-on's backend can only run a vanilla Plone Docker image. Also added the missing `create-project` link under "Integrators" in the docs index. @sneridagh
227
-
228
- ## 1.0.0-alpha.9 (2026-09-16)
229
-
230
- ### Documentation
231
-
232
- - Update the root-loader how-to and the Prisma tutorial so `rootLoaderData` utilities return the `{ status, data }` envelope that the root loader unwraps and merges. @sneridagh [#169](https://github.com/plone/volto/issues/169)
233
-
234
- ## 1.0.0-alpha.8 (2026-09-14)
235
-
236
- ### Breaking
237
-
238
- - The fixed wiring up the `rootLoaderData` utility envelope in the root loader provokes a breaking change for all `rootLoaderData` utilities so they must return a `{ status, data }` envelope (matching the PloneClient response shape), but the root loader spread the whole envelope onto the root loader data instead of merging each utility's `data`. It now merges `data`, so utilities that namespace their payload (for example `{ status, data: { likes: {...} } }`) are exposed correctly. @sneridagh
239
-
240
- ### Bugfix
241
-
242
- - Wire up the `rootLoaderData` utility envelope in the root loader. Utilities return a `{ status, data }` envelope (matching the PloneClient response shape), but the root loader spread the whole envelope onto the root loader data instead of merging each utility's `data`. It now merges `data`, so utilities that namespace their payload (for example `{ status, data: { likes: {...} } }`) are exposed correctly. Acting on `status` is left for a follow-up. @sneridagh
243
-
244
- ## 1.0.0-alpha.7 (2026-09-05)
245
-
246
- ### Internal
247
-
248
- - Re-release for adjust tag in repo and in npm automatically during the alpha phase. @sneridagh
249
-
250
- ## 1.0.0-alpha.6 (2026-09-05)
251
-
252
- ### Internal
253
-
254
- - Re-release for update the README in npm. @sneridagh
255
-
256
- ## 1.0.0-alpha.5 (2026-09-05)
257
-
258
- ### Breaking
259
-
260
- - Refactored the `Content` type to properly match the basic Plone types and allow TypeScript to narrow this type automatically. @pnicolli
261
- - Renamed the Seven app package and import alias to `@plone/aurora`. @sneridagh
262
-
263
- ### Feature
264
-
265
- - Added `isAuthenticated` boolean to root loader data. @arybakov05 [#6710](https://github.com/plone/volto/issues/6710)
266
- - Added a middleware to handle Link Content Type View redirecting users that don't have Edit permissions. @pnicolli
267
- - Added recurrence widget. @sabrina-bongiovanni
268
- - Handled redirect responses from the backend when fetching content objects. @pnicolli
269
- - Registered Aurora native blocks are now migrated into the Somersault field as `type: 'ploneBlock'` nodes with migrated `blockWidth` defaults so they can be rendered by the new editor pipeline later. @sneridagh
270
- - Registered the new `@plone/contents` add-on in the Seven app. @pnicolli @giuliaghisini @sneridagh
271
-
272
- ### Bugfix
273
-
274
- - Fixed the dev server due to stale react-i18next imports. @sneridagh
275
- - Gracefully clear stale `auth_seven` cookies and retry public page and asset requests anonymously instead of surfacing a `401` error boundary. @sneridagh
276
-
277
- ### Internal
278
-
279
- - Add the missing `@babel/core` dev dependency and ignore the local `var/` runtime directory for app development. @sneridagh
280
- - Added `optimizeDeps.include` entries for non-addon workspace packages and app-level deps to reduce lazy dependency discovery reloads on dev server startup. @arybakov05
281
- - Excluded `i18next-fs-backend` and `remix-i18next/server` from the client `optimizeDeps` bundle — they were still being picked up by Vite's client-side dependency scanner despite only being declared in `ssr.optimizeDeps.include`. @sneridagh
282
- - Unify Makefile files across the packages. @ionlizarazu
283
- - Update the Babel Vite plugin configuration for Vite 8 dependency optimization and apply the React Compiler transform to TypeScript modules outside dependencies. @sneridagh
284
- - Updated development, CI, and documentation tooling to use pnpm 11.20.0 reproducibly through Corepack. @sneridagh
285
- - Upgraded React Router to v8 and migrated `remix-i18next` to its v8 middleware-based API (`createI18nextMiddleware`), replacing the removed `RemixI18Next` class and its subpath exports. @sneridagh
286
-
287
- ### Documentation
288
-
289
- - Search and replace seven->aurora. @sneridagh
290
-
291
- ## 1.0.0-alpha.4 (2026-05-13)
292
-
293
- ## 1.0.0-alpha.3 (2026-05-07)
294
-
295
- ### Internal
296
-
297
- - Added AGENTS.md file. @pnicolli
298
- - Aligned the Seven app TypeScript configuration and root loader typing with the monorepo-wide typecheck cleanup.
299
-
300
- ## 1.0.0-alpha.2 (2026-04-16)
301
-
302
- ### Breaking
303
-
304
- - Removed Cypress support.
305
- Added Playwright support. Move all existing Cypress tests to Playwright. @sneridagh [#7827](https://github.com/plone/volto/issues/7827)
306
-
307
- ### Feature
308
-
309
- - Listing block @ebrehault [#7603](https://github.com/plone/volto/issues/7603)
310
- - Somersault editor support. @sneridagh [#7921](https://github.com/plone/volto/issues/7921)
311
- - Create video block view @tedw87 [#8004](https://github.com/plone/volto/issues/8004)
312
- - Refactored runtime migrations to match the somersault editor, reorganize server config files. Fixed tests. @sneridagh [#8021](https://github.com/plone/volto/issues/8021)
313
- - Added runtime migration for default blockWidths. @sneridagh [#8071](https://github.com/plone/volto/issues/8071)
314
- - Update to Vite 8 and RR7 7.14.0. @sneridagh [#8106](https://github.com/plone/volto/issues/8106)
315
- - Moved the initialize client to the middleware from the config. @sneridagh [#8108](https://github.com/plone/volto/issues/8108)
316
- - Added user data in the context for authenticated users @pnicolli
317
- - Apply add-on-provided Vite extension loaders in the Seven app configuration so installed add-ons can extend the app build setup. @sneridagh
318
- - Moved basic data fetching to a middleware to allow all loaders and actions to use it @pnicolli
319
-
320
- ### Bugfix
321
-
322
- - Added safeguard when checking for a contents blocks data @arybakov05 [#8001](https://github.com/plone/volto/issues/8001)
323
- - Fixed SOMERSAULT_KEY constant, it is centralized now. @sneridagh [#8078](https://github.com/plone/volto/issues/8078)
324
- - Added auth token to the requests in the root loader @pnicolli
325
-
326
- ### Internal
327
-
328
- - Upgraded to use RR 7.12.0. @sneridagh [#7787](https://github.com/plone/volto/issues/7787)
329
- - Adapt Seven middleware to the updated `@plone/client` user lookup argument names. @sneridagh
330
- - Updated app test and eslint config. @pnicolli
331
- - Use Plone 6.2.0rc1 for development. @davisagli
332
-
333
- ## 1.0.0-alpha.1 (2025-12-23)
334
-
335
- ### Feature
336
-
337
- - Server side add-on configuration. @sneridagh [#7443](https://github.com/plone/volto/issues/7443)
338
- - Added loading of rootLoaderData utilities in the root route. @sneridagh [#7449](https://github.com/plone/volto/issues/7449)
339
- - Improve `rootLoaderData` utility call. @sneridagh [#7455](https://github.com/plone/volto/issues/7455)
340
- - Cypress tests for @@edit view. @sneridagh [#7650](https://github.com/plone/volto/issues/7650)
341
- - Rename plugin to CypressPlugin. Removed support for using registry based `useBlocksAPI`, using the embedded editor instead. Removed dependency on `@platejs/playwright`. Added Cypress Plate helpers and documentation. @sneridagh [#7668](https://github.com/plone/volto/issues/7668)
342
-
343
- ### Bugfix
344
-
345
- - Fixed locales load on production builds. @sneridagh [#7461](https://github.com/plone/volto/issues/7461)
346
- - Fixed problem on how `routes.ts` loaded the add-ons config for routes, in case that there's more than one add-on in the setup. @sneridagh [#7580](https://github.com/plone/volto/issues/7580)
347
- - Fixed root loader type. @pnicolli
348
- - Fixed styles when the main theme is tailwind-based. @pnicolli
349
-
350
- ### Internal
351
-
352
- - Make plate configure itself before blocks at the top. @sneridagh [#7393](https://github.com/plone/volto/issues/7393)
353
- - Fixed unused vars linting rule. Fixed all code that violated this rule. @sneridagh [#7395](https://github.com/plone/volto/issues/7395)
354
- - Fixed make install in case that `.vscode/extensions.json` is not created yet. @sneridagh [#7495](https://github.com/plone/volto/issues/7495)
355
- - Include other *.md files in the repo root for link checking, fix redirecting links, and remove non-responsive server. @stevepiercy [#7712](https://github.com/plone/volto/issues/7712)
356
- - Adjusted `pnpmfile.cjs` to be more resilient. @sneridagh
357
- - Change the way ESlint detects add-ons for applying the JSX runtime rules. @sneridagh
358
- - Fixed cookieplone test now that the Seven template has been merged there. @pnicolli
359
- - Updated versions of libraries. @sneridagh
360
- - Use a single folder for autogenerated files. @pnicolli
361
-
362
- ### Documentation
363
-
364
- - Added document for explaining the differences between Seven and Volto. @sneridagh [#7463.1](https://github.com/plone/volto/issues/7463.1)
365
- - Added document for explaining what's new in React 19. @sneridagh [#7463.2](https://github.com/plone/volto/issues/7463.2)
366
- - Added i18n documentation. @pnicolli [#7410](https://github.com/plone/volto/issues/7410)
367
- - Rename main.css -> publicui.css for placing the publicui CSS in add-ons. @sneridagh [#7426](https://github.com/plone/volto/issues/7426)
368
- - Added tutorial for external Prisma database support for a Seven add-on. @sneridagh [#7447](https://github.com/plone/volto/issues/7447)
369
- - Added documentation on how to fetch additional data in the root loader. @sneridagh [#7455](https://github.com/plone/volto/issues/7455)
370
- - Added `@plone/components` Quanta icon system documentation. @sneridagh [#7492](https://github.com/plone/volto/issues/7492)
371
- - Document Cypress and Plate integration. @sneridagh [#7650](https://github.com/plone/volto/issues/7650)
372
- - Added documentation of how to add Tailwind CSS support to your add-on. @sneridagh
373
- - Added monorepo anatomy documentation. @sneridagh
374
- - Fixed imports in Icon system how-to guide. @sneridagh
375
-
376
- ## 1.0.0-alpha.0 (2025-09-29)
377
-
378
- ### Feature
379
-
380
- - Initial push of the package holding the Plone 7 codebase. @sneridagh [#6599](https://github.com/plone/volto/issues/6599)
381
- - Do not use the dotted notation for registry generated files. @sneridagh [#6630](https://github.com/plone/volto/issues/6630)
382
- - Simplify the data fetching, do not expose the API server to the client.
383
- Use the addons style loader. @sneridagh [#6636](https://github.com/plone/volto/issues/6636)
384
- - Added sitemap route. @ksuess [#6695](https://github.com/plone/volto/issues/6695)
385
- - Add @plone/components Vite SVGR plugin proxy. @sneridagh [#6779](https://github.com/plone/volto/issues/6779)
386
- - Fix some READMEs and release-it setup. @sneridagh [#6797](https://github.com/plone/volto/issues/6797)
387
- - Added i18n support for projects and add-ons @pnicolli [#6866](https://github.com/plone/volto/issues/6866)
388
- - Upgraded react-router to version 7.4.0. @pnicolli [#6888](https://github.com/plone/volto/issues/6888)
389
- - Moved public ui routes to a new add-on to allow for easier customization @pnicolli [#6896](https://github.com/plone/volto/issues/6896)
390
- - Unified the `quanta` app into the `seven` app. @pnicolli [#6902](https://github.com/plone/volto/issues/6902)
391
- - Images and files proxy middleware. @pnicolli @sneridagh [#6908](https://github.com/plone/volto/issues/6908)
392
- - Modify Cypress tests to use a centralized configuration in `@plone/tooling`. @sneridagh [#6944](https://github.com/plone/volto/issues/6944)
393
- - Added React Compiler RC2. @sneridagh [#7107](https://github.com/plone/volto/issues/7107)
394
- - Added a new base route for resetting react router fecthers. @deodorhunter [#7201](https://github.com/plone/volto/issues/7201)
395
- - Add-ons registry style loader support for `cmsui.css` stylesheet in add-ons. @sneridagh [#7221](https://github.com/plone/volto/issues/7221)
396
- - Separated publicui and cmsui styles. @pnicolli [#7225](https://github.com/plone/volto/issues/7225)
397
- - Added language switcher in Seven. @nileshgulia1 [#7352](https://github.com/plone/volto/issues/7352)
398
-
399
- ### Bugfix
400
-
401
- - Fixed the upgrade to 7.2.0 problem introduced in remix-run/react-router#13078 @sneridagh [#6780](https://github.com/plone/volto/issues/6780)
402
- - Fixed unified `flattenToAppURL` in main loader. @sneridagh [#6865](https://github.com/plone/volto/issues/6865)
403
- - Fixed root loader error handling @pnicolli [#6901](https://github.com/plone/volto/issues/6901)
404
- - Fixed 404 error in `/.well-known/appspecific/com.chrome.devtools.json` request. @sneridagh [#7327](https://github.com/plone/volto/issues/7327)
405
- - Fix resource proxy to resources. Fix typings. @sneridagh [#7374](https://github.com/plone/volto/issues/7374)
406
-
407
- ### Internal
408
-
409
- - Update Makefile. @davisagli [#6393](https://github.com/plone/volto/issues/6393)
410
- - Update internal `peerDependencies` to include React 19.
411
- Update to latest RR7, and use React 19.
412
- Update TS version. @sneridagh [#6641](https://github.com/plone/volto/issues/6641)
413
- - Test with Plone 6.1.0rc1. @sneridagh [#6682](https://github.com/plone/volto/issues/6682)
414
- - Back to use `react` 18 for now, due to the incompatibilities with Volto `react` @sneridagh [#6728](https://github.com/plone/volto/issues/6728)
415
- - Fix dev in Seven projects. @sneridagh [#6733](https://github.com/plone/volto/issues/6733)
416
- - Move Seven to [its own branch](https://github.com/plone/volto/tree/7). @sneridagh [#6770](https://github.com/plone/volto/issues/6770)
417
- - Adjust existing tests, disable API-first PoC tests, disable Volto related tests. @sneridagh [#6770](https://github.com/plone/volto/issues/6770)
418
- - General packages cleanup, disable Volto related packages from the build. @sneridagh [#6770](https://github.com/plone/volto/issues/6770)
419
- - Move Seven to `apps` folder. @sneridagh [#6770](https://github.com/plone/volto/issues/6770)
420
- - Use ESlint 9. @sneridagh [#6775](https://github.com/plone/volto/issues/6775)
421
- - Update `prettier` and `stylelint` to latest. @sneridagh [#6777](https://github.com/plone/volto/issues/6777)
422
- - Use latest RR and RAC. @sneridagh [#6821](https://github.com/plone/volto/issues/6821)
423
- - Use the new `@plone/client` refactored code. @sneridagh [#6898](https://github.com/plone/volto/issues/6898)
424
- - Upgrade `tailwind-variants` version. @sneridagh [#6899](https://github.com/plone/volto/issues/6899)
425
- - Set the full Seven app with CMSUI as the default app and the Public UI only as opt-in. @pnicolli [#6913](https://github.com/plone/volto/issues/6913)
426
- - Added unit tests configuration and github workflow for Seven. @pnicolli [#6916](https://github.com/plone/volto/issues/6916)
427
- - Improve CI actions. @sneridagh [#6922](https://github.com/plone/volto/issues/6922)
428
- - Update to Plone 6.1.1 and cleanup of Makefile. @sneridagh [#6923](https://github.com/plone/volto/issues/6923)
429
- - Added more root layout tests. @pnicolli [#6936](https://github.com/plone/volto/issues/6936)
430
- - Update to React Router 7.6.0 which fixes
431
- https://github.com/remix-run/react-router/issues/13078
432
- @sneridagh [#7060](https://github.com/plone/volto/issues/7060)
433
- - Load catalog versions from catalog.json @sneridagh [#7065](https://github.com/plone/volto/issues/7065)
434
- - Update to pnpm 10.10.0 @sneridagh [#7065](https://github.com/plone/volto/issues/7065)
435
- - Seven does not rely anymore in `@plone/providers`. @sneridagh [#7105](https://github.com/plone/volto/issues/7105)
436
- - Rename `@plone/slots` to `@plone/layout`. @sneridagh [#7119](https://github.com/plone/volto/issues/7119)
437
- - Use @plone/helpers. @giuliaghisini [#7133](https://github.com/plone/volto/issues/7133)
438
- - Update to latest versions. @sneridagh [#7298](https://github.com/plone/volto/issues/7298)
439
- - Added support for `@plone/plate` package. @sneridagh [#7346](https://github.com/plone/volto/issues/7346)
440
- - Adjust peer dependencies and engine. @sneridagh
441
- - Remove providers from the package builds. @sneridagh
442
- - Remove the proxy from Vite config, since we no longer use it. @sneridagh
443
- - Update to RR7.9.1. Middleware is stable now. @sneridagh
444
-
445
- ### Documentation
446
-
447
- - Move docs from `source` to the `docs` root. @sneridagh [#6856](https://github.com/plone/volto/issues/6856)
448
- - Add missing docs for release management. @sneridagh [#6951](https://github.com/plone/volto/issues/6951)
449
- - Updated docs based on feedback provided in #7221. @pnicolli @stevepiercy [#7226](https://github.com/plone/volto/issues/7226)
450
- - Copied and adapted some of the content from existing in `@plone/registry` docs that are fundamental for Seven. @sneridagh [#7360](https://github.com/plone/volto/issues/7360)
451
- - Add conventions and decisions made during this year's sprints. @sneridagh [#7375](https://github.com/plone/volto/issues/7375)
452
- - Added Shadowing documentation. @sneridagh
453
- - Added documentation on how to create a route in Seven. @sneridagh
454
- - Sync core development docs with main, amend `PACKAGES.md` to match Seven packages. @sneridagh
455
-
456
- ## 1.0.0 (unreleased)
package/Makefile DELETED
@@ -1,82 +0,0 @@
1
- # Volto development
2
-
3
- # Project settings (read from repo root)
4
- include ../../variables.mk
5
-
6
- # Allow setting the language for backend-docker-start. Default is `en`.
7
- LANGUAGE ?=en
8
-
9
- # Recipe snippets for reuse
10
-
11
- CHECKOUT_BASENAME="$(shell basename $(shell realpath ./))"
12
- CHECKOUT_BRANCH=$(shell git branch --show-current)
13
- CHECKOUT_TMP=../$(CHECKOUT_BASENAME).tmp
14
- CHECKOUT_TMP_ABS="$(shell realpath $(CHECKOUT_TMP))"
15
-
16
- CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
17
-
18
- # Top-level targets
19
-
20
- .PHONY: all
21
- all: help
22
-
23
- # Add the following 'help' target to your Makefile
24
- # and add help text after each target name starting with ' ##'
25
- # to return a pretty list of targets and their descriptions.
26
- .PHONY: help
27
- help: ## This help message
28
- @echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/$(CYAN)\1$(RESET):\2/' | column -c2 -t -s :)"
29
-
30
- .PHONY: start
31
- start: ## Starts Plone 7 in development mode
32
- pnpm start
33
-
34
- .PHONY: build
35
- build: ## Build a production bundle for distribution
36
- pnpm build
37
-
38
- .PHONY: test
39
- test: ## Run unit tests
40
- pnpm test
41
-
42
- .PHONY: clean
43
- clean: ## Clean development environment
44
- rm -rf node_modules
45
-
46
- ##### Build
47
-
48
- ../../packages/registry/dist: $(shell find ../../packages/registry/src -type f)
49
- (cd ../../ && pnpm build:registry)
50
-
51
- ../../packages/components/dist: $(shell find ../../packages/components/src -type f)
52
- (cd ../../ && pnpm build:components)
53
-
54
- ../../packages/client/dist: $(shell find ../../packages/client/src -type f)
55
- (cd ../../ && pnpm build:client)
56
-
57
- ../../packages/helpers/dist: $(shell find ../../packages/helpers/src -type f)
58
- (cd ../../ && pnpm build:helpers)
59
-
60
- ../../packages/react-router/dist: $(shell find ../../packages/react-router/src -type f)
61
- (cd ../../ && pnpm build:react-router)
62
-
63
- .PHONY: build-deps
64
- build-deps: ../../packages/registry/dist ../../packages/components/dist ../../packages/client/dist ../../packages/react-router/dist ../../packages/helpers/dist ## Build dependencies
65
-
66
- ## Storybook
67
-
68
- .PHONY: storybook-start
69
- storybook-start: ## Start Storybook server on port 6006
70
- @echo "$(GREEN)==> Start Storybook$(RESET)"
71
- pnpm run storybook
72
-
73
- .PHONY: storybook-build
74
- storybook-build: build-deps ## Build Storybook
75
- pnpm build-storybook -o ../../docs/_build/html/storybook
76
-
77
- ##### Release (it runs the one inside)
78
-
79
- .PHONY: release-notes-copy-to-docs
80
- release-notes-copy-to-docs: ## Copy release notes into documentation
81
- cp CHANGELOG.md ../../docs/source/release-notes/index.md
82
- git add ../../docs/source/release-notes/index.md
@@ -1,75 +0,0 @@
1
- import {
2
- createContent,
3
- setWorkflowSeven,
4
- } from '../../../../packages/tooling/playwright/content';
5
- import {
6
- expect,
7
- test,
8
- } from '../../../../packages/tooling/playwright/multilingual';
9
-
10
- test.describe('Anonymous 401 redirect', () => {
11
- test('a private page sends an anonymous visitor to the login page', async ({
12
- page,
13
- request,
14
- }) => {
15
- // New content is private until published.
16
- await createContent(request, {
17
- contentType: 'Document',
18
- contentId: 'internal',
19
- contentTitle: 'Internal page',
20
- path: 'en',
21
- });
22
-
23
- await page.goto('/en/internal');
24
- await expect(page).toHaveURL(/\/login\?return_url=%2Fen%2Finternal$/);
25
- await expect(page.getByLabel('username')).toBeVisible();
26
- });
27
-
28
- test('a private language root sends an anonymous visitor to the login page', async ({
29
- page,
30
- request,
31
- }) => {
32
- await setWorkflowSeven(request, { path: 'en', review_state: 'retract' });
33
-
34
- await page.goto('/en');
35
- await expect(page).toHaveURL(/\/login\?return_url=%2Fen$/);
36
- await expect(page.getByLabel('username')).toBeVisible();
37
- });
38
-
39
- test('the site root does not loop when the default language root is private', async ({
40
- page,
41
- request,
42
- }) => {
43
- await setWorkflowSeven(request, { path: 'en', review_state: 'retract' });
44
-
45
- // / → /en (the multilingual root redirect) → /login?return_url=/en,
46
- // never back to /.
47
- const response = await page.goto('/');
48
- expect(response?.ok()).toBe(true);
49
- await expect(page).toHaveURL(/\/login\?return_url=%2Fen$/);
50
- });
51
-
52
- test('a signed-in editor is not redirected from a page they can see', async ({
53
- page,
54
- request,
55
- }) => {
56
- await createContent(request, {
57
- contentType: 'Document',
58
- contentId: 'internal',
59
- contentTitle: 'Internal page',
60
- path: 'en',
61
- });
62
-
63
- await page.goto('/login', { waitUntil: 'networkidle' });
64
- await page.getByLabel('username').fill('admin');
65
- await page.getByLabel('password').fill('secret');
66
- await page.getByRole('button', { name: /sign in/i }).click();
67
- await expect(page).toHaveURL(/\/en$/);
68
-
69
- await page.goto('/en/internal');
70
- await expect(page).toHaveURL(/\/en\/internal$/);
71
- await expect(
72
- page.getByRole('heading', { name: 'Internal page' }),
73
- ).toBeVisible();
74
- });
75
- });
@@ -1,14 +0,0 @@
1
- import { expect, test } from '../../../../packages/tooling/playwright/test';
2
-
3
- test.describe('Basic Playwright Test', () => {
4
- test('should visit the root URL', async ({ page }) => {
5
- await page.goto('/');
6
- await expect(page).toHaveURL(/\/$/);
7
- await expect(page.getByText('Home')).toBeVisible();
8
- });
9
-
10
- test('html tag has the lang attr', async ({ page }) => {
11
- await page.goto('/');
12
- await expect(page.locator('html')).toHaveAttribute('lang', 'en');
13
- });
14
- });