@modusoperandi/licit 1.0.10 → 1.0.12
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/ParagraphNodeSpec.js +44 -0
- package/ParagraphNodeSpec.js.flow +40 -1
- package/bom.xml +946 -785
- package/client/Licit.js +8 -0
- package/client/Licit.js.flow +9 -0
- package/index.d.ts +2 -0
- package/package.json +5 -5
- package/ui/EditorToolbarConfig.js +6 -4
- package/ui/EditorToolbarConfig.js.flow +4 -4
package/client/Licit.js
CHANGED
|
@@ -34,6 +34,7 @@ import DefaultEditorPlugins from '../buildEditorPlugins.js';
|
|
|
34
34
|
import EditorMarks from '../EditorMarks.js';
|
|
35
35
|
import EditorNodes from '../EditorNodes.js';
|
|
36
36
|
import convertFromHTML from '../convertFromHTML.js';
|
|
37
|
+
import DocLayoutCommand from '../DocLayoutCommand.js';
|
|
37
38
|
export var DataType = Object.freeze({
|
|
38
39
|
JSON: Symbol('json'),
|
|
39
40
|
HTML: Symbol('html')
|
|
@@ -211,6 +212,13 @@ var Licit = /*#__PURE__*/function (_React$Component) {
|
|
|
211
212
|
view.dispatch(tr.setSelection(TextSelection.atEnd(view.state.doc)).scrollIntoView());
|
|
212
213
|
view.focus();
|
|
213
214
|
});
|
|
215
|
+
/**
|
|
216
|
+
* Method to open page layout
|
|
217
|
+
*/
|
|
218
|
+
_defineProperty(_this, "pageLayout", function (state) {
|
|
219
|
+
var DOC_LAYOUT = new DocLayoutCommand();
|
|
220
|
+
DOC_LAYOUT.waitForUserInput(state);
|
|
221
|
+
});
|
|
214
222
|
_this.initialize(_props);
|
|
215
223
|
return _this;
|
|
216
224
|
}
|
package/client/Licit.js.flow
CHANGED
|
@@ -23,6 +23,7 @@ import DefaultEditorPlugins from '../buildEditorPlugins.js';
|
|
|
23
23
|
import EditorMarks from '../EditorMarks.js';
|
|
24
24
|
import EditorNodes from '../EditorNodes.js';
|
|
25
25
|
import convertFromHTML from '../convertFromHTML.js';
|
|
26
|
+
import DocLayoutCommand from '../DocLayoutCommand.js';
|
|
26
27
|
|
|
27
28
|
export const DataType = Object.freeze({
|
|
28
29
|
JSON: Symbol('json'),
|
|
@@ -605,6 +606,14 @@ class Licit extends React.Component<any, any> {
|
|
|
605
606
|
);
|
|
606
607
|
view.focus();
|
|
607
608
|
};
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Method to open page layout
|
|
612
|
+
*/
|
|
613
|
+
pageLayout = (state: EditorState): void => {
|
|
614
|
+
const DOC_LAYOUT = new DocLayoutCommand();
|
|
615
|
+
DOC_LAYOUT.waitForUserInput(state);
|
|
616
|
+
};
|
|
608
617
|
}
|
|
609
618
|
|
|
610
619
|
export default Licit;
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modusoperandi/licit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"subversion": "1",
|
|
6
6
|
"description": "Rich text editor built with React and ProseMirror",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"exports-loader": "^5.0.0",
|
|
76
76
|
"express": "^4.17.1",
|
|
77
77
|
"file-loader": "^6.2.0",
|
|
78
|
-
"flow-bin": "^0.
|
|
78
|
+
"flow-bin": "^0.258.1",
|
|
79
79
|
"flow-copy-source": "^2.0.9",
|
|
80
80
|
"flow-typed": "^4.0.0",
|
|
81
81
|
"flow-webpack-plugin": "^1.2.0",
|
|
@@ -105,12 +105,12 @@
|
|
|
105
105
|
"ts-node": "^10.9.2",
|
|
106
106
|
"typescript": "5.5.4",
|
|
107
107
|
"webpack": "^5.74.0",
|
|
108
|
-
"webpack-cli": "^
|
|
108
|
+
"webpack-cli": "^6.0.1",
|
|
109
109
|
"webpack-dev-server": "^5.0.2",
|
|
110
110
|
"write-file-webpack-plugin": "^4.5.1"
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
|
-
"@modusoperandi/color-picker": "^1.0.
|
|
113
|
+
"@modusoperandi/color-picker": "^1.0.4",
|
|
114
114
|
"body-parser": "^1.19.0",
|
|
115
115
|
"browserkeymap": "^2.0.2",
|
|
116
116
|
"flatted": "^3.1.0",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"webfontloader": "^1.6.28"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@modusoperandi/licit-ui-commands": "^1.0.
|
|
129
|
+
"@modusoperandi/licit-ui-commands": "^1.0.8",
|
|
130
130
|
"jquery": "^3.5.1",
|
|
131
131
|
"prosemirror-collab": "^1.2.2",
|
|
132
132
|
"prosemirror-tables": "^1.2.5"
|
|
@@ -31,7 +31,6 @@ export function parseLabel(input) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
var CLEAR_FORMAT = EditorCommands.CLEAR_FORMAT,
|
|
34
|
-
DOC_LAYOUT = EditorCommands.DOC_LAYOUT,
|
|
35
34
|
EM = EditorCommands.EM,
|
|
36
35
|
HISTORY_REDO = EditorCommands.HISTORY_REDO,
|
|
37
36
|
HISTORY_UNDO = EditorCommands.HISTORY_UNDO,
|
|
@@ -131,9 +130,12 @@ export var COMMAND_GROUPS = [{
|
|
|
131
130
|
|
|
132
131
|
// [FS][07-MAY-2020][IRAD-956]
|
|
133
132
|
// '[format_quote] Block quote': BLOCKQUOTE_TOGGLE,
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
},
|
|
134
|
+
// Removed page layout icon from Editor
|
|
135
|
+
// {
|
|
136
|
+
// '[settings_overscan] Page layout': DOC_LAYOUT,
|
|
137
|
+
// },
|
|
138
|
+
{
|
|
137
139
|
'[undo] Undo': HISTORY_UNDO,
|
|
138
140
|
'[redo] Redo': HISTORY_REDO
|
|
139
141
|
}];
|
|
@@ -35,7 +35,6 @@ const {
|
|
|
35
35
|
// [FS][07-MAY-2020][IRAD-956]
|
|
36
36
|
// BLOCKQUOTE_TOGGLE,
|
|
37
37
|
CLEAR_FORMAT,
|
|
38
|
-
DOC_LAYOUT,
|
|
39
38
|
EM,
|
|
40
39
|
HISTORY_REDO,
|
|
41
40
|
HISTORY_UNDO,
|
|
@@ -152,9 +151,10 @@ export const COMMAND_GROUPS = [
|
|
|
152
151
|
// [FS][07-MAY-2020][IRAD-956]
|
|
153
152
|
// '[format_quote] Block quote': BLOCKQUOTE_TOGGLE,
|
|
154
153
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
// Removed page layout icon from Editor
|
|
155
|
+
// {
|
|
156
|
+
// '[settings_overscan] Page layout': DOC_LAYOUT,
|
|
157
|
+
// },
|
|
158
158
|
{
|
|
159
159
|
'[undo] Undo': HISTORY_UNDO,
|
|
160
160
|
'[redo] Redo': HISTORY_REDO,
|