@nldd/design-system 0.20.0 → 0.21.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/custom-elements.json +204 -8
- package/dist/cdn/autoloader.js +181 -0
- package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
- package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
- package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
- package/dist/cdn/chunks/avatar-group-rknt4FBO.js +338 -0
- package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
- package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
- package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
- package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
- package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
- package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
- package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
- package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
- package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
- package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
- package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
- package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
- package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
- package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
- package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
- package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
- package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
- package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
- package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
- package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
- package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
- package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
- package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
- package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
- package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
- package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
- package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
- package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
- package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
- package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
- package/dist/cdn/chunks/combo-box-DyBQSaQl.js +512 -0
- package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
- package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
- package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
- package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
- package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
- package/dist/cdn/chunks/date-field-Clti_wKN.js +654 -0
- package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
- package/dist/cdn/chunks/date-picker-2TCQLd5D.js +993 -0
- package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
- package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
- package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
- package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
- package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
- package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
- package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
- package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
- package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
- package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
- package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
- package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
- package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
- package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
- package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
- package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
- package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
- package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
- package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
- package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
- package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
- package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
- package/dist/cdn/chunks/document-tab-bar-CUc4WWY3.js +973 -0
- package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
- package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
- package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
- package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
- package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
- package/dist/cdn/chunks/file-field-Bff6_1pp.js +1484 -0
- package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
- package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
- package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
- package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
- package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
- package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
- package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
- package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
- package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
- package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
- package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
- package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
- package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
- package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
- package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
- package/dist/cdn/chunks/identity-Cg1l0HhB.js +187 -0
- package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
- package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
- package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
- package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
- package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
- package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
- package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
- package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
- package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
- package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
- package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
- package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
- package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
- package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
- package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
- package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
- package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
- package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
- package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
- package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
- package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
- package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
- package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
- package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
- package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
- package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
- package/dist/cdn/chunks/menu-BOu_pD1Q.js +719 -0
- package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
- package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.js +365 -0
- package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
- package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
- package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
- package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
- package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
- package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
- package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
- package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
- package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
- package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
- package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
- package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
- package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
- package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
- package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
- package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
- package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
- package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
- package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
- package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
- package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
- package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
- package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
- package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
- package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
- package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
- package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
- package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
- package/dist/cdn/chunks/popover-C-CVVtfl.js +334 -0
- package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
- package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
- package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
- package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
- package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
- package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
- package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
- package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
- package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
- package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
- package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
- package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
- package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
- package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
- package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
- package/dist/cdn/chunks/return-focus-Xmagtk6r.js +52 -0
- package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
- package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
- package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
- package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
- package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
- package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
- package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
- package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
- package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
- package/dist/cdn/chunks/sheet-BdVCqm2H.js +340 -0
- package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
- package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
- package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
- package/dist/cdn/chunks/sidebar-section-DP4jnS7g.js +353 -0
- package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
- package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
- package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
- package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
- package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
- package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
- package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
- package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
- package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
- package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
- package/dist/cdn/chunks/split-button-BeXnOUTt.js +268 -0
- package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
- package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
- package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
- package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
- package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
- package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
- package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
- package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
- package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
- package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
- package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
- package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
- package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
- package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
- package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
- package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
- package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
- package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
- package/dist/cdn/chunks/tab-bar-DmslEoPD.js +697 -0
- package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
- package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
- package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
- package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
- package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
- package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
- package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
- package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
- package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
- package/dist/cdn/chunks/time-field-Cj5WojfO.js +597 -0
- package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
- package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
- package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
- package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
- package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
- package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
- package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
- package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
- package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
- package/dist/cdn/chunks/token-field-hvDB3l6O.js +664 -0
- package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
- package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
- package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
- package/dist/cdn/chunks/toolbar-iNd1VmuG.js +408 -0
- package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
- package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
- package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
- package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
- package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
- package/dist/cdn/chunks/top-navigation-bar-D1hjWIF3.js +925 -0
- package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
- package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
- package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
- package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
- package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
- package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
- package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
- package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
- package/dist/cdn/chunks/window-t5iFkMLY.js +227 -0
- package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
- package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
- package/dist/components/actions/menu/menu-item.d.ts +6 -2
- package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
- package/dist/components/actions/menu/menu-item.js +12 -1
- package/dist/components/actions/menu/menu-item.js.map +1 -1
- package/dist/components/actions/menu/menu.js +1 -1
- package/dist/components/actions/menu/menu.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +2 -1
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
- package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.js +67 -11
- package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +15 -2
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +38 -3
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.js +1 -1
- package/dist/components/layout/container/container.template.js +1 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
- package/dist/nldd.min.js +298 -298
- package/dist/types/react.d.ts +3323 -0
- package/dist/types/vue.d.ts +11 -3
- package/dist/utilities/autoloader.d.ts +33 -0
- package/dist/utilities/autoloader.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.d.ts +3 -0
- package/dist/utilities/autoloader.generated.d.ts.map +1 -0
- package/dist/utilities/autoloader.generated.js +141 -0
- package/dist/utilities/autoloader.generated.js.map +1 -0
- package/dist/utilities/autoloader.js +94 -0
- package/dist/utilities/autoloader.js.map +1 -0
- package/dist/utilities/dev-checks.d.ts +9 -0
- package/dist/utilities/dev-checks.d.ts.map +1 -1
- package/dist/utilities/dev-checks.js +45 -3
- package/dist/utilities/dev-checks.js.map +1 -1
- package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
- package/dist/utilities/dev-rules.generated.js +12 -2
- package/dist/utilities/dev-rules.generated.js.map +1 -1
- package/dist/utilities/loading-tags.d.ts +7 -0
- package/dist/utilities/loading-tags.d.ts.map +1 -0
- package/dist/utilities/loading-tags.js +7 -0
- package/dist/utilities/loading-tags.js.map +1 -0
- package/dist/utilities/owner-form.d.ts +3 -3
- package/dist/utilities/owner-form.d.ts.map +1 -1
- package/dist/utilities/owner-form.js +6 -3
- package/dist/utilities/owner-form.js.map +1 -1
- package/lint/data.generated.json +1 -1
- package/package.json +50 -11
- package/dist/components/breakpoints-DtL62nLI.js +0 -45
- package/dist/components/components.js +0 -68243
- package/dist/components/decorate-DD7uUxHb.js +0 -51
- package/dist/components/defer-focus-dzorHsCQ.js +0 -176
- package/dist/components/dev-checks-CLB9G43h.js +0 -2711
- package/dist/components/dist-245LaK9m.js +0 -1479
- package/dist/components/dist-BFZM0YsR.js +0 -15772
- package/dist/components/dist-BNkeFjc3.js +0 -1180
- package/dist/components/dist-CSC1dG3L.js +0 -365
- package/dist/components/dist-CeMOOqgP.js +0 -1509
- package/dist/components/dist-DFjwTlJV.js +0 -624
- package/dist/components/dist-DHhnz3Gv.js +0 -381
- package/dist/components/dist-PeUX4vPq.js +0 -2857
- package/dist/components/dist-m70B83qb.js +0 -463
- package/dist/components/element-state-BnarBv0M.js +0 -42
- package/dist/components/gherkin-DzYbEwDO.js +0 -107
- package/dist/components/icon-button-8gvQCwCW.js +0 -2305
- package/dist/components/input-modality-D_CY185R.js +0 -48
- package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
- package/dist/components/nl.generated-DzZkOgnP.js +0 -64
- package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
- package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
- package/dist/components/shell-Dh5IwHd-.js +0 -222
- package/dist/components/toml-D0Pix_8Q.js +0 -58
- package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
|
@@ -1,1479 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
|
-
import { A as syntaxTree, C as indentNodeProp, N as EditorView, n as ExternalTokenizer, p as bracketMatchingHandle, r as LRParser, s as LRLanguage, t as ContextTracker, tt as EditorSelection, u as LanguageSupport, y as foldNodeProp } from "./dist-BFZM0YsR.js";
|
|
3
|
-
import { a as tags, h as parseMixed, r as styleTags } from "./dist-PeUX4vPq.js";
|
|
4
|
-
import { n as cssLanguage, t as css } from "./dist-BNkeFjc3.js";
|
|
5
|
-
import { a as tsxLanguage, i as jsxLanguage, n as javascript, o as typescriptLanguage, r as javascriptLanguage } from "./dist-4g23YHP0.js";
|
|
6
|
-
// node_modules/@lezer/html/dist/index.js
|
|
7
|
-
var scriptText = 55;
|
|
8
|
-
var StartCloseScriptTag = 1;
|
|
9
|
-
var styleText = 56;
|
|
10
|
-
var StartCloseStyleTag = 2;
|
|
11
|
-
var textareaText = 57;
|
|
12
|
-
var StartCloseTextareaTag = 3;
|
|
13
|
-
var EndTag = 4;
|
|
14
|
-
var SelfClosingEndTag = 5;
|
|
15
|
-
var StartTag = 6;
|
|
16
|
-
var StartScriptTag = 7;
|
|
17
|
-
var StartStyleTag = 8;
|
|
18
|
-
var StartTextareaTag = 9;
|
|
19
|
-
var StartSelfClosingTag = 10;
|
|
20
|
-
var StartCloseTag = 11;
|
|
21
|
-
var NoMatchStartCloseTag = 12;
|
|
22
|
-
var MismatchedStartCloseTag = 13;
|
|
23
|
-
var missingCloseTag = 58;
|
|
24
|
-
var IncompleteTag = 14;
|
|
25
|
-
var IncompleteCloseTag = 15;
|
|
26
|
-
var commentContent$1 = 59;
|
|
27
|
-
var Element = 21;
|
|
28
|
-
var TagName = 23;
|
|
29
|
-
var Attribute = 24;
|
|
30
|
-
var AttributeName = 25;
|
|
31
|
-
var AttributeValue = 27;
|
|
32
|
-
var UnquotedAttributeValue = 28;
|
|
33
|
-
var ScriptText = 29;
|
|
34
|
-
var StyleText = 32;
|
|
35
|
-
var TextareaText = 35;
|
|
36
|
-
var OpenTag = 37;
|
|
37
|
-
var CloseTag = 38;
|
|
38
|
-
var Dialect_noMatch = 0;
|
|
39
|
-
var Dialect_selfClosing = 1;
|
|
40
|
-
var selfClosers$1 = {
|
|
41
|
-
area: true,
|
|
42
|
-
base: true,
|
|
43
|
-
br: true,
|
|
44
|
-
col: true,
|
|
45
|
-
command: true,
|
|
46
|
-
embed: true,
|
|
47
|
-
frame: true,
|
|
48
|
-
hr: true,
|
|
49
|
-
img: true,
|
|
50
|
-
input: true,
|
|
51
|
-
keygen: true,
|
|
52
|
-
link: true,
|
|
53
|
-
meta: true,
|
|
54
|
-
param: true,
|
|
55
|
-
source: true,
|
|
56
|
-
track: true,
|
|
57
|
-
wbr: true,
|
|
58
|
-
menuitem: true
|
|
59
|
-
};
|
|
60
|
-
var implicitlyClosed = {
|
|
61
|
-
dd: true,
|
|
62
|
-
li: true,
|
|
63
|
-
optgroup: true,
|
|
64
|
-
option: true,
|
|
65
|
-
p: true,
|
|
66
|
-
rp: true,
|
|
67
|
-
rt: true,
|
|
68
|
-
tbody: true,
|
|
69
|
-
td: true,
|
|
70
|
-
tfoot: true,
|
|
71
|
-
th: true,
|
|
72
|
-
tr: true
|
|
73
|
-
};
|
|
74
|
-
var closeOnOpen = {
|
|
75
|
-
dd: {
|
|
76
|
-
dd: true,
|
|
77
|
-
dt: true
|
|
78
|
-
},
|
|
79
|
-
dt: {
|
|
80
|
-
dd: true,
|
|
81
|
-
dt: true
|
|
82
|
-
},
|
|
83
|
-
li: { li: true },
|
|
84
|
-
option: {
|
|
85
|
-
option: true,
|
|
86
|
-
optgroup: true
|
|
87
|
-
},
|
|
88
|
-
optgroup: { optgroup: true },
|
|
89
|
-
p: {
|
|
90
|
-
address: true,
|
|
91
|
-
article: true,
|
|
92
|
-
aside: true,
|
|
93
|
-
blockquote: true,
|
|
94
|
-
dir: true,
|
|
95
|
-
div: true,
|
|
96
|
-
dl: true,
|
|
97
|
-
fieldset: true,
|
|
98
|
-
footer: true,
|
|
99
|
-
form: true,
|
|
100
|
-
h1: true,
|
|
101
|
-
h2: true,
|
|
102
|
-
h3: true,
|
|
103
|
-
h4: true,
|
|
104
|
-
h5: true,
|
|
105
|
-
h6: true,
|
|
106
|
-
header: true,
|
|
107
|
-
hgroup: true,
|
|
108
|
-
hr: true,
|
|
109
|
-
menu: true,
|
|
110
|
-
nav: true,
|
|
111
|
-
ol: true,
|
|
112
|
-
p: true,
|
|
113
|
-
pre: true,
|
|
114
|
-
section: true,
|
|
115
|
-
table: true,
|
|
116
|
-
ul: true
|
|
117
|
-
},
|
|
118
|
-
rp: {
|
|
119
|
-
rp: true,
|
|
120
|
-
rt: true
|
|
121
|
-
},
|
|
122
|
-
rt: {
|
|
123
|
-
rp: true,
|
|
124
|
-
rt: true
|
|
125
|
-
},
|
|
126
|
-
tbody: {
|
|
127
|
-
tbody: true,
|
|
128
|
-
tfoot: true
|
|
129
|
-
},
|
|
130
|
-
td: {
|
|
131
|
-
td: true,
|
|
132
|
-
th: true
|
|
133
|
-
},
|
|
134
|
-
tfoot: { tbody: true },
|
|
135
|
-
th: {
|
|
136
|
-
td: true,
|
|
137
|
-
th: true
|
|
138
|
-
},
|
|
139
|
-
thead: {
|
|
140
|
-
tbody: true,
|
|
141
|
-
tfoot: true
|
|
142
|
-
},
|
|
143
|
-
tr: { tr: true }
|
|
144
|
-
};
|
|
145
|
-
function nameChar(ch) {
|
|
146
|
-
return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161;
|
|
147
|
-
}
|
|
148
|
-
var cachedName = null;
|
|
149
|
-
var cachedInput = null;
|
|
150
|
-
var cachedPos = 0;
|
|
151
|
-
function tagNameAfter(input, offset) {
|
|
152
|
-
let pos = input.pos + offset;
|
|
153
|
-
if (cachedPos == pos && cachedInput == input) return cachedName;
|
|
154
|
-
let next = input.peek(offset), name = "";
|
|
155
|
-
for (;;) {
|
|
156
|
-
if (!nameChar(next)) break;
|
|
157
|
-
name += String.fromCharCode(next);
|
|
158
|
-
next = input.peek(++offset);
|
|
159
|
-
}
|
|
160
|
-
cachedInput = input;
|
|
161
|
-
cachedPos = pos;
|
|
162
|
-
return cachedName = name ? name.toLowerCase() : next == question || next == bang ? void 0 : null;
|
|
163
|
-
}
|
|
164
|
-
var lessThan = 60;
|
|
165
|
-
var greaterThan = 62;
|
|
166
|
-
var slash = 47;
|
|
167
|
-
var question = 63;
|
|
168
|
-
var bang = 33;
|
|
169
|
-
var dash = 45;
|
|
170
|
-
function ElementContext(name, parent) {
|
|
171
|
-
this.name = name;
|
|
172
|
-
this.parent = parent;
|
|
173
|
-
}
|
|
174
|
-
var startTagTerms = [
|
|
175
|
-
StartTag,
|
|
176
|
-
StartSelfClosingTag,
|
|
177
|
-
StartScriptTag,
|
|
178
|
-
StartStyleTag,
|
|
179
|
-
StartTextareaTag
|
|
180
|
-
];
|
|
181
|
-
var elementContext = new ContextTracker({
|
|
182
|
-
start: null,
|
|
183
|
-
shift(context, term, stack, input) {
|
|
184
|
-
return startTagTerms.indexOf(term) > -1 ? new ElementContext(tagNameAfter(input, 1) || "", context) : context;
|
|
185
|
-
},
|
|
186
|
-
reduce(context, term) {
|
|
187
|
-
return term == Element && context ? context.parent : context;
|
|
188
|
-
},
|
|
189
|
-
reuse(context, node, stack, input) {
|
|
190
|
-
let type = node.type.id;
|
|
191
|
-
return type == StartTag || type == OpenTag ? new ElementContext(tagNameAfter(input, 1) || "", context) : context;
|
|
192
|
-
},
|
|
193
|
-
strict: false
|
|
194
|
-
});
|
|
195
|
-
var tagStart = new ExternalTokenizer((input, stack) => {
|
|
196
|
-
if (input.next != lessThan) {
|
|
197
|
-
if (input.next < 0 && stack.context) input.acceptToken(missingCloseTag);
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
input.advance();
|
|
201
|
-
let close = input.next == slash;
|
|
202
|
-
if (close) input.advance();
|
|
203
|
-
let name = tagNameAfter(input, 0);
|
|
204
|
-
if (name === void 0) return;
|
|
205
|
-
if (!name) return input.acceptToken(close ? IncompleteCloseTag : IncompleteTag);
|
|
206
|
-
let parent = stack.context ? stack.context.name : null;
|
|
207
|
-
if (close) {
|
|
208
|
-
if (name == parent) return input.acceptToken(StartCloseTag);
|
|
209
|
-
if (parent && implicitlyClosed[parent]) return input.acceptToken(missingCloseTag, -2);
|
|
210
|
-
if (stack.dialectEnabled(Dialect_noMatch)) return input.acceptToken(NoMatchStartCloseTag);
|
|
211
|
-
for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return;
|
|
212
|
-
input.acceptToken(MismatchedStartCloseTag);
|
|
213
|
-
} else {
|
|
214
|
-
if (name == "script") return input.acceptToken(StartScriptTag);
|
|
215
|
-
if (name == "style") return input.acceptToken(StartStyleTag);
|
|
216
|
-
if (name == "textarea") return input.acceptToken(StartTextareaTag);
|
|
217
|
-
if (selfClosers$1.hasOwnProperty(name)) return input.acceptToken(StartSelfClosingTag);
|
|
218
|
-
if (parent && closeOnOpen[parent] && closeOnOpen[parent][name]) input.acceptToken(missingCloseTag, -1);
|
|
219
|
-
else input.acceptToken(StartTag);
|
|
220
|
-
}
|
|
221
|
-
}, { contextual: true });
|
|
222
|
-
var commentContent = new ExternalTokenizer((input) => {
|
|
223
|
-
for (let dashes = 0, i = 0;; i++) {
|
|
224
|
-
if (input.next < 0) {
|
|
225
|
-
if (i) input.acceptToken(commentContent$1);
|
|
226
|
-
break;
|
|
227
|
-
}
|
|
228
|
-
if (input.next == dash) dashes++;
|
|
229
|
-
else if (input.next == greaterThan && dashes >= 2) {
|
|
230
|
-
if (i >= 3) input.acceptToken(commentContent$1, -2);
|
|
231
|
-
break;
|
|
232
|
-
} else dashes = 0;
|
|
233
|
-
input.advance();
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
function inForeignElement(context) {
|
|
237
|
-
for (; context; context = context.parent) if (context.name == "svg" || context.name == "math") return true;
|
|
238
|
-
return false;
|
|
239
|
-
}
|
|
240
|
-
var endTag = new ExternalTokenizer((input, stack) => {
|
|
241
|
-
if (input.next == slash && input.peek(1) == greaterThan) {
|
|
242
|
-
let selfClosing = stack.dialectEnabled(Dialect_selfClosing) || inForeignElement(stack.context);
|
|
243
|
-
input.acceptToken(selfClosing ? SelfClosingEndTag : EndTag, 2);
|
|
244
|
-
} else if (input.next == greaterThan) input.acceptToken(EndTag, 1);
|
|
245
|
-
});
|
|
246
|
-
function contentTokenizer(tag, textToken, endToken) {
|
|
247
|
-
let lastState = 2 + tag.length;
|
|
248
|
-
return new ExternalTokenizer((input) => {
|
|
249
|
-
for (let state = 0, matchedLen = 0, i = 0;; i++) {
|
|
250
|
-
if (input.next < 0) {
|
|
251
|
-
if (i) input.acceptToken(textToken);
|
|
252
|
-
break;
|
|
253
|
-
}
|
|
254
|
-
if (state == 0 && input.next == lessThan || state == 1 && input.next == slash || state >= 2 && state < lastState && input.next == tag.charCodeAt(state - 2)) {
|
|
255
|
-
state++;
|
|
256
|
-
matchedLen++;
|
|
257
|
-
} else if (state == lastState && input.next == greaterThan) {
|
|
258
|
-
if (i > matchedLen) input.acceptToken(textToken, -matchedLen);
|
|
259
|
-
else input.acceptToken(endToken, -(matchedLen - 2));
|
|
260
|
-
break;
|
|
261
|
-
} else if ((input.next == 10 || input.next == 13) && i) {
|
|
262
|
-
input.acceptToken(textToken, 1);
|
|
263
|
-
break;
|
|
264
|
-
} else state = matchedLen = 0;
|
|
265
|
-
input.advance();
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
var scriptTokens = contentTokenizer("script", scriptText, StartCloseScriptTag);
|
|
270
|
-
var styleTokens = contentTokenizer("style", styleText, StartCloseStyleTag);
|
|
271
|
-
var textareaTokens = contentTokenizer("textarea", textareaText, StartCloseTextareaTag);
|
|
272
|
-
var htmlHighlighting = styleTags({
|
|
273
|
-
"Text RawText IncompleteTag IncompleteCloseTag": tags.content,
|
|
274
|
-
"StartTag StartCloseTag SelfClosingEndTag EndTag": tags.angleBracket,
|
|
275
|
-
TagName: tags.tagName,
|
|
276
|
-
"MismatchedCloseTag/TagName": [tags.tagName, tags.invalid],
|
|
277
|
-
AttributeName: tags.attributeName,
|
|
278
|
-
"AttributeValue UnquotedAttributeValue": tags.attributeValue,
|
|
279
|
-
Is: tags.definitionOperator,
|
|
280
|
-
"EntityReference CharacterReference": tags.character,
|
|
281
|
-
Comment: tags.blockComment,
|
|
282
|
-
ProcessingInst: tags.processingInstruction,
|
|
283
|
-
DoctypeDecl: tags.documentMeta
|
|
284
|
-
});
|
|
285
|
-
var parser = LRParser.deserialize({
|
|
286
|
-
version: 14,
|
|
287
|
-
states: ",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1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pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",
|
|
289
|
-
goto: "%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
|
|
290
|
-
nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
|
|
291
|
-
maxTerm: 68,
|
|
292
|
-
context: elementContext,
|
|
293
|
-
nodeProps: [
|
|
294
|
-
[
|
|
295
|
-
"closedBy",
|
|
296
|
-
-10,
|
|
297
|
-
1,
|
|
298
|
-
2,
|
|
299
|
-
3,
|
|
300
|
-
7,
|
|
301
|
-
8,
|
|
302
|
-
9,
|
|
303
|
-
10,
|
|
304
|
-
11,
|
|
305
|
-
12,
|
|
306
|
-
13,
|
|
307
|
-
"EndTag",
|
|
308
|
-
6,
|
|
309
|
-
"EndTag SelfClosingEndTag",
|
|
310
|
-
-4,
|
|
311
|
-
22,
|
|
312
|
-
31,
|
|
313
|
-
34,
|
|
314
|
-
37,
|
|
315
|
-
"CloseTag"
|
|
316
|
-
],
|
|
317
|
-
[
|
|
318
|
-
"openedBy",
|
|
319
|
-
4,
|
|
320
|
-
"StartTag StartCloseTag",
|
|
321
|
-
5,
|
|
322
|
-
"StartTag",
|
|
323
|
-
-4,
|
|
324
|
-
30,
|
|
325
|
-
33,
|
|
326
|
-
36,
|
|
327
|
-
38,
|
|
328
|
-
"OpenTag"
|
|
329
|
-
],
|
|
330
|
-
[
|
|
331
|
-
"group",
|
|
332
|
-
-10,
|
|
333
|
-
14,
|
|
334
|
-
15,
|
|
335
|
-
18,
|
|
336
|
-
19,
|
|
337
|
-
20,
|
|
338
|
-
21,
|
|
339
|
-
40,
|
|
340
|
-
41,
|
|
341
|
-
42,
|
|
342
|
-
43,
|
|
343
|
-
"Entity",
|
|
344
|
-
17,
|
|
345
|
-
"Entity TextContent",
|
|
346
|
-
-3,
|
|
347
|
-
29,
|
|
348
|
-
32,
|
|
349
|
-
35,
|
|
350
|
-
"TextContent Entity"
|
|
351
|
-
],
|
|
352
|
-
[
|
|
353
|
-
"isolate",
|
|
354
|
-
-11,
|
|
355
|
-
22,
|
|
356
|
-
30,
|
|
357
|
-
31,
|
|
358
|
-
33,
|
|
359
|
-
34,
|
|
360
|
-
36,
|
|
361
|
-
37,
|
|
362
|
-
38,
|
|
363
|
-
39,
|
|
364
|
-
42,
|
|
365
|
-
43,
|
|
366
|
-
"ltr",
|
|
367
|
-
-3,
|
|
368
|
-
27,
|
|
369
|
-
28,
|
|
370
|
-
40,
|
|
371
|
-
""
|
|
372
|
-
]
|
|
373
|
-
],
|
|
374
|
-
propSources: [htmlHighlighting],
|
|
375
|
-
skippedNodes: [0],
|
|
376
|
-
repeatNodeCount: 9,
|
|
377
|
-
tokenData: "!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!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!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
|
|
378
|
-
tokenizers: [
|
|
379
|
-
scriptTokens,
|
|
380
|
-
styleTokens,
|
|
381
|
-
textareaTokens,
|
|
382
|
-
endTag,
|
|
383
|
-
tagStart,
|
|
384
|
-
commentContent,
|
|
385
|
-
0,
|
|
386
|
-
1,
|
|
387
|
-
2,
|
|
388
|
-
3,
|
|
389
|
-
4,
|
|
390
|
-
5
|
|
391
|
-
],
|
|
392
|
-
topRules: { "Document": [0, 16] },
|
|
393
|
-
dialects: {
|
|
394
|
-
noMatch: 0,
|
|
395
|
-
selfClosing: 515
|
|
396
|
-
},
|
|
397
|
-
tokenPrec: 517
|
|
398
|
-
});
|
|
399
|
-
function getAttrs(openTag, input) {
|
|
400
|
-
let attrs = Object.create(null);
|
|
401
|
-
for (let att of openTag.getChildren(Attribute)) {
|
|
402
|
-
let name = att.getChild(AttributeName), value = att.getChild(AttributeValue) || att.getChild(UnquotedAttributeValue);
|
|
403
|
-
if (name) attrs[input.read(name.from, name.to)] = !value ? "" : value.type.id == AttributeValue ? input.read(value.from + 1, value.to - 1) : input.read(value.from, value.to);
|
|
404
|
-
}
|
|
405
|
-
return attrs;
|
|
406
|
-
}
|
|
407
|
-
function findTagName(openTag, input) {
|
|
408
|
-
let tagNameNode = openTag.getChild(TagName);
|
|
409
|
-
return tagNameNode ? input.read(tagNameNode.from, tagNameNode.to) : " ";
|
|
410
|
-
}
|
|
411
|
-
function maybeNest(node, input, tags) {
|
|
412
|
-
let attrs;
|
|
413
|
-
for (let tag of tags) if (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(node.node.parent.firstChild, input)))) return {
|
|
414
|
-
parser: tag.parser,
|
|
415
|
-
bracketed: true
|
|
416
|
-
};
|
|
417
|
-
return null;
|
|
418
|
-
}
|
|
419
|
-
function configureNesting(tags = [], attributes = []) {
|
|
420
|
-
let script = [], style = [], textarea = [], other = [];
|
|
421
|
-
for (let tag of tags) (tag.tag == "script" ? script : tag.tag == "style" ? style : tag.tag == "textarea" ? textarea : other).push(tag);
|
|
422
|
-
let attrs = attributes.length ? Object.create(null) : null;
|
|
423
|
-
for (let attr of attributes) (attrs[attr.name] || (attrs[attr.name] = [])).push(attr);
|
|
424
|
-
return parseMixed((node, input) => {
|
|
425
|
-
let id = node.type.id;
|
|
426
|
-
if (id == ScriptText) return maybeNest(node, input, script);
|
|
427
|
-
if (id == StyleText) return maybeNest(node, input, style);
|
|
428
|
-
if (id == TextareaText) return maybeNest(node, input, textarea);
|
|
429
|
-
if (id == Element && other.length) {
|
|
430
|
-
let n = node.node, open = n.firstChild, tagName = open && findTagName(open, input), attrs;
|
|
431
|
-
if (tagName) {
|
|
432
|
-
for (let tag of other) if (tag.tag == tagName && (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(open, input))))) {
|
|
433
|
-
let close = n.lastChild;
|
|
434
|
-
let to = close.type.id == CloseTag ? close.from : n.to;
|
|
435
|
-
if (to > open.to) return {
|
|
436
|
-
parser: tag.parser,
|
|
437
|
-
overlay: [{
|
|
438
|
-
from: open.to,
|
|
439
|
-
to
|
|
440
|
-
}]
|
|
441
|
-
};
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
if (attrs && id == Attribute) {
|
|
446
|
-
let n = node.node, nameNode;
|
|
447
|
-
if (nameNode = n.firstChild) {
|
|
448
|
-
let matches = attrs[input.read(nameNode.from, nameNode.to)];
|
|
449
|
-
if (matches) for (let attr of matches) {
|
|
450
|
-
if (attr.tagName && attr.tagName != findTagName(n.parent, input)) continue;
|
|
451
|
-
let value = n.lastChild;
|
|
452
|
-
if (value.type.id == AttributeValue) {
|
|
453
|
-
let from = value.from + 1;
|
|
454
|
-
let last = value.lastChild, to = value.to - (last && last.isError ? 0 : 1);
|
|
455
|
-
if (to > from) return {
|
|
456
|
-
parser: attr.parser,
|
|
457
|
-
overlay: [{
|
|
458
|
-
from,
|
|
459
|
-
to
|
|
460
|
-
}],
|
|
461
|
-
bracketed: true
|
|
462
|
-
};
|
|
463
|
-
} else if (value.type.id == UnquotedAttributeValue) return {
|
|
464
|
-
parser: attr.parser,
|
|
465
|
-
overlay: [{
|
|
466
|
-
from: value.from,
|
|
467
|
-
to: value.to
|
|
468
|
-
}]
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
return null;
|
|
474
|
-
});
|
|
475
|
-
}
|
|
476
|
-
// node_modules/@codemirror/lang-html/dist/index.js
|
|
477
|
-
var dist_exports = /* @__PURE__ */ __exportAll({
|
|
478
|
-
autoCloseTags: () => autoCloseTags,
|
|
479
|
-
html: () => html,
|
|
480
|
-
htmlCompletionSource: () => htmlCompletionSource,
|
|
481
|
-
htmlCompletionSourceWith: () => htmlCompletionSourceWith,
|
|
482
|
-
htmlLanguage: () => htmlLanguage
|
|
483
|
-
});
|
|
484
|
-
var Targets = [
|
|
485
|
-
"_blank",
|
|
486
|
-
"_self",
|
|
487
|
-
"_top",
|
|
488
|
-
"_parent"
|
|
489
|
-
];
|
|
490
|
-
var Charsets = [
|
|
491
|
-
"ascii",
|
|
492
|
-
"utf-8",
|
|
493
|
-
"utf-16",
|
|
494
|
-
"latin1",
|
|
495
|
-
"latin1"
|
|
496
|
-
];
|
|
497
|
-
var Methods = [
|
|
498
|
-
"get",
|
|
499
|
-
"post",
|
|
500
|
-
"put",
|
|
501
|
-
"delete"
|
|
502
|
-
];
|
|
503
|
-
var Encs = [
|
|
504
|
-
"application/x-www-form-urlencoded",
|
|
505
|
-
"multipart/form-data",
|
|
506
|
-
"text/plain"
|
|
507
|
-
];
|
|
508
|
-
var Bool = ["true", "false"];
|
|
509
|
-
var S = {};
|
|
510
|
-
var Tags = {
|
|
511
|
-
a: { attrs: {
|
|
512
|
-
href: null,
|
|
513
|
-
ping: null,
|
|
514
|
-
type: null,
|
|
515
|
-
media: null,
|
|
516
|
-
target: Targets,
|
|
517
|
-
hreflang: null
|
|
518
|
-
} },
|
|
519
|
-
abbr: S,
|
|
520
|
-
address: S,
|
|
521
|
-
area: { attrs: {
|
|
522
|
-
alt: null,
|
|
523
|
-
coords: null,
|
|
524
|
-
href: null,
|
|
525
|
-
target: null,
|
|
526
|
-
ping: null,
|
|
527
|
-
media: null,
|
|
528
|
-
hreflang: null,
|
|
529
|
-
type: null,
|
|
530
|
-
shape: [
|
|
531
|
-
"default",
|
|
532
|
-
"rect",
|
|
533
|
-
"circle",
|
|
534
|
-
"poly"
|
|
535
|
-
]
|
|
536
|
-
} },
|
|
537
|
-
article: S,
|
|
538
|
-
aside: S,
|
|
539
|
-
audio: { attrs: {
|
|
540
|
-
src: null,
|
|
541
|
-
mediagroup: null,
|
|
542
|
-
crossorigin: ["anonymous", "use-credentials"],
|
|
543
|
-
preload: [
|
|
544
|
-
"none",
|
|
545
|
-
"metadata",
|
|
546
|
-
"auto"
|
|
547
|
-
],
|
|
548
|
-
autoplay: ["autoplay"],
|
|
549
|
-
loop: ["loop"],
|
|
550
|
-
controls: ["controls"]
|
|
551
|
-
} },
|
|
552
|
-
b: S,
|
|
553
|
-
base: { attrs: {
|
|
554
|
-
href: null,
|
|
555
|
-
target: Targets
|
|
556
|
-
} },
|
|
557
|
-
bdi: S,
|
|
558
|
-
bdo: S,
|
|
559
|
-
blockquote: { attrs: { cite: null } },
|
|
560
|
-
body: S,
|
|
561
|
-
br: S,
|
|
562
|
-
button: { attrs: {
|
|
563
|
-
form: null,
|
|
564
|
-
formaction: null,
|
|
565
|
-
name: null,
|
|
566
|
-
value: null,
|
|
567
|
-
autofocus: ["autofocus"],
|
|
568
|
-
disabled: ["autofocus"],
|
|
569
|
-
formenctype: Encs,
|
|
570
|
-
formmethod: Methods,
|
|
571
|
-
formnovalidate: ["novalidate"],
|
|
572
|
-
formtarget: Targets,
|
|
573
|
-
type: [
|
|
574
|
-
"submit",
|
|
575
|
-
"reset",
|
|
576
|
-
"button"
|
|
577
|
-
]
|
|
578
|
-
} },
|
|
579
|
-
canvas: { attrs: {
|
|
580
|
-
width: null,
|
|
581
|
-
height: null
|
|
582
|
-
} },
|
|
583
|
-
caption: S,
|
|
584
|
-
center: S,
|
|
585
|
-
cite: S,
|
|
586
|
-
code: S,
|
|
587
|
-
col: { attrs: { span: null } },
|
|
588
|
-
colgroup: { attrs: { span: null } },
|
|
589
|
-
command: { attrs: {
|
|
590
|
-
type: [
|
|
591
|
-
"command",
|
|
592
|
-
"checkbox",
|
|
593
|
-
"radio"
|
|
594
|
-
],
|
|
595
|
-
label: null,
|
|
596
|
-
icon: null,
|
|
597
|
-
radiogroup: null,
|
|
598
|
-
command: null,
|
|
599
|
-
title: null,
|
|
600
|
-
disabled: ["disabled"],
|
|
601
|
-
checked: ["checked"]
|
|
602
|
-
} },
|
|
603
|
-
data: { attrs: { value: null } },
|
|
604
|
-
datagrid: { attrs: {
|
|
605
|
-
disabled: ["disabled"],
|
|
606
|
-
multiple: ["multiple"]
|
|
607
|
-
} },
|
|
608
|
-
datalist: { attrs: { data: null } },
|
|
609
|
-
dd: S,
|
|
610
|
-
del: { attrs: {
|
|
611
|
-
cite: null,
|
|
612
|
-
datetime: null
|
|
613
|
-
} },
|
|
614
|
-
details: { attrs: { open: ["open"] } },
|
|
615
|
-
dfn: S,
|
|
616
|
-
div: S,
|
|
617
|
-
dl: S,
|
|
618
|
-
dt: S,
|
|
619
|
-
em: S,
|
|
620
|
-
embed: { attrs: {
|
|
621
|
-
src: null,
|
|
622
|
-
type: null,
|
|
623
|
-
width: null,
|
|
624
|
-
height: null
|
|
625
|
-
} },
|
|
626
|
-
eventsource: { attrs: { src: null } },
|
|
627
|
-
fieldset: { attrs: {
|
|
628
|
-
disabled: ["disabled"],
|
|
629
|
-
form: null,
|
|
630
|
-
name: null
|
|
631
|
-
} },
|
|
632
|
-
figcaption: S,
|
|
633
|
-
figure: S,
|
|
634
|
-
footer: S,
|
|
635
|
-
form: { attrs: {
|
|
636
|
-
action: null,
|
|
637
|
-
name: null,
|
|
638
|
-
"accept-charset": Charsets,
|
|
639
|
-
autocomplete: ["on", "off"],
|
|
640
|
-
enctype: Encs,
|
|
641
|
-
method: Methods,
|
|
642
|
-
novalidate: ["novalidate"],
|
|
643
|
-
target: Targets
|
|
644
|
-
} },
|
|
645
|
-
h1: S,
|
|
646
|
-
h2: S,
|
|
647
|
-
h3: S,
|
|
648
|
-
h4: S,
|
|
649
|
-
h5: S,
|
|
650
|
-
h6: S,
|
|
651
|
-
head: { children: [
|
|
652
|
-
"title",
|
|
653
|
-
"base",
|
|
654
|
-
"link",
|
|
655
|
-
"style",
|
|
656
|
-
"meta",
|
|
657
|
-
"script",
|
|
658
|
-
"noscript",
|
|
659
|
-
"command"
|
|
660
|
-
] },
|
|
661
|
-
header: S,
|
|
662
|
-
hgroup: S,
|
|
663
|
-
hr: S,
|
|
664
|
-
html: { attrs: { manifest: null } },
|
|
665
|
-
i: S,
|
|
666
|
-
iframe: { attrs: {
|
|
667
|
-
src: null,
|
|
668
|
-
srcdoc: null,
|
|
669
|
-
name: null,
|
|
670
|
-
width: null,
|
|
671
|
-
height: null,
|
|
672
|
-
sandbox: [
|
|
673
|
-
"allow-top-navigation",
|
|
674
|
-
"allow-same-origin",
|
|
675
|
-
"allow-forms",
|
|
676
|
-
"allow-scripts"
|
|
677
|
-
],
|
|
678
|
-
seamless: ["seamless"]
|
|
679
|
-
} },
|
|
680
|
-
img: { attrs: {
|
|
681
|
-
alt: null,
|
|
682
|
-
src: null,
|
|
683
|
-
ismap: null,
|
|
684
|
-
usemap: null,
|
|
685
|
-
width: null,
|
|
686
|
-
height: null,
|
|
687
|
-
crossorigin: ["anonymous", "use-credentials"]
|
|
688
|
-
} },
|
|
689
|
-
input: { attrs: {
|
|
690
|
-
alt: null,
|
|
691
|
-
dirname: null,
|
|
692
|
-
form: null,
|
|
693
|
-
formaction: null,
|
|
694
|
-
height: null,
|
|
695
|
-
list: null,
|
|
696
|
-
max: null,
|
|
697
|
-
maxlength: null,
|
|
698
|
-
min: null,
|
|
699
|
-
name: null,
|
|
700
|
-
pattern: null,
|
|
701
|
-
placeholder: null,
|
|
702
|
-
size: null,
|
|
703
|
-
src: null,
|
|
704
|
-
step: null,
|
|
705
|
-
value: null,
|
|
706
|
-
width: null,
|
|
707
|
-
accept: [
|
|
708
|
-
"audio/*",
|
|
709
|
-
"video/*",
|
|
710
|
-
"image/*"
|
|
711
|
-
],
|
|
712
|
-
autocomplete: ["on", "off"],
|
|
713
|
-
autofocus: ["autofocus"],
|
|
714
|
-
checked: ["checked"],
|
|
715
|
-
disabled: ["disabled"],
|
|
716
|
-
formenctype: Encs,
|
|
717
|
-
formmethod: Methods,
|
|
718
|
-
formnovalidate: ["novalidate"],
|
|
719
|
-
formtarget: Targets,
|
|
720
|
-
multiple: ["multiple"],
|
|
721
|
-
readonly: ["readonly"],
|
|
722
|
-
required: ["required"],
|
|
723
|
-
type: [
|
|
724
|
-
"hidden",
|
|
725
|
-
"text",
|
|
726
|
-
"search",
|
|
727
|
-
"tel",
|
|
728
|
-
"url",
|
|
729
|
-
"email",
|
|
730
|
-
"password",
|
|
731
|
-
"datetime",
|
|
732
|
-
"date",
|
|
733
|
-
"month",
|
|
734
|
-
"week",
|
|
735
|
-
"time",
|
|
736
|
-
"datetime-local",
|
|
737
|
-
"number",
|
|
738
|
-
"range",
|
|
739
|
-
"color",
|
|
740
|
-
"checkbox",
|
|
741
|
-
"radio",
|
|
742
|
-
"file",
|
|
743
|
-
"submit",
|
|
744
|
-
"image",
|
|
745
|
-
"reset",
|
|
746
|
-
"button"
|
|
747
|
-
]
|
|
748
|
-
} },
|
|
749
|
-
ins: { attrs: {
|
|
750
|
-
cite: null,
|
|
751
|
-
datetime: null
|
|
752
|
-
} },
|
|
753
|
-
kbd: S,
|
|
754
|
-
keygen: { attrs: {
|
|
755
|
-
challenge: null,
|
|
756
|
-
form: null,
|
|
757
|
-
name: null,
|
|
758
|
-
autofocus: ["autofocus"],
|
|
759
|
-
disabled: ["disabled"],
|
|
760
|
-
keytype: ["RSA"]
|
|
761
|
-
} },
|
|
762
|
-
label: { attrs: {
|
|
763
|
-
for: null,
|
|
764
|
-
form: null
|
|
765
|
-
} },
|
|
766
|
-
legend: S,
|
|
767
|
-
li: { attrs: { value: null } },
|
|
768
|
-
link: { attrs: {
|
|
769
|
-
href: null,
|
|
770
|
-
type: null,
|
|
771
|
-
hreflang: null,
|
|
772
|
-
media: null,
|
|
773
|
-
sizes: [
|
|
774
|
-
"all",
|
|
775
|
-
"16x16",
|
|
776
|
-
"16x16 32x32",
|
|
777
|
-
"16x16 32x32 64x64"
|
|
778
|
-
]
|
|
779
|
-
} },
|
|
780
|
-
map: { attrs: { name: null } },
|
|
781
|
-
mark: S,
|
|
782
|
-
menu: { attrs: {
|
|
783
|
-
label: null,
|
|
784
|
-
type: [
|
|
785
|
-
"list",
|
|
786
|
-
"context",
|
|
787
|
-
"toolbar"
|
|
788
|
-
]
|
|
789
|
-
} },
|
|
790
|
-
meta: { attrs: {
|
|
791
|
-
content: null,
|
|
792
|
-
charset: Charsets,
|
|
793
|
-
name: [
|
|
794
|
-
"viewport",
|
|
795
|
-
"application-name",
|
|
796
|
-
"author",
|
|
797
|
-
"description",
|
|
798
|
-
"generator",
|
|
799
|
-
"keywords"
|
|
800
|
-
],
|
|
801
|
-
"http-equiv": [
|
|
802
|
-
"content-language",
|
|
803
|
-
"content-type",
|
|
804
|
-
"default-style",
|
|
805
|
-
"refresh"
|
|
806
|
-
]
|
|
807
|
-
} },
|
|
808
|
-
meter: { attrs: {
|
|
809
|
-
value: null,
|
|
810
|
-
min: null,
|
|
811
|
-
low: null,
|
|
812
|
-
high: null,
|
|
813
|
-
max: null,
|
|
814
|
-
optimum: null
|
|
815
|
-
} },
|
|
816
|
-
nav: S,
|
|
817
|
-
noscript: S,
|
|
818
|
-
object: { attrs: {
|
|
819
|
-
data: null,
|
|
820
|
-
type: null,
|
|
821
|
-
name: null,
|
|
822
|
-
usemap: null,
|
|
823
|
-
form: null,
|
|
824
|
-
width: null,
|
|
825
|
-
height: null,
|
|
826
|
-
typemustmatch: ["typemustmatch"]
|
|
827
|
-
} },
|
|
828
|
-
ol: {
|
|
829
|
-
attrs: {
|
|
830
|
-
reversed: ["reversed"],
|
|
831
|
-
start: null,
|
|
832
|
-
type: [
|
|
833
|
-
"1",
|
|
834
|
-
"a",
|
|
835
|
-
"A",
|
|
836
|
-
"i",
|
|
837
|
-
"I"
|
|
838
|
-
]
|
|
839
|
-
},
|
|
840
|
-
children: [
|
|
841
|
-
"li",
|
|
842
|
-
"script",
|
|
843
|
-
"template",
|
|
844
|
-
"ul",
|
|
845
|
-
"ol"
|
|
846
|
-
]
|
|
847
|
-
},
|
|
848
|
-
optgroup: { attrs: {
|
|
849
|
-
disabled: ["disabled"],
|
|
850
|
-
label: null
|
|
851
|
-
} },
|
|
852
|
-
option: { attrs: {
|
|
853
|
-
disabled: ["disabled"],
|
|
854
|
-
label: null,
|
|
855
|
-
selected: ["selected"],
|
|
856
|
-
value: null
|
|
857
|
-
} },
|
|
858
|
-
output: { attrs: {
|
|
859
|
-
for: null,
|
|
860
|
-
form: null,
|
|
861
|
-
name: null
|
|
862
|
-
} },
|
|
863
|
-
p: S,
|
|
864
|
-
param: { attrs: {
|
|
865
|
-
name: null,
|
|
866
|
-
value: null
|
|
867
|
-
} },
|
|
868
|
-
pre: S,
|
|
869
|
-
progress: { attrs: {
|
|
870
|
-
value: null,
|
|
871
|
-
max: null
|
|
872
|
-
} },
|
|
873
|
-
q: { attrs: { cite: null } },
|
|
874
|
-
rp: S,
|
|
875
|
-
rt: S,
|
|
876
|
-
ruby: S,
|
|
877
|
-
samp: S,
|
|
878
|
-
script: { attrs: {
|
|
879
|
-
type: ["text/javascript"],
|
|
880
|
-
src: null,
|
|
881
|
-
async: ["async"],
|
|
882
|
-
defer: ["defer"],
|
|
883
|
-
charset: Charsets
|
|
884
|
-
} },
|
|
885
|
-
section: S,
|
|
886
|
-
select: { attrs: {
|
|
887
|
-
form: null,
|
|
888
|
-
name: null,
|
|
889
|
-
size: null,
|
|
890
|
-
autofocus: ["autofocus"],
|
|
891
|
-
disabled: ["disabled"],
|
|
892
|
-
multiple: ["multiple"]
|
|
893
|
-
} },
|
|
894
|
-
slot: { attrs: { name: null } },
|
|
895
|
-
small: S,
|
|
896
|
-
source: { attrs: {
|
|
897
|
-
src: null,
|
|
898
|
-
type: null,
|
|
899
|
-
media: null
|
|
900
|
-
} },
|
|
901
|
-
span: S,
|
|
902
|
-
strong: S,
|
|
903
|
-
style: { attrs: {
|
|
904
|
-
type: ["text/css"],
|
|
905
|
-
media: null,
|
|
906
|
-
scoped: null
|
|
907
|
-
} },
|
|
908
|
-
sub: S,
|
|
909
|
-
summary: S,
|
|
910
|
-
sup: S,
|
|
911
|
-
table: S,
|
|
912
|
-
tbody: S,
|
|
913
|
-
td: { attrs: {
|
|
914
|
-
colspan: null,
|
|
915
|
-
rowspan: null,
|
|
916
|
-
headers: null
|
|
917
|
-
} },
|
|
918
|
-
template: S,
|
|
919
|
-
textarea: { attrs: {
|
|
920
|
-
dirname: null,
|
|
921
|
-
form: null,
|
|
922
|
-
maxlength: null,
|
|
923
|
-
name: null,
|
|
924
|
-
placeholder: null,
|
|
925
|
-
rows: null,
|
|
926
|
-
cols: null,
|
|
927
|
-
autofocus: ["autofocus"],
|
|
928
|
-
disabled: ["disabled"],
|
|
929
|
-
readonly: ["readonly"],
|
|
930
|
-
required: ["required"],
|
|
931
|
-
wrap: ["soft", "hard"]
|
|
932
|
-
} },
|
|
933
|
-
tfoot: S,
|
|
934
|
-
th: { attrs: {
|
|
935
|
-
colspan: null,
|
|
936
|
-
rowspan: null,
|
|
937
|
-
headers: null,
|
|
938
|
-
scope: [
|
|
939
|
-
"row",
|
|
940
|
-
"col",
|
|
941
|
-
"rowgroup",
|
|
942
|
-
"colgroup"
|
|
943
|
-
]
|
|
944
|
-
} },
|
|
945
|
-
thead: S,
|
|
946
|
-
time: { attrs: { datetime: null } },
|
|
947
|
-
title: S,
|
|
948
|
-
tr: S,
|
|
949
|
-
track: { attrs: {
|
|
950
|
-
src: null,
|
|
951
|
-
label: null,
|
|
952
|
-
default: null,
|
|
953
|
-
kind: [
|
|
954
|
-
"subtitles",
|
|
955
|
-
"captions",
|
|
956
|
-
"descriptions",
|
|
957
|
-
"chapters",
|
|
958
|
-
"metadata"
|
|
959
|
-
],
|
|
960
|
-
srclang: null
|
|
961
|
-
} },
|
|
962
|
-
ul: { children: [
|
|
963
|
-
"li",
|
|
964
|
-
"script",
|
|
965
|
-
"template",
|
|
966
|
-
"ul",
|
|
967
|
-
"ol"
|
|
968
|
-
] },
|
|
969
|
-
var: S,
|
|
970
|
-
video: { attrs: {
|
|
971
|
-
src: null,
|
|
972
|
-
poster: null,
|
|
973
|
-
width: null,
|
|
974
|
-
height: null,
|
|
975
|
-
crossorigin: ["anonymous", "use-credentials"],
|
|
976
|
-
preload: [
|
|
977
|
-
"auto",
|
|
978
|
-
"metadata",
|
|
979
|
-
"none"
|
|
980
|
-
],
|
|
981
|
-
autoplay: ["autoplay"],
|
|
982
|
-
mediagroup: ["movie"],
|
|
983
|
-
muted: ["muted"],
|
|
984
|
-
controls: ["controls"]
|
|
985
|
-
} },
|
|
986
|
-
wbr: S
|
|
987
|
-
};
|
|
988
|
-
var GlobalAttrs = {
|
|
989
|
-
accesskey: null,
|
|
990
|
-
class: null,
|
|
991
|
-
contenteditable: Bool,
|
|
992
|
-
contextmenu: null,
|
|
993
|
-
dir: [
|
|
994
|
-
"ltr",
|
|
995
|
-
"rtl",
|
|
996
|
-
"auto"
|
|
997
|
-
],
|
|
998
|
-
draggable: [
|
|
999
|
-
"true",
|
|
1000
|
-
"false",
|
|
1001
|
-
"auto"
|
|
1002
|
-
],
|
|
1003
|
-
dropzone: [
|
|
1004
|
-
"copy",
|
|
1005
|
-
"move",
|
|
1006
|
-
"link",
|
|
1007
|
-
"string:",
|
|
1008
|
-
"file:"
|
|
1009
|
-
],
|
|
1010
|
-
hidden: ["hidden"],
|
|
1011
|
-
id: null,
|
|
1012
|
-
inert: ["inert"],
|
|
1013
|
-
itemid: null,
|
|
1014
|
-
itemprop: null,
|
|
1015
|
-
itemref: null,
|
|
1016
|
-
itemscope: ["itemscope"],
|
|
1017
|
-
itemtype: null,
|
|
1018
|
-
lang: [
|
|
1019
|
-
"ar",
|
|
1020
|
-
"bn",
|
|
1021
|
-
"de",
|
|
1022
|
-
"en-GB",
|
|
1023
|
-
"en-US",
|
|
1024
|
-
"es",
|
|
1025
|
-
"fr",
|
|
1026
|
-
"hi",
|
|
1027
|
-
"id",
|
|
1028
|
-
"ja",
|
|
1029
|
-
"pa",
|
|
1030
|
-
"pt",
|
|
1031
|
-
"ru",
|
|
1032
|
-
"tr",
|
|
1033
|
-
"zh"
|
|
1034
|
-
],
|
|
1035
|
-
spellcheck: Bool,
|
|
1036
|
-
autocorrect: Bool,
|
|
1037
|
-
autocapitalize: Bool,
|
|
1038
|
-
style: null,
|
|
1039
|
-
tabindex: null,
|
|
1040
|
-
title: null,
|
|
1041
|
-
translate: ["yes", "no"],
|
|
1042
|
-
rel: [
|
|
1043
|
-
"stylesheet",
|
|
1044
|
-
"alternate",
|
|
1045
|
-
"author",
|
|
1046
|
-
"bookmark",
|
|
1047
|
-
"help",
|
|
1048
|
-
"license",
|
|
1049
|
-
"next",
|
|
1050
|
-
"nofollow",
|
|
1051
|
-
"noreferrer",
|
|
1052
|
-
"prefetch",
|
|
1053
|
-
"prev",
|
|
1054
|
-
"search",
|
|
1055
|
-
"tag"
|
|
1056
|
-
],
|
|
1057
|
-
role: /*@__PURE__*/ "alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
1058
|
-
"aria-activedescendant": null,
|
|
1059
|
-
"aria-atomic": Bool,
|
|
1060
|
-
"aria-autocomplete": [
|
|
1061
|
-
"inline",
|
|
1062
|
-
"list",
|
|
1063
|
-
"both",
|
|
1064
|
-
"none"
|
|
1065
|
-
],
|
|
1066
|
-
"aria-busy": Bool,
|
|
1067
|
-
"aria-checked": [
|
|
1068
|
-
"true",
|
|
1069
|
-
"false",
|
|
1070
|
-
"mixed",
|
|
1071
|
-
"undefined"
|
|
1072
|
-
],
|
|
1073
|
-
"aria-controls": null,
|
|
1074
|
-
"aria-describedby": null,
|
|
1075
|
-
"aria-disabled": Bool,
|
|
1076
|
-
"aria-dropeffect": null,
|
|
1077
|
-
"aria-expanded": [
|
|
1078
|
-
"true",
|
|
1079
|
-
"false",
|
|
1080
|
-
"undefined"
|
|
1081
|
-
],
|
|
1082
|
-
"aria-flowto": null,
|
|
1083
|
-
"aria-grabbed": [
|
|
1084
|
-
"true",
|
|
1085
|
-
"false",
|
|
1086
|
-
"undefined"
|
|
1087
|
-
],
|
|
1088
|
-
"aria-haspopup": Bool,
|
|
1089
|
-
"aria-hidden": Bool,
|
|
1090
|
-
"aria-invalid": [
|
|
1091
|
-
"true",
|
|
1092
|
-
"false",
|
|
1093
|
-
"grammar",
|
|
1094
|
-
"spelling"
|
|
1095
|
-
],
|
|
1096
|
-
"aria-label": null,
|
|
1097
|
-
"aria-labelledby": null,
|
|
1098
|
-
"aria-level": null,
|
|
1099
|
-
"aria-live": [
|
|
1100
|
-
"off",
|
|
1101
|
-
"polite",
|
|
1102
|
-
"assertive"
|
|
1103
|
-
],
|
|
1104
|
-
"aria-multiline": Bool,
|
|
1105
|
-
"aria-multiselectable": Bool,
|
|
1106
|
-
"aria-owns": null,
|
|
1107
|
-
"aria-posinset": null,
|
|
1108
|
-
"aria-pressed": [
|
|
1109
|
-
"true",
|
|
1110
|
-
"false",
|
|
1111
|
-
"mixed",
|
|
1112
|
-
"undefined"
|
|
1113
|
-
],
|
|
1114
|
-
"aria-readonly": Bool,
|
|
1115
|
-
"aria-relevant": null,
|
|
1116
|
-
"aria-required": Bool,
|
|
1117
|
-
"aria-selected": [
|
|
1118
|
-
"true",
|
|
1119
|
-
"false",
|
|
1120
|
-
"undefined"
|
|
1121
|
-
],
|
|
1122
|
-
"aria-setsize": null,
|
|
1123
|
-
"aria-sort": [
|
|
1124
|
-
"ascending",
|
|
1125
|
-
"descending",
|
|
1126
|
-
"none",
|
|
1127
|
-
"other"
|
|
1128
|
-
],
|
|
1129
|
-
"aria-valuemax": null,
|
|
1130
|
-
"aria-valuemin": null,
|
|
1131
|
-
"aria-valuenow": null,
|
|
1132
|
-
"aria-valuetext": null
|
|
1133
|
-
};
|
|
1134
|
-
var eventAttributes = /*@__PURE__*/ "beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((n) => "on" + n);
|
|
1135
|
-
for (let a of eventAttributes) GlobalAttrs[a] = null;
|
|
1136
|
-
var Schema = class {
|
|
1137
|
-
constructor(extraTags, extraAttrs) {
|
|
1138
|
-
this.tags = {
|
|
1139
|
-
...Tags,
|
|
1140
|
-
...extraTags
|
|
1141
|
-
};
|
|
1142
|
-
this.globalAttrs = {
|
|
1143
|
-
...GlobalAttrs,
|
|
1144
|
-
...extraAttrs
|
|
1145
|
-
};
|
|
1146
|
-
this.allTags = Object.keys(this.tags);
|
|
1147
|
-
this.globalAttrNames = Object.keys(this.globalAttrs);
|
|
1148
|
-
}
|
|
1149
|
-
};
|
|
1150
|
-
Schema.default = /*@__PURE__*/ new Schema();
|
|
1151
|
-
function elementName(doc, tree, max = doc.length) {
|
|
1152
|
-
if (!tree) return "";
|
|
1153
|
-
let tag = tree.firstChild;
|
|
1154
|
-
let name = tag && tag.getChild("TagName");
|
|
1155
|
-
return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
|
|
1156
|
-
}
|
|
1157
|
-
function findParentElement(tree, skip = false) {
|
|
1158
|
-
for (; tree; tree = tree.parent) if (tree.name == "Element") {
|
|
1159
|
-
if (skip) skip = false;
|
|
1160
|
-
else return tree;
|
|
1161
|
-
}
|
|
1162
|
-
return null;
|
|
1163
|
-
}
|
|
1164
|
-
function allowedChildren(doc, tree, schema) {
|
|
1165
|
-
let parentInfo = schema.tags[elementName(doc, findParentElement(tree))];
|
|
1166
|
-
return (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.children) || schema.allTags;
|
|
1167
|
-
}
|
|
1168
|
-
function openTags(doc, tree) {
|
|
1169
|
-
let open = [];
|
|
1170
|
-
for (let parent = findParentElement(tree); parent && !parent.type.isTop; parent = findParentElement(parent.parent)) {
|
|
1171
|
-
let tagName = elementName(doc, parent);
|
|
1172
|
-
if (tagName && parent.lastChild.name == "CloseTag") break;
|
|
1173
|
-
if (tagName && open.indexOf(tagName) < 0 && (tree.name == "EndTag" || tree.from >= parent.firstChild.to)) open.push(tagName);
|
|
1174
|
-
}
|
|
1175
|
-
return open;
|
|
1176
|
-
}
|
|
1177
|
-
var identifier = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
1178
|
-
function completeTag(state, schema, tree, from, to) {
|
|
1179
|
-
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
1180
|
-
let parent = findParentElement(tree, tree.name == "StartTag" || tree.name == "TagName");
|
|
1181
|
-
return {
|
|
1182
|
-
from,
|
|
1183
|
-
to,
|
|
1184
|
-
options: allowedChildren(state.doc, parent, schema).map((tagName) => ({
|
|
1185
|
-
label: tagName,
|
|
1186
|
-
type: "type"
|
|
1187
|
-
})).concat(openTags(state.doc, tree).map((tag, i) => ({
|
|
1188
|
-
label: "/" + tag,
|
|
1189
|
-
apply: "/" + tag + end,
|
|
1190
|
-
type: "type",
|
|
1191
|
-
boost: 99 - i
|
|
1192
|
-
}))),
|
|
1193
|
-
validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
1194
|
-
};
|
|
1195
|
-
}
|
|
1196
|
-
function completeCloseTag(state, tree, from, to) {
|
|
1197
|
-
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
1198
|
-
return {
|
|
1199
|
-
from,
|
|
1200
|
-
to,
|
|
1201
|
-
options: openTags(state.doc, tree).map((tag, i) => ({
|
|
1202
|
-
label: tag,
|
|
1203
|
-
apply: tag + end,
|
|
1204
|
-
type: "type",
|
|
1205
|
-
boost: 99 - i
|
|
1206
|
-
})),
|
|
1207
|
-
validFor: identifier
|
|
1208
|
-
};
|
|
1209
|
-
}
|
|
1210
|
-
function completeStartTag(state, schema, tree, pos) {
|
|
1211
|
-
let options = [], level = 0;
|
|
1212
|
-
for (let tagName of allowedChildren(state.doc, tree, schema)) options.push({
|
|
1213
|
-
label: "<" + tagName,
|
|
1214
|
-
type: "type"
|
|
1215
|
-
});
|
|
1216
|
-
for (let open of openTags(state.doc, tree)) options.push({
|
|
1217
|
-
label: "</" + open + ">",
|
|
1218
|
-
type: "type",
|
|
1219
|
-
boost: 99 - level++
|
|
1220
|
-
});
|
|
1221
|
-
return {
|
|
1222
|
-
from: pos,
|
|
1223
|
-
to: pos,
|
|
1224
|
-
options,
|
|
1225
|
-
validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
1226
|
-
};
|
|
1227
|
-
}
|
|
1228
|
-
function completeAttrName(state, schema, tree, from, to) {
|
|
1229
|
-
let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
1230
|
-
let localAttrs = info && info.attrs ? Object.keys(info.attrs) : [];
|
|
1231
|
-
return {
|
|
1232
|
-
from,
|
|
1233
|
-
to,
|
|
1234
|
-
options: (info && info.globalAttrs === false ? localAttrs : localAttrs.length ? localAttrs.concat(schema.globalAttrNames) : schema.globalAttrNames).map((attrName) => ({
|
|
1235
|
-
label: attrName,
|
|
1236
|
-
type: "property"
|
|
1237
|
-
})),
|
|
1238
|
-
validFor: identifier
|
|
1239
|
-
};
|
|
1240
|
-
}
|
|
1241
|
-
function completeAttrValue(state, schema, tree, from, to) {
|
|
1242
|
-
var _a;
|
|
1243
|
-
let nameNode = (_a = tree.parent) === null || _a === void 0 ? void 0 : _a.getChild("AttributeName");
|
|
1244
|
-
let options = [], token = void 0;
|
|
1245
|
-
if (nameNode) {
|
|
1246
|
-
let attrName = state.sliceDoc(nameNode.from, nameNode.to);
|
|
1247
|
-
let attrs = schema.globalAttrs[attrName];
|
|
1248
|
-
if (!attrs) {
|
|
1249
|
-
let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
1250
|
-
attrs = (info === null || info === void 0 ? void 0 : info.attrs) && info.attrs[attrName];
|
|
1251
|
-
}
|
|
1252
|
-
if (attrs) {
|
|
1253
|
-
let base = state.sliceDoc(from, to).toLowerCase(), quoteStart = "\"", quoteEnd = "\"";
|
|
1254
|
-
if (/^['"]/.test(base)) {
|
|
1255
|
-
token = base[0] == "\"" ? /^[^"]*$/ : /^[^']*$/;
|
|
1256
|
-
quoteStart = "";
|
|
1257
|
-
quoteEnd = state.sliceDoc(to, to + 1) == base[0] ? "" : base[0];
|
|
1258
|
-
base = base.slice(1);
|
|
1259
|
-
from++;
|
|
1260
|
-
} else token = /^[^\s<>='"]*$/;
|
|
1261
|
-
for (let value of attrs) options.push({
|
|
1262
|
-
label: value,
|
|
1263
|
-
apply: quoteStart + value + quoteEnd,
|
|
1264
|
-
type: "constant"
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
return {
|
|
1269
|
-
from,
|
|
1270
|
-
to,
|
|
1271
|
-
options,
|
|
1272
|
-
validFor: token
|
|
1273
|
-
};
|
|
1274
|
-
}
|
|
1275
|
-
function htmlCompletionFor(schema, context) {
|
|
1276
|
-
let { state, pos } = context, tree = syntaxTree(state).resolveInner(pos, -1), around = tree.resolve(pos);
|
|
1277
|
-
for (let scan = pos, before; around == tree && (before = tree.childBefore(scan));) {
|
|
1278
|
-
let last = before.lastChild;
|
|
1279
|
-
if (!last || !last.type.isError || last.from < last.to) break;
|
|
1280
|
-
around = tree = before;
|
|
1281
|
-
scan = last.from;
|
|
1282
|
-
}
|
|
1283
|
-
if (tree.name == "TagName") return tree.parent && /CloseTag$/.test(tree.parent.name) ? completeCloseTag(state, tree, tree.from, pos) : completeTag(state, schema, tree, tree.from, pos);
|
|
1284
|
-
else if (tree.name == "StartTag" || tree.name == "IncompleteTag") return completeTag(state, schema, tree, pos, pos);
|
|
1285
|
-
else if (tree.name == "StartCloseTag" || tree.name == "IncompleteCloseTag") return completeCloseTag(state, tree, pos, pos);
|
|
1286
|
-
else if (tree.name == "OpenTag" || tree.name == "SelfClosingTag" || tree.name == "AttributeName") return completeAttrName(state, schema, tree, tree.name == "AttributeName" ? tree.from : pos, pos);
|
|
1287
|
-
else if (tree.name == "Is" || tree.name == "AttributeValue" || tree.name == "UnquotedAttributeValue") return completeAttrValue(state, schema, tree, tree.name == "Is" ? pos : tree.from, pos);
|
|
1288
|
-
else if (context.explicit && (around.name == "Element" || around.name == "Text" || around.name == "Document")) return completeStartTag(state, schema, tree, pos);
|
|
1289
|
-
else return null;
|
|
1290
|
-
}
|
|
1291
|
-
/**
|
|
1292
|
-
HTML tag completion. Opens and closes tags and attributes in a
|
|
1293
|
-
context-aware way.
|
|
1294
|
-
*/
|
|
1295
|
-
function htmlCompletionSource(context) {
|
|
1296
|
-
return htmlCompletionFor(Schema.default, context);
|
|
1297
|
-
}
|
|
1298
|
-
/**
|
|
1299
|
-
Create a completion source for HTML extended with additional tags
|
|
1300
|
-
or attributes.
|
|
1301
|
-
*/
|
|
1302
|
-
function htmlCompletionSourceWith(config) {
|
|
1303
|
-
let { extraTags, extraGlobalAttributes: extraAttrs } = config;
|
|
1304
|
-
let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;
|
|
1305
|
-
return (context) => htmlCompletionFor(schema, context);
|
|
1306
|
-
}
|
|
1307
|
-
var jsonParser = /*@__PURE__*/ javascriptLanguage.parser.configure({ top: "SingleExpression" });
|
|
1308
|
-
var defaultNesting = [
|
|
1309
|
-
{
|
|
1310
|
-
tag: "script",
|
|
1311
|
-
attrs: (attrs) => attrs.type == "text/typescript" || attrs.lang == "ts",
|
|
1312
|
-
parser: typescriptLanguage.parser
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
tag: "script",
|
|
1316
|
-
attrs: (attrs) => attrs.type == "text/babel" || attrs.type == "text/jsx",
|
|
1317
|
-
parser: jsxLanguage.parser
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
tag: "script",
|
|
1321
|
-
attrs: (attrs) => attrs.type == "text/typescript-jsx",
|
|
1322
|
-
parser: tsxLanguage.parser
|
|
1323
|
-
},
|
|
1324
|
-
{
|
|
1325
|
-
tag: "script",
|
|
1326
|
-
attrs(attrs) {
|
|
1327
|
-
return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(attrs.type);
|
|
1328
|
-
},
|
|
1329
|
-
parser: jsonParser
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
tag: "script",
|
|
1333
|
-
attrs(attrs) {
|
|
1334
|
-
return !attrs.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(attrs.type);
|
|
1335
|
-
},
|
|
1336
|
-
parser: javascriptLanguage.parser
|
|
1337
|
-
},
|
|
1338
|
-
{
|
|
1339
|
-
tag: "style",
|
|
1340
|
-
attrs(attrs) {
|
|
1341
|
-
return (!attrs.lang || attrs.lang == "css") && (!attrs.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(attrs.type));
|
|
1342
|
-
},
|
|
1343
|
-
parser: cssLanguage.parser
|
|
1344
|
-
}
|
|
1345
|
-
];
|
|
1346
|
-
var defaultAttrs = /*@__PURE__*/ [{
|
|
1347
|
-
name: "style",
|
|
1348
|
-
parser: /*@__PURE__*/ cssLanguage.parser.configure({ top: "Styles" })
|
|
1349
|
-
}].concat(/*@__PURE__*/ eventAttributes.map((name) => ({
|
|
1350
|
-
name,
|
|
1351
|
-
parser: javascriptLanguage.parser
|
|
1352
|
-
})));
|
|
1353
|
-
var htmlPlain = /*@__PURE__*/ LRLanguage.define({
|
|
1354
|
-
name: "html",
|
|
1355
|
-
parser: /*@__PURE__*/ parser.configure({ props: [
|
|
1356
|
-
/*@__PURE__*/ indentNodeProp.add({
|
|
1357
|
-
Element(context) {
|
|
1358
|
-
let after = /^(\s*)(<\/)?/.exec(context.textAfter);
|
|
1359
|
-
if (context.node.to <= context.pos + after[0].length) return context.continue();
|
|
1360
|
-
return context.lineIndent(context.node.from) + (after[2] ? 0 : context.unit);
|
|
1361
|
-
},
|
|
1362
|
-
"OpenTag CloseTag SelfClosingTag"(context) {
|
|
1363
|
-
return context.column(context.node.from) + context.unit;
|
|
1364
|
-
},
|
|
1365
|
-
Document(context) {
|
|
1366
|
-
if (context.pos + /\s*/.exec(context.textAfter)[0].length < context.node.to) return context.continue();
|
|
1367
|
-
let endElt = null, close;
|
|
1368
|
-
for (let cur = context.node;;) {
|
|
1369
|
-
let last = cur.lastChild;
|
|
1370
|
-
if (!last || last.name != "Element" || last.to != cur.to) break;
|
|
1371
|
-
endElt = cur = last;
|
|
1372
|
-
}
|
|
1373
|
-
if (endElt && !((close = endElt.lastChild) && (close.name == "CloseTag" || close.name == "SelfClosingTag"))) return context.lineIndent(endElt.from) + context.unit;
|
|
1374
|
-
return null;
|
|
1375
|
-
}
|
|
1376
|
-
}),
|
|
1377
|
-
/*@__PURE__*/ foldNodeProp.add({ Element(node) {
|
|
1378
|
-
let first = node.firstChild, last = node.lastChild;
|
|
1379
|
-
if (!first || first.name != "OpenTag") return null;
|
|
1380
|
-
return {
|
|
1381
|
-
from: first.to,
|
|
1382
|
-
to: last.name == "CloseTag" ? last.from : node.to
|
|
1383
|
-
};
|
|
1384
|
-
} }),
|
|
1385
|
-
/*@__PURE__*/ bracketMatchingHandle.add({ "OpenTag CloseTag": (node) => node.getChild("TagName") })
|
|
1386
|
-
] }),
|
|
1387
|
-
languageData: {
|
|
1388
|
-
commentTokens: { block: {
|
|
1389
|
-
open: "<!--",
|
|
1390
|
-
close: "-->"
|
|
1391
|
-
} },
|
|
1392
|
-
indentOnInput: /^\s*<\/\w+\W$/,
|
|
1393
|
-
wordChars: "-_"
|
|
1394
|
-
}
|
|
1395
|
-
});
|
|
1396
|
-
/**
|
|
1397
|
-
A language provider based on the [Lezer HTML
|
|
1398
|
-
parser](https://code.haverbeke.berlin/lezer/html), extended with the
|
|
1399
|
-
JavaScript and CSS parsers to parse the content of `<script>` and
|
|
1400
|
-
`<style>` tags.
|
|
1401
|
-
*/
|
|
1402
|
-
var htmlLanguage = /*@__PURE__*/ htmlPlain.configure({ wrap: /*@__PURE__*/ configureNesting(defaultNesting, defaultAttrs) });
|
|
1403
|
-
/**
|
|
1404
|
-
Language support for HTML, including
|
|
1405
|
-
[`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
|
|
1406
|
-
CSS support extensions.
|
|
1407
|
-
*/
|
|
1408
|
-
function html(config = {}) {
|
|
1409
|
-
let dialect = "", wrap;
|
|
1410
|
-
if (config.matchClosingTags === false) dialect = "noMatch";
|
|
1411
|
-
if (config.selfClosingTags === true) dialect = (dialect ? dialect + " " : "") + "selfClosing";
|
|
1412
|
-
if (config.nestedLanguages && config.nestedLanguages.length || config.nestedAttributes && config.nestedAttributes.length) wrap = configureNesting((config.nestedLanguages || []).concat(defaultNesting), (config.nestedAttributes || []).concat(defaultAttrs));
|
|
1413
|
-
let lang = wrap ? htmlPlain.configure({
|
|
1414
|
-
wrap,
|
|
1415
|
-
dialect
|
|
1416
|
-
}) : dialect ? htmlLanguage.configure({ dialect }) : htmlLanguage;
|
|
1417
|
-
return new LanguageSupport(lang, [
|
|
1418
|
-
htmlLanguage.data.of({ autocomplete: htmlCompletionSourceWith(config) }),
|
|
1419
|
-
config.autoCloseTags !== false ? autoCloseTags : [],
|
|
1420
|
-
javascript().support,
|
|
1421
|
-
css().support
|
|
1422
|
-
]);
|
|
1423
|
-
}
|
|
1424
|
-
var selfClosers = /*@__PURE__*/ new Set(/*@__PURE__*/ "area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
|
|
1425
|
-
function isClosed(doc, elt, name) {
|
|
1426
|
-
var _a;
|
|
1427
|
-
for (;;) {
|
|
1428
|
-
if (((_a = elt.lastChild) === null || _a === void 0 ? void 0 : _a.name) != "CloseTag") return false;
|
|
1429
|
-
let next = elt.parent;
|
|
1430
|
-
if (!next || elementName(doc, next) != name) return true;
|
|
1431
|
-
elt = next;
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
/**
|
|
1435
|
-
Extension that will automatically insert close tags when a `>` or
|
|
1436
|
-
`/` is typed.
|
|
1437
|
-
*/
|
|
1438
|
-
var autoCloseTags = /*@__PURE__*/ EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {
|
|
1439
|
-
if (view.composing || view.state.readOnly || from != to || text != ">" && text != "/" || !htmlLanguage.isActiveAt(view.state, from, -1)) return false;
|
|
1440
|
-
let base = insertTransaction(), { state } = base;
|
|
1441
|
-
let closeTags = state.changeByRange((range) => {
|
|
1442
|
-
var _a;
|
|
1443
|
-
let didType = state.doc.sliceString(range.from - 1, range.to) == text;
|
|
1444
|
-
let { head } = range, after = syntaxTree(state).resolveInner(head, -1), name;
|
|
1445
|
-
if (didType && text == ">" && after.name == "EndTag") {
|
|
1446
|
-
let tag = after.parent;
|
|
1447
|
-
if ((name = elementName(state.doc, tag.parent, head)) && !selfClosers.has(name) && !isClosed(state.doc, tag.parent, name)) return {
|
|
1448
|
-
range,
|
|
1449
|
-
changes: {
|
|
1450
|
-
from: head,
|
|
1451
|
-
to: head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0),
|
|
1452
|
-
insert: `</${name}>`
|
|
1453
|
-
}
|
|
1454
|
-
};
|
|
1455
|
-
} else if (didType && text == "/" && after.name == "IncompleteCloseTag") {
|
|
1456
|
-
let tag = after.parent;
|
|
1457
|
-
if (after.from == head - 2 && ((_a = tag.lastChild) === null || _a === void 0 ? void 0 : _a.name) != "CloseTag" && (name = elementName(state.doc, tag, head)) && !selfClosers.has(name)) {
|
|
1458
|
-
let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
|
|
1459
|
-
let insert = `${name}>`;
|
|
1460
|
-
return {
|
|
1461
|
-
range: EditorSelection.cursor(head + insert.length, -1),
|
|
1462
|
-
changes: {
|
|
1463
|
-
from: head,
|
|
1464
|
-
to,
|
|
1465
|
-
insert
|
|
1466
|
-
}
|
|
1467
|
-
};
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
return { range };
|
|
1471
|
-
});
|
|
1472
|
-
if (closeTags.changes.empty) return false;
|
|
1473
|
-
view.dispatch([base, state.update(closeTags, {
|
|
1474
|
-
userEvent: "input.complete",
|
|
1475
|
-
scrollIntoView: true
|
|
1476
|
-
})]);
|
|
1477
|
-
return true;
|
|
1478
|
-
});
|
|
1479
|
-
export { html as n, htmlCompletionSource as r, dist_exports as t };
|