@stytch/react 20.0.1 → 20.0.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 (48) hide show
  1. package/CHANGELOG.md +25 -14
  2. package/dist/cjs/adminPortal/index.cjs +4 -2
  3. package/dist/cjs/adminPortal/index.cjs.map +1 -1
  4. package/dist/cjs/b2b/index.cjs +21 -29
  5. package/dist/cjs/b2b/index.cjs.map +1 -1
  6. package/dist/cjs/index.cjs +1 -1
  7. package/dist/cjs/{shadcn-Du-ZeW8t.js → shadcn-CLGNjm4Z.js} +6 -37
  8. package/dist/cjs/shadcn-CLGNjm4Z.js.map +1 -0
  9. package/dist/cjs-dev/adminPortal/index.cjs +4 -2
  10. package/dist/cjs-dev/adminPortal/index.cjs.map +1 -1
  11. package/dist/cjs-dev/b2b/index.cjs +21 -29
  12. package/dist/cjs-dev/b2b/index.cjs.map +1 -1
  13. package/dist/cjs-dev/index.cjs +1 -1
  14. package/dist/cjs-dev/{shadcn-BZDGkwFh.js → shadcn-BDx_oy_4.js} +6 -37
  15. package/dist/cjs-dev/shadcn-BDx_oy_4.js.map +1 -0
  16. package/dist/esm/packages/web/src/adminPortal/components/Autocomplete.mjs +4 -2
  17. package/dist/esm/packages/web/src/adminPortal/components/Autocomplete.mjs.map +1 -1
  18. package/dist/esm/packages/web/src/ui/b2b/MfaState.mjs +0 -2
  19. package/dist/esm/packages/web/src/ui/b2b/MfaState.mjs.map +1 -1
  20. package/dist/esm/packages/web/src/ui/b2b/reducer/mfa.mjs +0 -29
  21. package/dist/esm/packages/web/src/ui/b2b/reducer/mfa.mjs.map +1 -1
  22. package/dist/esm/packages/web/src/ui/b2b/screens/Discovery.mjs +1 -0
  23. package/dist/esm/packages/web/src/ui/b2b/screens/Discovery.mjs.map +1 -1
  24. package/dist/esm/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs +23 -31
  25. package/dist/esm/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs.map +1 -1
  26. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs +1 -1
  27. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  28. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  29. package/dist/esm/packages/web/src/ui/components/mixins/Root.module.css.mjs +1 -1
  30. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +1 -1
  31. package/dist/esm-dev/packages/web/src/adminPortal/components/Autocomplete.mjs +4 -2
  32. package/dist/esm-dev/packages/web/src/adminPortal/components/Autocomplete.mjs.map +1 -1
  33. package/dist/esm-dev/packages/web/src/ui/b2b/MfaState.mjs +0 -2
  34. package/dist/esm-dev/packages/web/src/ui/b2b/MfaState.mjs.map +1 -1
  35. package/dist/esm-dev/packages/web/src/ui/b2b/reducer/mfa.mjs +0 -29
  36. package/dist/esm-dev/packages/web/src/ui/b2b/reducer/mfa.mjs.map +1 -1
  37. package/dist/esm-dev/packages/web/src/ui/b2b/screens/Discovery.mjs +1 -0
  38. package/dist/esm-dev/packages/web/src/ui/b2b/screens/Discovery.mjs.map +1 -1
  39. package/dist/esm-dev/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs +23 -31
  40. package/dist/esm-dev/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs.map +1 -1
  41. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs +1 -1
  42. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  43. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  44. package/dist/esm-dev/packages/web/src/ui/components/mixins/Root.module.css.mjs +1 -1
  45. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +1 -1
  46. package/package.json +1 -1
  47. package/dist/cjs/shadcn-Du-ZeW8t.js.map +0 -1
  48. package/dist/cjs-dev/shadcn-BZDGkwFh.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,12 +1,19 @@
1
1
  # @stytch/react
2
2
 
3
- ## 20.0.1
3
+ ## 20.0.3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 3d08061: Fix package issue
7
+ - 330ce99: Tweak watermark spacing
8
+ - b4bf9e3: Improve data fetching for TOTP enrollment
8
9
 
9
- ## 6.0.0
10
+ ## 20.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 5f66066: Fix font size issue on some anchor buttons
15
+
16
+ ## 20.0.1
10
17
 
11
18
  This is a major release, containing a redesign of our frontend components and package structure.
12
19
 
@@ -28,11 +35,15 @@ This is a major release, containing a redesign of our frontend components and pa
28
35
  - Significantly smaller bundle sizes through modern transpilation targets and tree shaking
29
36
  - Clientside validation for configs now only occur in development build to reduce bundle size from validation message strings
30
37
 
38
+ ## 20.0.0
39
+
40
+ This version was released with broken packaging. We recommend upgrading to 20.0.1 if you have this version.
41
+
31
42
  ## 19.18.1
32
43
 
33
44
  ### Patch Changes
34
45
 
35
- - 5a0ad5c: Add external_id to Member and User types and add organization_external_id to Organization type
46
+ - 5a0ad5c: Add `external_id` to Member and User types and add `organization_external_id` to Organization type
36
47
 
