@glodon-aiot/react-components 3.3.0-beta.14 → 3.3.0-beta.17
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/es/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/prism-core.mjs +4 -0
- package/dist/es/_virtual/types.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +44 -0
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +47 -0
- package/dist/es/components/Markdown/Code/index.mjs +69 -0
- package/dist/es/components/Markdown/Image/index.mjs +60 -0
- package/dist/es/components/Markdown/Video/index.mjs +22 -0
- package/dist/es/components/Markdown/index.mjs +75 -0
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/index.mjs +30 -25
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +908 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +242 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +78 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
- package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
- package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
- package/dist/es/node_modules/is-decimal/index.mjs +8 -0
- package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
- package/dist/es/node_modules/parse-entities/index.mjs +83 -0
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
- package/dist/es/node_modules/property-information/find.mjs +25 -0
- package/dist/es/node_modules/property-information/html.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
- package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
- package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
- package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/property-information/normalize.mjs +7 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
- package/dist/es/node_modules/refractor/core.mjs +111 -0
- package/dist/es/node_modules/refractor/index.mjs +553 -0
- package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
- package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
- package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
- package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
- package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
- package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
- package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
- package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
- package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
- package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
- package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
- package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
- package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
- package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
- package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
- package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
- package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
- package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
- package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
- package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
- package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
- package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
- package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
- package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
- package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
- package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
- package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
- package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
- package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
- package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
- package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
- package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
- package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
- package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
- package/dist/es/node_modules/xtend/immutable.mjs +12 -0
- package/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/utils/markdown/index.mjs +29 -0
- package/dist/lib/index.js +25 -1
- package/dist/src/components/Copy/index.d.ts +5 -0
- package/dist/src/components/Markdown/ATag/index.d.ts +2 -0
- package/dist/src/components/Markdown/Code/index.d.ts +2 -0
- package/dist/src/components/Markdown/Image/index.d.ts +2 -0
- package/dist/src/components/Markdown/Video/index.d.ts +2 -0
- package/dist/src/components/Markdown/index.d.ts +9 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/clipboard.d.ts +11 -0
- package/dist/src/utils/markdown/index.d.ts +10 -0
- package/package.json +18 -2
- package/dist/es/style.css +0 -1
- package/dist/lib/style.css +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var I, o;
|
|
2
|
+
function t() {
|
|
3
|
+
if (o)
|
|
4
|
+
return I;
|
|
5
|
+
o = 1, I = e, e.displayName = "lolcode", e.aliases = [];
|
|
6
|
+
function e(r) {
|
|
7
|
+
r.languages.lolcode = {
|
|
8
|
+
comment: [/\bOBTW\s[\s\S]*?\sTLDR\b/, /\bBTW.+/],
|
|
9
|
+
string: {
|
|
10
|
+
pattern: /"(?::.|[^":])*"/,
|
|
11
|
+
inside: {
|
|
12
|
+
variable: /:\{[^}]+\}/,
|
|
13
|
+
symbol: [/:\([a-f\d]+\)/i, /:\[[^\]]+\]/, /:[)>o":]/]
|
|
14
|
+
},
|
|
15
|
+
greedy: !0
|
|
16
|
+
},
|
|
17
|
+
number: /(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,
|
|
18
|
+
symbol: {
|
|
19
|
+
pattern: /(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,
|
|
20
|
+
lookbehind: !0,
|
|
21
|
+
inside: {
|
|
22
|
+
keyword: /A(?=\s)/
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
label: {
|
|
26
|
+
pattern: /((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,
|
|
27
|
+
lookbehind: !0,
|
|
28
|
+
alias: "string"
|
|
29
|
+
},
|
|
30
|
+
function: {
|
|
31
|
+
pattern: /((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,
|
|
32
|
+
lookbehind: !0
|
|
33
|
+
},
|
|
34
|
+
keyword: [{
|
|
35
|
+
pattern: /(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,
|
|
36
|
+
lookbehind: !0
|
|
37
|
+
}, /'Z(?=\s|,|$)/],
|
|
38
|
+
boolean: {
|
|
39
|
+
pattern: /(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,
|
|
40
|
+
lookbehind: !0
|
|
41
|
+
},
|
|
42
|
+
variable: {
|
|
43
|
+
pattern: /(^|\s)IT(?=\s|,|$)/,
|
|
44
|
+
lookbehind: !0
|
|
45
|
+
},
|
|
46
|
+
operator: {
|
|
47
|
+
pattern: /(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,
|
|
48
|
+
lookbehind: !0
|
|
49
|
+
},
|
|
50
|
+
punctuation: /\.{3}|…|,|!/
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return I;
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
t as __require
|
|
57
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var r, n;
|
|
2
|
+
function t() {
|
|
3
|
+
if (n)
|
|
4
|
+
return r;
|
|
5
|
+
n = 1, r = e, e.displayName = "lua", e.aliases = [];
|
|
6
|
+
function e(a) {
|
|
7
|
+
a.languages.lua = {
|
|
8
|
+
comment: /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
|
|
9
|
+
// \z may be used to skip the following space
|
|
10
|
+
string: {
|
|
11
|
+
pattern: /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,
|
|
12
|
+
greedy: !0
|
|
13
|
+
},
|
|
14
|
+
number: /\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,
|
|
15
|
+
keyword: /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,
|
|
16
|
+
function: /(?!\d)\w+(?=\s*(?:[({]))/,
|
|
17
|
+
operator: [/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/, {
|
|
18
|
+
// Match ".." but don't break "..."
|
|
19
|
+
pattern: /(^|[^.])\.\.(?!\.)/,
|
|
20
|
+
lookbehind: !0
|
|
21
|
+
}],
|
|
22
|
+
punctuation: /[\[\](){},;]|\.+|:+/
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return r;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
t as __require
|
|
29
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var r, t;
|
|
2
|
+
function n() {
|
|
3
|
+
if (t)
|
|
4
|
+
return r;
|
|
5
|
+
t = 1, r = e, e.displayName = "magma", e.aliases = [];
|
|
6
|
+
function e(a) {
|
|
7
|
+
a.languages.magma = {
|
|
8
|
+
output: {
|
|
9
|
+
pattern: /^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,
|
|
10
|
+
lookbehind: !0,
|
|
11
|
+
greedy: !0
|
|
12
|
+
},
|
|
13
|
+
comment: {
|
|
14
|
+
pattern: /\/\/.*|\/\*[\s\S]*?\*\//,
|
|
15
|
+
greedy: !0
|
|
16
|
+
},
|
|
17
|
+
string: {
|
|
18
|
+
pattern: /(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,
|
|
19
|
+
lookbehind: !0,
|
|
20
|
+
greedy: !0
|
|
21
|
+
},
|
|
22
|
+
// http://magma.maths.usyd.edu.au/magma/handbook/text/82
|
|
23
|
+
keyword: /\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,
|
|
24
|
+
boolean: /\b(?:false|true)\b/,
|
|
25
|
+
generator: {
|
|
26
|
+
pattern: /\b[a-z_]\w*(?=\s*<)/i,
|
|
27
|
+
alias: "class-name"
|
|
28
|
+
},
|
|
29
|
+
function: /\b[a-z_]\w*(?=\s*\()/i,
|
|
30
|
+
number: {
|
|
31
|
+
pattern: /(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,
|
|
32
|
+
lookbehind: !0
|
|
33
|
+
},
|
|
34
|
+
operator: /->|[-+*/^~!|#=]|:=|\.\./,
|
|
35
|
+
punctuation: /[()[\]{}<>,;.:]/
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return r;
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
n as __require
|
|
42
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var i, r;
|
|
2
|
+
function t() {
|
|
3
|
+
if (r)
|
|
4
|
+
return i;
|
|
5
|
+
r = 1, i = e, e.displayName = "makefile", e.aliases = [];
|
|
6
|
+
function e(a) {
|
|
7
|
+
a.languages.makefile = {
|
|
8
|
+
comment: {
|
|
9
|
+
pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,
|
|
10
|
+
lookbehind: !0
|
|
11
|
+
},
|
|
12
|
+
string: {
|
|
13
|
+
pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
|
|
14
|
+
greedy: !0
|
|
15
|
+
},
|
|
16
|
+
"builtin-target": {
|
|
17
|
+
pattern: /\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,
|
|
18
|
+
alias: "builtin"
|
|
19
|
+
},
|
|
20
|
+
target: {
|
|
21
|
+
pattern: /^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,
|
|
22
|
+
alias: "symbol",
|
|
23
|
+
inside: {
|
|
24
|
+
variable: /\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
variable: /\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,
|
|
28
|
+
// Directives
|
|
29
|
+
keyword: /-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,
|
|
30
|
+
function: {
|
|
31
|
+
pattern: /(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,
|
|
32
|
+
lookbehind: !0
|
|
33
|
+
},
|
|
34
|
+
operator: /(?:::|[?:+!])?=|[|@]/,
|
|
35
|
+
punctuation: /[:;(){}]/
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return i;
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
t as __require
|
|
42
|
+
};
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
var h, k;
|
|
2
|
+
function $() {
|
|
3
|
+
if (k)
|
|
4
|
+
return h;
|
|
5
|
+
k = 1, h = g, g.displayName = "markdown", g.aliases = ["md"];
|
|
6
|
+
function g(_) {
|
|
7
|
+
(function(e) {
|
|
8
|
+
var m = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
9
|
+
function p(n) {
|
|
10
|
+
return n = n.replace(/<inner>/g, function() {
|
|
11
|
+
return m;
|
|
12
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + n + ")");
|
|
13
|
+
}
|
|
14
|
+
var c = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, d = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
15
|
+
return c;
|
|
16
|
+
}), b = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
17
|
+
e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", {
|
|
18
|
+
"front-matter-block": {
|
|
19
|
+
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
20
|
+
lookbehind: !0,
|
|
21
|
+
greedy: !0,
|
|
22
|
+
inside: {
|
|
23
|
+
punctuation: /^---|---$/,
|
|
24
|
+
"front-matter": {
|
|
25
|
+
pattern: /\S+(?:\s+\S+)*/,
|
|
26
|
+
alias: ["yaml", "language-yaml"],
|
|
27
|
+
inside: e.languages.yaml
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
blockquote: {
|
|
32
|
+
// > ...
|
|
33
|
+
pattern: /^>(?:[\t ]*>)*/m,
|
|
34
|
+
alias: "punctuation"
|
|
35
|
+
},
|
|
36
|
+
table: {
|
|
37
|
+
pattern: RegExp("^" + d + b + "(?:" + d + ")*", "m"),
|
|
38
|
+
inside: {
|
|
39
|
+
"table-data-rows": {
|
|
40
|
+
pattern: RegExp("^(" + d + b + ")(?:" + d + ")*$"),
|
|
41
|
+
lookbehind: !0,
|
|
42
|
+
inside: {
|
|
43
|
+
"table-data": {
|
|
44
|
+
pattern: RegExp(c),
|
|
45
|
+
inside: e.languages.markdown
|
|
46
|
+
},
|
|
47
|
+
punctuation: /\|/
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"table-line": {
|
|
51
|
+
pattern: RegExp("^(" + d + ")" + b + "$"),
|
|
52
|
+
lookbehind: !0,
|
|
53
|
+
inside: {
|
|
54
|
+
punctuation: /\||:?-{3,}:?/
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"table-header-row": {
|
|
58
|
+
pattern: RegExp("^" + d + "$"),
|
|
59
|
+
inside: {
|
|
60
|
+
"table-header": {
|
|
61
|
+
pattern: RegExp(c),
|
|
62
|
+
alias: "important",
|
|
63
|
+
inside: e.languages.markdown
|
|
64
|
+
},
|
|
65
|
+
punctuation: /\|/
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
code: [{
|
|
71
|
+
// Prefixed by 4 spaces or 1 tab and preceded by an empty line
|
|
72
|
+
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
73
|
+
lookbehind: !0,
|
|
74
|
+
alias: "keyword"
|
|
75
|
+
}, {
|
|
76
|
+
// ```optional language
|
|
77
|
+
// code block
|
|
78
|
+
// ```
|
|
79
|
+
pattern: /^```[\s\S]*?^```$/m,
|
|
80
|
+
greedy: !0,
|
|
81
|
+
inside: {
|
|
82
|
+
"code-block": {
|
|
83
|
+
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
84
|
+
lookbehind: !0
|
|
85
|
+
},
|
|
86
|
+
"code-language": {
|
|
87
|
+
pattern: /^(```).+/,
|
|
88
|
+
lookbehind: !0
|
|
89
|
+
},
|
|
90
|
+
punctuation: /```/
|
|
91
|
+
}
|
|
92
|
+
}],
|
|
93
|
+
title: [{
|
|
94
|
+
// title 1
|
|
95
|
+
// =======
|
|
96
|
+
// title 2
|
|
97
|
+
// -------
|
|
98
|
+
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
99
|
+
alias: "important",
|
|
100
|
+
inside: {
|
|
101
|
+
punctuation: /==+$|--+$/
|
|
102
|
+
}
|
|
103
|
+
}, {
|
|
104
|
+
// # title 1
|
|
105
|
+
// ###### title 6
|
|
106
|
+
pattern: /(^\s*)#.+/m,
|
|
107
|
+
lookbehind: !0,
|
|
108
|
+
alias: "important",
|
|
109
|
+
inside: {
|
|
110
|
+
punctuation: /^#+|#+$/
|
|
111
|
+
}
|
|
112
|
+
}],
|
|
113
|
+
hr: {
|
|
114
|
+
// ***
|
|
115
|
+
// ---
|
|
116
|
+
// * * *
|
|
117
|
+
// -----------
|
|
118
|
+
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
119
|
+
lookbehind: !0,
|
|
120
|
+
alias: "punctuation"
|
|
121
|
+
},
|
|
122
|
+
list: {
|
|
123
|
+
// * item
|
|
124
|
+
// + item
|
|
125
|
+
// - item
|
|
126
|
+
// 1. item
|
|
127
|
+
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
128
|
+
lookbehind: !0,
|
|
129
|
+
alias: "punctuation"
|
|
130
|
+
},
|
|
131
|
+
"url-reference": {
|
|
132
|
+
// [id]: http://example.com "Optional title"
|
|
133
|
+
// [id]: http://example.com 'Optional title'
|
|
134
|
+
// [id]: http://example.com (Optional title)
|
|
135
|
+
// [id]: <http://example.com> "Optional title"
|
|
136
|
+
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
137
|
+
inside: {
|
|
138
|
+
variable: {
|
|
139
|
+
pattern: /^(!?\[)[^\]]+/,
|
|
140
|
+
lookbehind: !0
|
|
141
|
+
},
|
|
142
|
+
string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
143
|
+
punctuation: /^[\[\]!:]|[<>]/
|
|
144
|
+
},
|
|
145
|
+
alias: "url"
|
|
146
|
+
},
|
|
147
|
+
bold: {
|
|
148
|
+
// **strong**
|
|
149
|
+
// __strong__
|
|
150
|
+
// allow one nested instance of italic text using the same delimiter
|
|
151
|
+
pattern: p(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
|
|
152
|
+
lookbehind: !0,
|
|
153
|
+
greedy: !0,
|
|
154
|
+
inside: {
|
|
155
|
+
content: {
|
|
156
|
+
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
157
|
+
lookbehind: !0,
|
|
158
|
+
inside: {}
|
|
159
|
+
// see below
|
|
160
|
+
},
|
|
161
|
+
punctuation: /\*\*|__/
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
italic: {
|
|
165
|
+
// *em*
|
|
166
|
+
// _em_
|
|
167
|
+
// allow one nested instance of bold text using the same delimiter
|
|
168
|
+
pattern: p(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
|
|
169
|
+
lookbehind: !0,
|
|
170
|
+
greedy: !0,
|
|
171
|
+
inside: {
|
|
172
|
+
content: {
|
|
173
|
+
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
174
|
+
lookbehind: !0,
|
|
175
|
+
inside: {}
|
|
176
|
+
// see below
|
|
177
|
+
},
|
|
178
|
+
punctuation: /[*_]/
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
strike: {
|
|
182
|
+
// ~~strike through~~
|
|
183
|
+
// ~strike~
|
|
184
|
+
// eslint-disable-next-line regexp/strict
|
|
185
|
+
pattern: p(/(~~?)(?:(?!~)<inner>)+\2/.source),
|
|
186
|
+
lookbehind: !0,
|
|
187
|
+
greedy: !0,
|
|
188
|
+
inside: {
|
|
189
|
+
content: {
|
|
190
|
+
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
191
|
+
lookbehind: !0,
|
|
192
|
+
inside: {}
|
|
193
|
+
// see below
|
|
194
|
+
},
|
|
195
|
+
punctuation: /~~?/
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"code-snippet": {
|
|
199
|
+
// `code`
|
|
200
|
+
// ``code``
|
|
201
|
+
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
202
|
+
lookbehind: !0,
|
|
203
|
+
greedy: !0,
|
|
204
|
+
alias: ["code", "keyword"]
|
|
205
|
+
},
|
|
206
|
+
url: {
|
|
207
|
+
// [example](http://example.com "Optional title")
|
|
208
|
+
// [example][id]
|
|
209
|
+
// [example] [id]
|
|
210
|
+
pattern: p(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
|
|
211
|
+
lookbehind: !0,
|
|
212
|
+
greedy: !0,
|
|
213
|
+
inside: {
|
|
214
|
+
operator: /^!/,
|
|
215
|
+
content: {
|
|
216
|
+
pattern: /(^\[)[^\]]+(?=\])/,
|
|
217
|
+
lookbehind: !0,
|
|
218
|
+
inside: {}
|
|
219
|
+
// see below
|
|
220
|
+
},
|
|
221
|
+
variable: {
|
|
222
|
+
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
223
|
+
lookbehind: !0
|
|
224
|
+
},
|
|
225
|
+
url: {
|
|
226
|
+
pattern: /(^\]\()[^\s)]+/,
|
|
227
|
+
lookbehind: !0
|
|
228
|
+
},
|
|
229
|
+
string: {
|
|
230
|
+
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
231
|
+
lookbehind: !0
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}), ["url", "bold", "italic", "strike"].forEach(function(n) {
|
|
236
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(t) {
|
|
237
|
+
n !== t && (e.languages.markdown[n].inside.content.inside[t] = e.languages.markdown[t]);
|
|
238
|
+
});
|
|
239
|
+
}), e.hooks.add("after-tokenize", function(n) {
|
|
240
|
+
if (n.language !== "markdown" && n.language !== "md")
|
|
241
|
+
return;
|
|
242
|
+
function t(i) {
|
|
243
|
+
if (!(!i || typeof i == "string"))
|
|
244
|
+
for (var r = 0, u = i.length; r < u; r++) {
|
|
245
|
+
var o = i[r];
|
|
246
|
+
if (o.type !== "code") {
|
|
247
|
+
t(o.content);
|
|
248
|
+
continue;
|
|
249
|
+
}
|
|
250
|
+
var l = o.content[1], a = o.content[3];
|
|
251
|
+
if (l && a && l.type === "code-language" && a.type === "code-block" && typeof l.content == "string") {
|
|
252
|
+
var s = l.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
253
|
+
s = (/[a-z][\w-]*/i.exec(s) || [""])[0].toLowerCase();
|
|
254
|
+
var f = "language-" + s;
|
|
255
|
+
a.alias ? typeof a.alias == "string" ? a.alias = [a.alias, f] : a.alias.push(f) : a.alias = [f];
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
t(n.tokens);
|
|
260
|
+
}), e.hooks.add("wrap", function(n) {
|
|
261
|
+
if (n.type === "code-block") {
|
|
262
|
+
for (var t = "", i = 0, r = n.classes.length; i < r; i++) {
|
|
263
|
+
var u = n.classes[i], o = /language-(.+)/.exec(u);
|
|
264
|
+
if (o) {
|
|
265
|
+
t = o[1];
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
var l = e.languages[t];
|
|
270
|
+
if (l)
|
|
271
|
+
n.content = e.highlight(x(n.content.value), l, t);
|
|
272
|
+
else if (t && t !== "none" && e.plugins.autoloader) {
|
|
273
|
+
var a = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
274
|
+
n.attributes.id = a, e.plugins.autoloader.loadLanguages(t, function() {
|
|
275
|
+
var s = document.getElementById(a);
|
|
276
|
+
s && (s.innerHTML = e.highlight(s.textContent, e.languages[t], t));
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
});
|
|
281
|
+
var w = RegExp(e.languages.markup.tag.pattern.source, "gi"), y = {
|
|
282
|
+
amp: "&",
|
|
283
|
+
lt: "<",
|
|
284
|
+
gt: ">",
|
|
285
|
+
quot: '"'
|
|
286
|
+
}, v = String.fromCodePoint || String.fromCharCode;
|
|
287
|
+
function x(n) {
|
|
288
|
+
var t = n.replace(w, "");
|
|
289
|
+
return t = t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(i, r) {
|
|
290
|
+
if (r = r.toLowerCase(), r[0] === "#") {
|
|
291
|
+
var u;
|
|
292
|
+
return r[1] === "x" ? u = parseInt(r.slice(2), 16) : u = Number(r.slice(1)), v(u);
|
|
293
|
+
} else {
|
|
294
|
+
var o = y[r];
|
|
295
|
+
return o || i;
|
|
296
|
+
}
|
|
297
|
+
}), t;
|
|
298
|
+
}
|
|
299
|
+
e.languages.md = e.languages.markdown;
|
|
300
|
+
})(_);
|
|
301
|
+
}
|
|
302
|
+
return h;
|
|
303
|
+
}
|
|
304
|
+
export {
|
|
305
|
+
$ as __require
|
|
306
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var s, T;
|
|
2
|
+
function S() {
|
|
3
|
+
if (T)
|
|
4
|
+
return s;
|
|
5
|
+
T = 1, s = c, c.displayName = "markupTemplating", c.aliases = [];
|
|
6
|
+
function c(m) {
|
|
7
|
+
(function(f) {
|
|
8
|
+
function k(r, t) {
|
|
9
|
+
return "___" + r.toUpperCase() + t + "___";
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperties(f.languages["markup-templating"] = {}, {
|
|
12
|
+
buildPlaceholders: {
|
|
13
|
+
/**
|
|
14
|
+
* Tokenize all inline templating expressions matching `placeholderPattern`.
|
|
15
|
+
*
|
|
16
|
+
* If `replaceFilter` is provided, only matches of `placeholderPattern` for which `replaceFilter` returns
|
|
17
|
+
* `true` will be replaced.
|
|
18
|
+
*
|
|
19
|
+
* @param {object} env The environment of the `before-tokenize` hook.
|
|
20
|
+
* @param {string} language The language id.
|
|
21
|
+
* @param {RegExp} placeholderPattern The matches of this pattern will be replaced by placeholders.
|
|
22
|
+
* @param {(match: string) => boolean} [replaceFilter]
|
|
23
|
+
*/
|
|
24
|
+
value: function(r, t, o, p) {
|
|
25
|
+
if (r.language === t) {
|
|
26
|
+
var u = r.tokenStack = [];
|
|
27
|
+
r.code = r.code.replace(o, function(n) {
|
|
28
|
+
if (typeof p == "function" && !p(n))
|
|
29
|
+
return n;
|
|
30
|
+
for (var i = u.length, a; r.code.indexOf(a = k(t, i)) !== -1; )
|
|
31
|
+
++i;
|
|
32
|
+
return u[i] = n, a;
|
|
33
|
+
}), r.grammar = f.languages.markup;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
tokenizePlaceholders: {
|
|
38
|
+
/**
|
|
39
|
+
* Replace placeholders with proper tokens after tokenizing.
|
|
40
|
+
*
|
|
41
|
+
* @param {object} env The environment of the `after-tokenize` hook.
|
|
42
|
+
* @param {string} language The language id.
|
|
43
|
+
*/
|
|
44
|
+
value: function(r, t) {
|
|
45
|
+
if (r.language !== t || !r.tokenStack)
|
|
46
|
+
return;
|
|
47
|
+
r.grammar = f.languages[t];
|
|
48
|
+
var o = 0, p = Object.keys(r.tokenStack);
|
|
49
|
+
function u(n) {
|
|
50
|
+
for (var i = 0; i < n.length && !(o >= p.length); i++) {
|
|
51
|
+
var a = n[i];
|
|
52
|
+
if (typeof a == "string" || a.content && typeof a.content == "string") {
|
|
53
|
+
var y = p[o], d = r.tokenStack[y], l = typeof a == "string" ? a : a.content, h = k(t, y), g = l.indexOf(h);
|
|
54
|
+
if (g > -1) {
|
|
55
|
+
++o;
|
|
56
|
+
var v = l.substring(0, g), b = new f.Token(t, f.tokenize(d, r.grammar), "language-" + t, d), _ = l.substring(g + h.length), e = [];
|
|
57
|
+
v && e.push.apply(e, u([v])), e.push(b), _ && e.push.apply(e, u([_])), typeof a == "string" ? n.splice.apply(n, [i, 1].concat(e)) : a.content = e;
|
|
58
|
+
}
|
|
59
|
+
} else
|
|
60
|
+
a.content && u(a.content);
|
|
61
|
+
}
|
|
62
|
+
return n;
|
|
63
|
+
}
|
|
64
|
+
u(r.tokens);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
})(m);
|
|
69
|
+
}
|
|
70
|
+
return s;
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
S as __require
|
|
74
|
+
};
|