themelia-react-ui 2.0.1 → 2.0.3
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 +317 -131
- package/README.md +25 -9
- package/THIRD_PARTY_NOTICES.md +7 -0
- package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-CYxKfo69.js → auth-BGua8ouh.js} +58 -54
- package/dist/auth-BGua8ouh.js.map +1 -0
- package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +40 -36
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +92 -92
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +14 -14
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +171 -176
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +6 -6
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +42 -42
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +260 -240
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +620 -585
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1152 -1109
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +48 -39
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +13 -12
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
- package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
- package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
- package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
- package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
- package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-DaHESuiL.js +355 -0
- package/dist/combobox-DaHESuiL.js.map +1 -0
- package/dist/{combobox-DLl0bfiq.js → combobox-Dxo2fAYQ.js} +289 -279
- package/dist/combobox-Dxo2fAYQ.js.map +1 -0
- package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-BpDuCUUu.js → comments-DD0DUPwJ.js} +114 -105
- package/dist/comments-DD0DUPwJ.js.map +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/combobox/combobox-field.d.ts +16 -0
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/forms/form-sizing.d.ts +11 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/rich-text-editor/index.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +17 -4
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/text-link.d.ts +4 -0
- package/dist/components/ui/combobox-dismiss.d.ts +16 -0
- package/dist/components/ui/combobox.d.ts +16 -7
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/popover.d.ts +1 -1
- package/dist/components/ui/sheet.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
- package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
- package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
- package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/{date-picker-CF-DtUpF.js → date-picker-B2K3ucWn.js} +594 -593
- package/dist/date-picker-B2K3ucWn.js.map +1 -0
- package/dist/date-pickers-Ds8gLaoP.js +175 -0
- package/dist/date-pickers-Ds8gLaoP.js.map +1 -0
- package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +398 -375
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +188 -179
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +137 -137
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +255 -255
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +254 -248
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +35 -32
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +118 -117
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +233 -231
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +789 -775
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +922 -902
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +28 -24
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +18 -15
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +12 -12
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +15 -13
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +493 -489
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/{filters-BkHH53uv.js → filters-DJVAveHA.js} +589 -580
- package/dist/filters-DJVAveHA.js.map +1 -0
- package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
- package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-BOefOKd1.js → header-BSfIEWbI.js} +160 -153
- package/dist/header-BSfIEWbI.js.map +1 -0
- package/dist/{hooks-9k_TtmKh.js → hooks-ClH9thn4.js} +2 -2
- package/dist/{hooks-9k_TtmKh.js.map → hooks-ClH9thn4.js.map} +1 -1
- package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
- package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +71 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/interaction-recipes.d.ts +5 -0
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/tone-recipes.d.ts +8 -0
- package/dist/lib/ui-provider/types.d.ts +2 -2
- package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/{mentions-D-uyCh01.js → mentions-CGlEJ15c.js} +144 -142
- package/dist/mentions-CGlEJ15c.js.map +1 -0
- package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/{overlays-I0axtYA6.js → overlays-tMkF-VAN.js} +282 -278
- package/dist/overlays-tMkF-VAN.js.map +1 -0
- package/dist/{page-B5dTH9gE.js → page-CL9YeH_V.js} +8 -8
- package/dist/{page-B5dTH9gE.js.map → page-CL9YeH_V.js.map} +1 -1
- package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
- package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Di55PyAI.js → popover-gnTOhbFM.js} +69 -66
- package/dist/popover-gnTOhbFM.js.map +1 -0
- package/dist/popover-menu-Cn9rUkdc.js +100 -0
- package/dist/popover-menu-Cn9rUkdc.js.map +1 -0
- package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
- package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
- package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
- package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
- package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
- package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/{sheet-4SEvVYzA.js → sheet-ijlsjq-n.js} +76 -73
- package/dist/sheet-ijlsjq-n.js.map +1 -0
- package/dist/{sidebar-C7WWR29L.js → sidebar-Db6gkh3U.js} +183 -182
- package/dist/sidebar-Db6gkh3U.js.map +1 -0
- package/dist/{sidebar-d7Dg80ln.js → sidebar-DkTO4VTO.js} +14 -13
- package/dist/{sidebar-d7Dg80ln.js.map → sidebar-DkTO4VTO.js.map} +1 -1
- package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
- package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
- package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
- package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
- package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
- package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
- package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/{value-inputs-TAYMX111.js → value-inputs-TaX4OjNk.js} +268 -252
- package/dist/value-inputs-TaX4OjNk.js.map +1 -0
- package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/{workspace-DH0v0KcB.js → workspace-B-OEm3Kf.js} +34 -33
- package/dist/workspace-B-OEm3Kf.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +3 -3
- package/docs/consumer-skill/references/agents-md.md +1 -1
- package/docs/consumer-skill/references/composition.md +8 -6
- package/docs/consumer-skill/references/installation.md +6 -0
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +105 -2
- package/docs/consumer-skill/references/review.md +7 -0
- package/docs/consumer-skill/references/theming.md +71 -6
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +26 -0
- package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
- package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
- package/package.json +8 -4
- package/dist/accordion-B6a3vVgA.js.map +0 -1
- package/dist/action-menu-TzCoSlwL.js +0 -280
- package/dist/action-menu-TzCoSlwL.js.map +0 -1
- package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
- package/dist/ai-artifact-BMJdv-6q.js +0 -1115
- package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
- package/dist/attachment-BtfhGm8i.js +0 -245
- package/dist/attachment-BtfhGm8i.js.map +0 -1
- package/dist/auth-CYxKfo69.js.map +0 -1
- package/dist/avatar-BBnEJIx8.js.map +0 -1
- package/dist/badge-MrKVNzW9.js.map +0 -1
- package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
- package/dist/breadcrumbs-D5t7I023.js.map +0 -1
- package/dist/buttons-SbIcm1HJ.js.map +0 -1
- package/dist/cards-CiiHpKYd.js +0 -66
- package/dist/cards-CiiHpKYd.js.map +0 -1
- package/dist/chart-QfrARkXl.js.map +0 -1
- package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
- package/dist/code-block-Dgbu-CU3.js.map +0 -1
- package/dist/combobox-2Ic8N9bL.js +0 -278
- package/dist/combobox-2Ic8N9bL.js.map +0 -1
- package/dist/combobox-DLl0bfiq.js.map +0 -1
- package/dist/comments-BpDuCUUu.js.map +0 -1
- package/dist/data-display-DafIvCl5.js.map +0 -1
- package/dist/date-picker-CF-DtUpF.js.map +0 -1
- package/dist/date-pickers-BmzxJl5l.js +0 -174
- package/dist/date-pickers-BmzxJl5l.js.map +0 -1
- package/dist/display-DsQTVzMz.js.map +0 -1
- package/dist/dropdown-menu-E2qmdC7o.js +0 -193
- package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-qNuMBtRH.js +0 -233
- package/dist/feedback-qNuMBtRH.js.map +0 -1
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
- package/dist/filters-BkHH53uv.js.map +0 -1
- package/dist/form-field-DUt4UxSV.js.map +0 -1
- package/dist/form-sizing-By94KzXE.js.map +0 -1
- package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
- package/dist/header-BOefOKd1.js.map +0 -1
- package/dist/input-DWhBBBww.js +0 -262
- package/dist/input-DWhBBBww.js.map +0 -1
- package/dist/input-Ddi_LSYv.js +0 -20
- package/dist/input-Ddi_LSYv.js.map +0 -1
- package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
- package/dist/item-DEmDiTlD.js +0 -265
- package/dist/item-DEmDiTlD.js.map +0 -1
- package/dist/media-gallery-DcTtAaeC.js.map +0 -1
- package/dist/mentions-D-uyCh01.js.map +0 -1
- package/dist/message-CdHgIWKf.js.map +0 -1
- package/dist/metadata-list-X5rYAKSB.js.map +0 -1
- package/dist/navigation-D3KwXmaq.js.map +0 -1
- package/dist/navigation-HJf5zxlH.js.map +0 -1
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
- package/dist/overlays-I0axtYA6.js.map +0 -1
- package/dist/pagination-3bPA_a6K.js +0 -149
- package/dist/pagination-3bPA_a6K.js.map +0 -1
- package/dist/popover-Di55PyAI.js.map +0 -1
- package/dist/popover-menu-B71Tn2Qz.js +0 -99
- package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
- package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
- package/dist/primitives-B-CkiEMU.js.map +0 -1
- package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
- package/dist/settings-CQW3b-Cu.js.map +0 -1
- package/dist/sheet-4SEvVYzA.js.map +0 -1
- package/dist/sidebar-C7WWR29L.js.map +0 -1
- package/dist/smart-card-lFKxn5Hu.js +0 -595
- package/dist/smart-card-lFKxn5Hu.js.map +0 -1
- package/dist/spinner-fa3h1Aif.js +0 -80
- package/dist/spinner-fa3h1Aif.js.map +0 -1
- package/dist/table-CIKyLUsy.js.map +0 -1
- package/dist/table-CrcLN9Io.js +0 -1458
- package/dist/table-CrcLN9Io.js.map +0 -1
- package/dist/tabs-DwBJfjxX.js.map +0 -1
- package/dist/text-inputs-aaK9wcDT.js +0 -326
- package/dist/text-inputs-aaK9wcDT.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-C_SBwHNP.js +0 -442
- package/dist/timelines-C_SBwHNP.js.map +0 -1
- package/dist/tone-recipes-CPoExcTE.js.map +0 -1
- package/dist/typography-DTRkE9zL.js.map +0 -1
- package/dist/ui-provider-1D_NSYzO.js.map +0 -1
- package/dist/upload-BO8-CLN6.js.map +0 -1
- package/dist/upload-queue-EOC8g1gf.js.map +0 -1
- package/dist/usage-card-obRaBskq.js.map +0 -1
- package/dist/utils-l5LpDw2z.js.map +0 -1
- package/dist/value-inputs-TAYMX111.js.map +0 -1
- package/dist/workspace-DH0v0KcB.js.map +0 -1
package/dist/features/ai-chat.js
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { interpolateString as e, useStrings as t } from "../lib/strings.js";
|
|
3
|
-
import { t as n } from "../utils-
|
|
4
|
-
import { n as r } from "../buttons-
|
|
5
|
-
import {
|
|
3
|
+
import { t as n } from "../utils-BRhFDwuU.js";
|
|
4
|
+
import { n as r } from "../buttons-DPZekJFu.js";
|
|
5
|
+
import { c as i, o as a } from "../typography-UTnveOEy.js";
|
|
6
6
|
import { t as o } from "../focus-recipes-B653VaLq.js";
|
|
7
|
-
import { t as s } from "../structure-
|
|
8
|
-
import { t as c } from "../
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
7
|
+
import { t as s } from "../structure-BmisBK-3.js";
|
|
8
|
+
import { t as c } from "../tone-recipes-BPsRAvhu.js";
|
|
9
|
+
import { t as l } from "../badge-HpFqoqSY.js";
|
|
10
|
+
import { t as u } from "../field-state-recipes-BVA2CWHo.js";
|
|
11
|
+
import { d } from "../text-inputs-f9Ia-aCi.js";
|
|
12
|
+
import { s as f } from "../data-display-DT_khPl_.js";
|
|
13
|
+
import { c as p, l as m, s as h } from "../message-DZ_ruyUV.js";
|
|
14
|
+
import { S as g, _, a as v, b as y, d as b, h as x, l as S, p as C, r as w, s as T, t as E, y as D } from "../ai-artifact-DvTwDVyL.js";
|
|
15
|
+
import { useCallback as O, useEffect as k, useRef as A, useState as j } from "react";
|
|
16
|
+
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
17
|
+
import { ArrowDown as F, ArrowUp as I, Loader2 as L, Paperclip as R, Sparkles as z, Square as B, X as ee } from "lucide-react";
|
|
16
18
|
//#region src/components/features/ai-chat/ai-chat.strings.ts
|
|
17
|
-
var
|
|
19
|
+
var V = {
|
|
18
20
|
placeholder: "Ask anything…",
|
|
19
21
|
attachAria: "Attach files",
|
|
20
22
|
submitAria: "Send message",
|
|
21
23
|
stopAria: "Stop generating",
|
|
22
24
|
modelPickerAria: "Choose model",
|
|
23
25
|
hint: "Press {{submitKey}} to send · {{newlineKey}} for newline"
|
|
24
|
-
},
|
|
26
|
+
}, H = {
|
|
25
27
|
transcriptAria: "Conversation messages",
|
|
26
28
|
empty: "No messages yet.",
|
|
27
29
|
scrollToBottom: "Jump to latest",
|
|
28
30
|
scrollToBottomAria: "Scroll to bottom"
|
|
29
|
-
},
|
|
31
|
+
}, U = {
|
|
30
32
|
header: "In queue",
|
|
31
33
|
cancelAria: "Remove from queue",
|
|
32
34
|
queuedLabel: "Queued",
|
|
33
35
|
runningLabel: "Running"
|
|
34
|
-
},
|
|
35
|
-
prompt:
|
|
36
|
-
conversation:
|
|
37
|
-
queue:
|
|
38
|
-
suggestions:
|
|
39
|
-
message:
|
|
36
|
+
}, W = { header: "Try" }, G = { pending: "Thinking…" }, K = {
|
|
37
|
+
prompt: V,
|
|
38
|
+
conversation: H,
|
|
39
|
+
queue: U,
|
|
40
|
+
suggestions: W,
|
|
41
|
+
message: G,
|
|
40
42
|
emptyTitle: "Start a conversation",
|
|
41
43
|
emptyDescription: "Ask a question, share context, or attach a file to get going.",
|
|
42
44
|
disabledAnnouncement: "Chat is disabled"
|
|
43
45
|
};
|
|
44
46
|
//#endregion
|
|
45
47
|
//#region src/components/features/ai-chat/partials/ai-chat-attachments-strip.tsx
|
|
46
|
-
function
|
|
47
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
48
|
+
function q({ attachments: e, onRemove: t, onOpen: r, className: i }) {
|
|
49
|
+
return e.length === 0 ? null : /* @__PURE__ */ N(s, {
|
|
48
50
|
direction: "horizontal",
|
|
49
51
|
gap: "sm",
|
|
50
52
|
className: n("ai-chat-attachments-strip--component", i),
|
|
51
|
-
children: e.map((e) => /* @__PURE__ */
|
|
53
|
+
children: e.map((e) => /* @__PURE__ */ N(x, {
|
|
52
54
|
name: e.name,
|
|
53
55
|
meta: e.meta,
|
|
54
56
|
kind: e.kind,
|
|
@@ -61,17 +63,17 @@ function K({ attachments: e, onRemove: t, onOpen: r, className: i }) {
|
|
|
61
63
|
}, e.id))
|
|
62
64
|
});
|
|
63
65
|
}
|
|
64
|
-
|
|
66
|
+
q.displayName = "AiChatAttachmentsStrip";
|
|
65
67
|
//#endregion
|
|
66
68
|
//#region src/components/features/ai-chat/hooks/use-ai-chat-scroll.ts
|
|
67
|
-
function
|
|
68
|
-
let r =
|
|
69
|
+
function te({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}) {
|
|
70
|
+
let r = A(null), i = A(null), [a, o] = j(!0), s = O((e = "smooth") => {
|
|
69
71
|
i.current?.scrollIntoView({
|
|
70
72
|
behavior: e,
|
|
71
73
|
block: "end"
|
|
72
74
|
});
|
|
73
75
|
}, []);
|
|
74
|
-
return
|
|
76
|
+
return k(() => {
|
|
75
77
|
let t = r.current;
|
|
76
78
|
if (!t) return;
|
|
77
79
|
let n = () => {
|
|
@@ -79,7 +81,7 @@ function q({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
|
|
|
79
81
|
o(n <= e);
|
|
80
82
|
};
|
|
81
83
|
return n(), t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
|
|
82
|
-
}, [e]),
|
|
84
|
+
}, [e]), k(() => {
|
|
83
85
|
if (n || !a) return;
|
|
84
86
|
let e = window.requestAnimationFrame(() => s("auto"));
|
|
85
87
|
return () => window.cancelAnimationFrame(e);
|
|
@@ -92,31 +94,31 @@ function q({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
|
|
|
92
94
|
}
|
|
93
95
|
//#endregion
|
|
94
96
|
//#region src/components/features/ai-chat/partials/ai-chat-conversation.tsx
|
|
95
|
-
function J({ messages: e, renderMessage:
|
|
96
|
-
let m = t(
|
|
97
|
+
function J({ messages: e, renderMessage: a, intro: c, footer: l, empty: u, disableAutoScroll: d, className: f, strings: p }) {
|
|
98
|
+
let m = t(H, p), { containerRef: h, endRef: g, isAtBottom: _, scrollToBottom: v } = te({
|
|
97
99
|
dependency: e.length,
|
|
98
100
|
disableAutoScroll: d
|
|
99
101
|
}), y = e.length === 0 && !c;
|
|
100
|
-
return /* @__PURE__ */
|
|
102
|
+
return /* @__PURE__ */ P("div", {
|
|
101
103
|
className: n("ai-chat-conversation--component relative flex h-full min-h-0 flex-col", f),
|
|
102
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ P("div", {
|
|
103
105
|
ref: h,
|
|
104
106
|
tabIndex: 0,
|
|
105
107
|
"aria-label": m.transcriptAria,
|
|
106
108
|
className: `flex-1 overflow-y-auto p-surface focus-visible:outline-none ${o.inset}`,
|
|
107
109
|
children: [
|
|
108
|
-
!!c && /* @__PURE__ */
|
|
110
|
+
!!c && /* @__PURE__ */ N("div", {
|
|
109
111
|
className: "mb-space-xl",
|
|
110
112
|
children: c
|
|
111
113
|
}),
|
|
112
|
-
y ? u ?? /* @__PURE__ */
|
|
114
|
+
y ? u ?? /* @__PURE__ */ N("div", {
|
|
113
115
|
className: "flex h-full items-center justify-center p-surface-lg",
|
|
114
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ N(i, {
|
|
115
117
|
type: "secondary",
|
|
116
118
|
children: m.empty
|
|
117
119
|
})
|
|
118
|
-
}) : /* @__PURE__ */
|
|
119
|
-
render: /* @__PURE__ */
|
|
120
|
+
}) : /* @__PURE__ */ N(s, {
|
|
121
|
+
render: /* @__PURE__ */ N("ol", {}),
|
|
120
122
|
gap: "xl",
|
|
121
123
|
className: "ai-chat-conversation--messages m-0 list-none p-0 font-sans",
|
|
122
124
|
children: e.map((t, n) => {
|
|
@@ -124,29 +126,29 @@ function J({ messages: e, renderMessage: i, intro: c, footer: l, empty: u, disab
|
|
|
124
126
|
isLast: n === e.length - 1,
|
|
125
127
|
index: n
|
|
126
128
|
};
|
|
127
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ N("li", { children: a(t, r) }, t.id);
|
|
128
130
|
})
|
|
129
131
|
}),
|
|
130
|
-
!!l && /* @__PURE__ */
|
|
132
|
+
!!l && /* @__PURE__ */ N("div", {
|
|
131
133
|
className: "mt-space-xl",
|
|
132
134
|
children: l
|
|
133
135
|
}),
|
|
134
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ N("div", {
|
|
135
137
|
ref: g,
|
|
136
138
|
"aria-hidden": !0,
|
|
137
139
|
className: "h-px"
|
|
138
140
|
})
|
|
139
141
|
]
|
|
140
|
-
}), !_ && /* @__PURE__ */
|
|
142
|
+
}), !_ && /* @__PURE__ */ N("div", {
|
|
141
143
|
className: "ai-chat-conversation--jump flex shrink-0 justify-center border-t border-border/60 bg-background px-space-md py-space-sm",
|
|
142
|
-
children: /* @__PURE__ */
|
|
144
|
+
children: /* @__PURE__ */ P(r, {
|
|
143
145
|
type: "button",
|
|
144
146
|
tone: "secondary",
|
|
145
147
|
buttonStyle: "solid",
|
|
146
148
|
"aria-label": m.scrollToBottomAria,
|
|
147
149
|
onClick: () => v("smooth"),
|
|
148
150
|
className: n("shadow-sm max-sm:size-action-sm max-sm:min-h-0 max-sm:p-0", "border border-border/60"),
|
|
149
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ N(F, { className: "size-icon-md" }), /* @__PURE__ */ N(i, {
|
|
150
152
|
tag: "span",
|
|
151
153
|
size: "pxs",
|
|
152
154
|
className: "max-sm:sr-only",
|
|
@@ -159,24 +161,24 @@ function J({ messages: e, renderMessage: i, intro: c, footer: l, empty: u, disab
|
|
|
159
161
|
J.displayName = "AiChatConversation";
|
|
160
162
|
//#endregion
|
|
161
163
|
//#region src/components/features/ai-chat/partials/ai-chat-empty-state.tsx
|
|
162
|
-
function Y({ title: e = "Start a conversation", description: t, icon: r =
|
|
163
|
-
let o = /* @__PURE__ */
|
|
164
|
+
function Y({ title: e = "Start a conversation", description: t, icon: r = z, below: i, className: a }) {
|
|
165
|
+
let o = /* @__PURE__ */ N(r, {
|
|
164
166
|
className: "size-icon",
|
|
165
167
|
"aria-hidden": "true"
|
|
166
168
|
});
|
|
167
|
-
return /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ P(s, {
|
|
168
170
|
gap: "md",
|
|
169
171
|
align: "center",
|
|
170
172
|
justify: "center",
|
|
171
173
|
className: n("ai-chat-empty-state--component min-h-full text-center", a),
|
|
172
|
-
children: [/* @__PURE__ */
|
|
174
|
+
children: [/* @__PURE__ */ N(f, {
|
|
173
175
|
title: e,
|
|
174
176
|
description: t ?? !1,
|
|
175
177
|
media: o,
|
|
176
178
|
mediaVariant: "icon",
|
|
177
179
|
padding: "md",
|
|
178
180
|
className: "w-full"
|
|
179
|
-
}), !!i && /* @__PURE__ */
|
|
181
|
+
}), !!i && /* @__PURE__ */ N("div", {
|
|
180
182
|
className: "w-full max-w-2xl",
|
|
181
183
|
children: i
|
|
182
184
|
})]
|
|
@@ -186,20 +188,20 @@ Y.displayName = "AiChatEmptyState";
|
|
|
186
188
|
//#endregion
|
|
187
189
|
//#region src/components/features/ai-chat/partials/ai-chat-message.tsx
|
|
188
190
|
function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, className: o, strings: c }) {
|
|
189
|
-
let l = t(
|
|
190
|
-
for (let t of e.parts) t.type === "text" ?
|
|
191
|
-
let _ =
|
|
191
|
+
let l = t(G, c), u = e.role === "user" ? "end" : "start", d = [], f = [];
|
|
192
|
+
for (let t of e.parts) t.type === "text" ? d.push(t) : f.push(t);
|
|
193
|
+
let _ = d.map((e) => e.type === "text" ? e.plain ?? re(e.content) : "").filter(Boolean).join("\n") || void 0, v = e.pending ? /* @__PURE__ */ N(D, { children: l.pending }) : d.length === 0 && f.length > 0 ? null : /* @__PURE__ */ N(s, {
|
|
192
194
|
gap: "md",
|
|
193
|
-
children:
|
|
195
|
+
children: d.map((e, t) => e.type === "text" ? /* @__PURE__ */ N("div", {
|
|
194
196
|
className: "whitespace-pre-wrap",
|
|
195
197
|
children: e.content
|
|
196
198
|
}, t) : null)
|
|
197
|
-
}), y = v !== null || e.pending, b = y && (e.avatar == null ||
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
+
}), y = v !== null || e.pending, b = y && (e.avatar == null || h(e.avatar)), x = b ? m[u] : "col-start-1";
|
|
200
|
+
return /* @__PURE__ */ P(s, {
|
|
199
201
|
gap: "md",
|
|
200
|
-
className: n("ai-chat-message--component grid min-w-0", b ?
|
|
202
|
+
className: n("ai-chat-message--component grid min-w-0", b ? p[u] : "grid-cols-1", o),
|
|
201
203
|
children: [
|
|
202
|
-
y && /* @__PURE__ */
|
|
204
|
+
y && /* @__PURE__ */ N(g, {
|
|
203
205
|
role: e.role,
|
|
204
206
|
avatar: e.avatar,
|
|
205
207
|
authorName: e.authorName,
|
|
@@ -211,15 +213,15 @@ function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, classN
|
|
|
211
213
|
onRegenerate: i,
|
|
212
214
|
children: v
|
|
213
215
|
}),
|
|
214
|
-
|
|
216
|
+
f.length > 0 && /* @__PURE__ */ N(s, {
|
|
215
217
|
gap: "md",
|
|
216
218
|
className: n("ai-chat-message--parts min-w-0", x),
|
|
217
|
-
children:
|
|
219
|
+
children: f.map((e, t) => /* @__PURE__ */ N(ne, {
|
|
218
220
|
part: e,
|
|
219
221
|
onAttachmentOpen: a
|
|
220
222
|
}, t))
|
|
221
223
|
}),
|
|
222
|
-
!!e.trailing && /* @__PURE__ */
|
|
224
|
+
!!e.trailing && /* @__PURE__ */ N("div", {
|
|
223
225
|
className: n("ai-chat-message--trailing min-w-0", x),
|
|
224
226
|
children: e.trailing
|
|
225
227
|
})
|
|
@@ -227,19 +229,19 @@ function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, classN
|
|
|
227
229
|
});
|
|
228
230
|
}
|
|
229
231
|
X.displayName = "AiChatMessage";
|
|
230
|
-
function
|
|
232
|
+
function ne({ part: e, onAttachmentOpen: t }) {
|
|
231
233
|
switch (e.type) {
|
|
232
|
-
case "text": return /* @__PURE__ */
|
|
233
|
-
case "reasoning": return /* @__PURE__ */
|
|
234
|
+
case "text": return /* @__PURE__ */ N(i, { children: e.content });
|
|
235
|
+
case "reasoning": return /* @__PURE__ */ N(T, {
|
|
234
236
|
streaming: e.streaming,
|
|
235
237
|
durationSeconds: e.durationSeconds,
|
|
236
238
|
children: e.content
|
|
237
239
|
});
|
|
238
|
-
case "chain-of-thought": return /* @__PURE__ */
|
|
240
|
+
case "chain-of-thought": return /* @__PURE__ */ N(v, {
|
|
239
241
|
steps: e.steps,
|
|
240
242
|
streaming: e.streaming
|
|
241
243
|
});
|
|
242
|
-
case "tool": return /* @__PURE__ */
|
|
244
|
+
case "tool": return /* @__PURE__ */ N(y, {
|
|
243
245
|
name: e.name,
|
|
244
246
|
status: e.status,
|
|
245
247
|
icon: e.icon,
|
|
@@ -249,24 +251,24 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
249
251
|
durationMs: e.durationMs,
|
|
250
252
|
defaultExpanded: e.defaultExpanded
|
|
251
253
|
});
|
|
252
|
-
case "code": return /* @__PURE__ */
|
|
254
|
+
case "code": return /* @__PURE__ */ N(_, {
|
|
253
255
|
code: e.code,
|
|
254
256
|
language: e.language,
|
|
255
257
|
filename: e.filename,
|
|
256
258
|
showLineNumbers: e.showLineNumbers,
|
|
257
259
|
highlightLines: e.highlightLines
|
|
258
260
|
});
|
|
259
|
-
case "attachments": return /* @__PURE__ */
|
|
261
|
+
case "attachments": return /* @__PURE__ */ N(q, {
|
|
260
262
|
attachments: e.items,
|
|
261
263
|
onOpen: t ? (e) => t(e.id) : void 0
|
|
262
264
|
});
|
|
263
|
-
case "sources": return /* @__PURE__ */
|
|
265
|
+
case "sources": return /* @__PURE__ */ N(S, {
|
|
264
266
|
sources: e.items,
|
|
265
267
|
variant: e.variant,
|
|
266
268
|
defaultExpanded: e.defaultExpanded
|
|
267
269
|
});
|
|
268
|
-
case "task": return /* @__PURE__ */
|
|
269
|
-
case "artifact": return /* @__PURE__ */
|
|
270
|
+
case "task": return /* @__PURE__ */ N(w, { task: e.task });
|
|
271
|
+
case "artifact": return /* @__PURE__ */ N(E, {
|
|
270
272
|
title: e.title,
|
|
271
273
|
subtitle: e.subtitle,
|
|
272
274
|
icon: e.icon,
|
|
@@ -276,7 +278,7 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
276
278
|
onDownload: e.onDownload,
|
|
277
279
|
children: e.body
|
|
278
280
|
});
|
|
279
|
-
case "confirmation": return /* @__PURE__ */
|
|
281
|
+
case "confirmation": return /* @__PURE__ */ N(b, {
|
|
280
282
|
title: e.title,
|
|
281
283
|
description: e.description,
|
|
282
284
|
tone: e.tone,
|
|
@@ -285,99 +287,105 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
285
287
|
onApprove: e.onApprove,
|
|
286
288
|
onReject: e.onReject
|
|
287
289
|
});
|
|
288
|
-
case "custom": return /* @__PURE__ */
|
|
290
|
+
case "custom": return /* @__PURE__ */ N(M, { children: e.render() });
|
|
289
291
|
default: return null;
|
|
290
292
|
}
|
|
291
293
|
}
|
|
292
|
-
function
|
|
293
|
-
return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(
|
|
294
|
+
function re(e) {
|
|
295
|
+
return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(re).join("") : "";
|
|
294
296
|
}
|
|
295
297
|
//#endregion
|
|
296
298
|
//#region src/components/features/ai-chat/partials/ai-chat-prompt-input.tsx
|
|
297
|
-
function Z({ value:
|
|
298
|
-
let
|
|
299
|
+
function Z({ value: a, onValueChange: o, onSubmit: s, onStop: c, streaming: l = !1, disabled: f = !1, attachments: p = [], onRemoveAttachment: m, onAttach: h, showAttach: g, leadingActions: _, trailingActions: v, hideHint: y = !1, minRows: b = 1, maxRows: x = 8, autoFocus: S = !1, submitKeyLabel: C = "↩", className: w, strings: T }) {
|
|
300
|
+
let E = t(V, T), D = A(null), k = !l && !f && (a.trim().length > 0 || p.length > 0), j = O(() => {
|
|
299
301
|
k && s?.({
|
|
300
|
-
text:
|
|
301
|
-
attachments:
|
|
302
|
+
text: a,
|
|
303
|
+
attachments: p
|
|
302
304
|
});
|
|
303
305
|
}, [
|
|
304
306
|
k,
|
|
305
307
|
s,
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
]),
|
|
309
|
-
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(),
|
|
310
|
-
}, [
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
-
|
|
308
|
+
a,
|
|
309
|
+
p
|
|
310
|
+
]), M = O((e) => {
|
|
311
|
+
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), j());
|
|
312
|
+
}, [j]), F = g ?? !!h;
|
|
313
|
+
return /* @__PURE__ */ P("div", {
|
|
314
|
+
inert: f || void 0,
|
|
315
|
+
className: n("ai-chat-prompt-input--component", "rounded-radius border border-input bg-card text-card-foreground transition-[color,box-shadow] duration-150", u.groupFocus, u.groupInvalid, f && "opacity-50 pointer-events-none", w),
|
|
313
316
|
children: [
|
|
314
|
-
|
|
317
|
+
p.length > 0 && /* @__PURE__ */ N("div", {
|
|
315
318
|
className: "border-b border-border/60 p-surface-xs",
|
|
316
|
-
children: /* @__PURE__ */
|
|
317
|
-
attachments:
|
|
318
|
-
onRemove:
|
|
319
|
+
children: /* @__PURE__ */ N(q, {
|
|
320
|
+
attachments: p,
|
|
321
|
+
onRemove: m
|
|
319
322
|
})
|
|
320
323
|
}),
|
|
321
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ N(d, {
|
|
322
325
|
ref: D,
|
|
323
|
-
value:
|
|
326
|
+
value: a,
|
|
324
327
|
onChange: (e) => o(e.target.value),
|
|
325
|
-
onKeyDown:
|
|
326
|
-
placeholder:
|
|
328
|
+
onKeyDown: M,
|
|
329
|
+
placeholder: E.placeholder,
|
|
327
330
|
autoResize: !0,
|
|
328
|
-
minRows:
|
|
329
|
-
maxRows:
|
|
330
|
-
autoFocus:
|
|
331
|
-
disabled:
|
|
332
|
-
|
|
331
|
+
minRows: b,
|
|
332
|
+
maxRows: x,
|
|
333
|
+
autoFocus: S,
|
|
334
|
+
disabled: f,
|
|
335
|
+
"data-slot": "input-group-control",
|
|
336
|
+
className: "rounded-none border-0 bg-transparent text-inherit shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 resize-none disabled:opacity-100"
|
|
333
337
|
}),
|
|
334
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ P("div", {
|
|
335
339
|
className: "flex items-center gap-space-xs border-t border-border/60 px-surface-xs py-space-sm",
|
|
336
340
|
children: [
|
|
337
|
-
|
|
338
|
-
F && /* @__PURE__ */
|
|
341
|
+
_,
|
|
342
|
+
F && /* @__PURE__ */ N(r, {
|
|
339
343
|
type: "button",
|
|
340
344
|
tone: "secondary",
|
|
341
345
|
buttonStyle: "ghost",
|
|
342
346
|
size: "sm",
|
|
343
347
|
iconOnly: !0,
|
|
344
|
-
"aria-label":
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
+
"aria-label": E.attachAria,
|
|
349
|
+
className: "disabled:opacity-100",
|
|
350
|
+
onClick: h,
|
|
351
|
+
disabled: f,
|
|
352
|
+
children: /* @__PURE__ */ N(R, { className: "size-icon" })
|
|
348
353
|
}),
|
|
349
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ P("div", {
|
|
350
355
|
className: "ml-auto flex items-center gap-space-xs",
|
|
351
|
-
children: [
|
|
356
|
+
children: [v, l ? /* @__PURE__ */ N(r, {
|
|
352
357
|
type: "button",
|
|
353
358
|
tone: "secondary",
|
|
354
359
|
buttonStyle: "solid",
|
|
355
360
|
size: "sm",
|
|
356
361
|
iconOnly: !0,
|
|
357
|
-
"aria-label":
|
|
362
|
+
"aria-label": E.stopAria,
|
|
363
|
+
className: "disabled:opacity-100",
|
|
358
364
|
onClick: c,
|
|
359
|
-
|
|
360
|
-
|
|
365
|
+
disabled: f,
|
|
366
|
+
children: /* @__PURE__ */ N(B, { className: "size-icon-md fill-current" })
|
|
367
|
+
}) : /* @__PURE__ */ N(r, {
|
|
361
368
|
type: "button",
|
|
362
369
|
tone: "primary",
|
|
363
370
|
buttonStyle: "solid",
|
|
364
371
|
size: "sm",
|
|
365
372
|
iconOnly: !0,
|
|
366
|
-
"aria-label":
|
|
367
|
-
|
|
373
|
+
"aria-label": E.submitAria,
|
|
374
|
+
className: f ? "disabled:opacity-100" : void 0,
|
|
375
|
+
onClick: j,
|
|
368
376
|
disabled: !k,
|
|
369
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ N(I, { className: "size-icon" })
|
|
370
378
|
})]
|
|
371
379
|
})
|
|
372
380
|
]
|
|
373
381
|
}),
|
|
374
|
-
!
|
|
382
|
+
!y && /* @__PURE__ */ N("div", {
|
|
375
383
|
className: "px-surface-xs pb-surface-xs",
|
|
376
|
-
children: /* @__PURE__ */
|
|
384
|
+
children: /* @__PURE__ */ N(i, {
|
|
377
385
|
size: "xs",
|
|
378
386
|
type: "discrete",
|
|
379
|
-
children: e(
|
|
380
|
-
submitKey:
|
|
387
|
+
children: e(E.hint, {
|
|
388
|
+
submitKey: C,
|
|
381
389
|
newlineKey: "⇧↩"
|
|
382
390
|
})
|
|
383
391
|
})
|
|
@@ -388,51 +396,52 @@ function Z({ value: i, onValueChange: o, onSubmit: s, onStop: c, streaming: u =
|
|
|
388
396
|
Z.displayName = "AiChatPromptInput";
|
|
389
397
|
//#endregion
|
|
390
398
|
//#region src/components/features/ai-chat/partials/ai-chat-queue.tsx
|
|
391
|
-
function Q({ items: e, hideHeader: o = !1, onCancel:
|
|
392
|
-
let
|
|
393
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
399
|
+
function Q({ items: e, hideHeader: o = !1, onCancel: u, className: d, strings: f }) {
|
|
400
|
+
let p = t(U, f);
|
|
401
|
+
return e.length === 0 ? null : /* @__PURE__ */ P(s, {
|
|
394
402
|
gap: "sm",
|
|
395
|
-
className: n("ai-chat-queue--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs",
|
|
396
|
-
children: [!o && /* @__PURE__ */
|
|
403
|
+
className: n("ai-chat-queue--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", d),
|
|
404
|
+
children: [!o && /* @__PURE__ */ P(a, {
|
|
397
405
|
className: "px-1",
|
|
398
406
|
children: [
|
|
399
|
-
|
|
407
|
+
p.header,
|
|
400
408
|
" · ",
|
|
401
409
|
e.length
|
|
402
410
|
]
|
|
403
|
-
}), /* @__PURE__ */
|
|
404
|
-
render: /* @__PURE__ */
|
|
411
|
+
}), /* @__PURE__ */ N(s, {
|
|
412
|
+
render: /* @__PURE__ */ N("ul", {}),
|
|
405
413
|
gap: "xs",
|
|
406
414
|
className: "ai-chat-queue--list m-0 list-none p-0 font-sans",
|
|
407
415
|
children: e.map((e) => {
|
|
408
416
|
let t = e.status ?? "queued";
|
|
409
|
-
return /* @__PURE__ */
|
|
410
|
-
className: "flex items-center gap-space-md rounded-inner bg-card px-space-md py-space-sm",
|
|
417
|
+
return /* @__PURE__ */ P("li", {
|
|
418
|
+
className: "flex items-center gap-space-md rounded-inner bg-card text-card-foreground px-space-md py-space-sm",
|
|
411
419
|
children: [
|
|
412
|
-
t === "running" ? /* @__PURE__ */
|
|
420
|
+
t === "running" ? /* @__PURE__ */ N(L, { className: "size-icon-md shrink-0 animate-spin text-primary-accent" }) : /* @__PURE__ */ N("span", {
|
|
413
421
|
"aria-hidden": !0,
|
|
414
422
|
className: "flex size-icon-md shrink-0 items-center justify-center",
|
|
415
|
-
children: /* @__PURE__ */
|
|
423
|
+
children: /* @__PURE__ */ N("span", { className: n(c.marker, "bg-muted-foreground") })
|
|
416
424
|
}),
|
|
417
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ N(i, {
|
|
426
|
+
type: "inherit",
|
|
418
427
|
className: "flex-1 truncate",
|
|
419
428
|
children: e.label
|
|
420
429
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ N(l, {
|
|
422
431
|
tone: t === "running" ? "info" : "secondary",
|
|
423
|
-
children: t === "running" ?
|
|
432
|
+
children: t === "running" ? p.runningLabel : p.queuedLabel
|
|
424
433
|
}),
|
|
425
|
-
(!!e.onCancel || !!
|
|
434
|
+
(!!e.onCancel || !!u) && /* @__PURE__ */ N(r, {
|
|
426
435
|
type: "button",
|
|
427
436
|
tone: "secondary",
|
|
428
437
|
buttonStyle: "ghost",
|
|
429
438
|
size: "sm",
|
|
430
439
|
iconOnly: !0,
|
|
431
|
-
"aria-label":
|
|
440
|
+
"aria-label": p.cancelAria,
|
|
432
441
|
onClick: () => {
|
|
433
|
-
e.onCancel?.(),
|
|
442
|
+
e.onCancel?.(), u?.(e.id);
|
|
434
443
|
},
|
|
435
|
-
children: /* @__PURE__ */
|
|
444
|
+
children: /* @__PURE__ */ N(ee, { className: "size-icon-md" })
|
|
436
445
|
})
|
|
437
446
|
]
|
|
438
447
|
}, e.id);
|
|
@@ -444,24 +453,24 @@ Q.displayName = "AiChatQueue";
|
|
|
444
453
|
//#endregion
|
|
445
454
|
//#region src/components/features/ai-chat/partials/ai-chat-suggestions-row.tsx
|
|
446
455
|
function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, strings: l }) {
|
|
447
|
-
let u = t(
|
|
448
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
456
|
+
let u = t(W, l);
|
|
457
|
+
return e.length === 0 ? null : /* @__PURE__ */ P("div", {
|
|
449
458
|
className: n("ai-chat-suggestions-row--component flex items-center gap-space-md", c),
|
|
450
|
-
children: [!s && /* @__PURE__ */
|
|
459
|
+
children: [!s && /* @__PURE__ */ N(a, {
|
|
451
460
|
className: "shrink-0",
|
|
452
461
|
children: u.header
|
|
453
|
-
}), /* @__PURE__ */
|
|
462
|
+
}), /* @__PURE__ */ N("div", {
|
|
454
463
|
className: "flex min-w-0 flex-1 items-center gap-space-sm overflow-x-auto p-space-xs [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
455
464
|
children: e.map((e) => {
|
|
456
465
|
let t = e.icon;
|
|
457
|
-
return /* @__PURE__ */
|
|
466
|
+
return /* @__PURE__ */ P(r, {
|
|
458
467
|
type: "button",
|
|
459
468
|
tone: "secondary",
|
|
460
469
|
buttonStyle: "outline",
|
|
461
470
|
size: "sm",
|
|
462
471
|
onClick: () => o?.(e),
|
|
463
472
|
className: "shrink-0 gap-space-sm",
|
|
464
|
-
children: [!!t && /* @__PURE__ */
|
|
473
|
+
children: [!!t && /* @__PURE__ */ N(t, { className: "size-icon-sm text-muted-foreground" }), /* @__PURE__ */ N(i, {
|
|
465
474
|
tag: "span",
|
|
466
475
|
weight: "medium",
|
|
467
476
|
children: e.label
|
|
@@ -474,27 +483,27 @@ function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, string
|
|
|
474
483
|
$.displayName = "AiChatSuggestionsRow";
|
|
475
484
|
//#endregion
|
|
476
485
|
//#region src/components/features/ai-chat/ai-chat.tsx
|
|
477
|
-
function
|
|
478
|
-
let
|
|
486
|
+
function ie({ messages: e, inputValue: r, onInputChange: a, onSubmit: o, onStop: c, streaming: l = !1, disabled: u = !1, attachments: d = [], onRemoveAttachment: f, onAttach: p, showAttach: m, agent: h, headerActions: g, queue: _ = [], onCancelQueueItem: v, suggestions: y = [], onPickSuggestion: b, onMessageCopy: x, onMessageRegenerate: S, onAttachmentOpen: w, disableAutoScroll: T, slots: E, strings: D, className: k }) {
|
|
487
|
+
let A = t(K, D), [, M] = j(0), F = O((e, t) => E?.renderMessage ? E.renderMessage(e, t) : /* @__PURE__ */ N(X, {
|
|
479
488
|
className: "ai-chat-message--component",
|
|
480
489
|
message: e,
|
|
481
|
-
strings:
|
|
482
|
-
onCopy:
|
|
483
|
-
onRegenerate:
|
|
490
|
+
strings: A.message,
|
|
491
|
+
onCopy: x ? () => x(e) : void 0,
|
|
492
|
+
onRegenerate: S ? () => S(e) : void 0,
|
|
484
493
|
onAttachmentOpen: w ? (t) => w(e.id, t) : void 0
|
|
485
494
|
}), [
|
|
486
495
|
w,
|
|
496
|
+
x,
|
|
487
497
|
S,
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
children: /* @__PURE__ */ M(s, {
|
|
498
|
+
E,
|
|
499
|
+
A.message
|
|
500
|
+
]), I = E?.header ?? (h ? /* @__PURE__ */ N("div", {
|
|
501
|
+
className: "border-b border-border bg-card text-card-foreground p-surface",
|
|
502
|
+
children: /* @__PURE__ */ P(s, {
|
|
494
503
|
direction: "horizontal",
|
|
495
504
|
align: "center",
|
|
496
505
|
gap: "lg",
|
|
497
|
-
children: [/* @__PURE__ */
|
|
506
|
+
children: [/* @__PURE__ */ N(C, {
|
|
498
507
|
name: h.name,
|
|
499
508
|
icon: h.icon,
|
|
500
509
|
avatar: h.avatar,
|
|
@@ -502,27 +511,27 @@ function ne({ messages: e, inputValue: r, onInputChange: i, onSubmit: o, onStop:
|
|
|
502
511
|
tone: h.tone,
|
|
503
512
|
status: h.status,
|
|
504
513
|
variant: "inline"
|
|
505
|
-
}), !!g && /* @__PURE__ */
|
|
514
|
+
}), !!g && /* @__PURE__ */ N("div", {
|
|
506
515
|
className: "ml-auto flex items-center gap-space-xs",
|
|
507
516
|
children: g
|
|
508
517
|
})]
|
|
509
518
|
})
|
|
510
|
-
}) : null), L =
|
|
511
|
-
title:
|
|
512
|
-
description:
|
|
513
|
-
}) : null), R =
|
|
519
|
+
}) : null), L = E?.empty ?? (e.length === 0 ? /* @__PURE__ */ N(Y, {
|
|
520
|
+
title: A.emptyTitle,
|
|
521
|
+
description: A.emptyDescription
|
|
522
|
+
}) : null), R = E?.queue ?? (_.length > 0 ? /* @__PURE__ */ N(Q, {
|
|
514
523
|
items: _,
|
|
515
524
|
onCancel: v,
|
|
516
|
-
strings:
|
|
517
|
-
}) : null), z =
|
|
525
|
+
strings: A.queue
|
|
526
|
+
}) : null), z = E?.suggestions ?? (y.length > 0 ? /* @__PURE__ */ N($, {
|
|
518
527
|
suggestions: y,
|
|
519
528
|
onPick: b,
|
|
520
|
-
strings:
|
|
521
|
-
}) : null), B =
|
|
529
|
+
strings: A.suggestions
|
|
530
|
+
}) : null), B = E?.input ?? /* @__PURE__ */ N(Z, {
|
|
522
531
|
value: r,
|
|
523
|
-
onValueChange:
|
|
532
|
+
onValueChange: a,
|
|
524
533
|
onSubmit: (e) => {
|
|
525
|
-
o?.(e),
|
|
534
|
+
o?.(e), M((e) => e + 1);
|
|
526
535
|
},
|
|
527
536
|
onStop: c,
|
|
528
537
|
streaming: l,
|
|
@@ -531,24 +540,24 @@ function ne({ messages: e, inputValue: r, onInputChange: i, onSubmit: o, onStop:
|
|
|
531
540
|
onRemoveAttachment: f,
|
|
532
541
|
onAttach: p,
|
|
533
542
|
showAttach: m,
|
|
534
|
-
strings:
|
|
543
|
+
strings: A.prompt
|
|
535
544
|
});
|
|
536
|
-
return /* @__PURE__ */
|
|
537
|
-
className: n("ai-chat--component flex h-full flex-col overflow-hidden rounded-radius border border-border bg-background",
|
|
545
|
+
return /* @__PURE__ */ P("div", {
|
|
546
|
+
className: n("ai-chat--component box-border flex h-full flex-col overflow-hidden rounded-radius border border-border bg-background text-foreground", k),
|
|
538
547
|
children: [
|
|
539
548
|
I,
|
|
540
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ N(J, {
|
|
541
550
|
messages: e,
|
|
542
551
|
renderMessage: F,
|
|
543
|
-
intro:
|
|
544
|
-
footer:
|
|
552
|
+
intro: E?.intro,
|
|
553
|
+
footer: E?.belowMessages,
|
|
545
554
|
empty: L,
|
|
546
555
|
disableAutoScroll: T,
|
|
547
|
-
strings:
|
|
556
|
+
strings: A.conversation
|
|
548
557
|
}),
|
|
549
|
-
(R || z || B) && /* @__PURE__ */
|
|
550
|
-
className: "border-t border-border bg-card p-surface",
|
|
551
|
-
children: /* @__PURE__ */
|
|
558
|
+
(R || z || B) && /* @__PURE__ */ N("div", {
|
|
559
|
+
className: "border-t border-border bg-card text-card-foreground p-surface",
|
|
560
|
+
children: /* @__PURE__ */ P(s, {
|
|
552
561
|
gap: "md",
|
|
553
562
|
children: [
|
|
554
563
|
R,
|
|
@@ -557,16 +566,16 @@ function ne({ messages: e, inputValue: r, onInputChange: i, onSubmit: o, onStop:
|
|
|
557
566
|
]
|
|
558
567
|
})
|
|
559
568
|
}),
|
|
560
|
-
u && /* @__PURE__ */
|
|
569
|
+
u && /* @__PURE__ */ N(i, {
|
|
561
570
|
className: "sr-only",
|
|
562
571
|
"aria-live": "polite",
|
|
563
|
-
children:
|
|
572
|
+
children: A.disabledAnnouncement
|
|
564
573
|
})
|
|
565
574
|
]
|
|
566
575
|
});
|
|
567
576
|
}
|
|
568
|
-
|
|
577
|
+
ie.displayName = "AiChat";
|
|
569
578
|
//#endregion
|
|
570
|
-
export {
|
|
579
|
+
export { ie as AiChat, q as AiChatAttachmentsStrip, J as AiChatConversation, Y as AiChatEmptyState, X as AiChatMessageView, Z as AiChatPromptInput, Q as AiChatQueue, $ as AiChatSuggestionsRow, H as defaultAiChatConversationStrings, G as defaultAiChatMessageStrings, V as defaultAiChatPromptInputStrings, U as defaultAiChatQueueStrings, K as defaultAiChatStrings, W as defaultAiChatSuggestionsStrings, te as useAiChatScroll };
|
|
571
580
|
|
|
572
581
|
//# sourceMappingURL=ai-chat.js.map
|