@stytch/vanilla-js 4.16.2 → 4.17.1
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 +25 -0
- package/dist/adminPortal/AdminPortalStyleConfig.d.ts +8 -0
- package/dist/adminPortal/components/RolesList.d.ts +12 -0
- package/dist/adminPortal/index.esm.js +2 -2
- package/dist/adminPortal/index.js +2 -2
- package/dist/adminPortal/memberManagement/AdminPortalMemberManagement.d.ts +4 -1
- package/dist/adminPortal/settings/AdminPortalOrgSettings.d.ts +4 -3
- package/dist/adminPortal/sso/AdminPortalSSO.d.ts +11 -1
- package/dist/adminPortal/sso/mountAdminPortalSSO.d.ts +1 -1
- package/dist/adminPortal/utils/useAdminPortalConfig.d.ts +3 -0
- package/dist/adminPortal/utils/useMutateScimConnection.d.ts +4 -0
- package/dist/adminPortal/utils/useRoleSortFn.d.ts +4 -0
- package/dist/adminPortal/utils/useScimConnection.d.ts +4 -0
- package/dist/adminPortal/utils/useScimConnectionGroups.d.ts +6 -0
- package/dist/adminPortal/utils/useSsoConnections.d.ts +3 -1
- package/dist/b2b/index.headless.esm.js +1 -1
- package/dist/b2b/index.headless.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.headless.esm.js +1 -1
- package/dist/index.headless.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -3,10 +3,13 @@ import { MappedPropsFromRouteMap } from '../Router';
|
|
|
3
3
|
import { AdminPortalComponentMountOptions } from '../makeAdminPortalComponentMountFn';
|
|
4
4
|
import { AdminPortalUIConfigRoleDisplayProvider } from '../utils/AdminPortalUIConfigRoleDisplayProvider';
|
|
5
5
|
/**
|
|
6
|
-
* The UI configuration object for
|
|
6
|
+
* The UI configuration object for member management used in the Admin Portal.
|
|
7
7
|
*/
|
|
8
8
|
export type AdminPortalMemberManagementUIConfig = AdminPortalUIConfigRoleDisplayProvider;
|
|
9
9
|
export interface AdminPortalMemberManagementMountOptions extends AdminPortalComponentMountOptions {
|
|
10
|
+
/**
|
|
11
|
+
* An {@link AdminPortalMemberManagementUIConfig} object containing custom configuration.
|
|
12
|
+
*/
|
|
10
13
|
config?: AdminPortalMemberManagementUIConfig;
|
|
11
14
|
}
|
|
12
15
|
declare const routeMap: {
|
|
@@ -3,6 +3,7 @@ import { MappedPropsFromRouteMap } from '../Router';
|
|
|
3
3
|
import { AdminPortalComponentMountOptions } from '../makeAdminPortalComponentMountFn';
|
|
4
4
|
import { B2BMFAProducts } from '@stytch/core/public';
|
|
5
5
|
import { EnumOrStringLiteral } from '@stytch/core';
|
|
6
|
+
import { AdminPortalUIConfigRoleDisplayProvider } from '../utils/AdminPortalUIConfigRoleDisplayProvider';
|
|
6
7
|
export declare enum AdminPortalB2BProducts {
|
|
7
8
|
emailMagicLinks = "emailMagicLinks",
|
|
8
9
|
sso = "sso",
|
|
@@ -13,17 +14,17 @@ export declare enum AdminPortalB2BProducts {
|
|
|
13
14
|
/**
|
|
14
15
|
* The UI configuration object for organization used in the Admin Portal.
|
|
15
16
|
*/
|
|
16
|
-
export interface AdminPortalOrgUIConfig {
|
|
17
|
+
export interface AdminPortalOrgUIConfig extends AdminPortalUIConfigRoleDisplayProvider {
|
|
17
18
|
/**
|
|
18
19
|
* Specify the auth methods that a member can choose to enable when restricting the organization's allowed auth methods.
|
|
19
20
|
* If not specified, all auth methods are shown.
|
|
20
21
|
*/
|
|
21
|
-
allowedAuthMethods
|
|
22
|
+
allowedAuthMethods?: EnumOrStringLiteral<AdminPortalB2BProducts>[];
|
|
22
23
|
/**
|
|
23
24
|
* Specify the MFA auth methods that a member can choose to enable when restricting the organization's allowed auth methods.
|
|
24
25
|
* If not specified, all auth methods are shown.
|
|
25
26
|
*/
|
|
26
|
-
allowedMfaAuthMethods
|
|
27
|
+
allowedMfaAuthMethods?: EnumOrStringLiteral<B2BMFAProducts>[];
|
|
27
28
|
}
|
|
28
29
|
export interface AdminPortalOrgSettingsMountOptions extends AdminPortalComponentMountOptions {
|
|
29
30
|
/**
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MappedPropsFromRouteMap } from '../Router';
|
|
3
3
|
import { AdminPortalComponentMountOptions } from '../makeAdminPortalComponentMountFn';
|
|
4
|
-
|
|
4
|
+
import { AdminPortalUIConfigRoleDisplayProvider } from '../utils/AdminPortalUIConfigRoleDisplayProvider';
|
|
5
|
+
/**
|
|
6
|
+
* The UI configuration object for SSO configuration used in the Admin Portal.
|
|
7
|
+
*/
|
|
8
|
+
export type AdminPortalSSOUIConfig = AdminPortalUIConfigRoleDisplayProvider;
|
|
9
|
+
export interface AdminPortalSSOMountOptions extends AdminPortalComponentMountOptions {
|
|
10
|
+
/**
|
|
11
|
+
* An {@link AdminPortalSSOUIConfig} object containing custom configuration.
|
|
12
|
+
*/
|
|
13
|
+
config?: AdminPortalSSOUIConfig;
|
|
14
|
+
}
|
|
5
15
|
declare const routeMap: {
|
|
6
16
|
connectionDetails: ({ connectionId }: {
|
|
7
17
|
connectionId: string;
|
|
@@ -12,4 +12,4 @@ export type { AdminPortalSSOMountOptions } from './AdminPortalSSO';
|
|
|
12
12
|
*
|
|
13
13
|
* @throws An error when the element specified by elementId cannot be found.
|
|
14
14
|
*/
|
|
15
|
-
export declare const mountAdminPortalSSO: (options: import("
|
|
15
|
+
export declare const mountAdminPortalSSO: (options: import("./AdminPortalSSO").AdminPortalSSOMountOptions) => void;
|
|
@@ -8,6 +8,9 @@ interface AdminPortalConfigResponse extends ResponseCommon {
|
|
|
8
8
|
organization_config: {
|
|
9
9
|
mfa_controls_enabled: boolean;
|
|
10
10
|
};
|
|
11
|
+
scim_config: {
|
|
12
|
+
scim_enabled: boolean;
|
|
13
|
+
};
|
|
11
14
|
}
|
|
12
15
|
export declare const useAdminPortalConfig: () => import("swr/_internal").SWRResponse<AdminPortalConfigResponse, any, any>;
|
|
13
16
|
export {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { RBACPolicyRole } from '@stytch/core';
|
|
2
|
+
export declare const useRolesById: () => Record<string, RBACPolicyRole & {
|
|
3
|
+
displayName: string;
|
|
4
|
+
}> | undefined;
|
|
1
5
|
export declare const useRoleSortFn: () => <T extends {
|
|
2
6
|
role_id: string;
|
|
3
7
|
}>(roles: readonly T[]) => ({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const scimGetConnectionKey: (orgId: string | undefined, connectionId: string | undefined) => string[] | null;
|
|
2
|
+
export declare const useScimConnection: ({ shouldFetch }: {
|
|
3
|
+
shouldFetch: boolean;
|
|
4
|
+
}) => import("swr/_internal").SWRResponse<import("@stytch/core/dist/public").B2BSCIMGetConnectionResponse, any, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { B2BSCIMGetConnectionGroupsResponse } from '@stytch/core/public';
|
|
2
|
+
export declare const MAX_LIMIT_CONNECTION_GROUPS = 1000;
|
|
3
|
+
export declare const scimGetConnectionGroupsKey: (orgId: string | undefined) => (string | undefined)[];
|
|
4
|
+
export declare const useScimConnectionGroups: ({ shouldFetch }: {
|
|
5
|
+
shouldFetch: boolean;
|
|
6
|
+
}) => import("swr/_internal").SWRResponse<B2BSCIMGetConnectionGroupsResponse, any, any>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const ssoGetConnectionsKey: (orgId: string | undefined) => (string | undefined)[];
|
|
2
|
-
export declare const useSsoConnections: (
|
|
2
|
+
export declare const useSsoConnections: ({ shouldFetch }: {
|
|
3
|
+
shouldFetch: boolean;
|
|
4
|
+
}) => import("swr/_internal").SWRResponse<import("@stytch/core/dist/public").B2BSSOGetConnectionsResponse, any, any>;
|
|
@@ -423,7 +423,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
|
|
|
423
423
|
}]);
|
|
424
424
|
return ClientsideServicesProvider;
|
|
425
425
|
}();
|
|
426
|
-
var version = "4.
|
|
426
|
+
var version = "4.17.1";
|
|
427
427
|
var NetworkClient = /*#__PURE__*/function () {
|
|
428
428
|
function NetworkClient(_publicToken, _subscriptionDataLayer, baseURL, additionalTelemetryDataFn) {
|
|
429
429
|
_classCallCheck(this, NetworkClient);
|
|
@@ -424,7 +424,7 @@ var ClientsideServicesProvider = /*#__PURE__*/function () {
|
|
|
424
424
|
}]);
|
|
425
425
|
return ClientsideServicesProvider;
|
|
426
426
|
}();
|
|
427
|
-
var version = "4.
|
|
427
|
+
var version = "4.17.1";
|
|
428
428
|
var NetworkClient = /*#__PURE__*/function () {
|
|
429
429
|
function NetworkClient(_publicToken, _subscriptionDataLayer, baseURL, additionalTelemetryDataFn) {
|
|
430
430
|
_classCallCheck(this, NetworkClient);
|