@stytch/vanilla-js 6.0.1 → 6.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 (59) hide show
  1. package/CHANGELOG.md +23 -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-CyIAo-yO.js → shadcn-BmPw6Q7O.js} +6 -37
  8. package/dist/cjs/shadcn-BmPw6Q7O.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-Bzbol4Ww.js → shadcn-Dqlb9O22.js} +6 -37
  15. package/dist/cjs-dev/shadcn-Dqlb9O22.js.map +1 -0
  16. package/dist/esm/_virtual/index3.mjs +3 -5
  17. package/dist/esm/_virtual/index3.mjs.map +1 -1
  18. package/dist/esm/_virtual/index4.mjs +5 -3
  19. package/dist/esm/_virtual/index4.mjs.map +1 -1
  20. package/dist/esm/packages/web/src/adminPortal/components/Autocomplete.mjs +4 -2
  21. package/dist/esm/packages/web/src/adminPortal/components/Autocomplete.mjs.map +1 -1
  22. package/dist/esm/packages/web/src/adminPortal/utils/theme.mjs +1 -1
  23. package/dist/esm/packages/web/src/ui/b2b/MfaState.mjs +0 -2
  24. package/dist/esm/packages/web/src/ui/b2b/MfaState.mjs.map +1 -1
  25. package/dist/esm/packages/web/src/ui/b2b/reducer/mfa.mjs +0 -29
  26. package/dist/esm/packages/web/src/ui/b2b/reducer/mfa.mjs.map +1 -1
  27. package/dist/esm/packages/web/src/ui/b2b/screens/Discovery.mjs +1 -0
  28. package/dist/esm/packages/web/src/ui/b2b/screens/Discovery.mjs.map +1 -1
  29. package/dist/esm/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs +22 -31
  30. package/dist/esm/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs.map +1 -1
  31. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs +1 -1
  32. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  33. package/dist/esm/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  34. package/dist/esm/packages/web/src/ui/components/mixins/Root.module.css.mjs +1 -1
  35. package/dist/esm/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +1 -1
  36. package/dist/esm/packages/web/src/utils/crypto.mjs +1 -1
  37. package/dist/esm-dev/packages/web/src/adminPortal/components/Autocomplete.mjs +4 -2
  38. package/dist/esm-dev/packages/web/src/adminPortal/components/Autocomplete.mjs.map +1 -1
  39. package/dist/esm-dev/packages/web/src/ui/b2b/MfaState.mjs +0 -2
  40. package/dist/esm-dev/packages/web/src/ui/b2b/MfaState.mjs.map +1 -1
  41. package/dist/esm-dev/packages/web/src/ui/b2b/reducer/mfa.mjs +0 -29
  42. package/dist/esm-dev/packages/web/src/ui/b2b/reducer/mfa.mjs.map +1 -1
  43. package/dist/esm-dev/packages/web/src/ui/b2b/screens/Discovery.mjs +1 -0
  44. package/dist/esm-dev/packages/web/src/ui/b2b/screens/Discovery.mjs.map +1 -1
  45. package/dist/esm-dev/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs +22 -31
  46. package/dist/esm-dev/packages/web/src/ui/b2b/screens/TOTPEnrollQRScreen.mjs.map +1 -1
  47. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs +1 -1
  48. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.mjs.map +1 -1
  49. package/dist/esm-dev/packages/web/src/ui/components/atoms/Watermark.module.css.mjs +2 -2
  50. package/dist/esm-dev/packages/web/src/ui/components/mixins/Root.module.css.mjs +1 -1
  51. package/dist/esm-dev/packages/web/src/ui/components/molecules/MainContainer.module.css.mjs +1 -1
  52. package/dist/iife/adminPortal/index.js.map +1 -1
  53. package/dist/iife/b2b/index.js +5 -5
  54. package/dist/iife/b2b/index.js.map +1 -1
  55. package/dist/iife/index.js +1 -1
  56. package/dist/iife/index.js.map +1 -1
  57. package/package.json +1 -1
  58. package/dist/cjs/shadcn-CyIAo-yO.js.map +0 -1
  59. package/dist/cjs-dev/shadcn-Bzbol4Ww.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,12 +1,19 @@
1
1
  # @stytch/vanilla-js
2
2
 
3
- ## 6.0.1
3
+ ## 6.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
+ ## 6.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 5f66066: Fix font size issue on some anchor buttons
15
+
16
+ ## 6.0.1
10
17
 
11
18
  This is a major release, containing a redesign of our frontend components and package structure.
12
19
 
@@ -30,6 +37,10 @@ This is a major release, containing a redesign of our frontend components and pa
30
37
  - Clientside validation for configs now only occur in development build to reduce bundle size from validation message strings
31
38
  - @stytch/vanilla-js now exports standard web components (custom element), allowing for easy integration with other frameworks like Vue.js and Svelte
32
39
 
40
+ ## 6.0.0
41
+
42
+ This version was released with broken packaging. We recommend upgrading to 6.0.1 if you have this version.
43
+
33
44
  ## 5.45.0
34
45
 
35
46
  ### Minor Changes
@@ -46,9 +57,7 @@ This is a major release, containing a redesign of our frontend components and pa
46
57
 
47
58
  ### Patch Changes
48
59
 
49
- - 5a0ad5c: Add external_id to Member and User types and add organization_external_id to Organization type
50
- - Updated dependencies [5a0ad5c]
51
- - @stytch/core@2.66.1
60
+ - 5a0ad5c: Add `external_id` to Member and User types and add `organization_external_id` to Organization type
52
61
 
