md-editor-v3 5.7.1 → 5.8.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/lib/es/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
1
  import { default as default2 } from "./MdEditor.mjs";
2
- import { C as CDN_IDS } from "./chunks/index.mjs";
3
- import { M } from "./chunks/index.mjs";
4
2
  import { default as default3 } from "./NormalToolbar.mjs";
5
- import { D } from "./chunks/index2.mjs";
3
+ import { D } from "./chunks/index.mjs";
6
4
  import { default as default4 } from "./ModalToolbar.mjs";
7
- import { M as M2 } from "./chunks/index3.mjs";
8
- import { M as M3 } from "./chunks/index4.mjs";
5
+ import { M } from "./chunks/index2.mjs";
9
6
  import { S } from "./chunks/dom.mjs";
10
7
  import { defineComponent, createVNode } from "vue";
11
8
  import { g as getSlot } from "./chunks/vue-tsx.mjs";
12
9
  import { p as prefix } from "./chunks/config.mjs";
13
10
  import { b, a, c, e } from "./chunks/config.mjs";
11
+ import { C as CDN_IDS } from "./chunks/index3.mjs";
12
+ import { M as M2 } from "./chunks/index3.mjs";
13
+ import { M as M3 } from "./chunks/index4.mjs";
14
14
  import { en_US, zh_CN } from "./config.mjs";
15
15
  function _mergeNamespaces(n, m) {
16
16
  for (var i = 0; i < m.length; i++) {
@@ -1380,10 +1380,10 @@ const clearSideEffects = () => {
1380
1380
  };
1381
1381
  export {
1382
1382
  D as DropdownToolbar,
1383
- M2 as MdCatalog,
1383
+ M3 as MdCatalog,
1384
1384
  default2 as MdEditor,
1385
- M3 as MdModal,
1386
- M as MdPreview,
1385
+ M as MdModal,
1386
+ M2 as MdPreview,
1387
1387
  default4 as ModalToolbar,
1388
1388
  NormalFooterToolbar,
1389
1389
  default3 as NormalToolbar,
@@ -1,3 +1,3 @@
1
1
  export { prefix, config, allToolbar, allFooter, editorExtensionsAttrs } from './MdEditor/config';
2
- export declare const zh_CN: import(".").StaticTextDefaultValue;
3
- export declare const en_US: import(".").StaticTextDefaultValue;
2
+ export declare const zh_CN: import("./preview").StaticTextDefaultValue;
3
+ export declare const en_US: import("./preview").StaticTextDefaultValue;
@@ -1,13 +1,8 @@
1
1
  export { default as MdEditor } from './MdEditor';
2
- export { default as MdPreview } from './MdPreview';
3
2
  export { default as NormalToolbar } from './NormalToolbar';
4
3
  export { default as DropdownToolbar } from './DropdownToolbar';
5
4
  export { default as ModalToolbar } from './ModalToolbar';
6
- export { default as MdCatalog } from './MdCatalog';
7
5
  export { default as MdModal } from './MdEditor/components/Modal';
8
6
  export { default as StrIcon } from './MdEditor/components/Icon/Str';
9
7
  export { default as NormalFooterToolbar } from './NormalFooterToolbar';
10
- export * from './MdEditor/layouts/Content/markdownIt/xss';
11
- export * from './config';
12
- export * from './util';
13
- export * from './MdEditor/type';
8
+ export * from './preview';
@@ -0,0 +1,6 @@
1
+ export { default as MdPreview } from './MdPreview';
2
+ export { default as MdCatalog } from './MdCatalog';
3
+ export * from './MdEditor/layouts/Content/markdownIt/xss';
4
+ export * from './config';
5
+ export * from './util';
6
+ export * from './MdEditor/type';
package/lib/umd/index.js CHANGED
@@ -234,9 +234,9 @@ dateFormat YYYY-MM-DD`,class:`classDiagram
234
234
  CAR ||--o{ NAMED-DRIVER : allows`,journey:`journey
235
235
  title My Journey`,...dt.editorConfig.mermaidTemplate}[e]}
236
236
  \`\`\`
237
- `,options:{deviationStart:12,deviationEnd:-5}}),LZ=e=>{const{desc:t="",url:n="",urls:i}=e;let r="";return i instanceof Array?r=i.reduce((o,a)=>{const{url:O="",alt:l="",title:s=""}=typeof a=="object"?a:{url:a};return o+`![${l}](${O}${s?" '"+s+"'":""})
237
+ `,options:{deviationStart:12,deviationEnd:-5}}),LZ=e=>{const{desc:t="",url:n="",urls:i}=e;let r="";const o=n===""&&(!i||i instanceof Array&&i.length===0);return i instanceof Array?r=i.reduce((a,O)=>{const{url:l="",alt:s="",title:u=""}=typeof O=="object"?O:{url:O};return a+`![${s}](${l}${u?" '"+u+"'":""})
238
238
  `},""):r=`![${t}](${n})
239
- `,{text:r,options:{select:n==="",deviationStart:r.length-n.length-2,deviationEnd:-2}}},NZ=e=>{const{selectedShape:t={x:1,y:1}}=e,{x:n,y:i}=t;let r=`
239
+ `,{text:r,options:{select:n==="",deviationStart:o?r.length-n.length-2:r.length,deviationEnd:o?-2:0}}},NZ=e=>{const{selectedShape:t={x:1,y:1}}=e,{x:n,y:i}=t;let r=`
240
240
  | Column`;for(let o=0;o<=i;o++)r+=" |";r+=`
241
241
  |`;for(let o=0;o<=i;o++)r+=" - |";for(let o=0;o<=n;o++){r+=`
242
242
  |`;for(let a=0;a<=i;a++)r+=" |"}return r+=`