themelia-react-ui 1.0.2 → 2.0.1
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 +632 -1
- package/README.md +31 -13
- package/dist/accordion-B6a3vVgA.js +207 -0
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.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 +19 -19
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +234 -224
- 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 +1 -1
- 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 +81 -76
- 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 +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +175 -174
- 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 +148 -138
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- 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 +4 -4
- 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-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +264 -253
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +293 -323
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +596 -587
- 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 +2246 -1693
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +82 -91
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/buttons-SbIcm1HJ.js +661 -0
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
- package/dist/chart-QfrARkXl.js.map +1 -0
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/combobox-DLl0bfiq.js +867 -0
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
- package/dist/command-kNR20o7x.js.map +1 -0
- package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +27 -5
- 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/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +6 -6
- 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/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
- package/dist/components/base/display/alert-dialog.d.ts +10 -3
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +8 -5
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-sizing.d.ts +43 -8
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- 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/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- 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 +30 -4
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +10 -5
- 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/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- 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 +33 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.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 +4 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- 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 +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- 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/loyalty-points/types.d.ts +1 -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-status/types.d.ts +4 -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 +14 -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/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- 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/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- 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/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- 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 +4 -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/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +62 -19
- 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/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +11 -3
- 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 +1 -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 +45 -0
- 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/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +51 -4
- 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/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +9 -1
- package/dist/components/typography/label.d.ts +3 -0
- 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/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +24 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +35 -13
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/overlay.recipes.d.ts +6 -2
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/date-BgK3bTdo.js +144 -0
- package/dist/date-BgK3bTdo.js.map +1 -0
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/date-pickers-BmzxJl5l.js +174 -0
- package/dist/date-pickers-BmzxJl5l.js.map +1 -0
- package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
- package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
- package/dist/features/activities.js +437 -521
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +174 -172
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- 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 +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -352
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +262 -269
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +914 -824
- 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 +1272 -1311
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +204 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -95
- 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 +193 -189
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +455 -455
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-qNuMBtRH.js +233 -0
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
- package/dist/field-affordance-recipes-qQeIf4lG.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-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
- package/dist/filters-BkHH53uv.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-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
- package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/form-sizing-By94KzXE.js +130 -0
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
- package/dist/forms-Bzha-Y3B.js.map +1 -0
- package/dist/forms-numeric-C0bvjRPZ.js +906 -0
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.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-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/item-DEmDiTlD.js +265 -0
- package/dist/item-DEmDiTlD.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 +7 -1
- package/dist/lib/field-affordance-recipes.d.ts +41 -1
- package/dist/lib/field-state-recipes.d.ts +9 -6
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
- 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 +48 -6
- package/dist/lib/token-merge.generated.d.ts +17 -14
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/track-recipes.d.ts +1 -1
- 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/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +14 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.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-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/number-DMhe-Vsk.js +352 -0
- package/dist/number-DMhe-Vsk.js.map +1 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
- package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/primitives-B-CkiEMU.js +379 -0
- package/dist/primitives-B-CkiEMU.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
- package/dist/progress-rnS8-uAW.js.map +1 -0
- package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.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-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
- package/dist/separator-C8DlRGwF.js.map +1 -0
- package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +22 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +23 -6
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/sidebar-d7Dg80ln.js +511 -0
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
- package/dist/skeleton-Cz890JZF.js.map +1 -0
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
- package/dist/spinner-fa3h1Aif.js.map +1 -0
- package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
- package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- 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-CIKyLUsy.js +163 -0
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/tabs-DwBJfjxX.js +190 -0
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +16 -12
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
- package/dist/upload-queue-EOC8g1gf.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-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
- package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/value-typography-b8wpz1eX.js +116 -0
- package/dist/value-typography-b8wpz1eX.js.map +1 -0
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +62 -50
- package/docs/consumer-skill/examples/app-layout.tsx +3 -5
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -13
- package/docs/consumer-skill/examples/edit.tsx +2 -2
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +28 -6
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
- 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 +139 -24
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/discovery.md +4 -0
- package/docs/consumer-skill/references/installation.md +33 -1
- package/docs/consumer-skill/references/integration.md +32 -1
- package/docs/consumer-skill/references/public-api.json +1051 -610
- package/docs/consumer-skill/references/review.md +44 -8
- package/docs/consumer-skill/references/theming.md +14 -4
- package/docs/consumer-skill/references/tokens.json +5 -2
- package/docs/consumer-skill/references/workflows.md +30 -9
- package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
- package/docs/consumer-skill/scripts/discovery.mjs +11 -3
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +13 -3
- package/dist/accordion-BRTcsp8J.js +0 -205
- package/dist/accordion-BRTcsp8J.js.map +0 -1
- package/dist/action-menu-Drxw_vJk.js +0 -265
- package/dist/action-menu-Drxw_vJk.js.map +0 -1
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
- package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
- package/dist/attachment-DbjUWsP0.js +0 -244
- package/dist/attachment-DbjUWsP0.js.map +0 -1
- package/dist/auth-CAQcasMV.js.map +0 -1
- package/dist/avatar-Bu2HhitA.js.map +0 -1
- package/dist/badge-CzId1Wlm.js +0 -92
- package/dist/badge-CzId1Wlm.js.map +0 -1
- package/dist/breadcrumbs-BuYz5SDU.js +0 -128
- package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
- package/dist/button-BZDasD04.js +0 -651
- package/dist/button-BZDasD04.js.map +0 -1
- package/dist/button-BZyfTvwm.js.map +0 -1
- package/dist/buttons-D_6KJvEE.js +0 -99
- package/dist/buttons-D_6KJvEE.js.map +0 -1
- package/dist/cards-qGSErLw_.js.map +0 -1
- package/dist/chart-Bsc5BICK.js.map +0 -1
- package/dist/checkbox-BQNDjUCh.js +0 -34
- package/dist/checkbox-BQNDjUCh.js.map +0 -1
- package/dist/choice-inputs-Mk3iWbhr.js +0 -725
- package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
- package/dist/code-block-DzHKRybS.js +0 -183
- package/dist/code-block-DzHKRybS.js.map +0 -1
- package/dist/combobox-BFnbJJp3.js.map +0 -1
- package/dist/combobox-hozNwUcc.js +0 -847
- package/dist/combobox-hozNwUcc.js.map +0 -1
- package/dist/command-BnmSchli.js.map +0 -1
- package/dist/comments-u5L0OGip.js.map +0 -1
- package/dist/containers-DqB-bSYE.js.map +0 -1
- package/dist/data-display-Bihs9Ven.js +0 -1342
- package/dist/data-display-Bihs9Ven.js.map +0 -1
- package/dist/date-DOKhJPu7.js +0 -140
- package/dist/date-DOKhJPu7.js.map +0 -1
- package/dist/date-picker-DzP5HQq7.js +0 -1541
- package/dist/date-picker-DzP5HQq7.js.map +0 -1
- package/dist/date-pickers-BpgGz7S-.js +0 -196
- package/dist/date-pickers-BpgGz7S-.js.map +0 -1
- package/dist/display-CS6Hbk18.js.map +0 -1
- package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
- package/dist/feedback-CJkUAapr.js +0 -233
- package/dist/feedback-CJkUAapr.js.map +0 -1
- package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
- package/dist/field-state-recipes-DQQpiLWC.js +0 -11
- package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
- package/dist/filters-D6FF8L6s.js.map +0 -1
- package/dist/form-sizing-QP8aIRaW.js +0 -103
- package/dist/form-sizing-QP8aIRaW.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B5NCbkSC.js.map +0 -1
- package/dist/forms-numeric-Crrm80Lm.js +0 -867
- package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
- package/dist/header-kxruN3RM.js.map +0 -1
- package/dist/icon-badge-Btc6pQrp.js +0 -53
- package/dist/icon-badge-Btc6pQrp.js.map +0 -1
- package/dist/input-SX9V0AL3.js +0 -255
- package/dist/input-SX9V0AL3.js.map +0 -1
- package/dist/item-DE4YnuJx.js +0 -258
- package/dist/item-DE4YnuJx.js.map +0 -1
- package/dist/media-gallery-DLp3HAz0.js +0 -201
- package/dist/media-gallery-DLp3HAz0.js.map +0 -1
- package/dist/mentions-Cl0Kt_Pd.js +0 -565
- package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
- package/dist/navigation-DnQSNMT0.js +0 -276
- package/dist/navigation-DnQSNMT0.js.map +0 -1
- package/dist/navigation-DyytsLRB.js +0 -265
- package/dist/navigation-DyytsLRB.js.map +0 -1
- package/dist/number-DasMFWEG.js +0 -269
- package/dist/number-DasMFWEG.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-DUbs1KEi.js +0 -1011
- package/dist/overlays-DUbs1KEi.js.map +0 -1
- package/dist/page-hGmT4nWK.js.map +0 -1
- package/dist/page-header-D8nERkn5.js +0 -112
- package/dist/page-header-D8nERkn5.js.map +0 -1
- package/dist/popover-CghIYdQf.js.map +0 -1
- package/dist/primitives-C7ff0QaI.js +0 -337
- package/dist/primitives-C7ff0QaI.js.map +0 -1
- package/dist/progress-BroqrAyV.js.map +0 -1
- package/dist/rich-text-DlxDOtf4.js +0 -32
- package/dist/rich-text-DlxDOtf4.js.map +0 -1
- package/dist/rich-text-editor-BKyG7rWz.js +0 -574
- package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
- package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
- package/dist/rich-text-editor.recipes-B72Nfuze.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/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-D-pIhEKl.js +0 -47
- package/dist/scroll-area-D-pIhEKl.js.map +0 -1
- package/dist/separator-BNIgG3au.js.map +0 -1
- package/dist/settings-DOTOzeZ2.js +0 -161
- package/dist/settings-DOTOzeZ2.js.map +0 -1
- package/dist/sheet-BFhrNehm.js +0 -205
- package/dist/sheet-BFhrNehm.js.map +0 -1
- package/dist/sidebar-CyR4XKwR.js.map +0 -1
- package/dist/sidebar-SvGJ0Zwi.js +0 -506
- package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
- package/dist/skeleton-3F0uhYn3.js.map +0 -1
- package/dist/smart-card-DjGVV2xr.js +0 -584
- package/dist/smart-card-DjGVV2xr.js.map +0 -1
- package/dist/spinner-Cpf7oRkF.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-Dd__PD-w.js +0 -28
- package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
- package/dist/table-CLtJTxoR.js +0 -147
- package/dist/table-CLtJTxoR.js.map +0 -1
- package/dist/table-CcRDZiLP.js.map +0 -1
- package/dist/tabs-BNgu7g0u.js +0 -188
- package/dist/tabs-BNgu7g0u.js.map +0 -1
- package/dist/text-inputs-DsR56TR-.js.map +0 -1
- package/dist/text.styles-Q4sGAIgA.js.map +0 -1
- package/dist/timelines-D1pkt3se.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/tree-BtmYyMZV.js.map +0 -1
- package/dist/typography-BxQgiZyw.js +0 -96
- package/dist/typography-BxQgiZyw.js.map +0 -1
- package/dist/ui-provider-DRPn3qNl.js.map +0 -1
- package/dist/upload-CDbYw1WN.js.map +0 -1
- package/dist/upload-queue-CNd_hH_a.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-BvH9PSmq.js.map +0 -1
- package/dist/value-inputs-D0KCrfVC.js +0 -840
- package/dist/value-inputs-D0KCrfVC.js.map +0 -1
- package/dist/workspace-CcR8r-Nt.js +0 -395
- package/dist/workspace-CcR8r-Nt.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,54 @@
|
|
|
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-l5LpDw2z.js";
|
|
4
|
+
import { n as r } from "../buttons-SbIcm1HJ.js";
|
|
5
|
+
import { a as i, s as a } from "../typography-DTRkE9zL.js";
|
|
6
|
+
import { t as o } from "../focus-recipes-B653VaLq.js";
|
|
7
|
+
import { t as s } from "../structure-DC2dygdA.js";
|
|
8
|
+
import { t as c } from "../badge-MrKVNzW9.js";
|
|
9
|
+
import { d as l } from "../text-inputs-aaK9wcDT.js";
|
|
10
|
+
import { s as u } from "../data-display-DafIvCl5.js";
|
|
11
|
+
import { c as d, l as f, s as p } from "../message-CdHgIWKf.js";
|
|
12
|
+
import { S as m, _ as h, a as g, b as _, d as v, h as y, l as b, p as x, r as S, s as C, t as w, y as T } from "../ai-artifact-BMJdv-6q.js";
|
|
13
|
+
import { useCallback as E, useEffect as D, useRef as O, useState as k } from "react";
|
|
14
|
+
import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
|
|
15
|
+
import { ArrowDown as N, ArrowUp as P, Loader2 as F, Paperclip as I, Sparkles as L, Square as R, X as z } from "lucide-react";
|
|
15
16
|
//#region src/components/features/ai-chat/ai-chat.strings.ts
|
|
16
|
-
var
|
|
17
|
+
var B = {
|
|
17
18
|
placeholder: "Ask anything…",
|
|
18
19
|
attachAria: "Attach files",
|
|
19
20
|
submitAria: "Send message",
|
|
20
21
|
stopAria: "Stop generating",
|
|
21
22
|
modelPickerAria: "Choose model",
|
|
22
23
|
hint: "Press {{submitKey}} to send · {{newlineKey}} for newline"
|
|
23
|
-
},
|
|
24
|
+
}, V = {
|
|
24
25
|
transcriptAria: "Conversation messages",
|
|
25
26
|
empty: "No messages yet.",
|
|
26
27
|
scrollToBottom: "Jump to latest",
|
|
27
28
|
scrollToBottomAria: "Scroll to bottom"
|
|
28
|
-
},
|
|
29
|
+
}, H = {
|
|
29
30
|
header: "In queue",
|
|
30
31
|
cancelAria: "Remove from queue",
|
|
31
32
|
queuedLabel: "Queued",
|
|
32
33
|
runningLabel: "Running"
|
|
33
|
-
},
|
|
34
|
-
prompt:
|
|
35
|
-
conversation:
|
|
36
|
-
queue:
|
|
37
|
-
suggestions:
|
|
38
|
-
message:
|
|
34
|
+
}, U = { header: "Try" }, W = { pending: "Thinking…" }, G = {
|
|
35
|
+
prompt: B,
|
|
36
|
+
conversation: V,
|
|
37
|
+
queue: H,
|
|
38
|
+
suggestions: U,
|
|
39
|
+
message: W,
|
|
39
40
|
emptyTitle: "Start a conversation",
|
|
40
41
|
emptyDescription: "Ask a question, share context, or attach a file to get going.",
|
|
41
42
|
disabledAnnouncement: "Chat is disabled"
|
|
42
43
|
};
|
|
43
44
|
//#endregion
|
|
44
45
|
//#region src/components/features/ai-chat/partials/ai-chat-attachments-strip.tsx
|
|
45
|
-
function
|
|
46
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
46
|
+
function K({ attachments: e, onRemove: t, onOpen: r, className: i }) {
|
|
47
|
+
return e.length === 0 ? null : /* @__PURE__ */ j(s, {
|
|
47
48
|
direction: "horizontal",
|
|
48
49
|
gap: "sm",
|
|
49
50
|
className: n("ai-chat-attachments-strip--component", i),
|
|
50
|
-
children: e.map((e) => /* @__PURE__ */
|
|
51
|
+
children: e.map((e) => /* @__PURE__ */ j(y, {
|
|
51
52
|
name: e.name,
|
|
52
53
|
meta: e.meta,
|
|
53
54
|
kind: e.kind,
|
|
@@ -60,17 +61,17 @@ function G({ attachments: e, onRemove: t, onOpen: r, className: i }) {
|
|
|
60
61
|
}, e.id))
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
K.displayName = "AiChatAttachmentsStrip";
|
|
64
65
|
//#endregion
|
|
65
66
|
//#region src/components/features/ai-chat/hooks/use-ai-chat-scroll.ts
|
|
66
|
-
function
|
|
67
|
-
let r =
|
|
67
|
+
function q({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}) {
|
|
68
|
+
let r = O(null), i = O(null), [a, o] = k(!0), s = E((e = "smooth") => {
|
|
68
69
|
i.current?.scrollIntoView({
|
|
69
70
|
behavior: e,
|
|
70
71
|
block: "end"
|
|
71
72
|
});
|
|
72
73
|
}, []);
|
|
73
|
-
return
|
|
74
|
+
return D(() => {
|
|
74
75
|
let t = r.current;
|
|
75
76
|
if (!t) return;
|
|
76
77
|
let n = () => {
|
|
@@ -78,7 +79,7 @@ function K({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
|
|
|
78
79
|
o(n <= e);
|
|
79
80
|
};
|
|
80
81
|
return n(), t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
|
|
81
|
-
}, [e]),
|
|
82
|
+
}, [e]), D(() => {
|
|
82
83
|
if (n || !a) return;
|
|
83
84
|
let e = window.requestAnimationFrame(() => s("auto"));
|
|
84
85
|
return () => window.cancelAnimationFrame(e);
|
|
@@ -91,31 +92,31 @@ function K({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {})
|
|
|
91
92
|
}
|
|
92
93
|
//#endregion
|
|
93
94
|
//#region src/components/features/ai-chat/partials/ai-chat-conversation.tsx
|
|
94
|
-
function
|
|
95
|
-
let
|
|
95
|
+
function J({ messages: e, renderMessage: i, intro: c, footer: l, empty: u, disableAutoScroll: d, className: f, strings: p }) {
|
|
96
|
+
let m = t(V, p), { containerRef: h, endRef: g, isAtBottom: _, scrollToBottom: v } = q({
|
|
96
97
|
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:
|
|
98
|
+
disableAutoScroll: d
|
|
99
|
+
}), y = e.length === 0 && !c;
|
|
100
|
+
return /* @__PURE__ */ M("div", {
|
|
101
|
+
className: n("ai-chat-conversation--component relative flex h-full min-h-0 flex-col", f),
|
|
102
|
+
children: [/* @__PURE__ */ M("div", {
|
|
103
|
+
ref: h,
|
|
103
104
|
tabIndex: 0,
|
|
104
|
-
"aria-label":
|
|
105
|
-
className:
|
|
105
|
+
"aria-label": m.transcriptAria,
|
|
106
|
+
className: `flex-1 overflow-y-auto p-surface focus-visible:outline-none ${o.inset}`,
|
|
106
107
|
children: [
|
|
107
|
-
!!
|
|
108
|
+
!!c && /* @__PURE__ */ j("div", {
|
|
108
109
|
className: "mb-space-xl",
|
|
109
|
-
children:
|
|
110
|
+
children: c
|
|
110
111
|
}),
|
|
111
|
-
|
|
112
|
+
y ? u ?? /* @__PURE__ */ j("div", {
|
|
112
113
|
className: "flex h-full items-center justify-center p-surface-lg",
|
|
113
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ j(a, {
|
|
114
115
|
type: "secondary",
|
|
115
|
-
children:
|
|
116
|
+
children: m.empty
|
|
116
117
|
})
|
|
117
|
-
}) : /* @__PURE__ */
|
|
118
|
-
render: /* @__PURE__ */
|
|
118
|
+
}) : /* @__PURE__ */ j(s, {
|
|
119
|
+
render: /* @__PURE__ */ j("ol", {}),
|
|
119
120
|
gap: "xl",
|
|
120
121
|
className: "ai-chat-conversation--messages m-0 list-none p-0 font-sans",
|
|
121
122
|
children: e.map((t, n) => {
|
|
@@ -123,82 +124,82 @@ function q({ messages: e, renderMessage: i, intro: s, footer: c, empty: l, disab
|
|
|
123
124
|
isLast: n === e.length - 1,
|
|
124
125
|
index: n
|
|
125
126
|
};
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ j("li", { children: i(t, r) }, t.id);
|
|
127
128
|
})
|
|
128
129
|
}),
|
|
129
|
-
!!
|
|
130
|
+
!!l && /* @__PURE__ */ j("div", {
|
|
130
131
|
className: "mt-space-xl",
|
|
131
|
-
children:
|
|
132
|
+
children: l
|
|
132
133
|
}),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
ref:
|
|
134
|
+
/* @__PURE__ */ j("div", {
|
|
135
|
+
ref: g,
|
|
135
136
|
"aria-hidden": !0,
|
|
136
137
|
className: "h-px"
|
|
137
138
|
})
|
|
138
139
|
]
|
|
139
|
-
}), !
|
|
140
|
-
className: "ai-chat-conversation--jump flex shrink-0 justify-center border-t border-border/
|
|
141
|
-
children: /* @__PURE__ */
|
|
140
|
+
}), !_ && /* @__PURE__ */ j("div", {
|
|
141
|
+
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__ */ M(r, {
|
|
142
143
|
type: "button",
|
|
143
144
|
tone: "secondary",
|
|
144
145
|
buttonStyle: "solid",
|
|
145
|
-
"aria-label":
|
|
146
|
-
onClick: () =>
|
|
147
|
-
className: n("shadow-sm max-sm:size-action-sm max-sm:p-0", "border border-border/60"),
|
|
148
|
-
children: [/* @__PURE__ */
|
|
146
|
+
"aria-label": m.scrollToBottomAria,
|
|
147
|
+
onClick: () => v("smooth"),
|
|
148
|
+
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__ */ j(N, { className: "size-icon-md" }), /* @__PURE__ */ j(a, {
|
|
149
150
|
tag: "span",
|
|
150
151
|
size: "pxs",
|
|
151
152
|
className: "max-sm:sr-only",
|
|
152
|
-
children:
|
|
153
|
+
children: m.scrollToBottom
|
|
153
154
|
})]
|
|
154
155
|
})
|
|
155
156
|
})]
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
|
-
|
|
159
|
+
J.displayName = "AiChatConversation";
|
|
159
160
|
//#endregion
|
|
160
161
|
//#region src/components/features/ai-chat/partials/ai-chat-empty-state.tsx
|
|
161
|
-
function
|
|
162
|
-
let
|
|
162
|
+
function Y({ title: e = "Start a conversation", description: t, icon: r = L, below: i, className: a }) {
|
|
163
|
+
let o = /* @__PURE__ */ j(r, {
|
|
163
164
|
className: "size-icon",
|
|
164
165
|
"aria-hidden": "true"
|
|
165
166
|
});
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ M(s, {
|
|
167
168
|
gap: "md",
|
|
168
169
|
align: "center",
|
|
169
170
|
justify: "center",
|
|
170
|
-
className: n("ai-chat-empty-state--component h-full text-center", a),
|
|
171
|
-
children: [/* @__PURE__ */
|
|
171
|
+
className: n("ai-chat-empty-state--component min-h-full text-center", a),
|
|
172
|
+
children: [/* @__PURE__ */ j(u, {
|
|
172
173
|
title: e,
|
|
173
174
|
description: t ?? !1,
|
|
174
|
-
media:
|
|
175
|
+
media: o,
|
|
175
176
|
mediaVariant: "icon",
|
|
176
177
|
padding: "md",
|
|
177
178
|
className: "w-full"
|
|
178
|
-
}), !!i && /* @__PURE__ */
|
|
179
|
+
}), !!i && /* @__PURE__ */ j("div", {
|
|
179
180
|
className: "w-full max-w-2xl",
|
|
180
181
|
children: i
|
|
181
182
|
})]
|
|
182
183
|
});
|
|
183
184
|
}
|
|
184
|
-
|
|
185
|
+
Y.displayName = "AiChatEmptyState";
|
|
185
186
|
//#endregion
|
|
186
187
|
//#region src/components/features/ai-chat/partials/ai-chat-message.tsx
|
|
187
|
-
function
|
|
188
|
-
let l = t(
|
|
188
|
+
function X({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, className: o, strings: c }) {
|
|
189
|
+
let l = t(W, c), u = e.role === "user" ? "end" : "start", h = [], g = [];
|
|
189
190
|
for (let t of e.parts) t.type === "text" ? h.push(t) : g.push(t);
|
|
190
|
-
let _ = h.map((e) => e.type === "text" ? e.plain ??
|
|
191
|
+
let _ = h.map((e) => e.type === "text" ? e.plain ?? te(e.content) : "").filter(Boolean).join("\n") || void 0, v = e.pending ? /* @__PURE__ */ j(T, { children: l.pending }) : h.length === 0 && g.length > 0 ? null : /* @__PURE__ */ j(s, {
|
|
191
192
|
gap: "md",
|
|
192
|
-
children: h.map((e, t) => e.type === "text" ? /* @__PURE__ */
|
|
193
|
+
children: h.map((e, t) => e.type === "text" ? /* @__PURE__ */ j("div", {
|
|
193
194
|
className: "whitespace-pre-wrap",
|
|
194
195
|
children: e.content
|
|
195
196
|
}, t) : null)
|
|
196
|
-
}), y = v !== null || e.pending, b = y && (e.avatar == null ||
|
|
197
|
-
return /* @__PURE__ */
|
|
197
|
+
}), y = v !== null || e.pending, b = y && (e.avatar == null || p(e.avatar)), x = b ? f[u] : "col-start-1";
|
|
198
|
+
return /* @__PURE__ */ M(s, {
|
|
198
199
|
gap: "md",
|
|
199
|
-
className: n("ai-chat-message--component grid min-w-0", b ? u
|
|
200
|
+
className: n("ai-chat-message--component grid min-w-0", b ? d[u] : "grid-cols-1", o),
|
|
200
201
|
children: [
|
|
201
|
-
y && /* @__PURE__ */
|
|
202
|
+
y && /* @__PURE__ */ j(m, {
|
|
202
203
|
role: e.role,
|
|
203
204
|
avatar: e.avatar,
|
|
204
205
|
authorName: e.authorName,
|
|
@@ -210,35 +211,35 @@ function Y({ message: e, onCopy: r, onRegenerate: i, onAttachmentOpen: a, classN
|
|
|
210
211
|
onRegenerate: i,
|
|
211
212
|
children: v
|
|
212
213
|
}),
|
|
213
|
-
g.length > 0 && /* @__PURE__ */
|
|
214
|
+
g.length > 0 && /* @__PURE__ */ j(s, {
|
|
214
215
|
gap: "md",
|
|
215
216
|
className: n("ai-chat-message--parts min-w-0", x),
|
|
216
|
-
children: g.map((e, t) => /* @__PURE__ */
|
|
217
|
+
children: g.map((e, t) => /* @__PURE__ */ j(ee, {
|
|
217
218
|
part: e,
|
|
218
219
|
onAttachmentOpen: a
|
|
219
220
|
}, t))
|
|
220
221
|
}),
|
|
221
|
-
!!e.trailing && /* @__PURE__ */
|
|
222
|
+
!!e.trailing && /* @__PURE__ */ j("div", {
|
|
222
223
|
className: n("ai-chat-message--trailing min-w-0", x),
|
|
223
224
|
children: e.trailing
|
|
224
225
|
})
|
|
225
226
|
]
|
|
226
227
|
});
|
|
227
228
|
}
|
|
228
|
-
|
|
229
|
+
X.displayName = "AiChatMessage";
|
|
229
230
|
function ee({ part: e, onAttachmentOpen: t }) {
|
|
230
231
|
switch (e.type) {
|
|
231
|
-
case "text": return /* @__PURE__ */
|
|
232
|
-
case "reasoning": return /* @__PURE__ */
|
|
232
|
+
case "text": return /* @__PURE__ */ j(a, { children: e.content });
|
|
233
|
+
case "reasoning": return /* @__PURE__ */ j(C, {
|
|
233
234
|
streaming: e.streaming,
|
|
234
235
|
durationSeconds: e.durationSeconds,
|
|
235
236
|
children: e.content
|
|
236
237
|
});
|
|
237
|
-
case "chain-of-thought": return /* @__PURE__ */
|
|
238
|
+
case "chain-of-thought": return /* @__PURE__ */ j(g, {
|
|
238
239
|
steps: e.steps,
|
|
239
240
|
streaming: e.streaming
|
|
240
241
|
});
|
|
241
|
-
case "tool": return /* @__PURE__ */
|
|
242
|
+
case "tool": return /* @__PURE__ */ j(_, {
|
|
242
243
|
name: e.name,
|
|
243
244
|
status: e.status,
|
|
244
245
|
icon: e.icon,
|
|
@@ -248,24 +249,24 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
248
249
|
durationMs: e.durationMs,
|
|
249
250
|
defaultExpanded: e.defaultExpanded
|
|
250
251
|
});
|
|
251
|
-
case "code": return /* @__PURE__ */
|
|
252
|
+
case "code": return /* @__PURE__ */ j(h, {
|
|
252
253
|
code: e.code,
|
|
253
254
|
language: e.language,
|
|
254
255
|
filename: e.filename,
|
|
255
256
|
showLineNumbers: e.showLineNumbers,
|
|
256
257
|
highlightLines: e.highlightLines
|
|
257
258
|
});
|
|
258
|
-
case "attachments": return /* @__PURE__ */
|
|
259
|
+
case "attachments": return /* @__PURE__ */ j(K, {
|
|
259
260
|
attachments: e.items,
|
|
260
261
|
onOpen: t ? (e) => t(e.id) : void 0
|
|
261
262
|
});
|
|
262
|
-
case "sources": return /* @__PURE__ */
|
|
263
|
+
case "sources": return /* @__PURE__ */ j(b, {
|
|
263
264
|
sources: e.items,
|
|
264
265
|
variant: e.variant,
|
|
265
266
|
defaultExpanded: e.defaultExpanded
|
|
266
267
|
});
|
|
267
|
-
case "task": return /* @__PURE__ */
|
|
268
|
-
case "artifact": return /* @__PURE__ */
|
|
268
|
+
case "task": return /* @__PURE__ */ j(S, { task: e.task });
|
|
269
|
+
case "artifact": return /* @__PURE__ */ j(w, {
|
|
269
270
|
title: e.title,
|
|
270
271
|
subtitle: e.subtitle,
|
|
271
272
|
icon: e.icon,
|
|
@@ -275,7 +276,7 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
275
276
|
onDownload: e.onDownload,
|
|
276
277
|
children: e.body
|
|
277
278
|
});
|
|
278
|
-
case "confirmation": return /* @__PURE__ */
|
|
279
|
+
case "confirmation": return /* @__PURE__ */ j(v, {
|
|
279
280
|
title: e.title,
|
|
280
281
|
description: e.description,
|
|
281
282
|
tone: e.tone,
|
|
@@ -284,17 +285,17 @@ function ee({ part: e, onAttachmentOpen: t }) {
|
|
|
284
285
|
onApprove: e.onApprove,
|
|
285
286
|
onReject: e.onReject
|
|
286
287
|
});
|
|
287
|
-
case "custom": return /* @__PURE__ */ A
|
|
288
|
+
case "custom": return /* @__PURE__ */ j(A, { children: e.render() });
|
|
288
289
|
default: return null;
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
-
return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(
|
|
292
|
+
function te(e) {
|
|
293
|
+
return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(te).join("") : "";
|
|
293
294
|
}
|
|
294
295
|
//#endregion
|
|
295
296
|
//#region src/components/features/ai-chat/partials/ai-chat-prompt-input.tsx
|
|
296
|
-
function Z({ value: i, onValueChange: o, onSubmit: s, onStop:
|
|
297
|
-
let
|
|
297
|
+
function Z({ value: i, onValueChange: o, onSubmit: s, onStop: c, streaming: u = !1, disabled: d = !1, attachments: f = [], onRemoveAttachment: p, onAttach: m, showAttach: h, leadingActions: g, trailingActions: _, hideHint: v = !1, minRows: y = 1, maxRows: b = 8, autoFocus: x = !1, submitKeyLabel: S = "↩", className: C, strings: w }) {
|
|
298
|
+
let T = t(B, w), D = O(null), k = !u && !d && (i.trim().length > 0 || f.length > 0), A = E(() => {
|
|
298
299
|
k && s?.({
|
|
299
300
|
text: i,
|
|
300
301
|
attachments: f
|
|
@@ -304,25 +305,25 @@ function Z({ value: i, onValueChange: o, onSubmit: s, onStop: l, streaming: u =
|
|
|
304
305
|
s,
|
|
305
306
|
i,
|
|
306
307
|
f
|
|
307
|
-
]),
|
|
308
|
-
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(),
|
|
309
|
-
}, [
|
|
310
|
-
return /* @__PURE__ */
|
|
311
|
-
className: n("ai-chat-prompt-input--component", "rounded-radius border border-
|
|
308
|
+
]), N = E((e) => {
|
|
309
|
+
e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), A());
|
|
310
|
+
}, [A]), F = h ?? !!m;
|
|
311
|
+
return /* @__PURE__ */ M("div", {
|
|
312
|
+
className: n("ai-chat-prompt-input--component", "rounded-radius border border-input bg-card transition-[color,box-shadow] duration-150", "has-[textarea:focus-visible]:border-ring has-[textarea:focus-visible]:ring-3 has-[textarea:focus-visible]:ring-ring/50", d && "opacity-50 pointer-events-none", C),
|
|
312
313
|
children: [
|
|
313
|
-
f.length > 0 && /* @__PURE__ */
|
|
314
|
+
f.length > 0 && /* @__PURE__ */ j("div", {
|
|
314
315
|
className: "border-b border-border/60 p-surface-xs",
|
|
315
|
-
children: /* @__PURE__ */
|
|
316
|
+
children: /* @__PURE__ */ j(K, {
|
|
316
317
|
attachments: f,
|
|
317
318
|
onRemove: p
|
|
318
319
|
})
|
|
319
320
|
}),
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
ref:
|
|
321
|
+
/* @__PURE__ */ j(l, {
|
|
322
|
+
ref: D,
|
|
322
323
|
value: i,
|
|
323
324
|
onChange: (e) => o(e.target.value),
|
|
324
|
-
onKeyDown:
|
|
325
|
-
placeholder:
|
|
325
|
+
onKeyDown: N,
|
|
326
|
+
placeholder: T.placeholder,
|
|
326
327
|
autoResize: !0,
|
|
327
328
|
minRows: y,
|
|
328
329
|
maxRows: b,
|
|
@@ -330,52 +331,52 @@ function Z({ value: i, onValueChange: o, onSubmit: s, onStop: l, streaming: u =
|
|
|
330
331
|
disabled: d,
|
|
331
332
|
className: n("!border-0 !bg-transparent !shadow-none focus-visible:!ring-0 resize-none")
|
|
332
333
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ M("div", {
|
|
334
335
|
className: "flex items-center gap-space-xs border-t border-border/60 px-surface-xs py-space-sm",
|
|
335
336
|
children: [
|
|
336
337
|
g,
|
|
337
|
-
|
|
338
|
+
F && /* @__PURE__ */ j(r, {
|
|
338
339
|
type: "button",
|
|
339
340
|
tone: "secondary",
|
|
340
341
|
buttonStyle: "ghost",
|
|
341
342
|
size: "sm",
|
|
342
343
|
iconOnly: !0,
|
|
343
|
-
"aria-label":
|
|
344
|
+
"aria-label": T.attachAria,
|
|
344
345
|
onClick: m,
|
|
345
346
|
disabled: d,
|
|
346
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ j(I, { className: "size-icon" })
|
|
347
348
|
}),
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ M("div", {
|
|
349
350
|
className: "ml-auto flex items-center gap-space-xs",
|
|
350
|
-
children: [_, u ? /* @__PURE__ */
|
|
351
|
+
children: [_, u ? /* @__PURE__ */ j(r, {
|
|
351
352
|
type: "button",
|
|
352
353
|
tone: "secondary",
|
|
353
354
|
buttonStyle: "solid",
|
|
354
355
|
size: "sm",
|
|
355
356
|
iconOnly: !0,
|
|
356
|
-
"aria-label":
|
|
357
|
-
onClick:
|
|
358
|
-
children: /* @__PURE__ */
|
|
359
|
-
}) : /* @__PURE__ */
|
|
357
|
+
"aria-label": T.stopAria,
|
|
358
|
+
onClick: c,
|
|
359
|
+
children: /* @__PURE__ */ j(R, { className: "size-icon-md fill-current" })
|
|
360
|
+
}) : /* @__PURE__ */ j(r, {
|
|
360
361
|
type: "button",
|
|
361
362
|
tone: "primary",
|
|
362
363
|
buttonStyle: "solid",
|
|
363
364
|
size: "sm",
|
|
364
365
|
iconOnly: !0,
|
|
365
|
-
"aria-label":
|
|
366
|
-
onClick:
|
|
366
|
+
"aria-label": T.submitAria,
|
|
367
|
+
onClick: A,
|
|
367
368
|
disabled: !k,
|
|
368
|
-
children: /* @__PURE__ */
|
|
369
|
+
children: /* @__PURE__ */ j(P, { className: "size-icon" })
|
|
369
370
|
})]
|
|
370
371
|
})
|
|
371
372
|
]
|
|
372
373
|
}),
|
|
373
|
-
!v && /* @__PURE__ */
|
|
374
|
+
!v && /* @__PURE__ */ j("div", {
|
|
374
375
|
className: "px-surface-xs pb-surface-xs",
|
|
375
|
-
children: /* @__PURE__ */
|
|
376
|
+
children: /* @__PURE__ */ j(a, {
|
|
376
377
|
size: "xs",
|
|
377
378
|
type: "discrete",
|
|
378
|
-
children: e(
|
|
379
|
+
children: e(T.hint, {
|
|
379
380
|
submitKey: S,
|
|
380
381
|
newlineKey: "⇧↩"
|
|
381
382
|
})
|
|
@@ -387,40 +388,41 @@ function Z({ value: i, onValueChange: o, onSubmit: s, onStop: l, streaming: u =
|
|
|
387
388
|
Z.displayName = "AiChatPromptInput";
|
|
388
389
|
//#endregion
|
|
389
390
|
//#region src/components/features/ai-chat/partials/ai-chat-queue.tsx
|
|
390
|
-
function Q({ items: e, hideHeader:
|
|
391
|
-
let f = t(
|
|
392
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
391
|
+
function Q({ items: e, hideHeader: o = !1, onCancel: l, className: u, strings: d }) {
|
|
392
|
+
let f = t(H, d);
|
|
393
|
+
return e.length === 0 ? null : /* @__PURE__ */ M(s, {
|
|
393
394
|
gap: "sm",
|
|
394
|
-
className: n("ai-chat-queue--component", "rounded-radius border border-border/60 bg-muted/
|
|
395
|
-
children: [!
|
|
395
|
+
className: n("ai-chat-queue--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", u),
|
|
396
|
+
children: [!o && /* @__PURE__ */ M(i, {
|
|
396
397
|
className: "px-1",
|
|
397
398
|
children: [
|
|
398
399
|
f.header,
|
|
399
400
|
" · ",
|
|
400
401
|
e.length
|
|
401
402
|
]
|
|
402
|
-
}), /* @__PURE__ */
|
|
403
|
-
render: /* @__PURE__ */
|
|
403
|
+
}), /* @__PURE__ */ j(s, {
|
|
404
|
+
render: /* @__PURE__ */ j("ul", {}),
|
|
404
405
|
gap: "xs",
|
|
405
406
|
className: "ai-chat-queue--list m-0 list-none p-0 font-sans",
|
|
406
407
|
children: e.map((e) => {
|
|
407
408
|
let t = e.status ?? "queued";
|
|
408
|
-
return /* @__PURE__ */
|
|
409
|
-
className: "flex items-center gap-space-md rounded-
|
|
409
|
+
return /* @__PURE__ */ M("li", {
|
|
410
|
+
className: "flex items-center gap-space-md rounded-inner bg-card px-space-md py-space-sm",
|
|
410
411
|
children: [
|
|
411
|
-
t === "running" ? /* @__PURE__ */
|
|
412
|
+
t === "running" ? /* @__PURE__ */ j(F, { className: "size-icon-md shrink-0 animate-spin text-primary-accent" }) : /* @__PURE__ */ j("span", {
|
|
412
413
|
"aria-hidden": !0,
|
|
413
|
-
className: "size-
|
|
414
|
+
className: "flex size-icon-md shrink-0 items-center justify-center",
|
|
415
|
+
children: /* @__PURE__ */ j("span", { className: "size-2 rounded-full bg-muted-foreground" })
|
|
414
416
|
}),
|
|
415
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ j(a, {
|
|
416
418
|
className: "flex-1 truncate",
|
|
417
419
|
children: e.label
|
|
418
420
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
tone: t === "running" ? "
|
|
421
|
+
/* @__PURE__ */ j(c, {
|
|
422
|
+
tone: t === "running" ? "info" : "secondary",
|
|
421
423
|
children: t === "running" ? f.runningLabel : f.queuedLabel
|
|
422
424
|
}),
|
|
423
|
-
(!!e.onCancel || !!l) && /* @__PURE__ */
|
|
425
|
+
(!!e.onCancel || !!l) && /* @__PURE__ */ j(r, {
|
|
424
426
|
type: "button",
|
|
425
427
|
tone: "secondary",
|
|
426
428
|
buttonStyle: "ghost",
|
|
@@ -430,7 +432,7 @@ function Q({ items: e, hideHeader: c = !1, onCancel: l, className: u, strings: d
|
|
|
430
432
|
onClick: () => {
|
|
431
433
|
e.onCancel?.(), l?.(e.id);
|
|
432
434
|
},
|
|
433
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ j(z, { className: "size-icon-md" })
|
|
434
436
|
})
|
|
435
437
|
]
|
|
436
438
|
}, e.id);
|
|
@@ -442,24 +444,24 @@ Q.displayName = "AiChatQueue";
|
|
|
442
444
|
//#endregion
|
|
443
445
|
//#region src/components/features/ai-chat/partials/ai-chat-suggestions-row.tsx
|
|
444
446
|
function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, strings: l }) {
|
|
445
|
-
let u = t(
|
|
446
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
447
|
+
let u = t(U, l);
|
|
448
|
+
return e.length === 0 ? null : /* @__PURE__ */ M("div", {
|
|
447
449
|
className: n("ai-chat-suggestions-row--component flex items-center gap-space-md", c),
|
|
448
|
-
children: [!s && /* @__PURE__ */ j(
|
|
449
|
-
className: "
|
|
450
|
-
children:
|
|
451
|
-
}), /* @__PURE__ */
|
|
450
|
+
children: [!s && /* @__PURE__ */ j(i, {
|
|
451
|
+
className: "shrink-0",
|
|
452
|
+
children: u.header
|
|
453
|
+
}), /* @__PURE__ */ j("div", {
|
|
452
454
|
className: "flex min-w-0 flex-1 items-center gap-space-sm overflow-x-auto p-space-xs [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
|
|
453
455
|
children: e.map((e) => {
|
|
454
456
|
let t = e.icon;
|
|
455
|
-
return /* @__PURE__ */
|
|
457
|
+
return /* @__PURE__ */ M(r, {
|
|
456
458
|
type: "button",
|
|
457
459
|
tone: "secondary",
|
|
458
|
-
buttonStyle: "
|
|
460
|
+
buttonStyle: "outline",
|
|
459
461
|
size: "sm",
|
|
460
462
|
onClick: () => o?.(e),
|
|
461
|
-
className:
|
|
462
|
-
children: [!!t && /* @__PURE__ */
|
|
463
|
+
className: "shrink-0 gap-space-sm",
|
|
464
|
+
children: [!!t && /* @__PURE__ */ j(t, { className: "size-icon-sm text-muted-foreground" }), /* @__PURE__ */ j(a, {
|
|
463
465
|
tag: "span",
|
|
464
466
|
weight: "medium",
|
|
465
467
|
children: e.label
|
|
@@ -472,8 +474,8 @@ function $({ suggestions: e, onPick: o, hideHeader: s = !1, className: c, string
|
|
|
472
474
|
$.displayName = "AiChatSuggestionsRow";
|
|
473
475
|
//#endregion
|
|
474
476
|
//#region src/components/features/ai-chat/ai-chat.tsx
|
|
475
|
-
function
|
|
476
|
-
let N = t(
|
|
477
|
+
function ne({ messages: e, inputValue: r, onInputChange: i, 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: S, onMessageRegenerate: C, onAttachmentOpen: w, disableAutoScroll: T, slots: D, strings: O, className: A }) {
|
|
478
|
+
let N = t(G, O), [, P] = k(0), F = E((e, t) => D?.renderMessage ? D.renderMessage(e, t) : /* @__PURE__ */ j(X, {
|
|
477
479
|
className: "ai-chat-message--component",
|
|
478
480
|
message: e,
|
|
479
481
|
strings: N.message,
|
|
@@ -486,13 +488,13 @@ function te({ messages: e, inputValue: i, onInputChange: a, onSubmit: s, onStop:
|
|
|
486
488
|
C,
|
|
487
489
|
D,
|
|
488
490
|
N.message
|
|
489
|
-
]), I = D?.header ?? (h ? /* @__PURE__ */
|
|
491
|
+
]), I = D?.header ?? (h ? /* @__PURE__ */ j("div", {
|
|
490
492
|
className: "border-b border-border bg-card p-surface",
|
|
491
|
-
children: /* @__PURE__ */
|
|
493
|
+
children: /* @__PURE__ */ M(s, {
|
|
492
494
|
direction: "horizontal",
|
|
493
495
|
align: "center",
|
|
494
496
|
gap: "lg",
|
|
495
|
-
children: [/* @__PURE__ */
|
|
497
|
+
children: [/* @__PURE__ */ j(x, {
|
|
496
498
|
name: h.name,
|
|
497
499
|
icon: h.icon,
|
|
498
500
|
avatar: h.avatar,
|
|
@@ -500,27 +502,27 @@ function te({ messages: e, inputValue: i, onInputChange: a, onSubmit: s, onStop:
|
|
|
500
502
|
tone: h.tone,
|
|
501
503
|
status: h.status,
|
|
502
504
|
variant: "inline"
|
|
503
|
-
}), !!g && /* @__PURE__ */
|
|
505
|
+
}), !!g && /* @__PURE__ */ j("div", {
|
|
504
506
|
className: "ml-auto flex items-center gap-space-xs",
|
|
505
507
|
children: g
|
|
506
508
|
})]
|
|
507
509
|
})
|
|
508
|
-
}) : null), L = D?.empty ?? (e.length === 0 ? /* @__PURE__ */
|
|
510
|
+
}) : null), L = D?.empty ?? (e.length === 0 ? /* @__PURE__ */ j(Y, {
|
|
509
511
|
title: N.emptyTitle,
|
|
510
512
|
description: N.emptyDescription
|
|
511
|
-
}) : null), R = D?.queue ?? (_.length > 0 ? /* @__PURE__ */
|
|
513
|
+
}) : null), R = D?.queue ?? (_.length > 0 ? /* @__PURE__ */ j(Q, {
|
|
512
514
|
items: _,
|
|
513
515
|
onCancel: v,
|
|
514
516
|
strings: N.queue
|
|
515
|
-
}) : null), z = D?.suggestions ?? (y.length > 0 ? /* @__PURE__ */
|
|
517
|
+
}) : null), z = D?.suggestions ?? (y.length > 0 ? /* @__PURE__ */ j($, {
|
|
516
518
|
suggestions: y,
|
|
517
|
-
onPick:
|
|
519
|
+
onPick: b,
|
|
518
520
|
strings: N.suggestions
|
|
519
|
-
}) : null), B = D?.input ?? /* @__PURE__ */
|
|
520
|
-
value:
|
|
521
|
-
onValueChange:
|
|
521
|
+
}) : null), B = D?.input ?? /* @__PURE__ */ j(Z, {
|
|
522
|
+
value: r,
|
|
523
|
+
onValueChange: i,
|
|
522
524
|
onSubmit: (e) => {
|
|
523
|
-
|
|
525
|
+
o?.(e), P((e) => e + 1);
|
|
524
526
|
},
|
|
525
527
|
onStop: c,
|
|
526
528
|
streaming: l,
|
|
@@ -531,22 +533,22 @@ function te({ messages: e, inputValue: i, onInputChange: a, onSubmit: s, onStop:
|
|
|
531
533
|
showAttach: m,
|
|
532
534
|
strings: N.prompt
|
|
533
535
|
});
|
|
534
|
-
return /* @__PURE__ */
|
|
535
|
-
className: n("ai-chat--component flex h-full flex-col overflow-hidden rounded-radius border border-border bg-background",
|
|
536
|
+
return /* @__PURE__ */ M("div", {
|
|
537
|
+
className: n("ai-chat--component flex h-full flex-col overflow-hidden rounded-radius border border-border bg-background", A),
|
|
536
538
|
children: [
|
|
537
539
|
I,
|
|
538
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ j(J, {
|
|
539
541
|
messages: e,
|
|
540
542
|
renderMessage: F,
|
|
541
543
|
intro: D?.intro,
|
|
542
544
|
footer: D?.belowMessages,
|
|
543
545
|
empty: L,
|
|
544
|
-
disableAutoScroll:
|
|
546
|
+
disableAutoScroll: T,
|
|
545
547
|
strings: N.conversation
|
|
546
548
|
}),
|
|
547
|
-
(R || z || B) && /* @__PURE__ */
|
|
548
|
-
className: "border-t border-border bg-card
|
|
549
|
-
children: /* @__PURE__ */
|
|
549
|
+
(R || z || B) && /* @__PURE__ */ j("div", {
|
|
550
|
+
className: "border-t border-border bg-card p-surface",
|
|
551
|
+
children: /* @__PURE__ */ M(s, {
|
|
550
552
|
gap: "md",
|
|
551
553
|
children: [
|
|
552
554
|
R,
|
|
@@ -555,7 +557,7 @@ function te({ messages: e, inputValue: i, onInputChange: a, onSubmit: s, onStop:
|
|
|
555
557
|
]
|
|
556
558
|
})
|
|
557
559
|
}),
|
|
558
|
-
u && /* @__PURE__ */
|
|
560
|
+
u && /* @__PURE__ */ j(a, {
|
|
559
561
|
className: "sr-only",
|
|
560
562
|
"aria-live": "polite",
|
|
561
563
|
children: N.disabledAnnouncement
|
|
@@ -563,8 +565,8 @@ function te({ messages: e, inputValue: i, onInputChange: a, onSubmit: s, onStop:
|
|
|
563
565
|
]
|
|
564
566
|
});
|
|
565
567
|
}
|
|
566
|
-
|
|
568
|
+
ne.displayName = "AiChat";
|
|
567
569
|
//#endregion
|
|
568
|
-
export {
|
|
570
|
+
export { ne as AiChat, K as AiChatAttachmentsStrip, J as AiChatConversation, Y as AiChatEmptyState, X as AiChatMessageView, Z as AiChatPromptInput, Q as AiChatQueue, $ as AiChatSuggestionsRow, V as defaultAiChatConversationStrings, W as defaultAiChatMessageStrings, B as defaultAiChatPromptInputStrings, H as defaultAiChatQueueStrings, G as defaultAiChatStrings, U as defaultAiChatSuggestionsStrings, q as useAiChatScroll };
|
|
569
571
|
|
|
570
572
|
//# sourceMappingURL=ai-chat.js.map
|