@stytch/vanilla-js 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 (385) hide show
  1. package/CHANGELOG.md +1188 -0
  2. package/README.md +121 -0
  3. package/b2b/adminPortal/package.json +6 -0
  4. package/b2b/headless/package.json +6 -0
  5. package/b2b/package.json +6 -0
  6. package/dist/APINetworkClient.d.ts +6 -0
  7. package/dist/BootstrapDataManager.d.ts +39 -0
  8. package/dist/CaptchaProvider.d.ts +7 -0
  9. package/dist/ClientsideServicesProvider.d.ts +16 -0
  10. package/dist/HeadlessOAuthClient.d.ts +68 -0
  11. package/dist/NetworkClient.d.ts +25 -0
  12. package/dist/PKCEManager.d.ts +12 -0
  13. package/dist/StytchHeadlessClient.d.ts +45 -0
  14. package/dist/StytchUIClient.d.ts +86 -0
  15. package/dist/SubscriptionService.d.ts +110 -0
  16. package/dist/adminPortal/AdminPortalStyleConfig.d.ts +174 -0
  17. package/dist/adminPortal/AdminPortalWrapper.d.ts +11 -0
  18. package/dist/adminPortal/MainContainer.d.ts +4 -0
  19. package/dist/adminPortal/Router.d.ts +44 -0
  20. package/dist/adminPortal/StytchClientContext.d.ts +12 -0
  21. package/dist/adminPortal/classNameSeed.d.ts +2 -0
  22. package/dist/adminPortal/components/Accordion.d.ts +6 -0
  23. package/dist/adminPortal/components/ActionMenu.d.ts +18 -0
  24. package/dist/adminPortal/components/Alert.d.ts +4 -0
  25. package/dist/adminPortal/components/Autocomplete.d.ts +18 -0
  26. package/dist/adminPortal/components/Button.d.ts +6 -0
  27. package/dist/adminPortal/components/Checkbox.d.ts +4 -0
  28. package/dist/adminPortal/components/Code.d.ts +7 -0
  29. package/dist/adminPortal/components/CopyableText.d.ts +7 -0
  30. package/dist/adminPortal/components/DeleteConnection.d.ts +21 -0
  31. package/dist/adminPortal/components/EmbeddedTable.d.ts +4 -0
  32. package/dist/adminPortal/components/FilterMenu.d.ts +11 -0
  33. package/dist/adminPortal/components/FlexBox.d.ts +1 -0
  34. package/dist/adminPortal/components/IconButtonMenu.d.ts +24 -0
  35. package/dist/adminPortal/components/InfoIcon.d.ts +3 -0
  36. package/dist/adminPortal/components/Input.d.ts +6 -0
  37. package/dist/adminPortal/components/Label.d.ts +4 -0
  38. package/dist/adminPortal/components/ListEditor.d.ts +5 -0
  39. package/dist/adminPortal/components/MenuItem.d.ts +5 -0
  40. package/dist/adminPortal/components/Modal.d.ts +16 -0
  41. package/dist/adminPortal/components/PaddingLeft.d.ts +1 -0
  42. package/dist/adminPortal/components/PageLoadingIndicator.d.ts +2 -0
  43. package/dist/adminPortal/components/PaginatedTable.d.ts +4 -0
  44. package/dist/adminPortal/components/RadioGroup.d.ts +4 -0
  45. package/dist/adminPortal/components/RolesList.d.ts +12 -0
  46. package/dist/adminPortal/components/SearchBar.d.ts +4 -0
  47. package/dist/adminPortal/components/Select.d.ts +9 -0
  48. package/dist/adminPortal/components/SetDefaultConnection.d.ts +29 -0
  49. package/dist/adminPortal/components/SettingsContainer.d.ts +24 -0
  50. package/dist/adminPortal/components/SettingsList.d.ts +4 -0
  51. package/dist/adminPortal/components/SettingsListItem.d.ts +5 -0
  52. package/dist/adminPortal/components/SettingsSection.d.ts +6 -0
  53. package/dist/adminPortal/components/Switch.d.ts +9 -0
  54. package/dist/adminPortal/components/Table.d.ts +4 -0
  55. package/dist/adminPortal/components/TableActions.d.ts +6 -0
  56. package/dist/adminPortal/components/Tag.d.ts +6 -0
  57. package/dist/adminPortal/components/TagList.d.ts +4 -0
  58. package/dist/adminPortal/components/Toast.d.ts +5 -0
  59. package/dist/adminPortal/components/Tooltip.d.ts +3 -0
  60. package/dist/adminPortal/components/Typography.d.ts +4 -0
  61. package/dist/adminPortal/index.d.ts +8 -0
  62. package/dist/adminPortal/index.esm.js +5 -0
  63. package/dist/adminPortal/index.js +5 -0
  64. package/dist/adminPortal/makeAdminPortalComponentMountFn.d.ts +20 -0
  65. package/dist/adminPortal/memberManagement/AccessSection.d.ts +5 -0
  66. package/dist/adminPortal/memberManagement/AdminPortalMemberManagement.d.ts +24 -0
  67. package/dist/adminPortal/memberManagement/AuthManagementSection.d.ts +5 -0
  68. package/dist/adminPortal/memberManagement/DangerZoneSection.d.ts +5 -0
  69. package/dist/adminPortal/memberManagement/InviteModal.d.ts +29 -0
  70. package/dist/adminPortal/memberManagement/MemberDetailsScreen.d.ts +4 -0
  71. package/dist/adminPortal/memberManagement/MemberDetailsSection.d.ts +5 -0
  72. package/dist/adminPortal/memberManagement/MemberListScreen.d.ts +19 -0
  73. package/dist/adminPortal/memberManagement/MemberManagementRouter.d.ts +29 -0
  74. package/dist/adminPortal/memberManagement/MemberStatus.d.ts +3 -0
  75. package/dist/adminPortal/memberManagement/getMemberStatusDisplayName.d.ts +1 -0
  76. package/dist/adminPortal/memberManagement/mountAdminPortalMemberManagement.d.ts +15 -0
  77. package/dist/adminPortal/memberManagement/useMemberActivation.d.ts +16 -0
  78. package/dist/adminPortal/settings/AdminPortalOrgRouter.d.ts +19 -0
  79. package/dist/adminPortal/settings/AdminPortalOrgSettings.d.ts +41 -0
  80. package/dist/adminPortal/settings/OrgSettingsAuthenticationSettingsSection.d.ts +5 -0
  81. package/dist/adminPortal/settings/OrgSettingsDetailsSection.d.ts +22 -0
  82. package/dist/adminPortal/settings/OrgSettingsEmailDomainsSection.d.ts +5 -0
  83. package/dist/adminPortal/settings/OrgSettingsRoleAssignmentsSection.d.ts +5 -0
  84. package/dist/adminPortal/settings/OrgSettingsScreen.d.ts +2 -0
  85. package/dist/adminPortal/settings/mountAdminPortalOrgSettings.d.ts +16 -0
  86. package/dist/adminPortal/shared/classNameSeed.d.ts +1 -0
  87. package/dist/adminPortal/shared/components/Accordion.d.ts +15 -0
  88. package/dist/adminPortal/shared/components/Button.d.ts +25 -0
  89. package/dist/adminPortal/shared/components/Checkbox.d.ts +13 -0
  90. package/dist/adminPortal/shared/components/Code.d.ts +14 -0
  91. package/dist/adminPortal/shared/components/ContentSpacing.d.ts +6 -0
  92. package/dist/adminPortal/shared/components/CopyableText.d.ts +16 -0
  93. package/dist/adminPortal/shared/components/EmbeddedTable.d.ts +16 -0
  94. package/dist/adminPortal/shared/components/FlexBox.d.ts +11 -0
  95. package/dist/adminPortal/shared/components/InfoIcon.d.ts +8 -0
  96. package/dist/adminPortal/shared/components/Input.d.ts +29 -0
  97. package/dist/adminPortal/shared/components/Label.d.ts +11 -0
  98. package/dist/adminPortal/shared/components/ListEditor.d.ts +29 -0
  99. package/dist/adminPortal/shared/components/MenuItem.d.ts +14 -0
  100. package/dist/adminPortal/shared/components/Modal.d.ts +20 -0
  101. package/dist/adminPortal/shared/components/PaginatedTable.d.ts +36 -0
  102. package/dist/adminPortal/shared/components/Radio.d.ts +14 -0
  103. package/dist/adminPortal/shared/components/RadioGroup.d.ts +12 -0
  104. package/dist/adminPortal/shared/components/RowItem.d.ts +8 -0
  105. package/dist/adminPortal/shared/components/SearchBar.d.ts +7 -0
  106. package/dist/adminPortal/shared/components/Select.d.ts +30 -0
  107. package/dist/adminPortal/shared/components/Table.d.ts +26 -0
  108. package/dist/adminPortal/shared/components/TableActions.d.ts +15 -0
  109. package/dist/adminPortal/shared/components/Tag.d.ts +4 -0
  110. package/dist/adminPortal/shared/components/Toast.d.ts +18 -0
  111. package/dist/adminPortal/shared/components/Tooltip.d.ts +12 -0
  112. package/dist/adminPortal/shared/components/Typography.d.ts +15 -0
  113. package/dist/adminPortal/shared/components/componentInjection.d.ts +49 -0
  114. package/dist/adminPortal/shared/components/constants.d.ts +3 -0
  115. package/dist/adminPortal/shared/components/types.d.ts +14 -0
  116. package/dist/adminPortal/shared/utils/clickToCopyUtils.d.ts +15 -0
  117. package/dist/adminPortal/shared/utils/composeStyles.d.ts +60 -0
  118. package/dist/adminPortal/shared/utils/keys.d.ts +74 -0
  119. package/dist/adminPortal/shared/utils/noop.d.ts +1 -0
  120. package/dist/adminPortal/shared/utils/tableUtils.d.ts +5 -0
  121. package/dist/adminPortal/shared/utils/uniqueIds.d.ts +2 -0
  122. package/dist/adminPortal/shared/utils/useToggleState.d.ts +7 -0
  123. package/dist/adminPortal/sso/AdminPortalSSO.d.ts +28 -0
  124. package/dist/adminPortal/sso/AppDetails.d.ts +5 -0
  125. package/dist/adminPortal/sso/AttributeMappingTable.d.ts +22 -0
  126. package/dist/adminPortal/sso/DetailsSection.d.ts +6 -0
  127. package/dist/adminPortal/sso/IdpInfo.d.ts +147 -0
  128. package/dist/adminPortal/sso/IdpSelect.d.ts +126 -0
  129. package/dist/adminPortal/sso/OrganizationUpdatesSection.d.ts +7 -0
  130. package/dist/adminPortal/sso/RoleAssignmentsSection.d.ts +6 -0
  131. package/dist/adminPortal/sso/SSOConnectionDetailsScreen.d.ts +4 -0
  132. package/dist/adminPortal/sso/SSOConnectionsScreen.d.ts +2 -0
  133. package/dist/adminPortal/sso/SSONewConnectionConfigureScreen.d.ts +5 -0
  134. package/dist/adminPortal/sso/SSONewConnectionScreen.d.ts +2 -0
  135. package/dist/adminPortal/sso/SSORouter.d.ts +45 -0
  136. package/dist/adminPortal/sso/TaggedConnection.d.ts +8 -0
  137. package/dist/adminPortal/sso/mountAdminPortalSSO.d.ts +15 -0
  138. package/dist/adminPortal/utils/AdminPortalUIConfigRoleDisplayProvider.d.ts +19 -0
  139. package/dist/adminPortal/utils/Connection.d.ts +9 -0
  140. package/dist/adminPortal/utils/ConnectionType.d.ts +1 -0
  141. package/dist/adminPortal/utils/FormSectionBody.d.ts +6 -0
  142. package/dist/adminPortal/utils/arraysHaveSameContents.d.ts +20 -0
  143. package/dist/adminPortal/utils/clickToCopyUtils.d.ts +5 -0
  144. package/dist/adminPortal/utils/collator.d.ts +1 -0
  145. package/dist/adminPortal/utils/decorateCurrentMemberName.d.ts +1 -0
  146. package/dist/adminPortal/utils/fetchMembers.d.ts +15 -0
  147. package/dist/adminPortal/utils/getRoleDefaultDescription.d.ts +2 -0
  148. package/dist/adminPortal/utils/getRoleDefaultDisplayName.d.ts +2 -0
  149. package/dist/adminPortal/utils/isEmptyObject.d.ts +1 -0
  150. package/dist/adminPortal/utils/makeUseStorage.d.ts +1 -0
  151. package/dist/adminPortal/utils/memberGetKey.d.ts +1 -0
  152. package/dist/adminPortal/utils/noValue.d.ts +1 -0
  153. package/dist/adminPortal/utils/organizationGetKey.d.ts +1 -0
  154. package/dist/adminPortal/utils/roles.d.ts +2 -0
  155. package/dist/adminPortal/utils/theme.d.ts +6 -0
  156. package/dist/adminPortal/utils/useAdminPortalConfig.d.ts +16 -0
  157. package/dist/adminPortal/utils/useApiNetworkClient.d.ts +1 -0
  158. package/dist/adminPortal/utils/useB2BInternals.d.ts +1 -0
  159. package/dist/adminPortal/utils/useDebouncedState.d.ts +1 -0
  160. package/dist/adminPortal/utils/useDisplayPagination.d.ts +19 -0
  161. package/dist/adminPortal/utils/useFormState.d.ts +14 -0
  162. package/dist/adminPortal/utils/useGetRoleDescription.d.ts +2 -0
  163. package/dist/adminPortal/utils/useGetRoleDisplayName.d.ts +2 -0
  164. package/dist/adminPortal/utils/useItemsPerPage.d.ts +7 -0
  165. package/dist/adminPortal/utils/useLocalStorage.d.ts +1 -0
  166. package/dist/adminPortal/utils/useMutateMember.d.ts +4 -0
  167. package/dist/adminPortal/utils/useMutateOrganization.d.ts +4 -0
  168. package/dist/adminPortal/utils/useMutateScimConnection.d.ts +4 -0
  169. package/dist/adminPortal/utils/useMutateSsoConnection.d.ts +19 -0
  170. package/dist/adminPortal/utils/useMutateWithToast.d.ts +7 -0
  171. package/dist/adminPortal/utils/useNavigateAwayWarning.d.ts +1 -0
  172. package/dist/adminPortal/utils/useOrgInfo.d.ts +1 -0
  173. package/dist/adminPortal/utils/usePagination.d.ts +8 -0
  174. package/dist/adminPortal/utils/usePersistentFilter.d.ts +6 -0
  175. package/dist/adminPortal/utils/useRbac.d.ts +53 -0
  176. package/dist/adminPortal/utils/useRevalidateConnectionList.d.ts +1 -0
  177. package/dist/adminPortal/utils/useRoleAutocomplete.d.ts +7 -0
  178. package/dist/adminPortal/utils/useRoleDisplayInfo.d.ts +7 -0
  179. package/dist/adminPortal/utils/useRoleSortFn.d.ts +17 -0
  180. package/dist/adminPortal/utils/useRoles.d.ts +2 -0
  181. package/dist/adminPortal/utils/useScimConnection.d.ts +4 -0
  182. package/dist/adminPortal/utils/useScimConnectionGroups.d.ts +6 -0
  183. package/dist/adminPortal/utils/useSelf.d.ts +4 -0
  184. package/dist/adminPortal/utils/useSessionStorage.d.ts +1 -0
  185. package/dist/adminPortal/utils/useSsoConnections.d.ts +4 -0
  186. package/dist/adminPortal/utils/useStateSliceSetter.d.ts +2 -0
  187. package/dist/adminPortal/utils/useStytchClient.d.ts +1 -0
  188. package/dist/adminPortal/utils/useUpdateCachedMember.d.ts +5 -0
  189. package/dist/assets/CreateIcon.d.ts +6 -0
  190. package/dist/assets/amazon.d.ts +3 -0
  191. package/dist/assets/apple.d.ts +3 -0
  192. package/dist/assets/backArrow.d.ts +5 -0
  193. package/dist/assets/binance.d.ts +3 -0
  194. package/dist/assets/bitbucket.d.ts +3 -0
  195. package/dist/assets/check.d.ts +2 -0
  196. package/dist/assets/checkmark.d.ts +2 -0
  197. package/dist/assets/chevron.d.ts +3 -0
  198. package/dist/assets/coinbase.d.ts +4 -0
  199. package/dist/assets/confirmation.d.ts +2 -0
  200. package/dist/assets/copy.d.ts +3 -0
  201. package/dist/assets/cross.d.ts +2 -0
  202. package/dist/assets/discord.d.ts +3 -0
  203. package/dist/assets/errorIcon.d.ts +3 -0
  204. package/dist/assets/facebook.d.ts +3 -0
  205. package/dist/assets/figma.d.ts +3 -0
  206. package/dist/assets/genericWallet.d.ts +4 -0
  207. package/dist/assets/github.d.ts +3 -0
  208. package/dist/assets/gitlab.d.ts +3 -0
  209. package/dist/assets/gmail.d.ts +3 -0
  210. package/dist/assets/google.d.ts +3 -0
  211. package/dist/assets/linkedin.d.ts +3 -0
  212. package/dist/assets/metamask.d.ts +4 -0
  213. package/dist/assets/microsoft.d.ts +3 -0
  214. package/dist/assets/outlook.d.ts +3 -0
  215. package/dist/assets/passkeyAdded.d.ts +2 -0
  216. package/dist/assets/passkeys.d.ts +3 -0
  217. package/dist/assets/passkeysCollage.d.ts +2 -0
  218. package/dist/assets/passwordIcon.d.ts +5 -0
  219. package/dist/assets/pencil.d.ts +2 -0
  220. package/dist/assets/phantom.d.ts +3 -0
  221. package/dist/assets/salesforce.d.ts +3 -0
  222. package/dist/assets/slack.d.ts +3 -0
  223. package/dist/assets/snackbarError.d.ts +2 -0
  224. package/dist/assets/snackbarSuccess.d.ts +2 -0
  225. package/dist/assets/snapchat.d.ts +3 -0
  226. package/dist/assets/successIcon.d.ts +3 -0
  227. package/dist/assets/tiktok.d.ts +3 -0
  228. package/dist/assets/trash.d.ts +2 -0
  229. package/dist/assets/twitch.d.ts +3 -0
  230. package/dist/assets/twitter.d.ts +3 -0
  231. package/dist/assets/vessel.d.ts +4 -0
  232. package/dist/assets/warningIcon.d.ts +3 -0
  233. package/dist/assets/yahoo.d.ts +3 -0
  234. package/dist/assets/yahooLogo.d.ts +3 -0
  235. package/dist/b2b/HeadlessB2BOAuthClient.d.ts +100 -0
  236. package/dist/b2b/StytchB2BHeadlessClient.d.ts +50 -0
  237. package/dist/b2b/StytchB2BUIClient.d.ts +40 -0
  238. package/dist/b2b/index.d.ts +2 -0
  239. package/dist/b2b/index.esm.js +5959 -0
  240. package/dist/b2b/index.headless.d.ts +2 -0
  241. package/dist/b2b/index.headless.esm.js +1649 -0
  242. package/dist/b2b/index.headless.js +1759 -0
  243. package/dist/b2b/index.js +6069 -0
  244. package/dist/b2b/oneTap/B2BOneTapProvider.d.ts +39 -0
  245. package/dist/extractErrorMessage-BlvBVxIJ.js +4502 -0
  246. package/dist/extractErrorMessage-D_8V4TR0.js +4550 -0
  247. package/dist/getPersistentStorageKey.d.ts +1 -0
  248. package/dist/index.d.ts +2 -0
  249. package/dist/index.esm.js +1 -0
  250. package/dist/index.headless.d.ts +2 -0
  251. package/dist/index.headless.esm.js +5853 -0
  252. package/dist/index.headless.js +5898 -0
  253. package/dist/index.js +1 -0
  254. package/dist/internal-02eYPqJx.js +5434 -0
  255. package/dist/internal-C-ijhqG_.js +5526 -0
  256. package/dist/oneTap/OneTapClient.d.ts +22 -0
  257. package/dist/oneTap/OneTapProvider.d.ts +36 -0
  258. package/dist/oneTap/navigatorSupportsFedCM.d.ts +1 -0
  259. package/dist/oneTap/positionModes.d.ts +6 -0
  260. package/dist/types.d.ts +18 -0
  261. package/dist/ui/CreateWebComponent.d.ts +20 -0
  262. package/dist/ui/b2b/App.d.ts +5 -0
  263. package/dist/ui/b2b/Container.d.ts +3 -0
  264. package/dist/ui/b2b/GlobalContextProvider.d.ts +82 -0
  265. package/dist/ui/b2b/MfaState.d.ts +50 -0
  266. package/dist/ui/b2b/clearStytchSearchParams.d.ts +1 -0
  267. package/dist/ui/b2b/generateProductComponentsOrdering.d.ts +13 -0
  268. package/dist/ui/b2b/getEnabledMethods.d.ts +5 -0
  269. package/dist/ui/b2b/hooks/useIsOnlyFloatingOneTap.d.ts +1 -0
  270. package/dist/ui/b2b/mfa.d.ts +70 -0
  271. package/dist/ui/b2b/reducer.d.ts +25 -0
  272. package/dist/ui/b2b/screens/Discovery.d.ts +2 -0
  273. package/dist/ui/b2b/screens/EmailConfirmation.d.ts +2 -0
  274. package/dist/ui/b2b/screens/MFAEnrollmentSelectionScreen.d.ts +2 -0
  275. package/dist/ui/b2b/screens/MagicLinkForm.d.ts +3 -0
  276. package/dist/ui/b2b/screens/Main.d.ts +2 -0
  277. package/dist/ui/b2b/screens/OAuthButtons.d.ts +15 -0
  278. package/dist/ui/b2b/screens/PasswordAuthenticate.d.ts +7 -0
  279. package/dist/ui/b2b/screens/PasswordEmailForm.d.ts +2 -0
  280. package/dist/ui/b2b/screens/PasswordForgotForm.d.ts +2 -0
  281. package/dist/ui/b2b/screens/PasswordResetConfirmation.d.ts +2 -0
  282. package/dist/ui/b2b/screens/PasswordResetForm.d.ts +2 -0
  283. package/dist/ui/b2b/screens/PasswordSetNew.d.ts +2 -0
  284. package/dist/ui/b2b/screens/PasswordUseButton.d.ts +2 -0
  285. package/dist/ui/b2b/screens/RecoveryCodeEntryScreen.d.ts +2 -0
  286. package/dist/ui/b2b/screens/RecoveryCodeSaveScreen.d.ts +2 -0
  287. package/dist/ui/b2b/screens/SMSOTPEnrollScreen.d.ts +3 -0
  288. package/dist/ui/b2b/screens/SMSOTPEntryScreen.d.ts +2 -0
  289. package/dist/ui/b2b/screens/SSOButtons.d.ts +6 -0
  290. package/dist/ui/b2b/screens/TOTPEnrollManualScreen.d.ts +2 -0
  291. package/dist/ui/b2b/screens/TOTPEnrollQRScreen.d.ts +2 -0
  292. package/dist/ui/b2b/screens/TOTPEntryScreen.d.ts +2 -0
  293. package/dist/ui/b2b/utils.d.ts +35 -0
  294. package/dist/ui/b2c/App.d.ts +11 -0
  295. package/dist/ui/b2c/Container.d.ts +3 -0
  296. package/dist/ui/b2c/GlobalContextProvider.d.ts +83 -0
  297. package/dist/ui/b2c/reducer.d.ts +23 -0
  298. package/dist/ui/b2c/screens/Crypto/ConnectWallet.d.ts +2 -0
  299. package/dist/ui/b2c/screens/Crypto/Error.d.ts +2 -0
  300. package/dist/ui/b2c/screens/Crypto/OtherWallets.d.ts +2 -0
  301. package/dist/ui/b2c/screens/Crypto/PasskeyConfirmation.d.ts +2 -0
  302. package/dist/ui/b2c/screens/Crypto/SetupNewWallet.d.ts +2 -0
  303. package/dist/ui/b2c/screens/Crypto/SignMessage.d.ts +2 -0
  304. package/dist/ui/b2c/screens/Crypto/Success.d.ts +2 -0
  305. package/dist/ui/b2c/screens/Crypto/WalletButtons.d.ts +4 -0
  306. package/dist/ui/b2c/screens/Main/LoginForm/MagicLinkForm.d.ts +2 -0
  307. package/dist/ui/b2c/screens/Main/LoginForm/OTPForm.d.ts +16 -0
  308. package/dist/ui/b2c/screens/Main/LoginForm/PasskeyButton.d.ts +2 -0
  309. package/dist/ui/b2c/screens/Main/LoginForm/PasswordForm.d.ts +2 -0
  310. package/dist/ui/b2c/screens/Main/LoginForm/index.d.ts +2 -0
  311. package/dist/ui/b2c/screens/Main/OAuthButtons.d.ts +2 -0
  312. package/dist/ui/b2c/screens/Main/index.d.ts +2 -0
  313. package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationStart.d.ts +2 -0
  314. package/dist/ui/b2c/screens/Passkey/PasskeyRegistrationSuccess.d.ts +2 -0
  315. package/dist/ui/b2c/screens/Password/MagicLinkOption.d.ts +2 -0
  316. package/dist/ui/b2c/screens/Password/PasswordAuthenticate.d.ts +2 -0
  317. package/dist/ui/b2c/screens/Password/PasswordBreached.d.ts +2 -0
  318. package/dist/ui/b2c/screens/Password/PasswordDedupe.d.ts +2 -0
  319. package/dist/ui/b2c/screens/Password/PasswordForgot.d.ts +2 -0
  320. package/dist/ui/b2c/screens/Password/PasswordNewUser.d.ts +2 -0
  321. package/dist/ui/b2c/screens/Password/PasswordSecondaryMethod.d.ts +4 -0
  322. package/dist/ui/b2c/screens/Password/PasswordSetNew.d.ts +2 -0
  323. package/dist/ui/b2c/screens/Password/PasswordlessCreate.d.ts +2 -0
  324. package/dist/ui/b2c/screens/Password/ResetPassword.d.ts +2 -0
  325. package/dist/ui/b2c/screens/Secondary/EmailConfirmation.d.ts +6 -0
  326. package/dist/ui/b2c/screens/Secondary/OTPAuthenticate.d.ts +4 -0
  327. package/dist/ui/b2c/screens/Secondary/OTPConfirmation.d.ts +2 -0
  328. package/dist/ui/b2c/screens/Secondary/PasswordCreateAuthenticate.d.ts +2 -0
  329. package/dist/ui/b2c/utils.d.ts +1 -0
  330. package/dist/ui/components/AlertBox.d.ts +8 -0
  331. package/dist/ui/components/AnimatedContainer.d.ts +5 -0
  332. package/dist/ui/components/B2BOneTap.d.ts +2 -0
  333. package/dist/ui/components/Button.d.ts +5 -0
  334. package/dist/ui/components/CircularProgress.d.ts +12 -0
  335. package/dist/ui/components/Confirmation.d.ts +2 -0
  336. package/dist/ui/components/CountrySelector.d.ts +7 -0
  337. package/dist/ui/components/Divider.d.ts +2 -0
  338. package/dist/ui/components/EditableRow.d.ts +15 -0
  339. package/dist/ui/components/EmailConfirmation.d.ts +11 -0
  340. package/dist/ui/components/EmailInput.d.ts +7 -0
  341. package/dist/ui/components/ErrorScreen.d.ts +2 -0
  342. package/dist/ui/components/ErrorText.d.ts +4 -0
  343. package/dist/ui/components/Flex.d.ts +40 -0
  344. package/dist/ui/components/InlineButton.d.ts +7 -0
  345. package/dist/ui/components/Input.d.ts +1 -0
  346. package/dist/ui/components/InsetContainer.d.ts +1 -0
  347. package/dist/ui/components/Loading.d.ts +3 -0
  348. package/dist/ui/components/LoadingBar.d.ts +4 -0
  349. package/dist/ui/components/MainContainer.d.ts +6 -0
  350. package/dist/ui/components/OAuthB2BButton.d.ts +14 -0
  351. package/dist/ui/components/OAuthButton.d.ts +14 -0
  352. package/dist/ui/components/OTPControl.d.ts +8 -0
  353. package/dist/ui/components/OTPEntry.d.ts +11 -0
  354. package/dist/ui/components/OTPInput.d.ts +6 -0
  355. package/dist/ui/components/OneTap.d.ts +18 -0
  356. package/dist/ui/components/OneTapErrorMessages.d.ts +7 -0
  357. package/dist/ui/components/PasswordError.d.ts +17 -0
  358. package/dist/ui/components/PasswordInput.d.ts +6 -0
  359. package/dist/ui/components/PasswordStrengthCheck.d.ts +4 -0
  360. package/dist/ui/components/PhoneInput.d.ts +10 -0
  361. package/dist/ui/components/SentOTPEntry.d.ts +10 -0
  362. package/dist/ui/components/Snackbar.d.ts +2 -0
  363. package/dist/ui/components/SubmitButton.d.ts +7 -0
  364. package/dist/ui/components/TOTPEntry.d.ts +8 -0
  365. package/dist/ui/components/Text.d.ts +9 -0
  366. package/dist/ui/components/VerifyEmailConfirmation.d.ts +10 -0
  367. package/dist/ui/components/WalletButton.d.ts +8 -0
  368. package/dist/ui/hooks/useIsMounted.d.ts +3 -0
  369. package/dist/ui/hooks/useIsOnlyFloatingOneTap.d.ts +1 -0
  370. package/dist/ui/hooks/usePromptPasskey.d.ts +7 -0
  371. package/dist/ui/theme.d.ts +124 -0
  372. package/dist/utils/Optional.d.ts +3 -0
  373. package/dist/utils/assertUnreachable.d.ts +1 -0
  374. package/dist/utils/crypto.d.ts +60 -0
  375. package/dist/utils/deepEqual.d.ts +1 -0
  376. package/dist/utils/extractErrorMessage.d.ts +1 -0
  377. package/dist/utils/extractErrorType.d.ts +1 -0
  378. package/dist/utils/index.d.ts +27 -0
  379. package/dist/utils/internal.d.ts +33 -0
  380. package/dist/utils/isTruthy.d.ts +3 -0
  381. package/dist/utils/oauthProviderType.d.ts +7 -0
  382. package/dist/utils/passkeys.d.ts +8 -0
  383. package/dist/utils/passwordManagerDisableAutofillProps.d.ts +3 -0
  384. package/headless/package.json +6 -0
  385. package/package.json +113 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,1188 @@
