@stytch/vanilla-js 4.13.2 → 4.14.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/CHANGELOG.md +21 -0
- package/dist/SubscriptionService.d.ts +0 -1
- package/dist/adminPortal/AdminPortalWrapper.d.ts +6 -2
- package/dist/adminPortal/StytchClientContext.d.ts +8 -1
- package/dist/adminPortal/components/Autocomplete.d.ts +16 -0
- package/dist/adminPortal/components/Checkbox.d.ts +4 -0
- package/dist/adminPortal/components/EmbeddedTable.d.ts +1 -0
- package/dist/adminPortal/components/Input.d.ts +1 -0
- package/dist/adminPortal/components/ListEditor.d.ts +1 -0
- package/dist/adminPortal/components/MenuItem.d.ts +1 -0
- package/dist/adminPortal/components/PaddingLeft.d.ts +1 -0
- package/dist/adminPortal/components/PaginatedTable.d.ts +2 -1
- package/dist/adminPortal/components/RadioGroup.d.ts +4 -0
- package/dist/adminPortal/components/SearchBar.d.ts +1 -0
- package/dist/adminPortal/components/Select.d.ts +6 -9
- package/dist/adminPortal/components/Switch.d.ts +9 -0
- package/dist/adminPortal/components/Table.d.ts +1 -0
- package/dist/adminPortal/components/TableActions.d.ts +1 -0
- package/dist/adminPortal/components/Tooltip.d.ts +1 -0
- package/dist/adminPortal/index.d.ts +3 -0
- package/dist/adminPortal/index.esm.js +2 -2
- package/dist/adminPortal/index.js +2 -2
- package/dist/adminPortal/makeAdminPortalComponentMountFn.d.ts +1 -0
- package/dist/adminPortal/settings/AdminPortalOrgRouter.d.ts +19 -0
- package/dist/adminPortal/settings/AdminPortalOrgSettings.d.ts +40 -0
- package/dist/adminPortal/settings/OrgSettingsAuthenticationSettingsSection.d.ts +5 -0
- package/dist/adminPortal/settings/OrgSettingsDetailsSection.d.ts +22 -0
- package/dist/adminPortal/settings/OrgSettingsEmailDomainsSection.d.ts +5 -0
- package/dist/adminPortal/settings/OrgSettingsRoleAssignmentsSection.d.ts +5 -0
- package/dist/adminPortal/settings/OrgSettingsScreen.d.ts +2 -0
- package/dist/adminPortal/settings/mountAdminPortalOrgSettings.d.ts +16 -0
- package/dist/adminPortal/shared/components/Checkbox.d.ts +13 -0
- package/dist/adminPortal/shared/components/EmbeddedTable.d.ts +2 -2
- package/dist/adminPortal/shared/components/InfoIcon.d.ts +1 -0
- package/dist/adminPortal/shared/components/Input.d.ts +1 -0
- package/dist/adminPortal/shared/components/ListEditor.d.ts +3 -1
- package/dist/adminPortal/shared/components/PaginatedTable.d.ts +7 -1
- package/dist/adminPortal/shared/components/Radio.d.ts +14 -0
- package/dist/adminPortal/shared/components/RadioGroup.d.ts +12 -0
- package/dist/adminPortal/shared/components/RowItem.d.ts +8 -0
- package/dist/adminPortal/shared/components/SearchBar.d.ts +1 -0
- package/dist/adminPortal/shared/components/Table.d.ts +3 -2
- package/dist/adminPortal/shared/components/componentInjection.d.ts +1 -0
- package/dist/adminPortal/sso/SSOConnectionsScreen.d.ts +1 -0
- package/dist/adminPortal/sso/SSORouter.d.ts +1 -0
- package/dist/adminPortal/sso/useDisplayPagination.d.ts +9 -2
- package/dist/adminPortal/utils/Connection.d.ts +2 -2
- package/dist/adminPortal/utils/FormSectionBody.d.ts +6 -0
- package/dist/adminPortal/utils/arraysHaveSameContents.d.ts +20 -0
- package/dist/adminPortal/utils/isEmptyObject.d.ts +1 -0
- package/dist/adminPortal/utils/useAdminPortalConfig.d.ts +3 -0
- package/dist/adminPortal/utils/useApiNetworkClient.d.ts +2 -2
- package/dist/adminPortal/utils/useFormState.d.ts +1 -0
- package/dist/adminPortal/utils/useLocalStorage.d.ts +1 -0
- package/dist/adminPortal/utils/useOrgInfo.d.ts +1 -1
- package/dist/adminPortal/utils/useSsoConnections.d.ts +1 -1
- package/dist/b2b/index.esm.js +20 -9
- package/dist/b2b/index.headless.esm.js +2 -2
- package/dist/b2b/index.headless.js +2 -2
- package/dist/b2b/index.js +21 -10
- package/dist/{extractErrorMessage-HqH3v6mm.js → extractErrorMessage-BiNdYGfM.js} +5 -2
- package/dist/{extractErrorMessage-Dg5V9q2V.js → extractErrorMessage-DiDD8RjA.js} +5 -1
- package/dist/getLocalStorageKey.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/{index.headless-B3xD-OBz.js → index.headless-BLIQW_Q7.js} +2 -7
- package/dist/{index.headless-CL2Gf2QN.js → index.headless-BiqpFlmR.js} +11 -16
- package/dist/index.headless.esm.js +6 -6
- package/dist/index.headless.js +6 -6
- package/dist/index.js +1 -1
- package/dist/{internal-BNX5AEoW.js → internal-B455vZxU.js} +6 -0
- package/dist/{internal-CfUZ681R.js → internal-CDfy9hxd.js} +6 -1
- package/dist/ui/b2b/Container.d.ts +1 -0
- package/dist/ui/b2b/utils.d.ts +1 -0
- package/dist/ui/b2c/Container.d.ts +1 -0
- package/dist/ui/b2c/utils.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @stytch/vanilla-js
|
|
2
2
|
|
|
3
|
+
## 4.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1ade8d93: Add Admin Portal Org Settings UI. The Admin Portal Org Settings UI can be rendered using the `mountAdminPortalOrgSettings` function from `@stytch/vanilla-js/b2b/adminPortal`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 5e45de5f: Allow users to change number of rows per page in Admin Portal tables
|
|
12
|
+
- Updated dependencies [e1b798f4]
|
|
13
|
+
- @stytch/core@2.18.0
|
|
14
|
+
|
|
15
|
+
## 4.13.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 8c1992d1: Prevent login UI buttons from submitting parent forms
|
|
20
|
+
- 6b6833ef: Improve role selection in Admin Portal
|
|
21
|
+
- Updated dependencies [bf21c792]
|
|
22
|
+
- @stytch/core@2.17.2
|
|
23
|
+
|
|
3
24
|
## 4.13.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -3,7 +3,6 @@ import { IConsumerSubscriptionService, IB2BSubscriptionService, ISubscriptionSer
|
|
|
3
3
|
import Cookies from 'js-cookie';
|
|
4
4
|
type SubscriberFunction<T> = (value: T | null) => void;
|
|
5
5
|
type Subscribers<T> = Record<string, SubscriberFunction<T>>;
|
|
6
|
-
export declare const getLocalStorageKey: (publicToken: string, key?: string) => string;
|
|
7
6
|
export declare class SubscriptionDataLayer<T extends ConsumerState | B2BState> {
|
|
8
7
|
publicToken: string;
|
|
9
8
|
state: T | null;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AdminPortalComponentMountOptions } from './makeAdminPortalComponentMountFn';
|
|
3
|
-
|
|
3
|
+
interface AdminPortalOptions<T> extends AdminPortalComponentMountOptions {
|
|
4
|
+
config?: T;
|
|
5
|
+
}
|
|
6
|
+
export declare const AdminPortalWrapper: <T>({ children, options, }: {
|
|
4
7
|
children?: React.ReactNode;
|
|
5
|
-
options:
|
|
8
|
+
options: AdminPortalOptions<T>;
|
|
6
9
|
}) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StytchB2BHeadlessClient } from '../b2b/StytchB2BHeadlessClient';
|
|
3
|
-
|
|
3
|
+
import { AdminPortalOrgUIConfig } from './settings/AdminPortalOrgSettings';
|
|
4
|
+
export type AdminPortalContext<T> = {
|
|
5
|
+
client: StytchB2BHeadlessClient | null;
|
|
6
|
+
config?: T;
|
|
7
|
+
};
|
|
8
|
+
export declare const StytchClientContext: React.Context<AdminPortalContext<unknown>>;
|
|
9
|
+
export declare const useAdminPortalContext: <T>() => AdminPortalContext<T>;
|
|
10
|
+
export declare const useAdminPortalOrgUIConfig: () => AdminPortalOrgUIConfig | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
export interface AutocompleteProps<TSelectItem> {
|
|
3
|
+
caption?: string;
|
|
4
|
+
fullWidth?: boolean;
|
|
5
|
+
getOptionLabel?: (item: TSelectItem) => string;
|
|
6
|
+
id?: string;
|
|
7
|
+
label?: ReactNode;
|
|
8
|
+
menuAnchorHorizontal?: 'left' | 'right' | 'center';
|
|
9
|
+
selectItems: TSelectItem[];
|
|
10
|
+
onChange?: (value: TSelectItem[]) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
value: TSelectItem[];
|
|
15
|
+
}
|
|
16
|
+
export declare const Autocomplete: <TSelectItem>({ caption, fullWidth, getOptionLabel, id, label, onChange, placeholder, required, selectItems, value, }: AutocompleteProps<TSelectItem>) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { EmbeddedTableCoreProps } from '../shared/components/EmbeddedTable';
|
|
2
3
|
export type EmbeddedTableProps<T> = EmbeddedTableCoreProps<T>;
|
|
3
4
|
export declare const EmbeddedTable: <T extends string | Record<string, unknown>>(props: EmbeddedTableProps<T>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PaddingLeft: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PaginatedTableCoreProps } from '../shared/components/PaginatedTable';
|
|
2
|
-
type PaginatedTableProps<T
|
|
3
|
+
type PaginatedTableProps<T extends Record<string, unknown>> = Omit<PaginatedTableCoreProps<T>, 'keepConsistentContentHeight'>;
|
|
3
4
|
export declare const PaginatedTable: <T extends Record<string, unknown>>(props: PaginatedTableProps<T>) => JSX.Element;
|
|
4
5
|
export {};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { SelectCoreProps } from '../shared/components/Select';
|
|
3
3
|
import { MenuItemFields } from './MenuItem';
|
|
4
|
+
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"select" | "disabled" | "fullWidth" | "readOnlyContainer" | "checkIcon" | "menuPaper" | "selectContainer" | "selectContainerOpen">;
|
|
4
5
|
export type SelectItem = MenuItemFields;
|
|
5
|
-
export type SelectProps<U extends string | number | string[] | number[]> = SelectCoreProps<U, SelectItem
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
value: string;
|
|
10
|
-
subtext?: string | undefined;
|
|
11
|
-
onClick?: React.MouseEventHandler<HTMLLIElement> | undefined;
|
|
12
|
-
}>) => JSX.Element;
|
|
6
|
+
export type SelectProps<U extends string | number | string[] | number[]> = SelectCoreProps<U, SelectItem> & {
|
|
7
|
+
width?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const Select: <U extends string | number | string[] | number[]>(props: SelectProps<U>) => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TableActionCoreProps } from '../shared/components/TableActions';
|
|
2
3
|
export declare const useTableActionStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"tableActions">;
|
|
3
4
|
export { TABLE_ACTIONS_HEADER } from '../shared/components/TableActions';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { mountAdminPortalSSO } from './sso/mountAdminPortalSSO';
|
|
2
|
+
export { mountAdminPortalOrgSettings } from './settings/mountAdminPortalOrgSettings';
|
|
2
3
|
export type { AdminPortalSSOMountOptions } from './sso/mountAdminPortalSSO';
|
|
4
|
+
export type { AdminPortalOrgSettingsMountOptions } from './settings/mountAdminPortalOrgSettings';
|
|
5
|
+
export { AdminPortalB2BProducts } from './settings/AdminPortalOrgSettings';
|
|
3
6
|
export type { AdminPortalStyleConfig } from './AdminPortalStyleConfig';
|