@ecodev/natural-editor 41.2.1 → 42.1.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 (62) hide show
  1. package/{esm2015/ecodev-natural-editor.js → esm2020/ecodev-natural-editor.mjs} +0 -0
  2. package/esm2020/lib/class-dialog/class-dialog.component.mjs +37 -0
  3. package/esm2020/lib/color-dialog/color-dialog.component.mjs +184 -0
  4. package/esm2020/lib/custom-css/custom-css.directive.mjs +71 -0
  5. package/esm2020/lib/editor/editor.component.mjs +213 -0
  6. package/esm2020/lib/editor.module.mjs +90 -0
  7. package/{esm2015/lib/link-dialog/link-dialog.component.js → esm2020/lib/link-dialog/link-dialog.component.mjs} +5 -8
  8. package/esm2020/lib/utils/image.mjs +81 -0
  9. package/{esm2015/lib/utils/inputrules.js → esm2020/lib/utils/inputrules.mjs} +0 -0
  10. package/esm2020/lib/utils/items/cell-background-color-item.mjs +55 -0
  11. package/esm2020/lib/utils/items/class-item.mjs +86 -0
  12. package/esm2020/lib/utils/items/horizontal-rule-item.mjs +24 -0
  13. package/esm2020/lib/utils/items/item.mjs +39 -0
  14. package/esm2020/lib/utils/items/link-item.mjs +40 -0
  15. package/esm2020/lib/utils/items/table-item.mjs +43 -0
  16. package/esm2020/lib/utils/items/text-align-item.mjs +78 -0
  17. package/esm2020/lib/utils/items/utils.mjs +41 -0
  18. package/esm2020/lib/utils/items/wrap-list-item.mjs +6 -0
  19. package/esm2020/lib/utils/keymap.mjs +115 -0
  20. package/esm2020/lib/utils/menu.mjs +101 -0
  21. package/esm2020/lib/utils/schema/paragraph-with-alignment.mjs +50 -0
  22. package/esm2020/lib/utils/schema/schema.mjs +51 -0
  23. package/esm2020/lib/utils/schema/table.mjs +113 -0
  24. package/esm2020/public-api.mjs +9 -0
  25. package/fesm2015/ecodev-natural-editor.mjs +1548 -0
  26. package/fesm2015/ecodev-natural-editor.mjs.map +1 -0
  27. package/fesm2020/ecodev-natural-editor.mjs +1546 -0
  28. package/fesm2020/ecodev-natural-editor.mjs.map +1 -0
  29. package/lib/class-dialog/class-dialog.component.d.ts +24 -0
  30. package/lib/color-dialog/color-dialog.component.d.ts +26 -0
  31. package/lib/custom-css/custom-css.directive.d.ts +29 -0
  32. package/lib/editor.module.d.ts +19 -16
  33. package/lib/utils/items/cell-background-color-item.d.ts +5 -0
  34. package/lib/utils/items/class-item.d.ts +6 -0
  35. package/lib/utils/items/horizontal-rule-item.d.ts +5 -0
  36. package/lib/utils/items/item.d.ts +30 -0
  37. package/lib/utils/items/link-item.d.ts +6 -0
  38. package/lib/utils/items/table-item.d.ts +4 -0
  39. package/lib/utils/items/text-align-item.d.ts +6 -0
  40. package/lib/utils/items/utils.d.ts +18 -0
  41. package/lib/utils/items/wrap-list-item.d.ts +3 -0
  42. package/lib/utils/menu.d.ts +2 -31
  43. package/lib/utils/schema/paragraph-with-alignment.d.ts +8 -0
  44. package/lib/utils/{schema.d.ts → schema/schema.d.ts} +0 -0
  45. package/lib/utils/schema/table.d.ts +9 -0
  46. package/package.json +22 -8
  47. package/public-api.d.ts +1 -0
  48. package/src/lib/editor/_editor.theme.scss +1 -1
  49. package/theming/_natural-editor.theme.scss +1 -1
  50. package/bundles/ecodev-natural-editor.umd.js +0 -1222
  51. package/bundles/ecodev-natural-editor.umd.js.map +0 -1
  52. package/esm2015/lib/editor/editor.component.js +0 -219
  53. package/esm2015/lib/editor.module.js +0 -82
  54. package/esm2015/lib/utils/image.js +0 -81
  55. package/esm2015/lib/utils/keymap.js +0 -115
  56. package/esm2015/lib/utils/menu.js +0 -207
  57. package/esm2015/lib/utils/schema.js +0 -46
  58. package/esm2015/lib/utils/table.js +0 -37
  59. package/esm2015/public-api.js +0 -8
  60. package/fesm2015/ecodev-natural-editor.js +0 -871
  61. package/fesm2015/ecodev-natural-editor.js.map +0 -1
  62. package/lib/utils/table.d.ts +0 -8
