@modusoperandi/licit 1.1.3 → 1.1.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.
- package/EMMarkSpec.js +30 -6
- package/EMMarkSpec.js.flow +30 -5
- package/EditorMarks.js +4 -2
- package/EditorMarks.js.flow +3 -0
- package/FontSizeMarkSpec.js +36 -21
- package/FontSizeMarkSpec.js.flow +32 -27
- package/FontTypeMarkSpec.js +33 -17
- package/FontTypeMarkSpec.js.flow +28 -15
- package/MarkNames.js +2 -1
- package/MarkNames.js.flow +1 -0
- package/OverrideMarkSpec.js +54 -0
- package/OverrideMarkSpec.js.flow +49 -0
- package/ParagraphNodeSpec.js +12 -3
- package/ParagraphNodeSpec.js.flow +25 -14
- package/StrikeMarkSpec.js +14 -7
- package/StrikeMarkSpec.js.flow +10 -7
- package/StrongMarkSpec.js +28 -15
- package/StrongMarkSpec.js.flow +26 -12
- package/TextColorMarkSpec.js +17 -10
- package/TextColorMarkSpec.js.flow +11 -6
- package/TextHighlightMarkSpec.js +18 -8
- package/TextHighlightMarkSpec.js.flow +15 -6
- package/TextSubMarkSpec.js +18 -4
- package/TextSubMarkSpec.js.flow +7 -6
- package/TextSuperMarkSpec.js +18 -4
- package/TextSuperMarkSpec.js.flow +7 -6
- package/TextUnderlineMarkSpec.js +15 -12
- package/TextUnderlineMarkSpec.js.flow +10 -13
- package/bom.xml +3049 -2907
- package/buildEditorPlugins.js +0 -1
- package/buildEditorPlugins.js.flow +7 -8
- package/package.json +4 -4
- package/styles.css +4 -2
- package/ui/ListTypeMenu.js +6 -0
- package/ui/ListTypeMenu.js.flow +9 -0
package/buildEditorPlugins.js
CHANGED
|
@@ -20,7 +20,6 @@ import SelectionPlaceholderPlugin from './SelectionPlaceholderPlugin.js';
|
|
|
20
20
|
import TablePlugins from './TablePlugins.js';
|
|
21
21
|
import buildInputRules from './buildInputRules.js';
|
|
22
22
|
import createEditorKeyMap from './createEditorKeyMap.js';
|
|
23
|
-
|
|
24
23
|
// Creates the default plugin for the editor.
|
|
25
24
|
var DefaultEditorPlugins = /*#__PURE__*/function () {
|
|
26
25
|
function DefaultEditorPlugins(schema) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// @flow
|
|
2
|
-
import {baseKeymap} from 'prosemirror-commands';
|
|
3
|
-
import {dropCursor} from 'prosemirror-dropcursor';
|
|
4
|
-
import {gapCursor} from 'prosemirror-gapcursor';
|
|
5
|
-
import {history} from 'prosemirror-history';
|
|
6
|
-
import {keymap} from 'prosemirror-keymap';
|
|
7
|
-
import {Schema} from 'prosemirror-model';
|
|
8
|
-
import {Plugin, PluginKey} from 'prosemirror-state';
|
|
2
|
+
import { baseKeymap } from 'prosemirror-commands';
|
|
3
|
+
import { dropCursor } from 'prosemirror-dropcursor';
|
|
4
|
+
import { gapCursor } from 'prosemirror-gapcursor';
|
|
5
|
+
import { history } from 'prosemirror-history';
|
|
6
|
+
import { keymap } from 'prosemirror-keymap';
|
|
7
|
+
import { Schema } from 'prosemirror-model';
|
|
8
|
+
import { Plugin, PluginKey } from 'prosemirror-state';
|
|
9
9
|
import ContentPlaceholderPlugin from './ContentPlaceholderPlugin.js';
|
|
10
10
|
import CursorPlaceholderPlugin from './CursorPlaceholderPlugin.js';
|
|
11
11
|
import EditorPageLayoutPlugin from './EditorPageLayoutPlugin.js';
|
|
@@ -14,7 +14,6 @@ import SelectionPlaceholderPlugin from './SelectionPlaceholderPlugin.js';
|
|
|
14
14
|
import TablePlugins from './TablePlugins.js';
|
|
15
15
|
import buildInputRules from './buildInputRules.js';
|
|
16
16
|
import createEditorKeyMap from './createEditorKeyMap.js';
|
|
17
|
-
|
|
18
17
|
// Creates the default plugin for the editor.
|
|
19
18
|
export default class DefaultEditorPlugins {
|
|
20
19
|
plugins: Array<Plugin>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modusoperandi/licit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"subversion": "1",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"@babel/preset-env": "^7.19.4",
|
|
72
72
|
"@babel/preset-flow": "^7.10.4",
|
|
73
73
|
"@babel/preset-react": "^7.18.6",
|
|
74
|
-
"@cyclonedx/cyclonedx-npm": "^
|
|
74
|
+
"@cyclonedx/cyclonedx-npm": "^2.0.0",
|
|
75
75
|
"babel-jest": "^29.2.0",
|
|
76
|
-
"babel-loader": "^
|
|
76
|
+
"babel-loader": "^10.0.0",
|
|
77
77
|
"babel-plugin-flow-react-proptypes": "^26.0.0",
|
|
78
78
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
79
79
|
"body-parser": "^1.19.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"exports-loader": "^5.0.0",
|
|
91
91
|
"express": "^4.17.1",
|
|
92
92
|
"file-loader": "^6.2.0",
|
|
93
|
-
"flow-bin": "^0.
|
|
93
|
+
"flow-bin": "^0.261.2",
|
|
94
94
|
"flow-copy-source": "^2.0.9",
|
|
95
95
|
"flow-typed": "^4.0.0",
|
|
96
96
|
"flow-webpack-plugin": "^1.2.0",
|
package/styles.css
CHANGED
|
@@ -32,8 +32,6 @@
|
|
|
32
32
|
@import './ui/czi-table-grid-size-editor.css';
|
|
33
33
|
@import './client/licit.css';
|
|
34
34
|
|
|
35
|
-
/* [FS] IRAD-1061 2020-09-19 */
|
|
36
|
-
|
|
37
35
|
/* Now loaded locally, so that it work in closed network as well. */
|
|
38
36
|
@import './ui/fonts.css';
|
|
39
37
|
@import './ui/icon-font.css';
|
|
@@ -41,3 +39,7 @@
|
|
|
41
39
|
@import '~prosemirror-view/style/prosemirror.css';
|
|
42
40
|
@import '~react-tooltip/dist/react-tooltip.css';
|
|
43
41
|
@import './ui/listType.css';
|
|
42
|
+
|
|
43
|
+
.ProseMirror {
|
|
44
|
+
content-visibility: auto /* (browser) Only render visable content */
|
|
45
|
+
}
|
package/ui/ListTypeMenu.js
CHANGED
|
@@ -70,6 +70,9 @@ var ListTypeMenu = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
70
70
|
onClick: function onClick(e) {
|
|
71
71
|
return _this2._onUIEnter(command, e);
|
|
72
72
|
},
|
|
73
|
+
onMouseDown: preventEventDefault,
|
|
74
|
+
onMouseEnter: preventEventDefault,
|
|
75
|
+
onMouseUp: preventEventDefault,
|
|
73
76
|
value: command
|
|
74
77
|
}, command.label));
|
|
75
78
|
});
|
|
@@ -80,4 +83,7 @@ var ListTypeMenu = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
80
83
|
}
|
|
81
84
|
}]);
|
|
82
85
|
}(React.PureComponent);
|
|
86
|
+
export function preventEventDefault(e) {
|
|
87
|
+
e.preventDefault();
|
|
88
|
+
}
|
|
83
89
|
export default ListTypeMenu;
|
package/ui/ListTypeMenu.js.flow
CHANGED
|
@@ -42,6 +42,9 @@ class ListTypeMenu extends React.PureComponent<any, any> {
|
|
|
42
42
|
id={label}
|
|
43
43
|
key={label}
|
|
44
44
|
onClick={(e) => this._onUIEnter(command, e)}
|
|
45
|
+
onMouseDown={preventEventDefault}
|
|
46
|
+
onMouseEnter={preventEventDefault}
|
|
47
|
+
onMouseUp={preventEventDefault}
|
|
45
48
|
value={command}
|
|
46
49
|
>
|
|
47
50
|
{command.label}
|
|
@@ -66,4 +69,10 @@ class ListTypeMenu extends React.PureComponent<any, any> {
|
|
|
66
69
|
};
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
export function preventEventDefault(e: React.SyntheticEvent): void {
|
|
75
|
+
e.preventDefault();
|
|
76
|
+
}
|
|
77
|
+
|
|
69
78
|
export default ListTypeMenu;
|