53
62
  ## 5.44.0
54
63
 
@@ -65,13 +74,13 @@ This is a major release, containing a redesign of our frontend components and pa
65
74
 
66
75
  ### Minor Changes
67
76
 
68
- - 2da1e4d: Add keepSessionAlive boolean flag to StytchClientOptions. When set, the client will automatically refresh the session as long as the client is active
77
+ - 2da1e4d: Add `keepSessionAlive` boolean flag to `StytchClientOptions`. When set, the client will automatically refresh the session as long as the client is active
69
78
  - f181abf: Include custom org roles in local authorization checks
70
79
  - 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>`.
71
80
 
72
81
  ### Patch Changes
73
82
 
74
- - 17e589c: B2B: Add support for 'ALL_ALLOWED' organization email_jit_provisioning setting
83
+ - 17e589c: B2B: Add support for `ALL_ALLOWED` organization `email_jit_provisioning` setting
75
84
  - Updated dependencies [2da1e4d]
76
85
  - Updated dependencies [f181abf]
77
86
  - Updated dependencies [17e589c]
@@ -109,7 +118,7 @@ This is a major release, containing a redesign of our frontend components and pa
109
118
 
110
119
  ### Patch Changes
111
120
 
112
- - 9054b80: Guarantee response_type will always be present again
121
+ - 9054b80: Guarantee `response_type` will always be present again
113
122
  - a640aa9: Fix missing breached password error message for zxcvbn password config in pre-built UI
114
123
  - 3d625ba: Fix error message when B2B discovery EML auth encounters an error in prebuilt UI
115
124
  - Updated dependencies [9a503d3]
@@ -188,7 +197,7 @@ This is a major release, containing a redesign of our frontend components and pa
188
197
  ### Minor Changes
189
198
 
190
199
  - 2f9917a: Add Reinvite user button to Admin Portal Member Management
191
- - 0c1a944: Update labels to use <label> element and improve accessibility
200
+ - 0c1a944: Update labels to use `<label>` element and improve accessibility
192
201
  New `formField.phone.label` string for phone number input label and `formField.countryCode.label` for country code label
193
202
  `formField.password.ariaLabel` string has been folded into `formField.password.label` and can be removed
194
203
 
@@ -241,7 +250,7 @@ This is a major release, containing a redesign of our frontend components and pa
241
250
 
242
251
  ### Minor Changes
243
252
 
244
- - d850be0: Add organization_slug to MemberSession type
253
+ - d850be0: Add `organization_slug` to MemberSession type
245
254
 
246
255
  ### Patch Changes
247
256
 
@@ -836,7 +845,7 @@ This is a major release, containing a redesign of our frontend components and pa
836
845
 
837
846
  ### Patch Changes
838
847
 
839
- - f5334f1: Added the option to change sso_jit_provisioning in Admin Portal's Organization Settings
848
+ - f5334f1: Added the option to change `sso_jit_provisioning` in Admin Portal's Organization Settings
840
849
  - 59fbc0c: Add OAuth Tenant settings to Admin Portal's Organization Settings
841
850
  - 59fbc0c: Improve Admin Portal's Organization settings User onboarding UI
842
851
  - Updated dependencies [5f9a5bf]
@@ -913,7 +922,7 @@ This is a major release, containing a redesign of our frontend components and pa
913
922
 
914
923
  ### Patch Changes
915
924
 
916
- - 37b3dcd7: Improved error message for ad_blocker_detected
925
+ - 37b3dcd7: Improved error message for `ad_blocker_detected`
917
926
  - fd5c8b0e: Remove workaround for setting cookies in older versions of Firefox
918
927
  - a8572550: Error messages in the StytchLogin component no longer overflows the container
919
928
 
@@ -1683,7 +1692,7 @@ This is a major release, containing a redesign of our frontend components and pa
1683
1692
  ### Patch Changes
1684
1693
 
1685
1694
  - 8c587e3: Update B2B Password Reset by Session to stay logged in
1686
- - 70475b5: remove unnecessary organization_id param from passwords.resetBySession in B2B client
1695
+ - 70475b5: remove unnecessary `organization_id` param from passwords.resetBySession in B2B client
1687
1696
  - 5d13cfe: Minor copy change on the B2B Passwords UI component
1688
1697
  - Updated dependencies [70475b5]
1689
1698
  - Updated dependencies [311388d]
@@ -28921,10 +28921,12 @@ const Autocomplete = ({ caption, fullWidth, getOptionDescription, getOptionDisab
28921
28921
  const { onDelete, ...tagProps } = getTagProps({
28922
28922
  index
28923
28923
  });
28924
- return /*#__PURE__*/ uniqueId.wn.createElement(AutocompleteTag, {
28924
+ return(// key is in tagProps
28925
+ // eslint-disable-next-line react/jsx-key
28926
+ /*#__PURE__*/ uniqueId.wn.createElement(AutocompleteTag, {
28925
28927
  ...tagProps,
28926
28928
  onDelete: getOptionDisabled?.(option) ? undefined : onDelete
28927
- }, getOptionLabel(option));
28929
+ }, getOptionLabel(option)));
28928
28930
  })
28929
28931
  }), caption && /*#__PURE__*/ uniqueId.wn.createElement(Typography$1, {
28930
28932
  variant: "body2"