themelia-react-ui 2.0.5 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +326 -0
- package/MIGRATION.md +858 -0
- package/README.md +35 -24
- package/dist/{accordion-B9MHG0cT.js → accordion-DNVqwEIC.js} +37 -37
- package/dist/accordion-DNVqwEIC.js.map +1 -0
- package/dist/action-menu-D5343RwT.js +286 -0
- package/dist/action-menu-D5343RwT.js.map +1 -0
- package/dist/ai-artifact-otrz9ZwS.js +1214 -0
- package/dist/ai-artifact-otrz9ZwS.js.map +1 -0
- package/dist/anchored-positioning-1U_eBFNx.js +9 -0
- package/dist/anchored-positioning-1U_eBFNx.js.map +1 -0
- package/dist/app-shell-CPN30Nb1.js +372 -0
- package/dist/app-shell-CPN30Nb1.js.map +1 -0
- package/dist/{attachment-Dg_69lPS.js → attachment-D2-fpfmv.js} +15 -15
- package/dist/{attachment-Dg_69lPS.js.map → attachment-D2-fpfmv.js.map} +1 -1
- package/dist/{auth-DTkkshS8.js → auth-g_oUTDDC.js} +236 -243
- package/dist/auth-g_oUTDDC.js.map +1 -0
- package/dist/{avatar-CeZaFmNH.js → avatar-Ca3Ihrq4.js} +4 -4
- package/dist/{avatar-CeZaFmNH.js.map → avatar-Ca3Ihrq4.js.map} +1 -1
- package/dist/{badge-xIiV_E7f.js → badge-oGiXblW7.js} +8 -9
- package/dist/badge-oGiXblW7.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +2 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +11 -11
- package/dist/base/carousel.js.map +1 -1
- 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 +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +2 -2
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +13 -13
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +203 -2
- package/dist/base/media-gallery.js.map +1 -0
- package/dist/base/metadata-list.js +1 -1
- 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 +32 -22
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +208 -198
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +14 -14
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +8 -14
- 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 +3 -3
- package/dist/base/toaster.js +2 -2
- package/dist/base/tree.js +2 -2
- package/dist/base/upload-queue.js +303 -2
- package/dist/base/upload-queue.js.map +1 -0
- package/dist/base/upload.js +3 -4
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-D6MZQNnC.js} +10 -10
- package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-D6MZQNnC.js.map} +1 -1
- package/dist/blocks/admin.js +242 -228
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +398 -354
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/charts.js +1022 -0
- package/dist/blocks/analytics/charts.js.map +1 -0
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +173 -1392
- 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 +1533 -1399
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -3
- package/dist/blocks/onboarding.js +91 -82
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +2 -2
- package/dist/breadcrumbs-CQ9JSlez.js +136 -0
- package/dist/breadcrumbs-CQ9JSlez.js.map +1 -0
- package/dist/{button-S2Cubiiz.js → button-rd6FiHfQ.js} +12 -8
- package/dist/button-rd6FiHfQ.js.map +1 -0
- package/dist/{buttons-BedGfygC.js → buttons-pZVgPTZn.js} +230 -246
- package/dist/buttons-pZVgPTZn.js.map +1 -0
- package/dist/{cards-rNX1M4Xn.js → cards-CgWyqvgZ.js} +25 -22
- package/dist/{cards-rNX1M4Xn.js.map → cards-CgWyqvgZ.js.map} +1 -1
- package/dist/cascader-Cf05pwaq.js +444 -0
- package/dist/cascader-Cf05pwaq.js.map +1 -0
- package/dist/{chart-Darg_0Kv.js → chart-CygRCyIZ.js} +5 -5
- package/dist/{chart-Darg_0Kv.js.map → chart-CygRCyIZ.js.map} +1 -1
- package/dist/{checkbox-fflqmODR.js → checkbox-Dy5_XBMZ.js} +4 -4
- package/dist/{checkbox-fflqmODR.js.map → checkbox-Dy5_XBMZ.js.map} +1 -1
- package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-oJEsrb5Y.js} +195 -184
- package/dist/choice-inputs-oJEsrb5Y.js.map +1 -0
- package/dist/{code-block-BzmM9Eig.js → code-block-BrLD7mCi.js} +44 -60
- package/dist/code-block-BrLD7mCi.js.map +1 -0
- package/dist/collapsible-CRCCg_bO.js +80 -0
- package/dist/collapsible-CRCCg_bO.js.map +1 -0
- package/dist/{collection-content-gDh1v6O4.js → collection-content-D7SoDlYd.js} +3 -3
- package/dist/{collection-content-gDh1v6O4.js.map → collection-content-D7SoDlYd.js.map} +1 -1
- package/dist/combobox-Dl6f6kHz.js +362 -0
- package/dist/combobox-Dl6f6kHz.js.map +1 -0
- package/dist/combobox-DrDXtSSt.js +929 -0
- package/dist/combobox-DrDXtSSt.js.map +1 -0
- package/dist/command-CjZ2VzKC.js +432 -0
- package/dist/command-CjZ2VzKC.js.map +1 -0
- package/dist/comments-C2MZyRmh.js +1214 -0
- package/dist/comments-C2MZyRmh.js.map +1 -0
- package/dist/components/base/accordion/accordion.d.ts +11 -3
- package/dist/components/base/action-menu/action-menu.d.ts +11 -3
- package/dist/components/base/buttons/button.d.ts +2 -2
- package/dist/components/base/buttons/index.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +6 -15
- package/dist/components/base/cards/index.d.ts +1 -1
- package/dist/components/base/cards/partials/card-body-context.d.ts +6 -0
- package/dist/components/base/cards/smart-card.d.ts +0 -2
- package/dist/components/base/cards/smart-card.types.d.ts +12 -10
- package/dist/components/base/cascader/cascader.d.ts +8 -2
- package/dist/components/base/cascader/cascader.types.d.ts +24 -2
- package/dist/components/base/cascader/index.d.ts +1 -1
- 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/choice-inputs/switch.d.ts +1 -1
- package/dist/components/base/code-block/use-code-copy.d.ts +2 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/command/command.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +11 -7
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/display/dialog.d.ts +3 -9
- package/dist/components/base/display/index.d.ts +2 -3
- package/dist/components/base/display/separator.d.ts +1 -1
- package/dist/components/base/feedback/alert.d.ts +2 -1
- package/dist/components/base/feedback/empty.d.ts +10 -2
- 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/workflow.d.ts +2 -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 +13 -18
- package/dist/components/base/forms-numeric/index.d.ts +3 -3
- 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/item/item.types.d.ts +6 -2
- package/dist/components/base/metadata-list/index.d.ts +1 -3
- package/dist/components/base/metadata-list/metadata-list.d.ts +4 -1
- package/dist/components/base/navigation/index.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +17 -8
- package/dist/components/base/navigation/navigation-tabs.d.ts +8 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header.d.ts +13 -17
- package/dist/components/base/navigation/pagination.d.ts +5 -5
- package/dist/components/base/popover/popover.recipes.d.ts +0 -1
- package/dist/components/base/qr-code/qr-code.d.ts +4 -0
- package/dist/components/base/repeaters/index.d.ts +1 -1
- package/dist/components/base/repeaters/key-value-editor.d.ts +6 -1
- package/dist/components/base/sheet/sheet.d.ts +6 -15
- package/dist/components/base/sidebar/index.d.ts +1 -6
- package/dist/components/base/sidebar/sidebar.d.ts +40 -10
- package/dist/components/base/skeleton/skeleton.d.ts +1 -1
- package/dist/components/base/structure/structure.types.d.ts +11 -2
- package/dist/components/base/text-inputs/index.d.ts +1 -1
- package/dist/components/base/tree/index.d.ts +1 -0
- package/dist/components/base/tree/tree.d.ts +2 -2
- package/dist/components/base/tree/tree.types.d.ts +7 -1
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/file-upload.validation.d.ts +37 -1
- package/dist/components/base/upload/image-upload.d.ts +4 -1
- package/dist/components/base/upload/index.d.ts +3 -9
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -0
- package/dist/components/base/value-inputs/slider.d.ts +5 -2
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +17 -4
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +9 -3
- package/dist/components/blocks/admin/index.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +9 -4
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +1 -1
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +11 -1
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +8 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +21 -5
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +7 -2
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +9 -3
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +1 -1
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +1 -1
- package/dist/components/blocks/ai/ai-sources/types.d.ts +10 -2
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +1 -1
- package/dist/components/blocks/ai/ai-task/types.d.ts +10 -1
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +8 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +1 -1
- package/dist/components/blocks/analytics/analytics.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +11 -1
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +7 -5
- package/dist/components/blocks/analytics/charts/index.d.ts +27 -0
- package/dist/components/blocks/analytics/index.d.ts +17 -24
- package/dist/components/blocks/analytics/metric/metric.d.ts +7 -3
- 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 +13 -4
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +5 -16
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +2 -2
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +6 -4
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +0 -2
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +9 -11
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +1 -1
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +7 -3
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +0 -2
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +4 -6
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-balance.d.ts +18 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +0 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +16 -5
- package/dist/components/blocks/commerce/index.d.ts +8 -8
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +0 -5
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +6 -3
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +1 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +11 -5
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +12 -8
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +1 -1
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +3 -1
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +0 -8
- package/dist/components/blocks/commerce/payment-method/types.d.ts +0 -2
- package/dist/components/blocks/commerce/receipt/index.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/types.d.ts +10 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +0 -2
- package/dist/components/blocks/commerce/refund-status/types.d.ts +0 -2
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +7 -0
- package/dist/components/blocks/commerce/shared/code-entry.d.ts +39 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +10 -1
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -1
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +8 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +2 -2
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -5
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +6 -3
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +1 -1
- package/dist/components/blocks/content-block-hooks.d.ts +22 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +5 -1
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +3 -1
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +12 -5
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +10 -3
- package/dist/components/blocks/data-display/index.d.ts +0 -1
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +1 -1
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +5 -3
- package/dist/components/blocks/planning/task-card.types.d.ts +7 -3
- package/dist/components/blocks/timelines/changelog/types.d.ts +2 -2
- package/dist/components/blocks/timelines/index.d.ts +2 -2
- package/dist/components/blocks/timelines/milestones/types.d.ts +2 -2
- package/dist/components/blocks/timelines/shared/timeline.d.ts +6 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -1
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +2 -2
- package/dist/components/blocks/timelines/steps-card/types.d.ts +13 -1
- package/dist/components/features/activities/activities.strings.d.ts +5 -3
- package/dist/components/features/activities/activities.types.d.ts +46 -22
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +6 -0
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- package/dist/components/features/activities/index.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-headline.d.ts +5 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +12 -13
- package/dist/components/features/activities/partials/row-layers.d.ts +7 -0
- package/dist/components/features/activities/relative-time.d.ts +18 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +6 -2
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +41 -2
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +6 -0
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +5 -1
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +2 -2
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +3 -1
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +6 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +20 -4
- package/dist/components/features/appointment-calendar/index.d.ts +1 -1
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +18 -10
- package/dist/components/features/async-preview/async-preview.d.ts +2 -2
- package/dist/components/features/async-preview/async-preview.types.d.ts +30 -1
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +7 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +12 -3
- package/dist/components/features/combobox/components/error-message.d.ts +3 -1
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +4 -3
- 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/index.d.ts +1 -1
- package/dist/components/features/combobox/types.d.ts +68 -37
- package/dist/components/features/comments/comments.strings.d.ts +6 -5
- package/dist/components/features/comments/comments.types.d.ts +40 -26
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -1
- package/dist/components/features/comments/hooks/use-comments.d.ts +8 -1
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -2
- package/dist/components/features/data-view/data-view.types.d.ts +15 -2
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/http.d.ts +2 -0
- package/dist/components/features/email-composer/strings.d.ts +17 -2
- package/dist/components/features/email-composer/types.d.ts +19 -2
- package/dist/components/features/email-composer/use-composer.d.ts +2 -78
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +126 -21
- package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +24 -7
- package/dist/components/features/filters/filter-context.d.ts +9 -0
- package/dist/components/features/filters/filters.strings.d.ts +36 -3
- package/dist/components/features/filters/filters.types.d.ts +75 -8
- package/dist/components/features/filters/hooks/use-filter-draft.d.ts +1 -0
- package/dist/components/features/filters/index.d.ts +2 -2
- package/dist/components/features/filters/operator-options.d.ts +25 -2
- package/dist/components/features/filters/partials/active-filter-item.d.ts +0 -13
- package/dist/components/features/filters/partials/async-options-status.d.ts +32 -0
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-draft-footer.d.ts +11 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +4 -2
- package/dist/components/features/filters/partials/filter-pill.d.ts +5 -1
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
- package/dist/components/features/filters/partials/filter-tabs.d.ts +2 -1
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +1 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +34 -5
- package/dist/components/features/global-search/global-search-dialog.d.ts +7 -1
- package/dist/components/features/global-search/global-search.d.ts +7 -1
- package/dist/components/features/global-search/global-search.strings.d.ts +19 -3
- package/dist/components/features/global-search/global-search.types.d.ts +30 -6
- package/dist/components/features/global-search/index.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +6 -1
- package/dist/components/features/global-search/partials/global-search-input.d.ts +2 -0
- package/dist/components/features/kanban/index.d.ts +2 -2
- package/dist/components/features/kanban/kanban-context.d.ts +4 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +7 -2
- package/dist/components/features/kanban/kanban.d.ts +10 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +11 -2
- package/dist/components/features/kanban/kanban.types.d.ts +26 -0
- package/dist/components/features/map/map.d.ts +4 -0
- package/dist/components/features/map/place-autocomplete.d.ts +10 -1
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +3 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +39 -3
- package/dist/components/features/media-library/media-library.types.d.ts +82 -9
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +7 -0
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/index.d.ts +1 -1
- package/dist/components/features/mentions/mentions.strings.d.ts +10 -2
- package/dist/components/features/mentions/partials/mention-chip.d.ts +1 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +12 -1
- package/dist/components/features/mentions/partials/mention-picker.d.ts +8 -1
- package/dist/components/features/mentions/partials/mention-search-error.d.ts +6 -0
- package/dist/components/features/mentions/utils/index.d.ts +0 -1
- 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-visibility.d.ts +2 -2
- package/dist/components/features/overlays/index.d.ts +2 -2
- package/dist/components/features/overlays/overlays.strings.d.ts +2 -1
- package/dist/components/features/overlays/overlays.types.d.ts +27 -10
- package/dist/components/features/products/components/index.d.ts +0 -10
- package/dist/components/features/products/components/product-contract-overview.d.ts +1 -1
- package/dist/components/features/products/components/product-details-card.d.ts +1 -1
- package/dist/components/features/products/components/product-operations-card.d.ts +1 -1
- package/dist/components/features/products/components/product-option-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-options-summary.d.ts +1 -1
- package/dist/components/features/products/components/product-policies-card.d.ts +1 -1
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +1 -1
- package/dist/components/features/products/components/product-readiness-card.d.ts +1 -1
- package/dist/components/features/products/components/product-structure-card.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-table.d.ts +1 -1
- package/dist/components/features/products/partials/product-surface.d.ts +15 -0
- package/dist/components/features/products/products.strings.d.ts +8 -0
- package/dist/components/features/products/products.types.d.ts +26 -8
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +7 -2
- package/dist/components/features/resource/index.d.ts +2 -3
- package/dist/components/features/resource/resource.d.ts +2 -10
- package/dist/components/features/resource/resource.types.d.ts +7 -147
- package/dist/components/features/resource-assignment/partials/assignment-surface.d.ts +15 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +6 -1
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +6 -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 +5 -7
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +6 -2
- package/dist/components/features/rich-text-editor/partials/index.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +0 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +5 -4
- 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 +30 -4
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +10 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.d.ts +1 -1
- package/dist/components/features/schema-form/schema-form.types.d.ts +13 -5
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.strings.d.ts +14 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +13 -5
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/filter-bar.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/pagination.d.ts +1 -1
- package/dist/components/features/table/partials/cell-value.d.ts +1 -1
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +37 -12
- package/dist/components/features/table/table-region.recipes.d.ts +11 -0
- package/dist/components/features/table/table-toolbar.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +4 -0
- package/dist/components/features/table/table.types.d.ts +91 -49
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +4 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +10 -7
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +17 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +46 -49
- package/dist/components/layout/app-shell/index.d.ts +2 -2
- package/dist/components/layout/app-shell/shell-regions.d.ts +9 -0
- package/dist/components/layout/app-shell/shell-skip-link.d.ts +9 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/auth/auth-shell.d.ts +1 -1
- package/dist/components/layout/auth/auth.types.d.ts +0 -5
- package/dist/components/layout/containers/inline-gutter-context.d.ts +7 -0
- package/dist/components/layout/containers/main-landmark-context.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +19 -8
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +1 -1
- package/dist/components/layout/header/partials/header-notifications.d.ts +1 -1
- package/dist/components/layout/header/partials/header-search.d.ts +1 -1
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +10 -1
- package/dist/components/layout/layout.types.d.ts +6 -4
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +1 -1
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +9 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +8 -1
- 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/page/index.d.ts +2 -3
- package/dist/components/layout/page/page.strings.d.ts +12 -0
- package/dist/components/layout/page/page.types.d.ts +7 -110
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/index.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +4 -6
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +17 -7
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +12 -12
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +2 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +13 -7
- package/dist/components/primitives/date.d.ts +22 -3
- package/dist/components/primitives/file-size.d.ts +8 -2
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +3 -1
- package/dist/components/primitives/link.d.ts +11 -3
- package/dist/components/primitives/money.d.ts +2 -2
- package/dist/components/primitives/number.d.ts +3 -2
- package/dist/components/typography/heading.d.ts +9 -3
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- package/dist/components/typography/text-link.d.ts +10 -3
- package/dist/components/ui/badge.d.ts +2 -4
- package/dist/components/ui/breadcrumb.d.ts +2 -3
- package/dist/components/ui/button.d.ts +8 -2
- package/dist/components/ui/collapsible.d.ts +1 -4
- package/dist/components/ui/command.d.ts +20 -18
- package/dist/components/ui/dialog.d.ts +3 -9
- package/dist/components/ui/empty.d.ts +2 -2
- package/dist/components/ui/input-group.d.ts +3 -3
- package/dist/components/ui/item.d.ts +3 -3
- package/dist/components/ui/popover.d.ts +3 -7
- package/dist/components/ui/sheet.d.ts +4 -12
- package/dist/components/ui/sidebar-state.d.ts +6 -1
- package/dist/components/ui/sidebar.d.ts +7 -4
- package/dist/components/ui/tabs.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts +3 -3
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/tooltip.d.ts +1 -3
- package/dist/{containers-CIxwbZt5.js → containers-BdfLTP4w.js} +37 -32
- package/dist/containers-BdfLTP4w.js.map +1 -0
- package/dist/content-block-hooks-Z3iKjqd1.js +17 -0
- package/dist/content-block-hooks-Z3iKjqd1.js.map +1 -0
- package/dist/{copyable-DIznBqiT.js → copyable-Bmr14W0d.js} +6 -6
- package/dist/{copyable-DIznBqiT.js.map → copyable-Bmr14W0d.js.map} +1 -1
- package/dist/{data-display-BdgCAw8T.js → data-display-CWe9SOYh.js} +264 -250
- package/dist/data-display-CWe9SOYh.js.map +1 -0
- package/dist/date-3qsCE1ID.js +209 -0
- package/dist/date-3qsCE1ID.js.map +1 -0
- package/dist/date-picker-D1keJQIG.js +1617 -0
- package/dist/date-picker-D1keJQIG.js.map +1 -0
- package/dist/date-pickers-D8aJoeHc.js +185 -0
- package/dist/date-pickers-D8aJoeHc.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -1
- package/dist/{display-KsZLw9Ov.js → display-VlmP1I0i.js} +23 -46
- package/dist/display-VlmP1I0i.js.map +1 -0
- package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-B8hjvbkS.js} +9 -9
- package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-B8hjvbkS.js.map} +1 -1
- package/dist/dropzone-CHBNK3de.js +116 -0
- package/dist/dropzone-CHBNK3de.js.map +1 -0
- package/dist/features/activities.js +767 -700
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +280 -235
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +430 -334
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +351 -265
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +2 -2
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +212 -151
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +347 -313
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +501 -348
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +250 -210
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +280 -210
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +435 -404
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1745 -1195
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +2 -2
- package/dist/features/products.js +1862 -1759
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +188 -168
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +223 -191
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +55 -217
- 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 +380 -287
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +90 -74
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/table.js +2 -2
- package/dist/features/theme-tweaker.js +718 -627
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-DmqmXKLn.js +254 -0
- package/dist/feedback-DmqmXKLn.js.map +1 -0
- package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-DfbMadot.js} +13 -9
- package/dist/field-affordance-recipes-DfbMadot.js.map +1 -0
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/field-state-recipes-EtCxpEy3.js +18 -0
- package/dist/field-state-recipes-EtCxpEy3.js.map +1 -0
- package/dist/filters-BviMRMLS.js +2692 -0
- package/dist/filters-BviMRMLS.js.map +1 -0
- package/dist/{focus-recipes-B653VaLq.js → focus-recipes-DSkiUvUp.js} +3 -3
- package/dist/focus-recipes-DSkiUvUp.js.map +1 -0
- package/dist/form-field-BdfCwSoQ.js +74 -0
- package/dist/form-field-BdfCwSoQ.js.map +1 -0
- package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-DE_dZw32.js} +3 -3
- package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-DE_dZw32.js.map} +1 -1
- package/dist/{forms-C0RGnJTe.js → forms-B8DzJnBN.js} +35 -35
- package/dist/forms-B8DzJnBN.js.map +1 -0
- package/dist/forms-numeric-DOBswjKj.js +992 -0
- package/dist/forms-numeric-DOBswjKj.js.map +1 -0
- package/dist/{header-DMMxG__r.js → header-Cq3G0ZRP.js} +163 -158
- package/dist/header-Cq3G0ZRP.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-DB6CJ4MR.js → hooks-DHfeSMAO.js} +34 -14
- package/dist/hooks-DHfeSMAO.js.map +1 -0
- package/dist/{http-D_6rOnzU.js → http-Cu-GPpss.js} +61 -35
- package/dist/http-Cu-GPpss.js.map +1 -0
- package/dist/{icon-badge-DZF-YjQp.js → icon-badge-B0Kq7wom.js} +3 -3
- package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-B0Kq7wom.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/inline-gutter-context-CSqmrMFZ.js +11 -0
- package/dist/inline-gutter-context-CSqmrMFZ.js.map +1 -0
- package/dist/{input-DMBwAZmr.js → input-2YrgTUrz.js} +3 -3
- package/dist/{input-DMBwAZmr.js.map → input-2YrgTUrz.js.map} +1 -1
- package/dist/{input-CvyDQlY7.js → input-DfJyrjoR.js} +7 -7
- package/dist/{input-CvyDQlY7.js.map → input-DfJyrjoR.js.map} +1 -1
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-DmuS1ase.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-DmuS1ase.js.map} +1 -1
- package/dist/item-GJ9mvCcg.js +279 -0
- package/dist/item-GJ9mvCcg.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 +2 -2
- package/dist/layout/settings.js +2 -2
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +12 -12
- package/dist/layout.types-DbtnyAtd.js +33 -0
- package/dist/layout.types-DbtnyAtd.js.map +1 -0
- package/dist/lib/anchored-positioning.d.ts +11 -0
- package/dist/lib/field-affordance-recipes.d.ts +10 -0
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +8 -0
- package/dist/lib/focus-recipes.d.ts +7 -0
- package/dist/lib/format.d.ts +26 -0
- package/dist/lib/money-format.d.ts +6 -0
- package/dist/lib/motion-recipes.d.ts +6 -0
- package/dist/lib/surface-recipes.d.ts +33 -3
- package/dist/lib/theme-scope.d.ts +17 -1
- package/dist/lib/token-merge.generated.d.ts +19 -25
- package/dist/lib/ui-provider/index.d.ts +1 -1
- package/dist/lib/ui-provider/types.d.ts +5 -0
- package/dist/lib/use-controllable-state.d.ts +16 -0
- package/dist/lib/use-copy-feedback.d.ts +15 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib/variant-props.d.ts +9 -0
- package/dist/main-landmark-context-BAsyqp2I.js +11 -0
- package/dist/main-landmark-context-BAsyqp2I.js.map +1 -0
- package/dist/mentions-zz0ewNIq.js +670 -0
- package/dist/mentions-zz0ewNIq.js.map +1 -0
- package/dist/message-BiiVrRrm.js +138 -0
- package/dist/message-BiiVrRrm.js.map +1 -0
- package/dist/{metadata-list-C3MkU-Om.js → metadata-list-G85roWjS.js} +13 -12
- package/dist/metadata-list-G85roWjS.js.map +1 -0
- package/dist/{motion-recipes-DitYv6P2.js → motion-recipes-CUc_aHuG.js} +7 -4
- package/dist/motion-recipes-CUc_aHuG.js.map +1 -0
- package/dist/navigation-C0Be5C3i.js +304 -0
- package/dist/navigation-C0Be5C3i.js.map +1 -0
- package/dist/navigation-CmqaQR_G.js +257 -0
- package/dist/navigation-CmqaQR_G.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-NFWKIoiK.js +340 -0
- package/dist/number-NFWKIoiK.js.map +1 -0
- package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-DV7HE_3t.js} +8 -8
- package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-DV7HE_3t.js.map} +1 -1
- package/dist/{overlays-BSgCtM2v.js → overlays-D-gAIfPF.js} +369 -364
- package/dist/overlays-D-gAIfPF.js.map +1 -0
- package/dist/page-D4pQhgSq.js +216 -0
- package/dist/page-D4pQhgSq.js.map +1 -0
- package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-elelNOfd.js} +29 -29
- package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-elelNOfd.js.map} +1 -1
- package/dist/{pagination-CgCjElfu.js → pagination-BuSWw1US.js} +22 -23
- package/dist/pagination-BuSWw1US.js.map +1 -0
- package/dist/popover-BpMxbqEK.js +205 -0
- package/dist/popover-BpMxbqEK.js.map +1 -0
- package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-CO-_iiuz.js} +7 -7
- package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-CO-_iiuz.js.map} +1 -1
- package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-BqkdvlZn.js} +3 -4
- package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-BqkdvlZn.js.map} +1 -1
- package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-BPeS4rGB.js} +2 -2
- package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-BPeS4rGB.js.map} +1 -1
- package/dist/primitives-BlC1lXBr.js +447 -0
- package/dist/primitives-BlC1lXBr.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BJhQP9WX.js → progress-RARK8AjB.js} +5 -5
- package/dist/{progress-BJhQP9WX.js.map → progress-RARK8AjB.js.map} +1 -1
- package/dist/receipt-CUf2Vegp.js +114 -0
- package/dist/receipt-CUf2Vegp.js.map +1 -0
- package/dist/rich-text-Cypm9__d.js +44 -0
- package/dist/rich-text-Cypm9__d.js.map +1 -0
- package/dist/rich-text-editor-Z6cQepsA.js +919 -0
- package/dist/rich-text-editor-Z6cQepsA.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js +100 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js.map +1 -0
- package/dist/rich-text-tree-DdKHIJx4.js +154 -0
- package/dist/rich-text-tree-DdKHIJx4.js.map +1 -0
- package/dist/{scroll-area-B0dB2cBi.js → scroll-area-B9HKbji0.js} +3 -3
- package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-B9HKbji0.js.map} +1 -1
- package/dist/{separator-Ct_WSWTJ.js → separator-DaDe26sf.js} +3 -3
- package/dist/separator-DaDe26sf.js.map +1 -0
- package/dist/{separator-Bb17I4pu.js → separator-KGsNXt2J.js} +2 -2
- package/dist/{separator-Bb17I4pu.js.map → separator-KGsNXt2J.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +5 -2
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +2 -2
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-D5j_RJvT.js +160 -0
- package/dist/settings-D5j_RJvT.js.map +1 -0
- package/dist/sheet-B6j_BE9O.js +241 -0
- package/dist/sheet-B6j_BE9O.js.map +1 -0
- package/dist/{sidebar-f9gRWXIR.js → sidebar-C-iQ_TJP.js} +379 -350
- package/dist/sidebar-C-iQ_TJP.js.map +1 -0
- package/dist/sidebar-D5VO2W8S.js +715 -0
- package/dist/sidebar-D5VO2W8S.js.map +1 -0
- package/dist/{skeleton-BapcJd9C.js → skeleton-Cab_KgVo.js} +13 -13
- package/dist/skeleton-Cab_KgVo.js.map +1 -0
- package/dist/{smart-card-CW0hjetE.js → smart-card-C59z6KFO.js} +217 -210
- package/dist/smart-card-C59z6KFO.js.map +1 -0
- package/dist/{structure-DuxKl954.js → structure-DElaQwwN.js} +2 -2
- package/dist/{structure-DuxKl954.js.map → structure-DElaQwwN.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-DV6rrOFq.js} +11 -3
- package/dist/surface-recipes-DV6rrOFq.js.map +1 -0
- package/dist/table-CSRUgpdK.js +180 -0
- package/dist/table-CSRUgpdK.js.map +1 -0
- package/dist/table-DdXDBsR_.js +1657 -0
- package/dist/table-DdXDBsR_.js.map +1 -0
- package/dist/tabs-WnHfV2pM.js +192 -0
- package/dist/tabs-WnHfV2pM.js.map +1 -0
- package/dist/{text-inputs-B1culiSK.js → text-inputs-ljyBYaCd.js} +112 -112
- package/dist/text-inputs-ljyBYaCd.js.map +1 -0
- package/dist/theme.css +21 -5
- package/dist/timelines-mOmS9Eh3.js +479 -0
- package/dist/timelines-mOmS9Eh3.js.map +1 -0
- package/dist/tooltip-yjX-Uv-p.js +112 -0
- package/dist/tooltip-yjX-Uv-p.js.map +1 -0
- package/dist/{tree-CzUJHnFs.js → tree-YpkxUG2Z.js} +80 -72
- package/dist/tree-YpkxUG2Z.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-BQnine1k.js → typography-C0dELqYV.js} +46 -40
- package/dist/typography-C0dELqYV.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-C-74NVLc.js → ui-provider-Bu1S-o96.js} +4 -3
- package/dist/ui-provider-Bu1S-o96.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/upload-DMuMYJFT.js +875 -0
- package/dist/upload-DMuMYJFT.js.map +1 -0
- package/dist/{usage-card-BeSLY0i0.js → usage-card-DDPki5P1.js} +57 -54
- package/dist/usage-card-DDPki5P1.js.map +1 -0
- package/dist/use-controllable-state-BlP8SyBI.js +13 -0
- package/dist/use-controllable-state-BlP8SyBI.js.map +1 -0
- package/dist/use-copy-feedback-CzcaqlLf.js +28 -0
- package/dist/use-copy-feedback-CzcaqlLf.js.map +1 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js +251 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js.map +1 -0
- package/dist/{utils-B6kKb8jB.js → utils-BVbAG2J6.js} +128 -112
- package/dist/utils-BVbAG2J6.js.map +1 -0
- package/dist/value-inputs-h5MwjGCo.js +982 -0
- package/dist/value-inputs-h5MwjGCo.js.map +1 -0
- package/dist/value-typography-D15uwfj-.js +154 -0
- package/dist/value-typography-D15uwfj-.js.map +1 -0
- package/dist/workspace-DIryPqBt.js +400 -0
- package/dist/workspace-DIryPqBt.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +7 -0
- package/docs/consumer-skill/agents/themelia-ui-designer.md +11 -2
- package/docs/consumer-skill/examples/analytics.tsx +1 -1
- package/docs/consumer-skill/examples/app-layout.tsx +3 -3
- package/docs/consumer-skill/examples/commerce-lines.tsx +7 -5
- package/docs/consumer-skill/examples/detail.tsx +3 -2
- package/docs/consumer-skill/examples/edit.tsx +3 -3
- package/docs/consumer-skill/examples/email-composer.tsx +1 -1
- package/docs/consumer-skill/examples/index-table.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +7 -6
- package/docs/consumer-skill/references/agents-md.md +27 -23
- package/docs/consumer-skill/references/analytics.md +33 -4
- package/docs/consumer-skill/references/building-views.md +213 -0
- package/docs/consumer-skill/references/catalogue.md +617 -0
- package/docs/consumer-skill/references/component-contracts.json +25852 -32067
- package/docs/consumer-skill/references/composition.md +42 -21
- package/docs/consumer-skill/references/design-contract.md +1 -0
- package/docs/consumer-skill/references/discovery.md +8 -5
- package/docs/consumer-skill/references/installation.md +59 -10
- package/docs/consumer-skill/references/integration.md +28 -5
- package/docs/consumer-skill/references/product-composition.md +2 -2
- package/docs/consumer-skill/references/public-api.json +726 -641
- package/docs/consumer-skill/references/review.md +57 -15
- package/docs/consumer-skill/references/rhf-workflows.md +72 -0
- package/docs/consumer-skill/references/screen-archetypes.md +2 -2
- package/docs/consumer-skill/references/theming.md +8 -3
- package/docs/consumer-skill/references/tokens.json +4 -4
- package/docs/consumer-skill/references/workflows.md +7 -7
- package/docs/consumer-skill/scripts/composition-policy.mjs +178 -44
- package/docs/consumer-skill/scripts/composition.mjs +4 -1
- package/docs/consumer-skill/scripts/discovery.mjs +3 -1
- package/docs/consumer-skill/scripts/setup-skills.mjs +74 -10
- package/docs/consumer-skills/themelia-components/SKILL.md +8 -4
- package/docs/consumer-skills/themelia-composition/SKILL.md +7 -3
- package/docs/consumer-skills/themelia-design/SKILL.md +7 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +1 -1
- package/package.json +12 -13
- package/templates/README.md +3 -2
- package/templates/admin-shell-template.tsx +50 -11
- package/templates/analytics-operations-template.tsx +20 -24
- package/templates/customers-template.tsx +30 -25
- package/templates/index.ts +2 -8
- package/templates/orders-template.tsx +28 -24
- package/templates/products-template.tsx +14 -4
- package/templates/user-permissions-template.tsx +11 -14
- package/dist/accordion-B9MHG0cT.js.map +0 -1
- package/dist/action-menu-Dr8K-ghE.js +0 -284
- package/dist/action-menu-Dr8K-ghE.js.map +0 -1
- package/dist/ai-artifact-C58tQcBy.js +0 -1185
- package/dist/ai-artifact-C58tQcBy.js.map +0 -1
- package/dist/anchored-positioning-DPnKTvNs.js +0 -6
- package/dist/anchored-positioning-DPnKTvNs.js.map +0 -1
- package/dist/app-shell-B_IuNWOo.js +0 -321
- package/dist/app-shell-B_IuNWOo.js.map +0 -1
- package/dist/auth-DTkkshS8.js.map +0 -1
- package/dist/badge-xIiV_E7f.js.map +0 -1
- package/dist/base/sheet.js +0 -3
- package/dist/breadcrumbs-J-K2kl4c.js +0 -129
- package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
- package/dist/button-S2Cubiiz.js.map +0 -1
- package/dist/buttons-BedGfygC.js.map +0 -1
- package/dist/cascader-B1MiqkBq.js +0 -439
- package/dist/cascader-B1MiqkBq.js.map +0 -1
- package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
- package/dist/code-block-BzmM9Eig.js.map +0 -1
- package/dist/collapsible-BkAI_XD4.js +0 -81
- package/dist/collapsible-BkAI_XD4.js.map +0 -1
- package/dist/combobox-BEx0vJgF.js +0 -362
- package/dist/combobox-BEx0vJgF.js.map +0 -1
- package/dist/combobox-BwzoXFSG.js +0 -884
- package/dist/combobox-BwzoXFSG.js.map +0 -1
- package/dist/command-CrlPIL6m.js +0 -425
- package/dist/command-CrlPIL6m.js.map +0 -1
- package/dist/comments-Dmpp0YIc.js +0 -1169
- package/dist/comments-Dmpp0YIc.js.map +0 -1
- package/dist/components/base/buttons/tooltip-button.d.ts +0 -7
- package/dist/components/base/display/content-block.d.ts +0 -75
- package/dist/components/base/display/content-block.strings.d.ts +0 -5
- package/dist/components/base/sheet/index.d.ts +0 -29
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +0 -6
- package/dist/components/blocks/data-display/metadata/index.d.ts +0 -30
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +0 -16
- package/dist/components/features/resource/resource.strings.d.ts +0 -12
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +0 -8
- package/dist/components/features/sync/index.d.ts +0 -26
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +0 -5
- package/dist/components/features/sync/sync.strings.d.ts +0 -18
- package/dist/components/features/sync/sync.types.d.ts +0 -44
- package/dist/components/layout/page/partials/page-actions.d.ts +0 -3
- package/dist/components/ui/slot.d.ts +0 -6
- package/dist/containers-CIxwbZt5.js.map +0 -1
- package/dist/data-display-BdgCAw8T.js.map +0 -1
- package/dist/date-Cq8ioE4o.js +0 -144
- package/dist/date-Cq8ioE4o.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/display-KsZLw9Ov.js.map +0 -1
- package/dist/features/sync.js +0 -142
- package/dist/features/sync.js.map +0 -1
- package/dist/feedback-Dm4izqFn.js +0 -240
- package/dist/feedback-Dm4izqFn.js.map +0 -1
- package/dist/field-affordance-recipes-DWcNcOjh.js.map +0 -1
- package/dist/field-state-recipes-BVA2CWHo.js +0 -12
- package/dist/field-state-recipes-BVA2CWHo.js.map +0 -1
- package/dist/filters-DzgSJpMK.js +0 -2257
- package/dist/filters-DzgSJpMK.js.map +0 -1
- package/dist/focus-recipes-B653VaLq.js.map +0 -1
- package/dist/form-field-BriWAXyg.js +0 -63
- package/dist/form-field-BriWAXyg.js.map +0 -1
- package/dist/forms-C0RGnJTe.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/hooks-DB6CJ4MR.js.map +0 -1
- package/dist/http-D_6rOnzU.js.map +0 -1
- package/dist/item-DjCcM18E.js +0 -277
- 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/media-gallery-C-vChPmE.js +0 -203
- package/dist/media-gallery-C-vChPmE.js.map +0 -1
- package/dist/mentions-0_4nWuI-.js +0 -570
- 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/metadata-list-C3MkU-Om.js.map +0 -1
- package/dist/motion-recipes-DitYv6P2.js.map +0 -1
- package/dist/navigation-C90-oQFq.js +0 -255
- package/dist/navigation-C90-oQFq.js.map +0 -1
- package/dist/navigation-DaRjthVk.js +0 -288
- package/dist/navigation-DaRjthVk.js.map +0 -1
- package/dist/number-CRU3kGuk.js +0 -354
- package/dist/number-CRU3kGuk.js.map +0 -1
- package/dist/overlays-BSgCtM2v.js.map +0 -1
- package/dist/page-DUUKDAjo.js +0 -331
- package/dist/page-DUUKDAjo.js.map +0 -1
- package/dist/pagination-CgCjElfu.js.map +0 -1
- package/dist/popover-B85RenIl.js +0 -201
- package/dist/popover-B85RenIl.js.map +0 -1
- package/dist/primitives-ByWgGUgt.js +0 -380
- package/dist/primitives-ByWgGUgt.js.map +0 -1
- package/dist/receipt-tOc7B3hw.js +0 -116
- package/dist/receipt-tOc7B3hw.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 +0 -98
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js +0 -92
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/separator-Ct_WSWTJ.js.map +0 -1
- package/dist/settings-Bar5wiSo.js +0 -167
- package/dist/settings-Bar5wiSo.js.map +0 -1
- package/dist/sheet-BGPERY55.js +0 -250
- package/dist/sheet-BGPERY55.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/skeleton-BapcJd9C.js.map +0 -1
- package/dist/slot-CLF9kLrS.js +0 -16
- package/dist/slot-CLF9kLrS.js.map +0 -1
- package/dist/smart-card-CW0hjetE.js.map +0 -1
- package/dist/surface-recipes-BKRVW8Os.js.map +0 -1
- package/dist/table-B4TE7iOV.js +0 -175
- package/dist/table-B4TE7iOV.js.map +0 -1
- package/dist/table-CFOWY9pQ.js +0 -1536
- package/dist/table-CFOWY9pQ.js.map +0 -1
- package/dist/tabs-e7ko9S2o.js +0 -191
- package/dist/tabs-e7ko9S2o.js.map +0 -1
- package/dist/text-inputs-B1culiSK.js.map +0 -1
- package/dist/timelines-D3Sl9ueq.js +0 -458
- package/dist/timelines-D3Sl9ueq.js.map +0 -1
- package/dist/tooltip-8wz5S_Zr.js +0 -113
- package/dist/tooltip-8wz5S_Zr.js.map +0 -1
- package/dist/tree-CzUJHnFs.js.map +0 -1
- package/dist/typography-BQnine1k.js.map +0 -1
- package/dist/ui-provider-C-74NVLc.js.map +0 -1
- package/dist/upload-BOW6U2tI.js +0 -855
- package/dist/upload-BOW6U2tI.js.map +0 -1
- package/dist/upload-queue-qUXn1ykN.js +0 -409
- package/dist/upload-queue-qUXn1ykN.js.map +0 -1
- package/dist/usage-card-BeSLY0i0.js.map +0 -1
- package/dist/utils-B6kKb8jB.js.map +0 -1
- package/dist/value-inputs-skdVB2zh.js +0 -980
- package/dist/value-inputs-skdVB2zh.js.map +0 -1
- package/dist/value-typography-uAmWUAL1.js +0 -116
- package/dist/value-typography-uAmWUAL1.js.map +0 -1
- package/dist/workspace-DHeHv0qw.js +0 -411
- package/dist/workspace-DHeHv0qw.js.map +0 -1
package/dist/blocks/ai.js
CHANGED
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as n } from "../
|
|
4
|
-
import {
|
|
5
|
-
import { c as i, o as a, t as o } from "../typography-
|
|
6
|
-
import { t as s } from "../focus-recipes-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as p } from "../
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
2
|
+
import { p as e } from "../ui-provider-Bu1S-o96.js";
|
|
3
|
+
import { mergeStrings as t, useStrings as n } from "../lib/strings.js";
|
|
4
|
+
import { t as r } from "../utils-BVbAG2J6.js";
|
|
5
|
+
import { c as i, o as a, t as o } from "../typography-C0dELqYV.js";
|
|
6
|
+
import { t as s } from "../focus-recipes-DSkiUvUp.js";
|
|
7
|
+
import { n as c } from "../buttons-pZVgPTZn.js";
|
|
8
|
+
import { r as l, t as u } from "../structure-DElaQwwN.js";
|
|
9
|
+
import { i as d } from "../tone-recipes-BPsRAvhu.js";
|
|
10
|
+
import { o as f } from "../surface-recipes-DV6rrOFq.js";
|
|
11
|
+
import { t as p } from "../smart-card-C59z6KFO.js";
|
|
12
|
+
import { t as m } from "../progress-RARK8AjB.js";
|
|
13
|
+
import { t as h } from "../interaction-recipes-DmuS1ase.js";
|
|
14
|
+
import { a as g } from "../value-typography-D15uwfj-.js";
|
|
15
|
+
import { _, g as v, m as y } from "../primitives-BlC1lXBr.js";
|
|
16
|
+
import { n as b, t as x } from "../number-NFWKIoiK.js";
|
|
17
|
+
import { t as S } from "../icon-badge-B0Kq7wom.js";
|
|
18
|
+
import { t as C } from "../badge-oGiXblW7.js";
|
|
19
|
+
import { d as w } from "../text-inputs-ljyBYaCd.js";
|
|
20
|
+
import { a as T, c as E, i as D, n as O, o as ee, r as k, t as A, u as j } from "../item-GJ9mvCcg.js";
|
|
21
|
+
import { m as M } from "../data-display-CWe9SOYh.js";
|
|
22
|
+
import { C as te, S as ne, _ as re, a as ie, b as ae, c as oe, d as se, f as ce, g as le, h as ue, i as de, l as fe, m as pe, n as me, o as he, p as ge, r as _e, s as ve, t as ye, u as be, v as xe, x as Se, y as Ce } from "../ai-artifact-otrz9ZwS.js";
|
|
23
|
+
import { t as we } from "../tree-YpkxUG2Z.js";
|
|
24
|
+
import { useEffect as Te, useId as N, useMemo as Ee, useRef as De, useState as P } from "react";
|
|
25
|
+
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
26
|
+
import { ChevronDown as Oe, ChevronRight as ke, ExternalLink as R, File as Ae, FileCode as je, FileText as Me, Folder as Ne, FolderOpen as Pe, ThumbsDown as z, ThumbsUp as B } from "lucide-react";
|
|
24
27
|
//#region src/components/blocks/ai/ai.strings.ts
|
|
25
|
-
var
|
|
28
|
+
var V = {
|
|
26
29
|
regenerate: "Regenerate",
|
|
27
30
|
confidenceLevels: {
|
|
28
|
-
low: "
|
|
29
|
-
medium: "
|
|
30
|
-
high: "
|
|
31
|
+
low: "Low",
|
|
32
|
+
medium: "Medium",
|
|
33
|
+
high: "High"
|
|
31
34
|
},
|
|
32
35
|
confidenceLabel: "Confidence"
|
|
33
|
-
},
|
|
36
|
+
}, Fe = {
|
|
34
37
|
title: "Classification",
|
|
35
38
|
complexityLabel: "Complexity",
|
|
36
39
|
flagsLabel: "Flags",
|
|
@@ -41,83 +44,82 @@ var P = {
|
|
|
41
44
|
medium: "Medium",
|
|
42
45
|
high: "High"
|
|
43
46
|
}
|
|
44
|
-
},
|
|
47
|
+
}, Ie = {
|
|
45
48
|
low: 1,
|
|
46
49
|
medium: 2,
|
|
47
50
|
high: 3
|
|
48
51
|
};
|
|
49
|
-
function Le({ level: e, label: t, name:
|
|
50
|
-
let a =
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
+
function Le({ level: e, label: t, name: n }) {
|
|
53
|
+
let a = Ie[e];
|
|
54
|
+
return /* @__PURE__ */ L("div", {
|
|
52
55
|
className: "ai-summary--confidence flex items-center gap-space-sm",
|
|
53
56
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ I(i, {
|
|
55
58
|
size: "xs",
|
|
56
59
|
type: "secondary",
|
|
57
60
|
tag: "span",
|
|
58
61
|
className: "ai-summary--confidence-label",
|
|
59
|
-
children:
|
|
62
|
+
children: n
|
|
60
63
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ I("div", {
|
|
62
65
|
className: "flex items-center gap-space-2xs",
|
|
63
66
|
"aria-hidden": "true",
|
|
64
|
-
children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */
|
|
67
|
+
children: Array.from({ length: 3 }, (e, t) => /* @__PURE__ */ I("div", { className: r("h-2.5 w-1 rounded-radius-sm", t < a ? "bg-muted-foreground" : "bg-muted") }, `bar-${String(t)}`))
|
|
65
68
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ I(i, {
|
|
67
70
|
size: "xs",
|
|
68
71
|
type: "secondary",
|
|
69
72
|
tag: "span",
|
|
70
|
-
className: "capitalize",
|
|
71
73
|
children: t
|
|
72
74
|
})
|
|
73
75
|
]
|
|
74
76
|
});
|
|
75
77
|
}
|
|
76
|
-
function Re({ data: e, children:
|
|
77
|
-
let f =
|
|
78
|
+
function Re({ data: e, children: t, metadata: a, actions: o, footer: s, className: l, strings: d }) {
|
|
79
|
+
let f = n(V, d), p = /* @__PURE__ */ L("div", {
|
|
78
80
|
className: "ai-summary--metadata flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-xs",
|
|
79
|
-
children: [!!e.generatedAt && /* @__PURE__ */
|
|
81
|
+
children: [!!e.generatedAt && /* @__PURE__ */ I(v, {
|
|
80
82
|
size: "xs",
|
|
81
83
|
className: "min-w-0",
|
|
82
84
|
children: e.generatedAt
|
|
83
|
-
}), !!e.model && /* @__PURE__ */
|
|
85
|
+
}), !!e.model && /* @__PURE__ */ I(v, {
|
|
84
86
|
size: "xs",
|
|
85
87
|
className: "min-w-0 truncate",
|
|
86
88
|
children: e.model
|
|
87
89
|
})]
|
|
88
|
-
}), m = e.onRegenerate ? /* @__PURE__ */
|
|
90
|
+
}), m = e.onRegenerate ? /* @__PURE__ */ I(c, {
|
|
89
91
|
tone: "secondary",
|
|
90
92
|
buttonStyle: "ghost",
|
|
91
93
|
onClick: e.onRegenerate,
|
|
92
94
|
children: f.regenerate
|
|
93
|
-
}) : null,
|
|
94
|
-
return /* @__PURE__ */
|
|
95
|
+
}) : null, h = a === void 0 ? p : a, g = o === void 0 ? m : o, _ = s === void 0 ? (h || g) && /* @__PURE__ */ L(F, { children: [h, g] }) : s;
|
|
96
|
+
return /* @__PURE__ */ L(u, {
|
|
95
97
|
"data-component": "ai-summary",
|
|
96
98
|
"data-slot": "ai-summary",
|
|
97
|
-
className:
|
|
99
|
+
className: r("ai-summary--component", l),
|
|
98
100
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ I(i, {
|
|
100
102
|
type: "inherit",
|
|
101
103
|
lineHeight: "relaxed",
|
|
102
104
|
children: e.summary
|
|
103
105
|
}),
|
|
104
|
-
e.entities.length > 0 && /* @__PURE__ */
|
|
106
|
+
e.entities.length > 0 && /* @__PURE__ */ I(u, {
|
|
105
107
|
direction: "horizontal",
|
|
106
108
|
wrap: !0,
|
|
107
109
|
gap: "sm",
|
|
108
110
|
className: "ai-summary--entities min-w-0",
|
|
109
|
-
children: e.entities.map((e) => /* @__PURE__ */
|
|
111
|
+
children: e.entities.map((e) => /* @__PURE__ */ I(C, {
|
|
110
112
|
tone: "secondary",
|
|
111
113
|
children: e
|
|
112
114
|
}, e))
|
|
113
115
|
}),
|
|
114
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ I(Le, {
|
|
115
117
|
level: e.confidence,
|
|
116
118
|
label: f.confidenceLevels[e.confidence],
|
|
117
|
-
name: f.confidenceLabel ??
|
|
119
|
+
name: f.confidenceLabel ?? V.confidenceLabel ?? ""
|
|
118
120
|
}),
|
|
119
|
-
|
|
120
|
-
!!
|
|
121
|
+
t,
|
|
122
|
+
!!_ && /* @__PURE__ */ I(u, {
|
|
121
123
|
direction: {
|
|
122
124
|
base: "vertical",
|
|
123
125
|
sm: "horizontal"
|
|
@@ -125,94 +127,94 @@ function Re({ data: e, children: a, metadata: o, actions: s, footer: c, classNam
|
|
|
125
127
|
gap: "md",
|
|
126
128
|
justify: { sm: "between" },
|
|
127
129
|
className: "ai-summary--footer pt-space-xs",
|
|
128
|
-
children:
|
|
130
|
+
children: _
|
|
129
131
|
})
|
|
130
132
|
]
|
|
131
133
|
});
|
|
132
134
|
}
|
|
133
135
|
//#endregion
|
|
134
136
|
//#region src/components/blocks/ai/ai-classification/ai-classification.tsx
|
|
135
|
-
function ze({ data: e, children:
|
|
136
|
-
let s =
|
|
137
|
-
return /* @__PURE__ */
|
|
137
|
+
function ze({ data: e, children: t, className: a, strings: o }) {
|
|
138
|
+
let s = n(Fe, o), c = e.confidence >= .9 ? s.confidenceBands.high : e.confidence >= .7 ? s.confidenceBands.medium : s.confidenceBands.low;
|
|
139
|
+
return /* @__PURE__ */ L(u, {
|
|
138
140
|
"data-component": "ai-classification",
|
|
139
141
|
"data-slot": "ai-classification",
|
|
140
|
-
className:
|
|
142
|
+
className: r("ai-classification--component", a),
|
|
141
143
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ L(u, {
|
|
143
145
|
direction: "horizontal",
|
|
144
146
|
wrap: !0,
|
|
145
147
|
align: "center",
|
|
146
148
|
gap: "sm",
|
|
147
149
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ I(C, { children: e.requestType }),
|
|
151
|
+
/* @__PURE__ */ I(C, {
|
|
150
152
|
tone: e.urgencyTone,
|
|
151
153
|
children: e.urgency
|
|
152
154
|
}),
|
|
153
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ I(C, {
|
|
154
156
|
tone: e.sentimentTone,
|
|
155
157
|
dot: !0,
|
|
156
158
|
children: e.tone
|
|
157
159
|
})
|
|
158
160
|
]
|
|
159
161
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ I(M, {
|
|
161
163
|
label: s.complexityLabel,
|
|
162
|
-
value: /* @__PURE__ */
|
|
164
|
+
value: /* @__PURE__ */ L("span", {
|
|
163
165
|
className: "flex items-center gap-space-md",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ I("span", {
|
|
165
167
|
className: "flex items-center gap-space-xs",
|
|
166
|
-
children: Array.from({ length: 5 }, (t,
|
|
167
|
-
}), /* @__PURE__ */
|
|
168
|
+
children: Array.from({ length: 5 }, (t, n) => /* @__PURE__ */ I("span", { className: r("h-1.5 w-3 rounded-radius-sm", n < e.complexityScore ? "bg-muted-foreground" : "bg-muted") }, `cx-${String(n)}`))
|
|
169
|
+
}), /* @__PURE__ */ I(i, {
|
|
168
170
|
tag: "span",
|
|
169
171
|
size: "xs",
|
|
170
172
|
type: "secondary",
|
|
171
|
-
children:
|
|
173
|
+
children: s.formatComplexity?.(e.complexityScore, 5) ?? `${String(e.complexityScore)}/5`
|
|
172
174
|
})]
|
|
173
175
|
})
|
|
174
176
|
}),
|
|
175
|
-
e.flags.length > 0 && /* @__PURE__ */
|
|
177
|
+
e.flags.length > 0 && /* @__PURE__ */ I(M, {
|
|
176
178
|
label: s.flagsLabel,
|
|
177
|
-
value: /* @__PURE__ */
|
|
179
|
+
value: /* @__PURE__ */ I("span", {
|
|
178
180
|
className: "flex gap-space-xs",
|
|
179
|
-
children: e.flags.map((e) => /* @__PURE__ */
|
|
181
|
+
children: e.flags.map((e) => /* @__PURE__ */ I(C, { children: e }, e))
|
|
180
182
|
})
|
|
181
183
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ I(M, {
|
|
183
185
|
label: s.nextStepLabel,
|
|
184
186
|
value: e.suggestedAction,
|
|
185
187
|
valueClassName: "text-right"
|
|
186
188
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ I(i, {
|
|
188
190
|
lineHeight: "relaxed",
|
|
189
191
|
type: "secondary",
|
|
190
192
|
children: e.summary
|
|
191
193
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ L("div", {
|
|
193
195
|
className: "flex items-center gap-space-md",
|
|
194
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ L(C, {
|
|
195
197
|
tone: "secondary",
|
|
196
198
|
children: [
|
|
197
199
|
s.confidencePrefix,
|
|
198
200
|
": ",
|
|
199
201
|
c
|
|
200
202
|
]
|
|
201
|
-
}), /* @__PURE__ */
|
|
203
|
+
}), /* @__PURE__ */ I(i, {
|
|
202
204
|
size: "xs",
|
|
203
205
|
type: "discrete",
|
|
204
206
|
tag: "span",
|
|
205
207
|
children: e.model
|
|
206
208
|
})]
|
|
207
209
|
}),
|
|
208
|
-
|
|
210
|
+
t
|
|
209
211
|
]
|
|
210
212
|
});
|
|
211
213
|
}
|
|
212
214
|
//#endregion
|
|
213
215
|
//#region src/components/blocks/ai/ai-confidence/types.ts
|
|
214
|
-
var
|
|
215
|
-
title: "AI
|
|
216
|
+
var H = {
|
|
217
|
+
title: "AI confidence",
|
|
216
218
|
confidenceLabel: "Overall",
|
|
217
219
|
factorsLabel: "Contributing factors",
|
|
218
220
|
levelHigh: "High",
|
|
@@ -224,24 +226,25 @@ var I = {
|
|
|
224
226
|
function Be(e) {
|
|
225
227
|
return e >= .85 ? "success" : e >= .6 ? "warning" : "destructive";
|
|
226
228
|
}
|
|
227
|
-
function
|
|
228
|
-
let
|
|
229
|
-
return /* @__PURE__ */
|
|
229
|
+
function U({ score: e, model: t, factors: o, className: s, strings: c }) {
|
|
230
|
+
let l = n(H, c), d = Math.round(e * 100), f = Be(e), p = f === "success" ? l.levelHigh : f === "warning" ? l.levelMedium : l.levelLow, h = 2 * Math.PI * 24, g = h - d / 100 * h;
|
|
231
|
+
return /* @__PURE__ */ L(u, {
|
|
230
232
|
"data-component": "ai-confidence",
|
|
231
233
|
"data-slot": "ai-confidence",
|
|
232
234
|
gap: "xl",
|
|
233
|
-
className:
|
|
234
|
-
"
|
|
235
|
-
|
|
235
|
+
className: r("ai-confidence--component @container/ai-confidence", s),
|
|
236
|
+
role: "group",
|
|
237
|
+
"aria-label": l.title,
|
|
238
|
+
children: [/* @__PURE__ */ L("div", {
|
|
236
239
|
className: "grid gap-space-xl @md/ai-confidence:grid-cols-[auto_minmax(0,1fr)] @md/ai-confidence:items-center",
|
|
237
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ L("div", {
|
|
238
241
|
className: "relative w-fit shrink-0",
|
|
239
|
-
children: [/* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ L("svg", {
|
|
240
243
|
width: "56",
|
|
241
244
|
height: "56",
|
|
242
245
|
viewBox: "0 0 64 64",
|
|
243
246
|
"aria-hidden": "true",
|
|
244
|
-
children: [/* @__PURE__ */
|
|
247
|
+
children: [/* @__PURE__ */ I("circle", {
|
|
245
248
|
cx: "32",
|
|
246
249
|
cy: "32",
|
|
247
250
|
r: "24",
|
|
@@ -249,7 +252,7 @@ function L({ score: e, model: r, factors: o, className: s, strings: c }) {
|
|
|
249
252
|
stroke: "currentColor",
|
|
250
253
|
strokeWidth: "5",
|
|
251
254
|
className: "text-muted/60"
|
|
252
|
-
}), /* @__PURE__ */
|
|
255
|
+
}), /* @__PURE__ */ I("circle", {
|
|
253
256
|
cx: "32",
|
|
254
257
|
cy: "32",
|
|
255
258
|
r: "24",
|
|
@@ -260,11 +263,11 @@ function L({ score: e, model: r, factors: o, className: s, strings: c }) {
|
|
|
260
263
|
strokeDasharray: h,
|
|
261
264
|
strokeDashoffset: g,
|
|
262
265
|
transform: "rotate(-90 32 32)",
|
|
263
|
-
className:
|
|
266
|
+
className: r(f === "success" && "text-success", f === "warning" && "text-warning-accent", f === "destructive" && "text-destructive")
|
|
264
267
|
})]
|
|
265
|
-
}), /* @__PURE__ */
|
|
268
|
+
}), /* @__PURE__ */ I("div", {
|
|
266
269
|
className: "absolute inset-0 flex flex-col items-center justify-center",
|
|
267
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ I(b, {
|
|
268
271
|
type: "inherit",
|
|
269
272
|
value: d,
|
|
270
273
|
scaled: !0,
|
|
@@ -272,35 +275,35 @@ function L({ score: e, model: r, factors: o, className: s, strings: c }) {
|
|
|
272
275
|
lineHeight: "none"
|
|
273
276
|
})
|
|
274
277
|
})]
|
|
275
|
-
}), /* @__PURE__ */
|
|
278
|
+
}), /* @__PURE__ */ L(u, {
|
|
276
279
|
gap: "sm",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ I(a, { children: l.confidenceLabel }), /* @__PURE__ */ L(u, {
|
|
278
281
|
direction: "horizontal",
|
|
279
282
|
gap: "sm",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
281
|
-
tone:
|
|
282
|
-
children:
|
|
283
|
-
}), !!
|
|
283
|
+
children: [/* @__PURE__ */ I(C, {
|
|
284
|
+
tone: f,
|
|
285
|
+
children: p
|
|
286
|
+
}), !!t && /* @__PURE__ */ I(i, {
|
|
284
287
|
size: "xs",
|
|
285
288
|
type: "secondary",
|
|
286
289
|
className: "truncate",
|
|
287
|
-
children:
|
|
290
|
+
children: t
|
|
288
291
|
})]
|
|
289
292
|
})]
|
|
290
293
|
})]
|
|
291
|
-
}), !!o && o.length > 0 && /* @__PURE__ */
|
|
294
|
+
}), !!o && o.length > 0 && /* @__PURE__ */ L(u, {
|
|
292
295
|
gap: "md",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
296
|
+
children: [/* @__PURE__ */ I(a, { children: l.factorsLabel }), o.map((e) => /* @__PURE__ */ L(u, {
|
|
294
297
|
gap: "sm",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ I(M, {
|
|
296
299
|
label: e.label,
|
|
297
|
-
value: /* @__PURE__ */
|
|
300
|
+
value: /* @__PURE__ */ I(b, {
|
|
298
301
|
type: "inherit",
|
|
299
302
|
value: e.score,
|
|
300
303
|
size: "xs",
|
|
301
304
|
weight: "semibold"
|
|
302
305
|
})
|
|
303
|
-
}), /* @__PURE__ */
|
|
306
|
+
}), /* @__PURE__ */ I(m, {
|
|
304
307
|
value: Math.round(e.score * 100),
|
|
305
308
|
"aria-label": e.label
|
|
306
309
|
})]
|
|
@@ -308,54 +311,54 @@ function L({ score: e, model: r, factors: o, className: s, strings: c }) {
|
|
|
308
311
|
})]
|
|
309
312
|
});
|
|
310
313
|
}
|
|
311
|
-
|
|
314
|
+
U.displayName = "AiConfidence";
|
|
312
315
|
//#endregion
|
|
313
316
|
//#region src/components/blocks/ai/ai-prompt-suggestions/types.ts
|
|
314
|
-
var
|
|
317
|
+
var W = {
|
|
315
318
|
title: "Try asking",
|
|
316
319
|
hint: "Tap a prompt to start"
|
|
317
320
|
};
|
|
318
321
|
//#endregion
|
|
319
322
|
//#region src/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.tsx
|
|
320
|
-
function
|
|
321
|
-
let o =
|
|
322
|
-
return /* @__PURE__ */
|
|
323
|
+
function G({ suggestions: e, onPick: t, className: i, strings: a }) {
|
|
324
|
+
let o = n(W, a);
|
|
325
|
+
return /* @__PURE__ */ L(u, {
|
|
323
326
|
"data-component": "ai-prompt-suggestions",
|
|
324
327
|
"data-slot": "ai-prompt-suggestions",
|
|
325
|
-
className:
|
|
326
|
-
children: [/* @__PURE__ */
|
|
328
|
+
className: r("ai-prompt-suggestions--component", i),
|
|
329
|
+
children: [/* @__PURE__ */ L(u, {
|
|
327
330
|
gap: "normal",
|
|
328
331
|
className: "ai-prompt-suggestions--intro",
|
|
329
|
-
children: [/* @__PURE__ */
|
|
330
|
-
}), /* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ I(j, { children: o.title }), /* @__PURE__ */ I(D, { children: o.hint })]
|
|
333
|
+
}), /* @__PURE__ */ I("div", {
|
|
331
334
|
className: "grid grid-cols-[repeat(auto-fit,minmax(min(15rem,100%),1fr))] gap-space-xl",
|
|
332
335
|
children: e.map((e) => {
|
|
333
|
-
let
|
|
334
|
-
return /* @__PURE__ */
|
|
336
|
+
let n = e.icon;
|
|
337
|
+
return /* @__PURE__ */ L(A, {
|
|
335
338
|
variant: "outline",
|
|
336
|
-
render: /* @__PURE__ */
|
|
339
|
+
render: /* @__PURE__ */ I("button", {
|
|
337
340
|
type: "button",
|
|
338
|
-
onClick: () =>
|
|
341
|
+
onClick: () => t?.(e)
|
|
339
342
|
}),
|
|
340
|
-
className:
|
|
341
|
-
children: [!!
|
|
342
|
-
icon:
|
|
343
|
+
className: r("ai-prompt-suggestions--item h-full items-start gap-space-lg p-surface", h.rowHover),
|
|
344
|
+
children: [!!n && /* @__PURE__ */ I(E, { children: /* @__PURE__ */ I(S, {
|
|
345
|
+
icon: n,
|
|
343
346
|
tone: "neutral",
|
|
344
347
|
size: "md",
|
|
345
348
|
shape: "square"
|
|
346
|
-
}) }), /* @__PURE__ */
|
|
349
|
+
}) }), /* @__PURE__ */ L(k, {
|
|
347
350
|
className: "min-w-0 gap-space-sm",
|
|
348
|
-
children: [/* @__PURE__ */
|
|
351
|
+
children: [/* @__PURE__ */ I(j, { children: e.label }), !!e.description && /* @__PURE__ */ I(D, { children: e.description })]
|
|
349
352
|
})]
|
|
350
353
|
}, e.id);
|
|
351
354
|
})
|
|
352
355
|
})]
|
|
353
356
|
});
|
|
354
357
|
}
|
|
355
|
-
|
|
358
|
+
G.displayName = "AiPromptSuggestions";
|
|
356
359
|
//#endregion
|
|
357
360
|
//#region src/components/blocks/ai/ai-token-usage/types.ts
|
|
358
|
-
var
|
|
361
|
+
var K = {
|
|
359
362
|
title: "Token usage",
|
|
360
363
|
input: "Input",
|
|
361
364
|
output: "Output",
|
|
@@ -364,39 +367,39 @@ var B = {
|
|
|
364
367
|
};
|
|
365
368
|
//#endregion
|
|
366
369
|
//#region src/components/blocks/ai/ai-token-usage/ai-token-usage.tsx
|
|
367
|
-
function
|
|
368
|
-
let
|
|
369
|
-
return /* @__PURE__ */
|
|
370
|
+
function q({ model: e, inputTokens: t, outputTokens: o, cost: s, maxTokens: c, className: d, strings: f }) {
|
|
371
|
+
let p = n(K, f), h = t + o, g = c ? Math.min(100, Math.round(h / c * 100)) : 0;
|
|
372
|
+
return /* @__PURE__ */ L(u, {
|
|
370
373
|
"data-component": "ai-token-usage",
|
|
371
374
|
"data-slot": "ai-token-usage",
|
|
372
|
-
className:
|
|
375
|
+
className: r("ai-token-usage--component", d),
|
|
373
376
|
children: [
|
|
374
|
-
!!e && /* @__PURE__ */
|
|
377
|
+
!!e && /* @__PURE__ */ I("div", {
|
|
375
378
|
className: "ai-token-usage--metadata flex min-w-0 justify-start",
|
|
376
|
-
children: /* @__PURE__ */
|
|
379
|
+
children: /* @__PURE__ */ I(C, {
|
|
377
380
|
tone: "secondary",
|
|
378
381
|
children: e
|
|
379
382
|
})
|
|
380
383
|
}),
|
|
381
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ I(l, {
|
|
382
385
|
columns: 3,
|
|
383
386
|
gap: "md",
|
|
384
387
|
children: [
|
|
385
388
|
{
|
|
386
|
-
label:
|
|
387
|
-
value:
|
|
389
|
+
label: p.input,
|
|
390
|
+
value: t
|
|
388
391
|
},
|
|
389
392
|
{
|
|
390
|
-
label:
|
|
393
|
+
label: p.output,
|
|
391
394
|
value: o
|
|
392
395
|
},
|
|
393
396
|
{
|
|
394
|
-
label:
|
|
395
|
-
value:
|
|
397
|
+
label: p.total,
|
|
398
|
+
value: h
|
|
396
399
|
}
|
|
397
|
-
].map((e) => /* @__PURE__ */
|
|
400
|
+
].map((e) => /* @__PURE__ */ L(u, {
|
|
398
401
|
gap: "2xs",
|
|
399
|
-
children: [/* @__PURE__ */
|
|
402
|
+
children: [/* @__PURE__ */ I(a, { children: e.label }), /* @__PURE__ */ I(x, {
|
|
400
403
|
type: "inherit",
|
|
401
404
|
value: e.value,
|
|
402
405
|
weight: "semibold",
|
|
@@ -404,57 +407,57 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, c
|
|
|
404
407
|
})]
|
|
405
408
|
}, e.label))
|
|
406
409
|
}),
|
|
407
|
-
!!
|
|
410
|
+
!!c && /* @__PURE__ */ L(u, {
|
|
408
411
|
gap: "xs",
|
|
409
|
-
children: [/* @__PURE__ */
|
|
410
|
-
label: /* @__PURE__ */
|
|
412
|
+
children: [/* @__PURE__ */ I(M, {
|
|
413
|
+
label: /* @__PURE__ */ L("span", {
|
|
411
414
|
className: "inline-flex items-center gap-space-xs",
|
|
412
415
|
children: [
|
|
413
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ I(x, {
|
|
414
417
|
type: "inherit",
|
|
415
|
-
value:
|
|
418
|
+
value: h,
|
|
416
419
|
size: "xs",
|
|
417
420
|
align: "left"
|
|
418
421
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ I(i, {
|
|
420
423
|
type: "inherit",
|
|
421
424
|
tag: "span",
|
|
422
425
|
size: "xs",
|
|
423
426
|
"aria-hidden": !0,
|
|
424
427
|
children: "/"
|
|
425
428
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ I(x, {
|
|
427
430
|
type: "inherit",
|
|
428
|
-
value:
|
|
431
|
+
value: c,
|
|
429
432
|
size: "xs",
|
|
430
433
|
align: "left"
|
|
431
434
|
})
|
|
432
435
|
]
|
|
433
436
|
}),
|
|
434
|
-
value: /* @__PURE__ */
|
|
437
|
+
value: /* @__PURE__ */ I(b, {
|
|
435
438
|
type: "inherit",
|
|
436
|
-
value:
|
|
439
|
+
value: g,
|
|
437
440
|
scaled: !0,
|
|
438
441
|
size: "xs",
|
|
439
442
|
weight: "semibold",
|
|
440
443
|
align: "right"
|
|
441
444
|
})
|
|
442
|
-
}), /* @__PURE__ */
|
|
443
|
-
value:
|
|
444
|
-
"aria-label":
|
|
445
|
+
}), /* @__PURE__ */ I(m, {
|
|
446
|
+
value: g,
|
|
447
|
+
"aria-label": p.title,
|
|
445
448
|
className: "ai-token-usage--bar"
|
|
446
449
|
})]
|
|
447
450
|
}),
|
|
448
|
-
!!s && /* @__PURE__ */
|
|
449
|
-
label: /* @__PURE__ */
|
|
451
|
+
!!s && /* @__PURE__ */ I(M, {
|
|
452
|
+
label: /* @__PURE__ */ I(i, {
|
|
450
453
|
type: "inherit",
|
|
451
454
|
tag: "span",
|
|
452
455
|
size: "xs",
|
|
453
456
|
weight: "medium",
|
|
454
457
|
lineHeight: "tight",
|
|
455
|
-
children:
|
|
458
|
+
children: p.cost
|
|
456
459
|
}),
|
|
457
|
-
value: /* @__PURE__ */
|
|
460
|
+
value: /* @__PURE__ */ I(_, {
|
|
458
461
|
type: "inherit",
|
|
459
462
|
weight: "semibold",
|
|
460
463
|
children: s
|
|
@@ -464,10 +467,10 @@ function V({ model: e, inputTokens: r, outputTokens: o, cost: s, maxTokens: u, c
|
|
|
464
467
|
]
|
|
465
468
|
});
|
|
466
469
|
}
|
|
467
|
-
|
|
470
|
+
q.displayName = "AiTokenUsage";
|
|
468
471
|
//#endregion
|
|
469
472
|
//#region src/components/blocks/ai/ai-feedback/types.ts
|
|
470
|
-
var
|
|
473
|
+
var J = {
|
|
471
474
|
prompt: "Was this helpful?",
|
|
472
475
|
thumbsUpAria: "Mark as helpful",
|
|
473
476
|
thumbsDownAria: "Mark as not helpful",
|
|
@@ -477,82 +480,107 @@ var H = {
|
|
|
477
480
|
};
|
|
478
481
|
//#endregion
|
|
479
482
|
//#region src/components/blocks/ai/ai-feedback/ai-feedback.tsx
|
|
480
|
-
function
|
|
481
|
-
let
|
|
482
|
-
|
|
483
|
-
|
|
483
|
+
function Y({ value: e, onVote: t, onSubmitComment: a, allowComment: o = !0, submitted: s = !1, className: l, strings: f }) {
|
|
484
|
+
let p = n(J, f), [m, g] = P(null), [_, v] = P(""), [y, b] = P(!1), x = De(!0);
|
|
485
|
+
Te(() => (x.current = !0, () => {
|
|
486
|
+
x.current = !1;
|
|
487
|
+
}), []);
|
|
488
|
+
let S = e ?? m, C = () => {
|
|
489
|
+
if (y || !_.trim()) return;
|
|
490
|
+
let e = a?.(_, S);
|
|
491
|
+
if (!e || typeof e.then != "function") {
|
|
492
|
+
v("");
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
b(!0), e.then(() => {
|
|
496
|
+
x.current && (v(""), b(!1));
|
|
497
|
+
}, () => {
|
|
498
|
+
x.current && b(!1);
|
|
499
|
+
});
|
|
500
|
+
}, T = (n) => {
|
|
501
|
+
let r = S === n ? null : n;
|
|
502
|
+
e === void 0 && g(r), t?.(r);
|
|
484
503
|
};
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
504
|
+
if (s) {
|
|
505
|
+
let e = S === "down" ? z : B;
|
|
506
|
+
return /* @__PURE__ */ L("div", {
|
|
507
|
+
role: "status",
|
|
508
|
+
className: r("ai-feedback--component", "inline-flex items-center gap-space-md rounded-radius px-space-lg py-space-sm", d.success.wash, l),
|
|
509
|
+
children: [/* @__PURE__ */ I(e, {
|
|
510
|
+
"aria-hidden": "true",
|
|
511
|
+
className: "size-icon-md text-success"
|
|
512
|
+
}), /* @__PURE__ */ I(i, {
|
|
513
|
+
size: "xs",
|
|
514
|
+
type: "success",
|
|
515
|
+
weight: "medium",
|
|
516
|
+
children: p.thanks
|
|
517
|
+
})]
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
return /* @__PURE__ */ L("div", {
|
|
521
|
+
className: r("ai-feedback--component inline-flex flex-col gap-space-md", l),
|
|
522
|
+
children: [/* @__PURE__ */ L("div", {
|
|
496
523
|
className: "flex items-center gap-space-md",
|
|
497
524
|
children: [
|
|
498
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ I(i, {
|
|
499
526
|
size: "xs",
|
|
500
527
|
type: "secondary",
|
|
501
|
-
children:
|
|
528
|
+
children: p.prompt
|
|
502
529
|
}),
|
|
503
|
-
/* @__PURE__ */
|
|
530
|
+
/* @__PURE__ */ I(c, {
|
|
504
531
|
type: "button",
|
|
505
532
|
tone: "secondary",
|
|
506
533
|
buttonStyle: "ghost",
|
|
507
534
|
size: "sm",
|
|
508
535
|
iconOnly: !0,
|
|
509
|
-
"aria-label":
|
|
510
|
-
"aria-pressed":
|
|
511
|
-
onClick: () =>
|
|
512
|
-
className:
|
|
513
|
-
children: /* @__PURE__ */
|
|
536
|
+
"aria-label": p.thumbsUpAria,
|
|
537
|
+
"aria-pressed": S === "up",
|
|
538
|
+
onClick: () => T("up"),
|
|
539
|
+
className: S === "up" ? h.togglePressed : h.toggleHoverButton,
|
|
540
|
+
children: /* @__PURE__ */ I(B, { className: "size-icon-md" })
|
|
514
541
|
}),
|
|
515
|
-
/* @__PURE__ */
|
|
542
|
+
/* @__PURE__ */ I(c, {
|
|
516
543
|
type: "button",
|
|
517
544
|
tone: "secondary",
|
|
518
545
|
buttonStyle: "ghost",
|
|
519
546
|
size: "sm",
|
|
520
547
|
iconOnly: !0,
|
|
521
|
-
"aria-label":
|
|
522
|
-
"aria-pressed":
|
|
523
|
-
onClick: () =>
|
|
524
|
-
className:
|
|
525
|
-
children: /* @__PURE__ */
|
|
548
|
+
"aria-label": p.thumbsDownAria,
|
|
549
|
+
"aria-pressed": S === "down",
|
|
550
|
+
onClick: () => T("down"),
|
|
551
|
+
className: S === "down" ? h.togglePressed : h.toggleHoverButton,
|
|
552
|
+
children: /* @__PURE__ */ I(z, { className: "size-icon-md" })
|
|
526
553
|
})
|
|
527
554
|
]
|
|
528
|
-
}), !!
|
|
555
|
+
}), !!o && !!S && /* @__PURE__ */ L(u, {
|
|
529
556
|
gap: "md",
|
|
530
|
-
children: [/* @__PURE__ */
|
|
557
|
+
children: [/* @__PURE__ */ I(w, {
|
|
531
558
|
value: _,
|
|
532
559
|
onChange: (e) => v(e.target.value),
|
|
533
|
-
placeholder:
|
|
534
|
-
minRows: 2
|
|
535
|
-
|
|
560
|
+
placeholder: p.commentPlaceholder,
|
|
561
|
+
minRows: 2,
|
|
562
|
+
readOnly: y
|
|
563
|
+
}), /* @__PURE__ */ I(u, {
|
|
536
564
|
direction: "horizontal",
|
|
537
565
|
gap: "none",
|
|
538
566
|
justify: "end",
|
|
539
|
-
children: /* @__PURE__ */
|
|
567
|
+
children: /* @__PURE__ */ I(c, {
|
|
540
568
|
tone: "primary",
|
|
541
569
|
type: "button",
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
570
|
+
handlesLoading: !0,
|
|
571
|
+
loading: y,
|
|
572
|
+
onClick: C,
|
|
545
573
|
disabled: !_.trim(),
|
|
546
|
-
children:
|
|
574
|
+
children: p.submit
|
|
547
575
|
})
|
|
548
576
|
})]
|
|
549
577
|
})]
|
|
550
578
|
});
|
|
551
579
|
}
|
|
552
|
-
|
|
580
|
+
Y.displayName = "AiFeedback";
|
|
553
581
|
//#endregion
|
|
554
582
|
//#region src/components/blocks/ai/ai-citation/types.ts
|
|
555
|
-
var
|
|
583
|
+
var X = {
|
|
556
584
|
title: "Sources",
|
|
557
585
|
sourceCount: (e) => e === 1 ? "1 source" : `${e} sources`,
|
|
558
586
|
hiddenCount: (e) => e === 1 ? "+1 more" : `+${e} more`,
|
|
@@ -563,66 +591,72 @@ var W = {
|
|
|
563
591
|
};
|
|
564
592
|
//#endregion
|
|
565
593
|
//#region src/components/blocks/ai/ai-citation/ai-citation.tsx
|
|
566
|
-
function
|
|
567
|
-
let
|
|
568
|
-
|
|
569
|
-
},
|
|
570
|
-
return /* @__PURE__ */
|
|
571
|
-
surface:
|
|
594
|
+
function Z({ sources: e, expanded: n, defaultExpanded: a = !1, onExpandedChange: o, maxCollapsedRows: l = 0, surface: d = "card", className: m, strings: g }) {
|
|
595
|
+
let _ = t(X, g), v = N(), y = N(), [b, x] = P(a), S = n ?? b, C = (e) => {
|
|
596
|
+
n === void 0 && x(e), o?.(e);
|
|
597
|
+
}, w = S ? e : e.slice(0, Math.max(0, l)), T = e.length - w.length, E = S || l > 0;
|
|
598
|
+
return /* @__PURE__ */ L(p, {
|
|
599
|
+
surface: d,
|
|
572
600
|
padding: "none",
|
|
573
601
|
contentGap: "none",
|
|
574
|
-
className:
|
|
575
|
-
children: [/* @__PURE__ */
|
|
602
|
+
className: r("ai-citation--component", m),
|
|
603
|
+
children: [/* @__PURE__ */ L(c, {
|
|
576
604
|
type: "button",
|
|
577
605
|
tone: "secondary",
|
|
578
606
|
buttonStyle: "ghost",
|
|
579
607
|
size: "sm",
|
|
580
|
-
onClick: () =>
|
|
581
|
-
className:
|
|
582
|
-
"aria-expanded":
|
|
583
|
-
"aria-
|
|
584
|
-
|
|
608
|
+
onClick: () => C(!S),
|
|
609
|
+
className: r("ai-citation--trigger h-auto min-h-0 w-full justify-start gap-space-sm rounded-radius border-0 px-surface-xs py-row-y text-left", `text-muted-foreground ${h.rowHover} ${s.inset}`),
|
|
610
|
+
"aria-expanded": S,
|
|
611
|
+
"aria-controls": y,
|
|
612
|
+
"aria-labelledby": v,
|
|
613
|
+
"aria-description": S ? g?.collapse : g?.expand,
|
|
614
|
+
children: [/* @__PURE__ */ L(i, {
|
|
615
|
+
id: v,
|
|
616
|
+
tag: "span",
|
|
585
617
|
type: "inherit",
|
|
586
618
|
weight: "medium",
|
|
587
619
|
children: [
|
|
588
|
-
|
|
620
|
+
_.title,
|
|
589
621
|
" · ",
|
|
590
|
-
|
|
622
|
+
_.sourceCount(e.length)
|
|
591
623
|
]
|
|
592
|
-
}),
|
|
593
|
-
}),
|
|
624
|
+
}), I(S ? Oe : ke, { className: "size-icon-md" })]
|
|
625
|
+
}), /* @__PURE__ */ I(u, {
|
|
626
|
+
id: y,
|
|
627
|
+
hidden: !E,
|
|
594
628
|
gap: "sm",
|
|
595
|
-
className: "ai-citation--list
|
|
596
|
-
children: [/* @__PURE__ */
|
|
629
|
+
className: r("ai-citation--list px-surface-xs py-row-y", f.footer, !E && "hidden"),
|
|
630
|
+
children: E && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(ee, { children: w.map((e, t) => /* @__PURE__ */ I(Ve, {
|
|
597
631
|
source: e,
|
|
598
632
|
index: t + 1,
|
|
599
|
-
strings:
|
|
600
|
-
}, e.id)) }), !
|
|
633
|
+
strings: _
|
|
634
|
+
}, e.id)) }), !S && T > 0 && /* @__PURE__ */ I(i, {
|
|
601
635
|
size: "xs",
|
|
602
636
|
type: "secondary",
|
|
603
637
|
className: "ai-citation--hidden-count",
|
|
604
|
-
children:
|
|
605
|
-
})]
|
|
638
|
+
children: _.hiddenCount(T)
|
|
639
|
+
})] })
|
|
606
640
|
})]
|
|
607
641
|
});
|
|
608
642
|
}
|
|
609
|
-
|
|
610
|
-
function Ve({ source: e, index: t, strings:
|
|
643
|
+
Z.displayName = "AiCitation";
|
|
644
|
+
function Ve({ source: e, index: t, strings: n }) {
|
|
611
645
|
let a = typeof e.relevance == "number" ? Math.round(Math.max(0, Math.min(1, e.relevance)) * 100) : null, o = e.url ? "a" : "span", s = e.url ? {
|
|
612
646
|
href: e.url,
|
|
613
647
|
target: "_blank",
|
|
614
648
|
rel: "noopener noreferrer"
|
|
615
649
|
} : {};
|
|
616
|
-
return /* @__PURE__ */
|
|
650
|
+
return /* @__PURE__ */ L(A, {
|
|
617
651
|
size: "sm",
|
|
618
652
|
className: "items-start",
|
|
619
653
|
children: [
|
|
620
|
-
/* @__PURE__ */
|
|
654
|
+
/* @__PURE__ */ I(E, { children: /* @__PURE__ */ I(S, {
|
|
621
655
|
tone: "neutral",
|
|
622
656
|
size: "sm",
|
|
623
657
|
"aria-hidden": !1,
|
|
624
658
|
className: "shrink-0",
|
|
625
|
-
children: /* @__PURE__ */
|
|
659
|
+
children: /* @__PURE__ */ I(x, {
|
|
626
660
|
value: t,
|
|
627
661
|
size: "xs",
|
|
628
662
|
weight: "semibold",
|
|
@@ -630,33 +664,33 @@ function Ve({ source: e, index: t, strings: r }) {
|
|
|
630
664
|
align: "center"
|
|
631
665
|
})
|
|
632
666
|
}) }),
|
|
633
|
-
/* @__PURE__ */
|
|
634
|
-
/* @__PURE__ */
|
|
667
|
+
/* @__PURE__ */ L(k, { children: [
|
|
668
|
+
/* @__PURE__ */ I(j, {
|
|
635
669
|
className: "truncate",
|
|
636
|
-
children: /* @__PURE__ */
|
|
670
|
+
children: /* @__PURE__ */ L(o, {
|
|
637
671
|
...s,
|
|
638
|
-
className:
|
|
639
|
-
children: [e.title, !!e.url && /* @__PURE__ */
|
|
672
|
+
className: r("truncate", e.url && "hover:text-primary-accent hover:underline"),
|
|
673
|
+
children: [e.title, !!e.url && /* @__PURE__ */ I(R, { className: "ml-1 inline size-icon-sm align-baseline" })]
|
|
640
674
|
})
|
|
641
675
|
}),
|
|
642
|
-
!!e.snippet && /* @__PURE__ */
|
|
676
|
+
!!e.snippet && /* @__PURE__ */ I(D, {
|
|
643
677
|
clamp: 2,
|
|
644
678
|
children: e.snippet
|
|
645
679
|
}),
|
|
646
|
-
(e.publisher || e.publishedAt) && /* @__PURE__ */
|
|
680
|
+
(e.publisher || e.publishedAt) && /* @__PURE__ */ L(T, {
|
|
647
681
|
className: "mt-1 justify-start gap-space-sm",
|
|
648
682
|
children: [
|
|
649
|
-
!!e.publisher && /* @__PURE__ */
|
|
683
|
+
!!e.publisher && /* @__PURE__ */ I(i, {
|
|
650
684
|
size: "xs",
|
|
651
685
|
type: "discrete",
|
|
652
686
|
children: e.publisher
|
|
653
687
|
}),
|
|
654
|
-
!!e.publisher && !!e.publishedAt && /* @__PURE__ */
|
|
688
|
+
!!e.publisher && !!e.publishedAt && /* @__PURE__ */ I(i, {
|
|
655
689
|
size: "xs",
|
|
656
690
|
type: "discrete",
|
|
657
691
|
children: "·"
|
|
658
692
|
}),
|
|
659
|
-
!!e.publishedAt && /* @__PURE__ */
|
|
693
|
+
!!e.publishedAt && /* @__PURE__ */ I(v, {
|
|
660
694
|
size: "xs",
|
|
661
695
|
className: "tabular-nums",
|
|
662
696
|
children: e.publishedAt
|
|
@@ -664,18 +698,18 @@ function Ve({ source: e, index: t, strings: r }) {
|
|
|
664
698
|
]
|
|
665
699
|
})
|
|
666
700
|
] }),
|
|
667
|
-
a !== null && /* @__PURE__ */
|
|
701
|
+
a !== null && /* @__PURE__ */ L(O, {
|
|
668
702
|
className: "w-16 flex-col items-end gap-space-2xs",
|
|
669
|
-
children: [/* @__PURE__ */
|
|
703
|
+
children: [/* @__PURE__ */ I(b, {
|
|
670
704
|
value: a,
|
|
671
705
|
scaled: !0,
|
|
672
706
|
size: "xs",
|
|
673
707
|
type: "secondary",
|
|
674
708
|
weight: "medium"
|
|
675
|
-
}), /* @__PURE__ */
|
|
709
|
+
}), /* @__PURE__ */ I(m, {
|
|
676
710
|
value: a,
|
|
677
711
|
size: "sm",
|
|
678
|
-
"aria-label":
|
|
712
|
+
"aria-label": n.relevance,
|
|
679
713
|
className: "ai-citation--relevance"
|
|
680
714
|
})]
|
|
681
715
|
})
|
|
@@ -684,72 +718,76 @@ function Ve({ source: e, index: t, strings: r }) {
|
|
|
684
718
|
}
|
|
685
719
|
//#endregion
|
|
686
720
|
//#region src/components/blocks/ai/ai-inline-citation/types.ts
|
|
687
|
-
var
|
|
721
|
+
var He = {
|
|
688
722
|
sourcePrefix: "Source",
|
|
689
723
|
openAria: "Open source {{n}}: {{title}}"
|
|
690
724
|
};
|
|
691
725
|
//#endregion
|
|
692
726
|
//#region src/components/blocks/ai/ai-inline-citation/ai-inline-citation.tsx
|
|
693
|
-
function
|
|
727
|
+
function Ue(e, t) {
|
|
694
728
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
695
729
|
let r = t[n];
|
|
696
730
|
return r === void 0 ? e : String(r);
|
|
697
731
|
});
|
|
698
732
|
}
|
|
699
|
-
function
|
|
700
|
-
let d =
|
|
701
|
-
n:
|
|
702
|
-
title:
|
|
703
|
-
}),
|
|
704
|
-
return a ? /* @__PURE__ */
|
|
733
|
+
function We({ index: e, title: n, url: a, onSelect: c, className: l, strings: u }) {
|
|
734
|
+
let d = t(He, u), f = Ue(d.openAria, {
|
|
735
|
+
n: e,
|
|
736
|
+
title: n ?? ""
|
|
737
|
+
}), p = n ? `${d.sourcePrefix} ${e}: ${n}` : `${d.sourcePrefix} ${e}`, m = r("box-border inline-flex h-action-xs min-w-action-xs -translate-y-px items-center justify-center rounded-radius border-0 px-control-xs font-sans", "align-middle tabular-nums", "bg-muted text-muted-foreground", h.rowHover, "transition-colors duration-150", `focus-visible:outline-none ${s.edge}`, l);
|
|
738
|
+
return a ? /* @__PURE__ */ I(o, {
|
|
705
739
|
href: a,
|
|
706
740
|
size: "inherit",
|
|
707
741
|
underline: !1,
|
|
708
742
|
target: "_blank",
|
|
709
743
|
rel: "noopener noreferrer",
|
|
710
|
-
|
|
744
|
+
onClick: c,
|
|
745
|
+
title: p,
|
|
711
746
|
"aria-label": f,
|
|
712
|
-
className:
|
|
713
|
-
children: /* @__PURE__ */
|
|
747
|
+
className: r("ai-inline-citation--component", m),
|
|
748
|
+
children: /* @__PURE__ */ I(i, {
|
|
714
749
|
type: "inherit",
|
|
715
750
|
tag: "span",
|
|
716
751
|
size: "xs",
|
|
717
752
|
weight: "medium",
|
|
718
753
|
lineHeight: "none",
|
|
719
|
-
children:
|
|
754
|
+
children: e
|
|
720
755
|
})
|
|
721
|
-
}) : c ? /* @__PURE__ */
|
|
756
|
+
}) : c ? /* @__PURE__ */ I("button", {
|
|
722
757
|
type: "button",
|
|
723
758
|
onClick: c,
|
|
724
|
-
title:
|
|
759
|
+
title: p,
|
|
725
760
|
"aria-label": f,
|
|
726
|
-
className:
|
|
727
|
-
children: /* @__PURE__ */
|
|
761
|
+
className: r("ai-inline-citation--component", m),
|
|
762
|
+
children: /* @__PURE__ */ I(i, {
|
|
728
763
|
type: "inherit",
|
|
729
764
|
tag: "span",
|
|
730
765
|
size: "xs",
|
|
731
766
|
weight: "medium",
|
|
732
767
|
lineHeight: "none",
|
|
733
|
-
children:
|
|
768
|
+
children: e
|
|
734
769
|
})
|
|
735
|
-
}) : /* @__PURE__ */
|
|
736
|
-
title:
|
|
737
|
-
"
|
|
738
|
-
|
|
739
|
-
children: /* @__PURE__ */ A(i, {
|
|
770
|
+
}) : /* @__PURE__ */ L("span", {
|
|
771
|
+
title: p,
|
|
772
|
+
className: r("ai-inline-citation--component", m),
|
|
773
|
+
children: [/* @__PURE__ */ I(i, {
|
|
740
774
|
type: "inherit",
|
|
741
775
|
tag: "span",
|
|
742
776
|
size: "xs",
|
|
743
777
|
weight: "medium",
|
|
744
778
|
lineHeight: "none",
|
|
745
|
-
|
|
746
|
-
|
|
779
|
+
"aria-hidden": "true",
|
|
780
|
+
children: e
|
|
781
|
+
}), /* @__PURE__ */ I("span", {
|
|
782
|
+
className: "sr-only",
|
|
783
|
+
children: p
|
|
784
|
+
})]
|
|
747
785
|
});
|
|
748
786
|
}
|
|
749
|
-
|
|
787
|
+
We.displayName = "AiInlineCitation";
|
|
750
788
|
//#endregion
|
|
751
789
|
//#region src/components/blocks/ai/ai-package-info/types.ts
|
|
752
|
-
var
|
|
790
|
+
var Ge = {
|
|
753
791
|
versionLabel: "Version",
|
|
754
792
|
licenseLabel: "License",
|
|
755
793
|
publishedLabel: "Published",
|
|
@@ -761,139 +799,139 @@ var J = {
|
|
|
761
799
|
};
|
|
762
800
|
//#endregion
|
|
763
801
|
//#region src/components/blocks/ai/ai-package-info/ai-package-info.tsx
|
|
764
|
-
function
|
|
765
|
-
let
|
|
802
|
+
function Ke({ name: t, version: a, description: s, license: l, publishedAt: d, homepage: f, repository: m, weeklyDownloads: _, keywords: v, onSelect: b, surface: x = "card", className: S, strings: w }) {
|
|
803
|
+
let T = n(Ge, w), { locale: E } = e(), D = /* @__PURE__ */ L(u, {
|
|
766
804
|
gap: "md",
|
|
767
805
|
className: "min-w-0 flex-1",
|
|
768
806
|
children: [
|
|
769
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ L(u, {
|
|
770
808
|
gap: "dense",
|
|
771
|
-
children: [/* @__PURE__ */
|
|
809
|
+
children: [/* @__PURE__ */ L(u, {
|
|
772
810
|
direction: "horizontal",
|
|
773
811
|
gap: "md",
|
|
774
812
|
align: "center",
|
|
775
|
-
children: [/* @__PURE__ */
|
|
813
|
+
children: [/* @__PURE__ */ I(y, {
|
|
776
814
|
type: "inherit",
|
|
777
815
|
weight: "semibold",
|
|
778
816
|
className: "truncate",
|
|
779
|
-
children:
|
|
780
|
-
}), !!a && /* @__PURE__ */
|
|
817
|
+
children: t
|
|
818
|
+
}), !!a && /* @__PURE__ */ I(C, {
|
|
781
819
|
tone: "secondary",
|
|
782
|
-
children: /* @__PURE__ */
|
|
820
|
+
children: /* @__PURE__ */ L(y, {
|
|
783
821
|
size: "xs",
|
|
784
822
|
className: "text-inherit",
|
|
785
823
|
children: ["v", a.replace(/^v/, "")]
|
|
786
824
|
})
|
|
787
825
|
})]
|
|
788
|
-
}), !!s && /* @__PURE__ */
|
|
826
|
+
}), !!s && /* @__PURE__ */ I(i, {
|
|
789
827
|
size: "xs",
|
|
790
828
|
type: "secondary",
|
|
791
829
|
className: "line-clamp-2",
|
|
792
830
|
children: s
|
|
793
831
|
})]
|
|
794
832
|
}),
|
|
795
|
-
(
|
|
833
|
+
(l || d || _ !== void 0) && /* @__PURE__ */ L("div", {
|
|
796
834
|
className: "ai-package-info--meta flex flex-wrap items-center gap-x-space-lg gap-y-space-xs",
|
|
797
835
|
children: [
|
|
798
|
-
!!
|
|
799
|
-
label:
|
|
800
|
-
value:
|
|
836
|
+
!!l && /* @__PURE__ */ I(Q, {
|
|
837
|
+
label: T.licenseLabel,
|
|
838
|
+
value: l
|
|
801
839
|
}),
|
|
802
|
-
!!
|
|
803
|
-
label:
|
|
804
|
-
value:
|
|
840
|
+
!!d && /* @__PURE__ */ I(Q, {
|
|
841
|
+
label: T.publishedLabel,
|
|
842
|
+
value: d
|
|
805
843
|
}),
|
|
806
|
-
|
|
807
|
-
label:
|
|
808
|
-
value:
|
|
844
|
+
_ !== void 0 && /* @__PURE__ */ I(Q, {
|
|
845
|
+
label: T.weeklyDownloadsLabel,
|
|
846
|
+
value: typeof _ == "number" ? g(_, { locale: E }) : _
|
|
809
847
|
})
|
|
810
848
|
]
|
|
811
849
|
}),
|
|
812
|
-
!!
|
|
850
|
+
!!v?.length && /* @__PURE__ */ I(u, {
|
|
813
851
|
direction: "horizontal",
|
|
814
852
|
gap: "xs",
|
|
815
853
|
className: "ai-package-info--keywords",
|
|
816
|
-
children:
|
|
854
|
+
children: v.slice(0, 6).map((e) => /* @__PURE__ */ I(C, {
|
|
817
855
|
tone: "secondary",
|
|
818
856
|
children: e
|
|
819
857
|
}, e))
|
|
820
858
|
})
|
|
821
859
|
]
|
|
822
|
-
}),
|
|
823
|
-
return /* @__PURE__ */
|
|
824
|
-
surface:
|
|
860
|
+
}), O = "ai-package-info--body flex w-full items-start gap-space-lg p-surface-xs text-left";
|
|
861
|
+
return /* @__PURE__ */ L(p, {
|
|
862
|
+
surface: x,
|
|
825
863
|
padding: "none",
|
|
826
|
-
className:
|
|
827
|
-
children: [
|
|
864
|
+
className: r("ai-package-info--component", S),
|
|
865
|
+
children: [b ? /* @__PURE__ */ I(c, {
|
|
828
866
|
type: "button",
|
|
829
867
|
tone: "secondary",
|
|
830
868
|
buttonStyle: "ghost",
|
|
831
|
-
onClick:
|
|
832
|
-
className:
|
|
833
|
-
children:
|
|
834
|
-
}) : /* @__PURE__ */
|
|
835
|
-
className:
|
|
836
|
-
children:
|
|
837
|
-
}), (f || m) && /* @__PURE__ */
|
|
869
|
+
onClick: b,
|
|
870
|
+
className: r(O, `h-auto min-h-0 justify-start rounded-none whitespace-normal transition-colors ${h.rowHover}`),
|
|
871
|
+
children: D
|
|
872
|
+
}) : /* @__PURE__ */ I("div", {
|
|
873
|
+
className: O,
|
|
874
|
+
children: D
|
|
875
|
+
}), (f || m) && /* @__PURE__ */ I("div", {
|
|
838
876
|
className: "ai-package-info--footer px-surface-xs pb-surface-xs",
|
|
839
|
-
children: /* @__PURE__ */
|
|
877
|
+
children: /* @__PURE__ */ L(u, {
|
|
840
878
|
direction: "horizontal",
|
|
841
879
|
align: "center",
|
|
842
880
|
gap: "md",
|
|
843
881
|
children: [
|
|
844
|
-
!!f && /* @__PURE__ */
|
|
882
|
+
!!f && /* @__PURE__ */ L(o, {
|
|
845
883
|
href: f,
|
|
846
884
|
size: "inherit",
|
|
847
885
|
underline: !1,
|
|
848
886
|
target: "_blank",
|
|
849
887
|
rel: "noopener noreferrer",
|
|
850
888
|
onClick: (e) => e.stopPropagation(),
|
|
851
|
-
"aria-label":
|
|
889
|
+
"aria-label": T.homepageAria,
|
|
852
890
|
className: "inline-flex items-center gap-space-xs rounded-radius-xs text-muted-foreground hover:text-foreground",
|
|
853
|
-
children: [/* @__PURE__ */
|
|
891
|
+
children: [/* @__PURE__ */ I(i, {
|
|
854
892
|
type: "inherit",
|
|
855
893
|
tag: "span",
|
|
856
894
|
weight: "medium",
|
|
857
|
-
children:
|
|
858
|
-
}), /* @__PURE__ */
|
|
895
|
+
children: T.homepageLabel
|
|
896
|
+
}), /* @__PURE__ */ I(R, { className: "size-icon-sm" })]
|
|
859
897
|
}),
|
|
860
|
-
!!f && !!m && /* @__PURE__ */
|
|
898
|
+
!!f && !!m && /* @__PURE__ */ I(i, {
|
|
861
899
|
tag: "span",
|
|
862
900
|
size: "xs",
|
|
863
901
|
type: "secondary",
|
|
864
902
|
"aria-hidden": !0,
|
|
865
903
|
children: "·"
|
|
866
904
|
}),
|
|
867
|
-
!!m && /* @__PURE__ */
|
|
905
|
+
!!m && /* @__PURE__ */ L(o, {
|
|
868
906
|
href: m,
|
|
869
907
|
size: "inherit",
|
|
870
908
|
underline: !1,
|
|
871
909
|
target: "_blank",
|
|
872
910
|
rel: "noopener noreferrer",
|
|
873
911
|
onClick: (e) => e.stopPropagation(),
|
|
874
|
-
"aria-label":
|
|
912
|
+
"aria-label": T.repositoryAria,
|
|
875
913
|
className: "inline-flex items-center gap-space-xs rounded-radius-xs text-muted-foreground hover:text-foreground",
|
|
876
|
-
children: [/* @__PURE__ */
|
|
914
|
+
children: [/* @__PURE__ */ I(i, {
|
|
877
915
|
type: "inherit",
|
|
878
916
|
tag: "span",
|
|
879
917
|
weight: "medium",
|
|
880
|
-
children:
|
|
881
|
-
}), /* @__PURE__ */
|
|
918
|
+
children: T.repositoryLabel
|
|
919
|
+
}), /* @__PURE__ */ I(R, { className: "size-icon-sm" })]
|
|
882
920
|
})
|
|
883
921
|
]
|
|
884
922
|
})
|
|
885
923
|
})]
|
|
886
924
|
});
|
|
887
925
|
}
|
|
888
|
-
|
|
889
|
-
function
|
|
890
|
-
return /* @__PURE__ */
|
|
926
|
+
Ke.displayName = "AiPackageInfo";
|
|
927
|
+
function Q({ label: e, value: t }) {
|
|
928
|
+
return /* @__PURE__ */ L("div", {
|
|
891
929
|
className: "inline-flex items-baseline gap-space-xs",
|
|
892
|
-
children: [/* @__PURE__ */
|
|
930
|
+
children: [/* @__PURE__ */ I(i, {
|
|
893
931
|
size: "xs",
|
|
894
932
|
type: "discrete",
|
|
895
933
|
children: e
|
|
896
|
-
}), /* @__PURE__ */
|
|
934
|
+
}), /* @__PURE__ */ I(v, {
|
|
897
935
|
size: "xs",
|
|
898
936
|
weight: "medium",
|
|
899
937
|
className: "tabular-nums",
|
|
@@ -903,7 +941,7 @@ function X({ label: e, value: t }) {
|
|
|
903
941
|
}
|
|
904
942
|
//#endregion
|
|
905
943
|
//#region src/components/blocks/ai/ai-file-tree/types.ts
|
|
906
|
-
var
|
|
944
|
+
var qe = {
|
|
907
945
|
treeAria: "Files",
|
|
908
946
|
expandAria: "Expand directory",
|
|
909
947
|
collapseAria: "Collapse directory",
|
|
@@ -913,18 +951,18 @@ var Z = {
|
|
|
913
951
|
removed: "D",
|
|
914
952
|
renamed: "R"
|
|
915
953
|
}
|
|
916
|
-
},
|
|
954
|
+
}, Je = {
|
|
917
955
|
added: "success",
|
|
918
956
|
modified: "warning",
|
|
919
957
|
removed: "destructive",
|
|
920
958
|
renamed: "info"
|
|
921
|
-
},
|
|
959
|
+
}, Ye = {
|
|
922
960
|
added: "text-success",
|
|
923
961
|
modified: "text-warning-accent",
|
|
924
962
|
removed: "text-destructive",
|
|
925
963
|
renamed: "text-info"
|
|
926
964
|
};
|
|
927
|
-
function
|
|
965
|
+
function Xe(e) {
|
|
928
966
|
let t = e.split(".").pop()?.toLowerCase() ?? "";
|
|
929
967
|
return [
|
|
930
968
|
"ts",
|
|
@@ -947,40 +985,46 @@ function Ge(e) {
|
|
|
947
985
|
"txt"
|
|
948
986
|
].includes(t) ? Me : Ae;
|
|
949
987
|
}
|
|
950
|
-
function
|
|
951
|
-
return e.flatMap((e) => [...e.kind === "directory" && (e.defaultExpanded ?? t < 1) ? [e.id] : [], ...
|
|
988
|
+
function Ze(e, t = 0) {
|
|
989
|
+
return e.flatMap((e) => [...e.kind === "directory" && (e.defaultExpanded ?? t < 1) ? [e.id] : [], ...Ze(e.children ?? [], t + 1)]);
|
|
952
990
|
}
|
|
953
|
-
function $({ nodes: e, selectedId:
|
|
954
|
-
let
|
|
991
|
+
function $({ nodes: e, selectedId: t, onSelect: i, hideStatusLabels: a = !1, indent: o, density: s = "compact", disabled: c, expandedIds: l, defaultExpandedIds: d, onExpandedIdsChange: f, className: p, strings: m, ...h }) {
|
|
992
|
+
let g = n(qe, m), [_, b] = P(() => d ?? Ze(e)), x = l ?? _, S = Ee(() => {
|
|
955
993
|
function t(e) {
|
|
956
994
|
return e.map((e) => {
|
|
957
|
-
let
|
|
995
|
+
let n = e.kind === "directory", i = e.icon ?? (n ? x.includes(e.id) ? Pe : Ne : Xe(e.name));
|
|
958
996
|
return {
|
|
959
997
|
value: e.id,
|
|
960
998
|
label: e.name,
|
|
961
999
|
data: e,
|
|
962
1000
|
disabled: e.disabled,
|
|
963
|
-
hasChildren:
|
|
964
|
-
children:
|
|
965
|
-
icon: /* @__PURE__ */
|
|
1001
|
+
hasChildren: n,
|
|
1002
|
+
children: n ? t(e.children ?? []) : void 0,
|
|
1003
|
+
icon: /* @__PURE__ */ I(i, {
|
|
966
1004
|
"aria-hidden": "true",
|
|
967
|
-
className:
|
|
1005
|
+
className: r("size-icon", a && e.status && Ye[e.status])
|
|
968
1006
|
}),
|
|
969
|
-
trailing: /* @__PURE__ */
|
|
1007
|
+
trailing: /* @__PURE__ */ L(u, {
|
|
970
1008
|
direction: "horizontal",
|
|
971
1009
|
gap: "xs",
|
|
972
1010
|
align: "center",
|
|
973
1011
|
className: "shrink-0",
|
|
974
|
-
children: [
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1012
|
+
children: [
|
|
1013
|
+
e.status && !a && /* @__PURE__ */ I(C, {
|
|
1014
|
+
tone: Je[e.status],
|
|
1015
|
+
size: "sm",
|
|
1016
|
+
children: g.statusLabels[e.status]
|
|
1017
|
+
}),
|
|
1018
|
+
e.status && a && /* @__PURE__ */ I("span", {
|
|
1019
|
+
className: "sr-only",
|
|
1020
|
+
children: g.statusLabels[e.status]
|
|
1021
|
+
}),
|
|
1022
|
+
e.trailing != null && /* @__PURE__ */ I(v, {
|
|
1023
|
+
size: "xs",
|
|
1024
|
+
className: "tabular-nums",
|
|
1025
|
+
children: e.trailing
|
|
1026
|
+
})
|
|
1027
|
+
]
|
|
984
1028
|
})
|
|
985
1029
|
};
|
|
986
1030
|
});
|
|
@@ -988,41 +1032,41 @@ function $({ nodes: e, selectedId: r, onSelect: i, hideStatusLabels: a = !1, ind
|
|
|
988
1032
|
return t(e);
|
|
989
1033
|
}, [
|
|
990
1034
|
e,
|
|
991
|
-
|
|
1035
|
+
x,
|
|
992
1036
|
a,
|
|
993
|
-
|
|
1037
|
+
g.statusLabels
|
|
994
1038
|
]);
|
|
995
|
-
return /* @__PURE__ */
|
|
996
|
-
...
|
|
997
|
-
"aria-label":
|
|
998
|
-
items:
|
|
999
|
-
selectedValues:
|
|
1000
|
-
expandedValues:
|
|
1039
|
+
return /* @__PURE__ */ I(we, {
|
|
1040
|
+
...h,
|
|
1041
|
+
"aria-label": h["aria-label"] ?? g.treeAria,
|
|
1042
|
+
items: S,
|
|
1043
|
+
selectedValues: t === void 0 ? [] : [t],
|
|
1044
|
+
expandedValues: x,
|
|
1001
1045
|
branchActivation: "toggle",
|
|
1002
1046
|
density: s,
|
|
1003
1047
|
disabled: c,
|
|
1004
1048
|
indent: o,
|
|
1005
1049
|
strings: {
|
|
1006
|
-
expand: (e) => `${
|
|
1007
|
-
collapse: (e) => `${
|
|
1050
|
+
expand: (e) => `${g.expandAria}: ${e}`,
|
|
1051
|
+
collapse: (e) => `${g.collapseAria}: ${e}`
|
|
1008
1052
|
},
|
|
1009
1053
|
onExpandedValuesChange: (e, t) => {
|
|
1010
|
-
|
|
1054
|
+
l === void 0 && b(e), f?.(e, t.data);
|
|
1011
1055
|
},
|
|
1012
1056
|
onSelectedValuesChange: (e, t) => {
|
|
1013
1057
|
t.data?.kind === "file" && i?.(t.data);
|
|
1014
1058
|
},
|
|
1015
|
-
renderLabel: (e) => /* @__PURE__ */
|
|
1059
|
+
renderLabel: (e) => /* @__PURE__ */ I(y, {
|
|
1016
1060
|
size: "inherit",
|
|
1017
1061
|
weight: "regular",
|
|
1018
|
-
className:
|
|
1062
|
+
className: r("ai-file-tree--name text-inherit wrap-anywhere", e.data?.status === "removed" && "line-through"),
|
|
1019
1063
|
children: e.label
|
|
1020
1064
|
}),
|
|
1021
|
-
className:
|
|
1065
|
+
className: r("ai-file-tree--component", p)
|
|
1022
1066
|
});
|
|
1023
1067
|
}
|
|
1024
1068
|
$.displayName = "AiFileTree";
|
|
1025
1069
|
//#endregion
|
|
1026
|
-
export {
|
|
1070
|
+
export { ge as AiAgent, ye as AiArtifact, ue as AiAttachment, ie as AiChainOfThought, Z as AiCitation, ze as AiClassificationPanel, re as AiCodeBlock, U as AiConfidence, se as AiConfirmation, Y as AiFeedback, $ as AiFileTree, We as AiInlineCitation, ne as AiMessageBubble, Ke as AiPackageInfo, G as AiPromptSuggestions, ve as AiReasoning, Ce as AiShimmer, fe as AiSources, Re as AiSummaryBlock, _e as AiTask, q as AiTokenUsage, ae as AiToolCall, pe as defaultAiAgentStrings, me as defaultAiArtifactStrings, le as defaultAiAttachmentStrings, he as defaultAiChainOfThoughtStrings, X as defaultAiCitationStrings, xe as defaultAiCodeBlockStrings, H as defaultAiConfidenceStrings, ce as defaultAiConfirmationStrings, J as defaultAiFeedbackStrings, qe as defaultAiFileTreeStrings, He as defaultAiInlineCitationStrings, te as defaultAiMessageBubbleStrings, Ge as defaultAiPackageInfoStrings, W as defaultAiPromptSuggestionsStrings, oe as defaultAiReasoningStrings, be as defaultAiSourcesStrings, de as defaultAiTaskStrings, K as defaultAiTokenUsageStrings, Se as defaultAiToolCallStrings };
|
|
1027
1071
|
|
|
1028
1072
|
//# sourceMappingURL=ai.js.map
|