@modusoperandi/licit 1.2.2 → 1.3.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/LinkSetURLCommand.js +4 -3
- package/LinkSetURLCommand.js.flow +8 -1
- package/LinkTooltipPlugin.js +4 -3
- package/LinkTooltipPlugin.js.flow +8 -1
- package/bom.xml +478 -437
- package/package.json +1 -1
- package/ui/LinkURLEditor.js +1 -1
- package/ui/LinkURLEditor.js.flow +1 -1
package/LinkSetURLCommand.js
CHANGED
|
@@ -66,9 +66,10 @@ var LinkSetURLCommand = /*#__PURE__*/function (_UICommand) {
|
|
|
66
66
|
return stylePromise.fetchStyles();
|
|
67
67
|
case 7:
|
|
68
68
|
styles = _context.sent;
|
|
69
|
-
storeTOCvalue = styles.filter(function (style
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
storeTOCvalue = styles.filter(function (style // Added TOT/TOF selected styles to be listed as well
|
|
70
|
+
) {
|
|
71
|
+
var _style$styles, _style$styles2, _style$styles3;
|
|
72
|
+
return (style === null || style === void 0 || (_style$styles = style.styles) === null || _style$styles === void 0 ? void 0 : _style$styles.toc) === true || (style === null || style === void 0 || (_style$styles2 = style.styles) === null || _style$styles2 === void 0 ? void 0 : _style$styles2.tot) === true || (style === null || style === void 0 || (_style$styles3 = style.styles) === null || _style$styles3 === void 0 ? void 0 : _style$styles3.tof) === true;
|
|
72
73
|
}).map(function (style) {
|
|
73
74
|
return style === null || style === void 0 ? void 0 : style.styleName;
|
|
74
75
|
});
|
|
@@ -47,7 +47,14 @@ class LinkSetURLCommand extends UICommand {
|
|
|
47
47
|
const styles = await stylePromise.fetchStyles();
|
|
48
48
|
|
|
49
49
|
storeTOCvalue = styles
|
|
50
|
-
.filter(
|
|
50
|
+
.filter(
|
|
51
|
+
(
|
|
52
|
+
style // Added TOT/TOF selected styles to be listed as well
|
|
53
|
+
) =>
|
|
54
|
+
style?.styles?.toc === true ||
|
|
55
|
+
style?.styles?.tot === true ||
|
|
56
|
+
style?.styles?.tof === true
|
|
57
|
+
)
|
|
51
58
|
.map((style) => style?.styleName);
|
|
52
59
|
|
|
53
60
|
view.state.tr.doc.descendants((node, pos) => {
|
package/LinkTooltipPlugin.js
CHANGED
|
@@ -77,9 +77,10 @@ var LinkTooltipView = /*#__PURE__*/function () {
|
|
|
77
77
|
return stylePromise.fetchStyles();
|
|
78
78
|
case 9:
|
|
79
79
|
styles = _context.sent;
|
|
80
|
-
storeTOCvalue = styles.filter(function (style
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
storeTOCvalue = styles.filter(function (style // Added TOT/TOF selected styles to be listed as well
|
|
81
|
+
) {
|
|
82
|
+
var _style$styles, _style$styles2, _style$styles3;
|
|
83
|
+
return (style === null || style === void 0 || (_style$styles = style.styles) === null || _style$styles === void 0 ? void 0 : _style$styles.toc) === true || (style === null || style === void 0 || (_style$styles2 = style.styles) === null || _style$styles2 === void 0 ? void 0 : _style$styles2.tot) === true || (style === null || style === void 0 || (_style$styles3 = style.styles) === null || _style$styles3 === void 0 ? void 0 : _style$styles3.tof) === true;
|
|
83
84
|
}).map(function (style) {
|
|
84
85
|
return style === null || style === void 0 ? void 0 : style.styleName;
|
|
85
86
|
});
|
|
@@ -139,7 +139,14 @@ class LinkTooltipView {
|
|
|
139
139
|
const styles = await stylePromise.fetchStyles();
|
|
140
140
|
|
|
141
141
|
storeTOCvalue = styles
|
|
142
|
-
.filter(
|
|
142
|
+
.filter(
|
|
143
|
+
(
|
|
144
|
+
style // Added TOT/TOF selected styles to be listed as well
|
|
145
|
+
) =>
|
|
146
|
+
style?.styles?.toc === true ||
|
|
147
|
+
style?.styles?.tot === true ||
|
|
148
|
+
style?.styles?.tof === true
|
|
149
|
+
)
|
|
143
150
|
.map((style) => style?.styleName);
|
|
144
151
|
view.state.tr.doc.descendants((node, pos) => {
|
|
145
152
|
if (node.attrs.styleName) {
|