@plone/aurora 1.0.0-alpha.10 → 1.0.0-alpha.12
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
CHANGED
|
@@ -8,6 +8,26 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 1.0.0-alpha.12 (2026-09-29)
|
|
12
|
+
|
|
13
|
+
### Internal
|
|
14
|
+
|
|
15
|
+
- Use updated @plone/plate. @sneridagh
|
|
16
|
+
|
|
17
|
+
## 1.0.0-alpha.11 (2026-09-29)
|
|
18
|
+
|
|
19
|
+
### Feature
|
|
20
|
+
|
|
21
|
+
- Registered a somersault migration that converts legacy flat blockquotes from volto-slate content into blockquote containers. @sneridagh
|
|
22
|
+
|
|
23
|
+
### Internal
|
|
24
|
+
|
|
25
|
+
- Updated the pull request template to refer to Aurora instead of Volto. @stevepiercy
|
|
26
|
+
|
|
27
|
+
### Documentation
|
|
28
|
+
|
|
29
|
+
- Added testing documentation. @pnicolli
|
|
30
|
+
|
|
11
31
|
## 1.0.0-alpha.10 (2026-09-21)
|
|
12
32
|
|
|
13
33
|
### Internal
|
|
@@ -66,6 +66,62 @@ describe('content migrations', () => {
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
+
it('migrates legacy flat blockquotes into blockquote containers', () => {
|
|
70
|
+
config.blocks = {
|
|
71
|
+
blocksConfig: {},
|
|
72
|
+
} as typeof config.blocks;
|
|
73
|
+
installMigrations();
|
|
74
|
+
|
|
75
|
+
const content: TestContent = {
|
|
76
|
+
'@id': 'http://example.com/',
|
|
77
|
+
title: 'Page title',
|
|
78
|
+
blocks: {
|
|
79
|
+
quote: {
|
|
80
|
+
'@type': 'slate',
|
|
81
|
+
value: [
|
|
82
|
+
{
|
|
83
|
+
type: 'blockquote',
|
|
84
|
+
children: [
|
|
85
|
+
{ text: 'Quoted ' },
|
|
86
|
+
{
|
|
87
|
+
type: 'link',
|
|
88
|
+
data: { url: 'https://plone.org' },
|
|
89
|
+
children: [{ text: 'text' }],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
blocks_layout: {
|
|
97
|
+
items: ['quote'],
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const migrated = migrateContent(content as unknown as Content);
|
|
102
|
+
const [blockquote] = (
|
|
103
|
+
migrated.blocks?.[SOMERSAULT_KEY] as unknown as { value: any[] }
|
|
104
|
+
).value;
|
|
105
|
+
|
|
106
|
+
expect(blockquote).toMatchObject({
|
|
107
|
+
type: 'blockquote',
|
|
108
|
+
children: [
|
|
109
|
+
{
|
|
110
|
+
type: 'p',
|
|
111
|
+
children: [
|
|
112
|
+
{ text: 'Quoted ' },
|
|
113
|
+
{
|
|
114
|
+
type: 'a',
|
|
115
|
+
url: 'https://plone.org',
|
|
116
|
+
children: [{ text: 'text' }],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
});
|
|
122
|
+
expect(blockquote.children).toHaveLength(1);
|
|
123
|
+
});
|
|
124
|
+
|
|
69
125
|
it('moves native blocks into the somersault field as ploneBlock nodes', () => {
|
|
70
126
|
config.blocks = {
|
|
71
127
|
blocksConfig: {
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
} from '@plone/helpers';
|
|
6
6
|
import type { BlockConfigBase, BlocksFormData } from '@plone/types';
|
|
7
7
|
import {
|
|
8
|
+
migrateLegacyBlockquotesInValue,
|
|
8
9
|
migrateLegacyBoldInValue,
|
|
9
10
|
migrateLegacyBlockWidthsInValue,
|
|
10
11
|
migrateLegacyItalicInValue,
|
|
@@ -128,6 +129,13 @@ export default function install() {
|
|
|
128
129
|
migrateLegacyListsInValue(value),
|
|
129
130
|
});
|
|
130
131
|
|
|
132
|
+
config.registerUtility({
|
|
133
|
+
name: 'somersaultMigrationLegacyBlockquotes',
|
|
134
|
+
type: 'somersaultMigration',
|
|
135
|
+
method: ({ value }: SomersaultMigrationArgs) =>
|
|
136
|
+
migrateLegacyBlockquotesInValue(value),
|
|
137
|
+
});
|
|
138
|
+
|
|
131
139
|
config.registerUtility({
|
|
132
140
|
name: 'somersaultMigrationBlockWidths',
|
|
133
141
|
type: 'somersaultMigration',
|
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.12",
|
|
5
5
|
"maintainers": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Plone Foundation",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"react-router": "8.2.0",
|
|
47
47
|
"remix-i18next": "^8.0.0",
|
|
48
48
|
"@plone/agave": "1.0.0-alpha.7",
|
|
49
|
-
"@plone/
|
|
50
|
-
"@plone/
|
|
49
|
+
"@plone/contents": "1.0.0-alpha.2",
|
|
50
|
+
"@plone/plate": "1.0.0-alpha.18",
|
|
51
51
|
"@plone/helpers": "2.0.0-alpha.8",
|
|
52
|
-
"@plone/
|
|
53
|
-
"@plone/
|
|
52
|
+
"@plone/cmsui": "1.0.0-alpha.9",
|
|
53
|
+
"@plone/client": "2.0.0-alpha.7",
|
|
54
|
+
"@plone/layout": "1.0.0-alpha.12",
|
|
55
|
+
"@plone/components": "5.0.0-alpha.4",
|
|
56
|
+
"@plone/publicui": "1.0.0-alpha.7",
|
|
54
57
|
"@plone/react-router": "2.0.0-alpha.6",
|
|
55
|
-
"@plone/layout": "1.0.0-alpha.11",
|
|
56
58
|
"@plone/registry": "4.0.0-alpha.3",
|
|
57
59
|
"@plone/theming": "1.0.0-alpha.7",
|
|
58
|
-
"@plone/blocks": "1.0.0-alpha.
|
|
59
|
-
"@plone/plate": "1.0.0-alpha.16",
|
|
60
|
-
"@plone/contents": "1.0.0-alpha.1"
|
|
60
|
+
"@plone/blocks": "1.0.0-alpha.16"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@babel/core": "^7.28.5",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"vite-plugin-babel": "1.7.3",
|
|
79
79
|
"vite-plugin-devtools-json": "^1.0.0",
|
|
80
80
|
"vitest": "^4.1.0",
|
|
81
|
-
"@plone/types": "3.0.0-alpha.
|
|
81
|
+
"@plone/types": "3.0.0-alpha.6"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=22.22.0"
|