@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,184 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
require("../common/utils.js");
|
|
3
|
+
const utils = require("../../../../../../../_virtual/utils.js");
|
|
4
|
+
var isSpace = utils.__exports.isSpace;
|
|
5
|
+
function getLine(state, line) {
|
|
6
|
+
var pos = state.bMarks[line] + state.tShift[line], max = state.eMarks[line];
|
|
7
|
+
return state.src.slice(pos, max);
|
|
8
|
+
}
|
|
9
|
+
function escapedSplit(str) {
|
|
10
|
+
var result = [], pos = 0, max = str.length, ch, isEscaped = false, lastPos = 0, current = "";
|
|
11
|
+
ch = str.charCodeAt(pos);
|
|
12
|
+
while (pos < max) {
|
|
13
|
+
if (ch === 124) {
|
|
14
|
+
if (!isEscaped) {
|
|
15
|
+
result.push(current + str.substring(lastPos, pos));
|
|
16
|
+
current = "";
|
|
17
|
+
lastPos = pos + 1;
|
|
18
|
+
} else {
|
|
19
|
+
current += str.substring(lastPos, pos - 1);
|
|
20
|
+
lastPos = pos;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
isEscaped = ch === 92;
|
|
24
|
+
pos++;
|
|
25
|
+
ch = str.charCodeAt(pos);
|
|
26
|
+
}
|
|
27
|
+
result.push(current + str.substring(lastPos));
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
var table = function table2(state, startLine, endLine, silent) {
|
|
31
|
+
var ch, lineText, pos, i, l, nextLine, columns, columnCount, token, aligns, t, tableLines, tbodyLines, oldParentType, terminate, terminatorRules, firstCh, secondCh;
|
|
32
|
+
if (startLine + 2 > endLine) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
nextLine = startLine + 1;
|
|
36
|
+
if (state.sCount[nextLine] < state.blkIndent) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
pos = state.bMarks[nextLine] + state.tShift[nextLine];
|
|
43
|
+
if (pos >= state.eMarks[nextLine]) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
firstCh = state.src.charCodeAt(pos++);
|
|
47
|
+
if (firstCh !== 124 && firstCh !== 45 && firstCh !== 58) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
if (pos >= state.eMarks[nextLine]) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
secondCh = state.src.charCodeAt(pos++);
|
|
54
|
+
if (secondCh !== 124 && secondCh !== 45 && secondCh !== 58 && !isSpace(secondCh)) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
if (firstCh === 45 && isSpace(secondCh)) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
while (pos < state.eMarks[nextLine]) {
|
|
61
|
+
ch = state.src.charCodeAt(pos);
|
|
62
|
+
if (ch !== 124 && ch !== 45 && ch !== 58 && !isSpace(ch)) {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
pos++;
|
|
66
|
+
}
|
|
67
|
+
lineText = getLine(state, startLine + 1);
|
|
68
|
+
columns = lineText.split("|");
|
|
69
|
+
aligns = [];
|
|
70
|
+
for (i = 0; i < columns.length; i++) {
|
|
71
|
+
t = columns[i].trim();
|
|
72
|
+
if (!t) {
|
|
73
|
+
if (i === 0 || i === columns.length - 1) {
|
|
74
|
+
continue;
|
|
75
|
+
} else {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (!/^:?-+:?$/.test(t)) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (t.charCodeAt(t.length - 1) === 58) {
|
|
83
|
+
aligns.push(t.charCodeAt(0) === 58 ? "center" : "right");
|
|
84
|
+
} else if (t.charCodeAt(0) === 58) {
|
|
85
|
+
aligns.push("left");
|
|
86
|
+
} else {
|
|
87
|
+
aligns.push("");
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
lineText = getLine(state, startLine).trim();
|
|
91
|
+
if (lineText.indexOf("|") === -1) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (state.sCount[startLine] - state.blkIndent >= 4) {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
columns = escapedSplit(lineText);
|
|
98
|
+
if (columns.length && columns[0] === "")
|
|
99
|
+
columns.shift();
|
|
100
|
+
if (columns.length && columns[columns.length - 1] === "")
|
|
101
|
+
columns.pop();
|
|
102
|
+
columnCount = columns.length;
|
|
103
|
+
if (columnCount === 0 || columnCount !== aligns.length) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
if (silent) {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
oldParentType = state.parentType;
|
|
110
|
+
state.parentType = "table";
|
|
111
|
+
terminatorRules = state.md.block.ruler.getRules("blockquote");
|
|
112
|
+
token = state.push("table_open", "table", 1);
|
|
113
|
+
token.map = tableLines = [startLine, 0];
|
|
114
|
+
token = state.push("thead_open", "thead", 1);
|
|
115
|
+
token.map = [startLine, startLine + 1];
|
|
116
|
+
token = state.push("tr_open", "tr", 1);
|
|
117
|
+
token.map = [startLine, startLine + 1];
|
|
118
|
+
for (i = 0; i < columns.length; i++) {
|
|
119
|
+
token = state.push("th_open", "th", 1);
|
|
120
|
+
if (aligns[i]) {
|
|
121
|
+
token.attrs = [["style", "text-align:" + aligns[i]]];
|
|
122
|
+
}
|
|
123
|
+
token = state.push("inline", "", 0);
|
|
124
|
+
token.content = columns[i].trim();
|
|
125
|
+
token.children = [];
|
|
126
|
+
token = state.push("th_close", "th", -1);
|
|
127
|
+
}
|
|
128
|
+
token = state.push("tr_close", "tr", -1);
|
|
129
|
+
token = state.push("thead_close", "thead", -1);
|
|
130
|
+
for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {
|
|
131
|
+
if (state.sCount[nextLine] < state.blkIndent) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
terminate = false;
|
|
135
|
+
for (i = 0, l = terminatorRules.length; i < l; i++) {
|
|
136
|
+
if (terminatorRules[i](state, nextLine, endLine, true)) {
|
|
137
|
+
terminate = true;
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (terminate) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
lineText = getLine(state, nextLine).trim();
|
|
145
|
+
if (!lineText) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
if (state.sCount[nextLine] - state.blkIndent >= 4) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
columns = escapedSplit(lineText);
|
|
152
|
+
if (columns.length && columns[0] === "")
|
|
153
|
+
columns.shift();
|
|
154
|
+
if (columns.length && columns[columns.length - 1] === "")
|
|
155
|
+
columns.pop();
|
|
156
|
+
if (nextLine === startLine + 2) {
|
|
157
|
+
token = state.push("tbody_open", "tbody", 1);
|
|
158
|
+
token.map = tbodyLines = [startLine + 2, 0];
|
|
159
|
+
}
|
|
160
|
+
token = state.push("tr_open", "tr", 1);
|
|
161
|
+
token.map = [nextLine, nextLine + 1];
|
|
162
|
+
for (i = 0; i < columnCount; i++) {
|
|
163
|
+
token = state.push("td_open", "td", 1);
|
|
164
|
+
if (aligns[i]) {
|
|
165
|
+
token.attrs = [["style", "text-align:" + aligns[i]]];
|
|
166
|
+
}
|
|
167
|
+
token = state.push("inline", "", 0);
|
|
168
|
+
token.content = columns[i] ? columns[i].trim() : "";
|
|
169
|
+
token.children = [];
|
|
170
|
+
token = state.push("td_close", "td", -1);
|
|
171
|
+
}
|
|
172
|
+
token = state.push("tr_close", "tr", -1);
|
|
173
|
+
}
|
|
174
|
+
if (tbodyLines) {
|
|
175
|
+
token = state.push("tbody_close", "tbody", -1);
|
|
176
|
+
tbodyLines[1] = nextLine;
|
|
177
|
+
}
|
|
178
|
+
token = state.push("table_close", "table", -1);
|
|
179
|
+
tableLines[1] = nextLine;
|
|
180
|
+
state.parentType = oldParentType;
|
|
181
|
+
state.line = nextLine;
|
|
182
|
+
return true;
|
|
183
|
+
};
|
|
184
|
+
module.exports = table;
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var block = function block2(state) {
|
|
3
|
+
var token;
|
|
4
|
+
if (state.inlineMode) {
|
|
5
|
+
token = new state.Token("inline", "", 0);
|
|
6
|
+
token.content = state.src;
|
|
7
|
+
token.map = [0, 1];
|
|
8
|
+
token.children = [];
|
|
9
|
+
state.tokens.push(token);
|
|
10
|
+
} else {
|
|
11
|
+
state.md.block.parse(state.src, state.md, state.env, state.tokens);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
module.exports = block;
|
|
@@ -1 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var inline = function inline2(state) {
|
|
3
|
+
var tokens = state.tokens, tok, i, l;
|
|
4
|
+
for (i = 0, l = tokens.length; i < l; i++) {
|
|
5
|
+
tok = tokens[i];
|
|
6
|
+
if (tok.type === "inline") {
|
|
7
|
+
state.md.inline.parse(tok.content, state.md, state.env, tok.children);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
module.exports = inline;
|
|
@@ -1 +1,100 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
require("../common/utils.js");
|
|
3
|
+
const utils = require("../../../../../../../_virtual/utils.js");
|
|
4
|
+
var arrayReplaceAt = utils.__exports.arrayReplaceAt;
|
|
5
|
+
function isLinkOpen(str) {
|
|
6
|
+
return /^<a[>\s]/i.test(str);
|
|
7
|
+
}
|
|
8
|
+
function isLinkClose(str) {
|
|
9
|
+
return /^<\/a\s*>/i.test(str);
|
|
10
|
+
}
|
|
11
|
+
var linkify = function linkify2(state) {
|
|
12
|
+
var i, j, l, tokens, token, currentToken, nodes, ln, text, pos, lastPos, level, htmlLinkLevel, url, fullUrl, urlText, blockTokens = state.tokens, links;
|
|
13
|
+
if (!state.md.options.linkify) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
for (j = 0, l = blockTokens.length; j < l; j++) {
|
|
17
|
+
if (blockTokens[j].type !== "inline" || !state.md.linkify.pretest(blockTokens[j].content)) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
tokens = blockTokens[j].children;
|
|
21
|
+
htmlLinkLevel = 0;
|
|
22
|
+
for (i = tokens.length - 1; i >= 0; i--) {
|
|
23
|
+
currentToken = tokens[i];
|
|
24
|
+
if (currentToken.type === "link_close") {
|
|
25
|
+
i--;
|
|
26
|
+
while (tokens[i].level !== currentToken.level && tokens[i].type !== "link_open") {
|
|
27
|
+
i--;
|
|
28
|
+
}
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (currentToken.type === "html_inline") {
|
|
32
|
+
if (isLinkOpen(currentToken.content) && htmlLinkLevel > 0) {
|
|
33
|
+
htmlLinkLevel--;
|
|
34
|
+
}
|
|
35
|
+
if (isLinkClose(currentToken.content)) {
|
|
36
|
+
htmlLinkLevel++;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (htmlLinkLevel > 0) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (currentToken.type === "text" && state.md.linkify.test(currentToken.content)) {
|
|
43
|
+
text = currentToken.content;
|
|
44
|
+
links = state.md.linkify.match(text);
|
|
45
|
+
nodes = [];
|
|
46
|
+
level = currentToken.level;
|
|
47
|
+
lastPos = 0;
|
|
48
|
+
if (links.length > 0 && links[0].index === 0 && i > 0 && tokens[i - 1].type === "text_special") {
|
|
49
|
+
links = links.slice(1);
|
|
50
|
+
}
|
|
51
|
+
for (ln = 0; ln < links.length; ln++) {
|
|
52
|
+
url = links[ln].url;
|
|
53
|
+
fullUrl = state.md.normalizeLink(url);
|
|
54
|
+
if (!state.md.validateLink(fullUrl)) {
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
urlText = links[ln].text;
|
|
58
|
+
if (!links[ln].schema) {
|
|
59
|
+
urlText = state.md.normalizeLinkText("http://" + urlText).replace(/^http:\/\//, "");
|
|
60
|
+
} else if (links[ln].schema === "mailto:" && !/^mailto:/i.test(urlText)) {
|
|
61
|
+
urlText = state.md.normalizeLinkText("mailto:" + urlText).replace(/^mailto:/, "");
|
|
62
|
+
} else {
|
|
63
|
+
urlText = state.md.normalizeLinkText(urlText);
|
|
64
|
+
}
|
|
65
|
+
pos = links[ln].index;
|
|
66
|
+
if (pos > lastPos) {
|
|
67
|
+
token = new state.Token("text", "", 0);
|
|
68
|
+
token.content = text.slice(lastPos, pos);
|
|
69
|
+
token.level = level;
|
|
70
|
+
nodes.push(token);
|
|
71
|
+
}
|
|
72
|
+
token = new state.Token("link_open", "a", 1);
|
|
73
|
+
token.attrs = [["href", fullUrl]];
|
|
74
|
+
token.level = level++;
|
|
75
|
+
token.markup = "linkify";
|
|
76
|
+
token.info = "auto";
|
|
77
|
+
nodes.push(token);
|
|
78
|
+
token = new state.Token("text", "", 0);
|
|
79
|
+
token.content = urlText;
|
|
80
|
+
token.level = level;
|
|
81
|
+
nodes.push(token);
|
|
82
|
+
token = new state.Token("link_close", "a", -1);
|
|
83
|
+
token.level = --level;
|
|
84
|
+
token.markup = "linkify";
|
|
85
|
+
token.info = "auto";
|
|
86
|
+
nodes.push(token);
|
|
87
|
+
lastPos = links[ln].lastIndex;
|
|
88
|
+
}
|
|
89
|
+
if (lastPos < text.length) {
|
|
90
|
+
token = new state.Token("text", "", 0);
|
|
91
|
+
token.content = text.slice(lastPos);
|
|
92
|
+
token.level = level;
|
|
93
|
+
nodes.push(token);
|
|
94
|
+
}
|
|
95
|
+
blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
module.exports = linkify;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var NEWLINES_RE = /\r\n?|\n/g;
|
|
3
|
+
var NULL_RE = /\0/g;
|
|
4
|
+
var normalize = function normalize2(state) {
|
|
5
|
+
var str;
|
|
6
|
+
str = state.src.replace(NEWLINES_RE, "\n");
|
|
7
|
+
str = str.replace(NULL_RE, "�");
|
|
8
|
+
state.src = str;
|
|
9
|
+
};
|
|
10
|
+
module.exports = normalize;
|
|
@@ -1 +1,62 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var RARE_RE = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/;
|
|
3
|
+
var SCOPED_ABBR_TEST_RE = /\((c|tm|r)\)/i;
|
|
4
|
+
var SCOPED_ABBR_RE = /\((c|tm|r)\)/ig;
|
|
5
|
+
var SCOPED_ABBR = {
|
|
6
|
+
c: "©",
|
|
7
|
+
r: "®",
|
|
8
|
+
tm: "™"
|
|
9
|
+
};
|
|
10
|
+
function replaceFn(match, name) {
|
|
11
|
+
return SCOPED_ABBR[name.toLowerCase()];
|
|
12
|
+
}
|
|
13
|
+
function replace_scoped(inlineTokens) {
|
|
14
|
+
var i, token, inside_autolink = 0;
|
|
15
|
+
for (i = inlineTokens.length - 1; i >= 0; i--) {
|
|
16
|
+
token = inlineTokens[i];
|
|
17
|
+
if (token.type === "text" && !inside_autolink) {
|
|
18
|
+
token.content = token.content.replace(SCOPED_ABBR_RE, replaceFn);
|
|
19
|
+
}
|
|
20
|
+
if (token.type === "link_open" && token.info === "auto") {
|
|
21
|
+
inside_autolink--;
|
|
22
|
+
}
|
|
23
|
+
if (token.type === "link_close" && token.info === "auto") {
|
|
24
|
+
inside_autolink++;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function replace_rare(inlineTokens) {
|
|
29
|
+
var i, token, inside_autolink = 0;
|
|
30
|
+
for (i = inlineTokens.length - 1; i >= 0; i--) {
|
|
31
|
+
token = inlineTokens[i];
|
|
32
|
+
if (token.type === "text" && !inside_autolink) {
|
|
33
|
+
if (RARE_RE.test(token.content)) {
|
|
34
|
+
token.content = token.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
if (token.type === "link_open" && token.info === "auto") {
|
|
38
|
+
inside_autolink--;
|
|
39
|
+
}
|
|
40
|
+
if (token.type === "link_close" && token.info === "auto") {
|
|
41
|
+
inside_autolink++;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
var replacements = function replace(state) {
|
|
46
|
+
var blkIdx;
|
|
47
|
+
if (!state.md.options.typographer) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
|
|
51
|
+
if (state.tokens[blkIdx].type !== "inline") {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (SCOPED_ABBR_TEST_RE.test(state.tokens[blkIdx].content)) {
|
|
55
|
+
replace_scoped(state.tokens[blkIdx].children);
|
|
56
|
+
}
|
|
57
|
+
if (RARE_RE.test(state.tokens[blkIdx].content)) {
|
|
58
|
+
replace_rare(state.tokens[blkIdx].children);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
module.exports = replacements;
|
|
@@ -1 +1,157 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
require("../common/utils.js");
|
|
3
|
+
const utils = require("../../../../../../../_virtual/utils.js");
|
|
4
|
+
var isWhiteSpace = utils.__exports.isWhiteSpace;
|
|
5
|
+
var isPunctChar = utils.__exports.isPunctChar;
|
|
6
|
+
var isMdAsciiPunct = utils.__exports.isMdAsciiPunct;
|
|
7
|
+
var QUOTE_TEST_RE = /['"]/;
|
|
8
|
+
var QUOTE_RE = /['"]/g;
|
|
9
|
+
var APOSTROPHE = "’";
|
|
10
|
+
function replaceAt(str, index, ch) {
|
|
11
|
+
return str.slice(0, index) + ch + str.slice(index + 1);
|
|
12
|
+
}
|
|
13
|
+
function process_inlines(tokens, state) {
|
|
14
|
+
var i, token, text, t, pos, max, thisLevel, item, lastChar, nextChar, isLastPunctChar, isNextPunctChar, isLastWhiteSpace, isNextWhiteSpace, canOpen, canClose, j, isSingle, stack, openQuote, closeQuote;
|
|
15
|
+
stack = [];
|
|
16
|
+
for (i = 0; i < tokens.length; i++) {
|
|
17
|
+
token = tokens[i];
|
|
18
|
+
thisLevel = tokens[i].level;
|
|
19
|
+
for (j = stack.length - 1; j >= 0; j--) {
|
|
20
|
+
if (stack[j].level <= thisLevel) {
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
stack.length = j + 1;
|
|
25
|
+
if (token.type !== "text") {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
text = token.content;
|
|
29
|
+
pos = 0;
|
|
30
|
+
max = text.length;
|
|
31
|
+
OUTER:
|
|
32
|
+
while (pos < max) {
|
|
33
|
+
QUOTE_RE.lastIndex = pos;
|
|
34
|
+
t = QUOTE_RE.exec(text);
|
|
35
|
+
if (!t) {
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
canOpen = canClose = true;
|
|
39
|
+
pos = t.index + 1;
|
|
40
|
+
isSingle = t[0] === "'";
|
|
41
|
+
lastChar = 32;
|
|
42
|
+
if (t.index - 1 >= 0) {
|
|
43
|
+
lastChar = text.charCodeAt(t.index - 1);
|
|
44
|
+
} else {
|
|
45
|
+
for (j = i - 1; j >= 0; j--) {
|
|
46
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak")
|
|
47
|
+
break;
|
|
48
|
+
if (!tokens[j].content)
|
|
49
|
+
continue;
|
|
50
|
+
lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
nextChar = 32;
|
|
55
|
+
if (pos < max) {
|
|
56
|
+
nextChar = text.charCodeAt(pos);
|
|
57
|
+
} else {
|
|
58
|
+
for (j = i + 1; j < tokens.length; j++) {
|
|
59
|
+
if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak")
|
|
60
|
+
break;
|
|
61
|
+
if (!tokens[j].content)
|
|
62
|
+
continue;
|
|
63
|
+
nextChar = tokens[j].content.charCodeAt(0);
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctChar(String.fromCharCode(lastChar));
|
|
68
|
+
isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctChar(String.fromCharCode(nextChar));
|
|
69
|
+
isLastWhiteSpace = isWhiteSpace(lastChar);
|
|
70
|
+
isNextWhiteSpace = isWhiteSpace(nextChar);
|
|
71
|
+
if (isNextWhiteSpace) {
|
|
72
|
+
canOpen = false;
|
|
73
|
+
} else if (isNextPunctChar) {
|
|
74
|
+
if (!(isLastWhiteSpace || isLastPunctChar)) {
|
|
75
|
+
canOpen = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (isLastWhiteSpace) {
|
|
79
|
+
canClose = false;
|
|
80
|
+
} else if (isLastPunctChar) {
|
|
81
|
+
if (!(isNextWhiteSpace || isNextPunctChar)) {
|
|
82
|
+
canClose = false;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (nextChar === 34 && t[0] === '"') {
|
|
86
|
+
if (lastChar >= 48 && lastChar <= 57) {
|
|
87
|
+
canClose = canOpen = false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (canOpen && canClose) {
|
|
91
|
+
canOpen = isLastPunctChar;
|
|
92
|
+
canClose = isNextPunctChar;
|
|
93
|
+
}
|
|
94
|
+
if (!canOpen && !canClose) {
|
|
95
|
+
if (isSingle) {
|
|
96
|
+
token.content = replaceAt(token.content, t.index, APOSTROPHE);
|
|
97
|
+
}
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
if (canClose) {
|
|
101
|
+
for (j = stack.length - 1; j >= 0; j--) {
|
|
102
|
+
item = stack[j];
|
|
103
|
+
if (stack[j].level < thisLevel) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
if (item.single === isSingle && stack[j].level === thisLevel) {
|
|
107
|
+
item = stack[j];
|
|
108
|
+
if (isSingle) {
|
|
109
|
+
openQuote = state.md.options.quotes[2];
|
|
110
|
+
closeQuote = state.md.options.quotes[3];
|
|
111
|
+
} else {
|
|
112
|
+
openQuote = state.md.options.quotes[0];
|
|
113
|
+
closeQuote = state.md.options.quotes[1];
|
|
114
|
+
}
|
|
115
|
+
token.content = replaceAt(token.content, t.index, closeQuote);
|
|
116
|
+
tokens[item.token].content = replaceAt(
|
|
117
|
+
tokens[item.token].content,
|
|
118
|
+
item.pos,
|
|
119
|
+
openQuote
|
|
120
|
+
);
|
|
121
|
+
pos += closeQuote.length - 1;
|
|
122
|
+
if (item.token === i) {
|
|
123
|
+
pos += openQuote.length - 1;
|
|
124
|
+
}
|
|
125
|
+
text = token.content;
|
|
126
|
+
max = text.length;
|
|
127
|
+
stack.length = j;
|
|
128
|
+
continue OUTER;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
if (canOpen) {
|
|
133
|
+
stack.push({
|
|
134
|
+
token: i,
|
|
135
|
+
pos: t.index,
|
|
136
|
+
single: isSingle,
|
|
137
|
+
level: thisLevel
|
|
138
|
+
});
|
|
139
|
+
} else if (canClose && isSingle) {
|
|
140
|
+
token.content = replaceAt(token.content, t.index, APOSTROPHE);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
var smartquotes = function smartquotes2(state) {
|
|
146
|
+
var blkIdx;
|
|
147
|
+
if (!state.md.options.typographer) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
|
|
151
|
+
if (state.tokens[blkIdx].type !== "inline" || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
process_inlines(state.tokens[blkIdx].children, state);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
module.exports = smartquotes;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
const token = require("../token.js");
|
|
3
|
+
var Token = token;
|
|
4
|
+
function StateCore(src, md, env) {
|
|
5
|
+
this.src = src;
|
|
6
|
+
this.env = env;
|
|
7
|
+
this.tokens = [];
|
|
8
|
+
this.inlineMode = false;
|
|
9
|
+
this.md = md;
|
|
10
|
+
}
|
|
11
|
+
StateCore.prototype.Token = Token;
|
|
12
|
+
var state_core = StateCore;
|
|
13
|
+
module.exports = state_core;
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var text_join = function text_join2(state) {
|
|
3
|
+
var j, l, tokens, curr, max, last, blockTokens = state.tokens;
|
|
4
|
+
for (j = 0, l = blockTokens.length; j < l; j++) {
|
|
5
|
+
if (blockTokens[j].type !== "inline")
|
|
6
|
+
continue;
|
|
7
|
+
tokens = blockTokens[j].children;
|
|
8
|
+
max = tokens.length;
|
|
9
|
+
for (curr = 0; curr < max; curr++) {
|
|
10
|
+
if (tokens[curr].type === "text_special") {
|
|
11
|
+
tokens[curr].type = "text";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
for (curr = last = 0; curr < max; curr++) {
|
|
15
|
+
if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") {
|
|
16
|
+
tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
|
|
17
|
+
} else {
|
|
18
|
+
if (curr !== last) {
|
|
19
|
+
tokens[last] = tokens[curr];
|
|
20
|
+
}
|
|
21
|
+
last++;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (curr !== last) {
|
|
25
|
+
tokens.length = last;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
module.exports = text_join;
|
|
@@ -1 +1,61 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/;
|
|
3
|
+
var AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
4
|
+
var autolink = function autolink2(state, silent) {
|
|
5
|
+
var url, fullUrl, token, ch, start, max, pos = state.pos;
|
|
6
|
+
if (state.src.charCodeAt(pos) !== 60) {
|
|
7
|
+
return false;
|
|
8
|
+
}
|
|
9
|
+
start = state.pos;
|
|
10
|
+
max = state.posMax;
|
|
11
|
+
for (; ; ) {
|
|
12
|
+
if (++pos >= max)
|
|
13
|
+
return false;
|
|
14
|
+
ch = state.src.charCodeAt(pos);
|
|
15
|
+
if (ch === 60)
|
|
16
|
+
return false;
|
|
17
|
+
if (ch === 62)
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
url = state.src.slice(start + 1, pos);
|
|
21
|
+
if (AUTOLINK_RE.test(url)) {
|
|
22
|
+
fullUrl = state.md.normalizeLink(url);
|
|
23
|
+
if (!state.md.validateLink(fullUrl)) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
if (!silent) {
|
|
27
|
+
token = state.push("link_open", "a", 1);
|
|
28
|
+
token.attrs = [["href", fullUrl]];
|
|
29
|
+
token.markup = "autolink";
|
|
30
|
+
token.info = "auto";
|
|
31
|
+
token = state.push("text", "", 0);
|
|
32
|
+
token.content = state.md.normalizeLinkText(url);
|
|
33
|
+
token = state.push("link_close", "a", -1);
|
|
34
|
+
token.markup = "autolink";
|
|
35
|
+
token.info = "auto";
|
|
36
|
+
}
|
|
37
|
+
state.pos += url.length + 2;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
if (EMAIL_RE.test(url)) {
|
|
41
|
+
fullUrl = state.md.normalizeLink("mailto:" + url);
|
|
42
|
+
if (!state.md.validateLink(fullUrl)) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
if (!silent) {
|
|
46
|
+
token = state.push("link_open", "a", 1);
|
|
47
|
+
token.attrs = [["href", fullUrl]];
|
|
48
|
+
token.markup = "autolink";
|
|
49
|
+
token.info = "auto";
|
|
50
|
+
token = state.push("text", "", 0);
|
|
51
|
+
token.content = state.md.normalizeLinkText(url);
|
|
52
|
+
token = state.push("link_close", "a", -1);
|
|
53
|
+
token.markup = "autolink";
|
|
54
|
+
token.info = "auto";
|
|
55
|
+
}
|
|
56
|
+
state.pos += url.length + 2;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
return false;
|
|
60
|
+
};
|
|
61
|
+
module.exports = autolink;
|