@yklyklpackages/message-card 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/components/action/ActionContext.d.ts.map +1 -1
  2. package/dist/components/action/dispatcher.d.ts +4 -1
  3. package/dist/components/action/dispatcher.d.ts.map +1 -1
  4. package/dist/components/action/handlers.d.ts +1 -0
  5. package/dist/components/action/handlers.d.ts.map +1 -1
  6. package/dist/components/action/types.d.ts +9 -0
  7. package/dist/components/action/types.d.ts.map +1 -1
  8. package/dist/components/core/LeafWrapper.d.ts.map +1 -1
  9. package/dist/components/core/templateAdapter.d.ts.map +1 -1
  10. package/dist/components/layout/{CardLayout.d.ts → JDHCardLayout.d.ts} +3 -3
  11. package/dist/components/layout/JDHCardLayout.d.ts.map +1 -0
  12. package/dist/components/layout/MultipleColumnLayout.d.ts.map +1 -1
  13. package/dist/components/message/MessageContainer.d.ts +1 -0
  14. package/dist/components/message/MessageContainer.d.ts.map +1 -1
  15. package/dist/components/render/Button/index.d.ts +13 -0
  16. package/dist/components/render/Button/index.d.ts.map +1 -0
  17. package/dist/components/render/ButtonJDH.d.ts +2 -2
  18. package/dist/components/render/ButtonJDH.d.ts.map +1 -1
  19. package/dist/components/render/ChoiceJDH.d.ts +2 -2
  20. package/dist/components/render/ChoiceJDH.d.ts.map +1 -1
  21. package/dist/components/render/CustomRenderFromProps.d.ts.map +1 -1
  22. package/dist/components/render/Image.d.ts +2 -2
  23. package/dist/components/render/Image.d.ts.map +1 -1
  24. package/dist/components/render/InputJDH.d.ts +2 -2
  25. package/dist/components/render/InputJDH.d.ts.map +1 -1
  26. package/dist/components/render/Markdown.d.ts +2 -2
  27. package/dist/components/render/Markdown.d.ts.map +1 -1
  28. package/dist/components/render/Text.d.ts +2 -2
  29. package/dist/components/render/Text.d.ts.map +1 -1
  30. package/dist/components/render/TextareaJDH.d.ts +2 -2
  31. package/dist/components/render/TextareaJDH.d.ts.map +1 -1
  32. package/dist/components/theme/ScreenTheme375.d.ts.map +1 -1
  33. package/dist/components/theme/defaultTheme.d.ts.map +1 -1
  34. package/dist/components/types/component.d.ts +2 -5
  35. package/dist/components/types/component.d.ts.map +1 -1
  36. package/dist/components/utils/styleHelpers.d.ts +17 -18
  37. package/dist/components/utils/styleHelpers.d.ts.map +1 -1
  38. package/dist/index.cjs +1468 -709
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.mjs +1468 -709
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/index.umd.js +1464 -705
  43. package/dist/index.umd.js.map +1 -1
  44. package/dist/style.css +177 -206
  45. package/package.json +4 -3
  46. package/dist/components/layout/CardLayout.d.ts.map +0 -1
package/dist/index.mjs CHANGED
@@ -4,25 +4,25 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4
4
  var _a;
5
5
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
6
6
  import React, { useState, useRef, useCallback, useEffect, createContext, useMemo, useContext, Fragment as Fragment$1, forwardRef } from "react";
