@fangzhongya/vue-archive 0.0.2-7 → 0.0.2
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.js +28 -26
- package/dist/es/_virtual/_plugin-vue_export-helper.js +7 -6
- package/dist/es/_virtual/emphasis.js +2 -2
- package/dist/es/_virtual/entities.js +7 -6
- package/dist/es/_virtual/html_re.js +2 -2
- package/dist/es/_virtual/index.js +7 -6
- package/dist/es/_virtual/index2.js +2 -2
- package/dist/es/_virtual/index3.js +2 -2
- package/dist/es/_virtual/index4.js +2 -2
- package/dist/es/_virtual/parser-html.js +7 -6
- package/dist/es/_virtual/parser-typescript.js +7 -6
- package/dist/es/_virtual/punycode.es6.js +4 -4
- package/dist/es/_virtual/standalone.js +7 -6
- package/dist/es/_virtual/strikethrough.js +2 -2
- package/dist/es/_virtual/utils.js +2 -2
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +3 -3
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +3 -3
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +16 -8
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +18 -12
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +40 -27
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +9 -6
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +8 -5
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +14 -11
- package/dist/es/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +12 -7
- package/dist/es/node_modules/.pnpm/@highlightjs_vue-plugin@2.1.0_jsvakxz56e7tk77soxhxnrhzhm/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +24 -24
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/index.js +6 -6
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/block-parser.js +21 -12
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/index.js +33 -29
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/source-parser.js +38 -17
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/spec-parser.js +11 -9
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/description.js +28 -17
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/name.js +69 -38
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/tag.js +19 -10
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/type.js +51 -26
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/primitives.js +8 -5
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/align.js +12 -1
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/crlf.js +12 -1
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/indent.js +12 -1
- package/dist/es/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/util.js +20 -20
- package/dist/es/node_modules/.pnpm/entities@3.0.1/node_modules/entities/lib/maps/entities.json.js +6373 -4251
- package/dist/es/node_modules/.pnpm/es-module-lexer@1.1.1/node_modules/es-module-lexer/dist/lexer.js +38 -40
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/common.js +3 -3
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/core.js +3 -3
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/common.js +79 -79
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/core.js +1157 -648
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/bash.js +75 -57
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/c.js +157 -137
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/cpp.js +118 -93
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/csharp.js +112 -92
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/css.js +92 -77
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/diff.js +13 -11
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/go.js +98 -92
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/graphql.js +20 -17
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ini.js +51 -39
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/java.js +132 -114
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/javascript.js +237 -192
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/json.js +26 -21
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/kotlin.js +98 -82
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/less.js +161 -134
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/lua.js +34 -29
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/makefile.js +33 -26
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/markdown.js +95 -77
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/objectivec.js +188 -179
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/perl.js +78 -61
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php-template.js +17 -15
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php.js +157 -121
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/plaintext.js +11 -9
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python-repl.js +10 -8
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python.js +191 -172
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/r.js +39 -33
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ruby.js +159 -131
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/rust.js +45 -37
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/scss.js +94 -79
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/shell.js +10 -8
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/sql.js +78 -49
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/swift.js +292 -219
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/typescript.js +284 -223
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/vbnet.js +51 -37
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/wasm.js +49 -39
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/xml.js +55 -45
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/yaml.js +66 -46
- package/dist/es/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/styles/stackoverflow-light.css.js +2 -2
- package/dist/es/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/index.js +304 -138
- package/dist/es/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/lib/re.js +49 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/index.js +8 -8
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/entities.js +5 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_blocks.js +2 -2
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_re.js +18 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/utils.js +153 -77
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/index.js +8 -8
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_destination.js +61 -26
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_label.js +27 -13
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -14
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/index.js +156 -83
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_block.js +69 -42
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_core.js +32 -28
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_inline.js +96 -66
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/commonmark.js +7 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/default.js +7 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/zero.js +7 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/renderer.js +132 -64
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/ruler.js +122 -74
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/blockquote.js +147 -27
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/code.js +18 -12
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/fence.js +63 -11
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/heading.js +40 -9
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/hr.js +32 -11
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/html_block.js +56 -26
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/lheading.js +53 -18
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/list.js +196 -53
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/paragraph.js +32 -12
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/reference.js +142 -44
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/state_block.js +150 -60
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/table.js +174 -44
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/block.js +12 -4
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/inline.js +9 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/linkify.js +90 -20
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/normalize.js +8 -5
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/replacements.js +53 -17
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/smartquotes.js +143 -50
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/state_core.js +11 -7
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/text_join.js +26 -10
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/autolink.js +57 -10
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/backticks.js +42 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +59 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/emphasis.js +64 -24
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/entity.js +45 -13
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/escape.js +51 -16
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/fragments_join.js +21 -6
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/html_inline.js +37 -13
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/image.js +107 -32
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/link.js +100 -26
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/linkify.js +44 -4
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/newline.js +32 -19
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/state_inline.js +91 -23
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/strikethrough.js +79 -25
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/text.js +18 -9
- package/dist/es/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/token.js +52 -21
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js +74 -32
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js +54 -29
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js +16 -4
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +10 -10
- package/dist/es/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js +158 -60
- package/dist/es/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-html.js +2375 -2274
- package/dist/es/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-typescript.js +23493 -23223
- package/dist/es/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/standalone.js +8281 -8174
- package/dist/es/node_modules/.pnpm/punycode@2.3.0/node_modules/punycode/punycode.es6.js +208 -107
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +9 -4
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +9 -4
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +2 -2
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +9 -4
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +18 -10
- package/dist/es/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +9 -4
- package/dist/es/packages/components/aside/index.vue.js +109 -75
- package/dist/es/packages/components/aside/index.vue2.js +2 -2
- package/dist/es/packages/components/boxurl/index.vue.js +55 -31
- package/dist/es/packages/components/boxurl/index.vue2.js +2 -2
- package/dist/es/packages/components/choice/choice.vue.js +43 -33
- package/dist/es/packages/components/choice/choice.vue2.js +2 -2
- package/dist/es/packages/components/choice/index.vue.js +69 -45
- package/dist/es/packages/components/choice/index.vue2.js +2 -2
- package/dist/es/packages/components/code/highlight.vue.js +11 -11
- package/dist/es/packages/components/code/highlight.vue2.js +4 -4
- package/dist/es/packages/components/code/index.vue.js +91 -70
- package/dist/es/packages/components/code/index.vue2.js +2 -2
- package/dist/es/packages/components/compo/ftable.vue.js +46 -30
- package/dist/es/packages/components/compo/ftable.vue2.js +2 -2
- package/dist/es/packages/components/compo/index.js +207 -135
- package/dist/es/packages/components/compo/index.vue.js +151 -119
- package/dist/es/packages/components/compo/index.vue2.js +2 -2
- package/dist/es/packages/components/compo/info.vue.js +43 -30
- package/dist/es/packages/components/compo/info.vue2.js +2 -2
- package/dist/es/packages/components/compo/top.js +114 -84
- package/dist/es/packages/components/header/index.vue.js +7 -7
- package/dist/es/packages/components/main/index.vue.js +59 -43
- package/dist/es/packages/components/main/index.vue2.js +2 -2
- package/dist/es/packages/components/md/index.vue.js +53 -42
- package/dist/es/packages/components/md/index.vue2.js +2 -2
- package/dist/es/packages/components/test/index.js +99 -70
- package/dist/es/packages/components/test/index.vue.js +91 -68
- package/dist/es/packages/components/test/index.vue2.js +2 -2
- package/dist/es/packages/components/test/top.js +128 -98
- package/dist/es/packages/components/use/index.js +109 -82
- package/dist/es/packages/components/use/retrie/any/index.vue.js +82 -61
- package/dist/es/packages/components/use/retrie/any/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/array/index.vue.js +54 -37
- package/dist/es/packages/components/use/retrie/array/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/boolean/index.vue.js +61 -40
- package/dist/es/packages/components/use/retrie/boolean/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/choice/index.vue.js +154 -92
- package/dist/es/packages/components/use/retrie/choice/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/choice/index.vue3.js +2 -2
- package/dist/es/packages/components/use/retrie/expose/index.vue.js +65 -44
- package/dist/es/packages/components/use/retrie/expose/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/form/index.vue.js +104 -93
- package/dist/es/packages/components/use/retrie/form/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/function/index.vue.js +60 -45
- package/dist/es/packages/components/use/retrie/function/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/index.vue.js +56 -43
- package/dist/es/packages/components/use/retrie/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/number/index.vue.js +41 -30
- package/dist/es/packages/components/use/retrie/number/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/object/index.vue.js +54 -37
- package/dist/es/packages/components/use/retrie/object/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/other/index.vue.js +54 -35
- package/dist/es/packages/components/use/retrie/other/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/select/index.vue.js +112 -75
- package/dist/es/packages/components/use/retrie/select/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/select/index.vue3.js +2 -2
- package/dist/es/packages/components/use/retrie/slot/index.vue.js +41 -30
- package/dist/es/packages/components/use/retrie/slot/index.vue2.js +2 -2
- package/dist/es/packages/components/use/retrie/string/index.vue.js +36 -24
- package/dist/es/packages/components/use/retrie/string/index.vue2.js +2 -2
- package/dist/es/packages/components/use/set-code.vue.js +148 -100
- package/dist/es/packages/components/use/set-code.vue2.js +2 -2
- package/dist/es/packages/components/use/set-emit.vue.js +46 -32
- package/dist/es/packages/components/use/set-emit.vue2.js +2 -2
- package/dist/es/packages/components/use/set-expose.vue.js +37 -28
- package/dist/es/packages/components/use/set-expose.vue2.js +2 -2
- package/dist/es/packages/components/use/set-props.vue.js +104 -64
- package/dist/es/packages/components/use/set-props.vue2.js +2 -2
- package/dist/es/packages/components/use/set-slot.vue.js +39 -31
- package/dist/es/packages/components/use/set-slot.vue2.js +2 -2
- package/dist/es/packages/components/use/util.js +156 -74
- package/dist/es/packages/config.d.ts +3 -3
- package/dist/es/packages/config.js +8 -8
- package/dist/es/packages/index/index.vue.js +10 -9
- package/dist/es/packages/index/index.vue2.js +2 -2
- package/dist/es/packages/index.js +9 -9
- package/dist/es/packages/page/compon/index.vue.js +2 -2
- package/dist/es/packages/page/compon/index.vue2.js +19 -16
- package/dist/es/packages/page/develop/index.vue.js +2 -2
- package/dist/es/packages/page/develop/index.vue2.js +19 -16
- package/dist/es/packages/page/index/index.vue.js +2 -2
- package/dist/es/packages/page/index/index.vue2.js +50 -36
- package/dist/es/packages/page/single/index.vue.js +2 -2
- package/dist/es/packages/page/single/index.vue2.js +75 -57
- package/dist/es/packages/page/tests/index.vue.js +2 -2
- package/dist/es/packages/page/tests/index.vue2.js +74 -46
- package/dist/es/packages/router/index.js +99 -62
- package/dist/es/packages/utils/common.js +138 -80
- package/dist/es/packages/utils/glob.js +480 -306
- package/dist/es/packages/utils/index.js +14 -13
- package/dist/es/packages/utils/props.js +171 -66
- package/dist/es/packages/utils/storage.js +27 -19
- package/dist/es/style.css +367 -2
- package/dist/lib/_virtual/_commonjsHelpers.js +38 -1
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -1
- package/dist/lib/_virtual/emphasis.js +4 -1
- package/dist/lib/_virtual/entities.js +12 -1
- package/dist/lib/_virtual/html_re.js +4 -1
- package/dist/lib/_virtual/index.js +12 -1
- package/dist/lib/_virtual/index2.js +4 -1
- package/dist/lib/_virtual/index3.js +4 -1
- package/dist/lib/_virtual/index4.js +4 -1
- package/dist/lib/_virtual/parser-html.js +12 -1
- package/dist/lib/_virtual/parser-typescript.js +12 -1
- package/dist/lib/_virtual/punycode.es6.js +5 -1
- package/dist/lib/_virtual/standalone.js +12 -1
- package/dist/lib/_virtual/strikethrough.js +4 -1
- package/dist/lib/_virtual/utils.js +4 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +6 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +6 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +20 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +23 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +44 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +12 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +11 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +21 -1
- package/dist/lib/node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +16 -1
- package/dist/lib/node_modules/.pnpm/@highlightjs_vue-plugin@2.1.0_jsvakxz56e7tk77soxhxnrhzhm/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +34 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/index.js +15 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/block-parser.js +25 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/index.js +41 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/source-parser.js +44 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/spec-parser.js +15 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/description.js +35 -2
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/name.js +83 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/tag.js +22 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/parser/tokenizers/type.js +60 -2
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/primitives.js +9 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/align.js +14 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/crlf.js +13 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/transforms/indent.js +13 -1
- package/dist/lib/node_modules/.pnpm/comment-parser@1.3.1/node_modules/comment-parser/es6/util.js +28 -1
- package/dist/lib/node_modules/.pnpm/entities@3.0.1/node_modules/entities/lib/maps/entities.json.js +6376 -2
- package/dist/lib/node_modules/.pnpm/es-module-lexer@1.1.1/node_modules/es-module-lexer/dist/lexer.js +50 -3
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/common.js +5 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/es/core.js +5 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/common.js +80 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/core.js +1573 -2
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/bash.js +381 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/c.js +289 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/cpp.js +544 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/csharp.js +398 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/css.js +741 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/diff.js +63 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/go.js +144 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/graphql.js +80 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ini.js +126 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/java.js +263 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/javascript.js +691 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/json.js +49 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/kotlin.js +265 -2
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/less.js +822 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/lua.js +70 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/makefile.js +77 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/markdown.js +236 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/objectivec.js +253 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/perl.js +461 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php-template.js +56 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/php.js +586 -2
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/plaintext.js +22 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python-repl.js +35 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/python.js +423 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/r.js +220 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/ruby.js +423 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/rust.js +305 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/scss.js +726 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/shell.js +34 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/sql.js +648 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/swift.js +785 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/typescript.js +779 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/vbnet.js +143 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/wasm.js +131 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/xml.js +236 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/lib/languages/yaml.js +194 -1
- package/dist/lib/node_modules/.pnpm/highlight.js@11.7.0/node_modules/highlight.js/styles/stackoverflow-light.css.js +3 -1
- package/dist/lib/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/index.js +354 -1
- package/dist/lib/node_modules/.pnpm/linkify-it@4.0.1/node_modules/linkify-it/lib/re.js +54 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/index.js +9 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/entities.js +6 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_blocks.js +66 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/html_re.js +19 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/common/utils.js +226 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/index.js +9 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_destination.js +78 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_label.js +32 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/helpers/parse_link_title.js +45 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/index.js +181 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_block.js +79 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_core.js +38 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/parser_inline.js +112 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/commonmark.js +77 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/default.js +39 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/presets/zero.js +58 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/renderer.js +150 -13
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/ruler.js +143 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/blockquote.js +160 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/code.js +26 -2
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/fence.js +67 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/heading.js +43 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/hr.js +36 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/html_block.js +62 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/lheading.js +59 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/list.js +220 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/paragraph.js +36 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/reference.js +152 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/state_block.js +167 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_block/table.js +184 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/block.js +14 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/inline.js +11 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/linkify.js +100 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/normalize.js +10 -2
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/replacements.js +62 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/smartquotes.js +157 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/state_core.js +13 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_core/text_join.js +29 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/autolink.js +61 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/backticks.js +45 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +65 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/emphasis.js +82 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/entity.js +49 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/escape.js +56 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/fragments_join.js +23 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/html_inline.js +43 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/image.js +112 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/link.js +105 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/linkify.js +46 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/newline.js +35 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/state_inline.js +98 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/strikethrough.js +88 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/rules_inline/text.js +46 -1
- package/dist/lib/node_modules/.pnpm/markdown-it@13.0.1/node_modules/markdown-it/lib/token.js +61 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/decode.js +84 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/encode.js +64 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/format.js +18 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/index.js +11 -1
- package/dist/lib/node_modules/.pnpm/mdurl@1.0.1/node_modules/mdurl/parse.js +171 -2
- package/dist/lib/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-html.js +3149 -20
- package/dist/lib/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/parser-typescript.js +33275 -78
- package/dist/lib/node_modules/.pnpm/prettier@2.8.4/node_modules/prettier/standalone.js +11383 -88
- package/dist/lib/node_modules/.pnpm/punycode@2.3.0/node_modules/punycode/punycode.es6.js +240 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cc/regex.js +12 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Cf/regex.js +12 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/P/regex.js +3 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/categories/Z/regex.js +12 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/index.js +21 -1
- package/dist/lib/node_modules/.pnpm/uc.micro@1.0.6/node_modules/uc.micro/properties/Any/regex.js +12 -1
- package/dist/lib/packages/components/aside/index.vue.js +133 -1
- package/dist/lib/packages/components/aside/index.vue2.js +3 -1
- package/dist/lib/packages/components/boxurl/index.vue.js +78 -1
- package/dist/lib/packages/components/boxurl/index.vue2.js +3 -1
- package/dist/lib/packages/components/choice/choice.vue.js +58 -1
- package/dist/lib/packages/components/choice/choice.vue2.js +3 -1
- package/dist/lib/packages/components/choice/index.vue.js +99 -1
- package/dist/lib/packages/components/choice/index.vue2.js +3 -1
- package/dist/lib/packages/components/code/highlight.vue.js +15 -1
- package/dist/lib/packages/components/code/highlight.vue2.js +17 -1
- package/dist/lib/packages/components/code/index.vue.js +131 -1
- package/dist/lib/packages/components/code/index.vue2.js +3 -1
- package/dist/lib/packages/components/compo/ftable.vue.js +77 -1
- package/dist/lib/packages/components/compo/ftable.vue2.js +3 -1
- package/dist/lib/packages/components/compo/index.js +290 -1
- package/dist/lib/packages/components/compo/index.vue.js +226 -1
- package/dist/lib/packages/components/compo/index.vue2.js +3 -1
- package/dist/lib/packages/components/compo/info.vue.js +56 -1
- package/dist/lib/packages/components/compo/info.vue2.js +3 -1
- package/dist/lib/packages/components/compo/top.js +151 -1
- package/dist/lib/packages/components/header/index.vue.js +9 -1
- package/dist/lib/packages/components/main/index.vue.js +71 -1
- package/dist/lib/packages/components/main/index.vue2.js +3 -1
- package/dist/lib/packages/components/md/index.vue.js +70 -1
- package/dist/lib/packages/components/md/index.vue2.js +3 -1
- package/dist/lib/packages/components/test/index.js +129 -1
- package/dist/lib/packages/components/test/index.vue.js +108 -1
- package/dist/lib/packages/components/test/index.vue2.js +3 -1
- package/dist/lib/packages/components/test/top.js +187 -1
- package/dist/lib/packages/components/use/index.js +202 -1
- package/dist/lib/packages/components/use/retrie/any/index.vue.js +153 -1
- package/dist/lib/packages/components/use/retrie/any/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/array/index.vue.js +79 -5
- package/dist/lib/packages/components/use/retrie/array/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/boolean/index.vue.js +90 -1
- package/dist/lib/packages/components/use/retrie/boolean/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/choice/index.vue.js +207 -3
- package/dist/lib/packages/components/use/retrie/choice/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/choice/index.vue3.js +4 -1
- package/dist/lib/packages/components/use/retrie/expose/index.vue.js +89 -1
- package/dist/lib/packages/components/use/retrie/expose/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/form/index.vue.js +159 -1
- package/dist/lib/packages/components/use/retrie/form/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/function/index.vue.js +94 -3
- package/dist/lib/packages/components/use/retrie/function/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/index.vue.js +112 -1
- package/dist/lib/packages/components/use/retrie/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/number/index.vue.js +58 -1
- package/dist/lib/packages/components/use/retrie/number/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/object/index.vue.js +79 -5
- package/dist/lib/packages/components/use/retrie/object/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/other/index.vue.js +93 -3
- package/dist/lib/packages/components/use/retrie/other/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/select/index.vue.js +160 -1
- package/dist/lib/packages/components/use/retrie/select/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/select/index.vue3.js +4 -1
- package/dist/lib/packages/components/use/retrie/slot/index.vue.js +57 -1
- package/dist/lib/packages/components/use/retrie/slot/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/retrie/string/index.vue.js +62 -1
- package/dist/lib/packages/components/use/retrie/string/index.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-code.vue.js +182 -12
- package/dist/lib/packages/components/use/set-code.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-emit.vue.js +63 -1
- package/dist/lib/packages/components/use/set-emit.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-expose.vue.js +52 -1
- package/dist/lib/packages/components/use/set-expose.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-props.vue.js +131 -1
- package/dist/lib/packages/components/use/set-props.vue2.js +3 -1
- package/dist/lib/packages/components/use/set-slot.vue.js +52 -1
- package/dist/lib/packages/components/use/set-slot.vue2.js +3 -1
- package/dist/lib/packages/components/use/util.js +181 -4
- package/dist/lib/packages/config.d.ts +3 -3
- package/dist/lib/packages/config.js +14 -1
- package/dist/lib/packages/index/index.vue.js +14 -1
- package/dist/lib/packages/index/index.vue2.js +3 -1
- package/dist/lib/packages/index.js +14 -1
- package/dist/lib/packages/page/compon/index.vue.js +3 -1
- package/dist/lib/packages/page/compon/index.vue2.js +23 -1
- package/dist/lib/packages/page/develop/index.vue.js +3 -1
- package/dist/lib/packages/page/develop/index.vue2.js +23 -1
- package/dist/lib/packages/page/index/index.vue.js +3 -1
- package/dist/lib/packages/page/index/index.vue2.js +62 -1
- package/dist/lib/packages/page/single/index.vue.js +3 -1
- package/dist/lib/packages/page/single/index.vue2.js +86 -1
- package/dist/lib/packages/page/tests/index.vue.js +3 -1
- package/dist/lib/packages/page/tests/index.vue2.js +94 -1
- package/dist/lib/packages/router/index.js +173 -1
- package/dist/lib/packages/utils/common.js +166 -1
- package/dist/lib/packages/utils/glob.js +561 -2
- package/dist/lib/packages/utils/index.js +19 -1
- package/dist/lib/packages/utils/props.js +197 -1
- package/dist/lib/packages/utils/storage.js +42 -1
- package/package.json +9 -10
|
@@ -1 +1,779 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var typescript_1;
|
|
4
|
+
var hasRequiredTypescript;
|
|
5
|
+
function requireTypescript() {
|
|
6
|
+
if (hasRequiredTypescript)
|
|
7
|
+
return typescript_1;
|
|
8
|
+
hasRequiredTypescript = 1;
|
|
9
|
+
const IDENT_RE = "[A-Za-z$_][0-9A-Za-z$_]*";
|
|
10
|
+
const KEYWORDS = [
|
|
11
|
+
"as",
|
|
12
|
+
// for exports
|
|
13
|
+
"in",
|
|
14
|
+
"of",
|
|
15
|
+
"if",
|
|
16
|
+
"for",
|
|
17
|
+
"while",
|
|
18
|
+
"finally",
|
|
19
|
+
"var",
|
|
20
|
+
"new",
|
|
21
|
+
"function",
|
|
22
|
+
"do",
|
|
23
|
+
"return",
|
|
24
|
+
"void",
|
|
25
|
+
"else",
|
|
26
|
+
"break",
|
|
27
|
+
"catch",
|
|
28
|
+
"instanceof",
|
|
29
|
+
"with",
|
|
30
|
+
"throw",
|
|
31
|
+
"case",
|
|
32
|
+
"default",
|
|
33
|
+
"try",
|
|
34
|
+
"switch",
|
|
35
|
+
"continue",
|
|
36
|
+
"typeof",
|
|
37
|
+
"delete",
|
|
38
|
+
"let",
|
|
39
|
+
"yield",
|
|
40
|
+
"const",
|
|
41
|
+
"class",
|
|
42
|
+
// JS handles these with a special rule
|
|
43
|
+
// "get",
|
|
44
|
+
// "set",
|
|
45
|
+
"debugger",
|
|
46
|
+
"async",
|
|
47
|
+
"await",
|
|
48
|
+
"static",
|
|
49
|
+
"import",
|
|
50
|
+
"from",
|
|
51
|
+
"export",
|
|
52
|
+
"extends"
|
|
53
|
+
];
|
|
54
|
+
const LITERALS = [
|
|
55
|
+
"true",
|
|
56
|
+
"false",
|
|
57
|
+
"null",
|
|
58
|
+
"undefined",
|
|
59
|
+
"NaN",
|
|
60
|
+
"Infinity"
|
|
61
|
+
];
|
|
62
|
+
const TYPES = [
|
|
63
|
+
// Fundamental objects
|
|
64
|
+
"Object",
|
|
65
|
+
"Function",
|
|
66
|
+
"Boolean",
|
|
67
|
+
"Symbol",
|
|
68
|
+
// numbers and dates
|
|
69
|
+
"Math",
|
|
70
|
+
"Date",
|
|
71
|
+
"Number",
|
|
72
|
+
"BigInt",
|
|
73
|
+
// text
|
|
74
|
+
"String",
|
|
75
|
+
"RegExp",
|
|
76
|
+
// Indexed collections
|
|
77
|
+
"Array",
|
|
78
|
+
"Float32Array",
|
|
79
|
+
"Float64Array",
|
|
80
|
+
"Int8Array",
|
|
81
|
+
"Uint8Array",
|
|
82
|
+
"Uint8ClampedArray",
|
|
83
|
+
"Int16Array",
|
|
84
|
+
"Int32Array",
|
|
85
|
+
"Uint16Array",
|
|
86
|
+
"Uint32Array",
|
|
87
|
+
"BigInt64Array",
|
|
88
|
+
"BigUint64Array",
|
|
89
|
+
// Keyed collections
|
|
90
|
+
"Set",
|
|
91
|
+
"Map",
|
|
92
|
+
"WeakSet",
|
|
93
|
+
"WeakMap",
|
|
94
|
+
// Structured data
|
|
95
|
+
"ArrayBuffer",
|
|
96
|
+
"SharedArrayBuffer",
|
|
97
|
+
"Atomics",
|
|
98
|
+
"DataView",
|
|
99
|
+
"JSON",
|
|
100
|
+
// Control abstraction objects
|
|
101
|
+
"Promise",
|
|
102
|
+
"Generator",
|
|
103
|
+
"GeneratorFunction",
|
|
104
|
+
"AsyncFunction",
|
|
105
|
+
// Reflection
|
|
106
|
+
"Reflect",
|
|
107
|
+
"Proxy",
|
|
108
|
+
// Internationalization
|
|
109
|
+
"Intl",
|
|
110
|
+
// WebAssembly
|
|
111
|
+
"WebAssembly"
|
|
112
|
+
];
|
|
113
|
+
const ERROR_TYPES = [
|
|
114
|
+
"Error",
|
|
115
|
+
"EvalError",
|
|
116
|
+
"InternalError",
|
|
117
|
+
"RangeError",
|
|
118
|
+
"ReferenceError",
|
|
119
|
+
"SyntaxError",
|
|
120
|
+
"TypeError",
|
|
121
|
+
"URIError"
|
|
122
|
+
];
|
|
123
|
+
const BUILT_IN_GLOBALS = [
|
|
124
|
+
"setInterval",
|
|
125
|
+
"setTimeout",
|
|
126
|
+
"clearInterval",
|
|
127
|
+
"clearTimeout",
|
|
128
|
+
"require",
|
|
129
|
+
"exports",
|
|
130
|
+
"eval",
|
|
131
|
+
"isFinite",
|
|
132
|
+
"isNaN",
|
|
133
|
+
"parseFloat",
|
|
134
|
+
"parseInt",
|
|
135
|
+
"decodeURI",
|
|
136
|
+
"decodeURIComponent",
|
|
137
|
+
"encodeURI",
|
|
138
|
+
"encodeURIComponent",
|
|
139
|
+
"escape",
|
|
140
|
+
"unescape"
|
|
141
|
+
];
|
|
142
|
+
const BUILT_IN_VARIABLES = [
|
|
143
|
+
"arguments",
|
|
144
|
+
"this",
|
|
145
|
+
"super",
|
|
146
|
+
"console",
|
|
147
|
+
"window",
|
|
148
|
+
"document",
|
|
149
|
+
"localStorage",
|
|
150
|
+
"module",
|
|
151
|
+
"global"
|
|
152
|
+
// Node.js
|
|
153
|
+
];
|
|
154
|
+
const BUILT_INS = [].concat(
|
|
155
|
+
BUILT_IN_GLOBALS,
|
|
156
|
+
TYPES,
|
|
157
|
+
ERROR_TYPES
|
|
158
|
+
);
|
|
159
|
+
function javascript(hljs) {
|
|
160
|
+
const regex = hljs.regex;
|
|
161
|
+
const hasClosingTag = (match, { after }) => {
|
|
162
|
+
const tag = "</" + match[0].slice(1);
|
|
163
|
+
const pos = match.input.indexOf(tag, after);
|
|
164
|
+
return pos !== -1;
|
|
165
|
+
};
|
|
166
|
+
const IDENT_RE$1 = IDENT_RE;
|
|
167
|
+
const FRAGMENT = {
|
|
168
|
+
begin: "<>",
|
|
169
|
+
end: "</>"
|
|
170
|
+
};
|
|
171
|
+
const XML_SELF_CLOSING = /<[A-Za-z0-9\\._:-]+\s*\/>/;
|
|
172
|
+
const XML_TAG = {
|
|
173
|
+
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
174
|
+
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
175
|
+
/**
|
|
176
|
+
* @param {RegExpMatchArray} match
|
|
177
|
+
* @param {CallbackResponse} response
|
|
178
|
+
*/
|
|
179
|
+
isTrulyOpeningTag: (match, response) => {
|
|
180
|
+
const afterMatchIndex = match[0].length + match.index;
|
|
181
|
+
const nextChar = match.input[afterMatchIndex];
|
|
182
|
+
if (
|
|
183
|
+
// HTML should not include another raw `<` inside a tag
|
|
184
|
+
// nested type?
|
|
185
|
+
// `<Array<Array<number>>`, etc.
|
|
186
|
+
nextChar === "<" || // the , gives away that this is not HTML
|
|
187
|
+
// `<T, A extends keyof T, V>`
|
|
188
|
+
nextChar === ","
|
|
189
|
+
) {
|
|
190
|
+
response.ignoreMatch();
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
if (nextChar === ">") {
|
|
194
|
+
if (!hasClosingTag(match, { after: afterMatchIndex })) {
|
|
195
|
+
response.ignoreMatch();
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
let m;
|
|
199
|
+
const afterMatch = match.input.substring(afterMatchIndex);
|
|
200
|
+
if (m = afterMatch.match(/^\s*=/)) {
|
|
201
|
+
response.ignoreMatch();
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
if (m = afterMatch.match(/^\s+extends\s+/)) {
|
|
205
|
+
if (m.index === 0) {
|
|
206
|
+
response.ignoreMatch();
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const KEYWORDS$1 = {
|
|
213
|
+
$pattern: IDENT_RE,
|
|
214
|
+
keyword: KEYWORDS,
|
|
215
|
+
literal: LITERALS,
|
|
216
|
+
built_in: BUILT_INS,
|
|
217
|
+
"variable.language": BUILT_IN_VARIABLES
|
|
218
|
+
};
|
|
219
|
+
const decimalDigits = "[0-9](_?[0-9])*";
|
|
220
|
+
const frac = `\\.(${decimalDigits})`;
|
|
221
|
+
const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`;
|
|
222
|
+
const NUMBER = {
|
|
223
|
+
className: "number",
|
|
224
|
+
variants: [
|
|
225
|
+
// DecimalLiteral
|
|
226
|
+
{ begin: `(\\b(${decimalInteger})((${frac})|\\.)?|(${frac}))[eE][+-]?(${decimalDigits})\\b` },
|
|
227
|
+
{ begin: `\\b(${decimalInteger})\\b((${frac})\\b|\\.)?|(${frac})\\b` },
|
|
228
|
+
// DecimalBigIntegerLiteral
|
|
229
|
+
{ begin: `\\b(0|[1-9](_?[0-9])*)n\\b` },
|
|
230
|
+
// NonDecimalIntegerLiteral
|
|
231
|
+
{ begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
|
|
232
|
+
{ begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
|
|
233
|
+
{ begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
|
|
234
|
+
// LegacyOctalIntegerLiteral (does not include underscore separators)
|
|
235
|
+
// https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
|
|
236
|
+
{ begin: "\\b0[0-7]+n?\\b" }
|
|
237
|
+
],
|
|
238
|
+
relevance: 0
|
|
239
|
+
};
|
|
240
|
+
const SUBST = {
|
|
241
|
+
className: "subst",
|
|
242
|
+
begin: "\\$\\{",
|
|
243
|
+
end: "\\}",
|
|
244
|
+
keywords: KEYWORDS$1,
|
|
245
|
+
contains: []
|
|
246
|
+
// defined later
|
|
247
|
+
};
|
|
248
|
+
const HTML_TEMPLATE = {
|
|
249
|
+
begin: "html`",
|
|
250
|
+
end: "",
|
|
251
|
+
starts: {
|
|
252
|
+
end: "`",
|
|
253
|
+
returnEnd: false,
|
|
254
|
+
contains: [
|
|
255
|
+
hljs.BACKSLASH_ESCAPE,
|
|
256
|
+
SUBST
|
|
257
|
+
],
|
|
258
|
+
subLanguage: "xml"
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
const CSS_TEMPLATE = {
|
|
262
|
+
begin: "css`",
|
|
263
|
+
end: "",
|
|
264
|
+
starts: {
|
|
265
|
+
end: "`",
|
|
266
|
+
returnEnd: false,
|
|
267
|
+
contains: [
|
|
268
|
+
hljs.BACKSLASH_ESCAPE,
|
|
269
|
+
SUBST
|
|
270
|
+
],
|
|
271
|
+
subLanguage: "css"
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
const TEMPLATE_STRING = {
|
|
275
|
+
className: "string",
|
|
276
|
+
begin: "`",
|
|
277
|
+
end: "`",
|
|
278
|
+
contains: [
|
|
279
|
+
hljs.BACKSLASH_ESCAPE,
|
|
280
|
+
SUBST
|
|
281
|
+
]
|
|
282
|
+
};
|
|
283
|
+
const JSDOC_COMMENT = hljs.COMMENT(
|
|
284
|
+
/\/\*\*(?!\/)/,
|
|
285
|
+
"\\*/",
|
|
286
|
+
{
|
|
287
|
+
relevance: 0,
|
|
288
|
+
contains: [
|
|
289
|
+
{
|
|
290
|
+
begin: "(?=@[A-Za-z]+)",
|
|
291
|
+
relevance: 0,
|
|
292
|
+
contains: [
|
|
293
|
+
{
|
|
294
|
+
className: "doctag",
|
|
295
|
+
begin: "@[A-Za-z]+"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
className: "type",
|
|
299
|
+
begin: "\\{",
|
|
300
|
+
end: "\\}",
|
|
301
|
+
excludeEnd: true,
|
|
302
|
+
excludeBegin: true,
|
|
303
|
+
relevance: 0
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
className: "variable",
|
|
307
|
+
begin: IDENT_RE$1 + "(?=\\s*(-)|$)",
|
|
308
|
+
endsParent: true,
|
|
309
|
+
relevance: 0
|
|
310
|
+
},
|
|
311
|
+
// eat spaces (not newlines) so we can find
|
|
312
|
+
// types or variables
|
|
313
|
+
{
|
|
314
|
+
begin: /(?=[^\n])\s/,
|
|
315
|
+
relevance: 0
|
|
316
|
+
}
|
|
317
|
+
]
|
|
318
|
+
}
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
const COMMENT = {
|
|
323
|
+
className: "comment",
|
|
324
|
+
variants: [
|
|
325
|
+
JSDOC_COMMENT,
|
|
326
|
+
hljs.C_BLOCK_COMMENT_MODE,
|
|
327
|
+
hljs.C_LINE_COMMENT_MODE
|
|
328
|
+
]
|
|
329
|
+
};
|
|
330
|
+
const SUBST_INTERNALS = [
|
|
331
|
+
hljs.APOS_STRING_MODE,
|
|
332
|
+
hljs.QUOTE_STRING_MODE,
|
|
333
|
+
HTML_TEMPLATE,
|
|
334
|
+
CSS_TEMPLATE,
|
|
335
|
+
TEMPLATE_STRING,
|
|
336
|
+
// Skip numbers when they are part of a variable name
|
|
337
|
+
{ match: /\$\d+/ },
|
|
338
|
+
NUMBER
|
|
339
|
+
// This is intentional:
|
|
340
|
+
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
341
|
+
// hljs.REGEXP_MODE
|
|
342
|
+
];
|
|
343
|
+
SUBST.contains = SUBST_INTERNALS.concat({
|
|
344
|
+
// we need to pair up {} inside our subst to prevent
|
|
345
|
+
// it from ending too early by matching another }
|
|
346
|
+
begin: /\{/,
|
|
347
|
+
end: /\}/,
|
|
348
|
+
keywords: KEYWORDS$1,
|
|
349
|
+
contains: [
|
|
350
|
+
"self"
|
|
351
|
+
].concat(SUBST_INTERNALS)
|
|
352
|
+
});
|
|
353
|
+
const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains);
|
|
354
|
+
const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([
|
|
355
|
+
// eat recursive parens in sub expressions
|
|
356
|
+
{
|
|
357
|
+
begin: /\(/,
|
|
358
|
+
end: /\)/,
|
|
359
|
+
keywords: KEYWORDS$1,
|
|
360
|
+
contains: ["self"].concat(SUBST_AND_COMMENTS)
|
|
361
|
+
}
|
|
362
|
+
]);
|
|
363
|
+
const PARAMS = {
|
|
364
|
+
className: "params",
|
|
365
|
+
begin: /\(/,
|
|
366
|
+
end: /\)/,
|
|
367
|
+
excludeBegin: true,
|
|
368
|
+
excludeEnd: true,
|
|
369
|
+
keywords: KEYWORDS$1,
|
|
370
|
+
contains: PARAMS_CONTAINS
|
|
371
|
+
};
|
|
372
|
+
const CLASS_OR_EXTENDS = {
|
|
373
|
+
variants: [
|
|
374
|
+
// class Car extends vehicle
|
|
375
|
+
{
|
|
376
|
+
match: [
|
|
377
|
+
/class/,
|
|
378
|
+
/\s+/,
|
|
379
|
+
IDENT_RE$1,
|
|
380
|
+
/\s+/,
|
|
381
|
+
/extends/,
|
|
382
|
+
/\s+/,
|
|
383
|
+
regex.concat(IDENT_RE$1, "(", regex.concat(/\./, IDENT_RE$1), ")*")
|
|
384
|
+
],
|
|
385
|
+
scope: {
|
|
386
|
+
1: "keyword",
|
|
387
|
+
3: "title.class",
|
|
388
|
+
5: "keyword",
|
|
389
|
+
7: "title.class.inherited"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
// class Car
|
|
393
|
+
{
|
|
394
|
+
match: [
|
|
395
|
+
/class/,
|
|
396
|
+
/\s+/,
|
|
397
|
+
IDENT_RE$1
|
|
398
|
+
],
|
|
399
|
+
scope: {
|
|
400
|
+
1: "keyword",
|
|
401
|
+
3: "title.class"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
};
|
|
406
|
+
const CLASS_REFERENCE = {
|
|
407
|
+
relevance: 0,
|
|
408
|
+
match: regex.either(
|
|
409
|
+
// Hard coded exceptions
|
|
410
|
+
/\bJSON/,
|
|
411
|
+
// Float32Array, OutT
|
|
412
|
+
/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,
|
|
413
|
+
// CSSFactory, CSSFactoryT
|
|
414
|
+
/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,
|
|
415
|
+
// FPs, FPsT
|
|
416
|
+
/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/
|
|
417
|
+
// P
|
|
418
|
+
// single letters are not highlighted
|
|
419
|
+
// BLAH
|
|
420
|
+
// this will be flagged as a UPPER_CASE_CONSTANT instead
|
|
421
|
+
),
|
|
422
|
+
className: "title.class",
|
|
423
|
+
keywords: {
|
|
424
|
+
_: [
|
|
425
|
+
// se we still get relevance credit for JS library classes
|
|
426
|
+
...TYPES,
|
|
427
|
+
...ERROR_TYPES
|
|
428
|
+
]
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
const USE_STRICT = {
|
|
432
|
+
label: "use_strict",
|
|
433
|
+
className: "meta",
|
|
434
|
+
relevance: 10,
|
|
435
|
+
begin: /^\s*['"]use (strict|asm)['"]/
|
|
436
|
+
};
|
|
437
|
+
const FUNCTION_DEFINITION = {
|
|
438
|
+
variants: [
|
|
439
|
+
{
|
|
440
|
+
match: [
|
|
441
|
+
/function/,
|
|
442
|
+
/\s+/,
|
|
443
|
+
IDENT_RE$1,
|
|
444
|
+
/(?=\s*\()/
|
|
445
|
+
]
|
|
446
|
+
},
|
|
447
|
+
// anonymous function
|
|
448
|
+
{
|
|
449
|
+
match: [
|
|
450
|
+
/function/,
|
|
451
|
+
/\s*(?=\()/
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
className: {
|
|
456
|
+
1: "keyword",
|
|
457
|
+
3: "title.function"
|
|
458
|
+
},
|
|
459
|
+
label: "func.def",
|
|
460
|
+
contains: [PARAMS],
|
|
461
|
+
illegal: /%/
|
|
462
|
+
};
|
|
463
|
+
const UPPER_CASE_CONSTANT = {
|
|
464
|
+
relevance: 0,
|
|
465
|
+
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
466
|
+
className: "variable.constant"
|
|
467
|
+
};
|
|
468
|
+
function noneOf(list) {
|
|
469
|
+
return regex.concat("(?!", list.join("|"), ")");
|
|
470
|
+
}
|
|
471
|
+
const FUNCTION_CALL = {
|
|
472
|
+
match: regex.concat(
|
|
473
|
+
/\b/,
|
|
474
|
+
noneOf([
|
|
475
|
+
...BUILT_IN_GLOBALS,
|
|
476
|
+
"super",
|
|
477
|
+
"import"
|
|
478
|
+
]),
|
|
479
|
+
IDENT_RE$1,
|
|
480
|
+
regex.lookahead(/\(/)
|
|
481
|
+
),
|
|
482
|
+
className: "title.function",
|
|
483
|
+
relevance: 0
|
|
484
|
+
};
|
|
485
|
+
const PROPERTY_ACCESS = {
|
|
486
|
+
begin: regex.concat(/\./, regex.lookahead(
|
|
487
|
+
regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)
|
|
488
|
+
)),
|
|
489
|
+
end: IDENT_RE$1,
|
|
490
|
+
excludeBegin: true,
|
|
491
|
+
keywords: "prototype",
|
|
492
|
+
className: "property",
|
|
493
|
+
relevance: 0
|
|
494
|
+
};
|
|
495
|
+
const GETTER_OR_SETTER = {
|
|
496
|
+
match: [
|
|
497
|
+
/get|set/,
|
|
498
|
+
/\s+/,
|
|
499
|
+
IDENT_RE$1,
|
|
500
|
+
/(?=\()/
|
|
501
|
+
],
|
|
502
|
+
className: {
|
|
503
|
+
1: "keyword",
|
|
504
|
+
3: "title.function"
|
|
505
|
+
},
|
|
506
|
+
contains: [
|
|
507
|
+
{
|
|
508
|
+
// eat to avoid empty params
|
|
509
|
+
begin: /\(\)/
|
|
510
|
+
},
|
|
511
|
+
PARAMS
|
|
512
|
+
]
|
|
513
|
+
};
|
|
514
|
+
const FUNC_LEAD_IN_RE = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + hljs.UNDERSCORE_IDENT_RE + ")\\s*=>";
|
|
515
|
+
const FUNCTION_VARIABLE = {
|
|
516
|
+
match: [
|
|
517
|
+
/const|var|let/,
|
|
518
|
+
/\s+/,
|
|
519
|
+
IDENT_RE$1,
|
|
520
|
+
/\s*/,
|
|
521
|
+
/=\s*/,
|
|
522
|
+
/(async\s*)?/,
|
|
523
|
+
// async is optional
|
|
524
|
+
regex.lookahead(FUNC_LEAD_IN_RE)
|
|
525
|
+
],
|
|
526
|
+
keywords: "async",
|
|
527
|
+
className: {
|
|
528
|
+
1: "keyword",
|
|
529
|
+
3: "title.function"
|
|
530
|
+
},
|
|
531
|
+
contains: [
|
|
532
|
+
PARAMS
|
|
533
|
+
]
|
|
534
|
+
};
|
|
535
|
+
return {
|
|
536
|
+
name: "Javascript",
|
|
537
|
+
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
538
|
+
keywords: KEYWORDS$1,
|
|
539
|
+
// this will be extended by TypeScript
|
|
540
|
+
exports: { PARAMS_CONTAINS, CLASS_REFERENCE },
|
|
541
|
+
illegal: /#(?![$_A-z])/,
|
|
542
|
+
contains: [
|
|
543
|
+
hljs.SHEBANG({
|
|
544
|
+
label: "shebang",
|
|
545
|
+
binary: "node",
|
|
546
|
+
relevance: 5
|
|
547
|
+
}),
|
|
548
|
+
USE_STRICT,
|
|
549
|
+
hljs.APOS_STRING_MODE,
|
|
550
|
+
hljs.QUOTE_STRING_MODE,
|
|
551
|
+
HTML_TEMPLATE,
|
|
552
|
+
CSS_TEMPLATE,
|
|
553
|
+
TEMPLATE_STRING,
|
|
554
|
+
COMMENT,
|
|
555
|
+
// Skip numbers when they are part of a variable name
|
|
556
|
+
{ match: /\$\d+/ },
|
|
557
|
+
NUMBER,
|
|
558
|
+
CLASS_REFERENCE,
|
|
559
|
+
{
|
|
560
|
+
className: "attr",
|
|
561
|
+
begin: IDENT_RE$1 + regex.lookahead(":"),
|
|
562
|
+
relevance: 0
|
|
563
|
+
},
|
|
564
|
+
FUNCTION_VARIABLE,
|
|
565
|
+
{
|
|
566
|
+
// "value" container
|
|
567
|
+
begin: "(" + hljs.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
568
|
+
keywords: "return throw case",
|
|
569
|
+
relevance: 0,
|
|
570
|
+
contains: [
|
|
571
|
+
COMMENT,
|
|
572
|
+
hljs.REGEXP_MODE,
|
|
573
|
+
{
|
|
574
|
+
className: "function",
|
|
575
|
+
// we have to count the parens to make sure we actually have the
|
|
576
|
+
// correct bounding ( ) before the =>. There could be any number of
|
|
577
|
+
// sub-expressions inside also surrounded by parens.
|
|
578
|
+
begin: FUNC_LEAD_IN_RE,
|
|
579
|
+
returnBegin: true,
|
|
580
|
+
end: "\\s*=>",
|
|
581
|
+
contains: [
|
|
582
|
+
{
|
|
583
|
+
className: "params",
|
|
584
|
+
variants: [
|
|
585
|
+
{
|
|
586
|
+
begin: hljs.UNDERSCORE_IDENT_RE,
|
|
587
|
+
relevance: 0
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
className: null,
|
|
591
|
+
begin: /\(\s*\)/,
|
|
592
|
+
skip: true
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
begin: /\(/,
|
|
596
|
+
end: /\)/,
|
|
597
|
+
excludeBegin: true,
|
|
598
|
+
excludeEnd: true,
|
|
599
|
+
keywords: KEYWORDS$1,
|
|
600
|
+
contains: PARAMS_CONTAINS
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
// could be a comma delimited list of params to a function call
|
|
608
|
+
begin: /,/,
|
|
609
|
+
relevance: 0
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
match: /\s+/,
|
|
613
|
+
relevance: 0
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
// JSX
|
|
617
|
+
variants: [
|
|
618
|
+
{ begin: FRAGMENT.begin, end: FRAGMENT.end },
|
|
619
|
+
{ match: XML_SELF_CLOSING },
|
|
620
|
+
{
|
|
621
|
+
begin: XML_TAG.begin,
|
|
622
|
+
// we carefully check the opening tag to see if it truly
|
|
623
|
+
// is a tag and not a false positive
|
|
624
|
+
"on:begin": XML_TAG.isTrulyOpeningTag,
|
|
625
|
+
end: XML_TAG.end
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
subLanguage: "xml",
|
|
629
|
+
contains: [
|
|
630
|
+
{
|
|
631
|
+
begin: XML_TAG.begin,
|
|
632
|
+
end: XML_TAG.end,
|
|
633
|
+
skip: true,
|
|
634
|
+
contains: ["self"]
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
}
|
|
638
|
+
]
|
|
639
|
+
},
|
|
640
|
+
FUNCTION_DEFINITION,
|
|
641
|
+
{
|
|
642
|
+
// prevent this from getting swallowed up by function
|
|
643
|
+
// since they appear "function like"
|
|
644
|
+
beginKeywords: "while if switch catch for"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
// we have to count the parens to make sure we actually have the correct
|
|
648
|
+
// bounding ( ). There could be any number of sub-expressions inside
|
|
649
|
+
// also surrounded by parens.
|
|
650
|
+
begin: "\\b(?!function)" + hljs.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
|
|
651
|
+
// end parens
|
|
652
|
+
returnBegin: true,
|
|
653
|
+
label: "func.def",
|
|
654
|
+
contains: [
|
|
655
|
+
PARAMS,
|
|
656
|
+
hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: "title.function" })
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
// catch ... so it won't trigger the property rule below
|
|
660
|
+
{
|
|
661
|
+
match: /\.\.\./,
|
|
662
|
+
relevance: 0
|
|
663
|
+
},
|
|
664
|
+
PROPERTY_ACCESS,
|
|
665
|
+
// hack: prevents detection of keywords in some circumstances
|
|
666
|
+
// .keyword()
|
|
667
|
+
// $keyword = x
|
|
668
|
+
{
|
|
669
|
+
match: "\\$" + IDENT_RE$1,
|
|
670
|
+
relevance: 0
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
match: [/\bconstructor(?=\s*\()/],
|
|
674
|
+
className: { 1: "title.function" },
|
|
675
|
+
contains: [PARAMS]
|
|
676
|
+
},
|
|
677
|
+
FUNCTION_CALL,
|
|
678
|
+
UPPER_CASE_CONSTANT,
|
|
679
|
+
CLASS_OR_EXTENDS,
|
|
680
|
+
GETTER_OR_SETTER,
|
|
681
|
+
{
|
|
682
|
+
match: /\$[(.]/
|
|
683
|
+
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
684
|
+
}
|
|
685
|
+
]
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
function typescript(hljs) {
|
|
689
|
+
const tsLanguage = javascript(hljs);
|
|
690
|
+
const IDENT_RE$1 = IDENT_RE;
|
|
691
|
+
const TYPES2 = [
|
|
692
|
+
"any",
|
|
693
|
+
"void",
|
|
694
|
+
"number",
|
|
695
|
+
"boolean",
|
|
696
|
+
"string",
|
|
697
|
+
"object",
|
|
698
|
+
"never",
|
|
699
|
+
"symbol",
|
|
700
|
+
"bigint",
|
|
701
|
+
"unknown"
|
|
702
|
+
];
|
|
703
|
+
const NAMESPACE = {
|
|
704
|
+
beginKeywords: "namespace",
|
|
705
|
+
end: /\{/,
|
|
706
|
+
excludeEnd: true,
|
|
707
|
+
contains: [tsLanguage.exports.CLASS_REFERENCE]
|
|
708
|
+
};
|
|
709
|
+
const INTERFACE = {
|
|
710
|
+
beginKeywords: "interface",
|
|
711
|
+
end: /\{/,
|
|
712
|
+
excludeEnd: true,
|
|
713
|
+
keywords: {
|
|
714
|
+
keyword: "interface extends",
|
|
715
|
+
built_in: TYPES2
|
|
716
|
+
},
|
|
717
|
+
contains: [tsLanguage.exports.CLASS_REFERENCE]
|
|
718
|
+
};
|
|
719
|
+
const USE_STRICT = {
|
|
720
|
+
className: "meta",
|
|
721
|
+
relevance: 10,
|
|
722
|
+
begin: /^\s*['"]use strict['"]/
|
|
723
|
+
};
|
|
724
|
+
const TS_SPECIFIC_KEYWORDS = [
|
|
725
|
+
"type",
|
|
726
|
+
"namespace",
|
|
727
|
+
"interface",
|
|
728
|
+
"public",
|
|
729
|
+
"private",
|
|
730
|
+
"protected",
|
|
731
|
+
"implements",
|
|
732
|
+
"declare",
|
|
733
|
+
"abstract",
|
|
734
|
+
"readonly",
|
|
735
|
+
"enum",
|
|
736
|
+
"override"
|
|
737
|
+
];
|
|
738
|
+
const KEYWORDS$1 = {
|
|
739
|
+
$pattern: IDENT_RE,
|
|
740
|
+
keyword: KEYWORDS.concat(TS_SPECIFIC_KEYWORDS),
|
|
741
|
+
literal: LITERALS,
|
|
742
|
+
built_in: BUILT_INS.concat(TYPES2),
|
|
743
|
+
"variable.language": BUILT_IN_VARIABLES
|
|
744
|
+
};
|
|
745
|
+
const DECORATOR = {
|
|
746
|
+
className: "meta",
|
|
747
|
+
begin: "@" + IDENT_RE$1
|
|
748
|
+
};
|
|
749
|
+
const swapMode = (mode, label, replacement) => {
|
|
750
|
+
const indx = mode.contains.findIndex((m) => m.label === label);
|
|
751
|
+
if (indx === -1) {
|
|
752
|
+
throw new Error("can not find mode to replace");
|
|
753
|
+
}
|
|
754
|
+
mode.contains.splice(indx, 1, replacement);
|
|
755
|
+
};
|
|
756
|
+
Object.assign(tsLanguage.keywords, KEYWORDS$1);
|
|
757
|
+
tsLanguage.exports.PARAMS_CONTAINS.push(DECORATOR);
|
|
758
|
+
tsLanguage.contains = tsLanguage.contains.concat([
|
|
759
|
+
DECORATOR,
|
|
760
|
+
NAMESPACE,
|
|
761
|
+
INTERFACE
|
|
762
|
+
]);
|
|
763
|
+
swapMode(tsLanguage, "shebang", hljs.SHEBANG());
|
|
764
|
+
swapMode(tsLanguage, "use_strict", USE_STRICT);
|
|
765
|
+
const functionDeclaration = tsLanguage.contains.find((m) => m.label === "func.def");
|
|
766
|
+
functionDeclaration.relevance = 0;
|
|
767
|
+
Object.assign(tsLanguage, {
|
|
768
|
+
name: "TypeScript",
|
|
769
|
+
aliases: [
|
|
770
|
+
"ts",
|
|
771
|
+
"tsx"
|
|
772
|
+
]
|
|
773
|
+
});
|
|
774
|
+
return tsLanguage;
|
|
775
|
+
}
|
|
776
|
+
typescript_1 = typescript;
|
|
777
|
+
return typescript_1;
|
|
778
|
+
}
|
|
779
|
+
exports.__require = requireTypescript;
|