propro-common-components 0.1.41 → 0.1.43
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/api/useMutate.d.ts
CHANGED
@@ -16,13 +16,7 @@ declare const useMutate: ({ url, method, headers, invalidateAllQueries, successL
|
|
16
16
|
errorMessage: string;
|
17
17
|
options?: ToastOptions<unknown> | undefined;
|
18
18
|
} | undefined;
|
19
|
-
onSuccess?: ((res:
|
20
|
-
data: unknown;
|
21
|
-
}) => void) | undefined;
|
19
|
+
onSuccess?: ((res: unknown) => void) | undefined;
|
22
20
|
onError?: ((err: AxiosError) => void) | undefined;
|
23
|
-
}, options?: UseMutationOptions<
|
24
|
-
data: unknown;
|
25
|
-
}, AxiosError, unknown, unknown>) => UseMutationResult<{
|
26
|
-
data: unknown;
|
27
|
-
}, AxiosError, unknown, unknown>;
|
21
|
+
}, options?: UseMutationOptions<unknown, AxiosError, unknown, unknown>) => UseMutationResult<unknown, AxiosError, unknown, unknown>;
|
28
22
|
export default useMutate;
|
@@ -29605,7 +29605,7 @@ const AccountManagement = () => {
|
|
29605
29605
|
}, handleAuth = async () => {
|
29606
29606
|
try {
|
29607
29607
|
const m = await axios.post("/api/auth");
|
29608
|
-
|
29608
|
+
m.data.redirectUrl && (window.location.href = m.data.redirectUrl);
|
29609
29609
|
} catch {
|
29610
29610
|
toast("ssj");
|
29611
29611
|
}
|
@@ -29616,8 +29616,21 @@ const AccountManagement = () => {
|
|
29616
29616
|
}
|
29617
29617
|
if (!getCookie("has_account_token"))
|
29618
29618
|
try {
|
29619
|
-
await axios.post("/api/
|
29619
|
+
await axios.post("/api/refreshToke");
|
29620
29620
|
} catch {
|
29621
|
+
setTimeout(() => {
|
29622
|
+
handleAuth();
|
29623
|
+
}, 5e3), toast("Unable to authenticate, Please log in again", {
|
29624
|
+
position: "bottom-right",
|
29625
|
+
hideProgressBar: !1,
|
29626
|
+
closeOnClick: !0,
|
29627
|
+
pauseOnHover: !0,
|
29628
|
+
draggable: !0,
|
29629
|
+
progress: void 0,
|
29630
|
+
theme: "light",
|
29631
|
+
isLoading: !0,
|
29632
|
+
autoClose: !1
|
29633
|
+
});
|
29621
29634
|
}
|
29622
29635
|
};
|
29623
29636
|
let id$2 = 0;
|
@@ -37177,7 +37190,7 @@ var parseStyle = function m(g) {
|
|
37177
37190
|
function uniqueHash(m, g) {
|
37178
37191
|
return murmur2$1("".concat(m.join("%")).concat(g));
|
37179
37192
|
}
|
37180
|
-
function Empty
|
37193
|
+
function Empty() {
|
37181
37194
|
return null;
|
37182
37195
|
}
|
37183
37196
|
var STYLE_PREFIX = "style";
|
@@ -37237,7 +37250,7 @@ function useStyleRegister(m, g) {
|
|
37237
37250
|
return function(be) {
|
37238
37251
|
var ve;
|
37239
37252
|
if (!Z || re || !B)
|
37240
|
-
ve = /* @__PURE__ */ React.createElement(Empty
|
37253
|
+
ve = /* @__PURE__ */ React.createElement(Empty, null);
|
37241
37254
|
else {
|
37242
37255
|
var Se;
|
37243
37256
|
ve = /* @__PURE__ */ React.createElement("style", _extends$5({}, (Se = {}, _defineProperty$1(Se, ATTR_TOKEN, me), _defineProperty$1(Se, ATTR_MARK, ye), Se), {
|
@@ -56670,14 +56683,14 @@ var _propertyDesc = function(m, g) {
|
|
56670
56683
|
writable: !(m & 4),
|
56671
56684
|
value: g
|
56672
56685
|
};
|
56673
|
-
}, dP$
|
56674
|
-
return dP$
|
56686
|
+
}, dP$1 = require_objectDp(), createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(m, g, b) {
|
56687
|
+
return dP$1.f(m, g, createDesc$2(1, b));
|
56675
56688
|
} : function(m, g, b) {
|
56676
56689
|
return m[g] = b, m;
|
56677
56690
|
}, hasOwnProperty = {}.hasOwnProperty, _has = function(m, g) {
|
56678
56691
|
return hasOwnProperty.call(m, g);
|
56679
|
-
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$6 = _has, PROTOTYPE$
|
56680
|
-
var _ = m & $export$5.F, x = m & $export$5.G, C = m & $export$5.S, $ = m & $export$5.P, I = m & $export$5.B, R = m & $export$5.W, P = x ? core$2 : core$2[g] || (core$2[g] = {}), N = P[PROTOTYPE$
|
56692
|
+
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$6 = _has, PROTOTYPE$1 = "prototype", $export$5 = function(m, g, b) {
|
56693
|
+
var _ = m & $export$5.F, x = m & $export$5.G, C = m & $export$5.S, $ = m & $export$5.P, I = m & $export$5.B, R = m & $export$5.W, P = x ? core$2 : core$2[g] || (core$2[g] = {}), N = P[PROTOTYPE$1], z = x ? global$4 : C ? global$4[g] : (global$4[g] || {})[PROTOTYPE$1], D, B, W;
|
56681
56694
|
x && (b = g);
|
56682
56695
|
for (D in b)
|
56683
56696
|
B = !_ && z && z[D] !== void 0, !(B && has$6(P, D)) && (W = B ? z[D] : b[D], P[D] = x && typeof z[D] != "function" ? b[D] : I && B ? ctx(W, global$4) : R && z[D] == W ? function(V) {
|
@@ -56695,7 +56708,7 @@ var _propertyDesc = function(m, g) {
|
|
56695
56708
|
}
|
56696
56709
|
return V.apply(this, arguments);
|
56697
56710
|
};
|
56698
|
-
return Z[PROTOTYPE$
|
56711
|
+
return Z[PROTOTYPE$1] = V[PROTOTYPE$1], Z;
|
56699
56712
|
}(W) : $ && typeof W == "function" ? ctx(Function.call, W) : W, $ && ((P.virtual || (P.virtual = {}))[D] = W, m & $export$5.R && N && !N[D] && hide$1(N, D, W)));
|
56700
56713
|
};
|
56701
56714
|
$export$5.F = 1;
|
@@ -56755,15 +56768,15 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
|
|
56755
56768
|
return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$1 + px).toString(36));
|
56756
56769
|
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(m) {
|
56757
56770
|
return shared$1[m] || (shared$1[m] = uid$2(m));
|
56758
|
-
}, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$
|
56771
|
+
}, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$1 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(m, g) {
|
56759
56772
|
var b = toIObject$4(m), _ = 0, x = [], C;
|
56760
56773
|
for (C in b)
|
56761
|
-
C != IE_PROTO$
|
56774
|
+
C != IE_PROTO$1 && has$5(b, C) && x.push(C);
|
56762
56775
|
for (; g.length > _; )
|
56763
56776
|
has$5(b, C = g[_++]) && (~arrayIndexOf(x, C) || x.push(C));
|
56764
56777
|
return x;
|
56765
|
-
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys
|
56766
|
-
return $keys$2(g, enumBugKeys
|
56778
|
+
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys = _enumBugKeys, _objectKeys = Object.keys || function(g) {
|
56779
|
+
return $keys$2(g, enumBugKeys);
|
56767
56780
|
}, _objectGops = {};
|
56768
56781
|
_objectGops.f = Object.getOwnPropertySymbols;
|
56769
56782
|
var _objectPie = {}, hasRequired_objectPie;
|
@@ -56806,8 +56819,8 @@ _extends.default = _assign2.default || function(m) {
|
|
56806
56819
|
}
|
56807
56820
|
return m;
|
56808
56821
|
};
|
56809
|
-
var has$4 = _has, toObject$2 = _toObject, IE_PROTO
|
56810
|
-
return m = toObject$2(m), has$4(m, IE_PROTO
|
56822
|
+
var has$4 = _has, toObject$2 = _toObject, IE_PROTO = _sharedKey("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(m) {
|
56823
|
+
return m = toObject$2(m), has$4(m, IE_PROTO) ? m[IE_PROTO] : typeof m.constructor == "function" && m instanceof m.constructor ? m.constructor.prototype : m instanceof Object ? ObjectProto$1 : null;
|
56811
56824
|
}, _objectSap, hasRequired_objectSap;
|
56812
56825
|
function require_objectSap() {
|
56813
56826
|
if (hasRequired_objectSap)
|
@@ -56859,12 +56872,20 @@ var possibleConstructorReturn = {}, _typeof$1 = {}, toInteger = _toInteger, defi
|
|
56859
56872
|
var _ = String(defined(g)), x = toInteger(b), C = _.length, $, I;
|
56860
56873
|
return x < 0 || x >= C ? m ? "" : void 0 : ($ = _.charCodeAt(x), $ < 55296 || $ > 56319 || x + 1 === C || (I = _.charCodeAt(x + 1)) < 56320 || I > 57343 ? m ? _.charAt(x) : $ : m ? _.slice(x, x + 2) : ($ - 55296 << 10) + (I - 56320) + 65536);
|
56861
56874
|
};
|
56862
|
-
}, _redefine = _hide, _iterators = {},
|
56863
|
-
|
56864
|
-
|
56865
|
-
|
56866
|
-
|
56867
|
-
|
56875
|
+
}, _redefine = _hide, _iterators = {}, _objectDps, hasRequired_objectDps;
|
56876
|
+
function require_objectDps() {
|
56877
|
+
if (hasRequired_objectDps)
|
56878
|
+
return _objectDps;
|
56879
|
+
hasRequired_objectDps = 1;
|
56880
|
+
var m = require_objectDp(), g = _anObject, b = _objectKeys;
|
56881
|
+
return _objectDps = require_descriptors() ? Object.defineProperties : function(x, C) {
|
56882
|
+
g(x);
|
56883
|
+
for (var $ = b(C), I = $.length, R = 0, P; I > R; )
|
56884
|
+
m.f(x, P = $[R++], C[P]);
|
56885
|
+
return x;
|
56886
|
+
}, _objectDps;
|
56887
|
+
}
|
56888
|
+
var _html, hasRequired_html;
|
56868
56889
|
function require_html() {
|
56869
56890
|
if (hasRequired_html)
|
56870
56891
|
return _html;
|
@@ -56872,16 +56893,24 @@ function require_html() {
|
|
56872
56893
|
var m = _globalExports.document;
|
56873
56894
|
return _html = m && m.documentElement, _html;
|
56874
56895
|
}
|
56875
|
-
var
|
56876
|
-
|
56877
|
-
|
56878
|
-
|
56879
|
-
|
56880
|
-
|
56881
|
-
},
|
56882
|
-
|
56883
|
-
|
56884
|
-
|
56896
|
+
var _objectCreate, hasRequired_objectCreate;
|
56897
|
+
function require_objectCreate() {
|
56898
|
+
if (hasRequired_objectCreate)
|
56899
|
+
return _objectCreate;
|
56900
|
+
hasRequired_objectCreate = 1;
|
56901
|
+
var m = _anObject, g = require_objectDps(), b = _enumBugKeys, _ = _sharedKey("IE_PROTO"), x = function() {
|
56902
|
+
}, C = "prototype", $ = function() {
|
56903
|
+
var I = require_domCreate()("iframe"), R = b.length, P = "<", N = ">", z;
|
56904
|
+
for (I.style.display = "none", require_html().appendChild(I), I.src = "javascript:", z = I.contentWindow.document, z.open(), z.write(P + "script" + N + "document.F=Object" + P + "/script" + N), z.close(), $ = z.F; R--; )
|
56905
|
+
delete $[C][b[R]];
|
56906
|
+
return $();
|
56907
|
+
};
|
56908
|
+
return _objectCreate = Object.create || function(R, P) {
|
56909
|
+
var N;
|
56910
|
+
return R !== null ? (x[C] = m(R), N = new x(), x[C] = null, N[_] = R) : N = $(), P === void 0 ? N : g(N, P);
|
56911
|
+
}, _objectCreate;
|
56912
|
+
}
|
56913
|
+
var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(m) {
|
56885
56914
|
return store[m] || (store[m] = USE_SYMBOL && Symbol$1[m] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + m));
|
56886
56915
|
};
|
56887
56916
|
$exports.store = store;
|
@@ -56892,7 +56921,7 @@ function require_iterCreate() {
|
|
56892
56921
|
if (hasRequired_iterCreate)
|
56893
56922
|
return _iterCreate;
|
56894
56923
|
hasRequired_iterCreate = 1;
|
56895
|
-
var m =
|
56924
|
+
var m = require_objectCreate(), g = _propertyDesc, b = _setToStringTag, _ = {};
|
56896
56925
|
return _hide(_, _wksExports("iterator"), function() {
|
56897
56926
|
return this;
|
56898
56927
|
}), _iterCreate = function(x, C, $) {
|
@@ -57039,7 +57068,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
|
57039
57068
|
if (has$1(g, b))
|
57040
57069
|
return createDesc$1(!pIE.f.call(g, b), g[b]);
|
57041
57070
|
};
|
57042
|
-
var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray = _isArray, anObject = _anObject, isObject = _isObject, toObject = _toObject, toIObject = _toIobject, toPrimitive = _toPrimitive, createDesc = _propertyDesc, _create$1 =
|
57071
|
+
var global$1 = _globalExports, has = _has, DESCRIPTORS = require_descriptors(), $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = require_fails(), shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray = _isArray, anObject = _anObject, isObject = _isObject, toObject = _toObject, toIObject = _toIobject, toPrimitive = _toPrimitive, createDesc = _propertyDesc, _create$1 = require_objectCreate(), gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = _objectGops, $DP = require_objectDp(), $keys = _objectKeys, gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$1.Symbol, $JSON = global$1.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$1.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
|
57043
57072
|
return _create$1(dP({}, "a", {
|
57044
57073
|
get: function() {
|
57045
57074
|
return dP(this, "a", { value: 7 }).a;
|
@@ -57217,7 +57246,7 @@ function require_setProto() {
|
|
57217
57246
|
var $export$1 = _export;
|
57218
57247
|
$export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
57219
57248
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
|
57220
|
-
$export($export.S, "Object", { create:
|
57249
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
57221
57250
|
var $Object = _coreExports.Object, create$1 = function(g, b) {
|
57222
57251
|
return $Object.create(g, b);
|
57223
57252
|
}, create = { default: create$1, __esModule: !0 };
|