@stytch/nextjs 0.0.0-next-20240815193523

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 (53) hide show
  1. package/CHANGELOG.md +392 -0
  2. package/LICENSE +17 -0
  3. package/README.md +177 -0
  4. package/b2b/adminPortal/package.json +6 -0
  5. package/b2b/headless/package.json +6 -0
  6. package/b2b/package.json +6 -0
  7. package/b2b/ui/package.json +6 -0
  8. package/dist/StytchB2BContext-162fadb4.d.ts +177 -0
  9. package/dist/StytchB2BContext-162fadb4.js +258 -0
  10. package/dist/StytchB2BContext-82437b10.d.ts +177 -0
  11. package/dist/StytchB2BContext-82437b10.js +276 -0
  12. package/dist/StytchSSRProxy-14916009.d.ts +3 -0
  13. package/dist/StytchSSRProxy-14916009.js +47 -0
  14. package/dist/StytchSSRProxy-63bc6323.d.ts +3 -0
  15. package/dist/StytchSSRProxy-63bc6323.js +52 -0
  16. package/dist/adminPortal/index.d.ts +35 -0
  17. package/dist/adminPortal/index.esm.d.ts +35 -0
  18. package/dist/adminPortal/index.esm.js +48 -0
  19. package/dist/adminPortal/index.js +63 -0
  20. package/dist/async-86a7f0d6.d.ts +18 -0
  21. package/dist/async-86a7f0d6.js +81 -0
  22. package/dist/async-b1e10055.d.ts +18 -0
  23. package/dist/async-b1e10055.js +77 -0
  24. package/dist/b2b/index.d.ts +108 -0
  25. package/dist/b2b/index.esm.d.ts +108 -0
  26. package/dist/b2b/index.esm.js +67 -0
  27. package/dist/b2b/index.headless.d.ts +16 -0
  28. package/dist/b2b/index.headless.esm.d.ts +16 -0
  29. package/dist/b2b/index.headless.esm.js +24 -0
  30. package/dist/b2b/index.headless.js +28 -0
  31. package/dist/b2b/index.js +85 -0
  32. package/dist/b2b/index.ui.d.ts +17 -0
  33. package/dist/b2b/index.ui.esm.d.ts +17 -0
  34. package/dist/b2b/index.ui.esm.js +25 -0
  35. package/dist/b2b/index.ui.js +29 -0
  36. package/dist/createDeepEqual-5555f2e1.d.ts +5 -0
  37. package/dist/errors-d9d48ed4.d.ts +4 -0
  38. package/dist/index-b14d4efe.d.ts +2 -0
  39. package/dist/index.d.ts +275 -0
  40. package/dist/index.esm.d.ts +275 -0
  41. package/dist/index.esm.js +321 -0
  42. package/dist/index.headless.d.ts +16 -0
  43. package/dist/index.headless.esm.d.ts +16 -0
  44. package/dist/index.headless.esm.js +24 -0
  45. package/dist/index.headless.js +28 -0
  46. package/dist/index.js +338 -0
  47. package/dist/index.ui.d.ts +17 -0
  48. package/dist/index.ui.esm.d.ts +17 -0
  49. package/dist/index.ui.esm.js +25 -0
  50. package/dist/index.ui.js +29 -0
  51. package/headless/package.json +6 -0
  52. package/package.json +52 -0
  53. package/ui/package.json +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,392 @@
