themelia-react-ui 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useStrings as e } from "./lib/strings.js";
|
|
3
|
+
import { t } from "./utils-BRhFDwuU.js";
|
|
4
|
+
import { n } from "./buttons-DPZekJFu.js";
|
|
5
|
+
import { c as r, o as i, t as a } from "./typography-UTnveOEy.js";
|
|
6
|
+
import { t as o } from "./focus-recipes-B653VaLq.js";
|
|
7
|
+
import { t as s } from "./structure-BmisBK-3.js";
|
|
8
|
+
import { a as c } from "./surface-recipes-BKRVW8Os.js";
|
|
9
|
+
import { i as l, n as u, r as d, t as f } from "./popover.recipes-D3j8R8Yp.js";
|
|
10
|
+
import { t as p } from "./interaction-recipes-XR9ZpVYL.js";
|
|
11
|
+
import { t as m } from "./sanitize-html-DsQmI48u.js";
|
|
12
|
+
import { t as h } from "./content-typography-CnwgMJ37.js";
|
|
13
|
+
import { t as g } from "./badge-HpFqoqSY.js";
|
|
14
|
+
import { a as _, i as v, n as y, o as b, r as x, t as S } from "./command-C25VMRII.js";
|
|
15
|
+
import { i as C, t as w } from "./popover-7_m66eYW.js";
|
|
16
|
+
import { t as T } from "./use-debounced-callback-Cx1h-hdv.js";
|
|
17
|
+
import { Fragment as E, useCallback as D, useEffect as O, useMemo as k, useRef as A, useState as j } from "react";
|
|
18
|
+
import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
19
|
+
import { Loader2 as F } from "lucide-react";
|
|
20
|
+
//#region src/components/features/mentions/hooks/use-mentions-search.ts
|
|
21
|
+
function I(e) {
|
|
22
|
+
return !!(e && e.name === "AbortError");
|
|
23
|
+
}
|
|
24
|
+
function L(e = {}) {
|
|
25
|
+
let { resources: t, onResourceSearch: n, initialMentions: r, debounceMs: i = 300, onError: a } = e, o = JSON.stringify(Object.keys(t ?? {})), s = k(() => JSON.parse(o), [o]), [c, l] = j(() => s[0] ?? null), [u, d] = j(!1), [f, p] = j(""), [m, h] = j({}), [g, _] = j(!1), [v, y] = j(null), [b, x] = j({}), [S, C] = j(0), [w, E] = j(() => r ? [...r] : []), M = A(0), N = A(null), P = A(t), F = A(n), L = A(a);
|
|
26
|
+
P.current = t, F.current = n, L.current = a, O(() => {
|
|
27
|
+
if (s.length === 0) {
|
|
28
|
+
l(null);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
(!c || !s.includes(c)) && l(s[0]);
|
|
32
|
+
}, [c, s]);
|
|
33
|
+
let R = k(() => c && t ? t[c] ?? null : null, [c, t]), z = D(async (e, t, n) => {
|
|
34
|
+
let r = P.current?.[e];
|
|
35
|
+
if (r?.search) return (await r.search(t, {
|
|
36
|
+
kind: e,
|
|
37
|
+
signal: n
|
|
38
|
+
})).map((t) => ({
|
|
39
|
+
...t,
|
|
40
|
+
kind: e
|
|
41
|
+
}));
|
|
42
|
+
if (r?.suggestions) {
|
|
43
|
+
let n = r.suggestions;
|
|
44
|
+
return (t.trim().length === 0 ? n : n.filter((e) => e.label.toLowerCase().includes(t.toLowerCase()))).map((t) => ({
|
|
45
|
+
...t,
|
|
46
|
+
kind: e
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
return F.current ? (await F.current(t, e, {
|
|
50
|
+
kind: e,
|
|
51
|
+
signal: n
|
|
52
|
+
})).map((t) => ({
|
|
53
|
+
...t,
|
|
54
|
+
kind: e
|
|
55
|
+
})) : [];
|
|
56
|
+
}, []), B = T((e, t, n, r) => {
|
|
57
|
+
(async () => {
|
|
58
|
+
_(!0);
|
|
59
|
+
try {
|
|
60
|
+
let i = await Promise.all(e.map(async (e) => {
|
|
61
|
+
try {
|
|
62
|
+
return {
|
|
63
|
+
kind: e,
|
|
64
|
+
list: await z(e, t, r),
|
|
65
|
+
error: null
|
|
66
|
+
};
|
|
67
|
+
} catch (t) {
|
|
68
|
+
return {
|
|
69
|
+
kind: e,
|
|
70
|
+
list: [],
|
|
71
|
+
error: t
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}));
|
|
75
|
+
if (n !== M.current || r.aborted) return;
|
|
76
|
+
let a = {}, o = {}, s = null;
|
|
77
|
+
for (let e of i) a[e.kind] = e.list, e.error !== null && !I(e.error) && (o[e.kind] = e.error, s ??= e.error, L.current?.(e.error, {
|
|
78
|
+
query: t,
|
|
79
|
+
kind: e.kind
|
|
80
|
+
}));
|
|
81
|
+
h(a), x(o), y(s);
|
|
82
|
+
} finally {
|
|
83
|
+
n === M.current && !r.aborted && _(!1);
|
|
84
|
+
}
|
|
85
|
+
})();
|
|
86
|
+
}, i);
|
|
87
|
+
O(() => {
|
|
88
|
+
let e = new AbortController();
|
|
89
|
+
N.current = e;
|
|
90
|
+
let t = () => {
|
|
91
|
+
e.abort(), N.current === e && (N.current = null);
|
|
92
|
+
};
|
|
93
|
+
if (s.length === 0) return h({}), _(!1), y(null), x({}), t;
|
|
94
|
+
let n = ++M.current;
|
|
95
|
+
return y(null), x({}), B(s, f, n, e.signal), () => {
|
|
96
|
+
B.cancel(), t();
|
|
97
|
+
};
|
|
98
|
+
}, [
|
|
99
|
+
s,
|
|
100
|
+
f,
|
|
101
|
+
S,
|
|
102
|
+
B
|
|
103
|
+
]);
|
|
104
|
+
let V = D(() => {
|
|
105
|
+
C((e) => e + 1);
|
|
106
|
+
}, []);
|
|
107
|
+
O(() => {
|
|
108
|
+
if (u || !c || (m[c] ?? []).length > 0) return;
|
|
109
|
+
let e = s.find((e) => (m[e]?.length ?? 0) > 0);
|
|
110
|
+
e && e !== c && l(e);
|
|
111
|
+
}, [
|
|
112
|
+
c,
|
|
113
|
+
s,
|
|
114
|
+
u,
|
|
115
|
+
m
|
|
116
|
+
]);
|
|
117
|
+
let H = D((e) => {
|
|
118
|
+
l(e);
|
|
119
|
+
}, []), U = D((e) => {
|
|
120
|
+
p(e);
|
|
121
|
+
}, []), W = D((e) => {
|
|
122
|
+
E((t) => t.some((t) => t.id === e.id) ? t : [...t, e]);
|
|
123
|
+
}, []), G = D((e) => {
|
|
124
|
+
E((t) => t.filter((t) => t.id !== e));
|
|
125
|
+
}, []), K = D((e) => {
|
|
126
|
+
E([...e]);
|
|
127
|
+
}, []), q = D(() => {
|
|
128
|
+
N.current?.abort(), E([]), p(""), d(!1), h({}), _(!1), y(null), x({}), M.current++;
|
|
129
|
+
}, []), J = D((e) => {
|
|
130
|
+
let n = e.kind ?? c, r = `${n}:${e.id}`, i = t?.[n], a = e.href ?? i?.buildHref?.(e), o = {
|
|
131
|
+
id: r,
|
|
132
|
+
kind: n,
|
|
133
|
+
label: e.label,
|
|
134
|
+
href: a,
|
|
135
|
+
data: e.data
|
|
136
|
+
};
|
|
137
|
+
return W(o), o;
|
|
138
|
+
}, [
|
|
139
|
+
c,
|
|
140
|
+
W,
|
|
141
|
+
t
|
|
142
|
+
]);
|
|
143
|
+
return {
|
|
144
|
+
kinds: s,
|
|
145
|
+
activeKind: c,
|
|
146
|
+
setActiveKind: H,
|
|
147
|
+
activeResource: R,
|
|
148
|
+
query: f,
|
|
149
|
+
setQuery: U,
|
|
150
|
+
suggestions: k(() => c ? m[c] ?? [] : [], [c, m]),
|
|
151
|
+
suggestionsByKind: m,
|
|
152
|
+
isLoading: g,
|
|
153
|
+
error: v,
|
|
154
|
+
isError: v !== null,
|
|
155
|
+
errorsByKind: b,
|
|
156
|
+
retry: V,
|
|
157
|
+
mentions: w,
|
|
158
|
+
addMention: W,
|
|
159
|
+
removeMention: G,
|
|
160
|
+
setMentions: K,
|
|
161
|
+
reset: q,
|
|
162
|
+
selectSuggestion: J,
|
|
163
|
+
manualKindOverride: u,
|
|
164
|
+
setManualKindOverride: d
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
//#region src/components/features/mentions/utils/build-mention-html.ts
|
|
169
|
+
function R(e, t) {
|
|
170
|
+
let n = String(e.label ?? "").replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), r = String(e.id).replace(/"/g, """), i = String(e.kind).replace(/"/g, """), a = t?.tone ? String(t.tone).replace(/"/g, """) : "", o = t?.triggerChar ?? (e.kind === "user" ? "@" : "");
|
|
171
|
+
return `<span class="rsc-mention" data-ref-id="${r}" data-ref-kind="${i}"${a ? ` data-ref-tone="${a}"` : ""} contenteditable="false">${o}${n}</span> `;
|
|
172
|
+
}
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/components/features/mentions/hooks/use-mentions.ts
|
|
175
|
+
function z(e = {}) {
|
|
176
|
+
let t = e.resources, n = e.onResourceSearch, r = L({
|
|
177
|
+
...e,
|
|
178
|
+
resources: t,
|
|
179
|
+
onResourceSearch: n
|
|
180
|
+
}), [i, a] = j(!1), [o, s] = j(!1), c = A(null), l = A(null), u = D((e) => {
|
|
181
|
+
a(e), e || (c.current = null, l.current = null, s(!1), r.setManualKindOverride(!1));
|
|
182
|
+
}, [r]), d = e.editorRef, f = D(() => {
|
|
183
|
+
if (!t) return;
|
|
184
|
+
let e = {};
|
|
185
|
+
for (let [n, r] of Object.entries(t)) {
|
|
186
|
+
let t = r?.trigger;
|
|
187
|
+
typeof t == "string" && t.length > 0 && (e[t] = n);
|
|
188
|
+
}
|
|
189
|
+
if (Object.keys(e).length === 0) return;
|
|
190
|
+
let n = d?.current?.getCaretContext();
|
|
191
|
+
if (!n) {
|
|
192
|
+
c.current && (c.current = null, u(!1));
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
let i = Object.keys(e).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join(""), o = RegExp(`(?:^|\\s)([${i}])([\\p{L}\\p{N}_-]*)$`, "u"), f = n.textBefore.match(o);
|
|
196
|
+
if (!f) {
|
|
197
|
+
c.current && (c.current = null, u(!1));
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
let p = f[1], m = f[2] ?? "", h = e[p], g = p.length + m.length;
|
|
201
|
+
c.current = {
|
|
202
|
+
kind: h,
|
|
203
|
+
triggerChar: p,
|
|
204
|
+
consumedLength: g
|
|
205
|
+
}, s(!0), l.current !== p && (r.activeKind !== h && r.setActiveKind(h), r.setManualKindOverride(!1), l.current = p), r.query !== m && r.setQuery(m), a(!0);
|
|
206
|
+
}, [
|
|
207
|
+
d,
|
|
208
|
+
t,
|
|
209
|
+
r,
|
|
210
|
+
u
|
|
211
|
+
]), p = D((e) => {
|
|
212
|
+
let n = r.selectSuggestion(e), i = c.current, a = t?.[n.kind]?.tone, o = R(n, {
|
|
213
|
+
triggerChar: i?.triggerChar,
|
|
214
|
+
tone: a
|
|
215
|
+
});
|
|
216
|
+
return i && i.consumedLength > 0 && d?.current ? (d.current.replaceBeforeCaret(i.consumedLength, o), c.current = null) : d?.current && d.current.insertHTML(o), u(!1), n;
|
|
217
|
+
}, [
|
|
218
|
+
d,
|
|
219
|
+
t,
|
|
220
|
+
r,
|
|
221
|
+
u
|
|
222
|
+
]);
|
|
223
|
+
return {
|
|
224
|
+
...r,
|
|
225
|
+
pickerOpen: i,
|
|
226
|
+
setPickerOpen: u,
|
|
227
|
+
triggerActive: o,
|
|
228
|
+
handleCaretChange: f,
|
|
229
|
+
pickSuggestion: p
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/components/features/mentions/partials/mention-chip.tsx
|
|
234
|
+
var B = {
|
|
235
|
+
primary: "secondary",
|
|
236
|
+
success: "success",
|
|
237
|
+
warning: "warning",
|
|
238
|
+
destructive: "destructive",
|
|
239
|
+
info: "info",
|
|
240
|
+
secondary: "secondary"
|
|
241
|
+
}, V = ({ mention: e, resource: n, asLink: i = !0, onClick: o, trailing: s, className: c }) => {
|
|
242
|
+
if (n?.renderChip) return /* @__PURE__ */ N(M, { children: n.renderChip(e) });
|
|
243
|
+
let l = B[n?.tone ?? "secondary"] ?? B.secondary, u = n?.icon, d = /* @__PURE__ */ P(g, {
|
|
244
|
+
tone: l,
|
|
245
|
+
size: "sm",
|
|
246
|
+
inline: !0,
|
|
247
|
+
"data-ref-id": e.id,
|
|
248
|
+
"data-ref-kind": e.kind,
|
|
249
|
+
className: t("mention-chip--component", "align-[-0.15em] cursor-default whitespace-nowrap", c),
|
|
250
|
+
children: [
|
|
251
|
+
u ? /* @__PURE__ */ N(u, {
|
|
252
|
+
className: "size-icon-sm shrink-0",
|
|
253
|
+
"aria-hidden": !0
|
|
254
|
+
}) : null,
|
|
255
|
+
/* @__PURE__ */ N(r, {
|
|
256
|
+
tag: "span",
|
|
257
|
+
size: "inherit",
|
|
258
|
+
weight: "medium",
|
|
259
|
+
lineHeight: "none",
|
|
260
|
+
className: "max-w-[14rem] truncate text-inherit",
|
|
261
|
+
children: e.label
|
|
262
|
+
}),
|
|
263
|
+
s
|
|
264
|
+
]
|
|
265
|
+
});
|
|
266
|
+
return i && e.href ? /* @__PURE__ */ N(a, {
|
|
267
|
+
href: e.href,
|
|
268
|
+
size: "inherit",
|
|
269
|
+
underline: !1,
|
|
270
|
+
target: "_blank",
|
|
271
|
+
rel: "noreferrer noopener",
|
|
272
|
+
onClick: o,
|
|
273
|
+
className: "inline align-baseline no-underline",
|
|
274
|
+
children: d
|
|
275
|
+
}) : o ? /* @__PURE__ */ N("span", {
|
|
276
|
+
onClick: o,
|
|
277
|
+
className: "inline align-baseline",
|
|
278
|
+
children: d
|
|
279
|
+
}) : d;
|
|
280
|
+
}, H = /<(span|a)\b([^>]*?)data-ref-id\s*=\s*"([^"]+)"([^>]*)>([\s\S]*?)<\/\1>/gi;
|
|
281
|
+
function U(e) {
|
|
282
|
+
if (!e) return [];
|
|
283
|
+
let t = [], n = 0, r;
|
|
284
|
+
for (H.lastIndex = 0; (r = H.exec(e)) !== null;) {
|
|
285
|
+
let [i, , , a] = r, o = e.slice(n, r.index);
|
|
286
|
+
o.length > 0 && t.push({
|
|
287
|
+
kind: "html",
|
|
288
|
+
value: o
|
|
289
|
+
}), t.push({
|
|
290
|
+
kind: "mention",
|
|
291
|
+
refId: a,
|
|
292
|
+
fallback: i
|
|
293
|
+
}), n = r.index + i.length;
|
|
294
|
+
}
|
|
295
|
+
let i = e.slice(n);
|
|
296
|
+
return i.length > 0 && t.push({
|
|
297
|
+
kind: "html",
|
|
298
|
+
value: i
|
|
299
|
+
}), t;
|
|
300
|
+
}
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region src/components/features/mentions/partials/mention-content.tsx
|
|
303
|
+
var W = h;
|
|
304
|
+
function G(e) {
|
|
305
|
+
let { html: n, mentions: i, resources: a, renderMention: o, sanitizer: s, className: c, prose: l = !0 } = e, u = a, d = s ? s(n ?? "") : m(n ?? ""), f = /* @__PURE__ */ new Map();
|
|
306
|
+
for (let e of i ?? []) f.set(e.id, e);
|
|
307
|
+
let p = f.size > 0 ? U(d) : [{
|
|
308
|
+
kind: "html",
|
|
309
|
+
value: d
|
|
310
|
+
}], h = (e) => {
|
|
311
|
+
if (o) return o(e);
|
|
312
|
+
let t = u?.[e.kind];
|
|
313
|
+
return /* @__PURE__ */ N(V, {
|
|
314
|
+
mention: e,
|
|
315
|
+
resource: t
|
|
316
|
+
});
|
|
317
|
+
}, g = p.map((e, t) => {
|
|
318
|
+
if (e.kind === "mention") {
|
|
319
|
+
let n = f.get(e.refId);
|
|
320
|
+
return n ? /* @__PURE__ */ N(E, { children: h(n) }, `ref-${t}-${e.refId}`) : /* @__PURE__ */ N("span", { dangerouslySetInnerHTML: { __html: e.fallback } }, `fallback-${t}`);
|
|
321
|
+
}
|
|
322
|
+
return /* @__PURE__ */ N("span", { dangerouslySetInnerHTML: { __html: e.value } }, `html-${t}`);
|
|
323
|
+
});
|
|
324
|
+
return l ? /* @__PURE__ */ N(r, {
|
|
325
|
+
tag: "div",
|
|
326
|
+
className: t("mention-content--component", W, c),
|
|
327
|
+
children: g
|
|
328
|
+
}) : /* @__PURE__ */ N(M, { children: g });
|
|
329
|
+
}
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/components/features/mentions/partials/mention-kind-toggles.tsx
|
|
332
|
+
function K({ kinds: e, activeKind: t, resources: i, counts: a, onKindChange: o }) {
|
|
333
|
+
return /* @__PURE__ */ N("div", {
|
|
334
|
+
className: "mention-kind-toggles--component flex flex-wrap gap-space-xs",
|
|
335
|
+
children: e.map((e) => {
|
|
336
|
+
let s = i?.[e], c = s?.icon, l = e === t, u = a?.[e]?.length ?? 0;
|
|
337
|
+
return /* @__PURE__ */ P(n, {
|
|
338
|
+
type: "button",
|
|
339
|
+
"aria-pressed": l,
|
|
340
|
+
tone: "secondary",
|
|
341
|
+
buttonStyle: "ghost",
|
|
342
|
+
size: "sm",
|
|
343
|
+
className: l ? p.togglePressed : p.toggleHoverButton,
|
|
344
|
+
onClick: () => o(e),
|
|
345
|
+
children: [
|
|
346
|
+
c ? /* @__PURE__ */ N(c, { className: "size-icon-sm" }) : null,
|
|
347
|
+
/* @__PURE__ */ N(r, {
|
|
348
|
+
tag: "span",
|
|
349
|
+
size: "inherit",
|
|
350
|
+
weight: "medium",
|
|
351
|
+
className: "text-inherit",
|
|
352
|
+
children: s?.label ?? String(e)
|
|
353
|
+
}),
|
|
354
|
+
u > 0 && /* @__PURE__ */ N(r, {
|
|
355
|
+
tag: "span",
|
|
356
|
+
size: "xs",
|
|
357
|
+
type: "secondary",
|
|
358
|
+
className: "tabular-nums",
|
|
359
|
+
children: u
|
|
360
|
+
})
|
|
361
|
+
]
|
|
362
|
+
}, e);
|
|
363
|
+
})
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
//#endregion
|
|
367
|
+
//#region src/components/features/mentions/mentions.strings.ts
|
|
368
|
+
var q = {
|
|
369
|
+
title: "Insert reference",
|
|
370
|
+
searchPlaceholder: "Search…",
|
|
371
|
+
empty: "No matches.",
|
|
372
|
+
loading: "Searching…"
|
|
373
|
+
}, J = {
|
|
374
|
+
title: "Insert reference",
|
|
375
|
+
empty: "No matches.",
|
|
376
|
+
loading: "Searching…"
|
|
377
|
+
};
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region src/components/features/mentions/partials/mention-picker.tsx
|
|
380
|
+
function Y({ open: n, activeKind: a, setActiveKind: o, kinds: c, resources: u, query: d, setQuery: f, suggestions: p, loading: m, onSelect: h, strings: g, className: T }) {
|
|
381
|
+
let E = e(q, g);
|
|
382
|
+
return n ? /* @__PURE__ */ P(w, {
|
|
383
|
+
align: "start",
|
|
384
|
+
inset: "flush",
|
|
385
|
+
type: "menu",
|
|
386
|
+
className: t("mention-picker--component", l.md, "gap-0 overflow-hidden", T),
|
|
387
|
+
children: [/* @__PURE__ */ N(C, { children: /* @__PURE__ */ P(s, {
|
|
388
|
+
gap: "sm",
|
|
389
|
+
children: [/* @__PURE__ */ N(i, { children: E.title }), c.length > 1 && /* @__PURE__ */ N(K, {
|
|
390
|
+
kinds: c,
|
|
391
|
+
activeKind: a,
|
|
392
|
+
resources: u,
|
|
393
|
+
onKindChange: o
|
|
394
|
+
})]
|
|
395
|
+
}) }), /* @__PURE__ */ P(S, {
|
|
396
|
+
shouldFilter: !1,
|
|
397
|
+
inset: "flush",
|
|
398
|
+
className: "rounded-none",
|
|
399
|
+
children: [/* @__PURE__ */ N(v, {
|
|
400
|
+
placeholder: E.searchPlaceholder,
|
|
401
|
+
value: d,
|
|
402
|
+
onValueChange: f
|
|
403
|
+
}), /* @__PURE__ */ P(b, { children: [
|
|
404
|
+
m ? /* @__PURE__ */ P(s, {
|
|
405
|
+
direction: "horizontal",
|
|
406
|
+
align: "center",
|
|
407
|
+
gap: "sm",
|
|
408
|
+
className: "px-row-x py-row-y text-muted-foreground",
|
|
409
|
+
children: [/* @__PURE__ */ N(F, {
|
|
410
|
+
className: "size-icon-sm animate-spin",
|
|
411
|
+
"aria-hidden": !0
|
|
412
|
+
}), /* @__PURE__ */ N(r, {
|
|
413
|
+
tag: "span",
|
|
414
|
+
size: "xs",
|
|
415
|
+
type: "secondary",
|
|
416
|
+
children: E.loading
|
|
417
|
+
})]
|
|
418
|
+
}) : null,
|
|
419
|
+
/* @__PURE__ */ N(y, { children: E.empty }),
|
|
420
|
+
/* @__PURE__ */ N(x, { children: p.map((e) => {
|
|
421
|
+
let t = e.kind ?? a ?? "";
|
|
422
|
+
return /* @__PURE__ */ N(_, {
|
|
423
|
+
value: `${t}:${e.id}`,
|
|
424
|
+
onSelect: () => h(e),
|
|
425
|
+
children: /* @__PURE__ */ P(s, {
|
|
426
|
+
gap: "dense",
|
|
427
|
+
className: "flex min-w-0 flex-1 flex-col leading-tight",
|
|
428
|
+
children: [/* @__PURE__ */ N(r, {
|
|
429
|
+
tag: "span",
|
|
430
|
+
type: "inherit",
|
|
431
|
+
weight: "medium",
|
|
432
|
+
className: "truncate",
|
|
433
|
+
children: e.label
|
|
434
|
+
}), e.description ? /* @__PURE__ */ N(r, {
|
|
435
|
+
tag: "span",
|
|
436
|
+
size: "xs",
|
|
437
|
+
type: "secondary",
|
|
438
|
+
className: "truncate",
|
|
439
|
+
children: e.description
|
|
440
|
+
}) : null]
|
|
441
|
+
})
|
|
442
|
+
}, `${t}:${e.id}`);
|
|
443
|
+
}) })
|
|
444
|
+
] })]
|
|
445
|
+
})]
|
|
446
|
+
}) : null;
|
|
447
|
+
}
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region src/components/features/mentions/partials/mention-inline-suggestions.tsx
|
|
450
|
+
function X({ open: n, activeKind: a, setActiveKind: m, kinds: h, resources: g, suggestionsByKind: _, suggestions: v, loading: y, query: b, onManualKindChange: x, onSelect: S, strings: C, className: w }) {
|
|
451
|
+
let T = e(J, C);
|
|
452
|
+
return n ? /* @__PURE__ */ P("div", {
|
|
453
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
454
|
+
className: t("mention-inline-suggestions--component", d.surface, "absolute left-0 top-full z-50 mt-space-xs max-w-full", l.lg, "overflow-hidden", w),
|
|
455
|
+
children: [/* @__PURE__ */ N("div", {
|
|
456
|
+
className: t("mention-inline-suggestions--header", d.menuRegion, c.anchored.header),
|
|
457
|
+
children: /* @__PURE__ */ P(s, {
|
|
458
|
+
gap: "sm",
|
|
459
|
+
className: "px-row-x",
|
|
460
|
+
children: [/* @__PURE__ */ P(s, {
|
|
461
|
+
direction: "horizontal",
|
|
462
|
+
align: "baseline",
|
|
463
|
+
justify: "between",
|
|
464
|
+
gap: "md",
|
|
465
|
+
children: [/* @__PURE__ */ N(i, { children: T.title }), b ? /* @__PURE__ */ P(r, {
|
|
466
|
+
tag: "span",
|
|
467
|
+
size: "xs",
|
|
468
|
+
type: "secondary",
|
|
469
|
+
className: "truncate font-mono",
|
|
470
|
+
children: [
|
|
471
|
+
"“",
|
|
472
|
+
b,
|
|
473
|
+
"”"
|
|
474
|
+
]
|
|
475
|
+
}) : null]
|
|
476
|
+
}), h.length > 1 && /* @__PURE__ */ N(K, {
|
|
477
|
+
kinds: h,
|
|
478
|
+
activeKind: a,
|
|
479
|
+
resources: g,
|
|
480
|
+
counts: _,
|
|
481
|
+
onKindChange: (e) => {
|
|
482
|
+
m(e), x?.();
|
|
483
|
+
}
|
|
484
|
+
})]
|
|
485
|
+
})
|
|
486
|
+
}), /* @__PURE__ */ P("div", {
|
|
487
|
+
className: t("mention-inline-suggestions--list max-h-72 overflow-y-auto", d.menu),
|
|
488
|
+
...v.length > 0 ? {
|
|
489
|
+
role: "listbox",
|
|
490
|
+
"aria-label": T.title
|
|
491
|
+
} : {},
|
|
492
|
+
children: [
|
|
493
|
+
y ? /* @__PURE__ */ P(s, {
|
|
494
|
+
direction: "horizontal",
|
|
495
|
+
align: "center",
|
|
496
|
+
gap: "sm",
|
|
497
|
+
className: "px-row-x py-row-y text-muted-foreground",
|
|
498
|
+
children: [/* @__PURE__ */ N(F, {
|
|
499
|
+
className: "size-icon-sm animate-spin",
|
|
500
|
+
"aria-hidden": !0
|
|
501
|
+
}), /* @__PURE__ */ N(r, {
|
|
502
|
+
tag: "span",
|
|
503
|
+
size: "xs",
|
|
504
|
+
type: "secondary",
|
|
505
|
+
children: T.loading
|
|
506
|
+
})]
|
|
507
|
+
}) : null,
|
|
508
|
+
!y && v.length === 0 ? /* @__PURE__ */ N(r, {
|
|
509
|
+
tag: "div",
|
|
510
|
+
size: "xs",
|
|
511
|
+
type: "secondary",
|
|
512
|
+
className: "px-row-x py-row-y",
|
|
513
|
+
children: T.empty
|
|
514
|
+
}) : null,
|
|
515
|
+
v.map((e) => {
|
|
516
|
+
let n = e.kind ?? a ?? "";
|
|
517
|
+
return /* @__PURE__ */ N("button", {
|
|
518
|
+
type: "button",
|
|
519
|
+
role: "option",
|
|
520
|
+
"aria-selected": !1,
|
|
521
|
+
"data-ref-id": `${n}:${e.id}`,
|
|
522
|
+
onClick: () => S(e),
|
|
523
|
+
className: t("mention-inline-suggestions--option w-full min-w-0 text-inherit text-left", p.nativeButtonReset, u("compact"), f.interactive, p.rowHover, o.inset),
|
|
524
|
+
children: /* @__PURE__ */ P(s, {
|
|
525
|
+
gap: "dense",
|
|
526
|
+
className: "min-w-0 flex-1",
|
|
527
|
+
children: [/* @__PURE__ */ N(r, {
|
|
528
|
+
tag: "span",
|
|
529
|
+
type: "inherit",
|
|
530
|
+
weight: "medium",
|
|
531
|
+
className: "truncate",
|
|
532
|
+
children: e.label
|
|
533
|
+
}), e.description ? /* @__PURE__ */ N(r, {
|
|
534
|
+
tag: "span",
|
|
535
|
+
size: "xs",
|
|
536
|
+
type: "secondary",
|
|
537
|
+
className: "truncate",
|
|
538
|
+
children: e.description
|
|
539
|
+
}) : null]
|
|
540
|
+
})
|
|
541
|
+
}, `${n}:${e.id}`);
|
|
542
|
+
})
|
|
543
|
+
]
|
|
544
|
+
})]
|
|
545
|
+
}) : null;
|
|
546
|
+
}
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region src/components/features/mentions/utils/parse-mentions-from-html.ts
|
|
549
|
+
var Z = /<(?:span|a)\b[^>]*?data-ref-id\s*=\s*"([^"]+)"[^>]*?>([\s\S]*?)<\/(?:span|a)>/gi, Q = /data-ref-kind\s*=\s*"([^"]+)"/i;
|
|
550
|
+
function $(e) {
|
|
551
|
+
let t = [];
|
|
552
|
+
if (!e) return t;
|
|
553
|
+
let n = /* @__PURE__ */ new Set(), r;
|
|
554
|
+
for (Z.lastIndex = 0; (r = Z.exec(e)) !== null;) {
|
|
555
|
+
let [e, i, a] = r;
|
|
556
|
+
if (n.has(i)) continue;
|
|
557
|
+
n.add(i);
|
|
558
|
+
let o = e.match(Q)?.[1] ?? i.split(":")[0] ?? "", s = (a ?? "").replace(/<[^>]*>/g, "").replace(/ /g, " ").replace(/^[@#$&%!~]\s*/, "").trim();
|
|
559
|
+
t.push({
|
|
560
|
+
id: i,
|
|
561
|
+
kind: o,
|
|
562
|
+
label: s
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
return t;
|
|
566
|
+
}
|
|
567
|
+
//#endregion
|
|
568
|
+
export { q as a, V as c, L as d, J as i, z as l, X as n, G as o, Y as r, U as s, $ as t, R as u };
|
|
569
|
+
|
|
570
|
+
//# sourceMappingURL=mentions-utuUvH1K.js.map
|