propro-common-components 0.1.11 → 0.1.13

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.
@@ -50562,7 +50562,7 @@ async function sendEmail(m, g) {
50562
50562
  }
50563
50563
  const initialState = {
50564
50564
  loading: !1,
50565
- requestsEnabled: getCookie("has_access_token") !== void 0
50565
+ requestsEnabled: getCookie("has_account_token") !== void 0
50566
50566
  }, AppContext = createContext({
50567
50567
  state: initialState,
50568
50568
  dispatch: () => null
@@ -50579,9 +50579,9 @@ const initialState = {
50579
50579
  }
50580
50580
  }, [_, x] = useReducer(b, initialState), C = async () => {
50581
50581
  try {
50582
- await axios.post("/api/refreshToken"), x({ type: "SET_REQUEST_ENABLED", payload: !0 });
50582
+ x({ type: "SET_LOADING", payload: !0 }), await axios.post("/api/refreshToken"), x({ type: "SET_REQUEST_ENABLED", payload: !0 }), x({ type: "SET_LOADING", payload: !1 });
50583
50583
  } catch ($) {
50584
- console.log($);
50584
+ console.log($), x({ type: "SET_LOADING", payload: !1 });
50585
50585
  }
50586
50586
  };
50587
50587
  return useEffect(() => (_.requestsEnabled || C(), () => {
@@ -56919,21 +56919,13 @@ $export$5.U = 64;
56919
56919
  $export$5.R = 128;
56920
56920
  var _export = $export$5, toString$1 = {}.toString, _cof = function(m) {
56921
56921
  return toString$1.call(m).slice(8, -1);
56922
- }, _iobject, hasRequired_iobject;
56923
- function require_iobject() {
56924
- if (hasRequired_iobject)
56925
- return _iobject;
56926
- hasRequired_iobject = 1;
56927
- var m = _cof;
56928
- return _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(g) {
56929
- return m(g) == "String" ? g.split("") : Object(g);
56930
- }, _iobject;
56931
- }
56932
- var _defined = function(m) {
56922
+ }, cof$1 = _cof, _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(m) {
56923
+ return cof$1(m) == "String" ? m.split("") : Object(m);
56924
+ }, _defined = function(m) {
56933
56925
  if (m == null)
56934
56926
  throw TypeError("Can't call method on " + m);
56935
56927
  return m;
56936
- }, IObject = require_iobject(), defined$2 = _defined, _toIobject = function(m) {
56928
+ }, IObject = _iobject, defined$2 = _defined, _toIobject = function(m) {
56937
56929
  return IObject(defined$2(m));
56938
56930
  }, ceil = Math.ceil, floor = Math.floor, _toInteger = function(m) {
56939
56931
  return isNaN(m = +m) ? 0 : (m > 0 ? floor : ceil)(m);
@@ -56977,10 +56969,8 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
56977
56969
  return $keys$2(g, enumBugKeys$1);
56978
56970
  }, _objectGops = {};
56979
56971
  _objectGops.f = Object.getOwnPropertySymbols;
56980
- var _objectPie = {}, hasRequired_objectPie;
56981
- function require_objectPie() {
56982
- return hasRequired_objectPie || (hasRequired_objectPie = 1, _objectPie.f = {}.propertyIsEnumerable), _objectPie;
56983
- }
56972
+ var _objectPie = {};
56973
+ _objectPie.f = {}.propertyIsEnumerable;
56984
56974
  var defined$1 = _defined, _toObject = function(m) {
56985
56975
  return Object(defined$1(m));
56986
56976
  }, _objectAssign, hasRequired_objectAssign;
@@ -56988,7 +56978,7 @@ function require_objectAssign() {
56988
56978
  if (hasRequired_objectAssign)
56989
56979
  return _objectAssign;
56990
56980
  hasRequired_objectAssign = 1;
56991
- var m = _descriptors, g = _objectKeys, b = _objectGops, _ = require_objectPie(), x = _toObject, C = require_iobject(), $ = Object.assign;
56981
+ var m = _descriptors, g = _objectKeys, b = _objectGops, _ = _objectPie, x = _toObject, C = _iobject, $ = Object.assign;
56992
56982
  return _objectAssign = !$ || _fails(function() {
56993
56983
  var I = {}, R = {}, P = Symbol(), N = "abcdefghijklmnopqrst";
56994
56984
  return I[P] = 7, N.split("").forEach(function(z) {
@@ -57218,7 +57208,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
57218
57208
  }, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = _objectDp.f, _wksDefine = function(m) {
57219
57209
  var g = core.Symbol || (core.Symbol = {});
57220
57210
  m.charAt(0) != "_" && !(m in g) && defineProperty(g, m, { value: wksExt$1.f(m) });
57221
- }, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(m) {
57211
+ }, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = _objectPie, _enumKeys = function(m) {
57222
57212
  var g = getKeys(m), b = gOPS.f;
57223
57213
  if (b)
57224
57214
  for (var _ = b(m), x = pIE$1.f, C = 0, $; _.length > C; )
@@ -57240,7 +57230,7 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
57240
57230
  _objectGopnExt.f = function(g) {
57241
57231
  return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
57242
57232
  };
57243
- var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
57233
+ var _objectGopd = {}, pIE = _objectPie, createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$1 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
57244
57234
  _objectGopd.f = _descriptors ? gOPD$1 : function(g, b) {
57245
57235
  if (g = toIObject$1(g), b = toPrimitive$1(b, !0), IE8_DOM_DEFINE)
57246
57236
  try {
@@ -57301,7 +57291,7 @@ USE_NATIVE || ($Symbol = function() {
57301
57291
  return DESCRIPTORS && setter && setSymbolDesc(ObjectProto, g, { configurable: !0, set: b }), wrap(g);
57302
57292
  }, redefine($Symbol[PROTOTYPE], "toString", function() {
57303
57293
  return this._k;
57304
- }), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames, require_objectPie().f = $propertyIsEnumerable, $GOPS.f = $getOwnPropertySymbols, DESCRIPTORS && !_library && redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable), wksExt.f = function(m) {
57294
+ }), $GOPD.f = $getOwnPropertyDescriptor, $DP.f = $defineProperty, _objectGopn.f = gOPNExt.f = $getOwnPropertyNames, _objectPie.f = $propertyIsEnumerable, $GOPS.f = $getOwnPropertySymbols, DESCRIPTORS && !_library && redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable), wksExt.f = function(m) {
57305
57295
  return wrap(wks(m));
57306
57296
  });
57307
57297
  $export$2($export$2.G + $export$2.W + $export$2.F * !USE_NATIVE, { Symbol: $Symbol });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propro-common-components",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "type": "module",
5
5
  "main": "dist/propro-common-components.js",
6
6
  "types": "dist/main.d.ts",