@passflow/react 0.14.0 → 0.15.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 (377) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/README.md +29 -16
  3. package/dist/index.cjs +2 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.es.js +143 -143
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/components/error/index.d.cts +7 -0
  8. package/dist/src/components/error/index.d.ts +1 -1
  9. package/dist/src/components/error/index.d.ts.map +1 -1
  10. package/dist/src/components/flow/consent/index.d.cts +13 -0
  11. package/dist/src/components/flow/consent/index.d.ts +1 -1
  12. package/dist/src/components/flow/consent/index.d.ts.map +1 -1
  13. package/dist/src/components/flow/consent/screen.d.cts +9 -0
  14. package/dist/src/components/flow/consent/screen.d.ts +2 -2
  15. package/dist/src/components/flow/consent/screen.d.ts.map +1 -1
  16. package/dist/src/components/flow/device-verify/index.d.cts +10 -0
  17. package/dist/src/components/flow/device-verify/index.d.ts +1 -1
  18. package/dist/src/components/flow/device-verify/index.d.ts.map +1 -1
  19. package/dist/src/components/flow/device-verify/screen.d.cts +4 -0
  20. package/dist/src/components/flow/device-verify/screen.d.ts +2 -2
  21. package/dist/src/components/flow/device-verify/screen.d.ts.map +1 -1
  22. package/dist/src/components/flow/index.d.cts +5 -0
  23. package/dist/src/components/flow/index.d.ts +4 -4
  24. package/dist/src/components/flow/index.d.ts.map +1 -1
  25. package/dist/src/components/flow/passflow/index.d.cts +16 -0
  26. package/dist/src/components/flow/passflow/index.d.ts +5 -1
  27. package/dist/src/components/flow/passflow/index.d.ts.map +1 -1
  28. package/dist/src/components/flow/two-factor-setup/index.d.cts +10 -0
  29. package/dist/src/components/flow/two-factor-setup/index.d.ts +2 -2
  30. package/dist/src/components/flow/two-factor-setup/index.d.ts.map +1 -1
  31. package/dist/src/components/flow/two-factor-setup-magic-link/index.d.cts +35 -0
  32. package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts +2 -2
  33. package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts.map +1 -1
  34. package/dist/src/components/flow/two-factor-verify/index.d.cts +11 -0
  35. package/dist/src/components/flow/two-factor-verify/index.d.ts +2 -2
  36. package/dist/src/components/flow/two-factor-verify/index.d.ts.map +1 -1
  37. package/dist/src/components/form/forgot-password/forgot-password-success.d.cts +2 -0
  38. package/dist/src/components/form/forgot-password/forgot-password-success.d.ts +1 -1
  39. package/dist/src/components/form/forgot-password/forgot-password-success.d.ts.map +1 -1
  40. package/dist/src/components/form/forgot-password/forgot-password.d.cts +9 -0
  41. package/dist/src/components/form/forgot-password/forgot-password.d.ts +1 -1
  42. package/dist/src/components/form/forgot-password/forgot-password.d.ts.map +1 -1
  43. package/dist/src/components/form/forgot-password/index.d.cts +3 -0
  44. package/dist/src/components/form/forgot-password/index.d.ts +2 -2
  45. package/dist/src/components/form/index.d.cts +10 -0
  46. package/dist/src/components/form/index.d.ts +9 -9
  47. package/dist/src/components/form/index.d.ts.map +1 -1
  48. package/dist/src/components/form/invitation-join/index.d.cts +7 -0
  49. package/dist/src/components/form/invitation-join/index.d.ts +1 -2
  50. package/dist/src/components/form/invitation-join/index.d.ts.map +1 -1
  51. package/dist/src/components/form/reset-password/index.d.cts +9 -0
  52. package/dist/src/components/form/reset-password/index.d.ts +2 -2
  53. package/dist/src/components/form/reset-password/index.d.ts.map +1 -1
  54. package/dist/src/components/form/signin/index.d.cts +15 -0
  55. package/dist/src/components/form/signin/index.d.ts +2 -2
  56. package/dist/src/components/form/signin/index.d.ts.map +1 -1
  57. package/dist/src/components/form/signup/index.d.cts +14 -0
  58. package/dist/src/components/form/signup/index.d.ts +2 -2
  59. package/dist/src/components/form/signup/index.d.ts.map +1 -1
  60. package/dist/src/components/form/two-factor-challenge/index.d.cts +10 -0
  61. package/dist/src/components/form/two-factor-challenge/index.d.ts +1 -1
  62. package/dist/src/components/form/two-factor-challenge/index.d.ts.map +1 -1
  63. package/dist/src/components/form/two-factor-challenge/method-selector.d.cts +12 -0
  64. package/dist/src/components/form/two-factor-challenge/method-selector.d.ts +2 -2
  65. package/dist/src/components/form/two-factor-setup/index.d.cts +2 -0
  66. package/dist/src/components/form/two-factor-setup/index.d.ts +1 -1
  67. package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.cts +9 -0
  68. package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts +1 -1
  69. package/dist/src/components/form/two-factor-setup/two-factor-setup-form.d.ts.map +1 -1
  70. package/dist/src/components/form/two-factor-verify/index.d.cts +3 -0
  71. package/dist/src/components/form/two-factor-verify/index.d.ts +2 -2
  72. package/dist/src/components/form/two-factor-verify/index.d.ts.map +1 -1
  73. package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.cts +13 -0
  74. package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts +1 -1
  75. package/dist/src/components/form/two-factor-verify/two-factor-recovery-form.d.ts.map +1 -1
  76. package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.cts +16 -0
  77. package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts +1 -1
  78. package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts.map +1 -1
  79. package/dist/src/components/form/verify-challenge/index.d.cts +3 -0
  80. package/dist/src/components/form/verify-challenge/index.d.ts +2 -2
  81. package/dist/src/components/form/verify-challenge/timer-button.d.cts +9 -0
  82. package/dist/src/components/form/verify-challenge/timer-button.d.ts +1 -1
  83. package/dist/src/components/form/verify-challenge/timer-button.d.ts.map +1 -1
  84. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.cts +2 -0
  85. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts +1 -1
  86. package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -1
  87. package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.cts +16 -0
  88. package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts +1 -1
  89. package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts.map +1 -1
  90. package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.cts +9 -0
  91. package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts +1 -2
  92. package/dist/src/components/form/verify-challenge/verify-challenge-otp-redirect.d.ts.map +1 -1
  93. package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.cts +12 -0
  94. package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts +2 -2
  95. package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts.map +1 -1
  96. package/dist/src/components/form/verify-challenge/verify-challenge-success.d.cts +3 -0
  97. package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts +1 -1
  98. package/dist/src/components/form/verify-challenge/verify-challenge-success.d.ts.map +1 -1
  99. package/dist/src/components/form/wrapper/index.d.cts +2 -0
  100. package/dist/src/components/form/wrapper/index.d.ts +1 -1
  101. package/dist/src/components/passkey/index.d.cts +7 -0
  102. package/dist/src/components/passkey/index.d.ts +1 -1
  103. package/dist/src/components/passkey/index.d.ts.map +1 -1
  104. package/dist/src/components/passkey/passkey-actions.d.cts +13 -0
  105. package/dist/src/components/passkey/passkey-actions.d.ts +1 -1
  106. package/dist/src/components/passkey/passkey-actions.d.ts.map +1 -1
  107. package/dist/src/components/passkey/passkey-dialog.d.cts +10 -0
  108. package/dist/src/components/passkey/passkey-dialog.d.ts +1 -1
  109. package/dist/src/components/passkey/passkey-list.d.cts +9 -0
  110. package/dist/src/components/passkey/passkey-list.d.ts +2 -2
  111. package/dist/src/components/passkey/passkey-list.d.ts.map +1 -1
  112. package/dist/src/components/provider/index.d.cts +4 -0
  113. package/dist/src/components/provider/index.d.ts +3 -3
  114. package/dist/src/components/provider/index.d.ts.map +1 -1
  115. package/dist/src/components/provider/passflow-provider.d.cts +160 -0
  116. package/dist/src/components/provider/passflow-provider.d.ts +4 -4
  117. package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
  118. package/dist/src/components/provider/upgrade-provider.d.cts +85 -0
  119. package/dist/src/components/provider/upgrade-provider.d.ts +39 -3
  120. package/dist/src/components/provider/upgrade-provider.d.ts.map +1 -1
  121. package/dist/src/components/ui/button/index.d.cts +34 -0
  122. package/dist/src/components/ui/button/index.d.ts +3 -2
  123. package/dist/src/components/ui/button/index.d.ts.map +1 -1
  124. package/dist/src/components/ui/continuing-status/index.d.cts +8 -0
  125. package/dist/src/components/ui/continuing-status/index.d.ts +1 -1
  126. package/dist/src/components/ui/country-flag/index.d.cts +7 -0
  127. package/dist/src/components/ui/country-flag/index.d.ts +1 -1
  128. package/dist/src/components/ui/country-flag/index.d.ts.map +1 -1
  129. package/dist/src/components/ui/country-flag/positions.d.cts +245 -0
  130. package/dist/src/components/ui/country-flag/positions.d.ts +241 -241
  131. package/dist/src/components/ui/country-flag/positions.d.ts.map +1 -1
  132. package/dist/src/components/ui/dialog/index.d.cts +20 -0
  133. package/dist/src/components/ui/dialog/index.d.ts +18 -18
  134. package/dist/src/components/ui/dialog/index.d.ts.map +1 -1
  135. package/dist/src/components/ui/fields/field-otp.d.cts +48 -0
  136. package/dist/src/components/ui/fields/field-otp.d.ts +48 -0
  137. package/dist/src/components/ui/fields/field-otp.d.ts.map +1 -0
  138. package/dist/src/components/ui/fields/field-password.d.cts +13 -0
  139. package/dist/src/components/ui/fields/field-password.d.ts +4 -4
  140. package/dist/src/components/ui/fields/field-password.d.ts.map +1 -1
  141. package/dist/src/components/ui/fields/field-phone.d.cts +11 -0
  142. package/dist/src/components/ui/fields/field-phone.d.ts +1 -1
  143. package/dist/src/components/ui/fields/field-phone.d.ts.map +1 -1
  144. package/dist/src/components/ui/fields/field-text.d.cts +8 -0
  145. package/dist/src/components/ui/fields/field-text.d.ts +3 -3
  146. package/dist/src/components/ui/fields/field-text.d.ts.map +1 -1
  147. package/dist/src/components/ui/fields/index.d.cts +5 -0
  148. package/dist/src/components/ui/fields/index.d.ts +4 -3
  149. package/dist/src/components/ui/fields/index.d.ts.map +1 -1
  150. package/dist/src/components/ui/icon/index.d.cts +11 -0
  151. package/dist/src/components/ui/icon/index.d.ts +1 -1
  152. package/dist/src/components/ui/icon/index.d.ts.map +1 -1
  153. package/dist/src/components/ui/index.d.cts +14 -0
  154. package/dist/src/components/ui/index.d.ts +13 -13
  155. package/dist/src/components/ui/index.d.ts.map +1 -1
  156. package/dist/src/components/ui/link/index.d.cts +11 -0
  157. package/dist/src/components/ui/link/index.d.ts +1 -1
  158. package/dist/src/components/ui/link/index.d.ts.map +1 -1
  159. package/dist/src/components/ui/login-screen/code-entry.d.cts +4 -0
  160. package/dist/src/components/ui/login-screen/code-entry.d.ts +2 -2
  161. package/dist/src/components/ui/login-screen/consent.d.cts +15 -0
  162. package/dist/src/components/ui/login-screen/consent.d.ts +2 -2
  163. package/dist/src/components/ui/login-screen/credentials.d.cts +4 -0
  164. package/dist/src/components/ui/login-screen/credentials.d.ts +2 -2
  165. package/dist/src/components/ui/login-screen/credentials.d.ts.map +1 -1
  166. package/dist/src/components/ui/login-screen/device-approval.d.cts +4 -0
  167. package/dist/src/components/ui/login-screen/device-approval.d.ts +2 -2
  168. package/dist/src/components/ui/login-screen/general-error.d.cts +4 -0
  169. package/dist/src/components/ui/login-screen/general-error.d.ts +2 -2
  170. package/dist/src/components/ui/login-screen/index.d.cts +4 -0
  171. package/dist/src/components/ui/login-screen/index.d.ts +3 -3
  172. package/dist/src/components/ui/login-screen/index.d.ts.map +1 -1
  173. package/dist/src/components/ui/login-screen/invitation.d.cts +4 -0
  174. package/dist/src/components/ui/login-screen/invitation.d.ts +2 -2
  175. package/dist/src/components/ui/login-screen/login-screen.d.cts +4 -0
  176. package/dist/src/components/ui/login-screen/login-screen.d.ts +2 -2
  177. package/dist/src/components/ui/login-screen/passkey-progress.d.cts +4 -0
  178. package/dist/src/components/ui/login-screen/passkey-progress.d.ts +2 -2
  179. package/dist/src/components/ui/login-screen/second-factor.d.cts +4 -0
  180. package/dist/src/components/ui/login-screen/second-factor.d.ts +2 -2
  181. package/dist/src/components/ui/login-screen/shared.d.cts +15 -0
  182. package/dist/src/components/ui/login-screen/shared.d.ts +2 -2
  183. package/dist/src/components/ui/login-screen/shell.d.cts +13 -0
  184. package/dist/src/components/ui/login-screen/shell.d.ts +1 -1
  185. package/dist/src/components/ui/login-screen/shell.d.ts.map +1 -1
  186. package/dist/src/components/ui/login-screen/status.d.cts +4 -0
  187. package/dist/src/components/ui/login-screen/status.d.ts +2 -2
  188. package/dist/src/components/ui/login-screen/types.d.cts +192 -0
  189. package/dist/src/components/ui/login-screen/types.d.ts +2 -2
  190. package/dist/src/components/ui/login-screen/types.d.ts.map +1 -1
  191. package/dist/src/components/ui/popover/index.d.cts +7 -0
  192. package/dist/src/components/ui/popover/index.d.ts +5 -5
  193. package/dist/src/components/ui/popover/index.d.ts.map +1 -1
  194. package/dist/src/components/ui/providers-box/index.d.cts +10 -0
  195. package/dist/src/components/ui/providers-box/index.d.ts +2 -2
  196. package/dist/src/components/ui/providers-box/index.d.ts.map +1 -1
  197. package/dist/src/components/ui/spinner/index.d.cts +23 -0
  198. package/dist/src/components/ui/spinner/index.d.ts +1 -1
  199. package/dist/src/components/ui/spinner/index.d.ts.map +1 -1
  200. package/dist/src/components/ui/switch/index.d.cts +22 -0
  201. package/dist/src/components/ui/switch/index.d.ts +1 -1
  202. package/dist/src/components/ui/switch/index.d.ts.map +1 -1
  203. package/dist/src/components/ui/upgrade-dialog/challenge.d.cts +12 -0
  204. package/dist/src/components/ui/upgrade-dialog/challenge.d.ts +2 -2
  205. package/dist/src/components/ui/upgrade-dialog/factor-list.d.cts +20 -0
  206. package/dist/src/components/ui/upgrade-dialog/factor-list.d.ts +2 -2
  207. package/dist/src/components/ui/upgrade-dialog/index.d.cts +8 -0
  208. package/dist/src/components/ui/upgrade-dialog/index.d.ts +7 -7
  209. package/dist/src/components/ui/upgrade-dialog/index.d.ts.map +1 -1
  210. package/dist/src/components/ui/upgrade-dialog/state-mapping.d.cts +130 -0
  211. package/dist/src/components/ui/upgrade-dialog/state-mapping.d.ts +12 -1
  212. package/dist/src/components/ui/upgrade-dialog/state-mapping.d.ts.map +1 -1
  213. package/dist/src/components/ui/upgrade-dialog/status.d.cts +27 -0
  214. package/dist/src/components/ui/upgrade-dialog/status.d.ts +2 -2
  215. package/dist/src/components/ui/upgrade-dialog/types.d.cts +188 -0
  216. package/dist/src/components/ui/upgrade-dialog/upgrade-dialog.d.cts +13 -0
  217. package/dist/src/components/ui/upgrade-dialog/upgrade-dialog.d.ts +2 -2
  218. package/dist/src/components/ui/visually-hidden/index.d.cts +17 -0
  219. package/dist/src/components/ui/visually-hidden/index.d.ts +17 -0
  220. package/dist/src/components/ui/visually-hidden/index.d.ts.map +1 -0
  221. package/dist/src/constants/countries-phone-code.d.cts +253 -0
  222. package/dist/src/constants/countries-phone-code.d.ts.map +1 -1
  223. package/dist/src/constants/formats.d.cts +4 -0
  224. package/dist/src/constants/formats.d.ts.map +1 -1
  225. package/dist/src/constants/index.d.cts +3 -0
  226. package/dist/src/constants/index.d.ts +2 -2
  227. package/dist/src/context/auth-context.d.cts +23 -0
  228. package/dist/src/context/auth-context.d.ts +3 -3
  229. package/dist/src/context/auth-context.d.ts.map +1 -1
  230. package/dist/src/context/index.d.cts +6 -0
  231. package/dist/src/context/index.d.ts +5 -5
  232. package/dist/src/context/index.d.ts.map +1 -1
  233. package/dist/src/context/navigation-context.d.cts +25 -0
  234. package/dist/src/context/navigation-context.d.ts +1 -1
  235. package/dist/src/context/passflow-context.d.cts +26 -0
  236. package/dist/src/context/passflow-context.d.ts +3 -3
  237. package/dist/src/context/passflow-context.d.ts.map +1 -1
  238. package/dist/src/context/router-context.d.cts +42 -0
  239. package/dist/src/context/router-context.d.ts.map +1 -1
  240. package/dist/src/context/upgrade-context.d.cts +107 -0
  241. package/dist/src/context/upgrade-context.d.ts +24 -2
  242. package/dist/src/hocs/index.d.cts +2 -0
  243. package/dist/src/hocs/index.d.ts +1 -1
  244. package/dist/src/hocs/with-error.d.cts +8 -0
  245. package/dist/src/hocs/with-error.d.ts +5 -5
  246. package/dist/src/hocs/with-error.d.ts.map +1 -1
  247. package/dist/src/hooks/index.d.cts +28 -0
  248. package/dist/src/hooks/index.d.ts +27 -27
  249. package/dist/src/hooks/index.d.ts.map +1 -1
  250. package/dist/src/hooks/use-app-settings.d.cts +16 -0
  251. package/dist/src/hooks/use-app-settings.d.ts +1 -1
  252. package/dist/src/hooks/use-app-settings.d.ts.map +1 -1
  253. package/dist/src/hooks/use-auth-cloud-redirect.d.cts +4 -0
  254. package/dist/src/hooks/use-auth.d.cts +3 -0
  255. package/dist/src/hooks/use-auth.d.ts +1 -1
  256. package/dist/src/hooks/use-auth.d.ts.map +1 -1
  257. package/dist/src/hooks/use-consent.d.cts +68 -0
  258. package/dist/src/hooks/use-device-verify.d.cts +96 -0
  259. package/dist/src/hooks/use-device-verify.d.ts +1 -1
  260. package/dist/src/hooks/use-device-verify.d.ts.map +1 -1
  261. package/dist/src/hooks/use-forgot-password.d.cts +10 -0
  262. package/dist/src/hooks/use-forgot-password.d.ts +1 -1
  263. package/dist/src/hooks/use-join-invite.d.cts +8 -0
  264. package/dist/src/hooks/use-logout.d.cts +8 -0
  265. package/dist/src/hooks/use-navigation.d.cts +29 -0
  266. package/dist/src/hooks/use-navigation.d.ts +2 -2
  267. package/dist/src/hooks/use-navigation.d.ts.map +1 -1
  268. package/dist/src/hooks/use-outsideclick.d.cts +3 -0
  269. package/dist/src/hooks/use-outsideclick.d.ts +2 -2
  270. package/dist/src/hooks/use-outsideclick.d.ts.map +1 -1
  271. package/dist/src/hooks/use-passflow-store.d.cts +3 -0
  272. package/dist/src/hooks/use-passflow-store.d.ts +1 -1
  273. package/dist/src/hooks/use-passflow.d.cts +3 -0
  274. package/dist/src/hooks/use-passflow.d.ts +1 -1
  275. package/dist/src/hooks/use-passflow.d.ts.map +1 -1
  276. package/dist/src/hooks/use-passwordless-complete.d.cts +10 -0
  277. package/dist/src/hooks/use-passwordless-complete.d.ts +1 -1
  278. package/dist/src/hooks/use-passwordless-complete.d.ts.map +1 -1
  279. package/dist/src/hooks/use-provider.d.cts +7 -0
  280. package/dist/src/hooks/use-provider.d.ts +1 -1
  281. package/dist/src/hooks/use-provider.d.ts.map +1 -1
  282. package/dist/src/hooks/use-reset-password.d.cts +9 -0
  283. package/dist/src/hooks/use-session-expired.d.cts +49 -0
  284. package/dist/src/hooks/use-signin.d.cts +11 -0
  285. package/dist/src/hooks/use-signin.d.ts +2 -2
  286. package/dist/src/hooks/use-signin.d.ts.map +1 -1
  287. package/dist/src/hooks/use-signup.d.cts +11 -0
  288. package/dist/src/hooks/use-signup.d.ts +2 -2
  289. package/dist/src/hooks/use-signup.d.ts.map +1 -1
  290. package/dist/src/hooks/use-trusted-devices.d.cts +21 -0
  291. package/dist/src/hooks/use-trusted-devices.d.ts +1 -1
  292. package/dist/src/hooks/use-two-factor-challenge.d.cts +16 -0
  293. package/dist/src/hooks/use-two-factor-challenge.d.ts +1 -1
  294. package/dist/src/hooks/use-two-factor-manage.d.cts +15 -0
  295. package/dist/src/hooks/use-two-factor-manage.d.ts +1 -1
  296. package/dist/src/hooks/use-two-factor-methods.d.cts +14 -0
  297. package/dist/src/hooks/use-two-factor-methods.d.ts +1 -1
  298. package/dist/src/hooks/use-two-factor-setup-magic-link.d.cts +55 -0
  299. package/dist/src/hooks/use-two-factor-setup-magic-link.d.ts.map +1 -1
  300. package/dist/src/hooks/use-two-factor-setup.d.cts +18 -0
  301. package/dist/src/hooks/use-two-factor-setup.d.ts +1 -1
  302. package/dist/src/hooks/use-two-factor-status.d.cts +13 -0
  303. package/dist/src/hooks/use-two-factor-status.d.ts +1 -1
  304. package/dist/src/hooks/use-two-factor-verify.d.cts +20 -0
  305. package/dist/src/hooks/use-two-factor-verify.d.ts +2 -2
  306. package/dist/src/hooks/use-two-factor-verify.d.ts.map +1 -1
  307. package/dist/src/hooks/use-upgrade.d.cts +53 -0
  308. package/dist/src/hooks/use-upgrade.d.ts +12 -2
  309. package/dist/src/hooks/use-upgrade.d.ts.map +1 -1
  310. package/dist/src/hooks/use-user-passkeys.d.cts +12 -0
  311. package/dist/src/hooks/use-user-passkeys.d.ts +1 -1
  312. package/dist/src/index.d.cts +10 -0
  313. package/dist/src/index.d.ts +8 -8
  314. package/dist/src/index.d.ts.map +1 -1
  315. package/dist/src/types/auth-errors.d.cts +8 -0
  316. package/dist/src/types/device-errors.d.cts +95 -0
  317. package/dist/src/types/index.d.cts +26 -0
  318. package/dist/src/types/index.d.ts +4 -4
  319. package/dist/src/types/index.d.ts.map +1 -1
  320. package/dist/src/types/two-factor-errors.d.cts +14 -0
  321. package/dist/src/utils/auth-error.d.cts +7 -0
  322. package/dist/src/utils/auth-error.d.ts +1 -1
  323. package/dist/src/utils/auth-error.d.ts.map +1 -1
  324. package/dist/src/utils/classify-device-error.d.cts +35 -0
  325. package/dist/src/utils/classify-device-error.d.ts +1 -1
  326. package/dist/src/utils/classify-device-error.d.ts.map +1 -1
  327. package/dist/src/utils/classify-two-factor-error.d.cts +13 -0
  328. package/dist/src/utils/classify-two-factor-error.d.ts +1 -1
  329. package/dist/src/utils/cn.d.cts +3 -0
  330. package/dist/src/utils/cn.d.ts +1 -1
  331. package/dist/src/utils/cn.d.ts.map +1 -1
  332. package/dist/src/utils/dayjs/format.d.cts +8 -0
  333. package/dist/src/utils/dayjs/format.d.ts.map +1 -1
  334. package/dist/src/utils/dayjs/index.d.cts +2 -0
  335. package/dist/src/utils/dayjs/index.d.ts +1 -1
  336. package/dist/src/utils/get-app-version.d.cts +7 -0
  337. package/dist/src/utils/get-auth-methods.d.cts +30 -0
  338. package/dist/src/utils/get-auth-methods.d.ts +1 -1
  339. package/dist/src/utils/get-auth-methods.d.ts.map +1 -1
  340. package/dist/src/utils/get-form-labels.d.cts +10 -0
  341. package/dist/src/utils/get-form-labels.d.ts +5 -5
  342. package/dist/src/utils/get-form-labels.d.ts.map +1 -1
  343. package/dist/src/utils/get-url-errors.d.cts +5 -0
  344. package/dist/src/utils/get-url-errors.d.ts.map +1 -1
  345. package/dist/src/utils/get-url-with-tokens.d.cts +4 -0
  346. package/dist/src/utils/get-url-with-tokens.d.ts +1 -1
  347. package/dist/src/utils/get-url-with-tokens.d.ts.map +1 -1
  348. package/dist/src/utils/index.d.cts +18 -0
  349. package/dist/src/utils/index.d.ts +17 -17
  350. package/dist/src/utils/index.d.ts.map +1 -1
  351. package/dist/src/utils/invitation-auth-chrome.d.cts +8 -0
  352. package/dist/src/utils/invitation-auth-chrome.d.ts.map +1 -1
  353. package/dist/src/utils/login-theme.d.cts +8 -0
  354. package/dist/src/utils/login-theme.d.ts +1 -1
  355. package/dist/src/utils/login-theme.d.ts.map +1 -1
  356. package/dist/src/utils/second-factor.d.cts +21 -0
  357. package/dist/src/utils/second-factor.d.ts +3 -3
  358. package/dist/src/utils/second-factor.d.ts.map +1 -1
  359. package/dist/src/utils/two-factor-loop-prevention.d.cts +40 -0
  360. package/dist/src/utils/two-factor-loop-prevention.d.ts.map +1 -1
  361. package/dist/src/utils/undefined-on-catch.d.cts +2 -0
  362. package/dist/src/utils/upgrade-auth.d.cts +82 -0
  363. package/dist/src/utils/upgrade-auth.d.ts +45 -1
  364. package/dist/src/utils/upgrade-auth.d.ts.map +1 -1
  365. package/dist/src/utils/url-params.d.cts +14 -0
  366. package/dist/src/utils/url-params.d.ts.map +1 -1
  367. package/dist/src/utils/validate-url.d.cts +2 -0
  368. package/dist/src/utils/validate-url.d.ts.map +1 -1
  369. package/dist/src/utils/validation-schemas/index.d.cts +6 -0
  370. package/dist/src/utils/validation-schemas/index.d.ts +1 -1
  371. package/dist/src/utils/validation-schemas/index.d.ts.map +1 -1
  372. package/dist/style.css +1 -1
  373. package/package.json +54 -56
  374. package/dist/index.cjs.js +0 -2
  375. package/dist/index.cjs.js.map +0 -1
  376. package/dist/src/components/form/two-factor-challenge/otp-input.d.ts +0 -12
  377. package/dist/src/components/form/two-factor-challenge/otp-input.d.ts.map +0 -1