7
- var __defProp$z = Object.defineProperty;
8
- var __defProps$t = Object.defineProperties;
9
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
10
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
11
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
12
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
13
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
- var __spreadValues$w = (a, b3) => {
7
+ var __defProp$A = Object.defineProperty;
8
+ var __defProps$u = Object.defineProperties;
9
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
10
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
11
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
12
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
13
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
+ var __spreadValues$x = (a, b3) => {
15
15
  for (var prop in b3 || (b3 = {}))
16
- if (__hasOwnProp$w.call(b3, prop))
17
- __defNormalProp$z(a, prop, b3[prop]);
18
- if (__getOwnPropSymbols$w)
19
- for (var prop of __getOwnPropSymbols$w(b3)) {
20
- if (__propIsEnum$w.call(b3, prop))
21
- __defNormalProp$z(a, prop, b3[prop]);
16
+ if (__hasOwnProp$x.call(b3, prop))
17
+ __defNormalProp$A(a, prop, b3[prop]);
18
+ if (__getOwnPropSymbols$x)
19
+ for (var prop of __getOwnPropSymbols$x(b3)) {
20
+ if (__propIsEnum$x.call(b3, prop))
21
+ __defNormalProp$A(a, prop, b3[prop]);
22
22
  }
23
23
  return a;
24
24
  };
25
- var __spreadProps$t = (a, b3) => __defProps$t(a, __getOwnPropDescs$t(b3));
25
+ var __spreadProps$u = (a, b3) => __defProps$u(a, __getOwnPropDescs$u(b3));
26
26
  const postMessage$1 = (name, params) => {
27
27
  var _a2;
28
28
  (_a2 = window == null ? void 0 : window.parent) == null ? void 0 : _a2.postMessage({ from: "aui-preview", name, params }, "*");
@@ -67,8 +67,8 @@ const WrapComponent = (props) => {
67
67
  className: "container-wrap-hoc",
68
68
  ref: containerRef,
69
69
  onClick,
70
- children: renderFunction(__spreadProps$t(__spreadValues$w({}, runtimeProps), {
71
- component: __spreadValues$w(__spreadValues$w({}, runtimeProps.component), componentFromEditor || {})
70
+ children: renderFunction(__spreadProps$u(__spreadValues$x({}, runtimeProps), {
71
+ component: __spreadValues$x(__spreadValues$x({}, runtimeProps.component), componentFromEditor || {})
72
72
  }))
73
73
  },
74
74
  updateUniqueId
@@ -92,19 +92,19 @@ const containerComponentEditorModeHOC = (renderFunction) => {
92
92
  );
93
93
  } : renderFunction;
94
94
  };
95
- var __defProp$y = Object.defineProperty;
96
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
97
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
98
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
99
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
100
- var __spreadValues$v = (a, b3) => {
95
+ var __defProp$z = Object.defineProperty;
96
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
97
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
98
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
99
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
100
+ var __spreadValues$w = (a, b3) => {
101
101
  for (var prop in b3 || (b3 = {}))
102
- if (__hasOwnProp$v.call(b3, prop))
103
- __defNormalProp$y(a, prop, b3[prop]);
104
- if (__getOwnPropSymbols$v)
105
- for (var prop of __getOwnPropSymbols$v(b3)) {
106
- if (__propIsEnum$v.call(b3, prop))
107
- __defNormalProp$y(a, prop, b3[prop]);
102
+ if (__hasOwnProp$w.call(b3, prop))
103
+ __defNormalProp$z(a, prop, b3[prop]);
104
+ if (__getOwnPropSymbols$w)
105
+ for (var prop of __getOwnPropSymbols$w(b3)) {
106
+ if (__propIsEnum$w.call(b3, prop))
107
+ __defNormalProp$z(a, prop, b3[prop]);
108
108
  }
109
109
  return a;
110
110
  };
@@ -130,7 +130,7 @@ const getImageUrl = ({
130
130
  if (isWebp) {
131
131
  reWebp = ".webp";
132
132
  }
133
- const { width, height } = __spreadValues$v({}, size);
133
+ const { width, height } = __spreadValues$w({}, size);
134
134
  let reSize = "";
135
135
  if (width && height) {
136
136
  reSize = `s${width}x${height}_`;
@@ -210,7 +210,183 @@ const defaultTheme$2 = {
210
210
  Radius_JDH_xs: 6
211
211
  },
212
212
  components: {
213
- card: {
213
+ text: {
214
+ basic: {
215
+ fontSize: "FontSizes_JDH_Text",
216
+ lineHeight: "FontSizes_JDH_Text",
217
+ fontWeight: "FontWeight_JDH_Normal",
218
+ color: "Color_JDH_Gray_Text",
219
+ background: "#FFF",
220
+ margin: 0
221
+ },
222
+ variant: {
223
+ h1: {
224
+ fontSize: "FontSizes_JDH_Headline1",
225
+ lineHeight: "FontSizes_JDH_Headline1",
226
+ color: "Color_JDH_Gray_Headline",
227
+ fontWeight: "FontWeight_JDH_Medium"
228
+ },
229
+ h2: {
230
+ fontSize: "FontSizes_JDH_Headline2",
231
+ lineHeight: "FontSizes_JDH_Headline2",
232
+ color: "Color_JDH_Gray_Headline",
233
+ fontWeight: "FontWeight_JDH_Medium"
234
+ },
235
+ h3: {
236
+ fontSize: "FontSizes_JDH_Title",
237
+ lineHeight: "FontSizes_JDH_Title",
238
+ color: "Color_JDH_Gray_Headline",
239
+ fontWeight: "FontWeight_JDH_Medium"
240
+ },
241
+ h4: {
242
+ fontSize: "FontSizes_JDH_Title",
243
+ lineHeight: "FontSizes_JDH_Title",
244
+ color: "Color_JDH_Gray_Headline",
245
+ fontWeight: "FontWeight_JDH_Medium"
246
+ },
247
+ h5: {
248
+ fontSize: "FontSizes_JDH_Title",
249
+ lineHeight: "FontSizes_JDH_Title",
250
+ color: "Color_JDH_Gray_Headline",
251
+ fontWeight: "FontWeight_JDH_Medium"
252
+ },
253
+ body: {},
254
+ caption: {
255
+ fontSize: "FontSizes_JDH_AccentText",
256
+ lineHeight: "FontSizes_JDH_AccentText",
257
+ color: "Color_JDH_Gray_AccentText"
258
+ },
259
+ tag: {
260
+ fontSize: "FontSizes_JDH_TagText",
261
+ lineHeight: "FontSizes_JDH_TagText",
262
+ color: "Color_JDH_Gray_AccentText"
263
+ }
264
+ }
265
+ },
266
+ button: {
267
+ basicColor: {
268
+ color: "#FFF",
269
+ background: "#000",
270
+ borderColor: "rgb(217, 217, 217)",
271
+ fillBackground: "rgba(0, 0, 0, 0.04)"
272
+ },
273
+ color: {
274
+ default: {},
275
+ primary: {
276
+ color: "#FFF",
277
+ background: "rgb(22, 119, 255)",
278
+ borderColor: "rgb(22, 119, 255)",
279
+ fillBackground: "rgb(230, 244, 255)"
280
+ },
281
+ danger: {
282
+ color: "#FFF",
283
+ background: "rgb(255, 77, 79)",
284
+ borderColor: "rgb(255, 77, 79)",
285
+ fillBackground: "rgb(255, 242, 240)"
286
+ },
287
+ green: {
288
+ color: "#fff",
289
+ background: "rgb(82, 196, 26)",
290
+ borderColor: "rgb(82, 196, 26)",
291
+ fillBackground: "rgb(246, 255, 237)"
292
+ },
293
+ red: {
294
+ background: "rgb(245, 34, 45)",
295
+ borderColor: "rgb(245, 34, 45)",
296
+ fillBackground: "rgb(255, 241, 240)"
297
+ },
298
+ yellow: {
299
+ background: "rgb(250, 219, 20)",
300
+ borderColor: "rgb(250, 219, 20)",
301
+ fillBackground: "rgb(254, 255, 230)"
302
+ },
303
+ blue: {
304
+ color: "#FFF",
305
+ background: "rgb(22, 119, 255)",
306
+ borderColor: "rgb(22, 119, 255)",
307
+ fillBackground: "rgb(230, 244, 255)"
308
+ }
309
+ },
310
+ disabledColor: {
311
+ color: "rgba(0, 0, 0, 0.25)",
312
+ background: "rgba(0, 0, 0, 0.04)",
313
+ borderColor: "rgb(217, 217, 217)",
314
+ fillBackground: "rgba(0, 0, 0, 0.04)",
315
+ textLinkBackground: "#fff"
316
+ },
317
+ hoverColor: {
318
+ default: {
319
+ solidBackground: "rgba(0,0,0,0.75)",
320
+ outlineDashedTextColor: "#4096ff",
321
+ fillBackground: "rgba(0,0,0,0.06)",
322
+ textBackground: "rgba(0,0,0,0.04)"
323
+ },
324
+ primary: {
325
+ solidBackground: "#4096ff",
326
+ outlineDashedTextColor: "#4096ff",
327
+ fillBackground: "#bae0ff",
328
+ textBackground: "#e6f4ff"
329
+ },
330
+ danger: {
331
+ solidBackground: "#ff7875",
332
+ outlineDashedTextColor: "#ff7875",
333
+ fillBackground: "#ffdfdc",
334
+ textBackground: "#fff2f0"
335
+ },
336
+ green: {
337
+ solidBackground: "#73d13d",
338
+ outlineDashedTextColor: "#73d13d",
339
+ fillBackground: "#d9f7be",
340
+ textBackground: "#f6ffed"
341
+ },
342
+ red: {
343
+ solidBackground: "#ff4d4f",
344
+ outlineDashedTextColor: "#ff4d4f",
345
+ fillBackground: "#ffccc7",
346
+ textBackground: "#fff1f0"
347
+ },
348
+ blue: {
349
+ solidBackground: "#4096ff",
350
+ outlineDashedTextColor: "#4096ff",
351
+ fillBackground: "#bae0ff",
352
+ textBackground: "#e6f4ff"
353
+ },
354
+ yellow: {
355
+ solidBackground: "#ffec3d",
356
+ outlineDashedTextColor: "#ffec3d",
357
+ fillBackground: "#ffffb8",
358
+ textBackground: "#feffe6"
359
+ }
360
+ },
361
+ basicSize: {
362
+ fontSize: 28,
363
+ lineHeight: 44,
364
+ padding: [8, 30],
365
+ borderRadius: 12,
366
+ minWidth: "auto"
367
+ },
368
+ size: {
369
+ small: {
370
+ padding: [0, 14]
371
+ },
372
+ middle: {},
373
+ large: {
374
+ fontSize: 32,
375
+ lineHeight: 50,
376
+ borderRadius: 16,
377
+ padding: [13, 30]
378
+ }
379
+ },
380
+ icon: {
381
+ borderRadius: 4,
382
+ margin: [0, 16, 0, 0]
383
+ },
384
+ loading: {
385
+ opacity: 0.65
386
+ },
387
+ loadingIcon: ""
388
+ },
389
+ jdhCard: {
214
390
  wrap: {
215
391
  background: "Color_JDH_Gray_Background",
216
392
  padding: "Spacing_JDH_xxl"
@@ -235,7 +411,7 @@ const defaultTheme$2 = {
235
411
  borderRadius: "Radius_JDH_xl"
236
412
  }
237
413
  },
238
- choice: {
414
+ jdhChoice: {
239
415
  wrap: {
240
416
  padding: [13, 32],
241
417
  layoutSmallPadding: [11, 20],
@@ -287,7 +463,7 @@ const defaultTheme$2 = {
287
463
  },
288
464
  disabledOpacity: 0.4
289
465
  },
290
- button: {
466
+ jdhButton: {
291
467
  colorStyle: {
292
468
  solid: {
293
469
  primary: {
@@ -375,7 +551,7 @@ const defaultTheme$2 = {
375
551
  },
376
552
  disabledOpacity: 0.4
377
553
  },
378
- input: {
554
+ jdhInput: {
379
555
  defaultState: {
380
556
  background: "Color_JDH_Gray_Background",
381
557
  fontSize: "FontSizes_JDH_Text",
@@ -421,7 +597,7 @@ const defaultTheme$2 = {
421
597
  color: "Color_JDH_Gray_AccentText"
422
598
  }
423
599
  },
424
- textarea: {
600
+ jdhTextarea: {
425
601
  defaultState: {
426
602
  background: "Color_JDH_Gray_Background",
427
603
  fontSize: "FontSizes_JDH_Text",
@@ -476,12 +652,12 @@ const defaultTheme$1 = {
476
652
  FontSizes_JDH_TagText: 10
477
653
  },
478
654
  lineHeight: {
479
- FontSizes_JDH_Headline1: 70,
480
- FontSizes_JDH_Headline2: 52,
481
- FontSizes_JDH_Title: 46,
482
- FontSizes_JDH_Text: 42,
483
- FontSizes_JDH_AccentText: 36,
484
- FontSizes_JDH_TagText: 30
655
+ FontSizes_JDH_Headline1: 35,
656
+ FontSizes_JDH_Headline2: 26,
657
+ FontSizes_JDH_Title: 23,
658
+ FontSizes_JDH_Text: 21,
659
+ FontSizes_JDH_AccentText: 18,
660
+ FontSizes_JDH_TagText: 15
485
661
  },
486
662
  color: {
487
663
  Color_JDH_Primary: "#17CB8E",
@@ -527,7 +703,183 @@ const defaultTheme$1 = {
527
703
  Radius_JDH_xs: 3
528
704
  },
529
705
  components: {
530
- card: {
706
+ text: {
707
+ basic: {
708
+ fontSize: "FontSizes_JDH_Text",
709
+ lineHeight: "FontSizes_JDH_Text",
710
+ fontWeight: "FontWeight_JDH_Normal",
711
+ color: "Color_JDH_Gray_Text",
712
+ background: "#FFF",
713
+ margin: 0
714
+ },
715
+ variant: {
716
+ h1: {
717
+ fontSize: "FontSizes_JDH_Headline1",
718
+ lineHeight: "FontSizes_JDH_Headline1",
719
+ color: "Color_JDH_Gray_Headline",
720
+ fontWeight: "FontWeight_JDH_Medium"
721
+ },
722
+ h2: {
723
+ fontSize: "FontSizes_JDH_Headline2",
724
+ lineHeight: "FontSizes_JDH_Headline2",
725
+ color: "Color_JDH_Gray_Headline",
726
+ fontWeight: "FontWeight_JDH_Medium"
727
+ },
728
+ h3: {
729
+ fontSize: "FontSizes_JDH_Title",
730
+ lineHeight: "FontSizes_JDH_Title",
731
+ color: "Color_JDH_Gray_Headline",
732
+ fontWeight: "FontWeight_JDH_Medium"
733
+ },
734
+ h4: {
735
+ fontSize: "FontSizes_JDH_Title",
736
+ lineHeight: "FontSizes_JDH_Title",
737
+ color: "Color_JDH_Gray_Headline",
738
+ fontWeight: "FontWeight_JDH_Medium"
739
+ },
740
+ h5: {
741
+ fontSize: "FontSizes_JDH_Title",
742
+ lineHeight: "FontSizes_JDH_Title",
743
+ color: "Color_JDH_Gray_Headline",
744
+ fontWeight: "FontWeight_JDH_Medium"
745
+ },
746
+ body: {},
747
+ caption: {
748
+ fontSize: "FontSizes_JDH_AccentText",
749
+ lineHeight: "FontSizes_JDH_AccentText",
750
+ color: "Color_JDH_Gray_AccentText"
751
+ },
752
+ tag: {
753
+ fontSize: "FontSizes_JDH_TagText",
754
+ lineHeight: "FontSizes_JDH_TagText",
755
+ color: "Color_JDH_Gray_AccentText"
756
+ }
757
+ }
758
+ },
759
+ button: {
760
+ basicColor: {
761
+ color: "#FFF",
762
+ background: "#000",
763
+ borderColor: "rgb(217, 217, 217)",
764
+ fillBackground: "rgba(0, 0, 0, 0.04)"
765
+ },
766
+ color: {
767
+ default: {},
768
+ primary: {
769
+ color: "#FFF",
770
+ background: "rgb(22, 119, 255)",
771
+ borderColor: "rgb(22, 119, 255)",
772
+ fillBackground: "rgb(230, 244, 255)"
773
+ },
774
+ danger: {
775
+ color: "#FFF",
776
+ background: "rgb(255, 77, 79)",
777
+ borderColor: "rgb(255, 77, 79)",
778
+ fillBackground: "rgb(255, 242, 240)"
779
+ },
780
+ green: {
781
+ color: "#fff",
782
+ background: "rgb(82, 196, 26)",
783
+ borderColor: "rgb(82, 196, 26)",
784
+ fillBackground: "rgb(246, 255, 237)"
785
+ },
786
+ red: {
787
+ background: "rgb(245, 34, 45)",
788
+ borderColor: "rgb(245, 34, 45)",
789
+ fillBackground: "rgb(255, 241, 240)"
790
+ },
791
+ yellow: {
792
+ background: "rgb(250, 219, 20)",
793
+ borderColor: "rgb(250, 219, 20)",
794
+ fillBackground: "rgb(254, 255, 230)"
795
+ },
796
+ blue: {
797
+ color: "#FFF",
798
+ background: "rgb(22, 119, 255)",
799
+ borderColor: "rgb(22, 119, 255)",
800
+ fillBackground: "rgb(230, 244, 255)"
801
+ }
802
+ },
803
+ disabledColor: {
804
+ color: "rgba(0, 0, 0, 0.25)",
805
+ background: "rgba(0, 0, 0, 0.04)",
806
+ borderColor: "rgb(217, 217, 217)",
807
+ fillBackground: "rgba(0, 0, 0, 0.04)",
808
+ textLinkBackground: "#fff"
809
+ },
810
+ hoverColor: {
811
+ default: {
812
+ solidBackground: "rgba(0,0,0,0.75)",
813
+ outlineDashedTextColor: "#4096ff",
814
+ fillBackground: "rgba(0,0,0,0.06)",
815
+ textBackground: "rgba(0,0,0,0.04)"
816
+ },
817
+ primary: {
818
+ solidBackground: "#4096ff",
819
+ outlineDashedTextColor: "#4096ff",
820
+ fillBackground: "#bae0ff",
821
+ textBackground: "#e6f4ff"
822
+ },
823
+ danger: {
824
+ solidBackground: "#ff7875",
825
+ outlineDashedTextColor: "#ff7875",
826
+ fillBackground: "#ffdfdc",
827
+ textBackground: "#fff2f0"
828
+ },
829
+ green: {
830
+ solidBackground: "#73d13d",
831
+ outlineDashedTextColor: "#73d13d",
832
+ fillBackground: "#d9f7be",
833
+ textBackground: "#f6ffed"
834
+ },
835
+ red: {
836
+ solidBackground: "#ff4d4f",
837
+ outlineDashedTextColor: "#ff4d4f",
838
+ fillBackground: "#ffccc7",
839
+ textBackground: "#fff1f0"
840
+ },
841
+ blue: {
842
+ solidBackground: "#4096ff",
843
+ outlineDashedTextColor: "#4096ff",
844
+ fillBackground: "#bae0ff",
845
+ textBackground: "#e6f4ff"
846
+ },
847
+ yellow: {
848
+ solidBackground: "#ffec3d",
849
+ outlineDashedTextColor: "#ffec3d",
850
+ fillBackground: "#ffffb8",
851
+ textBackground: "#feffe6"
852
+ }
853
+ },
854
+ basicSize: {
855
+ fontSize: 14,
856
+ lineHeight: 22,
857
+ padding: [4, 15],
858
+ borderRadius: 6,
859
+ minWidth: "auto"
860
+ },
861
+ size: {
862
+ small: {
863
+ padding: [0, 7]
864
+ },
865
+ middle: {},
866
+ large: {
867
+ fontSize: 16,
868
+ lineHeight: 25,
869
+ borderRadius: 8,
870
+ padding: [6.5, 15]
871
+ }
872
+ },
873
+ icon: {
874
+ borderRadius: 2,
875
+ margin: [0, 8, 0, 0]
876
+ },
877
+ loading: {
878
+ opacity: 0.65
879
+ },
880
+ loadingIcon: ""
881
+ },
882
+ jdhCard: {
531
883
  wrap: {
532
884
  background: "Color_JDH_Gray_Background",
533
885
  padding: "Spacing_JDH_xxl"
@@ -552,7 +904,7 @@ const defaultTheme$1 = {
552
904
  borderRadius: "Radius_JDH_xl"
553
905
  }
554
906
  },
555
- choice: {
907
+ jdhChoice: {
556
908
  wrap: {
557
909
  padding: [6.5, 16],
558
910
  layoutSmallPadding: [5.5, 10],
@@ -604,7 +956,7 @@ const defaultTheme$1 = {
604
956
  },
605
957
  disabledOpacity: 0.4
606
958
  },
607
- button: {
959
+ jdhButton: {
608
960
  colorStyle: {
609
961
  solid: {
610
962
  primary: {
@@ -692,7 +1044,7 @@ const defaultTheme$1 = {
692
1044
  },
693
1045
  disabledOpacity: 0.4
694
1046
  },
695
- input: {
1047
+ jdhInput: {
696
1048
  defaultState: {
697
1049
  background: "Color_JDH_Gray_Background",
698
1050
  fontSize: "FontSizes_JDH_Text",
@@ -738,7 +1090,7 @@ const defaultTheme$1 = {
738
1090
  color: "Color_JDH_Gray_AccentText"
739
1091
  }
740
1092
  },
741
- textarea: {
1093
+ jdhTextarea: {
742
1094
  defaultState: {
743
1095
  background: "Color_JDH_Gray_Background",
744
1096
  fontSize: "FontSizes_JDH_Text",
@@ -784,25 +1136,25 @@ const defaultTheme$1 = {
784
1136
  }
785
1137
  };
786
1138
  const DEFAULT_SCALE = 0.5;
787
- var __defProp$x = Object.defineProperty;
788
- var __defProps$s = Object.defineProperties;
789
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
790
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
791
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
792
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
793
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
794
- var __spreadValues$u = (a, b3) => {
1139
+ var __defProp$y = Object.defineProperty;
1140
+ var __defProps$t = Object.defineProperties;
1141
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
1142
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
1143
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
1144
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
1145
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1146
+ var __spreadValues$v = (a, b3) => {
795
1147
  for (var prop in b3 || (b3 = {}))
796
- if (__hasOwnProp$u.call(b3, prop))
797
- __defNormalProp$x(a, prop, b3[prop]);
798
- if (__getOwnPropSymbols$u)
799
- for (var prop of __getOwnPropSymbols$u(b3)) {
800
- if (__propIsEnum$u.call(b3, prop))
801
- __defNormalProp$x(a, prop, b3[prop]);
1148
+ if (__hasOwnProp$v.call(b3, prop))
1149
+ __defNormalProp$y(a, prop, b3[prop]);
1150
+ if (__getOwnPropSymbols$v)
1151
+ for (var prop of __getOwnPropSymbols$v(b3)) {
1152
+ if (__propIsEnum$v.call(b3, prop))
1153
+ __defNormalProp$y(a, prop, b3[prop]);
802
1154
  }
803
1155
  return a;
804
1156
  };
805
- var __spreadProps$s = (a, b3) => __defProps$s(a, __getOwnPropDescs$s(b3));
1157
+ var __spreadProps$t = (a, b3) => __defProps$t(a, __getOwnPropDescs$t(b3));
806
1158
  const ThemeContext = createContext(defaultTheme$2);
807
1159
  const ThemeProvider = ({
808
1160
  scale = DEFAULT_SCALE,
@@ -811,13 +1163,13 @@ const ThemeProvider = ({
811
1163
  }) => {
812
1164
  const merged = useMemo(() => {
813
1165
  const base = scale <= DEFAULT_SCALE ? defaultTheme$2 : defaultTheme$1;
814
- return __spreadProps$s(__spreadValues$u(__spreadValues$u({}, base), theme || {}), {
815
- fontSize: __spreadValues$u(__spreadValues$u({}, base.fontSize), (theme == null ? void 0 : theme.fontSize) || {}),
816
- color: __spreadValues$u(__spreadValues$u({}, base.color), (theme == null ? void 0 : theme.color) || {}),
817
- backgroundColor: __spreadValues$u(__spreadValues$u({}, base.color), (theme == null ? void 0 : theme.color) || {}),
818
- fontWeight: __spreadValues$u(__spreadValues$u({}, base.fontWeight), (theme == null ? void 0 : theme.fontWeight) || {}),
819
- space: __spreadValues$u(__spreadValues$u({}, base.space), (theme == null ? void 0 : theme.space) || {}),
820
- borderRadius: __spreadValues$u(__spreadValues$u({}, base.borderRadius), (theme == null ? void 0 : theme.borderRadius) || {})
1166
+ return __spreadProps$t(__spreadValues$v(__spreadValues$v({}, base), theme || {}), {
1167
+ fontSize: __spreadValues$v(__spreadValues$v({}, base.fontSize), (theme == null ? void 0 : theme.fontSize) || {}),
1168
+ color: __spreadValues$v(__spreadValues$v({}, base.color), (theme == null ? void 0 : theme.color) || {}),
1169
+ backgroundColor: __spreadValues$v(__spreadValues$v({}, base.color), (theme == null ? void 0 : theme.color) || {}),
1170
+ fontWeight: __spreadValues$v(__spreadValues$v({}, base.fontWeight), (theme == null ? void 0 : theme.fontWeight) || {}),
1171
+ space: __spreadValues$v(__spreadValues$v({}, base.space), (theme == null ? void 0 : theme.space) || {}),
1172
+ borderRadius: __spreadValues$v(__spreadValues$v({}, base.borderRadius), (theme == null ? void 0 : theme.borderRadius) || {})
821
1173
  });
822
1174
  }, [theme]);
823
1175
  return /* @__PURE__ */ jsx(ThemeContext.Provider, { value: merged, children });
@@ -2282,7 +2634,9 @@ const compileToTree = (template, data = {}, editorMode2 = false) => {
2282
2634
  "actions",
2283
2635
  "renderActions",
2284
2636
  "border",
2285
- "backgroundImage"
2637
+ "backgroundImage",
2638
+ "backgroundLinearGradient",
2639
+ "boxShadow"
2286
2640
  ]
2287
2641
  },
2288
2642
  runtime: {
@@ -2290,7 +2644,9 @@ const compileToTree = (template, data = {}, editorMode2 = false) => {
2290
2644
  "actions",
2291
2645
  "renderActions",
2292
2646
  "border",
2293
- "backgroundImage"
2647
+ "backgroundImage",
2648
+ "backgroundLinearGradient",
2649
+ "boxShadow"
2294
2650
  ],
2295
2651
  editorMode: editorMode2
2296
2652
  }
@@ -2624,7 +2980,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2624
2980
  var ys = arrObjKeys(obj, inspect2);
2625
2981
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2626
2982
  var protoTag = obj instanceof Object ? "" : "null prototype";
2627
- var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
2983
+ var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
2628
2984
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
2629
2985
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
2630
2986
  if (ys.length === 0) {
@@ -2649,25 +3005,25 @@ function canTrustToString(obj) {
2649
3005
  return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
2650
3006
  }
2651
3007
  function isArray$4(obj) {
2652
- return toStr(obj) === "[object Array]" && canTrustToString(obj);
3008
+ return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
2653
3009
  }
2654
3010
  function isDate$1(obj) {
2655
- return toStr(obj) === "[object Date]" && canTrustToString(obj);
3011
+ return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
2656
3012
  }
2657
3013
  function isRegExp$2(obj) {
2658
- return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3014
+ return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
2659
3015
  }
2660
3016
  function isError(obj) {
2661
- return toStr(obj) === "[object Error]" && canTrustToString(obj);
3017
+ return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
2662
3018
  }
2663
3019
  function isString$1(obj) {
2664
- return toStr(obj) === "[object String]" && canTrustToString(obj);
3020
+ return toStr$1(obj) === "[object String]" && canTrustToString(obj);
2665
3021
  }
2666
3022
  function isNumber$1(obj) {
2667
- return toStr(obj) === "[object Number]" && canTrustToString(obj);
3023
+ return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
2668
3024
  }
2669
3025
  function isBoolean$1(obj) {
2670
- return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3026
+ return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
2671
3027
  }
2672
3028
  function isSymbol(obj) {
2673
3029
  if (hasShammedSymbols) {
@@ -2703,7 +3059,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
2703
3059
  function has$3(obj, key) {
2704
3060
  return hasOwn$1.call(obj, key);
2705
3061
  }
2706
- function toStr(obj) {
3062
+ function toStr$1(obj) {
2707
3063
  return objectToString.call(obj);
2708
3064
  }
2709
3065
  function nameOf(f) {
@@ -3012,7 +3368,7 @@ var syntax = SyntaxError;
3012
3368
  var uri = URIError;
3013
3369
  var abs$1 = Math.abs;
3014
3370
  var floor$1 = Math.floor;
3015
- var max$1 = Math.max;
3371
+ var max$2 = Math.max;
3016
3372
  var min$1 = Math.min;
3017
3373
  var pow$1 = Math.pow;
3018
3374
  var round$1 = Math.round;
@@ -3141,99 +3497,78 @@ function requireObject_getPrototypeOf() {
3141
3497
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3142
3498
  return Object_getPrototypeOf;
3143
3499
  }
3144
- var implementation;
3145
- var hasRequiredImplementation;
3146
- function requireImplementation() {
3147
- if (hasRequiredImplementation) return implementation;
3148
- hasRequiredImplementation = 1;
3149
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3150
- var toStr2 = Object.prototype.toString;
3151
- var max2 = Math.max;
3152
- var funcType = "[object Function]";
3153
- var concatty = function concatty2(a, b3) {
3154
- var arr = [];
3155
- for (var i = 0; i < a.length; i += 1) {
3156
- arr[i] = a[i];
3157
- }
3158
- for (var j3 = 0; j3 < b3.length; j3 += 1) {
3159
- arr[j3 + a.length] = b3[j3];
3160
- }
3161
- return arr;
3162
- };
3163
- var slicy = function slicy2(arrLike, offset) {
3164
- var arr = [];
3165
- for (var i = offset, j3 = 0; i < arrLike.length; i += 1, j3 += 1) {
3166
- arr[j3] = arrLike[i];
3167
- }
3168
- return arr;
3169
- };
3170
- var joiny = function(arr, joiner) {
3171
- var str = "";
3172
- for (var i = 0; i < arr.length; i += 1) {
3173
- str += arr[i];
3174
- if (i + 1 < arr.length) {
3175
- str += joiner;
3176
- }
3500
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3501
+ var toStr = Object.prototype.toString;
3502
+ var max$1 = Math.max;
3503
+ var funcType = "[object Function]";
3504
+ var concatty = function concatty2(a, b3) {
3505
+ var arr = [];
3506
+ for (var i = 0; i < a.length; i += 1) {
3507
+ arr[i] = a[i];
3508
+ }
3509
+ for (var j3 = 0; j3 < b3.length; j3 += 1) {
3510
+ arr[j3 + a.length] = b3[j3];
3511
+ }
3512
+ return arr;
3513
+ };
3514
+ var slicy = function slicy2(arrLike, offset) {
3515
+ var arr = [];
3516
+ for (var i = offset, j3 = 0; i < arrLike.length; i += 1, j3 += 1) {
3517
+ arr[j3] = arrLike[i];
3518
+ }
3519
+ return arr;
3520
+ };
3521
+ var joiny = function(arr, joiner) {
3522
+ var str = "";
3523
+ for (var i = 0; i < arr.length; i += 1) {
3524
+ str += arr[i];
3525
+ if (i + 1 < arr.length) {
3526
+ str += joiner;
3177
3527
  }
3178
- return str;
3179
- };
3180
- implementation = function bind2(that) {
3181
- var target = this;
3182
- if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
3183
- throw new TypeError(ERROR_MESSAGE + target);
3184
- }
3185
- var args = slicy(arguments, 1);
3186
- var bound;
3187
- var binder = function() {
3188
- if (this instanceof bound) {
3189
- var result = target.apply(
3190
- this,
3191
- concatty(args, arguments)
3192
- );
3193
- if (Object(result) === result) {
3194
- return result;
3195
- }
3196
- return this;
3197
- }
3198
- return target.apply(
3199
- that,
3528
+ }
3529
+ return str;
3530
+ };
3531
+ var implementation$1 = function bind(that) {
3532
+ var target = this;
3533
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) {
3534
+ throw new TypeError(ERROR_MESSAGE + target);
3535
+ }
3536
+ var args = slicy(arguments, 1);
3537
+ var bound;
3538
+ var binder = function() {
3539
+ if (this instanceof bound) {
3540
+ var result = target.apply(
3541
+ this,
3200
3542
  concatty(args, arguments)
3201
3543
  );
3202
- };
3203
- var boundLength = max2(0, target.length - args.length);
3204
- var boundArgs = [];
3205
- for (var i = 0; i < boundLength; i++) {
3206
- boundArgs[i] = "$" + i;
3207
- }
3208
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3209
- if (target.prototype) {
3210
- var Empty = function Empty2() {
3211
- };
3212
- Empty.prototype = target.prototype;
3213
- bound.prototype = new Empty();
3214
- Empty.prototype = null;
3544
+ if (Object(result) === result) {
3545
+ return result;
3546
+ }
3547
+ return this;
3215
3548
  }
3216
- return bound;
3549
+ return target.apply(
3550
+ that,
3551
+ concatty(args, arguments)
3552
+ );
3217
3553
  };
3218
- return implementation;
3219
- }
3220
- var functionBind;
3221
- var hasRequiredFunctionBind;
3222
- function requireFunctionBind() {
3223
- if (hasRequiredFunctionBind) return functionBind;
3224
- hasRequiredFunctionBind = 1;
3225
- var implementation2 = requireImplementation();
3226
- functionBind = Function.prototype.bind || implementation2;
3227
- return functionBind;
3228
- }
3229
- var functionCall;
3230
- var hasRequiredFunctionCall;
3231
- function requireFunctionCall() {
3232
- if (hasRequiredFunctionCall) return functionCall;
3233
- hasRequiredFunctionCall = 1;
3234
- functionCall = Function.prototype.call;
3235
- return functionCall;
3236
- }
3554
+ var boundLength = max$1(0, target.length - args.length);
3555
+ var boundArgs = [];
3556
+ for (var i = 0; i < boundLength; i++) {
3557
+ boundArgs[i] = "$" + i;
3558
+ }
3559
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3560
+ if (target.prototype) {
3561
+ var Empty = function Empty2() {
3562
+ };
3563
+ Empty.prototype = target.prototype;
3564
+ bound.prototype = new Empty();
3565
+ Empty.prototype = null;
3566
+ }
3567
+ return bound;
3568
+ };
3569
+ var implementation = implementation$1;
3570
+ var functionBind = Function.prototype.bind || implementation;
3571
+ var functionCall = Function.prototype.call;
3237
3572
  var functionApply;
3238
3573
  var hasRequiredFunctionApply;
3239
3574
  function requireFunctionApply() {
@@ -3243,14 +3578,14 @@ function requireFunctionApply() {
3243
3578
  return functionApply;
3244
3579
  }
3245
3580
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3246
- var bind$3 = requireFunctionBind();
3581
+ var bind$3 = functionBind;
3247
3582
  var $apply$1 = requireFunctionApply();
3248
- var $call$2 = requireFunctionCall();
3583
+ var $call$2 = functionCall;
3249
3584
  var $reflectApply = reflectApply;
3250
3585
  var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
3251
- var bind$2 = requireFunctionBind();
3586
+ var bind$2 = functionBind;
3252
3587
  var $TypeError$4 = type;
3253
- var $call$1 = requireFunctionCall();
3588
+ var $call$1 = functionCall;
3254
3589
  var $actualApply = actualApply;
3255
3590
  var callBindApplyHelpers = function callBindBasic(args) {
3256
3591
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3316,8 +3651,8 @@ function requireHasown() {
3316
3651
  hasRequiredHasown = 1;
3317
3652
  var call = Function.prototype.call;
3318
3653
  var $hasOwn = Object.prototype.hasOwnProperty;
3319
- var bind2 = requireFunctionBind();
3320
- hasown = bind2.call(call, $hasOwn);
3654
+ var bind3 = functionBind;
3655
+ hasown = bind3.call(call, $hasOwn);
3321
3656
  return hasown;
3322
3657
  }
3323
3658
  var undefined$1;
@@ -3331,7 +3666,7 @@ var $TypeError$3 = type;
3331
3666
  var $URIError = uri;
3332
3667
  var abs = abs$1;
3333
3668
  var floor = floor$1;
3334
- var max = max$1;
3669
+ var max = max$2;
3335
3670
  var min = min$1;
3336
3671
  var pow = pow$1;
3337
3672
  var round = round$1;
@@ -3365,7 +3700,7 @@ var getProto = requireGetProto();
3365
3700
  var $ObjectGPO = requireObject_getPrototypeOf();
3366
3701
  var $ReflectGPO = requireReflect_getPrototypeOf();
3367
3702
  var $apply = requireFunctionApply();
3368
- var $call = requireFunctionCall();
3703
+ var $call = functionCall;
3369
3704
  var needsEval = {};
3370
3705
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3371
3706
  var INTRINSICS = {
@@ -3536,7 +3871,7 @@ var LEGACY_ALIASES = {
3536
3871
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3537
3872
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3538
3873
  };
3539
- var bind$1 = requireFunctionBind();
3874
+ var bind$1 = functionBind;
3540
3875
  var hasOwn = requireHasown();
3541
3876
  var $concat = bind$1.call($call, Array.prototype.concat);
3542
3877
  var $spliceApply = bind$1.call($apply, Array.prototype.splice);
@@ -4625,33 +4960,33 @@ var lib = {
4625
4960
  stringify: stringify2
4626
4961
  };
4627
4962
  const qs = /* @__PURE__ */ getDefaultExportFromCjs(lib);
4628
- var __defProp$w = Object.defineProperty;
4629
- var __defProps$r = Object.defineProperties;
4630
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
4631
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
4632
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
4633
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
4634
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4635
- var __spreadValues$t = (a, b3) => {
4963
+ var __defProp$x = Object.defineProperty;
4964
+ var __defProps$s = Object.defineProperties;
4965
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
4966
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
4967
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
4968
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
4969
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4970
+ var __spreadValues$u = (a, b3) => {
4636
4971
  for (var prop in b3 || (b3 = {}))
4637
- if (__hasOwnProp$t.call(b3, prop))
4638
- __defNormalProp$w(a, prop, b3[prop]);
4639
- if (__getOwnPropSymbols$t)
4640
- for (var prop of __getOwnPropSymbols$t(b3)) {
4641
- if (__propIsEnum$t.call(b3, prop))
4642
- __defNormalProp$w(a, prop, b3[prop]);
4972
+ if (__hasOwnProp$u.call(b3, prop))
4973
+ __defNormalProp$x(a, prop, b3[prop]);
4974
+ if (__getOwnPropSymbols$u)
4975
+ for (var prop of __getOwnPropSymbols$u(b3)) {
4976
+ if (__propIsEnum$u.call(b3, prop))
4977
+ __defNormalProp$x(a, prop, b3[prop]);
4643
4978
  }
4644
4979
  return a;
4645
4980
  };
4646
- var __spreadProps$r = (a, b3) => __defProps$r(a, __getOwnPropDescs$r(b3));
4647
- var __objRest$1 = (source, exclude) => {
4981
+ var __spreadProps$s = (a, b3) => __defProps$s(a, __getOwnPropDescs$s(b3));
4982
+ var __objRest = (source, exclude) => {
4648
4983
  var target = {};
4649
4984
  for (var prop in source)
4650
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
4985
+ if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
4651
4986
  target[prop] = source[prop];
4652
- if (source != null && __getOwnPropSymbols$t)
4653
- for (var prop of __getOwnPropSymbols$t(source)) {
4654
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
4987
+ if (source != null && __getOwnPropSymbols$u)
4988
+ for (var prop of __getOwnPropSymbols$u(source)) {
4989
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
4655
4990
  target[prop] = source[prop];
4656
4991
  }
4657
4992
  return target;
@@ -4694,7 +5029,7 @@ const manageAutoScrollDisable = (ctx, timeout = 500) => {
4694
5029
  return { startDisable, endDisable };
4695
5030
  };
4696
5031
  const handleNavigateTo = async (config) => {
4697
- const _a2 = config.params || {}, { url, params, delayH5 } = _a2, restOptions = __objRest$1(_a2, ["url", "params", "delayH5"]);
5032
+ const _a2 = config.params || {}, { url, params, delayH5 } = _a2, restOptions = __objRest(_a2, ["url", "params", "delayH5"]);
4698
5033
  if (delayH5 > 0) {
4699
5034
  setTimeout(() => jumpRouter(url, params, restOptions), delayH5);
4700
5035
  } else {
@@ -4720,12 +5055,12 @@ const jumpRouter = (url, params = {}, opt = {}) => {
4720
5055
  const handleSendMessage = (config, { ctx, metadata }) => {
4721
5056
  var _a2, _c;
4722
5057
  if ((_a2 = config.params) == null ? void 0 : _a2.text) {
4723
- const _b = config.params, { text } = _b, rest = __objRest$1(_b, ["text"]);
5058
+ const _b = config.params, { text } = _b, rest = __objRest(_b, ["text"]);
4724
5059
  (_c = ctx == null ? void 0 : ctx.postMessage) == null ? void 0 : _c.call(ctx, {
4725
5060
  type: "text",
4726
5061
  data: {
4727
5062
  text,
4728
- customJsonData: __spreadValues$t({
5063
+ customJsonData: __spreadValues$u({
4729
5064
  customBiz: metadata == null ? void 0 : metadata.customBiz
4730
5065
  }, rest || {})
4731
5066
  }
@@ -4748,16 +5083,16 @@ const handleUpdateLocalData = async (config, { setValues, extra }) => {
4748
5083
  const oldValue = prev == null ? void 0 : prev[key];
4749
5084
  const isOldEmpty = oldValue === void 0 || oldValue === null || oldValue === "" || typeof oldValue === "object" && Object.keys(oldValue).length === 0;
4750
5085
  if (isOldEmpty) {
4751
- return __spreadProps$r(__spreadValues$t({}, prev || {}), {
5086
+ return __spreadProps$s(__spreadValues$u({}, prev || {}), {
4752
5087
  [key]: targetValue
4753
5088
  });
4754
5089
  }
4755
5090
  if (typeof oldValue === "object" && typeof targetValue === "object" && !Array.isArray(oldValue) && !Array.isArray(targetValue) && oldValue !== null && targetValue !== null) {
4756
- return __spreadProps$r(__spreadValues$t({}, prev || {}), {
4757
- [key]: __spreadValues$t(__spreadValues$t({}, oldValue), targetValue)
5091
+ return __spreadProps$s(__spreadValues$u({}, prev || {}), {
5092
+ [key]: __spreadValues$u(__spreadValues$u({}, oldValue), targetValue)
4758
5093
  });
4759
5094
  }
4760
- return __spreadProps$r(__spreadValues$t({}, prev || {}), {
5095
+ return __spreadProps$s(__spreadValues$u({}, prev || {}), {
4761
5096
  [key]: targetValue
4762
5097
  });
4763
5098
  });
@@ -4770,7 +5105,7 @@ const handleAddLocalDataToSet = (config, { setValues }) => {
4770
5105
  if (set.indexOf(value) === -1) {
4771
5106
  set.push(value);
4772
5107
  }
4773
- return __spreadProps$r(__spreadValues$t({}, prev), { [updateKey]: set });
5108
+ return __spreadProps$s(__spreadValues$u({}, prev), { [updateKey]: set });
4774
5109
  });
4775
5110
  };
4776
5111
  const handleRemoveLocalDataToSet = (config, { setValues }) => {
@@ -4778,7 +5113,7 @@ const handleRemoveLocalDataToSet = (config, { setValues }) => {
4778
5113
  const { updateKey, value } = config.params;
4779
5114
  setValues((prev = {}) => {
4780
5115
  const set = Array.isArray(prev[updateKey]) ? [...prev[updateKey].filter((v2) => v2 !== value)] : [];
4781
- return __spreadProps$r(__spreadValues$t({}, prev), { [updateKey]: set });
5116
+ return __spreadProps$s(__spreadValues$u({}, prev), { [updateKey]: set });
4782
5117
  });
4783
5118
  };
4784
5119
  const handleToggleLocalDataToSet = (config, { setValues }) => {
@@ -4792,12 +5127,92 @@ const handleToggleLocalDataToSet = (config, { setValues }) => {
4792
5127
  } else {
4793
5128
  set.splice(valueIndex, 1);
4794
5129
  }
4795
- return __spreadProps$r(__spreadValues$t({}, prev), { [updateKey]: set });
5130
+ return __spreadProps$s(__spreadValues$u({}, prev), { [updateKey]: set });
4796
5131
  });
4797
5132
  };
5133
+ function setDeep(oldObj, patch, path) {
5134
+ if (!path || path.trim() === "") {
5135
+ return isObject$1(patch) ? __spreadValues$u(__spreadValues$u({}, oldObj), patch) : oldObj;
5136
+ }
5137
+ const keys = path.replace(/\[(\d+)\]/g, ".$1").split(".");
5138
+ function updateRecursive(current, index) {
5139
+ const key = keys[index];
5140
+ if (index === keys.length - 1) {
5141
+ if (isObject$1(current == null ? void 0 : current[key]) && isObject$1(patch)) {
5142
+ return Array.isArray(current[key]) ? [...current[key], ...patch] : __spreadValues$u(__spreadValues$u({}, current[key]), patch);
5143
+ }
5144
+ return patch;
5145
+ }
5146
+ if (!current || typeof current !== "object" || !(key in current)) {
5147
+ return current;
5148
+ }
5149
+ const isArray2 = Array.isArray(current);
5150
+ const newValue = updateRecursive(current[key], index + 1);
5151
+ if (newValue === current[key]) return current;
5152
+ if (isArray2) {
5153
+ const nextArray = [...current];
5154
+ nextArray[Number(key)] = newValue;
5155
+ return nextArray;
5156
+ } else {
5157
+ return __spreadProps$s(__spreadValues$u({}, current), {
5158
+ [key]: newValue
5159
+ });
5160
+ }
5161
+ }
5162
+ return updateRecursive(oldObj, 0);
5163
+ }
5164
+ function isObject$1(val) {
5165
+ return val !== null && typeof val === "object";
5166
+ }
4798
5167
  const handleCallApiUpdateData = (config, { onAction, commonPayload }) => {
4799
5168
  onAction == null ? void 0 : onAction({ type: config.type, payload: commonPayload });
4800
5169
  };
5170
+ const handleCallFetchUpdateData = async ({ params }, { setTemplate, setReferenceComponentList, setData }) => {
5171
+ const { url, method, body } = params;
5172
+ const res = await fetch(url, {
5173
+ method,
5174
+ body: typeof body === "undefined" || method !== "POST" ? void 0 : JSON.stringify(body),
5175
+ headers: {
5176
+ "content-type": "application/json"
5177
+ }
5178
+ });
5179
+ const json = await res.json();
5180
+ if (json) {
5181
+ if (json.code === 0 && Object.prototype.toString.call(json.data) === "[object Object]") {
5182
+ const updateData = json.data;
5183
+ if (updateData.template) {
5184
+ setTemplate((t) => updateData.template);
5185
+ }
5186
+ if (Array.isArray(updateData.referenceComponentList)) {
5187
+ setReferenceComponentList((r) => updateData.referenceComponentList);
5188
+ }
5189
+ if (updateData.data) {
5190
+ setData((d) => updateData.data);
5191
+ }
5192
+ if (Array.isArray(updateData.referenceComponentListUpdate)) {
5193
+ setReferenceComponentList((oldRC) => {
5194
+ const existComponentId = [];
5195
+ return [].concat(oldRC, updateData.referenceComponentListUpdate).reverse().filter((c) => {
5196
+ if (existComponentId.includes(c.componentId)) {
5197
+ return false;
5198
+ }
5199
+ c.componentId && existComponentId.push(c.componentId);
5200
+ return true;
5201
+ });
5202
+ });
5203
+ }
5204
+ if (updateData.dataUpdate) {
5205
+ setData(
5206
+ (oldData) => setDeep(oldData, updateData.dataUpdate, updateData.dataUpdatePath)
5207
+ );
5208
+ }
5209
+ } else {
5210
+ console.error(`请求返回异常:${JSON.stringify(json)}`);
5211
+ }
5212
+ } else {
5213
+ console.error(`请求异常:${json}`);
5214
+ }
5215
+ };
4801
5216
  const handleClickTrack = (config, { commonJsonParams }) => {
4802
5217
  var _a2;
4803
5218
  if ((_a2 = config == null ? void 0 : config.params) == null ? void 0 : _a2.eventId) ;
@@ -4819,7 +5234,7 @@ const handleShowPopup = (config, { originProps }) => {
4819
5234
  ctx.getComponent({
4820
5235
  code: (_b = config == null ? void 0 : config.params) == null ? void 0 : _b.componentCode
4821
5236
  }),
4822
- __spreadValues$t(__spreadValues$t({}, originProps), ((_c = config == null ? void 0 : config.params) == null ? void 0 : _c.params) || {}),
5237
+ __spreadValues$u(__spreadValues$u({}, originProps), ((_c = config == null ? void 0 : config.params) == null ? void 0 : _c.params) || {}),
4823
5238
  {
4824
5239
  background: "none",
4825
5240
  position: "bottom",
@@ -4838,6 +5253,7 @@ const ACTION_HANDLERS = {
4838
5253
  removeLocalDataToSet: handleRemoveLocalDataToSet,
4839
5254
  toggleLocalDataToSet: handleToggleLocalDataToSet,
4840
5255
  callApiUpdateData: handleCallApiUpdateData,
5256
+ callFetchUpdateData: handleCallFetchUpdateData,
4841
5257
  clickTrack: handleClickTrack,
4842
5258
  exposureTrack: handleExposureTrack,
4843
5259
  disableScroll: handleDisableScroll,
@@ -4846,7 +5262,16 @@ const ACTION_HANDLERS = {
4846
5262
  const SUPPORTED_ACTIONS = Object.keys(ACTION_HANDLERS);
4847
5263
  const dispatchAction = async (config, context) => {
4848
5264
  var _a2, _b, _c, _d;
4849
- const { onAction, setValues, originProps, extra, externalActions } = context;
5265
+ const {
5266
+ onAction,
5267
+ setValues,
5268
+ originProps,
5269
+ extra,
5270
+ externalActions,
5271
+ setData,
5272
+ setTemplate,
5273
+ setReferenceComponentList
5274
+ } = context;
4850
5275
  const commonPayload = {
4851
5276
  params: config.params,
4852
5277
  extra: extra == null ? void 0 : extra.payload
@@ -4875,7 +5300,10 @@ const dispatchAction = async (config, context) => {
4875
5300
  onAction,
4876
5301
  commonPayload,
4877
5302
  commonJsonParams,
4878
- originProps
5303
+ originProps,
5304
+ setData,
5305
+ setTemplate,
5306
+ setReferenceComponentList
4879
5307
  });
4880
5308
  } else {
4881
5309
  console.warn(`[ActionContext] 未找到对应的 Action 处理器: ${config.type}`);
@@ -4893,6 +5321,9 @@ const ActionProvider = ({
4893
5321
  children,
4894
5322
  onAction,
4895
5323
  setValues,
5324
+ setData,
5325
+ setTemplate,
5326
+ setReferenceComponentList,
4896
5327
  values,
4897
5328
  originProps,
4898
5329
  externalActions
@@ -4906,7 +5337,10 @@ const ActionProvider = ({
4906
5337
  setValues,
4907
5338
  originProps,
4908
5339
  extra,
4909
- externalActions
5340
+ externalActions,
5341
+ setData,
5342
+ setTemplate,
5343
+ setReferenceComponentList
4910
5344
  });
4911
5345
  },
4912
5346
  [onAction, setValues, originProps, externalActions]
@@ -4974,27 +5408,45 @@ const RenderActionWrapper = ({
4974
5408
  }
4975
5409
  return /* @__PURE__ */ jsx(Fragment, { children });
4976
5410
  };
4977
- var __defProp$v = Object.defineProperty;
4978
- var __defProps$q = Object.defineProperties;
4979
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
4980
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
4981
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
4982
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
4983
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4984
- var __spreadValues$s = (a, b3) => {
5411
+ var __defProp$w = Object.defineProperty;
5412
+ var __defProps$r = Object.defineProperties;
5413
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
5414
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
5415
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
5416
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
5417
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5418
+ var __spreadValues$t = (a, b3) => {
4985
5419
  for (var prop in b3 || (b3 = {}))
4986
- if (__hasOwnProp$s.call(b3, prop))
4987
- __defNormalProp$v(a, prop, b3[prop]);
4988
- if (__getOwnPropSymbols$s)
4989
- for (var prop of __getOwnPropSymbols$s(b3)) {
4990
- if (__propIsEnum$s.call(b3, prop))
4991
- __defNormalProp$v(a, prop, b3[prop]);
5420
+ if (__hasOwnProp$t.call(b3, prop))
5421
+ __defNormalProp$w(a, prop, b3[prop]);
5422
+ if (__getOwnPropSymbols$t)
5423
+ for (var prop of __getOwnPropSymbols$t(b3)) {
5424
+ if (__propIsEnum$t.call(b3, prop))
5425
+ __defNormalProp$w(a, prop, b3[prop]);
4992
5426
  }
4993
5427
  return a;
4994
5428
  };
4995
- var __spreadProps$q = (a, b3) => __defProps$q(a, __getOwnPropDescs$q(b3));
5429
+ var __spreadProps$r = (a, b3) => __defProps$r(a, __getOwnPropDescs$r(b3));
5430
+ function pick(obj, keys) {
5431
+ const result = {};
5432
+ keys.forEach((key) => {
5433
+ if (key in obj) {
5434
+ result[key] = obj[key];
5435
+ }
5436
+ });
5437
+ return result;
5438
+ }
5439
+ function mapToType(obj, callback) {
5440
+ const result = {};
5441
+ for (const key in obj) {
5442
+ if (Object.prototype.hasOwnProperty.call(obj, key)) {
5443
+ result[key] = callback(obj[key], key);
5444
+ }
5445
+ }
5446
+ return result;
5447
+ }
4996
5448
  const baseContainerStyle = (props, scale = 1) => {
4997
- const style = __spreadValues$s({}, (props == null ? void 0 : props.style) || {});
5449
+ const style = __spreadValues$t({}, (props == null ? void 0 : props.style) || {});
4998
5450
  return style;
4999
5451
  };
5000
5452
  const childGapStyle = (index, count, theme, gap, horizontal, scale = 1, isWrap = false) => {
@@ -5024,7 +5476,7 @@ const resolveSpace = (val, theme, scale = 1) => {
5024
5476
  }
5025
5477
  return val;
5026
5478
  };
5027
- const paddingToStyle = (padding, theme, scale = 1) => {
5479
+ const paddingLogogramToStyle = (padding, theme, scale = 1) => {
5028
5480
  if (padding == null) return {};
5029
5481
  if (typeof padding === "number" || typeof padding === "string") {
5030
5482
  return { padding: resolveSpace(padding, theme, scale) };
@@ -5067,7 +5519,7 @@ const paddingToStyle = (padding, theme, scale = 1) => {
5067
5519
  }
5068
5520
  return {};
5069
5521
  };
5070
- const marginToStyle = (margin, theme, scale = 1) => {
5522
+ const marginLogogramToStyle = (margin, theme, scale = 1) => {
5071
5523
  if (margin == null) return {};
5072
5524
  if (typeof margin === "number" || typeof margin === "string") {
5073
5525
  return { margin: resolveSpace(margin, theme, scale) };
@@ -5104,12 +5556,53 @@ const marginToStyle = (margin, theme, scale = 1) => {
5104
5556
  }
5105
5557
  return {};
5106
5558
  };
5107
- const resolvedLineHeight = (lineHeight, theme, scale = 1) => {
5559
+ const marginAndPaddingToStyle = (marginAndPadding, theme, scale = 1) => {
5560
+ const style = {};
5561
+ if (marginAndPadding.margin) {
5562
+ Object.assign(
5563
+ style,
5564
+ marginLogogramToStyle(marginAndPadding.margin, theme, scale)
5565
+ );
5566
+ }
5567
+ if (marginAndPadding.padding) {
5568
+ Object.assign(
5569
+ style,
5570
+ paddingLogogramToStyle(marginAndPadding.padding, theme, scale)
5571
+ );
5572
+ }
5573
+ Object.assign(
5574
+ style,
5575
+ mapToType(
5576
+ pick(marginAndPadding, [
5577
+ "marginBottom",
5578
+ "marginLeft",
5579
+ "marginRight",
5580
+ "marginTop",
5581
+ "paddingBottom",
5582
+ "paddingLeft",
5583
+ "paddingRight",
5584
+ "paddingTop"
5585
+ ]),
5586
+ (v2) => resolveSpace(v2, theme, scale)
5587
+ )
5588
+ );
5589
+ return style;
5590
+ };
5591
+ const resolvedLineHeight = (lineHeight, theme, scale = 1, notAddUnit = false) => {
5108
5592
  if (typeof lineHeight === "number") {
5109
- return runStyle(lineHeight, scale);
5593
+ return runStyle(lineHeight, scale, notAddUnit);
5110
5594
  }
5111
5595
  if (theme.lineHeight[lineHeight]) {
5112
- return runStyle(theme.lineHeight[lineHeight], scale);
5596
+ return runStyle(theme.lineHeight[lineHeight], scale, notAddUnit);
5597
+ }
5598
+ return lineHeight;
5599
+ };
5600
+ const resolvedFontSize = (lineHeight, theme, scale = 1, notAddUnit = false) => {
5601
+ if (typeof lineHeight === "number") {
5602
+ return runStyle(lineHeight, scale, notAddUnit);
5603
+ }
5604
+ if (theme.fontSize[lineHeight]) {
5605
+ return runStyle(theme.fontSize[lineHeight], scale, notAddUnit);
5113
5606
  }
5114
5607
  return lineHeight;
5115
5608
  };
@@ -5176,6 +5669,52 @@ const backgroundToStyle = (background, theme) => {
5176
5669
  }
5177
5670
  return style;
5178
5671
  };
5672
+ const parseLinerGradient = (linerGradient, theme) => {
5673
+ const { colors = [], angle, stops = [] } = linerGradient;
5674
+ const gradientArr = [];
5675
+ if (angle) {
5676
+ gradientArr.push(`${angle}deg`);
5677
+ }
5678
+ if (colors.length !== stops.length) {
5679
+ stops.length = 0;
5680
+ }
5681
+ colors.forEach((v2, i) => {
5682
+ gradientArr.push(
5683
+ `${resolveColor(v2, theme)}${typeof stops[i] === "number" ? " " + String(stops[i] * 100) + "%" : ""}`
5684
+ );
5685
+ });
5686
+ return `linear-gradient(${gradientArr.join(", ")})`;
5687
+ };
5688
+ const backgroundImagePositionPropsMap = {
5689
+ topLeft: "top left",
5690
+ center: "center",
5691
+ topRight: "top right",
5692
+ bottomRight: "bottom right",
5693
+ bottomLeft: "bottom left"
5694
+ };
5695
+ const backgroundImageRepeatPropsMap = {
5696
+ noRepeat: "no-repeat",
5697
+ repeat: "repeat",
5698
+ repeatX: "repeat-x",
5699
+ repeatY: "repeat-y"
5700
+ };
5701
+ const backgroundImageAndLinearGradientToStyle = (theme, backgroundImage, backgroundLinearGradient) => {
5702
+ if (!backgroundImage && !backgroundLinearGradient) return {};
5703
+ const linearGradientString = backgroundLinearGradient ? parseLinerGradient(backgroundLinearGradient, theme) : void 0;
5704
+ const backgroundImageArr = [];
5705
+ if (backgroundImage == null ? void 0 : backgroundImage.url) {
5706
+ backgroundImageArr.push(`url(${backgroundImage.url})`);
5707
+ }
5708
+ if (linearGradientString) {
5709
+ backgroundImageArr.push(linearGradientString);
5710
+ }
5711
+ return {
5712
+ backgroundImage: backgroundImageArr.join(", "),
5713
+ backgroundPosition: (backgroundImage == null ? void 0 : backgroundImage.alignment) && backgroundImagePositionPropsMap[backgroundImage.alignment] ? backgroundImagePositionPropsMap[backgroundImage.alignment] : "center",
5714
+ backgroundSize: typeof (backgroundImage == null ? void 0 : backgroundImage.objectFit) !== "string" ? "auto" : backgroundImage.objectFit === "fill" ? "100% 100%" : backgroundImage.objectFit,
5715
+ backgroundRepeat: (backgroundImage == null ? void 0 : backgroundImage.repeat) && backgroundImageRepeatPropsMap[backgroundImage.repeat] ? backgroundImageRepeatPropsMap[backgroundImage.repeat] : "no-repeat"
5716
+ };
5717
+ };
5179
5718
  const borderRadiusToStyle = (borderRadius, theme, scale = 1) => {
5180
5719
  const borderRadiusMap = (theme == null ? void 0 : theme.borderRadius) || {};
5181
5720
  const style = {};
@@ -5235,19 +5774,23 @@ const borderToStyle = (border, theme, scale = 1) => {
5235
5774
  }
5236
5775
  return style;
5237
5776
  };
5777
+ const resolveBoxShadow = ({ boxShadow }, theme, scale = 1) => {
5778
+ if (!boxShadow) return void 0;
5779
+ const { color: color2, offset = [], blurRadius = 0, spreadRadius = 0 } = boxShadow;
5780
+ const [offsetX = 0, offsetY = 0] = offset;
5781
+ return `${resolveSpace(offsetX, theme, scale)} ${resolveSpace(offsetY, theme, scale)} ${resolveSpace(blurRadius, theme, scale)} ${resolveSpace(spreadRadius, theme, scale)} ${resolveColor(color2, theme)}`;
5782
+ };
5238
5783
  const imageStyleFromProps = (props, theme, scale = 1) => {
5239
- const style = __spreadValues$s({}, borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale));
5784
+ const style = __spreadValues$t(__spreadValues$t({}, borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale)), marginAndPaddingToStyle(props, theme, scale));
5240
5785
  if (props.width != null) style.width = runStyle(props.width, scale) || "100%";
5241
5786
  if (props.height != null)
5242
5787
  style.height = runStyle(props.height, scale) || "auto";
5243
5788
  if (props.fit) style.objectFit = props.fit;
5244
- style.display = props.display || "flex";
5245
- Object.assign(style, marginToStyle(props == null ? void 0 : props.margin, theme, scale));
5246
5789
  if (props.style) Object.assign(style, props.style);
5247
5790
  return style;
5248
5791
  };
5249
5792
  const imageViewStyleFromProps = (props, theme, scale = 1) => {
5250
- const style = __spreadValues$s({
5793
+ const style = __spreadValues$t({
5251
5794
  overflow: "hidden"
5252
5795
  }, borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale));
5253
5796
  return style;
@@ -5256,9 +5799,7 @@ const fractionWidth = (percent) => ({
5256
5799
  width: percent
5257
5800
  });
5258
5801
  const buildItemContainerStyle = (index, count, theme, props, horizontal = false, scale = 1, isWrap = false) => {
5259
- const style = __spreadValues$s({
5260
- width: (props == null ? void 0 : props.flexDirection) === "row" ? "auto" : "100%",
5261
- flexDirection: props.direction || "column",
5802
+ const style = __spreadValues$t({
5262
5803
  minWidth: 0,
5263
5804
  height: "auto",
5264
5805
  boxSizing: "border-box",
@@ -5275,21 +5816,24 @@ const buildItemContainerStyle = (index, count, theme, props, horizontal = false,
5275
5816
  return style;
5276
5817
  };
5277
5818
  const buildLayoutContainerStyle = (props, direction, theme, scale = 1) => {
5278
- const style = __spreadValues$s(__spreadValues$s(__spreadValues$s(__spreadValues$s(__spreadValues$s({
5819
+ const style = __spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t({
5279
5820
  display: "flex",
5280
5821
  boxSizing: "border-box",
5281
5822
  width: runStyle(props == null ? void 0 : props.width, scale) || "100%",
5282
5823
  height: runStyle(props == null ? void 0 : props.height, scale) || "auto",
5283
5824
  position: "relative",
5284
5825
  flexDirection: direction || "column",
5285
- overflow: props.overflow || "visible"
5286
- }, justifyContentToStyle(props == null ? void 0 : props.alignItems, props == null ? void 0 : props.justifyContent)), backgroundToStyle(props == null ? void 0 : props.background, theme)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale)), borderToStyle(props == null ? void 0 : props.border, theme, scale)), baseContainerStyle(props, scale));
5287
- Object.assign(style, paddingToStyle(props == null ? void 0 : props.padding, theme, scale));
5288
- Object.assign(style, marginToStyle(props == null ? void 0 : props.margin, theme, scale));
5826
+ overflow: props.overflow || "visible",
5827
+ boxShadow: resolveBoxShadow(props, theme, scale)
5828
+ }, justifyContentToStyle(props == null ? void 0 : props.alignItems, props == null ? void 0 : props.justifyContent)), backgroundToStyle(props == null ? void 0 : props.background, theme)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale)), borderToStyle(props == null ? void 0 : props.border, theme, scale)), baseContainerStyle(props, scale)), marginAndPaddingToStyle(props, theme, scale)), backgroundImageAndLinearGradientToStyle(
5829
+ theme,
5830
+ props.backgroundImage,
5831
+ props.backgroundLinearGradient
5832
+ ));
5289
5833
  return style;
5290
5834
  };
5291
5835
  const buildAbsoluteLayoutStyle = (props, direction, theme, scale = 1) => {
5292
- const style = __spreadProps$q(__spreadValues$s(__spreadValues$s({}, buildLayoutContainerStyle(props, direction, theme, scale)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale)), {
5836
+ const style = __spreadProps$r(__spreadValues$t(__spreadValues$t({}, buildLayoutContainerStyle(props, direction, theme, scale)), borderRadiusToStyle(props == null ? void 0 : props.borderRadius, theme, scale)), {
5293
5837
  position: "absolute",
5294
5838
  zIndex: 1
5295
5839
  });
@@ -5307,17 +5851,17 @@ const buildAbsoluteLayoutStyle = (props, direction, theme, scale = 1) => {
5307
5851
  return style;
5308
5852
  };
5309
5853
  const numberTestRegexp = /^-?\d+(\.\d+)?$/;
5310
- const runStyle = (val, scale = 0.5) => {
5854
+ const runStyle = (val, scale = 0.5, notAddUnit = false) => {
5311
5855
  if (val === void 0 || val === null) return "";
5312
5856
  const parts = Array.isArray(val) ? val : String(val).trim().split(/\s+/);
5313
5857
  const final = parts.map((item) => {
5314
5858
  if (item === 0 || item === "0" || item === "0px") return "0";
5315
5859
  if (typeof item === "number") {
5316
- return `${item * scale}px`;
5860
+ return `${item * scale}${notAddUnit ? "" : "px"}`;
5317
5861
  }
5318
5862
  if (typeof item === "string") {
5319
5863
  if (!numberTestRegexp.test(item)) return item;
5320
- return `${parseFloat(item) * scale}px`;
5864
+ return `${parseFloat(item) * scale}${notAddUnit ? "" : "px"}`;
5321
5865
  }
5322
5866
  return item;
5323
5867
  }).join(" ");
@@ -5327,10 +5871,10 @@ const runStyle = (val, scale = 0.5) => {
5327
5871
  const resolveColor = (color2, theme) => {
5328
5872
  return theme.color[color2] ? theme.color[color2] : color2;
5329
5873
  };
5330
- const buildCardLayoutStyle = (props, theme, scale = 1) => {
5331
- const cardTheme = theme.components.card;
5332
- const warpStyle = __spreadValues$s(__spreadValues$s(__spreadValues$s({}, backgroundToStyle(cardTheme.wrap.background, theme)), paddingToStyle(cardTheme.wrap.padding, theme, scale)), marginToStyle(props.margin, theme, scale));
5333
- const containerStyle = __spreadValues$s(__spreadValues$s(__spreadValues$s({}, paddingToStyle(cardTheme.container.padding, theme, scale)), borderRadiusToStyle(cardTheme.container.borderRadius, theme, scale)), backgroundToStyle(cardTheme.container.background, theme));
5874
+ const buildJDHCardLayoutStyle = (props, theme, scale = 1) => {
5875
+ const cardTheme = theme.components.jdhCard;
5876
+ const warpStyle = __spreadValues$t(__spreadValues$t(__spreadValues$t({}, backgroundToStyle(cardTheme.wrap.background, theme)), paddingLogogramToStyle(cardTheme.wrap.padding, theme, scale)), marginLogogramToStyle(props.margin, theme, scale));
5877
+ const containerStyle = __spreadValues$t(__spreadValues$t(__spreadValues$t({}, paddingLogogramToStyle(cardTheme.container.padding, theme, scale)), borderRadiusToStyle(cardTheme.container.borderRadius, theme, scale)), backgroundToStyle(cardTheme.container.background, theme));
5334
5878
  const titleHeight = resolvedLineHeight(
5335
5879
  cardTheme.title.lineHeight,
5336
5880
  theme,
@@ -5343,7 +5887,7 @@ const buildCardLayoutStyle = (props, theme, scale = 1) => {
5343
5887
  height: titleHeight,
5344
5888
  overflow: "hidden"
5345
5889
  };
5346
- const titleStyle = __spreadProps$q(__spreadValues$s({}, textStyleFromTheme(theme, cardTheme.title, scale)), {
5890
+ const titleStyle = __spreadProps$r(__spreadValues$t({}, textStyleFromTheme(theme, cardTheme.title, scale)), {
5347
5891
  height: titleHeight,
5348
5892
  minHeight: 0,
5349
5893
  overflow: "hidden",
@@ -5357,7 +5901,7 @@ const buildCardLayoutStyle = (props, theme, scale = 1) => {
5357
5901
  flexShrink: 0,
5358
5902
  flexGrow: 1
5359
5903
  };
5360
- const subDescriptionStyle = __spreadProps$q(__spreadValues$s({}, textStyleFromTheme(theme, cardTheme.subDescription, scale)), {
5904
+ const subDescriptionStyle = __spreadProps$r(__spreadValues$t({}, textStyleFromTheme(theme, cardTheme.subDescription, scale)), {
5361
5905
  height: resolvedLineHeight(
5362
5906
  cardTheme.subDescription.lineHeight,
5363
5907
  theme,
@@ -5368,11 +5912,11 @@ const buildCardLayoutStyle = (props, theme, scale = 1) => {
5368
5912
  whiteSpace: "nowrap",
5369
5913
  textOverflow: "ellipsis"
5370
5914
  });
5371
- const contentStyle = __spreadValues$s({}, borderRadiusToStyle(cardTheme.content.borderRadius, theme, scale));
5915
+ const contentStyle = __spreadValues$t({}, borderRadiusToStyle(cardTheme.content.borderRadius, theme, scale));
5372
5916
  if (props.title || props.subDescription) {
5373
5917
  Object.assign(
5374
5918
  contentStyle,
5375
- marginToStyle(cardTheme.content.margin, theme, scale)
5919
+ marginLogogramToStyle(cardTheme.content.margin, theme, scale)
5376
5920
  );
5377
5921
  }
5378
5922
  return {
@@ -5386,14 +5930,15 @@ const buildCardLayoutStyle = (props, theme, scale = 1) => {
5386
5930
  contentStyle
5387
5931
  };
5388
5932
  };
5389
- const buildChoiceRenderStyle = (props, isSelected, theme, scale = 1) => {
5933
+ const buildJDHChoiceRenderStyle = (props, isSelected, theme, scale = 1) => {
5390
5934
  const { disabled = false, subDescription, layout = "inline-icon" } = props;
5391
- const choiceTheme = theme.components.choice;
5935
+ const choiceTheme = theme.components.jdhChoice;
5392
5936
  const hasSubDesc = typeof subDescription === "string";
5393
- const wrapStyle = __spreadValues$s(__spreadValues$s(__spreadValues$s({
5937
+ const wrapStyle = __spreadValues$t(__spreadValues$t(__spreadValues$t({
5938
+ flex: 1,
5394
5939
  width: layout === "image-top" ? runStyle(choiceTheme.wrap.layoutImageTopWidth, scale) : "auto",
5395
5940
  opacity: disabled ? choiceTheme.disabledOpacity : 1
5396
- }, paddingToStyle(
5941
+ }, paddingLogogramToStyle(
5397
5942
  layout === "small-inline-icon" ? choiceTheme.wrap.layoutSmallPadding : layout === "image-left" ? choiceTheme.wrap.layoutImageLeftPadding : layout === "image-top" ? choiceTheme.wrap.layoutImageTopPadding : hasSubDesc ? choiceTheme.wrap.withSubDescriptionPadding : choiceTheme.wrap.padding,
5398
5943
  theme,
5399
5944
  scale
@@ -5405,11 +5950,11 @@ const buildChoiceRenderStyle = (props, isSelected, theme, scale = 1) => {
5405
5950
  theme,
5406
5951
  scale
5407
5952
  ));
5408
- const labelLineStyle = __spreadValues$s({
5953
+ const labelLineStyle = __spreadValues$t({
5409
5954
  display: "flex",
5410
5955
  alignItems: "center",
5411
5956
  justifyContent: "center"
5412
- }, paddingToStyle(
5957
+ }, paddingLogogramToStyle(
5413
5958
  layout === "image-top" ? choiceTheme.labelLineWrap.layoutImageTopPadding : choiceTheme.labelLineWrap.padding,
5414
5959
  theme,
5415
5960
  scale
@@ -5419,7 +5964,7 @@ const buildChoiceRenderStyle = (props, isSelected, theme, scale = 1) => {
5419
5964
  lineHeight: layout === "small-inline-icon" ? choiceTheme.label.layoutSmallLineHeight : choiceTheme.label.lineHeight,
5420
5965
  color: isSelected ? choiceTheme.label.selectedColor : choiceTheme.label.color
5421
5966
  };
5422
- const labelStyle = __spreadValues$s(__spreadProps$q(__spreadValues$s({}, textStyleFromTheme(theme, labelTextOptions, scale)), {
5967
+ const labelStyle = __spreadValues$t(__spreadProps$r(__spreadValues$t({}, textStyleFromTheme(theme, labelTextOptions, scale)), {
5423
5968
  overflow: "hidden",
5424
5969
  textOverflow: "ellipsis"
5425
5970
  }), layout === "image-top" ? {
@@ -5435,7 +5980,7 @@ const buildChoiceRenderStyle = (props, isSelected, theme, scale = 1) => {
5435
5980
  whiteSpace: "nowrap",
5436
5981
  height: resolvedLineHeight(labelTextOptions.lineHeight, theme, scale)
5437
5982
  });
5438
- const subDescriptionStyle = __spreadValues$s(__spreadValues$s({
5983
+ const subDescriptionStyle = __spreadValues$t(__spreadValues$t({
5439
5984
  textAlign: "center",
5440
5985
  whiteSpace: "nowrap",
5441
5986
  overflow: "hidden",
@@ -5447,11 +5992,11 @@ const buildChoiceRenderStyle = (props, isSelected, theme, scale = 1) => {
5447
5992
  )
5448
5993
  }, textStyleFromTheme(
5449
5994
  theme,
5450
- __spreadProps$q(__spreadValues$s({}, choiceTheme.subDescription), {
5995
+ __spreadProps$r(__spreadValues$t({}, choiceTheme.subDescription), {
5451
5996
  color: isSelected ? choiceTheme.subDescription.selectedColor : choiceTheme.subDescription.color
5452
5997
  }),
5453
5998
  scale
5454
- )), marginToStyle(choiceTheme.subDescription.margin, theme, scale));
5999
+ )), marginLogogramToStyle(choiceTheme.subDescription.margin, theme, scale));
5455
6000
  const topImgSize = runStyle(choiceTheme.image.layoutImageTop.size, scale);
5456
6001
  const imgTopStyle = layout === "image-top" ? {
5457
6002
  display: "block",
@@ -5486,24 +6031,25 @@ const buildChoiceRenderStyle = (props, isSelected, theme, scale = 1) => {
5486
6031
  imgLeftStyle
5487
6032
  };
5488
6033
  };
5489
- const buildButtonRenderStyle = (props, theme, scale = 1) => {
6034
+ const buildJDHButtonRenderStyle = (props, theme, scale = 1) => {
5490
6035
  const {
5491
6036
  color: color2 = "default",
5492
6037
  size = "small",
5493
6038
  variant = "solid",
5494
6039
  disabled = false
5495
6040
  } = props;
5496
- const buttonTheme = theme.components.button;
5497
- const wrapStyle = __spreadValues$s(__spreadValues$s(__spreadValues$s(__spreadValues$s(__spreadValues$s({
6041
+ const buttonTheme = theme.components.jdhButton;
6042
+ const wrapStyle = __spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t({
5498
6043
  display: "flex",
5499
6044
  flexDirection: "row",
5500
6045
  alignItems: "center",
5501
6046
  justifyContent: "center",
6047
+ alignSelf: "center",
5502
6048
  opacity: disabled && variant !== "link" ? buttonTheme.disabledOpacity : 1
5503
6049
  }, variant !== "link" ? backgroundToStyle(
5504
6050
  buttonTheme.colorStyle[variant][color2].background,
5505
6051
  theme
5506
- ) : {}), paddingToStyle(
6052
+ ) : {}), paddingLogogramToStyle(
5507
6053
  variant === "link" ? 0 : buttonTheme.sizeStyle[size].padding,
5508
6054
  theme,
5509
6055
  scale
@@ -5532,7 +6078,7 @@ const buildButtonRenderStyle = (props, theme, scale = 1) => {
5532
6078
  theme,
5533
6079
  scale
5534
6080
  );
5535
- const iconStyle = __spreadValues$s({
6081
+ const iconStyle = __spreadValues$t({
5536
6082
  width: iconSize,
5537
6083
  height: iconSize,
5538
6084
  marginRight: runStyle(buttonTheme.image.marginRight, scale)
@@ -5549,7 +6095,7 @@ const buildButtonRenderStyle = (props, theme, scale = 1) => {
5549
6095
  arrowStyle
5550
6096
  };
5551
6097
  };
5552
- const buildInputRenderStyle = (props, theme, scale = 1) => {
6098
+ const buildJDHInputRenderStyle = (props, theme, scale = 1) => {
5553
6099
  const {
5554
6100
  readonly = false,
5555
6101
  error = false,
@@ -5557,17 +6103,17 @@ const buildInputRenderStyle = (props, theme, scale = 1) => {
5557
6103
  password = false,
5558
6104
  disabled = false
5559
6105
  } = props;
5560
- const inputTheme = theme.components.input;
5561
- const themeState = __spreadValues$s(__spreadValues$s({}, inputTheme.defaultState), readonly ? inputTheme.readonlyState : disabled ? inputTheme.disabledState : error ? inputTheme.errorState : {});
5562
- const wrapStyle = __spreadValues$s(__spreadValues$s(__spreadValues$s(__spreadValues$s({
6106
+ const inputTheme = theme.components.jdhInput;
6107
+ const themeState = __spreadValues$t(__spreadValues$t({}, inputTheme.defaultState), readonly ? inputTheme.readonlyState : disabled ? inputTheme.disabledState : error ? inputTheme.errorState : {});
6108
+ const wrapStyle = __spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t({
5563
6109
  position: "relative",
5564
6110
  opacity: themeState.opacity
5565
- }, paddingToStyle(themeState.padding, theme, scale)), borderToStyle(
6111
+ }, paddingLogogramToStyle(themeState.padding, theme, scale)), borderToStyle(
5566
6112
  { size: "1px", color: themeState.borderColor, style: "solid" },
5567
6113
  theme,
5568
6114
  scale
5569
6115
  )), backgroundToStyle(themeState.background, theme)), borderRadiusToStyle(themeState.borderRadius, theme, scale));
5570
- const inputStyle = __spreadValues$s(__spreadValues$s({
6116
+ const inputStyle = __spreadValues$t(__spreadValues$t({
5571
6117
  border: "none",
5572
6118
  width: "100%",
5573
6119
  outline: "none"
@@ -5581,7 +6127,7 @@ const buildInputRenderStyle = (props, theme, scale = 1) => {
5581
6127
  scale
5582
6128
  ));
5583
6129
  const clearButtonSize = runStyle(inputTheme.clearButton.size, scale);
5584
- const clearStyle = __spreadValues$s({
6130
+ const clearStyle = __spreadValues$t({
5585
6131
  width: clearButtonSize,
5586
6132
  height: clearButtonSize,
5587
6133
  borderRadius: "100px",
@@ -5601,7 +6147,7 @@ const buildInputRenderStyle = (props, theme, scale = 1) => {
5601
6147
  transform: "translate(-50%, -50%)"
5602
6148
  };
5603
6149
  const msgTheme = error && errorMessage ? inputTheme.errorMessage : inputTheme.subDescription;
5604
- const msgStyle = __spreadValues$s(__spreadValues$s({}, textStyleFromTheme(theme, msgTheme, scale)), marginToStyle(msgTheme.margin, theme, scale));
6150
+ const msgStyle = __spreadValues$t(__spreadValues$t({}, textStyleFromTheme(theme, msgTheme, scale)), marginLogogramToStyle(msgTheme.margin, theme, scale));
5605
6151
  const passwordIconSize = runStyle(inputTheme.passwordButton.size, scale);
5606
6152
  const passwordStyle = password ? {
5607
6153
  width: passwordIconSize,
@@ -5626,7 +6172,7 @@ const buildInputRenderStyle = (props, theme, scale = 1) => {
5626
6172
  passwordIconStyle
5627
6173
  };
5628
6174
  };
5629
- const buildTextareaRenderStyle = (props, value, theme, scale = 1) => {
6175
+ const buildJDHTextareaRenderStyle = (props, value, theme, scale = 1) => {
5630
6176
  const {
5631
6177
  readonly = false,
5632
6178
  error = false,
@@ -5634,25 +6180,26 @@ const buildTextareaRenderStyle = (props, value, theme, scale = 1) => {
5634
6180
  errorMessage,
5635
6181
  maxLength
5636
6182
  } = props;
5637
- const textareaTheme = theme.components.textarea;
5638
- const themeState = __spreadValues$s(__spreadValues$s({}, textareaTheme.defaultState), readonly ? textareaTheme.readonlyState : disabled ? textareaTheme.disabledState : error ? textareaTheme.errorState : {});
5639
- const wrapStyle = __spreadValues$s(__spreadValues$s(__spreadValues$s(__spreadValues$s({
6183
+ const textareaTheme = theme.components.jdhTextarea;
6184
+ const themeState = __spreadValues$t(__spreadValues$t({}, textareaTheme.defaultState), readonly ? textareaTheme.readonlyState : disabled ? textareaTheme.disabledState : error ? textareaTheme.errorState : {});
6185
+ const wrapStyle = __spreadValues$t(__spreadValues$t(__spreadValues$t(__spreadValues$t({
5640
6186
  position: "relative",
5641
6187
  boxSizing: "border-box",
5642
6188
  opacity: themeState.opacity,
5643
6189
  height: runStyle(themeState.minHeight, scale),
5644
6190
  maxHeight: runStyle(themeState.maxHeight, scale)
5645
- }, paddingToStyle(themeState.padding, theme, scale)), borderToStyle(
6191
+ }, paddingLogogramToStyle(themeState.padding, theme, scale)), borderToStyle(
5646
6192
  { size: "1px", color: themeState.borderColor, style: "solid" },
5647
6193
  theme,
5648
6194
  scale
5649
6195
  )), backgroundToStyle(themeState.background, theme)), borderRadiusToStyle(themeState.borderRadius, theme, scale));
5650
- const textareaStyle = __spreadValues$s(__spreadValues$s({
6196
+ const textareaStyle = __spreadValues$t(__spreadValues$t({
5651
6197
  border: "none",
5652
6198
  width: "100%",
5653
6199
  display: "block",
5654
6200
  outline: "none",
5655
- height: "100%"
6201
+ height: "100%",
6202
+ resize: "none"
5656
6203
  }, backgroundToStyle(themeState.background, theme)), textStyleFromTheme(
5657
6204
  theme,
5658
6205
  {
@@ -5663,8 +6210,8 @@ const buildTextareaRenderStyle = (props, value, theme, scale = 1) => {
5663
6210
  scale
5664
6211
  ));
5665
6212
  const msgTheme = error && errorMessage ? textareaTheme.errorMessage : textareaTheme.subDescription;
5666
- const msgStyle = __spreadValues$s(__spreadValues$s({}, textStyleFromTheme(theme, msgTheme, scale)), marginToStyle(msgTheme.margin, theme, scale));
5667
- const maxLengthTipsStyle = typeof maxLength === "number" ? __spreadValues$s({
6213
+ const msgStyle = __spreadValues$t(__spreadValues$t({}, textStyleFromTheme(theme, msgTheme, scale)), marginLogogramToStyle(msgTheme.margin, theme, scale));
6214
+ const maxLengthTipsStyle = typeof maxLength === "number" ? __spreadValues$t({
5668
6215
  position: "absolute",
5669
6216
  bottom: resolveSpace(
5670
6217
  textareaTheme.maxLengthTips.bottom,
@@ -5674,7 +6221,7 @@ const buildTextareaRenderStyle = (props, value, theme, scale = 1) => {
5674
6221
  right: resolveSpace(textareaTheme.maxLengthTips.right, theme, scale)
5675
6222
  }, textStyleFromTheme(
5676
6223
  theme,
5677
- __spreadProps$q(__spreadValues$s({}, textareaTheme.maxLengthTips), {
6224
+ __spreadProps$r(__spreadValues$t({}, textareaTheme.maxLengthTips), {
5678
6225
  color: resolveColor(
5679
6226
  value.length > maxLength ? textareaTheme.maxLengthTips.colorBeyond : textareaTheme.maxLengthTips.color,
5680
6227
  theme
@@ -5754,25 +6301,25 @@ const ResponsiveContext = createContext({
5754
6301
  containerWidth: null
5755
6302
  });
5756
6303
  const useResponsive = () => useContext(ResponsiveContext);
5757
- var __defProp$u = Object.defineProperty;
5758
- var __defProps$p = Object.defineProperties;
5759
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
5760
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
5761
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
5762
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
5763
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5764
- var __spreadValues$r = (a, b3) => {
6304
+ var __defProp$v = Object.defineProperty;
6305
+ var __defProps$q = Object.defineProperties;
6306
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
6307
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
6308
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
6309
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
6310
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6311
+ var __spreadValues$s = (a, b3) => {
5765
6312
  for (var prop in b3 || (b3 = {}))
5766
- if (__hasOwnProp$r.call(b3, prop))
5767
- __defNormalProp$u(a, prop, b3[prop]);
5768
- if (__getOwnPropSymbols$r)
5769
- for (var prop of __getOwnPropSymbols$r(b3)) {
5770
- if (__propIsEnum$r.call(b3, prop))
5771
- __defNormalProp$u(a, prop, b3[prop]);
6313
+ if (__hasOwnProp$s.call(b3, prop))
6314
+ __defNormalProp$v(a, prop, b3[prop]);
6315
+ if (__getOwnPropSymbols$s)
6316
+ for (var prop of __getOwnPropSymbols$s(b3)) {
6317
+ if (__propIsEnum$s.call(b3, prop))
6318
+ __defNormalProp$v(a, prop, b3[prop]);
5772
6319
  }
5773
6320
  return a;
5774
6321
  };
5775
- var __spreadProps$p = (a, b3) => __defProps$p(a, __getOwnPropDescs$p(b3));
6322
+ var __spreadProps$q = (a, b3) => __defProps$q(a, __getOwnPropDescs$q(b3));
5776
6323
  const FullRowLayout = ({
5777
6324
  props,
5778
6325
  children
@@ -5797,7 +6344,7 @@ const FullRowLayout = ({
5797
6344
  };
5798
6345
  return /* @__PURE__ */ jsx(
5799
6346
  "div",
5800
- __spreadProps$p(__spreadValues$r({
6347
+ __spreadProps$q(__spreadValues$s({
5801
6348
  style: containerStyle,
5802
6349
  onClick: handleClick,
5803
6350
  ref: ref2
@@ -5810,7 +6357,7 @@ const FullRowLayout = ({
5810
6357
  return /* @__PURE__ */ jsx(
5811
6358
  "div",
5812
6359
  {
5813
- style: __spreadProps$p(__spreadValues$r({}, buildItemContainerStyle(
6360
+ style: __spreadProps$q(__spreadValues$s({}, buildItemContainerStyle(
5814
6361
  idx,
5815
6362
  count,
5816
6363
  theme,
@@ -5828,25 +6375,25 @@ const FullRowLayout = ({
5828
6375
  })
5829
6376
  );
5830
6377
  };
5831
- var __defProp$t = Object.defineProperty;
5832
- var __defProps$o = Object.defineProperties;
5833
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
5834
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
5835
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
5836
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
5837
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5838
- var __spreadValues$q = (a, b3) => {
6378
+ var __defProp$u = Object.defineProperty;
6379
+ var __defProps$p = Object.defineProperties;
6380
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
6381
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
6382
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
6383
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
6384
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6385
+ var __spreadValues$r = (a, b3) => {
5839
6386
  for (var prop in b3 || (b3 = {}))
5840
- if (__hasOwnProp$q.call(b3, prop))
5841
- __defNormalProp$t(a, prop, b3[prop]);
5842
- if (__getOwnPropSymbols$q)
5843
- for (var prop of __getOwnPropSymbols$q(b3)) {
5844
- if (__propIsEnum$q.call(b3, prop))
5845
- __defNormalProp$t(a, prop, b3[prop]);
6387
+ if (__hasOwnProp$r.call(b3, prop))
6388
+ __defNormalProp$u(a, prop, b3[prop]);
6389
+ if (__getOwnPropSymbols$r)
6390
+ for (var prop of __getOwnPropSymbols$r(b3)) {
6391
+ if (__propIsEnum$r.call(b3, prop))
6392
+ __defNormalProp$u(a, prop, b3[prop]);
5846
6393
  }
5847
6394
  return a;
5848
6395
  };
5849
- var __spreadProps$o = (a, b3) => __defProps$o(a, __getOwnPropDescs$o(b3));
6396
+ var __spreadProps$p = (a, b3) => __defProps$p(a, __getOwnPropDescs$p(b3));
5850
6397
  const MultipleColumnLayout = ({
5851
6398
  props,
5852
6399
  children
@@ -5855,11 +6402,11 @@ const MultipleColumnLayout = ({
5855
6402
  const { executeActions } = useAction();
5856
6403
  const theme = useTheme();
5857
6404
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
5858
- const containerStyle = __spreadProps$o(__spreadValues$q({}, buildLayoutContainerStyle(props, "row", theme, scale)), {
6405
+ const containerStyle = __spreadProps$p(__spreadValues$r({}, buildLayoutContainerStyle(props, "row", theme, scale)), {
5859
6406
  flexWrap: (props == null ? void 0 : props.flexWrap) || "nowrap"
5860
6407
  });
5861
6408
  const itemContainerStyle = (child, idx) => {
5862
- return __spreadProps$o(__spreadValues$q({}, buildItemContainerStyle(idx, count, theme, props, true, scale, true)), {
6409
+ return __spreadProps$p(__spreadValues$r({}, buildItemContainerStyle(idx, count, theme, props, true, scale, true)), {
5863
6410
  flexShrink: itemFlexShrink(child),
5864
6411
  width: void 0
5865
6412
  });
@@ -5875,16 +6422,17 @@ const MultipleColumnLayout = ({
5875
6422
  paddingBottom: containerStyle.marginBottom
5876
6423
  };
5877
6424
  const gapMargin = `-${resolveSpace(props.gap, theme, scale)}`;
5878
- const containerStyleForGap = __spreadProps$o(__spreadValues$q({}, containerStyle), {
6425
+ const containerStyleForGap = __spreadValues$r(__spreadProps$p(__spreadValues$r({}, containerStyle), {
5879
6426
  margin: void 0,
5880
6427
  marginTop: gapMargin,
5881
6428
  marginLeft: gapMargin,
5882
6429
  marginBottom: void 0,
5883
- marginRight: void 0,
6430
+ marginRight: void 0
6431
+ }), containerStyle.width === "100%" ? {
5884
6432
  width: void 0,
5885
6433
  // 宽度 100% 和 负margin结合会在flex下有bug,这里改用flexGrow撑开宽度
5886
6434
  flexGrow: 1
5887
- });
6435
+ } : {});
5888
6436
  const items = React.Children.toArray(children);
5889
6437
  const count = items.length;
5890
6438
  const itemFlexShrink = (child) => {
@@ -5902,7 +6450,7 @@ const MultipleColumnLayout = ({
5902
6450
  // 最外层div使用padding代替原container的margin,以便container使用负margin中和gap实现的效果
5903
6451
  /* @__PURE__ */ jsx("div", { className: "for-gap-wrap", style: polyfillContainerMarginStyle, children: /* @__PURE__ */ jsx(
5904
6452
  "div",
5905
- __spreadProps$o(__spreadValues$q({
6453
+ __spreadProps$p(__spreadValues$r({
5906
6454
  className: "for-gap",
5907
6455
  style: containerStyleForGap,
5908
6456
  onClick: handleClick,
@@ -5913,6 +6461,68 @@ const MultipleColumnLayout = ({
5913
6461
  ) })
5914
6462
  );
5915
6463
  };
6464
+ var __defProp$t = Object.defineProperty;
6465
+ var __defProps$o = Object.defineProperties;
6466
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
6467
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
6468
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
6469
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
6470
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6471
+ var __spreadValues$q = (a, b3) => {
6472
+ for (var prop in b3 || (b3 = {}))
6473
+ if (__hasOwnProp$q.call(b3, prop))
6474
+ __defNormalProp$t(a, prop, b3[prop]);
6475
+ if (__getOwnPropSymbols$q)
6476
+ for (var prop of __getOwnPropSymbols$q(b3)) {
6477
+ if (__propIsEnum$q.call(b3, prop))
6478
+ __defNormalProp$t(a, prop, b3[prop]);
6479
+ }
6480
+ return a;
6481
+ };
6482
+ var __spreadProps$o = (a, b3) => __defProps$o(a, __getOwnPropDescs$o(b3));
6483
+ const TwoColumnLayout$2 = ({
6484
+ props,
6485
+ children
6486
+ }) => {
6487
+ const { scale } = useResponsive();
6488
+ const { executeActions } = useAction();
6489
+ const theme = useTheme();
6490
+ const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
6491
+ const containerStyle = buildLayoutContainerStyle(
6492
+ props,
6493
+ "row",
6494
+ theme,
6495
+ scale
6496
+ );
6497
+ const items = React.Children.toArray(children).slice(0, 2);
6498
+ const count = items.length;
6499
+ const handleClick = (e) => {
6500
+ if (props.actions) {
6501
+ void executeActions(props.actions);
6502
+ }
6503
+ onClick(e);
6504
+ };
6505
+ return /* @__PURE__ */ jsx(
6506
+ "div",
6507
+ __spreadProps$o(__spreadValues$q({
6508
+ style: containerStyle,
6509
+ onClick: handleClick,
6510
+ ref: ref2
6511
+ }, { onMouseEnter, onMouseLeave }), {
6512
+ children: items.map((child, idx) => /* @__PURE__ */ jsx(
6513
+ "div",
6514
+ {
6515
+ style: __spreadProps$o(__spreadValues$q({}, buildItemContainerStyle(idx, count, theme, props, true, scale)), {
6516
+ flex: 1
6517
+ // ...fractionWidth('50%'),
6518
+ }),
6519
+ children: child
6520
+ },
6521
+ idx
6522
+ ))
6523
+ })
6524
+ );
6525
+ };
5916
6526
  var __defProp$s = Object.defineProperty;
5917
6527
  var __defProps$n = Object.defineProperties;
5918
6528
  var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
@@ -5932,7 +6542,7 @@ var __spreadValues$p = (a, b3) => {
5932
6542
  return a;
5933
6543
  };
5934
6544
  var __spreadProps$n = (a, b3) => __defProps$n(a, __getOwnPropDescs$n(b3));
5935
- const TwoColumnLayout$2 = ({
6545
+ const ThreeColumnLayout$1 = ({
5936
6546
  props,
5937
6547
  children
5938
6548
  }) => {
@@ -5946,7 +6556,7 @@ const TwoColumnLayout$2 = ({
5946
6556
  theme,
5947
6557
  scale
5948
6558
  );
5949
- const items = React.Children.toArray(children).slice(0, 2);
6559
+ const items = React.Children.toArray(children).slice(0, 3);
5950
6560
  const count = items.length;
5951
6561
  const handleClick = (e) => {
5952
6562
  if (props.actions) {
@@ -5966,7 +6576,6 @@ const TwoColumnLayout$2 = ({
5966
6576
  {
5967
6577
  style: __spreadProps$n(__spreadValues$p({}, buildItemContainerStyle(idx, count, theme, props, true, scale)), {
5968
6578
  flex: 1
5969
- // ...fractionWidth('50%'),
5970
6579
  }),
5971
6580
  children: child
5972
6581
  },
@@ -5994,7 +6603,7 @@ var __spreadValues$o = (a, b3) => {
5994
6603
  return a;
5995
6604
  };
5996
6605
  var __spreadProps$m = (a, b3) => __defProps$m(a, __getOwnPropDescs$m(b3));
5997
- const ThreeColumnLayout$1 = ({
6606
+ const FourColumnLayout = ({
5998
6607
  props,
5999
6608
  children
6000
6609
  }) => {
@@ -6008,7 +6617,7 @@ const ThreeColumnLayout$1 = ({
6008
6617
  theme,
6009
6618
  scale
6010
6619
  );
6011
- const items = React.Children.toArray(children).slice(0, 3);
6620
+ const items = React.Children.toArray(children).slice(0, 4);
6012
6621
  const count = items.length;
6013
6622
  const handleClick = (e) => {
6014
6623
  if (props.actions) {
@@ -6026,9 +6635,7 @@ const ThreeColumnLayout$1 = ({
6026
6635
  children: items.map((child, idx) => /* @__PURE__ */ jsx(
6027
6636
  "div",
6028
6637
  {
6029
- style: __spreadProps$m(__spreadValues$o({}, buildItemContainerStyle(idx, count, theme, props, true, scale)), {
6030
- flex: 1
6031
- }),
6638
+ style: __spreadValues$o(__spreadValues$o({}, fractionWidth("25%")), buildItemContainerStyle(idx, count, theme, props, true, scale)),
6032
6639
  children: child
6033
6640
  },
6034
6641
  idx
@@ -6055,7 +6662,7 @@ var __spreadValues$n = (a, b3) => {
6055
6662
  return a;
6056
6663
  };
6057
6664
  var __spreadProps$l = (a, b3) => __defProps$l(a, __getOwnPropDescs$l(b3));
6058
- const FourColumnLayout = ({
6665
+ const TwoColumnLayout$1 = ({
6059
6666
  props,
6060
6667
  children
6061
6668
  }) => {
@@ -6069,7 +6676,7 @@ const FourColumnLayout = ({
6069
6676
  theme,
6070
6677
  scale
6071
6678
  );
6072
- const items = React.Children.toArray(children).slice(0, 4);
6679
+ const items = React.Children.toArray(children).slice(0, 2);
6073
6680
  const count = items.length;
6074
6681
  const handleClick = (e) => {
6075
6682
  if (props.actions) {
@@ -6080,14 +6687,20 @@ const FourColumnLayout = ({
6080
6687
  return /* @__PURE__ */ jsx(
6081
6688
  "div",
6082
6689
  __spreadProps$l(__spreadValues$n({
6083
- style: containerStyle,
6690
+ style: __spreadProps$l(__spreadValues$n({}, containerStyle), {
6691
+ width: "100%"
6692
+ }),
6084
6693
  onClick: handleClick,
6085
6694
  ref: ref2
6086
6695
  }, { onMouseEnter, onMouseLeave }), {
6087
6696
  children: items.map((child, idx) => /* @__PURE__ */ jsx(
6088
6697
  "div",
6089
6698
  {
6090
- style: __spreadValues$n(__spreadValues$n({}, fractionWidth("25%")), buildItemContainerStyle(idx, count, theme, props, true, scale)),
6699
+ style: __spreadProps$l(__spreadValues$n({}, buildItemContainerStyle(idx, count, theme, props, true, scale)), {
6700
+ flex: idx === 0 ? 1 : "initial",
6701
+ width: idx === 1 ? runStyle(props.rightWidth, scale) : "auto",
6702
+ flexDirection: "row"
6703
+ }),
6091
6704
  children: child
6092
6705
  },
6093
6706
  idx
@@ -6114,7 +6727,7 @@ var __spreadValues$m = (a, b3) => {
6114
6727
  return a;
6115
6728
  };
6116
6729
  var __spreadProps$k = (a, b3) => __defProps$k(a, __getOwnPropDescs$k(b3));
6117
- const TwoColumnLayout$1 = ({
6730
+ const TwoColumnLayout = ({
6118
6731
  props,
6119
6732
  children
6120
6733
  }) => {
@@ -6139,9 +6752,7 @@ const TwoColumnLayout$1 = ({
6139
6752
  return /* @__PURE__ */ jsx(
6140
6753
  "div",
6141
6754
  __spreadProps$k(__spreadValues$m({
6142
- style: __spreadProps$k(__spreadValues$m({}, containerStyle), {
6143
- width: "100%"
6144
- }),
6755
+ style: containerStyle,
6145
6756
  onClick: handleClick,
6146
6757
  ref: ref2
6147
6758
  }, { onMouseEnter, onMouseLeave }), {
@@ -6149,8 +6760,8 @@ const TwoColumnLayout$1 = ({
6149
6760
  "div",
6150
6761
  {
6151
6762
  style: __spreadProps$k(__spreadValues$m({}, buildItemContainerStyle(idx, count, theme, props, true, scale)), {
6152
- flex: idx === 0 ? 1 : "initial",
6153
- width: idx === 1 ? runStyle(props.rightWidth, scale) : "auto",
6763
+ flex: idx === 1 ? 1 : "initial",
6764
+ width: idx === 0 ? runStyle(props == null ? void 0 : props.leftWidth) : "auto",
6154
6765
  flexDirection: "row"
6155
6766
  }),
6156
6767
  children: child
@@ -6179,7 +6790,7 @@ var __spreadValues$l = (a, b3) => {
6179
6790
  return a;
6180
6791
  };
6181
6792
  var __spreadProps$j = (a, b3) => __defProps$j(a, __getOwnPropDescs$j(b3));
6182
- const TwoColumnLayout = ({
6793
+ const ThreeColumnLayout = ({
6183
6794
  props,
6184
6795
  children
6185
6796
  }) => {
@@ -6193,7 +6804,7 @@ const TwoColumnLayout = ({
6193
6804
  theme,
6194
6805
  scale
6195
6806
  );
6196
- const items = React.Children.toArray(children).slice(0, 2);
6807
+ const items = React.Children.toArray(children).slice(0, 3);
6197
6808
  const count = items.length;
6198
6809
  const handleClick = (e) => {
6199
6810
  if (props.actions) {
@@ -6213,7 +6824,6 @@ const TwoColumnLayout = ({
6213
6824
  {
6214
6825
  style: __spreadProps$j(__spreadValues$l({}, buildItemContainerStyle(idx, count, theme, props, true, scale)), {
6215
6826
  flex: idx === 1 ? 1 : "initial",
6216
- width: idx === 0 ? runStyle(props == null ? void 0 : props.leftWidth) : "auto",
6217
6827
  flexDirection: "row"
6218
6828
  }),
6219
6829
  children: child
@@ -6242,43 +6852,47 @@ var __spreadValues$k = (a, b3) => {
6242
6852
  return a;
6243
6853
  };
6244
6854
  var __spreadProps$i = (a, b3) => __defProps$i(a, __getOwnPropDescs$i(b3));
6245
- const ThreeColumnLayout = ({
6855
+ const AbsoluteViewLayout = ({
6246
6856
  props,
6247
6857
  children
6248
6858
  }) => {
6249
6859
  const { scale } = useResponsive();
6250
6860
  const { executeActions } = useAction();
6861
+ const handleClick = (e) => {
6862
+ if (props.actions) {
6863
+ void executeActions(props.actions);
6864
+ }
6865
+ onClick(e);
6866
+ };
6251
6867
  const theme = useTheme();
6252
6868
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
6253
- const containerStyle = buildLayoutContainerStyle(
6869
+ const absoluteContainerStyle = buildAbsoluteLayoutStyle(
6254
6870
  props,
6255
- "row",
6871
+ "column",
6256
6872
  theme,
6257
6873
  scale
6258
6874
  );
6259
- const items = React.Children.toArray(children).slice(0, 3);
6875
+ const items = React.Children.toArray(children);
6260
6876
  const count = items.length;
6261
- const handleClick = (e) => {
6262
- if (props.actions) {
6263
- void executeActions(props.actions);
6264
- }
6265
- onClick(e);
6266
- };
6267
6877
  return /* @__PURE__ */ jsx(
6268
6878
  "div",
6269
6879
  __spreadProps$i(__spreadValues$k({
6270
- style: containerStyle,
6880
+ style: absoluteContainerStyle,
6271
6881
  onClick: handleClick,
6272
6882
  ref: ref2
6273
6883
  }, { onMouseEnter, onMouseLeave }), {
6274
6884
  children: items.map((child, idx) => /* @__PURE__ */ jsx(
6275
6885
  "div",
6276
6886
  {
6277
- style: __spreadProps$i(__spreadValues$k({}, buildItemContainerStyle(idx, count, theme, props, true, scale)), {
6278
- flex: idx === 1 ? 1 : "initial",
6279
- flexDirection: "row"
6280
- }),
6281
- children: child
6887
+ style: buildItemContainerStyle(
6888
+ idx,
6889
+ count,
6890
+ theme,
6891
+ props,
6892
+ false,
6893
+ scale
6894
+ ),
6895
+ children: child
6282
6896
  },
6283
6897
  idx
6284
6898
  ))
@@ -6304,7 +6918,7 @@ var __spreadValues$j = (a, b3) => {
6304
6918
  return a;
6305
6919
  };
6306
6920
  var __spreadProps$h = (a, b3) => __defProps$h(a, __getOwnPropDescs$h(b3));
6307
- const AbsoluteViewLayout = ({
6921
+ const AnimationLayout = ({
6308
6922
  props,
6309
6923
  children
6310
6924
  }) => {
@@ -6318,7 +6932,7 @@ const AbsoluteViewLayout = ({
6318
6932
  };
6319
6933
  const theme = useTheme();
6320
6934
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
6321
- const absoluteContainerStyle = buildAbsoluteLayoutStyle(
6935
+ const containerStyle = buildLayoutContainerStyle(
6322
6936
  props,
6323
6937
  "column",
6324
6938
  theme,
@@ -6329,7 +6943,7 @@ const AbsoluteViewLayout = ({
6329
6943
  return /* @__PURE__ */ jsx(
6330
6944
  "div",
6331
6945
  __spreadProps$h(__spreadValues$j({
6332
- style: absoluteContainerStyle,
6946
+ style: containerStyle,
6333
6947
  onClick: handleClick,
6334
6948
  ref: ref2
6335
6949
  }, { onMouseEnter, onMouseLeave }), {
@@ -6370,72 +6984,6 @@ var __spreadValues$i = (a, b3) => {
6370
6984
  return a;
6371
6985
  };
6372
6986
  var __spreadProps$g = (a, b3) => __defProps$g(a, __getOwnPropDescs$g(b3));
6373
- const AnimationLayout = ({
6374
- props,
6375
- children
6376
- }) => {
6377
- const { scale } = useResponsive();
6378
- const { executeActions } = useAction();
6379
- const handleClick = (e) => {
6380
- if (props.actions) {
6381
- void executeActions(props.actions);
6382
- }
6383
- onClick(e);
6384
- };
6385
- const theme = useTheme();
6386
- const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
6387
- const containerStyle = buildLayoutContainerStyle(
6388
- props,
6389
- "column",
6390
- theme,
6391
- scale
6392
- );
6393
- const items = React.Children.toArray(children);
6394
- const count = items.length;
6395
- return /* @__PURE__ */ jsx(
6396
- "div",
6397
- __spreadProps$g(__spreadValues$i({
6398
- style: containerStyle,
6399
- onClick: handleClick,
6400
- ref: ref2
6401
- }, { onMouseEnter, onMouseLeave }), {
6402
- children: items.map((child, idx) => /* @__PURE__ */ jsx(
6403
- "div",
6404
- {
6405
- style: buildItemContainerStyle(
6406
- idx,
6407
- count,
6408
- theme,
6409
- props,
6410
- false,
6411
- scale
6412
- ),
6413
- children: child
6414
- },
6415
- idx
6416
- ))
6417
- })
6418
- );
6419
- };
6420
- var __defProp$k = Object.defineProperty;
6421
- var __defProps$f = Object.defineProperties;
6422
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
6423
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
6424
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
6425
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
6426
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6427
- var __spreadValues$h = (a, b3) => {
6428
- for (var prop in b3 || (b3 = {}))
6429
- if (__hasOwnProp$h.call(b3, prop))
6430
- __defNormalProp$k(a, prop, b3[prop]);
6431
- if (__getOwnPropSymbols$h)
6432
- for (var prop of __getOwnPropSymbols$h(b3)) {
6433
- if (__propIsEnum$h.call(b3, prop))
6434
- __defNormalProp$k(a, prop, b3[prop]);
6435
- }
6436
- return a;
6437
- };
6438
- var __spreadProps$f = (a, b3) => __defProps$f(a, __getOwnPropDescs$f(b3));
6439
6987
  const ScrollViewLayout = ({
6440
6988
  props,
6441
6989
  children
@@ -6460,7 +7008,7 @@ const ScrollViewLayout = ({
6460
7008
  return /* @__PURE__ */ jsx(
6461
7009
  "div",
6462
7010
  {
6463
- style: __spreadProps$f(__spreadValues$h({}, containerStyle), {
7011
+ style: __spreadProps$g(__spreadValues$i({}, containerStyle), {
6464
7012
  width: (customProps == null ? void 0 : customProps.width) || "100%",
6465
7013
  height: (customProps == null ? void 0 : customProps.height) || "auto",
6466
7014
  whiteSpace: scrollX ? "nowrap" : "normal",
@@ -6471,7 +7019,7 @@ const ScrollViewLayout = ({
6471
7019
  onClick: handleClick,
6472
7020
  children: /* @__PURE__ */ jsx(
6473
7021
  "div",
6474
- __spreadProps$f(__spreadValues$h({
7022
+ __spreadProps$g(__spreadValues$i({
6475
7023
  style: {
6476
7024
  display: "flex",
6477
7025
  flexDirection: scrollX ? "row" : "column",
@@ -6540,26 +7088,26 @@ const CustomLayout = ({
6540
7088
  }
6541
7089
  );
6542
7090
  };
6543
- var __defProp$j = Object.defineProperty;
6544
- var __defProps$e = Object.defineProperties;
6545
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
6546
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
6547
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
6548
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
6549
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6550
- var __spreadValues$g = (a, b3) => {
7091
+ var __defProp$k = Object.defineProperty;
7092
+ var __defProps$f = Object.defineProperties;
7093
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
7094
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
7095
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
7096
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
7097
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7098
+ var __spreadValues$h = (a, b3) => {
6551
7099
  for (var prop in b3 || (b3 = {}))
6552
- if (__hasOwnProp$g.call(b3, prop))
6553
- __defNormalProp$j(a, prop, b3[prop]);
6554
- if (__getOwnPropSymbols$g)
6555
- for (var prop of __getOwnPropSymbols$g(b3)) {
6556
- if (__propIsEnum$g.call(b3, prop))
6557
- __defNormalProp$j(a, prop, b3[prop]);
7100
+ if (__hasOwnProp$h.call(b3, prop))
7101
+ __defNormalProp$k(a, prop, b3[prop]);
7102
+ if (__getOwnPropSymbols$h)
7103
+ for (var prop of __getOwnPropSymbols$h(b3)) {
7104
+ if (__propIsEnum$h.call(b3, prop))
7105
+ __defNormalProp$k(a, prop, b3[prop]);
6558
7106
  }
6559
7107
  return a;
6560
7108
  };
6561
- var __spreadProps$e = (a, b3) => __defProps$e(a, __getOwnPropDescs$e(b3));
6562
- const CardLayout = ({
7109
+ var __spreadProps$f = (a, b3) => __defProps$f(a, __getOwnPropDescs$f(b3));
7110
+ const JDHCardLayout = ({
6563
7111
  props,
6564
7112
  children,
6565
7113
  slot = {}
@@ -6569,13 +7117,13 @@ const CardLayout = ({
6569
7117
  const { scale } = useResponsive();
6570
7118
  const theme = useTheme();
6571
7119
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
6572
- const cardStyle = buildCardLayoutStyle(props, theme, scale);
7120
+ const cardStyle = buildJDHCardLayoutStyle(props, theme, scale);
6573
7121
  const handleClick = (e) => {
6574
7122
  onClick(e);
6575
7123
  };
6576
7124
  return /* @__PURE__ */ jsx(
6577
7125
  "div",
6578
- __spreadProps$e(__spreadValues$g({
7126
+ __spreadProps$f(__spreadValues$h({
6579
7127
  style: cardStyle.warpStyle,
6580
7128
  className: "card-wrap",
6581
7129
  onClick: handleClick,
@@ -6647,25 +7195,25 @@ const ResponsiveTwoColumnLayout = ({ props, children }) => {
6647
7195
  const useTwoColumn = containerWidth === null || containerWidth > minWidthFowTwoColumn * scale;
6648
7196
  return useTwoColumn ? /* @__PURE__ */ jsx(TwoColumnLayout$2, { props, children }) : /* @__PURE__ */ jsx(FullRowLayout, { props, children });
6649
7197
  };
6650
- var __defProp$i = Object.defineProperty;
6651
- var __defProps$d = Object.defineProperties;
6652
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
6653
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
6654
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
6655
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
6656
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6657
- var __spreadValues$f = (a, b3) => {
7198
+ var __defProp$j = Object.defineProperty;
7199
+ var __defProps$e = Object.defineProperties;
7200
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
7201
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
7202
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
7203
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
7204
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7205
+ var __spreadValues$g = (a, b3) => {
6658
7206
  for (var prop in b3 || (b3 = {}))
6659
- if (__hasOwnProp$f.call(b3, prop))
6660
- __defNormalProp$i(a, prop, b3[prop]);
6661
- if (__getOwnPropSymbols$f)
6662
- for (var prop of __getOwnPropSymbols$f(b3)) {
6663
- if (__propIsEnum$f.call(b3, prop))
6664
- __defNormalProp$i(a, prop, b3[prop]);
7207
+ if (__hasOwnProp$g.call(b3, prop))
7208
+ __defNormalProp$j(a, prop, b3[prop]);
7209
+ if (__getOwnPropSymbols$g)
7210
+ for (var prop of __getOwnPropSymbols$g(b3)) {
7211
+ if (__propIsEnum$g.call(b3, prop))
7212
+ __defNormalProp$j(a, prop, b3[prop]);
6665
7213
  }
6666
7214
  return a;
6667
7215
  };
6668
- var __spreadProps$d = (a, b3) => __defProps$d(a, __getOwnPropDescs$d(b3));
7216
+ var __spreadProps$e = (a, b3) => __defProps$e(a, __getOwnPropDescs$e(b3));
6669
7217
  const LayoutWrapper = ({
6670
7218
  node,
6671
7219
  originProps,
@@ -6690,7 +7238,7 @@ const LayoutWrapper = ({
6690
7238
  case "full-row":
6691
7239
  return /* @__PURE__ */ jsx(FullRowLayout, { props: layoutProps, children });
6692
7240
  case "multiple-column":
6693
- return /* @__PURE__ */ jsx(MultipleColumnLayout, __spreadProps$d(__spreadValues$f({ props: layoutProps }, { originProps }), { children }));
7241
+ return /* @__PURE__ */ jsx(MultipleColumnLayout, __spreadProps$e(__spreadValues$g({ props: layoutProps }, { originProps }), { children }));
6694
7242
  case "two-column":
6695
7243
  return /* @__PURE__ */ jsx(TwoColumnLayout$2, { props: layoutProps, children });
6696
7244
  case "three-column":
@@ -6708,9 +7256,9 @@ const LayoutWrapper = ({
6708
7256
  case "animation-layout":
6709
7257
  return /* @__PURE__ */ jsx(AnimationLayout, { props: layoutProps, children });
6710
7258
  case "scroll-view":
6711
- return /* @__PURE__ */ jsx(ScrollViewLayout, __spreadProps$d(__spreadValues$f({}, node), { children }));
6712
- case "card":
6713
- return /* @__PURE__ */ jsx(CardLayout, { props: layoutProps, slot, children });
7259
+ return /* @__PURE__ */ jsx(ScrollViewLayout, __spreadProps$e(__spreadValues$g({}, node), { children }));
7260
+ case "jdh-card":
7261
+ return /* @__PURE__ */ jsx(JDHCardLayout, { props: layoutProps, slot, children });
6714
7262
  case "responsive-two-column":
6715
7263
  return /* @__PURE__ */ jsx(ResponsiveTwoColumnLayout, { props: layoutProps, children });
6716
7264
  default:
@@ -6740,31 +7288,42 @@ const makeOnChange = (name, onChange) => (eOrValue) => {
6740
7288
  const value = normalizeEventValue(eOrValue);
6741
7289
  onChange({ name, value });
6742
7290
  };
6743
- var __defProp$h = Object.defineProperty;
6744
- var __defProps$c = Object.defineProperties;
6745
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
6746
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
6747
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
6748
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
6749
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6750
- var __spreadValues$e = (a, b3) => {
7291
+ var __defProp$i = Object.defineProperty;
7292
+ var __defProps$d = Object.defineProperties;
7293
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
7294
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
7295
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
7296
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
7297
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7298
+ var __spreadValues$f = (a, b3) => {
6751
7299
  for (var prop in b3 || (b3 = {}))
6752
- if (__hasOwnProp$e.call(b3, prop))
6753
- __defNormalProp$h(a, prop, b3[prop]);
6754
- if (__getOwnPropSymbols$e)
6755
- for (var prop of __getOwnPropSymbols$e(b3)) {
6756
- if (__propIsEnum$e.call(b3, prop))
6757
- __defNormalProp$h(a, prop, b3[prop]);
7300
+ if (__hasOwnProp$f.call(b3, prop))
7301
+ __defNormalProp$i(a, prop, b3[prop]);
7302
+ if (__getOwnPropSymbols$f)
7303
+ for (var prop of __getOwnPropSymbols$f(b3)) {
7304
+ if (__propIsEnum$f.call(b3, prop))
7305
+ __defNormalProp$i(a, prop, b3[prop]);
6758
7306
  }
6759
7307
  return a;
6760
7308
  };
6761
- var __spreadProps$c = (a, b3) => __defProps$c(a, __getOwnPropDescs$c(b3));
7309
+ var __spreadProps$d = (a, b3) => __defProps$d(a, __getOwnPropDescs$d(b3));
6762
7310
  const TextRender = (props) => {
6763
7311
  const theme = useTheme();
7312
+ const { variant = "body" } = props;
6764
7313
  const { scale } = useResponsive();
6765
7314
  const { executeActions } = useAction();
6766
7315
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
6767
- const style = textStyleFromTheme(theme, props, scale);
7316
+ const textTheme = theme.components.text;
7317
+ const textProps = __spreadValues$f(__spreadValues$f(__spreadValues$f({}, textTheme.basic), textTheme.variant[variant]), props);
7318
+ const style = __spreadValues$f(__spreadValues$f(__spreadValues$f({}, textStyleFromTheme(theme, textProps, scale)), marginAndPaddingToStyle(props, theme, scale)), typeof props.numberOfLines === "number" ? {
7319
+ display: "-webkit-box",
7320
+ webkitBoxOrient: "vertical",
7321
+ webkitLineClamp: props.numberOfLines.toString(),
7322
+ // 控制显示行数
7323
+ overflow: "hidden",
7324
+ textOverflow: "ellipsis",
7325
+ whiteSpace: "normal"
7326
+ } : {});
6768
7327
  const handleClick = (e) => {
6769
7328
  if (props.actions) {
6770
7329
  void executeActions(props.actions);
@@ -6773,7 +7332,7 @@ const TextRender = (props) => {
6773
7332
  };
6774
7333
  return /* @__PURE__ */ jsx(
6775
7334
  "span",
6776
- __spreadProps$c(__spreadValues$e({
7335
+ __spreadProps$d(__spreadValues$f({
6777
7336
  style,
6778
7337
  onClick: handleClick,
6779
7338
  ref: ref2
@@ -8084,6 +8643,24 @@ const chineseEmphasisTokenizer = {
8084
8643
  return Math.min(starIndex, underIndex);
8085
8644
  },
8086
8645
  tokenizer(src) {
8646
+ if (/^\*(?=[\d])/.test(src)) {
8647
+ const token = {
8648
+ type: "text",
8649
+ raw: "*",
8650
+ text: "*",
8651
+ escaped: false
8652
+ };
8653
+ return token;
8654
+ }
8655
+ if (/^\*[^*\n\r]+(?=\*\*)/.test(src)) {
8656
+ const token = {
8657
+ type: "text",
8658
+ raw: "*",
8659
+ text: "*",
8660
+ escaped: false
8661
+ };
8662
+ return token;
8663
+ }
8087
8664
  const match = src.match(/^(\*|_)([^\*_\n\r]+?)\1(?!\1)/);
8088
8665
  if (match) {
8089
8666
  const [raw, delimiter, text] = match;
@@ -8177,7 +8754,7 @@ const STREAM_INCOMPLETE_REGEX = {
8177
8754
  /^(\*{2,3}|_{1,3})(?!\s)(?!.*\S\1$)[^\r\n]{0,1000}$/
8178
8755
  ],
8179
8756
  list: [
8180
- /^[-+*]\s{0,3}$/,
8757
+ /^[-+*]\s{1,3}$/,
8181
8758
  /^[-+*]\s{1,3}(\*{1,3}|_{1,3})(?!\s)(?!.*\S\1$)[^\r\n]{0,1000}$/,
8182
8759
  /^[-+*]\s{1,3}\[[^\]\r\n]{0,1000}$/,
8183
8760
  /^[-+*]\s{1,3}\[[^\r\n]{0,1000}\](\([^)\r\n]{0,1000})?$/
@@ -8218,7 +8795,7 @@ const tokenRecognizerMap = {
8218
8795
  },
8219
8796
  [inteface_StreamCacheTokenType.List]: {
8220
8797
  tokenType: inteface_StreamCacheTokenType.List,
8221
- isStartOfToken: (markdown) => /^[-+*]/.test(markdown),
8798
+ isStartOfToken: (markdown) => /^[-+*]\s/.test(markdown),
8222
8799
  isStreamingValid: (markdown) => STREAM_INCOMPLETE_REGEX.list.some((re2) => re2.test(markdown))
8223
8800
  },
8224
8801
  [inteface_StreamCacheTokenType.Table]: {
@@ -8232,8 +8809,19 @@ const recognize = (cache, tokenType) => {
8232
8809
  if (!recognizer) return;
8233
8810
  const { token, pending } = cache;
8234
8811
  if (token === inteface_StreamCacheTokenType.Text && recognizer.isStartOfToken(pending)) {
8235
- cache.token = tokenType;
8236
- return;
8812
+ if (tokenType === inteface_StreamCacheTokenType.List) {
8813
+ const cm = cache.completeMarkdown;
8814
+ const lastLF = cm.lastIndexOf("\n");
8815
+ const lineStart = lastLF >= 0 ? lastLF + 1 : 0;
8816
+ const before = cm.slice(lineStart);
8817
+ if (/^ {0,3}$/.test(before)) {
8818
+ cache.token = tokenType;
8819
+ return;
8820
+ }
8821
+ } else {
8822
+ cache.token = tokenType;
8823
+ return;
8824
+ }
8237
8825
  }
8238
8826
  if (token === tokenType && !recognizer.isStreamingValid(pending)) {
8239
8827
  commitCache(cache);
@@ -8745,9 +9333,14 @@ const ListRenderer = ({ node, prevNode, nextNode, parent }) => {
8745
9333
  const { renderers } = useMarkdownContext();
8746
9334
  const { ListItemRenderer: ListItemRenderer2 } = renderers;
8747
9335
  const isOrdered = "ordered" in node ? node.ordered : false;
9336
+ const forceIndent = (prevNode == null ? void 0 : prevNode.type) === "list" && !parent && node.type === "list" && !node.ordered ? true : false;
9337
+ if (forceIndent) {
9338
+ node.indent = true;
9339
+ }
8748
9340
  const className = shared_clsx("xmd-list", {
8749
9341
  "xmd-ordered-list": isOrdered,
8750
- "xmd-bullet-list": !isOrdered
9342
+ "xmd-bullet-list": !isOrdered,
9343
+ "xmd-bullet-indent": forceIndent
8751
9344
  });
8752
9345
  const ListTag = isOrdered ? "ol" : "ul";
8753
9346
  const isNested = (parent == null ? void 0 : parent.type) === "list_item";
@@ -8777,7 +9370,7 @@ const ListItemRenderer = ({ node, index, parent }) => {
8777
9370
  const list = parent;
8778
9371
  const displayIndex = ((list == null ? void 0 : list.start) || 0) + (index || 0);
8779
9372
  const depth = (parent == null ? void 0 : parent._depth) || 1;
8780
- const isTopLevelBullet = !isOrdered && depth === 1;
9373
+ const isTopLevelBullet = !isOrdered && depth === 1 && !parent.indent;
8781
9374
  node._depth = depth;
8782
9375
  const className = shared_clsx("xmd-list-item", {
8783
9376
  "xmd-ordered-list-item": isOrdered,
@@ -8809,59 +9402,20 @@ const ListItemRenderer = ({ node, index, parent }) => {
8809
9402
  ]
8810
9403
  });
8811
9404
  };
8812
- var __defProp$g = Object.defineProperty;
8813
- var __defProps$b = Object.defineProperties;
8814
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
8815
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
8816
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
8817
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
8818
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8819
- var __spreadValues$d = (a, b3) => {
8820
- for (var prop in b3 || (b3 = {}))
8821
- if (__hasOwnProp$d.call(b3, prop))
8822
- __defNormalProp$g(a, prop, b3[prop]);
8823
- if (__getOwnPropSymbols$d)
8824
- for (var prop of __getOwnPropSymbols$d(b3)) {
8825
- if (__propIsEnum$d.call(b3, prop))
8826
- __defNormalProp$g(a, prop, b3[prop]);
8827
- }
8828
- return a;
8829
- };
8830
- var __spreadProps$b = (a, b3) => __defProps$b(a, __getOwnPropDescs$b(b3));
8831
- var __objRest = (source, exclude) => {
8832
- var target = {};
8833
- for (var prop in source)
8834
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
8835
- target[prop] = source[prop];
8836
- if (source != null && __getOwnPropSymbols$d)
8837
- for (var prop of __getOwnPropSymbols$d(source)) {
8838
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
8839
- target[prop] = source[prop];
8840
- }
8841
- return target;
8842
- };
8843
- const View = (_a2) => {
8844
- var _b = _a2, { children } = _b, props = __objRest(_b, ["children"]);
8845
- return /* @__PURE__ */ jsx("div", __spreadProps$b(__spreadValues$d({}, props), { children }));
8846
- };
8847
- const Text = (_c) => {
8848
- var _d = _c, { children } = _d, props = __objRest(_d, ["children"]);
8849
- return /* @__PURE__ */ jsx("span", __spreadProps$b(__spreadValues$d({}, props), { children }));
8850
- };
8851
9405
  const CodeRenderer = ({ node }) => {
8852
- return jsxs(View, {
9406
+ return jsxs("div", {
8853
9407
  className: "xmd-code-container",
8854
9408
  children: [
8855
- node.lang && jsx(View, {
9409
+ node.lang && jsx("div", {
8856
9410
  className: "xmd-code-header",
8857
- children: jsx(Text, {
9411
+ children: jsx("span", {
8858
9412
  className: "xmd-code-lang",
8859
9413
  children: node.lang
8860
9414
  })
8861
9415
  }),
8862
- jsx(View, {
9416
+ jsx("div", {
8863
9417
  className: "xmd-code-content",
8864
- children: jsx(Text, {
9418
+ children: jsx("span", {
8865
9419
  className: "xmd-code-text",
8866
9420
  children: node.text
8867
9421
  })
@@ -8869,6 +9423,9 @@ const CodeRenderer = ({ node }) => {
8869
9423
  ]
8870
9424
  });
8871
9425
  };
9426
+ const checkURL = (url) => {
9427
+ return /^(https?:|cmd:)\/\/|^#\S+/.test(url);
9428
+ };
8872
9429
  const Icon = React.memo((props) => {
8873
9430
  const { name = "", size, color: color2 } = props;
8874
9431
  const classNames = shared_clsx("xmdfont", `xmd-icon-${name}`);
@@ -8886,14 +9443,16 @@ const LinkRenderer = ({ node }) => {
8886
9443
  const { renderers, showLinkIcon, onLinkPress } = useMarkdownContext();
8887
9444
  const { PhrasingContentResolver: PhrasingContentResolver2 } = renderers;
8888
9445
  const { href: url } = node;
9446
+ const isURL = checkURL(url);
8889
9447
  const onPress = useCallback((e) => {
8890
9448
  e.preventDefault();
8891
- if (url) {
9449
+ if (isURL) {
8892
9450
  onLinkPress == null ? void 0 : onLinkPress(url);
8893
9451
  }
8894
9452
  }, [
8895
9453
  url,
8896
- onLinkPress
9454
+ onLinkPress,
9455
+ isURL
8897
9456
  ]);
8898
9457
  return jsxs("a", {
8899
9458
  className: "xmd-link",
@@ -8907,7 +9466,7 @@ const LinkRenderer = ({ node }) => {
8907
9466
  prevNode: index > 0 ? array[index - 1] : void 0,
8908
9467
  nextNode: index < array.length - 1 ? array[index + 1] : void 0
8909
9468
  }, index)),
8910
- showLinkIcon && jsx("span", {
9469
+ showLinkIcon && isURL && jsx("span", {
8911
9470
  className: "xmd-link-search",
8912
9471
  children: jsx(Icon, {
8913
9472
  name: "search",
@@ -9056,7 +9615,7 @@ const ImageRenderer = ({ node }) => {
9056
9615
  });
9057
9616
  };
9058
9617
  const CodespanRenderer = ({ node }) => {
9059
- return jsx(Text, {
9618
+ return jsx("span", {
9060
9619
  className: "xmd-codespan",
9061
9620
  children: node.text
9062
9621
  });
@@ -9406,7 +9965,7 @@ const defaultRenderers = {
9406
9965
  ...defaultRenderers
9407
9966
  });
9408
9967
  const pxTransform = (value) => {
9409
- return value / 2;
9968
+ return `${value / 2}px`;
9410
9969
  };
9411
9970
  const shared_pxTransform = pxTransform;
9412
9971
  const defaultTheme = {
@@ -9769,43 +10328,70 @@ const MarkdownFC = ({ content, theme, tableToolbar, styles: customStyles, showLi
9769
10328
  });
9770
10329
  };
9771
10330
  const Markdown = attachStaticMethods(MarkdownFC);
10331
+ var __defProp$h = Object.defineProperty;
10332
+ var __defProps$c = Object.defineProperties;
10333
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
10334
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
10335
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
10336
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
10337
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10338
+ var __spreadValues$e = (a, b3) => {
10339
+ for (var prop in b3 || (b3 = {}))
10340
+ if (__hasOwnProp$e.call(b3, prop))
10341
+ __defNormalProp$h(a, prop, b3[prop]);
10342
+ if (__getOwnPropSymbols$e)
10343
+ for (var prop of __getOwnPropSymbols$e(b3)) {
10344
+ if (__propIsEnum$e.call(b3, prop))
10345
+ __defNormalProp$h(a, prop, b3[prop]);
10346
+ }
10347
+ return a;
10348
+ };
10349
+ var __spreadProps$c = (a, b3) => __defProps$c(a, __getOwnPropDescs$c(b3));
9772
10350
  const MarkdownRender = (props) => {
9773
- var _a2;
9774
- useTheme();
10351
+ const theme = useTheme();
9775
10352
  const { executeActions } = useAction();
9776
- useForEditor(props);
10353
+ const { scale } = useResponsive();
10354
+ const { onClick } = useForEditor(props);
9777
10355
  const content = props.content || "";
9778
- const originProps = props.originProps || {};
9779
- return (originProps == null ? void 0 : originProps.renderMarkdown) ? (_a2 = originProps == null ? void 0 : originProps.renderMarkdown) == null ? void 0 : _a2.call(originProps, { text: content }) : /* @__PURE__ */ jsx(
9780
- Markdown,
9781
- {
9782
- content,
9783
- theme: {
9784
- line_height: 5,
9785
- text_size: 16
9786
- }
10356
+ const style = __spreadProps$c(__spreadValues$e({}, marginAndPaddingToStyle(props, theme, scale)), {
10357
+ textAlign: props.textAlign
10358
+ });
10359
+ const markdownTheme = {
10360
+ line_height: typeof props.lineHeight === "number" ? parseFloat(
10361
+ resolvedLineHeight(props.lineHeight, theme, scale, true).toString()
10362
+ ) * 2 : void 0,
10363
+ text_size: typeof props.fontSize === "number" ? parseFloat(
10364
+ resolvedFontSize(props.fontSize, theme, scale, true).toString()
10365
+ ) * 2 : void 0,
10366
+ text_color: typeof props.color === "string" ? resolveColor(props.color, theme) : void 0
10367
+ };
10368
+ const handleClick = (e) => {
10369
+ if (props == null ? void 0 : props.actions) {
10370
+ void executeActions(props.actions);
9787
10371
  }
9788
- );
10372
+ onClick(e);
10373
+ };
10374
+ return /* @__PURE__ */ jsx("div", { onClick: handleClick, className: "aui-markdown-wrap", style, children: /* @__PURE__ */ jsx(Markdown, { content, theme: markdownTheme }) });
9789
10375
  };
9790
- var __defProp$f = Object.defineProperty;
9791
- var __defProps$a = Object.defineProperties;
9792
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
9793
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
9794
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
9795
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
9796
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9797
- var __spreadValues$c = (a, b3) => {
10376
+ var __defProp$g = Object.defineProperty;
10377
+ var __defProps$b = Object.defineProperties;
10378
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
10379
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
10380
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
10381
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
10382
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10383
+ var __spreadValues$d = (a, b3) => {
9798
10384
  for (var prop in b3 || (b3 = {}))
9799
- if (__hasOwnProp$c.call(b3, prop))
9800
- __defNormalProp$f(a, prop, b3[prop]);
9801
- if (__getOwnPropSymbols$c)
9802
- for (var prop of __getOwnPropSymbols$c(b3)) {
9803
- if (__propIsEnum$c.call(b3, prop))
9804
- __defNormalProp$f(a, prop, b3[prop]);
10385
+ if (__hasOwnProp$d.call(b3, prop))
10386
+ __defNormalProp$g(a, prop, b3[prop]);
10387
+ if (__getOwnPropSymbols$d)
10388
+ for (var prop of __getOwnPropSymbols$d(b3)) {
10389
+ if (__propIsEnum$d.call(b3, prop))
10390
+ __defNormalProp$g(a, prop, b3[prop]);
9805
10391
  }
9806
10392
  return a;
9807
10393
  };
9808
- var __spreadProps$a = (a, b3) => __defProps$a(a, __getOwnPropDescs$a(b3));
10394
+ var __spreadProps$b = (a, b3) => __defProps$b(a, __getOwnPropDescs$b(b3));
9809
10395
  const ImageRender = (props) => {
9810
10396
  const theme = useTheme();
9811
10397
  const { scale } = useResponsive();
@@ -9829,7 +10415,7 @@ const ImageRender = (props) => {
9829
10415
  }
9830
10416
  };
9831
10417
  const style = imageStyleFromProps(
9832
- __spreadValues$c({
10418
+ __spreadValues$d({
9833
10419
  width: props.width,
9834
10420
  height: props.height,
9835
10421
  fit: getObjectFit(props.fit)
@@ -9837,7 +10423,7 @@ const ImageRender = (props) => {
9837
10423
  theme,
9838
10424
  scale
9839
10425
  );
9840
- const imgUrl = getImageUrl(__spreadValues$c({ url: props.src }, props));
10426
+ const imgUrl = getImageUrl(__spreadValues$d({ url: props.src }, props));
9841
10427
  const handleClick = (e) => {
9842
10428
  if (props == null ? void 0 : props.actions) {
9843
10429
  void executeActions(props.actions);
@@ -9846,7 +10432,7 @@ const ImageRender = (props) => {
9846
10432
  };
9847
10433
  return /* @__PURE__ */ jsx(
9848
10434
  "div",
9849
- __spreadProps$a(__spreadValues$c({
10435
+ __spreadProps$b(__spreadValues$d({
9850
10436
  onClick: props.actions ? handleClick : void 0,
9851
10437
  style: viewStyle,
9852
10438
  ref: ref2
@@ -9855,25 +10441,25 @@ const ImageRender = (props) => {
9855
10441
  })
9856
10442
  );
9857
10443
  };
9858
- var __defProp$e = Object.defineProperty;
9859
- var __defProps$9 = Object.defineProperties;
9860
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
9861
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
9862
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
9863
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
9864
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9865
- var __spreadValues$b = (a, b3) => {
10444
+ var __defProp$f = Object.defineProperty;
10445
+ var __defProps$a = Object.defineProperties;
10446
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
10447
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
10448
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
10449
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
10450
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10451
+ var __spreadValues$c = (a, b3) => {
9866
10452
  for (var prop in b3 || (b3 = {}))
9867
- if (__hasOwnProp$b.call(b3, prop))
9868
- __defNormalProp$e(a, prop, b3[prop]);
9869
- if (__getOwnPropSymbols$b)
9870
- for (var prop of __getOwnPropSymbols$b(b3)) {
9871
- if (__propIsEnum$b.call(b3, prop))
9872
- __defNormalProp$e(a, prop, b3[prop]);
10453
+ if (__hasOwnProp$c.call(b3, prop))
10454
+ __defNormalProp$f(a, prop, b3[prop]);
10455
+ if (__getOwnPropSymbols$c)
10456
+ for (var prop of __getOwnPropSymbols$c(b3)) {
10457
+ if (__propIsEnum$c.call(b3, prop))
10458
+ __defNormalProp$f(a, prop, b3[prop]);
9873
10459
  }
9874
10460
  return a;
9875
10461
  };
9876
- var __spreadProps$9 = (a, b3) => __defProps$9(a, __getOwnPropDescs$9(b3));
10462
+ var __spreadProps$a = (a, b3) => __defProps$a(a, __getOwnPropDescs$a(b3));
9877
10463
  const TextListRender = (props) => {
9878
10464
  const theme = useTheme();
9879
10465
  const { scale } = useResponsive();
@@ -9895,7 +10481,7 @@ const TextListRender = (props) => {
9895
10481
  };
9896
10482
  return /* @__PURE__ */ jsxs(
9897
10483
  "div",
9898
- __spreadProps$9(__spreadValues$b({
10484
+ __spreadProps$a(__spreadValues$c({
9899
10485
  style,
9900
10486
  onClick: handleContainerClick,
9901
10487
  ref: ref2
@@ -9949,25 +10535,25 @@ const TextListRender = (props) => {
9949
10535
  })
9950
10536
  );
9951
10537
  };
9952
- var __defProp$d = Object.defineProperty;
9953
- var __defProps$8 = Object.defineProperties;
9954
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
9955
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
9956
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
9957
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
9958
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9959
- var __spreadValues$a = (a, b3) => {
10538
+ var __defProp$e = Object.defineProperty;
10539
+ var __defProps$9 = Object.defineProperties;
10540
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
10541
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
10542
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
10543
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
10544
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10545
+ var __spreadValues$b = (a, b3) => {
9960
10546
  for (var prop in b3 || (b3 = {}))
9961
- if (__hasOwnProp$a.call(b3, prop))
9962
- __defNormalProp$d(a, prop, b3[prop]);
9963
- if (__getOwnPropSymbols$a)
9964
- for (var prop of __getOwnPropSymbols$a(b3)) {
9965
- if (__propIsEnum$a.call(b3, prop))
9966
- __defNormalProp$d(a, prop, b3[prop]);
10547
+ if (__hasOwnProp$b.call(b3, prop))
10548
+ __defNormalProp$e(a, prop, b3[prop]);
10549
+ if (__getOwnPropSymbols$b)
10550
+ for (var prop of __getOwnPropSymbols$b(b3)) {
10551
+ if (__propIsEnum$b.call(b3, prop))
10552
+ __defNormalProp$e(a, prop, b3[prop]);
9967
10553
  }
9968
10554
  return a;
9969
10555
  };
9970
- var __spreadProps$8 = (a, b3) => __defProps$8(a, __getOwnPropDescs$8(b3));
10556
+ var __spreadProps$9 = (a, b3) => __defProps$9(a, __getOwnPropDescs$9(b3));
9971
10557
  const CustomRenderFromIM = (props) => {
9972
10558
  const { executeActions, getLocalData } = useAction();
9973
10559
  const { originProps } = props;
@@ -10000,32 +10586,32 @@ const CustomRenderFromIM = (props) => {
10000
10586
  },
10001
10587
  {}
10002
10588
  );
10003
- return __spreadProps$8(__spreadValues$a({}, actions), {
10589
+ return __spreadProps$9(__spreadValues$b({}, actions), {
10004
10590
  getLocalData
10005
10591
  });
10006
10592
  }, [executeActions, getLocalData]);
10007
10593
  if (!CustomComp)
10008
10594
  return /* @__PURE__ */ jsx(UnknownRenderer, { type: props == null ? void 0 : props.customCode, prefix: "渲染类型错误" });
10009
10595
  if (React.isValidElement(CustomComp)) {
10010
- return React.cloneElement(CustomComp, __spreadProps$8(__spreadValues$a(__spreadValues$a(__spreadValues$a({}, (CustomComp == null ? void 0 : CustomComp.props) || {}), originProps), props), {
10596
+ return React.cloneElement(CustomComp, __spreadProps$9(__spreadValues$b(__spreadValues$b(__spreadValues$b({}, (CustomComp == null ? void 0 : CustomComp.props) || {}), originProps), props), {
10011
10597
  AUIActions
10012
10598
  }));
10013
10599
  }
10014
- return /* @__PURE__ */ jsx(CustomComp, __spreadProps$8(__spreadValues$a(__spreadValues$a({}, originProps), props), { AUIActions }));
10600
+ return /* @__PURE__ */ jsx(CustomComp, __spreadProps$9(__spreadValues$b(__spreadValues$b({}, originProps), props), { AUIActions }));
10015
10601
  };
10016
- var __defProp$c = Object.defineProperty;
10017
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
10018
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
10019
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
10020
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10021
- var __spreadValues$9 = (a, b3) => {
10602
+ var __defProp$d = Object.defineProperty;
10603
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
10604
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
10605
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
10606
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10607
+ var __spreadValues$a = (a, b3) => {
10022
10608
  for (var prop in b3 || (b3 = {}))
10023
- if (__hasOwnProp$9.call(b3, prop))
10024
- __defNormalProp$c(a, prop, b3[prop]);
10025
- if (__getOwnPropSymbols$9)
10026
- for (var prop of __getOwnPropSymbols$9(b3)) {
10027
- if (__propIsEnum$9.call(b3, prop))
10028
- __defNormalProp$c(a, prop, b3[prop]);
10609
+ if (__hasOwnProp$a.call(b3, prop))
10610
+ __defNormalProp$d(a, prop, b3[prop]);
10611
+ if (__getOwnPropSymbols$a)
10612
+ for (var prop of __getOwnPropSymbols$a(b3)) {
10613
+ if (__propIsEnum$a.call(b3, prop))
10614
+ __defNormalProp$d(a, prop, b3[prop]);
10029
10615
  }
10030
10616
  return a;
10031
10617
  };
@@ -10039,7 +10625,7 @@ const DividerRender = (props) => {
10039
10625
  void executeActions(props.actions);
10040
10626
  }
10041
10627
  };
10042
- const style = __spreadValues$9({
10628
+ const style = __spreadValues$a({
10043
10629
  width: "100%",
10044
10630
  height: props.height ? runStyle(props.height, scale) : "1px",
10045
10631
  backgroundColor: props.color ? ((_a2 = theme.color) == null ? void 0 : _a2[props.color]) || props.color : "#eeeeee",
@@ -10056,40 +10642,35 @@ const CustomRenderFromProps = ({ props, component }) => {
10056
10642
  const { scale } = useResponsive();
10057
10643
  const { executeActions } = useAction();
10058
10644
  const style = textStyleFromTheme(theme, props, scale);
10059
- const handleClick = (e) => {
10060
- if (props.actions) {
10061
- void executeActions(props.actions);
10062
- }
10063
- };
10064
10645
  const Component = component;
10065
10646
  return /* @__PURE__ */ jsx(
10066
10647
  Component,
10067
10648
  {
10068
10649
  compiledStyle: style,
10069
- compiledOnClick: handleClick,
10650
+ executeActions,
10070
10651
  compiledProps: props
10071
10652
  }
10072
10653
  );
10073
10654
  };
10074
- var __defProp$b = Object.defineProperty;
10075
- var __defProps$7 = Object.defineProperties;
10076
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
10077
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
10078
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
10079
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
10080
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10081
- var __spreadValues$8 = (a, b3) => {
10655
+ var __defProp$c = Object.defineProperty;
10656
+ var __defProps$8 = Object.defineProperties;
10657
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
10658
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
10659
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
10660
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
10661
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10662
+ var __spreadValues$9 = (a, b3) => {
10082
10663
  for (var prop in b3 || (b3 = {}))
10083
- if (__hasOwnProp$8.call(b3, prop))
10084
- __defNormalProp$b(a, prop, b3[prop]);
10085
- if (__getOwnPropSymbols$8)
10086
- for (var prop of __getOwnPropSymbols$8(b3)) {
10087
- if (__propIsEnum$8.call(b3, prop))
10088
- __defNormalProp$b(a, prop, b3[prop]);
10664
+ if (__hasOwnProp$9.call(b3, prop))
10665
+ __defNormalProp$c(a, prop, b3[prop]);
10666
+ if (__getOwnPropSymbols$9)
10667
+ for (var prop of __getOwnPropSymbols$9(b3)) {
10668
+ if (__propIsEnum$9.call(b3, prop))
10669
+ __defNormalProp$c(a, prop, b3[prop]);
10089
10670
  }
10090
10671
  return a;
10091
10672
  };
10092
- var __spreadProps$7 = (a, b3) => __defProps$7(a, __getOwnPropDescs$7(b3));
10673
+ var __spreadProps$8 = (a, b3) => __defProps$8(a, __getOwnPropDescs$8(b3));
10093
10674
  const ChoiceJDHRender = ({ props, values }) => {
10094
10675
  const {
10095
10676
  updateKey,
@@ -10108,7 +10689,7 @@ const ChoiceJDHRender = ({ props, values }) => {
10108
10689
  const { scale } = useResponsive();
10109
10690
  const { executeActions } = useAction();
10110
10691
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
10111
- const style = buildChoiceRenderStyle(props, isSelected, theme, scale);
10692
+ const style = buildJDHChoiceRenderStyle(props, isSelected, theme, scale);
10112
10693
  const actions = [
10113
10694
  {
10114
10695
  type: !multi ? "updateLocalData" : "toggleLocalDataToSet",
@@ -10125,7 +10706,7 @@ const ChoiceJDHRender = ({ props, values }) => {
10125
10706
  };
10126
10707
  return /* @__PURE__ */ jsxs(
10127
10708
  "div",
10128
- __spreadProps$7(__spreadValues$8({
10709
+ __spreadProps$8(__spreadValues$9({
10129
10710
  className: "choice-wrap",
10130
10711
  style: style.wrapStyle,
10131
10712
  onClick: handleClick,
@@ -10172,25 +10753,25 @@ const ChoiceJDHRender = ({ props, values }) => {
10172
10753
  })
10173
10754
  );
10174
10755
  };
10175
- var __defProp$a = Object.defineProperty;
10176
- var __defProps$6 = Object.defineProperties;
10177
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
10178
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
10179
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
10180
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
10181
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10182
- var __spreadValues$7 = (a, b3) => {
10756
+ var __defProp$b = Object.defineProperty;
10757
+ var __defProps$7 = Object.defineProperties;
10758
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
10759
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
10760
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
10761
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
10762
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10763
+ var __spreadValues$8 = (a, b3) => {
10183
10764
  for (var prop in b3 || (b3 = {}))
10184
- if (__hasOwnProp$7.call(b3, prop))
10185
- __defNormalProp$a(a, prop, b3[prop]);
10186
- if (__getOwnPropSymbols$7)
10187
- for (var prop of __getOwnPropSymbols$7(b3)) {
10188
- if (__propIsEnum$7.call(b3, prop))
10189
- __defNormalProp$a(a, prop, b3[prop]);
10765
+ if (__hasOwnProp$8.call(b3, prop))
10766
+ __defNormalProp$b(a, prop, b3[prop]);
10767
+ if (__getOwnPropSymbols$8)
10768
+ for (var prop of __getOwnPropSymbols$8(b3)) {
10769
+ if (__propIsEnum$8.call(b3, prop))
10770
+ __defNormalProp$b(a, prop, b3[prop]);
10190
10771
  }
10191
10772
  return a;
10192
10773
  };
10193
- var __spreadProps$6 = (a, b3) => __defProps$6(a, __getOwnPropDescs$6(b3));
10774
+ var __spreadProps$7 = (a, b3) => __defProps$7(a, __getOwnPropDescs$7(b3));
10194
10775
  const ButtonJDHRender = ({ props }) => {
10195
10776
  const {
10196
10777
  text,
@@ -10204,7 +10785,7 @@ const ButtonJDHRender = ({ props }) => {
10204
10785
  const { scale } = useResponsive();
10205
10786
  const { executeActions } = useAction();
10206
10787
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
10207
- const style = buildButtonRenderStyle(props, theme, scale);
10788
+ const style = buildJDHButtonRenderStyle(props, theme, scale);
10208
10789
  const handleClick = (e) => {
10209
10790
  if (!disabled) {
10210
10791
  executeActions(actions);
@@ -10213,7 +10794,7 @@ const ButtonJDHRender = ({ props }) => {
10213
10794
  };
10214
10795
  return /* @__PURE__ */ jsxs(
10215
10796
  "div",
10216
- __spreadProps$6(__spreadValues$7({
10797
+ __spreadProps$7(__spreadValues$8({
10217
10798
  className: "button-wrap",
10218
10799
  style: style.wrapStyle,
10219
10800
  onClick: handleClick,
@@ -10235,25 +10816,25 @@ const ButtonJDHRender = ({ props }) => {
10235
10816
  })
10236
10817
  );
10237
10818
  };
10238
- var __defProp$9 = Object.defineProperty;
10239
- var __defProps$5 = Object.defineProperties;
10240
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
10241
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
10242
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
10243
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
10244
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10245
- var __spreadValues$6 = (a, b3) => {
10819
+ var __defProp$a = Object.defineProperty;
10820
+ var __defProps$6 = Object.defineProperties;
10821
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
10822
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
10823
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
10824
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
10825
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10826
+ var __spreadValues$7 = (a, b3) => {
10246
10827
  for (var prop in b3 || (b3 = {}))
10247
- if (__hasOwnProp$6.call(b3, prop))
10248
- __defNormalProp$9(a, prop, b3[prop]);
10249
- if (__getOwnPropSymbols$6)
10250
- for (var prop of __getOwnPropSymbols$6(b3)) {
10251
- if (__propIsEnum$6.call(b3, prop))
10252
- __defNormalProp$9(a, prop, b3[prop]);
10828
+ if (__hasOwnProp$7.call(b3, prop))
10829
+ __defNormalProp$a(a, prop, b3[prop]);
10830
+ if (__getOwnPropSymbols$7)
10831
+ for (var prop of __getOwnPropSymbols$7(b3)) {
10832
+ if (__propIsEnum$7.call(b3, prop))
10833
+ __defNormalProp$a(a, prop, b3[prop]);
10253
10834
  }
10254
10835
  return a;
10255
10836
  };
10256
- var __spreadProps$5 = (a, b3) => __defProps$5(a, __getOwnPropDescs$5(b3));
10837
+ var __spreadProps$6 = (a, b3) => __defProps$6(a, __getOwnPropDescs$6(b3));
10257
10838
  const InputJDHRender = ({ props, value = "", onChange }) => {
10258
10839
  const {
10259
10840
  placeholder,
@@ -10268,7 +10849,7 @@ const InputJDHRender = ({ props, value = "", onChange }) => {
10268
10849
  const { scale } = useResponsive();
10269
10850
  const { executeActions } = useAction();
10270
10851
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
10271
- const style = buildInputRenderStyle(props, theme, scale);
10852
+ const style = buildJDHInputRenderStyle(props, theme, scale);
10272
10853
  const [targetValue, setTargetValue] = useState(value);
10273
10854
  const [passwordShow, setPasswordShow] = useState(false);
10274
10855
  const handleClick = useCallback((e) => {
@@ -10297,7 +10878,7 @@ const InputJDHRender = ({ props, value = "", onChange }) => {
10297
10878
  return /* @__PURE__ */ jsxs("div", { style: { width: "100%" }, children: [
10298
10879
  /* @__PURE__ */ jsxs(
10299
10880
  "div",
10300
- __spreadProps$5(__spreadValues$6({
10881
+ __spreadProps$6(__spreadValues$7({
10301
10882
  className: "aui-input-wrap",
10302
10883
  style: style.wrapStyle,
10303
10884
  onClick: handleClick,
@@ -10423,25 +11004,25 @@ const InputJDHRender = ({ props, value = "", onChange }) => {
10423
11004
  (error && !!errorMessage || !!subDescription) && /* @__PURE__ */ jsx("div", { className: "input-msg", style: style.msgStyle, children: error && !!errorMessage ? errorMessage : subDescription }, "msg")
10424
11005
  ] });
10425
11006
  };
10426
- var __defProp$8 = Object.defineProperty;
10427
- var __defProps$4 = Object.defineProperties;
10428
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
10429
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
10430
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
10431
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
10432
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10433
- var __spreadValues$5 = (a, b3) => {
11007
+ var __defProp$9 = Object.defineProperty;
11008
+ var __defProps$5 = Object.defineProperties;
11009
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
11010
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
11011
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
11012
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
11013
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11014
+ var __spreadValues$6 = (a, b3) => {
10434
11015
  for (var prop in b3 || (b3 = {}))
10435
- if (__hasOwnProp$5.call(b3, prop))
10436
- __defNormalProp$8(a, prop, b3[prop]);
10437
- if (__getOwnPropSymbols$5)
10438
- for (var prop of __getOwnPropSymbols$5(b3)) {
10439
- if (__propIsEnum$5.call(b3, prop))
10440
- __defNormalProp$8(a, prop, b3[prop]);
11016
+ if (__hasOwnProp$6.call(b3, prop))
11017
+ __defNormalProp$9(a, prop, b3[prop]);
11018
+ if (__getOwnPropSymbols$6)
11019
+ for (var prop of __getOwnPropSymbols$6(b3)) {
11020
+ if (__propIsEnum$6.call(b3, prop))
11021
+ __defNormalProp$9(a, prop, b3[prop]);
10441
11022
  }
10442
11023
  return a;
10443
11024
  };
10444
- var __spreadProps$4 = (a, b3) => __defProps$4(a, __getOwnPropDescs$4(b3));
11025
+ var __spreadProps$5 = (a, b3) => __defProps$5(a, __getOwnPropDescs$5(b3));
10445
11026
  const TextareaJDHRender = ({ props, value = "", onChange }) => {
10446
11027
  const {
10447
11028
  placeholder,
@@ -10456,7 +11037,7 @@ const TextareaJDHRender = ({ props, value = "", onChange }) => {
10456
11037
  const { scale } = useResponsive();
10457
11038
  const { executeActions } = useAction();
10458
11039
  const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
10459
- const style = buildTextareaRenderStyle(props, value, theme, scale);
11040
+ const style = buildJDHTextareaRenderStyle(props, value, theme, scale);
10460
11041
  const [targetValue, setTargetValue] = useState(value);
10461
11042
  const [passwordShow, setPasswordShow] = useState(false);
10462
11043
  const handleClick = useCallback((e) => {
@@ -10474,7 +11055,7 @@ const TextareaJDHRender = ({ props, value = "", onChange }) => {
10474
11055
  return /* @__PURE__ */ jsxs("div", { children: [
10475
11056
  /* @__PURE__ */ jsxs(
10476
11057
  "div",
10477
- __spreadProps$4(__spreadValues$5({
11058
+ __spreadProps$5(__spreadValues$6({
10478
11059
  className: "aui-textarea-wrap",
10479
11060
  style: style.wrapStyle,
10480
11061
  onClick: handleClick,
@@ -10513,6 +11094,166 @@ const TextareaJDHRender = ({ props, value = "", onChange }) => {
10513
11094
  (error && !!errorMessage || !!subDescription) && /* @__PURE__ */ jsx("div", { className: "textarea-msg", style: style.msgStyle, children: error && !!errorMessage ? errorMessage : subDescription }, "msg")
10514
11095
  ] });
10515
11096
  };
11097
+ var __defProp$8 = Object.defineProperty;
11098
+ var __defProps$4 = Object.defineProperties;
11099
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
11100
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
11101
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
11102
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
11103
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11104
+ var __spreadValues$5 = (a, b3) => {
11105
+ for (var prop in b3 || (b3 = {}))
11106
+ if (__hasOwnProp$5.call(b3, prop))
11107
+ __defNormalProp$8(a, prop, b3[prop]);
11108
+ if (__getOwnPropSymbols$5)
11109
+ for (var prop of __getOwnPropSymbols$5(b3)) {
11110
+ if (__propIsEnum$5.call(b3, prop))
11111
+ __defNormalProp$8(a, prop, b3[prop]);
11112
+ }
11113
+ return a;
11114
+ };
11115
+ var __spreadProps$4 = (a, b3) => __defProps$4(a, __getOwnPropDescs$4(b3));
11116
+ const buildColorStyle = (variant, colorType, disabled, hover, theme) => {
11117
+ const { basicColor, color: color2, disabledColor, hoverColor } = theme.components.button;
11118
+ if (disabled) {
11119
+ return {
11120
+ fontColor: disabledColor.color,
11121
+ backgroundColor: variant === "text" || variant === "link" ? disabledColor.textLinkBackground : variant === "filled" ? disabledColor.fillBackground : disabledColor.background,
11122
+ borderColor: variant === "text" || variant === "link" ? disabledColor.textLinkBackground : disabledColor.borderColor
11123
+ };
11124
+ }
11125
+ const colorTheme = __spreadValues$5(__spreadValues$5({}, basicColor), color2[colorType]);
11126
+ const fontColor = variant === "solid" ? colorTheme.color : colorTheme.background;
11127
+ const backgroundColor = variant === "solid" ? colorTheme.background : variant === "filled" ? colorTheme.fillBackground : colorTheme.color;
11128
+ const borderColor = variant === "dashed" || variant === "outlined" ? colorTheme.borderColor : variant === "solid" ? colorTheme.background : colorTheme.color;
11129
+ const result = { fontColor, backgroundColor, borderColor };
11130
+ if (hover) {
11131
+ const hoverTheme = hoverColor[colorType];
11132
+ if (variant === "solid") {
11133
+ result.backgroundColor = hoverTheme.solidBackground;
11134
+ } else if (variant === "outlined" || variant === "dashed") {
11135
+ result.fontColor = hoverTheme.outlineDashedTextColor;
11136
+ result.borderColor = hoverTheme.outlineDashedTextColor;
11137
+ } else if (variant === "link") {
11138
+ result.fontColor = hoverTheme.outlineDashedTextColor;
11139
+ } else if (variant === "text") {
11140
+ result.backgroundColor = hoverTheme.textBackground;
11141
+ } else if (variant === "filled") {
11142
+ result.backgroundColor = hoverTheme.fillBackground;
11143
+ }
11144
+ }
11145
+ return result;
11146
+ };
11147
+ const ButtonRender = ({ props }) => {
11148
+ const {
11149
+ text,
11150
+ iconSrc,
11151
+ loading = false,
11152
+ color: color2 = "default",
11153
+ size = "middle",
11154
+ actions,
11155
+ variant = "solid",
11156
+ disabled = false,
11157
+ block = false
11158
+ } = props;
11159
+ const theme = useTheme();
11160
+ const [onHover, setOnHover] = useState(false);
11161
+ const buttonTheme = theme.components.button;
11162
+ const { fontColor, backgroundColor, borderColor } = buildColorStyle(
11163
+ variant,
11164
+ color2,
11165
+ disabled,
11166
+ onHover,
11167
+ theme
11168
+ );
11169
+ const sizeTheme = __spreadValues$5(__spreadValues$5({}, buttonTheme.basicSize), buttonTheme.size[size]);
11170
+ const imageSrc = loading ? buttonTheme.loadingIcon : iconSrc;
11171
+ const { scale } = useResponsive();
11172
+ const { executeActions } = useAction();
11173
+ const { ref: ref2, onClick, onMouseEnter, onMouseLeave } = useForEditor(props);
11174
+ const wrapStyle = __spreadProps$4(__spreadValues$5(__spreadValues$5(__spreadValues$5({}, textStyleFromTheme(
11175
+ theme,
11176
+ {
11177
+ fontSize: props.fontSize ? props.fontSize : sizeTheme.fontSize,
11178
+ lineHeight: props.lineHeight ? props.lineHeight : sizeTheme.lineHeight,
11179
+ fontWeight: props.fontWeight,
11180
+ color: fontColor
11181
+ },
11182
+ scale
11183
+ )), borderRadiusToStyle(sizeTheme.borderRadius, theme, scale)), marginAndPaddingToStyle(__spreadValues$5(__spreadValues$5({}, sizeTheme), props), theme, scale)), {
11184
+ background: resolveColor(backgroundColor, theme),
11185
+ borderWidth: 1,
11186
+ borderStyle: variant === "dashed" ? "dashed" : "solid",
11187
+ borderColor: resolveColor(borderColor, theme),
11188
+ opacity: loading ? buttonTheme.loading.opacity : 1,
11189
+ cursor: disabled ? "not-allowed" : loading ? void 0 : "pointer",
11190
+ flex: block ? 1 : "initial",
11191
+ textAlign: props.textAlign || "center"
11192
+ });
11193
+ const iconSize = wrapStyle.fontSize;
11194
+ const iconStyle = __spreadValues$5(__spreadValues$5({
11195
+ width: iconSize,
11196
+ height: iconSize
11197
+ }, borderRadiusToStyle(buttonTheme.icon.borderRadius, theme, scale)), marginLogogramToStyle(buttonTheme.icon.margin, theme, scale));
11198
+ const handleClick = (e) => {
11199
+ if (!disabled || !loading) {
11200
+ executeActions(actions);
11201
+ }
11202
+ onClick(e);
11203
+ };
11204
+ const handleMouseEnter = useCallback(
11205
+ (e) => {
11206
+ setOnHover(true);
11207
+ onMouseEnter(e);
11208
+ },
11209
+ [onMouseEnter]
11210
+ );
11211
+ const handleMouseLeave = useCallback(
11212
+ (e) => {
11213
+ setOnHover(false);
11214
+ onMouseLeave(e);
11215
+ },
11216
+ [onMouseLeave]
11217
+ );
11218
+ return /* @__PURE__ */ jsxs(
11219
+ "div",
11220
+ {
11221
+ className: "button-wrap",
11222
+ style: wrapStyle,
11223
+ onClick: handleClick,
11224
+ ref: ref2,
11225
+ onMouseEnter: handleMouseEnter,
11226
+ onMouseLeave: handleMouseLeave,
11227
+ children: [
11228
+ imageSrc && /* @__PURE__ */ jsx(
11229
+ "img",
11230
+ {
11231
+ style: iconStyle,
11232
+ className: `button-icon ${loading ? "aui-button-loading" : ""}`,
11233
+ src: imageSrc
11234
+ }
11235
+ ),
11236
+ !imageSrc && loading && /* @__PURE__ */ jsx(
11237
+ "svg",
11238
+ {
11239
+ viewBox: "0 0 1024 1024",
11240
+ focusable: "false",
11241
+ "data-icon": "loading",
11242
+ style: __spreadProps$4(__spreadValues$5({}, marginLogogramToStyle(buttonTheme.icon.margin, theme, scale)), {
11243
+ width: iconSize,
11244
+ height: iconSize,
11245
+ fill: wrapStyle.color
11246
+ }),
11247
+ className: "aui-button-loading",
11248
+ "aria-hidden": "true",
11249
+ children: /* @__PURE__ */ jsx("path", { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" })
11250
+ }
11251
+ ),
11252
+ /* @__PURE__ */ jsx("span", { className: "button-text", children: text })
11253
+ ]
11254
+ }
11255
+ );
11256
+ };
10516
11257
  var __defProp$7 = Object.defineProperty;
10517
11258
  var __defProps$3 = Object.defineProperties;
10518
11259
  var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
@@ -10566,7 +11307,7 @@ const LeafWrapper = ({
10566
11307
  return /* @__PURE__ */ jsx(ImageRender, __spreadValues$4({}, props));
10567
11308
  case "text-list":
10568
11309
  return /* @__PURE__ */ jsx(TextListRender, __spreadProps$3(__spreadValues$4({}, props), { children }));
10569
- case "input": {
11310
+ case "jdh-input": {
10570
11311
  const p = props;
10571
11312
  const value = p.updateKey ? values == null ? void 0 : values[p.updateKey] : "";
10572
11313
  return /* @__PURE__ */ jsx(
@@ -10578,7 +11319,7 @@ const LeafWrapper = ({
10578
11319
  }
10579
11320
  );
10580
11321
  }
10581
- case "textarea": {
11322
+ case "jdh-textarea": {
10582
11323
  const p = props;
10583
11324
  const value = p.updateKey ? values == null ? void 0 : values[p.updateKey] : "";
10584
11325
  return /* @__PURE__ */ jsx(
@@ -10590,6 +11331,9 @@ const LeafWrapper = ({
10590
11331
  }
10591
11332
  );
10592
11333
  }
11334
+ case "button": {
11335
+ return /* @__PURE__ */ jsx(ButtonRender, { props });
11336
+ }
10593
11337
  case "divider": {
10594
11338
  return /* @__PURE__ */ jsx(DividerRender, __spreadValues$4({}, props));
10595
11339
  }
@@ -10599,14 +11343,20 @@ const LeafWrapper = ({
10599
11343
  case "custom-render": {
10600
11344
  return /* @__PURE__ */ jsx(CustomRenderFromIM, __spreadProps$3(__spreadValues$4({}, props), { originProps }));
10601
11345
  }
10602
- case "choice": {
11346
+ case "jdh-choice": {
10603
11347
  return /* @__PURE__ */ jsx(ChoiceJDHRender, { props, values });
10604
11348
  }
10605
- case "button": {
11349
+ case "jdh-button": {
10606
11350
  return /* @__PURE__ */ jsx(ButtonJDHRender, { props });
10607
11351
  }
10608
11352
  default:
10609
- return /* @__PURE__ */ jsx(UnknownRenderer, { type: String(renderType), prefix: "未知渲染类型" });
11353
+ return /* @__PURE__ */ jsx(
11354
+ UnknownRenderer,
11355
+ {
11356
+ type: String(renderType),
11357
+ prefix: `未知渲染类型: ${subType}`
11358
+ }
11359
+ );
10610
11360
  }
10611
11361
  };
10612
11362
  const ComponentRenderer = ({
@@ -10707,10 +11457,11 @@ const MessageContainer = (props) => {
10707
11457
  } = props;
10708
11458
  const autoDetectContainerWidth = typeof containerWidthFromProps === "number" ? false : typeof props.autoDetectContainerWidth === "boolean" ? props.autoDetectContainerWidth : false;
10709
11459
  const {
10710
- template,
10711
- referenceComponentList,
10712
- data,
10713
- initLocalData = {}
11460
+ template: templateFromComponent,
11461
+ referenceComponentList: referenceComponentListFromComponent = [],
11462
+ data: dataFromComponent = {},
11463
+ initLocalData = {},
11464
+ devicePixelRatio: componentDevicePixelRatio
10714
11465
  } = component;
10715
11466
  const [containerWidth, setContainerWidth] = useState(
10716
11467
  typeof containerWidthFromProps === "number" ? containerWidthFromProps : null
@@ -10719,10 +11470,15 @@ const MessageContainer = (props) => {
10719
11470
  const { editorMode: editorMode2 } = useForEditor({});
10720
11471
  const responsiveValue = useMemo(() => {
10721
11472
  return {
10722
- scale: props.devicePixelRatio ? 1 / props.devicePixelRatio : DEFAULT_SCALE,
11473
+ scale: typeof componentDevicePixelRatio === "number" ? 1 / componentDevicePixelRatio : props.devicePixelRatio ? 1 / props.devicePixelRatio : DEFAULT_SCALE,
10723
11474
  containerWidth
10724
11475
  };
10725
11476
  }, [props.devicePixelRatio, containerWidth]);
11477
+ const [data, setData] = useState(dataFromComponent);
11478
+ const [template, setTemplate] = useState(templateFromComponent);
11479
+ const [referenceComponentList, setReferenceComponentList] = useState(
11480
+ referenceComponentListFromComponent
11481
+ );
10726
11482
  const [values, setValues] = useState(initLocalData);
10727
11483
  const [dsValues, setDsValues] = useState({});
10728
11484
  const [nodes, setNodes] = useState([]);
@@ -10844,6 +11600,9 @@ const MessageContainer = (props) => {
10844
11600
  {
10845
11601
  onAction,
10846
11602
  setValues,
11603
+ setData,
11604
+ setTemplate,
11605
+ setReferenceComponentList,
10847
11606
  values,
10848
11607
  originProps: props,
10849
11608
  externalActions,
@@ -11093,7 +11852,7 @@ class CacheStorage {
11093
11852
  }
11094
11853
  }
11095
11854
  }
11096
- function bind(fn, thisArg) {
11855
+ function bind2(fn, thisArg) {
11097
11856
  return function wrap() {
11098
11857
  return fn.apply(thisArg, arguments);
11099
11858
  };
@@ -11256,7 +12015,7 @@ const extend = (a, b3, thisArg, { allOwnKeys } = {}) => {
11256
12015
  (val, key) => {
11257
12016
  if (thisArg && isFunction$1(val)) {
11258
12017
  Object.defineProperty(a, key, {
11259
- value: bind(val, thisArg),
12018
+ value: bind2(val, thisArg),
11260
12019
  writable: true,
11261
12020
  enumerable: true,
11262
12021
  configurable: true
@@ -13660,7 +14419,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
13660
14419
  });
13661
14420
  function createInstance(defaultConfig) {
13662
14421
  const context = new Axios$1(defaultConfig);
13663
- const instance = bind(Axios$1.prototype.request, context);
14422
+ const instance = bind2(Axios$1.prototype.request, context);
13664
14423
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
13665
14424
  utils$1.extend(instance, context, null, { allOwnKeys: true });
13666
14425
  instance.create = function create(instanceConfig) {