@crediblemark/build 0.25.7 → 0.25.8

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.
Files changed (50) hide show
  1. package/dist/ArrayField-HYHS4HCO.mjs +17 -0
  2. package/dist/{Editor-GDIQRAYD.mjs → Editor-P3UUWNSZ.mjs} +8 -10
  3. package/dist/ObjectField-4N5XWAFL.mjs +17 -0
  4. package/dist/{actions-LaZpJ1KE.d.ts → actions-CKSDxt4l.d.mts} +1 -1
  5. package/dist/{actions-LaZpJ1KE.d.mts → actions-CKSDxt4l.d.ts} +1 -1
  6. package/dist/{chunk-J2UWT4L6.mjs → chunk-44PQTFGV.mjs} +5 -7
  7. package/dist/{chunk-23V3TMNT.mjs → chunk-AZFZRLP7.mjs} +7 -7
  8. package/dist/{chunk-ETN6FGIH.mjs → chunk-E4F5M5JH.mjs} +1 -1
  9. package/dist/chunk-HHKM5MBJ.mjs +3163 -0
  10. package/dist/{chunk-M4S65TWW.mjs → chunk-KN26YZZJ.mjs} +285 -130
  11. package/dist/{chunk-ERLZ5CJF.mjs → chunk-MWCFPGI6.mjs} +1153 -3236
  12. package/dist/{chunk-64A37UUC.mjs → chunk-O44M27KT.mjs} +442 -7
  13. package/dist/{chunk-EDTYTRV5.mjs → chunk-P2AZFZ7Q.mjs} +2 -2
  14. package/dist/{chunk-GUUI5HW3.mjs → chunk-PFHKXXSV.mjs} +1 -1
  15. package/dist/{chunk-JERQUUM4.mjs → chunk-S32JZ2HU.mjs} +1 -1
  16. package/dist/{chunk-35OY5UFR.mjs → chunk-T2LBDQLG.mjs} +7 -7
  17. package/dist/{chunk-EWOJLVHT.mjs → chunk-XLRMLBFR.mjs} +1 -1
  18. package/dist/{chunk-BXF2PDCW.mjs → chunk-Z7DDX2XU.mjs} +2 -2
  19. package/dist/{full-Y52CQK4X.mjs → full-3VRJOFG5.mjs} +6 -8
  20. package/dist/{index-CD3PszvP.d.mts → index-Ds4Dkkyr.d.mts} +1 -1
  21. package/dist/{index-Bj2x5pZ7.d.ts → index-DwajIHZf.d.ts} +1 -1
  22. package/dist/index.css +188 -2
  23. package/dist/index.d.mts +8 -40
  24. package/dist/index.d.ts +8 -40
  25. package/dist/index.js +1224 -567
  26. package/dist/index.mjs +25 -25
  27. package/dist/internal.d.mts +2 -2
  28. package/dist/internal.d.ts +2 -2
  29. package/dist/internal.mjs +1 -2
  30. package/dist/{loaded-K43N3OFP.mjs → loaded-C2JGMUXV.mjs} +3 -5
  31. package/dist/{loaded-MWBOE5CB.mjs → loaded-FJHWTGH6.mjs} +3 -5
  32. package/dist/{loaded-IWWCJE75.mjs → loaded-NTEK7RT3.mjs} +3 -5
  33. package/dist/no-external.css +188 -2
  34. package/dist/no-external.d.mts +4 -4
  35. package/dist/no-external.d.ts +4 -4
  36. package/dist/no-external.js +1224 -567
  37. package/dist/no-external.mjs +25 -25
  38. package/dist/rsc.css +1420 -0
  39. package/dist/rsc.d.mts +2 -2
  40. package/dist/rsc.d.ts +2 -2
  41. package/dist/rsc.js +10324 -1007
  42. package/dist/rsc.mjs +20 -3
  43. package/dist/{walk-tree-BEw6kTXm.d.ts → walk-tree-B_jHFa3L.d.mts} +39 -2
  44. package/dist/{walk-tree-BO8uRNcW.d.mts → walk-tree-DHMRjk5Z.d.ts} +39 -2
  45. package/package.json +1 -1
  46. package/dist/ArrayField-OIQQLS2B.mjs +0 -19
  47. package/dist/ObjectField-WOW3T2WS.mjs +0 -19
  48. package/dist/chunk-2RLA42JA.mjs +0 -455
  49. package/dist/chunk-7LXZOPYT.mjs +0 -445
  50. package/dist/chunk-SMAWAXVX.mjs +0 -139
