@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/index.js
CHANGED
|
@@ -74,16 +74,16 @@ var init_get_class_name_factory = __esm({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// css-module:/
|
|
77
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css/#css-module-data
|
|
78
78
|
var init_css_module_data = __esm({
|
|
79
|
-
"css-module:/
|
|
79
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css/#css-module-data"() {
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
// css-module:/
|
|
83
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css#css-module
|
|
84
84
|
var styles_module_default;
|
|
85
85
|
var init_styles_module = __esm({
|
|
86
|
-
"css-module:/
|
|
86
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ActionBar/styles.module.css#css-module"() {
|
|
87
87
|
"use strict";
|
|
88
88
|
init_react_import();
|
|
89
89
|
init_css_module_data();
|
|
@@ -131,6 +131,8 @@ var init_ActionBar = __esm({
|
|
|
131
131
|
className: getActionClassName({ active, disabled }),
|
|
132
132
|
onClick,
|
|
133
133
|
title: label,
|
|
134
|
+
"aria-label": label,
|
|
135
|
+
"aria-pressed": active,
|
|
134
136
|
tabIndex: 0,
|
|
135
137
|
disabled,
|
|
136
138
|
children
|
|
@@ -146,16 +148,16 @@ var init_ActionBar = __esm({
|
|
|
146
148
|
}
|
|
147
149
|
});
|
|
148
150
|
|
|
149
|
-
// css-module:/
|
|
151
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data
|
|
150
152
|
var init_css_module_data2 = __esm({
|
|
151
|
-
"css-module:/
|
|
153
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data"() {
|
|
152
154
|
}
|
|
153
155
|
});
|
|
154
156
|
|
|
155
|
-
// css-module:/
|
|
157
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css#css-module
|
|
156
158
|
var styles_module_default2;
|
|
157
159
|
var init_styles_module2 = __esm({
|
|
158
|
-
"css-module:/
|
|
160
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/styles.module.css#css-module"() {
|
|
159
161
|
"use strict";
|
|
160
162
|
init_react_import();
|
|
161
163
|
init_css_module_data2();
|
|
@@ -4145,6 +4147,7 @@ var init_SelectField = __esm({
|
|
|
4145
4147
|
"select",
|
|
4146
4148
|
{
|
|
4147
4149
|
id,
|
|
4150
|
+
"aria-label": label || name,
|
|
4148
4151
|
title: label || name,
|
|
4149
4152
|
className: getClassName4("input"),
|
|
4150
4153
|
disabled: readOnly,
|
|
@@ -4168,16 +4171,16 @@ var init_SelectField = __esm({
|
|
|
4168
4171
|
}
|
|
4169
4172
|
});
|
|
4170
4173
|
|
|
4171
|
-
// css-module:/
|
|
4174
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data
|
|
4172
4175
|
var init_css_module_data3 = __esm({
|
|
4173
|
-
"css-module:/
|
|
4176
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data"() {
|
|
4174
4177
|
}
|
|
4175
4178
|
});
|
|
4176
4179
|
|
|
4177
|
-
// css-module:/
|
|
4180
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css#css-module
|
|
4178
4181
|
var styles_module_default3;
|
|
4179
4182
|
var init_styles_module3 = __esm({
|
|
4180
|
-
"css-module:/
|
|
4183
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ExternalInput/styles.module.css#css-module"() {
|
|
4181
4184
|
"use strict";
|
|
4182
4185
|
init_react_import();
|
|
4183
4186
|
init_css_module_data3();
|
|
@@ -4185,16 +4188,16 @@ var init_styles_module3 = __esm({
|
|
|
4185
4188
|
}
|
|
4186
4189
|
});
|
|
4187
4190
|
|
|
4188
|
-
// css-module:/
|
|
4191
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css/#css-module-data
|
|
4189
4192
|
var init_css_module_data4 = __esm({
|
|
4190
|
-
"css-module:/
|
|
4193
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css/#css-module-data"() {
|
|
4191
4194
|
}
|
|
4192
4195
|
});
|
|
4193
4196
|
|
|
4194
|
-
// css-module:/
|
|
4197
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css#css-module
|
|
4195
4198
|
var styles_module_default4;
|
|
4196
4199
|
var init_styles_module4 = __esm({
|
|
4197
|
-
"css-module:/
|
|
4200
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Modal/styles.module.css#css-module"() {
|
|
4198
4201
|
"use strict";
|
|
4199
4202
|
init_react_import();
|
|
4200
4203
|
init_css_module_data4();
|
|
@@ -4253,16 +4256,16 @@ var init_Modal = __esm({
|
|
|
4253
4256
|
}
|
|
4254
4257
|
});
|
|
4255
4258
|
|
|
4256
|
-
// css-module:/
|
|
4259
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css/#css-module-data
|
|
4257
4260
|
var init_css_module_data5 = __esm({
|
|
4258
|
-
"css-module:/
|
|
4261
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css/#css-module-data"() {
|
|
4259
4262
|
}
|
|
4260
4263
|
});
|
|
4261
4264
|
|
|
4262
|
-
// css-module:/
|
|
4265
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css#css-module
|
|
4263
4266
|
var styles_module_default5;
|
|
4264
4267
|
var init_styles_module5 = __esm({
|
|
4265
|
-
"css-module:/
|
|
4268
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Heading/styles.module.css#css-module"() {
|
|
4266
4269
|
"use strict";
|
|
4267
4270
|
init_react_import();
|
|
4268
4271
|
init_css_module_data5();
|
|
@@ -4542,16 +4545,16 @@ var init_lib = __esm({
|
|
|
4542
4545
|
}
|
|
4543
4546
|
});
|
|
4544
4547
|
|
|
4545
|
-
// css-module:/
|
|
4548
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css/#css-module-data
|
|
4546
4549
|
var init_css_module_data6 = __esm({
|
|
4547
|
-
"css-module:/
|
|
4550
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css/#css-module-data"() {
|
|
4548
4551
|
}
|
|
4549
4552
|
});
|
|
4550
4553
|
|
|
4551
|
-
// css-module:/
|
|
4554
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css#css-module
|
|
4552
4555
|
var styles_module_default6;
|
|
4553
4556
|
var init_styles_module6 = __esm({
|
|
4554
|
-
"css-module:/
|
|
4557
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Loader/styles.module.css#css-module"() {
|
|
4555
4558
|
"use strict";
|
|
4556
4559
|
init_react_import();
|
|
4557
4560
|
init_css_module_data6();
|
|
@@ -4591,16 +4594,16 @@ var init_Loader = __esm({
|
|
|
4591
4594
|
}
|
|
4592
4595
|
});
|
|
4593
4596
|
|
|
4594
|
-
// css-module:/
|
|
4597
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css/#css-module-data
|
|
4595
4598
|
var init_css_module_data7 = __esm({
|
|
4596
|
-
"css-module:/
|
|
4599
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css/#css-module-data"() {
|
|
4597
4600
|
}
|
|
4598
4601
|
});
|
|
4599
4602
|
|
|
4600
|
-
// css-module:/
|
|
4603
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css#css-module
|
|
4601
4604
|
var Button_module_default;
|
|
4602
4605
|
var init_Button_module = __esm({
|
|
4603
|
-
"css-module:/
|
|
4606
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Button/Button.module.css#css-module"() {
|
|
4604
4607
|
"use strict";
|
|
4605
4608
|
init_react_import();
|
|
4606
4609
|
init_css_module_data7();
|
|
@@ -4627,6 +4630,22 @@ var init_filter_data_attrs = __esm({
|
|
|
4627
4630
|
}
|
|
4628
4631
|
});
|
|
4629
4632
|
|
|
4633
|
+
// lib/sanitize-href.ts
|
|
4634
|
+
function sanitizeHref(href) {
|
|
4635
|
+
if (!href) return href;
|
|
4636
|
+
const strippedHref = href.replace(/[\u0000-\u001F\u007F-\u009F\s]/g, "").toLowerCase();
|
|
4637
|
+
if (strippedHref.startsWith("javascript:") || strippedHref.startsWith("data:") || strippedHref.startsWith("vbscript:")) {
|
|
4638
|
+
return "#";
|
|
4639
|
+
}
|
|
4640
|
+
return href;
|
|
4641
|
+
}
|
|
4642
|
+
var init_sanitize_href = __esm({
|
|
4643
|
+
"lib/sanitize-href.ts"() {
|
|
4644
|
+
"use strict";
|
|
4645
|
+
init_react_import();
|
|
4646
|
+
}
|
|
4647
|
+
});
|
|
4648
|
+
|
|
4630
4649
|
// components/Button/Button.tsx
|
|
4631
4650
|
var import_react16, import_jsx_runtime10, getClassName8, Button;
|
|
4632
4651
|
var init_Button = __esm({
|
|
@@ -4639,6 +4658,7 @@ var init_Button = __esm({
|
|
|
4639
4658
|
init_get_class_name_factory();
|
|
4640
4659
|
init_Loader();
|
|
4641
4660
|
init_filter_data_attrs();
|
|
4661
|
+
init_sanitize_href();
|
|
4642
4662
|
import_jsx_runtime10 = require("react/jsx-runtime");
|
|
4643
4663
|
getClassName8 = get_class_name_factory_default("Button", Button_module_default);
|
|
4644
4664
|
Button = ({
|
|
@@ -4658,7 +4678,7 @@ var init_Button = __esm({
|
|
|
4658
4678
|
}) => {
|
|
4659
4679
|
const [loading, setLoading] = (0, import_react16.useState)(loadingProp);
|
|
4660
4680
|
(0, import_react16.useEffect)(() => setLoading(loadingProp), [loadingProp]);
|
|
4661
|
-
const safeHref = href
|
|
4681
|
+
const safeHref = sanitizeHref(href);
|
|
4662
4682
|
const ElementType = safeHref ? "a" : type ? "button" : "span";
|
|
4663
4683
|
const dataAttrs = filterDataAttrs(props);
|
|
4664
4684
|
const el = /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
@@ -4706,16 +4726,16 @@ var init_Button2 = __esm({
|
|
|
4706
4726
|
}
|
|
4707
4727
|
});
|
|
4708
4728
|
|
|
4709
|
-
// css-module:/
|
|
4729
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data
|
|
4710
4730
|
var init_css_module_data8 = __esm({
|
|
4711
|
-
"css-module:/
|
|
4731
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data"() {
|
|
4712
4732
|
}
|
|
4713
4733
|
});
|
|
4714
4734
|
|
|
4715
|
-
// css-module:/
|
|
4735
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css#css-module
|
|
4716
4736
|
var IconButton_module_default;
|
|
4717
4737
|
var init_IconButton_module = __esm({
|
|
4718
|
-
"css-module:/
|
|
4738
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/IconButton/IconButton.module.css#css-module"() {
|
|
4719
4739
|
"use strict";
|
|
4720
4740
|
init_react_import();
|
|
4721
4741
|
init_css_module_data8();
|
|
@@ -4733,6 +4753,7 @@ var init_IconButton = __esm({
|
|
|
4733
4753
|
init_IconButton_module();
|
|
4734
4754
|
init_get_class_name_factory();
|
|
4735
4755
|
init_Loader();
|
|
4756
|
+
init_sanitize_href();
|
|
4736
4757
|
import_jsx_runtime11 = require("react/jsx-runtime");
|
|
4737
4758
|
getClassName9 = get_class_name_factory_default("IconButton", IconButton_module_default);
|
|
4738
4759
|
IconButton = ({
|
|
@@ -4749,7 +4770,7 @@ var init_IconButton = __esm({
|
|
|
4749
4770
|
suppressHydrationWarning
|
|
4750
4771
|
}) => {
|
|
4751
4772
|
const [loading, setLoading] = (0, import_react17.useState)(false);
|
|
4752
|
-
const safeHref = href
|
|
4773
|
+
const safeHref = sanitizeHref(href);
|
|
4753
4774
|
const ElementType = safeHref ? "a" : "button";
|
|
4754
4775
|
const el = /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
4755
4776
|
ElementType,
|
|
@@ -5273,16 +5294,36 @@ var init_TextareaField = __esm({
|
|
|
5273
5294
|
}
|
|
5274
5295
|
});
|
|
5275
5296
|
|
|
5276
|
-
//
|
|
5297
|
+
// lib/dompurify.ts
|
|
5298
|
+
var import_isomorphic_dompurify, dompurify_default;
|
|
5299
|
+
var init_dompurify = __esm({
|
|
5300
|
+
"lib/dompurify.ts"() {
|
|
5301
|
+
"use strict";
|
|
5302
|
+
init_react_import();
|
|
5303
|
+
import_isomorphic_dompurify = __toESM(require("isomorphic-dompurify"));
|
|
5304
|
+
import_isomorphic_dompurify.default.addHook("afterSanitizeAttributes", function(node) {
|
|
5305
|
+
if ("target" in node && node.getAttribute("target") === "_blank") {
|
|
5306
|
+
const existingRel = node.getAttribute("rel") || "";
|
|
5307
|
+
const rels = new Set(existingRel.split(" ").filter(Boolean));
|
|
5308
|
+
rels.add("noopener");
|
|
5309
|
+
rels.add("noreferrer");
|
|
5310
|
+
node.setAttribute("rel", Array.from(rels).join(" "));
|
|
5311
|
+
}
|
|
5312
|
+
});
|
|
5313
|
+
dompurify_default = import_isomorphic_dompurify.default;
|
|
5314
|
+
}
|
|
5315
|
+
});
|
|
5316
|
+
|
|
5317
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data
|
|
5277
5318
|
var init_css_module_data9 = __esm({
|
|
5278
|
-
"css-module:/
|
|
5319
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data"() {
|
|
5279
5320
|
}
|
|
5280
5321
|
});
|
|
5281
5322
|
|
|
5282
|
-
// css-module:/
|
|
5323
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module
|
|
5283
5324
|
var styles_module_default7;
|
|
5284
5325
|
var init_styles_module7 = __esm({
|
|
5285
|
-
"css-module:/
|
|
5326
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module"() {
|
|
5286
5327
|
"use strict";
|
|
5287
5328
|
init_react_import();
|
|
5288
5329
|
init_css_module_data9();
|
|
@@ -5290,16 +5331,16 @@ var init_styles_module7 = __esm({
|
|
|
5290
5331
|
}
|
|
5291
5332
|
});
|
|
5292
5333
|
|
|
5293
|
-
// css-module:/
|
|
5334
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data
|
|
5294
5335
|
var init_css_module_data10 = __esm({
|
|
5295
|
-
"css-module:/
|
|
5336
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data"() {
|
|
5296
5337
|
}
|
|
5297
5338
|
});
|
|
5298
5339
|
|
|
5299
|
-
// css-module:/
|
|
5340
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module
|
|
5300
5341
|
var styles_module_default8;
|
|
5301
5342
|
var init_styles_module8 = __esm({
|
|
5302
|
-
"css-module:/
|
|
5343
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module"() {
|
|
5303
5344
|
"use strict";
|
|
5304
5345
|
init_react_import();
|
|
5305
5346
|
init_css_module_data10();
|
|
@@ -5484,16 +5525,16 @@ var init_AlignJustify = __esm({
|
|
|
5484
5525
|
}
|
|
5485
5526
|
});
|
|
5486
5527
|
|
|
5487
|
-
// css-module:/
|
|
5528
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css/#css-module-data
|
|
5488
5529
|
var init_css_module_data11 = __esm({
|
|
5489
|
-
"css-module:/
|
|
5530
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css/#css-module-data"() {
|
|
5490
5531
|
}
|
|
5491
5532
|
});
|
|
5492
5533
|
|
|
5493
|
-
// css-module:/
|
|
5534
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css#css-module
|
|
5494
5535
|
var styles_module_default9;
|
|
5495
5536
|
var init_styles_module9 = __esm({
|
|
5496
|
-
"css-module:/
|
|
5537
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Select/styles.module.css#css-module"() {
|
|
5497
5538
|
"use strict";
|
|
5498
5539
|
init_react_import();
|
|
5499
5540
|
init_css_module_data11();
|
|
@@ -5529,7 +5570,9 @@ var init_Select = __esm({
|
|
|
5529
5570
|
value,
|
|
5530
5571
|
defaultValue,
|
|
5531
5572
|
mode,
|
|
5532
|
-
disabled = false
|
|
5573
|
+
disabled = false,
|
|
5574
|
+
title,
|
|
5575
|
+
ariaLabel
|
|
5533
5576
|
}) => {
|
|
5534
5577
|
const [open, setOpen] = (0, import_react22.useState)(false);
|
|
5535
5578
|
const hasOptions = options.length > 0;
|
|
@@ -5545,13 +5588,30 @@ var init_Select = __esm({
|
|
|
5545
5588
|
disabled: isDisabled
|
|
5546
5589
|
}),
|
|
5547
5590
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_react_popover.Popover, { open, onOpenChange: setOpen, children: [
|
|
5548
|
-
hasOptions ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_popover.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5591
|
+
hasOptions ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_popover.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
5592
|
+
"button",
|
|
5593
|
+
{
|
|
5594
|
+
type: "button",
|
|
5595
|
+
className: getClassName14("button"),
|
|
5596
|
+
title,
|
|
5597
|
+
"aria-label": ariaLabel || title,
|
|
5598
|
+
children: [
|
|
5599
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: getClassName14("buttonIcon"), children }),
|
|
5600
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronDown, { size: 12 })
|
|
5601
|
+
]
|
|
5602
|
+
}
|
|
5603
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
5604
|
+
"div",
|
|
5605
|
+
{
|
|
5606
|
+
className: getClassName14("button"),
|
|
5607
|
+
title,
|
|
5608
|
+
"aria-label": ariaLabel || title,
|
|
5609
|
+
children: [
|
|
5610
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: getClassName14("buttonIcon"), children }),
|
|
5611
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronDown, { size: 12 })
|
|
5612
|
+
]
|
|
5613
|
+
}
|
|
5614
|
+
) }),
|
|
5555
5615
|
options.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_popover.PopoverPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_popover.PopoverContent, { align: "start", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("ul", { className: getClassName14("items"), "data-credbuild-rte-menu": true, children: options.map((option) => {
|
|
5556
5616
|
const Icon2 = option.icon;
|
|
5557
5617
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
@@ -5582,7 +5642,8 @@ function SelectControl({
|
|
|
5582
5642
|
onChange,
|
|
5583
5643
|
options,
|
|
5584
5644
|
value,
|
|
5585
|
-
defaultValue
|
|
5645
|
+
defaultValue,
|
|
5646
|
+
title
|
|
5586
5647
|
}) {
|
|
5587
5648
|
const { inline, readOnly } = useControlContext();
|
|
5588
5649
|
const optionsByValue = (0, import_react23.useMemo)(
|
|
@@ -5602,6 +5663,7 @@ function SelectControl({
|
|
|
5602
5663
|
defaultValue,
|
|
5603
5664
|
mode: inline ? "actionBar" : "standalone",
|
|
5604
5665
|
disabled: readOnly,
|
|
5666
|
+
title,
|
|
5605
5667
|
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Node2, {})
|
|
5606
5668
|
}
|
|
5607
5669
|
);
|
|
@@ -5679,7 +5741,8 @@ function AlignSelectFallback() {
|
|
|
5679
5741
|
},
|
|
5680
5742
|
value: "left",
|
|
5681
5743
|
defaultValue: "left",
|
|
5682
|
-
renderDefaultIcon: TextAlignStart
|
|
5744
|
+
renderDefaultIcon: TextAlignStart,
|
|
5745
|
+
title: "Text alignment"
|
|
5683
5746
|
}
|
|
5684
5747
|
);
|
|
5685
5748
|
}
|
|
@@ -5729,7 +5792,8 @@ function AlignSelectLoaded() {
|
|
|
5729
5792
|
onChange: handleChange,
|
|
5730
5793
|
value: currentValue,
|
|
5731
5794
|
defaultValue: "left",
|
|
5732
|
-
renderDefaultIcon: TextAlignStart
|
|
5795
|
+
renderDefaultIcon: TextAlignStart,
|
|
5796
|
+
title: "Text alignment"
|
|
5733
5797
|
}
|
|
5734
5798
|
);
|
|
5735
5799
|
}
|
|
@@ -6123,7 +6187,8 @@ function HeadingSelectFallback() {
|
|
|
6123
6187
|
},
|
|
6124
6188
|
value: "p",
|
|
6125
6189
|
defaultValue: "p",
|
|
6126
|
-
renderDefaultIcon: Heading
|
|
6190
|
+
renderDefaultIcon: Heading,
|
|
6191
|
+
title: "Heading level"
|
|
6127
6192
|
}
|
|
6128
6193
|
);
|
|
6129
6194
|
}
|
|
@@ -6177,7 +6242,8 @@ function HeadingSelectLoaded() {
|
|
|
6177
6242
|
onChange: handleChange,
|
|
6178
6243
|
value: currentValue ?? "p",
|
|
6179
6244
|
defaultValue: "p",
|
|
6180
|
-
renderDefaultIcon: Heading
|
|
6245
|
+
renderDefaultIcon: Heading,
|
|
6246
|
+
title: "Heading level"
|
|
6181
6247
|
}
|
|
6182
6248
|
);
|
|
6183
6249
|
}
|
|
@@ -6256,7 +6322,8 @@ function ListSelectFallback() {
|
|
|
6256
6322
|
},
|
|
6257
6323
|
value: "p",
|
|
6258
6324
|
defaultValue: "p",
|
|
6259
|
-
renderDefaultIcon: List
|
|
6325
|
+
renderDefaultIcon: List,
|
|
6326
|
+
title: "List style"
|
|
6260
6327
|
}
|
|
6261
6328
|
);
|
|
6262
6329
|
}
|
|
@@ -6307,7 +6374,8 @@ function ListSelectLoaded() {
|
|
|
6307
6374
|
onChange: handleChange,
|
|
6308
6375
|
value: currentValue ?? "p",
|
|
6309
6376
|
defaultValue: "p",
|
|
6310
|
-
renderDefaultIcon: List
|
|
6377
|
+
renderDefaultIcon: List,
|
|
6378
|
+
title: "List style"
|
|
6311
6379
|
}
|
|
6312
6380
|
);
|
|
6313
6381
|
}
|
|
@@ -6459,16 +6527,16 @@ var init_inner = __esm({
|
|
|
6459
6527
|
}
|
|
6460
6528
|
});
|
|
6461
6529
|
|
|
6462
|
-
// css-module:/
|
|
6530
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data
|
|
6463
6531
|
var init_css_module_data12 = __esm({
|
|
6464
|
-
"css-module:/
|
|
6532
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data"() {
|
|
6465
6533
|
}
|
|
6466
6534
|
});
|
|
6467
6535
|
|
|
6468
|
-
// css-module:/
|
|
6536
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module
|
|
6469
6537
|
var styles_module_default10;
|
|
6470
6538
|
var init_styles_module10 = __esm({
|
|
6471
|
-
"css-module:/
|
|
6539
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module"() {
|
|
6472
6540
|
"use strict";
|
|
6473
6541
|
init_react_import();
|
|
6474
6542
|
init_css_module_data12();
|
|
@@ -6556,13 +6624,13 @@ var init_EditorInner = __esm({
|
|
|
6556
6624
|
});
|
|
6557
6625
|
|
|
6558
6626
|
// components/RichTextEditor/components/EditorFallback.tsx
|
|
6559
|
-
var import_react35,
|
|
6627
|
+
var import_react35, import_jsx_runtime44, EditorFallback;
|
|
6560
6628
|
var init_EditorFallback = __esm({
|
|
6561
6629
|
"components/RichTextEditor/components/EditorFallback.tsx"() {
|
|
6562
6630
|
"use strict";
|
|
6563
6631
|
init_react_import();
|
|
6564
6632
|
import_react35 = require("react");
|
|
6565
|
-
|
|
6633
|
+
init_dompurify();
|
|
6566
6634
|
init_inner();
|
|
6567
6635
|
init_EditorInner();
|
|
6568
6636
|
import_jsx_runtime44 = require("react/jsx-runtime");
|
|
@@ -6585,7 +6653,7 @@ var init_EditorFallback = __esm({
|
|
|
6585
6653
|
"div",
|
|
6586
6654
|
{
|
|
6587
6655
|
className: "rich-text",
|
|
6588
|
-
dangerouslySetInnerHTML: { __html:
|
|
6656
|
+
dangerouslySetInnerHTML: { __html: dompurify_default.sanitize(props.content, { ADD_ATTR: ["target"] }) },
|
|
6589
6657
|
contentEditable: true
|
|
6590
6658
|
}
|
|
6591
6659
|
)
|
|
@@ -7056,16 +7124,16 @@ var init_RichtextField = __esm({
|
|
|
7056
7124
|
}
|
|
7057
7125
|
});
|
|
7058
7126
|
|
|
7059
|
-
// css-module:/
|
|
7127
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data
|
|
7060
7128
|
var init_css_module_data13 = __esm({
|
|
7061
|
-
"css-module:/
|
|
7129
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data"() {
|
|
7062
7130
|
}
|
|
7063
7131
|
});
|
|
7064
7132
|
|
|
7065
|
-
// css-module:/
|
|
7133
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module
|
|
7066
7134
|
var styles_module_default11;
|
|
7067
7135
|
var init_styles_module11 = __esm({
|
|
7068
|
-
"css-module:/
|
|
7136
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module"() {
|
|
7069
7137
|
"use strict";
|
|
7070
7138
|
init_react_import();
|
|
7071
7139
|
init_css_module_data13();
|
|
@@ -7073,16 +7141,16 @@ var init_styles_module11 = __esm({
|
|
|
7073
7141
|
}
|
|
7074
7142
|
});
|
|
7075
7143
|
|
|
7076
|
-
// css-module:/
|
|
7144
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data
|
|
7077
7145
|
var init_css_module_data14 = __esm({
|
|
7078
|
-
"css-module:/
|
|
7146
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data"() {
|
|
7079
7147
|
}
|
|
7080
7148
|
});
|
|
7081
7149
|
|
|
7082
|
-
// css-module:/
|
|
7150
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css#css-module
|
|
7083
7151
|
var styles_module_default12;
|
|
7084
7152
|
var init_styles_module12 = __esm({
|
|
7085
|
-
"css-module:/
|
|
7153
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DragIcon/styles.module.css#css-module"() {
|
|
7086
7154
|
"use strict";
|
|
7087
7155
|
init_react_import();
|
|
7088
7156
|
init_css_module_data14();
|
|
@@ -8065,16 +8133,16 @@ var init_ArrayField = __esm({
|
|
|
8065
8133
|
}
|
|
8066
8134
|
});
|
|
8067
8135
|
|
|
8068
|
-
// css-module:/
|
|
8136
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data
|
|
8069
8137
|
var init_css_module_data15 = __esm({
|
|
8070
|
-
"css-module:/
|
|
8138
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data"() {
|
|
8071
8139
|
}
|
|
8072
8140
|
});
|
|
8073
8141
|
|
|
8074
|
-
// css-module:/
|
|
8142
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
|
|
8075
8143
|
var styles_module_default13;
|
|
8076
8144
|
var init_styles_module13 = __esm({
|
|
8077
|
-
"css-module:/
|
|
8145
|
+
"css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module"() {
|
|
8078
8146
|
"use strict";
|
|
8079
8147
|
init_react_import();
|
|
8080
8148
|
init_css_module_data15();
|
|
@@ -8428,17 +8496,17 @@ function RichTextRender({
|
|
|
8428
8496
|
const html = (0, import_react66.useMemo)(() => {
|
|
8429
8497
|
return (0, import_html.generateHTML)(normalized, loadedExtensions);
|
|
8430
8498
|
}, [normalized, loadedExtensions]);
|
|
8431
|
-
const sanitizedHtml = (0, import_react66.useMemo)(() =>
|
|
8499
|
+
const sanitizedHtml = (0, import_react66.useMemo)(() => dompurify_default.sanitize(html, { ADD_ATTR: ["target"] }), [html]);
|
|
8432
8500
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: getClassName24(), children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "rich-text", dangerouslySetInnerHTML: { __html: sanitizedHtml } }) });
|
|
8433
8501
|
}
|
|
8434
|
-
var import_html, import_react66,
|
|
8502
|
+
var import_html, import_react66, import_jsx_runtime63, getClassName24;
|
|
8435
8503
|
var init_Render = __esm({
|
|
8436
8504
|
"components/RichTextEditor/components/Render.tsx"() {
|
|
8437
8505
|
"use strict";
|
|
8438
8506
|
init_react_import();
|
|
8439
8507
|
import_html = require("@tiptap/html");
|
|
8440
8508
|
import_react66 = require("react");
|
|
8441
|
-
|
|
8509
|
+
init_dompurify();
|
|
8442
8510
|
init_get_class_name_factory();
|
|
8443
8511
|
init_styles_module10();
|
|
8444
8512
|
init_extension();
|
|
@@ -8667,6 +8735,8 @@ var SliderField = ({
|
|
|
8667
8735
|
useUnits && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8668
8736
|
"select",
|
|
8669
8737
|
{
|
|
8738
|
+
"aria-label": "Select unit",
|
|
8739
|
+
title: "Select unit",
|
|
8670
8740
|
value: currentUnit,
|
|
8671
8741
|
onChange: handleUnitChange,
|
|
8672
8742
|
className: "cb-select-input",
|
|
@@ -8969,7 +9039,7 @@ init_Button2();
|
|
|
8969
9039
|
// components/Drawer/index.tsx
|
|
8970
9040
|
init_react_import();
|
|
8971
9041
|
|
|
8972
|
-
// css-module:/
|
|
9042
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Drawer/styles.module.css#css-module
|
|
8973
9043
|
init_react_import();
|
|
8974
9044
|
var styles_module_default14 = { "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" };
|
|
8975
9045
|
|
|
@@ -9142,13 +9212,13 @@ Drawer.Item = DrawerItem;
|
|
|
9142
9212
|
// components/DropZone/index.tsx
|
|
9143
9213
|
init_react_import();
|
|
9144
9214
|
var import_react74 = require("react");
|
|
9145
|
-
|
|
9215
|
+
init_dompurify();
|
|
9146
9216
|
|
|
9147
9217
|
// components/DraggableComponent/index.tsx
|
|
9148
9218
|
init_react_import();
|
|
9149
9219
|
var import_react58 = require("react");
|
|
9150
9220
|
|
|
9151
|
-
// css-module:/
|
|
9221
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DraggableComponent/styles.module.css#css-module
|
|
9152
9222
|
init_react_import();
|
|
9153
9223
|
var styles_module_default15 = { "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" };
|
|
9154
9224
|
|
|
@@ -9888,7 +9958,7 @@ init_setup_zone();
|
|
|
9888
9958
|
init_root_droppable_id();
|
|
9889
9959
|
init_lib();
|
|
9890
9960
|
|
|
9891
|
-
// css-module:/
|
|
9961
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/DropZone/styles.module.css#css-module
|
|
9892
9962
|
init_react_import();
|
|
9893
9963
|
var styles_module_default16 = { "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" };
|
|
9894
9964
|
|
|
@@ -10186,7 +10256,7 @@ var import_react67 = require("react");
|
|
|
10186
10256
|
|
|
10187
10257
|
// components/RichTextEditor/components/RenderFallback.tsx
|
|
10188
10258
|
init_react_import();
|
|
10189
|
-
|
|
10259
|
+
init_dompurify();
|
|
10190
10260
|
init_get_class_name_factory();
|
|
10191
10261
|
init_styles_module10();
|
|
10192
10262
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
@@ -10196,7 +10266,7 @@ function RichTextRenderFallback({ content }) {
|
|
|
10196
10266
|
"div",
|
|
10197
10267
|
{
|
|
10198
10268
|
className: "rich-text",
|
|
10199
|
-
dangerouslySetInnerHTML: { __html:
|
|
10269
|
+
dangerouslySetInnerHTML: { __html: dompurify_default.sanitize(content, { ADD_ATTR: ["target"] }) }
|
|
10200
10270
|
}
|
|
10201
10271
|
) });
|
|
10202
10272
|
}
|
|
@@ -10443,7 +10513,7 @@ var registerOverlayPortal = (el, opts = {}) => {
|
|
|
10443
10513
|
// components/InlineTextField/index.tsx
|
|
10444
10514
|
init_store2();
|
|
10445
10515
|
|
|
10446
|
-
// css-module:/
|
|
10516
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/InlineTextField/styles.module.css#css-module
|
|
10447
10517
|
init_react_import();
|
|
10448
10518
|
var styles_module_default17 = { "InlineTextField": "_InlineTextField_104qp_1" };
|
|
10449
10519
|
|
|
@@ -11019,7 +11089,7 @@ var InsertPreview = ({
|
|
|
11019
11089
|
override
|
|
11020
11090
|
}) => {
|
|
11021
11091
|
if (element) {
|
|
11022
|
-
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { dangerouslySetInnerHTML: { __html:
|
|
11092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { dangerouslySetInnerHTML: { __html: dompurify_default.sanitize(element.outerHTML, { ADD_ATTR: ["target"] }) } });
|
|
11023
11093
|
}
|
|
11024
11094
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(DrawerItemInner, { name: label, children: override });
|
|
11025
11095
|
};
|
|
@@ -11486,7 +11556,7 @@ init_AutoField();
|
|
|
11486
11556
|
init_store();
|
|
11487
11557
|
init_store2();
|
|
11488
11558
|
|
|
11489
|
-
// css-module:/
|
|
11559
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Fields/styles.module.css#css-module
|
|
11490
11560
|
init_react_import();
|
|
11491
11561
|
var styles_module_default18 = { "CredBuildFields": "_CredBuildFields_53gu7_1", "CredBuildFields--isLoading": "_CredBuildFields--isLoading_53gu7_6", "CredBuildFields-loadingOverlay": "_CredBuildFields-loadingOverlay_53gu7_10", "CredBuildFields-loadingOverlayInner": "_CredBuildFields-loadingOverlayInner_53gu7_25", "CredBuildFields-field": "_CredBuildFields-field_53gu7_32", "CredBuildFields--wrapFields": "_CredBuildFields--wrapFields_53gu7_36" };
|
|
11492
11562
|
|
|
@@ -11649,7 +11719,7 @@ var import_react78 = require("react");
|
|
|
11649
11719
|
// components/ComponentList/index.tsx
|
|
11650
11720
|
init_react_import();
|
|
11651
11721
|
|
|
11652
|
-
// css-module:/
|
|
11722
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ComponentList/styles.module.css#css-module
|
|
11653
11723
|
init_react_import();
|
|
11654
11724
|
var styles_module_default19 = { "ComponentList": "_ComponentList_1dcib_1", "ComponentList--isExpanded": "_ComponentList--isExpanded_1dcib_5", "ComponentList-content": "_ComponentList-content_1dcib_9", "ComponentList-title": "_ComponentList-title_1dcib_17", "ComponentList-titleIcon": "_ComponentList-titleIcon_1dcib_53" };
|
|
11655
11725
|
|
|
@@ -11830,7 +11900,7 @@ init_store2();
|
|
|
11830
11900
|
var import_react79 = require("react");
|
|
11831
11901
|
init_lucide_react();
|
|
11832
11902
|
|
|
11833
|
-
// css-module:/
|
|
11903
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Components/styles.module.css#css-module
|
|
11834
11904
|
init_react_import();
|
|
11835
11905
|
var styles_module_default20 = { "CredBuildComponents": "_CredBuildComponents_lxrzy_1", "CredBuildComponents-searchContainer": "_CredBuildComponents-searchContainer_lxrzy_7", "CredBuildComponents-searchWrapper": "_CredBuildComponents-searchWrapper_lxrzy_16", "CredBuildComponents-searchInput": "_CredBuildComponents-searchInput_lxrzy_23", "CredBuildComponents-searchIcon": "_CredBuildComponents-searchIcon_lxrzy_42", "CredBuildComponents-clearButton": "_CredBuildComponents-clearButton_lxrzy_54", "CredBuildComponents-listContainer": "_CredBuildComponents-listContainer_lxrzy_74", "CredBuildComponents-noResults": "_CredBuildComponents-noResults_lxrzy_79" };
|
|
11836
11906
|
|
|
@@ -12227,7 +12297,7 @@ function AutoFrame({
|
|
|
12227
12297
|
AutoFrame.displayName = "AutoFrame";
|
|
12228
12298
|
var AutoFrame_default = AutoFrame;
|
|
12229
12299
|
|
|
12230
|
-
// css-module:/
|
|
12300
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Preview/styles.module.css#css-module
|
|
12231
12301
|
init_react_import();
|
|
12232
12302
|
var styles_module_default21 = { "CredBuildPreview": "_CredBuildPreview_17c6o_1", "CredBuildPreview-frame": "_CredBuildPreview-frame_17c6o_6", "CredBuildPreview-htmlEditor": "_CredBuildPreview-htmlEditor_17c6o_12", "CredBuildPreview-htmlTextarea": "_CredBuildPreview-htmlTextarea_17c6o_23" };
|
|
12233
12303
|
|
|
@@ -12394,8 +12464,13 @@ function Render({
|
|
|
12394
12464
|
};
|
|
12395
12465
|
const rootProps = "props" in defaultedData.root ? defaultedData.root.props : defaultedData.root;
|
|
12396
12466
|
const title = rootProps?.title || "";
|
|
12467
|
+
const renderContextValue = (0, import_react82.useMemo)(() => ({
|
|
12468
|
+
config,
|
|
12469
|
+
data: defaultedData,
|
|
12470
|
+
metadata
|
|
12471
|
+
}), [config, defaultedData, metadata]);
|
|
12397
12472
|
if (rootProps?.mode === "html") {
|
|
12398
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value:
|
|
12473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value: renderContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(HtmlModeRender, { htmlCode: rootProps.htmlCode, isEditing: false }) });
|
|
12399
12474
|
}
|
|
12400
12475
|
const pageProps = {
|
|
12401
12476
|
...rootProps,
|
|
@@ -12423,9 +12498,9 @@ function Render({
|
|
|
12423
12498
|
[]
|
|
12424
12499
|
);
|
|
12425
12500
|
if (config.root?.render) {
|
|
12426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value:
|
|
12501
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value: renderContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(config.root.render, { ...propsWithSlots, ...richtextProps, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneRenderPure, { zone: rootZone }) }) }) });
|
|
12427
12502
|
}
|
|
12428
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value:
|
|
12503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(renderContext.Provider, { value: renderContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneProvider, { value: nextContextValue, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(DropZoneRenderPure, { zone: rootZone }) }) });
|
|
12429
12504
|
}
|
|
12430
12505
|
|
|
12431
12506
|
// lib/bubble-pointer-event.ts
|
|
@@ -12709,7 +12784,7 @@ init_react_import();
|
|
|
12709
12784
|
// components/LayerTree/index.tsx
|
|
12710
12785
|
init_react_import();
|
|
12711
12786
|
|
|
12712
|
-
// css-module:/
|
|
12787
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/LayerTree/styles.module.css#css-module
|
|
12713
12788
|
init_react_import();
|
|
12714
12789
|
var styles_module_default22 = { "LayerTree": "_LayerTree_nus40_1", "LayerTree-zoneTitle": "_LayerTree-zoneTitle_nus40_11", "LayerTree-helper": "_LayerTree-helper_nus40_17", "Layer": "_Layer_nus40_1", "Layer-inner": "_Layer-inner_nus40_29", "Layer--containsZone": "_Layer--containsZone_nus40_35", "Layer-clickable": "_Layer-clickable_nus40_39", "Layer--isSelected": "_Layer--isSelected_nus40_58", "Layer-chevron": "_Layer-chevron_nus40_79", "Layer--childIsSelected": "_Layer--childIsSelected_nus40_80", "Layer-zones": "_Layer-zones_nus40_84", "Layer-title": "_Layer-title_nus40_98", "Layer-name": "_Layer-name_nus40_107", "Layer-icon": "_Layer-icon_nus40_113", "Layer-zoneIcon": "_Layer-zoneIcon_nus40_118" };
|
|
12715
12790
|
|
|
@@ -12728,6 +12803,7 @@ var DEFAULT_LAYER_ROW_HEIGHT = 32;
|
|
|
12728
12803
|
var LAYER_TREE_VIRTUALIZATION_OVERSCAN = 8;
|
|
12729
12804
|
var MIN_VIRTUALIZED_LAYER_COUNT = 25;
|
|
12730
12805
|
var measuredRowHeights = /* @__PURE__ */ new Map();
|
|
12806
|
+
var DragContext = (0, import_react84.createContext)(null);
|
|
12731
12807
|
var getZonesByParent = (zones) => {
|
|
12732
12808
|
return Object.keys(zones).reduce((acc, zone) => {
|
|
12733
12809
|
const [parentId] = zone.split(":");
|
|
@@ -12830,7 +12906,9 @@ var Layer = (0, import_react84.memo)((0, import_react84.forwardRef)(function Lay
|
|
|
12830
12906
|
selectedPathIds
|
|
12831
12907
|
}, ref) {
|
|
12832
12908
|
const dispatch = useAppStore((s) => s.dispatch);
|
|
12909
|
+
const appStoreApi = useAppStoreApi();
|
|
12833
12910
|
const zoneStore = (0, import_react84.useContext)(ZoneStoreContext);
|
|
12911
|
+
const dragCtx = (0, import_react84.useContext)(DragContext);
|
|
12834
12912
|
const isHovering = useContextStore(
|
|
12835
12913
|
ZoneStoreContext,
|
|
12836
12914
|
(s) => s.hoveringComponent === node.itemId
|
|
@@ -12869,12 +12947,98 @@ var Layer = (0, import_react84.memo)((0, import_react84.forwardRef)(function Lay
|
|
|
12869
12947
|
}),
|
|
12870
12948
|
"data-index": dataIndex,
|
|
12871
12949
|
"data-credbuild-layer-tree-id": node.itemId,
|
|
12950
|
+
draggable: true,
|
|
12951
|
+
onDragStart: (e) => {
|
|
12952
|
+
dragCtx?.setDraggedItem({
|
|
12953
|
+
itemId: node.itemId,
|
|
12954
|
+
index: node.index,
|
|
12955
|
+
zoneCompound: node.zoneCompound
|
|
12956
|
+
});
|
|
12957
|
+
e.dataTransfer.effectAllowed = "move";
|
|
12958
|
+
},
|
|
12959
|
+
onDragOver: (e) => {
|
|
12960
|
+
e.preventDefault();
|
|
12961
|
+
if (!dragCtx || !dragCtx.draggedItem || dragCtx.draggedItem.itemId === node.itemId) return;
|
|
12962
|
+
const targetNodeIndex = appStoreApi.getState().state.indexes.nodes[node.itemId];
|
|
12963
|
+
if (targetNodeIndex?.path.some((p) => p.split(":")[0] === dragCtx.draggedItem?.itemId)) {
|
|
12964
|
+
return;
|
|
12965
|
+
}
|
|
12966
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
12967
|
+
const hoverClientY = e.clientY - rect.top;
|
|
12968
|
+
const threshold = rect.height / 2;
|
|
12969
|
+
const position = hoverClientY < threshold ? "before" : "after";
|
|
12970
|
+
dragCtx.setHoveredItemId(node.itemId);
|
|
12971
|
+
dragCtx.setHoverPosition(position);
|
|
12972
|
+
},
|
|
12973
|
+
onDragLeave: () => {
|
|
12974
|
+
if (dragCtx?.hoveredItemId === node.itemId) {
|
|
12975
|
+
dragCtx.setHoveredItemId(null);
|
|
12976
|
+
dragCtx.setHoverPosition(null);
|
|
12977
|
+
}
|
|
12978
|
+
},
|
|
12979
|
+
onDrop: (e) => {
|
|
12980
|
+
e.preventDefault();
|
|
12981
|
+
if (!dragCtx || !dragCtx.draggedItem || dragCtx.draggedItem.itemId === node.itemId) return;
|
|
12982
|
+
let destIndex = node.index;
|
|
12983
|
+
if (dragCtx.draggedItem.zoneCompound === node.zoneCompound) {
|
|
12984
|
+
if (dragCtx.hoverPosition === "before") {
|
|
12985
|
+
destIndex = dragCtx.draggedItem.index > node.index ? node.index : node.index - 1;
|
|
12986
|
+
} else {
|
|
12987
|
+
destIndex = dragCtx.draggedItem.index > node.index ? node.index + 1 : node.index;
|
|
12988
|
+
}
|
|
12989
|
+
} else {
|
|
12990
|
+
destIndex = dragCtx.hoverPosition === "before" ? node.index : node.index + 1;
|
|
12991
|
+
}
|
|
12992
|
+
dispatch({
|
|
12993
|
+
type: "move",
|
|
12994
|
+
sourceIndex: dragCtx.draggedItem.index,
|
|
12995
|
+
sourceZone: dragCtx.draggedItem.zoneCompound,
|
|
12996
|
+
destinationIndex: destIndex,
|
|
12997
|
+
destinationZone: node.zoneCompound
|
|
12998
|
+
});
|
|
12999
|
+
dispatch({
|
|
13000
|
+
type: "setUi",
|
|
13001
|
+
ui: {
|
|
13002
|
+
itemSelector: {
|
|
13003
|
+
index: destIndex,
|
|
13004
|
+
zone: node.zoneCompound
|
|
13005
|
+
}
|
|
13006
|
+
}
|
|
13007
|
+
});
|
|
13008
|
+
dragCtx.setDraggedItem(null);
|
|
13009
|
+
dragCtx.setHoveredItemId(null);
|
|
13010
|
+
dragCtx.setHoverPosition(null);
|
|
13011
|
+
},
|
|
13012
|
+
onDragEnd: () => {
|
|
13013
|
+
dragCtx?.setDraggedItem(null);
|
|
13014
|
+
dragCtx?.setHoveredItemId(null);
|
|
13015
|
+
dragCtx?.setHoverPosition(null);
|
|
13016
|
+
},
|
|
13017
|
+
style: {
|
|
13018
|
+
opacity: dragCtx?.draggedItem?.itemId === node.itemId ? 0.4 : 1,
|
|
13019
|
+
position: "relative"
|
|
13020
|
+
},
|
|
12872
13021
|
children: [
|
|
13022
|
+
dragCtx?.hoveredItemId === node.itemId && dragCtx?.hoverPosition && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
13023
|
+
"div",
|
|
13024
|
+
{
|
|
13025
|
+
style: {
|
|
13026
|
+
position: "absolute",
|
|
13027
|
+
left: 0,
|
|
13028
|
+
right: 0,
|
|
13029
|
+
height: "2px",
|
|
13030
|
+
background: "linear-gradient(to right, var(--cb-gold, #d4af37), #f3e5ab)",
|
|
13031
|
+
zIndex: 10,
|
|
13032
|
+
...dragCtx.hoverPosition === "before" ? { top: 0 } : { bottom: 0 }
|
|
13033
|
+
}
|
|
13034
|
+
}
|
|
13035
|
+
),
|
|
12873
13036
|
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
12874
13037
|
"button",
|
|
12875
13038
|
{
|
|
12876
13039
|
type: "button",
|
|
12877
13040
|
className: getClassNameLayer("clickable"),
|
|
13041
|
+
"aria-expanded": containsZone ? shouldRenderChildren : void 0,
|
|
12878
13042
|
onClick: () => {
|
|
12879
13043
|
if (isSelected) {
|
|
12880
13044
|
setItemSelector(null);
|
|
@@ -13067,7 +13231,18 @@ var LayerTree = (0, import_react84.memo)(({
|
|
|
13067
13231
|
selectedPathIds,
|
|
13068
13232
|
trees
|
|
13069
13233
|
}) => {
|
|
13070
|
-
|
|
13234
|
+
const [draggedItem, setDraggedItem] = (0, import_react84.useState)(null);
|
|
13235
|
+
const [hoveredItemId, setHoveredItemId] = (0, import_react84.useState)(null);
|
|
13236
|
+
const [hoverPosition, setHoverPosition] = (0, import_react84.useState)(null);
|
|
13237
|
+
const dragContextValue = (0, import_react84.useMemo)(() => ({
|
|
13238
|
+
draggedItem,
|
|
13239
|
+
setDraggedItem,
|
|
13240
|
+
hoveredItemId,
|
|
13241
|
+
setHoveredItemId,
|
|
13242
|
+
hoverPosition,
|
|
13243
|
+
setHoverPosition
|
|
13244
|
+
}), [draggedItem, hoveredItemId, hoverPosition]);
|
|
13245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(DragContext.Provider, { value: dragContextValue, children: trees.map((tree) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
13071
13246
|
LayerTreeZone,
|
|
13072
13247
|
{
|
|
13073
13248
|
depth: 0,
|
|
@@ -13103,12 +13278,12 @@ var Outline = (0, import_react85.memo)(() => {
|
|
|
13103
13278
|
const rootZones = useAppStore(
|
|
13104
13279
|
(0, import_shallow8.useShallow)((s) => findZonesForArea(s.state, "root"))
|
|
13105
13280
|
);
|
|
13281
|
+
const selectedPath = selectedId ? nodes[selectedId]?.path : null;
|
|
13106
13282
|
const selectedPathIds = (0, import_react85.useMemo)(() => {
|
|
13107
|
-
const selectedPath = selectedId ? nodes[selectedId]?.path : null;
|
|
13108
13283
|
return new Set(
|
|
13109
13284
|
selectedPath?.map((candidate) => candidate.split(":")[0]).filter(Boolean) || []
|
|
13110
13285
|
);
|
|
13111
|
-
}, [
|
|
13286
|
+
}, [selectedPath]);
|
|
13112
13287
|
const trees = (0, import_react85.useMemo)(
|
|
13113
13288
|
() => rootZones.map(
|
|
13114
13289
|
(zoneCompound) => buildLayerTree({
|
|
@@ -13379,7 +13554,7 @@ function PropsProvider(props) {
|
|
|
13379
13554
|
}
|
|
13380
13555
|
var usePropsContext = () => (0, import_react88.useContext)(propsContext);
|
|
13381
13556
|
|
|
13382
|
-
// css-module:/
|
|
13557
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Layout/styles.module.css#css-module
|
|
13383
13558
|
init_react_import();
|
|
13384
13559
|
var styles_module_default23 = { "CredBuildLayout": "_CredBuildLayout_14aaz_1", "CredBuildLayout-inner": "_CredBuildLayout-inner_14aaz_8", "CredBuildLayout--leftSideBarVisible": "_CredBuildLayout--leftSideBarVisible_14aaz_29", "CredBuildLayout--rightSideBarVisible": "_CredBuildLayout--rightSideBarVisible_14aaz_33", "CredBuild--hidePlugins": "_CredBuild--hidePlugins_14aaz_37", "CredBuildLayout-item": "_CredBuildLayout-item_14aaz_43", "CredBuildLayout-header": "_CredBuildLayout-header_14aaz_49", "CredBuildLayout-left": "_CredBuildLayout-left_14aaz_54", "CredBuildLayout-editor": "_CredBuildLayout-editor_14aaz_67", "CredBuildLayout-right": "_CredBuildLayout-right_14aaz_75", "CredBuildLayout-sidebar": "_CredBuildLayout-sidebar_14aaz_92", "CredBuildPluginTab": "_CredBuildPluginTab_14aaz_107", "CredBuildPluginTab--visible": "_CredBuildPluginTab--visible_14aaz_114", "CredBuildPluginTab-body": "_CredBuildPluginTab-body_14aaz_118", "CredBuildLayout--mounted": "_CredBuildLayout--mounted_14aaz_134" };
|
|
13385
13560
|
|
|
@@ -14227,7 +14402,7 @@ init_lucide_react();
|
|
|
14227
14402
|
init_IconButton();
|
|
14228
14403
|
init_get_class_name_factory();
|
|
14229
14404
|
|
|
14230
|
-
// css-module:/
|
|
14405
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/MenuBar/styles.module.css#css-module
|
|
14231
14406
|
init_react_import();
|
|
14232
14407
|
var styles_module_default24 = { "MenuBar": "_MenuBar_1m2ld_1", "MenuBar--menuOpen": "_MenuBar--menuOpen_1m2ld_14", "MenuBar-inner": "_MenuBar-inner_1m2ld_29", "MenuBar-history": "_MenuBar-history_1m2ld_45" };
|
|
14233
14408
|
|
|
@@ -14298,7 +14473,7 @@ init_store2();
|
|
|
14298
14473
|
var import_react93 = require("react");
|
|
14299
14474
|
init_lib();
|
|
14300
14475
|
|
|
14301
|
-
// css-module:/
|
|
14476
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/ViewportControls/styles.module.css#css-module
|
|
14302
14477
|
init_react_import();
|
|
14303
14478
|
var styles_module_default25 = { "ViewportControls": "_ViewportControls_gefvg_1", "ViewportControls--fullScreen": "_ViewportControls--fullScreen_gefvg_5", "ViewportControls-toggleButton": "_ViewportControls-toggleButton_gefvg_14", "ViewportControls--isExpanded": "_ViewportControls--isExpanded_gefvg_38", "ViewportControls-actions": "_ViewportControls-actions_gefvg_42", "ViewportControls-actionsInner": "_ViewportControls-actionsInner_gefvg_46", "ViewportControls-divider": "_ViewportControls-divider_gefvg_76", "ViewportControls-zoomSelect": "_ViewportControls-zoomSelect_gefvg_83", "ViewportControls-zoom": "_ViewportControls-zoom_gefvg_83", "ViewportButton-inner": "_ViewportButton-inner_gefvg_114", "ViewportButton--isActive": "_ViewportButton--isActive_gefvg_122" };
|
|
14304
14479
|
|
|
@@ -14431,6 +14606,8 @@ var ViewportControls = ({
|
|
|
14431
14606
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
14432
14607
|
"select",
|
|
14433
14608
|
{
|
|
14609
|
+
"aria-label": "Zoom level",
|
|
14610
|
+
title: "Zoom level",
|
|
14434
14611
|
className: getClassName33("zoomSelect"),
|
|
14435
14612
|
value: zoom.toString(),
|
|
14436
14613
|
onClick: (e) => {
|
|
@@ -14454,8 +14631,10 @@ var ViewportControls = ({
|
|
|
14454
14631
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
14455
14632
|
"button",
|
|
14456
14633
|
{
|
|
14634
|
+
type: "button",
|
|
14457
14635
|
className: getClassName33("toggleButton"),
|
|
14458
14636
|
title: "Toggle viewport menu",
|
|
14637
|
+
"aria-label": "Toggle viewport menu",
|
|
14459
14638
|
"aria-expanded": isExpanded,
|
|
14460
14639
|
onClick: () => setIsExpanded((s) => !s),
|
|
14461
14640
|
children: isExpanded ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(X, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Monitor, { size: 16 })
|
|
@@ -14494,7 +14673,7 @@ var useCanvasFrame = () => {
|
|
|
14494
14673
|
return context;
|
|
14495
14674
|
};
|
|
14496
14675
|
|
|
14497
|
-
// css-module:/
|
|
14676
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Header/styles.module.css#css-module
|
|
14498
14677
|
init_react_import();
|
|
14499
14678
|
var styles_module_default26 = { "CredBuildHeader": "_CredBuildHeader_qzv5u_1", "CredBuildHeader-inner": "_CredBuildHeader-inner_qzv5u_20", "CredBuildHeader-viewportTools": "_CredBuildHeader-viewportTools_qzv5u_28", "CredBuildHeader-leftActions": "_CredBuildHeader-leftActions_qzv5u_35", "CredBuildHeader-toggle": "_CredBuildHeader-toggle_qzv5u_41", "CredBuildHeader-leftSideBarToggle": "_CredBuildHeader-leftSideBarToggle_qzv5u_47", "CredBuildHeader-rightSideBarToggle": "_CredBuildHeader-rightSideBarToggle_qzv5u_48", "CredBuildHeader-title": "_CredBuildHeader-title_qzv5u_52", "CredBuildHeader-path": "_CredBuildHeader-path_qzv5u_57", "CredBuildHeader-tools": "_CredBuildHeader-tools_qzv5u_68", "CredBuildHeader-menuButton": "_CredBuildHeader-menuButton_qzv5u_75" };
|
|
14500
14679
|
|
|
@@ -14748,6 +14927,7 @@ var HeaderInner = ({
|
|
|
14748
14927
|
{
|
|
14749
14928
|
type: "button",
|
|
14750
14929
|
onClick: () => handleSetViewMode("code"),
|
|
14930
|
+
"aria-pressed": htmlViewMode === "code",
|
|
14751
14931
|
style: {
|
|
14752
14932
|
display: "flex",
|
|
14753
14933
|
alignItems: "center",
|
|
@@ -14775,6 +14955,7 @@ var HeaderInner = ({
|
|
|
14775
14955
|
{
|
|
14776
14956
|
type: "button",
|
|
14777
14957
|
onClick: () => handleSetViewMode("preview"),
|
|
14958
|
+
"aria-pressed": htmlViewMode === "preview",
|
|
14778
14959
|
style: {
|
|
14779
14960
|
display: "flex",
|
|
14780
14961
|
alignItems: "center",
|
|
@@ -14895,7 +15076,7 @@ var Header = (0, import_react95.memo)(HeaderInner);
|
|
|
14895
15076
|
// components/SidebarSection/index.tsx
|
|
14896
15077
|
init_react_import();
|
|
14897
15078
|
|
|
14898
|
-
// css-module:/
|
|
15079
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/SidebarSection/styles.module.css#css-module
|
|
14899
15080
|
init_react_import();
|
|
14900
15081
|
var styles_module_default27 = { "SidebarSection": "_SidebarSection_bv89x_1", "SidebarSection-title": "_SidebarSection-title_bv89x_12", "SidebarSection--noBorderTop": "_SidebarSection--noBorderTop_bv89x_37", "SidebarSection-content": "_SidebarSection-content_bv89x_41", "SidebarSection-breadcrumbLabel": "_SidebarSection-breadcrumbLabel_bv89x_50", "SidebarSection-breadcrumbs": "_SidebarSection-breadcrumbs_bv89x_79", "SidebarSection-breadcrumb": "_SidebarSection-breadcrumb_bv89x_50", "SidebarSection-heading": "_SidebarSection-heading_bv89x_91", "SidebarSection-loadingOverlay": "_SidebarSection-loadingOverlay_bv89x_95" };
|
|
14901
15082
|
|
|
@@ -14907,7 +15088,7 @@ init_Loader();
|
|
|
14907
15088
|
// components/Breadcrumbs/index.tsx
|
|
14908
15089
|
init_react_import();
|
|
14909
15090
|
|
|
14910
|
-
// css-module:/
|
|
15091
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/Breadcrumbs/styles.module.css#css-module
|
|
14911
15092
|
init_react_import();
|
|
14912
15093
|
var styles_module_default28 = { "Breadcrumbs": "_Breadcrumbs_1e0gb_1", "Breadcrumbs-breadcrumbLabel": "_Breadcrumbs-breadcrumbLabel_1e0gb_7", "Breadcrumbs-breadcrumb": "_Breadcrumbs-breadcrumb_1e0gb_7" };
|
|
14913
15094
|
|
|
@@ -15007,7 +15188,7 @@ init_css_box_model_esm();
|
|
|
15007
15188
|
var import_react97 = require("react");
|
|
15008
15189
|
init_store2();
|
|
15009
15190
|
|
|
15010
|
-
// css-module:/
|
|
15191
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Canvas/styles.module.css#css-module
|
|
15011
15192
|
init_react_import();
|
|
15012
15193
|
var styles_module_default29 = { "CredBuildCanvas": "_CredBuildCanvas_1ivia_1", "CredBuildCanvas--fullScreen": "_CredBuildCanvas--fullScreen_1ivia_22", "CredBuildCanvas-inner": "_CredBuildCanvas-inner_1ivia_33", "CredBuildCanvas-root": "_CredBuildCanvas-root_1ivia_42", "CredBuildCanvas--ready": "_CredBuildCanvas--ready_1ivia_67", "CredBuildCanvas-loader": "_CredBuildCanvas-loader_1ivia_72", "CredBuildCanvas--showLoader": "_CredBuildCanvas--showLoader_1ivia_82" };
|
|
15013
15194
|
|
|
@@ -15392,7 +15573,7 @@ init_react_import();
|
|
|
15392
15573
|
var import_react99 = require("react");
|
|
15393
15574
|
init_get_class_name_factory();
|
|
15394
15575
|
|
|
15395
|
-
// css-module:/
|
|
15576
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/ResizeHandle/styles.module.css#css-module
|
|
15396
15577
|
init_react_import();
|
|
15397
15578
|
var styles_module_default30 = { "ResizeHandle": "_ResizeHandle_144bf_2", "ResizeHandle--left": "_ResizeHandle--left_144bf_16", "ResizeHandle--right": "_ResizeHandle--right_144bf_20" };
|
|
15398
15579
|
|
|
@@ -15468,7 +15649,7 @@ var ResizeHandle = ({
|
|
|
15468
15649
|
// components/CredBuild/components/Sidebar/index.tsx
|
|
15469
15650
|
init_get_class_name_factory();
|
|
15470
15651
|
|
|
15471
|
-
// css-module:/
|
|
15652
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Sidebar/styles.module.css#css-module
|
|
15472
15653
|
init_react_import();
|
|
15473
15654
|
var styles_module_default31 = { "Sidebar": "_Sidebar_1kcif_1", "Sidebar--isVisible": "_Sidebar--isVisible_1kcif_13", "Sidebar--left": "_Sidebar--left_1kcif_17", "Sidebar--right": "_Sidebar--right_1kcif_29", "Sidebar-resizeHandle": "_Sidebar-resizeHandle_1kcif_42" };
|
|
15474
15655
|
|
|
@@ -15568,7 +15749,7 @@ var useDeleteHotkeys = () => {
|
|
|
15568
15749
|
// components/CredBuild/components/Nav/index.tsx
|
|
15569
15750
|
init_react_import();
|
|
15570
15751
|
|
|
15571
|
-
// css-module:/
|
|
15752
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/components/CredBuild/components/Nav/styles.module.css#css-module
|
|
15572
15753
|
init_react_import();
|
|
15573
15754
|
var styles_module_default32 = { "Nav": "_Nav_wbh7e_1", "Nav-list": "_Nav-list_wbh7e_9", "CredBuildHeader-path": "_CredBuildHeader-path_wbh7e_20", "NavItem": "_NavItem_wbh7e_38", "NavItem-link": "_NavItem-link_wbh7e_43", "NavItem-linkIcon": "_NavItem-linkIcon_wbh7e_64", "NavItem--active": "_NavItem--active_wbh7e_77", "NavItem--mobileOnly": "_NavItem--mobileOnly_wbh7e_90", "NavItem--desktopOnly": "_NavItem--desktopOnly_wbh7e_95" };
|
|
15574
15755
|
|
|
@@ -15615,7 +15796,7 @@ init_lucide_react();
|
|
|
15615
15796
|
init_react_import();
|
|
15616
15797
|
init_lucide_react();
|
|
15617
15798
|
|
|
15618
|
-
// css-module:/
|
|
15799
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/plugins/blocks/styles.module.css#css-module
|
|
15619
15800
|
init_react_import();
|
|
15620
15801
|
var styles_module_default33 = { "BlocksPlugin": "_BlocksPlugin_1q0b2_1" };
|
|
15621
15802
|
|
|
@@ -15634,7 +15815,7 @@ var blocksPlugin = () => ({
|
|
|
15634
15815
|
init_react_import();
|
|
15635
15816
|
init_lucide_react();
|
|
15636
15817
|
|
|
15637
|
-
// css-module:/
|
|
15818
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/plugins/outline/styles.module.css#css-module
|
|
15638
15819
|
init_react_import();
|
|
15639
15820
|
var styles_module_default34 = { "OutlinePlugin": "_OutlinePlugin_q92j6_1" };
|
|
15640
15821
|
|
|
@@ -15654,7 +15835,7 @@ init_react_import();
|
|
|
15654
15835
|
init_lucide_react();
|
|
15655
15836
|
init_store2();
|
|
15656
15837
|
|
|
15657
|
-
// css-module:/
|
|
15838
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/plugins/fields/styles.module.css#css-module
|
|
15658
15839
|
init_react_import();
|
|
15659
15840
|
var styles_module_default35 = { "FieldsPlugin": "_FieldsPlugin_6as57_1", "FieldsPlugin-header": "_FieldsPlugin-header_6as57_7" };
|
|
15660
15841
|
|
|
@@ -15691,7 +15872,7 @@ init_store2();
|
|
|
15691
15872
|
init_lucide_react();
|
|
15692
15873
|
init_get_class_name_factory();
|
|
15693
15874
|
|
|
15694
|
-
// css-module:/
|
|
15875
|
+
// css-module:/home/rasyiqi/PROJECT/Credbuild/credbuild/plugins/code/styles.module.css#css-module
|
|
15695
15876
|
init_react_import();
|
|
15696
15877
|
var styles_module_default36 = { "CodePlugin": "_CodePlugin_77s8n_1", "CodePanel": "_CodePanel_77s8n_9", "CodePanel-title": "_CodePanel-title_77s8n_18", "CodePanel-textarea": "_CodePanel-textarea_77s8n_27", "CodePanel-optionsSection": "_CodePanel-optionsSection_77s8n_49", "CodePanel-optionTitle": "_CodePanel-optionTitle_77s8n_53", "CodePanel-radioGroup": "_CodePanel-radioGroup_77s8n_62", "CodePanel-radioLabel": "_CodePanel-radioLabel_77s8n_68", "CodePanel-radioInput": "_CodePanel-radioInput_77s8n_77", "CodePanel-button": "_CodePanel-button_77s8n_87", "CodePanel-error": "_CodePanel-error_77s8n_120", "CodePanel-success": "_CodePanel-success_77s8n_131", "CodePanel-promptSection": "_CodePanel-promptSection_77s8n_142", "CodePanel-promptHeader": "_CodePanel-promptHeader_77s8n_148", "CodePanel-promptText": "_CodePanel-promptText_77s8n_155", "CodePanel-copyBtn": "_CodePanel-copyBtn_77s8n_169", "CodePanel-copyBtn--copied": "_CodePanel-copyBtn--copied_77s8n_193" };
|
|
15697
15878
|
|