@elice/material-shared-utils 1.251120.1 → 1.260128.0-rc.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 (102) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +177 -376
  2. package/cjs/_virtual/index.js +5 -0
  3. package/cjs/_virtual/use-sync-external-store-shim.production.js +5 -0
  4. package/cjs/hooks/useHelpyLogo.js +3 -7
  5. package/cjs/index.js +4 -4
  6. package/cjs/material-config/MaterialConfigContext.d.ts +0 -1
  7. package/cjs/material-config/MaterialConfigContext.js +2 -2
  8. package/cjs/material-fetch/useMaterialFetch.d.ts +2 -47
  9. package/cjs/material-fetch/useMaterialFetch.js +1 -4
  10. package/cjs/material-fetch/useMaterialFetchRaw.d.ts +1 -1
  11. package/cjs/material-fetch/useMaterialFetchRaw.js +12 -19
  12. package/cjs/material-hoc/withMaterial.d.ts +1 -1
  13. package/cjs/material-hoc/withMaterial.js +0 -1
  14. package/cjs/node_modules/@tanstack/query-core/build/lib/focusManager.js +93 -0
  15. package/cjs/node_modules/@tanstack/query-core/build/lib/notifyManager.js +101 -0
  16. package/cjs/node_modules/@tanstack/query-core/build/lib/onlineManager.js +95 -0
  17. package/cjs/node_modules/@tanstack/query-core/build/lib/queryObserver.js +571 -0
  18. package/cjs/node_modules/@tanstack/query-core/build/lib/retryer.js +21 -0
  19. package/cjs/node_modules/@tanstack/query-core/build/lib/subscribable.js +33 -0
  20. package/cjs/node_modules/@tanstack/query-core/build/lib/utils.js +154 -0
  21. package/cjs/node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js +65 -0
  22. package/cjs/node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js +46 -0
  23. package/cjs/node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js +52 -0
  24. package/cjs/node_modules/@tanstack/react-query/build/lib/isRestoring.js +31 -0
  25. package/cjs/node_modules/@tanstack/react-query/build/lib/suspense.js +39 -0
  26. package/cjs/node_modules/@tanstack/react-query/build/lib/useBaseQuery.js +94 -0
  27. package/cjs/node_modules/@tanstack/react-query/build/lib/useQuery.js +14 -0
  28. package/cjs/node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js +9 -0
  29. package/cjs/node_modules/@tanstack/react-query/build/lib/utils.js +12 -0
  30. package/cjs/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +39 -0
  31. package/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js +105 -0
  32. package/cjs/node_modules/rxjs/dist/esm5/internal/Subject.js +165 -0
  33. package/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js +157 -0
  34. package/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js +148 -0
  35. package/cjs/node_modules/rxjs/dist/esm5/internal/config.js +6 -0
  36. package/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +19 -0
  37. package/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +5 -0
  38. package/cjs/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +13 -0
  39. package/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +16 -0
  40. package/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +10 -0
  41. package/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +14 -0
  42. package/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +9 -0
  43. package/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js +7 -0
  44. package/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +7 -0
  45. package/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js +5 -0
  46. package/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js +17 -0
  47. package/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +13 -0
  48. package/cjs/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +77 -0
  49. package/cjs/node_modules/use-sync-external-store/shim/index.js +13 -0
  50. package/es/_virtual/_rollupPluginBabelHelpers.js +176 -376
  51. package/es/_virtual/index.js +3 -0
  52. package/es/_virtual/use-sync-external-store-shim.production.js +3 -0
  53. package/es/hooks/useCallbackProp.js +3 -3
  54. package/es/hooks/useDeepClonedCompareEffect.js +2 -2
  55. package/es/hooks/useHelpyLogo.js +2 -6
  56. package/es/index.js +2 -2
  57. package/es/material-config/MaterialConfigContext.d.ts +0 -1
  58. package/es/material-config/MaterialConfigContext.js +1 -1
  59. package/es/material-config/MaterialConfigProvider.js +5 -5
  60. package/es/material-fetch/useMaterialFetch.d.ts +2 -47
  61. package/es/material-fetch/useMaterialFetch.js +1 -4
  62. package/es/material-fetch/useMaterialFetchRaw.d.ts +1 -1
  63. package/es/material-fetch/useMaterialFetchRaw.js +13 -20
  64. package/es/material-hoc/withMaterial.d.ts +1 -1
  65. package/es/material-hoc/withMaterial.js +0 -1
  66. package/es/node_modules/@tanstack/query-core/build/lib/focusManager.js +90 -0
  67. package/es/node_modules/@tanstack/query-core/build/lib/notifyManager.js +98 -0
  68. package/es/node_modules/@tanstack/query-core/build/lib/onlineManager.js +92 -0
  69. package/es/node_modules/@tanstack/query-core/build/lib/queryObserver.js +569 -0
  70. package/es/node_modules/@tanstack/query-core/build/lib/retryer.js +17 -0
  71. package/es/node_modules/@tanstack/query-core/build/lib/subscribable.js +31 -0
  72. package/es/node_modules/@tanstack/query-core/build/lib/utils.js +140 -0
  73. package/es/node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js +42 -0
  74. package/es/node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js +24 -0
  75. package/es/node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js +28 -0
  76. package/es/node_modules/@tanstack/react-query/build/lib/isRestoring.js +9 -0
  77. package/es/node_modules/@tanstack/react-query/build/lib/suspense.js +34 -0
  78. package/es/node_modules/@tanstack/react-query/build/lib/useBaseQuery.js +72 -0
  79. package/es/node_modules/@tanstack/react-query/build/lib/useQuery.js +12 -0
  80. package/es/node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js +7 -0
  81. package/es/node_modules/@tanstack/react-query/build/lib/utils.js +10 -0
  82. package/es/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +37 -0
  83. package/es/node_modules/rxjs/dist/esm5/internal/Observable.js +103 -0
  84. package/es/node_modules/rxjs/dist/esm5/internal/Subject.js +162 -0
  85. package/es/node_modules/rxjs/dist/esm5/internal/Subscriber.js +153 -0
  86. package/es/node_modules/rxjs/dist/esm5/internal/Subscription.js +144 -0
  87. package/es/node_modules/rxjs/dist/esm5/internal/config.js +4 -0
  88. package/es/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +17 -0
  89. package/es/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +3 -0
  90. package/es/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +11 -0
  91. package/es/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +14 -0
  92. package/es/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +8 -0
  93. package/es/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +12 -0
  94. package/es/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +7 -0
  95. package/es/node_modules/rxjs/dist/esm5/internal/util/identity.js +5 -0
  96. package/es/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +5 -0
  97. package/es/node_modules/rxjs/dist/esm5/internal/util/noop.js +3 -0
  98. package/es/node_modules/rxjs/dist/esm5/internal/util/pipe.js +15 -0
  99. package/es/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +11 -0
  100. package/es/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +69 -0
  101. package/es/node_modules/use-sync-external-store/shim/index.js +11 -0
  102. package/package.json +6 -4