37
48
  ## 19.18.0
38
49
 
@@ -44,12 +55,12 @@ This is a major release, containing a redesign of our frontend components and pa
44
55
 
45
56
  ### Minor Changes
46
57
 
47
- - 2da1e4d: Add keepSessionAlive boolean flag to StytchClientOptions. When set, the client will automatically refresh the session as long as the client is active
58
+ - 2da1e4d: Add `keepSessionAlive` boolean flag to `StytchClientOptions`. When set, the client will automatically refresh the session as long as the client is active
48
59
  - e4445f3: Add TypeScript typings for strings prop / param. The types is available as Strings and is opt in. We recommend using them like `const strings: Strings = { 'button.usePassword': 'Log in with password' }`. `Strings` is a partial since we recommend you only include strings that you need, but if you need every string mapped (such as in a full localization), you can use `Required<Strings>`.
49
60
 
50
61
  ### Patch Changes
51
62
 
52
- - 17e589c: B2B: Add support for 'ALL_ALLOWED' organization email_jit_provisioning setting
63
+ - 17e589c: B2B: Add support for `ALL_ALLOWED` organization `email_jit_provisioning` setting
53
64
 
54
65
  ## 19.16.0
55
66
 
@@ -62,8 +73,8 @@ This is a major release, containing a redesign of our frontend components and pa
62
73
  ### Patch Changes
63
74
 
64
75
  - 2fabc69: Fix endpoint options still being preferred for custom endpoint config
65
- - 4311e82: Fix last used Oauth method not updated when Google One Tap fallback button is clicked
66
- - 25e43f0: Add types for Member.is_admin
76
+ - 4311e82: Fix last used OAuth method not updated when Google One Tap fallback button is clicked
77
+ - 25e43f0: Add types for `Member.is_admin`
67
78
 
68
79
  ## 19.15.1
69
80
 
@@ -99,7 +110,7 @@ This is a major release, containing a redesign of our frontend components and pa
99
110
 
100
111
  ### Minor Changes
101
112
 
102
- - 0c1a944: Update labels to use <label> element and improve accessibility
113
+ - 0c1a944: Update labels to use `<label>` element and improve accessibility
103
114
  New `formField.phone.label` string for phone number input label and `formField.countryCode.label` for country code label
104
115
  `formField.password.ariaLabel` string has been folded into `formField.password.label` and can be removed
105
116
 
@@ -112,13 +123,13 @@ This is a major release, containing a redesign of our frontend components and pa
112
123
 
113
124
  ### Patch Changes
114
125
 
115
- - 0af9049: bug fixes
126
+ - 0af9049: Bug fixes
116
127
 
117
128
  ## 19.11.0
118
129
 
119
130
  ### Minor Changes
120
131
 
121
- - 21b1777: refactor trusted auth token attestation in IDPConsentScreen components
132
+ - 21b1777: Refactor trusted auth token attestation in IDPConsentScreen components
122
133
 
123
134
  ## 19.10.0
124
135
 
@@ -250,7 +261,7 @@ This is a major release, containing a redesign of our frontend components and pa
250
261
 
251
262
  ### Minor Changes
252
263
 
253
- - d5ed50c: Added User Impersonation to Consumer
264
+ - d5ed50c: Add User Impersonation to Consumer
254
265
  - 9eb8e8c: Add dfpCdnDomain endpoint configuration
255
266
 
256
267
  ## 19.2.0
@@ -267,7 +278,7 @@ This is a major release, containing a redesign of our frontend components and pa
267
278
 
268
279
  ### Patch Changes
269
280
 
270
- - 26a2e95: Fixed <StytchB2B /> error message
281
+ - 26a2e95: Fixed `<StytchB2B />` error message
271
282
 
272
283
  ## 19.1.1
273
284
 
@@ -534,7 +545,7 @@ This is a major release, containing a redesign of our frontend components and pa
534
545
 
535
546
  ### Patch Changes
536
547
 
537
- - c924765: Include the b2b directory in package.json for the B2B SDK entrypoint
548
+ - c924765: Include the B2B directory in package.json for the B2B SDK entrypoint
538
549
  - Updated dependencies [c924765]
539
550
  - @stytch/vanilla-js@0.11.2
540
551
 
@@ -28945,10 +28945,12 @@ const Autocomplete = ({ caption, fullWidth, getOptionDescription, getOptionDisab
28945
28945
  const { onDelete, ...tagProps } = getTagProps({
28946
28946
  index
28947
28947
  });
28948
- return /*#__PURE__*/ React__namespace.default.createElement(AutocompleteTag, {
28948
+ return(// key is in tagProps
28949
+ // eslint-disable-next-line react/jsx-key
28950
+ /*#__PURE__*/ React__namespace.default.createElement(AutocompleteTag, {
28949
28951
  ...tagProps,
28950
28952
  onDelete: getOptionDisabled?.(option) ? undefined : onDelete
28951
- }, getOptionLabel(option));
28953
+ }, getOptionLabel(option)));
28952
28954
  })
28953
28955
  }), caption && /*#__PURE__*/ React__namespace.default.createElement(Typography$1, {
28954
28956
  variant: "body2"