@rathkit/rte-core 0.1.0-alpha.0 → 0.1.0-alpha.4

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 (55) hide show
  1. package/dist/dom/render.js +25 -14
  2. package/dist/dom/view.d.ts +5 -3
  3. package/dist/dom/view.js +41 -23
  4. package/dist/edit.js +6 -3
  5. package/dist/engine.d.ts +7 -1
  6. package/dist/engine.js +19 -3
  7. package/dist/export.d.ts +2 -2
  8. package/dist/export.js +22 -6
  9. package/dist/footnotes/index.d.ts +2 -0
  10. package/dist/footnotes/index.js +2 -0
  11. package/dist/footnotes/plugin.d.ts +6 -0
  12. package/dist/footnotes/plugin.js +130 -0
  13. package/dist/footnotes/reconcile.d.ts +4 -0
  14. package/dist/footnotes/reconcile.js +155 -0
  15. package/dist/images/images.js +4 -3
  16. package/dist/images/index.d.ts +5 -1
  17. package/dist/images/index.js +3 -1
  18. package/dist/{dom/imageview.d.ts → images/view.d.ts} +8 -5
  19. package/dist/{dom/imageview.js → images/view.js} +16 -10
  20. package/dist/import.js +55 -18
  21. package/dist/index.d.ts +2 -0
  22. package/dist/index.js +1 -0
  23. package/dist/lists/lists.js +45 -30
  24. package/dist/markdown/detect.d.ts +1 -0
  25. package/dist/markdown/detect.js +81 -0
  26. package/dist/markdown/export.d.ts +10 -0
  27. package/dist/markdown/export.js +252 -0
  28. package/dist/markdown/index.d.ts +5 -0
  29. package/dist/markdown/index.js +4 -0
  30. package/dist/markdown/inline.d.ts +35 -0
  31. package/dist/markdown/inline.js +604 -0
  32. package/dist/markdown/parse.d.ts +4 -0
  33. package/dist/markdown/parse.js +586 -0
  34. package/dist/markdown/plugin.d.ts +20 -0
  35. package/dist/markdown/plugin.js +53 -0
  36. package/dist/model.d.ts +25 -2
  37. package/dist/model.js +2 -0
  38. package/dist/notes.d.ts +6 -0
  39. package/dist/notes.js +49 -0
  40. package/dist/ops.d.ts +6 -1
  41. package/dist/ops.js +5 -4
  42. package/dist/path.d.ts +3 -1
  43. package/dist/path.js +91 -5
  44. package/dist/plugin.d.ts +52 -1
  45. package/dist/standard/index.d.ts +5 -2
  46. package/dist/standard/index.js +6 -4
  47. package/dist/{dom/tableview.d.ts → tables/cells.d.ts} +6 -5
  48. package/dist/{dom/tableview.js → tables/cells.js} +13 -9
  49. package/dist/{dom/tablegrips.d.ts → tables/grips.d.ts} +5 -4
  50. package/dist/{dom/tablegrips.js → tables/grips.js} +8 -7
  51. package/dist/tables/index.d.ts +5 -1
  52. package/dist/tables/index.js +3 -1
  53. package/dist/tables/view.d.ts +2 -0
  54. package/dist/tables/view.js +15 -0
  55. package/package.json +23 -1
@@ -0,0 +1,2 @@
1
+ import type { ViewExtension } from "../plugin.ts";
2
+ export declare const tablesView: ViewExtension;
@@ -0,0 +1,15 @@
1
+ import { CellMarks, installColumnResize } from "./cells.js";
2
+ import { TableGrips } from "./grips.js";
3
+ export const tablesView = (host) => {
4
+ const marks = new CellMarks(host);
5
+ const grips = new TableGrips(host);
6
+ installColumnResize(host);
7
+ const stop = host.onChange((change) => {
8
+ if (change.docChanged || change.selectionChanged)
9
+ marks.update();
10
+ grips.update();
11
+ });
12
+ marks.update();
13
+ grips.update();
14
+ return () => { stop(); grips.destroy(); };
15
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rathkit/rte-core",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "Document model, transforms, commands, view layer and plugin API for Rathkit RTE.",
5
5
  "keywords": [
6
6
  "rich-text",
@@ -64,6 +64,14 @@
64
64
  "types": "./dist/find/index.d.ts",
65
65
  "default": "./dist/find/index.js"
66
66
  },
67
+ "./footnotes": {
68
+ "types": "./dist/footnotes/index.d.ts",
69
+ "default": "./dist/footnotes/index.js"
70
+ },
71
+ "./markdown": {
72
+ "types": "./dist/markdown/index.d.ts",
73
+ "default": "./dist/markdown/index.js"
74
+ },
67
75
  "./word": {
68
76
  "types": "./dist/word/index.d.ts",
69
77
  "default": "./dist/word/index.js"
@@ -92,6 +100,8 @@
92
100
  "tables",
93
101
  "find",
94
102
  "autoformat",
103
+ "markdown",
104
+ "footnotes",
95
105
  "word",
96
106
  "svg",
97
107
  "images"
@@ -128,6 +138,18 @@
128
138
  "gzipKB": 15,
129
139
  "plugin": true
130
140
  },
141
+ {
142
+ "name": "footnotes plugin",
143
+ "entry": "dist/footnotes/index.js",
144
+ "gzipKB": 15,
145
+ "plugin": true
146
+ },
147
+ {
148
+ "name": "markdown plugin",
149
+ "entry": "dist/markdown/index.js",
150
+ "gzipKB": 15,
151
+ "plugin": true
152
+ },
131
153
  {
132
154
  "name": "find plugin",
133
155
  "entry": "dist/find/index.js",