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,43 +1,53 @@
|
|
|
1
|
-
// node-pty does not work in bun, so we use vitest to run this test
|
|
2
1
|
import { test, expect, afterEach, beforeEach } from 'vitest'
|
|
3
|
-
import {
|
|
2
|
+
import { launchTerminal, Session } from 'tuistory/src'
|
|
4
3
|
|
|
5
|
-
let
|
|
4
|
+
let session: Session
|
|
6
5
|
|
|
7
|
-
beforeEach(() => {
|
|
8
|
-
|
|
6
|
+
beforeEach(async () => {
|
|
7
|
+
session = await launchTerminal({
|
|
8
|
+
command: 'bun',
|
|
9
|
+
args: ['src/examples/form-tagpicker.tsx'],
|
|
9
10
|
cols: 70,
|
|
10
11
|
rows: 50,
|
|
11
12
|
})
|
|
12
13
|
})
|
|
13
14
|
|
|
14
15
|
afterEach(() => {
|
|
15
|
-
|
|
16
|
+
session?.close()
|
|
16
17
|
})
|
|
17
18
|
|
|
18
19
|
test('form tagpicker shows inline options', async () => {
|
|
19
|
-
await
|
|
20
|
+
await session.text({
|
|
20
21
|
waitFor: (text) => {
|
|
21
|
-
// wait for form to show up
|
|
22
22
|
return /TagPicker Component Demo/i.test(text)
|
|
23
23
|
},
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
await driver.waitIdle()
|
|
26
|
+
await session.waitIdle()
|
|
28
27
|
|
|
29
|
-
const initialSnapshot = await
|
|
28
|
+
const initialSnapshot = await session.text()
|
|
30
29
|
|
|
31
30
|
expect(initialSnapshot).toMatchInlineSnapshot(`
|
|
32
31
|
"
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
■ TagPicker Component Demo
|
|
45
|
+
┃ Test tag picker with multiple selection support
|
|
46
|
+
┃
|
|
47
|
+
◇ Favorite Sport
|
|
38
48
|
│ Choose your favorite sport...
|
|
39
49
|
│
|
|
40
|
-
|
|
50
|
+
│ ○ Basketball
|
|
41
51
|
│ ○ Football
|
|
42
52
|
│ ○ Tennis
|
|
43
53
|
│ ○ Baseball
|
|
@@ -53,27 +63,46 @@ test('form tagpicker shows inline options', async () => {
|
|
|
53
63
|
│ ○ Netherlands
|
|
54
64
|
│ ○ Norway
|
|
55
65
|
│ ↑↓ to see more options
|
|
56
|
-
│
|
|
57
66
|
└
|
|
58
67
|
|
|
59
68
|
|
|
60
|
-
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
61
80
|
`)
|
|
62
81
|
|
|
63
|
-
|
|
64
|
-
await driver.keys.space()
|
|
82
|
+
await session.press('space')
|
|
65
83
|
|
|
66
|
-
const afterSelectBasketballSnapshot = await
|
|
84
|
+
const afterSelectBasketballSnapshot = await session.text()
|
|
67
85
|
expect(afterSelectBasketballSnapshot).toMatchInlineSnapshot(`
|
|
68
86
|
"
|
|
69
87
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
■ TagPicker Component Demo
|
|
100
|
+
┃ Test tag picker with multiple selection support
|
|
101
|
+
┃
|
|
102
|
+
◇ Favorite Sport
|
|
103
|
+
│ Choose your favorite sport...
|
|
75
104
|
│
|
|
76
|
-
|
|
105
|
+
│ ○ Basketball
|
|
77
106
|
│ ○ Football
|
|
78
107
|
│ ○ Tennis
|
|
79
108
|
│ ○ Baseball
|
|
@@ -89,28 +118,47 @@ test('form tagpicker shows inline options', async () => {
|
|
|
89
118
|
│ ○ Netherlands
|
|
90
119
|
│ ○ Norway
|
|
91
120
|
│ ↑↓ to see more options
|
|
92
|
-
│
|
|
93
121
|
└
|
|
94
122
|
|
|
95
123
|
|
|
96
|
-
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
97
135
|
`)
|
|
98
136
|
|
|
99
|
-
|
|
100
|
-
await driver.keys.down()
|
|
137
|
+
await session.press('down')
|
|
101
138
|
|
|
102
|
-
const afterDownSnapshot = await
|
|
139
|
+
const afterDownSnapshot = await session.text()
|
|
103
140
|
expect(afterDownSnapshot).toMatchInlineSnapshot(`
|
|
104
141
|
"
|
|
105
142
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
■ TagPicker Component Demo
|
|
155
|
+
┃ Test tag picker with multiple selection support
|
|
156
|
+
┃
|
|
157
|
+
◇ Favorite Sport
|
|
158
|
+
│ Choose your favorite sport...
|
|
111
159
|
│
|
|
112
|
-
│
|
|
113
|
-
|
|
160
|
+
│ ○ Basketball
|
|
161
|
+
│ ○ Football
|
|
114
162
|
│ ○ Tennis
|
|
115
163
|
│ ○ Baseball
|
|
116
164
|
│ ↑↓ to see more options
|
|
@@ -125,33 +173,52 @@ test('form tagpicker shows inline options', async () => {
|
|
|
125
173
|
│ ○ Netherlands
|
|
126
174
|
│ ○ Norway
|
|
127
175
|
│ ↑↓ to see more options
|
|
128
|
-
│
|
|
129
176
|
└
|
|
130
177
|
|
|
131
178
|
|
|
132
|
-
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
133
190
|
`)
|
|
134
191
|
|
|
135
|
-
|
|
136
|
-
await
|
|
137
|
-
await
|
|
138
|
-
await
|
|
139
|
-
await driver.keys.down()
|
|
192
|
+
await session.press('down')
|
|
193
|
+
await session.press('down')
|
|
194
|
+
await session.press('down')
|
|
195
|
+
await session.press('down')
|
|
140
196
|
|
|
141
|
-
const afterMultipleDownSnapshot = await
|
|
197
|
+
const afterMultipleDownSnapshot = await session.text()
|
|
142
198
|
expect(afterMultipleDownSnapshot).toMatchInlineSnapshot(`
|
|
143
199
|
"
|
|
144
200
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
■ TagPicker Component Demo
|
|
213
|
+
┃ Test tag picker with multiple selection support
|
|
214
|
+
┃
|
|
215
|
+
◇ Favorite Sport
|
|
216
|
+
│ Choose your favorite sport...
|
|
150
217
|
│
|
|
218
|
+
│ ○ Basketball
|
|
219
|
+
│ ○ Football
|
|
151
220
|
│ ○ Tennis
|
|
152
221
|
│ ○ Baseball
|
|
153
|
-
│ ○ Golf
|
|
154
|
-
│› ○ Swimming
|
|
155
222
|
│ ↑↓ to see more options
|
|
156
223
|
│
|
|
157
224
|
│ Select your favorite sport from the list
|
|
@@ -164,30 +231,49 @@ test('form tagpicker shows inline options', async () => {
|
|
|
164
231
|
│ ○ Netherlands
|
|
165
232
|
│ ○ Norway
|
|
166
233
|
│ ↑↓ to see more options
|
|
167
|
-
│
|
|
168
234
|
└
|
|
169
235
|
|
|
170
236
|
|
|
171
|
-
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
172
248
|
`)
|
|
173
249
|
|
|
174
|
-
|
|
175
|
-
await driver.keys.enter()
|
|
250
|
+
await session.press('enter')
|
|
176
251
|
|
|
177
|
-
const afterSelectSnapshot = await
|
|
252
|
+
const afterSelectSnapshot = await session.text()
|
|
178
253
|
expect(afterSelectSnapshot).toMatchInlineSnapshot(`
|
|
179
254
|
"
|
|
180
255
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
■ TagPicker Component Demo
|
|
268
|
+
┃ Test tag picker with multiple selection support
|
|
269
|
+
┃
|
|
270
|
+
◇ Favorite Sport
|
|
271
|
+
│ Choose your favorite sport...
|
|
186
272
|
│
|
|
273
|
+
│ ○ Basketball
|
|
274
|
+
│ ○ Football
|
|
187
275
|
│ ○ Tennis
|
|
188
276
|
│ ○ Baseball
|
|
189
|
-
│ ○ Golf
|
|
190
|
-
│› ● Swimming
|
|
191
277
|
│ ↑↓ to see more options
|
|
192
278
|
│
|
|
193
279
|
│ Select your favorite sport from the list
|
|
@@ -200,36 +286,54 @@ test('form tagpicker shows inline options', async () => {
|
|
|
200
286
|
│ ○ Netherlands
|
|
201
287
|
│ ○ Norway
|
|
202
288
|
│ ↑↓ to see more options
|
|
203
|
-
│
|
|
204
289
|
└
|
|
205
290
|
|
|
206
291
|
|
|
207
|
-
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
208
303
|
`)
|
|
209
304
|
}, 15000)
|
|
210
305
|
|
|
211
306
|
test('form tagpicker keyboard navigation', async () => {
|
|
212
|
-
await
|
|
307
|
+
await session.text({
|
|
213
308
|
waitFor: (text) => {
|
|
214
|
-
// wait for form to show up
|
|
215
309
|
return /TagPicker Component Demo/i.test(text)
|
|
216
310
|
},
|
|
217
311
|
})
|
|
218
312
|
|
|
219
|
-
|
|
220
|
-
await driver.keys.space()
|
|
313
|
+
await session.press('space')
|
|
221
314
|
|
|
222
|
-
const afterSelectSnapshot = await
|
|
315
|
+
const afterSelectSnapshot = await session.text()
|
|
223
316
|
expect(afterSelectSnapshot).toMatchInlineSnapshot(`
|
|
224
317
|
"
|
|
225
318
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
■ TagPicker Component Demo
|
|
331
|
+
┃ Test tag picker with multiple selection support
|
|
332
|
+
┃
|
|
333
|
+
◇ Favorite Sport
|
|
334
|
+
│ Choose your favorite sport...
|
|
231
335
|
│
|
|
232
|
-
|
|
336
|
+
│ ○ Basketball
|
|
233
337
|
│ ○ Football
|
|
234
338
|
│ ○ Tennis
|
|
235
339
|
│ ○ Baseball
|
|
@@ -245,33 +349,52 @@ test('form tagpicker keyboard navigation', async () => {
|
|
|
245
349
|
│ ○ Netherlands
|
|
246
350
|
│ ○ Norway
|
|
247
351
|
│ ↑↓ to see more options
|
|
248
|
-
│
|
|
249
352
|
└
|
|
250
353
|
|
|
251
354
|
|
|
252
|
-
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
253
366
|
`)
|
|
254
367
|
|
|
255
|
-
|
|
256
|
-
await
|
|
257
|
-
await
|
|
258
|
-
await
|
|
259
|
-
await driver.keys.down()
|
|
368
|
+
await session.press('down')
|
|
369
|
+
await session.press('down')
|
|
370
|
+
await session.press('down')
|
|
371
|
+
await session.press('down')
|
|
260
372
|
|
|
261
|
-
const lastVisibleSnapshot = await
|
|
373
|
+
const lastVisibleSnapshot = await session.text()
|
|
262
374
|
expect(lastVisibleSnapshot).toMatchInlineSnapshot(`
|
|
263
375
|
"
|
|
264
376
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
■ TagPicker Component Demo
|
|
389
|
+
┃ Test tag picker with multiple selection support
|
|
390
|
+
┃
|
|
391
|
+
◇ Favorite Sport
|
|
392
|
+
│ Choose your favorite sport...
|
|
270
393
|
│
|
|
394
|
+
│ ○ Basketball
|
|
271
395
|
│ ○ Football
|
|
272
396
|
│ ○ Tennis
|
|
273
397
|
│ ○ Baseball
|
|
274
|
-
│› ○ Golf
|
|
275
398
|
│ ↑↓ to see more options
|
|
276
399
|
│
|
|
277
400
|
│ Select your favorite sport from the list
|
|
@@ -284,30 +407,49 @@ test('form tagpicker keyboard navigation', async () => {
|
|
|
284
407
|
│ ○ Netherlands
|
|
285
408
|
│ ○ Norway
|
|
286
409
|
│ ↑↓ to see more options
|
|
287
|
-
│
|
|
288
410
|
└
|
|
289
411
|
|
|
290
412
|
|
|
291
|
-
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
292
424
|
`)
|
|
293
425
|
|
|
294
|
-
|
|
295
|
-
await driver.keys.down()
|
|
426
|
+
await session.press('down')
|
|
296
427
|
|
|
297
|
-
const nextPageSnapshot = await
|
|
428
|
+
const nextPageSnapshot = await session.text()
|
|
298
429
|
expect(nextPageSnapshot).toMatchInlineSnapshot(`
|
|
299
430
|
"
|
|
300
431
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
■ TagPicker Component Demo
|
|
444
|
+
┃ Test tag picker with multiple selection support
|
|
445
|
+
┃
|
|
446
|
+
◇ Favorite Sport
|
|
447
|
+
│ Choose your favorite sport...
|
|
306
448
|
│
|
|
449
|
+
│ ○ Basketball
|
|
450
|
+
│ ○ Football
|
|
307
451
|
│ ○ Tennis
|
|
308
452
|
│ ○ Baseball
|
|
309
|
-
│ ○ Golf
|
|
310
|
-
│› ○ Swimming
|
|
311
453
|
│ ↑↓ to see more options
|
|
312
454
|
│
|
|
313
455
|
│ Select your favorite sport from the list
|
|
@@ -320,30 +462,49 @@ test('form tagpicker keyboard navigation', async () => {
|
|
|
320
462
|
│ ○ Netherlands
|
|
321
463
|
│ ○ Norway
|
|
322
464
|
│ ↑↓ to see more options
|
|
323
|
-
│
|
|
324
465
|
└
|
|
325
466
|
|
|
326
467
|
|
|
327
|
-
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
328
479
|
`)
|
|
329
480
|
|
|
330
|
-
|
|
331
|
-
await driver.keys.up()
|
|
481
|
+
await session.press('up')
|
|
332
482
|
|
|
333
|
-
const backToPreviousPageSnapshot = await
|
|
483
|
+
const backToPreviousPageSnapshot = await session.text()
|
|
334
484
|
expect(backToPreviousPageSnapshot).toMatchInlineSnapshot(`
|
|
335
485
|
"
|
|
336
486
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
■ TagPicker Component Demo
|
|
499
|
+
┃ Test tag picker with multiple selection support
|
|
500
|
+
┃
|
|
501
|
+
◇ Favorite Sport
|
|
502
|
+
│ Choose your favorite sport...
|
|
342
503
|
│
|
|
504
|
+
│ ○ Basketball
|
|
505
|
+
│ ○ Football
|
|
343
506
|
│ ○ Tennis
|
|
344
507
|
│ ○ Baseball
|
|
345
|
-
│› ○ Golf
|
|
346
|
-
│ ○ Swimming
|
|
347
508
|
│ ↑↓ to see more options
|
|
348
509
|
│
|
|
349
510
|
│ Select your favorite sport from the list
|
|
@@ -356,30 +517,49 @@ test('form tagpicker keyboard navigation', async () => {
|
|
|
356
517
|
│ ○ Netherlands
|
|
357
518
|
│ ○ Norway
|
|
358
519
|
│ ↑↓ to see more options
|
|
359
|
-
│
|
|
360
520
|
└
|
|
361
521
|
|
|
362
522
|
|
|
363
|
-
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
364
534
|
`)
|
|
365
535
|
|
|
366
|
-
|
|
367
|
-
await driver.keys.escape()
|
|
536
|
+
await session.press('esc')
|
|
368
537
|
|
|
369
|
-
const afterEscapeSnapshot = await
|
|
538
|
+
const afterEscapeSnapshot = await session.text()
|
|
370
539
|
expect(afterEscapeSnapshot).toMatchInlineSnapshot(`
|
|
371
540
|
"
|
|
372
541
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
■ TagPicker Component Demo
|
|
554
|
+
┃ Test tag picker with multiple selection support
|
|
555
|
+
┃
|
|
556
|
+
◇ Favorite Sport
|
|
557
|
+
│ Choose your favorite sport...
|
|
378
558
|
│
|
|
559
|
+
│ ○ Basketball
|
|
560
|
+
│ ○ Football
|
|
379
561
|
│ ○ Tennis
|
|
380
562
|
│ ○ Baseball
|
|
381
|
-
│› ○ Golf
|
|
382
|
-
│ ○ Swimming
|
|
383
563
|
│ ↑↓ to see more options
|
|
384
564
|
│
|
|
385
565
|
│ Select your favorite sport from the list
|
|
@@ -392,99 +572,144 @@ test('form tagpicker keyboard navigation', async () => {
|
|
|
392
572
|
│ ○ Netherlands
|
|
393
573
|
│ ○ Norway
|
|
394
574
|
│ ↑↓ to see more options
|
|
395
|
-
│
|
|
396
575
|
└
|
|
397
576
|
|
|
398
577
|
|
|
399
|
-
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
400
589
|
`)
|
|
401
590
|
}, 15000)
|
|
402
591
|
|
|
403
592
|
test('form tagpicker with default value', async () => {
|
|
404
|
-
await
|
|
593
|
+
await session.text({
|
|
405
594
|
waitFor: (text) => {
|
|
406
|
-
// wait for form to show up
|
|
407
595
|
return /TagPicker Component Demo/i.test(text)
|
|
408
596
|
},
|
|
409
597
|
})
|
|
410
598
|
|
|
411
|
-
|
|
412
|
-
await driver.keys.tab()
|
|
599
|
+
await session.press('tab')
|
|
413
600
|
|
|
414
|
-
const secondTagpickerFocusedSnapshot = await
|
|
601
|
+
const secondTagpickerFocusedSnapshot = await session.text()
|
|
415
602
|
expect(secondTagpickerFocusedSnapshot).toMatchInlineSnapshot(`
|
|
416
603
|
"
|
|
417
604
|
|
|
418
|
-
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
▪ TagPicker Component Demo
|
|
419
617
|
│ Test tag picker with multiple selection support
|
|
420
618
|
│
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
619
|
+
◆ Favorite Sport
|
|
620
|
+
┃ Choose your favorite sport...
|
|
621
|
+
┃
|
|
622
|
+
┃› ○ Basketball
|
|
623
|
+
┃ ○ Football
|
|
624
|
+
┃ ○ Tennis
|
|
625
|
+
┃ ○ Baseball
|
|
626
|
+
┃ ↑↓ to see more options
|
|
627
|
+
┃
|
|
628
|
+
┃ Select your favorite sport from the list
|
|
629
|
+
┃
|
|
630
|
+
◇ Country
|
|
433
631
|
│ Germany
|
|
434
632
|
│
|
|
435
|
-
|
|
633
|
+
│ ● Germany
|
|
436
634
|
│ ○ India
|
|
437
635
|
│ ○ Netherlands
|
|
438
636
|
│ ○ Norway
|
|
439
637
|
│ ↑↓ to see more options
|
|
440
|
-
│
|
|
441
638
|
└
|
|
442
639
|
|
|
443
640
|
|
|
444
|
-
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
445
652
|
`)
|
|
446
653
|
|
|
447
|
-
|
|
448
|
-
await driver.keys.space()
|
|
654
|
+
await session.press('space')
|
|
449
655
|
|
|
450
|
-
const afterDeselectGermanySnapshot = await
|
|
656
|
+
const afterDeselectGermanySnapshot = await session.text()
|
|
451
657
|
expect(afterDeselectGermanySnapshot).toMatchInlineSnapshot(`
|
|
452
658
|
"
|
|
453
659
|
|
|
454
|
-
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
▪ TagPicker Component Demo
|
|
455
672
|
│ Test tag picker with multiple selection support
|
|
456
673
|
│
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
│
|
|
674
|
+
◆ Favorite Sport
|
|
675
|
+
┃ Basketball
|
|
676
|
+
┃
|
|
677
|
+
┃› ● Basketball
|
|
678
|
+
┃ ○ Football
|
|
679
|
+
┃ ○ Tennis
|
|
680
|
+
┃ ○ Baseball
|
|
681
|
+
┃ ↑↓ to see more options
|
|
682
|
+
┃
|
|
683
|
+
┃ Select your favorite sport from the list
|
|
684
|
+
┃
|
|
685
|
+
◇ Country
|
|
686
|
+
│ Germany
|
|
470
687
|
│
|
|
471
|
-
|
|
688
|
+
│ ● Germany
|
|
472
689
|
│ ○ India
|
|
473
690
|
│ ○ Netherlands
|
|
474
691
|
│ ○ Norway
|
|
475
692
|
│ ↑↓ to see more options
|
|
476
|
-
│
|
|
477
693
|
└
|
|
478
694
|
|
|
479
695
|
|
|
480
|
-
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
481
707
|
`)
|
|
482
708
|
|
|
483
|
-
|
|
484
|
-
await
|
|
485
|
-
await driver.keys.cmdEnter()
|
|
709
|
+
await session.press('esc')
|
|
710
|
+
await session.press(['alt', 'enter'])
|
|
486
711
|
|
|
487
|
-
const afterSubmitSnapshot = await
|
|
712
|
+
const afterSubmitSnapshot = await session.text({
|
|
488
713
|
waitFor: (text) => {
|
|
489
714
|
return /Submitted Data/i.test(text)
|
|
490
715
|
},
|
|
@@ -492,32 +717,52 @@ test('form tagpicker with default value', async () => {
|
|
|
492
717
|
expect(afterSubmitSnapshot).toMatchInlineSnapshot(`
|
|
493
718
|
"
|
|
494
719
|
|
|
495
|
-
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
▪ TagPicker Component Demo
|
|
496
728
|
│ Test tag picker with multiple selection support
|
|
497
729
|
│
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
│
|
|
730
|
+
◆ Favorite Sport
|
|
731
|
+
┃ Choose your favorite sport...
|
|
732
|
+
┃
|
|
733
|
+
┃› ○ Basketball
|
|
734
|
+
┃ ○ Football
|
|
735
|
+
┃ ○ Tennis
|
|
736
|
+
┃ ○ Baseball
|
|
737
|
+
┃ ↑↓ to see more options
|
|
738
|
+
┃
|
|
739
|
+
┃ Select your favorite sport from the list
|
|
740
|
+
┃
|
|
741
|
+
◇ Country
|
|
742
|
+
│ Germany
|
|
511
743
|
│
|
|
512
|
-
|
|
744
|
+
│ ● Germany
|
|
513
745
|
│ ○ India
|
|
514
746
|
│ ○ Netherlands
|
|
515
747
|
│ ○ Norway
|
|
516
748
|
│ ↑↓ to see more options
|
|
517
749
|
│
|
|
518
|
-
|
|
750
|
+
▪ Submitted Data
|
|
751
|
+
│ {
|
|
752
|
+
│ "sports": [],
|
|
753
|
+
│ "countries": [
|
|
754
|
+
│ "ger"
|
|
755
|
+
│ ]
|
|
756
|
+
│ }
|
|
757
|
+
│
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
519
764
|
|
|
520
765
|
|
|
521
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
766
|
+
ctrl ↵ submit ↑↓ navigate ^k actions"
|
|
522
767
|
`)
|
|
523
768
|
}, 15000)
|