@terreno/ui 57.18.0 → 57.20.0

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 (361) hide show
  1. package/.ai/guidelines/core.md +1 -1
  2. package/CHANGELOG.md +2074 -0
  3. package/dist/Accordion.d.ts.map +1 -1
  4. package/dist/Accordion.js +3 -3
  5. package/dist/Accordion.js.map +1 -1
  6. package/dist/AreaChart.d.ts.map +1 -1
  7. package/dist/AreaChart.js +2 -2
  8. package/dist/AreaChart.js.map +1 -1
  9. package/dist/Avatar.d.ts.map +1 -1
  10. package/dist/Avatar.js +3 -1
  11. package/dist/Avatar.js.map +1 -1
  12. package/dist/BarChart.d.ts.map +1 -1
  13. package/dist/BarChart.js +2 -2
  14. package/dist/BarChart.js.map +1 -1
  15. package/dist/Box.d.ts.map +1 -1
  16. package/dist/Box.js +66 -8
  17. package/dist/Box.js.map +1 -1
  18. package/dist/Card.d.ts.map +1 -1
  19. package/dist/Card.js +5 -4
  20. package/dist/Card.js.map +1 -1
  21. package/dist/ChartCard.d.ts.map +1 -1
  22. package/dist/ChartCard.js +4 -2
  23. package/dist/ChartCard.js.map +1 -1
  24. package/dist/Common.d.ts +240 -14
  25. package/dist/Common.d.ts.map +1 -1
  26. package/dist/Common.js.map +1 -1
  27. package/dist/ConsentFormScreen.d.ts +1 -1
  28. package/dist/ConsentFormScreen.d.ts.map +1 -1
  29. package/dist/ConsentFormScreen.js +13 -4
  30. package/dist/ConsentFormScreen.js.map +1 -1
  31. package/dist/DateTimeField.d.ts.map +1 -1
  32. package/dist/DateTimeField.js +5 -3
  33. package/dist/DateTimeField.js.map +1 -1
  34. package/dist/DonutChart.d.ts.map +1 -1
  35. package/dist/DonutChart.js +2 -2
  36. package/dist/DonutChart.js.map +1 -1
  37. package/dist/Field.d.ts.map +1 -1
  38. package/dist/Field.js +2 -0
  39. package/dist/Field.js.map +1 -1
  40. package/dist/FormContainer.d.ts +68 -0
  41. package/dist/FormContainer.d.ts.map +1 -0
  42. package/dist/FormContainer.js +79 -0
  43. package/dist/FormContainer.js.map +1 -0
  44. package/dist/GPTChat.d.ts.map +1 -1
  45. package/dist/GPTChat.js +2 -1
  46. package/dist/GPTChat.js.map +1 -1
  47. package/dist/Heading.d.ts +1 -1
  48. package/dist/Heading.d.ts.map +1 -1
  49. package/dist/Heading.js +5 -2
  50. package/dist/Heading.js.map +1 -1
  51. package/dist/Icon.d.ts +4 -0
  52. package/dist/Icon.d.ts.map +1 -1
  53. package/dist/Icon.js +43 -2
  54. package/dist/Icon.js.map +1 -1
  55. package/dist/LabeledCheckBox.d.ts +22 -0
  56. package/dist/LabeledCheckBox.d.ts.map +1 -0
  57. package/dist/LabeledCheckBox.js +30 -0
  58. package/dist/LabeledCheckBox.js.map +1 -0
  59. package/dist/LineChart.d.ts.map +1 -1
  60. package/dist/LineChart.js +2 -2
  61. package/dist/LineChart.js.map +1 -1
  62. package/dist/ListDetailLayout.d.ts +36 -0
  63. package/dist/ListDetailLayout.d.ts.map +1 -0
  64. package/dist/ListDetailLayout.js +153 -0
  65. package/dist/ListDetailLayout.js.map +1 -0
  66. package/dist/MarkdownEditor.d.ts.map +1 -1
  67. package/dist/MarkdownEditor.js +2 -1
  68. package/dist/MarkdownEditor.js.map +1 -1
  69. package/dist/MediaQuery.d.ts +1 -1
  70. package/dist/MediaQuery.d.ts.map +1 -1
  71. package/dist/MediaQuery.js +1 -1
  72. package/dist/MediaQuery.js.map +1 -1
  73. package/dist/OtpField.d.ts +60 -0
  74. package/dist/OtpField.d.ts.map +1 -0
  75. package/dist/OtpField.js +154 -0
  76. package/dist/OtpField.js.map +1 -0
  77. package/dist/Page.d.ts +1 -0
  78. package/dist/Page.d.ts.map +1 -1
  79. package/dist/Page.js +10 -1
  80. package/dist/Page.js.map +1 -1
  81. package/dist/ProvisionalConsentSigner.d.ts +21 -0
  82. package/dist/ProvisionalConsentSigner.d.ts.map +1 -0
  83. package/dist/ProvisionalConsentSigner.js +199 -0
  84. package/dist/ProvisionalConsentSigner.js.map +1 -0
  85. package/dist/ResponsiveBreakpoint.d.ts +5 -0
  86. package/dist/ResponsiveBreakpoint.d.ts.map +1 -1
  87. package/dist/ResponsiveBreakpoint.js +7 -0
  88. package/dist/ResponsiveBreakpoint.js.map +1 -1
  89. package/dist/Scorecard.d.ts.map +1 -1
  90. package/dist/Scorecard.js +5 -2
  91. package/dist/Scorecard.js.map +1 -1
  92. package/dist/Skeleton.d.ts +39 -0
  93. package/dist/Skeleton.d.ts.map +1 -0
  94. package/dist/Skeleton.js +195 -0
  95. package/dist/Skeleton.js.map +1 -0
  96. package/dist/SocialLoginButton.d.ts +10 -0
  97. package/dist/SocialLoginButton.d.ts.map +1 -1
  98. package/dist/SocialLoginButton.js +26 -8
  99. package/dist/SocialLoginButton.js.map +1 -1
  100. package/dist/SplitPage.d.ts +12 -1
  101. package/dist/SplitPage.d.ts.map +1 -1
  102. package/dist/SplitPage.js +14 -7
  103. package/dist/SplitPage.js.map +1 -1
  104. package/dist/SplitPage.native.d.ts +1 -1
  105. package/dist/SplitPage.native.d.ts.map +1 -1
  106. package/dist/SplitPage.native.js +6 -3
  107. package/dist/SplitPage.native.js.map +1 -1
  108. package/dist/SplitPageLoading.d.ts +14 -0
  109. package/dist/SplitPageLoading.d.ts.map +1 -0
  110. package/dist/SplitPageLoading.js +19 -0
  111. package/dist/SplitPageLoading.js.map +1 -0
  112. package/dist/SyncStatusBanner.d.ts +7 -1
  113. package/dist/SyncStatusBanner.d.ts.map +1 -1
  114. package/dist/SyncStatusBanner.js +20 -4
  115. package/dist/SyncStatusBanner.js.map +1 -1
  116. package/dist/Text.d.ts +3 -1
  117. package/dist/Text.d.ts.map +1 -1
  118. package/dist/Text.js +2 -0
  119. package/dist/Text.js.map +1 -1
  120. package/dist/TextField.d.ts.map +1 -1
  121. package/dist/TextField.js +44 -10
  122. package/dist/TextField.js.map +1 -1
  123. package/dist/charts/ChartFrame.d.ts +2 -2
  124. package/dist/charts/ChartFrame.d.ts.map +1 -1
  125. package/dist/charts/ChartFrame.js +9 -2
  126. package/dist/charts/ChartFrame.js.map +1 -1
  127. package/dist/fieldElements/FieldError.d.ts.map +1 -1
  128. package/dist/fieldElements/FieldError.js +1 -1
  129. package/dist/fieldElements/FieldError.js.map +1 -1
  130. package/dist/index.d.ts +21 -3
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +16 -1
  133. package/dist/index.js.map +1 -1
  134. package/dist/lazyBoundaries/heavyOptionalExports.d.ts +3 -0
  135. package/dist/lazyBoundaries/heavyOptionalExports.d.ts.map +1 -1
  136. package/dist/lazyBoundaries/heavyOptionalExports.js +2 -0
  137. package/dist/lazyBoundaries/heavyOptionalExports.js.map +1 -1
  138. package/dist/login/LastUsedBadge.d.ts +14 -0
  139. package/dist/login/LastUsedBadge.d.ts.map +1 -0
  140. package/dist/login/LastUsedBadge.js +23 -0
  141. package/dist/login/LastUsedBadge.js.map +1 -0
  142. package/dist/login/LoginAccountCard.d.ts +38 -0
  143. package/dist/login/LoginAccountCard.d.ts.map +1 -0
  144. package/dist/login/LoginAccountCard.js +72 -0
  145. package/dist/login/LoginAccountCard.js.map +1 -0
  146. package/dist/login/LoginAccountList.d.ts +33 -0
  147. package/dist/login/LoginAccountList.d.ts.map +1 -0
  148. package/dist/login/LoginAccountList.js +30 -0
  149. package/dist/login/LoginAccountList.js.map +1 -0
  150. package/dist/login/LoginScreen.d.ts +4 -4
  151. package/dist/login/LoginScreen.d.ts.map +1 -1
  152. package/dist/login/LoginScreen.js +294 -13
  153. package/dist/login/LoginScreen.js.map +1 -1
  154. package/dist/login/OutlinePill.d.ts +28 -0
  155. package/dist/login/OutlinePill.d.ts.map +1 -0
  156. package/dist/login/OutlinePill.js +48 -0
  157. package/dist/login/OutlinePill.js.map +1 -0
  158. package/dist/login/TwoFactorChallengeScreen.d.ts +26 -0
  159. package/dist/login/TwoFactorChallengeScreen.d.ts.map +1 -0
  160. package/dist/login/TwoFactorChallengeScreen.js +139 -0
  161. package/dist/login/TwoFactorChallengeScreen.js.map +1 -0
  162. package/dist/login/loginMethods.d.ts +27 -0
  163. package/dist/login/loginMethods.d.ts.map +1 -0
  164. package/dist/login/loginMethods.js +37 -0
  165. package/dist/login/loginMethods.js.map +1 -0
  166. package/dist/login/loginTypes.d.ts +202 -5
  167. package/dist/login/loginTypes.d.ts.map +1 -1
  168. package/dist/pdfHtmlTemplate.d.ts +17 -0
  169. package/dist/pdfHtmlTemplate.d.ts.map +1 -1
  170. package/dist/pdfHtmlTemplate.js +78 -0
  171. package/dist/pdfHtmlTemplate.js.map +1 -1
  172. package/dist/security/AccountSecurityScreen.d.ts +10 -0
  173. package/dist/security/AccountSecurityScreen.d.ts.map +1 -0
  174. package/dist/security/AccountSecurityScreen.js +50 -0
  175. package/dist/security/AccountSecurityScreen.js.map +1 -0
  176. package/dist/security/LinkedAccountsCard.d.ts +32 -0
  177. package/dist/security/LinkedAccountsCard.d.ts.map +1 -0
  178. package/dist/security/LinkedAccountsCard.js +145 -0
  179. package/dist/security/LinkedAccountsCard.js.map +1 -0
  180. package/dist/security/PasskeysCard.d.ts +39 -0
  181. package/dist/security/PasskeysCard.d.ts.map +1 -0
  182. package/dist/security/PasskeysCard.js +168 -0
  183. package/dist/security/PasskeysCard.js.map +1 -0
  184. package/dist/security/PasswordCard.d.ts +32 -0
  185. package/dist/security/PasswordCard.d.ts.map +1 -0
  186. package/dist/security/PasswordCard.js +198 -0
  187. package/dist/security/PasswordCard.js.map +1 -0
  188. package/dist/security/SessionsCard.d.ts +39 -0
  189. package/dist/security/SessionsCard.d.ts.map +1 -0
  190. package/dist/security/SessionsCard.js +168 -0
  191. package/dist/security/SessionsCard.js.map +1 -0
  192. package/dist/security/TwoFactorSettingsCard.d.ts +55 -0
  193. package/dist/security/TwoFactorSettingsCard.d.ts.map +1 -0
  194. package/dist/security/TwoFactorSettingsCard.js +458 -0
  195. package/dist/security/TwoFactorSettingsCard.js.map +1 -0
  196. package/dist/security/securityMethods.d.ts +40 -0
  197. package/dist/security/securityMethods.d.ts.map +1 -0
  198. package/dist/security/securityMethods.js +66 -0
  199. package/dist/security/securityMethods.js.map +1 -0
  200. package/dist/security/securityTypes.d.ts +467 -0
  201. package/dist/security/securityTypes.d.ts.map +1 -0
  202. package/dist/security/securityTypes.js +2 -0
  203. package/dist/security/securityTypes.js.map +1 -0
  204. package/dist/security/userAgent.d.ts +26 -0
  205. package/dist/security/userAgent.d.ts.map +1 -0
  206. package/dist/security/userAgent.js +80 -0
  207. package/dist/security/userAgent.js.map +1 -0
  208. package/dist/signUp/OAuthButtons.d.ts +28 -5
  209. package/dist/signUp/OAuthButtons.d.ts.map +1 -1
  210. package/dist/signUp/OAuthButtons.js +44 -5
  211. package/dist/signUp/OAuthButtons.js.map +1 -1
  212. package/dist/signUp/SignUpScreen.d.ts.map +1 -1
  213. package/dist/signUp/SignUpScreen.js +50 -5
  214. package/dist/signUp/SignUpScreen.js.map +1 -1
  215. package/dist/signUp/signUpTypes.d.ts +21 -1
  216. package/dist/signUp/signUpTypes.d.ts.map +1 -1
  217. package/dist/useConsentForms.d.ts +9 -0
  218. package/dist/useConsentForms.d.ts.map +1 -1
  219. package/dist/useConsentForms.js +18 -0
  220. package/dist/useConsentForms.js.map +1 -1
  221. package/dist/useProvisionalConsent.d.ts +124 -0
  222. package/dist/useProvisionalConsent.d.ts.map +1 -0
  223. package/dist/useProvisionalConsent.js +79 -0
  224. package/dist/useProvisionalConsent.js.map +1 -0
  225. package/dist/withLoading.d.ts +20 -0
  226. package/dist/withLoading.d.ts.map +1 -0
  227. package/dist/withLoading.js +24 -0
  228. package/dist/withLoading.js.map +1 -0
  229. package/package.json +4 -2
  230. package/src/Accordion.test.tsx +5 -0
  231. package/src/Accordion.tsx +3 -8
  232. package/src/AreaChart.test.tsx +15 -0
  233. package/src/AreaChart.tsx +6 -0
  234. package/src/Avatar.test.tsx +8 -0
  235. package/src/Avatar.tsx +2 -0
  236. package/src/BarChart.test.tsx +15 -0
  237. package/src/BarChart.tsx +6 -0
  238. package/src/Box.test.tsx +131 -1
  239. package/src/Box.tsx +77 -8
  240. package/src/Card.test.tsx +48 -0
  241. package/src/Card.tsx +13 -2
  242. package/src/ChartCard.test.tsx +30 -0
  243. package/src/ChartCard.tsx +18 -1
  244. package/src/Common.ts +263 -14
  245. package/src/ConsentFormScreen.test.tsx +84 -0
  246. package/src/ConsentFormScreen.tsx +28 -4
  247. package/src/DateTimeField.tsx +5 -3
  248. package/src/DonutChart.test.tsx +15 -0
  249. package/src/DonutChart.tsx +6 -0
  250. package/src/Field.tsx +2 -0
  251. package/src/FilePickerButton.test.tsx +35 -0
  252. package/src/FormContainer.test.tsx +242 -0
  253. package/src/FormContainer.tsx +177 -0
  254. package/src/GPTChat.test.tsx +16 -0
  255. package/src/GPTChat.tsx +8 -2
  256. package/src/Heading.test.tsx +14 -0
  257. package/src/Heading.tsx +6 -1
  258. package/src/Icon.test.tsx +52 -1
  259. package/src/Icon.tsx +92 -3
  260. package/src/IconButton.test.tsx +85 -0
  261. package/src/LabeledCheckBox.test.tsx +45 -0
  262. package/src/LabeledCheckBox.tsx +89 -0
  263. package/src/LineChart.test.tsx +18 -0
  264. package/src/LineChart.tsx +6 -0
  265. package/src/ListDetailLayout.tsx +247 -0
  266. package/src/MarkdownEditor.tsx +2 -1
  267. package/src/MediaQuery.ts +1 -0
  268. package/src/OtpField.test.tsx +280 -0
  269. package/src/OtpField.tsx +307 -0
  270. package/src/Page.test.tsx +38 -0
  271. package/src/Page.tsx +38 -19
  272. package/src/ProvisionalConsentSigner.test.tsx +625 -0
  273. package/src/ProvisionalConsentSigner.tsx +423 -0
  274. package/src/ResponsiveBreakpoint.test.tsx +7 -0
  275. package/src/ResponsiveBreakpoint.tsx +14 -0
  276. package/src/RootImportRegression.test.tsx +3 -0
  277. package/src/Scorecard.test.tsx +11 -0
  278. package/src/Scorecard.tsx +21 -0
  279. package/src/Skeleton.test.tsx +262 -0
  280. package/src/Skeleton.tsx +430 -0
  281. package/src/SocialLoginButton.test.tsx +14 -0
  282. package/src/SocialLoginButton.tsx +51 -7
  283. package/src/SplitPage.native.tsx +16 -3
  284. package/src/SplitPage.tsx +29 -12
  285. package/src/SplitPageLoading.test.tsx +51 -0
  286. package/src/SplitPageLoading.tsx +53 -0
  287. package/src/SyncStatusBanner.test.tsx +61 -4
  288. package/src/SyncStatusBanner.tsx +29 -3
  289. package/src/Text.tsx +4 -1
  290. package/src/TextField.test.tsx +150 -0
  291. package/src/TextField.tsx +66 -8
  292. package/src/__snapshots__/AddressField.test.tsx.snap +12 -0
  293. package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +15 -0
  294. package/src/__snapshots__/Avatar.test.tsx.snap +1 -0
  295. package/src/__snapshots__/CustomSelectField.test.tsx.snap +3 -0
  296. package/src/__snapshots__/EmailField.test.tsx.snap +6 -0
  297. package/src/__snapshots__/Field.test.tsx.snap +37 -0
  298. package/src/__snapshots__/HeightField.test.tsx.snap +2 -0
  299. package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +3 -0
  300. package/src/__snapshots__/NumberField.test.tsx.snap +3 -0
  301. package/src/__snapshots__/Page.test.tsx.snap +28 -5
  302. package/src/__snapshots__/PhoneNumberField.test.tsx.snap +12 -0
  303. package/src/__snapshots__/Slider.test.tsx.snap +1 -0
  304. package/src/__snapshots__/SocialLoginButton.test.tsx.snap +43 -22
  305. package/src/__snapshots__/SplitPage.test.tsx.snap +16 -0
  306. package/src/__snapshots__/TapToEdit.test.tsx.snap +3 -0
  307. package/src/__snapshots__/TextArea.test.tsx.snap +17 -1
  308. package/src/__snapshots__/TextField.test.tsx.snap +19 -2
  309. package/src/__snapshots__/TypedSignatureField.test.tsx.snap +3 -0
  310. package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +18 -0
  311. package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +12 -0
  312. package/src/bunSetup.ts +13 -1
  313. package/src/charts/ChartFrame.tsx +19 -8
  314. package/src/fieldElements/FieldError.tsx +1 -0
  315. package/src/fieldElements/__snapshots__/FieldError.test.tsx.snap +2 -0
  316. package/src/index.tsx +44 -1
  317. package/src/isolated/ListDetailLayout.isolated.tsx +634 -0
  318. package/src/lazyBoundaries/heavyOptionalExports.tsx +7 -0
  319. package/src/login/LastUsedBadge.tsx +40 -0
  320. package/src/login/LoginAccountCard.tsx +205 -0
  321. package/src/login/LoginAccountList.tsx +115 -0
  322. package/src/login/LoginScreen.test.tsx +837 -1
  323. package/src/login/LoginScreen.tsx +674 -91
  324. package/src/login/OutlinePill.tsx +110 -0
  325. package/src/login/TwoFactorChallengeScreen.test.tsx +376 -0
  326. package/src/login/TwoFactorChallengeScreen.tsx +307 -0
  327. package/src/login/__snapshots__/LoginScreen.test.tsx.snap +1454 -334
  328. package/src/login/loginMethods.test.ts +53 -0
  329. package/src/login/loginMethods.ts +60 -0
  330. package/src/login/loginTypes.ts +208 -5
  331. package/src/pdfHtmlTemplate.test.ts +243 -4
  332. package/src/pdfHtmlTemplate.ts +93 -0
  333. package/src/security/AccountSecurityScreen.test.tsx +262 -0
  334. package/src/security/AccountSecurityScreen.tsx +156 -0
  335. package/src/security/LinkedAccountsCard.test.tsx +371 -0
  336. package/src/security/LinkedAccountsCard.tsx +297 -0
  337. package/src/security/PasskeysCard.test.tsx +378 -0
  338. package/src/security/PasskeysCard.tsx +371 -0
  339. package/src/security/PasswordCard.test.tsx +445 -0
  340. package/src/security/PasswordCard.tsx +342 -0
  341. package/src/security/SessionsCard.test.tsx +349 -0
  342. package/src/security/SessionsCard.tsx +362 -0
  343. package/src/security/TwoFactorSettingsCard.test.tsx +700 -0
  344. package/src/security/TwoFactorSettingsCard.tsx +872 -0
  345. package/src/security/securityMethods.test.ts +101 -0
  346. package/src/security/securityMethods.ts +104 -0
  347. package/src/security/securityTypes.ts +480 -0
  348. package/src/security/userAgent.test.ts +119 -0
  349. package/src/security/userAgent.ts +102 -0
  350. package/src/signUp/OAuthButtons.test.tsx +27 -0
  351. package/src/signUp/OAuthButtons.tsx +153 -19
  352. package/src/signUp/SignUpScreen.test.tsx +170 -1
  353. package/src/signUp/SignUpScreen.tsx +87 -25
  354. package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +22 -11
  355. package/src/signUp/signUpTypes.ts +23 -1
  356. package/src/useConsentForms.test.ts +37 -1
  357. package/src/useConsentForms.ts +25 -0
  358. package/src/useProvisionalConsent.test.ts +256 -0
  359. package/src/useProvisionalConsent.ts +218 -0
  360. package/src/withLoading.test.tsx +61 -0
  361. package/src/withLoading.tsx +50 -0
