@frontegg/react-hooks 7.75.0-alpha.2 → 7.76.0-alpha.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/auth/index.d.ts CHANGED
@@ -28,3 +28,4 @@ export * from './security';
28
28
  export * from './tenants';
29
29
  export * from './usersEmailsPolicyState';
30
30
  export * from './applications';
31
+ export * from './usernames';
package/auth/index.js CHANGED
@@ -27,4 +27,5 @@ export * from './team';
27
27
  export * from './security';
28
28
  export * from './tenants';
29
29
  export * from './usersEmailsPolicyState';
30
- export * from './applications';
30
+ export * from './applications';
31
+ export * from './usernames';
@@ -0,0 +1,3 @@
1
+ import type { UsernamesState, UsernamesActions } from '@frontegg/redux-store';
2
+ export declare function useUsernamesState(): UsernamesState;
3
+ export declare const useUsernamesActions: () => UsernamesActions;
@@ -0,0 +1,8 @@
1
+ import { useStore } from '../FronteggStoreContext';
2
+ import { useSnapshot } from '../useSnapshot';
3
+ export function useUsernamesState() {
4
+ return useSnapshot(useStore().store.auth.usernamesState);
5
+ }
6
+ export const useUsernamesActions = () => {
7
+ return useStore().stateActions.auth.usernamesActions;
8
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.2
1
+ /** @license Frontegg v7.76.0-alpha.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -430,4 +430,16 @@ Object.keys(_applications).forEach(function (key) {
430
430
  return _applications[key];
431
431
  }
432
432
  });
433
+ });
434
+ var _usernames = require("./usernames");
435
+ Object.keys(_usernames).forEach(function (key) {
436
+ if (key === "default" || key === "__esModule") return;
437
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
438
+ if (key in exports && exports[key] === _usernames[key]) return;
439
+ Object.defineProperty(exports, key, {
440
+ enumerable: true,
441
+ get: function () {
442
+ return _usernames[key];
443
+ }
444
+ });
433
445
  });
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useUsernamesActions = void 0;
7
+ exports.useUsernamesState = useUsernamesState;
8
+ var _FronteggStoreContext = require("../FronteggStoreContext");
9
+ var _useSnapshot = require("../useSnapshot");
10
+ function useUsernamesState() {
11
+ return (0, _useSnapshot.useSnapshot)((0, _FronteggStoreContext.useStore)().store.auth.usernamesState);
12
+ }
13
+ const useUsernamesActions = () => {
14
+ return (0, _FronteggStoreContext.useStore)().stateActions.auth.usernamesActions;
15
+ };
16
+ exports.useUsernamesActions = useUsernamesActions;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0-alpha.2
1
+ /** @license Frontegg v7.76.0-alpha.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/react-hooks",
3
- "version": "7.75.0-alpha.2",
3
+ "version": "7.76.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/redux-store": "7.75.0-alpha.2",
10
- "@frontegg/types": "7.75.0-alpha.2",
9
+ "@frontegg/redux-store": "7.76.0-alpha.0",
10
+ "@frontegg/types": "7.76.0-alpha.0",
11
11
  "@types/react": "*",
12
12
  "@types/react-is": "^17.0.7",
13
13
  "get-value": "^3.0.1",