@stytch/nextjs 21.4.2 → 21.4.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +9 -8
  3. package/dist/{StytchB2BContext-f172fdfe.js → StytchB2BContext-a2d58b5b.js} +2 -2
  4. package/dist/{StytchB2BContext-47d523b4.js → StytchB2BContext-fc9fdcb3.js} +2 -2
  5. package/dist/adminPortal/index.d.ts +1 -1
  6. package/dist/adminPortal/index.esm.d.ts +1 -1
  7. package/dist/adminPortal/index.esm.js +3 -3
  8. package/dist/adminPortal/index.js +3 -3
  9. package/dist/b2b/index.d.ts +2 -2
  10. package/dist/b2b/index.esm.d.ts +2 -2
  11. package/dist/b2b/index.esm.js +4 -4
  12. package/dist/b2b/index.headless.esm.js +1 -1
  13. package/dist/b2b/index.headless.js +1 -1
  14. package/dist/b2b/index.js +3 -3
  15. package/dist/b2b/index.ui.esm.js +1 -1
  16. package/dist/b2b/index.ui.js +1 -1
  17. package/dist/index-b14d4efe.d.ts +1 -1
  18. package/dist/index.esm.js +2 -2
  19. package/dist/index.headless.esm.js +1 -1
  20. package/dist/index.headless.js +1 -1
  21. package/dist/index.js +2 -2
  22. package/dist/index.ui.esm.js +1 -1
  23. package/dist/index.ui.js +1 -1
  24. package/package.json +3 -4
  25. /package/dist/{StytchB2BContext-47d523b4.d.ts → StytchB2BContext-a2d58b5b.d.ts} +0 -0
  26. /package/dist/{StytchB2BContext-f172fdfe.d.ts → StytchB2BContext-fc9fdcb3.d.ts} +0 -0
  27. /package/dist/{StytchSSRProxy-14916009.d.ts → StytchSSRProxy-4e34fb34.d.ts} +0 -0
  28. /package/dist/{StytchSSRProxy-14916009.js → StytchSSRProxy-4e34fb34.js} +0 -0
  29. /package/dist/{StytchSSRProxy-63bc6323.d.ts → StytchSSRProxy-c9d3bc41.d.ts} +0 -0
  30. /package/dist/{StytchSSRProxy-63bc6323.js → StytchSSRProxy-c9d3bc41.js} +0 -0
  31. /package/dist/{useIsomorphicLayoutEffect-41b6e419.d.ts → useIsomorphicLayoutEffect-2962f7c7.d.ts} +0 -0
  32. /package/dist/{useIsomorphicLayoutEffect-8da8c061.js → useIsomorphicLayoutEffect-2962f7c7.js} +0 -0
  33. /package/dist/{useIsomorphicLayoutEffect-8da8c061.d.ts → useIsomorphicLayoutEffect-a2b587d2.d.ts} +0 -0
  34. /package/dist/{useIsomorphicLayoutEffect-41b6e419.js → useIsomorphicLayoutEffect-a2b587d2.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stytch/nextjs
2
2
 
3
+ ## 21.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - c20addb: Fix some README typos
8
+
3
9
  ## 21.4.2
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -4,8 +4,11 @@ Stytch's Next.js Library
4
4
 
5
5
  ## Install
6
6
 
7
- With `npm`
8
- `npm install @stytch/nextjs @stytch/vanilla-js --save`
7
+ With `npm`:
8
+
9
+ ```shell
10
+ npm install @stytch/nextjs @stytch/vanilla-js --save
11
+ ```
9
12
 
10
13
  ## Documentation
11
14
 
@@ -25,7 +28,7 @@ import { createStytchB2BUIClient } from '@stytch/nextjs/b2b/ui';
25
28
  import { createStytchB2BHeadlessClient } from '@stytch/nextjs/b2b/headless';
26
29
  ```
27
30
 
28
- For full documentation please refer to Stytch's javascript SDK documentation on https://stytch.com/docs/sdks/javascript-sdk.
31
+ For full documentation please refer to Stytch's javascript SDK documentation on https://stytch.com/docs/sdks.
29
32
 
30
33
  ## Example Usage
31
34
 
@@ -36,11 +39,10 @@ import { createStytchUIClient } from '@stytch/nextjs/ui';
36
39
  const stytch = createStytchUIClient('public-token-<find yours in the stytch dashboard>');
37
40
 
38
41
  // Wrap your App in the StytchProvider
39
- ReactDOM.render(
42
+ const Root = () => (
40
43
  <StytchProvider stytch={stytch}>
41
44
  <App />
42
- </StytchProvider>,
43
- document.getElementById('root'),
45
+ </StytchProvider>
44
46
  );
45
47
 
46
48
  // Now use Stytch in your components
@@ -59,11 +61,10 @@ const App = () => {
59
61
  styles: {
60
62
  container: { width: '321px' },
61
63
  colors: { primary: '#0577CA' },
62
- fontFamily: '"Helvetica New", Helvetica, sans-serif',
64
+ fontFamily: '"Helvetica Neue", Helvetica, sans-serif',
63
65
  },
64
66
  callbacks: {
65
67
  onEvent: (message) => console.log(message),
66
- onSuccess: (message) => console.log(message),
67
68
  onError: (message) => console.log(message),
68
69
  },
69
70
  };
@@ -1,6 +1,6 @@
1
1
  import React, { createContext, useContext, useEffect, useMemo } from 'react';
2
- import { i as invariant, u as useAsyncState, m as mergeWithStableProps } from './useIsomorphicLayoutEffect-8da8c061.js';
3
- import { i as isStytchSSRProxy, n as noProviderError } from './StytchSSRProxy-14916009.js';
2
+ import { i as invariant, u as useAsyncState, m as mergeWithStableProps } from './useIsomorphicLayoutEffect-2962f7c7.js';
3
+ import { i as isStytchSSRProxy, n as noProviderError } from './StytchSSRProxy-4e34fb34.js';
4
4
 
5
5
  const initialMember = {
6
6
  member: null,
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-41b6e419.js');
5
- var StytchSSRProxy = require('./StytchSSRProxy-63bc6323.js');
4
+ var useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-a2b587d2.js');
5
+ var StytchSSRProxy = require('./StytchSSRProxy-c9d3bc41.js');
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -39,6 +39,6 @@ type AdminPortalSCIMProps<TProjectConfiguration extends StytchProjectConfigurati
39
39
  * See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
40
40
  */
41
41
  declare const AdminPortalSCIM: <TProjectConfiguration extends Partial<import("@stytch/core/public").StytchProjectConfiguration> = Stytch.DefaultProjectConfiguration>(props: ExcludeInjectedOptions<AdminPortalSCIMMountOptions<Partial<import("@stytch/core/public").StytchProjectConfiguration>>>) => JSX.Element;
42
- export { AdminPortalSSO, AdminPortalOrgSettings, AdminPortalMemberManagement, AdminPortalSCIM };
43
42
  export { AdminPortalB2BProducts } from "@stytch/vanilla-js/b2b/adminPortal";
43
+ export { AdminPortalSSO, AdminPortalOrgSettings, AdminPortalMemberManagement, AdminPortalSCIM };
44
44
  export type { AdminPortalSSOProps, AdminPortalOrgSettingsProps, AdminPortalMemberManagementProps, AdminPortalSCIMProps };
@@ -39,6 +39,6 @@ type AdminPortalSCIMProps<TProjectConfiguration extends StytchProjectConfigurati
39
39
  * See the {@link https://stytch.com/docs/b2b/sdks/javascript-sdk online reference}
40
40
  */
41
41
  declare const AdminPortalSCIM: <TProjectConfiguration extends Partial<import("@stytch/core/public").StytchProjectConfiguration> = Stytch.DefaultProjectConfiguration>(props: ExcludeInjectedOptions<AdminPortalSCIMMountOptions<Partial<import("@stytch/core/public").StytchProjectConfiguration>>>) => JSX.Element;
42
- export { AdminPortalSSO, AdminPortalOrgSettings, AdminPortalMemberManagement, AdminPortalSCIM };
43
42
  export { AdminPortalB2BProducts } from "@stytch/vanilla-js/b2b/adminPortal";
43
+ export { AdminPortalSSO, AdminPortalOrgSettings, AdminPortalMemberManagement, AdminPortalSCIM };
44
44
  export type { AdminPortalSSOProps, AdminPortalOrgSettingsProps, AdminPortalMemberManagementProps, AdminPortalSCIMProps };
@@ -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-f172fdfe.js';
5
- import { n as noProviderError } from '../StytchSSRProxy-14916009.js';
6
- import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-8da8c061.js';
4
+ import { u as useIsMounted__INTERNAL, a as useStytchB2BClient } from '../StytchB2BContext-a2d58b5b.js';
5
+ import { n as noProviderError } from '../StytchSSRProxy-4e34fb34.js';
6
+ import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-2962f7c7.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-47d523b4.js');
8
- var StytchSSRProxy = require('../StytchSSRProxy-63bc6323.js');
9
- var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-41b6e419.js');
7
+ var StytchB2BContext = require('../StytchB2BContext-fc9fdcb3.js');
8
+ var StytchSSRProxy = require('../StytchSSRProxy-c9d3bc41.js');
9
+ var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-a2b587d2.js');
10
10
 
11
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
12
 
@@ -145,6 +145,6 @@ declare const StytchB2B: <TProjectConfiguration extends Partial<import("@stytch/
145
145
  * @param getIDPConsentManifest - Optional {@link B2BIDPConsentManifestGenerator} to customize the consent screen.
146
146
  */
147
147
  declare const B2BIdentityProvider: ({ styles, callbacks, getIDPConsentManifest }: B2BIdentityProviderProps) => React.JSX.Element;
148
- export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, useStytchIsAuthorized, useStytchOrganization, withStytchB2BClient, withStytchMemberSession, withStytchMember, withStytchOrganization, withStytchPermissions } from "../StytchB2BContext-47d523b4.js";
148
+ export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, useStytchIsAuthorized, useStytchOrganization, withStytchB2BClient, withStytchMemberSession, withStytchMember, withStytchOrganization, withStytchPermissions } from "../StytchB2BContext-fc9fdcb3.js";
149
149
  export { StytchB2B, B2BIdentityProvider };
150
- export type { StytchB2BProviderProps } from "../StytchB2BContext-47d523b4.js";
150
+ export type { StytchB2BProviderProps } from "../StytchB2BContext-fc9fdcb3.js";
@@ -145,6 +145,6 @@ declare const StytchB2B: <TProjectConfiguration extends Partial<import("@stytch/
145
145
  * @param getIDPConsentManifest - Optional {@link B2BIDPConsentManifestGenerator} to customize the consent screen.
146
146
  */
147
147
  declare const B2BIdentityProvider: ({ styles, callbacks, getIDPConsentManifest }: B2BIdentityProviderProps) => React.JSX.Element;
148
- export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, useStytchIsAuthorized, useStytchOrganization, withStytchB2BClient, withStytchMemberSession, withStytchMember, withStytchOrganization, withStytchPermissions } from "../StytchB2BContext-f172fdfe.js";
148
+ export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, useStytchIsAuthorized, useStytchOrganization, withStytchB2BClient, withStytchMemberSession, withStytchMember, withStytchOrganization, withStytchPermissions } from "../StytchB2BContext-a2d58b5b.js";
149
149
  export { StytchB2B, B2BIdentityProvider };
150
- export type { StytchB2BProviderProps } from "../StytchB2BContext-f172fdfe.js";
150
+ export type { StytchB2BProviderProps } from "../StytchB2BContext-a2d58b5b.js";
@@ -1,8 +1,8 @@
1
- import { u as useIsMounted__INTERNAL, a as useStytchB2BClient, i as isUIClient, b as useStytchMember } from '../StytchB2BContext-f172fdfe.js';
2
- export { S as StytchB2BProvider, a as useStytchB2BClient, d as useStytchIsAuthorized, b as useStytchMember, c as useStytchMemberSession, e as useStytchOrganization, w as withStytchB2BClient, g as withStytchMember, f as withStytchMemberSession, h as withStytchOrganization, j as withStytchPermissions } from '../StytchB2BContext-f172fdfe.js';
1
+ import { u as useIsMounted__INTERNAL, a as useStytchB2BClient, i as isUIClient, b as useStytchMember } from '../StytchB2BContext-a2d58b5b.js';
2
+ export { S as StytchB2BProvider, a as useStytchB2BClient, d as useStytchIsAuthorized, b as useStytchMember, c as useStytchMemberSession, e as useStytchOrganization, w as withStytchB2BClient, g as withStytchMember, f as withStytchMemberSession, h as withStytchOrganization, j as withStytchPermissions } from '../StytchB2BContext-a2d58b5b.js';
3
3
  import React, { useRef } from 'react';
4
- import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-8da8c061.js';
5
- import { a as noHeadlessClientError, n as noProviderError } from '../StytchSSRProxy-14916009.js';
4
+ import { i as invariant, a as useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect-2962f7c7.js';
5
+ import { a as noHeadlessClientError, n as noProviderError } from '../StytchSSRProxy-4e34fb34.js';
6
6
 
7
7
  /**
8
8
  * The Stytch B2B UI component.
@@ -1,5 +1,5 @@
1
1
  import { StytchB2BHeadlessClient } from '@stytch/vanilla-js/b2b/headless';
2
- import { c as createStytchSSRProxy } from '../StytchSSRProxy-14916009.js';
2
+ import { c as createStytchSSRProxy } from '../StytchSSRProxy-4e34fb34.js';
3
3
 
4
4
  /**
5
5
  * Creates a Headless Stytch client object to call the stytch B2B APIs.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var headless = require('@stytch/vanilla-js/b2b/headless');
6
- var StytchSSRProxy = require('../StytchSSRProxy-63bc6323.js');
6
+ var StytchSSRProxy = require('../StytchSSRProxy-c9d3bc41.js');
7
7
 
8
8
  /**
9
9
  * Creates a Headless Stytch client object to call the stytch B2B APIs.
package/dist/b2b/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var StytchB2BContext = require('../StytchB2BContext-47d523b4.js');
5
+ var StytchB2BContext = require('../StytchB2BContext-fc9fdcb3.js');
6
6
  var React = require('react');
7
- var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-41b6e419.js');
8
- var StytchSSRProxy = require('../StytchSSRProxy-63bc6323.js');
7
+ var useIsomorphicLayoutEffect = require('../useIsomorphicLayoutEffect-a2b587d2.js');
8
+ var StytchSSRProxy = require('../StytchSSRProxy-c9d3bc41.js');
9
9
 
10
10
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
11
 
@@ -1,5 +1,5 @@
1
1
  import { StytchB2BUIClient } from '@stytch/vanilla-js/b2b';
2
- import { c as createStytchSSRProxy } from '../StytchSSRProxy-14916009.js';
2
+ import { c as createStytchSSRProxy } from '../StytchSSRProxy-4e34fb34.js';
3
3
 
4
4
  /**
5
5
  * Creates a Stytch UI client object to call the Stytch APIs and render Stytch UI components.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var b2b = require('@stytch/vanilla-js/b2b');
6
- var StytchSSRProxy = require('../StytchSSRProxy-63bc6323.js');
6
+ var StytchSSRProxy = require('../StytchSSRProxy-c9d3bc41.js');
7
7
 
8
8
  /**
9
9
  * Creates a Stytch UI client object to call the Stytch APIs and render Stytch UI components.
@@ -1,2 +1,2 @@
1
1
  export { createDeepEqual } from "./createDeepEqual-5555f2e1.js";
2
- export { mergeWithStableProps } from "./useIsomorphicLayoutEffect-8da8c061.js";
2
+ export { mergeWithStableProps } from "./useIsomorphicLayoutEffect-2962f7c7.js";
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { createContext, useContext, useMemo, useEffect, useRef } from 'react';
2
- import { i as invariant, u as useAsyncState, m as mergeWithStableProps, a as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-8da8c061.js';
3
- import { i as isStytchSSRProxy, n as noProviderError, a as noHeadlessClientError } from './StytchSSRProxy-14916009.js';
2
+ import { i as invariant, u as useAsyncState, m as mergeWithStableProps, a as useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect-2962f7c7.js';
3
+ import { i as isStytchSSRProxy, n as noProviderError, a as noHeadlessClientError } from './StytchSSRProxy-4e34fb34.js';
4
4
 
5
5
  const initialUser = {
6
6
  user: null,
@@ -1,5 +1,5 @@
1
1
  import { StytchHeadlessClient } from '@stytch/vanilla-js/headless';
2
- import { c as createStytchSSRProxy } from './StytchSSRProxy-14916009.js';
2
+ import { c as createStytchSSRProxy } from './StytchSSRProxy-4e34fb34.js';
3
3
 
4
4
  /**
5
5
  * Creates a Headless Stytch client object to call the stytch APIs.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var headless = require('@stytch/vanilla-js/headless');
6
- var StytchSSRProxy = require('./StytchSSRProxy-63bc6323.js');
6
+ var StytchSSRProxy = require('./StytchSSRProxy-c9d3bc41.js');
7
7
 
8
8
  /**
9
9
  * Creates a Headless Stytch client object to call the stytch APIs.
package/dist/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 useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-41b6e419.js');
7
- var StytchSSRProxy = require('./StytchSSRProxy-63bc6323.js');
6
+ var useIsomorphicLayoutEffect = require('./useIsomorphicLayoutEffect-a2b587d2.js');
7
+ var StytchSSRProxy = require('./StytchSSRProxy-c9d3bc41.js');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
@@ -1,5 +1,5 @@
1
1
  import { StytchUIClient } from '@stytch/vanilla-js';
2
- import { c as createStytchSSRProxy } from './StytchSSRProxy-14916009.js';
2
+ import { c as createStytchSSRProxy } from './StytchSSRProxy-4e34fb34.js';
3
3
 
4
4
  /**
5
5
  * Creates a Stytch UI client object to call the Stytch APIs and render Stytch UI components.
package/dist/index.ui.js CHANGED
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vanillaJs = require('@stytch/vanilla-js');
6
- var StytchSSRProxy = require('./StytchSSRProxy-63bc6323.js');
6
+ var StytchSSRProxy = require('./StytchSSRProxy-c9d3bc41.js');
7
7
 
8
8
  /**
9
9
  * Creates a Stytch UI client object to call the Stytch APIs and render Stytch UI components.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stytch/nextjs",
3
- "version": "21.4.2",
3
+ "version": "21.4.3",
4
4
  "description": "Stytch's official Next.js Library",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -15,8 +15,7 @@
15
15
  "build": "npm run clean && npm run compile",
16
16
  "clean": "rm -rf ./dist",
17
17
  "compile": "rollup -c",
18
- "dev": "tsc -p tsconfig.build.json --watch",
19
- "test": "jest"
18
+ "dev": "tsc -p tsconfig.build.json --watch"
20
19
  },
21
20
  "license": "MIT",
22
21
  "author": "Stytch",
@@ -24,7 +23,7 @@
24
23
  "@babel/runtime": "7.26.10",
25
24
  "@stytch/internal-tsconfigs": "0.0.0",
26
25
  "@stytch/js-utils": "0.0.1",
27
- "@stytch/vanilla-js": "5.18.6",
26
+ "@stytch/vanilla-js": "5.21.1",
28
27
  "@testing-library/react": "14.0.0",
29
28
  "@types/jest": "29.5.14",
30
29
  "eslint-config-custom": "0.0.1",