@alfadocs/ui-kit-debug 1.56.0 → 1.58.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/{address-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
- package/dist/_chunks/{address-fields-BfjxS05Z.js.map → address-fields-CJtu7LQU.js.map} +1 -1
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js → ai-credits-notice-ktklr8fy.js} +2 -2
- package/dist/_chunks/{ai-credits-notice-BoNJtOuE.js.map → ai-credits-notice-ktklr8fy.js.map} +1 -1
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js +206 -0
- package/dist/_chunks/ai-permission-notice-DyuEGwAt.js.map +1 -0
- package/dist/_chunks/alia-sidebar-dybRpWml.js +1284 -0
- package/dist/_chunks/alia-sidebar-dybRpWml.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js → anamnesis-summary-rows-M-FUkw9p.js} +6 -6
- package/dist/_chunks/{anamnesis-summary-rows-CQ-XGr0T.js.map → anamnesis-summary-rows-M-FUkw9p.js.map} +1 -1
- package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
- package/dist/_chunks/{app-frame-B-0O9CrU.js.map → app-frame-CqmDh2v5.js.map} +1 -1
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js → appointment-peek-WvNbE4JG.js} +2 -2
- package/dist/_chunks/{appointment-peek-BIZaDeCi.js.map → appointment-peek-WvNbE4JG.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js → appointment-timeline-Z0494xO-.js} +2 -2
- package/dist/_chunks/{appointment-timeline-DmqYEIT9.js.map → appointment-timeline-Z0494xO-.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js → balance-badge-cell-CGoJZlKf.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DmDcXw0c.js.map → balance-badge-cell-CGoJZlKf.js.map} +1 -1
- package/dist/_chunks/{booking-WyNGKPE2.js → booking-CiFSAMR-.js} +4 -4
- package/dist/_chunks/{booking-WyNGKPE2.js.map → booking-CiFSAMR-.js.map} +1 -1
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js → calculator-dialog-CzQv03p0.js} +2 -2
- package/dist/_chunks/{calculator-dialog-pCPWta7h.js.map → calculator-dialog-CzQv03p0.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-Du2ryaI-.js → calendar-workspace-DNHzjG7O.js} +19 -19
- package/dist/_chunks/calendar-workspace-DNHzjG7O.js.map +1 -0
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js → care-plan-card-DxrRLRdW.js} +2 -2
- package/dist/_chunks/{care-plan-card-Ddjh5Doc.js.map → care-plan-card-DxrRLRdW.js.map} +1 -1
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js → care-plan-header-BMwZIgHJ.js} +2 -2
- package/dist/_chunks/{care-plan-header-DUX_SVvF.js.map → care-plan-header-BMwZIgHJ.js.map} +1 -1
- package/dist/_chunks/{chart-HsF1KHbx.js → chart-ZMkX-Gqy.js} +338 -341
- package/dist/_chunks/chart-ZMkX-Gqy.js.map +1 -0
- package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
- package/dist/_chunks/{city-input-BC_nYINn.js.map → city-input-3J3bz9EO.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js → clinical-note-card-hx939bvw.js} +2 -2
- package/dist/_chunks/{clinical-note-card-14JIoUR0.js.map → clinical-note-card-hx939bvw.js.map} +1 -1
- package/dist/_chunks/{color-picker-BRQ4Y9SO.js → color-picker-BsggJovx.js} +128 -123
- package/dist/_chunks/color-picker-BsggJovx.js.map +1 -0
- package/dist/_chunks/{contact-card-CmK05vNb.js → contact-card-fHBMwEsx.js} +2 -2
- package/dist/_chunks/{contact-card-CmK05vNb.js.map → contact-card-fHBMwEsx.js.map} +1 -1
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js → contact-profile-card-CMyBYgRR.js} +2 -2
- package/dist/_chunks/{contact-profile-card-Ci8lBQ6a.js.map → contact-profile-card-CMyBYgRR.js.map} +1 -1
- package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-CJ85HkS2.js} +2 -2
- package/dist/_chunks/{control-room-rail-Tx2jW250.js.map → control-room-rail-CJ85HkS2.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js → cycle-calculator-Cww9DzIa.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Dgfqr4Q4.js.map → cycle-calculator-Cww9DzIa.js.map} +1 -1
- package/dist/_chunks/dashboard-grid-Cs7cJAsA.js +933 -0
- package/dist/_chunks/dashboard-grid-Cs7cJAsA.js.map +1 -0
- package/dist/_chunks/{data-table-D8fuhqO1.js → data-table-Yn5xiGzs.js} +3 -3
- package/dist/_chunks/{data-table-D8fuhqO1.js.map → data-table-Yn5xiGzs.js.map} +1 -1
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js → data-table-tabs-CHYAAeHy.js} +2 -2
- package/dist/_chunks/{data-table-tabs-Xhg5G0gU.js.map → data-table-tabs-CHYAAeHy.js.map} +1 -1
- package/dist/_chunks/{date-picker-wRAcq2lt.js → date-picker-BSZuKo13.js} +69 -62
- package/dist/_chunks/date-picker-BSZuKo13.js.map +1 -0
- package/dist/_chunks/{date-range-picker-CtUOI38x.js → date-range-picker-CFk-5O3R.js} +176 -171
- package/dist/_chunks/date-range-picker-CFk-5O3R.js.map +1 -0
- package/dist/_chunks/{date-time-picker-CLeLKuv9.js → date-time-picker-CjxTkblD.js} +92 -85
- package/dist/_chunks/date-time-picker-CjxTkblD.js.map +1 -0
- package/dist/_chunks/{dialog-CUzbnKLw.js → dialog-Dn-iQ0Jp.js} +2 -2
- package/dist/_chunks/{dialog-CUzbnKLw.js.map → dialog-Dn-iQ0Jp.js.map} +1 -1
- package/dist/_chunks/{document-preview-uoTekVR7.js → document-preview-CHGGG0l_.js} +2 -2
- package/dist/_chunks/{document-preview-uoTekVR7.js.map → document-preview-CHGGG0l_.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js → due-date-calculator-D_qFUiHp.js} +2 -2
- package/dist/_chunks/{due-date-calculator-CSjklbyw.js.map → due-date-calculator-D_qFUiHp.js.map} +1 -1
- package/dist/_chunks/{entity-summary-DcB0fIiv.js → entity-summary-CWcCSThK.js} +2 -2
- package/dist/_chunks/{entity-summary-DcB0fIiv.js.map → entity-summary-CWcCSThK.js.map} +1 -1
- package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-DSKDdIsb.js} +2 -2
- package/dist/_chunks/{face-scheme-BicuUA2K.js.map → face-scheme-DSKDdIsb.js.map} +1 -1
- package/dist/_chunks/{file-manager-Cc_uO8r2.js → file-manager-DEtkQR1F.js} +4 -4
- package/dist/_chunks/{file-manager-Cc_uO8r2.js.map → file-manager-DEtkQR1F.js.map} +1 -1
- package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-CEqOmNuX.js} +2 -2
- package/dist/_chunks/{forgot-password-form-DEx-M_QR.js.map → forgot-password-form-CEqOmNuX.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js → gestational-age-calculator-CZi43xKG.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DqVeJke2.js.map → gestational-age-calculator-CZi43xKG.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js → hcg-doubling-Ccvh7OaU.js} +2 -2
- package/dist/_chunks/{hcg-doubling-BIYyI2Yo.js.map → hcg-doubling-Ccvh7OaU.js.map} +1 -1
- package/dist/_chunks/{header-settings-ge_3gYEq.js → header-settings-BMcCx2LC.js} +2 -2
- package/dist/_chunks/{header-settings-ge_3gYEq.js.map → header-settings-BMcCx2LC.js.map} +1 -1
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js → heatmap-DiyOSQk9.js} +2 -2
- package/dist/_chunks/{heatmap-Gf9r7Tn1.js.map → heatmap-DiyOSQk9.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js → help-me-write-templates-CM1p6qkm.js} +3 -3
- package/dist/_chunks/{help-me-write-templates-fV-Apf72.js.map → help-me-write-templates-CM1p6qkm.js.map} +1 -1
- package/dist/_chunks/{hover-card-BnTueNS2.js → hover-card-U_ZYoh1n.js} +201 -187
- package/dist/_chunks/hover-card-U_ZYoh1n.js.map +1 -0
- package/dist/_chunks/{icon-picker-DWrqmI1c.js → icon-picker-rOFTawXk.js} +3 -3
- package/dist/_chunks/{icon-picker-DWrqmI1c.js.map → icon-picker-rOFTawXk.js.map} +1 -1
- package/dist/_chunks/{info-tip-B0jmIt6M.js → info-tip-CJpNpzZe.js} +2 -2
- package/dist/_chunks/{info-tip-B0jmIt6M.js.map → info-tip-CJpNpzZe.js.map} +1 -1
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js → kit-extensions-DYVxWcqv.js} +4 -4
- package/dist/_chunks/{kit-extensions-Byfxy6sy.js.map → kit-extensions-DYVxWcqv.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js → link-cell-renderer-C1wOyxDF.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-TeJNvymP.js.map → link-cell-renderer-C1wOyxDF.js.map} +1 -1
- package/dist/_chunks/link-gRw3NtOt.js +137 -0
- package/dist/_chunks/link-gRw3NtOt.js.map +1 -0
- package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
- package/dist/_chunks/list-CNnn7DOD.js.map +1 -0
- package/dist/_chunks/{locale-picker-DfNSdOpy.js → locale-picker-BGfrZyTw.js} +2 -2
- package/dist/_chunks/{locale-picker-DfNSdOpy.js.map → locale-picker-BGfrZyTw.js.map} +1 -1
- package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-CIim81VB.js} +2 -2
- package/dist/_chunks/{login-dev-card-DmZ1B0lB.js.map → login-dev-card-CIim81VB.js.map} +1 -1
- package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js +613 -0
- package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js.map +1 -0
- package/dist/_chunks/{message-tray-BB95DA82.js → message-tray-DmU0poD7.js} +76 -69
- package/dist/_chunks/message-tray-DmU0poD7.js.map +1 -0
- package/dist/_chunks/{nav-grid-BqCPH8sm.js → nav-grid-Byx8PxuB.js} +2 -2
- package/dist/_chunks/{nav-grid-BqCPH8sm.js.map → nav-grid-Byx8PxuB.js.map} +1 -1
- package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
- package/dist/_chunks/navigation-dismiss-B1mcW1CT.js.map +1 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js +89 -0
- package/dist/_chunks/non-modal-tab-exit-j3CPOuE3.js.map +1 -0
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js → note-attachment-Bt2cddsZ.js} +2 -2
- package/dist/_chunks/{note-attachment-I1NLoeRZ.js.map → note-attachment-Bt2cddsZ.js.map} +1 -1
- package/dist/_chunks/{note-timeline-CsY8YOE7.js → note-timeline-CX9nAgAR.js} +2 -2
- package/dist/_chunks/{note-timeline-CsY8YOE7.js.map → note-timeline-CX9nAgAR.js.map} +1 -1
- package/dist/_chunks/{notes-panel-DceRhthG.js → notes-panel-DHLHsxpW.js} +4 -4
- package/dist/_chunks/{notes-panel-DceRhthG.js.map → notes-panel-DHLHsxpW.js.map} +1 -1
- package/dist/_chunks/{notification-tray-__sJXnsz.js → notification-tray-DPU-Xg0i.js} +83 -76
- package/dist/_chunks/notification-tray-DPU-Xg0i.js.map +1 -0
- package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-D4o6ar6_.js} +61 -47
- package/dist/_chunks/panel-subview-D4o6ar6_.js.map +1 -0
- package/dist/_chunks/{patient-details-DsTtjpuX.js → patient-details-BCaVuaXz.js} +2 -2
- package/dist/_chunks/{patient-details-DsTtjpuX.js.map → patient-details-BCaVuaXz.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js → patient-field-row-jcRSTrp4.js} +7 -7
- package/dist/_chunks/{patient-field-row-BvZ9luz-.js.map → patient-field-row-jcRSTrp4.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js → patient-summary-card-kQIfPQOE.js} +4 -4
- package/dist/_chunks/{patient-summary-card-9nQWTQf6.js.map → patient-summary-card-kQIfPQOE.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-C4wHOxsp.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js.map → payment-automation-upsell-C4wHOxsp.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js → payment-request-card-DAniJNLX.js} +2 -2
- package/dist/_chunks/{payment-request-card-CwDpwXUC.js.map → payment-request-card-DAniJNLX.js.map} +1 -1
- package/dist/_chunks/{pdf-viewer-C3minW5b.js → pdf-viewer-CNQxa4tv.js} +396 -391
- package/dist/_chunks/pdf-viewer-CNQxa4tv.js.map +1 -0
- package/dist/_chunks/{phone-input-DxkHMYmu.js → phone-input-O9camxkq.js} +156 -151
- package/dist/_chunks/phone-input-O9camxkq.js.map +1 -0
- package/dist/_chunks/popover-BG75rYjN.js +367 -0
- package/dist/_chunks/popover-BG75rYjN.js.map +1 -0
- package/dist/_chunks/{practice-results-Dhbo-fc_.js → practice-results-D07wgCqV.js} +2 -2
- package/dist/_chunks/{practice-results-Dhbo-fc_.js.map → practice-results-D07wgCqV.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js → pregnancy-dating-BFzv9g1N.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-Bfu0Cq4H.js.map → pregnancy-dating-BFzv9g1N.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-BSSiGGG4.js → product-hub-panel-DCYX0rPG.js} +103 -96
- package/dist/_chunks/product-hub-panel-DCYX0rPG.js.map +1 -0
- package/dist/_chunks/{public-footer-CxpG6J1M.js → public-footer-ZWTEG1Rq.js} +2 -2
- package/dist/_chunks/{public-footer-CxpG6J1M.js.map → public-footer-ZWTEG1Rq.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-pr2hyiND.js → public-header.agent-C1SlVSYt.js} +2 -2
- package/dist/_chunks/{public-header.agent-pr2hyiND.js.map → public-header.agent-C1SlVSYt.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js → radiograph-panel.agent-DyqbTECc.js} +4 -4
- package/dist/_chunks/{radiograph-panel.agent-DkUokbEa.js.map → radiograph-panel.agent-DyqbTECc.js.map} +1 -1
- package/dist/_chunks/{registration-form-D7iNqMBF.js → registration-form-DrSR9Sjk.js} +4 -4
- package/dist/_chunks/{registration-form-D7iNqMBF.js.map → registration-form-DrSR9Sjk.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CkFfmA3v.js → rich-text-editor-UgXri8h6.js} +490 -485
- package/dist/_chunks/rich-text-editor-UgXri8h6.js.map +1 -0
- package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
- package/dist/_chunks/scroll-area-CY5SLYNw.js.map +1 -0
- package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
- package/dist/_chunks/search-bar-mA4bPe3t.js.map +1 -0
- package/dist/_chunks/{sheet-C7SwIxwB.js → sheet-Dtjk0CVv.js} +3 -3
- package/dist/_chunks/{sheet-C7SwIxwB.js.map → sheet-Dtjk0CVv.js.map} +1 -1
- package/dist/_chunks/sidebar-D4Wllqfz.js +2029 -0
- package/dist/_chunks/sidebar-D4Wllqfz.js.map +1 -0
- package/dist/_chunks/{sign-document-B6HlyCGV.js → sign-document-D4iHS_Ug.js} +2 -2
- package/dist/_chunks/{sign-document-B6HlyCGV.js.map → sign-document-D4iHS_Ug.js.map} +1 -1
- package/dist/_chunks/{signature-request-DhbpB9N9.js → signature-request-dAVgE0_5.js} +3 -3
- package/dist/_chunks/{signature-request-DhbpB9N9.js.map → signature-request-dAVgE0_5.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js → signed-out-frame-DOJpobp8.js} +3 -3
- package/dist/_chunks/{signed-out-frame-B2GTIeqA.js.map → signed-out-frame-DOJpobp8.js.map} +1 -1
- package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
- package/dist/_chunks/{state-backed-text-input-DECQy5aA.js.map → state-backed-text-input-Cgh4ms3p.js.map} +1 -1
- package/dist/_chunks/{task-editor-ByyRu29Y.js → task-editor-BflEZmcF.js} +7 -6
- package/dist/_chunks/task-editor-BflEZmcF.js.map +1 -0
- package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-CTq1KwxW.js} +115 -114
- package/dist/_chunks/{tool-rail-Bwyuw_Ot.js.map → tool-rail-CTq1KwxW.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js → use-appointment-details-read-izwoXh-G.js} +8 -8
- package/dist/_chunks/{use-appointment-details-read-JsDM48tf.js.map → use-appointment-details-read-izwoXh-G.js.map} +1 -1
- package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
- package/dist/_chunks/use-state-backed-input-DhRQo6gM.js.map +1 -0
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js → voice-control-panel-an-bpQfF.js} +3 -3
- package/dist/_chunks/{voice-control-panel-Bg1eklL0.js.map → voice-control-panel-an-bpQfF.js.map} +1 -1
- package/dist/_chunks/{widget-picker-DXYBMTfe.js → widget-picker-DlJOgYrZ.js} +80 -57
- package/dist/_chunks/widget-picker-DlJOgYrZ.js.map +1 -0
- package/dist/agent-catalog.json +3 -3
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
- package/dist/components/_shared/navigation-dismiss.d.ts.map +1 -0
- package/dist/components/_shared/non-modal-tab-exit.d.ts +15 -4
- package/dist/components/_shared/non-modal-tab-exit.d.ts.map +1 -1
- package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
- package/dist/components/_shared/use-state-backed-input.d.ts.map +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts +32 -0
- package/dist/components/ai-permission-notice/ai-permission-notice.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.d.ts +1 -1
- package/dist/components/ai-permission-notice/index.d.ts.map +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chart/chart.d.ts +5 -5
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-card/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/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
- package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts.map +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/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-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts.map +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +5 -3
- package/dist/components/link/link.d.ts.map +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/message-tray/message-tray.d.ts.map +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/notification-tray/notification-tray.d.ts.map +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/panel-subview/panel-subview.d.ts.map +1 -1
- package/dist/components/patient-details/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/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -5
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/search-bar.d.ts +1 -1
- package/dist/components/search-bar/search-bar.d.ts.map +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar-move.d.ts +88 -0
- package/dist/components/sidebar/sidebar-move.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +26 -1
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-editor/task-editor.d.ts.map +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts.map +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/widget-picker/widget-picker.d.ts.map +1 -1
- package/dist/host-compat.css +2 -1
- package/dist/i18n/locales/ar.d.ts +24 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +26 -2
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +24 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +26 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +24 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +26 -2
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +24 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +26 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +24 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +26 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +24 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +26 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +24 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +26 -2
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +24 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +26 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +24 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +26 -2
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +24 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +26 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +24 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +26 -2
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +24 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +26 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +24 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +26 -2
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +24 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +26 -2
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +24 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +26 -2
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +24 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +26 -2
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +24 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +26 -2
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +24 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +26 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +204 -203
- package/dist/locales/ar.json +26 -2
- package/dist/locales/de.json +26 -2
- package/dist/locales/el.json +26 -2
- package/dist/locales/en.json +26 -2
- package/dist/locales/es.json +26 -2
- package/dist/locales/fr.json +26 -2
- package/dist/locales/hi.json +26 -2
- package/dist/locales/it.json +26 -2
- package/dist/locales/ja.json +26 -2
- package/dist/locales/nl.json +26 -2
- package/dist/locales/pl.json +26 -2
- package/dist/locales/pt.json +26 -2
- package/dist/locales/ro.json +26 -2
- package/dist/locales/ru.json +26 -2
- package/dist/locales/sq.json +26 -2
- package/dist/locales/sv.json +26 -2
- package/dist/locales/tr.json +26 -2
- package/dist/locales/zh.json +26 -2
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts +10 -13
- package/dist/patterns/alia-assistant/alia-asteroid-icon.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-popout.d.ts +5 -3
- package/dist/patterns/alia-assistant/alia-popout.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.d.ts +2 -0
- package/dist/patterns/alia-assistant/index.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/index.js +6 -5
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/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 +40 -10
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js +0 -171
- package/dist/_chunks/ai-permission-notice-5vpblPCx.js.map +0 -1
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js +0 -1183
- package/dist/_chunks/alia-sidebar-DOei4Iyu.js.map +0 -1
- package/dist/_chunks/calendar-workspace-Du2ryaI-.js.map +0 -1
- package/dist/_chunks/chart-HsF1KHbx.js.map +0 -1
- package/dist/_chunks/color-picker-BRQ4Y9SO.js.map +0 -1
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
- package/dist/_chunks/dashboard-grid-DfEY2qci.js.map +0 -1
- package/dist/_chunks/date-picker-wRAcq2lt.js.map +0 -1
- package/dist/_chunks/date-range-picker-CtUOI38x.js.map +0 -1
- package/dist/_chunks/date-time-picker-CLeLKuv9.js.map +0 -1
- package/dist/_chunks/hover-card-BnTueNS2.js.map +0 -1
- package/dist/_chunks/link-2HokYuIi.js +0 -130
- package/dist/_chunks/link-2HokYuIi.js.map +0 -1
- package/dist/_chunks/list-RRN2TJ_7.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js +0 -541
- package/dist/_chunks/marketplace-app-shell-Dcx-JEjg.js.map +0 -1
- package/dist/_chunks/message-tray-BB95DA82.js.map +0 -1
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js +0 -65
- package/dist/_chunks/non-modal-tab-exit-D2Bd93Bq.js.map +0 -1
- package/dist/_chunks/notification-tray-__sJXnsz.js.map +0 -1
- package/dist/_chunks/panel-subview-BT-Apwgb.js.map +0 -1
- package/dist/_chunks/pdf-viewer-C3minW5b.js.map +0 -1
- package/dist/_chunks/phone-input-DxkHMYmu.js.map +0 -1
- package/dist/_chunks/popover-BI3oV3eY.js +0 -305
- package/dist/_chunks/popover-BI3oV3eY.js.map +0 -1
- package/dist/_chunks/product-hub-panel-BSSiGGG4.js.map +0 -1
- package/dist/_chunks/rich-text-editor-CkFfmA3v.js.map +0 -1
- package/dist/_chunks/scroll-area-ZtFCv9K7.js.map +0 -1
- package/dist/_chunks/search-bar-DQJS0wJN.js.map +0 -1
- package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
- package/dist/_chunks/sidebar-DLsG2AIk.js.map +0 -1
- package/dist/_chunks/task-editor-ByyRu29Y.js.map +0 -1
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js.map +0 -1
- package/dist/_chunks/widget-picker-DXYBMTfe.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as A, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
-
import { useId as qe, useState as
|
|
2
|
+
import { useId as qe, useState as E, useRef as C, useCallback as v, useEffect as L, Fragment as ht, forwardRef as Zo, useMemo as tt, useImperativeHandle as Qo } from "react";
|
|
3
3
|
import { c as Bn } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as re } from "react-i18next";
|
|
5
5
|
import { SafeHtml as Yo, sanitiseHtml as Jo } from "../safe-html/index.js";
|
|
@@ -10,7 +10,7 @@ import { S as Pn } from "./spinner-CoflYlEx.js";
|
|
|
10
10
|
import { A as aa } from "./ai-sparkle-D23NT8Z_.js";
|
|
11
11
|
import { B as Ee } from "./button-Bn16lcFM.js";
|
|
12
12
|
import { I as j } from "./icon-button-COX76Jdj.js";
|
|
13
|
-
import { A as ia } from "./ai-permission-notice-
|
|
13
|
+
import { A as ia } from "./ai-permission-notice-DyuEGwAt.js";
|
|
14
14
|
import { T as sa } from "./text-area-COMVJ1yE.js";
|
|
15
15
|
import { E as Ln } from "./editor-overlay-NMxzcO6J.js";
|
|
16
16
|
import { X as Lr } from "./x-B5YnXwCz.js";
|
|
@@ -21,86 +21,87 @@ import { M as _n } from "./mic-CUklMZGF.js";
|
|
|
21
21
|
import { S as da } from "./send-C5kDJ-Mz.js";
|
|
22
22
|
import { D as X } from "./dropdown-menu-BQSNVp4x.js";
|
|
23
23
|
import * as Zt from "@radix-ui/react-popover";
|
|
24
|
+
import { u as ua, f as ma } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
24
25
|
import { V as Ur } from "./variables-menu-DQl8H4Gh.js";
|
|
25
26
|
import { a as Fn } from "./tooltip-Cp-PLePW.js";
|
|
26
|
-
import { P as ne } from "./popover-
|
|
27
|
-
import { D as ie } from "./dialog-
|
|
28
|
-
import { C as jn } from "./color-picker-
|
|
29
|
-
import { S as en } from "./state-backed-text-input-
|
|
30
|
-
import { C as
|
|
31
|
-
import { F as
|
|
27
|
+
import { P as ne } from "./popover-BG75rYjN.js";
|
|
28
|
+
import { D as ie } from "./dialog-Dn-iQ0Jp.js";
|
|
29
|
+
import { C as jn } from "./color-picker-BsggJovx.js";
|
|
30
|
+
import { S as en } from "./state-backed-text-input-Cgh4ms3p.js";
|
|
31
|
+
import { C as fa } from "./checkbox--ndmyokr.js";
|
|
32
|
+
import { F as ha } from "./file-upload-CxjCs7TX.js";
|
|
32
33
|
import { c as I } from "./createLucideIcon-DhHxpK9K.js";
|
|
33
|
-
import { E as
|
|
34
|
-
import { H as
|
|
35
|
-
import { I as
|
|
34
|
+
import { E as ga } from "./ellipsis-dRo9ouSU.js";
|
|
35
|
+
import { H as pa, U as ba } from "./undo-2-CYNAzclj.js";
|
|
36
|
+
import { I as va } from "./image-B_5MNK0x.js";
|
|
36
37
|
import { C as Zr } from "./chevron-down-DWE7GSq9.js";
|
|
37
|
-
import { P as
|
|
38
|
-
import { S as
|
|
39
|
-
import { T as
|
|
40
|
-
import { H as Hn, u as
|
|
41
|
-
import { A as
|
|
38
|
+
import { P as ya } from "./plus-DzMQ_c6b.js";
|
|
39
|
+
import { S as wa } from "./settings-d25ju_6L.js";
|
|
40
|
+
import { T as ka } from "./trash-2-uumy3fy1.js";
|
|
41
|
+
import { H as Hn, u as xa } from "./hover-card-U_ZYoh1n.js";
|
|
42
|
+
import { A as Ca } from "./ai-credits-notice-ktklr8fy.js";
|
|
42
43
|
/**
|
|
43
44
|
* @license lucide-react v1.22.0 - ISC
|
|
44
45
|
*
|
|
45
46
|
* This source code is licensed under the ISC license.
|
|
46
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
48
|
*/
|
|
48
|
-
const
|
|
49
|
+
const Aa = [
|
|
49
50
|
["path", { d: "M4 20h16", key: "14thso" }],
|
|
50
51
|
["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
|
|
51
52
|
["path", { d: "M8 12h8", key: "1wcyev" }]
|
|
52
|
-
],
|
|
53
|
+
], Ta = I("baseline", Aa);
|
|
53
54
|
/**
|
|
54
55
|
* @license lucide-react v1.22.0 - ISC
|
|
55
56
|
*
|
|
56
57
|
* This source code is licensed under the ISC license.
|
|
57
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
58
59
|
*/
|
|
59
|
-
const
|
|
60
|
+
const Ea = [
|
|
60
61
|
["rect", { width: "13", height: "7", x: "3", y: "3", rx: "1", key: "11xb64" }],
|
|
61
62
|
["path", { d: "m22 15-3-3 3-3", key: "26chmm" }],
|
|
62
63
|
["rect", { width: "13", height: "7", x: "3", y: "14", rx: "1", key: "k6ky7n" }]
|
|
63
|
-
],
|
|
64
|
+
], Na = I("between-horizontal-end", Ea);
|
|
64
65
|
/**
|
|
65
66
|
* @license lucide-react v1.22.0 - ISC
|
|
66
67
|
*
|
|
67
68
|
* This source code is licensed under the ISC license.
|
|
68
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
70
|
*/
|
|
70
|
-
const
|
|
71
|
+
const Ma = [
|
|
71
72
|
["rect", { width: "13", height: "7", x: "8", y: "3", rx: "1", key: "pkso9a" }],
|
|
72
73
|
["path", { d: "m2 9 3 3-3 3", key: "1agib5" }],
|
|
73
74
|
["rect", { width: "13", height: "7", x: "8", y: "14", rx: "1", key: "1q5fc1" }]
|
|
74
|
-
],
|
|
75
|
+
], Ra = I("between-horizontal-start", Ma);
|
|
75
76
|
/**
|
|
76
77
|
* @license lucide-react v1.22.0 - ISC
|
|
77
78
|
*
|
|
78
79
|
* This source code is licensed under the ISC license.
|
|
79
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
81
|
*/
|
|
81
|
-
const
|
|
82
|
+
const za = [
|
|
82
83
|
["rect", { width: "7", height: "13", x: "3", y: "3", rx: "1", key: "1fdu0f" }],
|
|
83
84
|
["path", { d: "m9 22 3-3 3 3", key: "17z65a" }],
|
|
84
85
|
["rect", { width: "7", height: "13", x: "14", y: "3", rx: "1", key: "1squn4" }]
|
|
85
|
-
],
|
|
86
|
+
], Sa = I("between-vertical-end", za);
|
|
86
87
|
/**
|
|
87
88
|
* @license lucide-react v1.22.0 - ISC
|
|
88
89
|
*
|
|
89
90
|
* This source code is licensed under the ISC license.
|
|
90
91
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
92
|
*/
|
|
92
|
-
const
|
|
93
|
+
const La = [
|
|
93
94
|
["rect", { width: "7", height: "13", x: "3", y: "8", rx: "1", key: "1fjrkv" }],
|
|
94
95
|
["path", { d: "m15 2-3 3-3-3", key: "1uh6eb" }],
|
|
95
96
|
["rect", { width: "7", height: "13", x: "14", y: "8", rx: "1", key: "w3fjg8" }]
|
|
96
|
-
],
|
|
97
|
+
], _a = I("between-vertical-start", La);
|
|
97
98
|
/**
|
|
98
99
|
* @license lucide-react v1.22.0 - ISC
|
|
99
100
|
*
|
|
100
101
|
* This source code is licensed under the ISC license.
|
|
101
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
102
103
|
*/
|
|
103
|
-
const
|
|
104
|
+
const Ha = [
|
|
104
105
|
[
|
|
105
106
|
"path",
|
|
106
107
|
{
|
|
@@ -109,26 +110,26 @@ const La = [
|
|
|
109
110
|
}
|
|
110
111
|
],
|
|
111
112
|
["rect", { x: "14", y: "2", width: "8", height: "8", rx: "1", key: "88lufb" }]
|
|
112
|
-
], In = I("blocks",
|
|
113
|
+
], In = I("blocks", Ha);
|
|
113
114
|
/**
|
|
114
115
|
* @license lucide-react v1.22.0 - ISC
|
|
115
116
|
*
|
|
116
117
|
* This source code is licensed under the ISC license.
|
|
117
118
|
* See the LICENSE file in the root directory of this source tree.
|
|
118
119
|
*/
|
|
119
|
-
const
|
|
120
|
+
const Ia = [
|
|
120
121
|
[
|
|
121
122
|
"path",
|
|
122
123
|
{ 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" }
|
|
123
124
|
]
|
|
124
|
-
],
|
|
125
|
+
], $a = I("bold", Ia);
|
|
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
|
+
const Da = [
|
|
132
133
|
[
|
|
133
134
|
"path",
|
|
134
135
|
{ d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1", key: "ezmyqa" }
|
|
@@ -140,98 +141,98 @@ const Ia = [
|
|
|
140
141
|
key: "e1hn23"
|
|
141
142
|
}
|
|
142
143
|
]
|
|
143
|
-
],
|
|
144
|
+
], Oa = I("braces", Da);
|
|
144
145
|
/**
|
|
145
146
|
* @license lucide-react v1.22.0 - ISC
|
|
146
147
|
*
|
|
147
148
|
* This source code is licensed under the ISC license.
|
|
148
149
|
* See the LICENSE file in the root directory of this source tree.
|
|
149
150
|
*/
|
|
150
|
-
const
|
|
151
|
+
const qa = [
|
|
151
152
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
152
153
|
["path", { d: "M12 3v18", key: "108xh3" }]
|
|
153
|
-
],
|
|
154
|
+
], Ba = I("columns-2", qa);
|
|
154
155
|
/**
|
|
155
156
|
* @license lucide-react v1.22.0 - ISC
|
|
156
157
|
*
|
|
157
158
|
* This source code is licensed under the ISC license.
|
|
158
159
|
* See the LICENSE file in the root directory of this source tree.
|
|
159
160
|
*/
|
|
160
|
-
const
|
|
161
|
+
const Pa = [
|
|
161
162
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
162
163
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
163
164
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
164
165
|
["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
|
|
165
|
-
],
|
|
166
|
+
], Fa = I("heading-2", Pa);
|
|
166
167
|
/**
|
|
167
168
|
* @license lucide-react v1.22.0 - ISC
|
|
168
169
|
*
|
|
169
170
|
* This source code is licensed under the ISC license.
|
|
170
171
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
172
|
*/
|
|
172
|
-
const
|
|
173
|
+
const ja = [
|
|
173
174
|
["path", { d: "M4 12h8", key: "17cfdx" }],
|
|
174
175
|
["path", { d: "M4 18V6", key: "1rz3zl" }],
|
|
175
176
|
["path", { d: "M12 18V6", key: "zqpxq5" }],
|
|
176
177
|
["path", { d: "M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2", key: "68ncm8" }],
|
|
177
178
|
["path", { d: "M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2", key: "1ejuhz" }]
|
|
178
|
-
],
|
|
179
|
+
], Ga = I("heading-3", ja);
|
|
179
180
|
/**
|
|
180
181
|
* @license lucide-react v1.22.0 - ISC
|
|
181
182
|
*
|
|
182
183
|
* This source code is licensed under the ISC license.
|
|
183
184
|
* See the LICENSE file in the root directory of this source tree.
|
|
184
185
|
*/
|
|
185
|
-
const
|
|
186
|
+
const Ka = [
|
|
186
187
|
["line", { x1: "19", x2: "10", y1: "4", y2: "4", key: "15jd3p" }],
|
|
187
188
|
["line", { x1: "14", x2: "5", y1: "20", y2: "20", key: "bu0au3" }],
|
|
188
189
|
["line", { x1: "15", x2: "9", y1: "4", y2: "20", key: "uljnxc" }]
|
|
189
|
-
],
|
|
190
|
+
], Va = I("italic", Ka);
|
|
190
191
|
/**
|
|
191
192
|
* @license lucide-react v1.22.0 - ISC
|
|
192
193
|
*
|
|
193
194
|
* This source code is licensed under the ISC license.
|
|
194
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
195
196
|
*/
|
|
196
|
-
const
|
|
197
|
+
const Wa = [
|
|
197
198
|
["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" }],
|
|
198
199
|
["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" }]
|
|
199
|
-
],
|
|
200
|
+
], Xa = I("link", Wa);
|
|
200
201
|
/**
|
|
201
202
|
* @license lucide-react v1.22.0 - ISC
|
|
202
203
|
*
|
|
203
204
|
* This source code is licensed under the ISC license.
|
|
204
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
205
206
|
*/
|
|
206
|
-
const
|
|
207
|
+
const Ua = [
|
|
207
208
|
["path", { d: "M11 5h10", key: "1cz7ny" }],
|
|
208
209
|
["path", { d: "M11 12h10", key: "1438ji" }],
|
|
209
210
|
["path", { d: "M11 19h10", key: "11t30w" }],
|
|
210
211
|
["path", { d: "M4 4h1v5", key: "10yrso" }],
|
|
211
212
|
["path", { d: "M4 9h2", key: "r1h2o0" }],
|
|
212
213
|
["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" }]
|
|
213
|
-
],
|
|
214
|
+
], Za = I("list-ordered", Ua);
|
|
214
215
|
/**
|
|
215
216
|
* @license lucide-react v1.22.0 - ISC
|
|
216
217
|
*
|
|
217
218
|
* This source code is licensed under the ISC license.
|
|
218
219
|
* See the LICENSE file in the root directory of this source tree.
|
|
219
220
|
*/
|
|
220
|
-
const
|
|
221
|
+
const Qa = [
|
|
221
222
|
["path", { d: "M3 5h.01", key: "18ugdj" }],
|
|
222
223
|
["path", { d: "M3 12h.01", key: "nlz23k" }],
|
|
223
224
|
["path", { d: "M3 19h.01", key: "noohij" }],
|
|
224
225
|
["path", { d: "M8 5h13", key: "1pao27" }],
|
|
225
226
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
226
227
|
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
227
|
-
],
|
|
228
|
+
], Ya = I("list", Qa);
|
|
228
229
|
/**
|
|
229
230
|
* @license lucide-react v1.22.0 - ISC
|
|
230
231
|
*
|
|
231
232
|
* This source code is licensed under the ISC license.
|
|
232
233
|
* See the LICENSE file in the root directory of this source tree.
|
|
233
234
|
*/
|
|
234
|
-
const
|
|
235
|
+
const Ja = [
|
|
235
236
|
["path", { d: "M11 7 6 2", key: "1jwth8" }],
|
|
236
237
|
["path", { d: "M18.992 12H2.041", key: "xw1gg" }],
|
|
237
238
|
[
|
|
@@ -248,25 +249,25 @@ const Qa = [
|
|
|
248
249
|
key: "1nk1rd"
|
|
249
250
|
}
|
|
250
251
|
]
|
|
251
|
-
],
|
|
252
|
+
], ei = I("paint-bucket", Ja);
|
|
252
253
|
/**
|
|
253
254
|
* @license lucide-react v1.22.0 - ISC
|
|
254
255
|
*
|
|
255
256
|
* This source code is licensed under the ISC license.
|
|
256
257
|
* See the LICENSE file in the root directory of this source tree.
|
|
257
258
|
*/
|
|
258
|
-
const
|
|
259
|
+
const ti = [
|
|
259
260
|
["rect", { width: "16", height: "6", x: "2", y: "2", rx: "2", key: "jcyz7m" }],
|
|
260
261
|
["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" }],
|
|
261
262
|
["rect", { width: "4", height: "6", x: "8", y: "16", rx: "1", key: "d6e7yl" }]
|
|
262
|
-
],
|
|
263
|
+
], ni = I("paint-roller", ti);
|
|
263
264
|
/**
|
|
264
265
|
* @license lucide-react v1.22.0 - ISC
|
|
265
266
|
*
|
|
266
267
|
* This source code is licensed under the ISC license.
|
|
267
268
|
* See the LICENSE file in the root directory of this source tree.
|
|
268
269
|
*/
|
|
269
|
-
const
|
|
270
|
+
const ri = [
|
|
270
271
|
[
|
|
271
272
|
"path",
|
|
272
273
|
{
|
|
@@ -278,57 +279,57 @@ const ti = [
|
|
|
278
279
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
279
280
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
280
281
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
281
|
-
],
|
|
282
|
+
], oi = I("palette", ri);
|
|
282
283
|
/**
|
|
283
284
|
* @license lucide-react v1.22.0 - ISC
|
|
284
285
|
*
|
|
285
286
|
* This source code is licensed under the ISC license.
|
|
286
287
|
* See the LICENSE file in the root directory of this source tree.
|
|
287
288
|
*/
|
|
288
|
-
const
|
|
289
|
+
const ai = [
|
|
289
290
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
290
291
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
291
|
-
],
|
|
292
|
+
], ii = I("panel-left", ai);
|
|
292
293
|
/**
|
|
293
294
|
* @license lucide-react v1.22.0 - ISC
|
|
294
295
|
*
|
|
295
296
|
* This source code is licensed under the ISC license.
|
|
296
297
|
* See the LICENSE file in the root directory of this source tree.
|
|
297
298
|
*/
|
|
298
|
-
const
|
|
299
|
+
const si = [
|
|
299
300
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
300
301
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
301
|
-
],
|
|
302
|
+
], li = I("panel-right", si);
|
|
302
303
|
/**
|
|
303
304
|
* @license lucide-react v1.22.0 - ISC
|
|
304
305
|
*
|
|
305
306
|
* This source code is licensed under the ISC license.
|
|
306
307
|
* See the LICENSE file in the root directory of this source tree.
|
|
307
308
|
*/
|
|
308
|
-
const
|
|
309
|
+
const ci = [
|
|
309
310
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
310
311
|
["path", { d: "M14 9h1", key: "l0svgy" }],
|
|
311
312
|
["path", { d: "M19 9h2", key: "te2zfg" }],
|
|
312
313
|
["path", { d: "M3 9h2", key: "1h4ldw" }],
|
|
313
314
|
["path", { d: "M9 9h1", key: "15jzuz" }]
|
|
314
|
-
],
|
|
315
|
+
], di = I("panel-top-dashed", ci);
|
|
315
316
|
/**
|
|
316
317
|
* @license lucide-react v1.22.0 - ISC
|
|
317
318
|
*
|
|
318
319
|
* This source code is licensed under the ISC license.
|
|
319
320
|
* See the LICENSE file in the root directory of this source tree.
|
|
320
321
|
*/
|
|
321
|
-
const
|
|
322
|
+
const ui = [
|
|
322
323
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
323
324
|
["path", { d: "M3 9h18", key: "1pudct" }]
|
|
324
|
-
],
|
|
325
|
+
], mi = I("panel-top", ui);
|
|
325
326
|
/**
|
|
326
327
|
* @license lucide-react v1.22.0 - ISC
|
|
327
328
|
*
|
|
328
329
|
* This source code is licensed under the ISC license.
|
|
329
330
|
* See the LICENSE file in the root directory of this source tree.
|
|
330
331
|
*/
|
|
331
|
-
const
|
|
332
|
+
const fi = [
|
|
332
333
|
["path", { d: "M10 3H8", key: "mzdi2d" }],
|
|
333
334
|
["path", { d: "m15.007 5.008 3.987 3.986", key: "1scubj" }],
|
|
334
335
|
["path", { d: "M20 15v4", key: "nmhudv" }],
|
|
@@ -343,25 +344,25 @@ const ui = [
|
|
|
343
344
|
["path", { d: "M4 5v4", key: "13jjxc" }],
|
|
344
345
|
["path", { d: "M6 7H2", key: "8zbtv0" }],
|
|
345
346
|
["path", { d: "M9 2v2", key: "165o2o" }]
|
|
346
|
-
], _r = I("pencil-sparkles",
|
|
347
|
+
], _r = I("pencil-sparkles", fi);
|
|
347
348
|
/**
|
|
348
349
|
* @license lucide-react v1.22.0 - ISC
|
|
349
350
|
*
|
|
350
351
|
* This source code is licensed under the ISC license.
|
|
351
352
|
* See the LICENSE file in the root directory of this source tree.
|
|
352
353
|
*/
|
|
353
|
-
const
|
|
354
|
+
const hi = [
|
|
354
355
|
["path", { d: "M13 4v16", key: "8vvj80" }],
|
|
355
356
|
["path", { d: "M17 4v16", key: "7dpous" }],
|
|
356
357
|
["path", { d: "M19 4H9.5a4.5 4.5 0 0 0 0 9H13", key: "sh4n9v" }]
|
|
357
|
-
],
|
|
358
|
+
], gi = I("pilcrow", hi);
|
|
358
359
|
/**
|
|
359
360
|
* @license lucide-react v1.22.0 - ISC
|
|
360
361
|
*
|
|
361
362
|
* This source code is licensed under the ISC license.
|
|
362
363
|
* See the LICENSE file in the root directory of this source tree.
|
|
363
364
|
*/
|
|
364
|
-
const
|
|
365
|
+
const pi = [
|
|
365
366
|
[
|
|
366
367
|
"path",
|
|
367
368
|
{
|
|
@@ -376,122 +377,122 @@ const hi = [
|
|
|
376
377
|
key: "1ymkrd"
|
|
377
378
|
}
|
|
378
379
|
]
|
|
379
|
-
],
|
|
380
|
+
], bi = I("quote", pi);
|
|
380
381
|
/**
|
|
381
382
|
* @license lucide-react v1.22.0 - ISC
|
|
382
383
|
*
|
|
383
384
|
* This source code is licensed under the ISC license.
|
|
384
385
|
* See the LICENSE file in the root directory of this source tree.
|
|
385
386
|
*/
|
|
386
|
-
const
|
|
387
|
+
const vi = [
|
|
387
388
|
["path", { d: "m15 14 5-5-5-5", key: "12vg1m" }],
|
|
388
389
|
["path", { d: "M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13", key: "6uklza" }]
|
|
389
|
-
],
|
|
390
|
+
], yi = I("redo-2", vi);
|
|
390
391
|
/**
|
|
391
392
|
* @license lucide-react v1.22.0 - ISC
|
|
392
393
|
*
|
|
393
394
|
* This source code is licensed under the ISC license.
|
|
394
395
|
* See the LICENSE file in the root directory of this source tree.
|
|
395
396
|
*/
|
|
396
|
-
const
|
|
397
|
+
const wi = [
|
|
397
398
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
398
399
|
["path", { d: "M3 12h18", key: "1i2n21" }]
|
|
399
|
-
],
|
|
400
|
+
], ki = I("rows-2", wi);
|
|
400
401
|
/**
|
|
401
402
|
* @license lucide-react v1.22.0 - ISC
|
|
402
403
|
*
|
|
403
404
|
* This source code is licensed under the ISC license.
|
|
404
405
|
* See the LICENSE file in the root directory of this source tree.
|
|
405
406
|
*/
|
|
406
|
-
const
|
|
407
|
+
const xi = [
|
|
407
408
|
["path", { d: "m6 16 6-12 6 12", key: "1b4byz" }],
|
|
408
409
|
["path", { d: "M8 12h8", key: "1wcyev" }],
|
|
409
410
|
["path", { d: "m16 20 2 2 4-4", key: "13tcca" }]
|
|
410
|
-
], Hr = I("spell-check",
|
|
411
|
+
], Hr = I("spell-check", xi);
|
|
411
412
|
/**
|
|
412
413
|
* @license lucide-react v1.22.0 - ISC
|
|
413
414
|
*
|
|
414
415
|
* This source code is licensed under the ISC license.
|
|
415
416
|
* See the LICENSE file in the root directory of this source tree.
|
|
416
417
|
*/
|
|
417
|
-
const
|
|
418
|
+
const Ci = [
|
|
418
419
|
["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
|
|
419
420
|
["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
|
|
420
421
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
421
|
-
],
|
|
422
|
+
], Ai = I("strikethrough", Ci);
|
|
422
423
|
/**
|
|
423
424
|
* @license lucide-react v1.22.0 - ISC
|
|
424
425
|
*
|
|
425
426
|
* This source code is licensed under the ISC license.
|
|
426
427
|
* See the LICENSE file in the root directory of this source tree.
|
|
427
428
|
*/
|
|
428
|
-
const
|
|
429
|
+
const Ti = [
|
|
429
430
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
430
431
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
431
432
|
["path", { d: "M3 9h18", key: "1pudct" }],
|
|
432
433
|
["path", { d: "M3 15h18", key: "5xshup" }]
|
|
433
|
-
],
|
|
434
|
+
], Ei = I("table", Ti);
|
|
434
435
|
/**
|
|
435
436
|
* @license lucide-react v1.22.0 - ISC
|
|
436
437
|
*
|
|
437
438
|
* This source code is licensed under the ISC license.
|
|
438
439
|
* See the LICENSE file in the root directory of this source tree.
|
|
439
440
|
*/
|
|
440
|
-
const
|
|
441
|
+
const Ni = [
|
|
441
442
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
442
443
|
["path", { d: "M17 12H7", key: "16if0g" }],
|
|
443
444
|
["path", { d: "M19 19H5", key: "vjpgq2" }]
|
|
444
|
-
],
|
|
445
|
+
], Mi = I("text-align-center", Ni);
|
|
445
446
|
/**
|
|
446
447
|
* @license lucide-react v1.22.0 - ISC
|
|
447
448
|
*
|
|
448
449
|
* This source code is licensed under the ISC license.
|
|
449
450
|
* See the LICENSE file in the root directory of this source tree.
|
|
450
451
|
*/
|
|
451
|
-
const
|
|
452
|
+
const Ri = [
|
|
452
453
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
453
454
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
454
455
|
["path", { d: "M21 19H7", key: "4cu937" }]
|
|
455
|
-
],
|
|
456
|
+
], zi = I("text-align-end", Ri);
|
|
456
457
|
/**
|
|
457
458
|
* @license lucide-react v1.22.0 - ISC
|
|
458
459
|
*
|
|
459
460
|
* This source code is licensed under the ISC license.
|
|
460
461
|
* See the LICENSE file in the root directory of this source tree.
|
|
461
462
|
*/
|
|
462
|
-
const
|
|
463
|
+
const Si = [
|
|
463
464
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
464
465
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
465
466
|
["path", { d: "M17 19H3", key: "z6ezky" }]
|
|
466
|
-
],
|
|
467
|
+
], Li = I("text-align-start", Si);
|
|
467
468
|
/**
|
|
468
469
|
* @license lucide-react v1.22.0 - ISC
|
|
469
470
|
*
|
|
470
471
|
* This source code is licensed under the ISC license.
|
|
471
472
|
* See the LICENSE file in the root directory of this source tree.
|
|
472
473
|
*/
|
|
473
|
-
const
|
|
474
|
+
const _i = [
|
|
474
475
|
["rect", { width: "18", height: "12", x: "3", y: "8", rx: "1", key: "158fvp" }],
|
|
475
476
|
["path", { d: "M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3", key: "s0042v" }],
|
|
476
477
|
["path", { d: "M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3", key: "9wmeh2" }]
|
|
477
|
-
], $n = I("toy-brick",
|
|
478
|
+
], $n = I("toy-brick", _i);
|
|
478
479
|
/**
|
|
479
480
|
* @license lucide-react v1.22.0 - ISC
|
|
480
481
|
*
|
|
481
482
|
* This source code is licensed under the ISC license.
|
|
482
483
|
* See the LICENSE file in the root directory of this source tree.
|
|
483
484
|
*/
|
|
484
|
-
const
|
|
485
|
+
const Hi = [
|
|
485
486
|
["path", { d: "M6 4v6a6 6 0 0 0 12 0V4", key: "9kb039" }],
|
|
486
487
|
["line", { x1: "4", x2: "20", y1: "20", y2: "20", key: "nun2al" }]
|
|
487
|
-
],
|
|
488
|
+
], Ii = I("underline", Hi);
|
|
488
489
|
/**
|
|
489
490
|
* @license lucide-react v1.22.0 - ISC
|
|
490
491
|
*
|
|
491
492
|
* This source code is licensed under the ISC license.
|
|
492
493
|
* See the LICENSE file in the root directory of this source tree.
|
|
493
494
|
*/
|
|
494
|
-
const
|
|
495
|
+
const $i = [
|
|
495
496
|
[
|
|
496
497
|
"path",
|
|
497
498
|
{
|
|
@@ -506,7 +507,7 @@ const Hi = [
|
|
|
506
507
|
["path", { d: "M7 8H3", key: "zfb6yr" }],
|
|
507
508
|
["path", { d: "M21 16h-4", key: "1cnmox" }],
|
|
508
509
|
["path", { d: "M11 3H9", key: "1obp7u" }]
|
|
509
|
-
], Ir = I("wand-sparkles",
|
|
510
|
+
], Ir = I("wand-sparkles", $i);
|
|
510
511
|
function $r(n) {
|
|
511
512
|
return {
|
|
512
513
|
format: n("editor.vendor.format"),
|
|
@@ -584,7 +585,7 @@ function $r(n) {
|
|
|
584
585
|
"delete-table": n("editor.table.deleteTable")
|
|
585
586
|
};
|
|
586
587
|
}
|
|
587
|
-
const
|
|
588
|
+
const Di = {
|
|
588
589
|
id: "rich-text-editor",
|
|
589
590
|
capabilities: ["edit_inline"],
|
|
590
591
|
state: {
|
|
@@ -727,7 +728,7 @@ const Ii = {
|
|
|
727
728
|
description: "Sourced from the id prop."
|
|
728
729
|
}
|
|
729
730
|
}
|
|
730
|
-
},
|
|
731
|
+
}, Oi = "ds:aria-pressed:!bg-[var(--destructive)] ds:aria-pressed:!text-[var(--destructive-foreground)]", nt = "ds:!size-[var(--min-target-size)]", qi = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", Bi = "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--destructive)]";
|
|
731
732
|
function Qr({ id: n }) {
|
|
732
733
|
const { t: i } = re("ui");
|
|
733
734
|
return /* @__PURE__ */ t(
|
|
@@ -736,7 +737,7 @@ function Qr({ id: n }) {
|
|
|
736
737
|
"data-component": "editor-request-error",
|
|
737
738
|
id: n,
|
|
738
739
|
role: "alert",
|
|
739
|
-
className:
|
|
740
|
+
className: Bi,
|
|
740
741
|
children: i("editor.ai.error")
|
|
741
742
|
}
|
|
742
743
|
);
|
|
@@ -758,7 +759,7 @@ const Dr = [
|
|
|
758
759
|
function Or(n, i) {
|
|
759
760
|
return i ? n ? /\s$/.test(n) ? `${n}${i}` : `${n} ${i}` : i : n;
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
+
function Pi({
|
|
762
763
|
open: n,
|
|
763
764
|
onClose: i,
|
|
764
765
|
onRequestAiDraft: c,
|
|
@@ -767,53 +768,53 @@ function qi({
|
|
|
767
768
|
privacyNotice: u,
|
|
768
769
|
onDictate: m
|
|
769
770
|
}) {
|
|
770
|
-
const { t: p } = re("ui"), y = qe(), k = qe(), [w,
|
|
771
|
-
var
|
|
772
|
-
(
|
|
771
|
+
const { t: p } = re("ui"), y = qe(), k = qe(), [w, _] = E(""), [N, M] = E(!1), [q, f] = E(!1), [d, h] = E(null), S = C(null), [R, B] = E(!1), [V, O] = E(""), [P, T] = E(""), U = C(null), F = v(() => {
|
|
772
|
+
var z;
|
|
773
|
+
(z = U.current) == null || z.abort();
|
|
773
774
|
}, []), Q = v(() => {
|
|
774
775
|
if (!m) return;
|
|
775
|
-
const
|
|
776
|
-
U.current =
|
|
777
|
-
signal:
|
|
776
|
+
const z = new AbortController();
|
|
777
|
+
U.current = z, B(!0), O(""), T(p("editor.ai.listening")), m({
|
|
778
|
+
signal: z.signal,
|
|
778
779
|
onPartialTranscript: (K) => {
|
|
779
|
-
|
|
780
|
+
z.signal.aborted || O(K);
|
|
780
781
|
},
|
|
781
782
|
onFinalTranscript: (K) => {
|
|
782
|
-
if (
|
|
783
|
+
if (z.signal.aborted) return;
|
|
783
784
|
const J = K.trim();
|
|
784
|
-
O(""), J && (
|
|
785
|
+
O(""), J && (_((se) => Or(se, J)), T(J));
|
|
785
786
|
}
|
|
786
787
|
}).catch(() => {
|
|
787
788
|
}).finally(() => {
|
|
788
|
-
O(""), U.current ===
|
|
789
|
+
O(""), U.current === z && (U.current = null, B(!1), T(""));
|
|
789
790
|
});
|
|
790
791
|
}, [m, p]), pe = v(() => {
|
|
791
|
-
|
|
792
|
-
}, [
|
|
793
|
-
|
|
794
|
-
var
|
|
795
|
-
n ? (
|
|
796
|
-
}, [n]),
|
|
792
|
+
R ? F() : Q();
|
|
793
|
+
}, [R, Q, F]);
|
|
794
|
+
L(() => {
|
|
795
|
+
var z, K;
|
|
796
|
+
n ? (_(""), M(!1), f(!1), h(null), O(""), T("")) : ((z = S.current) == null || z.abort(), S.current = null, (K = U.current) == null || K.abort());
|
|
797
|
+
}, [n]), L(
|
|
797
798
|
() => () => {
|
|
798
|
-
var
|
|
799
|
-
(
|
|
799
|
+
var z, K;
|
|
800
|
+
(z = S.current) == null || z.abort(), (K = U.current) == null || K.abort();
|
|
800
801
|
},
|
|
801
802
|
[]
|
|
802
803
|
);
|
|
803
804
|
const Y = v(() => {
|
|
804
805
|
var J;
|
|
805
|
-
const
|
|
806
|
-
if (!
|
|
807
|
-
F(), (J =
|
|
806
|
+
const z = w.trim();
|
|
807
|
+
if (!z || N) return;
|
|
808
|
+
F(), (J = S.current) == null || J.abort();
|
|
808
809
|
const K = new AbortController();
|
|
809
|
-
|
|
810
|
-
K.signal.aborted || (h(se),
|
|
810
|
+
S.current = K, f(!1), M(!0), c({ prompt: z, signal: K.signal }).then((se) => {
|
|
811
|
+
K.signal.aborted || (h(se), M(!1));
|
|
811
812
|
}).catch((se) => {
|
|
812
|
-
K.signal.aborted || se && typeof se == "object" && "name" in se && se.name === "AbortError" || (f(!0),
|
|
813
|
+
K.signal.aborted || se && typeof se == "object" && "name" in se && se.name === "AbortError" || (f(!0), M(!1));
|
|
813
814
|
});
|
|
814
|
-
}, [w,
|
|
815
|
+
}, [w, N, c, F]), Ne = v(() => {
|
|
815
816
|
d != null && (s(d), i());
|
|
816
|
-
}, [d, s, i]), G = d != null, oe =
|
|
817
|
+
}, [d, s, i]), G = d != null, oe = R ? Or(w, V) : w;
|
|
817
818
|
return /* @__PURE__ */ t(
|
|
818
819
|
Ln,
|
|
819
820
|
{
|
|
@@ -890,13 +891,13 @@ function qi({
|
|
|
890
891
|
id: y,
|
|
891
892
|
size: "md",
|
|
892
893
|
value: oe,
|
|
893
|
-
onChange: (
|
|
894
|
+
onChange: (z) => _(z.target.value),
|
|
894
895
|
placeholder: p("editor.ai.promptPlaceholder"),
|
|
895
896
|
"aria-label": p("editor.ai.promptLabel"),
|
|
896
897
|
autoResize: !0,
|
|
897
898
|
minRows: 1,
|
|
898
899
|
maxRows: 3,
|
|
899
|
-
readOnly:
|
|
900
|
+
readOnly: R,
|
|
900
901
|
tone: q ? "error" : "default",
|
|
901
902
|
"aria-describedby": q ? k : void 0
|
|
902
903
|
}
|
|
@@ -906,10 +907,10 @@ function qi({
|
|
|
906
907
|
{
|
|
907
908
|
size: "md",
|
|
908
909
|
intent: "outline",
|
|
909
|
-
className:
|
|
910
|
-
icon:
|
|
911
|
-
"aria-pressed":
|
|
912
|
-
"aria-label": p(
|
|
910
|
+
className: R ? `${nt} ${Oi}` : nt,
|
|
911
|
+
icon: R ? /* @__PURE__ */ t(Tt, { className: "ds:fill-current" }) : /* @__PURE__ */ t(_n, {}),
|
|
912
|
+
"aria-pressed": R,
|
|
913
|
+
"aria-label": p(R ? "editor.ai.dictateStop" : "editor.ai.dictateStart"),
|
|
913
914
|
onClick: pe
|
|
914
915
|
}
|
|
915
916
|
) : null,
|
|
@@ -918,17 +919,17 @@ function qi({
|
|
|
918
919
|
{
|
|
919
920
|
size: "md",
|
|
920
921
|
intent: "primary",
|
|
921
|
-
icon:
|
|
922
|
+
icon: N ? /* @__PURE__ */ t(Pn, { size: "sm", variant: "pulse" }) : /* @__PURE__ */ t(da, {}),
|
|
922
923
|
className: `${nt} ds:bg-[image:var(--gradient-brand)] ds:rounded-full`,
|
|
923
|
-
disabled:
|
|
924
|
-
"aria-busy":
|
|
924
|
+
disabled: N || !w.trim(),
|
|
925
|
+
"aria-busy": N || void 0,
|
|
925
926
|
"aria-label": p("editor.ai.generate"),
|
|
926
927
|
onClick: Y
|
|
927
928
|
}
|
|
928
929
|
)
|
|
929
930
|
] }),
|
|
930
931
|
m ? /* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: P }) : null,
|
|
931
|
-
q ? /* @__PURE__ */ t(Qr, { id: k }) : u ? /* @__PURE__ */ t("p", { className:
|
|
932
|
+
q ? /* @__PURE__ */ t(Qr, { id: k }) : u ? /* @__PURE__ */ t("p", { className: qi, children: u }) : null
|
|
932
933
|
] })
|
|
933
934
|
}
|
|
934
935
|
);
|
|
@@ -941,54 +942,54 @@ const Jr = {
|
|
|
941
942
|
// `pushUndoState` in rich-text-editor.tsx), so Undo steps back over them.
|
|
942
943
|
undo: {
|
|
943
944
|
id: "undo",
|
|
944
|
-
icon: /* @__PURE__ */ t(
|
|
945
|
+
icon: /* @__PURE__ */ t(ba, {}),
|
|
945
946
|
label: ["editor.undo", "Undo"],
|
|
946
947
|
command: ["module.buffer.undo"]
|
|
947
948
|
},
|
|
948
949
|
redo: {
|
|
949
950
|
id: "redo",
|
|
950
|
-
icon: /* @__PURE__ */ t(
|
|
951
|
+
icon: /* @__PURE__ */ t(yi, {}),
|
|
951
952
|
label: ["editor.redo", "Redo"],
|
|
952
953
|
command: ["module.buffer.redo"]
|
|
953
954
|
},
|
|
954
955
|
bold: {
|
|
955
956
|
id: "bold",
|
|
956
|
-
icon: /* @__PURE__ */ t(
|
|
957
|
+
icon: /* @__PURE__ */ t($a, {}),
|
|
957
958
|
label: ["editor.bold", "Bold"],
|
|
958
959
|
command: ["module.inline.format", { tag: "b" }],
|
|
959
960
|
toggle: "bold"
|
|
960
961
|
},
|
|
961
962
|
italic: {
|
|
962
963
|
id: "italic",
|
|
963
|
-
icon: /* @__PURE__ */ t(
|
|
964
|
+
icon: /* @__PURE__ */ t(Va, {}),
|
|
964
965
|
label: ["editor.italic", "Italic"],
|
|
965
966
|
command: ["module.inline.format", { tag: "i" }],
|
|
966
967
|
toggle: "italic"
|
|
967
968
|
},
|
|
968
969
|
underline: {
|
|
969
970
|
id: "underline",
|
|
970
|
-
icon: /* @__PURE__ */ t(
|
|
971
|
+
icon: /* @__PURE__ */ t(Ii, {}),
|
|
971
972
|
label: ["editor.underline", "Underline"],
|
|
972
973
|
command: ["module.inline.format", { tag: "u" }],
|
|
973
974
|
toggle: "underline"
|
|
974
975
|
},
|
|
975
976
|
strike: {
|
|
976
977
|
id: "strike",
|
|
977
|
-
icon: /* @__PURE__ */ t(
|
|
978
|
+
icon: /* @__PURE__ */ t(Ai, {}),
|
|
978
979
|
label: ["editor.strike", "Strikethrough"],
|
|
979
980
|
command: ["module.inline.format", { tag: "del" }],
|
|
980
981
|
toggle: "strike"
|
|
981
982
|
},
|
|
982
983
|
ul: {
|
|
983
984
|
id: "ul",
|
|
984
|
-
icon: /* @__PURE__ */ t(
|
|
985
|
+
icon: /* @__PURE__ */ t(Ya, {}),
|
|
985
986
|
label: ["editor.list.bullet", "Bulleted list"],
|
|
986
987
|
command: ["module.list.toggle", "ul"],
|
|
987
988
|
toggle: "ul"
|
|
988
989
|
},
|
|
989
990
|
ol: {
|
|
990
991
|
id: "ol",
|
|
991
|
-
icon: /* @__PURE__ */ t(
|
|
992
|
+
icon: /* @__PURE__ */ t(Za, {}),
|
|
992
993
|
label: ["editor.list.ordered", "Numbered list"],
|
|
993
994
|
command: ["module.list.toggle", "ol"],
|
|
994
995
|
toggle: "ol"
|
|
@@ -997,28 +998,28 @@ const Jr = {
|
|
|
997
998
|
{
|
|
998
999
|
id: "paragraph",
|
|
999
1000
|
tag: "p",
|
|
1000
|
-
icon: /* @__PURE__ */ t(
|
|
1001
|
+
icon: /* @__PURE__ */ t(gi, {}),
|
|
1001
1002
|
label: ["editor.paragraph", "Paragraph"]
|
|
1002
1003
|
},
|
|
1003
1004
|
{
|
|
1004
1005
|
id: "h2",
|
|
1005
1006
|
tag: "h2",
|
|
1006
|
-
icon: /* @__PURE__ */ t(
|
|
1007
|
+
icon: /* @__PURE__ */ t(Fa, {}),
|
|
1007
1008
|
label: ["editor.heading2", "Heading 2"]
|
|
1008
1009
|
},
|
|
1009
1010
|
{
|
|
1010
1011
|
id: "h3",
|
|
1011
1012
|
tag: "h3",
|
|
1012
|
-
icon: /* @__PURE__ */ t(
|
|
1013
|
+
icon: /* @__PURE__ */ t(Ga, {}),
|
|
1013
1014
|
label: ["editor.heading3", "Heading 3"]
|
|
1014
1015
|
},
|
|
1015
1016
|
{
|
|
1016
1017
|
id: "quote",
|
|
1017
1018
|
tag: "blockquote",
|
|
1018
|
-
icon: /* @__PURE__ */ t(
|
|
1019
|
+
icon: /* @__PURE__ */ t(bi, {}),
|
|
1019
1020
|
label: ["editor.quote", "Quote"]
|
|
1020
1021
|
}
|
|
1021
|
-
],
|
|
1022
|
+
], Fi = {
|
|
1022
1023
|
minimal: ["bold", "italic", "underline", "link"],
|
|
1023
1024
|
standard: [
|
|
1024
1025
|
"undo",
|
|
@@ -1048,58 +1049,58 @@ const Jr = {
|
|
|
1048
1049
|
{
|
|
1049
1050
|
id: "rowAbove",
|
|
1050
1051
|
command: "plugin.table.addRowAbove",
|
|
1051
|
-
icon: /* @__PURE__ */ t(
|
|
1052
|
+
icon: /* @__PURE__ */ t(Ra, {}),
|
|
1052
1053
|
label: ["editor.table.rowAbove", "Add row above"]
|
|
1053
1054
|
},
|
|
1054
1055
|
{
|
|
1055
1056
|
id: "rowBelow",
|
|
1056
1057
|
command: "plugin.table.addRowBelow",
|
|
1057
|
-
icon: /* @__PURE__ */ t(
|
|
1058
|
+
icon: /* @__PURE__ */ t(Na, {}),
|
|
1058
1059
|
label: ["editor.table.rowBelow", "Add row below"]
|
|
1059
1060
|
},
|
|
1060
1061
|
{
|
|
1061
1062
|
id: "colLeft",
|
|
1062
1063
|
command: "plugin.table.addColumnLeft",
|
|
1063
|
-
icon: /* @__PURE__ */ t(
|
|
1064
|
+
icon: /* @__PURE__ */ t(_a, {}),
|
|
1064
1065
|
label: ["editor.table.columnLeft", "Add column left"]
|
|
1065
1066
|
},
|
|
1066
1067
|
{
|
|
1067
1068
|
id: "colRight",
|
|
1068
1069
|
command: "plugin.table.addColumnRight",
|
|
1069
|
-
icon: /* @__PURE__ */ t(
|
|
1070
|
+
icon: /* @__PURE__ */ t(Sa, {}),
|
|
1070
1071
|
label: ["editor.table.columnRight", "Add column right"]
|
|
1071
1072
|
},
|
|
1072
1073
|
{
|
|
1073
1074
|
id: "addHead",
|
|
1074
1075
|
command: "plugin.table.addHead",
|
|
1075
|
-
icon: /* @__PURE__ */ t(
|
|
1076
|
+
icon: /* @__PURE__ */ t(mi, {}),
|
|
1076
1077
|
label: ["editor.table.addHeader", "Add header row"]
|
|
1077
1078
|
},
|
|
1078
1079
|
{
|
|
1079
1080
|
id: "deleteHead",
|
|
1080
1081
|
command: "plugin.table.deleteHead",
|
|
1081
|
-
icon: /* @__PURE__ */ t(
|
|
1082
|
+
icon: /* @__PURE__ */ t(di, {}),
|
|
1082
1083
|
label: ["editor.table.deleteHeader", "Remove header row"]
|
|
1083
1084
|
},
|
|
1084
1085
|
{
|
|
1085
1086
|
id: "deleteRow",
|
|
1086
1087
|
command: "plugin.table.deleteRow",
|
|
1087
|
-
icon: /* @__PURE__ */ t(
|
|
1088
|
+
icon: /* @__PURE__ */ t(ki, {}),
|
|
1088
1089
|
label: ["editor.table.deleteRow", "Delete row"]
|
|
1089
1090
|
},
|
|
1090
1091
|
{
|
|
1091
1092
|
id: "deleteColumn",
|
|
1092
1093
|
command: "plugin.table.deleteColumn",
|
|
1093
|
-
icon: /* @__PURE__ */ t(
|
|
1094
|
+
icon: /* @__PURE__ */ t(Ba, {}),
|
|
1094
1095
|
label: ["editor.table.deleteColumn", "Delete column"]
|
|
1095
1096
|
},
|
|
1096
1097
|
{
|
|
1097
1098
|
id: "deleteTable",
|
|
1098
1099
|
command: "plugin.table.deleteTable",
|
|
1099
|
-
icon: /* @__PURE__ */ t(
|
|
1100
|
+
icon: /* @__PURE__ */ t(ka, {}),
|
|
1100
1101
|
label: ["editor.table.deleteTable", "Delete table"]
|
|
1101
1102
|
}
|
|
1102
|
-
], Qt = 6, to = "ds:[&_[data-intent=ghost]:hover]:bg-[color-mix(in_srgb,var(--accent)_12%,transparent)] ds:[&_[data-intent=ghost]:hover]:text-[color:var(--accent)]",
|
|
1103
|
+
], Qt = 6, to = "ds:[&_[data-intent=ghost]:hover]:bg-[color-mix(in_srgb,var(--accent)_12%,transparent)] ds:[&_[data-intent=ghost]:hover]:text-[color:var(--accent)]", ji = Bn(
|
|
1103
1104
|
[
|
|
1104
1105
|
"ds:@container/toolbar",
|
|
1105
1106
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
@@ -1107,23 +1108,26 @@ const Jr = {
|
|
|
1107
1108
|
"ds:shadow-[var(--shadow-md)]",
|
|
1108
1109
|
to
|
|
1109
1110
|
].join(" ")
|
|
1110
|
-
),
|
|
1111
|
+
), Gi = "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", nn = "ds:self-stretch ds:[inline-size:var(--border-width-sm)] ds:bg-[var(--border)] ds:[margin-inline:var(--spacing-2xs)]", Et = "ds:text-[length:var(--font-size-sm)] ds:font-medium ds:text-[color:var(--foreground)]";
|
|
1111
1112
|
function tn(n) {
|
|
1112
1113
|
return n.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
1113
1114
|
}
|
|
1114
|
-
function
|
|
1115
|
+
function Ki({
|
|
1115
1116
|
variables: n,
|
|
1116
1117
|
recentVariableTokens: i,
|
|
1117
1118
|
insertVariable: c,
|
|
1118
1119
|
saveSelection: s
|
|
1119
1120
|
}) {
|
|
1120
|
-
const { t: g } = re("ui"), [u, m] =
|
|
1121
|
+
const { t: g } = re("ui"), [u, m] = E(!1), [p, y] = E(""), k = C(null), w = C(!1), _ = ua(!0, {
|
|
1122
|
+
getAnchor: ma,
|
|
1123
|
+
onReturnToTrigger: () => m(!1)
|
|
1124
|
+
}), N = n;
|
|
1121
1125
|
return /* @__PURE__ */ A(
|
|
1122
1126
|
Zt.Root,
|
|
1123
1127
|
{
|
|
1124
1128
|
open: u,
|
|
1125
|
-
onOpenChange: (
|
|
1126
|
-
|
|
1129
|
+
onOpenChange: (M) => {
|
|
1130
|
+
M && s(), m(M), M && y("");
|
|
1127
1131
|
},
|
|
1128
1132
|
children: [
|
|
1129
1133
|
/* @__PURE__ */ t(Zt.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
@@ -1132,7 +1136,7 @@ function ji({
|
|
|
1132
1136
|
ref: k,
|
|
1133
1137
|
size: "sm",
|
|
1134
1138
|
intent: "ghost",
|
|
1135
|
-
icon: /* @__PURE__ */ t(
|
|
1139
|
+
icon: /* @__PURE__ */ t(Oa, {}),
|
|
1136
1140
|
"aria-label": g("editor.insertVariable", "Insert variable")
|
|
1137
1141
|
}
|
|
1138
1142
|
) }),
|
|
@@ -1142,20 +1146,21 @@ function ji({
|
|
|
1142
1146
|
align: "start",
|
|
1143
1147
|
sideOffset: 4,
|
|
1144
1148
|
className: "ds:z-[var(--z-popover)]",
|
|
1145
|
-
|
|
1146
|
-
|
|
1149
|
+
onKeyDown: _,
|
|
1150
|
+
onCloseAutoFocus: (M) => {
|
|
1151
|
+
w.current && (M.preventDefault(), w.current = !1);
|
|
1147
1152
|
},
|
|
1148
1153
|
children: /* @__PURE__ */ t(
|
|
1149
1154
|
Ur,
|
|
1150
1155
|
{
|
|
1151
|
-
variables:
|
|
1156
|
+
variables: N,
|
|
1152
1157
|
recentTokens: i,
|
|
1153
1158
|
query: p,
|
|
1154
1159
|
onQueryChange: y,
|
|
1155
1160
|
searchFocusable: !0,
|
|
1156
1161
|
"aria-label": g("editor.insertVariable", "Insert variable"),
|
|
1157
|
-
onSelect: (
|
|
1158
|
-
w.current = !0, c(
|
|
1162
|
+
onSelect: (M) => {
|
|
1163
|
+
w.current = !0, c(M.token), m(!1);
|
|
1159
1164
|
},
|
|
1160
1165
|
onClose: () => m(!1)
|
|
1161
1166
|
}
|
|
@@ -1166,7 +1171,7 @@ function ji({
|
|
|
1166
1171
|
}
|
|
1167
1172
|
);
|
|
1168
1173
|
}
|
|
1169
|
-
function
|
|
1174
|
+
function Vi({
|
|
1170
1175
|
run: n,
|
|
1171
1176
|
active: i,
|
|
1172
1177
|
onTriggerDown: c
|
|
@@ -1199,18 +1204,18 @@ function Gi({
|
|
|
1199
1204
|
)) })
|
|
1200
1205
|
] });
|
|
1201
1206
|
}
|
|
1202
|
-
function
|
|
1207
|
+
function Wi({
|
|
1203
1208
|
insertHtml: n,
|
|
1204
1209
|
saveSelection: i,
|
|
1205
1210
|
restoreSelection: c,
|
|
1206
1211
|
getSelectedText: s
|
|
1207
1212
|
}) {
|
|
1208
|
-
const { t: g } = re("ui"), [u, m] =
|
|
1209
|
-
y(""), w(""),
|
|
1213
|
+
const { t: g } = re("ui"), [u, m] = E(!1), [p, y] = E(""), [k, w] = E(""), [_, N] = E(!1), M = qe(), q = qe(), f = () => {
|
|
1214
|
+
y(""), w(""), N(!1);
|
|
1210
1215
|
}, d = () => {
|
|
1211
1216
|
const h = p.trim();
|
|
1212
1217
|
if (!h) return;
|
|
1213
|
-
const
|
|
1218
|
+
const S = k.trim() || h, R = _ ? ' target="_blank" rel="noopener noreferrer"' : "", B = `<a href="${tn(h)}"${R}>${tn(S)}</a>`;
|
|
1214
1219
|
m(!1), f(), window.requestAnimationFrame(() => {
|
|
1215
1220
|
c(), n(B);
|
|
1216
1221
|
});
|
|
@@ -1221,7 +1226,7 @@ function Ki({
|
|
|
1221
1226
|
{
|
|
1222
1227
|
size: "sm",
|
|
1223
1228
|
intent: "ghost",
|
|
1224
|
-
icon: /* @__PURE__ */ t(
|
|
1229
|
+
icon: /* @__PURE__ */ t(Xa, {}),
|
|
1225
1230
|
"aria-label": g("editor.link.insert", "Insert link"),
|
|
1226
1231
|
onMouseDown: () => {
|
|
1227
1232
|
i(), w(s());
|
|
@@ -1232,11 +1237,11 @@ function Ki({
|
|
|
1232
1237
|
/* @__PURE__ */ t(ie.Header, { children: /* @__PURE__ */ t(ie.Title, { children: g("editor.link.insert", "Insert link") }) }),
|
|
1233
1238
|
/* @__PURE__ */ A(ie.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
1234
1239
|
/* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
1235
|
-
/* @__PURE__ */ t("label", { htmlFor:
|
|
1240
|
+
/* @__PURE__ */ t("label", { htmlFor: M, className: Et, children: g("editor.link.url", "URL") }),
|
|
1236
1241
|
/* @__PURE__ */ t(
|
|
1237
1242
|
en,
|
|
1238
1243
|
{
|
|
1239
|
-
id:
|
|
1244
|
+
id: M,
|
|
1240
1245
|
type: "url",
|
|
1241
1246
|
value: p,
|
|
1242
1247
|
onChange: (h) => y(h.target.value),
|
|
@@ -1257,10 +1262,10 @@ function Ki({
|
|
|
1257
1262
|
)
|
|
1258
1263
|
] }),
|
|
1259
1264
|
/* @__PURE__ */ t(
|
|
1260
|
-
|
|
1265
|
+
fa,
|
|
1261
1266
|
{
|
|
1262
|
-
checked:
|
|
1263
|
-
onCheckedChange: (h) =>
|
|
1267
|
+
checked: _,
|
|
1268
|
+
onCheckedChange: (h) => N(h === !0),
|
|
1264
1269
|
label: g("editor.link.newTab", "Open in new tab")
|
|
1265
1270
|
}
|
|
1266
1271
|
)
|
|
@@ -1272,20 +1277,20 @@ function Ki({
|
|
|
1272
1277
|
] })
|
|
1273
1278
|
] });
|
|
1274
1279
|
}
|
|
1275
|
-
function
|
|
1280
|
+
function Xi({
|
|
1276
1281
|
insertHtml: n,
|
|
1277
1282
|
saveSelection: i,
|
|
1278
1283
|
restoreSelection: c,
|
|
1279
1284
|
uploadImage: s
|
|
1280
1285
|
}) {
|
|
1281
|
-
const { t: g } = re("ui"), [u, m] =
|
|
1286
|
+
const { t: g } = re("ui"), [u, m] = E(!1), [p, y] = E(""), [k, w] = E(""), _ = qe(), N = qe(), M = (f, d) => {
|
|
1282
1287
|
const h = `<img src="${tn(f)}" alt="${tn(d)}" loading="lazy">`;
|
|
1283
1288
|
m(!1), y(""), w(""), window.requestAnimationFrame(() => {
|
|
1284
1289
|
c(), n(h);
|
|
1285
1290
|
});
|
|
1286
1291
|
}, q = () => {
|
|
1287
1292
|
const f = p.trim();
|
|
1288
|
-
f &&
|
|
1293
|
+
f && M(f, k.trim());
|
|
1289
1294
|
};
|
|
1290
1295
|
return /* @__PURE__ */ A(ie.Root, { open: u, onOpenChange: m, children: [
|
|
1291
1296
|
/* @__PURE__ */ t(ie.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
@@ -1293,7 +1298,7 @@ function Vi({
|
|
|
1293
1298
|
{
|
|
1294
1299
|
size: "sm",
|
|
1295
1300
|
intent: "ghost",
|
|
1296
|
-
icon: /* @__PURE__ */ t(
|
|
1301
|
+
icon: /* @__PURE__ */ t(va, {}),
|
|
1297
1302
|
"aria-label": g("editor.image.insert", "Insert image"),
|
|
1298
1303
|
onMouseDown: () => i()
|
|
1299
1304
|
}
|
|
@@ -1304,7 +1309,7 @@ function Vi({
|
|
|
1304
1309
|
s ? /* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
1305
1310
|
/* @__PURE__ */ t("span", { className: Et, children: g("editor.image.upload", "Upload") }),
|
|
1306
1311
|
/* @__PURE__ */ t(
|
|
1307
|
-
|
|
1312
|
+
ha,
|
|
1308
1313
|
{
|
|
1309
1314
|
variant: "dropzone",
|
|
1310
1315
|
accept: {
|
|
@@ -1313,18 +1318,18 @@ function Vi({
|
|
|
1313
1318
|
maxFiles: 1,
|
|
1314
1319
|
onUpload: async (f, { signal: d }) => {
|
|
1315
1320
|
const h = await s(f, d);
|
|
1316
|
-
|
|
1321
|
+
M(h, f.name);
|
|
1317
1322
|
}
|
|
1318
1323
|
}
|
|
1319
1324
|
),
|
|
1320
1325
|
/* @__PURE__ */ t("span", { className: "ds:text-[length:var(--font-size-sm)] ds:text-[color:var(--muted-foreground)]", children: g("editor.image.orUrl", "Or paste an image URL") })
|
|
1321
1326
|
] }) : null,
|
|
1322
1327
|
/* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
1323
|
-
/* @__PURE__ */ t("label", { htmlFor:
|
|
1328
|
+
/* @__PURE__ */ t("label", { htmlFor: _, className: Et, children: g("editor.image.url", "Image URL") }),
|
|
1324
1329
|
/* @__PURE__ */ t(
|
|
1325
1330
|
en,
|
|
1326
1331
|
{
|
|
1327
|
-
id:
|
|
1332
|
+
id: _,
|
|
1328
1333
|
type: "url",
|
|
1329
1334
|
value: p,
|
|
1330
1335
|
onChange: (f) => y(f.target.value),
|
|
@@ -1333,11 +1338,11 @@ function Vi({
|
|
|
1333
1338
|
)
|
|
1334
1339
|
] }),
|
|
1335
1340
|
/* @__PURE__ */ A("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
1336
|
-
/* @__PURE__ */ t("label", { htmlFor:
|
|
1341
|
+
/* @__PURE__ */ t("label", { htmlFor: N, className: Et, children: g("editor.image.alt", "Alt text") }),
|
|
1337
1342
|
/* @__PURE__ */ t(
|
|
1338
1343
|
en,
|
|
1339
1344
|
{
|
|
1340
|
-
id:
|
|
1345
|
+
id: N,
|
|
1341
1346
|
value: k,
|
|
1342
1347
|
onChange: (f) => w(f.target.value),
|
|
1343
1348
|
placeholder: g(
|
|
@@ -1355,12 +1360,12 @@ function Vi({
|
|
|
1355
1360
|
] })
|
|
1356
1361
|
] });
|
|
1357
1362
|
}
|
|
1358
|
-
function
|
|
1363
|
+
function Ui({
|
|
1359
1364
|
run: n,
|
|
1360
1365
|
saveSelection: i,
|
|
1361
1366
|
restoreSelection: c
|
|
1362
1367
|
}) {
|
|
1363
|
-
const { t: s } = re("ui"), [g, u] =
|
|
1368
|
+
const { t: s } = re("ui"), [g, u] = E("#1f2a5c"), m = (y) => {
|
|
1364
1369
|
u(y), c(), n("module.inline.format", {
|
|
1365
1370
|
tag: "span",
|
|
1366
1371
|
style: { color: y },
|
|
@@ -1375,7 +1380,7 @@ function Wi({
|
|
|
1375
1380
|
{
|
|
1376
1381
|
size: "sm",
|
|
1377
1382
|
intent: "ghost",
|
|
1378
|
-
icon: /* @__PURE__ */ t(
|
|
1383
|
+
icon: /* @__PURE__ */ t(oi, {}),
|
|
1379
1384
|
"aria-label": s("editor.textColor", "Text colour"),
|
|
1380
1385
|
onMouseDown: (y) => {
|
|
1381
1386
|
y.preventDefault(), i();
|
|
@@ -1397,12 +1402,12 @@ function Wi({
|
|
|
1397
1402
|
] })
|
|
1398
1403
|
] });
|
|
1399
1404
|
}
|
|
1400
|
-
function
|
|
1405
|
+
function Zi({
|
|
1401
1406
|
run: n,
|
|
1402
1407
|
saveSelection: i,
|
|
1403
1408
|
restoreSelection: c
|
|
1404
1409
|
}) {
|
|
1405
|
-
const { t: s } = re("ui"), [g, u] =
|
|
1410
|
+
const { t: s } = re("ui"), [g, u] = E("#fff3a3"), m = (y) => {
|
|
1406
1411
|
u(y), c(), n("module.inline.format", {
|
|
1407
1412
|
tag: "span",
|
|
1408
1413
|
style: { "background-color": y },
|
|
@@ -1417,7 +1422,7 @@ function Xi({
|
|
|
1417
1422
|
{
|
|
1418
1423
|
size: "sm",
|
|
1419
1424
|
intent: "ghost",
|
|
1420
|
-
icon: /* @__PURE__ */ t(
|
|
1425
|
+
icon: /* @__PURE__ */ t(pa, {}),
|
|
1421
1426
|
"aria-label": s("editor.highlightColor", "Highlight"),
|
|
1422
1427
|
onMouseDown: (y) => {
|
|
1423
1428
|
y.preventDefault(), i();
|
|
@@ -1439,21 +1444,21 @@ function Xi({
|
|
|
1439
1444
|
] })
|
|
1440
1445
|
] });
|
|
1441
1446
|
}
|
|
1442
|
-
function
|
|
1447
|
+
function Qi(n, i) {
|
|
1443
1448
|
const c = Array.from({ length: i }, () => "<td><br></td>").join("");
|
|
1444
1449
|
return `<table><tbody>${Array.from({ length: n }, () => `<tr>${c}</tr>`).join("")}</tbody></table>`;
|
|
1445
1450
|
}
|
|
1446
|
-
function
|
|
1451
|
+
function Yi({
|
|
1447
1452
|
run: n,
|
|
1448
1453
|
insertTable: i,
|
|
1449
1454
|
active: c
|
|
1450
1455
|
}) {
|
|
1451
|
-
const { t: s } = re("ui"), [g, u] =
|
|
1456
|
+
const { t: s } = re("ui"), [g, u] = E({ r: 0, c: 0 }), [m, p] = E(!1), y = c.has("table") || m, k = /* @__PURE__ */ t(
|
|
1452
1457
|
j,
|
|
1453
1458
|
{
|
|
1454
1459
|
size: "sm",
|
|
1455
1460
|
intent: "ghost",
|
|
1456
|
-
icon: /* @__PURE__ */ t(
|
|
1461
|
+
icon: /* @__PURE__ */ t(Ei, {}),
|
|
1457
1462
|
"aria-label": s("editor.table.insert", "Insert table"),
|
|
1458
1463
|
onMouseDown: (w) => w.preventDefault()
|
|
1459
1464
|
}
|
|
@@ -1480,21 +1485,21 @@ function Zi({
|
|
|
1480
1485
|
"aria-label": s("editor.table.sizePicker", "Table size"),
|
|
1481
1486
|
className: "ds:mt-[var(--spacing-sm)] ds:grid ds:w-fit ds:grid-cols-6 ds:gap-[var(--spacing-2xs)]",
|
|
1482
1487
|
onMouseLeave: () => u({ r: 0, c: 0 }),
|
|
1483
|
-
children: Array.from({ length: Qt * Qt }, (w,
|
|
1484
|
-
const
|
|
1488
|
+
children: Array.from({ length: Qt * Qt }, (w, _) => {
|
|
1489
|
+
const N = Math.floor(_ / Qt) + 1, M = _ % Qt + 1, q = N <= g.r && M <= g.c;
|
|
1485
1490
|
return /* @__PURE__ */ t(
|
|
1486
1491
|
"button",
|
|
1487
1492
|
{
|
|
1488
1493
|
type: "button",
|
|
1489
1494
|
"aria-label": s("editor.table.sizeCell", "{{r}}×{{c}}", {
|
|
1490
|
-
r:
|
|
1491
|
-
c:
|
|
1495
|
+
r: N,
|
|
1496
|
+
c: M
|
|
1492
1497
|
}),
|
|
1493
|
-
onMouseEnter: () => u({ r:
|
|
1494
|
-
onClick: () => i(
|
|
1498
|
+
onMouseEnter: () => u({ r: N, c: M }),
|
|
1499
|
+
onClick: () => i(Qi(N, M)),
|
|
1495
1500
|
className: `ds:size-5 ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--border)] ${q ? "ds:bg-[var(--primary)]" : "ds:bg-[var(--muted)]"}`
|
|
1496
1501
|
},
|
|
1497
|
-
|
|
1502
|
+
_
|
|
1498
1503
|
);
|
|
1499
1504
|
})
|
|
1500
1505
|
}
|
|
@@ -1506,12 +1511,12 @@ function Zi({
|
|
|
1506
1511
|
] })
|
|
1507
1512
|
] });
|
|
1508
1513
|
}
|
|
1509
|
-
const
|
|
1514
|
+
const Ji = Object.fromEntries(eo.map((n) => [n.id, n])), es = [
|
|
1510
1515
|
"ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
1511
1516
|
"ds:[inset-block-start:var(--rte-tt-top)] ds:[inset-inline-start:var(--rte-tt-start)]",
|
|
1512
1517
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
1513
1518
|
"ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]"
|
|
1514
|
-
].join(" "),
|
|
1519
|
+
].join(" "), ts = "#fde68a";
|
|
1515
1520
|
function qr({
|
|
1516
1521
|
scope: n,
|
|
1517
1522
|
icon: i,
|
|
@@ -1520,7 +1525,7 @@ function qr({
|
|
|
1520
1525
|
saveTableCell: g,
|
|
1521
1526
|
applyTableBackground: u
|
|
1522
1527
|
}) {
|
|
1523
|
-
const { t: m } = re("ui"), [p, y] =
|
|
1528
|
+
const { t: m } = re("ui"), [p, y] = E(ts);
|
|
1524
1529
|
return /* @__PURE__ */ A(
|
|
1525
1530
|
ne,
|
|
1526
1531
|
{
|
|
@@ -1565,7 +1570,7 @@ function qr({
|
|
|
1565
1570
|
}
|
|
1566
1571
|
);
|
|
1567
1572
|
}
|
|
1568
|
-
function
|
|
1573
|
+
function ns({
|
|
1569
1574
|
active: n,
|
|
1570
1575
|
run: i,
|
|
1571
1576
|
areaRef: c,
|
|
@@ -1574,14 +1579,14 @@ function es({
|
|
|
1574
1579
|
saveTableCell: u,
|
|
1575
1580
|
applyTableBackground: m
|
|
1576
1581
|
}) {
|
|
1577
|
-
const { t: p } = re("ui"), y = n.has("table"), [k, w] =
|
|
1578
|
-
|
|
1582
|
+
const { t: p } = re("ui"), y = n.has("table"), [k, w] = E(null), _ = C(0), [N, M] = E(!1), q = v((d) => {
|
|
1583
|
+
_.current = Math.max(
|
|
1579
1584
|
0,
|
|
1580
|
-
|
|
1581
|
-
), _
|
|
1585
|
+
_.current + (d ? 1 : -1)
|
|
1586
|
+
), M(_.current > 0);
|
|
1582
1587
|
}, []);
|
|
1583
|
-
if (
|
|
1584
|
-
if (
|
|
1588
|
+
if (L(() => {
|
|
1589
|
+
if (N) return;
|
|
1585
1590
|
if (!y || typeof window > "u") {
|
|
1586
1591
|
w(null);
|
|
1587
1592
|
return;
|
|
@@ -1592,15 +1597,15 @@ function es({
|
|
|
1592
1597
|
w(null);
|
|
1593
1598
|
return;
|
|
1594
1599
|
}
|
|
1595
|
-
const O = B.getBoundingClientRect(), P = V.getBoundingClientRect(),
|
|
1596
|
-
w({ top: U, start: Math.max(0, F), rtl:
|
|
1600
|
+
const O = B.getBoundingClientRect(), P = V.getBoundingClientRect(), T = getComputedStyle(B).direction === "rtl", U = Math.max(0, P.top - O.top - 44), F = T ? O.right - P.right + P.width / 2 : P.left - O.left + P.width / 2;
|
|
1601
|
+
w({ top: U, start: Math.max(0, F), rtl: T });
|
|
1597
1602
|
};
|
|
1598
1603
|
d();
|
|
1599
|
-
const h = new ResizeObserver(d),
|
|
1600
|
-
return
|
|
1604
|
+
const h = new ResizeObserver(d), S = c.current, R = s();
|
|
1605
|
+
return S && h.observe(S), R && h.observe(R), window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
|
|
1601
1606
|
h.disconnect(), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
|
|
1602
1607
|
};
|
|
1603
|
-
}, [y,
|
|
1608
|
+
}, [y, N, c, s]), !y && !N || !k) return null;
|
|
1604
1609
|
const f = [
|
|
1605
1610
|
["rowAbove", "rowBelow"],
|
|
1606
1611
|
["colLeft", "colRight"],
|
|
@@ -1618,7 +1623,7 @@ function es({
|
|
|
1618
1623
|
{
|
|
1619
1624
|
role: "group",
|
|
1620
1625
|
"aria-label": p("editor.table.toolbar", "Table tools"),
|
|
1621
|
-
className: `${
|
|
1626
|
+
className: `${es} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
|
|
1622
1627
|
style: {
|
|
1623
1628
|
"--rte-tt-top": `${k.top}px`,
|
|
1624
1629
|
"--rte-tt-start": `${k.start}px`
|
|
@@ -1630,7 +1635,7 @@ function es({
|
|
|
1630
1635
|
qr,
|
|
1631
1636
|
{
|
|
1632
1637
|
scope: "cell",
|
|
1633
|
-
icon: /* @__PURE__ */ t(
|
|
1638
|
+
icon: /* @__PURE__ */ t(ei, {}),
|
|
1634
1639
|
label: p("editor.table.cellColor", "Cell colour"),
|
|
1635
1640
|
onOpenChange: q,
|
|
1636
1641
|
saveTableCell: u,
|
|
@@ -1641,26 +1646,26 @@ function es({
|
|
|
1641
1646
|
qr,
|
|
1642
1647
|
{
|
|
1643
1648
|
scope: "row",
|
|
1644
|
-
icon: /* @__PURE__ */ t(
|
|
1649
|
+
icon: /* @__PURE__ */ t(ni, {}),
|
|
1645
1650
|
label: p("editor.table.rowColor", "Row colour"),
|
|
1646
1651
|
onOpenChange: q,
|
|
1647
1652
|
saveTableCell: u,
|
|
1648
1653
|
applyTableBackground: m
|
|
1649
1654
|
}
|
|
1650
1655
|
)
|
|
1651
|
-
] }) : d.map((
|
|
1652
|
-
const
|
|
1656
|
+
] }) : d.map((S) => {
|
|
1657
|
+
const R = Ji[S];
|
|
1653
1658
|
return /* @__PURE__ */ t(
|
|
1654
1659
|
j,
|
|
1655
1660
|
{
|
|
1656
1661
|
size: "sm",
|
|
1657
1662
|
intent: "ghost",
|
|
1658
|
-
icon:
|
|
1659
|
-
tooltip: p(
|
|
1663
|
+
icon: R.icon,
|
|
1664
|
+
tooltip: p(R.label[0], R.label[1]),
|
|
1660
1665
|
onMouseDown: (B) => B.preventDefault(),
|
|
1661
|
-
onClick: () => i(
|
|
1666
|
+
onClick: () => i(R.command)
|
|
1662
1667
|
},
|
|
1663
|
-
|
|
1668
|
+
S
|
|
1664
1669
|
);
|
|
1665
1670
|
})
|
|
1666
1671
|
] }, d === "colour" ? "colour" : d[0]))
|
|
@@ -1680,43 +1685,43 @@ const Dn = [
|
|
|
1680
1685
|
function Br(n, i) {
|
|
1681
1686
|
return i.find((c) => n.classList.contains(c)) ?? "";
|
|
1682
1687
|
}
|
|
1683
|
-
function
|
|
1688
|
+
function rs(n) {
|
|
1684
1689
|
const i = n.closest(".redactor-in"), c = i instanceof HTMLElement ? i.clientWidth : 0, s = n.getBoundingClientRect().width;
|
|
1685
1690
|
return c <= 0 || s <= 0 ? Nt : Math.round(Math.min(Nt, s / c * 100));
|
|
1686
1691
|
}
|
|
1687
|
-
const On = 10, Nt = 100,
|
|
1692
|
+
const On = 10, Nt = 100, os = 5, as = 10, Pr = (n) => Math.min(Nt, Math.max(On, Math.round(n))), is = [
|
|
1688
1693
|
{
|
|
1689
1694
|
id: "wysiwyg-img-inline",
|
|
1690
|
-
icon: /* @__PURE__ */ t(
|
|
1695
|
+
icon: /* @__PURE__ */ t(Ta, {}),
|
|
1691
1696
|
label: ["editor.image.inline", "Inline with text"]
|
|
1692
1697
|
},
|
|
1693
1698
|
{
|
|
1694
1699
|
id: "wysiwyg-img-wrap-left",
|
|
1695
|
-
icon: /* @__PURE__ */ t(
|
|
1700
|
+
icon: /* @__PURE__ */ t(ii, {}),
|
|
1696
1701
|
label: ["editor.image.wrapLeft", "Wrap left"]
|
|
1697
1702
|
},
|
|
1698
1703
|
{
|
|
1699
1704
|
id: "wysiwyg-img-wrap-right",
|
|
1700
|
-
icon: /* @__PURE__ */ t(
|
|
1705
|
+
icon: /* @__PURE__ */ t(li, {}),
|
|
1701
1706
|
label: ["editor.image.wrapRight", "Wrap right"]
|
|
1702
1707
|
}
|
|
1703
|
-
],
|
|
1708
|
+
], ss = [
|
|
1704
1709
|
{
|
|
1705
1710
|
id: "wysiwyg-img-align-left",
|
|
1706
|
-
icon: /* @__PURE__ */ t(
|
|
1711
|
+
icon: /* @__PURE__ */ t(Li, {}),
|
|
1707
1712
|
label: ["editor.image.alignLeft", "Align left"]
|
|
1708
1713
|
},
|
|
1709
1714
|
{
|
|
1710
1715
|
id: "wysiwyg-img-align-center",
|
|
1711
|
-
icon: /* @__PURE__ */ t(
|
|
1716
|
+
icon: /* @__PURE__ */ t(Mi, {}),
|
|
1712
1717
|
label: ["editor.image.alignCenter", "Align centre"]
|
|
1713
1718
|
},
|
|
1714
1719
|
{
|
|
1715
1720
|
id: "wysiwyg-img-align-right",
|
|
1716
|
-
icon: /* @__PURE__ */ t(
|
|
1721
|
+
icon: /* @__PURE__ */ t(zi, {}),
|
|
1717
1722
|
label: ["editor.image.alignRight", "Align right"]
|
|
1718
1723
|
}
|
|
1719
|
-
],
|
|
1724
|
+
], ls = [
|
|
1720
1725
|
{
|
|
1721
1726
|
id: "tl",
|
|
1722
1727
|
pos: "ds:[inset-block-start:calc(var(--spacing-md)*-0.5)] ds:[inset-inline-start:calc(var(--spacing-md)*-0.5)]",
|
|
@@ -1749,14 +1754,14 @@ const On = 10, Nt = 100, ns = 5, rs = 10, Pr = (n) => Math.min(Nt, Math.max(On,
|
|
|
1749
1754
|
labelKey: "editor.image.resizeBottomEnd",
|
|
1750
1755
|
labelFallback: "Resize image, bottom-end corner"
|
|
1751
1756
|
}
|
|
1752
|
-
],
|
|
1757
|
+
], cs = [
|
|
1753
1758
|
"ds:absolute ds:z-20 ds:pointer-events-none",
|
|
1754
1759
|
"ds:[inset-block-start:var(--rte-img-top)] ds:[inset-inline-start:var(--rte-img-start)]",
|
|
1755
1760
|
"ds:[inline-size:var(--rte-img-width)] ds:[block-size:var(--rte-img-height)]",
|
|
1756
1761
|
"ds:rounded-[var(--radius-2xs)]",
|
|
1757
1762
|
"ds:[outline-style:solid] ds:[outline-width:var(--border-width-md)]",
|
|
1758
1763
|
"ds:[outline-color:var(--accent)] ds:[outline-offset:var(--focus-ring-offset)]"
|
|
1759
|
-
].join(" "),
|
|
1764
|
+
].join(" "), ds = [
|
|
1760
1765
|
"ds:absolute ds:pointer-events-auto ds:touch-none",
|
|
1761
1766
|
"ds:[inline-size:var(--spacing-md)] ds:[block-size:var(--spacing-md)]",
|
|
1762
1767
|
"ds:rounded-[var(--radius-2xs)] ds:shadow-[var(--shadow-sm)]",
|
|
@@ -1765,20 +1770,20 @@ const On = 10, Nt = 100, ns = 5, rs = 10, Pr = (n) => Math.min(Nt, Math.max(On,
|
|
|
1765
1770
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
|
|
1766
1771
|
"ds:focus-visible:[outline-offset:var(--focus-ring-offset)]",
|
|
1767
1772
|
"ds:forced-colors:bg-[CanvasText]"
|
|
1768
|
-
].join(" "),
|
|
1773
|
+
].join(" "), us = [
|
|
1769
1774
|
"ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
1770
1775
|
"ds:[inset-block-start:var(--rte-img-bar-top)] ds:[inset-inline-start:var(--rte-img-center)]",
|
|
1771
1776
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
1772
1777
|
"ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]"
|
|
1773
1778
|
].join(" ");
|
|
1774
|
-
function
|
|
1779
|
+
function ms({
|
|
1775
1780
|
areaRef: n,
|
|
1776
1781
|
activeImageEl: i,
|
|
1777
1782
|
applyImageClass: c,
|
|
1778
1783
|
setImageWidth: s
|
|
1779
1784
|
}) {
|
|
1780
|
-
const { t: g } = re("ui"), [u, m] =
|
|
1781
|
-
|
|
1785
|
+
const { t: g } = re("ui"), [u, m] = E(null), p = C(null);
|
|
1786
|
+
L(() => {
|
|
1782
1787
|
if (!i || typeof window > "u") {
|
|
1783
1788
|
m(null);
|
|
1784
1789
|
return;
|
|
@@ -1789,15 +1794,15 @@ function ds({
|
|
|
1789
1794
|
m(null);
|
|
1790
1795
|
return;
|
|
1791
1796
|
}
|
|
1792
|
-
const V = B.getBoundingClientRect(), O = i.getBoundingClientRect(), P = getComputedStyle(B).direction === "rtl",
|
|
1797
|
+
const V = B.getBoundingClientRect(), O = i.getBoundingClientRect(), P = getComputedStyle(B).direction === "rtl", T = O.top - V.top, U = P ? V.right - O.right : O.left - V.left, F = U + O.width / 2, Q = Math.max(0, T - 44);
|
|
1793
1798
|
m({
|
|
1794
|
-
top:
|
|
1799
|
+
top: T,
|
|
1795
1800
|
start: Math.max(0, U),
|
|
1796
1801
|
width: O.width,
|
|
1797
1802
|
height: O.height,
|
|
1798
1803
|
center: Math.max(0, F),
|
|
1799
1804
|
barTop: Q,
|
|
1800
|
-
pct:
|
|
1805
|
+
pct: rs(i),
|
|
1801
1806
|
rtl: P
|
|
1802
1807
|
});
|
|
1803
1808
|
};
|
|
@@ -1806,16 +1811,16 @@ function ds({
|
|
|
1806
1811
|
d.observe(i);
|
|
1807
1812
|
const h = n.current;
|
|
1808
1813
|
h && d.observe(h);
|
|
1809
|
-
const
|
|
1810
|
-
let
|
|
1811
|
-
return
|
|
1814
|
+
const S = i.closest(".redactor-in");
|
|
1815
|
+
let R = null;
|
|
1816
|
+
return S && (R = new MutationObserver(f), R.observe(S, {
|
|
1812
1817
|
subtree: !0,
|
|
1813
1818
|
childList: !0,
|
|
1814
1819
|
characterData: !0,
|
|
1815
1820
|
attributes: !0,
|
|
1816
1821
|
attributeFilter: ["class", "style", "width", "height", "src"]
|
|
1817
1822
|
})), window.addEventListener("scroll", f, !0), window.addEventListener("resize", f), () => {
|
|
1818
|
-
d.disconnect(),
|
|
1823
|
+
d.disconnect(), R == null || R.disconnect(), window.removeEventListener("scroll", f, !0), window.removeEventListener("resize", f);
|
|
1819
1824
|
};
|
|
1820
1825
|
}, [i, n]);
|
|
1821
1826
|
const y = v(
|
|
@@ -1832,10 +1837,10 @@ function ds({
|
|
|
1832
1837
|
(f) => {
|
|
1833
1838
|
const d = p.current;
|
|
1834
1839
|
if (!d || f.pointerId !== d.pointerId || !i) return;
|
|
1835
|
-
const h = i.closest(".redactor-in"),
|
|
1836
|
-
if (
|
|
1837
|
-
const
|
|
1838
|
-
s(Pr(d.startPct +
|
|
1840
|
+
const h = i.closest(".redactor-in"), S = h instanceof HTMLElement ? h.clientWidth : 0;
|
|
1841
|
+
if (S <= 0) return;
|
|
1842
|
+
const R = d.sign * (f.clientX - d.startX) / S * 100;
|
|
1843
|
+
s(Pr(d.startPct + R));
|
|
1839
1844
|
},
|
|
1840
1845
|
[i, s]
|
|
1841
1846
|
), w = v(
|
|
@@ -1844,11 +1849,11 @@ function ds({
|
|
|
1844
1849
|
!d || f.pointerId !== d.pointerId || (f.currentTarget.releasePointerCapture(f.pointerId), p.current = null);
|
|
1845
1850
|
},
|
|
1846
1851
|
[]
|
|
1847
|
-
),
|
|
1852
|
+
), _ = v(
|
|
1848
1853
|
(f) => {
|
|
1849
1854
|
if (!u) return;
|
|
1850
1855
|
let d = null;
|
|
1851
|
-
const h = f.shiftKey ?
|
|
1856
|
+
const h = f.shiftKey ? as : os;
|
|
1852
1857
|
switch (f.key) {
|
|
1853
1858
|
// Up / right always grow; down / left always shrink — independent of
|
|
1854
1859
|
// which corner has focus, so the gesture reads the same everywhere.
|
|
@@ -1874,7 +1879,7 @@ function ds({
|
|
|
1874
1879
|
[u, s]
|
|
1875
1880
|
);
|
|
1876
1881
|
if (!i || !u) return null;
|
|
1877
|
-
const
|
|
1882
|
+
const N = Br(i, Dn), M = Br(i, no), q = g("editor.image.widthAnnounce", {
|
|
1878
1883
|
width: u.pct,
|
|
1879
1884
|
defaultValue: "{{width}} percent"
|
|
1880
1885
|
});
|
|
@@ -1882,14 +1887,14 @@ function ds({
|
|
|
1882
1887
|
/* @__PURE__ */ t(
|
|
1883
1888
|
"div",
|
|
1884
1889
|
{
|
|
1885
|
-
className:
|
|
1890
|
+
className: cs,
|
|
1886
1891
|
style: {
|
|
1887
1892
|
"--rte-img-top": `${u.top}px`,
|
|
1888
1893
|
"--rte-img-start": `${u.start}px`,
|
|
1889
1894
|
"--rte-img-width": `${u.width}px`,
|
|
1890
1895
|
"--rte-img-height": `${u.height}px`
|
|
1891
1896
|
},
|
|
1892
|
-
children:
|
|
1897
|
+
children: ls.map((f) => /* @__PURE__ */ t(
|
|
1893
1898
|
"div",
|
|
1894
1899
|
{
|
|
1895
1900
|
role: "slider",
|
|
@@ -1900,12 +1905,12 @@ function ds({
|
|
|
1900
1905
|
"aria-valuemax": Nt,
|
|
1901
1906
|
"aria-valuenow": u.pct,
|
|
1902
1907
|
"aria-valuetext": q,
|
|
1903
|
-
className: `${
|
|
1908
|
+
className: `${ds} ${f.pos} ${f.cursor}`,
|
|
1904
1909
|
onPointerDown: y(f),
|
|
1905
1910
|
onPointerMove: k,
|
|
1906
1911
|
onPointerUp: w,
|
|
1907
1912
|
onPointerCancel: w,
|
|
1908
|
-
onKeyDown:
|
|
1913
|
+
onKeyDown: _
|
|
1909
1914
|
},
|
|
1910
1915
|
f.id
|
|
1911
1916
|
))
|
|
@@ -1916,24 +1921,24 @@ function ds({
|
|
|
1916
1921
|
{
|
|
1917
1922
|
role: "group",
|
|
1918
1923
|
"aria-label": g("editor.image.toolbar", "Image tools"),
|
|
1919
|
-
className: `${
|
|
1924
|
+
className: `${us} ${u.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
|
|
1920
1925
|
style: {
|
|
1921
1926
|
"--rte-img-bar-top": `${u.barTop}px`,
|
|
1922
1927
|
"--rte-img-center": `${u.center}px`
|
|
1923
1928
|
},
|
|
1924
|
-
children: [
|
|
1929
|
+
children: [is, ss].map((f, d) => /* @__PURE__ */ A(ht, { children: [
|
|
1925
1930
|
d > 0 ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: nn }) : null,
|
|
1926
1931
|
f.map((h) => {
|
|
1927
|
-
const
|
|
1932
|
+
const S = d === 0 ? N === h.id : M === h.id;
|
|
1928
1933
|
return /* @__PURE__ */ t(
|
|
1929
1934
|
j,
|
|
1930
1935
|
{
|
|
1931
1936
|
size: "sm",
|
|
1932
1937
|
intent: "ghost",
|
|
1933
1938
|
icon: h.icon,
|
|
1934
|
-
"aria-pressed":
|
|
1939
|
+
"aria-pressed": S,
|
|
1935
1940
|
tooltip: g(h.label[0], h.label[1]),
|
|
1936
|
-
onMouseDown: (
|
|
1941
|
+
onMouseDown: (R) => R.preventDefault(),
|
|
1937
1942
|
onClick: () => c(h.id)
|
|
1938
1943
|
},
|
|
1939
1944
|
h.id
|
|
@@ -1944,7 +1949,7 @@ function ds({
|
|
|
1944
1949
|
) })
|
|
1945
1950
|
] });
|
|
1946
1951
|
}
|
|
1947
|
-
function
|
|
1952
|
+
function fs({
|
|
1948
1953
|
templates: n,
|
|
1949
1954
|
onPick: i,
|
|
1950
1955
|
onManage: c,
|
|
@@ -1988,7 +1993,7 @@ function us({
|
|
|
1988
1993
|
c && n.length === 0 ? /* @__PURE__ */ t(
|
|
1989
1994
|
X.Item,
|
|
1990
1995
|
{
|
|
1991
|
-
startIcon: /* @__PURE__ */ t(
|
|
1996
|
+
startIcon: /* @__PURE__ */ t(ya, {}),
|
|
1992
1997
|
onSelect: () => c("create"),
|
|
1993
1998
|
children: p("editor.ai.createFirstTemplate")
|
|
1994
1999
|
}
|
|
@@ -1998,7 +2003,7 @@ function us({
|
|
|
1998
2003
|
/* @__PURE__ */ t(
|
|
1999
2004
|
X.Item,
|
|
2000
2005
|
{
|
|
2001
|
-
startIcon: /* @__PURE__ */ t(
|
|
2006
|
+
startIcon: /* @__PURE__ */ t(wa, {}),
|
|
2002
2007
|
onSelect: () => c("list"),
|
|
2003
2008
|
children: p("editor.ai.manageTemplates")
|
|
2004
2009
|
}
|
|
@@ -2007,14 +2012,14 @@ function us({
|
|
|
2007
2012
|
] })
|
|
2008
2013
|
] });
|
|
2009
2014
|
}
|
|
2010
|
-
const
|
|
2015
|
+
const hs = [
|
|
2011
2016
|
"ds:absolute ds:z-20 ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
2012
2017
|
"ds:[inset-block-start:var(--rte-sel-top)] ds:[inset-inline-start:var(--rte-sel-start)]",
|
|
2013
2018
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--border)]",
|
|
2014
2019
|
"ds:bg-[var(--popover)] ds:p-[var(--spacing-2xs)] ds:shadow-[var(--shadow-lg)]",
|
|
2015
2020
|
to
|
|
2016
|
-
].join(" "),
|
|
2017
|
-
function
|
|
2021
|
+
].join(" "), gs = ["bold", "italic", "underline", "strike"];
|
|
2022
|
+
function ps({
|
|
2018
2023
|
active: n,
|
|
2019
2024
|
run: i,
|
|
2020
2025
|
areaRef: c,
|
|
@@ -2023,28 +2028,28 @@ function hs({
|
|
|
2023
2028
|
holdOpen: u = !1,
|
|
2024
2029
|
children: m
|
|
2025
2030
|
}) {
|
|
2026
|
-
const { t: p } = re("ui"), y = C(null), [k, w] =
|
|
2027
|
-
return
|
|
2028
|
-
|
|
2029
|
-
}, [u]),
|
|
2031
|
+
const { t: p } = re("ui"), y = C(null), [k, w] = E(null), _ = C(u);
|
|
2032
|
+
return L(() => {
|
|
2033
|
+
_.current = u;
|
|
2034
|
+
}, [u]), L(() => {
|
|
2030
2035
|
if (g || typeof window > "u") {
|
|
2031
2036
|
w(null);
|
|
2032
2037
|
return;
|
|
2033
2038
|
}
|
|
2034
|
-
let
|
|
2039
|
+
let N = !1, M = 0, q = !1, f = !1;
|
|
2035
2040
|
const d = () => {
|
|
2036
2041
|
var J;
|
|
2037
|
-
if (
|
|
2042
|
+
if (_.current || N) return;
|
|
2038
2043
|
if (f) {
|
|
2039
2044
|
w(null);
|
|
2040
2045
|
return;
|
|
2041
2046
|
}
|
|
2042
|
-
const O = c.current, P = s(),
|
|
2043
|
-
if (!O || !P || !
|
|
2047
|
+
const O = c.current, P = s(), T = window.getSelection();
|
|
2048
|
+
if (!O || !P || !T || T.rangeCount === 0 || T.isCollapsed || !O.contains(document.activeElement)) {
|
|
2044
2049
|
w(null);
|
|
2045
2050
|
return;
|
|
2046
2051
|
}
|
|
2047
|
-
const U =
|
|
2052
|
+
const U = T.getRangeAt(0);
|
|
2048
2053
|
if (!P.contains(U.commonAncestorContainer)) {
|
|
2049
2054
|
w(null);
|
|
2050
2055
|
return;
|
|
@@ -2053,18 +2058,18 @@ function hs({
|
|
|
2053
2058
|
w(null);
|
|
2054
2059
|
return;
|
|
2055
2060
|
}
|
|
2056
|
-
const F = O.getBoundingClientRect(), Q = U.getBoundingClientRect(), pe = getComputedStyle(O).direction === "rtl", Y = Q.top - F.top - 48, Ne = Y >= 0 ? Y : Q.bottom - F.top + 8, G = ((J = y.current) == null ? void 0 : J.offsetWidth) ?? 0, oe = pe ? F.right - Q.right + Q.width / 2 : Q.left - F.left + Q.width / 2,
|
|
2057
|
-
Math.max(oe,
|
|
2058
|
-
Math.max(
|
|
2061
|
+
const F = O.getBoundingClientRect(), Q = U.getBoundingClientRect(), pe = getComputedStyle(O).direction === "rtl", Y = Q.top - F.top - 48, Ne = Y >= 0 ? Y : Q.bottom - F.top + 8, G = ((J = y.current) == null ? void 0 : J.offsetWidth) ?? 0, oe = pe ? F.right - Q.right + Q.width / 2 : Q.left - F.left + Q.width / 2, z = G / 2, K = Math.min(
|
|
2062
|
+
Math.max(oe, z),
|
|
2063
|
+
Math.max(z, F.width - z)
|
|
2059
2064
|
);
|
|
2060
|
-
w({ top: Ne, start: K, rtl: pe }), G === 0 && !q && (q = !0,
|
|
2065
|
+
w({ top: Ne, start: K, rtl: pe }), G === 0 && !q && (q = !0, M = requestAnimationFrame(d));
|
|
2061
2066
|
}, h = () => {
|
|
2062
|
-
cancelAnimationFrame(
|
|
2063
|
-
},
|
|
2067
|
+
cancelAnimationFrame(M), M = requestAnimationFrame(d);
|
|
2068
|
+
}, S = (O) => {
|
|
2064
2069
|
const P = s();
|
|
2065
|
-
P && O.target instanceof Node && P.contains(O.target) && (
|
|
2066
|
-
},
|
|
2067
|
-
|
|
2070
|
+
P && O.target instanceof Node && P.contains(O.target) && (N = !0, w(null));
|
|
2071
|
+
}, R = () => {
|
|
2072
|
+
N && (N = !1, h());
|
|
2068
2073
|
}, B = (O) => {
|
|
2069
2074
|
if (O.key !== "Escape") return;
|
|
2070
2075
|
const P = c.current;
|
|
@@ -2072,8 +2077,8 @@ function hs({
|
|
|
2072
2077
|
}, V = () => {
|
|
2073
2078
|
f = !1, h();
|
|
2074
2079
|
};
|
|
2075
|
-
return document.addEventListener("selectionchange", V), document.addEventListener("focusin", h), document.addEventListener("keydown", B, !0), document.addEventListener("pointerdown",
|
|
2076
|
-
cancelAnimationFrame(
|
|
2080
|
+
return document.addEventListener("selectionchange", V), document.addEventListener("focusin", h), document.addEventListener("keydown", B, !0), document.addEventListener("pointerdown", S, !0), document.addEventListener("pointerup", R, !0), document.addEventListener("pointercancel", R, !0), window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), h(), () => {
|
|
2081
|
+
cancelAnimationFrame(M), document.removeEventListener("selectionchange", V), document.removeEventListener("focusin", h), document.removeEventListener("keydown", B, !0), document.removeEventListener("pointerdown", S, !0), document.removeEventListener("pointerup", R, !0), document.removeEventListener("pointercancel", R, !0), window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
|
|
2077
2082
|
};
|
|
2078
2083
|
}, [g, c, s]), g || !k ? null : /* @__PURE__ */ t(Fn, { children: /* @__PURE__ */ A(
|
|
2079
2084
|
"div",
|
|
@@ -2082,26 +2087,26 @@ function hs({
|
|
|
2082
2087
|
role: "group",
|
|
2083
2088
|
"aria-label": p("editor.ai.selectionTools"),
|
|
2084
2089
|
"data-component-part": "selection-toolbar",
|
|
2085
|
-
className: `${
|
|
2090
|
+
className: `${hs} ${k.rtl ? "ds:translate-x-1/2" : "ds:-translate-x-1/2"}`,
|
|
2086
2091
|
style: {
|
|
2087
2092
|
"--rte-sel-top": `${k.top}px`,
|
|
2088
2093
|
"--rte-sel-start": `${k.start}px`
|
|
2089
2094
|
},
|
|
2090
2095
|
children: [
|
|
2091
|
-
|
|
2092
|
-
const
|
|
2096
|
+
gs.map((N) => {
|
|
2097
|
+
const M = Jr[N];
|
|
2093
2098
|
return /* @__PURE__ */ t(
|
|
2094
2099
|
j,
|
|
2095
2100
|
{
|
|
2096
2101
|
size: "sm",
|
|
2097
2102
|
intent: "ghost",
|
|
2098
|
-
icon:
|
|
2099
|
-
tooltip: p(
|
|
2100
|
-
"aria-pressed":
|
|
2103
|
+
icon: M.icon,
|
|
2104
|
+
tooltip: p(M.label[0], M.label[1]),
|
|
2105
|
+
"aria-pressed": M.toggle ? n.has(M.toggle) : void 0,
|
|
2101
2106
|
onMouseDown: (q) => q.preventDefault(),
|
|
2102
|
-
onClick: () => i(...
|
|
2107
|
+
onClick: () => i(...M.command)
|
|
2103
2108
|
},
|
|
2104
|
-
|
|
2109
|
+
N
|
|
2105
2110
|
);
|
|
2106
2111
|
}),
|
|
2107
2112
|
m ? /* @__PURE__ */ A(Ie, { children: [
|
|
@@ -2112,7 +2117,7 @@ function hs({
|
|
|
2112
2117
|
}
|
|
2113
2118
|
) });
|
|
2114
2119
|
}
|
|
2115
|
-
function
|
|
2120
|
+
function bs({
|
|
2116
2121
|
run: n,
|
|
2117
2122
|
active: i,
|
|
2118
2123
|
preset: c,
|
|
@@ -2124,36 +2129,36 @@ function gs({
|
|
|
2124
2129
|
uploadImage: y,
|
|
2125
2130
|
enableColor: k = !1,
|
|
2126
2131
|
enableImage: w = !1,
|
|
2127
|
-
enableTable:
|
|
2128
|
-
showExtensions:
|
|
2129
|
-
extensionControl:
|
|
2132
|
+
enableTable: _ = !1,
|
|
2133
|
+
showExtensions: N = !1,
|
|
2134
|
+
extensionControl: M,
|
|
2130
2135
|
variables: q,
|
|
2131
2136
|
recentVariableTokens: f,
|
|
2132
2137
|
insertVariable: d
|
|
2133
2138
|
}) {
|
|
2134
|
-
const { t: h } = re("ui"),
|
|
2135
|
-
if (!
|
|
2136
|
-
const
|
|
2139
|
+
const { t: h } = re("ui"), S = (oe) => oe.preventDefault(), R = (oe) => Fi[c].includes(oe), B = (oe) => {
|
|
2140
|
+
if (!R(oe)) return null;
|
|
2141
|
+
const z = Jr[oe];
|
|
2137
2142
|
return /* @__PURE__ */ t(
|
|
2138
2143
|
j,
|
|
2139
2144
|
{
|
|
2140
2145
|
size: "sm",
|
|
2141
2146
|
intent: "ghost",
|
|
2142
|
-
icon:
|
|
2143
|
-
"aria-label": h(
|
|
2144
|
-
"aria-pressed":
|
|
2145
|
-
onMouseDown:
|
|
2146
|
-
onClick: () => n(...
|
|
2147
|
+
icon: z.icon,
|
|
2148
|
+
"aria-label": h(z.label[0], z.label[1]),
|
|
2149
|
+
"aria-pressed": z.toggle ? i.has(z.toggle) : void 0,
|
|
2150
|
+
onMouseDown: S,
|
|
2151
|
+
onClick: () => n(...z.command)
|
|
2147
2152
|
},
|
|
2148
|
-
|
|
2153
|
+
z.id
|
|
2149
2154
|
);
|
|
2150
|
-
}, V = () => /* @__PURE__ */ t("span", { "aria-hidden": "true", className: nn }), O =
|
|
2155
|
+
}, V = () => /* @__PURE__ */ t("span", { "aria-hidden": "true", className: nn }), O = R("format"), P = [B("undo"), B("redo")].filter(Boolean), T = [
|
|
2151
2156
|
B("bold"),
|
|
2152
2157
|
B("italic"),
|
|
2153
2158
|
B("underline"),
|
|
2154
2159
|
B("strike"),
|
|
2155
2160
|
k ? /* @__PURE__ */ t(
|
|
2156
|
-
|
|
2161
|
+
Ui,
|
|
2157
2162
|
{
|
|
2158
2163
|
run: n,
|
|
2159
2164
|
saveSelection: u,
|
|
@@ -2162,7 +2167,7 @@ function gs({
|
|
|
2162
2167
|
"colour"
|
|
2163
2168
|
) : null,
|
|
2164
2169
|
k ? /* @__PURE__ */ t(
|
|
2165
|
-
|
|
2170
|
+
Zi,
|
|
2166
2171
|
{
|
|
2167
2172
|
run: n,
|
|
2168
2173
|
saveSelection: u,
|
|
@@ -2170,9 +2175,9 @@ function gs({
|
|
|
2170
2175
|
},
|
|
2171
2176
|
"highlight"
|
|
2172
2177
|
) : null
|
|
2173
|
-
].filter(Boolean), U = P.length > 0 || O ||
|
|
2174
|
-
|
|
2175
|
-
|
|
2178
|
+
].filter(Boolean), U = P.length > 0 || O || T.length > 0, F = [B("ul"), B("ol")].filter(Boolean), Q = [
|
|
2179
|
+
R("link") ? /* @__PURE__ */ t(
|
|
2180
|
+
Wi,
|
|
2176
2181
|
{
|
|
2177
2182
|
insertHtml: s,
|
|
2178
2183
|
saveSelection: u,
|
|
@@ -2182,7 +2187,7 @@ function gs({
|
|
|
2182
2187
|
"link"
|
|
2183
2188
|
) : null,
|
|
2184
2189
|
w ? /* @__PURE__ */ t(
|
|
2185
|
-
|
|
2190
|
+
Xi,
|
|
2186
2191
|
{
|
|
2187
2192
|
insertHtml: s,
|
|
2188
2193
|
saveSelection: u,
|
|
@@ -2191,8 +2196,8 @@ function gs({
|
|
|
2191
2196
|
},
|
|
2192
2197
|
"image"
|
|
2193
2198
|
) : null,
|
|
2194
|
-
|
|
2195
|
-
|
|
2199
|
+
_ ? /* @__PURE__ */ t(
|
|
2200
|
+
Yi,
|
|
2196
2201
|
{
|
|
2197
2202
|
run: n,
|
|
2198
2203
|
insertTable: g,
|
|
@@ -2201,7 +2206,7 @@ function gs({
|
|
|
2201
2206
|
"table"
|
|
2202
2207
|
) : null,
|
|
2203
2208
|
q && q.length > 0 && d ? /* @__PURE__ */ t(
|
|
2204
|
-
|
|
2209
|
+
Ki,
|
|
2205
2210
|
{
|
|
2206
2211
|
variables: q,
|
|
2207
2212
|
recentVariableTokens: f,
|
|
@@ -2210,7 +2215,7 @@ function gs({
|
|
|
2210
2215
|
},
|
|
2211
2216
|
"variables"
|
|
2212
2217
|
) : null
|
|
2213
|
-
].filter(Boolean), pe =
|
|
2218
|
+
].filter(Boolean), pe = M ? [/* @__PURE__ */ t(ht, { children: M }, "extensions")] : N ? [
|
|
2214
2219
|
/* @__PURE__ */ t(
|
|
2215
2220
|
j,
|
|
2216
2221
|
{
|
|
@@ -2219,32 +2224,32 @@ function gs({
|
|
|
2219
2224
|
icon: /* @__PURE__ */ t($n, {}),
|
|
2220
2225
|
"aria-label": h("editor.extensions", "Editor extensions"),
|
|
2221
2226
|
disabled: !0,
|
|
2222
|
-
onMouseDown:
|
|
2227
|
+
onMouseDown: S
|
|
2223
2228
|
},
|
|
2224
2229
|
"extensions"
|
|
2225
2230
|
)
|
|
2226
2231
|
] : [], Y = [F, Q, pe].filter(
|
|
2227
2232
|
(oe) => oe.length > 0
|
|
2228
|
-
), Ne = Y.length > 0, G = (oe) => Y.map((
|
|
2233
|
+
), Ne = Y.length > 0, G = (oe) => Y.map((z, K) => /* @__PURE__ */ A(ht, { children: [
|
|
2229
2234
|
K > 0 || oe ? /* @__PURE__ */ t(V, {}) : null,
|
|
2230
|
-
|
|
2235
|
+
z
|
|
2231
2236
|
] }, K));
|
|
2232
2237
|
return (
|
|
2233
2238
|
// Outer element is the query container + visual chrome; the flex row is an
|
|
2234
2239
|
// inner child so `container-type` never lands on the flex parent (which
|
|
2235
2240
|
// would blockify the inline controls).
|
|
2236
|
-
/* @__PURE__ */ t("div", { className:
|
|
2241
|
+
/* @__PURE__ */ t("div", { className: ji(), "data-component": "editor-toolbar", children: /* @__PURE__ */ A(
|
|
2237
2242
|
"div",
|
|
2238
2243
|
{
|
|
2239
2244
|
role: "group",
|
|
2240
2245
|
"aria-label": h("editor.toolbarLabel"),
|
|
2241
|
-
className:
|
|
2246
|
+
className: Gi,
|
|
2242
2247
|
children: [
|
|
2243
2248
|
P,
|
|
2244
|
-
P.length > 0 && (O ||
|
|
2245
|
-
O ? /* @__PURE__ */ t(
|
|
2246
|
-
O &&
|
|
2247
|
-
|
|
2249
|
+
P.length > 0 && (O || T.length > 0) ? /* @__PURE__ */ t(V, {}) : null,
|
|
2250
|
+
O ? /* @__PURE__ */ t(Vi, { run: n, active: i, onTriggerDown: S }) : null,
|
|
2251
|
+
O && T.length > 0 ? /* @__PURE__ */ t(V, {}) : null,
|
|
2252
|
+
T,
|
|
2248
2253
|
Ne ? /* @__PURE__ */ A(Ie, { children: [
|
|
2249
2254
|
/* @__PURE__ */ t("div", { className: "ds:hidden ds:@[384px]/toolbar:contents", children: G(U) }),
|
|
2250
2255
|
/* @__PURE__ */ A("div", { className: "ds:contents ds:@[384px]/toolbar:hidden", children: [
|
|
@@ -2255,9 +2260,9 @@ function gs({
|
|
|
2255
2260
|
{
|
|
2256
2261
|
size: "sm",
|
|
2257
2262
|
intent: "ghost",
|
|
2258
|
-
icon: /* @__PURE__ */ t(
|
|
2263
|
+
icon: /* @__PURE__ */ t(ga, {}),
|
|
2259
2264
|
"aria-label": h("editor.more", "More options"),
|
|
2260
|
-
onMouseDown:
|
|
2265
|
+
onMouseDown: S
|
|
2261
2266
|
}
|
|
2262
2267
|
) }),
|
|
2263
2268
|
/* @__PURE__ */ t(ne.Content, { side: "bottom", align: "end", children: /* @__PURE__ */ t("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: G(!1) }) })
|
|
@@ -2285,27 +2290,27 @@ function Fr(n) {
|
|
|
2285
2290
|
'<img loading="lazy"$1>'
|
|
2286
2291
|
);
|
|
2287
2292
|
}
|
|
2288
|
-
const Sn = /^[A-Za-z0-9_]+$/, ro = /\[\[([A-Za-z0-9_]+)\]\]/g, qn = "rte-variable-invalid",
|
|
2293
|
+
const Sn = /^[A-Za-z0-9_]+$/, ro = /\[\[([A-Za-z0-9_]+)\]\]/g, qn = "rte-variable-invalid", vs = new RegExp(
|
|
2289
2294
|
`\\s*\\b${qn}\\b`,
|
|
2290
2295
|
"g"
|
|
2291
2296
|
);
|
|
2292
2297
|
function jr(n) {
|
|
2293
2298
|
return n.includes('data-redactor-type="variable"') ? n.replace(
|
|
2294
2299
|
/<span\b[^>]*data-redactor-type="variable"[^>]*>/g,
|
|
2295
|
-
(i) => i.replace(/\s(?:data-label|title)="[^"]*"/g, "").replace(
|
|
2300
|
+
(i) => i.replace(/\s(?:data-label|title)="[^"]*"/g, "").replace(vs, "").replace(/\sclass=""/g, "")
|
|
2296
2301
|
) : n;
|
|
2297
2302
|
}
|
|
2298
|
-
function
|
|
2303
|
+
function ys(n) {
|
|
2299
2304
|
const i = n.replace(/<[^>]*>/g, " ");
|
|
2300
2305
|
return Array.from(i.matchAll(ro), (c) => c[1]);
|
|
2301
2306
|
}
|
|
2302
2307
|
function Gr(n) {
|
|
2303
2308
|
return typeof n == "object" && n !== null && "name" in n && n.name === "AiCreditsExhaustedError";
|
|
2304
2309
|
}
|
|
2305
|
-
function
|
|
2310
|
+
function ws(n) {
|
|
2306
2311
|
return typeof n == "object" && n !== null && "name" in n && n.name === "AbortError";
|
|
2307
2312
|
}
|
|
2308
|
-
function
|
|
2313
|
+
function ks(n) {
|
|
2309
2314
|
const i = document.createElement("template");
|
|
2310
2315
|
return i.content.appendChild(n), i.innerHTML;
|
|
2311
2316
|
}
|
|
@@ -2316,7 +2321,7 @@ function Kr(n) {
|
|
|
2316
2321
|
function Vr(n) {
|
|
2317
2322
|
return n.replace(/<[^>]*>/g, "").replace(/ /gi, "").replace(/[\s\u200B\uFEFF]+/g, "");
|
|
2318
2323
|
}
|
|
2319
|
-
function
|
|
2324
|
+
function xs(n) {
|
|
2320
2325
|
const i = window.getSelection();
|
|
2321
2326
|
if (!i || i.rangeCount === 0) return null;
|
|
2322
2327
|
const c = i.getRangeAt(0);
|
|
@@ -2324,7 +2329,7 @@ function ws(n) {
|
|
|
2324
2329
|
const s = document.createRange();
|
|
2325
2330
|
return s.selectNodeContents(n), s.setEnd(c.startContainer, c.startOffset), s.toString().length;
|
|
2326
2331
|
}
|
|
2327
|
-
function
|
|
2332
|
+
function Cs(n, i) {
|
|
2328
2333
|
var u;
|
|
2329
2334
|
const c = window.getSelection();
|
|
2330
2335
|
if (!c) return;
|
|
@@ -2362,17 +2367,17 @@ function mt(n, i) {
|
|
|
2362
2367
|
const y = c.createDocumentFragment();
|
|
2363
2368
|
let k = 0;
|
|
2364
2369
|
for (const w of p.data.matchAll(ro)) {
|
|
2365
|
-
const
|
|
2366
|
-
if (!
|
|
2370
|
+
const _ = i.get(w[1].toLowerCase());
|
|
2371
|
+
if (!_ || w.index === void 0) continue;
|
|
2367
2372
|
y.append(p.data.slice(k, w.index));
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2373
|
+
const N = c.createElement("span");
|
|
2374
|
+
N.setAttribute("data-redactor-type", "variable"), N.textContent = `[[${_}]]`, y.append(N), k = w.index + w[0].length;
|
|
2370
2375
|
}
|
|
2371
2376
|
k !== 0 && (y.append(p.data.slice(k)), p.replaceWith(y), u = !0);
|
|
2372
2377
|
}
|
|
2373
2378
|
return u ? c.body.innerHTML : n;
|
|
2374
2379
|
}
|
|
2375
|
-
function
|
|
2380
|
+
function As(n) {
|
|
2376
2381
|
if (!n || typeof n != "object") return;
|
|
2377
2382
|
const i = n, c = (s) => {
|
|
2378
2383
|
if (s && typeof s == "object" && "url" in s) {
|
|
@@ -2382,13 +2387,13 @@ function xs(n) {
|
|
|
2382
2387
|
};
|
|
2383
2388
|
return typeof i.url == "string" ? i.url : c(i.file) ?? c(i.data) ?? Object.values(i).map(c).find(Boolean);
|
|
2384
2389
|
}
|
|
2385
|
-
function
|
|
2390
|
+
function Ts(n) {
|
|
2386
2391
|
if (n) return n;
|
|
2387
2392
|
if (typeof window > "u") return null;
|
|
2388
2393
|
const i = window;
|
|
2389
2394
|
return i.$R ?? i.Redactor ?? null;
|
|
2390
2395
|
}
|
|
2391
|
-
const
|
|
2396
|
+
const Es = {
|
|
2392
2397
|
bold: ["module.inline.format", { tag: "b" }],
|
|
2393
2398
|
italic: ["module.inline.format", { tag: "i" }],
|
|
2394
2399
|
strikethrough: ["module.inline.format", { tag: "del" }],
|
|
@@ -2397,20 +2402,20 @@ const As = {
|
|
|
2397
2402
|
heading: ["module.block.format", { tag: "h2" }],
|
|
2398
2403
|
quote: ["module.block.format", { tag: "blockquote" }],
|
|
2399
2404
|
paragraph: ["module.block.format", { tag: "p" }]
|
|
2400
|
-
},
|
|
2405
|
+
}, Ns = {
|
|
2401
2406
|
zh: "zh_cn",
|
|
2402
2407
|
pt: "pt_br"
|
|
2403
2408
|
};
|
|
2404
|
-
function
|
|
2409
|
+
function Ms(n) {
|
|
2405
2410
|
const i = n.split("-")[0];
|
|
2406
|
-
return
|
|
2411
|
+
return Ns[i] ?? i ?? "en";
|
|
2407
2412
|
}
|
|
2408
|
-
const
|
|
2413
|
+
const Rs = Bn(
|
|
2409
2414
|
"redactor-theme-alfadocs ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
2410
|
-
),
|
|
2415
|
+
), zs = [
|
|
2411
2416
|
"ds:absolute ds:z-30",
|
|
2412
2417
|
"ds:[inset-inline-start:var(--rte-typeahead-x)] ds:[inset-block-start:var(--rte-typeahead-y)]"
|
|
2413
|
-
].join(" "),
|
|
2418
|
+
].join(" "), Ss = Bn(
|
|
2414
2419
|
[
|
|
2415
2420
|
"ds:block ds:[inline-size:100%]",
|
|
2416
2421
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[color:var(--control-border)]",
|
|
@@ -2424,15 +2429,15 @@ const Ns = Bn(
|
|
|
2424
2429
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
2425
2430
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
2426
2431
|
].join(" ")
|
|
2427
|
-
),
|
|
2428
|
-
function
|
|
2432
|
+
), Ls = Xr({ recording: !1 }), _s = Xr({ recording: !0 });
|
|
2433
|
+
function Hs({
|
|
2429
2434
|
notice: n,
|
|
2430
2435
|
children: i
|
|
2431
2436
|
}) {
|
|
2432
|
-
const [c, s] =
|
|
2437
|
+
const [c, s] = E(!1);
|
|
2433
2438
|
return /* @__PURE__ */ A(Hn, { open: c, onOpenChange: s, children: [
|
|
2434
2439
|
/* @__PURE__ */ t(
|
|
2435
|
-
|
|
2440
|
+
Is,
|
|
2436
2441
|
{
|
|
2437
2442
|
onOpen: () => s(!0),
|
|
2438
2443
|
onPress: () => s(!1),
|
|
@@ -2446,20 +2451,20 @@ function Ls({
|
|
|
2446
2451
|
align: "start",
|
|
2447
2452
|
size: "sm",
|
|
2448
2453
|
collisionPadding: 8,
|
|
2449
|
-
children: /* @__PURE__ */ t(
|
|
2454
|
+
children: /* @__PURE__ */ t(Ca, { ...n })
|
|
2450
2455
|
}
|
|
2451
2456
|
)
|
|
2452
2457
|
] });
|
|
2453
2458
|
}
|
|
2454
|
-
function
|
|
2459
|
+
function Is({
|
|
2455
2460
|
onOpen: n,
|
|
2456
2461
|
onPress: i,
|
|
2457
2462
|
children: c
|
|
2458
2463
|
}) {
|
|
2459
|
-
const { cancelClose: s, closeWithDelay: g } =
|
|
2464
|
+
const { cancelClose: s, closeWithDelay: g } = xa(), u = C(null), m = v(() => {
|
|
2460
2465
|
u.current && (clearTimeout(u.current), u.current = null);
|
|
2461
2466
|
}, []);
|
|
2462
|
-
|
|
2467
|
+
L(() => m, [m]);
|
|
2463
2468
|
const p = v(() => {
|
|
2464
2469
|
m(), s(), u.current = setTimeout(n, 300);
|
|
2465
2470
|
}, [m, s, n]), y = v(() => {
|
|
@@ -2467,13 +2472,13 @@ function _s({
|
|
|
2467
2472
|
}, [m, g]), k = C(!1), w = v(() => {
|
|
2468
2473
|
k.current = !0, m(), i();
|
|
2469
2474
|
}, [m, i]);
|
|
2470
|
-
|
|
2471
|
-
const
|
|
2475
|
+
L(() => {
|
|
2476
|
+
const N = () => {
|
|
2472
2477
|
k.current = !1;
|
|
2473
2478
|
};
|
|
2474
|
-
return document.addEventListener("keydown",
|
|
2479
|
+
return document.addEventListener("keydown", N), () => document.removeEventListener("keydown", N);
|
|
2475
2480
|
}, []);
|
|
2476
|
-
const
|
|
2481
|
+
const _ = v(() => {
|
|
2477
2482
|
if (k.current) {
|
|
2478
2483
|
k.current = !1;
|
|
2479
2484
|
return;
|
|
@@ -2494,7 +2499,7 @@ function _s({
|
|
|
2494
2499
|
onMouseEnter: p,
|
|
2495
2500
|
onMouseLeave: y,
|
|
2496
2501
|
onPointerDown: w,
|
|
2497
|
-
onFocusCapture:
|
|
2502
|
+
onFocusCapture: _,
|
|
2498
2503
|
onBlurCapture: y,
|
|
2499
2504
|
children: c
|
|
2500
2505
|
}
|
|
@@ -2502,13 +2507,13 @@ function _s({
|
|
|
2502
2507
|
);
|
|
2503
2508
|
}
|
|
2504
2509
|
function ft(n, i) {
|
|
2505
|
-
return i ? /* @__PURE__ */ t(
|
|
2510
|
+
return i ? /* @__PURE__ */ t(Hs, { notice: i, children: n }) : n;
|
|
2506
2511
|
}
|
|
2507
2512
|
function Jt(n, i) {
|
|
2508
2513
|
return i ? { "aria-label": n } : { tooltip: n };
|
|
2509
2514
|
}
|
|
2510
2515
|
const oo = ["kit", "marketplace"];
|
|
2511
|
-
function
|
|
2516
|
+
function $s({
|
|
2512
2517
|
groupedExtensions: n,
|
|
2513
2518
|
showExtensionGroups: i,
|
|
2514
2519
|
extensionPending: c,
|
|
@@ -2520,26 +2525,26 @@ function Hs({
|
|
|
2520
2525
|
closeSignal: y,
|
|
2521
2526
|
restoreFocusOnCloseRef: k
|
|
2522
2527
|
}) {
|
|
2523
|
-
const { t: w } = re("ui"), [
|
|
2524
|
-
return
|
|
2525
|
-
|
|
2526
|
-
}, [y]),
|
|
2528
|
+
const { t: w } = re("ui"), [_, N] = E(!1), M = C(null), q = C(!1);
|
|
2529
|
+
return L(() => {
|
|
2530
|
+
N(!1);
|
|
2531
|
+
}, [y]), L(() => {
|
|
2527
2532
|
q.current && !s && (q.current = !1, k.current && window.requestAnimationFrame(() => {
|
|
2528
2533
|
var f;
|
|
2529
|
-
return (f =
|
|
2534
|
+
return (f = M.current) == null ? void 0 : f.focus();
|
|
2530
2535
|
}));
|
|
2531
2536
|
}, [s, k]), /* @__PURE__ */ A(
|
|
2532
2537
|
X.Root,
|
|
2533
2538
|
{
|
|
2534
|
-
open:
|
|
2539
|
+
open: _,
|
|
2535
2540
|
onOpenChange: (f) => {
|
|
2536
|
-
f ? (p(),
|
|
2541
|
+
f ? (p(), N(!0)) : (N(!1), c && m());
|
|
2537
2542
|
},
|
|
2538
2543
|
children: [
|
|
2539
2544
|
/* @__PURE__ */ t(X.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
2540
2545
|
j,
|
|
2541
2546
|
{
|
|
2542
|
-
ref:
|
|
2547
|
+
ref: M,
|
|
2543
2548
|
"data-component-part": "extensions-trigger",
|
|
2544
2549
|
size: "sm",
|
|
2545
2550
|
intent: "ghost",
|
|
@@ -2561,22 +2566,22 @@ function Hs({
|
|
|
2561
2566
|
d === 0 ? "editor.extensionsKit" : "editor.extensionsMarketplace"
|
|
2562
2567
|
) }) : null,
|
|
2563
2568
|
f.map((h) => {
|
|
2564
|
-
var
|
|
2569
|
+
var S;
|
|
2565
2570
|
return /* @__PURE__ */ A(
|
|
2566
2571
|
X.Item,
|
|
2567
2572
|
{
|
|
2568
2573
|
"data-extension-id": h.id,
|
|
2569
2574
|
disabled: c && (s == null ? void 0 : s.extension.id) !== h.id,
|
|
2570
2575
|
"aria-busy": c && (s == null ? void 0 : s.extension.id) === h.id || void 0,
|
|
2571
|
-
onSelect: (
|
|
2572
|
-
h.kind === "action" &&
|
|
2576
|
+
onSelect: (R) => {
|
|
2577
|
+
h.kind === "action" && R.preventDefault(), q.current = !0, u(h);
|
|
2573
2578
|
},
|
|
2574
2579
|
children: [
|
|
2575
2580
|
c && (s == null ? void 0 : s.extension.id) === h.id ? /* @__PURE__ */ t(Pn, { size: "sm" }) : h.icon ?? /* @__PURE__ */ t($n, {}),
|
|
2576
2581
|
/* @__PURE__ */ A("span", { className: "ds:flex ds:min-w-0 ds:flex-col ds:text-start", children: [
|
|
2577
2582
|
/* @__PURE__ */ t("span", { children: Yr(w, h.label) }),
|
|
2578
2583
|
h.description ? /* @__PURE__ */ t("span", { className: "type-meta ds:text-muted-foreground", children: h.description }) : null,
|
|
2579
|
-
((
|
|
2584
|
+
((S = h.source) == null ? void 0 : S.kind) === "marketplace" ? /* @__PURE__ */ A("span", { className: "type-meta ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-muted-foreground", children: [
|
|
2580
2585
|
h.source.appIconUrl ? /* @__PURE__ */ t(
|
|
2581
2586
|
"img",
|
|
2582
2587
|
{
|
|
@@ -2601,7 +2606,7 @@ function Hs({
|
|
|
2601
2606
|
}
|
|
2602
2607
|
);
|
|
2603
2608
|
}
|
|
2604
|
-
const
|
|
2609
|
+
const Ds = Zo(
|
|
2605
2610
|
({
|
|
2606
2611
|
id: n,
|
|
2607
2612
|
defaultValue: i,
|
|
@@ -2614,20 +2619,20 @@ const Is = Zo(
|
|
|
2614
2619
|
minHeight: y,
|
|
2615
2620
|
showExtensions: k,
|
|
2616
2621
|
extensions: w,
|
|
2617
|
-
extensionContext:
|
|
2618
|
-
onExtensionRun:
|
|
2619
|
-
className:
|
|
2622
|
+
extensionContext: _,
|
|
2623
|
+
onExtensionRun: N,
|
|
2624
|
+
className: M,
|
|
2620
2625
|
redactor: q,
|
|
2621
2626
|
options: f,
|
|
2622
2627
|
plugins: d,
|
|
2623
2628
|
lang: h,
|
|
2624
|
-
imageUploadUrl:
|
|
2625
|
-
onUploadImage:
|
|
2629
|
+
imageUploadUrl: S,
|
|
2630
|
+
onUploadImage: R,
|
|
2626
2631
|
onKeyDown: B,
|
|
2627
2632
|
onRequestAiDraft: V,
|
|
2628
2633
|
aiDraftFormat: O = "html",
|
|
2629
2634
|
aiPrivacyNotice: P,
|
|
2630
|
-
aiConsent:
|
|
2635
|
+
aiConsent: T,
|
|
2631
2636
|
aiConsentHeadingLevel: U,
|
|
2632
2637
|
onDictate: F,
|
|
2633
2638
|
onProofread: Q,
|
|
@@ -2636,7 +2641,7 @@ const Is = Zo(
|
|
|
2636
2641
|
onAiApplied: Ne,
|
|
2637
2642
|
aiSparkle: G = !0,
|
|
2638
2643
|
selectionToolbar: oe,
|
|
2639
|
-
variables:
|
|
2644
|
+
variables: z,
|
|
2640
2645
|
recentVariableTokens: K,
|
|
2641
2646
|
onVariableInserted: J,
|
|
2642
2647
|
validateVariable: se,
|
|
@@ -2649,9 +2654,9 @@ const Is = Zo(
|
|
|
2649
2654
|
const { t: $, i18n: Gn } = re("ui"), Kn = qe(), Pe = tt(
|
|
2650
2655
|
() => `rte-${Kn.replace(/[^a-zA-Z0-9-_]/g, "")}`,
|
|
2651
2656
|
[Kn]
|
|
2652
|
-
), D = `#${Pe}`, ee = C(null), te = C(null), Me = C(null), an = C(!1), Mt = C(m), W = C(null), gt = C(null), [ue, Vn] =
|
|
2653
|
-
Rt.current =
|
|
2654
|
-
const Fe = C(null), [io, so] =
|
|
2657
|
+
), D = `#${Pe}`, ee = C(null), te = C(null), Me = C(null), an = C(!1), Mt = C(m), W = C(null), gt = C(null), [ue, Vn] = E(!1), [pt, De] = E(!1), [be, Wn] = E(null), [sn, Xn] = E(!1), [ln, cn] = E(!1), bt = C(null), Rt = C(N);
|
|
2658
|
+
Rt.current = N;
|
|
2659
|
+
const Fe = C(null), [io, so] = E(0), Un = C(!0), dn = v((e = !0) => {
|
|
2655
2660
|
Un.current = e, so((r) => r + 1);
|
|
2656
2661
|
}, []), un = v(() => {
|
|
2657
2662
|
var e, r;
|
|
@@ -2662,58 +2667,58 @@ const Is = Zo(
|
|
|
2662
2667
|
},
|
|
2663
2668
|
[un, dn]
|
|
2664
2669
|
);
|
|
2665
|
-
|
|
2670
|
+
L(
|
|
2666
2671
|
() => () => {
|
|
2667
2672
|
var e, r;
|
|
2668
2673
|
(e = bt.current) == null || e.abort(), (r = Fe.current) == null || r.call(Fe, { status: "aborted" });
|
|
2669
2674
|
},
|
|
2670
2675
|
[]
|
|
2671
2676
|
);
|
|
2672
|
-
const [lo, co] =
|
|
2677
|
+
const [lo, co] = E(""), [uo, mo] = E(
|
|
2673
2678
|
"document"
|
|
2674
|
-
), [fo, mn] =
|
|
2675
|
-
|
|
2679
|
+
), [fo, mn] = E(!1), je = C(on), fn = C(Be);
|
|
2680
|
+
L(() => {
|
|
2676
2681
|
je.current = on, fn.current = Be;
|
|
2677
2682
|
}, [on, Be]);
|
|
2678
2683
|
const zt = C(null), me = tt(
|
|
2679
2684
|
() => new Map(
|
|
2680
|
-
(
|
|
2685
|
+
(z ?? []).map((e) => e.token).filter((e) => Sn.test(e)).map((e) => [e.toLowerCase(), e])
|
|
2681
2686
|
),
|
|
2682
|
-
[
|
|
2687
|
+
[z]
|
|
2683
2688
|
), Zn = tt(
|
|
2684
2689
|
() => new Map(
|
|
2685
|
-
(
|
|
2690
|
+
(z ?? []).map(
|
|
2686
2691
|
(e) => [e.token.toLowerCase(), e.label]
|
|
2687
2692
|
)
|
|
2688
2693
|
),
|
|
2689
|
-
[
|
|
2694
|
+
[z]
|
|
2690
2695
|
), rt = C(me);
|
|
2691
|
-
|
|
2696
|
+
L(() => {
|
|
2692
2697
|
rt.current = me;
|
|
2693
2698
|
}, [me]);
|
|
2694
2699
|
const Qn = tt(
|
|
2695
|
-
() => (
|
|
2696
|
-
[
|
|
2700
|
+
() => (z ?? []).filter((e) => Sn.test(e.token)),
|
|
2701
|
+
[z]
|
|
2697
2702
|
), hn = C(se);
|
|
2698
|
-
|
|
2703
|
+
L(() => {
|
|
2699
2704
|
hn.current = se;
|
|
2700
2705
|
}, [se]);
|
|
2701
2706
|
const gn = se !== void 0, pn = v(
|
|
2702
2707
|
(e) => gn && hn.current ? hn.current(e) : me.has(e.toLowerCase()),
|
|
2703
2708
|
[gn, me]
|
|
2704
|
-
), ot = me.size > 0 || gn, [at, Yn] =
|
|
2705
|
-
|
|
2709
|
+
), ot = me.size > 0 || gn, [at, Yn] = E([]), Ge = C(rn);
|
|
2710
|
+
L(() => {
|
|
2706
2711
|
Ge.current = rn;
|
|
2707
2712
|
}, [rn]);
|
|
2708
2713
|
const ze = C(() => {
|
|
2709
|
-
}), [bn, ho] =
|
|
2714
|
+
}), [bn, ho] = E(
|
|
2710
2715
|
() => /* @__PURE__ */ new Set()
|
|
2711
|
-
), St = C(null), [go, po] =
|
|
2716
|
+
), St = C(null), [go, po] = E(
|
|
2712
2717
|
null
|
|
2713
2718
|
), Lt = v((e) => {
|
|
2714
2719
|
St.current = e, po(e);
|
|
2715
2720
|
}, []), vt = C(null), _t = C(null), fe = C(s), Ht = C(B);
|
|
2716
|
-
|
|
2721
|
+
L(() => {
|
|
2717
2722
|
fe.current = s, Ht.current = B;
|
|
2718
2723
|
}, [s, B]);
|
|
2719
2724
|
const bo = C(
|
|
@@ -2732,7 +2737,7 @@ const Is = Zo(
|
|
|
2732
2737
|
}
|
|
2733
2738
|
return ((r = ee.current) == null ? void 0 : r.value) ?? "";
|
|
2734
2739
|
}, [D]);
|
|
2735
|
-
|
|
2740
|
+
L(() => {
|
|
2736
2741
|
ze.current = () => {
|
|
2737
2742
|
var o;
|
|
2738
2743
|
if (!ot) {
|
|
@@ -2752,7 +2757,7 @@ const Is = Zo(
|
|
|
2752
2757
|
});
|
|
2753
2758
|
const r = Array.from(
|
|
2754
2759
|
new Set(
|
|
2755
|
-
|
|
2760
|
+
ys(le()).filter(
|
|
2756
2761
|
(a) => !pn(a)
|
|
2757
2762
|
)
|
|
2758
2763
|
)
|
|
@@ -2761,16 +2766,16 @@ const Is = Zo(
|
|
|
2761
2766
|
(a) => a.length === r.length && a.every((l, b) => l === r[b]) ? a : r
|
|
2762
2767
|
);
|
|
2763
2768
|
}, ze.current();
|
|
2764
|
-
}, [ot, pn, Zn, le]),
|
|
2769
|
+
}, [ot, pn, Zn, le]), L(() => {
|
|
2765
2770
|
var o;
|
|
2766
2771
|
const r = ((o = W.current) == null ? void 0 : o.querySelector(".redactor-in")) ?? ee.current;
|
|
2767
2772
|
r && (at.length > 0 ? (r.setAttribute("aria-invalid", "true"), r.setAttribute("aria-describedby", `${Pe}-variables-error`)) : (r.removeAttribute("aria-invalid"), r.removeAttribute("aria-describedby")));
|
|
2768
2773
|
}, [at, Pe, ue]);
|
|
2769
2774
|
const vn = C(!1);
|
|
2770
|
-
|
|
2775
|
+
L(() => {
|
|
2771
2776
|
var e, r;
|
|
2772
2777
|
ot ? (vn.current = !0, (e = Ge.current) == null || e.call(Ge, at)) : vn.current && (vn.current = !1, (r = Ge.current) == null || r.call(Ge, []));
|
|
2773
|
-
}, [at, ot]),
|
|
2778
|
+
}, [at, ot]), L(() => {
|
|
2774
2779
|
se && ze.current();
|
|
2775
2780
|
}, [se]);
|
|
2776
2781
|
const ce = v(
|
|
@@ -2838,7 +2843,7 @@ const Is = Zo(
|
|
|
2838
2843
|
},
|
|
2839
2844
|
[ce, ye]
|
|
2840
2845
|
);
|
|
2841
|
-
|
|
2846
|
+
L(() => {
|
|
2842
2847
|
const e = W.current;
|
|
2843
2848
|
if (!e) return;
|
|
2844
2849
|
const r = {
|
|
@@ -2859,7 +2864,7 @@ const Is = Zo(
|
|
|
2859
2864
|
de(e, { asHtml: !0 }), typeof window < "u" && window.requestAnimationFrame(() => ye());
|
|
2860
2865
|
},
|
|
2861
2866
|
[de, ye]
|
|
2862
|
-
), [it, yn] =
|
|
2867
|
+
), [it, yn] = E(null), It = C(null), wn = `${Pe}-variables`, Jn = C(null), [kn, vo] = E(void 0), Ce = v(() => {
|
|
2863
2868
|
It.current = null, yn(null);
|
|
2864
2869
|
}, []), $t = v(
|
|
2865
2870
|
(e, r) => {
|
|
@@ -2870,7 +2875,7 @@ const Is = Zo(
|
|
|
2870
2875
|
},
|
|
2871
2876
|
[Ve]
|
|
2872
2877
|
);
|
|
2873
|
-
|
|
2878
|
+
L(() => {
|
|
2874
2879
|
const e = W.current;
|
|
2875
2880
|
if (!e || !ot) return;
|
|
2876
2881
|
const r = () => {
|
|
@@ -2896,7 +2901,7 @@ const Is = Zo(
|
|
|
2896
2901
|
return;
|
|
2897
2902
|
}
|
|
2898
2903
|
const dt = /\[\[([A-Za-z0-9_ ]{0,40})$/.exec(he), ae = gt.current;
|
|
2899
|
-
if (!dt || !ae || (
|
|
2904
|
+
if (!dt || !ae || (z ?? []).length === 0) {
|
|
2900
2905
|
Ce();
|
|
2901
2906
|
return;
|
|
2902
2907
|
}
|
|
@@ -2928,10 +2933,10 @@ const Is = Zo(
|
|
|
2928
2933
|
}, [
|
|
2929
2934
|
ot,
|
|
2930
2935
|
me,
|
|
2931
|
-
|
|
2936
|
+
z,
|
|
2932
2937
|
$t,
|
|
2933
2938
|
Ce
|
|
2934
|
-
]),
|
|
2939
|
+
]), L(() => {
|
|
2935
2940
|
var r;
|
|
2936
2941
|
const e = (r = W.current) == null ? void 0 : r.querySelector(".redactor-in");
|
|
2937
2942
|
e && (it ? (e.setAttribute("aria-expanded", "true"), e.setAttribute("aria-controls", `${wn}-list`), kn ? e.setAttribute("aria-activedescendant", kn) : e.removeAttribute("aria-activedescendant")) : (e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-activedescendant")));
|
|
@@ -3024,7 +3029,7 @@ const Is = Zo(
|
|
|
3024
3029
|
},
|
|
3025
3030
|
[Dt, D, ye]
|
|
3026
3031
|
);
|
|
3027
|
-
|
|
3032
|
+
L(() => {
|
|
3028
3033
|
const e = W.current;
|
|
3029
3034
|
if (typeof window > "u" || !e) return;
|
|
3030
3035
|
const r = (l) => {
|
|
@@ -3109,27 +3114,27 @@ const Is = Zo(
|
|
|
3109
3114
|
[Ve, D]
|
|
3110
3115
|
), tr = v(
|
|
3111
3116
|
async (e, r) => {
|
|
3112
|
-
if (
|
|
3113
|
-
if (!
|
|
3117
|
+
if (R) return R(e, r);
|
|
3118
|
+
if (!S) throw new Error("No image upload URL configured.");
|
|
3114
3119
|
const o = new FormData();
|
|
3115
3120
|
o.append("file", e);
|
|
3116
|
-
const a = await fetch(
|
|
3121
|
+
const a = await fetch(S, {
|
|
3117
3122
|
method: "POST",
|
|
3118
3123
|
body: o,
|
|
3119
3124
|
credentials: "same-origin",
|
|
3120
3125
|
signal: r
|
|
3121
3126
|
});
|
|
3122
3127
|
if (!a.ok) throw new Error(`Image upload failed (${a.status}).`);
|
|
3123
|
-
const l =
|
|
3128
|
+
const l = As(await a.json());
|
|
3124
3129
|
if (!l) throw new Error("Image upload response contained no URL.");
|
|
3125
3130
|
return l;
|
|
3126
3131
|
},
|
|
3127
|
-
[
|
|
3132
|
+
[S, R]
|
|
3128
3133
|
), We = oa({ enabled: G }), {
|
|
3129
3134
|
start: lt,
|
|
3130
3135
|
land: Se,
|
|
3131
3136
|
reset: ct
|
|
3132
|
-
} = We, yt = C(null), Ot = C(null), [we, nr] =
|
|
3137
|
+
} = We, yt = C(null), Ot = C(null), [we, nr] = E(!1), [Ro, rr] = E(!1), [zo, qt] = E(""), Bt = v(() => {
|
|
3133
3138
|
const e = Ot.current;
|
|
3134
3139
|
e != null && e.parentNode && e.parentNode.removeChild(e), Ot.current = null;
|
|
3135
3140
|
}, []), or = v((e) => {
|
|
@@ -3163,7 +3168,7 @@ const Is = Zo(
|
|
|
3163
3168
|
return !1;
|
|
3164
3169
|
const l = o.data.charAt(a - 1);
|
|
3165
3170
|
return /\S/.test(l) && l !== " ";
|
|
3166
|
-
}, []), ke =
|
|
3171
|
+
}, []), ke = T !== void 0 && !T.granted, xn = C(null), Ft = v(() => {
|
|
3167
3172
|
if (!F || ke) return;
|
|
3168
3173
|
const e = new AbortController();
|
|
3169
3174
|
yt.current = e, rr(!1), nr(!0), qt($("editor.ai.listening")), G && lt(), Bt(), F({
|
|
@@ -3213,29 +3218,29 @@ const Is = Zo(
|
|
|
3213
3218
|
ct,
|
|
3214
3219
|
$
|
|
3215
3220
|
]);
|
|
3216
|
-
|
|
3221
|
+
L(() => () => {
|
|
3217
3222
|
var e;
|
|
3218
3223
|
return (e = yt.current) == null ? void 0 : e.abort();
|
|
3219
3224
|
}, []);
|
|
3220
|
-
const [jt, wt] =
|
|
3225
|
+
const [jt, wt] = E(null), Xe = C(null), Gt = C(null), [So, ir] = E(!1), Lo = ((T == null ? void 0 : T.pending) ?? !1) || So, Kt = C(!1), Cn = v(() => {
|
|
3221
3226
|
Xe.current = null, Gt.current = null, Kt.current = !1, wt(null);
|
|
3222
3227
|
}, []), _o = v(() => {
|
|
3223
3228
|
var r;
|
|
3224
3229
|
Kt.current = !0;
|
|
3225
|
-
const e = (r =
|
|
3230
|
+
const e = (r = T == null ? void 0 : T.onGrant) == null ? void 0 : r.call(T);
|
|
3226
3231
|
e && typeof e.then == "function" && (ir(!0), Promise.resolve(e).catch(() => {
|
|
3227
3232
|
}).finally(() => ir(!1)));
|
|
3228
|
-
}, [
|
|
3229
|
-
|
|
3233
|
+
}, [T]), sr = C((T == null ? void 0 : T.granted) ?? !0);
|
|
3234
|
+
L(() => {
|
|
3230
3235
|
const e = sr.current;
|
|
3231
|
-
if (sr.current = (
|
|
3236
|
+
if (sr.current = (T == null ? void 0 : T.granted) ?? !0, !e && (T != null && T.granted) && Xe.current) {
|
|
3232
3237
|
const r = Xe.current, o = Kt.current;
|
|
3233
3238
|
Xe.current = null, Kt.current = !1, wt(null);
|
|
3234
3239
|
const a = Gt.current;
|
|
3235
3240
|
if (Gt.current = null, !o) return;
|
|
3236
3241
|
r === "write" ? De(!0) : r === "action" ? a == null || a() : (ge(), Ft());
|
|
3237
3242
|
}
|
|
3238
|
-
}, [
|
|
3243
|
+
}, [T == null ? void 0 : T.granted, ge, Ft]), L(() => {
|
|
3239
3244
|
ke && (De(!1), we && Pt());
|
|
3240
3245
|
}, [ke, we, Pt]);
|
|
3241
3246
|
const lr = v(
|
|
@@ -3264,7 +3269,7 @@ const Is = Zo(
|
|
|
3264
3269
|
De(!0);
|
|
3265
3270
|
},
|
|
3266
3271
|
[st, ke]
|
|
3267
|
-
), dr = tt(() =>
|
|
3272
|
+
), dr = tt(() => T != null && T.granted ? /* @__PURE__ */ A(Ie, { children: [
|
|
3268
3273
|
$(
|
|
3269
3274
|
"editor.ai.consentRecorded",
|
|
3270
3275
|
"AI assistance consent has been recorded."
|
|
@@ -3273,10 +3278,10 @@ const Is = Zo(
|
|
|
3273
3278
|
" ",
|
|
3274
3279
|
P
|
|
3275
3280
|
] }) : null
|
|
3276
|
-
] }) : P, [
|
|
3277
|
-
|
|
3281
|
+
] }) : P, [T, P, $]), [Ue, An] = E(null), [Ho, Vt] = E(!1), [ur, mr] = E(!1), [Io, Ze] = E(""), fr = C(null), Le = C(null), Wt = C(Ne);
|
|
3282
|
+
L(() => {
|
|
3278
3283
|
Wt.current = Ne;
|
|
3279
|
-
}, [Ne]),
|
|
3284
|
+
}, [Ne]), L(() => {
|
|
3280
3285
|
G && (!we && Ue === null || We.state === null && lt());
|
|
3281
3286
|
}, [G, we, Ue, We.state, lt]);
|
|
3282
3287
|
const kt = (e) => e.preventDefault(), hr = v(
|
|
@@ -3326,7 +3331,7 @@ const Is = Zo(
|
|
|
3326
3331
|
return {
|
|
3327
3332
|
scope: "selection",
|
|
3328
3333
|
range: b.cloneRange(),
|
|
3329
|
-
html:
|
|
3334
|
+
html: ks(b.cloneContents()),
|
|
3330
3335
|
text: x
|
|
3331
3336
|
};
|
|
3332
3337
|
}
|
|
@@ -3383,7 +3388,7 @@ const Is = Zo(
|
|
|
3383
3388
|
});
|
|
3384
3389
|
}).catch((x) => {
|
|
3385
3390
|
var H;
|
|
3386
|
-
if (Qe(!1), !(l.signal.aborted ||
|
|
3391
|
+
if (Qe(!1), !(l.signal.aborted || ws(x))) {
|
|
3387
3392
|
if (Gr(x) && ((H = je.current) == null || H.call(je), fn.current)) {
|
|
3388
3393
|
mn(!0), De(!0);
|
|
3389
3394
|
return;
|
|
@@ -3432,7 +3437,7 @@ const Is = Zo(
|
|
|
3432
3437
|
var e;
|
|
3433
3438
|
(e = Le.current) == null || e.abort(), Le.current = null, Qe(!1), An(null), Ze(""), ct();
|
|
3434
3439
|
}, [Qe, ct]), vr = C(null);
|
|
3435
|
-
|
|
3440
|
+
L(() => {
|
|
3436
3441
|
const e = Ue ?? fr.current;
|
|
3437
3442
|
if (!e) return;
|
|
3438
3443
|
const r = e === "template" ? "ai-templates" : `ai-${e}`, o = requestAnimationFrame(() => {
|
|
@@ -3441,14 +3446,14 @@ const Is = Zo(
|
|
|
3441
3446
|
a && a !== document.body && a.isConnected || (b = (l = vr.current) == null ? void 0 : l.querySelector(`[data-component-part="${r}"]`)) == null || b.focus();
|
|
3442
3447
|
});
|
|
3443
3448
|
return () => cancelAnimationFrame(o);
|
|
3444
|
-
}, [Ue]),
|
|
3449
|
+
}, [Ue]), L(() => () => {
|
|
3445
3450
|
var e;
|
|
3446
3451
|
return (e = Le.current) == null ? void 0 : e.abort();
|
|
3447
|
-
}, []),
|
|
3452
|
+
}, []), L(() => {
|
|
3448
3453
|
const e = ee.current;
|
|
3449
3454
|
if (!e) return;
|
|
3450
3455
|
e.value = bo.current, ze.current();
|
|
3451
|
-
const r =
|
|
3456
|
+
const r = Ts(q);
|
|
3452
3457
|
if (!r) {
|
|
3453
3458
|
Vn(!0);
|
|
3454
3459
|
return;
|
|
@@ -3458,7 +3463,7 @@ const Is = Zo(
|
|
|
3458
3463
|
r.addLang(x, $r($)), Me.current = x;
|
|
3459
3464
|
}
|
|
3460
3465
|
const o = {
|
|
3461
|
-
lang: Me.current ?? h ??
|
|
3466
|
+
lang: Me.current ?? h ?? Ms(Gn.language || "en"),
|
|
3462
3467
|
// The kit renders its OWN toolbar (EditorToolbar) and drives Redactor
|
|
3463
3468
|
// via the command API, so Redactor's native toolbar is suppressed.
|
|
3464
3469
|
toolbar: !1,
|
|
@@ -3473,7 +3478,7 @@ const Is = Zo(
|
|
|
3473
3478
|
// second, untokenised, mouse-only UI competing with ours.
|
|
3474
3479
|
imageEditable: !1,
|
|
3475
3480
|
imageResizable: !1
|
|
3476
|
-
}, a =
|
|
3481
|
+
}, a = S ? { imageUpload: S } : {}, l = (f == null ? void 0 : f.callbacks) ?? {}, b = {
|
|
3477
3482
|
...o,
|
|
3478
3483
|
...a,
|
|
3479
3484
|
...f ?? {},
|
|
@@ -3526,7 +3531,7 @@ const Is = Zo(
|
|
|
3526
3531
|
}
|
|
3527
3532
|
Me.current && r.lang && delete r.lang[Me.current], Me.current = null, te.current = null;
|
|
3528
3533
|
};
|
|
3529
|
-
}, []),
|
|
3534
|
+
}, []), L(() => {
|
|
3530
3535
|
const e = te.current, r = Me.current;
|
|
3531
3536
|
if (!(!(e != null && e.addLang) || !r)) {
|
|
3532
3537
|
e.addLang(r, $r($));
|
|
@@ -3539,21 +3544,21 @@ const Is = Zo(
|
|
|
3539
3544
|
const yr = C(me), wr = C(
|
|
3540
3545
|
null
|
|
3541
3546
|
);
|
|
3542
|
-
|
|
3547
|
+
L(() => {
|
|
3543
3548
|
var o, a;
|
|
3544
3549
|
if (yr.current === me || (yr.current = me, !te.current || me.size === 0)) return;
|
|
3545
3550
|
const e = le(), r = mt(e, me);
|
|
3546
3551
|
if (r !== e) {
|
|
3547
|
-
const l = (o = W.current) == null ? void 0 : o.querySelector(".redactor-in"), x = l != null && l.contains(document.activeElement) && l ?
|
|
3552
|
+
const l = (o = W.current) == null ? void 0 : o.querySelector(".redactor-in"), x = l != null && l.contains(document.activeElement) && l ? xs(l) : null;
|
|
3548
3553
|
wr.current = {
|
|
3549
3554
|
text: Vr(e),
|
|
3550
3555
|
until: Date.now() + 1e3
|
|
3551
3556
|
}, ce("source.setCode", r);
|
|
3552
3557
|
const H = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in");
|
|
3553
|
-
x !== null && H &&
|
|
3558
|
+
x !== null && H && Cs(H, x);
|
|
3554
3559
|
}
|
|
3555
3560
|
window.requestAnimationFrame(() => ze.current());
|
|
3556
|
-
}, [me, le, ce]),
|
|
3561
|
+
}, [me, le, ce]), L(() => {
|
|
3557
3562
|
if (!te.current || c === void 0) return;
|
|
3558
3563
|
if (an.current) {
|
|
3559
3564
|
an.current = !1;
|
|
@@ -3564,7 +3569,7 @@ const Is = Zo(
|
|
|
3564
3569
|
rt.current
|
|
3565
3570
|
);
|
|
3566
3571
|
Yt(le()) !== e && ce("source.setCode", e);
|
|
3567
|
-
}, [c, le, ce]),
|
|
3572
|
+
}, [c, le, ce]), L(() => {
|
|
3568
3573
|
Mt.current = m;
|
|
3569
3574
|
const e = te.current;
|
|
3570
3575
|
if (e)
|
|
@@ -3572,7 +3577,7 @@ const Is = Zo(
|
|
|
3572
3577
|
e(D, m ? "enableReadOnly" : "disableReadOnly");
|
|
3573
3578
|
} catch {
|
|
3574
3579
|
}
|
|
3575
|
-
}, [m, D]),
|
|
3580
|
+
}, [m, D]), L(() => {
|
|
3576
3581
|
if (!ue || c === void 0) return;
|
|
3577
3582
|
const e = ee.current;
|
|
3578
3583
|
if (!e) return;
|
|
@@ -3602,7 +3607,7 @@ const Is = Zo(
|
|
|
3602
3607
|
},
|
|
3603
3608
|
insertAtCursor: de,
|
|
3604
3609
|
applyFormat(e) {
|
|
3605
|
-
const r =
|
|
3610
|
+
const r = Es[e];
|
|
3606
3611
|
r && Ke(...r);
|
|
3607
3612
|
},
|
|
3608
3613
|
focus() {
|
|
@@ -3622,7 +3627,7 @@ const Is = Zo(
|
|
|
3622
3627
|
}),
|
|
3623
3628
|
[D, le, ce, de, Ke]
|
|
3624
3629
|
);
|
|
3625
|
-
Qo(ao, () => Oe, [Oe]), ra(
|
|
3630
|
+
Qo(ao, () => Oe, [Oe]), ra(Di, Oe, n);
|
|
3626
3631
|
const $o = v(
|
|
3627
3632
|
(e) => {
|
|
3628
3633
|
var r;
|
|
@@ -3633,7 +3638,7 @@ const Is = Zo(
|
|
|
3633
3638
|
},
|
|
3634
3639
|
[]
|
|
3635
3640
|
), Xt = p ?? $("editor.regionLabel"), Nn = f == null ? void 0 : f.placeholder, Ct = typeof Nn == "string" || Nn === !1 ? Nn : u ?? $("editor.placeholder");
|
|
3636
|
-
|
|
3641
|
+
L(() => {
|
|
3637
3642
|
var a;
|
|
3638
3643
|
if (ue) return;
|
|
3639
3644
|
const e = (a = W.current) == null ? void 0 : a.querySelector(".redactor-in");
|
|
@@ -3659,7 +3664,7 @@ const Is = Zo(
|
|
|
3659
3664
|
Ve,
|
|
3660
3665
|
J
|
|
3661
3666
|
]
|
|
3662
|
-
), Mn = C(null), [Oo, qo] =
|
|
3667
|
+
), Mn = C(null), [Oo, qo] = E(!1), [Bo, Po] = E(!1), Fo = v(
|
|
3663
3668
|
(e, r) => {
|
|
3664
3669
|
if (Po(e), !e) return;
|
|
3665
3670
|
const o = Ye(r);
|
|
@@ -3684,7 +3689,7 @@ const Is = Zo(
|
|
|
3684
3689
|
onClick: o ? br : () => xt(e, r, Ye("document")),
|
|
3685
3690
|
running: o
|
|
3686
3691
|
};
|
|
3687
|
-
}, [xr, Go] =
|
|
3692
|
+
}, [xr, Go] = E(() => /* @__PURE__ */ new Set()), Ae = tt(() => {
|
|
3688
3693
|
if (!$e || xr.has($e.mode)) return;
|
|
3689
3694
|
if (!$e.onDismiss) return $e;
|
|
3690
3695
|
const e = $e.onDismiss, r = $e.mode;
|
|
@@ -3722,7 +3727,7 @@ const Is = Zo(
|
|
|
3722
3727
|
onClick: () => cr("document")
|
|
3723
3728
|
});
|
|
3724
3729
|
const Tr = (e, r) => Y ? /* @__PURE__ */ t(
|
|
3725
|
-
|
|
3730
|
+
fs,
|
|
3726
3731
|
{
|
|
3727
3732
|
side: r === "document" ? "top" : "bottom",
|
|
3728
3733
|
templates: Y.templates,
|
|
@@ -3733,15 +3738,15 @@ const Is = Zo(
|
|
|
3733
3738
|
trigger: e
|
|
3734
3739
|
}
|
|
3735
3740
|
) : null, Er = (w ?? []).filter(
|
|
3736
|
-
(e) => !e.contexts ||
|
|
3741
|
+
(e) => !e.contexts || _ !== void 0 && e.contexts.includes(_)
|
|
3737
3742
|
);
|
|
3738
|
-
|
|
3743
|
+
L(() => {
|
|
3739
3744
|
(pt || jt !== null || m) && Re(!1);
|
|
3740
|
-
}, [pt, jt, m, Re]),
|
|
3745
|
+
}, [pt, jt, m, Re]), L(() => {
|
|
3741
3746
|
be && !(w ?? []).some(
|
|
3742
|
-
(e) => e.id === be.extension.id && (!e.contexts ||
|
|
3747
|
+
(e) => e.id === be.extension.id && (!e.contexts || _ !== void 0 && e.contexts.includes(_))
|
|
3743
3748
|
) && Re();
|
|
3744
|
-
}, [w,
|
|
3749
|
+
}, [w, _, be, Re]);
|
|
3745
3750
|
const Ko = (e) => {
|
|
3746
3751
|
var Te, dt;
|
|
3747
3752
|
if (ln) return;
|
|
@@ -3813,7 +3818,7 @@ const Is = Zo(
|
|
|
3813
3818
|
), Vo = Nr.every(
|
|
3814
3819
|
(e) => e.length > 0
|
|
3815
3820
|
), Wo = Er.length > 0 ? /* @__PURE__ */ t(
|
|
3816
|
-
|
|
3821
|
+
$s,
|
|
3817
3822
|
{
|
|
3818
3823
|
groupedExtensions: Nr,
|
|
3819
3824
|
showExtensionGroups: Vo,
|
|
@@ -3837,13 +3842,13 @@ const Is = Zo(
|
|
|
3837
3842
|
"div",
|
|
3838
3843
|
{
|
|
3839
3844
|
ref: W,
|
|
3840
|
-
className: [
|
|
3845
|
+
className: [Rs(), M].filter(Boolean).join(" "),
|
|
3841
3846
|
"data-component": "rich-text-editor",
|
|
3842
3847
|
"data-component-id": n,
|
|
3843
3848
|
"data-min-height": y,
|
|
3844
3849
|
children: [
|
|
3845
3850
|
!ue && !m ? /* @__PURE__ */ t(
|
|
3846
|
-
|
|
3851
|
+
bs,
|
|
3847
3852
|
{
|
|
3848
3853
|
run: Ke,
|
|
3849
3854
|
active: bn,
|
|
@@ -3853,9 +3858,9 @@ const Is = Zo(
|
|
|
3853
3858
|
saveSelection: st,
|
|
3854
3859
|
restoreSelection: ge,
|
|
3855
3860
|
getSelectedText: xo,
|
|
3856
|
-
uploadImage:
|
|
3861
|
+
uploadImage: S || R ? tr : void 0,
|
|
3857
3862
|
enableColor: (d == null ? void 0 : d.includes("fontcolor")) ?? !1,
|
|
3858
|
-
enableImage: !!(
|
|
3863
|
+
enableImage: !!(S || R),
|
|
3859
3864
|
enableTable: (d == null ? void 0 : d.includes("table")) ?? !1,
|
|
3860
3865
|
showExtensions: k,
|
|
3861
3866
|
extensionControl: Wo,
|
|
@@ -3876,7 +3881,7 @@ const Is = Zo(
|
|
|
3876
3881
|
placeholder: Ct || void 0,
|
|
3877
3882
|
onChange: ue ? $o : void 0,
|
|
3878
3883
|
readOnly: ue ? m : void 0,
|
|
3879
|
-
className: ue ?
|
|
3884
|
+
className: ue ? Ss() : void 0
|
|
3880
3885
|
}
|
|
3881
3886
|
),
|
|
3882
3887
|
Ut ? /* @__PURE__ */ t(
|
|
@@ -3908,7 +3913,7 @@ const Is = Zo(
|
|
|
3908
3913
|
"data-component-part": `ai-${e.key}`,
|
|
3909
3914
|
disabled: Ut && !e.running || void 0,
|
|
3910
3915
|
"aria-label": e.label,
|
|
3911
|
-
className: e.recording ?
|
|
3916
|
+
className: e.recording ? _s : Ls,
|
|
3912
3917
|
children: e.icon
|
|
3913
3918
|
}
|
|
3914
3919
|
);
|
|
@@ -3979,7 +3984,7 @@ const Is = Zo(
|
|
|
3979
3984
|
onDictate: F,
|
|
3980
3985
|
privacyNotice: dr
|
|
3981
3986
|
}) : V ? /* @__PURE__ */ t(
|
|
3982
|
-
|
|
3987
|
+
Pi,
|
|
3983
3988
|
{
|
|
3984
3989
|
open: pt && !ke,
|
|
3985
3990
|
onClose: () => De(!1),
|
|
@@ -3992,7 +3997,7 @@ const Is = Zo(
|
|
|
3992
3997
|
onDictate: F
|
|
3993
3998
|
}
|
|
3994
3999
|
) : null,
|
|
3995
|
-
|
|
4000
|
+
T ? /* @__PURE__ */ t(
|
|
3996
4001
|
Ln,
|
|
3997
4002
|
{
|
|
3998
4003
|
open: jt !== null,
|
|
@@ -4005,10 +4010,10 @@ const Is = Zo(
|
|
|
4005
4010
|
children: /* @__PURE__ */ t(
|
|
4006
4011
|
ia,
|
|
4007
4012
|
{
|
|
4008
|
-
granted:
|
|
4009
|
-
grantedAt:
|
|
4010
|
-
grantedBy:
|
|
4011
|
-
canGrant: (
|
|
4013
|
+
granted: T.granted,
|
|
4014
|
+
grantedAt: T.grantedAt,
|
|
4015
|
+
grantedBy: T.grantedBy,
|
|
4016
|
+
canGrant: (T.canGrant ?? !0) && T.onGrant !== void 0,
|
|
4012
4017
|
pending: Lo,
|
|
4013
4018
|
onGrantConsent: _o,
|
|
4014
4019
|
headingLevel: U,
|
|
@@ -4022,7 +4027,7 @@ const Is = Zo(
|
|
|
4022
4027
|
) : null
|
|
4023
4028
|
] }),
|
|
4024
4029
|
!ue && !m && ((d == null ? void 0 : d.includes("table")) ?? !1) ? /* @__PURE__ */ t(
|
|
4025
|
-
|
|
4030
|
+
ns,
|
|
4026
4031
|
{
|
|
4027
4032
|
active: bn,
|
|
4028
4033
|
run: Ke,
|
|
@@ -4034,7 +4039,7 @@ const Is = Zo(
|
|
|
4034
4039
|
}
|
|
4035
4040
|
) : null,
|
|
4036
4041
|
!ue && !m ? /* @__PURE__ */ t(
|
|
4037
|
-
|
|
4042
|
+
ms,
|
|
4038
4043
|
{
|
|
4039
4044
|
areaRef: gt,
|
|
4040
4045
|
activeImageEl: go,
|
|
@@ -4043,7 +4048,7 @@ const Is = Zo(
|
|
|
4043
4048
|
}
|
|
4044
4049
|
) : null,
|
|
4045
4050
|
Xo ? /* @__PURE__ */ t(
|
|
4046
|
-
|
|
4051
|
+
ps,
|
|
4047
4052
|
{
|
|
4048
4053
|
active: bn,
|
|
4049
4054
|
run: Ke,
|
|
@@ -4157,7 +4162,7 @@ const Is = Zo(
|
|
|
4157
4162
|
it ? /* @__PURE__ */ t(
|
|
4158
4163
|
"div",
|
|
4159
4164
|
{
|
|
4160
|
-
className:
|
|
4165
|
+
className: zs,
|
|
4161
4166
|
style: {
|
|
4162
4167
|
"--rte-typeahead-x": `${it.left}px`,
|
|
4163
4168
|
"--rte-typeahead-y": `${it.top}px`
|
|
@@ -4214,10 +4219,10 @@ const Is = Zo(
|
|
|
4214
4219
|
);
|
|
4215
4220
|
}
|
|
4216
4221
|
);
|
|
4217
|
-
|
|
4222
|
+
Ds.displayName = "RichTextEditor";
|
|
4218
4223
|
export {
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4224
|
+
Ds as R,
|
|
4225
|
+
Di as r,
|
|
4226
|
+
Rs as w
|
|
4222
4227
|
};
|
|
4223
|
-
//# sourceMappingURL=rich-text-editor-
|
|
4228
|
+
//# sourceMappingURL=rich-text-editor-UgXri8h6.js.map
|