@@ -1,402 +1,202 @@
1
- function _iterableToArrayLimit(arr, i) {
2
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
3
- if (null != _i) {
4
- var _s,
5
- _e,
6
- _x,
7
- _r,
8
- _arr = [],
9
- _n = !0,
10
- _d = !1;
1
+ function _arrayLikeToArray(r, a) {
2
+ (null == a || a > r.length) && (a = r.length);
3
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4
+ return n;
5
+ }
6
+ function _arrayWithHoles(r) {
7
+ if (Array.isArray(r)) return r;
8
+ }
9
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
10
+ try {
11
+ var i = n[a](c),
12
+ u = i.value;
13
+ } catch (n) {
14
+ return void e(n);
15
+ }
16
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
17
+ }
18
+ function _asyncToGenerator(n) {
19
+ return function () {
20
+ var t = this,
21
+ e = arguments;
22
+ return new Promise(function (r, o) {
23
+ var a = n.apply(t, e);
24
+ function _next(n) {
25
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
26
+ }
27
+ function _throw(n) {
28
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
29
+ }
30
+ _next(void 0);
31
+ });
32
+ };
33
+ }
34
+ function _defineProperty(e, r, t) {
35
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
36
+ value: t,
37
+ enumerable: true,
38
+ configurable: true,
39
+ writable: true
40
+ }) : e[r] = t, e;
41
+ }
42
+ function _iterableToArrayLimit(r, l) {
43
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
44
+ if (null != t) {
45
+ var e,
46
+ n,
47
+ i,
48
+ u,
49
+ a = [],
50
+ f = true,
51
+ o = false;
11
52
  try {
12
- if (_x = (_i = _i.call(arr)).next, 0 === i) ; else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
13
- } catch (err) {
14
- _d = !0, _e = err;
53
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
54
+ } catch (r) {
55
+ o = true, n = r;
15
56
  } finally {
16
57
  try {
17
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
58
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
18
59
  } finally {
19
- if (_d) throw _e;
60
+ if (o) throw n;
20
61
  }
21
62
  }
22
- return _arr;
63
+ return a;
23
64
  }
24
65
  }
