@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.
- package/AdminPortalProps.d.ts +10 -0
- package/AdminPortalProps.js +1 -0
- package/Components/ChangePasswordForm.d.ts +3 -0
- package/Components/ChangePasswordForm.js +1 -0
- package/Components/InviteUserDialog.d.ts +12 -0
- package/Components/InviteUserDialog.js +1 -0
- package/Components/ProfilePage.d.ts +3 -0
- package/Components/ProfilePage.js +1 -0
- package/Components/UsersTable.d.ts +14 -0
- package/Components/UsersTable.js +1 -0
- package/Components/base-component.d.ts +18 -0
- package/Components/base-component.js +1 -0
- package/Components/index.d.ts +5 -0
- package/Components/index.js +5 -0
- package/Components/package.json +6 -0
- package/Dialogs/index.d.ts +7 -0
- package/Dialogs/index.js +1 -0
- package/Dialogs/package.json +6 -0
- package/Localizations/LoginBoxLocalization/forgetPassword.d.ts +0 -56
- package/ThemeOptions/LoginBoxTheme/SignupPageTheme.d.ts +2 -1
- package/index.d.ts +3 -0
- package/index.js +4 -1
- package/node/AdminPortalProps.js +5 -0
- package/node/Components/ChangePasswordForm.js +5 -0
- package/node/Components/InviteUserDialog.js +5 -0
- package/node/Components/ProfilePage.js +5 -0
- package/node/Components/UsersTable.js +5 -0
- package/node/Components/base-component.js +5 -0
- package/node/Components/index.js +60 -0
- package/node/Dialogs/index.js +5 -0
- package/node/index.js +34 -1
- package/package.json +2 -2
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 {};
|
package/Dialogs/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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.
|
|
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,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
|
+
});
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license Frontegg v7.
|
|
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.
|
|
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.
|
|
9
|
+
"@frontegg/redux-store": "7.70.0-alpha.0",
|
|
10
10
|
"csstype": "^3.0.9",
|
|
11
11
|
"deepmerge": "^4.2.2"
|
|
12
12
|
},
|