termcast 1.3.9 → 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/action-utils.js +1 -1
- package/dist/action-utils.js.map +1 -1
- package/dist/apis/ai.js +1 -1
- package/dist/apis/ai.js.map +1 -1
- package/dist/apis/clipboard.js +2 -2
- package/dist/apis/clipboard.js.map +1 -1
- package/dist/apis/hud.d.ts +2 -2
- package/dist/apis/hud.d.ts.map +1 -1
- package/dist/apis/hud.js +5 -5
- package/dist/apis/hud.js.map +1 -1
- package/dist/apis/oauth.d.ts +1 -1
- package/dist/apis/oauth.d.ts.map +1 -1
- package/dist/apis/oauth.js +8 -8
- package/dist/apis/oauth.js.map +1 -1
- package/dist/apis/preferences.js +4 -4
- package/dist/apis/preferences.js.map +1 -1
- package/dist/apis/toast.d.ts +1 -5
- package/dist/apis/toast.d.ts.map +1 -1
- package/dist/apis/toast.js +26 -20
- 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 +9 -8
- package/dist/build.js.map +1 -1
- package/dist/cli.js +44 -2
- 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 +2 -1
- package/dist/components/actions.d.ts.map +1 -1
- package/dist/components/actions.js +11 -8
- package/dist/components/actions.js.map +1 -1
- package/dist/components/alert.js +4 -4
- package/dist/components/alert.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 +3 -3
- package/dist/components/detail.d.ts.map +1 -1
- package/dist/components/detail.js +20 -42
- package/dist/components/detail.js.map +1 -1
- package/dist/components/dropdown.d.ts +2 -1
- package/dist/components/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown.js +81 -25
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/extension-preferences.d.ts.map +1 -1
- package/dist/components/extension-preferences.js +23 -33
- 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 +11 -4
- 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 +18 -31
- 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 +21 -3
- 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 +17 -32
- 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 +56 -48
- 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 +48 -51
- package/dist/components/form/file-picker.js.map +1 -1
- package/dist/components/form/form-end.js +1 -1
- package/dist/components/form/form-end.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 +90 -27
- 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 +33 -17
- package/dist/components/form/password-field.js.map +1 -1
- package/dist/components/form/separator.js +1 -1
- package/dist/components/form/separator.js.map +1 -1
- package/dist/components/form/tagpicker.d.ts +1 -1
- package/dist/components/form/tagpicker.d.ts.map +1 -1
- package/dist/components/form/text-area.d.ts.map +1 -1
- package/dist/components/form/text-area.js +33 -16
- 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 +38 -18
- 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 +3 -3
- 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/image.js +1 -1
- package/dist/components/image.js.map +1 -1
- package/dist/components/list.d.ts +12 -8
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +172 -40
- package/dist/components/list.js.map +1 -1
- package/dist/components/loading-bar.js +2 -2
- package/dist/components/loading-bar.js.map +1 -1
- package/dist/components/menubar-extra.d.ts +1 -1
- package/dist/components/menubar-extra.d.ts.map +1 -1
- package/dist/components/menubar-extra.js +2 -2
- package/dist/components/menubar-extra.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/e2e-node.d.ts +2 -0
- package/dist/e2e-node.d.ts.map +1 -1
- package/dist/e2e-node.js +14 -0
- package/dist/e2e-node.js.map +1 -1
- package/dist/examples/action-show-in-finder.js +3 -3
- package/dist/examples/action-show-in-finder.js.map +1 -1
- package/dist/examples/environment-test.js +4 -4
- package/dist/examples/environment-test.js.map +1 -1
- package/dist/examples/error-boundary.js +5 -5
- 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 +6 -6
- package/dist/examples/form-basic.js.map +1 -1
- package/dist/examples/form-dropdown.js +3 -3
- 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 +3 -3
- package/dist/examples/form-tagpicker.js.map +1 -1
- package/dist/examples/internal/descendants-filtering.js +10 -5
- package/dist/examples/internal/descendants-filtering.js.map +1 -1
- package/dist/examples/internal/descendants.js +13 -6
- 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 +4 -8
- 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 +7 -7
- package/dist/examples/internal/simple-dialog.js.map +1 -1
- package/dist/examples/internal/simple-scrollbox.d.ts +2 -0
- package/dist/examples/internal/simple-scrollbox.d.ts.map +1 -0
- package/dist/examples/internal/simple-scrollbox.js +25 -0
- package/dist/examples/internal/simple-scrollbox.js.map +1 -0
- 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 +3 -3
- package/dist/examples/list-dropdown-default.js.map +1 -1
- package/dist/examples/list-fetch-data.js +3 -3
- 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 +2 -2
- package/dist/examples/list-with-detail.js.map +1 -1
- package/dist/examples/list-with-dropdown.js +2 -2
- package/dist/examples/list-with-dropdown.js.map +1 -1
- package/dist/examples/list-with-sections.js +6 -6
- package/dist/examples/list-with-sections.js.map +1 -1
- package/dist/examples/miscellaneous.js +14 -14
- package/dist/examples/miscellaneous.js.map +1 -1
- package/dist/examples/nested-navigation.js +9 -7
- package/dist/examples/nested-navigation.js.map +1 -1
- package/dist/examples/preferences-test.js +4 -4
- package/dist/examples/preferences-test.js.map +1 -1
- package/dist/examples/simple-dropdown.js +4 -4
- package/dist/examples/simple-dropdown.js.map +1 -1
- package/dist/examples/simple-file-picker.js +3 -3
- package/dist/examples/simple-file-picker.js.map +1 -1
- package/dist/examples/simple-grid.js +2 -2
- package/dist/examples/simple-grid.js.map +1 -1
- package/dist/examples/simple-hud.js +4 -4
- package/dist/examples/simple-hud.js.map +1 -1
- package/dist/examples/simple-list-search.js +21 -5
- package/dist/examples/simple-list-search.js.map +1 -1
- package/dist/examples/simple-list.js +4 -4
- package/dist/examples/simple-list.js.map +1 -1
- package/dist/examples/simple-navigation.js +9 -7
- 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 +3 -3
- package/dist/examples/tanstack-demo.js.map +1 -1
- package/dist/examples/use-promise-demo.js +3 -3
- 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 +60 -35
- package/dist/extensions/dev.js.map +1 -1
- package/dist/extensions/home.d.ts.map +1 -1
- package/dist/extensions/home.js +22 -97
- package/dist/extensions/home.js.map +1 -1
- package/dist/extensions/store.js +2 -2
- package/dist/extensions/store.js.map +1 -1
- package/dist/globals.js +1 -1
- package/dist/globals.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-action-panel.js +1 -1
- package/dist/hooks/use-action-panel.js.map +1 -1
- package/dist/hooks/use-unstable-ai.js +1 -1
- package/dist/hooks/use-unstable-ai.js.map +1 -1
- package/dist/index.d.ts +57 -55
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -38
- 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 +3 -3
- package/dist/internal/dialog.d.ts.map +1 -1
- package/dist/internal/dialog.js +10 -10
- package/dist/internal/dialog.js.map +1 -1
- package/dist/internal/error-handler.js +2 -2
- package/dist/internal/error-handler.js.map +1 -1
- package/dist/internal/focus-context.d.ts +1 -1
- package/dist/internal/focus-context.d.ts.map +1 -1
- package/dist/internal/navigation.d.ts +1 -1
- package/dist/internal/navigation.d.ts.map +1 -1
- package/dist/internal/navigation.js +2 -2
- package/dist/internal/navigation.js.map +1 -1
- package/dist/internal/providers.d.ts +2 -2
- package/dist/internal/providers.d.ts.map +1 -1
- package/dist/internal/providers.js +9 -9
- package/dist/internal/providers.js.map +1 -1
- package/dist/internal/scrollbox.d.ts +12 -0
- package/dist/internal/scrollbox.d.ts.map +1 -0
- package/dist/internal/scrollbox.js +34 -0
- package/dist/internal/scrollbox.js.map +1 -0
- package/dist/preload.js +1 -1
- package/dist/preload.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 +6 -4
- package/dist/utils.js.map +1 -1
- package/package.json +13 -8
- 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/e2e-node.tsx +16 -0
- 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 +58 -0
- package/src/examples/internal/simple-scrollbox.vitest.tsx +104 -0
- 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 +7 -5
- 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 +533 -127
- 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 +42 -1
- package/src/examples/simple-list.tsx +1 -1
- package/src/examples/simple-navigation.tsx +7 -5
- package/src/examples/simple-navigation.vitest.tsx +434 -238
- package/src/examples/store.tsx +1 -1
- package/src/examples/store.vitest.tsx +31 -14
- 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 +76 -38
- package/src/extensions/dev.vitest.tsx +220 -0
- package/src/extensions/home.tsx +20 -121
- package/src/globals.ts +1 -1
- package/src/index.tsx +12 -25
- package/src/internal/date-picker-widget.tsx +56 -46
- package/src/internal/dialog.tsx +6 -6
- package/src/internal/providers.tsx +1 -1
- package/src/internal/scrollbox.tsx +63 -0
- 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 +6 -4
- 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/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 -52
- 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,28 +1,30 @@
|
|
|
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/list-with-detail.tsx'],
|
|
9
10
|
cols: 80,
|
|
10
11
|
rows: 30,
|
|
11
12
|
})
|
|
12
13
|
})
|
|
13
14
|
|
|
14
15
|
afterEach(() => {
|
|
15
|
-
|
|
16
|
+
session?.close()
|
|
16
17
|
})
|
|
17
18
|
|
|
18
19
|
test('list with detail view display and navigation', async () => {
|
|
19
|
-
const initialSnapshot = await
|
|
20
|
+
const initialSnapshot = await session.text({
|
|
20
21
|
waitFor: (text) => {
|
|
21
|
-
// wait for list to show up with detail view
|
|
22
22
|
return (
|
|
23
23
|
/Pokemon List/i.test(text) &&
|
|
24
|
-
text.includes('bulbasaur') &&
|
|
25
|
-
text.includes('
|
|
24
|
+
text.includes('›bulbasaur') &&
|
|
25
|
+
text.includes('Grass / Poison') &&
|
|
26
|
+
text.includes('Height: 0.7m') &&
|
|
27
|
+
text.includes('↵ select')
|
|
26
28
|
)
|
|
27
29
|
},
|
|
28
30
|
})
|
|
@@ -30,230 +32,232 @@ test('list with detail view display and navigation', async () => {
|
|
|
30
32
|
expect(initialSnapshot).toMatchInlineSnapshot(`
|
|
31
33
|
"
|
|
32
34
|
|
|
35
|
+
|
|
33
36
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
34
37
|
|
|
35
38
|
Search Pokemon...
|
|
36
39
|
|
|
37
|
-
›bulbasaur #001
|
|
38
|
-
ivysaur #002
|
|
39
|
-
charmander #004
|
|
40
|
-
charmeleon #005
|
|
41
|
-
squirtle #007
|
|
42
|
-
wartortle #008
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
│ ─────────────────
|
|
60
|
-
│"
|
|
40
|
+
›bulbasaur #001
|
|
41
|
+
ivysaur #002 │ bulbasaur ▲
|
|
42
|
+
charmander #004 │ █
|
|
43
|
+
charmeleon #005 │ Illustration
|
|
44
|
+
squirtle #007 │
|
|
45
|
+
wartortle #008 │ Types
|
|
46
|
+
│ Grass / Poison
|
|
47
|
+
│
|
|
48
|
+
│ Characteristics
|
|
49
|
+
│ - Height: 0.7m
|
|
50
|
+
│ - Weight: 6.9kg
|
|
51
|
+
│
|
|
52
|
+
│ Abilities
|
|
53
|
+
│ - Chlorophyll
|
|
54
|
+
│ - Overgrow
|
|
55
|
+
│ ─────────────────────────────────
|
|
56
|
+
│
|
|
57
|
+
│ Types:
|
|
58
|
+
│
|
|
59
|
+
│ Grass:
|
|
60
|
+
│ ─────────────────
|
|
61
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
61
62
|
`)
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
await driver.keys.down()
|
|
64
|
+
await session.press('down')
|
|
65
65
|
|
|
66
|
-
const afterDownSnapshot = await
|
|
66
|
+
const afterDownSnapshot = await session.text({
|
|
67
|
+
waitFor: (text) => text.includes('ivysaur') && text.includes('Height: 1m'),
|
|
68
|
+
})
|
|
67
69
|
expect(afterDownSnapshot).toMatchInlineSnapshot(`
|
|
68
70
|
"
|
|
69
71
|
|
|
72
|
+
|
|
70
73
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
71
74
|
|
|
72
75
|
Search Pokemon...
|
|
73
76
|
|
|
74
|
-
bulbasaur #001
|
|
75
|
-
›ivysaur #002
|
|
76
|
-
charmander #004
|
|
77
|
-
charmeleon #005
|
|
78
|
-
squirtle #007
|
|
79
|
-
wartortle #008
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
│ ─────────────────
|
|
97
|
-
│"
|
|
77
|
+
bulbasaur #001
|
|
78
|
+
›ivysaur #002 │ ivysaur ▲
|
|
79
|
+
charmander #004 │ █
|
|
80
|
+
charmeleon #005 │ Illustration
|
|
81
|
+
squirtle #007 │
|
|
82
|
+
wartortle #008 │ Types
|
|
83
|
+
│ Grass / Poison
|
|
84
|
+
│
|
|
85
|
+
│ Characteristics
|
|
86
|
+
│ - Height: 1m
|
|
87
|
+
│ - Weight: 13kg
|
|
88
|
+
│
|
|
89
|
+
│ Abilities
|
|
90
|
+
│ - Chlorophyll
|
|
91
|
+
│ - Overgrow
|
|
92
|
+
│ ─────────────────────────────────
|
|
93
|
+
│
|
|
94
|
+
│ Types:
|
|
95
|
+
│
|
|
96
|
+
│ Grass:
|
|
97
|
+
│ ─────────────────
|
|
98
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
98
99
|
`)
|
|
99
100
|
|
|
100
|
-
|
|
101
|
-
await driver.keys.down()
|
|
101
|
+
await session.press('down')
|
|
102
102
|
|
|
103
|
-
const charmanderSnapshot = await
|
|
103
|
+
const charmanderSnapshot = await session.text()
|
|
104
104
|
expect(charmanderSnapshot).toMatchInlineSnapshot(`
|
|
105
105
|
"
|
|
106
106
|
|
|
107
|
+
|
|
107
108
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
108
109
|
|
|
109
110
|
Search Pokemon...
|
|
110
111
|
|
|
111
|
-
bulbasaur #001
|
|
112
|
-
ivysaur #002
|
|
113
|
-
›charmander #004
|
|
114
|
-
charmeleon #005
|
|
115
|
-
squirtle #007
|
|
116
|
-
wartortle #008
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
│ Height: 0.6m
|
|
134
|
-
│"
|
|
112
|
+
bulbasaur #001
|
|
113
|
+
ivysaur #002 │ charmander ▲
|
|
114
|
+
›charmander #004 │ █
|
|
115
|
+
charmeleon #005 │ Illustration
|
|
116
|
+
squirtle #007 │
|
|
117
|
+
wartortle #008 │ Types
|
|
118
|
+
│ Fire
|
|
119
|
+
│
|
|
120
|
+
│ Characteristics
|
|
121
|
+
│ - Height: 0.6m
|
|
122
|
+
│ - Weight: 8.5kg
|
|
123
|
+
│
|
|
124
|
+
│ Abilities
|
|
125
|
+
│ - Blaze
|
|
126
|
+
│ - Solar Power
|
|
127
|
+
│ ─────────────────────────────────
|
|
128
|
+
│
|
|
129
|
+
│ Types:
|
|
130
|
+
│
|
|
131
|
+
│ Fire:
|
|
132
|
+
│ ─────────────────
|
|
133
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
135
134
|
`)
|
|
136
135
|
|
|
137
|
-
|
|
138
|
-
await driver.keys.ctrlK()
|
|
136
|
+
await session.press(['ctrl', 'k'])
|
|
139
137
|
|
|
140
|
-
const actionsSnapshot = await
|
|
138
|
+
const actionsSnapshot = await session.text()
|
|
141
139
|
expect(actionsSnapshot).toMatchInlineSnapshot(`
|
|
142
140
|
"
|
|
143
141
|
|
|
144
|
-
Pokemon List ─────────────────────────────────────────────────────────────
|
|
145
|
-
|
|
146
|
-
Search Pokemon...
|
|
147
|
-
|
|
148
|
-
bulbasaur #001 │ # charmander
|
|
149
|
-
|
|
150
|
-
esc n.
|
|
151
|
-
|
|
152
|
-
Search actions...
|
|
153
|
-
›Toggle Detail
|
|
154
|
-
View on Pokemon.com
|
|
155
142
|
|
|
143
|
+
Pokemon List ─────────────────────────────────────────────────────────────
|
|
156
144
|
|
|
157
|
-
|
|
145
|
+
Search Pokemon...
|
|
158
146
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
147
|
+
bulbasaur #001
|
|
148
|
+
ivysaur #002 │ charmander ▲
|
|
149
|
+
┃ ┃
|
|
150
|
+
┃ esc ┃
|
|
151
|
+
┃ ┃
|
|
152
|
+
┃ Search actions... ┃
|
|
153
|
+
┃ ┃
|
|
154
|
+
┃ ›Toggle Detail ┃
|
|
155
|
+
┃ View on Pokemon.com ┃
|
|
156
|
+
┃ ┃
|
|
157
|
+
┃ ┃
|
|
158
|
+
┃ ┃
|
|
159
|
+
┃ ┃
|
|
160
|
+
┃ ┃
|
|
161
|
+
┃ ┃
|
|
162
|
+
┃ ┃
|
|
163
|
+
┃ ┃
|
|
164
|
+
┃ ┃
|
|
165
|
+
┃ ↵ select ↑↓ navigate ┃
|
|
166
|
+
┃ ┃
|
|
167
|
+
│ ─────────────────
|
|
168
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
172
169
|
`)
|
|
173
170
|
|
|
174
|
-
|
|
175
|
-
await driver.keys.enter()
|
|
171
|
+
await session.press('enter')
|
|
176
172
|
|
|
177
|
-
const afterToggleSnapshot = await
|
|
173
|
+
const afterToggleSnapshot = await session.text({
|
|
178
174
|
waitFor: (text) => {
|
|
179
|
-
|
|
180
|
-
return text.includes('Grass / Poison') || text.includes('Fire')
|
|
175
|
+
return text.includes('Grass / Poison') && !text.includes('## Types')
|
|
181
176
|
},
|
|
182
177
|
})
|
|
183
178
|
expect(afterToggleSnapshot).toMatchInlineSnapshot(`
|
|
184
179
|
"
|
|
185
180
|
|
|
181
|
+
|
|
186
182
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
187
183
|
|
|
188
184
|
Search Pokemon...
|
|
189
185
|
|
|
190
|
-
bulbasaur #001
|
|
191
|
-
ivysaur #002
|
|
192
|
-
›charmander #004
|
|
193
|
-
charmeleon #005
|
|
194
|
-
squirtle #007
|
|
195
|
-
wartortle #008
|
|
186
|
+
bulbasaur #001 Grass / Poison
|
|
187
|
+
ivysaur #002 Grass / Poison
|
|
188
|
+
›charmander #004 Fire
|
|
189
|
+
charmeleon #005 Fire
|
|
190
|
+
squirtle #007 Water
|
|
191
|
+
wartortle #008 Water
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
196
204
|
|
|
197
205
|
|
|
198
|
-
|
|
206
|
+
|
|
207
|
+
↵ select ↑↓ navigate ^k actions"
|
|
199
208
|
`)
|
|
200
209
|
|
|
201
|
-
|
|
202
|
-
await
|
|
203
|
-
await driver.keys.enter()
|
|
210
|
+
await session.press(['ctrl', 'k'])
|
|
211
|
+
await session.press('enter')
|
|
204
212
|
|
|
205
|
-
const detailOnAgainSnapshot = await
|
|
213
|
+
const detailOnAgainSnapshot = await session.text({
|
|
206
214
|
waitFor: (text) => {
|
|
207
|
-
|
|
208
|
-
return !text.includes('Grass / Poison') && !text.includes('Fire')
|
|
215
|
+
return text.includes('charmander') && text.includes('Fire')
|
|
209
216
|
},
|
|
210
217
|
})
|
|
211
218
|
expect(detailOnAgainSnapshot).toMatchInlineSnapshot(`
|
|
212
219
|
"
|
|
213
220
|
|
|
221
|
+
|
|
214
222
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
215
223
|
|
|
216
224
|
Search Pokemon...
|
|
217
225
|
|
|
218
|
-
bulbasaur #001
|
|
219
|
-
ivysaur #002 │
|
|
220
|
-
›charmander #004 │
|
|
221
|
-
charmeleon #005 │
|
|
222
|
-
squirtle #007 │
|
|
223
|
-
wartortle #008 │
|
|
226
|
+
bulbasaur #001
|
|
227
|
+
ivysaur #002 │ charmander ▲
|
|
228
|
+
›charmander #004 │ █
|
|
229
|
+
charmeleon #005 │ Illustration
|
|
230
|
+
squirtle #007 │
|
|
231
|
+
wartortle #008 │ Types
|
|
232
|
+
│ Fire
|
|
224
233
|
│
|
|
225
|
-
│
|
|
226
|
-
|
|
234
|
+
│ Characteristics
|
|
235
|
+
│ - Height: 0.6m
|
|
227
236
|
│ - Weight: 8.5kg
|
|
228
237
|
│
|
|
229
|
-
│
|
|
238
|
+
│ Abilities
|
|
230
239
|
│ - Blaze
|
|
231
240
|
│ - Solar Power
|
|
232
|
-
│
|
|
241
|
+
│ ─────────────────────────────────
|
|
233
242
|
│
|
|
234
243
|
│ Types:
|
|
235
244
|
│
|
|
236
245
|
│ Fire:
|
|
237
246
|
│ ─────────────────
|
|
238
|
-
|
|
239
|
-
│ Characteristics:
|
|
240
|
-
│ Height: 0.6m
|
|
241
|
-
│"
|
|
247
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
242
248
|
`)
|
|
243
249
|
}, 15000)
|
|
244
250
|
|
|
245
251
|
test('list detail view search functionality', async () => {
|
|
246
|
-
await
|
|
252
|
+
await session.text({
|
|
247
253
|
waitFor: (text) => {
|
|
248
|
-
// wait for list to show up
|
|
249
254
|
return /Pokemon List/i.test(text)
|
|
250
255
|
},
|
|
251
256
|
})
|
|
252
257
|
|
|
253
|
-
|
|
254
|
-
await driver.keys.type('char')
|
|
258
|
+
await session.type('char')
|
|
255
259
|
|
|
256
|
-
const searchCharSnapshot = await
|
|
260
|
+
const searchCharSnapshot = await session.text({
|
|
257
261
|
waitFor: (text) => {
|
|
258
262
|
return /char/i.test(text) && text.includes('charmander')
|
|
259
263
|
},
|
|
@@ -261,130 +265,125 @@ test('list detail view search functionality', async () => {
|
|
|
261
265
|
expect(searchCharSnapshot).toMatchInlineSnapshot(`
|
|
262
266
|
"
|
|
263
267
|
|
|
268
|
+
|
|
264
269
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
265
270
|
|
|
266
271
|
char
|
|
267
272
|
|
|
268
|
-
charmander #004
|
|
269
|
-
charmeleon #005
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
│ ─────────────────
|
|
291
|
-
│"
|
|
273
|
+
charmander #004
|
|
274
|
+
charmeleon #005 │ ▲
|
|
275
|
+
│ ───────────────────────────────── █
|
|
276
|
+
│ █
|
|
277
|
+
│ Types: █
|
|
278
|
+
│ █
|
|
279
|
+
│ Grass: ▀
|
|
280
|
+
│ ─────────────────
|
|
281
|
+
│
|
|
282
|
+
│ Poison:
|
|
283
|
+
│ ─────────────────
|
|
284
|
+
│
|
|
285
|
+
│ Characteristics:
|
|
286
|
+
│ Height: 0.7m
|
|
287
|
+
│
|
|
288
|
+
│ ─────────────────
|
|
289
|
+
│ Weight: 6.9kg
|
|
290
|
+
│
|
|
291
|
+
│ ─────────────────
|
|
292
|
+
│ Abilities:
|
|
293
|
+
│
|
|
294
|
+
↵ select ↑↓ navigate ^k actions │ Chlorophyll: Main Series ▼"
|
|
292
295
|
`)
|
|
293
296
|
|
|
294
|
-
|
|
295
|
-
await
|
|
296
|
-
await
|
|
297
|
-
await
|
|
298
|
-
await driver.keys.backspace()
|
|
297
|
+
await session.press('backspace')
|
|
298
|
+
await session.press('backspace')
|
|
299
|
+
await session.press('backspace')
|
|
300
|
+
await session.press('backspace')
|
|
299
301
|
|
|
300
|
-
|
|
301
|
-
await driver.keys.type('water')
|
|
302
|
+
await session.type('water')
|
|
302
303
|
|
|
303
|
-
const searchWaterSnapshot = await
|
|
304
|
+
const searchWaterSnapshot = await session.text({
|
|
304
305
|
waitFor: (text) => {
|
|
305
|
-
return /water/i.test(text)
|
|
306
|
+
return /water/i.test(text)
|
|
306
307
|
},
|
|
307
308
|
})
|
|
308
309
|
expect(searchWaterSnapshot).toMatchInlineSnapshot(`
|
|
309
310
|
"
|
|
310
311
|
|
|
312
|
+
|
|
311
313
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
312
314
|
|
|
313
315
|
water
|
|
314
316
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
│ ─────────────────
|
|
338
|
-
│"
|
|
317
|
+
|
|
318
|
+
│ bulbasaur ▲
|
|
319
|
+
│ █
|
|
320
|
+
│ Illustration
|
|
321
|
+
│
|
|
322
|
+
│ Types
|
|
323
|
+
│ Grass / Poison
|
|
324
|
+
│
|
|
325
|
+
│ Characteristics
|
|
326
|
+
│ - Height: 0.7m
|
|
327
|
+
│ - Weight: 6.9kg
|
|
328
|
+
│
|
|
329
|
+
│ Abilities
|
|
330
|
+
│ - Chlorophyll
|
|
331
|
+
│ - Overgrow
|
|
332
|
+
│ ─────────────────────────────────
|
|
333
|
+
│
|
|
334
|
+
│ Types:
|
|
335
|
+
│
|
|
336
|
+
│ Grass:
|
|
337
|
+
│ ─────────────────
|
|
338
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
339
339
|
`)
|
|
340
340
|
|
|
341
|
-
|
|
342
|
-
await driver.keys.down()
|
|
341
|
+
await session.press('down')
|
|
343
342
|
|
|
344
|
-
const wartortleSnapshot = await
|
|
343
|
+
const wartortleSnapshot = await session.text()
|
|
345
344
|
expect(wartortleSnapshot).toMatchInlineSnapshot(`
|
|
346
345
|
"
|
|
347
346
|
|
|
347
|
+
|
|
348
348
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
349
349
|
|
|
350
350
|
water
|
|
351
351
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
│ ─────────────────
|
|
375
|
-
│"
|
|
352
|
+
|
|
353
|
+
│ bulbasaur ▲
|
|
354
|
+
│ █
|
|
355
|
+
│ Illustration
|
|
356
|
+
│
|
|
357
|
+
│ Types
|
|
358
|
+
│ Grass / Poison
|
|
359
|
+
│
|
|
360
|
+
│ Characteristics
|
|
361
|
+
│ - Height: 0.7m
|
|
362
|
+
│ - Weight: 6.9kg
|
|
363
|
+
│
|
|
364
|
+
│ Abilities
|
|
365
|
+
│ - Chlorophyll
|
|
366
|
+
│ - Overgrow
|
|
367
|
+
│ ─────────────────────────────────
|
|
368
|
+
│
|
|
369
|
+
│ Types:
|
|
370
|
+
│
|
|
371
|
+
│ Grass:
|
|
372
|
+
│ ─────────────────
|
|
373
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
376
374
|
`)
|
|
377
375
|
}, 10000)
|
|
378
376
|
|
|
379
377
|
test('list detail metadata rendering', async () => {
|
|
380
|
-
const initialSnapshot = await
|
|
378
|
+
const initialSnapshot = await session.text({
|
|
381
379
|
waitFor: (text) => {
|
|
382
|
-
// wait for list with metadata to show up
|
|
383
380
|
return (
|
|
384
381
|
/Pokemon List/i.test(text) &&
|
|
385
382
|
text.includes('bulbasaur') &&
|
|
386
383
|
text.includes('Types') &&
|
|
387
|
-
text.includes('Height')
|
|
384
|
+
text.includes('Height') &&
|
|
385
|
+
text.includes('Abilities') &&
|
|
386
|
+
text.includes('Chlorophyll')
|
|
388
387
|
)
|
|
389
388
|
},
|
|
390
389
|
})
|
|
@@ -392,43 +391,41 @@ test('list detail metadata rendering', async () => {
|
|
|
392
391
|
expect(initialSnapshot).toMatchInlineSnapshot(`
|
|
393
392
|
"
|
|
394
393
|
|
|
394
|
+
|
|
395
395
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
396
396
|
|
|
397
397
|
Search Pokemon...
|
|
398
398
|
|
|
399
|
-
›bulbasaur #001
|
|
400
|
-
ivysaur #002
|
|
401
|
-
charmander #004
|
|
402
|
-
charmeleon #005
|
|
403
|
-
squirtle #007
|
|
404
|
-
wartortle #008
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
│ ─────────────────
|
|
422
|
-
│"
|
|
399
|
+
›bulbasaur #001
|
|
400
|
+
ivysaur #002 │ ▲
|
|
401
|
+
charmander #004 │ ───────────────────────────────── █
|
|
402
|
+
charmeleon #005 │ █
|
|
403
|
+
squirtle #007 │ Types: █
|
|
404
|
+
wartortle #008 │ █
|
|
405
|
+
│ Grass: ▀
|
|
406
|
+
│ ─────────────────
|
|
407
|
+
│
|
|
408
|
+
│ Poison:
|
|
409
|
+
│ ─────────────────
|
|
410
|
+
│
|
|
411
|
+
│ Characteristics:
|
|
412
|
+
│ Height: 0.7m
|
|
413
|
+
│
|
|
414
|
+
│ ─────────────────
|
|
415
|
+
│ Weight: 6.9kg
|
|
416
|
+
│
|
|
417
|
+
│ ─────────────────
|
|
418
|
+
│ Abilities:
|
|
419
|
+
│
|
|
420
|
+
↵ select ↑↓ navigate ^k actions │ Chlorophyll: Main Series ▼"
|
|
423
421
|
`)
|
|
424
422
|
|
|
425
|
-
|
|
426
|
-
await
|
|
427
|
-
await
|
|
428
|
-
await
|
|
429
|
-
await driver.keys.down()
|
|
423
|
+
await session.press('down')
|
|
424
|
+
await session.press('down')
|
|
425
|
+
await session.press('down')
|
|
426
|
+
await session.press('down')
|
|
430
427
|
|
|
431
|
-
const squirtleSnapshot = await
|
|
428
|
+
const squirtleSnapshot = await session.text({
|
|
432
429
|
waitFor: (text) => {
|
|
433
430
|
return text.includes('squirtle') && text.includes('Water')
|
|
434
431
|
},
|
|
@@ -436,33 +433,32 @@ test('list detail metadata rendering', async () => {
|
|
|
436
433
|
expect(squirtleSnapshot).toMatchInlineSnapshot(`
|
|
437
434
|
"
|
|
438
435
|
|
|
436
|
+
|
|
439
437
|
Pokemon List ─────────────────────────────────────────────────────────────
|
|
440
438
|
|
|
441
439
|
Search Pokemon...
|
|
442
440
|
|
|
443
|
-
bulbasaur #001
|
|
444
|
-
ivysaur #002
|
|
445
|
-
charmander #004
|
|
446
|
-
charmeleon #005
|
|
447
|
-
›squirtle #007
|
|
448
|
-
wartortle #008
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
│ Height: 0.5m
|
|
466
|
-
│"
|
|
441
|
+
bulbasaur #001
|
|
442
|
+
ivysaur #002 │ squirtle ▲
|
|
443
|
+
charmander #004 │ █
|
|
444
|
+
charmeleon #005 │ Illustration
|
|
445
|
+
›squirtle #007 │
|
|
446
|
+
wartortle #008 │ Types
|
|
447
|
+
│ Water
|
|
448
|
+
│
|
|
449
|
+
│ Characteristics
|
|
450
|
+
│ - Height: 0.5m
|
|
451
|
+
│ - Weight: 9kg
|
|
452
|
+
│
|
|
453
|
+
│ Abilities
|
|
454
|
+
│ - Torrent
|
|
455
|
+
│ - Rain Dish
|
|
456
|
+
│ ─────────────────────────────────
|
|
457
|
+
│
|
|
458
|
+
│ Types:
|
|
459
|
+
│
|
|
460
|
+
│ Water:
|
|
461
|
+
│ ─────────────────
|
|
462
|
+
↵ select ↑↓ navigate ^k actions │ ▼"
|
|
467
463
|
`)
|
|
468
464
|
}, 10000)
|