@opengeoweb/authentication 9.25.3 → 9.26.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/index.esm.js CHANGED
@@ -5562,6 +5562,109 @@ var DOM_EXCEPTION = 'DOMException';
5562
5562
  // `DOMException.prototype[@@toStringTag]` property
5563
5563
  setToStringTag$1(getBuiltIn$5(DOM_EXCEPTION), DOM_EXCEPTION);
5564
5564
 
5565
+ var uncurryThis$2 = functionUncurryThis;
5566
+ var isArray$1 = isArray$3;
5567
+ var isCallable$5 = isCallable$q;
5568
+ var classof = classofRaw$2;
5569
+ var toString$1 = toString$b;
5570
+
5571
+ var push = uncurryThis$2([].push);
5572
+
5573
+ var getJsonReplacerFunction = function (replacer) {
5574
+ if (isCallable$5(replacer)) return replacer;
5575
+ if (!isArray$1(replacer)) return;
5576
+ var rawLength = replacer.length;
5577
+ var keys = [];
5578
+ for (var i = 0; i < rawLength; i++) {
5579
+ var element = replacer[i];
5580
+ if (typeof element == 'string') push(keys, element);
5581
+ else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString$1(element));
5582
+ }
5583
+ var keysLength = keys.length;
5584
+ var root = true;
5585
+ return function (key, value) {
5586
+ if (root) {
5587
+ root = false;
5588
+ return value;
5589
+ }
5590
+ if (isArray$1(this)) return value;
5591
+ for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
5592
+ };
5593
+ };
5594
+
5595
+ var $$a = _export;
5596
+ var getBuiltIn$4 = getBuiltIn$e;
5597
+ var apply$2 = functionApply;
5598
+ var call$4 = functionCall;
5599
+ var uncurryThis$1 = functionUncurryThis;
5600
+ var fails$5 = fails$B;
5601
+ var isCallable$4 = isCallable$q;
5602
+ var isSymbol = isSymbol$4;
5603
+ var arraySlice$1 = arraySlice$5;
5604
+ var getReplacerFunction = getJsonReplacerFunction;
5605
+ var NATIVE_SYMBOL = symbolConstructorDetection;
5606
+
5607
+ var $String = String;
5608
+ var $stringify = getBuiltIn$4('JSON', 'stringify');
5609
+ var exec$1 = uncurryThis$1(/./.exec);
5610
+ var charAt$1 = uncurryThis$1(''.charAt);
5611
+ var charCodeAt = uncurryThis$1(''.charCodeAt);
5612
+ var replace$1 = uncurryThis$1(''.replace);
5613
+ var numberToString = uncurryThis$1(1.0.toString);
5614
+
5615
+ var tester = /[\uD800-\uDFFF]/g;
5616
+ var low = /^[\uD800-\uDBFF]$/;
5617
+ var hi = /^[\uDC00-\uDFFF]$/;
5618
+
5619
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$5(function () {
5620
+ var symbol = getBuiltIn$4('Symbol')('stringify detection');
5621
+ // MS Edge converts symbol values to JSON as {}
5622
+ return $stringify([symbol]) !== '[null]'
5623
+ // WebKit converts symbol values to JSON as null
5624
+ || $stringify({ a: symbol }) !== '{}'
5625
+ // V8 throws on boxed symbols
5626
+ || $stringify(Object(symbol)) !== '{}';
5627
+ });
5628
+
5629
+ // https://github.com/tc39/proposal-well-formed-stringify
5630
+ var ILL_FORMED_UNICODE = fails$5(function () {
5631
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
5632
+ || $stringify('\uDEAD') !== '"\\udead"';
5633
+ });
5634
+
5635
+ var stringifyWithSymbolsFix = function (it, replacer) {
5636
+ var args = arraySlice$1(arguments);
5637
+ var $replacer = getReplacerFunction(replacer);
5638
+ if (!isCallable$4($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
5639
+ args[1] = function (key, value) {
5640
+ // some old implementations (like WebKit) could pass numbers as keys
5641
+ if (isCallable$4($replacer)) value = call$4($replacer, this, $String(key), value);
5642
+ if (!isSymbol(value)) return value;
5643
+ };
5644
+ return apply$2($stringify, null, args);
5645
+ };
5646
+
5647
+ var fixIllFormed = function (match, offset, string) {
5648
+ var prev = charAt$1(string, offset - 1);
5649
+ var next = charAt$1(string, offset + 1);
5650
+ if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {
5651
+ return '\\u' + numberToString(charCodeAt(match, 0), 16);
5652
+ } return match;
5653
+ };
5654
+
5655
+ if ($stringify) {
5656
+ // `JSON.stringify` method
5657
+ // https://tc39.es/ecma262/#sec-json.stringify
5658
+ $$a({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
5659
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
5660
+ stringify: function stringify(it, replacer, space) {
5661
+ var args = arraySlice$1(arguments);
5662
+ var result = apply$2(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
5663
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
5664
+ }
5665
+ });
5666
+ }
5667
+
5565
5668
  /* *
5566
5669
  * Licensed under the Apache License, Version 2.0 (the "License");
5567
5670
  * you may not use this file except in compliance with the License.
@@ -5581,6 +5684,7 @@ setToStringTag$1(getBuiltIn$5(DOM_EXCEPTION), DOM_EXCEPTION);
5581
5684
  * */
5582
5685
  var SessionStorageKey;
5583
5686
  (function (SessionStorageKey) {
5687
+ SessionStorageKey["CONFIG"] = "config";
5584
5688
  SessionStorageKey["OAUTH_STATE"] = "oauth_state";
5585
5689
  SessionStorageKey["OAUTH_CODE_VERIFIER"] = "code_verifier";
5586
5690
  SessionStorageKey["OAUTH_CODE_CHALLENGE"] = "code_challenge";
@@ -5592,6 +5696,8 @@ const getSessionStorageProvider = () => {
5592
5696
  sessionStorage
5593
5697
  } = window;
5594
5698
  return {
5699
+ setConfig: value => sessionStorage.setItem(SessionStorageKey.CONFIG, JSON.stringify(value)),
5700
+ getConfig: () => JSON.parse(sessionStorage.getItem(SessionStorageKey.CONFIG) || '{}'),
5595
5701
  setOauthState: value => sessionStorage.setItem(SessionStorageKey.OAUTH_STATE, value),
5596
5702
  getOauthState: () => sessionStorage.getItem(SessionStorageKey.OAUTH_STATE),
5597
5703
  removeOauthState: () => sessionStorage.removeItem(SessionStorageKey.OAUTH_STATE),
@@ -5608,6 +5714,7 @@ const getSessionStorageProvider = () => {
5608
5714
  setCallbackUrl: value => sessionStorage.setItem(SessionStorageKey.CALLBACK_URL, value)
5609
5715
  };
5610
5716
  };
5717
+ const getConfig = () => getSessionStorageProvider().getConfig();
5611
5718
 
5612
5719
  var defineProperty = objectDefineProperty.f;
5613
5720
 
@@ -5630,10 +5737,10 @@ var installErrorCause$1 = function (O, options) {
5630
5737
  }
5631
5738
  };
5632
5739
 
5633
- var fails$5 = fails$B;
5740
+ var fails$4 = fails$B;
5634
5741
  var createPropertyDescriptor = createPropertyDescriptor$9;
5635
5742
 
5636
- var errorStackInstallable = !fails$5(function () {
5743
+ var errorStackInstallable = !fails$4(function () {
5637
5744
  var error = new Error('a');
5638
5745
  if (!('stack' in error)) return true;
5639
5746
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -5655,7 +5762,7 @@ var errorStackInstall = function (error, C, stack, dropEntries) {
5655
5762
  }
5656
5763
  };
5657
5764
 
5658
- var getBuiltIn$4 = getBuiltIn$e;
5765
+ var getBuiltIn$3 = getBuiltIn$e;
5659
5766
  var hasOwn$1 = hasOwnProperty_1;
5660
5767
  var createNonEnumerableProperty = createNonEnumerableProperty$b;
5661
5768
  var isPrototypeOf = objectIsPrototypeOf;
@@ -5673,7 +5780,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
5673
5780
  var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
5674
5781
  var path = FULL_NAME.split('.');
5675
5782
  var ERROR_NAME = path[path.length - 1];
5676
- var OriginalError = getBuiltIn$4.apply(null, path);
5783
+ var OriginalError = getBuiltIn$3.apply(null, path);
5677
5784
 
5678
5785
  if (!OriginalError) return;
5679
5786
 
@@ -5684,7 +5791,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
5684
5791
 
5685
5792
  if (!FORCED) return OriginalError;
5686
5793
 
5687
- var BaseError = getBuiltIn$4('Error');
5794
+ var BaseError = getBuiltIn$3('Error');
5688
5795
 
5689
5796
  var WrappedError = wrapper(function (a, b) {
5690
5797
  var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
@@ -5720,9 +5827,9 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
5720
5827
  };
5721
5828
 
5722
5829
  /* eslint-disable no-unused-vars -- required for functions `.length` */
5723
- var $$a = _export;
5830
+ var $$9 = _export;
5724
5831
  var global$7 = global$A;
5725
- var apply$2 = functionApply;
5832
+ var apply$1 = functionApply;
5726
5833
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
5727
5834
 
5728
5835
  var WEB_ASSEMBLY = 'WebAssembly';
@@ -5734,51 +5841,51 @@ var FORCED$3 = new Error('e', { cause: 7 }).cause !== 7;
5734
5841
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
5735
5842
  var O = {};
5736
5843
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$3);
5737
- $$a({ global: true, constructor: true, arity: 1, forced: FORCED$3 }, O);
5844
+ $$9({ global: true, constructor: true, arity: 1, forced: FORCED$3 }, O);
5738
5845
  };
5739
5846
 
5740
5847
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
5741
5848
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
5742
5849
  var O = {};
5743
5850
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$3);
5744
- $$a({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$3 }, O);
5851
+ $$9({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$3 }, O);
5745
5852
  }
5746
5853
  };
5747
5854
 
5748
5855
  // https://tc39.es/ecma262/#sec-nativeerror
5749
5856
  exportGlobalErrorCauseWrapper('Error', function (init) {
5750
- return function Error(message) { return apply$2(init, this, arguments); };
5857
+ return function Error(message) { return apply$1(init, this, arguments); };
5751
5858
  });
5752
5859
  exportGlobalErrorCauseWrapper('EvalError', function (init) {
5753
- return function EvalError(message) { return apply$2(init, this, arguments); };
5860
+ return function EvalError(message) { return apply$1(init, this, arguments); };
5754
5861
  });
5755
5862
  exportGlobalErrorCauseWrapper('RangeError', function (init) {
5756
- return function RangeError(message) { return apply$2(init, this, arguments); };
5863
+ return function RangeError(message) { return apply$1(init, this, arguments); };
5757
5864
  });
5758
5865
  exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
5759
- return function ReferenceError(message) { return apply$2(init, this, arguments); };
5866
+ return function ReferenceError(message) { return apply$1(init, this, arguments); };
5760
5867
  });
5761
5868
  exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
5762
- return function SyntaxError(message) { return apply$2(init, this, arguments); };
5869
+ return function SyntaxError(message) { return apply$1(init, this, arguments); };
5763
5870
  });
