@milkdown/preset-commonmark 6.5.1 → 6.5.3

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.
Files changed (88) hide show
  1. package/lib/index.d.ts +1 -1
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.es.js +453 -412
  4. package/lib/index.es.js.map +1 -1
  5. package/lib/mark/code-inline.d.ts +1 -1
  6. package/lib/mark/code-inline.d.ts.map +1 -1
  7. package/lib/mark/em.d.ts +1 -1
  8. package/lib/mark/em.d.ts.map +1 -1
  9. package/lib/mark/index.d.ts.map +1 -1
  10. package/lib/mark/link.d.ts +4 -3
  11. package/lib/mark/link.d.ts.map +1 -1
  12. package/lib/mark/strong.d.ts +1 -1
  13. package/lib/mark/strong.d.ts.map +1 -1
  14. package/lib/node/blockquote.d.ts +1 -1
  15. package/lib/node/blockquote.d.ts.map +1 -1
  16. package/lib/node/bullet-list.d.ts +1 -1
  17. package/lib/node/bullet-list.d.ts.map +1 -1
  18. package/lib/node/code-fence.d.ts.map +1 -1
  19. package/lib/node/doc.d.ts +1 -1
  20. package/lib/node/doc.d.ts.map +1 -1
  21. package/lib/node/hardbreak.d.ts.map +1 -1
  22. package/lib/node/heading.d.ts +2 -2
  23. package/lib/node/heading.d.ts.map +1 -1
  24. package/lib/node/hr.d.ts +1 -1
  25. package/lib/node/hr.d.ts.map +1 -1
  26. package/lib/node/image.d.ts +2 -2
  27. package/lib/node/image.d.ts.map +1 -1
  28. package/lib/node/index.d.ts +1 -1
  29. package/lib/node/index.d.ts.map +1 -1
  30. package/lib/node/list-item.d.ts +2 -2
  31. package/lib/node/list-item.d.ts.map +1 -1
  32. package/lib/node/ordered-list.d.ts +1 -1
  33. package/lib/node/ordered-list.d.ts.map +1 -1
  34. package/lib/node/paragraph.d.ts +1 -1
  35. package/lib/node/paragraph.d.ts.map +1 -1
  36. package/lib/node/text.d.ts +1 -1
  37. package/lib/node/text.d.ts.map +1 -1
  38. package/lib/plugin/add-order-in-list.d.ts +1 -1
  39. package/lib/plugin/add-order-in-list.d.ts.map +1 -1
  40. package/lib/plugin/filter-html.d.ts +1 -1
  41. package/lib/plugin/filter-html.d.ts.map +1 -1
  42. package/lib/plugin/index.d.ts +1 -1
  43. package/lib/plugin/index.d.ts.map +1 -1
  44. package/lib/plugin/inline-nodes-cursor.d.ts.map +1 -1
  45. package/lib/plugin/inline-sync/config.d.ts +8 -8
  46. package/lib/plugin/inline-sync/config.d.ts.map +1 -1
  47. package/lib/plugin/inline-sync/context.d.ts +5 -5
  48. package/lib/plugin/inline-sync/context.d.ts.map +1 -1
  49. package/lib/plugin/inline-sync/index.d.ts +1 -1
  50. package/lib/plugin/inline-sync/index.d.ts.map +1 -1
  51. package/lib/plugin/inline-sync/regexp.d.ts.map +1 -1
  52. package/lib/plugin/inline-sync/replacer.d.ts +3 -3
  53. package/lib/plugin/inline-sync/replacer.d.ts.map +1 -1
  54. package/lib/plugin/inline-sync/utils.d.ts +2 -2
  55. package/lib/plugin/inline-sync/utils.d.ts.map +1 -1
  56. package/lib/supported-keys.d.ts +1 -1
  57. package/lib/supported-keys.d.ts.map +1 -1
  58. package/package.json +17 -17
  59. package/src/index.ts +52 -52
  60. package/src/mark/code-inline.ts +56 -55
  61. package/src/mark/em.ts +36 -36
  62. package/src/mark/index.ts +9 -9
  63. package/src/mark/link.ts +250 -218
  64. package/src/mark/strong.ts +37 -37
  65. package/src/node/blockquote.ts +35 -35
  66. package/src/node/bullet-list.ts +65 -65
  67. package/src/node/code-fence.ts +236 -229
  68. package/src/node/doc.ts +21 -21
  69. package/src/node/hardbreak.ts +108 -107
  70. package/src/node/heading.ts +275 -272
  71. package/src/node/hr.ts +55 -55
  72. package/src/node/image.ts +216 -210
  73. package/src/node/index.ts +38 -38
  74. package/src/node/list-item.ts +139 -140
  75. package/src/node/ordered-list.ts +71 -71
  76. package/src/node/paragraph.ts +55 -53
  77. package/src/node/text.ts +18 -18
  78. package/src/plugin/add-order-in-list.ts +15 -15
  79. package/src/plugin/filter-html.ts +31 -33
  80. package/src/plugin/index.ts +13 -13
  81. package/src/plugin/inline-nodes-cursor.ts +78 -79
  82. package/src/plugin/inline-sync/config.ts +46 -45
  83. package/src/plugin/inline-sync/context.ts +88 -83
  84. package/src/plugin/inline-sync/index.ts +46 -42
  85. package/src/plugin/inline-sync/regexp.ts +2 -2
  86. package/src/plugin/inline-sync/replacer.ts +33 -31
  87. package/src/plugin/inline-sync/utils.ts +53 -55
  88. package/src/supported-keys.ts +22 -21
