@stytch/react 18.3.1 → 18.3.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.
- package/CHANGELOG.md +12 -0
- package/dist/adminPortal/index.d.ts +6 -22
- package/dist/adminPortal/index.esm.d.ts +6 -22
- package/dist/adminPortal/index.esm.js +5 -11000
- package/dist/adminPortal/index.js +14 -11004
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @stytch/react
|
|
2
2
|
|
|
3
|
+
## 18.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6d06cce0: Load Admin Portal components from vanilla-js directly
|
|
8
|
+
|
|
9
|
+
## 18.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7d2c2878: Fix admin portal component props
|
|
14
|
+
|
|
3
15
|
## 18.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,36 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { AdminPortalSSOMountOptions, AdminPortalOrgSettingsMountOptions, AdminPortalMemberManagementMountOptions } from "@stytch/vanilla-js/b2b/adminPortal";
|
|
3
3
|
import { StytchB2BHeadlessClient } from "@stytch/vanilla-js/b2b/headless";
|
|
4
|
-
import { PartialDeep } from "type-fest";
|
|
5
|
-
interface AdminPortalComponentProps {
|
|
6
|
-
/**
|
|
7
|
-
* The Stytch B2B client to use.
|
|
8
|
-
*/
|
|
9
|
-
client: StytchB2BHeadlessClient;
|
|
10
|
-
/**
|
|
11
|
-
* An HTML element or query selector string for the element that should contain the UI.
|
|
12
|
-
* @example '#container'
|
|
13
|
-
*/
|
|
14
|
-
element: string | HTMLElement;
|
|
15
|
-
/**
|
|
16
|
-
* An {@link AdminPortalStyleConfig} object containing custom styling info.
|
|
17
|
-
*/
|
|
18
|
-
styles?: PartialDeep<AdminPortalStyleConfig>;
|
|
19
|
-
}
|
|
20
4
|
interface InjectedOptions {
|
|
21
5
|
client: StytchB2BHeadlessClient;
|
|
22
6
|
element: HTMLElement;
|
|
23
7
|
}
|
|
24
8
|
type ExcludeInjectedOptions<T> = Omit<T, keyof InjectedOptions>;
|
|
25
|
-
type AdminPortalSSOProps =
|
|
9
|
+
type AdminPortalSSOProps = ExcludeInjectedOptions<AdminPortalSSOMountOptions>;
|
|
26
10
|
/**
|
|
27
11
|
* The Admin Portal SSO UI component.
|
|
28
12
|
* This component must be rendered within a {@link StytchB2BProvider}.
|
|
29
13
|
*
|
|
30
14
|
* See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
|
|
31
15
|
*/
|
|
32
|
-
declare const AdminPortalSSO: (props: ExcludeInjectedOptions<
|
|
33
|
-
type AdminPortalOrgSettingsProps = AdminPortalOrgSettingsMountOptions
|
|
16
|
+
declare const AdminPortalSSO: (props: ExcludeInjectedOptions<AdminPortalSSOMountOptions>) => JSX.Element;
|
|
17
|
+
type AdminPortalOrgSettingsProps = ExcludeInjectedOptions<AdminPortalOrgSettingsMountOptions>;
|
|
34
18
|
/**
|
|
35
19
|
* The Admin Portal Organization Settings UI component.
|
|
36
20
|
* This component must be rendered within a {@link StytchB2BProvider}.
|
|
@@ -38,14 +22,14 @@ type AdminPortalOrgSettingsProps = AdminPortalOrgSettingsMountOptions;
|
|
|
38
22
|
* See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
|
|
39
23
|
*/
|
|
40
24
|
declare const AdminPortalOrgSettings: (props: ExcludeInjectedOptions<AdminPortalOrgSettingsMountOptions>) => JSX.Element;
|
|
41
|
-
type AdminPortalMemberManagementProps =
|
|
25
|
+
type AdminPortalMemberManagementProps = ExcludeInjectedOptions<AdminPortalMemberManagementMountOptions>;
|
|
42
26
|
/**
|
|
43
27
|
* The Admin Portal member management UI component.
|
|
44
28
|
* This component must be rendered within a {@link StytchB2BProvider}.
|
|
45
29
|
*
|
|
46
30
|
* See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
|
|
47
31
|
*/
|
|
48
|
-
declare const AdminPortalMemberManagement: (props: ExcludeInjectedOptions<
|
|
32
|
+
declare const AdminPortalMemberManagement: (props: ExcludeInjectedOptions<AdminPortalMemberManagementMountOptions>) => JSX.Element;
|
|
49
33
|
export { AdminPortalSSO, AdminPortalOrgSettings, AdminPortalMemberManagement };
|
|
50
34
|
export { AdminPortalB2BProducts } from "@stytch/vanilla-js/b2b/adminPortal";
|
|
51
35
|
export type { AdminPortalSSOProps, AdminPortalOrgSettingsProps, AdminPortalMemberManagementProps };
|
|
@@ -1,36 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { AdminPortalSSOMountOptions, AdminPortalOrgSettingsMountOptions, AdminPortalMemberManagementMountOptions } from "@stytch/vanilla-js/b2b/adminPortal";
|
|
3
3
|
import { StytchB2BHeadlessClient } from "@stytch/vanilla-js/b2b/headless";
|
|
4
|
-
import { PartialDeep } from "type-fest";
|
|
5
|
-
interface AdminPortalComponentProps {
|
|
6
|
-
/**
|
|
7
|
-
* The Stytch B2B client to use.
|
|
8
|
-
*/
|
|
9
|
-
client: StytchB2BHeadlessClient;
|
|
10
|
-
/**
|
|
11
|
-
* An HTML element or query selector string for the element that should contain the UI.
|
|
12
|
-
* @example '#container'
|
|
13
|
-
*/
|
|
14
|
-
element: string | HTMLElement;
|
|
15
|
-
/**
|
|
16
|
-
* An {@link AdminPortalStyleConfig} object containing custom styling info.
|
|
17
|
-
*/
|
|
18
|
-
styles?: PartialDeep<AdminPortalStyleConfig>;
|
|
19
|
-
}
|
|
20
4
|
interface InjectedOptions {
|
|
21
5
|
client: StytchB2BHeadlessClient;
|
|
22
6
|
element: HTMLElement;
|
|
23
7
|
}
|
|
24
8
|
type ExcludeInjectedOptions<T> = Omit<T, keyof InjectedOptions>;
|
|
25
|
-
type AdminPortalSSOProps =
|
|
9
|
+
type AdminPortalSSOProps = ExcludeInjectedOptions<AdminPortalSSOMountOptions>;
|
|
26
10
|
/**
|
|
27
11
|
* The Admin Portal SSO UI component.
|
|
28
12
|
* This component must be rendered within a {@link StytchB2BProvider}.
|
|
29
13
|
*
|
|
30
14
|
* See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
|
|
31
15
|
*/
|
|
32
|
-
declare const AdminPortalSSO: (props: ExcludeInjectedOptions<
|
|
33
|
-
type AdminPortalOrgSettingsProps = AdminPortalOrgSettingsMountOptions
|
|
16
|
+
declare const AdminPortalSSO: (props: ExcludeInjectedOptions<AdminPortalSSOMountOptions>) => JSX.Element;
|
|
17
|
+
type AdminPortalOrgSettingsProps = ExcludeInjectedOptions<AdminPortalOrgSettingsMountOptions>;
|
|
34
18
|
/**
|
|
35
19
|
* The Admin Portal Organization Settings UI component.
|
|
36
20
|
* This component must be rendered within a {@link StytchB2BProvider}.
|
|
@@ -38,14 +22,14 @@ type AdminPortalOrgSettingsProps = AdminPortalOrgSettingsMountOptions;
|
|
|
38
22
|
* See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
|
|
39
23
|
*/
|
|
40
24
|
declare const AdminPortalOrgSettings: (props: ExcludeInjectedOptions<AdminPortalOrgSettingsMountOptions>) => JSX.Element;
|
|
41
|
-
type AdminPortalMemberManagementProps =
|
|
25
|
+
type AdminPortalMemberManagementProps = ExcludeInjectedOptions<AdminPortalMemberManagementMountOptions>;
|
|
42
26
|
/**
|
|
43
27
|
* The Admin Portal member management UI component.
|
|
44
28
|
* This component must be rendered within a {@link StytchB2BProvider}.
|
|
45
29
|
*
|
|
46
30
|
* See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
|
|
47
31
|
*/
|
|
48
|
-
declare const AdminPortalMemberManagement: (props: ExcludeInjectedOptions<
|
|
32
|
+
declare const AdminPortalMemberManagement: (props: ExcludeInjectedOptions<AdminPortalMemberManagementMountOptions>) => JSX.Element;
|
|
49
33
|
export { AdminPortalSSO, AdminPortalOrgSettings, AdminPortalMemberManagement };
|
|
50
34
|
export { AdminPortalB2BProducts } from "@stytch/vanilla-js/b2b/adminPortal";
|
|
51
35
|
export type { AdminPortalSSOProps, AdminPortalOrgSettingsProps, AdminPortalMemberManagementProps };
|