@milkdown/preset-gfm 6.1.3 → 6.2.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.
Files changed (72) hide show
  1. package/lib/auto-link.d.ts.map +1 -1
  2. package/lib/footnote/definition.d.ts +1 -5
  3. package/lib/footnote/definition.d.ts.map +1 -1
  4. package/lib/footnote/reference.d.ts +1 -5
  5. package/lib/footnote/reference.d.ts.map +1 -1
  6. package/lib/index.d.ts +1 -3
  7. package/lib/index.d.ts.map +1 -1
  8. package/lib/index.es.js +1671 -16
  9. package/lib/index.es.js.map +1 -1
  10. package/lib/strike-through.d.ts +1 -5
  11. package/lib/strike-through.d.ts.map +1 -1
  12. package/lib/table/command.d.ts +1 -1
  13. package/lib/table/command.d.ts.map +1 -1
  14. package/lib/table/nodes/cell-selection.d.ts +38 -0
  15. package/lib/table/nodes/cell-selection.d.ts.map +1 -0
  16. package/lib/table/nodes/column-resizing.d.ts +10 -0
  17. package/lib/table/nodes/column-resizing.d.ts.map +1 -0
  18. package/lib/table/nodes/commands.d.ts +30 -0
  19. package/lib/table/nodes/commands.d.ts.map +1 -0
  20. package/lib/table/nodes/copy-paste.d.ts +13 -0
  21. package/lib/table/nodes/copy-paste.d.ts.map +1 -0
  22. package/lib/table/nodes/fix-tables.d.ts +6 -0
  23. package/lib/table/nodes/fix-tables.d.ts.map +1 -0
  24. package/lib/table/nodes/index.d.ts +5 -23
  25. package/lib/table/nodes/index.d.ts.map +1 -1
  26. package/lib/table/nodes/schema.d.ts +3 -1
  27. package/lib/table/nodes/schema.d.ts.map +1 -1
  28. package/lib/table/nodes/table-editing.d.ts +9 -0
  29. package/lib/table/nodes/table-editing.d.ts.map +1 -0
  30. package/lib/table/nodes/table-map.d.ts +44 -0
  31. package/lib/table/nodes/table-map.d.ts.map +1 -0
  32. package/lib/table/nodes/table-view.d.ts +15 -0
  33. package/lib/table/nodes/table-view.d.ts.map +1 -0
  34. package/lib/table/nodes/types.d.ts +15 -0
  35. package/lib/table/nodes/types.d.ts.map +1 -0
  36. package/lib/table/nodes/util.d.ts +16 -0
  37. package/lib/table/nodes/util.d.ts.map +1 -0
  38. package/lib/table/operator-plugin/actions.d.ts +1 -1
  39. package/lib/table/operator-plugin/actions.d.ts.map +1 -1
  40. package/lib/table/operator-plugin/calc-pos.d.ts.map +1 -1
  41. package/lib/table/operator-plugin/helper.d.ts +1 -1
  42. package/lib/table/operator-plugin/helper.d.ts.map +1 -1
  43. package/lib/table/operator-plugin/index.d.ts +1 -1
  44. package/lib/table/operator-plugin/index.d.ts.map +1 -1
  45. package/lib/table/operator-plugin/widget.d.ts +4 -4
  46. package/lib/table/operator-plugin/widget.d.ts.map +1 -1
  47. package/lib/table/utils.d.ts +4 -4
  48. package/lib/table/utils.d.ts.map +1 -1
  49. package/lib/task-list-item.d.ts +1 -5
  50. package/lib/task-list-item.d.ts.map +1 -1
  51. package/package.json +6 -6
  52. package/src/auto-link.ts +4 -3
  53. package/src/table/command.ts +3 -3
  54. package/src/table/nodes/cell-selection.ts +352 -0
  55. package/src/table/nodes/column-resizing.ts +260 -0
  56. package/src/table/nodes/commands.ts +551 -0
  57. package/src/table/nodes/copy-paste.ts +306 -0
  58. package/src/table/nodes/fix-tables.ts +117 -0
  59. package/src/table/nodes/index.ts +7 -1
  60. package/src/table/nodes/schema.ts +100 -2
  61. package/src/table/nodes/table-editing.ts +275 -0
  62. package/src/table/nodes/table-map.ts +280 -0
  63. package/src/table/nodes/table-view.ts +76 -0
  64. package/src/table/nodes/types.ts +16 -0
  65. package/src/table/nodes/util.ts +107 -0
  66. package/src/table/operator-plugin/actions.ts +4 -4
  67. package/src/table/operator-plugin/calc-pos.ts +2 -1
  68. package/src/table/operator-plugin/helper.ts +2 -1
  69. package/src/table/operator-plugin/index.ts +1 -1
  70. package/src/table/operator-plugin/widget.ts +4 -14
  71. package/src/table/utils.ts +5 -2
  72. package/src/task-list-item.ts +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"auto-link.d.ts","sourceRoot":"","sources":["../src/auto-link.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,SAAS,kCAAiC,CAAC"}
