@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.
Files changed (77) hide show
  1. package/dist/BlockquoteNodeSpec.js +2 -2
  2. package/dist/CZIProseMirror.js +4 -4
  3. package/dist/CursorPlaceholderPlugin.js +2 -2
  4. package/dist/DocNodeSpec.js +1 -1
  5. package/dist/EditorCommands.js +1 -1
  6. package/dist/EditorKeyMap.js +3 -3
  7. package/dist/FontTypeMarkSpec.js +1 -1
  8. package/dist/HeadingNodeSpec.js +2 -2
  9. package/dist/ImageUploadPlaceholderPlugin.js +1 -1
  10. package/dist/ListToggleCommand.js +1 -1
  11. package/dist/MarkNames.js +1 -1
  12. package/dist/ParagraphNodeSpec.js +2 -1
  13. package/dist/ParagraphSpacingCommand.js +3 -3
  14. package/dist/SelectionPlaceholderPlugin.js +2 -2
  15. package/dist/SpacerMarkSpec.js +1 -1
  16. package/dist/TableResizePlugin.js +2 -2
  17. package/dist/TextAlignCommand.js +3 -3
  18. package/dist/TextLineSpacingCommand.js +3 -3
  19. package/dist/Types.js +1 -1
  20. package/dist/bom.xml +3334 -8835
  21. package/dist/clearMarks.js +1 -1
  22. package/dist/client/SimpleConnector.js +1 -1
  23. package/dist/client/http.js +3 -3
  24. package/dist/consolidateListNodes.js +2 -2
  25. package/dist/convertToCSSPTValue.js +1 -1
  26. package/dist/coverage/lcov-report/block-navigation.js +82 -0
  27. package/dist/coverage/lcov-report/block-navigation.js.flow +87 -0
  28. package/dist/coverage/lcov-report/prettify.js +994 -0
  29. package/dist/coverage/lcov-report/prettify.js.flow +2 -0
  30. package/dist/coverage/lcov-report/sorter.js +211 -0
  31. package/dist/coverage/lcov-report/sorter.js.flow +196 -0
  32. package/dist/createEmptyEditorState.js +1 -1
  33. package/dist/index.js +16 -16
  34. package/dist/keymaps.js +2 -2
  35. package/dist/patchStyleElements.js +1 -1
  36. package/dist/splitListItem.js +2 -2
  37. package/dist/toggleHeading.js +2 -2
  38. package/dist/toggleList.js +2 -2
  39. package/dist/transformAndPreserveTextSelection.js +1 -1
  40. package/dist/ui/AlertInfo.js +2 -2
  41. package/dist/ui/CommandMenuButton.js +2 -2
  42. package/dist/ui/CustomButton.js +3 -1
  43. package/dist/ui/CustomNodeView.js +3 -3
  44. package/dist/ui/CustomRadioButton.js +3 -1
  45. package/dist/ui/DocLayoutEditor.js +1 -1
  46. package/dist/ui/Editor.js +1 -1
  47. package/dist/ui/EditorFrameset.js +1 -1
  48. package/dist/ui/EditorToolbar.js +2 -2
  49. package/dist/ui/EditorToolbarConfig.js +1 -1
  50. package/dist/ui/ImageAlignEditor.js +1 -1
  51. package/dist/ui/ImageInlineEditor.js +1 -1
  52. package/dist/ui/ImageNodeView.js +2 -2
  53. package/dist/ui/ImageResizeBox.js +1 -1
  54. package/dist/ui/ImageURLEditor.js +2 -2
  55. package/dist/ui/ListTypeButton.js +2 -2
  56. package/dist/ui/MathInlineEditor.js +3 -3
  57. package/dist/ui/MathNodeView.js +2 -2
  58. package/dist/ui/PointerSurface.js +1 -1
  59. package/dist/ui/PopUp.js +1 -1
  60. package/dist/ui/PopUpManager.js +1 -1
  61. package/dist/ui/PopUpPosition.js +3 -3
  62. package/dist/ui/ResizeObserver.js +1 -1
  63. package/dist/ui/TableGridSizeEditor.js +1 -1
  64. package/dist/ui/createPopUp.js +1 -1
  65. package/dist/ui/findActiveFontType.js +1 -1
  66. package/dist/ui/htmlElementToRect.js +1 -1
  67. package/dist/ui/mathquill-editor/MathQuillEditorSymbols.js +1 -1
  68. package/dist/ui/rects.js +3 -3
  69. package/dist/ui/resolveImage.js +3 -3
  70. package/dist/ui/toCSSColor.js +1 -1
  71. package/dist/ui/toCSSLineSpacing.js +1 -1
  72. package/dist/updateIndentLevel.js +2 -2
  73. package/package.json +9 -11
  74. package/utils/build_customstyle_server.js +0 -2
  75. package/utils/build_image_server.js +0 -2
  76. package/utils/build_licit_collab_server.js +0 -2
  77. package/webpack.config.js +11 -17
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.clearMarks = clearMarks;
7
6
  exports.clearHeading = clearHeading;
7
+ exports.clearMarks = clearMarks;
8
8
 
9
9
  var _prosemirrorModel = require("prosemirror-model");
10
10
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.bpfrpt_proptype_SetStateCall = exports.default = void 0;
6
+ exports.default = exports.bpfrpt_proptype_SetStateCall = void 0;
7
7
 
8
8
  var _prosemirrorState = require("prosemirror-state");
9
9
 
@@ -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); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
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] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
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);