termcast 1.3.10 → 1.3.16
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/dist/apis/toast.d.ts +1 -5
- package/dist/apis/toast.d.ts.map +1 -1
- package/dist/apis/toast.js +23 -17
- package/dist/apis/toast.js.map +1 -1
- package/dist/build.d.ts +2 -0
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +4 -3
- package/dist/build.js.map +1 -1
- package/dist/cli.js +42 -0
- package/dist/cli.js.map +1 -1
- package/dist/colors.d.ts +8 -1
- package/dist/colors.d.ts.map +1 -1
- package/dist/colors.js +12 -0
- package/dist/colors.js.map +1 -1
- package/dist/compile.d.ts +30 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +156 -0
- package/dist/compile.js.map +1 -0
- package/dist/components/actions.d.ts +1 -0
- package/dist/components/actions.d.ts.map +1 -1
- package/dist/components/actions.js +5 -2
- package/dist/components/actions.js.map +1 -1
- package/dist/components/command-arguments.d.ts +9 -0
- package/dist/components/command-arguments.d.ts.map +1 -0
- package/dist/components/command-arguments.js +21 -0
- package/dist/components/command-arguments.js.map +1 -0
- package/dist/components/detail.d.ts +1 -1
- package/dist/components/detail.d.ts.map +1 -1
- package/dist/components/detail.js +17 -39
- package/dist/components/detail.js.map +1 -1
- package/dist/components/dropdown.d.ts +1 -0
- package/dist/components/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown.js +77 -21
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/extension-preferences.d.ts.map +1 -1
- package/dist/components/extension-preferences.js +19 -29
- package/dist/components/extension-preferences.js.map +1 -1
- package/dist/components/form/checkbox.d.ts.map +1 -1
- package/dist/components/form/checkbox.js +9 -2
- package/dist/components/form/checkbox.js.map +1 -1
- package/dist/components/form/date-picker.d.ts.map +1 -1
- package/dist/components/form/date-picker.js +15 -28
- package/dist/components/form/date-picker.js.map +1 -1
- package/dist/components/form/description.d.ts +2 -0
- package/dist/components/form/description.d.ts.map +1 -1
- package/dist/components/form/description.js +20 -2
- package/dist/components/form/description.js.map +1 -1
- package/dist/components/form/dropdown.d.ts.map +1 -1
- package/dist/components/form/dropdown.js +13 -28
- package/dist/components/form/dropdown.js.map +1 -1
- package/dist/components/form/file-autocomplete.d.ts +7 -4
- package/dist/components/form/file-autocomplete.d.ts.map +1 -1
- package/dist/components/form/file-autocomplete.js +54 -46
- package/dist/components/form/file-autocomplete.js.map +1 -1
- package/dist/components/form/file-picker.d.ts +5 -0
- package/dist/components/form/file-picker.d.ts.map +1 -1
- package/dist/components/form/file-picker.js +46 -49
- package/dist/components/form/file-picker.js.map +1 -1
- package/dist/components/form/form-ref.d.ts +43 -0
- package/dist/components/form/form-ref.d.ts.map +1 -0
- package/dist/components/form/form-ref.js +53 -0
- package/dist/components/form/form-ref.js.map +1 -0
- package/dist/components/form/index.d.ts +16 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +86 -23
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/form/password-field.d.ts.map +1 -1
- package/dist/components/form/password-field.js +32 -16
- package/dist/components/form/password-field.js.map +1 -1
- package/dist/components/form/text-area.d.ts.map +1 -1
- package/dist/components/form/text-area.js +32 -15
- package/dist/components/form/text-area.js.map +1 -1
- package/dist/components/form/text-field.d.ts.map +1 -1
- package/dist/components/form/text-field.js +37 -17
- package/dist/components/form/text-field.js.map +1 -1
- package/dist/components/form/use-form-navigation.d.ts +4 -0
- package/dist/components/form/use-form-navigation.d.ts.map +1 -1
- package/dist/components/form/use-form-navigation.js +35 -18
- package/dist/components/form/use-form-navigation.js.map +1 -1
- package/dist/components/form/with-left-border.d.ts.map +1 -1
- package/dist/components/form/with-left-border.js +2 -2
- package/dist/components/form/with-left-border.js.map +1 -1
- package/dist/components/icon.d.ts +3 -1
- package/dist/components/icon.d.ts.map +1 -1
- package/dist/components/icon.js +494 -469
- package/dist/components/icon.js.map +1 -1
- package/dist/components/list.d.ts +11 -7
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +170 -38
- package/dist/components/list.js.map +1 -1
- package/dist/components/loading-bar.js +1 -1
- package/dist/components/loading-bar.js.map +1 -1
- package/dist/descendants.d.ts.map +1 -1
- package/dist/descendants.js +8 -5
- package/dist/descendants.js.map +1 -1
- package/dist/examples/action-show-in-finder.js +1 -1
- package/dist/examples/action-show-in-finder.js.map +1 -1
- package/dist/examples/environment-test.js +1 -1
- package/dist/examples/environment-test.js.map +1 -1
- package/dist/examples/error-boundary.js +1 -1
- package/dist/examples/error-boundary.js.map +1 -1
- package/dist/examples/form-basic.d.ts.map +1 -1
- package/dist/examples/form-basic.js +2 -2
- package/dist/examples/form-basic.js.map +1 -1
- package/dist/examples/form-dropdown.js +1 -1
- package/dist/examples/form-dropdown.js.map +1 -1
- package/dist/examples/form-scroll.d.ts +2 -0
- package/dist/examples/form-scroll.d.ts.map +1 -0
- package/dist/examples/form-scroll.js +8 -0
- package/dist/examples/form-scroll.js.map +1 -0
- package/dist/examples/form-tagpicker.js +1 -1
- package/dist/examples/form-tagpicker.js.map +1 -1
- package/dist/examples/internal/descendants-filtering.js +8 -3
- package/dist/examples/internal/descendants-filtering.js.map +1 -1
- package/dist/examples/internal/descendants.js +10 -3
- package/dist/examples/internal/descendants.js.map +1 -1
- package/dist/examples/internal/rhf-custom-ref.d.ts +2 -0
- package/dist/examples/internal/rhf-custom-ref.d.ts.map +1 -0
- package/dist/examples/internal/rhf-custom-ref.js +67 -0
- package/dist/examples/internal/rhf-custom-ref.js.map +1 -0
- package/dist/examples/internal/scrollbox-demo.js +3 -7
- package/dist/examples/internal/scrollbox-demo.js.map +1 -1
- package/dist/examples/internal/scrollbox-with-descendants.d.ts +2 -0
- package/dist/examples/internal/scrollbox-with-descendants.d.ts.map +1 -0
- package/dist/examples/internal/scrollbox-with-descendants.js +63 -0
- package/dist/examples/internal/scrollbox-with-descendants.js.map +1 -0
- package/dist/examples/internal/simple-dialog.js +1 -1
- package/dist/examples/internal/simple-dialog.js.map +1 -1
- package/dist/examples/internal/simple-scrollbox.js +2 -3
- package/dist/examples/internal/simple-scrollbox.js.map +1 -1
- package/dist/examples/internal/text-stacking.js +4 -2
- package/dist/examples/internal/text-stacking.js.map +1 -1
- package/dist/examples/list-dropdown-default.js +1 -1
- package/dist/examples/list-dropdown-default.js.map +1 -1
- package/dist/examples/list-fetch-data.js +1 -1
- package/dist/examples/list-fetch-data.js.map +1 -1
- package/dist/examples/list-scrollbox.d.ts +2 -0
- package/dist/examples/list-scrollbox.d.ts.map +1 -0
- package/dist/examples/list-scrollbox.js +29 -0
- package/dist/examples/list-scrollbox.js.map +1 -0
- package/dist/examples/list-with-detail.js +1 -1
- package/dist/examples/list-with-detail.js.map +1 -1
- package/dist/examples/list-with-dropdown.js +1 -1
- package/dist/examples/list-with-dropdown.js.map +1 -1
- package/dist/examples/list-with-sections.js +3 -3
- package/dist/examples/list-with-sections.js.map +1 -1
- package/dist/examples/miscellaneous.js +1 -1
- package/dist/examples/miscellaneous.js.map +1 -1
- package/dist/examples/nested-navigation.js +4 -2
- package/dist/examples/nested-navigation.js.map +1 -1
- package/dist/examples/preferences-test.js +1 -1
- package/dist/examples/preferences-test.js.map +1 -1
- package/dist/examples/simple-dropdown.js +1 -1
- package/dist/examples/simple-dropdown.js.map +1 -1
- package/dist/examples/simple-file-picker.js +1 -1
- package/dist/examples/simple-file-picker.js.map +1 -1
- package/dist/examples/simple-grid.js +1 -1
- package/dist/examples/simple-grid.js.map +1 -1
- package/dist/examples/simple-hud.js +1 -1
- package/dist/examples/simple-hud.js.map +1 -1
- package/dist/examples/simple-list-search.js +1 -1
- package/dist/examples/simple-list-search.js.map +1 -1
- package/dist/examples/simple-list.js +1 -1
- package/dist/examples/simple-list.js.map +1 -1
- package/dist/examples/simple-navigation.js +4 -2
- package/dist/examples/simple-navigation.js.map +1 -1
- package/dist/examples/store.js +1 -1
- package/dist/examples/store.js.map +1 -1
- package/dist/examples/submodule-diff.d.ts +2 -0
- package/dist/examples/submodule-diff.d.ts.map +1 -0
- package/dist/examples/submodule-diff.js +99 -0
- package/dist/examples/submodule-diff.js.map +1 -0
- package/dist/examples/tanstack-demo.js +1 -1
- package/dist/examples/tanstack-demo.js.map +1 -1
- package/dist/examples/use-promise-demo.js +1 -1
- package/dist/examples/use-promise-demo.js.map +1 -1
- package/dist/extensions/dev.d.ts +8 -0
- package/dist/extensions/dev.d.ts.map +1 -1
- package/dist/extensions/dev.js +53 -28
- package/dist/extensions/dev.js.map +1 -1
- package/dist/extensions/home.d.ts.map +1 -1
- package/dist/extensions/home.js +16 -91
- package/dist/extensions/home.js.map +1 -1
- package/dist/globals.js +1 -1
- package/dist/globals.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/date-picker-widget.d.ts.map +1 -1
- package/dist/internal/date-picker-widget.js +56 -48
- package/dist/internal/date-picker-widget.js.map +1 -1
- package/dist/internal/dialog.d.ts.map +1 -1
- package/dist/internal/dialog.js +7 -7
- package/dist/internal/dialog.js.map +1 -1
- package/dist/internal/scrollbox.d.ts +2 -1
- package/dist/internal/scrollbox.d.ts.map +1 -1
- package/dist/internal/scrollbox.js +13 -7
- package/dist/internal/scrollbox.js.map +1 -1
- package/dist/release.d.ts +11 -0
- package/dist/release.d.ts.map +1 -0
- package/dist/release.js +113 -0
- package/dist/release.js.map +1 -0
- package/dist/state.d.ts +1 -0
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +1 -0
- package/dist/state.js.map +1 -1
- package/dist/theme.d.ts +11 -8
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +31 -8
- package/dist/theme.js.map +1 -1
- package/dist/utils/run-command.d.ts +22 -0
- package/dist/utils/run-command.d.ts.map +1 -0
- package/dist/utils/run-command.js +127 -0
- package/dist/utils/run-command.js.map +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +5 -3
- package/dist/utils.js.map +1 -1
- package/package.json +10 -7
- package/src/apis/toast.tsx +38 -17
- package/src/build.tsx +5 -3
- package/src/cli.tsx +46 -0
- package/src/colors.tsx +22 -1
- package/src/compile.tsx +219 -0
- package/src/components/actions.tsx +7 -1
- package/src/components/command-arguments.tsx +81 -0
- package/src/components/detail.tsx +26 -58
- package/src/components/dropdown.tsx +108 -23
- package/src/components/extension-preferences.tsx +55 -35
- package/src/components/form/checkbox.tsx +13 -5
- package/src/components/form/date-picker.tsx +24 -29
- package/src/components/form/description.tsx +35 -7
- package/src/components/form/dropdown.tsx +16 -30
- package/src/components/form/file-autocomplete.tsx +87 -77
- package/src/components/form/file-picker.tsx +69 -57
- package/src/components/form/form-ref.tsx +68 -0
- package/src/components/form/index.tsx +152 -41
- package/src/components/form/password-field.tsx +35 -22
- package/src/components/form/text-area.tsx +78 -58
- package/src/components/form/text-field.tsx +82 -61
- package/src/components/form/use-form-navigation.tsx +43 -23
- package/src/components/form/with-left-border.tsx +2 -1
- package/src/components/icon.tsx +497 -469
- package/src/components/list.tsx +279 -112
- package/src/components/loading-bar.tsx +1 -1
- package/src/descendants.tsx +15 -5
- package/src/examples/action-show-in-finder.tsx +1 -1
- package/src/examples/environment-test.tsx +1 -1
- package/src/examples/error-boundary.tsx +1 -1
- package/src/examples/file-autocomplete.vitest.tsx +245 -0
- package/src/examples/form-basic.tsx +12 -12
- package/src/examples/form-basic.vitest.tsx +297 -671
- package/src/examples/form-dropdown.tsx +1 -1
- package/src/examples/form-dropdown.vitest.tsx +353 -221
- package/src/examples/form-scroll.tsx +56 -0
- package/src/examples/form-scroll.vitest.tsx +228 -0
- package/src/examples/form-tagpicker.tsx +1 -1
- package/src/examples/form-tagpicker.vitest.tsx +438 -193
- package/src/examples/internal/descendants-filtering.tsx +13 -5
- package/src/examples/internal/descendants.tsx +17 -5
- package/src/examples/internal/rhf-custom-ref.tsx +152 -0
- package/src/examples/internal/scrollbox-demo.tsx +15 -7
- package/src/examples/internal/scrollbox-with-descendants.tsx +94 -0
- package/src/examples/internal/simple-dialog.tsx +1 -1
- package/src/examples/internal/simple-scrollbox.tsx +8 -5
- package/src/examples/internal/simple-scrollbox.vitest.tsx +47 -37
- package/src/examples/internal/text-stacking.tsx +4 -2
- package/src/examples/list-dropdown-default.tsx +1 -1
- package/src/examples/list-dropdown-default.vitest.tsx +136 -71
- package/src/examples/list-fetch-data.tsx +1 -1
- package/src/examples/list-fetch-data.vitest.tsx +42 -33
- package/src/examples/list-scrollbox.tsx +46 -0
- package/src/examples/list-scrollbox.vitest.tsx +103 -0
- package/src/examples/list-with-detail.tsx +1 -1
- package/src/examples/list-with-detail.vitest.tsx +290 -294
- package/src/examples/list-with-dropdown.tsx +1 -1
- package/src/examples/list-with-dropdown.vitest.tsx +190 -150
- package/src/examples/list-with-sections.tsx +12 -1
- package/src/examples/list-with-sections.vitest.tsx +390 -218
- package/src/examples/miscellaneous.tsx +1 -1
- package/src/examples/nested-navigation.tsx +4 -2
- package/src/examples/preferences-test.tsx +1 -1
- package/src/examples/simple-dropdown.tsx +1 -1
- package/src/examples/simple-file-picker.tsx +1 -1
- package/src/examples/simple-file-picker.vitest.tsx +538 -132
- package/src/examples/simple-grid.tsx +1 -1
- package/src/examples/simple-grid.vitest.tsx +258 -234
- package/src/examples/simple-hud.tsx +1 -1
- package/src/examples/simple-list-search.tsx +1 -1
- package/src/examples/simple-list.tsx +1 -1
- package/src/examples/simple-navigation.tsx +4 -2
- package/src/examples/simple-navigation.vitest.tsx +434 -238
- package/src/examples/store.tsx +1 -1
- package/src/examples/store.vitest.tsx +31 -10
- package/src/examples/submodule-diff.tsx +153 -0
- package/src/examples/tanstack-demo.tsx +1 -1
- package/src/examples/use-promise-demo.tsx +1 -1
- package/src/extensions/dev.tsx +74 -36
- package/src/extensions/dev.vitest.tsx +220 -0
- package/src/extensions/home.tsx +17 -118
- package/src/globals.ts +1 -1
- package/src/index.tsx +7 -1
- package/src/internal/date-picker-widget.tsx +56 -46
- package/src/internal/dialog.tsx +6 -6
- package/src/internal/scrollbox.tsx +15 -5
- package/src/release.tsx +159 -0
- package/src/state.tsx +2 -0
- package/src/store-api/search.test.tsx +4 -13
- package/src/theme.tsx +33 -8
- package/src/utils/run-command.tsx +204 -0
- package/src/utils.tsx +5 -3
- package/dist/ai.d.ts +0 -104
- package/dist/ai.d.ts.map +0 -1
- package/dist/ai.js +0 -135
- package/dist/ai.js.map +0 -1
- package/dist/apis/cache.test.d.ts +0 -2
- package/dist/apis/cache.test.d.ts.map +0 -1
- package/dist/apis/cache.test.js +0 -246
- package/dist/apis/cache.test.js.map +0 -1
- package/dist/apis/localstorage.test.d.ts +0 -2
- package/dist/apis/localstorage.test.d.ts.map +0 -1
- package/dist/apis/localstorage.test.js +0 -131
- package/dist/apis/localstorage.test.js.map +0 -1
- package/dist/apis/toast.test.d.ts +0 -2
- package/dist/apis/toast.test.d.ts.map +0 -1
- package/dist/apis/toast.test.js +0 -67
- package/dist/apis/toast.test.js.map +0 -1
- package/dist/build.test.d.ts +0 -2
- package/dist/build.test.d.ts.map +0 -1
- package/dist/build.test.js +0 -73
- package/dist/build.test.js.map +0 -1
- package/dist/cache.d.ts +0 -32
- package/dist/cache.d.ts.map +0 -1
- package/dist/cache.js +0 -205
- package/dist/cache.js.map +0 -1
- package/dist/cache.test.d.ts +0 -2
- package/dist/cache.test.d.ts.map +0 -1
- package/dist/cache.test.js +0 -246
- package/dist/cache.test.js.map +0 -1
- package/dist/clipboard.d.ts +0 -36
- package/dist/clipboard.d.ts.map +0 -1
- package/dist/clipboard.js +0 -154
- package/dist/clipboard.js.map +0 -1
- package/dist/components/form/form-type-only.d.ts +0 -174
- package/dist/components/form/form-type-only.d.ts.map +0 -1
- package/dist/components/form/form-type-only.js +0 -2
- package/dist/components/form/form-type-only.js.map +0 -1
- package/dist/components/form/use-form-handling.d.ts +0 -4
- package/dist/components/form/use-form-handling.d.ts.map +0 -1
- package/dist/components/form/use-form-handling.js +0 -37
- package/dist/components/form/use-form-handling.js.map +0 -1
- package/dist/dev-ui.d.ts +0 -7
- package/dist/dev-ui.d.ts.map +0 -1
- package/dist/dev-ui.js +0 -118
- package/dist/dev-ui.js.map +0 -1
- package/dist/environment.d.ts +0 -63
- package/dist/environment.d.ts.map +0 -1
- package/dist/environment.js +0 -189
- package/dist/environment.js.map +0 -1
- package/dist/examples/datepicker.d.ts +0 -2
- package/dist/examples/datepicker.d.ts.map +0 -1
- package/dist/examples/datepicker.js +0 -344
- package/dist/examples/datepicker.js.map +0 -1
- package/dist/examples/form-basic-arrow-keys.vitest.d.ts +0 -2
- package/dist/examples/form-basic-arrow-keys.vitest.d.ts.map +0 -1
- package/dist/examples/form-basic-arrow-keys.vitest.js +0 -46
- package/dist/examples/form-basic-arrow-keys.vitest.js.map +0 -1
- package/dist/examples/form-basic.vitest.d.ts +0 -2
- package/dist/examples/form-basic.vitest.d.ts.map +0 -1
- package/dist/examples/form-basic.vitest.js +0 -995
- package/dist/examples/form-basic.vitest.js.map +0 -1
- package/dist/examples/form-dropdown-with-sections.d.ts +0 -2
- package/dist/examples/form-dropdown-with-sections.d.ts.map +0 -1
- package/dist/examples/form-dropdown-with-sections.js +0 -13
- package/dist/examples/form-dropdown-with-sections.js.map +0 -1
- package/dist/examples/form-dropdown-with-sections.vitest.d.ts +0 -2
- package/dist/examples/form-dropdown-with-sections.vitest.d.ts.map +0 -1
- package/dist/examples/form-dropdown-with-sections.vitest.js +0 -75
- package/dist/examples/form-dropdown-with-sections.vitest.js.map +0 -1
- package/dist/examples/form-dropdown.vitest.d.ts +0 -2
- package/dist/examples/form-dropdown.vitest.d.ts.map +0 -1
- package/dist/examples/form-dropdown.vitest.js +0 -722
- package/dist/examples/form-dropdown.vitest.js.map +0 -1
- package/dist/examples/form-multiselect-dropdown.d.ts +0 -2
- package/dist/examples/form-multiselect-dropdown.d.ts.map +0 -1
- package/dist/examples/form-multiselect-dropdown.js +0 -13
- package/dist/examples/form-multiselect-dropdown.js.map +0 -1
- package/dist/examples/form-tagpicker.vitest.d.ts +0 -2
- package/dist/examples/form-tagpicker.vitest.d.ts.map +0 -1
- package/dist/examples/form-tagpicker.vitest.js +0 -491
- package/dist/examples/form-tagpicker.vitest.js.map +0 -1
- package/dist/examples/internal/nested-boxes.d.ts +0 -2
- package/dist/examples/internal/nested-boxes.d.ts.map +0 -1
- package/dist/examples/internal/nested-boxes.js +0 -7
- package/dist/examples/internal/nested-boxes.js.map +0 -1
- package/dist/examples/internal/simple-scrollbox.vitest.d.ts +0 -2
- package/dist/examples/internal/simple-scrollbox.vitest.d.ts.map +0 -1
- package/dist/examples/internal/simple-scrollbox.vitest.js +0 -88
- package/dist/examples/internal/simple-scrollbox.vitest.js.map +0 -1
- package/dist/examples/internal/unicode-square-repro.d.ts +0 -2
- package/dist/examples/internal/unicode-square-repro.d.ts.map +0 -1
- package/dist/examples/internal/unicode-square-repro.js +0 -7
- package/dist/examples/internal/unicode-square-repro.js.map +0 -1
- package/dist/examples/list-dropdown-default.vitest.d.ts +0 -2
- package/dist/examples/list-dropdown-default.vitest.d.ts.map +0 -1
- package/dist/examples/list-dropdown-default.vitest.js +0 -164
- package/dist/examples/list-dropdown-default.vitest.js.map +0 -1
- package/dist/examples/list-fetch-data.vitest.d.ts +0 -2
- package/dist/examples/list-fetch-data.vitest.d.ts.map +0 -1
- package/dist/examples/list-fetch-data.vitest.js +0 -103
- package/dist/examples/list-fetch-data.vitest.js.map +0 -1
- package/dist/examples/list-filter-navigation.d.ts +0 -2
- package/dist/examples/list-filter-navigation.d.ts.map +0 -1
- package/dist/examples/list-filter-navigation.js +0 -8
- package/dist/examples/list-filter-navigation.js.map +0 -1
- package/dist/examples/list-with-detail.vitest.d.ts +0 -2
- package/dist/examples/list-with-detail.vitest.d.ts.map +0 -1
- package/dist/examples/list-with-detail.vitest.js +0 -438
- package/dist/examples/list-with-detail.vitest.js.map +0 -1
- package/dist/examples/list-with-dropdown.vitest.d.ts +0 -2
- package/dist/examples/list-with-dropdown.vitest.d.ts.map +0 -1
- package/dist/examples/list-with-dropdown.vitest.js +0 -297
- package/dist/examples/list-with-dropdown.vitest.js.map +0 -1
- package/dist/examples/list-with-sections.vitest.d.ts +0 -2
- package/dist/examples/list-with-sections.vitest.d.ts.map +0 -1
- package/dist/examples/list-with-sections.vitest.js +0 -441
- package/dist/examples/list-with-sections.vitest.js.map +0 -1
- package/dist/examples/simple-file-picker.vitest.d.ts +0 -2
- package/dist/examples/simple-file-picker.vitest.d.ts.map +0 -1
- package/dist/examples/simple-file-picker.vitest.js +0 -277
- package/dist/examples/simple-file-picker.vitest.js.map +0 -1
- package/dist/examples/simple-grid.vitest.d.ts +0 -2
- package/dist/examples/simple-grid.vitest.d.ts.map +0 -1
- package/dist/examples/simple-grid.vitest.js +0 -498
- package/dist/examples/simple-grid.vitest.js.map +0 -1
- package/dist/examples/simple-navigation.vitest.d.ts +0 -2
- package/dist/examples/simple-navigation.vitest.d.ts.map +0 -1
- package/dist/examples/simple-navigation.vitest.js +0 -522
- package/dist/examples/simple-navigation.vitest.js.map +0 -1
- package/dist/examples/store.vitest.d.ts +0 -2
- package/dist/examples/store.vitest.d.ts.map +0 -1
- package/dist/examples/store.vitest.js +0 -48
- package/dist/examples/store.vitest.js.map +0 -1
- package/dist/home-command.d.ts +0 -8
- package/dist/home-command.d.ts.map +0 -1
- package/dist/home-command.js +0 -181
- package/dist/home-command.js.map +0 -1
- package/dist/hooks/hooks.test.d.ts +0 -2
- package/dist/hooks/hooks.test.d.ts.map +0 -1
- package/dist/hooks/hooks.test.js +0 -37
- package/dist/hooks/hooks.test.js.map +0 -1
- package/dist/hover-repro.d.ts +0 -2
- package/dist/hover-repro.d.ts.map +0 -1
- package/dist/hover-repro.js +0 -20
- package/dist/hover-repro.js.map +0 -1
- package/dist/localstorage.d.ts +0 -13
- package/dist/localstorage.d.ts.map +0 -1
- package/dist/localstorage.js +0 -190
- package/dist/localstorage.js.map +0 -1
- package/dist/localstorage.test.d.ts +0 -2
- package/dist/localstorage.test.d.ts.map +0 -1
- package/dist/localstorage.test.js +0 -131
- package/dist/localstorage.test.js.map +0 -1
- package/dist/oauth.d.ts +0 -142
- package/dist/oauth.d.ts.map +0 -1
- package/dist/oauth.js +0 -551
- package/dist/oauth.js.map +0 -1
- package/dist/preferences.d.ts +0 -23
- package/dist/preferences.d.ts.map +0 -1
- package/dist/preferences.js +0 -105
- package/dist/preferences.js.map +0 -1
- package/dist/store-api/download.test.d.ts +0 -2
- package/dist/store-api/download.test.d.ts.map +0 -1
- package/dist/store-api/download.test.js +0 -36
- package/dist/store-api/download.test.js.map +0 -1
- package/dist/store-api/extension.test.d.ts +0 -2
- package/dist/store-api/extension.test.d.ts.map +0 -1
- package/dist/store-api/extension.test.js +0 -22
- package/dist/store-api/extension.test.js.map +0 -1
- package/dist/store-api/search.test.d.ts +0 -2
- package/dist/store-api/search.test.d.ts.map +0 -1
- package/dist/store-api/search.test.js +0 -45
- package/dist/store-api/search.test.js.map +0 -1
- package/dist/store.d.ts +0 -21
- package/dist/store.d.ts.map +0 -1
- package/dist/store.js +0 -84
- package/dist/store.js.map +0 -1
- package/dist/toast.d.ts +0 -44
- package/dist/toast.d.ts.map +0 -1
- package/dist/toast.js +0 -221
- package/dist/toast.js.map +0 -1
- package/dist/utils.test.d.ts +0 -2
- package/dist/utils.test.d.ts.map +0 -1
- package/dist/utils.test.js +0 -152
- package/dist/utils.test.js.map +0 -1
- package/dist/window.d.ts +0 -12
- package/dist/window.d.ts.map +0 -1
- package/dist/window.js +0 -48
- package/dist/window.js.map +0 -1
|
@@ -1,995 +0,0 @@
|
|
|
1
|
-
// node-pty does not work in bun, so we use vitest to run this test
|
|
2
|
-
import { test, expect, afterEach, beforeEach } from 'vitest';
|
|
3
|
-
import { NodeTuiDriver } from 'termcast/src/e2e-node';
|
|
4
|
-
let driver;
|
|
5
|
-
beforeEach(() => {
|
|
6
|
-
driver = new NodeTuiDriver('bun', ['src/examples/form-basic.tsx'], {
|
|
7
|
-
cols: 70,
|
|
8
|
-
rows: 50,
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
afterEach(() => {
|
|
12
|
-
driver?.dispose();
|
|
13
|
-
});
|
|
14
|
-
test('form basic navigation and input', async () => {
|
|
15
|
-
await driver.text({
|
|
16
|
-
waitFor: (text) => {
|
|
17
|
-
// wait for form to show up
|
|
18
|
-
return /Form Component Demo/i.test(text);
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
// Small delay to ensure all form components are rendered
|
|
22
|
-
await driver.waitIdle();
|
|
23
|
-
const initialSnapshot = await driver.text();
|
|
24
|
-
expect(initialSnapshot).toMatchInlineSnapshot(`
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
Form Component Demo
|
|
28
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
29
|
-
│
|
|
30
|
-
◆ Username
|
|
31
|
-
│ Enter your username
|
|
32
|
-
│ Required field
|
|
33
|
-
│
|
|
34
|
-
◇ Password
|
|
35
|
-
│ Enter secure password
|
|
36
|
-
│ Must be at least 8 characters
|
|
37
|
-
│
|
|
38
|
-
◇ Biography
|
|
39
|
-
│ Tell us about yourself...
|
|
40
|
-
│
|
|
41
|
-
│
|
|
42
|
-
│
|
|
43
|
-
│
|
|
44
|
-
│ Maximum 500 characters
|
|
45
|
-
│
|
|
46
|
-
◇ Email Preferences
|
|
47
|
-
│ ○ Subscribe to newsletter
|
|
48
|
-
│
|
|
49
|
-
│ Receive weekly updates
|
|
50
|
-
│
|
|
51
|
-
◇ Country
|
|
52
|
-
│ Select your country
|
|
53
|
-
│
|
|
54
|
-
│ Americas
|
|
55
|
-
│ ○ United States
|
|
56
|
-
│ ○ Canada
|
|
57
|
-
│ ○ Mexico
|
|
58
|
-
│ Europe
|
|
59
|
-
│ ○ United Kingdom
|
|
60
|
-
│ ↑↓ to see more options
|
|
61
|
-
│
|
|
62
|
-
│ Your country of residence
|
|
63
|
-
│
|
|
64
|
-
◇ Date of Birth
|
|
65
|
-
│
|
|
66
|
-
│ ← 2025 →
|
|
67
|
-
│ ← October →
|
|
68
|
-
│
|
|
69
|
-
│ Mo Tu We Th Fr Sa Su
|
|
70
|
-
│ 1 2 3 4 5
|
|
71
|
-
│ 6 7 8 9 10 11 12
|
|
72
|
-
│ 13 14 15 16 17 18 19
|
|
73
|
-
│ 20 21 22 23 24 25 26
|
|
74
|
-
│ 27 28 29 30 31"
|
|
75
|
-
`);
|
|
76
|
-
// Type in username field
|
|
77
|
-
await driver.keys.type('johndoe');
|
|
78
|
-
const afterUsernameSnapshot = await driver.text();
|
|
79
|
-
expect(afterUsernameSnapshot).toMatchInlineSnapshot(`
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
Form Component Demo
|
|
83
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
84
|
-
│
|
|
85
|
-
◆ Username
|
|
86
|
-
│ johndoe
|
|
87
|
-
│ Required field
|
|
88
|
-
│
|
|
89
|
-
◇ Password
|
|
90
|
-
│ Enter secure password
|
|
91
|
-
│ Must be at least 8 characters
|
|
92
|
-
│
|
|
93
|
-
◇ Biography
|
|
94
|
-
│ Tell us about yourself...
|
|
95
|
-
│
|
|
96
|
-
│
|
|
97
|
-
│
|
|
98
|
-
│
|
|
99
|
-
│ Maximum 500 characters
|
|
100
|
-
│
|
|
101
|
-
◇ Email Preferences
|
|
102
|
-
│ ○ Subscribe to newsletter
|
|
103
|
-
│
|
|
104
|
-
│ Receive weekly updates
|
|
105
|
-
│
|
|
106
|
-
◇ Country
|
|
107
|
-
│ Select your country
|
|
108
|
-
│
|
|
109
|
-
│ Americas
|
|
110
|
-
│ ○ United States
|
|
111
|
-
│ ○ Canada
|
|
112
|
-
│ ○ Mexico
|
|
113
|
-
│ Europe
|
|
114
|
-
│ ○ United Kingdom
|
|
115
|
-
│ ↑↓ to see more options
|
|
116
|
-
│
|
|
117
|
-
│ Your country of residence
|
|
118
|
-
│
|
|
119
|
-
◇ Date of Birth
|
|
120
|
-
│
|
|
121
|
-
│ ← 2025 →
|
|
122
|
-
│ ← October →
|
|
123
|
-
│
|
|
124
|
-
│ Mo Tu We Th Fr Sa Su
|
|
125
|
-
│ 1 2 3 4 5
|
|
126
|
-
│ 6 7 8 9 10 11 12
|
|
127
|
-
│ 13 14 15 16 17 18 19
|
|
128
|
-
│ 20 21 22 23 24 25 26
|
|
129
|
-
│ 27 28 29 30 31"
|
|
130
|
-
`);
|
|
131
|
-
// Tab to password field
|
|
132
|
-
await driver.keys.tab();
|
|
133
|
-
await driver.keys.type('securepass123');
|
|
134
|
-
const afterPasswordSnapshot = await driver.text();
|
|
135
|
-
expect(afterPasswordSnapshot).toMatchInlineSnapshot(`
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
Form Component Demo
|
|
139
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
140
|
-
│
|
|
141
|
-
◇ Username
|
|
142
|
-
│ johndoe
|
|
143
|
-
│ Required field
|
|
144
|
-
│
|
|
145
|
-
◆ Password
|
|
146
|
-
│ securepass123
|
|
147
|
-
│ Must be at least 8 characters
|
|
148
|
-
│
|
|
149
|
-
◇ Biography
|
|
150
|
-
│ Tell us about yourself...
|
|
151
|
-
│
|
|
152
|
-
│
|
|
153
|
-
│
|
|
154
|
-
│
|
|
155
|
-
│ Maximum 500 characters
|
|
156
|
-
│
|
|
157
|
-
◇ Email Preferences
|
|
158
|
-
│ ○ Subscribe to newsletter
|
|
159
|
-
│
|
|
160
|
-
│ Receive weekly updates
|
|
161
|
-
│
|
|
162
|
-
◇ Country
|
|
163
|
-
│ Select your country
|
|
164
|
-
│
|
|
165
|
-
│ Americas
|
|
166
|
-
│ ○ United States
|
|
167
|
-
│ ○ Canada
|
|
168
|
-
│ ○ Mexico
|
|
169
|
-
│ Europe
|
|
170
|
-
│ ○ United Kingdom
|
|
171
|
-
│ ↑↓ to see more options
|
|
172
|
-
│
|
|
173
|
-
│ Your country of residence
|
|
174
|
-
│
|
|
175
|
-
◇ Date of Birth
|
|
176
|
-
│
|
|
177
|
-
│ ← 2025 →
|
|
178
|
-
│ ← October →
|
|
179
|
-
│
|
|
180
|
-
│ Mo Tu We Th Fr Sa Su
|
|
181
|
-
│ 1 2 3 4 5
|
|
182
|
-
│ 6 7 8 9 10 11 12
|
|
183
|
-
│ 13 14 15 16 17 18 19
|
|
184
|
-
│ 20 21 22 23 24 25 26
|
|
185
|
-
│ 27 28 29 30 31"
|
|
186
|
-
`);
|
|
187
|
-
// Tab to biography field
|
|
188
|
-
await driver.keys.tab();
|
|
189
|
-
await driver.keys.type('I am a software developer');
|
|
190
|
-
const afterBioSnapshot = await driver.text();
|
|
191
|
-
expect(afterBioSnapshot).toMatchInlineSnapshot(`
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
Form Component Demo
|
|
195
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
196
|
-
│
|
|
197
|
-
◇ Username
|
|
198
|
-
│ johndoe
|
|
199
|
-
│ Required field
|
|
200
|
-
│
|
|
201
|
-
◇ Password
|
|
202
|
-
│ *************
|
|
203
|
-
│ Must be at least 8 characters
|
|
204
|
-
│
|
|
205
|
-
◆ Biography
|
|
206
|
-
│ I am a software developer
|
|
207
|
-
│
|
|
208
|
-
│
|
|
209
|
-
│
|
|
210
|
-
│
|
|
211
|
-
│ Maximum 500 characters
|
|
212
|
-
│
|
|
213
|
-
◇ Email Preferences
|
|
214
|
-
│ ○ Subscribe to newsletter
|
|
215
|
-
│
|
|
216
|
-
│ Receive weekly updates
|
|
217
|
-
│
|
|
218
|
-
◇ Country
|
|
219
|
-
│ Select your country
|
|
220
|
-
│
|
|
221
|
-
│ Americas
|
|
222
|
-
│ ○ United States
|
|
223
|
-
│ ○ Canada
|
|
224
|
-
│ ○ Mexico
|
|
225
|
-
│ Europe
|
|
226
|
-
│ ○ United Kingdom
|
|
227
|
-
│ ↑↓ to see more options
|
|
228
|
-
│
|
|
229
|
-
│ Your country of residence
|
|
230
|
-
│
|
|
231
|
-
◇ Date of Birth
|
|
232
|
-
│
|
|
233
|
-
│ ← 2025 →
|
|
234
|
-
│ ← October →
|
|
235
|
-
│
|
|
236
|
-
│ Mo Tu We Th Fr Sa Su
|
|
237
|
-
│ 1 2 3 4 5
|
|
238
|
-
│ 6 7 8 9 10 11 12
|
|
239
|
-
│ 13 14 15 16 17 18 19
|
|
240
|
-
│ 20 21 22 23 24 25 26
|
|
241
|
-
│ 27 28 29 30 31"
|
|
242
|
-
`);
|
|
243
|
-
// Tab to newsletter checkbox and toggle it
|
|
244
|
-
await driver.keys.tab();
|
|
245
|
-
await driver.keys.space();
|
|
246
|
-
const afterCheckboxSnapshot = await driver.text();
|
|
247
|
-
expect(afterCheckboxSnapshot).toMatchInlineSnapshot(`
|
|
248
|
-
"
|
|
249
|
-
|
|
250
|
-
Form Component Demo
|
|
251
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
252
|
-
│
|
|
253
|
-
◇ Username
|
|
254
|
-
│ johndoe
|
|
255
|
-
│ Required field
|
|
256
|
-
│
|
|
257
|
-
◇ Password
|
|
258
|
-
│ *************
|
|
259
|
-
│ Must be at least 8 characters
|
|
260
|
-
│
|
|
261
|
-
◇ Biography
|
|
262
|
-
│ I am a software developer
|
|
263
|
-
│
|
|
264
|
-
│
|
|
265
|
-
│
|
|
266
|
-
│
|
|
267
|
-
│ Maximum 500 characters
|
|
268
|
-
│
|
|
269
|
-
◆ Email Preferences
|
|
270
|
-
│ ● Subscribe to newsletter
|
|
271
|
-
│
|
|
272
|
-
│ Receive weekly updates
|
|
273
|
-
│
|
|
274
|
-
◇ Country
|
|
275
|
-
│ Select your country
|
|
276
|
-
│
|
|
277
|
-
│ Americas
|
|
278
|
-
│ ○ United States
|
|
279
|
-
│ ○ Canada
|
|
280
|
-
│ ○ Mexico
|
|
281
|
-
│ Europe
|
|
282
|
-
│ ○ United Kingdom
|
|
283
|
-
│ ↑↓ to see more options
|
|
284
|
-
│
|
|
285
|
-
│ Your country of residence
|
|
286
|
-
│
|
|
287
|
-
◇ Date of Birth
|
|
288
|
-
│
|
|
289
|
-
│ ← 2025 →
|
|
290
|
-
│ ← October →
|
|
291
|
-
│
|
|
292
|
-
│ Mo Tu We Th Fr Sa Su
|
|
293
|
-
│ 1 2 3 4 5
|
|
294
|
-
│ 6 7 8 9 10 11 12
|
|
295
|
-
│ 13 14 15 16 17 18 19
|
|
296
|
-
│ 20 21 22 23 24 25 26
|
|
297
|
-
│ 27 28 29 30 31"
|
|
298
|
-
`);
|
|
299
|
-
// Tab to country dropdown and select United States
|
|
300
|
-
await driver.keys.tab();
|
|
301
|
-
await driver.keys.space();
|
|
302
|
-
const afterSelectUSSnapshot = await driver.text();
|
|
303
|
-
expect(afterSelectUSSnapshot).toMatchInlineSnapshot(`
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
Form Component Demo
|
|
307
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
308
|
-
│
|
|
309
|
-
◇ Username
|
|
310
|
-
│ johndoe
|
|
311
|
-
│ Required field
|
|
312
|
-
│
|
|
313
|
-
◇ Password
|
|
314
|
-
│ *************
|
|
315
|
-
│ Must be at least 8 characters
|
|
316
|
-
│
|
|
317
|
-
◇ Biography
|
|
318
|
-
│ I am a software developer
|
|
319
|
-
│
|
|
320
|
-
│
|
|
321
|
-
│
|
|
322
|
-
│
|
|
323
|
-
│ Maximum 500 characters
|
|
324
|
-
│
|
|
325
|
-
◇ Email Preferences
|
|
326
|
-
│ ● Subscribe to newsletter
|
|
327
|
-
│
|
|
328
|
-
│ Receive weekly updates
|
|
329
|
-
│
|
|
330
|
-
◆ Country
|
|
331
|
-
│ United States
|
|
332
|
-
│
|
|
333
|
-
│ Americas
|
|
334
|
-
│› ● United States
|
|
335
|
-
│ ○ Canada
|
|
336
|
-
│ ○ Mexico
|
|
337
|
-
│ Europe
|
|
338
|
-
│ ○ United Kingdom
|
|
339
|
-
│ ↑↓ to see more options
|
|
340
|
-
│
|
|
341
|
-
│ Your country of residence
|
|
342
|
-
│
|
|
343
|
-
◇ Date of Birth
|
|
344
|
-
│
|
|
345
|
-
│ ← 2025 →
|
|
346
|
-
│ ← October →
|
|
347
|
-
│
|
|
348
|
-
│ Mo Tu We Th Fr Sa Su
|
|
349
|
-
│ 1 2 3 4 5
|
|
350
|
-
│ 6 7 8 9 10 11 12
|
|
351
|
-
│ 13 14 15 16 17 18 19
|
|
352
|
-
│ 20 21 22 23 24 25 26
|
|
353
|
-
│ 27 28 29 30 31"
|
|
354
|
-
`);
|
|
355
|
-
// Select United States
|
|
356
|
-
await driver.keys.enter();
|
|
357
|
-
const afterCountrySelectSnapshot = await driver.text();
|
|
358
|
-
expect(afterCountrySelectSnapshot).toMatchInlineSnapshot(`
|
|
359
|
-
"
|
|
360
|
-
|
|
361
|
-
Form Component Demo
|
|
362
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
363
|
-
│
|
|
364
|
-
◇ Username
|
|
365
|
-
│ johndoe
|
|
366
|
-
│ Required field
|
|
367
|
-
│
|
|
368
|
-
◇ Password
|
|
369
|
-
│ *************
|
|
370
|
-
│ Must be at least 8 characters
|
|
371
|
-
│
|
|
372
|
-
◇ Biography
|
|
373
|
-
│ I am a software developer
|
|
374
|
-
│
|
|
375
|
-
│
|
|
376
|
-
│
|
|
377
|
-
│
|
|
378
|
-
│ Maximum 500 characters
|
|
379
|
-
│
|
|
380
|
-
◇ Email Preferences
|
|
381
|
-
│ ● Subscribe to newsletter
|
|
382
|
-
│
|
|
383
|
-
│ Receive weekly updates
|
|
384
|
-
│
|
|
385
|
-
◆ Country
|
|
386
|
-
│ United States
|
|
387
|
-
│
|
|
388
|
-
│ Americas
|
|
389
|
-
│› ● United States
|
|
390
|
-
│ ○ Canada
|
|
391
|
-
│ ○ Mexico
|
|
392
|
-
│ Europe
|
|
393
|
-
│ ○ United Kingdom
|
|
394
|
-
│ ↑↓ to see more options
|
|
395
|
-
│
|
|
396
|
-
│ Your country of residence
|
|
397
|
-
│
|
|
398
|
-
◇ Date of Birth
|
|
399
|
-
│
|
|
400
|
-
│ ← 2025 →
|
|
401
|
-
│ ← October →
|
|
402
|
-
│
|
|
403
|
-
│ Mo Tu We Th Fr Sa Su
|
|
404
|
-
│ 1 2 3 4 5
|
|
405
|
-
│ 6 7 8 9 10 11 12
|
|
406
|
-
│ 13 14 15 16 17 18 19
|
|
407
|
-
│ 20 21 22 23 24 25 26
|
|
408
|
-
│ 27 28 29 30 31"
|
|
409
|
-
`);
|
|
410
|
-
// Tab to date picker
|
|
411
|
-
await driver.keys.tab();
|
|
412
|
-
await driver.keys.type('1990-05-15');
|
|
413
|
-
const afterDateSnapshot = await driver.text();
|
|
414
|
-
expect(afterDateSnapshot).toMatchInlineSnapshot(`
|
|
415
|
-
"
|
|
416
|
-
|
|
417
|
-
Form Component Demo
|
|
418
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
419
|
-
│
|
|
420
|
-
◇ Username
|
|
421
|
-
│ johndoe
|
|
422
|
-
│ Required field
|
|
423
|
-
│
|
|
424
|
-
◇ Password
|
|
425
|
-
│ *************
|
|
426
|
-
│ Must be at least 8 characters
|
|
427
|
-
│
|
|
428
|
-
◇ Biography
|
|
429
|
-
│ I am a software developer
|
|
430
|
-
│
|
|
431
|
-
│
|
|
432
|
-
│
|
|
433
|
-
│
|
|
434
|
-
│ Maximum 500 characters
|
|
435
|
-
│
|
|
436
|
-
◇ Email Preferences
|
|
437
|
-
│ ● Subscribe to newsletter
|
|
438
|
-
│
|
|
439
|
-
│ Receive weekly updates
|
|
440
|
-
│
|
|
441
|
-
◇ Country
|
|
442
|
-
│ United States
|
|
443
|
-
│
|
|
444
|
-
│ Americas
|
|
445
|
-
│ ● United States
|
|
446
|
-
│ ○ Canada
|
|
447
|
-
│ ○ Mexico
|
|
448
|
-
│ Europe
|
|
449
|
-
│ ○ United Kingdom
|
|
450
|
-
│ ↑↓ to see more options
|
|
451
|
-
│
|
|
452
|
-
│ Your country of residence
|
|
453
|
-
│
|
|
454
|
-
◆ Date of Birth
|
|
455
|
-
│
|
|
456
|
-
│ ← 2025 →
|
|
457
|
-
│ ← October →
|
|
458
|
-
│
|
|
459
|
-
│ Mo Tu We Th Fr Sa Su
|
|
460
|
-
│ 1 2 3 4 5
|
|
461
|
-
│ 6 7 8 9 10 11 12
|
|
462
|
-
│ 13 14 15 16 17 18 19
|
|
463
|
-
│ 20 21 22 23 24 25 26
|
|
464
|
-
│ 27 28 29 30 31"
|
|
465
|
-
`);
|
|
466
|
-
// Submit form with Cmd+Enter
|
|
467
|
-
await driver.keys.cmdEnter();
|
|
468
|
-
const afterSubmitSnapshot = await driver.text({
|
|
469
|
-
waitFor: (text) => {
|
|
470
|
-
// wait for submitted data to show
|
|
471
|
-
return /Submitted Data:/i.test(text);
|
|
472
|
-
},
|
|
473
|
-
});
|
|
474
|
-
expect(afterSubmitSnapshot).toMatchInlineSnapshot(`
|
|
475
|
-
"
|
|
476
|
-
|
|
477
|
-
Form Component Demo
|
|
478
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
479
|
-
│
|
|
480
|
-
◇ Username
|
|
481
|
-
│ johndoe
|
|
482
|
-
│ Required field
|
|
483
|
-
│
|
|
484
|
-
◇ Password
|
|
485
|
-
│ *************
|
|
486
|
-
│ Must be at least 8 characters
|
|
487
|
-
│
|
|
488
|
-
◇ Biography
|
|
489
|
-
│ I am a software developer
|
|
490
|
-
│
|
|
491
|
-
│
|
|
492
|
-
│
|
|
493
|
-
│
|
|
494
|
-
│ Maximum 500 characters
|
|
495
|
-
│
|
|
496
|
-
◇ Email Preferences
|
|
497
|
-
│ ● Subscribe to newsletter
|
|
498
|
-
│
|
|
499
|
-
│ Receive weekly updates
|
|
500
|
-
│
|
|
501
|
-
◇ Country
|
|
502
|
-
│ United States
|
|
503
|
-
│
|
|
504
|
-
│ Americas
|
|
505
|
-
│ ● United States
|
|
506
|
-
│ ○ Canada
|
|
507
|
-
│ ○ Mexico
|
|
508
|
-
│ Europe
|
|
509
|
-
│ ○ United Kingdom
|
|
510
|
-
│ ↑↓ to see more options
|
|
511
|
-
│
|
|
512
|
-
│ Your country of residence
|
|
513
|
-
│
|
|
514
|
-
◆ Date of Birth
|
|
515
|
-
│
|
|
516
|
-
│ ← 2025 →
|
|
517
|
-
│ ← October →
|
|
518
|
-
│
|
|
519
|
-
│ Mo Tu We Th Fr Sa Su
|
|
520
|
-
│ 1 2 3 4 5
|
|
521
|
-
│ 6 7 8 9 10 11 12
|
|
522
|
-
│ 13 14 15 16 17 18 19
|
|
523
|
-
│ 20 21 22 23 24 25 26
|
|
524
|
-
│ 27 28 29 30 31"
|
|
525
|
-
`);
|
|
526
|
-
}, 15000);
|
|
527
|
-
test('form navigation with shift+tab', async () => {
|
|
528
|
-
await driver.text({
|
|
529
|
-
waitFor: (text) => {
|
|
530
|
-
// wait for form to show up
|
|
531
|
-
return /Form Component Demo/i.test(text);
|
|
532
|
-
},
|
|
533
|
-
});
|
|
534
|
-
// Fill some fields first
|
|
535
|
-
await driver.keys.type('testuser');
|
|
536
|
-
await driver.keys.tab();
|
|
537
|
-
await driver.keys.type('password');
|
|
538
|
-
await driver.keys.tab();
|
|
539
|
-
const afterForwardTabSnapshot = await driver.text();
|
|
540
|
-
expect(afterForwardTabSnapshot).toMatchInlineSnapshot(`
|
|
541
|
-
"
|
|
542
|
-
|
|
543
|
-
Form Component Demo
|
|
544
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
545
|
-
│
|
|
546
|
-
◇ Username
|
|
547
|
-
│ testuser
|
|
548
|
-
│ Required field
|
|
549
|
-
│
|
|
550
|
-
◇ Password
|
|
551
|
-
│ ********
|
|
552
|
-
│ Must be at least 8 characters
|
|
553
|
-
│
|
|
554
|
-
◆ Biography
|
|
555
|
-
│ Tell us about yourself...
|
|
556
|
-
│
|
|
557
|
-
│
|
|
558
|
-
│
|
|
559
|
-
│
|
|
560
|
-
│ Maximum 500 characters
|
|
561
|
-
│
|
|
562
|
-
◇ Email Preferences
|
|
563
|
-
│ ○ Subscribe to newsletter
|
|
564
|
-
│
|
|
565
|
-
│ Receive weekly updates
|
|
566
|
-
│
|
|
567
|
-
◇ Country
|
|
568
|
-
│ Select your country
|
|
569
|
-
│
|
|
570
|
-
│ Americas
|
|
571
|
-
│ ○ United States
|
|
572
|
-
│ ○ Canada
|
|
573
|
-
│ ○ Mexico
|
|
574
|
-
│ Europe
|
|
575
|
-
│ ○ United Kingdom
|
|
576
|
-
│ ↑↓ to see more options
|
|
577
|
-
│
|
|
578
|
-
│ Your country of residence
|
|
579
|
-
│
|
|
580
|
-
◇ Date of Birth
|
|
581
|
-
│
|
|
582
|
-
│ ← 2025 →
|
|
583
|
-
│ ← October →
|
|
584
|
-
│
|
|
585
|
-
│ Mo Tu We Th Fr Sa Su
|
|
586
|
-
│ 1 2 3 4 5
|
|
587
|
-
│ 6 7 8 9 10 11 12
|
|
588
|
-
│ 13 14 15 16 17 18 19
|
|
589
|
-
│ 20 21 22 23 24 25 26
|
|
590
|
-
│ 27 28 29 30 31"
|
|
591
|
-
`);
|
|
592
|
-
// Navigate backwards with Shift+Tab
|
|
593
|
-
await driver.keys.shiftTab();
|
|
594
|
-
const afterBackwardTabSnapshot = await driver.text();
|
|
595
|
-
expect(afterBackwardTabSnapshot).toMatchInlineSnapshot(`
|
|
596
|
-
"
|
|
597
|
-
|
|
598
|
-
Form Component Demo
|
|
599
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
600
|
-
│
|
|
601
|
-
◇ Username
|
|
602
|
-
│ testuser
|
|
603
|
-
│ Required field
|
|
604
|
-
│
|
|
605
|
-
◆ Password
|
|
606
|
-
│ password
|
|
607
|
-
│ Must be at least 8 characters
|
|
608
|
-
│
|
|
609
|
-
◇ Biography
|
|
610
|
-
│ Tell us about yourself...
|
|
611
|
-
│
|
|
612
|
-
│
|
|
613
|
-
│
|
|
614
|
-
│
|
|
615
|
-
│ Maximum 500 characters
|
|
616
|
-
│
|
|
617
|
-
◇ Email Preferences
|
|
618
|
-
│ ○ Subscribe to newsletter
|
|
619
|
-
│
|
|
620
|
-
│ Receive weekly updates
|
|
621
|
-
│
|
|
622
|
-
◇ Country
|
|
623
|
-
│ Select your country
|
|
624
|
-
│
|
|
625
|
-
│ Americas
|
|
626
|
-
│ ○ United States
|
|
627
|
-
│ ○ Canada
|
|
628
|
-
│ ○ Mexico
|
|
629
|
-
│ Europe
|
|
630
|
-
│ ○ United Kingdom
|
|
631
|
-
│ ↑↓ to see more options
|
|
632
|
-
│
|
|
633
|
-
│ Your country of residence
|
|
634
|
-
│
|
|
635
|
-
◇ Date of Birth
|
|
636
|
-
│
|
|
637
|
-
│ ← 2025 →
|
|
638
|
-
│ ← October →
|
|
639
|
-
│
|
|
640
|
-
│ Mo Tu We Th Fr Sa Su
|
|
641
|
-
│ 1 2 3 4 5
|
|
642
|
-
│ 6 7 8 9 10 11 12
|
|
643
|
-
│ 13 14 15 16 17 18 19
|
|
644
|
-
│ 20 21 22 23 24 25 26
|
|
645
|
-
│ 27 28 29 30 31"
|
|
646
|
-
`);
|
|
647
|
-
// Go back to username field
|
|
648
|
-
await driver.keys.shiftTab();
|
|
649
|
-
const backToUsernameSnapshot = await driver.text();
|
|
650
|
-
expect(backToUsernameSnapshot).toMatchInlineSnapshot(`
|
|
651
|
-
"
|
|
652
|
-
|
|
653
|
-
Form Component Demo
|
|
654
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
655
|
-
│
|
|
656
|
-
◆ Username
|
|
657
|
-
│ testuser
|
|
658
|
-
│ Required field
|
|
659
|
-
│
|
|
660
|
-
◇ Password
|
|
661
|
-
│ ********
|
|
662
|
-
│ Must be at least 8 characters
|
|
663
|
-
│
|
|
664
|
-
◇ Biography
|
|
665
|
-
│ Tell us about yourself...
|
|
666
|
-
│
|
|
667
|
-
│
|
|
668
|
-
│
|
|
669
|
-
│
|
|
670
|
-
│ Maximum 500 characters
|
|
671
|
-
│
|
|
672
|
-
◇ Email Preferences
|
|
673
|
-
│ ○ Subscribe to newsletter
|
|
674
|
-
│
|
|
675
|
-
│ Receive weekly updates
|
|
676
|
-
│
|
|
677
|
-
◇ Country
|
|
678
|
-
│ Select your country
|
|
679
|
-
│
|
|
680
|
-
│ Americas
|
|
681
|
-
│ ○ United States
|
|
682
|
-
│ ○ Canada
|
|
683
|
-
│ ○ Mexico
|
|
684
|
-
│ Europe
|
|
685
|
-
│ ○ United Kingdom
|
|
686
|
-
│ ↑↓ to see more options
|
|
687
|
-
│
|
|
688
|
-
│ Your country of residence
|
|
689
|
-
│
|
|
690
|
-
◇ Date of Birth
|
|
691
|
-
│
|
|
692
|
-
│ ← 2025 →
|
|
693
|
-
│ ← October →
|
|
694
|
-
│
|
|
695
|
-
│ Mo Tu We Th Fr Sa Su
|
|
696
|
-
│ 1 2 3 4 5
|
|
697
|
-
│ 6 7 8 9 10 11 12
|
|
698
|
-
│ 13 14 15 16 17 18 19
|
|
699
|
-
│ 20 21 22 23 24 25 26
|
|
700
|
-
│ 27 28 29 30 31"
|
|
701
|
-
`);
|
|
702
|
-
// Clear and type new username
|
|
703
|
-
await driver.keys.ctrlA();
|
|
704
|
-
await driver.keys.type('newuser');
|
|
705
|
-
const afterEditUsernameSnapshot = await driver.text();
|
|
706
|
-
expect(afterEditUsernameSnapshot).toMatchInlineSnapshot(`
|
|
707
|
-
"
|
|
708
|
-
|
|
709
|
-
Form Component Demo
|
|
710
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
711
|
-
│
|
|
712
|
-
◆ Username
|
|
713
|
-
│ testusernewuser
|
|
714
|
-
│ Required field
|
|
715
|
-
│
|
|
716
|
-
◇ Password
|
|
717
|
-
│ ********
|
|
718
|
-
│ Must be at least 8 characters
|
|
719
|
-
│
|
|
720
|
-
◇ Biography
|
|
721
|
-
│ Tell us about yourself...
|
|
722
|
-
│
|
|
723
|
-
│
|
|
724
|
-
│
|
|
725
|
-
│
|
|
726
|
-
│ Maximum 500 characters
|
|
727
|
-
│
|
|
728
|
-
◇ Email Preferences
|
|
729
|
-
│ ○ Subscribe to newsletter
|
|
730
|
-
│
|
|
731
|
-
│ Receive weekly updates
|
|
732
|
-
│
|
|
733
|
-
◇ Country
|
|
734
|
-
│ Select your country
|
|
735
|
-
│
|
|
736
|
-
│ Americas
|
|
737
|
-
│ ○ United States
|
|
738
|
-
│ ○ Canada
|
|
739
|
-
│ ○ Mexico
|
|
740
|
-
│ Europe
|
|
741
|
-
│ ○ United Kingdom
|
|
742
|
-
│ ↑↓ to see more options
|
|
743
|
-
│
|
|
744
|
-
│ Your country of residence
|
|
745
|
-
│
|
|
746
|
-
◇ Date of Birth
|
|
747
|
-
│
|
|
748
|
-
│ ← 2025 →
|
|
749
|
-
│ ← October →
|
|
750
|
-
│
|
|
751
|
-
│ Mo Tu We Th Fr Sa Su
|
|
752
|
-
│ 1 2 3 4 5
|
|
753
|
-
│ 6 7 8 9 10 11 12
|
|
754
|
-
│ 13 14 15 16 17 18 19
|
|
755
|
-
│ 20 21 22 23 24 25 26
|
|
756
|
-
│ 27 28 29 30 31"
|
|
757
|
-
`);
|
|
758
|
-
}, 10000);
|
|
759
|
-
test('form dropdown navigation', async () => {
|
|
760
|
-
await driver.text({
|
|
761
|
-
waitFor: (text) => {
|
|
762
|
-
// wait for form to show up
|
|
763
|
-
return /Form Component Demo/i.test(text);
|
|
764
|
-
},
|
|
765
|
-
});
|
|
766
|
-
// Navigate to dropdown
|
|
767
|
-
await driver.keys.tab(); // username
|
|
768
|
-
await driver.keys.tab(); // password
|
|
769
|
-
await driver.keys.tab(); // bio
|
|
770
|
-
await driver.keys.tab(); // checkbox
|
|
771
|
-
await driver.keys.tab(); // dropdown
|
|
772
|
-
// Navigate to dropdown area (already showing inline options)
|
|
773
|
-
await driver.keys.space();
|
|
774
|
-
const dropdownFocusedSnapshot = await driver.text();
|
|
775
|
-
expect(dropdownFocusedSnapshot).toMatchInlineSnapshot(`
|
|
776
|
-
"
|
|
777
|
-
|
|
778
|
-
Form Component Demo
|
|
779
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
780
|
-
│
|
|
781
|
-
◇ Username
|
|
782
|
-
│ Enter your username
|
|
783
|
-
│ Required field
|
|
784
|
-
│
|
|
785
|
-
◇ Password
|
|
786
|
-
│ Enter secure password
|
|
787
|
-
│ Must be at least 8 characters
|
|
788
|
-
│
|
|
789
|
-
◇ Biography
|
|
790
|
-
│ Tell us about yourself...
|
|
791
|
-
│
|
|
792
|
-
│
|
|
793
|
-
│
|
|
794
|
-
│
|
|
795
|
-
│ Maximum 500 characters
|
|
796
|
-
│
|
|
797
|
-
◇ Email Preferences
|
|
798
|
-
│ ○ Subscribe to newsletter
|
|
799
|
-
│
|
|
800
|
-
│ Receive weekly updates
|
|
801
|
-
│
|
|
802
|
-
◇ Country
|
|
803
|
-
│ Select your country
|
|
804
|
-
│
|
|
805
|
-
│ Americas
|
|
806
|
-
│ ○ United States
|
|
807
|
-
│ ○ Canada
|
|
808
|
-
│ ○ Mexico
|
|
809
|
-
│ Europe
|
|
810
|
-
│ ○ United Kingdom
|
|
811
|
-
│ ↑↓ to see more options
|
|
812
|
-
│
|
|
813
|
-
│ Your country of residence
|
|
814
|
-
│
|
|
815
|
-
◆ Date of Birth
|
|
816
|
-
│
|
|
817
|
-
│ ← 2025 →
|
|
818
|
-
│ ← October →
|
|
819
|
-
│
|
|
820
|
-
│ Mo Tu We Th Fr Sa Su
|
|
821
|
-
│ 1 2 3 4 5
|
|
822
|
-
│ 6 7 8 9 10 11 12
|
|
823
|
-
│ 13 14 15 16 17 18 19
|
|
824
|
-
│ 20 21 22 23 24 25 26
|
|
825
|
-
│ 27 28 29 30 31"
|
|
826
|
-
`);
|
|
827
|
-
// Navigate down in dropdown
|
|
828
|
-
await driver.keys.down();
|
|
829
|
-
const afterDownSnapshot = await driver.text();
|
|
830
|
-
expect(afterDownSnapshot).toMatchInlineSnapshot(`
|
|
831
|
-
"
|
|
832
|
-
|
|
833
|
-
Form Component Demo
|
|
834
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
835
|
-
│
|
|
836
|
-
◇ Username
|
|
837
|
-
│ Enter your username
|
|
838
|
-
│ Required field
|
|
839
|
-
│
|
|
840
|
-
◇ Password
|
|
841
|
-
│ Enter secure password
|
|
842
|
-
│ Must be at least 8 characters
|
|
843
|
-
│
|
|
844
|
-
◇ Biography
|
|
845
|
-
│ Tell us about yourself...
|
|
846
|
-
│
|
|
847
|
-
│
|
|
848
|
-
│
|
|
849
|
-
│
|
|
850
|
-
│ Maximum 500 characters
|
|
851
|
-
│
|
|
852
|
-
◇ Email Preferences
|
|
853
|
-
│ ○ Subscribe to newsletter
|
|
854
|
-
│
|
|
855
|
-
│ Receive weekly updates
|
|
856
|
-
│
|
|
857
|
-
◇ Country
|
|
858
|
-
│ Select your country
|
|
859
|
-
│
|
|
860
|
-
│ Americas
|
|
861
|
-
│ ○ United States
|
|
862
|
-
│ ○ Canada
|
|
863
|
-
│ ○ Mexico
|
|
864
|
-
│ Europe
|
|
865
|
-
│ ○ United Kingdom
|
|
866
|
-
│ ↑↓ to see more options
|
|
867
|
-
│
|
|
868
|
-
│ Your country of residence
|
|
869
|
-
│
|
|
870
|
-
◆ Date of Birth
|
|
871
|
-
│
|
|
872
|
-
│ ← 2025 →
|
|
873
|
-
│ ← October →
|
|
874
|
-
│
|
|
875
|
-
│ Mo Tu We Th Fr Sa Su
|
|
876
|
-
│ 1 2 3 4 5
|
|
877
|
-
│ 6 7 8 9 10 11 12
|
|
878
|
-
│ 13 14 15 16 17 18 19
|
|
879
|
-
│ 20 21 22 23 24 25 26
|
|
880
|
-
│ 27 28 29 30 31"
|
|
881
|
-
`);
|
|
882
|
-
// Navigate to Europe section
|
|
883
|
-
await driver.keys.down();
|
|
884
|
-
await driver.keys.down();
|
|
885
|
-
await driver.keys.down();
|
|
886
|
-
const europeSelectionSnapshot = await driver.text();
|
|
887
|
-
expect(europeSelectionSnapshot).toMatchInlineSnapshot(`
|
|
888
|
-
"
|
|
889
|
-
|
|
890
|
-
Form Component Demo
|
|
891
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
892
|
-
│
|
|
893
|
-
◇ Username
|
|
894
|
-
│ Enter your username
|
|
895
|
-
│ Required field
|
|
896
|
-
│
|
|
897
|
-
◇ Password
|
|
898
|
-
│ Enter secure password
|
|
899
|
-
│ Must be at least 8 characters
|
|
900
|
-
│
|
|
901
|
-
◇ Biography
|
|
902
|
-
│ Tell us about yourself...
|
|
903
|
-
│
|
|
904
|
-
│
|
|
905
|
-
│
|
|
906
|
-
│
|
|
907
|
-
│ Maximum 500 characters
|
|
908
|
-
│
|
|
909
|
-
◇ Email Preferences
|
|
910
|
-
│ ○ Subscribe to newsletter
|
|
911
|
-
│
|
|
912
|
-
│ Receive weekly updates
|
|
913
|
-
│
|
|
914
|
-
◇ Country
|
|
915
|
-
│ Select your country
|
|
916
|
-
│
|
|
917
|
-
│ Americas
|
|
918
|
-
│ ○ United States
|
|
919
|
-
│ ○ Canada
|
|
920
|
-
│ ○ Mexico
|
|
921
|
-
│ Europe
|
|
922
|
-
│ ○ United Kingdom
|
|
923
|
-
│ ↑↓ to see more options
|
|
924
|
-
│
|
|
925
|
-
│ Your country of residence
|
|
926
|
-
│
|
|
927
|
-
◆ Date of Birth
|
|
928
|
-
│
|
|
929
|
-
│ ← 2025 →
|
|
930
|
-
│ ← October →
|
|
931
|
-
│
|
|
932
|
-
│ Mo Tu We Th Fr Sa Su
|
|
933
|
-
│ 1 2 3 4 5
|
|
934
|
-
│ 6 7 8 9 10 11 12
|
|
935
|
-
│ 13 14 15 16 17 18 19
|
|
936
|
-
│ 20 21 22 23 24 25 26
|
|
937
|
-
│ 27 28 29 30 31"
|
|
938
|
-
`);
|
|
939
|
-
// Select France
|
|
940
|
-
await driver.keys.enter();
|
|
941
|
-
const afterFranceSelectSnapshot = await driver.text();
|
|
942
|
-
expect(afterFranceSelectSnapshot).toMatchInlineSnapshot(`
|
|
943
|
-
"
|
|
944
|
-
|
|
945
|
-
Form Component Demo
|
|
946
|
-
│ This demonstrates all available form input types. Use arrow key
|
|
947
|
-
│
|
|
948
|
-
◇ Username
|
|
949
|
-
│ Enter your username
|
|
950
|
-
│ Required field
|
|
951
|
-
│
|
|
952
|
-
◇ Password
|
|
953
|
-
│ Enter secure password
|
|
954
|
-
│ Must be at least 8 characters
|
|
955
|
-
│
|
|
956
|
-
◇ Biography
|
|
957
|
-
│ Tell us about yourself...
|
|
958
|
-
│
|
|
959
|
-
│
|
|
960
|
-
│
|
|
961
|
-
│
|
|
962
|
-
│ Maximum 500 characters
|
|
963
|
-
│
|
|
964
|
-
◇ Email Preferences
|
|
965
|
-
│ ○ Subscribe to newsletter
|
|
966
|
-
│
|
|
967
|
-
│ Receive weekly updates
|
|
968
|
-
│
|
|
969
|
-
◇ Country
|
|
970
|
-
│ Select your country
|
|
971
|
-
│
|
|
972
|
-
│ Americas
|
|
973
|
-
│ ○ United States
|
|
974
|
-
│ ○ Canada
|
|
975
|
-
│ ○ Mexico
|
|
976
|
-
│ Europe
|
|
977
|
-
│ ○ United Kingdom
|
|
978
|
-
│ ↑↓ to see more options
|
|
979
|
-
│
|
|
980
|
-
│ Your country of residence
|
|
981
|
-
│
|
|
982
|
-
◆ Date of Birth
|
|
983
|
-
│
|
|
984
|
-
│ ← 2025 →
|
|
985
|
-
│ ← October →
|
|
986
|
-
│
|
|
987
|
-
│ Mo Tu We Th Fr Sa Su
|
|
988
|
-
│ 1 2 3 4 5
|
|
989
|
-
│ 6 7 8 9 10 11 12
|
|
990
|
-
│ 13 14 15 16 17 18 19
|
|
991
|
-
│ 20 21 22 23 24 25 26
|
|
992
|
-
│ 27 28 29 30 31"
|
|
993
|
-
`);
|
|
994
|
-
}, 10000);
|
|
995
|
-
//# sourceMappingURL=form-basic.vitest.js.map
|