@alfadocs/ui-kit 0.72.2 → 0.73.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/dist/_chunks/{agenda-tray-loL2A3Cx.js → agenda-tray-CVf-jfWU.js} +3 -3
- package/dist/_chunks/{ai-consent-banner-Bke9m8VS.js → ai-consent-banner-DUhr1yNj.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-TVI95hJD.js → ai-prompt-input-DFm58UjY.js} +2 -2
- package/dist/_chunks/{alia-sidebar-BV5lBSFR.js → alia-sidebar-w6B0TEx7.js} +8 -8
- package/dist/_chunks/{anamnesis-card-CWO4Ui9c.js → anamnesis-card-CJ5MNbkc.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CY-VsLok.js → antenatal-schedule-timeline-BzJZqS-8.js} +3 -3
- package/dist/_chunks/{appointment-card-Cy4FOkGP.js → appointment-card-DgKI5QKD.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BWAPPk8F.js → appointment-timeline-DQTG0btW.js} +6 -6
- package/dist/_chunks/{appointment-tray-D3mk04TT.js → appointment-tray-ezyCZN8v.js} +4 -4
- package/dist/_chunks/{ar-BOqyIfoY.js → ar-B1GhtlBP.js} +2 -2
- package/dist/_chunks/arrow-up-right-C2v_MKsK.js +15 -0
- package/dist/_chunks/{audio-recorder-BbjG55dP.js → audio-recorder-CjAY0GAc.js} +3 -3
- package/dist/_chunks/{benefit-card-Xnxj4Gmo.js → benefit-card-DB1Kdrmc.js} +4 -2
- package/dist/_chunks/{bishop-score-C6eoak_j.js → bishop-score-Bs6t6Zv1.js} +2 -2
- package/dist/_chunks/{bmi-calculator-BmQfoEGP.js → bmi-calculator-Bk2GAju7.js} +2 -2
- package/dist/_chunks/{booking-B62CMY5k.js → booking-CWnZhZ5g.js} +8 -8
- package/dist/_chunks/{button-DD_0Xdmr.js → button-CPGiR_bH.js} +56 -35
- package/dist/_chunks/button-group-DzV5wgnx.js +289 -0
- package/dist/_chunks/camera-VSklPDCv.js +21 -0
- package/dist/_chunks/{care-plan-card-DhXbfGzE.js → care-plan-card-CfIP3Vc1.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-D3YGD6rj.js → care-plan-entry-card-CRbS-G00.js} +3 -3
- package/dist/_chunks/{care-plan-header-DtQxyfOb.js → care-plan-header-BXvRpGG8.js} +2 -2
- package/dist/_chunks/{carousel.agent-j7hWxJWr.js → carousel.agent-CtAAdsAd.js} +2 -2
- package/dist/_chunks/{chat-container-BVCoN06N.js → chat-container-HlFnoEIl.js} +4 -2
- package/dist/_chunks/{chat-input-Btq_uuMZ.js → chat-input-BTCDqUDX.js} +2 -2
- package/dist/_chunks/{chat-message-DXjjM8z9.js → chat-message-CdjWqZjo.js} +3 -3
- package/dist/_chunks/{code-block-Cwi7e3HM.js → code-block-BwanBjRh.js} +2 -2
- package/dist/_chunks/{connection-status-0HajXMXM.js → connection-status-oEUyrvev.js} +3 -3
- package/dist/_chunks/{contact-profile-card-IggiUVpN.js → contact-profile-card-veMV3W4J.js} +2 -2
- package/dist/_chunks/{control-room-rail-DaGcsdZ6.js → control-room-rail-CdfrZ6Vr.js} +3 -3
- package/dist/_chunks/{copy-field-PAp0-Wr5.js → copy-field-DBc9QquW.js} +2 -2
- package/dist/_chunks/{cycle-calculator-BNILyVas.js → cycle-calculator-OQp8Ik5U.js} +4 -4
- package/dist/_chunks/{date-picker-CVkD_lOi.js → date-picker-DzQS8mvt.js} +2 -2
- package/dist/_chunks/{date-picker-variants-DLg-ZrIo.js → date-picker-variants-CYQAm1Gk.js} +116 -115
- package/dist/_chunks/{date-range-picker-Dw12DgV8.js → date-range-picker-Cbz1SKhm.js} +3 -3
- package/dist/_chunks/{date-time-picker-Cd_OJtOy.js → date-time-picker-B5IpU-nd.js} +2 -2
- package/dist/_chunks/{de-DFLsUxeV.js → de-DETDHQ0o.js} +2 -2
- package/dist/_chunks/{description-list-CmBVxIF5.js → description-list-ClNLdRMy.js} +2 -2
- package/dist/_chunks/{document-scanner-B23j4w7X.js → document-scanner-BE6Jz4Ob.js} +198 -230
- package/dist/_chunks/{due-date-calculator-CmdAl_JO.js → due-date-calculator-DASNRgnH.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-z9fJFw6Z.js → editable-currency-cell-renderer-GwfA9tTR.js} +3 -3
- package/dist/_chunks/{editor-overlay-BIOzr8v7.js → editor-overlay-DE3esyio.js} +2 -2
- package/dist/_chunks/{el-OVjBKytp.js → el-HV3jOI0z.js} +2 -2
- package/dist/_chunks/{empty-state-BLy7tigq.js → empty-state-CrLsi0XI.js} +2 -2
- package/dist/_chunks/{entity-summary-DpGziDv5.js → entity-summary--vP698Jn.js} +3 -3
- package/dist/_chunks/eraser-CHOGQfVv.js +21 -0
- package/dist/_chunks/{es-DKDNrHXG.js → es-Dpo7Olwo.js} +2 -2
- package/dist/_chunks/face-scheme-C0rk21gg.js +3146 -0
- package/dist/_chunks/{fetal-weight-CVAH8sJ3.js → fetal-weight-1F9N4IMx.js} +2 -2
- package/dist/_chunks/{field-array-CDzc3hTM.js → field-array-DH3Mb1i8.js} +3 -3
- package/dist/_chunks/{field-value-Dj3i52H2.js → field-value-DCXJXKab.js} +5 -5
- package/dist/_chunks/{file-upload-Kw1rdvFw.js → file-upload-B2SXhRiN.js} +104 -111
- package/dist/_chunks/{finished-terminal-Di4gtZ50.js → finished-terminal-C0_mefrf.js} +11 -11
- package/dist/_chunks/{fiscal-code-input-DKNXFXs3.js → fiscal-code-input-DWA6C8x8.js} +2 -2
- package/dist/_chunks/{fr-BfMvQh-v.js → fr-CgD4Jvtq.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DFoeedwh.js → freemium-paywall-CmV642PA.js} +7 -3
- package/dist/_chunks/{gestational-age-calculator-BwCBPAGX.js → gestational-age-calculator-C9Dfis4I.js} +6 -6
- package/dist/_chunks/{hcg-doubling-CSsWxEJc.js → hcg-doubling-Dqj-EqMT.js} +3 -3
- package/dist/_chunks/{header-DaXWDw0M.js → header-CjwasYnn.js} +88 -79
- package/dist/_chunks/{header-settings-B0G_u-wV.js → header-settings-CRQDCYgr.js} +4 -4
- package/dist/_chunks/{hi-C0GEMwlD.js → hi-Bf8CAP6b.js} +2 -2
- package/dist/_chunks/highlighter-DSkckT2Q.js +15 -0
- package/dist/_chunks/{icon-button-LqoiKcUN.js → icon-button-C_kbcd7I.js} +2 -2
- package/dist/_chunks/icon-button-group-C_lqXTAj.js +391 -0
- package/dist/_chunks/{icon-picker-Di6uYDG-.js → icon-picker-BePK27S-.js} +3 -3
- package/dist/_chunks/{image-cropper-CdmWFrMC.js → image-cropper-DKe4AORY.js} +2 -2
- package/dist/_chunks/{insert-result-C7xSDb8q.js → insert-result-D074GtHX.js} +58 -68
- package/dist/_chunks/{isSameWeek-HddDAyJG.js → isSameWeek-BYl5poz_.js} +2 -2
- package/dist/_chunks/{it-5f4hiT2e.js → it-mt1V2DFS.js} +3 -3
- package/dist/_chunks/{ja-U0_2inl_.js → ja-CbOHn2TO.js} +2 -2
- package/dist/_chunks/{key-value-pair-Byyyc_9J.js → key-value-pair-LHKfDT_9.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BCppbMec.js → link-cell-renderer-CLI7sBkX.js} +803 -778
- package/dist/_chunks/{locale-picker-DzF7Q5Y8.js → locale-picker-Cbfqc0_N.js} +3 -3
- package/dist/_chunks/{map-view-ByPvWG_9.js → map-view-CsaHfoo6.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BCYiOvKZ.js → marketplace-app-shell-Dm6S-hun.js} +6 -6
- package/dist/_chunks/{message-card-BZnnffyB.js → message-card-ievotOFa.js} +3 -3
- package/dist/_chunks/{message-tray-cUHOCdU0.js → message-tray-BFlu8clI.js} +4 -4
- package/dist/_chunks/{nl-CDVnnx1U.js → nl-C6Y0QXnm.js} +2 -2
- package/dist/_chunks/{notes-panel-CMyjUXD4.js → notes-panel-B_8-Mebz.js} +3 -3
- package/dist/_chunks/{notification-card-BHJ07FkH.js → notification-card-D29_sVA1.js} +3 -3
- package/dist/_chunks/{notification-tray-Dzm1c3Wy.js → notification-tray-CzIzz3bX.js} +4 -4
- package/dist/_chunks/optical-prescription-BQ75_kf6.js +1260 -0
- package/dist/_chunks/{patient-details-pU_E5xM2.js → patient-details-JkOI3Ijd.js} +6 -6
- package/dist/_chunks/{patient-search-X9SUZGpy.js → patient-search-BaUJ_Y-N.js} +47 -45
- package/dist/_chunks/{patient-summary-card--t3BjTdU.js → patient-summary-card-CQOLMH3E.js} +4 -4
- package/dist/_chunks/{patient-table-BgWgNIMf.js → patient-table-B_mOe-ZT.js} +2 -2
- package/dist/_chunks/{payment-request-card-2ts7ITxd.js → payment-request-card-C0fqlKqO.js} +25 -24
- package/dist/_chunks/pen-line-D0De5zdl.js +21 -0
- package/dist/_chunks/{periodontal-chart-card-6c6Lt4ws.js → periodontal-chart-card-WVjJAheq.js} +2 -2
- package/dist/_chunks/{pl-BWNumNrg.js → pl-BdazJAOp.js} +3 -3
- package/dist/_chunks/{popover-uJ6BvEU3.js → popover-DGTKfLWh.js} +2 -2
- package/dist/_chunks/{practice-results-CSEHTH2V.js → practice-results-BCr7jMt1.js} +5 -5
- package/dist/_chunks/{pregnancy-dating-CxVAA6_4.js → pregnancy-dating-IsDVfqJX.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-C7zyrwow.js → pregnancy-weight-gain-B-CkVYnU.js} +2 -2
- package/dist/_chunks/{privacy-lock-DrRmK8C7.js → privacy-lock-YYBiI_bY.js} +3 -3
- package/dist/_chunks/{product-hub-panel-CaZqttvm.js → product-hub-panel-CTld1r5V.js} +3 -3
- package/dist/_chunks/{pt-zqdQuryr.js → pt-B3UKvhHp.js} +2 -2
- package/dist/_chunks/{public-header.agent-C-opZaOw.js → public-header.agent-rX_VA6hd.js} +107 -103
- package/dist/_chunks/{radiograph-panel.agent-D1x33moc.js → radiograph-panel.agent-e488ooH8.js} +40 -57
- package/dist/_chunks/{reviews-panel-liUj6OPX.js → reviews-panel-DmOjvmyH.js} +4 -4
- package/dist/_chunks/{rich-text-editor-DUgznqOf.js → rich-text-editor-CgA2bYwi.js} +186 -195
- package/dist/_chunks/{ro-CornQr64.js → ro-DVTEQpPK.js} +2 -2
- package/dist/_chunks/{ru-CKAXNYVD.js → ru-C-Mp40SC.js} +3 -3
- package/dist/_chunks/{session-countdown-qr8EO5QY.js → session-countdown-C8AsE072.js} +2 -2
- package/dist/_chunks/{sheet-B_X54aZo.js → sheet-D5K0LB3q.js} +2 -2
- package/dist/_chunks/{sidebar-B0OBmJrC.js → sidebar-CtU35PIX.js} +70 -67
- package/dist/_chunks/{sign-document-nK03S73h.js → sign-document-Bfk0WpWV.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-LppxjlFt.js → sign-in-with-alfadocs-button-UlYefZpI.js} +2 -2
- package/dist/_chunks/{signature-capture-Ct_4Md4e.js → signature-capture-DN52VNKL.js} +206 -189
- package/dist/_chunks/{signature-field-jgwYgUhO.js → signature-field-0rFODJlW.js} +47 -41
- package/dist/_chunks/{slot-grid-FsqumOaS.js → slot-grid-CQSULZjd.js} +4 -4
- package/dist/_chunks/{sq-CIIvqXZv.js → sq-DierVlw-.js} +2 -2
- package/dist/_chunks/{streaming-text-Cedc05ya.js → streaming-text-C5bYz7LL.js} +2 -2
- package/dist/_chunks/subDays-DIKRViZm.js +8 -0
- package/dist/_chunks/{sv-Kpk1pzjz.js → sv-gQWo_19z.js} +2 -2
- package/dist/_chunks/{task-tray-DP5A3Qnc.js → task-tray-Br3vc0O1.js} +3 -3
- package/dist/_chunks/{tasks-panel-BuxaYtEF.js → tasks-panel-LCK5ZXvU.js} +5 -5
- package/dist/_chunks/{theme-toggle-dtdy5EaL.js → theme-toggle-BJCz_UOi.js} +3 -3
- package/dist/_chunks/{toast.agent-BSxl057x.js → toast.agent-uV8CeAy6.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Pok4nExI.js → token-insert-menu-BYv6yoZI.js} +2 -2
- package/dist/_chunks/{tool-rail-BZx0-yIr.js → tool-rail-AaTqxkIM.js} +2 -2
- package/dist/_chunks/{tooth-scheme-D_rso4uu.js → tooth-scheme-CX49GycY.js} +3 -3
- package/dist/_chunks/{tr-DHaeLFxG.js → tr-Btm6M3Km.js} +2 -2
- package/dist/_chunks/{transaction-chip-B6iWoVmU.js → transaction-chip-DJCstquX.js} +41 -51
- package/dist/_chunks/type-ggmfVs23.js +16 -0
- package/dist/_chunks/{unit-converter-fEqluT8b.js → unit-converter-3uL_tMCm.js} +2 -2
- package/dist/_chunks/upload-BfT2hzMg.js +16 -0
- package/dist/_chunks/use-priority-overflow-c9SjxZkZ.js +101 -0
- package/dist/_chunks/use-visual-viewport-pin-ChurOsHM.js +31 -0
- package/dist/_chunks/{warning-stack-BaMI7-n7.js → warning-stack-BlG_Ujy3.js} +3 -3
- package/dist/_chunks/{workflow-map-qWsgCldq.js → workflow-map-C643Q43h.js} +5 -5
- package/dist/_chunks/{zh-CN-BncsTBwM.js → zh-CN-DkVN4vsB.js} +3 -3
- package/dist/agent-catalog.json +845 -1034
- package/dist/agent-i18n/en.json +42 -69
- package/dist/brand/product-lockup/product-lockup.d.ts +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/benefit-card/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/button.d.ts +8 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/button-group.d.ts +16 -0
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/counter/counter.d.ts +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +2 -8
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table/toolbar.d.ts +4 -10
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/face-scheme-data.d.ts +167 -0
- package/dist/components/face-scheme/face-scheme.d.ts +112 -2
- package/dist/components/face-scheme/index.d.ts +2 -2
- package/dist/components/face-scheme/index.js +25 -14
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +1 -0
- package/dist/components/file-upload/index.d.ts +1 -1
- package/dist/components/file-upload/index.js +4 -3
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/flag/flag.d.ts +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/icon-button-group.d.ts +6 -0
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/matrix-rain/matrix-rain.d.ts +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.d.ts +4 -2
- package/dist/components/optical-prescription/index.js +29 -26
- package/dist/components/optical-prescription/optical-prescription-charts.d.ts +78 -0
- package/dist/components/optical-prescription/optical-prescription-data.d.ts +29 -0
- package/dist/components/optical-prescription/optical-prescription.d.ts +9 -0
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/radiograph-panel/radiograph-panel.d.ts +2 -2
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-field/signature-field.d.ts +7 -0
- package/dist/components/skeleton-scheme/index.js +1194 -0
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +40 -35
- package/dist/hooks/use-priority-overflow.d.ts +63 -0
- package/dist/hooks/use-visual-viewport-pin.d.ts +32 -0
- package/dist/i18n/locales/ar.d.ts +170 -9
- package/dist/i18n/locales/ar.js +173 -12
- package/dist/i18n/locales/de.d.ts +170 -9
- package/dist/i18n/locales/de.js +173 -12
- package/dist/i18n/locales/el.d.ts +170 -9
- package/dist/i18n/locales/el.js +173 -12
- package/dist/i18n/locales/en.d.ts +170 -9
- package/dist/i18n/locales/en.js +173 -12
- package/dist/i18n/locales/es.d.ts +170 -9
- package/dist/i18n/locales/es.js +173 -12
- package/dist/i18n/locales/fr.d.ts +170 -9
- package/dist/i18n/locales/fr.js +173 -12
- package/dist/i18n/locales/hi.d.ts +170 -9
- package/dist/i18n/locales/hi.js +173 -12
- package/dist/i18n/locales/it.d.ts +170 -9
- package/dist/i18n/locales/it.js +173 -12
- package/dist/i18n/locales/ja.d.ts +170 -9
- package/dist/i18n/locales/ja.js +173 -12
- package/dist/i18n/locales/nl.d.ts +170 -9
- package/dist/i18n/locales/nl.js +173 -12
- package/dist/i18n/locales/pl.d.ts +170 -9
- package/dist/i18n/locales/pl.js +173 -12
- package/dist/i18n/locales/pt.d.ts +170 -9
- package/dist/i18n/locales/pt.js +173 -12
- package/dist/i18n/locales/ro.d.ts +170 -9
- package/dist/i18n/locales/ro.js +173 -12
- package/dist/i18n/locales/ru.d.ts +170 -9
- package/dist/i18n/locales/ru.js +173 -12
- package/dist/i18n/locales/sq.d.ts +170 -9
- package/dist/i18n/locales/sq.js +173 -12
- package/dist/i18n/locales/sv.d.ts +170 -9
- package/dist/i18n/locales/sv.js +173 -12
- package/dist/i18n/locales/tr.d.ts +170 -9
- package/dist/i18n/locales/tr.js +173 -12
- package/dist/i18n/locales/zh.d.ts +170 -9
- package/dist/i18n/locales/zh.js +173 -12
- package/dist/index.js +774 -761
- package/dist/locales/ar.json +173 -12
- package/dist/locales/de.json +173 -12
- package/dist/locales/el.json +173 -12
- package/dist/locales/en.json +173 -12
- package/dist/locales/es.json +173 -12
- package/dist/locales/fr.json +173 -12
- package/dist/locales/hi.json +173 -12
- package/dist/locales/it.json +173 -12
- package/dist/locales/ja.json +173 -12
- package/dist/locales/nl.json +173 -12
- package/dist/locales/pl.json +173 -12
- package/dist/locales/pt.json +173 -12
- package/dist/locales/ro.json +173 -12
- package/dist/locales/ru.json +173 -12
- package/dist/locales/sq.json +173 -12
- package/dist/locales/sv.json +173 -12
- package/dist/locales/tr.json +173 -12
- package/dist/locales/zh.json +173 -12
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +1 -1
- package/dist/tokens.css +2 -2
- package/package.json +5 -5
- package/dist/_chunks/button-group-CvEnVzY7.js +0 -119
- package/dist/_chunks/face-scheme-BT9_KdL0.js +0 -1450
- package/dist/_chunks/icon-button-group-C48khLE0.js +0 -206
- package/dist/_chunks/optical-prescription-Bmlbuopi.js +0 -653
- package/dist/_chunks/patient-shell-oiIRqEAl.js +0 -162
- package/dist/_chunks/subDays-DGSOp9d9.js +0 -8
- package/dist/patterns/patient-shell/index.d.ts +0 -12
- package/dist/patterns/patient-shell/index.js +0 -5
- package/dist/patterns/patient-shell/patient-shell.d.ts +0 -62
|
@@ -5,189 +5,180 @@ import { useTranslation as ee } from "react-i18next";
|
|
|
5
5
|
import { SafeHtml as qt, sanitiseHtml as jt } from "../safe-html/index.js";
|
|
6
6
|
import { u as Ft } from "./registry-DvAUVLHh.js";
|
|
7
7
|
import { S as gt } from "./spinner-hbwuKwMf.js";
|
|
8
|
-
import { I as F } from "./icon-button-
|
|
8
|
+
import { I as F } from "./icon-button-C_kbcd7I.js";
|
|
9
9
|
import { T as Bt } from "./text-area-Bt3p7Pt0.js";
|
|
10
|
-
import { E as Kt } from "./editor-overlay-
|
|
10
|
+
import { E as Kt } from "./editor-overlay-DE3esyio.js";
|
|
11
11
|
import { X as lt } from "./x-B5YnXwCz.js";
|
|
12
12
|
import { R as Vt } from "./rotate-ccw-BBQnIVTr.js";
|
|
13
13
|
import { C as Gt } from "./check-DrFSN__t.js";
|
|
14
14
|
import { S as Se } from "./square-DASBRZ0U.js";
|
|
15
15
|
import { M as ft } from "./mic-CUklMZGF.js";
|
|
16
16
|
import { S as Wt } from "./send-C5kDJ-Mz.js";
|
|
17
|
-
import { B as ie } from "./button-
|
|
17
|
+
import { B as ie } from "./button-CPGiR_bH.js";
|
|
18
18
|
import { a as pt } from "./tooltip-DvmfrNvB.js";
|
|
19
|
-
import { P as q } from "./popover-
|
|
19
|
+
import { P as q } from "./popover-DGTKfLWh.js";
|
|
20
20
|
import { D as Ae } from "./dropdown-menu-DU-Hrf33.js";
|
|
21
21
|
import { D as B } from "./dialog-UbKJCi1X.js";
|
|
22
22
|
import { C as We } from "./color-picker-D-tUwxxT.js";
|
|
23
23
|
import { T as Ie } from "./text-input-CUvCb6ST.js";
|
|
24
24
|
import { C as Xt } from "./checkbox-BuZ1u__2.js";
|
|
25
|
-
import { F as Ut } from "./file-upload-
|
|
25
|
+
import { F as Ut } from "./file-upload-B2SXhRiN.js";
|
|
26
26
|
import { c as T } from "./createLucideIcon-DhHxpK9K.js";
|
|
27
27
|
import { E as Qt } from "./ellipsis-dRo9ouSU.js";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { C as Jt } from "./
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
28
|
+
import { H as Zt } from "./highlighter-DSkckT2Q.js";
|
|
29
|
+
import { I as Yt } from "./image-B_5MNK0x.js";
|
|
30
|
+
import { C as Jt } from "./chevron-down-DWE7GSq9.js";
|
|
31
|
+
import { C as er } from "./columns-2-8lq4-b8e.js";
|
|
32
|
+
import { T as tr } from "./trash-2-uumy3fy1.js";
|
|
33
|
+
import { A as rr } from "./astroid-BN4f5VXU.js";
|
|
33
34
|
/**
|
|
34
35
|
* @license lucide-react v1.22.0 - ISC
|
|
35
36
|
*
|
|
36
37
|
* This source code is licensed under the ISC license.
|
|
37
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
38
39
|
*/
|
|
39
|
-
const
|
|
40
|
+
const nr = [
|
|
40
41
|
["path", { d: "M4 20h16", key: "14thso" }],
|
|
41
42
|
["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
|
|
42
43
|
["path", { d: "M8 12h8", key: "1wcyev" }]
|
|
43
|
-
],
|
|
44
|
+
], or = T("baseline", nr);
|
|
44
45
|
/**
|
|
45
46
|
* @license lucide-react v1.22.0 - ISC
|
|
46
47
|
*
|
|
47
48
|
* This source code is licensed under the ISC license.
|
|
48
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
49
50
|
*/
|
|
50
|
-
const
|
|
51
|
+
const ir = [
|
|
51
52
|
["rect", { width: "13", height: "7", x: "3", y: "3", rx: "1", key: "11xb64" }],
|
|
52
53
|
["path", { d: "m22 15-3-3 3-3", key: "26chmm" }],
|
|
53
54
|
["rect", { width: "13", height: "7", x: "3", y: "14", rx: "1", key: "k6ky7n" }]
|
|
54
|
-
],
|
|
55
|
+
], ar = T("between-horizontal-end", ir);
|
|
55
56
|
/**
|
|
56
57
|
* @license lucide-react v1.22.0 - ISC
|
|
57
58
|
*
|
|
58
59
|
* This source code is licensed under the ISC license.
|
|
59
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
61
|
*/
|
|
61
|
-
const
|
|
62
|
+
const sr = [
|
|
62
63
|
["rect", { width: "13", height: "7", x: "8", y: "3", rx: "1", key: "pkso9a" }],
|
|
63
64
|
["path", { d: "m2 9 3 3-3 3", key: "1agib5" }],
|
|
64
65
|
["rect", { width: "13", height: "7", x: "8", y: "14", rx: "1", key: "1q5fc1" }]
|
|
65
|
-
],
|
|
66
|
+
], lr = T("between-horizontal-start", sr);
|
|
66
67
|
/**
|
|
67
68
|
* @license lucide-react v1.22.0 - ISC
|
|
68
69
|
*
|
|
69
70
|
* This source code is licensed under the ISC license.
|
|
70
71
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
72
|
*/
|
|
72
|
-
const
|
|
73
|
+
const cr = [
|
|
73
74
|
["rect", { width: "7", height: "13", x: "3", y: "3", rx: "1", key: "1fdu0f" }],
|
|
74
75
|
["path", { d: "m9 22 3-3 3 3", key: "17z65a" }],
|
|
75
76
|
["rect", { width: "7", height: "13", x: "14", y: "3", rx: "1", key: "1squn4" }]
|
|
76
|
-
],
|
|
77
|
+
], dr = T("between-vertical-end", cr);
|
|
77
78
|
/**
|
|
78
79
|
* @license lucide-react v1.22.0 - ISC
|
|
79
80
|
*
|
|
80
81
|
* This source code is licensed under the ISC license.
|
|
81
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
83
|
*/
|
|
83
|
-
const
|
|
84
|
+
const ur = [
|
|
84
85
|
["rect", { width: "7", height: "13", x: "3", y: "8", rx: "1", key: "1fjrkv" }],
|
|
85
86
|
["path", { d: "m15 2-3 3-3-3", key: "1uh6eb" }],
|
|
86
87
|
["rect", { width: "7", height: "13", x: "14", y: "8", rx: "1", key: "w3fjg8" }]
|
|
87
|
-
],
|
|
88
|
+
], mr = T("between-vertical-start", ur);
|
|
88
89
|
/**
|
|
89
90
|
* @license lucide-react v1.22.0 - ISC
|
|
90
91
|
*
|
|
91
92
|
* This source code is licensed under the ISC license.
|
|
92
93
|
* See the LICENSE file in the root directory of this source tree.
|
|
93
94
|
*/
|
|
94
|
-
const
|
|
95
|
+
const hr = [
|
|
95
96
|
[
|
|
96
97
|
"path",
|
|
97
98
|
{ 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" }
|
|
98
99
|
]
|
|
99
|
-
],
|
|
100
|
+
], gr = T("bold", hr);
|
|
100
101
|
/**
|
|
101
102
|
* @license lucide-react v1.22.0 - ISC
|
|
102
103
|
*
|
|
103
104
|
* This source code is licensed under the ISC license.
|
|
104
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
105
106
|
*/
|
|
106
|
-
const
|
|
107
|
+
const fr = [
|
|
107
108
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
108
109
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
109
110
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
110
111
|
["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
|
|
111
|
-
],
|
|
112
|
+
], pr = T("heading-2", fr);
|
|
112
113
|
/**
|
|
113
114
|
* @license lucide-react v1.22.0 - ISC
|
|
114
115
|
*
|
|
115
116
|
* This source code is licensed under the ISC license.
|
|
116
117
|
* See the LICENSE file in the root directory of this source tree.
|
|
117
118
|
*/
|
|
118
|
-
const
|
|
119
|
+
const br = [
|
|
119
120
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
120
121
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
121
122
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
122
123
|
["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
|
|
123
124
|
["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
|
|
124
|
-
],
|
|
125
|
+
], yr = T("heading-3", br);
|
|
125
126
|
/**
|
|
126
127
|
* @license lucide-react v1.22.0 - ISC
|
|
127
128
|
*
|
|
128
129
|
* This source code is licensed under the ISC license.
|
|
129
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
131
|
*/
|
|
131
|
-
const
|
|
132
|
-
["path", { d: "m9 11-6 6v3h9l3-3", key: "1a3l36" }],
|
|
133
|
-
["path", { d: "m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4", key: "14a9rk" }]
|
|
134
|
-
], vr = T("highlighter", yr);
|
|
135
|
-
/**
|
|
136
|
-
* @license lucide-react v1.22.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/
|
|
141
|
-
const wr = [
|
|
132
|
+
const vr = [
|
|
142
133
|
["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
|
|
143
134
|
["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
|
|
144
135
|
["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
|
|
145
|
-
],
|
|
136
|
+
], wr = T("italic", vr);
|
|
146
137
|
/**
|
|
147
138
|
* @license lucide-react v1.22.0 - ISC
|
|
148
139
|
*
|
|
149
140
|
* This source code is licensed under the ISC license.
|
|
150
141
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
142
|
*/
|
|
152
|
-
const
|
|
143
|
+
const kr = [
|
|
153
144
|
["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71", key: "1cjeqo" }],
|
|
154
145
|
["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71", key: "19qd67" }]
|
|
155
|
-
],
|
|
146
|
+
], xr = T("link", kr);
|
|
156
147
|
/**
|
|
157
148
|
* @license lucide-react v1.22.0 - ISC
|
|
158
149
|
*
|
|
159
150
|
* This source code is licensed under the ISC license.
|
|
160
151
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
152
|
*/
|
|
162
|
-
const
|
|
153
|
+
const Cr = [
|
|
163
154
|
["path", { d: "M11 5h10", key: "1cz7ny" }],
|
|
164
155
|
["path", { d: "M11 12h10", key: "1438ji" }],
|
|
165
156
|
["path", { d: "M11 19h10", key: "11t30w" }],
|
|
166
157
|
["path", { d: "M4 4h1v5", key: "10yrso" }],
|
|
167
158
|
["path", { d: "M4 9h2", key: "r1h2o0" }],
|
|
168
159
|
["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" }]
|
|
169
|
-
],
|
|
160
|
+
], Nr = T("list-ordered", Cr);
|
|
170
161
|
/**
|
|
171
162
|
* @license lucide-react v1.22.0 - ISC
|
|
172
163
|
*
|
|
173
164
|
* This source code is licensed under the ISC license.
|
|
174
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
175
166
|
*/
|
|
176
|
-
const
|
|
167
|
+
const Mr = [
|
|
177
168
|
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
178
169
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
179
170
|
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
180
171
|
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
181
172
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
182
173
|
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
183
|
-
],
|
|
174
|
+
], zr = T("list", Mr);
|
|
184
175
|
/**
|
|
185
176
|
* @license lucide-react v1.22.0 - ISC
|
|
186
177
|
*
|
|
187
178
|
* This source code is licensed under the ISC license.
|
|
188
179
|
* See the LICENSE file in the root directory of this source tree.
|
|
189
180
|
*/
|
|
190
|
-
const
|
|
181
|
+
const Tr = [
|
|
191
182
|
["path", { d: "M11 7 6 2", key: "1jwth8" }],
|
|
192
183
|
["path", { d: "M18.992 12H2.041", key: "xw1gg" }],
|
|
193
184
|
[
|
|
@@ -204,25 +195,25 @@ const _r = [
|
|
|
204
195
|
key: "1nk1rd"
|
|
205
196
|
}
|
|
206
197
|
]
|
|
207
|
-
],
|
|
198
|
+
], _r = T("paint-bucket", Tr);
|
|
208
199
|
/**
|
|
209
200
|
* @license lucide-react v1.22.0 - ISC
|
|
210
201
|
*
|
|
211
202
|
* This source code is licensed under the ISC license.
|
|
212
203
|
* See the LICENSE file in the root directory of this source tree.
|
|
213
204
|
*/
|
|
214
|
-
const
|
|
205
|
+
const Er = [
|
|
215
206
|
["rect", { width: "16", height: "6", x: "2", y: "2", rx: "2", key: "jcyz7m" }],
|
|
216
207
|
["path", { d: "M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2", key: "1b9h7c" }],
|
|
217
208
|
["rect", { width: "4", height: "6", x: "8", y: "16", rx: "1", key: "d6e7yl" }]
|
|
218
|
-
],
|
|
209
|
+
], Ar = T("paint-roller", Er);
|
|
219
210
|
/**
|
|
220
211
|
* @license lucide-react v1.22.0 - ISC
|
|
221
212
|
*
|
|
222
213
|
* This source code is licensed under the ISC license.
|
|
223
214
|
* See the LICENSE file in the root directory of this source tree.
|
|
224
215
|
*/
|
|
225
|
-
const
|
|
216
|
+
const Rr = [
|
|
226
217
|
[
|
|
227
218
|
"path",
|
|
228
219
|
{
|
|
@@ -234,68 +225,68 @@ const Sr = [
|
|
|
234
225
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
235
226
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
236
227
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
237
|
-
],
|
|
228
|
+
], Sr = T("palette", Rr);
|
|
238
229
|
/**
|
|
239
230
|
* @license lucide-react v1.22.0 - ISC
|
|
240
231
|
*
|
|
241
232
|
* This source code is licensed under the ISC license.
|
|
242
233
|
* See the LICENSE file in the root directory of this source tree.
|
|
243
234
|
*/
|
|
244
|
-
const
|
|
235
|
+
const Ir = [
|
|
245
236
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
246
237
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
247
|
-
],
|
|
238
|
+
], Lr = T("panel-left", Ir);
|
|
248
239
|
/**
|
|
249
240
|
* @license lucide-react v1.22.0 - ISC
|
|
250
241
|
*
|
|
251
242
|
* This source code is licensed under the ISC license.
|
|
252
243
|
* See the LICENSE file in the root directory of this source tree.
|
|
253
244
|
*/
|
|
254
|
-
const
|
|
245
|
+
const Hr = [
|
|
255
246
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
256
247
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
257
|
-
],
|
|
248
|
+
], $r = T("panel-right", Hr);
|
|
258
249
|
/**
|
|
259
250
|
* @license lucide-react v1.22.0 - ISC
|
|
260
251
|
*
|
|
261
252
|
* This source code is licensed under the ISC license.
|
|
262
253
|
* See the LICENSE file in the root directory of this source tree.
|
|
263
254
|
*/
|
|
264
|
-
const
|
|
255
|
+
const Dr = [
|
|
265
256
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
266
257
|
["path", { d: "M14 9h1", key: "l0svgy" }],
|
|
267
258
|
["path", { d: "M19 9h2", key: "te2zfg" }],
|
|
268
259
|
["path", { d: "M3 9h2", key: "1h4ldw" }],
|
|
269
260
|
["path", { d: "M9 9h1", key: "15jzuz" }]
|
|
270
|
-
],
|
|
261
|
+
], Pr = T("panel-top-dashed", Dr);
|
|
271
262
|
/**
|
|
272
263
|
* @license lucide-react v1.22.0 - ISC
|
|
273
264
|
*
|
|
274
265
|
* This source code is licensed under the ISC license.
|
|
275
266
|
* See the LICENSE file in the root directory of this source tree.
|
|
276
267
|
*/
|
|
277
|
-
const
|
|
268
|
+
const Or = [
|
|
278
269
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
279
270
|
["path", { d: "M3 9h18", key: "1pudct" }]
|
|
280
|
-
],
|
|
271
|
+
], qr = T("panel-top", Or);
|
|
281
272
|
/**
|
|
282
273
|
* @license lucide-react v1.22.0 - ISC
|
|
283
274
|
*
|
|
284
275
|
* This source code is licensed under the ISC license.
|
|
285
276
|
* See the LICENSE file in the root directory of this source tree.
|
|
286
277
|
*/
|
|
287
|
-
const
|
|
278
|
+
const jr = [
|
|
288
279
|
["path", { d: "M13 4v16", key: "8vvj80" }],
|
|
289
280
|
["path", { d: "M17 4v16", key: "7dpous" }],
|
|
290
281
|
["path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13", key: "sh4n9v" }]
|
|
291
|
-
],
|
|
282
|
+
], Fr = T("pilcrow", jr);
|
|
292
283
|
/**
|
|
293
284
|
* @license lucide-react v1.22.0 - ISC
|
|
294
285
|
*
|
|
295
286
|
* This source code is licensed under the ISC license.
|
|
296
287
|
* See the LICENSE file in the root directory of this source tree.
|
|
297
288
|
*/
|
|
298
|
-
const
|
|
289
|
+
const Br = [
|
|
299
290
|
[
|
|
300
291
|
"path",
|
|
301
292
|
{
|
|
@@ -310,101 +301,101 @@ const Kr = [
|
|
|
310
301
|
key: "1ymkrd"
|
|
311
302
|
}
|
|
312
303
|
]
|
|
313
|
-
],
|
|
304
|
+
], Kr = T("quote", Br);
|
|
314
305
|
/**
|
|
315
306
|
* @license lucide-react v1.22.0 - ISC
|
|
316
307
|
*
|
|
317
308
|
* This source code is licensed under the ISC license.
|
|
318
309
|
* See the LICENSE file in the root directory of this source tree.
|
|
319
310
|
*/
|
|
320
|
-
const
|
|
311
|
+
const Vr = [
|
|
321
312
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
322
313
|
["path", { d: "M3 12h18", key: "1i2n21" }]
|
|
323
|
-
],
|
|
314
|
+
], Gr = T("rows-2", Vr);
|
|
324
315
|
/**
|
|
325
316
|
* @license lucide-react v1.22.0 - ISC
|
|
326
317
|
*
|
|
327
318
|
* This source code is licensed under the ISC license.
|
|
328
319
|
* See the LICENSE file in the root directory of this source tree.
|
|
329
320
|
*/
|
|
330
|
-
const
|
|
321
|
+
const Wr = [
|
|
331
322
|
["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
|
|
332
323
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
333
324
|
["path", { d: "m16 20 2 2 4-4", key: "13tcca" }]
|
|
334
|
-
],
|
|
325
|
+
], Xr = T("spell-check", Wr);
|
|
335
326
|
/**
|
|
336
327
|
* @license lucide-react v1.22.0 - ISC
|
|
337
328
|
*
|
|
338
329
|
* This source code is licensed under the ISC license.
|
|
339
330
|
* See the LICENSE file in the root directory of this source tree.
|
|
340
331
|
*/
|
|
341
|
-
const
|
|
332
|
+
const Ur = [
|
|
342
333
|
["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
|
|
343
334
|
["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
|
|
344
335
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
345
|
-
],
|
|
336
|
+
], Qr = T("strikethrough", Ur);
|
|
346
337
|
/**
|
|
347
338
|
* @license lucide-react v1.22.0 - ISC
|
|
348
339
|
*
|
|
349
340
|
* This source code is licensed under the ISC license.
|
|
350
341
|
* See the LICENSE file in the root directory of this source tree.
|
|
351
342
|
*/
|
|
352
|
-
const
|
|
343
|
+
const Zr = [
|
|
353
344
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
354
345
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
355
346
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
356
347
|
["path", { d: "M3 15h18", key: "5xshup" }]
|
|
357
|
-
],
|
|
348
|
+
], Yr = T("table", Zr);
|
|
358
349
|
/**
|
|
359
350
|
* @license lucide-react v1.22.0 - ISC
|
|
360
351
|
*
|
|
361
352
|
* This source code is licensed under the ISC license.
|
|
362
353
|
* See the LICENSE file in the root directory of this source tree.
|
|
363
354
|
*/
|
|
364
|
-
const
|
|
355
|
+
const Jr = [
|
|
365
356
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
366
357
|
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
367
358
|
["path", { d: "M19 19H5", key: "vjpgq2" }]
|
|
368
|
-
],
|
|
359
|
+
], en = T("text-align-center", Jr);
|
|
369
360
|
/**
|
|
370
361
|
* @license lucide-react v1.22.0 - ISC
|
|
371
362
|
*
|
|
372
363
|
* This source code is licensed under the ISC license.
|
|
373
364
|
* See the LICENSE file in the root directory of this source tree.
|
|
374
365
|
*/
|
|
375
|
-
const
|
|
366
|
+
const tn = [
|
|
376
367
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
377
368
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
378
369
|
["path", { d: "M21 19H7", key: "4cu937" }]
|
|
379
|
-
],
|
|
370
|
+
], rn = T("text-align-end", tn);
|
|
380
371
|
/**
|
|
381
372
|
* @license lucide-react v1.22.0 - ISC
|
|
382
373
|
*
|
|
383
374
|
* This source code is licensed under the ISC license.
|
|
384
375
|
* See the LICENSE file in the root directory of this source tree.
|
|
385
376
|
*/
|
|
386
|
-
const
|
|
377
|
+
const nn = [
|
|
387
378
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
388
379
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
389
380
|
["path", { d: "M17 19H3", key: "z6ezky" }]
|
|
390
|
-
],
|
|
381
|
+
], on = T("text-align-start", nn);
|
|
391
382
|
/**
|
|
392
383
|
* @license lucide-react v1.22.0 - ISC
|
|
393
384
|
*
|
|
394
385
|
* This source code is licensed under the ISC license.
|
|
395
386
|
* See the LICENSE file in the root directory of this source tree.
|
|
396
387
|
*/
|
|
397
|
-
const
|
|
388
|
+
const an = [
|
|
398
389
|
["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
|
|
399
390
|
["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
|
|
400
|
-
],
|
|
391
|
+
], sn = T("underline", an);
|
|
401
392
|
/**
|
|
402
393
|
* @license lucide-react v1.22.0 - ISC
|
|
403
394
|
*
|
|
404
395
|
* This source code is licensed under the ISC license.
|
|
405
396
|
* See the LICENSE file in the root directory of this source tree.
|
|
406
397
|
*/
|
|
407
|
-
const
|
|
398
|
+
const ln = [
|
|
408
399
|
[
|
|
409
400
|
"path",
|
|
410
401
|
{
|
|
@@ -419,14 +410,14 @@ const cn = [
|
|
|
419
410
|
["path", { d: "M7 8H3", key: "zfb6yr" }],
|
|
420
411
|
["path", { d: "M21 16h-4", key: "1cnmox" }],
|
|
421
412
|
["path", { d: "M11 3H9", key: "1obp7u" }]
|
|
422
|
-
],
|
|
413
|
+
], cn = T("wand-sparkles", ln);
|
|
423
414
|
/**
|
|
424
415
|
* @license lucide-react v1.22.0 - ISC
|
|
425
416
|
*
|
|
426
417
|
* This source code is licensed under the ISC license.
|
|
427
418
|
* See the LICENSE file in the root directory of this source tree.
|
|
428
419
|
*/
|
|
429
|
-
const
|
|
420
|
+
const dn = [
|
|
430
421
|
[
|
|
431
422
|
"path",
|
|
432
423
|
{
|
|
@@ -434,7 +425,7 @@ const un = [
|
|
|
434
425
|
key: "1ngwbx"
|
|
435
426
|
}
|
|
436
427
|
]
|
|
437
|
-
],
|
|
428
|
+
], un = T("wrench", dn), mn = {
|
|
438
429
|
id: "rich-text-editor",
|
|
439
430
|
capabilities: ["edit_inline"],
|
|
440
431
|
state: {
|
|
@@ -571,7 +562,7 @@ const un = [
|
|
|
571
562
|
description: "Sourced from the id prop."
|
|
572
563
|
}
|
|
573
564
|
}
|
|
574
|
-
},
|
|
565
|
+
}, hn = "ds:aria-pressed:!bg-[var(--destructive)] ds:aria-pressed:!text-[var(--destructive-foreground)]", ce = "ds:!size-[var(--min-target-size)]", gn = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", fn = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--destructive)]", ct = [
|
|
575
566
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
576
567
|
"ds:bg-[color-mix(in_srgb,var(--background)_70%,transparent)]",
|
|
577
568
|
"ds:p-[var(--spacing-sm)] ds:[max-block-size:10rem] ds:overflow-y-auto",
|
|
@@ -580,7 +571,7 @@ const un = [
|
|
|
580
571
|
function dt(o, i) {
|
|
581
572
|
return i ? o ? /\s$/.test(o) ? `${o}${i}` : `${o} ${i}` : i : o;
|
|
582
573
|
}
|
|
583
|
-
function
|
|
574
|
+
function pn({
|
|
584
575
|
open: o,
|
|
585
576
|
onClose: i,
|
|
586
577
|
onRequestAiDraft: g,
|
|
@@ -729,7 +720,7 @@ function bn({
|
|
|
729
720
|
{
|
|
730
721
|
size: "md",
|
|
731
722
|
intent: "outline",
|
|
732
|
-
className: x ? `${ce} ${
|
|
723
|
+
className: x ? `${ce} ${hn}` : ce,
|
|
733
724
|
icon: x ? /* @__PURE__ */ e(Se, { className: "ds:fill-current" }) : /* @__PURE__ */ e(ft, {}),
|
|
734
725
|
"aria-pressed": x,
|
|
735
726
|
"aria-label": u(x ? "editor.ai.dictateStop" : "editor.ai.dictateStart"),
|
|
@@ -751,50 +742,50 @@ function bn({
|
|
|
751
742
|
)
|
|
752
743
|
] }),
|
|
753
744
|
b ? /* @__PURE__ */ e("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: X }) : null,
|
|
754
|
-
$ ? /* @__PURE__ */ e("p", { id: C, role: "alert", className:
|
|
745
|
+
$ ? /* @__PURE__ */ e("p", { id: C, role: "alert", className: fn, children: u("editor.ai.error") }) : d ? /* @__PURE__ */ e("p", { className: gn, children: d }) : null
|
|
755
746
|
] })
|
|
756
747
|
}
|
|
757
748
|
);
|
|
758
749
|
}
|
|
759
|
-
const
|
|
750
|
+
const bn = {
|
|
760
751
|
bold: {
|
|
761
752
|
id: "bold",
|
|
762
|
-
icon: /* @__PURE__ */ e(
|
|
753
|
+
icon: /* @__PURE__ */ e(gr, {}),
|
|
763
754
|
label: ["editor.bold", "Bold"],
|
|
764
755
|
command: ["module.inline.format", { tag: "b" }],
|
|
765
756
|
toggle: "bold"
|
|
766
757
|
},
|
|
767
758
|
italic: {
|
|
768
759
|
id: "italic",
|
|
769
|
-
icon: /* @__PURE__ */ e(
|
|
760
|
+
icon: /* @__PURE__ */ e(wr, {}),
|
|
770
761
|
label: ["editor.italic", "Italic"],
|
|
771
762
|
command: ["module.inline.format", { tag: "i" }],
|
|
772
763
|
toggle: "italic"
|
|
773
764
|
},
|
|
774
765
|
underline: {
|
|
775
766
|
id: "underline",
|
|
776
|
-
icon: /* @__PURE__ */ e(
|
|
767
|
+
icon: /* @__PURE__ */ e(sn, {}),
|
|
777
768
|
label: ["editor.underline", "Underline"],
|
|
778
769
|
command: ["module.inline.format", { tag: "u" }],
|
|
779
770
|
toggle: "underline"
|
|
780
771
|
},
|
|
781
772
|
strike: {
|
|
782
773
|
id: "strike",
|
|
783
|
-
icon: /* @__PURE__ */ e(
|
|
774
|
+
icon: /* @__PURE__ */ e(Qr, {}),
|
|
784
775
|
label: ["editor.strike", "Strikethrough"],
|
|
785
776
|
command: ["module.inline.format", { tag: "del" }],
|
|
786
777
|
toggle: "strike"
|
|
787
778
|
},
|
|
788
779
|
ul: {
|
|
789
780
|
id: "ul",
|
|
790
|
-
icon: /* @__PURE__ */ e(
|
|
781
|
+
icon: /* @__PURE__ */ e(zr, {}),
|
|
791
782
|
label: ["editor.list.bullet", "Bulleted list"],
|
|
792
783
|
command: ["module.list.toggle", "ul"],
|
|
793
784
|
toggle: "ul"
|
|
794
785
|
},
|
|
795
786
|
ol: {
|
|
796
787
|
id: "ol",
|
|
797
|
-
icon: /* @__PURE__ */ e(
|
|
788
|
+
icon: /* @__PURE__ */ e(Nr, {}),
|
|
798
789
|
label: ["editor.list.ordered", "Numbered list"],
|
|
799
790
|
command: ["module.list.toggle", "ol"],
|
|
800
791
|
toggle: "ol"
|
|
@@ -803,28 +794,28 @@ const yn = {
|
|
|
803
794
|
{
|
|
804
795
|
id: "paragraph",
|
|
805
796
|
tag: "p",
|
|
806
|
-
icon: /* @__PURE__ */ e(
|
|
797
|
+
icon: /* @__PURE__ */ e(Fr, {}),
|
|
807
798
|
label: ["editor.paragraph", "Paragraph"]
|
|
808
799
|
},
|
|
809
800
|
{
|
|
810
801
|
id: "h2",
|
|
811
802
|
tag: "h2",
|
|
812
|
-
icon: /* @__PURE__ */ e(
|
|
803
|
+
icon: /* @__PURE__ */ e(pr, {}),
|
|
813
804
|
label: ["editor.heading2", "Heading 2"]
|
|
814
805
|
},
|
|
815
806
|
{
|
|
816
807
|
id: "h3",
|
|
817
808
|
tag: "h3",
|
|
818
|
-
icon: /* @__PURE__ */ e(
|
|
809
|
+
icon: /* @__PURE__ */ e(yr, {}),
|
|
819
810
|
label: ["editor.heading3", "Heading 3"]
|
|
820
811
|
},
|
|
821
812
|
{
|
|
822
813
|
id: "quote",
|
|
823
814
|
tag: "blockquote",
|
|
824
|
-
icon: /* @__PURE__ */ e(
|
|
815
|
+
icon: /* @__PURE__ */ e(Kr, {}),
|
|
825
816
|
label: ["editor.quote", "Quote"]
|
|
826
817
|
}
|
|
827
|
-
],
|
|
818
|
+
], yn = {
|
|
828
819
|
minimal: ["bold", "italic", "underline", "link"],
|
|
829
820
|
standard: [
|
|
830
821
|
"format",
|
|
@@ -841,69 +832,69 @@ const yn = {
|
|
|
841
832
|
{
|
|
842
833
|
id: "rowAbove",
|
|
843
834
|
command: "plugin.table.addRowAbove",
|
|
844
|
-
icon: /* @__PURE__ */ e(
|
|
835
|
+
icon: /* @__PURE__ */ e(lr, {}),
|
|
845
836
|
label: ["editor.table.rowAbove", "Add row above"]
|
|
846
837
|
},
|
|
847
838
|
{
|
|
848
839
|
id: "rowBelow",
|
|
849
840
|
command: "plugin.table.addRowBelow",
|
|
850
|
-
icon: /* @__PURE__ */ e(
|
|
841
|
+
icon: /* @__PURE__ */ e(ar, {}),
|
|
851
842
|
label: ["editor.table.rowBelow", "Add row below"]
|
|
852
843
|
},
|
|
853
844
|
{
|
|
854
845
|
id: "colLeft",
|
|
855
846
|
command: "plugin.table.addColumnLeft",
|
|
856
|
-
icon: /* @__PURE__ */ e(
|
|
847
|
+
icon: /* @__PURE__ */ e(mr, {}),
|
|
857
848
|
label: ["editor.table.columnLeft", "Add column left"]
|
|
858
849
|
},
|
|
859
850
|
{
|
|
860
851
|
id: "colRight",
|
|
861
852
|
command: "plugin.table.addColumnRight",
|
|
862
|
-
icon: /* @__PURE__ */ e(
|
|
853
|
+
icon: /* @__PURE__ */ e(dr, {}),
|
|
863
854
|
label: ["editor.table.columnRight", "Add column right"]
|
|
864
855
|
},
|
|
865
856
|
{
|
|
866
857
|
id: "addHead",
|
|
867
858
|
command: "plugin.table.addHead",
|
|
868
|
-
icon: /* @__PURE__ */ e(
|
|
859
|
+
icon: /* @__PURE__ */ e(qr, {}),
|
|
869
860
|
label: ["editor.table.addHeader", "Add header row"]
|
|
870
861
|
},
|
|
871
862
|
{
|
|
872
863
|
id: "deleteHead",
|
|
873
864
|
command: "plugin.table.deleteHead",
|
|
874
|
-
icon: /* @__PURE__ */ e(
|
|
865
|
+
icon: /* @__PURE__ */ e(Pr, {}),
|
|
875
866
|
label: ["editor.table.deleteHeader", "Remove header row"]
|
|
876
867
|
},
|
|
877
868
|
{
|
|
878
869
|
id: "deleteRow",
|
|
879
870
|
command: "plugin.table.deleteRow",
|
|
880
|
-
icon: /* @__PURE__ */ e(
|
|
871
|
+
icon: /* @__PURE__ */ e(Gr, {}),
|
|
881
872
|
label: ["editor.table.deleteRow", "Delete row"]
|
|
882
873
|
},
|
|
883
874
|
{
|
|
884
875
|
id: "deleteColumn",
|
|
885
876
|
command: "plugin.table.deleteColumn",
|
|
886
|
-
icon: /* @__PURE__ */ e(
|
|
877
|
+
icon: /* @__PURE__ */ e(er, {}),
|
|
887
878
|
label: ["editor.table.deleteColumn", "Delete column"]
|
|
888
879
|
},
|
|
889
880
|
{
|
|
890
881
|
id: "deleteTable",
|
|
891
882
|
command: "plugin.table.deleteTable",
|
|
892
|
-
icon: /* @__PURE__ */ e(
|
|
883
|
+
icon: /* @__PURE__ */ e(tr, {}),
|
|
893
884
|
label: ["editor.table.deleteTable", "Delete table"]
|
|
894
885
|
}
|
|
895
|
-
], Re = 6,
|
|
886
|
+
], Re = 6, vn = Ge(
|
|
896
887
|
[
|
|
897
888
|
"ds:@container/toolbar",
|
|
898
889
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
899
890
|
"ds:bg-[var(--background)] ds:p-[var(--spacing-xs)]",
|
|
900
891
|
"ds:shadow-[var(--shadow-md)]"
|
|
901
892
|
].join(" ")
|
|
902
|
-
),
|
|
893
|
+
), wn = "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", Xe = "ds:self-stretch ds:[inline-size:var(--border-width-sm)] ds:bg-[var(--border)] ds:[margin-inline:var(--spacing-2xs)]", ve = "ds:text-[length:var(--font-size-sm)] ds:font-medium ds:text-[color:var(--foreground)]";
|
|
903
894
|
function Le(o) {
|
|
904
895
|
return o.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
905
896
|
}
|
|
906
|
-
function
|
|
897
|
+
function kn({
|
|
907
898
|
run: o,
|
|
908
899
|
active: i,
|
|
909
900
|
onTriggerDown: g
|
|
@@ -916,7 +907,7 @@ function xn({
|
|
|
916
907
|
size: "sm",
|
|
917
908
|
intent: "ghost",
|
|
918
909
|
startIcon: m.icon,
|
|
919
|
-
endIcon: /* @__PURE__ */ e(
|
|
910
|
+
endIcon: /* @__PURE__ */ e(Jt, {}),
|
|
920
911
|
"aria-label": `${c("editor.format", "Paragraph style")}: ${c(
|
|
921
912
|
m.label[0],
|
|
922
913
|
m.label[1]
|
|
@@ -936,7 +927,7 @@ function xn({
|
|
|
936
927
|
)) })
|
|
937
928
|
] });
|
|
938
929
|
}
|
|
939
|
-
function
|
|
930
|
+
function xn({
|
|
940
931
|
insertHtml: o,
|
|
941
932
|
saveSelection: i,
|
|
942
933
|
restoreSelection: g,
|
|
@@ -958,7 +949,7 @@ function Cn({
|
|
|
958
949
|
{
|
|
959
950
|
size: "sm",
|
|
960
951
|
intent: "ghost",
|
|
961
|
-
icon: /* @__PURE__ */ e(
|
|
952
|
+
icon: /* @__PURE__ */ e(xr, {}),
|
|
962
953
|
"aria-label": m("editor.link.insert", "Insert link"),
|
|
963
954
|
onMouseDown: () => {
|
|
964
955
|
i(), E(c());
|
|
@@ -1009,7 +1000,7 @@ function Cn({
|
|
|
1009
1000
|
] })
|
|
1010
1001
|
] });
|
|
1011
1002
|
}
|
|
1012
|
-
function
|
|
1003
|
+
function Cn({
|
|
1013
1004
|
insertHtml: o,
|
|
1014
1005
|
saveSelection: i,
|
|
1015
1006
|
restoreSelection: g,
|
|
@@ -1030,7 +1021,7 @@ function Nn({
|
|
|
1030
1021
|
{
|
|
1031
1022
|
size: "sm",
|
|
1032
1023
|
intent: "ghost",
|
|
1033
|
-
icon: /* @__PURE__ */ e(
|
|
1024
|
+
icon: /* @__PURE__ */ e(Yt, {}),
|
|
1034
1025
|
"aria-label": m("editor.image.insert", "Insert image"),
|
|
1035
1026
|
onMouseDown: () => i()
|
|
1036
1027
|
}
|
|
@@ -1092,7 +1083,7 @@ function Nn({
|
|
|
1092
1083
|
] })
|
|
1093
1084
|
] });
|
|
1094
1085
|
}
|
|
1095
|
-
function
|
|
1086
|
+
function Nn({
|
|
1096
1087
|
run: o,
|
|
1097
1088
|
saveSelection: i,
|
|
1098
1089
|
restoreSelection: g
|
|
@@ -1112,7 +1103,7 @@ function Mn({
|
|
|
1112
1103
|
{
|
|
1113
1104
|
size: "sm",
|
|
1114
1105
|
intent: "ghost",
|
|
1115
|
-
icon: /* @__PURE__ */ e(
|
|
1106
|
+
icon: /* @__PURE__ */ e(Sr, {}),
|
|
1116
1107
|
"aria-label": c("editor.textColor", "Text colour"),
|
|
1117
1108
|
onMouseDown: (w) => {
|
|
1118
1109
|
w.preventDefault(), i();
|
|
@@ -1134,7 +1125,7 @@ function Mn({
|
|
|
1134
1125
|
] })
|
|
1135
1126
|
] });
|
|
1136
1127
|
}
|
|
1137
|
-
function
|
|
1128
|
+
function Mn({
|
|
1138
1129
|
run: o,
|
|
1139
1130
|
saveSelection: i,
|
|
1140
1131
|
restoreSelection: g
|
|
@@ -1154,7 +1145,7 @@ function zn({
|
|
|
1154
1145
|
{
|
|
1155
1146
|
size: "sm",
|
|
1156
1147
|
intent: "ghost",
|
|
1157
|
-
icon: /* @__PURE__ */ e(
|
|
1148
|
+
icon: /* @__PURE__ */ e(Zt, {}),
|
|
1158
1149
|
"aria-label": c("editor.highlightColor", "Highlight"),
|
|
1159
1150
|
onMouseDown: (w) => {
|
|
1160
1151
|
w.preventDefault(), i();
|
|
@@ -1176,11 +1167,11 @@ function zn({
|
|
|
1176
1167
|
] })
|
|
1177
1168
|
] });
|
|
1178
1169
|
}
|
|
1179
|
-
function
|
|
1170
|
+
function zn(o, i) {
|
|
1180
1171
|
const g = Array.from({ length: i }, () => "<td><br></td>").join("");
|
|
1181
1172
|
return `<table><tbody>${Array.from({ length: o }, () => `<tr>${g}</tr>`).join("")}</tbody></table>`;
|
|
1182
1173
|
}
|
|
1183
|
-
function
|
|
1174
|
+
function Tn({
|
|
1184
1175
|
run: o,
|
|
1185
1176
|
insertTable: i,
|
|
1186
1177
|
active: g
|
|
@@ -1192,7 +1183,7 @@ function _n({
|
|
|
1192
1183
|
{
|
|
1193
1184
|
size: "sm",
|
|
1194
1185
|
intent: "ghost",
|
|
1195
|
-
icon: /* @__PURE__ */ e(
|
|
1186
|
+
icon: /* @__PURE__ */ e(Yr, {}),
|
|
1196
1187
|
"aria-label": c("editor.table.insert", "Insert table"),
|
|
1197
1188
|
onMouseDown: (u) => u.preventDefault()
|
|
1198
1189
|
}
|
|
@@ -1241,7 +1232,7 @@ function _n({
|
|
|
1241
1232
|
c: E
|
|
1242
1233
|
}),
|
|
1243
1234
|
onMouseEnter: () => d({ r: C, c: E }),
|
|
1244
|
-
onClick: () => i(
|
|
1235
|
+
onClick: () => i(zn(C, E)),
|
|
1245
1236
|
className: `ds:size-5 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ${L ? "ds:bg-[var(--primary)]" : "ds:bg-[var(--muted)]"}`
|
|
1246
1237
|
},
|
|
1247
1238
|
w
|
|
@@ -1256,12 +1247,12 @@ function _n({
|
|
|
1256
1247
|
] }) })
|
|
1257
1248
|
] });
|
|
1258
1249
|
}
|
|
1259
|
-
const
|
|
1250
|
+
const _n = Object.fromEntries(bt.map((o) => [o.id, o])), En = [
|
|
1260
1251
|
"ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
1261
1252
|
"ds:[inset-block-start:var(--rte-tt-top)] ds:[inset-inline-start:var(--rte-tt-start)]",
|
|
1262
1253
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
1263
1254
|
"ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]"
|
|
1264
|
-
].join(" "),
|
|
1255
|
+
].join(" "), An = "#fde68a";
|
|
1265
1256
|
function ut({
|
|
1266
1257
|
scope: o,
|
|
1267
1258
|
icon: i,
|
|
@@ -1270,7 +1261,7 @@ function ut({
|
|
|
1270
1261
|
saveTableCell: m,
|
|
1271
1262
|
applyTableBackground: d
|
|
1272
1263
|
}) {
|
|
1273
|
-
const { t: b } = ee(), [u, w] = _(
|
|
1264
|
+
const { t: b } = ee(), [u, w] = _(An);
|
|
1274
1265
|
return /* @__PURE__ */ v(
|
|
1275
1266
|
q,
|
|
1276
1267
|
{
|
|
@@ -1315,7 +1306,7 @@ function ut({
|
|
|
1315
1306
|
}
|
|
1316
1307
|
);
|
|
1317
1308
|
}
|
|
1318
|
-
function
|
|
1309
|
+
function Rn({
|
|
1319
1310
|
active: o,
|
|
1320
1311
|
run: i,
|
|
1321
1312
|
areaRef: g,
|
|
@@ -1368,7 +1359,7 @@ function Sn({
|
|
|
1368
1359
|
{
|
|
1369
1360
|
role: "group",
|
|
1370
1361
|
"aria-label": u("editor.table.toolbar", "Table tools"),
|
|
1371
|
-
className: `${
|
|
1362
|
+
className: `${En} ${C.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
|
|
1372
1363
|
style: {
|
|
1373
1364
|
"--rte-tt-top": `${C.top}px`,
|
|
1374
1365
|
"--rte-tt-start": `${C.start}px`
|
|
@@ -1380,7 +1371,7 @@ function Sn({
|
|
|
1380
1371
|
ut,
|
|
1381
1372
|
{
|
|
1382
1373
|
scope: "cell",
|
|
1383
|
-
icon: /* @__PURE__ */ e(
|
|
1374
|
+
icon: /* @__PURE__ */ e(_r, {}),
|
|
1384
1375
|
label: u("editor.table.cellColor", "Cell colour"),
|
|
1385
1376
|
onOpenChange: $,
|
|
1386
1377
|
saveTableCell: d,
|
|
@@ -1391,7 +1382,7 @@ function Sn({
|
|
|
1391
1382
|
ut,
|
|
1392
1383
|
{
|
|
1393
1384
|
scope: "row",
|
|
1394
|
-
icon: /* @__PURE__ */ e(
|
|
1385
|
+
icon: /* @__PURE__ */ e(Ar, {}),
|
|
1395
1386
|
label: u("editor.table.rowColor", "Row colour"),
|
|
1396
1387
|
onOpenChange: $,
|
|
1397
1388
|
saveTableCell: d,
|
|
@@ -1399,7 +1390,7 @@ function Sn({
|
|
|
1399
1390
|
}
|
|
1400
1391
|
)
|
|
1401
1392
|
] }) : a.map((A) => {
|
|
1402
|
-
const x =
|
|
1393
|
+
const x = _n[A];
|
|
1403
1394
|
return /* @__PURE__ */ e(
|
|
1404
1395
|
F,
|
|
1405
1396
|
{
|
|
@@ -1430,43 +1421,43 @@ const Ke = [
|
|
|
1430
1421
|
function mt(o, i) {
|
|
1431
1422
|
return i.find((g) => o.classList.contains(g)) ?? "";
|
|
1432
1423
|
}
|
|
1433
|
-
function
|
|
1424
|
+
function Sn(o) {
|
|
1434
1425
|
const i = o.closest(".redactor-in"), g = i instanceof HTMLElement ? i.clientWidth : 0, c = o.getBoundingClientRect().width;
|
|
1435
1426
|
return g <= 0 || c <= 0 ? we : Math.round(Math.min(we, c / g * 100));
|
|
1436
1427
|
}
|
|
1437
|
-
const Ve = 10, we = 100,
|
|
1428
|
+
const Ve = 10, we = 100, In = 5, Ln = 10, ht = (o) => Math.min(we, Math.max(Ve, Math.round(o))), Hn = [
|
|
1438
1429
|
{
|
|
1439
1430
|
id: "wysiwyg-img-inline",
|
|
1440
|
-
icon: /* @__PURE__ */ e(
|
|
1431
|
+
icon: /* @__PURE__ */ e(or, {}),
|
|
1441
1432
|
label: ["editor.image.inline", "Inline with text"]
|
|
1442
1433
|
},
|
|
1443
1434
|
{
|
|
1444
1435
|
id: "wysiwyg-img-wrap-left",
|
|
1445
|
-
icon: /* @__PURE__ */ e(
|
|
1436
|
+
icon: /* @__PURE__ */ e(Lr, {}),
|
|
1446
1437
|
label: ["editor.image.wrapLeft", "Wrap left"]
|
|
1447
1438
|
},
|
|
1448
1439
|
{
|
|
1449
1440
|
id: "wysiwyg-img-wrap-right",
|
|
1450
|
-
icon: /* @__PURE__ */ e(
|
|
1441
|
+
icon: /* @__PURE__ */ e($r, {}),
|
|
1451
1442
|
label: ["editor.image.wrapRight", "Wrap right"]
|
|
1452
1443
|
}
|
|
1453
|
-
],
|
|
1444
|
+
], $n = [
|
|
1454
1445
|
{
|
|
1455
1446
|
id: "wysiwyg-img-align-left",
|
|
1456
|
-
icon: /* @__PURE__ */ e(
|
|
1447
|
+
icon: /* @__PURE__ */ e(on, {}),
|
|
1457
1448
|
label: ["editor.image.alignLeft", "Align left"]
|
|
1458
1449
|
},
|
|
1459
1450
|
{
|
|
1460
1451
|
id: "wysiwyg-img-align-center",
|
|
1461
|
-
icon: /* @__PURE__ */ e(
|
|
1452
|
+
icon: /* @__PURE__ */ e(en, {}),
|
|
1462
1453
|
label: ["editor.image.alignCenter", "Align centre"]
|
|
1463
1454
|
},
|
|
1464
1455
|
{
|
|
1465
1456
|
id: "wysiwyg-img-align-right",
|
|
1466
|
-
icon: /* @__PURE__ */ e(
|
|
1457
|
+
icon: /* @__PURE__ */ e(rn, {}),
|
|
1467
1458
|
label: ["editor.image.alignRight", "Align right"]
|
|
1468
1459
|
}
|
|
1469
|
-
],
|
|
1460
|
+
], Dn = [
|
|
1470
1461
|
{
|
|
1471
1462
|
id: "tl",
|
|
1472
1463
|
pos: "ds:[inset-block-start:calc(var(--spacing-md)*-0.5)] ds:[inset-inline-start:calc(var(--spacing-md)*-0.5)]",
|
|
@@ -1499,14 +1490,14 @@ const Ve = 10, we = 100, Ln = 5, Hn = 10, ht = (o) => Math.min(we, Math.max(Ve,
|
|
|
1499
1490
|
labelKey: "editor.image.resizeBottomEnd",
|
|
1500
1491
|
labelFallback: "Resize image, bottom-end corner"
|
|
1501
1492
|
}
|
|
1502
|
-
],
|
|
1493
|
+
], Pn = [
|
|
1503
1494
|
"ds:absolute ds:z-20 ds:pointer-events-none",
|
|
1504
1495
|
"ds:[inset-block-start:var(--rte-img-top)] ds:[inset-inline-start:var(--rte-img-start)]",
|
|
1505
1496
|
"ds:[inline-size:var(--rte-img-width)] ds:[block-size:var(--rte-img-height)]",
|
|
1506
1497
|
"ds:rounded-[var(--radius-2xs)]",
|
|
1507
1498
|
"ds:[outline-style:solid] ds:[outline-width:var(--border-width-md)]",
|
|
1508
1499
|
"ds:[outline-color:var(--accent)] ds:[outline-offset:var(--focus-ring-offset)]"
|
|
1509
|
-
].join(" "),
|
|
1500
|
+
].join(" "), On = [
|
|
1510
1501
|
"ds:absolute ds:pointer-events-auto ds:touch-none",
|
|
1511
1502
|
"ds:[inline-size:var(--spacing-md)] ds:[block-size:var(--spacing-md)]",
|
|
1512
1503
|
"ds:rounded-[var(--radius-2xs)] ds:shadow-[var(--shadow-sm)]",
|
|
@@ -1515,13 +1506,13 @@ const Ve = 10, we = 100, Ln = 5, Hn = 10, ht = (o) => Math.min(we, Math.max(Ve,
|
|
|
1515
1506
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
|
|
1516
1507
|
"ds:focus-visible:[outline-offset:var(--focus-ring-offset)]",
|
|
1517
1508
|
"ds:forced-colors:bg-[CanvasText]"
|
|
1518
|
-
].join(" "),
|
|
1509
|
+
].join(" "), qn = [
|
|
1519
1510
|
"ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
1520
1511
|
"ds:[inset-block-start:var(--rte-img-bar-top)] ds:[inset-inline-start:var(--rte-img-center)]",
|
|
1521
1512
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
1522
1513
|
"ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]"
|
|
1523
1514
|
].join(" ");
|
|
1524
|
-
function
|
|
1515
|
+
function jn({
|
|
1525
1516
|
areaRef: o,
|
|
1526
1517
|
activeImageEl: i,
|
|
1527
1518
|
applyImageClass: g,
|
|
@@ -1547,7 +1538,7 @@ function Fn({
|
|
|
1547
1538
|
height: H.height,
|
|
1548
1539
|
center: Math.max(0, U),
|
|
1549
1540
|
barTop: P,
|
|
1550
|
-
pct:
|
|
1541
|
+
pct: Sn(i),
|
|
1551
1542
|
rtl: X
|
|
1552
1543
|
});
|
|
1553
1544
|
};
|
|
@@ -1598,7 +1589,7 @@ function Fn({
|
|
|
1598
1589
|
(l) => {
|
|
1599
1590
|
if (!d) return;
|
|
1600
1591
|
let a = null;
|
|
1601
|
-
const f = l.shiftKey ?
|
|
1592
|
+
const f = l.shiftKey ? Ln : In;
|
|
1602
1593
|
switch (l.key) {
|
|
1603
1594
|
// Up / right always grow; down / left always shrink — independent of
|
|
1604
1595
|
// which corner has focus, so the gesture reads the same everywhere.
|
|
@@ -1632,14 +1623,14 @@ function Fn({
|
|
|
1632
1623
|
/* @__PURE__ */ e(
|
|
1633
1624
|
"div",
|
|
1634
1625
|
{
|
|
1635
|
-
className:
|
|
1626
|
+
className: Pn,
|
|
1636
1627
|
style: {
|
|
1637
1628
|
"--rte-img-top": `${d.top}px`,
|
|
1638
1629
|
"--rte-img-start": `${d.start}px`,
|
|
1639
1630
|
"--rte-img-width": `${d.width}px`,
|
|
1640
1631
|
"--rte-img-height": `${d.height}px`
|
|
1641
1632
|
},
|
|
1642
|
-
children:
|
|
1633
|
+
children: Dn.map((l) => /* @__PURE__ */ e(
|
|
1643
1634
|
"div",
|
|
1644
1635
|
{
|
|
1645
1636
|
role: "slider",
|
|
@@ -1650,7 +1641,7 @@ function Fn({
|
|
|
1650
1641
|
"aria-valuemax": we,
|
|
1651
1642
|
"aria-valuenow": d.pct,
|
|
1652
1643
|
"aria-valuetext": $,
|
|
1653
|
-
className: `${
|
|
1644
|
+
className: `${On} ${l.pos} ${l.cursor}`,
|
|
1654
1645
|
onPointerDown: w(l),
|
|
1655
1646
|
onPointerMove: C,
|
|
1656
1647
|
onPointerUp: E,
|
|
@@ -1666,12 +1657,12 @@ function Fn({
|
|
|
1666
1657
|
{
|
|
1667
1658
|
role: "group",
|
|
1668
1659
|
"aria-label": m("editor.image.toolbar", "Image tools"),
|
|
1669
|
-
className: `${
|
|
1660
|
+
className: `${qn} ${d.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
|
|
1670
1661
|
style: {
|
|
1671
1662
|
"--rte-img-bar-top": `${d.barTop}px`,
|
|
1672
1663
|
"--rte-img-center": `${d.center}px`
|
|
1673
1664
|
},
|
|
1674
|
-
children: [$n
|
|
1665
|
+
children: [Hn, $n].map((l, a) => /* @__PURE__ */ v(He, { children: [
|
|
1675
1666
|
a > 0 ? /* @__PURE__ */ e("span", { "aria-hidden": "true", className: Xe }) : null,
|
|
1676
1667
|
l.map((f) => {
|
|
1677
1668
|
const A = a === 0 ? I === f.id : N === f.id;
|
|
@@ -1694,7 +1685,7 @@ function Fn({
|
|
|
1694
1685
|
) })
|
|
1695
1686
|
] });
|
|
1696
1687
|
}
|
|
1697
|
-
function
|
|
1688
|
+
function Fn({
|
|
1698
1689
|
run: o,
|
|
1699
1690
|
active: i,
|
|
1700
1691
|
preset: g,
|
|
@@ -1709,9 +1700,9 @@ function Bn({
|
|
|
1709
1700
|
enableTable: L = !1,
|
|
1710
1701
|
showExtensions: I = !1
|
|
1711
1702
|
}) {
|
|
1712
|
-
const { t: N } = ee(), $ = (P) => P.preventDefault(), l = (P) =>
|
|
1703
|
+
const { t: N } = ee(), $ = (P) => P.preventDefault(), l = (P) => yn[g].includes(P), a = (P) => {
|
|
1713
1704
|
if (!l(P)) return null;
|
|
1714
|
-
const y =
|
|
1705
|
+
const y = bn[P];
|
|
1715
1706
|
return /* @__PURE__ */ e(
|
|
1716
1707
|
F,
|
|
1717
1708
|
{
|
|
@@ -1731,7 +1722,7 @@ function Bn({
|
|
|
1731
1722
|
a("underline"),
|
|
1732
1723
|
a("strike"),
|
|
1733
1724
|
C ? /* @__PURE__ */ e(
|
|
1734
|
-
|
|
1725
|
+
Nn,
|
|
1735
1726
|
{
|
|
1736
1727
|
run: o,
|
|
1737
1728
|
saveSelection: d,
|
|
@@ -1740,7 +1731,7 @@ function Bn({
|
|
|
1740
1731
|
"colour"
|
|
1741
1732
|
) : null,
|
|
1742
1733
|
C ? /* @__PURE__ */ e(
|
|
1743
|
-
|
|
1734
|
+
Mn,
|
|
1744
1735
|
{
|
|
1745
1736
|
run: o,
|
|
1746
1737
|
saveSelection: d,
|
|
@@ -1750,7 +1741,7 @@ function Bn({
|
|
|
1750
1741
|
) : null
|
|
1751
1742
|
].filter(Boolean), S = A || x.length > 0, Y = [a("ul"), a("ol")].filter(Boolean), H = [
|
|
1752
1743
|
l("link") ? /* @__PURE__ */ e(
|
|
1753
|
-
|
|
1744
|
+
xn,
|
|
1754
1745
|
{
|
|
1755
1746
|
insertHtml: c,
|
|
1756
1747
|
saveSelection: d,
|
|
@@ -1760,7 +1751,7 @@ function Bn({
|
|
|
1760
1751
|
"link"
|
|
1761
1752
|
) : null,
|
|
1762
1753
|
E ? /* @__PURE__ */ e(
|
|
1763
|
-
|
|
1754
|
+
Cn,
|
|
1764
1755
|
{
|
|
1765
1756
|
insertHtml: c,
|
|
1766
1757
|
saveSelection: d,
|
|
@@ -1770,7 +1761,7 @@ function Bn({
|
|
|
1770
1761
|
"image"
|
|
1771
1762
|
) : null,
|
|
1772
1763
|
L ? /* @__PURE__ */ e(
|
|
1773
|
-
|
|
1764
|
+
Tn,
|
|
1774
1765
|
{
|
|
1775
1766
|
run: o,
|
|
1776
1767
|
insertTable: m,
|
|
@@ -1784,7 +1775,7 @@ function Bn({
|
|
|
1784
1775
|
{
|
|
1785
1776
|
size: "sm",
|
|
1786
1777
|
intent: "ghost",
|
|
1787
|
-
icon: /* @__PURE__ */ e(
|
|
1778
|
+
icon: /* @__PURE__ */ e(un, {}),
|
|
1788
1779
|
"aria-label": N("editor.extensions", "Editor extensions"),
|
|
1789
1780
|
disabled: !0,
|
|
1790
1781
|
onMouseDown: $
|
|
@@ -1801,14 +1792,14 @@ function Bn({
|
|
|
1801
1792
|
// Outer element is the query container + visual chrome; the flex row is an
|
|
1802
1793
|
// inner child so `container-type` never lands on the flex parent (which
|
|
1803
1794
|
// would blockify the inline controls).
|
|
1804
|
-
/* @__PURE__ */ e("div", { className:
|
|
1795
|
+
/* @__PURE__ */ e("div", { className: vn(), "data-component": "editor-toolbar", children: /* @__PURE__ */ v(
|
|
1805
1796
|
"div",
|
|
1806
1797
|
{
|
|
1807
1798
|
role: "group",
|
|
1808
1799
|
"aria-label": N("editor.toolbarLabel"),
|
|
1809
|
-
className:
|
|
1800
|
+
className: wn,
|
|
1810
1801
|
children: [
|
|
1811
|
-
A ? /* @__PURE__ */ e(
|
|
1802
|
+
A ? /* @__PURE__ */ e(kn, { run: o, active: i, onTriggerDown: $ }) : null,
|
|
1812
1803
|
A && x.length > 0 ? /* @__PURE__ */ e(f, {}) : null,
|
|
1813
1804
|
x,
|
|
1814
1805
|
K ? /* @__PURE__ */ v(ke, { children: [
|
|
@@ -1845,13 +1836,13 @@ function Be(o = "") {
|
|
|
1845
1836
|
const g = i.replace(/<br\s*\/?>/gi, "").replace(/ /gi, "").replace(/<[^>]+>/g, "").trim();
|
|
1846
1837
|
return g === "" && /<img\b[^>]*>/i.test(i) ? i : g === "" ? "" : i;
|
|
1847
1838
|
}
|
|
1848
|
-
function
|
|
1839
|
+
function Bn(o) {
|
|
1849
1840
|
return o.replace(
|
|
1850
1841
|
/<img(?![^>]*\sloading=)([^>]*)>/gi,
|
|
1851
1842
|
'<img loading="lazy"$1>'
|
|
1852
1843
|
);
|
|
1853
1844
|
}
|
|
1854
|
-
function
|
|
1845
|
+
function Kn(o) {
|
|
1855
1846
|
if (!o || typeof o != "object") return;
|
|
1856
1847
|
const i = o, g = (c) => {
|
|
1857
1848
|
if (c && typeof c == "object" && "url" in c) {
|
|
@@ -1861,13 +1852,13 @@ function Vn(o) {
|
|
|
1861
1852
|
};
|
|
1862
1853
|
return typeof i.url == "string" ? i.url : g(i.file) ?? g(i.data) ?? Object.values(i).map(g).find(Boolean);
|
|
1863
1854
|
}
|
|
1864
|
-
function
|
|
1855
|
+
function Vn(o) {
|
|
1865
1856
|
if (o) return o;
|
|
1866
1857
|
if (typeof window > "u") return null;
|
|
1867
1858
|
const i = window;
|
|
1868
1859
|
return i.$R ?? i.Redactor ?? null;
|
|
1869
1860
|
}
|
|
1870
|
-
const
|
|
1861
|
+
const Gn = {
|
|
1871
1862
|
bold: ["module.inline.format", { tag: "b" }],
|
|
1872
1863
|
italic: ["module.inline.format", { tag: "i" }],
|
|
1873
1864
|
strikethrough: ["module.inline.format", { tag: "del" }],
|
|
@@ -1876,17 +1867,17 @@ const Wn = {
|
|
|
1876
1867
|
heading: ["module.block.format", { tag: "h2" }],
|
|
1877
1868
|
quote: ["module.block.format", { tag: "blockquote" }],
|
|
1878
1869
|
paragraph: ["module.block.format", { tag: "p" }]
|
|
1879
|
-
},
|
|
1870
|
+
}, Wn = {
|
|
1880
1871
|
zh: "zh_cn",
|
|
1881
1872
|
pt: "pt_br"
|
|
1882
1873
|
};
|
|
1883
|
-
function
|
|
1874
|
+
function Xn(o) {
|
|
1884
1875
|
const i = o.split("-")[0];
|
|
1885
|
-
return
|
|
1876
|
+
return Wn[i] ?? i ?? "en";
|
|
1886
1877
|
}
|
|
1887
|
-
const
|
|
1878
|
+
const Un = Ge(
|
|
1888
1879
|
"redactor-theme-alfadocs ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
1889
|
-
),
|
|
1880
|
+
), Qn = Ge(
|
|
1890
1881
|
[
|
|
1891
1882
|
"ds:block ds:[inline-size:100%]",
|
|
1892
1883
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
@@ -1909,7 +1900,7 @@ const Qn = Ge(
|
|
|
1909
1900
|
"ds:focus-visible:outline-solid",
|
|
1910
1901
|
"ds:focus-visible:outline-[var(--primary-foreground)]",
|
|
1911
1902
|
"ds:focus-visible:[outline-offset:calc(var(--focus-ring-width)*-1)]"
|
|
1912
|
-
].join(" "),
|
|
1903
|
+
].join(" "), Zn = `${vt} ds:hover:bg-[color-mix(in_srgb,var(--primary-foreground)_15%,transparent)]`, Yn = `${vt} ds:bg-[var(--destructive)] ds:hover:bg-[color-mix(in_srgb,var(--destructive)_88%,var(--primary-foreground))]`, Jn = Pt(
|
|
1913
1904
|
({
|
|
1914
1905
|
id: o,
|
|
1915
1906
|
defaultValue: i,
|
|
@@ -2222,7 +2213,7 @@ const Qn = Ge(
|
|
|
2222
2213
|
signal: r
|
|
2223
2214
|
});
|
|
2224
2215
|
if (!s.ok) throw new Error(`Image upload failed (${s.status}).`);
|
|
2225
|
-
const h =
|
|
2216
|
+
const h = Kn(await s.json());
|
|
2226
2217
|
if (!h) throw new Error("Image upload response contained no URL.");
|
|
2227
2218
|
return h;
|
|
2228
2219
|
},
|
|
@@ -2307,14 +2298,14 @@ const Qn = Ge(
|
|
|
2307
2298
|
const t = V.current;
|
|
2308
2299
|
if (!t) return;
|
|
2309
2300
|
t.value = Nt.current;
|
|
2310
|
-
const r =
|
|
2301
|
+
const r = Vn(L);
|
|
2311
2302
|
if (!r) {
|
|
2312
2303
|
te(!0);
|
|
2313
2304
|
return;
|
|
2314
2305
|
}
|
|
2315
2306
|
G.current = r;
|
|
2316
2307
|
const n = {
|
|
2317
|
-
lang: $ ??
|
|
2308
|
+
lang: $ ?? Xn(K.language || "en"),
|
|
2318
2309
|
// The kit renders its OWN toolbar (EditorToolbar) and drives Redactor
|
|
2319
2310
|
// via the command API, so Redactor's native toolbar is suppressed.
|
|
2320
2311
|
toolbar: !1,
|
|
@@ -2341,7 +2332,7 @@ const Qn = Ge(
|
|
|
2341
2332
|
callbacks: {
|
|
2342
2333
|
...h,
|
|
2343
2334
|
changed(z) {
|
|
2344
|
-
const W = Be(
|
|
2335
|
+
const W = Be(Bn(z)), Ee = oe(W);
|
|
2345
2336
|
he.current = !0, Q.current && (fe.current && clearTimeout(fe.current), fe.current = setTimeout(() => {
|
|
2346
2337
|
var ye;
|
|
2347
2338
|
(ye = Q.current) == null || ye.call(Q, { html: Ee, markdown: "" });
|
|
@@ -2413,7 +2404,7 @@ const Qn = Ge(
|
|
|
2413
2404
|
},
|
|
2414
2405
|
insertAtCursor: se,
|
|
2415
2406
|
applyFormat(t) {
|
|
2416
|
-
const r =
|
|
2407
|
+
const r = Gn[t];
|
|
2417
2408
|
r && ue(...r);
|
|
2418
2409
|
},
|
|
2419
2410
|
focus() {
|
|
@@ -2433,7 +2424,7 @@ const Qn = Ge(
|
|
|
2433
2424
|
}),
|
|
2434
2425
|
[y, ae, re, se, ue]
|
|
2435
2426
|
);
|
|
2436
|
-
Ot(X, () => qe, [qe]), Ft(
|
|
2427
|
+
Ot(X, () => qe, [qe]), Ft(mn, qe, o);
|
|
2437
2428
|
const $t = k(
|
|
2438
2429
|
(t) => {
|
|
2439
2430
|
var r;
|
|
@@ -2470,19 +2461,19 @@ const Qn = Ge(
|
|
|
2470
2461
|
key: "proofread",
|
|
2471
2462
|
// While running, the segment becomes a STOP/cancel button (progress is
|
|
2472
2463
|
// shown by the scrim spinner).
|
|
2473
|
-
icon: ne === "proofread" ? /* @__PURE__ */ e(Se, { "aria-hidden": "true", className: "ds:size-5 ds:fill-current" }) : /* @__PURE__ */ e(
|
|
2464
|
+
icon: ne === "proofread" ? /* @__PURE__ */ e(Se, { "aria-hidden": "true", className: "ds:size-5 ds:fill-current" }) : /* @__PURE__ */ e(Xr, { "aria-hidden": "true", className: "ds:size-5" }),
|
|
2474
2465
|
label: ne === "proofread" ? R("common.cancel") : R("editor.ai.proofread", "Check spelling & grammar"),
|
|
2475
2466
|
onClick: ne === "proofread" ? at : () => it("proofread", Y),
|
|
2476
2467
|
running: ne === "proofread"
|
|
2477
2468
|
}), H && me.push({
|
|
2478
2469
|
key: "format",
|
|
2479
|
-
icon: ne === "format" ? /* @__PURE__ */ e(Se, { "aria-hidden": "true", className: "ds:size-5 ds:fill-current" }) : /* @__PURE__ */ e(
|
|
2470
|
+
icon: ne === "format" ? /* @__PURE__ */ e(Se, { "aria-hidden": "true", className: "ds:size-5 ds:fill-current" }) : /* @__PURE__ */ e(cn, { "aria-hidden": "true", className: "ds:size-5" }),
|
|
2480
2471
|
label: ne === "format" ? R("common.cancel") : R("editor.ai.autoFormat", "Auto-format document"),
|
|
2481
2472
|
onClick: ne === "format" ? at : () => it("format", H),
|
|
2482
2473
|
running: ne === "format"
|
|
2483
2474
|
}), f && me.push({
|
|
2484
2475
|
key: "write",
|
|
2485
|
-
icon: /* @__PURE__ */ e(
|
|
2476
|
+
icon: /* @__PURE__ */ e(rr, { "aria-hidden": "true", className: "ds:size-5" }),
|
|
2486
2477
|
label: R("editor.ai.helpMeWrite"),
|
|
2487
2478
|
onClick: () => {
|
|
2488
2479
|
Ze(), Ue(!0);
|
|
@@ -2491,13 +2482,13 @@ const Qn = Ge(
|
|
|
2491
2482
|
"div",
|
|
2492
2483
|
{
|
|
2493
2484
|
ref: M,
|
|
2494
|
-
className: [
|
|
2485
|
+
className: [Un(), E].filter(Boolean).join(" "),
|
|
2495
2486
|
"data-component": "rich-text-editor",
|
|
2496
2487
|
"data-component-id": o,
|
|
2497
2488
|
"data-min-height": w,
|
|
2498
2489
|
children: [
|
|
2499
2490
|
!j && !b ? /* @__PURE__ */ e(
|
|
2500
|
-
|
|
2491
|
+
Fn,
|
|
2501
2492
|
{
|
|
2502
2493
|
run: ue,
|
|
2503
2494
|
active: Qe,
|
|
@@ -2526,7 +2517,7 @@ const Qn = Ge(
|
|
|
2526
2517
|
placeholder: Dt,
|
|
2527
2518
|
onChange: j ? $t : void 0,
|
|
2528
2519
|
readOnly: j ? b : void 0,
|
|
2529
|
-
className: j ?
|
|
2520
|
+
className: j ? Qn() : void 0
|
|
2530
2521
|
}
|
|
2531
2522
|
),
|
|
2532
2523
|
je ? /* @__PURE__ */ e(
|
|
@@ -2556,13 +2547,13 @@ const Qn = Ge(
|
|
|
2556
2547
|
disabled: je && !t.running || void 0,
|
|
2557
2548
|
"aria-label": t.label,
|
|
2558
2549
|
title: t.label,
|
|
2559
|
-
className: t.recording ?
|
|
2550
|
+
className: t.recording ? Yn : Zn,
|
|
2560
2551
|
children: t.icon
|
|
2561
2552
|
}
|
|
2562
2553
|
)
|
|
2563
2554
|
] }, t.key)) }) : null,
|
|
2564
2555
|
f ? /* @__PURE__ */ e(
|
|
2565
|
-
|
|
2556
|
+
pn,
|
|
2566
2557
|
{
|
|
2567
2558
|
open: wt,
|
|
2568
2559
|
onClose: () => Ue(!1),
|
|
@@ -2577,7 +2568,7 @@ const Qn = Ge(
|
|
|
2577
2568
|
) : null
|
|
2578
2569
|
] }),
|
|
2579
2570
|
!j && !b && ((N == null ? void 0 : N.includes("table")) ?? !1) ? /* @__PURE__ */ e(
|
|
2580
|
-
|
|
2571
|
+
Rn,
|
|
2581
2572
|
{
|
|
2582
2573
|
active: Qe,
|
|
2583
2574
|
run: ue,
|
|
@@ -2589,7 +2580,7 @@ const Qn = Ge(
|
|
|
2589
2580
|
}
|
|
2590
2581
|
) : null,
|
|
2591
2582
|
!j && !b ? /* @__PURE__ */ e(
|
|
2592
|
-
|
|
2583
|
+
jn,
|
|
2593
2584
|
{
|
|
2594
2585
|
areaRef: O,
|
|
2595
2586
|
activeImageEl: xt,
|
|
@@ -2612,10 +2603,10 @@ const Qn = Ge(
|
|
|
2612
2603
|
);
|
|
2613
2604
|
}
|
|
2614
2605
|
);
|
|
2615
|
-
|
|
2606
|
+
Jn.displayName = "RichTextEditor";
|
|
2616
2607
|
export {
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2608
|
+
Jn as R,
|
|
2609
|
+
mn as r,
|
|
2610
|
+
Un as w
|
|
2620
2611
|
};
|
|
2621
|
-
//# sourceMappingURL=rich-text-editor-
|
|
2612
|
+
//# sourceMappingURL=rich-text-editor-CgA2bYwi.js.map
|