1
+ {"version":3,"file":"auto-link.d.ts","sourceRoot":"","sources":["../src/auto-link.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,SAAS,kCAAiC,CAAC"}
@@ -1,7 +1,3 @@
1
1
  export declare const ModifyFootnoteDef: import("@milkdown/core").CmdKey<string>;
2
- export declare const footnoteDefinition: import("@milkdown/utils/lib/types").WithExtend<string, import("@milkdown/utils").UnknownRecord, import("@milkdown/prose/model").NodeType<any>, {
3
- id: string;
4
- schema: (ctx: import("@milkdown/core").Ctx) => import("@milkdown/core").NodeSchema;
5
- view?: ((ctx: import("@milkdown/core").Ctx) => import("@milkdown/prose").NodeViewFactory) | undefined;
6
- }>;
2
+ export declare const footnoteDefinition: import("@milkdown/utils").NodeCreator<string, import("@milkdown/utils").UnknownRecord>;
7
3
  //# sourceMappingURL=definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/footnote/definition.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,yCAA4C,CAAC;AAE3E,eAAO,MAAM,kBAAkB;;;;EAoK7B,CAAC"}
1
+ {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/footnote/definition.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,iBAAiB,yCAA4C,CAAC;AAE3E,eAAO,MAAM,kBAAkB,wFAoK7B,CAAC"}
@@ -1,7 +1,3 @@
1
1
  export declare const ModifyFootnoteRef: import("@milkdown/core").CmdKey<string>;
2
- export declare const footnoteReference: import("@milkdown/utils/lib/types").WithExtend<string, import("@milkdown/utils").UnknownRecord, import("@milkdown/prose/model").NodeType<any>, {
3
- id: string;
4
- schema: (ctx: import("@milkdown/core").Ctx) => import("@milkdown/core").NodeSchema;
5
- view?: ((ctx: import("@milkdown/core").Ctx) => import("@milkdown/prose").NodeViewFactory) | undefined;
6
- }>;
2
+ export declare const footnoteReference: import("@milkdown/utils").NodeCreator<string, import("@milkdown/utils").UnknownRecord>;
7
3
  //# sourceMappingURL=reference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/footnote/reference.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,yCAA4C,CAAC;AAG3E,eAAO,MAAM,iBAAiB;;;;EA8J5B,CAAC"}
1
+ {"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/footnote/reference.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,yCAA4C,CAAC;AAG3E,eAAO,MAAM,iBAAiB,wFA8J5B,CAAC"}
package/lib/index.d.ts CHANGED
@@ -5,9 +5,7 @@ export { SupportedKeys } from './supported-keys';
5
5
  export { BreakTable, createTable, InsertTable, NextCell, PrevCell, table, } from './table';
6
6
  export * from './task-list-item';
7
7
  export { blockquote, bulletList, codeFence, codeInline, commonmark, commonmarkNodes, commonmarkPlugins, doc, em, hardbreak, heading, hr, image, InsertHardbreak, InsertHr, InsertImage, LiftListItem, link, listItem, ModifyImage, ModifyLink, orderedList, paragraph, SinkListItem, SplitListItem, strong, text, ToggleBold, ToggleInlineCode, ToggleItalic, ToggleLink, TurnIntoCodeFence, TurnIntoHeading, TurnIntoText, WrapInBlockquote, WrapInBulletList, WrapInOrderedList, } from '@milkdown/preset-commonmark';
8
- export declare const gfm: AtomList<import("@milkdown/utils").$Prose | import("@milkdown/utils").$Remark | (import("@milkdown/utils/lib/types").Metadata<import("@milkdown/utils/lib/types").GetPlugin<string, import("@milkdown/preset-commonmark").ImageOptions>> & import("@milkdown/core").MilkdownPlugin) | (import("@milkdown/utils/lib/types").Metadata<import("@milkdown/utils/lib/types").GetPlugin<"CodeFence", {
9
- languageList?: string[] | undefined;
10
- }>> & import("@milkdown/core").MilkdownPlugin)>;
8
+ export declare const gfm: AtomList<import("@milkdown/utils").AtomPlugin>;
11
9
  export declare const commands: {
12
10
  readonly ToggleStrikeThrough: import("@milkdown/core").CmdKey<undefined>;
13
11
  readonly TurnIntoTaskList: import("@milkdown/core").CmdKey<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAgBpD,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACH,UAAU,EAEV,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,EAER,KAAK,GACR,MAAM,SAAS,CAAC;AACjB,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACH,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EAEV,eAAe,EACf,iBAAiB,EAEjB,GAAG,EACH,EAAE,EACF,SAAS,EACT,OAAO,EACP,EAAE,EACF,KAAK,EAEL,eAAe,EACf,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,SAAS,EACT,YAAY,EACZ,aAAa,EACb,MAAM,EACN,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GACpB,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,GAAG;;+CASd,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAC;AACX,oBAAY,QAAQ,GAAG,OAAO,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAgBpD,cA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