md-editor-v3 6.3.1 → 6.3.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/README.md +27 -3
- package/lib/cjs/chunks/config.cjs +1 -1
- package/lib/es/chunks/config.mjs +30 -30
- package/lib/types/index.d.ts +3295 -8
- package/package.json +2 -2
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +0 -137
- package/lib/types/DropdownToolbar/index.d.ts +0 -6
- package/lib/types/MdCatalog/CatalogLink.d.ts +0 -53
- package/lib/types/MdCatalog/MdCatalog.d.ts +0 -186
- package/lib/types/MdCatalog/index.d.ts +0 -6
- package/lib/types/MdEditor/Editor.d.ts +0 -590
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +0 -33
- package/lib/types/MdEditor/components/CustomScrollbar/index.d.ts +0 -72
- package/lib/types/MdEditor/components/Divider/index.d.ts +0 -2
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +0 -55
- package/lib/types/MdEditor/components/Icon/Github.d.ts +0 -2
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +0 -18
- package/lib/types/MdEditor/components/Icon/Str.d.ts +0 -3
- package/lib/types/MdEditor/components/Icon/index.d.ts +0 -16
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +0 -108
- package/lib/types/MdEditor/components/Modal/index.d.ts +0 -6
- package/lib/types/MdEditor/composition.d.ts +0 -92
- package/lib/types/MdEditor/config.d.ts +0 -33
- package/lib/types/MdEditor/index.d.ts +0 -6
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +0 -153
- package/lib/types/MdEditor/layouts/Content/UpdateOnDemand.d.ts +0 -28
- package/lib/types/MdEditor/layouts/Content/codemirror/autocompletion.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Content/codemirror/commands.d.ts +0 -4
- package/lib/types/MdEditor/layouts/Content/codemirror/floatingToolbar.d.ts +0 -6
- package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +0 -53
- package/lib/types/MdEditor/layouts/Content/codemirror/textShortener.d.ts +0 -20
- package/lib/types/MdEditor/layouts/Content/codemirror/themeLight.d.ts +0 -26
- package/lib/types/MdEditor/layouts/Content/codemirror/themeOneDark.d.ts +0 -26
- package/lib/types/MdEditor/layouts/Content/composition/index.d.ts +0 -10
- package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +0 -9
- package/lib/types/MdEditor/layouts/Content/composition/useAutoScroll.d.ts +0 -5
- package/lib/types/MdEditor/layouts/Content/composition/useCodeMirror.d.ts +0 -15
- package/lib/types/MdEditor/layouts/Content/composition/useCopyCode.d.ts +0 -4
- package/lib/types/MdEditor/layouts/Content/composition/useEcharts.d.ts +0 -10
- package/lib/types/MdEditor/layouts/Content/composition/useFollowCatalog.d.ts +0 -5
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +0 -8
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +0 -8
- package/lib/types/MdEditor/layouts/Content/composition/useMarkdownIt.d.ts +0 -6
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +0 -10
- package/lib/types/MdEditor/layouts/Content/composition/usePasteUpload.d.ts +0 -8
- package/lib/types/MdEditor/layouts/Content/composition/useRemount.d.ts +0 -3
- package/lib/types/MdEditor/layouts/Content/composition/useResize.d.ts +0 -12
- package/lib/types/MdEditor/layouts/Content/composition/useTaskState.d.ts +0 -3
- package/lib/types/MdEditor/layouts/Content/composition/useToolbarEffect.d.ts +0 -3
- package/lib/types/MdEditor/layouts/Content/composition/userZoom.d.ts +0 -10
- package/lib/types/MdEditor/layouts/Content/index.d.ts +0 -93
- package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +0 -11
- package/lib/types/MdEditor/layouts/Content/markdownIt/code/index.d.ts +0 -23
- package/lib/types/MdEditor/layouts/Content/markdownIt/echarts/index.d.ts +0 -7
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +0 -9
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +0 -20
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +0 -7
- package/lib/types/MdEditor/layouts/Content/markdownIt/task/index.d.ts +0 -15
- package/lib/types/MdEditor/layouts/Content/markdownIt/xss/index.d.ts +0 -13
- package/lib/types/MdEditor/layouts/Content/props.d.ts +0 -204
- package/lib/types/MdEditor/layouts/Content/type.d.ts +0 -19
- package/lib/types/MdEditor/layouts/FloatingToolbar/index.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +0 -15
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +0 -21
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +0 -52
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +0 -33
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +0 -33
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +0 -28
- package/lib/types/MdEditor/layouts/Toolbar/composition.d.ts +0 -7
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +0 -23
- package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +0 -14
- package/lib/types/MdEditor/layouts/Toolbar/tools/Bold.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Catalog.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Code.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/CodeRow.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Fullscreen.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Github.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/HtmlPreview.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Image.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/ImageDropdown.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Italic.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Katex.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Link.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Mermaid.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Next.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/OrderedList.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/PageFullscreen.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Prettier.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Preview.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/PreviewOnly.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Quote.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Revoke.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Save.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/StrikeThrough.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Sub.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Sup.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Table.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Task.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Title.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/Underline.d.ts +0 -2
- package/lib/types/MdEditor/layouts/Toolbar/tools/UnorderedList.d.ts +0 -2
- package/lib/types/MdEditor/props.d.ts +0 -784
- package/lib/types/MdEditor/static/env.d.ts +0 -1
- package/lib/types/MdEditor/static/event-name.d.ts +0 -23
- package/lib/types/MdEditor/static/index.d.ts +0 -14
- package/lib/types/MdEditor/type.d.ts +0 -534
- package/lib/types/MdEditor/utils/cache.d.ts +0 -2
- package/lib/types/MdEditor/utils/content-help.d.ts +0 -44
- package/lib/types/MdEditor/utils/dom.d.ts +0 -43
- package/lib/types/MdEditor/utils/event-bus.d.ts +0 -17
- package/lib/types/MdEditor/utils/index.d.ts +0 -38
- package/lib/types/MdEditor/utils/md-it.d.ts +0 -2
- package/lib/types/MdEditor/utils/scroll-auto.d.ts +0 -19
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +0 -18
- package/lib/types/MdPreview/MdPreview.d.ts +0 -516
- package/lib/types/MdPreview/composition/useExpose.d.ts +0 -5
- package/lib/types/MdPreview/index.d.ts +0 -6
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +0 -216
- package/lib/types/ModalToolbar/index.d.ts +0 -6
- package/lib/types/NormalFooterToolbar/NormalFooterToolbar.d.ts +0 -51
- package/lib/types/NormalFooterToolbar/index.d.ts +0 -6
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +0 -117
- package/lib/types/NormalToolbar/index.d.ts +0 -6
- package/lib/types/config.d.ts +0 -3
- package/lib/types/preview.d.ts +0 -6
- package/lib/types/util.d.ts +0 -5
package/README.md
CHANGED
|
@@ -37,19 +37,19 @@ Inputing prompt and mark, emoji extensions
|
|
|
37
37
|
## 📦 Install
|
|
38
38
|
|
|
39
39
|
```shell
|
|
40
|
-
|
|
40
|
+
npm i md-editor-v3
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
Use existing extension of language and theme, such as Japanese
|
|
44
44
|
|
|
45
45
|
```shell
|
|
46
|
-
|
|
46
|
+
npm i @vavt/cm-extension
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Use existing components of toolbar, such as exporting content as PDF
|
|
50
50
|
|
|
51
51
|
```shell
|
|
52
|
-
|
|
52
|
+
npm i @vavt/v3-extension
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
For more ways to use or contribute, please refer to: [md-editor-extension](https://github.com/imzbf/md-editor-extension)
|
|
@@ -100,3 +100,27 @@ When using server-side rendering, `scrollElement` should be of string type, eg:
|
|
|
100
100
|
---
|
|
101
101
|
|
|
102
102
|
For more usage, please visit the [document](https://imzbf.github.io/md-editor-v3).
|
|
103
|
+
|
|
104
|
+
## 🏁 Contribute
|
|
105
|
+
|
|
106
|
+
### 🤝 Commit Convention (Release Aligned)
|
|
107
|
+
|
|
108
|
+
The release workflow in `.github/workflows/latest.yml` reads commit messages to build `CHANGELOG.md`.
|
|
109
|
+
|
|
110
|
+
- Format: `<type>(<scope>)!: <summary>`
|
|
111
|
+
- Recommended types:
|
|
112
|
+
- `feat`: goes to **Features**
|
|
113
|
+
- `refactor`: goes to **Refactors**
|
|
114
|
+
- `fix`: goes to **Fixed Bugs**
|
|
115
|
+
- other types: goes to **Others**
|
|
116
|
+
- Do not use pure version subjects like `6.3.2` or `v6.3.2-beta.1` (ignored by release parser).
|
|
117
|
+
- `docs(changelog): ...` is reserved for the bot-generated changelog commit.
|
|
118
|
+
- If you add `#123` in subject/body, release automation will notify and close that issue after publishing. Only reference issue numbers that are truly resolved.
|
|
119
|
+
|
|
120
|
+
Examples:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
git commit -m "feat(editor): support drag-sort toolbar items"
|
|
124
|
+
git commit -m "fix(preview): sync anchor when heading id contains emoji #1234"
|
|
125
|
+
git commit -m "refactor(build): simplify dts rollup pipeline"
|
|
126
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const a=require("@vavt/util"),o="md-editor",l="MdEditor",s="https://unpkg.com",c=`${s}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,i={main:`${s}/prettier@3.8.1/standalone.js`,markdown:`${s}/prettier@3.8.1/plugins/markdown.js`},g={css:`${s}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${s}/cropperjs@1.6.2/dist/cropper.min.js`},d=`${s}/screenfull@5.2.0/dist/screenfull.js`,h=`${s}/mermaid@11.12.3/dist/mermaid.min.js`,m={js:`${s}/katex@0.16.33/dist/katex.min.js`,css:`${s}/katex@0.16.33/dist/katex.min.css`},t={a11y:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${s}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${s}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},u=`${s}/echarts@6.0.0/dist/echarts.min.js`,p={highlight:{js:{integrity:"sha384-RH2xi4eIQ/gjtbs9fUXM68sLSi99C7ZWBRX1vDrVv6GQXRibxXLbwO2NGZB74MbU",crossOrigin:"anonymous"},css:{a11y:{light:{integrity:"sha384-qdZDAN3jffvh670RHw1wxLekabidEFaNRninYgIzBvMbL6WlHdXeHS/Bt+vx33lN",crossOrigin:"anonymous"},dark:{integrity:"sha384-2QAAjX8pqaM5azX68KWI2wExF6Q13kY4kEiQFY4b/1zPe6rpgmTByNpDEllH3sb+",crossOrigin:"anonymous"}},atom:{light:{integrity:"sha384-w6Ujm1VWa9HYFqGc89oAPn/DWDi2gUamjNrq9DRvEYm2X3ClItg9Y9xs1ViVo5b5",crossOrigin:"anonymous"},dark:{integrity:"sha384-oaMLBGEzBOJx3UHwac0cVndtX5fxGQIfnAeFZ35RTgqPcYlbprH9o9PUV/F8Le07",crossOrigin:"anonymous"}},github:{light:{integrity:"sha384-eFTL69TLRZTkNfYZOLM+G04821K1qZao/4QLJbet1pP4tcF+fdXq/9CdqAbWRl/L",crossOrigin:"anonymous"},dark:{integrity:"sha384-wH75j6z1lH97ZOpMOInqhgKzFkAInZPPSPlZpYKYTOqsaizPvhQZmAtLcPKXpLyH",crossOrigin:"anonymous"}},gradient:{light:{integrity:"sha384-yErHBR8aEZPxRl3XmR8dGSRAclMlnSRRw8sXQLcmPWzWUvb56BzQmBw3EWHl7QGI",crossOrigin:"anonymous"},dark:{integrity:"sha384-lUCvtSOdvDbp5hLWKgwz/taFu1HxlpqES2OVP5UG2JMTfnU481gXcBhGF9lAGoSr",crossOrigin:"anonymous"}},kimbie:{light:{integrity:"sha384-tloeSLUPczAvoZ48TUz+OxRie0oYLCRwlkadUXovGzzJEIbNQB2TkfUuvJ6SW5Mi",crossOrigin:"anonymous"},dark:{integrity:"sha384-o5F1vUaMNOmou1sQrsWiFo4/QUGSV0svqNZW+EesmKxWC8MpFJcveBhAyfvTHbGb",crossOrigin:"anonymous"}},paraiso:{light:{integrity:"sha384-5j6QHU2Hwg1ehtlIQNDebhETDB8bga3/88hzBFsMRaGmgQHCftqIN7GZNDNw0vTL",crossOrigin:"anonymous"},dark:{integrity:"sha384-I5vnnMQu0LWDQnHpT61xyoMwKarAB8jpZkB2ioFOlmzUFnIFaV4QbUwlBBOMKhTH",crossOrigin:"anonymous"}},qtcreator:{light:{integrity:"sha384-iEBgHrwi8Hv4dSZBz+MOGvS05rF7I7fGKM2fASQyE9jn2Istg9Qd5dSoK18WyRTB",crossOrigin:"anonymous"},dark:{integrity:"sha384-D6LXJGWNR4QV7gnpuP3ccbvOYoR02td3cU0y7lESABPg/tzCSC4m+y+M2TtrmpHc",crossOrigin:"anonymous"}},stackoverflow:{light:{integrity:"sha384-FMwt7cTGo4aLxZnno5k0xTj0W4gmi48Kwept+y/oQmE6cFk36Kr+QJZOKNOQwORe",crossOrigin:"anonymous"},dark:{integrity:"sha384-iL+x+BroCyHm/p2c6sMA9umXhdCWp2cKe4QUjPeMzHgwXAk+ZxHyIGP3NZTZensU",crossOrigin:"anonymous"}}}},prettier:{standaloneJs:{integrity:"sha384-Q+dEbdxfNurK4ryC0T77wU8G3EYhxdAierqqKOppGHnJ4e/85wVnMXDNWbaYYghP",crossOrigin:"anonymous"},parserMarkdownJs:{integrity:"sha384-UGdkYlLyq47VQhe9mHyNzuPhBTL9GA9YO5Vb0sXf2fnMYGuSMGAbZ8upsQj1+u4O",crossOrigin:"anonymous"}},cropper:{js:{integrity:"sha384-jrOgQzBlDeUNdmQn3rUt/PZD+pdcRBdWd/HWRqRo+n2OR2QtGyjSaJC0GiCeH+ir",crossOrigin:"anonymous"},css:{integrity:"sha384-6LFfkTKLRlzFtgx8xsWyBdKGpcMMQTkv+dB7rAbugeJAu1Ym2q1Aji1cjHBG12Xh",crossOrigin:"anonymous"}},screenfull:{js:{integrity:"sha384-Qfbv8upMDu/ikv42M0Jnym2hahbDQ77Nm8PGU0G+iA6UIwt1+scE6P1qKXA0anWU",crossOrigin:"anonymous"}},mermaid:{js:{integrity:"sha384-jFhLSLFn4m565eRAS0CDMWubMqOtfZWWbE8kqgGdU+VHbJ3B2G/4X8u+0BM8MtdU",crossOrigin:"anonymous"}},katex:{js:{integrity:"sha384-YPHNAPyrxGS8BNnA7Q4ommqra8WQPEjooVSLzFgwgs8OXJBvadbyvx4QpfiFurGr",crossOrigin:"anonymous"},css:{integrity:"sha384-fgYS3VC1089n2J3rVcEbXDHlnDLQ9B2Y1hvpQ720q1NvxCduQqT4JoGc4u2QCnzE",crossOrigin:"anonymous"}},echarts:{js:{integrity:"sha384-F07Cpw5v8spSU0H113F33m2NQQ/o6GqPTnTjf45ssG4Q6q58ZwhxBiQtIaqvnSpR",crossOrigin:"anonymous"}}},y=["bold","underline","italic","strikeThrough","-","title","sub","sup","quote","unorderedList","orderedList","task","-","codeRow","code","link","image","table","mermaid","katex","-","revoke","next","save","=","prettier","pageFullscreen","fullscreen","preview","previewOnly","htmlPreview","catalog","github"],k=["markdownTotal","=","scrollSwitch"],b={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},r={editorExtensions:{highlight:{js:c,css:t},prettier:{standaloneJs:i.main,parserMarkdownJs:i.markdown},cropper:{...g},screenfull:{js:d},mermaid:{js:h,enableZoom:!0},katex:{...m},echarts:{js:u}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},v=e=>a.deepMerge(r,e,{excludeKeys(n){return/[iI]{1}nstance/.test(n)}}),f=.1;exports.MinInputBoxWidth=f;exports.allFooter=k;exports.allToolbar=y;exports.codeCss=t;exports.config=v;exports.editorExtensionsAttrs=p;exports.globalConfig=r;exports.prefix=o;exports.prefixHump=l;exports.staticTextDefault=b;
|
package/lib/es/chunks/config.mjs
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { deepMerge as r } from "@vavt/util";
|
|
2
|
-
const
|
|
3
|
-
main: `${s}/prettier@3.
|
|
4
|
-
markdown: `${s}/prettier@3.
|
|
2
|
+
const u = "md-editor", p = "MdEditor", s = "https://unpkg.com", n = `${s}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`, i = {
|
|
3
|
+
main: `${s}/prettier@3.8.1/standalone.js`,
|
|
4
|
+
markdown: `${s}/prettier@3.8.1/plugins/markdown.js`
|
|
5
5
|
}, a = {
|
|
6
6
|
css: `${s}/cropperjs@1.6.2/dist/cropper.min.css`,
|
|
7
7
|
js: `${s}/cropperjs@1.6.2/dist/cropper.min.js`
|
|
8
|
-
}, o = `${s}/screenfull@5.2.0/dist/screenfull.js`, l = `${s}/mermaid@11.
|
|
9
|
-
js: `${s}/katex@0.16.
|
|
10
|
-
css: `${s}/katex@0.16.
|
|
8
|
+
}, o = `${s}/screenfull@5.2.0/dist/screenfull.js`, l = `${s}/mermaid@11.12.3/dist/mermaid.min.js`, c = {
|
|
9
|
+
js: `${s}/katex@0.16.33/dist/katex.min.js`,
|
|
10
|
+
css: `${s}/katex@0.16.33/dist/katex.min.css`
|
|
11
11
|
}, g = {
|
|
12
12
|
a11y: {
|
|
13
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
14
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
13
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,
|
|
14
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`
|
|
15
15
|
},
|
|
16
16
|
atom: {
|
|
17
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
18
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
17
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,
|
|
18
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`
|
|
19
19
|
},
|
|
20
20
|
github: {
|
|
21
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
22
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
21
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,
|
|
22
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`
|
|
23
23
|
},
|
|
24
24
|
gradient: {
|
|
25
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
26
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
25
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,
|
|
26
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`
|
|
27
27
|
},
|
|
28
28
|
kimbie: {
|
|
29
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
30
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
29
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,
|
|
30
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`
|
|
31
31
|
},
|
|
32
32
|
paraiso: {
|
|
33
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
34
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
33
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,
|
|
34
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`
|
|
35
35
|
},
|
|
36
36
|
qtcreator: {
|
|
37
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
38
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
37
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,
|
|
38
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`
|
|
39
39
|
},
|
|
40
40
|
stackoverflow: {
|
|
41
|
-
light: `${s}/@highlightjs/cdn-assets@11.
|
|
42
|
-
dark: `${s}/@highlightjs/cdn-assets@11.
|
|
41
|
+
light: `${s}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,
|
|
42
|
+
dark: `${s}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`
|
|
43
43
|
}
|
|
44
44
|
}, d = `${s}/echarts@6.0.0/dist/echarts.min.js`, y = {
|
|
45
45
|
highlight: {
|
|
46
46
|
js: {
|
|
47
|
-
integrity: "sha384-
|
|
47
|
+
integrity: "sha384-RH2xi4eIQ/gjtbs9fUXM68sLSi99C7ZWBRX1vDrVv6GQXRibxXLbwO2NGZB74MbU",
|
|
48
48
|
crossOrigin: "anonymous"
|
|
49
49
|
},
|
|
50
50
|
css: {
|
|
@@ -132,11 +132,11 @@ const p = "md-editor", u = "MdEditor", s = "https://unpkg.com", n = `${s}/@highl
|
|
|
132
132
|
},
|
|
133
133
|
prettier: {
|
|
134
134
|
standaloneJs: {
|
|
135
|
-
integrity: "sha384-
|
|
135
|
+
integrity: "sha384-Q+dEbdxfNurK4ryC0T77wU8G3EYhxdAierqqKOppGHnJ4e/85wVnMXDNWbaYYghP",
|
|
136
136
|
crossOrigin: "anonymous"
|
|
137
137
|
},
|
|
138
138
|
parserMarkdownJs: {
|
|
139
|
-
integrity: "sha384-
|
|
139
|
+
integrity: "sha384-UGdkYlLyq47VQhe9mHyNzuPhBTL9GA9YO5Vb0sXf2fnMYGuSMGAbZ8upsQj1+u4O",
|
|
140
140
|
crossOrigin: "anonymous"
|
|
141
141
|
}
|
|
142
142
|
},
|
|
@@ -158,17 +158,17 @@ const p = "md-editor", u = "MdEditor", s = "https://unpkg.com", n = `${s}/@highl
|
|
|
158
158
|
},
|
|
159
159
|
mermaid: {
|
|
160
160
|
js: {
|
|
161
|
-
integrity: "sha384-
|
|
161
|
+
integrity: "sha384-jFhLSLFn4m565eRAS0CDMWubMqOtfZWWbE8kqgGdU+VHbJ3B2G/4X8u+0BM8MtdU",
|
|
162
162
|
crossOrigin: "anonymous"
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
katex: {
|
|
166
166
|
js: {
|
|
167
|
-
integrity: "sha384-
|
|
167
|
+
integrity: "sha384-YPHNAPyrxGS8BNnA7Q4ommqra8WQPEjooVSLzFgwgs8OXJBvadbyvx4QpfiFurGr",
|
|
168
168
|
crossOrigin: "anonymous"
|
|
169
169
|
},
|
|
170
170
|
css: {
|
|
171
|
-
integrity: "sha384-
|
|
171
|
+
integrity: "sha384-fgYS3VC1089n2J3rVcEbXDHlnDLQ9B2Y1hvpQ720q1NvxCduQqT4JoGc4u2QCnzE",
|
|
172
172
|
crossOrigin: "anonymous"
|
|
173
173
|
}
|
|
174
174
|
},
|
|
@@ -428,10 +428,10 @@ export {
|
|
|
428
428
|
k as a,
|
|
429
429
|
b,
|
|
430
430
|
j as c,
|
|
431
|
-
|
|
431
|
+
p as d,
|
|
432
432
|
y as e,
|
|
433
433
|
g as f,
|
|
434
434
|
h as g,
|
|
435
|
-
p,
|
|
435
|
+
u as p,
|
|
436
436
|
v as s
|
|
437
437
|
};
|