@@ -0,0 +1,467 @@
1
+ import type { ReactNode } from "react";
2
+ import type { IconName } from "../Common";
3
+ /**
4
+ * A sign-in account linked to the user, built from a Better Auth `listAccounts` entry. A password
5
+ * is an account too, with `providerId` `"credential"`. Better Auth returns no email per account,
6
+ * so `email` comes from elsewhere (the session user, or a per-account info call) when shown.
7
+ */
8
+ export interface LinkedAccount {
9
+ /**
10
+ * Better Auth's own account row id (`listAccounts()[i].id`). This is what `unlinkAccount`
11
+ * takes as `accountId`; it also keys the card's rows.
12
+ */
13
+ id: string;
14
+ /** Provider id: `"google"`, `"github"`, `"apple"`, a generic provider id, or `"credential"`. */
15
+ providerId: string;
16
+ /** The account's id at the provider (Better Auth's `accountId`). Display only. */
17
+ accountId?: string;
18
+ /** Email address on the provider account, when known. */
19
+ email?: string;
20
+ /**
21
+ * When the account was linked: Better Auth's `createdAt`, as a `Date` (the Better Auth client
22
+ * parses dates) or an ISO 8601 string.
23
+ */
24
+ linkedAt?: string | Date;
25
+ }
26
+ /** A provider the app lets users link: a branded provider or a generic OAuth/OIDC provider. */
27
+ export interface LinkableProvider {
28
+ /** Provider id, matching `LinkedAccount.providerId` and the id passed to `linkSocial`. */
29
+ id: string;
30
+ /** Display name. Defaults to the branded name ("Google", "GitHub", "Apple") or the id. */
31
+ label?: string;
32
+ /** FontAwesome icon. Branded providers default to their brand icon; others to a key. */
33
+ iconName?: IconName;
34
+ }
35
+ /**
36
+ * Props for the LinkedAccountsCard component.
37
+ */
38
+ export interface LinkedAccountsCardProps {
39
+ /**
40
+ * Every account linked to the user, including the `"credential"` password account. The
41
+ * password is not listed as a row (PasswordCard covers it) but counts as a sign-in method.
42
+ */
43
+ accounts: LinkedAccount[];
44
+ /**
45
+ * Providers the app offers. Each renders a row, linked or not. A linked account whose
46
+ * provider is not in this list still renders as a linked row after them.
47
+ */
48
+ providers: LinkableProvider[];
49
+ /**
50
+ * Called when Link is pressed. The row shows a spinner until the returned promise settles. A
51
+ * rejection shows its message as the card error.
52
+ */
53
+ onLink?: (providerId: string) => void | Promise<void>;
54
+ /**
55
+ * Called after the user confirms Unlink, with the row's account. Pass `account.id` to Better
56
+ * Auth's `unlinkAccount({accountId})`, and throw when it resolves an `error` (the client
57
+ * resolves `{data, error}` instead of rejecting). The row shows a spinner until the returned promise
58
+ * settles. A rejection shows its message as the card error.
59
+ */
60
+ onUnlink?: (providerId: string, account: LinkedAccount) => void | Promise<void>;
61
+ /**
62
+ * Sign-in methods that are not accounts, such as passkeys. They count toward the last-method
63
+ * rule, so a user with a passkey can unlink their only provider. Better Auth itself refuses to
64
+ * unlink a user's last account unless `account.accountLinking.allowUnlinkingAll` is set, so
65
+ * pass 0 unless the server allows unlinking every account.
66
+ * @default 0
67
+ */
68
+ otherMethodCount?: number;
69
+ /**
70
+ * Allows unlinking the only remaining sign-in method. Leave false unless the app has another
71
+ * way back in (for example, a verified email for password reset).
72
+ * @default false
73
+ */
74
+ canUnlinkLast?: boolean;
75
+ /** Error text shown with `role="alert"`, for example from a failed link redirect. */
76
+ error?: string;
77
+ /** Disables every row, for example while accounts load. */
78
+ disabled?: boolean;
79
+ /**
80
+ * Heading text.
81
+ * @default "Linked accounts"
82
+ */
83
+ title?: string;
84
+ /**
85
+ * Text under the heading.
86
+ * @default "Sign in with any account linked here."
87
+ */
88
+ description?: string;
89
+ /**
90
+ * Root testID; child testIDs are derived from it.
91
+ * @default "linked-accounts-card"
92
+ */
93
+ testID?: string;
94
+ }
95
+ /** Whether a PasswordCard submission changes an existing password or sets a first one. */
96
+ export type PasswordCardMode = "change" | "set";
97
+ /** What {@link PasswordCardProps.onSubmit} receives. */
98
+ export interface PasswordCardSubmission {
99
+ /** `change` when the user has a password, `set` for an OAuth-only user. */
100
+ mode: PasswordCardMode;
101
+ /** The current password. Present only in `change` mode. */
102
+ currentPassword?: string;
103
+ /** The new password, already checked against `minLength` and the confirmation. */
104
+ newPassword: string;
105
+ /** True when the user checked "Sign out of other devices". Always false in `set` mode. */
106
+ revokeOtherSessions: boolean;
107
+ }
108
+ /**
109
+ * Props for the PasswordCard component.
110
+ */
111
+ export interface PasswordCardProps {
112
+ /**
113
+ * Whether the user has a password (a `"credential"` account). True shows "Change password";
114
+ * false shows "Set a password".
115
+ */
116
+ hasPassword: boolean;
117
+ /**
118
+ * Called with valid values. Resolve to show the success message and clear the form; reject to
119
+ * show the error's message under the form.
120
+ */
121
+ onSubmit: (values: PasswordCardSubmission) => Promise<void>;
122
+ /**
123
+ * Shows the "Sign out of other devices" checkbox in change mode.
124
+ * @default true
125
+ */
126
+ showRevokeOtherSessions?: boolean;
127
+ /**
128
+ * Minimum new-password length. Better Auth's default is 8.
129
+ * @default 8
130
+ */
131
+ minLength?: number;
132
+ /** Error text shown with `role="alert"`, for example a wrong current password. */
133
+ error?: string;
134
+ /** Disables the form and shows a spinner on the submit button. */
135
+ loading?: boolean;
136
+ /**
137
+ * The signed-in user's email or username. On web it goes in a hidden `autocomplete="username"`
138
+ * field so password managers update that account's saved password.
139
+ */
140
+ username?: string;
141
+ /**
142
+ * Root testID; child testIDs are derived from it.
143
+ * @default "password-card"
144
+ */
145
+ testID?: string;
146
+ }
147
+ /**
148
+ * A passkey registered to the user. The shape is a subset of `@better-auth/passkey`'s `Passkey`,
149
+ * so `authClient.passkey.listUserPasskeys()` data can be passed as is.
150
+ */
151
+ export interface AccountPasskey {
152
+ /** Better Auth's passkey id: what `deletePasskey({id})` and `updatePasskey({id, name})` take. */
153
+ id: string;
154
+ /** The user's label for the passkey. Takes precedence over `authenticatorName`. */
155
+ name?: string;
156
+ /**
157
+ * A fallback label for an unnamed passkey, such as the authenticator model a connected screen
158
+ * looks up with `getAuthenticatorName(aaguid)` from `@better-auth/passkey` ("iCloud Keychain").
159
+ * With neither `name` nor this, the row shows "Unnamed passkey".
160
+ */
161
+ authenticatorName?: string;
162
+ /** When the passkey was added, as a `Date` (the Better Auth client parses dates) or ISO string. */
163
+ createdAt?: string | Date;
164
+ /**
165
+ * When the passkey was last used to sign in. Better Auth does not store this; pass it when the
166
+ * app tracks it.
167
+ */
168
+ lastUsedAt?: string | Date;
169
+ /** Whether the credential is backed up (synced) by its provider, such as iCloud Keychain. */
170
+ backedUp?: boolean;
171
+ }
172
+ /**
173
+ * Props for the PasskeysCard component.
174
+ */
175
+ export interface PasskeysCardProps {
176
+ /** The user's passkeys, one row each, keyed by `id`. */
177
+ passkeys: AccountPasskey[];
178
+ /**
179
+ * Called when the user confirms the Add dialog, with the name they typed (trimmed), or
180
+ * undefined when they left it blank. Pass it to `authClient.passkey.addPasskey({name})`. The
181
+ * Add button shows a spinner until the returned promise settles. A rejection (for example, the
182
+ * user cancelling the browser prompt) shows its message as the card error. The Better Auth
183
+ * client resolves `{data, error}` instead of rejecting, so throw when `error` is set; the same
184
+ * applies to every callback below.
185
+ */
186
+ onAdd?: (name?: string) => void | Promise<void>;
187
+ /**
188
+ * Called when the user saves a new name in the Rename dialog, with the trimmed name. Pass it to
189
+ * `authClient.passkey.updatePasskey({id, name})`. Same spinner and error handling as `onAdd`.
190
+ */
191
+ onRename?: (id: string, name: string) => void | Promise<void>;
192
+ /**
193
+ * Called after the user confirms Remove, with the row's passkey. Pass `passkey.id` to
194
+ * `authClient.passkey.deletePasskey({id})`. Same spinner and error handling as `onAdd`.
195
+ */
196
+ onRemove?: (passkey: AccountPasskey) => void | Promise<void>;
197
+ /**
198
+ * Whether this device and browser can create passkeys (for example, WebAuthn is available).
199
+ * False hides Add and explains why; existing passkeys can still be renamed and removed.
200
+ * @default true
201
+ */
202
+ supported?: boolean;
203
+ /** Error text shown with `role="alert"`; overrides a rejection message. */
204
+ error?: string;
205
+ /** Disables every button, for example while passkeys load. */
206
+ disabled?: boolean;
207
+ /**
208
+ * Heading text.
209
+ * @default "Passkeys"
210
+ */
211
+ title?: string;
212
+ /**
213
+ * Text under the heading.
214
+ * @default "Sign in with your fingerprint, face, or screen lock instead of a password."
215
+ */
216
+ description?: string;
217
+ /**
218
+ * Root testID; child testIDs are derived from it.
219
+ * @default "passkeys-card"
220
+ */
221
+ testID?: string;
222
+ }
223
+ /**
224
+ * A signed-in session. The shape is a subset of Better Auth's session, so `listSessions()` data
225
+ * can be passed as is.
226
+ */
227
+ export interface AccountSession {
228
+ /** Better Auth's session id. Keys the row. */
229
+ id: string;
230
+ /** The session token: what `revokeSession({token})` takes. */
231
+ token?: string;
232
+ /** The user agent that created the session. The row shows the browser and OS parsed from it. */
233
+ userAgent?: string | null;
234
+ /** The IP address that created the session. */
235
+ ipAddress?: string | null;
236
+ /** A place name for the session ("Denver, US"), when the app looks one up. */
237
+ location?: string;
238
+ /** When the session signed in, as a `Date` or ISO string: the row's "Signed in" time. */
239
+ createdAt?: string | Date;
240
+ /**
241
+ * When the session was last refreshed: the row's "Last refreshed" time. Better Auth moves it
242
+ * only once per `session.updateAge` (a day by default), so it is not a live activity time.
243
+ */
244
+ updatedAt?: string | Date;
245
+ /** When the session expires. */
246
+ expiresAt?: string | Date;
247
+ }
248
+ /**
249
+ * Props for the SessionsCard component.
250
+ */
251
+ export interface SessionsCardProps {
252
+ /** The user's active sessions, one row each, keyed by `id`. The current session is listed first. */
253
+ sessions: AccountSession[];
254
+ /**
255
+ * The current session's id (`useSession().data.session.id`). The matching row is marked "This
256
+ * device" and cannot be revoked on its own. Pass this or `currentSessionToken`.
257
+ */
258
+ currentSessionId?: string;
259
+ /** The current session's token, matched against each session's `token`. */
260
+ currentSessionToken?: string;
261
+ /**
262
+ * Called when the user signs out another session, with that session. Pass `session.token` to
263
+ * `authClient.revokeSession({token})` and throw when it resolves an `error` (the Better Auth
264
+ * client resolves `{data, error}` instead of rejecting). Not offered for the current session. The row shows a
265
+ * spinner until the returned promise settles; a rejection shows its message as the card error.
266
+ */
267
+ onRevoke?: (session: AccountSession) => void | Promise<void>;
268
+ /**
269
+ * Called after the user confirms "Sign out everywhere else". Call
270
+ * `authClient.revokeOtherSessions()` and throw when it resolves an `error`. Disabled when there
271
+ * are no other sessions.
272
+ */
273
+ onRevokeOthers?: () => void | Promise<void>;
274
+ /**
275
+ * The time relative times ("Signed in 5 minutes ago") are measured from. When omitted, the card
276
+ * uses the current time and recomputes it every minute; pass it to make the output
277
+ * deterministic (tests, screenshots).
278
+ */
279
+ now?: Date;
280
+ /** Error text shown with `role="alert"`; overrides a rejection message. */
281
+ error?: string;
282
+ /** Disables every button, for example while sessions load. */
283
+ disabled?: boolean;
284
+ /**
285
+ * Heading text.
286
+ * @default "Where you're signed in"
287
+ */
288
+ title?: string;
289
+ /**
290
+ * Text under the heading.
291
+ * @default "Sign out of any device you don't recognize."
292
+ */
293
+ description?: string;
294
+ /**
295
+ * Root testID; child testIDs are derived from it.
296
+ * @default "sessions-card"
297
+ */
298
+ testID?: string;
299
+ }
300
+ /**
301
+ * What {@link TwoFactorSettingsCardProps.onStartEnroll} resolves: the TOTP branch of Better
302
+ * Auth's `twoFactor.enable()` data. `enable()` resolves `{method: "otp"}` or
303
+ * `{method: "totp", totpURI, backupCodes}`, so narrow it with `"totpURI" in data` first.
304
+ */
305
+ export interface TwoFactorEnrollment {
306
+ /**
307
+ * The `otpauth://totp/...` URI the authenticator app scans. The card draws it as a QR code and
308
+ * shows its `secret` parameter for manual entry.
309
+ */
310
+ totpURI: string;
311
+ /** The single-use backup codes generated with the secret. */
312
+ backupCodes: string[];
313
+ }
314
+ /**
315
+ * Props for the TwoFactorSettingsCard component.
316
+ */
317
+ export interface TwoFactorSettingsCardProps {
318
+ /**
319
+ * Whether two-factor authentication is on (Better Auth's `user.twoFactorEnabled`). False offers
320
+ * "Turn on"; true offers new backup codes and "Turn off". An enrollment or new-codes flow in
321
+ * progress keeps showing until the user finishes it, even after this flips.
322
+ */
323
+ enabled: boolean;
324
+ /**
325
+ * How many unused backup codes the user has left. Shown when given, with a warning below 3.
326
+ * Better Auth does not report this on the session; pass it when the app knows it.
327
+ */
328
+ backupCodesRemaining?: number;
329
+ /**
330
+ * Called after the password step (or at once when `requirePassword` is false) to start
331
+ * enrollment. Call `authClient.twoFactor.enable({password})`; throw when it resolves an `error`
332
+ * (the Better Auth client resolves `{data, error}` instead of rejecting) or data without a
333
+ * `totpURI` (the `{method: "otp"}` branch), else return `{totpURI, backupCodes}` from it.
334
+ * The same applies to every callback below. A rejection shows its message on the step.
335
+ */
336
+ onStartEnroll: (password?: string) => Promise<TwoFactorEnrollment>;
337
+ /**
338
+ * Called with the code the user typed from their authenticator app. Call
339
+ * `authClient.twoFactor.verifyTotp({code})`, which turns two-factor on once it succeeds. A
340
+ * rejection clears the code and shows its message.
341
+ */
342
+ onVerify: (code: string) => Promise<void>;
343
+ /**
344
+ * Called after the password step to replace the backup codes. Call
345
+ * `authClient.twoFactor.generateBackupCodes({password})` and return `data.backupCodes`. Hidden
346
+ * when not passed.
347
+ */
348
+ onRegenerateBackupCodes?: (password?: string) => Promise<string[]>;
349
+ /**
350
+ * Called after the password step and a destructive confirm. Call
351
+ * `authClient.twoFactor.disable({password})`. Hidden when not passed.
352
+ */
353
+ onDisable?: (password?: string) => Promise<void>;
354
+ /**
355
+ * Asks for the password before enrolling, replacing backup codes, and turning off. Better Auth
356
+ * requires it unless its two-factor plugin sets `allowPasswordless` (Terreno's `twoFactor`
357
+ * config does not), and even then for users who have a password; with `allowPasswordless`,
358
+ * pass `requirePassword={hasPassword}`. When false, callbacks get `undefined`.
359
+ * @default true
360
+ */
361
+ requirePassword?: boolean;
362
+ /**
363
+ * Whether the user has a password (a `"credential"` account; see `hasPasswordCredential`).
364
+ * With `requirePassword`, a user without one can't confirm, so Turn on, Get new backup codes
365
+ * and Turn off are disabled and the card asks them to set a password first.
366
+ * @default true
367
+ */
368
+ hasPassword?: boolean;
369
+ /**
370
+ * Digits in an authenticator code: Better Auth's `totpOptions.digits`. Defaults to the
371
+ * `digits` parameter of the enrollment's `totpURI`, else 6.
372
+ */
373
+ digits?: number;
374
+ /** Error text shown with `role="alert"`; overrides a rejection message. */
375
+ error?: string;
376
+ /**
377
+ * Disables Turn on, Get new backup codes, Turn off and the password step, for example while
378
+ * the user loads.
379
+ */
380
+ disabled?: boolean;
381
+ /**
382
+ * The signed-in user's email or username. On web it goes in a hidden `autocomplete="username"`
383
+ * field next to the password step so password managers fill the right account's password.
384
+ */
385
+ username?: string;
386
+ /**
387
+ * Heading text.
388
+ * @default "Two-factor authentication"
389
+ */
390
+ title?: string;
391
+ /**
392
+ * Text under the heading.
393
+ * @default "Sign in with a code from an authenticator app as well as your password."
394
+ */
395
+ description?: string;
396
+ /**
397
+ * Root testID; child testIDs are derived from it.
398
+ * @default "two-factor-settings-card"
399
+ */
400
+ testID?: string;
401
+ }
402
+ /**
403
+ * Props for the AccountSecurityScreen component. Each card renders only when its props are given,
404
+ * so leave out the props of a feature the app has turned off (for example, `passkeys` when the
405
+ * server has no passkey plugin) and its card disappears.
406
+ */
407
+ export interface AccountSecurityScreenProps {
408
+ /**
409
+ * Props for the LinkedAccountsCard, shown first under "Sign-in methods". Omit to hide the card.
410
+ */
411
+ linkedAccounts?: LinkedAccountsCardProps;
412
+ /** Props for the PasswordCard, shown after linked accounts. Omit to hide the card. */
413
+ password?: PasswordCardProps;
414
+ /** Props for the PasskeysCard. Omit to hide the card, for example when passkeys are off. */
415
+ passkeys?: PasskeysCardProps;
416
+ /** Props for the TwoFactorSettingsCard. Omit to hide the card, for example when 2FA is off. */
417
+ twoFactor?: TwoFactorSettingsCardProps;
418
+ /** Props for the SessionsCard, shown last. Omit to hide the card. */
419
+ sessions?: SessionsCardProps;
420
+ /**
421
+ * Page heading.
422
+ * @default "Security"
423
+ */
424
+ title?: string;
425
+ /** Text under the heading. */
426
+ description?: string;
427
+ /**
428
+ * Content under the heading and description and above the cards, such as the signed-in
429
+ * user's name and email or a notice. Shown in every state.
430
+ */
431
+ header?: ReactNode;
432
+ /**
433
+ * Extra content after the cards, such as an app-specific card. Hidden with the cards while
434
+ * loading or showing `error`.
435
+ */
436
+ children?: ReactNode;
437
+ /**
438
+ * Shows a spinner instead of the cards, for example while the session, accounts, passkeys and
439
+ * sessions load. Takes precedence over `error`, so a retry in flight shows as loading.
440
+ */
441
+ isLoading?: boolean;
442
+ /**
443
+ * A page-level error, for example when the data the cards need failed to load. Shown with
444
+ * `role="alert"` instead of the cards. Errors from a card's own action belong in that card's
445
+ * `error` prop.
446
+ */
447
+ error?: string;
448
+ /** Called by the Try again button under `error`. Without it the button is hidden. */
449
+ onRetry?: () => void;
450
+ /**
451
+ * Wraps the screen in a scrolling ui `Page`. Pass false when the screen sits inside your own
452
+ * `Page`, `ScrollView` or tab layout, so scroll views do not nest.
453
+ * @default true
454
+ */
455
+ withPage?: boolean;
456
+ /**
457
+ * The widest the content grows, in pixels. Cards stack in one column at any width.
458
+ * @default 720
459
+ */
460
+ maxWidth?: number;
461
+ /**
462
+ * Root testID; child testIDs are derived from it.
463
+ * @default "account-security-screen"
464
+ */
465
+ testID?: string;
466
+ }
467
+ //# sourceMappingURL=securityTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"securityTypes.d.ts","sourceRoot":"","sources":["../../src/security/securityTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AAExC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,gGAAgG;IAChG,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,SAAS,CAAC,EAAE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AGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=securityTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"securityTypes.js","sourceRoot":"","sources":["../../src/security/securityTypes.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ /** The kind of device a session's user agent came from. */
2
+ export type UserAgentDeviceType = "desktop" | "mobile" | "tablet" | "unknown";
3
+ /** What a session row shows about the device behind a user agent. */
4
+ export interface ParsedUserAgent {
5
+ /** Browser name ("Chrome", "Safari", ...), or "App" for a native app's HTTP client. */
6
+ browser?: string;
7
+ /** Operating system name ("macOS", "iOS", "Android", ...). */
8
+ os?: string;
9
+ /** Desktop, mobile, tablet, or unknown when the user agent says nothing recognizable. */
10
+ deviceType: UserAgentDeviceType;
11
+ }
12
+ /**
13
+ * Reads the browser, operating system and device type from a session's user agent. Covers the
14
+ * common browsers and the HTTP clients React Native apps send (`CFNetwork`/`Darwin` on iOS,
15
+ * `okhttp` on Android). Parts it can't recognize are left out.
16
+ *
17
+ * User agent sniffing has limits: iPadOS Safari requests desktop sites by default and reports
18
+ * `Macintosh`, so it reads as Safari on macOS (desktop); and macOS native apps also send
19
+ * `CFNetwork`/`Darwin`, so they read as an iOS app.
20
+ */
21
+ export declare const parseUserAgent: (userAgent?: string | null) => ParsedUserAgent;
22
+ /** Names a parsed user agent: "Chrome on macOS", or whichever part is known, or "Unknown device". */
23
+ export declare const getUserAgentLabel: ({ browser, os }: ParsedUserAgent) => string;
24
+ /** "Chrome on macOS", or whichever part is known, or "Unknown device". */
25
+ export declare const describeUserAgent: (userAgent?: string | null) => string;
26
+ //# sourceMappingURL=userAgent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userAgent.d.ts","sourceRoot":"","sources":["../../src/security/userAgent.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE9E,qEAAqE;AACrE,MAAM,WAAW,eAAe;IAC9B,uFAAuF;IACvF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yFAAyF;IACzF,UAAU,EAAE,mBAAmB,CAAC;CACjC;AAqDD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,GAAI,YAAY,MAAM,GAAG,IAAI,KAAG,eAe1D,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,iBAAiB,GAAI,iBAAe,eAAe,KAAG,MAKlE,CAAC;AAEF,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,GAAG,IAAI,KAAG,MAE7D,CAAC"}
@@ -0,0 +1,80 @@
1
+ /** Browser patterns, most specific first: Edge and Opera also send "Chrome", Chrome sends "Safari". */
2
+ const BROWSER_PATTERNS = [
3
+ { name: "Edge", pattern: /\bEdg(e|A|iOS)?\// },
4
+ { name: "Opera", pattern: /\b(OPR|Opera)\// },
5
+ { name: "Samsung Internet", pattern: /\bSamsungBrowser\// },
6
+ { name: "Firefox", pattern: /\b(Firefox|FxiOS)\// },
7
+ { name: "Chrome", pattern: /\b(Chrome|CriOS)\// },
8
+ { name: "Safari", pattern: /\bVersion\/[\d.]+.*\bSafari\// },
9
+ ];
10
+ /** OS patterns, most specific first: iOS user agents say "like Mac OS X", ChromeOS says "X11". */
11
+ const OS_PATTERNS = [
12
+ { name: "iPadOS", pattern: /\biPad\b/ },
13
+ { name: "iOS", pattern: /\b(iPhone|iPod)\b/ },
14
+ { name: "Android", pattern: /\bAndroid\b/ },
15
+ { name: "Windows", pattern: /\bWindows\b/ },
16
+ { name: "ChromeOS", pattern: /\bCrOS\b/ },
17
+ { name: "macOS", pattern: /\b(Macintosh|Mac OS X)\b/ },
18
+ { name: "Linux", pattern: /\bLinux\b/ },
19
+ ];
20
+ /** HTTP clients native apps send instead of a browser user agent. */
21
+ const NATIVE_APP_PATTERNS = [
22
+ { os: "iOS", pattern: /\bCFNetwork\/.*\bDarwin\// },
23
+ { os: "Android", pattern: /^okhttp\// },
24
+ ];
25
+ const findName = (userAgent, patterns) => {
26
+ return patterns.find(({ pattern }) => pattern.test(userAgent))?.name;
27
+ };
28
+ const getDeviceType = ({ userAgent, os }) => {
29
+ if (os === "iPadOS") {
30
+ return "tablet";
31
+ }
32
+ if (os === "iOS") {
33
+ return "mobile";
34
+ }
35
+ if (os === "Android") {
36
+ // Android phones send "Mobile"; Android tablets leave it out.
37
+ return /\bMobile\b/.test(userAgent) ? "mobile" : "tablet";
38
+ }
39
+ if (os) {
40
+ return "desktop";
41
+ }
42
+ return "unknown";
43
+ };
44
+ /**
45
+ * Reads the browser, operating system and device type from a session's user agent. Covers the
46
+ * common browsers and the HTTP clients React Native apps send (`CFNetwork`/`Darwin` on iOS,
47
+ * `okhttp` on Android). Parts it can't recognize are left out.
48
+ *
49
+ * User agent sniffing has limits: iPadOS Safari requests desktop sites by default and reports
50
+ * `Macintosh`, so it reads as Safari on macOS (desktop); and macOS native apps also send
51
+ * `CFNetwork`/`Darwin`, so they read as an iOS app.
52
+ */
53
+ export const parseUserAgent = (userAgent) => {
54
+ if (!userAgent) {
55
+ return { deviceType: "unknown" };
56
+ }
57
+ const nativeApp = NATIVE_APP_PATTERNS.find(({ pattern }) => pattern.test(userAgent));
58
+ if (nativeApp) {
59
+ return { browser: "App", deviceType: "mobile", os: nativeApp.os };
60
+ }
61
+ const browser = findName(userAgent, BROWSER_PATTERNS);
62
+ const os = findName(userAgent, OS_PATTERNS);
63
+ return {
64
+ deviceType: getDeviceType({ os, userAgent }),
65
+ ...(browser ? { browser } : {}),
66
+ ...(os ? { os } : {}),
67
+ };
68
+ };
69
+ /** Names a parsed user agent: "Chrome on macOS", or whichever part is known, or "Unknown device". */
70
+ export const getUserAgentLabel = ({ browser, os }) => {
71
+ if (browser && os) {
72
+ return `${browser} on ${os}`;
73
+ }
74
+ return browser ?? os ?? "Unknown device";
75
+ };
76
+ /** "Chrome on macOS", or whichever part is known, or "Unknown device". */
77
+ export const describeUserAgent = (userAgent) => {
78
+ return getUserAgentLabel(parseUserAgent(userAgent));
79
+ };
80
+ //# sourceMappingURL=userAgent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userAgent.js","sourceRoot":"","sources":["../../src/security/userAgent.ts"],"names":[],"mappings":"AAaA,uGAAuG;AACvG,MAAM,gBAAgB,GAAsC;IAC1D,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,EAAC;IAC5C,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAC;IAC3C,EAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,oBAAoB,EAAC;IACzD,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,qBAAqB,EAAC;IACjD,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,oBAAoB,EAAC;IAC/C,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,+BAA+B,EAAC;CAC3D,CAAC;AAEF,kGAAkG;AAClG,MAAM,WAAW,GAAsC;IACrD,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAC;IACrC,EAAC,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAC;IAC3C,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAC;IACzC,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAC;IACzC,EAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAC;IACvC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,0BAA0B,EAAC;IACpD,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAC;CACtC,CAAC;AAEF,qEAAqE;AACrE,MAAM,mBAAmB,GA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,EAAC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,CAAC,EAAE,EAAC,CAAC;IAClE,CAAC;IACD,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC5C,OAAO;QACL,UAAU,EAAE,aAAa,CAAC,EAAC,EAAE,EAAE,SAAS,EAAC,CAAC;QAC1C,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAC,OAAO,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAC,EAAE,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KACpB,CAAC;AACJ,CAAC,CAAC;AAEF,qGAAqG;AACrG,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAC,OAAO,EAAE,EAAE,EAAkB,EAAU,EAAE;IAC1E,IAAI,OAAO,IAAI,EAAE,EAAE,CAAC;QAClB,OAAO,GAAG,OAAO,OAAO,EAAE,EAAE,CAAC;IAC/B,CAAC;IACD,OAAO,OAAO,IAAI,EAAE,IAAI,gBAAgB,CAAC;AAC3C,CAAC,CAAC;AAEF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAyB,EAAU,EAAE;IACrE,OAAO,iBAAiB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;AACtD,CAAC,CAAC"}
@@ -1,18 +1,41 @@
1
- import type { FC } from "react";
2
- import type { OAuthProviderConfig } from "./signUpTypes";
1
+ import { type FC } from "react";
2
+ import type { GenericOAuthProviderConfig, OAuthProviderConfig } from "./signUpTypes";
3
+ /**
4
+ * Marks one provider as the one this device used last.
5
+ */
6
+ interface OAuthButtonsLastUsed {
7
+ /** Provider id: a branded provider or a generic provider's `id`. */
8
+ provider: string;
9
+ /** Badge text. Defaults to "Last used". */
10
+ label?: string;
11
+ /** Badge test ID. Defaults to `${testID}-${provider}-last-used`. */
12
+ testID?: string;
13
+ }
3
14
  interface OAuthButtonsProps {
4
- /** OAuth provider configurations. */
15
+ /** Branded OAuth provider configurations (Google, GitHub, Apple). */
5
16
  providers: OAuthProviderConfig[];
17
+ /** Providers without a branded button, rendered after `providers` as outline buttons. */
18
+ genericProviders?: GenericOAuthProviderConfig[];
19
+ /** Badges this provider and moves it to the front of the list. */
20
+ lastUsed?: OAuthButtonsLastUsed;
6
21
  /** Whether all buttons should be disabled. */
7
22
  disabled?: boolean;
8
- /** Divider text displayed above the OAuth buttons. */
23
+ /** Divider text displayed next to the OAuth buttons. */
9
24
  dividerText?: string;
25
+ /** Where the divider sits: above the buttons (default), below them, or `"none"` for no divider. */
26
+ dividerPosition?: "above" | "below" | "none";
27
+ /**
28
+ * `"pill"` renders every provider as the same neutral outline pill, with the last-used label
29
+ * inside the button. `"brand"` keeps branded fills and a badge above the last-used button.
30
+ * @default "brand"
31
+ */
32
+ appearance?: "brand" | "pill";
10
33
  /** Test ID prefix for the component. */
11
34
  testID?: string;
12
35
  }
13
36
  /**
14
37
  * Renders OAuth provider buttons with an optional divider text.
15
- * Uses SocialLoginButton for branded provider buttons.
38
+ * Uses SocialLoginButton for branded provider buttons and an outline Button for generic ones.
16
39
  */
17
40
  export declare const OAuthButtons: FC<OAuthButtonsProps>;
18
41
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"OAuthButtons.d.ts","sourceRoot":"","sources":["../../src/signUp/OAuthButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,EAAE,EAAC,MAAM,OAAO,CAAC;AAK9B,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AAEvD,UAAU,iBAAiB;IACzB,qCAAqC;IACrC,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC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