@nldd/design-system 0.25.2 → 0.26.1
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/custom-elements.json +728 -32
- package/dist/cdn/autoloader.js +141 -141
- package/dist/cdn/chunks/{accordion-CE_VBJPo.js → accordion-DA4IlxS5.js} +4 -4
- package/dist/cdn/chunks/{accordion-item-CkIrLwn9.js → accordion-item-Ca1o93cq.js} +9 -7
- package/dist/cdn/chunks/{activity-indicator-DHgkMBdz.js → activity-indicator-Cj4H0Mbz.js} +5 -5
- package/dist/cdn/chunks/{admonition-CK1c7HiM.js → admonition-CdZSoO8O.js} +9 -7
- package/dist/cdn/chunks/{avatar-DwS0FqYL.js → avatar-Dhqn-Dmv.js} +6 -6
- package/dist/cdn/chunks/{avatar-group-BX1URuq1.js → avatar-group-B017eF-u.js} +15 -15
- package/dist/cdn/chunks/{badge-Dyfzch0N.js → badge-Bep5B0_g.js} +5 -5
- package/dist/cdn/chunks/{banner-BPUb-ZpJ.js → banner-DGpIXuE2.js} +7 -7
- package/dist/cdn/chunks/{bar-split-view-BitGKRYw.js → bar-split-view-CKwJxd3e.js} +5 -5
- package/dist/cdn/chunks/{blockquote-CAnK7XlI.js → blockquote-ChMgaOuI.js} +3 -3
- package/dist/cdn/chunks/{box-epVc6r3W.js → box-BRmziG-6.js} +3 -3
- package/dist/cdn/chunks/{breadcrumbs-CY5m5_72.js → breadcrumbs-BeVO8bkQ.js} +5 -5
- package/dist/cdn/chunks/{button-bar-BcmQQqns.js → button-bar-CLxOdalJ.js} +3 -3
- package/dist/cdn/chunks/{button-1F4MG_21.js → button-cHBkq_s7.js} +9 -9
- package/dist/cdn/chunks/{button-group-vez-t2RB.js → button-group-BIvKtEIX.js} +2 -2
- package/dist/cdn/chunks/{card-sHcZK0Sx.js → card-B5gp9Zly.js} +4 -4
- package/dist/cdn/chunks/{cell-_FH10LVj.js → cell-D4Nrd5Z9.js} +6 -6
- package/dist/cdn/chunks/{checkbox-B2EXnuni.js → checkbox-CeLTJhAc.js} +4 -4
- package/dist/cdn/chunks/{checkbox-field-DYBeOCXv.js → checkbox-field-C8cU8fuf.js} +6 -6
- package/dist/cdn/chunks/{checkbox-group-zV_EgqJ1.js → checkbox-group-CC72cq-P.js} +3 -3
- package/dist/cdn/chunks/{class-map-3v5_QWa6.js → class-map-xzscTu4B.js} +1 -1
- package/dist/cdn/chunks/{code-editor-DVHvHweL.js → code-editor-BNhlXTSl.js} +10 -10
- package/dist/cdn/chunks/{code-viewer-CRc5yGTZ.js → code-viewer-D_JwouYO.js} +35 -35
- package/dist/cdn/chunks/{codemirror-input-CgrWL_xI.js → codemirror-input-DJ0wgYrc.js} +368 -368
- package/dist/cdn/chunks/{collection-BobIdtqA.js → collection-BXvz_OtU.js} +8 -8
- package/dist/cdn/chunks/{combo-box-1h_xzaHk.js → combo-box-8kbmoStb.js} +9 -9
- package/dist/cdn/chunks/{container-RIa-Sff8.js → container-Dq-2uHd5.js} +2 -2
- package/dist/cdn/chunks/{custom-element-Dmqf9u_a.js → custom-element-DeaCQ2NP.js} +1 -1
- package/dist/cdn/chunks/{date-field-BN9TIiUH.js → date-field-CQg1_73u.js} +13 -13
- package/dist/cdn/chunks/{date-picker-BFvZvzwT.js → date-picker-CTMxGOiA.js} +10 -10
- package/dist/cdn/chunks/{decorate-D_xx_M26.js → decorate-CCYde2ES.js} +1 -1
- package/dist/cdn/chunks/{described-by-mixin-C3iCCTgg.js → described-by-mixin-BYFim7aO.js} +2 -2
- package/dist/cdn/chunks/{description-cell-D9oU3cOo.js → description-cell-GcVeCz2_.js} +6 -6
- package/dist/cdn/chunks/{dev-checks-Dcd5eLU5.js → dev-checks-CSlbfDuF.js} +19 -2
- package/dist/cdn/chunks/{directive-helpers-B40ApSJp.js → directive-helpers-DgaADFyY.js} +1 -1
- package/dist/cdn/chunks/{dist-DRizG2xD.js → dist-1OQdP4ho.js} +10 -10
- package/dist/cdn/chunks/{dist-BJyPLZy3.js → dist-5vPsM2aV.js} +8 -8
- package/dist/cdn/chunks/{dist-Cxpg90R5.js → dist-B23jHvJ5.js} +15 -15
- package/dist/cdn/chunks/{dist-B5Qpgwkt.js → dist-CNy2sPTt.js} +6 -6
- package/dist/cdn/chunks/{dist-BzfZCamJ.js → dist-CcpLhc4y.js} +7 -7
- package/dist/cdn/chunks/{dist-BZuHdnRq.js → dist-CyDpBAaD.js} +7 -7
- package/dist/cdn/chunks/{dist-De4uSuY6.js → dist-D4SViUJx.js} +21 -21
- package/dist/cdn/chunks/{dist-0pu3OKnY.js → dist-DBxjWahH.js} +4 -4
- package/dist/cdn/chunks/{dist-CPfUaZn6.js → dist-DLtwMUDc.js} +18 -18
- package/dist/cdn/chunks/{dist-8y5HG5So.js → dist-Da_liXcd.js} +124 -124
- package/dist/cdn/chunks/{dist-BVrnRVfm.js → dist-VCymi0hs.js} +250 -250
- package/dist/cdn/chunks/{divider-DhmeevvA.js → divider-8XD3xTbl.js} +2 -2
- package/dist/cdn/chunks/{document-tab-bar-BxgIq1Lc.js → document-tab-bar-RBAmckHS.js} +9 -9
- package/dist/cdn/chunks/{dropdown-BTnHERYI.js → dropdown-DVlxPcjr.js} +5 -5
- package/dist/cdn/chunks/field-button-controller-yvICuXoE.js +26 -0
- package/dist/cdn/chunks/{file-field-BoQCuthe.js → file-field-BrHnFplX.js} +12 -12
- package/dist/cdn/chunks/{form-D6w4G6Qv.js → form-DGHeGEIr.js} +1 -1
- package/dist/cdn/chunks/{form-actions-ifb8kolV.js → form-actions-CHwWKfMM.js} +2 -2
- package/dist/cdn/chunks/{form-field-RhzuOcS5.js → form-field-CdTSI-8h.js} +21 -16
- package/dist/cdn/chunks/{form-section-0df1Ao8U.js → form-section-CjECOIiZ.js} +1 -1
- package/dist/cdn/chunks/{full-bleed-section-BhcgrH9L.js → full-bleed-section-CQgq4iGQ.js} +3 -3
- package/dist/cdn/chunks/{hero-BpLUglsB.js → hero-DhdcYt2N.js} +4 -4
- package/dist/cdn/chunks/{icon-button-BzCEK4gH.js → icon-button-DT_Bi4Ac.js} +9 -9
- package/dist/cdn/chunks/{icon-cell-fu4ggTII.js → icon-cell-C-qrZAlN.js} +5 -5
- package/dist/cdn/chunks/{icon-C1HTyyIr.js → icon-qpmEfU9B.js} +2 -2
- package/dist/cdn/chunks/{identity-CM-fW-xb.js → identity-DFmvuPkl.js} +6 -6
- package/dist/cdn/chunks/{if-defined-CSVfrDre.js → if-defined-BINBE69I.js} +1 -1
- package/dist/cdn/chunks/{image-CjcWKYny.js → image-B4M3h1xJ.js} +8 -8
- package/dist/cdn/chunks/{inline-dialog-QHDEfqso.js → inline-dialog-L-NvjANF.js} +6 -6
- package/dist/cdn/chunks/{just-in-time-education-BuDwdo2R.js → just-in-time-education-CWplH4r9.js} +5 -5
- package/dist/cdn/chunks/{kanban-BaRiCfTn.js → kanban-B6Wa-2aM.js} +5 -5
- package/dist/cdn/chunks/{kanban-column-BuYmxxwP.js → kanban-column-D2-Xq79_.js} +4 -4
- package/dist/cdn/chunks/{keyboard-shortcut-DYMD3B5a.js → keyboard-shortcut-Ci95olxF.js} +118 -47
- package/dist/cdn/chunks/{languages-BFRgyhqj.js → languages-C9AGuuSS.js} +43 -32
- package/dist/cdn/chunks/{link-Cb7bYQmD.js → link-BJB2a_fG.js} +6 -6
- package/dist/cdn/chunks/{link-group-CCxIltG-.js → link-group-aNoedLZo.js} +2 -2
- package/dist/cdn/chunks/{list-B7VgeqfW.js → list-CZWX62tH.js} +8 -8
- package/dist/cdn/chunks/{list-item-Ccmi9h7_.js → list-item-DHzsbK_S.js} +5 -5
- package/dist/cdn/chunks/{list-item-segment-C5APtc9o.js → list-item-segment-CHLlU9Gg.js} +3 -3
- package/dist/cdn/chunks/{menu-B03m20cI.js → menu-NGpB1SKq.js} +21 -17
- package/dist/cdn/chunks/{menu-bar-BTwITnAx.js → menu-bar-CJazkmY7.js} +6 -6
- package/dist/cdn/chunks/{menu-bar-item-By1lj2Ra.js → menu-bar-item-CSqXWNKE.js} +6 -6
- package/dist/cdn/chunks/{menu-divider-Cj7PfUGr.js → menu-divider-Cn1hTpcM.js} +3 -3
- package/dist/cdn/chunks/{menu-group-DyFNOAV9.js → menu-group-C71K1Vmv.js} +4 -4
- package/dist/cdn/chunks/{menu-item-D-9U16AZ.js → menu-item-TqBlQfI2.js} +4 -4
- package/dist/cdn/chunks/{menu.template-DmK-gq-8.js → menu.template-DthELYky.js} +20 -15
- package/dist/cdn/chunks/{modal-dialog-f_Ftzcrk.js → modal-dialog-0V2HsrJC.js} +4 -4
- package/dist/cdn/chunks/{multi-line-text-field-CwTomQkh.js → multi-line-text-field-BV4uUDoK.js} +60 -34
- package/dist/cdn/chunks/{navigation-split-view-CMy_B-Gr.js → navigation-split-view-tPhkxEVD.js} +4 -4
- package/dist/cdn/chunks/{notification-DiXBAbmu.js → notification-CZccv6qx.js} +6 -6
- package/dist/cdn/chunks/{number-field-CPCuSebL.js → number-field-4R2blHda.js} +8 -8
- package/dist/cdn/chunks/{one-half-one-half-section-lsJ_QAgo.js → one-half-one-half-section-h2fLPQfP.js} +3 -3
- package/dist/cdn/chunks/{one-third-two-thirds-section-LS-XD6DL.js → one-third-two-thirds-section-mqUAH5lK.js} +3 -3
- package/dist/cdn/chunks/{one-time-code-field-DT4VRbkL.js → one-time-code-field-Bf_qymKd.js} +7 -7
- package/dist/cdn/chunks/{page-BWCcVj4L.js → page-Kipfvmi6.js} +4 -4
- package/dist/cdn/chunks/{page-footer-QCQIeoP7.js → page-footer-DxE966Oe.js} +4 -4
- package/dist/cdn/chunks/{page-section-mixin-BSRwTzVh.js → page-section-mixin-DpF9JDpd.js} +3 -3
- package/dist/cdn/chunks/{pagination-CfR0D1Z7.js → pagination-DUFFhaU8.js} +6 -6
- package/dist/cdn/chunks/{password-field-37i3lAaO.js → password-field-DdYAVmF3.js} +8 -8
- package/dist/cdn/chunks/{popover-BpX7ZwI_.js → popover-CRHxyhGx.js} +6 -6
- package/dist/cdn/chunks/{progress-bar-oT3i4-Ib.js → progress-bar-BuYsjmSo.js} +7 -7
- package/dist/cdn/chunks/{progress-circle-CskWYN6V.js → progress-circle-Cvu1bfNG.js} +7 -7
- package/dist/cdn/chunks/{radio-button-sFiWCWEp.js → radio-button-B_4AxWDx.js} +3 -3
- package/dist/cdn/chunks/{radio-button-field-yXg-i59N.js → radio-button-field-D7jIg6Oi.js} +5 -5
- package/dist/cdn/chunks/{radio-button-group-Bp4nILvI.js → radio-button-group-D_OezDhB.js} +3 -3
- package/dist/cdn/chunks/{render-marked-B_e-wQFe.js → render-marked-CIuiSS_8.js} +1 -1
- package/dist/cdn/chunks/{reorder-handle-cell-BFyWv6Xk.js → reorder-handle-cell-DNPaZjSC.js} +4 -4
- package/dist/cdn/chunks/{reorder-handle-mixin-CwNDaVUE.js → reorder-handle-mixin-CgvWq4fF.js} +2 -2
- package/dist/cdn/chunks/{repeat-Dx2PqcyL.js → repeat-DfVuWl6o.js} +2 -2
- package/dist/cdn/chunks/{return-focus-BzZWhXhc.js → return-focus-D0fF2hjd.js} +1 -1
- package/dist/cdn/chunks/{rich-text-CaVHkCB8.js → rich-text-CVHlMQY6.js} +3 -3
- package/dist/cdn/chunks/{row-header-mixin-BX0qSYSK.js → row-header-mixin-B25JK2B3.js} +2 -2
- package/dist/cdn/chunks/{scroll-fade-CXu7Eorw.js → scroll-fade-Dv57rTww.js} +2 -2
- package/dist/cdn/chunks/{search-field-DkbneceA.js → search-field-hmD_DXbG.js} +10 -10
- package/dist/cdn/chunks/{segmented-control-Ctl4SnV1.js → segmented-control-e8e-jYSw.js} +6 -6
- package/dist/cdn/chunks/{shadow-resets-oeO4NF40.js → shadow-resets-CRdvf-Ei.js} +2 -2
- package/dist/cdn/chunks/{sheet-XGOn3SXX.js → sheet-D09y3J45.js} +4 -4
- package/dist/cdn/chunks/{shell-B7-afKWD.js → shell-CV3gooGg.js} +3 -3
- package/dist/cdn/chunks/{side-by-side-split-view-CZC844ER.js → side-by-side-split-view-Ckz1C9zk.js} +4 -4
- package/dist/cdn/chunks/{sidebar-section-_eTWxCEU.js → sidebar-section-CdyD-x4t.js} +7 -7
- package/dist/cdn/chunks/{simple-section-CvBDK1kv.js → simple-section-CEf38rBZ.js} +3 -3
- package/dist/cdn/chunks/{skip-link-CHAlS7T_.js → skip-link-DMRhATWw.js} +4 -4
- package/dist/cdn/chunks/{slider-CidyL0xj.js → slider-Db3FPiP6.js} +8 -8
- package/dist/cdn/chunks/{spacer-DukX-lmv.js → spacer-BPFIYueo.js} +2 -2
- package/dist/cdn/chunks/{spacer-cell-etr1xFgM.js → spacer-cell-kITa3CDV.js} +4 -4
- package/dist/cdn/chunks/{split-button-DD0NWy1h.js → split-button-CJs9-Nha.js} +7 -7
- package/dist/cdn/chunks/{split-view-divider-x1x3K9m0.js → split-view-divider-lHlM1Ss8.js} +2 -2
- package/dist/cdn/chunks/{split-view-pane-BnCIygrY.js → split-view-pane-DlsbZtyo.js} +3 -3
- package/dist/cdn/chunks/{stacked-split-view-B70JJ94w.js → stacked-split-view-uRSVhrMd.js} +4 -4
- package/dist/cdn/chunks/{static-html-Bqazhm1K.js → static-html-BahSPV_4.js} +1 -1
- package/dist/cdn/chunks/{status-bar-CNLiFQUC.js → status-bar-DCJLVpsW.js} +4 -4
- package/dist/cdn/chunks/{step-bar-BOvuQRux.js → step-bar-CRR2jiyo.js} +6 -6
- package/dist/cdn/chunks/{step-cell-CM1Ju6Qz.js → step-cell-CbtKxJNJ.js} +5 -5
- package/dist/cdn/chunks/{stepper-CKM-lSpD.js → stepper-Con1_CnB.js} +6 -6
- package/dist/cdn/chunks/{style-map-BK47EPzs.js → style-map-uOwLerwV.js} +1 -1
- package/dist/cdn/chunks/{swatch-picker-CFRNmV9x.js → swatch-picker-Bqn0eaC9.js} +5 -5
- package/dist/cdn/chunks/{switch-BBy9Xo1E.js → switch-CMQcLEBJ.js} +4 -4
- package/dist/cdn/chunks/{switch-field-zh-K7d2q.js → switch-field-D9kWq4Kw.js} +5 -5
- package/dist/cdn/chunks/{tab-bar-C8qWE51t.js → tab-bar-DXzyZI3V.js} +8 -8
- package/dist/cdn/chunks/{table-av_EyIn7.js → table-CWACLpHx.js} +5 -5
- package/dist/cdn/chunks/{tag-DFv9vv3i.js → tag-Bo4yJbtF.js} +4 -4
- package/dist/cdn/chunks/{term-DeQiGH6k.js → term-CQ379ZbN.js} +12 -12
- package/dist/cdn/chunks/{text-mfKi65T1.js → text-D-dFoj6N.js} +3 -3
- package/dist/cdn/chunks/{text-cell-BcT9b0bK.js → text-cell-Be1hStxp.js} +8 -8
- package/dist/cdn/chunks/{text-editor-BwJE_vvo.js → text-editor-BjzQEBWm.js} +1372 -904
- package/dist/cdn/chunks/{text-field-B78KPNqa.js → text-field-DA8nirp6.js} +46 -63
- package/dist/cdn/chunks/{time-field-O2OSrTyM.js → time-field-Dd_TxJuf.js} +15 -15
- package/dist/cdn/chunks/{time-picker-Ce5tW_jo.js → time-picker-B0-rv1qp.js} +5 -5
- package/dist/cdn/chunks/{title-Bdx3NCUA.js → title-DOoPdG_i.js} +4 -4
- package/dist/cdn/chunks/{title-cell-BwHqLbue.js → title-cell-BzCNOMGr.js} +8 -8
- package/dist/cdn/chunks/{toggle-button-CjjJRwpP.js → toggle-button-9PbDHviQ.js} +10 -8
- package/dist/cdn/chunks/{toggle-button-group-CuRM8-nF.js → toggle-button-group-C-H-xp0M.js} +2 -2
- package/dist/cdn/chunks/{token-AiSihnjQ.js → token-CMKFC3gz.js} +5 -5
- package/dist/cdn/chunks/{token-field-GETUgMlc.js → token-field-D4-XHfnG.js} +11 -11
- package/dist/cdn/chunks/{toolbar-item-DR1Z8Hc3.js → toolbar-item-ZYoyKOyy.js} +3 -3
- package/dist/cdn/chunks/{toolbar-title-CDTF6HLo.js → toolbar-title-FKtQ8ZC4.js} +4 -4
- package/dist/cdn/chunks/{toolbar-Cwq028PV.js → toolbar-z9OhEE5l.js} +8 -8
- package/dist/cdn/chunks/{toolbar.styles-JjSZv4fw.js → toolbar.styles-DDjpdCHV.js} +3 -3
- package/dist/cdn/chunks/{tooltip-c-bLjIjT.js → tooltip-BvRNYRo3.js} +5 -5
- package/dist/cdn/chunks/{top-navigation-bar-DzmvxwVc.js → top-navigation-bar-BHPQntER.js} +17 -17
- package/dist/cdn/chunks/{top-title-bar-Bk6dadA-.js → top-title-bar-BVjegLlh.js} +6 -6
- package/dist/cdn/chunks/{translations-BDYe8_q9.js → translations-cJjO6nQV.js} +1 -1
- package/dist/cdn/chunks/{two-thirds-one-third-section-Co5_3oOP.js → two-thirds-one-third-section-BdBHQuXc.js} +3 -3
- package/dist/cdn/chunks/{validation-list-MEykkKGr.js → validation-list-5E3-3_95.js} +3 -3
- package/dist/cdn/chunks/{visibility-mixin-UdX7clEI.js → visibility-mixin-DvRe3O8t.js} +2 -2
- package/dist/cdn/chunks/{visually-hidden-BKnf0dXp.js → visually-hidden-F85D_HcR.js} +2 -2
- package/dist/cdn/chunks/{window-DNoLmVa1.js → window-CabW35M1.js} +5 -5
- package/dist/cdn/chunks/{with-translations-DlZHUMbZ.js → with-translations-BHDG37HJ.js} +3 -3
- package/dist/components/actions/button/button.template.js +1 -1
- package/dist/components/actions/menu/menu.pointer.d.ts +6 -2
- package/dist/components/actions/menu/menu.pointer.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.pointer.js +15 -5
- package/dist/components/actions/menu/menu.pointer.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +15 -10
- package/dist/components/actions/menu/menu.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.js +1 -1
- package/dist/components/content/accordion/accordion-item.styles.d.ts.map +1 -1
- package/dist/components/content/accordion/accordion-item.styles.js +5 -3
- package/dist/components/content/accordion/accordion-item.styles.js.map +1 -1
- package/dist/components/content/admonition/admonition.styles.d.ts.map +1 -1
- package/dist/components/content/admonition/admonition.styles.js +5 -3
- package/dist/components/content/admonition/admonition.styles.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +1 -1
- package/dist/components/content/icon/icon.js +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +16 -9
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +18 -12
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +26 -12
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js +12 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +1 -1
- package/dist/components/forms/form-field/form-field.d.ts +3 -1
- package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.js +14 -3
- package/dist/components/forms/form-field/form-field.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +3 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +3 -0
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.d.ts +3 -0
- package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.js +3 -0
- package/dist/components/inputs/date-field/date-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +8 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +8 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +24 -2
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +3 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.d.ts +3 -0
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +3 -0
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js +3 -0
- package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +3 -0
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +3 -0
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +3 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +3 -0
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts +5 -2
- package/dist/components/inputs/text-editor/text-editor.clipboard.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.clipboard.js +23 -4
- package/dist/components/inputs/text-editor/text-editor.clipboard.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.code-copy.js +38 -18
- package/dist/components/inputs/text-editor/text-editor.code-copy.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts +8 -6
- package/dist/components/inputs/text-editor/text-editor.commands.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.commands.js +23 -9
- package/dist/components/inputs/text-editor/text-editor.commands.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.d.ts +26 -0
- package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.js +165 -15
- package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.list-input.d.ts +17 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.js +133 -0
- package/dist/components/inputs/text-editor/text-editor.list-input.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js +28 -1
- package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +4 -2
- package/dist/components/inputs/text-editor/text-editor.mentions.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.mentions.js +9 -5
- package/dist/components/inputs/text-editor/text-editor.mentions.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js +89 -18
- package/dist/components/inputs/text-editor/text-editor.ordered-list.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.paste.d.ts +10 -0
- package/dist/components/inputs/text-editor/text-editor.paste.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.paste.js +116 -0
- package/dist/components/inputs/text-editor/text-editor.paste.js.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +49 -2
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.d.ts +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.template.js +4 -3
- package/dist/components/inputs/text-editor/text-editor.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts +53 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.d.ts.map +1 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.js +302 -0
- package/dist/components/inputs/text-editor/text-editor.toolbar.js.map +1 -0
- package/dist/components/inputs/text-field/text-field.d.ts +7 -13
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +8 -50
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +2 -2
- package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.d.ts +3 -0
- package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.js +3 -0
- package/dist/components/inputs/time-field/time-field.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +3 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/token-field/token-field.d.ts +3 -0
- package/dist/components/inputs/token-field/token-field.d.ts.map +1 -1
- package/dist/components/inputs/token-field/token-field.js +3 -0
- package/dist/components/inputs/token-field/token-field.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +1 -1
- package/dist/css/rich-text.css +8 -2
- package/dist/css/variables.css +2 -1
- package/dist/nldd.min.js +973 -870
- package/dist/types/react.d.ts +12 -8
- package/dist/types/vue.d.ts +17 -11
- package/dist/utilities/codemirror/codemirror-element.d.ts +12 -1
- package/dist/utilities/codemirror/codemirror-element.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-element.js +23 -4
- package/dist/utilities/codemirror/codemirror-element.js.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.d.ts +3 -0
- package/dist/utilities/codemirror/codemirror-input.d.ts.map +1 -1
- package/dist/utilities/codemirror/codemirror-input.js +14 -3
- package/dist/utilities/codemirror/codemirror-input.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +22 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/field-button-controller.d.ts +28 -0
- package/dist/utilities/field-button-controller.d.ts.map +1 -0
- package/dist/utilities/field-button-controller.js +56 -0
- package/dist/utilities/field-button-controller.js.map +1 -0
- package/dist/utilities/return-focus.d.ts.map +1 -1
- package/dist/utilities/return-focus.js +3 -0
- package/dist/utilities/return-focus.js.map +1 -1
- package/dist/utilities/shortcut.d.ts +14 -0
- package/dist/utilities/shortcut.d.ts.map +1 -1
- package/dist/utilities/shortcut.js +37 -1
- package/dist/utilities/shortcut.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/lint/linter.js +4 -1
- package/package.json +3 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./dist-3C80SZN9.js";
|
|
2
2
|
import { i as r, o as i } from "./style-mod-DGMhzWuk.js";
|
|
3
|
-
import {
|
|
3
|
+
import { S as a, _ as o, h as s, s as c, u as l, v as u } from "./languages-C9AGuuSS.js";
|
|
4
4
|
// node_modules/@lezer/yaml/dist/index.js
|
|
5
|
-
var d = 63, f = 64, p = 1, m = 2, h = 3, ee = 4, g = 5, _ = 6,
|
|
5
|
+
var d = 63, f = 64, p = 1, m = 2, h = 3, ee = 4, g = 5, _ = 6, v = 7, y = 65, b = 66, x = 8, te = 9, ne = 10, S = 11, C = 12, w = 13, T = 19, E = 20, D = 29, O = 33, k = 34, A = 47, re = 0, j = 1, M = 2, N = 3, P = 4, F = class {
|
|
6
6
|
constructor(e, t, n) {
|
|
7
7
|
this.parent = e, this.depth = t, this.type = n, this.hash = (e ? e.hash + e.hash << 8 : 0) + t + (t << 4) + n;
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
-
F.top = new F(null, -1,
|
|
10
|
+
F.top = new F(null, -1, re);
|
|
11
11
|
function I(e, t) {
|
|
12
12
|
for (let n = 0, r = t - e.pos - 1;; r--, n++) {
|
|
13
13
|
let t = e.peek(r);
|
|
@@ -29,15 +29,15 @@ function B(e) {
|
|
|
29
29
|
var V = new n({
|
|
30
30
|
start: F.top,
|
|
31
31
|
reduce(e, t) {
|
|
32
|
-
return e.type == N && (t ==
|
|
32
|
+
return e.type == N && (t == E || t == k) ? e.parent : e;
|
|
33
33
|
},
|
|
34
34
|
shift(e, t, n, r) {
|
|
35
35
|
if (t == h) return new F(e, I(r, r.pos), j);
|
|
36
|
-
if (t ==
|
|
36
|
+
if (t == y || t == g) return new F(e, I(r, r.pos), M);
|
|
37
37
|
if (t == d) return e.parent;
|
|
38
|
-
if (t ==
|
|
39
|
-
if (t ==
|
|
40
|
-
if (t ==
|
|
38
|
+
if (t == T || t == O) return new F(e, 0, N);
|
|
39
|
+
if (t == w && e.type == P) return e.parent;
|
|
40
|
+
if (t == A) {
|
|
41
41
|
let t = /[1-9]/.exec(r.read(r.pos, n.pos));
|
|
42
42
|
if (t) return new F(e, e.depth + +t[0], P);
|
|
43
43
|
}
|
|
@@ -67,7 +67,7 @@ var U = new e((e, t) => {
|
|
|
67
67
|
(n < t.context.depth || n == t.context.depth && t.context.type == j && (e.next != 45 || !B(e.peek(1)))) && e.next != -1 && !R(e.next) && e.next != 35 && e.acceptToken(d, -n);
|
|
68
68
|
}
|
|
69
69
|
}, { contextual: !0 }), W = new e((e, t) => {
|
|
70
|
-
if (t.context.type == N) e.next == 63 && (e.advance(), B(e.next) && e.acceptToken(
|
|
70
|
+
if (t.context.type == N) e.next == 63 && (e.advance(), B(e.next) && e.acceptToken(v));
|
|
71
71
|
else if (e.next == 45) e.advance(), B(e.next) && e.acceptToken(t.context.type == j && t.context.depth == I(e, e.pos - 1) ? ee : h);
|
|
72
72
|
else if (e.next == 63) e.advance(), B(e.next) && e.acceptToken(t.context.type == M && t.context.depth == I(e, e.pos - 1) ? _ : g);
|
|
73
73
|
else {
|
|
@@ -92,8 +92,8 @@ var U = new e((e, t) => {
|
|
|
92
92
|
}
|
|
93
93
|
for (; L(e.next);) e.advance();
|
|
94
94
|
if (e.next == 58) {
|
|
95
|
-
if (e.pos == n && t.canShift(
|
|
96
|
-
B(e.peek(1)) && e.acceptTokenTo(t.context.type == M && t.context.depth == I(e, n) ?
|
|
95
|
+
if (e.pos == n && t.canShift(D)) return;
|
|
96
|
+
B(e.peek(1)) && e.acceptTokenTo(t.context.type == M && t.context.depth == I(e, n) ? b : y, n);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}, { contextual: !0 });
|
|
@@ -174,11 +174,11 @@ function $(e, t, n, r) {
|
|
|
174
174
|
return !0;
|
|
175
175
|
}
|
|
176
176
|
var oe = new e((e, t) => {
|
|
177
|
-
if (e.next == 33) J(e), e.acceptToken(
|
|
177
|
+
if (e.next == 33) J(e), e.acceptToken(C);
|
|
178
178
|
else if (e.next == 38 || e.next == 42) {
|
|
179
|
-
let t = e.next == 38 ?
|
|
179
|
+
let t = e.next == 38 ? ne : S;
|
|
180
180
|
Y(e), e.acceptToken(t);
|
|
181
|
-
} else e.next == 39 || e.next == 34 ? (X(e, !1), e.acceptToken(
|
|
181
|
+
} else e.next == 39 || e.next == 34 ? (X(e, !1), e.acceptToken(te)) : $(e, !1, t.context.type == N, t.context.depth) && e.acceptToken(x);
|
|
182
182
|
}), se = new e((e, t) => {
|
|
183
183
|
let n = t.context.type == P ? t.context.depth : -1, r = e.pos;
|
|
184
184
|
scan: for (;;) {
|
|
@@ -192,7 +192,7 @@ var oe = new e((e, t) => {
|
|
|
192
192
|
r = e.pos;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
e.acceptTokenTo(
|
|
195
|
+
e.acceptTokenTo(w, r);
|
|
196
196
|
}), ce = r({
|
|
197
197
|
DirectiveName: i.keyword,
|
|
198
198
|
DirectiveContent: i.attributeValue,
|
|
@@ -255,9 +255,9 @@ var oe = new e((e, t) => {
|
|
|
255
255
|
],
|
|
256
256
|
topRules: { Stream: [0, 15] },
|
|
257
257
|
tokenPrec: 0
|
|
258
|
-
}), ue = /*@__PURE__*/
|
|
258
|
+
}), ue = /*@__PURE__*/ c.define({
|
|
259
259
|
name: "yaml",
|
|
260
|
-
parser: /*@__PURE__*/ le.configure({ props: [/*@__PURE__*/
|
|
260
|
+
parser: /*@__PURE__*/ le.configure({ props: [/*@__PURE__*/ a.add({
|
|
261
261
|
Stream: (e) => {
|
|
262
262
|
for (let t = e.node.resolve(e.pos, -1); t && t.to >= e.pos; t = t.parent) {
|
|
263
263
|
if (t.name == "BlockLiteralContent" && t.from < t.to) return e.baseIndentFor(t);
|
|
@@ -272,9 +272,9 @@ var oe = new e((e, t) => {
|
|
|
272
272
|
}
|
|
273
273
|
return null;
|
|
274
274
|
},
|
|
275
|
-
FlowMapping: /*@__PURE__*/
|
|
276
|
-
FlowSequence: /*@__PURE__*/
|
|
277
|
-
}), /*@__PURE__*/
|
|
275
|
+
FlowMapping: /*@__PURE__*/ s({ closing: "}" }),
|
|
276
|
+
FlowSequence: /*@__PURE__*/ s({ closing: "]" })
|
|
277
|
+
}), /*@__PURE__*/ u.add({
|
|
278
278
|
"FlowMapping FlowSequence": o,
|
|
279
279
|
"Item Pair BlockLiteral": (e, t) => ({
|
|
280
280
|
from: t.doc.lineAt(e.from).to,
|
|
@@ -287,7 +287,7 @@ var oe = new e((e, t) => {
|
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
289
|
function de() {
|
|
290
|
-
return new
|
|
290
|
+
return new l(ue);
|
|
291
291
|
}
|
|
292
292
|
i.meta;
|
|
293
293
|
export { de as yaml };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { i as t, n, r } from "./dist-3C80SZN9.js";
|
|
3
3
|
import { c as i, f as a, i as o, o as s } from "./style-mod-DGMhzWuk.js";
|
|
4
|
-
import {
|
|
4
|
+
import { O as c, S as ee, _ as l, p as u, s as d, u as f, v as p } from "./languages-C9AGuuSS.js";
|
|
5
5
|
// node_modules/@lezer/css/dist/index.js
|
|
6
6
|
var te = 148, m = 1, h = 149, g = 150, _ = 2, v = 151, ne = 3, y = 4, b = [
|
|
7
7
|
9,
|
|
@@ -362,9 +362,9 @@ var pe = /*@__PURE__*/ ((e) => (t) => {
|
|
|
362
362
|
options: K(),
|
|
363
363
|
validFor: Y
|
|
364
364
|
} : null;
|
|
365
|
-
})((e) => e.name == "VariableName"), Q = /*@__PURE__*/
|
|
365
|
+
})((e) => e.name == "VariableName"), Q = /*@__PURE__*/ d.define({
|
|
366
366
|
name: "css",
|
|
367
|
-
parser: /*@__PURE__*/ U.configure({ props: [/*@__PURE__*/
|
|
367
|
+
parser: /*@__PURE__*/ U.configure({ props: [/*@__PURE__*/ ee.add({ Declaration: /*@__PURE__*/ u() }), /*@__PURE__*/ p.add({ "Block KeyframeList": l })] }),
|
|
368
368
|
languageData: {
|
|
369
369
|
commentTokens: { block: {
|
|
370
370
|
open: "/*",
|
|
@@ -375,6 +375,6 @@ var pe = /*@__PURE__*/ ((e) => (t) => {
|
|
|
375
375
|
}
|
|
376
376
|
});
|
|
377
377
|
function $() {
|
|
378
|
-
return new
|
|
378
|
+
return new f(Q, Q.data.of({ autocomplete: pe }));
|
|
379
379
|
}
|
|
380
380
|
export { Q as n, W as r, $ as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { i as t, n, r, t as i } from "./dist-3C80SZN9.js";
|
|
3
3
|
import { c as a, f as o, i as s, o as c } from "./style-mod-DGMhzWuk.js";
|
|
4
|
-
import {
|
|
5
|
-
import { o as g, r as oe, s as _ } from "./dist-
|
|
4
|
+
import { $ as ee, D as l, O as u, S as d, _ as f, g as te, h as ne, j as re, m as p, p as m, s as ie, u as ae, v as h } from "./languages-C9AGuuSS.js";
|
|
5
|
+
import { o as g, r as oe, s as _ } from "./dist-VCymi0hs.js";
|
|
6
6
|
// node_modules/@lezer/javascript/dist/index.js
|
|
7
7
|
var se = 316, ce = 317, v = 1, le = 2, ue = 3, de = 4, fe = 318, pe = 320, me = 321, he = 5, ge = 6, y = 0, b = [
|
|
8
8
|
9,
|
|
@@ -579,7 +579,7 @@ var U = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, W = [
|
|
|
579
579
|
"?."
|
|
580
580
|
];
|
|
581
581
|
function De(e) {
|
|
582
|
-
let t =
|
|
582
|
+
let t = u(e.state).resolveInner(e.pos, -1);
|
|
583
583
|
if (W.indexOf(t.name) > -1) return null;
|
|
584
584
|
let n = t.name == "VariableName" || t.to - t.from < 20 && U.test(e.state.sliceDoc(t.from, t.to));
|
|
585
585
|
if (!n && !e.explicit) return null;
|
|
@@ -593,18 +593,18 @@ function De(e) {
|
|
|
593
593
|
}
|
|
594
594
|
var G = /*@__PURE__*/ ie.define({
|
|
595
595
|
name: "javascript",
|
|
596
|
-
parser: /*@__PURE__*/ Se.configure({ props: [/*@__PURE__*/
|
|
597
|
-
IfStatement: /*@__PURE__*/
|
|
598
|
-
TryStatement: /*@__PURE__*/
|
|
599
|
-
LabeledStatement:
|
|
596
|
+
parser: /*@__PURE__*/ Se.configure({ props: [/*@__PURE__*/ d.add({
|
|
597
|
+
IfStatement: /*@__PURE__*/ m({ except: /^\s*({|else\b)/ }),
|
|
598
|
+
TryStatement: /*@__PURE__*/ m({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
599
|
+
LabeledStatement: te,
|
|
600
600
|
SwitchBody: (e) => {
|
|
601
601
|
let t = e.textAfter, n = /^\s*\}/.test(t), r = /^\s*(case|default)\b/.test(t);
|
|
602
602
|
return e.baseIndent + (n ? 0 : r ? 1 : 2) * e.unit;
|
|
603
603
|
},
|
|
604
|
-
Block: /*@__PURE__*/
|
|
604
|
+
Block: /*@__PURE__*/ ne({ closing: "}" }),
|
|
605
605
|
ArrowFunction: (e) => e.baseIndent + e.unit,
|
|
606
606
|
"TemplateString BlockComment": () => null,
|
|
607
|
-
"Statement Property": /*@__PURE__*/
|
|
607
|
+
"Statement Property": /*@__PURE__*/ m({ except: /^\s*{/ }),
|
|
608
608
|
JSXElement(e) {
|
|
609
609
|
let t = /^\s*<\//.test(e.textAfter);
|
|
610
610
|
return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
|
|
@@ -616,8 +616,8 @@ var G = /*@__PURE__*/ ie.define({
|
|
|
616
616
|
"JSXOpenTag JSXSelfClosingTag"(e) {
|
|
617
617
|
return e.column(e.node.from) + e.unit;
|
|
618
618
|
}
|
|
619
|
-
}), /*@__PURE__*/
|
|
620
|
-
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":
|
|
619
|
+
}), /*@__PURE__*/ h.add({
|
|
620
|
+
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": f,
|
|
621
621
|
BlockComment(e) {
|
|
622
622
|
return {
|
|
623
623
|
from: e.from + 2,
|
|
@@ -662,16 +662,16 @@ var G = /*@__PURE__*/ ie.define({
|
|
|
662
662
|
}
|
|
663
663
|
}), K = {
|
|
664
664
|
test: (e) => /^JSX/.test(e.name),
|
|
665
|
-
facet: /*@__PURE__*/
|
|
665
|
+
facet: /*@__PURE__*/ p({ commentTokens: { block: {
|
|
666
666
|
open: "{/*",
|
|
667
667
|
close: "*/}"
|
|
668
668
|
} } })
|
|
669
669
|
}, q = /*@__PURE__*/ G.configure({ dialect: "ts" }, "typescript"), J = /*@__PURE__*/ G.configure({
|
|
670
670
|
dialect: "jsx",
|
|
671
|
-
props: [/*@__PURE__*/
|
|
671
|
+
props: [/*@__PURE__*/ l.add((e) => e.isTop ? [K] : void 0)]
|
|
672
672
|
}), Y = /*@__PURE__*/ G.configure({
|
|
673
673
|
dialect: "jsx ts",
|
|
674
|
-
props: [/*@__PURE__*/
|
|
674
|
+
props: [/*@__PURE__*/ l.add((e) => e.isTop ? [K] : void 0)]
|
|
675
675
|
}, "typescript"), X = (e) => ({
|
|
676
676
|
label: e,
|
|
677
677
|
type: "keyword"
|
|
@@ -684,7 +684,7 @@ var G = /*@__PURE__*/ ie.define({
|
|
|
684
684
|
].map(X));
|
|
685
685
|
function Q(e = {}) {
|
|
686
686
|
let t = e.jsx ? e.typescript ? Y : J : e.typescript ? q : G, n = e.typescript ? we.concat(Oe) : R.concat(Z);
|
|
687
|
-
return new
|
|
687
|
+
return new ae(t, [
|
|
688
688
|
G.data.of({ autocomplete: g(W, oe(n)) }),
|
|
689
689
|
G.data.of({ autocomplete: De }),
|
|
690
690
|
e.jsx ? je : []
|
|
@@ -701,10 +701,10 @@ function $(e, t, n = e.length) {
|
|
|
701
701
|
for (let r = t?.firstChild; r; r = r.nextSibling) if (r.name == "JSXIdentifier" || r.name == "JSXBuiltin" || r.name == "JSXNamespacedName" || r.name == "JSXMemberExpression") return e.sliceString(r.from, Math.min(r.to, n));
|
|
702
702
|
return "";
|
|
703
703
|
}
|
|
704
|
-
var Ae = typeof navigator == "object" && /*@__PURE__*/ /Android\b/.test(navigator.userAgent), je = /*@__PURE__*/
|
|
704
|
+
var Ae = typeof navigator == "object" && /*@__PURE__*/ /Android\b/.test(navigator.userAgent), je = /*@__PURE__*/ re.inputHandler.of((e, t, n, r, i) => {
|
|
705
705
|
if ((Ae ? e.composing : e.compositionStarted) || e.state.readOnly || t != n || r != ">" && r != "/" || !G.isActiveAt(e.state, t, -1)) return !1;
|
|
706
706
|
let a = i(), { state: o } = a, s = o.changeByRange((e) => {
|
|
707
|
-
let { head: t } = e, n =
|
|
707
|
+
let { head: t } = e, n = u(o).resolveInner(t - 1, -1), i;
|
|
708
708
|
if (n.name == "JSXStartTag" && (n = n.parent), !(o.doc.sliceString(t - 1, t) != r || n.name == "JSXAttributeValue" && n.to > t)) {
|
|
709
709
|
if (r == ">" && n.name == "JSXFragmentTag") return {
|
|
710
710
|
range: e,
|
|
@@ -718,7 +718,7 @@ var Ae = typeof navigator == "object" && /*@__PURE__*/ /Android\b/.test(navigato
|
|
|
718
718
|
if (r && e.from == t - 2 && ((i = $(o.doc, r.firstChild, t)) || r.firstChild?.name == "JSXFragmentTag")) {
|
|
719
719
|
let e = `${i}>`;
|
|
720
720
|
return {
|
|
721
|
-
range:
|
|
721
|
+
range: ee.cursor(t + e.length, -1),
|
|
722
722
|
changes: {
|
|
723
723
|
from: t,
|
|
724
724
|
insert: e
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { $ as t,
|
|
3
|
-
import { t as te } from "./dist-
|
|
2
|
+
import { $ as t, H as n, O as r, S as i, T as a, c as o, d as s, et as c, j as l, l as u, m as d, mt as f, rt as p, u as m, v as h, w as g, y as ee } from "./languages-C9AGuuSS.js";
|
|
3
|
+
import { t as te } from "./dist-VCymi0hs.js";
|
|
4
4
|
import { d as _, g as ne, i as re, l as v, m as y, n as ie, o as b, p as ae, u as oe } from "./style-mod-DGMhzWuk.js";
|
|
5
|
-
import { n as se, r as ce } from "./dist-
|
|
5
|
+
import { n as se, r as ce } from "./dist-1OQdP4ho.js";
|
|
6
6
|
// node_modules/@lezer/markdown/dist/index.js
|
|
7
7
|
var le = class e {
|
|
8
8
|
static create(t, n, r, i, a) {
|
|
@@ -1244,17 +1244,17 @@ var ft = {
|
|
|
1244
1244
|
return t != 58 || !(r = /^[a-zA-Z_0-9]+:/.exec(e.slice(n + 1, e.end))) ? -1 : e.addElement(e.elt("Emoji", n, n + 1 + r[0].length));
|
|
1245
1245
|
}
|
|
1246
1246
|
}]
|
|
1247
|
-
}, ht = /* @__PURE__ */ e({ markdown: () =>
|
|
1247
|
+
}, ht = /* @__PURE__ */ e({ markdown: () => Ft }), gt = /*@__PURE__*/ d({ commentTokens: { block: {
|
|
1248
1248
|
open: "<!--",
|
|
1249
1249
|
close: "-->"
|
|
1250
1250
|
} } }), _t = /*@__PURE__*/ new v(), vt = /*@__PURE__*/ Ge.configure({ props: [
|
|
1251
|
-
/*@__PURE__*/
|
|
1251
|
+
/*@__PURE__*/ h.add((e) => !e.is("Block") || e.is("Document") || q(e) != null || yt(e) ? void 0 : (e, t) => ({
|
|
1252
1252
|
from: t.doc.lineAt(e.from).to,
|
|
1253
1253
|
to: e.to
|
|
1254
1254
|
})),
|
|
1255
1255
|
/*@__PURE__*/ _t.add(q),
|
|
1256
|
-
/*@__PURE__*/
|
|
1257
|
-
/*@__PURE__*/
|
|
1256
|
+
/*@__PURE__*/ i.add({ Document: () => null }),
|
|
1257
|
+
/*@__PURE__*/ a.add({ Document: gt })
|
|
1258
1258
|
] });
|
|
1259
1259
|
function q(e) {
|
|
1260
1260
|
let t = /^(?:ATX|Setext)Heading(\d)$/.exec(e.name);
|
|
@@ -1272,11 +1272,11 @@ function bt(e, t) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
return n.to;
|
|
1274
1274
|
}
|
|
1275
|
-
var xt = /*@__PURE__*/
|
|
1276
|
-
for (let
|
|
1277
|
-
let e =
|
|
1275
|
+
var xt = /*@__PURE__*/ ee.of((e, t, n) => {
|
|
1276
|
+
for (let i = r(e).resolveInner(n, -1); i && !(i.from < t); i = i.parent) {
|
|
1277
|
+
let e = i.type.prop(_t);
|
|
1278
1278
|
if (e == null) continue;
|
|
1279
|
-
let t = bt(
|
|
1279
|
+
let t = bt(i, e);
|
|
1280
1280
|
if (t > n) return {
|
|
1281
1281
|
from: n,
|
|
1282
1282
|
to: t
|
|
@@ -1285,14 +1285,14 @@ var xt = /*@__PURE__*/ h.of((e, t, n) => {
|
|
|
1285
1285
|
return null;
|
|
1286
1286
|
});
|
|
1287
1287
|
function J(e) {
|
|
1288
|
-
return new
|
|
1288
|
+
return new o(gt, e, [], "markdown");
|
|
1289
1289
|
}
|
|
1290
1290
|
var St = /*@__PURE__*/ J(vt), Y = /*@__PURE__*/ J(/* @__PURE__ */ vt.configure([
|
|
1291
1291
|
ut,
|
|
1292
1292
|
pt,
|
|
1293
1293
|
ft,
|
|
1294
1294
|
mt,
|
|
1295
|
-
{ props: [/*@__PURE__*/
|
|
1295
|
+
{ props: [/*@__PURE__*/ h.add({ Table: (e, t) => ({
|
|
1296
1296
|
from: t.doc.lineAt(e.from).to,
|
|
1297
1297
|
to: e.to
|
|
1298
1298
|
}) })] }
|
|
@@ -1301,7 +1301,7 @@ function Ct(e, t) {
|
|
|
1301
1301
|
return (n) => {
|
|
1302
1302
|
if (n && e) {
|
|
1303
1303
|
let t = null;
|
|
1304
|
-
if (n = /\S*/.exec(n)[0], t = typeof e == "function" ? e(n) :
|
|
1304
|
+
if (n = /\S*/.exec(n)[0], t = typeof e == "function" ? e(n) : u.matchLanguageName(e, n, !0), t instanceof u) return t.support ? t.support.language.parser : s.getSkippingParser(t.load());
|
|
1305
1305
|
if (t) return t.parser;
|
|
1306
1306
|
}
|
|
1307
1307
|
return t ? t.parser : null;
|
|
@@ -1370,59 +1370,59 @@ function Z(e, t, n, r = 0) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
function Q(e, t) {
|
|
1372
1372
|
let n = /^[ \t]*/.exec(e)[0].length;
|
|
1373
|
-
if (!n || t.facet(
|
|
1374
|
-
let
|
|
1375
|
-
for (let e =
|
|
1376
|
-
return
|
|
1373
|
+
if (!n || t.facet(g) != " ") return e;
|
|
1374
|
+
let r = f(e, 4, n), i = "";
|
|
1375
|
+
for (let e = r; e > 0;) e >= 4 ? (i += " ", e -= 4) : (i += " ", e--);
|
|
1376
|
+
return i + e.slice(n);
|
|
1377
1377
|
}
|
|
1378
|
-
var Et =
|
|
1379
|
-
let
|
|
1380
|
-
if (!
|
|
1381
|
-
let i =
|
|
1378
|
+
var Et = (e = {}) => ({ state: n, dispatch: i }) => {
|
|
1379
|
+
let a = r(n), { doc: o } = n, s = null, c = n.changeByRange((r) => {
|
|
1380
|
+
if (!r.empty || !Y.isActiveAt(n, r.from, -1) && !Y.isActiveAt(n, r.from, 1)) return s = { range: r };
|
|
1381
|
+
let i = r.from, c = o.lineAt(i), l = wt(a.resolveInner(i, -1), o);
|
|
1382
1382
|
for (; l.length && l[l.length - 1].from > i - c.from;) l.pop();
|
|
1383
|
-
if (!l.length) return s = { range:
|
|
1383
|
+
if (!l.length) return s = { range: r };
|
|
1384
1384
|
let u = l[l.length - 1];
|
|
1385
|
-
if (u.to - u.spaceAfter.length > i - c.from) return s = { range:
|
|
1385
|
+
if (u.to - u.spaceAfter.length > i - c.from) return s = { range: r };
|
|
1386
1386
|
let d = i >= u.to - u.spaceAfter.length && !/\S/.test(c.text.slice(u.to));
|
|
1387
1387
|
if (u.item && d) {
|
|
1388
|
-
if (u.item.from < c.from && !/^[\s>]*$/.test(c.text.slice(0, u.to))) return s = { range:
|
|
1389
|
-
let
|
|
1390
|
-
if (
|
|
1391
|
-
let e = l.length > 1 ? l[l.length - 2] : null,
|
|
1392
|
-
e && e.item ? (
|
|
1393
|
-
let
|
|
1394
|
-
from:
|
|
1388
|
+
if (u.item.from < c.from && !/^[\s>]*$/.test(c.text.slice(0, u.to))) return s = { range: r };
|
|
1389
|
+
let a = u.node.firstChild, d = u.node.getChild("ListItem", "ListItem");
|
|
1390
|
+
if (a.to >= i || d && d.to < i || c.from > 0 && !/[^\s>]/.test(o.lineAt(c.from - 1).text) || e.nonTightLists === !1) {
|
|
1391
|
+
let e = l.length > 1 ? l[l.length - 2] : null, n, r = "";
|
|
1392
|
+
e && e.item ? (n = c.from + e.from, r = e.marker(o, 1)) : n = c.from + (e ? e.to : 0);
|
|
1393
|
+
let a = [{
|
|
1394
|
+
from: n,
|
|
1395
1395
|
to: i,
|
|
1396
|
-
insert:
|
|
1396
|
+
insert: r
|
|
1397
1397
|
}];
|
|
1398
|
-
return u.node.name == "OrderedList" && Z(u.item, o,
|
|
1399
|
-
range:
|
|
1400
|
-
changes:
|
|
1398
|
+
return u.node.name == "OrderedList" && Z(u.item, o, a, -2), e && e.node.name == "OrderedList" && Z(e.item, o, a), {
|
|
1399
|
+
range: t.cursor(n + r.length),
|
|
1400
|
+
changes: a
|
|
1401
1401
|
};
|
|
1402
1402
|
}
|
|
1403
1403
|
{
|
|
1404
|
-
let e =
|
|
1404
|
+
let e = At(l, n, c);
|
|
1405
1405
|
return {
|
|
1406
|
-
range:
|
|
1406
|
+
range: t.cursor(i + e.length + 1),
|
|
1407
1407
|
changes: {
|
|
1408
1408
|
from: c.from,
|
|
1409
|
-
insert: e +
|
|
1409
|
+
insert: e + n.lineBreak
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
1414
1414
|
if (u.node.name == "Blockquote" && d && c.from) {
|
|
1415
|
-
let e = o.lineAt(c.from - 1),
|
|
1416
|
-
if (
|
|
1417
|
-
let i =
|
|
1418
|
-
from: e.from +
|
|
1415
|
+
let e = o.lineAt(c.from - 1), t = />\s*$/.exec(e.text);
|
|
1416
|
+
if (t && t.index == u.from) {
|
|
1417
|
+
let i = n.changes([{
|
|
1418
|
+
from: e.from + t.index,
|
|
1419
1419
|
to: e.to
|
|
1420
1420
|
}, {
|
|
1421
1421
|
from: c.from + u.from,
|
|
1422
1422
|
to: c.to
|
|
1423
1423
|
}]);
|
|
1424
1424
|
return {
|
|
1425
|
-
range:
|
|
1425
|
+
range: r.map(i),
|
|
1426
1426
|
changes: i
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
@@ -1433,138 +1433,138 @@ var Et = /*@__PURE__*/ ((e = {}) => ({ state: t, dispatch: n }) => {
|
|
|
1433
1433
|
if (!m || /^[\s\d.)\-+*>]*/.exec(c.text)[0].length >= u.to) for (let e = 0, t = l.length - 1; e <= t; e++) h += e == t && !m ? l[e].marker(o, 1) : l[e].blank(e < t ? f(c.text, 4, l[e + 1].from) - h.length : null);
|
|
1434
1434
|
let g = i;
|
|
1435
1435
|
for (; g > c.from && /\s/.test(c.text.charAt(g - c.from - 1));) g--;
|
|
1436
|
-
return h = Q(h,
|
|
1436
|
+
return h = Q(h, n), kt(u.node, n.doc) && (h = At(l, n, c) + n.lineBreak + h), p.push({
|
|
1437
1437
|
from: g,
|
|
1438
1438
|
to: i,
|
|
1439
|
-
insert:
|
|
1439
|
+
insert: n.lineBreak + h
|
|
1440
1440
|
}), {
|
|
1441
|
-
range:
|
|
1441
|
+
range: t.cursor(g + h.length + 1),
|
|
1442
1442
|
changes: p
|
|
1443
1443
|
};
|
|
1444
1444
|
});
|
|
1445
|
-
return !s && (n
|
|
1445
|
+
return !s && (i(n.update(c, {
|
|
1446
1446
|
scrollIntoView: !0,
|
|
1447
1447
|
userEvent: "input"
|
|
1448
1448
|
})), !0);
|
|
1449
|
-
}
|
|
1450
|
-
function
|
|
1449
|
+
}, Dt = /*@__PURE__*/ Et();
|
|
1450
|
+
function Ot(e) {
|
|
1451
1451
|
return e.name == "QuoteMark" || e.name == "ListMark";
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function kt(e, t) {
|
|
1454
1454
|
if (e.name != "OrderedList" && e.name != "BulletList") return !1;
|
|
1455
1455
|
let n = e.firstChild, r = e.getChild("ListItem", "ListItem");
|
|
1456
1456
|
if (!r) return !1;
|
|
1457
1457
|
let i = t.lineAt(n.to), a = t.lineAt(r.from), o = /^[\s>]*$/.test(i.text);
|
|
1458
1458
|
return i.number + +!o < a.number;
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function At(e, t, n) {
|
|
1461
1461
|
let r = "";
|
|
1462
1462
|
for (let t = 0, i = e.length - 2; t <= i; t++) r += e[t].blank(t < i ? f(n.text, 4, e[t + 1].from) - r.length : null, t < i);
|
|
1463
1463
|
return Q(r, t);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function jt(e, t) {
|
|
1466
1466
|
let n = e.resolveInner(t, -1), r = t;
|
|
1467
|
-
|
|
1468
|
-
for (let e; e = n.childBefore(r);) if (
|
|
1467
|
+
Ot(n) && (r = n.from, n = n.parent);
|
|
1468
|
+
for (let e; e = n.childBefore(r);) if (Ot(e)) r = e.from;
|
|
1469
1469
|
else if (e.name == "OrderedList" || e.name == "BulletList") n = e.lastChild, r = n.to;
|
|
1470
1470
|
else break;
|
|
1471
1471
|
return n;
|
|
1472
1472
|
}
|
|
1473
|
-
var
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
let r = t.from + n.from;
|
|
1494
|
-
if (n.item && n.node.from < n.item.from && /\S/.test(t.text.slice(n.from, n.to))) {
|
|
1495
|
-
let i = n.blank(f(t.text, 4, n.to) - f(t.text, 4, n.from));
|
|
1496
|
-
return r == t.from && (i = Q(i, e)), {
|
|
1497
|
-
range: a.cursor(r + i.length),
|
|
1498
|
-
changes: {
|
|
1499
|
-
from: r,
|
|
1500
|
-
to: t.from + n.to,
|
|
1501
|
-
insert: i
|
|
1502
|
-
}
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
if (r < i) return {
|
|
1506
|
-
range: a.cursor(r),
|
|
1473
|
+
var Mt = ({ state: e, dispatch: n }) => {
|
|
1474
|
+
let i = r(e), a = null, o = e.changeByRange((n) => {
|
|
1475
|
+
let r = n.from, { doc: o } = e;
|
|
1476
|
+
if (n.empty && Y.isActiveAt(e, n.from)) {
|
|
1477
|
+
let n = o.lineAt(r), a = wt(jt(i, r), o);
|
|
1478
|
+
if (a.length) {
|
|
1479
|
+
let i = a[a.length - 1], o = i.to - i.spaceAfter.length + +!!i.spaceAfter;
|
|
1480
|
+
if (r - n.from > o && !/\S/.test(n.text.slice(o, r - n.from))) return {
|
|
1481
|
+
range: t.cursor(n.from + o),
|
|
1482
|
+
changes: {
|
|
1483
|
+
from: n.from + o,
|
|
1484
|
+
to: r
|
|
1485
|
+
}
|
|
1486
|
+
};
|
|
1487
|
+
if (r - n.from == o && (i.item && n.from <= i.item.from || /^[\s>]*$/.test(n.text.slice(0, i.to)))) {
|
|
1488
|
+
let a = n.from + i.from;
|
|
1489
|
+
if (i.item && i.node.from < i.item.from && /\S/.test(n.text.slice(i.from, i.to))) {
|
|
1490
|
+
let r = i.blank(f(n.text, 4, i.to) - f(n.text, 4, i.from));
|
|
1491
|
+
return a == n.from && (r = Q(r, e)), {
|
|
1492
|
+
range: t.cursor(a + r.length),
|
|
1507
1493
|
changes: {
|
|
1508
|
-
from:
|
|
1509
|
-
to: i
|
|
1494
|
+
from: a,
|
|
1495
|
+
to: n.from + i.to,
|
|
1496
|
+
insert: r
|
|
1510
1497
|
}
|
|
1511
1498
|
};
|
|
1512
1499
|
}
|
|
1500
|
+
if (a < r) return {
|
|
1501
|
+
range: t.cursor(a),
|
|
1502
|
+
changes: {
|
|
1503
|
+
from: a,
|
|
1504
|
+
to: r
|
|
1505
|
+
}
|
|
1506
|
+
};
|
|
1513
1507
|
}
|
|
1514
1508
|
}
|
|
1515
|
-
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1509
|
+
}
|
|
1510
|
+
return a = { range: n };
|
|
1511
|
+
});
|
|
1512
|
+
return !a && (n(e.update(o, {
|
|
1513
|
+
scrollIntoView: !0,
|
|
1514
|
+
userEvent: "delete"
|
|
1515
|
+
})), !0);
|
|
1516
|
+
}, Nt = [{
|
|
1517
|
+
key: "Enter",
|
|
1518
|
+
run: Dt
|
|
1519
|
+
}, {
|
|
1520
|
+
key: "Backspace",
|
|
1521
|
+
run: Mt
|
|
1522
|
+
}], Pt = /*@__PURE__*/ se({ matchClosingTags: !1 });
|
|
1523
|
+
function Ft(e = {}) {
|
|
1524
|
+
let { codeLanguages: t, defaultCodeLanguage: r, addKeymap: i = !0, base: { parser: a } = St, completeHTMLTags: o = !0, pasteURLAsLink: s = !0, htmlTagLanguage: c = Pt } = e;
|
|
1525
|
+
if (!(a instanceof Ae)) throw RangeError("Base parser provided to `markdown` should be a Markdown parser");
|
|
1526
|
+
let l = e.extensions ? [e.extensions] : [], u = [c.support, xt], d;
|
|
1527
|
+
s && u.push(zt), r instanceof m ? (u.push(r.support), d = r.language) : r && (d = r);
|
|
1528
|
+
let f = t || d ? Ct(t, d) : void 0;
|
|
1529
|
+
l.push(qe({
|
|
1530
|
+
codeParser: f,
|
|
1531
1531
|
htmlParser: c.language.parser
|
|
1532
|
-
})),
|
|
1533
|
-
let h = J(
|
|
1534
|
-
return
|
|
1532
|
+
})), i && u.push(p.high(n.of(Nt)));
|
|
1533
|
+
let h = J(a.configure(l));
|
|
1534
|
+
return o && u.push(h.data.of({ autocomplete: It })), new m(h, u);
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
let { state: t, pos: n } = e,
|
|
1538
|
-
if (!
|
|
1539
|
-
let a =
|
|
1536
|
+
function It(e) {
|
|
1537
|
+
let { state: t, pos: n } = e, i = /<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n - 25, n));
|
|
1538
|
+
if (!i) return null;
|
|
1539
|
+
let a = r(t).resolveInner(n, -1);
|
|
1540
1540
|
for (; a && !a.type.isTop;) {
|
|
1541
1541
|
if (a.name == "CodeBlock" || a.name == "FencedCode" || a.name == "ProcessingInstructionBlock" || a.name == "CommentBlock" || a.name == "Link" || a.name == "Image") return null;
|
|
1542
1542
|
a = a.parent;
|
|
1543
1543
|
}
|
|
1544
1544
|
return {
|
|
1545
|
-
from: n -
|
|
1545
|
+
from: n - i[0].length,
|
|
1546
1546
|
to: n,
|
|
1547
|
-
options:
|
|
1547
|
+
options: Lt(),
|
|
1548
1548
|
validFor: /^<[:\-\.\w\u00b7-\uffff]*$/
|
|
1549
1549
|
};
|
|
1550
1550
|
}
|
|
1551
1551
|
var $ = null;
|
|
1552
|
-
function
|
|
1552
|
+
function Lt() {
|
|
1553
1553
|
if ($) return $;
|
|
1554
|
-
let e = ce(new te(
|
|
1554
|
+
let e = ce(new te(c.create({ extensions: Pt }), 0, !0));
|
|
1555
1555
|
return $ = e ? e.options : [];
|
|
1556
1556
|
}
|
|
1557
|
-
var
|
|
1557
|
+
var Rt = /code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i, zt = /*@__PURE__*/ l.domEventHandlers({ paste: (e, t) => {
|
|
1558
1558
|
let { main: n } = t.state.selection;
|
|
1559
1559
|
if (n.empty) return !1;
|
|
1560
|
-
let
|
|
1561
|
-
if (!
|
|
1562
|
-
let a =
|
|
1560
|
+
let i = e.clipboardData?.getData("text/plain");
|
|
1561
|
+
if (!i || !/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(i) || (/^www\./.test(i) && (i = "https://" + i), !Y.isActiveAt(t.state, n.from, 1))) return !1;
|
|
1562
|
+
let a = r(t.state), o = !1;
|
|
1563
1563
|
return a.iterate({
|
|
1564
1564
|
from: n.from,
|
|
1565
1565
|
to: n.to,
|
|
1566
1566
|
enter: (e) => {
|
|
1567
|
-
(e.from > n.from ||
|
|
1567
|
+
(e.from > n.from || Rt.test(e.name)) && (o = !0);
|
|
1568
1568
|
},
|
|
1569
1569
|
leave: (e) => {
|
|
1570
1570
|
e.to < n.to && (o = !0);
|
|
@@ -1575,10 +1575,10 @@ var It = /code|horizontalrule|html|link|comment|processing|escape|entity|image|m
|
|
|
1575
1575
|
insert: "["
|
|
1576
1576
|
}, {
|
|
1577
1577
|
from: n.to,
|
|
1578
|
-
insert: `](${
|
|
1578
|
+
insert: `](${i})`
|
|
1579
1579
|
}],
|
|
1580
1580
|
userEvent: "input.paste",
|
|
1581
1581
|
scrollIntoView: !0
|
|
1582
1582
|
}), !0);
|
|
1583
1583
|
} });
|
|
1584
|
-
export {
|
|
1584
|
+
export { ut as a, Ft as i, ht as n, Et as r, Mt as t };
|