@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.
- package/cjs/_virtual/_rollupPluginBabelHelpers.js +177 -376
- package/cjs/_virtual/index.js +5 -0
- package/cjs/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/cjs/hooks/useHelpyLogo.js +3 -7
- package/cjs/index.js +4 -4
- package/cjs/material-config/MaterialConfigContext.d.ts +0 -1
- package/cjs/material-config/MaterialConfigContext.js +2 -2
- package/cjs/material-fetch/useMaterialFetch.d.ts +2 -47
- package/cjs/material-fetch/useMaterialFetch.js +1 -4
- package/cjs/material-fetch/useMaterialFetchRaw.d.ts +1 -1
- package/cjs/material-fetch/useMaterialFetchRaw.js +12 -19
- package/cjs/material-hoc/withMaterial.d.ts +1 -1
- package/cjs/material-hoc/withMaterial.js +0 -1
- package/cjs/node_modules/@tanstack/query-core/build/lib/focusManager.js +93 -0
- package/cjs/node_modules/@tanstack/query-core/build/lib/notifyManager.js +101 -0
- package/cjs/node_modules/@tanstack/query-core/build/lib/onlineManager.js +95 -0
- package/cjs/node_modules/@tanstack/query-core/build/lib/queryObserver.js +571 -0
- package/cjs/node_modules/@tanstack/query-core/build/lib/retryer.js +21 -0
- package/cjs/node_modules/@tanstack/query-core/build/lib/subscribable.js +33 -0
- package/cjs/node_modules/@tanstack/query-core/build/lib/utils.js +154 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js +65 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js +46 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js +52 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/isRestoring.js +31 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/suspense.js +39 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/useBaseQuery.js +94 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/useQuery.js +14 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js +9 -0
- package/cjs/node_modules/@tanstack/react-query/build/lib/utils.js +12 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +39 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/Observable.js +105 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/Subject.js +165 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/Subscriber.js +157 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/Subscription.js +148 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/config.js +6 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +19 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +5 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +13 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +16 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +10 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +14 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +9 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/identity.js +7 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +7 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/noop.js +5 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/pipe.js +17 -0
- package/cjs/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +13 -0
- package/cjs/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +77 -0
- package/cjs/node_modules/use-sync-external-store/shim/index.js +13 -0
- package/es/_virtual/_rollupPluginBabelHelpers.js +176 -376
- package/es/_virtual/index.js +3 -0
- package/es/_virtual/use-sync-external-store-shim.production.js +3 -0
- package/es/hooks/useCallbackProp.js +3 -3
- package/es/hooks/useDeepClonedCompareEffect.js +2 -2
- package/es/hooks/useHelpyLogo.js +2 -6
- package/es/index.js +2 -2
- package/es/material-config/MaterialConfigContext.d.ts +0 -1
- package/es/material-config/MaterialConfigContext.js +1 -1
- package/es/material-config/MaterialConfigProvider.js +5 -5
- package/es/material-fetch/useMaterialFetch.d.ts +2 -47
- package/es/material-fetch/useMaterialFetch.js +1 -4
- package/es/material-fetch/useMaterialFetchRaw.d.ts +1 -1
- package/es/material-fetch/useMaterialFetchRaw.js +13 -20
- package/es/material-hoc/withMaterial.d.ts +1 -1
- package/es/material-hoc/withMaterial.js +0 -1
- package/es/node_modules/@tanstack/query-core/build/lib/focusManager.js +90 -0
- package/es/node_modules/@tanstack/query-core/build/lib/notifyManager.js +98 -0
- package/es/node_modules/@tanstack/query-core/build/lib/onlineManager.js +92 -0
- package/es/node_modules/@tanstack/query-core/build/lib/queryObserver.js +569 -0
- package/es/node_modules/@tanstack/query-core/build/lib/retryer.js +17 -0
- package/es/node_modules/@tanstack/query-core/build/lib/subscribable.js +31 -0
- package/es/node_modules/@tanstack/query-core/build/lib/utils.js +140 -0
- package/es/node_modules/@tanstack/react-query/build/lib/QueryClientProvider.js +42 -0
- package/es/node_modules/@tanstack/react-query/build/lib/QueryErrorResetBoundary.js +24 -0
- package/es/node_modules/@tanstack/react-query/build/lib/errorBoundaryUtils.js +28 -0
- package/es/node_modules/@tanstack/react-query/build/lib/isRestoring.js +9 -0
- package/es/node_modules/@tanstack/react-query/build/lib/suspense.js +34 -0
- package/es/node_modules/@tanstack/react-query/build/lib/useBaseQuery.js +72 -0
- package/es/node_modules/@tanstack/react-query/build/lib/useQuery.js +12 -0
- package/es/node_modules/@tanstack/react-query/build/lib/useSyncExternalStore.js +7 -0
- package/es/node_modules/@tanstack/react-query/build/lib/utils.js +10 -0
- package/es/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +37 -0
- package/es/node_modules/rxjs/dist/esm5/internal/Observable.js +103 -0
- package/es/node_modules/rxjs/dist/esm5/internal/Subject.js +162 -0
- package/es/node_modules/rxjs/dist/esm5/internal/Subscriber.js +153 -0
- package/es/node_modules/rxjs/dist/esm5/internal/Subscription.js +144 -0
- package/es/node_modules/rxjs/dist/esm5/internal/config.js +4 -0
- package/es/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +17 -0
- package/es/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +3 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +11 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +14 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +8 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +12 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +7 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/identity.js +5 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +5 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/noop.js +3 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/pipe.js +15 -0
- package/es/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +11 -0
- package/es/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +69 -0
- package/es/node_modules/use-sync-external-store/shim/index.js +11 -0
- package/package.json +6 -4
|
@@ -1,402 +1,202 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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 (
|
|
13
|
-
} catch (
|
|
14
|
-
|
|
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 (!
|
|
58
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
18
59
|
} finally {
|
|
19
|
-
if (
|
|
60
|
+
if (o) throw n;
|
|
20
61
|
}
|
|
21
62
|
}
|
|
22
|
-
return
|
|
63
|
+
return a;
|
|
23
64
|
}
|
|
24
65
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (
|
|
142
|
-
|
|
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
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
213
|
-
}
|
|
214
|
-
|
|
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
|
-
}),
|
|
147
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
228
148
|
return "[object Generator]";
|
|
229
|
-
}),
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
}
|
|
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
|
|
156
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
157
|
+
var i = Object.defineProperty;
|
|
322
158
|
try {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
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
|
|
336
|
-
return
|
|
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
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
|
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
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
return arr2;
|
|
190
|
+
function _toPropertyKey(t) {
|
|
191
|
+
var i = _toPrimitive(t, "string");
|
|
192
|
+
return "symbol" == typeof i ? i : i + "";
|
|
383
193
|
}
|
|
384
|
-
function
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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,
|
|
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 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
var useCallbackProp = function useCallbackProp(cb) {
|
|
4
|
-
var cbRef =
|
|
5
|
-
|
|
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
|
|
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 =
|
|
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);
|
package/es/hooks/useHelpyLogo.js
CHANGED
|
@@ -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';
|