@crediblemark/build 0.25.6 → 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 (59) hide show
  1. package/dist/ArrayField-HYHS4HCO.mjs +17 -0
  2. package/dist/{ArrayField-PAJW74AC.css → ArrayField-MCFJLKAL.css} +15 -15
  3. package/dist/{Editor-Y342RWPN.css → Editor-CVT4RKSU.css} +7 -7
  4. package/dist/{Editor-OFA3KX3N.mjs → Editor-P3UUWNSZ.mjs} +9 -11
  5. package/dist/ObjectField-4N5XWAFL.mjs +17 -0
  6. package/dist/{ObjectField-WACQHQ4N.css → ObjectField-YPHZU7G2.css} +15 -15
  7. package/dist/{Render-HVM2KISU.css → Render-DOE2LXKX.css} +1 -1
  8. package/dist/{Render-5WYR4VZX.mjs → Render-I6PZ5MEA.mjs} +1 -1
  9. package/dist/{actions-LaZpJ1KE.d.mts → actions-CKSDxt4l.d.mts} +1 -1
  10. package/dist/{actions-LaZpJ1KE.d.ts → actions-CKSDxt4l.d.ts} +1 -1
  11. package/dist/{chunk-QHJGER7I.mjs → chunk-44PQTFGV.mjs} +7 -9
  12. package/dist/{chunk-STIUFJT2.mjs → chunk-AZFZRLP7.mjs} +12 -12
  13. package/dist/{chunk-JX7LICWE.mjs → chunk-E4F5M5JH.mjs} +2 -2
  14. package/dist/chunk-HHKM5MBJ.mjs +3163 -0
  15. package/dist/{chunk-H6RPI3T6.mjs → chunk-ISXFLTBM.mjs} +1 -1
  16. package/dist/{chunk-MZXW5F5R.mjs → chunk-KN26YZZJ.mjs} +286 -131
  17. package/dist/chunk-MWCFPGI6.mjs +4807 -0
  18. package/dist/{chunk-64A37UUC.mjs → chunk-O44M27KT.mjs} +442 -7
  19. package/dist/{chunk-XAD7XPP2.mjs → chunk-P2AZFZ7Q.mjs} +3 -3
  20. package/dist/{chunk-SLKHXT3Q.mjs → chunk-PFHKXXSV.mjs} +1 -1
  21. package/dist/{chunk-RUJOMPX6.mjs → chunk-S32JZ2HU.mjs} +1 -1
  22. package/dist/{chunk-KAOWYQIB.mjs → chunk-T2LBDQLG.mjs} +12 -12
  23. package/dist/{chunk-4NZUDTR6.mjs → chunk-XLRMLBFR.mjs} +1 -1
  24. package/dist/{chunk-WSTUSWZT.mjs → chunk-Z7DDX2XU.mjs} +2 -2
  25. package/dist/{full-ECZCK3RE.mjs → full-3VRJOFG5.mjs} +6 -8
  26. package/dist/{full-PLJRDIMB.css → full-C7RVGAUA.css} +6 -6
  27. package/dist/{index-CD3PszvP.d.mts → index-Ds4Dkkyr.d.mts} +1 -1
  28. package/dist/{index-Bj2x5pZ7.d.ts → index-DwajIHZf.d.ts} +1 -1
  29. package/dist/index.css +231 -43
  30. package/dist/index.d.mts +8 -40
  31. package/dist/index.d.ts +8 -40
  32. package/dist/index.js +1306 -649
  33. package/dist/index.mjs +26 -26
  34. package/dist/internal.d.mts +2 -2
  35. package/dist/internal.d.ts +2 -2
  36. package/dist/internal.mjs +1 -2
  37. package/dist/{loaded-FY2TCG5Y.css → loaded-4FAPBCAU.css} +1 -1
  38. package/dist/{loaded-NRHNHJPM.mjs → loaded-C2JGMUXV.mjs} +3 -5
  39. package/dist/{loaded-5D7VRSXM.mjs → loaded-FJHWTGH6.mjs} +3 -5
  40. package/dist/{loaded-3MKTRGL5.mjs → loaded-NTEK7RT3.mjs} +3 -5
  41. package/dist/no-external.css +225 -39
  42. package/dist/no-external.d.mts +4 -4
  43. package/dist/no-external.d.ts +4 -4
  44. package/dist/no-external.js +1306 -649
  45. package/dist/no-external.mjs +26 -26
  46. package/dist/rsc.css +1421 -1
  47. package/dist/rsc.d.mts +2 -2
  48. package/dist/rsc.d.ts +2 -2
  49. package/dist/rsc.js +10328 -1011
  50. package/dist/rsc.mjs +21 -4
  51. package/dist/{walk-tree-BO8uRNcW.d.mts → walk-tree-B_jHFa3L.d.mts} +39 -2
  52. package/dist/{walk-tree-BEw6kTXm.d.ts → walk-tree-DHMRjk5Z.d.ts} +39 -2
  53. package/package.json +1 -1
  54. package/dist/ArrayField-PGZLQW7G.mjs +0 -19
  55. package/dist/ObjectField-N7ES6H3B.mjs +0 -19
  56. package/dist/chunk-7LXZOPYT.mjs +0 -445
  57. package/dist/chunk-HIE6KXP6.mjs +0 -455
  58. package/dist/chunk-SMAWAXVX.mjs +0 -139
  59. package/dist/chunk-W7LED3JG.mjs +0 -6890
