@crediblemark/build 0.22.2 → 0.22.4
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 -5
- package/dist/ArrayField-EPM4TV3J.mjs +538 -0
- package/dist/ArrayField-ZD5UTLNU.css +1216 -0
- package/dist/{Editor-XZF6CWVW.css → Editor-E7FALXHL.css} +7 -7
- package/dist/{Editor-ZC67OU2A.mjs → Editor-L674TD7T.mjs} +16 -18
- package/dist/ObjectField-MW3SSNKI.mjs +87 -0
- package/dist/ObjectField-SQKROKJM.css +1216 -0
- package/dist/{Render-WCX4AXOX.css → Render-JDXVKZXN.css} +1 -1
- package/dist/{Render-JBFI6HYN.mjs → Render-WP5OOTBB.mjs} +4 -7
- package/dist/chunk-2JUMF5G3.mjs +1145 -0
- package/dist/{chunk-VGDMWS44.mjs → chunk-4PJ4QMWI.mjs} +4 -25
- package/dist/{chunk-3AJBFQU4.mjs → chunk-64A37UUC.mjs} +19 -53
- package/dist/{chunk-QF3GD5WQ.mjs → chunk-67TMLSKM.mjs} +1 -5
- package/dist/{chunk-GUJDGRSM.mjs → chunk-7LXZOPYT.mjs} +5 -29
- package/dist/chunk-AEKBE267.mjs +19 -0
- package/dist/chunk-AFVEAZTD.mjs +2 -0
- package/dist/{chunk-IJHL7BIR.mjs → chunk-AL77I3BV.mjs} +1 -6
- package/dist/chunk-BFHV72KK.mjs +31 -0
- package/dist/{chunk-PHGC6QYB.mjs → chunk-DEUK76GN.mjs} +0 -5
- package/dist/{chunk-4SQOX3ZQ.mjs → chunk-DVK7K7D6.mjs} +5 -27
- package/dist/{chunk-VKBVSWU3.mjs → chunk-JNHQNNGW.mjs} +3672 -5905
- package/dist/{chunk-HHBUU7WF.mjs → chunk-JNMMY5D7.mjs} +1 -5
- package/dist/chunk-K27LFPQL.mjs +339 -0
- package/dist/{chunk-VFD76OD5.mjs → chunk-NYBWAKLT.mjs} +1 -5
- package/dist/chunk-RDTXKOE7.mjs +60 -0
- package/dist/{chunk-CDMESQDA.mjs → chunk-SMAWAXVX.mjs} +1 -10
- package/dist/{chunk-DSXRK4QJ.mjs → chunk-T6RT6PV4.mjs} +13 -62
- package/dist/{chunk-U2NVBXAC.mjs → chunk-ZY24NW7X.mjs} +246 -358
- package/dist/{full-ABQQRJAO.css → full-MY4DABK6.css} +6 -6
- package/dist/{full-LJRK5736.mjs → full-SGY5HNVB.mjs} +10 -14
- package/dist/index.css +588 -294
- package/dist/index.d.mts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +5985 -5656
- package/dist/index.mjs +23 -25
- package/dist/internal.mjs +3 -8
- package/dist/{loaded-NE2PIHUQ.mjs → loaded-2GLOBOVP.mjs} +7 -10
- package/dist/{loaded-N7VXUR4O.mjs → loaded-AH3CPHD2.mjs} +7 -10
- package/dist/{loaded-DWCENJKQ.mjs → loaded-ARSKBJWP.mjs} +7 -10
- package/dist/{loaded-SMEIWWHS.css → loaded-E7C36OKZ.css} +1 -1
- package/dist/no-external.css +299 -294
- package/dist/no-external.d.mts +1 -1
- package/dist/no-external.d.ts +1 -1
- package/dist/no-external.js +5985 -5656
- package/dist/no-external.mjs +23 -25
- package/dist/rsc.css +1 -1
- package/dist/rsc.js +5 -79
- package/dist/rsc.mjs +6 -12
- package/package.json +7 -2
- package/dist/chunk-B4BOBGYB.mjs +0 -42
- package/dist/chunk-YH7AXYKP.mjs +0 -109
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
styles_module_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
LoadedRichTextMenuInner
|
|
6
|
-
} from "./chunk-DSXRK4QJ.mjs";
|
|
3
|
+
} from "./chunk-AL77I3BV.mjs";
|
|
7
4
|
import {
|
|
8
5
|
useAppStore,
|
|
9
6
|
useAppStoreApi
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZY24NW7X.mjs";
|
|
11
8
|
import {
|
|
12
9
|
get_class_name_factory_default
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
init_react_import
|
|
16
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
10
|
+
} from "./chunk-BFHV72KK.mjs";
|
|
17
11
|
|
|
18
12
|
// components/RichTextEditor/components/EditorInner.tsx
|
|
19
|
-
init_react_import();
|
|
20
13
|
import {
|
|
21
14
|
memo,
|
|
22
15
|
useCallback
|
|
@@ -88,20 +81,6 @@ var EditorInner = memo(
|
|
|
88
81
|
);
|
|
89
82
|
EditorInner.displayName = "EditorInner";
|
|
90
83
|
|
|
91
|
-
// components/RichTextMenu/index.tsx
|
|
92
|
-
init_react_import();
|
|
93
|
-
import { lazy, Suspense } from "react";
|
|
94
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
95
|
-
var LoadedRichTextMenuFull = lazy(
|
|
96
|
-
() => import("./full-LJRK5736.mjs").then((m) => ({
|
|
97
|
-
default: m.LoadedRichTextMenuFull
|
|
98
|
-
}))
|
|
99
|
-
);
|
|
100
|
-
var LoadedRichTextMenu = (props) => {
|
|
101
|
-
return /* @__PURE__ */ jsx2(Suspense, { fallback: /* @__PURE__ */ jsx2(LoadedRichTextMenuInner, { ...props }), children: /* @__PURE__ */ jsx2(LoadedRichTextMenuFull, { ...props }) });
|
|
102
|
-
};
|
|
103
|
-
|
|
104
84
|
export {
|
|
105
|
-
EditorInner
|
|
106
|
-
LoadedRichTextMenu
|
|
85
|
+
EditorInner
|
|
107
86
|
};
|
|
@@ -4,16 +4,28 @@ import {
|
|
|
4
4
|
setupZone,
|
|
5
5
|
walkAppState,
|
|
6
6
|
walkTree
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
init_react_import
|
|
10
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
7
|
+
} from "./chunk-7LXZOPYT.mjs";
|
|
11
8
|
|
|
12
|
-
//
|
|
13
|
-
|
|
9
|
+
// lib/data/populate-ids.ts
|
|
10
|
+
var populateIds = (data, config, override = false) => {
|
|
11
|
+
const id = generateId(data.type);
|
|
12
|
+
return walkTree(
|
|
13
|
+
{
|
|
14
|
+
...data,
|
|
15
|
+
props: override ? { ...data.props, id } : { ...data.props }
|
|
16
|
+
},
|
|
17
|
+
config,
|
|
18
|
+
(contents) => contents.map((item) => {
|
|
19
|
+
const id2 = generateId(item.type);
|
|
20
|
+
return {
|
|
21
|
+
...item,
|
|
22
|
+
props: override ? { ...item.props, id: id2 } : { id: id2, ...item.props }
|
|
23
|
+
};
|
|
24
|
+
})
|
|
25
|
+
);
|
|
26
|
+
};
|
|
14
27
|
|
|
15
28
|
// reducer/actions/set.ts
|
|
16
|
-
init_react_import();
|
|
17
29
|
var setAction = (state, action, appStore) => {
|
|
18
30
|
if (typeof action.state === "object") {
|
|
19
31
|
const newState = {
|
|
@@ -31,11 +43,7 @@ var setAction = (state, action, appStore) => {
|
|
|
31
43
|
return { ...state, ...action.state(state) };
|
|
32
44
|
};
|
|
33
45
|
|
|
34
|
-
// reducer/actions/insert.ts
|
|
35
|
-
init_react_import();
|
|
36
|
-
|
|
37
46
|
// lib/data/insert.ts
|
|
38
|
-
init_react_import();
|
|
39
47
|
var insert = (list, index, item) => {
|
|
40
48
|
const result = Array.from(list || []);
|
|
41
49
|
result.splice(index, 0, item);
|
|
@@ -43,33 +51,12 @@ var insert = (list, index, item) => {
|
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
// lib/data/get-ids-for-parent.ts
|
|
46
|
-
init_react_import();
|
|
47
54
|
var getIdsForParent = (zoneCompound, state) => {
|
|
48
55
|
const [parentId] = zoneCompound.split(":");
|
|
49
56
|
const node = state.indexes.nodes[parentId];
|
|
50
57
|
return (node?.path || []).map((p) => p.split(":")[0]);
|
|
51
58
|
};
|
|
52
59
|
|
|
53
|
-
// lib/data/populate-ids.ts
|
|
54
|
-
init_react_import();
|
|
55
|
-
var populateIds = (data, config, override = false) => {
|
|
56
|
-
const id = generateId(data.type);
|
|
57
|
-
return walkTree(
|
|
58
|
-
{
|
|
59
|
-
...data,
|
|
60
|
-
props: override ? { ...data.props, id } : { ...data.props }
|
|
61
|
-
},
|
|
62
|
-
config,
|
|
63
|
-
(contents) => contents.map((item) => {
|
|
64
|
-
const id2 = generateId(item.type);
|
|
65
|
-
return {
|
|
66
|
-
...item,
|
|
67
|
-
props: override ? { ...item.props, id: id2 } : { id: id2, ...item.props }
|
|
68
|
-
};
|
|
69
|
-
})
|
|
70
|
-
);
|
|
71
|
-
};
|
|
72
|
-
|
|
73
60
|
// reducer/actions/insert.ts
|
|
74
61
|
function insertAction(state, action, appStore) {
|
|
75
62
|
const id = action.id || generateId(action.componentType);
|
|
@@ -112,7 +99,6 @@ function insertAction(state, action, appStore) {
|
|
|
112
99
|
}
|
|
113
100
|
|
|
114
101
|
// reducer/actions/replace.ts
|
|
115
|
-
init_react_import();
|
|
116
102
|
var replaceAction = (state, action, appStore) => {
|
|
117
103
|
const [parentId] = action.destinationZone.split(":");
|
|
118
104
|
const idsInPath = getIdsForParent(action.destinationZone, state);
|
|
@@ -173,7 +159,6 @@ var replaceAction = (state, action, appStore) => {
|
|
|
173
159
|
};
|
|
174
160
|
|
|
175
161
|
// reducer/actions/replace-root.ts
|
|
176
|
-
init_react_import();
|
|
177
162
|
var replaceRootAction = (state, action, appStore) => {
|
|
178
163
|
return walkAppState(
|
|
179
164
|
state,
|
|
@@ -192,11 +177,7 @@ var replaceRootAction = (state, action, appStore) => {
|
|
|
192
177
|
);
|
|
193
178
|
};
|
|
194
179
|
|
|
195
|
-
// reducer/actions/duplicate.ts
|
|
196
|
-
init_react_import();
|
|
197
|
-
|
|
198
180
|
// lib/data/get-item.ts
|
|
199
|
-
init_react_import();
|
|
200
181
|
function getItem(selector, state) {
|
|
201
182
|
const zone = state.indexes.zones?.[selector.zone || rootDroppableId];
|
|
202
183
|
return zone ? state.indexes.nodes[zone.contentIds[selector.index]]?.data : void 0;
|
|
@@ -259,14 +240,7 @@ function duplicateAction(state, action, appStore) {
|
|
|
259
240
|
};
|
|
260
241
|
}
|
|
261
242
|
|
|
262
|
-
// reducer/actions/reorder.ts
|
|
263
|
-
init_react_import();
|
|
264
|
-
|
|
265
|
-
// reducer/actions/move.ts
|
|
266
|
-
init_react_import();
|
|
267
|
-
|
|
268
243
|
// lib/data/remove.ts
|
|
269
|
-
init_react_import();
|
|
270
244
|
var remove = (list, index) => {
|
|
271
245
|
const result = Array.from(list);
|
|
272
246
|
result.splice(index, 1);
|
|
@@ -330,7 +304,6 @@ var reorderAction = (state, action, appStore) => {
|
|
|
330
304
|
};
|
|
331
305
|
|
|
332
306
|
// reducer/actions/remove.ts
|
|
333
|
-
init_react_import();
|
|
334
307
|
var removeAction = (state, action, appStore) => {
|
|
335
308
|
const item = getItem({ index: action.index, zone: action.zone }, state);
|
|
336
309
|
const nodesToDelete = Object.entries(state.indexes.nodes).reduce(
|
|
@@ -372,7 +345,6 @@ var removeAction = (state, action, appStore) => {
|
|
|
372
345
|
};
|
|
373
346
|
|
|
374
347
|
// reducer/actions/register-zone.ts
|
|
375
|
-
init_react_import();
|
|
376
348
|
var zoneCache = {};
|
|
377
349
|
function registerZoneAction(state, action) {
|
|
378
350
|
if (zoneCache[action.zone]) {
|
|
@@ -422,7 +394,6 @@ function unregisterZoneAction(state, action) {
|
|
|
422
394
|
}
|
|
423
395
|
|
|
424
396
|
// reducer/actions/set-data.ts
|
|
425
|
-
init_react_import();
|
|
426
397
|
var setDataAction = (state, action, appStore) => {
|
|
427
398
|
if (typeof action.data === "object") {
|
|
428
399
|
console.warn(
|
|
@@ -452,7 +423,6 @@ var setDataAction = (state, action, appStore) => {
|
|
|
452
423
|
};
|
|
453
424
|
|
|
454
425
|
// reducer/actions/set-ui.ts
|
|
455
|
-
init_react_import();
|
|
456
426
|
var setUiAction = (state, action) => {
|
|
457
427
|
if (typeof action.ui === "object") {
|
|
458
428
|
return {
|
|
@@ -473,15 +443,11 @@ var setUiAction = (state, action) => {
|
|
|
473
443
|
};
|
|
474
444
|
|
|
475
445
|
// lib/data/make-state-public.ts
|
|
476
|
-
init_react_import();
|
|
477
446
|
var makeStatePublic = (state) => {
|
|
478
447
|
const { data, ui } = state;
|
|
479
448
|
return { data, ui };
|
|
480
449
|
};
|
|
481
450
|
|
|
482
|
-
// reducer/actions.tsx
|
|
483
|
-
init_react_import();
|
|
484
|
-
|
|
485
451
|
// reducer/index.ts
|
|
486
452
|
function storeInterceptor(reducer, record, onAction) {
|
|
487
453
|
return (state, action) => {
|
|
@@ -5,13 +5,9 @@ import {
|
|
|
5
5
|
Heading4,
|
|
6
6
|
Heading5,
|
|
7
7
|
Heading6
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
init_react_import
|
|
11
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
8
|
+
} from "./chunk-ZY24NW7X.mjs";
|
|
12
9
|
|
|
13
10
|
// components/RichTextMenu/controls/HeadingSelect/use-options.ts
|
|
14
|
-
init_react_import();
|
|
15
11
|
import { useMemo } from "react";
|
|
16
12
|
var optionNodes = {
|
|
17
13
|
h1: { label: "Heading 1", icon: Heading1 },
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_react_import
|
|
3
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
4
|
-
|
|
5
|
-
// lib/data/walk-tree.ts
|
|
6
|
-
init_react_import();
|
|
7
|
-
|
|
8
|
-
// lib/data/map-fields.ts
|
|
9
|
-
init_react_import();
|
|
10
|
-
|
|
11
1
|
// lib/data/default-slots.ts
|
|
12
|
-
init_react_import();
|
|
13
2
|
var defaultSlots = (value, fields) => Object.keys(fields).reduce(
|
|
14
3
|
(acc, fieldName) => fields[fieldName].type === "slot" ? { [fieldName]: [], ...acc } : acc,
|
|
15
4
|
value
|
|
@@ -200,18 +189,19 @@ function walkTree(data, config, callbackFn) {
|
|
|
200
189
|
};
|
|
201
190
|
}
|
|
202
191
|
|
|
192
|
+
// lib/generate-id.ts
|
|
193
|
+
import { v4 as uuidv4 } from "uuid";
|
|
194
|
+
var generateId = (type) => type ? `${type}-${uuidv4()}` : uuidv4();
|
|
195
|
+
|
|
203
196
|
// lib/root-droppable-id.ts
|
|
204
|
-
init_react_import();
|
|
205
197
|
var rootAreaId = "root";
|
|
206
198
|
var rootZone = "default-zone";
|
|
207
199
|
var rootDroppableId = `${rootAreaId}:${rootZone}`;
|
|
208
200
|
|
|
209
201
|
// lib/data/flatten-node.ts
|
|
210
|
-
init_react_import();
|
|
211
202
|
import flat from "flat";
|
|
212
203
|
|
|
213
204
|
// lib/data/strip-slots.ts
|
|
214
|
-
init_react_import();
|
|
215
205
|
var stripSlots = (data, config) => {
|
|
216
206
|
return mapFields(data, { slot: () => null }, config);
|
|
217
207
|
};
|
|
@@ -266,7 +256,6 @@ var expandNode = (node) => {
|
|
|
266
256
|
};
|
|
267
257
|
|
|
268
258
|
// lib/data/to-component.ts
|
|
269
|
-
init_react_import();
|
|
270
259
|
var toComponent = (item) => {
|
|
271
260
|
return "type" in item ? item : {
|
|
272
261
|
...item,
|
|
@@ -275,14 +264,7 @@ var toComponent = (item) => {
|
|
|
275
264
|
};
|
|
276
265
|
};
|
|
277
266
|
|
|
278
|
-
// lib/data/walk-app-state.ts
|
|
279
|
-
init_react_import();
|
|
280
|
-
|
|
281
|
-
// lib/data/for-related-zones.ts
|
|
282
|
-
init_react_import();
|
|
283
|
-
|
|
284
267
|
// lib/get-zone-id.ts
|
|
285
|
-
init_react_import();
|
|
286
268
|
var getZoneId = (zoneCompound) => {
|
|
287
269
|
if (!zoneCompound) {
|
|
288
270
|
return [];
|
|
@@ -433,13 +415,7 @@ function walkAppState(state, config, mapContent = (content) => content, mapNodeO
|
|
|
433
415
|
};
|
|
434
416
|
}
|
|
435
417
|
|
|
436
|
-
// lib/generate-id.ts
|
|
437
|
-
init_react_import();
|
|
438
|
-
import { v4 as uuidv4 } from "uuid";
|
|
439
|
-
var generateId = (type) => type ? `${type}-${uuidv4()}` : uuidv4();
|
|
440
|
-
|
|
441
418
|
// lib/data/setup-zone.ts
|
|
442
|
-
init_react_import();
|
|
443
419
|
var setupZone = (data, zoneKey) => {
|
|
444
420
|
if (zoneKey === rootDroppableId) {
|
|
445
421
|
return data;
|
|
@@ -453,6 +429,7 @@ var setupZone = (data, zoneKey) => {
|
|
|
453
429
|
};
|
|
454
430
|
|
|
455
431
|
export {
|
|
432
|
+
generateId,
|
|
456
433
|
rootAreaId,
|
|
457
434
|
rootZone,
|
|
458
435
|
rootDroppableId,
|
|
@@ -463,7 +440,6 @@ export {
|
|
|
463
440
|
expandNode,
|
|
464
441
|
toComponent,
|
|
465
442
|
walkAppState,
|
|
466
|
-
generateId,
|
|
467
443
|
walkTree,
|
|
468
444
|
setupZone
|
|
469
445
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LoadedRichTextMenuInner
|
|
3
|
+
} from "./chunk-T6RT6PV4.mjs";
|
|
4
|
+
|
|
5
|
+
// components/RichTextMenu/index.tsx
|
|
6
|
+
import { lazy, Suspense } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var LoadedRichTextMenuFull = lazy(
|
|
9
|
+
() => import("./full-SGY5HNVB.mjs").then((m) => ({
|
|
10
|
+
default: m.LoadedRichTextMenuFull
|
|
11
|
+
}))
|
|
12
|
+
);
|
|
13
|
+
var LoadedRichTextMenu = (props) => {
|
|
14
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(LoadedRichTextMenuInner, { ...props }), children: /* @__PURE__ */ jsx(LoadedRichTextMenuFull, { ...props }) });
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
LoadedRichTextMenu
|
|
19
|
+
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
init_react_import
|
|
3
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
4
|
-
|
|
5
|
-
// css-module:/home/crediblemark/Project/NEXT_CMS/packages/components/RichTextEditor/styles.module.css#css-module
|
|
6
|
-
init_react_import();
|
|
1
|
+
// css-module:/home/crediblemark/Project/Credibuild/components/RichTextEditor/styles.module.css#css-module
|
|
7
2
|
var styles_module_default = { "RichTextEditor": "_RichTextEditor_hp4qf_1", "RichTextEditor--editor": "_RichTextEditor--editor_hp4qf_50", "RichTextEditor--disabled": "_RichTextEditor--disabled_hp4qf_107", "RichTextEditor--isActive": "_RichTextEditor--isActive_hp4qf_111", "RichTextEditor-menu": "_RichTextEditor-menu_hp4qf_117" };
|
|
8
3
|
|
|
9
4
|
export {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// lib/get-class-name-factory.ts
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (options = {}) => {
|
|
4
|
+
if (typeof options === "string") {
|
|
5
|
+
const descendant = options;
|
|
6
|
+
const style = styles[`${rootClass}-${descendant}`];
|
|
7
|
+
if (style) {
|
|
8
|
+
return config.baseClass + styles[`${rootClass}-${descendant}`] || "";
|
|
9
|
+
}
|
|
10
|
+
return "";
|
|
11
|
+
} else if (typeof options === "object") {
|
|
12
|
+
const modifiers = options;
|
|
13
|
+
const prefixedModifiers = {};
|
|
14
|
+
for (let modifier in modifiers) {
|
|
15
|
+
prefixedModifiers[styles[`${rootClass}--${modifier}`]] = modifiers[modifier];
|
|
16
|
+
}
|
|
17
|
+
const c = styles[rootClass];
|
|
18
|
+
return config.baseClass + classnames({
|
|
19
|
+
[c]: !!c,
|
|
20
|
+
// only apply the class if it exists
|
|
21
|
+
...prefixedModifiers
|
|
22
|
+
});
|
|
23
|
+
} else {
|
|
24
|
+
return config.baseClass + styles[rootClass] || "";
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var get_class_name_factory_default = getClassNameFactory;
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
get_class_name_factory_default
|
|
31
|
+
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_react_import
|
|
3
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
4
|
-
|
|
5
1
|
// components/RichTextEditor/extension.ts
|
|
6
|
-
init_react_import();
|
|
7
2
|
import { Extension } from "@tiptap/core";
|
|
8
3
|
import { Blockquote } from "@tiptap/extension-blockquote";
|
|
9
4
|
import { Bold } from "@tiptap/extension-bold";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
styles_module_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AL77I3BV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
defaultAppState,
|
|
6
6
|
resolveComponentData
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SMAWAXVX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
get_class_name_factory_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BFHV72KK.mjs";
|
|
11
11
|
import {
|
|
12
12
|
generateId,
|
|
13
13
|
getZoneId,
|
|
@@ -15,13 +15,9 @@ import {
|
|
|
15
15
|
toComponent,
|
|
16
16
|
walkAppState,
|
|
17
17
|
walkTree
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
init_react_import
|
|
21
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
18
|
+
} from "./chunk-7LXZOPYT.mjs";
|
|
22
19
|
|
|
23
20
|
// lib/migrate.ts
|
|
24
|
-
init_react_import();
|
|
25
21
|
var migrations = [
|
|
26
22
|
// Migrate root to root.props
|
|
27
23
|
(data) => {
|
|
@@ -142,11 +138,7 @@ function migrate(data, config, migrationOptions) {
|
|
|
142
138
|
);
|
|
143
139
|
}
|
|
144
140
|
|
|
145
|
-
// lib/transform-props.ts
|
|
146
|
-
init_react_import();
|
|
147
|
-
|
|
148
141
|
// lib/data/default-data.ts
|
|
149
|
-
init_react_import();
|
|
150
142
|
var defaultData = (data) => ({
|
|
151
143
|
...data,
|
|
152
144
|
root: data.root || {},
|
|
@@ -185,11 +177,7 @@ function transformProps(data, propTransforms, config = { components: {} }) {
|
|
|
185
177
|
return updatedData;
|
|
186
178
|
}
|
|
187
179
|
|
|
188
|
-
// lib/resolve-all-data.ts
|
|
189
|
-
init_react_import();
|
|
190
|
-
|
|
191
180
|
// lib/group-zones-by-component.ts
|
|
192
|
-
init_react_import();
|
|
193
181
|
var groupZonesByComponent = (data) => {
|
|
194
182
|
const zoneEntries = Object.entries(data.zones ?? {});
|
|
195
183
|
return zoneEntries.reduce((acc, [zoneCompound, zoneContent]) => {
|
|
@@ -260,7 +248,6 @@ async function resolveAllData(data, config, metadata = {}, onResolveStart, onRes
|
|
|
260
248
|
}
|
|
261
249
|
|
|
262
250
|
// lib/field-transforms/default-transforms/slot-transform.tsx
|
|
263
|
-
init_react_import();
|
|
264
251
|
var getSlotTransform = (renderSlotEdit, renderSlotRender = renderSlotEdit) => ({
|
|
265
252
|
slot: ({ value: content, propName, field, isReadOnly }) => {
|
|
266
253
|
const render = isReadOnly ? renderSlotRender : renderSlotEdit;
|
|
@@ -275,15 +262,10 @@ var getSlotTransform = (renderSlotEdit, renderSlotRender = renderSlotEdit) => ({
|
|
|
275
262
|
}
|
|
276
263
|
});
|
|
277
264
|
|
|
278
|
-
// lib/use-slots.tsx
|
|
279
|
-
init_react_import();
|
|
280
|
-
|
|
281
265
|
// lib/field-transforms/use-field-transforms.tsx
|
|
282
|
-
init_react_import();
|
|
283
266
|
import { useMemo } from "react";
|
|
284
267
|
|
|
285
268
|
// lib/field-transforms/build-mappers.ts
|
|
286
|
-
init_react_import();
|
|
287
269
|
function buildMappers(transforms, readOnly, forceReadOnly) {
|
|
288
270
|
return Object.keys(transforms).reduce((acc, _fieldType) => {
|
|
289
271
|
const fieldType = _fieldType;
|
|
@@ -334,11 +316,9 @@ function useSlots(config, item, renderSlotEdit, renderSlotRender = renderSlotEdi
|
|
|
334
316
|
}
|
|
335
317
|
|
|
336
318
|
// components/RichTextEditor/lib/use-richtext-props.tsx
|
|
337
|
-
init_react_import();
|
|
338
319
|
import { lazy, Suspense, useMemo as useMemo2 } from "react";
|
|
339
320
|
|
|
340
321
|
// components/RichTextEditor/components/RenderFallback.tsx
|
|
341
|
-
init_react_import();
|
|
342
322
|
import { jsx } from "react/jsx-runtime";
|
|
343
323
|
var getClassName = get_class_name_factory_default("RichTextEditor", styles_module_default);
|
|
344
324
|
function RichTextRenderFallback({ content }) {
|
|
@@ -352,7 +332,6 @@ function RichTextRenderFallback({ content }) {
|
|
|
352
332
|
}
|
|
353
333
|
|
|
354
334
|
// components/RichTextEditor/lib/mapDeep.ts
|
|
355
|
-
init_react_import();
|
|
356
335
|
var mapDeep = (source, path, render) => {
|
|
357
336
|
if (!source) {
|
|
358
337
|
return null;
|
|
@@ -397,7 +376,7 @@ function useRichtextProps(fields, props) {
|
|
|
397
376
|
const richtextProps = useMemo2(() => {
|
|
398
377
|
if (!richtextKeys?.length) return {};
|
|
399
378
|
const RichTextRender = lazy(
|
|
400
|
-
() => import("./Render-
|
|
379
|
+
() => import("./Render-WP5OOTBB.mjs").then((m) => ({
|
|
401
380
|
default: m.RichTextRender
|
|
402
381
|
}))
|
|
403
382
|
);
|
|
@@ -418,7 +397,6 @@ function useRichtextProps(fields, props) {
|
|
|
418
397
|
}
|
|
419
398
|
|
|
420
399
|
// components/SlotRender/server.tsx
|
|
421
|
-
init_react_import();
|
|
422
400
|
import { forwardRef } from "react";
|
|
423
401
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
424
402
|
var SlotRenderPure = (props) => /* @__PURE__ */ jsx3(SlotRender, { ...props });
|