@crediblemark/build 0.25.19 → 0.25.21
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/ArrayField-5NGEZXWU.mjs +18 -0
- package/dist/{ObjectField-VE3JKAWT.css → ArrayField-ELOHWNCP.css} +291 -291
- package/dist/{Editor-7JTCMSHZ.mjs → Editor-I3NGZND5.mjs} +8 -8
- package/dist/{Editor-6U6G5YLU.css → Editor-YW4RWTY3.css} +7 -7
- package/dist/{ArrayField-QVQ36K6O.css → ObjectField-AN37XVFT.css} +283 -283
- package/dist/ObjectField-TK4CLEHL.mjs +18 -0
- package/dist/{Render-HVM2KISU.css → Render-G6FCHISC.css} +1 -1
- package/dist/{Render-5WYR4VZX.mjs → Render-YPURU4ZF.mjs} +5 -3
- package/dist/{chunk-U7AIA2UJ.mjs → chunk-3UVVSIWJ.mjs} +2 -2
- package/dist/{chunk-LBXFITWQ.mjs → chunk-5A7FLZ3B.mjs} +2 -2
- package/dist/{chunk-5GWBGJC4.mjs → chunk-5ASR74IZ.mjs} +216 -102
- package/dist/{chunk-H6RPI3T6.mjs → chunk-HH537E6Q.mjs} +1 -1
- package/dist/{chunk-TOU7Y6T4.mjs → chunk-J3I5GT3E.mjs} +1 -1
- package/dist/{chunk-J4ZMH6JZ.mjs → chunk-KAL2OHVB.mjs} +1 -1
- package/dist/{chunk-D7HE7E2A.mjs → chunk-LGPNWN5U.mjs} +32 -16
- package/dist/{chunk-GEYNLWCZ.mjs → chunk-MQINT3WW.mjs} +1 -1
- package/dist/{chunk-ARM3KXOM.mjs → chunk-N4PD57DO.mjs} +19 -15
- package/dist/{chunk-D4WFZ3K2.mjs → chunk-NFUQAIKA.mjs} +31 -10
- package/dist/{chunk-U4NHUPA4.mjs → chunk-QJ3POSBT.mjs} +5 -5
- package/dist/{chunk-SOAJKHLV.mjs → chunk-S65FGP6E.mjs} +3 -3
- package/dist/chunk-TFAYWP2C.mjs +16 -0
- package/dist/{chunk-VEQIM5ZE.mjs → chunk-WADDTBOG.mjs} +20 -17
- package/dist/{full-2LSQUWEM.css → full-PJWYWS5O.css} +6 -6
- package/dist/{full-B3RS4LV3.mjs → full-YJS7XBEW.mjs} +5 -5
- package/dist/index.css +38 -38
- package/dist/index.js +297 -116
- package/dist/index.mjs +14 -13
- package/dist/{loaded-FY2TCG5Y.css → loaded-GB62SDMW.css} +1 -1
- package/dist/{loaded-JIR6E6RO.mjs → loaded-ICFOKFPH.mjs} +4 -3
- package/dist/{loaded-XEI7CJSF.mjs → loaded-LU4R6WMV.mjs} +4 -3
- package/dist/{loaded-VCMCWG55.mjs → loaded-VDUTUHUM.mjs} +4 -3
- package/dist/no-external.css +38 -38
- package/dist/no-external.js +297 -116
- package/dist/no-external.mjs +14 -13
- package/dist/rsc.css +19 -19
- package/dist/rsc.js +161 -91
- package/dist/rsc.mjs +13 -12
- package/package.json +1 -1
- package/dist/ArrayField-LRIG75HP.mjs +0 -17
- package/dist/ObjectField-M2VTKEXM.mjs +0 -17
package/dist/rsc.js
CHANGED
|
@@ -241,6 +241,26 @@ var init_map_fields = __esm({
|
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
|
|
244
|
+
// lib/dompurify.ts
|
|
245
|
+
var import_isomorphic_dompurify, dompurify_default;
|
|
246
|
+
var init_dompurify = __esm({
|
|
247
|
+
"lib/dompurify.ts"() {
|
|
248
|
+
"use strict";
|
|
249
|
+
init_react_import();
|
|
250
|
+
import_isomorphic_dompurify = __toESM(require("isomorphic-dompurify"));
|
|
251
|
+
import_isomorphic_dompurify.default.addHook("afterSanitizeAttributes", function(node) {
|
|
252
|
+
if ("target" in node && node.getAttribute("target") === "_blank") {
|
|
253
|
+
const existingRel = node.getAttribute("rel") || "";
|
|
254
|
+
const rels = new Set(existingRel.split(" ").filter(Boolean));
|
|
255
|
+
rels.add("noopener");
|
|
256
|
+
rels.add("noreferrer");
|
|
257
|
+
node.setAttribute("rel", Array.from(rels).join(" "));
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
dompurify_default = import_isomorphic_dompurify.default;
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
|
|
244
264
|
// lib/get-class-name-factory.ts
|
|
245
265
|
var import_classnames, getClassNameFactory, get_class_name_factory_default;
|
|
246
266
|
var init_get_class_name_factory = __esm({
|
|
@@ -276,16 +296,16 @@ var init_get_class_name_factory = __esm({
|
|
|
276
296
|
}
|
|
277
297
|
});
|
|
278
298
|
|
|
279
|
-
// css-module:/
|
|
299
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data
|
|
280
300
|
var init_css_module_data = __esm({
|
|
281
|
-
"css-module:/
|
|
301
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data"() {
|
|
282
302
|
}
|
|
283
303
|
});
|
|
284
304
|
|
|
285
|
-
// css-module:/
|
|
305
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module
|
|
286
306
|
var styles_module_default;
|
|
287
307
|
var init_styles_module = __esm({
|
|
288
|
-
"css-module:/
|
|
308
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module"() {
|
|
289
309
|
"use strict";
|
|
290
310
|
init_react_import();
|
|
291
311
|
init_css_module_data();
|
|
@@ -439,17 +459,17 @@ function RichTextRender({
|
|
|
439
459
|
const html = (0, import_react3.useMemo)(() => {
|
|
440
460
|
return (0, import_html.generateHTML)(normalized, loadedExtensions);
|
|
441
461
|
}, [normalized, loadedExtensions]);
|
|
442
|
-
const sanitizedHtml = (0, import_react3.useMemo)(() =>
|
|
462
|
+
const sanitizedHtml = (0, import_react3.useMemo)(() => dompurify_default.sanitize(html, { ADD_ATTR: ["target"] }), [html]);
|
|
443
463
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: getClassName2(), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "rich-text", dangerouslySetInnerHTML: { __html: sanitizedHtml } }) });
|
|
444
464
|
}
|
|
445
|
-
var import_html, import_react3,
|
|
465
|
+
var import_html, import_react3, import_jsx_runtime2, getClassName2;
|
|
446
466
|
var init_Render = __esm({
|
|
447
467
|
"components/RichTextEditor/components/Render.tsx"() {
|
|
448
468
|
"use strict";
|
|
449
469
|
init_react_import();
|
|
450
470
|
import_html = require("@tiptap/html");
|
|
451
471
|
import_react3 = require("react");
|
|
452
|
-
|
|
472
|
+
init_dompurify();
|
|
453
473
|
init_get_class_name_factory();
|
|
454
474
|
init_styles_module();
|
|
455
475
|
init_extension();
|
|
@@ -926,16 +946,16 @@ var init_walk_app_state = __esm({
|
|
|
926
946
|
}
|
|
927
947
|
});
|
|
928
948
|
|
|
929
|
-
// css-module:/
|
|
949
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data
|
|
930
950
|
var init_css_module_data2 = __esm({
|
|
931
|
-
"css-module:/
|
|
951
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data"() {
|
|
932
952
|
}
|
|
933
953
|
});
|
|
934
954
|
|
|
935
|
-
// css-module:/
|
|
955
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module
|
|
936
956
|
var styles_module_default2;
|
|
937
957
|
var init_styles_module2 = __esm({
|
|
938
|
-
"css-module:/
|
|
958
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module"() {
|
|
939
959
|
"use strict";
|
|
940
960
|
init_react_import();
|
|
941
961
|
init_css_module_data2();
|
|
@@ -1778,16 +1798,16 @@ var init_store = __esm({
|
|
|
1778
1798
|
}
|
|
1779
1799
|
});
|
|
1780
1800
|
|
|
1781
|
-
// css-module:/
|
|
1801
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data
|
|
1782
1802
|
var init_css_module_data3 = __esm({
|
|
1783
|
-
"css-module:/
|
|
1803
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data"() {
|
|
1784
1804
|
}
|
|
1785
1805
|
});
|
|
1786
1806
|
|
|
1787
|
-
// css-module:/
|
|
1807
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css#css-module
|
|
1788
1808
|
var IconButton_module_default;
|
|
1789
1809
|
var init_IconButton_module = __esm({
|
|
1790
|
-
"css-module:/
|
|
1810
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css#css-module"() {
|
|
1791
1811
|
"use strict";
|
|
1792
1812
|
init_react_import();
|
|
1793
1813
|
init_css_module_data3();
|
|
@@ -3140,16 +3160,16 @@ var init_lib = __esm({
|
|
|
3140
3160
|
}
|
|
3141
3161
|
});
|
|
3142
3162
|
|
|
3143
|
-
// css-module:/
|
|
3163
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css/#css-module-data
|
|
3144
3164
|
var init_css_module_data4 = __esm({
|
|
3145
|
-
"css-module:/
|
|
3165
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css/#css-module-data"() {
|
|
3146
3166
|
}
|
|
3147
3167
|
});
|
|
3148
3168
|
|
|
3149
|
-
// css-module:/
|
|
3169
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css#css-module
|
|
3150
3170
|
var styles_module_default3;
|
|
3151
3171
|
var init_styles_module3 = __esm({
|
|
3152
|
-
"css-module:/
|
|
3172
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css#css-module"() {
|
|
3153
3173
|
"use strict";
|
|
3154
3174
|
init_react_import();
|
|
3155
3175
|
init_css_module_data4();
|
|
@@ -3189,6 +3209,22 @@ var init_Loader = __esm({
|
|
|
3189
3209
|
}
|
|
3190
3210
|
});
|
|
3191
3211
|
|
|
3212
|
+
// lib/sanitize-href.ts
|
|
3213
|
+
function sanitizeHref(href) {
|
|
3214
|
+
if (!href) return href;
|
|
3215
|
+
const strippedHref = href.replace(/[\u0000-\u001F\u007F-\u009F\s]/g, "").toLowerCase();
|
|
3216
|
+
if (strippedHref.startsWith("javascript:") || strippedHref.startsWith("data:") || strippedHref.startsWith("vbscript:")) {
|
|
3217
|
+
return "#";
|
|
3218
|
+
}
|
|
3219
|
+
return href;
|
|
3220
|
+
}
|
|
3221
|
+
var init_sanitize_href = __esm({
|
|
3222
|
+
"lib/sanitize-href.ts"() {
|
|
3223
|
+
"use strict";
|
|
3224
|
+
init_react_import();
|
|
3225
|
+
}
|
|
3226
|
+
});
|
|
3227
|
+
|
|
3192
3228
|
// components/IconButton/IconButton.tsx
|
|
3193
3229
|
var import_react16, import_jsx_runtime8, getClassName4, IconButton;
|
|
3194
3230
|
var init_IconButton = __esm({
|
|
@@ -3199,6 +3235,7 @@ var init_IconButton = __esm({
|
|
|
3199
3235
|
init_IconButton_module();
|
|
3200
3236
|
init_get_class_name_factory();
|
|
3201
3237
|
init_Loader();
|
|
3238
|
+
init_sanitize_href();
|
|
3202
3239
|
import_jsx_runtime8 = require("react/jsx-runtime");
|
|
3203
3240
|
getClassName4 = get_class_name_factory_default("IconButton", IconButton_module_default);
|
|
3204
3241
|
IconButton = ({
|
|
@@ -3215,7 +3252,7 @@ var init_IconButton = __esm({
|
|
|
3215
3252
|
suppressHydrationWarning
|
|
3216
3253
|
}) => {
|
|
3217
3254
|
const [loading, setLoading] = (0, import_react16.useState)(false);
|
|
3218
|
-
const safeHref = href
|
|
3255
|
+
const safeHref = sanitizeHref(href);
|
|
3219
3256
|
const ElementType = safeHref ? "a" : "button";
|
|
3220
3257
|
const el = /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
3221
3258
|
ElementType,
|
|
@@ -3264,16 +3301,16 @@ var init_IconButton2 = __esm({
|
|
|
3264
3301
|
}
|
|
3265
3302
|
});
|
|
3266
3303
|
|
|
3267
|
-
// css-module:/
|
|
3304
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data
|
|
3268
3305
|
var init_css_module_data5 = __esm({
|
|
3269
|
-
"css-module:/
|
|
3306
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data"() {
|
|
3270
3307
|
}
|
|
3271
3308
|
});
|
|
3272
3309
|
|
|
3273
|
-
// css-module:/
|
|
3310
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css#css-module
|
|
3274
3311
|
var styles_module_default4;
|
|
3275
3312
|
var init_styles_module4 = __esm({
|
|
3276
|
-
"css-module:/
|
|
3313
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css#css-module"() {
|
|
3277
3314
|
"use strict";
|
|
3278
3315
|
init_react_import();
|
|
3279
3316
|
init_css_module_data5();
|
|
@@ -3796,16 +3833,16 @@ var init_get_deep = __esm({
|
|
|
3796
3833
|
}
|
|
3797
3834
|
});
|
|
3798
3835
|
|
|
3799
|
-
// css-module:/
|
|
3836
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data
|
|
3800
3837
|
var init_css_module_data6 = __esm({
|
|
3801
|
-
"css-module:/
|
|
3838
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data"() {
|
|
3802
3839
|
}
|
|
3803
3840
|
});
|
|
3804
3841
|
|
|
3805
|
-
// css-module:/
|
|
3842
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css#css-module
|
|
3806
3843
|
var styles_module_default5;
|
|
3807
3844
|
var init_styles_module5 = __esm({
|
|
3808
|
-
"css-module:/
|
|
3845
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css#css-module"() {
|
|
3809
3846
|
"use strict";
|
|
3810
3847
|
init_react_import();
|
|
3811
3848
|
init_css_module_data6();
|
|
@@ -3987,6 +4024,7 @@ var init_SelectField = __esm({
|
|
|
3987
4024
|
"select",
|
|
3988
4025
|
{
|
|
3989
4026
|
id,
|
|
4027
|
+
"aria-label": label || name,
|
|
3990
4028
|
title: label || name,
|
|
3991
4029
|
className: getClassName8("input"),
|
|
3992
4030
|
disabled: readOnly,
|
|
@@ -4010,16 +4048,16 @@ var init_SelectField = __esm({
|
|
|
4010
4048
|
}
|
|
4011
4049
|
});
|
|
4012
4050
|
|
|
4013
|
-
// css-module:/
|
|
4051
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data
|
|
4014
4052
|
var init_css_module_data7 = __esm({
|
|
4015
|
-
"css-module:/
|
|
4053
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data"() {
|
|
4016
4054
|
}
|
|
4017
4055
|
});
|
|
4018
4056
|
|
|
4019
|
-
// css-module:/
|
|
4057
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css#css-module
|
|
4020
4058
|
var styles_module_default6;
|
|
4021
4059
|
var init_styles_module6 = __esm({
|
|
4022
|
-
"css-module:/
|
|
4060
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css#css-module"() {
|
|
4023
4061
|
"use strict";
|
|
4024
4062
|
init_react_import();
|
|
4025
4063
|
init_css_module_data7();
|
|
@@ -4027,16 +4065,16 @@ var init_styles_module6 = __esm({
|
|
|
4027
4065
|
}
|
|
4028
4066
|
});
|
|
4029
4067
|
|
|
4030
|
-
// css-module:/
|
|
4068
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css/#css-module-data
|
|
4031
4069
|
var init_css_module_data8 = __esm({
|
|
4032
|
-
"css-module:/
|
|
4070
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css/#css-module-data"() {
|
|
4033
4071
|
}
|
|
4034
4072
|
});
|
|
4035
4073
|
|
|
4036
|
-
// css-module:/
|
|
4074
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css#css-module
|
|
4037
4075
|
var styles_module_default7;
|
|
4038
4076
|
var init_styles_module7 = __esm({
|
|
4039
|
-
"css-module:/
|
|
4077
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css#css-module"() {
|
|
4040
4078
|
"use strict";
|
|
4041
4079
|
init_react_import();
|
|
4042
4080
|
init_css_module_data8();
|
|
@@ -4095,16 +4133,16 @@ var init_Modal = __esm({
|
|
|
4095
4133
|
}
|
|
4096
4134
|
});
|
|
4097
4135
|
|
|
4098
|
-
// css-module:/
|
|
4136
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css/#css-module-data
|
|
4099
4137
|
var init_css_module_data9 = __esm({
|
|
4100
|
-
"css-module:/
|
|
4138
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css/#css-module-data"() {
|
|
4101
4139
|
}
|
|
4102
4140
|
});
|
|
4103
4141
|
|
|
4104
|
-
// css-module:/
|
|
4142
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css#css-module
|
|
4105
4143
|
var styles_module_default8;
|
|
4106
4144
|
var init_styles_module8 = __esm({
|
|
4107
|
-
"css-module:/
|
|
4145
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css#css-module"() {
|
|
4108
4146
|
"use strict";
|
|
4109
4147
|
init_react_import();
|
|
4110
4148
|
init_css_module_data9();
|
|
@@ -4137,16 +4175,16 @@ var init_Heading = __esm({
|
|
|
4137
4175
|
}
|
|
4138
4176
|
});
|
|
4139
4177
|
|
|
4140
|
-
// css-module:/
|
|
4178
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css/#css-module-data
|
|
4141
4179
|
var init_css_module_data10 = __esm({
|
|
4142
|
-
"css-module:/
|
|
4180
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css/#css-module-data"() {
|
|
4143
4181
|
}
|
|
4144
4182
|
});
|
|
4145
4183
|
|
|
4146
|
-
// css-module:/
|
|
4184
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css#css-module
|
|
4147
4185
|
var Button_module_default;
|
|
4148
4186
|
var init_Button_module = __esm({
|
|
4149
|
-
"css-module:/
|
|
4187
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css#css-module"() {
|
|
4150
4188
|
"use strict";
|
|
4151
4189
|
init_react_import();
|
|
4152
4190
|
init_css_module_data10();
|
|
@@ -4185,6 +4223,7 @@ var init_Button = __esm({
|
|
|
4185
4223
|
init_get_class_name_factory();
|
|
4186
4224
|
init_Loader();
|
|
4187
4225
|
init_filter_data_attrs();
|
|
4226
|
+
init_sanitize_href();
|
|
4188
4227
|
import_jsx_runtime17 = require("react/jsx-runtime");
|
|
4189
4228
|
getClassName11 = get_class_name_factory_default("Button", Button_module_default);
|
|
4190
4229
|
Button = ({
|
|
@@ -4204,7 +4243,7 @@ var init_Button = __esm({
|
|
|
4204
4243
|
}) => {
|
|
4205
4244
|
const [loading, setLoading] = (0, import_react23.useState)(loadingProp);
|
|
4206
4245
|
(0, import_react23.useEffect)(() => setLoading(loadingProp), [loadingProp]);
|
|
4207
|
-
const safeHref = href
|
|
4246
|
+
const safeHref = sanitizeHref(href);
|
|
4208
4247
|
const ElementType = safeHref ? "a" : type ? "button" : "span";
|
|
4209
4248
|
const dataAttrs = filterDataAttrs(props);
|
|
4210
4249
|
const el = /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
@@ -4806,16 +4845,16 @@ var init_TextareaField = __esm({
|
|
|
4806
4845
|
}
|
|
4807
4846
|
});
|
|
4808
4847
|
|
|
4809
|
-
// css-module:/
|
|
4848
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data
|
|
4810
4849
|
var init_css_module_data11 = __esm({
|
|
4811
|
-
"css-module:/
|
|
4850
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data"() {
|
|
4812
4851
|
}
|
|
4813
4852
|
});
|
|
4814
4853
|
|
|
4815
|
-
// css-module:/
|
|
4854
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module
|
|
4816
4855
|
var styles_module_default9;
|
|
4817
4856
|
var init_styles_module9 = __esm({
|
|
4818
|
-
"css-module:/
|
|
4857
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module"() {
|
|
4819
4858
|
"use strict";
|
|
4820
4859
|
init_react_import();
|
|
4821
4860
|
init_css_module_data11();
|
|
@@ -4823,16 +4862,16 @@ var init_styles_module9 = __esm({
|
|
|
4823
4862
|
}
|
|
4824
4863
|
});
|
|
4825
4864
|
|
|
4826
|
-
// css-module:/
|
|
4865
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css/#css-module-data
|
|
4827
4866
|
var init_css_module_data12 = __esm({
|
|
4828
|
-
"css-module:/
|
|
4867
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css/#css-module-data"() {
|
|
4829
4868
|
}
|
|
4830
4869
|
});
|
|
4831
4870
|
|
|
4832
|
-
// css-module:/
|
|
4871
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css#css-module
|
|
4833
4872
|
var styles_module_default10;
|
|
4834
4873
|
var init_styles_module10 = __esm({
|
|
4835
|
-
"css-module:/
|
|
4874
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css#css-module"() {
|
|
4836
4875
|
"use strict";
|
|
4837
4876
|
init_react_import();
|
|
4838
4877
|
init_css_module_data12();
|
|
@@ -4880,6 +4919,8 @@ var init_ActionBar = __esm({
|
|
|
4880
4919
|
className: getActionClassName({ active, disabled }),
|
|
4881
4920
|
onClick,
|
|
4882
4921
|
title: label,
|
|
4922
|
+
"aria-label": label,
|
|
4923
|
+
"aria-pressed": active,
|
|
4883
4924
|
tabIndex: 0,
|
|
4884
4925
|
disabled,
|
|
4885
4926
|
children
|
|
@@ -4895,16 +4936,16 @@ var init_ActionBar = __esm({
|
|
|
4895
4936
|
}
|
|
4896
4937
|
});
|
|
4897
4938
|
|
|
4898
|
-
// css-module:/
|
|
4939
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data
|
|
4899
4940
|
var init_css_module_data13 = __esm({
|
|
4900
|
-
"css-module:/
|
|
4941
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data"() {
|
|
4901
4942
|
}
|
|
4902
4943
|
});
|
|
4903
4944
|
|
|
4904
|
-
// css-module:/
|
|
4945
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module
|
|
4905
4946
|
var styles_module_default11;
|
|
4906
4947
|
var init_styles_module11 = __esm({
|
|
4907
|
-
"css-module:/
|
|
4948
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module"() {
|
|
4908
4949
|
"use strict";
|
|
4909
4950
|
init_react_import();
|
|
4910
4951
|
init_css_module_data13();
|
|
@@ -5089,16 +5130,16 @@ var init_AlignJustify = __esm({
|
|
|
5089
5130
|
}
|
|
5090
5131
|
});
|
|
5091
5132
|
|
|
5092
|
-
// css-module:/
|
|
5133
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css/#css-module-data
|
|
5093
5134
|
var init_css_module_data14 = __esm({
|
|
5094
|
-
"css-module:/
|
|
5135
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css/#css-module-data"() {
|
|
5095
5136
|
}
|
|
5096
5137
|
});
|
|
5097
5138
|
|
|
5098
|
-
// css-module:/
|
|
5139
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css#css-module
|
|
5099
5140
|
var styles_module_default12;
|
|
5100
5141
|
var init_styles_module12 = __esm({
|
|
5101
|
-
"css-module:/
|
|
5142
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css#css-module"() {
|
|
5102
5143
|
"use strict";
|
|
5103
5144
|
init_react_import();
|
|
5104
5145
|
init_css_module_data14();
|
|
@@ -5134,7 +5175,9 @@ var init_Select = __esm({
|
|
|
5134
5175
|
value,
|
|
5135
5176
|
defaultValue,
|
|
5136
5177
|
mode,
|
|
5137
|
-
disabled = false
|
|
5178
|
+
disabled = false,
|
|
5179
|
+
title,
|
|
5180
|
+
ariaLabel
|
|
5138
5181
|
}) => {
|
|
5139
5182
|
const [open, setOpen] = (0, import_react30.useState)(false);
|
|
5140
5183
|
const hasOptions = options.length > 0;
|
|
@@ -5150,13 +5193,30 @@ var init_Select = __esm({
|
|
|
5150
5193
|
disabled: isDisabled
|
|
5151
5194
|
}),
|
|
5152
5195
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react_popover.Popover, { open, onOpenChange: setOpen, children: [
|
|
5153
|
-
hasOptions ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_popover.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5196
|
+
hasOptions ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_popover.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
5197
|
+
"button",
|
|
5198
|
+
{
|
|
5199
|
+
type: "button",
|
|
5200
|
+
className: getClassName18("button"),
|
|
5201
|
+
title,
|
|
5202
|
+
"aria-label": ariaLabel || title,
|
|
5203
|
+
children: [
|
|
5204
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: getClassName18("buttonIcon"), children }),
|
|
5205
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronDown, { size: 12 })
|
|
5206
|
+
]
|
|
5207
|
+
}
|
|
5208
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
5209
|
+
"div",
|
|
5210
|
+
{
|
|
5211
|
+
className: getClassName18("button"),
|
|
5212
|
+
title,
|
|
5213
|
+
"aria-label": ariaLabel || title,
|
|
5214
|
+
children: [
|
|
5215
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: getClassName18("buttonIcon"), children }),
|
|
5216
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ChevronDown, { size: 12 })
|
|
5217
|
+
]
|
|
5218
|
+
}
|
|
5219
|
+
) }),
|
|
5160
5220
|
options.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_popover.PopoverPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_popover.PopoverContent, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("ul", { className: getClassName18("items"), "data-credbuild-rte-menu": true, children: options.map((option) => {
|
|
5161
5221
|
const Icon2 = option.icon;
|
|
5162
5222
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
@@ -5187,7 +5247,8 @@ function SelectControl({
|
|
|
5187
5247
|
onChange,
|
|
5188
5248
|
options,
|
|
5189
5249
|
value,
|
|
5190
|
-
defaultValue
|
|
5250
|
+
defaultValue,
|
|
5251
|
+
title
|
|
5191
5252
|
}) {
|
|
5192
5253
|
const { inline, readOnly } = useControlContext();
|
|
5193
5254
|
const optionsByValue = (0, import_react31.useMemo)(
|
|
@@ -5207,6 +5268,7 @@ function SelectControl({
|
|
|
5207
5268
|
defaultValue,
|
|
5208
5269
|
mode: inline ? "actionBar" : "standalone",
|
|
5209
5270
|
disabled: readOnly,
|
|
5271
|
+
title,
|
|
5210
5272
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Node, {})
|
|
5211
5273
|
}
|
|
5212
5274
|
);
|
|
@@ -5284,7 +5346,8 @@ function AlignSelectFallback() {
|
|
|
5284
5346
|
},
|
|
5285
5347
|
value: "left",
|
|
5286
5348
|
defaultValue: "left",
|
|
5287
|
-
renderDefaultIcon: TextAlignStart
|
|
5349
|
+
renderDefaultIcon: TextAlignStart,
|
|
5350
|
+
title: "Text alignment"
|
|
5288
5351
|
}
|
|
5289
5352
|
);
|
|
5290
5353
|
}
|
|
@@ -5334,7 +5397,8 @@ function AlignSelectLoaded() {
|
|
|
5334
5397
|
onChange: handleChange,
|
|
5335
5398
|
value: currentValue,
|
|
5336
5399
|
defaultValue: "left",
|
|
5337
|
-
renderDefaultIcon: TextAlignStart
|
|
5400
|
+
renderDefaultIcon: TextAlignStart,
|
|
5401
|
+
title: "Text alignment"
|
|
5338
5402
|
}
|
|
5339
5403
|
);
|
|
5340
5404
|
}
|
|
@@ -5728,7 +5792,8 @@ function HeadingSelectFallback() {
|
|
|
5728
5792
|
},
|
|
5729
5793
|
value: "p",
|
|
5730
5794
|
defaultValue: "p",
|
|
5731
|
-
renderDefaultIcon: Heading7
|
|
5795
|
+
renderDefaultIcon: Heading7,
|
|
5796
|
+
title: "Heading level"
|
|
5732
5797
|
}
|
|
5733
5798
|
);
|
|
5734
5799
|
}
|
|
@@ -5782,7 +5847,8 @@ function HeadingSelectLoaded() {
|
|
|
5782
5847
|
onChange: handleChange,
|
|
5783
5848
|
value: currentValue ?? "p",
|
|
5784
5849
|
defaultValue: "p",
|
|
5785
|
-
renderDefaultIcon: Heading7
|
|
5850
|
+
renderDefaultIcon: Heading7,
|
|
5851
|
+
title: "Heading level"
|
|
5786
5852
|
}
|
|
5787
5853
|
);
|
|
5788
5854
|
}
|
|
@@ -5861,7 +5927,8 @@ function ListSelectFallback() {
|
|
|
5861
5927
|
},
|
|
5862
5928
|
value: "p",
|
|
5863
5929
|
defaultValue: "p",
|
|
5864
|
-
renderDefaultIcon: List
|
|
5930
|
+
renderDefaultIcon: List,
|
|
5931
|
+
title: "List style"
|
|
5865
5932
|
}
|
|
5866
5933
|
);
|
|
5867
5934
|
}
|
|
@@ -5912,7 +5979,8 @@ function ListSelectLoaded() {
|
|
|
5912
5979
|
onChange: handleChange,
|
|
5913
5980
|
value: currentValue ?? "p",
|
|
5914
5981
|
defaultValue: "p",
|
|
5915
|
-
renderDefaultIcon: List
|
|
5982
|
+
renderDefaultIcon: List,
|
|
5983
|
+
title: "List style"
|
|
5916
5984
|
}
|
|
5917
5985
|
);
|
|
5918
5986
|
}
|
|
@@ -6144,13 +6212,13 @@ var init_EditorInner = __esm({
|
|
|
6144
6212
|
});
|
|
6145
6213
|
|
|
6146
6214
|
// components/RichTextEditor/components/EditorFallback.tsx
|
|
6147
|
-
var import_react43,
|
|
6215
|
+
var import_react43, import_jsx_runtime52, EditorFallback;
|
|
6148
6216
|
var init_EditorFallback = __esm({
|
|
6149
6217
|
"components/RichTextEditor/components/EditorFallback.tsx"() {
|
|
6150
6218
|
"use strict";
|
|
6151
6219
|
init_react_import();
|
|
6152
6220
|
import_react43 = require("react");
|
|
6153
|
-
|
|
6221
|
+
init_dompurify();
|
|
6154
6222
|
init_inner();
|
|
6155
6223
|
init_EditorInner();
|
|
6156
6224
|
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
@@ -6173,7 +6241,7 @@ var init_EditorFallback = __esm({
|
|
|
6173
6241
|
"div",
|
|
6174
6242
|
{
|
|
6175
6243
|
className: "rich-text",
|
|
6176
|
-
dangerouslySetInnerHTML: { __html:
|
|
6244
|
+
dangerouslySetInnerHTML: { __html: dompurify_default.sanitize(props.content, { ADD_ATTR: ["target"] }) },
|
|
6177
6245
|
contentEditable: true
|
|
6178
6246
|
}
|
|
6179
6247
|
)
|
|
@@ -6545,16 +6613,16 @@ var init_RichtextField = __esm({
|
|
|
6545
6613
|
}
|
|
6546
6614
|
});
|
|
6547
6615
|
|
|
6548
|
-
// css-module:/
|
|
6616
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data
|
|
6549
6617
|
var init_css_module_data15 = __esm({
|
|
6550
|
-
"css-module:/
|
|
6618
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data"() {
|
|
6551
6619
|
}
|
|
6552
6620
|
});
|
|
6553
6621
|
|
|
6554
|
-
// css-module:/
|
|
6622
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
|
|
6555
6623
|
var styles_module_default13;
|
|
6556
6624
|
var init_styles_module13 = __esm({
|
|
6557
|
-
"css-module:/
|
|
6625
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module"() {
|
|
6558
6626
|
"use strict";
|
|
6559
6627
|
init_react_import();
|
|
6560
6628
|
init_css_module_data15();
|
|
@@ -7451,7 +7519,7 @@ var import_react4 = require("react");
|
|
|
7451
7519
|
|
|
7452
7520
|
// components/RichTextEditor/components/RenderFallback.tsx
|
|
7453
7521
|
init_react_import();
|
|
7454
|
-
|
|
7522
|
+
init_dompurify();
|
|
7455
7523
|
init_get_class_name_factory();
|
|
7456
7524
|
init_styles_module();
|
|
7457
7525
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -7461,7 +7529,7 @@ function RichTextRenderFallback({ content }) {
|
|
|
7461
7529
|
"div",
|
|
7462
7530
|
{
|
|
7463
7531
|
className: "rich-text",
|
|
7464
|
-
dangerouslySetInnerHTML: { __html:
|
|
7532
|
+
dangerouslySetInnerHTML: { __html: dompurify_default.sanitize(content, { ADD_ATTR: ["target"] }) }
|
|
7465
7533
|
}
|
|
7466
7534
|
) });
|
|
7467
7535
|
}
|
|
@@ -8067,6 +8135,8 @@ var SliderField = ({
|
|
|
8067
8135
|
useUnits && /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
8068
8136
|
"select",
|
|
8069
8137
|
{
|
|
8138
|
+
"aria-label": "Select unit",
|
|
8139
|
+
title: "Select unit",
|
|
8070
8140
|
value: currentUnit,
|
|
8071
8141
|
onChange: handleUnitChange,
|
|
8072
8142
|
className: "cb-select-input",
|
|
@@ -8366,13 +8436,13 @@ init_ObjectField();
|
|
|
8366
8436
|
// components/DropZone/index.tsx
|
|
8367
8437
|
init_react_import();
|
|
8368
8438
|
var import_react74 = require("react");
|
|
8369
|
-
|
|
8439
|
+
init_dompurify();
|
|
8370
8440
|
|
|
8371
8441
|
// components/DraggableComponent/index.tsx
|
|
8372
8442
|
init_react_import();
|
|
8373
8443
|
var import_react59 = require("react");
|
|
8374
8444
|
|
|
8375
|
-
// css-module:/
|
|
8445
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DraggableComponent/styles.module.css#css-module
|
|
8376
8446
|
init_react_import();
|
|
8377
8447
|
var styles_module_default14 = { "DraggableComponent": "_DraggableComponent_yrtpz_1", "DraggableComponent-overlayWrapper": "_DraggableComponent-overlayWrapper_yrtpz_12", "DraggableComponent-overlay": "_DraggableComponent-overlay_yrtpz_12", "DraggableComponent-loadingOverlay": "_DraggableComponent-loadingOverlay_yrtpz_34", "DraggableComponent--hover": "_DraggableComponent--hover_yrtpz_50", "DraggableComponent--isSelected": "_DraggableComponent--isSelected_yrtpz_57", "DraggableComponent-actionsOverlay": "_DraggableComponent-actionsOverlay_yrtpz_71", "DraggableComponent-actions": "_DraggableComponent-actions_yrtpz_71" };
|
|
8378
8448
|
|
|
@@ -9106,7 +9176,7 @@ init_setup_zone();
|
|
|
9106
9176
|
init_root_droppable_id();
|
|
9107
9177
|
init_lib();
|
|
9108
9178
|
|
|
9109
|
-
// css-module:/
|
|
9179
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DropZone/styles.module.css#css-module
|
|
9110
9180
|
init_react_import();
|
|
9111
9181
|
var styles_module_default15 = { "DropZone": "_DropZone_1vmgt_1", "DropZone--hasChildren": "_DropZone--hasChildren_1vmgt_11", "DropZone--isAreaSelected": "_DropZone--isAreaSelected_1vmgt_24", "DropZone--hoveringOverArea": "_DropZone--hoveringOverArea_1vmgt_25", "DropZone--isRootZone": "_DropZone--isRootZone_1vmgt_25", "DropZone--isDestination": "_DropZone--isDestination_1vmgt_35", "DropZone-item": "_DropZone-item_1vmgt_47", "DropZone-hitbox": "_DropZone-hitbox_1vmgt_51", "DropZone--isEnabled": "_DropZone--isEnabled_1vmgt_59", "DropZone--isAnimating": "_DropZone--isAnimating_1vmgt_68" };
|
|
9112
9182
|
|
|
@@ -9117,7 +9187,7 @@ var import_react75 = require("@dnd-kit/react");
|
|
|
9117
9187
|
// components/Drawer/index.tsx
|
|
9118
9188
|
init_react_import();
|
|
9119
9189
|
|
|
9120
|
-
// css-module:/
|
|
9190
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Drawer/styles.module.css#css-module
|
|
9121
9191
|
init_react_import();
|
|
9122
9192
|
var styles_module_default16 = { "Drawer": "_Drawer_1quh5_1", "Drawer-draggable": "_Drawer-draggable_1quh5_7", "Drawer-draggableBg": "_Drawer-draggableBg_1quh5_11", "DrawerItem-draggable": "_DrawerItem-draggable_1quh5_21", "DrawerItem--disabled": "_DrawerItem--disabled_1quh5_34", "DrawerItem": "_DrawerItem_1quh5_21", "Drawer--isDraggingFrom": "_Drawer--isDraggingFrom_1quh5_43", "DrawerItem-default": "_DrawerItem-default_1quh5_44", "DrawerItem-name": "_DrawerItem-name_1quh5_61" };
|
|
9123
9193
|
|
|
@@ -9622,7 +9692,7 @@ var registerOverlayPortal = (el, opts = {}) => {
|
|
|
9622
9692
|
// components/InlineTextField/index.tsx
|
|
9623
9693
|
init_store2();
|
|
9624
9694
|
|
|
9625
|
-
// css-module:/
|
|
9695
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/InlineTextField/styles.module.css#css-module
|
|
9626
9696
|
init_react_import();
|
|
9627
9697
|
var styles_module_default17 = { "InlineTextField": "_InlineTextField_104qp_1" };
|
|
9628
9698
|
|
|
@@ -10198,7 +10268,7 @@ var InsertPreview = ({
|
|
|
10198
10268
|
override
|
|
10199
10269
|
}) => {
|
|
10200
10270
|
if (element) {
|
|
10201
|
-
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { dangerouslySetInnerHTML: { __html:
|
|
10271
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { dangerouslySetInnerHTML: { __html: dompurify_default.sanitize(element.outerHTML, { ADD_ATTR: ["target"] }) } });
|
|
10202
10272
|
}
|
|
10203
10273
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DrawerItemInner, { name: label, children: override });
|
|
10204
10274
|
};
|