@marimo-team/islands 0.19.10-dev2 → 0.19.10-dev21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-BAeQ8DWw.js → ConnectedDataExplorerComponent-CkXO-pKy.js} +6 -6
- package/dist/{react-plotly-BuRa9xtI.js → Plot-CmsrWWji.js} +72 -286
- package/dist/{any-language-editor-D0UQItkS.js → any-language-editor-t_VsTNa-.js} +16 -16
- package/dist/apl-C1bki_dE.js +4 -0
- package/dist/{arc-CEWBr4jc.js → arc-9nABupDE.js} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-DPPYVq8H.js → architectureDiagram-VXUJARFQ-DmJQhcJb.js} +6 -6
- package/dist/asciiarmor-BdlkCCRr.js +4 -0
- package/dist/asn1-CvE30hox.js +4 -0
- package/dist/{blockDiagram-VD42YOAC-BA5N05Y9.js → blockDiagram-VD42YOAC-CRofISJs.js} +10 -10
- package/dist/brainfuck-BalwWy1a.js +4 -0
- package/dist/{c4Diagram-YG6GDRKO-DJLzuGJJ.js → c4Diagram-YG6GDRKO-Deqoag4I.js} +4 -4
- package/dist/{channel-Dob5kWXR.js → channel-CMsnebrL.js} +1 -1
- package/dist/{chunk-4BX2VUAB-DZQibjKA.js → chunk-4BX2VUAB-WmXmzRBr.js} +1 -1
- package/dist/{chunk-55IACEB6-C3BASkh4.js → chunk-55IACEB6-irYMvHJu.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-BEb20Lzt.js → chunk-5FQGJX7Z-pOElJy8t.js} +2 -2
- package/dist/{chunk-ABZYJK2D-BXTC53mt.js → chunk-ABZYJK2D-BGWvKte3.js} +2 -2
- package/dist/{chunk-ATLVNIR6-BJDjUR_c.js → chunk-ATLVNIR6-BYZB6C5T.js} +2 -2
- package/dist/{chunk-B4BG7PRW-DzmUUpfH.js → chunk-B4BG7PRW-CwYUp6Uj.js} +7 -7
- package/dist/{chunk-CVBHYZKI-Dhc_e3rA.js → chunk-CVBHYZKI-Bb2XMuXJ.js} +1 -1
- package/dist/{chunk-DI55MBZ5-gTd3J8Tu.js → chunk-DI55MBZ5-Gyro6dvN.js} +6 -6
- package/dist/{chunk-EXTU4WIE-DyoOs5QX.js → chunk-EXTU4WIE-BlA7aWEw.js} +2 -2
- package/dist/{chunk-FMBD7UC4-geNUIndh.js → chunk-FMBD7UC4-C0DZU_4q.js} +1 -1
- package/dist/{chunk-HN2XXSSU-CqPwpolw.js → chunk-HN2XXSSU-BsB4dtgF.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-BGnAIbOP.js → chunk-JA3XYJ7Z-Cm-pccR-.js} +3 -3
- package/dist/{chunk-JZLCHNYA-CIRgweVQ.js → chunk-JZLCHNYA-CoLqqXMe.js} +6 -6
- package/dist/{chunk-MI3HLSF2-DOJkNER1.js → chunk-MI3HLSF2-DeDZS-tQ.js} +1 -1
- package/dist/{chunk-N4CR4FBY-DKSvXAIS.js → chunk-N4CR4FBY-ByLbY9L-.js} +7 -7
- package/dist/{chunk-QN33PNHL-B6zC8BTi.js → chunk-QN33PNHL-eodIiY9F.js} +2 -2
- package/dist/{chunk-QXUST7PY-C7750n_u.js → chunk-QXUST7PY-CuJlDW6A.js} +10 -10
- package/dist/{chunk-QZHKN3VN-BF_oGUlG.js → chunk-QZHKN3VN-Diy_Cdek.js} +1 -1
- package/dist/{chunk-S3R3BYOJ-CBkH6JZZ.js → chunk-S3R3BYOJ-CwDGYMVf.js} +3 -3
- package/dist/{chunk-TZMSLE5B-DObGL7xi.js → chunk-TZMSLE5B-DFDr5FCr.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-BDBX9etk.js +30 -0
- package/dist/classDiagram-v2-WZHVMYZB-Bzj_L_BF.js +30 -0
- package/dist/{clike-B1zispTy.js → clike-B90WKs4D.js} +1 -1
- package/dist/clojure-CUC2I1hM.js +4 -0
- package/dist/cmake-8PcMxXnB.js +4 -0
- package/dist/cobol-DkkkDz5v.js +4 -0
- package/dist/{code-block-37QAKDTI-u5kgjqmr.js → code-block-37QAKDTI-zh5AeoJo.js} +1 -1
- package/dist/coffeescript-CCupxOZf.js +4 -0
- package/dist/commonlisp-DhUfGX6b.js +4 -0
- package/dist/{cose-bilkent-S5V4N54A-CO4ORQHF.js → cose-bilkent-S5V4N54A-BK1nIR2J.js} +1 -1
- package/dist/crystal-DSaw6rFQ.js +4 -0
- package/dist/css-D4QDewkG.js +4 -0
- package/dist/cypher-CrYVqw_F.js +4 -0
- package/dist/d-Cr3H3pPx.js +4 -0
- package/dist/{dagre-6UL2VRFP-C2C2XxsB.js → dagre-6UL2VRFP-r2rSdJYL.js} +9 -9
- package/dist/{data-grid-overlay-editor-BXqtz1ia.js → data-grid-overlay-editor-BVFT970w.js} +2 -2
- package/dist/{diagram-PSM6KHXK-DHBY-94p.js → diagram-PSM6KHXK-BpxVUe9U.js} +10 -10
- package/dist/{diagram-QEK2KX5R-CgMshOwn.js → diagram-QEK2KX5R-q3dHUcp6.js} +5 -5
- package/dist/{diagram-S2PKOQOG-F1KPva3Y.js → diagram-S2PKOQOG-MDBKrxSC.js} +5 -5
- package/dist/diff-ODiZJGls.js +4 -0
- package/dist/dist-4YNZxwMI.js +8 -0
- package/dist/dist-7nR3r2kG.js +5 -0
- package/dist/{dist-CBA36Nuy.js → dist-B2-r9y-0.js} +109 -109
- package/dist/dist-B2gkyT3r.js +5 -0
- package/dist/{dist--JwRU9u5.js → dist-B4tYJP_i.js} +2 -2
- package/dist/{dist-DA1J6LvO.js → dist-B5ATpkxy.js} +2 -2
- package/dist/dist-B8G3I6vJ.js +8 -0
- package/dist/{dist-DKnxaCRl.js → dist-B94MxrQS.js} +2 -2
- package/dist/dist-BJ96Ykfp.js +8 -0
- package/dist/dist-BKLIWGw4.js +5 -0
- package/dist/{dist-l0KayR2-.js → dist-BLwfpZD-.js} +2 -2
- package/dist/{dist-C_Kw_Kc0.js → dist-BYmtF1W6.js} +2 -2
- package/dist/{dist-Cpj5BHNP.js → dist-BbBnU4tG.js} +1 -1
- package/dist/dist-Bf3ou00A.js +6 -0
- package/dist/{dist-CITQGRtG.js → dist-BfactX3G.js} +4 -4
- package/dist/{dist-CsN7lsea.js → dist-BoAHOW2l.js} +2 -2
- package/dist/{dist-BcXuIt-h.js → dist-Bsv_ARko.js} +4 -4
- package/dist/dist-BvkKXuPm.js +5 -0
- package/dist/{dist-DsqQCNKw.js → dist-C2-m5aEk.js} +119 -119
- package/dist/dist-C6NJ3n6r.js +5 -0
- package/dist/{dist-DIVeCGlI.js → dist-CC9VUnXd.js} +1 -1
- package/dist/{dist-BKGWAN8J.js → dist-CE43BRmt.js} +1 -1
- package/dist/{dist-COp5dkis.js → dist-CJrHMxlI.js} +31 -31
- package/dist/{dist-BbQ-5HAA.js → dist-CPTE45iS.js} +1 -1
- package/dist/{dist-9trj4p6n.js → dist-CcOGT46m.js} +27 -27
- package/dist/dist-CecLPYY5.js +5 -0
- package/dist/{dist-BSMZYwqW.js → dist-Cgf353Ki.js} +1 -1
- package/dist/dist-Ch0SwRzK.js +5 -0
- package/dist/{dist-C6p7UKkB.js → dist-CkEUrAus.js} +2 -2
- package/dist/{dist-MFzhAmKV.js → dist-CmZYrgd_.js} +1 -1
- package/dist/{dist-b7Sc3Tj8.js → dist-Crk9ejOy.js} +4 -4
- package/dist/dist-D6eWHiFh.js +6 -0
- package/dist/dist-DCQ710Bv.js +5 -0
- package/dist/{dist-r6N_0WG-.js → dist-DOil6y-3.js} +4 -4
- package/dist/{dist-CPd_adhw.js → dist-Dc1SFk5I.js} +2 -2
- package/dist/dist-Dit9tk8a.js +1242 -0
- package/dist/{dist-B7NoEgR4.js → dist-DqJdzAYM.js} +2 -2
- package/dist/dist-P_pkS5f-.js +8 -0
- package/dist/{dist--Em7gfgX.js → dist-T4g7Sr6e.js} +3 -3
- package/dist/{dist-BhBtK2sL.js → dist-glA_fIK_.js} +2 -2
- package/dist/{dist-9J8_3DZN.js → dist-iiugPhCC.js} +1 -1
- package/dist/{dist-D7jHtwN8.js → dist-r8ecBV-v.js} +135 -65
- package/dist/{dist-BlRm4v0e.js → dist-yVJ4xE5n.js} +5 -5
- package/dist/{dockerfile-BBT_Ira6.js → dockerfile-D1Q_4uCN.js} +1 -1
- package/dist/dtd-C-t2Rk7F.js +4 -0
- package/dist/dylan-B4ctBLGp.js +4 -0
- package/dist/ecl-DqWfymni.js +4 -0
- package/dist/eiffel-DjBKKAr7.js +4 -0
- package/dist/elm--fxeC0FV.js +4 -0
- package/dist/{erDiagram-Q2GNP2WA-18gGng8V.js → erDiagram-Q2GNP2WA-CX1XdqVD.js} +13 -13
- package/dist/erlang-CaKXCX6H.js +4 -0
- package/dist/{esm-CgRNPmz8.js → esm-BAS2d2Ad.js} +1503 -1536
- package/dist/{factor-DdqWbSyy.js → factor--4HHM8Rw.js} +1 -1
- package/dist/factor-DlLO5EFS.js +4 -0
- package/dist/{flowDiagram-NV44I4VS-iHFiHYe0.js → flowDiagram-NV44I4VS-BCj-ONTw.js} +15 -15
- package/dist/forth-rOO6LVj_.js +4 -0
- package/dist/fortran-CUg15VGR.js +4 -0
- package/dist/{ganttDiagram-JELNMOA3-D7GixxiF.js → ganttDiagram-JELNMOA3-D1l5ewiQ.js} +8 -8
- package/dist/gas-BMRJspiW.js +4 -0
- package/dist/gherkin-DRxzijZU.js +4 -0
- package/dist/{gitGraphDiagram-NY62KEGX-CJFHytRK.js → gitGraphDiagram-NY62KEGX-KdZh0iiW.js} +5 -5
- package/dist/{glide-data-editor-BYwb17Bf.js → glide-data-editor-2RvcPqmc.js} +75 -76
- package/dist/groovy-BmrQ8pUP.js +4 -0
- package/dist/haskell-BuaYfKOz.js +4 -0
- package/dist/haxe-DcH9eA0a.js +5 -0
- package/dist/idl-DGlcm4Ls.js +4 -0
- package/dist/{infoDiagram-WHAUD3N6-B5Lkh3A9.js → infoDiagram-WHAUD3N6-PSH7lQ0D.js} +3 -3
- package/dist/javascript-CeTk7rzr.js +4 -0
- package/dist/{journeyDiagram-XKPGCS4Q-CV_9R9iP.js → journeyDiagram-XKPGCS4Q-BrTAxQ1J.js} +5 -5
- package/dist/julia-BoP_q1gm.js +4 -0
- package/dist/{kanban-definition-3W4ZIXB7-Dp21D5Ym.js → kanban-definition-3W4ZIXB7-BoYCDp_9.js} +10 -10
- package/dist/{katex-CX2BKujk.js → katex-DaGuLbVh.js} +1 -1
- package/dist/{line-LK_5q2B9.js → line-Bc27KE1D.js} +3 -3
- package/dist/{linear-vWf1Qj0e.js → linear-Bnc6E9kA.js} +4 -4
- package/dist/livescript-B7IMN-ba.js +4 -0
- package/dist/{loader-B0KEFFi-.js → loader-C0-eIoas.js} +1 -1
- package/dist/lua-q1InavKb.js +4 -0
- package/dist/main.js +207 -204
- package/dist/mathematica-DvR8-_EI.js +4 -0
- package/dist/mbox-7h5MNBS_.js +4 -0
- package/dist/{mermaid-4DMBBIKO-BhDCqnO1.js → mermaid-4DMBBIKO-BmJdHPwx.js} +1 -1
- package/dist/{mermaid-B__BZSXU.js → mermaid-C2cSe5YL.js} +40 -40
- package/dist/{mhchem-w1tkUnWr.js → mhchem-B_tiMbKF.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-B_5mfdYp.js → mindmap-definition-VGOIOE7T-CmRjsKEt.js} +12 -12
- package/dist/mirc-D-XM8A5c.js +4 -0
- package/dist/mllike-BQGkkbmf.js +6 -0
- package/dist/modelica-D_yRj_WU.js +4 -0
- package/dist/mscgen-B-rltAjp.js +6 -0
- package/dist/mumps-2kh8TU2b.js +4 -0
- package/dist/{nsis-CunMjZ_n.js → nsis-B6EN9LWI.js} +1 -1
- package/dist/nsis-CtusEqwb.js +4 -0
- package/dist/ntriples-BdAXw6zV.js +4 -0
- package/dist/{number-overlay-editor-D-4WQAGX.js → number-overlay-editor-DKVJgXpp.js} +1 -1
- package/dist/octave-CsNFmVp5.js +4 -0
- package/dist/{ordinal-IlASfRja.js → ordinal-DLLbwLkP.js} +1 -1
- package/dist/oz-odIXCrKd.js +4 -0
- package/dist/pascal-B9Mfk3Fo.js +4 -0
- package/dist/perl-C48inLcz.js +4 -0
- package/dist/{pieDiagram-ADFJNKIX-B-DGEopK.js → pieDiagram-ADFJNKIX-CtxQlnsU.js} +10 -10
- package/dist/pig-uwRtAssU.js +4 -0
- package/dist/powershell-CXqlca-i.js +4 -0
- package/dist/{precisionRound-CGLoV26P.js → precisionRound-Duzbr5ur.js} +1 -1
- package/dist/properties-D6Zu1rpK.js +4 -0
- package/dist/protobuf-BlNNWZaR.js +4 -0
- package/dist/pug-DytcK7bv.js +4 -0
- package/dist/{pug-Dr-sA_9V.js → pug-xrm7jQ2R.js} +1 -1
- package/dist/puppet-lJ8Ok3iY.js +4 -0
- package/dist/python-cMaF7kUp.js +4 -0
- package/dist/q-Dgt2HYQh.js +4 -0
- package/dist/{quadrantDiagram-AYHSOK5B-M_yRSIZn.js → quadrantDiagram-AYHSOK5B-DllnB2Hl.js} +4 -4
- package/dist/r-Bm4S4awf.js +4 -0
- package/dist/react-vega-1ub36dPZ.js +9 -0
- package/dist/{react-vega-DLFvGrpJ.js → react-vega-CCNu2JE0.js} +18 -18
- package/dist/{requirementDiagram-UZGBJVZJ-9Wt82hOZ.js → requirementDiagram-UZGBJVZJ-D36MI1k0.js} +12 -12
- package/dist/rpm-_8LbzMVc.js +5 -0
- package/dist/ruby-Cr8IJ5VZ.js +4 -0
- package/dist/{sankeyDiagram-TZEHDZUN-x_aTXZeN.js → sankeyDiagram-TZEHDZUN-D1mygNPC.js} +4 -4
- package/dist/sas-CFcSfo2_.js +4 -0
- package/dist/scheme-N4XRoKgc.js +4 -0
- package/dist/{sequenceDiagram-WL72ISMW-CXXmJqiQ.js → sequenceDiagram-WL72ISMW-CWdn91Rf.js} +6 -6
- package/dist/shell-B4L7f_ds.js +4 -0
- package/dist/sieve-UI6J3Gm0.js +4 -0
- package/dist/smalltalk-BuaPZAZU.js +4 -0
- package/dist/sparql-1rKrq463.js +4 -0
- package/dist/{src-szye8OCw.js → src-jICM_d2B.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-CiSKS_Mx.js → stateDiagram-FKZM4ZOC-CPxroWXd.js} +15 -15
- package/dist/{stateDiagram-v2-4FDKWEC3-A43Itnjp.js → stateDiagram-v2-4FDKWEC3-BpM9Q54b.js} +13 -13
- package/dist/{step-1PmBKr2y.js → step-BqVgkWtk.js} +1 -1
- package/dist/stylus-DvSovJEP.js +4 -0
- package/dist/swift-D-_E7Yyb.js +4 -0
- package/dist/tcl-Di5sAVHN.js +4 -0
- package/dist/textile-Benwt66z.js +4 -0
- package/dist/{time-DC4qQGmA.js → time-CrYsYnQU.js} +4 -4
- package/dist/{timeline-definition-IT6M3QCI-DR26eWb4.js → timeline-definition-IT6M3QCI-CVnRHx_t.js} +3 -3
- package/dist/toml-CeOvPOkY.js +4 -0
- package/dist/troff-DJN9hfgu.js +4 -0
- package/dist/ttcn-DQW2Psjf.js +4 -0
- package/dist/ttcn-cfg-zFG_MNpg.js +4 -0
- package/dist/turtle-DHRyNlSc.js +4 -0
- package/dist/{types-Bb-6p8hv.js → types-Ckva8JJq.js} +203 -156
- package/dist/{useDeepCompareMemoize-BhZZsis0.js → useDeepCompareMemoize-ChviuF5n.js} +1 -1
- package/dist/vb-CXWH9DD-.js +4 -0
- package/dist/vbscript-qr8qVck5.js +4 -0
- package/dist/{vega-component-DCxUyPnb.js → vega-component-CnG0vAjf.js} +7 -7
- package/dist/{vega-loader.browser-BJ1uJidF.js → vega-loader.browser-DqHiiBeQ.js} +3 -3
- package/dist/velocity-C_9pUJRx.js +4 -0
- package/dist/verilog-DxBstgBa.js +4 -0
- package/dist/vhdl-odUxAbE6.js +4 -0
- package/dist/webidl-Dfn5Rku4.js +4 -0
- package/dist/xquery-CrJs6SXr.js +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BcVxCRox.js → xychartDiagram-PRI3JC2R-BltwMWKC.js} +11 -11
- package/dist/yacas-B-uDDLZe.js +4 -0
- package/dist/z80-51gxgAXE.js +4 -0
- package/package.json +10 -11
- package/src/components/data-table/__tests__/columns.test.tsx +47 -0
- package/src/components/data-table/column-header.tsx +3 -0
- package/src/components/data-table/columns.tsx +17 -2
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -0
- package/src/core/codemirror/misc/__tests__/paste.test.ts +18 -0
- package/src/core/codemirror/misc/paste.ts +14 -10
- package/src/plugins/impl/chat/ChatPlugin.tsx +2 -0
- package/src/plugins/impl/chat/chat-ui.tsx +10 -1
- package/src/plugins/impl/plotly/Plot.tsx +171 -0
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +5 -10
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +1 -0
- package/src/plugins/impl/plotly/__tests__/usePlotlyLayout.test.ts +2 -1
- package/src/plugins/impl/plotly/parse-from-template.ts +1 -0
- package/src/plugins/impl/plotly/usePlotlyLayout.ts +2 -1
- package/src/theme/ThemeProvider.tsx +2 -0
- package/dist/apl-BuwKwesW.js +0 -4
- package/dist/asciiarmor-zAEd_wtn.js +0 -4
- package/dist/asn1-DWEA66J4.js +0 -4
- package/dist/brainfuck-mIPR6Ong.js +0 -4
- package/dist/classDiagram-2ON5EDUG-B9pkKjjc.js +0 -30
- package/dist/classDiagram-v2-WZHVMYZB-CRhhA0tV.js +0 -30
- package/dist/clojure-DkhhNHNQ.js +0 -4
- package/dist/cmake-1obPvqtc.js +0 -4
- package/dist/cobol-oWNTiXPE.js +0 -4
- package/dist/coffeescript-LtYUvf6r.js +0 -4
- package/dist/commonlisp-C_06qBYF.js +0 -4
- package/dist/crystal-CDJkbx14.js +0 -4
- package/dist/css-Bi_Nk0uN.js +0 -4
- package/dist/cypher-TrG0NvZ0.js +0 -4
- package/dist/d-CFKOrZsi.js +0 -4
- package/dist/diff-CfnSF48q.js +0 -4
- package/dist/dist-2OSzSqy2.js +0 -5
- package/dist/dist-B1H2TQGB.js +0 -8
- package/dist/dist-BNvasp6N.js +0 -5
- package/dist/dist-CFi_P6cs.js +0 -5
- package/dist/dist-CG4LWTPv.js +0 -8
- package/dist/dist-CHWVQZ6Z.js +0 -6
- package/dist/dist-C_8-swED.js +0 -5
- package/dist/dist-DIhtur5b.js +0 -5
- package/dist/dist-DoQ7RS4e.js +0 -5
- package/dist/dist-DsMd-F9h.js +0 -5
- package/dist/dist-DurmUshd.js +0 -8
- package/dist/dist-PZgrh2z6.js +0 -6
- package/dist/dist-g1p2PEVs.js +0 -1242
- package/dist/dist-wudNDAiO.js +0 -5
- package/dist/dist-zVskjQcA.js +0 -8
- package/dist/dtd-Ctw8_JkU.js +0 -4
- package/dist/dylan-f7rMBKDP.js +0 -4
- package/dist/ecl-C2h3oBMY.js +0 -4
- package/dist/eiffel-Ce81wv20.js +0 -4
- package/dist/elm-BVV8QQcc.js +0 -4
- package/dist/erlang-DjB35ZUh.js +0 -4
- package/dist/factor-CIcp3U2B.js +0 -4
- package/dist/forth-CVgjsHhD.js +0 -4
- package/dist/fortran-CcTXj0d_.js +0 -4
- package/dist/gas-JWpamkLf.js +0 -4
- package/dist/gherkin-BveSCSJV.js +0 -4
- package/dist/groovy-Np3AZt00.js +0 -4
- package/dist/haskell-CVfmFALm.js +0 -4
- package/dist/haxe-C10xkMLg.js +0 -5
- package/dist/idl-CKBSGnKC.js +0 -4
- package/dist/javascript-Cur-15Bn.js +0 -4
- package/dist/julia-BZZH2Gnx.js +0 -4
- package/dist/livescript-D_rTTm_U.js +0 -4
- package/dist/lua-Mf_Of7eV.js +0 -4
- package/dist/mathematica-DCYjugDb.js +0 -4
- package/dist/mbox-KBWrT8JD.js +0 -4
- package/dist/mirc-JwEQJ8Fb.js +0 -4
- package/dist/mllike-C7TxLvh6.js +0 -6
- package/dist/modelica-uvNgvUyw.js +0 -4
- package/dist/mscgen-CGnokp5x.js +0 -6
- package/dist/mumps-Dl9QdOZz.js +0 -4
- package/dist/nsis-BbDhbgPN.js +0 -4
- package/dist/ntriples-ChL1mlp7.js +0 -4
- package/dist/octave-B9ZGG6zv.js +0 -4
- package/dist/oz-XHEu31wr.js +0 -4
- package/dist/pascal-BxtYw-iH.js +0 -4
- package/dist/perl-Br5BgHPb.js +0 -4
- package/dist/pig-BByO2hBz.js +0 -4
- package/dist/powershell-Cd4Zaef3.js +0 -4
- package/dist/prop-types-C9QZf2SY.js +0 -51
- package/dist/properties-B-BOCIOl.js +0 -4
- package/dist/protobuf-CaLimlho.js +0 -4
- package/dist/pug-bonARSG6.js +0 -4
- package/dist/puppet-BSlT-3sc.js +0 -4
- package/dist/python-BIJhGYYP.js +0 -4
- package/dist/q-D9TX8A0B.js +0 -4
- package/dist/r-BXelX7Rl.js +0 -4
- package/dist/react-vega-3WcLHYC7.js +0 -9
- package/dist/rpm-BxAh9B1A.js +0 -5
- package/dist/ruby-BCZLQyhc.js +0 -4
- package/dist/sas-Bo7lsyNX.js +0 -4
- package/dist/scheme-Brhptkt-.js +0 -4
- package/dist/shell-fWWb8_qx.js +0 -4
- package/dist/sieve-Ba8_hMLn.js +0 -4
- package/dist/smalltalk-7sHxwMDT.js +0 -4
- package/dist/sparql-BBFrPJ7z.js +0 -4
- package/dist/stylus-CIB0KT46.js +0 -4
- package/dist/swift-CZinekXz.js +0 -4
- package/dist/tcl-DCHZJVq_.js +0 -4
- package/dist/textile-ThTMxgkN.js +0 -4
- package/dist/toml-DK17wlJ7.js +0 -4
- package/dist/troff-CuUAOgMy.js +0 -4
- package/dist/ttcn-DS2tj6rW.js +0 -4
- package/dist/ttcn-cfg-CdZGarnc.js +0 -4
- package/dist/turtle-Bkz-FLZ7.js +0 -4
- package/dist/vb-ITdOmxvR.js +0 -4
- package/dist/vbscript-B7oeGyfL.js +0 -4
- package/dist/velocity-D__EkuSd.js +0 -4
- package/dist/verilog-CPH50gr9.js +0 -4
- package/dist/vhdl-CQAwKCk_.js +0 -4
- package/dist/webidl-BnEptfVX.js +0 -4
- package/dist/xquery-D7eTv-CR.js +0 -4
- package/dist/yacas-0x1rX89s.js +0 -4
- package/dist/z80-B25SJVDf.js +0 -4
- /package/dist/{ImageComparisonComponent-DkEXPki_.js → ImageComparisonComponent-CRbA-1eg.js} +0 -0
- /package/dist/{apl-D9gTcP3Q.js → apl-Oc3bL26_.js} +0 -0
- /package/dist/{array-D7wW5QoO.js → array-CEIRxyh3.js} +0 -0
- /package/dist/{asciiarmor-mLyg-Z5h.js → asciiarmor-DTbPh2VI.js} +0 -0
- /package/dist/{asn1-AE7eHomk.js → asn1-CGhwu1Ri.js} +0 -0
- /package/dist/{brainfuck-Bdd6NcL6.js → brainfuck-CA0L8lRq.js} +0 -0
- /package/dist/{click-outside-container-DNfggvIW.js → click-outside-container-C_k38vlR.js} +0 -0
- /package/dist/{clike-D_s3fKg5.js → clike-CEtUBPHD.js} +0 -0
- /package/dist/{clojure-zTYBCd80.js → clojure-BszjvdGo.js} +0 -0
- /package/dist/{cmake-BnJV90fC.js → cmake-B2Gvps8b.js} +0 -0
- /package/dist/{cobol-CH0OZO8A.js → cobol-DuMch8nn.js} +0 -0
- /package/dist/{coffeescript-CLhc1U6Q.js → coffeescript-L9aKXVsJ.js} +0 -0
- /package/dist/{colors-6DRQ0kEF.js → colors-DR_aHfmQ.js} +0 -0
- /package/dist/{commonlisp-8K2-IkUD.js → commonlisp-CrtdssxB.js} +0 -0
- /package/dist/{crystal-8to4H-ep.js → crystal-vvNY0LpY.js} +0 -0
- /package/dist/{css-BVo-JOy5.js → css-B1GdzqT1.js} +0 -0
- /package/dist/{cypher-BTFaDDd_.js → cypher-BtZvV7bW.js} +0 -0
- /package/dist/{d-c9bddW2W.js → d-B0UN3V-Z.js} +0 -0
- /package/dist/{defaultLocale-Bxoo2-30.js → defaultLocale-B_A76Zpk.js} +0 -0
- /package/dist/{defaultLocale-qS7DaAmi.js → defaultLocale-DjFHq3Xk.js} +0 -0
- /package/dist/{diff-PA28xMKg.js → diff-DOpgjj1W.js} +0 -0
- /package/dist/{dist-BBYTEAvO.js → dist-DF_77D2B.js} +0 -0
- /package/dist/{dtd-DRlC7Bx8.js → dtd-Ctnjxrle.js} +0 -0
- /package/dist/{dylan-d5ufc25E.js → dylan-DFXkoaZy.js} +0 -0
- /package/dist/{ecl-Ci3afVKc.js → ecl-C1NExZip.js} +0 -0
- /package/dist/{eiffel-G6DmeEi3.js → eiffel-uXVGgleg.js} +0 -0
- /package/dist/{elm-ByYWHu8b.js → elm-CBOFnnib.js} +0 -0
- /package/dist/{erlang-C7_LcVDw.js → erlang-DMnrT8XK.js} +0 -0
- /package/dist/{esm-CAd2HmbR.js → esm-0_ieXYNc.js} +0 -0
- /package/dist/{forth-BgUerAyz.js → forth-DDpxS4nw.js} +0 -0
- /package/dist/{fortran-BCXxm4xF.js → fortran-B6uYqQMz.js} +0 -0
- /package/dist/{gas-CKTQRKLl.js → gas-BKnWzuFz.js} +0 -0
- /package/dist/{gherkin-ByVP9cY_.js → gherkin-pBt0wT4X.js} +0 -0
- /package/dist/{groovy-BPbrw0GZ.js → groovy-DKsn4ppB.js} +0 -0
- /package/dist/{haskell-B8fq1DW4.js → haskell-BJVBJQcy.js} +0 -0
- /package/dist/{haxe-B7SHQmJo.js → haxe-rLN5UZU5.js} +0 -0
- /package/dist/{idl-CeJBDjsl.js → idl-B4mwMAo-.js} +0 -0
- /package/dist/{init-BfRhston.js → init-TaqZJsBY.js} +0 -0
- /package/dist/{javascript-dCv9_Kn8.js → javascript-Hf2NLNC0.js} +0 -0
- /package/dist/{julia-CD5lO88_.js → julia-GGpx21YN.js} +0 -0
- /package/dist/{katex-Db0k5oV_.js → katex-Ba7xZPrx.js} +0 -0
- /package/dist/{livescript-Cc8RvFBv.js → livescript-CSvXMspZ.js} +0 -0
- /package/dist/{lua-4nedfnvd.js → lua-CVMR5LMW.js} +0 -0
- /package/dist/{math-BbMyrONz.js → math-CTnb-N1W.js} +0 -0
- /package/dist/{mathematica-BIufdZr2.js → mathematica-JENNt-p4.js} +0 -0
- /package/dist/{mbox-DQkYSHKe.js → mbox-mzifoc8E.js} +0 -0
- /package/dist/{mirc-CI-RWqUR.js → mirc-BXoiItvN.js} +0 -0
- /package/dist/{mllike-DQzbf1xo.js → mllike-H-KR9OuH.js} +0 -0
- /package/dist/{modelica-BnF_cDWj.js → modelica-B6Hm3mMl.js} +0 -0
- /package/dist/{mscgen-MirFrDhW.js → mscgen-D8TF_Hei.js} +0 -0
- /package/dist/{mumps-eNRTuWOD.js → mumps-CD-kNPt4.js} +0 -0
- /package/dist/{ntriples-BLneip4i.js → ntriples-DgnpxU40.js} +0 -0
- /package/dist/{octave-C0eG-pKq.js → octave-CkobqyVm.js} +0 -0
- /package/dist/{oz-BPMLow2T.js → oz-ChDLd9tS.js} +0 -0
- /package/dist/{pascal-5eb9v5Dl.js → pascal-CvlkwK7E.js} +0 -0
- /package/dist/{path-C_x2ySFi.js → path-7gr7eZmp.js} +0 -0
- /package/dist/{perl-DOu6rCkF.js → perl-BNEFTNbM.js} +0 -0
- /package/dist/{pig-CRW0kne3.js → pig-Cd1DMS7P.js} +0 -0
- /package/dist/{powershell-CWgJhiiJ.js → powershell-CPxA0zpc.js} +0 -0
- /package/dist/{properties-CHxpmfXW.js → properties-BaFBm-Xa.js} +0 -0
- /package/dist/{protobuf-DGUXb_-T.js → protobuf-BQV_-X0H.js} +0 -0
- /package/dist/{puppet-C7uSiW6_.js → puppet-LXLST0mx.js} +0 -0
- /package/dist/{python-DAbhVcUr.js → python-DLjLzX4k.js} +0 -0
- /package/dist/{q-DKjWHias.js → q-DswTX1Y9.js} +0 -0
- /package/dist/{r-KD2KhyeL.js → r-CO7NpMwE.js} +0 -0
- /package/dist/{range-BYuZFTbA.js → range-DwpxnYuB.js} +0 -0
- /package/dist/{rpm-GFtnpQ6M.js → rpm-BlmEDT6r.js} +0 -0
- /package/dist/{ruby-CBAewzLY.js → ruby-BTPKgeZZ.js} +0 -0
- /package/dist/{sas-CCi_AaZi.js → sas-DTDTiNO8.js} +0 -0
- /package/dist/{scheme-CGGGD6kR.js → scheme-UzAAg4GJ.js} +0 -0
- /package/dist/{shell-b7vZ8ucI.js → shell-DQ0hQCsB.js} +0 -0
- /package/dist/{sieve-ClXOUV85.js → sieve-BVyYIx9u.js} +0 -0
- /package/dist/{simple-mode-Uad4lEG7.js → simple-mode-Dryu-fC9.js} +0 -0
- /package/dist/{slides-component-Dp-y50K9.js → slides-component-DfwLApNr.js} +0 -0
- /package/dist/{smalltalk-_PFt9_gp.js → smalltalk-DAdMAHTu.js} +0 -0
- /package/dist/{sparql-BCF6qcHt.js → sparql-Bi7quYgw.js} +0 -0
- /package/dist/{stylus-DMFZWz-G.js → stylus-jhpzcQ6Y.js} +0 -0
- /package/dist/{swift-De2YpSxT.js → swift-BrO8qThZ.js} +0 -0
- /package/dist/{tcl-jV8Xs_1k.js → tcl-s5QI5gv3.js} +0 -0
- /package/dist/{textile-D_zo778l.js → textile-ClhvJrxM.js} +0 -0
- /package/dist/{timer-pEiW44EO.js → timer-DV8t68ti.js} +0 -0
- /package/dist/{toml-_M0gsKn5.js → toml-TFa3EJQE.js} +0 -0
- /package/dist/{treemap-BzS5cW_6.js → treemap-CQJ0bIDy.js} +0 -0
- /package/dist/{troff-B06gyD33.js → troff-SqLg0heF.js} +0 -0
- /package/dist/{ttcn-DoQoQNUM.js → ttcn-Cfrap7HJ.js} +0 -0
- /package/dist/{ttcn-cfg-l_6PksD2.js → ttcn-cfg-Dopc-iwE.js} +0 -0
- /package/dist/{turtle-zEnD4bpn.js → turtle-Dt52DvVH.js} +0 -0
- /package/dist/{useAsyncData-Dyq3DyOF.js → useAsyncData-dr8GazGv.js} +0 -0
- /package/dist/{vb-fUsnAuzb.js → vb-D1pAvfDe.js} +0 -0
- /package/dist/{vbscript-CVlD7uZQ.js → vbscript-DZ7RBxn5.js} +0 -0
- /package/dist/{velocity-CHkEIdMC.js → velocity-Csau7eZy.js} +0 -0
- /package/dist/{verilog-B3ctZTB4.js → verilog-gXlZACs5.js} +0 -0
- /package/dist/{vhdl-rXdBgR5O.js → vhdl-NaUWbI1B.js} +0 -0
- /package/dist/{webidl-Cv9aQfcc.js → webidl-BJmPjW01.js} +0 -0
- /package/dist/{xquery-Du0w47aa.js → xquery-CJIPsC0g.js} +0 -0
- /package/dist/{yacas-Eq4p_g3L.js → yacas-8f2Vjiiz.js} +0 -0
- /package/dist/{z80-Dz4HTTRf.js → z80-s5Xk2hCP.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, P as sublanguageProp, S as foldInside,
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { B as tags, Et as EditorSelection, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, P as sublanguageProp, S as foldInside, V as IterMode, Z as EditorView, _ as defineLanguageFacet, h as continuedIndent, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
|
+
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-Dit9tk8a.js";
|
|
3
3
|
var noSemi = 315, noSemiType = 316, incdec = 1, incdecPrefix = 2, questionDot = 3, JSXStartTag = 4, insertSemi = 317, spaces = 319, newline = 320, LineComment = 5, BlockComment = 6, Dialect_jsx = 0, space = [
|
|
4
4
|
9,
|
|
5
5
|
10,
|
|
@@ -28,52 +28,52 @@ var noSemi = 315, noSemiType = 316, incdec = 1, incdecPrefix = 2, questionDot =
|
|
|
28
28
|
12288
|
|
29
29
|
], braceR = 125, semicolon = 59, slash = 47, star = 42, plus = 43, minus = 45, lt = 60, comma = 44, question = 63, dot = 46, bracketL = 91, trackNewline = new ContextTracker({
|
|
30
30
|
start: false,
|
|
31
|
-
shift(
|
|
32
|
-
return
|
|
31
|
+
shift(g, G) {
|
|
32
|
+
return G == LineComment || G == BlockComment || G == spaces ? g : G == newline;
|
|
33
33
|
},
|
|
34
34
|
strict: false
|
|
35
|
-
}), insertSemicolon = new ExternalTokenizer((
|
|
36
|
-
let { next:
|
|
37
|
-
(
|
|
35
|
+
}), insertSemicolon = new ExternalTokenizer((g, G) => {
|
|
36
|
+
let { next: K } = g;
|
|
37
|
+
(K == braceR || K == -1 || G.context) && g.acceptToken(insertSemi);
|
|
38
38
|
}, {
|
|
39
39
|
contextual: true,
|
|
40
40
|
fallback: true
|
|
41
|
-
}), noSemicolon = new ExternalTokenizer((
|
|
42
|
-
let { next:
|
|
43
|
-
space.indexOf(
|
|
44
|
-
}, { contextual: true }), noSemicolonType = new ExternalTokenizer((
|
|
45
|
-
|
|
46
|
-
}, { contextual: true }), operatorToken = new ExternalTokenizer((
|
|
47
|
-
let { next:
|
|
48
|
-
if (
|
|
49
|
-
if (
|
|
50
|
-
|
|
51
|
-
let
|
|
52
|
-
|
|
41
|
+
}), noSemicolon = new ExternalTokenizer((g, G) => {
|
|
42
|
+
let { next: K } = g, q;
|
|
43
|
+
space.indexOf(K) > -1 || K == slash && ((q = g.peek(1)) == slash || q == star) || K != braceR && K != semicolon && K != -1 && !G.context && g.acceptToken(noSemi);
|
|
44
|
+
}, { contextual: true }), noSemicolonType = new ExternalTokenizer((g, G) => {
|
|
45
|
+
g.next == bracketL && !G.context && g.acceptToken(noSemiType);
|
|
46
|
+
}, { contextual: true }), operatorToken = new ExternalTokenizer((g, G) => {
|
|
47
|
+
let { next: K } = g;
|
|
48
|
+
if (K == plus || K == minus) {
|
|
49
|
+
if (g.advance(), K == g.next) {
|
|
50
|
+
g.advance();
|
|
51
|
+
let K2 = !G.context && G.canShift(incdec);
|
|
52
|
+
g.acceptToken(K2 ? incdec : incdecPrefix);
|
|
53
53
|
}
|
|
54
|
-
} else
|
|
54
|
+
} else K == question && g.peek(1) == dot && (g.advance(), g.advance(), (g.next < 48 || g.next > 57) && g.acceptToken(questionDot));
|
|
55
55
|
}, { contextual: true });
|
|
56
|
-
function identifierChar(
|
|
57
|
-
return
|
|
56
|
+
function identifierChar(g, G) {
|
|
57
|
+
return g >= 65 && g <= 90 || g >= 97 && g <= 122 || g == 95 || g >= 192 || !G && g >= 48 && g <= 57;
|
|
58
58
|
}
|
|
59
|
-
var jsx = new ExternalTokenizer((
|
|
60
|
-
if (
|
|
61
|
-
let
|
|
62
|
-
for (; space.indexOf(
|
|
63
|
-
if (identifierChar(
|
|
64
|
-
for (
|
|
65
|
-
for (; space.indexOf(
|
|
66
|
-
if (
|
|
67
|
-
for (let
|
|
68
|
-
if (
|
|
69
|
-
if (!identifierChar(
|
|
59
|
+
var jsx = new ExternalTokenizer((g, G) => {
|
|
60
|
+
if (g.next != lt || !G.dialectEnabled(Dialect_jsx) || (g.advance(), g.next == slash)) return;
|
|
61
|
+
let K = 0;
|
|
62
|
+
for (; space.indexOf(g.next) > -1; ) g.advance(), K++;
|
|
63
|
+
if (identifierChar(g.next, true)) {
|
|
64
|
+
for (g.advance(), K++; identifierChar(g.next, false); ) g.advance(), K++;
|
|
65
|
+
for (; space.indexOf(g.next) > -1; ) g.advance(), K++;
|
|
66
|
+
if (g.next == comma) return;
|
|
67
|
+
for (let G2 = 0; ; G2++) {
|
|
68
|
+
if (G2 == 7) {
|
|
69
|
+
if (!identifierChar(g.next, true)) return;
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
|
-
if (
|
|
73
|
-
|
|
72
|
+
if (g.next != "extends".charCodeAt(G2)) break;
|
|
73
|
+
g.advance(), K++;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
76
|
+
g.acceptToken(JSXStartTag, -K);
|
|
77
77
|
}), jsHighlight = styleTags({
|
|
78
78
|
"get set async static": tags.modifier,
|
|
79
79
|
"for while do if else switch try catch finally return throw break continue default case": tags.controlKeyword,
|
|
@@ -416,15 +416,15 @@ var jsx = new ExternalTokenizer((_, K) => {
|
|
|
416
416
|
specialized: [
|
|
417
417
|
{
|
|
418
418
|
term: 326,
|
|
419
|
-
get: (
|
|
419
|
+
get: (g) => spec_identifier[g] || -1
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
term: 342,
|
|
423
|
-
get: (
|
|
423
|
+
get: (g) => spec_word[g] || -1
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
term: 95,
|
|
427
|
-
get: (
|
|
427
|
+
get: (g) => spec_LessThan[g] || -1
|
|
428
428
|
}
|
|
429
429
|
],
|
|
430
430
|
tokenPrec: 15124
|
|
@@ -509,10 +509,10 @@ var jsx = new ExternalTokenizer((_, K) => {
|
|
|
509
509
|
"MethodDeclaration",
|
|
510
510
|
"ForStatement"
|
|
511
511
|
]);
|
|
512
|
-
function defID(
|
|
513
|
-
return (
|
|
514
|
-
let
|
|
515
|
-
return
|
|
512
|
+
function defID(g) {
|
|
513
|
+
return (G, K) => {
|
|
514
|
+
let q = G.node.getChild("VariableDefinition");
|
|
515
|
+
return q && K(q, g), true;
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
var functionContext = ["FunctionDeclaration"], gatherCompletions = {
|
|
@@ -522,35 +522,35 @@ var functionContext = ["FunctionDeclaration"], gatherCompletions = {
|
|
|
522
522
|
EnumDeclaration: /* @__PURE__ */ defID("constant"),
|
|
523
523
|
TypeAliasDeclaration: /* @__PURE__ */ defID("type"),
|
|
524
524
|
NamespaceDeclaration: /* @__PURE__ */ defID("namespace"),
|
|
525
|
-
VariableDefinition(
|
|
526
|
-
|
|
525
|
+
VariableDefinition(g, G) {
|
|
526
|
+
g.matchContext(functionContext) || G(g, "variable");
|
|
527
527
|
},
|
|
528
|
-
TypeDefinition(
|
|
529
|
-
|
|
528
|
+
TypeDefinition(g, G) {
|
|
529
|
+
G(g, "type");
|
|
530
530
|
},
|
|
531
531
|
__proto__: null
|
|
532
532
|
};
|
|
533
|
-
function getScope(
|
|
534
|
-
let
|
|
535
|
-
if (
|
|
536
|
-
let
|
|
537
|
-
function
|
|
538
|
-
let
|
|
539
|
-
|
|
540
|
-
label:
|
|
541
|
-
type:
|
|
533
|
+
function getScope(g, G) {
|
|
534
|
+
let K = cache.get(G);
|
|
535
|
+
if (K) return K;
|
|
536
|
+
let q = [], J = true;
|
|
537
|
+
function Y(G2, K2) {
|
|
538
|
+
let J2 = g.sliceString(G2.from, G2.to);
|
|
539
|
+
q.push({
|
|
540
|
+
label: J2,
|
|
541
|
+
type: K2
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
|
-
return
|
|
545
|
-
if (
|
|
546
|
-
else if (
|
|
547
|
-
let
|
|
548
|
-
if (
|
|
549
|
-
} else if (
|
|
550
|
-
for (let
|
|
544
|
+
return G.cursor(IterMode.IncludeAnonymous).iterate((G2) => {
|
|
545
|
+
if (J) J = false;
|
|
546
|
+
else if (G2.name) {
|
|
547
|
+
let g2 = gatherCompletions[G2.name];
|
|
548
|
+
if (g2 && g2(G2, Y) || ScopeNodes.has(G2.name)) return false;
|
|
549
|
+
} else if (G2.to - G2.from > 8192) {
|
|
550
|
+
for (let K2 of getScope(g, G2.node)) q.push(K2);
|
|
551
551
|
return false;
|
|
552
552
|
}
|
|
553
|
-
}), cache.set(
|
|
553
|
+
}), cache.set(G, q), q;
|
|
554
554
|
}
|
|
555
555
|
var Identifier = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, dontComplete = [
|
|
556
556
|
"TemplateString",
|
|
@@ -573,16 +573,16 @@ var Identifier = /^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/, dontComplete = [
|
|
|
573
573
|
".",
|
|
574
574
|
"?."
|
|
575
575
|
];
|
|
576
|
-
function localCompletionSource(
|
|
577
|
-
let
|
|
578
|
-
if (dontComplete.indexOf(
|
|
579
|
-
let
|
|
580
|
-
if (!
|
|
581
|
-
let
|
|
582
|
-
for (let
|
|
576
|
+
function localCompletionSource(g) {
|
|
577
|
+
let G = syntaxTree(g.state).resolveInner(g.pos, -1);
|
|
578
|
+
if (dontComplete.indexOf(G.name) > -1) return null;
|
|
579
|
+
let K = G.name == "VariableName" || G.to - G.from < 20 && Identifier.test(g.state.sliceDoc(G.from, G.to));
|
|
580
|
+
if (!K && !g.explicit) return null;
|
|
581
|
+
let J = [];
|
|
582
|
+
for (let K2 = G; K2; K2 = K2.parent) ScopeNodes.has(K2.name) && (J = J.concat(getScope(g.state.doc, K2)));
|
|
583
583
|
return {
|
|
584
|
-
options:
|
|
585
|
-
from:
|
|
584
|
+
options: J,
|
|
585
|
+
from: K ? G.from : g.pos,
|
|
586
586
|
validFor: Identifier
|
|
587
587
|
};
|
|
588
588
|
}
|
|
@@ -592,31 +592,31 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
592
592
|
IfStatement: /* @__PURE__ */ continuedIndent({ except: /^\s*({|else\b)/ }),
|
|
593
593
|
TryStatement: /* @__PURE__ */ continuedIndent({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
594
594
|
LabeledStatement: flatIndent,
|
|
595
|
-
SwitchBody: (
|
|
596
|
-
let
|
|
597
|
-
return
|
|
595
|
+
SwitchBody: (g) => {
|
|
596
|
+
let G = g.textAfter, K = /^\s*\}/.test(G), q = /^\s*(case|default)\b/.test(G);
|
|
597
|
+
return g.baseIndent + (K ? 0 : q ? 1 : 2) * g.unit;
|
|
598
598
|
},
|
|
599
599
|
Block: /* @__PURE__ */ delimitedIndent({ closing: "}" }),
|
|
600
|
-
ArrowFunction: (
|
|
600
|
+
ArrowFunction: (g) => g.baseIndent + g.unit,
|
|
601
601
|
"TemplateString BlockComment": () => null,
|
|
602
602
|
"Statement Property": /* @__PURE__ */ continuedIndent({ except: /^\s*{/ }),
|
|
603
|
-
JSXElement(
|
|
604
|
-
let
|
|
605
|
-
return
|
|
603
|
+
JSXElement(g) {
|
|
604
|
+
let G = /^\s*<\//.test(g.textAfter);
|
|
605
|
+
return g.lineIndent(g.node.from) + (G ? 0 : g.unit);
|
|
606
606
|
},
|
|
607
|
-
JSXEscape(
|
|
608
|
-
let
|
|
609
|
-
return
|
|
607
|
+
JSXEscape(g) {
|
|
608
|
+
let G = /\s*\}/.test(g.textAfter);
|
|
609
|
+
return g.lineIndent(g.node.from) + (G ? 0 : g.unit);
|
|
610
610
|
},
|
|
611
|
-
"JSXOpenTag JSXSelfClosingTag"(
|
|
612
|
-
return
|
|
611
|
+
"JSXOpenTag JSXSelfClosingTag"(g) {
|
|
612
|
+
return g.column(g.node.from) + g.unit;
|
|
613
613
|
}
|
|
614
614
|
}), /* @__PURE__ */ foldNodeProp.add({
|
|
615
615
|
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": foldInside,
|
|
616
|
-
BlockComment(
|
|
616
|
+
BlockComment(g) {
|
|
617
617
|
return {
|
|
618
|
-
from:
|
|
619
|
-
to:
|
|
618
|
+
from: g.from + 2,
|
|
619
|
+
to: g.to - 2
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
})] }),
|
|
@@ -640,19 +640,19 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
640
640
|
wordChars: "$"
|
|
641
641
|
}
|
|
642
642
|
}), jsxSublanguage = {
|
|
643
|
-
test: (
|
|
643
|
+
test: (g) => /^JSX/.test(g.name),
|
|
644
644
|
facet: /* @__PURE__ */ defineLanguageFacet({ commentTokens: { block: {
|
|
645
645
|
open: "{/*",
|
|
646
646
|
close: "*/}"
|
|
647
647
|
} } })
|
|
648
648
|
}, typescriptLanguage = /* @__PURE__ */ javascriptLanguage.configure({ dialect: "ts" }, "typescript"), jsxLanguage = /* @__PURE__ */ javascriptLanguage.configure({
|
|
649
649
|
dialect: "jsx",
|
|
650
|
-
props: [/* @__PURE__ */ sublanguageProp.add((
|
|
650
|
+
props: [/* @__PURE__ */ sublanguageProp.add((g) => g.isTop ? [jsxSublanguage] : void 0)]
|
|
651
651
|
}), tsxLanguage = /* @__PURE__ */ javascriptLanguage.configure({
|
|
652
652
|
dialect: "jsx ts",
|
|
653
|
-
props: [/* @__PURE__ */ sublanguageProp.add((
|
|
654
|
-
}, "typescript"), kwCompletion = (
|
|
655
|
-
label:
|
|
653
|
+
props: [/* @__PURE__ */ sublanguageProp.add((g) => g.isTop ? [jsxSublanguage] : void 0)]
|
|
654
|
+
}, "typescript"), kwCompletion = (g) => ({
|
|
655
|
+
label: g,
|
|
656
656
|
type: "keyword"
|
|
657
657
|
}), keywords = /* @__PURE__ */ "break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kwCompletion), typescriptKeywords = /* @__PURE__ */ keywords.concat(/* @__PURE__ */ [
|
|
658
658
|
"declare",
|
|
@@ -661,54 +661,54 @@ var javascriptLanguage = /* @__PURE__ */ LRLanguage.define({
|
|
|
661
661
|
"protected",
|
|
662
662
|
"public"
|
|
663
663
|
].map(kwCompletion));
|
|
664
|
-
function javascript(
|
|
665
|
-
let
|
|
666
|
-
return new LanguageSupport(
|
|
667
|
-
javascriptLanguage.data.of({ autocomplete: ifNotIn(dontComplete, completeFromList(
|
|
664
|
+
function javascript(g = {}) {
|
|
665
|
+
let G = g.jsx ? g.typescript ? tsxLanguage : jsxLanguage : g.typescript ? typescriptLanguage : javascriptLanguage, K = g.typescript ? typescriptSnippets.concat(typescriptKeywords) : snippets.concat(keywords);
|
|
666
|
+
return new LanguageSupport(G, [
|
|
667
|
+
javascriptLanguage.data.of({ autocomplete: ifNotIn(dontComplete, completeFromList(K)) }),
|
|
668
668
|
javascriptLanguage.data.of({ autocomplete: localCompletionSource }),
|
|
669
|
-
|
|
669
|
+
g.jsx ? autoCloseTags : []
|
|
670
670
|
]);
|
|
671
671
|
}
|
|
672
|
-
function findOpenTag(
|
|
672
|
+
function findOpenTag(g) {
|
|
673
673
|
for (; ; ) {
|
|
674
|
-
if (
|
|
675
|
-
if (
|
|
676
|
-
|
|
674
|
+
if (g.name == "JSXOpenTag" || g.name == "JSXSelfClosingTag" || g.name == "JSXFragmentTag") return g;
|
|
675
|
+
if (g.name == "JSXEscape" || !g.parent) return null;
|
|
676
|
+
g = g.parent;
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
|
-
function elementName(
|
|
680
|
-
for (let
|
|
679
|
+
function elementName(g, G, K = g.length) {
|
|
680
|
+
for (let q = G == null ? void 0 : G.firstChild; q; q = q.nextSibling) if (q.name == "JSXIdentifier" || q.name == "JSXBuiltin" || q.name == "JSXNamespacedName" || q.name == "JSXMemberExpression") return g.sliceString(q.from, Math.min(q.to, K));
|
|
681
681
|
return "";
|
|
682
682
|
}
|
|
683
|
-
var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((
|
|
684
|
-
if ((android ?
|
|
685
|
-
let Z = X(), { state: Q } = Z, $ = Q.changeByRange((
|
|
683
|
+
var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navigator.userAgent), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, K, J, Y, X) => {
|
|
684
|
+
if ((android ? g.composing : g.compositionStarted) || g.state.readOnly || K != J || Y != ">" && Y != "/" || !javascriptLanguage.isActiveAt(g.state, K, -1)) return false;
|
|
685
|
+
let Z = X(), { state: Q } = Z, $ = Q.changeByRange((g2) => {
|
|
686
686
|
var _a;
|
|
687
|
-
let { head: K2 } =
|
|
687
|
+
let { head: K2 } = g2, J2 = syntaxTree(Q).resolveInner(K2 - 1, -1), X2;
|
|
688
688
|
if (J2.name == "JSXStartTag" && (J2 = J2.parent), !(Q.doc.sliceString(K2 - 1, K2) != Y || J2.name == "JSXAttributeValue" && J2.to > K2)) {
|
|
689
689
|
if (Y == ">" && J2.name == "JSXFragmentTag") return {
|
|
690
|
-
range:
|
|
690
|
+
range: g2,
|
|
691
691
|
changes: {
|
|
692
692
|
from: K2,
|
|
693
693
|
insert: "</>"
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
696
|
if (Y == "/" && J2.name == "JSXStartCloseTag") {
|
|
697
|
-
let
|
|
698
|
-
if (q &&
|
|
699
|
-
let
|
|
697
|
+
let g3 = J2.parent, q = g3.parent;
|
|
698
|
+
if (q && g3.from == K2 - 2 && ((X2 = elementName(Q.doc, q.firstChild, K2)) || ((_a = q.firstChild) == null ? void 0 : _a.name) == "JSXFragmentTag")) {
|
|
699
|
+
let g4 = `${X2}>`;
|
|
700
700
|
return {
|
|
701
|
-
range: EditorSelection.cursor(K2 +
|
|
701
|
+
range: EditorSelection.cursor(K2 + g4.length, -1),
|
|
702
702
|
changes: {
|
|
703
703
|
from: K2,
|
|
704
|
-
insert:
|
|
704
|
+
insert: g4
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
708
|
} else if (Y == ">") {
|
|
709
|
-
let
|
|
710
|
-
if (
|
|
711
|
-
range:
|
|
709
|
+
let G = findOpenTag(J2);
|
|
710
|
+
if (G && G.name == "JSXOpenTag" && !/^\/?>|^<\//.test(Q.doc.sliceString(K2, K2 + 2)) && (X2 = elementName(Q.doc, G, K2))) return {
|
|
711
|
+
range: g2,
|
|
712
712
|
changes: {
|
|
713
713
|
from: K2,
|
|
714
714
|
insert: `</${X2}>`
|
|
@@ -716,9 +716,9 @@ var android = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(n
|
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
return { range:
|
|
719
|
+
return { range: g2 };
|
|
720
720
|
});
|
|
721
|
-
return $.changes.empty ? false : (
|
|
721
|
+
return $.changes.empty ? false : (g.dispatch([Z, Q.update($, {
|
|
722
722
|
userEvent: "input.complete",
|
|
723
723
|
scrollIntoView: true
|
|
724
724
|
})]), true);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-
|
|
1
|
+
import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
2
|
var closureParamDelim = 1, tpOpen = 2, tpClose = 3, RawString = 4, Float = 5, _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48, Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;
|
|
3
3
|
function isNum(h) {
|
|
4
4
|
return h >= 48 && h <= 57;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as tags, O as indentNodeProp, S as foldInside, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-
|
|
1
|
+
import { B as tags, O as indentNodeProp, S as foldInside, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
2
|
var spec_Keyword = {
|
|
3
3
|
__proto__: null,
|
|
4
4
|
anyref: 34,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as tags, I as syntaxTree, J as parseMixed, O as indentNodeProp,
|
|
2
|
-
import { r as cssLanguage, t as css } from "./dist-
|
|
3
|
-
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-
|
|
1
|
+
import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
|
+
import { r as cssLanguage, t as css } from "./dist-Cgf353Ki.js";
|
|
3
|
+
import { c as typescriptLanguage, i as jsxLanguage, n as javascript, r as javascriptLanguage, s as tsxLanguage } from "./dist-C2-m5aEk.js";
|
|
4
4
|
var scriptText = 54, StartCloseScriptTag = 1, styleText = 55, StartCloseStyleTag = 2, textareaText = 56, StartCloseTextareaTag = 3, EndTag = 4, SelfClosingEndTag = 5, StartTag = 6, StartScriptTag = 7, StartStyleTag = 8, StartTextareaTag = 9, StartSelfClosingTag = 10, StartCloseTag = 11, NoMatchStartCloseTag = 12, MismatchedStartCloseTag = 13, missingCloseTag = 57, IncompleteCloseTag = 14, commentContent$1 = 58, Element = 20, TagName = 22, Attribute = 23, AttributeName = 24, AttributeValue = 26, UnquotedAttributeValue = 27, ScriptText = 28, StyleText = 31, TextareaText = 34, OpenTag = 36, CloseTag = 37, Dialect_noMatch = 0, Dialect_selfClosing = 1, selfClosers$1 = {
|
|
5
5
|
area: true,
|
|
6
6
|
base: true,
|
|
@@ -356,16 +356,16 @@ function maybeNest(g, G, K) {
|
|
|
356
356
|
return null;
|
|
357
357
|
}
|
|
358
358
|
function configureNesting(g = [], G = []) {
|
|
359
|
-
let
|
|
360
|
-
for (let G2 of g) (G2.tag == "script" ?
|
|
359
|
+
let K = [], J = [], Y = [], X = [];
|
|
360
|
+
for (let G2 of g) (G2.tag == "script" ? K : G2.tag == "style" ? J : G2.tag == "textarea" ? Y : X).push(G2);
|
|
361
361
|
let Z = G.length ? /* @__PURE__ */ Object.create(null) : null;
|
|
362
362
|
for (let g2 of G) (Z[g2.name] || (Z[g2.name] = [])).push(g2);
|
|
363
363
|
return parseMixed((g2, G2) => {
|
|
364
|
-
let
|
|
365
|
-
if (
|
|
366
|
-
if (
|
|
367
|
-
if (
|
|
368
|
-
if (
|
|
364
|
+
let q = g2.type.id;
|
|
365
|
+
if (q == ScriptText) return maybeNest(g2, G2, K);
|
|
366
|
+
if (q == StyleText) return maybeNest(g2, G2, J);
|
|
367
|
+
if (q == TextareaText) return maybeNest(g2, G2, Y);
|
|
368
|
+
if (q == Element && X.length) {
|
|
369
369
|
let K2 = g2.node, q2 = K2.firstChild, J2 = q2 && findTagName(q2, G2), Y2;
|
|
370
370
|
if (J2) {
|
|
371
371
|
for (let g3 of X) if (g3.tag == J2 && (!g3.attrs || g3.attrs(Y2 || (Y2 = getAttrs(q2, G2))))) {
|
|
@@ -380,7 +380,7 @@ function configureNesting(g = [], G = []) {
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
if (Z &&
|
|
383
|
+
if (Z && q == Attribute) {
|
|
384
384
|
let K2 = g2.node, q2;
|
|
385
385
|
if (q2 = K2.firstChild) {
|
|
386
386
|
let g3 = Z[G2.read(q2.from, q2.to)];
|
|
@@ -1170,14 +1170,14 @@ function completeAttrValue(g, G, K, q, J) {
|
|
|
1170
1170
|
validFor: Z
|
|
1171
1171
|
};
|
|
1172
1172
|
}
|
|
1173
|
-
function htmlCompletionFor(g,
|
|
1174
|
-
let { state: q, pos: J } =
|
|
1175
|
-
for (let g2 = J,
|
|
1176
|
-
let
|
|
1177
|
-
if (!
|
|
1178
|
-
X = Y =
|
|
1173
|
+
function htmlCompletionFor(g, G) {
|
|
1174
|
+
let { state: q, pos: J } = G, Y = syntaxTree(q).resolveInner(J, -1), X = Y.resolve(J);
|
|
1175
|
+
for (let g2 = J, G2; X == Y && (G2 = Y.childBefore(g2)); ) {
|
|
1176
|
+
let K = G2.lastChild;
|
|
1177
|
+
if (!K || !K.type.isError || K.from < K.to) break;
|
|
1178
|
+
X = Y = G2, g2 = K.from;
|
|
1179
1179
|
}
|
|
1180
|
-
return Y.name == "TagName" ? Y.parent && /CloseTag$/.test(Y.parent.name) ? completeCloseTag(q, Y, Y.from, J) : completeTag(q, g, Y, Y.from, J) : Y.name == "StartTag" ? completeTag(q, g, Y, J, J) : Y.name == "StartCloseTag" || Y.name == "IncompleteCloseTag" ? completeCloseTag(q, Y, J, J) : Y.name == "OpenTag" || Y.name == "SelfClosingTag" || Y.name == "AttributeName" ? completeAttrName(q, g, Y, Y.name == "AttributeName" ? Y.from : J, J) : Y.name == "Is" || Y.name == "AttributeValue" || Y.name == "UnquotedAttributeValue" ? completeAttrValue(q, g, Y, Y.name == "Is" ? J : Y.from, J) :
|
|
1180
|
+
return Y.name == "TagName" ? Y.parent && /CloseTag$/.test(Y.parent.name) ? completeCloseTag(q, Y, Y.from, J) : completeTag(q, g, Y, Y.from, J) : Y.name == "StartTag" ? completeTag(q, g, Y, J, J) : Y.name == "StartCloseTag" || Y.name == "IncompleteCloseTag" ? completeCloseTag(q, Y, J, J) : Y.name == "OpenTag" || Y.name == "SelfClosingTag" || Y.name == "AttributeName" ? completeAttrName(q, g, Y, Y.name == "AttributeName" ? Y.from : J, J) : Y.name == "Is" || Y.name == "AttributeValue" || Y.name == "UnquotedAttributeValue" ? completeAttrValue(q, g, Y, Y.name == "Is" ? J : Y.from, J) : G.explicit && (X.name == "Element" || X.name == "Text" || X.name == "Document") ? completeStartTag(q, g, Y, J) : null;
|
|
1181
1181
|
}
|
|
1182
1182
|
function htmlCompletionSource(g) {
|
|
1183
1183
|
return htmlCompletionFor(Schema.default, g);
|
|
@@ -1281,31 +1281,31 @@ function html(g = {}) {
|
|
|
1281
1281
|
css().support
|
|
1282
1282
|
]);
|
|
1283
1283
|
}
|
|
1284
|
-
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(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g,
|
|
1285
|
-
if (g.composing || g.state.readOnly ||
|
|
1284
|
+
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(" ")), autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((g, q, J, Y, X) => {
|
|
1285
|
+
if (g.composing || g.state.readOnly || q != J || Y != ">" && Y != "/" || !htmlLanguage.isActiveAt(g.state, q, -1)) return false;
|
|
1286
1286
|
let Z = X(), { state: Q } = Z, $ = Q.changeByRange((g2) => {
|
|
1287
1287
|
var _a, _b, _c;
|
|
1288
|
-
let
|
|
1289
|
-
if (
|
|
1288
|
+
let q2 = Q.doc.sliceString(g2.from - 1, g2.to) == Y, { head: J2 } = g2, X2 = syntaxTree(Q).resolveInner(J2, -1), Z2;
|
|
1289
|
+
if (q2 && Y == ">" && X2.name == "EndTag") {
|
|
1290
1290
|
let G = X2.parent;
|
|
1291
|
-
if (((_b = (_a = G.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G.parent,
|
|
1291
|
+
if (((_b = (_a = G.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (Z2 = elementName(Q.doc, G.parent, J2)) && !selfClosers.has(Z2)) return {
|
|
1292
1292
|
range: g2,
|
|
1293
1293
|
changes: {
|
|
1294
|
-
from:
|
|
1295
|
-
to:
|
|
1294
|
+
from: J2,
|
|
1295
|
+
to: J2 + (Q.doc.sliceString(J2, J2 + 1) === ">" ? 1 : 0),
|
|
1296
1296
|
insert: `</${Z2}>`
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
|
-
} else if (
|
|
1299
|
+
} else if (q2 && Y == "/" && X2.name == "IncompleteCloseTag") {
|
|
1300
1300
|
let g3 = X2.parent;
|
|
1301
|
-
if (X2.from ==
|
|
1302
|
-
let g4 =
|
|
1301
|
+
if (X2.from == J2 - 2 && ((_c = g3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (Z2 = elementName(Q.doc, g3, J2)) && !selfClosers.has(Z2)) {
|
|
1302
|
+
let g4 = J2 + (Q.doc.sliceString(J2, J2 + 1) === ">" ? 1 : 0), K = `${Z2}>`;
|
|
1303
1303
|
return {
|
|
1304
|
-
range: EditorSelection.cursor(
|
|
1304
|
+
range: EditorSelection.cursor(J2 + K.length, -1),
|
|
1305
1305
|
changes: {
|
|
1306
|
-
from:
|
|
1306
|
+
from: J2,
|
|
1307
1307
|
to: g4,
|
|
1308
|
-
insert:
|
|
1308
|
+
insert: K
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-
|
|
1
|
+
import { B as tags, O as indentNodeProp, S as foldInside, h as continuedIndent, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, y as flatIndent, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
2
|
var javaHighlighting = styleTags({
|
|
3
3
|
null: tags.null,
|
|
4
4
|
instanceof: tags.operatorKeyword,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as tags,
|
|
1
|
+
import { B as tags, Et as EditorSelection, I as syntaxTree, O as indentNodeProp, Z as EditorView, m as bracketMatchingHandle, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
2
|
var StartTag = 1, StartCloseTag = 2, MissingCloseTag = 3, mismatchedStartCloseTag = 4, incompleteStartCloseTag = 5, commentContent$1 = 36, piContent$1 = 37, cdataContent$1 = 38, Element$1 = 11, OpenTag = 13;
|
|
3
3
|
function nameChar(m) {
|
|
4
4
|
return m == 45 || m == 46 || m == 58 || m >= 65 && m <= 90 || m == 95 || m >= 97 && m <= 122 || m >= 161;
|
|
@@ -141,11 +141,11 @@ function findParentElement(m) {
|
|
|
141
141
|
for (let V = m && m.parent; V; V = V.parent) if (V.name == "Element") return V;
|
|
142
142
|
return null;
|
|
143
143
|
}
|
|
144
|
-
function findLocation(m,
|
|
144
|
+
function findLocation(m, V) {
|
|
145
145
|
var _a;
|
|
146
|
-
let U = syntaxTree(m).resolveInner(
|
|
146
|
+
let U = syntaxTree(m).resolveInner(V, -1), W = null;
|
|
147
147
|
for (let m2 = U; !W && m2.parent; m2 = m2.parent) (m2.name == "OpenTag" || m2.name == "CloseTag" || m2.name == "SelfClosingTag" || m2.name == "MismatchedCloseTag") && (W = m2);
|
|
148
|
-
if (W && (W.to >
|
|
148
|
+
if (W && (W.to > V || W.lastChild.type.isError)) {
|
|
149
149
|
let m2 = W.parent;
|
|
150
150
|
if (U.name == "TagName") return W.name == "CloseTag" || W.name == "MismatchedCloseTag" ? {
|
|
151
151
|
type: "closeTag",
|
|
@@ -166,33 +166,33 @@ function findLocation(m, H) {
|
|
|
166
166
|
from: U.from,
|
|
167
167
|
context: W
|
|
168
168
|
};
|
|
169
|
-
let
|
|
170
|
-
return (
|
|
169
|
+
let H = U == W || U.name == "Attribute" ? U.childBefore(V) : U;
|
|
170
|
+
return (H == null ? void 0 : H.name) == "StartTag" ? {
|
|
171
171
|
type: "openTag",
|
|
172
|
-
from:
|
|
172
|
+
from: V,
|
|
173
173
|
context: findParentElement(m2)
|
|
174
|
-
} : (
|
|
174
|
+
} : (H == null ? void 0 : H.name) == "StartCloseTag" && H.to <= V ? {
|
|
175
175
|
type: "closeTag",
|
|
176
|
-
from:
|
|
176
|
+
from: V,
|
|
177
177
|
context: m2
|
|
178
|
-
} : (
|
|
178
|
+
} : (H == null ? void 0 : H.name) == "Is" ? {
|
|
179
179
|
type: "attrValue",
|
|
180
|
-
from:
|
|
180
|
+
from: V,
|
|
181
181
|
context: W
|
|
182
|
-
} :
|
|
182
|
+
} : H ? {
|
|
183
183
|
type: "attrName",
|
|
184
|
-
from:
|
|
184
|
+
from: V,
|
|
185
185
|
context: W
|
|
186
186
|
} : null;
|
|
187
187
|
} else if (U.name == "StartCloseTag") return {
|
|
188
188
|
type: "closeTag",
|
|
189
|
-
from:
|
|
189
|
+
from: V,
|
|
190
190
|
context: U.parent
|
|
191
191
|
};
|
|
192
|
-
for (; U.parent && U.to ==
|
|
192
|
+
for (; U.parent && U.to == V && !((_a = U.lastChild) == null ? void 0 : _a.type.isError); ) U = U.parent;
|
|
193
193
|
return U.name == "Element" || U.name == "Text" || U.name == "Document" ? {
|
|
194
194
|
type: "tag",
|
|
195
|
-
from:
|
|
195
|
+
from: V,
|
|
196
196
|
context: U.name == "Element" ? U : findParentElement(U)
|
|
197
197
|
} : null;
|
|
198
198
|
}
|
|
@@ -334,31 +334,31 @@ function elementName(m, V, H = m.length) {
|
|
|
334
334
|
let U = V.firstChild, W = U && U.getChild("TagName");
|
|
335
335
|
return W ? m.sliceString(W.from, Math.min(W.to, H)) : "";
|
|
336
336
|
}
|
|
337
|
-
var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((m,
|
|
338
|
-
if (m.composing || m.state.readOnly ||
|
|
337
|
+
var autoCloseTags = /* @__PURE__ */ EditorView.inputHandler.of((m, U, W, G, K) => {
|
|
338
|
+
if (m.composing || m.state.readOnly || U != W || G != ">" && G != "/" || !xmlLanguage.isActiveAt(m.state, U, -1)) return false;
|
|
339
339
|
let q = K(), { state: J } = q, Y = J.changeByRange((m2) => {
|
|
340
340
|
var _a, _b, _c;
|
|
341
|
-
let { head:
|
|
341
|
+
let { head: U2 } = m2, W2 = J.doc.sliceString(U2 - 1, U2) == G, K2 = syntaxTree(J).resolveInner(U2, -1), q2;
|
|
342
342
|
if (W2 && G == ">" && K2.name == "EndTag") {
|
|
343
343
|
let V = K2.parent;
|
|
344
|
-
if (((_b = (_a = V.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (q2 = elementName(J.doc, V.parent,
|
|
344
|
+
if (((_b = (_a = V.parent) == null ? void 0 : _a.lastChild) == null ? void 0 : _b.name) != "CloseTag" && (q2 = elementName(J.doc, V.parent, U2))) return {
|
|
345
345
|
range: m2,
|
|
346
346
|
changes: {
|
|
347
|
-
from:
|
|
348
|
-
to:
|
|
347
|
+
from: U2,
|
|
348
|
+
to: U2 + (J.doc.sliceString(U2, U2 + 1) === ">" ? 1 : 0),
|
|
349
349
|
insert: `</${q2}>`
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
} else if (W2 && G == "/" && K2.name == "StartCloseTag") {
|
|
353
353
|
let m3 = K2.parent;
|
|
354
|
-
if (K2.from ==
|
|
355
|
-
let m4 =
|
|
354
|
+
if (K2.from == U2 - 2 && ((_c = m3.lastChild) == null ? void 0 : _c.name) != "CloseTag" && (q2 = elementName(J.doc, m3, U2))) {
|
|
355
|
+
let m4 = U2 + (J.doc.sliceString(U2, U2 + 1) === ">" ? 1 : 0), H = `${q2}>`;
|
|
356
356
|
return {
|
|
357
|
-
range: EditorSelection.cursor(
|
|
357
|
+
range: EditorSelection.cursor(U2 + H.length, -1),
|
|
358
358
|
changes: {
|
|
359
|
-
from:
|
|
359
|
+
from: U2,
|
|
360
360
|
to: m4,
|
|
361
|
-
insert:
|
|
361
|
+
insert: H
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
364
|
}
|