@puckeditor/core 0.21.2-canary.edc81920 → 0.21.2
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-JHS34JLP.mjs → Editor-EPSED64A.mjs} +6 -6
- package/dist/{actions-BRYM0ifH.d.mts → actions-C3e2nJ9v.d.mts} +1 -1
- package/dist/{actions-BRYM0ifH.d.ts → actions-C3e2nJ9v.d.ts} +1 -1
- package/dist/{chunk-AFOEZCNE.mjs → chunk-22UJFAFA.mjs} +35 -37
- package/dist/{chunk-JGZBBNEW.mjs → chunk-BCL7VBTL.mjs} +1 -1
- package/dist/{chunk-46RDHJGL.mjs → chunk-G74MZKKD.mjs} +7 -7
- package/dist/{chunk-BSAENBPL.mjs → chunk-K23YHISE.mjs} +1 -1
- package/dist/{chunk-LBGOSTI5.mjs → chunk-PK2F2YZX.mjs} +1128 -633
- package/dist/{chunk-TVE6QYBR.mjs → chunk-U6THAD4G.mjs} +1 -1
- package/dist/{chunk-GYDP2UKB.mjs → chunk-WCC2G7U7.mjs} +3 -3
- package/dist/{full-ATSD2DNB.mjs → full-N67EAB2Q.mjs} +5 -5
- package/dist/{index-D_Idfrfb.d.ts → index-Cx46WIFC.d.ts} +9 -10
- package/dist/{index-BVLGipsj.d.mts → index-zHrchQGY.d.mts} +9 -10
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1192 -717
- package/dist/index.mjs +7 -7
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/{loaded-BKAMJ2FS.mjs → loaded-F37CNCVG.mjs} +2 -2
- package/dist/{loaded-2765LE3N.mjs → loaded-H325ZSK5.mjs} +2 -2
- package/dist/{loaded-ANEJLSYJ.mjs → loaded-MIY725CK.mjs} +2 -2
- package/dist/no-external.d.mts +3 -3
- package/dist/no-external.d.ts +3 -3
- package/dist/no-external.js +1192 -717
- package/dist/no-external.mjs +7 -7
- package/dist/rsc.d.mts +2 -2
- package/dist/rsc.d.ts +2 -2
- package/dist/rsc.js +42 -24
- package/dist/rsc.mjs +42 -24
- package/dist/{walk-tree-C1Zdgx7d.d.mts → walk-tree-BJoNgZ0l.d.mts} +1 -1
- package/dist/{walk-tree-DQyC1GA7.d.ts → walk-tree-f8Yzs5o3.d.ts} +1 -1
- package/package.json +2 -1
|
@@ -4,16 +4,16 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
EditorInner,
|
|
6
6
|
LoadedRichTextMenu
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WCC2G7U7.mjs";
|
|
8
8
|
import "./chunk-AOEDIUVK.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-G74MZKKD.mjs";
|
|
10
|
+
import "./chunk-BCL7VBTL.mjs";
|
|
11
|
+
import "./chunk-K23YHISE.mjs";
|
|
12
|
+
import "./chunk-U6THAD4G.mjs";
|
|
13
13
|
import {
|
|
14
14
|
useAppStore,
|
|
15
15
|
useAppStoreApi
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-22UJFAFA.mjs";
|
|
17
17
|
import "./chunk-YLLE6KXH.mjs";
|
|
18
18
|
import "./chunk-BOKX3EBR.mjs";
|
|
19
19
|
import "./chunk-Y2EFNT5P.mjs";
|
|
@@ -308,7 +308,7 @@ type CustomFieldRender<Value extends any> = (props: {
|
|
|
308
308
|
name: string;
|
|
309
309
|
id: string;
|
|
310
310
|
value: Value;
|
|
311
|
-
onChange: (value: Value) => void;
|
|
311
|
+
onChange: (value: Value, uiState?: Partial<UiState>) => void;
|
|
312
312
|
readOnly?: boolean;
|
|
313
313
|
}) => ReactElement;
|
|
314
314
|
interface CustomField<Value extends any> extends BaseField {
|
|
@@ -308,7 +308,7 @@ type CustomFieldRender<Value extends any> = (props: {
|
|
|
308
308
|
name: string;
|
|
309
309
|
id: string;
|
|
310
310
|
value: Value;
|
|
311
|
-
onChange: (value: Value) => void;
|
|
311
|
+
onChange: (value: Value, uiState?: Partial<UiState>) => void;
|
|
312
312
|
readOnly?: boolean;
|
|
313
313
|
}) => ReactElement;
|
|
314
314
|
interface CustomField<Value extends any> extends BaseField {
|
|
@@ -861,44 +861,39 @@ function useRegisterHistorySlice(appStore, {
|
|
|
861
861
|
|
|
862
862
|
// store/slices/nodes.ts
|
|
863
863
|
init_react_import();
|
|
864
|
-
var createNodesSlice = (
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
})
|
|
884
|
-
})
|
|
885
|
-
})
|
|
886
|
-
});
|
|
887
|
-
},
|
|
888
|
-
unregisterNode: (id) => {
|
|
889
|
-
const s = get().nodes;
|
|
890
|
-
const existingNode = s.nodes[id];
|
|
891
|
-
if (existingNode) {
|
|
892
|
-
const newNodes = __spreadValues({}, s.nodes);
|
|
893
|
-
delete newNodes[id];
|
|
894
|
-
set({
|
|
895
|
-
nodes: __spreadProps(__spreadValues({}, s), {
|
|
896
|
-
nodes: newNodes
|
|
897
|
-
})
|
|
864
|
+
var createNodesSlice = (_set, _get) => {
|
|
865
|
+
const registry = /* @__PURE__ */ new Map();
|
|
866
|
+
return {
|
|
867
|
+
registerNode: (id, handle) => {
|
|
868
|
+
registry.set(id, handle);
|
|
869
|
+
},
|
|
870
|
+
unregisterNode: (id) => {
|
|
871
|
+
registry.delete(id);
|
|
872
|
+
},
|
|
873
|
+
syncNode: (id) => {
|
|
874
|
+
var _a;
|
|
875
|
+
if (!id) return;
|
|
876
|
+
(_a = registry.get(id)) == null ? void 0 : _a.sync();
|
|
877
|
+
},
|
|
878
|
+
syncNodes: (ids) => {
|
|
879
|
+
ids.forEach((id) => {
|
|
880
|
+
var _a;
|
|
881
|
+
if (!id) return;
|
|
882
|
+
(_a = registry.get(id)) == null ? void 0 : _a.sync();
|
|
898
883
|
});
|
|
884
|
+
},
|
|
885
|
+
setOverlayVisible: (id, visible) => {
|
|
886
|
+
if (!id) return;
|
|
887
|
+
const node = registry.get(id);
|
|
888
|
+
if (!node) return;
|
|
889
|
+
if (visible) {
|
|
890
|
+
node.showOverlay();
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
node.hideOverlay();
|
|
899
894
|
}
|
|
900
|
-
}
|
|
901
|
-
}
|
|
895
|
+
};
|
|
896
|
+
};
|
|
902
897
|
|
|
903
898
|
// store/slices/permissions.ts
|
|
904
899
|
init_react_import();
|
|
@@ -1182,6 +1177,8 @@ var createAppStore = (initialAppStore) => create2()(
|
|
|
1182
1177
|
},
|
|
1183
1178
|
status: "LOADING",
|
|
1184
1179
|
iframe: {},
|
|
1180
|
+
_experimentalFullScreenCanvas: false,
|
|
1181
|
+
_experimentalVirtualization: false,
|
|
1185
1182
|
metadata: {},
|
|
1186
1183
|
fieldTransforms: {}
|
|
1187
1184
|
}, initialAppStore), {
|
|
@@ -1317,7 +1314,8 @@ var createAppStore = (initialAppStore) => create2()(
|
|
|
1317
1314
|
state,
|
|
1318
1315
|
config,
|
|
1319
1316
|
(content) => content,
|
|
1320
|
-
(childItem) => {
|
|
1317
|
+
(childItem, path) => {
|
|
1318
|
+
if (path.length > 1) return childItem;
|
|
1321
1319
|
resolveComponentData2(childItem, "load").then((resolved) => {
|
|
1322
1320
|
const { state: state2 } = get();
|
|
1323
1321
|
const node = state2.indexes.nodes[resolved.node.props.id];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useAlignOptions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BCL7VBTL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useHeadingOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K23YHISE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
useListOptions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U6THAD4G.mjs";
|
|
10
10
|
import {
|
|
11
11
|
AlignCenter,
|
|
12
12
|
AlignJustify,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
Strikethrough,
|
|
27
27
|
Underline,
|
|
28
28
|
useControlContext
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-22UJFAFA.mjs";
|
|
30
30
|
import {
|
|
31
31
|
get_class_name_factory_default
|
|
32
32
|
} from "./chunk-Y2EFNT5P.mjs";
|
|
@@ -349,7 +349,7 @@ function AlignSelectFallback() {
|
|
|
349
349
|
// components/RichTextMenu/controls/AlignSelect/index.tsx
|
|
350
350
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
351
351
|
var AlignSelectLoaded = lazy(
|
|
352
|
-
() => import("./loaded-
|
|
352
|
+
() => import("./loaded-MIY725CK.mjs").then((m) => ({
|
|
353
353
|
default: m.AlignSelectLoaded
|
|
354
354
|
}))
|
|
355
355
|
);
|
|
@@ -580,7 +580,7 @@ function HeadingSelectFallback() {
|
|
|
580
580
|
// components/RichTextMenu/controls/HeadingSelect/index.tsx
|
|
581
581
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
582
582
|
var HeadingSelectLoaded = lazy2(
|
|
583
|
-
() => import("./loaded-
|
|
583
|
+
() => import("./loaded-F37CNCVG.mjs").then((m) => ({
|
|
584
584
|
default: m.HeadingSelectLoaded
|
|
585
585
|
}))
|
|
586
586
|
);
|
|
@@ -612,7 +612,7 @@ function ListSelectFallback() {
|
|
|
612
612
|
// components/RichTextMenu/controls/ListSelect/index.tsx
|
|
613
613
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
614
614
|
var ListSelectLoaded = lazy3(
|
|
615
|
-
() => import("./loaded-
|
|
615
|
+
() => import("./loaded-H325ZSK5.mjs").then((m) => ({
|
|
616
616
|
default: m.ListSelectLoaded
|
|
617
617
|
}))
|
|
618
618
|
);
|