5764
5871
  exportGlobalErrorCauseWrapper('TypeError', function (init) {
5765
- return function TypeError(message) { return apply$2(init, this, arguments); };
5872
+ return function TypeError(message) { return apply$1(init, this, arguments); };
5766
5873
  });
5767
5874
  exportGlobalErrorCauseWrapper('URIError', function (init) {
5768
- return function URIError(message) { return apply$2(init, this, arguments); };
5875
+ return function URIError(message) { return apply$1(init, this, arguments); };
5769
5876
  });
5770
5877
  exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
5771
- return function CompileError(message) { return apply$2(init, this, arguments); };
5878
+ return function CompileError(message) { return apply$1(init, this, arguments); };
5772
5879
  });
5773
5880
  exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
5774
- return function LinkError(message) { return apply$2(init, this, arguments); };
5881
+ return function LinkError(message) { return apply$1(init, this, arguments); };
5775
5882
  });
5776
5883
  exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
5777
- return function RuntimeError(message) { return apply$2(init, this, arguments); };
5884
+ return function RuntimeError(message) { return apply$1(init, this, arguments); };
5778
5885
  });
5779
5886
 
5780
5887
  var DESCRIPTORS = descriptors;
5781
- var isArray$1 = isArray$3;
5888
+ var isArray = isArray$3;
5782
5889
 
