@crediblemark/build 0.25.18 → 0.25.20
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-QREPD4FL.mjs +17 -0
- package/dist/{ObjectField-VE3JKAWT.css → ArrayField-SMHH4YM5.css} +291 -291
- package/dist/{Editor-6U6G5YLU.css → Editor-OKZSVOHC.css} +7 -7
- package/dist/{Editor-7JTCMSHZ.mjs → Editor-Z7SABUNT.mjs} +8 -8
- package/dist/{ArrayField-QVQ36K6O.css → ObjectField-4DTDXE62.css} +283 -283
- package/dist/ObjectField-5Q5QBVGN.mjs +17 -0
- package/dist/{Render-HVM2KISU.css → Render-DOE2LXKX.css} +1 -1
- package/dist/{Render-5WYR4VZX.mjs → Render-I6PZ5MEA.mjs} +1 -1
- package/dist/{chunk-VEQIM5ZE.mjs → chunk-66IXS5FK.mjs} +13 -13
- package/dist/{chunk-SOAJKHLV.mjs → chunk-7SG4VVVP.mjs} +3 -3
- package/dist/{chunk-LBXFITWQ.mjs → chunk-E4F5M5JH.mjs} +2 -2
- package/dist/{chunk-H6RPI3T6.mjs → chunk-ISXFLTBM.mjs} +1 -1
- package/dist/{chunk-U4NHUPA4.mjs → chunk-JR2TCNGX.mjs} +5 -5
- package/dist/{chunk-D4WFZ3K2.mjs → chunk-KN26YZZJ.mjs} +1 -1
- package/dist/{chunk-3EWP7RGL.mjs → chunk-NHF3YLSF.mjs} +382 -226
- package/dist/{chunk-ARM3KXOM.mjs → chunk-OYB2YQPY.mjs} +11 -11
- package/dist/{chunk-U7AIA2UJ.mjs → chunk-PEXHYNRZ.mjs} +2 -2
- package/dist/{chunk-GEYNLWCZ.mjs → chunk-PFHKXXSV.mjs} +1 -1
- package/dist/{chunk-D7HE7E2A.mjs → chunk-QXPX7SNK.mjs} +12 -12
- package/dist/{chunk-TOU7Y6T4.mjs → chunk-S32JZ2HU.mjs} +1 -1
- package/dist/{chunk-J4ZMH6JZ.mjs → chunk-XLRMLBFR.mjs} +1 -1
- package/dist/{full-2LSQUWEM.css → full-77VQ6BAW.css} +6 -6
- package/dist/{full-B3RS4LV3.mjs → full-LSSDDZQW.mjs} +5 -5
- package/dist/index.css +78 -40
- package/dist/index.js +363 -209
- package/dist/index.mjs +13 -13
- package/dist/{loaded-FY2TCG5Y.css → loaded-4FAPBCAU.css} +1 -1
- package/dist/{loaded-JIR6E6RO.mjs → loaded-C2JGMUXV.mjs} +2 -2
- package/dist/{loaded-XEI7CJSF.mjs → loaded-FJHWTGH6.mjs} +2 -2
- package/dist/{loaded-VCMCWG55.mjs → loaded-NTEK7RT3.mjs} +2 -2
- package/dist/no-external.css +78 -40
- package/dist/no-external.js +363 -209
- package/dist/no-external.mjs +13 -13
- package/dist/rsc.css +19 -19
- package/dist/rsc.js +64 -64
- package/dist/rsc.mjs +12 -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/runner/work/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/runner/work/credbuild/credbuild/components/ActionBar/styles.module.css/#css-module-data"() {
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
// css-module:/
|
|
83
|
+
// css-module:/home/runner/work/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/runner/work/credbuild/credbuild/components/ActionBar/styles.module.css#css-module"() {
|
|
87
87
|
"use strict";
|
|
88
88
|
init_react_import();
|
|
89
89
|
init_css_module_data();
|
|
@@ -146,16 +146,16 @@ var init_ActionBar = __esm({
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
// css-module:/
|
|
149
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data
|
|
150
150
|
var init_css_module_data2 = __esm({
|
|
151
|
-
"css-module:/
|
|
151
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css/#css-module-data"() {
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
|
|
155
|
-
// css-module:/
|
|
155
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css#css-module
|
|
156
156
|
var styles_module_default2;
|
|
157
157
|
var init_styles_module2 = __esm({
|
|
158
|
-
"css-module:/
|
|
158
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/AutoField/styles.module.css#css-module"() {
|
|
159
159
|
"use strict";
|
|
160
160
|
init_react_import();
|
|
161
161
|
init_css_module_data2();
|
|
@@ -4168,16 +4168,16 @@ var init_SelectField = __esm({
|
|
|
4168
4168
|
}
|
|
4169
4169
|
});
|
|
4170
4170
|
|
|
4171
|
-
// css-module:/
|
|
4171
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data
|
|
4172
4172
|
var init_css_module_data3 = __esm({
|
|
4173
|
-
"css-module:/
|
|
4173
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css/#css-module-data"() {
|
|
4174
4174
|
}
|
|
4175
4175
|
});
|
|
4176
4176
|
|
|
4177
|
-
// css-module:/
|
|
4177
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css#css-module
|
|
4178
4178
|
var styles_module_default3;
|
|
4179
4179
|
var init_styles_module3 = __esm({
|
|
4180
|
-
"css-module:/
|
|
4180
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/ExternalInput/styles.module.css#css-module"() {
|
|
4181
4181
|
"use strict";
|
|
4182
4182
|
init_react_import();
|
|
4183
4183
|
init_css_module_data3();
|
|
@@ -4185,16 +4185,16 @@ var init_styles_module3 = __esm({
|
|
|
4185
4185
|
}
|
|
4186
4186
|
});
|
|
4187
4187
|
|
|
4188
|
-
// css-module:/
|
|
4188
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css/#css-module-data
|
|
4189
4189
|
var init_css_module_data4 = __esm({
|
|
4190
|
-
"css-module:/
|
|
4190
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css/#css-module-data"() {
|
|
4191
4191
|
}
|
|
4192
4192
|
});
|
|
4193
4193
|
|
|
4194
|
-
// css-module:/
|
|
4194
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css#css-module
|
|
4195
4195
|
var styles_module_default4;
|
|
4196
4196
|
var init_styles_module4 = __esm({
|
|
4197
|
-
"css-module:/
|
|
4197
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Modal/styles.module.css#css-module"() {
|
|
4198
4198
|
"use strict";
|
|
4199
4199
|
init_react_import();
|
|
4200
4200
|
init_css_module_data4();
|
|
@@ -4253,16 +4253,16 @@ var init_Modal = __esm({
|
|
|
4253
4253
|
}
|
|
4254
4254
|
});
|
|
4255
4255
|
|
|
4256
|
-
// css-module:/
|
|
4256
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css/#css-module-data
|
|
4257
4257
|
var init_css_module_data5 = __esm({
|
|
4258
|
-
"css-module:/
|
|
4258
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css/#css-module-data"() {
|
|
4259
4259
|
}
|
|
4260
4260
|
});
|
|
4261
4261
|
|
|
4262
|
-
// css-module:/
|
|
4262
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css#css-module
|
|
4263
4263
|
var styles_module_default5;
|
|
4264
4264
|
var init_styles_module5 = __esm({
|
|
4265
|
-
"css-module:/
|
|
4265
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Heading/styles.module.css#css-module"() {
|
|
4266
4266
|
"use strict";
|
|
4267
4267
|
init_react_import();
|
|
4268
4268
|
init_css_module_data5();
|
|
@@ -4542,16 +4542,16 @@ var init_lib = __esm({
|
|
|
4542
4542
|
}
|
|
4543
4543
|
});
|
|
4544
4544
|
|
|
4545
|
-
// css-module:/
|
|
4545
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css/#css-module-data
|
|
4546
4546
|
var init_css_module_data6 = __esm({
|
|
4547
|
-
"css-module:/
|
|
4547
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css/#css-module-data"() {
|
|
4548
4548
|
}
|
|
4549
4549
|
});
|
|
4550
4550
|
|
|
4551
|
-
// css-module:/
|
|
4551
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css#css-module
|
|
4552
4552
|
var styles_module_default6;
|
|
4553
4553
|
var init_styles_module6 = __esm({
|
|
4554
|
-
"css-module:/
|
|
4554
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Loader/styles.module.css#css-module"() {
|
|
4555
4555
|
"use strict";
|
|
4556
4556
|
init_react_import();
|
|
4557
4557
|
init_css_module_data6();
|
|
@@ -4591,16 +4591,16 @@ var init_Loader = __esm({
|
|
|
4591
4591
|
}
|
|
4592
4592
|
});
|
|
4593
4593
|
|
|
4594
|
-
// css-module:/
|
|
4594
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css/#css-module-data
|
|
4595
4595
|
var init_css_module_data7 = __esm({
|
|
4596
|
-
"css-module:/
|
|
4596
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css/#css-module-data"() {
|
|
4597
4597
|
}
|
|
4598
4598
|
});
|
|
4599
4599
|
|
|
4600
|
-
// css-module:/
|
|
4600
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css#css-module
|
|
4601
4601
|
var Button_module_default;
|
|
4602
4602
|
var init_Button_module = __esm({
|
|
4603
|
-
"css-module:/
|
|
4603
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Button/Button.module.css#css-module"() {
|
|
4604
4604
|
"use strict";
|
|
4605
4605
|
init_react_import();
|
|
4606
4606
|
init_css_module_data7();
|
|
@@ -4706,16 +4706,16 @@ var init_Button2 = __esm({
|
|
|
4706
4706
|
}
|
|
4707
4707
|
});
|
|
4708
4708
|
|
|
4709
|
-
// css-module:/
|
|
4709
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data
|
|
4710
4710
|
var init_css_module_data8 = __esm({
|
|
4711
|
-
"css-module:/
|
|
4711
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css/#css-module-data"() {
|
|
4712
4712
|
}
|
|
4713
4713
|
});
|
|
4714
4714
|
|
|
4715
|
-
// css-module:/
|
|
4715
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css#css-module
|
|
4716
4716
|
var IconButton_module_default;
|
|
4717
4717
|
var init_IconButton_module = __esm({
|
|
4718
|
-
"css-module:/
|
|
4718
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/IconButton/IconButton.module.css#css-module"() {
|
|
4719
4719
|
"use strict";
|
|
4720
4720
|
init_react_import();
|
|
4721
4721
|
init_css_module_data8();
|
|
@@ -5273,16 +5273,16 @@ var init_TextareaField = __esm({
|
|
|
5273
5273
|
}
|
|
5274
5274
|
});
|
|
5275
5275
|
|
|
5276
|
-
// css-module:/
|
|
5276
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data
|
|
5277
5277
|
var init_css_module_data9 = __esm({
|
|
5278
|
-
"css-module:/
|
|
5278
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css/#css-module-data"() {
|
|
5279
5279
|
}
|
|
5280
5280
|
});
|
|
5281
5281
|
|
|
5282
|
-
// css-module:/
|
|
5282
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module
|
|
5283
5283
|
var styles_module_default7;
|
|
5284
5284
|
var init_styles_module7 = __esm({
|
|
5285
|
-
"css-module:/
|
|
5285
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/styles.module.css#css-module"() {
|
|
5286
5286
|
"use strict";
|
|
5287
5287
|
init_react_import();
|
|
5288
5288
|
init_css_module_data9();
|
|
@@ -5290,16 +5290,16 @@ var init_styles_module7 = __esm({
|
|
|
5290
5290
|
}
|
|
5291
5291
|
});
|
|
5292
5292
|
|
|
5293
|
-
// css-module:/
|
|
5293
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data
|
|
5294
5294
|
var init_css_module_data10 = __esm({
|
|
5295
|
-
"css-module:/
|
|
5295
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css/#css-module-data"() {
|
|
5296
5296
|
}
|
|
5297
5297
|
});
|
|
5298
5298
|
|
|
5299
|
-
// css-module:/
|
|
5299
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module
|
|
5300
5300
|
var styles_module_default8;
|
|
5301
5301
|
var init_styles_module8 = __esm({
|
|
5302
|
-
"css-module:/
|
|
5302
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/RichTextMenu/components/Control/styles.module.css#css-module"() {
|
|
5303
5303
|
"use strict";
|
|
5304
5304
|
init_react_import();
|
|
5305
5305
|
init_css_module_data10();
|
|
@@ -5484,16 +5484,16 @@ var init_AlignJustify = __esm({
|
|
|
5484
5484
|
}
|
|
5485
5485
|
});
|
|
5486
5486
|
|
|
5487
|
-
// css-module:/
|
|
5487
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css/#css-module-data
|
|
5488
5488
|
var init_css_module_data11 = __esm({
|
|
5489
|
-
"css-module:/
|
|
5489
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css/#css-module-data"() {
|
|
5490
5490
|
}
|
|
5491
5491
|
});
|
|
5492
5492
|
|
|
5493
|
-
// css-module:/
|
|
5493
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css#css-module
|
|
5494
5494
|
var styles_module_default9;
|
|
5495
5495
|
var init_styles_module9 = __esm({
|
|
5496
|
-
"css-module:/
|
|
5496
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/Select/styles.module.css#css-module"() {
|
|
5497
5497
|
"use strict";
|
|
5498
5498
|
init_react_import();
|
|
5499
5499
|
init_css_module_data11();
|
|
@@ -6459,16 +6459,16 @@ var init_inner = __esm({
|
|
|
6459
6459
|
}
|
|
6460
6460
|
});
|
|
6461
6461
|
|
|
6462
|
-
// css-module:/
|
|
6462
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data
|
|
6463
6463
|
var init_css_module_data12 = __esm({
|
|
6464
|
-
"css-module:/
|
|
6464
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css/#css-module-data"() {
|
|
6465
6465
|
}
|
|
6466
6466
|
});
|
|
6467
6467
|
|
|
6468
|
-
// css-module:/
|
|
6468
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module
|
|
6469
6469
|
var styles_module_default10;
|
|
6470
6470
|
var init_styles_module10 = __esm({
|
|
6471
|
-
"css-module:/
|
|
6471
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/RichTextEditor/styles.module.css#css-module"() {
|
|
6472
6472
|
"use strict";
|
|
6473
6473
|
init_react_import();
|
|
6474
6474
|
init_css_module_data12();
|
|
@@ -7056,16 +7056,16 @@ var init_RichtextField = __esm({
|
|
|
7056
7056
|
}
|
|
7057
7057
|
});
|
|
7058
7058
|
|
|
7059
|
-
// css-module:/
|
|
7059
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data
|
|
7060
7060
|
var init_css_module_data13 = __esm({
|
|
7061
|
-
"css-module:/
|
|
7061
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css/#css-module-data"() {
|
|
7062
7062
|
}
|
|
7063
7063
|
});
|
|
7064
7064
|
|
|
7065
|
-
// css-module:/
|
|
7065
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module
|
|
7066
7066
|
var styles_module_default11;
|
|
7067
7067
|
var init_styles_module11 = __esm({
|
|
7068
|
-
"css-module:/
|
|
7068
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ArrayField/styles.module.css#css-module"() {
|
|
7069
7069
|
"use strict";
|
|
7070
7070
|
init_react_import();
|
|
7071
7071
|
init_css_module_data13();
|
|
@@ -7073,16 +7073,16 @@ var init_styles_module11 = __esm({
|
|
|
7073
7073
|
}
|
|
7074
7074
|
});
|
|
7075
7075
|
|
|
7076
|
-
// css-module:/
|
|
7076
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data
|
|
7077
7077
|
var init_css_module_data14 = __esm({
|
|
7078
|
-
"css-module:/
|
|
7078
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css/#css-module-data"() {
|
|
7079
7079
|
}
|
|
7080
7080
|
});
|
|
7081
7081
|
|
|
7082
|
-
// css-module:/
|
|
7082
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css#css-module
|
|
7083
7083
|
var styles_module_default12;
|
|
7084
7084
|
var init_styles_module12 = __esm({
|
|
7085
|
-
"css-module:/
|
|
7085
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/DragIcon/styles.module.css#css-module"() {
|
|
7086
7086
|
"use strict";
|
|
7087
7087
|
init_react_import();
|
|
7088
7088
|
init_css_module_data14();
|
|
@@ -8065,16 +8065,16 @@ var init_ArrayField = __esm({
|
|
|
8065
8065
|
}
|
|
8066
8066
|
});
|
|
8067
8067
|
|
|
8068
|
-
// css-module:/
|
|
8068
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data
|
|
8069
8069
|
var init_css_module_data15 = __esm({
|
|
8070
|
-
"css-module:/
|
|
8070
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css/#css-module-data"() {
|
|
8071
8071
|
}
|
|
8072
8072
|
});
|
|
8073
8073
|
|
|
8074
|
-
// css-module:/
|
|
8074
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module
|
|
8075
8075
|
var styles_module_default13;
|
|
8076
8076
|
var init_styles_module13 = __esm({
|
|
8077
|
-
"css-module:/
|
|
8077
|
+
"css-module:/home/runner/work/credbuild/credbuild/components/AutoField/fields/ObjectField/styles.module.css#css-module"() {
|
|
8078
8078
|
"use strict";
|
|
8079
8079
|
init_react_import();
|
|
8080
8080
|
init_css_module_data15();
|
|
@@ -8969,7 +8969,7 @@ init_Button2();
|
|
|
8969
8969
|
// components/Drawer/index.tsx
|
|
8970
8970
|
init_react_import();
|
|
8971
8971
|
|
|
8972
|
-
// css-module:/
|
|
8972
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Drawer/styles.module.css#css-module
|
|
8973
8973
|
init_react_import();
|
|
8974
8974
|
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
8975
|
|
|
@@ -9148,7 +9148,7 @@ var import_isomorphic_dompurify4 = __toESM(require("isomorphic-dompurify"));
|
|
|
9148
9148
|
init_react_import();
|
|
9149
9149
|
var import_react58 = require("react");
|
|
9150
9150
|
|
|
9151
|
-
// css-module:/
|
|
9151
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/DraggableComponent/styles.module.css#css-module
|
|
9152
9152
|
init_react_import();
|
|
9153
9153
|
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
9154
|
|
|
@@ -9888,7 +9888,7 @@ init_setup_zone();
|
|
|
9888
9888
|
init_root_droppable_id();
|
|
9889
9889
|
init_lib();
|
|
9890
9890
|
|
|
9891
|
-
// css-module:/
|
|
9891
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/DropZone/styles.module.css#css-module
|
|
9892
9892
|
init_react_import();
|
|
9893
9893
|
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
9894
|
|
|
@@ -10443,7 +10443,7 @@ var registerOverlayPortal = (el, opts = {}) => {
|
|
|
10443
10443
|
// components/InlineTextField/index.tsx
|
|
10444
10444
|
init_store2();
|
|
10445
10445
|
|
|
10446
|
-
// css-module:/
|
|
10446
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/InlineTextField/styles.module.css#css-module
|
|
10447
10447
|
init_react_import();
|
|
10448
10448
|
var styles_module_default17 = { "InlineTextField": "_InlineTextField_104qp_1" };
|
|
10449
10449
|
|
|
@@ -11486,7 +11486,7 @@ init_AutoField();
|
|
|
11486
11486
|
init_store();
|
|
11487
11487
|
init_store2();
|
|
11488
11488
|
|
|
11489
|
-
// css-module:/
|
|
11489
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Fields/styles.module.css#css-module
|
|
11490
11490
|
init_react_import();
|
|
11491
11491
|
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
11492
|
|
|
@@ -11649,7 +11649,7 @@ var import_react78 = require("react");
|
|
|
11649
11649
|
// components/ComponentList/index.tsx
|
|
11650
11650
|
init_react_import();
|
|
11651
11651
|
|
|
11652
|
-
// css-module:/
|
|
11652
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/ComponentList/styles.module.css#css-module
|
|
11653
11653
|
init_react_import();
|
|
11654
11654
|
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
11655
|
|
|
@@ -11830,7 +11830,7 @@ init_store2();
|
|
|
11830
11830
|
var import_react79 = require("react");
|
|
11831
11831
|
init_lucide_react();
|
|
11832
11832
|
|
|
11833
|
-
// css-module:/
|
|
11833
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Components/styles.module.css#css-module
|
|
11834
11834
|
init_react_import();
|
|
11835
11835
|
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
11836
|
|
|
@@ -12227,9 +12227,9 @@ function AutoFrame({
|
|
|
12227
12227
|
AutoFrame.displayName = "AutoFrame";
|
|
12228
12228
|
var AutoFrame_default = AutoFrame;
|
|
12229
12229
|
|
|
12230
|
-
// css-module:/
|
|
12230
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Preview/styles.module.css#css-module
|
|
12231
12231
|
init_react_import();
|
|
12232
|
-
var styles_module_default21 = { "CredBuildPreview": "
|
|
12232
|
+
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
12233
|
|
|
12234
12234
|
// components/CredBuild/components/Preview/index.tsx
|
|
12235
12235
|
init_lib();
|
|
@@ -12268,7 +12268,14 @@ var HtmlModeRender = ({
|
|
|
12268
12268
|
const body = document.body;
|
|
12269
12269
|
// calculate content height safely, avoiding clientHeight/viewport height which prevents shrinking
|
|
12270
12270
|
const height = Math.max(body.scrollHeight, body.offsetHeight);
|
|
12271
|
-
|
|
12271
|
+
try {
|
|
12272
|
+
window.parent.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
|
|
12273
|
+
if (window.top && window.top !== window.parent) {
|
|
12274
|
+
window.top.postMessage({ type: 'resize-iframe', id: '${id}', height: height }, '*');
|
|
12275
|
+
}
|
|
12276
|
+
} catch (e) {
|
|
12277
|
+
// Ignore
|
|
12278
|
+
}
|
|
12272
12279
|
}
|
|
12273
12280
|
window.addEventListener('load', sendHeight);
|
|
12274
12281
|
window.addEventListener('resize', sendHeight);
|
|
@@ -12629,58 +12636,22 @@ var Preview = ({ id = "credbuild-preview" }) => {
|
|
|
12629
12636
|
id,
|
|
12630
12637
|
"data-credbuild-preview": true,
|
|
12631
12638
|
style: { height: "100%", display: "flex", flexDirection: "column" },
|
|
12632
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { style: {
|
|
12633
|
-
display: "flex",
|
|
12634
|
-
flexDirection: "column",
|
|
12635
|
-
flex: 1,
|
|
12636
|
-
background: "#020617",
|
|
12637
|
-
position: "relative"
|
|
12638
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { style: {
|
|
12639
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: getClassName30("htmlEditor"), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { style: {
|
|
12639
12640
|
display: "flex",
|
|
12640
12641
|
flex: 1,
|
|
12641
12642
|
position: "relative",
|
|
12642
12643
|
overflow: "hidden"
|
|
12643
|
-
}, children:
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
color: "#475569",
|
|
12655
|
-
userSelect: "none",
|
|
12656
|
-
lineHeight: 1.6
|
|
12657
|
-
}, children: Array.from({ length: Math.max(localCode.split("\n").length, 25) }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { children: i + 1 }, i)) }),
|
|
12658
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
12659
|
-
"textarea",
|
|
12660
|
-
{
|
|
12661
|
-
value: localCode,
|
|
12662
|
-
onChange: (e) => setLocalCode(e.target.value),
|
|
12663
|
-
onBlur: handleSaveOnBlur,
|
|
12664
|
-
placeholder: "<!-- Tempel kode HTML/Tailwind di sini -->\n<section class='bg-zinc-900 text-white p-12'>\n <h1 class='text-3xl font-bold'>Hello World</h1>\n</section>",
|
|
12665
|
-
spellCheck: false,
|
|
12666
|
-
style: {
|
|
12667
|
-
flex: 1,
|
|
12668
|
-
background: "transparent",
|
|
12669
|
-
border: "none",
|
|
12670
|
-
outline: "none",
|
|
12671
|
-
color: "#e2e8f0",
|
|
12672
|
-
fontFamily: "Menlo, Monaco, Consolas, 'Fira Code', monospace",
|
|
12673
|
-
fontSize: 13,
|
|
12674
|
-
lineHeight: 1.6,
|
|
12675
|
-
padding: "16px 20px",
|
|
12676
|
-
resize: "none",
|
|
12677
|
-
height: "100%",
|
|
12678
|
-
width: "100%",
|
|
12679
|
-
overflowY: "auto"
|
|
12680
|
-
}
|
|
12681
|
-
}
|
|
12682
|
-
)
|
|
12683
|
-
] }) })
|
|
12644
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
12645
|
+
"textarea",
|
|
12646
|
+
{
|
|
12647
|
+
value: localCode,
|
|
12648
|
+
onChange: (e) => setLocalCode(e.target.value),
|
|
12649
|
+
onBlur: handleSaveOnBlur,
|
|
12650
|
+
placeholder: "<!-- Tempel kode HTML/Tailwind di sini -->\n<section class='bg-zinc-900 text-white p-12'>\n <h1 class='text-3xl font-bold'>Hello World</h1>\n</section>",
|
|
12651
|
+
spellCheck: false,
|
|
12652
|
+
className: getClassName30("htmlTextarea")
|
|
12653
|
+
}
|
|
12654
|
+
) }) })
|
|
12684
12655
|
}
|
|
12685
12656
|
);
|
|
12686
12657
|
}
|
|
@@ -12738,7 +12709,7 @@ init_react_import();
|
|
|
12738
12709
|
// components/LayerTree/index.tsx
|
|
12739
12710
|
init_react_import();
|
|
12740
12711
|
|
|
12741
|
-
// css-module:/
|
|
12712
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/LayerTree/styles.module.css#css-module
|
|
12742
12713
|
init_react_import();
|
|
12743
12714
|
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" };
|
|
12744
12715
|
|
|
@@ -12757,6 +12728,7 @@ var DEFAULT_LAYER_ROW_HEIGHT = 32;
|
|
|
12757
12728
|
var LAYER_TREE_VIRTUALIZATION_OVERSCAN = 8;
|
|
12758
12729
|
var MIN_VIRTUALIZED_LAYER_COUNT = 25;
|
|
12759
12730
|
var measuredRowHeights = /* @__PURE__ */ new Map();
|
|
12731
|
+
var DragContext = (0, import_react84.createContext)(null);
|
|
12760
12732
|
var getZonesByParent = (zones) => {
|
|
12761
12733
|
return Object.keys(zones).reduce((acc, zone) => {
|
|
12762
12734
|
const [parentId] = zone.split(":");
|
|
@@ -12859,7 +12831,9 @@ var Layer = (0, import_react84.memo)((0, import_react84.forwardRef)(function Lay
|
|
|
12859
12831
|
selectedPathIds
|
|
12860
12832
|
}, ref) {
|
|
12861
12833
|
const dispatch = useAppStore((s) => s.dispatch);
|
|
12834
|
+
const nodes = useAppStore((s) => s.state.indexes.nodes);
|
|
12862
12835
|
const zoneStore = (0, import_react84.useContext)(ZoneStoreContext);
|
|
12836
|
+
const dragCtx = (0, import_react84.useContext)(DragContext);
|
|
12863
12837
|
const isHovering = useContextStore(
|
|
12864
12838
|
ZoneStoreContext,
|
|
12865
12839
|
(s) => s.hoveringComponent === node.itemId
|
|
@@ -12898,7 +12872,92 @@ var Layer = (0, import_react84.memo)((0, import_react84.forwardRef)(function Lay
|
|
|
12898
12872
|
}),
|
|
12899
12873
|
"data-index": dataIndex,
|
|
12900
12874
|
"data-credbuild-layer-tree-id": node.itemId,
|
|
12875
|
+
draggable: true,
|
|
12876
|
+
onDragStart: (e) => {
|
|
12877
|
+
dragCtx?.setDraggedItem({
|
|
12878
|
+
itemId: node.itemId,
|
|
12879
|
+
index: node.index,
|
|
12880
|
+
zoneCompound: node.zoneCompound
|
|
12881
|
+
});
|
|
12882
|
+
e.dataTransfer.effectAllowed = "move";
|
|
12883
|
+
},
|
|
12884
|
+
onDragOver: (e) => {
|
|
12885
|
+
e.preventDefault();
|
|
12886
|
+
if (!dragCtx || !dragCtx.draggedItem || dragCtx.draggedItem.itemId === node.itemId) return;
|
|
12887
|
+
const targetNodeIndex = nodes[node.itemId];
|
|
12888
|
+
if (targetNodeIndex?.path.some((p) => p.split(":")[0] === dragCtx.draggedItem?.itemId)) {
|
|
12889
|
+
return;
|
|
12890
|
+
}
|
|
12891
|
+
const rect = e.currentTarget.getBoundingClientRect();
|
|
12892
|
+
const hoverClientY = e.clientY - rect.top;
|
|
12893
|
+
const threshold = rect.height / 2;
|
|
12894
|
+
const position = hoverClientY < threshold ? "before" : "after";
|
|
12895
|
+
dragCtx.setHoveredItemId(node.itemId);
|
|
12896
|
+
dragCtx.setHoverPosition(position);
|
|
12897
|
+
},
|
|
12898
|
+
onDragLeave: () => {
|
|
12899
|
+
if (dragCtx?.hoveredItemId === node.itemId) {
|
|
12900
|
+
dragCtx.setHoveredItemId(null);
|
|
12901
|
+
dragCtx.setHoverPosition(null);
|
|
12902
|
+
}
|
|
12903
|
+
},
|
|
12904
|
+
onDrop: (e) => {
|
|
12905
|
+
e.preventDefault();
|
|
12906
|
+
if (!dragCtx || !dragCtx.draggedItem || dragCtx.draggedItem.itemId === node.itemId) return;
|
|
12907
|
+
let destIndex = node.index;
|
|
12908
|
+
if (dragCtx.draggedItem.zoneCompound === node.zoneCompound) {
|
|
12909
|
+
if (dragCtx.hoverPosition === "before") {
|
|
12910
|
+
destIndex = dragCtx.draggedItem.index > node.index ? node.index : node.index - 1;
|
|
12911
|
+
} else {
|
|
12912
|
+
destIndex = dragCtx.draggedItem.index > node.index ? node.index + 1 : node.index;
|
|
12913
|
+
}
|
|
12914
|
+
} else {
|
|
12915
|
+
destIndex = dragCtx.hoverPosition === "before" ? node.index : node.index + 1;
|
|
12916
|
+
}
|
|
12917
|
+
dispatch({
|
|
12918
|
+
type: "move",
|
|
12919
|
+
sourceIndex: dragCtx.draggedItem.index,
|
|
12920
|
+
sourceZone: dragCtx.draggedItem.zoneCompound,
|
|
12921
|
+
destinationIndex: destIndex,
|
|
12922
|
+
destinationZone: node.zoneCompound
|
|
12923
|
+
});
|
|
12924
|
+
dispatch({
|
|
12925
|
+
type: "setUi",
|
|
12926
|
+
ui: {
|
|
12927
|
+
itemSelector: {
|
|
12928
|
+
index: destIndex,
|
|
12929
|
+
zone: node.zoneCompound
|
|
12930
|
+
}
|
|
12931
|
+
}
|
|
12932
|
+
});
|
|
12933
|
+
dragCtx.setDraggedItem(null);
|
|
12934
|
+
dragCtx.setHoveredItemId(null);
|
|
12935
|
+
dragCtx.setHoverPosition(null);
|
|
12936
|
+
},
|
|
12937
|
+
onDragEnd: () => {
|
|
12938
|
+
dragCtx?.setDraggedItem(null);
|
|
12939
|
+
dragCtx?.setHoveredItemId(null);
|
|
12940
|
+
dragCtx?.setHoverPosition(null);
|
|
12941
|
+
},
|
|
12942
|
+
style: {
|
|
12943
|
+
opacity: dragCtx?.draggedItem?.itemId === node.itemId ? 0.4 : 1,
|
|
12944
|
+
position: "relative"
|
|
12945
|
+
},
|
|
12901
12946
|
children: [
|
|
12947
|
+
dragCtx?.hoveredItemId === node.itemId && dragCtx?.hoverPosition && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
12948
|
+
"div",
|
|
12949
|
+
{
|
|
12950
|
+
style: {
|
|
12951
|
+
position: "absolute",
|
|
12952
|
+
left: 0,
|
|
12953
|
+
right: 0,
|
|
12954
|
+
height: "2px",
|
|
12955
|
+
background: "linear-gradient(to right, var(--cb-gold, #d4af37), #f3e5ab)",
|
|
12956
|
+
zIndex: 10,
|
|
12957
|
+
...dragCtx.hoverPosition === "before" ? { top: 0 } : { bottom: 0 }
|
|
12958
|
+
}
|
|
12959
|
+
}
|
|
12960
|
+
),
|
|
12902
12961
|
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: getClassNameLayer("inner"), children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
12903
12962
|
"button",
|
|
12904
12963
|
{
|
|
@@ -13096,16 +13155,32 @@ var LayerTree = (0, import_react84.memo)(({
|
|
|
13096
13155
|
selectedPathIds,
|
|
13097
13156
|
trees
|
|
13098
13157
|
}) => {
|
|
13099
|
-
|
|
13100
|
-
|
|
13158
|
+
const [draggedItem, setDraggedItem] = (0, import_react84.useState)(null);
|
|
13159
|
+
const [hoveredItemId, setHoveredItemId] = (0, import_react84.useState)(null);
|
|
13160
|
+
const [hoverPosition, setHoverPosition] = (0, import_react84.useState)(null);
|
|
13161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
13162
|
+
DragContext.Provider,
|
|
13101
13163
|
{
|
|
13102
|
-
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13107
|
-
|
|
13108
|
-
|
|
13164
|
+
value: {
|
|
13165
|
+
draggedItem,
|
|
13166
|
+
setDraggedItem,
|
|
13167
|
+
hoveredItemId,
|
|
13168
|
+
setHoveredItemId,
|
|
13169
|
+
hoverPosition,
|
|
13170
|
+
setHoverPosition
|
|
13171
|
+
},
|
|
13172
|
+
children: trees.map((tree) => /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
13173
|
+
LayerTreeZone,
|
|
13174
|
+
{
|
|
13175
|
+
depth: 0,
|
|
13176
|
+
selectedId,
|
|
13177
|
+
selectedPathIds,
|
|
13178
|
+
tree
|
|
13179
|
+
},
|
|
13180
|
+
tree.zoneCompound
|
|
13181
|
+
))
|
|
13182
|
+
}
|
|
13183
|
+
);
|
|
13109
13184
|
});
|
|
13110
13185
|
|
|
13111
13186
|
// components/CredBuild/components/Outline/index.tsx
|
|
@@ -13408,7 +13483,7 @@ function PropsProvider(props) {
|
|
|
13408
13483
|
}
|
|
13409
13484
|
var usePropsContext = () => (0, import_react88.useContext)(propsContext);
|
|
13410
13485
|
|
|
13411
|
-
// css-module:/
|
|
13486
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Layout/styles.module.css#css-module
|
|
13412
13487
|
init_react_import();
|
|
13413
13488
|
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" };
|
|
13414
13489
|
|
|
@@ -14256,7 +14331,7 @@ init_lucide_react();
|
|
|
14256
14331
|
init_IconButton();
|
|
14257
14332
|
init_get_class_name_factory();
|
|
14258
14333
|
|
|
14259
|
-
// css-module:/
|
|
14334
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/MenuBar/styles.module.css#css-module
|
|
14260
14335
|
init_react_import();
|
|
14261
14336
|
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" };
|
|
14262
14337
|
|
|
@@ -14327,7 +14402,7 @@ init_store2();
|
|
|
14327
14402
|
var import_react93 = require("react");
|
|
14328
14403
|
init_lib();
|
|
14329
14404
|
|
|
14330
|
-
// css-module:/
|
|
14405
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/ViewportControls/styles.module.css#css-module
|
|
14331
14406
|
init_react_import();
|
|
14332
14407
|
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" };
|
|
14333
14408
|
|
|
@@ -14523,7 +14598,7 @@ var useCanvasFrame = () => {
|
|
|
14523
14598
|
return context;
|
|
14524
14599
|
};
|
|
14525
14600
|
|
|
14526
|
-
// css-module:/
|
|
14601
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Header/styles.module.css#css-module
|
|
14527
14602
|
init_react_import();
|
|
14528
14603
|
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" };
|
|
14529
14604
|
|
|
@@ -14924,7 +14999,7 @@ var Header = (0, import_react95.memo)(HeaderInner);
|
|
|
14924
14999
|
// components/SidebarSection/index.tsx
|
|
14925
15000
|
init_react_import();
|
|
14926
15001
|
|
|
14927
|
-
// css-module:/
|
|
15002
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/SidebarSection/styles.module.css#css-module
|
|
14928
15003
|
init_react_import();
|
|
14929
15004
|
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" };
|
|
14930
15005
|
|
|
@@ -14936,7 +15011,7 @@ init_Loader();
|
|
|
14936
15011
|
// components/Breadcrumbs/index.tsx
|
|
14937
15012
|
init_react_import();
|
|
14938
15013
|
|
|
14939
|
-
// css-module:/
|
|
15014
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/Breadcrumbs/styles.module.css#css-module
|
|
14940
15015
|
init_react_import();
|
|
14941
15016
|
var styles_module_default28 = { "Breadcrumbs": "_Breadcrumbs_1e0gb_1", "Breadcrumbs-breadcrumbLabel": "_Breadcrumbs-breadcrumbLabel_1e0gb_7", "Breadcrumbs-breadcrumb": "_Breadcrumbs-breadcrumb_1e0gb_7" };
|
|
14942
15017
|
|
|
@@ -15036,7 +15111,7 @@ init_css_box_model_esm();
|
|
|
15036
15111
|
var import_react97 = require("react");
|
|
15037
15112
|
init_store2();
|
|
15038
15113
|
|
|
15039
|
-
// css-module:/
|
|
15114
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Canvas/styles.module.css#css-module
|
|
15040
15115
|
init_react_import();
|
|
15041
15116
|
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" };
|
|
15042
15117
|
|
|
@@ -15091,6 +15166,10 @@ var Canvas = () => {
|
|
|
15091
15166
|
root: s.state.data.root
|
|
15092
15167
|
}))
|
|
15093
15168
|
);
|
|
15169
|
+
const rootProps = root?.props || root;
|
|
15170
|
+
const isHtmlMode = rootProps?.mode === "html";
|
|
15171
|
+
const htmlViewMode = rootProps?.htmlViewMode || (rootProps?.htmlCode ? "preview" : "code");
|
|
15172
|
+
const isHtmlCodeEditActive = isHtmlMode && htmlViewMode === "code";
|
|
15094
15173
|
const isNonFullWidth = viewports.current.width !== "100%";
|
|
15095
15174
|
const shouldApplyViewport = true;
|
|
15096
15175
|
const [showTransition, setShowTransition] = (0, import_react97.useState)(false);
|
|
@@ -15276,6 +15355,7 @@ var Canvas = () => {
|
|
|
15276
15355
|
showLoader,
|
|
15277
15356
|
fullScreen: _experimentalFullScreenCanvas
|
|
15278
15357
|
}),
|
|
15358
|
+
style: isHtmlCodeEditActive ? { overflow: "hidden" } : void 0,
|
|
15279
15359
|
onClick: (e) => {
|
|
15280
15360
|
const el = e.target;
|
|
15281
15361
|
if (!el.hasAttribute("data-credbuild-component") && !el.hasAttribute("data-credbuild-dropzone")) {
|
|
@@ -15286,30 +15366,41 @@ var Canvas = () => {
|
|
|
15286
15366
|
});
|
|
15287
15367
|
}
|
|
15288
15368
|
},
|
|
15289
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
|
|
15296
|
-
|
|
15297
|
-
|
|
15298
|
-
|
|
15299
|
-
|
|
15300
|
-
|
|
15301
|
-
|
|
15302
|
-
|
|
15303
|
-
|
|
15304
|
-
|
|
15305
|
-
|
|
15306
|
-
|
|
15307
|
-
|
|
15308
|
-
|
|
15309
|
-
|
|
15310
|
-
|
|
15311
|
-
|
|
15312
|
-
|
|
15369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
|
|
15370
|
+
"div",
|
|
15371
|
+
{
|
|
15372
|
+
className: getClassName37("inner"),
|
|
15373
|
+
ref: frameRef,
|
|
15374
|
+
style: {
|
|
15375
|
+
minHeight: "100%",
|
|
15376
|
+
height: isHtmlCodeEditActive ? "100%" : !zoomConfig.rootHeight || isNaN(zoomConfig.rootHeight) ? "100%" : `${zoomConfig.rootHeight * zoomConfig.zoom}px`
|
|
15377
|
+
},
|
|
15378
|
+
children: [
|
|
15379
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
15380
|
+
"div",
|
|
15381
|
+
{
|
|
15382
|
+
className: getClassName37("root"),
|
|
15383
|
+
style: {
|
|
15384
|
+
width: isHtmlCodeEditActive ? "100%" : viewports.current.width || "100%",
|
|
15385
|
+
height: isHtmlCodeEditActive ? "100%" : !zoomConfig.rootHeight || isNaN(zoomConfig.rootHeight) ? "100%" : zoomConfig.rootHeight,
|
|
15386
|
+
minHeight: "100%",
|
|
15387
|
+
transform: isHtmlCodeEditActive ? "none" : `scale(${zoomConfig.zoom})`,
|
|
15388
|
+
transition: showTransition ? `width ${TRANSITION_DURATION}ms ease-out, height ${TRANSITION_DURATION}ms ease-out, transform ${TRANSITION_DURATION}ms ease-out` : "",
|
|
15389
|
+
overflow: isHtmlCodeEditActive ? "hidden" : isNonFullWidth ? void 0 : "auto"
|
|
15390
|
+
},
|
|
15391
|
+
suppressHydrationWarning: true,
|
|
15392
|
+
id: "credbuild-canvas-root",
|
|
15393
|
+
onTransitionEnd: () => {
|
|
15394
|
+
setShowTransition(false);
|
|
15395
|
+
isResizingRef.current = false;
|
|
15396
|
+
},
|
|
15397
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(CustomPreview, { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Preview, {}) })
|
|
15398
|
+
}
|
|
15399
|
+
),
|
|
15400
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: getClassName37("loader"), children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Loader, { size: 24 }) })
|
|
15401
|
+
]
|
|
15402
|
+
}
|
|
15403
|
+
)
|
|
15313
15404
|
}
|
|
15314
15405
|
);
|
|
15315
15406
|
};
|
|
@@ -15405,7 +15496,7 @@ init_react_import();
|
|
|
15405
15496
|
var import_react99 = require("react");
|
|
15406
15497
|
init_get_class_name_factory();
|
|
15407
15498
|
|
|
15408
|
-
// css-module:/
|
|
15499
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/ResizeHandle/styles.module.css#css-module
|
|
15409
15500
|
init_react_import();
|
|
15410
15501
|
var styles_module_default30 = { "ResizeHandle": "_ResizeHandle_144bf_2", "ResizeHandle--left": "_ResizeHandle--left_144bf_16", "ResizeHandle--right": "_ResizeHandle--right_144bf_20" };
|
|
15411
15502
|
|
|
@@ -15481,7 +15572,7 @@ var ResizeHandle = ({
|
|
|
15481
15572
|
// components/CredBuild/components/Sidebar/index.tsx
|
|
15482
15573
|
init_get_class_name_factory();
|
|
15483
15574
|
|
|
15484
|
-
// css-module:/
|
|
15575
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Sidebar/styles.module.css#css-module
|
|
15485
15576
|
init_react_import();
|
|
15486
15577
|
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" };
|
|
15487
15578
|
|
|
@@ -15581,7 +15672,7 @@ var useDeleteHotkeys = () => {
|
|
|
15581
15672
|
// components/CredBuild/components/Nav/index.tsx
|
|
15582
15673
|
init_react_import();
|
|
15583
15674
|
|
|
15584
|
-
// css-module:/
|
|
15675
|
+
// css-module:/home/runner/work/credbuild/credbuild/components/CredBuild/components/Nav/styles.module.css#css-module
|
|
15585
15676
|
init_react_import();
|
|
15586
15677
|
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" };
|
|
15587
15678
|
|
|
@@ -15628,7 +15719,7 @@ init_lucide_react();
|
|
|
15628
15719
|
init_react_import();
|
|
15629
15720
|
init_lucide_react();
|
|
15630
15721
|
|
|
15631
|
-
// css-module:/
|
|
15722
|
+
// css-module:/home/runner/work/credbuild/credbuild/plugins/blocks/styles.module.css#css-module
|
|
15632
15723
|
init_react_import();
|
|
15633
15724
|
var styles_module_default33 = { "BlocksPlugin": "_BlocksPlugin_1q0b2_1" };
|
|
15634
15725
|
|
|
@@ -15647,7 +15738,7 @@ var blocksPlugin = () => ({
|
|
|
15647
15738
|
init_react_import();
|
|
15648
15739
|
init_lucide_react();
|
|
15649
15740
|
|
|
15650
|
-
// css-module:/
|
|
15741
|
+
// css-module:/home/runner/work/credbuild/credbuild/plugins/outline/styles.module.css#css-module
|
|
15651
15742
|
init_react_import();
|
|
15652
15743
|
var styles_module_default34 = { "OutlinePlugin": "_OutlinePlugin_q92j6_1" };
|
|
15653
15744
|
|
|
@@ -15667,7 +15758,7 @@ init_react_import();
|
|
|
15667
15758
|
init_lucide_react();
|
|
15668
15759
|
init_store2();
|
|
15669
15760
|
|
|
15670
|
-
// css-module:/
|
|
15761
|
+
// css-module:/home/runner/work/credbuild/credbuild/plugins/fields/styles.module.css#css-module
|
|
15671
15762
|
init_react_import();
|
|
15672
15763
|
var styles_module_default35 = { "FieldsPlugin": "_FieldsPlugin_6as57_1", "FieldsPlugin-header": "_FieldsPlugin-header_6as57_7" };
|
|
15673
15764
|
|
|
@@ -15704,7 +15795,7 @@ init_store2();
|
|
|
15704
15795
|
init_lucide_react();
|
|
15705
15796
|
init_get_class_name_factory();
|
|
15706
15797
|
|
|
15707
|
-
// css-module:/
|
|
15798
|
+
// css-module:/home/runner/work/credbuild/credbuild/plugins/code/styles.module.css#css-module
|
|
15708
15799
|
init_react_import();
|
|
15709
15800
|
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" };
|
|
15710
15801
|
|
|
@@ -15713,30 +15804,36 @@ var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
|
15713
15804
|
var getClassName44 = get_class_name_factory_default("CodePanel", styles_module_default36);
|
|
15714
15805
|
var CodePanel = () => {
|
|
15715
15806
|
const [copied, setCopied] = (0, import_react101.useState)(false);
|
|
15716
|
-
const [
|
|
15807
|
+
const [topic, setTopic] = (0, import_react101.useState)("");
|
|
15808
|
+
const [promptType, setPromptType] = (0, import_react101.useState)("header-footer");
|
|
15717
15809
|
const dispatch = useAppStore((s) => s.dispatch);
|
|
15718
15810
|
const root = useAppStore((s) => s.state.data.root);
|
|
15719
15811
|
const rootProps = root?.props || root;
|
|
15720
15812
|
const currentMode = rootProps?.mode || "blocks";
|
|
15721
|
-
const
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
|
|
15725
|
-
|
|
15726
|
-
|
|
15727
|
-
|
|
15728
|
-
|
|
15729
|
-
|
|
15813
|
+
const generatePrompt = (variant, landingPageTopic) => {
|
|
15814
|
+
const topicDesc = landingPageTopic.trim() ? `untuk "${landingPageTopic.trim()}"` : "lengkap dan premium";
|
|
15815
|
+
let structureRequirements = "";
|
|
15816
|
+
if (variant === "header-footer") {
|
|
15817
|
+
structureRequirements = "1. STRUKTUR LENGKAP: Halaman HARUS memuat seluruh bagian berikut secara lengkap: Header/Navigation menu di bagian paling atas, Hero Section, Features/Layanan, Testimoni, Call-to-Action (CTA), dan Footer di bagian paling bawah.";
|
|
15818
|
+
} else if (variant === "header-no-footer") {
|
|
15819
|
+
structureRequirements = "1. DENGAN HEADER & TANPA FOOTER: Halaman HARUS memuat Header/Navigation menu di bagian paling atas, Hero Section, Features/Layanan, Testimoni, dan Call-to-Action (CTA). Namun, pastikan sama sekali TIDAK ada bagian Footer di bagian bawah halaman.";
|
|
15820
|
+
} else if (variant === "no-header-footer") {
|
|
15821
|
+
structureRequirements = "1. TANPA HEADER & DENGAN FOOTER: Halaman HARUS memuat Hero Section, Features/Layanan, Testimoni, Call-to-Action (CTA), dan Footer di bagian paling bawah. Namun, pastikan sama sekali TIDAK ada bagian Header/Navigation/Navbar di bagian atas halaman.";
|
|
15822
|
+
} else {
|
|
15823
|
+
structureRequirements = "1. TANPA HEADER & TANPA FOOTER: Halaman HARUS memuat Hero Section, Features/Layanan, Testimoni, dan Call-to-Action (CTA). Pastikan sama sekali TIDAK ada bagian Header/Navigation/Navbar di bagian atas, dan TIDAK ada bagian Footer di bagian bawah halaman.";
|
|
15824
|
+
}
|
|
15825
|
+
return `Buatkan desain landing page ${topicDesc} dengan pendekatan mobile-first, modern, rapi, dan compact (padat & elegan) menggunakan HTML murni dan utilitas kelas Tailwind CSS.
|
|
15730
15826
|
|
|
15731
15827
|
Ketentuan penulisan kode:
|
|
15732
|
-
|
|
15733
|
-
2.
|
|
15828
|
+
${structureRequirements}
|
|
15829
|
+
2. STRUKTUR BERSIH: Gunakan elemen semantik HTML5 seperti <section>, <header>, atau <div> sebagai wrapper utama per seksi. JANGAN sertakan tag <html>, <body>, <head>, atau <script>.
|
|
15734
15830
|
3. MOBILE-FIRST & RESPONSIF: Desain harus sepenuhnya responsif. Mulai dari layout ponsel (default), lalu gunakan breakpoint (sm:, md:, lg:, xl:) secara terstruktur untuk layar yang lebih besar.
|
|
15735
15831
|
4. ESTETIKA MODERN & PREMIUM: Gunakan skema warna harmonis (misal: warna gelap bernuansa glassmorphism, gradasi halus, border tipis semi-transparan, efek hover mikro interaktif).
|
|
15736
15832
|
5. COMPACT & EFISIEN: Hindari padding/margin berlebih yang membuat halaman kosong melompong. Pastikan konten padat, terbaca dengan baik, dan memiliki rasio grid/flexbox yang rapi.
|
|
15737
15833
|
6. BEBAS JAVASCRIPT: Seluruh interaktivitas dasar (seperti hover, focus, state) harus ditangani murni menggunakan utilitas kelas CSS Tailwind.`;
|
|
15834
|
+
};
|
|
15738
15835
|
const handleCopyPrompt = () => {
|
|
15739
|
-
const selectedPrompt = promptType
|
|
15836
|
+
const selectedPrompt = generatePrompt(promptType, topic);
|
|
15740
15837
|
navigator.clipboard.writeText(selectedPrompt);
|
|
15741
15838
|
setCopied(true);
|
|
15742
15839
|
setTimeout(() => setCopied(false), 2e3);
|
|
@@ -15842,37 +15939,94 @@ Ketentuan penulisan kode:
|
|
|
15842
15939
|
}
|
|
15843
15940
|
)
|
|
15844
15941
|
] }),
|
|
15845
|
-
/* @__PURE__ */ (0, import_jsx_runtime99.
|
|
15846
|
-
/* @__PURE__ */ (0, import_jsx_runtime99.
|
|
15847
|
-
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
|
|
15851
|
-
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
15862
|
-
|
|
15863
|
-
|
|
15864
|
-
|
|
15865
|
-
|
|
15866
|
-
|
|
15867
|
-
|
|
15868
|
-
|
|
15869
|
-
|
|
15870
|
-
|
|
15871
|
-
|
|
15872
|
-
|
|
15942
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { style: { marginBottom: 12 }, children: [
|
|
15943
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("optionTitle"), style: { marginBottom: 6 }, children: "Topik / Jenis Landing Page" }),
|
|
15944
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
15945
|
+
"input",
|
|
15946
|
+
{
|
|
15947
|
+
type: "text",
|
|
15948
|
+
value: topic,
|
|
15949
|
+
onChange: (e) => setTopic(e.target.value),
|
|
15950
|
+
placeholder: "Contoh: Klinik Gigi, SaaS AI, Agensi Desain...",
|
|
15951
|
+
style: {
|
|
15952
|
+
boxSizing: "border-box",
|
|
15953
|
+
width: "100%",
|
|
15954
|
+
padding: "8px 10px",
|
|
15955
|
+
fontSize: "12px",
|
|
15956
|
+
borderRadius: "5px",
|
|
15957
|
+
border: "1px solid var(--cb-border)",
|
|
15958
|
+
backgroundColor: "var(--cb-bg-base)",
|
|
15959
|
+
color: "var(--cb-silver)",
|
|
15960
|
+
outline: "none",
|
|
15961
|
+
transition: "border-color 0.2s"
|
|
15962
|
+
},
|
|
15963
|
+
onFocus: (e) => e.target.style.borderColor = "var(--cb-gold)",
|
|
15964
|
+
onBlur: (e) => e.target.style.borderColor = "var(--cb-border)"
|
|
15965
|
+
}
|
|
15966
|
+
)
|
|
15967
|
+
] }),
|
|
15968
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: getClassName44("optionsSection"), style: { marginBottom: 12 }, children: [
|
|
15969
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("optionTitle"), style: { marginBottom: 6 }, children: "Varian Struktur Template" }),
|
|
15970
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: getClassName44("radioGroup"), children: [
|
|
15971
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("label", { className: getClassName44("radioLabel"), children: [
|
|
15972
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
15973
|
+
"input",
|
|
15974
|
+
{
|
|
15975
|
+
type: "radio",
|
|
15976
|
+
name: "promptType",
|
|
15977
|
+
value: "header-footer",
|
|
15978
|
+
checked: promptType === "header-footer",
|
|
15979
|
+
onChange: () => setPromptType("header-footer"),
|
|
15980
|
+
className: getClassName44("radioInput")
|
|
15981
|
+
}
|
|
15982
|
+
),
|
|
15983
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: "Dengan Header & Footer" })
|
|
15984
|
+
] }),
|
|
15985
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("label", { className: getClassName44("radioLabel"), children: [
|
|
15986
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
15987
|
+
"input",
|
|
15988
|
+
{
|
|
15989
|
+
type: "radio",
|
|
15990
|
+
name: "promptType",
|
|
15991
|
+
value: "header-no-footer",
|
|
15992
|
+
checked: promptType === "header-no-footer",
|
|
15993
|
+
onChange: () => setPromptType("header-no-footer"),
|
|
15994
|
+
className: getClassName44("radioInput")
|
|
15995
|
+
}
|
|
15996
|
+
),
|
|
15997
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: "Dengan Header, Tanpa Footer" })
|
|
15998
|
+
] }),
|
|
15999
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("label", { className: getClassName44("radioLabel"), children: [
|
|
16000
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
16001
|
+
"input",
|
|
16002
|
+
{
|
|
16003
|
+
type: "radio",
|
|
16004
|
+
name: "promptType",
|
|
16005
|
+
value: "no-header-footer",
|
|
16006
|
+
checked: promptType === "no-header-footer",
|
|
16007
|
+
onChange: () => setPromptType("no-header-footer"),
|
|
16008
|
+
className: getClassName44("radioInput")
|
|
16009
|
+
}
|
|
16010
|
+
),
|
|
16011
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: "Tanpa Header, Dengan Footer" })
|
|
16012
|
+
] }),
|
|
16013
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("label", { className: getClassName44("radioLabel"), children: [
|
|
16014
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
16015
|
+
"input",
|
|
16016
|
+
{
|
|
16017
|
+
type: "radio",
|
|
16018
|
+
name: "promptType",
|
|
16019
|
+
value: "no-header-no-footer",
|
|
16020
|
+
checked: promptType === "no-header-no-footer",
|
|
16021
|
+
onChange: () => setPromptType("no-header-no-footer"),
|
|
16022
|
+
className: getClassName44("radioInput")
|
|
16023
|
+
}
|
|
16024
|
+
),
|
|
16025
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { children: "Tanpa Keduanya" })
|
|
16026
|
+
] })
|
|
15873
16027
|
] })
|
|
15874
|
-
] })
|
|
15875
|
-
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("promptText"),
|
|
16028
|
+
] }),
|
|
16029
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: getClassName44("promptText"), style: { maxHeight: 110 }, children: generatePrompt(promptType, topic) })
|
|
15876
16030
|
] })
|
|
15877
16031
|
] });
|
|
15878
16032
|
};
|