editor.md-next-vue 0.1.0 → 0.1.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/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.map
CHANGED
|
@@ -1 +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"}
|
|
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\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.map
CHANGED
|
@@ -1 +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"}
|
|
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\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"}
|
|
@@ -1 +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;
|
|
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;eAGa,QAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "editor.md-next-vue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue 3 component wrapper for editor.md-next",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"sideEffects": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"editor.md-next": "^0.1.
|
|
39
|
+
"editor.md-next": "^0.1.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"vue": ">=3.2"
|