@@ -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,18 +3,18 @@ import {
3
3
  getDeep,
4
4
  useFieldStoreApi,
5
5
  useNestedFieldContext
6
- } from "./chunk-KAOWYQIB.mjs";
6
+ } from "./chunk-T2LBDQLG.mjs";
7
7
  import {
8
8
  ChevronDown,
9
9
  ChevronUp,
10
10
  LayoutTemplate,
11
11
  useAppStore
12
- } from "./chunk-MZXW5F5R.mjs";
12
+ } from "./chunk-KN26YZZJ.mjs";
13
13
  import {
14
14
  get_class_name_factory_default
15
15
  } from "./chunk-BFHV72KK.mjs";
16
16
 
17
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
17
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
18
18
  var styles_module_default = { "ObjectField": "_ObjectField_12pvo_1", "ObjectField--isOpen": "_ObjectField--isOpen_12pvo_10", "ObjectField-content": "_ObjectField-content_12pvo_14", "ObjectField-fieldset": "_ObjectField-fieldset_12pvo_18", "ObjectField-header": "_ObjectField-header_12pvo_30", "ObjectField-headerIcon": "_ObjectField-headerIcon_12pvo_53" };
19
19
 
20
20
  // components/AutoField/fields/ObjectField/index.tsx
@@ -5,7 +5,7 @@ import {
5
5
  Heading4,
6
6
  Heading5,
7
7
  Heading6
8
- } from "./chunk-MZXW5F5R.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-MZXW5F5R.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-JX7LICWE.mjs";
3
+ } from "./chunk-E4F5M5JH.mjs";
4
4
  import {
5
5
  IconButton,
6
6
  LoadedRichTextMenuInner,
7
7
  Loader
8
- } from "./chunk-STIUFJT2.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-MZXW5F5R.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";
@@ -74,7 +74,7 @@ function useFieldStore(selector) {
74
74
  return useStore2(store, useShallow2(selector));
75
75
  }
76
76
 
77
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/AutoField/styles.module.css#css-module
77
+ // css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css#css-module
78
78
  var styles_module_default = { "InputWrapper": "_InputWrapper_1l0eg_1", "InputWrapper--object": "_InputWrapper--object_1l0eg_1", "InputWrapper--array": "_InputWrapper--array_1l0eg_1", "Input-label": "_Input-label_1l0eg_18", "Input-label--noChildren": "_Input-label--noChildren_1l0eg_28", "Input-labelIcon": "_Input-labelIcon_1l0eg_32", "Input-disabledIcon": "_Input-disabledIcon_1l0eg_39", "Input-input": "_Input-input_1l0eg_44", "Input": "_Input_1l0eg_1", "Input--readOnly": "_Input--readOnly_1l0eg_104", "Input-radioGroupItems": "_Input-radioGroupItems_1l0eg_115", "Input-radio": "_Input-radio_1l0eg_115", "Input-radioInner": "_Input-radioInner_1l0eg_132", "Input-radioInput": "_Input-radioInput_1l0eg_177" };
79
79
 
80
80
  // components/AutoField/FieldLabel.tsx
