termcast 1.3.10 → 1.3.18
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
package/dist/clipboard.js
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { exec } from 'child_process';
|
|
4
|
-
import { promisify } from 'util';
|
|
5
|
-
import { copyToClipboard, pasteContent } from '@termcast/cli/src/action-utils';
|
|
6
|
-
import { logger } from '@termcast/cli/src/logger';
|
|
7
|
-
const execAsync = promisify(exec);
|
|
8
|
-
const platform = process.platform;
|
|
9
|
-
async function copyFileToClipboard(filePath) {
|
|
10
|
-
const absolutePath = path.resolve(filePath);
|
|
11
|
-
if (!fs.existsSync(absolutePath)) {
|
|
12
|
-
throw new Error(`File not found: ${absolutePath}`);
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
if (platform === 'darwin') {
|
|
16
|
-
// macOS: Use osascript to copy file to clipboard
|
|
17
|
-
const script = `osascript -e 'set the clipboard to (POSIX file "${absolutePath}")'`;
|
|
18
|
-
await execAsync(script);
|
|
19
|
-
logger.log(`📋 Copied file to clipboard: ${filePath}`);
|
|
20
|
-
}
|
|
21
|
-
else if (platform === 'linux') {
|
|
22
|
-
// Linux: Copy file path as text and file URI
|
|
23
|
-
const fileUri = `file://${absolutePath}`;
|
|
24
|
-
await execAsync(`echo '${fileUri}' | xclip -selection clipboard -t text/uri-list`);
|
|
25
|
-
logger.log(`📋 Copied file to clipboard: ${filePath}`);
|
|
26
|
-
}
|
|
27
|
-
else if (platform === 'win32') {
|
|
28
|
-
// Windows: Use PowerShell to copy file to clipboard
|
|
29
|
-
const script = `powershell -command "Set-Clipboard -Path '${absolutePath}'"`;
|
|
30
|
-
await execAsync(script);
|
|
31
|
-
logger.log(`📋 Copied file to clipboard: ${filePath}`);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
logger.log(`📋 File copy not supported on ${platform}: ${filePath}`);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
logger.log(`📋 Failed to copy file to clipboard: ${error}`);
|
|
39
|
-
throw error;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export const Clipboard = {
|
|
43
|
-
async copy(content, options) {
|
|
44
|
-
let textContent;
|
|
45
|
-
if (typeof content === 'string' || typeof content === 'number') {
|
|
46
|
-
textContent = String(content);
|
|
47
|
-
}
|
|
48
|
-
else if ('text' in content) {
|
|
49
|
-
textContent = content.text || '';
|
|
50
|
-
}
|
|
51
|
-
else if ('file' in content) {
|
|
52
|
-
await copyFileToClipboard(String(content.file));
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
else if ('html' in content) {
|
|
56
|
-
textContent = content.text || content.html;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
throw new Error('Invalid clipboard content type');
|
|
60
|
-
}
|
|
61
|
-
await copyToClipboard(textContent, options?.concealed);
|
|
62
|
-
},
|
|
63
|
-
async clear() {
|
|
64
|
-
await copyToClipboard('', false);
|
|
65
|
-
logger.log('📋 Clipboard cleared');
|
|
66
|
-
},
|
|
67
|
-
async paste(content) {
|
|
68
|
-
let textContent;
|
|
69
|
-
if (typeof content === 'string' || typeof content === 'number') {
|
|
70
|
-
textContent = String(content);
|
|
71
|
-
}
|
|
72
|
-
else if ('text' in content) {
|
|
73
|
-
textContent = content.text || '';
|
|
74
|
-
}
|
|
75
|
-
else if ('file' in content) {
|
|
76
|
-
logger.log(`📝 File paste not yet implemented: ${content.file}`);
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
else if ('html' in content) {
|
|
80
|
-
textContent = content.text || content.html;
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
throw new Error('Invalid clipboard content type');
|
|
84
|
-
}
|
|
85
|
-
await pasteContent(textContent);
|
|
86
|
-
},
|
|
87
|
-
async read(options) {
|
|
88
|
-
if (options?.offset && options.offset > 0) {
|
|
89
|
-
logger.log('📋 Clipboard history not yet implemented');
|
|
90
|
-
}
|
|
91
|
-
try {
|
|
92
|
-
let text = '';
|
|
93
|
-
let file;
|
|
94
|
-
if (platform === 'darwin') {
|
|
95
|
-
// Try to get file first
|
|
96
|
-
try {
|
|
97
|
-
const fileCheckScript = `osascript -e 'try' -e 'get the clipboard as «class furl»' -e 'POSIX path of result' -e 'end try'`;
|
|
98
|
-
const { stdout: filePath } = await execAsync(fileCheckScript);
|
|
99
|
-
if (filePath && filePath.trim()) {
|
|
100
|
-
file = filePath.trim();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
catch {
|
|
104
|
-
// No file in clipboard, try text
|
|
105
|
-
}
|
|
106
|
-
// Get text content
|
|
107
|
-
const { stdout } = await execAsync('pbpaste');
|
|
108
|
-
text = stdout;
|
|
109
|
-
}
|
|
110
|
-
else if (platform === 'linux') {
|
|
111
|
-
// Check for file URIs
|
|
112
|
-
try {
|
|
113
|
-
const { stdout: fileUri } = await execAsync('xclip -selection clipboard -t text/uri-list -o');
|
|
114
|
-
if (fileUri && fileUri.startsWith('file://')) {
|
|
115
|
-
file = fileUri.replace('file://', '').trim();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
catch {
|
|
119
|
-
// No file in clipboard
|
|
120
|
-
}
|
|
121
|
-
// Get text content
|
|
122
|
-
try {
|
|
123
|
-
const { stdout } = await execAsync('xclip -selection clipboard -o');
|
|
124
|
-
text = stdout;
|
|
125
|
-
}
|
|
126
|
-
catch {
|
|
127
|
-
// No text in clipboard
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
else if (platform === 'win32') {
|
|
131
|
-
// Windows: Get clipboard content
|
|
132
|
-
const { stdout } = await execAsync('powershell -command "Get-Clipboard"');
|
|
133
|
-
text = stdout;
|
|
134
|
-
// Check if it's a file path
|
|
135
|
-
if (text && fs.existsSync(text.trim())) {
|
|
136
|
-
file = text.trim();
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return { text, file };
|
|
140
|
-
}
|
|
141
|
-
catch (error) {
|
|
142
|
-
logger.log(`📋 Failed to read clipboard: ${error}`);
|
|
143
|
-
return { text: '' };
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
async readText(options) {
|
|
147
|
-
const content = await this.read(options);
|
|
148
|
-
return content.text || undefined;
|
|
149
|
-
},
|
|
150
|
-
};
|
|
151
|
-
export const copyTextToClipboard = Clipboard.copy;
|
|
152
|
-
export const clearClipboard = Clipboard.clear;
|
|
153
|
-
export const pasteText = Clipboard.paste;
|
|
154
|
-
//#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;gBAEb,4BAA4B;gBAC5B,IAAI,IAAI,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;oBACvC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;gBACpB,CAAC;YACH,CAAC;YAED,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAA;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,GAAG,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YACnD,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;QACrB,CAAC;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,OAA6B;QAC1C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACxC,OAAO,OAAO,CAAC,IAAI,IAAI,SAAS,CAAA;IAClC,CAAC;CACF,CAAA;AA0BD,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC,IAAI,CAAA;AACjD,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,KAAK,CAAA;AAC7C,MAAM,CAAC,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAA"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormEvent, FormEventType, FormItemRef, FormValue_2, FormValues_2, FormProps_2, FormItemProps_2 } from './types';
|
|
3
|
-
import type { TextFieldProps, TextFieldRef } from './text-field';
|
|
4
|
-
import type { PasswordFieldProps, PasswordFieldRef } from './password-field';
|
|
5
|
-
import type { TextAreaProps, TextAreaRef } from './text-area';
|
|
6
|
-
import type { CheckboxProps, CheckboxRef } from './checkbox';
|
|
7
|
-
import type { DropdownProps, DropdownRef, DropdownItemProps, DropdownSectionProps } from './dropdown';
|
|
8
|
-
import type { DatePickerProps, DatePickerRef, DatePickerType as DatePickerEnum } from './date-picker';
|
|
9
|
-
import type { TagPickerType } from './tagpicker';
|
|
10
|
-
import type { DescriptionProps } from './description';
|
|
11
|
-
import type { FilePickerProps, FilePickerRef } from './file-picker';
|
|
12
|
-
interface LinkAccessoryProps {
|
|
13
|
-
text: string;
|
|
14
|
-
url: string;
|
|
15
|
-
}
|
|
16
|
-
export declare namespace Form {
|
|
17
|
-
type ItemProps<T extends FormValue_2> = FormItemProps_2<T>;
|
|
18
|
-
type Value = FormValue_2;
|
|
19
|
-
type Values = FormValues_2;
|
|
20
|
-
type Props = FormProps_2 & {
|
|
21
|
-
searchBarAccessory?: React.ReactElement<LinkAccessoryProps> | undefined | null;
|
|
22
|
-
};
|
|
23
|
-
type ItemReference = FormItemRef;
|
|
24
|
-
/**
|
|
25
|
-
* An interface describing event in callbacks {@link Form.Item.Props.onFocus} and {@link Form.Item.Props.onBlur}
|
|
26
|
-
*/
|
|
27
|
-
type Event<T extends FormValue_2> = FormEvent<T>;
|
|
28
|
-
namespace Event {
|
|
29
|
-
/**
|
|
30
|
-
* Types of Form event {@link Form.Event}
|
|
31
|
-
* * `focus` - the type will be returned for the event of {@link Form.Item.Props.onFocus} callback
|
|
32
|
-
* * `blur` - the type will be returned for the event of {@link Form.Item.Props.onBlur} callback
|
|
33
|
-
*/
|
|
34
|
-
type Type = FormEventType;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A Ref Type for the {@link Form.TextField}.
|
|
38
|
-
* Use refs to control your Form by calling `Form.TextField.focus()` or `Form.TextField.reset()` functions.
|
|
39
|
-
*/
|
|
40
|
-
type TextField = TextFieldRef;
|
|
41
|
-
namespace TextField {
|
|
42
|
-
/**
|
|
43
|
-
* Props of the {@link Form.TextField} React component.
|
|
44
|
-
*/
|
|
45
|
-
type Props = TextFieldProps;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* A Ref Type for the {@link Form.PasswordField}.
|
|
49
|
-
* Use refs to control your Form by calling `Form.PasswordField.focus()` or `Form.PasswordField.reset()` functions.
|
|
50
|
-
*/
|
|
51
|
-
type PasswordField = PasswordFieldRef;
|
|
52
|
-
namespace PasswordField {
|
|
53
|
-
/**
|
|
54
|
-
* Props of the {@link Form.PasswordField} React component.
|
|
55
|
-
*/
|
|
56
|
-
type Props = PasswordFieldProps;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* A Ref Type for the {@link Form.TextArea}.
|
|
60
|
-
* Use refs to control your Form by calling `Form.TextArea.focus()` or `Form.TextArea.reset()` functions.
|
|
61
|
-
*/
|
|
62
|
-
type TextArea = TextAreaRef;
|
|
63
|
-
namespace TextArea {
|
|
64
|
-
/**
|
|
65
|
-
* Props of the {@link Form.TextArea} React component.
|
|
66
|
-
*/
|
|
67
|
-
type Props = TextAreaProps;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* A Ref Type for the {@link Form.Checkbox}.
|
|
71
|
-
* Use refs to control your Form by calling `Form.Checkbox.focus()` or `Form.Checkbox.reset()` functions.
|
|
72
|
-
*/
|
|
73
|
-
type Checkbox = CheckboxRef;
|
|
74
|
-
namespace Checkbox {
|
|
75
|
-
/**
|
|
76
|
-
* Props of the {@link Form.Checkbox} React component.
|
|
77
|
-
*/
|
|
78
|
-
type Props = CheckboxProps;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* A Ref Type for the {@link Form.Dropdown}.
|
|
82
|
-
* Use refs to control your Form by calling `Form.Dropdown.focus()` or `Form.Dropdown.reset()` functions.
|
|
83
|
-
*/
|
|
84
|
-
type Dropdown = DropdownRef;
|
|
85
|
-
namespace Dropdown {
|
|
86
|
-
/**
|
|
87
|
-
* Props of the {@link Form.Dropdown} React component.
|
|
88
|
-
*/
|
|
89
|
-
type Props = DropdownProps;
|
|
90
|
-
namespace Item {
|
|
91
|
-
/**
|
|
92
|
-
* Props of the {@link Form.Dropdown.Item} React component.
|
|
93
|
-
*/
|
|
94
|
-
type Props = DropdownItemProps;
|
|
95
|
-
}
|
|
96
|
-
namespace Section {
|
|
97
|
-
/**
|
|
98
|
-
* Props of the {@link Form.Dropdown.Section} React component.
|
|
99
|
-
*/
|
|
100
|
-
type Props = DropdownSectionProps;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* A Ref Type for the {@link Form.DatePicker}.
|
|
105
|
-
* Use refs to control your Form by calling `Form.DatePicker.focus()` or `Form.DatePicker.reset()` functions.
|
|
106
|
-
*/
|
|
107
|
-
type DatePicker = DatePickerRef;
|
|
108
|
-
namespace DatePicker {
|
|
109
|
-
/**
|
|
110
|
-
* Props of the {@link Form.DatePicker} React component.
|
|
111
|
-
*/
|
|
112
|
-
type Props = DatePickerProps;
|
|
113
|
-
/**
|
|
114
|
-
* The types of date components the user can pick with {@link Form.DatePicker}.
|
|
115
|
-
*/
|
|
116
|
-
type Type = DatePickerEnum;
|
|
117
|
-
}
|
|
118
|
-
namespace TagPicker {
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* A Ref Type for the {@link Form.FilePicker}.
|
|
122
|
-
* Use refs to control your Form by calling `Form.FilePicker.focus()` or `Form.FilePicker.reset()` functions.
|
|
123
|
-
*/
|
|
124
|
-
type FilePicker = FilePickerRef;
|
|
125
|
-
namespace FilePicker {
|
|
126
|
-
/**
|
|
127
|
-
* Props of the {@link Form.FilePicker} React component.
|
|
128
|
-
*/
|
|
129
|
-
type Props = FilePickerProps;
|
|
130
|
-
}
|
|
131
|
-
namespace Separator {
|
|
132
|
-
/**
|
|
133
|
-
* Props of the {@link Form.Separator} React component.
|
|
134
|
-
*/
|
|
135
|
-
interface Props {
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
namespace Description {
|
|
139
|
-
/**
|
|
140
|
-
* Props of the {@link Form.Description} React component.
|
|
141
|
-
*/
|
|
142
|
-
type Props = DescriptionProps;
|
|
143
|
-
}
|
|
144
|
-
namespace LinkAccessory {
|
|
145
|
-
/**
|
|
146
|
-
* Props of the {@link Form.LinkAccessory} React component.
|
|
147
|
-
*/
|
|
148
|
-
type Props = LinkAccessoryProps;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
interface FormType {
|
|
152
|
-
(props: Form.Props): any;
|
|
153
|
-
TextField: React.ForwardRefExoticComponent<Form.TextField.Props & React.RefAttributes<Form.TextField>>;
|
|
154
|
-
PasswordField: React.ForwardRefExoticComponent<Form.PasswordField.Props & React.RefAttributes<Form.PasswordField>>;
|
|
155
|
-
TextArea: React.ForwardRefExoticComponent<Form.TextArea.Props & React.RefAttributes<Form.TextArea>>;
|
|
156
|
-
Checkbox: React.ForwardRefExoticComponent<Form.Checkbox.Props & React.RefAttributes<Form.Checkbox>>;
|
|
157
|
-
Dropdown: {
|
|
158
|
-
(props: Form.Dropdown.Props): any;
|
|
159
|
-
Item: (props: Form.Dropdown.Item.Props) => any;
|
|
160
|
-
Section: (props: Form.Dropdown.Section.Props) => any;
|
|
161
|
-
};
|
|
162
|
-
DatePicker: {
|
|
163
|
-
(props: Form.DatePicker.Props): any;
|
|
164
|
-
Type: typeof DatePickerEnum;
|
|
165
|
-
};
|
|
166
|
-
TagPicker: TagPickerType;
|
|
167
|
-
FilePicker: React.ForwardRefExoticComponent<Form.FilePicker.Props & React.RefAttributes<Form.FilePicker>>;
|
|
168
|
-
Separator: (props: Form.Separator.Props) => any;
|
|
169
|
-
Description: (props: Form.Description.Props) => any;
|
|
170
|
-
LinkAccessory: (props: Form.LinkAccessory.Props) => any;
|
|
171
|
-
}
|
|
172
|
-
export declare const Form: FormType;
|
|
173
|
-
export {};
|
|
174
|
-
//# sourceMappingURL=form-type-only.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-type-only.d.ts","sourceRoot":"","sources":["../../../src/components/form/form-type-only.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAGH,SAAS,EACT,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EAClB,MAAM,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AAG,CAAA;QACnC,IAAI,EAAE,OAAO,cAAc,CAAA;KAC9B,CAAA;IACD,SAAS,EAAE,aAAa,CAAA;IACxB,UAAU,EAAE,KAAK,CAAC,yBAAyB,CACvC,IAAI,CAAC,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAC/D,CAAA;IACD,SAAS,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,GAAG,CAAA;IAC/C,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,GAAG,CAAA;IACnD,aAAa,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,KAAK,GAAG,CAAA;CAC1D;AAGD,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-type-only.js","sourceRoot":"","sources":["../../../src/components/form/form-type-only.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-form-handling.d.ts","sourceRoot":"","sources":["../../../src/components/form/use-form-handling.tsx"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,QAkChE"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { useKeyboard } from '@opentui/react';
|
|
2
|
-
import { useFormContext } from 'react-hook-form';
|
|
3
|
-
import { useFocusContext } from './index';
|
|
4
|
-
export function useFormHandling({ enabled }) {
|
|
5
|
-
const methods = useFormContext();
|
|
6
|
-
const { focusedField, setFocusedField } = useFocusContext();
|
|
7
|
-
useKeyboard((evt) => {
|
|
8
|
-
// Only handle keyboard events when enabled
|
|
9
|
-
if (!enabled)
|
|
10
|
-
return;
|
|
11
|
-
const fieldNames = Object.keys(methods.getValues());
|
|
12
|
-
if (fieldNames.length === 0)
|
|
13
|
-
return;
|
|
14
|
-
const currentIndex = focusedField
|
|
15
|
-
? fieldNames.indexOf(focusedField)
|
|
16
|
-
: -1;
|
|
17
|
-
let nextIndex = null;
|
|
18
|
-
if (evt.name === 'up') {
|
|
19
|
-
// Arrow up: go to previous field
|
|
20
|
-
nextIndex =
|
|
21
|
-
currentIndex > 0 ? currentIndex - 1 : fieldNames.length - 1;
|
|
22
|
-
}
|
|
23
|
-
else if (evt.name === 'down') {
|
|
24
|
-
// Arrow down: go to next field
|
|
25
|
-
nextIndex =
|
|
26
|
-
currentIndex < fieldNames.length - 1 ? currentIndex + 1 : 0;
|
|
27
|
-
}
|
|
28
|
-
if (nextIndex !== null) {
|
|
29
|
-
const nextFieldName = fieldNames[nextIndex];
|
|
30
|
-
if (nextFieldName) {
|
|
31
|
-
// Just update the focused field in context
|
|
32
|
-
setFocusedField(nextFieldName);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=use-form-handling.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-form-handling.js","sourceRoot":"","sources":["../../../src/components/form/use-form-handling.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,MAAM,UAAU,eAAe,CAAC,EAAE,OAAO,EAAwB;IAC7D,MAAM,OAAO,GAAG,cAAc,EAAE,CAAA;IAChC,MAAM,EAAE,YAAY,EAAE,eAAe,EAAE,GAAG,eAAe,EAAE,CAAA;IAE3D,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE;QAChB,2CAA2C;QAC3C,IAAI,CAAC,OAAO;YAAE,OAAM;QAEpB,MAAM,UAAU,GAAG,MAAM,CAAC,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aAAa,GACd,EAAE;IACD,aAAa,EAAE,MAAM,CAAA;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BhB"}
|
package/dist/dev-ui.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@opentui/react/jsx-runtime";
|
|
2
|
-
import fs from 'node:fs';
|
|
3
|
-
import path from 'node:path';
|
|
4
|
-
import { render } from '@opentui/react';
|
|
5
|
-
import { List, useStore } from '@termcast/cli';
|
|
6
|
-
import { Action, ActionPanel } from '@termcast/cli';
|
|
7
|
-
import { useNavigation } from '@termcast/cli/src/internal/navigation';
|
|
8
|
-
import { Providers } from '@termcast/cli/src/internal/providers';
|
|
9
|
-
import { showToast, Toast } from '@termcast/cli/src/toast';
|
|
10
|
-
import { Icon } from '@termcast/cli';
|
|
11
|
-
import { getCommandsWithFiles } from './package-json';
|
|
12
|
-
import { buildExtensionCommands } from './build';
|
|
13
|
-
function ExtensionCommandsList({ extensionPath, commands, }) {
|
|
14
|
-
const { push } = useNavigation();
|
|
15
|
-
const packageJson = getCommandsWithFiles({
|
|
16
|
-
packageJsonPath: path.join(extensionPath, 'package.json'),
|
|
17
|
-
}).packageJson;
|
|
18
|
-
const handleCommandSelect = async (command) => {
|
|
19
|
-
try {
|
|
20
|
-
if (!command.bundledPath) {
|
|
21
|
-
await showToast({
|
|
22
|
-
style: Toast.Style.Failure,
|
|
23
|
-
title: 'Command not built',
|
|
24
|
-
message: `Command ${command.name} was not built successfully`,
|
|
25
|
-
});
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const state = useStore.getState();
|
|
29
|
-
const devRebuildCount = state.devRebuildCount;
|
|
30
|
-
// Set the current command in state
|
|
31
|
-
useStore.setState({ currentCommandName: command.name });
|
|
32
|
-
const module = await import(`${command.bundledPath}?rebuild=${devRebuildCount}`);
|
|
33
|
-
const Component = module.default;
|
|
34
|
-
if (!Component) {
|
|
35
|
-
await showToast({
|
|
36
|
-
style: Toast.Style.Failure,
|
|
37
|
-
title: 'No default export',
|
|
38
|
-
message: `Command file ${command.name} has no default export`,
|
|
39
|
-
});
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
push(_jsx(Component, {}));
|
|
43
|
-
}
|
|
44
|
-
catch (error) {
|
|
45
|
-
await showToast({
|
|
46
|
-
style: Toast.Style.Failure,
|
|
47
|
-
title: 'Failed to load command',
|
|
48
|
-
message: error.message ? error.message : error,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return (_jsxs(List, { navigationTitle: packageJson.title || 'Extension Commands', searchBarPlaceholder: 'Search commands...', children: [_jsx(List.Section, { title: 'Commands', children: commands.map((command) => (_jsx(List.Item, { id: command.name, title: command.title, subtitle: command.description, icon: command.icon ? Icon[command.icon] : undefined, accessories: [
|
|
53
|
-
{ text: command.mode },
|
|
54
|
-
...(command.bundledPath
|
|
55
|
-
? []
|
|
56
|
-
: [
|
|
57
|
-
{
|
|
58
|
-
text: 'Not built',
|
|
59
|
-
tooltip: 'Command was not built successfully',
|
|
60
|
-
},
|
|
61
|
-
]),
|
|
62
|
-
], keywords: command.keywords, actions: _jsxs(ActionPanel, { children: [_jsx(Action, { title: 'Run Command', onAction: () => {
|
|
63
|
-
handleCommandSelect(command);
|
|
64
|
-
} }), _jsx(Action.CopyToClipboard, { content: command.filePath, title: 'Copy File Path' }), _jsx(Action.CopyToClipboard, { content: JSON.stringify(command, null, 2), title: 'Copy Command Info' })] }) }, command.name))) }), commands.length === 0 && (_jsx(List.Section, { title: 'No Commands', children: _jsx(List.Item, { title: 'No commands found', subtitle: 'Check your package.json for command definitions' }) }))] }));
|
|
65
|
-
}
|
|
66
|
-
export async function startDevMode({ extensionPath, }) {
|
|
67
|
-
const resolvedPath = path.resolve(extensionPath);
|
|
68
|
-
if (!fs.existsSync(resolvedPath)) {
|
|
69
|
-
throw new Error(`Extension path does not exist: ${resolvedPath}`);
|
|
70
|
-
}
|
|
71
|
-
const packageJsonPath = path.join(resolvedPath, 'package.json');
|
|
72
|
-
if (!fs.existsSync(packageJsonPath)) {
|
|
73
|
-
throw new Error(`No package.json found at: ${packageJsonPath}`);
|
|
74
|
-
}
|
|
75
|
-
// Parse the package.json to get extension metadata
|
|
76
|
-
const { packageJson } = getCommandsWithFiles({ packageJsonPath });
|
|
77
|
-
// Build and set initial devElement
|
|
78
|
-
const { commands } = await buildExtensionCommands({
|
|
79
|
-
extensionPath: resolvedPath,
|
|
80
|
-
});
|
|
81
|
-
// Reset state and set extension information
|
|
82
|
-
useStore.setState({
|
|
83
|
-
...useStore.getInitialState(),
|
|
84
|
-
extensionPath: resolvedPath,
|
|
85
|
-
extensionPackageJson: packageJson,
|
|
86
|
-
devElement: (_jsx(ExtensionCommandsList, { extensionPath: resolvedPath, commands: commands })),
|
|
87
|
-
devRebuildCount: 1,
|
|
88
|
-
});
|
|
89
|
-
function App() {
|
|
90
|
-
const devElement = useStore((state) => state.devElement);
|
|
91
|
-
const devRebuildCount = useStore((state) => state.devRebuildCount);
|
|
92
|
-
return _jsx(Providers, { children: devElement }, String(devRebuildCount));
|
|
93
|
-
}
|
|
94
|
-
await render(_jsx(App, {}));
|
|
95
|
-
}
|
|
96
|
-
export async function triggerRebuild({ extensionPath, }) {
|
|
97
|
-
try {
|
|
98
|
-
const { commands } = await buildExtensionCommands({ extensionPath });
|
|
99
|
-
// Re-parse package.json in case it changed
|
|
100
|
-
const packageJsonPath = path.join(extensionPath, 'package.json');
|
|
101
|
-
const { packageJson } = getCommandsWithFiles({ packageJsonPath });
|
|
102
|
-
// Update the devElement with new commands and increment rebuild count
|
|
103
|
-
const state = useStore.getState();
|
|
104
|
-
useStore.setState({
|
|
105
|
-
extensionPackageJson: packageJson,
|
|
106
|
-
devElement: (_jsx(ExtensionCommandsList, { extensionPath: extensionPath, commands: commands })),
|
|
107
|
-
devRebuildCount: state.devRebuildCount + 1,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
catch (error) {
|
|
111
|
-
await showToast({
|
|
112
|
-
style: Toast.Style.Failure,
|
|
113
|
-
title: 'Rebuild failed',
|
|
114
|
-
message: error.message,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=dev-ui.js.map
|
package/dist/dev-ui.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dev-ui.js","sourceRoot":"","sources":["../src/dev-ui.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,oBAAoB,EAAmB,MAAM,gBAAgB,CAAA;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAA;AAMhD,SAAS,qBAAqB,CAAC,EAC7B,aAAa,EACb,QAAQ,GAIT;IACC,MAAM,EAAE,IAAI,EAAE,GAAG,aAAa,EAAE,CAAA;IAChC,MAAM,WAAW,GAAG,oBAAoB,CAAC;QACvC,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC;KAC1D,CAAC,CAAC,WAAW,CAAA;IAEd,MAAM,mBAAmB,GAAG,KAAK,EAAE,OAAuB,EAAE,EAAE;QAC5D,IAAI,CAAC;YACH,IAAI,CAAC,OAAO,CAAC,WAAW,EAA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K,EAAE,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;QAElE,OAAO,KAAC,SAAS,cAAgC,UAAU,IAApC,MAAM,CAAC,eAAe,CAAC,CAA0B,CAAA;IAC1E,CAAC;IAED,MAAM,MAAM,CAAC,KAAC,GAAG,KAAG,CAAC,CAAA;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,EACnC,aAAa,GAGd;IACC,IAAI,CAAC;QACH,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,sBAAsB,CAAC,EAAE,aAAa,EAAE,CAAC,CAAA;QAEpE,2CAA2C;QAC3C,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;QAChE,MAAM,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,EAAE,eAAe,EAAE,CAAC,CAAA;QAEjE,sEAAsE;QACtE,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAA;QAEjC,QAAQ,CAAC,QAAQ,CAAC;YAChB,oBAAoB,EAAE,WAAW;YACjC,UAAU,EAAE,CACV,KAAC,qBAAqB,IACpB,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,GAClB,CACH;YACD,eAAe,EAAE,KAAK,CAAC,eAAe,GAAG,CAAC;SAC3C,CAAC,CAAA;IACJ,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,MAAM,SAAS,CAAC;YACd,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO;YAC1B,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
|
package/dist/environment.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Environment API - Provides access to environment information and context
|
|
3
|
-
*
|
|
4
|
-
* Raycast Docs: https://developers.raycast.com/api-reference/environment
|
|
5
|
-
*
|
|
6
|
-
* The environment object provides information about the command's runtime context,
|
|
7
|
-
* including theme settings, development mode, launch type, and paths. LaunchType enum
|
|
8
|
-
* indicates whether the command was triggered by user action or background process.
|
|
9
|
-
*
|
|
10
|
-
* Key features:
|
|
11
|
-
* - Access to appearance/theme (dark/light)
|
|
12
|
-
* - Extension and command metadata
|
|
13
|
-
* - Launch context (user-initiated vs background)
|
|
14
|
-
* - Support and assets paths for file storage
|
|
15
|
-
* - System integration (selected Finder items, selected text)
|
|
16
|
-
*/
|
|
17
|
-
export interface Environment {
|
|
18
|
-
appearance: 'dark' | 'light';
|
|
19
|
-
assetsPath: string;
|
|
20
|
-
commandMode: 'view' | 'no-view' | 'menu-bar';
|
|
21
|
-
commandName: string;
|
|
22
|
-
extensionName: string;
|
|
23
|
-
isDevelopment: boolean;
|
|
24
|
-
launchType: LaunchType;
|
|
25
|
-
ownerOrAuthorName: string;
|
|
26
|
-
raycastVersion: string;
|
|
27
|
-
supportPath: string;
|
|
28
|
-
textSize: 'medium' | 'large';
|
|
29
|
-
canAccess(api: any): boolean;
|
|
30
|
-
theme: 'dark' | 'light';
|
|
31
|
-
}
|
|
32
|
-
export declare enum LaunchType {
|
|
33
|
-
UserInitiated = "userInitiated",
|
|
34
|
-
Background = "background"
|
|
35
|
-
}
|
|
36
|
-
export interface LaunchProps<T extends Record<string, any> = Record<string, any>> {
|
|
37
|
-
arguments: T;
|
|
38
|
-
fallbackText?: string;
|
|
39
|
-
launchContext?: {
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
declare class EnvironmentImpl implements Environment {
|
|
44
|
-
constructor();
|
|
45
|
-
get appearance(): 'dark' | 'light';
|
|
46
|
-
get assetsPath(): string;
|
|
47
|
-
get commandMode(): 'view' | 'no-view' | 'menu-bar';
|
|
48
|
-
get commandName(): string;
|
|
49
|
-
get extensionName(): string;
|
|
50
|
-
get isDevelopment(): boolean;
|
|
51
|
-
get launchType(): LaunchType;
|
|
52
|
-
get ownerOrAuthorName(): string;
|
|
53
|
-
get raycastVersion(): string;
|
|
54
|
-
get supportPath(): string;
|
|
55
|
-
get textSize(): 'medium' | 'large';
|
|
56
|
-
get theme(): 'dark' | 'light';
|
|
57
|
-
canAccess(api: any): boolean;
|
|
58
|
-
}
|
|
59
|
-
export declare const environment: EnvironmentImpl;
|
|
60
|
-
export declare function getSelectedFinderItems(): Promise<string[]>;
|
|
61
|
-
export declare function getSelectedText(): Promise<string>;
|
|
62
|
-
export {};
|
|
63
|
-
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../src/environment.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAQH,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,GAAG,OAAO,CAAA;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAA;IAC5C,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,EAAE,UAAU,CAAA;IACtB,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAA;IAC5B,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAA;IAC5B,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CACxB;AAED,oBAAY,UAAU;IACpB,aAAa,kBAAkB;IAC/B,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,WAAW,CAC1B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAEnD,SAAS,EAAE,CAAC,CAAA;IACZ,YAAY,CAAC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