@modusoperandi/licit 1.1.1 → 1.1.2
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/LinkTooltipPlugin.js +0 -4
- package/LinkTooltipPlugin.js.flow +0 -5
- package/bom.xml +478 -722
- package/package.json +19 -29
- package/ui/LinkTooltip.js +3 -2
- package/ui/LinkTooltip.js.flow +11 -2
- package/ui/czi-editor.css +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modusoperandi/licit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"subversion": "1",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"build:licit": "node utils/build_bin.js",
|
|
27
27
|
"ci:bom": "cyclonedx-npm --ignore-npm-errors --short-PURLs --output-format XML --output-file dist/bom.xml",
|
|
28
28
|
"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",
|
|
29
|
-
"flow": "flow --show-all-errors",
|
|
30
29
|
"lint:css": "stylelint \"**/*.css\"",
|
|
31
30
|
"lint:js": "eslint \"src/**/*.js\"",
|
|
32
31
|
"lint": "npm run lint:css & npm run lint:js",
|
|
@@ -35,6 +34,22 @@
|
|
|
35
34
|
"build:style-service-docker": "docker build . -f style-service.Dockerfile -t style-service:latest",
|
|
36
35
|
"verify": "npm run lint -- --fix && npm run ci:build && npm run test:coverage && echo 'All Tests Passed!'"
|
|
37
36
|
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@modusoperandi/licit-ui-commands": "^1.0.8",
|
|
39
|
+
"prosemirror-collab": "^1.2.2",
|
|
40
|
+
"prosemirror-tables": "^1.2.5"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@modusoperandi/color-picker": "^1.0.4",
|
|
44
|
+
"browserkeymap": "^2.0.2",
|
|
45
|
+
"flatted": "^3.1.0",
|
|
46
|
+
"jquery": "^3.5.1",
|
|
47
|
+
"react-tooltip": "^5.28.0",
|
|
48
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
49
|
+
"smooth-scroll-into-view-if-needed": "^2.0.2",
|
|
50
|
+
"url": "^0.11.0",
|
|
51
|
+
"webfontloader": "^1.6.28"
|
|
52
|
+
},
|
|
38
53
|
"devDependencies": {
|
|
39
54
|
"@babel/cli": "^7.19.3",
|
|
40
55
|
"@babel/core": "^7.19.3",
|
|
@@ -86,7 +101,6 @@
|
|
|
86
101
|
"html-webpack-plugin": "^5.5.0",
|
|
87
102
|
"husky": "^9.0.10",
|
|
88
103
|
"identity-obj-proxy": "^3.0.0",
|
|
89
|
-
"invariant": "^2.2.4",
|
|
90
104
|
"jest": "^29.2.0",
|
|
91
105
|
"jest-environment-jsdom": "^29.3.1",
|
|
92
106
|
"jest-junit": "^16.0.0",
|
|
@@ -98,7 +112,7 @@
|
|
|
98
112
|
"prettier": "^3.2.5",
|
|
99
113
|
"style-loader": "^4.0.0",
|
|
100
114
|
"stylelint": "^16.2.1",
|
|
101
|
-
"stylelint-config-standard": "^
|
|
115
|
+
"stylelint-config-standard": "^37.0.0",
|
|
102
116
|
"stylelint-prettier": "^5.0.0",
|
|
103
117
|
"terser-webpack-plugin": "^5.3.10",
|
|
104
118
|
"ts-jest": "^29.1.2",
|
|
@@ -110,32 +124,8 @@
|
|
|
110
124
|
"webpack-dev-server": "^5.0.2",
|
|
111
125
|
"write-file-webpack-plugin": "^4.5.1"
|
|
112
126
|
},
|
|
113
|
-
"dependencies": {
|
|
114
|
-
"@modusoperandi/color-picker": "^1.0.4",
|
|
115
|
-
"body-parser": "^1.19.0",
|
|
116
|
-
"browserkeymap": "^2.0.2",
|
|
117
|
-
"flatted": "^3.1.0",
|
|
118
|
-
"flow-typed": "^4.0.0",
|
|
119
|
-
"formidable": "^3.5.1",
|
|
120
|
-
"invariant": "^2.2.4",
|
|
121
|
-
"jquery": "^3.5.1",
|
|
122
|
-
"react-tooltip": "^5.28.0",
|
|
123
|
-
"resize-observer-polyfill": "^1.5.1",
|
|
124
|
-
"smooth-scroll-into-view-if-needed": "^2.0.2",
|
|
125
|
-
"style-loader": "^4.0.0",
|
|
126
|
-
"url": "^0.11.0",
|
|
127
|
-
"webfontloader": "^1.6.28"
|
|
128
|
-
},
|
|
129
|
-
"peerDependencies": {
|
|
130
|
-
"@modusoperandi/licit-ui-commands": "^1.0.8",
|
|
131
|
-
"jquery": "^3.5.1",
|
|
132
|
-
"prosemirror-collab": "^1.2.2",
|
|
133
|
-
"prosemirror-tables": "^1.2.5"
|
|
134
|
-
},
|
|
135
127
|
"overrides": {
|
|
136
|
-
"libxmljs2": "^1.0.0"
|
|
137
|
-
"react": "^18.3.1",
|
|
138
|
-
"react-dom": "^18.3.1"
|
|
128
|
+
"libxmljs2": "^1.0.0"
|
|
139
129
|
},
|
|
140
130
|
"importSort": {
|
|
141
131
|
".js": {
|
package/ui/LinkTooltip.js
CHANGED
|
@@ -102,6 +102,7 @@ var LinkTooltip = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
102
102
|
onRemove = _this$props2.onRemove,
|
|
103
103
|
tocItemPos_ = _this$props2.tocItemPos_,
|
|
104
104
|
selectionId_ = _this$props2.selectionId_;
|
|
105
|
+
var canEdit = editorView.editable;
|
|
105
106
|
// [FS] IRAD-1013 2020-07-09
|
|
106
107
|
var getLabel = function getLabel() {
|
|
107
108
|
if (tocItemPos_ && selectionId_) {
|
|
@@ -131,11 +132,11 @@ var LinkTooltip = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
131
132
|
target: "new",
|
|
132
133
|
title: label,
|
|
133
134
|
value: label
|
|
134
|
-
}), /*#__PURE__*/React.createElement(CustomButton, {
|
|
135
|
+
}), canEdit && /*#__PURE__*/React.createElement(CustomButton, {
|
|
135
136
|
label: "Change",
|
|
136
137
|
onClick: onEdit,
|
|
137
138
|
value: editorView
|
|
138
|
-
}), /*#__PURE__*/React.createElement(CustomButton, {
|
|
139
|
+
}), canEdit && /*#__PURE__*/React.createElement(CustomButton, {
|
|
139
140
|
label: "Remove",
|
|
140
141
|
onClick: onRemove,
|
|
141
142
|
value: editorView
|
package/ui/LinkTooltip.js.flow
CHANGED
|
@@ -24,6 +24,7 @@ class LinkTooltip extends React.PureComponent<any, any> {
|
|
|
24
24
|
render(): React.Element<any> {
|
|
25
25
|
const { href, editorView, onEdit, onRemove, tocItemPos_, selectionId_ } =
|
|
26
26
|
this.props;
|
|
27
|
+
const canEdit = editorView.editable;
|
|
27
28
|
// [FS] IRAD-1013 2020-07-09
|
|
28
29
|
const getLabel = () => {
|
|
29
30
|
if (tocItemPos_ && selectionId_) {
|
|
@@ -53,8 +54,16 @@ class LinkTooltip extends React.PureComponent<any, any> {
|
|
|
53
54
|
title={label}
|
|
54
55
|
value={label}
|
|
55
56
|
/>
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
{canEdit && (
|
|
58
|
+
<CustomButton label="Change" onClick={onEdit} value={editorView} />
|
|
59
|
+
)}
|
|
60
|
+
{canEdit && (
|
|
61
|
+
<CustomButton
|
|
62
|
+
label="Remove"
|
|
63
|
+
onClick={onRemove}
|
|
64
|
+
value={editorView}
|
|
65
|
+
/>
|
|
66
|
+
)}
|
|
58
67
|
</div>
|
|
59
68
|
</div>
|
|
60
69
|
</div>
|
package/ui/czi-editor.css
CHANGED