@@ -0,0 +1,9 @@
1
+ import { TableNodes, TableNodesOptions } from 'prosemirror-tables';
2
+ /**
3
+ * This function creates a set of [node
4
+ * specs](http://prosemirror.net/docs/ref/#model.SchemaSpec.nodes) for
5
+ * `table`, `table_row`, and `table_cell` nodes types.
6
+ *
7
+ * It is very directly inspired by prosemirror-table
8
+ */
9
+ export declare function tableNodes(options: TableNodesOptions): TableNodes;
package/package.json CHANGED
@@ -1,9 +1,23 @@
1
1
  {
2
2
  "name": "@ecodev/natural-editor",
3
- "version": "41.2.1",
3
+ "version": "42.1.0",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
7
+ "exports": {
8
+ ".": {
9
+ "sass": "./theming/_natural-editor.theme.scss",
10
+ "types": "./ecodev-natural-editor.d.ts",
11
+ "esm2020": "./esm2020/ecodev-natural-editor.mjs",
12
+ "es2020": "./fesm2020/ecodev-natural-editor.mjs",
13
+ "es2015": "./fesm2015/ecodev-natural-editor.mjs",
14
+ "node": "./fesm2015/ecodev-natural-editor.mjs",
15
+ "default": "./fesm2020/ecodev-natural-editor.mjs"
16
+ },
17
+ "./package.json": {
18
+ "default": "./package.json"
19
+ }
20
+ },
7
21
  "dependencies": {
8
22
  "@types/prosemirror-commands": "^1.0.4",
9
23
  "@types/prosemirror-dropcursor": "^1.0.3",
@@ -33,14 +47,14 @@
33
47
  "tslib": "^2.3.0"
34
48
  },
35
49
  "peerDependencies": {
36
- "@angular/common": "^12.2.0",
37
- "@angular/core": "^12.2.0",
50
+ "@angular/common": "^13.2.0",
51
+ "@angular/core": "^13.2.0",
38
52
  "@ecodev/natural": ">40.0"
39
53
  },
40
- "main": "bundles/ecodev-natural-editor.umd.js",
41
- "module": "fesm2015/ecodev-natural-editor.js",
42
- "es2015": "fesm2015/ecodev-natural-editor.js",
43
- "esm2015": "esm2015/ecodev-natural-editor.js",
44
- "fesm2015": "fesm2015/ecodev-natural-editor.js",
54
+ "module": "fesm2015/ecodev-natural-editor.mjs",
55
+ "es2020": "fesm2020/ecodev-natural-editor.mjs",
56
+ "esm2020": "esm2020/ecodev-natural-editor.mjs",
57
+ "fesm2020": "fesm2020/ecodev-natural-editor.mjs",
58
+ "fesm2015": "fesm2015/ecodev-natural-editor.mjs",
45
59
  "typings": "ecodev-natural-editor.d.ts"
46
60
  }
package/public-api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import '@angular/localize/init';
2
+ export { NaturalCustomCssDirective } from './lib/custom-css/custom-css.directive';
2
3
  export { NaturalEditorComponent } from './lib/editor/editor.component';
3
4
  export { NaturalEditorModule } from './lib/editor.module';
@@ -1,5 +1,5 @@
1
1
  @use 'sass:map';
2
- @use '~@angular/material' as mat;
2
+ @use '@angular/material' as mat;
3
3
 
4
4
  @mixin natural-editor($theme) {
5
5
  $primary: map.get($theme, primary);
@@ -3,7 +3,7 @@ This is the single public entry point for the lib
3
3
  So Natural Editor styles can be imported into an application like so:
4
4
 
5
5
  ```
6
- @use '~@ecodev/natural/theming/natural-editor.theme';
6
+ @use '@ecodev/natural-editor';
7
7
  ```
8
8
  */
9
9