@yklyklpackages/message-card 0.2.0 → 0.3.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.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { default as MessageCard } from './components/MessageCard';
2
+ export { MessageContainer, createRenderComponent } from './components';
2
3
  export * from './components/index';
3
4
  export { default } from './components/MessageCard';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGlE,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGvE,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
package/dist/index.mjs CHANGED
@@ -1972,7 +1972,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
1972
1972
  var ys = arrObjKeys(obj, inspect2);
1973
1973
  var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1974
1974
  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" : "";
1975
+ var stringTag = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
1976
1976
  var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
1977
1977
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat$1.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
1978
1978
  if (ys.length === 0) {
@@ -1997,25 +1997,25 @@ function canTrustToString(obj) {
1997
1997
  return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
1998
1998
  }
1999
1999
  function isArray$4(obj) {
2000
- return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
2000
+ return toStr(obj) === "[object Array]" && canTrustToString(obj);
2001
2001
  }
2002
2002
  function isDate$1(obj) {
2003
- return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
2003
+ return toStr(obj) === "[object Date]" && canTrustToString(obj);
2004
2004
  }
2005
2005
  function isRegExp$2(obj) {
2006
- return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
2006
+ return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
2007
2007
  }
2008
2008
  function isError(obj) {
2009
- return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
2009
+ return toStr(obj) === "[object Error]" && canTrustToString(obj);
2010
2010
  }
2011
2011
  function isString$2(obj) {
2012
- return toStr$1(obj) === "[object String]" && canTrustToString(obj);
2012
+ return toStr(obj) === "[object String]" && canTrustToString(obj);
2013
2013
  }
2014
2014
  function isNumber$1(obj) {
2015
- return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
2015
+ return toStr(obj) === "[object Number]" && canTrustToString(obj);
2016
2016
  }
2017
2017
  function isBoolean$1(obj) {
2018
- return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
2018
+ return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
2019
2019
  }
2020
2020
  function isSymbol(obj) {
2021
2021
  if (hasShammedSymbols) {
@@ -2051,7 +2051,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
2051
2051
  function has$3(obj, key) {
2052
2052
  return hasOwn$1.call(obj, key);
2053
2053
  }
2054
- function toStr$1(obj) {
2054
+ function toStr(obj) {
2055
2055
  return objectToString.call(obj);
2056
2056
  }
2057
2057
  function nameOf(f) {
@@ -2360,7 +2360,7 @@ var syntax = SyntaxError;
2360
2360
  var uri = URIError;
2361
2361
  var abs$2 = Math.abs;
2362
2362
  var floor$1 = Math.floor;
2363
- var max$2 = Math.max;
2363
+ var max$1 = Math.max;
2364
2364
  var min$1 = Math.min;
2365
2365
  var pow$1 = Math.pow;
2366
2366
  var round$2 = Math.round;
@@ -2489,78 +2489,99 @@ function requireObject_getPrototypeOf() {
2489
2489
  Object_getPrototypeOf = $Object2.getPrototypeOf || null;
2490
2490
  return Object_getPrototypeOf;
2491
2491
  }
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;
2492
+ var implementation;
2493
+ var hasRequiredImplementation;
2494
+ function requireImplementation() {
2495
+ if (hasRequiredImplementation) return implementation;
2496
+ hasRequiredImplementation = 1;
2497
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
2498
+ var toStr2 = Object.prototype.toString;
2499
+ var max2 = Math.max;
2500
+ var funcType = "[object Function]";
2501
+ var concatty = function concatty2(a, b) {
2502
+ var arr = [];
2503
+ for (var i = 0; i < a.length; i += 1) {
2504
+ arr[i] = a[i];
2519
2505
  }
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;
2506
+ for (var j2 = 0; j2 < b.length; j2 += 1) {
2507
+ arr[j2 + a.length] = b[j2];
2508
+ }
2509
+ return arr;
2510
+ };
2511
+ var slicy = function slicy2(arrLike, offset) {
2512
+ var arr = [];
2513
+ for (var i = offset, j2 = 0; i < arrLike.length; i += 1, j2 += 1) {
2514
+ arr[j2] = arrLike[i];
2515
+ }
2516
+ return arr;
2517
+ };
2518
+ var joiny = function(arr, joiner) {
2519
+ var str = "";
2520
+ for (var i = 0; i < arr.length; i += 1) {
2521
+ str += arr[i];
2522
+ if (i + 1 < arr.length) {
2523
+ str += joiner;
2538
2524
  }
2539
- return this;
2540
2525
  }
2541
- return target.apply(
2542
- that,
2543
- concatty(args, arguments)
2544
- );
2526
+ return str;
2545
2527
  };
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() {
2528
+ implementation = function bind2(that) {
2529
+ var target = this;
2530
+ if (typeof target !== "function" || toStr2.apply(target) !== funcType) {
2531
+ throw new TypeError(ERROR_MESSAGE + target);
2532
+ }
2533
+ var args = slicy(arguments, 1);
2534
+ var bound;
2535
+ var binder = function() {
2536
+ if (this instanceof bound) {
2537
+ var result = target.apply(
2538
+ this,
2539
+ concatty(args, arguments)
2540
+ );
2541
+ if (Object(result) === result) {
2542
+ return result;
2543
+ }
2544
+ return this;
2545
+ }
2546
+ return target.apply(
2547
+ that,
2548
+ concatty(args, arguments)
2549
+ );
2554
2550
  };
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;
2551
+ var boundLength = max2(0, target.length - args.length);
2552
+ var boundArgs = [];
2553
+ for (var i = 0; i < boundLength; i++) {
2554
+ boundArgs[i] = "$" + i;
2555
+ }
2556
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
2557
+ if (target.prototype) {
2558
+ var Empty2 = function Empty3() {
2559
+ };
2560
+ Empty2.prototype = target.prototype;
2561
+ bound.prototype = new Empty2();
2562
+ Empty2.prototype = null;
2563
+ }
2564
+ return bound;
2565
+ };
2566
+ return implementation;
2567
+ }
2568
+ var functionBind;
2569
+ var hasRequiredFunctionBind;
2570
+ function requireFunctionBind() {
2571
+ if (hasRequiredFunctionBind) return functionBind;
2572
+ hasRequiredFunctionBind = 1;
2573
+ var implementation2 = requireImplementation();
2574
+ functionBind = Function.prototype.bind || implementation2;
2575
+ return functionBind;
2576
+ }
2577
+ var functionCall;
2578
+ var hasRequiredFunctionCall;
2579
+ function requireFunctionCall() {
2580
+ if (hasRequiredFunctionCall) return functionCall;
2581
+ hasRequiredFunctionCall = 1;
2582
+ functionCall = Function.prototype.call;
2583
+ return functionCall;
2584
+ }
2564
2585
  var functionApply;
2565
2586
  var hasRequiredFunctionApply;
2566
2587
  function requireFunctionApply() {
@@ -2570,14 +2591,14 @@ function requireFunctionApply() {
2570
2591
  return functionApply;
2571
2592
  }
2572
2593
  var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
2573
- var bind$3 = functionBind;
2594
+ var bind$3 = requireFunctionBind();
2574
2595
  var $apply$1 = requireFunctionApply();
2575
- var $call$2 = functionCall;
2596
+ var $call$2 = requireFunctionCall();
2576
2597
  var $reflectApply = reflectApply;
2577
2598
  var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
2578
- var bind$2 = functionBind;
2599
+ var bind$2 = requireFunctionBind();
2579
2600
  var $TypeError$4 = type$2;
2580
- var $call$1 = functionCall;
2601
+ var $call$1 = requireFunctionCall();
2581
2602
  var $actualApply = actualApply;
2582
2603
  var callBindApplyHelpers = function callBindBasic(args) {
2583
2604
  if (args.length < 1 || typeof args[0] !== "function") {
@@ -2643,8 +2664,8 @@ function requireHasown() {
2643
2664
  hasRequiredHasown = 1;
2644
2665
  var call2 = Function.prototype.call;
2645
2666
  var $hasOwn = Object.prototype.hasOwnProperty;
2646
- var bind3 = functionBind;
2647
- hasown = bind3.call(call2, $hasOwn);
2667
+ var bind2 = requireFunctionBind();
2668
+ hasown = bind2.call(call2, $hasOwn);
2648
2669
  return hasown;
2649
2670
  }
2650
2671
  var undefined$1;
@@ -2658,7 +2679,7 @@ var $TypeError$3 = type$2;
2658
2679
  var $URIError = uri;
2659
2680
  var abs$1 = abs$2;
2660
2681
  var floor = floor$1;
2661
- var max = max$2;
2682
+ var max = max$1;
2662
2683
  var min = min$1;
2663
2684
  var pow = pow$1;
2664
2685
  var round$1 = round$2;
@@ -2692,7 +2713,7 @@ var getProto = requireGetProto();
2692
2713
  var $ObjectGPO = requireObject_getPrototypeOf();
2693
2714
  var $ReflectGPO = requireReflect_getPrototypeOf();
2694
2715
  var $apply = requireFunctionApply();
2695
- var $call = functionCall;
2716
+ var $call = requireFunctionCall();
2696
2717
  var needsEval = {};
2697
2718
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
2698
2719
  var INTRINSICS = {
@@ -2863,7 +2884,7 @@ var LEGACY_ALIASES = {
2863
2884
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
2864
2885
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
2865
2886
  };
2866
- var bind$1 = functionBind;
2887
+ var bind$1 = requireFunctionBind();
2867
2888
  var hasOwn = requireHasown();
2868
2889
  var $concat = bind$1.call($call, Array.prototype.concat);
2869
2890
  var $spliceApply = bind$1.call($apply, Array.prototype.splice);
@@ -30430,7 +30451,7 @@ class CacheStorage {
30430
30451
  }
30431
30452
  }
30432
30453
  }
30433
- function bind2(fn, thisArg) {
30454
+ function bind(fn, thisArg) {
30434
30455
  return function wrap() {
30435
30456
  return fn.apply(thisArg, arguments);
30436
30457
  };
@@ -30568,7 +30589,7 @@ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
30568
30589
  forEach(b, (val, key) => {
30569
30590
  if (thisArg && isFunction$1(val)) {
30570
30591
  Object.defineProperty(a, key, {
30571
- value: bind2(val, thisArg),
30592
+ value: bind(val, thisArg),
30572
30593
  writable: true,
30573
30594
  enumerable: true,
30574
30595
  configurable: true
@@ -32885,7 +32906,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
32885
32906
  });
32886
32907
  function createInstance(defaultConfig2) {
32887
32908
  const context = new Axios$1(defaultConfig2);
32888
- const instance = bind2(Axios$1.prototype.request, context);
32909
+ const instance = bind(Axios$1.prototype.request, context);
32889
32910
  utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
32890
32911
  utils$1.extend(instance, context, null, { allOwnKeys: true });
32891
32912
  instance.create = function create(instanceConfig) {