@@ -0,0 +1,85 @@
1
+ /**
2
+ * `UpgradeProvider` — the React side of the assurance-upgrade flow (§8.3).
3
+ *
4
+ * It owns the controller (through `passflow.upgrade`), bridges the
5
+ * promise-returning `UpgradePromptHandler` to React state, and mounts the
6
+ * dialog from `src/components/ui/upgrade-dialog`. It selects a state and maps
7
+ * domain data onto that component's props; it renders no UI of its own and
8
+ * styles nothing, per the project's component-library boundary.
9
+ *
10
+ * Three properties fall out of the shipped controller, and they are why this
11
+ * is small:
12
+ *
13
+ * 1. **The wrong-code loop needs no plumbing.** The controller catches the
14
+ * recoverable failure, sets `previousError` and calls `prompt()` again, so
15
+ * the provider simply receives a new request and the dialog re-renders with
16
+ * the error, still open.
17
+ * 2. **Attempt budgeting needs no plumbing.** `maxAttempts` bounds the loop in
18
+ * the controller and then fails the flight, which arrives here as the
19
+ * `exhausted` terminal state.
20
+ * 3. **Passkey has no code field.** `factors[i].input === 'none'` submits with
21
+ * no code and the dialog shows `working` while the platform authenticator
22
+ * runs.
23
+ *
24
+ * **The anti-leak rule is the single most important line in this file.** On
25
+ * unmount, on teardown and on a session change, the pending prompt is resolved
26
+ * `{ type: 'cancel' }`. A dangling `resolve` is an Observer leak wearing a
27
+ * promise: the controller awaits forever, the elevation never settles, and
28
+ * every request that joined the single flight hangs.
29
+ *
30
+ * **The session-change reset.** A challenge is server-bound to the session, so
31
+ * an abandoned flight must never elevate a NEW session. The core discards its
32
+ * controller on `SignIn` / `SignOut`; this provider discards its view of it in
33
+ * the same breath, and the waiter that was mid-flight settles as
34
+ * `session changed`, which the hook reports as `idle` — nothing that did not
35
+ * happen is reported as though it had.
36
+ */
37
+ import { type ReplayPolicy, type UpgradeDiagnosticSink, type UpgradeFactor } from '@passflow/core';
38
+ import { type FC, type ReactElement, type ReactNode } from 'react';
39
+ import type { UpgradeDialogLabels, UpgradeDialogProps } from '../ui/upgrade-dialog/index.cjs';
40
+ export type UpgradeProviderProps = {
41
+ children?: ReactNode;
42
+ /** Default `true`. `false` installs nothing and leaves the hook inert. */
43
+ enabled?: boolean;
44
+ /**
45
+ * Where the customer's own API is — domain 2 (§13.5). Nothing outside this
46
+ * and Passflow's own API is ever observed, and there is no allow-all opt-in.
47
+ */
48
+ backend?: string | string[];
49
+ /**
50
+ * Patches `globalThis.fetch` through the core's registry. **Off by default**,
51
+ * and a different decision from enabling the UI: one prop for both would
52
+ * bundle "show me the verification prompt" with "patch the global", and only
53
+ * the second has the blast radius.
54
+ */
55
+ interceptFetch?: boolean;
56
+ /** Requires the RFC 9470 channel. The body is then never read for a challenge. */
57
+ requireChallengeChannel?: 'header';
58
+ /** NARROWING ONLY: `false` excludes an admitted URL; `true` cannot widen. */
59
+ shouldIntercept?: (url: string) => boolean;
60
+ replay?: ReplayPolicy;
61
+ /** The fetch surface's only cancellation option. Default `'resolve-original'`. */
62
+ onCancel?: 'resolve-original' | 'reject';
63
+ onUpgradeDiagnostic?: UpgradeDiagnosticSink;
64
+ factors?: readonly UpgradeFactor[];
65
+ maxAttempts?: number;
66
+ relyingPartyId?: string;
67
+ /** Per-factor wording for the dialog. */
68
+ labels?: UpgradeDialogLabels;
69
+ title?: string;
70
+ /**
71
+ * FR5's render-prop override. It receives the **exact** props the built-in
72
+ * dialog would render — a typed, constrained override with no `className` or
73
+ * `style` leak.
74
+ *
75
+ * It carries the same obligations as the built-in dialog, the selection
76
+ * signal included: the `challenge` state's `onSelectFactor` must be called
77
+ * when the user picks a factor, because that is the only thing that reports
78
+ * §13.2's selection boundary to the controller. An override that never calls
79
+ * it leaves the controller `collecting` for the whole ceremony, so a late
80
+ * join re-ranks mid-entry — degraded, not silent.
81
+ */
82
+ renderDialog?: (props: UpgradeDialogProps) => ReactElement | null;
83
+ };
84
+ export declare const UpgradeProvider: FC<UpgradeProviderProps>;
85
+ //# sourceMappingURL=upgrade-provider.d.ts.map
@@ -1,6 +1,42 @@
1
- import { UpgradeDialogLabels, UpgradeDialogProps } from '../ui/upgrade-dialog';
2
- import { ReplayPolicy, UpgradeDiagnosticSink, UpgradeFactor } from '@passflow/core';
3
- import { FC, ReactElement, ReactNode } from 'react';
1
+ /**
2
+ * `UpgradeProvider` — the React side of the assurance-upgrade flow (§8.3).
3
+ *
4
+ * It owns the controller (through `passflow.upgrade`), bridges the
5
+ * promise-returning `UpgradePromptHandler` to React state, and mounts the
6
+ * dialog from `src/components/ui/upgrade-dialog`. It selects a state and maps
7
+ * domain data onto that component's props; it renders no UI of its own and
8
+ * styles nothing, per the project's component-library boundary.
9
+ *
10
+ * Three properties fall out of the shipped controller, and they are why this
11
+ * is small:
12
+ *
13
+ * 1. **The wrong-code loop needs no plumbing.** The controller catches the
14
+ * recoverable failure, sets `previousError` and calls `prompt()` again, so
15
+ * the provider simply receives a new request and the dialog re-renders with
16
+ * the error, still open.
17
+ * 2. **Attempt budgeting needs no plumbing.** `maxAttempts` bounds the loop in
18
+ * the controller and then fails the flight, which arrives here as the
19
+ * `exhausted` terminal state.
20
+ * 3. **Passkey has no code field.** `factors[i].input === 'none'` submits with
21
+ * no code and the dialog shows `working` while the platform authenticator
22
+ * runs.
23
+ *
24
+ * **The anti-leak rule is the single most important line in this file.** On
25
+ * unmount, on teardown and on a session change, the pending prompt is resolved
26
+ * `{ type: 'cancel' }`. A dangling `resolve` is an Observer leak wearing a
27
+ * promise: the controller awaits forever, the elevation never settles, and
28
+ * every request that joined the single flight hangs.
29
+ *
30
+ * **The session-change reset.** A challenge is server-bound to the session, so
31
+ * an abandoned flight must never elevate a NEW session. The core discards its
32
+ * controller on `SignIn` / `SignOut`; this provider discards its view of it in
33
+ * the same breath, and the waiter that was mid-flight settles as
34
+ * `session changed`, which the hook reports as `idle` — nothing that did not
35
+ * happen is reported as though it had.
36
+ */
37
+ import { type ReplayPolicy, type UpgradeDiagnosticSink, type UpgradeFactor } from '@passflow/core';
38
+ import { type FC, type ReactElement, type ReactNode } from 'react';
39
+ import type { UpgradeDialogLabels, UpgradeDialogProps } from '../ui/upgrade-dialog/index.js';
4
40
  export type UpgradeProviderProps = {
5
41
  children?: ReactNode;
6
42
  /** Default `true`. `false` installs nothing and leaves the hook inert. */
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/upgrade-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAwB,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAYpH,OAAO,EAIL,KAAK,YAAY,EAEjB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAQnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAC;AAEtH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kFAAkF;IAClF,uBAAuB,CAAC,EAAE,QAAQ,CAAC;IACnC,6EAA6E;IAC7E,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,kBAAkB,GAAG,QAAQ,CAAC;IACzC,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;IAC5C,OAAO,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,YAAY,GAAG,IAAI,CAAC;CACnE,CAAC;AAkHF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAqWpD,CAAC"}
1
+ {"version":3,"file":"upgrade-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/upgrade-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAIL,KAAK,YAAY,EAGjB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAOnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAC;AACtH,OAAO,KAAK,EAAE,mBAAmB,EAAwB,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAcpH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kFAAkF;IAClF,uBAAuB,CAAC,EAAE,QAAQ,CAAC;IACnC,6EAA6E;IAC7E,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,kBAAkB,GAAG,QAAQ,CAAC;IACzC,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;IAC5C,OAAO,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,YAAY,GAAG,IAAI,CAAC;CACnE,CAAC;AAkHF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAqWpD,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { type ButtonHTMLAttributes, type FC, type PropsWithChildren } from 'react';
2
+ type RippleProps = {
3
+ size: number;
4
+ x: number;
5
+ y: number;
6
+ };
7
+ export declare const Ripple: FC<RippleProps>;
8
+ type TButton = PropsWithChildren & ButtonHTMLAttributes<HTMLButtonElement> & {
9
+ size: 'small' | 'medium' | 'big';
10
+ /**
11
+ * `link` is an action set in running text: no box, link colour, no ripple.
12
+ */
13
+ variant: 'primary' | 'secondary' | 'outlined' | 'warning' | 'clean' | 'provider' | 'dark' | 'option' | 'link';
14
+ type: 'button' | 'submit' | 'reset';
15
+ withIcon?: boolean;
16
+ asIcon?: boolean;
17
+ className?: string;
18
+ withRipple?: boolean;
19
+ /**
20
+ * The `option` variant's second line — the hint under the label. Rendered
21
+ * only by that variant, which owns the two-line geometry. It is part of the
22
+ * button's accessible name ("label hint"), because it is visible text.
23
+ */
24
+ description?: string;
25
+ /**
26
+ * Toggle state for the `option` variant: mirrored to `aria-pressed` and
27
+ * styled by the variant itself, so no call site has to describe what
28
+ * "selected" looks like.
29
+ */
30
+ pressed?: boolean;
31
+ };
32
+ export declare const Button: FC<TButton>;
33
+ export {};
34
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, FC, PropsWithChildren } from 'react';
1
+ import { type ButtonHTMLAttributes, type FC, type PropsWithChildren } from 'react';
2
2
  type RippleProps = {
3
3
  size: number;
4
4
  x: number;
@@ -18,7 +18,8 @@ type TButton = PropsWithChildren & ButtonHTMLAttributes<HTMLButtonElement> & {
18
18
  withRipple?: boolean;
19
19
  /**
20
20
  * The `option` variant's second line — the hint under the label. Rendered
21
- * only by that variant, which owns the two-line geometry.
21
+ * only by that variant, which owns the two-line geometry. It is part of the
22
+ * button's accessible name ("label hint"), because it is visible text.
22
23
  */
23
24
  description?: string;
24
25
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/button/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,EAAE,EAGP,KAAK,iBAAiB,EAIvB,MAAM,OAAO,CAAC;AACf,OAAO,oBAAoB,CAAC;AAE5B,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CASlC,CAAC;AAEF,KAAK,OAAO,GAAG,iBAAiB,GAC9B,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACxC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjC;;OAEG;IACH,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC9G,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,OAAO,CAgG9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,oBAAoB,EAEzB,KAAK,EAAE,EAGP,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AAEf,OAAO,oBAAoB,CAAC;AAE5B,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CASlC,CAAC;AAEF,KAAK,OAAO,GAAG,iBAAiB,GAC9B,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACxC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjC;;OAEG;IACH,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC9G,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEJ,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,OAAO,CAkF9B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { FC } from 'react';
2
+ export type ContinuingStatusProps = {
3
+ /** The app the user is being taken to; without it the line stays generic. */
4
+ appName?: string;
5
+ };
6
+ /** The full-page line shown while a session is handed over to the app that asked for it. */
7
+ export declare const ContinuingStatus: FC<ContinuingStatusProps>;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import type { FC } from 'react';
2
2
  export type ContinuingStatusProps = {
3
3
  /** The app the user is being taken to; without it the line stays generic. */
4
4
  appName?: string;
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ export type CountryFlagProps = {
3
+ iso2: string;
4
+ className?: string;
5
+ };
6
+ export declare const CountryFlag: FC<CountryFlagProps>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import type { FC } from 'react';
2
2
  export type CountryFlagProps = {
3
3
  iso2: string;
4
4
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/country-flag/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAkBF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA4B5C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/country-flag/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,aAAa,CAAC;AAErB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAkBF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA4B5C,CAAC"}
@@ -0,0 +1,245 @@
1
+ export declare const COUNTRY_FLAG_POSITIONS: {
2
+ readonly ad: '-48px -27px';
3
+ readonly ae: '-72px -27px';
4
+ readonly af: '-96px -27px';
5
+ readonly ag: '-120px -27px';
6
+ readonly ai: '-144px -27px';
7
+ readonly al: '-168px -27px';
8
+ readonly am: '-192px -27px';
9
+ readonly an: '-216px -27px';
10
+ readonly ao: '-240px -27px';
11
+ readonly aq: '-264px -27px';
12
+ readonly ar: '-288px -27px';
13
+ readonly as: '-312px -27px';
14
+ readonly at: '-336px -27px';
15
+ readonly au: '-360px -27px';
16
+ readonly aw: '-384px -27px';
17
+ readonly ax: '-0px -51px';
18
+ readonly az: '-24px -51px';
19
+ readonly ba: '-48px -51px';
20
+ readonly bb: '-72px -51px';
21
+ readonly bd: '-96px -51px';
22
+ readonly be: '-120px -51px';
23
+ readonly bf: '-144px -51px';
24
+ readonly bg: '-168px -51px';
25
+ readonly bh: '-192px -51px';
26
+ readonly bi: '-216px -51px';
27
+ readonly bj: '-240px -51px';
28
+ readonly bl: '-264px -51px';
29
+ readonly bm: '-288px -51px';
30
+ readonly bn: '-312px -51px';
31
+ readonly bo: '-336px -51px';
32
+ readonly br: '-360px -51px';
33
+ readonly bs: '-384px -51px';
34
+ readonly bt: '-0px -75px';
35
+ readonly bw: '-24px -75px';
36
+ readonly by: '-48px -75px';
37
+ readonly bz: '-72px -75px';
38
+ readonly ca: '-96px -75px';
39
+ readonly cc: '-120px -75px';
40
+ readonly cd: '-144px -75px';
41
+ readonly cf: '-168px -75px';
42
+ readonly cg: '-192px -75px';
43
+ readonly ch: '-216px -75px';
44
+ readonly ci: '-240px -75px';
45
+ readonly ck: '-264px -75px';
46
+ readonly cl: '-288px -75px';
47
+ readonly cm: '-312px -75px';
48
+ readonly cn: '-336px -75px';
49
+ readonly co: '-360px -75px';
50
+ readonly cr: '-384px -75px';
51
+ readonly cu: '-0px -99px';
52
+ readonly cv: '-24px -99px';
53
+ readonly cw: '-48px -99px';
54
+ readonly cx: '-72px -99px';
55
+ readonly cy: '-96px -99px';
56
+ readonly cz: '-120px -99px';
57
+ readonly de: '-144px -99px';
58
+ readonly dj: '-168px -99px';
59
+ readonly dk: '-192px -99px';
60
+ readonly dm: '-216px -99px';
61
+ readonly do: '-240px -99px';
62
+ readonly dz: '-264px -99px';
63
+ readonly ec: '-288px -99px';
64
+ readonly ee: '-312px -99px';
65
+ readonly eg: '-336px -99px';
66
+ readonly eh: '-360px -99px';
67
+ readonly er: '-384px -99px';
68
+ readonly es: '-0px -123px';
69
+ readonly et: '-24px -123px';
70
+ readonly eu: '-48px -123px';
71
+ readonly fi: '-72px -123px';
72
+ readonly fj: '-96px -123px';
73
+ readonly fk: '-120px -123px';
74
+ readonly fm: '-144px -123px';
75
+ readonly fo: '-168px -123px';
76
+ readonly fr: '-192px -123px';
77
+ readonly ga: '-216px -123px';
78
+ readonly gb: '-240px -123px';
79
+ readonly gd: '-264px -123px';
80
+ readonly ge: '-288px -123px';
81
+ readonly gg: '-312px -123px';
82
+ readonly gh: '-336px -123px';
83
+ readonly gi: '-360px -123px';
84
+ readonly gl: '-384px -123px';
85
+ readonly gm: '-0px -147px';
86
+ readonly gn: '-24px -147px';
87
+ readonly gq: '-48px -147px';
88
+ readonly gr: '-72px -147px';
89
+ readonly gs: '-96px -147px';
90
+ readonly gt: '-120px -147px';
91
+ readonly gu: '-144px -147px';
92
+ readonly gw: '-168px -147px';
93
+ readonly gy: '-192px -147px';
94
+ readonly hk: '-216px -147px';
95
+ readonly hn: '-240px -147px';
96
+ readonly hr: '-264px -147px';
97
+ readonly ht: '-288px -147px';
98
+ readonly hu: '-312px -147px';
99
+ readonly ic: '-336px -147px';
100
+ readonly id: '-360px -147px';
101
+ readonly ie: '-384px -147px';
102
+ readonly il: '-0px -171px';
103
+ readonly im: '-24px -171px';
104
+ readonly in: '-48px -171px';
105
+ readonly iq: '-72px -171px';
106
+ readonly ir: '-96px -171px';
107
+ readonly is: '-120px -171px';
108
+ readonly it: '-144px -171px';
109
+ readonly je: '-168px -171px';
110
+ readonly jm: '-192px -171px';
111
+ readonly jo: '-216px -171px';
112
+ readonly jp: '-240px -171px';
113
+ readonly ke: '-264px -171px';
114
+ readonly kg: '-288px -171px';
115
+ readonly kh: '-312px -171px';
116
+ readonly ki: '-336px -171px';
117
+ readonly xk: '-144px 3px';
118
+ readonly km: '-360px -171px';
119
+ readonly kn: '-384px -171px';
120
+ readonly kp: '-0px -195px';
121
+ readonly kr: '-24px -195px';
122
+ readonly kw: '-48px -195px';
123
+ readonly ky: '-72px -195px';
124
+ readonly kz: '-96px -195px';
125
+ readonly la: '-120px -195px';
126
+ readonly lb: '-144px -195px';
127
+ readonly lc: '-168px -195px';
128
+ readonly li: '-192px -195px';
129
+ readonly lk: '-216px -195px';
130
+ readonly lr: '-240px -195px';
131
+ readonly ls: '-264px -195px';
132
+ readonly lt: '-288px -195px';
133
+ readonly lu: '-312px -195px';
134
+ readonly lv: '-336px -195px';
135
+ readonly ly: '-360px -195px';
136
+ readonly ma: '-384px -195px';
137
+ readonly mc: '-0px -219px';
138
+ readonly md: '-24px -219px';
139
+ readonly me: '-48px -219px';
140
+ readonly mf: '-72px -219px';
141
+ readonly mg: '-96px -219px';
142
+ readonly mh: '-120px -219px';
143
+ readonly mk: '-144px -219px';
144
+ readonly ml: '-168px -219px';
145
+ readonly mm: '-192px -219px';
146
+ readonly mn: '-216px -219px';
147
+ readonly mo: '-240px -219px';
148
+ readonly mp: '-264px -219px';
149
+ readonly mq: '-288px -219px';
150
+ readonly mr: '-312px -219px';
151
+ readonly ms: '-336px -219px';
152
+ readonly mt: '-360px -219px';
153
+ readonly mu: '-384px -219px';
154
+ readonly mv: '-0px -243px';
155
+ readonly mw: '-24px -243px';
156
+ readonly mx: '-48px -243px';
157
+ readonly my: '-72px -243px';
158
+ readonly mz: '-96px -243px';
159
+ readonly na: '-120px -243px';
160
+ readonly nc: '-144px -243px';
161
+ readonly ne: '-168px -243px';
162
+ readonly nf: '-192px -243px';
163
+ readonly ng: '-216px -243px';
164
+ readonly ni: '-240px -243px';
165
+ readonly nl: '-264px -243px';
166
+ readonly no: '-288px -243px';
167
+ readonly np: '-312px -243px';
168
+ readonly nr: '-336px -243px';
169
+ readonly nu: '-360px -243px';
170
+ readonly nz: '-384px -243px';
171
+ readonly om: '-0px -267px';
172
+ readonly pa: '-24px -267px';
173
+ readonly pe: '-48px -267px';
174
+ readonly pf: '-72px -267px';
175
+ readonly pg: '-96px -267px';
176
+ readonly ph: '-120px -267px';
177
+ readonly pk: '-192px -267px';
178
+ readonly pl: '-216px -267px';
179
+ readonly pn: '-240px -267px';
180
+ readonly pr: '-264px -267px';
181
+ readonly ps: '-288px -267px';
182
+ readonly pt: '-312px -267px';
183
+ readonly pw: '-336px -267px';
184
+ readonly py: '-360px -267px';
185
+ readonly qa: '-384px -267px';
186
+ readonly ro: '-0px -291px';
187
+ readonly rs: '-24px -291px';
188
+ readonly ru: '-48px -291px';
189
+ readonly rw: '-72px -291px';
190
+ readonly sa: '-96px -291px';
191
+ readonly sb: '-120px -291px';
192
+ readonly sc: '-144px -291px';
193
+ readonly sd: '-168px -291px';
194
+ readonly se: '-192px -291px';
195
+ readonly sg: '-216px -291px';
196
+ readonly sh: '-240px -291px';
197
+ readonly si: '-264px -291px';
198
+ readonly sk: '-288px -291px';
199
+ readonly sl: '-312px -291px';
200
+ readonly sm: '-336px -291px';
201
+ readonly sn: '-360px -291px';
202
+ readonly so: '-384px -291px';
203
+ readonly sr: '-0px -315px';
204
+ readonly ss: '-24px -315px';
205
+ readonly st: '-48px -315px';
206
+ readonly sv: '-72px -315px';
207
+ readonly sy: '-96px -315px';
208
+ readonly sz: '-120px -315px';
209
+ readonly tc: '-144px -315px';
210
+ readonly td: '-168px -315px';
211
+ readonly tf: '-192px -315px';
212
+ readonly tg: '-216px -315px';
213
+ readonly th: '-240px -315px';
214
+ readonly tj: '-264px -315px';
215
+ readonly tk: '-288px -315px';
216
+ readonly tl: '-312px -315px';
217
+ readonly tm: '-336px -315px';
218
+ readonly tn: '-360px -315px';
219
+ readonly to: '-384px -315px';
220
+ readonly tr: '-0px -339px';
221
+ readonly tt: '-24px -339px';
222
+ readonly tv: '-48px -339px';
223
+ readonly tw: '-72px -339px';
224
+ readonly tz: '-96px -339px';
225
+ readonly ua: '-120px -339px';
226
+ readonly ug: '-144px -339px';
227
+ readonly us: '-168px -339px';
228
+ readonly uy: '-192px -339px';
229
+ readonly uz: '-216px -339px';
230
+ readonly va: '-240px -339px';
231
+ readonly vc: '-264px -339px';
232
+ readonly ve: '-288px -339px';
233
+ readonly vg: '-312px -339px';
234
+ readonly vi: '-336px -339px';
235
+ readonly vn: '-360px -339px';
236
+ readonly vu: '-384px -339px';
237
+ readonly wf: '-0px -363px';
238
+ readonly ws: '-24px -363px';
239
+ readonly ye: '-48px -363px';
240
+ readonly za: '-96px -363px';
241
+ readonly zm: '-120px -363px';
242
+ readonly zw: '-144px -363px';
243
+ };
244
+ export type SupportedCountryFlag = keyof typeof COUNTRY_FLAG_POSITIONS;
245
+ //# sourceMappingURL=positions.d.ts.map