themelia-react-ui 2.0.5 → 2.0.6
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 +76 -0
- package/MIGRATION.md +119 -0
- package/README.md +13 -6
- package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
- package/dist/accordion-0tQUZ20r.js.map +1 -0
- package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
- package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
- package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
- package/dist/ai-artifact-CGGpQryR.js.map +1 -0
- package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
- package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
- package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
- package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
- package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
- package/dist/auth-B0girIk_.js.map +1 -0
- package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
- package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
- package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
- package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.js.map} +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +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 +6 -6
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +8 -8
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +195 -188
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +7 -7
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +5 -5
- package/dist/base/spinner.js.map +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 +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
- package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
- package/dist/blocks/admin.js +17 -17
- package/dist/blocks/ai.js +227 -221
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +424 -449
- 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 +225 -220
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +5 -5
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
- package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
- package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
- package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
- package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
- package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
- package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
- package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
- package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
- package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
- package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
- package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
- package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
- package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
- package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
- package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
- package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
- package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
- package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
- package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
- package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
- package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
- package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
- package/dist/combobox-C2JiSQPc.js +915 -0
- package/dist/combobox-C2JiSQPc.js.map +1 -0
- package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
- package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
- package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
- package/dist/comments-BsgErEqd.js.map +1 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/feedback/state-display.d.ts +5 -1
- package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
- package/dist/components/base/forms/form-field.d.ts +7 -2
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
- package/dist/components/base/navigation/language-switcher.d.ts +12 -4
- package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
- package/dist/components/base/sidebar/sidebar.d.ts +2 -0
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
- package/dist/components/blocks/analytics/types.d.ts +2 -2
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
- package/dist/components/features/activities/activities.types.d.ts +18 -11
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +2 -2
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
- package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
- package/dist/components/features/combobox/types.d.ts +37 -8
- package/dist/components/features/email-composer/types.d.ts +3 -1
- package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -3
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
- package/dist/components/features/media-library/hooks/use-media-library.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 +36 -8
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
- package/dist/components/features/products/products.types.d.ts +2 -2
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +2 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
- 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.types.d.ts +17 -3
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +6 -3
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +17 -1
- package/dist/components/layout/header/header.types.d.ts +3 -2
- package/dist/components/layout/layout.types.d.ts +5 -3
- package/dist/components/layout/navigation/side-nav.d.ts +3 -2
- package/dist/components/layout/normalize-layout-path.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +1 -1
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
- package/dist/components/primitives/link.d.ts +3 -2
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
- package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
- package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
- package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
- package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
- package/dist/data-display-Cmj-xZYl.js.map +1 -0
- package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
- package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
- package/dist/date-picker-CyQlFYsP.js +1617 -0
- package/dist/date-picker-CyQlFYsP.js.map +1 -0
- package/dist/date-pickers-tj2MXmXd.js +185 -0
- package/dist/date-pickers-tj2MXmXd.js.map +1 -0
- package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
- package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
- package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
- package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
- package/dist/features/activities.js +283 -270
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +40 -27
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +126 -126
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +10 -10
- package/dist/features/email-composer.js +24 -19
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +129 -125
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +16 -20
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +18 -28
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +331 -314
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1044 -866
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +978 -964
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +159 -152
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +74 -71
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +28 -19
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +297 -256
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +57 -50
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +400 -399
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-Dzo1xtAU.js +246 -0
- package/dist/feedback-Dzo1xtAU.js.map +1 -0
- package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
- package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
- package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
- package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
- package/dist/filters-Dl80yYtN.js.map +1 -0
- package/dist/form-field-CAPdwdnZ.js +74 -0
- package/dist/form-field-CAPdwdnZ.js.map +1 -0
- package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
- package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
- package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
- package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
- package/dist/forms-numeric-CwjQJe-O.js +991 -0
- package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
- package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
- package/dist/header-ZIIsRKxP.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
- package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
- package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
- package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
- package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
- package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
- package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
- package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
- package/dist/item-FfWnaYST.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 +11 -11
- package/dist/layout.types-E_GAApzO.js +30 -0
- package/dist/layout.types-E_GAApzO.js.map +1 -0
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/surface-recipes.d.ts +1 -1
- package/dist/lib/token-merge.generated.d.ts +6 -6
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
- package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
- package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
- package/dist/mentions-qOnedSt4.js.map +1 -0
- package/dist/message-BJHnn43M.js +135 -0
- package/dist/message-BJHnn43M.js.map +1 -0
- package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
- package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
- package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
- package/dist/navigation-BgtPJAhi.js.map +1 -0
- package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
- package/dist/navigation-Bt-v7rWP.js.map +1 -0
- package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
- package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
- package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
- package/dist/number-CYqBcrSj.js.map +1 -0
- package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
- package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
- package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
- package/dist/overlays-CC8zI3Du.js.map +1 -0
- package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
- package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
- package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
- package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
- package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
- package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
- package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
- package/dist/popover-k8TdUcAt.js.map +1 -0
- package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
- package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
- package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
- package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
- package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
- package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
- package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
- package/dist/primitives-BkkQjYl7.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
- package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
- package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
- package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
- package/dist/rich-text-BnTzZjIo.js +45 -0
- package/dist/rich-text-BnTzZjIo.js.map +1 -0
- package/dist/rich-text-editor-CAurDwT5.js +1273 -0
- package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
- package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
- package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
- package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
- package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
- package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
- package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
- package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
- package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
- package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
- package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-DZPHgpx4.js +155 -0
- package/dist/settings-DZPHgpx4.js.map +1 -0
- package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
- package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
- package/dist/sidebar-C8BnDwTH.js +709 -0
- package/dist/sidebar-C8BnDwTH.js.map +1 -0
- package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
- package/dist/sidebar-CmD6a-HK.js.map +1 -0
- package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
- package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
- package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
- package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
- package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
- package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
- package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
- package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
- package/dist/table-CBonSdTp.js.map +1 -0
- package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
- package/dist/table-CXSPHH25.js.map +1 -0
- package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
- package/dist/tabs-C4Kr_hCr.js.map +1 -0
- package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
- package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
- package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
- package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
- package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
- package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
- package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
- package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
- package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
- package/dist/upload-Hdm5gObf.js.map +1 -0
- package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
- package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
- package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
- package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
- package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
- package/dist/utils-DhuoqFy4.js.map +1 -0
- package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
- package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
- package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
- package/dist/value-typography-uSzzG9Gf.js.map +1 -0
- package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
- package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
- package/docs/consumer-skill/examples/edit.tsx +3 -3
- package/docs/consumer-skill/references/agents-md.md +19 -19
- package/docs/consumer-skill/references/analytics.md +15 -0
- package/docs/consumer-skill/references/component-contracts.json +14724 -13057
- package/docs/consumer-skill/references/composition.md +21 -4
- package/docs/consumer-skill/references/design-contract.md +1 -0
- package/docs/consumer-skill/references/installation.md +51 -8
- package/docs/consumer-skill/references/integration.md +24 -1
- package/docs/consumer-skill/references/public-api.json +172 -34
- package/docs/consumer-skill/references/review.md +51 -11
- package/docs/consumer-skill/references/rhf-workflows.md +72 -0
- package/docs/consumer-skill/references/theming.md +7 -2
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
- package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
- package/package.json +4 -2
- package/templates/admin-shell-template.tsx +1 -2
- package/templates/customers-template.tsx +18 -16
- package/dist/accordion-B9MHG0cT.js.map +0 -1
- package/dist/ai-artifact-C58tQcBy.js.map +0 -1
- package/dist/auth-DTkkshS8.js.map +0 -1
- package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
- package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
- package/dist/combobox-BwzoXFSG.js +0 -884
- package/dist/combobox-BwzoXFSG.js.map +0 -1
- package/dist/comments-Dmpp0YIc.js.map +0 -1
- package/dist/data-display-BdgCAw8T.js.map +0 -1
- package/dist/date-picker-RlIzKom_.js +0 -1551
- package/dist/date-picker-RlIzKom_.js.map +0 -1
- package/dist/date-pickers-DY-CpXS1.js +0 -179
- package/dist/date-pickers-DY-CpXS1.js.map +0 -1
- package/dist/feedback-Dm4izqFn.js +0 -240
- package/dist/feedback-Dm4izqFn.js.map +0 -1
- package/dist/filters-DzgSJpMK.js.map +0 -1
- package/dist/form-field-BriWAXyg.js +0 -63
- package/dist/form-field-BriWAXyg.js.map +0 -1
- package/dist/forms-numeric-DIhghX1Q.js +0 -910
- package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
- package/dist/header-DMMxG__r.js.map +0 -1
- package/dist/item-DjCcM18E.js.map +0 -1
- package/dist/layout.types-Cn7aUzJp.js +0 -20
- package/dist/layout.types-Cn7aUzJp.js.map +0 -1
- package/dist/mentions-0_4nWuI-.js.map +0 -1
- package/dist/message-g8p7eVtN.js +0 -128
- package/dist/message-g8p7eVtN.js.map +0 -1
- package/dist/navigation-C90-oQFq.js.map +0 -1
- package/dist/navigation-DaRjthVk.js.map +0 -1
- package/dist/number-CRU3kGuk.js.map +0 -1
- package/dist/overlays-BSgCtM2v.js.map +0 -1
- package/dist/popover-B85RenIl.js.map +0 -1
- package/dist/primitives-ByWgGUgt.js.map +0 -1
- package/dist/rich-text-Dth5E882.js +0 -78
- package/dist/rich-text-Dth5E882.js.map +0 -1
- package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
- package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
- package/dist/safe-image-src-C6kQSMBZ.js +0 -17
- package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/settings-Bar5wiSo.js +0 -167
- package/dist/settings-Bar5wiSo.js.map +0 -1
- package/dist/sidebar-D-JYMMbY.js +0 -686
- package/dist/sidebar-D-JYMMbY.js.map +0 -1
- package/dist/sidebar-f9gRWXIR.js.map +0 -1
- package/dist/table-B4TE7iOV.js.map +0 -1
- package/dist/table-CFOWY9pQ.js.map +0 -1
- package/dist/tabs-e7ko9S2o.js.map +0 -1
- package/dist/upload-BOW6U2tI.js.map +0 -1
- package/dist/utils-B6kKb8jB.js.map +0 -1
- package/dist/value-typography-uAmWUAL1.js.map +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { mergeStrings as e, useStrings as t } from "./lib/strings.js";
|
|
3
|
-
import { t as n } from "./utils-
|
|
4
|
-
import { n as r } from "./buttons-
|
|
5
|
-
import { c as i, o as a, t as o } from "./typography-
|
|
3
|
+
import { t as n } from "./utils-DhuoqFy4.js";
|
|
4
|
+
import { n as r } from "./buttons-DeW0bQeK.js";
|
|
5
|
+
import { c as i, o as a, t as o } from "./typography-C7-YMW1S.js";
|
|
6
6
|
import { t as s } from "./focus-recipes-B653VaLq.js";
|
|
7
|
-
import { t as c } from "./structure-
|
|
7
|
+
import { t as c } from "./structure-DZJ2wbAU.js";
|
|
8
8
|
import { i as l } from "./tone-recipes-BPsRAvhu.js";
|
|
9
|
-
import { t as u } from "./smart-card-
|
|
9
|
+
import { t as u } from "./smart-card-B6vLxqa_.js";
|
|
10
10
|
import { n as d } from "./composition.recipes-COdiFhxB.js";
|
|
11
|
-
import { t as f } from "./interaction-recipes-
|
|
12
|
-
import { g as p, m, r as h } from "./primitives-
|
|
13
|
-
import { t as g } from "./number-
|
|
14
|
-
import { t as _ } from "./icon-badge-
|
|
15
|
-
import { t as v } from "./badge-
|
|
16
|
-
import { a as y, c as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./attachment-
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { useEffect as k, useRef as A, useState as j } from "react";
|
|
11
|
+
import { t as f } from "./interaction-recipes-4wZ2tvfb.js";
|
|
12
|
+
import { g as p, m, r as h } from "./primitives-BkkQjYl7.js";
|
|
13
|
+
import { t as g } from "./number-CYqBcrSj.js";
|
|
14
|
+
import { t as _ } from "./icon-badge-npxF1SLX.js";
|
|
15
|
+
import { t as v } from "./badge-wWauMgAt.js";
|
|
16
|
+
import { a as y, c as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./attachment-BCpA4e7i.js";
|
|
17
|
+
import { t as ee } from "./message-BJHnn43M.js";
|
|
18
|
+
import { t as D } from "./code-block-BSJyq9e-.js";
|
|
19
|
+
import { useEffect as O, useId as k, useRef as A, useState as j } from "react";
|
|
20
20
|
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
21
|
-
import { AlertCircle as F, Bot as I, Brain as
|
|
21
|
+
import { AlertCircle as F, Bot as I, Brain as te, Check as L, ChevronDown as R, ChevronRight as z, Circle as ne, Copy as re, Download as ie, ExternalLink as ae, FileText as oe, Globe as se, Loader2 as B, MinusCircle as ce, RotateCcw as le, User as ue, X as V, XCircle as de } from "lucide-react";
|
|
22
22
|
//#region src/components/blocks/ai/use-copy-feedback.ts
|
|
23
23
|
function H(e, t) {
|
|
24
24
|
let [n, r] = j(!1), [i, a] = j(!1), o = A(!1), s = A(0), c = A(void 0);
|
|
25
|
-
return
|
|
25
|
+
return O(() => (o.current = !0, r(!1), a(!1), () => {
|
|
26
26
|
o.current = !1, s.current += 1, clearTimeout(c.current);
|
|
27
27
|
}), [t]), {
|
|
28
28
|
copied: n,
|
|
@@ -52,12 +52,12 @@ var U = {
|
|
|
52
52
|
//#region src/components/blocks/ai/ai-message-bubble/ai-message-bubble.tsx
|
|
53
53
|
function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, timestamp: c, children: l, plainText: u, loading: d = !1, onCopy: f, onRegenerate: p, onCopyError: m, className: h, strings: g }) {
|
|
54
54
|
let v = t(U, g), y = u ?? (typeof l == "string" ? l : ""), { copied: b, failed: x, copy: S } = H(m, y), C = a ?? /* @__PURE__ */ N(_, {
|
|
55
|
-
icon: e === "user" ?
|
|
55
|
+
icon: e === "user" ? ue : I,
|
|
56
56
|
tone: "neutral",
|
|
57
57
|
size: "sm",
|
|
58
58
|
"aria-label": o
|
|
59
59
|
}), w = (f !== void 0 || u || p) && e === "assistant";
|
|
60
|
-
return /* @__PURE__ */ N(
|
|
60
|
+
return /* @__PURE__ */ N(ee, {
|
|
61
61
|
align: e === "user" ? "end" : "start",
|
|
62
62
|
tone: e === "user" ? "primary" : e === "system" ? "muted" : "surface",
|
|
63
63
|
avatar: C,
|
|
@@ -78,7 +78,7 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
|
|
|
78
78
|
onClick: async () => {
|
|
79
79
|
y && await S(y) && f?.();
|
|
80
80
|
},
|
|
81
|
-
children: /* @__PURE__ */ N(
|
|
81
|
+
children: /* @__PURE__ */ N(re, {
|
|
82
82
|
"aria-hidden": "true",
|
|
83
83
|
className: "size-icon-md"
|
|
84
84
|
})
|
|
@@ -96,7 +96,7 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
|
|
|
96
96
|
iconOnly: !0,
|
|
97
97
|
"aria-label": v.regenerateAria,
|
|
98
98
|
onClick: p,
|
|
99
|
-
children: /* @__PURE__ */ N(
|
|
99
|
+
children: /* @__PURE__ */ N(le, {
|
|
100
100
|
"aria-hidden": "true",
|
|
101
101
|
className: "size-icon-md"
|
|
102
102
|
})
|
|
@@ -125,7 +125,7 @@ var G = {
|
|
|
125
125
|
result: "Result",
|
|
126
126
|
durationLabel: "Took",
|
|
127
127
|
elapsedLabel: "Elapsed"
|
|
128
|
-
},
|
|
128
|
+
}, fe = {
|
|
129
129
|
pending: { tone: "secondary" },
|
|
130
130
|
running: {
|
|
131
131
|
tone: "info",
|
|
@@ -134,7 +134,7 @@ var G = {
|
|
|
134
134
|
success: { tone: "success" },
|
|
135
135
|
error: { tone: "destructive" }
|
|
136
136
|
};
|
|
137
|
-
function
|
|
137
|
+
function pe({ label: e, ms: t }) {
|
|
138
138
|
return /* @__PURE__ */ P("span", {
|
|
139
139
|
className: "inline-flex shrink-0 items-baseline gap-space-xs",
|
|
140
140
|
children: [/* @__PURE__ */ N(p, {
|
|
@@ -152,14 +152,14 @@ function fe({ label: e, ms: t }) {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
function K({ name: e, status: i, icon: a, args: o, result: s, error: d, durationMs: p, expanded: h, defaultExpanded: g = !1, onExpandedChange: y, className: b, strings: x }) {
|
|
155
|
-
let S = t(G, x),
|
|
156
|
-
h === void 0 &&
|
|
155
|
+
let S = t(G, x), C = k(), [w, T] = j(g), E = h ?? w, ee = (e) => {
|
|
156
|
+
h === void 0 && T(e), y?.(e);
|
|
157
157
|
}, D = {
|
|
158
158
|
pending: S.pending,
|
|
159
159
|
running: S.running,
|
|
160
160
|
success: S.success,
|
|
161
161
|
error: S.error
|
|
162
|
-
}, O =
|
|
162
|
+
}, O = fe[i], A = !!(o || s || d), F = i === "success" || i === "error";
|
|
163
163
|
return /* @__PURE__ */ P(u, {
|
|
164
164
|
surface: "card",
|
|
165
165
|
padding: "none",
|
|
@@ -169,10 +169,11 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
169
169
|
tone: "secondary",
|
|
170
170
|
buttonStyle: "ghost",
|
|
171
171
|
size: "md",
|
|
172
|
-
onClick: () =>
|
|
173
|
-
className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap",
|
|
174
|
-
"aria-expanded":
|
|
175
|
-
"aria-
|
|
172
|
+
onClick: () => A && ee(!E),
|
|
173
|
+
className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap", A ? `cursor-pointer ${f.rowHover}` : "cursor-default"),
|
|
174
|
+
"aria-expanded": A ? E : void 0,
|
|
175
|
+
"aria-controls": A ? C : void 0,
|
|
176
|
+
"aria-description": A ? E ? x?.collapse : x?.expand : void 0,
|
|
176
177
|
children: [
|
|
177
178
|
!!a && /* @__PURE__ */ N(_, {
|
|
178
179
|
icon: a,
|
|
@@ -195,20 +196,22 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
195
196
|
dot: O.live,
|
|
196
197
|
pulse: O.live,
|
|
197
198
|
children: D[i]
|
|
198
|
-
}), !!p && /* @__PURE__ */ N(
|
|
199
|
-
label:
|
|
199
|
+
}), !!p && /* @__PURE__ */ N(pe, {
|
|
200
|
+
label: F ? S.durationLabel : S.elapsedLabel ?? G.elapsedLabel ?? S.durationLabel,
|
|
200
201
|
ms: p
|
|
201
202
|
})]
|
|
202
203
|
}),
|
|
203
|
-
|
|
204
|
+
A ? N(E ? R : z, { className: "size-icon-md shrink-0 text-muted-foreground" }) : /* @__PURE__ */ N("span", {
|
|
204
205
|
"aria-hidden": "true",
|
|
205
206
|
className: "ai-tool-call--affordance hidden size-icon-md shrink-0 @md/card:block"
|
|
206
207
|
})
|
|
207
208
|
]
|
|
208
|
-
}),
|
|
209
|
+
}), A && /* @__PURE__ */ N(c, {
|
|
210
|
+
id: C,
|
|
211
|
+
hidden: !E,
|
|
209
212
|
gap: "md",
|
|
210
|
-
className: "ai-tool-call--details border-t border-border/60 bg-muted/30 px-space-lg py-space-md",
|
|
211
|
-
children: [!!o && /* @__PURE__ */ N(q, {
|
|
213
|
+
className: n("ai-tool-call--details border-t border-border/60 bg-muted/30 px-space-lg py-space-md", !E && "hidden"),
|
|
214
|
+
children: E && /* @__PURE__ */ P(M, { children: [!!o && /* @__PURE__ */ N(q, {
|
|
212
215
|
label: S.args,
|
|
213
216
|
children: o
|
|
214
217
|
}), i === "error" && d ? /* @__PURE__ */ N(q, {
|
|
@@ -218,7 +221,7 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
|
|
|
218
221
|
}) : !!s && /* @__PURE__ */ N(q, {
|
|
219
222
|
label: S.result,
|
|
220
223
|
children: s
|
|
221
|
-
})]
|
|
224
|
+
})] })
|
|
222
225
|
})]
|
|
223
226
|
});
|
|
224
227
|
}
|
|
@@ -261,7 +264,7 @@ function J({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, siz
|
|
|
261
264
|
J.displayName = "AiShimmer";
|
|
262
265
|
//#endregion
|
|
263
266
|
//#region src/components/blocks/ai/ai-code-block/types.ts
|
|
264
|
-
var
|
|
267
|
+
var me = {
|
|
265
268
|
copy: "Copy",
|
|
266
269
|
copied: "Copied",
|
|
267
270
|
copyError: "Could not copy. Please try again.",
|
|
@@ -270,9 +273,9 @@ var pe = {
|
|
|
270
273
|
};
|
|
271
274
|
//#endregion
|
|
272
275
|
//#region src/components/blocks/ai/ai-code-block/ai-code-block.tsx
|
|
273
|
-
function
|
|
274
|
-
let o = t(
|
|
275
|
-
return /* @__PURE__ */ N(
|
|
276
|
+
function he({ strings: e, className: r, onCopy: i, ...a }) {
|
|
277
|
+
let o = t(me, e);
|
|
278
|
+
return /* @__PURE__ */ N(D, {
|
|
276
279
|
...a,
|
|
277
280
|
className: n("ai-code-block--component", r),
|
|
278
281
|
onCopy: i ? () => i() : void 0,
|
|
@@ -284,7 +287,7 @@ function me({ strings: e, className: r, onCopy: i, ...a }) {
|
|
|
284
287
|
}
|
|
285
288
|
});
|
|
286
289
|
}
|
|
287
|
-
|
|
290
|
+
he.displayName = "AiCodeBlock";
|
|
288
291
|
//#endregion
|
|
289
292
|
//#region src/components/blocks/ai/ai-attachment/types.ts
|
|
290
293
|
var Y = {
|
|
@@ -295,7 +298,7 @@ var Y = {
|
|
|
295
298
|
};
|
|
296
299
|
//#endregion
|
|
297
300
|
//#region src/components/blocks/ai/ai-attachment/ai-attachment.tsx
|
|
298
|
-
function
|
|
301
|
+
function ge({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
|
|
299
302
|
let h = t(Y, m), g = !u && typeof l == "number" && l >= 0 && l < 1;
|
|
300
303
|
return /* @__PURE__ */ P(E, {
|
|
301
304
|
name: e,
|
|
@@ -356,17 +359,17 @@ function he({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
|
|
|
356
359
|
]
|
|
357
360
|
});
|
|
358
361
|
}
|
|
359
|
-
|
|
362
|
+
ge.displayName = "AiAttachment";
|
|
360
363
|
//#endregion
|
|
361
364
|
//#region src/components/blocks/ai/ai-agent/types.ts
|
|
362
|
-
var
|
|
365
|
+
var _e = { statusLabels: {
|
|
363
366
|
idle: "Idle",
|
|
364
367
|
thinking: "Thinking",
|
|
365
368
|
working: "Working",
|
|
366
369
|
done: "Done",
|
|
367
370
|
error: "Error",
|
|
368
371
|
offline: "Offline"
|
|
369
|
-
} },
|
|
372
|
+
} }, ve = {
|
|
370
373
|
idle: "secondary",
|
|
371
374
|
thinking: "info",
|
|
372
375
|
working: "info",
|
|
@@ -374,13 +377,13 @@ var ge = { statusLabels: {
|
|
|
374
377
|
error: "destructive",
|
|
375
378
|
offline: "secondary"
|
|
376
379
|
};
|
|
377
|
-
function
|
|
378
|
-
let h = t(
|
|
380
|
+
function ye({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", status: l, variant: d = "inline", trailing: f, className: p, strings: m }) {
|
|
381
|
+
let h = t(_e, m), g = a ?? /* @__PURE__ */ N(_, {
|
|
379
382
|
icon: r ?? I,
|
|
380
383
|
tone: s,
|
|
381
384
|
size: d === "card" ? "md" : "sm"
|
|
382
385
|
}), y = l === "thinking" || l === "working", b = !!l && /* @__PURE__ */ N(v, {
|
|
383
|
-
tone:
|
|
386
|
+
tone: ve[l],
|
|
384
387
|
dot: !0,
|
|
385
388
|
pulse: y,
|
|
386
389
|
children: h.statusLabels[l]
|
|
@@ -451,16 +454,16 @@ function ve({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", sta
|
|
|
451
454
|
]
|
|
452
455
|
});
|
|
453
456
|
}
|
|
454
|
-
|
|
457
|
+
ye.displayName = "AiAgent";
|
|
455
458
|
//#endregion
|
|
456
459
|
//#region src/components/blocks/ai/ai-confirmation/types.ts
|
|
457
|
-
var
|
|
460
|
+
var be = {
|
|
458
461
|
approve: "Approve",
|
|
459
462
|
reject: "Reject",
|
|
460
463
|
pending: "Awaiting your approval",
|
|
461
464
|
approved: "Approved",
|
|
462
465
|
rejected: "Rejected"
|
|
463
|
-
},
|
|
466
|
+
}, xe = {
|
|
464
467
|
neutral: { icon: "neutral" },
|
|
465
468
|
destructive: {
|
|
466
469
|
ring: `${l.destructive.edge} ${l.destructive.wash}`,
|
|
@@ -479,8 +482,8 @@ var ye = {
|
|
|
479
482
|
icon: "primary"
|
|
480
483
|
}
|
|
481
484
|
};
|
|
482
|
-
function
|
|
483
|
-
let b = t(
|
|
485
|
+
function Se({ title: e, description: a, icon: o, tone: s = "neutral", status: l = "pending", onApprove: f, onReject: p, approveLabel: m, rejectLabel: h, details: g, className: v, strings: y }) {
|
|
486
|
+
let b = t(be, y), x = o, S = xe[s];
|
|
484
487
|
return /* @__PURE__ */ N(u, {
|
|
485
488
|
role: "region",
|
|
486
489
|
"aria-live": "polite",
|
|
@@ -562,10 +565,10 @@ function xe({ title: e, description: a, icon: o, tone: s = "neutral", status: l
|
|
|
562
565
|
})
|
|
563
566
|
});
|
|
564
567
|
}
|
|
565
|
-
|
|
568
|
+
Se.displayName = "AiConfirmation";
|
|
566
569
|
//#endregion
|
|
567
570
|
//#region src/components/blocks/ai/ai-sources/types.ts
|
|
568
|
-
var
|
|
571
|
+
var Ce = {
|
|
569
572
|
title: "{{count}} sources",
|
|
570
573
|
expand: "Show all sources",
|
|
571
574
|
collapse: "Hide sources",
|
|
@@ -573,26 +576,24 @@ var Se = {
|
|
|
573
576
|
};
|
|
574
577
|
//#endregion
|
|
575
578
|
//#region src/components/blocks/ai/ai-sources/ai-sources.tsx
|
|
576
|
-
function
|
|
579
|
+
function we(e, t) {
|
|
577
580
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
578
581
|
let r = t[n];
|
|
579
582
|
return r === void 0 ? e : String(r);
|
|
580
583
|
});
|
|
581
584
|
}
|
|
582
|
-
function
|
|
583
|
-
let g = e(
|
|
584
|
-
s === void 0 &&
|
|
585
|
-
},
|
|
586
|
-
|
|
585
|
+
function Te({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, defaultExpanded: l = !1, onExpandedChange: d, onSelect: p, className: m, strings: h }) {
|
|
586
|
+
let g = e(Ce, h), _ = k(), v = k(), [y, b] = j(l), x = s ?? y, S = (e) => {
|
|
587
|
+
s === void 0 && b(e), d?.(e);
|
|
588
|
+
}, C = we(g.title, { count: t.length });
|
|
589
|
+
return a === "avatars" ? /* @__PURE__ */ N(Ee, {
|
|
587
590
|
sources: t,
|
|
588
591
|
max: o,
|
|
589
|
-
title:
|
|
592
|
+
title: C,
|
|
590
593
|
visitLabel: g.visit,
|
|
591
594
|
onSelect: p,
|
|
592
595
|
className: n("ai-sources--component", m)
|
|
593
|
-
})
|
|
594
|
-
let S = y ? t : t.slice(0, 0);
|
|
595
|
-
return /* @__PURE__ */ P(u, {
|
|
596
|
+
}) : /* @__PURE__ */ P(u, {
|
|
596
597
|
surface: "card",
|
|
597
598
|
padding: "none",
|
|
598
599
|
className: n("ai-sources--component", m),
|
|
@@ -601,27 +602,33 @@ function we({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
|
|
|
601
602
|
tone: "secondary",
|
|
602
603
|
buttonStyle: "ghost",
|
|
603
604
|
size: "md",
|
|
604
|
-
onClick: () =>
|
|
605
|
-
"aria-expanded":
|
|
606
|
-
"aria-
|
|
605
|
+
onClick: () => S(!x),
|
|
606
|
+
"aria-expanded": x,
|
|
607
|
+
"aria-controls": v,
|
|
608
|
+
"aria-labelledby": _,
|
|
609
|
+
"aria-description": x ? h?.collapse : h?.expand,
|
|
607
610
|
className: n("ai-sources--trigger h-auto min-h-0 w-full justify-start gap-space-md px-surface-xs py-row-y text-left", `rounded-radius ${f.rowHover}`),
|
|
608
611
|
children: [
|
|
609
|
-
/* @__PURE__ */ N(
|
|
612
|
+
/* @__PURE__ */ N(De, { sources: t.slice(0, 4) }),
|
|
610
613
|
/* @__PURE__ */ N(i, {
|
|
614
|
+
id: _,
|
|
615
|
+
tag: "span",
|
|
611
616
|
type: "inherit",
|
|
612
617
|
weight: "medium",
|
|
613
618
|
className: "flex-1",
|
|
614
|
-
children:
|
|
619
|
+
children: C
|
|
615
620
|
}),
|
|
616
|
-
N(
|
|
621
|
+
N(x ? R : z, { className: "size-icon-md text-muted-foreground" })
|
|
617
622
|
]
|
|
618
|
-
}),
|
|
623
|
+
}), /* @__PURE__ */ N("div", {
|
|
624
|
+
id: v,
|
|
625
|
+
hidden: !x,
|
|
619
626
|
className: "ai-sources--list border-t border-border/60 px-surface-xs py-row-y",
|
|
620
|
-
children: /* @__PURE__ */ N(c, {
|
|
627
|
+
children: x && /* @__PURE__ */ N(c, {
|
|
621
628
|
render: /* @__PURE__ */ N("ol", {}),
|
|
622
629
|
gap: "2xs",
|
|
623
630
|
className: "m-0 list-none p-0 font-sans",
|
|
624
|
-
children:
|
|
631
|
+
children: t.map((e, t) => /* @__PURE__ */ N(ke, {
|
|
625
632
|
source: e,
|
|
626
633
|
index: t + 1,
|
|
627
634
|
onSelect: p ? () => p(e, t) : void 0,
|
|
@@ -631,12 +638,12 @@ function we({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
|
|
|
631
638
|
})]
|
|
632
639
|
});
|
|
633
640
|
}
|
|
634
|
-
|
|
635
|
-
function
|
|
641
|
+
Te.displayName = "AiSources";
|
|
642
|
+
function Ee({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
|
|
636
643
|
let c = e.slice(0, t), l = e.length - c.length;
|
|
637
644
|
return /* @__PURE__ */ P("div", {
|
|
638
645
|
className: n("inline-flex items-center gap-space-md", s),
|
|
639
|
-
children: [/* @__PURE__ */ N(
|
|
646
|
+
children: [/* @__PURE__ */ N(De, {
|
|
640
647
|
sources: c,
|
|
641
648
|
onSelect: o,
|
|
642
649
|
visitLabel: a,
|
|
@@ -648,7 +655,7 @@ function Te({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, classNam
|
|
|
648
655
|
})]
|
|
649
656
|
});
|
|
650
657
|
}
|
|
651
|
-
function
|
|
658
|
+
function De({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
|
|
652
659
|
return /* @__PURE__ */ P("div", {
|
|
653
660
|
className: n("flex items-center", t ? "gap-space-2xs" : "-space-x-space-sm"),
|
|
654
661
|
children: [e.map((e, n) => {
|
|
@@ -656,7 +663,7 @@ function Ee({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
|
|
|
656
663
|
"aria-hidden": !0,
|
|
657
664
|
title: typeof e.title == "string" ? e.title : void 0,
|
|
658
665
|
className: "inline-flex size-icon-lg items-center justify-center overflow-hidden rounded-full border border-card bg-muted text-muted-foreground ring-1 ring-border/60",
|
|
659
|
-
children: /* @__PURE__ */ N(
|
|
666
|
+
children: /* @__PURE__ */ N(Oe, { src: e.faviconUrl })
|
|
660
667
|
}, e.id);
|
|
661
668
|
return t ? /* @__PURE__ */ N("button", {
|
|
662
669
|
type: "button",
|
|
@@ -680,19 +687,19 @@ function Ee({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
|
|
|
680
687
|
})]
|
|
681
688
|
});
|
|
682
689
|
}
|
|
683
|
-
function
|
|
690
|
+
function Oe({ src: e }) {
|
|
684
691
|
let [t, n] = j(!1);
|
|
685
|
-
return
|
|
692
|
+
return O(() => {
|
|
686
693
|
n(!1);
|
|
687
|
-
}, [e]), !e || t ? /* @__PURE__ */ N(
|
|
694
|
+
}, [e]), !e || t ? /* @__PURE__ */ N(se, { className: "size-icon-sm" }) : /* @__PURE__ */ N("img", {
|
|
688
695
|
src: e,
|
|
689
696
|
alt: "",
|
|
690
697
|
className: "size-full object-cover",
|
|
691
698
|
onError: () => n(!0)
|
|
692
699
|
});
|
|
693
700
|
}
|
|
694
|
-
function
|
|
695
|
-
let l = !!(e.url || r),
|
|
701
|
+
function ke({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
702
|
+
let l = k(), u = !!(e.url || r), d = n(f.nativeButtonReset, "group flex w-full items-start gap-space-lg rounded-radius px-row-x py-row-y-sm text-left text-foreground", u && `${f.rowHover} focus-visible:outline-none ${s.edge}`), p = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(_, {
|
|
696
703
|
tone: "neutral",
|
|
697
704
|
size: "sm",
|
|
698
705
|
"aria-hidden": !1,
|
|
@@ -709,10 +716,11 @@ function Oe({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
|
709
716
|
className: "min-w-0 flex-1",
|
|
710
717
|
children: [
|
|
711
718
|
/* @__PURE__ */ P(i, {
|
|
719
|
+
id: l,
|
|
712
720
|
type: "inherit",
|
|
713
721
|
weight: "medium",
|
|
714
722
|
className: "truncate",
|
|
715
|
-
children: [e.title, !!e.url && /* @__PURE__ */ N(
|
|
723
|
+
children: [e.title, !!e.url && /* @__PURE__ */ N(ae, { className: "ml-1 inline size-icon-sm text-muted-foreground align-baseline" })]
|
|
716
724
|
}),
|
|
717
725
|
!!e.publisher && /* @__PURE__ */ N(i, {
|
|
718
726
|
size: "xs",
|
|
@@ -734,23 +742,25 @@ function Oe({ source: e, index: t, onSelect: r, visitLabel: a }) {
|
|
|
734
742
|
rel: "noopener noreferrer",
|
|
735
743
|
size: "inherit",
|
|
736
744
|
underline: !1,
|
|
737
|
-
className:
|
|
738
|
-
"aria-
|
|
739
|
-
|
|
745
|
+
className: d,
|
|
746
|
+
"aria-labelledby": l,
|
|
747
|
+
"aria-description": a,
|
|
748
|
+
children: p
|
|
740
749
|
}) : r ? /* @__PURE__ */ N("button", {
|
|
741
750
|
type: "button",
|
|
742
751
|
onClick: r,
|
|
743
|
-
className: n(
|
|
744
|
-
"aria-
|
|
745
|
-
|
|
752
|
+
className: n(d, "h-auto justify-start whitespace-normal"),
|
|
753
|
+
"aria-labelledby": l,
|
|
754
|
+
"aria-description": e.url ? a : void 0,
|
|
755
|
+
children: p
|
|
746
756
|
}) : /* @__PURE__ */ N("span", {
|
|
747
|
-
className:
|
|
748
|
-
children:
|
|
757
|
+
className: d,
|
|
758
|
+
children: p
|
|
749
759
|
}) });
|
|
750
760
|
}
|
|
751
761
|
//#endregion
|
|
752
762
|
//#region src/components/blocks/ai/ai-reasoning/types.ts
|
|
753
|
-
var
|
|
763
|
+
var Ae = {
|
|
754
764
|
thinking: "Thinking…",
|
|
755
765
|
thoughtFor: "Thought for {{duration}}",
|
|
756
766
|
thoughtDone: "Reasoning complete",
|
|
@@ -759,7 +769,7 @@ var ke = {
|
|
|
759
769
|
};
|
|
760
770
|
//#endregion
|
|
761
771
|
//#region src/components/blocks/ai/ai-reasoning/ai-reasoning.tsx
|
|
762
|
-
function
|
|
772
|
+
function je(e, t) {
|
|
763
773
|
let n = e.split(/\{\{\s*duration\s*\}\}/);
|
|
764
774
|
return n.length === 1 ? e : /* @__PURE__ */ P(M, { children: [
|
|
765
775
|
n[0],
|
|
@@ -771,26 +781,23 @@ function Ae(e, t) {
|
|
|
771
781
|
n.slice(1).join("{{duration}}")
|
|
772
782
|
] });
|
|
773
783
|
}
|
|
774
|
-
function
|
|
775
|
-
let m = t(
|
|
776
|
-
l === void 0 &&
|
|
784
|
+
function Me({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: d, strings: p }) {
|
|
785
|
+
let m = t(Ae, p), h = k(), g = k(), [_, v] = j(c), y = l ?? _, b = (e) => {
|
|
786
|
+
l === void 0 && v(e), u?.(e);
|
|
777
787
|
};
|
|
778
|
-
|
|
779
|
-
a && s && !
|
|
788
|
+
O(() => {
|
|
789
|
+
a && s && !y && b(!0), !a && s && y && !c && l === void 0 && b(!1);
|
|
780
790
|
}, [a]);
|
|
781
|
-
let
|
|
782
|
-
|
|
783
|
-
children: m.thinking
|
|
784
|
-
}) : o === void 0 ? /* @__PURE__ */ N(i, {
|
|
791
|
+
let x = a ? /* @__PURE__ */ N(J, { children: m.thinking }) : o === void 0 ? /* @__PURE__ */ N(i, {
|
|
792
|
+
tag: "span",
|
|
785
793
|
type: "inherit",
|
|
786
794
|
weight: "medium",
|
|
787
|
-
className: "flex-1",
|
|
788
795
|
children: m.thoughtDone
|
|
789
796
|
}) : /* @__PURE__ */ N(i, {
|
|
797
|
+
tag: "span",
|
|
790
798
|
type: "inherit",
|
|
791
799
|
weight: "medium",
|
|
792
|
-
|
|
793
|
-
children: Ae(m.thoughtFor, o)
|
|
800
|
+
children: je(m.thoughtFor, o)
|
|
794
801
|
});
|
|
795
802
|
return /* @__PURE__ */ P("div", {
|
|
796
803
|
className: n("ai-reasoning--component", "overflow-hidden rounded-radius border border-border/60 bg-muted/30", d),
|
|
@@ -799,18 +806,26 @@ function X({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
|
|
|
799
806
|
tone: "secondary",
|
|
800
807
|
buttonStyle: "ghost",
|
|
801
808
|
size: "md",
|
|
802
|
-
onClick: () =>
|
|
803
|
-
"aria-expanded":
|
|
804
|
-
"aria-
|
|
809
|
+
onClick: () => b(!y),
|
|
810
|
+
"aria-expanded": y,
|
|
811
|
+
"aria-controls": g,
|
|
812
|
+
"aria-labelledby": h,
|
|
813
|
+
"aria-description": y ? p?.collapseAria : p?.expandAria,
|
|
805
814
|
className: n("ai-reasoning--trigger h-auto min-h-0 w-full justify-start gap-space-md rounded-none px-surface-xs py-row-y text-left", f.rowHover),
|
|
806
815
|
children: [
|
|
807
|
-
/* @__PURE__ */ N(
|
|
808
|
-
|
|
809
|
-
|
|
816
|
+
/* @__PURE__ */ N(te, { className: "size-icon-md text-muted-foreground" }),
|
|
817
|
+
/* @__PURE__ */ N("span", {
|
|
818
|
+
id: h,
|
|
819
|
+
className: "flex-1",
|
|
820
|
+
children: x
|
|
821
|
+
}),
|
|
822
|
+
N(y ? R : z, { className: "size-icon-md text-muted-foreground" })
|
|
810
823
|
]
|
|
811
|
-
}),
|
|
824
|
+
}), /* @__PURE__ */ N("div", {
|
|
825
|
+
id: g,
|
|
826
|
+
hidden: !y,
|
|
812
827
|
className: "ai-reasoning--body border-t border-border/60 p-surface-xs",
|
|
813
|
-
children: typeof e == "string" ? /* @__PURE__ */ N(i, {
|
|
828
|
+
children: y && (typeof e == "string" ? /* @__PURE__ */ N(i, {
|
|
814
829
|
type: "secondary",
|
|
815
830
|
lineHeight: "relaxed",
|
|
816
831
|
className: "whitespace-pre-wrap",
|
|
@@ -818,19 +833,19 @@ function X({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
|
|
|
818
833
|
}) : /* @__PURE__ */ N("div", {
|
|
819
834
|
className: "whitespace-pre-wrap",
|
|
820
835
|
children: e
|
|
821
|
-
})
|
|
836
|
+
}))
|
|
822
837
|
})]
|
|
823
838
|
});
|
|
824
839
|
}
|
|
825
|
-
|
|
840
|
+
Me.displayName = "AiReasoning";
|
|
826
841
|
//#endregion
|
|
827
842
|
//#region src/components/blocks/ai/ai-chain-of-thought/types.ts
|
|
828
|
-
var
|
|
843
|
+
var Ne = {
|
|
829
844
|
title: "Reasoning",
|
|
830
845
|
streamingHint: "Working through the steps…"
|
|
831
|
-
},
|
|
846
|
+
}, Pe = {
|
|
832
847
|
pending: {
|
|
833
|
-
icon:
|
|
848
|
+
icon: ne,
|
|
834
849
|
tone: "neutral"
|
|
835
850
|
},
|
|
836
851
|
active: {
|
|
@@ -849,8 +864,8 @@ var je = {
|
|
|
849
864
|
solid: !0
|
|
850
865
|
}
|
|
851
866
|
};
|
|
852
|
-
function
|
|
853
|
-
let d = t(
|
|
867
|
+
function Fe({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, strings: l }) {
|
|
868
|
+
let d = t(Ne, l);
|
|
854
869
|
return /* @__PURE__ */ N(u, {
|
|
855
870
|
surface: "card",
|
|
856
871
|
className: n("ai-chain-of-thought--component", s),
|
|
@@ -871,7 +886,7 @@ function Ne({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
|
|
|
871
886
|
}), /* @__PURE__ */ N("ol", {
|
|
872
887
|
className: "ai-chain-of-thought--body m-0 list-none p-0 font-sans",
|
|
873
888
|
children: e.map((t, r) => {
|
|
874
|
-
let a = t.status ?? "pending", o =
|
|
889
|
+
let a = t.status ?? "pending", o = Pe[a], s = t.icon ?? o.icon, l = r === e.length - 1;
|
|
875
890
|
return /* @__PURE__ */ P("li", {
|
|
876
891
|
className: "ai-chain-of-thought--step flex gap-space-lg",
|
|
877
892
|
children: [/* @__PURE__ */ P("span", {
|
|
@@ -908,10 +923,10 @@ function Ne({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
|
|
|
908
923
|
})
|
|
909
924
|
});
|
|
910
925
|
}
|
|
911
|
-
|
|
926
|
+
Fe.displayName = "AiChainOfThought";
|
|
912
927
|
//#endregion
|
|
913
928
|
//#region src/components/blocks/ai/ai-task/types.ts
|
|
914
|
-
var
|
|
929
|
+
var Ie = {
|
|
915
930
|
statusLabels: {
|
|
916
931
|
queued: "Queued",
|
|
917
932
|
running: "Running",
|
|
@@ -922,9 +937,9 @@ var Pe = {
|
|
|
922
937
|
},
|
|
923
938
|
collapseSubtasks: "Collapse subtasks",
|
|
924
939
|
expandSubtasks: "Expand subtasks"
|
|
925
|
-
},
|
|
940
|
+
}, Le = {
|
|
926
941
|
queued: {
|
|
927
|
-
icon:
|
|
942
|
+
icon: ne,
|
|
928
943
|
cls: "text-muted-foreground"
|
|
929
944
|
},
|
|
930
945
|
running: {
|
|
@@ -941,14 +956,14 @@ var Pe = {
|
|
|
941
956
|
cls: "text-destructive"
|
|
942
957
|
},
|
|
943
958
|
cancelled: {
|
|
944
|
-
icon:
|
|
959
|
+
icon: de,
|
|
945
960
|
cls: "text-muted-foreground"
|
|
946
961
|
},
|
|
947
962
|
skipped: {
|
|
948
|
-
icon:
|
|
963
|
+
icon: ce,
|
|
949
964
|
cls: "text-muted-foreground"
|
|
950
965
|
}
|
|
951
|
-
},
|
|
966
|
+
}, Re = {
|
|
952
967
|
queued: "secondary",
|
|
953
968
|
running: "info",
|
|
954
969
|
completed: "success",
|
|
@@ -956,18 +971,18 @@ var Pe = {
|
|
|
956
971
|
cancelled: "secondary",
|
|
957
972
|
skipped: "secondary"
|
|
958
973
|
};
|
|
959
|
-
function
|
|
960
|
-
let s = t(
|
|
961
|
-
status:
|
|
962
|
-
slot:
|
|
974
|
+
function ze({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
|
|
975
|
+
let s = t(Ie, o), c = {
|
|
976
|
+
status: Z(e, (e) => X(e.status ?? "queued")),
|
|
977
|
+
slot: Z(e, (e) => e.rightSlot != null && e.rightSlot !== !1)
|
|
963
978
|
};
|
|
964
979
|
return /* @__PURE__ */ N(u, {
|
|
965
980
|
surface: "card",
|
|
966
981
|
padding: "none",
|
|
967
982
|
className: n("ai-task--component", a),
|
|
968
983
|
children: /* @__PURE__ */ N("div", {
|
|
969
|
-
className: n("ai-task--rows grid gap-x-space-md",
|
|
970
|
-
children: /* @__PURE__ */ N(
|
|
984
|
+
className: n("ai-task--rows grid gap-x-space-md", Be[Number(c.status) + Number(c.slot)]),
|
|
985
|
+
children: /* @__PURE__ */ N(Ve, {
|
|
971
986
|
item: e,
|
|
972
987
|
depth: 0,
|
|
973
988
|
density: r,
|
|
@@ -978,20 +993,20 @@ function Le({ task: e, density: r = "compact", indent: i = 18, className: a, str
|
|
|
978
993
|
})
|
|
979
994
|
});
|
|
980
995
|
}
|
|
981
|
-
function
|
|
996
|
+
function X(e) {
|
|
982
997
|
return e !== "completed";
|
|
983
998
|
}
|
|
984
|
-
function
|
|
985
|
-
return t(e) || !!e.children?.some((e) =>
|
|
999
|
+
function Z(e, t) {
|
|
1000
|
+
return t(e) || !!e.children?.some((e) => Z(e, t));
|
|
986
1001
|
}
|
|
987
|
-
var
|
|
1002
|
+
var Be = [
|
|
988
1003
|
"grid-cols-1",
|
|
989
1004
|
"grid-cols-[minmax(0,1fr)_auto]",
|
|
990
1005
|
"grid-cols-[minmax(0,1fr)_auto_auto]"
|
|
991
1006
|
];
|
|
992
|
-
|
|
993
|
-
function
|
|
994
|
-
let l = e.status ?? "queued", u =
|
|
1007
|
+
ze.displayName = "AiTask";
|
|
1008
|
+
function Ve({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }) {
|
|
1009
|
+
let l = e.status ?? "queued", u = Le[l], d = e.icon ?? u.icon, f = !!e.children?.length, [p, m] = j(a === "expanded" || t === 0), h = l === "queued" || l === "cancelled" || l === "skipped";
|
|
995
1010
|
return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("div", {
|
|
996
1011
|
className: n("ai-task--row col-span-full grid grid-cols-subgrid items-start px-row-x py-row-y", t > 0 && "border-t border-border/60"),
|
|
997
1012
|
children: [
|
|
@@ -1037,15 +1052,15 @@ function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }
|
|
|
1037
1052
|
}),
|
|
1038
1053
|
s.status && /* @__PURE__ */ N("span", {
|
|
1039
1054
|
className: "ai-task--status flex min-h-action-sm items-center justify-end",
|
|
1040
|
-
children:
|
|
1041
|
-
tone:
|
|
1055
|
+
children: X(l) ? /* @__PURE__ */ N(v, {
|
|
1056
|
+
tone: Re[l],
|
|
1042
1057
|
children: c.statusLabels[l]
|
|
1043
1058
|
}) : /* @__PURE__ */ N("span", {
|
|
1044
1059
|
className: "sr-only",
|
|
1045
1060
|
children: c.statusLabels[l]
|
|
1046
1061
|
})
|
|
1047
1062
|
}),
|
|
1048
|
-
!s.status && !
|
|
1063
|
+
!s.status && !X(l) && /* @__PURE__ */ N("span", {
|
|
1049
1064
|
className: "sr-only",
|
|
1050
1065
|
children: c.statusLabels[l]
|
|
1051
1066
|
}),
|
|
@@ -1056,7 +1071,7 @@ function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }
|
|
|
1056
1071
|
]
|
|
1057
1072
|
}), f && p && /* @__PURE__ */ N("div", {
|
|
1058
1073
|
className: "ai-task--children col-span-full grid grid-cols-subgrid",
|
|
1059
|
-
children: e.children.map((e) => /* @__PURE__ */ N(
|
|
1074
|
+
children: e.children.map((e) => /* @__PURE__ */ N(Ve, {
|
|
1060
1075
|
item: e,
|
|
1061
1076
|
depth: t + 1,
|
|
1062
1077
|
density: a,
|
|
@@ -1068,7 +1083,7 @@ function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }
|
|
|
1068
1083
|
}
|
|
1069
1084
|
//#endregion
|
|
1070
1085
|
//#region src/components/blocks/ai/ai-artifact/types.ts
|
|
1071
|
-
var
|
|
1086
|
+
var Q = {
|
|
1072
1087
|
openAria: "Open artifact",
|
|
1073
1088
|
copy: "Copy",
|
|
1074
1089
|
copied: "Copied",
|
|
@@ -1079,8 +1094,8 @@ var $ = {
|
|
|
1079
1094
|
};
|
|
1080
1095
|
//#endregion
|
|
1081
1096
|
//#region src/components/blocks/ai/ai-artifact/ai-artifact.tsx
|
|
1082
|
-
function
|
|
1083
|
-
let y = t(
|
|
1097
|
+
function $({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapsed: d = !1, onOpen: f, actions: p, onDownload: m, onCopyError: h, className: g, strings: v }) {
|
|
1098
|
+
let y = t(Q, v), b = o ?? oe, { copied: x, failed: S, copy: C } = H(h, s);
|
|
1084
1099
|
return /* @__PURE__ */ P(u, {
|
|
1085
1100
|
surface: "card",
|
|
1086
1101
|
padding: "none",
|
|
@@ -1136,7 +1151,7 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1136
1151
|
onClick: async () => {
|
|
1137
1152
|
s && await C(s);
|
|
1138
1153
|
},
|
|
1139
|
-
children: x ? /* @__PURE__ */ N(L, { className: "size-icon-md text-success" }) : /* @__PURE__ */ N(
|
|
1154
|
+
children: x ? /* @__PURE__ */ N(L, { className: "size-icon-md text-success" }) : /* @__PURE__ */ N(re, { className: "size-icon-md" })
|
|
1140
1155
|
}),
|
|
1141
1156
|
!!m && /* @__PURE__ */ N(r, {
|
|
1142
1157
|
type: "button",
|
|
@@ -1146,7 +1161,7 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1146
1161
|
iconOnly: !0,
|
|
1147
1162
|
"aria-label": y.downloadAria,
|
|
1148
1163
|
onClick: m,
|
|
1149
|
-
children: /* @__PURE__ */ N(
|
|
1164
|
+
children: /* @__PURE__ */ N(ie, { className: "size-icon-md" })
|
|
1150
1165
|
}),
|
|
1151
1166
|
!!f && /* @__PURE__ */ N(r, {
|
|
1152
1167
|
type: "button",
|
|
@@ -1156,7 +1171,7 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1156
1171
|
iconOnly: !0,
|
|
1157
1172
|
"aria-label": y.openAria,
|
|
1158
1173
|
onClick: f,
|
|
1159
|
-
children: /* @__PURE__ */ N(
|
|
1174
|
+
children: /* @__PURE__ */ N(ae, { className: "size-icon-md" })
|
|
1160
1175
|
})
|
|
1161
1176
|
]
|
|
1162
1177
|
})]
|
|
@@ -1172,14 +1187,14 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
|
|
|
1172
1187
|
role: "alert",
|
|
1173
1188
|
size: "xs",
|
|
1174
1189
|
type: "error",
|
|
1175
|
-
children: y.copyError ??
|
|
1190
|
+
children: y.copyError ?? Q.copyError
|
|
1176
1191
|
})
|
|
1177
1192
|
})
|
|
1178
1193
|
]
|
|
1179
1194
|
});
|
|
1180
1195
|
}
|
|
1181
|
-
|
|
1196
|
+
$.displayName = "AiArtifact";
|
|
1182
1197
|
//#endregion
|
|
1183
|
-
export { U as C, W as S,
|
|
1198
|
+
export { U as C, W as S, he as _, Fe as a, K as b, Ae as c, Se as d, be as f, Y as g, ge as h, Ie as i, Te as l, _e as m, Q as n, Ne as o, ye as p, ze as r, Me as s, $ as t, Ce as u, me as v, G as x, J as y };
|
|
1184
1199
|
|
|
1185
|
-
//# sourceMappingURL=ai-artifact-
|
|
1200
|
+
//# sourceMappingURL=ai-artifact-CGGpQryR.js.map
|