@thunderid/vue 0.0.1

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 (306) hide show
  1. package/LICENSE +201 -0
  2. package/dist/ThunderIDVueClient.d.ts +65 -0
  3. package/dist/ThunderIDVueClient.d.ts.map +1 -0
  4. package/dist/__temp__/api.d.ts +64 -0
  5. package/dist/__temp__/api.d.ts.map +1 -0
  6. package/dist/__temp__/models.d.ts +44 -0
  7. package/dist/__temp__/models.d.ts.map +1 -0
  8. package/dist/api/getAllOrganizations.d.ts +25 -0
  9. package/dist/api/getAllOrganizations.d.ts.map +1 -0
  10. package/dist/api/getMeOrganizations.d.ts +25 -0
  11. package/dist/api/getMeOrganizations.d.ts.map +1 -0
  12. package/dist/api/getSchemas.d.ts +25 -0
  13. package/dist/api/getSchemas.d.ts.map +1 -0
  14. package/dist/api/getScim2Me.d.ts +25 -0
  15. package/dist/api/getScim2Me.d.ts.map +1 -0
  16. package/dist/api/updateMeProfile.d.ts +25 -0
  17. package/dist/api/updateMeProfile.d.ts.map +1 -0
  18. package/dist/cjs/index.cjs +13392 -0
  19. package/dist/components/actions/BaseSignInButton.d.ts +35 -0
  20. package/dist/components/actions/BaseSignInButton.d.ts.map +1 -0
  21. package/dist/components/actions/BaseSignOutButton.d.ts +35 -0
  22. package/dist/components/actions/BaseSignOutButton.d.ts.map +1 -0
  23. package/dist/components/actions/BaseSignUpButton.d.ts +35 -0
  24. package/dist/components/actions/BaseSignUpButton.d.ts.map +1 -0
  25. package/dist/components/actions/SignInButton.d.ts +27 -0
  26. package/dist/components/actions/SignInButton.d.ts.map +1 -0
  27. package/dist/components/actions/SignOutButton.d.ts +24 -0
  28. package/dist/components/actions/SignOutButton.d.ts.map +1 -0
  29. package/dist/components/actions/SignUpButton.d.ts +27 -0
  30. package/dist/components/actions/SignUpButton.d.ts.map +1 -0
  31. package/dist/components/adapters/FacebookButton.d.ts +25 -0
  32. package/dist/components/adapters/FacebookButton.d.ts.map +1 -0
  33. package/dist/components/adapters/GitHubButton.d.ts +25 -0
  34. package/dist/components/adapters/GitHubButton.d.ts.map +1 -0
  35. package/dist/components/adapters/GoogleButton.d.ts +25 -0
  36. package/dist/components/adapters/GoogleButton.d.ts.map +1 -0
  37. package/dist/components/adapters/MicrosoftButton.d.ts +25 -0
  38. package/dist/components/adapters/MicrosoftButton.d.ts.map +1 -0
  39. package/dist/components/auth/Callback.d.ts +32 -0
  40. package/dist/components/auth/Callback.d.ts.map +1 -0
  41. package/dist/components/auth/sign-in/AuthOptionFactory.d.ts +19 -0
  42. package/dist/components/auth/sign-in/AuthOptionFactory.d.ts.map +1 -0
  43. package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts +69 -0
  44. package/dist/components/auth/sign-in/AuthOptionFactoryCore.d.ts.map +1 -0
  45. package/dist/components/auth/sign-in/BaseSignIn.d.ts +28 -0
  46. package/dist/components/auth/sign-in/BaseSignIn.d.ts.map +1 -0
  47. package/dist/components/auth/sign-in/SignIn.d.ts +28 -0
  48. package/dist/components/auth/sign-in/SignIn.d.ts.map +1 -0
  49. package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts +27 -0
  50. package/dist/components/auth/sign-in/v1/BaseSignIn.d.ts.map +1 -0
  51. package/dist/components/auth/sign-in/v1/SignIn.d.ts +27 -0
  52. package/dist/components/auth/sign-in/v1/SignIn.d.ts.map +1 -0
  53. package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts +47 -0
  54. package/dist/components/auth/sign-in/v1/options/SignInOptionFactory.d.ts.map +1 -0
  55. package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts +19 -0
  56. package/dist/components/auth/sign-in/v2/AuthOptionFactory.d.ts.map +1 -0
  57. package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts +83 -0
  58. package/dist/components/auth/sign-in/v2/BaseSignIn.d.ts.map +1 -0
  59. package/dist/components/auth/sign-in/v2/SignIn.d.ts +56 -0
  60. package/dist/components/auth/sign-in/v2/SignIn.d.ts.map +1 -0
  61. package/dist/components/auth/sign-up/BaseSignUp.d.ts +33 -0
  62. package/dist/components/auth/sign-up/BaseSignUp.d.ts.map +1 -0
  63. package/dist/components/auth/sign-up/SignUp.d.ts +29 -0
  64. package/dist/components/auth/sign-up/SignUp.d.ts.map +1 -0
  65. package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts +49 -0
  66. package/dist/components/auth/sign-up/v1/BaseSignUp.d.ts.map +1 -0
  67. package/dist/components/auth/sign-up/v1/SignUp.d.ts +31 -0
  68. package/dist/components/auth/sign-up/v1/SignUp.d.ts.map +1 -0
  69. package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts +50 -0
  70. package/dist/components/auth/sign-up/v1/options/SignUpOptionFactory.d.ts.map +1 -0
  71. package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts +73 -0
  72. package/dist/components/auth/sign-up/v2/BaseSignUp.d.ts.map +1 -0
  73. package/dist/components/auth/sign-up/v2/SignUp.d.ts +26 -0
  74. package/dist/components/auth/sign-up/v2/SignUp.d.ts.map +1 -0
  75. package/dist/components/control/Loading.d.ts +34 -0
  76. package/dist/components/control/Loading.d.ts.map +1 -0
  77. package/dist/components/control/SignedIn.d.ts +34 -0
  78. package/dist/components/control/SignedIn.d.ts.map +1 -0
  79. package/dist/components/control/SignedOut.d.ts +34 -0
  80. package/dist/components/control/SignedOut.d.ts.map +1 -0
  81. package/dist/components/factories/FieldFactory.d.ts +52 -0
  82. package/dist/components/factories/FieldFactory.d.ts.map +1 -0
  83. package/dist/components/presentation/accept-invite/AcceptInvite.d.ts +29 -0
  84. package/dist/components/presentation/accept-invite/AcceptInvite.d.ts.map +1 -0
  85. package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts +83 -0
  86. package/dist/components/presentation/accept-invite/BaseAcceptInvite.d.ts.map +1 -0
  87. package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts +26 -0
  88. package/dist/components/presentation/create-organization/BaseCreateOrganization.d.ts.map +1 -0
  89. package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts +35 -0
  90. package/dist/components/presentation/create-organization/CreateOrganization.css.d.ts.map +1 -0
  91. package/dist/components/presentation/create-organization/CreateOrganization.d.ts +26 -0
  92. package/dist/components/presentation/create-organization/CreateOrganization.d.ts.map +1 -0
  93. package/dist/components/presentation/invite-user/BaseInviteUser.d.ts +81 -0
  94. package/dist/components/presentation/invite-user/BaseInviteUser.d.ts.map +1 -0
  95. package/dist/components/presentation/invite-user/InviteUser.d.ts +26 -0
  96. package/dist/components/presentation/invite-user/InviteUser.d.ts.map +1 -0
  97. package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts +26 -0
  98. package/dist/components/presentation/language-switcher/BaseLanguageSwitcher.d.ts.map +1 -0
  99. package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts +37 -0
  100. package/dist/components/presentation/language-switcher/LanguageSwitcher.css.d.ts.map +1 -0
  101. package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts +26 -0
  102. package/dist/components/presentation/language-switcher/LanguageSwitcher.d.ts.map +1 -0
  103. package/dist/components/presentation/organization/Organization.d.ts +39 -0
  104. package/dist/components/presentation/organization/Organization.d.ts.map +1 -0
  105. package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts +24 -0
  106. package/dist/components/presentation/organization-list/BaseOrganizationList.d.ts.map +1 -0
  107. package/dist/components/presentation/organization-list/OrganizationList.css.d.ts +33 -0
  108. package/dist/components/presentation/organization-list/OrganizationList.css.d.ts.map +1 -0
  109. package/dist/components/presentation/organization-list/OrganizationList.d.ts +26 -0
  110. package/dist/components/presentation/organization-list/OrganizationList.d.ts.map +1 -0
  111. package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts +27 -0
  112. package/dist/components/presentation/organization-profile/BaseOrganizationProfile.d.ts.map +1 -0
  113. package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts +25 -0
  114. package/dist/components/presentation/organization-profile/OrganizationProfile.css.d.ts.map +1 -0
  115. package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts +26 -0
  116. package/dist/components/presentation/organization-profile/OrganizationProfile.d.ts.map +1 -0
  117. package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts +26 -0
  118. package/dist/components/presentation/organization-switcher/BaseOrganizationSwitcher.d.ts.map +1 -0
  119. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts +40 -0
  120. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.css.d.ts.map +1 -0
  121. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts +26 -0
  122. package/dist/components/presentation/organization-switcher/OrganizationSwitcher.d.ts.map +1 -0
  123. package/dist/components/presentation/user/User.d.ts +39 -0
  124. package/dist/components/presentation/user/User.d.ts.map +1 -0
  125. package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts +59 -0
  126. package/dist/components/presentation/user-dropdown/BaseUserDropdown.d.ts.map +1 -0
  127. package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts +46 -0
  128. package/dist/components/presentation/user-dropdown/UserDropdown.css.d.ts.map +1 -0
  129. package/dist/components/presentation/user-dropdown/UserDropdown.d.ts +44 -0
  130. package/dist/components/presentation/user-dropdown/UserDropdown.d.ts.map +1 -0
  131. package/dist/components/presentation/user-profile/BaseUserProfile.d.ts +40 -0
  132. package/dist/components/presentation/user-profile/BaseUserProfile.d.ts.map +1 -0
  133. package/dist/components/presentation/user-profile/UserProfile.css.d.ts +34 -0
  134. package/dist/components/presentation/user-profile/UserProfile.css.d.ts.map +1 -0
  135. package/dist/components/presentation/user-profile/UserProfile.d.ts +21 -0
  136. package/dist/components/presentation/user-profile/UserProfile.d.ts.map +1 -0
  137. package/dist/components/primitives/Alert/Alert.css.d.ts +31 -0
  138. package/dist/components/primitives/Alert/Alert.css.d.ts.map +1 -0
  139. package/dist/components/primitives/Alert/Alert.d.ts +21 -0
  140. package/dist/components/primitives/Alert/Alert.d.ts.map +1 -0
  141. package/dist/components/primitives/Alert/index.d.ts +19 -0
  142. package/dist/components/primitives/Alert/index.d.ts.map +1 -0
  143. package/dist/components/primitives/Button/Button.css.d.ts +37 -0
  144. package/dist/components/primitives/Button/Button.css.d.ts.map +1 -0
  145. package/dist/components/primitives/Button/Button.d.ts +21 -0
  146. package/dist/components/primitives/Button/Button.d.ts.map +1 -0
  147. package/dist/components/primitives/Button/index.d.ts +19 -0
  148. package/dist/components/primitives/Button/index.d.ts.map +1 -0
  149. package/dist/components/primitives/Card/Card.css.d.ts +30 -0
  150. package/dist/components/primitives/Card/Card.css.d.ts.map +1 -0
  151. package/dist/components/primitives/Card/Card.d.ts +21 -0
  152. package/dist/components/primitives/Card/Card.d.ts.map +1 -0
  153. package/dist/components/primitives/Card/index.d.ts +19 -0
  154. package/dist/components/primitives/Card/index.d.ts.map +1 -0
  155. package/dist/components/primitives/Checkbox/Checkbox.css.d.ts +31 -0
  156. package/dist/components/primitives/Checkbox/Checkbox.css.d.ts.map +1 -0
  157. package/dist/components/primitives/Checkbox/Checkbox.d.ts +21 -0
  158. package/dist/components/primitives/Checkbox/Checkbox.d.ts.map +1 -0
  159. package/dist/components/primitives/Checkbox/index.d.ts +19 -0
  160. package/dist/components/primitives/Checkbox/index.d.ts.map +1 -0
  161. package/dist/components/primitives/DatePicker/DatePicker.css.d.ts +31 -0
  162. package/dist/components/primitives/DatePicker/DatePicker.css.d.ts.map +1 -0
  163. package/dist/components/primitives/DatePicker/DatePicker.d.ts +21 -0
  164. package/dist/components/primitives/DatePicker/DatePicker.d.ts.map +1 -0
  165. package/dist/components/primitives/DatePicker/index.d.ts +19 -0
  166. package/dist/components/primitives/DatePicker/index.d.ts.map +1 -0
  167. package/dist/components/primitives/Divider/Divider.css.d.ts +33 -0
  168. package/dist/components/primitives/Divider/Divider.css.d.ts.map +1 -0
  169. package/dist/components/primitives/Divider/Divider.d.ts +21 -0
  170. package/dist/components/primitives/Divider/Divider.d.ts.map +1 -0
  171. package/dist/components/primitives/Divider/index.d.ts +19 -0
  172. package/dist/components/primitives/Divider/index.d.ts.map +1 -0
  173. package/dist/components/primitives/Icons.d.ts +35 -0
  174. package/dist/components/primitives/Icons.d.ts.map +1 -0
  175. package/dist/components/primitives/Logo/Logo.css.d.ts +28 -0
  176. package/dist/components/primitives/Logo/Logo.css.d.ts.map +1 -0
  177. package/dist/components/primitives/Logo/Logo.d.ts +21 -0
  178. package/dist/components/primitives/Logo/Logo.d.ts.map +1 -0
  179. package/dist/components/primitives/Logo/index.d.ts +19 -0
  180. package/dist/components/primitives/Logo/index.d.ts.map +1 -0
  181. package/dist/components/primitives/OtpField/OtpField.css.d.ts +28 -0
  182. package/dist/components/primitives/OtpField/OtpField.css.d.ts.map +1 -0
  183. package/dist/components/primitives/OtpField/OtpField.d.ts +21 -0
  184. package/dist/components/primitives/OtpField/OtpField.d.ts.map +1 -0
  185. package/dist/components/primitives/OtpField/index.d.ts +19 -0
  186. package/dist/components/primitives/OtpField/index.d.ts.map +1 -0
  187. package/dist/components/primitives/PasswordField/PasswordField.css.d.ts +31 -0
  188. package/dist/components/primitives/PasswordField/PasswordField.css.d.ts.map +1 -0
  189. package/dist/components/primitives/PasswordField/PasswordField.d.ts +21 -0
  190. package/dist/components/primitives/PasswordField/PasswordField.d.ts.map +1 -0
  191. package/dist/components/primitives/PasswordField/index.d.ts +19 -0
  192. package/dist/components/primitives/PasswordField/index.d.ts.map +1 -0
  193. package/dist/components/primitives/Select/Select.css.d.ts +31 -0
  194. package/dist/components/primitives/Select/Select.css.d.ts.map +1 -0
  195. package/dist/components/primitives/Select/Select.d.ts +26 -0
  196. package/dist/components/primitives/Select/Select.d.ts.map +1 -0
  197. package/dist/components/primitives/Select/index.d.ts +19 -0
  198. package/dist/components/primitives/Select/index.d.ts.map +1 -0
  199. package/dist/components/primitives/Spinner/Spinner.css.d.ts +34 -0
  200. package/dist/components/primitives/Spinner/Spinner.css.d.ts.map +1 -0
  201. package/dist/components/primitives/Spinner/Spinner.d.ts +21 -0
  202. package/dist/components/primitives/Spinner/Spinner.d.ts.map +1 -0
  203. package/dist/components/primitives/Spinner/index.d.ts +19 -0
  204. package/dist/components/primitives/Spinner/index.d.ts.map +1 -0
  205. package/dist/components/primitives/TextField/TextField.css.d.ts +31 -0
  206. package/dist/components/primitives/TextField/TextField.css.d.ts.map +1 -0
  207. package/dist/components/primitives/TextField/TextField.d.ts +21 -0
  208. package/dist/components/primitives/TextField/TextField.d.ts.map +1 -0
  209. package/dist/components/primitives/TextField/index.d.ts +19 -0
  210. package/dist/components/primitives/TextField/index.d.ts.map +1 -0
  211. package/dist/components/primitives/Typography/Typography.css.d.ts +31 -0
  212. package/dist/components/primitives/Typography/Typography.css.d.ts.map +1 -0
  213. package/dist/components/primitives/Typography/Typography.d.ts +21 -0
  214. package/dist/components/primitives/Typography/Typography.d.ts.map +1 -0
  215. package/dist/components/primitives/Typography/index.d.ts +19 -0
  216. package/dist/components/primitives/Typography/index.d.ts.map +1 -0
  217. package/dist/composables/useBranding.d.ts +44 -0
  218. package/dist/composables/useBranding.d.ts.map +1 -0
  219. package/dist/composables/useFlow.d.ts +46 -0
  220. package/dist/composables/useFlow.d.ts.map +1 -0
  221. package/dist/composables/useFlowMeta.d.ts +42 -0
  222. package/dist/composables/useFlowMeta.d.ts.map +1 -0
  223. package/dist/composables/useI18n.d.ts +46 -0
  224. package/dist/composables/useI18n.d.ts.map +1 -0
  225. package/dist/composables/useOAuthCallback.d.ts +66 -0
  226. package/dist/composables/useOAuthCallback.d.ts.map +1 -0
  227. package/dist/composables/useOrganization.d.ts +42 -0
  228. package/dist/composables/useOrganization.d.ts.map +1 -0
  229. package/dist/composables/useTheme.d.ts +44 -0
  230. package/dist/composables/useTheme.d.ts.map +1 -0
  231. package/dist/composables/useThunderID.d.ts +49 -0
  232. package/dist/composables/useThunderID.d.ts.map +1 -0
  233. package/dist/composables/useUser.d.ts +45 -0
  234. package/dist/composables/useUser.d.ts.map +1 -0
  235. package/dist/composables/v2/useOAuthCallback.d.ts +70 -0
  236. package/dist/composables/v2/useOAuthCallback.d.ts.map +1 -0
  237. package/dist/index.d.ts +124 -0
  238. package/dist/index.d.ts.map +1 -0
  239. package/dist/index.js +13168 -0
  240. package/dist/keys.d.ts +52 -0
  241. package/dist/keys.d.ts.map +1 -0
  242. package/dist/models/config.d.ts +20 -0
  243. package/dist/models/config.d.ts.map +1 -0
  244. package/dist/models/contexts.d.ts +246 -0
  245. package/dist/models/contexts.d.ts.map +1 -0
  246. package/dist/plugins/ThunderIDPlugin.d.ts +72 -0
  247. package/dist/plugins/ThunderIDPlugin.d.ts.map +1 -0
  248. package/dist/providers/BrandingProvider.d.ts +30 -0
  249. package/dist/providers/BrandingProvider.d.ts.map +1 -0
  250. package/dist/providers/FlowMetaProvider.d.ts +21 -0
  251. package/dist/providers/FlowMetaProvider.d.ts.map +1 -0
  252. package/dist/providers/FlowProvider.d.ts +21 -0
  253. package/dist/providers/FlowProvider.d.ts.map +1 -0
  254. package/dist/providers/I18nProvider.d.ts +21 -0
  255. package/dist/providers/I18nProvider.d.ts.map +1 -0
  256. package/dist/providers/OrganizationProvider.d.ts +21 -0
  257. package/dist/providers/OrganizationProvider.d.ts.map +1 -0
  258. package/dist/providers/ThemeProvider.d.ts +21 -0
  259. package/dist/providers/ThemeProvider.d.ts.map +1 -0
  260. package/dist/providers/ThunderIDProvider.d.ts +36 -0
  261. package/dist/providers/ThunderIDProvider.d.ts.map +1 -0
  262. package/dist/providers/UserProvider.d.ts +21 -0
  263. package/dist/providers/UserProvider.d.ts.map +1 -0
  264. package/dist/router/callbackRoute.d.ts +88 -0
  265. package/dist/router/callbackRoute.d.ts.map +1 -0
  266. package/dist/router/guard.d.ts +97 -0
  267. package/dist/router/guard.d.ts.map +1 -0
  268. package/dist/styles/animations.css.d.ts +29 -0
  269. package/dist/styles/animations.css.d.ts.map +1 -0
  270. package/dist/styles/defaults.css.d.ts +32 -0
  271. package/dist/styles/defaults.css.d.ts.map +1 -0
  272. package/dist/styles/injectStyles.d.ts +24 -0
  273. package/dist/styles/injectStyles.d.ts.map +1 -0
  274. package/dist/theme/getActiveTheme.d.ts +29 -0
  275. package/dist/theme/getActiveTheme.d.ts.map +1 -0
  276. package/dist/theme/themeDetection.d.ts +31 -0
  277. package/dist/theme/themeDetection.d.ts.map +1 -0
  278. package/dist/utils/getDisplayName.d.ts +21 -0
  279. package/dist/utils/getDisplayName.d.ts.map +1 -0
  280. package/dist/utils/getMappedUserProfileValue.d.ts +21 -0
  281. package/dist/utils/getMappedUserProfileValue.d.ts.map +1 -0
  282. package/dist/utils/handleWebAuthnAuthentication.d.ts +28 -0
  283. package/dist/utils/handleWebAuthnAuthentication.d.ts.map +1 -0
  284. package/dist/utils/hasAuthParamsInUrl.d.ts +27 -0
  285. package/dist/utils/hasAuthParamsInUrl.d.ts.map +1 -0
  286. package/dist/utils/http.d.ts +27 -0
  287. package/dist/utils/http.d.ts.map +1 -0
  288. package/dist/utils/logger.d.ts +31 -0
  289. package/dist/utils/logger.d.ts.map +1 -0
  290. package/dist/utils/navigate.d.ts +28 -0
  291. package/dist/utils/navigate.d.ts.map +1 -0
  292. package/dist/utils/oauth.d.ts +25 -0
  293. package/dist/utils/oauth.d.ts.map +1 -0
  294. package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts +29 -0
  295. package/dist/utils/v2/buildThemeConfigFromFlowMeta.d.ts.map +1 -0
  296. package/dist/utils/v2/flowTransformer.d.ts +97 -0
  297. package/dist/utils/v2/flowTransformer.d.ts.map +1 -0
  298. package/dist/utils/v2/getAuthComponentHeadings.d.ts +41 -0
  299. package/dist/utils/v2/getAuthComponentHeadings.d.ts.map +1 -0
  300. package/dist/utils/v2/passkey.d.ts +32 -0
  301. package/dist/utils/v2/passkey.d.ts.map +1 -0
  302. package/dist/utils/v2/resolveTranslationsInArray.d.ts +30 -0
  303. package/dist/utils/v2/resolveTranslationsInArray.d.ts.map +1 -0
  304. package/dist/utils/v2/resolveTranslationsInObject.d.ts +30 -0
  305. package/dist/utils/v2/resolveTranslationsInObject.d.ts.map +1 -0
  306. package/package.json +76 -0
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { FlowMetaTheme, RecursivePartial, ThemeConfig } from '@thunderid/browser';
19
+ /**
20
+ * Converts a v2 `FlowMetaTheme` into a `RecursivePartial<ThemeConfig>` that
21
+ * `createTheme` can consume.
22
+ *
23
+ * Only fields explicitly present in the FlowMeta response are included so that
24
+ * `createTheme` can deep-merge them onto its base (light/dark) defaults without
25
+ * accidentally dropping sibling keys that were not returned by the server.
26
+ */
27
+ declare const buildThemeConfigFromFlowMeta: (flowMetaTheme: FlowMetaTheme, colorScheme: "light" | "dark") => RecursivePartial<ThemeConfig>;
28
+ export default buildThemeConfigFromFlowMeta;
29
+ //# sourceMappingURL=buildThemeConfigFromFlowMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildThemeConfigFromFlowMeta.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/buildThemeConfigFromFlowMeta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,aAAa,EAA4B,gBAAgB,EAAE,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAE1G;;;;;;;GAOG;AACH,QAAA,MAAM,4BAA4B,GAChC,eAAe,aAAa,EAC5B,aAAa,OAAO,GAAG,MAAM,KAC5B,gBAAgB,CAAC,WAAW,CAkD9B,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ /**
19
+ * @fileoverview Shared flow response transformer utilities for v2 embedded flows.
20
+ *
21
+ * This module provides reusable transformation functions for normalizing embedded flow
22
+ * responses from ThunderID APIs. It handles both successful responses with component
23
+ * extraction and error responses with proper error message extraction.
24
+ *
25
+ * Key features:
26
+ * - Component extraction from flow meta structure
27
+ * - Translation string resolution in components
28
+ * - Error response detection and message extraction
29
+ * - Configurable error handling (throw vs return errors)
30
+ *
31
+ * Usage:
32
+ * ```typescript
33
+ * import { normalizeFlowResponse } from '../../../utils/v2/flowTransformer';
34
+ *
35
+ * const { executionId, components } = normalizeFlowResponse(apiResponse, t, {
36
+ * defaultErrorKey: 'components.signIn.errors.generic'
37
+ * });
38
+ * ```
39
+ *
40
+ * This transformer is used by both SignIn and SignUp v2 components to ensure
41
+ * consistent response handling across all embedded flows.
42
+ */
43
+ import { EmbeddedFlowComponentV2 as EmbeddedFlowComponent, FlowMetadataResponse } from '@thunderid/browser';
44
+ type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
45
+ /**
46
+ * Generic flow error response interface that covers common error structure
47
+ */
48
+ export interface FlowErrorResponse {
49
+ executionId: string;
50
+ failureReason?: string;
51
+ flowStatus: 'ERROR';
52
+ }
53
+ /**
54
+ * Configuration options for flow transformation
55
+ */
56
+ export interface FlowTransformOptions {
57
+ /**
58
+ * Default error message key for translation fallback
59
+ * @default 'errors.flow.generic'
60
+ */
61
+ defaultErrorKey?: string;
62
+ /**
63
+ * Whether to resolve translation strings or keep them as i18n keys
64
+ * @default true
65
+ */
66
+ resolveTranslations?: boolean;
67
+ /**
68
+ * Whether to throw errors or return them as normalized response
69
+ * @default true
70
+ */
71
+ throwOnError?: boolean;
72
+ }
73
+ /**
74
+ * Transform and resolve translations in components from flow response.
75
+ */
76
+ export declare const transformComponents: (response: any, t: TranslationFn, resolveTranslations?: boolean, meta?: FlowMetadataResponse | null) => EmbeddedFlowComponent[];
77
+ /**
78
+ * Extract error message from flow error response.
79
+ * Supports any flow error response that follows the standard structure.
80
+ * Prioritizes failureReason if present, otherwise falls back to translated generic message.
81
+ */
82
+ export declare const extractErrorMessage: (error: FlowErrorResponse | any, t: TranslationFn, defaultErrorKey?: string) => string;
83
+ /**
84
+ * Check if a response is an error response and extract the error message.
85
+ */
86
+ export declare const checkForErrorResponse: (response: any, t: TranslationFn, defaultErrorKey?: string) => string | null;
87
+ /**
88
+ * Generic flow response normalizer that handles both success and error responses.
89
+ * This is the main transformer function that should be used by all flow components.
90
+ */
91
+ export declare const normalizeFlowResponse: (response: any, t: TranslationFn, options?: FlowTransformOptions, meta?: FlowMetadataResponse | null) => {
92
+ additionalData: Record<string, any>;
93
+ components: EmbeddedFlowComponent[];
94
+ executionId: string;
95
+ };
96
+ export {};
97
+ //# sourceMappingURL=flowTransformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flowTransformer.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/flowTransformer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAG1G,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AA0FD;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,6BAA0B,EAC1B,OAAO,oBAAoB,GAAG,IAAI,KACjC,qBAAqB,EAgBvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,iBAAiB,GAAG,GAAG,EAC9B,GAAG,aAAa,EAChB,wBAAuC,KACtC,MAUF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,wBAAuC,KACtC,MAAM,GAAG,IAMX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,GAAG,EACb,GAAG,aAAa,EAChB,UAAS,oBAAyB,EAClC,OAAO,oBAAoB,GAAG,IAAI,KACjC;IACD,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CA0BrB,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { EmbeddedFlowComponentV2 as EmbeddedFlowComponent } from '@thunderid/browser';
19
+ /**
20
+ * Result of heading extraction from flow components
21
+ */
22
+ export interface HeadingExtractionResult {
23
+ heading: EmbeddedFlowComponent | null;
24
+ subheading: EmbeddedFlowComponent | null;
25
+ }
26
+ /**
27
+ * Complete result of authentication component heading extraction
28
+ */
29
+ export interface AuthComponentHeadingsResult {
30
+ componentsWithoutHeadings: EmbeddedFlowComponent[];
31
+ headingComponents: HeadingExtractionResult;
32
+ subtitle: string;
33
+ title: string;
34
+ }
35
+ /**
36
+ * Extracts heading and subheading components from authentication flow components
37
+ * and provides resolved title/subtitle text with fallback logic.
38
+ */
39
+ declare const getAuthComponentHeadings: (components: EmbeddedFlowComponent[], flowTitle?: string, flowSubtitle?: string, defaultTitle?: string, defaultSubtitle?: string) => AuthComponentHeadingsResult;
40
+ export default getAuthComponentHeadings;
41
+ //# sourceMappingURL=getAuthComponentHeadings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAuthComponentHeadings.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/getAuthComponentHeadings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,uBAAuB,IAAI,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAEpF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,yBAAyB,EAAE,qBAAqB,EAAE,CAAC;IACnD,iBAAiB,EAAE,uBAAuB,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,QAAA,MAAM,wBAAwB,GAC5B,YAAY,qBAAqB,EAAE,EACnC,YAAY,MAAM,EAClB,eAAe,MAAM,EACrB,eAAe,MAAM,EACrB,kBAAkB,MAAM,KACvB,2BA4EF,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ /**
19
+ * Handles WebAuthn/Passkey registration flow for browser environments.
20
+ *
21
+ * @param challengeData - JSON stringified challenge data containing WebAuthn creation options.
22
+ * @returns Promise that resolves to a JSON string containing the WebAuthn registration response.
23
+ */
24
+ export declare const handlePasskeyRegistration: (challengeData: string) => Promise<string>;
25
+ /**
26
+ * Handles WebAuthn/Passkey authentication flow for browser environments.
27
+ *
28
+ * @param challengeData - JSON stringified challenge data containing WebAuthn request options.
29
+ * @returns Promise that resolves to a JSON string containing the WebAuthn authentication response.
30
+ */
31
+ export declare const handlePasskeyAuthentication: (challengeData: string) => Promise<string>;
32
+ //# sourceMappingURL=passkey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passkey.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/passkey.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CAiFrF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAU,eAAe,MAAM,KAAG,OAAO,CAAC,MAAM,CA8EvF,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { FlowMetadataResponse } from '@thunderid/browser';
19
+ type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
20
+ /**
21
+ * Recursively resolves translation and meta template strings in an array of objects.
22
+ * @param items - Array of objects to process
23
+ * @param t - The translation function from useI18n
24
+ * @param properties - Array of property names to resolve (optional)
25
+ * @param meta - Optional flow metadata for resolving meta() expressions
26
+ * @returns A new array with resolved translations
27
+ */
28
+ declare const resolveTranslationsInArray: <T extends Record<string, any>>(items: T[], t: TranslationFn, properties?: string[], meta?: FlowMetadataResponse | null) => T[];
29
+ export default resolveTranslationsInArray;
30
+ //# sourceMappingURL=resolveTranslationsInArray.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveTranslationsInArray.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/resolveTranslationsInArray.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAGxD,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,QAAA,MAAM,0BAA0B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/D,OAAO,CAAC,EAAE,EACV,GAAG,aAAa,EAChB,aAAa,MAAM,EAAE,EACrB,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAAC,EAUA,CAAC;AAEL,eAAe,0BAA0B,CAAC"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { FlowMetadataResponse } from '@thunderid/browser';
19
+ type TranslationFn = (key: string, params?: Record<string, string | number>) => string;
20
+ /**
21
+ * Resolves all {{ t() }} and {{ meta() }} template expressions in an object's string properties.
22
+ * @param obj - The object to process
23
+ * @param t - The translation function from useI18n
24
+ * @param properties - Array of property names to resolve (optional, defaults to common properties)
25
+ * @param meta - Optional flow metadata for resolving meta() expressions
26
+ * @returns A new object with resolved template strings
27
+ */
28
+ export declare const resolveTranslationsInObject: <T extends Record<string, any>>(obj: T, t: TranslationFn, properties?: string[], meta?: FlowMetadataResponse | null) => T;
29
+ export default resolveTranslationsInObject;
30
+ //# sourceMappingURL=resolveTranslationsInObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveTranslationsInObject.d.ts","sourceRoot":"","sources":["../../../src/utils/v2/resolveTranslationsInObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,oBAAoB,EAA8B,MAAM,oBAAoB,CAAC;AAErF,KAAK,aAAa,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvE,KAAK,CAAC,EACN,GAAG,aAAa,EAChB,aAAY,MAAM,EAA0D,EAC5E,OAAO,oBAAoB,GAAG,IAAI,KACjC,CAUF,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@thunderid/vue",
3
+ "version": "0.0.1",
4
+ "description": "Vue SDK for ThunderID",
5
+ "keywords": [
6
+ "thunderid",
7
+ "vuejs",
8
+ "vue",
9
+ "vueauth",
10
+ "spa"
11
+ ],
12
+ "homepage": "https://github.com/thunder-id/thunderid/tree/main/sdks/vue#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/thunder-id/thunderid/issues"
15
+ },
16
+ "author": "WSO2",
17
+ "license": "Apache-2.0",
18
+ "type": "module",
19
+ "main": "dist/cjs/index.cjs",
20
+ "module": "dist/index.js",
21
+ "exports": {
22
+ "import": "./dist/index.js",
23
+ "require": "./dist/cjs/index.cjs"
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "README.md",
28
+ "LICENSE"
29
+ ],
30
+ "types": "dist/index.d.ts",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/thunder-id/thunderid",
34
+ "directory": "sdks/vue"
35
+ },
36
+ "devDependencies": {
37
+ "@types/node": "24.7.2",
38
+ "@vue/test-utils": "2.4.6",
39
+ "eslint": "9.39.4",
40
+ "prettier": "3.6.2",
41
+ "rimraf": "6.1.3",
42
+ "rolldown": "1.0.0-beta.45",
43
+ "typescript": "5.9.3",
44
+ "vitest": "4.1.3",
45
+ "vue": "3.5.30",
46
+ "@thunderid/eslint-plugin": "^0.0.0",
47
+ "@thunderid/prettier-config": "^0.0.0"
48
+ },
49
+ "peerDependencies": {
50
+ "vue": ">=3.5.0",
51
+ "vue-router": ">=4.0.0"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "vue-router": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "dependencies": {
59
+ "dompurify": "3.3.3",
60
+ "tslib": "2.8.1",
61
+ "@thunderid/browser": "^0.0.1"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "scripts": {
67
+ "build": "pnpm clean && rolldown -c rolldown.config.js && tsc -p tsconfig.lib.json --emitDeclarationOnly --outDir dist",
68
+ "clean": "rimraf dist",
69
+ "format:check": "prettier --check --cache .",
70
+ "format:fix": "prettier --write --cache .",
71
+ "lint": "eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
72
+ "lint:fix": "eslint . --fix --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
73
+ "test": "vitest --passWithNoTests",
74
+ "typecheck": "tsc -p tsconfig.lib.json"
75
+ }
76
+ }