@modusoperandi/licit 0.1.9 → 0.13.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/.github/workflows/build.yml +1 -7
- package/.github/workflows/lint.yml +1 -1
- package/README.md +1 -1
- package/babel.config.json +54 -0
- package/dist/BlockquoteNodeSpec.js +2 -2
- package/dist/CZIProseMirror.js +4 -4
- package/dist/CodeBlockCommand.js +2 -2
- package/dist/CodeBlockCommand.js.flow +1 -1
- package/dist/CursorPlaceholderPlugin.js +2 -2
- package/dist/DocLayoutCommand.js +2 -4
- package/dist/DocLayoutCommand.js.flow +1 -1
- package/dist/DocNodeSpec.js +1 -1
- package/dist/EditorCommands.js +23 -35
- package/dist/EditorCommands.js.flow +7 -7
- package/dist/EditorKeyMap.js +3 -3
- package/dist/FontTypeMarkSpec.js +1 -1
- package/dist/HeadingNodeSpec.js +2 -2
- package/dist/ImageSourceCommand.js +2 -4
- package/dist/ImageSourceCommand.js.flow +1 -1
- package/dist/ImageUploadPlaceholderPlugin.js +1 -1
- package/dist/LinkSetURLCommand.js +4 -8
- package/dist/LinkSetURLCommand.js.flow +3 -3
- package/dist/LinkTooltipPlugin.js +9 -15
- package/dist/LinkTooltipPlugin.js.flow +5 -5
- package/dist/ListToggleCommand.js +5 -11
- package/dist/ListToggleCommand.js.flow +3 -3
- package/dist/MarkNames.js +1 -1
- package/dist/MarksClearCommand.js +3 -3
- package/dist/MarksClearCommand.js.flow +1 -1
- package/dist/MathEditCommand.js +2 -2
- package/dist/MathEditCommand.js.flow +1 -1
- package/dist/ParagraphNodeSpec.js +3 -4
- package/dist/ParagraphNodeSpec.js.flow +2 -6
- package/dist/ParagraphSpacingCommand.js +3 -3
- package/dist/SelectionPlaceholderPlugin.js +2 -2
- package/dist/SpacerMarkSpec.js +1 -1
- package/dist/TableBackgroundColorCommand.js +3 -7
- package/dist/TableBackgroundColorCommand.js.flow +3 -3
- package/dist/TableBorderColorCommand.js +3 -7
- package/dist/TableBorderColorCommand.js.flow +3 -3
- package/dist/TableCellColorCommand.js +3 -7
- package/dist/TableCellColorCommand.js.flow +3 -3
- package/dist/TableCellMenuPlugin.js +4 -6
- package/dist/TableCellMenuPlugin.js.flow +3 -3
- package/dist/TableInsertCommand.js +3 -5
- package/dist/TableInsertCommand.js.flow +2 -2
- package/dist/TableResizePlugin.js +2 -2
- package/dist/TextInsertTabSpaceCommand.js +2 -4
- package/dist/TextInsertTabSpaceCommand.js.flow +1 -1
- package/dist/Types.js +1 -1
- package/dist/bom.xml +4970 -4167
- package/dist/client/CollabConnector.js +17 -2
- package/dist/client/CollabConnector.js.flow +17 -2
- package/dist/client/EditorConnection.js +15 -4
- package/dist/client/EditorConnection.js.flow +14 -3
- package/dist/client/Licit.js +73 -58
- package/dist/client/Licit.js.flow +101 -85
- package/dist/client/Licit.test.js +18 -17
- package/dist/client/Licit.test.js.flow +13 -11
- package/dist/client/SimpleConnector.js +4 -2
- package/dist/client/SimpleConnector.js.flow +3 -1
- package/dist/client/http.js +3 -3
- package/dist/convertToCSSPTValue.js +1 -1
- package/dist/createEmptyEditorState.js +1 -1
- package/dist/index.js +16 -16
- package/dist/joinListNode.js +2 -2
- package/dist/joinListNode.js.flow +1 -1
- package/dist/keymaps.js +2 -2
- package/dist/patchStyleElements.js +3 -3
- package/dist/patchStyleElements.js.flow +1 -1
- package/dist/splitListItem.js +2 -2
- package/dist/styles.css +2 -2
- package/dist/styles0.css +3 -3
- package/dist/toggleBlockquote.js +6 -14
- package/dist/toggleBlockquote.js.flow +4 -4
- package/dist/toggleCodeBlock.js +4 -10
- package/dist/toggleCodeBlock.js.flow +3 -3
- package/dist/ui/AlertInfo.js +2 -2
- package/dist/ui/CommandButton.js +2 -4
- package/dist/ui/CommandButton.js.flow +1 -1
- package/dist/ui/CommandMenuButton.js +5 -7
- package/dist/ui/CommandMenuButton.js.flow +2 -2
- package/dist/ui/CustomMenuItem.js +3 -5
- package/dist/ui/CustomMenuItem.js.flow +1 -1
- package/dist/ui/CustomNodeView.js +3 -3
- package/dist/ui/CustomRadioButton.js +8 -6
- package/dist/ui/CustomRadioButton.js.flow +3 -3
- package/dist/ui/DocLayoutEditor.js +5 -7
- package/dist/ui/DocLayoutEditor.js.flow +2 -2
- package/dist/ui/Editor.js +1 -2
- package/dist/ui/Editor.js.flow +1 -2
- package/dist/ui/EditorFrameset.js +1 -1
- package/dist/ui/EditorToolbar.js +4 -4
- package/dist/ui/EditorToolbar.js.flow +1 -1
- package/dist/ui/EditorToolbarConfig.js +1 -1
- package/dist/ui/FontSizeCommandMenuButton.js +3 -3
- package/dist/ui/FontSizeCommandMenuButton.js.flow +1 -1
- package/dist/ui/FontTypeCommandMenuButton.js +3 -3
- package/dist/ui/FontTypeCommandMenuButton.js.flow +1 -1
- package/dist/ui/ImageAlignEditor.js +5 -5
- package/dist/ui/ImageAlignEditor.js.flow +1 -1
- package/dist/ui/ImageInlineEditor.js +5 -5
- package/dist/ui/ImageInlineEditor.js.flow +1 -1
- package/dist/ui/ImageNodeView.js +5 -7
- package/dist/ui/ImageNodeView.js.flow +2 -2
- package/dist/ui/ImageResizeBox.js +4 -4
- package/dist/ui/ImageResizeBox.js.flow +1 -1
- package/dist/ui/ImageURLEditor.js +6 -8
- package/dist/ui/ImageURLEditor.js.flow +2 -2
- package/dist/ui/ImageUploadEditor.js +3 -5
- package/dist/ui/ImageUploadEditor.js.flow +2 -2
- package/dist/ui/LinkTooltip.js +4 -4
- package/dist/ui/LinkTooltip.js.flow +1 -1
- package/dist/ui/LinkURLEditor.js +4 -6
- package/dist/ui/LinkURLEditor.js.flow +2 -2
- package/dist/ui/ListTypeButton.js +5 -7
- package/dist/ui/ListTypeButton.js.flow +2 -2
- package/dist/ui/MathEditor.js +4 -6
- package/dist/ui/MathEditor.js.flow +2 -2
- package/dist/ui/MathInlineEditor.js +7 -9
- package/dist/ui/MathInlineEditor.js.flow +2 -2
- package/dist/ui/MathNodeView.js +5 -7
- package/dist/ui/MathNodeView.js.flow +2 -2
- package/dist/ui/ResizeObserver.js +1 -1
- package/dist/ui/TableGridSizeEditor.js +7 -9
- package/dist/ui/TableGridSizeEditor.js.flow +2 -2
- package/dist/ui/czi-link-tooltip.css +1 -1
- package/dist/ui/czi-vars.css +1 -45
- package/dist/ui/findActiveFontType.js +1 -1
- package/dist/ui/htmlElementToRect.js +1 -1
- package/dist/ui/isElementFullyVisible.js +2 -2
- package/dist/ui/isElementFullyVisible.js.flow +1 -1
- package/dist/ui/mathquill-editor/MathQuillEditorSymbols.js +1 -1
- package/dist/ui/mathquill-editor/MathQuillEditorSymbolsPanel.js +2 -2
- package/dist/ui/mathquill-editor/MathQuillEditorSymbolsPanel.js.flow +1 -1
- package/dist/ui/resolveImage.js +3 -3
- package/dist/ui/toCSSColor.js +1 -1
- package/dist/ui/toCSSLineSpacing.js +1 -36
- package/dist/ui/toCSSLineSpacing.js.flow +0 -27
- package/flow-typed/@modusoperandilicit-ui-commands.js +5 -0
- package/jest.config.js +207 -0
- package/lint.sh +0 -0
- package/node_modules/prosemirror-utils/LICENSE +13 -0
- package/{dist/ui/PopUpTypes.js.flow → node_modules/prosemirror-utils/README.md} +0 -0
- package/node_modules/prosemirror-utils/dist/helpers.js +119 -0
- package/node_modules/prosemirror-utils/dist/index.js +17 -0
- package/node_modules/prosemirror-utils/dist/index.js.map +1 -0
- package/node_modules/prosemirror-utils/dist/node.js +106 -0
- package/node_modules/prosemirror-utils/dist/selection.js +168 -0
- package/node_modules/prosemirror-utils/dist/transforms.js +257 -0
- package/node_modules/prosemirror-utils/package.json +81 -0
- package/node_modules/prosemirror-utils/typings.d.ts +79 -0
- package/package.json +14 -8
- package/scripts/build_bin.py +0 -0
- package/scripts/ci_check_dist.sh +0 -0
- package/src/CodeBlockCommand.js +1 -1
- package/src/DocLayoutCommand.js +1 -1
- package/src/EditorCommands.js +7 -7
- package/src/ImageSourceCommand.js +1 -1
- package/src/LinkSetURLCommand.js +3 -3
- package/src/LinkTooltipPlugin.js +5 -5
- package/src/ListToggleCommand.js +3 -3
- package/src/MarksClearCommand.js +1 -1
- package/src/MathEditCommand.js +1 -1
- package/src/ParagraphNodeSpec.js +2 -6
- package/src/TableBackgroundColorCommand.js +3 -3
- package/src/TableBorderColorCommand.js +3 -3
- package/src/TableCellColorCommand.js +3 -3
- package/src/TableCellMenuPlugin.js +3 -3
- package/src/TableInsertCommand.js +2 -2
- package/src/TextInsertTabSpaceCommand.js +1 -1
- package/src/client/CollabConnector.js +17 -2
- package/src/client/EditorConnection.js +14 -3
- package/src/client/Licit.js +101 -85
- package/src/client/Licit.test.js +13 -11
- package/src/client/SimpleConnector.js +3 -1
- package/src/joinListNode.js +1 -1
- package/src/patchStyleElements.js +1 -1
- package/src/styles.css +2 -2
- package/src/styles0.css +3 -3
- package/src/toggleBlockquote.js +4 -4
- package/src/toggleCodeBlock.js +3 -3
- package/src/ui/CommandButton.js +1 -1
- package/src/ui/CommandMenuButton.js +2 -2
- package/src/ui/CustomMenuItem.js +1 -1
- package/src/ui/CustomRadioButton.js +3 -3
- package/src/ui/DocLayoutEditor.js +2 -2
- package/src/ui/Editor.js +1 -2
- package/src/ui/EditorToolbar.js +1 -1
- package/src/ui/FontSizeCommandMenuButton.js +1 -1
- package/src/ui/FontTypeCommandMenuButton.js +1 -1
- package/src/ui/ImageAlignEditor.js +1 -1
- package/src/ui/ImageInlineEditor.js +1 -1
- package/src/ui/ImageNodeView.js +2 -2
- package/src/ui/ImageResizeBox.js +1 -1
- package/src/ui/ImageURLEditor.js +2 -2
- package/src/ui/ImageUploadEditor.js +2 -2
- package/src/ui/LinkTooltip.js +1 -1
- package/src/ui/LinkURLEditor.js +2 -2
- package/src/ui/ListTypeButton.js +2 -2
- package/src/ui/MathEditor.js +2 -2
- package/src/ui/MathInlineEditor.js +2 -2
- package/src/ui/MathNodeView.js +2 -2
- package/src/ui/TableGridSizeEditor.js +2 -2
- package/src/ui/czi-link-tooltip.css +1 -1
- package/src/ui/czi-vars.css +1 -45
- package/src/ui/isElementFullyVisible.js +1 -1
- package/src/ui/mathquill-editor/MathQuillEditorSymbolsPanel.js +1 -1
- package/src/ui/toCSSLineSpacing.js +0 -27
- package/build_customstyle_server.py +0 -7
- package/dist/FontSizeCommand.js +0 -80
- package/dist/FontSizeCommand.js.flow +0 -57
- package/dist/FontTypeCommand.js +0 -137
- package/dist/FontTypeCommand.js.flow +0 -100
- package/dist/HeadingCommand.js +0 -65
- package/dist/HeadingCommand.js.flow +0 -51
- package/dist/IndentCommand.js +0 -57
- package/dist/IndentCommand.js.flow +0 -41
- package/dist/MarkToggleCommand.js +0 -90
- package/dist/MarkToggleCommand.js.flow +0 -66
- package/dist/TextAlignCommand.js +0 -151
- package/dist/TextAlignCommand.js.flow +0 -122
- package/dist/TextColorCommand.js +0 -114
- package/dist/TextColorCommand.js.flow +0 -87
- package/dist/TextHighlightCommand.js +0 -118
- package/dist/TextHighlightCommand.js.flow +0 -91
- package/dist/TextLineSpacingCommand.js +0 -177
- package/dist/TextLineSpacingCommand.js.flow +0 -157
- package/dist/applyMark.js +0 -84
- package/dist/applyMark.js.flow +0 -61
- package/dist/clearMarks.js +0 -160
- package/dist/clearMarks.js.flow +0 -128
- package/dist/compareNumber.js +0 -18
- package/dist/compareNumber.js.flow +0 -11
- package/dist/consolidateListNodes.js +0 -291
- package/dist/consolidateListNodes.js.flow +0 -281
- package/dist/coverage/lcov-report/block-navigation.js +0 -77
- package/dist/coverage/lcov-report/block-navigation.js.flow +0 -79
- package/dist/coverage/lcov-report/prettify.js +0 -994
- package/dist/coverage/lcov-report/prettify.js.flow +0 -2
- package/dist/coverage/lcov-report/sorter.js +0 -187
- package/dist/coverage/lcov-report/sorter.js.flow +0 -170
- package/dist/findNodesWithSameMark.js +0 -89
- package/dist/findNodesWithSameMark.js.flow +0 -89
- package/dist/isBulletListNode.js +0 -14
- package/dist/isBulletListNode.js.flow +0 -9
- package/dist/isInsideListItem.js +0 -19
- package/dist/isInsideListItem.js.flow +0 -13
- package/dist/isListNode.js +0 -22
- package/dist/isListNode.js.flow +0 -13
- package/dist/isNodeSelectionForNodeType.js +0 -19
- package/dist/isNodeSelectionForNodeType.js.flow +0 -15
- package/dist/isOrderedListNode.js +0 -14
- package/dist/isOrderedListNode.js.flow +0 -9
- package/dist/isTextStyleMarkCommandEnabled.js +0 -59
- package/dist/isTextStyleMarkCommandEnabled.js.flow +0 -49
- package/dist/noop.js +0 -11
- package/dist/noop.js.flow +0 -5
- package/dist/toggleHeading.js +0 -135
- package/dist/toggleHeading.js.flow +0 -113
- package/dist/toggleList.js +0 -431
- package/dist/toggleList.js.flow +0 -450
- package/dist/transformAndPreserveTextSelection.js +0 -173
- package/dist/transformAndPreserveTextSelection.js.flow +0 -151
- package/dist/ui/ColorEditor.js +0 -118
- package/dist/ui/ColorEditor.js.flow +0 -101
- package/dist/ui/CustomButton.js +0 -62
- package/dist/ui/CustomButton.js.flow +0 -33
- package/dist/ui/PointerSurface.js +0 -173
- package/dist/ui/PointerSurface.js.flow +0 -141
- package/dist/ui/PopUp.js +0 -129
- package/dist/ui/PopUp.js.flow +0 -77
- package/dist/ui/PopUpManager.js +0 -266
- package/dist/ui/PopUpManager.js.flow +0 -213
- package/dist/ui/PopUpPosition.js +0 -156
- package/dist/ui/PopUpPosition.js.flow +0 -104
- package/dist/ui/PopUpTypes.js +0 -1
- package/dist/ui/TooltipSurface.js +0 -99
- package/dist/ui/TooltipSurface.js.flow +0 -76
- package/dist/ui/clamp.js +0 -18
- package/dist/ui/clamp.js.flow +0 -11
- package/dist/ui/createPopUp.js +0 -199
- package/dist/ui/createPopUp.js.flow +0 -205
- package/dist/ui/czi-animations.css +0 -15
- package/dist/ui/czi-color-editor.css +0 -56
- package/dist/ui/czi-custom-button.css +0 -93
- package/dist/ui/czi-pop-up.css +0 -32
- package/dist/ui/czi-tooltip-surface.css +0 -45
- package/dist/ui/preventEventDefault.js +0 -10
- package/dist/ui/preventEventDefault.js.flow +0 -5
- package/dist/ui/rects.js +0 -58
- package/dist/ui/rects.js.flow +0 -47
- package/dist/updateIndentLevel.js +0 -232
- package/dist/updateIndentLevel.js.flow +0 -211
- package/flow-typed/@molicit-citation.js +0 -5
- package/licit/server/customstyles/start.js +0 -184
- package/run_customstyle_server.py +0 -20
- package/src/FontSizeCommand.js +0 -57
- package/src/FontTypeCommand.js +0 -100
- package/src/HeadingCommand.js +0 -51
- package/src/IndentCommand.js +0 -41
- package/src/MarkToggleCommand.js +0 -66
- package/src/TextAlignCommand.js +0 -122
- package/src/TextColorCommand.js +0 -87
- package/src/TextHighlightCommand.js +0 -91
- package/src/TextLineSpacingCommand.js +0 -157
- package/src/applyMark.js +0 -61
- package/src/clearMarks.js +0 -128
- package/src/compareNumber.js +0 -11
- package/src/consolidateListNodes.js +0 -281
- package/src/findNodesWithSameMark.js +0 -89
- package/src/isBulletListNode.js +0 -9
- package/src/isInsideListItem.js +0 -13
- package/src/isListNode.js +0 -13
- package/src/isNodeSelectionForNodeType.js +0 -15
- package/src/isOrderedListNode.js +0 -9
- package/src/isTextStyleMarkCommandEnabled.js +0 -49
- package/src/noop.js +0 -5
- package/src/toggleHeading.js +0 -113
- package/src/toggleList.js +0 -450
- package/src/transformAndPreserveTextSelection.js +0 -151
- package/src/ui/ColorEditor.js +0 -101
- package/src/ui/CustomButton.js +0 -33
- package/src/ui/PointerSurface.js +0 -141
- package/src/ui/PopUp.js +0 -77
- package/src/ui/PopUpManager.js +0 -213
- package/src/ui/PopUpPosition.js +0 -104
- package/src/ui/PopUpTypes.js +0 -0
- package/src/ui/TooltipSurface.js +0 -76
- package/src/ui/clamp.js +0 -11
- package/src/ui/createPopUp.js +0 -205
- package/src/ui/czi-animations.css +0 -15
- package/src/ui/czi-color-editor.css +0 -56
- package/src/ui/czi-custom-button.css +0 -93
- package/src/ui/czi-pop-up.css +0 -32
- package/src/ui/czi-tooltip-surface.css +0 -45
- package/src/ui/preventEventDefault.js +0 -5
- package/src/ui/rects.js +0 -47
- package/src/updateIndentLevel.js +0 -211
- package/utils/build_customstyle_server.js +0 -72
package/dist/FontTypeCommand.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _prosemirrorModel = require("prosemirror-model");
|
|
9
|
-
|
|
10
|
-
var _prosemirrorState = require("prosemirror-state");
|
|
11
|
-
|
|
12
|
-
var _prosemirrorTransform = require("prosemirror-transform");
|
|
13
|
-
|
|
14
|
-
var _prosemirrorView = require("prosemirror-view");
|
|
15
|
-
|
|
16
|
-
var React = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
|
-
var _MarkNames = require("./MarkNames");
|
|
19
|
-
|
|
20
|
-
var _applyMark = _interopRequireDefault(require("./applyMark"));
|
|
21
|
-
|
|
22
|
-
var _licitDocAttrsStep = require("@modusoperandi/licit-doc-attrs-step");
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
function setFontType(tr, schema, name) {
|
|
33
|
-
const markType = schema.marks[_MarkNames.MARK_FONT_TYPE];
|
|
34
|
-
|
|
35
|
-
if (!markType) {
|
|
36
|
-
return tr;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const {
|
|
40
|
-
selection
|
|
41
|
-
} = tr;
|
|
42
|
-
|
|
43
|
-
if (!(selection instanceof _prosemirrorState.TextSelection || selection instanceof _prosemirrorState.AllSelection)) {
|
|
44
|
-
return tr;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const attrs = name ? {
|
|
48
|
-
name
|
|
49
|
-
} : null;
|
|
50
|
-
tr = (0, _applyMark.default)(tr, schema, markType, attrs);
|
|
51
|
-
return tr;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
class FontTypeCommand extends _licitDocAttrsStep.UICommand {
|
|
55
|
-
constructor(name) {
|
|
56
|
-
super();
|
|
57
|
-
|
|
58
|
-
_defineProperty(this, "_label", null);
|
|
59
|
-
|
|
60
|
-
_defineProperty(this, "_name", '');
|
|
61
|
-
|
|
62
|
-
_defineProperty(this, "_popUp", null);
|
|
63
|
-
|
|
64
|
-
_defineProperty(this, "renderLabel", state => {
|
|
65
|
-
return this._label;
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
_defineProperty(this, "isEnabled", state => {
|
|
69
|
-
const {
|
|
70
|
-
schema,
|
|
71
|
-
selection,
|
|
72
|
-
tr
|
|
73
|
-
} = state;
|
|
74
|
-
|
|
75
|
-
if (!(selection instanceof _prosemirrorState.TextSelection || selection instanceof _prosemirrorState.AllSelection)) {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const markType = schema.marks[_MarkNames.MARK_FONT_TYPE];
|
|
80
|
-
|
|
81
|
-
if (!markType) {
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const {
|
|
86
|
-
from,
|
|
87
|
-
to
|
|
88
|
-
} = selection;
|
|
89
|
-
|
|
90
|
-
if (to === from + 1) {
|
|
91
|
-
const node = tr.doc.nodeAt(from);
|
|
92
|
-
|
|
93
|
-
if (node.isAtom && !node.isText && node.isLeaf) {
|
|
94
|
-
// An atomic node (e.g. Image) is selected.
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return true;
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
_defineProperty(this, "execute", (state, dispatch, view) => {
|
|
103
|
-
const {
|
|
104
|
-
schema
|
|
105
|
-
} = state; // commnted selection because selection removes the storedMarks;
|
|
106
|
-
// {selection}
|
|
107
|
-
// const tr = setFontType(
|
|
108
|
-
// state.tr.setSelection(selection),
|
|
109
|
-
// schema,
|
|
110
|
-
// this._name
|
|
111
|
-
// );
|
|
112
|
-
|
|
113
|
-
const tr = setFontType(state.tr, schema, this._name);
|
|
114
|
-
|
|
115
|
-
if (tr.docChanged || tr.storedMarksSet) {
|
|
116
|
-
// If selection is empty, the color is added to `storedMarks`, which
|
|
117
|
-
// works like `toggleMark`
|
|
118
|
-
// (see https://prosemirror.net/docs/ref/#commands.toggleMark).
|
|
119
|
-
dispatch && dispatch(tr);
|
|
120
|
-
return true;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return false;
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
this._name = name;
|
|
127
|
-
this._label = name ? /*#__PURE__*/React.createElement("span", {
|
|
128
|
-
style: {
|
|
129
|
-
fontFamily: name
|
|
130
|
-
}
|
|
131
|
-
}, name) : null;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
var _default = FontTypeCommand;
|
|
137
|
-
exports.default = _default;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
import { Schema } from 'prosemirror-model';
|
|
4
|
-
import { EditorState } from 'prosemirror-state';
|
|
5
|
-
import { AllSelection, TextSelection } from 'prosemirror-state';
|
|
6
|
-
import { Transform } from 'prosemirror-transform';
|
|
7
|
-
import { EditorView } from 'prosemirror-view';
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
|
|
10
|
-
import { MARK_FONT_TYPE } from './MarkNames';
|
|
11
|
-
import applyMark from './applyMark';
|
|
12
|
-
import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
|
|
13
|
-
|
|
14
|
-
function setFontType(tr: Transform, schema: Schema, name: string): Transform {
|
|
15
|
-
const markType = schema.marks[MARK_FONT_TYPE];
|
|
16
|
-
if (!markType) {
|
|
17
|
-
return tr;
|
|
18
|
-
}
|
|
19
|
-
const { selection } = tr;
|
|
20
|
-
if (
|
|
21
|
-
!(selection instanceof TextSelection || selection instanceof AllSelection)
|
|
22
|
-
) {
|
|
23
|
-
return tr;
|
|
24
|
-
}
|
|
25
|
-
const attrs = name ? { name } : null;
|
|
26
|
-
tr = applyMark(tr, schema, markType, attrs);
|
|
27
|
-
return tr;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
class FontTypeCommand extends UICommand {
|
|
31
|
-
_label = null;
|
|
32
|
-
_name = '';
|
|
33
|
-
_popUp = null;
|
|
34
|
-
|
|
35
|
-
constructor(name: string) {
|
|
36
|
-
super();
|
|
37
|
-
this._name = name;
|
|
38
|
-
this._label = name ? (
|
|
39
|
-
<span style={{ fontFamily: name }}>{name}</span>
|
|
40
|
-
) : null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
renderLabel = (state: EditorState): any => {
|
|
44
|
-
return this._label;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
isEnabled = (state: EditorState): boolean => {
|
|
48
|
-
const { schema, selection, tr } = state;
|
|
49
|
-
if (
|
|
50
|
-
!(selection instanceof TextSelection || selection instanceof AllSelection)
|
|
51
|
-
) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
const markType = schema.marks[MARK_FONT_TYPE];
|
|
55
|
-
if (!markType) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const { from, to } = selection;
|
|
60
|
-
if (to === from + 1) {
|
|
61
|
-
const node = tr.doc.nodeAt(from);
|
|
62
|
-
if (node.isAtom && !node.isText && node.isLeaf) {
|
|
63
|
-
// An atomic node (e.g. Image) is selected.
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return true;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
execute = (
|
|
72
|
-
state: EditorState,
|
|
73
|
-
dispatch: ?(tr: Transform) => void,
|
|
74
|
-
view: ?EditorView
|
|
75
|
-
): boolean => {
|
|
76
|
-
const { schema } = state;
|
|
77
|
-
// commnted selection because selection removes the storedMarks;
|
|
78
|
-
// {selection}
|
|
79
|
-
|
|
80
|
-
// const tr = setFontType(
|
|
81
|
-
// state.tr.setSelection(selection),
|
|
82
|
-
// schema,
|
|
83
|
-
// this._name
|
|
84
|
-
// );
|
|
85
|
-
|
|
86
|
-
const tr = setFontType(state.tr, schema, this._name);
|
|
87
|
-
if (tr.docChanged || tr.storedMarksSet) {
|
|
88
|
-
// If selection is empty, the color is added to `storedMarks`, which
|
|
89
|
-
// works like `toggleMark`
|
|
90
|
-
// (see https://prosemirror.net/docs/ref/#commands.toggleMark).
|
|
91
|
-
dispatch && dispatch(tr);
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
return false;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export default FontTypeCommand;
|
package/dist/HeadingCommand.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _prosemirrorState = require("prosemirror-state");
|
|
9
|
-
|
|
10
|
-
var _prosemirrorTransform = require("prosemirror-transform");
|
|
11
|
-
|
|
12
|
-
var _prosemirrorUtils = require("prosemirror-utils");
|
|
13
|
-
|
|
14
|
-
var _prosemirrorView = require("prosemirror-view");
|
|
15
|
-
|
|
16
|
-
var _NodeNames = require("./NodeNames");
|
|
17
|
-
|
|
18
|
-
var _noop = _interopRequireDefault(require("./noop"));
|
|
19
|
-
|
|
20
|
-
var _toggleHeading = _interopRequireDefault(require("./toggleHeading"));
|
|
21
|
-
|
|
22
|
-
var _licitDocAttrsStep = require("@modusoperandi/licit-doc-attrs-step");
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
class HeadingCommand extends _licitDocAttrsStep.UICommand {
|
|
29
|
-
constructor(level) {
|
|
30
|
-
super();
|
|
31
|
-
|
|
32
|
-
_defineProperty(this, "_level", void 0);
|
|
33
|
-
|
|
34
|
-
_defineProperty(this, "isActive", state => {
|
|
35
|
-
return true;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
_defineProperty(this, "execute", (state, dispatch, view) => {
|
|
39
|
-
const {
|
|
40
|
-
schema,
|
|
41
|
-
selection
|
|
42
|
-
} = state;
|
|
43
|
-
const tr = (0, _toggleHeading.default)(state.tr.setSelection(selection), schema, this._level);
|
|
44
|
-
|
|
45
|
-
if (tr.docChanged) {
|
|
46
|
-
dispatch && dispatch(tr);
|
|
47
|
-
return true;
|
|
48
|
-
} else {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
this._level = level;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
_findHeading(state) {
|
|
57
|
-
const heading = state.schema.nodes[_NodeNames.HEADING];
|
|
58
|
-
const fn = heading ? (0, _prosemirrorUtils.findParentNodeOfType)(heading) : _noop.default;
|
|
59
|
-
return fn(state.selection);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
var _default = HeadingCommand;
|
|
65
|
-
exports.default = _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
import { EditorState } from 'prosemirror-state';
|
|
4
|
-
import { Transform } from 'prosemirror-transform';
|
|
5
|
-
import { findParentNodeOfType } from 'prosemirror-utils';
|
|
6
|
-
import { EditorView } from 'prosemirror-view';
|
|
7
|
-
|
|
8
|
-
import { HEADING } from './NodeNames';
|
|
9
|
-
import noop from './noop';
|
|
10
|
-
import toggleHeading from './toggleHeading';
|
|
11
|
-
import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
|
|
12
|
-
|
|
13
|
-
class HeadingCommand extends UICommand {
|
|
14
|
-
_level: number;
|
|
15
|
-
|
|
16
|
-
constructor(level: number) {
|
|
17
|
-
super();
|
|
18
|
-
this._level = level;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
isActive = (state: EditorState): boolean => {
|
|
22
|
-
return true;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
execute = (
|
|
26
|
-
state: EditorState,
|
|
27
|
-
dispatch: ?(tr: Transform) => void,
|
|
28
|
-
view: ?EditorView
|
|
29
|
-
): boolean => {
|
|
30
|
-
const { schema, selection } = state;
|
|
31
|
-
const tr = toggleHeading(
|
|
32
|
-
state.tr.setSelection(selection),
|
|
33
|
-
schema,
|
|
34
|
-
this._level
|
|
35
|
-
);
|
|
36
|
-
if (tr.docChanged) {
|
|
37
|
-
dispatch && dispatch(tr);
|
|
38
|
-
return true;
|
|
39
|
-
} else {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
_findHeading(state: EditorState): ?Object {
|
|
45
|
-
const heading = state.schema.nodes[HEADING];
|
|
46
|
-
const fn = heading ? findParentNodeOfType(heading) : noop;
|
|
47
|
-
return fn(state.selection);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export default HeadingCommand;
|
package/dist/IndentCommand.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _prosemirrorState = require("prosemirror-state");
|
|
9
|
-
|
|
10
|
-
var _prosemirrorTransform = require("prosemirror-transform");
|
|
11
|
-
|
|
12
|
-
var _prosemirrorView = require("prosemirror-view");
|
|
13
|
-
|
|
14
|
-
var _licitDocAttrsStep = require("@modusoperandi/licit-doc-attrs-step");
|
|
15
|
-
|
|
16
|
-
var _updateIndentLevel = _interopRequireDefault(require("./updateIndentLevel"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
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; }
|
|
21
|
-
|
|
22
|
-
class IndentCommand extends _licitDocAttrsStep.UICommand {
|
|
23
|
-
constructor(delta) {
|
|
24
|
-
super();
|
|
25
|
-
|
|
26
|
-
_defineProperty(this, "_delta", void 0);
|
|
27
|
-
|
|
28
|
-
_defineProperty(this, "isActive", state => {
|
|
29
|
-
return false;
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
_defineProperty(this, "execute", (state, dispatch, view) => {
|
|
33
|
-
const {
|
|
34
|
-
selection,
|
|
35
|
-
schema
|
|
36
|
-
} = state;
|
|
37
|
-
let {
|
|
38
|
-
tr
|
|
39
|
-
} = state;
|
|
40
|
-
tr = tr.setSelection(selection);
|
|
41
|
-
const trx = (0, _updateIndentLevel.default)(state, tr, schema, this._delta, view);
|
|
42
|
-
|
|
43
|
-
if (trx.docChanged) {
|
|
44
|
-
dispatch && dispatch(trx.tr);
|
|
45
|
-
return true;
|
|
46
|
-
} else {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
this._delta = delta;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
var _default = IndentCommand;
|
|
57
|
-
exports.default = _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
import { EditorState } from 'prosemirror-state';
|
|
4
|
-
import { Transform } from 'prosemirror-transform';
|
|
5
|
-
import { EditorView } from 'prosemirror-view';
|
|
6
|
-
|
|
7
|
-
import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
|
|
8
|
-
import updateIndentLevel from './updateIndentLevel';
|
|
9
|
-
|
|
10
|
-
class IndentCommand extends UICommand {
|
|
11
|
-
_delta: number;
|
|
12
|
-
|
|
13
|
-
constructor(delta: number) {
|
|
14
|
-
super();
|
|
15
|
-
this._delta = delta;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
isActive = (state: EditorState): boolean => {
|
|
19
|
-
return false;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
execute = (
|
|
23
|
-
state: EditorState,
|
|
24
|
-
dispatch: ?(tr: Transform) => void,
|
|
25
|
-
view: ?EditorView
|
|
26
|
-
): boolean => {
|
|
27
|
-
const { selection, schema } = state;
|
|
28
|
-
let { tr } = state;
|
|
29
|
-
tr = tr.setSelection(selection);
|
|
30
|
-
const trx = updateIndentLevel(state, tr, schema, this._delta, view);
|
|
31
|
-
if (trx.docChanged) {
|
|
32
|
-
dispatch && dispatch(trx.tr);
|
|
33
|
-
return true;
|
|
34
|
-
} else {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export default IndentCommand;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _prosemirrorCommands = require("prosemirror-commands");
|
|
9
|
-
|
|
10
|
-
var _prosemirrorState = require("prosemirror-state");
|
|
11
|
-
|
|
12
|
-
var _prosemirrorTransform = require("prosemirror-transform");
|
|
13
|
-
|
|
14
|
-
var _prosemirrorView = require("prosemirror-view");
|
|
15
|
-
|
|
16
|
-
var _findNodesWithSameMark = _interopRequireDefault(require("./findNodesWithSameMark"));
|
|
17
|
-
|
|
18
|
-
var _licitDocAttrsStep = require("@modusoperandi/licit-doc-attrs-step");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
-
|
|
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
|
-
|
|
24
|
-
class MarkToggleCommand extends _licitDocAttrsStep.UICommand {
|
|
25
|
-
constructor(markName) {
|
|
26
|
-
super();
|
|
27
|
-
|
|
28
|
-
_defineProperty(this, "_markName", void 0);
|
|
29
|
-
|
|
30
|
-
_defineProperty(this, "isActive", state => {
|
|
31
|
-
const {
|
|
32
|
-
schema,
|
|
33
|
-
doc,
|
|
34
|
-
selection
|
|
35
|
-
} = state;
|
|
36
|
-
const {
|
|
37
|
-
from,
|
|
38
|
-
to
|
|
39
|
-
} = selection;
|
|
40
|
-
const markType = schema.marks[this._markName];
|
|
41
|
-
|
|
42
|
-
if (markType && from < to) {
|
|
43
|
-
return !!(0, _findNodesWithSameMark.default)(doc, from, to - 1, markType);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return false;
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
_defineProperty(this, "execute", (state, dispatch, view) => {
|
|
50
|
-
const {
|
|
51
|
-
schema,
|
|
52
|
-
selection,
|
|
53
|
-
tr
|
|
54
|
-
} = state;
|
|
55
|
-
const markType = schema.marks[this._markName];
|
|
56
|
-
|
|
57
|
-
if (!markType) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (selection.empty && !(selection instanceof _prosemirrorState.TextSelection)) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const {
|
|
66
|
-
from,
|
|
67
|
-
to
|
|
68
|
-
} = selection;
|
|
69
|
-
|
|
70
|
-
if (tr && to === from + 1) {
|
|
71
|
-
const node = tr.doc.nodeAt(from);
|
|
72
|
-
|
|
73
|
-
if (node.isAtom && !node.isText && node.isLeaf) {
|
|
74
|
-
// An atomic node (e.g. Image) is selected.
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
} // TODO: Replace `toggleMark` with transform that does not change scroll
|
|
78
|
-
// position.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return (0, _prosemirrorCommands.toggleMark)(markType)(state, dispatch, view);
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
this._markName = markName;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
var _default = MarkToggleCommand;
|
|
90
|
-
exports.default = _default;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
|
|
3
|
-
import { toggleMark } from 'prosemirror-commands';
|
|
4
|
-
import { EditorState, TextSelection } from 'prosemirror-state';
|
|
5
|
-
import { Transform } from 'prosemirror-transform';
|
|
6
|
-
import { EditorView } from 'prosemirror-view';
|
|
7
|
-
import findNodesWithSameMark from './findNodesWithSameMark';
|
|
8
|
-
import { UICommand } from '@modusoperandi/licit-doc-attrs-step';
|
|
9
|
-
|
|
10
|
-
class MarkToggleCommand extends UICommand {
|
|
11
|
-
_markName: string;
|
|
12
|
-
|
|
13
|
-
constructor(markName: string) {
|
|
14
|
-
super();
|
|
15
|
-
this._markName = markName;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
isActive = (state: EditorState): boolean => {
|
|
19
|
-
const { schema, doc, selection } = state;
|
|
20
|
-
const { from, to } = selection;
|
|
21
|
-
const markType = schema.marks[this._markName];
|
|
22
|
-
if (markType && from < to) {
|
|
23
|
-
return !!findNodesWithSameMark(doc, from, to - 1, markType);
|
|
24
|
-
}
|
|
25
|
-
return false;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
execute = (
|
|
29
|
-
state: EditorState,
|
|
30
|
-
dispatch: ?(tr: Transform) => void,
|
|
31
|
-
view: ?EditorView
|
|
32
|
-
): boolean => {
|
|
33
|
-
const { schema, selection, tr } = state;
|
|
34
|
-
const markType = schema.marks[this._markName];
|
|
35
|
-
if (!markType) {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (selection.empty && !(selection instanceof TextSelection)) {
|
|
40
|
-
return false;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const { from, to } = selection;
|
|
44
|
-
if (tr && to === from + 1) {
|
|
45
|
-
const node = tr.doc.nodeAt(from);
|
|
46
|
-
if (node.isAtom && !node.isText && node.isLeaf) {
|
|
47
|
-
// An atomic node (e.g. Image) is selected.
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// TODO: Replace `toggleMark` with transform that does not change scroll
|
|
53
|
-
// position.
|
|
54
|
-
return toggleMark(markType)(state, dispatch, view);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export default MarkToggleCommand;
|