@@ -190,7 +190,7 @@ var NestedFieldProvider = ({
190
190
  // components/Button/Button.tsx
191
191
  import { useEffect, useState as useState2 } from "react";
192
192
 
193
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Button/Button.module.css#css-module
193
+ // css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css#css-module
194
194
  var Button_module_default = { "Button": "_Button_164uz_1", "Button--medium": "_Button--medium_164uz_29", "Button--large": "_Button--large_164uz_34", "Button-icon": "_Button-icon_164uz_38", "Button--primary": "_Button--primary_164uz_42", "Button--secondary": "_Button--secondary_164uz_63", "Button--flush": "_Button--flush_164uz_80", "Button--disabled": "_Button--disabled_164uz_84", "Button--fullWidth": "_Button--fullWidth_164uz_92", "Button-spinner": "_Button-spinner_164uz_97" };
195
195
 
196
196
  // lib/filter-data-attrs.ts
@@ -392,13 +392,13 @@ import {
392
392
  isValidElement
393
393
  } from "react";
394
394
 
395
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/ExternalInput/styles.module.css#css-module
395
+ // css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css#css-module
396
396
  var styles_module_default2 = { "ExternalInput-actions": "_ExternalInput-actions_1gpb4_1", "ExternalInput-button": "_ExternalInput-button_1gpb4_5", "ExternalInput--dataSelected": "_ExternalInput--dataSelected_1gpb4_24", "ExternalInput--readOnly": "_ExternalInput--readOnly_1gpb4_31", "ExternalInput-detachButton": "_ExternalInput-detachButton_1gpb4_35", "ExternalInput": "_ExternalInput_1gpb4_1", "ExternalInputModal": "_ExternalInputModal_1gpb4_79", "ExternalInputModal-grid": "_ExternalInputModal-grid_1gpb4_89", "ExternalInputModal--filtersToggled": "_ExternalInputModal--filtersToggled_1gpb4_100", "ExternalInputModal-filters": "_ExternalInputModal-filters_1gpb4_105", "ExternalInputModal-masthead": "_ExternalInputModal-masthead_1gpb4_124", "ExternalInputModal-tableWrapper": "_ExternalInputModal-tableWrapper_1gpb4_133", "ExternalInputModal-table": "_ExternalInputModal-table_1gpb4_133", "ExternalInputModal-thead": "_ExternalInputModal-thead_1gpb4_149", "ExternalInputModal-th": "_ExternalInputModal-th_1gpb4_149", "ExternalInputModal-td": "_ExternalInputModal-td_1gpb4_164", "ExternalInputModal-tr": "_ExternalInputModal-tr_1gpb4_169", "ExternalInputModal-tbody": "_ExternalInputModal-tbody_1gpb4_176", "ExternalInputModal--hasData": "_ExternalInputModal--hasData_1gpb4_202", "ExternalInputModal-loadingBanner": "_ExternalInputModal-loadingBanner_1gpb4_206", "ExternalInputModal--isLoading": "_ExternalInputModal--isLoading_1gpb4_223", "ExternalInputModal-searchForm": "_ExternalInputModal-searchForm_1gpb4_227", "ExternalInputModal-search": "_ExternalInputModal-search_1gpb4_227", "ExternalInputModal-searchIcon": "_ExternalInputModal-searchIcon_1gpb4_264", "ExternalInputModal-searchIconText": "_ExternalInputModal-searchIconText_1gpb4_289", "ExternalInputModal-searchInput": "_ExternalInputModal-searchInput_1gpb4_299", "ExternalInputModal-searchActions": "_ExternalInputModal-searchActions_1gpb4_313", "ExternalInputModal-searchActionIcon": "_ExternalInputModal-searchActionIcon_1gpb4_326", "ExternalInputModal-footerContainer": "_ExternalInputModal-footerContainer_1gpb4_330", "ExternalInputModal-footer": "_ExternalInputModal-footer_1gpb4_330", "ExternalInputModal-field": "_ExternalInputModal-field_1gpb4_343" };
397
397
 
398
398
  // components/Modal/index.tsx
399
399
  import { useEffect as useEffect2, useState as useState3 } from "react";
400
400
 
401
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Modal/styles.module.css#css-module
401
+ // css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css#css-module
402
402
  var styles_module_default3 = { "Modal": "_Modal_b422s_1", "Modal--isOpen": "_Modal--isOpen_b422s_15", "Modal-inner": "_Modal-inner_b422s_19" };
403
403
 
404
404
  // components/Modal/index.tsx
@@ -442,7 +442,7 @@ var Modal = ({
442
442
  );
443
443
  };
444
444
 
445
- // css-module:/media/rasyiqi/PROJECT/credibuild-project/credbuild/components/Heading/styles.module.css#css-module
445
+ // css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css#css-module
446
446
  var styles_module_default4 = { "Heading": "_Heading_1tpsl_1", "Heading--xxxxl": "_Heading--xxxxl_1tpsl_12", "Heading--xxxl": "_Heading--xxxl_1tpsl_18", "Heading--xxl": "_Heading--xxl_1tpsl_22", "Heading--xl": "_Heading--xl_1tpsl_26", "Heading--l": "_Heading--l_1tpsl_30", "Heading--m": "_Heading--m_1tpsl_34", "Heading--s": "_Heading--s_1tpsl_38", "Heading--xs": "_Heading--xs_1tpsl_42" };
447
447
 
448
448
  // components/Heading/index.tsx
@@ -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-OFA3KX3N.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-PGZLQW7G.mjs").then((m) => ({ default: m.ArrayField })));
1014
- var ObjectField = lazy2(() => import("./ObjectField-N7ES6H3B.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-MZXW5F5R.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-STIUFJT2.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-ECZCK3RE.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-STIUFJT2.mjs";
4
- import "./chunk-4NZUDTR6.mjs";
5
- import "./chunk-SLKHXT3Q.mjs";
6
- import "./chunk-RUJOMPX6.mjs";
7
- import "./chunk-MZXW5F5R.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