@yklyklpackages/message-card 0.5.0 → 0.6.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.
package/dist/index.mjs CHANGED
@@ -148,7 +148,7 @@ function JSONSafeParse(str, defaultValue) {
148
148
  }
149
149
  return defaultValue;
150
150
  }
151
- const defaultTheme$1 = {
151
+ const defaultTheme$2 = {
152
152
  fontSize: {
153
153
  FontSizes_JDH_Headline1: 46,
154
154
  FontSizes_JDH_Headline2: 34,
@@ -165,6 +165,9 @@ const defaultTheme$1 = {
165
165
  Color_JDH_Red_Price: "#FF0F23",
166
166
  Color_JDH_Red_Discount: "#FF0F23",
167
167
  Color_JDH_Green_Success: "#67CC52",
168
+ Color_JDH_Green_Background: "#17CB8E1F",
169
+ Color_JDH_Red_Background: "#FF0F231F",
170
+ Color_JDH_Yellow_Background: "#FF80001F",
168
171
  Color_JDH_Gray_Headline: "#222222",
169
172
  Color_JDH_Gray_Text: "#222222",
170
173
  Color_JDH_Gray_SecondText: "#575859",
@@ -190,14 +193,68 @@ const defaultTheme$1 = {
190
193
  Spacing_JDH_xxs: 4
191
194
  },
192
195
  borderRadius: {
193
- Radius_JDH_LargeExtra: 32,
194
- Radius_JDH_Large: 24,
195
- Radius_JDH_Medium: 16,
196
- Radius_JDH_Small: 8,
197
- Radius_JDH_Mini: 6
196
+ Radius_JDH_xxl: 32,
197
+ Radius_JDH_xl: 24,
198
+ Radius_JDH_lg: 16,
199
+ Radius_JDH_sm: 8,
200
+ Radius_JDH_xs: 6
201
+ },
202
+ components: {}
203
+ };
204
+ const defaultTheme$1 = {
205
+ fontSize: {
206
+ FontSizes_JDH_Headline1: 23,
207
+ FontSizes_JDH_Headline2: 17,
208
+ FontSizes_JDH_Title: 15,
209
+ FontSizes_JDH_Text: 14,
210
+ FontSizes_JDH_AccentText: 12,
211
+ FontSizes_JDH_TagText: 10
212
+ },
213
+ color: {
214
+ Color_JDH_Primary: "#17CB8E",
215
+ Color_JDH_Accent1: "#FF8000",
216
+ Color_JDH_Accent2: "#73B0FF",
217
+ Color_JDH_Red_Danger: "#FF0F23",
218
+ Color_JDH_Red_Price: "#FF0F23",
219
+ Color_JDH_Red_Discount: "#FF0F23",
220
+ Color_JDH_Green_Success: "#67CC52",
221
+ Color_JDH_Green_Background: "#17CB8E1F",
222
+ Color_JDH_Red_Background: "#FF0F231F",
223
+ Color_JDH_Yellow_Background: "#FF80001F",
224
+ Color_JDH_Gray_Headline: "#222222",
225
+ Color_JDH_Gray_Text: "#222222",
226
+ Color_JDH_Gray_SecondText: "#575859",
227
+ Color_JDH_Gray_AccentText: "#858687",
228
+ Color_JDH_Gray_DividingLine: "#D3D3D3",
229
+ Color_JDH_Gray_Background: "#F5F5F6",
230
+ Color_JDH_Gray_CardBackground: "#E5E9EB",
231
+ Color_JDH_Gray_Card: "#FFFFFF",
232
+ Color_JDH_Gray_Mask: "#00000080"
233
+ },
234
+ fontWeight: {
235
+ FontWeight_JDH_Normal: 400,
236
+ FontWeight_JDH_Medium: 500
237
+ },
238
+ space: {
239
+ Spacing_JDH_4xl: 16,
240
+ Spacing_JDH_xxxl: 14,
241
+ Spacing_JDH_xxl: 12,
242
+ Spacing_JDH_xl: 10,
243
+ Spacing_JDH_lg: 8,
244
+ Spacing_JDH_sm: 6,
245
+ Spacing_JDH_xs: 4,
246
+ Spacing_JDH_xxs: 2
247
+ },
248
+ borderRadius: {
249
+ Radius_JDH_xxl: 16,
250
+ Radius_JDH_xl: 12,
251
+ Radius_JDH_lg: 8,
252
+ Radius_JDH_sm: 4,
253
+ Radius_JDH_xs: 3
198
254
  },
199
255
  components: {}
200
256
  };
257
+ const DEFAULT_SCALE = 0.5;
201
258
  var __defProp$v = Object.defineProperty;
202
259
  var __defProps$q = Object.defineProperties;
203
260
  var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
@@ -217,13 +274,14 @@ var __spreadValues$s = (a, b) => {
217
274
  return a;
218
275
  };
219
276
  var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
220
- const ThemeContext = createContext(defaultTheme$1);
277
+ const ThemeContext = createContext(defaultTheme$2);
221
278
  const ThemeProvider = ({
279
+ scale = DEFAULT_SCALE,
222
280
  theme,
223
281
  children
224
282
  }) => {
225
283
  const merged = useMemo$1(() => {
226
- const base = defaultTheme$1;
284
+ const base = scale <= DEFAULT_SCALE ? defaultTheme$2 : defaultTheme$1;
227
285
  return __spreadProps$q(__spreadValues$s({}, base), {
228
286
  fontSize: __spreadValues$s(__spreadValues$s({}, base.fontSize), (theme == null ? void 0 : theme.fontSize) || {}),
229
287
  color: __spreadValues$s(__spreadValues$s({}, base.color), (theme == null ? void 0 : theme.color) || {}),
@@ -1972,7 +2030,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
1972
2030
  var ys = arrObjKeys(obj, inspect2);
1973
2031
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1974
2032
  var protoTag = obj instanceof Object ? "" : "null prototype";
1975
- var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
2033
+ var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
1976
2034
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
1977
2035
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
1978
2036
  if (ys.length === 0) {
@@ -1997,25 +2055,25 @@ function canTrustToString(obj) {
1997
2055
  return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
1998
2056
  }
1999
2057
  function isArray$4(obj) {
2000
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
2058
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
2001
2059
  }
2002
2060
  function isDate$1(obj) {
2003
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
2061
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
2004
2062
  }
2005
2063
  function isRegExp$2(obj) {
2006
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
2064
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
2007
2065
  }
2008
2066
  function isError(obj) {
2009
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
2067
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
2010
2068
  }
2011
2069
  function isString$2(obj) {
2012
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
2070
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
2013
2071
  }
2014
2072
  function isNumber$1(obj) {
2015
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
2073
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
2016
2074
  }
2017
2075
  function isBoolean$1(obj) {
2018
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
2076
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
2019
2077
  }
2020
2078
  function isSymbol(obj) {
2021
2079
  if (hasShammedSymbols) {
@@ -2051,7 +2109,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
2051
2109
  function has$3(obj, key) {
2052
2110
  return hasOwn$1.call(obj, key);
2053
2111
  }
2054
- function toStr$1(obj) {
2112
+ function toStr(obj) {
2055
2113
  return objectToString.call(obj);
2056
2114
  }
2057
2115
  function nameOf(f) {
@@ -2360,7 +2418,7 @@ var syntax = SyntaxError;
2360
2418
  var uri = URIError;
2361
2419
  var abs$2 = Math.abs;
2362
2420
  var floor$1 = Math.floor;
2363
- var max$2 = Math.max;
2421
+ var max$1 = Math.max;
2364
2422
  var min$1 = Math.min;
2365
2423
  var pow$1 = Math.pow;
2366
2424
  var round$2 = Math.round;
@@ -2489,78 +2547,99 @@ function requireObject_getPrototypeOf() {
2489
2547
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
2490
2548
  return Object_getPrototypeOf;
2491
2549
  }
2492
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2493
- var toStr = Object.prototype.toString;
2494
- var max$1 = Math.max;
2495
- var funcType = "[object Function]";
2496
- var concatty = function concatty2(a, b) {
2497
- var arr = [];
2498
- for (var i = 0; i < a.length; i += 1) {
2499
- arr[i] = a[i];
2500
- }
2501
- for (var j2 = 0; j2 < b.length; j2 += 1) {
2502
- arr[j2 + a.length] = b[j2];
2503
- }
2504
- return arr;
2505
- };
2506
- var slicy = function slicy2(arrLike, offset) {
2507
- var arr = [];
2508
- for (var i = offset, j2 = 0; i < arrLike.length; i += 1, j2 += 1) {
2509
- arr[j2] = arrLike[i];
2510
- }
2511
- return arr;
2512
- };
2513
- var joiny = function(arr, joiner) {
2514
- var str = "";
2515
- for (var i = 0; i < arr.length; i += 1) {
2516
- str += arr[i];
2517
- if (i + 1 < arr.length) {
2518
- str += joiner;
2550
+ var implementation;
2551
+ var hasRequiredImplementation;
2552
+ function requireImplementation() {
2553
+ if (hasRequiredImplementation) return implementation;
2554
+ hasRequiredImplementation = 1;
2555
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2556
+ var toStr2 = Object.prototype.toString;
2557
+ var max2 = Math.max;
2558
+ var funcType = "[object Function]";
2559
+ var concatty = function concatty2(a, b) {
2560
+ var arr = [];
2561
+ for (var i = 0; i < a.length; i += 1) {
2562
+ arr[i] = a[i];
2519
2563
  }
2520
- }
2521
- return str;
2522
- };
2523
- var implementation$1 = function bind(that) {
2524
- var target = this;
2525
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
2526
- throw new TypeError(ERROR_MESSAGE + target);
2527
- }
2528
- var args = slicy(arguments, 1);
2529
- var bound;
2530
- var binder = function() {
2531
- if (this instanceof bound) {
2532
- var result = target.apply(
2533
- this,
2534
- concatty(args, arguments)
2535
- );
2536
- if (Object(result) === result) {
2537
- return result;
2564
+ for (var j2 = 0; j2 < b.length; j2 += 1) {
2565
+ arr[j2 + a.length] = b[j2];
2566
+ }
2567
+ return arr;
2568
+ };
2569
+ var slicy = function slicy2(arrLike, offset) {
2570
+ var arr = [];
2571
+ for (var i = offset, j2 = 0; i < arrLike.length; i += 1, j2 += 1) {
2572
+ arr[j2] = arrLike[i];
2573
+ }
2574
+ return arr;
2575
+ };
2576
+ var joiny = function(arr, joiner) {
2577
+ var str = "";
2578
+ for (var i = 0; i < arr.length; i += 1) {
2579
+ str += arr[i];
2580
+ if (i + 1 < arr.length) {
2581
+ str += joiner;
2538
2582
  }
2539
- return this;
2540
2583
  }
2541
- return target.apply(
2542
- that,
2543
- concatty(args, arguments)
2544
- );
2584
+ return str;
2545
2585
  };
2546
- var boundLength = max$1(0, target.length - args.length);
2547
- var boundArgs = [];
2548
- for (var i = 0; i < boundLength; i++) {
2549
- boundArgs[i] = "$" + i;
2550
- }
2551
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
2552
- if (target.prototype) {
2553
- var Empty2 = function Empty3() {
2586
+ implementation = function bind2(that) {
2587
+ var target = this;
2588
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
2589
+ throw new TypeError(ERROR_MESSAGE + target);
2590
+ }
2591
+ var args = slicy(arguments, 1);
2592
+ var bound;
2593
+ var binder = function() {
2594
+ if (this instanceof bound) {
2595
+ var result = target.apply(
2596
+ this,
2597
+ concatty(args, arguments)
2598
+ );
2599
+ if (Object(result) === result) {
2600
+ return result;
2601
+ }
2602
+ return this;
2603
+ }
2604
+ return target.apply(
2605
+ that,
2606
+ concatty(args, arguments)
2607
+ );
2554
2608
  };
2555
- Empty2.prototype = target.prototype;
2556
- bound.prototype = new Empty2();
2557
- Empty2.prototype = null;
2558
- }
2559
- return bound;
2560
- };
2561
- var implementation = implementation$1;
2562
- var functionBind = Function.prototype.bind || implementation;
2563
- var functionCall = Function.prototype.call;
2609
+ var boundLength = max2(0, target.length - args.length);
2610
+ var boundArgs = [];
2611
+ for (var i = 0; i < boundLength; i++) {
2612
+ boundArgs[i] = "$" + i;
2613
+ }
2614
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
2615
+ if (target.prototype) {
2616
+ var Empty2 = function Empty3() {
2617
+ };
2618
+ Empty2.prototype = target.prototype;
2619
+ bound.prototype = new Empty2();
2620
+ Empty2.prototype = null;
2621
+ }
2622
+ return bound;
2623
+ };
2624
+ return implementation;
2625
+ }
2626
+ var functionBind;
2627
+ var hasRequiredFunctionBind;
2628
+ function requireFunctionBind() {
2629
+ if (hasRequiredFunctionBind) return functionBind;
2630
+ hasRequiredFunctionBind = 1;
2631
+ var implementation2 = requireImplementation();
2632
+ functionBind = Function.prototype.bind || implementation2;
2633
+ return functionBind;
2634
+ }
2635
+ var functionCall;
2636
+ var hasRequiredFunctionCall;
2637
+ function requireFunctionCall() {
2638
+ if (hasRequiredFunctionCall) return functionCall;
2639
+ hasRequiredFunctionCall = 1;
2640
+ functionCall = Function.prototype.call;
2641
+ return functionCall;
2642
+ }
2564
2643
  var functionApply;
2565
2644
  var hasRequiredFunctionApply;
2566
2645
  function requireFunctionApply() {
@@ -2570,14 +2649,14 @@ function requireFunctionApply() {
2570
2649
  return functionApply;
2571
2650
  }
2572
2651
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
2573
- var bind$3 = functionBind;
2652
+ var bind$3 = requireFunctionBind();
2574
2653
  var $apply$1 = requireFunctionApply();
2575
- var $call$2 = functionCall;
2654
+ var $call$2 = requireFunctionCall();
2576
2655
  var $reflectApply = reflectApply;
2577
2656
  var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
2578
- var bind$2 = functionBind;
2657
+ var bind$2 = requireFunctionBind();
2579
2658
  var $TypeError$4 = type$2;
2580
- var $call$1 = functionCall;
2659
+ var $call$1 = requireFunctionCall();
2581
2660
  var $actualApply = actualApply;
2582
2661
  var callBindApplyHelpers = function callBindBasic(args) {
2583
2662
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -2643,8 +2722,8 @@ function requireHasown() {
2643
2722
  hasRequiredHasown = 1;
2644
2723
  var call2 = Function.prototype.call;
2645
2724
  var $hasOwn = Object.prototype.hasOwnProperty;
2646
- var bind3 = functionBind;
2647
- hasown = bind3.call(call2, $hasOwn);
2725
+ var bind2 = requireFunctionBind();
2726
+ hasown = bind2.call(call2, $hasOwn);
2648
2727
  return hasown;
2649
2728
  }
2650
2729
  var undefined$1;
@@ -2658,7 +2737,7 @@ var $TypeError$3 = type$2;
2658
2737
  var $URIError = uri;
2659
2738
  var abs$1 = abs$2;
2660
2739
  var floor = floor$1;
2661
- var max = max$2;
2740
+ var max = max$1;
2662
2741
  var min = min$1;
2663
2742
  var pow = pow$1;
2664
2743
  var round$1 = round$2;
@@ -2692,7 +2771,7 @@ var getProto = requireGetProto();
2692
2771
  var $ObjectGPO = requireObject_getPrototypeOf();
2693
2772
  var $ReflectGPO = requireReflect_getPrototypeOf();
2694
2773
  var $apply = requireFunctionApply();
2695
- var $call = functionCall;
2774
+ var $call = requireFunctionCall();
2696
2775
  var needsEval = {};
2697
2776
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2698
2777
  var INTRINSICS = {
@@ -2863,7 +2942,7 @@ var LEGACY_ALIASES = {
2863
2942
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2864
2943
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2865
2944
  };
2866
- var bind$1 = functionBind;
2945
+ var bind$1 = requireFunctionBind();
2867
2946
  var hasOwn = requireHasown();
2868
2947
  var $concat = bind$1.call($call, Array.prototype.concat);
2869
2948
  var $spliceApply = bind$1.call($apply, Array.prototype.splice);
@@ -5459,6 +5538,16 @@ const LayoutWrapper = ({
5459
5538
  if (!node2) return null;
5460
5539
  const { layoutType, props, subType } = node2;
5461
5540
  const layoutProps = props;
5541
+ if (typeof (customLayoutComponent == null ? void 0 : customLayoutComponent[subType]) !== "undefined") {
5542
+ return /* @__PURE__ */ jsx(
5543
+ CustomLayout,
5544
+ {
5545
+ customComponent: customLayoutComponent[subType],
5546
+ props: layoutProps,
5547
+ children
5548
+ }
5549
+ );
5550
+ }
5462
5551
  switch (subType) {
5463
5552
  case "full-row":
5464
5553
  return /* @__PURE__ */ jsx(FullRowLayout, __spreadProps$c(__spreadValues$e({ props: layoutProps }, { originProps }), { children }));
@@ -5483,14 +5572,7 @@ const LayoutWrapper = ({
5483
5572
  case "scroll-view":
5484
5573
  return /* @__PURE__ */ jsx(ScrollViewLayout, __spreadProps$c(__spreadValues$e({}, node2), { children }));
5485
5574
  default:
5486
- return typeof (customLayoutComponent == null ? void 0 : customLayoutComponent[subType]) !== "undefined" ? /* @__PURE__ */ jsx(
5487
- CustomLayout,
5488
- {
5489
- customComponent: customLayoutComponent[subType],
5490
- props: layoutProps,
5491
- children
5492
- }
5493
- ) : /* @__PURE__ */ jsx(UnknownRenderer, { type: String(layoutType), prefix: "未知布局类型" });
5575
+ return /* @__PURE__ */ jsx(UnknownRenderer, { type: String(layoutType), prefix: "未知布局类型" });
5494
5576
  }
5495
5577
  };
5496
5578
  const isPlainObject$1 = (obj) => Object.prototype.toString.call(obj) === "[object Object]";
@@ -29946,6 +30028,15 @@ const LeafWrapper = ({
29946
30028
  );
29947
30029
  if (!node2) return null;
29948
30030
  const { renderType, props, subType } = node2;
30031
+ if (typeof (customRenderComponent == null ? void 0 : customRenderComponent[subType]) !== "undefined") {
30032
+ return /* @__PURE__ */ jsx(
30033
+ CustomRenderFromProps,
30034
+ {
30035
+ props,
30036
+ component: customRenderComponent[subType]
30037
+ }
30038
+ );
30039
+ }
29949
30040
  switch (subType) {
29950
30041
  case "text":
29951
30042
  return /* @__PURE__ */ jsx(TextRender, __spreadValues$4({}, props));
@@ -30009,13 +30100,7 @@ const LeafWrapper = ({
30009
30100
  return /* @__PURE__ */ jsx(CustomRenderFromIM, __spreadProps$3(__spreadValues$4({}, props), { originProps }));
30010
30101
  }
30011
30102
  default:
30012
- return typeof (customRenderComponent == null ? void 0 : customRenderComponent[subType]) !== "undefined" ? /* @__PURE__ */ jsx(
30013
- CustomRenderFromProps,
30014
- {
30015
- props,
30016
- component: customRenderComponent[subType]
30017
- }
30018
- ) : /* @__PURE__ */ jsx(UnknownRenderer, { type: String(renderType), prefix: "未知渲染类型" });
30103
+ return /* @__PURE__ */ jsx(UnknownRenderer, { type: String(renderType), prefix: "未知渲染类型" });
30019
30104
  }
30020
30105
  };
30021
30106
  const ComponentRenderer = ({
@@ -30106,6 +30191,11 @@ const MessageContainer = (props) => {
30106
30191
  } = props;
30107
30192
  const { template, referenceComponentList, data } = component;
30108
30193
  const { editorMode: editorMode2 } = useForEditor({});
30194
+ const responsiveValue = useMemo$1(() => {
30195
+ return {
30196
+ scale: props.devicePixelRatio ? 1 / props.devicePixelRatio : DEFAULT_SCALE
30197
+ };
30198
+ }, []);
30109
30199
  const [values, setValues] = useState({});
30110
30200
  const [dsValues, setDsValues] = useState({});
30111
30201
  const [nodes, setNodes] = useState([]);
@@ -30175,7 +30265,7 @@ const MessageContainer = (props) => {
30175
30265
  },
30176
30266
  [onAction]
30177
30267
  );
30178
- const content = /* @__PURE__ */ jsx(
30268
+ const content = /* @__PURE__ */ jsx(ResponsiveContext.Provider, { value: responsiveValue, children: /* @__PURE__ */ jsx(
30179
30269
  ActionProvider,
30180
30270
  {
30181
30271
  onAction,
@@ -30204,11 +30294,8 @@ const MessageContainer = (props) => {
30204
30294
  )
30205
30295
  ] })
30206
30296
  }
30207
- );
30208
- if (theme) {
30209
- return /* @__PURE__ */ jsx(ThemeProvider, { theme, children: content });
30210
- }
30211
- return content;
30297
+ ) });
30298
+ return /* @__PURE__ */ jsx(ThemeProvider, { scale: responsiveValue.scale, theme, children: content });
30212
30299
  };
30213
30300
  var __defProp$5 = Object.defineProperty;
30214
30301
  var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -30430,7 +30517,7 @@ class CacheStorage {
30430
30517
  }
30431
30518
  }
30432
30519
  }
30433
- function bind2(fn, thisArg) {
30520
+ function bind(fn, thisArg) {
30434
30521
  return function wrap() {
30435
30522
  return fn.apply(thisArg, arguments);
30436
30523
  };
@@ -30568,7 +30655,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
30568
30655
  forEach(b, (val, key) => {
30569
30656
  if (thisArg && isFunction$1(val)) {
30570
30657
  Object.defineProperty(a, key, {
30571
- value: bind2(val, thisArg),
30658
+ value: bind(val, thisArg),
30572
30659
  writable: true,
30573
30660
  enumerable: true,
30574
30661
  configurable: true
@@ -32885,7 +32972,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
32885
32972
  });
32886
32973
  function createInstance(defaultConfig2) {
32887
32974
  const context = new Axios$1(defaultConfig2);
32888
- const instance = bind2(Axios$1.prototype.request, context);
32975
+ const instance = bind(Axios$1.prototype.request, context);
32889
32976
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
32890
32977
  utils$1.extend(instance, context, null, { allOwnKeys: true });
32891
32978
  instance.create = function create(instanceConfig) {
@@ -33911,11 +33998,6 @@ var __spreadValues$1 = (a, b) => {
33911
33998
  };
33912
33999
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
33913
34000
  const MessageCard = (props) => {
33914
- const responsiveValue = useMemo$1(() => {
33915
- return {
33916
- scale: 0.5
33917
- };
33918
- }, []);
33919
34001
  const {
33920
34002
  templateJson,
33921
34003
  templateData,
@@ -33926,7 +34008,7 @@ const MessageCard = (props) => {
33926
34008
  theme
33927
34009
  } = useMessageCardLogic(props);
33928
34010
  const { data = {} } = props;
33929
- return /* @__PURE__ */ jsx(ResponsiveContext.Provider, { value: responsiveValue, children: /* @__PURE__ */ jsx("div", { className: "message-card-wrapper", children: /* @__PURE__ */ jsx(
34011
+ return /* @__PURE__ */ jsx("div", { className: "message-card-wrapper", children: /* @__PURE__ */ jsx(
33930
34012
  Render,
33931
34013
  __spreadValues$1({
33932
34014
  component: __spreadProps(__spreadValues$1({}, templateJson), {
@@ -33947,7 +34029,7 @@ const MessageCard = (props) => {
33947
34029
  },
33948
34030
  externalActions: props.externalActions
33949
34031
  }, props)
33950
- ) }) });
34032
+ ) });
33951
34033
  };
33952
34034
  const MessageCard_default = forwardRef(MessageCard);
33953
34035
  var __defProp = Object.defineProperty;
@@ -33977,7 +34059,7 @@ export {
33977
34059
  ThemeProvider,
33978
34060
  createRenderComponent,
33979
34061
  MessageCard_default as default,
33980
- defaultTheme$1 as defaultTheme,
34062
+ defaultTheme$2 as defaultTheme,
33981
34063
  isLayoutNode,
33982
34064
  isRenderNode,
33983
34065
  useTheme$1 as useTheme