25
- function _regeneratorRuntime() {
26
- _regeneratorRuntime = function () {
27
- return exports;
28
- };
29
- var exports = {},
30
- Op = Object.prototype,
31
- hasOwn = Op.hasOwnProperty,
32
- defineProperty = Object.defineProperty || function (obj, key, desc) {
33
- obj[key] = desc.value;
34
- },
35
- $Symbol = "function" == typeof Symbol ? Symbol : {},
36
- iteratorSymbol = $Symbol.iterator || "@@iterator",
37
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
38
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
39
- function define(obj, key, value) {
40
- return Object.defineProperty(obj, key, {
41
- value: value,
42
- enumerable: !0,
43
- configurable: !0,
44
- writable: !0
45
- }), obj[key];
46
- }
47
- try {
48
- define({}, "");
49
- } catch (err) {
50
- define = function (obj, key, value) {
51
- return obj[key] = value;
52
- };
53
- }
54
- function wrap(innerFn, outerFn, self, tryLocsList) {
55
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
56
- generator = Object.create(protoGenerator.prototype),
57
- context = new Context(tryLocsList || []);
58
- return defineProperty(generator, "_invoke", {
59
- value: makeInvokeMethod(innerFn, self, context)
60
- }), generator;
61
- }
62
- function tryCatch(fn, obj, arg) {
63
- try {
64
- return {
65
- type: "normal",
66
- arg: fn.call(obj, arg)
67
- };
68
- } catch (err) {
69
- return {
70
- type: "throw",
71
- arg: err
72
- };
73
- }
74
- }
75
- exports.wrap = wrap;
76
- var ContinueSentinel = {};
77
- function Generator() {}
78
- function GeneratorFunction() {}
79
- function GeneratorFunctionPrototype() {}
80
- var IteratorPrototype = {};
81
- define(IteratorPrototype, iteratorSymbol, function () {
82
- return this;
83
- });
84
- var getProto = Object.getPrototypeOf,
85
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
86
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
87
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
88
- function defineIteratorMethods(prototype) {
89
- ["next", "throw", "return"].forEach(function (method) {
90
- define(prototype, method, function (arg) {
91
- return this._invoke(method, arg);
92
- });
93
- });
94
- }
95
- function AsyncIterator(generator, PromiseImpl) {
96
- function invoke(method, arg, resolve, reject) {
97
- var record = tryCatch(generator[method], generator, arg);
98
- if ("throw" !== record.type) {
99
- var result = record.arg,
100
- value = result.value;
101
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
102
- invoke("next", value, resolve, reject);
103
- }, function (err) {
104
- invoke("throw", err, resolve, reject);
105
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
106
- result.value = unwrapped, resolve(result);
107
- }, function (error) {
108
- return invoke("throw", error, resolve, reject);
109
- });
110
- }
111
- reject(record.arg);
112
- }
113
- var previousPromise;
114
- defineProperty(this, "_invoke", {
115
- value: function (method, arg) {
116
- function callInvokeWithMethodAndArg() {
117
- return new PromiseImpl(function (resolve, reject) {
118
- invoke(method, arg, resolve, reject);
119
- });
120
- }
121
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
122
- }
123
- });
124
- }
125
- function makeInvokeMethod(innerFn, self, context) {
126
- var state = "suspendedStart";
127
- return function (method, arg) {
128
- if ("executing" === state) throw new Error("Generator is already running");
129
- if ("completed" === state) {
130
- if ("throw" === method) throw arg;
131
- return {
132
- value: void 0,
133
- done: !0
66
+ function _nonIterableRest() {
67
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68
+ }
69
+ function _regenerator() {
70
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
71
+ var e,
72
+ t,
73
+ r = "function" == typeof Symbol ? Symbol : {},
74
+ n = r.iterator || "@@iterator",
75
+ o = r.toStringTag || "@@toStringTag";
76
+ function i(r, n, o, i) {
77
+ var c = n && n.prototype instanceof Generator ? n : Generator,
78
+ u = Object.create(c.prototype);
79
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
80
+ var i,
81
+ c,
82
+ u,
83
+ f = 0,
84
+ p = o || [],
85
+ y = false,
86
+ G = {
87
+ p: 0,
88
+ n: 0,
89
+ v: e,
90
+ a: d,
91
+ f: d.bind(e, 4),
92
+ d: function (t, r) {
93
+ return i = t, c = 0, u = e, G.n = r, a;
94
+ }
134
95
  };
96
+ function d(r, n) {
97
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
98
+ var o,
99
+ i = p[t],
100
+ d = G.p,
101
+ l = i[2];
102
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
103
+ }
104
+ if (o || r > 1) return a;
105
+ throw y = true, n;
135
106
  }
136
- for (context.method = method, context.arg = arg;;) {
137
- var delegate = context.delegate;
138
- if (delegate) {
139
- var delegateResult = maybeInvokeDelegate(delegate, context);
140
- if (delegateResult) {
141
- if (delegateResult === ContinueSentinel) continue;
142
- return delegateResult;
107
+ return function (o, p, l) {
108
+ if (f > 1) throw TypeError("Generator is already running");
109
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
110
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
111
+ try {
112
+ if (f = 2, i) {
113
+ if (c || (o = "next"), t = i[o]) {
114
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
115
+ if (!t.done) return t;
116
+ u = t.value, c < 2 && (c = 0);
117
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
118
+ i = e;
119
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
120
+ } catch (t) {
121
+ i = e, c = 1, u = t;
122
+ } finally {
123
+ f = 1;
143
124
  }
144
125
  }
145
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
146
- if ("suspendedStart" === state) throw state = "completed", context.arg;
147
- context.dispatchException(context.arg);
148
- } else "return" === context.method && context.abrupt("return", context.arg);
149
- state = "executing";
150
- var record = tryCatch(innerFn, self, context);
151
- if ("normal" === record.type) {
152
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
153
- return {
154
- value: record.arg,
155
- done: context.done
156
- };
157
- }
158
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
159
- }
160
- };
161
- }
162
- function maybeInvokeDelegate(delegate, context) {
163
- var methodName = context.method,
164
- method = delegate.iterator[methodName];
165
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
166
- var record = tryCatch(method, delegate.iterator, context.arg);
167
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
168
- var info = record.arg;
169
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
170
- }
171
- function pushTryEntry(locs) {
172
- var entry = {
173
- tryLoc: locs[0]
174
- };
175
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
176
- }
177
- function resetTryEntry(entry) {
178
- var record = entry.completion || {};
179
- record.type = "normal", delete record.arg, entry.completion = record;
180
- }
181
- function Context(tryLocsList) {
182
- this.tryEntries = [{
183
- tryLoc: "root"
184
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
185
- }
186
- function values(iterable) {
187
- if (iterable || "" === iterable) {
188
- var iteratorMethod = iterable[iteratorSymbol];
189
- if (iteratorMethod) return iteratorMethod.call(iterable);
190
- if ("function" == typeof iterable.next) return iterable;
191
- if (!isNaN(iterable.length)) {
192
- var i = -1,
193
- next = function next() {
194
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
195
- return next.value = undefined, next.done = !0, next;
196
- };
197
- return next.next = next;
198
- }
199
- }
200
- throw new TypeError(typeof iterable + " is not iterable");
126
+ return {
127
+ value: t,
128
+ done: y
129
+ };
130
+ };
131
+ }(r, o, i), true), u;
201
132
  }
202
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
203
- value: GeneratorFunctionPrototype,
204
- configurable: !0
205
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
206
- value: GeneratorFunction,
207
- configurable: !0
208
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
209
- var ctor = "function" == typeof genFun && genFun.constructor;
210
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
211
- }, exports.mark = function (genFun) {
212
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
213
- }, exports.awrap = function (arg) {
214
- return {
215
- __await: arg
216
- };
217
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
218
- return this;
219
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
220
- void 0 === PromiseImpl && (PromiseImpl = Promise);
221
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
222
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
223
- return result.done ? result.value : iter.next();
224
- });
225
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
133
+ var a = {};
134
+ function Generator() {}
135
+ function GeneratorFunction() {}
136
+ function GeneratorFunctionPrototype() {}
137
+ t = Object.getPrototypeOf;
138
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
139
+ return this;
140
+ }), t),
141
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
142
+ function f(e) {
143
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
144
+ }
145
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
226
146
  return this;
