@terreno/ui 57.19.2 → 57.21.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.
- package/.ai/guidelines/core.md +1 -1
- package/CHANGELOG.md +443 -0
- package/dist/Accordion.d.ts.map +1 -1
- package/dist/Accordion.js +3 -3
- package/dist/Accordion.js.map +1 -1
- package/dist/Avatar.d.ts.map +1 -1
- package/dist/Avatar.js +3 -1
- package/dist/Avatar.js.map +1 -1
- package/dist/Box.d.ts.map +1 -1
- package/dist/Box.js +38 -2
- package/dist/Box.js.map +1 -1
- package/dist/Card.js +2 -2
- package/dist/Card.js.map +1 -1
- package/dist/Common.d.ts +175 -34
- package/dist/Common.d.ts.map +1 -1
- package/dist/Common.js.map +1 -1
- package/dist/ConsentFormScreen.d.ts +1 -1
- package/dist/ConsentFormScreen.d.ts.map +1 -1
- package/dist/ConsentFormScreen.js +13 -4
- package/dist/ConsentFormScreen.js.map +1 -1
- package/dist/DateTimeField.d.ts.map +1 -1
- package/dist/DateTimeField.js +11 -9
- package/dist/DateTimeField.js.map +1 -1
- package/dist/Field.d.ts.map +1 -1
- package/dist/Field.js +2 -0
- package/dist/Field.js.map +1 -1
- package/dist/FormContainer.d.ts +68 -0
- package/dist/FormContainer.d.ts.map +1 -0
- package/dist/FormContainer.js +79 -0
- package/dist/FormContainer.js.map +1 -0
- package/dist/GPTChat.d.ts.map +1 -1
- package/dist/GPTChat.js +2 -1
- package/dist/GPTChat.js.map +1 -1
- package/dist/Heading.d.ts +1 -1
- package/dist/Heading.d.ts.map +1 -1
- package/dist/Heading.js +5 -2
- package/dist/Heading.js.map +1 -1
- package/dist/HeightField.js +8 -8
- package/dist/HeightField.js.map +1 -1
- package/dist/Icon.d.ts +4 -0
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +43 -2
- package/dist/Icon.js.map +1 -1
- package/dist/LabeledCheckBox.d.ts +22 -0
- package/dist/LabeledCheckBox.d.ts.map +1 -0
- package/dist/LabeledCheckBox.js +30 -0
- package/dist/LabeledCheckBox.js.map +1 -0
- package/dist/ListDetailLayout.d.ts +36 -0
- package/dist/ListDetailLayout.d.ts.map +1 -0
- package/dist/ListDetailLayout.js +153 -0
- package/dist/ListDetailLayout.js.map +1 -0
- package/dist/MarkdownEditor.d.ts.map +1 -1
- package/dist/MarkdownEditor.js +2 -1
- package/dist/MarkdownEditor.js.map +1 -1
- package/dist/MediaQuery.d.ts +1 -1
- package/dist/MediaQuery.d.ts.map +1 -1
- package/dist/MediaQuery.js +1 -1
- package/dist/MediaQuery.js.map +1 -1
- package/dist/OtpField.d.ts +60 -0
- package/dist/OtpField.d.ts.map +1 -0
- package/dist/OtpField.js +154 -0
- package/dist/OtpField.js.map +1 -0
- package/dist/PickerSelect.js +9 -9
- package/dist/PickerSelect.js.map +1 -1
- package/dist/ProvisionalConsentSigner.d.ts +21 -0
- package/dist/ProvisionalConsentSigner.d.ts.map +1 -0
- package/dist/ProvisionalConsentSigner.js +199 -0
- package/dist/ProvisionalConsentSigner.js.map +1 -0
- package/dist/ResponsiveBreakpoint.d.ts +5 -0
- package/dist/ResponsiveBreakpoint.d.ts.map +1 -1
- package/dist/ResponsiveBreakpoint.js +7 -0
- package/dist/ResponsiveBreakpoint.js.map +1 -1
- package/dist/SocialLoginButton.d.ts +10 -0
- package/dist/SocialLoginButton.d.ts.map +1 -1
- package/dist/SocialLoginButton.js +26 -8
- package/dist/SocialLoginButton.js.map +1 -1
- package/dist/SplitPage.d.ts +11 -0
- package/dist/SplitPage.d.ts.map +1 -1
- package/dist/SplitPage.js +11 -5
- package/dist/SplitPage.js.map +1 -1
- package/dist/SplitPage.native.d.ts.map +1 -1
- package/dist/SplitPage.native.js +3 -1
- package/dist/SplitPage.native.js.map +1 -1
- package/dist/SyncStatusBanner.d.ts +7 -1
- package/dist/SyncStatusBanner.d.ts.map +1 -1
- package/dist/SyncStatusBanner.js +20 -4
- package/dist/SyncStatusBanner.js.map +1 -1
- package/dist/TapToEdit.d.ts +1 -1
- package/dist/TapToEdit.d.ts.map +1 -1
- package/dist/TapToEdit.js.map +1 -1
- package/dist/TextField.d.ts.map +1 -1
- package/dist/TextField.js +48 -14
- package/dist/TextField.js.map +1 -1
- package/dist/Theme.d.ts.map +1 -1
- package/dist/Theme.js +16 -0
- package/dist/Theme.js.map +1 -1
- package/dist/fieldElements/FieldError.d.ts.map +1 -1
- package/dist/fieldElements/FieldError.js +1 -1
- package/dist/fieldElements/FieldError.js.map +1 -1
- package/dist/index.d.ts +19 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/dist/lazyBoundaries/heavyOptionalExports.d.ts +3 -0
- package/dist/lazyBoundaries/heavyOptionalExports.d.ts.map +1 -1
- package/dist/lazyBoundaries/heavyOptionalExports.js +2 -0
- package/dist/lazyBoundaries/heavyOptionalExports.js.map +1 -1
- package/dist/login/LastUsedBadge.d.ts +14 -0
- package/dist/login/LastUsedBadge.d.ts.map +1 -0
- package/dist/login/LastUsedBadge.js +23 -0
- package/dist/login/LastUsedBadge.js.map +1 -0
- package/dist/login/LoginAccountCard.d.ts +38 -0
- package/dist/login/LoginAccountCard.d.ts.map +1 -0
- package/dist/login/LoginAccountCard.js +72 -0
- package/dist/login/LoginAccountCard.js.map +1 -0
- package/dist/login/LoginAccountList.d.ts +33 -0
- package/dist/login/LoginAccountList.d.ts.map +1 -0
- package/dist/login/LoginAccountList.js +30 -0
- package/dist/login/LoginAccountList.js.map +1 -0
- package/dist/login/LoginScreen.d.ts +4 -4
- package/dist/login/LoginScreen.d.ts.map +1 -1
- package/dist/login/LoginScreen.js +294 -13
- package/dist/login/LoginScreen.js.map +1 -1
- package/dist/login/OutlinePill.d.ts +28 -0
- package/dist/login/OutlinePill.d.ts.map +1 -0
- package/dist/login/OutlinePill.js +48 -0
- package/dist/login/OutlinePill.js.map +1 -0
- package/dist/login/TwoFactorChallengeScreen.d.ts +26 -0
- package/dist/login/TwoFactorChallengeScreen.d.ts.map +1 -0
- package/dist/login/TwoFactorChallengeScreen.js +139 -0
- package/dist/login/TwoFactorChallengeScreen.js.map +1 -0
- package/dist/login/loginMethods.d.ts +27 -0
- package/dist/login/loginMethods.d.ts.map +1 -0
- package/dist/login/loginMethods.js +37 -0
- package/dist/login/loginMethods.js.map +1 -0
- package/dist/login/loginTypes.d.ts +202 -5
- package/dist/login/loginTypes.d.ts.map +1 -1
- package/dist/pdfHtmlTemplate.d.ts +17 -0
- package/dist/pdfHtmlTemplate.d.ts.map +1 -1
- package/dist/pdfHtmlTemplate.js +78 -0
- package/dist/pdfHtmlTemplate.js.map +1 -1
- package/dist/security/AccountSecurityScreen.d.ts +10 -0
- package/dist/security/AccountSecurityScreen.d.ts.map +1 -0
- package/dist/security/AccountSecurityScreen.js +50 -0
- package/dist/security/AccountSecurityScreen.js.map +1 -0
- package/dist/security/LinkedAccountsCard.d.ts +32 -0
- package/dist/security/LinkedAccountsCard.d.ts.map +1 -0
- package/dist/security/LinkedAccountsCard.js +145 -0
- package/dist/security/LinkedAccountsCard.js.map +1 -0
- package/dist/security/PasskeysCard.d.ts +39 -0
- package/dist/security/PasskeysCard.d.ts.map +1 -0
- package/dist/security/PasskeysCard.js +168 -0
- package/dist/security/PasskeysCard.js.map +1 -0
- package/dist/security/PasswordCard.d.ts +32 -0
- package/dist/security/PasswordCard.d.ts.map +1 -0
- package/dist/security/PasswordCard.js +198 -0
- package/dist/security/PasswordCard.js.map +1 -0
- package/dist/security/SessionsCard.d.ts +39 -0
- package/dist/security/SessionsCard.d.ts.map +1 -0
- package/dist/security/SessionsCard.js +168 -0
- package/dist/security/SessionsCard.js.map +1 -0
- package/dist/security/TwoFactorSettingsCard.d.ts +55 -0
- package/dist/security/TwoFactorSettingsCard.d.ts.map +1 -0
- package/dist/security/TwoFactorSettingsCard.js +458 -0
- package/dist/security/TwoFactorSettingsCard.js.map +1 -0
- package/dist/security/securityMethods.d.ts +40 -0
- package/dist/security/securityMethods.d.ts.map +1 -0
- package/dist/security/securityMethods.js +66 -0
- package/dist/security/securityMethods.js.map +1 -0
- package/dist/security/securityTypes.d.ts +467 -0
- package/dist/security/securityTypes.d.ts.map +1 -0
- package/dist/security/securityTypes.js +2 -0
- package/dist/security/securityTypes.js.map +1 -0
- package/dist/security/userAgent.d.ts +26 -0
- package/dist/security/userAgent.d.ts.map +1 -0
- package/dist/security/userAgent.js +80 -0
- package/dist/security/userAgent.js.map +1 -0
- package/dist/signUp/OAuthButtons.d.ts +28 -5
- package/dist/signUp/OAuthButtons.d.ts.map +1 -1
- package/dist/signUp/OAuthButtons.js +44 -5
- package/dist/signUp/OAuthButtons.js.map +1 -1
- package/dist/signUp/SignUpScreen.d.ts.map +1 -1
- package/dist/signUp/SignUpScreen.js +50 -5
- package/dist/signUp/SignUpScreen.js.map +1 -1
- package/dist/signUp/signUpTypes.d.ts +21 -1
- package/dist/signUp/signUpTypes.d.ts.map +1 -1
- package/dist/useConsentForms.d.ts +9 -0
- package/dist/useConsentForms.d.ts.map +1 -1
- package/dist/useConsentForms.js +18 -0
- package/dist/useConsentForms.js.map +1 -1
- package/dist/useProvisionalConsent.d.ts +124 -0
- package/dist/useProvisionalConsent.d.ts.map +1 -0
- package/dist/useProvisionalConsent.js +79 -0
- package/dist/useProvisionalConsent.js.map +1 -0
- package/package.json +5 -2
- package/src/Accordion.test.tsx +5 -0
- package/src/Accordion.tsx +3 -8
- package/src/ActionSheet.test.tsx +13 -13
- package/src/AddressField.test.tsx +9 -3
- package/src/AnnouncementNavigator.test.tsx +4 -4
- package/src/AreaChart.test.tsx +15 -0
- package/src/Avatar.test.tsx +8 -0
- package/src/Avatar.tsx +2 -0
- package/src/Badge.test.tsx +1 -1
- package/src/Banner.test.tsx +0 -1
- package/src/BarChart.test.tsx +15 -0
- package/src/Box.test.tsx +143 -75
- package/src/Box.tsx +44 -2
- package/src/Button.test.tsx +11 -6
- package/src/Card.test.tsx +2 -2
- package/src/Card.tsx +2 -2
- package/src/Common.ts +194 -36
- package/src/ConflictSheet.test.tsx +5 -5
- package/src/ConsentFormScreen.test.tsx +87 -1
- package/src/ConsentFormScreen.tsx +28 -4
- package/src/ConsentNavigator.test.tsx +1 -2
- package/src/CustomSelectField.test.tsx +16 -4
- package/src/DataTable.test.tsx +4 -4
- package/src/DataTableVirtualizationRegression.test.tsx +1 -0
- package/src/DateTimeActionSheet.test.tsx +2 -0
- package/src/DateTimeField.test.tsx +3 -12
- package/src/DateTimeField.tsx +11 -9
- package/src/DismissButton.test.tsx +22 -4
- package/src/DonutChart.test.tsx +15 -0
- package/src/EmailField.test.tsx +13 -22
- package/src/EmojiSelector.test.tsx +2 -2
- package/src/ErrorBoundary.test.tsx +5 -3
- package/src/Field.test.tsx +20 -44
- package/src/Field.tsx +2 -0
- package/src/FilePickerButton.test.tsx +35 -0
- package/src/FormContainer.test.tsx +242 -0
- package/src/FormContainer.tsx +177 -0
- package/src/GPTChat.test.tsx +40 -16
- package/src/GPTChat.tsx +8 -2
- package/src/Heading.test.tsx +15 -1
- package/src/Heading.tsx +6 -1
- package/src/HeightField.tsx +8 -8
- package/src/Icon.test.tsx +54 -3
- package/src/Icon.tsx +92 -3
- package/src/IconButton.test.tsx +85 -0
- package/src/Image.test.tsx +1 -1
- package/src/LabeledCheckBox.test.tsx +45 -0
- package/src/LabeledCheckBox.tsx +89 -0
- package/src/Link.test.tsx +11 -4
- package/src/ListDetailLayout.tsx +247 -0
- package/src/MarkdownEditor.tsx +2 -1
- package/src/MarkdownView.test.tsx +1 -1
- package/src/MediaQuery.ts +1 -0
- package/src/MobileAddressAutoComplete.test.tsx +2 -1
- package/src/Modal.test.tsx +7 -2
- package/src/ModalSheet.test.tsx +5 -4
- package/src/MultiselectField.test.tsx +17 -3
- package/src/NumberField.test.tsx +14 -14
- package/src/NumberPickerActionSheet.test.tsx +1 -1
- package/src/OpenAPIContext.test.tsx +4 -4
- package/src/OpenAPIRenderRegression.test.tsx +1 -1
- package/src/OtpField.test.tsx +280 -0
- package/src/OtpField.tsx +307 -0
- package/src/P0RenderRegression.test.tsx +7 -1
- package/src/P1RenderRegression.test.tsx +1 -0
- package/src/P2ButtonRenderRegression.test.tsx +1 -0
- package/src/Page.test.tsx +1 -1
- package/src/PhoneNumberField.test.tsx +14 -38
- package/src/PickerSelect.tsx +9 -9
- package/src/Popover.test.tsx +2 -2
- package/src/ProvisionalConsentSigner.test.tsx +625 -0
- package/src/ProvisionalConsentSigner.tsx +423 -0
- package/src/RadioField.test.tsx +7 -2
- package/src/ResponsiveBreakpoint.test.tsx +7 -0
- package/src/ResponsiveBreakpoint.tsx +14 -0
- package/src/RootImportRegression.test.tsx +3 -0
- package/src/SegmentedControl.test.tsx +21 -12
- package/src/SidebarNavigation.test.tsx +18 -6
- package/src/Signature.test.tsx +20 -23
- package/src/Slider.test.tsx +1 -1
- package/src/SocialLoginButton.test.tsx +14 -0
- package/src/SocialLoginButton.tsx +51 -7
- package/src/SplitPage.native.tsx +3 -1
- package/src/SplitPage.test.tsx +15 -5
- package/src/SplitPage.tsx +11 -5
- package/src/SyncStatusBanner.test.tsx +61 -4
- package/src/SyncStatusBanner.tsx +29 -3
- package/src/TapToEdit.test.tsx +38 -15
- package/src/TapToEdit.tsx +1 -1
- package/src/TerrenoFontProvider.test.tsx +1 -1
- package/src/Text.test.tsx +4 -4
- package/src/TextField.test.tsx +232 -9
- package/src/TextField.tsx +70 -12
- package/src/Theme.test.tsx +49 -0
- package/src/Theme.tsx +16 -0
- package/src/Toast.test.tsx +5 -5
- package/src/ToastNotifications.test.tsx +73 -70
- package/src/ToastNotifications.webModal.test.tsx +2 -2
- package/src/Tooltip.test.tsx +3 -3
- package/src/UnifiedAddressAutoComplete.test.tsx +1 -1
- package/src/UserInactivity.test.tsx +4 -2
- package/src/WebAddressAutocomplete.test.tsx +12 -12
- package/src/WebDropdownMenu.test.tsx +16 -15
- package/src/__snapshots__/AddressField.test.tsx.snap +12 -0
- package/src/__snapshots__/AiSuggestionBox.test.tsx.snap +15 -0
- package/src/__snapshots__/Avatar.test.tsx.snap +1 -0
- package/src/__snapshots__/Card.test.tsx.snap +1 -1
- package/src/__snapshots__/CustomSelectField.test.tsx.snap +3 -0
- package/src/__snapshots__/DismissButton.test.tsx.snap +3 -3
- package/src/__snapshots__/EmailField.test.tsx.snap +6 -0
- package/src/__snapshots__/Field.test.tsx.snap +41 -2
- package/src/__snapshots__/Heading.test.tsx.snap +1 -1
- package/src/__snapshots__/HeightField.test.tsx.snap +2 -0
- package/src/__snapshots__/Image.test.tsx.snap +1 -1
- package/src/__snapshots__/MobileAddressAutoComplete.test.tsx.snap +3 -0
- package/src/__snapshots__/NumberField.test.tsx.snap +3 -0
- package/src/__snapshots__/Page.test.tsx.snap +2 -2
- package/src/__snapshots__/PhoneNumberField.test.tsx.snap +12 -0
- package/src/__snapshots__/Slider.test.tsx.snap +1 -0
- package/src/__snapshots__/SocialLoginButton.test.tsx.snap +43 -22
- package/src/__snapshots__/TapToEdit.test.tsx.snap +3 -0
- package/src/__snapshots__/Text.test.tsx.snap +1 -1
- package/src/__snapshots__/TextArea.test.tsx.snap +17 -1
- package/src/__snapshots__/TextField.test.tsx.snap +19 -2
- package/src/__snapshots__/TypedSignatureField.test.tsx.snap +3 -0
- package/src/__snapshots__/UnifiedAddressAutoComplete.test.tsx.snap +18 -0
- package/src/__snapshots__/WebAddressAutocomplete.test.tsx.snap +12 -0
- package/src/asks/AskCard.test.tsx +16 -13
- package/src/asks/AskFiles.test.tsx +5 -1
- package/src/asks/askFileRefs.test.ts +1 -1
- package/src/asks/askSummary.test.ts +2 -2
- package/src/benchmarks/importTiming.ts +1 -1
- package/src/blocks/BlocksView.test.tsx +20 -11
- package/src/bunSetup.ts +14 -2
- package/src/dataTableFilters.test.tsx +1 -1
- package/src/fieldElements/FieldError.tsx +1 -0
- package/src/fieldElements/__snapshots__/FieldError.test.tsx.snap +2 -0
- package/src/index.tsx +42 -1
- package/src/isolated/ListDetailLayout.isolated.tsx +632 -0
- package/src/lazyBoundaries/heavyOptionalExports.tsx +7 -0
- package/src/login/LastUsedBadge.tsx +40 -0
- package/src/login/LoginAccountCard.tsx +205 -0
- package/src/login/LoginAccountList.tsx +115 -0
- package/src/login/LoginScreen.test.tsx +839 -3
- package/src/login/LoginScreen.tsx +674 -91
- package/src/login/OutlinePill.tsx +110 -0
- package/src/login/TwoFactorChallengeScreen.test.tsx +376 -0
- package/src/login/TwoFactorChallengeScreen.tsx +307 -0
- package/src/login/__snapshots__/LoginScreen.test.tsx.snap +1454 -334
- package/src/login/loginMethods.test.ts +53 -0
- package/src/login/loginMethods.ts +60 -0
- package/src/login/loginTypes.ts +208 -5
- package/src/pdfHtmlTemplate.test.ts +243 -4
- package/src/pdfHtmlTemplate.ts +93 -0
- package/src/security/AccountSecurityScreen.test.tsx +262 -0
- package/src/security/AccountSecurityScreen.tsx +156 -0
- package/src/security/LinkedAccountsCard.test.tsx +371 -0
- package/src/security/LinkedAccountsCard.tsx +297 -0
- package/src/security/PasskeysCard.test.tsx +378 -0
- package/src/security/PasskeysCard.tsx +371 -0
- package/src/security/PasswordCard.test.tsx +445 -0
- package/src/security/PasswordCard.tsx +342 -0
- package/src/security/SessionsCard.test.tsx +349 -0
- package/src/security/SessionsCard.tsx +362 -0
- package/src/security/TwoFactorSettingsCard.test.tsx +700 -0
- package/src/security/TwoFactorSettingsCard.tsx +872 -0
- package/src/security/securityMethods.test.ts +101 -0
- package/src/security/securityMethods.ts +104 -0
- package/src/security/securityTypes.ts +480 -0
- package/src/security/userAgent.test.ts +119 -0
- package/src/security/userAgent.ts +102 -0
- package/src/signUp/OAuthButtons.test.tsx +27 -0
- package/src/signUp/OAuthButtons.tsx +153 -19
- package/src/signUp/SignUpScreen.test.tsx +171 -2
- package/src/signUp/SignUpScreen.tsx +87 -25
- package/src/signUp/__snapshots__/SignUpScreen.test.tsx.snap +22 -11
- package/src/signUp/signUpTypes.ts +23 -1
- package/src/table/tableContext.test.tsx +5 -5
- package/src/test-utils.tsx +56 -1
- package/src/testing/reactDomServer.d.ts +7 -0
- package/src/useConsentForms.test.ts +38 -2
- package/src/useConsentForms.ts +25 -0
- package/src/useProvisionalConsent.test.ts +256 -0
- package/src/useProvisionalConsent.ts +218 -0
|
@@ -18,6 +18,8 @@ exports[`WebAddressAutocomplete renders correctly without Google API key 1`] = `
|
|
|
18
18
|
"accessibilityState": {
|
|
19
19
|
"disabled": undefined,
|
|
20
20
|
},
|
|
21
|
+
"aria-describedby": undefined,
|
|
22
|
+
"aria-invalid": false,
|
|
21
23
|
"aria-label": "Text input field",
|
|
22
24
|
"autoCapitalize": "sentences",
|
|
23
25
|
"autoCorrect": true,
|
|
@@ -44,6 +46,7 @@ exports[`WebAddressAutocomplete renders correctly without Google API key 1`] = `
|
|
|
44
46
|
"fontSize": 16,
|
|
45
47
|
"gap": 10,
|
|
46
48
|
"height": 24,
|
|
49
|
+
"letterSpacing": undefined,
|
|
47
50
|
"paddingVertical": 0,
|
|
48
51
|
"width": "100%",
|
|
49
52
|
},
|
|
@@ -111,6 +114,8 @@ exports[`WebAddressAutocomplete renders with input value 1`] = `
|
|
|
111
114
|
"accessibilityState": {
|
|
112
115
|
"disabled": undefined,
|
|
113
116
|
},
|
|
117
|
+
"aria-describedby": undefined,
|
|
118
|
+
"aria-invalid": false,
|
|
114
119
|
"aria-label": "Text input field",
|
|
115
120
|
"autoCapitalize": "sentences",
|
|
116
121
|
"autoCorrect": true,
|
|
@@ -137,6 +142,7 @@ exports[`WebAddressAutocomplete renders with input value 1`] = `
|
|
|
137
142
|
"fontSize": 16,
|
|
138
143
|
"gap": 10,
|
|
139
144
|
"height": 24,
|
|
145
|
+
"letterSpacing": undefined,
|
|
140
146
|
"paddingVertical": 0,
|
|
141
147
|
"width": "100%",
|
|
142
148
|
},
|
|
@@ -204,6 +210,8 @@ exports[`WebAddressAutocomplete renders disabled state 1`] = `
|
|
|
204
210
|
"accessibilityState": {
|
|
205
211
|
"disabled": true,
|
|
206
212
|
},
|
|
213
|
+
"aria-describedby": undefined,
|
|
214
|
+
"aria-invalid": false,
|
|
207
215
|
"aria-label": "Text input field",
|
|
208
216
|
"autoCapitalize": "sentences",
|
|
209
217
|
"autoCorrect": true,
|
|
@@ -230,6 +238,7 @@ exports[`WebAddressAutocomplete renders disabled state 1`] = `
|
|
|
230
238
|
"fontSize": 16,
|
|
231
239
|
"gap": 10,
|
|
232
240
|
"height": 24,
|
|
241
|
+
"letterSpacing": undefined,
|
|
233
242
|
"paddingVertical": 0,
|
|
234
243
|
"width": "100%",
|
|
235
244
|
},
|
|
@@ -297,6 +306,8 @@ exports[`WebAddressAutocomplete renders with includeCounty flag 1`] = `
|
|
|
297
306
|
"accessibilityState": {
|
|
298
307
|
"disabled": undefined,
|
|
299
308
|
},
|
|
309
|
+
"aria-describedby": undefined,
|
|
310
|
+
"aria-invalid": false,
|
|
300
311
|
"aria-label": "Text input field",
|
|
301
312
|
"autoCapitalize": "sentences",
|
|
302
313
|
"autoCorrect": true,
|
|
@@ -323,6 +334,7 @@ exports[`WebAddressAutocomplete renders with includeCounty flag 1`] = `
|
|
|
323
334
|
"fontSize": 16,
|
|
324
335
|
"gap": 10,
|
|
325
336
|
"height": 24,
|
|
337
|
+
"letterSpacing": undefined,
|
|
326
338
|
"paddingVertical": 0,
|
|
327
339
|
"width": "100%",
|
|
328
340
|
},
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
import {act, fireEvent, render, waitFor, within} from "@testing-library/react-native";
|
|
10
10
|
import {assert} from "chai";
|
|
11
11
|
import {createRef} from "react";
|
|
12
|
-
import type {Text as NativeText} from "react-native";
|
|
12
|
+
import type {Text as NativeText, TextProps} from "react-native";
|
|
13
13
|
import {ThemeProvider} from "../Theme";
|
|
14
14
|
import {TimezonePicker} from "../TimezonePicker";
|
|
15
|
-
import {renderWithTheme} from "../test-utils";
|
|
15
|
+
import {elementProps, findAllByHostType, renderWithTheme} from "../test-utils";
|
|
16
16
|
import {AskCard, type AskCardProps} from "./AskCard";
|
|
17
|
-
import type {AskSubmission, ChatAsk} from "./askTypes";
|
|
17
|
+
import type {AskSubmission, ChatAsk, ChatAskState} from "./askTypes";
|
|
18
18
|
|
|
19
19
|
const PLAN_INPUT: ChoiceAskInput = {
|
|
20
20
|
default: ["team"],
|
|
@@ -49,7 +49,7 @@ const COUNTRY_INPUT: ChoiceAskInput = {
|
|
|
49
49
|
select: "one",
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
const pendingAsk = (input: ChoiceAskInput, state: Partial<
|
|
52
|
+
const pendingAsk = (input: ChoiceAskInput, state: Partial<ChatAskState> = {}): ChatAsk => ({
|
|
53
53
|
input,
|
|
54
54
|
kind: "choice",
|
|
55
55
|
status: "pending",
|
|
@@ -556,7 +556,7 @@ describe("AskCard", () => {
|
|
|
556
556
|
|
|
557
557
|
await press(getByTestId("ask-card-button-approve"));
|
|
558
558
|
assert.lengthOf(
|
|
559
|
-
getByTestId("ask-card-button-approve")
|
|
559
|
+
findAllByHostType(getByTestId("ask-card-button-approve"), "ActivityIndicator"),
|
|
560
560
|
1
|
|
561
561
|
);
|
|
562
562
|
assert.isTrue(isDisabled(getByTestId("ask-card-button-deny")));
|
|
@@ -1010,11 +1010,12 @@ describe("AskCard", () => {
|
|
|
1010
1010
|
assert.isNull(card.queryByText("Enter a complete time, or clear it."));
|
|
1011
1011
|
assert.isNull(card.queryByText("Enter a complete date and time, or clear it."));
|
|
1012
1012
|
await press(card.getByTestId("ask-card-submit"));
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1013
|
+
const response = onSubmit.mock.calls[0]?.[0]?.response;
|
|
1014
|
+
const values = response?.action === "accept" ? response.content.values : undefined;
|
|
1015
|
+
assert.deepInclude((values ?? {}) as Record<string, unknown>, {
|
|
1016
|
+
meeting: "2026-10-01T09:30:00Z",
|
|
1017
|
+
reminder: "10:30",
|
|
1018
|
+
});
|
|
1018
1019
|
});
|
|
1019
1020
|
|
|
1020
1021
|
it("keeps Submit disabled when the hour of an on-the-hour time is cleared, and keeps the time", async () => {
|
|
@@ -1244,8 +1245,9 @@ describe("AskCard", () => {
|
|
|
1244
1245
|
const {getByTestId} = renderCard({ask: pendingAsk(PLAN_INPUT), onSubmit});
|
|
1245
1246
|
|
|
1246
1247
|
await press(getByTestId("ask-card-button-option:team"));
|
|
1247
|
-
const spinners =
|
|
1248
|
-
(
|
|
1248
|
+
const spinners = findAllByHostType(
|
|
1249
|
+
getByTestId("ask-card-button-option:team"),
|
|
1250
|
+
"ActivityIndicator"
|
|
1249
1251
|
);
|
|
1250
1252
|
assert.lengthOf(spinners, 1);
|
|
1251
1253
|
assert.isTrue(isDisabled(getByTestId("ask-card-button-option:team")));
|
|
@@ -1306,7 +1308,8 @@ describe("AskCard", () => {
|
|
|
1306
1308
|
const {getByRole} = render(
|
|
1307
1309
|
<AskCard ask={pendingAsk(PLAN_INPUT)} onSubmit={async () => {}} promptRef={promptRef} />,
|
|
1308
1310
|
{
|
|
1309
|
-
createNodeMock: (element) =>
|
|
1311
|
+
createNodeMock: (element) =>
|
|
1312
|
+
elementProps<TextProps>(element).accessibilityRole === "header" ? prompt : null,
|
|
1310
1313
|
wrapper: ThemeProvider,
|
|
1311
1314
|
}
|
|
1312
1315
|
);
|
|
@@ -306,7 +306,11 @@ describe("AskCard files", () => {
|
|
|
306
306
|
assert.isNull(rendered.queryByTestId("ask-card-errors"));
|
|
307
307
|
assert.isFalse(isDisabled(rendered.getByTestId("ask-card-submit")));
|
|
308
308
|
|
|
309
|
-
const tooLarge = {
|
|
309
|
+
const tooLarge = {
|
|
310
|
+
...mismatch,
|
|
311
|
+
code: "FILE_TOO_LARGE" as const,
|
|
312
|
+
message: "items.txt is too large.",
|
|
313
|
+
};
|
|
310
314
|
rendered.rerender(<AskCard ask={ask} errors={[tooLarge]} onSubmit={onSubmit} />);
|
|
311
315
|
assert.isOk(within(rendered.getByTestId("ask-card-errors")).getByText(tooLarge.message));
|
|
312
316
|
|
|
@@ -57,7 +57,7 @@ describe("askFileRefs", () => {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
assert.equal(ref.mimeType, "text/csv");
|
|
60
|
-
assert.isTrue(ref.url
|
|
60
|
+
assert.isTrue(ref.url?.startsWith("data:text/csv;base64,"));
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
it("reads a picked file into a data URL of its declared type, with its byte size", async () => {
|
|
@@ -3,7 +3,7 @@ import type {ChoiceAskInput, ConfirmAskInput, FormAskInput} from "@terreno/block
|
|
|
3
3
|
import {assert} from "chai";
|
|
4
4
|
|
|
5
5
|
import {askSummary} from "./askSummary";
|
|
6
|
-
import type {ChatAsk} from "./askTypes";
|
|
6
|
+
import type {ChatAsk, ChatAskState} from "./askTypes";
|
|
7
7
|
|
|
8
8
|
const PLAN_INPUT: ChoiceAskInput = {
|
|
9
9
|
options: [
|
|
@@ -15,7 +15,7 @@ const PLAN_INPUT: ChoiceAskInput = {
|
|
|
15
15
|
select: "one",
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const planAsk = (state: Partial<
|
|
18
|
+
const planAsk = (state: Partial<ChatAskState> & {input?: ChoiceAskInput}): ChatAsk => ({
|
|
19
19
|
input: PLAN_INPUT,
|
|
20
20
|
kind: "choice",
|
|
21
21
|
status: "answered",
|
|
@@ -28,7 +28,7 @@ describe("fresh import timing", () => {
|
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
30
|
`;
|
|
31
|
-
const childEnv = {...process.env, TZ: "America/New_York"};
|
|
31
|
+
const childEnv: NodeJS.ProcessEnv = {...process.env, TZ: "America/New_York"};
|
|
32
32
|
delete childEnv.BUN_OPTIONS;
|
|
33
33
|
writeFileSync(PROBE_FILE, probeSource, "utf8");
|
|
34
34
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {afterEach, describe, expect, it, jest, mock} from "bun:test";
|
|
2
2
|
import {readdirSync, readFileSync} from "node:fs";
|
|
3
3
|
import {join} from "node:path";
|
|
4
|
-
import type {Block} from "@terreno/blocks";
|
|
4
|
+
import type {Block, BlocksDocument} from "@terreno/blocks";
|
|
5
5
|
import {act, fireEvent, waitFor} from "@testing-library/react-native";
|
|
6
6
|
import {setStringAsync} from "expo-clipboard";
|
|
7
7
|
import {ActivityIndicator, Image as NativeImage, ScrollView, StyleSheet} from "react-native";
|
|
@@ -14,6 +14,11 @@ import {renderWithTheme} from "../test-utils";
|
|
|
14
14
|
import {BlocksView} from "./BlocksView";
|
|
15
15
|
import {renderBlock} from "./blockRenderers";
|
|
16
16
|
|
|
17
|
+
/** Treats a document assembled field by field, as untyped model JSON arrives, as a BlocksDocument. */
|
|
18
|
+
const untypedDocument = (fields: Record<string, unknown>): BlocksDocument => {
|
|
19
|
+
return fields as unknown as BlocksDocument;
|
|
20
|
+
};
|
|
21
|
+
|
|
17
22
|
const ACTIONS = `v: 1
|
|
18
23
|
datasets:
|
|
19
24
|
signups:
|
|
@@ -357,8 +362,9 @@ blocks:
|
|
|
357
362
|
data: lamb
|
|
358
363
|
`;
|
|
359
364
|
type StyledNode = {parent: StyledNode | null; props: {style?: unknown}};
|
|
360
|
-
const flatStyle = (node: StyledNode): {textAlign?: string; width?: number} =>
|
|
365
|
+
const flatStyle = (node: StyledNode): {height?: number; textAlign?: string; width?: number} =>
|
|
361
366
|
(StyleSheet.flatten(node.props.style as never) ?? {}) as {
|
|
367
|
+
height?: number;
|
|
362
368
|
textAlign?: string;
|
|
363
369
|
width?: number;
|
|
364
370
|
};
|
|
@@ -771,9 +777,10 @@ blocks:
|
|
|
771
777
|
block.type = "html";
|
|
772
778
|
block.title = "Invoice preview";
|
|
773
779
|
block.html = "<h1>Invoice #1042</h1>";
|
|
774
|
-
const
|
|
775
|
-
|
|
776
|
-
|
|
780
|
+
const fields: Record<string, unknown> = {};
|
|
781
|
+
fields.v = 1;
|
|
782
|
+
fields.blocks = [block];
|
|
783
|
+
const document = untypedDocument(fields);
|
|
777
784
|
|
|
778
785
|
const off = renderWithTheme(<BlocksView document={document} />);
|
|
779
786
|
expect(off.getByText("HTML preview is turned off.")).toBeTruthy();
|
|
@@ -804,9 +811,10 @@ blocks:
|
|
|
804
811
|
details.type = "details";
|
|
805
812
|
details.title = "Invoice notes";
|
|
806
813
|
details.text = "Twelve seats, billed monthly.";
|
|
807
|
-
const
|
|
808
|
-
|
|
809
|
-
|
|
814
|
+
const fields: Record<string, unknown> = {};
|
|
815
|
+
fields.v = 1;
|
|
816
|
+
fields.blocks = [callout, picture, details];
|
|
817
|
+
const document = untypedDocument(fields);
|
|
810
818
|
|
|
811
819
|
const {getByText} = renderWithTheme(<BlocksView document={document} />);
|
|
812
820
|
|
|
@@ -821,9 +829,10 @@ blocks:
|
|
|
821
829
|
block.type = "image";
|
|
822
830
|
block.alt = "Pixel";
|
|
823
831
|
block.src = "https://evil.test/pixel.png";
|
|
824
|
-
const
|
|
825
|
-
|
|
826
|
-
|
|
832
|
+
const fields: Record<string, unknown> = {};
|
|
833
|
+
fields.v = 1;
|
|
834
|
+
fields.blocks = [block];
|
|
835
|
+
const document = untypedDocument(fields);
|
|
827
836
|
|
|
828
837
|
const blocked = renderWithTheme(<BlocksView document={document} />);
|
|
829
838
|
expect(blocked.getByText(/IMAGE_HOST_NOT_ALLOWED|allowed host/)).toBeTruthy();
|
package/src/bunSetup.ts
CHANGED
|
@@ -158,7 +158,7 @@ const createSimpleFlatList = () => {
|
|
|
158
158
|
const createVirtualizedFlatList = (): React.ForwardRefExoticComponent<
|
|
159
159
|
MockFlatListProps & React.RefAttributes<unknown>
|
|
160
160
|
> =>
|
|
161
|
-
React.forwardRef((props, ref) => {
|
|
161
|
+
React.forwardRef((props: MockFlatListProps, ref) => {
|
|
162
162
|
const {
|
|
163
163
|
data,
|
|
164
164
|
renderItem,
|
|
@@ -705,6 +705,7 @@ mock.module("expo-router", () => ({
|
|
|
705
705
|
router: {
|
|
706
706
|
back: mock(() => {}),
|
|
707
707
|
canGoBack: mock(() => true),
|
|
708
|
+
dismissTo: mock(() => {}),
|
|
708
709
|
navigate: mock(() => {}),
|
|
709
710
|
push: mock(() => {}),
|
|
710
711
|
replace: mock(() => {}),
|
|
@@ -882,9 +883,11 @@ mock.module("react-native-actions-sheet", () => ({
|
|
|
882
883
|
}),
|
|
883
884
|
}));
|
|
884
885
|
|
|
885
|
-
// Mock MediaQuery
|
|
886
|
+
// Mock MediaQuery. Desktop floor is 1024pt on web and native; keep this aligned with
|
|
887
|
+
// isSupportedDesktopWidth in ResponsiveBreakpoint.tsx.
|
|
886
888
|
mock.module("./MediaQuery", () => ({
|
|
887
889
|
isNarrowViewport: mock(() => false),
|
|
890
|
+
isSupportedDesktopWidth: ({width}: {width: number}): boolean => width >= 1024,
|
|
888
891
|
mediaQueryLargerThan: mock(() => false),
|
|
889
892
|
mediaQuerySmallerThan: mock(() => false),
|
|
890
893
|
}));
|
|
@@ -934,6 +937,15 @@ mock.module("expo-clipboard", () => ({
|
|
|
934
937
|
setStringAsync: mock(() => Promise.resolve(undefined)),
|
|
935
938
|
}));
|
|
936
939
|
|
|
940
|
+
// Mock expo-print (native print and PDF export). Tests drive these mocks through
|
|
941
|
+
// `import * as Print from "expo-print"` instead of registering their own module mock.
|
|
942
|
+
mock.module("expo-print", () => ({
|
|
943
|
+
printAsync: mock(async (_options: {html?: string}): Promise<void> => {}),
|
|
944
|
+
printToFileAsync: mock(
|
|
945
|
+
async (_options: {html?: string}): Promise<{uri: string}> => ({uri: "file:///tmp/consent.pdf"})
|
|
946
|
+
),
|
|
947
|
+
}));
|
|
948
|
+
|
|
937
949
|
// Mock expo-localization
|
|
938
950
|
mock.module("expo-localization", () => ({
|
|
939
951
|
getCalendars: mock(() => [
|
|
@@ -450,7 +450,7 @@ describe("DataTableAdditionalFiltersWeb", () => {
|
|
|
450
450
|
});
|
|
451
451
|
|
|
452
452
|
it("keeps in-progress drafts when the filters array is recreated", async () => {
|
|
453
|
-
const onApply = mock(() => {});
|
|
453
|
+
const onApply = mock((_values: Record<string, unknown>) => {});
|
|
454
454
|
const departmentFilter = {
|
|
455
455
|
field: "department",
|
|
456
456
|
kind: "choice" as const,
|
|
@@ -31,6 +31,7 @@ exports[`FieldError renders correctly 1`] = `
|
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
33
|
"props": {
|
|
34
|
+
"nativeID": undefined,
|
|
34
35
|
"style": {
|
|
35
36
|
"alignItems": "center",
|
|
36
37
|
"flexDirection": "row",
|
|
@@ -73,6 +74,7 @@ exports[`FieldError renders with icon 1`] = `
|
|
|
73
74
|
},
|
|
74
75
|
],
|
|
75
76
|
"props": {
|
|
77
|
+
"nativeID": undefined,
|
|
76
78
|
"style": {
|
|
77
79
|
"alignItems": "center",
|
|
78
80
|
"flexDirection": "row",
|
package/src/index.tsx
CHANGED
|
@@ -57,6 +57,7 @@ export * from "./FilterBoolean";
|
|
|
57
57
|
export * from "./FilterChangesBadge";
|
|
58
58
|
export * from "./FilterSelectMenu";
|
|
59
59
|
export * from "./FlatList";
|
|
60
|
+
export * from "./FormContainer";
|
|
60
61
|
export type * from "./GPTChat";
|
|
61
62
|
export type * from "./GPTMemoryModal";
|
|
62
63
|
export * from "./Heading";
|
|
@@ -73,6 +74,7 @@ export * from "./InfoTooltipButton";
|
|
|
73
74
|
export * from "./icons/BarsFilterIcon";
|
|
74
75
|
export type * from "./LineChart";
|
|
75
76
|
export * from "./Link";
|
|
77
|
+
export * from "./ListDetailLayout";
|
|
76
78
|
export {
|
|
77
79
|
AIRequestExplorer,
|
|
78
80
|
AiSuggestionBox,
|
|
@@ -93,12 +95,23 @@ export {
|
|
|
93
95
|
LineChart,
|
|
94
96
|
MarkdownEditor,
|
|
95
97
|
MarkdownEditorField,
|
|
98
|
+
ProvisionalConsentSigner,
|
|
96
99
|
Scorecard,
|
|
97
100
|
SparklineChart,
|
|
98
101
|
UpgradeRequiredScreen,
|
|
99
102
|
} from "./lazyBoundaries/heavyOptionalExports";
|
|
100
103
|
export * from "./login/LoginScreen";
|
|
101
|
-
export type {
|
|
104
|
+
export type {
|
|
105
|
+
LoginAccountOption,
|
|
106
|
+
LoginAccountSource,
|
|
107
|
+
LoginFieldConfig,
|
|
108
|
+
LoginNotice,
|
|
109
|
+
LoginScreenProps,
|
|
110
|
+
TwoFactorChallengeScreenProps,
|
|
111
|
+
TwoFactorChallengeSubmission,
|
|
112
|
+
TwoFactorCodeKind,
|
|
113
|
+
} from "./login/loginTypes";
|
|
114
|
+
export * from "./login/TwoFactorChallengeScreen";
|
|
102
115
|
export type * from "./MarkdownEditor";
|
|
103
116
|
export type * from "./MarkdownEditorField";
|
|
104
117
|
export * from "./MarkdownView";
|
|
@@ -114,12 +127,14 @@ export * from "./NumberField";
|
|
|
114
127
|
export * from "./NumberPickerActionSheet";
|
|
115
128
|
export * from "./OfflineBanner";
|
|
116
129
|
export * from "./OpenAPIContext";
|
|
130
|
+
export * from "./OtpField";
|
|
117
131
|
export * from "./Page";
|
|
118
132
|
export * from "./Pagination";
|
|
119
133
|
export * from "./PasswordField";
|
|
120
134
|
export * from "./PhoneNumberField";
|
|
121
135
|
export * from "./Popover";
|
|
122
136
|
export * from "./PortalHost";
|
|
137
|
+
export type * from "./ProvisionalConsentSigner";
|
|
123
138
|
export * from "./pdfHtmlTemplate";
|
|
124
139
|
export * from "./Radio";
|
|
125
140
|
export * from "./RadioField";
|
|
@@ -141,6 +156,30 @@ export type * from "./SparklineChart";
|
|
|
141
156
|
export * from "./Spinner";
|
|
142
157
|
export * from "./SplitPage";
|
|
143
158
|
export * from "./SyncStatusBanner";
|
|
159
|
+
export * from "./security/AccountSecurityScreen";
|
|
160
|
+
export * from "./security/LinkedAccountsCard";
|
|
161
|
+
export * from "./security/PasskeysCard";
|
|
162
|
+
export * from "./security/PasswordCard";
|
|
163
|
+
export * from "./security/SessionsCard";
|
|
164
|
+
export {CREDENTIAL_PROVIDER_ID, hasPasswordCredential} from "./security/securityMethods";
|
|
165
|
+
export type {
|
|
166
|
+
AccountPasskey,
|
|
167
|
+
AccountSecurityScreenProps,
|
|
168
|
+
AccountSession,
|
|
169
|
+
LinkableProvider,
|
|
170
|
+
LinkedAccount,
|
|
171
|
+
LinkedAccountsCardProps,
|
|
172
|
+
PasskeysCardProps,
|
|
173
|
+
PasswordCardMode,
|
|
174
|
+
PasswordCardProps,
|
|
175
|
+
PasswordCardSubmission,
|
|
176
|
+
SessionsCardProps,
|
|
177
|
+
TwoFactorEnrollment,
|
|
178
|
+
TwoFactorSettingsCardProps,
|
|
179
|
+
} from "./security/securityTypes";
|
|
180
|
+
export * from "./security/TwoFactorSettingsCard";
|
|
181
|
+
export type {ParsedUserAgent, UserAgentDeviceType} from "./security/userAgent";
|
|
182
|
+
export {describeUserAgent, parseUserAgent} from "./security/userAgent";
|
|
144
183
|
export {OAuthButtons} from "./signUp/OAuthButtons";
|
|
145
184
|
export {PasswordRequirements} from "./signUp/PasswordRequirements";
|
|
146
185
|
export {
|
|
@@ -150,6 +189,7 @@ export {
|
|
|
150
189
|
export {SignUpScreen} from "./signUp/SignUpScreen";
|
|
151
190
|
export {Swiper} from "./signUp/Swiper";
|
|
152
191
|
export type {
|
|
192
|
+
GenericOAuthProviderConfig,
|
|
153
193
|
OAuthProvider,
|
|
154
194
|
OAuthProviderConfig,
|
|
155
195
|
OnboardingPage,
|
|
@@ -189,6 +229,7 @@ export * from "./useAcknowledgeAnnouncement";
|
|
|
189
229
|
export * from "./useAnnouncements";
|
|
190
230
|
export * from "./useAppLaunchOrForeground";
|
|
191
231
|
export * from "./useConsentForms";
|
|
232
|
+
export * from "./useProvisionalConsent";
|
|
192
233
|
export * from "./useStoredState";
|
|
193
234
|
export * from "./useSubmitConsent";
|
|
194
235
|
export * from "./WebAddressAutocomplete";
|