@@ -1,10 +1,197 @@
1
- import {
2
- generateId,
3
- rootDroppableId,
4
- setupZone,
5
- walkAppState,
6
- walkTree
7
- } from "./chunk-7LXZOPYT.mjs";
1
+ // lib/data/default-slots.ts
2
+ var defaultSlots = (value, fields) => Object.keys(fields).reduce(
3
+ (acc, fieldName) => fields[fieldName].type === "slot" ? { [fieldName]: [], ...acc } : acc,
4
+ value
5
+ );
6
+
7
+ // lib/data/map-fields.ts
8
+ var isPromise = (v) => !!v && typeof v.then === "function";
9
+ var flatten = (values) => values.reduce((acc, item) => ({ ...acc, ...item }), {});
10
+ var containsPromise = (arr) => arr.some(isPromise);
11
+ var walkField = ({
12
+ value,
13
+ fields,
14
+ mappers,
15
+ propKey = "",
16
+ propPath = "",
17
+ id = "",
18
+ config,
19
+ recurseSlots = false
20
+ }) => {
21
+ const fieldType = fields[propKey]?.type;
22
+ const map = mappers[fieldType];
23
+ if (map && fieldType === "slot") {
24
+ const content = value || [];
25
+ const mappedContent = recurseSlots ? content.map((el) => {
26
+ const componentConfig = config.components[el.type];
27
+ if (!componentConfig) {
28
+ throw new Error(`Could not find component config for ${el.type}`);
29
+ }
30
+ const fields2 = componentConfig.fields ?? {};
31
+ return walkField({
32
+ value: { ...el, props: defaultSlots(el.props, fields2) },
33
+ fields: fields2,
34
+ mappers,
35
+ id: el.props.id,
36
+ config,
37
+ recurseSlots
38
+ });
39
+ }) : content;
40
+ if (containsPromise(mappedContent)) {
41
+ return Promise.all(mappedContent);
42
+ }
43
+ return map({
44
+ value: mappedContent,
45
+ parentId: id,
46
+ propName: propPath,
47
+ field: fields[propKey],
48
+ propPath
49
+ });
50
+ } else if (map && fields[propKey]) {
51
+ return map({
52
+ value,
53
+ parentId: id,
54
+ propName: propKey,
55
+ field: fields[propKey],
56
+ propPath
57
+ });
58
+ }
59
+ if (value && typeof value === "object") {
60
+ if (Array.isArray(value)) {
61
+ const arrayFields = fields[propKey]?.type === "array" ? fields[propKey].arrayFields : null;
62
+ if (!arrayFields) return value;
63
+ const newValue = value.map(
64
+ (el, idx) => walkField({
65
+ value: el,
66
+ fields: arrayFields,
67
+ mappers,
68
+ propKey,
69
+ propPath: `${propPath}[${idx}]`,
70
+ id,
71
+ config,
72
+ recurseSlots
73
+ })
74
+ );
75
+ if (containsPromise(newValue)) {
76
+ return Promise.all(newValue);
77
+ }
78
+ return newValue;
79
+ } else if ("$$typeof" in value) {
80
+ return value;
81
+ } else {
82
+ const objectFields = fields[propKey]?.type === "object" ? fields[propKey].objectFields : fields;
83
+ return walkObject({
84
+ value,
85
+ fields: objectFields,
86
+ mappers,
87
+ id,
88
+ getPropPath: (k) => `${propPath}.${k}`,
89
+ config,
90
+ recurseSlots
91
+ });
92
+ }
93
+ }
94
+ return value;
95
+ };
96
+ var walkObject = ({
97
+ value,
98
+ fields,
99
+ mappers,
100
+ id,
101
+ getPropPath,
102
+ config,
103
+ recurseSlots
104
+ }) => {
105
+ const newProps = Object.entries(value).map(([k, v]) => {
106
+ const opts = {
107
+ value: v,
108
+ fields,
109
+ mappers,
110
+ propKey: k,
111
+ propPath: getPropPath(k),
112
+ id,
113
+ config,
114
+ recurseSlots
115
+ };
116
+ const newValue = walkField(opts);
117
+ if (isPromise(newValue)) {
118
+ return newValue.then((resolvedValue) => ({
119
+ [k]: resolvedValue
120
+ }));
121
+ }
122
+ return {
123
+ [k]: newValue
124
+ };
125
+ }, {});
126
+ if (containsPromise(newProps)) {
127
+ return Promise.all(newProps).then(flatten);
128
+ }
129
+ return flatten(newProps);
130
+ };
131
+ function mapFields(item, mappers, config, recurseSlots = false, shouldDefaultSlots = true) {
132
+ const itemType = "type" in item ? item.type : "root";
133
+ const componentConfig = itemType === "root" ? config.root : config.components?.[itemType];
134
+ const newProps = walkObject({
135
+ value: shouldDefaultSlots ? defaultSlots(item.props ?? {}, componentConfig?.fields ?? {}) : item.props,
136
+ fields: componentConfig?.fields ?? {},
137
+ mappers,
138
+ id: item.props ? item.props.id ?? "root" : "root",
139
+ getPropPath: (k) => k,
140
+ config,
141
+ recurseSlots
142
+ });
143
+ if (isPromise(newProps)) {
144
+ return newProps.then((resolvedProps) => ({
145
+ ...item,
146
+ props: resolvedProps
147
+ }));
148
+ }
149
+ return {
150
+ ...item,
151
+ props: newProps
152
+ };
153
+ }
154
+
155
+ // lib/data/walk-tree.ts
156
+ function walkTree(data, config, callbackFn) {
157
+ const walkItem = (item) => {
158
+ return mapFields(
159
+ item,
160
+ {
161
+ slot: ({ value, parentId, propName }) => {
162
+ const content = value;
163
+ return callbackFn(content, { parentId, propName }) ?? content;
164
+ }
165
+ },
166
+ config,
167
+ true
168
+ );
169
+ };
170
+ if ("props" in data) {
171
+ return walkItem(data);
172
+ }
173
+ const _data = data;
174
+ const zones = _data.zones ?? {};
175
+ const mappedContent = _data.content.map(walkItem);
176
+ return {
177
+ root: walkItem(_data.root),
178
+ content: callbackFn(mappedContent, {
179
+ parentId: "root",
180
+ propName: "default-zone"
181
+ }) ?? mappedContent,
182
+ zones: Object.keys(zones).reduce(
183
+ (acc, zoneCompound) => ({
184
+ ...acc,
185
+ [zoneCompound]: zones[zoneCompound].map(walkItem)
186
+ }),
187
+ {}
188
+ )
189
+ };
190
+ }
191
+
192
+ // lib/generate-id.ts
193
+ import { v4 as uuidv4 } from "uuid";
194
+ var generateId = (type) => type ? `${type}-${uuidv4()}` : uuidv4();
8
195
 
