@visulima/tui 1.0.0-alpha.2 → 1.0.0-alpha.4
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/CHANGELOG.md +59 -0
- package/LICENSE.md +63 -9
- package/README.md +6 -6
- package/dist/core/index.js +3 -3
- package/dist/ink/canvas/braille.d.ts +22 -0
- package/dist/ink/canvas/buffer.d.ts +67 -0
- package/dist/ink/components/accordion.d.ts +52 -0
- package/dist/ink/components/animate-presence.d.ts +15 -0
- package/dist/ink/components/approval-prompt.d.ts +55 -0
- package/dist/ink/components/area-chart.d.ts +54 -0
- package/dist/ink/components/bar-chart.d.ts +57 -0
- package/dist/ink/components/blink-dot.d.ts +30 -0
- package/dist/ink/components/breadcrumb.d.ts +28 -0
- package/dist/ink/components/button.d.ts +38 -0
- package/dist/ink/components/calendar.d.ts +60 -0
- package/dist/ink/components/canvas.d.ts +38 -0
- package/dist/ink/components/card.d.ts +46 -0
- package/dist/ink/components/chart-utils.d.ts +54 -0
- package/dist/ink/components/checkbox.d.ts +39 -0
- package/dist/ink/components/collapsible.d.ts +43 -0
- package/dist/ink/components/command-block.d.ts +38 -0
- package/dist/ink/components/command-palette.d.ts +72 -0
- package/dist/ink/components/confirm-dialog.d.ts +63 -0
- package/dist/ink/components/content-switcher.d.ts +49 -0
- package/dist/ink/components/date-picker.d.ts +53 -0
- package/dist/ink/components/definition-list.d.ts +37 -0
- package/dist/ink/components/divider.d.ts +40 -0
- package/dist/ink/components/file-picker/{FilePicker.d.ts → file-picker.d.ts} +2 -19
- package/dist/ink/components/file-picker/types.d.ts +1 -4
- package/dist/ink/components/file-picker/use-file-system.d.ts +1 -1
- package/dist/ink/components/form.d.ts +74 -0
- package/dist/ink/components/gauge.d.ts +75 -0
- package/dist/ink/components/heading.d.ts +27 -0
- package/dist/ink/components/heatmap.d.ts +51 -0
- package/dist/ink/components/{Help.d.ts → help.d.ts} +4 -9
- package/dist/ink/components/histogram.d.ts +52 -0
- package/dist/ink/components/kbd.d.ts +27 -0
- package/dist/ink/components/line-chart.d.ts +94 -0
- package/dist/ink/components/loading-indicator.d.ts +24 -0
- package/dist/ink/components/masked-input.d.ts +41 -0
- package/dist/ink/components/menu.d.ts +70 -0
- package/dist/ink/components/message-bubble.d.ts +35 -0
- package/dist/ink/components/model-badge.d.ts +32 -0
- package/dist/ink/components/operation-tree.d.ts +46 -0
- package/dist/ink/components/option-list.d.ts +41 -0
- package/dist/ink/components/{Paginator.d.ts → paginator.d.ts} +4 -20
- package/dist/ink/components/paragraph.d.ts +31 -0
- package/dist/ink/components/placeholder.d.ts +47 -0
- package/dist/ink/components/{ProgressBar.d.ts → progress-bar.d.ts} +1 -1
- package/dist/ink/components/radio-group.d.ts +62 -0
- package/dist/ink/components/scatter-plot.d.ts +23 -0
- package/dist/ink/components/scroll/{ControlledScrollView.d.ts → controlled-scroll-view.d.ts} +1 -1
- package/dist/ink/components/scroll/index.d.ts +10 -10
- package/dist/ink/components/scroll/{ScrollBarBox.d.ts → scroll-bar-box.d.ts} +1 -1
- package/dist/ink/components/scroll/{ScrollBar.d.ts → scroll-bar.d.ts} +1 -1
- package/dist/ink/components/scroll/{ScrollList.d.ts → scroll-list.d.ts} +1 -1
- package/dist/ink/components/scroll/{ScrollView.d.ts → scroll-view.d.ts} +1 -1
- package/dist/ink/components/search-input.d.ts +46 -0
- package/dist/ink/components/{SelectInput.d.ts → select-input.d.ts} +2 -2
- package/dist/ink/components/shimmer-text.d.ts +39 -0
- package/dist/ink/components/sparkline.d.ts +30 -0
- package/dist/ink/components/{Spinner.d.ts → spinner.d.ts} +2 -4
- package/dist/ink/components/{StaticRender.d.ts → static-render.d.ts} +14 -2
- package/dist/ink/components/status-line.d.ts +30 -0
- package/dist/ink/components/stepper.d.ts +42 -0
- package/dist/ink/components/{Stopwatch.d.ts → stopwatch.d.ts} +5 -7
- package/dist/ink/components/streaming-text.d.ts +38 -0
- package/dist/ink/components/switch.d.ts +46 -0
- package/dist/ink/components/{Tabs.d.ts → tabs.d.ts} +1 -1
- package/dist/ink/components/tag.d.ts +30 -0
- package/dist/ink/components/{Timer.d.ts → timer.d.ts} +5 -7
- package/dist/ink/components/toast.d.ts +41 -0
- package/dist/ink/components/tooltip.d.ts +36 -0
- package/dist/ink/components/transition.d.ts +53 -0
- package/dist/ink/components/tree-view/theme.d.ts +2 -2
- package/dist/ink/cursor-helpers.d.ts +0 -3
- package/dist/ink/dom.d.ts +9 -8
- package/dist/ink/hooks/use-animation.d.ts +0 -2
- package/dist/ink/hooks/use-app.d.ts +1 -1
- package/dist/ink/hooks/use-focus-manager.d.ts +1 -1
- package/dist/ink/hooks/use-form.d.ts +70 -0
- package/dist/ink/hooks/use-hotkey.d.ts +37 -0
- package/dist/ink/hooks/use-interval.d.ts +25 -0
- package/dist/ink/hooks/use-key-bindings.d.ts +4 -6
- package/dist/ink/hooks/use-key-chord.d.ts +26 -0
- package/dist/ink/hooks/use-linked-scroll.d.ts +1 -1
- package/dist/ink/hooks/use-persistent-state.d.ts +56 -0
- package/dist/ink/hooks/use-stderr.d.ts +1 -1
- package/dist/ink/hooks/use-stdin.d.ts +1 -1
- package/dist/ink/hooks/use-stdout.d.ts +1 -1
- package/dist/ink/hooks/use-stopwatch.d.ts +1 -3
- package/dist/ink/hooks/use-timeout.d.ts +24 -0
- package/dist/ink/hooks/use-timer.d.ts +0 -2
- package/dist/ink/index.d.ts +228 -92
- package/dist/ink/index.js +132 -77
- package/dist/ink/ink.d.ts +7 -6
- package/dist/ink/mouse/constants.d.ts +5 -50
- package/dist/ink/mouse/index.d.ts +2 -2
- package/dist/ink/output.d.ts +2 -1
- package/dist/ink/styled-line.d.ts +10 -0
- package/dist/ink/write-synchronized.d.ts +2 -2
- package/dist/packem_shared/Accordion-BG-yfIkV.js +80 -0
- package/dist/packem_shared/{Alert-Dr3s_LD9.js → Alert-BLcwIW8V.js} +2 -2
- package/dist/packem_shared/AnimatePresence-D8nEOr_B.js +98 -0
- package/dist/packem_shared/ApprovalPrompt-BXdPros1.js +104 -0
- package/dist/packem_shared/AreaChart-CmTcxLum.js +116 -0
- package/dist/packem_shared/{Badge-Dk7EGGM6.js → Badge-CUfbXwAB.js} +1 -1
- package/dist/packem_shared/BarChart-DWRae67P.js +87 -0
- package/dist/packem_shared/{BigText-CjMdY63X.js → BigText-CVq2X7B5.js} +1 -1
- package/dist/packem_shared/BlinkDot-CrbHMR3L.js +11 -0
- package/dist/packem_shared/{Box-D_pSJ9Jp.js → Box-W1w_NGin.js} +4 -6
- package/dist/packem_shared/Breadcrumb-CPdNxVYs.js +26 -0
- package/dist/packem_shared/Button-CBmTbJ_D.js +57 -0
- package/dist/packem_shared/Calendar-C2Qxt-LA.js +139 -0
- package/dist/packem_shared/Canvas-COttmLPX.js +246 -0
- package/dist/packem_shared/Card-D3tGkNCm.js +24 -0
- package/dist/packem_shared/Checkbox-Dpy_4Lws.js +49 -0
- package/dist/packem_shared/{Code-DjQvPBD9.js → Code-CwzzbsLx.js} +3 -3
- package/dist/packem_shared/Collapsible-BMDrXf5C.js +45 -0
- package/dist/packem_shared/CommandBlock-jdOGJPjY.js +80 -0
- package/dist/packem_shared/CommandPalette-B5IfUQwi.js +146 -0
- package/dist/packem_shared/ConfirmDialog-5XJv3Cc4.js +67 -0
- package/dist/packem_shared/{ConfirmInput-85Y4kRQW.js → ConfirmInput-CxUS0XAA.js} +3 -3
- package/dist/packem_shared/{ConsoleOverlay-DBNa4vtj.js → ConsoleOverlay-BvnCEgjG.js} +2 -2
- package/dist/packem_shared/ContentSwitcher-BHFpO5Za.js +81 -0
- package/dist/packem_shared/ControlledScrollView-C2wOOlJO.js +5 -0
- package/dist/packem_shared/DatePicker-CPejKoqS.js +73 -0
- package/dist/packem_shared/DefinitionList-BAwr0l5J.js +18 -0
- package/dist/packem_shared/{DevTools-aMPIsaHx.js → DevTools-BdxRSkhL.js} +6 -4
- package/dist/packem_shared/{Dialog-DsSNAVgC.js → Dialog-S9r7Izff.js} +5 -5
- package/dist/packem_shared/{DiffView-hqaw-2S6.js → DiffView-BR4T6-Sj.js} +4 -4
- package/dist/packem_shared/Divider-DocXIqNn.js +30 -0
- package/dist/packem_shared/{FilePicker-DNwFxRhq.js → FilePicker-BZ55oF_n.js} +39 -32
- package/dist/packem_shared/FormField-BSG16cnA.js +29 -0
- package/dist/packem_shared/{Fullscreen-DrElAE1o.js → Fullscreen-DO7voOq5.js} +2 -2
- package/dist/packem_shared/Gauge-CKXUXxft.js +122 -0
- package/dist/packem_shared/{Gradient-Ql5P0GUd.js → Gradient-Dg0NezWc.js} +3 -3
- package/dist/packem_shared/Heading-BnR7McmP.js +29 -0
- package/dist/packem_shared/Heatmap-_jqISOU0.js +79 -0
- package/dist/packem_shared/{Help-6wanGG38.js → Help-0yZ_IcQg.js} +4 -11
- package/dist/packem_shared/Histogram-cgAjY5AJ.js +92 -0
- package/dist/packem_shared/{InputParser-BKHpWfvN.js → InputParser-BlsfeY9J.js} +8 -6
- package/dist/packem_shared/KEY-STOdi-nc.js +74 -0
- package/dist/packem_shared/Kbd-BNDXQgey.js +19 -0
- package/dist/packem_shared/{LayoutNode-Cjnsodiy.js → LayoutNode-DAkKg9TE.js} +5 -7
- package/dist/packem_shared/LineChart-ef3HF816.js +7 -0
- package/dist/packem_shared/{Link-COcKYfGT.js → Link-DZ2Tiq1m.js} +2 -2
- package/dist/packem_shared/LoadingIndicator-DzbLGfyJ.js +13 -0
- package/dist/packem_shared/{Markdown-y1ISztof.js → Markdown-33bpCUoe.js} +8 -8
- package/dist/packem_shared/MaskedInput-Ctr6v2dO.js +119 -0
- package/dist/packem_shared/Menu-CeKxhEix.js +112 -0
- package/dist/packem_shared/MessageBubble-BMoU8L2Q.js +26 -0
- package/dist/packem_shared/ModelBadge-CNIxPs7v.js +40 -0
- package/dist/packem_shared/{MouseProvider-Y9TSSEGl.js → MouseProvider-CekPbXCh.js} +3 -3
- package/dist/packem_shared/{MultiSelect-ChoLUcDI.js → MultiSelect-yz7-w0Zv.js} +4 -4
- package/dist/packem_shared/{NAMED_COLORS-a4QBvb5r.js → NAMED_COLORS-DcI3erCu.js} +79 -41
- package/dist/packem_shared/OperationTree-Dudx5o1o.js +67 -0
- package/dist/packem_shared/OptionList-CTyqQaZ1.js +24 -0
- package/dist/packem_shared/{OrderedList-Cp7pXr6m.js → OrderedList-VsvSmHUC.js} +2 -2
- package/dist/packem_shared/{Paginator-D1AuD-kj.js → Paginator-DmGogvEI.js} +44 -44
- package/dist/packem_shared/Paragraph-CNNhfepo.js +9 -0
- package/dist/packem_shared/Placeholder-DkM69Q8Z.js +29 -0
- package/dist/packem_shared/{ProgressBar-DOfpVagn.js → ProgressBar-B7cS4uQm.js} +2 -2
- package/dist/packem_shared/RadioGroup-B4F9PUyL.js +108 -0
- package/dist/packem_shared/{ResizeObserverEntry-Br4seLeQ.js → ResizeObserverEntry-Vr8GZ74x.js} +4 -4
- package/dist/packem_shared/ScatterPlot-CWOg4G5h.js +63 -0
- package/dist/packem_shared/{ScrollBar-EWAs2Uc7.js → ScrollBar-DFeWH43I.js} +2 -2
- package/dist/packem_shared/{ScrollBarBox-DTNNlh7R.js → ScrollBarBox-C7VL6Izd.js} +2 -2
- package/dist/packem_shared/{ScrollList-DCeIFL8M.js → ScrollList-DRcr_RrN.js} +2 -2
- package/dist/packem_shared/{ScrollView-v3MCNIyX.js → ScrollView-C6rdlGwU.js} +4 -4
- package/dist/packem_shared/SearchInput-cB8zFhSg.js +32 -0
- package/dist/packem_shared/{SelectInput-BN2TMyxp.js → SelectInput-WzZSqp72.js} +6 -6
- package/dist/packem_shared/{SelectInputIndicator-DkRMoH_b.js → SelectInputIndicator-DKeN6v5Z.js} +2 -2
- package/dist/packem_shared/{SelectInputItem-BF9LQgKu.js → SelectInputItem-CxFL3spM.js} +1 -1
- package/dist/packem_shared/ShimmerText-B2VbPUSB.js +34 -0
- package/dist/packem_shared/{Slider-BWD7xZX6.js → Slider-BOrNTOQe.js} +3 -3
- package/dist/packem_shared/{Spacer-Bs4ER-HK.js → Spacer-DhmXyTb8.js} +1 -1
- package/dist/packem_shared/Sparkline-BSbjPrwK.js +44 -0
- package/dist/packem_shared/Spinner-BcO5BCAa.js +1942 -0
- package/dist/packem_shared/StaticRender-C3XWvJdC.js +69 -0
- package/dist/packem_shared/StatusLine-DQNUstN9.js +22 -0
- package/dist/packem_shared/{StatusMessage-BtSYxzwb.js → StatusMessage-BYTL6Pl-.js} +2 -2
- package/dist/packem_shared/Stepper-CmUPRK3z.js +60 -0
- package/dist/packem_shared/Stopwatch-zqLQAxXC.js +21 -0
- package/dist/packem_shared/StreamingText-BmuoJtGu.js +38 -0
- package/dist/packem_shared/Switch-DcPdy8nm.js +59 -0
- package/dist/packem_shared/{Table-D-rSVlzb.js → Table-Bgxo87Df.js} +11 -5
- package/dist/packem_shared/{Tabs-hki-KRnx.js → Tabs-DubuHdYV.js} +30 -19
- package/dist/packem_shared/Tag-CCqM7Ee9.js +35 -0
- package/dist/packem_shared/{Text-DvAUdZcK.js → Text-CtUwV89_.js} +2 -2
- package/dist/packem_shared/{TextInput-C79WEQ5U.js → TextInput-C9r7zT0U.js} +3 -3
- package/dist/packem_shared/{Textarea-Dj06R6Zd.js → Textarea-CGmgt-Nl.js} +5 -5
- package/dist/packem_shared/Timer-D7ZZ0_wz.js +20 -0
- package/dist/packem_shared/Toast-DXSCXFPY.js +37 -0
- package/dist/packem_shared/Tooltip-SvVjj-2k.js +32 -0
- package/dist/packem_shared/{Transform-BHxY_dAM.js → Transform-Cfyva2wd.js} +1 -1
- package/dist/packem_shared/Transition-CbNfKhaj.js +108 -0
- package/dist/packem_shared/{TreeView-C2062dtj.js → TreeView-DGlZeSsK.js} +4 -4
- package/dist/packem_shared/{TuiApp-DfxOnXqi.js → TuiApp-DtdgNRWa.js} +4 -2
- package/dist/packem_shared/{TuiContext-CqEjMyXd.js → TuiContext-lXmJFd-x.js} +6 -3
- package/dist/packem_shared/{UnorderedList-DhnadWjX.js → UnorderedList-D8RPaEAW.js} +2 -2
- package/dist/packem_shared/{ansi-parser-0BdVTKho.js → ansi-parser-BOP8fNdT.js} +6 -4
- package/dist/packem_shared/braille-BoEWoH2I.js +93 -0
- package/dist/packem_shared/{comparePoints-CGMDnd3_.js → comparePoints-CAAlhiMS.js} +2 -2
- package/dist/packem_shared/{ControlledScrollView-BlOaxcsN.js → controlled-scroll-view-DJXfdWMm.js} +2 -2
- package/dist/packem_shared/{createInlineLoop-BxMmcq9D.js → createInlineLoop-Dnfm1ZSJ.js} +19 -13
- package/dist/packem_shared/createMemoryStorage-esFJ61La.js +115 -0
- package/dist/packem_shared/createScreen-Dh0sZlQ0.js +38 -0
- package/dist/packem_shared/{dom-DvzhsAez.js → dom-CrbpQgat.js} +17 -14
- package/dist/packem_shared/{getPathToRoot-a1wbwxfL.js → getPathToRoot-BbvlppLC.js} +2 -2
- package/dist/packem_shared/{getScrollHeight-BubfU_df.js → getScrollHeight-Cz3CDQN2.js} +5 -5
- package/dist/packem_shared/line-chart-VGU2l7pu.js +139 -0
- package/dist/packem_shared/{measure-element-Reza_yfC.js → measure-element-Bc6PEaIe.js} +26 -17
- package/dist/packem_shared/{measure-text-DItZYotK.js → measure-text-BdOhbOeh.js} +74 -7
- package/dist/packem_shared/{measureElement-CTgFCmKd.js → measureElement-DTELRaij.js} +2 -2
- package/dist/packem_shared/parseSgrMouse-4hpBJBsW.js +1 -0
- package/dist/packem_shared/{processLayout-BQ9kXfd3.js → processLayout-B0Coz0Ua.js} +1 -1
- package/dist/packem_shared/{reconciler-gfmqURLy.js → reconciler-Dd7Z0A97.js} +21 -5
- package/dist/packem_shared/{reconciler-BXf6miSS.js → reconciler-mzMwSOft.js} +23 -13
- package/dist/packem_shared/{render-BAwdjfki.js → render-Bm9Oa1sG.js} +72 -79
- package/dist/packem_shared/{render-Bpjhf0lD.js → render-CjlKdg4m.js} +15 -11
- package/dist/packem_shared/{renderToString-ClIaXgrC.js → renderToString-CWYS1ZXE.js} +4 -4
- package/dist/packem_shared/{renderToString-Cfg55DRD.js → renderToString-DB3ILWFm.js} +4 -4
- package/dist/packem_shared/{renderTreeToBuffer-D3mo7M7m.js → renderTreeToBuffer-CDDTGyZn.js} +8 -5
- package/dist/packem_shared/{renderer-B3wROkeg.js → renderer-GE9OLNNM.js} +47 -41
- package/dist/packem_shared/{setEnableStyledLineCache-BpskngSJ.js → setEnableStyledLineCache-D5f4favX.js} +1 -1
- package/dist/packem_shared/{text-width-DhuarWcB.js → text-width-Db-AxMea.js} +2 -1
- package/dist/packem_shared/{token-to-elements-BRFl_rzw.js → token-to-elements-CK4s8MJd.js} +2 -2
- package/dist/packem_shared/{useAnimation-kj31sA-T.js → useAnimation-DV22qxiJ.js} +2 -2
- package/dist/packem_shared/{useApp-DPQlRzi5.js → useApp-Cbi788rV.js} +1 -1
- package/dist/packem_shared/{useBoxMetrics-rBjKc-g4.js → useBoxMetrics-_5icypir.js} +2 -2
- package/dist/packem_shared/{useClipboard-B_9-adw1.js → useClipboard-MNj6MNR-.js} +1 -1
- package/dist/packem_shared/{useCursor-BIJzc8k9.js → useCursor-DS6LjIgv.js} +1 -1
- package/dist/packem_shared/{useFocus-CNl5QHHf.js → useFocus-DLoGQJd9.js} +2 -2
- package/dist/packem_shared/{useFocusManager-BPYaUuKQ.js → useFocusManager-UeZWtnNc.js} +1 -1
- package/dist/packem_shared/useForm-sQENbEuv.js +88 -0
- package/dist/packem_shared/useHotkey-D9giUX3q.js +112 -0
- package/dist/packem_shared/{useInput-Cfp5zB2s.js → useInput-DKZbqMRc.js} +2 -2
- package/dist/packem_shared/useInterval-CSXM8c2I.js +32 -0
- package/dist/packem_shared/{useIsScreenReaderEnabled-CnGKCe0f.js → useIsScreenReaderEnabled-BeoVqo1R.js} +1 -1
- package/dist/packem_shared/{useKeyBindings-B78l1E1n.js → useKeyBindings-S4fSIEAk.js} +2 -2
- package/dist/packem_shared/useKeyChord-BmXGNuEO.js +114 -0
- package/dist/packem_shared/{usePaste-Ct8J4AGR.js → usePaste-png73gvT.js} +2 -2
- package/dist/packem_shared/{useScrollInput-D3CpBq_a.js → useScrollInput-DfzRGQFe.js} +2 -2
- package/dist/packem_shared/{useStderr-CAOVUh4E.js → useStderr-BSWerMZ7.js} +1 -1
- package/dist/packem_shared/{useStdin-X-O0kd-n.js → useStdin-Rf0zPzVA.js} +1 -1
- package/dist/packem_shared/{useStdout-DyF6DSH0.js → useStdout-B5yRcg9N.js} +1 -1
- package/dist/packem_shared/{useStopwatch-qC4Beai4.js → useStopwatch-C__Zu6hd.js} +2 -2
- package/dist/packem_shared/{useTerminalPalette-BaWO2c4Q.js → useTerminalPalette-CtFG2JTq.js} +2 -2
- package/dist/packem_shared/{useTextSelection-mXtxgsPK.js → useTextSelection-ChrYZXsn.js} +2 -2
- package/dist/packem_shared/useTimeout-DuCqgWPX.js +34 -0
- package/dist/packem_shared/{useTimer-CPQ7j827.js → useTimer-DnBtbhB5.js} +1 -1
- package/dist/packem_shared/{useTreeView-BT57P3Kx.js → useTreeView-mkN5Di7w.js} +1 -1
- package/dist/packem_shared/{useWindowSize-ugEmGZJm.js → useWindowSize-D3UU41mv.js} +1 -1
- package/dist/packem_shared/waitFor-Cv9M2jKA.js +39 -0
- package/dist/packem_shared/{wrapOrTruncateStyledLine-DN3Nogoc.js → wrapOrTruncateStyledLine-49Mne3t3.js} +1 -1
- package/dist/react/index.js +7 -7
- package/dist/react/layout.d.ts +0 -2
- package/dist/testing/index.d.ts +4 -4
- package/dist/testing/index.js +6 -114
- package/dist/testing/wait-for.d.ts +0 -1
- package/index.js +691 -539
- package/package.json +17 -17
- package/dist/ink/components/file-picker/index.d.ts +0 -3
- package/dist/ink/components/tree-view/index.d.ts +0 -11
- package/dist/packem_shared/ControlledScrollView-DfAhcufF.js +0 -5
- package/dist/packem_shared/Spinner-BuI-kN4p.js +0 -1799
- package/dist/packem_shared/StaticRender-tYwH6QXl.js +0 -33
- package/dist/packem_shared/Stopwatch-DjtTCyHn.js +0 -23
- package/dist/packem_shared/Timer-wi9zuh4n.js +0 -22
- package/dist/packem_shared/parseSgrMouse-BHVBPP9G.js +0 -1
- /package/dist/ink/components/{AccessibilityContext.d.ts → accessibility-context.d.ts} +0 -0
- /package/dist/ink/components/{Alert.d.ts → alert.d.ts} +0 -0
- /package/dist/ink/components/{AnimationContext.d.ts → animation-context.d.ts} +0 -0
- /package/dist/ink/components/{AppContext.d.ts → app-context.d.ts} +0 -0
- /package/dist/ink/components/{App.d.ts → app.d.ts} +0 -0
- /package/dist/ink/components/{BackgroundContext.d.ts → background-context.d.ts} +0 -0
- /package/dist/ink/components/{Badge.d.ts → badge.d.ts} +0 -0
- /package/dist/ink/components/{BigText.d.ts → big-text.d.ts} +0 -0
- /package/dist/ink/components/{Box.d.ts → box.d.ts} +0 -0
- /package/dist/ink/components/{Code.d.ts → code.d.ts} +0 -0
- /package/dist/ink/components/{ConfirmInput.d.ts → confirm-input.d.ts} +0 -0
- /package/dist/ink/components/{ConsoleOverlay.d.ts → console-overlay.d.ts} +0 -0
- /package/dist/ink/components/{CursorContext.d.ts → cursor-context.d.ts} +0 -0
- /package/dist/ink/components/{Cursor.d.ts → cursor.d.ts} +0 -0
- /package/dist/ink/components/{Dialog.d.ts → dialog.d.ts} +0 -0
- /package/dist/ink/components/{DiffView.d.ts → diff-view.d.ts} +0 -0
- /package/dist/ink/components/{ErrorBoundary.d.ts → error-boundary.d.ts} +0 -0
- /package/dist/ink/components/{ErrorOverview.d.ts → error-overview.d.ts} +0 -0
- /package/dist/ink/components/{FocusContext.d.ts → focus-context.d.ts} +0 -0
- /package/dist/ink/components/{Gradient.d.ts → gradient.d.ts} +0 -0
- /package/dist/ink/components/{Link.d.ts → link.d.ts} +0 -0
- /package/dist/ink/components/{Markdown.d.ts → markdown.d.ts} +0 -0
- /package/dist/ink/components/{MultiSelect.d.ts → multi-select.d.ts} +0 -0
- /package/dist/ink/components/{Newline.d.ts → newline.d.ts} +0 -0
- /package/dist/ink/components/{OrderedList.d.ts → ordered-list.d.ts} +0 -0
- /package/dist/ink/components/{SelectInputIndicator.d.ts → select-input-indicator.d.ts} +0 -0
- /package/dist/ink/components/{SelectInputItem.d.ts → select-input-item.d.ts} +0 -0
- /package/dist/ink/components/{Slider.d.ts → slider.d.ts} +0 -0
- /package/dist/ink/components/{Spacer.d.ts → spacer.d.ts} +0 -0
- /package/dist/ink/components/{Static.d.ts → static.d.ts} +0 -0
- /package/dist/ink/components/{StatusMessage.d.ts → status-message.d.ts} +0 -0
- /package/dist/ink/components/{StderrContext.d.ts → stderr-context.d.ts} +0 -0
- /package/dist/ink/components/{StdinContext.d.ts → stdin-context.d.ts} +0 -0
- /package/dist/ink/components/{StdoutContext.d.ts → stdout-context.d.ts} +0 -0
- /package/dist/ink/components/{Tab.d.ts → tab.d.ts} +0 -0
- /package/dist/ink/components/{Table.d.ts → table.d.ts} +0 -0
- /package/dist/ink/components/{TextInput.d.ts → text-input.d.ts} +0 -0
- /package/dist/ink/components/{Text.d.ts → text.d.ts} +0 -0
- /package/dist/ink/components/{Textarea.d.ts → textarea.d.ts} +0 -0
- /package/dist/ink/components/{Transform.d.ts → transform.d.ts} +0 -0
- /package/dist/ink/components/tree-view/{TreeViewNode.d.ts → tree-view-node.d.ts} +0 -0
- /package/dist/ink/components/tree-view/{TreeView.d.ts → tree-view.d.ts} +0 -0
- /package/dist/ink/components/{UnorderedList.d.ts → unordered-list.d.ts} +0 -0
- /package/dist/ink/mouse/{Fullscreen.d.ts → fullscreen.d.ts} +0 -0
- /package/dist/ink/mouse/{MouseProvider.d.ts → mouse-provider.d.ts} +0 -0
- /package/dist/packem_shared/{AccessibilityContext-BLelHhNU.js → accessibility-context-BLelHhNU.js} +0 -0
- /package/dist/packem_shared/{AnimationContext-BcJg8Jr6.js → animation-context-BcJg8Jr6.js} +0 -0
- /package/dist/packem_shared/{AppContext-CP0U6H7O.js → app-context-CP0U6H7O.js} +0 -0
- /package/dist/packem_shared/{BackgroundContext-BAUaxfOb.js → background-context-BAUaxfOb.js} +0 -0
- /package/dist/packem_shared/{CursorContext-JxRzlqAx.js → cursor-context-JxRzlqAx.js} +0 -0
- /package/dist/packem_shared/{FocusContext-CWkYtgcm.js → focus-context-CWkYtgcm.js} +0 -0
- /package/dist/packem_shared/{StderrContext-Bj4Mf7v7.js → stderr-context-Bj4Mf7v7.js} +0 -0
- /package/dist/packem_shared/{StdinContext-Bq_GNJ3z.js → stdin-context-Bq_GNJ3z.js} +0 -0
- /package/dist/packem_shared/{StdoutContext-CgjWeCdO.js → stdout-context-CgjWeCdO.js} +0 -0
package/dist/ink/index.js
CHANGED
|
@@ -1,100 +1,155 @@
|
|
|
1
1
|
export { clearOsc52, isOsc52Supported, writeOsc52 } from '../packem_shared/isOsc52Supported-G0k4sXJx.js';
|
|
2
2
|
export { COLOR_BLINDNESS_COMPENSATION, COLOR_BLINDNESS_SIMULATION, IDENTITY_MATRIX, applyColorMatrix, hexToRgb, rgbToHex, transformHexColor } from '../packem_shared/COLOR_BLINDNESS_SIMULATION-BsMy5Ewl.js';
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
3
|
+
export { default as Accordion } from '../packem_shared/Accordion-BG-yfIkV.js';
|
|
4
|
+
export { default as Alert } from '../packem_shared/Alert-BLcwIW8V.js';
|
|
5
|
+
export { default as AnimatePresence } from '../packem_shared/AnimatePresence-D8nEOr_B.js';
|
|
6
|
+
export { default as ApprovalPrompt } from '../packem_shared/ApprovalPrompt-BXdPros1.js';
|
|
7
|
+
export { default as AreaChart } from '../packem_shared/AreaChart-CmTcxLum.js';
|
|
8
|
+
export { default as Badge } from '../packem_shared/Badge-CUfbXwAB.js';
|
|
9
|
+
export { default as BarChart } from '../packem_shared/BarChart-DWRae67P.js';
|
|
10
|
+
export { default as BigText } from '../packem_shared/BigText-CVq2X7B5.js';
|
|
11
|
+
export { default as BlinkDot } from '../packem_shared/BlinkDot-CrbHMR3L.js';
|
|
12
|
+
export { default as Box } from '../packem_shared/Box-W1w_NGin.js';
|
|
13
|
+
export { default as Breadcrumb } from '../packem_shared/Breadcrumb-CPdNxVYs.js';
|
|
14
|
+
export { default as Button } from '../packem_shared/Button-CBmTbJ_D.js';
|
|
15
|
+
export { default as Calendar } from '../packem_shared/Calendar-C2Qxt-LA.js';
|
|
16
|
+
export { default as Canvas } from '../packem_shared/Canvas-COttmLPX.js';
|
|
17
|
+
export { default as Card } from '../packem_shared/Card-D3tGkNCm.js';
|
|
18
|
+
export { default as Checkbox } from '../packem_shared/Checkbox-Dpy_4Lws.js';
|
|
19
|
+
export { default as Code } from '../packem_shared/Code-CwzzbsLx.js';
|
|
20
|
+
export { default as Collapsible } from '../packem_shared/Collapsible-BMDrXf5C.js';
|
|
21
|
+
export { default as CommandBlock } from '../packem_shared/CommandBlock-jdOGJPjY.js';
|
|
22
|
+
export { default as CommandPalette } from '../packem_shared/CommandPalette-B5IfUQwi.js';
|
|
23
|
+
export { default as ConfirmDialog } from '../packem_shared/ConfirmDialog-5XJv3Cc4.js';
|
|
24
|
+
export { default as ConfirmInput } from '../packem_shared/ConfirmInput-CxUS0XAA.js';
|
|
25
|
+
export { default as ConsoleOverlay } from '../packem_shared/ConsoleOverlay-BvnCEgjG.js';
|
|
26
|
+
export { default as ContentSwitcher } from '../packem_shared/ContentSwitcher-BHFpO5Za.js';
|
|
10
27
|
export { default as Cursor } from '../packem_shared/Cursor-DiW7YoSK.js';
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
17
|
-
export { default as
|
|
28
|
+
export { default as DatePicker } from '../packem_shared/DatePicker-CPejKoqS.js';
|
|
29
|
+
export { default as DefinitionList } from '../packem_shared/DefinitionList-BAwr0l5J.js';
|
|
30
|
+
export { default as Dialog } from '../packem_shared/Dialog-S9r7Izff.js';
|
|
31
|
+
export { default as DiffView } from '../packem_shared/DiffView-BR4T6-Sj.js';
|
|
32
|
+
export { default as Divider } from '../packem_shared/Divider-DocXIqNn.js';
|
|
33
|
+
export { default as FilePicker } from '../packem_shared/FilePicker-BZ55oF_n.js';
|
|
34
|
+
export { default as Form, FormField } from '../packem_shared/FormField-BSG16cnA.js';
|
|
35
|
+
export { default as Gauge } from '../packem_shared/Gauge-CKXUXxft.js';
|
|
36
|
+
export { default as Gradient } from '../packem_shared/Gradient-Dg0NezWc.js';
|
|
37
|
+
export { default as Heading } from '../packem_shared/Heading-BnR7McmP.js';
|
|
38
|
+
export { default as Heatmap } from '../packem_shared/Heatmap-_jqISOU0.js';
|
|
39
|
+
export { default as Help } from '../packem_shared/Help-0yZ_IcQg.js';
|
|
40
|
+
export { default as Histogram } from '../packem_shared/Histogram-cgAjY5AJ.js';
|
|
41
|
+
export { default as Kbd } from '../packem_shared/Kbd-BNDXQgey.js';
|
|
42
|
+
export { L as LineChart } from '../packem_shared/line-chart-VGU2l7pu.js';
|
|
43
|
+
export { default as Link } from '../packem_shared/Link-DZ2Tiq1m.js';
|
|
44
|
+
export { default as LoadingIndicator } from '../packem_shared/LoadingIndicator-DzbLGfyJ.js';
|
|
45
|
+
export { default as Markdown } from '../packem_shared/Markdown-33bpCUoe.js';
|
|
46
|
+
export { default as MaskedInput } from '../packem_shared/MaskedInput-Ctr6v2dO.js';
|
|
47
|
+
export { default as Menu } from '../packem_shared/Menu-CeKxhEix.js';
|
|
48
|
+
export { default as MessageBubble } from '../packem_shared/MessageBubble-BMoU8L2Q.js';
|
|
49
|
+
export { default as ModelBadge } from '../packem_shared/ModelBadge-CNIxPs7v.js';
|
|
50
|
+
export { default as MultiSelect } from '../packem_shared/MultiSelect-yz7-w0Zv.js';
|
|
18
51
|
export { default as Newline } from '../packem_shared/Newline-DBtYEg8x.js';
|
|
19
|
-
export { default as
|
|
20
|
-
export { default as
|
|
21
|
-
export { default as
|
|
22
|
-
export { default as
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
52
|
+
export { default as OperationTree } from '../packem_shared/OperationTree-Dudx5o1o.js';
|
|
53
|
+
export { default as OptionList } from '../packem_shared/OptionList-CTyqQaZ1.js';
|
|
54
|
+
export { default as OrderedList } from '../packem_shared/OrderedList-VsvSmHUC.js';
|
|
55
|
+
export { default as Paginator } from '../packem_shared/Paginator-DmGogvEI.js';
|
|
56
|
+
export { default as Paragraph } from '../packem_shared/Paragraph-CNNhfepo.js';
|
|
57
|
+
export { default as Placeholder } from '../packem_shared/Placeholder-DkM69Q8Z.js';
|
|
58
|
+
export { default as ProgressBar } from '../packem_shared/ProgressBar-B7cS4uQm.js';
|
|
59
|
+
export { default as RadioGroup } from '../packem_shared/RadioGroup-B4F9PUyL.js';
|
|
60
|
+
export { default as ScatterPlot } from '../packem_shared/ScatterPlot-CWOg4G5h.js';
|
|
61
|
+
export { C as ControlledScrollView } from '../packem_shared/controlled-scroll-view-DJXfdWMm.js';
|
|
62
|
+
export { ScrollBar } from '../packem_shared/ScrollBar-DFeWH43I.js';
|
|
63
|
+
export { ScrollBarBox } from '../packem_shared/ScrollBarBox-C7VL6Izd.js';
|
|
64
|
+
export { ScrollList } from '../packem_shared/ScrollList-DRcr_RrN.js';
|
|
65
|
+
export { ScrollView } from '../packem_shared/ScrollView-C6rdlGwU.js';
|
|
66
|
+
export { default as SearchInput } from '../packem_shared/SearchInput-cB8zFhSg.js';
|
|
67
|
+
export { default as SelectInput } from '../packem_shared/SelectInput-WzZSqp72.js';
|
|
68
|
+
export { default as SelectInputIndicator } from '../packem_shared/SelectInputIndicator-DKeN6v5Z.js';
|
|
69
|
+
export { default as SelectInputItem } from '../packem_shared/SelectInputItem-CxFL3spM.js';
|
|
70
|
+
export { default as ShimmerText } from '../packem_shared/ShimmerText-B2VbPUSB.js';
|
|
71
|
+
export { default as Slider } from '../packem_shared/Slider-BOrNTOQe.js';
|
|
72
|
+
export { default as Spacer } from '../packem_shared/Spacer-DhmXyTb8.js';
|
|
73
|
+
export { default as Sparkline } from '../packem_shared/Sparkline-BSbjPrwK.js';
|
|
74
|
+
export { default as Spinner } from '../packem_shared/Spinner-BcO5BCAa.js';
|
|
28
75
|
export { default as Static } from '../packem_shared/Static-DpTd6Eed.js';
|
|
29
|
-
export { default as StaticRender } from '../packem_shared/StaticRender-
|
|
30
|
-
export { default as
|
|
31
|
-
export { default as
|
|
76
|
+
export { default as StaticRender } from '../packem_shared/StaticRender-C3XWvJdC.js';
|
|
77
|
+
export { default as StatusLine } from '../packem_shared/StatusLine-DQNUstN9.js';
|
|
78
|
+
export { default as StatusMessage } from '../packem_shared/StatusMessage-BYTL6Pl-.js';
|
|
79
|
+
export { default as Stepper } from '../packem_shared/Stepper-CmUPRK3z.js';
|
|
80
|
+
export { default as Stopwatch } from '../packem_shared/Stopwatch-zqLQAxXC.js';
|
|
81
|
+
export { default as StreamingText } from '../packem_shared/StreamingText-BmuoJtGu.js';
|
|
82
|
+
export { default as Switch } from '../packem_shared/Switch-DcPdy8nm.js';
|
|
32
83
|
export { default as Tab } from '../packem_shared/Tab-C6r5q4hR.js';
|
|
33
|
-
export { default as Table } from '../packem_shared/Table-
|
|
34
|
-
export { default as Tabs } from '../packem_shared/Tabs-
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
37
|
-
export { default as
|
|
38
|
-
export { default as
|
|
39
|
-
export { default as
|
|
40
|
-
export { default as
|
|
41
|
-
export {
|
|
42
|
-
export { default as
|
|
43
|
-
export { default as
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
84
|
+
export { default as Table } from '../packem_shared/Table-Bgxo87Df.js';
|
|
85
|
+
export { default as Tabs } from '../packem_shared/Tabs-DubuHdYV.js';
|
|
86
|
+
export { default as Tag } from '../packem_shared/Tag-CCqM7Ee9.js';
|
|
87
|
+
export { default as Text } from '../packem_shared/Text-CtUwV89_.js';
|
|
88
|
+
export { default as TextInput } from '../packem_shared/TextInput-C9r7zT0U.js';
|
|
89
|
+
export { default as Textarea } from '../packem_shared/Textarea-CGmgt-Nl.js';
|
|
90
|
+
export { default as Timer } from '../packem_shared/Timer-D7ZZ0_wz.js';
|
|
91
|
+
export { default as Toast } from '../packem_shared/Toast-DXSCXFPY.js';
|
|
92
|
+
export { default as Tooltip } from '../packem_shared/Tooltip-SvVjj-2k.js';
|
|
93
|
+
export { default as Transform } from '../packem_shared/Transform-Cfyva2wd.js';
|
|
94
|
+
export { default as Transition } from '../packem_shared/Transition-CbNfKhaj.js';
|
|
95
|
+
export { theme as treeViewTheme } from '../packem_shared/treeViewTheme-BpSw9TMf.js';
|
|
96
|
+
export { TreeNodeMap } from '../packem_shared/TreeNodeMap-CtJUvBnd.js';
|
|
97
|
+
export { TreeView } from '../packem_shared/TreeView-DGlZeSsK.js';
|
|
98
|
+
export { useTreeView } from '../packem_shared/useTreeView-mkN5Di7w.js';
|
|
99
|
+
export { useTreeViewState } from '../packem_shared/useTreeViewState-BpS_KZ-K.js';
|
|
100
|
+
export { default as UnorderedList } from '../packem_shared/UnorderedList-D8RPaEAW.js';
|
|
101
|
+
export { g as getPathToRoot, i as isNodeSelectable } from '../packem_shared/dom-CrbpQgat.js';
|
|
102
|
+
export { default as useAnimation } from '../packem_shared/useAnimation-DV22qxiJ.js';
|
|
103
|
+
export { default as useApp } from '../packem_shared/useApp-Cbi788rV.js';
|
|
104
|
+
export { default as useBoxMetrics } from '../packem_shared/useBoxMetrics-_5icypir.js';
|
|
105
|
+
export { default as useClipboard } from '../packem_shared/useClipboard-MNj6MNR-.js';
|
|
46
106
|
export { default as useColorBlindness } from '../packem_shared/useColorBlindness-D_sTIhcb.js';
|
|
47
107
|
export { default as useConsoleCapture } from '../packem_shared/useConsoleCapture-Dvt7G1W1.js';
|
|
48
|
-
export { default as useCursor } from '../packem_shared/useCursor-
|
|
49
|
-
export { default as useFocus } from '../packem_shared/useFocus-
|
|
50
|
-
export { default as useFocusManager } from '../packem_shared/useFocusManager-
|
|
51
|
-
export { default as
|
|
52
|
-
export { default as
|
|
53
|
-
export { default as
|
|
108
|
+
export { default as useCursor } from '../packem_shared/useCursor-DS6LjIgv.js';
|
|
109
|
+
export { default as useFocus } from '../packem_shared/useFocus-DLoGQJd9.js';
|
|
110
|
+
export { default as useFocusManager } from '../packem_shared/useFocusManager-UeZWtnNc.js';
|
|
111
|
+
export { default as useForm } from '../packem_shared/useForm-sQENbEuv.js';
|
|
112
|
+
export { default as useHotkey } from '../packem_shared/useHotkey-D9giUX3q.js';
|
|
113
|
+
export { default as useInput } from '../packem_shared/useInput-DKZbqMRc.js';
|
|
114
|
+
export { default as useInterval } from '../packem_shared/useInterval-CSXM8c2I.js';
|
|
115
|
+
export { default as useIsScreenReaderEnabled } from '../packem_shared/useIsScreenReaderEnabled-BeoVqo1R.js';
|
|
116
|
+
export { default as useKeyBindings } from '../packem_shared/useKeyBindings-S4fSIEAk.js';
|
|
117
|
+
export { default as useKeyChord } from '../packem_shared/useKeyChord-BmXGNuEO.js';
|
|
54
118
|
export { default as createLinkedScrollGroup } from '../packem_shared/createLinkedScrollGroup-Djw4Ceo0.js';
|
|
55
|
-
export { default as usePaste } from '../packem_shared/usePaste-
|
|
119
|
+
export { default as usePaste } from '../packem_shared/usePaste-png73gvT.js';
|
|
120
|
+
export { createFileStorage, createMemoryStorage, default as usePersistentState } from '../packem_shared/createMemoryStorage-esFJ61La.js';
|
|
56
121
|
export { default as useScrollAcceleration } from '../packem_shared/useScrollAcceleration-R9LfrPVG.js';
|
|
57
|
-
export { default as useScrollInput } from '../packem_shared/useScrollInput-
|
|
58
|
-
export { default as
|
|
59
|
-
export { default as
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as useTerminalPalette } from '../packem_shared/useTerminalPalette-BaWO2c4Q.js';
|
|
122
|
+
export { default as useScrollInput } from '../packem_shared/useScrollInput-DfzRGQFe.js';
|
|
123
|
+
export { default as useStderr } from '../packem_shared/useStderr-BSWerMZ7.js';
|
|
124
|
+
export { default as useStdin } from '../packem_shared/useStdin-Rf0zPzVA.js';
|
|
125
|
+
export { default as useStdout } from '../packem_shared/useStdout-B5yRcg9N.js';
|
|
126
|
+
export { default as useStopwatch } from '../packem_shared/useStopwatch-C__Zu6hd.js';
|
|
127
|
+
export { default as useTerminalPalette } from '../packem_shared/useTerminalPalette-CtFG2JTq.js';
|
|
64
128
|
export { default as useTextBuffer } from '../packem_shared/useTextBuffer-C8fEe9Ly.js';
|
|
65
|
-
export { default as useTextSelection } from '../packem_shared/useTextSelection-
|
|
66
|
-
export { default as
|
|
129
|
+
export { default as useTextSelection } from '../packem_shared/useTextSelection-ChrYZXsn.js';
|
|
130
|
+
export { default as useTimeout } from '../packem_shared/useTimeout-DuCqgWPX.js';
|
|
131
|
+
export { default as useTimer } from '../packem_shared/useTimer-DnBtbhB5.js';
|
|
132
|
+
export { default as useWindowSize } from '../packem_shared/useWindowSize-D3UU41mv.js';
|
|
67
133
|
export { IMECompositionBuffer, isIMEInput } from '../packem_shared/IMECompositionBuffer-Dl3S0KnF.js';
|
|
68
134
|
export { kittyFlags, kittyModifiers } from '../packem_shared/kittyFlags-bNNf_9kX.js';
|
|
69
|
-
export { c as calculateScrollbarLayout, a as calculateScrollbarThumb, b as collectSortedFragments, g as getAddedScrollHeight, d as getBoundingBox, e as getHorizontalScrollbarBoundingBox, f as getInnerHeight, h as getInnerWidth, i as getRelativeLeft, j as getRelativeTop, k as getText, l as getVerticalScrollbarBoundingBox, m as measureElement, p as processLayout } from '../packem_shared/measure-element-
|
|
70
|
-
export { c as clearStringWidthCache, a as clearStyledLineCache, i as inkCharacterWidth, s as setEnableStyledLineCache, b as setStringWidthFunction, t as toStyledLine } from '../packem_shared/measure-text-
|
|
71
|
-
export { default as render } from '../packem_shared/render-
|
|
72
|
-
export { default as renderToString } from '../packem_shared/renderToString-
|
|
73
|
-
export { default as ResizeObserver, ResizeObserverEntry } from '../packem_shared/ResizeObserverEntry-
|
|
74
|
-
export { calculateScroll, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth } from '../packem_shared/getScrollHeight-
|
|
75
|
-
export { Range, Selection, applySelectionToStyledLine, comparePoints } from '../packem_shared/comparePoints-
|
|
135
|
+
export { c as calculateScrollbarLayout, a as calculateScrollbarThumb, b as collectSortedFragments, g as getAddedScrollHeight, d as getBoundingBox, e as getHorizontalScrollbarBoundingBox, f as getInnerHeight, h as getInnerWidth, i as getRelativeLeft, j as getRelativeTop, k as getText, l as getVerticalScrollbarBoundingBox, m as measureElement, p as processLayout } from '../packem_shared/measure-element-Bc6PEaIe.js';
|
|
136
|
+
export { c as clearStringWidthCache, a as clearStyledLineCache, i as inkCharacterWidth, s as setEnableStyledLineCache, b as setStringWidthFunction, t as toStyledLine } from '../packem_shared/measure-text-BdOhbOeh.js';
|
|
137
|
+
export { default as render } from '../packem_shared/render-Bm9Oa1sG.js';
|
|
138
|
+
export { default as renderToString } from '../packem_shared/renderToString-CWYS1ZXE.js';
|
|
139
|
+
export { default as ResizeObserver, ResizeObserverEntry } from '../packem_shared/ResizeObserverEntry-Vr8GZ74x.js';
|
|
140
|
+
export { calculateScroll, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth } from '../packem_shared/getScrollHeight-Cz3CDQN2.js';
|
|
141
|
+
export { Range, Selection, applySelectionToStyledLine, comparePoints } from '../packem_shared/comparePoints-CAAlhiMS.js';
|
|
76
142
|
export { squashTextNodesWithMap } from '../packem_shared/squashTextNodesWithMap-iqm6OMMT.js';
|
|
77
143
|
export { isTerminalPaletteQuerySupported, queryTerminalPalette } from '../packem_shared/isTerminalPaletteQuerySupported-EeiwMKbr.js';
|
|
78
|
-
export { wrapOrTruncateStyledLine } from '../packem_shared/wrapOrTruncateStyledLine-
|
|
79
|
-
export { default as
|
|
80
|
-
export { default as
|
|
81
|
-
export { default as MouseProvider } from '../packem_shared/MouseProvider-Y9TSSEGl.js';
|
|
144
|
+
export { wrapOrTruncateStyledLine } from '../packem_shared/wrapOrTruncateStyledLine-49Mne3t3.js';
|
|
145
|
+
export { default as Fullscreen } from '../packem_shared/Fullscreen-DO7voOq5.js';
|
|
146
|
+
export { default as MouseProvider } from '../packem_shared/MouseProvider-CekPbXCh.js';
|
|
82
147
|
export { default as isIntersecting } from '../packem_shared/isIntersecting-fEXHJN5R.js';
|
|
83
148
|
export { default as useMouseAction } from '../packem_shared/useMouseAction-C5gZ2nj7.js';
|
|
84
149
|
export { default as useMouseContext } from '../packem_shared/useMouseContext-D-rFy60Q.js';
|
|
85
150
|
export { default as useMousePosition } from '../packem_shared/useMousePosition-BHBJ-kBk.js';
|
|
86
151
|
export { default as useOnMouseHover } from '../packem_shared/useOnMouseHover-26diuXUC.js';
|
|
87
152
|
export { default as useOnMouseState } from '../packem_shared/useOnMouseState-NO_Kda_C.js';
|
|
88
|
-
export {
|
|
89
|
-
export { ScrollBar } from '../packem_shared/ScrollBar-EWAs2Uc7.js';
|
|
90
|
-
export { ScrollBarBox } from '../packem_shared/ScrollBarBox-DTNNlh7R.js';
|
|
91
|
-
export { ScrollList } from '../packem_shared/ScrollList-DCeIFL8M.js';
|
|
92
|
-
export { ScrollView } from '../packem_shared/ScrollView-v3MCNIyX.js';
|
|
93
|
-
export { TreeNodeMap } from '../packem_shared/TreeNodeMap-CtJUvBnd.js';
|
|
94
|
-
export { TreeView } from '../packem_shared/TreeView-C2062dtj.js';
|
|
95
|
-
export { p as parseSgrMouse } from '../packem_shared/ansi-parser-0BdVTKho.js';
|
|
96
|
-
export { theme as treeViewTheme } from '../packem_shared/treeViewTheme-BpSw9TMf.js';
|
|
153
|
+
export { p as parseSgrMouse } from '../packem_shared/ansi-parser-BOP8fNdT.js';
|
|
97
154
|
export { useElementDimensions, useElementPosition } from '../packem_shared/useElementDimensions-CAoKitVD.js';
|
|
98
155
|
export { useOnMouseClick } from '../packem_shared/useOnMouseClick--ZIyBOBO.js';
|
|
99
|
-
export { useTreeView } from '../packem_shared/useTreeView-BT57P3Kx.js';
|
|
100
|
-
export { useTreeViewState } from '../packem_shared/useTreeViewState-BpS_KZ-K.js';
|
package/dist/ink/ink.d.ts
CHANGED
|
@@ -67,15 +67,15 @@ export type Options = {
|
|
|
67
67
|
onRender?: (metrics: RenderMetrics) => void;
|
|
68
68
|
patchConsole: boolean;
|
|
69
69
|
standardReactLayoutTiming?: boolean;
|
|
70
|
+
stderr: NodeJS.WriteStream;
|
|
71
|
+
stdin: NodeJS.ReadStream;
|
|
72
|
+
stdout: NodeJS.WriteStream;
|
|
70
73
|
/**
|
|
71
74
|
* Whether to track text selection state during rendering.
|
|
72
75
|
*
|
|
73
76
|
* @default false
|
|
74
77
|
*/
|
|
75
78
|
trackSelection?: boolean;
|
|
76
|
-
stderr: NodeJS.WriteStream;
|
|
77
|
-
stdin: NodeJS.ReadStream;
|
|
78
|
-
stdout: NodeJS.WriteStream;
|
|
79
79
|
/**
|
|
80
80
|
* Use the native Rust cell-diff renderer instead of ANSI string-based log-update.
|
|
81
81
|
* Produces a Uint32Array buffer that the Rust renderer diffs cell-by-cell,
|
|
@@ -149,9 +149,10 @@ export default class Ink {
|
|
|
149
149
|
*/
|
|
150
150
|
recalculateLayout(): void;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* -
|
|
152
|
+
* Walks the DOM tree before Yoga layout to handle StaticRender nodes.
|
|
153
|
+
*
|
|
154
|
+
* - Re-attach Yoga children if a cached render was invalidated.
|
|
155
|
+
* - Pre-render ink-static-render nodes that don't have a cached render yet.
|
|
155
156
|
*/
|
|
156
157
|
private prepareYogaTree;
|
|
157
158
|
private markAllTextNodesDirty;
|
|
@@ -1,53 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
alternateScroll: {
|
|
7
|
-
off: string;
|
|
8
|
-
on: string;
|
|
9
|
-
};
|
|
10
|
-
mouseButton: {
|
|
11
|
-
off: string;
|
|
12
|
-
on: string;
|
|
13
|
-
};
|
|
14
|
-
mouseDrag: {
|
|
15
|
-
off: string;
|
|
16
|
-
on: string;
|
|
17
|
-
};
|
|
18
|
-
mouseFocus: {
|
|
19
|
-
off: string;
|
|
20
|
-
on: string;
|
|
21
|
-
};
|
|
22
|
-
mouseHighlight: {
|
|
23
|
-
off: string;
|
|
24
|
-
on: string;
|
|
25
|
-
};
|
|
26
|
-
mouseMotion: {
|
|
27
|
-
off: string;
|
|
28
|
-
on: string;
|
|
29
|
-
};
|
|
30
|
-
mouseMotionOthers: {
|
|
31
|
-
off: string;
|
|
32
|
-
on: string;
|
|
33
|
-
};
|
|
34
|
-
mousePixelMode: {
|
|
35
|
-
off: string;
|
|
36
|
-
on: string;
|
|
37
|
-
};
|
|
38
|
-
mouseSGR: {
|
|
39
|
-
off: string;
|
|
40
|
-
on: string;
|
|
41
|
-
};
|
|
42
|
-
mouseUtf8: {
|
|
43
|
-
off: string;
|
|
44
|
-
on: string;
|
|
45
|
-
};
|
|
46
|
-
mouseX10: {
|
|
47
|
-
off: string;
|
|
48
|
-
on: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
1
|
+
type AnsiCodeKey = "alternateScroll" | "mouseButton" | "mouseDrag" | "mouseFocus" | "mouseHighlight" | "mouseMotion" | "mouseMotionOthers" | "mousePixelMode" | "mouseSGR" | "mouseUtf8" | "mouseX10";
|
|
2
|
+
declare const ANSI_CODES: Record<AnsiCodeKey, {
|
|
3
|
+
off: string;
|
|
4
|
+
on: string;
|
|
5
|
+
}>;
|
|
51
6
|
/**
|
|
52
7
|
* Unified SGR 1006 mouse sequence pattern.
|
|
53
8
|
*
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type { SgrMouseEvent } from "./ansi-parser.d.ts";
|
|
8
8
|
export { parseSgrMouse } from "./ansi-parser.d.ts";
|
|
9
|
-
export { default as Fullscreen } from "./
|
|
9
|
+
export { default as Fullscreen } from "./fullscreen.d.ts";
|
|
10
10
|
export { default as isIntersecting } from "./is-intersecting.d.ts";
|
|
11
11
|
export type { MouseAction, MouseButton, MouseClickAction, MouseContextShape, MouseDragAction, MouseEvents, MousePosition, MouseScrollAction, } from "./mouse-context.d.ts";
|
|
12
|
-
export { default as MouseProvider } from "./
|
|
12
|
+
export { default as MouseProvider } from "./mouse-provider.d.ts";
|
|
13
13
|
export { useElementDimensions, useElementPosition } from "./use-element-position.d.ts";
|
|
14
14
|
export { default as useMouseContext } from "./use-mouse.d.ts";
|
|
15
15
|
export { default as useMouseAction } from "./use-mouse-action.d.ts";
|
package/dist/ink/output.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Region } from "./region.d.ts";
|
|
1
2
|
import type { OutputTransformer } from "./render-node-to-output.d.ts";
|
|
2
3
|
import { StyledLine } from "./styled-line.d.ts";
|
|
3
4
|
/**
|
|
@@ -58,7 +59,7 @@ export default class Output {
|
|
|
58
59
|
writeStyledLine(x: number, y: number, line: StyledLine): void;
|
|
59
60
|
getRootLines(): ReadonlyArray<StyledLine>;
|
|
60
61
|
getCurrentClip(): Clip | undefined;
|
|
61
|
-
addRegionTree(region:
|
|
62
|
+
addRegionTree(region: Region, x: number, y: number): void;
|
|
62
63
|
private writeStyledLineToRow;
|
|
63
64
|
get(): {
|
|
64
65
|
height: number;
|
|
@@ -105,5 +105,15 @@ export declare class StyledLine {
|
|
|
105
105
|
ensureWidth(minWidth: number): void;
|
|
106
106
|
private ensureInitialized;
|
|
107
107
|
private splitSpansAt;
|
|
108
|
+
/**
|
|
109
|
+
* Try to apply a single-char style at `index` by matching or merging
|
|
110
|
+
* with an adjacent span, avoiding splitSpansAt + mergeSpans.
|
|
111
|
+
*
|
|
112
|
+
* Returns true if the style was applied (or was already correct),
|
|
113
|
+
* false if the caller must fall through to the split/update/merge path.
|
|
114
|
+
*
|
|
115
|
+
* Ported from jacob314/ink PR #123 (Google LLC, Apache-2.0).
|
|
116
|
+
*/
|
|
117
|
+
private trySetStyleAtIndex;
|
|
108
118
|
private mergeSpans;
|
|
109
119
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Writable } from "node:stream";
|
|
2
|
-
export declare const bsu
|
|
3
|
-
export declare const esu
|
|
2
|
+
export declare const bsu: string;
|
|
3
|
+
export declare const esu: string;
|
|
4
4
|
export declare function shouldSynchronize(stream: Writable, interactive?: boolean): boolean;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useRef, useCallback } from 'react';
|
|
3
|
+
import useFocus from './useFocus-DLoGQJd9.js';
|
|
4
|
+
import useInput from './useInput-DKZbqMRc.js';
|
|
5
|
+
import Box from './Box-W1w_NGin.js';
|
|
6
|
+
import Text from './Text-CtUwV89_.js';
|
|
7
|
+
|
|
8
|
+
function Accordion({
|
|
9
|
+
accentColor = "blue",
|
|
10
|
+
allowMultiple = false,
|
|
11
|
+
autoFocus = false,
|
|
12
|
+
defaultExpanded,
|
|
13
|
+
isDisabled = false,
|
|
14
|
+
items
|
|
15
|
+
}) {
|
|
16
|
+
const { isFocused } = useFocus({ autoFocus, isActive: !isDisabled });
|
|
17
|
+
const [expanded, setExpanded] = useState(() => {
|
|
18
|
+
if (defaultExpanded === void 0 || defaultExpanded.length === 0) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
if (!allowMultiple) {
|
|
22
|
+
return defaultExpanded.slice(0, 1);
|
|
23
|
+
}
|
|
24
|
+
return defaultExpanded;
|
|
25
|
+
});
|
|
26
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
27
|
+
const focusedIndexRef = useRef(focusedIndex);
|
|
28
|
+
focusedIndexRef.current = focusedIndex;
|
|
29
|
+
const toggle = useCallback(
|
|
30
|
+
(id) => {
|
|
31
|
+
setExpanded((previous) => {
|
|
32
|
+
const isOpen = previous.includes(id);
|
|
33
|
+
if (allowMultiple) {
|
|
34
|
+
return isOpen ? previous.filter((x) => x !== id) : [...previous, id];
|
|
35
|
+
}
|
|
36
|
+
return isOpen ? [] : [id];
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
[allowMultiple]
|
|
40
|
+
);
|
|
41
|
+
useInput(
|
|
42
|
+
useCallback(
|
|
43
|
+
(input, key) => {
|
|
44
|
+
if (!isFocused) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const total = items.length;
|
|
48
|
+
if ((key.downArrow || input === "j") && focusedIndexRef.current < total - 1) {
|
|
49
|
+
setFocusedIndex(focusedIndexRef.current + 1);
|
|
50
|
+
} else if ((key.upArrow || input === "k") && focusedIndexRef.current > 0) {
|
|
51
|
+
setFocusedIndex(focusedIndexRef.current - 1);
|
|
52
|
+
} else if (key.return || input === " ") {
|
|
53
|
+
const target = items[focusedIndexRef.current];
|
|
54
|
+
if (target) {
|
|
55
|
+
toggle(target.id);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
[isFocused, items, toggle]
|
|
60
|
+
),
|
|
61
|
+
{ isActive: !isDisabled && isFocused }
|
|
62
|
+
);
|
|
63
|
+
return jsx(Box, { flexDirection: "column", children: items.map((item, index) => {
|
|
64
|
+
const isOpen = expanded.includes(item.id);
|
|
65
|
+
const isItemFocused = isFocused && index === focusedIndex;
|
|
66
|
+
const color = isItemFocused ? accentColor : void 0;
|
|
67
|
+
return jsxs(Box, { flexDirection: "column", children: [
|
|
68
|
+
jsxs(Box, { children: [
|
|
69
|
+
jsxs(Text, { color, dimColor: isDisabled, children: [
|
|
70
|
+
isItemFocused ? "▸ " : " ",
|
|
71
|
+
isOpen ? "▼ " : "▶ "
|
|
72
|
+
] }),
|
|
73
|
+
jsx(Text, { bold: isItemFocused, color, dimColor: isDisabled, children: item.title })
|
|
74
|
+
] }),
|
|
75
|
+
isOpen ? jsx(Box, { flexDirection: "column", marginBottom: 1, marginLeft: 4, children: item.content }) : void 0
|
|
76
|
+
] }, item.id);
|
|
77
|
+
}) });
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { Accordion as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import Box from './Box-
|
|
3
|
-
import Text from './Text-
|
|
2
|
+
import Box from './Box-W1w_NGin.js';
|
|
3
|
+
import Text from './Text-CtUwV89_.js';
|
|
4
4
|
import { V as VARIANT_CONFIG } from './variant-config-DSZoX5TM.js';
|
|
5
5
|
|
|
6
6
|
function Alert({ children, title, variant }) {
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, Children, isValidElement, useEffect, useCallback, cloneElement } from 'react';
|
|
3
|
+
import Box from './Box-W1w_NGin.js';
|
|
4
|
+
|
|
5
|
+
const getKey = (element) => {
|
|
6
|
+
const { key } = element;
|
|
7
|
+
return key == null ? void 0 : String(key);
|
|
8
|
+
};
|
|
9
|
+
const isAnimatable = (element) => {
|
|
10
|
+
const type = element.type;
|
|
11
|
+
if (type?.isAnimatable === true) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
return typeof element.props === "object" && element.props !== null && "show" in element.props;
|
|
15
|
+
};
|
|
16
|
+
function AnimatePresence({ children }) {
|
|
17
|
+
const [slots, setSlots] = useState(() => {
|
|
18
|
+
const collected = [];
|
|
19
|
+
Children.forEach(children, (child) => {
|
|
20
|
+
if (!isValidElement(child)) {
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const key = getKey(child);
|
|
24
|
+
if (key === void 0) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
collected.push({
|
|
28
|
+
element: isAnimatable(child) ? child : child,
|
|
29
|
+
key,
|
|
30
|
+
show: true
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return collected;
|
|
34
|
+
});
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
const incoming = /* @__PURE__ */ new Map();
|
|
37
|
+
Children.forEach(children, (child) => {
|
|
38
|
+
if (!isValidElement(child)) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const key = getKey(child);
|
|
42
|
+
if (key === void 0) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
incoming.set(key, isAnimatable(child) ? child : child);
|
|
46
|
+
});
|
|
47
|
+
setSlots((previous) => {
|
|
48
|
+
const next = [];
|
|
49
|
+
const seen = /* @__PURE__ */ new Set();
|
|
50
|
+
let changed = false;
|
|
51
|
+
for (const slot of previous) {
|
|
52
|
+
if (incoming.has(slot.key)) {
|
|
53
|
+
const nextElement = incoming.get(slot.key);
|
|
54
|
+
if (!slot.show || slot.element !== nextElement) {
|
|
55
|
+
changed = true;
|
|
56
|
+
}
|
|
57
|
+
next.push({
|
|
58
|
+
element: nextElement,
|
|
59
|
+
key: slot.key,
|
|
60
|
+
show: true
|
|
61
|
+
});
|
|
62
|
+
seen.add(slot.key);
|
|
63
|
+
} else {
|
|
64
|
+
if (slot.show) {
|
|
65
|
+
changed = true;
|
|
66
|
+
}
|
|
67
|
+
next.push({ ...slot, show: false });
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
for (const [key, element] of incoming) {
|
|
71
|
+
if (!seen.has(key)) {
|
|
72
|
+
changed = true;
|
|
73
|
+
next.push({ element, key, show: true });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return changed ? next : previous;
|
|
77
|
+
});
|
|
78
|
+
}, [children]);
|
|
79
|
+
const removeSlot = useCallback((key) => {
|
|
80
|
+
setSlots((previous) => previous.filter((slot) => slot.key !== key));
|
|
81
|
+
}, []);
|
|
82
|
+
return jsx(Box, { flexDirection: "column", children: slots.map((slot) => {
|
|
83
|
+
if (!isAnimatable(slot.element)) {
|
|
84
|
+
return cloneElement(slot.element, { key: slot.key });
|
|
85
|
+
}
|
|
86
|
+
const originalOnExit = slot.element.props.onExit;
|
|
87
|
+
return cloneElement(slot.element, {
|
|
88
|
+
key: slot.key,
|
|
89
|
+
onExit: () => {
|
|
90
|
+
originalOnExit?.();
|
|
91
|
+
removeSlot(slot.key);
|
|
92
|
+
},
|
|
93
|
+
show: slot.show
|
|
94
|
+
});
|
|
95
|
+
}) });
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export { AnimatePresence as default };
|