@crediblemark/build 0.22.2 → 0.22.7
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 +41 -36
- package/dist/chunk-B4BOBGYB.mjs +0 -42
- package/dist/chunk-YH7AXYKP.mjs +0 -109
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* css-module:/home/crediblemark/Project/
|
|
1
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/RichTextMenu/styles.module.css/#css-module-data */
|
|
2
2
|
._RichTextMenu_193iw_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
border-left: 0.5px solid var(--credbuild-color-grey-05);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
/* css-module:/home/crediblemark/Project/
|
|
43
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/IconButton/IconButton.module.css/#css-module-data */
|
|
44
44
|
._IconButton_1a0fz_1 {
|
|
45
45
|
align-items: center;
|
|
46
46
|
background: transparent;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
color: var(--credbuild-color-grey-07);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
/* css-module:/home/crediblemark/Project/
|
|
88
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/Loader/styles.module.css/#css-module-data */
|
|
89
89
|
@keyframes _loader-animation_nacdm_1 {
|
|
90
90
|
0% {
|
|
91
91
|
transform: rotate(0deg) scale(1);
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
animation-fill-mode: both;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
/* css-module:/home/crediblemark/Project/
|
|
110
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/ActionBar/styles.module.css/#css-module-data */
|
|
111
111
|
._ActionBar_ze0ci_1 {
|
|
112
112
|
align-items: center;
|
|
113
113
|
cursor: default;
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
height: 100%;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
/* css-module:/home/crediblemark/Project/
|
|
205
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data */
|
|
206
206
|
._Control_1aveu_1 .lucide {
|
|
207
207
|
height: 18px;
|
|
208
208
|
width: 18px;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
width: 16px;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
/* css-module:/home/crediblemark/Project/
|
|
215
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/Select/styles.module.css/#css-module-data */
|
|
216
216
|
._Select_16son_1 {
|
|
217
217
|
position: relative;
|
|
218
218
|
z-index: 1;
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
color: var(--credbuild-color-azure-04);
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
/* css-module:/home/crediblemark/Project/
|
|
303
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
304
304
|
._RichTextEditor_hp4qf_1 .ProseMirror {
|
|
305
305
|
white-space: pre-wrap;
|
|
306
306
|
word-wrap: break-word;
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CredBuildRichText
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DEUK76GN.mjs";
|
|
4
4
|
import {
|
|
5
|
-
EditorInner,
|
|
6
5
|
LoadedRichTextMenu
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-AEKBE267.mjs";
|
|
7
|
+
import {
|
|
8
|
+
EditorInner
|
|
9
|
+
} from "./chunk-4PJ4QMWI.mjs";
|
|
10
|
+
import "./chunk-AL77I3BV.mjs";
|
|
11
|
+
import "./chunk-T6RT6PV4.mjs";
|
|
12
|
+
import "./chunk-NYBWAKLT.mjs";
|
|
13
|
+
import "./chunk-67TMLSKM.mjs";
|
|
14
|
+
import "./chunk-JNMMY5D7.mjs";
|
|
13
15
|
import {
|
|
14
16
|
useAppStore,
|
|
15
17
|
useAppStoreApi
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import
|
|
22
|
-
init_react_import
|
|
23
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
18
|
+
} from "./chunk-ZY24NW7X.mjs";
|
|
19
|
+
import "./chunk-64A37UUC.mjs";
|
|
20
|
+
import "./chunk-SMAWAXVX.mjs";
|
|
21
|
+
import "./chunk-BFHV72KK.mjs";
|
|
22
|
+
import "./chunk-7LXZOPYT.mjs";
|
|
23
|
+
import "./chunk-AFVEAZTD.mjs";
|
|
24
24
|
|
|
25
25
|
// components/RichTextEditor/components/Editor.tsx
|
|
26
|
-
init_react_import();
|
|
27
26
|
import { memo, useMemo } from "react";
|
|
28
27
|
|
|
29
28
|
// components/RichTextEditor/lib/use-synced-editor.ts
|
|
30
|
-
init_react_import();
|
|
31
29
|
import { useEditor } from "@tiptap/react";
|
|
32
30
|
import { useEffect, useRef } from "react";
|
|
33
31
|
import { useDebounce } from "use-debounce";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SubField
|
|
3
|
+
} from "./chunk-RDTXKOE7.mjs";
|
|
4
|
+
import {
|
|
5
|
+
getDeep,
|
|
6
|
+
useFieldStoreApi,
|
|
7
|
+
useNestedFieldContext
|
|
8
|
+
} from "./chunk-2JUMF5G3.mjs";
|
|
9
|
+
import "./chunk-4PJ4QMWI.mjs";
|
|
10
|
+
import "./chunk-AL77I3BV.mjs";
|
|
11
|
+
import "./chunk-T6RT6PV4.mjs";
|
|
12
|
+
import "./chunk-NYBWAKLT.mjs";
|
|
13
|
+
import "./chunk-67TMLSKM.mjs";
|
|
14
|
+
import "./chunk-JNMMY5D7.mjs";
|
|
15
|
+
import {
|
|
16
|
+
EllipsisVertical,
|
|
17
|
+
useAppStore
|
|
18
|
+
} from "./chunk-ZY24NW7X.mjs";
|
|
19
|
+
import "./chunk-64A37UUC.mjs";
|
|
20
|
+
import "./chunk-SMAWAXVX.mjs";
|
|
21
|
+
import {
|
|
22
|
+
get_class_name_factory_default
|
|
23
|
+
} from "./chunk-BFHV72KK.mjs";
|
|
24
|
+
import "./chunk-7LXZOPYT.mjs";
|
|
25
|
+
import "./chunk-AFVEAZTD.mjs";
|
|
26
|
+
|
|
27
|
+
// css-module:/home/crediblemark/Project/Credibuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
|
|
28
|
+
var styles_module_default = { "ObjectField": "_ObjectField_b2xjm_5", "ObjectField-fieldset": "_ObjectField-fieldset_b2xjm_13" };
|
|
29
|
+
|
|
30
|
+
// components/AutoField/fields/ObjectField/index.tsx
|
|
31
|
+
import { jsx } from "react/jsx-runtime";
|
|
32
|
+
var getClassName = get_class_name_factory_default("ObjectField", styles_module_default);
|
|
33
|
+
var ObjectField = ({
|
|
34
|
+
field,
|
|
35
|
+
onChange,
|
|
36
|
+
id,
|
|
37
|
+
name = id,
|
|
38
|
+
label,
|
|
39
|
+
labelIcon,
|
|
40
|
+
Label,
|
|
41
|
+
readOnly
|
|
42
|
+
}) => {
|
|
43
|
+
const { localName = name } = useNestedFieldContext();
|
|
44
|
+
const fieldStore = useFieldStoreApi();
|
|
45
|
+
const canEdit = useAppStore(
|
|
46
|
+
(s) => s.permissions.getPermissions({ item: s.selectedItem }).edit
|
|
47
|
+
);
|
|
48
|
+
const getValue = () => getDeep(fieldStore.getState(), name) ?? {};
|
|
49
|
+
if (field.type !== "object" || !field.objectFields) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
Label,
|
|
54
|
+
{
|
|
55
|
+
label: label || name,
|
|
56
|
+
icon: labelIcon || /* @__PURE__ */ jsx(EllipsisVertical, { size: 16 }),
|
|
57
|
+
el: "div",
|
|
58
|
+
readOnly,
|
|
59
|
+
children: /* @__PURE__ */ jsx("div", { className: getClassName(), children: /* @__PURE__ */ jsx("fieldset", { className: getClassName("fieldset"), children: Object.keys(field.objectFields).map((subName) => {
|
|
60
|
+
const subField = field.objectFields[subName];
|
|
61
|
+
const subPath = `${localName}.${subName}`;
|
|
62
|
+
return /* @__PURE__ */ jsx(
|
|
63
|
+
SubField,
|
|
64
|
+
{
|
|
65
|
+
id: `${id}_${subName}`,
|
|
66
|
+
name,
|
|
67
|
+
subName,
|
|
68
|
+
localName,
|
|
69
|
+
field: subField,
|
|
70
|
+
forceReadOnly: !canEdit,
|
|
71
|
+
onChange: (subValue, ui, subName2) => {
|
|
72
|
+
const value = getValue();
|
|
73
|
+
if (value[subName2] === subValue) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
onChange({ ...value, [subName2]: subValue }, ui);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
subPath
|
|
80
|
+
);
|
|
81
|
+
}) }) })
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
ObjectField
|
|
87
|
+
};
|