@instincthub/react-ui 0.0.3 → 0.0.4
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/_virtual/1c.js +1 -1
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/dist/_virtual/abap.js +1 -1
- package/dist/_virtual/abnf.js +1 -1
- package/dist/_virtual/abnf2.js +1 -1
- package/dist/_virtual/accesslog.js +1 -1
- package/dist/_virtual/actionscript.js +1 -1
- package/dist/_virtual/actionscript2.js +1 -1
- package/dist/_virtual/ada.js +1 -1
- package/dist/_virtual/ada2.js +1 -1
- package/dist/_virtual/agda.js +1 -1
- package/dist/_virtual/al.js +1 -1
- package/dist/_virtual/angelscript.js +1 -1
- package/dist/_virtual/antlr4.js +1 -1
- package/dist/_virtual/apache.js +1 -1
- package/dist/_virtual/apacheconf.js +1 -1
- package/dist/_virtual/apex.js +1 -1
- package/dist/_virtual/apl.js +1 -1
- package/dist/_virtual/applescript.js +1 -1
- package/dist/_virtual/applescript2.js +1 -1
- package/dist/_virtual/aql.js +1 -1
- package/dist/_virtual/arcade.js +1 -1
- package/dist/_virtual/arduino.js +1 -1
- package/dist/_virtual/arduino2.js +1 -1
- package/dist/_virtual/arff.js +1 -1
- package/dist/_virtual/armasm.js +1 -1
- package/dist/_virtual/arrayLikeToArray.js +1 -1
- package/dist/_virtual/arrayWithoutHoles.js +1 -1
- package/dist/_virtual/asciidoc.js +1 -1
- package/dist/_virtual/asciidoc2.js +1 -1
- package/dist/_virtual/asm6502.js +1 -1
- package/dist/_virtual/asmatmel.js +1 -1
- package/dist/_virtual/aspectj.js +1 -1
- package/dist/_virtual/aspnet.js +1 -1
- package/dist/_virtual/assertThisInitialized.js +1 -1
- package/dist/_virtual/asyncToGenerator.js +1 -1
- package/dist/_virtual/autohotkey.js +1 -1
- package/dist/_virtual/autohotkey2.js +1 -1
- package/dist/_virtual/autoit.js +1 -1
- package/dist/_virtual/autoit2.js +1 -1
- package/dist/_virtual/avisynth.js +1 -1
- package/dist/_virtual/avrasm.js +1 -1
- package/dist/_virtual/avro-idl.js +1 -1
- package/dist/_virtual/awk.js +1 -1
- package/dist/_virtual/axapta.js +1 -1
- package/dist/_virtual/bash.js +1 -1
- package/dist/_virtual/bash2.js +1 -1
- package/dist/_virtual/basic.js +1 -1
- package/dist/_virtual/basic2.js +1 -1
- package/dist/_virtual/batch.js +1 -1
- package/dist/_virtual/bbcode.js +1 -1
- package/dist/_virtual/bicep.js +1 -1
- package/dist/_virtual/birb.js +1 -1
- package/dist/_virtual/bison.js +1 -1
- package/dist/_virtual/bnf.js +1 -1
- package/dist/_virtual/bnf2.js +1 -1
- package/dist/_virtual/brainfuck.js +1 -1
- package/dist/_virtual/brainfuck2.js +1 -1
- package/dist/_virtual/brightscript.js +1 -1
- package/dist/_virtual/bro.js +1 -1
- package/dist/_virtual/bsl.js +1 -1
- package/dist/_virtual/c-like.js +1 -1
- package/dist/_virtual/c.js +1 -1
- package/dist/_virtual/c2.js +1 -1
- package/dist/_virtual/cal.js +1 -1
- package/dist/_virtual/capnproto.js +1 -1
- package/dist/_virtual/ceylon.js +1 -1
- package/dist/_virtual/cfscript.js +1 -1
- package/dist/_virtual/chaiscript.js +1 -1
- package/dist/_virtual/cil.js +1 -1
- package/dist/_virtual/classCallCheck.js +1 -1
- package/dist/_virtual/clean.js +1 -1
- package/dist/_virtual/clojure-repl.js +1 -1
- package/dist/_virtual/clojure.js +1 -1
- package/dist/_virtual/clojure2.js +1 -1
- package/dist/_virtual/cmake.js +1 -1
- package/dist/_virtual/cmake2.js +1 -1
- package/dist/_virtual/cobol.js +1 -1
- package/dist/_virtual/coffeescript.js +1 -1
- package/dist/_virtual/coffeescript2.js +1 -1
- package/dist/_virtual/concurnas.js +1 -1
- package/dist/_virtual/coq.js +1 -1
- package/dist/_virtual/coq2.js +1 -1
- package/dist/_virtual/core.js +1 -1
- package/dist/_virtual/cos.js +1 -1
- package/dist/_virtual/cpp.js +1 -1
- package/dist/_virtual/cpp2.js +1 -1
- package/dist/_virtual/createClass.js +1 -1
- package/dist/_virtual/crmsh.js +1 -1
- package/dist/_virtual/crystal.js +1 -1
- package/dist/_virtual/crystal2.js +1 -1
- package/dist/_virtual/csharp.js +1 -1
- package/dist/_virtual/csharp2.js +1 -1
- package/dist/_virtual/cshtml.js +1 -1
- package/dist/_virtual/csp.js +1 -1
- package/dist/_virtual/csp2.js +1 -1
- package/dist/_virtual/css-extras.js +1 -1
- package/dist/_virtual/css.js +1 -1
- package/dist/_virtual/csv.js +1 -1
- package/dist/_virtual/cypher.js +1 -1
- package/dist/_virtual/d.js +1 -1
- package/dist/_virtual/d2.js +1 -1
- package/dist/_virtual/dart.js +1 -1
- package/dist/_virtual/dart2.js +1 -1
- package/dist/_virtual/dataweave.js +1 -1
- package/dist/_virtual/dax.js +1 -1
- package/dist/_virtual/defineProperty.js +1 -1
- package/dist/_virtual/delphi.js +1 -1
- package/dist/_virtual/dhall.js +1 -1
- package/dist/_virtual/diff.js +1 -1
- package/dist/_virtual/diff2.js +1 -1
- package/dist/_virtual/django.js +1 -1
- package/dist/_virtual/django2.js +1 -1
- package/dist/_virtual/dns-zone-file.js +1 -1
- package/dist/_virtual/dns.js +1 -1
- package/dist/_virtual/docker.js +1 -1
- package/dist/_virtual/dockerfile.js +1 -1
- package/dist/_virtual/dos.js +1 -1
- package/dist/_virtual/dot.js +1 -1
- package/dist/_virtual/dsconfig.js +1 -1
- package/dist/_virtual/dts.js +1 -1
- package/dist/_virtual/dust.js +1 -1
- package/dist/_virtual/ebnf.js +1 -1
- package/dist/_virtual/ebnf2.js +1 -1
- package/dist/_virtual/editorconfig.js +1 -1
- package/dist/_virtual/eiffel.js +1 -1
- package/dist/_virtual/ejs.js +1 -1
- package/dist/_virtual/elixir.js +1 -1
- package/dist/_virtual/elixir2.js +1 -1
- package/dist/_virtual/elm.js +1 -1
- package/dist/_virtual/elm2.js +1 -1
- package/dist/_virtual/erb.js +1 -1
- package/dist/_virtual/erb2.js +1 -1
- package/dist/_virtual/erlang-repl.js +1 -1
- package/dist/_virtual/erlang.js +1 -1
- package/dist/_virtual/erlang2.js +1 -1
- package/dist/_virtual/etlua.js +1 -1
- package/dist/_virtual/excel-formula.js +1 -1
- package/dist/_virtual/excel.js +1 -1
- package/dist/_virtual/extends.js +1 -1
- package/dist/_virtual/factor.js +1 -1
- package/dist/_virtual/false.js +1 -1
- package/dist/_virtual/firestore-security-rules.js +1 -1
- package/dist/_virtual/fix.js +1 -1
- package/dist/_virtual/flix.js +1 -1
- package/dist/_virtual/flow.js +1 -1
- package/dist/_virtual/format.js +1 -1
- package/dist/_virtual/fortran.js +1 -1
- package/dist/_virtual/fortran2.js +1 -1
- package/dist/_virtual/fsharp.js +1 -1
- package/dist/_virtual/fsharp2.js +1 -1
- package/dist/_virtual/ftl.js +1 -1
- package/dist/_virtual/gams.js +1 -1
- package/dist/_virtual/gap.js +1 -1
- package/dist/_virtual/gauss.js +1 -1
- package/dist/_virtual/gcode.js +1 -1
- package/dist/_virtual/gcode2.js +1 -1
- package/dist/_virtual/gdscript.js +1 -1
- package/dist/_virtual/gedcom.js +1 -1
- package/dist/_virtual/getPrototypeOf.js +1 -1
- package/dist/_virtual/gherkin.js +1 -1
- package/dist/_virtual/gherkin2.js +1 -1
- package/dist/_virtual/git.js +1 -1
- package/dist/_virtual/glsl.js +1 -1
- package/dist/_virtual/glsl2.js +1 -1
- package/dist/_virtual/gml.js +1 -1
- package/dist/_virtual/gml2.js +1 -1
- package/dist/_virtual/gn.js +1 -1
- package/dist/_virtual/go-module.js +1 -1
- package/dist/_virtual/go.js +1 -1
- package/dist/_virtual/go2.js +1 -1
- package/dist/_virtual/golo.js +1 -1
- package/dist/_virtual/gradle.js +1 -1
- package/dist/_virtual/graphql.js +1 -1
- package/dist/_virtual/groovy.js +1 -1
- package/dist/_virtual/groovy2.js +1 -1
- package/dist/_virtual/haml.js +1 -1
- package/dist/_virtual/haml2.js +1 -1
- package/dist/_virtual/handlebars.js +1 -1
- package/dist/_virtual/handlebars2.js +1 -1
- package/dist/_virtual/haskell.js +1 -1
- package/dist/_virtual/haskell2.js +1 -1
- package/dist/_virtual/haxe.js +1 -1
- package/dist/_virtual/haxe2.js +1 -1
- package/dist/_virtual/hcl.js +1 -1
- package/dist/_virtual/hlsl.js +1 -1
- package/dist/_virtual/hoon.js +1 -1
- package/dist/_virtual/hpkp.js +1 -1
- package/dist/_virtual/hsp.js +1 -1
- package/dist/_virtual/hsts.js +1 -1
- package/dist/_virtual/htmlbars.js +1 -1
- package/dist/_virtual/http.js +1 -1
- package/dist/_virtual/http2.js +1 -1
- package/dist/_virtual/hy.js +1 -1
- package/dist/_virtual/ichigojam.js +1 -1
- package/dist/_virtual/icon.js +1 -1
- package/dist/_virtual/icu-message-format.js +1 -1
- package/dist/_virtual/idris.js +1 -1
- package/dist/_virtual/iecst.js +1 -1
- package/dist/_virtual/ignore.js +1 -1
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/inform7.js +1 -1
- package/dist/_virtual/inform72.js +1 -1
- package/dist/_virtual/inherits.js +1 -1
- package/dist/_virtual/ini.js +1 -1
- package/dist/_virtual/ini2.js +1 -1
- package/dist/_virtual/io.js +1 -1
- package/dist/_virtual/irpf90.js +1 -1
- package/dist/_virtual/isbl.js +1 -1
- package/dist/_virtual/iterableToArray.js +1 -1
- package/dist/_virtual/j.js +1 -1
- package/dist/_virtual/java.js +1 -1
- package/dist/_virtual/java2.js +1 -1
- package/dist/_virtual/javadoc.js +1 -1
- package/dist/_virtual/javadoclike.js +1 -1
- package/dist/_virtual/javascript.js +1 -1
- package/dist/_virtual/javastacktrace.js +1 -1
- package/dist/_virtual/jboss-cli.js +1 -1
- package/dist/_virtual/jexl.js +1 -1
- package/dist/_virtual/jolie.js +1 -1
- package/dist/_virtual/jq.js +1 -1
- package/dist/_virtual/js-extras.js +1 -1
- package/dist/_virtual/js-templates.js +1 -1
- package/dist/_virtual/jsdoc.js +1 -1
- package/dist/_virtual/json.js +1 -1
- package/dist/_virtual/json2.js +1 -1
- package/dist/_virtual/json5.js +1 -1
- package/dist/_virtual/jsonp.js +1 -1
- package/dist/_virtual/jsstacktrace.js +1 -1
- package/dist/_virtual/jsx.js +1 -1
- package/dist/_virtual/julia-repl.js +1 -1
- package/dist/_virtual/julia.js +1 -1
- package/dist/_virtual/julia2.js +1 -1
- package/dist/_virtual/keepalived.js +1 -1
- package/dist/_virtual/keyman.js +1 -1
- package/dist/_virtual/kotlin.js +1 -1
- package/dist/_virtual/kotlin2.js +1 -1
- package/dist/_virtual/kumir.js +1 -1
- package/dist/_virtual/kusto.js +1 -1
- package/dist/_virtual/lasso.js +1 -1
- package/dist/_virtual/latex.js +1 -1
- package/dist/_virtual/latex2.js +1 -1
- package/dist/_virtual/latte.js +1 -1
- package/dist/_virtual/ldif.js +1 -1
- package/dist/_virtual/leaf.js +1 -1
- package/dist/_virtual/less.js +1 -1
- package/dist/_virtual/less2.js +1 -1
- package/dist/_virtual/lilypond.js +1 -1
- package/dist/_virtual/liquid.js +1 -1
- package/dist/_virtual/lisp.js +1 -1
- package/dist/_virtual/lisp2.js +1 -1
- package/dist/_virtual/livecodeserver.js +1 -1
- package/dist/_virtual/livescript.js +1 -1
- package/dist/_virtual/livescript2.js +1 -1
- package/dist/_virtual/llvm.js +1 -1
- package/dist/_virtual/llvm2.js +1 -1
- package/dist/_virtual/log.js +1 -1
- package/dist/_virtual/lolcode.js +1 -1
- package/dist/_virtual/lsl.js +1 -1
- package/dist/_virtual/lua.js +1 -1
- package/dist/_virtual/lua2.js +1 -1
- package/dist/_virtual/magma.js +1 -1
- package/dist/_virtual/makefile.js +1 -1
- package/dist/_virtual/makefile2.js +1 -1
- package/dist/_virtual/markdown.js +1 -1
- package/dist/_virtual/markdown2.js +1 -1
- package/dist/_virtual/markup-templating.js +1 -1
- package/dist/_virtual/mathematica.js +1 -1
- package/dist/_virtual/matlab.js +1 -1
- package/dist/_virtual/matlab2.js +1 -1
- package/dist/_virtual/maxima.js +1 -1
- package/dist/_virtual/maxscript.js +1 -1
- package/dist/_virtual/mel.js +1 -1
- package/dist/_virtual/mel2.js +1 -1
- package/dist/_virtual/mercury.js +1 -1
- package/dist/_virtual/mermaid.js +1 -1
- package/dist/_virtual/mipsasm.js +1 -1
- package/dist/_virtual/mizar.js +1 -1
- package/dist/_virtual/mizar2.js +1 -1
- package/dist/_virtual/mojolicious.js +1 -1
- package/dist/_virtual/mongodb.js +1 -1
- package/dist/_virtual/monkey.js +1 -1
- package/dist/_virtual/monkey2.js +1 -1
- package/dist/_virtual/moonscript.js +1 -1
- package/dist/_virtual/moonscript2.js +1 -1
- package/dist/_virtual/n1ql.js +1 -1
- package/dist/_virtual/n1ql2.js +1 -1
- package/dist/_virtual/n4js.js +1 -1
- package/dist/_virtual/nand2tetris-hdl.js +1 -1
- package/dist/_virtual/naniscript.js +1 -1
- package/dist/_virtual/nasm.js +1 -1
- package/dist/_virtual/neon.js +1 -1
- package/dist/_virtual/nevod.js +1 -1
- package/dist/_virtual/nginx.js +1 -1
- package/dist/_virtual/nginx2.js +1 -1
- package/dist/_virtual/nim.js +1 -1
- package/dist/_virtual/nim2.js +1 -1
- package/dist/_virtual/nix.js +1 -1
- package/dist/_virtual/nix2.js +1 -1
- package/dist/_virtual/node-repl.js +1 -1
- package/dist/_virtual/nonIterableSpread.js +1 -1
- package/dist/_virtual/nsis.js +1 -1
- package/dist/_virtual/nsis2.js +1 -1
- package/dist/_virtual/objectWithoutProperties.js +1 -1
- package/dist/_virtual/objectWithoutPropertiesLoose.js +1 -1
- package/dist/_virtual/objectivec.js +1 -1
- package/dist/_virtual/objectivec2.js +1 -1
- package/dist/_virtual/ocaml.js +1 -1
- package/dist/_virtual/ocaml2.js +1 -1
- package/dist/_virtual/opencl.js +1 -1
- package/dist/_virtual/openqasm.js +1 -1
- package/dist/_virtual/openscad.js +1 -1
- package/dist/_virtual/oxygene.js +1 -1
- package/dist/_virtual/oz.js +1 -1
- package/dist/_virtual/parigp.js +1 -1
- package/dist/_virtual/parser.js +1 -1
- package/dist/_virtual/parser3.js +1 -1
- package/dist/_virtual/pascal.js +1 -1
- package/dist/_virtual/pascaligo.js +1 -1
- package/dist/_virtual/pcaxis.js +1 -1
- package/dist/_virtual/peoplecode.js +1 -1
- package/dist/_virtual/perl.js +1 -1
- package/dist/_virtual/perl2.js +1 -1
- package/dist/_virtual/pf.js +1 -1
- package/dist/_virtual/pgsql.js +1 -1
- package/dist/_virtual/php-extras.js +1 -1
- package/dist/_virtual/php-template.js +1 -1
- package/dist/_virtual/php.js +1 -1
- package/dist/_virtual/php2.js +1 -1
- package/dist/_virtual/phpdoc.js +1 -1
- package/dist/_virtual/plaintext.js +1 -1
- package/dist/_virtual/plsql.js +1 -1
- package/dist/_virtual/pony.js +1 -1
- package/dist/_virtual/possibleConstructorReturn.js +1 -1
- package/dist/_virtual/powerquery.js +1 -1
- package/dist/_virtual/powershell.js +1 -1
- package/dist/_virtual/powershell2.js +1 -1
- package/dist/_virtual/prism-core.js +1 -1
- package/dist/_virtual/processing.js +1 -1
- package/dist/_virtual/processing2.js +1 -1
- package/dist/_virtual/profile.js +1 -1
- package/dist/_virtual/prolog.js +1 -1
- package/dist/_virtual/prolog2.js +1 -1
- package/dist/_virtual/promql.js +1 -1
- package/dist/_virtual/properties.js +1 -1
- package/dist/_virtual/properties2.js +1 -1
- package/dist/_virtual/protobuf.js +1 -1
- package/dist/_virtual/protobuf2.js +1 -1
- package/dist/_virtual/psl.js +1 -1
- package/dist/_virtual/pug.js +1 -1
- package/dist/_virtual/puppet.js +1 -1
- package/dist/_virtual/puppet2.js +1 -1
- package/dist/_virtual/pure.js +1 -1
- package/dist/_virtual/purebasic.js +1 -1
- package/dist/_virtual/purebasic2.js +1 -1
- package/dist/_virtual/purescript.js +1 -1
- package/dist/_virtual/python-repl.js +1 -1
- package/dist/_virtual/python.js +1 -1
- package/dist/_virtual/python2.js +1 -1
- package/dist/_virtual/q.js +1 -1
- package/dist/_virtual/q2.js +1 -1
- package/dist/_virtual/qml.js +1 -1
- package/dist/_virtual/qml2.js +1 -1
- package/dist/_virtual/qore.js +1 -1
- package/dist/_virtual/qsharp.js +1 -1
- package/dist/_virtual/r.js +1 -1
- package/dist/_virtual/r2.js +1 -1
- package/dist/_virtual/racket.js +1 -1
- package/dist/_virtual/react-is.development.js +1 -1
- package/dist/_virtual/react-is.production.min.js +1 -1
- package/dist/_virtual/reason.js +1 -1
- package/dist/_virtual/reasonml.js +1 -1
- package/dist/_virtual/regex.js +1 -1
- package/dist/_virtual/rego.js +1 -1
- package/dist/_virtual/renpy.js +1 -1
- package/dist/_virtual/rest.js +1 -1
- package/dist/_virtual/rib.js +1 -1
- package/dist/_virtual/rip.js +1 -1
- package/dist/_virtual/roboconf.js +1 -1
- package/dist/_virtual/roboconf2.js +1 -1
- package/dist/_virtual/robotframework.js +1 -1
- package/dist/_virtual/routeros.js +1 -1
- package/dist/_virtual/rsl.js +1 -1
- package/dist/_virtual/ruby.js +1 -1
- package/dist/_virtual/ruby2.js +1 -1
- package/dist/_virtual/ruleslanguage.js +1 -1
- package/dist/_virtual/rust.js +1 -1
- package/dist/_virtual/rust2.js +1 -1
- package/dist/_virtual/sas.js +1 -1
- package/dist/_virtual/sas2.js +1 -1
- package/dist/_virtual/sass.js +1 -1
- package/dist/_virtual/scala.js +1 -1
- package/dist/_virtual/scala2.js +1 -1
- package/dist/_virtual/scheme.js +1 -1
- package/dist/_virtual/scheme2.js +1 -1
- package/dist/_virtual/scilab.js +1 -1
- package/dist/_virtual/scss.js +1 -1
- package/dist/_virtual/scss2.js +1 -1
- package/dist/_virtual/setPrototypeOf.js +1 -1
- package/dist/_virtual/shell-session.js +1 -1
- package/dist/_virtual/shell.js +1 -1
- package/dist/_virtual/smali.js +1 -1
- package/dist/_virtual/smali2.js +1 -1
- package/dist/_virtual/smalltalk.js +1 -1
- package/dist/_virtual/smalltalk2.js +1 -1
- package/dist/_virtual/smarty.js +1 -1
- package/dist/_virtual/sml.js +1 -1
- package/dist/_virtual/sml2.js +1 -1
- package/dist/_virtual/solidity.js +1 -1
- package/dist/_virtual/solution-file.js +1 -1
- package/dist/_virtual/soy.js +1 -1
- package/dist/_virtual/sparql.js +1 -1
- package/dist/_virtual/splunk-spl.js +1 -1
- package/dist/_virtual/sqf.js +1 -1
- package/dist/_virtual/sqf2.js +1 -1
- package/dist/_virtual/sql.js +1 -1
- package/dist/_virtual/sql2.js +1 -1
- package/dist/_virtual/sql_more.js +1 -1
- package/dist/_virtual/squirrel.js +1 -1
- package/dist/_virtual/stan.js +1 -1
- package/dist/_virtual/stan2.js +1 -1
- package/dist/_virtual/stata.js +1 -1
- package/dist/_virtual/step21.js +1 -1
- package/dist/_virtual/stylus.js +1 -1
- package/dist/_virtual/stylus2.js +1 -1
- package/dist/_virtual/subunit.js +1 -1
- package/dist/_virtual/swift.js +1 -1
- package/dist/_virtual/swift2.js +1 -1
- package/dist/_virtual/systemd.js +1 -1
- package/dist/_virtual/t4-cs.js +1 -1
- package/dist/_virtual/t4-templating.js +1 -1
- package/dist/_virtual/t4-vb.js +1 -1
- package/dist/_virtual/taggerscript.js +1 -1
- package/dist/_virtual/tap.js +1 -1
- package/dist/_virtual/tap2.js +1 -1
- package/dist/_virtual/tcl.js +1 -1
- package/dist/_virtual/tcl2.js +1 -1
- package/dist/_virtual/textile.js +1 -1
- package/dist/_virtual/thrift.js +1 -1
- package/dist/_virtual/toConsumableArray.js +1 -1
- package/dist/_virtual/toPrimitive.js +1 -1
- package/dist/_virtual/toPropertyKey.js +1 -1
- package/dist/_virtual/toml.js +1 -1
- package/dist/_virtual/tp.js +1 -1
- package/dist/_virtual/tremor.js +1 -1
- package/dist/_virtual/tsx.js +1 -1
- package/dist/_virtual/tt2.js +1 -1
- package/dist/_virtual/turtle.js +1 -1
- package/dist/_virtual/twig.js +1 -1
- package/dist/_virtual/twig2.js +1 -1
- package/dist/_virtual/typeof.js +1 -1
- package/dist/_virtual/types.js +1 -1
- package/dist/_virtual/typescript.js +1 -1
- package/dist/_virtual/typescript2.js +1 -1
- package/dist/_virtual/typoscript.js +1 -1
- package/dist/_virtual/unrealscript.js +1 -1
- package/dist/_virtual/unsupportedIterableToArray.js +1 -1
- package/dist/_virtual/uorazor.js +1 -1
- package/dist/_virtual/uri.js +1 -1
- package/dist/_virtual/v.js +1 -1
- package/dist/_virtual/vala.js +1 -1
- package/dist/_virtual/vala2.js +1 -1
- package/dist/_virtual/vbnet.js +1 -1
- package/dist/_virtual/vbnet2.js +1 -1
- package/dist/_virtual/vbscript-html.js +1 -1
- package/dist/_virtual/vbscript.js +1 -1
- package/dist/_virtual/velocity.js +1 -1
- package/dist/_virtual/verilog.js +1 -1
- package/dist/_virtual/verilog2.js +1 -1
- package/dist/_virtual/vhdl.js +1 -1
- package/dist/_virtual/vhdl2.js +1 -1
- package/dist/_virtual/vim.js +1 -1
- package/dist/_virtual/vim2.js +1 -1
- package/dist/_virtual/visual-basic.js +1 -1
- package/dist/_virtual/warpscript.js +1 -1
- package/dist/_virtual/wasm.js +1 -1
- package/dist/_virtual/web-idl.js +1 -1
- package/dist/_virtual/wiki.js +1 -1
- package/dist/_virtual/wolfram.js +1 -1
- package/dist/_virtual/wren.js +1 -1
- package/dist/_virtual/x86asm.js +1 -1
- package/dist/_virtual/xeora.js +1 -1
- package/dist/_virtual/xl.js +1 -1
- package/dist/_virtual/xml-doc.js +1 -1
- package/dist/_virtual/xml.js +1 -1
- package/dist/_virtual/xojo.js +1 -1
- package/dist/_virtual/xquery.js +1 -1
- package/dist/_virtual/xquery2.js +1 -1
- package/dist/_virtual/yaml.js +1 -1
- package/dist/_virtual/yaml2.js +1 -1
- package/dist/_virtual/yang.js +1 -1
- package/dist/_virtual/zephir.js +1 -1
- package/dist/_virtual/zig.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/assertThisInitialized.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/assertThisInitialized.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/asyncToGenerator.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/asyncToGenerator.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/classCallCheck.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/createClass.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/createClass.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/extends.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/extends.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/getPrototypeOf.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/getPrototypeOf.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/inherits.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/inherits.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/iterableToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/iterableToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/nonIterableSpread.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/nonIterableSpread.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutProperties.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/setPrototypeOf.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/setPrototypeOf.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/toConsumableArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/toConsumableArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/typeof.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/typeof.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js.map +1 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-character-count/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-character-count/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-highlight/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-history/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-image/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-image/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table-cell/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table-cell/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table-header/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table-header/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-table-row/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-table-row/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-task-item/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-task-item/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-task-list/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-task-list/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +3 -3
- package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +1 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -1
- package/dist/node_modules/attr-accept/dist/es/index.js +1 -1
- package/dist/node_modules/attr-accept/dist/es/index.js.map +1 -1
- package/dist/node_modules/character-entities/index.json.js +1 -1
- package/dist/node_modules/character-entities-legacy/index.json.js +1 -1
- package/dist/node_modules/character-reference-invalid/index.json.js +1 -1
- package/dist/node_modules/comma-separated-tokens/index.js +1 -1
- package/dist/node_modules/comma-separated-tokens/index.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -1
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js +1 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +1 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +1 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +1 -1
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -1
- package/dist/node_modules/date-fns/constants.js +1 -1
- package/dist/node_modules/date-fns/constants.js.map +1 -1
- package/dist/node_modules/date-fns/constructFrom.js +1 -1
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +1 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -1
- package/dist/node_modules/date-fns/format.js +1 -1
- package/dist/node_modules/date-fns/format.js.map +1 -1
- package/dist/node_modules/date-fns/getDayOfYear.js +1 -1
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js +1 -1
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js +1 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/getWeek.js +1 -1
- package/dist/node_modules/date-fns/getWeek.js.map +1 -1
- package/dist/node_modules/date-fns/getWeekYear.js +1 -1
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/isDate.js +1 -1
- package/dist/node_modules/date-fns/isDate.js.map +1 -1
- package/dist/node_modules/date-fns/isValid.js +1 -1
- package/dist/node_modules/date-fns/isValid.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -1
- package/dist/node_modules/date-fns/locale/en-US.js +1 -1
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -1
- package/dist/node_modules/date-fns/startOfDay.js +1 -1
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js +1 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +1 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeek.js +1 -1
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js +1 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -1
- package/dist/node_modules/date-fns/startOfYear.js +1 -1
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -1
- package/dist/node_modules/date-fns/toDate.js +1 -1
- package/dist/node_modules/date-fns/toDate.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.mjs.js +2 -1
- package/dist/node_modules/dompurify/dist/purify.es.mjs.js.map +1 -1
- package/dist/node_modules/fault/index.js +1 -1
- package/dist/node_modules/fault/index.js.map +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file-selector.js +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file-selector.js.map +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file.js +1 -1
- package/dist/node_modules/file-selector/dist/es2015/file.js.map +1 -1
- package/dist/node_modules/format/format.js +1 -1
- package/dist/node_modules/format/format.js.map +1 -1
- package/dist/node_modules/hast-util-parse-selector/index.js +1 -1
- package/dist/node_modules/hast-util-parse-selector/index.js.map +1 -1
- package/dist/node_modules/hastscript/factory.js +1 -1
- package/dist/node_modules/hastscript/factory.js.map +1 -1
- package/dist/node_modules/hastscript/html.js +1 -1
- package/dist/node_modules/hastscript/html.js.map +1 -1
- package/dist/node_modules/hastscript/index.js +1 -1
- package/dist/node_modules/hastscript/index.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/core.js +1 -1
- package/dist/node_modules/highlight.js/lib/core.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/1c.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/1c.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/abnf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/abnf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/accesslog.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/accesslog.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/actionscript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/actionscript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ada.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ada.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/angelscript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/angelscript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/apache.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/apache.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/applescript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/applescript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/arcade.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/arcade.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/arduino.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/arduino.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/armasm.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/armasm.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/asciidoc.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/asciidoc.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/aspectj.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/aspectj.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/autohotkey.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/autohotkey.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/autoit.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/autoit.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/avrasm.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/avrasm.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/awk.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/awk.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/axapta.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/axapta.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/bash.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/bash.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/basic.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/basic.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/bnf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/bnf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/brainfuck.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/brainfuck.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/c-like.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/c-like.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/c.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/c.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cal.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cal.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/capnproto.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/capnproto.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ceylon.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ceylon.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/clean.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/clean.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/clojure-repl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/clojure-repl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/clojure.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/clojure.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cmake.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cmake.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/coffeescript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/coffeescript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/coq.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/coq.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cos.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cos.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cpp.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/cpp.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/crmsh.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/crmsh.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/crystal.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/crystal.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/csharp.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/csharp.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/csp.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/csp.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/css.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/css.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/d.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/d.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dart.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dart.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/delphi.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/delphi.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/diff.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/diff.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/django.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/django.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dns.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dns.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dockerfile.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dockerfile.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dos.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dos.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dsconfig.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dsconfig.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dts.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dts.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dust.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/dust.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ebnf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ebnf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/elixir.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/elixir.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/elm.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/elm.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/erb.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/erb.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/erlang-repl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/erlang-repl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/erlang.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/erlang.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/excel.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/excel.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/fix.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/fix.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/flix.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/flix.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/fortran.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/fortran.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/fsharp.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/fsharp.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gams.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gams.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gauss.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gauss.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gcode.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gcode.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gherkin.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gherkin.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/glsl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/glsl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/go.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/go.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/golo.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/golo.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gradle.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/gradle.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/groovy.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/groovy.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/haml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/haml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/handlebars.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/handlebars.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/haskell.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/haskell.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/haxe.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/haxe.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/hsp.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/hsp.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/htmlbars.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/htmlbars.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/http.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/http.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/hy.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/hy.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/inform7.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/inform7.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ini.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ini.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/irpf90.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/irpf90.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/isbl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/isbl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/java.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/java.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/javascript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/javascript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/jboss-cli.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/jboss-cli.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/json.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/json.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/julia-repl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/julia-repl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/julia.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/julia.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/kotlin.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/kotlin.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lasso.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lasso.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/latex.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/latex.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ldif.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ldif.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/leaf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/leaf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/less.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/less.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lisp.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lisp.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/livecodeserver.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/livecodeserver.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/livescript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/livescript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/llvm.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/llvm.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lsl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lsl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lua.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/lua.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/makefile.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/makefile.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/markdown.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/markdown.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mathematica.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mathematica.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/matlab.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/matlab.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/maxima.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/maxima.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mel.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mel.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mercury.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mercury.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mipsasm.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mipsasm.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mizar.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mizar.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mojolicious.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/mojolicious.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/monkey.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/monkey.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/moonscript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/moonscript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/n1ql.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/n1ql.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nginx.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nginx.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nim.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nim.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nix.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nix.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/node-repl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/node-repl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nsis.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/nsis.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/objectivec.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/objectivec.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ocaml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ocaml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/openscad.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/openscad.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/oxygene.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/oxygene.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/parser3.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/parser3.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/perl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/perl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/pf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/pf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/pgsql.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/pgsql.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/php-template.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/php-template.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/php.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/php.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/plaintext.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/plaintext.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/pony.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/pony.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/powershell.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/powershell.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/processing.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/processing.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/profile.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/profile.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/prolog.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/prolog.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/properties.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/properties.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/protobuf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/protobuf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/puppet.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/puppet.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/purebasic.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/purebasic.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/python-repl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/python-repl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/python.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/python.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/q.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/q.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/qml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/qml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/r.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/r.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/reasonml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/reasonml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/rib.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/rib.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/roboconf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/roboconf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/routeros.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/routeros.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/rsl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/rsl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ruby.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ruby.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ruleslanguage.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/ruleslanguage.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/rust.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/rust.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sas.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sas.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scala.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scala.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scheme.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scheme.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scilab.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scilab.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scss.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/scss.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/shell.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/shell.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/smali.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/smali.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/smalltalk.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/smalltalk.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sqf.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sqf.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sql.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sql.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sql_more.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/sql_more.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/stan.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/stan.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/stata.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/stata.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/step21.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/step21.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/stylus.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/stylus.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/subunit.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/subunit.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/swift.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/swift.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/taggerscript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/taggerscript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/tap.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/tap.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/tcl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/tcl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/thrift.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/thrift.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/tp.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/tp.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/twig.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/twig.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/typescript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/typescript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vala.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vala.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vbnet.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vbnet.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vbscript-html.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vbscript-html.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vbscript.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vbscript.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/verilog.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/verilog.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vhdl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vhdl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vim.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/vim.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/x86asm.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/x86asm.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/xl.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/xl.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/xml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/xml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/xquery.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/xquery.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/yaml.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/yaml.js.map +1 -1
- package/dist/node_modules/highlight.js/lib/languages/zephir.js +1 -1
- package/dist/node_modules/highlight.js/lib/languages/zephir.js.map +1 -1
- package/dist/node_modules/html2canvas/dist/html2canvas.esm.js +2 -1
- package/dist/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -1
- package/dist/node_modules/is-alphabetical/index.js +1 -1
- package/dist/node_modules/is-alphabetical/index.js.map +1 -1
- package/dist/node_modules/is-alphanumerical/index.js +1 -1
- package/dist/node_modules/is-alphanumerical/index.js.map +1 -1
- package/dist/node_modules/is-decimal/index.js +1 -1
- package/dist/node_modules/is-decimal/index.js.map +1 -1
- package/dist/node_modules/is-hexadecimal/index.js +1 -1
- package/dist/node_modules/is-hexadecimal/index.js.map +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.es.js +1 -1
- package/dist/node_modules/linkifyjs/dist/linkify.es.js.map +1 -1
- package/dist/node_modules/lowlight/index.js +1 -1
- package/dist/node_modules/lowlight/index.js.map +1 -1
- package/dist/node_modules/lowlight/lib/core.js +1 -1
- package/dist/node_modules/lowlight/lib/core.js.map +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js +1 -1
- package/dist/node_modules/marked/lib/marked.esm.js.map +1 -1
- package/dist/node_modules/object-assign/index.js +2 -1
- package/dist/node_modules/object-assign/index.js.map +1 -1
- package/dist/node_modules/orderedmap/dist/index.js +1 -1
- package/dist/node_modules/orderedmap/dist/index.js.map +1 -1
- package/dist/node_modules/parse-entities/decode-entity.js +1 -1
- package/dist/node_modules/parse-entities/decode-entity.js.map +1 -1
- package/dist/node_modules/parse-entities/index.js +1 -1
- package/dist/node_modules/parse-entities/index.js.map +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -1
- package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/index.js.map +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -1
- package/dist/node_modules/prop-types/lib/has.js +1 -1
- package/dist/node_modules/prop-types/lib/has.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +2 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/property-information/find.js +1 -1
- package/dist/node_modules/property-information/find.js.map +1 -1
- package/dist/node_modules/property-information/html.js +1 -1
- package/dist/node_modules/property-information/html.js.map +1 -1
- package/dist/node_modules/property-information/lib/aria.js +1 -1
- package/dist/node_modules/property-information/lib/aria.js.map +1 -1
- package/dist/node_modules/property-information/lib/html.js +1 -1
- package/dist/node_modules/property-information/lib/html.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +1 -1
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +1 -1
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/create.js +1 -1
- package/dist/node_modules/property-information/lib/util/create.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/defined-info.js +1 -1
- package/dist/node_modules/property-information/lib/util/defined-info.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/info.js +1 -1
- package/dist/node_modules/property-information/lib/util/info.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/merge.js +1 -1
- package/dist/node_modules/property-information/lib/util/merge.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/schema.js +1 -1
- package/dist/node_modules/property-information/lib/util/schema.js.map +1 -1
- package/dist/node_modules/property-information/lib/util/types.js +1 -1
- package/dist/node_modules/property-information/lib/util/types.js.map +1 -1
- package/dist/node_modules/property-information/lib/xlink.js +1 -1
- package/dist/node_modules/property-information/lib/xlink.js.map +1 -1
- package/dist/node_modules/property-information/lib/xml.js +1 -1
- package/dist/node_modules/property-information/lib/xml.js.map +1 -1
- package/dist/node_modules/property-information/lib/xmlns.js +1 -1
- package/dist/node_modules/property-information/lib/xmlns.js.map +1 -1
- package/dist/node_modules/property-information/normalize.js +1 -1
- package/dist/node_modules/property-information/normalize.js.map +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-tables/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-tables/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +1 -1
- package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -1
- package/dist/node_modules/react-dropzone/dist/es/index.js +1 -1
- package/dist/node_modules/react-dropzone/dist/es/index.js.map +1 -1
- package/dist/node_modules/react-dropzone/dist/es/utils/index.js +1 -1
- package/dist/node_modules/react-dropzone/dist/es/utils/index.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-languages/hljs.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-languages/hljs.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-languages/prism.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-languages/prism.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/create-element.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/default-highlight.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/default-highlight.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/highlight.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/hljs/supported-languages.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/hljs/supported-languages.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light-async.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light-async.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/light.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-async-light.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-async-light.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-async.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-async.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism-light.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/prism.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/default-style.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/hljs/default-style.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/one-light.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/one-light.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.js.map +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/tomorrow.js +1 -1
- package/dist/node_modules/react-syntax-highlighter/dist/esm/styles/prism/tomorrow.js.map +1 -1
- package/dist/node_modules/refractor/core.js +1 -1
- package/dist/node_modules/refractor/core.js.map +1 -1
- package/dist/node_modules/refractor/index.js +1 -1
- package/dist/node_modules/refractor/index.js.map +1 -1
- package/dist/node_modules/refractor/lang/abap.js +1 -1
- package/dist/node_modules/refractor/lang/abap.js.map +1 -1
- package/dist/node_modules/refractor/lang/abnf.js +1 -1
- package/dist/node_modules/refractor/lang/abnf.js.map +1 -1
- package/dist/node_modules/refractor/lang/actionscript.js +1 -1
- package/dist/node_modules/refractor/lang/actionscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/ada.js +1 -1
- package/dist/node_modules/refractor/lang/ada.js.map +1 -1
- package/dist/node_modules/refractor/lang/agda.js +1 -1
- package/dist/node_modules/refractor/lang/agda.js.map +1 -1
- package/dist/node_modules/refractor/lang/al.js +1 -1
- package/dist/node_modules/refractor/lang/al.js.map +1 -1
- package/dist/node_modules/refractor/lang/antlr4.js +1 -1
- package/dist/node_modules/refractor/lang/antlr4.js.map +1 -1
- package/dist/node_modules/refractor/lang/apacheconf.js +1 -1
- package/dist/node_modules/refractor/lang/apacheconf.js.map +1 -1
- package/dist/node_modules/refractor/lang/apex.js +1 -1
- package/dist/node_modules/refractor/lang/apex.js.map +1 -1
- package/dist/node_modules/refractor/lang/apl.js +1 -1
- package/dist/node_modules/refractor/lang/apl.js.map +1 -1
- package/dist/node_modules/refractor/lang/applescript.js +1 -1
- package/dist/node_modules/refractor/lang/applescript.js.map +1 -1
- package/dist/node_modules/refractor/lang/aql.js +1 -1
- package/dist/node_modules/refractor/lang/aql.js.map +1 -1
- package/dist/node_modules/refractor/lang/arduino.js +1 -1
- package/dist/node_modules/refractor/lang/arduino.js.map +1 -1
- package/dist/node_modules/refractor/lang/arff.js +1 -1
- package/dist/node_modules/refractor/lang/arff.js.map +1 -1
- package/dist/node_modules/refractor/lang/asciidoc.js +1 -1
- package/dist/node_modules/refractor/lang/asciidoc.js.map +1 -1
- package/dist/node_modules/refractor/lang/asm6502.js +1 -1
- package/dist/node_modules/refractor/lang/asm6502.js.map +1 -1
- package/dist/node_modules/refractor/lang/asmatmel.js +1 -1
- package/dist/node_modules/refractor/lang/asmatmel.js.map +1 -1
- package/dist/node_modules/refractor/lang/aspnet.js +1 -1
- package/dist/node_modules/refractor/lang/aspnet.js.map +1 -1
- package/dist/node_modules/refractor/lang/autohotkey.js +1 -1
- package/dist/node_modules/refractor/lang/autohotkey.js.map +1 -1
- package/dist/node_modules/refractor/lang/autoit.js +1 -1
- package/dist/node_modules/refractor/lang/autoit.js.map +1 -1
- package/dist/node_modules/refractor/lang/avisynth.js +1 -1
- package/dist/node_modules/refractor/lang/avisynth.js.map +1 -1
- package/dist/node_modules/refractor/lang/avro-idl.js +1 -1
- package/dist/node_modules/refractor/lang/avro-idl.js.map +1 -1
- package/dist/node_modules/refractor/lang/bash.js +1 -1
- package/dist/node_modules/refractor/lang/bash.js.map +1 -1
- package/dist/node_modules/refractor/lang/basic.js +1 -1
- package/dist/node_modules/refractor/lang/basic.js.map +1 -1
- package/dist/node_modules/refractor/lang/batch.js +1 -1
- package/dist/node_modules/refractor/lang/batch.js.map +1 -1
- package/dist/node_modules/refractor/lang/bbcode.js +1 -1
- package/dist/node_modules/refractor/lang/bbcode.js.map +1 -1
- package/dist/node_modules/refractor/lang/bicep.js +1 -1
- package/dist/node_modules/refractor/lang/bicep.js.map +1 -1
- package/dist/node_modules/refractor/lang/birb.js +1 -1
- package/dist/node_modules/refractor/lang/birb.js.map +1 -1
- package/dist/node_modules/refractor/lang/bison.js +1 -1
- package/dist/node_modules/refractor/lang/bison.js.map +1 -1
- package/dist/node_modules/refractor/lang/bnf.js +1 -1
- package/dist/node_modules/refractor/lang/bnf.js.map +1 -1
- package/dist/node_modules/refractor/lang/brainfuck.js +1 -1
- package/dist/node_modules/refractor/lang/brainfuck.js.map +1 -1
- package/dist/node_modules/refractor/lang/brightscript.js +1 -1
- package/dist/node_modules/refractor/lang/brightscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/bro.js +1 -1
- package/dist/node_modules/refractor/lang/bro.js.map +1 -1
- package/dist/node_modules/refractor/lang/bsl.js +1 -1
- package/dist/node_modules/refractor/lang/bsl.js.map +1 -1
- package/dist/node_modules/refractor/lang/c.js +1 -1
- package/dist/node_modules/refractor/lang/c.js.map +1 -1
- package/dist/node_modules/refractor/lang/cfscript.js +1 -1
- package/dist/node_modules/refractor/lang/cfscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/chaiscript.js +1 -1
- package/dist/node_modules/refractor/lang/chaiscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/cil.js +1 -1
- package/dist/node_modules/refractor/lang/cil.js.map +1 -1
- package/dist/node_modules/refractor/lang/clike.js +1 -1
- package/dist/node_modules/refractor/lang/clike.js.map +1 -1
- package/dist/node_modules/refractor/lang/clojure.js +1 -1
- package/dist/node_modules/refractor/lang/clojure.js.map +1 -1
- package/dist/node_modules/refractor/lang/cmake.js +1 -1
- package/dist/node_modules/refractor/lang/cmake.js.map +1 -1
- package/dist/node_modules/refractor/lang/cobol.js +1 -1
- package/dist/node_modules/refractor/lang/cobol.js.map +1 -1
- package/dist/node_modules/refractor/lang/coffeescript.js +1 -1
- package/dist/node_modules/refractor/lang/coffeescript.js.map +1 -1
- package/dist/node_modules/refractor/lang/concurnas.js +1 -1
- package/dist/node_modules/refractor/lang/concurnas.js.map +1 -1
- package/dist/node_modules/refractor/lang/coq.js +1 -1
- package/dist/node_modules/refractor/lang/coq.js.map +1 -1
- package/dist/node_modules/refractor/lang/cpp.js +1 -1
- package/dist/node_modules/refractor/lang/cpp.js.map +1 -1
- package/dist/node_modules/refractor/lang/crystal.js +1 -1
- package/dist/node_modules/refractor/lang/crystal.js.map +1 -1
- package/dist/node_modules/refractor/lang/csharp.js +1 -1
- package/dist/node_modules/refractor/lang/csharp.js.map +1 -1
- package/dist/node_modules/refractor/lang/cshtml.js +1 -1
- package/dist/node_modules/refractor/lang/cshtml.js.map +1 -1
- package/dist/node_modules/refractor/lang/csp.js +1 -1
- package/dist/node_modules/refractor/lang/csp.js.map +1 -1
- package/dist/node_modules/refractor/lang/css-extras.js +1 -1
- package/dist/node_modules/refractor/lang/css-extras.js.map +1 -1
- package/dist/node_modules/refractor/lang/css.js +1 -1
- package/dist/node_modules/refractor/lang/css.js.map +1 -1
- package/dist/node_modules/refractor/lang/csv.js +1 -1
- package/dist/node_modules/refractor/lang/csv.js.map +1 -1
- package/dist/node_modules/refractor/lang/cypher.js +1 -1
- package/dist/node_modules/refractor/lang/cypher.js.map +1 -1
- package/dist/node_modules/refractor/lang/d.js +1 -1
- package/dist/node_modules/refractor/lang/d.js.map +1 -1
- package/dist/node_modules/refractor/lang/dart.js +1 -1
- package/dist/node_modules/refractor/lang/dart.js.map +1 -1
- package/dist/node_modules/refractor/lang/dataweave.js +1 -1
- package/dist/node_modules/refractor/lang/dataweave.js.map +1 -1
- package/dist/node_modules/refractor/lang/dax.js +1 -1
- package/dist/node_modules/refractor/lang/dax.js.map +1 -1
- package/dist/node_modules/refractor/lang/dhall.js +1 -1
- package/dist/node_modules/refractor/lang/dhall.js.map +1 -1
- package/dist/node_modules/refractor/lang/diff.js +1 -1
- package/dist/node_modules/refractor/lang/diff.js.map +1 -1
- package/dist/node_modules/refractor/lang/django.js +1 -1
- package/dist/node_modules/refractor/lang/django.js.map +1 -1
- package/dist/node_modules/refractor/lang/dns-zone-file.js +1 -1
- package/dist/node_modules/refractor/lang/dns-zone-file.js.map +1 -1
- package/dist/node_modules/refractor/lang/docker.js +1 -1
- package/dist/node_modules/refractor/lang/docker.js.map +1 -1
- package/dist/node_modules/refractor/lang/dot.js +1 -1
- package/dist/node_modules/refractor/lang/dot.js.map +1 -1
- package/dist/node_modules/refractor/lang/ebnf.js +1 -1
- package/dist/node_modules/refractor/lang/ebnf.js.map +1 -1
- package/dist/node_modules/refractor/lang/editorconfig.js +1 -1
- package/dist/node_modules/refractor/lang/editorconfig.js.map +1 -1
- package/dist/node_modules/refractor/lang/eiffel.js +1 -1
- package/dist/node_modules/refractor/lang/eiffel.js.map +1 -1
- package/dist/node_modules/refractor/lang/ejs.js +1 -1
- package/dist/node_modules/refractor/lang/ejs.js.map +1 -1
- package/dist/node_modules/refractor/lang/elixir.js +1 -1
- package/dist/node_modules/refractor/lang/elixir.js.map +1 -1
- package/dist/node_modules/refractor/lang/elm.js +1 -1
- package/dist/node_modules/refractor/lang/elm.js.map +1 -1
- package/dist/node_modules/refractor/lang/erb.js +1 -1
- package/dist/node_modules/refractor/lang/erb.js.map +1 -1
- package/dist/node_modules/refractor/lang/erlang.js +1 -1
- package/dist/node_modules/refractor/lang/erlang.js.map +1 -1
- package/dist/node_modules/refractor/lang/etlua.js +1 -1
- package/dist/node_modules/refractor/lang/etlua.js.map +1 -1
- package/dist/node_modules/refractor/lang/excel-formula.js +1 -1
- package/dist/node_modules/refractor/lang/excel-formula.js.map +1 -1
- package/dist/node_modules/refractor/lang/factor.js +1 -1
- package/dist/node_modules/refractor/lang/factor.js.map +1 -1
- package/dist/node_modules/refractor/lang/false.js +1 -1
- package/dist/node_modules/refractor/lang/false.js.map +1 -1
- package/dist/node_modules/refractor/lang/firestore-security-rules.js +1 -1
- package/dist/node_modules/refractor/lang/firestore-security-rules.js.map +1 -1
- package/dist/node_modules/refractor/lang/flow.js +1 -1
- package/dist/node_modules/refractor/lang/flow.js.map +1 -1
- package/dist/node_modules/refractor/lang/fortran.js +1 -1
- package/dist/node_modules/refractor/lang/fortran.js.map +1 -1
- package/dist/node_modules/refractor/lang/fsharp.js +1 -1
- package/dist/node_modules/refractor/lang/fsharp.js.map +1 -1
- package/dist/node_modules/refractor/lang/ftl.js +1 -1
- package/dist/node_modules/refractor/lang/ftl.js.map +1 -1
- package/dist/node_modules/refractor/lang/gap.js +1 -1
- package/dist/node_modules/refractor/lang/gap.js.map +1 -1
- package/dist/node_modules/refractor/lang/gcode.js +1 -1
- package/dist/node_modules/refractor/lang/gcode.js.map +1 -1
- package/dist/node_modules/refractor/lang/gdscript.js +1 -1
- package/dist/node_modules/refractor/lang/gdscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/gedcom.js +1 -1
- package/dist/node_modules/refractor/lang/gedcom.js.map +1 -1
- package/dist/node_modules/refractor/lang/gherkin.js +1 -1
- package/dist/node_modules/refractor/lang/gherkin.js.map +1 -1
- package/dist/node_modules/refractor/lang/git.js +1 -1
- package/dist/node_modules/refractor/lang/git.js.map +1 -1
- package/dist/node_modules/refractor/lang/glsl.js +1 -1
- package/dist/node_modules/refractor/lang/glsl.js.map +1 -1
- package/dist/node_modules/refractor/lang/gml.js +1 -1
- package/dist/node_modules/refractor/lang/gml.js.map +1 -1
- package/dist/node_modules/refractor/lang/gn.js +1 -1
- package/dist/node_modules/refractor/lang/gn.js.map +1 -1
- package/dist/node_modules/refractor/lang/go-module.js +1 -1
- package/dist/node_modules/refractor/lang/go-module.js.map +1 -1
- package/dist/node_modules/refractor/lang/go.js +1 -1
- package/dist/node_modules/refractor/lang/go.js.map +1 -1
- package/dist/node_modules/refractor/lang/graphql.js +1 -1
- package/dist/node_modules/refractor/lang/graphql.js.map +1 -1
- package/dist/node_modules/refractor/lang/groovy.js +1 -1
- package/dist/node_modules/refractor/lang/groovy.js.map +1 -1
- package/dist/node_modules/refractor/lang/haml.js +1 -1
- package/dist/node_modules/refractor/lang/haml.js.map +1 -1
- package/dist/node_modules/refractor/lang/handlebars.js +1 -1
- package/dist/node_modules/refractor/lang/handlebars.js.map +1 -1
- package/dist/node_modules/refractor/lang/haskell.js +1 -1
- package/dist/node_modules/refractor/lang/haskell.js.map +1 -1
- package/dist/node_modules/refractor/lang/haxe.js +1 -1
- package/dist/node_modules/refractor/lang/haxe.js.map +1 -1
- package/dist/node_modules/refractor/lang/hcl.js +1 -1
- package/dist/node_modules/refractor/lang/hcl.js.map +1 -1
- package/dist/node_modules/refractor/lang/hlsl.js +1 -1
- package/dist/node_modules/refractor/lang/hlsl.js.map +1 -1
- package/dist/node_modules/refractor/lang/hoon.js +1 -1
- package/dist/node_modules/refractor/lang/hoon.js.map +1 -1
- package/dist/node_modules/refractor/lang/hpkp.js +1 -1
- package/dist/node_modules/refractor/lang/hpkp.js.map +1 -1
- package/dist/node_modules/refractor/lang/hsts.js +1 -1
- package/dist/node_modules/refractor/lang/hsts.js.map +1 -1
- package/dist/node_modules/refractor/lang/http.js +1 -1
- package/dist/node_modules/refractor/lang/http.js.map +1 -1
- package/dist/node_modules/refractor/lang/ichigojam.js +1 -1
- package/dist/node_modules/refractor/lang/ichigojam.js.map +1 -1
- package/dist/node_modules/refractor/lang/icon.js +1 -1
- package/dist/node_modules/refractor/lang/icon.js.map +1 -1
- package/dist/node_modules/refractor/lang/icu-message-format.js +1 -1
- package/dist/node_modules/refractor/lang/icu-message-format.js.map +1 -1
- package/dist/node_modules/refractor/lang/idris.js +1 -1
- package/dist/node_modules/refractor/lang/idris.js.map +1 -1
- package/dist/node_modules/refractor/lang/iecst.js +1 -1
- package/dist/node_modules/refractor/lang/iecst.js.map +1 -1
- package/dist/node_modules/refractor/lang/ignore.js +1 -1
- package/dist/node_modules/refractor/lang/ignore.js.map +1 -1
- package/dist/node_modules/refractor/lang/inform7.js +1 -1
- package/dist/node_modules/refractor/lang/inform7.js.map +1 -1
- package/dist/node_modules/refractor/lang/ini.js +1 -1
- package/dist/node_modules/refractor/lang/ini.js.map +1 -1
- package/dist/node_modules/refractor/lang/io.js +1 -1
- package/dist/node_modules/refractor/lang/io.js.map +1 -1
- package/dist/node_modules/refractor/lang/j.js +1 -1
- package/dist/node_modules/refractor/lang/j.js.map +1 -1
- package/dist/node_modules/refractor/lang/java.js +1 -1
- package/dist/node_modules/refractor/lang/java.js.map +1 -1
- package/dist/node_modules/refractor/lang/javadoc.js +1 -1
- package/dist/node_modules/refractor/lang/javadoc.js.map +1 -1
- package/dist/node_modules/refractor/lang/javadoclike.js +1 -1
- package/dist/node_modules/refractor/lang/javadoclike.js.map +1 -1
- package/dist/node_modules/refractor/lang/javascript.js +1 -1
- package/dist/node_modules/refractor/lang/javascript.js.map +1 -1
- package/dist/node_modules/refractor/lang/javastacktrace.js +1 -1
- package/dist/node_modules/refractor/lang/javastacktrace.js.map +1 -1
- package/dist/node_modules/refractor/lang/jexl.js +1 -1
- package/dist/node_modules/refractor/lang/jexl.js.map +1 -1
- package/dist/node_modules/refractor/lang/jolie.js +1 -1
- package/dist/node_modules/refractor/lang/jolie.js.map +1 -1
- package/dist/node_modules/refractor/lang/jq.js +1 -1
- package/dist/node_modules/refractor/lang/jq.js.map +1 -1
- package/dist/node_modules/refractor/lang/js-extras.js +1 -1
- package/dist/node_modules/refractor/lang/js-extras.js.map +1 -1
- package/dist/node_modules/refractor/lang/js-templates.js +1 -1
- package/dist/node_modules/refractor/lang/js-templates.js.map +1 -1
- package/dist/node_modules/refractor/lang/jsdoc.js +1 -1
- package/dist/node_modules/refractor/lang/jsdoc.js.map +1 -1
- package/dist/node_modules/refractor/lang/json.js +1 -1
- package/dist/node_modules/refractor/lang/json.js.map +1 -1
- package/dist/node_modules/refractor/lang/json5.js +1 -1
- package/dist/node_modules/refractor/lang/json5.js.map +1 -1
- package/dist/node_modules/refractor/lang/jsonp.js +1 -1
- package/dist/node_modules/refractor/lang/jsonp.js.map +1 -1
- package/dist/node_modules/refractor/lang/jsstacktrace.js +1 -1
- package/dist/node_modules/refractor/lang/jsstacktrace.js.map +1 -1
- package/dist/node_modules/refractor/lang/jsx.js +1 -1
- package/dist/node_modules/refractor/lang/jsx.js.map +1 -1
- package/dist/node_modules/refractor/lang/julia.js +1 -1
- package/dist/node_modules/refractor/lang/julia.js.map +1 -1
- package/dist/node_modules/refractor/lang/keepalived.js +1 -1
- package/dist/node_modules/refractor/lang/keepalived.js.map +1 -1
- package/dist/node_modules/refractor/lang/keyman.js +1 -1
- package/dist/node_modules/refractor/lang/keyman.js.map +1 -1
- package/dist/node_modules/refractor/lang/kotlin.js +1 -1
- package/dist/node_modules/refractor/lang/kotlin.js.map +1 -1
- package/dist/node_modules/refractor/lang/kumir.js +1 -1
- package/dist/node_modules/refractor/lang/kumir.js.map +1 -1
- package/dist/node_modules/refractor/lang/kusto.js +1 -1
- package/dist/node_modules/refractor/lang/kusto.js.map +1 -1
- package/dist/node_modules/refractor/lang/latex.js +1 -1
- package/dist/node_modules/refractor/lang/latex.js.map +1 -1
- package/dist/node_modules/refractor/lang/latte.js +1 -1
- package/dist/node_modules/refractor/lang/latte.js.map +1 -1
- package/dist/node_modules/refractor/lang/less.js +1 -1
- package/dist/node_modules/refractor/lang/less.js.map +1 -1
- package/dist/node_modules/refractor/lang/lilypond.js +1 -1
- package/dist/node_modules/refractor/lang/lilypond.js.map +1 -1
- package/dist/node_modules/refractor/lang/liquid.js +1 -1
- package/dist/node_modules/refractor/lang/liquid.js.map +1 -1
- package/dist/node_modules/refractor/lang/lisp.js +1 -1
- package/dist/node_modules/refractor/lang/lisp.js.map +1 -1
- package/dist/node_modules/refractor/lang/livescript.js +1 -1
- package/dist/node_modules/refractor/lang/livescript.js.map +1 -1
- package/dist/node_modules/refractor/lang/llvm.js +1 -1
- package/dist/node_modules/refractor/lang/llvm.js.map +1 -1
- package/dist/node_modules/refractor/lang/log.js +1 -1
- package/dist/node_modules/refractor/lang/log.js.map +1 -1
- package/dist/node_modules/refractor/lang/lolcode.js +1 -1
- package/dist/node_modules/refractor/lang/lolcode.js.map +1 -1
- package/dist/node_modules/refractor/lang/lua.js +1 -1
- package/dist/node_modules/refractor/lang/lua.js.map +1 -1
- package/dist/node_modules/refractor/lang/magma.js +1 -1
- package/dist/node_modules/refractor/lang/magma.js.map +1 -1
- package/dist/node_modules/refractor/lang/makefile.js +1 -1
- package/dist/node_modules/refractor/lang/makefile.js.map +1 -1
- package/dist/node_modules/refractor/lang/markdown.js +1 -1
- package/dist/node_modules/refractor/lang/markdown.js.map +1 -1
- package/dist/node_modules/refractor/lang/markup-templating.js +1 -1
- package/dist/node_modules/refractor/lang/markup-templating.js.map +1 -1
- package/dist/node_modules/refractor/lang/markup.js +1 -1
- package/dist/node_modules/refractor/lang/markup.js.map +1 -1
- package/dist/node_modules/refractor/lang/matlab.js +1 -1
- package/dist/node_modules/refractor/lang/matlab.js.map +1 -1
- package/dist/node_modules/refractor/lang/maxscript.js +1 -1
- package/dist/node_modules/refractor/lang/maxscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/mel.js +1 -1
- package/dist/node_modules/refractor/lang/mel.js.map +1 -1
- package/dist/node_modules/refractor/lang/mermaid.js +1 -1
- package/dist/node_modules/refractor/lang/mermaid.js.map +1 -1
- package/dist/node_modules/refractor/lang/mizar.js +1 -1
- package/dist/node_modules/refractor/lang/mizar.js.map +1 -1
- package/dist/node_modules/refractor/lang/mongodb.js +1 -1
- package/dist/node_modules/refractor/lang/mongodb.js.map +1 -1
- package/dist/node_modules/refractor/lang/monkey.js +1 -1
- package/dist/node_modules/refractor/lang/monkey.js.map +1 -1
- package/dist/node_modules/refractor/lang/moonscript.js +1 -1
- package/dist/node_modules/refractor/lang/moonscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/n1ql.js +1 -1
- package/dist/node_modules/refractor/lang/n1ql.js.map +1 -1
- package/dist/node_modules/refractor/lang/n4js.js +1 -1
- package/dist/node_modules/refractor/lang/n4js.js.map +1 -1
- package/dist/node_modules/refractor/lang/nand2tetris-hdl.js +1 -1
- package/dist/node_modules/refractor/lang/nand2tetris-hdl.js.map +1 -1
- package/dist/node_modules/refractor/lang/naniscript.js +1 -1
- package/dist/node_modules/refractor/lang/naniscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/nasm.js +1 -1
- package/dist/node_modules/refractor/lang/nasm.js.map +1 -1
- package/dist/node_modules/refractor/lang/neon.js +1 -1
- package/dist/node_modules/refractor/lang/neon.js.map +1 -1
- package/dist/node_modules/refractor/lang/nevod.js +1 -1
- package/dist/node_modules/refractor/lang/nevod.js.map +1 -1
- package/dist/node_modules/refractor/lang/nginx.js +1 -1
- package/dist/node_modules/refractor/lang/nginx.js.map +1 -1
- package/dist/node_modules/refractor/lang/nim.js +1 -1
- package/dist/node_modules/refractor/lang/nim.js.map +1 -1
- package/dist/node_modules/refractor/lang/nix.js +1 -1
- package/dist/node_modules/refractor/lang/nix.js.map +1 -1
- package/dist/node_modules/refractor/lang/nsis.js +1 -1
- package/dist/node_modules/refractor/lang/nsis.js.map +1 -1
- package/dist/node_modules/refractor/lang/objectivec.js +1 -1
- package/dist/node_modules/refractor/lang/objectivec.js.map +1 -1
- package/dist/node_modules/refractor/lang/ocaml.js +1 -1
- package/dist/node_modules/refractor/lang/ocaml.js.map +1 -1
- package/dist/node_modules/refractor/lang/opencl.js +1 -1
- package/dist/node_modules/refractor/lang/opencl.js.map +1 -1
- package/dist/node_modules/refractor/lang/openqasm.js +1 -1
- package/dist/node_modules/refractor/lang/openqasm.js.map +1 -1
- package/dist/node_modules/refractor/lang/oz.js +1 -1
- package/dist/node_modules/refractor/lang/oz.js.map +1 -1
- package/dist/node_modules/refractor/lang/parigp.js +1 -1
- package/dist/node_modules/refractor/lang/parigp.js.map +1 -1
- package/dist/node_modules/refractor/lang/parser.js +1 -1
- package/dist/node_modules/refractor/lang/parser.js.map +1 -1
- package/dist/node_modules/refractor/lang/pascal.js +1 -1
- package/dist/node_modules/refractor/lang/pascal.js.map +1 -1
- package/dist/node_modules/refractor/lang/pascaligo.js +1 -1
- package/dist/node_modules/refractor/lang/pascaligo.js.map +1 -1
- package/dist/node_modules/refractor/lang/pcaxis.js +1 -1
- package/dist/node_modules/refractor/lang/pcaxis.js.map +1 -1
- package/dist/node_modules/refractor/lang/peoplecode.js +1 -1
- package/dist/node_modules/refractor/lang/peoplecode.js.map +1 -1
- package/dist/node_modules/refractor/lang/perl.js +1 -1
- package/dist/node_modules/refractor/lang/perl.js.map +1 -1
- package/dist/node_modules/refractor/lang/php-extras.js +1 -1
- package/dist/node_modules/refractor/lang/php-extras.js.map +1 -1
- package/dist/node_modules/refractor/lang/php.js +1 -1
- package/dist/node_modules/refractor/lang/php.js.map +1 -1
- package/dist/node_modules/refractor/lang/phpdoc.js +1 -1
- package/dist/node_modules/refractor/lang/phpdoc.js.map +1 -1
- package/dist/node_modules/refractor/lang/plsql.js +1 -1
- package/dist/node_modules/refractor/lang/plsql.js.map +1 -1
- package/dist/node_modules/refractor/lang/powerquery.js +1 -1
- package/dist/node_modules/refractor/lang/powerquery.js.map +1 -1
- package/dist/node_modules/refractor/lang/powershell.js +1 -1
- package/dist/node_modules/refractor/lang/powershell.js.map +1 -1
- package/dist/node_modules/refractor/lang/processing.js +1 -1
- package/dist/node_modules/refractor/lang/processing.js.map +1 -1
- package/dist/node_modules/refractor/lang/prolog.js +1 -1
- package/dist/node_modules/refractor/lang/prolog.js.map +1 -1
- package/dist/node_modules/refractor/lang/promql.js +1 -1
- package/dist/node_modules/refractor/lang/promql.js.map +1 -1
- package/dist/node_modules/refractor/lang/properties.js +1 -1
- package/dist/node_modules/refractor/lang/properties.js.map +1 -1
- package/dist/node_modules/refractor/lang/protobuf.js +1 -1
- package/dist/node_modules/refractor/lang/protobuf.js.map +1 -1
- package/dist/node_modules/refractor/lang/psl.js +1 -1
- package/dist/node_modules/refractor/lang/psl.js.map +1 -1
- package/dist/node_modules/refractor/lang/pug.js +1 -1
- package/dist/node_modules/refractor/lang/pug.js.map +1 -1
- package/dist/node_modules/refractor/lang/puppet.js +1 -1
- package/dist/node_modules/refractor/lang/puppet.js.map +1 -1
- package/dist/node_modules/refractor/lang/pure.js +1 -1
- package/dist/node_modules/refractor/lang/pure.js.map +1 -1
- package/dist/node_modules/refractor/lang/purebasic.js +1 -1
- package/dist/node_modules/refractor/lang/purebasic.js.map +1 -1
- package/dist/node_modules/refractor/lang/purescript.js +1 -1
- package/dist/node_modules/refractor/lang/purescript.js.map +1 -1
- package/dist/node_modules/refractor/lang/python.js +1 -1
- package/dist/node_modules/refractor/lang/python.js.map +1 -1
- package/dist/node_modules/refractor/lang/q.js +1 -1
- package/dist/node_modules/refractor/lang/q.js.map +1 -1
- package/dist/node_modules/refractor/lang/qml.js +1 -1
- package/dist/node_modules/refractor/lang/qml.js.map +1 -1
- package/dist/node_modules/refractor/lang/qore.js +1 -1
- package/dist/node_modules/refractor/lang/qore.js.map +1 -1
- package/dist/node_modules/refractor/lang/qsharp.js +1 -1
- package/dist/node_modules/refractor/lang/qsharp.js.map +1 -1
- package/dist/node_modules/refractor/lang/r.js +1 -1
- package/dist/node_modules/refractor/lang/r.js.map +1 -1
- package/dist/node_modules/refractor/lang/racket.js +1 -1
- package/dist/node_modules/refractor/lang/racket.js.map +1 -1
- package/dist/node_modules/refractor/lang/reason.js +1 -1
- package/dist/node_modules/refractor/lang/reason.js.map +1 -1
- package/dist/node_modules/refractor/lang/regex.js +1 -1
- package/dist/node_modules/refractor/lang/regex.js.map +1 -1
- package/dist/node_modules/refractor/lang/rego.js +1 -1
- package/dist/node_modules/refractor/lang/rego.js.map +1 -1
- package/dist/node_modules/refractor/lang/renpy.js +1 -1
- package/dist/node_modules/refractor/lang/renpy.js.map +1 -1
- package/dist/node_modules/refractor/lang/rest.js +1 -1
- package/dist/node_modules/refractor/lang/rest.js.map +1 -1
- package/dist/node_modules/refractor/lang/rip.js +1 -1
- package/dist/node_modules/refractor/lang/rip.js.map +1 -1
- package/dist/node_modules/refractor/lang/roboconf.js +1 -1
- package/dist/node_modules/refractor/lang/roboconf.js.map +1 -1
- package/dist/node_modules/refractor/lang/robotframework.js +1 -1
- package/dist/node_modules/refractor/lang/robotframework.js.map +1 -1
- package/dist/node_modules/refractor/lang/ruby.js +1 -1
- package/dist/node_modules/refractor/lang/ruby.js.map +1 -1
- package/dist/node_modules/refractor/lang/rust.js +1 -1
- package/dist/node_modules/refractor/lang/rust.js.map +1 -1
- package/dist/node_modules/refractor/lang/sas.js +1 -1
- package/dist/node_modules/refractor/lang/sas.js.map +1 -1
- package/dist/node_modules/refractor/lang/sass.js +1 -1
- package/dist/node_modules/refractor/lang/sass.js.map +1 -1
- package/dist/node_modules/refractor/lang/scala.js +1 -1
- package/dist/node_modules/refractor/lang/scala.js.map +1 -1
- package/dist/node_modules/refractor/lang/scheme.js +1 -1
- package/dist/node_modules/refractor/lang/scheme.js.map +1 -1
- package/dist/node_modules/refractor/lang/scss.js +1 -1
- package/dist/node_modules/refractor/lang/scss.js.map +1 -1
- package/dist/node_modules/refractor/lang/shell-session.js +1 -1
- package/dist/node_modules/refractor/lang/shell-session.js.map +1 -1
- package/dist/node_modules/refractor/lang/smali.js +1 -1
- package/dist/node_modules/refractor/lang/smali.js.map +1 -1
- package/dist/node_modules/refractor/lang/smalltalk.js +1 -1
- package/dist/node_modules/refractor/lang/smalltalk.js.map +1 -1
- package/dist/node_modules/refractor/lang/smarty.js +1 -1
- package/dist/node_modules/refractor/lang/smarty.js.map +1 -1
- package/dist/node_modules/refractor/lang/sml.js +1 -1
- package/dist/node_modules/refractor/lang/sml.js.map +1 -1
- package/dist/node_modules/refractor/lang/solidity.js +1 -1
- package/dist/node_modules/refractor/lang/solidity.js.map +1 -1
- package/dist/node_modules/refractor/lang/solution-file.js +1 -1
- package/dist/node_modules/refractor/lang/solution-file.js.map +1 -1
- package/dist/node_modules/refractor/lang/soy.js +1 -1
- package/dist/node_modules/refractor/lang/soy.js.map +1 -1
- package/dist/node_modules/refractor/lang/sparql.js +1 -1
- package/dist/node_modules/refractor/lang/sparql.js.map +1 -1
- package/dist/node_modules/refractor/lang/splunk-spl.js +1 -1
- package/dist/node_modules/refractor/lang/splunk-spl.js.map +1 -1
- package/dist/node_modules/refractor/lang/sqf.js +1 -1
- package/dist/node_modules/refractor/lang/sqf.js.map +1 -1
- package/dist/node_modules/refractor/lang/sql.js +1 -1
- package/dist/node_modules/refractor/lang/sql.js.map +1 -1
- package/dist/node_modules/refractor/lang/squirrel.js +1 -1
- package/dist/node_modules/refractor/lang/squirrel.js.map +1 -1
- package/dist/node_modules/refractor/lang/stan.js +1 -1
- package/dist/node_modules/refractor/lang/stan.js.map +1 -1
- package/dist/node_modules/refractor/lang/stylus.js +1 -1
- package/dist/node_modules/refractor/lang/stylus.js.map +1 -1
- package/dist/node_modules/refractor/lang/swift.js +1 -1
- package/dist/node_modules/refractor/lang/swift.js.map +1 -1
- package/dist/node_modules/refractor/lang/systemd.js +1 -1
- package/dist/node_modules/refractor/lang/systemd.js.map +1 -1
- package/dist/node_modules/refractor/lang/t4-cs.js +1 -1
- package/dist/node_modules/refractor/lang/t4-cs.js.map +1 -1
- package/dist/node_modules/refractor/lang/t4-templating.js +1 -1
- package/dist/node_modules/refractor/lang/t4-templating.js.map +1 -1
- package/dist/node_modules/refractor/lang/t4-vb.js +1 -1
- package/dist/node_modules/refractor/lang/t4-vb.js.map +1 -1
- package/dist/node_modules/refractor/lang/tap.js +1 -1
- package/dist/node_modules/refractor/lang/tap.js.map +1 -1
- package/dist/node_modules/refractor/lang/tcl.js +1 -1
- package/dist/node_modules/refractor/lang/tcl.js.map +1 -1
- package/dist/node_modules/refractor/lang/textile.js +1 -1
- package/dist/node_modules/refractor/lang/textile.js.map +1 -1
- package/dist/node_modules/refractor/lang/toml.js +1 -1
- package/dist/node_modules/refractor/lang/toml.js.map +1 -1
- package/dist/node_modules/refractor/lang/tremor.js +1 -1
- package/dist/node_modules/refractor/lang/tremor.js.map +1 -1
- package/dist/node_modules/refractor/lang/tsx.js +1 -1
- package/dist/node_modules/refractor/lang/tsx.js.map +1 -1
- package/dist/node_modules/refractor/lang/tt2.js +1 -1
- package/dist/node_modules/refractor/lang/tt2.js.map +1 -1
- package/dist/node_modules/refractor/lang/turtle.js +1 -1
- package/dist/node_modules/refractor/lang/turtle.js.map +1 -1
- package/dist/node_modules/refractor/lang/twig.js +1 -1
- package/dist/node_modules/refractor/lang/twig.js.map +1 -1
- package/dist/node_modules/refractor/lang/typescript.js +1 -1
- package/dist/node_modules/refractor/lang/typescript.js.map +1 -1
- package/dist/node_modules/refractor/lang/typoscript.js +1 -1
- package/dist/node_modules/refractor/lang/typoscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/unrealscript.js +1 -1
- package/dist/node_modules/refractor/lang/unrealscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/uorazor.js +1 -1
- package/dist/node_modules/refractor/lang/uorazor.js.map +1 -1
- package/dist/node_modules/refractor/lang/uri.js +1 -1
- package/dist/node_modules/refractor/lang/uri.js.map +1 -1
- package/dist/node_modules/refractor/lang/v.js +1 -1
- package/dist/node_modules/refractor/lang/v.js.map +1 -1
- package/dist/node_modules/refractor/lang/vala.js +1 -1
- package/dist/node_modules/refractor/lang/vala.js.map +1 -1
- package/dist/node_modules/refractor/lang/vbnet.js +1 -1
- package/dist/node_modules/refractor/lang/vbnet.js.map +1 -1
- package/dist/node_modules/refractor/lang/velocity.js +1 -1
- package/dist/node_modules/refractor/lang/velocity.js.map +1 -1
- package/dist/node_modules/refractor/lang/verilog.js +1 -1
- package/dist/node_modules/refractor/lang/verilog.js.map +1 -1
- package/dist/node_modules/refractor/lang/vhdl.js +1 -1
- package/dist/node_modules/refractor/lang/vhdl.js.map +1 -1
- package/dist/node_modules/refractor/lang/vim.js +1 -1
- package/dist/node_modules/refractor/lang/vim.js.map +1 -1
- package/dist/node_modules/refractor/lang/visual-basic.js +1 -1
- package/dist/node_modules/refractor/lang/visual-basic.js.map +1 -1
- package/dist/node_modules/refractor/lang/warpscript.js +1 -1
- package/dist/node_modules/refractor/lang/warpscript.js.map +1 -1
- package/dist/node_modules/refractor/lang/wasm.js +1 -1
- package/dist/node_modules/refractor/lang/wasm.js.map +1 -1
- package/dist/node_modules/refractor/lang/web-idl.js +1 -1
- package/dist/node_modules/refractor/lang/web-idl.js.map +1 -1
- package/dist/node_modules/refractor/lang/wiki.js +1 -1
- package/dist/node_modules/refractor/lang/wiki.js.map +1 -1
- package/dist/node_modules/refractor/lang/wolfram.js +1 -1
- package/dist/node_modules/refractor/lang/wolfram.js.map +1 -1
- package/dist/node_modules/refractor/lang/wren.js +1 -1
- package/dist/node_modules/refractor/lang/wren.js.map +1 -1
- package/dist/node_modules/refractor/lang/xeora.js +1 -1
- package/dist/node_modules/refractor/lang/xeora.js.map +1 -1
- package/dist/node_modules/refractor/lang/xml-doc.js +1 -1
- package/dist/node_modules/refractor/lang/xml-doc.js.map +1 -1
- package/dist/node_modules/refractor/lang/xojo.js +1 -1
- package/dist/node_modules/refractor/lang/xojo.js.map +1 -1
- package/dist/node_modules/refractor/lang/xquery.js +1 -1
- package/dist/node_modules/refractor/lang/xquery.js.map +1 -1
- package/dist/node_modules/refractor/lang/yaml.js +1 -1
- package/dist/node_modules/refractor/lang/yaml.js.map +1 -1
- package/dist/node_modules/refractor/lang/yang.js +1 -1
- package/dist/node_modules/refractor/lang/yang.js.map +1 -1
- package/dist/node_modules/refractor/lang/zig.js +1 -1
- package/dist/node_modules/refractor/lang/zig.js.map +1 -1
- package/dist/node_modules/refractor/node_modules/prismjs/components/prism-core.js +1 -1
- package/dist/node_modules/refractor/node_modules/prismjs/components/prism-core.js.map +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js +1 -1
- package/dist/node_modules/rope-sequence/dist/index.js.map +1 -1
- package/dist/node_modules/space-separated-tokens/index.js +1 -1
- package/dist/node_modules/space-separated-tokens/index.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/node_modules/w3c-keyname/index.js +1 -1
- package/dist/node_modules/w3c-keyname/index.js.map +1 -1
- package/dist/node_modules/xtend/immutable.js +1 -1
- package/dist/node_modules/xtend/immutable.js.map +1 -1
- package/dist/src/components/forms/ActionDropdown.js +1 -1
- package/dist/src/components/forms/AnimatedBox.js +1 -1
- package/dist/src/components/forms/DateInput.js +1 -1
- package/dist/src/components/forms/DateInput.js.map +1 -1
- package/dist/src/components/forms/DateTimeInput.js +1 -1
- package/dist/src/components/forms/DateTimeInput.js.map +1 -1
- package/dist/src/components/forms/DropFile.js +1 -1
- package/dist/src/components/forms/DropFile.js.map +1 -1
- package/dist/src/components/forms/EmailList.js +1 -1
- package/dist/src/components/forms/EmailList.js.map +1 -1
- package/dist/src/components/forms/FilterArray.js +1 -1
- package/dist/src/components/forms/FilterArray.js.map +1 -1
- package/dist/src/components/forms/FilterBy.js +1 -1
- package/dist/src/components/forms/FilterObjects.js +1 -1
- package/dist/src/components/forms/FilterObjects.js.map +1 -1
- package/dist/src/components/forms/FormError.js +1 -1
- package/dist/src/components/forms/FormError.js.map +1 -1
- package/dist/src/components/forms/HandleError.js +1 -1
- package/dist/src/components/forms/HandleError.js.map +1 -1
- package/dist/src/components/forms/Logout.js +1 -1
- package/dist/src/components/forms/Logout.js.map +1 -1
- package/dist/src/components/forms/MessageDisplay.js +1 -1
- package/dist/src/components/forms/MessageDisplay.js.map +1 -1
- package/dist/src/components/forms/MultipleEmail.js +1 -1
- package/dist/src/components/forms/MultipleEmail.js.map +1 -1
- package/dist/src/components/forms/PageLoading.js +1 -1
- package/dist/src/components/forms/PageLoading.js.map +1 -1
- package/dist/src/components/forms/PasswordField.js +1 -1
- package/dist/src/components/forms/PhoneNumberInput.js +1 -1
- package/dist/src/components/forms/PhoneNumberInput.js.map +1 -1
- package/dist/src/components/forms/RadioField.js +1 -1
- package/dist/src/components/forms/RadioField.js.map +1 -1
- package/dist/src/components/forms/RadioSimple.js +1 -1
- package/dist/src/components/forms/RadioSimple.js.map +1 -1
- package/dist/src/components/forms/ReactTimeAgo.js +1 -1
- package/dist/src/components/forms/ReactTimeAgo.js.map +1 -1
- package/dist/src/components/forms/ReadTermsAndCondition.js +1 -1
- package/dist/src/components/forms/ReadTermsAndCondition.js.map +1 -1
- package/dist/src/components/forms/SearchField.js +1 -1
- package/dist/src/components/forms/SearchField.js.map +1 -1
- package/dist/src/components/forms/StepProgressBar.js +1 -1
- package/dist/src/components/forms/StepProgressBar.js.map +1 -1
- package/dist/src/components/forms/SubmitBtn.js +1 -1
- package/dist/src/components/forms/Tables.js +1 -1
- package/dist/src/components/forms/Tables.js.map +1 -1
- package/dist/src/components/forms/TextArea.js +1 -1
- package/dist/src/components/forms/TextArea.js.map +1 -1
- package/dist/src/components/forms/TextField.js +1 -1
- package/dist/src/components/forms/Tooltip.js +1 -1
- package/dist/src/components/forms/Tooltip.js.map +1 -1
- package/dist/src/components/forms/UnsplashRandomImage.js +1 -1
- package/dist/src/components/forms/UnsplashRandomImage.js.map +1 -1
- package/dist/src/components/forms/uploads/FileUploader.js +1 -1
- package/dist/src/components/forms/uploads/FileUploader.js.map +1 -1
- package/dist/src/components/forms/uploads/IhubFileUploader.js +1 -1
- package/dist/src/components/lib/auth/actions.js +1 -1
- package/dist/src/components/lib/auth/dbRequestst.js +1 -1
- package/dist/src/components/lib/auth/dbRequestst.js.map +1 -1
- package/dist/src/components/lib/format.js +1 -1
- package/dist/src/components/lib/format.js.map +1 -1
- package/dist/src/components/lib/helpFunction.js +1 -1
- package/dist/src/components/lib/helpFunction.js.map +1 -1
- package/dist/src/components/lib/index.js +1 -1
- package/dist/src/components/lib/json/accounts.js +1 -1
- package/dist/src/components/lib/json/accounts.js.map +1 -1
- package/dist/src/components/lib/json/countryObjects.js +1 -1
- package/dist/src/components/lib/json/countryObjects.js.map +1 -1
- package/dist/src/components/lib/json/unsplashDefaultObject.js +1 -1
- package/dist/src/components/lib/json/unsplashDefaultObject.js.map +1 -1
- package/dist/src/components/lib/modals.js +1 -1
- package/dist/src/components/lib/modals.js.map +1 -1
- package/dist/src/components/lib/oauth_json.js +1 -1
- package/dist/src/components/lib/oauth_json.js.map +1 -1
- package/dist/src/components/lib/paystack.js +1 -1
- package/dist/src/components/lib/paystack.js.map +1 -1
- package/dist/src/components/lib/permissions.js +1 -1
- package/dist/src/components/lib/permissions.js.map +1 -1
- package/dist/src/components/lib/utils.js +1 -1
- package/dist/src/components/lib/utils.js.map +1 -1
- package/dist/src/components/status/TimeTracker.js +1 -1
- package/dist/src/components/theme/ChangeStyleVariable.js +1 -1
- package/dist/src/components/theme/DarkModeProvider.js +1 -1
- package/dist/src/components/theme/LoadingAnimate.js +1 -1
- package/dist/src/components/theme/LoadingAnimate.js.map +1 -1
- package/dist/src/components/theme/SessionProviders.js +1 -1
- package/dist/src/components/theme/signout/SessionExpiresLogout.js +1 -1
- package/dist/src/components/theme/signout/SignOutSession.js +1 -1
- package/dist/src/components/ui/editor/CustomTextEditor.js +1 -1
- package/dist/src/components/ui/editor/MenuBar.js +1 -1
- package/dist/src/components/ui/viewer/CodeDisplay.js +1 -1
- package/dist/src/components/ui/viewer/ContentViewOrEdit.js +1 -1
- package/dist/src/components/ui/viewer/ContentViewer.js +1 -1
- package/dist/src/index-types.js +1 -1
- package/dist/src/index-types.js.map +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=function(e){return e.toLowerCase()};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){return e.toLowerCase()};exports.default=e;
|
|
2
2
|
//# sourceMappingURL=normalize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize.js","sources":["../../../node_modules/property-information/normalize.js"],"sourcesContent":["'use strict'\n\nmodule.exports = normalize\n\nfunction normalize(value) {\n return value.toLowerCase()\n}\n"],"names":["normalize_1","value","toLowerCase"],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalize.js","sources":["../../../node_modules/property-information/normalize.js"],"sourcesContent":["'use strict'\n\nmodule.exports = normalize\n\nfunction normalize(value) {\n return value.toLowerCase()\n}\n"],"names":["normalize_1","value","toLowerCase"],"mappings":"oEAEA,IAAAA,EAEA,SAAmBC,GACjB,OAAOA,EAAMC,aACf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../prosemirror-transform/dist/index.js"),t=require("../../prosemirror-model/dist/index.js"),o=require("../../prosemirror-state/dist/index.js");function n(e,t){let{$cursor:o}=e.selection;return!o||(t?!t.endOfTextblock("backward",e):o.parentOffset>0)?null:o}function r(n,r,l){let i=r.nodeBefore,c=r.pos-1;for(;!i.isTextblock;c--){if(i.type.spec.isolating)return!1;let e=i.lastChild;if(!e)return!1;i=e}let s=r.nodeAfter,p=r.pos+1;for(;!s.isTextblock;p++){if(s.type.spec.isolating)return!1;let e=s.firstChild;if(!e)return!1;s=e}let f=e.replaceStep(n.doc,c,p,t.Slice.empty);if(!f||f.from!=c||f instanceof e.ReplaceStep&&f.slice.size>=p-c)return!1;if(l){let e=n.tr.step(f);e.setSelection(o.TextSelection.create(e.doc,c)),l(e.scrollIntoView())}return!0}function l(e,t,o=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(o&&1!=n.childCount)return!1}return!1}function i(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function c(e,t){let{$cursor:o}=e.selection;return!o||(t?!t.endOfTextblock("forward",e):o.parentOffset<o.parent.content.size)?null:o}function s(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let o=e.node(t);if(e.index(t)+1<o.childCount)return e.doc.resolve(e.after(t+1));if(o.type.spec.isolating)break}return null}function p(e){for(let t=0;t<e.edgeCount;t++){let{type:o}=e.edge(t);if(o.isTextblock&&!o.hasRequiredAttrs())return o}return null}function f(n,r,i,c){let s,p,f=r.nodeBefore,a=r.nodeAfter,d=f.type.spec.isolating||a.type.spec.isolating;if(!d&&function(t,o,n){let r=o.nodeBefore,l=o.nodeAfter,i=o.index();return!(!(r&&l&&r.type.compatibleContent(l.type))||(!r.content.size&&o.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(o.pos-r.nodeSize,o.pos).scrollIntoView()),0):!o.parent.canReplace(i,i+1)||!l.isTextblock&&!e.canJoin(t.doc,o.pos)||(n&&n(t.tr.join(o.pos).scrollIntoView()),0)))}(n,r,i))return!0;let u=!d&&r.parent.canReplace(r.index(),r.index()+1);if(u&&(s=(p=f.contentMatchAt(f.childCount)).findWrapping(a.type))&&p.matchType(s[0]||a.type).validEnd){if(i){let o=r.pos+a.nodeSize,l=t.Fragment.empty;for(let e=s.length-1;e>=0;e--)l=t.Fragment.from(s[e].create(null,l));l=t.Fragment.from(f.copy(l));let c=n.tr.step(new e.ReplaceAroundStep(r.pos-1,o,r.pos,o,new t.Slice(l,1,0),s.length,!0)),p=c.doc.resolve(o+2*s.length);p.nodeAfter&&p.nodeAfter.type==f.type&&e.canJoin(c.doc,p.pos)&&c.join(p.pos),i(c.scrollIntoView())}return!0}let x=a.type.spec.isolating||c>0&&d?null:o.Selection.findFrom(r,1),S=x&&x.$from.blockRange(x.$to),m=S&&e.liftTarget(S);if(null!=m&&m>=r.depth)return i&&i(n.tr.lift(S,m).scrollIntoView()),!0;if(u&&l(a,"start",!0)&&l(f,"end")){let o=f,l=[];for(;l.push(o),!o.isTextblock;)o=o.lastChild;let c=a,s=1;for(;!c.isTextblock;c=c.firstChild)s++;if(o.canReplace(o.childCount,o.childCount,c.content)){if(i){let o=t.Fragment.empty;for(let e=l.length-1;e>=0;e--)o=t.Fragment.from(l[e].copy(o));i(n.tr.step(new e.ReplaceAroundStep(r.pos-l.length,r.pos+a.nodeSize,r.pos+s,r.pos+a.nodeSize-s,new t.Slice(o,l.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function a(e){return function(t,n){let r=t.selection,l=e<0?r.$from:r.$to,i=l.depth;for(;l.node(i).isInline;){if(!i)return!1;i--}return!!l.node(i).isTextblock&&(n&&n(t.tr.setSelection(o.TextSelection.create(t.doc,e<0?l.start(i):l.end(i)))),!0)}}const d=a(-1),u=a(1);"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&os.platform&&os.platform(),exports.createParagraphNear=(e,t)=>{let n=e.selection,{$from:r,$to:l}=n;if(n instanceof o.AllSelection||r.parent.inlineContent||l.parent.inlineContent)return!1;let i=p(l.parent.contentMatchAt(l.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!r.parentOffset&&l.index()<l.parent.childCount?r:l).pos,c=e.tr.insert(n,i.createAndFill());c.setSelection(o.TextSelection.create(c.doc,n+1)),t(c.scrollIntoView())}return!0},exports.deleteSelection=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0),exports.exitCode=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let l=n.node(-1),i=n.indexAfter(-1),c=p(l.contentMatchAt(i));if(!c||!l.canReplaceWith(i,i,c))return!1;if(t){let r=n.after(),l=e.tr.replaceWith(r,r,c.createAndFill());l.setSelection(o.Selection.near(l.doc.resolve(r),1)),t(l.scrollIntoView())}return!0},exports.joinBackward=(r,c,s)=>{let p=n(r,s);if(!p)return!1;let a=i(p);if(!a){let t=p.blockRange(),o=t&&e.liftTarget(t);return null!=o&&(c&&c(r.tr.lift(t,o).scrollIntoView()),!0)}let d=a.nodeBefore;if(f(r,a,c,-1))return!0;if(0==p.parent.content.size&&(l(d,"end")||o.NodeSelection.isSelectable(d)))for(let n=p.depth;;n--){let i=e.replaceStep(r.doc,p.before(n),p.after(n),t.Slice.empty);if(i&&i.slice.size<i.to-i.from){if(c){let e=r.tr.step(i);e.setSelection(l(d,"end")?o.Selection.findFrom(e.doc.resolve(e.mapping.map(a.pos,-1)),-1):o.NodeSelection.create(e.doc,a.pos-d.nodeSize)),c(e.scrollIntoView())}return!0}if(1==n||p.node(n-1).childCount>1)break}return!(!d.isAtom||a.depth!=p.depth-1)&&(c&&c(r.tr.delete(a.pos-d.nodeSize,a.pos).scrollIntoView()),!0)},exports.joinDown=(t,n)=>{let r,l=t.selection;if(l instanceof o.NodeSelection){if(l.node.isTextblock||!e.canJoin(t.doc,l.to))return!1;r=l.to}else if(r=e.joinPoint(t.doc,l.to,1),null==r)return!1;return n&&n(t.tr.join(r).scrollIntoView()),!0},exports.joinForward=(n,r,i)=>{let p=c(n,i);if(!p)return!1;let a=s(p);if(!a)return!1;let d=a.nodeAfter;if(f(n,a,r,1))return!0;if(0==p.parent.content.size&&(l(d,"start")||o.NodeSelection.isSelectable(d))){let i=e.replaceStep(n.doc,p.before(),p.after(),t.Slice.empty);if(i&&i.slice.size<i.to-i.from){if(r){let e=n.tr.step(i);e.setSelection(l(d,"start")?o.Selection.findFrom(e.doc.resolve(e.mapping.map(a.pos)),1):o.NodeSelection.create(e.doc,e.mapping.map(a.pos))),r(e.scrollIntoView())}return!0}}return!(!d.isAtom||a.depth!=p.depth-1)&&(r&&r(n.tr.delete(a.pos,a.pos+d.nodeSize).scrollIntoView()),!0)},exports.joinTextblockBackward=(e,t,o)=>{let l=n(e,o);if(!l)return!1;let c=i(l);return!!c&&r(e,c,t)},exports.joinTextblockForward=(e,t,o)=>{let n=c(e,o);if(!n)return!1;let l=s(n);return!!l&&r(e,l,t)},exports.joinUp=(t,n)=>{let r,l=t.selection,i=l instanceof o.NodeSelection;if(i){if(l.node.isTextblock||!e.canJoin(t.doc,l.from))return!1;r=l.from}else if(r=e.joinPoint(t.doc,l.from,-1),null==r)return!1;if(n){let e=t.tr.join(r);i&&e.setSelection(o.NodeSelection.create(e.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),n(e.scrollIntoView())}return!0},exports.lift=(t,o)=>{let{$from:n,$to:r}=t.selection,l=n.blockRange(r),i=l&&e.liftTarget(l);return null!=i&&(o&&o(t.tr.lift(l,i).scrollIntoView()),!0)},exports.liftEmptyBlock=(t,o)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(e.canSplit(t.doc,r))return o&&o(t.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),l=r&&e.liftTarget(r);return null!=l&&(o&&o(t.tr.lift(r,l).scrollIntoView()),!0)},exports.newlineInCode=(e,t)=>{let{$head:o,$anchor:n}=e.selection;return!(!o.parent.type.spec.code||!o.sameParent(n))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)},exports.selectNodeBackward=(e,t,n)=>{let{$head:r,empty:l}=e.selection,c=r;if(!l)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;c=i(r)}let s=c&&c.nodeBefore;return!(!s||!o.NodeSelection.isSelectable(s))&&(t&&t(e.tr.setSelection(o.NodeSelection.create(e.doc,c.pos-s.nodeSize)).scrollIntoView()),!0)},exports.selectNodeForward=(e,t,n)=>{let{$head:r,empty:l}=e.selection,i=r;if(!l)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=s(r)}let c=i&&i.nodeAfter;return!(!c||!o.NodeSelection.isSelectable(c))&&(t&&t(e.tr.setSelection(o.NodeSelection.create(e.doc,i.pos)).scrollIntoView()),!0)},exports.selectParentNode=(e,t)=>{let n,{$from:r,to:l}=e.selection,i=r.sharedDepth(l);return 0!=i&&(n=r.before(i),t&&t(e.tr.setSelection(o.NodeSelection.create(e.doc,n))),!0)},exports.selectTextblockEnd=u,exports.selectTextblockStart=d,exports.setBlockType=function(e,t=null){return function(o,n){let r=!1;for(let n=0;n<o.selection.ranges.length&&!r;n++){let{$from:{pos:l},$to:{pos:i}}=o.selection.ranges[n];o.doc.nodesBetween(l,i,((n,l)=>{if(r)return!1;if(n.isTextblock&&!n.hasMarkup(e,t))if(n.type==e)r=!0;else{let t=o.doc.resolve(l),n=t.index();r=t.parent.canReplaceWith(n,n+1,e)}}))}if(!r)return!1;if(n){let r=o.tr;for(let n=0;n<o.selection.ranges.length;n++){let{$from:{pos:l},$to:{pos:i}}=o.selection.ranges[n];r.setBlockType(l,i,e,t)}n(r.scrollIntoView())}return!0}},exports.wrapIn=function(t,o=null){return function(n,r){let{$from:l,$to:i}=n.selection,c=l.blockRange(i),s=c&&e.findWrapping(c,t,o);return!!s&&(r&&r(n.tr.wrap(c,s).scrollIntoView()),!0)}};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/prosemirror-commands/dist/index.js"],"sourcesContent":["import { liftTarget, replaceStep, ReplaceStep, canJoin, joinPoint, canSplit, ReplaceAroundStep, findWrapping } from 'prosemirror-transform';\nimport { Slice, Fragment } from 'prosemirror-model';\nimport { NodeSelection, Selection, TextSelection, AllSelection, SelectionRange } from 'prosemirror-state';\n\n/**\nDelete the selection, if there is one.\n*/\nconst deleteSelection = (state, dispatch) => {\n if (state.selection.empty)\n return false;\n if (dispatch)\n dispatch(state.tr.deleteSelection().scrollIntoView());\n return true;\n};\nfunction atBlockStart(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"backward\", state)\n : $cursor.parentOffset > 0))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and at the start of a textblock, try to\nreduce the distance between that block and the one before it—if\nthere's a block directly before it that can be joined, join them.\nIf not, try to move the selected block closer to the next one in\nthe document structure by lifting it out of its parent or moving it\ninto a parent of the previous block. Will use the view for accurate\n(bidi-aware) start-of-textblock detection if given.\n*/\nconst joinBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n // If there is no node before this, try to lift\n if (!$cut) {\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n let before = $cut.nodeBefore;\n // Apply the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, -1))\n return true;\n // If the node below has no content and the node above is\n // selectable, delete the node below and select the one above.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(before, \"end\") || NodeSelection.isSelectable(before))) {\n for (let depth = $cursor.depth;; depth--) {\n let delStep = replaceStep(state.doc, $cursor.before(depth), $cursor.after(depth), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(before, \"end\")\n ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos, -1)), -1)\n : NodeSelection.create(tr.doc, $cut.pos - before.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n if (depth == 1 || $cursor.node(depth - 1).childCount > 1)\n break;\n }\n }\n // If the node before is an atom, delete it\n if (before.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos - before.nodeSize, $cut.pos).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nA more limited form of [`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward)\nthat only tries to join the current textblock to the one before\nit, if the cursor is at the start of a textblock.\n*/\nconst joinTextblockBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\n/**\nA more limited form of [`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward)\nthat only tries to join the current textblock to the one after\nit, if the cursor is at the end of a textblock.\n*/\nconst joinTextblockForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\nfunction joinTextblocksAround(state, $cut, dispatch) {\n let before = $cut.nodeBefore, beforeText = before, beforePos = $cut.pos - 1;\n for (; !beforeText.isTextblock; beforePos--) {\n if (beforeText.type.spec.isolating)\n return false;\n let child = beforeText.lastChild;\n if (!child)\n return false;\n beforeText = child;\n }\n let after = $cut.nodeAfter, afterText = after, afterPos = $cut.pos + 1;\n for (; !afterText.isTextblock; afterPos++) {\n if (afterText.type.spec.isolating)\n return false;\n let child = afterText.firstChild;\n if (!child)\n return false;\n afterText = child;\n }\n let step = replaceStep(state.doc, beforePos, afterPos, Slice.empty);\n if (!step || step.from != beforePos ||\n step instanceof ReplaceStep && step.slice.size >= afterPos - beforePos)\n return false;\n if (dispatch) {\n let tr = state.tr.step(step);\n tr.setSelection(TextSelection.create(tr.doc, beforePos));\n dispatch(tr.scrollIntoView());\n }\n return true;\n}\nfunction textblockAt(node, side, only = false) {\n for (let scan = node; scan; scan = (side == \"start\" ? scan.firstChild : scan.lastChild)) {\n if (scan.isTextblock)\n return true;\n if (only && scan.childCount != 1)\n return false;\n }\n return false;\n}\n/**\nWhen the selection is empty and at the start of a textblock, select\nthe node before that textblock, if possible. This is intended to be\nbound to keys like backspace, after\n[`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward) or other deleting\ncommands, as a fall-back behavior when the schema doesn't allow\ndeletion at the selected point.\n*/\nconst selectNodeBackward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"backward\", state) : $head.parentOffset > 0)\n return false;\n $cut = findCutBefore($head);\n }\n let node = $cut && $cut.nodeBefore;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos - node.nodeSize)).scrollIntoView());\n return true;\n};\nfunction findCutBefore($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n if ($pos.index(i) > 0)\n return $pos.doc.resolve($pos.before(i + 1));\n if ($pos.node(i).type.spec.isolating)\n break;\n }\n return null;\n}\nfunction atBlockEnd(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"forward\", state)\n : $cursor.parentOffset < $cursor.parent.content.size))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and the cursor is at the end of a\ntextblock, try to reduce or remove the boundary between that block\nand the one after it, either by joining them or by moving the other\nblock closer to this one in the tree structure. Will use the view\nfor accurate start-of-textblock detection if given.\n*/\nconst joinForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n // If there is no node after this, there's nothing to do\n if (!$cut)\n return false;\n let after = $cut.nodeAfter;\n // Try the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, 1))\n return true;\n // If the node above has no content and the node below is\n // selectable, delete the node above and select the one below.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(after, \"start\") || NodeSelection.isSelectable(after))) {\n let delStep = replaceStep(state.doc, $cursor.before(), $cursor.after(), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(after, \"start\") ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos)), 1)\n : NodeSelection.create(tr.doc, tr.mapping.map($cut.pos)));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n // If the next node is an atom, delete it\n if (after.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos, $cut.pos + after.nodeSize).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nWhen the selection is empty and at the end of a textblock, select\nthe node coming after that textblock, if possible. This is intended\nto be bound to keys like delete, after\n[`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward) and similar deleting\ncommands, to provide a fall-back behavior when the schema doesn't\nallow deletion at the selected point.\n*/\nconst selectNodeForward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"forward\", state) : $head.parentOffset < $head.parent.content.size)\n return false;\n $cut = findCutAfter($head);\n }\n let node = $cut && $cut.nodeAfter;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos)).scrollIntoView());\n return true;\n};\nfunction findCutAfter($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n let parent = $pos.node(i);\n if ($pos.index(i) + 1 < parent.childCount)\n return $pos.doc.resolve($pos.after(i + 1));\n if (parent.type.spec.isolating)\n break;\n }\n return null;\n}\n/**\nJoin the selected block or, if there is a text selection, the\nclosest ancestor block of the selection that can be joined, with\nthe sibling above it.\n*/\nconst joinUp = (state, dispatch) => {\n let sel = state.selection, nodeSel = sel instanceof NodeSelection, point;\n if (nodeSel) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.from))\n return false;\n point = sel.from;\n }\n else {\n point = joinPoint(state.doc, sel.from, -1);\n if (point == null)\n return false;\n }\n if (dispatch) {\n let tr = state.tr.join(point);\n if (nodeSel)\n tr.setSelection(NodeSelection.create(tr.doc, point - state.doc.resolve(point).nodeBefore.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nJoin the selected block, or the closest ancestor of the selection\nthat can be joined, with the sibling after it.\n*/\nconst joinDown = (state, dispatch) => {\n let sel = state.selection, point;\n if (sel instanceof NodeSelection) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.to))\n return false;\n point = sel.to;\n }\n else {\n point = joinPoint(state.doc, sel.to, 1);\n if (point == null)\n return false;\n }\n if (dispatch)\n dispatch(state.tr.join(point).scrollIntoView());\n return true;\n};\n/**\nLift the selected block, or the closest ancestor block of the\nselection that can be lifted, out of its parent node.\n*/\nconst lift = (state, dispatch) => {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nIf the selection is in a node whose type has a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, replace the\nselection with a newline character.\n*/\nconst newlineInCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n if (dispatch)\n dispatch(state.tr.insertText(\"\\n\").scrollIntoView());\n return true;\n};\nfunction defaultBlockAt(match) {\n for (let i = 0; i < match.edgeCount; i++) {\n let { type } = match.edge(i);\n if (type.isTextblock && !type.hasRequiredAttrs())\n return type;\n }\n return null;\n}\n/**\nWhen the selection is in a node with a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, create a\ndefault block after the code block, and move the cursor there.\n*/\nconst exitCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n let above = $head.node(-1), after = $head.indexAfter(-1), type = defaultBlockAt(above.contentMatchAt(after));\n if (!type || !above.canReplaceWith(after, after, type))\n return false;\n if (dispatch) {\n let pos = $head.after(), tr = state.tr.replaceWith(pos, pos, type.createAndFill());\n tr.setSelection(Selection.near(tr.doc.resolve(pos), 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf a block node is selected, create an empty paragraph before (if\nit is its parent's first child) or after it.\n*/\nconst createParagraphNear = (state, dispatch) => {\n let sel = state.selection, { $from, $to } = sel;\n if (sel instanceof AllSelection || $from.parent.inlineContent || $to.parent.inlineContent)\n return false;\n let type = defaultBlockAt($to.parent.contentMatchAt($to.indexAfter()));\n if (!type || !type.isTextblock)\n return false;\n if (dispatch) {\n let side = (!$from.parentOffset && $to.index() < $to.parent.childCount ? $from : $to).pos;\n let tr = state.tr.insert(side, type.createAndFill());\n tr.setSelection(TextSelection.create(tr.doc, side + 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf the cursor is in an empty textblock that can be lifted, lift the\nblock.\n*/\nconst liftEmptyBlock = (state, dispatch) => {\n let { $cursor } = state.selection;\n if (!$cursor || $cursor.parent.content.size)\n return false;\n if ($cursor.depth > 1 && $cursor.after() != $cursor.end(-1)) {\n let before = $cursor.before();\n if (canSplit(state.doc, before)) {\n if (dispatch)\n dispatch(state.tr.split(before).scrollIntoView());\n return true;\n }\n }\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nCreate a variant of [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock) that uses\na custom function to determine the type of the newly split off block.\n*/\nfunction splitBlockAs(splitNode) {\n return (state, dispatch) => {\n let { $from, $to } = state.selection;\n if (state.selection instanceof NodeSelection && state.selection.node.isBlock) {\n if (!$from.parentOffset || !canSplit(state.doc, $from.pos))\n return false;\n if (dispatch)\n dispatch(state.tr.split($from.pos).scrollIntoView());\n return true;\n }\n if (!$from.depth)\n return false;\n let types = [];\n let splitDepth, deflt, atEnd = false, atStart = false;\n for (let d = $from.depth;; d--) {\n let node = $from.node(d);\n if (node.isBlock) {\n atEnd = $from.end(d) == $from.pos + ($from.depth - d);\n atStart = $from.start(d) == $from.pos - ($from.depth - d);\n deflt = defaultBlockAt($from.node(d - 1).contentMatchAt($from.indexAfter(d - 1)));\n let splitType = splitNode && splitNode($to.parent, atEnd, $from);\n types.unshift(splitType || (atEnd && deflt ? { type: deflt } : null));\n splitDepth = d;\n break;\n }\n else {\n if (d == 1)\n return false;\n types.unshift(null);\n }\n }\n let tr = state.tr;\n if (state.selection instanceof TextSelection || state.selection instanceof AllSelection)\n tr.deleteSelection();\n let splitPos = tr.mapping.map($from.pos);\n let can = canSplit(tr.doc, splitPos, types.length, types);\n if (!can) {\n types[0] = deflt ? { type: deflt } : null;\n can = canSplit(tr.doc, splitPos, types.length, types);\n }\n tr.split(splitPos, types.length, types);\n if (!atEnd && atStart && $from.node(splitDepth).type != deflt) {\n let first = tr.mapping.map($from.before(splitDepth)), $first = tr.doc.resolve(first);\n if (deflt && $from.node(splitDepth - 1).canReplaceWith($first.index(), $first.index() + 1, deflt))\n tr.setNodeMarkup(tr.mapping.map($from.before(splitDepth)), deflt);\n }\n if (dispatch)\n dispatch(tr.scrollIntoView());\n return true;\n };\n}\n/**\nSplit the parent block of the selection. If the selection is a text\nselection, also delete its content.\n*/\nconst splitBlock = splitBlockAs();\n/**\nActs like [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock), but without\nresetting the set of active marks at the cursor.\n*/\nconst splitBlockKeepMarks = (state, dispatch) => {\n return splitBlock(state, dispatch && (tr => {\n let marks = state.storedMarks || (state.selection.$to.parentOffset && state.selection.$from.marks());\n if (marks)\n tr.ensureMarks(marks);\n dispatch(tr);\n }));\n};\n/**\nMove the selection to the node wrapping the current selection, if\nany. (Will not select the document node.)\n*/\nconst selectParentNode = (state, dispatch) => {\n let { $from, to } = state.selection, pos;\n let same = $from.sharedDepth(to);\n if (same == 0)\n return false;\n pos = $from.before(same);\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, pos)));\n return true;\n};\n/**\nSelect the whole document.\n*/\nconst selectAll = (state, dispatch) => {\n if (dispatch)\n dispatch(state.tr.setSelection(new AllSelection(state.doc)));\n return true;\n};\nfunction joinMaybeClear(state, $pos, dispatch) {\n let before = $pos.nodeBefore, after = $pos.nodeAfter, index = $pos.index();\n if (!before || !after || !before.type.compatibleContent(after.type))\n return false;\n if (!before.content.size && $pos.parent.canReplace(index - 1, index)) {\n if (dispatch)\n dispatch(state.tr.delete($pos.pos - before.nodeSize, $pos.pos).scrollIntoView());\n return true;\n }\n if (!$pos.parent.canReplace(index, index + 1) || !(after.isTextblock || canJoin(state.doc, $pos.pos)))\n return false;\n if (dispatch)\n dispatch(state.tr.join($pos.pos).scrollIntoView());\n return true;\n}\nfunction deleteBarrier(state, $cut, dispatch, dir) {\n let before = $cut.nodeBefore, after = $cut.nodeAfter, conn, match;\n let isolated = before.type.spec.isolating || after.type.spec.isolating;\n if (!isolated && joinMaybeClear(state, $cut, dispatch))\n return true;\n let canDelAfter = !isolated && $cut.parent.canReplace($cut.index(), $cut.index() + 1);\n if (canDelAfter &&\n (conn = (match = before.contentMatchAt(before.childCount)).findWrapping(after.type)) &&\n match.matchType(conn[0] || after.type).validEnd) {\n if (dispatch) {\n let end = $cut.pos + after.nodeSize, wrap = Fragment.empty;\n for (let i = conn.length - 1; i >= 0; i--)\n wrap = Fragment.from(conn[i].create(null, wrap));\n wrap = Fragment.from(before.copy(wrap));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - 1, end, $cut.pos, end, new Slice(wrap, 1, 0), conn.length, true));\n let $joinAt = tr.doc.resolve(end + 2 * conn.length);\n if ($joinAt.nodeAfter && $joinAt.nodeAfter.type == before.type &&\n canJoin(tr.doc, $joinAt.pos))\n tr.join($joinAt.pos);\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n let selAfter = after.type.spec.isolating || (dir > 0 && isolated) ? null : Selection.findFrom($cut, 1);\n let range = selAfter && selAfter.$from.blockRange(selAfter.$to), target = range && liftTarget(range);\n if (target != null && target >= $cut.depth) {\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n if (canDelAfter && textblockAt(after, \"start\", true) && textblockAt(before, \"end\")) {\n let at = before, wrap = [];\n for (;;) {\n wrap.push(at);\n if (at.isTextblock)\n break;\n at = at.lastChild;\n }\n let afterText = after, afterDepth = 1;\n for (; !afterText.isTextblock; afterText = afterText.firstChild)\n afterDepth++;\n if (at.canReplace(at.childCount, at.childCount, afterText.content)) {\n if (dispatch) {\n let end = Fragment.empty;\n for (let i = wrap.length - 1; i >= 0; i--)\n end = Fragment.from(wrap[i].copy(end));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - wrap.length, $cut.pos + after.nodeSize, $cut.pos + afterDepth, $cut.pos + after.nodeSize - afterDepth, new Slice(end, wrap.length, 0), 0, true));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n return false;\n}\nfunction selectTextblockSide(side) {\n return function (state, dispatch) {\n let sel = state.selection, $pos = side < 0 ? sel.$from : sel.$to;\n let depth = $pos.depth;\n while ($pos.node(depth).isInline) {\n if (!depth)\n return false;\n depth--;\n }\n if (!$pos.node(depth).isTextblock)\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(TextSelection.create(state.doc, side < 0 ? $pos.start(depth) : $pos.end(depth))));\n return true;\n };\n}\n/**\nMoves the cursor to the start of current text block.\n*/\nconst selectTextblockStart = selectTextblockSide(-1);\n/**\nMoves the cursor to the end of current text block.\n*/\nconst selectTextblockEnd = selectTextblockSide(1);\n// Parameterized commands\n/**\nWrap the selection in a node of the given type with the given\nattributes.\n*/\nfunction wrapIn(nodeType, attrs = null) {\n return function (state, dispatch) {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), wrapping = range && findWrapping(range, nodeType, attrs);\n if (!wrapping)\n return false;\n if (dispatch)\n dispatch(state.tr.wrap(range, wrapping).scrollIntoView());\n return true;\n };\n}\n/**\nReturns a command that tries to set the selected textblocks to the\ngiven node type with the given attributes.\n*/\nfunction setBlockType(nodeType, attrs = null) {\n return function (state, dispatch) {\n let applicable = false;\n for (let i = 0; i < state.selection.ranges.length && !applicable; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n state.doc.nodesBetween(from, to, (node, pos) => {\n if (applicable)\n return false;\n if (!node.isTextblock || node.hasMarkup(nodeType, attrs))\n return;\n if (node.type == nodeType) {\n applicable = true;\n }\n else {\n let $pos = state.doc.resolve(pos), index = $pos.index();\n applicable = $pos.parent.canReplaceWith(index, index + 1, nodeType);\n }\n });\n }\n if (!applicable)\n return false;\n if (dispatch) {\n let tr = state.tr;\n for (let i = 0; i < state.selection.ranges.length; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n tr.setBlockType(from, to, nodeType, attrs);\n }\n dispatch(tr.scrollIntoView());\n }\n return true;\n };\n}\nfunction markApplies(doc, ranges, type, enterAtoms) {\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false;\n doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (can || !enterAtoms && node.isAtom && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos)\n return false;\n can = node.inlineContent && node.type.allowsMarkType(type);\n });\n if (can)\n return true;\n }\n return false;\n}\nfunction removeInlineAtoms(ranges) {\n let result = [];\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n $from.doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (node.isAtom && node.content.size && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos) {\n if (pos + 1 > $from.pos)\n result.push(new SelectionRange($from, $from.doc.resolve(pos + 1)));\n $from = $from.doc.resolve(pos + 1 + node.content.size);\n return false;\n }\n });\n if ($from.pos < $to.pos)\n result.push(new SelectionRange($from, $to));\n }\n return result;\n}\n/**\nCreate a command function that toggles the given mark with the\ngiven attributes. Will return `false` when the current selection\ndoesn't support that mark. This will remove the mark if any marks\nof that type exist in the selection, or add it otherwise. If the\nselection is empty, this applies to the [stored\nmarks](https://prosemirror.net/docs/ref/#state.EditorState.storedMarks) instead of a range of the\ndocument.\n*/\nfunction toggleMark(markType, attrs = null, options) {\n let removeWhenPresent = (options && options.removeWhenPresent) !== false;\n let enterAtoms = (options && options.enterInlineAtoms) !== false;\n let dropSpace = !(options && options.includeWhitespace);\n return function (state, dispatch) {\n let { empty, $cursor, ranges } = state.selection;\n if ((empty && !$cursor) || !markApplies(state.doc, ranges, markType, enterAtoms))\n return false;\n if (dispatch) {\n if ($cursor) {\n if (markType.isInSet(state.storedMarks || $cursor.marks()))\n dispatch(state.tr.removeStoredMark(markType));\n else\n dispatch(state.tr.addStoredMark(markType.create(attrs)));\n }\n else {\n let add, tr = state.tr;\n if (!enterAtoms)\n ranges = removeInlineAtoms(ranges);\n if (removeWhenPresent) {\n add = !ranges.some(r => state.doc.rangeHasMark(r.$from.pos, r.$to.pos, markType));\n }\n else {\n add = !ranges.every(r => {\n let missing = false;\n tr.doc.nodesBetween(r.$from.pos, r.$to.pos, (node, pos, parent) => {\n if (missing)\n return false;\n missing = !markType.isInSet(node.marks) && !!parent && parent.type.allowsMarkType(markType) &&\n !(node.isText && /^\\s*$/.test(node.textBetween(Math.max(0, r.$from.pos - pos), Math.min(node.nodeSize, r.$to.pos - pos))));\n });\n return !missing;\n });\n }\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n if (!add) {\n tr.removeMark($from.pos, $to.pos, markType);\n }\n else {\n let from = $from.pos, to = $to.pos, start = $from.nodeAfter, end = $to.nodeBefore;\n let spaceStart = dropSpace && start && start.isText ? /^\\s*/.exec(start.text)[0].length : 0;\n let spaceEnd = dropSpace && end && end.isText ? /\\s*$/.exec(end.text)[0].length : 0;\n if (from + spaceStart < to) {\n from += spaceStart;\n to -= spaceEnd;\n }\n tr.addMark(from, to, markType.create(attrs));\n }\n }\n dispatch(tr.scrollIntoView());\n }\n }\n return true;\n };\n}\nfunction wrapDispatchForJoin(dispatch, isJoinable) {\n return (tr) => {\n if (!tr.isGeneric)\n return dispatch(tr);\n let ranges = [];\n for (let i = 0; i < tr.mapping.maps.length; i++) {\n let map = tr.mapping.maps[i];\n for (let j = 0; j < ranges.length; j++)\n ranges[j] = map.map(ranges[j]);\n map.forEach((_s, _e, from, to) => ranges.push(from, to));\n }\n // Figure out which joinable points exist inside those ranges,\n // by checking all node boundaries in their parent nodes.\n let joinable = [];\n for (let i = 0; i < ranges.length; i += 2) {\n let from = ranges[i], to = ranges[i + 1];\n let $from = tr.doc.resolve(from), depth = $from.sharedDepth(to), parent = $from.node(depth);\n for (let index = $from.indexAfter(depth), pos = $from.after(depth + 1); pos <= to; ++index) {\n let after = parent.maybeChild(index);\n if (!after)\n break;\n if (index && joinable.indexOf(pos) == -1) {\n let before = parent.child(index - 1);\n if (before.type == after.type && isJoinable(before, after))\n joinable.push(pos);\n }\n pos += after.nodeSize;\n }\n }\n // Join the joinable points\n joinable.sort((a, b) => a - b);\n for (let i = joinable.length - 1; i >= 0; i--) {\n if (canJoin(tr.doc, joinable[i]))\n tr.join(joinable[i]);\n }\n dispatch(tr);\n };\n}\n/**\nWrap a command so that, when it produces a transform that causes\ntwo joinable nodes to end up next to each other, those are joined.\nNodes are considered joinable when they are of the same type and\nwhen the `isJoinable` predicate returns true for them or, if an\narray of strings was passed, if their node type name is in that\narray.\n*/\nfunction autoJoin(command, isJoinable) {\n let canJoin = Array.isArray(isJoinable) ? (node) => isJoinable.indexOf(node.type.name) > -1\n : isJoinable;\n return (state, dispatch, view) => command(state, dispatch && wrapDispatchForJoin(dispatch, canJoin), view);\n}\n/**\nCombine a number of command functions into a single function (which\ncalls them one by one until one returns true).\n*/\nfunction chainCommands(...commands) {\n return function (state, dispatch, view) {\n for (let i = 0; i < commands.length; i++)\n if (commands[i](state, dispatch, view))\n return true;\n return false;\n };\n}\nlet backspace = chainCommands(deleteSelection, joinBackward, selectNodeBackward);\nlet del = chainCommands(deleteSelection, joinForward, selectNodeForward);\n/**\nA basic keymap containing bindings not specific to any schema.\nBinds the following keys (when multiple commands are listed, they\nare chained with [`chainCommands`](https://prosemirror.net/docs/ref/#commands.chainCommands)):\n\n* **Enter** to `newlineInCode`, `createParagraphNear`, `liftEmptyBlock`, `splitBlock`\n* **Mod-Enter** to `exitCode`\n* **Backspace** and **Mod-Backspace** to `deleteSelection`, `joinBackward`, `selectNodeBackward`\n* **Delete** and **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-a** to `selectAll`\n*/\nconst pcBaseKeymap = {\n \"Enter\": chainCommands(newlineInCode, createParagraphNear, liftEmptyBlock, splitBlock),\n \"Mod-Enter\": exitCode,\n \"Backspace\": backspace,\n \"Mod-Backspace\": backspace,\n \"Shift-Backspace\": backspace,\n \"Delete\": del,\n \"Mod-Delete\": del,\n \"Mod-a\": selectAll\n};\n/**\nA copy of `pcBaseKeymap` that also binds **Ctrl-h** like Backspace,\n**Ctrl-d** like Delete, **Alt-Backspace** like Ctrl-Backspace, and\n**Ctrl-Alt-Backspace**, **Alt-Delete**, and **Alt-d** like\nCtrl-Delete.\n*/\nconst macBaseKeymap = {\n \"Ctrl-h\": pcBaseKeymap[\"Backspace\"],\n \"Alt-Backspace\": pcBaseKeymap[\"Mod-Backspace\"],\n \"Ctrl-d\": pcBaseKeymap[\"Delete\"],\n \"Ctrl-Alt-Backspace\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-Delete\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-d\": pcBaseKeymap[\"Mod-Delete\"],\n \"Ctrl-a\": selectTextblockStart,\n \"Ctrl-e\": selectTextblockEnd\n};\nfor (let key in pcBaseKeymap)\n macBaseKeymap[key] = pcBaseKeymap[key];\nconst mac = typeof navigator != \"undefined\" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform)\n // @ts-ignore\n : typeof os != \"undefined\" && os.platform ? os.platform() == \"darwin\" : false;\n/**\nDepending on the detected platform, this will hold\n[`pcBasekeymap`](https://prosemirror.net/docs/ref/#commands.pcBaseKeymap) or\n[`macBaseKeymap`](https://prosemirror.net/docs/ref/#commands.macBaseKeymap).\n*/\nconst baseKeymap = mac ? macBaseKeymap : pcBaseKeymap;\n\nexport { autoJoin, baseKeymap, chainCommands, createParagraphNear, deleteSelection, exitCode, joinBackward, joinDown, joinForward, joinTextblockBackward, joinTextblockForward, joinUp, lift, liftEmptyBlock, macBaseKeymap, newlineInCode, pcBaseKeymap, selectAll, selectNodeBackward, selectNodeForward, selectParentNode, selectTextblockEnd, selectTextblockStart, setBlockType, splitBlock, splitBlockAs, splitBlockKeepMarks, toggleMark, wrapIn };\n"],"names":["deleteSelection","state","dispatch","selection","empty","tr","scrollIntoView","atBlockStart","view","$cursor","endOfTextblock","parentOffset","joinBackward","$cut","findCutBefore","range","blockRange","target","liftTarget","lift","before","nodeBefore","deleteBarrier","parent","content","size","textblockAt","NodeSelection","isSelectable","depth","delStep","replaceStep","doc","after","Slice","slice","to","from","step","setSelection","Selection","findFrom","resolve","mapping","map","pos","create","nodeSize","node","childCount","isAtom","delete","joinTextblockBackward","joinTextblocksAround","joinTextblockForward","atBlockEnd","findCutAfter","beforeText","beforePos","isTextblock","type","spec","isolating","child","lastChild","afterText","nodeAfter","afterPos","firstChild","ReplaceStep","TextSelection","side","only","scan","selectNodeBackward","$head","$pos","i","index","joinForward","selectNodeForward","joinUp","point","sel","nodeSel","canJoin","joinPoint","join","joinDown","$from","$to","newlineInCode","$anchor","code","sameParent","insertText","defaultBlockAt","match","edgeCount","edge","hasRequiredAttrs","exitCode","above","indexAfter","contentMatchAt","canReplaceWith","replaceWith","createAndFill","near","createParagraphNear","AllSelection","inlineContent","insert","liftEmptyBlock","end","canSplit","split","selectParentNode","same","sharedDepth","dir","conn","isolated","compatibleContent","canReplace","joinMaybeClear","canDelAfter","findWrapping","matchType","validEnd","wrap","Fragment","length","copy","ReplaceAroundStep","$joinAt","selAfter","at","push","afterDepth","selectTextblockSide","isInline","start","selectTextblockStart","selectTextblockEnd","wrapIn","nodeType","attrs","wrapping","setBlockType","applicable","ranges","nodesBetween","hasMarkup","navigator","test","platform","os"],"mappings":"kYAOK,MAACA,EAAkB,CAACC,EAAOC,KACxBD,EAAME,UAAUC,QAEhBF,GACAA,EAASD,EAAMI,GAAGL,kBAAkBM,mBACjC,GAEX,SAASC,EAAaN,EAAOO,GACzB,IAAIC,QAAEA,GAAYR,EAAME,UACxB,OAAKM,IAAYD,GAAQA,EAAKE,eAAe,WAAYT,GACnDQ,EAAQE,aAAe,GAClB,KACJF,CACX,CAUK,MAACG,EAAe,CAACX,EAAOC,EAAUM,KACnC,IAAIC,EAAUF,EAAaN,EAAOO,GAClC,IAAKC,EACD,OAAO,EACX,IAAII,EAAOC,EAAcL,GAEzB,IAAKI,EAAM,CACP,IAAIE,EAAQN,EAAQO,aAAcC,EAASF,GAASG,EAAWH,GAC/D,OAAc,MAAVE,IAEAf,GACAA,EAASD,EAAMI,GAAGc,KAAKJ,EAAOE,GAAQX,mBACnC,EACV,CACD,IAAIc,EAASP,EAAKQ,WAElB,GAAIC,EAAcrB,EAAOY,EAAMX,GAAW,GACtC,OAAO,EAGX,GA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A,OAAO,EACX,GAAKtG,EAAKW,cAAeX,EAAKyG,UAAUP,EAAUC,GAElD,GAAInG,EAAKY,MAAQsF,EACbI,GAAa,MAEZ,CACD,IAAI1E,EAAO3E,EAAM+B,IAAIU,QAAQG,GAAMiC,EAAQF,EAAKE,QAChDwE,EAAa1E,EAAKrD,OAAOkF,eAAe3B,EAAOA,EAAQ,EAAGoE,EAC7D,IAER,CACD,IAAKI,EACD,OAAO,EACX,GAAIpJ,EAAU,CACV,IAAIG,EAAKJ,EAAMI,GACf,IAAK,IAAIwE,EAAI,EAAGA,EAAI5E,EAAME,UAAUoJ,OAAOnB,OAAQvD,IAAK,CACpD,IAAMY,OAAS5C,IAAKR,GAAQqD,KAAO7C,IAAKT,IAASnC,EAAME,UAAUoJ,OAAO1E,GACxExE,EAAGgJ,aAAahH,EAAMD,EAAI8G,EAAUC,EACvC,CACDjJ,EAASG,EAAGC,iBACf,CACD,OAAO,CACf,CACA,CA0MgC,oBAAboJ,UAA2B,qBAAqBC,KAAKD,UAAUE,UAE/D,oBAANC,IAAqBA,GAAGD,UAAWC,GAAGD"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/prosemirror-commands/dist/index.js"],"sourcesContent":["import { liftTarget, replaceStep, ReplaceStep, canJoin, joinPoint, canSplit, ReplaceAroundStep, findWrapping } from 'prosemirror-transform';\nimport { Slice, Fragment } from 'prosemirror-model';\nimport { NodeSelection, Selection, TextSelection, AllSelection, SelectionRange } from 'prosemirror-state';\n\n/**\nDelete the selection, if there is one.\n*/\nconst deleteSelection = (state, dispatch) => {\n if (state.selection.empty)\n return false;\n if (dispatch)\n dispatch(state.tr.deleteSelection().scrollIntoView());\n return true;\n};\nfunction atBlockStart(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"backward\", state)\n : $cursor.parentOffset > 0))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and at the start of a textblock, try to\nreduce the distance between that block and the one before it—if\nthere's a block directly before it that can be joined, join them.\nIf not, try to move the selected block closer to the next one in\nthe document structure by lifting it out of its parent or moving it\ninto a parent of the previous block. Will use the view for accurate\n(bidi-aware) start-of-textblock detection if given.\n*/\nconst joinBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n // If there is no node before this, try to lift\n if (!$cut) {\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n let before = $cut.nodeBefore;\n // Apply the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, -1))\n return true;\n // If the node below has no content and the node above is\n // selectable, delete the node below and select the one above.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(before, \"end\") || NodeSelection.isSelectable(before))) {\n for (let depth = $cursor.depth;; depth--) {\n let delStep = replaceStep(state.doc, $cursor.before(depth), $cursor.after(depth), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(before, \"end\")\n ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos, -1)), -1)\n : NodeSelection.create(tr.doc, $cut.pos - before.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n if (depth == 1 || $cursor.node(depth - 1).childCount > 1)\n break;\n }\n }\n // If the node before is an atom, delete it\n if (before.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos - before.nodeSize, $cut.pos).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nA more limited form of [`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward)\nthat only tries to join the current textblock to the one before\nit, if the cursor is at the start of a textblock.\n*/\nconst joinTextblockBackward = (state, dispatch, view) => {\n let $cursor = atBlockStart(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutBefore($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\n/**\nA more limited form of [`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward)\nthat only tries to join the current textblock to the one after\nit, if the cursor is at the end of a textblock.\n*/\nconst joinTextblockForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n return $cut ? joinTextblocksAround(state, $cut, dispatch) : false;\n};\nfunction joinTextblocksAround(state, $cut, dispatch) {\n let before = $cut.nodeBefore, beforeText = before, beforePos = $cut.pos - 1;\n for (; !beforeText.isTextblock; beforePos--) {\n if (beforeText.type.spec.isolating)\n return false;\n let child = beforeText.lastChild;\n if (!child)\n return false;\n beforeText = child;\n }\n let after = $cut.nodeAfter, afterText = after, afterPos = $cut.pos + 1;\n for (; !afterText.isTextblock; afterPos++) {\n if (afterText.type.spec.isolating)\n return false;\n let child = afterText.firstChild;\n if (!child)\n return false;\n afterText = child;\n }\n let step = replaceStep(state.doc, beforePos, afterPos, Slice.empty);\n if (!step || step.from != beforePos ||\n step instanceof ReplaceStep && step.slice.size >= afterPos - beforePos)\n return false;\n if (dispatch) {\n let tr = state.tr.step(step);\n tr.setSelection(TextSelection.create(tr.doc, beforePos));\n dispatch(tr.scrollIntoView());\n }\n return true;\n}\nfunction textblockAt(node, side, only = false) {\n for (let scan = node; scan; scan = (side == \"start\" ? scan.firstChild : scan.lastChild)) {\n if (scan.isTextblock)\n return true;\n if (only && scan.childCount != 1)\n return false;\n }\n return false;\n}\n/**\nWhen the selection is empty and at the start of a textblock, select\nthe node before that textblock, if possible. This is intended to be\nbound to keys like backspace, after\n[`joinBackward`](https://prosemirror.net/docs/ref/#commands.joinBackward) or other deleting\ncommands, as a fall-back behavior when the schema doesn't allow\ndeletion at the selected point.\n*/\nconst selectNodeBackward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"backward\", state) : $head.parentOffset > 0)\n return false;\n $cut = findCutBefore($head);\n }\n let node = $cut && $cut.nodeBefore;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos - node.nodeSize)).scrollIntoView());\n return true;\n};\nfunction findCutBefore($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n if ($pos.index(i) > 0)\n return $pos.doc.resolve($pos.before(i + 1));\n if ($pos.node(i).type.spec.isolating)\n break;\n }\n return null;\n}\nfunction atBlockEnd(state, view) {\n let { $cursor } = state.selection;\n if (!$cursor || (view ? !view.endOfTextblock(\"forward\", state)\n : $cursor.parentOffset < $cursor.parent.content.size))\n return null;\n return $cursor;\n}\n/**\nIf the selection is empty and the cursor is at the end of a\ntextblock, try to reduce or remove the boundary between that block\nand the one after it, either by joining them or by moving the other\nblock closer to this one in the tree structure. Will use the view\nfor accurate start-of-textblock detection if given.\n*/\nconst joinForward = (state, dispatch, view) => {\n let $cursor = atBlockEnd(state, view);\n if (!$cursor)\n return false;\n let $cut = findCutAfter($cursor);\n // If there is no node after this, there's nothing to do\n if (!$cut)\n return false;\n let after = $cut.nodeAfter;\n // Try the joining algorithm\n if (deleteBarrier(state, $cut, dispatch, 1))\n return true;\n // If the node above has no content and the node below is\n // selectable, delete the node above and select the one below.\n if ($cursor.parent.content.size == 0 &&\n (textblockAt(after, \"start\") || NodeSelection.isSelectable(after))) {\n let delStep = replaceStep(state.doc, $cursor.before(), $cursor.after(), Slice.empty);\n if (delStep && delStep.slice.size < delStep.to - delStep.from) {\n if (dispatch) {\n let tr = state.tr.step(delStep);\n tr.setSelection(textblockAt(after, \"start\") ? Selection.findFrom(tr.doc.resolve(tr.mapping.map($cut.pos)), 1)\n : NodeSelection.create(tr.doc, tr.mapping.map($cut.pos)));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n // If the next node is an atom, delete it\n if (after.isAtom && $cut.depth == $cursor.depth - 1) {\n if (dispatch)\n dispatch(state.tr.delete($cut.pos, $cut.pos + after.nodeSize).scrollIntoView());\n return true;\n }\n return false;\n};\n/**\nWhen the selection is empty and at the end of a textblock, select\nthe node coming after that textblock, if possible. This is intended\nto be bound to keys like delete, after\n[`joinForward`](https://prosemirror.net/docs/ref/#commands.joinForward) and similar deleting\ncommands, to provide a fall-back behavior when the schema doesn't\nallow deletion at the selected point.\n*/\nconst selectNodeForward = (state, dispatch, view) => {\n let { $head, empty } = state.selection, $cut = $head;\n if (!empty)\n return false;\n if ($head.parent.isTextblock) {\n if (view ? !view.endOfTextblock(\"forward\", state) : $head.parentOffset < $head.parent.content.size)\n return false;\n $cut = findCutAfter($head);\n }\n let node = $cut && $cut.nodeAfter;\n if (!node || !NodeSelection.isSelectable(node))\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, $cut.pos)).scrollIntoView());\n return true;\n};\nfunction findCutAfter($pos) {\n if (!$pos.parent.type.spec.isolating)\n for (let i = $pos.depth - 1; i >= 0; i--) {\n let parent = $pos.node(i);\n if ($pos.index(i) + 1 < parent.childCount)\n return $pos.doc.resolve($pos.after(i + 1));\n if (parent.type.spec.isolating)\n break;\n }\n return null;\n}\n/**\nJoin the selected block or, if there is a text selection, the\nclosest ancestor block of the selection that can be joined, with\nthe sibling above it.\n*/\nconst joinUp = (state, dispatch) => {\n let sel = state.selection, nodeSel = sel instanceof NodeSelection, point;\n if (nodeSel) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.from))\n return false;\n point = sel.from;\n }\n else {\n point = joinPoint(state.doc, sel.from, -1);\n if (point == null)\n return false;\n }\n if (dispatch) {\n let tr = state.tr.join(point);\n if (nodeSel)\n tr.setSelection(NodeSelection.create(tr.doc, point - state.doc.resolve(point).nodeBefore.nodeSize));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nJoin the selected block, or the closest ancestor of the selection\nthat can be joined, with the sibling after it.\n*/\nconst joinDown = (state, dispatch) => {\n let sel = state.selection, point;\n if (sel instanceof NodeSelection) {\n if (sel.node.isTextblock || !canJoin(state.doc, sel.to))\n return false;\n point = sel.to;\n }\n else {\n point = joinPoint(state.doc, sel.to, 1);\n if (point == null)\n return false;\n }\n if (dispatch)\n dispatch(state.tr.join(point).scrollIntoView());\n return true;\n};\n/**\nLift the selected block, or the closest ancestor block of the\nselection that can be lifted, out of its parent node.\n*/\nconst lift = (state, dispatch) => {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nIf the selection is in a node whose type has a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, replace the\nselection with a newline character.\n*/\nconst newlineInCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n if (dispatch)\n dispatch(state.tr.insertText(\"\\n\").scrollIntoView());\n return true;\n};\nfunction defaultBlockAt(match) {\n for (let i = 0; i < match.edgeCount; i++) {\n let { type } = match.edge(i);\n if (type.isTextblock && !type.hasRequiredAttrs())\n return type;\n }\n return null;\n}\n/**\nWhen the selection is in a node with a truthy\n[`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) property in its spec, create a\ndefault block after the code block, and move the cursor there.\n*/\nconst exitCode = (state, dispatch) => {\n let { $head, $anchor } = state.selection;\n if (!$head.parent.type.spec.code || !$head.sameParent($anchor))\n return false;\n let above = $head.node(-1), after = $head.indexAfter(-1), type = defaultBlockAt(above.contentMatchAt(after));\n if (!type || !above.canReplaceWith(after, after, type))\n return false;\n if (dispatch) {\n let pos = $head.after(), tr = state.tr.replaceWith(pos, pos, type.createAndFill());\n tr.setSelection(Selection.near(tr.doc.resolve(pos), 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf a block node is selected, create an empty paragraph before (if\nit is its parent's first child) or after it.\n*/\nconst createParagraphNear = (state, dispatch) => {\n let sel = state.selection, { $from, $to } = sel;\n if (sel instanceof AllSelection || $from.parent.inlineContent || $to.parent.inlineContent)\n return false;\n let type = defaultBlockAt($to.parent.contentMatchAt($to.indexAfter()));\n if (!type || !type.isTextblock)\n return false;\n if (dispatch) {\n let side = (!$from.parentOffset && $to.index() < $to.parent.childCount ? $from : $to).pos;\n let tr = state.tr.insert(side, type.createAndFill());\n tr.setSelection(TextSelection.create(tr.doc, side + 1));\n dispatch(tr.scrollIntoView());\n }\n return true;\n};\n/**\nIf the cursor is in an empty textblock that can be lifted, lift the\nblock.\n*/\nconst liftEmptyBlock = (state, dispatch) => {\n let { $cursor } = state.selection;\n if (!$cursor || $cursor.parent.content.size)\n return false;\n if ($cursor.depth > 1 && $cursor.after() != $cursor.end(-1)) {\n let before = $cursor.before();\n if (canSplit(state.doc, before)) {\n if (dispatch)\n dispatch(state.tr.split(before).scrollIntoView());\n return true;\n }\n }\n let range = $cursor.blockRange(), target = range && liftTarget(range);\n if (target == null)\n return false;\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n};\n/**\nCreate a variant of [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock) that uses\na custom function to determine the type of the newly split off block.\n*/\nfunction splitBlockAs(splitNode) {\n return (state, dispatch) => {\n let { $from, $to } = state.selection;\n if (state.selection instanceof NodeSelection && state.selection.node.isBlock) {\n if (!$from.parentOffset || !canSplit(state.doc, $from.pos))\n return false;\n if (dispatch)\n dispatch(state.tr.split($from.pos).scrollIntoView());\n return true;\n }\n if (!$from.depth)\n return false;\n let types = [];\n let splitDepth, deflt, atEnd = false, atStart = false;\n for (let d = $from.depth;; d--) {\n let node = $from.node(d);\n if (node.isBlock) {\n atEnd = $from.end(d) == $from.pos + ($from.depth - d);\n atStart = $from.start(d) == $from.pos - ($from.depth - d);\n deflt = defaultBlockAt($from.node(d - 1).contentMatchAt($from.indexAfter(d - 1)));\n let splitType = splitNode && splitNode($to.parent, atEnd, $from);\n types.unshift(splitType || (atEnd && deflt ? { type: deflt } : null));\n splitDepth = d;\n break;\n }\n else {\n if (d == 1)\n return false;\n types.unshift(null);\n }\n }\n let tr = state.tr;\n if (state.selection instanceof TextSelection || state.selection instanceof AllSelection)\n tr.deleteSelection();\n let splitPos = tr.mapping.map($from.pos);\n let can = canSplit(tr.doc, splitPos, types.length, types);\n if (!can) {\n types[0] = deflt ? { type: deflt } : null;\n can = canSplit(tr.doc, splitPos, types.length, types);\n }\n tr.split(splitPos, types.length, types);\n if (!atEnd && atStart && $from.node(splitDepth).type != deflt) {\n let first = tr.mapping.map($from.before(splitDepth)), $first = tr.doc.resolve(first);\n if (deflt && $from.node(splitDepth - 1).canReplaceWith($first.index(), $first.index() + 1, deflt))\n tr.setNodeMarkup(tr.mapping.map($from.before(splitDepth)), deflt);\n }\n if (dispatch)\n dispatch(tr.scrollIntoView());\n return true;\n };\n}\n/**\nSplit the parent block of the selection. If the selection is a text\nselection, also delete its content.\n*/\nconst splitBlock = splitBlockAs();\n/**\nActs like [`splitBlock`](https://prosemirror.net/docs/ref/#commands.splitBlock), but without\nresetting the set of active marks at the cursor.\n*/\nconst splitBlockKeepMarks = (state, dispatch) => {\n return splitBlock(state, dispatch && (tr => {\n let marks = state.storedMarks || (state.selection.$to.parentOffset && state.selection.$from.marks());\n if (marks)\n tr.ensureMarks(marks);\n dispatch(tr);\n }));\n};\n/**\nMove the selection to the node wrapping the current selection, if\nany. (Will not select the document node.)\n*/\nconst selectParentNode = (state, dispatch) => {\n let { $from, to } = state.selection, pos;\n let same = $from.sharedDepth(to);\n if (same == 0)\n return false;\n pos = $from.before(same);\n if (dispatch)\n dispatch(state.tr.setSelection(NodeSelection.create(state.doc, pos)));\n return true;\n};\n/**\nSelect the whole document.\n*/\nconst selectAll = (state, dispatch) => {\n if (dispatch)\n dispatch(state.tr.setSelection(new AllSelection(state.doc)));\n return true;\n};\nfunction joinMaybeClear(state, $pos, dispatch) {\n let before = $pos.nodeBefore, after = $pos.nodeAfter, index = $pos.index();\n if (!before || !after || !before.type.compatibleContent(after.type))\n return false;\n if (!before.content.size && $pos.parent.canReplace(index - 1, index)) {\n if (dispatch)\n dispatch(state.tr.delete($pos.pos - before.nodeSize, $pos.pos).scrollIntoView());\n return true;\n }\n if (!$pos.parent.canReplace(index, index + 1) || !(after.isTextblock || canJoin(state.doc, $pos.pos)))\n return false;\n if (dispatch)\n dispatch(state.tr.join($pos.pos).scrollIntoView());\n return true;\n}\nfunction deleteBarrier(state, $cut, dispatch, dir) {\n let before = $cut.nodeBefore, after = $cut.nodeAfter, conn, match;\n let isolated = before.type.spec.isolating || after.type.spec.isolating;\n if (!isolated && joinMaybeClear(state, $cut, dispatch))\n return true;\n let canDelAfter = !isolated && $cut.parent.canReplace($cut.index(), $cut.index() + 1);\n if (canDelAfter &&\n (conn = (match = before.contentMatchAt(before.childCount)).findWrapping(after.type)) &&\n match.matchType(conn[0] || after.type).validEnd) {\n if (dispatch) {\n let end = $cut.pos + after.nodeSize, wrap = Fragment.empty;\n for (let i = conn.length - 1; i >= 0; i--)\n wrap = Fragment.from(conn[i].create(null, wrap));\n wrap = Fragment.from(before.copy(wrap));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - 1, end, $cut.pos, end, new Slice(wrap, 1, 0), conn.length, true));\n let $joinAt = tr.doc.resolve(end + 2 * conn.length);\n if ($joinAt.nodeAfter && $joinAt.nodeAfter.type == before.type &&\n canJoin(tr.doc, $joinAt.pos))\n tr.join($joinAt.pos);\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n let selAfter = after.type.spec.isolating || (dir > 0 && isolated) ? null : Selection.findFrom($cut, 1);\n let range = selAfter && selAfter.$from.blockRange(selAfter.$to), target = range && liftTarget(range);\n if (target != null && target >= $cut.depth) {\n if (dispatch)\n dispatch(state.tr.lift(range, target).scrollIntoView());\n return true;\n }\n if (canDelAfter && textblockAt(after, \"start\", true) && textblockAt(before, \"end\")) {\n let at = before, wrap = [];\n for (;;) {\n wrap.push(at);\n if (at.isTextblock)\n break;\n at = at.lastChild;\n }\n let afterText = after, afterDepth = 1;\n for (; !afterText.isTextblock; afterText = afterText.firstChild)\n afterDepth++;\n if (at.canReplace(at.childCount, at.childCount, afterText.content)) {\n if (dispatch) {\n let end = Fragment.empty;\n for (let i = wrap.length - 1; i >= 0; i--)\n end = Fragment.from(wrap[i].copy(end));\n let tr = state.tr.step(new ReplaceAroundStep($cut.pos - wrap.length, $cut.pos + after.nodeSize, $cut.pos + afterDepth, $cut.pos + after.nodeSize - afterDepth, new Slice(end, wrap.length, 0), 0, true));\n dispatch(tr.scrollIntoView());\n }\n return true;\n }\n }\n return false;\n}\nfunction selectTextblockSide(side) {\n return function (state, dispatch) {\n let sel = state.selection, $pos = side < 0 ? sel.$from : sel.$to;\n let depth = $pos.depth;\n while ($pos.node(depth).isInline) {\n if (!depth)\n return false;\n depth--;\n }\n if (!$pos.node(depth).isTextblock)\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(TextSelection.create(state.doc, side < 0 ? $pos.start(depth) : $pos.end(depth))));\n return true;\n };\n}\n/**\nMoves the cursor to the start of current text block.\n*/\nconst selectTextblockStart = selectTextblockSide(-1);\n/**\nMoves the cursor to the end of current text block.\n*/\nconst selectTextblockEnd = selectTextblockSide(1);\n// Parameterized commands\n/**\nWrap the selection in a node of the given type with the given\nattributes.\n*/\nfunction wrapIn(nodeType, attrs = null) {\n return function (state, dispatch) {\n let { $from, $to } = state.selection;\n let range = $from.blockRange($to), wrapping = range && findWrapping(range, nodeType, attrs);\n if (!wrapping)\n return false;\n if (dispatch)\n dispatch(state.tr.wrap(range, wrapping).scrollIntoView());\n return true;\n };\n}\n/**\nReturns a command that tries to set the selected textblocks to the\ngiven node type with the given attributes.\n*/\nfunction setBlockType(nodeType, attrs = null) {\n return function (state, dispatch) {\n let applicable = false;\n for (let i = 0; i < state.selection.ranges.length && !applicable; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n state.doc.nodesBetween(from, to, (node, pos) => {\n if (applicable)\n return false;\n if (!node.isTextblock || node.hasMarkup(nodeType, attrs))\n return;\n if (node.type == nodeType) {\n applicable = true;\n }\n else {\n let $pos = state.doc.resolve(pos), index = $pos.index();\n applicable = $pos.parent.canReplaceWith(index, index + 1, nodeType);\n }\n });\n }\n if (!applicable)\n return false;\n if (dispatch) {\n let tr = state.tr;\n for (let i = 0; i < state.selection.ranges.length; i++) {\n let { $from: { pos: from }, $to: { pos: to } } = state.selection.ranges[i];\n tr.setBlockType(from, to, nodeType, attrs);\n }\n dispatch(tr.scrollIntoView());\n }\n return true;\n };\n}\nfunction markApplies(doc, ranges, type, enterAtoms) {\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false;\n doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (can || !enterAtoms && node.isAtom && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos)\n return false;\n can = node.inlineContent && node.type.allowsMarkType(type);\n });\n if (can)\n return true;\n }\n return false;\n}\nfunction removeInlineAtoms(ranges) {\n let result = [];\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n $from.doc.nodesBetween($from.pos, $to.pos, (node, pos) => {\n if (node.isAtom && node.content.size && node.isInline && pos >= $from.pos && pos + node.nodeSize <= $to.pos) {\n if (pos + 1 > $from.pos)\n result.push(new SelectionRange($from, $from.doc.resolve(pos + 1)));\n $from = $from.doc.resolve(pos + 1 + node.content.size);\n return false;\n }\n });\n if ($from.pos < $to.pos)\n result.push(new SelectionRange($from, $to));\n }\n return result;\n}\n/**\nCreate a command function that toggles the given mark with the\ngiven attributes. Will return `false` when the current selection\ndoesn't support that mark. This will remove the mark if any marks\nof that type exist in the selection, or add it otherwise. If the\nselection is empty, this applies to the [stored\nmarks](https://prosemirror.net/docs/ref/#state.EditorState.storedMarks) instead of a range of the\ndocument.\n*/\nfunction toggleMark(markType, attrs = null, options) {\n let removeWhenPresent = (options && options.removeWhenPresent) !== false;\n let enterAtoms = (options && options.enterInlineAtoms) !== false;\n let dropSpace = !(options && options.includeWhitespace);\n return function (state, dispatch) {\n let { empty, $cursor, ranges } = state.selection;\n if ((empty && !$cursor) || !markApplies(state.doc, ranges, markType, enterAtoms))\n return false;\n if (dispatch) {\n if ($cursor) {\n if (markType.isInSet(state.storedMarks || $cursor.marks()))\n dispatch(state.tr.removeStoredMark(markType));\n else\n dispatch(state.tr.addStoredMark(markType.create(attrs)));\n }\n else {\n let add, tr = state.tr;\n if (!enterAtoms)\n ranges = removeInlineAtoms(ranges);\n if (removeWhenPresent) {\n add = !ranges.some(r => state.doc.rangeHasMark(r.$from.pos, r.$to.pos, markType));\n }\n else {\n add = !ranges.every(r => {\n let missing = false;\n tr.doc.nodesBetween(r.$from.pos, r.$to.pos, (node, pos, parent) => {\n if (missing)\n return false;\n missing = !markType.isInSet(node.marks) && !!parent && parent.type.allowsMarkType(markType) &&\n !(node.isText && /^\\s*$/.test(node.textBetween(Math.max(0, r.$from.pos - pos), Math.min(node.nodeSize, r.$to.pos - pos))));\n });\n return !missing;\n });\n }\n for (let i = 0; i < ranges.length; i++) {\n let { $from, $to } = ranges[i];\n if (!add) {\n tr.removeMark($from.pos, $to.pos, markType);\n }\n else {\n let from = $from.pos, to = $to.pos, start = $from.nodeAfter, end = $to.nodeBefore;\n let spaceStart = dropSpace && start && start.isText ? /^\\s*/.exec(start.text)[0].length : 0;\n let spaceEnd = dropSpace && end && end.isText ? /\\s*$/.exec(end.text)[0].length : 0;\n if (from + spaceStart < to) {\n from += spaceStart;\n to -= spaceEnd;\n }\n tr.addMark(from, to, markType.create(attrs));\n }\n }\n dispatch(tr.scrollIntoView());\n }\n }\n return true;\n };\n}\nfunction wrapDispatchForJoin(dispatch, isJoinable) {\n return (tr) => {\n if (!tr.isGeneric)\n return dispatch(tr);\n let ranges = [];\n for (let i = 0; i < tr.mapping.maps.length; i++) {\n let map = tr.mapping.maps[i];\n for (let j = 0; j < ranges.length; j++)\n ranges[j] = map.map(ranges[j]);\n map.forEach((_s, _e, from, to) => ranges.push(from, to));\n }\n // Figure out which joinable points exist inside those ranges,\n // by checking all node boundaries in their parent nodes.\n let joinable = [];\n for (let i = 0; i < ranges.length; i += 2) {\n let from = ranges[i], to = ranges[i + 1];\n let $from = tr.doc.resolve(from), depth = $from.sharedDepth(to), parent = $from.node(depth);\n for (let index = $from.indexAfter(depth), pos = $from.after(depth + 1); pos <= to; ++index) {\n let after = parent.maybeChild(index);\n if (!after)\n break;\n if (index && joinable.indexOf(pos) == -1) {\n let before = parent.child(index - 1);\n if (before.type == after.type && isJoinable(before, after))\n joinable.push(pos);\n }\n pos += after.nodeSize;\n }\n }\n // Join the joinable points\n joinable.sort((a, b) => a - b);\n for (let i = joinable.length - 1; i >= 0; i--) {\n if (canJoin(tr.doc, joinable[i]))\n tr.join(joinable[i]);\n }\n dispatch(tr);\n };\n}\n/**\nWrap a command so that, when it produces a transform that causes\ntwo joinable nodes to end up next to each other, those are joined.\nNodes are considered joinable when they are of the same type and\nwhen the `isJoinable` predicate returns true for them or, if an\narray of strings was passed, if their node type name is in that\narray.\n*/\nfunction autoJoin(command, isJoinable) {\n let canJoin = Array.isArray(isJoinable) ? (node) => isJoinable.indexOf(node.type.name) > -1\n : isJoinable;\n return (state, dispatch, view) => command(state, dispatch && wrapDispatchForJoin(dispatch, canJoin), view);\n}\n/**\nCombine a number of command functions into a single function (which\ncalls them one by one until one returns true).\n*/\nfunction chainCommands(...commands) {\n return function (state, dispatch, view) {\n for (let i = 0; i < commands.length; i++)\n if (commands[i](state, dispatch, view))\n return true;\n return false;\n };\n}\nlet backspace = chainCommands(deleteSelection, joinBackward, selectNodeBackward);\nlet del = chainCommands(deleteSelection, joinForward, selectNodeForward);\n/**\nA basic keymap containing bindings not specific to any schema.\nBinds the following keys (when multiple commands are listed, they\nare chained with [`chainCommands`](https://prosemirror.net/docs/ref/#commands.chainCommands)):\n\n* **Enter** to `newlineInCode`, `createParagraphNear`, `liftEmptyBlock`, `splitBlock`\n* **Mod-Enter** to `exitCode`\n* **Backspace** and **Mod-Backspace** to `deleteSelection`, `joinBackward`, `selectNodeBackward`\n* **Delete** and **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-Delete** to `deleteSelection`, `joinForward`, `selectNodeForward`\n* **Mod-a** to `selectAll`\n*/\nconst pcBaseKeymap = {\n \"Enter\": chainCommands(newlineInCode, createParagraphNear, liftEmptyBlock, splitBlock),\n \"Mod-Enter\": exitCode,\n \"Backspace\": backspace,\n \"Mod-Backspace\": backspace,\n \"Shift-Backspace\": backspace,\n \"Delete\": del,\n \"Mod-Delete\": del,\n \"Mod-a\": selectAll\n};\n/**\nA copy of `pcBaseKeymap` that also binds **Ctrl-h** like Backspace,\n**Ctrl-d** like Delete, **Alt-Backspace** like Ctrl-Backspace, and\n**Ctrl-Alt-Backspace**, **Alt-Delete**, and **Alt-d** like\nCtrl-Delete.\n*/\nconst macBaseKeymap = {\n \"Ctrl-h\": pcBaseKeymap[\"Backspace\"],\n \"Alt-Backspace\": pcBaseKeymap[\"Mod-Backspace\"],\n \"Ctrl-d\": pcBaseKeymap[\"Delete\"],\n \"Ctrl-Alt-Backspace\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-Delete\": pcBaseKeymap[\"Mod-Delete\"],\n \"Alt-d\": pcBaseKeymap[\"Mod-Delete\"],\n \"Ctrl-a\": selectTextblockStart,\n \"Ctrl-e\": selectTextblockEnd\n};\nfor (let key in pcBaseKeymap)\n macBaseKeymap[key] = pcBaseKeymap[key];\nconst mac = typeof navigator != \"undefined\" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform)\n // @ts-ignore\n : typeof os != \"undefined\" && os.platform ? os.platform() == \"darwin\" : false;\n/**\nDepending on the detected platform, this will hold\n[`pcBasekeymap`](https://prosemirror.net/docs/ref/#commands.pcBaseKeymap) or\n[`macBaseKeymap`](https://prosemirror.net/docs/ref/#commands.macBaseKeymap).\n*/\nconst baseKeymap = mac ? macBaseKeymap : pcBaseKeymap;\n\nexport { autoJoin, baseKeymap, chainCommands, createParagraphNear, deleteSelection, exitCode, joinBackward, joinDown, joinForward, joinTextblockBackward, joinTextblockForward, joinUp, lift, liftEmptyBlock, macBaseKeymap, newlineInCode, pcBaseKeymap, selectAll, selectNodeBackward, selectNodeForward, selectParentNode, selectTextblockEnd, selectTextblockStart, setBlockType, splitBlock, splitBlockAs, splitBlockKeepMarks, toggleMark, wrapIn };\n"],"names":["atBlockStart","state","view","$cursor","selection","endOfTextblock","parentOffset","joinTextblocksAround","$cut","dispatch","beforeText","nodeBefore","beforePos","pos","isTextblock","type","spec","isolating","child","lastChild","afterText","nodeAfter","afterPos","firstChild","step","replaceStep","doc","Slice","empty","from","ReplaceStep","slice","size","tr","setSelection","TextSelection","create","scrollIntoView","textblockAt","node","side","only","scan","childCount","findCutBefore","$pos","parent","i","depth","index","resolve","before","atBlockEnd","content","findCutAfter","after","defaultBlockAt","match","edgeCount","edge","hasRequiredAttrs","deleteBarrier","dir","conn","isolated","compatibleContent","canReplace","delete","nodeSize","canJoin","join","joinMaybeClear","canDelAfter","contentMatchAt","findWrapping","matchType","validEnd","end","wrap","Fragment","length","copy","ReplaceAroundStep","$joinAt","selAfter","Selection","findFrom","range","$from","blockRange","$to","target","liftTarget","lift","at","push","afterDepth","selectTextblockSide","sel","isInline","start","selectTextblockStart","selectTextblockEnd","navigator","test","platform","os","AllSelection","inlineContent","indexAfter","insert","createAndFill","deleteSelection","$head","$anchor","code","sameParent","above","canReplaceWith","replaceWith","near","NodeSelection","isSelectable","delStep","to","mapping","map","isAtom","point","joinPoint","nodeSel","canSplit","split","insertText","same","sharedDepth","nodeType","attrs","applicable","ranges","nodesBetween","hasMarkup","setBlockType","wrapping"],"mappings":"qOAcA,SAASA,EAAaC,EAAOC,GACzB,IAAIC,QAAEA,GAAYF,EAAMG,UACxB,OAA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MG,UACvBmF,EAAQC,EAAMC,WAAWC,GAAMqD,EAAWxD,GAASb,eAAaa,EAAOiD,EAAUC,GACrF,QAAKM,IAEDtI,GACAA,EAASR,EAAMgC,GAAG6C,KAAKS,EAAOwD,GAAU1G,mBACrC,EACf,CACA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../prosemirror-state/dist/index.js"),t=require("../../prosemirror-transform/dist/index.js");class i{constructor(e,t){var i;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(i=t.width)&&void 0!==i?i:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let i=e=>{this[t](e)};return e.dom.addEventListener(t,i),{name:t,handler:i}}))}destroy(){this.handlers.forEach((({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t)))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),i=!t.parent.inlineContent;if(i){let i=t.nodeBefore,s=t.nodeAfter;if(i||s){let t=this.editorView.nodeDOM(this.cursorPos-(i?i.nodeSize:0));if(t){let o=t.getBoundingClientRect(),r=i?o.bottom:o.top;i&&s&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:r-this.width/2,bottom:r+this.width/2}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let s,o,r=this.editorView.dom.offsetParent;if(this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",i),this.element.classList.toggle("prosemirror-dropcursor-inline",!i),!r||r==document.body&&"static"==getComputedStyle(r).position)s=-pageXOffset,o=-pageYOffset;else{let e=r.getBoundingClientRect();s=e.left-r.scrollLeft,o=e.top-r.scrollTop}this.element.style.left=e.left-s+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let i=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),s=i&&i.inside>=0&&this.editorView.state.doc.nodeAt(i.inside),o=s&&s.type.spec.disableDropCursor,r="function"==typeof o?o(this.editorView,i,e):o;if(i&&!r){let e=i.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let i=t.dropPoint(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=i&&(e=i)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}exports.dropCursor=function(t={}){return new e.Plugin({view:e=>new i(e,t)})};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/prosemirror-dropcursor/dist/index.js"],"sourcesContent":["import { Plugin } from 'prosemirror-state';\nimport { dropPoint } from 'prosemirror-transform';\n\n/**\nCreate a plugin that, when added to a ProseMirror instance,\ncauses a decoration to show up at the drop position when something\nis dragged over the editor.\n\nNodes may add a `disableDropCursor` property to their spec to\ncontrol the showing of a drop cursor inside them. This may be a\nboolean or a function, which will be called with a view and a\nposition, and should return a boolean.\n*/\nfunction dropCursor(options = {}) {\n return new Plugin({\n view(editorView) { return new DropCursorView(editorView, options); }\n });\n}\nclass DropCursorView {\n constructor(editorView, options) {\n var _a;\n this.editorView = editorView;\n this.cursorPos = null;\n this.element = null;\n this.timeout = -1;\n this.width = (_a = options.width) !== null && _a !== void 0 ? _a : 1;\n this.color = options.color === false ? undefined : (options.color || \"black\");\n this.class = options.class;\n this.handlers = [\"dragover\", \"dragend\", \"drop\", \"dragleave\"].map(name => {\n let handler = (e) => { this[name](e); };\n editorView.dom.addEventListener(name, handler);\n return { name, handler };\n });\n }\n destroy() {\n this.handlers.forEach(({ name, handler }) => this.editorView.dom.removeEventListener(name, handler));\n }\n update(editorView, prevState) {\n if (this.cursorPos != null && prevState.doc != editorView.state.doc) {\n if (this.cursorPos > editorView.state.doc.content.size)\n this.setCursor(null);\n else\n this.updateOverlay();\n }\n }\n setCursor(pos) {\n if (pos == this.cursorPos)\n return;\n this.cursorPos = pos;\n if (pos == null) {\n this.element.parentNode.removeChild(this.element);\n this.element = null;\n }\n else {\n this.updateOverlay();\n }\n }\n updateOverlay() {\n let $pos = this.editorView.state.doc.resolve(this.cursorPos);\n let isBlock = !$pos.parent.inlineContent, rect;\n if (isBlock) {\n let before = $pos.nodeBefore, after = $pos.nodeAfter;\n if (before || after) {\n let node = this.editorView.nodeDOM(this.cursorPos - (before ? before.nodeSize : 0));\n if (node) {\n let nodeRect = node.getBoundingClientRect();\n let top = before ? nodeRect.bottom : nodeRect.top;\n if (before && after)\n top = (top + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2;\n rect = { left: nodeRect.left, right: nodeRect.right, top: top - this.width / 2, bottom: top + this.width / 2 };\n }\n }\n }\n if (!rect) {\n let coords = this.editorView.coordsAtPos(this.cursorPos);\n rect = { left: coords.left - this.width / 2, right: coords.left + this.width / 2, top: coords.top, bottom: coords.bottom };\n }\n let parent = this.editorView.dom.offsetParent;\n if (!this.element) {\n this.element = parent.appendChild(document.createElement(\"div\"));\n if (this.class)\n this.element.className = this.class;\n this.element.style.cssText = \"position: absolute; z-index: 50; pointer-events: none;\";\n if (this.color) {\n this.element.style.backgroundColor = this.color;\n }\n }\n this.element.classList.toggle(\"prosemirror-dropcursor-block\", isBlock);\n this.element.classList.toggle(\"prosemirror-dropcursor-inline\", !isBlock);\n let parentLeft, parentTop;\n if (!parent || parent == document.body && getComputedStyle(parent).position == \"static\") {\n parentLeft = -pageXOffset;\n parentTop = -pageYOffset;\n }\n else {\n let rect = parent.getBoundingClientRect();\n parentLeft = rect.left - parent.scrollLeft;\n parentTop = rect.top - parent.scrollTop;\n }\n this.element.style.left = (rect.left - parentLeft) + \"px\";\n this.element.style.top = (rect.top - parentTop) + \"px\";\n this.element.style.width = (rect.right - rect.left) + \"px\";\n this.element.style.height = (rect.bottom - rect.top) + \"px\";\n }\n scheduleRemoval(timeout) {\n clearTimeout(this.timeout);\n this.timeout = setTimeout(() => this.setCursor(null), timeout);\n }\n dragover(event) {\n if (!this.editorView.editable)\n return;\n let pos = this.editorView.posAtCoords({ left: event.clientX, top: event.clientY });\n let node = pos && pos.inside >= 0 && this.editorView.state.doc.nodeAt(pos.inside);\n let disableDropCursor = node && node.type.spec.disableDropCursor;\n let disabled = typeof disableDropCursor == \"function\" ? disableDropCursor(this.editorView, pos, event) : disableDropCursor;\n if (pos && !disabled) {\n let target = pos.pos;\n if (this.editorView.dragging && this.editorView.dragging.slice) {\n let point = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice);\n if (point != null)\n target = point;\n }\n this.setCursor(target);\n this.scheduleRemoval(5000);\n }\n }\n dragend() {\n this.scheduleRemoval(20);\n }\n drop() {\n this.scheduleRemoval(20);\n }\n dragleave(event) {\n if (event.target == this.editorView.dom || !this.editorView.dom.contains(event.relatedTarget))\n this.setCursor(null);\n }\n}\n\nexport { dropCursor };\n"],"names":["dropCursor","options","Plugin","view","editorView","DropCursorView","constructor","_a","this","cursorPos","element","timeout","width","color","undefined","class","handlers","map","name","handler","e","dom","addEventListener","destroy","forEach","removeEventListener","update","prevState","doc","state","content","size","setCursor","updateOverlay","pos","parentNode","removeChild","rect","$pos","resolve","isBlock","parent","inlineContent","before","nodeBefore","after","nodeAfter","node","nodeDOM","nodeSize","nodeRect","getBoundingClientRect","top","bottom","left","right","coords","coordsAtPos","parentLeft","parentTop","offsetParent","appendChild","document","createElement","className","style","cssText","backgroundColor","classList","toggle","body","getComputedStyle","position","pageXOffset","pageYOffset","scrollLeft","scrollTop","height","scheduleRemoval","clearTimeout","setTimeout","dragover","event","editable","posAtCoords","clientX","clientY","inside","nodeAt","disableDropCursor","type","spec","disabled","target","dragging","slice","point","dropPoint","dragend","drop","dragleave","contains","relatedTarget"],"mappings":"qIAaA,SAASA,EAAWC,EAAU,IAC1B,OAAO,IAAIC,EAAO,CACdC,KAAKC,GAAqB,IAAIC,EAAeD,EAAYH,IAEjE,CACA,MAAMI,EACF,WAAAC,CAAYF,EAAYH,GACpB,IAAIM,EACJC,KAAKJ,WAAaA,EAClBI,KAAKC,UAAY,KACjBD,KAAKE,QAAU,KACfF,KAAKG,SAAW,EAChBH,KAAKI,MAAiC,QAAxBL,EAAKN,EAAQW,aAA0B,IAAPL,EAAgBA,EAAK,EACnEC,KAAKK,OAA0B,IAAlBZ,EAAQY,WAAkBC,EAAab,EAAQY,OAAS,QACrEL,KAAKO,MAAQd,EAAQc,MACrBP,KAAKQ,SAAW,CAAC,WAAY,UAAW,OAAQ,aAAaC,KAAIC,IAC7D,IAAIC,EAAWC,IAAQZ,KAAKU,GAAME,EAAE,EAEpC,OADAhB,EAAWiB,IAAIC,iBAAiBJ,EAAMC,GAC/B,CAAED,OAAMC,UAAS,GAE/B,CACD,OAAAI,GACIf,KAAKQ,SAASQ,SAAQ,EAAGN,OAAMC,aAAcX,KAAKJ,WAAWiB,IAAII,oBAAoBP,EAAMC,IAC9F,CACD,MAAAO,CAAOtB,EAAYuB,GACO,MAAlBnB,KAAKC,WAAqBkB,EAAUC,KAAOxB,EAAWyB,MAAMD,MACxDpB,KAAKC,UAAYL,EAAWyB,MAAM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,IAAIC,EAAS3D,EAAIA,IACjB,GAAI1B,KAAKJ,WAAW0F,UAAYtF,KAAKJ,WAAW0F,SAASC,MAAO,CAC5D,IAAIC,EAAQC,EAAUzF,KAAKJ,WAAWyB,MAAMD,IAAKiE,EAAQrF,KAAKJ,WAAW0F,SAASC,OACrE,MAATC,IACAH,EAASG,EAChB,CACDxF,KAAKwB,UAAU6D,GACfrF,KAAKsE,gBAAgB,IACxB,CACJ,CACD,OAAAoB,GACI1F,KAAKsE,gBAAgB,GACxB,CACD,IAAAqB,GACI3F,KAAKsE,gBAAgB,GACxB,CACD,SAAAsB,CAAUlB,GACFA,EAAMW,QAAUrF,KAAKJ,WAAWiB,KAAQb,KAAKJ,WAAWiB,IAAIgF,SAASnB,EAAMoB,gBAC3E9F,KAAKwB,UAAU,KACtB"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/prosemirror-dropcursor/dist/index.js"],"sourcesContent":["import { Plugin } from 'prosemirror-state';\nimport { dropPoint } from 'prosemirror-transform';\n\n/**\nCreate a plugin that, when added to a ProseMirror instance,\ncauses a decoration to show up at the drop position when something\nis dragged over the editor.\n\nNodes may add a `disableDropCursor` property to their spec to\ncontrol the showing of a drop cursor inside them. This may be a\nboolean or a function, which will be called with a view and a\nposition, and should return a boolean.\n*/\nfunction dropCursor(options = {}) {\n return new Plugin({\n view(editorView) { return new DropCursorView(editorView, options); }\n });\n}\nclass DropCursorView {\n constructor(editorView, options) {\n var _a;\n this.editorView = editorView;\n this.cursorPos = null;\n this.element = null;\n this.timeout = -1;\n this.width = (_a = options.width) !== null && _a !== void 0 ? _a : 1;\n this.color = options.color === false ? undefined : (options.color || \"black\");\n this.class = options.class;\n this.handlers = [\"dragover\", \"dragend\", \"drop\", \"dragleave\"].map(name => {\n let handler = (e) => { this[name](e); };\n editorView.dom.addEventListener(name, handler);\n return { name, handler };\n });\n }\n destroy() {\n this.handlers.forEach(({ name, handler }) => this.editorView.dom.removeEventListener(name, handler));\n }\n update(editorView, prevState) {\n if (this.cursorPos != null && prevState.doc != editorView.state.doc) {\n if (this.cursorPos > editorView.state.doc.content.size)\n this.setCursor(null);\n else\n this.updateOverlay();\n }\n }\n setCursor(pos) {\n if (pos == this.cursorPos)\n return;\n this.cursorPos = pos;\n if (pos == null) {\n this.element.parentNode.removeChild(this.element);\n this.element = null;\n }\n else {\n this.updateOverlay();\n }\n }\n updateOverlay() {\n let $pos = this.editorView.state.doc.resolve(this.cursorPos);\n let isBlock = !$pos.parent.inlineContent, rect;\n if (isBlock) {\n let before = $pos.nodeBefore, after = $pos.nodeAfter;\n if (before || after) {\n let node = this.editorView.nodeDOM(this.cursorPos - (before ? before.nodeSize : 0));\n if (node) {\n let nodeRect = node.getBoundingClientRect();\n let top = before ? nodeRect.bottom : nodeRect.top;\n if (before && after)\n top = (top + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2;\n rect = { left: nodeRect.left, right: nodeRect.right, top: top - this.width / 2, bottom: top + this.width / 2 };\n }\n }\n }\n if (!rect) {\n let coords = this.editorView.coordsAtPos(this.cursorPos);\n rect = { left: coords.left - this.width / 2, right: coords.left + this.width / 2, top: coords.top, bottom: coords.bottom };\n }\n let parent = this.editorView.dom.offsetParent;\n if (!this.element) {\n this.element = parent.appendChild(document.createElement(\"div\"));\n if (this.class)\n this.element.className = this.class;\n this.element.style.cssText = \"position: absolute; z-index: 50; pointer-events: none;\";\n if (this.color) {\n this.element.style.backgroundColor = this.color;\n }\n }\n this.element.classList.toggle(\"prosemirror-dropcursor-block\", isBlock);\n this.element.classList.toggle(\"prosemirror-dropcursor-inline\", !isBlock);\n let parentLeft, parentTop;\n if (!parent || parent == document.body && getComputedStyle(parent).position == \"static\") {\n parentLeft = -pageXOffset;\n parentTop = -pageYOffset;\n }\n else {\n let rect = parent.getBoundingClientRect();\n parentLeft = rect.left - parent.scrollLeft;\n parentTop = rect.top - parent.scrollTop;\n }\n this.element.style.left = (rect.left - parentLeft) + \"px\";\n this.element.style.top = (rect.top - parentTop) + \"px\";\n this.element.style.width = (rect.right - rect.left) + \"px\";\n this.element.style.height = (rect.bottom - rect.top) + \"px\";\n }\n scheduleRemoval(timeout) {\n clearTimeout(this.timeout);\n this.timeout = setTimeout(() => this.setCursor(null), timeout);\n }\n dragover(event) {\n if (!this.editorView.editable)\n return;\n let pos = this.editorView.posAtCoords({ left: event.clientX, top: event.clientY });\n let node = pos && pos.inside >= 0 && this.editorView.state.doc.nodeAt(pos.inside);\n let disableDropCursor = node && node.type.spec.disableDropCursor;\n let disabled = typeof disableDropCursor == \"function\" ? disableDropCursor(this.editorView, pos, event) : disableDropCursor;\n if (pos && !disabled) {\n let target = pos.pos;\n if (this.editorView.dragging && this.editorView.dragging.slice) {\n let point = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice);\n if (point != null)\n target = point;\n }\n this.setCursor(target);\n this.scheduleRemoval(5000);\n }\n }\n dragend() {\n this.scheduleRemoval(20);\n }\n drop() {\n this.scheduleRemoval(20);\n }\n dragleave(event) {\n if (event.target == this.editorView.dom || !this.editorView.dom.contains(event.relatedTarget))\n this.setCursor(null);\n }\n}\n\nexport { dropCursor };\n"],"names":["DropCursorView","constructor","editorView","options","_a","this","cursorPos","element","timeout","width","color","undefined","class","handlers","map","name","handler","e","dom","addEventListener","destroy","forEach","removeEventListener","update","prevState","doc","state","content","size","setCursor","updateOverlay","pos","parentNode","removeChild","rect","$pos","resolve","isBlock","parent","inlineContent","before","nodeBefore","after","nodeAfter","node","nodeDOM","nodeSize","nodeRect","getBoundingClientRect","top","bottom","left","right","coords","coordsAtPos","parentLeft","parentTop","offsetParent","appendChild","document","createElement","className","style","cssText","backgroundColor","classList","toggle","body","getComputedStyle","position","pageXOffset","pageYOffset","scrollLeft","scrollTop","height","scheduleRemoval","clearTimeout","setTimeout","dragover","event","editable","posAtCoords","clientX","clientY","inside","nodeAt","disableDropCursor","type","spec","disabled","target","dragging","slice","point","dropPoint","dragend","drop","dragleave","contains","relatedTarget","Plugin","view"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,qBA1HL,SAAoB1B,EAAU,IAC1B,OAAO,IAAIiG,EAAAA,OAAO,CACdC,KAAKnG,GAAqB,IAAIF,EAAeE,EAAYC,IAEjE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../prosemirror-keymap/dist/index.js"),t=require("../../prosemirror-state/dist/index.js"),r=require("../../prosemirror-model/dist/index.js"),n=require("../../prosemirror-view/dist/index.js");class o extends t.Selection{constructor(e){super(e,e)}map(e,r){let n=e.resolve(r.map(this.head));return o.valid(n)?new o(n):t.Selection.near(n)}content(){return r.Slice.empty}eq(e){return e instanceof o&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new o(e.resolve(t.pos))}getBookmark(){return new i(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0!=r)for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(n.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r!=n.childCount)for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(n.type.spec.isolating)return!0}return!0}(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,r,n=!1){e:for(;;){if(!n&&o.valid(e))return e;let i=e.pos,l=null;for(let t=e.depth;;t--){let n=e.node(t);if(r>0?e.indexAfter(t)<n.childCount:e.index(t)>0){l=n.child(r>0?e.indexAfter(t):e.index(t)-1);break}if(0==t)return null;i+=r;let s=e.doc.resolve(i);if(o.valid(s))return s}for(;;){let s=r>0?l.firstChild:l.lastChild;if(!s){if(l.isAtom&&!l.isText&&!t.NodeSelection.isSelectable(l)){e=e.doc.resolve(i+l.nodeSize*r),n=!1;continue e}break}l=s,i+=r;let c=e.doc.resolve(i);if(o.valid(c))return c}return null}}}o.prototype.visible=!1,o.findFrom=o.findGapCursorFrom,t.Selection.jsonID("gapcursor",o);class i{constructor(e){this.pos=e}map(e){return new i(e.map(this.pos))}resolve(e){let r=e.resolve(this.pos);return o.valid(r)?new o(r):t.Selection.near(r)}}const l=e.keydownHandler({ArrowLeft:s("horiz",-1),ArrowRight:s("horiz",1),ArrowUp:s("vert",-1),ArrowDown:s("vert",1)});function s(e,r){const n="vert"==e?r>0?"down":"up":r>0?"right":"left";return function(e,i,l){let s=e.selection,c=r>0?s.$to:s.$from,a=s.empty;if(s instanceof t.TextSelection){if(!l.endOfTextblock(n)||0==c.depth)return!1;a=!1,c=e.doc.resolve(r>0?c.after():c.before())}let d=o.findGapCursorFrom(c,r,a);return!!d&&(i&&i(e.tr.setSelection(new o(d))),!0)}}function c(e,r,n){if(!e||!e.editable)return!1;let i=e.state.doc.resolve(r);if(!o.valid(i))return!1;let l=e.posAtCoords({left:n.clientX,top:n.clientY});return!(l&&l.inside>-1&&t.NodeSelection.isSelectable(e.state.doc.nodeAt(l.inside)))&&(e.dispatch(e.state.tr.setSelection(new o(i))),!0)}function a(e,n){if("insertCompositionText"!=n.inputType||!(e.state.selection instanceof o))return!1;let{$from:i}=e.state.selection,l=i.parent.contentMatchAt(i.index()).findWrapping(e.state.schema.nodes.text);if(!l)return!1;let s=r.Fragment.empty;for(let e=l.length-1;e>=0;e--)s=r.Fragment.from(l[e].createAndFill(null,s));let c=e.state.tr.replace(i.pos,i.pos,new r.Slice(s,0,0));return c.setSelection(t.TextSelection.near(c.doc.resolve(i.pos+1))),e.dispatch(c),!1}function d(e){if(!(e.selection instanceof o))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",n.DecorationSet.create(e.doc,[n.Decoration.widget(e.selection.head,t,{key:"gapcursor"})])}exports.GapCursor=o,exports.gapCursor=function(){return new t.Plugin({props:{decorations:d,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&o.valid(r)?new o(r):null,handleClick:c,handleKeyDown:l,handleDOMEvents:{beforeinput:a}}})};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../node_modules/prosemirror-gapcursor/dist/index.js"],"sourcesContent":["import { keydownHandler } from 'prosemirror-keymap';\nimport { Selection, NodeSelection, TextSelection, Plugin } from 'prosemirror-state';\nimport { Slice, Fragment } from 'prosemirror-model';\nimport { DecorationSet, Decoration } from 'prosemirror-view';\n\n/**\nGap cursor selections are represented using this class. Its\n`$anchor` and `$head` properties both point at the cursor position.\n*/\nclass GapCursor extends Selection {\n /**\n Create a gap cursor.\n */\n constructor($pos) {\n super($pos, $pos);\n }\n map(doc, mapping) {\n let $pos = doc.resolve(mapping.map(this.head));\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n }\n content() { return Slice.empty; }\n eq(other) {\n return other instanceof GapCursor && other.head == this.head;\n }\n toJSON() {\n return { type: \"gapcursor\", pos: this.head };\n }\n /**\n @internal\n */\n static fromJSON(doc, json) {\n if (typeof json.pos != \"number\")\n throw new RangeError(\"Invalid input for GapCursor.fromJSON\");\n return new GapCursor(doc.resolve(json.pos));\n }\n /**\n @internal\n */\n getBookmark() { return new GapBookmark(this.anchor); }\n /**\n @internal\n */\n static valid($pos) {\n let parent = $pos.parent;\n if (parent.isTextblock || !closedBefore($pos) || !closedAfter($pos))\n return false;\n let override = parent.type.spec.allowGapCursor;\n if (override != null)\n return override;\n let deflt = parent.contentMatchAt($pos.index()).defaultType;\n return deflt && deflt.isTextblock;\n }\n /**\n @internal\n */\n static findGapCursorFrom($pos, dir, mustMove = false) {\n search: for (;;) {\n if (!mustMove && GapCursor.valid($pos))\n return $pos;\n let pos = $pos.pos, next = null;\n // Scan up from this position\n for (let d = $pos.depth;; d--) {\n let parent = $pos.node(d);\n if (dir > 0 ? $pos.indexAfter(d) < parent.childCount : $pos.index(d) > 0) {\n next = parent.child(dir > 0 ? $pos.indexAfter(d) : $pos.index(d) - 1);\n break;\n }\n else if (d == 0) {\n return null;\n }\n pos += dir;\n let $cur = $pos.doc.resolve(pos);\n if (GapCursor.valid($cur))\n return $cur;\n }\n // And then down into the next node\n for (;;) {\n let inside = dir > 0 ? next.firstChild : next.lastChild;\n if (!inside) {\n if (next.isAtom && !next.isText && !NodeSelection.isSelectable(next)) {\n $pos = $pos.doc.resolve(pos + next.nodeSize * dir);\n mustMove = false;\n continue search;\n }\n break;\n }\n next = inside;\n pos += dir;\n let $cur = $pos.doc.resolve(pos);\n if (GapCursor.valid($cur))\n return $cur;\n }\n return null;\n }\n }\n}\nGapCursor.prototype.visible = false;\nGapCursor.findFrom = GapCursor.findGapCursorFrom;\nSelection.jsonID(\"gapcursor\", GapCursor);\nclass GapBookmark {\n constructor(pos) {\n this.pos = pos;\n }\n map(mapping) {\n return new GapBookmark(mapping.map(this.pos));\n }\n resolve(doc) {\n let $pos = doc.resolve(this.pos);\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n }\n}\nfunction closedBefore($pos) {\n for (let d = $pos.depth; d >= 0; d--) {\n let index = $pos.index(d), parent = $pos.node(d);\n // At the start of this parent, look at next one\n if (index == 0) {\n if (parent.type.spec.isolating)\n return true;\n continue;\n }\n // See if the node before (or its first ancestor) is closed\n for (let before = parent.child(index - 1);; before = before.lastChild) {\n if ((before.childCount == 0 && !before.inlineContent) || before.isAtom || before.type.spec.isolating)\n return true;\n if (before.inlineContent)\n return false;\n }\n }\n // Hit start of document\n return true;\n}\nfunction closedAfter($pos) {\n for (let d = $pos.depth; d >= 0; d--) {\n let index = $pos.indexAfter(d), parent = $pos.node(d);\n if (index == parent.childCount) {\n if (parent.type.spec.isolating)\n return true;\n continue;\n }\n for (let after = parent.child(index);; after = after.firstChild) {\n if ((after.childCount == 0 && !after.inlineContent) || after.isAtom || after.type.spec.isolating)\n return true;\n if (after.inlineContent)\n return false;\n }\n }\n return true;\n}\n\n/**\nCreate a gap cursor plugin. When enabled, this will capture clicks\nnear and arrow-key-motion past places that don't have a normally\nselectable position nearby, and create a gap cursor selection for\nthem. The cursor is drawn as an element with class\n`ProseMirror-gapcursor`. You can either include\n`style/gapcursor.css` from the package's directory or add your own\nstyles to make it visible.\n*/\nfunction gapCursor() {\n return new Plugin({\n props: {\n decorations: drawGapCursor,\n createSelectionBetween(_view, $anchor, $head) {\n return $anchor.pos == $head.pos && GapCursor.valid($head) ? new GapCursor($head) : null;\n },\n handleClick,\n handleKeyDown,\n handleDOMEvents: { beforeinput: beforeinput }\n }\n });\n}\nconst handleKeyDown = keydownHandler({\n \"ArrowLeft\": arrow(\"horiz\", -1),\n \"ArrowRight\": arrow(\"horiz\", 1),\n \"ArrowUp\": arrow(\"vert\", -1),\n \"ArrowDown\": arrow(\"vert\", 1)\n});\nfunction arrow(axis, dir) {\n const dirStr = axis == \"vert\" ? (dir > 0 ? \"down\" : \"up\") : (dir > 0 ? \"right\" : \"left\");\n return function (state, dispatch, view) {\n let sel = state.selection;\n let $start = dir > 0 ? sel.$to : sel.$from, mustMove = sel.empty;\n if (sel instanceof TextSelection) {\n if (!view.endOfTextblock(dirStr) || $start.depth == 0)\n return false;\n mustMove = false;\n $start = state.doc.resolve(dir > 0 ? $start.after() : $start.before());\n }\n let $found = GapCursor.findGapCursorFrom($start, dir, mustMove);\n if (!$found)\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(new GapCursor($found)));\n return true;\n };\n}\nfunction handleClick(view, pos, event) {\n if (!view || !view.editable)\n return false;\n let $pos = view.state.doc.resolve(pos);\n if (!GapCursor.valid($pos))\n return false;\n let clickPos = view.posAtCoords({ left: event.clientX, top: event.clientY });\n if (clickPos && clickPos.inside > -1 && NodeSelection.isSelectable(view.state.doc.nodeAt(clickPos.inside)))\n return false;\n view.dispatch(view.state.tr.setSelection(new GapCursor($pos)));\n return true;\n}\n// This is a hack that, when a composition starts while a gap cursor\n// is active, quickly creates an inline context for the composition to\n// happen in, to avoid it being aborted by the DOM selection being\n// moved into a valid position.\nfunction beforeinput(view, event) {\n if (event.inputType != \"insertCompositionText\" || !(view.state.selection instanceof GapCursor))\n return false;\n let { $from } = view.state.selection;\n let insert = $from.parent.contentMatchAt($from.index()).findWrapping(view.state.schema.nodes.text);\n if (!insert)\n return false;\n let frag = Fragment.empty;\n for (let i = insert.length - 1; i >= 0; i--)\n frag = Fragment.from(insert[i].createAndFill(null, frag));\n let tr = view.state.tr.replace($from.pos, $from.pos, new Slice(frag, 0, 0));\n tr.setSelection(TextSelection.near(tr.doc.resolve($from.pos + 1)));\n view.dispatch(tr);\n return false;\n}\nfunction drawGapCursor(state) {\n if (!(state.selection instanceof GapCursor))\n return null;\n let node = document.createElement(\"div\");\n node.className = \"ProseMirror-gapcursor\";\n return DecorationSet.create(state.doc, [Decoration.widget(state.selection.head, node, { key: \"gapcursor\" })]);\n}\n\nexport { GapCursor, gapCursor };\n"],"names":["GapCursor","Selection","constructor","$pos","super","map","doc","mapping","resolve","this","head","valid","near","content","Slice","empty","eq","other","toJSON","type","pos","fromJSON","json","RangeError","getBookmark","GapBookmark","anchor","parent","isTextblock","d","depth","index","node","before","child","lastChild","childCount","inlineContent","isAtom","spec","isolating","closedBefore","indexAfter","after","firstChild","closedAfter","override","allowGapCursor","deflt","contentMatchAt","defaultType","findGapCursorFrom","dir","mustMove","search","next","$cur","inside","isText","NodeSelection","isSelectable","nodeSize","prototype","visible","findFrom","jsonID","gapCursor","Plugin","props","decorations","drawGapCursor","createSelectionBetween","_view","$anchor","$head","handleClick","handleKeyDown","handleDOMEvents","beforeinput","keydownHandler","ArrowLeft","arrow","ArrowRight","ArrowUp","ArrowDown","axis","dirStr","state","dispatch","view","sel","selection","$start","$to","$from","TextSelection","endOfTextblock","$found","tr","setSelection","event","editable","clickPos","posAtCoords","left","clientX","top","clientY","nodeAt","inputType","insert","findWrapping","schema","nodes","text","frag","Fragment","i","length","from","createAndFill","replace","document","createElement","className","DecorationSet","create","Decoration","widget","key"],"mappings":"6VASA,MAAMA,UAAkBC,EAIpB,WAAAC,CAAYC,GACRC,MAAMD,EAAMA,EACf,CACD,GAAAE,CAAIC,EAAKC,GACL,IAAIJ,EAAOG,EAAIE,QAAQD,EAAQF,IAAII,KAAKC,OACxC,OAAOV,EAAUW,MAAMR,GAAQ,IAAIH,EAAUG,GAAQF,EAAUW,KAAKT,EACvE,CACD,OAAAU,GAAY,OAAOC,EAAMC,KAAQ,CACjC,EAAAC,CAAGC,GACC,OAAOA,aAAiBjB,GAAaiB,EAAMP,MAAQD,KAAKC,IAC3D,CACD,MAAAQ,GACI,MAAO,CAAEC,KAAM,YAAaC,IAAKX,KAAKC,KACzC,CAID,eAAOW,CAASf,EAAKgB,GACjB,GAAuB,iBAAZA,EAAKF,IACZ,MAAM,IAAIG,WAAW,wCACzB,OAAO,IAAIvB,EAAUM,EAAIE,QAAQc,EAAKF,KACzC,CAID,WAAAI,GAAgB,OAAO,IAAIC,EAAYhB,KAAKiB,OAAU,CAItD,YAAOf,CAAMR,GACT,IAAIwB,EAASxB,EAAKwB,OAClB,GAAIA,EAAOC,cAmEnB,SAAsBzB,GAClB,IAAK,IAAI0B,EAAI1B,EAAK2B,MAAOD,GAAK,EAAGA,IAAK,CAClC,IAAIE,EAAQ5B,EAAK4B,MAAMF,GAAIF,EAASxB,EAAK6B,KAAKH,GAE9C,GAAa,GAATE,EAMJ,IAAK,IAAIE,EAASN,EAAOO,MAAMH,EAAQ,IAAKE,EAASA,EAAOE,UAAW,CACnE,GAA0B,GAArBF,EAAOG,aAAoBH,EAAOI,eAAkBJ,EAAOK,QAAUL,EAAOd,KAAKoB,KAAKC,UACvF,OAAO,EACX,GAAIP,EAAOI,cACP,OAAO,CACd,MAVG,GAAI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,EACD,OAAO,EACX,IAAIK,EAAOC,EAASrG,MACpB,IAAK,IAAIsG,EAAIP,EAAOQ,OAAS,EAAGD,GAAK,EAAGA,IACpCF,EAAOC,EAASG,KAAKT,EAAOO,GAAGG,cAAc,KAAML,IACvD,IAAIjB,EAAKT,EAAKF,MAAMW,GAAGuB,QAAQ3B,EAAM1E,IAAK0E,EAAM1E,IAAK,IAAIN,EAAMqG,EAAM,EAAG,IAGxE,OAFAjB,EAAGC,aAAaJ,EAAcnF,KAAKsF,EAAG5F,IAAIE,QAAQsF,EAAM1E,IAAM,KAC9DqE,EAAKD,SAASU,IACP,CACX,CACA,SAAS5B,EAAciB,GACnB,KAAMA,EAAMI,qBAAqB3F,GAC7B,OAAO,KACX,IAAIgC,EAAO0F,SAASC,cAAc,OAElC,OADA3F,EAAK4F,UAAY,wBACVC,EAAcC,OAAOvC,EAAMjF,IAAK,CAACyH,EAAWC,OAAOzC,EAAMI,UAAUjF,KAAMsB,EAAM,CAAEiG,IAAK,eACjG"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../node_modules/prosemirror-gapcursor/dist/index.js"],"sourcesContent":["import { keydownHandler } from 'prosemirror-keymap';\nimport { Selection, NodeSelection, TextSelection, Plugin } from 'prosemirror-state';\nimport { Slice, Fragment } from 'prosemirror-model';\nimport { DecorationSet, Decoration } from 'prosemirror-view';\n\n/**\nGap cursor selections are represented using this class. Its\n`$anchor` and `$head` properties both point at the cursor position.\n*/\nclass GapCursor extends Selection {\n /**\n Create a gap cursor.\n */\n constructor($pos) {\n super($pos, $pos);\n }\n map(doc, mapping) {\n let $pos = doc.resolve(mapping.map(this.head));\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n }\n content() { return Slice.empty; }\n eq(other) {\n return other instanceof GapCursor && other.head == this.head;\n }\n toJSON() {\n return { type: \"gapcursor\", pos: this.head };\n }\n /**\n @internal\n */\n static fromJSON(doc, json) {\n if (typeof json.pos != \"number\")\n throw new RangeError(\"Invalid input for GapCursor.fromJSON\");\n return new GapCursor(doc.resolve(json.pos));\n }\n /**\n @internal\n */\n getBookmark() { return new GapBookmark(this.anchor); }\n /**\n @internal\n */\n static valid($pos) {\n let parent = $pos.parent;\n if (parent.isTextblock || !closedBefore($pos) || !closedAfter($pos))\n return false;\n let override = parent.type.spec.allowGapCursor;\n if (override != null)\n return override;\n let deflt = parent.contentMatchAt($pos.index()).defaultType;\n return deflt && deflt.isTextblock;\n }\n /**\n @internal\n */\n static findGapCursorFrom($pos, dir, mustMove = false) {\n search: for (;;) {\n if (!mustMove && GapCursor.valid($pos))\n return $pos;\n let pos = $pos.pos, next = null;\n // Scan up from this position\n for (let d = $pos.depth;; d--) {\n let parent = $pos.node(d);\n if (dir > 0 ? $pos.indexAfter(d) < parent.childCount : $pos.index(d) > 0) {\n next = parent.child(dir > 0 ? $pos.indexAfter(d) : $pos.index(d) - 1);\n break;\n }\n else if (d == 0) {\n return null;\n }\n pos += dir;\n let $cur = $pos.doc.resolve(pos);\n if (GapCursor.valid($cur))\n return $cur;\n }\n // And then down into the next node\n for (;;) {\n let inside = dir > 0 ? next.firstChild : next.lastChild;\n if (!inside) {\n if (next.isAtom && !next.isText && !NodeSelection.isSelectable(next)) {\n $pos = $pos.doc.resolve(pos + next.nodeSize * dir);\n mustMove = false;\n continue search;\n }\n break;\n }\n next = inside;\n pos += dir;\n let $cur = $pos.doc.resolve(pos);\n if (GapCursor.valid($cur))\n return $cur;\n }\n return null;\n }\n }\n}\nGapCursor.prototype.visible = false;\nGapCursor.findFrom = GapCursor.findGapCursorFrom;\nSelection.jsonID(\"gapcursor\", GapCursor);\nclass GapBookmark {\n constructor(pos) {\n this.pos = pos;\n }\n map(mapping) {\n return new GapBookmark(mapping.map(this.pos));\n }\n resolve(doc) {\n let $pos = doc.resolve(this.pos);\n return GapCursor.valid($pos) ? new GapCursor($pos) : Selection.near($pos);\n }\n}\nfunction closedBefore($pos) {\n for (let d = $pos.depth; d >= 0; d--) {\n let index = $pos.index(d), parent = $pos.node(d);\n // At the start of this parent, look at next one\n if (index == 0) {\n if (parent.type.spec.isolating)\n return true;\n continue;\n }\n // See if the node before (or its first ancestor) is closed\n for (let before = parent.child(index - 1);; before = before.lastChild) {\n if ((before.childCount == 0 && !before.inlineContent) || before.isAtom || before.type.spec.isolating)\n return true;\n if (before.inlineContent)\n return false;\n }\n }\n // Hit start of document\n return true;\n}\nfunction closedAfter($pos) {\n for (let d = $pos.depth; d >= 0; d--) {\n let index = $pos.indexAfter(d), parent = $pos.node(d);\n if (index == parent.childCount) {\n if (parent.type.spec.isolating)\n return true;\n continue;\n }\n for (let after = parent.child(index);; after = after.firstChild) {\n if ((after.childCount == 0 && !after.inlineContent) || after.isAtom || after.type.spec.isolating)\n return true;\n if (after.inlineContent)\n return false;\n }\n }\n return true;\n}\n\n/**\nCreate a gap cursor plugin. When enabled, this will capture clicks\nnear and arrow-key-motion past places that don't have a normally\nselectable position nearby, and create a gap cursor selection for\nthem. The cursor is drawn as an element with class\n`ProseMirror-gapcursor`. You can either include\n`style/gapcursor.css` from the package's directory or add your own\nstyles to make it visible.\n*/\nfunction gapCursor() {\n return new Plugin({\n props: {\n decorations: drawGapCursor,\n createSelectionBetween(_view, $anchor, $head) {\n return $anchor.pos == $head.pos && GapCursor.valid($head) ? new GapCursor($head) : null;\n },\n handleClick,\n handleKeyDown,\n handleDOMEvents: { beforeinput: beforeinput }\n }\n });\n}\nconst handleKeyDown = keydownHandler({\n \"ArrowLeft\": arrow(\"horiz\", -1),\n \"ArrowRight\": arrow(\"horiz\", 1),\n \"ArrowUp\": arrow(\"vert\", -1),\n \"ArrowDown\": arrow(\"vert\", 1)\n});\nfunction arrow(axis, dir) {\n const dirStr = axis == \"vert\" ? (dir > 0 ? \"down\" : \"up\") : (dir > 0 ? \"right\" : \"left\");\n return function (state, dispatch, view) {\n let sel = state.selection;\n let $start = dir > 0 ? sel.$to : sel.$from, mustMove = sel.empty;\n if (sel instanceof TextSelection) {\n if (!view.endOfTextblock(dirStr) || $start.depth == 0)\n return false;\n mustMove = false;\n $start = state.doc.resolve(dir > 0 ? $start.after() : $start.before());\n }\n let $found = GapCursor.findGapCursorFrom($start, dir, mustMove);\n if (!$found)\n return false;\n if (dispatch)\n dispatch(state.tr.setSelection(new GapCursor($found)));\n return true;\n };\n}\nfunction handleClick(view, pos, event) {\n if (!view || !view.editable)\n return false;\n let $pos = view.state.doc.resolve(pos);\n if (!GapCursor.valid($pos))\n return false;\n let clickPos = view.posAtCoords({ left: event.clientX, top: event.clientY });\n if (clickPos && clickPos.inside > -1 && NodeSelection.isSelectable(view.state.doc.nodeAt(clickPos.inside)))\n return false;\n view.dispatch(view.state.tr.setSelection(new GapCursor($pos)));\n return true;\n}\n// This is a hack that, when a composition starts while a gap cursor\n// is active, quickly creates an inline context for the composition to\n// happen in, to avoid it being aborted by the DOM selection being\n// moved into a valid position.\nfunction beforeinput(view, event) {\n if (event.inputType != \"insertCompositionText\" || !(view.state.selection instanceof GapCursor))\n return false;\n let { $from } = view.state.selection;\n let insert = $from.parent.contentMatchAt($from.index()).findWrapping(view.state.schema.nodes.text);\n if (!insert)\n return false;\n let frag = Fragment.empty;\n for (let i = insert.length - 1; i >= 0; i--)\n frag = Fragment.from(insert[i].createAndFill(null, frag));\n let tr = view.state.tr.replace($from.pos, $from.pos, new Slice(frag, 0, 0));\n tr.setSelection(TextSelection.near(tr.doc.resolve($from.pos + 1)));\n view.dispatch(tr);\n return false;\n}\nfunction drawGapCursor(state) {\n if (!(state.selection instanceof GapCursor))\n return null;\n let node = document.createElement(\"div\");\n node.className = \"ProseMirror-gapcursor\";\n return DecorationSet.create(state.doc, [Decoration.widget(state.selection.head, node, { key: \"gapcursor\" })]);\n}\n\nexport { GapCursor, gapCursor };\n"],"names":["GapCursor","Selection","constructor","$pos","super","map","doc","mapping","resolve","this","head","valid","near","content","Slice","empty","eq","other","toJSON","type","pos","fromJSON","json","RangeError","getBookmark","GapBookmark","anchor","parent","isTextblock","d","depth","index","node","before","child","lastChild","childCount","inlineContent","isAtom","spec","isolating","closedBefore","indexAfter","after","firstChild","closedAfter","override","allowGapCursor","deflt","contentMatchAt","defaultType","findGapCursorFrom","dir","mustMove","search","next","$cur","inside","isText","NodeSelection","isSelectable","nodeSize","prototype","visible","findFrom","jsonID","handleKeyDown","keydownHandler","ArrowLeft","arrow","ArrowRight","ArrowUp","ArrowDown","axis","dirStr","state","dispatch","view","sel","selection","$start","$to","$from","TextSelection","endOfTextblock","$found","tr","setSelection","handleClick","event","editable","clickPos","posAtCoords","left","clientX","top","clientY","nodeAt","beforeinput","inputType","insert","findWrapping","schema","nodes","text","frag","Fragment","i","length","from","createAndFill","replace","drawGapCursor","document","createElement","className","DecorationSet","create","Decoration","widget","key","Plugin","props","decorations","createSelectionBetween","_view","$anchor","$head","handleDOMEvents"],"mappings":"oRASA,MAAMA,UAAkBC,EAAAA,UAIpB,WAAAC,CAAYC,GACRC,MAAMD,EAAMA,EACf,CACD,GAAAE,CAAIC,EAAKC,GACL,IAAIJ,EAAOG,EAAIE,QAAQD,EAAQF,IAAII,KAAKC,OACxC,OAAOV,EAAUW,MAAMR,GAAQ,IAAIH,EAAUG,GAAQF,EAASA,UAACW,KAAKT,EACvE,CACD,OAAAU,GAAY,OAAOC,QAAMC,KAAQ,CACjC,EAAAC,CAAGC,GACC,OAAOA,aAAiBjB,GAAaiB,EAAMP,MAAQD,KAAKC,IAC3D,CACD,MAAAQ,GACI,MAAO,CAAEC,KAAM,YAAaC,IAAKX,KAAKC,KACzC,CAID,eAAOW,CAASf,EAAKgB,GACjB,GAAuB,iBAAZA,EAAKF,IACZ,MAAM,IAAIG,WAAW,wCACzB,OAAO,IAAIvB,EAAUM,EAAIE,QAAQc,EAAKF,KACzC,CAID,WAAAI,GAAgB,OAAO,IAAIC,EAAYhB,KAAKiB,OAAU,CAItD,YAAOf,CAAMR,GACT,IAAIwB,EAASxB,EAAKwB,OAClB,GAAIA,EAAOC,cAmEnB,SAAsBzB,GAClB,IAAK,IAA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BAAqB/E,GAChF,OAAO,EACX,IAAIkF,MAAEA,GAAUL,EAAKF,MAAMI,UACvBqB,EAASlB,EAAMvD,OAAOsB,eAAeiC,EAAMnD,SAASsE,aAAaxB,EAAKF,MAAM2B,OAAOC,MAAMC,MAC7F,IAAKJ,EACD,OAAO,EACX,IAAIK,EAAOC,EAAQA,SAAC3F,MACpB,IAAK,IAAI4F,EAAIP,EAAOQ,OAAS,EAAGD,GAAK,EAAGA,IACpCF,EAAOC,EAAAA,SAASG,KAAKT,EAAOO,GAAGG,cAAc,KAAML,IACvD,IAAInB,EAAKT,EAAKF,MAAMW,GAAGyB,QAAQ7B,EAAM9D,IAAK8D,EAAM9D,IAAK,IAAIN,EAAKA,MAAC2F,EAAM,EAAG,IAGxE,OAFAnB,EAAGC,aAAaJ,gBAAcvE,KAAK0E,EAAGhF,IAAIE,QAAQ0E,EAAM9D,IAAM,KAC9DyD,EAAKD,SAASU,IACP,CACX,CACA,SAAS0B,EAAcrC,GACnB,KAAMA,EAAMI,qBAAqB/E,GAC7B,OAAO,KACX,IAAIgC,EAAOiF,SAASC,cAAc,OAElC,OADAlF,EAAKmF,UAAY,wBACVC,EAAAA,cAAcC,OAAO1C,EAAMrE,IAAK,CAACgH,EAAUA,WAACC,OAAO5C,EAAMI,UAAUrE,KAAMsB,EAAM,CAAEwF,IAAK,eACjG,uCA3EA,WACI,OAAO,IAAIC,EAAAA,OAAO,CACdC,MAAO,CACHC,YAAaX,EACbY,uBAAsB,CAACC,EAAOC,EAASC,IAC5BD,EAAQ1G,KAAO2G,EAAM3G,KAAOpB,EAAUW,MAAMoH,GAAS,IAAI/H,EAAU+H,GAAS,KAEvFvC,cACAtB,gBACA8D,gBAAiB,CAAE9B,YAAaA,KAG5C"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../rope-sequence/dist/index.js"),t=require("../../prosemirror-transform/dist/index.js"),n=require("../../prosemirror-state/dist/index.js");class s{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let p,l,a=e.tr,m=[],u=[];return this.items.forEach(((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),r=n.maps.length),r--,void u.push(e);if(n){u.push(new i(e.map));let t,s=e.step.map(n.slice(r));s&&a.maybeStep(s).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],m.push(new i(t,void 0,void 0,m.length+u.length))),r--,t&&n.appendMap(t,r)}else a.maybeStep(e.step);return e.selection?(p=n?e.selection.map(n.slice(r)):e.selection,l=new s(this.items.slice(0,o).append(u.reverse().concat(m)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:l,transform:a,selection:p}}addTransform(e,t,n,r){let p=[],l=this.eventCount,a=this.items,m=!r&&a.length?a.get(a.length-1):null;for(let n=0;n<e.steps.length;n++){let s,o=e.steps[n].invert(e.docs[n]),u=new i(e.mapping.maps[n],o,t);(s=m&&m.merge(u))&&(u=s,n?p.pop():a=a.slice(0,a.length-1)),p.push(u),t&&(l++,t=void 0),r||(m=u)}let u=l-n.depth;return u>o&&(a=function(e,t){let n;return e.forEach(((e,s)=>{if(e.selection&&0==t--)return n=s,!1})),e.slice(n)}(a,u),l-=u),new s(a.append(p),l)}remapping(e,n){let s=new t.Mapping;return this.items.forEach(((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?s.maps.length-t.mirrorOffset:void 0;s.appendMap(t.map,i)}),e,n),s}addMaps(e){return 0==this.eventCount?this:new s(this.items.append(e.map((e=>new i(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,p=e.steps.length,l=this.eventCount;this.items.forEach((e=>{e.selection&&l--}),r);let a=t;this.items.forEach((t=>{let s=o.getMirror(--a);if(null==s)return;p=Math.min(p,s);let r=o.maps[s];if(t.step){let p=e.steps[s].invert(e.docs[s]),m=t.selection&&t.selection.map(o.slice(a+1,s));m&&l++,n.push(new i(r,p,m))}else n.push(new i(r))}),r);let m=[];for(let e=t;e<p;e++)m.push(new i(o.maps[e]));let u=this.items.slice(0,r).append(m).append(n),h=new s(u,l);return h.emptyItemCount()>500&&(h=h.compress(this.items.length-n.length)),h}emptyItemCount(){let e=0;return this.items.forEach((t=>{t.step||e++})),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,o=[],p=0;return this.items.forEach(((e,s)=>{if(s>=t)o.push(e),e.selection&&p++;else if(e.step){let t=e.step.map(n.slice(r)),s=t&&t.getMap();if(r--,s&&n.appendMap(s,r),t){let l=e.selection&&e.selection.map(n.slice(r));l&&p++;let a,m=new i(s.invert(),t,l),u=o.length-1;(a=o.length&&o[u].merge(m))?o[u]=a:o.push(m)}}else e.map&&r--}),this.items.length,0),new s(e.default.from(o.reverse()),p)}}s.empty=new s(e.default.empty,0);class i{constructor(e,t,n,s){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=s}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new i(t.getMap().invert(),t,this.selection)}}}class r{constructor(e,t,n,s,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=s,this.prevComposition=i}}const o=20;function p(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach(((e,n,s,i)=>t.push(s,i)));return t}function l(e,t){if(!e)return null;let n=[];for(let s=0;s<e.length;s+=2){let i=t.map(e[s],1),r=t.map(e[s+1],-1);i<=r&&n.push(i,r)}return n}let a=!1,m=null;function u(e){let t=e.plugins;if(m!=t){a=!1,m=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){a=!0;break}}return a}const h=new n.PluginKey("history"),d=new n.PluginKey("closeHistory");function g(e,t){return(n,s)=>{let i=h.getState(n);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(s){let o=function(e,t,n){let s=u(t),i=h.get(t).spec.config,o=(n?e.undone:e.done).popEvent(t,s);if(!o)return null;let p=o.selection.resolve(o.transform.doc),l=(n?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,s),a=new r(n?l:o.remaining,n?o.remaining:l,null,0,-1);return o.transform.setSelection(p).setMeta(h,{redo:n,historyState:a})}(i,n,e);o&&s(t?o.scrollIntoView():o)}return!0}}const c=g(!1,!0),f=g(!0,!0);exports.history=function(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new n.Plugin({key:h,state:{init:()=>new r(s.empty,s.empty,null,0,-1),apply:(t,n,i)=>function(e,t,n,i){let o,a=n.getMeta(h);if(a)return a.historyState;n.getMeta(d)&&(e=new r(e.done,e.undone,null,0,-1));let m=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(m&&m.getMeta(h))return m.getMeta(h).redo?new r(e.done.addTransform(n,void 0,i,u(t)),e.undone,p(n.mapping.maps),e.prevTime,e.prevComposition):new r(e.done,e.undone.addTransform(n,void 0,i,u(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||m&&!1===m.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new r(e.done.rebased(n,o),e.undone.rebased(n,o),l(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new r(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),l(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),a=0==e.prevTime||!m&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-i.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach(((e,s)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&s>=t[i]&&(n=!0)})),n}(n,e.prevRanges)),h=m?l(e.prevRanges,n.mapping):p(n.mapping.maps);return new r(e.done.addTransform(n,a?t.selection.getBookmark():void 0,i,u(t)),s.empty,h,n.time,null==o?e.prevComposition:o)}}(n,i,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,s="historyUndo"==n?c:"historyRedo"==n?f:null;return!!s&&(t.preventDefault(),s(e.state,e.dispatch))}}}})},exports.redo=f,exports.undo=c;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|