themelia-react-ui 0.0.0-stage → 1.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 +64 -0
- package/LICENSE +21 -0
- package/README.md +249 -2
- package/THIRD_PARTY_NOTICES.md +65 -0
- package/dist/accordion-BRWh3BM1.js +205 -0
- package/dist/accordion-BRWh3BM1.js.map +1 -0
- package/dist/action-menu-Cx3SdfbN.js +265 -0
- package/dist/action-menu-Cx3SdfbN.js.map +1 -0
- package/dist/action-presentation.js +11 -0
- package/dist/action-presentation.js.map +1 -0
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js +23 -0
- package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +1 -0
- package/dist/ai-artifact-DkOArd3-.js +1121 -0
- package/dist/ai-artifact-DkOArd3-.js.map +1 -0
- package/dist/anchored-positioning-DPnKTvNs.js +6 -0
- package/dist/anchored-positioning-DPnKTvNs.js.map +1 -0
- package/dist/app-shell-BH_bGcE2.js +235 -0
- package/dist/app-shell-BH_bGcE2.js.map +1 -0
- package/dist/attachment-DsLgNHXt.js +244 -0
- package/dist/attachment-DsLgNHXt.js.map +1 -0
- package/dist/auth-BDB1V_2q.js +704 -0
- package/dist/auth-BDB1V_2q.js.map +1 -0
- package/dist/avatar-CsnWaYmt.js +173 -0
- package/dist/avatar-CsnWaYmt.js.map +1 -0
- package/dist/badge-BZXZT9wd.js +92 -0
- package/dist/badge-BZXZT9wd.js.map +1 -0
- package/dist/base/accordion.js +3 -0
- package/dist/base/action-menu.js +3 -0
- package/dist/base/attachment.js +3 -0
- package/dist/base/avatar.js +3 -0
- package/dist/base/badge.js +3 -0
- package/dist/base/buttons.js +3 -0
- package/dist/base/cards.js +4 -0
- package/dist/base/carousel.js +251 -0
- package/dist/base/carousel.js.map +1 -0
- package/dist/base/cascader.js +361 -0
- package/dist/base/cascader.js.map +1 -0
- package/dist/base/chart.js +3 -0
- package/dist/base/choice-inputs.js +3 -0
- package/dist/base/code-block.js +3 -0
- package/dist/base/combobox.js +3 -0
- package/dist/base/command.js +3 -0
- package/dist/base/copyable.js +3 -0
- package/dist/base/date-pickers.js +4 -0
- package/dist/base/display.js +8 -0
- package/dist/base/feedback.js +4 -0
- package/dist/base/forms-numeric.js +3 -0
- package/dist/base/forms.js +4 -0
- package/dist/base/item.js +3 -0
- package/dist/base/media-gallery.js +3 -0
- package/dist/base/navigation.js +8 -0
- package/dist/base/popover-menu.js +3 -0
- package/dist/base/popover.js +3 -0
- package/dist/base/qr-code.js +63 -0
- package/dist/base/qr-code.js.map +1 -0
- package/dist/base/repeaters.js +620 -0
- package/dist/base/repeaters.js.map +1 -0
- package/dist/base/sheet.js +3 -0
- package/dist/base/sidebar.js +3 -0
- package/dist/base/signature-pad.js +364 -0
- package/dist/base/signature-pad.js.map +1 -0
- package/dist/base/skeleton.js +3 -0
- package/dist/base/spinner.js +3 -0
- package/dist/base/structure.js +3 -0
- package/dist/base/table.js +3 -0
- package/dist/base/text-inputs.js +4 -0
- package/dist/base/toaster.js +102 -0
- package/dist/base/toaster.js.map +1 -0
- package/dist/base/tree.js +3 -0
- package/dist/base/upload-queue.js +3 -0
- package/dist/base/upload.js +5 -0
- package/dist/base/value-inputs.js +3 -0
- package/dist/blocks/admin.js +478 -0
- package/dist/blocks/admin.js.map +1 -0
- package/dist/blocks/ai.js +1021 -0
- package/dist/blocks/ai.js.map +1 -0
- package/dist/blocks/analytics.js +1499 -0
- package/dist/blocks/analytics.js.map +1 -0
- package/dist/blocks/collaboration.js +3 -0
- package/dist/blocks/commerce/receipt.js +3 -0
- package/dist/blocks/commerce.js +3393 -0
- package/dist/blocks/commerce.js.map +1 -0
- package/dist/blocks/data-display.js +3 -0
- package/dist/blocks/onboarding.js +128 -0
- package/dist/blocks/onboarding.js.map +1 -0
- package/dist/blocks/timelines.js +3 -0
- package/dist/breadcrumbs-DdQ_I5ra.js +127 -0
- package/dist/breadcrumbs-DdQ_I5ra.js.map +1 -0
- package/dist/button-BS6l5JUw.js +47 -0
- package/dist/button-BS6l5JUw.js.map +1 -0
- package/dist/buttons-Co6GavvM.js +674 -0
- package/dist/buttons-Co6GavvM.js.map +1 -0
- package/dist/cards-BMB0laLG.js +66 -0
- package/dist/cards-BMB0laLG.js.map +1 -0
- package/dist/chart-DVfcwQu6.js +149 -0
- package/dist/chart-DVfcwQu6.js.map +1 -0
- package/dist/choice-inputs-CavA-SGV.js +644 -0
- package/dist/choice-inputs-CavA-SGV.js.map +1 -0
- package/dist/code-block-DIlqzoiD.js +183 -0
- package/dist/code-block-DIlqzoiD.js.map +1 -0
- package/dist/collapsible-DsnktFNv.js +81 -0
- package/dist/collapsible-DsnktFNv.js.map +1 -0
- package/dist/collection-content-C4fthJV_.js +53 -0
- package/dist/collection-content-C4fthJV_.js.map +1 -0
- package/dist/combobox-CHD750do.js +850 -0
- package/dist/combobox-CHD750do.js.map +1 -0
- package/dist/combobox-HDftpzxt.js +273 -0
- package/dist/combobox-HDftpzxt.js.map +1 -0
- package/dist/command-D0kWBZfd.js +421 -0
- package/dist/command-D0kWBZfd.js.map +1 -0
- package/dist/comments-CvYeglMS.js +1132 -0
- package/dist/comments-CvYeglMS.js.map +1 -0
- package/dist/component-vocabulary.js +26 -0
- package/dist/component-vocabulary.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +36 -0
- package/dist/components/base/accordion/accordion.d.ts +20 -0
- package/dist/components/base/accordion/accordion.strings.d.ts +15 -0
- package/dist/components/base/accordion/accordion.types.d.ts +74 -0
- package/dist/components/base/accordion/index.d.ts +4 -0
- package/dist/components/base/accordion/smart-accordion.d.ts +7 -0
- package/dist/components/base/action-menu/action-menu.d.ts +147 -0
- package/dist/components/base/action-menu/action-menu.strings.d.ts +4 -0
- package/dist/components/base/action-menu/index.d.ts +11 -0
- package/dist/components/base/attachment/attachment.d.ts +17 -0
- package/dist/components/base/attachment/attachment.types.d.ts +49 -0
- package/dist/components/base/attachment/index.d.ts +2 -0
- package/dist/components/base/avatar/avatar.d.ts +24 -0
- package/dist/components/base/avatar/index.d.ts +14 -0
- package/dist/components/base/avatar/stacked-avatars.d.ts +39 -0
- package/dist/components/base/badge/badge.d.ts +22 -0
- package/dist/components/base/badge/badge.recipes.d.ts +20 -0
- package/dist/components/base/badge/index.d.ts +2 -0
- package/dist/components/base/buttons/base-button.d.ts +24 -0
- package/dist/components/base/buttons/button-group.d.ts +28 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +6 -0
- package/dist/components/base/buttons/button.d.ts +47 -0
- package/dist/components/base/buttons/button.recipes.d.ts +23 -0
- package/dist/components/base/buttons/button.variants.d.ts +8 -0
- package/dist/components/base/buttons/index.d.ts +7 -0
- package/dist/components/base/buttons/loader-button.d.ts +40 -0
- package/dist/components/base/buttons/text-button.d.ts +19 -0
- package/dist/components/base/buttons/tooltip-button.d.ts +7 -0
- package/dist/components/base/cards/card-actions.d.ts +41 -0
- package/dist/components/base/cards/card.recipes.d.ts +28 -0
- package/dist/components/base/cards/index.d.ts +5 -0
- package/dist/components/base/cards/partials/card-primitives.d.ts +21 -0
- package/dist/components/base/cards/partials/has-renderable-content.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +8 -0
- package/dist/components/base/cards/partials/smart-card-alert.d.ts +20 -0
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +33 -0
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +16 -0
- package/dist/components/base/cards/smart-card.d.ts +9 -0
- package/dist/components/base/cards/smart-card.strings.d.ts +18 -0
- package/dist/components/base/cards/smart-card.tokens.d.ts +44 -0
- package/dist/components/base/cards/smart-card.types.d.ts +144 -0
- package/dist/components/base/carousel/carousel.d.ts +105 -0
- package/dist/components/base/carousel/carousel.strings.d.ts +6 -0
- package/dist/components/base/carousel/index.d.ts +2 -0
- package/dist/components/base/cascader/cascader.d.ts +2 -0
- package/dist/components/base/cascader/cascader.types.d.ts +57 -0
- package/dist/components/base/cascader/index.d.ts +2 -0
- package/dist/components/base/chart/chart.d.ts +99 -0
- package/dist/components/base/chart/index.d.ts +9 -0
- package/dist/components/base/choice-inputs/card-checkbox-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/card-radio-group.d.ts +19 -0
- package/dist/components/base/choice-inputs/checkbox.d.ts +17 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +57 -0
- package/dist/components/base/choice-inputs/index.d.ts +28 -0
- package/dist/components/base/choice-inputs/list-radio-group.d.ts +13 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +27 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +26 -0
- package/dist/components/base/choice-inputs/select.d.ts +94 -0
- package/dist/components/base/choice-inputs/switch-card.d.ts +36 -0
- package/dist/components/base/choice-inputs/switch.d.ts +38 -0
- package/dist/components/base/choice-inputs/toggle-field.d.ts +41 -0
- package/dist/components/base/code-block/code-block.d.ts +3 -0
- package/dist/components/base/code-block/code-block.types.d.ts +46 -0
- package/dist/components/base/code-block/index.d.ts +2 -0
- package/dist/components/base/code-block/use-code-copy.d.ts +6 -0
- package/dist/components/base/combobox/index.d.ts +27 -0
- package/dist/components/base/command/command.d.ts +73 -0
- package/dist/components/base/command/index.d.ts +1 -0
- package/dist/components/base/copyable/copyable.d.ts +36 -0
- package/dist/components/base/copyable/index.d.ts +1 -0
- package/dist/components/base/date-pickers/date-picker-footer.d.ts +14 -0
- package/dist/components/base/date-pickers/date-picker-header.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-helpers.d.ts +87 -0
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +10 -0
- package/dist/components/base/date-pickers/date-picker-multiple.d.ts +20 -0
- package/dist/components/base/date-pickers/date-picker-range.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker-single.d.ts +15 -0
- package/dist/components/base/date-pickers/date-picker.d.ts +3 -0
- package/dist/components/base/date-pickers/date-picker.recipes.d.ts +18 -0
- package/dist/components/base/date-pickers/date-pickers.strings.d.ts +14 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +285 -0
- package/dist/components/base/date-pickers/index.d.ts +7 -0
- package/dist/components/base/date-pickers/month-year-picker.d.ts +4 -0
- package/dist/components/base/date-pickers/time-picker.d.ts +70 -0
- package/dist/components/base/display/alert-dialog.d.ts +25 -0
- package/dist/components/base/display/boolean-indicator.d.ts +25 -0
- package/dist/components/base/display/collapsible.d.ts +21 -0
- package/dist/components/base/display/content-block.d.ts +73 -0
- package/dist/components/base/display/content-block.strings.d.ts +5 -0
- package/dist/components/base/display/date-block.d.ts +70 -0
- package/dist/components/base/display/dialog.d.ts +35 -0
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +45 -0
- package/dist/components/base/display/icon-badge/index.d.ts +1 -0
- package/dist/components/base/display/icon-size.d.ts +5 -0
- package/dist/components/base/display/index.d.ts +31 -0
- package/dist/components/base/display/placeholder-pattern.d.ts +7 -0
- package/dist/components/base/display/scroll-area.d.ts +12 -0
- package/dist/components/base/display/separator.d.ts +10 -0
- package/dist/components/base/display/surface-title.d.ts +10 -0
- package/dist/components/base/display/tooltip.d.ts +28 -0
- package/dist/components/base/display/visually-hidden.d.ts +14 -0
- package/dist/components/base/feedback/alert.d.ts +49 -0
- package/dist/components/base/feedback/empty.d.ts +48 -0
- package/dist/components/base/feedback/index.d.ts +27 -0
- package/dist/components/base/feedback/progress.d.ts +81 -0
- package/dist/components/base/feedback/progress.strings.d.ts +5 -0
- package/dist/components/base/feedback/state-display.d.ts +39 -0
- package/dist/components/base/forms/controlled-form-field.d.ts +32 -0
- package/dist/components/base/forms/controlled-form-field.strings.d.ts +7 -0
- package/dist/components/base/forms/form-field.d.ts +38 -0
- package/dist/components/base/forms/form-sizing.d.ts +86 -0
- package/dist/components/base/forms/index.d.ts +4 -0
- package/dist/components/base/forms/operation-password-form.d.ts +16 -0
- package/dist/components/base/forms/workflow.d.ts +68 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +47 -0
- package/dist/components/base/forms-numeric/currency-input.d.ts +44 -0
- package/dist/components/base/forms-numeric/decimal-input.d.ts +53 -0
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +79 -0
- package/dist/components/base/forms-numeric/index.d.ts +21 -0
- package/dist/components/base/forms-numeric/money-input.d.ts +67 -0
- package/dist/components/base/forms-numeric/money-input.strings.d.ts +6 -0
- package/dist/components/base/forms-numeric/percentage-input.d.ts +8 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +54 -0
- package/dist/components/base/item/index.d.ts +2 -0
- package/dist/components/base/item/item.d.ts +12 -0
- package/dist/components/base/item/item.types.d.ts +100 -0
- package/dist/components/base/media-gallery/index.d.ts +2 -0
- package/dist/components/base/media-gallery/media-gallery.d.ts +45 -0
- package/dist/components/base/navigation/breadcrumbs.d.ts +37 -0
- package/dist/components/base/navigation/dropdown-menu.d.ts +45 -0
- package/dist/components/base/navigation/index.d.ts +21 -0
- package/dist/components/base/navigation/language-switcher.d.ts +12 -0
- package/dist/components/base/navigation/navigation-tabs.d.ts +40 -0
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +43 -0
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +88 -0
- package/dist/components/base/navigation/pagination.d.ts +61 -0
- package/dist/components/base/navigation/tab-scroll-viewport.d.ts +12 -0
- package/dist/components/base/navigation/tabs.d.ts +23 -0
- package/dist/components/base/popover/collection-content.d.ts +22 -0
- package/dist/components/base/popover/index.d.ts +1 -0
- package/dist/components/base/popover/popover.d.ts +54 -0
- package/dist/components/base/popover/popover.recipes.d.ts +29 -0
- package/dist/components/base/popover-menu/index.d.ts +3 -0
- package/dist/components/base/popover-menu/popover-menu.d.ts +82 -0
- package/dist/components/base/popover-menu/popover-menu.types.d.ts +30 -0
- package/dist/components/base/qr-code/index.d.ts +8 -0
- package/dist/components/base/qr-code/qr-code.d.ts +13 -0
- package/dist/components/base/repeaters/index.d.ts +21 -0
- package/dist/components/base/repeaters/key-value-editor.d.ts +27 -0
- package/dist/components/base/repeaters/localized-object-field.d.ts +35 -0
- package/dist/components/base/repeaters/localized-string-field.d.ts +25 -0
- package/dist/components/base/repeaters/localized-string-repeater.d.ts +44 -0
- package/dist/components/base/repeaters/object-repeater.d.ts +66 -0
- package/dist/components/base/repeaters/repeater.d.ts +87 -0
- package/dist/components/base/repeaters/repeaters.strings.d.ts +16 -0
- package/dist/components/base/repeaters/string-repeater.d.ts +65 -0
- package/dist/components/base/repeaters/string-repeater.utils.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +1 -0
- package/dist/components/base/sheet/sheet.d.ts +35 -0
- package/dist/components/base/sidebar/index.d.ts +6 -0
- package/dist/components/base/sidebar/sidebar.d.ts +135 -0
- package/dist/components/base/signature-pad/index.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.d.ts +4 -0
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +66 -0
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +8 -0
- package/dist/components/base/skeleton/index.d.ts +14 -0
- package/dist/components/base/skeleton/skeleton.d.ts +54 -0
- package/dist/components/base/spinner/index.d.ts +1 -0
- package/dist/components/base/spinner/spinner.d.ts +32 -0
- package/dist/components/base/structure/adaptive-grid.d.ts +3 -0
- package/dist/components/base/structure/grid-cell.d.ts +3 -0
- package/dist/components/base/structure/grid.d.ts +3 -0
- package/dist/components/base/structure/index.d.ts +5 -0
- package/dist/components/base/structure/stack.d.ts +3 -0
- package/dist/components/base/structure/structure.context.d.ts +6 -0
- package/dist/components/base/structure/structure.recipes.d.ts +27 -0
- package/dist/components/base/structure/structure.responsive.d.ts +5 -0
- package/dist/components/base/structure/structure.types.d.ts +51 -0
- package/dist/components/base/table/index.d.ts +18 -0
- package/dist/components/base/text-inputs/hooks/index.d.ts +1 -0
- package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +48 -0
- package/dist/components/base/text-inputs/index.d.ts +21 -0
- package/dist/components/base/text-inputs/input-group.d.ts +46 -0
- package/dist/components/base/text-inputs/input.d.ts +45 -0
- package/dist/components/base/text-inputs/password-input.d.ts +28 -0
- package/dist/components/base/text-inputs/slug-field.d.ts +21 -0
- package/dist/components/base/text-inputs/textarea.d.ts +37 -0
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/toaster/toaster.d.ts +6 -0
- package/dist/components/base/tree/hierarchy.d.ts +11 -0
- package/dist/components/base/tree/index.d.ts +2 -0
- package/dist/components/base/tree/tree.d.ts +3 -0
- package/dist/components/base/tree/tree.types.d.ts +47 -0
- package/dist/components/base/upload/avatar-upload.d.ts +39 -0
- package/dist/components/base/upload/dropzone.d.ts +40 -0
- package/dist/components/base/upload/file-picker-input.d.ts +15 -0
- package/dist/components/base/upload/file-upload.d.ts +9 -0
- package/dist/components/base/upload/file-upload.strings.d.ts +18 -0
- package/dist/components/base/upload/file-upload.types.d.ts +68 -0
- package/dist/components/base/upload/file-upload.validation.d.ts +21 -0
- package/dist/components/base/upload/image-upload.d.ts +57 -0
- package/dist/components/base/upload/index.d.ts +26 -0
- package/dist/components/base/upload/use-file-drop-target.d.ts +22 -0
- package/dist/components/base/upload-queue/index.d.ts +3 -0
- package/dist/components/base/upload-queue/upload-progress-list.d.ts +55 -0
- package/dist/components/base/upload-queue/upload-tray.d.ts +46 -0
- package/dist/components/base/value-inputs/color-input.d.ts +26 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +19 -0
- package/dist/components/base/value-inputs/index.d.ts +25 -0
- package/dist/components/base/value-inputs/phone-input.d.ts +48 -0
- package/dist/components/base/value-inputs/slider.d.ts +59 -0
- package/dist/components/base/value-inputs/tags-input.d.ts +67 -0
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +127 -0
- package/dist/components/blocks/admin/admin.strings.d.ts +11 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.d.ts +2 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.strings.d.ts +16 -0
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +58 -0
- package/dist/components/blocks/admin/api-key-list/index.d.ts +3 -0
- package/dist/components/blocks/admin/index.d.ts +4 -0
- package/dist/components/blocks/admin/role-permission/index.d.ts +2 -0
- package/dist/components/blocks/admin/role-permission/role-permission.d.ts +5 -0
- package/dist/components/blocks/admin/role-permission/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-agent/ai-agent.d.ts +5 -0
- package/dist/components/blocks/ai/ai-agent/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-agent/types.d.ts +30 -0
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +5 -0
- package/dist/components/blocks/ai/ai-artifact/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +50 -0
- package/dist/components/blocks/ai/ai-attachment/ai-attachment.d.ts +5 -0
- package/dist/components/blocks/ai/ai-attachment/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-attachment/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +5 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +36 -0
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-citation/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-classification/ai-classification.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-classification/types.d.ts +27 -0
- package/dist/components/blocks/ai/ai-code-block/ai-code-block.d.ts +6 -0
- package/dist/components/blocks/ai/ai-code-block/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-code-block/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-confidence/ai-confidence.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confidence/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confidence/types.d.ts +25 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-confirmation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +40 -0
- package/dist/components/blocks/ai/ai-feedback/ai-feedback.d.ts +5 -0
- package/dist/components/blocks/ai/ai-feedback/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +24 -0
- package/dist/components/blocks/ai/ai-file-tree/ai-file-tree.d.ts +5 -0
- package/dist/components/blocks/ai/ai-file-tree/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +59 -0
- package/dist/components/blocks/ai/ai-inline-citation/ai-inline-citation.d.ts +5 -0
- package/dist/components/blocks/ai/ai-inline-citation/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-message-bubble/ai-message-bubble.d.ts +6 -0
- package/dist/components/blocks/ai/ai-message-bubble/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-message-bubble/types.d.ts +35 -0
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +5 -0
- package/dist/components/blocks/ai/ai-package-info/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +39 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +5 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-prompt-suggestions/types.d.ts +26 -0
- package/dist/components/blocks/ai/ai-reasoning/ai-reasoning.d.ts +5 -0
- package/dist/components/blocks/ai/ai-reasoning/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +5 -0
- package/dist/components/blocks/ai/ai-shimmer/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +11 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +5 -0
- package/dist/components/blocks/ai/ai-sources/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +44 -0
- package/dist/components/blocks/ai/ai-summary/ai-summary.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-summary/types.d.ts +32 -0
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +5 -0
- package/dist/components/blocks/ai/ai-task/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-task/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai-token-usage/ai-token-usage.d.ts +5 -0
- package/dist/components/blocks/ai/ai-token-usage/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-token-usage/types.d.ts +22 -0
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +5 -0
- package/dist/components/blocks/ai/ai-tool-call/index.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +38 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +36 -0
- package/dist/components/blocks/ai/index.d.ts +24 -0
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +6 -0
- package/dist/components/blocks/analytics/activity-heatmap/activity-heatmap.d.ts +5 -0
- package/dist/components/blocks/analytics/activity-heatmap/index.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +20 -0
- package/dist/components/blocks/analytics/analytics.strings.d.ts +35 -0
- package/dist/components/blocks/analytics/atoms/metric-skeleton.d.ts +13 -0
- package/dist/components/blocks/analytics/atoms/metric-sparkline.d.ts +15 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +15 -0
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +42 -0
- package/dist/components/blocks/analytics/chart-card/index.d.ts +1 -0
- package/dist/components/blocks/analytics/format-metric-value.d.ts +8 -0
- package/dist/components/blocks/analytics/index.d.ts +34 -0
- package/dist/components/blocks/analytics/metric/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +28 -0
- package/dist/components/blocks/analytics/metric-bar/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-bar/metric-bar.d.ts +22 -0
- package/dist/components/blocks/analytics/metric-comparison/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +26 -0
- package/dist/components/blocks/analytics/metric-gradient/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-gradient/metric-gradient.d.ts +19 -0
- package/dist/components/blocks/analytics/metric-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +33 -0
- package/dist/components/blocks/analytics/metric-micro-grid/index.d.ts +1 -0
- package/dist/components/blocks/analytics/metric-micro-grid/metric-micro-grid.d.ts +23 -0
- package/dist/components/blocks/analytics/time-ruler/index.d.ts +2 -0
- package/dist/components/blocks/analytics/time-ruler/time-ruler.d.ts +5 -0
- package/dist/components/blocks/analytics/time-ruler/types.d.ts +32 -0
- package/dist/components/blocks/analytics/types.d.ts +83 -0
- package/dist/components/blocks/collaboration/index.d.ts +1 -0
- package/dist/components/blocks/collaboration/message/index.d.ts +2 -0
- package/dist/components/blocks/collaboration/message/message.d.ts +8 -0
- package/dist/components/blocks/collaboration/message/message.types.d.ts +30 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +5 -0
- package/dist/components/blocks/commerce/address-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/types.d.ts +43 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +12 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +36 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +53 -0
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +5 -0
- package/dist/components/blocks/commerce/coupon-input/index.d.ts +2 -0
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +35 -0
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +5 -0
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -0
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +27 -0
- package/dist/components/blocks/commerce/format-signed-amount.d.ts +22 -0
- package/dist/components/blocks/commerce/giftcard-card/giftcard-card.d.ts +62 -0
- package/dist/components/blocks/commerce/giftcard-card/index.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +9 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +7 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +11 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +10 -0
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +83 -0
- package/dist/components/blocks/commerce/index.d.ts +34 -0
- package/dist/components/blocks/commerce/inventory-level/index.d.ts +3 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +10 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +20 -0
- package/dist/components/blocks/commerce/inventory-section/index.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +5 -0
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +105 -0
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +51 -0
- package/dist/components/blocks/commerce/invoice-line-items/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +64 -0
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -0
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +5 -0
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +28 -0
- package/dist/components/blocks/commerce/loyalty-points/index.d.ts +2 -0
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +5 -0
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +32 -0
- package/dist/components/blocks/commerce/order-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +5 -0
- package/dist/components/blocks/commerce/order-status/types.d.ts +35 -0
- package/dist/components/blocks/commerce/order-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +22 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-method/types.d.ts +33 -0
- package/dist/components/blocks/commerce/payment-timeline/index.d.ts +2 -0
- package/dist/components/blocks/commerce/payment-timeline/payment-timeline.d.ts +5 -0
- package/dist/components/blocks/commerce/payment-timeline/types.d.ts +15 -0
- package/dist/components/blocks/commerce/receipt/index.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +2 -0
- package/dist/components/blocks/commerce/receipt/receipt.d.ts +3 -0
- package/dist/components/blocks/commerce/receipt/types.d.ts +42 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -0
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +5 -0
- package/dist/components/blocks/commerce/refund-status/types.d.ts +37 -0
- package/dist/components/blocks/commerce/seo-listing/index.d.ts +3 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/seo-listing-score.d.ts +5 -0
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +92 -0
- package/dist/components/blocks/commerce/shipment-tracking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +5 -0
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +44 -0
- package/dist/components/blocks/commerce/subscription-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +39 -0
- package/dist/components/blocks/commerce/tax-breakdown/index.d.ts +2 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +5 -0
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +34 -0
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -0
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +29 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +5 -0
- package/dist/components/blocks/commerce/vendor-profile/index.d.ts +3 -0
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +86 -0
- package/dist/components/blocks/commerce/vendor-profile/vendor-profile.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/index.d.ts +2 -0
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +33 -0
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +6 -0
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +19 -0
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +7 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +5 -0
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +183 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.d.ts +2 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.strings.d.ts +19 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +86 -0
- package/dist/components/blocks/data-display/empty-state/index.d.ts +5 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +25 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/search-glass.d.ts +9 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +11 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/partials/illustrations/users-circle.d.ts +9 -0
- package/dist/components/blocks/data-display/index.d.ts +6 -0
- package/dist/components/blocks/data-display/inline-stat/index.d.ts +1 -0
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +35 -0
- package/dist/components/blocks/data-display/metadata/index.d.ts +4 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.d.ts +78 -0
- package/dist/components/blocks/data-display/metadata/metadata-list.strings.d.ts +18 -0
- package/dist/components/blocks/data-display/metadata/metadata-value.d.ts +142 -0
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +40 -0
- package/dist/components/blocks/onboarding/checklist/checklist.d.ts +2 -0
- package/dist/components/blocks/onboarding/checklist/checklist.strings.d.ts +15 -0
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +64 -0
- package/dist/components/blocks/onboarding/checklist/index.d.ts +4 -0
- package/dist/components/blocks/onboarding/checklist/partials/step-status-indicator.d.ts +12 -0
- package/dist/components/blocks/onboarding/index.d.ts +7 -0
- package/dist/components/blocks/timelines/changelog/changelog-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/changelog/index.d.ts +2 -0
- package/dist/components/blocks/timelines/changelog/types.d.ts +33 -0
- package/dist/components/blocks/timelines/index.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/index.d.ts +2 -0
- package/dist/components/blocks/timelines/milestones/milestones-timeline.d.ts +5 -0
- package/dist/components/blocks/timelines/milestones/types.d.ts +32 -0
- package/dist/components/blocks/timelines/shared/index.d.ts +1 -0
- package/dist/components/blocks/timelines/shared/timeline.d.ts +40 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -0
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +9 -0
- package/dist/components/blocks/timelines/steps-card/types.d.ts +38 -0
- package/dist/components/features/activities/activities-feed.d.ts +5 -0
- package/dist/components/features/activities/activities.config.d.ts +6 -0
- package/dist/components/features/activities/activities.strings.d.ts +38 -0
- package/dist/components/features/activities/activities.types.d.ts +431 -0
- package/dist/components/features/activities/activity-event-adapter.d.ts +38 -0
- package/dist/components/features/activities/activity-log.d.ts +6 -0
- package/dist/components/features/activities/hooks/index.d.ts +2 -0
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +44 -0
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +22 -0
- package/dist/components/features/activities/index.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-actions-menu.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-changes.d.ts +8 -0
- package/dist/components/features/activities/partials/activity-date-label.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-empty-state.d.ts +9 -0
- package/dist/components/features/activities/partials/activity-headline.d.ts +20 -0
- package/dist/components/features/activities/partials/activity-marker.d.ts +25 -0
- package/dist/components/features/activities/partials/activity-resource-tag.d.ts +11 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +68 -0
- package/dist/components/features/activities/partials/index.d.ts +8 -0
- package/dist/components/features/activities/partials/tone-tokens.d.ts +25 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +81 -0
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +56 -0
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +170 -0
- package/dist/components/features/ai-chat/hooks/index.d.ts +1 -0
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +15 -0
- package/dist/components/features/ai-chat/index.d.ts +5 -0
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +15 -0
- package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +28 -0
- package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +22 -0
- package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +21 -0
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +59 -0
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +19 -0
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +18 -0
- package/dist/components/features/ai-chat/partials/index.d.ts +7 -0
- package/dist/components/features/async-preview/async-preview.d.ts +84 -0
- package/dist/components/features/async-preview/async-preview.strings.d.ts +14 -0
- package/dist/components/features/async-preview/async-preview.types.d.ts +133 -0
- package/dist/components/features/async-preview/hooks/index.d.ts +1 -0
- package/dist/components/features/async-preview/hooks/use-async-preview.d.ts +8 -0
- package/dist/components/features/async-preview/index.d.ts +6 -0
- package/dist/components/features/async-preview/partials/index.d.ts +1 -0
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +45 -0
- package/dist/components/features/combobox/async-resource-combobox.d.ts +94 -0
- package/dist/components/features/combobox/combobox.d.ts +20 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +14 -0
- package/dist/components/features/combobox/components/combobox-dropdown.d.ts +57 -0
- package/dist/components/features/combobox/components/error-message.d.ts +15 -0
- package/dist/components/features/combobox/components/highlighted-text.d.ts +14 -0
- package/dist/components/features/combobox/components/index.d.ts +13 -0
- package/dist/components/features/combobox/components/loading-more.d.ts +15 -0
- package/dist/components/features/combobox/components/status-content.d.ts +21 -0
- package/dist/components/features/combobox/constants.d.ts +19 -0
- package/dist/components/features/combobox/hooks/index.d.ts +2 -0
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +30 -0
- package/dist/components/features/combobox/hooks/use-debounced-search.d.ts +10 -0
- package/dist/components/features/combobox/hooks/use-grouped-items.d.ts +9 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +12 -0
- package/dist/components/features/combobox/index.d.ts +13 -0
- package/dist/components/features/combobox/types.d.ts +184 -0
- package/dist/components/features/comments/comments-provider.d.ts +15 -0
- package/dist/components/features/comments/comments.d.ts +2 -0
- package/dist/components/features/comments/comments.strings.d.ts +91 -0
- package/dist/components/features/comments/comments.types.d.ts +369 -0
- package/dist/components/features/comments/hooks/index.d.ts +4 -0
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +28 -0
- package/dist/components/features/comments/hooks/use-comments.d.ts +34 -0
- package/dist/components/features/comments/index.d.ts +8 -0
- package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +23 -0
- package/dist/components/features/comments/partials/comment-composer.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-content.d.ts +13 -0
- package/dist/components/features/comments/partials/comment-empty.d.ts +12 -0
- package/dist/components/features/comments/partials/comment-item.d.ts +3 -0
- package/dist/components/features/comments/partials/comment-timeline.d.ts +3 -0
- package/dist/components/features/comments/partials/index.d.ts +9 -0
- package/dist/components/features/data-view/data-view-filtering.d.ts +3 -0
- package/dist/components/features/data-view/data-view.d.ts +7 -0
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -0
- package/dist/components/features/data-view/data-view.types.d.ts +191 -0
- package/dist/components/features/data-view/hooks/index.d.ts +1 -0
- package/dist/components/features/data-view/hooks/use-data-view.d.ts +2 -0
- package/dist/components/features/data-view/index.d.ts +4 -0
- package/dist/components/features/email-composer/document.d.ts +8 -0
- package/dist/components/features/email-composer/email-composer.d.ts +2 -0
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/engine.d.ts +18 -0
- package/dist/components/features/email-composer/http.d.ts +6 -0
- package/dist/components/features/email-composer/index.d.ts +6 -0
- package/dist/components/features/email-composer/partials/body-editor.d.ts +11 -0
- package/dist/components/features/email-composer/partials/data-status.d.ts +8 -0
- package/dist/components/features/email-composer/partials/html-preview.d.ts +6 -0
- package/dist/components/features/email-composer/partials/recipients.d.ts +14 -0
- package/dist/components/features/email-composer/partials/variables.d.ts +11 -0
- package/dist/components/features/email-composer/strings.d.ts +79 -0
- package/dist/components/features/email-composer/types.d.ts +195 -0
- package/dist/components/features/email-composer/use-composer.d.ts +119 -0
- package/dist/components/features/event-calendar/colors.d.ts +29 -0
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar-event-card.d.ts +16 -0
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +8 -0
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.d.ts +5 -0
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +350 -0
- package/dist/components/features/event-calendar/index.d.ts +11 -0
- package/dist/components/features/event-calendar/use-event-calendar-data.d.ts +15 -0
- package/dist/components/features/event-calendar/use-event-calendar.d.ts +24 -0
- package/dist/components/features/filters/facets/async-select-facet.d.ts +28 -0
- package/dist/components/features/filters/facets/date-facet.d.ts +18 -0
- package/dist/components/features/filters/facets/range-facet.d.ts +30 -0
- package/dist/components/features/filters/facets/search-facet.d.ts +27 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +19 -0
- package/dist/components/features/filters/facets/tags-facet.d.ts +27 -0
- package/dist/components/features/filters/filter-context.d.ts +61 -0
- package/dist/components/features/filters/filter-layout.d.ts +16 -0
- package/dist/components/features/filters/filter-query.d.ts +21 -0
- package/dist/components/features/filters/filters.strings.d.ts +103 -0
- package/dist/components/features/filters/filters.types.d.ts +222 -0
- package/dist/components/features/filters/hooks/index.d.ts +3 -0
- package/dist/components/features/filters/hooks/use-async-options.d.ts +16 -0
- package/dist/components/features/filters/hooks/use-filter-groups.d.ts +16 -0
- package/dist/components/features/filters/index.d.ts +42 -0
- package/dist/components/features/filters/operator-options.d.ts +9 -0
- package/dist/components/features/filters/partials/active-filter-item.d.ts +37 -0
- package/dist/components/features/filters/partials/async-filter-content.d.ts +21 -0
- package/dist/components/features/filters/partials/date-filter-content.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-error-boundary.d.ts +9 -0
- package/dist/components/features/filters/partials/filter-list-content.d.ts +24 -0
- package/dist/components/features/filters/partials/filter-list-item.d.ts +19 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +22 -0
- package/dist/components/features/filters/partials/filter-pill.d.ts +26 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +36 -0
- package/dist/components/features/filters/partials/filter-tabs.d.ts +14 -0
- package/dist/components/features/filters/partials/filter-value-display.d.ts +21 -0
- package/dist/components/features/filters/partials/filters-button.d.ts +32 -0
- package/dist/components/features/filters/partials/index.d.ts +14 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +28 -0
- package/dist/components/features/filters/partials/search-filters-list.d.ts +25 -0
- package/dist/components/features/filters/partials/tags-filter-content.d.ts +28 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +37 -0
- package/dist/components/features/filters/validators.d.ts +63 -0
- package/dist/components/features/global-search/global-search-dialog.d.ts +13 -0
- package/dist/components/features/global-search/global-search.d.ts +52 -0
- package/dist/components/features/global-search/global-search.strings.d.ts +36 -0
- package/dist/components/features/global-search/global-search.types.d.ts +105 -0
- package/dist/components/features/global-search/hooks/index.d.ts +2 -0
- package/dist/components/features/global-search/hooks/use-global-search.d.ts +33 -0
- package/dist/components/features/global-search/index.d.ts +9 -0
- package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +7 -0
- package/dist/components/features/global-search/partials/global-search-footer.d.ts +13 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +12 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +17 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +16 -0
- package/dist/components/features/global-search/partials/global-search-tabs.d.ts +13 -0
- package/dist/components/features/global-search/partials/index.d.ts +12 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +8 -0
- package/dist/components/features/kanban/hooks/index.d.ts +1 -0
- package/dist/components/features/kanban/hooks/use-kanban.d.ts +32 -0
- package/dist/components/features/kanban/index.d.ts +5 -0
- package/dist/components/features/kanban/kanban-context.d.ts +25 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +10 -0
- package/dist/components/features/kanban/kanban.d.ts +38 -0
- package/dist/components/features/kanban/kanban.strings.d.ts +24 -0
- package/dist/components/features/kanban/kanban.types.d.ts +168 -0
- package/dist/components/features/map/index.d.ts +13 -0
- package/dist/components/features/map/map.d.ts +166 -0
- package/dist/components/features/map/place-autocomplete.d.ts +97 -0
- package/dist/components/features/map/public-leaflet.types.d.ts +71 -0
- package/dist/components/features/map/use-map-color-scheme.d.ts +2 -0
- package/dist/components/features/media-library/hooks/index.d.ts +1 -0
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +5 -0
- package/dist/components/features/media-library/index.d.ts +6 -0
- package/dist/components/features/media-library/media-library.d.ts +3 -0
- package/dist/components/features/media-library/media-library.strings.d.ts +124 -0
- package/dist/components/features/media-library/media-library.types.d.ts +568 -0
- package/dist/components/features/media-library/media-resource-gallery.d.ts +2 -0
- package/dist/components/features/media-library/partials/index.d.ts +1 -0
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +10 -0
- package/dist/components/features/mentions/hooks/index.d.ts +2 -0
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +41 -0
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +35 -0
- package/dist/components/features/mentions/index.d.ts +5 -0
- package/dist/components/features/mentions/mentions.strings.d.ts +26 -0
- package/dist/components/features/mentions/mentions.types.d.ts +100 -0
- package/dist/components/features/mentions/partials/index.d.ts +4 -0
- package/dist/components/features/mentions/partials/mention-chip.d.ts +29 -0
- package/dist/components/features/mentions/partials/mention-content.d.ts +22 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +36 -0
- package/dist/components/features/mentions/partials/mention-picker.d.ts +31 -0
- package/dist/components/features/mentions/utils/build-mention-html.d.ts +24 -0
- package/dist/components/features/mentions/utils/index.d.ts +3 -0
- package/dist/components/features/mentions/utils/parse-mentions-from-html.d.ts +13 -0
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +4 -0
- package/dist/components/features/overlays/dialog.d.ts +4 -0
- package/dist/components/features/overlays/drawer.d.ts +4 -0
- package/dist/components/features/overlays/hooks/index.d.ts +2 -0
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +24 -0
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +36 -0
- package/dist/components/features/overlays/index.d.ts +6 -0
- package/dist/components/features/overlays/overlays.strings.d.ts +19 -0
- package/dist/components/features/overlays/overlays.types.d.ts +169 -0
- package/dist/components/features/products/components/index.d.ts +17 -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-matrix.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-overview.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 +5 -0
- package/dist/components/features/products/components/product-variant-details.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-editor.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-bulk-table.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-manager.d.ts +5 -0
- package/dist/components/features/products/components/product-variants-table.d.ts +5 -0
- package/dist/components/features/products/index.d.ts +3 -0
- package/dist/components/features/products/partials/index.d.ts +7 -0
- package/dist/components/features/products/partials/product-actions.d.ts +10 -0
- package/dist/components/features/products/partials/product-empty-state.d.ts +10 -0
- package/dist/components/features/products/partials/product-metric-tile.d.ts +4 -0
- package/dist/components/features/products/partials/product-rows.d.ts +35 -0
- package/dist/components/features/products/partials/product-tone.d.ts +8 -0
- package/dist/components/features/products/partials/product-values.d.ts +1 -0
- package/dist/components/features/products/partials/product-variant-table-parts.d.ts +28 -0
- package/dist/components/features/products/products.strings.d.ts +308 -0
- package/dist/components/features/products/products.types.d.ts +906 -0
- package/dist/components/features/questionnaire/index.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire-control.d.ts +3 -0
- package/dist/components/features/questionnaire/questionnaire.d.ts +2 -0
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +98 -0
- package/dist/components/features/questionnaire/questionnaire.utils.d.ts +5 -0
- package/dist/components/features/resource/index.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +8 -0
- package/dist/components/features/resource/resource.strings.d.ts +12 -0
- package/dist/components/features/resource/resource.types.d.ts +161 -0
- package/dist/components/features/resource-assignment/hooks/index.d.ts +2 -0
- package/dist/components/features/resource-assignment/hooks/use-shared-resource-card.d.ts +32 -0
- package/dist/components/features/resource-assignment/index.d.ts +6 -0
- package/dist/components/features/resource-assignment/partials/default-shared-resource-partials.d.ts +31 -0
- package/dist/components/features/resource-assignment/partials/index.d.ts +1 -0
- package/dist/components/features/resource-assignment/resource-assignment.d.ts +12 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +17 -0
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +193 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +6 -0
- package/dist/components/features/rich-text-editor/index.d.ts +5 -0
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +28 -0
- package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +32 -0
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/index.d.ts +7 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +8 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +3 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +33 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +3 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +32 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +111 -0
- package/dist/components/features/schema-form/hooks/index.d.ts +1 -0
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +23 -0
- package/dist/components/features/schema-form/index.d.ts +5 -0
- package/dist/components/features/schema-form/partials/index.d.ts +3 -0
- package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +23 -0
- package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +12 -0
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +12 -0
- package/dist/components/features/schema-form/schema-form.d.ts +5 -0
- package/dist/components/features/schema-form/schema-form.strings.d.ts +11 -0
- package/dist/components/features/schema-form/schema-form.types.d.ts +271 -0
- package/dist/components/features/schema-form/schema-form.utils.d.ts +18 -0
- package/dist/components/features/suggestions/hooks/index.d.ts +1 -0
- package/dist/components/features/suggestions/hooks/use-suggestions.d.ts +9 -0
- package/dist/components/features/suggestions/index.d.ts +4 -0
- package/dist/components/features/suggestions/suggestions.d.ts +5 -0
- package/dist/components/features/suggestions/suggestions.strings.d.ts +16 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +79 -0
- package/dist/components/features/sync/index.d.ts +3 -0
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +5 -0
- package/dist/components/features/sync/sync.strings.d.ts +18 -0
- package/dist/components/features/sync/sync.types.d.ts +44 -0
- package/dist/components/features/table/column-visibility-toggle.d.ts +5 -0
- package/dist/components/features/table/data-table.d.ts +6 -0
- package/dist/components/features/table/filter-bar.d.ts +5 -0
- package/dist/components/features/table/hooks.d.ts +47 -0
- package/dist/components/features/table/index.d.ts +16 -0
- package/dist/components/features/table/pagination.d.ts +5 -0
- package/dist/components/features/table/partials/cell-renderers.d.ts +141 -0
- package/dist/components/features/table/partials/cell-value.d.ts +121 -0
- package/dist/components/features/table/partials/fullscreen-toggle.d.ts +16 -0
- package/dist/components/features/table/partials/resource-cell.d.ts +63 -0
- package/dist/components/features/table/partials/table-link.d.ts +3 -0
- package/dist/components/features/table/table-actions.d.ts +5 -0
- package/dist/components/features/table/table-body.d.ts +5 -0
- package/dist/components/features/table/table-header.d.ts +6 -0
- package/dist/components/features/table/table-helpers.d.ts +39 -0
- package/dist/components/features/table/table-toolbar.d.ts +5 -0
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +489 -0
- package/dist/components/features/theme-tweaker/admin-ui-theme-provider.d.ts +6 -0
- package/dist/components/features/theme-tweaker/index.d.ts +10 -0
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +49 -0
- package/dist/components/features/theme-tweaker/theme-scope.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.d.ts +2 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.fields.d.ts +7 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.recipes.d.ts +25 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +75 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +161 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +23 -0
- package/dist/components/features/theme-tweaker/use-applied-theme.d.ts +11 -0
- package/dist/components/layout/app-shell/app-layout.d.ts +12 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +151 -0
- package/dist/components/layout/app-shell/index.d.ts +6 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/stacked-layout.d.ts +2 -0
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +2 -0
- package/dist/components/layout/auth/auth-card.d.ts +2 -0
- package/dist/components/layout/auth/auth-footer-links.d.ts +2 -0
- package/dist/components/layout/auth/auth-form.d.ts +11 -0
- package/dist/components/layout/auth/auth-hooks.d.ts +4 -0
- package/dist/components/layout/auth/auth-method-switch.d.ts +4 -0
- package/dist/components/layout/auth/auth-shell.d.ts +2 -0
- package/dist/components/layout/auth/auth-social-providers.d.ts +3 -0
- package/dist/components/layout/auth/auth-split-panel.d.ts +2 -0
- package/dist/components/layout/auth/auth.strings.d.ts +21 -0
- package/dist/components/layout/auth/auth.types.d.ts +282 -0
- package/dist/components/layout/auth/index.d.ts +10 -0
- package/dist/components/layout/containers/container.recipes.d.ts +5 -0
- package/dist/components/layout/containers/containers.types.d.ts +17 -0
- package/dist/components/layout/containers/content-container.d.ts +3 -0
- package/dist/components/layout/containers/index.d.ts +5 -0
- package/dist/components/layout/containers/page-viewport.d.ts +3 -0
- package/dist/components/layout/containers/section.d.ts +3 -0
- package/dist/components/layout/containers/two-column-layout.d.ts +27 -0
- package/dist/components/layout/header/header.d.ts +2 -0
- package/dist/components/layout/header/header.types.d.ts +198 -0
- package/dist/components/layout/header/index.d.ts +9 -0
- package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +4 -0
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +2 -0
- package/dist/components/layout/header/partials/header-notifications.d.ts +2 -0
- package/dist/components/layout/header/partials/header-search.d.ts +2 -0
- package/dist/components/layout/header/partials/header-tool-button.d.ts +4 -0
- package/dist/components/layout/header/partials/header-tool-popover.d.ts +2 -0
- package/dist/components/layout/header/partials/header-user-menu.d.ts +2 -0
- package/dist/components/layout/hooks/index.d.ts +3 -0
- package/dist/components/layout/hooks/use-active-path.d.ts +1 -0
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +7 -0
- package/dist/components/layout/hooks/use-layout-link.d.ts +2 -0
- package/dist/components/layout/index.d.ts +24 -0
- package/dist/components/layout/layout.types.d.ts +91 -0
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +5 -0
- package/dist/components/layout/navigation/breadcrumb-progress/index.d.ts +2 -0
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +24 -0
- package/dist/components/layout/navigation/category-nav/category-nav.d.ts +5 -0
- package/dist/components/layout/navigation/category-nav/index.d.ts +2 -0
- package/dist/components/layout/navigation/category-nav/types.d.ts +22 -0
- package/dist/components/layout/navigation/index.d.ts +17 -0
- package/dist/components/layout/navigation/section-nav/index.d.ts +1 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +29 -0
- package/dist/components/layout/navigation/side-nav.d.ts +58 -0
- package/dist/components/layout/page/index.d.ts +4 -0
- package/dist/components/layout/page/page.d.ts +3 -0
- package/dist/components/layout/page/page.types.d.ts +138 -0
- package/dist/components/layout/page/partials/page-actions.d.ts +2 -0
- package/dist/components/layout/page/partials/page-header.d.ts +2 -0
- package/dist/components/layout/settings/index.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +65 -0
- package/dist/components/layout/sidebar/app-sidebar.d.ts +7 -0
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +10 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +2 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +23 -0
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +4 -0
- package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +2 -0
- package/dist/components/layout/sidebar/index.d.ts +11 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +17 -0
- package/dist/components/layout/sidebar/sidebar.d.ts +9 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +218 -0
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +29 -0
- package/dist/components/layout/workspace/index.d.ts +3 -0
- package/dist/components/layout/workspace/workspace.d.ts +6 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +18 -0
- package/dist/components/layout/workspace/workspace.types.d.ts +141 -0
- package/dist/components/primitives/date.d.ts +63 -0
- package/dist/components/primitives/dimensions.d.ts +30 -0
- package/dist/components/primitives/duration.d.ts +23 -0
- package/dist/components/primitives/file-size.d.ts +23 -0
- package/dist/components/primitives/index.d.ts +11 -0
- package/dist/components/primitives/initials-format.d.ts +21 -0
- package/dist/components/primitives/initials.d.ts +16 -0
- package/dist/components/primitives/link.d.ts +28 -0
- package/dist/components/primitives/money.d.ts +79 -0
- package/dist/components/primitives/name.d.ts +16 -0
- package/dist/components/primitives/number.d.ts +23 -0
- package/dist/components/primitives/value.d.ts +23 -0
- package/dist/components/typography/content-typography.d.ts +4 -0
- package/dist/components/typography/display-label.d.ts +5 -0
- package/dist/components/typography/heading.d.ts +16 -0
- package/dist/components/typography/index.d.ts +10 -0
- package/dist/components/typography/label.d.ts +8 -0
- package/dist/components/typography/rich-text/index.d.ts +2 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +6 -0
- package/dist/components/typography/text-link.d.ts +7 -0
- package/dist/components/typography/text.d.ts +17 -0
- package/dist/components/typography/text.styles.d.ts +50 -0
- package/dist/components/ui/accordion.d.ts +6 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/badge.d.ts +5 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/button-group.d.ts +12 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts +9 -0
- package/dist/components/ui/combobox.d.ts +40 -0
- package/dist/components/ui/command.d.ts +50 -0
- package/dist/components/ui/dialog.d.ts +26 -0
- package/dist/components/ui/disclosure-panel.d.ts +14 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/input-group.d.ts +18 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/item.d.ts +22 -0
- package/dist/components/ui/overlay.recipes.d.ts +2 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/popover.d.ts +22 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/separator.d.ts +3 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/sidebar.d.ts +64 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/slot.d.ts +6 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/tabs.d.ts +10 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/toggle-group.d.ts +12 -0
- package/dist/components/ui/toggle.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts +13 -0
- package/dist/containers-CPNyNo1_.js +124 -0
- package/dist/containers-CPNyNo1_.js.map +1 -0
- package/dist/content-typography-CnwgMJ37.js +6 -0
- package/dist/content-typography-CnwgMJ37.js.map +1 -0
- package/dist/copyable-B7SBXJMr.js +65 -0
- package/dist/copyable-B7SBXJMr.js.map +1 -0
- package/dist/data-display-b3d1TfL4.js +1129 -0
- package/dist/data-display-b3d1TfL4.js.map +1 -0
- package/dist/date-BFNMnrS5.js +140 -0
- package/dist/date-BFNMnrS5.js.map +1 -0
- package/dist/date-picker-DI6kPNof.js +1521 -0
- package/dist/date-picker-DI6kPNof.js.map +1 -0
- package/dist/date-pickers-ByP6Cv2z.js +224 -0
- package/dist/date-pickers-ByP6Cv2z.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js +35 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -0
- package/dist/display-ByI5tkqy.js +343 -0
- package/dist/display-ByI5tkqy.js.map +1 -0
- package/dist/dropdown-menu-BlnyHr-9.js +186 -0
- package/dist/dropdown-menu-BlnyHr-9.js.map +1 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js +10 -0
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +1 -0
- package/dist/favicon.svg +1 -0
- package/dist/features/activities.js +1360 -0
- package/dist/features/activities.js.map +1 -0
- package/dist/features/ai-chat.js +567 -0
- package/dist/features/ai-chat.js.map +1 -0
- package/dist/features/async-preview.js +478 -0
- package/dist/features/async-preview.js.map +1 -0
- package/dist/features/combobox.js +3 -0
- package/dist/features/comments.js +3 -0
- package/dist/features/data-view.js +519 -0
- package/dist/features/data-view.js.map +1 -0
- package/dist/features/email-composer/engine.js +2 -0
- package/dist/features/email-composer.js +1099 -0
- package/dist/features/email-composer.js.map +1 -0
- package/dist/features/event-calendar.js +711 -0
- package/dist/features/event-calendar.js.map +1 -0
- package/dist/features/filters.js +3 -0
- package/dist/features/global-search.js +593 -0
- package/dist/features/global-search.js.map +1 -0
- package/dist/features/kanban.js +425 -0
- package/dist/features/kanban.js.map +1 -0
- package/dist/features/map/images/layers-2x.png +0 -0
- package/dist/features/map/images/layers.png +0 -0
- package/dist/features/map/images/marker-icon-2x.png +0 -0
- package/dist/features/map/images/marker-icon.png +0 -0
- package/dist/features/map/images/marker-shadow.png +0 -0
- package/dist/features/map/images/spritesheet-2x.png +0 -0
- package/dist/features/map/images/spritesheet.png +0 -0
- package/dist/features/map/images/spritesheet.svg +156 -0
- package/dist/features/map/style.css +809 -0
- package/dist/features/map.js +1052 -0
- package/dist/features/map.js.map +1 -0
- package/dist/features/media-library.js +2007 -0
- package/dist/features/media-library.js.map +1 -0
- package/dist/features/mentions.js +3 -0
- package/dist/features/overlays.js +3 -0
- package/dist/features/products.js +3076 -0
- package/dist/features/products.js.map +1 -0
- package/dist/features/questionnaire.js +365 -0
- package/dist/features/questionnaire.js.map +1 -0
- package/dist/features/resource-assignment.js +317 -0
- package/dist/features/resource-assignment.js.map +1 -0
- package/dist/features/resource.js +254 -0
- package/dist/features/resource.js.map +1 -0
- package/dist/features/rich-text-editor.js +23 -0
- package/dist/features/rich-text-editor.js.map +1 -0
- package/dist/features/schema-form.js +744 -0
- package/dist/features/schema-form.js.map +1 -0
- package/dist/features/suggestions.js +149 -0
- package/dist/features/suggestions.js.map +1 -0
- package/dist/features/sync.js +136 -0
- package/dist/features/sync.js.map +1 -0
- package/dist/features/table.js +3 -0
- package/dist/features/theme-tweaker.js +2083 -0
- package/dist/features/theme-tweaker.js.map +1 -0
- package/dist/feedback-a9j9J-9A.js +391 -0
- package/dist/feedback-a9j9J-9A.js.map +1 -0
- package/dist/field-affordance-recipes-CHdUtn2Z.js +17 -0
- package/dist/field-affordance-recipes-CHdUtn2Z.js.map +1 -0
- package/dist/field-state-recipes-CBTRt9Bt.js +11 -0
- package/dist/field-state-recipes-CBTRt9Bt.js.map +1 -0
- package/dist/filters-qtrcv1hf.js +2203 -0
- package/dist/filters-qtrcv1hf.js.map +1 -0
- package/dist/form-field-C6W-y2hR.js +48 -0
- package/dist/form-field-C6W-y2hR.js.map +1 -0
- package/dist/form-sizing-39NohSqn.js +99 -0
- package/dist/form-sizing-39NohSqn.js.map +1 -0
- package/dist/format-iamDSqs2.js +110 -0
- package/dist/format-iamDSqs2.js.map +1 -0
- package/dist/forms-BF-HSbff.js +194 -0
- package/dist/forms-BF-HSbff.js.map +1 -0
- package/dist/forms-numeric-Y15Bg5Nr.js +867 -0
- package/dist/forms-numeric-Y15Bg5Nr.js.map +1 -0
- package/dist/header-B8ex54cY.js +452 -0
- package/dist/header-B8ex54cY.js.map +1 -0
- package/dist/hooks/use-debounce.d.ts +1 -0
- package/dist/hooks/use-debounced-callback.d.ts +40 -0
- package/dist/hooks/use-files.d.ts +48 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/useFormErrors.d.ts +7 -0
- package/dist/hooks-D6UBVzf2.js +88 -0
- package/dist/hooks-D6UBVzf2.js.map +1 -0
- package/dist/http-CLTVJc5I.js +331 -0
- package/dist/http-CLTVJc5I.js.map +1 -0
- package/dist/icon-badge-Dv0RYQwj.js +53 -0
- package/dist/icon-badge-Dv0RYQwj.js.map +1 -0
- package/dist/icon-size-B6PVwjbC.js +18 -0
- package/dist/icon-size-B6PVwjbC.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +7 -0
- package/dist/initials-format-CDoQEOd_.js +35 -0
- package/dist/initials-format-CDoQEOd_.js.map +1 -0
- package/dist/input-DMorJiTI.js +202 -0
- package/dist/input-DMorJiTI.js.map +1 -0
- package/dist/input-ci9fIgFH.js +20 -0
- package/dist/input-ci9fIgFH.js.map +1 -0
- package/dist/item-pJ0GsOiJ.js +257 -0
- package/dist/item-pJ0GsOiJ.js.map +1 -0
- package/dist/layout/app-shell.js +3 -0
- package/dist/layout/auth.js +3 -0
- package/dist/layout/containers.js +3 -0
- package/dist/layout/header.js +3 -0
- package/dist/layout/hooks.js +3 -0
- package/dist/layout/navigation.js +3 -0
- package/dist/layout/page.js +3 -0
- package/dist/layout/settings.js +3 -0
- package/dist/layout/sidebar.js +4 -0
- package/dist/layout/workspace.js +3 -0
- package/dist/layout.js +13 -0
- package/dist/layout.types-Cn7aUzJp.js +20 -0
- package/dist/layout.types-Cn7aUzJp.js.map +1 -0
- package/dist/lib/action-presentation.d.ts +15 -0
- package/dist/lib/affordance-geometry.generated.d.ts +18 -0
- package/dist/lib/anchored-positioning.d.ts +5 -0
- package/dist/lib/command-filter.d.ts +1 -0
- package/dist/lib/component-vocabulary.d.ts +12 -0
- package/dist/lib/editable-text-recipe.d.ts +6 -0
- package/dist/lib/email-composer.d.ts +6 -0
- package/dist/lib/field-affordance-recipes.d.ts +20 -0
- package/dist/lib/field-state-recipes.d.ts +10 -0
- package/dist/lib/format.d.ts +53 -0
- package/dist/lib/motion-recipes.d.ts +8 -0
- package/dist/lib/navigation-row-recipes.d.ts +26 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +8 -0
- package/dist/lib/row-recipes.d.ts +3 -0
- package/dist/lib/sanitize-html.d.ts +8 -0
- package/dist/lib/strings.d.ts +16 -0
- package/dist/lib/strings.js +32 -0
- package/dist/lib/strings.js.map +1 -0
- package/dist/lib/surface-recipes.d.ts +27 -0
- package/dist/lib/theme-scope.d.ts +31 -0
- package/dist/lib/token-merge.generated.d.ts +2 -0
- package/dist/lib/track-recipes.d.ts +4 -0
- package/dist/lib/ui-provider/defaults.d.ts +12 -0
- package/dist/lib/ui-provider/hooks.d.ts +13 -0
- package/dist/lib/ui-provider/index.d.ts +28 -0
- package/dist/lib/ui-provider/provider.d.ts +15 -0
- package/dist/lib/ui-provider/scale.d.ts +5 -0
- package/dist/lib/ui-provider/store.d.ts +11 -0
- package/dist/lib/ui-provider/types.d.ts +157 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +2 -0
- package/dist/map-demo-tile.svg +1 -0
- package/dist/media-gallery-Ca4YmvBi.js +200 -0
- package/dist/media-gallery-Ca4YmvBi.js.map +1 -0
- package/dist/mentions-CRio8mTm.js +563 -0
- package/dist/mentions-CRio8mTm.js.map +1 -0
- package/dist/message-B5-6LeYl.js +108 -0
- package/dist/message-B5-6LeYl.js.map +1 -0
- package/dist/motion-recipes-B6jKXEcN.js +27 -0
- package/dist/motion-recipes-B6jKXEcN.js.map +1 -0
- package/dist/navigation-BTrEb5u4.js +267 -0
- package/dist/navigation-BTrEb5u4.js.map +1 -0
- package/dist/navigation-DqEITuD2.js +265 -0
- package/dist/navigation-DqEITuD2.js.map +1 -0
- package/dist/navigation-row-recipes-BFpvGPGE.js +29 -0
- package/dist/navigation-row-recipes-BFpvGPGE.js.map +1 -0
- package/dist/number-BNT_BIzJ.js +269 -0
- package/dist/number-BNT_BIzJ.js.map +1 -0
- package/dist/overlay.recipes-BxW5FIfK.js +6 -0
- package/dist/overlay.recipes-BxW5FIfK.js.map +1 -0
- package/dist/overlays-DBqV0J_V.js +982 -0
- package/dist/overlays-DBqV0J_V.js.map +1 -0
- package/dist/page-BMBGjJY8.js +202 -0
- package/dist/page-BMBGjJY8.js.map +1 -0
- package/dist/page-header-BH41wCyY.js +112 -0
- package/dist/page-header-BH41wCyY.js.map +1 -0
- package/dist/pagination-C29vvt3I.js +149 -0
- package/dist/pagination-C29vvt3I.js.map +1 -0
- package/dist/popover-TInGXsjg.js +194 -0
- package/dist/popover-TInGXsjg.js.map +1 -0
- package/dist/popover-menu-BzqXqE72.js +99 -0
- package/dist/popover-menu-BzqXqE72.js.map +1 -0
- package/dist/popover.recipes-zgBhMlUu.js +34 -0
- package/dist/popover.recipes-zgBhMlUu.js.map +1 -0
- package/dist/primitives-DKPOGVpj.js +330 -0
- package/dist/primitives-DKPOGVpj.js.map +1 -0
- package/dist/primitives.js +7 -0
- package/dist/receipt-DYWTQGEc.js +113 -0
- package/dist/receipt-DYWTQGEc.js.map +1 -0
- package/dist/rich-text-B7sBAdDG.js +32 -0
- package/dist/rich-text-B7sBAdDG.js.map +1 -0
- package/dist/rich-text-editor-BZSJchAF.js +575 -0
- package/dist/rich-text-editor-BZSJchAF.js.map +1 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js +72 -0
- package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +1 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js +25 -0
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +1 -0
- package/dist/row-recipes-DL8n7t_b.js +10 -0
- package/dist/row-recipes-DL8n7t_b.js.map +1 -0
- package/dist/sanitize-html-BG9FGe-j.js +64 -0
- package/dist/sanitize-html-BG9FGe-j.js.map +1 -0
- package/dist/scroll-area-BheMQ270.js +47 -0
- package/dist/scroll-area-BheMQ270.js.map +1 -0
- package/dist/select-B2mb-qN2.js +108 -0
- package/dist/select-B2mb-qN2.js.map +1 -0
- package/dist/separator-DO0EbCEm.js +17 -0
- package/dist/separator-DO0EbCEm.js.map +1 -0
- package/dist/separator-Gk_WXH-l.js +21 -0
- package/dist/separator-Gk_WXH-l.js.map +1 -0
- package/dist/services/actions/action-adapters.d.ts +77 -0
- package/dist/services/actions/action-overlay-outlet.d.ts +3 -0
- package/dist/services/actions/action-provider.d.ts +7 -0
- package/dist/services/actions/action-scope.d.ts +3 -0
- package/dist/services/actions/action-store.d.ts +55 -0
- package/dist/services/actions/actions.strings.d.ts +2 -0
- package/dist/services/actions/actions.types.d.ts +322 -0
- package/dist/services/actions/hooks.d.ts +8 -0
- package/dist/services/actions/index.d.ts +8 -0
- package/dist/services/actions.js +811 -0
- package/dist/services/actions.js.map +1 -0
- package/dist/settings-D9f_wdIC.js +160 -0
- package/dist/settings-D9f_wdIC.js.map +1 -0
- package/dist/sheet-vOUloJ4O.js +205 -0
- package/dist/sheet-vOUloJ4O.js.map +1 -0
- package/dist/sidebar-C3UKkbC5.js +501 -0
- package/dist/sidebar-C3UKkbC5.js.map +1 -0
- package/dist/sidebar-CNBKFDRW.js +598 -0
- package/dist/sidebar-CNBKFDRW.js.map +1 -0
- package/dist/skeleton-BvRhK8y-.js +264 -0
- package/dist/skeleton-BvRhK8y-.js.map +1 -0
- package/dist/slot-CLF9kLrS.js +16 -0
- package/dist/slot-CLF9kLrS.js.map +1 -0
- package/dist/smart-card-B5FcKODh.js +577 -0
- package/dist/smart-card-B5FcKODh.js.map +1 -0
- package/dist/spinner-JtlFJ7Nc.js +78 -0
- package/dist/spinner-JtlFJ7Nc.js.map +1 -0
- package/dist/structure-BvW4vG4H.js +95 -0
- package/dist/structure-BvW4vG4H.js.map +1 -0
- package/dist/structure.recipes-DjqnBpwz.js +548 -0
- package/dist/structure.recipes-DjqnBpwz.js.map +1 -0
- package/dist/style.css +3 -0
- package/dist/surface-recipes-CQfRr-VL.js +27 -0
- package/dist/surface-recipes-CQfRr-VL.js.map +1 -0
- package/dist/table-DnlAJ-xR.js +146 -0
- package/dist/table-DnlAJ-xR.js.map +1 -0
- package/dist/table-ghtAQ-JJ.js +1424 -0
- package/dist/table-ghtAQ-JJ.js.map +1 -0
- package/dist/tabs-DY09eoZg.js +187 -0
- package/dist/tabs-DY09eoZg.js.map +1 -0
- package/dist/text-inputs-BhOcedTo.js +331 -0
- package/dist/text-inputs-BhOcedTo.js.map +1 -0
- package/dist/text.styles-BwB7vAF2.js +64 -0
- package/dist/text.styles-BwB7vAF2.js.map +1 -0
- package/dist/theme-scope-kStaAer0.js +39 -0
- package/dist/theme-scope-kStaAer0.js.map +1 -0
- package/dist/theme.css +872 -0
- package/dist/timelines-CnZ2S_Gr.js +446 -0
- package/dist/timelines-CnZ2S_Gr.js.map +1 -0
- package/dist/track-recipes-LLPNVwFg.js +10 -0
- package/dist/track-recipes-LLPNVwFg.js.map +1 -0
- package/dist/tree-COD9BGdU.js +185 -0
- package/dist/tree-COD9BGdU.js.map +1 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/locale.types.d.ts +7 -0
- package/dist/types/pagination.types.d.ts +24 -0
- package/dist/typography/rich-text.js +3 -0
- package/dist/typography-Cv8MT-82.js +96 -0
- package/dist/typography-Cv8MT-82.js.map +1 -0
- package/dist/typography.js +3 -0
- package/dist/ui-provider-CftIB6TY.js +128 -0
- package/dist/ui-provider-CftIB6TY.js.map +1 -0
- package/dist/ui-provider.js +4 -0
- package/dist/upload-DIzw1dx1.js +849 -0
- package/dist/upload-DIzw1dx1.js.map +1 -0
- package/dist/upload-queue-xRJ3qDmd.js +410 -0
- package/dist/upload-queue-xRJ3qDmd.js.map +1 -0
- package/dist/use-debounce-DZ_1ZBPa.js +18 -0
- package/dist/use-debounce-DZ_1ZBPa.js.map +1 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js +30 -0
- package/dist/use-debounced-callback-Cx1h-hdv.js.map +1 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js +39 -0
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +1 -0
- package/dist/use-mobile-vaLKwgyf.js +15 -0
- package/dist/use-mobile-vaLKwgyf.js.map +1 -0
- package/dist/utils-C2EKeIw3.js +72 -0
- package/dist/utils-C2EKeIw3.js.map +1 -0
- package/dist/value-inputs-Co1fu-xv.js +824 -0
- package/dist/value-inputs-Co1fu-xv.js.map +1 -0
- package/dist/workspace-Cbqz4FzN.js +402 -0
- package/dist/workspace-Cbqz4FzN.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +32 -0
- package/docs/consumer-skill/examples/app-layout.tsx +31 -0
- package/docs/consumer-skill/examples/composition.tsx +37 -0
- package/docs/consumer-skill/examples/content-workflow.tsx +13 -0
- package/docs/consumer-skill/examples/destructive-confirm.tsx +42 -0
- package/docs/consumer-skill/examples/detail.tsx +28 -0
- package/docs/consumer-skill/examples/edit.tsx +61 -0
- package/docs/consumer-skill/examples/email-composer.tsx +25 -0
- package/docs/consumer-skill/examples/hierarchy-capture.tsx +25 -0
- package/docs/consumer-skill/examples/index-table.tsx +36 -0
- package/docs/consumer-skill/examples/manifest.json +94 -0
- package/docs/consumer-skill/examples/receipt.tsx +19 -0
- package/docs/consumer-skill/references/composition.md +170 -0
- package/docs/consumer-skill/references/design-contract.md +145 -0
- package/docs/consumer-skill/references/discovery.md +33 -0
- package/docs/consumer-skill/references/installation.md +66 -0
- package/docs/consumer-skill/references/integration.md +57 -0
- package/docs/consumer-skill/references/public-api.json +17527 -0
- package/docs/consumer-skill/references/theming.md +56 -0
- package/docs/consumer-skill/references/tokens.json +422 -0
- package/docs/consumer-skill/references/workflows.md +39 -0
- package/docs/consumer-skill/scripts/discovery.mjs +79 -0
- package/docs/consumer-skill/scripts/find-components.mjs +11 -0
- package/package.json +621 -4
|
@@ -0,0 +1,1132 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { a as e, o as t } from "./ui-provider-CftIB6TY.js";
|
|
3
|
+
import { interpolateString as n, useStrings as r } from "./lib/strings.js";
|
|
4
|
+
import { t as i } from "./utils-C2EKeIw3.js";
|
|
5
|
+
import { c as a, l as o, n as s, o as c, s as l } from "./buttons-Co6GavvM.js";
|
|
6
|
+
import { a as u, r as d, t as f } from "./typography-Cv8MT-82.js";
|
|
7
|
+
import { t as p } from "./structure-BvW4vG4H.js";
|
|
8
|
+
import { i as m, t as h } from "./overlays-DBqV0J_V.js";
|
|
9
|
+
import { t as g } from "./sanitize-html-BG9FGe-j.js";
|
|
10
|
+
import { t as _ } from "./content-typography-CnwgMJ37.js";
|
|
11
|
+
import { t as v } from "./rich-text-B7sBAdDG.js";
|
|
12
|
+
import { g as y, i as b } from "./primitives-DKPOGVpj.js";
|
|
13
|
+
import { n as x, t as S } from "./number-BNT_BIzJ.js";
|
|
14
|
+
import { i as C } from "./date-BFNMnrS5.js";
|
|
15
|
+
import { i as w, n as T, s as E } from "./avatar-CsnWaYmt.js";
|
|
16
|
+
import { t as D } from "./badge-BZXZT9wd.js";
|
|
17
|
+
import { c as O, o as ee } from "./popover-TInGXsjg.js";
|
|
18
|
+
import { l as k } from "./data-display-b3d1TfL4.js";
|
|
19
|
+
import { t as te } from "./rich-text-editor-BZSJchAF.js";
|
|
20
|
+
import { l as A, n as ne, o as j, r as re, t as M } from "./mentions-CRio8mTm.js";
|
|
21
|
+
import { Fragment as N, createElement as ie, forwardRef as P, memo as F, useCallback as I, useEffect as L, useImperativeHandle as ae, useMemo as R, useRef as z, useState as B } from "react";
|
|
22
|
+
import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
23
|
+
import { AtSign as oe, CornerDownRight as se, File as ce, FileText as le, Image as ue, Loader2 as de, MessageCircle as W, Paperclip as fe, Pencil as G, Pin as K, Send as pe, Smile as me, Trash2 as he, X as q } from "lucide-react";
|
|
24
|
+
//#region src/components/features/comments/comments.strings.ts
|
|
25
|
+
var J = {
|
|
26
|
+
title: "Comments",
|
|
27
|
+
subtitle: "",
|
|
28
|
+
empty: "No comments yet.",
|
|
29
|
+
emptyHint: "Start the conversation — your team will see it instantly.",
|
|
30
|
+
composerPlaceholder: "Write a comment…",
|
|
31
|
+
composerSubmit: "Post comment",
|
|
32
|
+
composerSubmitting: "Posting…",
|
|
33
|
+
composerSave: "Save changes",
|
|
34
|
+
invalidContent: "Comment cannot be empty.",
|
|
35
|
+
composerCancel: "Cancel",
|
|
36
|
+
composerEditingEyebrow: "Editing comment",
|
|
37
|
+
composerReplyingEyebrow: "Replying to {{name}}",
|
|
38
|
+
composerAttachmentLabel: "Attach file",
|
|
39
|
+
composerReferenceLabel: "Mention or link",
|
|
40
|
+
composerReferenceMenuTitle: "Insert reference",
|
|
41
|
+
composerReferenceSearchPlaceholder: "Search…",
|
|
42
|
+
composerReferenceEmpty: "No matches.",
|
|
43
|
+
composerReferenceLoading: "Searching…",
|
|
44
|
+
fallbackAuthor: "Anonymous",
|
|
45
|
+
pinned: "Pinned",
|
|
46
|
+
edited: "edited",
|
|
47
|
+
deleteLabel: "Delete",
|
|
48
|
+
editLabel: "Edit",
|
|
49
|
+
replyLabel: "Reply",
|
|
50
|
+
pinLabel: "Pin",
|
|
51
|
+
unpinLabel: "Unpin",
|
|
52
|
+
moreActionsLabel: "More actions",
|
|
53
|
+
confirmDeleteLabel: "Delete comment",
|
|
54
|
+
confirmDeleteTitle: "Delete this comment?",
|
|
55
|
+
confirmRemoveAttachmentTitle: "Remove this attachment?",
|
|
56
|
+
confirmRemoveAttachmentDescription: "The file is detached from the comment for everyone. This cannot be undone.",
|
|
57
|
+
confirmDeleteDescription: "The comment and its replies are removed for everyone. This cannot be undone.",
|
|
58
|
+
attachmentFallback: "Attachment",
|
|
59
|
+
attachmentRemoveLabel: "Remove attachment",
|
|
60
|
+
attachmentUploadingLabel: "Uploading…",
|
|
61
|
+
attachmentFailedLabel: "Upload failed",
|
|
62
|
+
attachmentTooLargeError: "File is too large.",
|
|
63
|
+
attachmentTooManyError: "Too many attachments.",
|
|
64
|
+
attachmentRetryLabel: "Retry",
|
|
65
|
+
attachmentDownloadLabel: "Download",
|
|
66
|
+
addReactionLabel: "Add reaction",
|
|
67
|
+
reactionLabel: "Reaction {{emoji}}: {{count}}",
|
|
68
|
+
showRepliesLabel: "Show replies",
|
|
69
|
+
hideRepliesLabel: "Hide replies"
|
|
70
|
+
};
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region src/components/features/comments/comments-provider.tsx
|
|
73
|
+
function Y(e) {
|
|
74
|
+
return r(J, e);
|
|
75
|
+
}
|
|
76
|
+
function ge(e) {
|
|
77
|
+
let n = t();
|
|
78
|
+
return R(() => ({
|
|
79
|
+
getMediaUrl: e?.getMediaUrl,
|
|
80
|
+
getMediaName: e?.getMediaName,
|
|
81
|
+
getStatusLabel: e?.getStatusLabel,
|
|
82
|
+
formatRelativeTime: e?.formatRelativeTime ?? n.formatRelativeTime
|
|
83
|
+
}), [e, n.formatRelativeTime]);
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/features/comments/hooks/use-comments.ts
|
|
87
|
+
function X(e = {}) {
|
|
88
|
+
let { onSubmit: t, onUpdate: n, onDelete: r, onAfterMutate: i, onError: a } = e, [o, s] = B({ kind: "idle" }), [c, l] = B(!1), u = z(!1), [d, f] = B({}), [p, m] = B(0), h = I((e) => {
|
|
89
|
+
u.current = e, l(e);
|
|
90
|
+
}, []), g = I(() => {
|
|
91
|
+
m((e) => e + 1), s({ kind: "idle" }), f({}), h(!1);
|
|
92
|
+
}, [h]), _ = R(() => ({
|
|
93
|
+
setErrors: f,
|
|
94
|
+
reset: g,
|
|
95
|
+
setSubmitting: h
|
|
96
|
+
}), [g, h]), v = I((e) => {
|
|
97
|
+
try {
|
|
98
|
+
a?.(e);
|
|
99
|
+
} catch {}
|
|
100
|
+
}, [a]);
|
|
101
|
+
return {
|
|
102
|
+
composerMode: o,
|
|
103
|
+
isSubmitting: c,
|
|
104
|
+
formErrors: d,
|
|
105
|
+
resetKey: p,
|
|
106
|
+
startReply: I((e) => {
|
|
107
|
+
e.id && (f({}), s({
|
|
108
|
+
kind: "replying",
|
|
109
|
+
commentId: e.id,
|
|
110
|
+
authorName: e.user?.name
|
|
111
|
+
}));
|
|
112
|
+
}, []),
|
|
113
|
+
startEdit: I((e) => {
|
|
114
|
+
e.id && (f({}), s({
|
|
115
|
+
kind: "editing",
|
|
116
|
+
comment: e
|
|
117
|
+
}));
|
|
118
|
+
}, []),
|
|
119
|
+
cancelComposerMode: I(() => {
|
|
120
|
+
g();
|
|
121
|
+
}, [g]),
|
|
122
|
+
submit: I(async (e) => {
|
|
123
|
+
if (o.kind === "editing" && o.comment.id) {
|
|
124
|
+
if (!n || u.current) return;
|
|
125
|
+
let t = {
|
|
126
|
+
...e,
|
|
127
|
+
editingId: o.comment.id
|
|
128
|
+
};
|
|
129
|
+
h(!0), f({});
|
|
130
|
+
try {
|
|
131
|
+
await n(o.comment.id, t, _), i?.("update", t);
|
|
132
|
+
} catch (e) {
|
|
133
|
+
v(e);
|
|
134
|
+
} finally {
|
|
135
|
+
h(!1);
|
|
136
|
+
}
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
if (!t || u.current) return;
|
|
140
|
+
let r = o.kind === "replying" ? {
|
|
141
|
+
...e,
|
|
142
|
+
replyToId: o.commentId
|
|
143
|
+
} : e;
|
|
144
|
+
h(!0), f({});
|
|
145
|
+
try {
|
|
146
|
+
await t(r, _), i?.("create", r);
|
|
147
|
+
} catch (e) {
|
|
148
|
+
v(e);
|
|
149
|
+
} finally {
|
|
150
|
+
h(!1);
|
|
151
|
+
}
|
|
152
|
+
}, [
|
|
153
|
+
o,
|
|
154
|
+
_,
|
|
155
|
+
i,
|
|
156
|
+
t,
|
|
157
|
+
n,
|
|
158
|
+
v,
|
|
159
|
+
h
|
|
160
|
+
]),
|
|
161
|
+
deleteComment: I(async (e) => {
|
|
162
|
+
if (r && e) try {
|
|
163
|
+
await r(e), i?.("delete", { commentId: e });
|
|
164
|
+
} catch (e) {
|
|
165
|
+
v(e);
|
|
166
|
+
}
|
|
167
|
+
}, [
|
|
168
|
+
i,
|
|
169
|
+
r,
|
|
170
|
+
v
|
|
171
|
+
]),
|
|
172
|
+
resetComposer: g,
|
|
173
|
+
helpers: _
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/components/features/comments/partials/comment-attachment-chip.tsx
|
|
178
|
+
function _e(e) {
|
|
179
|
+
return e.mimeType?.startsWith("image/") ? ue : e.mimeType === "application/pdf" || e.mimeType?.startsWith("text/") ? le : e.mimeType ? ce : fe;
|
|
180
|
+
}
|
|
181
|
+
var ve = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: a, accessors: o, strings: c, compact: l = !1, className: d }) => {
|
|
182
|
+
let p = r(J, c), m = o?.getMediaUrl?.(e) ?? e.url, h = o?.getMediaName?.(e) ?? e.name ?? p.attachmentFallback, g = _e(e), _ = e.status === "uploading", v = e.status === "failed", S = _ ? /* @__PURE__ */ U(y, {
|
|
183
|
+
size: "xs",
|
|
184
|
+
className: "shrink-0",
|
|
185
|
+
children: [p.attachmentUploadingLabel, typeof e.progress == "number" ? /* @__PURE__ */ U(V, { children: [" ", /* @__PURE__ */ H(x, {
|
|
186
|
+
value: Math.round(e.progress),
|
|
187
|
+
scaled: !0,
|
|
188
|
+
size: "xs",
|
|
189
|
+
align: "left",
|
|
190
|
+
type: "secondary"
|
|
191
|
+
})] }) : null]
|
|
192
|
+
}) : v ? /* @__PURE__ */ H(y, {
|
|
193
|
+
size: "xs",
|
|
194
|
+
className: "shrink-0",
|
|
195
|
+
children: e.error ?? p.attachmentFailedLabel
|
|
196
|
+
}) : typeof e.size == "number" ? /* @__PURE__ */ H(b, {
|
|
197
|
+
value: e.size,
|
|
198
|
+
size: "xs",
|
|
199
|
+
className: "shrink-0"
|
|
200
|
+
}) : null, C = i("comment-attachment-chip--component", "relative inline-flex min-w-0 max-w-[20rem] items-center gap-space-sm rounded-radius-md", "ring-1 ring-inset transition-colors", l ? "px-2 py-1 text-xs" : "px-2.5 py-1 text-xs", v ? "bg-destructive/[0.04] ring-destructive/30 hover:bg-destructive/[0.08]" : "bg-foreground/[0.03] ring-border/60 hover:bg-foreground/[0.06]", d), w = _ ? /* @__PURE__ */ H(de, {
|
|
201
|
+
className: i("shrink-0 animate-spin text-muted-foreground", "size-icon-md"),
|
|
202
|
+
"aria-hidden": !0
|
|
203
|
+
}) : /* @__PURE__ */ H(g, {
|
|
204
|
+
className: i("shrink-0", "size-icon-md", v ? "text-destructive" : "text-muted-foreground"),
|
|
205
|
+
"aria-hidden": !0
|
|
206
|
+
}), T = /* @__PURE__ */ U("span", {
|
|
207
|
+
className: "inline-flex min-w-0 items-baseline gap-space-sm",
|
|
208
|
+
children: [/* @__PURE__ */ H(u, {
|
|
209
|
+
tag: "span",
|
|
210
|
+
size: "xs",
|
|
211
|
+
weight: "medium",
|
|
212
|
+
className: i("truncate", v && "text-destructive"),
|
|
213
|
+
children: h
|
|
214
|
+
}), S]
|
|
215
|
+
});
|
|
216
|
+
return /* @__PURE__ */ U("div", {
|
|
217
|
+
className: C,
|
|
218
|
+
children: [
|
|
219
|
+
w,
|
|
220
|
+
m && !_ && !v ? /* @__PURE__ */ H(f, {
|
|
221
|
+
href: m,
|
|
222
|
+
size: "inherit",
|
|
223
|
+
underline: !1,
|
|
224
|
+
target: "_blank",
|
|
225
|
+
rel: "noreferrer noopener",
|
|
226
|
+
className: "inline-flex min-w-0 flex-1 items-baseline gap-space-sm hover:underline",
|
|
227
|
+
"aria-label": p.attachmentDownloadLabel,
|
|
228
|
+
children: T
|
|
229
|
+
}) : T,
|
|
230
|
+
_ && typeof e.progress == "number" && /* @__PURE__ */ H("div", {
|
|
231
|
+
className: "bg-primary/15 absolute bottom-0 left-2 right-2 h-px overflow-hidden rounded-full",
|
|
232
|
+
children: /* @__PURE__ */ H("div", {
|
|
233
|
+
className: "bg-primary h-full transition-[width]",
|
|
234
|
+
style: { width: `${Math.min(100, Math.max(0, e.progress))}%` }
|
|
235
|
+
})
|
|
236
|
+
}),
|
|
237
|
+
v && a && /* @__PURE__ */ H(s, {
|
|
238
|
+
type: "button",
|
|
239
|
+
tone: "destructive",
|
|
240
|
+
buttonStyle: "ghost",
|
|
241
|
+
size: "sm",
|
|
242
|
+
onClick: () => a(e.id),
|
|
243
|
+
className: "h-auto shrink-0 rounded px-1.5 py-px ring-1 ring-inset ring-destructive/30 hover:ring-destructive/60",
|
|
244
|
+
children: /* @__PURE__ */ H(u, {
|
|
245
|
+
tag: "span",
|
|
246
|
+
size: "xs",
|
|
247
|
+
weight: "medium",
|
|
248
|
+
className: "text-inherit",
|
|
249
|
+
children: p.attachmentRetryLabel
|
|
250
|
+
})
|
|
251
|
+
}),
|
|
252
|
+
t && n && /* @__PURE__ */ H(s, {
|
|
253
|
+
type: "button",
|
|
254
|
+
tone: "secondary",
|
|
255
|
+
buttonStyle: "ghost",
|
|
256
|
+
size: "sm",
|
|
257
|
+
iconOnly: !0,
|
|
258
|
+
onClick: () => n(e.id),
|
|
259
|
+
className: "-mr-0.5 size-icon shrink-0 rounded p-0 text-muted-foreground hover:bg-foreground/10 hover:text-foreground",
|
|
260
|
+
"aria-label": p.attachmentRemoveLabel,
|
|
261
|
+
title: p.attachmentRemoveLabel,
|
|
262
|
+
children: /* @__PURE__ */ H(q, { className: "size-icon-sm" })
|
|
263
|
+
})
|
|
264
|
+
]
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/components/features/comments/hooks/use-attachment-upload.ts
|
|
269
|
+
function ye(e = {}) {
|
|
270
|
+
let { onUpload: t, maxSize: n, maxFiles: r, disabled: i, initialAttachments: a, onValueChange: o, onError: s } = e, [c, l] = B(() => a ? [...a] : []), u = z(/* @__PURE__ */ new Map()), d = z(/* @__PURE__ */ new Map()), f = z(o);
|
|
271
|
+
f.current = o;
|
|
272
|
+
let p = I((e, t) => {
|
|
273
|
+
l((n) => n.map((n) => n.id === e ? {
|
|
274
|
+
...n,
|
|
275
|
+
...t
|
|
276
|
+
} : n));
|
|
277
|
+
}, []), m = I((e) => {
|
|
278
|
+
l([...e]);
|
|
279
|
+
}, []), h = I((e, n) => {
|
|
280
|
+
if (!t) return;
|
|
281
|
+
let r = new AbortController();
|
|
282
|
+
u.current.set(e, { controller: r }), p(e, {
|
|
283
|
+
status: "uploading",
|
|
284
|
+
progress: 0,
|
|
285
|
+
error: void 0
|
|
286
|
+
}), t({
|
|
287
|
+
file: n,
|
|
288
|
+
onProgress: (t) => {
|
|
289
|
+
p(e, { progress: t });
|
|
290
|
+
},
|
|
291
|
+
signal: r.signal
|
|
292
|
+
}).then((t) => {
|
|
293
|
+
u.current.delete(e), p(e, {
|
|
294
|
+
...t,
|
|
295
|
+
id: e,
|
|
296
|
+
status: "uploaded",
|
|
297
|
+
progress: 100,
|
|
298
|
+
error: void 0
|
|
299
|
+
});
|
|
300
|
+
}).catch((t) => {
|
|
301
|
+
if (u.current.delete(e), r.signal.aborted) return;
|
|
302
|
+
let n = t instanceof Error ? t.message : "Upload failed";
|
|
303
|
+
p(e, {
|
|
304
|
+
status: "failed",
|
|
305
|
+
error: n
|
|
306
|
+
}), s?.(n);
|
|
307
|
+
});
|
|
308
|
+
}, [
|
|
309
|
+
s,
|
|
310
|
+
t,
|
|
311
|
+
p
|
|
312
|
+
]), g = I((e) => {
|
|
313
|
+
if (i || !t) return;
|
|
314
|
+
let a = Array.from(e);
|
|
315
|
+
a.length !== 0 && l((e) => {
|
|
316
|
+
let t = [...e];
|
|
317
|
+
for (let e of a) {
|
|
318
|
+
if (typeof r == "number" && t.length >= r) {
|
|
319
|
+
s?.("Too many attachments.");
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
if (typeof n == "number" && e.size > n) {
|
|
323
|
+
s?.("File is too large.");
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
let i = typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : `att-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
327
|
+
d.current.set(i, e), t.push({
|
|
328
|
+
id: i,
|
|
329
|
+
name: e.name,
|
|
330
|
+
size: e.size,
|
|
331
|
+
mimeType: e.type,
|
|
332
|
+
status: "uploading",
|
|
333
|
+
progress: 0
|
|
334
|
+
}), queueMicrotask(() => h(i, e));
|
|
335
|
+
}
|
|
336
|
+
return t;
|
|
337
|
+
});
|
|
338
|
+
}, [
|
|
339
|
+
h,
|
|
340
|
+
i,
|
|
341
|
+
r,
|
|
342
|
+
n,
|
|
343
|
+
s,
|
|
344
|
+
t
|
|
345
|
+
]), _ = I((e) => {
|
|
346
|
+
let t = u.current.get(e);
|
|
347
|
+
t && (t.controller.abort(), u.current.delete(e)), d.current.delete(e), l((t) => t.filter((t) => t.id !== e));
|
|
348
|
+
}, []), v = I((e) => {
|
|
349
|
+
let t = d.current.get(e);
|
|
350
|
+
t && h(e, t);
|
|
351
|
+
}, [h]), y = I(() => {
|
|
352
|
+
for (let e of u.current.values()) e.controller.abort();
|
|
353
|
+
u.current.clear(), d.current.clear(), l([]);
|
|
354
|
+
}, []);
|
|
355
|
+
return L(() => {
|
|
356
|
+
f.current?.(c);
|
|
357
|
+
}, [c]), L(() => {
|
|
358
|
+
let e = u.current;
|
|
359
|
+
return () => {
|
|
360
|
+
for (let t of e.values()) t.controller.abort();
|
|
361
|
+
};
|
|
362
|
+
}, []), {
|
|
363
|
+
attachments: c,
|
|
364
|
+
uploadedAttachments: R(() => c.filter((e) => e.status === "uploaded" || !e.status), [c]),
|
|
365
|
+
isUploading: R(() => c.some((e) => e.status === "uploading"), [c]),
|
|
366
|
+
addFiles: g,
|
|
367
|
+
removeAttachment: _,
|
|
368
|
+
retryAttachment: v,
|
|
369
|
+
setAttachments: m,
|
|
370
|
+
reset: y
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
//#endregion
|
|
374
|
+
//#region src/components/features/comments/partials/comment-composer.tsx
|
|
375
|
+
function be(e) {
|
|
376
|
+
return !e || typeof e != "string" ? !1 : e.replace(/<[^>]*>/g, "").trim().length > 0;
|
|
377
|
+
}
|
|
378
|
+
var Z = P(function({ context: e, canComment: t = !0, submitting: n = !1, errors: r, resetKey: i = 0, onSubmit: a, onCancel: o, editingComment: c, replyingTo: l, strings: d, resources: f, onResourceSearch: m, attachments: h, maxAttachments: g, allowAttachments: _, initialValues: v, autoFocus: y = !1, inlineSubmit: b = !0, placeholder: x }, S) {
|
|
379
|
+
let C = Y(d), w = f, T = m, E = _ ?? !0, D = h?.maxFiles ?? g ?? 5, k = R(() => ({
|
|
380
|
+
...h,
|
|
381
|
+
maxFiles: D,
|
|
382
|
+
disabled: h?.disabled === !0 || !E
|
|
383
|
+
}), [
|
|
384
|
+
E,
|
|
385
|
+
h,
|
|
386
|
+
D
|
|
387
|
+
]), j = z(null), [N, ie] = B(() => v?.content ?? c?.content ?? ""), [P, F] = B(null), I = A({
|
|
388
|
+
resources: w,
|
|
389
|
+
onResourceSearch: T,
|
|
390
|
+
editorRef: j,
|
|
391
|
+
initialMentions: v?.references ?? c?.references
|
|
392
|
+
}), V = ye({
|
|
393
|
+
...k,
|
|
394
|
+
initialAttachments: v?.attachments ?? void 0
|
|
395
|
+
});
|
|
396
|
+
ae(S, () => ({
|
|
397
|
+
focus: () => j.current?.focus(),
|
|
398
|
+
clear: () => {
|
|
399
|
+
j.current?.clear(), I.reset(), V.reset(), F(null);
|
|
400
|
+
},
|
|
401
|
+
setBody: (e) => {
|
|
402
|
+
j.current?.setHTML(e);
|
|
403
|
+
}
|
|
404
|
+
}), [V, I]), L(() => {
|
|
405
|
+
j.current?.setHTML(v?.content ?? ""), I.setMentions(v?.references ?? []), V.setAttachments(v?.attachments ?? []), F(null);
|
|
406
|
+
}, [
|
|
407
|
+
e.id,
|
|
408
|
+
e.type,
|
|
409
|
+
i
|
|
410
|
+
]), L(() => {
|
|
411
|
+
if (!c) return;
|
|
412
|
+
j.current?.setHTML(c.content ?? ""), I.setMentions(c.references ?? []);
|
|
413
|
+
let e = (c.attachments ?? []).filter((e) => !!e);
|
|
414
|
+
V.setAttachments(e);
|
|
415
|
+
}, [c?.id]), L(() => {
|
|
416
|
+
r?.content && F(r.content);
|
|
417
|
+
}, [r]);
|
|
418
|
+
let se = (t) => {
|
|
419
|
+
if (t?.preventDefault(), n || V.isUploading) return;
|
|
420
|
+
let r = j.current?.getHTML() ?? N;
|
|
421
|
+
if (!be(r)) {
|
|
422
|
+
F(C.invalidContent);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
F(null), a({
|
|
426
|
+
content: r,
|
|
427
|
+
commentableId: e.id,
|
|
428
|
+
commentableType: e.type,
|
|
429
|
+
moduleKey: e.moduleKey,
|
|
430
|
+
contentType: "html",
|
|
431
|
+
references: I.mentions,
|
|
432
|
+
attachments: V.uploadedAttachments,
|
|
433
|
+
replyToId: l?.commentId ?? v?.replyToId,
|
|
434
|
+
editingId: c?.id
|
|
435
|
+
});
|
|
436
|
+
}, ce = z(null), le = () => ce.current?.click(), ue = (e) => {
|
|
437
|
+
e && V.addFiles(e);
|
|
438
|
+
}, W = V.attachments.length > 0, G = !!c, K = !G && !!l, me = n ? C.composerSubmitting : G ? C.composerSave : C.composerSubmit, he = G ? /* @__PURE__ */ H(xe, {
|
|
439
|
+
label: C.composerEditingEyebrow,
|
|
440
|
+
closeLabel: C.composerCancel,
|
|
441
|
+
onClose: o
|
|
442
|
+
}) : K ? /* @__PURE__ */ H(xe, {
|
|
443
|
+
label: Se(C.composerReplyingEyebrow, l.authorName),
|
|
444
|
+
closeLabel: C.composerCancel,
|
|
445
|
+
onClose: o
|
|
446
|
+
}) : null, q = R(() => {
|
|
447
|
+
let e = [];
|
|
448
|
+
return w && Object.keys(w).length > 0 && e.push({
|
|
449
|
+
id: "reference",
|
|
450
|
+
icon: oe,
|
|
451
|
+
label: C.composerReferenceLabel,
|
|
452
|
+
onClick: () => I.setPickerOpen(!0)
|
|
453
|
+
}), k?.onUpload && !k.disabled && e.push({
|
|
454
|
+
id: "attachment",
|
|
455
|
+
icon: fe,
|
|
456
|
+
label: C.composerAttachmentLabel,
|
|
457
|
+
onClick: le
|
|
458
|
+
}), e;
|
|
459
|
+
}, [
|
|
460
|
+
w,
|
|
461
|
+
k?.onUpload,
|
|
462
|
+
k?.disabled,
|
|
463
|
+
C.composerReferenceLabel,
|
|
464
|
+
C.composerAttachmentLabel
|
|
465
|
+
]);
|
|
466
|
+
if (!t) return null;
|
|
467
|
+
let J = /* @__PURE__ */ H(s, {
|
|
468
|
+
type: "button",
|
|
469
|
+
onClick: () => se(),
|
|
470
|
+
disabled: n || V.isUploading,
|
|
471
|
+
icon: n ? de : pe,
|
|
472
|
+
children: me
|
|
473
|
+
}), ge = G || K || o ? /* @__PURE__ */ H(s, {
|
|
474
|
+
type: "button",
|
|
475
|
+
tone: "secondary",
|
|
476
|
+
buttonStyle: "ghost",
|
|
477
|
+
onClick: o,
|
|
478
|
+
disabled: n,
|
|
479
|
+
children: C.composerCancel
|
|
480
|
+
}) : null, X = W ? /* @__PURE__ */ H(p, {
|
|
481
|
+
direction: "horizontal",
|
|
482
|
+
wrap: !0,
|
|
483
|
+
align: "center",
|
|
484
|
+
gap: "sm",
|
|
485
|
+
children: V.attachments.map((e) => /* @__PURE__ */ H(ve, {
|
|
486
|
+
attachment: e,
|
|
487
|
+
editable: !0,
|
|
488
|
+
onRemove: V.removeAttachment,
|
|
489
|
+
onRetry: V.retryAttachment,
|
|
490
|
+
strings: d
|
|
491
|
+
}, e.id))
|
|
492
|
+
}) : null, _e = W ? X : null, Z = b !== !1 && !G && !K ? J : null, Q = b === !1 || G || K;
|
|
493
|
+
return /* @__PURE__ */ U(p, {
|
|
494
|
+
render: /* @__PURE__ */ H("form", {}),
|
|
495
|
+
gap: "md",
|
|
496
|
+
onSubmit: se,
|
|
497
|
+
className: "comment-composer--component",
|
|
498
|
+
children: [
|
|
499
|
+
he,
|
|
500
|
+
/* @__PURE__ */ H("input", {
|
|
501
|
+
ref: ce,
|
|
502
|
+
type: "file",
|
|
503
|
+
multiple: !0,
|
|
504
|
+
hidden: !0,
|
|
505
|
+
accept: k?.accept,
|
|
506
|
+
onChange: (e) => {
|
|
507
|
+
ue(e.target.files), e.target.value = "";
|
|
508
|
+
}
|
|
509
|
+
}),
|
|
510
|
+
!I.triggerActive && /* @__PURE__ */ U(ee, {
|
|
511
|
+
open: I.pickerOpen,
|
|
512
|
+
onOpenChange: I.setPickerOpen,
|
|
513
|
+
children: [/* @__PURE__ */ H(O, { render: /* @__PURE__ */ H(s, {
|
|
514
|
+
type: "button",
|
|
515
|
+
tone: "secondary",
|
|
516
|
+
buttonStyle: "ghost",
|
|
517
|
+
className: "sr-only",
|
|
518
|
+
tabIndex: -1,
|
|
519
|
+
children: C.composerReferenceLabel
|
|
520
|
+
}) }), /* @__PURE__ */ H(re, {
|
|
521
|
+
open: I.pickerOpen,
|
|
522
|
+
activeKind: I.activeKind,
|
|
523
|
+
setActiveKind: (e) => {
|
|
524
|
+
I.setActiveKind(e), I.setManualKindOverride(!0);
|
|
525
|
+
},
|
|
526
|
+
kinds: I.kinds,
|
|
527
|
+
resources: w,
|
|
528
|
+
query: I.query,
|
|
529
|
+
setQuery: I.setQuery,
|
|
530
|
+
suggestions: I.suggestions,
|
|
531
|
+
loading: I.isLoading,
|
|
532
|
+
onSelect: I.pickSuggestion,
|
|
533
|
+
strings: {
|
|
534
|
+
title: C.composerReferenceMenuTitle,
|
|
535
|
+
searchPlaceholder: C.composerReferenceSearchPlaceholder,
|
|
536
|
+
empty: C.composerReferenceEmpty,
|
|
537
|
+
loading: C.composerReferenceLoading
|
|
538
|
+
}
|
|
539
|
+
})]
|
|
540
|
+
}),
|
|
541
|
+
/* @__PURE__ */ U("div", {
|
|
542
|
+
className: "comment-composer--editor relative",
|
|
543
|
+
children: [/* @__PURE__ */ H(te, {
|
|
544
|
+
ref: j,
|
|
545
|
+
value: N,
|
|
546
|
+
onValueChange: (e) => {
|
|
547
|
+
ie(e);
|
|
548
|
+
let t = M(e), n = I.mentions;
|
|
549
|
+
if (n.map((e) => e.id).join("|") !== t.map((e) => e.id).join("|")) {
|
|
550
|
+
let e = new Map(n.map((e) => [e.id, e])), r = t.map((t) => e.get(t.id) ?? t);
|
|
551
|
+
I.setMentions(r);
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
placeholder: x ?? C.composerPlaceholder,
|
|
555
|
+
strings: { editorLabel: x ?? C.composerPlaceholder },
|
|
556
|
+
minHeight: "3rem",
|
|
557
|
+
autoFocus: y || G || K,
|
|
558
|
+
extraToolbarItems: q,
|
|
559
|
+
toolbarTrailing: Z,
|
|
560
|
+
footerSlot: _e,
|
|
561
|
+
onCaretChange: I.handleCaretChange
|
|
562
|
+
}), /* @__PURE__ */ H(ne, {
|
|
563
|
+
open: I.triggerActive && I.pickerOpen,
|
|
564
|
+
activeKind: I.activeKind,
|
|
565
|
+
setActiveKind: (e) => {
|
|
566
|
+
I.setActiveKind(e), I.setManualKindOverride(!0);
|
|
567
|
+
},
|
|
568
|
+
kinds: I.kinds,
|
|
569
|
+
resources: w,
|
|
570
|
+
query: I.query,
|
|
571
|
+
suggestions: I.suggestions,
|
|
572
|
+
suggestionsByKind: I.suggestionsByKind,
|
|
573
|
+
loading: I.isLoading,
|
|
574
|
+
onSelect: I.pickSuggestion,
|
|
575
|
+
strings: {
|
|
576
|
+
title: C.composerReferenceMenuTitle,
|
|
577
|
+
empty: C.composerReferenceEmpty,
|
|
578
|
+
loading: C.composerReferenceLoading
|
|
579
|
+
}
|
|
580
|
+
})]
|
|
581
|
+
}),
|
|
582
|
+
P && /* @__PURE__ */ H(u, {
|
|
583
|
+
size: "xs",
|
|
584
|
+
type: "error",
|
|
585
|
+
children: P
|
|
586
|
+
}),
|
|
587
|
+
Q && /* @__PURE__ */ U(p, {
|
|
588
|
+
direction: "horizontal",
|
|
589
|
+
align: "center",
|
|
590
|
+
justify: "end",
|
|
591
|
+
gap: "md",
|
|
592
|
+
className: "comment-composer--footer-actions",
|
|
593
|
+
children: [ge, J]
|
|
594
|
+
})
|
|
595
|
+
]
|
|
596
|
+
});
|
|
597
|
+
});
|
|
598
|
+
function xe({ label: e, closeLabel: t, onClose: n }) {
|
|
599
|
+
return /* @__PURE__ */ U("div", {
|
|
600
|
+
className: "bg-muted/40 ring-border/60 flex items-center justify-between rounded px-2.5 py-1.5 ring-1 ring-inset",
|
|
601
|
+
children: [/* @__PURE__ */ H(d, { children: e }), n ? /* @__PURE__ */ H(s, {
|
|
602
|
+
type: "button",
|
|
603
|
+
tone: "secondary",
|
|
604
|
+
buttonStyle: "ghost",
|
|
605
|
+
size: "sm",
|
|
606
|
+
iconOnly: !0,
|
|
607
|
+
onClick: n,
|
|
608
|
+
className: "size-icon rounded p-0 text-muted-foreground hover:text-foreground",
|
|
609
|
+
"aria-label": t,
|
|
610
|
+
children: /* @__PURE__ */ H(q, { className: "size-icon-sm" })
|
|
611
|
+
}) : null]
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
function Se(e, t) {
|
|
615
|
+
return n(e, { name: t }, { missing: "empty" });
|
|
616
|
+
}
|
|
617
|
+
//#endregion
|
|
618
|
+
//#region src/components/features/comments/partials/comment-empty.tsx
|
|
619
|
+
var Q = ({ strings: e, icon: t, className: n }) => {
|
|
620
|
+
let r = Y(e);
|
|
621
|
+
return /* @__PURE__ */ H(k, {
|
|
622
|
+
title: r.empty,
|
|
623
|
+
description: r.emptyHint || !1,
|
|
624
|
+
media: t ?? /* @__PURE__ */ H(W, {
|
|
625
|
+
className: "size-icon",
|
|
626
|
+
"aria-hidden": "true"
|
|
627
|
+
}),
|
|
628
|
+
mediaVariant: "icon-soft",
|
|
629
|
+
padding: "md",
|
|
630
|
+
className: i("comment-empty--component", n)
|
|
631
|
+
});
|
|
632
|
+
};
|
|
633
|
+
//#endregion
|
|
634
|
+
//#region src/components/features/comments/partials/comment-content.tsx
|
|
635
|
+
function Ce(e) {
|
|
636
|
+
let { comment: t, resources: n, renderReference: r, sanitizer: i } = e, a = t.contentType ?? t.content_type ?? "text";
|
|
637
|
+
if (a === "rich") {
|
|
638
|
+
let e = we(t.content);
|
|
639
|
+
return e ? /* @__PURE__ */ H("div", {
|
|
640
|
+
className: "comment-content--component",
|
|
641
|
+
children: e
|
|
642
|
+
}) : null;
|
|
643
|
+
}
|
|
644
|
+
if (a === "html") return /* @__PURE__ */ H("div", {
|
|
645
|
+
className: "comment-content--component",
|
|
646
|
+
children: /* @__PURE__ */ H(j, {
|
|
647
|
+
html: t.content ?? "",
|
|
648
|
+
mentions: t.references,
|
|
649
|
+
resources: n,
|
|
650
|
+
renderMention: r,
|
|
651
|
+
sanitizer: i
|
|
652
|
+
})
|
|
653
|
+
});
|
|
654
|
+
let o = Ee(t.content ?? "");
|
|
655
|
+
return /* @__PURE__ */ H(u, {
|
|
656
|
+
className: "comment-content--component whitespace-pre-line",
|
|
657
|
+
children: o
|
|
658
|
+
});
|
|
659
|
+
}
|
|
660
|
+
function we(e) {
|
|
661
|
+
if (!e) return null;
|
|
662
|
+
try {
|
|
663
|
+
let t = JSON.parse(e);
|
|
664
|
+
return !t || !Array.isArray(t.blocks) || t.blocks.length === 0 ? null : /* @__PURE__ */ H(u, {
|
|
665
|
+
tag: "div",
|
|
666
|
+
className: _,
|
|
667
|
+
children: t.blocks.map((e, t) => /* @__PURE__ */ H(N, { children: Te(e) }, e.id ?? `${e.type}-${t}`))
|
|
668
|
+
});
|
|
669
|
+
} catch {
|
|
670
|
+
let t = Ee(e);
|
|
671
|
+
return /* @__PURE__ */ H(u, {
|
|
672
|
+
className: "whitespace-pre-line",
|
|
673
|
+
children: t
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
function Te(e) {
|
|
678
|
+
let t = e.data ?? {};
|
|
679
|
+
switch (e.type) {
|
|
680
|
+
case "paragraph": {
|
|
681
|
+
let e = String(t.text ?? "").trim();
|
|
682
|
+
if (!e) return null;
|
|
683
|
+
let n = g(e);
|
|
684
|
+
return n ? /* @__PURE__ */ H("p", { dangerouslySetInnerHTML: { __html: n } }) : null;
|
|
685
|
+
}
|
|
686
|
+
case "header": {
|
|
687
|
+
let e = $(String(t.text ?? "")), n = Number(t.level ?? 3);
|
|
688
|
+
return e ? ie(`h${Math.min(Math.max(n, 1), 6)}`, null, e) : null;
|
|
689
|
+
}
|
|
690
|
+
case "list": {
|
|
691
|
+
let e = (Array.isArray(t.items) ? t.items : []).map((e) => $(String(e ?? ""))).filter((e) => e.length > 0);
|
|
692
|
+
return e.length === 0 ? null : t.style === "ordered" ? /* @__PURE__ */ H("ol", { children: e.map((e, t) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(u, {
|
|
693
|
+
tag: "span",
|
|
694
|
+
children: e
|
|
695
|
+
}) }, `${e}-${t}`)) }) : /* @__PURE__ */ H("ul", { children: e.map((e) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(u, {
|
|
696
|
+
tag: "span",
|
|
697
|
+
children: e
|
|
698
|
+
}) }, e)) });
|
|
699
|
+
}
|
|
700
|
+
case "quote": {
|
|
701
|
+
let e = String(t.text ?? "").trim();
|
|
702
|
+
if (!e) return null;
|
|
703
|
+
let n = $(String(t.caption ?? ""));
|
|
704
|
+
return /* @__PURE__ */ U("blockquote", {
|
|
705
|
+
className: "italic",
|
|
706
|
+
children: [/* @__PURE__ */ H(v, {
|
|
707
|
+
tag: "div",
|
|
708
|
+
html: e,
|
|
709
|
+
type: "secondary"
|
|
710
|
+
}), n.length > 0 && /* @__PURE__ */ H("cite", {
|
|
711
|
+
className: "mt-1 block not-italic",
|
|
712
|
+
children: /* @__PURE__ */ U(u, {
|
|
713
|
+
tag: "span",
|
|
714
|
+
size: "xs",
|
|
715
|
+
type: "secondary",
|
|
716
|
+
className: "opacity-80",
|
|
717
|
+
children: ["— ", n]
|
|
718
|
+
})
|
|
719
|
+
})]
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
case "delimiter": return /* @__PURE__ */ H("hr", {
|
|
723
|
+
className: "border-dashed",
|
|
724
|
+
"aria-hidden": "true"
|
|
725
|
+
});
|
|
726
|
+
default: {
|
|
727
|
+
let e = $(String(t.text ?? ""));
|
|
728
|
+
return e ? /* @__PURE__ */ H("p", {
|
|
729
|
+
className: "whitespace-pre-line",
|
|
730
|
+
children: e
|
|
731
|
+
}) : null;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
function $(e) {
|
|
736
|
+
return e.replace(/<[^>]*>/g, "").trim();
|
|
737
|
+
}
|
|
738
|
+
function Ee(e) {
|
|
739
|
+
if (typeof e != "string") return "";
|
|
740
|
+
let t = e.trim();
|
|
741
|
+
if (t === "") return "";
|
|
742
|
+
if (t.startsWith("{") || t.startsWith("[")) return t;
|
|
743
|
+
try {
|
|
744
|
+
let e = JSON.parse(t);
|
|
745
|
+
if (typeof e == "string") return e;
|
|
746
|
+
} catch {}
|
|
747
|
+
return t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t;
|
|
748
|
+
}
|
|
749
|
+
//#endregion
|
|
750
|
+
//#region src/components/features/comments/partials/comment-item.tsx
|
|
751
|
+
var De = "?", Oe = (e) => e?.url, ke = (e) => e?.name, Ae = (e) => e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " "), je = F(function({ comment: e, canModerate: t, onDelete: r, onAttachmentRemove: d, onEdit: f, onPinToggle: g, onReact: _, onReply: v, allowReactions: y, allowReplies: b, sanitizer: x, strings: O, getMediaUrl: ee, getMediaName: k, getStatusLabel: te, formatRelativeTime: A, resources: ne, renderAttachment: j, renderReference: re }) {
|
|
752
|
+
let M = Y(O), N = y ?? !0, ie = b ?? !0, P = ge({
|
|
753
|
+
getMediaUrl: ee,
|
|
754
|
+
getMediaName: k,
|
|
755
|
+
getStatusLabel: te,
|
|
756
|
+
formatRelativeTime: A
|
|
757
|
+
}), F = P.getMediaUrl ?? Oe, L = P.getMediaName ?? ke, ae = P.getStatusLabel ?? Ae, z = P.formatRelativeTime, V = e.user?.name ?? M.fallbackAuthor, oe = e.user?.avatar ?? void 0, ce = R(() => {
|
|
758
|
+
if (!V) return De;
|
|
759
|
+
let e = V.trim();
|
|
760
|
+
return e === "" ? De : e.charAt(0).toUpperCase();
|
|
761
|
+
}, [V]), le = R(() => Array.isArray(e.tagsArray) ? e.tagsArray.filter((e) => typeof e == "string") : e.tagsArray && typeof e.tagsArray == "object" ? Object.values(e.tagsArray).filter((e) => typeof e == "string") : [], [e.tagsArray]), ue = R(() => (e.attachments ?? []).filter((e) => !!e && typeof e == "object"), [e.attachments]), de = N ? e.reactions ?? [] : [], W = e.isPinned === !0, fe = e.isEdited === !0, pe = e.status && e.status !== "active", q = pe && e.status ? ae(e.status) : null, X = e.canDelete === !0 || t === !0, _e = e.canEdit === !0 || t === !0, ye = !!ie && !!v && !!e.id, be = !!N && !!_ && !!e.id, Z = !!g && !!t, xe = !!_e && !!f && !!e.id, Se = !!X && !!r && !!e.id, Q = ye || be || Z || xe || Se, we = m(), [Te, $] = B(null), Ee = I((e) => {
|
|
762
|
+
$(e), we.show();
|
|
763
|
+
}, [we]), je = ue.length > 0;
|
|
764
|
+
return /* @__PURE__ */ U("article", {
|
|
765
|
+
className: i("comment-item--component group relative overflow-hidden rounded-radius border transition-colors", "border-border/60 bg-card hover:bg-muted/30 px-3 py-2.5"),
|
|
766
|
+
"data-comment-id": e.id,
|
|
767
|
+
children: [/* @__PURE__ */ U(p, {
|
|
768
|
+
direction: "horizontal",
|
|
769
|
+
align: "start",
|
|
770
|
+
gap: "lg",
|
|
771
|
+
className: "min-w-0",
|
|
772
|
+
children: [/* @__PURE__ */ U(T, {
|
|
773
|
+
className: "mt-0.5 size-avatar shrink-0",
|
|
774
|
+
children: [!!oe && /* @__PURE__ */ H(E, {
|
|
775
|
+
src: oe,
|
|
776
|
+
alt: V
|
|
777
|
+
}), /* @__PURE__ */ H(w, {
|
|
778
|
+
className: "bg-muted text-muted-foreground text-xs font-medium",
|
|
779
|
+
children: ce
|
|
780
|
+
})]
|
|
781
|
+
}), /* @__PURE__ */ U("div", {
|
|
782
|
+
className: "comment-item--body min-w-0 flex-1",
|
|
783
|
+
children: [
|
|
784
|
+
/* @__PURE__ */ U(p, {
|
|
785
|
+
direction: "horizontal",
|
|
786
|
+
align: "baseline",
|
|
787
|
+
gap: "md",
|
|
788
|
+
className: "min-w-0",
|
|
789
|
+
children: [
|
|
790
|
+
/* @__PURE__ */ H(u, {
|
|
791
|
+
tag: "span",
|
|
792
|
+
weight: "semibold",
|
|
793
|
+
className: "truncate",
|
|
794
|
+
children: V
|
|
795
|
+
}),
|
|
796
|
+
!!W && /* @__PURE__ */ H(a, {
|
|
797
|
+
delayDuration: 0,
|
|
798
|
+
children: /* @__PURE__ */ U(c, { children: [/* @__PURE__ */ H(o, {
|
|
799
|
+
render: /* @__PURE__ */ H("span", { className: "inline-flex shrink-0 self-center" }),
|
|
800
|
+
children: /* @__PURE__ */ H(K, {
|
|
801
|
+
className: "text-warning size-icon-sm",
|
|
802
|
+
"aria-hidden": !0
|
|
803
|
+
})
|
|
804
|
+
}), /* @__PURE__ */ H(l, {
|
|
805
|
+
side: "top",
|
|
806
|
+
className: "text-xs",
|
|
807
|
+
children: M.pinned
|
|
808
|
+
})] })
|
|
809
|
+
}),
|
|
810
|
+
/* @__PURE__ */ H(C, {
|
|
811
|
+
value: e.createdAt,
|
|
812
|
+
formatRelativeTime: z,
|
|
813
|
+
size: "xs",
|
|
814
|
+
className: "shrink-0 tabular-nums"
|
|
815
|
+
}),
|
|
816
|
+
!!fe && /* @__PURE__ */ H(u, {
|
|
817
|
+
tag: "span",
|
|
818
|
+
size: "xs",
|
|
819
|
+
type: "secondary",
|
|
820
|
+
className: "shrink-0",
|
|
821
|
+
children: M.edited
|
|
822
|
+
}),
|
|
823
|
+
!!pe && !!q && /* @__PURE__ */ H(D, {
|
|
824
|
+
size: "sm",
|
|
825
|
+
tone: "secondary",
|
|
826
|
+
className: "self-center",
|
|
827
|
+
children: q
|
|
828
|
+
})
|
|
829
|
+
]
|
|
830
|
+
}),
|
|
831
|
+
/* @__PURE__ */ H("div", {
|
|
832
|
+
className: "mt-1 leading-relaxed",
|
|
833
|
+
children: /* @__PURE__ */ H(Ce, {
|
|
834
|
+
comment: e,
|
|
835
|
+
resources: ne,
|
|
836
|
+
renderReference: re,
|
|
837
|
+
sanitizer: x
|
|
838
|
+
})
|
|
839
|
+
}),
|
|
840
|
+
le.length > 0 && /* @__PURE__ */ H("div", {
|
|
841
|
+
className: "mt-space-md flex flex-wrap gap-space-sm",
|
|
842
|
+
children: le.map((e) => /* @__PURE__ */ H(D, {
|
|
843
|
+
size: "sm",
|
|
844
|
+
tone: "secondary",
|
|
845
|
+
children: e
|
|
846
|
+
}, e))
|
|
847
|
+
}),
|
|
848
|
+
je && /* @__PURE__ */ H("div", {
|
|
849
|
+
className: "mt-space-md flex flex-wrap gap-space-sm",
|
|
850
|
+
children: ue.map((e) => {
|
|
851
|
+
if (j) return /* @__PURE__ */ H("div", { children: j(e) }, e.id ?? e.name);
|
|
852
|
+
let t = !!d && !!e.id && X;
|
|
853
|
+
return /* @__PURE__ */ H(ve, {
|
|
854
|
+
attachment: e,
|
|
855
|
+
editable: t,
|
|
856
|
+
onRemove: t ? () => Ee(e.id) : void 0,
|
|
857
|
+
accessors: {
|
|
858
|
+
getMediaUrl: F,
|
|
859
|
+
getMediaName: L
|
|
860
|
+
},
|
|
861
|
+
strings: O
|
|
862
|
+
}, e.id ?? e.name);
|
|
863
|
+
})
|
|
864
|
+
}),
|
|
865
|
+
de.length > 0 && /* @__PURE__ */ H(p, {
|
|
866
|
+
direction: "horizontal",
|
|
867
|
+
wrap: !0,
|
|
868
|
+
align: "center",
|
|
869
|
+
gap: "xs",
|
|
870
|
+
className: "mt-space-md",
|
|
871
|
+
children: de.map((t) => /* @__PURE__ */ H(s, {
|
|
872
|
+
type: "button",
|
|
873
|
+
"aria-label": n(M.reactionLabel ?? J.reactionLabel, {
|
|
874
|
+
emoji: t.emoji,
|
|
875
|
+
count: t.count
|
|
876
|
+
}),
|
|
877
|
+
"aria-pressed": t.mine ?? !1,
|
|
878
|
+
tone: "secondary",
|
|
879
|
+
buttonStyle: "ghost",
|
|
880
|
+
size: "sm",
|
|
881
|
+
onClick: () => _ && e.id ? _(e.id, t.emoji) : void 0,
|
|
882
|
+
title: t.users?.join(", "),
|
|
883
|
+
className: "h-auto rounded-full p-0",
|
|
884
|
+
children: /* @__PURE__ */ U(D, {
|
|
885
|
+
size: "sm",
|
|
886
|
+
tone: t.mine ? "primary" : "secondary",
|
|
887
|
+
className: "cursor-pointer transition-colors hover:opacity-90",
|
|
888
|
+
children: [/* @__PURE__ */ H(u, {
|
|
889
|
+
tag: "span",
|
|
890
|
+
size: "inherit",
|
|
891
|
+
lineHeight: "none",
|
|
892
|
+
className: "text-inherit",
|
|
893
|
+
"aria-hidden": !0,
|
|
894
|
+
children: t.emoji
|
|
895
|
+
}), /* @__PURE__ */ H(S, {
|
|
896
|
+
value: t.count,
|
|
897
|
+
size: "inherit",
|
|
898
|
+
align: "left",
|
|
899
|
+
className: "tabular-nums text-current"
|
|
900
|
+
})]
|
|
901
|
+
})
|
|
902
|
+
}, t.emoji))
|
|
903
|
+
}),
|
|
904
|
+
Q && /* @__PURE__ */ U("div", {
|
|
905
|
+
className: i("comment-item--actions relative mt-space-md ms-auto w-fit max-w-full flex-wrap opacity-100 transition-opacity", "group-hover:opacity-100 focus-within:opacity-100", "inline-flex items-center gap-space-2xs rounded-radius-md bg-card/95 shadow-sm ring-1 ring-border/70"),
|
|
906
|
+
children: [
|
|
907
|
+
ye && /* @__PURE__ */ H(s, {
|
|
908
|
+
type: "button",
|
|
909
|
+
size: "sm",
|
|
910
|
+
iconOnly: !0,
|
|
911
|
+
tone: "secondary",
|
|
912
|
+
buttonStyle: "ghost",
|
|
913
|
+
onClick: () => e.id && v(e.id),
|
|
914
|
+
title: M.replyLabel,
|
|
915
|
+
"aria-label": M.replyLabel,
|
|
916
|
+
children: /* @__PURE__ */ H(se, { className: "size-icon-md" })
|
|
917
|
+
}),
|
|
918
|
+
be && /* @__PURE__ */ H(s, {
|
|
919
|
+
type: "button",
|
|
920
|
+
size: "sm",
|
|
921
|
+
iconOnly: !0,
|
|
922
|
+
tone: "secondary",
|
|
923
|
+
buttonStyle: "ghost",
|
|
924
|
+
onClick: () => e.id && _(e.id, "👍"),
|
|
925
|
+
title: M.addReactionLabel,
|
|
926
|
+
"aria-label": M.addReactionLabel,
|
|
927
|
+
children: /* @__PURE__ */ H(me, { className: "size-icon-md" })
|
|
928
|
+
}),
|
|
929
|
+
Z && /* @__PURE__ */ H(s, {
|
|
930
|
+
type: "button",
|
|
931
|
+
size: "sm",
|
|
932
|
+
iconOnly: !0,
|
|
933
|
+
tone: "secondary",
|
|
934
|
+
buttonStyle: "ghost",
|
|
935
|
+
onClick: () => g(e),
|
|
936
|
+
title: W ? M.unpinLabel : M.pinLabel,
|
|
937
|
+
"aria-label": W ? M.unpinLabel : M.pinLabel,
|
|
938
|
+
children: /* @__PURE__ */ H(K, { className: i("size-icon-md", W && "text-warning") })
|
|
939
|
+
}),
|
|
940
|
+
xe && /* @__PURE__ */ H(s, {
|
|
941
|
+
type: "button",
|
|
942
|
+
size: "sm",
|
|
943
|
+
iconOnly: !0,
|
|
944
|
+
tone: "secondary",
|
|
945
|
+
buttonStyle: "ghost",
|
|
946
|
+
title: M.editLabel,
|
|
947
|
+
"aria-label": M.editLabel,
|
|
948
|
+
onClick: () => f(e),
|
|
949
|
+
children: /* @__PURE__ */ H(G, { className: "size-icon-md" })
|
|
950
|
+
}),
|
|
951
|
+
Se && /* @__PURE__ */ H(s, {
|
|
952
|
+
type: "button",
|
|
953
|
+
size: "sm",
|
|
954
|
+
iconOnly: !0,
|
|
955
|
+
tone: "secondary",
|
|
956
|
+
buttonStyle: "ghost",
|
|
957
|
+
className: "hover:bg-destructive/10 hover:text-destructive",
|
|
958
|
+
onClick: () => r(e.id),
|
|
959
|
+
title: M.deleteLabel,
|
|
960
|
+
"aria-label": M.deleteLabel,
|
|
961
|
+
children: /* @__PURE__ */ H(he, { className: "size-icon-md" })
|
|
962
|
+
})
|
|
963
|
+
]
|
|
964
|
+
})
|
|
965
|
+
]
|
|
966
|
+
})]
|
|
967
|
+
}), !!d && /* @__PURE__ */ H(h, {
|
|
968
|
+
...we.overlayProps,
|
|
969
|
+
destructive: !0,
|
|
970
|
+
title: M.confirmRemoveAttachmentTitle,
|
|
971
|
+
description: M.confirmRemoveAttachmentDescription,
|
|
972
|
+
strings: { confirm: M.attachmentRemoveLabel },
|
|
973
|
+
onConfirm: () => {
|
|
974
|
+
Te && e.id && d(e.id, Te);
|
|
975
|
+
}
|
|
976
|
+
})]
|
|
977
|
+
});
|
|
978
|
+
}), Me = function({ comments: e, canModerate: t, onDelete: n, onAttachmentRemove: r, onEdit: i, onPinToggle: a, onReact: o, onReply: s, allowReactions: c, allowReplies: l, sanitizer: u, strings: d, getMediaUrl: f, getMediaName: m, getStatusLabel: h, formatRelativeTime: g, resources: _, renderItem: v, renderAttachment: y, renderReference: b, emptySlot: x }) {
|
|
979
|
+
return e.length ? /* @__PURE__ */ H(p, {
|
|
980
|
+
gap: "sm",
|
|
981
|
+
className: "comment-timeline--component",
|
|
982
|
+
children: e.map((e, p) => {
|
|
983
|
+
let x = /* @__PURE__ */ H(je, {
|
|
984
|
+
comment: e,
|
|
985
|
+
canModerate: t,
|
|
986
|
+
onDelete: n,
|
|
987
|
+
onAttachmentRemove: r,
|
|
988
|
+
onEdit: i,
|
|
989
|
+
onPinToggle: a,
|
|
990
|
+
onReact: o,
|
|
991
|
+
onReply: s,
|
|
992
|
+
allowReactions: c,
|
|
993
|
+
allowReplies: l,
|
|
994
|
+
sanitizer: u,
|
|
995
|
+
strings: d,
|
|
996
|
+
getMediaUrl: f,
|
|
997
|
+
getMediaName: m,
|
|
998
|
+
getStatusLabel: h,
|
|
999
|
+
formatRelativeTime: g,
|
|
1000
|
+
resources: _,
|
|
1001
|
+
renderAttachment: y,
|
|
1002
|
+
renderReference: b
|
|
1003
|
+
});
|
|
1004
|
+
return v ? /* @__PURE__ */ H("div", { children: v({
|
|
1005
|
+
comment: e,
|
|
1006
|
+
canModerate: t ?? !1,
|
|
1007
|
+
onDelete: n,
|
|
1008
|
+
onAttachmentRemove: r,
|
|
1009
|
+
onEdit: i,
|
|
1010
|
+
defaultItem: x
|
|
1011
|
+
}) }, e.id ?? `comment-${p}`) : /* @__PURE__ */ H("div", { children: x }, e.id ?? `comment-${p}`);
|
|
1012
|
+
})
|
|
1013
|
+
}) : /* @__PURE__ */ H(V, { children: x ?? /* @__PURE__ */ H(Q, { strings: d }) });
|
|
1014
|
+
};
|
|
1015
|
+
//#endregion
|
|
1016
|
+
//#region src/components/features/comments/comments.tsx
|
|
1017
|
+
function Ne(t) {
|
|
1018
|
+
let n = e(), r = t.composerPosition ?? n.composerPosition ?? "top", a = t.maxAttachments ?? 5, o = t.allowAttachments ?? !0, s = t.allowReactions ?? !0, c = t.allowReplies ?? !0, l = t.canComment ?? !1, d = t.canModerate ?? !1, f = t.onPinToggle, g = t.resources, _ = t.attachments, v = Y(t.strings), y = t.title === void 0 ? v.title : t.title, b = t.confirmDelete ?? !0, x = m(), [S, C] = B(null), w = X({
|
|
1019
|
+
onSubmit: t.onSubmit,
|
|
1020
|
+
onUpdate: t.onUpdate,
|
|
1021
|
+
onDelete: t.onDelete,
|
|
1022
|
+
onAfterMutate: t.onAfterMutate,
|
|
1023
|
+
onError: t.onError
|
|
1024
|
+
}), T = I((e) => {
|
|
1025
|
+
if (!b) {
|
|
1026
|
+
w.deleteComment(e);
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
C(e), x.show();
|
|
1030
|
+
}, [
|
|
1031
|
+
b,
|
|
1032
|
+
w,
|
|
1033
|
+
x
|
|
1034
|
+
]), E = w.startReply, D = t.comments, O = t.onReply, ee = I((e) => {
|
|
1035
|
+
let t = D.find((t) => t.id === e);
|
|
1036
|
+
t && E(t), O?.(e);
|
|
1037
|
+
}, [
|
|
1038
|
+
D,
|
|
1039
|
+
O,
|
|
1040
|
+
E
|
|
1041
|
+
]), k = w.composerMode.kind === "editing" ? w.composerMode.comment : void 0, te = w.composerMode.kind === "replying" ? {
|
|
1042
|
+
commentId: w.composerMode.commentId,
|
|
1043
|
+
authorName: w.composerMode.authorName
|
|
1044
|
+
} : void 0, A = t.composerSlot ?? (l ? /* @__PURE__ */ H(Z, {
|
|
1045
|
+
context: t.context,
|
|
1046
|
+
canComment: l,
|
|
1047
|
+
submitting: w.isSubmitting,
|
|
1048
|
+
errors: w.formErrors,
|
|
1049
|
+
resetKey: w.resetKey,
|
|
1050
|
+
editingComment: k,
|
|
1051
|
+
replyingTo: te,
|
|
1052
|
+
onCancel: w.composerMode.kind === "idle" ? void 0 : w.cancelComposerMode,
|
|
1053
|
+
onSubmit: w.submit,
|
|
1054
|
+
strings: t.strings,
|
|
1055
|
+
resources: g,
|
|
1056
|
+
onResourceSearch: t.onResourceSearch,
|
|
1057
|
+
attachments: _,
|
|
1058
|
+
maxAttachments: a,
|
|
1059
|
+
allowAttachments: o
|
|
1060
|
+
}) : null), ne = /* @__PURE__ */ H(Me, {
|
|
1061
|
+
comments: t.comments,
|
|
1062
|
+
canModerate: d,
|
|
1063
|
+
onDelete: t.onDelete ? T : void 0,
|
|
1064
|
+
onAttachmentRemove: t.onAttachmentRemove,
|
|
1065
|
+
onEdit: l && t.onUpdate ? w.startEdit : void 0,
|
|
1066
|
+
onPinToggle: f,
|
|
1067
|
+
onReact: t.onReact,
|
|
1068
|
+
onReply: l && c ? ee : void 0,
|
|
1069
|
+
allowReactions: s,
|
|
1070
|
+
allowReplies: c,
|
|
1071
|
+
sanitizer: t.sanitizer,
|
|
1072
|
+
strings: t.strings,
|
|
1073
|
+
getMediaUrl: t.getMediaUrl,
|
|
1074
|
+
getMediaName: t.getMediaName,
|
|
1075
|
+
getStatusLabel: t.getStatusLabel,
|
|
1076
|
+
formatRelativeTime: t.formatRelativeTime,
|
|
1077
|
+
resources: g,
|
|
1078
|
+
renderItem: t.renderItem,
|
|
1079
|
+
renderAttachment: t.renderAttachment,
|
|
1080
|
+
renderReference: t.renderReference,
|
|
1081
|
+
emptySlot: t.emptySlot ?? /* @__PURE__ */ H(Q, { strings: t.strings })
|
|
1082
|
+
}), j = A ? /* @__PURE__ */ H("div", { children: A }) : null, re = /* @__PURE__ */ U(p, {
|
|
1083
|
+
gap: "xl",
|
|
1084
|
+
className: "comments--body",
|
|
1085
|
+
children: [
|
|
1086
|
+
t.headerSlot,
|
|
1087
|
+
r === "top" && j,
|
|
1088
|
+
ne,
|
|
1089
|
+
r === "bottom" && j,
|
|
1090
|
+
t.footerSlot
|
|
1091
|
+
]
|
|
1092
|
+
});
|
|
1093
|
+
if (t.bare) return re;
|
|
1094
|
+
let M = typeof y == "string" ? y : void 0;
|
|
1095
|
+
return /* @__PURE__ */ U(p, {
|
|
1096
|
+
render: /* @__PURE__ */ H("section", {}),
|
|
1097
|
+
gap: "lg",
|
|
1098
|
+
"data-component": "comments",
|
|
1099
|
+
"data-slot": "comments",
|
|
1100
|
+
className: i("comments--component", t.className),
|
|
1101
|
+
"aria-label": M,
|
|
1102
|
+
children: [
|
|
1103
|
+
!(y === !1 || !y && !v.subtitle) && /* @__PURE__ */ U(p, {
|
|
1104
|
+
gap: "normal",
|
|
1105
|
+
className: "comments--header",
|
|
1106
|
+
children: [!!y && /* @__PURE__ */ H(u, {
|
|
1107
|
+
weight: "semibold",
|
|
1108
|
+
children: y
|
|
1109
|
+
}), !!v.subtitle && /* @__PURE__ */ H(u, {
|
|
1110
|
+
type: "secondary",
|
|
1111
|
+
children: v.subtitle
|
|
1112
|
+
})]
|
|
1113
|
+
}),
|
|
1114
|
+
re,
|
|
1115
|
+
!!(b && t.onDelete) && /* @__PURE__ */ H(h, {
|
|
1116
|
+
...x.overlayProps,
|
|
1117
|
+
destructive: !0,
|
|
1118
|
+
title: v.confirmDeleteTitle,
|
|
1119
|
+
description: v.confirmDeleteDescription,
|
|
1120
|
+
strings: { confirm: v.confirmDeleteLabel },
|
|
1121
|
+
onAsyncConfirm: async () => {
|
|
1122
|
+
S && await w.deleteComment(S);
|
|
1123
|
+
},
|
|
1124
|
+
onError: t.onError
|
|
1125
|
+
})
|
|
1126
|
+
]
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
//#endregion
|
|
1130
|
+
export { Q as a, ye as c, ge as d, Y as f, Ce as i, ve as l, Me as n, Z as o, J as p, je as r, Se as s, Ne as t, X as u };
|
|
1131
|
+
|
|
1132
|
+
//# sourceMappingURL=comments-CvYeglMS.js.map
|