@frontegg/js 6.100.0-alpha.2 → 6.100.0-alpha.3

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.
@@ -20,7 +20,7 @@
20
20
  * @license MIT
21
21
  */
22
22
 
23
- /** @license Frontegg v3.0.109
23
+ /** @license Frontegg v3.0.110
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
package/utils/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export declare const createElement: (container: HTMLElement | ShadowRoot, type:
6
6
  export declare const waitThemeSetter: (instance: {
7
7
  themeSetter: ((themeOptions: FronteggThemeOptions) => {}) | undefined;
8
8
  }) => Promise<unknown>;
9
+ export declare const restoreSearchParams: (searchParams: URLSearchParams) => void;
package/utils/index.js CHANGED
@@ -29,4 +29,13 @@ export var waitThemeSetter = function waitThemeSetter(instance) {
29
29
  timeout -= 50;
30
30
  }, 50);
31
31
  });
32
+ };
33
+ export var restoreSearchParams = function restoreSearchParams(searchParams) {
34
+ var stringifiedSearchParams = searchParams.toString();
35
+ if (!stringifiedSearchParams) {
36
+ return;
37
+ }
38
+ var url = new URL(window.location.href);
39
+ url.search = stringifiedSearchParams;
40
+ window.history.pushState(null, '', url.toString());
32
41
  };
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export default {
2
- cdnVersion: '6.100.0-alpha.2'
2
+ cdnVersion: '6.100.0-alpha.3'
3
3
  };