@milkdown/preset-gfm 5.2.0 → 5.3.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.
Files changed (62) hide show
  1. package/lib/auto-link.d.ts +1 -15
  2. package/lib/auto-link.d.ts.map +1 -1
  3. package/lib/index.d.ts +2 -2
  4. package/lib/index.d.ts.map +1 -1
  5. package/lib/index.es.js +1031 -0
  6. package/lib/index.es.js.map +1 -0
  7. package/lib/supported-keys.d.ts.map +1 -1
  8. package/lib/table/command.d.ts +3 -0
  9. package/lib/table/command.d.ts.map +1 -0
  10. package/lib/table/index.d.ts +10 -0
  11. package/lib/table/index.d.ts.map +1 -0
  12. package/lib/table/nodes/index.d.ts +32 -0
  13. package/lib/table/nodes/index.d.ts.map +1 -0
  14. package/lib/table/nodes/schema.d.ts +2 -0
  15. package/lib/table/nodes/schema.d.ts.map +1 -0
  16. package/lib/table/nodes/style.d.ts +3 -0
  17. package/lib/table/nodes/style.d.ts.map +1 -0
  18. package/lib/table/operator-plugin/actions.d.ts +19 -0
  19. package/lib/table/operator-plugin/actions.d.ts.map +1 -0
  20. package/lib/table/operator-plugin/calc-pos.d.ts +3 -0
  21. package/lib/table/operator-plugin/calc-pos.d.ts.map +1 -0
  22. package/lib/table/operator-plugin/constant.d.ts +6 -0
  23. package/lib/table/operator-plugin/constant.d.ts.map +1 -0
  24. package/lib/table/operator-plugin/helper.d.ts +6 -0
  25. package/lib/table/operator-plugin/helper.d.ts.map +1 -0
  26. package/lib/table/operator-plugin/index.d.ts +6 -0
  27. package/lib/table/operator-plugin/index.d.ts.map +1 -0
  28. package/lib/table/operator-plugin/style.d.ts +3 -0
  29. package/lib/table/operator-plugin/style.d.ts.map +1 -0
  30. package/lib/table/operator-plugin/widget.d.ts +8 -0
  31. package/lib/table/operator-plugin/widget.d.ts.map +1 -0
  32. package/lib/table/utils.d.ts +20 -0
  33. package/lib/table/utils.d.ts.map +1 -0
  34. package/lib/task-list-item.d.ts.map +1 -1
  35. package/package.json +15 -20
  36. package/src/auto-link.ts +4 -9
  37. package/src/index.ts +13 -6
  38. package/src/supported-keys.ts +2 -1
  39. package/src/table/command.ts +16 -0
  40. package/src/table/index.ts +13 -0
  41. package/src/table/nodes/index.ts +169 -0
  42. package/src/table/nodes/schema.ts +16 -0
  43. package/src/table/nodes/style.ts +170 -0
  44. package/src/table/operator-plugin/actions.ts +115 -0
  45. package/src/table/operator-plugin/calc-pos.ts +25 -0
  46. package/src/table/operator-plugin/constant.ts +7 -0
  47. package/src/table/operator-plugin/helper.ts +38 -0
  48. package/src/table/operator-plugin/index.ts +98 -0
  49. package/src/table/operator-plugin/style.ts +51 -0
  50. package/src/table/operator-plugin/widget.ts +66 -0
  51. package/src/table/utils.ts +158 -0
  52. package/src/task-list-item.ts +3 -3
  53. package/lib/auto-link.js +0 -19
  54. package/lib/auto-link.js.map +0 -1
  55. package/lib/index.js +0 -29
  56. package/lib/index.js.map +0 -1
  57. package/lib/strike-through.js +0 -46
  58. package/lib/strike-through.js.map +0 -1
  59. package/lib/supported-keys.js +0 -5
  60. package/lib/supported-keys.js.map +0 -1
  61. package/lib/task-list-item.js +0 -195
  62. package/lib/task-list-item.js.map +0 -1
@@ -1,16 +1,2 @@
1
- export declare const urlPlugin: import("@milkdown/utils/lib/types").WithExtend<string, import("@milkdown/utils").UnknownRecord, {
2
- [x: string]: import("prosemirror-model").NodeType<any>;
3
- } & {
4
- [x: string]: import("prosemirror-model").MarkType<any>;
5
- }, {
6
- schema?: ((ctx: import("@milkdown/core").Ctx) => {
7
- node?: Record<string, import("@milkdown/core").NodeSchema> | undefined;
8
- mark?: Record<string, import("@milkdown/core").MarkSchema> | undefined;
9
- }) | undefined;
10
- view?: ((ctx: import("@milkdown/core").Ctx) => Partial<{
11
- [x: string]: import("@milkdown/prose").NodeViewFactory;
12
- } & {
13
- [x: string]: import("@milkdown/prose").MarkViewFactory;
14
- }>) | undefined;
15
- }>;
1
+ export declare const urlPlugin: import("@milkdown/utils").$Prose;
16
2
  //# sourceMappingURL=auto-link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auto-link.d.ts","sourceRoot":"","sources":["../src/auto-link.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;EAAmE,CAAC"}
1
+ {"version":3,"file":"auto-link.d.ts","sourceRoot":"","sources":["../src/auto-link.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,SAAS,kCAAiC,CAAC"}
package/lib/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { AtomList } from '@milkdown/utils';
2
2
  export * from './strike-through';
3
3
  export { SupportedKeys } from './supported-keys';
4
+ export { BreakTable, createTable, InsertTable, NextCell, PrevCell, table, } from './table';
4
5
  export * from './task-list-item';
5
- export { BreakTable, createTable, InsertTable, NextCell, PrevCell, table, tablePlugin, } from '@milkdown/plugin-table';
6
6
  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';
7
- export declare const gfm: AtomList<(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", {
7
+ 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", {
8
8
  languageList?: string[] | undefined;
9
9
  }>> & import("@milkdown/core").MilkdownPlugin)>;
10
10
  export declare const commands: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAY3C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EACH,UAAU,EAEV,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,EAER,KAAK,EACL,WAAW,GACd,MAAM,wBAAwB,CAAC;AAChC,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;;+CAAgG,CAAC;AAEjH,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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