@yklyklpackages/message-card 0.9.1 → 0.10.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
@@ -2980,7 +2980,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2980
2980
  var ys = arrObjKeys(obj, inspect2);
2981
2981
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2982
2982
  var protoTag = obj instanceof Object ? "" : "null prototype";
2983
- var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
2983
+ var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
2984
2984
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
2985
2985
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
2986
2986
  if (ys.length === 0) {
@@ -3005,25 +3005,25 @@ function canTrustToString(obj) {
3005
3005
  return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
3006
3006
  }
3007
3007
  function isArray$4(obj) {
3008
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
3008
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
3009
3009
  }
3010
3010
  function isDate$1(obj) {
3011
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
3011
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
3012
3012
  }
3013
3013
  function isRegExp$2(obj) {
3014
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
3014
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
3015
3015
  }
3016
3016
  function isError(obj) {
3017
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
3017
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
3018
3018
  }
3019
3019
  function isString$1(obj) {
3020
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
3020
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
3021
3021
  }
3022
3022
  function isNumber$1(obj) {
3023
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
3023
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
3024
3024
  }
3025
3025
  function isBoolean$1(obj) {
3026
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
3026
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
3027
3027
  }
3028
3028
  function isSymbol(obj) {
3029
3029
  if (hasShammedSymbols) {
@@ -3059,7 +3059,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
3059
3059
  function has$3(obj, key) {
3060
3060
  return hasOwn$1.call(obj, key);
3061
3061
  }
3062
- function toStr$1(obj) {
3062
+ function toStr(obj) {
3063
3063
  return objectToString.call(obj);
3064
3064
  }
3065
3065
  function nameOf(f) {
@@ -3368,7 +3368,7 @@ var syntax = SyntaxError;
3368
3368
  var uri = URIError;
3369
3369
  var abs$1 = Math.abs;
3370
3370
  var floor$1 = Math.floor;
3371
- var max$2 = Math.max;
3371
+ var max$1 = Math.max;
3372
3372
  var min$1 = Math.min;
3373
3373
  var pow$1 = Math.pow;
3374
3374
  var round$1 = Math.round;
@@ -3497,78 +3497,99 @@ function requireObject_getPrototypeOf() {
3497
3497
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
3498
3498
  return Object_getPrototypeOf;
3499
3499
  }
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;
3500
+ var implementation;
3501
+ var hasRequiredImplementation;
3502
+ function requireImplementation() {
3503
+ if (hasRequiredImplementation) return implementation;
3504
+ hasRequiredImplementation = 1;
3505
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
3506
+ var toStr2 = Object.prototype.toString;
3507
+ var max2 = Math.max;
3508
+ var funcType = "[object Function]";
3509
+ var concatty = function concatty2(a, b3) {
3510
+ var arr = [];
3511
+ for (var i = 0; i < a.length; i += 1) {
3512
+ arr[i] = a[i];
3527
3513
  }
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,
3542
- concatty(args, arguments)
3543
- );
3544
- if (Object(result) === result) {
3545
- return result;
3514
+ for (var j3 = 0; j3 < b3.length; j3 += 1) {
3515
+ arr[j3 + a.length] = b3[j3];
3516
+ }
3517
+ return arr;
3518
+ };
3519
+ var slicy = function slicy2(arrLike, offset) {
3520
+ var arr = [];
3521
+ for (var i = offset, j3 = 0; i < arrLike.length; i += 1, j3 += 1) {
3522
+ arr[j3] = arrLike[i];
3523
+ }
3524
+ return arr;
3525
+ };
3526
+ var joiny = function(arr, joiner) {
3527
+ var str = "";
3528
+ for (var i = 0; i < arr.length; i += 1) {
3529
+ str += arr[i];
3530
+ if (i + 1 < arr.length) {
3531
+ str += joiner;
3546
3532
  }
3547
- return this;
3548
3533
  }
3549
- return target.apply(
3550
- that,
3551
- concatty(args, arguments)
3552
- );
3534
+ return str;
3553
3535
  };
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() {
3536
+ implementation = function bind2(that) {
3537
+ var target = this;
3538
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
3539
+ throw new TypeError(ERROR_MESSAGE + target);
3540
+ }
3541
+ var args = slicy(arguments, 1);
3542
+ var bound;
3543
+ var binder = function() {
3544
+ if (this instanceof bound) {
3545
+ var result = target.apply(
3546
+ this,
3547
+ concatty(args, arguments)
3548
+ );
3549
+ if (Object(result) === result) {
3550
+ return result;
3551
+ }
3552
+ return this;
3553
+ }
3554
+ return target.apply(
3555
+ that,
3556
+ concatty(args, arguments)
3557
+ );
3562
3558
  };
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;
3559
+ var boundLength = max2(0, target.length - args.length);
3560
+ var boundArgs = [];
3561
+ for (var i = 0; i < boundLength; i++) {
3562
+ boundArgs[i] = "$" + i;
3563
+ }
3564
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
3565
+ if (target.prototype) {
3566
+ var Empty = function Empty2() {
3567
+ };
3568
+ Empty.prototype = target.prototype;
3569
+ bound.prototype = new Empty();
3570
+ Empty.prototype = null;
3571
+ }
3572
+ return bound;
3573
+ };
3574
+ return implementation;
3575
+ }
3576
+ var functionBind;
3577
+ var hasRequiredFunctionBind;
3578
+ function requireFunctionBind() {
3579
+ if (hasRequiredFunctionBind) return functionBind;
3580
+ hasRequiredFunctionBind = 1;
3581
+ var implementation2 = requireImplementation();
3582
+ functionBind = Function.prototype.bind || implementation2;
3583
+ return functionBind;
3584
+ }
3585
+ var functionCall;
3586
+ var hasRequiredFunctionCall;
3587
+ function requireFunctionCall() {
3588
+ if (hasRequiredFunctionCall) return functionCall;
3589
+ hasRequiredFunctionCall = 1;
3590
+ functionCall = Function.prototype.call;
3591
+ return functionCall;
3592
+ }
3572
3593
  var functionApply;
3573
3594
  var hasRequiredFunctionApply;
3574
3595
  function requireFunctionApply() {
@@ -3578,14 +3599,14 @@ function requireFunctionApply() {
3578
3599
  return functionApply;
3579
3600
  }
3580
3601
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
3581
- var bind$3 = functionBind;
3602
+ var bind$3 = requireFunctionBind();
3582
3603
  var $apply$1 = requireFunctionApply();
3583
- var $call$2 = functionCall;
3604
+ var $call$2 = requireFunctionCall();
3584
3605
  var $reflectApply = reflectApply;
3585
3606
  var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
3586
- var bind$2 = functionBind;
3607
+ var bind$2 = requireFunctionBind();
3587
3608
  var $TypeError$4 = type;
3588
- var $call$1 = functionCall;
3609
+ var $call$1 = requireFunctionCall();
3589
3610
  var $actualApply = actualApply;
3590
3611
  var callBindApplyHelpers = function callBindBasic(args) {
3591
3612
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -3651,8 +3672,8 @@ function requireHasown() {
3651
3672
  hasRequiredHasown = 1;
3652
3673
  var call = Function.prototype.call;
3653
3674
  var $hasOwn = Object.prototype.hasOwnProperty;
3654
- var bind3 = functionBind;
3655
- hasown = bind3.call(call, $hasOwn);
3675
+ var bind2 = requireFunctionBind();
3676
+ hasown = bind2.call(call, $hasOwn);
3656
3677
  return hasown;
3657
3678
  }
3658
3679
  var undefined$1;
@@ -3666,7 +3687,7 @@ var $TypeError$3 = type;
3666
3687
  var $URIError = uri;
3667
3688
  var abs = abs$1;
3668
3689
  var floor = floor$1;
3669
- var max = max$2;
3690
+ var max = max$1;
3670
3691
  var min = min$1;
3671
3692
  var pow = pow$1;
3672
3693
  var round = round$1;
@@ -3700,7 +3721,7 @@ var getProto = requireGetProto();
3700
3721
  var $ObjectGPO = requireObject_getPrototypeOf();
3701
3722
  var $ReflectGPO = requireReflect_getPrototypeOf();
3702
3723
  var $apply = requireFunctionApply();
3703
- var $call = functionCall;
3724
+ var $call = requireFunctionCall();
3704
3725
  var needsEval = {};
3705
3726
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
3706
3727
  var INTRINSICS = {
@@ -3871,7 +3892,7 @@ var LEGACY_ALIASES = {
3871
3892
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3872
3893
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3873
3894
  };
3874
- var bind$1 = functionBind;
3895
+ var bind$1 = requireFunctionBind();
3875
3896
  var hasOwn = requireHasown();
3876
3897
  var $concat = bind$1.call($call, Array.prototype.concat);
3877
3898
  var $spliceApply = bind$1.call($apply, Array.prototype.splice);
@@ -5171,6 +5192,7 @@ const handleCallFetchUpdateData = async ({ params }, { setTemplate, setReference
5171
5192
  const { url, method, body } = params;
5172
5193
  const res = await fetch(url, {
5173
5194
  method,
5195
+ credentials: "include",
5174
5196
  body: typeof body === "undefined" || method !== "POST" ? void 0 : JSON.stringify(body),
5175
5197
  headers: {
5176
5198
  "content-type": "application/json"
@@ -5292,7 +5314,7 @@ const dispatchAction = async (config, context) => {
5292
5314
  onAction == null ? void 0 : onAction({ type: config.type, payload: commonPayload });
5293
5315
  const handler = (externalActions == null ? void 0 : externalActions[config.type]) || ACTION_HANDLERS[config.type];
5294
5316
  if (handler) {
5295
- await handler(config, {
5317
+ return await handler(config, {
5296
5318
  ctx,
5297
5319
  metadata,
5298
5320
  extra,
@@ -5310,8 +5332,7 @@ const dispatchAction = async (config, context) => {
5310
5332
  }
5311
5333
  };
5312
5334
  const ActionContext = createContext({
5313
- executeActions: async () => {
5314
- },
5335
+ executeActions: async () => [],
5315
5336
  getLocalData: () => {
5316
5337
  },
5317
5338
  executeRenderActions: () => {
@@ -5332,7 +5353,7 @@ const ActionProvider = ({
5332
5353
  valuesRef.current = values;
5333
5354
  const executeSingleAction = useCallback(
5334
5355
  async (config, extra) => {
5335
- await dispatchAction(config, {
5356
+ return await dispatchAction(config, {
5336
5357
  onAction,
5337
5358
  setValues,
5338
5359
  originProps,
@@ -5348,7 +5369,7 @@ const ActionProvider = ({
5348
5369
  const executeActions = useCallback(
5349
5370
  async (configs, extra) => {
5350
5371
  if (!configs || !Array.isArray(configs) || configs.length === 0) return;
5351
- await Promise.all(
5372
+ return await Promise.all(
5352
5373
  configs.map((config) => executeSingleAction(config, extra))
5353
5374
  );
5354
5375
  },
@@ -11847,7 +11868,7 @@ class CacheStorage {
11847
11868
  }
11848
11869
  }
11849
11870
  }
11850
- function bind2(fn, thisArg) {
11871
+ function bind(fn, thisArg) {
11851
11872
  return function wrap() {
11852
11873
  return fn.apply(thisArg, arguments);
11853
11874
  };
@@ -12010,7 +12031,7 @@ const extend = (a, b3, thisArg, { allOwnKeys } = {}) => {
12010
12031
  (val, key) => {
12011
12032
  if (thisArg && isFunction$1(val)) {
12012
12033
  Object.defineProperty(a, key, {
12013
- value: bind2(val, thisArg),
12034
+ value: bind(val, thisArg),
12014
12035
  writable: true,
12015
12036
  enumerable: true,
12016
12037
  configurable: true
@@ -14414,7 +14435,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
14414
14435
  });
14415
14436
  function createInstance(defaultConfig) {
14416
14437
  const context = new Axios$1(defaultConfig);
14417
- const instance = bind2(Axios$1.prototype.request, context);
14438
+ const instance = bind(Axios$1.prototype.request, context);
14418
14439
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
14419
14440
  utils$1.extend(instance, context, null, { allOwnKeys: true });
14420
14441
  instance.create = function create(instanceConfig) {