@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,12 +1,12 @@
|
|
|
1
|
-
import { B as tags,
|
|
2
|
-
import { t as CompletionContext } from "./dist-
|
|
3
|
-
import { n as html, r as htmlCompletionSource } from "./dist-
|
|
1
|
+
import { At as Prec, B as tags, Dt as EditorState, Et as EditorSelection, H as NodeProp, I as syntaxTree, J as parseMixed, K as Parser, M as languageDataProp, O as indentNodeProp, R as Tag, T as foldService, U as NodeSet, Vt as countColumn, W as NodeType, Z as EditorView, _ as defineLanguageFacet, c as Language, d as ParseContext, dt as keymap, j as indentUnit, l as LanguageDescription, q as Tree, u as LanguageSupport, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
|
+
import { t as CompletionContext } from "./dist-Dit9tk8a.js";
|
|
3
|
+
import { n as html, r as htmlCompletionSource } from "./dist-CJrHMxlI.js";
|
|
4
4
|
var CompositeBlock = class l {
|
|
5
5
|
static create(R, z, B, V, H) {
|
|
6
6
|
return new l(R, z, B, V + (V << 8) + R + (z << 4) | 0, H, [], []);
|
|
7
7
|
}
|
|
8
|
-
constructor(l3, R, z,
|
|
9
|
-
this.type = l3, this.value = R, this.from = z, this.hash =
|
|
8
|
+
constructor(l3, R, z, B, H, U, W) {
|
|
9
|
+
this.type = l3, this.value = R, this.from = z, this.hash = B, this.end = H, this.children = U, this.positions = W, this.hashProp = [[NodeProp.contextHash, B]];
|
|
10
10
|
}
|
|
11
11
|
addChild(l3, R) {
|
|
12
12
|
l3.prop(NodeProp.contextHash) != this.hash && (l3 = new Tree(l3.type, l3.children, l3.positions, l3.length, this.hashProp)), this.children.push(l3), this.positions.push(R);
|
|
@@ -519,30 +519,30 @@ var MarkdownParser = class l2 extends Parser {
|
|
|
519
519
|
configure(R) {
|
|
520
520
|
let z = resolveConfig(R);
|
|
521
521
|
if (!z) return this;
|
|
522
|
-
let { nodeSet:
|
|
522
|
+
let { nodeSet: B, skipContextMarkup: H } = this, U = this.blockParsers.slice(), W = this.leafBlockParsers.slice(), G = this.blockNames.slice(), K = this.inlineParsers.slice(), J = this.inlineNames.slice(), X = this.endLeafBlock.slice(), Q = this.wrappers;
|
|
523
523
|
if (nonEmpty(z.defineNodes)) {
|
|
524
524
|
H = Object.assign({}, H);
|
|
525
|
-
let l3 =
|
|
526
|
-
for (let
|
|
527
|
-
let { name: z2, block: U2, composite: W2, style: G2 } = typeof
|
|
525
|
+
let l3 = B.types.slice(), R2;
|
|
526
|
+
for (let B2 of z.defineNodes) {
|
|
527
|
+
let { name: z2, block: U2, composite: W2, style: G2 } = typeof B2 == "string" ? { name: B2 } : B2;
|
|
528
528
|
if (l3.some((l4) => l4.name == z2)) continue;
|
|
529
529
|
W2 && (H[l3.length] = (l4, R3, z3) => W2(R3, z3, l4.value));
|
|
530
|
-
let
|
|
530
|
+
let K2 = l3.length, J2 = W2 ? ["Block", "BlockContext"] : U2 ? K2 >= Type.ATXHeading1 && K2 <= Type.SetextHeading2 ? [
|
|
531
531
|
"Block",
|
|
532
532
|
"LeafBlock",
|
|
533
533
|
"Heading"
|
|
534
534
|
] : ["Block", "LeafBlock"] : void 0;
|
|
535
535
|
l3.push(NodeType.define({
|
|
536
|
-
id:
|
|
536
|
+
id: K2,
|
|
537
537
|
name: z2,
|
|
538
538
|
props: J2 && [[NodeProp.group, J2]]
|
|
539
539
|
})), G2 && (R2 || (R2 = {}), Array.isArray(G2) || G2 instanceof Tag ? R2[z2] = G2 : Object.assign(R2, G2));
|
|
540
540
|
}
|
|
541
|
-
|
|
541
|
+
B = new NodeSet(l3), R2 && (B = B.extend(styleTags(R2)));
|
|
542
542
|
}
|
|
543
|
-
if (nonEmpty(z.props) && (
|
|
543
|
+
if (nonEmpty(z.props) && (B = B.extend(...z.props)), nonEmpty(z.remove)) for (let l3 of z.remove) {
|
|
544
544
|
let R2 = this.blockNames.indexOf(l3), z2 = this.inlineNames.indexOf(l3);
|
|
545
|
-
R2 > -1 && (U[R2] = W[R2] = void 0), z2 > -1 && (
|
|
545
|
+
R2 > -1 && (U[R2] = W[R2] = void 0), z2 > -1 && (K[z2] = void 0);
|
|
546
546
|
}
|
|
547
547
|
if (nonEmpty(z.parseBlock)) for (let l3 of z.parseBlock) {
|
|
548
548
|
let R2 = G.indexOf(l3.name);
|
|
@@ -551,17 +551,17 @@ var MarkdownParser = class l2 extends Parser {
|
|
|
551
551
|
let R3 = l3.before ? findName(G, l3.before) : l3.after ? findName(G, l3.after) + 1 : G.length - 1;
|
|
552
552
|
U.splice(R3, 0, l3.parse), W.splice(R3, 0, l3.leaf), G.splice(R3, 0, l3.name);
|
|
553
553
|
}
|
|
554
|
-
l3.endLeaf &&
|
|
554
|
+
l3.endLeaf && X.push(l3.endLeaf);
|
|
555
555
|
}
|
|
556
556
|
if (nonEmpty(z.parseInline)) for (let l3 of z.parseInline) {
|
|
557
557
|
let R2 = J.indexOf(l3.name);
|
|
558
|
-
if (R2 > -1)
|
|
558
|
+
if (R2 > -1) K[R2] = l3.parse;
|
|
559
559
|
else {
|
|
560
560
|
let R3 = l3.before ? findName(J, l3.before) : l3.after ? findName(J, l3.after) + 1 : J.length - 1;
|
|
561
|
-
|
|
561
|
+
K.splice(R3, 0, l3.parse), J.splice(R3, 0, l3.name);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
return z.wrap && (Q = Q.concat(z.wrap)), new l2(
|
|
564
|
+
return z.wrap && (Q = Q.concat(z.wrap)), new l2(B, U, W, G, X, H, K, J, Q);
|
|
565
565
|
}
|
|
566
566
|
getNodeType(l3) {
|
|
567
567
|
let R = this.nodeTypes[l3];
|
|
@@ -1363,79 +1363,79 @@ function renumberList(l3, R, z, B = 0) {
|
|
|
1363
1363
|
H = l4;
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
function normalizeIndent(l3,
|
|
1367
|
-
let
|
|
1368
|
-
if (!
|
|
1369
|
-
let
|
|
1370
|
-
for (let l4 =
|
|
1371
|
-
return
|
|
1366
|
+
function normalizeIndent(l3, R) {
|
|
1367
|
+
let z = /^[ \t]*/.exec(l3)[0].length;
|
|
1368
|
+
if (!z || R.facet(indentUnit) != " ") return l3;
|
|
1369
|
+
let B = countColumn(l3, 4, z), V = "";
|
|
1370
|
+
for (let l4 = B; l4 > 0; ) l4 >= 4 ? (V += " ", l4 -= 4) : (V += " ", l4--);
|
|
1371
|
+
return V + l3.slice(z);
|
|
1372
1372
|
}
|
|
1373
|
-
var insertNewlineContinueMarkupCommand = (l3 = {}) => ({ state:
|
|
1374
|
-
let
|
|
1375
|
-
if (!
|
|
1376
|
-
let
|
|
1377
|
-
for (; K.length && K[K.length - 1].from >
|
|
1378
|
-
if (!K.length) return W = { range:
|
|
1373
|
+
var insertNewlineContinueMarkupCommand = (l3 = {}) => ({ state: R, dispatch: z }) => {
|
|
1374
|
+
let V = syntaxTree(R), { doc: U } = R, W = null, G = R.changeByRange((z2) => {
|
|
1375
|
+
if (!z2.empty || !markdownLanguage.isActiveAt(R, z2.from, -1) && !markdownLanguage.isActiveAt(R, z2.from, 1)) return W = { range: z2 };
|
|
1376
|
+
let H = z2.from, G2 = U.lineAt(H), K = getContext(V.resolveInner(H, -1), U);
|
|
1377
|
+
for (; K.length && K[K.length - 1].from > H - G2.from; ) K.pop();
|
|
1378
|
+
if (!K.length) return W = { range: z2 };
|
|
1379
1379
|
let q = K[K.length - 1];
|
|
1380
|
-
if (q.to - q.spaceAfter.length >
|
|
1381
|
-
let
|
|
1382
|
-
if (q.item &&
|
|
1383
|
-
let
|
|
1384
|
-
if (
|
|
1385
|
-
let l4 = K.length > 1 ? K[K.length - 2] : null, R2,
|
|
1386
|
-
l4 && l4.item ? (R2 = G2.from + l4.from,
|
|
1387
|
-
let
|
|
1380
|
+
if (q.to - q.spaceAfter.length > H - G2.from) return W = { range: z2 };
|
|
1381
|
+
let J = H >= q.to - q.spaceAfter.length && !/\S/.test(G2.text.slice(q.to));
|
|
1382
|
+
if (q.item && J) {
|
|
1383
|
+
let z3 = q.node.firstChild, V2 = q.node.getChild("ListItem", "ListItem");
|
|
1384
|
+
if (z3.to >= H || V2 && V2.to < H || G2.from > 0 && !/[^\s>]/.test(U.lineAt(G2.from - 1).text) || l3.nonTightLists === false) {
|
|
1385
|
+
let l4 = K.length > 1 ? K[K.length - 2] : null, R2, z4 = "";
|
|
1386
|
+
l4 && l4.item ? (R2 = G2.from + l4.from, z4 = l4.marker(U, 1)) : R2 = G2.from + (l4 ? l4.to : 0);
|
|
1387
|
+
let V3 = [{
|
|
1388
1388
|
from: R2,
|
|
1389
|
-
to:
|
|
1390
|
-
insert:
|
|
1389
|
+
to: H,
|
|
1390
|
+
insert: z4
|
|
1391
1391
|
}];
|
|
1392
|
-
return q.node.name == "OrderedList" && renumberList(q.item, U,
|
|
1393
|
-
range: EditorSelection.cursor(R2 +
|
|
1394
|
-
changes:
|
|
1392
|
+
return q.node.name == "OrderedList" && renumberList(q.item, U, V3, -2), l4 && l4.node.name == "OrderedList" && renumberList(l4.item, U, V3), {
|
|
1393
|
+
range: EditorSelection.cursor(R2 + z4.length),
|
|
1394
|
+
changes: V3
|
|
1395
1395
|
};
|
|
1396
1396
|
} else {
|
|
1397
|
-
let l4 = blankLine(K,
|
|
1397
|
+
let l4 = blankLine(K, R, G2);
|
|
1398
1398
|
return {
|
|
1399
|
-
range: EditorSelection.cursor(
|
|
1399
|
+
range: EditorSelection.cursor(H + l4.length + 1),
|
|
1400
1400
|
changes: {
|
|
1401
1401
|
from: G2.from,
|
|
1402
|
-
insert: l4 +
|
|
1402
|
+
insert: l4 + R.lineBreak
|
|
1403
1403
|
}
|
|
1404
1404
|
};
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
|
-
if (q.node.name == "Blockquote" &&
|
|
1408
|
-
let l4 = U.lineAt(G2.from - 1),
|
|
1409
|
-
if (
|
|
1410
|
-
let V2 =
|
|
1411
|
-
from: l4.from +
|
|
1407
|
+
if (q.node.name == "Blockquote" && J && G2.from) {
|
|
1408
|
+
let l4 = U.lineAt(G2.from - 1), B = />\s*$/.exec(l4.text);
|
|
1409
|
+
if (B && B.index == q.from) {
|
|
1410
|
+
let V2 = R.changes([{
|
|
1411
|
+
from: l4.from + B.index,
|
|
1412
1412
|
to: l4.to
|
|
1413
1413
|
}, {
|
|
1414
1414
|
from: G2.from + q.from,
|
|
1415
1415
|
to: G2.to
|
|
1416
1416
|
}]);
|
|
1417
1417
|
return {
|
|
1418
|
-
range:
|
|
1418
|
+
range: z2.map(V2),
|
|
1419
1419
|
changes: V2
|
|
1420
1420
|
};
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
let
|
|
1424
|
-
q.node.name == "OrderedList" && renumberList(q.item, U,
|
|
1423
|
+
let Y = [];
|
|
1424
|
+
q.node.name == "OrderedList" && renumberList(q.item, U, Y);
|
|
1425
1425
|
let Z = q.item && q.item.from < G2.from, Q = "";
|
|
1426
|
-
if (!Z || /^[\s\d.)\-+*>]*/.exec(G2.text)[0].length >= q.to) for (let l4 = 0,
|
|
1427
|
-
let $ =
|
|
1426
|
+
if (!Z || /^[\s\d.)\-+*>]*/.exec(G2.text)[0].length >= q.to) for (let l4 = 0, R2 = K.length - 1; l4 <= R2; l4++) Q += l4 == R2 && !Z ? K[l4].marker(U, 1) : K[l4].blank(l4 < R2 ? countColumn(G2.text, 4, K[l4 + 1].from) - Q.length : null);
|
|
1427
|
+
let $ = H;
|
|
1428
1428
|
for (; $ > G2.from && /\s/.test(G2.text.charAt($ - G2.from - 1)); ) $--;
|
|
1429
|
-
return Q = normalizeIndent(Q,
|
|
1429
|
+
return Q = normalizeIndent(Q, R), nonTightList(q.node, R.doc) && (Q = blankLine(K, R, G2) + R.lineBreak + Q), Y.push({
|
|
1430
1430
|
from: $,
|
|
1431
|
-
to:
|
|
1432
|
-
insert:
|
|
1431
|
+
to: H,
|
|
1432
|
+
insert: R.lineBreak + Q
|
|
1433
1433
|
}), {
|
|
1434
1434
|
range: EditorSelection.cursor($ + Q.length + 1),
|
|
1435
|
-
changes:
|
|
1435
|
+
changes: Y
|
|
1436
1436
|
};
|
|
1437
1437
|
});
|
|
1438
|
-
return W ? false : (
|
|
1438
|
+
return W ? false : (z(R.update(G, {
|
|
1439
1439
|
scrollIntoView: true,
|
|
1440
1440
|
userEvent: "input"
|
|
1441
1441
|
})), true);
|
|
@@ -1450,10 +1450,10 @@ function nonTightList(l3, R) {
|
|
|
1450
1450
|
let V = R.lineAt(z.to), H = R.lineAt(B.from), U = /^[\s>]*$/.test(V.text);
|
|
1451
1451
|
return V.number + (U ? 0 : 1) < H.number;
|
|
1452
1452
|
}
|
|
1453
|
-
function blankLine(l3,
|
|
1454
|
-
let
|
|
1455
|
-
for (let
|
|
1456
|
-
return normalizeIndent(
|
|
1453
|
+
function blankLine(l3, R, z) {
|
|
1454
|
+
let B = "";
|
|
1455
|
+
for (let R2 = 0, V = l3.length - 2; R2 <= V; R2++) B += l3[R2].blank(R2 < V ? countColumn(z.text, 4, l3[R2 + 1].from) - B.length : null, R2 < V);
|
|
1456
|
+
return normalizeIndent(B, R);
|
|
1457
1457
|
}
|
|
1458
1458
|
function contextNodeForDelete(l3, R) {
|
|
1459
1459
|
let z = l3.resolveInner(R, -1), B = R;
|
|
@@ -1463,46 +1463,46 @@ function contextNodeForDelete(l3, R) {
|
|
|
1463
1463
|
else break;
|
|
1464
1464
|
return z;
|
|
1465
1465
|
}
|
|
1466
|
-
var deleteMarkupBackward = ({ state: l3, dispatch:
|
|
1467
|
-
let
|
|
1468
|
-
let
|
|
1469
|
-
if (
|
|
1470
|
-
let
|
|
1471
|
-
if (
|
|
1472
|
-
let
|
|
1473
|
-
if (
|
|
1474
|
-
range: EditorSelection.cursor(
|
|
1466
|
+
var deleteMarkupBackward = ({ state: l3, dispatch: R }) => {
|
|
1467
|
+
let z = syntaxTree(l3), V = null, U = l3.changeByRange((R2) => {
|
|
1468
|
+
let H = R2.from, { doc: U2 } = l3;
|
|
1469
|
+
if (R2.empty && markdownLanguage.isActiveAt(l3, R2.from)) {
|
|
1470
|
+
let R3 = U2.lineAt(H), V2 = getContext(contextNodeForDelete(z, H), U2);
|
|
1471
|
+
if (V2.length) {
|
|
1472
|
+
let z2 = V2[V2.length - 1], U3 = z2.to - z2.spaceAfter.length + (z2.spaceAfter ? 1 : 0);
|
|
1473
|
+
if (H - R3.from > U3 && !/\S/.test(R3.text.slice(U3, H - R3.from))) return {
|
|
1474
|
+
range: EditorSelection.cursor(R3.from + U3),
|
|
1475
1475
|
changes: {
|
|
1476
|
-
from:
|
|
1477
|
-
to:
|
|
1476
|
+
from: R3.from + U3,
|
|
1477
|
+
to: H
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
|
-
if (
|
|
1481
|
-
let
|
|
1482
|
-
if (
|
|
1483
|
-
let
|
|
1484
|
-
return
|
|
1485
|
-
range: EditorSelection.cursor(
|
|
1480
|
+
if (H - R3.from == U3 && (!z2.item || R3.from <= z2.item.from || !/\S/.test(R3.text.slice(0, z2.to)))) {
|
|
1481
|
+
let V3 = R3.from + z2.from;
|
|
1482
|
+
if (z2.item && z2.node.from < z2.item.from && /\S/.test(R3.text.slice(z2.from, z2.to))) {
|
|
1483
|
+
let H2 = z2.blank(countColumn(R3.text, 4, z2.to) - countColumn(R3.text, 4, z2.from));
|
|
1484
|
+
return V3 == R3.from && (H2 = normalizeIndent(H2, l3)), {
|
|
1485
|
+
range: EditorSelection.cursor(V3 + H2.length),
|
|
1486
1486
|
changes: {
|
|
1487
|
-
from:
|
|
1488
|
-
to:
|
|
1489
|
-
insert:
|
|
1487
|
+
from: V3,
|
|
1488
|
+
to: R3.from + z2.to,
|
|
1489
|
+
insert: H2
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
|
-
if (
|
|
1494
|
-
range: EditorSelection.cursor(
|
|
1493
|
+
if (V3 < H) return {
|
|
1494
|
+
range: EditorSelection.cursor(V3),
|
|
1495
1495
|
changes: {
|
|
1496
|
-
from:
|
|
1497
|
-
to:
|
|
1496
|
+
from: V3,
|
|
1497
|
+
to: H
|
|
1498
1498
|
}
|
|
1499
1499
|
};
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
return
|
|
1503
|
+
return V = { range: R2 };
|
|
1504
1504
|
});
|
|
1505
|
-
return
|
|
1505
|
+
return V ? false : (R(l3.update(U, {
|
|
1506
1506
|
scrollIntoView: true,
|
|
1507
1507
|
userEvent: "delete"
|
|
1508
1508
|
})), true);
|
|
@@ -1513,26 +1513,26 @@ var deleteMarkupBackward = ({ state: l3, dispatch: z }) => {
|
|
|
1513
1513
|
key: "Backspace",
|
|
1514
1514
|
run: deleteMarkupBackward
|
|
1515
1515
|
}], htmlNoMatch = /* @__PURE__ */ html({ matchClosingTags: false });
|
|
1516
|
-
function markdown(
|
|
1517
|
-
let { codeLanguages:
|
|
1518
|
-
if (!(
|
|
1519
|
-
let
|
|
1520
|
-
|
|
1521
|
-
let
|
|
1522
|
-
|
|
1523
|
-
codeParser:
|
|
1524
|
-
htmlParser:
|
|
1525
|
-
})),
|
|
1526
|
-
let
|
|
1527
|
-
return
|
|
1516
|
+
function markdown(R = {}) {
|
|
1517
|
+
let { codeLanguages: z, defaultCodeLanguage: B, addKeymap: V = true, base: { parser: H } = commonmarkLanguage, completeHTMLTags: U = true, pasteURLAsLink: W = true, htmlTagLanguage: G = htmlNoMatch } = R;
|
|
1518
|
+
if (!(H instanceof MarkdownParser)) throw RangeError("Base parser provided to `markdown` should be a Markdown parser");
|
|
1519
|
+
let K = R.extensions ? [R.extensions] : [], q = [G.support, headerIndent], J;
|
|
1520
|
+
W && q.push(pasteURLAsLink), B instanceof LanguageSupport ? (q.push(B.support), J = B.language) : B && (J = B);
|
|
1521
|
+
let Y = z || J ? getCodeParser(z, J) : void 0;
|
|
1522
|
+
K.push(parseCode({
|
|
1523
|
+
codeParser: Y,
|
|
1524
|
+
htmlParser: G.language.parser
|
|
1525
|
+
})), V && q.push(Prec.high(keymap.of(markdownKeymap)));
|
|
1526
|
+
let X = mkLang(H.configure(K));
|
|
1527
|
+
return U && q.push(X.data.of({ autocomplete: htmlTagCompletion })), new LanguageSupport(X, q);
|
|
1528
1528
|
}
|
|
1529
1529
|
function htmlTagCompletion(l3) {
|
|
1530
1530
|
let { state: R, pos: z } = l3, B = /<[:\-\.\w\u00b7-\uffff]*$/.exec(R.sliceDoc(z - 25, z));
|
|
1531
1531
|
if (!B) return null;
|
|
1532
|
-
let
|
|
1533
|
-
for (;
|
|
1534
|
-
if (
|
|
1535
|
-
|
|
1532
|
+
let V = syntaxTree(R).resolveInner(z, -1);
|
|
1533
|
+
for (; V && !V.type.isTop; ) {
|
|
1534
|
+
if (V.name == "CodeBlock" || V.name == "FencedCode" || V.name == "ProcessingInstructionBlock" || V.name == "CommentBlock" || V.name == "Link" || V.name == "Image") return null;
|
|
1535
|
+
V = V.parent;
|
|
1536
1536
|
}
|
|
1537
1537
|
return {
|
|
1538
1538
|
from: z - B[0].length,
|
|
@@ -1553,8 +1553,8 @@ var nonPlainText = /code|horizontalrule|html|link|comment|processing|escape|enti
|
|
|
1553
1553
|
if (z.empty) return false;
|
|
1554
1554
|
let B = (_a = l3.clipboardData) == null ? void 0 : _a.getData("text/plain");
|
|
1555
1555
|
if (!B || !/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(B) || (/^www\./.test(B) && (B = "https://" + B), !markdownLanguage.isActiveAt(R.state, z.from, 1))) return false;
|
|
1556
|
-
let
|
|
1557
|
-
return
|
|
1556
|
+
let V = syntaxTree(R.state), U = false;
|
|
1557
|
+
return V.iterate({
|
|
1558
1558
|
from: z.from,
|
|
1559
1559
|
to: z.to,
|
|
1560
1560
|
enter: (l4) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as tags, J as parseMixed, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { B as tags, J as parseMixed, O as indentNodeProp, S as foldInside, h as continuedIndent, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
|
+
import { n as html } from "./dist-CJrHMxlI.js";
|
|
3
3
|
var castOpen = 1, HeredocString = 2, interpolatedStringContent = 263, EscapeSequence = 3, afterInterpolation = 264, automaticSemicolon = 265, eof = 266, abstract = 4, and = 5, array = 6, as = 7, Boolean = 8, _break = 9, _case = 10, _catch = 11, clone = 12, _const = 13, _continue = 14, _default = 15, declare = 16, _do = 17, echo = 18, _else = 19, elseif = 20, enddeclare = 21, endfor = 22, endforeach = 23, endif = 24, endswitch = 25, endwhile = 26, _enum = 27, _extends = 28, final = 29, _finally = 30, fn = 31, _for = 32, foreach = 33, from = 34, _function = 35, global = 36, goto = 37, _if = 38, _implements = 39, include = 40, include_once = 41, _instanceof = 42, insteadof = 43, _interface = 44, list = 45, match = 46, namespace = 47, _new = 48, _null = 49, or = 50, print = 51, _require = 52, require_once = 53, _return = 54, _switch = 55, _throw = 56, trait = 57, _try = 58, unset = 59, use = 60, _var = 61, Visibility = 62, keywordMap = {
|
|
4
4
|
abstract,
|
|
5
5
|
and,
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { i as defineCSSCompletionSource } 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
|
+
import { i as defineCSSCompletionSource } from "./dist-Cgf353Ki.js";
|
|
3
3
|
var descendantOp = 110, Unit = 1, openArgList = 2, space = [
|
|
4
4
|
9,
|
|
5
5
|
10,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./dist-r8ecBV-v.js";
|
|
2
|
+
import "./dist-CJrHMxlI.js";
|
|
3
|
+
import "./dist-Cgf353Ki.js";
|
|
4
|
+
import "./dist-C2-m5aEk.js";
|
|
5
|
+
import { i as liquidLanguage, n as liquid, r as liquidCompletionSource, t as closePercentBrace } from "./dist-Crk9ejOy.js";
|
|
6
|
+
export {
|
|
7
|
+
liquid
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as localCompletionSource, c as typescriptLanguage, i as jsxLanguage, l as typescriptSnippets, n as javascript, o as snippets, r as javascriptLanguage, s as tsxLanguage, t as autoCloseTags } from "./dist-
|
|
1
|
+
import "./dist-r8ecBV-v.js";
|
|
2
|
+
import { a as localCompletionSource, c as typescriptLanguage, i as jsxLanguage, l as typescriptSnippets, n as javascript, o as snippets, r as javascriptLanguage, s as tsxLanguage, t as autoCloseTags } from "./dist-C2-m5aEk.js";
|
|
3
3
|
export {
|
|
4
4
|
javascript
|
|
5
5
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "./dist-r8ecBV-v.js";
|
|
2
|
+
import "./dist-CJrHMxlI.js";
|
|
3
|
+
import "./dist-Cgf353Ki.js";
|
|
4
|
+
import "./dist-C2-m5aEk.js";
|
|
5
|
+
import { i as jinjaLanguage, n as jinja, r as jinjaCompletionSource, t as closePercentBrace } from "./dist-Bsv_ARko.js";
|
|
6
|
+
export {
|
|
7
|
+
jinja
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, n as ExternalTokenizer, r as LRParser, s as LRLanguage, t as ContextTracker, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, 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 printKeyword = 1, indent = 194, dedent = 195, newline$1 = 196, blankLineStart = 197, newlineBracketed = 198, eof = 199, stringContent = 200, Escape = 2, replacementStart = 3, stringEnd = 201, ParenL = 24, ParenthesizedExpression = 25, TupleExpression = 49, ComprehensionExpression = 50, BracketL = 55, ArrayExpression = 56, ArrayComprehensionExpression = 57, BraceL = 59, DictionaryExpression = 60, DictionaryComprehensionExpression = 61, SetExpression = 62, SetComprehensionExpression = 63, ArgList = 65, subscript = 238, String$1 = 71, stringStart = 241, stringStartD = 242, stringStartL = 243, stringStartLD = 244, stringStartR = 245, stringStartRD = 246, stringStartRL = 247, stringStartRLD = 248, FormatString = 72, stringStartF = 249, stringStartFD = 250, stringStartFL = 251, stringStartFLD = 252, stringStartFR = 253, stringStartFRD = 254, stringStartFRL = 255, stringStartFRLD = 256, FormatReplacement = 73, nestedFormatReplacement = 77, importList = 263, TypeParamList = 112, ParamList = 130, SequencePattern = 151, MappingPattern = 152, PatternArgList = 155, newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, braceOpen = 123, braceClose = 125, singleQuote = 39, doubleQuote = 34, backslash = 92, letter_o = 111, letter_x = 120, letter_N = 78, letter_u = 117, letter_U = 85, bracketed = /* @__PURE__ */ new Set([
|
|
4
4
|
ParenthesizedExpression,
|
|
5
5
|
TupleExpression,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { i as xmlLanguage, n as completeFromSchema, r as xml, t as autoCloseTags } from "./dist-
|
|
1
|
+
import "./dist-r8ecBV-v.js";
|
|
2
|
+
import { i as xmlLanguage, n as completeFromSchema, r as xml, t as autoCloseTags } from "./dist-CcOGT46m.js";
|
|
3
3
|
export {
|
|
4
4
|
xml
|
|
5
5
|
};
|
|
@@ -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, w as foldNodeProp, 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, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
2
|
var jsonHighlighting = styleTags({
|
|
3
3
|
String: tags.string,
|
|
4
4
|
Number: tags.number,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./dist-
|
|
2
|
-
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-
|
|
3
|
-
import "./dist-
|
|
4
|
-
import "./dist-
|
|
1
|
+
import "./dist-r8ecBV-v.js";
|
|
2
|
+
import { a as htmlLanguage, i as htmlCompletionSourceWith, n as html, o as htmlPlain, r as htmlCompletionSource, t as autoCloseTags } from "./dist-CJrHMxlI.js";
|
|
3
|
+
import "./dist-Cgf353Ki.js";
|
|
4
|
+
import "./dist-C2-m5aEk.js";
|
|
5
5
|
export {
|
|
6
6
|
html
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, 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-
|
|
2
|
-
import { f as snippetCompletion, l as ifNotIn, s as completeFromList } from "./dist-
|
|
1
|
+
import { B as tags, G as NodeWeakMap, I as syntaxTree, O as indentNodeProp, S as foldInside, V as IterMode, 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 insertedSemi = 177, space$1 = 179, identifier = 184, String = 12, closeParen$1 = 13, Number = 17, Rune = 20, closeBrace$1 = 25, closeBracket = 53, IncDecOp = 95, _return = 142, _break = 144, _continue = 145, fallthrough = 148, newline = 10, carriageReturn = 13, space = 32, tab = 9, slash = 47, closeParen = 41, closeBrace = 125, semicolon = new ExternalTokenizer((y, J) => {
|
|
4
4
|
for (let Y = 0, X = y.next; (J.context && (X < 0 || X == newline || X == carriageReturn || X == slash && y.peek(Y + 1) == slash) || X == closeParen || X == closeBrace) && y.acceptToken(insertedSemi), !(X != space && X != tab); ) X = y.peek(++Y);
|
|
5
5
|
}, { contextual: true }), trackedTokens = /* @__PURE__ */ new Set([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as tags, I as syntaxTree, J as parseMixed, O as indentNodeProp,
|
|
2
|
-
import { n as html } from "./dist-
|
|
1
|
+
import { B as tags, Et as EditorSelection, I as syntaxTree, J as parseMixed, O as indentNodeProp, Z as EditorView, i as LocalTokenGroup, n as ExternalTokenizer, r as LRParser, s as LRLanguage, u as LanguageSupport, v as delimitedIndent, w as foldNodeProp, z as styleTags } from "./dist-r8ecBV-v.js";
|
|
2
|
+
import { n as html } from "./dist-CJrHMxlI.js";
|
|
3
3
|
var interpolationStart = 1, commentTagStart = 2, tagStart = 3, text = 155, endrawTagStart = 4, rawText = 156;
|
|
4
4
|
function wordChar(h) {
|
|
5
5
|
return h >= 65 && h <= 90 || h >= 97 && h <= 122;
|
|
@@ -225,7 +225,7 @@ function completions(h, R) {
|
|
|
225
225
|
var Filters = /* @__PURE__ */ completions("abs attr batch capitalize center default dictsort escape filesizeformat first float forceescape format groupby indent int items join last length list lower map max min pprint random reject rejectattr replace reverse round safe select selectattr slice sort string striptags sum title tojson trim truncate unique upper urlencode urlize wordcount wordwrap xmlattr", "function"), Functions = /* @__PURE__ */ completions("boolean callable defined divisibleby eq escaped even filter float ge gt in integer iterable le lower lt mapping ne none number odd sameas sequence string test undefined upper range lipsum dict joiner namespace", "function"), Globals = /* @__PURE__ */ completions("loop super self true false varargs kwargs caller name arguments catch_kwargs catch_varargs caller", "keyword"), Expressions = /* @__PURE__ */ Functions.concat(Globals), Tags = /* @__PURE__ */ completions("raw endraw filter endfilter trans pluralize endtrans with endwith autoescape endautoescape if elif else endif for endfor call endcall block endblock set endset macro endmacro import include break continue debug do extends", "keyword");
|
|
226
226
|
function findContext(h) {
|
|
227
227
|
var _a;
|
|
228
|
-
let { state:
|
|
228
|
+
let { state: R, pos: B } = h, V = syntaxTree(R).resolveInner(B, -1).enterUnfinishedNodesBefore(B), H = ((_a = V.childBefore(B)) == null ? void 0 : _a.name) || V.name;
|
|
229
229
|
if (V.name == "FilterName") return {
|
|
230
230
|
type: "filter",
|
|
231
231
|
node: V
|
|
@@ -288,7 +288,7 @@ function jinjaCompletionSource(h = {}) {
|
|
|
288
288
|
} : null;
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
|
-
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h,
|
|
291
|
+
var closePercentBrace = /* @__PURE__ */ EditorView.inputHandler.of((h, z, B, V) => V != "%" || z != B || h.state.doc.sliceString(z - 1, B + 1) != "{}" ? false : (h.dispatch(h.state.changeByRange((h2) => ({
|
|
292
292
|
changes: {
|
|
293
293
|
from: h2.from,
|
|
294
294
|
to: h2.to,
|