9
196
  // lib/data/populate-ids.ts
10
197
  var populateIds = (data, config, override = false) => {
@@ -25,6 +212,228 @@ var populateIds = (data, config, override = false) => {
25
212
  );
26
213
  };
27
214
 
215
+ // lib/root-droppable-id.ts
216
+ var rootAreaId = "root";
217
+ var rootZone = "default-zone";
218
+ var rootDroppableId = `${rootAreaId}:${rootZone}`;
219
+
220
+ // lib/get-zone-id.ts
221
+ var getZoneId = (zoneCompound) => {
222
+ if (!zoneCompound) {
223
+ return [];
224
+ }
225
+ if (zoneCompound && zoneCompound.indexOf(":") > -1) {
226
+ return zoneCompound.split(":");
227
+ }
228
+ return [rootDroppableId, zoneCompound];
229
+ };
230
+
231
+ // lib/data/for-related-zones.ts
232
+ function forRelatedZones(item, data, cb, path = []) {
233
+ Object.entries(data.zones || {}).forEach(([zoneCompound, content]) => {
234
+ const [parentId] = getZoneId(zoneCompound);
235
+ if (parentId === item.props.id) {
236
+ cb(path, zoneCompound, content);
237
+ }
238
+ });
239
+ }
240
+
241
+ // lib/data/flatten-node.ts
242
+ import flat from "flat";
243
+
244
+ // lib/data/strip-slots.ts
245
+ var stripSlots = (data, config) => {
246
+ return mapFields(data, { slot: () => null }, config);
247
+ };
248
+
249
+ // lib/data/flatten-node.ts
250
+ var { flatten: flatten2, unflatten } = flat;
251
+ var isPureObject = (val) => val != null && Object.prototype.toString.call(val) === "[object Object]";
252
+ var emptyArrayStr = "__credbuild_[]";
253
+ var emptyObjectStr = "__credbuild_{}";
254
+ function encodeEmptyObjects(props = {}) {
255
+ const result = {};
256
+ for (const key in props) {
257
+ if (!Object.prototype.hasOwnProperty.call(props, key)) continue;
258
+ const val = props[key];
259
+ if (Array.isArray(val) && val.length === 0) {
260
+ result[key] = emptyArrayStr;
261
+ } else if (isPureObject(val) && Object.keys(val).length === 0) {
262
+ result[key] = emptyObjectStr;
263
+ } else {
264
+ result[key] = val;
265
+ }
266
+ }
267
+ return result;
268
+ }
269
+ function decodeEmptyObjects(props = {}) {
270
+ const result = {};
271
+ for (const key in props) {
272
+ if (!Object.prototype.hasOwnProperty.call(props, key)) continue;
273
+ const val = props[key];
274
+ if (val === emptyArrayStr) {
275
+ result[key] = [];
276
+ } else if (val === emptyObjectStr) {
277
+ result[key] = {};
278
+ } else {
279
+ result[key] = val;
280
+ }
281
+ }
282
+ return result;
283
+ }
284
+ var flattenNode = (node, config) => {
285
+ return {
286
+ ...node,
287
+ props: encodeEmptyObjects(flatten2(stripSlots(node, config).props))
288
+ };
289
+ };
290
+ var expandNode = (node) => {
291
+ const props = unflatten(decodeEmptyObjects(node.props));
292
+ return {
293
+ ...node,
294
+ props
295
+ };
296
+ };
297
+
298
+ // lib/data/to-component.ts
299
+ var toComponent = (item) => {
300
+ return "type" in item ? item : {
301
+ ...item,
302
+ props: { ...item.props, id: "root" },
303
+ type: "root"
304
+ };
305
+ };
306
+
307
+ // lib/data/walk-app-state.ts
308
+ function walkAppState(state, config, mapContent = (content) => content, mapNodeOrSkip = (item) => item) {
309
+ let newZones = {};
310
+ const newZoneIndex = {};
311
+ const newNodeIndex = {};
312
+ const processContent = (path, zoneCompound, content, zoneType, newId) => {
313
+ const [parentId] = zoneCompound.split(":");
314
+ const mappedContent = (mapContent(content, zoneCompound, zoneType) ?? content) || [];
315
+ const [_2, zone] = zoneCompound.split(":");
316
+ const newZoneCompound = `${newId || parentId}:${zone}`;
317
+ const newContent2 = mappedContent.map(
318
+ (zoneChild, index) => processItem(zoneChild, [...path, newZoneCompound], index)
319
+ );
320
+ newZoneIndex[newZoneCompound] = {
321
+ contentIds: newContent2.map((item) => item.props.id),
322
+ type: zoneType
323
+ };
324
+ return [newZoneCompound, newContent2];
325
+ };
326
+ const processRelatedZones = (item, newId, initialPath) => {
327
+ forRelatedZones(
328
+ item,
329
+ state.data,
330
+ (relatedPath, relatedZoneCompound, relatedContent) => {
331
+ const [zoneCompound, newContent2] = processContent(
332
+ relatedPath,
333
+ relatedZoneCompound,
334
+ relatedContent,
335
+ "dropzone",
336
+ newId
337
+ );
338
+ newZones[zoneCompound] = newContent2;
339
+ },
340
+ initialPath
341
+ );
342
+ };
343
+ const processItem = (item, path, index) => {
344
+ const mappedItem = mapNodeOrSkip(item, path, index);
345
+ if (!mappedItem) return item;
346
+ const id = mappedItem.props.id;
347
+ const newProps = {
348
+ ...mapFields(
349
+ mappedItem,
350
+ {
351
+ slot: ({ value, parentId: parentId2, propPath }) => {
352
+ const content = value;
353
+ const zoneCompound = `${parentId2}:${propPath}`;
354
+ const [_2, newContent2] = processContent(
355
+ path,
356
+ zoneCompound,
357
+ content,
358
+ "slot",
359
+ parentId2
360
+ );
361
+ return newContent2;
362
+ }
363
+ },
364
+ config
365
+ ).props,
366
+ id
367
+ };
368
+ processRelatedZones(item, id, path);
369
+ const newItem = { ...mappedItem, props: newProps };
370
+ const thisZoneCompound = path[path.length - 1];
371
+ const [parentId, zone] = thisZoneCompound ? thisZoneCompound.split(":") : [null, ""];
372
+ newNodeIndex[id] = {
373
+ data: newItem,
374
+ flatData: flattenNode(newItem, config),
375
+ path,
376
+ parentId,
377
+ zone
378
+ };
379
+ const finalData = { ...newItem, props: { ...newItem.props } };
380
+ if (newProps.id === "root") {
381
+ delete finalData["type"];
382
+ delete finalData.props["id"];
383
+ }
384
+ return finalData;
385
+ };
386
+ const zones = state.data.zones || {};
387
+ const [_, newContent] = processContent(
388
+ [],
389
+ rootDroppableId,
390
+ state.data.content,
391
+ "root"
392
+ );
393
+ const processedContent = newContent;
394
+ const zonesAlreadyProcessed = Object.keys(newZones);
395
+ Object.keys(zones || {}).forEach((zoneCompound) => {
396
+ const [parentId] = zoneCompound.split(":");
397
+ if (zonesAlreadyProcessed.includes(zoneCompound)) {
398
+ return;
399
+ }
400
+ const [_2, newContent2] = processContent(
401
+ [rootDroppableId],
402
+ zoneCompound,
403
+ zones[zoneCompound],
404
+ "dropzone",
405
+ parentId
406
+ );
407
+ newZones[zoneCompound] = newContent2;
408
+ }, newZones);
409
+ let rootAsComponent = toComponent({
410
+ props: { ...state.data.root.props ?? state.data.root }
411
+ });
412
+ if (state.data.root.readOnly) {
413
+ rootAsComponent.readOnly = state.data.root.readOnly;
414
+ }
415
+ const processedRoot = processItem(rootAsComponent, [], -1);
416
+ const root = {
417
+ ...state.data.root,
418
+ ...processedRoot
419
+ };
420
+ return {
421
+ ...state,
422
+ data: {
423
+ root,
424
+ content: processedContent,
425
+ zones: {
426
+ ...state.data.zones,
427
+ ...newZones
428
+ }
429
+ },
430
+ indexes: {
431
+ nodes: { ...state.indexes.nodes, ...newNodeIndex },
432
+ zones: { ...state.indexes.zones, ...newZoneIndex }
433
+ }
434
+ };
435
+ }
436
+
28
437
  // reducer/actions/set.ts