227
- }), define(Gp, "toString", function () {
147
+ }), _regeneratorDefine(u, "toString", function () {
228
148
  return "[object Generator]";
229
- }), exports.keys = function (val) {
230
- var object = Object(val),
231
- keys = [];
232
- for (var key in object) keys.push(key);
233
- return keys.reverse(), function next() {
234
- for (; keys.length;) {
235
- var key = keys.pop();
236
- if (key in object) return next.value = key, next.done = !1, next;
237
- }
238
- return next.done = !0, next;
149
+ }), (_regenerator = function () {
150
+ return {
151
+ w: i,
152
+ m: f
239
153
  };
240
- }, exports.values = values, Context.prototype = {
241
- constructor: Context,
242
- reset: function (skipTempReset) {
243
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
244
- },
245
- stop: function () {
246
- this.done = !0;
247
- var rootRecord = this.tryEntries[0].completion;
248
- if ("throw" === rootRecord.type) throw rootRecord.arg;
249
- return this.rval;
250
- },
251
- dispatchException: function (exception) {
252
- if (this.done) throw exception;
253
- var context = this;
254
- function handle(loc, caught) {
255
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
256
- }
257
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
258
- var entry = this.tryEntries[i],
259
- record = entry.completion;
260
- if ("root" === entry.tryLoc) return handle("end");
261
- if (entry.tryLoc <= this.prev) {
262
- var hasCatch = hasOwn.call(entry, "catchLoc"),
263
- hasFinally = hasOwn.call(entry, "finallyLoc");
264
- if (hasCatch && hasFinally) {
265
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
266
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
267
- } else if (hasCatch) {
268
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
269
- } else {
270
- if (!hasFinally) throw new Error("try statement without catch or finally");
271
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
272
- }
273
- }
274
- }
275
- },
276
- abrupt: function (type, arg) {
277
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
278
- var entry = this.tryEntries[i];
279
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
280
- var finallyEntry = entry;
281
- break;
282
- }
283
- }
284
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
285
- var record = finallyEntry ? finallyEntry.completion : {};
286
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
287
- },
288
- complete: function (record, afterLoc) {
289
- if ("throw" === record.type) throw record.arg;
290
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
291
- },
292
- finish: function (finallyLoc) {
293
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
294
- var entry = this.tryEntries[i];
295
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
296
- }
297
- },
298
- catch: function (tryLoc) {
299
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
300
- var entry = this.tryEntries[i];
301
- if (entry.tryLoc === tryLoc) {
302
- var record = entry.completion;
303
- if ("throw" === record.type) {
304
- var thrown = record.arg;
305
- resetTryEntry(entry);
306
- }
307
- return thrown;
308
- }
309
- }
310
- throw new Error("illegal catch attempt");
311
- },
312
- delegateYield: function (iterable, resultName, nextLoc) {
313
- return this.delegate = {
314
- iterator: values(iterable),
315
- resultName: resultName,
316
- nextLoc: nextLoc
317
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
318
- }
319
- }, exports;
154
+ })();
320
155
  }
