@frontegg/types 7.69.0-alpha.1 → 7.70.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.
@@ -0,0 +1,10 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { FronteggAppInstance } from './FronteggAppInstance';
3
+ import { FronteggAppOptions } from './FronteggAppOptions';
4
+ export interface AdminPortalProps {
5
+ injector: FronteggAppInstance;
6
+ options: FronteggAppOptions;
7
+ staticRoute?: string;
8
+ setThemeSetter?: any;
9
+ setStaticRouteSetter?: (action: Dispatch<SetStateAction<string | undefined>>) => void;
10
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { CMCComponentProps } from './base-component';
2
+ export interface ChangePasswordFormProps extends CMCComponentProps {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { CMCComponentProps } from './base-component';
2
+ export interface InviteUserDialogProps extends CMCComponentProps {
3
+ }
4
+ export interface InviteUserDialogContextData {
5
+ dialogOpen: boolean;
6
+ openDialog: () => void;
7
+ closeDialog: () => void;
8
+ }
9
+ export interface UseInviteUserDialogStoreOptions {
10
+ id?: string;
11
+ initialState?: InviteUserDialogContextData;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { CMCComponentProps } from './base-component';
2
+ export interface ProfilePageProps extends CMCComponentProps {
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { CMCComponentProps } from './base-component';
2
+ export interface UsersTableProps extends CMCComponentProps<{
3
+ overrideColumns?: (supportedCells: Record<string, any>, columns: any) => any;
4
+ }> {
5
+ }
6
+ export interface UsersTableContextData {
7
+ searchQuery: string;
8
+ searching: boolean;
9
+ onSearch: (query: string) => void;
10
+ }
11
+ export interface UseTableStoreOptions {
12
+ id?: string;
13
+ initialState?: UsersTableContextData;
14
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,18 @@
1
+ import { FronteggAppOptions } from '../FronteggAppOptions';
2
+ import { FronteggAppInstance } from '../FronteggAppInstance';
3
+ import { FronteggThemeOptions } from '../ThemeOptions';
4
+ import { LocalizationsOverrides } from '../Localizations';
5
+ export type CMCComponentProps<T = {}> = {
6
+ props: T & {
7
+ id?: string;
8
+ };
9
+ hostStyle?: React.CSSProperties;
10
+ themeOptions?: FronteggThemeOptions;
11
+ localizations?: LocalizationsOverrides;
12
+ } & CMCContainerProps;
13
+ export type CMCContainerProps = {
14
+ injector: FronteggAppInstance;
15
+ options: FronteggAppOptions;
16
+ slotsContainer: HTMLElement;
17
+ rootEl: HTMLElement;
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './UsersTable';
2
+ export * from './InviteUserDialog';
3
+ export * from './ProfilePage';
4
+ export * from './base-component';
5
+ export * from './ChangePasswordForm';
@@ -0,0 +1,5 @@
1
+ export * from './UsersTable';
2
+ export * from './InviteUserDialog';
3
+ export * from './ProfilePage';
4
+ export * from './base-component';
5
+ export * from './ChangePasswordForm';
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/Components/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface DeactivateInviteLinkDialogProps {
2
+ onClose: (result?: boolean) => void;
3
+ }
4
+ export type DialogType = 'DeactivateInviteLinkDialog';
5
+ export interface DialogPropsMap {
6
+ DeactivateInviteLinkDialog: DeactivateInviteLinkDialogProps;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/Dialogs/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -19,22 +19,6 @@ export interface ForgetPasswordLocalization {
19
19
  * Forget password form email input placeholder
20
20
  */
21
21
  emailInputPlaceholder: string;
22
- /**
23
- * Forget password form email or phone input label
24
- */
25
- emailOrPhoneInputLabel: string;
26
- /**
27
- * Forget password form email or phone input placeholder
28
- */
29
- emailOrPhonePlaceHolder: string;
30
- /**
31
- * Forget password form phone input label
32
- */
33
- phoneInputLabel: string;
34
- /**
35
- * Forget password form phone input placeholder
36
- */
37
- phonePlaceholder: string;
38
22
  /**
39
23
  * error message displayed if email is invalid
40
24
  */
@@ -43,49 +27,9 @@ export interface ForgetPasswordLocalization {
43
27
  * error message displayed if email is empty
44
28
  */
45
29
  emailIsRequired: string;
46
- /**
47
- * error message displayed if phone is invalid
48
- */
49
- phoneIsInvalid: string;
50
- /**
51
- * error message displayed if phone is empty
52
- */
53
- phoneIsRequired: string;
54
- /**
55
- * Text for submit button
56
- */
57
30
  submitButtonText: string;
58
- /**
59
- * Text for back to login link
60
- */
61
31
  backToLogin: string;
62
- /**
63
- * Title displayed on success screen
64
- */
65
32
  resetEmailSentTitle: string;
66
- /**
67
- * Message displayed on success screen (use {{identifier}} for placeholder)
68
- */
69
33
  resetEmailSentMessage: string;
70
- /**
71
- * Title for the password recovery method selection screen
72
- * @default Password recovery
73
- */
74
- passwordRecoveryTitle?: string;
75
- /**
76
- * Subtitle for the password recovery method selection screen
77
- * @default To continue, choose one of these methods
78
- */
79
- passwordRecoverySubtitle?: string;
80
- /**
81
- * Text for the email recovery option button
82
- * @default Send an email with link
83
- */
84
- emailOptionTitle?: string;
85
- /**
86
- * Text for the SMS recovery option button
87
- * @default Send a SMS code
88
- */
89
- smsOptionTitle?: string;
90
34
  };
91
35
  }
@@ -123,8 +123,9 @@ export interface SignupPageComponentsTheme {
123
123
  * This function will be called before rendering the signup form
124
124
  * and will receive the default signup fields, the Yup instance and the translation function
125
125
  * The function should return the modified array of form field configurations
126
+ * Use string js code to be evaluated at runtime
126
127
  */
127
- overrideSignupFields?: OverrideSignupFields;
128
+ overrideSignupFields?: OverrideSignupFields | string;
128
129
  /**
129
130
  * If true, beside the password field will be displayed a confirmation password field
130
131
  * Default is false
package/index.d.ts CHANGED
@@ -7,6 +7,9 @@ export * from './Metadata';
7
7
  export * from './CheckoutDialogOptions';
8
8
  export * from './CustomLoginTypes';
9
9
  export * from './ShowAdminPortalOptions';
10
+ export * from './Dialogs';
10
11
  export * from './Common';
12
+ export * from './AdminPortalProps';
13
+ export * from './Components';
11
14
  export type { Entitlement, NotEntitledJustification, EntitledToOptions, LoadEntitlementsCallback, StepUpOptions, IsSteppedUpOptions, SwitchTenantOptions, } from '@frontegg/redux-store';
12
15
  export type { UserEntitlementsContext as UserEntitlementsResponseV2, CustomAttributes, Attributes, JwtAttributes, } from '@frontegg/entitlements-javascript-commons';
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.69.0-alpha.1
1
+ /** @license Frontegg v7.70.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.
@@ -12,5 +12,8 @@ export * from './Metadata';
12
12
  export * from './CheckoutDialogOptions';
13
13
  export * from './CustomLoginTypes';
14
14
  export * from './ShowAdminPortalOptions';
15
+ export * from './Dialogs';
15
16
  export * from './Common';
17
+ export * from './AdminPortalProps';
18
+ export * from './Components';
16
19
  export {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _UsersTable = require("./UsersTable");
7
+ Object.keys(_UsersTable).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _UsersTable[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _UsersTable[key];
14
+ }
15
+ });
16
+ });
17
+ var _InviteUserDialog = require("./InviteUserDialog");
18
+ Object.keys(_InviteUserDialog).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _InviteUserDialog[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _InviteUserDialog[key];
25
+ }
26
+ });
27
+ });
28
+ var _ProfilePage = require("./ProfilePage");
29
+ Object.keys(_ProfilePage).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _ProfilePage[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _ProfilePage[key];
36
+ }
37
+ });
38
+ });
39
+ var _baseComponent = require("./base-component");
40
+ Object.keys(_baseComponent).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _baseComponent[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _baseComponent[key];
47
+ }
48
+ });
49
+ });
50
+ var _ChangePasswordForm = require("./ChangePasswordForm");
51
+ Object.keys(_ChangePasswordForm).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _ChangePasswordForm[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _ChangePasswordForm[key];
58
+ }
59
+ });
60
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.69.0-alpha.1
1
+ /** @license Frontegg v7.70.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.
@@ -107,6 +107,17 @@ Object.keys(_ShowAdminPortalOptions).forEach(function (key) {
107
107
  }
108
108
  });
109
109
  });
110
+ var _Dialogs = require("./Dialogs");
111
+ Object.keys(_Dialogs).forEach(function (key) {
112
+ if (key === "default" || key === "__esModule") return;
113
+ if (key in exports && exports[key] === _Dialogs[key]) return;
114
+ Object.defineProperty(exports, key, {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _Dialogs[key];
118
+ }
119
+ });
120
+ });
110
121
  var _Common = require("./Common");
111
122
  Object.keys(_Common).forEach(function (key) {
112
123
  if (key === "default" || key === "__esModule") return;
@@ -117,4 +128,26 @@ Object.keys(_Common).forEach(function (key) {
117
128
  return _Common[key];
118
129
  }
119
130
  });
131
+ });
132
+ var _AdminPortalProps = require("./AdminPortalProps");
133
+ Object.keys(_AdminPortalProps).forEach(function (key) {
134
+ if (key === "default" || key === "__esModule") return;
135
+ if (key in exports && exports[key] === _AdminPortalProps[key]) return;
136
+ Object.defineProperty(exports, key, {
137
+ enumerable: true,
138
+ get: function () {
139
+ return _AdminPortalProps[key];
140
+ }
141
+ });
142
+ });
143
+ var _Components = require("./Components");
144
+ Object.keys(_Components).forEach(function (key) {
145
+ if (key === "default" || key === "__esModule") return;
146
+ if (key in exports && exports[key] === _Components[key]) return;
147
+ Object.defineProperty(exports, key, {
148
+ enumerable: true,
149
+ get: function () {
150
+ return _Components[key];
151
+ }
152
+ });
120
153
  });
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/types",
3
- "version": "7.69.0-alpha.1",
3
+ "version": "7.70.0-alpha.0",
4
4
  "main": "./node/index.js",
5
5
  "author": "Frontegg LTD",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/redux-store": "7.69.0-alpha.1",
9
+ "@frontegg/redux-store": "7.70.0-alpha.0",
10
10
  "csstype": "^3.0.9",
11
11
  "deepmerge": "^4.2.2"
12
12
  },