@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.
- package/{esm2015/ecodev-natural-editor.js → esm2020/ecodev-natural-editor.mjs} +0 -0
- package/esm2020/lib/class-dialog/class-dialog.component.mjs +37 -0
- package/esm2020/lib/color-dialog/color-dialog.component.mjs +184 -0
- package/esm2020/lib/custom-css/custom-css.directive.mjs +71 -0
- package/esm2020/lib/editor/editor.component.mjs +213 -0
- package/esm2020/lib/editor.module.mjs +90 -0
- package/{esm2015/lib/link-dialog/link-dialog.component.js → esm2020/lib/link-dialog/link-dialog.component.mjs} +5 -8
- package/esm2020/lib/utils/image.mjs +81 -0
- package/{esm2015/lib/utils/inputrules.js → esm2020/lib/utils/inputrules.mjs} +0 -0
- package/esm2020/lib/utils/items/cell-background-color-item.mjs +55 -0
- package/esm2020/lib/utils/items/class-item.mjs +86 -0
- package/esm2020/lib/utils/items/horizontal-rule-item.mjs +24 -0
- package/esm2020/lib/utils/items/item.mjs +39 -0
- package/esm2020/lib/utils/items/link-item.mjs +40 -0
- package/esm2020/lib/utils/items/table-item.mjs +43 -0
- package/esm2020/lib/utils/items/text-align-item.mjs +78 -0
- package/esm2020/lib/utils/items/utils.mjs +41 -0
- package/esm2020/lib/utils/items/wrap-list-item.mjs +6 -0
- package/esm2020/lib/utils/keymap.mjs +115 -0
- package/esm2020/lib/utils/menu.mjs +101 -0
- package/esm2020/lib/utils/schema/paragraph-with-alignment.mjs +50 -0
- package/esm2020/lib/utils/schema/schema.mjs +51 -0
- package/esm2020/lib/utils/schema/table.mjs +113 -0
- package/esm2020/public-api.mjs +9 -0
- package/fesm2015/ecodev-natural-editor.mjs +1548 -0
- package/fesm2015/ecodev-natural-editor.mjs.map +1 -0
- package/fesm2020/ecodev-natural-editor.mjs +1546 -0
- package/fesm2020/ecodev-natural-editor.mjs.map +1 -0
- package/lib/class-dialog/class-dialog.component.d.ts +24 -0
- package/lib/color-dialog/color-dialog.component.d.ts +26 -0
- package/lib/custom-css/custom-css.directive.d.ts +29 -0
- package/lib/editor.module.d.ts +19 -16
- package/lib/utils/items/cell-background-color-item.d.ts +5 -0
- package/lib/utils/items/class-item.d.ts +6 -0
- package/lib/utils/items/horizontal-rule-item.d.ts +5 -0
- package/lib/utils/items/item.d.ts +30 -0
- package/lib/utils/items/link-item.d.ts +6 -0
- package/lib/utils/items/table-item.d.ts +4 -0
- package/lib/utils/items/text-align-item.d.ts +6 -0
- package/lib/utils/items/utils.d.ts +18 -0
- package/lib/utils/items/wrap-list-item.d.ts +3 -0
- package/lib/utils/menu.d.ts +2 -31
- package/lib/utils/schema/paragraph-with-alignment.d.ts +8 -0
- package/lib/utils/{schema.d.ts → schema/schema.d.ts} +0 -0
- package/lib/utils/schema/table.d.ts +9 -0
- package/package.json +22 -8
- package/public-api.d.ts +1 -0
- package/src/lib/editor/_editor.theme.scss +1 -1
- package/theming/_natural-editor.theme.scss +1 -1
- package/bundles/ecodev-natural-editor.umd.js +0 -1222
- package/bundles/ecodev-natural-editor.umd.js.map +0 -1
- package/esm2015/lib/editor/editor.component.js +0 -219
- package/esm2015/lib/editor.module.js +0 -82
- package/esm2015/lib/utils/image.js +0 -81
- package/esm2015/lib/utils/keymap.js +0 -115
- package/esm2015/lib/utils/menu.js +0 -207
- package/esm2015/lib/utils/schema.js +0 -46
- package/esm2015/lib/utils/table.js +0 -37
- package/esm2015/public-api.js +0 -8
- package/fesm2015/ecodev-natural-editor.js +0 -871
- package/fesm2015/ecodev-natural-editor.js.map +0 -1
- 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": "
|
|
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": "^
|
|
37
|
-
"@angular/core": "^
|
|
50
|
+
"@angular/common": "^13.2.0",
|
|
51
|
+
"@angular/core": "^13.2.0",
|
|
38
52
|
"@ecodev/natural": ">40.0"
|
|
39
53
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"fesm2015": "fesm2015/ecodev-natural-editor.
|
|
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