29
438
  var setAction = (state, action, appStore) => {
30
439
  if (typeof action.state === "object") {
@@ -344,6 +753,19 @@ var removeAction = (state, action, appStore) => {
344
753
  return newState;
345
754
  };
346
755
 
756
+ // lib/data/setup-zone.ts
757
+ var setupZone = (data, zoneKey) => {
758
+ if (zoneKey === rootDroppableId) {
759
+ return data;
760
+ }
761
+ const newData = {
762
+ ...data,
763
+ zones: data.zones ? { ...data.zones } : {}
764
+ };
765
+ newData.zones[zoneKey] = newData.zones[zoneKey] || [];
766
+ return newData;
767
+ };
768
+
347
769
  // reducer/actions/register-zone.ts
348
770
  var zoneCache = {};
349
771
  function registerZoneAction(state, action) {
@@ -517,10 +939,23 @@ function createReducer({
517
939
  }
518
940
 
519
941
  export {
942
+ generateId,
943
+ rootAreaId,
944
+ rootZone,
945
+ rootDroppableId,
946
+ getZoneId,
947
+ defaultSlots,
948
+ walkField,
949
+ mapFields,
950
+ expandNode,
951
+ toComponent,
952
+ walkAppState,
520
953
  insert,
954
+ walkTree,
521
955
  populateIds,
522
956
  insertAction,
523
957
  getItem,
958
+ setupZone,
524
959
  makeStatePublic,
525
960
  createReducer
526
961
  };
@@ -3,13 +3,13 @@ import {
3
3
  getDeep,
4
4
  useFieldStoreApi,
5
5
  useNestedFieldContext
6
- } from "./chunk-35OY5UFR.mjs";
6
+ } from "./chunk-T2LBDQLG.mjs";
7
7
  import {
8
8
  ChevronDown,
9
9
  ChevronUp,
10
10
  LayoutTemplate,
11
11
  useAppStore
12
- } from "./chunk-M4S65TWW.mjs";
12
+ } from "./chunk-KN26YZZJ.mjs";
13
13
  import {
14
14
  get_class_name_factory_default
15
15
  } from "./chunk-BFHV72KK.mjs";
@@ -5,7 +5,7 @@ import {
5
5
  Heading4,
6
6
  Heading5,
7
7
  Heading6
8
- } from "./chunk-M4S65TWW.mjs";
8
+ } from "./chunk-KN26YZZJ.mjs";
9
9
 
10
10
  // components/RichTextMenu/controls/HeadingSelect/use-options.ts
11
11
  import { useMemo } from "react";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  List,
3
3
  ListOrdered
4
- } from "./chunk-M4S65TWW.mjs";
4
+ } from "./chunk-KN26YZZJ.mjs";
5
5
 
