propro-common-components 0.1.33 → 0.1.35

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.
@@ -56937,17 +56937,13 @@ var _coreExports = _core.exports, _aFunction = function(m) {
56937
56937
  if (!isObject$3(m))
56938
56938
  throw TypeError(m + " is not an object!");
56939
56939
  return m;
56940
- }, _fails, hasRequired_fails;
56941
- function require_fails() {
56942
- return hasRequired_fails || (hasRequired_fails = 1, _fails = function(m) {
56943
- try {
56944
- return !!m();
56945
- } catch {
56946
- return !0;
56947
- }
56948
- }), _fails;
56949
- }
56950
- var _descriptors = !require_fails()(function() {
56940
+ }, _fails = function(m) {
56941
+ try {
56942
+ return !!m();
56943
+ } catch {
56944
+ return !0;
56945
+ }
56946
+ }, _descriptors = !_fails(function() {
56951
56947
  return Object.defineProperty({}, "a", { get: function() {
56952
56948
  return 7;
56953
56949
  } }).a != 7;
@@ -56961,7 +56957,7 @@ function require_domCreate() {
56961
56957
  return b ? g.createElement(_) : {};
56962
56958
  }, _domCreate;
56963
56959
  }
56964
- var _ie8DomDefine = !_descriptors && !require_fails()(function() {
56960
+ var _ie8DomDefine = !_descriptors && !_fails(function() {
56965
56961
  return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
56966
56962
  return 7;
56967
56963
  } }).a != 7;
@@ -57071,8 +57067,8 @@ var _defined = function(m) {
57071
57067
  mode: "pure",
57072
57068
  copyright: "© 2020 Denis Pushkarev (zloirock.ru)"
57073
57069
  });
57074
- var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = function(m) {
57075
- return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$1 + px).toString(36));
57070
+ var _sharedExports = _shared.exports, id$2 = 0, px = Math.random(), _uid = function(m) {
57071
+ return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$2 + px).toString(36));
57076
57072
  }, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(m) {
57077
57073
  return shared$1[m] || (shared$1[m] = uid$2(m));
57078
57074
  }, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$2 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(m, g) {
@@ -57098,7 +57094,7 @@ function require_objectAssign() {
57098
57094
  return _objectAssign;
57099
57095
  hasRequired_objectAssign = 1;
57100
57096
  var m = _descriptors, g = _objectKeys, b = _objectGops, _ = require_objectPie(), x = _toObject, C = require_iobject(), $ = Object.assign;
57101
- return _objectAssign = !$ || require_fails()(function() {
57097
+ return _objectAssign = !$ || _fails(function() {
57102
57098
  var I = {}, R = {}, P = Symbol(), N = "abcdefghijklmnopqrst";
57103
57099
  return I[P] = 7, N.split("").forEach(function(z) {
57104
57100
  R[z] = z;
@@ -57133,7 +57129,7 @@ function require_objectSap() {
57133
57129
  if (hasRequired_objectSap)
57134
57130
  return _objectSap;
57135
57131
  hasRequired_objectSap = 1;
57136
- var m = _export, g = _coreExports, b = require_fails();
57132
+ var m = _export, g = _coreExports, b = _fails;
57137
57133
  return _objectSap = function(_, x) {
57138
57134
  var C = (g.Object || {})[_] || Object[_], $ = {};
57139
57135
  $[_] = x(C), m(m.S + m.F * b(function() {
@@ -57285,13 +57281,13 @@ for (var i = 0; i < DOMIterables.length; i++) {
57285
57281
  }
57286
57282
  var _wksExt = {};
57287
57283
  _wksExt.f = _wksExports;
57288
- var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$1 = _isObject, has$2 = _has, setDesc = _objectDp.f, id = 0, isExtensible = Object.isExtensible || function() {
57284
+ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$1 = _isObject, has$2 = _has, setDesc = _objectDp.f, id$1 = 0, isExtensible = Object.isExtensible || function() {
57289
57285
  return !0;
57290
- }, FREEZE = !require_fails()(function() {
57286
+ }, FREEZE = !_fails(function() {
57291
57287
  return isExtensible(Object.preventExtensions({}));
57292
57288
  }), setMeta = function(m) {
57293
57289
  setDesc(m, META$1, { value: {
57294
- i: "O" + ++id,
57290
+ i: "O" + ++id$1,
57295
57291
  // object ID
57296
57292
  w: {}
57297
57293
  // weak collections IDs
@@ -57359,7 +57355,7 @@ _objectGopd.f = _descriptors ? gOPD$1 : function(g, b) {
57359
57355
  if (has$1(g, b))
57360
57356
  return createDesc$1(!pIE.f.call(g, b), g[b]);
57361
57357
  };
57362
- var global$1 = _globalExports, has = _has, DESCRIPTORS = _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 = _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() {
57358
+ var global$1 = _globalExports, has = _has, DESCRIPTORS = _descriptors, $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = _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 = _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() {
57363
57359
  return _create$1(dP({}, "a", {
57364
57360
  get: function() {
57365
57361
  return dP(this, "a", { value: 7 }).a;
@@ -65448,7 +65444,9 @@ const checkAccessToken = async () => {
65448
65444
  queryFn: async () => (await checkAccessToken(), await axios.get(g).then((_) => _.data.data)),
65449
65445
  refetchOnWindowFocus: !1,
65450
65446
  ...b
65451
- }), useMutate = ({
65447
+ });
65448
+ let id = 0;
65449
+ const useMutate = ({
65452
65450
  url: m,
65453
65451
  method: g,
65454
65452
  updateKey: b,
@@ -65462,24 +65460,24 @@ const checkAccessToken = async () => {
65462
65460
  }, R) => {
65463
65461
  const P = useQueryClient();
65464
65462
  return useMutation({
65465
- mutationFn: async (N) => {
65466
- I && console.log(I, m);
65467
- const z = toast("🦄 Wow so easy!", {
65468
- position: "top-right",
65469
- autoClose: 5e3,
65470
- hideProgressBar: !1,
65471
- closeOnClick: !0,
65472
- pauseOnHover: !0,
65473
- draggable: !0,
65474
- progress: void 0,
65475
- theme: "light"
65476
- });
65477
- return console.log(z), checkAccessToken(), axios(m, { method: g, data: N, headers: _ }).then(
65478
- (D) => D.data
65479
- );
65480
- },
65463
+ mutationFn: async (N) => (I && console.log(I, m), id = toast("🦄 Wow so easy!", {
65464
+ position: "top-right",
65465
+ autoClose: 5e3,
65466
+ hideProgressBar: !1,
65467
+ closeOnClick: !0,
65468
+ pauseOnHover: !0,
65469
+ draggable: !0,
65470
+ progress: void 0,
65471
+ theme: "light"
65472
+ }), console.log(id), checkAccessToken(), axios(m, { method: g, data: N, headers: _ }).then(
65473
+ (z) => z.data
65474
+ )),
65481
65475
  onSuccess: (N) => {
65482
- b && P.setQueryData(b, N.data), x && P.invalidateQueries(), C && console.log(C, { res: N });
65476
+ toast.update(id, {
65477
+ render: "All is good",
65478
+ type: "info",
65479
+ isLoading: !1
65480
+ }), b && P.setQueryData(b, N.data), x && P.invalidateQueries(), C && console.log(C, { res: N });
65483
65481
  },
65484
65482
  onError: (N) => {
65485
65483
  $ && console.log($, { err: N });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-common-components",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "type": "module",
5
5
  "main": "dist/propro-common-components.js",
6
6
  "types": "dist/main.d.ts",