@alfadocs/ui-kit 0.1.8 → 0.1.9
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/dist/_chunks/{accordion-B6fyINUk.js → accordion-BEnrZmAn.js} +34 -32
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +52 -0
- package/dist/_chunks/{agenda-card-DIWDvWum.js → agenda-card-DwLIxgi7.js} +2 -1
- package/dist/_chunks/agenda-card.agent-B_R47-c9.js +22 -0
- package/dist/_chunks/agenda-tray-DUvengGQ.js +178 -0
- package/dist/_chunks/ai-prompt-input.agent-0NHYLTWD.js +476 -0
- package/dist/_chunks/{aspect-ratio-CxsdG8vk.js → aspect-ratio-DeSNzASA.js} +12 -12
- package/dist/_chunks/audio-recorder.agent--VKeykUp.js +458 -0
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +432 -0
- package/dist/_chunks/{balance-cell-renderer-BWm3knY9.js → balance-cell-renderer-5CA7zpAi.js} +3 -3
- package/dist/_chunks/breadcrumb.agent-GM2hAKFX.js +371 -0
- package/dist/_chunks/{chart.agent-BdS-_8MO.js → chart.agent-_pRYS17d.js} +112 -105
- package/dist/_chunks/{chat-container-Cm3SlR2p.js → chat-container-Dl0Kfy5a.js} +33 -32
- package/dist/_chunks/{chat-container.agent-Dhw9xCJt.js → chat-container.agent-CM4WModE.js} +9 -4
- package/dist/_chunks/{chat-input-DreOPP8A.js → chat-input-C_tMQv92.js} +108 -82
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +69 -0
- package/dist/_chunks/checkbox-CtPM6Rup.js +196 -0
- package/dist/_chunks/checkbox-group-BTdEB6Yo.js +208 -0
- package/dist/_chunks/collapsible.agent-DkS1jVyn.js +149 -0
- package/dist/_chunks/{color-picker-e9PmpaGH.js → color-picker-94qcBZqZ.js} +234 -184
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +410 -0
- package/dist/_chunks/{command-palette.agent-js2rxgeR.js → command-palette.agent-HatEt_EM.js} +161 -121
- package/dist/_chunks/date-picker-BqPTn7bO.js +1813 -0
- package/dist/_chunks/date-range-picker-B2hGsffw.js +274 -0
- package/dist/_chunks/date-time-picker-Bzt0S8yO.js +293 -0
- package/dist/_chunks/dialog.agent-Daf1TTko.js +179 -0
- package/dist/_chunks/{dropdown-menu-Cw3EyPZv.js → dropdown-menu-C7AZipNz.js} +75 -71
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +43 -0
- package/dist/_chunks/{file-upload.agent-B9AN82LA.js → file-upload.agent-DJaH2dHg.js} +275 -243
- package/dist/_chunks/freemium-paywall.agent-_nQqLyRF.js +260 -0
- package/dist/_chunks/{leo-sidebar-nbHib2D-.js → leo-sidebar-BwINPdix.js} +6 -6
- package/dist/_chunks/link-QheANk74.js +121 -0
- package/dist/_chunks/list.agent-D0iWt4VI.js +420 -0
- package/dist/_chunks/{message-card-qAp2-WQK.js → message-card-qhoGv947.js} +2 -1
- package/dist/_chunks/message-card.agent-4IeIgrnJ.js +22 -0
- package/dist/_chunks/message-tray-xHUCra-Y.js +419 -0
- package/dist/_chunks/{multi-select.agent-CNsyW3n9.js → multi-select.agent-Do6CeQUT.js} +239 -179
- package/dist/_chunks/navigation-menu.agent-D69ND6Qq.js +266 -0
- package/dist/_chunks/{notification-card-BF2_veHy.js → notification-card-CsVEYJE-.js} +13 -12
- package/dist/_chunks/notification-card.agent-Rqt3ofk9.js +22 -0
- package/dist/_chunks/notification-tray-DTXMq42J.js +444 -0
- package/dist/_chunks/number-input-fvGmnRy9.js +333 -0
- package/dist/_chunks/otp-input-EglXOUue.js +257 -0
- package/dist/_chunks/pagination.agent-BkZQl45y.js +422 -0
- package/dist/_chunks/password-input-D6kuYXmr.js +304 -0
- package/dist/_chunks/{patient-shell-7cXqIMFg.js → patient-shell-BRmrrUUW.js} +3 -3
- package/dist/_chunks/{payment-form-hcl-gGrp.js → payment-form-BWaXas8z.js} +120 -118
- package/dist/_chunks/{payment-form.agent-BkEnRerR.js → payment-form.agent-kuIfodCj.js} +7 -2
- package/dist/_chunks/{pdf-viewer.agent-CfIHhcHx.js → pdf-viewer.agent-BaGEDheA.js} +358 -351
- package/dist/_chunks/phone-input-C8Op4sEc.js +513 -0
- package/dist/_chunks/popover-kFN8s84V.js +229 -0
- package/dist/_chunks/popover.agent-K_d1cfbj.js +39 -0
- package/dist/_chunks/privacy-lock.agent-C1i1-T58.js +185 -0
- package/dist/_chunks/progress-wNsqkw8I.js +253 -0
- package/dist/_chunks/progress.agent-C68rDOXL.js +27 -0
- package/dist/_chunks/{radio-cs8N1wJi.js → radio-DvF59ThA.js} +14 -13
- package/dist/_chunks/radio-group-Cz1a4QCA.js +152 -0
- package/dist/_chunks/recaptcha-widget.agent-BGHpU5zD.js +183 -0
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +456 -0
- package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js} +221 -214
- package/dist/_chunks/search-bar.agent-DxFAxctc.js +562 -0
- package/dist/_chunks/search-input-Xw3cdWXW.js +227 -0
- package/dist/_chunks/search-input.agent-CfZvViOd.js +69 -0
- package/dist/_chunks/select-DY1Cb2Tg.js +410 -0
- package/dist/_chunks/{sheet-BhNpLHc9.js → sheet-B9kH9pcI.js} +55 -54
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +46 -0
- package/dist/_chunks/{sidebar-OVzwN3jE.js → sidebar-CHF5xr_P.js} +188 -185
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +49 -0
- package/dist/_chunks/{signature-capture.agent-C38VPXxg.js → signature-capture.agent-BpeDwFht.js} +127 -120
- package/dist/_chunks/slider-CcsQTZTA.js +322 -0
- package/dist/_chunks/sparkline.agent-56Sj7nOP.js +245 -0
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +322 -0
- package/dist/_chunks/stepper-calendar.agent-9iT3ClIB.js +646 -0
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +149 -0
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +61 -0
- package/dist/_chunks/suggestion-chip-DhFrkRPj.js +169 -0
- package/dist/_chunks/suggestion-chip.agent-6sNWFj7m.js +46 -0
- package/dist/_chunks/switch-BYEH8I53.js +196 -0
- package/dist/_chunks/{tabs.agent-BpbVA-Zh.js → tabs.agent-h7NvsTR1.js} +146 -123
- package/dist/_chunks/{task-card-yW7tKlG4.js → task-card-CY5ztNkU.js} +2 -1
- package/dist/_chunks/task-card.agent-CUPKYd7w.js +22 -0
- package/dist/_chunks/task-tray-CCoUdorl.js +194 -0
- package/dist/_chunks/text-area-C_M8wliK.js +239 -0
- package/dist/_chunks/text-input-BX39e6T6.js +272 -0
- package/dist/_chunks/theme-toggle.agent-btmXTWdW.js +394 -0
- package/dist/_chunks/time-picker-B8AMIrX7.js +410 -0
- package/dist/_chunks/timeline.agent-CRPza9wc.js +279 -0
- package/dist/_chunks/{toast-lOhJDKOH.js → toast.agent-BjEGuq1Z.js} +403 -342
- package/dist/_chunks/{tooth-scheme.agent-BlDyu-Gx.js → tooth-scheme.agent-CWrQBjJM.js} +218 -211
- package/dist/_chunks/transcript-panel.agent-BXEYP6w-.js +337 -0
- package/dist/_chunks/{workflow-map-XeqHDFvp.js → workflow-map-D2A7rTEG.js} +465 -368
- package/dist/agent-catalog.json +2929 -268
- package/dist/components/accordion/accordion.agent.d.ts +2 -1
- package/dist/components/accordion/accordion.d.ts +6 -0
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-card/agenda-card.agent.d.ts +3 -0
- package/dist/components/agenda-card/index.d.ts +1 -0
- package/dist/components/agenda-card/index.js +3 -1
- package/dist/components/agenda-tray/agenda-tray.agent.d.ts +4 -0
- package/dist/components/agenda-tray/agenda-tray.d.ts +19 -2
- package/dist/components/agenda-tray/index.d.ts +2 -1
- package/dist/components/agenda-tray/index.js +3 -2
- package/dist/components/ai-prompt-input/ai-prompt-input.agent.d.ts +4 -0
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +18 -1
- package/dist/components/ai-prompt-input/index.d.ts +2 -1
- package/dist/components/ai-prompt-input/index.js +3 -2
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/audio-recorder.agent.d.ts +4 -0
- package/dist/components/audio-recorder/audio-recorder.d.ts +10 -1
- package/dist/components/audio-recorder/index.d.ts +2 -1
- package/dist/components/audio-recorder/index.js +3 -2
- package/dist/components/autocomplete/autocomplete.agent.d.ts +2 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.agent.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +21 -2
- package/dist/components/breadcrumb/index.d.ts +2 -1
- package/dist/components/breadcrumb/index.js +5 -4
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +3 -1
- package/dist/components/chat-container/index.js +2 -2
- package/dist/components/chat-input/chat-input.agent.d.ts +4 -0
- package/dist/components/chat-input/chat-input.d.ts +10 -1
- package/dist/components/chat-input/index.d.ts +2 -1
- package/dist/components/chat-input/index.js +4 -2
- package/dist/components/checkbox/checkbox.agent.d.ts +4 -0
- package/dist/components/checkbox/checkbox.d.ts +6 -0
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.agent.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/collapsible.agent.d.ts +4 -0
- package/dist/components/collapsible/collapsible.d.ts +8 -1
- package/dist/components/collapsible/index.d.ts +2 -1
- package/dist/components/collapsible/index.js +4 -3
- package/dist/components/color-picker/color-picker.agent.d.ts +4 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.agent.d.ts +2 -1
- package/dist/components/combobox/combobox.d.ts +10 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.agent.d.ts +2 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -0
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.agent.d.ts +4 -0
- package/dist/components/date-picker/date-picker.d.ts +16 -1
- package/dist/components/date-picker/index.d.ts +2 -1
- package/dist/components/date-picker/index.js +3 -2
- package/dist/components/date-range-picker/date-range-picker.agent.d.ts +4 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +16 -1
- package/dist/components/date-range-picker/index.d.ts +2 -1
- package/dist/components/date-range-picker/index.js +3 -2
- package/dist/components/date-time-picker/date-time-picker.agent.d.ts +4 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +16 -1
- package/dist/components/date-time-picker/index.d.ts +2 -1
- package/dist/components/date-time-picker/index.js +3 -2
- package/dist/components/dialog/dialog.agent.d.ts +5 -6
- package/dist/components/dialog/dialog.d.ts +11 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts +2 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +10 -2
- package/dist/components/dropdown-menu/index.js +2 -2
- package/dist/components/file-upload/file-upload.agent.d.ts +2 -1
- package/dist/components/file-upload/file-upload.d.ts +12 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.agent.d.ts +4 -0
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +8 -1
- package/dist/components/freemium-paywall/index.d.ts +2 -1
- package/dist/components/freemium-paywall/index.js +3 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.js +5 -0
- package/dist/components/link/link.d.ts +39 -0
- package/dist/components/list/index.d.ts +2 -1
- package/dist/components/list/index.js +3 -2
- package/dist/components/list/list.agent.d.ts +4 -0
- package/dist/components/list/list.d.ts +8 -2
- package/dist/components/message-card/index.d.ts +1 -0
- package/dist/components/message-card/index.js +5 -3
- package/dist/components/message-card/message-card.agent.d.ts +3 -0
- package/dist/components/message-tray/index.d.ts +2 -1
- package/dist/components/message-tray/index.js +3 -2
- package/dist/components/message-tray/message-tray.agent.d.ts +4 -0
- package/dist/components/message-tray/message-tray.d.ts +27 -2
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.agent.d.ts +2 -1
- package/dist/components/multi-select/multi-select.d.ts +10 -0
- package/dist/components/navigation-menu/index.d.ts +2 -1
- package/dist/components/navigation-menu/index.js +7 -6
- package/dist/components/navigation-menu/navigation-menu.agent.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +28 -2
- package/dist/components/notification-card/index.d.ts +1 -0
- package/dist/components/notification-card/index.js +5 -3
- package/dist/components/notification-card/notification-card.agent.d.ts +3 -0
- package/dist/components/notification-tray/index.d.ts +2 -1
- package/dist/components/notification-tray/index.js +3 -2
- package/dist/components/notification-tray/notification-tray.agent.d.ts +4 -0
- package/dist/components/notification-tray/notification-tray.d.ts +27 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.agent.d.ts +4 -0
- package/dist/components/number-input/number-input.d.ts +7 -0
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.agent.d.ts +4 -0
- package/dist/components/otp-input/otp-input.d.ts +10 -0
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination.agent.d.ts +2 -1
- package/dist/components/pagination/pagination.d.ts +7 -0
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/password-input.agent.d.ts +4 -0
- package/dist/components/password-input/password-input.d.ts +9 -0
- package/dist/components/payment-form/index.js +2 -2
- package/dist/components/payment-form/payment-form.d.ts +2 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +2 -0
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.agent.d.ts +4 -0
- package/dist/components/phone-input/phone-input.d.ts +7 -0
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.agent.d.ts +2 -1
- package/dist/components/popover/popover.d.ts +8 -1
- package/dist/components/privacy-lock/index.d.ts +2 -1
- package/dist/components/privacy-lock/index.js +3 -2
- package/dist/components/privacy-lock/privacy-lock.agent.d.ts +4 -0
- package/dist/components/privacy-lock/privacy-lock.d.ts +7 -1
- package/dist/components/progress/index.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group.agent.d.ts +4 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/recaptcha-widget/index.d.ts +3 -0
- package/dist/components/recaptcha-widget/index.js +6 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.agent.d.ts +4 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +56 -0
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/resizable/resizable.agent.d.ts +2 -1
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/search-bar/index.d.ts +2 -1
- package/dist/components/search-bar/index.js +3 -2
- package/dist/components/search-bar/search-bar.agent.d.ts +4 -0
- package/dist/components/search-bar/search-bar.d.ts +27 -1
- package/dist/components/search-input/index.d.ts +2 -1
- package/dist/components/search-input/index.js +4 -2
- package/dist/components/search-input/search-input.agent.d.ts +4 -0
- package/dist/components/search-input/search-input.d.ts +27 -0
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.agent.d.ts +4 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/sheet/index.js +2 -2
- package/dist/components/sheet/sheet.agent.d.ts +2 -1
- package/dist/components/sheet/sheet.d.ts +11 -2
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sidebar/sidebar.agent.d.ts +2 -1
- package/dist/components/sidebar/sidebar.d.ts +6 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-capture/signature-capture.d.ts +2 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.agent.d.ts +4 -0
- package/dist/components/slider/slider.d.ts +5 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-accordion/index.d.ts +2 -1
- package/dist/components/stepper-accordion/index.js +3 -2
- package/dist/components/stepper-accordion/stepper-accordion.agent.d.ts +4 -0
- package/dist/components/stepper-accordion/stepper-accordion.d.ts +19 -1
- package/dist/components/stepper-calendar/index.d.ts +2 -1
- package/dist/components/stepper-calendar/index.js +3 -2
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +4 -0
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +19 -1
- package/dist/components/stepper-progress/index.d.ts +2 -1
- package/dist/components/stepper-progress/index.js +4 -2
- package/dist/components/stepper-progress/stepper-progress.agent.d.ts +4 -0
- package/dist/components/stepper-progress/stepper-progress.d.ts +26 -1
- package/dist/components/suggestion-chip/index.d.ts +2 -1
- package/dist/components/suggestion-chip/index.js +5 -3
- package/dist/components/suggestion-chip/suggestion-chip.agent.d.ts +4 -0
- package/dist/components/suggestion-chip/suggestion-chip.d.ts +7 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.agent.d.ts +4 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs.agent.d.ts +2 -1
- package/dist/components/tabs/tabs.d.ts +4 -0
- package/dist/components/task-card/index.d.ts +1 -0
- package/dist/components/task-card/index.js +5 -3
- package/dist/components/task-card/task-card.agent.d.ts +3 -0
- package/dist/components/task-tray/index.d.ts +2 -1
- package/dist/components/task-tray/index.js +3 -2
- package/dist/components/task-tray/task-tray.agent.d.ts +4 -0
- package/dist/components/task-tray/task-tray.d.ts +25 -2
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.agent.d.ts +4 -0
- package/dist/components/text-area/text-area.d.ts +7 -0
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/text-input/text-input.agent.d.ts +4 -0
- package/dist/components/text-input/text-input.d.ts +10 -0
- package/dist/components/theme-toggle/index.d.ts +2 -1
- package/dist/components/theme-toggle/index.js +3 -2
- package/dist/components/theme-toggle/theme-toggle.agent.d.ts +4 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +9 -2
- package/dist/components/time-picker/index.d.ts +2 -1
- package/dist/components/time-picker/index.js +3 -2
- package/dist/components/time-picker/time-picker.agent.d.ts +4 -0
- package/dist/components/time-picker/time-picker.d.ts +16 -1
- package/dist/components/timeline/index.d.ts +2 -1
- package/dist/components/timeline/index.js +3 -2
- package/dist/components/timeline/timeline.agent.d.ts +4 -0
- package/dist/components/timeline/timeline.d.ts +8 -1
- package/dist/components/toast/index.d.ts +3 -2
- package/dist/components/toast/index.js +7 -5
- package/dist/components/toast/toast.agent.d.ts +4 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -0
- package/dist/components/transcript-panel/index.d.ts +2 -1
- package/dist/components/transcript-panel/index.js +3 -2
- package/dist/components/transcript-panel/transcript-panel.agent.d.ts +4 -0
- package/dist/components/transcript-panel/transcript-panel.d.ts +10 -1
- package/dist/components/workflow/index.d.ts +2 -1
- package/dist/components/workflow/index.js +10 -7
- package/dist/components/workflow/workflow-editor.d.ts +7 -1
- package/dist/components/workflow/workflow-map.d.ts +2 -0
- package/dist/components/workflow/workflow.agent.d.ts +6 -0
- package/dist/i18n/config.js +24 -11
- package/dist/i18n/resources.d.ts +7 -0
- package/dist/index.js +471 -423
- package/dist/locales/en.json +7 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +18 -2
- package/dist/_chunks/accordion.agent-Cz-yglRa.js +0 -17
- package/dist/_chunks/agenda-tray-BqQZwiHc.js +0 -120
- package/dist/_chunks/ai-prompt-input-CI27KmZ1.js +0 -380
- package/dist/_chunks/audio-recorder-B-8SKgKn.js +0 -376
- package/dist/_chunks/autocomplete.agent-DqOy0_1P.js +0 -372
- package/dist/_chunks/breadcrumb-D6xpsP7n.js +0 -293
- package/dist/_chunks/checkbox-DNK4qS2_.js +0 -116
- package/dist/_chunks/checkbox-group-CWpGZEF6.js +0 -146
- package/dist/_chunks/collapsible-D4LOdLxp.js +0 -67
- package/dist/_chunks/combobox.agent-ByobCLJ_.js +0 -350
- package/dist/_chunks/date-picker-DYXNsWmM.js +0 -1726
- package/dist/_chunks/date-range-picker-BcNDJI7m.js +0 -183
- package/dist/_chunks/date-time-picker-CmGiTU__.js +0 -202
- package/dist/_chunks/dialog.agent-DEG_fVzG.js +0 -147
- package/dist/_chunks/dropdown-menu.agent-Cry4Nmes.js +0 -17
- package/dist/_chunks/freemium-paywall-CkefGLM_.js +0 -198
- package/dist/_chunks/list-B1ozIjQe.js +0 -359
- package/dist/_chunks/message-tray-VaLpQU5t.js +0 -303
- package/dist/_chunks/navigation-menu-EVFau1O2.js +0 -180
- package/dist/_chunks/notification-tray-B7U5YZYg.js +0 -328
- package/dist/_chunks/number-input-DjpT_RXJ.js +0 -249
- package/dist/_chunks/otp-input-De5_Ih7B.js +0 -189
- package/dist/_chunks/pagination.agent-oEaqmtx5.js +0 -380
- package/dist/_chunks/password-input-DJDVznWH.js +0 -193
- package/dist/_chunks/phone-input-DE_39q65.js +0 -428
- package/dist/_chunks/popover-C3CTUsqh.js +0 -227
- package/dist/_chunks/popover.agent-C0qOx9WT.js +0 -13
- package/dist/_chunks/privacy-lock-CQpgkLec.js +0 -132
- package/dist/_chunks/progress-B4Of_pzz.js +0 -252
- package/dist/_chunks/progress.agent-CXkHURjX.js +0 -22
- package/dist/_chunks/radio-group-BIUbpWml.js +0 -89
- package/dist/_chunks/resizable.agent-DBpPGNdy.js +0 -435
- package/dist/_chunks/search-bar-fcGqDFW3.js +0 -397
- package/dist/_chunks/search-input-BVMCONyN.js +0 -197
- package/dist/_chunks/select-IY_JQa-F.js +0 -321
- package/dist/_chunks/sheet.agent-DwQlBqK9.js +0 -13
- package/dist/_chunks/sidebar.agent-B0fnH9CC.js +0 -17
- package/dist/_chunks/slider-DjyRt3Mp.js +0 -274
- package/dist/_chunks/sparkline.agent-C_xp3NRB.js +0 -238
- package/dist/_chunks/stepper-accordion-CGog0JSF.js +0 -233
- package/dist/_chunks/stepper-calendar-_fLOAjus.js +0 -570
- package/dist/_chunks/stepper-progress-rE7tn7WY.js +0 -129
- package/dist/_chunks/suggestion-chip-BNJ2M8Os.js +0 -158
- package/dist/_chunks/switch-aN2EYxHh.js +0 -138
- package/dist/_chunks/task-tray-BzahI5FQ.js +0 -100
- package/dist/_chunks/text-area-DmKSd2DG.js +0 -152
- package/dist/_chunks/text-input-CRHvl5zk.js +0 -188
- package/dist/_chunks/theme-toggle-BHiMMEQN.js +0 -329
- package/dist/_chunks/time-picker-D-EueWUG.js +0 -322
- package/dist/_chunks/timeline-RgAIzpMd.js +0 -220
- package/dist/_chunks/transcript-panel-CNbVGG9L.js +0 -266
package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as k, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useEditor as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { Table as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Markdown as
|
|
12
|
-
import { p as
|
|
2
|
+
import { forwardRef as te, useId as se, useMemo as K, useState as I, useEffect as w, useRef as H, useImperativeHandle as re, useCallback as _ } from "react";
|
|
3
|
+
import { useEditor as ie, EditorContent as oe } from "@tiptap/react";
|
|
4
|
+
import ne from "@tiptap/starter-kit";
|
|
5
|
+
import ae from "@tiptap/extension-link";
|
|
6
|
+
import de from "@tiptap/extension-image";
|
|
7
|
+
import { Table as ce } from "@tiptap/extension-table";
|
|
8
|
+
import le from "@tiptap/extension-table-row";
|
|
9
|
+
import ue from "@tiptap/extension-table-cell";
|
|
10
|
+
import me from "@tiptap/extension-table-header";
|
|
11
|
+
import { Markdown as fe } from "tiptap-markdown";
|
|
12
|
+
import { p as he } from "./purify.es-DpIUMBYC.js";
|
|
13
13
|
import { c as B } from "./index-D2ZczOXr.js";
|
|
14
|
-
import { useTranslation as
|
|
15
|
-
import * as
|
|
16
|
-
import { s as
|
|
17
|
-
import { X as
|
|
18
|
-
import { C as
|
|
14
|
+
import { useTranslation as Z } from "react-i18next";
|
|
15
|
+
import * as z from "@radix-ui/react-dialog";
|
|
16
|
+
import { s as be } from "./safe-image-src-DstKgCo7.js";
|
|
17
|
+
import { X as pe } from "./x-CCcI3eJp.js";
|
|
18
|
+
import { C as ve } from "./chevron-down-BX_NP2Yh.js";
|
|
19
19
|
import { c as m } from "./createLucideIcon-CrFbzy84.js";
|
|
20
20
|
/**
|
|
21
21
|
* @license lucide-react v1.8.0 - ISC
|
|
@@ -23,97 +23,97 @@ import { c as m } from "./createLucideIcon-CrFbzy84.js";
|
|
|
23
23
|
* This source code is licensed under the ISC license.
|
|
24
24
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
25
|
*/
|
|
26
|
-
const
|
|
26
|
+
const ge = [
|
|
27
27
|
[
|
|
28
28
|
"path",
|
|
29
29
|
{ d: "M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8", key: "mg9rjx" }
|
|
30
30
|
]
|
|
31
|
-
],
|
|
31
|
+
], ke = m("bold", ge);
|
|
32
32
|
/**
|
|
33
33
|
* @license lucide-react v1.8.0 - ISC
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the ISC license.
|
|
36
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
37
|
*/
|
|
38
|
-
const
|
|
38
|
+
const ye = [
|
|
39
39
|
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
40
40
|
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
41
|
-
],
|
|
41
|
+
], xe = m("code", ye);
|
|
42
42
|
/**
|
|
43
43
|
* @license lucide-react v1.8.0 - ISC
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the ISC license.
|
|
46
46
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/
|
|
48
|
-
const
|
|
48
|
+
const ze = [
|
|
49
49
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
50
50
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
51
51
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
52
|
-
],
|
|
52
|
+
], we = m("image", ze);
|
|
53
53
|
/**
|
|
54
54
|
* @license lucide-react v1.8.0 - ISC
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the ISC license.
|
|
57
57
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
58
|
*/
|
|
59
|
-
const
|
|
59
|
+
const Me = [
|
|
60
60
|
["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
|
|
61
61
|
["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
|
|
62
62
|
["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
|
|
63
|
-
],
|
|
63
|
+
], Ne = m("italic", Me);
|
|
64
64
|
/**
|
|
65
65
|
* @license lucide-react v1.8.0 - ISC
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
69
|
*/
|
|
70
|
-
const
|
|
70
|
+
const Ae = [
|
|
71
71
|
["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
|
|
72
72
|
["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
|
|
73
73
|
["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
|
|
74
|
-
],
|
|
74
|
+
], Ce = m("link-2", Ae);
|
|
75
75
|
/**
|
|
76
76
|
* @license lucide-react v1.8.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
80
|
*/
|
|
81
|
-
const
|
|
81
|
+
const Le = [
|
|
82
82
|
["path", { d: "M11 5h10", key: "1cz7ny" }],
|
|
83
83
|
["path", { d: "M11 12h10", key: "1438ji" }],
|
|
84
84
|
["path", { d: "M11 19h10", key: "11t30w" }],
|
|
85
85
|
["path", { d: "M4 4h1v5", key: "10yrso" }],
|
|
86
86
|
["path", { d: "M4 9h2", key: "r1h2o0" }],
|
|
87
87
|
["path", { d: "M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02", key: "xtkcd5" }]
|
|
88
|
-
],
|
|
88
|
+
], Te = m("list-ordered", Le);
|
|
89
89
|
/**
|
|
90
90
|
* @license lucide-react v1.8.0 - ISC
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the ISC license.
|
|
93
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
94
94
|
*/
|
|
95
|
-
const
|
|
95
|
+
const _e = [
|
|
96
96
|
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
97
97
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
98
98
|
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
99
99
|
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
100
100
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
101
101
|
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
102
|
-
],
|
|
102
|
+
], Re = m("list", _e);
|
|
103
103
|
/**
|
|
104
104
|
* @license lucide-react v1.8.0 - ISC
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the ISC license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
108
|
*/
|
|
109
|
-
const
|
|
109
|
+
const je = [["path", { d: "M5 12h14", key: "1ays0h" }]], Ie = m("minus", je);
|
|
110
110
|
/**
|
|
111
111
|
* @license lucide-react v1.8.0 - ISC
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the ISC license.
|
|
114
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
115
115
|
*/
|
|
116
|
-
const
|
|
116
|
+
const He = [
|
|
117
117
|
[
|
|
118
118
|
"path",
|
|
119
119
|
{
|
|
@@ -128,17 +128,17 @@ const Ie = [
|
|
|
128
128
|
key: "1ymkrd"
|
|
129
129
|
}
|
|
130
130
|
]
|
|
131
|
-
],
|
|
131
|
+
], Be = m("quote", He);
|
|
132
132
|
/**
|
|
133
133
|
* @license lucide-react v1.8.0 - ISC
|
|
134
134
|
*
|
|
135
135
|
* This source code is licensed under the ISC license.
|
|
136
136
|
* See the LICENSE file in the root directory of this source tree.
|
|
137
137
|
*/
|
|
138
|
-
const
|
|
138
|
+
const Se = [
|
|
139
139
|
["path", { d: "M21 7v6h-6", key: "3ptur4" }],
|
|
140
140
|
["path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7", key: "1kgawr" }]
|
|
141
|
-
], $e = m("redo",
|
|
141
|
+
], $e = m("redo", Se);
|
|
142
142
|
/**
|
|
143
143
|
* @license lucide-react v1.8.0 - ISC
|
|
144
144
|
*
|
|
@@ -150,17 +150,17 @@ const De = [
|
|
|
150
150
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
151
151
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
152
152
|
["path", { d: "M3 15h18", key: "5xshup" }]
|
|
153
|
-
],
|
|
153
|
+
], Ee = m("table", De);
|
|
154
154
|
/**
|
|
155
155
|
* @license lucide-react v1.8.0 - ISC
|
|
156
156
|
*
|
|
157
157
|
* This source code is licensed under the ISC license.
|
|
158
158
|
* See the LICENSE file in the root directory of this source tree.
|
|
159
159
|
*/
|
|
160
|
-
const
|
|
160
|
+
const Ke = [
|
|
161
161
|
["path", { d: "M3 7v6h6", key: "1v2h90" }],
|
|
162
162
|
["path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13", key: "1r6uu6" }]
|
|
163
|
-
],
|
|
163
|
+
], qe = m("undo", Ke), Fe = {
|
|
164
164
|
FORBID_TAGS: [
|
|
165
165
|
"script",
|
|
166
166
|
"style",
|
|
@@ -181,11 +181,11 @@ const Ee = [
|
|
|
181
181
|
]
|
|
182
182
|
};
|
|
183
183
|
function j(a) {
|
|
184
|
-
return
|
|
184
|
+
return he.sanitize(a, Fe);
|
|
185
185
|
}
|
|
186
|
-
const
|
|
186
|
+
const Ve = B(
|
|
187
187
|
"tiptap-theme-alfadocs ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
188
|
-
),
|
|
188
|
+
), Pe = B(
|
|
189
189
|
[
|
|
190
190
|
"ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
191
191
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
@@ -234,7 +234,7 @@ const Fe = B(
|
|
|
234
234
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
235
235
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]"
|
|
236
236
|
].join(" ")
|
|
237
|
-
),
|
|
237
|
+
), Ue = {
|
|
238
238
|
minimal: ["bold", "italic", "link"],
|
|
239
239
|
standard: [
|
|
240
240
|
"bold",
|
|
@@ -261,57 +261,57 @@ const Fe = B(
|
|
|
261
261
|
"redo"
|
|
262
262
|
]
|
|
263
263
|
};
|
|
264
|
-
function
|
|
264
|
+
function Ge({
|
|
265
265
|
editor: a,
|
|
266
|
-
registerRef:
|
|
267
|
-
tabIndex:
|
|
268
|
-
onFocus:
|
|
269
|
-
onKeyDown:
|
|
270
|
-
label:
|
|
271
|
-
disabled:
|
|
272
|
-
pressed:
|
|
266
|
+
registerRef: v,
|
|
267
|
+
tabIndex: l,
|
|
268
|
+
onFocus: h,
|
|
269
|
+
onKeyDown: R,
|
|
270
|
+
label: M,
|
|
271
|
+
disabled: i,
|
|
272
|
+
pressed: S
|
|
273
273
|
}) {
|
|
274
|
-
const [
|
|
275
|
-
|
|
276
|
-
if (!
|
|
277
|
-
function c(
|
|
278
|
-
const
|
|
279
|
-
|
|
274
|
+
const [y, N] = I(!1), A = H(null);
|
|
275
|
+
w(() => {
|
|
276
|
+
if (!y) return;
|
|
277
|
+
function c($) {
|
|
278
|
+
const g = $.target;
|
|
279
|
+
A.current && g && !A.current.contains(g) && N(!1);
|
|
280
280
|
}
|
|
281
281
|
return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
|
|
282
|
-
}, [
|
|
283
|
-
function
|
|
282
|
+
}, [y]);
|
|
283
|
+
function o(c) {
|
|
284
284
|
a.chain().focus().toggleHeading({ level: c }).run(), N(!1);
|
|
285
285
|
}
|
|
286
|
-
return /* @__PURE__ */ k("div", { ref:
|
|
286
|
+
return /* @__PURE__ */ k("div", { ref: A, className: "ds:relative ds:inline-flex", children: [
|
|
287
287
|
/* @__PURE__ */ k(
|
|
288
288
|
"button",
|
|
289
289
|
{
|
|
290
290
|
type: "button",
|
|
291
|
-
ref:
|
|
292
|
-
tabIndex:
|
|
293
|
-
onFocus:
|
|
294
|
-
onKeyDown:
|
|
291
|
+
ref: v,
|
|
292
|
+
tabIndex: l,
|
|
293
|
+
onFocus: h,
|
|
294
|
+
onKeyDown: R,
|
|
295
295
|
onClick: () => {
|
|
296
|
-
|
|
296
|
+
i || N((c) => !c);
|
|
297
297
|
},
|
|
298
298
|
"aria-haspopup": "listbox",
|
|
299
|
-
"aria-expanded":
|
|
300
|
-
"aria-disabled":
|
|
301
|
-
"aria-label":
|
|
302
|
-
title:
|
|
303
|
-
className: U({ pressed:
|
|
299
|
+
"aria-expanded": y,
|
|
300
|
+
"aria-disabled": i || void 0,
|
|
301
|
+
"aria-label": M,
|
|
302
|
+
title: M,
|
|
303
|
+
className: U({ pressed: S, disabled: i }),
|
|
304
304
|
children: [
|
|
305
305
|
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: "ds:text-[length:var(--font-size-sm)] ds:font-semibold", children: "H" }),
|
|
306
|
-
/* @__PURE__ */ r(
|
|
306
|
+
/* @__PURE__ */ r(ve, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
307
307
|
]
|
|
308
308
|
}
|
|
309
309
|
),
|
|
310
|
-
|
|
310
|
+
y && !i ? /* @__PURE__ */ r(
|
|
311
311
|
"ul",
|
|
312
312
|
{
|
|
313
313
|
role: "listbox",
|
|
314
|
-
"aria-label":
|
|
314
|
+
"aria-label": M,
|
|
315
315
|
className: [
|
|
316
316
|
"ds:absolute ds:top-full ds:mt-[var(--spacing-xs)] ds:start-0 ds:z-[var(--z-dropdown)]",
|
|
317
317
|
"ds:min-inline-size-[8rem] ds:rounded-[var(--radius-md)]",
|
|
@@ -324,7 +324,7 @@ function Ue({
|
|
|
324
324
|
type: "button",
|
|
325
325
|
role: "option",
|
|
326
326
|
"aria-selected": a.isActive("heading", { level: c }) || void 0,
|
|
327
|
-
onClick: () =>
|
|
327
|
+
onClick: () => o(c),
|
|
328
328
|
className: [
|
|
329
329
|
"ds:flex ds:w-full ds:items-center",
|
|
330
330
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -343,11 +343,11 @@ function Ue({
|
|
|
343
343
|
) : null
|
|
344
344
|
] });
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
const { t:
|
|
348
|
-
return /* @__PURE__ */ r(
|
|
346
|
+
function Qe({ open: a, onOpenChange: v }) {
|
|
347
|
+
const { t: l } = Z();
|
|
348
|
+
return /* @__PURE__ */ r(z.Root, { open: a, onOpenChange: v, children: /* @__PURE__ */ k(z.Portal, { children: [
|
|
349
349
|
/* @__PURE__ */ r(
|
|
350
|
-
|
|
350
|
+
z.Overlay,
|
|
351
351
|
{
|
|
352
352
|
className: [
|
|
353
353
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
@@ -357,7 +357,7 @@ function Ge({ open: a, onOpenChange: l }) {
|
|
|
357
357
|
}
|
|
358
358
|
),
|
|
359
359
|
/* @__PURE__ */ k(
|
|
360
|
-
|
|
360
|
+
z.Content,
|
|
361
361
|
{
|
|
362
362
|
className: [
|
|
363
363
|
"ds:fixed ds:z-[var(--z-modal)]",
|
|
@@ -371,17 +371,17 @@ function Ge({ open: a, onOpenChange: l }) {
|
|
|
371
371
|
children: [
|
|
372
372
|
/* @__PURE__ */ k("div", { className: "ds:flex ds:items-start ds:justify-between ds:gap-[var(--spacing-md)]", children: [
|
|
373
373
|
/* @__PURE__ */ r(
|
|
374
|
-
|
|
374
|
+
z.Title,
|
|
375
375
|
{
|
|
376
376
|
className: "type-title-card ds:leading-snug",
|
|
377
|
-
children:
|
|
377
|
+
children: l("editor.shortcuts.title")
|
|
378
378
|
}
|
|
379
379
|
),
|
|
380
|
-
/* @__PURE__ */ r(
|
|
380
|
+
/* @__PURE__ */ r(z.Close, { asChild: !0, children: /* @__PURE__ */ r(
|
|
381
381
|
"button",
|
|
382
382
|
{
|
|
383
383
|
type: "button",
|
|
384
|
-
"aria-label":
|
|
384
|
+
"aria-label": l("editor.shortcuts.close"),
|
|
385
385
|
className: [
|
|
386
386
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
387
387
|
"ds:min-block-size-[var(--min-target-size)]",
|
|
@@ -393,7 +393,7 @@ function Ge({ open: a, onOpenChange: l }) {
|
|
|
393
393
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
394
394
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
395
395
|
].join(" "),
|
|
396
|
-
children: /* @__PURE__ */ r(
|
|
396
|
+
children: /* @__PURE__ */ r(pe, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
397
397
|
}
|
|
398
398
|
) })
|
|
399
399
|
] }),
|
|
@@ -404,12 +404,12 @@ function Ge({ open: a, onOpenChange: l }) {
|
|
|
404
404
|
{ key: "editor.shortcuts.undo", combo: "⌘/Ctrl + Z" },
|
|
405
405
|
{ key: "editor.shortcuts.redo", combo: "⌘/Ctrl + Shift + Z" },
|
|
406
406
|
{ key: "editor.shortcuts.open", combo: "⌘/Ctrl + /" }
|
|
407
|
-
].map((
|
|
407
|
+
].map((h) => /* @__PURE__ */ k(
|
|
408
408
|
"li",
|
|
409
409
|
{
|
|
410
410
|
className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-md)]",
|
|
411
411
|
children: [
|
|
412
|
-
/* @__PURE__ */ r("span", { className: "ds:text-[length:var(--font-size-sm)]", children: h
|
|
412
|
+
/* @__PURE__ */ r("span", { className: "ds:text-[length:var(--font-size-sm)]", children: l(h.key) }),
|
|
413
413
|
/* @__PURE__ */ r(
|
|
414
414
|
"kbd",
|
|
415
415
|
{
|
|
@@ -418,50 +418,51 @@ function Ge({ open: a, onOpenChange: l }) {
|
|
|
418
418
|
"ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
419
419
|
"ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)]"
|
|
420
420
|
].join(" "),
|
|
421
|
-
children:
|
|
421
|
+
children: h.combo
|
|
422
422
|
}
|
|
423
423
|
)
|
|
424
424
|
]
|
|
425
425
|
},
|
|
426
|
-
|
|
426
|
+
h.key
|
|
427
427
|
)) })
|
|
428
428
|
]
|
|
429
429
|
}
|
|
430
430
|
)
|
|
431
431
|
] }) });
|
|
432
432
|
}
|
|
433
|
-
const
|
|
433
|
+
const Xe = te(
|
|
434
434
|
({
|
|
435
|
-
|
|
435
|
+
id: a,
|
|
436
|
+
defaultValue: v,
|
|
436
437
|
value: l,
|
|
437
438
|
onChange: h,
|
|
438
|
-
toolbar:
|
|
439
|
-
placeholder:
|
|
440
|
-
readOnly:
|
|
441
|
-
ariaLabel:
|
|
442
|
-
minHeight:
|
|
443
|
-
className:
|
|
444
|
-
},
|
|
445
|
-
const { t:
|
|
446
|
-
() => `rte-${
|
|
447
|
-
[
|
|
448
|
-
), [g,
|
|
449
|
-
|
|
450
|
-
typeof document > "u" ||
|
|
439
|
+
toolbar: R = "standard",
|
|
440
|
+
placeholder: M,
|
|
441
|
+
readOnly: i = !1,
|
|
442
|
+
ariaLabel: S,
|
|
443
|
+
minHeight: y,
|
|
444
|
+
className: N
|
|
445
|
+
}, A) => {
|
|
446
|
+
const { t: o } = Z(), c = se(), $ = K(
|
|
447
|
+
() => `rte-${c.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
448
|
+
[c]
|
|
449
|
+
), [g, G] = I(!1);
|
|
450
|
+
w(() => {
|
|
451
|
+
typeof document > "u" || G(document.documentElement.dir === "rtl");
|
|
451
452
|
}, []);
|
|
452
|
-
const [
|
|
453
|
-
|
|
454
|
-
|
|
453
|
+
const [Q, q] = I(!1), C = H(null), L = H(h);
|
|
454
|
+
w(() => {
|
|
455
|
+
L.current = h;
|
|
455
456
|
}, [h]);
|
|
456
|
-
const
|
|
457
|
-
const s = l ??
|
|
457
|
+
const X = K(() => {
|
|
458
|
+
const s = l ?? v ?? "";
|
|
458
459
|
return s ? j(s) : "";
|
|
459
|
-
}, [
|
|
460
|
+
}, [v, l]), e = ie({
|
|
460
461
|
extensions: [
|
|
461
|
-
|
|
462
|
+
ne.configure({
|
|
462
463
|
heading: { levels: [1, 2, 3] }
|
|
463
464
|
}),
|
|
464
|
-
|
|
465
|
+
ae.configure({
|
|
465
466
|
protocols: ["http", "https", "mailto", "tel"],
|
|
466
467
|
HTMLAttributes: {
|
|
467
468
|
rel: "noopener noreferrer",
|
|
@@ -469,26 +470,26 @@ const Qe = ee(
|
|
|
469
470
|
},
|
|
470
471
|
validate: (s) => /^(https?:|mailto:|tel:)/i.test(s)
|
|
471
472
|
}),
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
ce,
|
|
473
|
+
de,
|
|
474
|
+
ce.configure({ resizable: !1 }),
|
|
475
475
|
le,
|
|
476
476
|
ue,
|
|
477
|
-
me
|
|
477
|
+
me,
|
|
478
|
+
fe.configure({
|
|
478
479
|
html: !1,
|
|
479
480
|
transformPastedText: !0
|
|
480
481
|
})
|
|
481
482
|
],
|
|
482
|
-
content:
|
|
483
|
-
editable: !
|
|
483
|
+
content: X,
|
|
484
|
+
editable: !i,
|
|
484
485
|
immediatelyRender: !1,
|
|
485
486
|
shouldRerenderOnTransaction: !0,
|
|
486
487
|
editorProps: {
|
|
487
488
|
attributes: {
|
|
488
489
|
role: "textbox",
|
|
489
490
|
"aria-multiline": "true",
|
|
490
|
-
"aria-label":
|
|
491
|
-
"data-placeholder":
|
|
491
|
+
"aria-label": S ?? o("editor.placeholder"),
|
|
492
|
+
"data-placeholder": M ?? o("editor.placeholder")
|
|
492
493
|
},
|
|
493
494
|
transformPastedHTML(s) {
|
|
494
495
|
return j(s);
|
|
@@ -498,23 +499,23 @@ const Qe = ee(
|
|
|
498
499
|
}
|
|
499
500
|
},
|
|
500
501
|
onUpdate({ editor: s }) {
|
|
501
|
-
|
|
502
|
+
L.current && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
|
|
502
503
|
var d, b, p;
|
|
503
504
|
const t = s.getHTML(), f = ((b = (d = s.storage.markdown) == null ? void 0 : d.getMarkdown) == null ? void 0 : b.call(d)) ?? "";
|
|
504
|
-
(p =
|
|
505
|
+
(p = L.current) == null || p.call(L, { html: t, markdown: f });
|
|
505
506
|
}, 100));
|
|
506
507
|
}
|
|
507
508
|
});
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
}, []),
|
|
511
|
-
e && e.setEditable(!
|
|
512
|
-
}, [e,
|
|
509
|
+
w(() => () => {
|
|
510
|
+
C.current && clearTimeout(C.current);
|
|
511
|
+
}, []), w(() => {
|
|
512
|
+
e && e.setEditable(!i);
|
|
513
|
+
}, [e, i]), w(() => {
|
|
513
514
|
if (!e || l === void 0 || e.getHTML() === l) return;
|
|
514
515
|
const t = j(l);
|
|
515
516
|
e.commands.setContent(t, { emitUpdate: !1 });
|
|
516
|
-
}, [e, l]),
|
|
517
|
-
|
|
517
|
+
}, [e, l]), re(
|
|
518
|
+
A,
|
|
518
519
|
() => ({
|
|
519
520
|
getHTML() {
|
|
520
521
|
return (e == null ? void 0 : e.getHTML()) ?? "";
|
|
@@ -537,27 +538,27 @@ const Qe = ee(
|
|
|
537
538
|
}),
|
|
538
539
|
[e]
|
|
539
540
|
);
|
|
540
|
-
const F = H([]), [
|
|
541
|
+
const F = H([]), [T, D] = I(0), E = K(() => Ue[R], [R]), Y = _(
|
|
541
542
|
(s) => (t) => {
|
|
542
543
|
F.current[s] = t;
|
|
543
544
|
},
|
|
544
545
|
[]
|
|
545
|
-
), V =
|
|
546
|
+
), V = _((s) => {
|
|
546
547
|
const t = F.current[s];
|
|
547
548
|
t && t.focus();
|
|
548
|
-
}, []),
|
|
549
|
+
}, []), P = _(
|
|
549
550
|
(s) => {
|
|
550
551
|
const t = E.length;
|
|
551
552
|
if (t === 0) return;
|
|
552
553
|
const u = g ? "ArrowLeft" : "ArrowRight", f = g ? "ArrowRight" : "ArrowLeft";
|
|
553
554
|
let d = null;
|
|
554
|
-
s.key === u ? d = (
|
|
555
|
+
s.key === u ? d = (T + 1) % t : s.key === f ? d = (T - 1 + t) % t : s.key === "Home" ? d = 0 : s.key === "End" && (d = t - 1), d !== null && (s.preventDefault(), D(d), V(d));
|
|
555
556
|
},
|
|
556
|
-
[
|
|
557
|
-
),
|
|
557
|
+
[T, V, g, E.length]
|
|
558
|
+
), J = _(
|
|
558
559
|
(s) => {
|
|
559
560
|
if (s.preventDefault(), !e) return;
|
|
560
|
-
const t = e.getAttributes("link").href, u = window.prompt(
|
|
561
|
+
const t = e.getAttributes("link").href, u = window.prompt(o("editor.link.insert"), t ?? "");
|
|
561
562
|
if (u === null) return;
|
|
562
563
|
const f = u.trim();
|
|
563
564
|
if (f === "") {
|
|
@@ -566,21 +567,21 @@ const Qe = ee(
|
|
|
566
567
|
}
|
|
567
568
|
/^(https?:|mailto:|tel:)/i.test(f) && e.chain().focus().extendMarkRange("link").setLink({ href: f }).run();
|
|
568
569
|
},
|
|
569
|
-
[e,
|
|
570
|
-
),
|
|
570
|
+
[e, o]
|
|
571
|
+
), W = _(() => {
|
|
571
572
|
if (!e) return;
|
|
572
|
-
const s = window.prompt(
|
|
573
|
+
const s = window.prompt(o("editor.image.insert"), "");
|
|
573
574
|
if (s === null) return;
|
|
574
|
-
const t =
|
|
575
|
+
const t = be(s);
|
|
575
576
|
t && e.chain().focus().setImage({ src: t }).run();
|
|
576
|
-
}, [e,
|
|
577
|
-
function
|
|
577
|
+
}, [e, o]);
|
|
578
|
+
function O(s, t) {
|
|
578
579
|
if (!e) return null;
|
|
579
|
-
const u =
|
|
580
|
-
tabIndex: t ===
|
|
581
|
-
onFocus: () =>
|
|
582
|
-
onKeyDown:
|
|
583
|
-
}, d = (n,
|
|
580
|
+
const u = Y(t), f = {
|
|
581
|
+
tabIndex: t === T ? 0 : -1,
|
|
582
|
+
onFocus: () => D(t),
|
|
583
|
+
onKeyDown: P
|
|
584
|
+
}, d = (n, x) => U({ pressed: n, disabled: x });
|
|
584
585
|
function b(n) {
|
|
585
586
|
return /* @__PURE__ */ r(
|
|
586
587
|
"button",
|
|
@@ -593,8 +594,8 @@ const Qe = ee(
|
|
|
593
594
|
"aria-disabled": n.disabled || void 0,
|
|
594
595
|
"aria-keyshortcuts": n.shortcut,
|
|
595
596
|
title: n.label,
|
|
596
|
-
onClick: (
|
|
597
|
-
|
|
597
|
+
onClick: (x) => {
|
|
598
|
+
x.preventDefault(), n.disabled || n.onActivate();
|
|
598
599
|
},
|
|
599
600
|
className: d(n.pressed, n.disabled),
|
|
600
601
|
children: n.icon
|
|
@@ -612,12 +613,12 @@ const Qe = ee(
|
|
|
612
613
|
"aria-disabled": n.disabled || void 0,
|
|
613
614
|
"aria-keyshortcuts": n.shortcut,
|
|
614
615
|
title: n.label,
|
|
615
|
-
onClick: (
|
|
616
|
+
onClick: (x) => {
|
|
616
617
|
if (n.disabled) {
|
|
617
|
-
|
|
618
|
+
x.preventDefault();
|
|
618
619
|
return;
|
|
619
620
|
}
|
|
620
|
-
n.onActivate(
|
|
621
|
+
n.onActivate(x);
|
|
621
622
|
},
|
|
622
623
|
className: d(!1, n.disabled),
|
|
623
624
|
children: n.icon
|
|
@@ -627,109 +628,109 @@ const Qe = ee(
|
|
|
627
628
|
switch (s) {
|
|
628
629
|
case "bold":
|
|
629
630
|
return b({
|
|
630
|
-
label:
|
|
631
|
+
label: o("editor.bold"),
|
|
631
632
|
pressed: e.isActive("bold"),
|
|
632
|
-
disabled:
|
|
633
|
+
disabled: i,
|
|
633
634
|
shortcut: "Control+B Meta+B",
|
|
634
635
|
onActivate: () => e.chain().focus().toggleBold().run(),
|
|
635
|
-
icon: /* @__PURE__ */ r(
|
|
636
|
+
icon: /* @__PURE__ */ r(ke, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
636
637
|
});
|
|
637
638
|
case "italic":
|
|
638
639
|
return b({
|
|
639
|
-
label:
|
|
640
|
+
label: o("editor.italic"),
|
|
640
641
|
pressed: e.isActive("italic"),
|
|
641
|
-
disabled:
|
|
642
|
+
disabled: i,
|
|
642
643
|
shortcut: "Control+I Meta+I",
|
|
643
644
|
onActivate: () => e.chain().focus().toggleItalic().run(),
|
|
644
|
-
icon: /* @__PURE__ */ r(
|
|
645
|
+
icon: /* @__PURE__ */ r(Ne, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
645
646
|
});
|
|
646
647
|
case "link":
|
|
647
648
|
return p({
|
|
648
|
-
label:
|
|
649
|
-
disabled:
|
|
649
|
+
label: o("editor.link.insert"),
|
|
650
|
+
disabled: i,
|
|
650
651
|
shortcut: "Control+K Meta+K",
|
|
651
|
-
onActivate:
|
|
652
|
-
icon: /* @__PURE__ */ r(
|
|
652
|
+
onActivate: J,
|
|
653
|
+
icon: /* @__PURE__ */ r(Ce, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
653
654
|
});
|
|
654
655
|
case "heading":
|
|
655
656
|
return /* @__PURE__ */ r(
|
|
656
|
-
|
|
657
|
+
Ge,
|
|
657
658
|
{
|
|
658
659
|
editor: e,
|
|
659
660
|
registerRef: u,
|
|
660
|
-
tabIndex: t ===
|
|
661
|
-
onFocus: () =>
|
|
662
|
-
onKeyDown:
|
|
663
|
-
label:
|
|
664
|
-
disabled:
|
|
661
|
+
tabIndex: t === T ? 0 : -1,
|
|
662
|
+
onFocus: () => D(t),
|
|
663
|
+
onKeyDown: P,
|
|
664
|
+
label: o("editor.heading"),
|
|
665
|
+
disabled: i,
|
|
665
666
|
pressed: e.isActive("heading", { level: 1 }) || e.isActive("heading", { level: 2 }) || e.isActive("heading", { level: 3 })
|
|
666
667
|
}
|
|
667
668
|
);
|
|
668
669
|
case "bulletList":
|
|
669
670
|
return b({
|
|
670
|
-
label:
|
|
671
|
+
label: o("editor.list.bullet"),
|
|
671
672
|
pressed: e.isActive("bulletList"),
|
|
672
|
-
disabled:
|
|
673
|
+
disabled: i,
|
|
673
674
|
onActivate: () => e.chain().focus().toggleBulletList().run(),
|
|
674
|
-
icon: /* @__PURE__ */ r(
|
|
675
|
+
icon: /* @__PURE__ */ r(Re, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
675
676
|
});
|
|
676
677
|
case "orderedList":
|
|
677
678
|
return b({
|
|
678
|
-
label:
|
|
679
|
+
label: o("editor.list.ordered"),
|
|
679
680
|
pressed: e.isActive("orderedList"),
|
|
680
|
-
disabled:
|
|
681
|
+
disabled: i,
|
|
681
682
|
onActivate: () => e.chain().focus().toggleOrderedList().run(),
|
|
682
|
-
icon: /* @__PURE__ */ r(
|
|
683
|
+
icon: /* @__PURE__ */ r(Te, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
683
684
|
});
|
|
684
685
|
case "quote":
|
|
685
686
|
return b({
|
|
686
|
-
label:
|
|
687
|
+
label: o("editor.quote"),
|
|
687
688
|
pressed: e.isActive("blockquote"),
|
|
688
|
-
disabled:
|
|
689
|
+
disabled: i,
|
|
689
690
|
onActivate: () => e.chain().focus().toggleBlockquote().run(),
|
|
690
|
-
icon: /* @__PURE__ */ r(
|
|
691
|
+
icon: /* @__PURE__ */ r(Be, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
691
692
|
});
|
|
692
693
|
case "image":
|
|
693
694
|
return p({
|
|
694
|
-
label:
|
|
695
|
-
disabled:
|
|
696
|
-
onActivate:
|
|
697
|
-
icon: /* @__PURE__ */ r(
|
|
695
|
+
label: o("editor.image.insert"),
|
|
696
|
+
disabled: i,
|
|
697
|
+
onActivate: W,
|
|
698
|
+
icon: /* @__PURE__ */ r(we, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
698
699
|
});
|
|
699
700
|
case "table":
|
|
700
701
|
return p({
|
|
701
|
-
label:
|
|
702
|
-
disabled:
|
|
702
|
+
label: o("editor.table.insert"),
|
|
703
|
+
disabled: i,
|
|
703
704
|
onActivate: () => e.chain().focus().insertTable({ rows: 3, cols: 3, withHeaderRow: !0 }).run(),
|
|
704
|
-
icon: /* @__PURE__ */ r(
|
|
705
|
+
icon: /* @__PURE__ */ r(Ee, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
705
706
|
});
|
|
706
707
|
case "codeBlock":
|
|
707
708
|
return b({
|
|
708
|
-
label:
|
|
709
|
+
label: o("editor.codeBlock"),
|
|
709
710
|
pressed: e.isActive("codeBlock"),
|
|
710
|
-
disabled:
|
|
711
|
+
disabled: i,
|
|
711
712
|
onActivate: () => e.chain().focus().toggleCodeBlock().run(),
|
|
712
|
-
icon: /* @__PURE__ */ r(
|
|
713
|
+
icon: /* @__PURE__ */ r(xe, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
713
714
|
});
|
|
714
715
|
case "horizontalRule":
|
|
715
716
|
return p({
|
|
716
|
-
label:
|
|
717
|
-
disabled:
|
|
717
|
+
label: o("editor.horizontalRule"),
|
|
718
|
+
disabled: i,
|
|
718
719
|
onActivate: () => e.chain().focus().setHorizontalRule().run(),
|
|
719
|
-
icon: /* @__PURE__ */ r(
|
|
720
|
+
icon: /* @__PURE__ */ r(Ie, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
720
721
|
});
|
|
721
722
|
case "undo":
|
|
722
723
|
return p({
|
|
723
|
-
label:
|
|
724
|
-
disabled:
|
|
724
|
+
label: o("editor.undo"),
|
|
725
|
+
disabled: i || !e.can().undo(),
|
|
725
726
|
shortcut: "Control+Z Meta+Z",
|
|
726
727
|
onActivate: () => e.chain().focus().undo().run(),
|
|
727
|
-
icon: /* @__PURE__ */ r(
|
|
728
|
+
icon: /* @__PURE__ */ r(qe, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
728
729
|
});
|
|
729
730
|
case "redo":
|
|
730
731
|
return p({
|
|
731
|
-
label:
|
|
732
|
-
disabled:
|
|
732
|
+
label: o("editor.redo"),
|
|
733
|
+
disabled: i || !e.can().redo(),
|
|
733
734
|
shortcut: "Control+Shift+Z Meta+Shift+Z",
|
|
734
735
|
onActivate: () => e.chain().focus().redo().run(),
|
|
735
736
|
icon: /* @__PURE__ */ r($e, { "aria-hidden": "true", className: "ds:block-size-4 ds:inline-size-4" })
|
|
@@ -738,8 +739,8 @@ const Qe = ee(
|
|
|
738
739
|
return null;
|
|
739
740
|
}
|
|
740
741
|
}
|
|
741
|
-
const
|
|
742
|
-
switch (
|
|
742
|
+
const ee = (() => {
|
|
743
|
+
switch (y) {
|
|
743
744
|
case "sm":
|
|
744
745
|
return "min-block-size-[8rem]";
|
|
745
746
|
case "md":
|
|
@@ -753,35 +754,36 @@ const Qe = ee(
|
|
|
753
754
|
return /* @__PURE__ */ k(
|
|
754
755
|
"div",
|
|
755
756
|
{
|
|
756
|
-
id:
|
|
757
|
-
className: [
|
|
757
|
+
id: $,
|
|
758
|
+
className: [Ve(), N].filter(Boolean).join(" "),
|
|
758
759
|
dir: g ? "rtl" : void 0,
|
|
759
760
|
"data-component": "rich-text-editor",
|
|
761
|
+
"data-component-id": a,
|
|
760
762
|
children: [
|
|
761
|
-
|
|
763
|
+
i ? null : /* @__PURE__ */ r(
|
|
762
764
|
"div",
|
|
763
765
|
{
|
|
764
766
|
role: "toolbar",
|
|
765
|
-
"aria-label":
|
|
766
|
-
className:
|
|
767
|
-
children: E.map((s, t) => /* @__PURE__ */ r("span", { className: "ds:contents", children:
|
|
767
|
+
"aria-label": o("editor.toolbarLabel"),
|
|
768
|
+
className: Pe({ direction: g ? "rtl" : "ltr" }),
|
|
769
|
+
children: E.map((s, t) => /* @__PURE__ */ r("span", { className: "ds:contents", children: O(s, t) }, s))
|
|
768
770
|
}
|
|
769
771
|
),
|
|
770
772
|
/* @__PURE__ */ r(
|
|
771
773
|
"div",
|
|
772
774
|
{
|
|
773
|
-
className: [Ze(),
|
|
774
|
-
children: /* @__PURE__ */ r(
|
|
775
|
+
className: [Ze(), ee].filter(Boolean).join(" "),
|
|
776
|
+
children: /* @__PURE__ */ r(oe, { editor: e })
|
|
775
777
|
}
|
|
776
778
|
),
|
|
777
|
-
/* @__PURE__ */ r(
|
|
779
|
+
/* @__PURE__ */ r(Qe, { open: Q, onOpenChange: q })
|
|
778
780
|
]
|
|
779
781
|
}
|
|
780
782
|
);
|
|
781
783
|
}
|
|
782
784
|
);
|
|
783
|
-
|
|
784
|
-
const
|
|
785
|
+
Xe.displayName = "RichTextEditor";
|
|
786
|
+
const ht = {
|
|
785
787
|
id: "rich-text-editor",
|
|
786
788
|
capabilities: ["edit_inline"],
|
|
787
789
|
state: {
|
|
@@ -801,8 +803,8 @@ const ft = {
|
|
|
801
803
|
safety: "destructive",
|
|
802
804
|
argsType: "{ html: string }",
|
|
803
805
|
description: "Replace the editor content. Loses unsaved input.",
|
|
804
|
-
invoke: (a,
|
|
805
|
-
a.setContent(
|
|
806
|
+
invoke: (a, v) => {
|
|
807
|
+
a.setContent(v.html);
|
|
806
808
|
}
|
|
807
809
|
},
|
|
808
810
|
clear: {
|
|
@@ -821,15 +823,20 @@ const ft = {
|
|
|
821
823
|
}
|
|
822
824
|
},
|
|
823
825
|
domHooks: {
|
|
824
|
-
root: { attr: "data-component", value: "rich-text-editor" }
|
|
826
|
+
root: { attr: "data-component", value: "rich-text-editor" },
|
|
827
|
+
instanceId: {
|
|
828
|
+
attr: "data-component-id",
|
|
829
|
+
sourceProp: "id",
|
|
830
|
+
description: "Sourced from the id prop."
|
|
831
|
+
}
|
|
825
832
|
}
|
|
826
833
|
};
|
|
827
834
|
export {
|
|
828
|
-
|
|
829
|
-
|
|
835
|
+
Xe as R,
|
|
836
|
+
Pe as a,
|
|
830
837
|
Ze as e,
|
|
831
|
-
|
|
838
|
+
ht as r,
|
|
832
839
|
U as t,
|
|
833
|
-
|
|
840
|
+
Ve as w
|
|
834
841
|
};
|
|
835
|
-
//# sourceMappingURL=rich-text-editor.agent-
|
|
842
|
+
//# sourceMappingURL=rich-text-editor.agent-DnE125Tz.js.map
|