@plone/aurora 1.0.0-alpha.26 → 1.0.0-alpha.27
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.
- package/CHANGELOG.md +6 -0
- package/app/entry.client.tsx +11 -1
- package/app/entry.server.tsx +6 -0
- package/package.json +5 -4
- package/vite.config.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
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
|
+
|
|
11
17
|
## 1.0.0-alpha.26 (2026-11-22)
|
|
12
18
|
|
|
13
19
|
### Documentation
|
package/app/entry.client.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { startTransition, StrictMode } from 'react';
|
|
2
2
|
import { hydrateRoot } from 'react-dom/client';
|
|
3
|
+
import type { ClientInstrumentation } from 'react-router';
|
|
3
4
|
import { HydratedRouter } from 'react-router/dom';
|
|
4
5
|
import { getI18nOptions } from './i18n';
|
|
5
6
|
import i18next from 'i18next';
|
|
@@ -11,6 +12,15 @@ import install from './config';
|
|
|
11
12
|
install();
|
|
12
13
|
|
|
13
14
|
async function hydrate() {
|
|
15
|
+
// The Plone devtools, in development only (see `@plone/devtools/vite`).
|
|
16
|
+
let instrumentations: ClientInstrumentation[] | undefined;
|
|
17
|
+
if (import.meta.env.DEV && import.meta.env.PLONE_DEVTOOLS) {
|
|
18
|
+
const devtools = await import('@plone/devtools/client');
|
|
19
|
+
// Mounts outside the app's tree, once React has hydrated `<html>`.
|
|
20
|
+
devtools.mountPloneDevtools();
|
|
21
|
+
instrumentations = [devtools.clientInstrumentation];
|
|
22
|
+
}
|
|
23
|
+
|
|
14
24
|
// Read the options after `install()`, which sets the supported languages
|
|
15
25
|
const i18n = getI18nOptions();
|
|
16
26
|
await i18next
|
|
@@ -40,7 +50,7 @@ async function hydrate() {
|
|
|
40
50
|
document,
|
|
41
51
|
<I18nextProvider i18n={i18next}>
|
|
42
52
|
<StrictMode>
|
|
43
|
-
<HydratedRouter />
|
|
53
|
+
<HydratedRouter instrumentations={instrumentations} />
|
|
44
54
|
</StrictMode>
|
|
45
55
|
</I18nextProvider>,
|
|
46
56
|
);
|
package/app/entry.server.tsx
CHANGED
|
@@ -15,6 +15,12 @@ import { I18nextProvider } from 'react-i18next';
|
|
|
15
15
|
|
|
16
16
|
export const streamTimeout = 5_000;
|
|
17
17
|
|
|
18
|
+
// The Plone devtools, in development only (see `@plone/devtools/vite`).
|
|
19
|
+
export const instrumentations =
|
|
20
|
+
import.meta.env.DEV && import.meta.env.PLONE_DEVTOOLS
|
|
21
|
+
? [(await import('@plone/devtools/server')).serverInstrumentation]
|
|
22
|
+
: [];
|
|
23
|
+
|
|
18
24
|
export default async function handleRequest(
|
|
19
25
|
request: Request,
|
|
20
26
|
responseStatusCode: number,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plone/aurora",
|
|
3
3
|
"description": "Plone Aurora is the next-generation frontend for Plone CMS",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.27",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Plone Foundation",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@plone/components": "5.0.0-alpha.7",
|
|
40
40
|
"@plone/icons": "1.0.0-alpha.3",
|
|
41
41
|
"@plone/contents": "1.0.0-alpha.6",
|
|
42
|
-
"@plone/controlpanels": "1.0.0-alpha.
|
|
42
|
+
"@plone/controlpanels": "1.0.0-alpha.3",
|
|
43
43
|
"@plone/helpers": "2.0.0-alpha.12",
|
|
44
44
|
"@plone/layout": "1.0.0-alpha.19",
|
|
45
45
|
"@plone/plate": "1.0.0-alpha.29",
|
|
46
46
|
"@plone/publicui": "1.0.0-alpha.12",
|
|
47
47
|
"@plone/quanta": "1.0.0-alpha.6",
|
|
48
|
-
"@plone/react-router": "2.0.0-alpha.
|
|
49
|
-
"@plone/registry": "4.0.0-alpha.
|
|
48
|
+
"@plone/react-router": "2.0.0-alpha.9",
|
|
49
|
+
"@plone/registry": "4.0.0-alpha.9",
|
|
50
50
|
"@plone/theming": "1.0.0-alpha.10",
|
|
51
51
|
"@react-router/node": "8.5.0",
|
|
52
52
|
"@react-router/express": "8.5.0",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@babel/core": "^7.28.5",
|
|
70
70
|
"@babel/preset-typescript": "^7.27.1",
|
|
71
|
+
"@plone/devtools": "1.0.0-alpha.0",
|
|
71
72
|
"@plone/test-addon": "1.0.0",
|
|
72
73
|
"@plone/types": "3.0.0-alpha.11",
|
|
73
74
|
"@react-router/dev": "8.5.0",
|
package/vite.config.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { reactRouter } from '@react-router/dev/vite';
|
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { defineConfig, PluginOption } from 'vite';
|
|
4
4
|
import { PloneRegistryVitePlugin } from '@plone/registry/vite-plugin';
|
|
5
|
+
import { PloneDevtoolsVitePlugin } from '@plone/devtools/vite';
|
|
5
6
|
import { PloneSVGRVitePlugin } from '@plone/icons/vite-plugin-svgr';
|
|
6
7
|
import applyAddonViteConfiguration from './.plone/vite.loader.js';
|
|
7
8
|
import babel from 'vite-plugin-babel';
|
|
@@ -16,6 +17,8 @@ export default defineConfig(({ command, mode, isSsrBuild }) => {
|
|
|
16
17
|
|
|
17
18
|
const baseConfig = {
|
|
18
19
|
plugins: [
|
|
20
|
+
// Development only. Set PLONE_DEVTOOLS=false to turn it off.
|
|
21
|
+
...PloneDevtoolsVitePlugin(),
|
|
19
22
|
PloneSVGRVitePlugin(),
|
|
20
23
|
PloneRegistryVitePlugin(),
|
|
21
24
|
tailwindcss(),
|