5783
5890
  var $TypeError$3 = TypeError;
5784
5891
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -5797,7 +5904,7 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
5797
5904
  }();
5798
5905
 
5799
5906
  var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
5800
- if (isArray$1(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
5907
+ if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
5801
5908
  throw new $TypeError$3('Cannot set read only .length');
5802
5909
  } return O.length = length;
5803
5910
  } : function (O, length) {
@@ -5812,14 +5919,14 @@ var doesNotExceedSafeInteger$1 = function (it) {
5812
5919
  return it;
5813
5920
  };
5814
5921
 
5815
- var $$9 = _export;
5922
+ var $$8 = _export;
5816
5923
  var toObject$1 = toObject$a;
5817
5924
  var lengthOfArrayLike$1 = lengthOfArrayLike$d;
5818
5925
  var setArrayLength = arraySetLength;
5819
5926
  var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
5820
- var fails$4 = fails$B;
5927
+ var fails$3 = fails$B;
5821
5928
 
5822
- var INCORRECT_TO_LENGTH = fails$4(function () {
5929
+ var INCORRECT_TO_LENGTH = fails$3(function () {
5823
5930
  return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
5824
5931
  });
5825
5932
 
@@ -5838,7 +5945,7 @@ var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
5838
5945
 
5839
5946
  // `Array.prototype.push` method
5840
5947
  // https://tc39.es/ecma262/#sec-array.prototype.push
5841
- $$9({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
5948
+ $$8({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
5842
5949
  // eslint-disable-next-line no-unused-vars -- required for `.length`
5843
5950
  push: function push(item) {
5844
5951
  var O = toObject$1(this);
@@ -5900,17 +6007,17 @@ var arrayReduce = {
5900
6007
  right: createMethod(true)
5901
6008
  };
5902
6009
 
5903
- var fails$3 = fails$B;
6010
+ var fails$2 = fails$B;
5904
6011
 
5905
6012
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
5906
6013
  var method = [][METHOD_NAME];
5907
- return !!method && fails$3(function () {
6014
+ return !!method && fails$2(function () {
5908
6015
  // eslint-disable-next-line no-useless-call -- required for testing
5909
6016
  method.call(null, argument || function () { return 1; }, 1);
5910
6017
  });
5911
6018
  };
5912
6019
 
5913
- var $$8 = _export;
6020
+ var $$7 = _export;
5914
6021
  var $reduce = arrayReduce.left;
5915
6022
  var arrayMethodIsStrict = arrayMethodIsStrict$1;
5916
6023
  var CHROME_VERSION = engineV8Version;
@@ -5923,7 +6030,7 @@ var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
5923
6030
 
5924
6031
  // `Array.prototype.reduce` method
5925
6032
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
5926
- $$8({ target: 'Array', proto: true, forced: FORCED$1 }, {
6033
+ $$7({ target: 'Array', proto: true, forced: FORCED$1 }, {
5927
6034
  reduce: function reduce(callbackfn /* , initialValue */) {
5928
6035
  var length = arguments.length;
5929
6036
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -5936,13 +6043,13 @@ var userAgent$2 = engineUserAgent;
5936
6043
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
5937
6044
 
5938
6045
  var global$6 = global$A;
5939
- var apply$1 = functionApply;
6046
+ var apply = functionApply;
5940
6047
  var bind$2 = functionBindContext;
5941
- var isCallable$5 = isCallable$q;
6048
+ var isCallable$3 = isCallable$q;
5942
6049
  var hasOwn = hasOwnProperty_1;
5943
- var fails$2 = fails$B;
6050
+ var fails$1 = fails$B;
5944
6051
  var html = html$2;
5945
- var arraySlice$1 = arraySlice$5;
6052
+ var arraySlice = arraySlice$5;
5946
6053
  var createElement = documentCreateElement$2;
5947
6054
  var validateArgumentsLength$1 = validateArgumentsLength$6;
5948
6055
  var IS_IOS$1 = engineIsIos;
@@ -5960,7 +6067,7 @@ var queue$2 = {};
5960
6067
  var ONREADYSTATECHANGE = 'onreadystatechange';
5961
6068
  var $location, defer, channel, port;
5962
6069
 
5963
- fails$2(function () {
6070
+ fails$1(function () {
5964
6071
  // Deno throws a ReferenceError on `location` access without `--location` flag
5965
6072
  $location = global$6.location;
5966
6073
  });
@@ -5992,10 +6099,10 @@ var globalPostMessageDefer = function (id) {
5992
6099
  if (!set || !clear) {
5993
6100
  set = function setImmediate(handler) {
5994
6101
  validateArgumentsLength$1(arguments.length, 1);
5995
- var fn = isCallable$5(handler) ? handler : Function$1(handler);
5996
- var args = arraySlice$1(arguments, 1);
6102
+ var fn = isCallable$3(handler) ? handler : Function$1(handler);
6103
+ var args = arraySlice(arguments, 1);
5997
6104
  queue$2[++counter] = function () {
5998
- apply$1(fn, undefined, args);
6105
+ apply(fn, undefined, args);
5999
6106
  };
6000
6107
  defer(counter);
6001
6108
  return counter;
@@ -6024,10 +6131,10 @@ if (!set || !clear) {
6024
6131
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
6025
6132
  } else if (
6026
6133
  global$6.addEventListener &&
6027
- isCallable$5(global$6.postMessage) &&
6134
+ isCallable$3(global$6.postMessage) &&
6028
6135
  !global$6.importScripts &&
6029
6136
  $location && $location.protocol !== 'file:' &&
6030
- !fails$2(globalPostMessageDefer)
6137
+ !fails$1(globalPostMessageDefer)
6031
6138
  ) {
6032
6139
  defer = globalPostMessageDefer;
6033
6140
  global$6.addEventListener('message', eventListener, false);
@@ -6185,7 +6292,7 @@ var promiseNativeConstructor = global$4.Promise;
6185
6292
 
6186
6293
  var global$3 = global$A;
6187
6294
  var NativePromiseConstructor$3 = promiseNativeConstructor;
6188
- var isCallable$4 = isCallable$q;
6295
+ var isCallable$2 = isCallable$q;
6189
6296
  var isForced = isForced_1;
6190
6297
  var inspectSource = inspectSource$3;
6191
6298
  var wellKnownSymbol = wellKnownSymbol$m;
@@ -6196,7 +6303,7 @@ var V8_VERSION = engineV8Version;
6196
6303
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
6197
6304
  var SPECIES = wellKnownSymbol('species');
6198
6305
  var SUBCLASSING = false;
6199
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$3.PromiseRejectionEvent);
6306
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$3.PromiseRejectionEvent);
6200
6307
 
6201
6308
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
6202
6309
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -6251,16 +6358,16 @@ newPromiseCapability$2.f = function (C) {
6251
6358
  return new PromiseCapability(C);
6252
6359
  };
6253
6360
 
6254
- var $$7 = _export;
6361
+ var $$6 = _export;
6255
6362
  var IS_NODE = engineIsNode;
6256
6363
  var global$2 = global$A;
6257
- var call$4 = functionCall;
6364
+ var call$3 = functionCall;
6258
6365
  var defineBuiltIn$1 = defineBuiltIn$d;
6259
6366
  var setPrototypeOf = objectSetPrototypeOf;
6260
6367
  var setToStringTag = setToStringTag$7;
6261
6368
  var setSpecies = setSpecies$2;
6262
6369
  var aCallable$2 = aCallable$b;
6263
- var isCallable$3 = isCallable$q;
6370
+ var isCallable$1 = isCallable$q;
6264
6371
  var isObject$1 = isObject$i;
6265
6372
  var anInstance = anInstance$6;
6266
6373
  var speciesConstructor = speciesConstructor$2;
@@ -6303,7 +6410,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
6303
6410
  // helpers
6304
6411
  var isThenable = function (it) {
6305
6412
  var then;
6306
- return isObject$1(it) && isCallable$3(then = it.then) ? then : false;
6413
+ return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
6307
6414
  };
6308
6415
 
6309
6416
  var callReaction = function (reaction, state) {
@@ -6332,7 +6439,7 @@ var callReaction = function (reaction, state) {
6332
6439
  if (result === reaction.promise) {
6333
6440
  reject(new TypeError$1('Promise-chain cycle'));
6334
6441
  } else if (then = isThenable(result)) {
6335
- call$4(then, result, resolve, reject);
6442
+ call$3(then, result, resolve, reject);
6336
6443
  } else resolve(result);
6337
6444
  } else reject(value);
6338
6445
  } catch (error) {
@@ -6369,7 +6476,7 @@ var dispatchEvent = function (name, promise, reason) {
6369
6476
  };
6370
6477
 
6371
6478
  var onUnhandled = function (state) {
6372
- call$4(task, global$2, function () {
6479
+ call$3(task, global$2, function () {
6373
6480
  var promise = state.facade;
6374
6481
  var value = state.value;
6375
6482
  var IS_UNHANDLED = isUnhandled(state);
@@ -6392,7 +6499,7 @@ var isUnhandled = function (state) {
6392
6499
  };
6393
6500
 
6394
6501
  var onHandleUnhandled = function (state) {
6395
- call$4(task, global$2, function () {
6502
+ call$3(task, global$2, function () {
6396
6503
  var promise = state.facade;
6397
6504
  if (IS_NODE) {
6398
6505
  process.emit('rejectionHandled', promise);
@@ -6426,7 +6533,7 @@ var internalResolve = function (state, value, unwrap) {
6426
6533
  microtask(function () {
6427
6534
  var wrapper = { done: false };
6428
6535
  try {
6429
- call$4(then, value,
6536
+ call$3(then, value,
6430
6537
  bind(internalResolve, wrapper, state),
6431
6538
  bind(internalReject, wrapper, state)
6432
6539
  );
@@ -6450,7 +6557,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6450
6557
  PromiseConstructor = function Promise(executor) {
6451
6558
  anInstance(this, PromisePrototype);
6452
6559
  aCallable$2(executor);
6453
- call$4(Internal, this);
6560
+ call$3(Internal, this);
6454
6561
  var state = getInternalPromiseState(this);
6455
6562
  try {
6456
6563
  executor(bind(internalResolve, state), bind(internalReject, state));
@@ -6481,8 +6588,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6481
6588
  var state = getInternalPromiseState(this);
6482
6589
  var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
6483
6590
  state.parent = true;
6484
- reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true;
6485
- reaction.fail = isCallable$3(onRejected) && onRejected;
6591
+ reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
6592
+ reaction.fail = isCallable$1(onRejected) && onRejected;
6486
6593
  reaction.domain = IS_NODE ? process.domain : undefined;
6487
6594
  if (state.state === PENDING) state.reactions.add(reaction);
6488
6595
  else microtask(function () {
@@ -6505,7 +6612,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6505
6612
  : newGenericPromiseCapability(C);
6506
6613
  };
6507
6614
 
6508
- if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
6615
+ if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
6509
6616
  nativeThen = NativePromisePrototype$1.then;
6510
6617
 
6511
6618
  if (!NATIVE_PROMISE_SUBCLASSING) {
@@ -6513,7 +6620,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6513
6620
  defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
6514
6621
  var that = this;
6515
6622
  return new PromiseConstructor(function (resolve, reject) {
6516
- call$4(nativeThen, that, resolve, reject);
6623
+ call$3(nativeThen, that, resolve, reject);
6517
6624
  }).then(onFulfilled, onRejected);
6518
6625
  // https://github.com/zloirock/core-js/issues/640
6519
6626
  }, { unsafe: true });
@@ -6531,7 +6638,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
6531
6638
  }
6532
6639
  }
6533
6640
 
6534
- $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
6641
+ $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
6535
6642
  Promise: PromiseConstructor
6536
6643
  });
6537
6644
 
@@ -6546,8 +6653,8 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
6546
6653
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
6547
6654
  });
6548
6655
 
6549
- var $$6 = _export;
6550
- var call$3 = functionCall;
6656
+ var $$5 = _export;
6657
+ var call$2 = functionCall;
6551
6658
  var aCallable$1 = aCallable$b;
6552
6659
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
6553
6660
  var perform$1 = perform$3;
@@ -6556,7 +6663,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
6556
6663
 
6557
6664
  // `Promise.all` method
6558
6665
  // https://tc39.es/ecma262/#sec-promise.all
6559
- $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
6666
+ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
6560
6667
  all: function all(iterable) {
6561
6668
  var C = this;
6562
6669
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -6571,7 +6678,7 @@ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
6571
6678
  var index = counter++;
6572
6679
  var alreadyCalled = false;
6573
6680
  remaining++;
6574
- call$3($promiseResolve, C, promise).then(function (value) {
6681
+ call$2($promiseResolve, C, promise).then(function (value) {
6575
6682
  if (alreadyCalled) return;
6576
6683
  alreadyCalled = true;
6577
6684
  values[index] = value;
@@ -6585,33 +6692,33 @@ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
6585
6692
  }
6586
6693
  });
6587
6694
 
6588
- var $$5 = _export;
6695
+ var $$4 = _export;
6589
6696
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
6590
6697
  var NativePromiseConstructor = promiseNativeConstructor;
6591
- var getBuiltIn$3 = getBuiltIn$e;
6592
- var isCallable$2 = isCallable$q;
6698
+ var getBuiltIn$2 = getBuiltIn$e;
6699
+ var isCallable = isCallable$q;
6593
6700
  var defineBuiltIn = defineBuiltIn$d;
6594
6701
 
6595
6702
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
6596
6703
 
6597
6704
  // `Promise.prototype.catch` method
6598
6705
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
6599
- $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
6706
+ $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
6600
6707
  'catch': function (onRejected) {
6601
6708
  return this.then(undefined, onRejected);
6602
6709
  }
6603
6710
  });
6604
6711
 
6605
6712
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
6606
- if (isCallable$2(NativePromiseConstructor)) {
6607
- var method = getBuiltIn$3('Promise').prototype['catch'];
6713
+ if (isCallable(NativePromiseConstructor)) {
6714
+ var method = getBuiltIn$2('Promise').prototype['catch'];
6608
6715
  if (NativePromisePrototype['catch'] !== method) {
6609
6716
  defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
6610
6717
  }
6611
6718
  }
6612
6719
 
6613
- var $$4 = _export;
6614
- var call$2 = functionCall;
6720
+ var $$3 = _export;
6721
+ var call$1 = functionCall;
6615
6722
  var aCallable = aCallable$b;
6616
6723
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
6617
6724
  var perform = perform$3;
@@ -6620,7 +6727,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
6620
6727
 
6621
6728
  // `Promise.race` method
6622
6729
  // https://tc39.es/ecma262/#sec-promise.race
6623
- $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
6730
+ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
6624
6731
  race: function race(iterable) {
6625
6732
  var C = this;
6626
6733
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -6628,7 +6735,7 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
6628
6735
  var result = perform(function () {
6629
6736
  var $promiseResolve = aCallable(C.resolve);
6630
6737
  iterate(iterable, function (promise) {
6631
- call$2($promiseResolve, C, promise).then(capability.resolve, reject);
6738
+ call$1($promiseResolve, C, promise).then(capability.resolve, reject);
6632
6739
  });
6633
6740
  });
6634
6741
  if (result.error) reject(result.value);
@@ -6636,13 +6743,13 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
6636
6743
  }
6637
6744
  });
6638
6745
 
6639
- var $$3 = _export;
6746
+ var $$2 = _export;
6640
6747
  var newPromiseCapabilityModule = newPromiseCapability$2;
6641
6748
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
6642
6749
 
6643
6750
  // `Promise.reject` method
6644
6751
  // https://tc39.es/ecma262/#sec-promise.reject
6645
- $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
6752
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
6646
6753
  reject: function reject(r) {
6647
6754
  var capability = newPromiseCapabilityModule.f(this);
6648
6755
  var capabilityReject = capability.reject;
@@ -6664,28 +6771,28 @@ var promiseResolve$1 = function (C, x) {
6664
6771
  return promiseCapability.promise;
6665
6772
  };
6666
6773
 
6667
- var $$2 = _export;
6668
- var getBuiltIn$2 = getBuiltIn$e;
6774
+ var $$1 = _export;
6775
+ var getBuiltIn$1 = getBuiltIn$e;
6669
6776
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
6670
6777
  var promiseResolve = promiseResolve$1;
6671
6778
 
6672
- getBuiltIn$2('Promise');
6779
+ getBuiltIn$1('Promise');
6673
6780
 
6674
6781
  // `Promise.resolve` method
6675
6782
  // https://tc39.es/ecma262/#sec-promise.resolve
6676
- $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
6783
+ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
6677
6784
  resolve: function resolve(x) {
6678
6785
  return promiseResolve(this, x);
6679
6786
  }
6680
6787
  });
6681
6788
 
6682
- var $$1 = _export;
6789
+ var $ = _export;
6683
6790
  var global$1 = global$A;
6684
- var getBuiltIn$1 = getBuiltIn$e;
6685
- var uncurryThis$2 = functionUncurryThis;
6686
- var call$1 = functionCall;
6687
- var fails$1 = fails$B;
6688
- var toString$1 = toString$b;
6791
+ var getBuiltIn = getBuiltIn$e;
6792
+ var uncurryThis = functionUncurryThis;
6793
+ var call = functionCall;
6794
+ var fails = fails$B;
6795
+ var toString = toString$b;
6689
6796
  var validateArgumentsLength = validateArgumentsLength$6;
6690
6797
  var c2i = base64Map.c2i;
6691
6798
 
@@ -6693,25 +6800,25 @@ var disallowed = /[^\d+/a-z]/i;
6693
6800
  var whitespaces = /[\t\n\f\r ]+/g;
6694
6801
  var finalEq = /[=]{1,2}$/;
6695
6802
 
6696
- var $atob = getBuiltIn$1('atob');
6803
+ var $atob = getBuiltIn('atob');
6697
6804
  var fromCharCode = String.fromCharCode;
6698
- var charAt$1 = uncurryThis$2(''.charAt);
6699
- var replace$1 = uncurryThis$2(''.replace);
6700
- var exec$1 = uncurryThis$2(disallowed.exec);
6805
+ var charAt = uncurryThis(''.charAt);
6806
+ var replace = uncurryThis(''.replace);
6807
+ var exec = uncurryThis(disallowed.exec);
6701
6808
 
6702
- var BASIC = !!$atob && !fails$1(function () {
6809
+ var BASIC = !!$atob && !fails(function () {
6703
6810
  return $atob('aGk=') !== 'hi';
6704
6811
  });
6705
6812
 
6706
- var NO_SPACES_IGNORE = BASIC && fails$1(function () {
6813
+ var NO_SPACES_IGNORE = BASIC && fails(function () {
6707
6814
  return $atob(' ') !== '';
6708
6815
  });
6709
6816
 
6710
- var NO_ENCODING_CHECK = BASIC && !fails$1(function () {
6817
+ var NO_ENCODING_CHECK = BASIC && !fails(function () {
6711
6818
  $atob('a');
6712
6819
  });
6713
6820
 
6714
- var NO_ARG_RECEIVING_CHECK = BASIC && !fails$1(function () {
6821
+ var NO_ARG_RECEIVING_CHECK = BASIC && !fails(function () {
6715
6822
  $atob();
6716
6823
  });
6717
6824
 
@@ -6721,25 +6828,25 @@ var FORCED = !BASIC || NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING
6721
6828
 
6722
6829
  // `atob` method
6723
6830
  // https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob
6724
- $$1({ global: true, bind: true, enumerable: true, forced: FORCED }, {
6831
+ $({ global: true, bind: true, enumerable: true, forced: FORCED }, {
6725
6832
  atob: function atob(data) {
6726
6833
  validateArgumentsLength(arguments.length, 1);
6727
6834
  // `webpack` dev server bug on IE global methods - use call(fn, global, ...)
6728
- if (BASIC && !NO_SPACES_IGNORE && !NO_ENCODING_CHECK) return call$1($atob, global$1, data);
6729
- var string = replace$1(toString$1(data), whitespaces, '');
6835
+ if (BASIC && !NO_SPACES_IGNORE && !NO_ENCODING_CHECK) return call($atob, global$1, data);
6836
+ var string = replace(toString(data), whitespaces, '');
6730
6837
  var output = '';
6731
6838
  var position = 0;
6732
6839
  var bc = 0;
6733
6840
  var length, chr, bs;
6734
6841
  if (string.length % 4 === 0) {
6735
- string = replace$1(string, finalEq, '');
6842
+ string = replace(string, finalEq, '');
6736
6843
  }
6737
6844
  length = string.length;
6738
- if (length % 4 === 1 || exec$1(disallowed, string)) {
6739
- throw new (getBuiltIn$1('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError');
6845
+ if (length % 4 === 1 || exec(disallowed, string)) {
6846
+ throw new (getBuiltIn('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError');
6740
6847
  }
6741
6848
  while (position < length) {
6742
- chr = charAt$1(string, position++);
6849
+ chr = charAt(string, position++);
6743
6850
  bs = bc % 4 ? bs * 64 + c2i[chr] : c2i[chr];
6744
6851
  if (bc++ % 4) output += fromCharCode(255 & bs >> (-2 * bc & 6));
6745
6852
  } return output;
@@ -7492,109 +7599,6 @@ function useApiContext() {
7492
7599
  return React.useContext(ApiContext);
7493
7600
  }
7494
7601
 
7495
- var uncurryThis$1 = functionUncurryThis;
7496
- var isArray = isArray$3;
7497
- var isCallable$1 = isCallable$q;
7498
- var classof = classofRaw$2;
7499
- var toString = toString$b;
7500
-
7501
- var push = uncurryThis$1([].push);
7502
-
7503
- var getJsonReplacerFunction = function (replacer) {
7504
- if (isCallable$1(replacer)) return replacer;
7505
- if (!isArray(replacer)) return;
7506
- var rawLength = replacer.length;
7507
- var keys = [];
7508
- for (var i = 0; i < rawLength; i++) {
7509
- var element = replacer[i];
7510
- if (typeof element == 'string') push(keys, element);
7511
- else if (typeof element == 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element));
7512
- }
7513
- var keysLength = keys.length;
7514
- var root = true;
7515
- return function (key, value) {
7516
- if (root) {
7517
- root = false;
7518
- return value;
7519
- }
7520
- if (isArray(this)) return value;
7521
- for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
7522
- };
7523
- };
7524
-
7525
- var $ = _export;
7526
- var getBuiltIn = getBuiltIn$e;
7527
- var apply = functionApply;
7528
- var call = functionCall;
7529
- var uncurryThis = functionUncurryThis;
7530
- var fails = fails$B;
7531
- var isCallable = isCallable$q;
7532
- var isSymbol = isSymbol$4;
7533
- var arraySlice = arraySlice$5;
7534
- var getReplacerFunction = getJsonReplacerFunction;
7535
- var NATIVE_SYMBOL = symbolConstructorDetection;
7536
-
7537
- var $String = String;
7538
- var $stringify = getBuiltIn('JSON', 'stringify');
7539
- var exec = uncurryThis(/./.exec);
7540
- var charAt = uncurryThis(''.charAt);
7541
- var charCodeAt = uncurryThis(''.charCodeAt);
7542
- var replace = uncurryThis(''.replace);
7543
- var numberToString = uncurryThis(1.0.toString);
7544
-
7545
- var tester = /[\uD800-\uDFFF]/g;
7546
- var low = /^[\uD800-\uDBFF]$/;
7547
- var hi = /^[\uDC00-\uDFFF]$/;
7548
-
7549
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
7550
- var symbol = getBuiltIn('Symbol')('stringify detection');
7551
- // MS Edge converts symbol values to JSON as {}
7552
- return $stringify([symbol]) !== '[null]'
7553
- // WebKit converts symbol values to JSON as null
7554
- || $stringify({ a: symbol }) !== '{}'
7555
- // V8 throws on boxed symbols
7556
- || $stringify(Object(symbol)) !== '{}';
7557
- });
7558
-
7559
- // https://github.com/tc39/proposal-well-formed-stringify
7560
- var ILL_FORMED_UNICODE = fails(function () {
7561
- return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
7562
- || $stringify('\uDEAD') !== '"\\udead"';
7563
- });
7564
-
7565
- var stringifyWithSymbolsFix = function (it, replacer) {
7566
- var args = arraySlice(arguments);
7567
- var $replacer = getReplacerFunction(replacer);
7568
- if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
7569
- args[1] = function (key, value) {
7570
- // some old implementations (like WebKit) could pass numbers as keys
7571
- if (isCallable($replacer)) value = call($replacer, this, $String(key), value);
7572
- if (!isSymbol(value)) return value;
7573
- };
7574
- return apply($stringify, null, args);
7575
- };
7576
-
7577
- var fixIllFormed = function (match, offset, string) {
7578
- var prev = charAt(string, offset - 1);
7579
- var next = charAt(string, offset + 1);
7580
- if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {
7581
- return '\\u' + numberToString(charCodeAt(match, 0), 16);
7582
- } return match;
7583
- };
7584
-
7585
- if ($stringify) {
7586
- // `JSON.stringify` method
7587
- // https://tc39.es/ecma262/#sec-json.stringify
7588
- $({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
7589
- // eslint-disable-next-line no-unused-vars -- required for `.length`
7590
- stringify: function stringify(it, replacer, space) {
7591
- var args = arraySlice(arguments);
7592
- var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
7593
- return ILL_FORMED_UNICODE && typeof result == 'string' ? replace(result, tester, fixIllFormed) : result;
7594
- }
7595
- });
7596
- }
7597
-
7598
7602
  const generateRandomId = () => `-${Math.random().toString(36).substr(2, 9)}`;
7599
7603
  const useApi = (apiCall, params, callbacks) => {
7600
7604
  const {
@@ -7651,4 +7655,4 @@ const useApi = (apiCall, params, callbacks) => {
7651
7655
  };
7652
7656
  };
7653
7657
 
7654
- export { AUTH_NAMESPACE, ApiProvider, AuthenticationContext, AuthenticationProvider, HandleOAuth2Code as Code, GEOWEB_ROLE_PRESETS_ADMIN, GEOWEB_ROLE_USER, KEEP_ALIVE_IN_SECONDS, KEEP_ALIVE_POLLER_IN_SECONDS, OAuth2Login as Login, OAuth2Logout as Logout, MILLISECOND_TO_SECOND, REFRESH_TOKEN_WHEN_PCT_EXPIRED, RequireAuth, SessionStorageKey, UserMenuRoles, UserMenuRolesConnect, apiTranslations, authTranslations, createApiInstance, createFakeApiInstance, createNonAuthApiInstance, fakeApiRequest, getApi, getAuthConfig, getCodeChallenge, getCurrentTimeInSeconds, getCurrentUrlLocation, getRandomString, getSessionStorageProvider, groupsToRoles, makeCredentialsFromTokenResponse, refreshAccessToken, refreshAccessTokenAndSetAuthContext, useApi, useApiContext, useAuthenticationContext, useAuthenticationDefaultProps };
7658
+ export { AUTH_NAMESPACE, ApiProvider, AuthenticationContext, AuthenticationProvider, HandleOAuth2Code as Code, GEOWEB_ROLE_PRESETS_ADMIN, GEOWEB_ROLE_USER, KEEP_ALIVE_IN_SECONDS, KEEP_ALIVE_POLLER_IN_SECONDS, OAuth2Login as Login, OAuth2Logout as Logout, MILLISECOND_TO_SECOND, REFRESH_TOKEN_WHEN_PCT_EXPIRED, RequireAuth, SessionStorageKey, UserMenuRoles, UserMenuRolesConnect, apiTranslations, authTranslations, createApiInstance, createFakeApiInstance, createNonAuthApiInstance, fakeApiRequest, getApi, getAuthConfig, getCodeChallenge, getConfig, getCurrentTimeInSeconds, getCurrentUrlLocation, getRandomString, getSessionStorageProvider, groupsToRoles, makeCredentialsFromTokenResponse, refreshAccessToken, refreshAccessTokenAndSetAuthContext, useApi, useApiContext, useAuthenticationContext, useAuthenticationDefaultProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/authentication",
3
- "version": "9.25.3",
3
+ "version": "9.26.0",
4
4
  "description": "GeoWeb authentication library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "@opengeoweb/theme": "*",
15
15
  "i18next": "^23.11.5",
16
16
  "react-i18next": "^14.1.2",
17
- "@opengeoweb/snackbar": "9.25.3",
17
+ "@opengeoweb/snackbar": "9.26.0",
18
18
  "react-redux": "^8.1.3",
19
19
  "@reduxjs/toolkit": "^1.9.7",
20
20
  "@mui/material": "^5.16.0"
@@ -1,4 +1,7 @@
1
+ import { ConfigType } from '@opengeoweb/shared';
1
2
  export interface SessionStorageProvider {
3
+ setConfig: (value: ConfigType) => void;
4
+ getConfig: () => ConfigType;
2
5
  setOauthState: (value: string) => void;
3
6
  getOauthState: () => string;
4
7
  removeOauthState: () => void;
@@ -15,6 +18,7 @@ export interface SessionStorageProvider {
15
18
  setCallbackUrl: (value: string) => void;
16
19
  }
17
20
  export declare enum SessionStorageKey {
21
+ CONFIG = "config",
18
22
  OAUTH_STATE = "oauth_state",
19
23
  OAUTH_CODE_VERIFIER = "code_verifier",
20
24
  OAUTH_CODE_CHALLENGE = "code_challenge",
@@ -22,3 +26,4 @@ export declare enum SessionStorageKey {
22
26
  CALLBACK_URL = "callback_url"
23
27
  }
24
28
  export declare const getSessionStorageProvider: () => SessionStorageProvider;
29
+ export declare const getConfig: () => ConfigType;