1
+ # @stytch/vanilla-js
2
+
3
+ ## 0.0.0-next-20240815193523
4
+
5
+ ### Major Changes
6
+
7
+ - c23db6cd: Upgrades the Vanilla JS SDK to use a new backend implementation with increased performance, support tooling, and end-to-end observability
8
+
9
+ ## 4.18.1
10
+
11
+ ### Patch Changes
12
+
13
+ - b705c934: Update strings in Admin Portal UI
14
+ - Updated dependencies [1ace8943]
15
+ - @stytch/core@2.23.0
16
+
17
+ ## 4.18.0
18
+
19
+ ### Minor Changes
20
+
21
+ - 2ce25093: Implements Sign in With Ethereum (SIWE) for crypto wallets
22
+ - fc59121a: Adds ability to view and unlink retired emails to HeadlessB2BOrganizationClient and HeadlessB2BSelfClient.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [2ce25093]
27
+ - Updated dependencies [1d36ed03]
28
+ - Updated dependencies [fc59121a]
29
+ - @stytch/core@2.22.0
30
+
31
+ ## 4.17.1
32
+
33
+ ### Patch Changes
34
+
35
+ - c0cae756: Mark Admin Portal Organization UI config properties as optional
36
+ - 6701e5fa: Fix bug when organization has no active SCIM connections
37
+ - Updated dependencies [77b72734]
38
+ - Updated dependencies [6701e5fa]
39
+ - @stytch/core@2.21.2
40
+
41
+ ## 4.17.0
42
+
43
+ ### Minor Changes
44
+
45
+ - 127aa71a: Add `container.borderWidth` and `container.padding` to the Admin Portal style configuration
46
+ - bb2e68bc: Support custom role display names and descriptions in organization settings and SSO Admin Portal components
47
+
48
+ ### Patch Changes
49
+
50
+ - e55e9eef: Honor more custom themed input and button properties
51
+ - 016aa6dd: Added SCIM groups to Admin portal Organization settings
52
+ - Updated dependencies [016aa6dd]
53
+ - Updated dependencies [2ba86715]
54
+ - @stytch/core@2.21.1
55
+
56
+ ## 4.16.2
57
+
58
+ ### Patch Changes
59
+
60
+ - 089c986a: Guard references to localStorage and sessionStorage
61
+
62
+ ## 4.16.1
63
+
64
+ ### Patch Changes
65
+
66
+ - 7321ba45: Fix transparent watermark background
67
+
68
+ ## 4.16.0
69
+
70
+ ### Minor Changes
71
+
72
+ - 3183b459: Add Admin Portal Member Management UI. The Admin Portal Member Management UI can be rendered using the `mountAdminPortalMemberManagement` function from `@stytch/vanilla-js/b2b/adminPortal`.
73
+ - 871f7872: Updated theme config to support disabled buttons
74
+ - bd936f06: Adds dfppaDomain to optional SDK client configuration
75
+
76
+ ### Patch Changes
77
+
78
+ - 1b5f8e10: Fix visual bug for Powered by Stytch banner
79
+ - 1615f470: Fixed adding an SSO connection with no groups in Admin Portal Organization settings
80
+ - 481e4ff8: Update Admin Portal font sizes and spacings
81
+ - 9e1719ce: Fix Admin Portal styling conflicts with other applications using Material UI
82
+ - 71380c44: Hide secondary authentication organization settings when not configurable in Admin Portal
83
+ - Updated dependencies [e4684086]
84
+ - Updated dependencies [3183b459]
85
+ - Updated dependencies [bd936f06]
86
+ - Updated dependencies [fda896c7]
87
+ - Updated dependencies [3183b459]
88
+ - Updated dependencies [71c830d7]
89
+ - @stytch/core@2.21.0
90
+
91
+ ## 4.15.0
92
+
93
+ ### Minor Changes
94
+
95
+ - aac9a59b: Add SCIM Headless Methods
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [aac9a59b]
100
+ - @stytch/core@2.20.0
101
+
102
+ ## 4.14.1
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [06b47703]
107
+ - Updated dependencies [95964f0b]
108
+ - @stytch/core@2.19.0
109
+
110
+ ## 4.14.0
111
+
112
+ ### Minor Changes
113
+
114
+ - 1ade8d93: Add Admin Portal Org Settings UI. The Admin Portal Org Settings UI can be rendered using the `mountAdminPortalOrgSettings` function from `@stytch/vanilla-js/b2b/adminPortal`.
115
+
116
+ ### Patch Changes
117
+
118
+ - 5e45de5f: Allow users to change number of rows per page in Admin Portal tables
119
+ - Updated dependencies [e1b798f4]
120
+ - @stytch/core@2.18.0
121
+
122
+ ## 4.13.3
123
+
124
+ ### Patch Changes
125
+
126
+ - 8c1992d1: Prevent login UI buttons from submitting parent forms
127
+ - 6b6833ef: Improve role selection in Admin Portal
128
+ - Updated dependencies [bf21c792]
129
+ - @stytch/core@2.17.2
130
+
131
+ ## 4.13.2
132
+
133
+ ### Patch Changes
134
+
135
+ - e85c92d0: fix: SSO DFPPA Functionality
136
+ - 8a470eee: Gracefully handle narrower widths with phone number input
137
+
138
+ ## 4.13.1
139
+
140
+ ### Patch Changes
141
+
142
+ - Updated dependencies [31c8b4a1]
143
+ - @stytch/core@2.17.1
144
+
145
+ ## 4.13.0
146
+
147
+ ### Minor Changes
148
+
149
+ - a99f21b8: Add Admin Portal SSO UI. The Admin Portal SSO UI can be rendered using the `mountAdminPortalSSO` function from `@stytch/vanilla-js/b2b/adminPortal`.
150
+
151
+ ### Patch Changes
152
+
153
+ - 0f448e7e: Improve error messages when entering phone number.
154
+
155
+ ## 4.12.2
156
+
157
+ ### Patch Changes
158
+
159
+ - bd805fa7: Fix phone input attribute and autocomplete warnings
160
+ - fff75adf: Update recovery code download file to include organization name
161
+
162
+ ## 4.12.1
163
+
164
+ ### Patch Changes
165
+
166
+ - c8e60243: Improved error message for EML in B2B UI component
167
+
168
+ ## 4.12.0
169
+
170
+ ### Minor Changes
171
+
172
+ - cbab0c30: Give each OAuth provider a customScopes and providerParams in UI component config
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [59481ff9]
177
+ - Updated dependencies [cbab0c30]
178
+ - @stytch/core@2.17.0
179
+
180
+ ## 4.11.3
181
+
182
+ ### Patch Changes
183
+
184
+ - 52043847: Svg icons will now resize properly
185
+ - 45e8760e: Updated Icons in Login and EML inbox flows to be vanilla SVGs.
186
+ - c236bb6f: Fix empty or block when there are no SSO connections
187
+ - 41e2704d: Updated UI for the Stytch Watermark.
188
+ - Updated dependencies [066e9602]
189
+ - Updated dependencies [c3a880b8]
190
+ - @stytch/core@2.16.0
191
+
192
+ ## 4.11.2
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [07b310a]
197
+ - @stytch/core@2.15.2
198
+
199
+ ## 4.11.1
200
+
201
+ ### Patch Changes
202
+
203
+ - 2e33560: Loosen typings for various options to accept both string literals and TypeScript enums
204
+ - db67d12: Show error when slug is missing or no slug pattern matches during B2B Organization auth flow
205
+ - Updated dependencies [2e33560]
206
+ - @stytch/core@2.15.1
207
+
208
+ ## 4.11.0
209
+
210
+ ### Minor Changes
211
+
212
+ - 5f4ba4a: Add `stytch.organization.getBySlug` method to B2B clients
213
+
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [5f4ba4a]
217
+ - @stytch/core@2.15.0
218
+
219
+ ## 4.10.1
220
+
221
+ ### Patch Changes
222
+
223
+ - Updated dependencies [821c884]
224
+ - @stytch/core@2.14.1
225
+
226
+ ## 4.10.0
227
+
228
+ ### Minor Changes
229
+
230
+ - 807fcec: B2B Google One Tap is now available in the Javascript SDK and pre-built UI components!
231
+
232
+ You can enable One Tap in the UI components by editing the `B2BOAuthOptions` in your UI config - we've updated the `providers` type to accommodate One Tap. If you add `{ type: 'google', one_tap: true }` to your `providers` list, we'll show the Google One Tap prompt in the top right of the user's browser.
233
+
234
+ In the Javascript SDK, you can use the `stytch.oauth.googleOneTap.start()` and `stytch.oauth.googleOneTap.discovery.start()` methods to render the One Tap prompt, depending on if you are using an organization-specific or discovery flow.
235
+
236
+ ### Patch Changes
237
+
238
+ - Updated dependencies [807fcec]
239
+ - @stytch/core@2.14.0
240
+
241
+ ## 4.9.1
242
+
243
+ ### Patch Changes
244
+
245
+ - 6fb5732: Ensure we display friendly error messages where possible
246
+ - Updated dependencies [0055ad8]
247
+ - @stytch/core@2.13.1
248
+
249
+ ## 4.9.0
250
+
251
+ ### Minor Changes
252
+
253
+ - a0fbe9f: Add `stytch.onStateChange` event listener to headless clients
254
+ - a0fbe9f: Add `getInfo` method to user, session, member, and organization
255
+
256
+ ### Patch Changes
257
+
258
+ - Updated dependencies [a0fbe9f]
259
+ - Updated dependencies [a0fbe9f]
260
+ - @stytch/core@2.13.0
261
+
262
+ ## 4.8.0
263
+
264
+ ### Minor Changes
265
+
266
+ - b007d98: Enable FedCM for use with Google One Tap by default. For users using supported browsers (including Google Chrome and other Chromium-based browsers), Google One Tap will now use [FedCM to provide a sign in experience using native browser prompts](https://developers.google.com/identity/gsi/web/guides/fedcm-migration).
267
+
268
+ Due to changes in Google's One Tap SDK, this affects One Tap using both floating and embedded positioning. Notably, users of Chrome and other Chromium-based browsers will no longer see a embedded One Tap UI by default. Google will begin to remove support for this UI later this year. We recommend adopting the new default behavior, but we have added new position options if you require different behavior:
269
+
270
+ - `floating` remains the default option and uses Google's One Tap SDK's default behavior. It uses FedCM (native browser UI) where available, or renders a floating UI in the top right corner otherwise.
271
+ - `floatingOrEmbedded` uses FedCM where available, or renders an embedded UI in the existing SDK login form otherwise. This is the new default behavior of the `embedded` position, which has been deprecated and renamed for clarity.
272
+ - `embeddedOnly` renders the embedded UI in the existing SDK login form if FedCM is not available, or not at all otherwise. This option is not recommended for new applications. For applications that used `embedded` positioning and do not want to show floating or native browser UI, this option may be useful.
273
+ - `forceLegacyEmbedded` retains the legacy behavior by disabling FedCM support even where it is available. This option is not recommended and will stop being honored by Google in the future, at which time you will need to select a different option.
274
+
275
+ The `embedded` position will still be recognized and treated as `floatingOrEmbedded`, but we recommend updating your configuration to use the new name or a different option.
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [b007d98]
280
+ - @stytch/core@2.12.0
281
+
282
+ ## 4.7.8
283
+
284
+ ### Patch Changes
285
+
286
+ - 565ec50: Fix an issue where a B2B member enrolled in MFA with an unverified phone number was prompted to re-enter a phone number instead of the OTP that was sent to verify their number
287
+
288
+ ## 4.7.7
289
+
290
+ ### Patch Changes
291
+
292
+ - Updated dependencies [cae4f3d]
293
+ - @stytch/core@2.11.0
294
+
295
+ ## 4.7.6
296
+
297
+ ### Patch Changes
298
+
299
+ - Updated dependencies [bf6f8f6]
300
+ - @stytch/core@2.10.2
301
+
302
+ ## 4.7.5
303
+
304
+ ### Patch Changes
305
+
306
+ - 7bce4c1: Fix race condition that could lead to high CPU usage with multiple tabs open
307
+
308
+ ## 4.7.4
309
+
310
+ ### Patch Changes
311
+
312
+ - Updated dependencies [2881b68]
313
+ - @stytch/core@2.10.1
314
+
315
+ ## 4.7.3
316
+
317
+ ### Patch Changes
318
+
319
+ - Updated dependencies [b7f2e1d]
320
+ - @stytch/core@2.10.0
321
+
322
+ ## 4.7.2
323
+
324
+ ### Patch Changes
325
+
326
+ - e83a832: Added DFP functionality to users search in passwords screen
327
+ - Updated dependencies [e83a832]
328
+ - @stytch/core@2.9.1
329
+
330
+ ## 4.7.1
331
+
332
+ ### Patch Changes
333
+
334
+ - 4799cf5: Ensure API errors are handled internally
335
+
336
+ ## 4.7.0
337
+
338
+ ### Minor Changes
339
+
340
+ - f604dcb: Release RN B2C UI
341
+
342
+ ### Patch Changes
343
+
344
+ - Updated dependencies [c4c8c23]
345
+ - Updated dependencies [f604dcb]
346
+ - @stytch/core@2.9.0
347
+
348
+ ## 4.6.0
349
+
350
+ ### Minor Changes
351
+
352
+ - 692c6c7: Add support for SMS OTP and TOTP MFA flows in B2B login UI components. This includes prompting members to complete MFA when they are required to use it to authenticate, and enrolling members who are required to enroll in MFA but have not yet done so. The new `mfaProductOrder` and `mfaProductInclude` options can be used to customize the experience further.
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies [692c6c7]
357
+ - @stytch/core@2.8.0
358
+
359
+ ## 4.5.5
360
+
361
+ ### Patch Changes
362
+
363
+ - 03be134: Disable use of FedCM with Google OneTap
364
+
365
+ ## 4.5.4
366
+
367
+ ### Patch Changes
368
+
369
+ - eb8e140: Fix incorrect imports
370
+ - Updated dependencies [eb8e140]
371
+ - @stytch/core@2.7.2
372
+
373
+ ## 4.5.3
374
+
375
+ ### Patch Changes
376
+
377
+ - 1c40b4c: Fixed a display bug for B2B on host websites modifying box-sizing
378
+
379
+ ## 4.5.2
380
+
381
+ ### Patch Changes
382
+
383
+ - Updated dependencies [060ee3b]
384
+ - Updated dependencies [060ee3b]
385
+ - @stytch/core@2.7.1
386
+
387
+ ## 4.5.1
388
+
389
+ ### Patch Changes
390
+
391
+ - fda956c: Fix encoding of Solana wallet signatures in UI components
392
+
393
+ ## 4.5.0
394
+
395
+ ### Minor Changes
396
+
397
+ - dcc20e2: Add `disableCreateOrganization` option to B2B UI config
398
+
399
+ ### Patch Changes
400
+
401
+ - Updated dependencies [dcc20e2]
402
+ - @stytch/core@2.7.0
403
+
404
+ ## 4.4.4
405
+
406
+ ### Patch Changes
407
+
408
+ - f86be43: Work around an issue where cookies intermittently do not persist in Firefox
409
+
410
+ ## 4.4.3
411
+
412
+ ### Patch Changes
413
+
414
+ - Updated dependencies [521fc22]
415
+ - @stytch/core@2.6.0
416
+
417
+ ## 4.4.2
418
+
419
+ ### Patch Changes
420
+
421
+ - 119952e: Fix an issue where ISTs were being deleted before they could be used
422
+ - Updated dependencies [56fd625]
423
+ - Updated dependencies [119952e]
424
+ - @stytch/core@2.5.1
425
+
426
+ ## 4.4.1
427
+
428
+ ### Patch Changes
429
+
430
+ - 7754915: Re-order and align phone number country code list with allowed countries
431
+
432
+ ## 4.4.0
433
+
434
+ ### Minor Changes
435
+
436
+ - 50bb749: Adds headless methods for interacting with b2b recovery codes
437
+
438
+ ### Patch Changes
439
+
440
+ - Updated dependencies [50bb749]
441
+ - Updated dependencies [e4c0a70]
442
+ - @stytch/core@2.5.0
443
+
444
+ ## 4.3.2
445
+
446
+ ### Patch Changes
447
+
448
+ - Updated dependencies [61417c3]
449
+ - @stytch/core@2.4.2
450
+
451
+ ## 4.3.1
452
+
453
+ ### Patch Changes
454
+
455
+ - 3ca7557: Honor `hideHeaderText` configuration for B2B UI
456
+ - Updated dependencies [e21c507]
457
+ - @stytch/core@2.4.1
458
+
459
+ ## 4.3.0
460
+
461
+ ### Minor Changes
462
+
463
+ - 5877da8: Add support for theming inputs in UI components
464
+
465
+ ### Patch Changes
466
+
467
+ - Updated dependencies [5877da8]
468
+ - @stytch/core@2.4.0
469
+
470
+ ## 4.2.1
471
+
472
+ ### Patch Changes
473
+
474
+ - Updated dependencies [c50b9ad]
475
+ - @stytch/core@2.3.0
476
+
477
+ ## 4.2.0
478
+
479
+ ### Minor Changes
480
+
481
+ - 223e30e: Add `organization.getSync` and `organization.onChange` methods to B2B client
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies [223e30e]
486
+ - @stytch/core@2.2.0
487
+
488
+ ## 4.1.2
489
+
490
+ ### Patch Changes
491
+
492
+ - bf841b1: Fix B2B discovery flow when SSO is enabled with auth methods besides magic links
493
+
494
+ ## 4.1.1
495
+
496
+ ### Patch Changes
497
+
498
+ - e6832cb: Fix an issue where `fromCache` would not update to `false` after cached data was refreshed
499
+
500
+ ## 4.1.0
501
+
502
+ ### Minor Changes
503
+
504
+ - 2379b29: Add B2B TOTPs (Create/Authenticate)
505
+
506
+ ### Patch Changes
507
+
508
+ - Updated dependencies [2379b29]
509
+ - @stytch/core@2.1.0
510
+
511
+ ## 4.0.0
512
+
513
+ ### Major Changes
514
+
515
+ - b34293a: Improvements to error types in the JS and React Native SDKs
516
+
517
+ ### Minor Changes
518
+
519
+ - 6890694: Mark stytch.member as deprecated in favor of stytch.self
520
+ Adds RBAC functionality
521
+
522
+ ### Patch Changes
523
+
524
+ - 9ee61b3: Allow "Login without a password" to immediately login a user who followed a valid password reset link
525
+ - c3c108b: Remove bundled dependencies from package manifest
526
+ - Updated dependencies [76ad832]
527
+ - Updated dependencies [b34293a]
528
+ - Updated dependencies [b34293a]
529
+ - Updated dependencies [6890694]
530
+ - @stytch/core@2.0.0
531
+
532
+ ## 3.2.5
533
+
534
+ ### Patch Changes
535
+
536
+ - 70cf053: Adding better handling for Passkey cross device errors.
537
+
538
+ ## 3.2.4
539
+
540
+ ### Patch Changes
541
+
542
+ - 0637fc3: Switch from using React to Preact
543
+
544
+ ## 3.2.3
545
+
546
+ ### Patch Changes
547
+
548
+ - 2f46248: Add an updated config object for logging members in directly when they have a single membership
549
+ - Updated dependencies [2f46248]
550
+ - @stytch/core@1.4.2
551
+
552
+ ## 3.2.2
553
+
554
+ ### Patch Changes
555
+
556
+ - 7666f2b: Remove phone number dependency to improve bundle size in vanilla-js
557
+ - 6ece044: Add an optional config property in the B2B SDK to skip the discovery flow if a member is part of a single organization
558
+ - Updated dependencies [7666f2b]
559
+ - Updated dependencies [6ece044]
560
+ - @stytch/core@1.4.1
561
+
562
+ ## 3.2.1
563
+
564
+ ### Patch Changes
565
+
566
+ - 8cd6801: Add Update/Delete Registrations UI
567
+ - bb0c31e: Passkeys: Add Update/Delete Registration UI
568
+
569
+ ## 3.2.0
570
+
571
+ ### Minor Changes
572
+
573
+ - ec1962c: Enable passthrough OAuth paramters from UI configuration
574
+
575
+ ### Patch Changes
576
+
577
+ - Updated dependencies [ec1962c]
578
+ - @stytch/core@1.4.0
579
+
580
+ ## 3.1.1
581
+
582
+ ### Patch Changes
583
+
584
+ - 8fa9aeb: fix: AbortController Logic Passkey Authenticate
585
+
586
+ ## 3.1.0
587
+
588
+ ### Minor Changes
589
+
590
+ - 8cff174: B2C Passkeys Headless Support & UI components
591
+
592
+ ### Patch Changes
593
+
594
+ - Updated dependencies [8cff174]
595
+ - @stytch/core@1.3.0
596
+
597
+ ## 3.0.3
598
+
599
+ ### Patch Changes
600
+
601
+ - 965680c: Remove PasswordEMLCombinedDiscovery
602
+ - 32ed73a: Resolved a critical severity vulnerability with the @babel/traverse dependency
603
+ - Updated dependencies [ecef75b]
604
+ - Updated dependencies [2b9ed9c]
605
+ - Updated dependencies [32ed73a]
606
+ - @stytch/core@1.2.3
607
+
608
+ ## 3.0.2
609
+
610
+ ### Patch Changes
611
+
612
+ - 8c587e3: Update B2B Password Reset by Session to stay logged in
613
+ - 70475b5: remove unnecessary organization_id param from passwords.resetBySession in B2B client
614
+ - 5d13cfe: Minor copy change on the B2B Passwords UI component
615
+ - Updated dependencies [70475b5]
616
+ - Updated dependencies [311388d]
617
+ - @stytch/core@1.2.2
618
+
619
+ ## 3.0.1
620
+
621
+ ### Patch Changes
622
+
623
+ - b402097: Bug fix for clearing the local storage state and cookies when a stale session exists while using the SDK across subdomains
624
+
625
+ ## 3.0.0
626
+
627
+ ### Major Changes
628
+
629
+ - 5dd9d24: Change export of B2B Headless Client to separate subpackage to improve tree-shaking performance
630
+
631
+ ```javascript
632
+ import { StytchB2BHeadlessClient } from '@stytch/vanilla-js/b2b';
633
+ ```
634
+
635
+ Is now updated to
636
+
637
+ ```javascript
638
+ import { StytchB2BHeadlessClient } from '@stytch/vanilla-js/b2b/headless';
639
+ ```
640
+
641
+ ## 2.2.2
642
+
643
+ ### Patch Changes
644
+
645
+ - 3c4fa89: Don't delete cookies from datalayer, let SubscriptionService handle instead.
646
+
647
+ ## 2.2.1
648
+
649
+ ### Patch Changes
650
+
651
+ - Updated dependencies [04cec1b]
652
+ - @stytch/core@1.2.1
653
+
654
+ ## 2.2.0
655
+
656
+ ### Minor Changes
657
+
658
+ - 7c1940e: Add DFP Protectd Auth JS final release
659
+
660
+ ### Patch Changes
661
+
662
+ - 47eb388: Add Device Fingerprinting to the React Native SDK
663
+ - d008ef5: Don't delete cookies from the datalayer just because the localstorage is empty
664
+ - 47eb388: Add support for Observation and decisioning mode for DFP
665
+ - Updated dependencies [47eb388]
666
+ - Updated dependencies [47eb388]
667
+ - Updated dependencies [7c1940e]
668
+ - @stytch/core@1.2.0
669
+
670
+ ## 2.1.1
671
+
672
+ ### Patch Changes
673
+
674
+ - Updated dependencies [ab22732]
675
+ - @stytch/core@1.1.1
676
+
677
+ ## 2.1.0
678
+
679
+ ### Minor Changes
680
+
681
+ - 67d42f0: Add Device Fingerprinting Bot Detection to SDKs
682
+
683
+ ### Patch Changes
684
+
685
+ - Updated dependencies [67d42f0]
686
+ - Updated dependencies [42bf09d]
687
+ - Updated dependencies [a07cf3a]
688
+ - @stytch/core@1.1.0
689
+
690
+ ## 2.0.5
691
+
692
+ ### Patch Changes
693
+
694
+ - 81c47aa: Add new option to confiugre domain cookie should be set to
695
+ - 0bac513: Fixed a display bug on host websites modifying box-sizing
696
+ - 8066f95: fix bug with alignment of PhoneInput
697
+ - Updated dependencies [81c47aa]
698
+ - @stytch/core@1.0.1
699
+
700
+ ## 2.0.4
701
+
702
+ ### Patch Changes
703
+
704
+ - 2b8f0e6: Fix PKCE logic for password resets log in without password flow
705
+ - Updated dependencies [2b8f0e6]
706
+ - @stytch/core@1.0.0
707
+
708
+ ## 2.0.3
709
+
710
+ ### Patch Changes
711
+
712
+ - 1b1ea1b: updateStateAndTokens call in resetBySession and resetExistingPassword
713
+ - 47cd46c: fix bug where password reset email for returning passwordless user is not sent
714
+ - Updated dependencies [1b1ea1b]
715
+ - @stytch/core@0.15.2
716
+
717
+ ## 2.0.2
718
+
719
+ ### Patch Changes
720
+
721
+ - 0a18c34: Add docs for new verified fields on Member objects, and fix some docs links
722
+ - Updated dependencies [0a18c34]
723
+ - @stytch/core@0.15.1
724
+
725
+ ## 2.0.1
726
+
727
+ ### Patch Changes
728
+
729
+ - 9fd5d96: Define behavior for when SSO is only allowed auth method during discovery
730
+
731
+ ## 2.0.0
732
+
733
+ ### Major Changes
734
+
735
+ - 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.
736
+
737
+ 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.
738
+
739
+ ### Patch Changes
740
+
741
+ - Updated dependencies [a4083c7]
742
+ - @stytch/core@0.15.0
743
+
744
+ ## 1.1.4
745
+
746
+ ### Patch Changes
747
+
748
+ - f3d8a3b: Updated UI to include error message for breached passwords. Added missing `breach_detection_on_create` key in the strength check response
749
+ - Updated dependencies [f3d8a3b]
750
+ - @stytch/core@0.14.4
751
+
752
+ ## 1.1.3
753
+
754
+ ### Patch Changes
755
+
756
+ - 83c017e: Updated types for the password strength method. Updated UI for the password strength check while using LUDS
757
+ - Updated dependencies [83c017e]
758
+ - @stytch/core@0.14.3
759
+
760
+ ## 1.1.2
761
+
762
+ ### Patch Changes
763
+
764
+ - 00eb1ce: Yahoo OAuth Fix (build)
765
+ - Updated dependencies [00eb1ce]
766
+ - @stytch/core@0.14.2
767
+
768
+ ## 1.1.1
769
+
770
+ ### Patch Changes
771
+
772
+ - e97e8ba: Yahoo OAuth
773
+ - Updated dependencies [e97e8ba]
774
+ - @stytch/core@0.14.1
775
+
776
+ ## 1.1.0
777
+
778
+ ### Minor Changes
779
+
780
+ - e7302d7: The intermediate session token will now be stored as a cookie after calls to the B2B magic link discovery authenticate endpoint and the OAuth discovery authenticate endpoint.
781
+
782
+ ### Patch Changes
783
+
784
+ - Updated dependencies [e7302d7]
785
+ - @stytch/core@0.14.0
786
+
787
+ ## 1.0.5
788
+
789
+ ### Patch Changes
790
+
791
+ - d847d9d: Added new OAuth Providers
792
+ - Updated dependencies [d847d9d]
793
+ - @stytch/core@0.13.5
794
+
795
+ ## 1.0.4
796
+
797
+ ### Patch Changes
798
+
799
+ - Updated dependencies [2443028]
800
+ - @stytch/core@0.13.4
801
+
802
+ ## 1.0.3
803
+
804
+ ### Patch Changes
805
+
806
+ - a8eac13: Update input type and mode for OTPs
807
+
808
+ ## 1.0.2
809
+
810
+ ### Patch Changes
811
+
812
+ - 89237c6: Fix a bug where Floating One Tap stays around after StytchLogin unmounts.
813
+
814
+ ## 1.0.1
815
+
816
+ ### Patch Changes
817
+
818
+ - 22503eb: Exposes API errors to the UI when attempting to create a new password instead of logging in with a passwordless method
819
+
820
+ ## 1.0.0
821
+
822
+ ### Major Changes
823
+
824
+ - f9c36c9: An additional configuration property to let developers render the Stytch SDK UI through the Shadow DOM. This is a major version change on the `@stytch/vanilla-js` package as the previous versions would render the UI through the Shadow DOM by default. It will now default to false. When the Shadow DOM is disabled, this also fixes an issue with the SDK UI to allow for emails and passwords to be auto-filled, along with support for browser password managers.
825
+
826
+ ### Patch Changes
827
+
828
+ - Updated dependencies [f9c36c9]
829
+ - @stytch/core@0.13.3
830
+
831
+ ## 0.14.5
832
+
833
+ ### Patch Changes
834
+
835
+ - 9cfc339: update the consumer password flow to not let users change their email while signing up or logging in with their password
836
+ - 55dcfdb: Add B2B OAuth
837
+ - 84fd502: B2B OAuth UI
838
+ - Updated dependencies [55dcfdb]
839
+ - Updated dependencies [84fd502]
840
+ - @stytch/core@0.13.2
841
+
842
+ ## 0.14.4
843
+
844
+ ### Patch Changes
845
+
846
+ - cf3094c: Fixes a bug with autocomplete in email fields on mobile.
847
+
848
+ ## 0.14.3
849
+
850
+ ### Patch Changes
851
+
852
+ - 0a626d1: bug fix for the B2B SDK UI: only showing the allowed auth methods when an organization has restricted auth methods
853
+ - Updated dependencies [0a626d1]
854
+ - @stytch/core@0.13.1
855
+
856
+ ## 0.14.2
857
+
858
+ ### Patch Changes
859
+
860
+ - Updated dependencies [91c0ee1]
861
+ - @stytch/core@0.13.0
862
+
863
+ ## 0.14.1
864
+
865
+ ### Patch Changes
866
+
867
+ - Updated dependencies [1f54b59]
868
+ - Updated dependencies [459b8e5]
869
+ - @stytch/core@0.12.1
870
+
871
+ ## 0.14.0
872
+
873
+ ### Minor Changes
874
+
875
+ - c8e2d0b: B2B Passwords UI components
876
+
877
+ ### Patch Changes
878
+
879
+ - Updated dependencies [c8e2d0b]
880
+ - @stytch/core@0.12.0
881
+
882
+ ## 0.13.4
883
+
884
+ ### Patch Changes
885
+
886
+ - 0d80d2e: Fix for the onEvent callback while creating a new organization in the B2B SDK UI. Missing export for the nextjs B2B package
887
+
888
+ ## 0.13.3
889
+
890
+ ### Patch Changes
891
+
892
+ - 26debeb: Fix support for the Passwords UI flow when developers have enabled LUDS in their passwords strength check config
893
+
894
+ ## 0.13.2
895
+
896
+ ### Patch Changes
897
+
898
+ - Updated dependencies [e1fd555]
899
+ - Updated dependencies [b1ac8be]
900
+ - Updated dependencies [1309266]
901
+ - @stytch/core@0.11.1
902
+
903
+ ## 0.13.1
904
+
905
+ ### Patch Changes
906
+
907
+ - 5edfad8: Fixed a bug in the Consumer UI component while trying to click on the "Login without a password" button on the Forgot Password screen
908
+ - 2c1c40b: Fixes for minor styling issues in our consumer SDK UI components
909
+
910
+ ## 0.13.0
911
+
912
+ ### Minor Changes
913
+
914
+ - 15dbe7d: Releasing UI components for our B2B SDKs.
915
+
916
+ ### Patch Changes
917
+
918
+ - Updated dependencies [15dbe7d]
919
+ - @stytch/core@0.11.0
920
+
921
+ ## 0.12.1
922
+
923
+ ### Patch Changes
924
+
925
+ - 8d68904: Allow for empty strings in token/JWT
926
+ - Updated dependencies [8d68904]
927
+ - @stytch/core@0.10.1
928
+
929
+ ## 0.12.0
930
+
931
+ ### Minor Changes
932
+
933
+ - dde1f2a: Add B2B Passwords headless client
934
+
935
+ ### Patch Changes
936
+
937
+ - 6a27584: Make organization name and slug optional for discovery organization create
938
+ - Updated dependencies [dde1f2a]
939
+ - Updated dependencies [6a27584]
940
+ - @stytch/core@0.10.0
941
+
942
+ ## 0.11.4
943
+
944
+ ### Patch Changes
945
+
946
+ - Updated dependencies [c1a312c]
947
+ - @stytch/core@0.9.0
948
+
949
+ ## 0.11.3
950
+
951
+ ### Patch Changes
952
+
953
+ - 79ca7ba: Add locale argument to B2B email magic link methods
954
+ - Updated dependencies [79ca7ba]
955
+ - @stytch/core@0.8.2
956
+
957
+ ## 0.11.2
958
+
959
+ ### Patch Changes
960
+
961
+ - c924765: Include the b2b directory in package.json for the B2B SDK entrypoint
962
+
963
+ ## 0.11.1
964
+
965
+ ### Patch Changes
966
+
967
+ - 8e01eef: Fixes for bugs in the session logic when users are logged into multiple tabs
968
+ - b55bc55: Add Session.updateSession to hydrate sessions from the backend
969
+ - Updated dependencies [8e01eef]
970
+ - Updated dependencies [b55bc55]
971
+ - @stytch/core@0.8.1
972
+
973
+ ## 0.11.0
974
+
975
+ ### Minor Changes
976
+
977
+ - c0e42bc: Add B2B Discovery headless client and session exchange method
978
+
979
+ ### Patch Changes
980
+
981
+ - Updated dependencies [c0e42bc]
982
+ - @stytch/core@0.8.0
983
+
984
+ ## 0.10.10
985
+
986
+ ### Patch Changes
987
+
988
+ - abfb9aa: Adding logic to ensure there is only a single session cookie when the availableToSubdomains boolean is flipped
989
+
990
+ ## 0.10.9
991
+
992
+ ### Patch Changes
993
+
994
+ - Updated dependencies
995
+ - @stytch/core@0.7.7
996
+
997
+ ## 0.10.8
998
+
999
+ ### Patch Changes
1000
+
1001
+ - Updated dependencies [8ad1ec9]
1002
+ - @stytch/core@0.7.6
1003
+
1004
+ ## 0.10.7
1005
+
1006
+ ### Patch Changes
1007
+
1008
+ - 1652706: Fix session/user persisting after logging out
1009
+ - Updated dependencies [1652706]
1010
+ - @stytch/core@0.7.5
1011
+
1012
+ ## 0.10.6
1013
+
1014
+ ### Patch Changes
1015
+
1016
+ - ca5a31d: SDK-877 Fix session/user persisting after logging out
1017
+ - Updated dependencies [36c8114]
1018
+ - Updated dependencies [ca5a31d]
1019
+ - @stytch/core@0.7.4
1020
+
1021
+ ## 0.10.5
1022
+
1023
+ ### Patch Changes
1024
+
1025
+ - Updated dependencies [c6db664]
1026
+ - Updated dependencies [21e88af]
1027
+ - Updated dependencies [3f1f1ea]
1028
+ - @stytch/core@0.7.3
1029
+
1030
+ ## 0.10.4
1031
+
1032
+ ### Patch Changes
1033
+
1034
+ - e20ea7a: Added Google One Tap to the Headless OAuth Client
1035
+
1036
+ ## 0.10.3
1037
+
1038
+ ### Patch Changes
1039
+
1040
+ - Updated dependencies [bf518f8]
1041
+ - @stytch/core@0.7.2
1042
+
1043
+ ## 0.10.2
1044
+
1045
+ ### Patch Changes
1046
+
1047
+ - f1810c4: Add React Native OAuth callback, PKCE fix
1048
+ - Updated dependencies [f1810c4]
1049
+ - @stytch/core@0.7.1
1050
+
1051
+ ## 0.10.1
1052
+
1053
+ ### Patch Changes
1054
+
1055
+ - UI bugfixes
1056
+
1057
+ ## 0.10.0
1058
+
1059
+ ### Minor Changes
1060
+
1061
+ - Launching B2B SDKs
1062
+
1063
+ ### Patch Changes
1064
+
1065
+ - Updated dependencies
1066
+ - @stytch/core@0.7.0
1067
+
1068
+ ## 0.9.5
1069
+
1070
+ ### Patch Changes
1071
+
1072
+ - Updated dependencies
1073
+ - @stytch/core@0.6.1
1074
+
1075
+ ## 0.9.4
1076
+
1077
+ ### Patch Changes
1078
+
1079
+ - Updated dependencies
1080
+ - @stytch/core@0.6.0
1081
+
1082
+ ## 0.9.3
1083
+
1084
+ ### Patch Changes
1085
+
1086
+ - Fix cookie options
1087
+
1088
+ ## 0.9.2
1089
+
1090
+ ### Patch Changes
1091
+
1092
+ - Release Stytch Client Options
1093
+ - Updated dependencies
1094
+ - @stytch/core@0.5.1
1095
+
1096
+ ## 0.9.1
1097
+
1098
+ ### Patch Changes
1099
+
1100
+ - Fix one tap floating bug
1101
+
1102
+ ## 0.9.0
1103
+
1104
+ ### Minor Changes
1105
+
1106
+ - Fix Google One Tap
1107
+
1108
+ ## 0.6.0
1109
+
1110
+ ### Minor Changes
1111
+
1112
+ - 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
1113
+
1114
+ ### Patch Changes
1115
+
1116
+ - ac0cf89: Bold email on confirmation screen
1117
+ - Updated dependencies
1118
+ - @stytch/core@0.5.0
1119
+
1120
+ ## 0.5.5
1121
+
1122
+ ### Patch Changes
1123
+
1124
+ - Fix bug with PKCE code verifiers being shared over multiple methods
1125
+
1126
+ ## 0.5.4
1127
+
1128
+ ### Patch Changes
1129
+
1130
+ - Updated dependencies
1131
+ - @stytch/core@0.4.9
1132
+
1133
+ ## 0.5.3
1134
+
1135
+ ### Patch Changes
1136
+
1137
+ - Updated dependencies
1138
+ - @stytch/core@0.4.7
1139
+
1140
+ ## 0.5.2
1141
+
1142
+ ### Patch Changes
1143
+
1144
+ - Updated dependencies
1145
+ - @stytch/core@0.4.6
1146
+
1147
+ ## 0.5.1
1148
+
1149
+ ### Patch Changes
1150
+
1151
+ - Fix bug with divider not showing for passwords
1152
+ - Updated dependencies [b68343c]
1153
+ - @stytch/core@0.4.5
1154
+
1155
+ ## 0.5.0
1156
+
1157
+ ### Minor Changes
1158
+
1159
+ - new styling config
1160
+
1161
+ ### Patch Changes
1162
+
1163
+ - 422c698: Add type definitions for User Metadata fields
1164
+ - Updated dependencies [422c698]
1165
+ - Updated dependencies
1166
+ - @stytch/core@0.4.4
1167
+
1168
+ ## 0.4.6
1169
+
1170
+ ### Patch Changes
1171
+
1172
+ - Add support for custom email domains in magic link confirmation screen
1173
+ - Updated dependencies
1174
+ - @stytch/core@0.4.3
1175
+
1176
+ ## 0.4.5
1177
+
1178
+ ### Patch Changes
1179
+
1180
+ - Google one tap animation
1181
+
1182
+ ## 0.4.4
1183
+
1184
+ ### Patch Changes
1185
+
1186
+ - Send methods in the SDK
1187
+ - Updated dependencies
1188
+ - @stytch/core@0.4.2