editor.md-next-vue 0.0.0-stage → 0.1.0
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/LICENSE +32 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/types/index.d.ts +36 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +52 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 mindoc-org and editor.md-next contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
--------------------------------------------------------------------------------
|
|
24
|
+
Third-party notices (bundled or derived assets)
|
|
25
|
+
|
|
26
|
+
- editor.md (upstream inspiration, emoji & HTML-entities data): MIT (c) pandao
|
|
27
|
+
- CodeMirror 6 (@codemirror/*, @lezer/*): MIT (c) Marijn Haverbeke and others
|
|
28
|
+
- markdown-it: MIT (c) Vitaly Puzrin, Alex Kocharin
|
|
29
|
+
- highlight.js: BSD-3-Clause (c) Ivan Sagalaev
|
|
30
|
+
- DOMPurify: Apache-2.0 OR MPL-2.0 (c) Mario Heiderich and contributors
|
|
31
|
+
- Font Awesome 4.7 (fonts): SIL OFL 1.1 (fonts), MIT (css) (c) Dave Gandy
|
|
32
|
+
- editormd-logo font: MIT (c) pandao (vendored from editor.md)
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require("editor.md-next"),t=require("vue");var n=[`load`,`change`,`input`,`resize`,`watch`,`unwatch`,`previewEnter`,`previewExit`,`fullscreenEnter`,`fullscreenExit`,`scroll`,`previewScroll`],r=(0,t.defineComponent)({name:`EditorMD`,props:{modelValue:{type:String,default:``},options:{type:Object,default:()=>({})}},emits:[...n,`update:modelValue`],setup(r,i){let a=(0,t.shallowRef)(null),o=(0,t.shallowRef)(null),s=!1;return(0,t.onMounted)(()=>{if(!a.value)return;let t={};for(let e of n)t[e]=t=>{i.emit(e,t)};let c=t.change;t.change=e=>{let t=e;!s&&t&&i.emit(`update:modelValue`,t.markdown),c?.(e)};let l=t;o.value=new e.EditorMD(a.value,{...r.options,value:r.modelValue,on:l})}),(0,t.watch)(()=>r.modelValue,e=>{let t=o.value;t&&e!==t.getMarkdown()&&(s=!0,t.setMarkdown(e),s=!1)}),(0,t.onBeforeUnmount)(()=>{o.value?.destroy(),o.value=null}),()=>(0,t.h)(`div`,{ref:a,class:`emd-vue-editor`,style:{width:`100%`}})}});exports.EDITOR_EVENTS=n,exports.EditorMD=r,exports.default=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["defineComponent","shallowRef","EditorMDCore","h","editor_md_next","vue","EDITOR_EVENTS","EditorMD","host","editor","programmatic","handlers","name","ctx","payload","userChange","\"change\"","p","on","props","ed","value"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * editor.md-next 的 Vue 3 适配组件。\n *\n * 用法:\n * ```vue\n * <script setup lang=\"ts\">\n * import { EditorMD } from 'editor.md-next-vue'\n * import { ref } from 'vue'\n * const md = ref('# Hello')\n * </script>\n * <template>\n * <EditorMD v-model=\"md\" :options=\"{ height: 520 }\" @watch=\"...\" />\n * </template>\n * ```\n *\n * 样式需自行引入一次:`import 'editor.md-next/css'`\n */\nimport { EditorMD as EditorMDCore } from 'editor.md-next'\nimport type { EditorEvents } from 'editor.md-next'\nimport type { EditorUserOptions } from 'editor.md-next'\nimport { defineComponent, h, onBeforeUnmount, onMounted, shallowRef, watch } from 'vue'\nimport type { PropType, SetupContext, ShallowRef } from 'vue'\n\nexport type EditorMDOptions = Omit<EditorUserOptions, 'value' | 'on'>\n\n/** 与 core 的 EditorEvents 一一对应的事件名 */\nexport const EDITOR_EVENTS = [\n 'load',\n 'change',\n 'input',\n 'resize',\n 'watch',\n 'unwatch',\n 'previewEnter',\n 'previewExit',\n 'fullscreenEnter',\n 'fullscreenExit',\n 'scroll',\n 'previewScroll',\n] as const\n\nexport type EditorMDBeforeUnmount = () => void\n\nexport const EditorMD = defineComponent({\n name: 'EditorMD',\n\n props: {\n /** v-model:markdown 内容 */\n modelValue: {\n type: String,\n default: '',\n },\n /** 编辑器配置(不含 value/on,见 editor.md-next 文档) */\n options: {\n type: Object as PropType<EditorMDOptions>,\n default: () => ({}),\n },\n },\n\n emits: [...EDITOR_EVENTS, 'update:modelValue'] as unknown as string[],\n\n setup(props, ctx: SetupContext) {\n const host = shallowRef<HTMLDivElement | null>(null)\n const editor: ShallowRef<EditorMDCore | null> = shallowRef(null)\n let programmatic = false\n\n onMounted(() => {\n if (!host.value) return\n const handlers: Record<string, (payload: never) => void> = {}\n for (const name of EDITOR_EVENTS) {\n handlers[name] = (payload) => {\n ctx.emit(name as string, payload)\n }\n }\n // change 额外回写 v-model\n const userChange = handlers['change']\n handlers['change'] = (payload) => {\n const p = payload as EditorEvents['change']\n if (!programmatic && p) ctx.emit('update:modelValue', p.markdown)\n userChange?.(payload)\n }\n const on = handlers as { [K in keyof EditorEvents]?: (payload: EditorEvents[K]) => void }\n\n editor.value = new EditorMDCore(host.value, {\n ...props.options,\n value: props.modelValue,\n on,\n })\n })\n\n // 受控:外部 modelValue 变化 → setMarkdown(程序性,避免回环)\n watch(\n () => props.modelValue,\n (value) => {\n const ed = editor.value\n if (ed && value !== ed.getMarkdown()) {\n programmatic = true\n ed.setMarkdown(value)\n programmatic = false\n }\n },\n )\n\n onBeforeUnmount(() => {\n editor.value?.destroy()\n editor.value = null\n })\n\n return () =>\n h('div', {\n ref: host,\n class: 'emd-vue-editor',\n style: { width: '100%' },\n })\n },\n})\n\nexport default EditorMD\n"],"mappings":"A,gJA0BA,IAAaM,EAAgB,CAC3B,OACA,SACA,QACA,SACA,QACA,UACA,eACA,cACA,kBACA,iBACA,SACA,eACF,EAIaC,GAAA,EAAWP,EAAAA,gBAAAA,CAAgB,CACtC,KAAM,WAEN,MAAO,CAEL,WAAY,CACV,KAAM,OACN,QAAS,EACX,EAEA,QAAS,CACP,KAAM,OACN,aAAgB,CAAC,EACnB,CACF,EAEA,MAAO,CAAC,GAAGM,EAAe,mBAAmB,EAE7C,MAAM,EAAO,EAAmB,CAC9B,IAAME,GAAA,EAAOP,EAAAA,WAAAA,CAAkC,IAAI,EAC7CQ,GAAA,EAA0CR,EAAAA,WAAAA,CAAW,IAAI,EAC3DS,EAAe,GA4CnB,OA1CA,EAAAL,EAAA,UAAA,KAAgB,CACd,GAAI,CAACG,EAAK,MAAO,OACjB,IAAMG,EAAqD,CAAC,EAC5D,IAAK,IAAMC,KAAQN,EACjB,EAASM,GAAS,GAAY,CAC5BC,EAAI,KAAKD,EAAgBE,CAAO,CAClC,EAGF,IAAMC,EAAaJ,EAASK,OAC5B,EAASA,OAAa,GAAY,CAChC,IAAMC,EAAIH,EACN,CAACJ,GAAgBO,GAAGJ,EAAI,KAAK,oBAAqBI,EAAE,QAAQ,EAChEF,IAAaD,CAAO,CACtB,EACA,IAAMI,EAAKP,EAEX,EAAO,MAAQ,IAAIT,EAAAA,SAAaM,EAAK,MAAO,CAC1C,GAAGW,EAAM,QACT,MAAOA,EAAM,WACb,IACF,CAAC,CACH,CAAC,GAGD,EAAAd,EAAA,MAAA,KACQc,EAAM,WACX,GAAU,CACT,IAAMC,EAAKX,EAAO,MACdW,GAAMC,IAAUD,EAAG,YAAY,IACjC,EAAe,GACfA,EAAG,YAAYC,CAAK,EACpB,EAAe,GAEnB,CACF,GAEA,EAAAhB,EAAA,gBAAA,KAAsB,CACpBI,EAAO,OAAO,QAAQ,EACtB,EAAO,MAAQ,IACjB,CAAC,OAED,EACEN,EAAAA,EAAAA,CAAE,MAAO,CACP,IAAKK,EACL,MAAO,iBACP,MAAO,CAAE,MAAO,MAAO,CACzB,CAAC,CACL,CACF,CAAC,E"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { EditorMD as e } from "editor.md-next";
|
|
2
|
+
import { defineComponent as t, h as n, onBeforeUnmount as r, onMounted as i, shallowRef as a, watch as o } from "vue";
|
|
3
|
+
// src/index.ts
|
|
4
|
+
var s = [
|
|
5
|
+
"load",
|
|
6
|
+
"change",
|
|
7
|
+
"input",
|
|
8
|
+
"resize",
|
|
9
|
+
"watch",
|
|
10
|
+
"unwatch",
|
|
11
|
+
"previewEnter",
|
|
12
|
+
"previewExit",
|
|
13
|
+
"fullscreenEnter",
|
|
14
|
+
"fullscreenExit",
|
|
15
|
+
"scroll",
|
|
16
|
+
"previewScroll"
|
|
17
|
+
], c = t({
|
|
18
|
+
name: "EditorMD",
|
|
19
|
+
props: {
|
|
20
|
+
modelValue: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: ""
|
|
23
|
+
},
|
|
24
|
+
options: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: () => ({})
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: [...s, "update:modelValue"],
|
|
30
|
+
setup(t, c) {
|
|
31
|
+
let l = a(null), u = a(null), d = !1;
|
|
32
|
+
return i(() => {
|
|
33
|
+
if (!l.value) return;
|
|
34
|
+
let n = {};
|
|
35
|
+
for (let e of s) n[e] = (t) => {
|
|
36
|
+
c.emit(e, t);
|
|
37
|
+
};
|
|
38
|
+
let r = n.change;
|
|
39
|
+
n.change = (e) => {
|
|
40
|
+
let t = e;
|
|
41
|
+
!d && t && c.emit("update:modelValue", t.markdown), r?.(e);
|
|
42
|
+
};
|
|
43
|
+
let i = n;
|
|
44
|
+
u.value = new e(l.value, {
|
|
45
|
+
...t.options,
|
|
46
|
+
value: t.modelValue,
|
|
47
|
+
on: i
|
|
48
|
+
});
|
|
49
|
+
}), o(() => t.modelValue, (e) => {
|
|
50
|
+
let t = u.value;
|
|
51
|
+
t && e !== t.getMarkdown() && (d = !0, t.setMarkdown(e), d = !1);
|
|
52
|
+
}), r(() => {
|
|
53
|
+
u.value?.destroy(), u.value = null;
|
|
54
|
+
}), () => n("div", {
|
|
55
|
+
ref: l,
|
|
56
|
+
class: "emd-vue-editor",
|
|
57
|
+
style: { width: "100%" }
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export { s as EDITOR_EVENTS, c as EditorMD, c as default };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["EditorMDCore","EditorMD$1","EDITOR_EVENTS","EditorMD","defineComponent","host","shallowRef","editor","programmatic","onMounted","handlers","name","payload","userChange","\"change\"","p","ctx","on","props","watch","ed","value","onBeforeUnmount","h"],"sources":["../src/index.ts"],"sourcesContent":["/**\n * editor.md-next 的 Vue 3 适配组件。\n *\n * 用法:\n * ```vue\n * <script setup lang=\"ts\">\n * import { EditorMD } from 'editor.md-next-vue'\n * import { ref } from 'vue'\n * const md = ref('# Hello')\n * </script>\n * <template>\n * <EditorMD v-model=\"md\" :options=\"{ height: 520 }\" @watch=\"...\" />\n * </template>\n * ```\n *\n * 样式需自行引入一次:`import 'editor.md-next/css'`\n */\nimport { EditorMD as EditorMDCore } from 'editor.md-next'\nimport type { EditorEvents } from 'editor.md-next'\nimport type { EditorUserOptions } from 'editor.md-next'\nimport { defineComponent, h, onBeforeUnmount, onMounted, shallowRef, watch } from 'vue'\nimport type { PropType, SetupContext, ShallowRef } from 'vue'\n\nexport type EditorMDOptions = Omit<EditorUserOptions, 'value' | 'on'>\n\n/** 与 core 的 EditorEvents 一一对应的事件名 */\nexport const EDITOR_EVENTS = [\n 'load',\n 'change',\n 'input',\n 'resize',\n 'watch',\n 'unwatch',\n 'previewEnter',\n 'previewExit',\n 'fullscreenEnter',\n 'fullscreenExit',\n 'scroll',\n 'previewScroll',\n] as const\n\nexport type EditorMDBeforeUnmount = () => void\n\nexport const EditorMD = defineComponent({\n name: 'EditorMD',\n\n props: {\n /** v-model:markdown 内容 */\n modelValue: {\n type: String,\n default: '',\n },\n /** 编辑器配置(不含 value/on,见 editor.md-next 文档) */\n options: {\n type: Object as PropType<EditorMDOptions>,\n default: () => ({}),\n },\n },\n\n emits: [...EDITOR_EVENTS, 'update:modelValue'] as unknown as string[],\n\n setup(props, ctx: SetupContext) {\n const host = shallowRef<HTMLDivElement | null>(null)\n const editor: ShallowRef<EditorMDCore | null> = shallowRef(null)\n let programmatic = false\n\n onMounted(() => {\n if (!host.value) return\n const handlers: Record<string, (payload: never) => void> = {}\n for (const name of EDITOR_EVENTS) {\n handlers[name] = (payload) => {\n ctx.emit(name as string, payload)\n }\n }\n // change 额外回写 v-model\n const userChange = handlers['change']\n handlers['change'] = (payload) => {\n const p = payload as EditorEvents['change']\n if (!programmatic && p) ctx.emit('update:modelValue', p.markdown)\n userChange?.(payload)\n }\n const on = handlers as { [K in keyof EditorEvents]?: (payload: EditorEvents[K]) => void }\n\n editor.value = new EditorMDCore(host.value, {\n ...props.options,\n value: props.modelValue,\n on,\n })\n })\n\n // 受控:外部 modelValue 变化 → setMarkdown(程序性,避免回环)\n watch(\n () => props.modelValue,\n (value) => {\n const ed = editor.value\n if (ed && value !== ed.getMarkdown()) {\n programmatic = true\n ed.setMarkdown(value)\n programmatic = false\n }\n },\n )\n\n onBeforeUnmount(() => {\n editor.value?.destroy()\n editor.value = null\n })\n\n return () =>\n h('div', {\n ref: host,\n class: 'emd-vue-editor',\n style: { width: '100%' },\n })\n },\n})\n\nexport default EditorMD\n"],"mappings":";;;AA0BA,IAAaE,IAAgB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAIaC,IAAWC,EAAgB;CACtC,MAAM;CAEN,OAAO;EAEL,YAAY;GACV,MAAM;GACN,SAAS;EACX;EAEA,SAAS;GACP,MAAM;GACN,gBAAgB,CAAC;EACnB;CACF;CAEA,OAAO,CAAC,GAAGF,GAAe,mBAAmB;CAE7C,MAAM,GAAO,GAAmB;EAC9B,IAAMG,IAAOC,EAAkC,IAAI,GAC7CC,IAA0CD,EAAW,IAAI,GAC3DE,IAAe;EA4CnB,OA1CAC,QAAgB;GACd,IAAI,CAACJ,EAAK,OAAO;GACjB,IAAMK,IAAqD,CAAC;GAC5D,KAAK,IAAMC,KAAQT,GACjB,EAASS,MAAS,MAAY;IAC5B,EAAI,KAAKA,GAAgBC,CAAO;GAClC;GAGF,IAAMC,IAAaH,EAASI;GAC5B,EAASA,UAAa,MAAY;IAChC,IAAMC,IAAIH;IAEV,AADI,CAACJ,KAAgBO,KAAGC,EAAI,KAAK,qBAAqBD,EAAE,QAAQ,GAChEF,IAAaD,CAAO;GACtB;GACA,IAAMK,IAAKP;GAEX,EAAO,QAAQ,IAAIV,EAAaK,EAAK,OAAO;IAC1C,GAAGa,EAAM;IACT,OAAOA,EAAM;IACb;GACF,CAAC;EACH,CAAC,GAGDC,QACQD,EAAM,aACX,MAAU;GACT,IAAME,IAAKb,EAAO;GAClB,AAAIa,KAAMC,MAAUD,EAAG,YAAY,MACjC,IAAe,IACfA,EAAG,YAAYC,CAAK,GACpB,IAAe;EAEnB,CACF,GAEAC,QAAsB;GAEpB,AADAf,EAAO,OAAO,QAAQ,GACtB,EAAO,QAAQ;EACjB,CAAC,SAGCgB,EAAE,OAAO;GACP,KAAKlB;GACL,OAAO;GACP,OAAO,EAAE,OAAO,OAAO;EACzB,CAAC;CACL;AACF,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { EditorUserOptions } from 'editor.md-next';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
|
+
export type EditorMDOptions = Omit<EditorUserOptions, 'value' | 'on'>;
|
|
4
|
+
/** 与 core 的 EditorEvents 一一对应的事件名 */
|
|
5
|
+
export declare const EDITOR_EVENTS: readonly ['load', 'change', 'input', 'resize', 'watch', 'unwatch', 'previewEnter', 'previewExit', 'fullscreenEnter', 'fullscreenExit', 'scroll', 'previewScroll'];
|
|
6
|
+
export type EditorMDBeforeUnmount = () => void;
|
|
7
|
+
export declare const EditorMD: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
/** v-model:markdown 内容 */
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
/** 编辑器配置(不含 value/on,见 editor.md-next 文档) */
|
|
14
|
+
options: {
|
|
15
|
+
type: PropType<EditorMDOptions>;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
/** v-model:markdown 内容 */
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
/** 编辑器配置(不含 value/on,见 editor.md-next 文档) */
|
|
27
|
+
options: {
|
|
28
|
+
type: PropType<EditorMDOptions>;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{}>, {
|
|
32
|
+
modelValue: string;
|
|
33
|
+
options: EditorMDOptions;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
export default EditorMD;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAEvD,OAAO,KAAK,EAAE,QAAQ,EAA4B,MAAM,KAAK,CAAA;AAE7D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,GAAG,IAAI,CAAC,CAAA;AAErE,qCAAqC;AACrC,eAAO,MAAM,aAAa,YACxB,MAAM,EACN,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,EACP,SAAS,EACT,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,eAAe,CACP,CAAA;AAEV,MAAM,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAA;AAE9C,eAAO,MAAM,QAAQ;IAIjB,0BAA0B;;QAExB,IAAI;QACJ,OAAO;;IAET,6CAA6C;;QAE3C,IAAI,EAAY,QAAQ,CAAC,eAAe,CAAC;QACzC,OAAO;;;;;IART,0BAA0B;;;;;IAK1B,6CAA6C;;;;;;;;4EA+D/C,CAAA;eAEa,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "editor.md-next-vue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Vue 3 component wrapper for editor.md-next",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"markdown",
|
|
8
|
+
"editor",
|
|
9
|
+
"editormd",
|
|
10
|
+
"vue",
|
|
11
|
+
"vue3",
|
|
12
|
+
"component"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/mindoc-org/editor.md-next.git"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/mindoc-org/editor.md-next",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/mindoc-org/editor.md-next/issues"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"module": "./dist/index.js",
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/types/index.d.ts",
|
|
29
|
+
"import": "./dist/index.js",
|
|
30
|
+
"require": "./dist/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./package.json": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"editor.md-next": "^0.1.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"vue": ">=3.2"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"vue": "^3.5.13"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"registry": "https://registry.npmjs.org/",
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "vite build && tsc -p tsconfig.build.json",
|
|
53
|
+
"typecheck": "tsc --noEmit"
|
|
54
|
+
}
|
|
6
55
|
}
|
package/README.md
DELETED