@bysages/svelte 0.4.4 → 0.5.0
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/README.md +2 -1
- package/dist/{Accordion-DUUod-V6.mjs → Accordion-uJ1bTltg.mjs} +4 -6
- package/dist/AiLoader-gWAgLlVT.mjs +184 -0
- package/dist/{AngleSlider-BDmLIZcL.mjs → AngleSlider-1HJ7tzno.mjs} +3 -5
- package/dist/{autocomplete-b65dChlK.mjs → AutoComplete-BY270ouT.mjs} +3 -11
- package/dist/{AvatarFacade-BNErD2uE.mjs → AvatarFacade-CBILxhOm.mjs} +3 -5
- package/dist/{BannerIcon-DpvxwWCc.mjs → BannerIcon-BTkMzpWu.mjs} +10 -18
- package/dist/{BreadcrumbList-BdLId9vL.mjs → BreadcrumbList-DRHZcJHW.mjs} +8 -15
- package/dist/{Calendar-MQdoAnJK.mjs → Calendar-BEdhUb-8.mjs} +2 -3
- package/dist/{Carousel-DNMQMvm6.mjs → Carousel-D_NYkQcN.mjs} +4 -6
- package/dist/{Checkbox-z4EXYH9a.mjs → Checkbox-DMjIIQFH.mjs} +4 -6
- package/dist/{checkbox-group-DESN0Y8Y.mjs → CheckboxGroup-D2rQc9D9.mjs} +8 -14
- package/dist/{ChevronIcon-hvMd0d_i.mjs → ChevronIcon-O4SEvOw3.mjs} +2 -3
- package/dist/{Clipboard-Bdui0U6I.mjs → Clipboard-Dbbt5clT.mjs} +4 -6
- package/dist/{Collapsible-t6m_LqHZ.mjs → Collapsible-Brrm-Skp.mjs} +4 -6
- package/dist/{ColorPicker-tGU9q8oC.mjs → ColorPicker-DvaN4rQi.mjs} +4 -6
- package/dist/{Combobox-8BSw_3Ab.mjs → Combobox-Cc8Rb5cQ.mjs} +4 -6
- package/dist/{command-CG6IfFZO.mjs → Command-Dc4-z9YE.mjs} +3 -16
- package/dist/{DateInput-BpCL_GE-.mjs → DateInput-Dca8fTIE.mjs} +3 -5
- package/dist/{DatePicker-DJDUqjiE.mjs → DatePicker-BYktdigv.mjs} +4 -6
- package/dist/{Descriptions-C1qZ05Ph.mjs → Descriptions-DQ-53bH0.mjs} +4 -8
- package/dist/DialogFooter-B_sDX4Dz.mjs +276 -0
- package/dist/{Drawer-DkFAYikg.mjs → Drawer-I1dtgAYo.mjs} +4 -6
- package/dist/{Editable-lC-REFTP.mjs → Editable-DsphXV9A.mjs} +4 -6
- package/dist/{Field-CEUQfFAn.mjs → Field-BDu5Li-Z.mjs} +3 -5
- package/dist/{Fieldset-BWqjtIBF.mjs → Fieldset-DgdSwUWb.mjs} +3 -5
- package/dist/{FileUpload-7LgqVD7x.mjs → FileUpload-22CRez-p.mjs} +5 -8
- package/dist/{FloatButtonFacade-C8nGcXe0.mjs → FloatButtonFacade-DWEaxhZ-.mjs} +8 -13
- package/dist/{FloatingPanel-nsymgBI7.mjs → FloatingPanel-Bzh9Xcpq.mjs} +4 -6
- package/dist/{HoverCard-c3tT648V.mjs → HoverCard-UD0UpoU2.mjs} +3 -5
- package/dist/{ImageCropper-Dgyj2byr.mjs → ImageCropper-B0_WmsYX.mjs} +3 -5
- package/dist/{ImageViewer-s41DessS.mjs → ImageViewer-CJZnrFdu.mjs} +15 -20
- package/dist/{Input-DLfLshYU.mjs → Input-DTXzYJnH.mjs} +2 -4
- package/dist/{InternalIcon-Dr81WIG1.mjs → InternalIcon-34cw8jr_.mjs} +2 -3
- package/dist/{JsonTreeViewTree-DkD987Zf.mjs → JsonTreeViewTree-DONQc4hx.mjs} +5 -8
- package/dist/{Listbox-C-u5WxHv.mjs → Listbox-B6AR7Q42.mjs} +4 -6
- package/dist/{Marquee-BOpZFSCo.mjs → Marquee-D78rmIoV.mjs} +3 -5
- package/dist/Mentions-wRPCCvkr.mjs +517 -0
- package/dist/{Menu-DA7CeDYL.mjs → Menu-dVdsNqPd.mjs} +6 -10
- package/dist/{Menubar-BC-ByvNh.mjs → Menubar-DgnjVxe2.mjs} +1 -2
- package/dist/{NavigationMenu-BpQJwrv3.mjs → NavigationMenu-5ZIyBjeF.mjs} +4 -7
- package/dist/{NumberInput-BDbTmUgg.mjs → NumberInput-D55VBFQc.mjs} +4 -6
- package/dist/{Pagination-BmFNV_Vu.mjs → Pagination-U8EheOtR.mjs} +4 -6
- package/dist/{PasswordInput-Cas4e19J.mjs → PasswordInput-UiXeV0Vy.mjs} +4 -6
- package/dist/{PinInput-CgpLwgNu.mjs → PinInput-BCQTaa_7.mjs} +3 -5
- package/dist/{popconfirm-BVTFOLDu.mjs → Popconfirm-B28uwDcI.mjs} +3 -10
- package/dist/{Popover-BQeFwet4.mjs → Popover-CtibWZei.mjs} +4 -6
- package/dist/{Progress-Byx2qRcT.mjs → Progress-B5qhfR5z.mjs} +3 -5
- package/dist/{QrCode-1i33zrFY.mjs → QrCode-DnrcIXDR.mjs} +3 -5
- package/dist/{RadioGroup-COvt4pCJ.mjs → RadioGroup-C8PEu7ec.mjs} +3 -5
- package/dist/{RatingGroup-DSzJ56Yw.mjs → RatingGroup-5WnFsX6T.mjs} +4 -6
- package/dist/{ScrollArea-QeA9Z68Y.mjs → ScrollArea-BL6EBKHt.mjs} +12 -5
- package/dist/{SegmentGroup-BG8A5JPz.mjs → SegmentGroup-IhYo60zG.mjs} +3 -5
- package/dist/{Select-D4rBviRL.mjs → Select-BbQQihFi.mjs} +4 -6
- package/dist/{SignaturePad-DSVTGy9D.mjs → SignaturePad-BIQhddws.mjs} +4 -6
- package/dist/{Slider-QPKs7Ub5.mjs → Slider-CB0utTvZ.mjs} +3 -5
- package/dist/{Spinner-D-Lrgjmo.mjs → Spinner-Dj5AWiFo.mjs} +2 -3
- package/dist/{split-button-BEgDY4EZ.mjs → SplitButton-BMqXeYAV.mjs} +5 -14
- package/dist/{Splitter-BXyqbcwY.mjs → Splitter-D88dgj4Y.mjs} +3 -5
- package/dist/{StepsItem-KwQ6SrNR.mjs → StepsItem-BgjdE8VO.mjs} +4 -7
- package/dist/{Swap-CkhKz3Ue.mjs → Swap-DgvGJ2lH.mjs} +4 -6
- package/dist/{Switch-AxmjfTNx.mjs → Switch-4z2OyHSJ.mjs} +3 -5
- package/dist/Tabs-DRHAw_3y.mjs +251 -0
- package/dist/{TagsInput-BPrJLeuZ.mjs → TagsInput-CUy_cZiW.mjs} +4 -6
- package/dist/{Timer-CXPRBF49.mjs → Timer-BXZkNc4v.mjs} +3 -5
- package/dist/{Toast-mxbydOO8.mjs → Toast-lYgJajNr.mjs} +4 -6
- package/dist/{TocContent-DVP0_twz.mjs → TocContent-CMiVQXiM.mjs} +5 -9
- package/dist/{Toggle-CP2UGolY.mjs → Toggle-CttcwDuy.mjs} +3 -5
- package/dist/{ToggleGroup-BfW1gjVm.mjs → ToggleGroup-DGCd6qvY.mjs} +4 -6
- package/dist/{Tooltip-BMFCR30g.mjs → Tooltip-DAj4cqTb.mjs} +3 -5
- package/dist/{transfer-CnfoiJ8O.mjs → Transfer-CgqqDOc7.mjs} +5 -14
- package/dist/{tree-select-CR2-Jskd.mjs → TreeSelect-o3KT1Ixj.mjs} +5 -13
- package/dist/{TreeViewNodeCheckbox-t2i6iaiq.mjs → TreeViewNodeCheckbox-BNwGbFEv.mjs} +148 -48
- package/dist/{affix-zZj9e2iB.mjs → affix-DVDIxtxN.mjs} +3 -5
- package/dist/ai-Dl0sf36w.mjs +454 -0
- package/dist/{ai-action-D3kQhycd.mjs → ai-action-CN_38CTn.mjs} +4 -6
- package/dist/{ai-attachments-ksKxDHG2.mjs → ai-attachments-CMTc9qoY.mjs} +6 -9
- package/dist/{ai-message-DyQZXA7q.mjs → ai-message-Bl8E6VQu.mjs} +7 -6
- package/dist/ai-prompt-input-BeovJUY8.mjs +580 -0
- package/dist/{ai-reasoning-DA6bWwlo.mjs → ai-reasoning-bh5sTx49.mjs} +4 -6
- package/dist/{ai-response-DrsGpVej.mjs → ai-response-pB9Xjn9l.mjs} +10 -13
- package/dist/{ai-source-2eYEEt6r.mjs → ai-source-Dl1J6ml2.mjs} +4 -7
- package/dist/{ai-suggestion-BtlG02Sz.mjs → ai-suggestion-_ICqZem2.mjs} +4 -6
- package/dist/ai-tool-CwODrt-l.mjs +228 -0
- package/dist/{alert-pTPh9zID.mjs → alert-Dj3k9PIZ.mjs} +7 -13
- package/dist/{aspect-ratio-CIjPsfel.mjs → aspect-ratio-D7IG1R7i.mjs} +3 -5
- package/dist/{avatar-group-BL7PyLo1.mjs → avatar-group-DkKnKe-Q.mjs} +3 -5
- package/dist/{back-top-FpXkOE3N.mjs → back-top-V5tDyic7.mjs} +5 -7
- package/dist/{badge-N_KoQG_c.mjs → badge-aB6Ew84r.mjs} +3 -5
- package/dist/{bento-ChsvZJOE.mjs → bento-DBRH60s5.mjs} +3 -6
- package/dist/{block-ui-CHajwHI5.mjs → block-ui-CDdInTdI.mjs} +4 -6
- package/dist/{browser-KnMt333t.mjs → browser-DhUye17R.mjs} +6 -12
- package/dist/{button-Cl45zjdj.mjs → button-D-u911qp.mjs} +3 -5
- package/dist/{button-group-D9mgSVlR.mjs → button-group-DTHZTPnA.mjs} +3 -5
- package/dist/{card-DPVT_VaK.mjs → card-ihj2ejBR.mjs} +7 -14
- package/dist/{cascade-select-BhdGSRCa.mjs → cascade-select-B2NVNu_A.mjs} +12 -12
- package/dist/{chip-DputaHcF.mjs → chip-BaLIM7h1.mjs} +3 -5
- package/dist/{comment-DZ9l7mDZ.mjs → comment-_Lt7IR2M.mjs} +3 -5
- package/dist/components/accordion/index.d.mts +2 -4
- package/dist/components/accordion/index.mjs +3 -4
- package/dist/components/affix/index.d.mts +1 -1
- package/dist/components/affix/index.mjs +1 -2
- package/dist/components/ai/index.d.mts +10 -11
- package/dist/components/ai/index.mjs +3 -28
- package/dist/components/ai-action/index.d.mts +1 -3
- package/dist/components/ai-action/index.mjs +1 -2
- package/dist/components/ai-attachments/index.d.mts +1 -1
- package/dist/components/ai-attachments/index.mjs +1 -2
- package/dist/components/ai-message/index.d.mts +2 -9
- package/dist/components/ai-message/index.mjs +1 -2
- package/dist/components/ai-prompt-input/index.d.mts +1 -3
- package/dist/components/ai-prompt-input/index.mjs +1 -2
- package/dist/components/ai-reasoning/index.d.mts +1 -3
- package/dist/components/ai-reasoning/index.mjs +1 -2
- package/dist/components/ai-response/index.d.mts +1 -3
- package/dist/components/ai-response/index.mjs +1 -2
- package/dist/components/ai-source/index.d.mts +1 -3
- package/dist/components/ai-source/index.mjs +1 -2
- package/dist/components/ai-suggestion/index.d.mts +1 -3
- package/dist/components/ai-suggestion/index.mjs +1 -2
- package/dist/components/ai-tool/index.d.mts +2 -10
- package/dist/components/ai-tool/index.mjs +1 -2
- package/dist/components/alert/index.d.mts +1 -1
- package/dist/components/alert/index.mjs +1 -2
- package/dist/components/angle-slider/index.d.mts +2 -4
- package/dist/components/angle-slider/index.mjs +3 -4
- package/dist/components/aspect-ratio/index.d.mts +1 -1
- package/dist/components/aspect-ratio/index.mjs +1 -2
- package/dist/components/autocomplete/index.d.mts +1 -1
- package/dist/components/autocomplete/index.mjs +8 -1
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +3 -4
- package/dist/components/avatar-group/index.d.mts +1 -1
- package/dist/components/avatar-group/index.mjs +1 -2
- package/dist/components/back-top/index.d.mts +1 -1
- package/dist/components/back-top/index.mjs +1 -2
- package/dist/components/badge/index.d.mts +1 -1
- package/dist/components/badge/index.mjs +1 -2
- package/dist/components/banner/index.d.mts +1 -1
- package/dist/components/banner/index.mjs +3 -4
- package/dist/components/bento/index.d.mts +1 -1
- package/dist/components/bento/index.mjs +1 -2
- package/dist/components/block-ui/index.d.mts +1 -1
- package/dist/components/block-ui/index.mjs +1 -2
- package/dist/components/breadcrumb/index.d.mts +1 -1
- package/dist/components/breadcrumb/index.mjs +3 -4
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +1 -2
- package/dist/components/button/index.d.mts +1 -1
- package/dist/components/button/index.mjs +1 -2
- package/dist/components/button-group/index.d.mts +1 -1
- package/dist/components/button-group/index.mjs +1 -2
- package/dist/components/calendar/index.d.mts +1 -1
- package/dist/components/calendar/index.mjs +3 -4
- package/dist/components/card/index.d.mts +1 -1
- package/dist/components/card/index.mjs +1 -2
- package/dist/components/carousel/index.d.mts +2 -4
- package/dist/components/carousel/index.mjs +3 -4
- package/dist/components/cascade-select/index.d.mts +1 -1
- package/dist/components/cascade-select/index.mjs +1 -2
- package/dist/components/checkbox/index.d.mts +2 -4
- package/dist/components/checkbox/index.mjs +3 -4
- package/dist/components/checkbox-group/index.d.mts +1 -1
- package/dist/components/checkbox-group/index.mjs +9 -1
- package/dist/components/chip/index.d.mts +1 -1
- package/dist/components/chip/index.mjs +1 -2
- package/dist/components/client-only/index.d.mts +0 -2
- package/dist/components/client-only/index.mjs +2 -3
- package/dist/components/clipboard/index.d.mts +1 -1
- package/dist/components/clipboard/index.mjs +3 -4
- package/dist/components/collapsible/index.d.mts +2 -4
- package/dist/components/collapsible/index.mjs +3 -4
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +2 -4
- package/dist/components/color-picker/index.mjs +3 -4
- package/dist/components/combobox/index.d.mts +2 -4
- package/dist/components/combobox/index.mjs +3 -4
- package/dist/components/command/index.d.mts +1 -1
- package/dist/components/command/index.mjs +14 -1
- package/dist/components/comment/index.d.mts +1 -1
- package/dist/components/comment/index.mjs +1 -2
- package/dist/components/config-provider/index.d.mts +1 -1
- package/dist/components/config-provider/index.mjs +2 -2
- package/dist/components/container/index.d.mts +1 -1
- package/dist/components/container/index.mjs +1 -2
- package/dist/components/data-view/index.d.mts +1 -1
- package/dist/components/data-view/index.mjs +1 -2
- package/dist/components/date-input/index.d.mts +2 -4
- package/dist/components/date-input/index.mjs +3 -4
- package/dist/components/date-picker/index.d.mts +2 -4
- package/dist/components/date-picker/index.mjs +3 -4
- package/dist/components/deferred-content/index.d.mts +1 -1
- package/dist/components/deferred-content/index.mjs +1 -2
- package/dist/components/descriptions/index.d.mts +1 -1
- package/dist/components/descriptions/index.mjs +3 -4
- package/dist/components/dialog/index.d.mts +7 -5
- package/dist/components/dialog/index.mjs +10 -7
- package/dist/components/dock/index.d.mts +1 -1
- package/dist/components/dock/index.mjs +1 -2
- package/dist/components/download-trigger/index.d.mts +0 -2
- package/dist/components/download-trigger/index.mjs +2 -3
- package/dist/components/drawer/index.d.mts +2 -4
- package/dist/components/drawer/index.mjs +3 -4
- package/dist/components/dynamic-input/index.d.mts +1 -1
- package/dist/components/dynamic-input/index.mjs +1 -2
- package/dist/components/editable/index.d.mts +2 -4
- package/dist/components/editable/index.mjs +3 -4
- package/dist/components/ellipsis/index.d.mts +1 -1
- package/dist/components/ellipsis/index.mjs +1 -2
- package/dist/components/empty/index.d.mts +1 -1
- package/dist/components/empty/index.mjs +1 -2
- package/dist/components/field/index.d.mts +2 -4
- package/dist/components/field/index.mjs +3 -4
- package/dist/components/fieldset/index.d.mts +2 -4
- package/dist/components/fieldset/index.mjs +3 -4
- package/dist/components/file-upload/index.d.mts +2 -4
- package/dist/components/file-upload/index.mjs +3 -4
- package/dist/components/float-button/index.d.mts +1 -1
- package/dist/components/float-button/index.mjs +3 -4
- package/dist/components/floating-panel/index.d.mts +2 -4
- package/dist/components/floating-panel/index.mjs +3 -4
- package/dist/components/focus-trap/index.d.mts +0 -2
- package/dist/components/focus-trap/index.mjs +2 -3
- package/dist/components/form/index.d.mts +1 -1
- package/dist/components/form/index.mjs +1 -2
- package/dist/components/format/index.d.mts +1 -3
- package/dist/components/format/index.mjs +1 -2
- package/dist/components/frame/index.d.mts +1 -3
- package/dist/components/frame/index.mjs +2 -3
- package/dist/components/grid/index.d.mts +1 -1
- package/dist/components/grid/index.mjs +1 -2
- package/dist/components/highlight/index.d.mts +1 -3
- package/dist/components/highlight/index.mjs +2 -3
- package/dist/components/hover-card/index.d.mts +2 -4
- package/dist/components/hover-card/index.mjs +3 -4
- package/dist/components/icon/index.d.mts +1 -1
- package/dist/components/icon/index.mjs +1 -2
- package/dist/components/image/index.d.mts +1 -1
- package/dist/components/image/index.mjs +1 -2
- package/dist/components/image-cropper/index.d.mts +2 -4
- package/dist/components/image-cropper/index.mjs +3 -4
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +3 -4
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.mjs +3 -4
- package/dist/components/input-group/index.d.mts +1 -1
- package/dist/components/input-group/index.mjs +1 -2
- package/dist/components/json-tree-view/index.d.mts +2 -4
- package/dist/components/json-tree-view/index.mjs +3 -4
- package/dist/components/kbd/index.d.mts +1 -1
- package/dist/components/kbd/index.mjs +1 -2
- package/dist/components/layout/index.d.mts +1 -1
- package/dist/components/layout/index.mjs +1 -2
- package/dist/components/link/index.d.mts +1 -1
- package/dist/components/link/index.mjs +1 -2
- package/dist/components/list/index.d.mts +1 -1
- package/dist/components/list/index.mjs +1 -2
- package/dist/components/listbox/index.d.mts +1 -1
- package/dist/components/listbox/index.mjs +3 -4
- package/dist/components/marquee/index.d.mts +2 -4
- package/dist/components/marquee/index.mjs +3 -4
- package/dist/components/masonry/index.d.mts +1 -1
- package/dist/components/masonry/index.mjs +1 -2
- package/dist/components/media-player/index.d.mts +2 -2
- package/dist/components/media-player/index.mjs +2 -2
- package/dist/components/mentions/index.d.mts +3 -3
- package/dist/components/mentions/index.mjs +14 -2
- package/dist/components/menu/index.d.mts +2 -4
- package/dist/components/menu/index.mjs +3 -4
- package/dist/components/menubar/index.d.mts +1 -1
- package/dist/components/menubar/index.mjs +3 -4
- package/dist/components/meter/index.d.mts +1 -1
- package/dist/components/meter/index.mjs +1 -2
- package/dist/components/navigation-menu/index.d.mts +2 -4
- package/dist/components/navigation-menu/index.mjs +3 -4
- package/dist/components/number-input/index.d.mts +2 -4
- package/dist/components/number-input/index.mjs +3 -4
- package/dist/components/order-list/index.d.mts +1 -1
- package/dist/components/order-list/index.mjs +1 -2
- package/dist/components/page-header/index.d.mts +1 -1
- package/dist/components/page-header/index.mjs +1 -2
- package/dist/components/pagination/index.d.mts +2 -4
- package/dist/components/pagination/index.mjs +3 -4
- package/dist/components/password-input/index.d.mts +2 -4
- package/dist/components/password-input/index.mjs +3 -4
- package/dist/components/pin-input/index.d.mts +2 -4
- package/dist/components/pin-input/index.mjs +3 -4
- package/dist/components/popconfirm/index.d.mts +1 -1
- package/dist/components/popconfirm/index.mjs +7 -1
- package/dist/components/popover/index.d.mts +2 -11
- package/dist/components/popover/index.mjs +3 -4
- package/dist/components/presence/index.d.mts +0 -2
- package/dist/components/presence/index.mjs +2 -3
- package/dist/components/progress/index.d.mts +2 -4
- package/dist/components/progress/index.mjs +3 -4
- package/dist/components/progress-group/index.d.mts +1 -1
- package/dist/components/progress-group/index.mjs +1 -2
- package/dist/components/qr-code/index.d.mts +2 -4
- package/dist/components/qr-code/index.mjs +3 -4
- package/dist/components/radio-group/index.d.mts +2 -4
- package/dist/components/radio-group/index.mjs +3 -4
- package/dist/components/rating-group/index.d.mts +2 -4
- package/dist/components/rating-group/index.mjs +3 -4
- package/dist/components/result/index.d.mts +1 -3
- package/dist/components/result/index.mjs +1 -2
- package/dist/components/scroll-area/index.d.mts +2 -4
- package/dist/components/scroll-area/index.mjs +3 -4
- package/dist/components/segment-group/index.d.mts +2 -4
- package/dist/components/segment-group/index.mjs +3 -4
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -2
- package/dist/components/separator/index.d.mts +1 -1
- package/dist/components/separator/index.mjs +1 -2
- package/dist/components/signature-pad/index.d.mts +2 -4
- package/dist/components/signature-pad/index.mjs +3 -4
- package/dist/components/skeleton/index.d.mts +1 -1
- package/dist/components/skeleton/index.mjs +1 -2
- package/dist/components/slider/index.d.mts +2 -4
- package/dist/components/slider/index.mjs +3 -4
- package/dist/components/spinner/index.d.mts +1 -1
- package/dist/components/spinner/index.mjs +3 -4
- package/dist/components/split-button/index.d.mts +1 -1
- package/dist/components/split-button/index.mjs +10 -1
- package/dist/components/splitter/index.d.mts +2 -4
- package/dist/components/splitter/index.mjs +3 -4
- package/dist/components/spotlight/index.d.mts +1 -1
- package/dist/components/spotlight/index.mjs +1 -2
- package/dist/components/stack/index.d.mts +1 -1
- package/dist/components/stack/index.mjs +1 -2
- package/dist/components/stat/index.d.mts +1 -1
- package/dist/components/stat/index.mjs +1 -2
- package/dist/components/steps/index.d.mts +2 -4
- package/dist/components/steps/index.mjs +3 -4
- package/dist/components/swap/index.d.mts +2 -4
- package/dist/components/swap/index.mjs +3 -4
- package/dist/components/switch/index.d.mts +2 -4
- package/dist/components/switch/index.mjs +3 -4
- package/dist/components/table/index.d.mts +1 -1
- package/dist/components/table/index.mjs +1 -2
- package/dist/components/tabs/index.d.mts +2 -4
- package/dist/components/tabs/index.mjs +3 -4
- package/dist/components/tag/index.d.mts +1 -1
- package/dist/components/tag/index.mjs +1 -2
- package/dist/components/tags-input/index.d.mts +2 -4
- package/dist/components/tags-input/index.mjs +3 -4
- package/dist/components/terminal/index.d.mts +1 -1
- package/dist/components/terminal/index.mjs +1 -2
- package/dist/components/textarea/index.d.mts +1 -1
- package/dist/components/textarea/index.mjs +1 -2
- package/dist/components/timeline/index.d.mts +1 -1
- package/dist/components/timeline/index.mjs +1 -2
- package/dist/components/timer/index.d.mts +2 -4
- package/dist/components/timer/index.mjs +3 -4
- package/dist/components/toast/index.d.mts +1 -3
- package/dist/components/toast/index.mjs +3 -4
- package/dist/components/toc/index.d.mts +2 -4
- package/dist/components/toc/index.mjs +3 -4
- package/dist/components/toggle/index.d.mts +2 -4
- package/dist/components/toggle/index.mjs +3 -4
- package/dist/components/toggle-group/index.d.mts +2 -4
- package/dist/components/toggle-group/index.mjs +3 -4
- package/dist/components/toolbar/index.d.mts +1 -1
- package/dist/components/toolbar/index.mjs +1 -2
- package/dist/components/tooltip/index.d.mts +2 -4
- package/dist/components/tooltip/index.mjs +3 -4
- package/dist/components/tour/index.d.mts +1 -3
- package/dist/components/tour/index.mjs +3 -4
- package/dist/components/transfer/index.d.mts +1 -1
- package/dist/components/transfer/index.mjs +10 -1
- package/dist/components/tree-select/index.d.mts +1 -1
- package/dist/components/tree-select/index.mjs +9 -1
- package/dist/components/tree-view/index.d.mts +2 -2
- package/dist/components/tree-view/index.mjs +3 -4
- package/dist/components/typography/index.d.mts +1 -1
- package/dist/components/typography/index.mjs +1 -2
- package/dist/components/user/index.d.mts +1 -1
- package/dist/components/user/index.mjs +1 -2
- package/dist/components/virtual-list/index.d.mts +1 -1
- package/dist/components/virtual-list/index.mjs +1 -2
- package/dist/components/watermark/index.d.mts +1 -1
- package/dist/components/watermark/index.mjs +1 -2
- package/dist/{config-provider-Ca8wCLcK.mjs → config-provider-U05Gby9j.mjs} +4 -6
- package/dist/{container-CkhoYrC5.mjs → container-B-FLzlPR.mjs} +3 -5
- package/dist/{context-Da-QMQRq.mjs → context-Ds8BTSHZ.mjs} +1 -2
- package/dist/{data-view-Ls3J45mK.mjs → data-view-zSR4B01l.mjs} +4 -6
- package/dist/{deferred-content-SoEpwCs-.mjs → deferred-content-Bue-jQuC.mjs} +3 -5
- package/dist/{dock-BFyqUHAo.mjs → dock-BiSx545H.mjs} +3 -6
- package/dist/{dynamic-input-BpzL0Fe-.mjs → dynamic-input-DZRTIHK6.mjs} +6 -8
- package/dist/{ellipsis-ChktH2CQ.mjs → ellipsis-Cln7LMuU.mjs} +3 -5
- package/dist/{empty-CINZ_PLj.mjs → empty-bTEJeiAO.mjs} +6 -12
- package/dist/family-Dc5a-Kr6.d.mts +5 -0
- package/dist/{family-CzLaku1F.mjs → family-lE_Nnow1.mjs} +1 -2
- package/dist/{form-pjuBsPy-.mjs → form-DovYD07u.mjs} +5 -9
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +58 -105
- package/dist/{grid-CinYh-s4.mjs → grid-BMaN0mMs.mjs} +3 -5
- package/dist/{icon-CKL_BxrZ.mjs → icon-CF5OqvV3.mjs} +1 -2
- package/dist/{icon-BF1JO1ek.mjs → icon-_OfVFx2E.mjs} +3 -5
- package/dist/{id-Alz497yI.mjs → id-Cu5GNK9U.mjs} +1 -2
- package/dist/{image-BpWDMvNm.mjs → image-A6Dv3smu.mjs} +4 -6
- package/dist/{index-Cbd88ftD.d.mts → index-454z2oXL.d.mts} +0 -4
- package/dist/{index-DEWaAoNb.d.mts → index-4q1Yim5e.d.mts} +0 -4
- package/dist/{index-BiwW7REL.d.mts → index-51WOrICo.d.mts} +0 -4
- package/dist/{index-CXbdZAgD.d.mts → index-52MdT-oe.d.mts} +0 -4
- package/dist/{index-g_LJvZJ-.d.mts → index-Acprq4-Y.d.mts} +1 -5
- package/dist/{index-FRLzt_CK.d.mts → index-B06szRQ2.d.mts} +1 -7
- package/dist/{index-BIHw8Gzt.d.mts → index-B1xVmgtV.d.mts} +4 -7
- package/dist/{index-CgnQmll5.d.mts → index-B2UV8SoD.d.mts} +1 -5
- package/dist/{index-Dxktk3O7.d.mts → index-B3UON-jd.d.mts} +0 -4
- package/dist/{index-DC6AI8rV.d.mts → index-B78gmnDf.d.mts} +0 -4
- package/dist/{index-9GiGGnGa.d.mts → index-B9EH2i9C.d.mts} +5 -8
- package/dist/{index-oF_zauHL.d.mts → index-B9YuWZp_.d.mts} +0 -4
- package/dist/{index-ChqP3kbL.d.mts → index-BAMNM_YL.d.mts} +0 -4
- package/dist/{index-DQAelfXy.d.mts → index-BLH7JTCS.d.mts} +0 -4
- package/dist/{index-DzohdB6p.d.mts → index-BMETg0NK.d.mts} +0 -4
- package/dist/{index-ByxBpSC4.d.mts → index-BWnNmvFT.d.mts} +0 -4
- package/dist/{index-C0CAf6mV.d.mts → index-B_6PeZPm.d.mts} +1 -5
- package/dist/{index-C0aalhwd.d.mts → index-BdEUm3El.d.mts} +0 -4
- package/dist/{index-CWzdSZ-F.d.mts → index-BkP683Vc.d.mts} +4 -7
- package/dist/index-Bq0kkOF3.d.mts +163 -0
- package/dist/{index-DpzuwMB7.d.mts → index-Bs4iuOZe.d.mts} +0 -4
- package/dist/index-BvmZ-09N.d.mts +40 -0
- package/dist/{index-e1MA6eIk.d.mts → index-BvmhwD1f.d.mts} +0 -4
- package/dist/{index-DQL1l90b.d.mts → index-C0wl90jI.d.mts} +0 -6
- package/dist/{index-DkvQPyaW.d.mts → index-C2E8HzWy.d.mts} +0 -4
- package/dist/{index-C-wU4kAX.d.mts → index-C3ERrn0b.d.mts} +4 -7
- package/dist/{index-DwVr4QfC.d.mts → index-C3FVLNny.d.mts} +0 -4
- package/dist/{index-CJsLok79.d.mts → index-C5FsU-Bk.d.mts} +0 -4
- package/dist/{index-njppQnYT.d.mts → index-C6r0idvG.d.mts} +1 -5
- package/dist/{index-IR-e1YzH.d.mts → index-C84Xq9qE.d.mts} +0 -4
- package/dist/{index-C6UrUbj8.d.mts → index-C9phZHZu.d.mts} +0 -4
- package/dist/{index-BoR_54C_.d.mts → index-CNCXZaJM.d.mts} +0 -4
- package/dist/{index-CGk6TYb-.d.mts → index-COZdosac.d.mts} +1 -5
- package/dist/index-CXyumzqL.d.mts +10 -0
- package/dist/{index-BahdqXg4.d.mts → index-C_57Toe4.d.mts} +0 -6
- package/dist/{index-C-sa4baY.d.mts → index-CbZkYEl2.d.mts} +0 -4
- package/dist/{index-CRdyjHjx.d.mts → index-CgizXbKv.d.mts} +0 -4
- package/dist/{index-DWlpILHb.d.mts → index-CiiYxdTw.d.mts} +4 -7
- package/dist/{index-CWNmeq0b.d.mts → index-CkrhLano.d.mts} +0 -4
- package/dist/{index-D61_Lx9o.d.mts → index-CoG_0s0h.d.mts} +0 -4
- package/dist/{index-CnrohEXe.d.mts → index-CrxAEBUN.d.mts} +0 -4
- package/dist/{index-pV9TgrxW.d.mts → index-CsYYt6LG.d.mts} +1 -5
- package/dist/{index-C0b8N_Aa.d.mts → index-CyIlqhTC.d.mts} +0 -4
- package/dist/{index-CZ0P3C6E.d.mts → index-CyJAivLR.d.mts} +0 -4
- package/dist/{index-LXovbafa.d.mts → index-D-rxqV4A.d.mts} +0 -4
- package/dist/{index-CYtinraa.d.mts → index-D2Z80Kar.d.mts} +0 -4
- package/dist/{index-BhXsxcRN.d.mts → index-D8jtp6LD.d.mts} +0 -4
- package/dist/{index-CA0W58ZE.d.mts → index-DAQufCol.d.mts} +0 -4
- package/dist/{index-FmT_lwS7.d.mts → index-DE5qWf39.d.mts} +1 -5
- package/dist/{index-DyAQSYqR.d.mts → index-DMQckZVI.d.mts} +12 -6
- package/dist/{index-DeW7Jrci.d.mts → index-DQeW9BMx.d.mts} +1 -5
- package/dist/{index-DlHvtlYT.d.mts → index-DRW1B8V1.d.mts} +0 -4
- package/dist/{index-BFKqgbq-.d.mts → index-D_vjUc8T.d.mts} +0 -4
- package/dist/{index-CV5LaGMy.d.mts → index-DaBrJozP.d.mts} +0 -4
- package/dist/{index-3TmqYBnT.d.mts → index-DcMmNDU-.d.mts} +0 -4
- package/dist/{index-DH0ecZNW.d.mts → index-DdgeN0Ng.d.mts} +0 -4
- package/dist/{index-CKaCfx0p.d.mts → index-Di2WJqT-.d.mts} +0 -4
- package/dist/{index-DCpx_Rui.d.mts → index-DjdtGK_P.d.mts} +0 -4
- package/dist/{index-BpC1s3zv.d.mts → index-DlHC7607.d.mts} +1 -5
- package/dist/{index-CyVykdGO.d.mts → index-DrhjTobH.d.mts} +0 -4
- package/dist/{index-DKfQGayE.d.mts → index-Dti8xErb.d.mts} +0 -4
- package/dist/{index-DAnDXxRZ.d.mts → index-Duxepy4v.d.mts} +4 -7
- package/dist/{index-CvDp7tiS.d.mts → index-DvNqmeZC.d.mts} +0 -4
- package/dist/{index-znAFQEmQ.d.mts → index-HDYhCKfZ.d.mts} +4 -7
- package/dist/{index-BhTdJwBA.d.mts → index-IJmdYb5n.d.mts} +0 -4
- package/dist/{index-eQIdP9QO.d.mts → index-ItZp2Plw.d.mts} +0 -6
- package/dist/{index-BwUGTQag.d.mts → index-ND9pqiYE.d.mts} +1 -5
- package/dist/{index-D2B6EH5P.d.mts → index-NDFoxs3W.d.mts} +0 -4
- package/dist/{index-evrdvWRI.d.mts → index-Q3Db9wEN.d.mts} +0 -4
- package/dist/{index-BHlsL8ta.d.mts → index-Q9VgvJLD.d.mts} +0 -4
- package/dist/{index-CC_yY588.d.mts → index-_v_fp4pa.d.mts} +4 -7
- package/dist/{index-DGsu3J-2.d.mts → index-bEBDXZ4B.d.mts} +0 -4
- package/dist/{index-C5hCBtt4.d.mts → index-kvWVDke1.d.mts} +2 -4
- package/dist/{index-CmskeLd_.d.mts → index-qyo1-I2l.d.mts} +0 -4
- package/dist/{index-BKZC0MtK.d.mts → index-seXcaHyL.d.mts} +0 -4
- package/dist/index-xveVUurC.d.mts +123 -0
- package/dist/{index-Dq4bm9bV.d.mts → index-ymBJyo20.d.mts} +0 -4
- package/dist/{index-fIWQxtE9.d.mts → index-yuJTtYOg.d.mts} +0 -4
- package/dist/index.d.mts +91 -94
- package/dist/index.mjs +83 -83
- package/dist/{input-group-B-F5Gpvl.mjs → input-group-DiPl6WrU.mjs} +3 -6
- package/dist/{kbd-aFsisVbG.mjs → kbd-BFo9FSAl.mjs} +3 -5
- package/dist/{layout-DquD9Olk.mjs → layout-CAGRxpGd.mjs} +31 -29
- package/dist/{link-qWntJ94C.mjs → link-D8AaAyGj.mjs} +3 -5
- package/dist/{list-C-2CqZtn.mjs → list-C0gqAPZY.mjs} +6 -12
- package/dist/{masonry-CDKPD9gL.mjs → masonry-BXagROhe.mjs} +3 -5
- package/dist/{media-player-DkAUU7NN.mjs → media-player-CKfDuIMr.mjs} +24 -44
- package/dist/{messages-DNzA55pH.mjs → messages-BZoDXYu3.mjs} +2 -3
- package/dist/{meter-BUcdK4Ln.mjs → meter-D4FA9a6M.mjs} +5 -10
- package/dist/{order-list-C8O2NdGR.mjs → order-list-CoS4H4Wf.mjs} +5 -7
- package/dist/{page-header-ByucbXX7.mjs → page-header-gnsRDFEc.mjs} +7 -14
- package/dist/{progress-group-CkFZNtnC.mjs → progress-group-DEnTE2rG.mjs} +3 -5
- package/dist/{props-BZcE7LP_.d.mts → props-B3JgnaIu.d.mts} +0 -2
- package/dist/{props-C2OWII_8.d.mts → props-BCGeiPkX.d.mts} +0 -2
- package/dist/{props-Dr7ABUbp.d.mts → props-BCaZ82OV.d.mts} +0 -2
- package/dist/{props-DL-XfEtS.d.mts → props-BTFG2WVw.d.mts} +15 -7
- package/dist/{props-D93CbAiS.d.mts → props-D_5q9QQF.d.mts} +0 -2
- package/dist/{props-BvDM6-cm.d.mts → props-_GN94tW2.d.mts} +0 -2
- package/dist/{result-BRbQTUeW.mjs → result-BT9cir7u.mjs} +7 -13
- package/dist/{select-DuSzjsoK.mjs → select-DqF4a1Ek.mjs} +5 -7
- package/dist/{separator-I0MEoHjO.mjs → separator-uapnB2RA.mjs} +3 -5
- package/dist/{skeleton-BHn0Emeh.mjs → skeleton-CgYKQ7Hp.mjs} +3 -5
- package/dist/{spotlight-Apoc1iQX.mjs → spotlight-D-55UCwc.mjs} +3 -5
- package/dist/{stack-uMjCwn_2.mjs → stack-DQuY60M4.mjs} +3 -5
- package/dist/{stat-DQ-5P4Gr.mjs → stat-CGmsB4Gt.mjs} +6 -12
- package/dist/{table-N8W6Jcaj.mjs → table-DN7VR65O.mjs} +8 -11
- package/dist/{tag-CXAD4ox2.mjs → tag-DpuHqCaX.mjs} +4 -6
- package/dist/terminal-ZGRocdIt.mjs +90 -0
- package/dist/{textarea-ClX5LWLE.mjs → textarea-D10nUiTa.mjs} +3 -5
- package/dist/{timeline-RyLnUiMA.mjs → timeline-DWk02xFJ.mjs} +5 -10
- package/dist/{toolbar-BTM5B0Nt.mjs → toolbar-CbnuHMXx.mjs} +3 -5
- package/dist/{typography-DUWj7wex.mjs → typography-Cr4CXUpW.mjs} +7 -14
- package/dist/{use-media-controls-BYYG0DgO.mjs → use-media-controls-Bqz-x0MH.mjs} +1 -2
- package/dist/{use-tour-BfS5dCZb.mjs → use-tour-DkVIh_cp.mjs} +4 -7
- package/dist/{user--GneY3yN.mjs → user-SbqJ1Iyq.mjs} +3 -5
- package/dist/{virtual-list-h85_wJw5.mjs → virtual-list-BkDk6-W8.mjs} +3 -5
- package/dist/{watermark-CHUTjZ6E.mjs → watermark-dyob2zlj.mjs} +3 -5
- package/package.json +13 -13
- package/dist/AiLoader-C7LALoXc.mjs +0 -113
- package/dist/Dialog-91oyw8Pi.mjs +0 -178
- package/dist/Tabs-qsZIc6by.mjs +0 -146
- package/dist/ai-prompt-input-CMVRbC0T.mjs +0 -296
- package/dist/ai-tool-Dew8XiYk.mjs +0 -118
- package/dist/index-CacS_uni.d.mts +0 -10418
- package/dist/index-D_fO4kp1.d.mts +0 -76
- package/dist/mentions-fRKivTvN.mjs +0 -256
- package/dist/props-B9YcQX8X.d.mts +0 -18
- package/dist/props-CIwO25eA.d.mts +0 -12
- package/dist/terminal-DQAU6DW7.mjs +0 -81
- package/dist/use-mentions-DeF_38di.mjs +0 -93
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { PopoverAnchorProps } from "@ark-ui/svelte/popover";
|
|
2
|
-
import { Snippet } from "svelte";
|
|
3
|
-
import { HTMLAttributes } from "svelte/elements";
|
|
4
|
-
//#region src/components/mentions/props.d.ts
|
|
5
|
-
interface MentionEntry {
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
|
-
interface UseMentionsOptions {
|
|
10
|
-
/** The candidates offered once the trigger character is typed. */
|
|
11
|
-
items: MentionEntry[];
|
|
12
|
-
/** The character that summons the candidates. */
|
|
13
|
-
trigger?: string;
|
|
14
|
-
}
|
|
15
|
-
interface UseMentionsHandlers {
|
|
16
|
-
/** The text the field holds right now — read at keystroke time, never
|
|
17
|
-
* from a controlled prop that lags a render behind the caret. */
|
|
18
|
-
getText: () => string;
|
|
19
|
-
/** Writes the field's next text: a mention inserted at the token. */
|
|
20
|
-
setText: (value: string) => void;
|
|
21
|
-
}
|
|
22
|
-
interface MentionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
23
|
-
/** The candidates offered once the trigger character is typed. */
|
|
24
|
-
items?: MentionEntry[];
|
|
25
|
-
/** Two-way bindable — `bind:value` keeps the bound variable mirroring
|
|
26
|
-
* the field; changes are reported through `onValueChange`. */
|
|
27
|
-
value?: string;
|
|
28
|
-
/** The character that summons the candidates. */
|
|
29
|
-
trigger?: string;
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
/** Let the field grow with its text instead of holding `rows`. */
|
|
32
|
-
autoresize?: boolean;
|
|
33
|
-
/** Standing alone, the field announces itself invalid; inside a
|
|
34
|
-
* `Field.Root` the field's own invalid state takes over. */
|
|
35
|
-
invalid?: boolean;
|
|
36
|
-
/** One rung of the control-height ladder for the resting field. */
|
|
37
|
-
size?: "sm" | "md" | "lg";
|
|
38
|
-
/** The field's text turned. */
|
|
39
|
-
onValueChange?: (value: string) => void;
|
|
40
|
-
}
|
|
41
|
-
interface MentionsVesselProps {
|
|
42
|
-
open?: boolean;
|
|
43
|
-
matches?: MentionEntry[];
|
|
44
|
-
active?: number;
|
|
45
|
-
/** The live rectangle the vessel points at — the host's field. */
|
|
46
|
-
anchor?: HTMLTextAreaElement | null;
|
|
47
|
-
/** The host field's rung, so the rows keep the field's register. */
|
|
48
|
-
size?: "sm" | "md" | "lg";
|
|
49
|
-
/** A candidate was confirmed (click or Enter). */
|
|
50
|
-
onInsert?: (entry: MentionEntry) => void;
|
|
51
|
-
/** The keyboard's active row moved. */
|
|
52
|
-
onActiveChange?: (index: number) => void;
|
|
53
|
-
/** The vessel's open state turned. */
|
|
54
|
-
onOpenChange?: (open: boolean) => void;
|
|
55
|
-
/** The host's field, rendered with the popover Anchor's wiring. When
|
|
56
|
-
* absent, the vessel falls back to the `anchor` rectangle. */
|
|
57
|
-
children?: Snippet<[() => PopoverAnchorProps]>;
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/components/mentions/index.d.ts
|
|
61
|
-
/** @-mentions: a plain textarea that, when the text before the caret
|
|
62
|
-
* ends with the trigger character followed by a token, offers the
|
|
63
|
-
* matching candidates in a small anchored vessel; choosing one replaces
|
|
64
|
-
* the token with `trigger + label` and hands the whole text back
|
|
65
|
-
* through `bind:value`. Arrows move, Enter inserts, Escape dismisses. */
|
|
66
|
-
declare const Mentions: import("svelte").Component<MentionsProps, {}, "value"> & {
|
|
67
|
-
Root: import("svelte").Component<MentionsProps, {}, "value">;
|
|
68
|
-
};
|
|
69
|
-
/** The vessel: the candidates themselves as a floating card. Composers
|
|
70
|
-
* that keep their own field anatomy wire it up with `useMentions`
|
|
71
|
-
* directly. */
|
|
72
|
-
declare const MentionsVessel: import("svelte").Component<MentionsVesselProps, {}, ""> & {
|
|
73
|
-
Root: import("svelte").Component<MentionsVesselProps, {}, "">;
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
export { MentionsVesselProps as a, MentionsProps as i, MentionsVessel as n, UseMentionsHandlers as o, MentionEntry as r, UseMentionsOptions as s, Mentions as t };
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { Field } from "./components/field/index.mjs";
|
|
3
|
-
import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
|
|
4
|
-
import "svelte/internal/disclose-version";
|
|
5
|
-
import * as $ from "svelte/internal/client";
|
|
6
|
-
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
|
-
import { Popover } from "@ark-ui/svelte/popover";
|
|
8
|
-
import { Portal } from "@ark-ui/svelte/portal";
|
|
9
|
-
//#region src/components/mentions/MentionsVessel.svelte
|
|
10
|
-
var root$1 = $.from_html(`<div data-scope="mentions" data-part="option" role="option"> </div>`);
|
|
11
|
-
var root_1 = $.from_html(`<div></div>`);
|
|
12
|
-
var root_2 = $.from_html(`<!> <!>`, 1);
|
|
13
|
-
function MentionsVessel$1($$anchor, $$props) {
|
|
14
|
-
$.push($$props, true);
|
|
15
|
-
injectComponentStyle("mentions");
|
|
16
|
-
let open = $.prop($$props, "open", 3, false), matches = $.prop($$props, "matches", 19, () => []), active = $.prop($$props, "active", 3, 0), anchor = $.prop($$props, "anchor", 3, null), size = $.prop($$props, "size", 3, "md");
|
|
17
|
-
var fragment = $.comment();
|
|
18
|
-
var node = $.first_child(fragment);
|
|
19
|
-
{
|
|
20
|
-
let $0 = $.derived(() => $$props.children ? { placement: "bottom-start" } : {
|
|
21
|
-
placement: "bottom-start",
|
|
22
|
-
getAnchorRect: () => anchor()?.getBoundingClientRect() ?? null
|
|
23
|
-
});
|
|
24
|
-
$.component(node, () => Popover.Root, ($$anchor, ArkPopover_Root) => {
|
|
25
|
-
ArkPopover_Root($$anchor, {
|
|
26
|
-
get open() {
|
|
27
|
-
return open();
|
|
28
|
-
},
|
|
29
|
-
get positioning() {
|
|
30
|
-
return $.get($0);
|
|
31
|
-
},
|
|
32
|
-
onOpenChange: (details) => $$props.onOpenChange?.(details.open),
|
|
33
|
-
children: ($$anchor, $$slotProps) => {
|
|
34
|
-
var fragment_1 = root_2();
|
|
35
|
-
var node_1 = $.first_child(fragment_1);
|
|
36
|
-
var consequent = ($$anchor) => {
|
|
37
|
-
var fragment_2 = $.comment();
|
|
38
|
-
var node_2 = $.first_child(fragment_2);
|
|
39
|
-
{
|
|
40
|
-
const asChild = ($$anchor, anchorProps = $.noop) => {
|
|
41
|
-
var fragment_3 = $.comment();
|
|
42
|
-
var node_3 = $.first_child(fragment_3);
|
|
43
|
-
$.snippet(node_3, () => $$props.children, anchorProps);
|
|
44
|
-
$.append($$anchor, fragment_3);
|
|
45
|
-
};
|
|
46
|
-
$.component(node_2, () => Popover.Anchor, ($$anchor, ArkPopover_Anchor) => {
|
|
47
|
-
ArkPopover_Anchor($$anchor, {
|
|
48
|
-
asChild,
|
|
49
|
-
$$slots: { asChild: true }
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
$.append($$anchor, fragment_2);
|
|
54
|
-
};
|
|
55
|
-
$.if(node_1, ($$render) => {
|
|
56
|
-
if ($$props.children) $$render(consequent);
|
|
57
|
-
});
|
|
58
|
-
var node_4 = $.sibling(node_1, 2);
|
|
59
|
-
Portal(node_4, {
|
|
60
|
-
children: ($$anchor, $$slotProps) => {
|
|
61
|
-
var fragment_4 = $.comment();
|
|
62
|
-
var node_5 = $.first_child(fragment_4);
|
|
63
|
-
$.component(node_5, () => Popover.Positioner, ($$anchor, ArkPopover_Positioner) => {
|
|
64
|
-
ArkPopover_Positioner($$anchor, {
|
|
65
|
-
children: ($$anchor, $$slotProps) => {
|
|
66
|
-
var fragment_5 = $.comment();
|
|
67
|
-
var node_6 = $.first_child(fragment_5);
|
|
68
|
-
{
|
|
69
|
-
const asChild = ($$anchor, contentProps = $.noop) => {
|
|
70
|
-
var div = root_1();
|
|
71
|
-
$.attribute_effect(div, ($0) => ({
|
|
72
|
-
...$0,
|
|
73
|
-
"data-scope": "mentions",
|
|
74
|
-
"data-part": "popup",
|
|
75
|
-
"data-size": size(),
|
|
76
|
-
role: "listbox"
|
|
77
|
-
}), [() => contentProps()()]);
|
|
78
|
-
$.each(div, 23, matches, (entry) => entry.value, ($$anchor, entry, index) => {
|
|
79
|
-
var div_1 = root$1();
|
|
80
|
-
$.set_attribute(div_1, "tabindex", -1);
|
|
81
|
-
var text = $.only_child(div_1, true);
|
|
82
|
-
$.template_effect(() => {
|
|
83
|
-
$.set_attribute(div_1, "aria-selected", $.get(index) === active());
|
|
84
|
-
$.set_attribute(div_1, "data-active", $.get(index) === active() ? "" : void 0);
|
|
85
|
-
$.set_text(text, $.get(entry).label);
|
|
86
|
-
});
|
|
87
|
-
$.event("mouseenter", div_1, () => $$props.onActiveChange?.($.get(index)));
|
|
88
|
-
$.delegated("mousedown", div_1, (event) => event.preventDefault());
|
|
89
|
-
$.delegated("click", div_1, () => $$props.onInsert?.($.get(entry)));
|
|
90
|
-
$.delegated("keydown", div_1, (event) => {
|
|
91
|
-
if (event.key !== "Enter" && event.key !== " ") return;
|
|
92
|
-
event.preventDefault();
|
|
93
|
-
$$props.onInsert?.($.get(entry));
|
|
94
|
-
});
|
|
95
|
-
$.append($$anchor, div_1);
|
|
96
|
-
});
|
|
97
|
-
$.reset(div);
|
|
98
|
-
$.append($$anchor, div);
|
|
99
|
-
};
|
|
100
|
-
$.component(node_6, () => Popover.Content, ($$anchor, ArkPopover_Content) => {
|
|
101
|
-
ArkPopover_Content($$anchor, {
|
|
102
|
-
asChild,
|
|
103
|
-
$$slots: { asChild: true }
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
$.append($$anchor, fragment_5);
|
|
108
|
-
},
|
|
109
|
-
$$slots: { default: true }
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
$.append($$anchor, fragment_4);
|
|
113
|
-
},
|
|
114
|
-
$$slots: { default: true }
|
|
115
|
-
});
|
|
116
|
-
$.append($$anchor, fragment_1);
|
|
117
|
-
},
|
|
118
|
-
$$slots: { default: true }
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
$.append($$anchor, fragment);
|
|
123
|
-
$.pop();
|
|
124
|
-
}
|
|
125
|
-
$.delegate([
|
|
126
|
-
"mousedown",
|
|
127
|
-
"click",
|
|
128
|
-
"keydown"
|
|
129
|
-
]);
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region src/components/mentions/Mentions.svelte
|
|
132
|
-
var rest_excludes = /* @__PURE__ */ new Set([
|
|
133
|
-
"$$slots",
|
|
134
|
-
"$$events",
|
|
135
|
-
"$$legacy",
|
|
136
|
-
"items",
|
|
137
|
-
"value",
|
|
138
|
-
"trigger",
|
|
139
|
-
"placeholder",
|
|
140
|
-
"autoresize",
|
|
141
|
-
"invalid",
|
|
142
|
-
"size",
|
|
143
|
-
"onValueChange"
|
|
144
|
-
]);
|
|
145
|
-
var root = $.from_html(`<div><!></div>`);
|
|
146
|
-
function Mentions$1($$anchor, $$props) {
|
|
147
|
-
$.push($$props, true);
|
|
148
|
-
injectComponentStyle("mentions");
|
|
149
|
-
let items = $.prop($$props, "items", 19, () => []), value = $.prop($$props, "value", 15, ""), trigger = $.prop($$props, "trigger", 3, "@"), autoresize = $.prop($$props, "autoresize", 3, false), invalid = $.prop($$props, "invalid", 3, false), size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes);
|
|
150
|
-
let textareaEl = $.state(null);
|
|
151
|
-
const mentions = useMentions(() => ({
|
|
152
|
-
items: items(),
|
|
153
|
-
trigger: trigger()
|
|
154
|
-
}), () => $.get(textareaEl), {
|
|
155
|
-
getText: () => $.get(textareaEl)?.value ?? value(),
|
|
156
|
-
setText: (next) => {
|
|
157
|
-
value(next);
|
|
158
|
-
$$props.onValueChange?.(next);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
function onInput(event) {
|
|
162
|
-
$$props.onValueChange?.(event.currentTarget.value);
|
|
163
|
-
mentions.onInput();
|
|
164
|
-
}
|
|
165
|
-
var div = root();
|
|
166
|
-
$.attribute_effect(div, () => ({
|
|
167
|
-
...rest,
|
|
168
|
-
"data-scope": "mentions",
|
|
169
|
-
"data-part": "root",
|
|
170
|
-
"data-size": size()
|
|
171
|
-
}));
|
|
172
|
-
var node = $.child(div);
|
|
173
|
-
{
|
|
174
|
-
const children = ($$anchor, anchorProps = $.noop) => {
|
|
175
|
-
var fragment = $.comment();
|
|
176
|
-
var node_1 = $.first_child(fragment);
|
|
177
|
-
{
|
|
178
|
-
let $0 = $.derived(() => anchorProps()());
|
|
179
|
-
let $1 = $.derived(() => invalid() ? "true" : void 0);
|
|
180
|
-
$.component(node_1, () => Field.Textarea, ($$anchor, Field_Textarea) => {
|
|
181
|
-
Field_Textarea($$anchor, $.spread_props(() => $.get($0), {
|
|
182
|
-
get autoresize() {
|
|
183
|
-
return autoresize();
|
|
184
|
-
},
|
|
185
|
-
rows: 3,
|
|
186
|
-
get placeholder() {
|
|
187
|
-
return $$props.placeholder;
|
|
188
|
-
},
|
|
189
|
-
get "aria-invalid"() {
|
|
190
|
-
return $.get($1);
|
|
191
|
-
},
|
|
192
|
-
"data-scope": "mentions",
|
|
193
|
-
"data-part": "textarea",
|
|
194
|
-
oninput: onInput,
|
|
195
|
-
get onkeydown() {
|
|
196
|
-
return mentions.onKeydown;
|
|
197
|
-
},
|
|
198
|
-
get ref() {
|
|
199
|
-
return $.get(textareaEl);
|
|
200
|
-
},
|
|
201
|
-
set ref($$value) {
|
|
202
|
-
$.set(textareaEl, $$value, true);
|
|
203
|
-
},
|
|
204
|
-
get value() {
|
|
205
|
-
return value();
|
|
206
|
-
},
|
|
207
|
-
set value($$value) {
|
|
208
|
-
value($$value);
|
|
209
|
-
}
|
|
210
|
-
}));
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
$.append($$anchor, fragment);
|
|
214
|
-
};
|
|
215
|
-
MentionsVessel$1(node, {
|
|
216
|
-
get open() {
|
|
217
|
-
return mentions.open;
|
|
218
|
-
},
|
|
219
|
-
get matches() {
|
|
220
|
-
return mentions.matches;
|
|
221
|
-
},
|
|
222
|
-
get active() {
|
|
223
|
-
return mentions.active;
|
|
224
|
-
},
|
|
225
|
-
get size() {
|
|
226
|
-
return size();
|
|
227
|
-
},
|
|
228
|
-
get onInsert() {
|
|
229
|
-
return mentions.insert;
|
|
230
|
-
},
|
|
231
|
-
onActiveChange: (index) => mentions.active = index,
|
|
232
|
-
onOpenChange: (open) => {
|
|
233
|
-
if (!open) mentions.close();
|
|
234
|
-
},
|
|
235
|
-
children,
|
|
236
|
-
$$slots: { default: true }
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
$.reset(div);
|
|
240
|
-
$.append($$anchor, div);
|
|
241
|
-
$.pop();
|
|
242
|
-
}
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region src/components/mentions/index.ts
|
|
245
|
-
/** @-mentions: a plain textarea that, when the text before the caret
|
|
246
|
-
* ends with the trigger character followed by a token, offers the
|
|
247
|
-
* matching candidates in a small anchored vessel; choosing one replaces
|
|
248
|
-
* the token with `trigger + label` and hands the whole text back
|
|
249
|
-
* through `bind:value`. Arrows move, Enter inserts, Escape dismisses. */
|
|
250
|
-
const Mentions = withSelfRoot(Mentions$1);
|
|
251
|
-
/** The vessel: the candidates themselves as a floating card. Composers
|
|
252
|
-
* that keep their own field anatomy wire it up with `useMentions`
|
|
253
|
-
* directly. */
|
|
254
|
-
const MentionsVessel = withSelfRoot(MentionsVessel$1);
|
|
255
|
-
//#endregion
|
|
256
|
-
export { MentionsVessel as n, Mentions as t };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
-
//#region src/components/ai-tool/props.d.ts
|
|
3
|
-
type ToolStatus = "pending" | "running" | "completed" | "error";
|
|
4
|
-
interface ToolProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
/** The name the tool was reached by — shown raw on the trigger
|
|
6
|
-
* unless `label` speaks friendlier words. */
|
|
7
|
-
name: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
/** The state the call reached — stamped on the fold and whispered
|
|
10
|
-
* in the status chip. */
|
|
11
|
-
status?: ToolStatus;
|
|
12
|
-
/** The fold arrives open when set — rides the shared collapsible. */
|
|
13
|
-
defaultOpen?: boolean;
|
|
14
|
-
input?: string;
|
|
15
|
-
output?: string;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { ToolStatus as n, ToolProps as t };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Snippet } from "svelte";
|
|
2
|
-
import { HTMLAttributes } from "svelte/elements";
|
|
3
|
-
//#region src/components/ai-message/props.d.ts
|
|
4
|
-
type MessageRole = "user" | "assistant" | "system";
|
|
5
|
-
interface MessageProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
-
/** Whose stroke this is — the user's words sit in a recessed
|
|
7
|
-
* bubble, the assistant speaks flat on the paper. */
|
|
8
|
-
role?: MessageRole;
|
|
9
|
-
children?: Snippet;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { MessageRole as n, MessageProps as t };
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { n as withSelfRoot } from "./family-CzLaku1F.mjs";
|
|
2
|
-
import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import * as $ from "svelte/internal/client";
|
|
5
|
-
import { injectComponentStyle } from "@bysages/core/styling";
|
|
6
|
-
//#region src/components/terminal/Terminal.svelte
|
|
7
|
-
var rest_excludes = /* @__PURE__ */ new Set([
|
|
8
|
-
"$$slots",
|
|
9
|
-
"$$events",
|
|
10
|
-
"$$legacy",
|
|
11
|
-
"lines",
|
|
12
|
-
"prompt",
|
|
13
|
-
"placeholder",
|
|
14
|
-
"label",
|
|
15
|
-
"onCommand"
|
|
16
|
-
]);
|
|
17
|
-
var root = $.from_html(`<div data-scope="terminal" data-part="line"> </div>`);
|
|
18
|
-
var root_1 = $.from_html(`<div><div data-scope="terminal" data-part="scroll"></div> <div data-scope="terminal" data-part="entry"><span data-scope="terminal" data-part="sigil" aria-hidden="true"> </span> <input data-scope="terminal" data-part="input" spellcheck="false" autocomplete="off"/></div></div>`);
|
|
19
|
-
function Terminal$1($$anchor, $$props) {
|
|
20
|
-
$.push($$props, true);
|
|
21
|
-
injectComponentStyle("terminal");
|
|
22
|
-
let lines = $.prop($$props, "lines", 19, () => []), prompt = $.prop($$props, "prompt", 3, "$"), rest = $.rest_props($$props, rest_excludes);
|
|
23
|
-
const messages = useComponentMessages();
|
|
24
|
-
let draft = $.state("");
|
|
25
|
-
let scroll = $.state(void 0);
|
|
26
|
-
$.user_effect(() => {
|
|
27
|
-
lines().length;
|
|
28
|
-
$.get(scroll)?.scrollTo({ top: $.get(scroll).scrollHeight });
|
|
29
|
-
});
|
|
30
|
-
function submit() {
|
|
31
|
-
const text = $.get(draft).trim();
|
|
32
|
-
if (!text) return;
|
|
33
|
-
$.set(draft, "");
|
|
34
|
-
$$props.onCommand?.(text);
|
|
35
|
-
}
|
|
36
|
-
var div = root_1();
|
|
37
|
-
$.attribute_effect(div, () => ({
|
|
38
|
-
...rest,
|
|
39
|
-
role: "log",
|
|
40
|
-
"aria-label": $$props.label,
|
|
41
|
-
"data-scope": "terminal",
|
|
42
|
-
"data-part": "root"
|
|
43
|
-
}));
|
|
44
|
-
var div_1 = $.child(div);
|
|
45
|
-
$.each(div_1, 21, lines, $.index, ($$anchor, line) => {
|
|
46
|
-
var div_2 = root();
|
|
47
|
-
var text_1 = $.only_child(div_2, true);
|
|
48
|
-
$.template_effect(() => $.set_text(text_1, $.get(line)));
|
|
49
|
-
$.append($$anchor, div_2);
|
|
50
|
-
});
|
|
51
|
-
$.reset(div_1);
|
|
52
|
-
$.bind_this(div_1, ($$value) => $.set(scroll, $$value), () => $.get(scroll));
|
|
53
|
-
var div_3 = $.sibling(div_1, 2);
|
|
54
|
-
var span = $.child(div_3);
|
|
55
|
-
var text_2 = $.only_child(span, true);
|
|
56
|
-
var input = $.sibling(span, 2);
|
|
57
|
-
$.remove_input_defaults(input);
|
|
58
|
-
$.reset(div_3);
|
|
59
|
-
$.reset(div);
|
|
60
|
-
$.template_effect(($0) => {
|
|
61
|
-
$.set_text(text_2, prompt());
|
|
62
|
-
$.set_attribute(input, "placeholder", $$props.placeholder);
|
|
63
|
-
$.set_attribute(input, "aria-label", $0);
|
|
64
|
-
}, [() => messages().terminal.commandLine]);
|
|
65
|
-
$.delegated("keydown", input, (event) => {
|
|
66
|
-
if (event.key === "Enter") {
|
|
67
|
-
event.preventDefault();
|
|
68
|
-
submit();
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
$.bind_value(input, () => $.get(draft), ($$value) => $.set(draft, $$value));
|
|
72
|
-
$.append($$anchor, div);
|
|
73
|
-
$.pop();
|
|
74
|
-
}
|
|
75
|
-
$.delegate(["keydown"]);
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/components/terminal/index.ts
|
|
78
|
-
/** A quiet console: the transcript above, the prompt line below. */
|
|
79
|
-
const Terminal = withSelfRoot(Terminal$1);
|
|
80
|
-
//#endregion
|
|
81
|
-
export { Terminal as t };
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import "svelte/internal/disclose-version";
|
|
2
|
-
import * as $ from "svelte/internal/client";
|
|
3
|
-
import { tick } from "svelte";
|
|
4
|
-
//#region src/components/mentions/use-mentions.svelte
|
|
5
|
-
function useMentions(options, textarea, handlers) {
|
|
6
|
-
const state = $.proxy({
|
|
7
|
-
open: false,
|
|
8
|
-
matches: [],
|
|
9
|
-
active: 0
|
|
10
|
-
});
|
|
11
|
-
let anchorIndex = 0;
|
|
12
|
-
let caretIndex = 0;
|
|
13
|
-
function closePopup() {
|
|
14
|
-
state.open = false;
|
|
15
|
-
state.matches = [];
|
|
16
|
-
}
|
|
17
|
-
function detect() {
|
|
18
|
-
const text = handlers.getText();
|
|
19
|
-
const caret = textarea()?.selectionStart ?? text.length;
|
|
20
|
-
caretIndex = caret;
|
|
21
|
-
const head = text.slice(0, caret);
|
|
22
|
-
const char = options().trigger ?? "@";
|
|
23
|
-
const anchor = head.lastIndexOf(char);
|
|
24
|
-
const token = anchor === -1 ? "" : head.slice(anchor + char.length);
|
|
25
|
-
if (anchor === -1 || /\s/.test(token)) {
|
|
26
|
-
closePopup();
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const found = options().items.filter((entry) => entry.label.toLowerCase().startsWith(token.toLowerCase()));
|
|
30
|
-
state.matches = found;
|
|
31
|
-
state.active = 0;
|
|
32
|
-
anchorIndex = anchor;
|
|
33
|
-
state.open = found.length > 0;
|
|
34
|
-
}
|
|
35
|
-
async function insert(entry) {
|
|
36
|
-
const text = handlers.getText();
|
|
37
|
-
const char = options().trigger ?? "@";
|
|
38
|
-
const next = text.slice(0, anchorIndex) + char + entry.label + " " + text.slice(caretIndex);
|
|
39
|
-
handlers.setText(next);
|
|
40
|
-
closePopup();
|
|
41
|
-
await tick();
|
|
42
|
-
const el = textarea();
|
|
43
|
-
if (!el) return;
|
|
44
|
-
const caret = anchorIndex + char.length + entry.label.length + 1;
|
|
45
|
-
el.focus();
|
|
46
|
-
el.setSelectionRange(caret, caret);
|
|
47
|
-
}
|
|
48
|
-
/** Feed the field's input events through here — the vessel watches
|
|
49
|
-
* the text as it lands, from the element itself. */
|
|
50
|
-
function onInput() {
|
|
51
|
-
detect();
|
|
52
|
-
}
|
|
53
|
-
/** Arrows move, Enter inserts, Escape dismisses. Answers `true` when
|
|
54
|
-
* the vessel consumed the key. */
|
|
55
|
-
function onKeydown(event) {
|
|
56
|
-
if (!state.open || state.matches.length === 0) return false;
|
|
57
|
-
if (event.key === "ArrowDown") {
|
|
58
|
-
event.preventDefault();
|
|
59
|
-
state.active = (state.active + 1) % state.matches.length;
|
|
60
|
-
} else if (event.key === "ArrowUp") {
|
|
61
|
-
event.preventDefault();
|
|
62
|
-
state.active = (state.active - 1 + state.matches.length) % state.matches.length;
|
|
63
|
-
} else if (event.key === "Enter") {
|
|
64
|
-
event.preventDefault();
|
|
65
|
-
insert(state.matches[state.active]);
|
|
66
|
-
} else if (event.key === "Escape") closePopup();
|
|
67
|
-
else return false;
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
get open() {
|
|
72
|
-
return state.open;
|
|
73
|
-
},
|
|
74
|
-
set open(value) {
|
|
75
|
-
state.open = value;
|
|
76
|
-
},
|
|
77
|
-
get matches() {
|
|
78
|
-
return state.matches;
|
|
79
|
-
},
|
|
80
|
-
get active() {
|
|
81
|
-
return state.active;
|
|
82
|
-
},
|
|
83
|
-
set active(value) {
|
|
84
|
-
state.active = value;
|
|
85
|
-
},
|
|
86
|
-
insert,
|
|
87
|
-
close: closePopup,
|
|
88
|
-
onInput,
|
|
89
|
-
onKeydown
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
//#endregion
|
|
93
|
-
export { useMentions as t };
|