@puckeditor/core 0.21.1 → 0.21.2-canary.2fa198e1
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-BRYM0ifH.d.mts} +1 -1
- package/dist/{actions-BkBoKAc5.d.ts → actions-BRYM0ifH.d.ts} +1 -1
- 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-LBGOSTI5.mjs} +3642 -3627
- 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-BVLGipsj.d.mts} +1 -1
- package/dist/{index-lt1zf5WR.d.ts → index-D_Idfrfb.d.ts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +99 -74
- 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 +143 -147
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +97 -75
- 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-C1Zdgx7d.d.mts} +1 -1
- package/dist/{walk-tree-CS7sEpfG.d.ts → walk-tree-DQyC1GA7.d.ts} +1 -1
- package/package.json +1 -1
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-BRYM0ifH.mjs';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-C1Zdgx7d.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-BRYM0ifH.js';
|
|
3
|
+
export { m as migrate, r as resolveAllData, t as transformProps, w as walkTree } from './walk-tree-DQyC1GA7.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-BRYM0ifH.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-BRYM0ifH.js';
|
|
2
2
|
|
|
3
3
|
type MigrationOptions<UserConfig extends Config> = {
|
|
4
4
|
migrateDynamicZonesForComponent?: {
|