6
6
  // components/RichTextMenu/controls/ListSelect/use-options.ts
7
7
  import { useMemo } from "react";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  EditorInner
3
- } from "./chunk-ETN6FGIH.mjs";
3
+ } from "./chunk-E4F5M5JH.mjs";
4
4
  import {
5
5
  IconButton,
6
6
  LoadedRichTextMenuInner,
7
7
  Loader
8
- } from "./chunk-23V3TMNT.mjs";
8
+ } from "./chunk-AZFZRLP7.mjs";
9
9
  import {
10
10
  ChevronDown,
11
11
  CircleCheckBig,
@@ -17,13 +17,13 @@ import {
17
17
  SlidersHorizontal,
18
18
  Type,
19
19
  useAppStore
20
- } from "./chunk-M4S65TWW.mjs";
20
+ } from "./chunk-KN26YZZJ.mjs";
21
21
  import {
22
22
  get_class_name_factory_default
23
23
  } from "./chunk-BFHV72KK.mjs";
24
24
  import {
25
25
  generateId
26
- } from "./chunk-7LXZOPYT.mjs";
26
+ } from "./chunk-O44M27KT.mjs";
27
27
 
28
28
  // components/AutoField/store.ts
29
29
  import { useContext as useContext2 } from "react";
@@ -973,7 +973,7 @@ EditorFallback.displayName = "EditorFallback";
973
973
  // components/AutoField/fields/RichtextField/index.tsx
