@stytch/nextjs 5.0.1 → 6.0.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 +19 -0
- package/dist/b2b/index.d.ts +17 -1
- package/dist/b2b/index.esm.d.ts +17 -1
- package/dist/b2b/index.esm.js +2167 -2062
- package/dist/b2b/index.js +2167 -2061
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @stytch/nextjs
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c8e2d0b: B2B Passwords UI components
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [c8e2d0b]
|
|
12
|
+
- @stytch/vanilla-js@0.14.0
|
|
13
|
+
|
|
14
|
+
## 5.0.2
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 0d80d2e: Fix for the onEvent callback while creating a new organization in the B2B SDK UI. Missing export for the nextjs B2B package
|
|
19
|
+
- Updated dependencies [0d80d2e]
|
|
20
|
+
- @stytch/vanilla-js@0.13.4
|
|
21
|
+
|
|
3
22
|
## 5.0.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/b2b/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
import { StytchB2BHeadlessClient, StytchB2BUIClient, Member, MemberSession } from "@stytch/vanilla-js/b2b/";
|
|
5
5
|
import { Callbacks, StyleConfig, StytchB2BUIConfig } from "@stytch/vanilla-js";
|
|
6
6
|
import { StytchB2BHeadlessClient as StytchB2BHeadlessClient$0 } from "@stytch/vanilla-js/b2b";
|
|
7
|
+
import { StytchB2BUIClient as StytchB2BUIClient$0 } from "@stytch/vanilla-js/b2b";
|
|
7
8
|
/**
|
|
8
9
|
* The Stytch Client object passed in to <StytchProvider /> in your `_app.js`.
|
|
9
10
|
* Either a StytchUIClient or StytchHeadlessClient.
|
|
@@ -218,5 +219,20 @@ declare const StytchB2B: ({ styles, callbacks, config }: StytchB2BProps) => JSX.
|
|
|
218
219
|
* @returns A {@link StytchHeadlessClient}
|
|
219
220
|
*/
|
|
220
221
|
declare const createStytchB2BHeadlessClient: (_PUBLIC_TOKEN: string, options?: import("core/dist/public").StytchClientOptions | undefined) => StytchB2BHeadlessClient$0;
|
|
221
|
-
|
|
222
|
+
/**
|
|
223
|
+
* Creates a Stytch UI client object to call the Stytch APIs and render Stytch UI components.
|
|
224
|
+
* The Stytch client is not available serverside.
|
|
225
|
+
* If you do not use Stytch UI components, use {@link createStytchB2BHeadlessClient} to reduce your bundle size.
|
|
226
|
+
* @example
|
|
227
|
+
* const stytch = createStytchB2BUIClient('public-token-<find yours in the stytch dashboard>')
|
|
228
|
+
*
|
|
229
|
+
* return (
|
|
230
|
+
* <StytchB2BProvider stytch={stytch}>
|
|
231
|
+
* <App />
|
|
232
|
+
* </StytchB2BProvider>
|
|
233
|
+
* )
|
|
234
|
+
* @returns A {@link StytchB2BUIClient}
|
|
235
|
+
*/
|
|
236
|
+
declare const createStytchB2BUIClient: (_PUBLIC_TOKEN: string, options?: import("core/dist/public").StytchClientOptions | undefined) => StytchB2BUIClient$0;
|
|
237
|
+
export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, withStytchB2BClient, withStytchMemberSession, withStytchMember, StytchB2B, createStytchB2BHeadlessClient, createStytchB2BUIClient };
|
|
222
238
|
export type { StytchB2BProviderProps };
|
package/dist/b2b/index.esm.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ReactNode } from "react";
|
|
|
4
4
|
import { StytchB2BHeadlessClient, StytchB2BUIClient, Member, MemberSession } from "@stytch/vanilla-js/b2b/";
|
|
5
5
|
import { Callbacks, StyleConfig, StytchB2BUIConfig } from "@stytch/vanilla-js";
|
|
6
6
|
import { StytchB2BHeadlessClient as StytchB2BHeadlessClient$0 } from "@stytch/vanilla-js/b2b";
|
|
7
|
+
import { StytchB2BUIClient as StytchB2BUIClient$0 } from "@stytch/vanilla-js/b2b";
|
|
7
8
|
/**
|
|
8
9
|
* The Stytch Client object passed in to <StytchProvider /> in your `_app.js`.
|
|
9
10
|
* Either a StytchUIClient or StytchHeadlessClient.
|
|
@@ -218,5 +219,20 @@ declare const StytchB2B: ({ styles, callbacks, config }: StytchB2BProps) => JSX.
|
|
|
218
219
|
* @returns A {@link StytchHeadlessClient}
|
|
219
220
|
*/
|
|
220
221
|
declare const createStytchB2BHeadlessClient: (_PUBLIC_TOKEN: string, options?: import("core/dist/public").StytchClientOptions | undefined) => StytchB2BHeadlessClient$0;
|
|
221
|
-
|
|
222
|
+
/**
|
|
223
|
+
* Creates a Stytch UI client object to call the Stytch APIs and render Stytch UI components.
|
|
224
|
+
* The Stytch client is not available serverside.
|
|
225
|
+
* If you do not use Stytch UI components, use {@link createStytchB2BHeadlessClient} to reduce your bundle size.
|
|
226
|
+
* @example
|
|
227
|
+
* const stytch = createStytchB2BUIClient('public-token-<find yours in the stytch dashboard>')
|
|
228
|
+
*
|
|
229
|
+
* return (
|
|
230
|
+
* <StytchB2BProvider stytch={stytch}>
|
|
231
|
+
* <App />
|
|
232
|
+
* </StytchB2BProvider>
|
|
233
|
+
* )
|
|
234
|
+
* @returns A {@link StytchB2BUIClient}
|
|
235
|
+
*/
|
|
236
|
+
declare const createStytchB2BUIClient: (_PUBLIC_TOKEN: string, options?: import("core/dist/public").StytchClientOptions | undefined) => StytchB2BUIClient$0;
|
|
237
|
+
export { StytchB2BProvider, useStytchB2BClient, useStytchMemberSession, useStytchMember, withStytchB2BClient, withStytchMemberSession, withStytchMember, StytchB2B, createStytchB2BHeadlessClient, createStytchB2BUIClient };
|
|
222
238
|
export type { StytchB2BProviderProps };
|