@plone/aurora 1.0.0-alpha.10 → 1.0.0-alpha.11

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,20 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 1.0.0-alpha.11 (2026-09-29)
12
+
13
+ ### Feature
14
+
15
+ - Registered a somersault migration that converts legacy flat blockquotes from volto-slate content into blockquote containers. @sneridagh
16
+
17
+ ### Internal
18
+
19
+ - Updated the pull request template to refer to Aurora instead of Volto. @stevepiercy
20
+
21
+ ### Documentation
22
+
23
+ - Added testing documentation. @pnicolli
24
+
11
25
  ## 1.0.0-alpha.10 (2026-09-21)
12
26
 
13
27
  ### 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.10",
4
+ "version": "1.0.0-alpha.11",
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/client": "2.0.0-alpha.6",
50
- "@plone/components": "5.0.0-alpha.3",
49
+ "@plone/client": "2.0.0-alpha.7",
50
+ "@plone/cmsui": "1.0.0-alpha.8",
51
+ "@plone/components": "5.0.0-alpha.4",
52
+ "@plone/layout": "1.0.0-alpha.12",
51
53
  "@plone/helpers": "2.0.0-alpha.8",
52
- "@plone/publicui": "1.0.0-alpha.6",
53
- "@plone/cmsui": "1.0.0-alpha.7",
54
- "@plone/react-router": "2.0.0-alpha.6",
55
- "@plone/layout": "1.0.0-alpha.11",
54
+ "@plone/contents": "1.0.0-alpha.2",
55
+ "@plone/plate": "1.0.0-alpha.17",
56
+ "@plone/publicui": "1.0.0-alpha.7",
56
57
  "@plone/registry": "4.0.0-alpha.3",
57
- "@plone/theming": "1.0.0-alpha.7",
58
- "@plone/blocks": "1.0.0-alpha.14",
59
- "@plone/plate": "1.0.0-alpha.16",
60
- "@plone/contents": "1.0.0-alpha.1"
58
+ "@plone/react-router": "2.0.0-alpha.6",
59
+ "@plone/blocks": "1.0.0-alpha.15",
60
+ "@plone/theming": "1.0.0-alpha.7"
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.5"
81
+ "@plone/types": "3.0.0-alpha.6"
82
82
  },
83
83
  "engines": {
84
84
  "node": ">=22.22.0"