@puckeditor/core 0.22.1 → 0.23.0-canary.20671fd7
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/dist/{Editor-MXSH3OSX.mjs → Editor-BJP5AFD5.mjs} +9 -9
- package/dist/{chunk-HRNJ42TO.mjs → chunk-25QAPMLH.mjs} +1 -1
- package/dist/{chunk-VOB4L2BJ.mjs → chunk-BMRBP3ET.mjs} +3 -3
- package/dist/{chunk-2AATV7NG.mjs → chunk-EYJW64M2.mjs} +21 -10
- package/dist/{chunk-DATOBXTJ.mjs → chunk-HB4CVO3I.mjs} +15 -8
- package/dist/{chunk-54LFCIWQ.mjs → chunk-JHNG6XYK.mjs} +122 -7
- package/dist/{chunk-FKYOVZNF.mjs → chunk-JNJJ2M57.mjs} +2 -2
- package/dist/{chunk-BVKXFA4V.mjs → chunk-MU6IPW26.mjs} +27 -12
- package/dist/{chunk-6PIQFZBM.mjs → chunk-Q6WCB6GM.mjs} +297 -160
- package/dist/{chunk-74HKFKJU.mjs → chunk-QHQD3BMI.mjs} +7 -5
- package/dist/{chunk-73XKHVBN.mjs → chunk-WQV7W7OC.mjs} +37 -22
- package/dist/{chunk-GR7NLT4T.mjs → chunk-WUO7D6OQ.mjs} +1 -1
- package/dist/{full-7JVAMOPS.mjs → full-7ONH7UPJ.mjs} +8 -8
- package/dist/{index-ClzBCbx_.d.mts → index-De5Tn61v.d.mts} +85 -1
- package/dist/{index-B1b1cFug.d.ts → index-t7c1w81O.d.ts} +85 -1
- package/dist/index.d.mts +20 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.js +500 -154
- package/dist/index.mjs +11 -11
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +7 -5
- package/dist/internal.mjs +2 -2
- package/dist/{loaded-HECCGJKO.mjs → loaded-35D7XAOE.mjs} +5 -5
- package/dist/{loaded-B7563MDT.mjs → loaded-6YDNF4HS.mjs} +5 -5
- package/dist/{loaded-EFZRGV2Y.mjs → loaded-PF5Y4VWH.mjs} +5 -5
- package/dist/no-external.d.mts +2 -2
- package/dist/no-external.d.ts +2 -2
- package/dist/no-external.js +500 -154
- package/dist/no-external.mjs +11 -11
- package/dist/rsc.js +7 -5
- package/dist/rsc.mjs +3 -3
- package/package.json +1 -1
package/dist/no-external.mjs
CHANGED
|
@@ -17,20 +17,20 @@ import {
|
|
|
17
17
|
setDeep,
|
|
18
18
|
useGetPuck,
|
|
19
19
|
usePuck
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-Q6WCB6GM.mjs";
|
|
21
|
+
import "./chunk-BMRBP3ET.mjs";
|
|
22
22
|
import {
|
|
23
23
|
migrate,
|
|
24
24
|
resolveAllData,
|
|
25
25
|
transformProps
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JNJJ2M57.mjs";
|
|
27
27
|
import "./chunk-H635BA2V.mjs";
|
|
28
28
|
import {
|
|
29
29
|
RichTextMenu
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-WQV7W7OC.mjs";
|
|
31
|
+
import "./chunk-EYJW64M2.mjs";
|
|
32
|
+
import "./chunk-MU6IPW26.mjs";
|
|
33
|
+
import "./chunk-HB4CVO3I.mjs";
|
|
34
34
|
import {
|
|
35
35
|
Action,
|
|
36
36
|
ActionBar,
|
|
@@ -38,13 +38,13 @@ import {
|
|
|
38
38
|
IconButton,
|
|
39
39
|
Label,
|
|
40
40
|
Separator
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-JHNG6XYK.mjs";
|
|
42
|
+
import "./chunk-25QAPMLH.mjs";
|
|
43
|
+
import "./chunk-WUO7D6OQ.mjs";
|
|
44
44
|
import "./chunk-Y2EFNT5P.mjs";
|
|
45
45
|
import {
|
|
46
46
|
walkTree
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-QHQD3BMI.mjs";
|
|
48
48
|
import {
|
|
49
49
|
init_react_import
|
|
50
50
|
} from "./chunk-M6W7YEVX.mjs";
|
package/dist/rsc.js
CHANGED
|
@@ -497,10 +497,11 @@ var walkObject = ({
|
|
|
497
497
|
getPropPath,
|
|
498
498
|
config,
|
|
499
499
|
recurseSlots,
|
|
500
|
-
ownedFields
|
|
500
|
+
ownedFields,
|
|
501
|
+
keysToWalk: providedKeys
|
|
501
502
|
}) => {
|
|
502
|
-
const keys = Object.keys(value);
|
|
503
|
-
if (ownedFields) {
|
|
503
|
+
const keys = providedKeys != null ? providedKeys : Object.keys(value);
|
|
504
|
+
if (!providedKeys && ownedFields) {
|
|
504
505
|
for (const fieldName in fields) {
|
|
505
506
|
const fieldType = fields[fieldName].type;
|
|
506
507
|
if (fieldType !== "slot" && mappers[fieldType] && !(fieldName in value)) {
|
|
@@ -534,7 +535,7 @@ var walkObject = ({
|
|
|
534
535
|
}
|
|
535
536
|
return flatten(newProps);
|
|
536
537
|
};
|
|
537
|
-
function mapFields(item, mappers, config, recurseSlots = false, shouldDefaultSlots = true) {
|
|
538
|
+
function mapFields(item, mappers, config, recurseSlots = false, shouldDefaultSlots = true, fieldsToMap) {
|
|
538
539
|
var _a, _b, _c, _d, _e;
|
|
539
540
|
const itemType = "type" in item ? item.type : "root";
|
|
540
541
|
const componentConfig = itemType === "root" ? config.root : (_a = config.components) == null ? void 0 : _a[itemType];
|
|
@@ -546,7 +547,8 @@ function mapFields(item, mappers, config, recurseSlots = false, shouldDefaultSlo
|
|
|
546
547
|
getPropPath: (k) => k,
|
|
547
548
|
config,
|
|
548
549
|
recurseSlots,
|
|
549
|
-
ownedFields: true
|
|
550
|
+
ownedFields: true,
|
|
551
|
+
keysToWalk: fieldsToMap
|
|
550
552
|
});
|
|
551
553
|
if (isPromise(newProps)) {
|
|
552
554
|
return newProps.then((resolvedProps) => __spreadProps(__spreadValues({}, item), {
|
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-JNJJ2M57.mjs";
|
|
9
9
|
import "./chunk-H635BA2V.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-WUO7D6OQ.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-QHQD3BMI.mjs";
|
|
19
19
|
import {
|
|
20
20
|
__spreadProps,
|
|
21
21
|
__spreadValues,
|