@stytch/react 19.12.0 → 19.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 +14 -0
- package/dist/{StytchB2BContext-f7acf57f.js → StytchB2BContext-dad97135.js} +1 -1
- package/dist/{StytchB2BContext-4afdf6a8.js → StytchB2BContext-dc5957f6.js} +1 -1
- package/dist/adminPortal/index.esm.js +2 -2
- package/dist/adminPortal/index.js +2 -2
- package/dist/b2b/index.d.ts +1 -1
- package/dist/b2b/index.esm.d.ts +1 -1
- package/dist/b2b/index.esm.js +3 -3
- package/dist/b2b/index.js +2 -2
- package/dist/index-b14d4efe.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{useIsomorphicLayoutEffect-672e4b66.js → useIsomorphicLayoutEffect-35a9b44b.js} +3 -1
- package/dist/{useIsomorphicLayoutEffect-681e2138.js → useIsomorphicLayoutEffect-3bc90e37.js} +3 -1
- package/package.json +5 -3
- /package/dist/{StytchB2BContext-4afdf6a8.d.ts → StytchB2BContext-dad97135.d.ts} +0 -0
- /package/dist/{StytchB2BContext-f7acf57f.d.ts → StytchB2BContext-dc5957f6.d.ts} +0 -0
- /package/dist/{useIsomorphicLayoutEffect-672e4b66.d.ts → useIsomorphicLayoutEffect-35a9b44b.d.ts} +0 -0
- /package/dist/{useIsomorphicLayoutEffect-681e2138.d.ts → useIsomorphicLayoutEffect-3bc90e37.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @stytch/react
|
|
2
2
|
|
|
3
|
+
## 19.14.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3008b9e: Add options to the Admin Portal Member Management and SSO Connections configuration to specify the redirect URL when inviting members and testing SSO connections
|
|
8
|
+
- 3008b9e: Add the ability for users to go back from the MFA enrollment screen to change their enrollment method
|
|
9
|
+
|
|
10
|
+
## 19.13.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- bd48584: Store last used OAuth and SSO method locally and move it to the top of the list the next time users visit the log in page.
|
|
15
|
+
Add "provider.lastUsed" translation string for "Last used" text indicating the last used auth method.
|
|
16
|
+
|
|
3
17
|
## 19.12.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-
|
|
4
|
+
var useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-35a9b44b.js');
|
|
5
5
|
var StytchSSRProxy = require('./StytchSSRProxy-86bc42b3.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { createContext, useContext, useEffect, useMemo, useCallback, useRef } from 'react';
|
|
2
|
-
import { i as invariant, u as useAsyncState, m as mergeWithStableProps } from './useIsomorphicLayoutEffect-
|
|
2
|
+
import { i as invariant, u as useAsyncState, m as mergeWithStableProps } from './useIsomorphicLayoutEffect-3bc90e37.js';
|
|
3
3
|
import { n as noProviderError, i as isStytchSSRProxy } from './StytchSSRProxy-34c789b5.js';
|
|
4
4
|
|
|
5
5
|
const initialMember = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { mountAdminPortalSSO, mountAdminPortalOrgSettings, mountAdminPortalMemberManagement, mountAdminPortalSCIM } from '@stytch/vanilla-js/b2b/adminPortal';
|
|
2
2
|
export { AdminPortalB2BProducts } from '@stytch/vanilla-js/b2b/adminPortal';
|
|
3
3
|
import React, { useRef } from 'react';
|
|
4
|
-
import { u as useIsMounted__INTERNAL, a as useStytchB2BClient } from '../StytchB2BContext-
|
|
4
|
+
import { u as useIsMounted__INTERNAL, a as useStytchB2BClient } from '../StytchB2BContext-dc5957f6.js';
|
|
5
5
|
import { n as noProviderError } from '../StytchSSRProxy-34c789b5.js';
|
|
6
|
-
import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-
|
|
6
|
+
import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-3bc90e37.js';
|
|
7
7
|
|
|
8
8
|
const makeAdminPortalComponent = (mountFn, componentName) => {
|
|
9
9
|
const Component = (props) => {
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var adminPortal = require('@stytch/vanilla-js/b2b/adminPortal');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var StytchB2BContext = require('../StytchB2BContext-
|
|
7
|
+
var StytchB2BContext = require('../StytchB2BContext-dad97135.js');
|
|
8
8
|
var StytchSSRProxy = require('../StytchSSRProxy-86bc42b3.js');
|
|
9
|
-
var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-
|
|
9
|
+
var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-35a9b44b.js');
|
|
10
10
|
|
|
11
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
12
|
|
package/dist/b2b/index.d.ts
CHANGED
|
@@ -314,7 +314,7 @@ interface StytchB2BProviderProps<TProjectConfiguration extends StytchProjectConf
|
|
|
314
314
|
* )
|
|
315
315
|
*/
|
|
316
316
|
declare const StytchB2BProvider: <TProjectConfiguration extends Partial<import("@stytch/core/public").StytchProjectConfiguration> = Stytch.DefaultProjectConfiguration>({ stytch, children, assumeHydrated }: StytchB2BProviderProps<TProjectConfiguration>) => JSX.Element;
|
|
317
|
-
export { useStytchB2BClient, withStytchB2BClient, withStytchPermissions } from "../StytchB2BContext-
|
|
317
|
+
export { useStytchB2BClient, withStytchB2BClient, withStytchPermissions } from "../StytchB2BContext-dad97135.js";
|
|
318
318
|
export { StytchB2BProvider, useStytchMemberSession, useStytchMember, useStytchIsAuthorized, useStytchOrganization, withStytchMemberSession, withStytchMember, withStytchOrganization, StytchB2B, B2BIdentityProvider };
|
|
319
319
|
export type { StytchB2BProviderProps, StytchB2BProps, B2BIdentityProviderProps };
|
|
320
320
|
export { parseOAuthAuthorizeParams, parseOAuthLogoutParams } from '@stytch/vanilla-js';
|
package/dist/b2b/index.esm.d.ts
CHANGED
|
@@ -314,7 +314,7 @@ interface StytchB2BProviderProps<TProjectConfiguration extends StytchProjectConf
|
|
|
314
314
|
* )
|
|
315
315
|
*/
|
|
316
316
|
declare const StytchB2BProvider: <TProjectConfiguration extends Partial<import("@stytch/core/public").StytchProjectConfiguration> = Stytch.DefaultProjectConfiguration>({ stytch, children, assumeHydrated }: StytchB2BProviderProps<TProjectConfiguration>) => JSX.Element;
|
|
317
|
-
export { useStytchB2BClient, withStytchB2BClient, withStytchPermissions } from "../StytchB2BContext-
|
|
317
|
+
export { useStytchB2BClient, withStytchB2BClient, withStytchPermissions } from "../StytchB2BContext-dc5957f6.js";
|
|
318
318
|
export { StytchB2BProvider, useStytchMemberSession, useStytchMember, useStytchIsAuthorized, useStytchOrganization, withStytchMemberSession, withStytchMember, withStytchOrganization, StytchB2B, B2BIdentityProvider };
|
|
319
319
|
export type { StytchB2BProviderProps, StytchB2BProps, B2BIdentityProviderProps };
|
|
320
320
|
export { parseOAuthAuthorizeParams, parseOAuthLogoutParams } from '@stytch/vanilla-js';
|
package/dist/b2b/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
|
-
import { u as useIsMounted__INTERNAL, a as useStytchB2BClient, i as isUIClient, b as useStytchMember$1, c as useStytchMemberSession$1, d as useStytchOrganization$1, e as useStytchIsAuthorized$1, w as withStytchMember$1, f as withStytchMemberSession$1, g as withStytchOrganization$1, S as StytchB2BProvider$1 } from '../StytchB2BContext-
|
|
3
|
-
export { a as useStytchB2BClient, h as withStytchB2BClient, j as withStytchPermissions } from '../StytchB2BContext-
|
|
4
|
-
import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-
|
|
2
|
+
import { u as useIsMounted__INTERNAL, a as useStytchB2BClient, i as isUIClient, b as useStytchMember$1, c as useStytchMemberSession$1, d as useStytchOrganization$1, e as useStytchIsAuthorized$1, w as withStytchMember$1, f as withStytchMemberSession$1, g as withStytchOrganization$1, S as StytchB2BProvider$1 } from '../StytchB2BContext-dc5957f6.js';
|
|
3
|
+
export { a as useStytchB2BClient, h as withStytchB2BClient, j as withStytchPermissions } from '../StytchB2BContext-dc5957f6.js';
|
|
4
|
+
import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-3bc90e37.js';
|
|
5
5
|
import { a as noHeadlessClientError, n as noProviderError } from '../StytchSSRProxy-34c789b5.js';
|
|
6
6
|
export { parseOAuthAuthorizeParams, parseOAuthLogoutParams } from '@stytch/vanilla-js';
|
|
7
7
|
|
package/dist/b2b/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var StytchB2BContext = require('../StytchB2BContext-
|
|
7
|
-
var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-
|
|
6
|
+
var StytchB2BContext = require('../StytchB2BContext-dad97135.js');
|
|
7
|
+
var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-35a9b44b.js');
|
|
8
8
|
var StytchSSRProxy = require('../StytchSSRProxy-86bc42b3.js');
|
|
9
9
|
var vanillaJs = require('@stytch/vanilla-js');
|
|
10
10
|
|
package/dist/index-b14d4efe.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { createDeepEqual } from "./createDeepEqual-5555f2e1.js";
|
|
2
|
-
export { mergeWithStableProps } from "./useIsomorphicLayoutEffect-
|
|
2
|
+
export { mergeWithStableProps } from "./useIsomorphicLayoutEffect-3bc90e37.js";
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { createContext, useContext, useEffect, useMemo, useCallback, useRef } from 'react';
|
|
2
|
-
import { i as invariant, u as useAsyncState, m as mergeWithStableProps, a as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-
|
|
2
|
+
import { i as invariant, u as useAsyncState, m as mergeWithStableProps, a as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-3bc90e37.js';
|
|
3
3
|
import { n as noProviderError, i as isStytchSSRProxy, p as providerMustBeUniqueError, a as noHeadlessClientError } from './StytchSSRProxy-34c789b5.js';
|
|
4
4
|
export { parseOAuthAuthorizeParams, parseOAuthLogoutParams } from '@stytch/vanilla-js';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-
|
|
6
|
+
var useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-35a9b44b.js');
|
|
7
7
|
var StytchSSRProxy = require('./StytchSSRProxy-86bc42b3.js');
|
|
8
8
|
var vanillaJs = require('@stytch/vanilla-js');
|
|
9
9
|
|
package/dist/{useIsomorphicLayoutEffect-672e4b66.js → useIsomorphicLayoutEffect-35a9b44b.js}
RENAMED
|
@@ -65,7 +65,9 @@ const useAsyncState = (initialState) => {
|
|
|
65
65
|
};
|
|
66
66
|
}, []);
|
|
67
67
|
const setStateAction = React.useCallback((newState) => {
|
|
68
|
-
isMounted.current
|
|
68
|
+
if (isMounted.current) {
|
|
69
|
+
setState(newState);
|
|
70
|
+
}
|
|
69
71
|
}, []);
|
|
70
72
|
return [state, setStateAction];
|
|
71
73
|
};
|
package/dist/{useIsomorphicLayoutEffect-681e2138.js → useIsomorphicLayoutEffect-3bc90e37.js}
RENAMED
|
@@ -63,7 +63,9 @@ const useAsyncState = (initialState) => {
|
|
|
63
63
|
};
|
|
64
64
|
}, []);
|
|
65
65
|
const setStateAction = useCallback((newState) => {
|
|
66
|
-
isMounted.current
|
|
66
|
+
if (isMounted.current) {
|
|
67
|
+
setState(newState);
|
|
68
|
+
}
|
|
67
69
|
}, []);
|
|
68
70
|
return [state, setStateAction];
|
|
69
71
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stytch/react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.14.0",
|
|
4
4
|
"description": "Stytch's official React Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"compile": "rollup -c",
|
|
18
18
|
"dev": "rollup -c -w",
|
|
19
19
|
"dev:esbuild": "yarn dev",
|
|
20
|
-
"test": "jest"
|
|
20
|
+
"test": "jest",
|
|
21
|
+
"typecheck": "tsc --noEmit"
|
|
21
22
|
},
|
|
22
23
|
"license": "MIT",
|
|
23
24
|
"homepage": "https://stytch.com/docs/sdks/javascript-sdk",
|
|
@@ -40,9 +41,10 @@
|
|
|
40
41
|
"@stytch/internal-tsconfigs": "0.0.0",
|
|
41
42
|
"@stytch/jest-environment": "0.0.0",
|
|
42
43
|
"@stytch/js-utils": "0.0.1",
|
|
43
|
-
"@stytch/vanilla-js": "5.
|
|
44
|
+
"@stytch/vanilla-js": "5.39.0",
|
|
44
45
|
"@testing-library/react": "14.0.0",
|
|
45
46
|
"@types/jest": "29.5.14",
|
|
47
|
+
"@types/react": "18.3.26",
|
|
46
48
|
"eslint-config-custom": "0.0.1",
|
|
47
49
|
"jest": "29.7.0",
|
|
48
50
|
"react": "18.2.0",
|
|
File without changes
|
|
File without changes
|
/package/dist/{useIsomorphicLayoutEffect-672e4b66.d.ts → useIsomorphicLayoutEffect-35a9b44b.d.ts}
RENAMED
|
File without changes
|
/package/dist/{useIsomorphicLayoutEffect-681e2138.d.ts → useIsomorphicLayoutEffect-3bc90e37.d.ts}
RENAMED
|
File without changes
|