974
974
  import { Fragment as Fragment4, jsx as jsx15 } from "react/jsx-runtime";
975
975
  var Editor = lazy(
976
- () => import("./Editor-GDIQRAYD.mjs").then((m) => ({
976
+ () => import("./Editor-P3UUWNSZ.mjs").then((m) => ({
977
977
  default: m.Editor
978
978
  }))
979
979
  );
@@ -1010,8 +1010,8 @@ var RichtextField = ({
1010
1010
 
1011
1011
  // components/AutoField/AutoFieldInternal.tsx
1012
1012
  import { jsx as jsx16 } from "react/jsx-runtime";
1013
- var ArrayField = lazy2(() => import("./ArrayField-OIQQLS2B.mjs").then((m) => ({ default: m.ArrayField })));
1014
- var ObjectField = lazy2(() => import("./ObjectField-WOW3T2WS.mjs").then((m) => ({ default: m.ObjectField })));
1013
+ var ArrayField = lazy2(() => import("./ArrayField-HYHS4HCO.mjs").then((m) => ({ default: m.ArrayField })));
1014
+ var ObjectField = lazy2(() => import("./ObjectField-4N5XWAFL.mjs").then((m) => ({ default: m.ObjectField })));
1015
1015
  var getClassNameWrapper2 = get_class_name_factory_default("InputWrapper", styles_module_default);
1016
1016
  var defaultFields = {
1017
1017
  array: ArrayField,
@@ -3,7 +3,7 @@ import {
3
3
  TextAlignEnd,
4
4
  TextAlignJustify,
5
5
  TextAlignStart
6
- } from "./chunk-M4S65TWW.mjs";
6
+ } from "./chunk-KN26YZZJ.mjs";
7
7
 
8
8
  // components/RichTextMenu/controls/AlignSelect/use-options.ts
9
9
  import { useMemo } from "react";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  LoadedRichTextMenuInner
3
- } from "./chunk-23V3TMNT.mjs";
3
+ } from "./chunk-AZFZRLP7.mjs";
4
4
 
5
5
  // components/RichTextMenu/index.tsx
6
6
  import { lazy, Suspense } from "react";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  var LoadedRichTextMenuFull = lazy(
9
- () => import("./full-Y52CQK4X.mjs").then((m) => ({
9
+ () => import("./full-3VRJOFG5.mjs").then((m) => ({
10
10
  default: m.LoadedRichTextMenuFull
11
11
  }))
12
12
  );
@@ -1,14 +1,12 @@
1
1
  import {
2
2
  LoadedRichTextMenuInner
3
- } from "./chunk-23V3TMNT.mjs";
4
- import "./chunk-EWOJLVHT.mjs";
5
- import "./chunk-GUUI5HW3.mjs";
6
- import "./chunk-JERQUUM4.mjs";
7
- import "./chunk-M4S65TWW.mjs";
8
- import "./chunk-64A37UUC.mjs";
9
- import "./chunk-SMAWAXVX.mjs";
3
+ } from "./chunk-AZFZRLP7.mjs";
4
+ import "./chunk-XLRMLBFR.mjs";
5
+ import "./chunk-PFHKXXSV.mjs";
6
+ import "./chunk-S32JZ2HU.mjs";
7
+ import "./chunk-KN26YZZJ.mjs";
10
8
  import "./chunk-BFHV72KK.mjs";
11
- import "./chunk-7LXZOPYT.mjs";
9
+ import "./chunk-O44M27KT.mjs";
12
10
  import "./chunk-AFVEAZTD.mjs";
13
11
 
14
12
  // components/RichTextMenu/full.tsx
@@ -1,4 +1,4 @@
1
- import { H as History, g as Permissions, c as ComponentData, a as Config, U as UserGenerics, F as Fields, C as CredBuildAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-LaZpJ1KE.mjs';
1
+ import { H as History, b as Permissions, c as ComponentData, a as Config, U as UserGenerics, F as Fields, C as CredBuildAction, R as RootDataWithProps, d as ResolveDataTrigger, e as Plugin, f as Overrides, V as Viewports, I as IframeConfig, g as UiState, h as ComponentConfig, A as AppState, M as Metadata, i as FieldTransforms, j as RichtextField } from './actions-CKSDxt4l.mjs';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
4
  type HistorySlice<D = any> = {
@@ -1,4 +1,4 @@
1
- import { H as History, g as Permissions, c as ComponentData, a as Config, U as UserGenerics, F as Fields, C as CredBuildAction, h as RootDataWithProps, i as ResolveDataTrigger, j as Plugin, k as Overrides, V as Viewports, I as IframeConfig, l as UiState, m as ComponentConfig, A as AppState, M as Metadata, n as FieldTransforms, o as RichtextField } from './actions-LaZpJ1KE.js';
1
+ import { H as History, b as Permissions, c as ComponentData, a as Config, U as UserGenerics, F as Fields, C as CredBuildAction, R as RootDataWithProps, d as ResolveDataTrigger, e as Plugin, f as Overrides, V as Viewports, I as IframeConfig, g as UiState, h as ComponentConfig, A as AppState, M as Metadata, i as FieldTransforms, j as RichtextField } from './actions-CKSDxt4l.js';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
4
  type HistorySlice<D = any> = {