@milkdown/crepe 7.3.5 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/_view-TbSIR42F.js +27 -0
- package/lib/cjs/_view-TbSIR42F.js.map +1 -0
- package/lib/cjs/apl-99bWvYTf.js +145 -0
- package/lib/cjs/apl-99bWvYTf.js.map +1 -0
- package/lib/cjs/asciiarmor-cf0JLIr_.js +59 -0
- package/lib/cjs/asciiarmor-cf0JLIr_.js.map +1 -0
- package/lib/cjs/asn1-H4XzAvBS.js +195 -0
- package/lib/cjs/asn1-H4XzAvBS.js.map +1 -0
- package/lib/cjs/asterisk-0FgJEfZB.js +190 -0
- package/lib/cjs/asterisk-0FgJEfZB.js.map +1 -0
- package/lib/cjs/brainfuck-JX7vRZy7.js +73 -0
- package/lib/cjs/brainfuck-JX7vRZy7.js.map +1 -0
- package/lib/cjs/clike-ueXlMQy5.js +1034 -0
- package/lib/cjs/clike-ueXlMQy5.js.map +1 -0
- package/lib/cjs/clojure-6iDAG5oi.js +277 -0
- package/lib/cjs/clojure-6iDAG5oi.js.map +1 -0
- package/lib/cjs/clsx-7JLENl8W.js +62 -0
- package/lib/cjs/clsx-7JLENl8W.js.map +1 -0
- package/lib/cjs/cmake-L0RIBnfc.js +84 -0
- package/lib/cjs/cmake-L0RIBnfc.js.map +1 -0
- package/lib/cjs/cobol-oxkMh1GJ.js +238 -0
- package/lib/cjs/cobol-oxkMh1GJ.js.map +1 -0
- package/lib/cjs/coffeescript--eauIeRQ.js +332 -0
- package/lib/cjs/coffeescript--eauIeRQ.js.map +1 -0
- package/lib/cjs/commonlisp-pgSu-q6f.js +111 -0
- package/lib/cjs/commonlisp-pgSu-q6f.js.map +1 -0
- package/lib/cjs/composed-offset-position.browser.min-FwypoGc1.js +1138 -0
- package/lib/cjs/composed-offset-position.browser.min-FwypoGc1.js.map +1 -0
- package/lib/cjs/crystal-2y3I5ibZ.js +422 -0
- package/lib/cjs/crystal-2y3I5ibZ.js.map +1 -0
- package/lib/cjs/css-WH69cXzo.js +855 -0
- package/lib/cjs/css-WH69cXzo.js.map +1 -0
- package/lib/cjs/cypher-da-dqVyQ.js +125 -0
- package/lib/cjs/cypher-da-dqVyQ.js.map +1 -0
- package/lib/cjs/d-58J7EOkP.js +208 -0
- package/lib/cjs/d-58J7EOkP.js.map +1 -0
- package/lib/cjs/diff-437Hfzqm.js +33 -0
- package/lib/cjs/diff-437Hfzqm.js.map +1 -0
- package/lib/cjs/dockerfile-7i0OoaQe.js +202 -0
- package/lib/cjs/dockerfile-7i0OoaQe.js.map +1 -0
- package/lib/cjs/dtd-AKekCPPB.js +124 -0
- package/lib/cjs/dtd-AKekCPPB.js.map +1 -0
- package/lib/cjs/dylan-DLEmvz1I.js +340 -0
- package/lib/cjs/dylan-DLEmvz1I.js.map +1 -0
- package/lib/cjs/ebnf-36cJWqxB.js +154 -0
- package/lib/cjs/ebnf-36cJWqxB.js.map +1 -0
- package/lib/cjs/ecl-UWr5vJKJ.js +193 -0
- package/lib/cjs/ecl-UWr5vJKJ.js.map +1 -0
- package/lib/cjs/eiffel-Su-C9LAY.js +149 -0
- package/lib/cjs/eiffel-Su-C9LAY.js.map +1 -0
- package/lib/cjs/elm-vNNfVJj7.js +233 -0
- package/lib/cjs/elm-vNNfVJj7.js.map +1 -0
- package/lib/cjs/erlang-NM9dgYaS.js +584 -0
- package/lib/cjs/erlang-NM9dgYaS.js.map +1 -0
- package/lib/cjs/factor-RWs-4aWg.js +68 -0
- package/lib/cjs/factor-RWs-4aWg.js.map +1 -0
- package/lib/cjs/fcl-acUhGCfs.js +157 -0
- package/lib/cjs/fcl-acUhGCfs.js.map +1 -0
- package/lib/cjs/forth-sDkE6z3A.js +167 -0
- package/lib/cjs/forth-sDkE6z3A.js.map +1 -0
- package/lib/cjs/fortran-gkb4yvdk.js +175 -0
- package/lib/cjs/fortran-gkb4yvdk.js.map +1 -0
- package/lib/cjs/gas-mNA0qvkv.js +347 -0
- package/lib/cjs/gas-mNA0qvkv.js.map +1 -0
- package/lib/cjs/gherkin-5uyKpXXh.js +150 -0
- package/lib/cjs/gherkin-5uyKpXXh.js.map +1 -0
- package/lib/cjs/go-5XitXoIZ.js +167 -0
- package/lib/cjs/go-5XitXoIZ.js.map +1 -0
- package/lib/cjs/groovy-mz3pWMKN.js +233 -0
- package/lib/cjs/groovy-mz3pWMKN.js.map +1 -0
- package/lib/cjs/haskell-9KaSS7kb.js +242 -0
- package/lib/cjs/haskell-9KaSS7kb.js.map +1 -0
- package/lib/cjs/haxe-L8h6Pvni.js +494 -0
- package/lib/cjs/haxe-L8h6Pvni.js.map +1 -0
- package/lib/cjs/helper-OEW-2Vxr.js +9 -0
- package/lib/cjs/helper-OEW-2Vxr.js.map +1 -0
- package/lib/cjs/http-BFQQnRR-.js +92 -0
- package/lib/cjs/http-BFQQnRR-.js.map +1 -0
- package/lib/cjs/idl-29T-AzAy.js +277 -0
- package/lib/cjs/idl-29T-AzAy.js.map +1 -0
- package/lib/cjs/index-2oxl5Zo4.js +551 -0
- package/lib/cjs/index-2oxl5Zo4.js.map +1 -0
- package/lib/cjs/index-5PcT4iSf.js +107 -0
- package/lib/cjs/index-5PcT4iSf.js.map +1 -0
- package/lib/cjs/index-78P4PeZ9.js +361 -0
- package/lib/cjs/index-78P4PeZ9.js.map +1 -0
- package/lib/cjs/index-GEIgbcVc.js +1028 -0
- package/lib/cjs/index-GEIgbcVc.js.map +1 -0
- package/lib/cjs/index-GKolgvC5.js +505 -0
- package/lib/cjs/index-GKolgvC5.js.map +1 -0
- package/lib/cjs/index-JAqL0ybh.js +55 -0
- package/lib/cjs/index-JAqL0ybh.js.map +1 -0
- package/lib/cjs/index-LdEYPSZc.js +80 -0
- package/lib/cjs/index-LdEYPSZc.js.map +1 -0
- package/lib/cjs/index-Ne_pk53w.js +178 -0
- package/lib/cjs/index-Ne_pk53w.js.map +1 -0
- package/lib/cjs/index-O3vRXWIP.js +199 -0
- package/lib/cjs/index-O3vRXWIP.js.map +1 -0
- package/lib/cjs/index-OA_u95ey.js +531 -0
- package/lib/cjs/index-OA_u95ey.js.map +1 -0
- package/lib/cjs/index-OIQn1x0L.js +262 -0
- package/lib/cjs/index-OIQn1x0L.js.map +1 -0
- package/lib/cjs/index-OtaMLv5l.js +397 -0
- package/lib/cjs/index-OtaMLv5l.js.map +1 -0
- package/lib/cjs/index-PF7s7DOo.js +386 -0
- package/lib/cjs/index-PF7s7DOo.js.map +1 -0
- package/lib/cjs/index-SxWWV8XD.js +442 -0
- package/lib/cjs/index-SxWWV8XD.js.map +1 -0
- package/lib/cjs/index-TEjdwq--.js +2518 -0
- package/lib/cjs/index-TEjdwq--.js.map +1 -0
- package/lib/cjs/index-de3dfsQr.js +1044 -0
- package/lib/cjs/index-de3dfsQr.js.map +1 -0
- package/lib/cjs/index-fkT0ywfA.js +698 -0
- package/lib/cjs/index-fkT0ywfA.js.map +1 -0
- package/lib/cjs/index-i0_v2uVp.js +202 -0
- package/lib/cjs/index-i0_v2uVp.js.map +1 -0
- package/lib/cjs/index-kNI3S3lF.js +22477 -0
- package/lib/cjs/index-kNI3S3lF.js.map +1 -0
- package/lib/cjs/index-kvO8ReCY.js +1960 -0
- package/lib/cjs/index-kvO8ReCY.js.map +1 -0
- package/lib/cjs/index-llNS_EuP.js +25695 -0
- package/lib/cjs/index-llNS_EuP.js.map +1 -0
- package/lib/cjs/index-lrFGGa_l.js +404 -0
- package/lib/cjs/index-lrFGGa_l.js.map +1 -0
- package/lib/cjs/index-mJ47ZWO2.js +155 -0
- package/lib/cjs/index-mJ47ZWO2.js.map +1 -0
- package/lib/cjs/index-ortUqbAp.js +463 -0
- package/lib/cjs/index-ortUqbAp.js.map +1 -0
- package/lib/cjs/index-qRg5-QJH.js +160 -0
- package/lib/cjs/index-qRg5-QJH.js.map +1 -0
- package/lib/cjs/index-t_GA5F26.js +208 -0
- package/lib/cjs/index-t_GA5F26.js.map +1 -0
- package/lib/cjs/index-tbEq3xma.js +118 -0
- package/lib/cjs/index-tbEq3xma.js.map +1 -0
- package/lib/cjs/index-vlxA_KJ8.js +127 -0
- package/lib/cjs/index-vlxA_KJ8.js.map +1 -0
- package/lib/cjs/index-w9buMrFW.js +355 -0
- package/lib/cjs/index-w9buMrFW.js.map +1 -0
- package/lib/cjs/index-wXLifZgm.js +1877 -0
- package/lib/cjs/index-wXLifZgm.js.map +1 -0
- package/lib/cjs/index-xqKfEyRA.js +73 -0
- package/lib/cjs/index-xqKfEyRA.js.map +1 -0
- package/lib/cjs/index-z6pe2alg.js +20 -0
- package/lib/cjs/index-z6pe2alg.js.map +1 -0
- package/lib/cjs/index-zBr61zy6.js +773 -0
- package/lib/cjs/index-zBr61zy6.js.map +1 -0
- package/lib/cjs/index.js +19 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/javascript-5-BTydbD.js +928 -0
- package/lib/cjs/javascript-5-BTydbD.js.map +1 -0
- package/lib/cjs/jinja2-BWMz4gPk.js +174 -0
- package/lib/cjs/jinja2-BWMz4gPk.js.map +1 -0
- package/lib/cjs/julia-dtR9J3KZ.js +372 -0
- package/lib/cjs/julia-dtR9J3KZ.js.map +1 -0
- package/lib/cjs/livescript-YxT0INe3.js +262 -0
- package/lib/cjs/livescript-YxT0INe3.js.map +1 -0
- package/lib/cjs/lua-h7_AXjy9.js +140 -0
- package/lib/cjs/lua-h7_AXjy9.js.map +1 -0
- package/lib/cjs/mathematica-Zc57fOr3.js +156 -0
- package/lib/cjs/mathematica-Zc57fOr3.js.map +1 -0
- package/lib/cjs/mbox-ltKsKgJd.js +117 -0
- package/lib/cjs/mbox-ltKsKgJd.js.map +1 -0
- package/lib/cjs/meta-q8q9fHyr.js +14 -0
- package/lib/cjs/meta-q8q9fHyr.js.map +1 -0
- package/lib/cjs/mirc-xTLeWqmy.js +179 -0
- package/lib/cjs/mirc-xTLeWqmy.js.map +1 -0
- package/lib/cjs/mllike-xukl-Kjp.js +351 -0
- package/lib/cjs/mllike-xukl-Kjp.js.map +1 -0
- package/lib/cjs/modelica-LsXtAawk.js +195 -0
- package/lib/cjs/modelica-LsXtAawk.js.map +1 -0
- package/lib/cjs/mscgen-9HooYIVW.js +154 -0
- package/lib/cjs/mscgen-9HooYIVW.js.map +1 -0
- package/lib/cjs/mumps-VXqGp84f.js +132 -0
- package/lib/cjs/mumps-VXqGp84f.js.map +1 -0
- package/lib/cjs/nginx-UrubUbn1.js +166 -0
- package/lib/cjs/nginx-UrubUbn1.js.map +1 -0
- package/lib/cjs/nsis-c2AYwqyy.js +83 -0
- package/lib/cjs/nsis-c2AYwqyy.js.map +1 -0
- package/lib/cjs/ntriples-N1nwiheD.js +144 -0
- package/lib/cjs/ntriples-N1nwiheD.js.map +1 -0
- package/lib/cjs/octave-ElonStfZ.js +115 -0
- package/lib/cjs/octave-ElonStfZ.js.map +1 -0
- package/lib/cjs/oz-7VQTnCfu.js +238 -0
- package/lib/cjs/oz-7VQTnCfu.js.map +1 -0
- package/lib/cjs/pascal-yq2Cb88Q.js +127 -0
- package/lib/cjs/pascal-yq2Cb88Q.js.map +1 -0
- package/lib/cjs/perl-hJq4byS9.js +822 -0
- package/lib/cjs/perl-hJq4byS9.js.map +1 -0
- package/lib/cjs/pig-2syuOlAa.js +152 -0
- package/lib/cjs/pig-2syuOlAa.js.map +1 -0
- package/lib/cjs/powershell-NDwxuSDg.js +384 -0
- package/lib/cjs/powershell-NDwxuSDg.js.map +1 -0
- package/lib/cjs/properties-wacODxDJ.js +65 -0
- package/lib/cjs/properties-wacODxDJ.js.map +1 -0
- package/lib/cjs/protobuf-zVHZwskk.js +57 -0
- package/lib/cjs/protobuf-zVHZwskk.js.map +1 -0
- package/lib/cjs/puppet-koQikqO-.js +208 -0
- package/lib/cjs/puppet-koQikqO-.js.map +1 -0
- package/lib/cjs/python-P3UsKHbj.js +394 -0
- package/lib/cjs/python-P3UsKHbj.js.map +1 -0
- package/lib/cjs/q-Z_d2uXoA.js +126 -0
- package/lib/cjs/q-Z_d2uXoA.js.map +1 -0
- package/lib/cjs/r-J6Jl9z1i.js +177 -0
- package/lib/cjs/r-J6Jl9z1i.js.map +1 -0
- package/lib/cjs/rpm-6C0Omumu.js +93 -0
- package/lib/cjs/rpm-6C0Omumu.js.map +1 -0
- package/lib/cjs/ruby-POVyUmsb.js +290 -0
- package/lib/cjs/ruby-POVyUmsb.js.map +1 -0
- package/lib/cjs/sas-vDtpSmFr.js +271 -0
- package/lib/cjs/sas-vDtpSmFr.js.map +1 -0
- package/lib/cjs/schema-7d3meDfB.js +74 -0
- package/lib/cjs/schema-7d3meDfB.js.map +1 -0
- package/lib/cjs/scheme-5AA5BH7S.js +266 -0
- package/lib/cjs/scheme-5AA5BH7S.js.map +1 -0
- package/lib/cjs/shell-_ztDMiW6.js +148 -0
- package/lib/cjs/shell-_ztDMiW6.js.map +1 -0
- package/lib/cjs/sieve-R_vzlbvH.js +181 -0
- package/lib/cjs/sieve-R_vzlbvH.js.map +1 -0
- package/lib/cjs/simple-mode-ZwmNbV0h.js +138 -0
- package/lib/cjs/simple-mode-ZwmNbV0h.js.map +1 -0
- package/lib/cjs/smalltalk-dWLp5zN8.js +156 -0
- package/lib/cjs/smalltalk-dWLp5zN8.js.map +1 -0
- package/lib/cjs/solr-wSmvjKI8.js +83 -0
- package/lib/cjs/solr-wSmvjKI8.js.map +1 -0
- package/lib/cjs/sparql-GNU_0xKB.js +173 -0
- package/lib/cjs/sparql-GNU_0xKB.js.map +1 -0
- package/lib/cjs/spreadsheet-BiqYLk6M.js +101 -0
- package/lib/cjs/spreadsheet-BiqYLk6M.js.map +1 -0
- package/lib/cjs/sql-9GpHBPsC.js +497 -0
- package/lib/cjs/sql-9GpHBPsC.js.map +1 -0
- package/lib/cjs/stex-1V41CNLk.js +250 -0
- package/lib/cjs/stex-1V41CNLk.js.map +1 -0
- package/lib/cjs/stylus-H6hn9z_G.js +753 -0
- package/lib/cjs/stylus-H6hn9z_G.js.map +1 -0
- package/lib/cjs/swift-Xv5f8zgN.js +205 -0
- package/lib/cjs/swift-Xv5f8zgN.js.map +1 -0
- package/lib/cjs/tcl-LI-LOw_t.js +128 -0
- package/lib/cjs/tcl-LI-LOw_t.js.map +1 -0
- package/lib/cjs/textile-3NvRPUgg.js +444 -0
- package/lib/cjs/textile-3NvRPUgg.js.map +1 -0
- package/lib/cjs/tiddlywiki-PkMzy8_R.js +281 -0
- package/lib/cjs/tiddlywiki-PkMzy8_R.js.map +1 -0
- package/lib/cjs/tiki-Zk_GnEC8.js +292 -0
- package/lib/cjs/tiki-Zk_GnEC8.js.map +1 -0
- package/lib/cjs/toml-36gJ0YCq.js +78 -0
- package/lib/cjs/toml-36gJ0YCq.js.map +1 -0
- package/lib/cjs/tooltip-plugin-Mk9fRTxI.js +200 -0
- package/lib/cjs/tooltip-plugin-Mk9fRTxI.js.map +1 -0
- package/lib/cjs/troff-RLZ_o61o.js +67 -0
- package/lib/cjs/troff-RLZ_o61o.js.map +1 -0
- package/lib/cjs/ttcn-cfg-twaoJYvf.js +204 -0
- package/lib/cjs/ttcn-cfg-twaoJYvf.js.map +1 -0
- package/lib/cjs/ttcn-kGwvGb2v.js +260 -0
- package/lib/cjs/ttcn-kGwvGb2v.js.map +1 -0
- package/lib/cjs/turtle-nnevat7b.js +144 -0
- package/lib/cjs/turtle-nnevat7b.js.map +1 -0
- package/lib/cjs/vb-fO_I9s3s.js +252 -0
- package/lib/cjs/vb-fO_I9s3s.js.map +1 -0
- package/lib/cjs/vbscript-HXnn40y4.js +324 -0
- package/lib/cjs/vbscript-HXnn40y4.js.map +1 -0
- package/lib/cjs/velocity-Wn-ZfFzr.js +189 -0
- package/lib/cjs/velocity-Wn-ZfFzr.js.map +1 -0
- package/lib/cjs/verilog-y1ev34z6.js +569 -0
- package/lib/cjs/verilog-y1ev34z6.js.map +1 -0
- package/lib/cjs/vhdl-LF0oeXxc.js +177 -0
- package/lib/cjs/vhdl-LF0oeXxc.js.map +1 -0
- package/lib/cjs/webidl-6kI5KbeC.js +182 -0
- package/lib/cjs/webidl-6kI5KbeC.js.map +1 -0
- package/lib/cjs/xquery-BavrmwsO.js +428 -0
- package/lib/cjs/xquery-BavrmwsO.js.map +1 -0
- package/lib/cjs/yacas-1g_AbTrl.js +185 -0
- package/lib/cjs/yacas-1g_AbTrl.js.map +1 -0
- package/lib/cjs/z80-QYzKAAp7.js +106 -0
- package/lib/cjs/z80-QYzKAAp7.js.map +1 -0
- package/lib/esm/_view-JjtfhQ8k.js +25 -0
- package/lib/esm/_view-JjtfhQ8k.js.map +1 -0
- package/lib/esm/apl-eHQxyJFn.js +143 -0
- package/lib/esm/apl-eHQxyJFn.js.map +1 -0
- package/lib/esm/asciiarmor-Z-IGYCI4.js +57 -0
- package/lib/esm/asciiarmor-Z-IGYCI4.js.map +1 -0
- package/lib/esm/asn1-gF7x-q1y.js +193 -0
- package/lib/esm/asn1-gF7x-q1y.js.map +1 -0
- package/lib/esm/asterisk-swk20ftp.js +188 -0
- package/lib/esm/asterisk-swk20ftp.js.map +1 -0
- package/lib/esm/brainfuck-IFQdiQoR.js +71 -0
- package/lib/esm/brainfuck-IFQdiQoR.js.map +1 -0
- package/lib/esm/clike-q3hUF2Cx.js +1019 -0
- package/lib/esm/clike-q3hUF2Cx.js.map +1 -0
- package/lib/esm/clojure-I2Krbr2M.js +275 -0
- package/lib/esm/clojure-I2Krbr2M.js.map +1 -0
- package/lib/{icons-HYkfuR-O.js → esm/clsx-R7WFaNKL.js} +22 -20
- package/lib/esm/clsx-R7WFaNKL.js.map +1 -0
- package/lib/esm/cmake-ewwXLeuZ.js +82 -0
- package/lib/esm/cmake-ewwXLeuZ.js.map +1 -0
- package/lib/esm/cobol-fpN1nAnR.js +236 -0
- package/lib/esm/cobol-fpN1nAnR.js.map +1 -0
- package/lib/esm/coffeescript--eTFR-bH.js +330 -0
- package/lib/esm/coffeescript--eTFR-bH.js.map +1 -0
- package/lib/esm/commonlisp-XLSwVdLc.js +109 -0
- package/lib/esm/commonlisp-XLSwVdLc.js.map +1 -0
- package/lib/esm/composed-offset-position.browser.min-Tnm31e-m.js +1132 -0
- package/lib/esm/composed-offset-position.browser.min-Tnm31e-m.js.map +1 -0
- package/lib/esm/crystal-_r3Aa1_a.js +420 -0
- package/lib/esm/crystal-_r3Aa1_a.js.map +1 -0
- package/lib/esm/css-hgwYGMKZ.js +848 -0
- package/lib/esm/css-hgwYGMKZ.js.map +1 -0
- package/lib/esm/cypher-bbJyAa-4.js +123 -0
- package/lib/esm/cypher-bbJyAa-4.js.map +1 -0
- package/lib/esm/d-5MyulviS.js +206 -0
- package/lib/esm/d-5MyulviS.js.map +1 -0
- package/lib/esm/diff-neOaT_vk.js +31 -0
- package/lib/esm/diff-neOaT_vk.js.map +1 -0
- package/lib/{dockerfile-u6f6Vw2s.js → esm/dockerfile-lzx42-zz.js} +42 -36
- package/lib/esm/dockerfile-lzx42-zz.js.map +1 -0
- package/lib/esm/dtd-FmzPLZcQ.js +122 -0
- package/lib/esm/dtd-FmzPLZcQ.js.map +1 -0
- package/lib/esm/dylan-1HtRK4GO.js +338 -0
- package/lib/esm/dylan-1HtRK4GO.js.map +1 -0
- package/lib/esm/ebnf-Nz-pnLHy.js +152 -0
- package/lib/esm/ebnf-Nz-pnLHy.js.map +1 -0
- package/lib/esm/ecl-lQsZhQz0.js +191 -0
- package/lib/esm/ecl-lQsZhQz0.js.map +1 -0
- package/lib/esm/eiffel-R_HiEkhx.js +147 -0
- package/lib/esm/eiffel-R_HiEkhx.js.map +1 -0
- package/lib/esm/elm-KYv4VTDg.js +231 -0
- package/lib/esm/elm-KYv4VTDg.js.map +1 -0
- package/lib/esm/erlang-7YaHCBIe.js +582 -0
- package/lib/esm/erlang-7YaHCBIe.js.map +1 -0
- package/lib/esm/factor-opBU9aTK.js +66 -0
- package/lib/esm/factor-opBU9aTK.js.map +1 -0
- package/lib/esm/fcl-jm31FmFz.js +155 -0
- package/lib/esm/fcl-jm31FmFz.js.map +1 -0
- package/lib/esm/forth-5NKbjnWh.js +165 -0
- package/lib/esm/forth-5NKbjnWh.js.map +1 -0
- package/lib/esm/fortran-dXm_-cb9.js +173 -0
- package/lib/esm/fortran-dXm_-cb9.js.map +1 -0
- package/lib/esm/gas-nsYVnsy-.js +344 -0
- package/lib/esm/gas-nsYVnsy-.js.map +1 -0
- package/lib/esm/gherkin-fzKpjm3M.js +148 -0
- package/lib/esm/gherkin-fzKpjm3M.js.map +1 -0
- package/lib/esm/go-Pn1qh7yl.js +165 -0
- package/lib/esm/go-Pn1qh7yl.js.map +1 -0
- package/lib/esm/groovy-DZY-8keZ.js +231 -0
- package/lib/esm/groovy-DZY-8keZ.js.map +1 -0
- package/lib/esm/haskell-JGh2upDd.js +240 -0
- package/lib/esm/haskell-JGh2upDd.js.map +1 -0
- package/lib/esm/haxe-1hvVK-Fy.js +491 -0
- package/lib/esm/haxe-1hvVK-Fy.js.map +1 -0
- package/lib/esm/helper-iYEjPbOY.js +7 -0
- package/lib/esm/helper-iYEjPbOY.js.map +1 -0
- package/lib/esm/http-mY1M77wn.js +90 -0
- package/lib/esm/http-mY1M77wn.js.map +1 -0
- package/lib/esm/idl-dy_653wH.js +275 -0
- package/lib/esm/idl-dy_653wH.js.map +1 -0
- package/lib/esm/index-0khVa44f.js +77 -0
- package/lib/esm/index-0khVa44f.js.map +1 -0
- package/lib/esm/index-218OjRxG.js +549 -0
- package/lib/esm/index-218OjRxG.js.map +1 -0
- package/lib/{index-P2HixfB4.js → esm/index-4QzlLVWs.js} +181 -128
- package/lib/esm/index-4QzlLVWs.js.map +1 -0
- package/lib/{index-iHi9E5fI.js → esm/index-4oMdufW4.js} +321 -239
- package/lib/esm/index-4oMdufW4.js.map +1 -0
- package/lib/esm/index-6P9Xk934.js +758 -0
- package/lib/esm/index-6P9Xk934.js.map +1 -0
- package/lib/{index-wD9meLYq.js → esm/index-7BVeXLQZ.js} +489 -514
- package/lib/esm/index-7BVeXLQZ.js.map +1 -0
- package/lib/{index-KDuMRRPt.js → esm/index-A9zdyi2L.js} +186 -149
- package/lib/esm/index-A9zdyi2L.js.map +1 -0
- package/lib/esm/index-AHPvVH4H.js +197 -0
- package/lib/esm/index-AHPvVH4H.js.map +1 -0
- package/lib/esm/index-Bg5GFp0g.js +384 -0
- package/lib/esm/index-Bg5GFp0g.js.map +1 -0
- package/lib/esm/index-DoEghZHy.js +2511 -0
- package/lib/esm/index-DoEghZHy.js.map +1 -0
- package/lib/esm/index-Grquo08f.js +152 -0
- package/lib/esm/index-Grquo08f.js.map +1 -0
- package/lib/esm/index-JkHHp3K-.js +22445 -0
- package/lib/esm/index-JkHHp3K-.js.map +1 -0
- package/lib/esm/index-Jvxff1vU.js +16 -0
- package/lib/esm/index-Jvxff1vU.js.map +1 -0
- package/lib/{index-f8O1bHwz.js → esm/index-L7VXk-jT.js} +645 -512
- package/lib/esm/index-L7VXk-jT.js.map +1 -0
- package/lib/esm/index-NmjiRA0M.js +1026 -0
- package/lib/esm/index-NmjiRA0M.js.map +1 -0
- package/lib/esm/index-PkBZpDL4.js +258 -0
- package/lib/esm/index-PkBZpDL4.js.map +1 -0
- package/lib/esm/index-TNMG6UrN.js +53 -0
- package/lib/esm/index-TNMG6UrN.js.map +1 -0
- package/lib/esm/index-U71v7KdA.js +400 -0
- package/lib/esm/index-U71v7KdA.js.map +1 -0
- package/lib/esm/index-U8q-F7hU.js +114 -0
- package/lib/esm/index-U8q-F7hU.js.map +1 -0
- package/lib/esm/index-UBeneu17.js +392 -0
- package/lib/esm/index-UBeneu17.js.map +1 -0
- package/lib/esm/index-VyZguCIt.js +69 -0
- package/lib/esm/index-VyZguCIt.js.map +1 -0
- package/lib/esm/index-a-SAfeeT.js +104 -0
- package/lib/esm/index-a-SAfeeT.js.map +1 -0
- package/lib/{index-cAviWcah.js → esm/index-bVubJ6Rv.js} +405 -289
- package/lib/esm/index-bVubJ6Rv.js.map +1 -0
- package/lib/{index-T6CCBIrO.js → esm/index-bsED907r.js} +143 -128
- package/lib/esm/index-bsED907r.js.map +1 -0
- package/lib/esm/index-h1arGiXv.js +1958 -0
- package/lib/esm/index-h1arGiXv.js.map +1 -0
- package/lib/esm/index-hQaRWeq1.js +350 -0
- package/lib/esm/index-hQaRWeq1.js.map +1 -0
- package/lib/esm/index-oMy83ynO.js +460 -0
- package/lib/esm/index-oMy83ynO.js.map +1 -0
- package/lib/esm/index-pHsvfB_I.js +503 -0
- package/lib/esm/index-pHsvfB_I.js.map +1 -0
- package/lib/esm/index-q-qE7-96.js +25651 -0
- package/lib/esm/index-q-qE7-96.js.map +1 -0
- package/lib/esm/index-rwcSpYkt.js +1037 -0
- package/lib/esm/index-rwcSpYkt.js.map +1 -0
- package/lib/esm/index-u8tWJbca.js +176 -0
- package/lib/esm/index-u8tWJbca.js.map +1 -0
- package/lib/{index-gaQ0Jeve.js → esm/index-vwrMVELn.js} +110 -85
- package/lib/esm/index-vwrMVELn.js.map +1 -0
- package/lib/esm/index-x-zW6gKj.js +1872 -0
- package/lib/esm/index-x-zW6gKj.js.map +1 -0
- package/lib/esm/index.js +12 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/javascript-TMTz-YQH.js +923 -0
- package/lib/esm/javascript-TMTz-YQH.js.map +1 -0
- package/lib/esm/jinja2-sRIdliZK.js +172 -0
- package/lib/esm/jinja2-sRIdliZK.js.map +1 -0
- package/lib/esm/julia-fK0wmpGL.js +370 -0
- package/lib/esm/julia-fK0wmpGL.js.map +1 -0
- package/lib/esm/livescript-FRbAot3D.js +260 -0
- package/lib/esm/livescript-FRbAot3D.js.map +1 -0
- package/lib/esm/lua-t4FHEjvK.js +138 -0
- package/lib/esm/lua-t4FHEjvK.js.map +1 -0
- package/lib/esm/mathematica-sn_KGlYj.js +154 -0
- package/lib/esm/mathematica-sn_KGlYj.js.map +1 -0
- package/lib/esm/mbox-KvVC319E.js +115 -0
- package/lib/esm/mbox-KvVC319E.js.map +1 -0
- package/lib/esm/meta-3ZYGAGrY.js +12 -0
- package/lib/esm/meta-3ZYGAGrY.js.map +1 -0
- package/lib/esm/mirc-PzJ0zKSk.js +177 -0
- package/lib/esm/mirc-PzJ0zKSk.js.map +1 -0
- package/lib/esm/mllike-ZK411xkN.js +347 -0
- package/lib/esm/mllike-ZK411xkN.js.map +1 -0
- package/lib/esm/modelica-ZaHlRCbp.js +193 -0
- package/lib/esm/modelica-ZaHlRCbp.js.map +1 -0
- package/lib/esm/mscgen-Kkq4o4Zm.js +150 -0
- package/lib/esm/mscgen-Kkq4o4Zm.js.map +1 -0
- package/lib/esm/mumps-M8a87-rl.js +130 -0
- package/lib/esm/mumps-M8a87-rl.js.map +1 -0
- package/lib/esm/nginx-2LJIX23E.js +164 -0
- package/lib/esm/nginx-2LJIX23E.js.map +1 -0
- package/lib/esm/nsis-zvfFgMLi.js +81 -0
- package/lib/esm/nsis-zvfFgMLi.js.map +1 -0
- package/lib/esm/ntriples-tVkHy5bk.js +142 -0
- package/lib/esm/ntriples-tVkHy5bk.js.map +1 -0
- package/lib/esm/octave-mE4T5MF5.js +113 -0
- package/lib/esm/octave-mE4T5MF5.js.map +1 -0
- package/lib/esm/oz-q-LCsuVg.js +236 -0
- package/lib/esm/oz-q-LCsuVg.js.map +1 -0
- package/lib/esm/pascal-0IgUAn4C.js +125 -0
- package/lib/esm/pascal-0IgUAn4C.js.map +1 -0
- package/lib/esm/perl-AqxdYGac.js +820 -0
- package/lib/esm/perl-AqxdYGac.js.map +1 -0
- package/lib/esm/pig-ESM-IjQj.js +150 -0
- package/lib/esm/pig-ESM-IjQj.js.map +1 -0
- package/lib/esm/powershell-CLFP0L55.js +382 -0
- package/lib/esm/powershell-CLFP0L55.js.map +1 -0
- package/lib/esm/properties-oWHNzvb9.js +63 -0
- package/lib/esm/properties-oWHNzvb9.js.map +1 -0
- package/lib/esm/protobuf-c7eMmdcc.js +55 -0
- package/lib/esm/protobuf-c7eMmdcc.js.map +1 -0
- package/lib/esm/puppet-FjzvdRJr.js +206 -0
- package/lib/esm/puppet-FjzvdRJr.js.map +1 -0
- package/lib/esm/python-3Pv0tnvt.js +390 -0
- package/lib/esm/python-3Pv0tnvt.js.map +1 -0
- package/lib/esm/q-IImW8da6.js +124 -0
- package/lib/esm/q-IImW8da6.js.map +1 -0
- package/lib/esm/r-CnEkTvR0.js +175 -0
- package/lib/esm/r-CnEkTvR0.js.map +1 -0
- package/lib/esm/rpm-Q55-fEHj.js +90 -0
- package/lib/esm/rpm-Q55-fEHj.js.map +1 -0
- package/lib/esm/ruby-zhaGB3Kh.js +288 -0
- package/lib/esm/ruby-zhaGB3Kh.js.map +1 -0
- package/lib/esm/sas-Ur9jZIOV.js +269 -0
- package/lib/esm/sas-Ur9jZIOV.js.map +1 -0
- package/lib/esm/schema-hVsy-vme.js +71 -0
- package/lib/esm/schema-hVsy-vme.js.map +1 -0
- package/lib/esm/scheme-daT5-Rya.js +264 -0
- package/lib/esm/scheme-daT5-Rya.js.map +1 -0
- package/lib/esm/shell-cwFL0AYP.js +146 -0
- package/lib/esm/shell-cwFL0AYP.js.map +1 -0
- package/lib/esm/sieve-MlNXFFUq.js +179 -0
- package/lib/esm/sieve-MlNXFFUq.js.map +1 -0
- package/lib/esm/simple-mode-m1rsX7Gw.js +136 -0
- package/lib/esm/simple-mode-m1rsX7Gw.js.map +1 -0
- package/lib/esm/smalltalk-xrQICp9e.js +154 -0
- package/lib/esm/smalltalk-xrQICp9e.js.map +1 -0
- package/lib/esm/solr-PU3oPgQz.js +81 -0
- package/lib/esm/solr-PU3oPgQz.js.map +1 -0
- package/lib/esm/sparql--u8NRBii.js +171 -0
- package/lib/esm/sparql--u8NRBii.js.map +1 -0
- package/lib/esm/spreadsheet-QCp0LifX.js +99 -0
- package/lib/esm/spreadsheet-QCp0LifX.js.map +1 -0
- package/lib/esm/sql-dsGfl64h.js +482 -0
- package/lib/esm/sql-dsGfl64h.js.map +1 -0
- package/lib/esm/stex-WcLBzvkD.js +247 -0
- package/lib/esm/stex-WcLBzvkD.js.map +1 -0
- package/lib/esm/stylus--A5XAqOX.js +751 -0
- package/lib/esm/stylus--A5XAqOX.js.map +1 -0
- package/lib/esm/swift-qAm73i7G.js +203 -0
- package/lib/esm/swift-qAm73i7G.js.map +1 -0
- package/lib/esm/tcl-Kdc7qxc-.js +126 -0
- package/lib/esm/tcl-Kdc7qxc-.js.map +1 -0
- package/lib/esm/textile--sz8UrIz.js +442 -0
- package/lib/esm/textile--sz8UrIz.js.map +1 -0
- package/lib/esm/tiddlywiki-xNXTeBlQ.js +279 -0
- package/lib/esm/tiddlywiki-xNXTeBlQ.js.map +1 -0
- package/lib/esm/tiki-LCXjrNH3.js +290 -0
- package/lib/esm/tiki-LCXjrNH3.js.map +1 -0
- package/lib/esm/toml-Ac4tlBMn.js +76 -0
- package/lib/esm/toml-Ac4tlBMn.js.map +1 -0
- package/lib/esm/tooltip-plugin-vZefVSGL.js +194 -0
- package/lib/esm/tooltip-plugin-vZefVSGL.js.map +1 -0
- package/lib/esm/troff-LLW1x1Yz.js +65 -0
- package/lib/esm/troff-LLW1x1Yz.js.map +1 -0
- package/lib/esm/ttcn-ZYZ9FS3u.js +258 -0
- package/lib/esm/ttcn-ZYZ9FS3u.js.map +1 -0
- package/lib/esm/ttcn-cfg-qsvf3MfB.js +202 -0
- package/lib/esm/ttcn-cfg-qsvf3MfB.js.map +1 -0
- package/lib/esm/turtle-wq3TqOth.js +142 -0
- package/lib/esm/turtle-wq3TqOth.js.map +1 -0
- package/lib/esm/vb-86M_JuNP.js +250 -0
- package/lib/esm/vb-86M_JuNP.js.map +1 -0
- package/lib/esm/vbscript-GueAeVug.js +321 -0
- package/lib/esm/vbscript-GueAeVug.js.map +1 -0
- package/lib/esm/velocity-7PW9GXO2.js +187 -0
- package/lib/esm/velocity-7PW9GXO2.js.map +1 -0
- package/lib/esm/verilog-PXtXH14C.js +566 -0
- package/lib/esm/verilog-PXtXH14C.js.map +1 -0
- package/lib/esm/vhdl-I8eyK83X.js +175 -0
- package/lib/esm/vhdl-I8eyK83X.js.map +1 -0
- package/lib/esm/webidl-1f8ATJ66.js +180 -0
- package/lib/esm/webidl-1f8ATJ66.js.map +1 -0
- package/lib/esm/xquery-IYp28Wx6.js +426 -0
- package/lib/esm/xquery-IYp28Wx6.js.map +1 -0
- package/lib/esm/yacas-wkENB05f.js +183 -0
- package/lib/esm/yacas-wkENB05f.js.map +1 -0
- package/lib/esm/z80-GaXiLdiV.js +103 -0
- package/lib/esm/z80-GaXiLdiV.js.map +1 -0
- package/lib/theme/_internal/classic-common.css +256 -0
- package/lib/theme/classic/style.css +28 -0
- package/lib/theme/classic-dark/style.css +28 -0
- package/lib/theme/common/block-edit.css +118 -0
- package/lib/theme/common/code-mirror.css +177 -0
- package/lib/theme/common/cursor.css +13 -0
- package/lib/theme/common/image-block.css +362 -0
- package/lib/theme/common/link-tooltip.css +105 -0
- package/lib/theme/common/list-item.css +34 -0
- package/lib/theme/common/placeholder.css +7 -0
- package/lib/theme/common/prosemirror.css +1 -0
- package/lib/theme/common/style.css +9 -0
- package/lib/theme/common/toolbar.css +34 -0
- package/lib/{core → types/core}/crepe.d.ts +2 -4
- package/lib/types/core/crepe.d.ts.map +1 -0
- package/lib/types/core/index.d.ts +2 -0
- package/lib/types/core/index.d.ts.map +1 -0
- package/lib/types/core/slice.d.ts +5 -0
- package/lib/types/core/slice.d.ts.map +1 -0
- package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -0
- package/lib/{feature → types/feature}/block-edit/handle/index.d.ts +2 -3
- package/lib/types/feature/block-edit/handle/index.d.ts.map +1 -0
- package/lib/types/feature/block-edit/index.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/config.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/icons.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/index.d.ts.map +1 -0
- package/lib/types/feature/code-mirror/index.d.ts +11 -0
- package/lib/types/feature/code-mirror/index.d.ts.map +1 -0
- package/lib/types/feature/cursor/index.d.ts +9 -0
- package/lib/types/feature/cursor/index.d.ts.map +1 -0
- package/lib/types/feature/image-block/index.d.ts.map +1 -0
- package/lib/{feature → types/feature}/index.d.ts +3 -1
- package/lib/types/feature/index.d.ts.map +1 -0
- package/lib/types/feature/link-tooltip/consts.d.ts.map +1 -0
- package/lib/types/feature/link-tooltip/index.d.ts.map +1 -0
- package/lib/types/feature/list-item/consts.d.ts.map +1 -0
- package/lib/types/feature/list-item/index.d.ts.map +1 -0
- package/lib/{feature → types/feature}/placeholder/index.d.ts +2 -1
- package/lib/types/feature/placeholder/index.d.ts.map +1 -0
- package/lib/{feature → types/feature}/shared.d.ts +1 -1
- package/lib/types/feature/shared.d.ts.map +1 -0
- package/lib/types/feature/toolbar/component.d.ts.map +1 -0
- package/lib/types/feature/toolbar/consts.d.ts.map +1 -0
- package/lib/types/feature/toolbar/index.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/{utils → types/utils}/index.d.ts +1 -0
- package/lib/types/utils/index.d.ts.map +1 -0
- package/package.json +31 -23
- package/src/core/crepe.ts +3 -8
- package/src/core/index.ts +0 -3
- package/src/core/slice.ts +0 -33
- package/src/feature/block-edit/handle/component.ts +0 -1
- package/src/feature/block-edit/handle/index.ts +26 -19
- package/src/feature/block-edit/index.ts +0 -4
- package/src/feature/block-edit/menu/component.ts +18 -10
- package/src/feature/block-edit/menu/config.ts +0 -1
- package/src/feature/block-edit/menu/icons.ts +0 -1
- package/src/feature/block-edit/menu/index.ts +9 -13
- package/src/feature/code-mirror/index.ts +24 -32
- package/src/feature/cursor/index.ts +22 -0
- package/src/feature/image-block/index.ts +0 -4
- package/src/feature/index.ts +6 -5
- package/src/feature/link-tooltip/consts.ts +0 -1
- package/src/feature/link-tooltip/index.ts +0 -4
- package/src/feature/list-item/consts.ts +0 -1
- package/src/feature/list-item/index.ts +2 -6
- package/src/feature/placeholder/index.ts +1 -5
- package/src/feature/shared.ts +1 -2
- package/src/feature/toolbar/component.ts +0 -1
- package/src/feature/toolbar/consts.ts +0 -1
- package/src/feature/toolbar/index.ts +10 -16
- package/src/index.ts +0 -3
- package/src/theme/_internal/classic-common.css +219 -0
- package/src/theme/classic/style.css +2 -166
- package/src/theme/classic-dark/style.css +2 -171
- package/src/{feature/block-edit/style.css → theme/common/block-edit.css} +11 -1
- package/src/theme/common/code-mirror.css +176 -0
- package/src/theme/common/cursor.css +15 -0
- package/src/{feature/image-block/style.css → theme/common/image-block.css} +180 -16
- package/src/{feature/link-tooltip/style.css → theme/common/link-tooltip.css} +8 -0
- package/src/{feature/list-item/style.css → theme/common/list-item.css} +14 -3
- package/src/theme/common/prosemirror.css +1 -0
- package/src/theme/common/style.css +9 -0
- package/src/{feature/toolbar/style.css → theme/common/toolbar.css} +4 -0
- package/src/utils/index.ts +5 -1
- package/src/vite-env.d.ts +0 -1
- package/lib/apl-p0IPP13W.js +0 -76
- package/lib/asciiarmor-lJsBxlJJ.js +0 -34
- package/lib/asn1-Q9v1zIy5.js +0 -102
- package/lib/asterisk-foNkeTjy.js +0 -273
- package/lib/brainfuck-0XqyXpNS.js +0 -35
- package/lib/clike-ak6Z6Yhe.js +0 -639
- package/lib/clojure-iYO8U8Sg.js +0 -810
- package/lib/clsx-7d8NmkQq.js +0 -21
- package/lib/cmake-SVzjkxV_.js +0 -28
- package/lib/cobol-APHEnAOX.js +0 -74
- package/lib/coffeescript-KqQa0SYG.js +0 -182
- package/lib/commonlisp-bwqNqR5V.js +0 -79
- package/lib/core/crepe.d.ts.map +0 -1
- package/lib/core/index.d.ts +0 -3
- package/lib/core/index.d.ts.map +0 -1
- package/lib/core/slice.d.ts +0 -12
- package/lib/core/slice.d.ts.map +0 -1
- package/lib/crystal-BViWuDpA.js +0 -217
- package/lib/css-KHXHXfXg.js +0 -1572
- package/lib/cypher-XpTt4zQ3.js +0 -69
- package/lib/d-fLig6yqY.js +0 -139
- package/lib/diff-WoKGLpy6.js +0 -18
- package/lib/dtd-SIJRUW6K.js +0 -91
- package/lib/dylan-4HCLhpWP.js +0 -238
- package/lib/ebnf-h_0lged5.js +0 -77
- package/lib/ecl-Lf4FF0lf.js +0 -133
- package/lib/eiffel-qlw8KUyf.js +0 -112
- package/lib/elm-QRnB3zXs.js +0 -108
- package/lib/erlang-fyVKb7eK.js +0 -488
- package/lib/factor-BEeN4upY.js +0 -65
- package/lib/fcl-lRek3hEb.js +0 -106
- package/lib/feature/block-edit/handle/component.d.ts.map +0 -1
- package/lib/feature/block-edit/handle/index.d.ts.map +0 -1
- package/lib/feature/block-edit/index.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/component.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/config.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/icons.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/index.d.ts.map +0 -1
- package/lib/feature/code-mirror/index.d.ts.map +0 -1
- package/lib/feature/gap-cursor/index.d.ts.map +0 -1
- package/lib/feature/image-block/index.d.ts.map +0 -1
- package/lib/feature/index.d.ts.map +0 -1
- package/lib/feature/link-tooltip/consts.d.ts.map +0 -1
- package/lib/feature/link-tooltip/index.d.ts.map +0 -1
- package/lib/feature/list-item/consts.d.ts.map +0 -1
- package/lib/feature/list-item/index.d.ts +0 -3
- package/lib/feature/list-item/index.d.ts.map +0 -1
- package/lib/feature/placeholder/index.d.ts.map +0 -1
- package/lib/feature/shared.d.ts.map +0 -1
- package/lib/feature/toolbar/component.d.ts.map +0 -1
- package/lib/feature/toolbar/consts.d.ts.map +0 -1
- package/lib/feature/toolbar/index.d.ts +0 -3
- package/lib/feature/toolbar/index.d.ts.map +0 -1
- package/lib/forth-ua2bRd8T.js +0 -60
- package/lib/fortran-WnF7znuN.js +0 -443
- package/lib/gas-wowve1o7.js +0 -183
- package/lib/gherkin-m7GIChu3.js +0 -34
- package/lib/go-th443Dhb.js +0 -158
- package/lib/groovy-tR4RiZnc.js +0 -161
- package/lib/haskell-jxVBofv5.js +0 -375
- package/lib/haxe-kWPI2tq3.js +0 -390
- package/lib/hooks-82sqkbtE.js +0 -21
- package/lib/http-3GIFWUlG.js +0 -45
- package/lib/idl-PvpMZg-l.js +0 -947
- package/lib/index-1KQHo-44.js +0 -517
- package/lib/index-4p4g7ekJ.js +0 -1295
- package/lib/index-4uesIuIi.js +0 -288
- package/lib/index-51ybuhXd.js +0 -8
- package/lib/index-96I5UgEh.js +0 -8
- package/lib/index-C17brGmy.js +0 -81
- package/lib/index-EhPVaWMa.js +0 -1744
- package/lib/index-IKzcztdD.js +0 -8
- package/lib/index-K_kBonEs.js +0 -83
- package/lib/index-Mwqn_gij.js +0 -78
- package/lib/index-PwfWCMtB.js +0 -317
- package/lib/index-S3dtETwZ.js +0 -20976
- package/lib/index-UdINtlLB.js +0 -1041
- package/lib/index-WpINpUas.js +0 -107
- package/lib/index-YjIgdsm-.js +0 -364
- package/lib/index-ZyvuYqIf.js +0 -135
- package/lib/index-brbFUWoa.js +0 -507
- package/lib/index-f_vMXWyc.js +0 -64
- package/lib/index-gRh597MD.js +0 -47
- package/lib/index-hcG6NuOF.js +0 -121
- package/lib/index-iECr6hjv.js +0 -19511
- package/lib/index-sAnPFt21.js +0 -984
- package/lib/index-xHADmDT3.js +0 -12
- package/lib/index-zY_Ffd-9.js +0 -928
- package/lib/index.d.ts +0 -4
- package/lib/index.d.ts.map +0 -1
- package/lib/index.es.js +0 -7
- package/lib/javascript-8ZHqHagw.js +0 -758
- package/lib/jinja2-vsOFe0qD.js +0 -154
- package/lib/julia-dlp_pbN1.js +0 -241
- package/lib/livescript-Gf5R-LT6.js +0 -273
- package/lib/lua-c5Y_JsBp.js +0 -221
- package/lib/mathematica-iiGTGmUs.js +0 -35
- package/lib/mbox-ZJh86H8B.js +0 -78
- package/lib/meta-tAGyVRPE.js +0 -511
- package/lib/mirc-i0qkCa0y.js +0 -73
- package/lib/mllike-Dy551fZW.js +0 -275
- package/lib/modelica-n6tGqUT9.js +0 -94
- package/lib/mscgen-aKSbB7D9.js +0 -104
- package/lib/mumps-lNiKA6sp.js +0 -25
- package/lib/nginx--YmuCfDj.js +0 -93
- package/lib/nsis-zhS8iA09.js +0 -62
- package/lib/ntriples-E3jQl3MC.js +0 -79
- package/lib/octave-EQvkGIeG.js +0 -144
- package/lib/oz-W2cpqFf6.js +0 -152
- package/lib/pascal-lCh6ouNZ.js +0 -79
- package/lib/perl-PxEQBX0B.js +0 -915
- package/lib/pig-Y_bNcrzS.js +0 -56
- package/lib/powershell-GaQP-TZr.js +0 -249
- package/lib/properties-mbRyn54L.js +0 -26
- package/lib/prosemirror-noTDkx-k.js +0 -4
- package/lib/protobuf-8CJideyJ.js +0 -49
- package/lib/puppet-ABBaChNZ.js +0 -45
- package/lib/python-sKdHg3Ka.js +0 -321
- package/lib/q-_1yG40Nm.js +0 -89
- package/lib/r-Ziz56bHT.js +0 -108
- package/lib/rpm-ORjGOHaQ.js +0 -57
- package/lib/ruby-jlbYq0dT.js +0 -233
- package/lib/sas-2n7xeUuO.js +0 -107
- package/lib/schema-PTbL6iMu.js +0 -62
- package/lib/scheme-XCs-NPeU.js +0 -126
- package/lib/shell-0_1Um7Dq.js +0 -184
- package/lib/sieve-7uyJD1x1.js +0 -73
- package/lib/simple-mode--HIzBxba.js +0 -95
- package/lib/smalltalk-PEFzrlQ-.js +0 -48
- package/lib/solr-BLBaHahN.js +0 -41
- package/lib/sparql-4F9ZWf1b.js +0 -204
- package/lib/spreadsheet-SGSo6blj.js +0 -49
- package/lib/sql-tebLBzN0.js +0 -291
- package/lib/stex-SFJcFGOO.js +0 -130
- package/lib/stylus-rwwWYWFm.js +0 -256
- package/lib/swift-eorJ0tCv.js +0 -238
- package/lib/tcl-IwXMB8U4.js +0 -82
- package/lib/textile-ok2VyjwC.js +0 -299
- package/lib/theme/classic/index.d.ts +0 -3
- package/lib/theme/classic/index.d.ts.map +0 -1
- package/lib/theme/classic-dark/index.d.ts +0 -3
- package/lib/theme/classic-dark/index.d.ts.map +0 -1
- package/lib/theme/headless/index.d.ts +0 -3
- package/lib/theme/headless/index.d.ts.map +0 -1
- package/lib/theme/index.d.ts +0 -8
- package/lib/theme/index.d.ts.map +0 -1
- package/lib/theme/shared.d.ts +0 -3
- package/lib/theme/shared.d.ts.map +0 -1
- package/lib/tiddlywiki-DLhz8_pc.js +0 -156
- package/lib/tiki-DFAqFElY.js +0 -183
- package/lib/tippy.esm-lHdsQkl8.js +0 -1813
- package/lib/toml-ryxpTZEV.js +0 -49
- package/lib/tooltip-plugin-Pjm6nx6a.js +0 -122
- package/lib/troff-ZzZyvNct.js +0 -36
- package/lib/ttcn-6gvkqqpW.js +0 -136
- package/lib/ttcn-cfg-oSu-Dq5C.js +0 -98
- package/lib/turtle-10ofr5au.js +0 -87
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/vb-a6n6fzrD.js +0 -74
- package/lib/vbscript-dgvo8jPt.js +0 -324
- package/lib/velocity-CBncCrwO.js +0 -97
- package/lib/verilog-KlcACt6C.js +0 -271
- package/lib/vhdl-NMd7Gf35.js +0 -117
- package/lib/webidl-z1UE5DN_.js +0 -160
- package/lib/xquery-hDt5jWTp.js +0 -431
- package/lib/yacas-ftgh_qwr.js +0 -74
- package/lib/yaml-DnNTfjXK.js +0 -53
- package/lib/z80-dA1PqWe1.js +0 -62
- package/src/feature/code-mirror/style.css +0 -159
- package/src/feature/gap-cursor/index.ts +0 -31
- package/src/theme/classic/index.ts +0 -12
- package/src/theme/classic-dark/index.ts +0 -12
- package/src/theme/headless/index.ts +0 -9
- package/src/theme/index.ts +0 -26
- package/src/theme/shared.ts +0 -4
- /package/lib/{feature → types/feature}/block-edit/handle/component.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/component.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/config.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/icons.d.ts +0 -0
- /package/lib/{feature → types/feature}/block-edit/menu/index.d.ts +0 -0
- /package/lib/{feature/code-mirror → types/feature/image-block}/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/link-tooltip/consts.d.ts +0 -0
- /package/lib/{feature/gap-cursor → types/feature/link-tooltip}/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/list-item/consts.d.ts +0 -0
- /package/lib/{feature/image-block → types/feature/list-item}/index.d.ts +0 -0
- /package/lib/{feature → types/feature}/toolbar/component.d.ts +0 -0
- /package/lib/{feature → types/feature}/toolbar/consts.d.ts +0 -0
- /package/lib/{feature/link-tooltip → types/feature/toolbar}/index.d.ts +0 -0
- /package/src/{feature/placeholder/style.css → theme/common/placeholder.css} +0 -0
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { PluginView } from '@milkdown/prose/state'
|
|
3
2
|
import { TextSelection } from '@milkdown/prose/state'
|
|
4
3
|
import { BlockProvider, block } from '@milkdown/plugin-block'
|
|
5
4
|
import type { Ctx } from '@milkdown/ctx'
|
|
6
|
-
import type { EditorView } from '@milkdown/prose/view'
|
|
7
5
|
import type { AtomicoThis } from 'atomico/types/dom'
|
|
8
|
-
import { editorViewCtx
|
|
6
|
+
import { editorViewCtx } from '@milkdown/core'
|
|
9
7
|
import { paragraphSchema } from '@milkdown/preset-commonmark'
|
|
10
8
|
import { menuAPI } from '../menu'
|
|
9
|
+
import { defIfNotExists } from '../../../utils'
|
|
11
10
|
import type { BlockHandleProps } from './component'
|
|
12
11
|
import { BlockHandleElement } from './component'
|
|
13
12
|
|
|
14
13
|
export class BlockHandleView implements PluginView {
|
|
15
14
|
#content: AtomicoThis<BlockHandleProps>
|
|
16
15
|
#provider: BlockProvider
|
|
17
|
-
#ctx: Ctx
|
|
16
|
+
readonly #ctx: Ctx
|
|
18
17
|
|
|
19
|
-
constructor(ctx: Ctx
|
|
18
|
+
constructor(ctx: Ctx) {
|
|
20
19
|
this.#ctx = ctx
|
|
21
20
|
const content = new BlockHandleElement()
|
|
22
21
|
this.#content = content
|
|
@@ -24,21 +23,28 @@ export class BlockHandleView implements PluginView {
|
|
|
24
23
|
this.#provider = new BlockProvider({
|
|
25
24
|
ctx,
|
|
26
25
|
content,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
getOffset: () => 16,
|
|
27
|
+
getPlacement: ({ active, blockDom }) => {
|
|
28
|
+
let totalDescendant = 0
|
|
29
|
+
active.node.descendants((node) => {
|
|
30
|
+
totalDescendant += node.childCount
|
|
31
|
+
})
|
|
32
|
+
const dom = active.el
|
|
33
|
+
const domRect = dom.getBoundingClientRect()
|
|
34
|
+
const handleRect = blockDom.getBoundingClientRect()
|
|
35
|
+
const style = window.getComputedStyle(dom)
|
|
36
|
+
const paddingTop = Number.parseInt(style.paddingTop, 10) || 0
|
|
37
|
+
const paddingBottom = Number.parseInt(style.paddingBottom, 10) || 0
|
|
38
|
+
const height = domRect.height - paddingTop - paddingBottom
|
|
39
|
+
const handleHeight = handleRect.height
|
|
40
|
+
return totalDescendant > 2 || handleHeight * 2 < height ? 'left-start' : 'left'
|
|
35
41
|
},
|
|
36
42
|
})
|
|
37
|
-
this.update(
|
|
43
|
+
this.update()
|
|
38
44
|
}
|
|
39
45
|
|
|
40
|
-
update = (
|
|
41
|
-
this.#provider.update(
|
|
46
|
+
update = () => {
|
|
47
|
+
this.#provider.update()
|
|
42
48
|
}
|
|
43
49
|
|
|
44
50
|
destroy = () => {
|
|
@@ -53,9 +59,10 @@ export class BlockHandleView implements PluginView {
|
|
|
53
59
|
view.focus()
|
|
54
60
|
|
|
55
61
|
const { state, dispatch } = view
|
|
56
|
-
const active = this.#provider.
|
|
62
|
+
const active = this.#provider.active
|
|
57
63
|
if (!active)
|
|
58
64
|
return
|
|
65
|
+
|
|
59
66
|
const pos = active.$pos
|
|
60
67
|
const isNoneTextBlock = ['hr', 'image-block'].includes(active.node.type.name)
|
|
61
68
|
const nodeSize = isNoneTextBlock ? active.node.nodeSize : active.node.content.size
|
|
@@ -71,9 +78,9 @@ export class BlockHandleView implements PluginView {
|
|
|
71
78
|
}
|
|
72
79
|
}
|
|
73
80
|
|
|
74
|
-
|
|
81
|
+
defIfNotExists('milkdown-block-handle', BlockHandleElement)
|
|
75
82
|
export function configureBlockHandle(ctx: Ctx) {
|
|
76
83
|
ctx.set(block.key, {
|
|
77
|
-
view:
|
|
84
|
+
view: () => new BlockHandleView(ctx),
|
|
78
85
|
})
|
|
79
86
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { block } from '@milkdown/plugin-block'
|
|
3
2
|
import type { DefineFeature } from '../shared'
|
|
4
|
-
import { injectStyle } from '../../core/slice'
|
|
5
3
|
import { configureBlockHandle } from './handle'
|
|
6
4
|
import { configureMenu, menu, menuAPI } from './menu'
|
|
7
|
-
import style from './style.css?inline'
|
|
8
5
|
|
|
9
6
|
export const defineFeature: DefineFeature = (editor) => {
|
|
10
7
|
editor
|
|
11
|
-
.config(injectStyle(style))
|
|
12
8
|
.config(configureBlockHandle)
|
|
13
9
|
.config(configureMenu)
|
|
14
10
|
.use(menuAPI)
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { Component } from 'atomico'
|
|
3
2
|
import { c, html, useCallback, useEffect, useHost, useMemo, useRef, useState } from 'atomico'
|
|
4
3
|
import type { Ctx } from '@milkdown/ctx'
|
|
@@ -22,6 +21,8 @@ export const menuComponent: Component<MenuProps> = ({
|
|
|
22
21
|
const host = useHost()
|
|
23
22
|
const [hoverIndex, setHoverIndex] = useState(0)
|
|
24
23
|
|
|
24
|
+
const root = useMemo(() => host.current.getRootNode() as HTMLElement, [host])
|
|
25
|
+
|
|
25
26
|
const prevMousePosition = useRef({ x: -999, y: -999 })
|
|
26
27
|
|
|
27
28
|
const onMouseMove = useCallback((e: MouseEvent) => {
|
|
@@ -52,13 +53,20 @@ export const menuComponent: Component<MenuProps> = ({
|
|
|
52
53
|
}, [])
|
|
53
54
|
|
|
54
55
|
const scrollToIndex = useCallback((index: number) => {
|
|
55
|
-
host
|
|
56
|
+
const target = host
|
|
56
57
|
.current
|
|
57
|
-
.querySelector(`[data-index="${index}"]`)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
.querySelector<HTMLElement>(`[data-index="${index}"]`)
|
|
59
|
+
const scrollRoot = host.current.querySelector<HTMLElement>('.menu-groups')
|
|
60
|
+
|
|
61
|
+
if (!target || !scrollRoot)
|
|
62
|
+
return
|
|
63
|
+
|
|
64
|
+
scrollRoot.scrollTop = target.offsetTop - scrollRoot.offsetTop
|
|
65
|
+
|
|
66
|
+
// target?.scrollIntoView({
|
|
67
|
+
// behavior: 'smooth',
|
|
68
|
+
// block: 'end',
|
|
69
|
+
// })
|
|
62
70
|
}, [])
|
|
63
71
|
|
|
64
72
|
const runByIndex = useCallback((index: number) => {
|
|
@@ -138,12 +146,12 @@ export const menuComponent: Component<MenuProps> = ({
|
|
|
138
146
|
|
|
139
147
|
useEffect(() => {
|
|
140
148
|
if (show)
|
|
141
|
-
|
|
149
|
+
root.addEventListener('keydown', onKeydown, { capture: true })
|
|
142
150
|
|
|
143
|
-
else
|
|
151
|
+
else root.removeEventListener('keydown', onKeydown, { capture: true })
|
|
144
152
|
|
|
145
153
|
return () => {
|
|
146
|
-
|
|
154
|
+
root.removeEventListener('keydown', onKeydown, { capture: true })
|
|
147
155
|
}
|
|
148
156
|
}, [show, onKeydown])
|
|
149
157
|
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { PluginView } from '@milkdown/prose/state'
|
|
3
2
|
import type { EditorView } from '@milkdown/prose/view'
|
|
4
3
|
import { SlashProvider, slashFactory } from '@milkdown/plugin-slash'
|
|
5
4
|
import type { Ctx } from '@milkdown/ctx'
|
|
6
5
|
import type { AtomicoThis } from 'atomico/types/dom'
|
|
7
6
|
import { $ctx } from '@milkdown/utils'
|
|
8
|
-
import {
|
|
9
|
-
import { isInCodeBlock, isInList } from '../../../utils'
|
|
7
|
+
import { defIfNotExists, isInCodeBlock, isInList } from '../../../utils'
|
|
10
8
|
import type { MenuProps } from './component'
|
|
11
9
|
import { MenuElement } from './component'
|
|
12
10
|
|
|
@@ -22,7 +20,7 @@ export const menuAPI = $ctx({
|
|
|
22
20
|
hide: () => {},
|
|
23
21
|
} as MenuAPI, 'menuAPICtx')
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
defIfNotExists('milkdown-slash-menu', MenuElement)
|
|
26
24
|
export function configureMenu(ctx: Ctx) {
|
|
27
25
|
ctx.set(menu.key, {
|
|
28
26
|
view: view => new MenuView(ctx, view),
|
|
@@ -43,15 +41,6 @@ class MenuView implements PluginView {
|
|
|
43
41
|
this.#slashProvider = new SlashProvider({
|
|
44
42
|
content: this.#content,
|
|
45
43
|
debounce: 20,
|
|
46
|
-
tippyOptions: {
|
|
47
|
-
appendTo: () => ctx.get(rootDOMCtx),
|
|
48
|
-
onShow: () => {
|
|
49
|
-
this.#content.show = true
|
|
50
|
-
},
|
|
51
|
-
onHidden: () => {
|
|
52
|
-
this.#content.show = false
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
44
|
shouldShow(this: SlashProvider, view: EditorView) {
|
|
56
45
|
if (isInCodeBlock(view.state.selection) || isInList(view.state.selection))
|
|
57
46
|
return false
|
|
@@ -82,6 +71,13 @@ class MenuView implements PluginView {
|
|
|
82
71
|
return true
|
|
83
72
|
},
|
|
84
73
|
})
|
|
74
|
+
|
|
75
|
+
this.#slashProvider.onShow = () => {
|
|
76
|
+
this.#content.show = true
|
|
77
|
+
}
|
|
78
|
+
this.#slashProvider.onHide = () => {
|
|
79
|
+
this.#content.show = false
|
|
80
|
+
}
|
|
85
81
|
this.update(view)
|
|
86
82
|
|
|
87
83
|
ctx.set(menuAPI.key, {
|
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { codeBlockComponent, codeBlockConfig } from '@milkdown/components/code-block'
|
|
3
|
-
import {
|
|
2
|
+
import type { LanguageDescription } from '@codemirror/language'
|
|
3
|
+
import type { Extension } from '@codemirror/state'
|
|
4
4
|
import { basicSetup } from 'codemirror'
|
|
5
5
|
import { keymap } from '@codemirror/view'
|
|
6
|
-
import { defaultKeymap } from '@codemirror/commands'
|
|
7
|
-
import { bespin, espresso, rosePineDawn } from 'thememirror'
|
|
6
|
+
import { defaultKeymap, indentWithTab } from '@codemirror/commands'
|
|
8
7
|
import { html } from 'atomico'
|
|
9
|
-
import { ThemeCtx, injectStyle } from '../../core/slice'
|
|
10
8
|
import type { DefineFeature } from '../shared'
|
|
11
|
-
import { CrepeTheme } from '../../theme'
|
|
12
|
-
import style from './style.css?inline'
|
|
13
|
-
|
|
14
|
-
function pickTheme(theme: CrepeTheme) {
|
|
15
|
-
switch (theme) {
|
|
16
|
-
case CrepeTheme.Classic:
|
|
17
|
-
return rosePineDawn
|
|
18
|
-
case CrepeTheme.ClassicDark:
|
|
19
|
-
return bespin
|
|
20
|
-
default:
|
|
21
|
-
return espresso
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const check = html`
|
|
26
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
27
|
-
<path d="M5.99986 10.7799L3.21986 7.9999L2.27319 8.9399L5.99986 12.6666L13.9999 4.66656L13.0599 3.72656L5.99986 10.7799Z" fill="#49454F"/>
|
|
28
|
-
</svg>
|
|
29
|
-
`
|
|
30
9
|
|
|
31
10
|
const clearIcon = html`
|
|
32
11
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -41,19 +20,32 @@ const clearIcon = html`
|
|
|
41
20
|
</svg>
|
|
42
21
|
`
|
|
43
22
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
23
|
+
interface CodeMirrorConfig {
|
|
24
|
+
languages: LanguageDescription[]
|
|
25
|
+
theme: Extension
|
|
26
|
+
}
|
|
27
|
+
export type CodeMirrorFeatureConfig = Partial<CodeMirrorConfig>
|
|
48
28
|
|
|
29
|
+
export const defineFeature: DefineFeature<CodeMirrorFeatureConfig> = (editor, config = {}) => {
|
|
30
|
+
editor
|
|
31
|
+
.config(async (ctx) => {
|
|
32
|
+
let {
|
|
33
|
+
languages,
|
|
34
|
+
theme,
|
|
35
|
+
} = config
|
|
36
|
+
if (!languages) {
|
|
37
|
+
const { languages: langList } = await import('@codemirror/language-data')
|
|
38
|
+
languages = langList
|
|
39
|
+
}
|
|
40
|
+
if (!theme) {
|
|
41
|
+
const { nord } = await import('@uiw/codemirror-theme-nord')
|
|
42
|
+
theme = nord
|
|
43
|
+
}
|
|
49
44
|
ctx.update(codeBlockConfig.key, defaultConfig => ({
|
|
50
45
|
...defaultConfig,
|
|
51
46
|
languages,
|
|
52
47
|
clearSearchIcon: () => clearIcon,
|
|
53
|
-
extensions: [basicSetup, keymap.of(defaultKeymap),
|
|
54
|
-
renderLanguage: (language, selected) => {
|
|
55
|
-
return html`<span class="leading">${selected ? check : null}</span>${language}`
|
|
56
|
-
},
|
|
48
|
+
extensions: [basicSetup, keymap.of(defaultKeymap.concat(indentWithTab)), theme],
|
|
57
49
|
}))
|
|
58
50
|
})
|
|
59
51
|
.use(codeBlockComponent)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { cursor, dropCursorConfig } from '@milkdown/plugin-cursor'
|
|
2
|
+
|
|
3
|
+
import type { DefineFeature } from '../shared'
|
|
4
|
+
|
|
5
|
+
interface CursorConfig {
|
|
6
|
+
color: string | false
|
|
7
|
+
width: number
|
|
8
|
+
}
|
|
9
|
+
export type CursorFeatureConfig = CursorConfig
|
|
10
|
+
|
|
11
|
+
export const defineFeature: DefineFeature<CursorFeatureConfig> = (editor, config) => {
|
|
12
|
+
editor
|
|
13
|
+
.config((ctx) => {
|
|
14
|
+
ctx.update(dropCursorConfig.key, value => ({
|
|
15
|
+
...value,
|
|
16
|
+
class: 'crepe-drop-cursor',
|
|
17
|
+
width: config?.width ?? 4,
|
|
18
|
+
color: config?.color ?? false,
|
|
19
|
+
}))
|
|
20
|
+
})
|
|
21
|
+
.use(cursor)
|
|
22
|
+
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { imageBlockComponent, imageBlockConfig } from '@milkdown/components/image-block'
|
|
3
2
|
import { imageInlineComponent, inlineImageConfig } from '@milkdown/components/image-inline'
|
|
4
3
|
import { html } from 'atomico'
|
|
5
4
|
import type { DefineFeature } from '../shared'
|
|
6
|
-
import { injectStyle } from '../../core/slice'
|
|
7
|
-
import style from './style.css?inline'
|
|
8
5
|
|
|
9
6
|
const imageIcon = html`
|
|
10
7
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
@@ -38,7 +35,6 @@ const captionIcon = html`
|
|
|
38
35
|
|
|
39
36
|
export const defineFeature: DefineFeature = (editor) => {
|
|
40
37
|
editor
|
|
41
|
-
.config(injectStyle(style))
|
|
42
38
|
.config((ctx) => {
|
|
43
39
|
ctx.update(inlineImageConfig.key, value => ({
|
|
44
40
|
...value,
|
package/src/feature/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { Editor } from '@milkdown/core'
|
|
3
2
|
import type { PlaceHolderFeatureConfig } from './placeholder'
|
|
3
|
+
import type { CodeMirrorFeatureConfig } from './code-mirror'
|
|
4
4
|
|
|
5
5
|
export enum CrepeFeature {
|
|
6
6
|
CodeMirror = 'code-mirror',
|
|
7
7
|
ListItem = 'list-item',
|
|
8
8
|
LinkTooltip = 'link-tooltip',
|
|
9
|
-
|
|
9
|
+
Cursor = 'cursor',
|
|
10
10
|
ImageBlock = 'image-block',
|
|
11
11
|
BlockEdit = 'block-edit',
|
|
12
12
|
Toolbar = 'toolbar',
|
|
@@ -15,13 +15,14 @@ export enum CrepeFeature {
|
|
|
15
15
|
|
|
16
16
|
export interface CrepeFeatureConfig {
|
|
17
17
|
[CrepeFeature.Placeholder]?: PlaceHolderFeatureConfig
|
|
18
|
+
[CrepeFeature.CodeMirror]?: CodeMirrorFeatureConfig
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export const defaultFeatures: Record<CrepeFeature, boolean> = {
|
|
21
22
|
[CrepeFeature.ListItem]: true,
|
|
22
23
|
[CrepeFeature.LinkTooltip]: true,
|
|
23
24
|
[CrepeFeature.ImageBlock]: true,
|
|
24
|
-
[CrepeFeature.
|
|
25
|
+
[CrepeFeature.Cursor]: true,
|
|
25
26
|
[CrepeFeature.BlockEdit]: true,
|
|
26
27
|
[CrepeFeature.Placeholder]: true,
|
|
27
28
|
[CrepeFeature.Toolbar]: true,
|
|
@@ -46,8 +47,8 @@ export async function loadFeature(feature: CrepeFeature, editor: Editor, config?
|
|
|
46
47
|
const { defineFeature } = await import('./image-block')
|
|
47
48
|
return defineFeature(editor, config)
|
|
48
49
|
}
|
|
49
|
-
case CrepeFeature.
|
|
50
|
-
const { defineFeature } = await import('./
|
|
50
|
+
case CrepeFeature.Cursor: {
|
|
51
|
+
const { defineFeature } = await import('./cursor')
|
|
51
52
|
return defineFeature(editor, config)
|
|
52
53
|
}
|
|
53
54
|
case CrepeFeature.BlockEdit: {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { configureLinkTooltip, linkTooltipConfig, linkTooltipPlugin } from '@milkdown/components/link-tooltip'
|
|
3
|
-
import { injectStyle } from '../../core/slice'
|
|
4
2
|
import type { DefineFeature } from '../shared'
|
|
5
3
|
import { confirmIcon, deleteIcon, editIcon, linkIcon } from './consts'
|
|
6
|
-
import style from './style.css?inline'
|
|
7
4
|
|
|
8
5
|
export const defineFeature: DefineFeature = (editor) => {
|
|
9
6
|
editor
|
|
10
|
-
.config(injectStyle(style))
|
|
11
7
|
.config(configureLinkTooltip)
|
|
12
8
|
.config((ctx) => {
|
|
13
9
|
ctx.update(linkTooltipConfig.key, config => ({
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { Ctx } from '@milkdown/ctx'
|
|
3
2
|
import { listItemBlockComponent, listItemBlockConfig } from '@milkdown/components/list-item-block'
|
|
4
3
|
import { html } from 'atomico'
|
|
5
|
-
import { injectStyle } from '../../core/slice'
|
|
6
4
|
import type { DefineFeature } from '../shared'
|
|
7
5
|
import { bulletIcon } from './consts'
|
|
8
|
-
import style from './style.css?inline'
|
|
9
6
|
|
|
10
7
|
function configureListItem(ctx: Ctx) {
|
|
11
8
|
ctx.set(listItemBlockConfig.key, {
|
|
12
|
-
renderLabel: (label
|
|
9
|
+
renderLabel: ({ label, listType, checked, readonly }) => {
|
|
13
10
|
if (checked == null) {
|
|
14
11
|
if (listType === 'bullet')
|
|
15
12
|
return html`<span class='label'>${bulletIcon}</span>`
|
|
@@ -17,14 +14,13 @@ function configureListItem(ctx: Ctx) {
|
|
|
17
14
|
return html`<span class='label'>${label}</span>`
|
|
18
15
|
}
|
|
19
16
|
|
|
20
|
-
return html`<input class='label' type="checkbox" checked=${checked} />`
|
|
17
|
+
return html`<input disabled=${readonly} class='label' type="checkbox" checked=${checked} />`
|
|
21
18
|
},
|
|
22
19
|
})
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
export const defineFeature: DefineFeature = (editor) => {
|
|
26
23
|
editor
|
|
27
|
-
.config(injectStyle(style))
|
|
28
24
|
.config(configureListItem)
|
|
29
25
|
.use(listItemBlockComponent)
|
|
30
26
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { $ctx, $prose } from '@milkdown/utils'
|
|
3
2
|
import type { EditorState } from '@milkdown/prose/state'
|
|
4
3
|
import { Plugin, PluginKey } from '@milkdown/prose/state'
|
|
5
4
|
import type { Node } from '@milkdown/prose/model'
|
|
6
5
|
import { Decoration, DecorationSet } from '@milkdown/prose/view'
|
|
7
6
|
import type { DefineFeature } from '../shared'
|
|
8
|
-
import { injectStyle } from '../../core/slice'
|
|
9
7
|
import { isInCodeBlock, isInList } from '../../utils'
|
|
10
|
-
import style from './style.css?inline'
|
|
11
8
|
|
|
12
9
|
function isDocEmpty(doc: Node) {
|
|
13
10
|
return doc.childCount <= 1 && !doc.firstChild?.content.size
|
|
@@ -34,7 +31,7 @@ function createPlaceholderDecoration(
|
|
|
34
31
|
})
|
|
35
32
|
}
|
|
36
33
|
|
|
37
|
-
|
|
34
|
+
interface PlaceholderConfig {
|
|
38
35
|
text: string
|
|
39
36
|
mode: 'doc' | 'block'
|
|
40
37
|
}
|
|
@@ -71,7 +68,6 @@ export const placeholderPlugin = $prose((ctx) => {
|
|
|
71
68
|
|
|
72
69
|
export const defineFeature: DefineFeature<PlaceHolderFeatureConfig> = (editor, config) => {
|
|
73
70
|
editor
|
|
74
|
-
.config(injectStyle(style))
|
|
75
71
|
.config((ctx) => {
|
|
76
72
|
if (config) {
|
|
77
73
|
ctx.update(placeholderConfig.key, (prev) => {
|
package/src/feature/shared.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import type { Editor } from '@milkdown/core'
|
|
3
2
|
|
|
4
|
-
export type DefineFeature<Config = unknown> = (editor: Editor, config?: Config) => void
|
|
3
|
+
export type DefineFeature<Config = unknown> = (editor: Editor, config?: Config) => void | Promise<void>
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
/* Copyright 2021, Milkdown by Mirone. */
|
|
2
1
|
import { TooltipProvider, tooltipFactory } from '@milkdown/plugin-tooltip'
|
|
3
2
|
import type { EditorState, PluginView } from '@milkdown/prose/state'
|
|
4
3
|
import { TextSelection } from '@milkdown/prose/state'
|
|
5
4
|
import type { Ctx } from '@milkdown/ctx'
|
|
6
5
|
import type { EditorView } from '@milkdown/prose/view'
|
|
7
6
|
import type { AtomicoThis } from 'atomico/types/dom'
|
|
8
|
-
import { rootDOMCtx } from '@milkdown/core'
|
|
9
7
|
import type { DefineFeature } from '../shared'
|
|
10
|
-
import {
|
|
8
|
+
import { defIfNotExists } from '../../utils'
|
|
11
9
|
import type { ToolbarProps } from './component'
|
|
12
10
|
import { ToolbarElement } from './component'
|
|
13
|
-
import style from './style.css?inline'
|
|
14
11
|
|
|
15
12
|
const toolbar = tooltipFactory('CREPE_TOOLBAR')
|
|
16
13
|
|
|
@@ -26,15 +23,6 @@ class ToolbarView implements PluginView {
|
|
|
26
23
|
this.#tooltipProvider = new TooltipProvider({
|
|
27
24
|
content: this.#content,
|
|
28
25
|
debounce: 20,
|
|
29
|
-
tippyOptions: {
|
|
30
|
-
appendTo: () => ctx.get(rootDOMCtx),
|
|
31
|
-
onShow: () => {
|
|
32
|
-
this.#content.show = true
|
|
33
|
-
},
|
|
34
|
-
onHidden: () => {
|
|
35
|
-
this.#content.show = false
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
26
|
shouldShow(view: EditorView) {
|
|
39
27
|
const { doc, selection } = view.state
|
|
40
28
|
const { empty, from, to } = selection
|
|
@@ -43,7 +31,8 @@ class ToolbarView implements PluginView {
|
|
|
43
31
|
|
|
44
32
|
const isNotTextBlock = !(selection instanceof TextSelection)
|
|
45
33
|
|
|
46
|
-
const
|
|
34
|
+
const activeElement = (view.dom.getRootNode() as ShadowRoot | Document).activeElement
|
|
35
|
+
const isTooltipChildren = content.contains(activeElement)
|
|
47
36
|
|
|
48
37
|
const notHasFocus = !view.hasFocus() && !isTooltipChildren
|
|
49
38
|
|
|
@@ -61,6 +50,12 @@ class ToolbarView implements PluginView {
|
|
|
61
50
|
return true
|
|
62
51
|
},
|
|
63
52
|
})
|
|
53
|
+
this.#tooltipProvider.onShow = () => {
|
|
54
|
+
this.#content.show = true
|
|
55
|
+
}
|
|
56
|
+
this.#tooltipProvider.onHide = () => {
|
|
57
|
+
this.#content.show = false
|
|
58
|
+
}
|
|
64
59
|
this.update(view)
|
|
65
60
|
}
|
|
66
61
|
|
|
@@ -78,10 +73,9 @@ class ToolbarView implements PluginView {
|
|
|
78
73
|
}
|
|
79
74
|
}
|
|
80
75
|
|
|
81
|
-
|
|
76
|
+
defIfNotExists('milkdown-toolbar', ToolbarElement)
|
|
82
77
|
export const defineFeature: DefineFeature = (editor) => {
|
|
83
78
|
editor
|
|
84
|
-
.config(injectStyle(style))
|
|
85
79
|
.config((ctx) => {
|
|
86
80
|
ctx.set(toolbar.key, {
|
|
87
81
|
view: view => new ToolbarView(ctx, view),
|