propro-common-components 0.1.39 → 0.1.41
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
@@ -1,4 +1,4 @@
|
|
1
|
-
import { QueryKey, UseMutationResult } from "@tanstack/react-query";
|
1
|
+
import { QueryKey, UseMutationOptions, UseMutationResult } from "@tanstack/react-query";
|
2
2
|
import { AxiosError, AxiosRequestConfig } from "axios";
|
3
3
|
import { ToastOptions } from "react-toastify";
|
4
4
|
declare const useMutate: ({ url, method, headers, invalidateAllQueries, successLog, errorLog, logURL, toastMessage, onSuccess, onError, }: {
|
@@ -20,7 +20,9 @@ declare const useMutate: ({ url, method, headers, invalidateAllQueries, successL
|
|
20
20
|
data: unknown;
|
21
21
|
}) => void) | undefined;
|
22
22
|
onError?: ((err: AxiosError) => void) | undefined;
|
23
|
-
}, options?:
|
23
|
+
}, options?: UseMutationOptions<{
|
24
|
+
data: unknown;
|
25
|
+
}, AxiosError, unknown, unknown>) => UseMutationResult<{
|
24
26
|
data: unknown;
|
25
27
|
}, AxiosError, unknown, unknown>;
|
26
28
|
export default useMutate;
|
@@ -37177,7 +37177,7 @@ var parseStyle = function m(g) {
|
|
37177
37177
|
function uniqueHash(m, g) {
|
37178
37178
|
return murmur2$1("".concat(m.join("%")).concat(g));
|
37179
37179
|
}
|
37180
|
-
function Empty() {
|
37180
|
+
function Empty$1() {
|
37181
37181
|
return null;
|
37182
37182
|
}
|
37183
37183
|
var STYLE_PREFIX = "style";
|
@@ -37237,7 +37237,7 @@ function useStyleRegister(m, g) {
|
|
37237
37237
|
return function(be) {
|
37238
37238
|
var ve;
|
37239
37239
|
if (!Z || re || !B)
|
37240
|
-
ve = /* @__PURE__ */ React.createElement(Empty, null);
|
37240
|
+
ve = /* @__PURE__ */ React.createElement(Empty$1, null);
|
37241
37241
|
else {
|
37242
37242
|
var Se;
|
37243
37243
|
ve = /* @__PURE__ */ React.createElement("style", _extends$5({}, (Se = {}, _defineProperty$1(Se, ATTR_TOKEN, me), _defineProperty$1(Se, ATTR_MARK, ye), Se), {
|
@@ -56631,11 +56631,15 @@ function require_domCreate() {
|
|
56631
56631
|
return b ? g.createElement(_) : {};
|
56632
56632
|
}, _domCreate;
|
56633
56633
|
}
|
56634
|
-
var _ie8DomDefine
|
56635
|
-
|
56636
|
-
|
56637
|
-
|
56638
|
-
|
56634
|
+
var _ie8DomDefine, hasRequired_ie8DomDefine;
|
56635
|
+
function require_ie8DomDefine() {
|
56636
|
+
return hasRequired_ie8DomDefine || (hasRequired_ie8DomDefine = 1, _ie8DomDefine = !require_descriptors() && !require_fails()(function() {
|
56637
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
56638
|
+
return 7;
|
56639
|
+
} }).a != 7;
|
56640
|
+
})), _ie8DomDefine;
|
56641
|
+
}
|
56642
|
+
var isObject$2 = _isObject, _toPrimitive = function(m, g) {
|
56639
56643
|
if (!isObject$2(m))
|
56640
56644
|
return m;
|
56641
56645
|
var b, _;
|
@@ -56647,7 +56651,7 @@ function require_objectDp() {
|
|
56647
56651
|
if (hasRequired_objectDp)
|
56648
56652
|
return _objectDp;
|
56649
56653
|
hasRequired_objectDp = 1;
|
56650
|
-
var m = _anObject, g =
|
56654
|
+
var m = _anObject, g = require_ie8DomDefine(), b = _toPrimitive, _ = Object.defineProperty;
|
56651
56655
|
return _objectDp.f = require_descriptors() ? Object.defineProperty : function(C, $, I) {
|
56652
56656
|
if (m(C), $ = b($, !0), m(I), g)
|
56653
56657
|
try {
|
@@ -56666,14 +56670,14 @@ var _propertyDesc = function(m, g) {
|
|
56666
56670
|
writable: !(m & 4),
|
56667
56671
|
value: g
|
56668
56672
|
};
|
56669
|
-
}, dP$
|
56670
|
-
return dP$
|
56673
|
+
}, dP$2 = require_objectDp(), createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(m, g, b) {
|
56674
|
+
return dP$2.f(m, g, createDesc$2(1, b));
|
56671
56675
|
} : function(m, g, b) {
|
56672
56676
|
return m[g] = b, m;
|
56673
56677
|
}, hasOwnProperty = {}.hasOwnProperty, _has = function(m, g) {
|
56674
56678
|
return hasOwnProperty.call(m, g);
|
56675
|
-
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$6 = _has, PROTOTYPE$
|
56676
|
-
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$
|
56679
|
+
}, global$4 = _globalExports, core$2 = _coreExports, ctx = _ctx, hide$1 = _hide, has$6 = _has, PROTOTYPE$2 = "prototype", $export$5 = function(m, g, b) {
|
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$2], z = x ? global$4 : C ? global$4[g] : (global$4[g] || {})[PROTOTYPE$2], D, B, W;
|
56677
56681
|
x && (b = g);
|
56678
56682
|
for (D in b)
|
56679
56683
|
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) {
|
@@ -56691,7 +56695,7 @@ var _propertyDesc = function(m, g) {
|
|
56691
56695
|
}
|
56692
56696
|
return V.apply(this, arguments);
|
56693
56697
|
};
|
56694
|
-
return Z[PROTOTYPE$
|
56698
|
+
return Z[PROTOTYPE$2] = V[PROTOTYPE$2], Z;
|
56695
56699
|
}(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)));
|
56696
56700
|
};
|
56697
56701
|
$export$5.F = 1;
|
@@ -56751,15 +56755,15 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
|
|
56751
56755
|
return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$1 + px).toString(36));
|
56752
56756
|
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(m) {
|
56753
56757
|
return shared$1[m] || (shared$1[m] = uid$2(m));
|
56754
|
-
}, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$
|
56758
|
+
}, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$2 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(m, g) {
|
56755
56759
|
var b = toIObject$4(m), _ = 0, x = [], C;
|
56756
56760
|
for (C in b)
|
56757
|
-
C != IE_PROTO$
|
56761
|
+
C != IE_PROTO$2 && has$5(b, C) && x.push(C);
|
56758
56762
|
for (; g.length > _; )
|
56759
56763
|
has$5(b, C = g[_++]) && (~arrayIndexOf(x, C) || x.push(C));
|
56760
56764
|
return x;
|
56761
|
-
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys = _enumBugKeys, _objectKeys = Object.keys || function(g) {
|
56762
|
-
return $keys$2(g, enumBugKeys);
|
56765
|
+
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys$1 = _enumBugKeys, _objectKeys = Object.keys || function(g) {
|
56766
|
+
return $keys$2(g, enumBugKeys$1);
|
56763
56767
|
}, _objectGops = {};
|
56764
56768
|
_objectGops.f = Object.getOwnPropertySymbols;
|
56765
56769
|
var _objectPie = {}, hasRequired_objectPie;
|
@@ -56802,8 +56806,8 @@ _extends.default = _assign2.default || function(m) {
|
|
56802
56806
|
}
|
56803
56807
|
return m;
|
56804
56808
|
};
|
56805
|
-
var has$4 = _has, toObject$2 = _toObject, IE_PROTO = _sharedKey("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(m) {
|
56806
|
-
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;
|
56809
|
+
var has$4 = _has, toObject$2 = _toObject, IE_PROTO$1 = _sharedKey("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(m) {
|
56810
|
+
return m = toObject$2(m), has$4(m, IE_PROTO$1) ? m[IE_PROTO$1] : typeof m.constructor == "function" && m instanceof m.constructor ? m.constructor.prototype : m instanceof Object ? ObjectProto$1 : null;
|
56807
56811
|
}, _objectSap, hasRequired_objectSap;
|
56808
56812
|
function require_objectSap() {
|
56809
56813
|
if (hasRequired_objectSap)
|
@@ -56855,20 +56859,12 @@ var possibleConstructorReturn = {}, _typeof$1 = {}, toInteger = _toInteger, defi
|
|
56855
56859
|
var _ = String(defined(g)), x = toInteger(b), C = _.length, $, I;
|
56856
56860
|
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);
|
56857
56861
|
};
|
56858
|
-
}, _redefine = _hide, _iterators = {}, _objectDps,
|
56859
|
-
|
56860
|
-
|
56861
|
-
|
56862
|
-
|
56863
|
-
|
56864
|
-
return _objectDps = require_descriptors() ? Object.defineProperties : function(x, C) {
|
56865
|
-
g(x);
|
56866
|
-
for (var $ = b(C), I = $.length, R = 0, P; I > R; )
|
56867
|
-
m.f(x, P = $[R++], C[P]);
|
56868
|
-
return x;
|
56869
|
-
}, _objectDps;
|
56870
|
-
}
|
56871
|
-
var _html, hasRequired_html;
|
56862
|
+
}, _redefine = _hide, _iterators = {}, dP$1 = require_objectDp(), anObject$2 = _anObject, getKeys$1 = _objectKeys, _objectDps = require_descriptors() ? Object.defineProperties : function(g, b) {
|
56863
|
+
anObject$2(g);
|
56864
|
+
for (var _ = getKeys$1(b), x = _.length, C = 0, $; x > C; )
|
56865
|
+
dP$1.f(g, $ = _[C++], b[$]);
|
56866
|
+
return g;
|
56867
|
+
}, _html, hasRequired_html;
|
56872
56868
|
function require_html() {
|
56873
56869
|
if (hasRequired_html)
|
56874
56870
|
return _html;
|
@@ -56876,24 +56872,16 @@ function require_html() {
|
|
56876
56872
|
var m = _globalExports.document;
|
56877
56873
|
return _html = m && m.documentElement, _html;
|
56878
56874
|
}
|
56879
|
-
var
|
56880
|
-
function
|
56881
|
-
|
56882
|
-
|
56883
|
-
|
56884
|
-
|
56885
|
-
|
56886
|
-
|
56887
|
-
|
56888
|
-
|
56889
|
-
return $();
|
56890
|
-
};
|
56891
|
-
return _objectCreate = Object.create || function(R, P) {
|
56892
|
-
var N;
|
56893
|
-
return R !== null ? (x[C] = m(R), N = new x(), x[C] = null, N[_] = R) : N = $(), P === void 0 ? N : g(N, P);
|
56894
|
-
}, _objectCreate;
|
56895
|
-
}
|
56896
|
-
var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(m) {
|
56875
|
+
var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PROTO = _sharedKey("IE_PROTO"), Empty = function() {
|
56876
|
+
}, PROTOTYPE$1 = "prototype", createDict = function() {
|
56877
|
+
var m = require_domCreate()("iframe"), g = enumBugKeys.length, b = "<", _ = ">", x;
|
56878
|
+
for (m.style.display = "none", require_html().appendChild(m), m.src = "javascript:", x = m.contentWindow.document, x.open(), x.write(b + "script" + _ + "document.F=Object" + b + "/script" + _), x.close(), createDict = x.F; g--; )
|
56879
|
+
delete createDict[PROTOTYPE$1][enumBugKeys[g]];
|
56880
|
+
return createDict();
|
56881
|
+
}, _objectCreate = Object.create || function(g, b) {
|
56882
|
+
var _;
|
56883
|
+
return g !== null ? (Empty[PROTOTYPE$1] = anObject$1(g), _ = new Empty(), Empty[PROTOTYPE$1] = null, _[IE_PROTO] = g) : _ = createDict(), b === void 0 ? _ : dPs(_, b);
|
56884
|
+
}, _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(m) {
|
56897
56885
|
return store[m] || (store[m] = USE_SYMBOL && Symbol$1[m] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + m));
|
56898
56886
|
};
|
56899
56887
|
$exports.store = store;
|
@@ -56904,7 +56892,7 @@ function require_iterCreate() {
|
|
56904
56892
|
if (hasRequired_iterCreate)
|
56905
56893
|
return _iterCreate;
|
56906
56894
|
hasRequired_iterCreate = 1;
|
56907
|
-
var m =
|
56895
|
+
var m = _objectCreate, g = _propertyDesc, b = _setToStringTag, _ = {};
|
56908
56896
|
return _hide(_, _wksExports("iterator"), function() {
|
56909
56897
|
return this;
|
56910
56898
|
}), _iterCreate = function(x, C, $) {
|
@@ -57041,7 +57029,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
|
|
57041
57029
|
_objectGopnExt.f = function(g) {
|
57042
57030
|
return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
|
57043
57031
|
};
|
57044
|
-
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE =
|
57032
|
+
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = require_ie8DomDefine(), gOPD$1 = Object.getOwnPropertyDescriptor;
|
57045
57033
|
_objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
57046
57034
|
if (g = toIObject$1(g), b = toPrimitive$1(b, !0), IE8_DOM_DEFINE)
|
57047
57035
|
try {
|
@@ -57051,7 +57039,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
|
57051
57039
|
if (has$1(g, b))
|
57052
57040
|
return createDesc$1(!pIE.f.call(g, b), g[b]);
|
57053
57041
|
};
|
57054
|
-
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 =
|
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 = _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() {
|
57055
57043
|
return _create$1(dP({}, "a", {
|
57056
57044
|
get: function() {
|
57057
57045
|
return dP(this, "a", { value: 7 }).a;
|
@@ -57229,7 +57217,7 @@ function require_setProto() {
|
|
57229
57217
|
var $export$1 = _export;
|
57230
57218
|
$export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
57231
57219
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
|
57232
|
-
$export($export.S, "Object", { create:
|
57220
|
+
$export($export.S, "Object", { create: _objectCreate });
|
57233
57221
|
var $Object = _coreExports.Object, create$1 = function(g, b) {
|
57234
57222
|
return $Object.create(g, b);
|
57235
57223
|
}, create = { default: create$1, __esModule: !0 };
|