themelia-react-ui 2.0.0 → 2.0.2
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 +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- 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-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.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-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- 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 +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- 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 +7 -7
- 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 +20 -20
- 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 +3 -0
- package/dist/base/navigation.js +7 -7
- 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 +216 -220
- 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 +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- 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 +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- 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 +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- 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-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- 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/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- 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/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -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/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- 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/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- 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/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -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 +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- 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 +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- 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 +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- 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 +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- 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 +501 -496
- 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-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- 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-XR9ZpVYL.js +25 -0
- 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/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.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 +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- 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/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.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-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- 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-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.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-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
package/dist/features/ai-chat.js
CHANGED
|
@@ -1,53 +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 {
|
|
5
|
-
import {
|
|
6
|
-
import { t as o } from "../
|
|
7
|
-
import { t as s } from "../
|
|
8
|
-
import {
|
|
9
|
-
import { l } from "../
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
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
|
+
import { t as o } from "../focus-recipes-B653VaLq.js";
|
|
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";
|
|
15
18
|
//#region src/components/features/ai-chat/ai-chat.strings.ts
|
|
16
|
-
var
|
|
19
|
+
var V = {
|
|
17
20
|
placeholder: "Ask anything…",
|
|
18
21
|
attachAria: "Attach files",
|
|
19
22
|
submitAria: "Send message",
|
|
20
23
|
stopAria: "Stop generating",
|
|
21
24
|
modelPickerAria: "Choose model",
|
|
22
25
|
hint: "Press {{submitKey}} to send · {{newlineKey}} for newline"
|
|
23
|
-
},
|
|
26
|
+
}, H = {
|
|
24
27
|
transcriptAria: "Conversation messages",
|
|
25
28
|
empty: "No messages yet.",
|
|
26
29
|
scrollToBottom: "Jump to latest",
|
|
27
30
|
scrollToBottomAria: "Scroll to bottom"
|
|
28
|
-
},
|
|
31
|
+
}, U = {
|
|
29
32
|
header: "In queue",
|
|
30
33
|
cancelAria: "Remove from queue",
|
|
31
34
|
queuedLabel: "Queued",
|
|
32
35
|
runningLabel: "Running"
|
|
33
|
-
},
|
|
34
|
-
prompt:
|
|
35
|
-
conversation:
|
|
36
|
-
queue:
|
|
37
|
-
suggestions:
|
|
38
|
-
message:
|
|
36
|
+
}, W = { header: "Try" }, G = { pending: "Thinking…" }, K = {
|
|
37
|
+
prompt: V,
|
|
38
|
+
conversation: H,
|
|
39
|
+
queue: U,
|
|
40
|
+
suggestions: W,
|
|
41
|
+
message: G,
|
|
39
42
|
emptyTitle: "Start a conversation",
|
|
40
43
|
emptyDescription: "Ask a question, share context, or attach a file to get going.",
|
|
41
44
|
disabledAnnouncement: "Chat is disabled"
|
|
42
45
|
};
|
|
43
46
|
//#endregion
|
|
44
47
|
//#region src/components/features/ai-chat/partials/ai-chat-attachments-strip.tsx
|
|
45
|
-
function
|
|
46
|
-
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, {
|
|
47
50
|
direction: "horizontal",
|
|
48
51
|
gap: "sm",
|
|
49
52
|
className: n("ai-chat-attachments-strip--component", i),
|
|
50
|
-
children: e.map((e) => /* @__PURE__ */
|
|
53
|
+
children: e.map((e) => /* @__PURE__ */ N(x, {
|
|
51
54
|
name: e.name,
|
|
52
55
|
meta: e.meta,
|
|
53
56
|
kind: e.kind,
|
|
@@ -60,17 +63,17 @@ function G({ attachments: e, onRemove: t, onOpen: r, className: i }) {
|
|
|
60
63
|
}, e.id))
|
|
61
64
|
});
|
|
62
65
|
}
|
|
63
|
-
|
|
66
|
+
q.displayName = "AiChatAttachmentsStrip";
|
|
64
67
|
//#endregion
|
|
65
68
|
//#region src/components/features/ai-chat/hooks/use-ai-chat-scroll.ts
|
|
66
|
-
function
|
|
67
|
-
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") => {
|
|
68
71
|
i.current?.scrollIntoView({
|
|
69
72
|
behavior: e,
|
|
70
73
|
block: "end"
|
|
71
74
|
});
|
|
72
75
|
}, []);
|
|
73
|
-
return
|
|
76
|
+
return k(() => {
|
|
74
77
|
let t = r.current;
|
|
75
78
|
if (!t) return;
|
|
76
79
|
let n = () => {
|
|
@@ -78,7 +81,7 @@ function K({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
|
|
|
78
81
|
o(n <= e);
|
|
79
82
|
};
|
|
80
83
|
return n(), t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
|
|
81
|
-
}, [e]),
|
|
84
|
+
}, [e]), k(() => {
|
|
82
85
|
if (n || !a) return;
|
|
83
86
|
let e = window.requestAnimationFrame(() => s("auto"));
|
|
84
87
|
return () => window.cancelAnimationFrame(e);
|
|
@@ -91,114 +94,114 @@ function K({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
|
|
|
91
94
|
}
|
|
92
95
|
//#endregion
|
|
93
96
|
//#region src/components/features/ai-chat/partials/ai-chat-conversation.tsx
|
|
94
|
-
function
|
|
95
|
-
let
|
|
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({
|
|
96
99
|
dependency: e.length,
|
|
97
|
-
disableAutoScroll:
|
|
98
|
-
}),
|
|
99
|
-
return /* @__PURE__ */
|
|
100
|
-
className: n("ai-chat-conversation--component relative flex h-full min-h-0 flex-col",
|
|
101
|
-
children: [/* @__PURE__ */
|
|
102
|
-
ref:
|
|
100
|
+
disableAutoScroll: d
|
|
101
|
+
}), y = e.length === 0 && !c;
|
|
102
|
+
return /* @__PURE__ */ P("div", {
|
|
103
|
+
className: n("ai-chat-conversation--component relative flex h-full min-h-0 flex-col", f),
|
|
104
|
+
children: [/* @__PURE__ */ P("div", {
|
|
105
|
+
ref: h,
|
|
103
106
|
tabIndex: 0,
|
|
104
|
-
"aria-label":
|
|
105
|
-
className:
|
|
107
|
+
"aria-label": m.transcriptAria,
|
|
108
|
+
className: `flex-1 overflow-y-auto p-surface focus-visible:outline-none ${o.inset}`,
|
|
106
109
|
children: [
|
|
107
|
-
!!
|
|
110
|
+
!!c && /* @__PURE__ */ N("div", {
|
|
108
111
|
className: "mb-space-xl",
|
|
109
|
-
children:
|
|
112
|
+
children: c
|
|
110
113
|
}),
|
|
111
|
-
|
|
114
|
+
y ? u ?? /* @__PURE__ */ N("div", {
|
|
112
115
|
className: "flex h-full items-center justify-center p-surface-lg",
|
|
113
|
-
children: /* @__PURE__ */
|
|
116
|
+
children: /* @__PURE__ */ N(i, {
|
|
114
117
|
type: "secondary",
|
|
115
|
-
children:
|
|
118
|
+
children: m.empty
|
|
116
119
|
})
|
|
117
|
-
}) : /* @__PURE__ */
|
|
118
|
-
render: /* @__PURE__ */
|
|
120
|
+
}) : /* @__PURE__ */ N(s, {
|
|
121
|
+
render: /* @__PURE__ */ N("ol", {}),
|
|
119
122
|
gap: "xl",
|
|
120
123
|
className: "ai-chat-conversation--messages m-0 list-none p-0 font-sans",
|
|
121
124
|
children: e.map((t, n) => {
|
|
122
|
-
let
|
|
125
|
+
let r = {
|
|
123
126
|
isLast: n === e.length - 1,
|
|
124
127
|
index: n
|
|
125
128
|
};
|
|
126
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ N("li", { children: a(t, r) }, t.id);
|
|
127
130
|
})
|
|
128
131
|
}),
|
|
129
|
-
!!
|
|
132
|
+
!!l && /* @__PURE__ */ N("div", {
|
|
130
133
|
className: "mt-space-xl",
|
|
131
|
-
children:
|
|
134
|
+
children: l
|
|
132
135
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
ref:
|
|
136
|
+
/* @__PURE__ */ N("div", {
|
|
137
|
+
ref: g,
|
|
135
138
|
"aria-hidden": !0,
|
|
136
139
|
className: "h-px"
|
|
137
140
|
})
|
|
138
141
|
]
|
|
139
|
-
}), !
|
|
140
|
-
className: "ai-chat-conversation--jump flex shrink-0 justify-center border-t border-border/
|
|
141
|
-
children: /* @__PURE__ */
|
|
142
|
+
}), !_ && /* @__PURE__ */ N("div", {
|
|
143
|
+
className: "ai-chat-conversation--jump flex shrink-0 justify-center border-t border-border/60 bg-background px-space-md py-space-sm",
|
|
144
|
+
children: /* @__PURE__ */ P(r, {
|
|
142
145
|
type: "button",
|
|
143
146
|
tone: "secondary",
|
|
144
147
|
buttonStyle: "solid",
|
|
145
|
-
"aria-label":
|
|
146
|
-
onClick: () =>
|
|
148
|
+
"aria-label": m.scrollToBottomAria,
|
|
149
|
+
onClick: () => v("smooth"),
|
|
147
150
|
className: n("shadow-sm max-sm:size-action-sm max-sm:min-h-0 max-sm:p-0", "border border-border/60"),
|
|
148
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ N(F, { className: "size-icon-md" }), /* @__PURE__ */ N(i, {
|
|
149
152
|
tag: "span",
|
|
150
153
|
size: "pxs",
|
|
151
154
|
className: "max-sm:sr-only",
|
|
152
|
-
children:
|
|
155
|
+
children: m.scrollToBottom
|
|
153
156
|
})]
|
|
154
157
|
})
|
|
155
158
|
})]
|
|
156
159
|
});
|
|
157
160
|
}
|
|
158
|
-
|
|
161
|
+
J.displayName = "AiChatConversation";
|
|
159
162
|
//#endregion
|
|
160
163
|
//#region src/components/features/ai-chat/partials/ai-chat-empty-state.tsx
|
|
161
|
-
function
|
|
162
|
-
let
|
|
164
|
+
function Y({ title: e = "Start a conversation", description: t, icon: r = z, below: i, className: a }) {
|
|
165
|
+
let o = /* @__PURE__ */ N(r, {
|
|
163
166
|
className: "size-icon",
|
|
164
167
|
"aria-hidden": "true"
|
|
165
168
|
});
|
|
166
|
-
return /* @__PURE__ */
|
|
169
|
+
return /* @__PURE__ */ P(s, {
|
|
167
170
|
gap: "md",
|
|
168
171
|
align: "center",
|
|
169
172
|
justify: "center",
|
|
170
173
|
className: n("ai-chat-empty-state--component min-h-full text-center", a),
|
|
171
|
-
children: [/* @__PURE__ */
|
|
174
|
+
children: [/* @__PURE__ */ N(f, {
|
|
172
175
|
title: e,
|
|
173
176
|
description: t ?? !1,
|
|
174
|
-
media:
|
|
177
|
+
media: o,
|
|
175
178
|
mediaVariant: "icon",
|
|
176
179
|
padding: "md",
|
|
177
180
|
className: "w-full"
|
|
178
|
-
}), !!i && /* @__PURE__ */
|
|
181
|
+
}), !!i && /* @__PURE__ */ N("div", {
|
|
179
182
|
className: "w-full max-w-2xl",
|
|
180
183
|
children: i
|
|
181
184
|
})]
|
|
182
185
|
});
|
|
183
186
|
}
|
|
184
|
-
|
|
187
|
+
Y.displayName = "AiChatEmptyState";
|
|
185
188
|
//#endregion
|
|
186
189
|
//#region src/components/features/ai-chat/partials/ai-chat-message.tsx
|
|
187
|
-
function
|
|
188
|
-
let l = t(
|
|
189
|
-
for (let t of e.parts) t.type === "text" ?
|
|
190
|
-
let _ =
|
|
190
|
+
function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, className: o, strings: c }) {
|
|
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, {
|
|
191
194
|
gap: "md",
|
|
192
|
-
children:
|
|
195
|
+
children: d.map((e, t) => e.type === "text" ? /* @__PURE__ */ N("div", {
|
|
193
196
|
className: "whitespace-pre-wrap",
|
|
194
197
|
children: e.content
|
|
195
198
|
}, t) : null)
|
|
196
|
-
}), y = v !== null || e.pending, b = y && (e.avatar == null ||
|
|
197
|
-
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, {
|
|
198
201
|
gap: "md",
|
|
199
|
-
className: n("ai-chat-message--component grid min-w-0", b ? u
|
|
202
|
+
className: n("ai-chat-message--component grid min-w-0", b ? p[u] : "grid-cols-1", o),
|
|
200
203
|
children: [
|
|
201
|
-
y && /* @__PURE__ */
|
|
204
|
+
y && /* @__PURE__ */ N(g, {
|
|
202
205
|
role: e.role,
|
|
203
206
|
avatar: e.avatar,
|
|
204
207
|
authorName: e.authorName,
|
|
@@ -210,35 +213,35 @@ function Y({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, classN
|
|
|
210
213
|
onRegenerate: i,
|
|
211
214
|
children: v
|
|
212
215
|
}),
|
|
213
|
-
|
|
216
|
+
f.length > 0 && /* @__PURE__ */ N(s, {
|
|
214
217
|
gap: "md",
|
|
215
218
|
className: n("ai-chat-message--parts min-w-0", x),
|
|
216
|
-
children:
|
|
219
|
+
children: f.map((e, t) => /* @__PURE__ */ N(ne, {
|
|
217
220
|
part: e,
|
|
218
221
|
onAttachmentOpen: a
|
|
219
222
|
}, t))
|
|
220
223
|
}),
|
|
221
|
-
!!e.trailing && /* @__PURE__ */
|
|
224
|
+
!!e.trailing && /* @__PURE__ */ N("div", {
|
|
222
225
|
className: n("ai-chat-message--trailing min-w-0", x),
|
|
223
226
|
children: e.trailing
|
|
224
227
|
})
|
|
225
228
|
]
|
|
226
229
|
});
|
|
227
230
|
}
|
|
228
|
-
|
|
229
|
-
function
|
|
231
|
+
X.displayName = "AiChatMessage";
|
|
232
|
+
function ne({ part: e, onAttachmentOpen: t }) {
|
|
230
233
|
switch (e.type) {
|
|
231
|
-
case "text": return /* @__PURE__ */
|
|
232
|
-
case "reasoning": return /* @__PURE__ */
|
|
234
|
+
case "text": return /* @__PURE__ */ N(i, { children: e.content });
|
|
235
|
+
case "reasoning": return /* @__PURE__ */ N(T, {
|
|
233
236
|
streaming: e.streaming,
|
|
234
237
|
durationSeconds: e.durationSeconds,
|
|
235
238
|
children: e.content
|
|
236
239
|
});
|
|
237
|
-
case "chain-of-thought": return /* @__PURE__ */
|
|
240
|
+
case "chain-of-thought": return /* @__PURE__ */ N(v, {
|
|
238
241
|
steps: e.steps,
|
|
239
242
|
streaming: e.streaming
|
|
240
243
|
});
|
|
241
|
-
case "tool": return /* @__PURE__ */
|
|
244
|
+
case "tool": return /* @__PURE__ */ N(y, {
|
|
242
245
|
name: e.name,
|
|
243
246
|
status: e.status,
|
|
244
247
|
icon: e.icon,
|
|
@@ -248,24 +251,24 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
248
251
|
durationMs: e.durationMs,
|
|
249
252
|
defaultExpanded: e.defaultExpanded
|
|
250
253
|
});
|
|
251
|
-
case "code": return /* @__PURE__ */
|
|
254
|
+
case "code": return /* @__PURE__ */ N(_, {
|
|
252
255
|
code: e.code,
|
|
253
256
|
language: e.language,
|
|
254
257
|
filename: e.filename,
|
|
255
258
|
showLineNumbers: e.showLineNumbers,
|
|
256
259
|
highlightLines: e.highlightLines
|
|
257
260
|
});
|
|
258
|
-
case "attachments": return /* @__PURE__ */
|
|
261
|
+
case "attachments": return /* @__PURE__ */ N(q, {
|
|
259
262
|
attachments: e.items,
|
|
260
263
|
onOpen: t ? (e) => t(e.id) : void 0
|
|
261
264
|
});
|
|
262
|
-
case "sources": return /* @__PURE__ */
|
|
265
|
+
case "sources": return /* @__PURE__ */ N(S, {
|
|
263
266
|
sources: e.items,
|
|
264
267
|
variant: e.variant,
|
|
265
268
|
defaultExpanded: e.defaultExpanded
|
|
266
269
|
});
|
|
267
|
-
case "task": return /* @__PURE__ */
|
|
268
|
-
case "artifact": return /* @__PURE__ */
|
|
270
|
+
case "task": return /* @__PURE__ */ N(w, { task: e.task });
|
|
271
|
+
case "artifact": return /* @__PURE__ */ N(E, {
|
|
269
272
|
title: e.title,
|
|
270
273
|
subtitle: e.subtitle,
|
|
271
274
|
icon: e.icon,
|
|
@@ -275,7 +278,7 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
275
278
|
onDownload: e.onDownload,
|
|
276
279
|
children: e.body
|
|
277
280
|
});
|
|
278
|
-
case "confirmation": return /* @__PURE__ */
|
|
281
|
+
case "confirmation": return /* @__PURE__ */ N(b, {
|
|
279
282
|
title: e.title,
|
|
280
283
|
description: e.description,
|
|
281
284
|
tone: e.tone,
|
|
@@ -284,99 +287,105 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
284
287
|
onApprove: e.onApprove,
|
|
285
288
|
onReject: e.onReject
|
|
286
289
|
});
|
|
287
|
-
case "custom": return /* @__PURE__ */
|
|
290
|
+
case "custom": return /* @__PURE__ */ N(M, { children: e.render() });
|
|
288
291
|
default: return null;
|
|
289
292
|
}
|
|
290
293
|
}
|
|
291
|
-
function
|
|
292
|
-
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("") : "";
|
|
293
296
|
}
|
|
294
297
|
//#endregion
|
|
295
298
|
//#region src/components/features/ai-chat/partials/ai-chat-prompt-input.tsx
|
|
296
|
-
function Z({ value:
|
|
297
|
-
let E = t(
|
|
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(() => {
|
|
298
301
|
k && s?.({
|
|
299
|
-
text:
|
|
300
|
-
attachments:
|
|
302
|
+
text: a,
|
|
303
|
+
attachments: p
|
|
301
304
|
});
|
|
302
305
|
}, [
|
|
303
306
|
k,
|
|
304
307
|
s,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
]),
|
|
308
|
-
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(),
|
|
309
|
-
}, [
|
|
310
|
-
return /* @__PURE__ */
|
|
311
|
-
|
|
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),
|
|
312
316
|
children: [
|
|
313
|
-
|
|
317
|
+
p.length > 0 && /* @__PURE__ */ N("div", {
|
|
314
318
|
className: "border-b border-border/60 p-surface-xs",
|
|
315
|
-
children: /* @__PURE__ */
|
|
316
|
-
attachments:
|
|
317
|
-
onRemove:
|
|
319
|
+
children: /* @__PURE__ */ N(q, {
|
|
320
|
+
attachments: p,
|
|
321
|
+
onRemove: m
|
|
318
322
|
})
|
|
319
323
|
}),
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
ref:
|
|
322
|
-
value:
|
|
324
|
+
/* @__PURE__ */ N(d, {
|
|
325
|
+
ref: D,
|
|
326
|
+
value: a,
|
|
323
327
|
onChange: (e) => o(e.target.value),
|
|
324
|
-
onKeyDown:
|
|
328
|
+
onKeyDown: M,
|
|
325
329
|
placeholder: E.placeholder,
|
|
326
330
|
autoResize: !0,
|
|
327
|
-
minRows:
|
|
328
|
-
maxRows:
|
|
329
|
-
autoFocus:
|
|
330
|
-
disabled:
|
|
331
|
-
|
|
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"
|
|
332
337
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ P("div", {
|
|
334
339
|
className: "flex items-center gap-space-xs border-t border-border/60 px-surface-xs py-space-sm",
|
|
335
340
|
children: [
|
|
336
|
-
|
|
337
|
-
|
|
341
|
+
_,
|
|
342
|
+
F && /* @__PURE__ */ N(r, {
|
|
338
343
|
type: "button",
|
|
339
344
|
tone: "secondary",
|
|
340
345
|
buttonStyle: "ghost",
|
|
341
346
|
size: "sm",
|
|
342
347
|
iconOnly: !0,
|
|
343
348
|
"aria-label": E.attachAria,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
349
|
+
className: "disabled:opacity-100",
|
|
350
|
+
onClick: h,
|
|
351
|
+
disabled: f,
|
|
352
|
+
children: /* @__PURE__ */ N(R, { className: "size-icon" })
|
|
347
353
|
}),
|
|
348
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ P("div", {
|
|
349
355
|
className: "ml-auto flex items-center gap-space-xs",
|
|
350
|
-
children: [
|
|
356
|
+
children: [v, l ? /* @__PURE__ */ N(r, {
|
|
351
357
|
type: "button",
|
|
352
358
|
tone: "secondary",
|
|
353
359
|
buttonStyle: "solid",
|
|
354
360
|
size: "sm",
|
|
355
361
|
iconOnly: !0,
|
|
356
362
|
"aria-label": E.stopAria,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
363
|
+
className: "disabled:opacity-100",
|
|
364
|
+
onClick: c,
|
|
365
|
+
disabled: f,
|
|
366
|
+
children: /* @__PURE__ */ N(B, { className: "size-icon-md fill-current" })
|
|
367
|
+
}) : /* @__PURE__ */ N(r, {
|
|
360
368
|
type: "button",
|
|
361
369
|
tone: "primary",
|
|
362
370
|
buttonStyle: "solid",
|
|
363
371
|
size: "sm",
|
|
364
372
|
iconOnly: !0,
|
|
365
373
|
"aria-label": E.submitAria,
|
|
366
|
-
|
|
374
|
+
className: f ? "disabled:opacity-100" : void 0,
|
|
375
|
+
onClick: j,
|
|
367
376
|
disabled: !k,
|
|
368
|
-
children: /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ N(I, { className: "size-icon" })
|
|
369
378
|
})]
|
|
370
379
|
})
|
|
371
380
|
]
|
|
372
381
|
}),
|
|
373
|
-
!
|
|
382
|
+
!y && /* @__PURE__ */ N("div", {
|
|
374
383
|
className: "px-surface-xs pb-surface-xs",
|
|
375
|
-
children: /* @__PURE__ */
|
|
384
|
+
children: /* @__PURE__ */ N(i, {
|
|
376
385
|
size: "xs",
|
|
377
386
|
type: "discrete",
|
|
378
387
|
children: e(E.hint, {
|
|
379
|
-
submitKey:
|
|
388
|
+
submitKey: C,
|
|
380
389
|
newlineKey: "⇧↩"
|
|
381
390
|
})
|
|
382
391
|
})
|
|
@@ -387,51 +396,52 @@ function Z({ value: r, onValueChange: o, onSubmit: s, onStop: l, streaming: u =
|
|
|
387
396
|
Z.displayName = "AiChatPromptInput";
|
|
388
397
|
//#endregion
|
|
389
398
|
//#region src/components/features/ai-chat/partials/ai-chat-queue.tsx
|
|
390
|
-
function Q({ items: e, hideHeader:
|
|
391
|
-
let
|
|
392
|
-
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, {
|
|
393
402
|
gap: "sm",
|
|
394
|
-
className: n("ai-chat-queue--component", "rounded-radius border border-border/60 bg-muted/
|
|
395
|
-
children: [!
|
|
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, {
|
|
396
405
|
className: "px-1",
|
|
397
406
|
children: [
|
|
398
|
-
|
|
407
|
+
p.header,
|
|
399
408
|
" · ",
|
|
400
409
|
e.length
|
|
401
410
|
]
|
|
402
|
-
}), /* @__PURE__ */
|
|
403
|
-
render: /* @__PURE__ */
|
|
411
|
+
}), /* @__PURE__ */ N(s, {
|
|
412
|
+
render: /* @__PURE__ */ N("ul", {}),
|
|
404
413
|
gap: "xs",
|
|
405
414
|
className: "ai-chat-queue--list m-0 list-none p-0 font-sans",
|
|
406
415
|
children: e.map((e) => {
|
|
407
416
|
let t = e.status ?? "queued";
|
|
408
|
-
return /* @__PURE__ */
|
|
409
|
-
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",
|
|
410
419
|
children: [
|
|
411
|
-
t === "running" ? /* @__PURE__ */
|
|
420
|
+
t === "running" ? /* @__PURE__ */ N(L, { className: "size-icon-md shrink-0 animate-spin text-primary-accent" }) : /* @__PURE__ */ N("span", {
|
|
412
421
|
"aria-hidden": !0,
|
|
413
422
|
className: "flex size-icon-md shrink-0 items-center justify-center",
|
|
414
|
-
children: /* @__PURE__ */
|
|
423
|
+
children: /* @__PURE__ */ N("span", { className: n(c.marker, "bg-muted-foreground") })
|
|
415
424
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ N(i, {
|
|
426
|
+
type: "inherit",
|
|
417
427
|
className: "flex-1 truncate",
|
|
418
428
|
children: e.label
|
|
419
429
|
}),
|
|
420
|
-
/* @__PURE__ */
|
|
430
|
+
/* @__PURE__ */ N(l, {
|
|
421
431
|
tone: t === "running" ? "info" : "secondary",
|
|
422
|
-
children: t === "running" ?
|
|
432
|
+
children: t === "running" ? p.runningLabel : p.queuedLabel
|
|
423
433
|
}),
|
|
424
|
-
(!!e.onCancel || !!
|
|
434
|
+
(!!e.onCancel || !!u) && /* @__PURE__ */ N(r, {
|
|
425
435
|
type: "button",
|
|
426
436
|
tone: "secondary",
|
|
427
437
|
buttonStyle: "ghost",
|
|
428
438
|
size: "sm",
|
|
429
439
|
iconOnly: !0,
|
|
430
|
-
"aria-label":
|
|
440
|
+
"aria-label": p.cancelAria,
|
|
431
441
|
onClick: () => {
|
|
432
|
-
e.onCancel?.(),
|
|
442
|
+
e.onCancel?.(), u?.(e.id);
|
|
433
443
|
},
|
|
434
|
-
children: /* @__PURE__ */
|
|
444
|
+
children: /* @__PURE__ */ N(ee, { className: "size-icon-md" })
|
|
435
445
|
})
|
|
436
446
|
]
|
|
437
447
|
}, e.id);
|
|
@@ -443,24 +453,24 @@ Q.displayName = "AiChatQueue";
|
|
|
443
453
|
//#endregion
|
|
444
454
|
//#region src/components/features/ai-chat/partials/ai-chat-suggestions-row.tsx
|
|
445
455
|
function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, strings: l }) {
|
|
446
|
-
let u = t(
|
|
447
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
456
|
+
let u = t(W, l);
|
|
457
|
+
return e.length === 0 ? null : /* @__PURE__ */ P("div", {
|
|
448
458
|
className: n("ai-chat-suggestions-row--component flex items-center gap-space-md", c),
|
|
449
|
-
children: [!s && /* @__PURE__ */
|
|
459
|
+
children: [!s && /* @__PURE__ */ N(a, {
|
|
450
460
|
className: "shrink-0",
|
|
451
461
|
children: u.header
|
|
452
|
-
}), /* @__PURE__ */
|
|
462
|
+
}), /* @__PURE__ */ N("div", {
|
|
453
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",
|
|
454
464
|
children: e.map((e) => {
|
|
455
465
|
let t = e.icon;
|
|
456
|
-
return /* @__PURE__ */
|
|
466
|
+
return /* @__PURE__ */ P(r, {
|
|
457
467
|
type: "button",
|
|
458
468
|
tone: "secondary",
|
|
459
|
-
buttonStyle: "
|
|
469
|
+
buttonStyle: "outline",
|
|
460
470
|
size: "sm",
|
|
461
471
|
onClick: () => o?.(e),
|
|
462
|
-
className:
|
|
463
|
-
children: [!!t && /* @__PURE__ */
|
|
472
|
+
className: "shrink-0 gap-space-sm",
|
|
473
|
+
children: [!!t && /* @__PURE__ */ N(t, { className: "size-icon-sm text-muted-foreground" }), /* @__PURE__ */ N(i, {
|
|
464
474
|
tag: "span",
|
|
465
475
|
weight: "medium",
|
|
466
476
|
children: e.label
|
|
@@ -473,27 +483,27 @@ function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, string
|
|
|
473
483
|
$.displayName = "AiChatSuggestionsRow";
|
|
474
484
|
//#endregion
|
|
475
485
|
//#region src/components/features/ai-chat/ai-chat.tsx
|
|
476
|
-
function
|
|
477
|
-
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, {
|
|
478
488
|
className: "ai-chat-message--component",
|
|
479
489
|
message: e,
|
|
480
|
-
strings:
|
|
481
|
-
onCopy:
|
|
482
|
-
onRegenerate:
|
|
490
|
+
strings: A.message,
|
|
491
|
+
onCopy: x ? () => x(e) : void 0,
|
|
492
|
+
onRegenerate: S ? () => S(e) : void 0,
|
|
483
493
|
onAttachmentOpen: w ? (t) => w(e.id, t) : void 0
|
|
484
494
|
}), [
|
|
485
495
|
w,
|
|
496
|
+
x,
|
|
486
497
|
S,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
children: /* @__PURE__ */ j(o, {
|
|
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, {
|
|
493
503
|
direction: "horizontal",
|
|
494
504
|
align: "center",
|
|
495
505
|
gap: "lg",
|
|
496
|
-
children: [/* @__PURE__ */
|
|
506
|
+
children: [/* @__PURE__ */ N(C, {
|
|
497
507
|
name: h.name,
|
|
498
508
|
icon: h.icon,
|
|
499
509
|
avatar: h.avatar,
|
|
@@ -501,27 +511,27 @@ function te({ messages: e, inputValue: r, onInputChange: a, onSubmit: s, onStop:
|
|
|
501
511
|
tone: h.tone,
|
|
502
512
|
status: h.status,
|
|
503
513
|
variant: "inline"
|
|
504
|
-
}), !!g && /* @__PURE__ */
|
|
514
|
+
}), !!g && /* @__PURE__ */ N("div", {
|
|
505
515
|
className: "ml-auto flex items-center gap-space-xs",
|
|
506
516
|
children: g
|
|
507
517
|
})]
|
|
508
518
|
})
|
|
509
|
-
}) : null), L =
|
|
510
|
-
title:
|
|
511
|
-
description:
|
|
512
|
-
}) : 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, {
|
|
513
523
|
items: _,
|
|
514
524
|
onCancel: v,
|
|
515
|
-
strings:
|
|
516
|
-
}) : null), z =
|
|
525
|
+
strings: A.queue
|
|
526
|
+
}) : null), z = E?.suggestions ?? (y.length > 0 ? /* @__PURE__ */ N($, {
|
|
517
527
|
suggestions: y,
|
|
518
|
-
onPick:
|
|
519
|
-
strings:
|
|
520
|
-
}) : null), B =
|
|
528
|
+
onPick: b,
|
|
529
|
+
strings: A.suggestions
|
|
530
|
+
}) : null), B = E?.input ?? /* @__PURE__ */ N(Z, {
|
|
521
531
|
value: r,
|
|
522
532
|
onValueChange: a,
|
|
523
533
|
onSubmit: (e) => {
|
|
524
|
-
|
|
534
|
+
o?.(e), M((e) => e + 1);
|
|
525
535
|
},
|
|
526
536
|
onStop: c,
|
|
527
537
|
streaming: l,
|
|
@@ -530,24 +540,24 @@ function te({ messages: e, inputValue: r, onInputChange: a, onSubmit: s, onStop:
|
|
|
530
540
|
onRemoveAttachment: f,
|
|
531
541
|
onAttach: p,
|
|
532
542
|
showAttach: m,
|
|
533
|
-
strings:
|
|
543
|
+
strings: A.prompt
|
|
534
544
|
});
|
|
535
|
-
return /* @__PURE__ */
|
|
536
|
-
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),
|
|
537
547
|
children: [
|
|
538
548
|
I,
|
|
539
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ N(J, {
|
|
540
550
|
messages: e,
|
|
541
551
|
renderMessage: F,
|
|
542
|
-
intro:
|
|
543
|
-
footer:
|
|
552
|
+
intro: E?.intro,
|
|
553
|
+
footer: E?.belowMessages,
|
|
544
554
|
empty: L,
|
|
545
|
-
disableAutoScroll:
|
|
546
|
-
strings:
|
|
555
|
+
disableAutoScroll: T,
|
|
556
|
+
strings: A.conversation
|
|
547
557
|
}),
|
|
548
|
-
(R || z || B) && /* @__PURE__ */
|
|
549
|
-
className: "border-t border-border bg-card
|
|
550
|
-
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, {
|
|
551
561
|
gap: "md",
|
|
552
562
|
children: [
|
|
553
563
|
R,
|
|
@@ -556,16 +566,16 @@ function te({ messages: e, inputValue: r, onInputChange: a, onSubmit: s, onStop:
|
|
|
556
566
|
]
|
|
557
567
|
})
|
|
558
568
|
}),
|
|
559
|
-
u && /* @__PURE__ */
|
|
569
|
+
u && /* @__PURE__ */ N(i, {
|
|
560
570
|
className: "sr-only",
|
|
561
571
|
"aria-live": "polite",
|
|
562
|
-
children:
|
|
572
|
+
children: A.disabledAnnouncement
|
|
563
573
|
})
|
|
564
574
|
]
|
|
565
575
|
});
|
|
566
576
|
}
|
|
567
|
-
|
|
577
|
+
ie.displayName = "AiChat";
|
|
568
578
|
//#endregion
|
|
569
|
-
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 };
|
|
570
580
|
|
|
571
581
|
//# sourceMappingURL=ai-chat.js.map
|