@modusoperandi/licit 1.0.12 → 1.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/LICENSE +22 -0
- package/bom.xml +305 -266
- package/client/Licit.js +4 -2
- package/client/Licit.js.flow +13 -2
- package/index.d.ts +1 -1
- package/package.json +4 -4
package/client/Licit.js
CHANGED
|
@@ -215,9 +215,11 @@ var Licit = /*#__PURE__*/function (_React$Component) {
|
|
|
215
215
|
/**
|
|
216
216
|
* Method to open page layout
|
|
217
217
|
*/
|
|
218
|
-
_defineProperty(_this, "pageLayout", function (
|
|
218
|
+
_defineProperty(_this, "pageLayout", function () {
|
|
219
219
|
var DOC_LAYOUT = new DocLayoutCommand();
|
|
220
|
-
DOC_LAYOUT.waitForUserInput(state)
|
|
220
|
+
DOC_LAYOUT.waitForUserInput(_this._editorView.state, _this._editorView.dispatch, _this._editorView).then(function (inputs) {
|
|
221
|
+
DOC_LAYOUT.executeWithUserInput(_this._editorView.state, _this._editorView.dispatch, _this._editorView, inputs);
|
|
222
|
+
});
|
|
221
223
|
});
|
|
222
224
|
_this.initialize(_props);
|
|
223
225
|
return _this;
|
package/client/Licit.js.flow
CHANGED
|
@@ -610,9 +610,20 @@ class Licit extends React.Component<any, any> {
|
|
|
610
610
|
/**
|
|
611
611
|
* Method to open page layout
|
|
612
612
|
*/
|
|
613
|
-
pageLayout = (
|
|
613
|
+
pageLayout = (): void => {
|
|
614
614
|
const DOC_LAYOUT = new DocLayoutCommand();
|
|
615
|
-
DOC_LAYOUT.waitForUserInput(
|
|
615
|
+
DOC_LAYOUT.waitForUserInput(
|
|
616
|
+
this._editorView.state,
|
|
617
|
+
this._editorView.dispatch,
|
|
618
|
+
this._editorView
|
|
619
|
+
).then((inputs) => {
|
|
620
|
+
DOC_LAYOUT.executeWithUserInput(
|
|
621
|
+
this._editorView.state,
|
|
622
|
+
this._editorView.dispatch,
|
|
623
|
+
this._editorView,
|
|
624
|
+
inputs
|
|
625
|
+
);
|
|
626
|
+
});
|
|
616
627
|
};
|
|
617
628
|
}
|
|
618
629
|
|
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.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"subversion": "1",
|
|
6
6
|
"description": "Rich text editor built with React and ProseMirror",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:dist": "npm run build:clean && npm run build:babel && npm run build:flow && npm run build:css && npm run build:fonts && npm run build:bom && cp src/*.d.ts dist/",
|
|
25
25
|
"build:licit": "node utils/build_bin.js",
|
|
26
26
|
"ci:bom": "cyclonedx-npm --ignore-npm-errors --short-PURLs --output-format XML --output-file dist/bom.xml",
|
|
27
|
-
"ci:build": "npm run build:clean && npm run build:babel && npm run build:flow && npm run build:css && npm run build:fonts && npm run build:bom && copyfiles --up 1 \"src/**/*.d.ts\" dist/ && copyfiles --up 1 \"src/**/*.css\" dist && copyfiles package.json dist",
|
|
27
|
+
"ci:build": "npm run build:clean && npm run build:babel && npm run build:flow && npm run build:css && npm run build:fonts && npm run build:bom && copyfiles --up 1 \"src/**/*.d.ts\" dist/ && copyfiles --up 1 \"src/**/*.css\" dist && copyfiles package.json LICENSE dist",
|
|
28
28
|
"flow": "flow --show-all-errors",
|
|
29
29
|
"lint:css": "stylelint \"**/*.css\"",
|
|
30
30
|
"lint:js": "eslint \"src/**/*.js\"",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"cors": "^2.8.5",
|
|
69
69
|
"css-loader": "^7.1.1",
|
|
70
70
|
"eslint": "^8.0.0",
|
|
71
|
-
"eslint-config-prettier": "^
|
|
71
|
+
"eslint-config-prettier": "^10.0.1",
|
|
72
72
|
"eslint-plugin-jest": "^28.2.0",
|
|
73
73
|
"eslint-plugin-prettier": "^5.1.3",
|
|
74
74
|
"eslint-plugin-react": "^7.33.2",
|
|
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.259.1",
|
|
79
79
|
"flow-copy-source": "^2.0.9",
|
|
80
80
|
"flow-typed": "^4.0.0",
|
|
81
81
|
"flow-webpack-plugin": "^1.2.0",
|