321
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
156
+ function _regeneratorDefine(e, r, n, t) {
157
+ var i = Object.defineProperty;
322
158
  try {
323
- var info = gen[key](arg);
324
- var value = info.value;
325
- } catch (error) {
326
- reject(error);
327
- return;
328
- }
329
- if (info.done) {
330
- resolve(value);
331
- } else {
332
- Promise.resolve(value).then(_next, _throw);
333
- }
159
+ i({}, "", {});
160
+ } catch (e) {
161
+ i = 0;
162
+ }
163
+ _regeneratorDefine = function (e, r, n, t) {
164
+ function o(r, n) {
165
+ _regeneratorDefine(e, r, function (e) {
166
+ return this._invoke(r, n, e);
167
+ });
168
+ }
169
+ r ? i ? i(e, r, {
170
+ value: n,
171
+ enumerable: !t,
172
+ configurable: !t,
173
+ writable: !t
174
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
175
+ }, _regeneratorDefine(e, r, n, t);
334
176
  }
335
- function _asyncToGenerator(fn) {
336
- return function () {
337
- var self = this,
338
- args = arguments;
339
- return new Promise(function (resolve, reject) {
340
- var gen = fn.apply(self, args);
341
- function _next(value) {
342
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
343
- }
344
- function _throw(err) {
345
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
346
- }
347
- _next(undefined);
348
- });
349
- };
177
+ function _slicedToArray(r, e) {
178
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
350
179
  }
351
- function _defineProperty(obj, key, value) {
352
- key = _toPropertyKey(key);
353
- if (key in obj) {
354
- Object.defineProperty(obj, key, {
355
- value: value,
356
- enumerable: true,
357
- configurable: true,
358
- writable: true
359
- });
360
- } else {
361
- obj[key] = value;
180
+ function _toPrimitive(t, r) {
181
+ if ("object" != typeof t || !t) return t;
182
+ var e = t[Symbol.toPrimitive];
183
+ if (void 0 !== e) {
184
+ var i = e.call(t, r);
185
+ if ("object" != typeof i) return i;
186
+ throw new TypeError("@@toPrimitive must return a primitive value.");
362
187
  }
363
- return obj;
364
- }
365
- function _slicedToArray(arr, i) {
366
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
367
- }
368
- function _arrayWithHoles(arr) {
369
- if (Array.isArray(arr)) return arr;
370
- }
371
- function _unsupportedIterableToArray(o, minLen) {
372
- if (!o) return;
373
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
374
- var n = Object.prototype.toString.call(o).slice(8, -1);
375
- if (n === "Object" && o.constructor) n = o.constructor.name;
376
- if (n === "Map" || n === "Set") return Array.from(o);
377
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
188
+ return ("string" === r ? String : Number)(t);
378
189
  }
379
- function _arrayLikeToArray(arr, len) {
380
- if (len == null || len > arr.length) len = arr.length;
381
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
382
- return arr2;
190
+ function _toPropertyKey(t) {
191
+ var i = _toPrimitive(t, "string");
192
+ return "symbol" == typeof i ? i : i + "";
383
193
  }
384
- function _nonIterableRest() {
385
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
386
- }
387
- function _toPrimitive(input, hint) {
388
- if (typeof input !== "object" || input === null) return input;
389
- var prim = input[Symbol.toPrimitive];
390
- if (prim !== undefined) {
391
- var res = prim.call(input, hint || "default");
392
- if (typeof res !== "object") return res;
393
- throw new TypeError("@@toPrimitive must return a primitive value.");
194
+ function _unsupportedIterableToArray(r, a) {
195
+ if (r) {
196
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
197
+ var t = {}.toString.call(r).slice(8, -1);
198
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
394
199
  }
395
- return (hint === "string" ? String : Number)(input);
396
- }
397
- function _toPropertyKey(arg) {
398
- var key = _toPrimitive(arg, "string");
399
- return typeof key === "symbol" ? key : String(key);
400
200
  }
401
201
 
402
- export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _asyncToGenerator as asyncToGenerator, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _regeneratorRuntime as regeneratorRuntime, _slicedToArray as slicedToArray, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey, _unsupportedIterableToArray as unsupportedIterableToArray };
202
+ export { _arrayLikeToArray as arrayLikeToArray, _arrayWithHoles as arrayWithHoles, _asyncToGenerator as asyncToGenerator, _defineProperty as defineProperty, _iterableToArrayLimit as iterableToArrayLimit, _nonIterableRest as nonIterableRest, _regenerator as regenerator, _regeneratorDefine as regeneratorDefine, _slicedToArray as slicedToArray, _toPrimitive as toPrimitive, _toPropertyKey as toPropertyKey, _unsupportedIterableToArray as unsupportedIterableToArray };
@@ -0,0 +1,3 @@
1
+ var shim = {exports: {}};
2
+
3
+ export { shim as __module };
@@ -0,0 +1,3 @@
1
+ var useSyncExternalStoreShim_production = {};
2
+
3
+ export { useSyncExternalStoreShim_production as __exports };
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
 
3
3
  var useCallbackProp = function useCallbackProp(cb) {
4
- var cbRef = React.useRef(cb);
5
- React.useEffect(function () {
4
+ var cbRef = React__default.useRef(cb);
5
+ React__default.useEffect(function () {
6
6
  cbRef.current = cb;
7
7
  }, [cb]);
8
8
  return cbRef;
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import { useDebounce } from 'react-use';
3
3
  import { isEqual, cloneDeep } from 'lodash-es';
4
4
 
5
5
  var DEBOUNCE_TIME = 10;
6
6
  var useDeepClonedCompareEffect = function useDeepClonedCompareEffect(effect, deps) {
7
- var _ref = React.useRef();
7
+ var _ref = React__default.useRef();
8
8
  useDebounce(function () {
9
9
  if (!_ref.current || !isEqual(deps, _ref.current)) {
10
10
  _ref.current = cloneDeep(deps);
@@ -1,12 +1,8 @@
1
1
  import { getGlobalOrganizationGet } from '@elice/api-client';
2
- import { useQuery } from '@tanstack/react-query';
3
- import 'react/jsx-runtime';
4
- import 'react';
5
- import '../material-config/MaterialConfigContext.js';
6
- import { useMaterialConfig } from '../material-config/useMaterialConfig.js';
7
- import 'react-use';
8
2
  import img$1 from '../assets/ai_helpy.png.js';
9
3
  import img from '../assets/helpy-logo-no-brand.png.js';
4
+ import { useMaterialConfig } from '../material-config/useMaterialConfig.js';
5
+ import { useQuery } from '../node_modules/@tanstack/react-query/build/lib/useQuery.js';
10
6
 
11
7
  //
12
8
  //
package/es/index.js CHANGED
@@ -1,10 +1,10 @@
1
+ export { default as MaterialConfigProvider } from './material-config/MaterialConfigProvider.js';
2
+ export { updateMaterialConfigSessionKey } from './material-config/utils.js';
1
3
  export { useCallbackProp } from './hooks/useCallbackProp.js';
2
4
  export { useDeepClonedCompareEffect } from './hooks/useDeepClonedCompareEffect.js';
3
5
  export { useHelpyLogo } from './hooks/useHelpyLogo.js';
4
- export { default as MaterialConfigProvider } from './material-config/MaterialConfigProvider.js';
5
6
  export { useMaterialConfig } from './material-config/useMaterialConfig.js';
6
7
  export { useMaterialConfigApiClientUpdate } from './material-config/useMaterialConfigApiClientUpdate.js';
7
- export { updateMaterialConfigSessionKey } from './material-config/utils.js';
8
8
  export { useMaterialFetch } from './material-fetch/useMaterialFetch.js';
9
9
  export { useMaterialFetchRaw } from './material-fetch/useMaterialFetchRaw.js';
10
10
  export { withForwardRefMaterial, withMaterial } from './material-hoc/withMaterial.js';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { BehaviorSubject } from 'rxjs';
3
2
  export type MaterialConfigSessionKey = null | string;
4
3
  export interface MaterialConfig {