1
+ # @stytch/nextjs
2
+
3
+ ## 0.0.0-next-20240815193523
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c23db6cd]
8
+ - @stytch/vanilla-js@0.0.0-next-20240815193523
9
+
10
+ ## 20.3.3
11
+
12
+ ### Patch Changes
13
+
14
+ - 6d06cce0: Load Admin Portal components from vanilla-js directly
15
+
16
+ ## 20.3.2
17
+
18
+ ### Patch Changes
19
+
20
+ - 7d2c2878: Fix admin portal component props
21
+
22
+ ## 20.3.1
23
+
24
+ ### Patch Changes
25
+
26
+ - 089c986a: Guard references to localStorage and sessionStorage
27
+
28
+ ## 20.3.0
29
+
30
+ ### Minor Changes
31
+
32
+ - 3183b459: Add `AdminPortalMemberManagement` component to `@stytch/nextjs/b2b/adminPortal`
33
+
34
+ ## 20.2.0
35
+
36
+ ### Minor Changes
37
+
38
+ - 1ade8d93: Add `AdminPortalOrgSettings` component to `@stytch/nextjs/b2b/adminPortal`
39
+
40
+ ## 20.1.0
41
+
42
+ ### Minor Changes
43
+
44
+ - a99f21b8: Add `AdminPortalSSO` component to `@stytch/nextjs/b2b/adminPortal`
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [0f448e7e]
49
+ - Updated dependencies [a99f21b8]
50
+ - @stytch/vanilla-js@4.13.0
51
+
52
+ ## 20.0.0
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [cbab0c30]
57
+ - @stytch/vanilla-js@4.12.0
58
+
59
+ ## 19.0.0
60
+
61
+ ### Major Changes
62
+
63
+ - a0fbe9f: Update minimum peer dependency on `@stytch/vanilla-js` to `^4.9.0`
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [a0fbe9f]
68
+ - Updated dependencies [a0fbe9f]
69
+ - @stytch/vanilla-js@4.9.0
70
+
71
+ ## 18.0.0
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [f604dcb]
76
+ - @stytch/vanilla-js@4.7.0
77
+
78
+ ## 17.0.1
79
+
80
+ ### Patch Changes
81
+
82
+ - 50de202: Fix B2B headless entrypoint to import `@stytch/vanilla-js` rather than bundle it
83
+ - @stytch/vanilla-js@4.4.3
84
+
85
+ ## 17.0.0
86
+
87
+ ### Minor Changes
88
+
89
+ - 223e30e: Add `useStytchOrganization` hook for B2B
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [223e30e]
94
+ - @stytch/vanilla-js@4.2.0
95
+
96
+ ## 16.0.1
97
+
98
+ ### Patch Changes
99
+
100
+ - e6832cb: Fix an issue where `fromCache` would not update to `false` after cached data was refreshed
101
+ - Updated dependencies [e6832cb]
102
+ - @stytch/vanilla-js@4.1.1
103
+
104
+ ## 16.0.0
105
+
106
+ ### Patch Changes
107
+
108
+ - Updated dependencies [2379b29]
109
+ - @stytch/vanilla-js@4.1.0
110
+
111
+ ## 15.0.0
112
+
113
+ ### Minor Changes
114
+
115
+ - 6890694: Mark stytch.member as deprecated in favor of stytch.self
116
+ Adds RBAC functionality
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [9ee61b3]
121
+ - Updated dependencies [b34293a]
122
+ - Updated dependencies [c3c108b]
123
+ - Updated dependencies [6890694]
124
+ - @stytch/vanilla-js@4.0.0
125
+
126
+ ## 14.0.0
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [ec1962c]
131
+ - @stytch/vanilla-js@3.2.0
132
+
133
+ ## 13.0.0
134
+
135
+ ### Minor Changes
136
+
137
+ - 8cff174: B2C Passkeys Headless Support & UI components
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [8cff174]
142
+ - @stytch/vanilla-js@3.1.0
143
+
144
+ ## 12.0.0
145
+
146
+ ### Major Changes
147
+
148
+ - 5dd9d24: Change export of B2B Headless Client to seperate subpackage to improve tree-shaking performance
149
+
150
+ Two public export locations have changed:
151
+
152
+ ```javascript
153
+ import { createStytchB2BHeadlessClient } from '@stytch/nextjs/b2b';
154
+ ```
155
+
156
+ Is now updated to
157
+
158
+ ```javascript
159
+ import { createStytchB2BHeadlessClient } from '@stytch/vanilla-js/b2b/headless';
160
+ ```
161
+
162
+ ```javascript
163
+ import { createStytchB2BUIClient } from '@stytch/nextjs/b2b';
164
+ ```
165
+
166
+ Is now updated to
167
+
168
+ ```javascript
169
+ import { createStytchB2BUIClient } from '@stytch/vanilla-js/b2b/ui';
170
+ ```
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [5dd9d24]
175
+ - @stytch/vanilla-js@3.0.0
176
+
177
+ ## 11.0.0
178
+
179
+ ### Patch Changes
180
+
181
+ - 47eb388: Add Device Fingerprinting to the React Native SDK
182
+ - Updated dependencies [47eb388]
183
+ - Updated dependencies [d008ef5]
184
+ - Updated dependencies [47eb388]
185
+ - Updated dependencies [7c1940e]
186
+ - @stytch/vanilla-js@2.2.0
187
+
188
+ ## 10.0.0
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [67d42f0]
193
+ - @stytch/vanilla-js@2.1.0
194
+
195
+ ## 9.0.1
196
+
197
+ ### Patch Changes
198
+
199
+ - 0a18c34: Add docs for new verified fields on Member objects, and fix some docs links
200
+ - Updated dependencies [9fd5d96]
201
+ - Updated dependencies [0a18c34]
202
+ - @stytch/vanilla-js@2.0.1
203
+
204
+ ## 9.0.0
205
+
206
+ ### Major Changes
207
+
208
+ - a4083c7: Breaking Changes: The intermediate session token (IST) will no longer be accepted as an argument for the discovery list organizations, intermediate sessions exchange, and create organization via discovery endpoints. The IST will be passed in automatically. ISTs are stored as browser cookies or persisted on device when they are generated after calls to discovery authenticate endpoints, such as email magic link discovery authenticate, or primary authenticate endpoints in the case where MFA is required, such as email magic link authenticate or SSO authenticate.
209
+
210
+ New Features: Our B2B product now supports multi-factor authentication (MFA) with one-time passcodes (OTPs) via SMS. MFA policies can be set on the Organization level or on the Member level. See the Stytch docs for more information.
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [a4083c7]
215
+ - @stytch/vanilla-js@2.0.0
216
+
217
+ ## 8.0.0
218
+
219
+ ### Patch Changes
220
+
221
+ - Updated dependencies [e7302d7]
222
+ - @stytch/vanilla-js@1.1.0
223
+
224
+ ## 7.0.0
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies [f9c36c9]
229
+ - @stytch/vanilla-js@1.0.0
230
+
231
+ ## 6.0.1
232
+
233
+ ### Patch Changes
234
+
235
+ - 3623a8a: Exclude @stytch/vanilla-js/b2b in rollup
236
+
237
+ ## 6.0.0
238
+
239
+ ### Minor Changes
240
+
241
+ - c8e2d0b: B2B Passwords UI components
242
+
243
+ ### Patch Changes
244
+
245
+ - Updated dependencies [c8e2d0b]
246
+ - @stytch/vanilla-js@0.14.0
247
+
248
+ ## 5.0.2
249
+
250
+ ### Patch Changes
251
+
252
+ - 0d80d2e: Fix for the onEvent callback while creating a new organization in the B2B SDK UI. Missing export for the nextjs B2B package
253
+ - Updated dependencies [0d80d2e]
254
+ - @stytch/vanilla-js@0.13.4
255
+
256
+ ## 5.0.1
257
+
258
+ ### Patch Changes
259
+
260
+ - 8c54ee1: Missing export in the nextjs SDK for the UI component
261
+
262
+ ## 5.0.0
263
+
264
+ ### Minor Changes
265
+
266
+ - 15dbe7d: Releasing UI components for our B2B SDKs.
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [15dbe7d]
271
+ - @stytch/vanilla-js@0.13.0
272
+
273
+ ## 4.0.0
274
+
275
+ ### Patch Changes
276
+
277
+ - 6a27584: Make organization name and slug optional for discovery organization create
278
+ - Updated dependencies [dde1f2a]
279
+ - Updated dependencies [6a27584]
280
+ - @stytch/vanilla-js@0.12.0
281
+
282
+ ## 3.0.2
283
+
284
+ ### Patch Changes
285
+
286
+ - 79ca7ba: Add locale argument to B2B email magic link methods
287
+ - Updated dependencies [79ca7ba]
288
+ - @stytch/vanilla-js@0.11.3
289
+
290
+ ## 3.0.1
291
+
292
+ ### Patch Changes
293
+
294
+ - c924765: Include the b2b directory in package.json for the B2B SDK entrypoint
295
+ - Updated dependencies [c924765]
296
+ - @stytch/vanilla-js@0.11.2
297
+
298
+ ## 3.0.0
299
+
300
+ ### Minor Changes
301
+
302
+ - c0e42bc: Add B2B Discovery headless client and session exchange method
303
+
304
+ ### Patch Changes
305
+
306
+ - Updated dependencies [c0e42bc]
307
+ - @stytch/vanilla-js@0.11.0
308
+
309
+ ## 2.0.3
310
+
311
+ ### Patch Changes
312
+
313
+ - 1652706: Fix session/user persisting after logging out
314
+ - Updated dependencies [1652706]
315
+ - @stytch/vanilla-js@0.10.7
316
+
317
+ ## 2.0.2
318
+
319
+ ### Patch Changes
320
+
321
+ - ca5a31d: SDK-877 Fix session/user persisting after logging out
322
+ - Updated dependencies [ca5a31d]
323
+ - @stytch/vanilla-js@0.10.6
324
+
325
+ ## 2.0.1
326
+
327
+ ### Patch Changes
328
+
329
+ - f1810c4: Add React Native OAuth callback, PKCE fix
330
+ - Updated dependencies [f1810c4]
331
+ - @stytch/vanilla-js@0.10.2
332
+
333
+ ## 2.0.0
334
+
335
+ ### Minor Changes
336
+
337
+ - Launching B2B SDKs
338
+
339
+ ### Patch Changes
340
+
341
+ - Updated dependencies
342
+ - @stytch/vanilla-js@0.10.0
343
+
344
+ ## 1.2.0
345
+
346
+ ### Patch Changes
347
+
348
+ - Updated dependencies
349
+ - @stytch/vanilla-js@0.9.0
350
+
351
+ ## 0.6.0
352
+
353
+ ### Minor Changes
354
+
355
+ - Add support for template ID parameters to Magic link Login or create and Send methods, Email OTP Login or create and Send methods, and Reset Password Start
356
+
357
+ ### Patch Changes
358
+
359
+ - Updated dependencies
360
+ - Updated dependencies [ac0cf89]
361
+ - @stytch/vanilla-js@0.6.0
362
+
363
+ ## 0.5.0
364
+
365
+ ### Patch Changes
366
+
367
+ - 422c698: Add type definitions for User Metadata fields
368
+ - Updated dependencies [422c698]
369
+ - Updated dependencies
370
+ - @stytch/vanilla-js@0.5.0
371
+
372
+ ## 0.4.6
373
+
374
+ ### Patch Changes
375
+
376
+ - Add support for custom email domains in magic link confirmation screen
377
+ - Updated dependencies
378
+ - @stytch/vanilla-js@0.4.6
379
+
380
+ ## 0.4.5
381
+
382
+ ### Patch Changes
383
+
384
+ - Reset Password component
385
+
386
+ ## 0.4.4
387
+
388
+ ### Patch Changes
389
+
390
+ - Send methods in the SDK
391
+ - Updated dependencies
392
+ - @stytch/vanilla-js@0.4.4
package/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ MIT License
2
+ Copyright (c) 2021 stytchauth
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+ The above copyright notice and this permission notice shall be included in all
10
+ copies or substantial portions of the Software.
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,177 @@
1
+ # @stytch/nextjs
2
+
3
+ Stytch's Next.js Library
4
+
5
+ ## Install
6
+
7
+ With `npm`
8
+ `npm install @stytch/nextjs @stytch/vanilla-js --save`
9
+
10
+ ## Documentation
11
+
12
+ This package contains several entrypoints, depending on if you are using the B2B or B2C stytch product.
13
+
14
+ ```javascript
15
+ // Stytch B2C Product
16
+ import { StytchProvider } from '@stytch/nextjs';
17
+ import { createStytchUIClient } from '@stytch/nextjs/ui';
18
+ // The headless client does not bundle UI elements, and is a much smaller package
19
+ import { createStytchHeadlessClient } from '@stytch/nextjs/headless';
20
+
21
+ // Stytch B2B Product
22
+ import { StytchB2B } from '@stytch/nextjs/b2b';
23
+ import { createStytchB2BUIClient } from '@stytch/nextjs/b2b/ui';
24
+ // The headless client does not bundle UI elements, and is a much smaller package
25
+ import { createStytchB2BHeadlessClient } from '@stytch/nextjs/b2b/headless';
26
+ ```
27
+
28
+ For full documentation please refer to Stytch's javascript SDK documentation on https://stytch.com/docs/sdks/javascript-sdk.
29
+
30
+ ## Example Usage
31
+
32
+ ```javascript
33
+ import { StytchProvider } from '@stytch/nextjs';
34
+ import { createStytchUIClient } from '@stytch/nextjs/ui';
35
+
36
+ const stytch = createStytchUIClient('public-token-<find yours in the stytch dashboard>');
37
+
38
+ // Wrap your App in the StytchProvider
39
+ ReactDOM.render(
40
+ <StytchProvider stytch={stytch}>
41
+ <App />
42
+ </StytchProvider>,
43
+ document.getElementById('root'),
44
+ );
45
+
46
+ // Now use Stytch in your components
47
+ const App = () => {
48
+ const stytchProps = {
49
+ config: {
50
+ products: ['emailMagicLinks'],
51
+ emailMagicLinksOptions: {
52
+ loginRedirectURL: 'https://example.com/authenticate',
53
+ loginExpirationMinutes: 30,
54
+ signupRedirectURL: 'https://example.com/authenticate',
55
+ signupExpirationMinutes: 30,
56
+ createUserAsPending: true,
57
+ },
58
+ },
59
+ styles: {
60
+ container: { width: '321px' },
61
+ colors: { primary: '#0577CA' },
62
+ fontFamily: '"Helvetica New", Helvetica, sans-serif',
63
+ },
64
+ callbacks: {
65
+ onEvent: (message) => console.log(message),
66
+ onSuccess: (message) => console.log(message),
67
+ onError: (message) => console.log(message),
68
+ },
69
+ };
70
+
71
+ return (
72
+ <div id="login">
73
+ <StytchLogin config={stytchProps.config} styles={stytchProps.styles} callbacks={stytchProps.callbacks} />
74
+ </div>
75
+ );
76
+ };
77
+ ```
78
+
79
+ ## Typescript Support
80
+
81
+ There are built in typescript definitions in the npm package.
82
+
83
+ ## Migrating from @stytch/stytch-react
84
+
85
+ If you are migrating from [@stytch/stytch-react](https://www.npmjs.com/package/@stytch/stytch-react), follow the steps below:
86
+
87
+ ### Step 1: Install the new libraries
88
+
89
+ - The core SDK is now bundled in its own module - [@stytch/vanilla-js](https://www.npmjs.com/package/@stytch/vanilla-js)
90
+ - We now have a library specifically for NextJS bindings - [@stytch/nextjs](https://www.npmjs.com/package/@stytch/nextjs)
91
+
92
+ ```shell
93
+ # NPM
94
+ npm install @stytch/vanilla-js @stytch/nextjs
95
+ # Yarn
96
+ yarn add @stytch/vanilla-js @stytch/nextjs
97
+ ```
98
+
99
+ ### Step 2: Remove the old SDK
100
+
101
+ - Remove the `@stytch/stytch-react` package
102
+ - If you are explicitly loading the `stytch.js` script via a blocking `beforeInteractive` tag in the document header, remove it. It isn't needed anymore.
103
+
104
+ ```shell
105
+ # NPM
106
+ npm rm @stytch/stytch-react
107
+ # Yarn
108
+ yarn remove @stytch/stytch-react
109
+ ```
110
+
111
+ ### Step 3: Initialize the Stytch client in `_app.js`
112
+
113
+ - Determine if you need the Headless or UI client. If you plan to use the `<StytchLogin />` component in your application then you should use the the UI client. Otherwise use the Headless client to minimize application bundle size.
114
+ - To create the Stytch Headless client, use `createStytchHeadlessClient` from `@stytch/nextjs/headless`
115
+ - To create the Stytch UI client, use `createStytchUIClient` from `@stytch/nextjs/ui`
116
+ - Pass it into `<StytchProvider />` component from `@stytch/nextjs`
117
+
118
+ ```jsx
119
+ import React from 'react';
120
+ import { StytchProvider } from '@stytch/nextjs';
121
+ import { createStytchHeadlessClient } from '@stytch/nextjs/headless';
122
+ // Or alternately
123
+ // import { createStytchUIClient } from '@stytch/nextjs/ui';
124
+
125
+ const stytch = createStytchHeadlessClient(process.env.NEXT_PUBLIC_STYTCH_PUBLIC_TOKEN);
126
+
127
+ function MyApp({ Component, pageProps }) {
128
+ return (
129
+ <StytchProvider stytch={stytch}>
130
+ <Component {...pageProps} />
131
+ </StytchProvider>
132
+ );
133
+ }
134
+
135
+ export default MyApp;
136
+ ```
137
+
138
+ ### Step 4: Update calls to `useStytchUser` , `useStytchSession`, and `useStytchLazy`
139
+
140
+ - `useStytchUser` and `useStytchSession` hooks now return envelope objects - `{ user, isInitialized, isCached }` and `{ session, isInitialized, isCached }` respectively.
141
+ - In SSR/SSG contexts, as well as the first clientside render, `user`/`session` will be null and `isInitialized` will be false
142
+ - The SDK will read `user`/`session` out of persistent storage, and rerender with `isCached: true` - at this point you’re reading the [stale-while-revalidating](https://swr.vercel.app/) value
143
+ - The SDK will make network requests to pull the most up-to-date user and session objects, and serve them with `isCached: false`
144
+ - `useStytchLazy` is no longer required - you may always call `useStytch` now
145
+
146
+ ```jsx
147
+ import React, { useEffect } from 'react';
148
+ import { useRouter } from 'next/router';
149
+ import { useStytchUser } from '@stytch/nextjs';
150
+
151
+ export default function Profile() {
152
+ const router = useRouter();
153
+ const { user, isInitialized } = useStytchUser();
154
+
155
+ useEffect(() => {
156
+ if (isInitialized && user === null) {
157
+ router.push('/login');
158
+ }
159
+ }, [user, isInitialized]);
160
+
161
+ return (
162
+ <Layout>
163
+ <h1>Your Profile</h1>
164
+ <pre>{JSON.stringify(user, null, 2)}</pre>
165
+ </Layout>
166
+ );
167
+ }
168
+ ```
169
+
170
+ ### Step 5: UI Naming Changes
171
+
172
+ We've made a number of small changes to our naming conventions to make the API cleaner and easier to understand.
173
+
174
+ - The `<Stytch />` login component is now called `<StytchLogin />`
175
+ - The `OAuthProvidersTypes` enum is now called `OAuthProviders`
176
+ - The `SDKProductTypes` enum is now called `Products`
177
+ - There are some additional changes to the `styles` config documented [here](https://stytch.com/docs/sdks/javascript-sdk#resources_migration-guide_v-zero-five)
@@ -0,0 +1,6 @@
1
+ {
2
+ "internal": true,
3
+ "main": "../../dist/adminPortal/index.js",
4
+ "module": "../../dist/adminPortal/index.esm.js",
5
+ "types": "../../dist/adminPortal/index.d.ts"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "internal": true,
3
+ "main": "../../dist/b2b/index.headless.js",
4
+ "module": "../../dist/b2b/index.headless.esm.js",
5
+ "types": "../../dist/b2b/index.headless.d.ts"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "internal": true,
3
+ "main": "../dist/b2b/index.js",
4
+ "module": "../dist/b2b/index.esm.js",
5
+ "types": "../dist/b2b/index.d.ts"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "internal": true,
3
+ "main": "../../dist/b2b/index.ui.js",
4
+ "module": "../../dist/b2b/index.ui.esm.js",
5
+ "types": "../../dist/b2b/index.ui.d.ts"
6
+ }