@modusoperandi/licit 0.1.8 → 0.13.1
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/dist/BlockquoteNodeSpec.js +2 -2
- package/dist/CZIProseMirror.js +4 -4
- package/dist/CursorPlaceholderPlugin.js +2 -2
- package/dist/DocNodeSpec.js +1 -1
- package/dist/EditorCommands.js +1 -1
- package/dist/EditorKeyMap.js +3 -3
- package/dist/FontTypeMarkSpec.js +1 -1
- package/dist/HeadingNodeSpec.js +2 -2
- package/dist/ImageUploadPlaceholderPlugin.js +1 -1
- package/dist/ListToggleCommand.js +1 -1
- package/dist/MarkNames.js +1 -1
- package/dist/ParagraphNodeSpec.js +2 -1
- package/dist/ParagraphSpacingCommand.js +3 -3
- package/dist/SelectionPlaceholderPlugin.js +2 -2
- package/dist/SpacerMarkSpec.js +1 -1
- package/dist/TableResizePlugin.js +2 -2
- package/dist/TextAlignCommand.js +3 -3
- package/dist/TextLineSpacingCommand.js +3 -3
- package/dist/Types.js +1 -1
- package/dist/bom.xml +3334 -8835
- package/dist/clearMarks.js +1 -1
- package/dist/client/SimpleConnector.js +1 -1
- package/dist/client/http.js +3 -3
- package/dist/consolidateListNodes.js +2 -2
- package/dist/convertToCSSPTValue.js +1 -1
- package/dist/coverage/lcov-report/block-navigation.js +82 -0
- package/dist/coverage/lcov-report/block-navigation.js.flow +87 -0
- package/dist/coverage/lcov-report/prettify.js +994 -0
- package/dist/coverage/lcov-report/prettify.js.flow +2 -0
- package/dist/coverage/lcov-report/sorter.js +211 -0
- package/dist/coverage/lcov-report/sorter.js.flow +196 -0
- package/dist/createEmptyEditorState.js +1 -1
- package/dist/index.js +16 -16
- package/dist/keymaps.js +2 -2
- package/dist/patchStyleElements.js +1 -1
- package/dist/splitListItem.js +2 -2
- package/dist/toggleHeading.js +2 -2
- package/dist/toggleList.js +2 -2
- package/dist/transformAndPreserveTextSelection.js +1 -1
- package/dist/ui/AlertInfo.js +2 -2
- package/dist/ui/CommandMenuButton.js +2 -2
- package/dist/ui/CustomButton.js +3 -1
- package/dist/ui/CustomNodeView.js +3 -3
- package/dist/ui/CustomRadioButton.js +3 -1
- package/dist/ui/DocLayoutEditor.js +1 -1
- package/dist/ui/Editor.js +1 -1
- package/dist/ui/EditorFrameset.js +1 -1
- package/dist/ui/EditorToolbar.js +2 -2
- package/dist/ui/EditorToolbarConfig.js +1 -1
- package/dist/ui/ImageAlignEditor.js +1 -1
- package/dist/ui/ImageInlineEditor.js +1 -1
- package/dist/ui/ImageNodeView.js +2 -2
- package/dist/ui/ImageResizeBox.js +1 -1
- package/dist/ui/ImageURLEditor.js +2 -2
- package/dist/ui/ListTypeButton.js +2 -2
- package/dist/ui/MathInlineEditor.js +3 -3
- package/dist/ui/MathNodeView.js +2 -2
- package/dist/ui/PointerSurface.js +1 -1
- package/dist/ui/PopUp.js +1 -1
- package/dist/ui/PopUpManager.js +1 -1
- package/dist/ui/PopUpPosition.js +3 -3
- package/dist/ui/ResizeObserver.js +1 -1
- package/dist/ui/TableGridSizeEditor.js +1 -1
- package/dist/ui/createPopUp.js +1 -1
- package/dist/ui/findActiveFontType.js +1 -1
- package/dist/ui/htmlElementToRect.js +1 -1
- package/dist/ui/mathquill-editor/MathQuillEditorSymbols.js +1 -1
- package/dist/ui/rects.js +3 -3
- package/dist/ui/resolveImage.js +3 -3
- package/dist/ui/toCSSColor.js +1 -1
- package/dist/ui/toCSSLineSpacing.js +1 -1
- package/dist/updateIndentLevel.js +2 -2
- package/package.json +9 -11
- package/utils/build_customstyle_server.js +0 -2
- package/utils/build_image_server.js +0 -2
- package/utils/build_licit_collab_server.js +0 -2
- package/webpack.config.js +11 -17
package/dist/clearMarks.js
CHANGED
package/dist/client/http.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.req = req;
|
|
7
|
-
exports.GET = GET;
|
|
8
|
-
exports.POST = POST;
|
|
9
6
|
exports.DELETE = DELETE;
|
|
7
|
+
exports.GET = GET;
|
|
10
8
|
exports.PATCH = PATCH;
|
|
9
|
+
exports.POST = POST;
|
|
10
|
+
exports.req = req;
|
|
11
11
|
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
// A simple wrapper for XHR.
|
|
@@ -15,9 +15,9 @@ var _prosemirrorTransform = require("prosemirror-transform");
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
19
|
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
21
|
|
|
22
22
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
23
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.PX_TO_PT_RATIO = exports.PT_TO_PX_RATIO = void 0;
|
|
6
7
|
exports.default = convertToCSSPTValue;
|
|
7
|
-
exports.PT_TO_PX_RATIO = exports.PX_TO_PT_RATIO = void 0;
|
|
8
8
|
const SIZE_PATTERN = /([\d\.]+)(px|pt)/i;
|
|
9
9
|
const PX_TO_PT_RATIO = 0.75292857;
|
|
10
10
|
exports.PX_TO_PT_RATIO = PX_TO_PT_RATIO;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
var jumpToCode = function init() {
|
|
5
|
+
// Classes of code we would like to highlight in the file view
|
|
6
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; // Elements to highlight in the file listing view
|
|
7
|
+
|
|
8
|
+
var fileListingElements = ['td.pct.low']; // We don't want to select elements that are direct descendants of another match
|
|
9
|
+
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
+
// Selecter that finds elements on the page to which we can jump
|
|
12
|
+
|
|
13
|
+
var selector = fileListingElements.join(', ') + ', ' + notSelector + missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
14
|
+
// The NodeList of matching elements
|
|
15
|
+
|
|
16
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
17
|
+
var currentIndex;
|
|
18
|
+
|
|
19
|
+
function toggleClass(index) {
|
|
20
|
+
missingCoverageElements.item(currentIndex).classList.remove('highlighted');
|
|
21
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function makeCurrent(index) {
|
|
25
|
+
toggleClass(index);
|
|
26
|
+
currentIndex = index;
|
|
27
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
28
|
+
behavior: 'smooth',
|
|
29
|
+
block: 'center',
|
|
30
|
+
inline: 'center'
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function goToPrevious() {
|
|
35
|
+
var nextIndex = 0;
|
|
36
|
+
|
|
37
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
38
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
39
|
+
} else if (missingCoverageElements.length > 1) {
|
|
40
|
+
nextIndex = currentIndex - 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
makeCurrent(nextIndex);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function goToNext() {
|
|
47
|
+
var nextIndex = 0;
|
|
48
|
+
|
|
49
|
+
if (typeof currentIndex === 'number' && currentIndex < missingCoverageElements.length - 1) {
|
|
50
|
+
nextIndex = currentIndex + 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
makeCurrent(nextIndex);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return function jump(event) {
|
|
57
|
+
if (document.getElementById('fileSearch') === document.activeElement && document.activeElement != null) {
|
|
58
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
switch (event.which) {
|
|
63
|
+
case 78: // n
|
|
64
|
+
|
|
65
|
+
case 74:
|
|
66
|
+
// j
|
|
67
|
+
goToNext();
|
|
68
|
+
break;
|
|
69
|
+
|
|
70
|
+
case 66: // b
|
|
71
|
+
|
|
72
|
+
case 75: // k
|
|
73
|
+
|
|
74
|
+
case 80:
|
|
75
|
+
// p
|
|
76
|
+
goToPrevious();
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}();
|
|
81
|
+
|
|
82
|
+
window.addEventListener('keydown', jumpToCode);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var jumpToCode = (function init() {
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
+
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
|
+
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
+
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector =
|
|
14
|
+
fileListingElements.join(', ') +
|
|
15
|
+
', ' +
|
|
16
|
+
notSelector +
|
|
17
|
+
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
+
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
+
|
|
22
|
+
var currentIndex;
|
|
23
|
+
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements
|
|
26
|
+
.item(currentIndex)
|
|
27
|
+
.classList.remove('highlighted');
|
|
28
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function makeCurrent(index) {
|
|
32
|
+
toggleClass(index);
|
|
33
|
+
currentIndex = index;
|
|
34
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
+
behavior: 'smooth',
|
|
36
|
+
block: 'center',
|
|
37
|
+
inline: 'center'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function goToPrevious() {
|
|
42
|
+
var nextIndex = 0;
|
|
43
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
+
} else if (missingCoverageElements.length > 1) {
|
|
46
|
+
nextIndex = currentIndex - 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
makeCurrent(nextIndex);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function goToNext() {
|
|
53
|
+
var nextIndex = 0;
|
|
54
|
+
|
|
55
|
+
if (
|
|
56
|
+
typeof currentIndex === 'number' &&
|
|
57
|
+
currentIndex < missingCoverageElements.length - 1
|
|
58
|
+
) {
|
|
59
|
+
nextIndex = currentIndex + 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
makeCurrent(nextIndex);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return function jump(event) {
|
|
66
|
+
if (
|
|
67
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
+
document.activeElement != null
|
|
69
|
+
) {
|
|
70
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
switch (event.which) {
|
|
75
|
+
case 78: // n
|
|
76
|
+
case 74: // j
|
|
77
|
+
goToNext();
|
|
78
|
+
break;
|
|
79
|
+
case 66: // b
|
|
80
|
+
case 75: // k
|
|
81
|
+
case 80: // p
|
|
82
|
+
goToPrevious();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
})();
|
|
87
|
+
window.addEventListener('keydown', jumpToCode);
|