@puckeditor/core 0.21.1 → 0.21.2-canary.20ba367f
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/README.md +1 -1
- package/dist/{Editor-NK3TZSR6.mjs → Editor-JHS34JLP.mjs} +9 -9
- package/dist/{actions-BkBoKAc5.d.mts → actions-C3e2nJ9v.d.mts} +2 -2
- package/dist/{actions-BkBoKAc5.d.ts → actions-C3e2nJ9v.d.ts} +2 -2
- package/dist/{chunk-5V242HXR.mjs → chunk-46RDHJGL.mjs} +7 -7
- package/dist/{chunk-PMXRXC2B.mjs → chunk-754HNMU2.mjs} +18 -11
- package/dist/{chunk-UMTU6EA7.mjs → chunk-AFOEZCNE.mjs} +19 -10
- package/dist/{chunk-MDUBGHWF.mjs → chunk-BOKX3EBR.mjs} +3 -12
- package/dist/{chunk-KOUWDQ4Q.mjs → chunk-BSAENBPL.mjs} +1 -1
- package/dist/{chunk-TNORMHZU.mjs → chunk-FOGDNETJ.mjs} +4 -4
- package/dist/{chunk-RHVK562Z.mjs → chunk-GYDP2UKB.mjs} +3 -3
- package/dist/{chunk-MSZPUXZP.mjs → chunk-JGZBBNEW.mjs} +1 -1
- package/dist/{chunk-EBISZQTK.mjs → chunk-O2C2U6RY.mjs} +5611 -5612
- package/dist/{chunk-SKJTJUWU.mjs → chunk-TVE6QYBR.mjs} +1 -1
- package/dist/{chunk-37HTE4KO.mjs → chunk-YLLE6KXH.mjs} +1 -1
- package/dist/{full-KLPRWVS4.mjs → full-ATSD2DNB.mjs} +8 -8
- package/dist/{index-bqD1SEOb.d.mts → index-CMP1bTUS.d.mts} +1 -1
- package/dist/{index-lt1zf5WR.d.ts → index-DnAz_ZaB.d.ts} +1 -1
- package/dist/index.css +82 -82
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5281 -5272
- package/dist/index.mjs +17 -12
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +16 -11
- package/dist/internal.mjs +2 -2
- package/dist/{loaded-SJJ63OY2.mjs → loaded-2765LE3N.mjs} +5 -5
- package/dist/{loaded-362ACKSQ.mjs → loaded-ANEJLSYJ.mjs} +5 -5
- package/dist/{loaded-DIHUQBWF.mjs → loaded-BKAMJ2FS.mjs} +5 -5
- package/dist/no-external.css +225 -229
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +5278 -5272
- package/dist/no-external.mjs +11 -11
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +8 -11
- package/dist/rsc.mjs +3 -3
- package/dist/{walk-tree-CRRDqx6_.d.mts → walk-tree-BJoNgZ0l.d.mts} +1 -1
- package/dist/{walk-tree-CS7sEpfG.d.ts → walk-tree-f8Yzs5o3.d.ts} +1 -1
- package/package.json +1 -1
package/dist/no-external.mjs
CHANGED
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
setDeep,
|
|
18
18
|
useGetPuck,
|
|
19
19
|
usePuck
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-O2C2U6RY.mjs";
|
|
21
|
+
import "./chunk-GYDP2UKB.mjs";
|
|
22
22
|
import {
|
|
23
23
|
migrate,
|
|
24
24
|
resolveAllData,
|
|
25
25
|
transformProps
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FOGDNETJ.mjs";
|
|
27
27
|
import "./chunk-AOEDIUVK.mjs";
|
|
28
28
|
import {
|
|
29
29
|
Action,
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
Label,
|
|
34
34
|
RichTextMenu,
|
|
35
35
|
Separator
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-46RDHJGL.mjs";
|
|
37
|
+
import "./chunk-JGZBBNEW.mjs";
|
|
38
|
+
import "./chunk-BSAENBPL.mjs";
|
|
39
|
+
import "./chunk-TVE6QYBR.mjs";
|
|
40
|
+
import "./chunk-AFOEZCNE.mjs";
|
|
41
|
+
import "./chunk-YLLE6KXH.mjs";
|
|
42
|
+
import "./chunk-BOKX3EBR.mjs";
|
|
43
43
|
import "./chunk-Y2EFNT5P.mjs";
|
|
44
44
|
import {
|
|
45
45
|
walkTree
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-754HNMU2.mjs";
|
|
47
47
|
import {
|
|
48
48
|
init_react_import
|
|
49
49
|
} from "./chunk-M6W7YEVX.mjs";
|
package/dist/rsc.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './actions-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-C3e2nJ9v.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-BJoNgZ0l.mjs';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { C as Config, U as UserGenerics, M as Metadata } from './actions-
|
|
3
|
-
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-
|
|
2
|
+
import { C as Config, U as UserGenerics, M as Metadata } from './actions-C3e2nJ9v.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-f8Yzs5o3.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import '@tiptap/react';
|
|
6
6
|
import '@tiptap/extension-blockquote';
|
package/dist/rsc.js
CHANGED
|
@@ -1276,7 +1276,7 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
|
|
|
1276
1276
|
id
|
|
1277
1277
|
});
|
|
1278
1278
|
processRelatedZones(item, id, path);
|
|
1279
|
-
const newItem = __spreadProps(__spreadValues({},
|
|
1279
|
+
const newItem = __spreadProps(__spreadValues({}, mappedItem), { props: newProps });
|
|
1280
1280
|
const thisZoneCompound = path[path.length - 1];
|
|
1281
1281
|
const [parentId, zone] = thisZoneCompound ? thisZoneCompound.split(":") : [null, ""];
|
|
1282
1282
|
newNodeIndex[id] = {
|
|
@@ -1316,17 +1316,14 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
|
|
|
1316
1316
|
);
|
|
1317
1317
|
newZones[zoneCompound] = newContent2;
|
|
1318
1318
|
}, newZones);
|
|
1319
|
-
|
|
1320
|
-
{
|
|
1321
|
-
type: "root",
|
|
1322
|
-
props: __spreadProps(__spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root), { id: "root" })
|
|
1323
|
-
},
|
|
1324
|
-
[],
|
|
1325
|
-
-1
|
|
1326
|
-
);
|
|
1327
|
-
const root = __spreadProps(__spreadValues({}, state.data.root), {
|
|
1328
|
-
props: processedRoot.props
|
|
1319
|
+
let rootAsComponent = toComponent({
|
|
1320
|
+
props: __spreadValues({}, (_a = state.data.root.props) != null ? _a : state.data.root)
|
|
1329
1321
|
});
|
|
1322
|
+
if (state.data.root.readOnly) {
|
|
1323
|
+
rootAsComponent.readOnly = state.data.root.readOnly;
|
|
1324
|
+
}
|
|
1325
|
+
const processedRoot = processItem(rootAsComponent, [], -1);
|
|
1326
|
+
const root = __spreadValues(__spreadValues({}, state.data.root), processedRoot);
|
|
1330
1327
|
return __spreadProps(__spreadValues({}, state), {
|
|
1331
1328
|
data: {
|
|
1332
1329
|
root,
|
package/dist/rsc.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
transformProps,
|
|
6
6
|
useRichtextProps,
|
|
7
7
|
useSlots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FOGDNETJ.mjs";
|
|
9
9
|
import "./chunk-AOEDIUVK.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-BOKX3EBR.mjs";
|
|
11
11
|
import "./chunk-Y2EFNT5P.mjs";
|
|
12
12
|
import {
|
|
13
13
|
rootAreaId,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
rootZone,
|
|
16
16
|
setupZone,
|
|
17
17
|
walkTree
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-754HNMU2.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__spreadProps,
|
|
21
21
|
__spreadValues,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, b as Content, c as ComponentData, d as DefaultComponents, e as DefaultComponentProps, f as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, b as Content, c as ComponentData, d as DefaultComponents, e as DefaultComponentProps, f as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-C3e2nJ9v.mjs';
|
|
2
2
|
|
|
3
3
|
type MigrationOptions<UserConfig extends Config> = {
|
|
4
4
|
migrateDynamicZonesForComponent?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as Config, D as Data, W as WithId, U as UserGenerics, b as Content, c as ComponentData, d as DefaultComponents, e as DefaultComponentProps, f as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-
|
|
1
|
+
import { C as Config, D as Data, W as WithId, U as UserGenerics, b as Content, c as ComponentData, d as DefaultComponents, e as DefaultComponentProps, f as DefaultRootFieldProps, M as Metadata, R as RootData } from './actions-C3e2nJ9v.js';
|
|
2
2
|
|
|
3
3
|
type MigrationOptions<UserConfig extends Config> = {
|
|
4
4
|
migrateDynamicZonesForComponent?: {
|