@@ -1,3 +1,3 @@
1
1
  export declare const ToggleInlineCode: import("@milkdown/core").CmdKey<undefined>;
2
- export declare const codeInline: import("@milkdown/utils").MarkCreator<string, import("@milkdown/utils").UnknownRecord>;
2
+ export declare const codeInline: import("@milkdown/utils").MarkCreator<string, {}>;
3
3
  //# sourceMappingURL=code-inline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"code-inline.d.ts","sourceRoot":"","sources":["../../src/mark/code-inline.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,4CAAmC,CAAC;AAEjE,eAAO,MAAM,UAAU,wFAoDrB,CAAC"}
1
+ {"version":3,"file":"code-inline.d.ts","sourceRoot":"","sources":["../../src/mark/code-inline.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,UAAU,mDAqDrB,CAAA"}
package/lib/mark/em.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare const ToggleItalic: import("@milkdown/core").CmdKey<undefined>;
2
- export declare const em: import("@milkdown/utils").MarkCreator<string, import("@milkdown/utils").UnknownRecord>;
2
+ export declare const em: import("@milkdown/utils").MarkCreator<string, {}>;
3
3
  //# sourceMappingURL=em.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"em.d.ts","sourceRoot":"","sources":["../../src/mark/em.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,4CAA+B,CAAC;AACzD,eAAO,MAAM,EAAE,wFA6BZ,CAAC"}
1
+ {"version":3,"file":"em.d.ts","sourceRoot":"","sources":["../../src/mark/em.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,4CAA+B,CAAA;AACxD,eAAO,MAAM,EAAE,mDA6BZ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mark/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,6JAAyC,CAAC;AAE5D,cAAc,eAAe,CAAC;AAC9B,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mark/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK,6JAAyC,CAAA;AAE3D,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA;AACpB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA"}
@@ -1,10 +1,11 @@
1
1
  export declare const ToggleLink: import("@milkdown/core").CmdKey<string>;
2
2
  export declare const ModifyLink: import("@milkdown/core").CmdKey<string>;
3
- export declare type LinkOptions = {
3
+ export interface LinkOptions {
4
4
  input: {
5
- placeholder: string;
5
+ placeholder?: string;
6
6
  buttonText?: string;
7
+ displayWhenSelected?: boolean;
7
8
  };
8
- };
9
+ }
9
10
  export declare const link: import("@milkdown/utils").MarkCreator<string, LinkOptions>;
10
11
  //# sourceMappingURL=link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/mark/link.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU,yCAAqC,CAAC;AAC7D,eAAO,MAAM,UAAU,yCAAqC,CAAC;AAE7D,oBAAY,WAAW,GAAG;IACtB,KAAK,EAAE;QACH,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACL,CAAC;AACF,eAAO,MAAM,IAAI,4DAuMf,CAAC"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/mark/link.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,UAAU,yCAAqC,CAAA;AAC5D,eAAO,MAAM,UAAU,yCAAqC,CAAA;AAE5D,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,mBAAmB,CAAC,EAAE,OAAO,CAAA;KAC9B,CAAA;CACF;AACD,eAAO,MAAM,IAAI,4DAqOf,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export declare const ToggleBold: import("@milkdown/core").CmdKey<undefined>;
2
- export declare const strong: import("@milkdown/utils").MarkCreator<string, import("@milkdown/utils").UnknownRecord>;
2
+ export declare const strong: import("@milkdown/utils").MarkCreator<string, {}>;
3
3
  //# sourceMappingURL=strong.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["../../src/mark/strong.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,4CAA6B,CAAC;AACrD,eAAO,MAAM,MAAM,wFA+BjB,CAAC"}
1
+ {"version":3,"file":"strong.d.ts","sourceRoot":"","sources":["../../src/mark/strong.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,4CAA6B,CAAA;AACpD,eAAO,MAAM,MAAM,mDA+BjB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export declare const WrapInBlockquote: import("@milkdown/core").CmdKey<undefined>;
2
- export declare const blockquote: import("@milkdown/utils").NodeCreator<"Blockquote", import("@milkdown/utils").UnknownRecord>;
2
+ export declare const blockquote: import("@milkdown/utils").NodeCreator<"Blockquote", {}>;
3
3
  //# sourceMappingURL=blockquote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../src/node/blockquote.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,4CAAmC,CAAC;AAEjE,eAAO,MAAM,UAAU,8FA4BrB,CAAC"}
1
+ {"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../src/node/blockquote.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,UAAU,yDA4BrB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export declare const WrapInBulletList: import("@milkdown/core").CmdKey<undefined>;
2
- export declare const bulletList: import("@milkdown/utils").NodeCreator<"BulletList", import("@milkdown/utils").UnknownRecord>;
2
+ export declare const bulletList: import("@milkdown/utils").NodeCreator<"BulletList", {}>;
3
3
  //# sourceMappingURL=bullet-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../src/node/bullet-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,4CAAmC,CAAC;AAEjE,eAAO,MAAM,UAAU,8FA0DrB,CAAC"}
1
+ {"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../src/node/bullet-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,UAAU,yDA0DrB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"code-fence.d.ts","sourceRoot":"","sources":["../../src/node/code-fence.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB,QAAoC,CAAC;AACpE,eAAO,MAAM,eAAe,QAAoC,CAAC;AAEjE,eAAO,MAAM,iBAAiB,4CAAoC,CAAC;AAGnE,eAAO,MAAM,SAAS;;EAuMpB,CAAC"}
1
+ {"version":3,"file":"code-fence.d.ts","sourceRoot":"","sources":["../../src/node/code-fence.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,kBAAkB,QAAoC,CAAA;AACnE,eAAO,MAAM,eAAe,QAAoC,CAAA;AAEhE,eAAO,MAAM,iBAAiB,4CAAoC,CAAA;AAGlE,eAAO,MAAM,SAAS;;EA6MpB,CAAA"}
package/lib/node/doc.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const doc: import("@milkdown/utils").NodeCreator<string, import("@milkdown/utils").UnknownRecord>;
1
+ export declare const doc: import("@milkdown/utils").NodeCreator<string, {}>;
2
2
  //# sourceMappingURL=doc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../src/node/doc.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,wFAoBd,CAAC"}
1
+ {"version":3,"file":"doc.d.ts","sourceRoot":"","sources":["../../src/node/doc.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,mDAoBd,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"hardbreak.d.ts","sourceRoot":"","sources":["../../src/node/hardbreak.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,SAAS,EAAa,MAAM,uBAAuB,CAAC;AAQrE,eAAO,MAAM,eAAe,4CAAkC,CAAC;AAE/D,eAAO,MAAM,wBAAwB,gBAA6C,CAAC;AAEnF,eAAO,MAAM,SAAS;WAGP,MAAM,EAAE;EA0GrB,CAAC"}
1
+ {"version":3,"file":"hardbreak.d.ts","sourceRoot":"","sources":["../../src/node/hardbreak.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,SAAS,EAAa,MAAM,uBAAuB,CAAA;AAQpE,eAAO,MAAM,eAAe,4CAAkC,CAAA;AAE9D,eAAO,MAAM,wBAAwB,gBAA6C,CAAA;AAElF,eAAO,MAAM,SAAS;WAGT,MAAM,EAAE;EA2GnB,CAAA"}
@@ -1,7 +1,7 @@
1
- import { Node } from '@milkdown/prose/model';
1
+ import type { Node } from '@milkdown/prose/model';
2
2
  import { PluginKey } from '@milkdown/prose/state';
3
3
  import { SupportedKeys } from '../supported-keys';
4
- declare type Keys = SupportedKeys['H1'] | SupportedKeys['H2'] | SupportedKeys['H3'] | SupportedKeys['H4'] | SupportedKeys['H5'] | SupportedKeys['H6'] | SupportedKeys['DowngradeHeading'];
4
+ type Keys = SupportedKeys['H1'] | SupportedKeys['H2'] | SupportedKeys['H3'] | SupportedKeys['H4'] | SupportedKeys['H5'] | SupportedKeys['H6'] | SupportedKeys['DowngradeHeading'];
5
5
  export declare const TurnIntoHeading: import("@milkdown/core").CmdKey<number>;
6
6
  export declare const DowngradeHeading: import("@milkdown/core").CmdKey<undefined>;
7
7
  export declare const headingIdPluginKey: PluginKey<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/node/heading.ts"],"names":[],"mappings":"AAMA,OAAO,EAAY,IAAI,EAAY,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAuB,SAAS,EAAe,MAAM,uBAAuB,CAAC;AAIpF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMlD,aAAK,IAAI,GACH,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,kBAAkB,CAAC,CAAC;AAExC,eAAO,MAAM,eAAe,yCAA0C,CAAC;AACvE,eAAO,MAAM,gBAAgB,4CAAmC,CAAC;AAEjE,eAAO,MAAM,kBAAkB,gBAAuC,CAAC;AACvE,eAAO,MAAM,oBAAoB,gBAAyC,CAAC;AAiJ3E,eAAO,MAAM,OAAO;kBAAoC,IAAI,KAAK,MAAM;oBAAkB,OAAO;EAwI/F,CAAC"}
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/node/heading.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,uBAAuB,CAAA;AAG3D,OAAO,EAAU,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAKzD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAMjD,KAAK,IAAI,GACH,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,IAAI,CAAC,GACnB,aAAa,CAAC,kBAAkB,CAAC,CAAA;AAEvC,eAAO,MAAM,eAAe,yCAA0C,CAAA;AACtE,eAAO,MAAM,gBAAgB,4CAAmC,CAAA;AAEhE,eAAO,MAAM,kBAAkB,gBAAuC,CAAA;AACtE,eAAO,MAAM,oBAAoB,gBAAyC,CAAA;AA+I1E,eAAO,MAAM,OAAO;kBAAoC,IAAI,KAAK,MAAM;oBAAkB,OAAO;EAyI/F,CAAA"}
package/lib/node/hr.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare const InsertHr: import("@milkdown/core").CmdKey<string>;
2
- export declare const hr: import("@milkdown/utils").NodeCreator<string, import("@milkdown/utils").UnknownRecord>;
2
+ export declare const hr: import("@milkdown/utils").NodeCreator<string, {}>;
3
3
  //# sourceMappingURL=hr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../src/node/hr.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ,yCAAmC,CAAC;AACzD,eAAO,MAAM,EAAE,wFAoDb,CAAC"}
1
+ {"version":3,"file":"hr.d.ts","sourceRoot":"","sources":["../../src/node/hr.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ,yCAAmC,CAAA;AACxD,eAAO,MAAM,EAAE,mDAoDb,CAAA"}
@@ -1,12 +1,12 @@
1
1
  export declare const ModifyImage: import("@milkdown/core").CmdKey<string>;
2
2
  export declare const InsertImage: import("@milkdown/core").CmdKey<string>;
3
- export declare type ImageOptions = {
3
+ export interface ImageOptions {
4
4
  isBlock: boolean;
5
5
  placeholder: string;
6
6
  input: {
7
7
  placeholder: string;
8
8
  buttonText?: string;
9
9
  };
10
- };
10
+ }
11
11
  export declare const image: import("@milkdown/utils").NodeCreator<string, ImageOptions>;
12
12
  //# sourceMappingURL=image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/node/image.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yCAAsC,CAAC;AAC/D,eAAO,MAAM,WAAW,yCAAsC,CAAC;AAE/D,oBAAY,YAAY,GAAG;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE;QACH,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACL,CAAC;AAGF,eAAO,MAAM,KAAK,6DAmMhB,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/node/image.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,WAAW,yCAAsC,CAAA;AAC9D,eAAO,MAAM,WAAW,yCAAsC,CAAA;AAE9D,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF;AAGD,eAAO,MAAM,KAAK,6DAwMhB,CAAA"}
@@ -1,4 +1,4 @@
1
- import { AtomPlugin } from '@milkdown/utils';
1
+ import type { AtomPlugin } from '@milkdown/utils';
2
2
  export declare const nodes: AtomPlugin[];
3
3
  export * from './blockquote';
4
4
  export * from './bullet-list';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAe7C,eAAO,MAAM,KAAK,EAAE,UAAU,EAa7B,CAAC;AAEF,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/node/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAejD,eAAO,MAAM,KAAK,EAAE,UAAU,EAa7B,CAAA;AAED,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,MAAM,CAAA;AACpB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,QAAQ,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { SupportedKeys } from '../supported-keys';
2
- declare type Keys = SupportedKeys['SinkListItem'] | SupportedKeys['LiftListItem'] | SupportedKeys['NextListItem'];
2
+ type Keys = SupportedKeys['SinkListItem'] | SupportedKeys['LiftListItem'] | SupportedKeys['NextListItem'];
3
3
  export declare const SplitListItem: import("@milkdown/core").CmdKey<undefined>;
4
4
  export declare const SinkListItem: import("@milkdown/core").CmdKey<undefined>;
5
5
  export declare const LiftListItem: import("@milkdown/core").CmdKey<undefined>;
6
- export declare const listItem: import("@milkdown/utils").NodeCreator<Keys, import("@milkdown/utils").UnknownRecord>;
6
+ export declare const listItem: import("@milkdown/utils").NodeCreator<Keys, {}>;
7
7
  export {};
8
8
  //# sourceMappingURL=list-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../src/node/list-item.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,aAAK,IAAI,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;AAI1G,eAAO,MAAM,aAAa,4CAAgC,CAAC;AAC3D,eAAO,MAAM,YAAY,4CAA+B,CAAC;AACzD,eAAO,MAAM,YAAY,4CAA+B,CAAC;AAkDzD,eAAO,MAAM,QAAQ,sFAyFlB,CAAC"}
1
+ {"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../src/node/list-item.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,KAAK,IAAI,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,CAAA;AAIzG,eAAO,MAAM,aAAa,4CAAgC,CAAA;AAC1D,eAAO,MAAM,YAAY,4CAA+B,CAAA;AACxD,eAAO,MAAM,YAAY,4CAA+B,CAAA;AAiDxD,eAAO,MAAM,QAAQ,iDAwFlB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export declare const WrapInOrderedList: import("@milkdown/core").CmdKey<undefined>;
2
- export declare const orderedList: import("@milkdown/utils").NodeCreator<"OrderedList", import("@milkdown/utils").UnknownRecord>;
2
+ export declare const orderedList: import("@milkdown/utils").NodeCreator<"OrderedList", {}>;
3
3
  //# sourceMappingURL=ordered-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../src/node/ordered-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,4CAAoC,CAAC;AAGnE,eAAO,MAAM,WAAW,+FAgErB,CAAC"}
1
+ {"version":3,"file":"ordered-list.d.ts","sourceRoot":"","sources":["../../src/node/ordered-list.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,4CAAoC,CAAA;AAGlE,eAAO,MAAM,WAAW,0DAgErB,CAAA"}
@@ -1,3 +1,3 @@
1
1
  export declare const TurnIntoText: import("@milkdown/core").CmdKey<undefined>;
2
- export declare const paragraph: import("@milkdown/utils").NodeCreator<"Text", import("@milkdown/utils").UnknownRecord>;
2
+ export declare const paragraph: import("@milkdown/utils").NodeCreator<"Text", {}>;
3
3
  //# sourceMappingURL=paragraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../src/node/paragraph.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY,4CAA+B,CAAC;AAGzD,eAAO,MAAM,SAAS,wFA8CpB,CAAC"}
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../src/node/paragraph.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY,4CAA+B,CAAA;AAGxD,eAAO,MAAM,SAAS,mDA+CpB,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare const text: import("@milkdown/utils").NodeCreator<string, import("@milkdown/utils").UnknownRecord>;
1
+ export declare const text: import("@milkdown/utils").NodeCreator<string, {}>;
2
2
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/node/text.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,wFAiBd,CAAC"}
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/node/text.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,mDAiBd,CAAA"}
@@ -1,3 +1,3 @@
1
- import { Node } from 'unist';
1
+ import type { Node } from 'unist';
2
2
  export declare const addOrderInList: () => (ast: Node) => void;
3
3
  //# sourceMappingURL=add-order-in-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-order-in-list.d.ts","sourceRoot":"","sources":["../../src/plugin/add-order-in-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAG7B,eAAO,MAAM,cAAc,cACG,IAAI,SAajC,CAAC"}
1
+ {"version":3,"file":"add-order-in-list.d.ts","sourceRoot":"","sources":["../../src/plugin/add-order-in-list.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAIjC,eAAO,MAAM,cAAc,cACC,IAAI,SAY/B,CAAA"}
@@ -1,3 +1,3 @@
1
- import { Node } from 'unist';
1
+ import type { Node } from 'unist';
2
2
  export declare const filterHTMLPlugin: () => (tree: Node) => void;
3
3
  //# sourceMappingURL=filter-html.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter-html.d.ts","sourceRoot":"","sources":["../../src/plugin/filter-html.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,IAAI,EAAU,MAAM,OAAO,CAAC;AAgC9C,eAAO,MAAM,gBAAgB,eACE,IAAI,SAUlC,CAAC"}
1
+ {"version":3,"file":"filter-html.d.ts","sourceRoot":"","sources":["../../src/plugin/filter-html.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,IAAI,EAAU,MAAM,OAAO,CAAA;AA+BlD,eAAO,MAAM,gBAAgB,eACA,IAAI,SAShC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { inlineSyncConfigCtx } from './inline-sync';
2
2
  export { inlineSyncConfigCtx };
3
- export declare const commonmarkPlugins: (import("@milkdown/utils").Metadata<import("@milkdown/utils").GetPlugin<string, import("@milkdown/utils").UnknownRecord>> & import("@milkdown/core").MilkdownPlugin)[];
3
+ export declare const commonmarkPlugins: (import("@milkdown/utils").Metadata<import("@milkdown/utils").GetPlugin<string, {}>> & import("@milkdown/core").MilkdownPlugin)[];
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuB,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,eAAO,MAAM,iBAAiB,wKAM7B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAuB,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EAAE,mBAAmB,EAAE,CAAA;AAC9B,eAAO,MAAM,iBAAiB,mIAM7B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"inline-nodes-cursor.d.ts","sourceRoot":"","sources":["../../src/plugin/inline-nodes-cursor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAa,MAAM,uBAAuB,CAAC;AAK1D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,QAAO,MAmF7C,CAAC"}
1
+ {"version":3,"file":"inline-nodes-cursor.d.ts","sourceRoot":"","sources":["../../src/plugin/inline-nodes-cursor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAa,MAAM,uBAAuB,CAAA;AAKzD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,QAAO,MAkF7C,CAAA"}
@@ -1,24 +1,24 @@
1
- import { Ctx } from '@milkdown/core';
2
- import { Node, NodeType } from '@milkdown/prose/model';
3
- import { Transaction } from '@milkdown/prose/state';
4
- export declare type ShouldSyncNode = (context: {
1
+ import type { Ctx } from '@milkdown/core';
2
+ import type { Node, NodeType } from '@milkdown/prose/model';
3
+ import type { Transaction } from '@milkdown/prose/state';
4
+ export type ShouldSyncNode = (context: {
5
5
  prevNode: Node;
6
6
  nextNode: Node;
7
7
  ctx: Ctx;
8
8
  tr: Transaction;
9
9
  text: string;
10
10
  }) => boolean;
11
- export declare type SyncNodePlaceholder = {
11
+ export interface SyncNodePlaceholder {
12
12
  hole: string;
13
13
  punctuation: string;
14
14
  char: string;
15
- };
16
- export declare type InlineSyncConfig = {
15
+ }
16
+ export interface InlineSyncConfig {
17
17
  placeholderConfig: SyncNodePlaceholder;
18
18
  shouldSyncNode: ShouldSyncNode;
19
19
  globalNodes: Array<NodeType | string>;
20
20
  movePlaceholder: (placeholderToMove: string, text: string) => string;
21
- };
21
+ }
22
22
  export declare const defaultConfig: InlineSyncConfig;
23
23
  export declare const inlineSyncConfigCtx: import("@milkdown/core").Slice<InlineSyncConfig, "inlineSyncConfig">;
24
24
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIpD,oBAAY,cAAc,GAAG,CAAC,OAAO,EAAE;IACnC,QAAQ,EAAE,IAAI,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC;IACf,GAAG,EAAE,GAAG,CAAC;IACT,EAAE,EAAE,WAAW,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CAChB,KAAK,OAAO,CAAC;AAEd,oBAAY,mBAAmB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC3B,iBAAiB,EAAE,mBAAmB,CAAC;IACvC,cAAc,EAAE,cAAc,CAAC;IAC/B,WAAW,EAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,CAAC;IACtC,eAAe,EAAE,CAAC,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACxE,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,gBAyB3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,sEAAuF,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIxD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE;IACrC,QAAQ,EAAE,IAAI,CAAA;IACd,QAAQ,EAAE,IAAI,CAAA;IACd,GAAG,EAAE,GAAG,CAAA;IACR,EAAE,EAAE,WAAW,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb,KAAK,OAAO,CAAA;AAEb,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,EAAE,mBAAmB,CAAA;IACtC,cAAc,EAAE,cAAc,CAAA;IAC9B,WAAW,EAAE,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAC,CAAA;IACrC,eAAe,EAAE,CAAC,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAA;CACrE;AAED,eAAO,MAAM,aAAa,EAAE,gBAyB3B,CAAA;AAED,eAAO,MAAM,mBAAmB,sEAAuF,CAAA"}
@@ -1,12 +1,12 @@
1
- import { Ctx } from '@milkdown/core';
2
- import { Node } from '@milkdown/prose/model';
3
- import { EditorState } from '@milkdown/prose/state';
1
+ import type { Ctx } from '@milkdown/core';
2
+ import type { Node } from '@milkdown/prose/model';
3
+ import type { EditorState } from '@milkdown/prose/state';
4
4
  export * from './config';
5
- export declare type InlineSyncContext = {
5
+ export interface InlineSyncContext {
6
6
  text: string;
7
7
  prevNode: Node;
8
8
  nextNode: Node;
9
9
  placeholder: string;
10
- };
10
+ }
11
11
  export declare const getContextByState: (ctx: Ctx, state: EditorState) => InlineSyncContext | null;
12
12
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/context.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAA4B,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAMpD,cAAc,UAAU,CAAC;AAEzB,oBAAY,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,IAAI,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAiEF,eAAO,MAAM,iBAAiB,QAAS,GAAG,SAAS,WAAW,KAAG,iBAAiB,GAAG,IAiCpF,CAAC"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAMxD,cAAc,UAAU,CAAA;AAExB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,IAAI,CAAA;IACd,QAAQ,EAAE,IAAI,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;CACpB;AAmED,eAAO,MAAM,iBAAiB,QAAS,GAAG,SAAS,WAAW,KAAG,iBAAiB,GAAG,IAmCpF,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Ctx } from '@milkdown/core';
1
+ import type { Ctx } from '@milkdown/core';
2
2
  import { Plugin, PluginKey } from '@milkdown/prose/state';
3
3
  export * from './config';
4
4
  export declare const inlineSyncPluginKey: PluginKey<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAiB,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAM1D,cAAc,UAAU,CAAC;AAEzB,eAAO,MAAM,mBAAmB,gBAAwC,CAAC;AACzE,eAAO,MAAM,mBAAmB,QAAS,GAAG,iBA+C3C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAMzD,cAAc,UAAU,CAAA;AAExB,eAAO,MAAM,mBAAmB,gBAAwC,CAAA;AACxE,eAAO,MAAM,mBAAmB,QAAS,GAAG,iBAkD3C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/regexp.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAAyE,CAAC;AAEjG,eAAO,MAAM,iBAAiB,oBAAqB,MAAM,WACO,CAAC"}
1
+ {"version":3,"file":"regexp.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/regexp.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAAyE,CAAA;AAEhG,eAAO,MAAM,iBAAiB,oBAAqB,MAAM,WACK,CAAA"}
@@ -1,5 +1,5 @@
1
- import { Ctx } from '@milkdown/core';
2
- import { Attrs } from '@milkdown/prose/model';
3
- import { EditorState, PluginKey, Transaction } from '@milkdown/prose/state';
1
+ import type { Ctx } from '@milkdown/core';
2
+ import type { Attrs } from '@milkdown/prose/model';
3
+ import type { EditorState, PluginKey, Transaction } from '@milkdown/prose/state';
4
4
  export declare const runReplacer: (ctx: Ctx, key: PluginKey, state: EditorState, dispatch: (tr: Transaction) => void, attrs: Attrs) => void;
5
5
  //# sourceMappingURL=replacer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"replacer.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/replacer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAiB,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAM3F,eAAO,MAAM,WAAW,QACf,GAAG,OACH,SAAS,SACP,WAAW,iBACH,WAAW,KAAK,IAAI,SAC5B,KAAK,SA4Bf,CAAC"}
1
+ {"version":3,"file":"replacer.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/replacer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAOhF,eAAO,MAAM,WAAW,QACjB,GAAG,OACH,SAAS,SACP,WAAW,iBACH,WAAW,KAAK,IAAI,SAC5B,KAAK,SA6Bb,CAAA"}
@@ -1,5 +1,5 @@
1
- import { Node } from '@milkdown/prose/model';
2
- import { SyncNodePlaceholder } from './config';
1
+ import type { Node } from '@milkdown/prose/model';
2
+ import type { SyncNodePlaceholder } from './config';
3
3
  export declare const keepLink: (str: string) => string;
4
4
  export declare const swap: (text: string, first: number, last: number) => string;
5
5
  export declare const replacePunctuation: (holePlaceholder: string) => (text: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,QAAQ,QAAS,MAAM,WAUnC,CAAC;AAEF,eAAO,MAAM,IAAI,SAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,WAQ7D,CAAC;AAEF,eAAO,MAAM,kBAAkB,oBAAqB,MAAM,YAAY,MAAM,WACpB,CAAC;AAEzD,eAAO,MAAM,oBAAoB,gBAAiB,mBAAmB,YAAY,MAAM,WAqBtF,CAAC;AAEF,eAAO,MAAM,UAAU,SAAU,IAAI,QAAQ,MAAM,eAAe,MAAM,WAiBvE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/plugin/inline-sync/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAGnD,eAAO,MAAM,QAAQ,QAAS,MAAM,WAUnC,CAAA;AAED,eAAO,MAAM,IAAI,SAAU,MAAM,SAAS,MAAM,QAAQ,MAAM,WAQ7D,CAAA;AAED,eAAO,MAAM,kBAAkB,oBAAqB,MAAM,YAAY,MAAM,WACtB,CAAA;AAEtD,eAAO,MAAM,oBAAoB,gBAAiB,mBAAmB,YAAY,MAAM,WAkBtF,CAAA;AAED,eAAO,MAAM,UAAU,SAAU,IAAI,QAAQ,MAAM,eAAe,MAAM,WAkBvE,CAAA"}
@@ -19,5 +19,5 @@ export declare const SupportedKeys: {
19
19
  readonly SinkListItem: "SinkListItem";
20
20
  readonly LiftListItem: "LiftListItem";
21
21
  };
22
- export declare type SupportedKeys = typeof SupportedKeys;
22
+ export type SupportedKeys = typeof SupportedKeys;
23
23
  //# sourceMappingURL=supported-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supported-keys.d.ts","sourceRoot":"","sources":["../src/supported-keys.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAC;AAEX,oBAAY,aAAa,GAAG,OAAO,aAAa,CAAC"}
1
+ {"version":3,"file":"supported-keys.d.ts","sourceRoot":"","sources":["../src/supported-keys.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAA;AAGV,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
1
  {
2
2
  "name": "@milkdown/preset-commonmark",
3
- "version": "6.5.1",
4
3
  "type": "module",
5
- "main": "./lib/index.es.js",
6
- "types": "./lib/index.d.ts",
7
- "sideEffects": false,
4
+ "version": "6.5.3",
8
5
  "license": "MIT",
9
- "files": [
10
- "lib",
11
- "src"
12
- ],
13
6
  "keywords": [
14
7
  "milkdown",
15
8
  "milkdown plugin",
16
9
  "markdown",
17
10
  "commonmark"
18
11
  ],
19
- "devDependencies": {
20
- "@milkdown/core": "6.5.0",
21
- "@milkdown/prose": "6.5.0",
22
- "@types/unist": "^2.0.6"
23
- },
12
+ "sideEffects": false,
13
+ "main": "./lib/index.es.js",
14
+ "types": "./lib/index.d.ts",
15
+ "files": [
16
+ "lib",
17
+ "src"
18
+ ],
24
19
  "peerDependencies": {
25
20
  "@milkdown/core": "^6.0.1",
26
21
  "@milkdown/prose": "^6.0.1"
27
22
  },
28
23
  "dependencies": {
29
- "@milkdown/utils": "6.5.0",
30
- "@milkdown/exception": "6.5.0",
31
- "unist-util-visit": "^4.0.0",
32
24
  "remark-inline-links": "^6.0.0",
33
- "tslib": "^2.4.0"
25
+ "tslib": "^2.4.0",
26
+ "unist-util-visit": "^4.0.0",
27
+ "@milkdown/exception": "6.5.3",
28
+ "@milkdown/utils": "6.5.3"
29
+ },
30
+ "devDependencies": {
31
+ "@types/unist": "^2.0.6",
32
+ "@milkdown/core": "6.5.3",
33
+ "@milkdown/prose": "6.5.3"
34
34
  },
35
35
  "nx": {
36
36
  "targets": {
package/src/index.ts CHANGED
@@ -1,57 +1,57 @@
1
1
  /* Copyright 2021, Milkdown by Mirone. */
2
- import { AtomList } from '@milkdown/utils';
2
+ import { AtomList } from '@milkdown/utils'
3
3
 
4
- import { marks, ModifyLink, ToggleBold, ToggleInlineCode, ToggleItalic, ToggleLink } from './mark';
4
+ import { ModifyLink, ToggleBold, ToggleInlineCode, ToggleItalic, ToggleLink, marks } from './mark'
5
5
  import {
6
- InsertHardbreak,
7
- InsertHr,
8
- InsertImage,
9
- LiftListItem,
10
- ModifyImage,
11
- nodes,
12
- SinkListItem,
13
- SplitListItem,
14
- TurnIntoCodeFence,
15
- TurnIntoHeading,
16
- TurnIntoText,
17
- WrapInBlockquote,
18
- WrapInBulletList,
19
- WrapInOrderedList,
20
- } from './node';
21
- import { commonmarkPlugins } from './plugin';
22
-
23
- export * from './mark';
24
- export * from './node';
25
- export { inlineSyncConfigCtx } from './plugin';
26
- export * from './supported-keys';
27
-
28
- export const commonmarkNodes = AtomList.create([...nodes, ...marks]);
29
- export { commonmarkPlugins };
30
- export const commonmark = AtomList.create([...commonmarkPlugins, ...commonmarkNodes]);
6
+ InsertHardbreak,
7
+ InsertHr,
8
+ InsertImage,
9
+ LiftListItem,
10
+ ModifyImage,
11
+ SinkListItem,
12
+ SplitListItem,
13
+ TurnIntoCodeFence,
14
+ TurnIntoHeading,
15
+ TurnIntoText,
16
+ WrapInBlockquote,
17
+ WrapInBulletList,
18
+ WrapInOrderedList,
19
+ nodes,
20
+ } from './node'
21
+ import { commonmarkPlugins } from './plugin'
22
+
23
+ export * from './mark'
24
+ export * from './node'
25
+ export { inlineSyncConfigCtx } from './plugin'
26
+ export * from './supported-keys'
27
+
28
+ export const commonmarkNodes = AtomList.create([...nodes, ...marks])
29
+ export { commonmarkPlugins }
30
+ export const commonmark = AtomList.create([...commonmarkPlugins, ...commonmarkNodes])
31
31
 
32
32
  export const commands = {
33
- ToggleInlineCode,
34
- ToggleItalic,
35
- ToggleLink,
36
- ToggleBold,
37
-
38
- ModifyLink,
39
- ModifyImage,
40
-
41
- WrapInBlockquote,
42
- WrapInBulletList,
43
- WrapInOrderedList,
44
-
45
- TurnIntoCodeFence,
46
- TurnIntoHeading,
47
- TurnIntoText,
48
-
49
- InsertHardbreak,
50
- InsertHr,
51
- InsertImage,
52
-
53
- SplitListItem,
54
- SinkListItem,
55
- LiftListItem,
56
- } as const;
57
- export type Commands = typeof commands;
33
+ ToggleInlineCode,
34
+ ToggleItalic,
35
+ ToggleLink,
36
+ ToggleBold,
37
+
38
+ ModifyLink,
39
+ ModifyImage,
40
+
41
+ WrapInBlockquote,
42
+ WrapInBulletList,
43
+ WrapInOrderedList,
44
+
45
+ TurnIntoCodeFence,
46
+ TurnIntoHeading,
47
+ TurnIntoText,
48
+
49
+ InsertHardbreak,
50
+ InsertHr,
51
+ InsertImage,
52
+
53
+ SplitListItem,
54
+ SinkListItem,
55
+ LiftListItem,
56
+ } as const
57
+ export type Commands = typeof commands