@manuscripts/body-editor 1.5.4 → 1.5.5-LEAN-2852-3
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/cjs/commands.js +1 -1
- package/dist/cjs/components/outline/DraggableTree.js +29 -28
- package/dist/cjs/components/outline/ManuscriptOutline.js +2 -13
- package/dist/cjs/components/outline/OutlineManuscript.js +2 -9
- package/dist/cjs/configs/editor-views.js +4 -0
- package/dist/cjs/node-type-icons.js +1 -4
- package/dist/cjs/views/contributors_section.js +36 -0
- package/dist/cjs/views/title.js +37 -0
- package/dist/cjs/views/title_editable.js +20 -0
- package/dist/es/commands.js +1 -1
- package/dist/es/components/outline/DraggableTree.js +30 -29
- package/dist/es/components/outline/ManuscriptOutline.js +2 -13
- package/dist/es/components/outline/OutlineManuscript.js +4 -11
- package/dist/es/configs/editor-views.js +4 -0
- package/dist/es/node-type-icons.js +1 -4
- package/dist/es/views/contributors_section.js +29 -0
- package/dist/es/views/title.js +33 -0
- package/dist/es/views/title_editable.js +18 -0
- package/dist/types/components/outline/DraggableTree.d.ts +0 -1
- package/dist/types/components/outline/OutlineManuscript.d.ts +2 -0
- package/dist/types/configs/editor-views.d.ts +2 -0
- package/dist/types/views/contributors_section.d.ts +17 -0
- package/dist/types/views/title.d.ts +24 -0
- package/dist/types/views/title_editable.d.ts +18 -0
- package/package.json +5 -5
- package/styles/AdvancedEditor.css +24 -0
- package/styles/Editor.css +8 -0
package/dist/cjs/commands.js
CHANGED
|
@@ -399,7 +399,7 @@ const insertFootnotesSection = (state, dispatch) => {
|
|
|
399
399
|
};
|
|
400
400
|
exports.insertFootnotesSection = insertFootnotesSection;
|
|
401
401
|
const insertBibliographySection = (state, dispatch) => {
|
|
402
|
-
if ((0, utils_1.
|
|
402
|
+
if ((0, utils_1.getMatchingDescendant)(state.doc, (node) => node.type === state.schema.nodes.bibliography_section)) {
|
|
403
403
|
return false;
|
|
404
404
|
}
|
|
405
405
|
const section = state.schema.nodes.bibliography_section.createAndFill({}, [
|
|
@@ -34,21 +34,23 @@ const track_changes_utils_1 = require("../../lib/track-changes-utils");
|
|
|
34
34
|
const node_type_icons_1 = require("../../node-type-icons");
|
|
35
35
|
const section_title_1 = require("../../views/section_title");
|
|
36
36
|
const Outline_1 = require("./Outline");
|
|
37
|
+
const excludedTypes = [
|
|
38
|
+
transform_1.schema.nodes.table,
|
|
39
|
+
transform_1.schema.nodes.figure,
|
|
40
|
+
transform_1.schema.nodes.footnotes_element,
|
|
41
|
+
transform_1.schema.nodes.bibliography_element,
|
|
42
|
+
transform_1.schema.nodes.keywords_section,
|
|
43
|
+
transform_1.schema.nodes.title,
|
|
44
|
+
];
|
|
45
|
+
const childrenExcludedTypes = [
|
|
46
|
+
transform_1.schema.nodes.pullquote_element,
|
|
47
|
+
transform_1.schema.nodes.blockquote_element,
|
|
48
|
+
];
|
|
37
49
|
const isExcluded = (nodeType) => {
|
|
38
|
-
const { nodes } = nodeType.schema;
|
|
39
|
-
const excludedTypes = [
|
|
40
|
-
nodes.table,
|
|
41
|
-
nodes.figure,
|
|
42
|
-
nodes.footnotes_element,
|
|
43
|
-
nodes.bibliography_element,
|
|
44
|
-
nodes.keywords_section,
|
|
45
|
-
];
|
|
46
50
|
return excludedTypes.includes(nodeType);
|
|
47
51
|
};
|
|
48
52
|
const isChildrenExcluded = (nodeType) => {
|
|
49
|
-
|
|
50
|
-
const excludedTypes = [nodes.pullquote_element, nodes.blockquote_element];
|
|
51
|
-
return excludedTypes.includes(nodeType);
|
|
53
|
+
return childrenExcludedTypes.includes(nodeType);
|
|
52
54
|
};
|
|
53
55
|
const buildTree = ({ node, pos, index, selected, parent, }) => {
|
|
54
56
|
const items = [];
|
|
@@ -134,23 +136,22 @@ class Tree extends React.Component {
|
|
|
134
136
|
if (isRejectedItem || node.attrs.id === 'META_SECTION') {
|
|
135
137
|
return null;
|
|
136
138
|
}
|
|
137
|
-
return connectDropTarget(React.createElement("div", null,
|
|
138
|
-
React.createElement(Outline_1.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
React.createElement(Outline_1.
|
|
142
|
-
|
|
143
|
-
React.createElement(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
React.createElement(Outline_1.OutlineDropPreview, { depth: depth, style: this.bottomPreviewStyles(mightDrop, dragPosition) }))));
|
|
139
|
+
return connectDropTarget(React.createElement("div", null, node.type.name !== 'titles' && (React.createElement(Outline_1.Outline, { style: this.outlineStyles(isDragging) },
|
|
140
|
+
React.createElement(Outline_1.OutlineDropPreview, { depth: depth, style: this.topPreviewStyles(mightDrop, dragPosition) }),
|
|
141
|
+
!(0, section_title_1.isSpecialSection)(node) && (React.createElement(React.Fragment, null, connectDragSource(React.createElement("div", null,
|
|
142
|
+
React.createElement(Outline_1.OutlineItem, { isSelected: isSelected, depth: depth, onContextMenu: this.handleContextMenu },
|
|
143
|
+
items.length ? (React.createElement(Outline_1.OutlineItemArrow, { onClick: this.toggle }, open ? (React.createElement(Outline_1.StyledTriangleExpanded, null)) : (React.createElement(Outline_1.StyledTriangleCollapsed, null)))) : (React.createElement(Outline_1.OutlineItemNoArrow, null)),
|
|
144
|
+
React.createElement(Outline_1.OutlineItemLink, { to: `#${node.attrs.id || ''}` },
|
|
145
|
+
connectDragPreview(React.createElement("span", { style: {
|
|
146
|
+
display: 'inline-flex',
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
} },
|
|
149
|
+
React.createElement(Outline_1.OutlineItemIcon, null, (0, node_type_icons_1.nodeTypeIcon)(node.type)))),
|
|
150
|
+
React.createElement(Outline_1.OutlineItemLinkText, { className: `outline-text-${node.type.name} ${isDeletedItem && 'deleted'}` }, this.itemText(node)))))))),
|
|
151
|
+
items.length ? (React.createElement("div", { style: {
|
|
152
|
+
display: open || (0, section_title_1.isSpecialSection)(node) ? '' : 'none',
|
|
153
|
+
} }, items.map((subtree) => (React.createElement(DraggableTree, Object.assign({}, this.props, { key: subtree.node.attrs.id, tree: subtree, view: view, depth: (0, section_title_1.isSpecialSection)(node) ? depth : depth + 1 })))))) : null,
|
|
154
|
+
React.createElement(Outline_1.OutlineDropPreview, { depth: depth, style: this.bottomPreviewStyles(mightDrop, dragPosition) })))));
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
const dragSource = (0, react_dnd_1.DragSource)('outline', {
|
|
@@ -39,7 +39,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.ManuscriptOutline = void 0;
|
|
42
|
-
const title_editor_1 = require("@manuscripts/title-editor");
|
|
43
42
|
const react_1 = __importStar(require("react"));
|
|
44
43
|
const use_debounce_1 = require("../hooks/use-debounce");
|
|
45
44
|
const DraggableTree_1 = __importStar(require("./DraggableTree"));
|
|
@@ -49,24 +48,14 @@ const ManuscriptOutline = (props) => {
|
|
|
49
48
|
const debouncedProps = (0, use_debounce_1.useDebounce)(props, 500);
|
|
50
49
|
(0, react_1.useEffect)(() => {
|
|
51
50
|
var _a;
|
|
52
|
-
const { doc, view,
|
|
51
|
+
const { doc, view, selected } = debouncedProps;
|
|
53
52
|
if (doc) {
|
|
54
|
-
const
|
|
53
|
+
const tree = (0, DraggableTree_1.buildTree)({
|
|
55
54
|
node: doc,
|
|
56
55
|
pos: 0,
|
|
57
56
|
index: 0,
|
|
58
57
|
selected,
|
|
59
58
|
});
|
|
60
|
-
const node = (0, title_editor_1.parse)(manuscript.title || '');
|
|
61
|
-
const tree = {
|
|
62
|
-
node,
|
|
63
|
-
requirementsNode: doc,
|
|
64
|
-
pos: 0,
|
|
65
|
-
endPos: 0,
|
|
66
|
-
index: 0,
|
|
67
|
-
isSelected: !selected,
|
|
68
|
-
items,
|
|
69
|
-
};
|
|
70
59
|
setValues({ tree, view, editArticle: !!((_a = props.capabilities) === null || _a === void 0 ? void 0 : _a.editArticle) });
|
|
71
60
|
}
|
|
72
61
|
else {
|
|
@@ -20,22 +20,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.OutlineManuscript = void 0;
|
|
22
22
|
const OutlineIconManuscript_1 = __importDefault(require("@manuscripts/assets/react/OutlineIconManuscript"));
|
|
23
|
-
const title_editor_1 = require("@manuscripts/title-editor");
|
|
24
23
|
const transform_1 = require("@manuscripts/transform");
|
|
25
24
|
const react_1 = __importDefault(require("react"));
|
|
26
25
|
const Outline_1 = require("./Outline");
|
|
27
|
-
const
|
|
28
|
-
const node = (0, title_editor_1.parse)(value, {
|
|
29
|
-
topNode: title_editor_1.schema.nodes.title.create(),
|
|
30
|
-
});
|
|
31
|
-
return node.textContent;
|
|
32
|
-
};
|
|
33
|
-
const OutlineManuscript = ({ project, manuscript, }) => (react_1.default.createElement(Outline_1.Outline, null,
|
|
26
|
+
const OutlineManuscript = ({ project, manuscript, doc, }) => (react_1.default.createElement(Outline_1.Outline, null,
|
|
34
27
|
react_1.default.createElement(Outline_1.OutlineItem, { isSelected: false, depth: 0 },
|
|
35
28
|
react_1.default.createElement(Outline_1.OutlineItemLink, { to: `/projects/${project._id}/manuscripts/${manuscript._id}` },
|
|
36
29
|
react_1.default.createElement(Outline_1.OutlineItemArrow, null,
|
|
37
30
|
react_1.default.createElement(Outline_1.StyledTriangleCollapsed, null)),
|
|
38
31
|
react_1.default.createElement(Outline_1.OutlineItemIcon, null,
|
|
39
32
|
react_1.default.createElement(OutlineIconManuscript_1.default, null)),
|
|
40
|
-
react_1.default.createElement(Outline_1.OutlineItemLinkText, { className: 'outline-text-title' },
|
|
33
|
+
react_1.default.createElement(Outline_1.OutlineItemLinkText, { className: 'outline-text-title' }, (0, transform_1.nodeTitle)(doc))))));
|
|
41
34
|
exports.OutlineManuscript = OutlineManuscript;
|
|
@@ -23,6 +23,7 @@ const bibliography_item_editable_1 = __importDefault(require("../views/bibliogra
|
|
|
23
23
|
const blockquote_element_editable_1 = __importDefault(require("../views/blockquote_element_editable"));
|
|
24
24
|
const bullet_list_editable_1 = __importDefault(require("../views/bullet_list_editable"));
|
|
25
25
|
const citation_editable_1 = __importDefault(require("../views/citation_editable"));
|
|
26
|
+
const contributors_section_1 = __importDefault(require("../views/contributors_section"));
|
|
26
27
|
const cross_reference_editable_1 = __importDefault(require("../views/cross_reference_editable"));
|
|
27
28
|
const equation_editable_1 = __importDefault(require("../views/equation_editable"));
|
|
28
29
|
const equation_element_editable_1 = __importDefault(require("../views/equation_element_editable"));
|
|
@@ -46,15 +47,18 @@ const pullquote_element_editable_1 = __importDefault(require("../views/pullquote
|
|
|
46
47
|
const section_label_1 = __importDefault(require("../views/section_label"));
|
|
47
48
|
const section_title_editable_1 = __importDefault(require("../views/section_title_editable"));
|
|
48
49
|
const table_element_editable_1 = __importDefault(require("../views/table_element_editable"));
|
|
50
|
+
const title_editable_1 = __importDefault(require("../views/title_editable"));
|
|
49
51
|
const toc_element_editable_1 = __importDefault(require("../views/toc_element_editable"));
|
|
50
52
|
exports.default = (props, dispatch) => {
|
|
51
53
|
return {
|
|
54
|
+
title: (0, title_editable_1.default)(props, dispatch),
|
|
52
55
|
bibliography_item: (0, bibliography_item_editable_1.default)(props),
|
|
53
56
|
bibliography_element: (0, bibliography_element_editable_1.default)(props),
|
|
54
57
|
blockquote_element: (0, blockquote_element_editable_1.default)(props),
|
|
55
58
|
bullet_list: (0, bullet_list_editable_1.default)(props),
|
|
56
59
|
citation: (0, citation_editable_1.default)(props),
|
|
57
60
|
cross_reference: (0, cross_reference_editable_1.default)(props),
|
|
61
|
+
contributors_section: (0, contributors_section_1.default)(props, dispatch),
|
|
58
62
|
equation: (0, equation_editable_1.default)(props),
|
|
59
63
|
equation_element: (0, equation_element_editable_1.default)(props),
|
|
60
64
|
figure: (0, figure_editable_1.default)(props, dispatch),
|
|
@@ -29,11 +29,11 @@ const OutlineIconSection_1 = __importDefault(require("@manuscripts/assets/react/
|
|
|
29
29
|
const OutlineIconTable_1 = __importDefault(require("@manuscripts/assets/react/OutlineIconTable"));
|
|
30
30
|
const OutlineIconUnorderedList_1 = __importDefault(require("@manuscripts/assets/react/OutlineIconUnorderedList"));
|
|
31
31
|
const style_guide_1 = require("@manuscripts/style-guide");
|
|
32
|
-
const title_editor_1 = require("@manuscripts/title-editor");
|
|
33
32
|
const transform_1 = require("@manuscripts/transform");
|
|
34
33
|
const react_1 = __importDefault(require("react"));
|
|
35
34
|
const { nodes } = transform_1.schema;
|
|
36
35
|
const icons = new Map([
|
|
36
|
+
[nodes.manuscript, OutlineIconManuscript_1.default],
|
|
37
37
|
[nodes.bibliography_section, OutlineIconSection_1.default],
|
|
38
38
|
[nodes.blockquote_element, style_guide_1.BlockQuoteIcon],
|
|
39
39
|
[nodes.bullet_list, OutlineIconUnorderedList_1.default],
|
|
@@ -52,9 +52,6 @@ const icons = new Map([
|
|
|
52
52
|
[nodes.footnotes_section, OutlineIconSection_1.default],
|
|
53
53
|
]);
|
|
54
54
|
const nodeTypeIcon = (nodeType) => {
|
|
55
|
-
if (nodeType === title_editor_1.schema.nodes.title) {
|
|
56
|
-
return react_1.default.createElement(OutlineIconManuscript_1.default, null);
|
|
57
|
-
}
|
|
58
55
|
const Icon = icons.get(nodeType);
|
|
59
56
|
return Icon ? react_1.default.createElement(Icon, null) : null;
|
|
60
57
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ContributorsSectionView = void 0;
|
|
7
|
+
const base_node_view_1 = require("./base_node_view");
|
|
8
|
+
const creators_1 = require("./creators");
|
|
9
|
+
const ReactSubView_1 = __importDefault(require("./ReactSubView"));
|
|
10
|
+
class ContributorsSectionView extends base_node_view_1.BaseNodeView {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.initialise = () => {
|
|
14
|
+
this.createDOM();
|
|
15
|
+
};
|
|
16
|
+
this.createDOM = () => {
|
|
17
|
+
this.dom = document.createElement('div');
|
|
18
|
+
this.dom.classList.add('contributors');
|
|
19
|
+
const can = this.props.getCapabilities();
|
|
20
|
+
const { components: { MetadataContainer }, subscribeStore, } = this.props;
|
|
21
|
+
this.metadata = (0, ReactSubView_1.default)(this.props, MetadataContainer, {
|
|
22
|
+
allowInvitingAuthors: false,
|
|
23
|
+
showAuthorEditButton: true,
|
|
24
|
+
disableEditButton: !can.editMetadata,
|
|
25
|
+
subscribe: subscribeStore,
|
|
26
|
+
}, this.node, this.getPos, this.view, 'metadata-container');
|
|
27
|
+
if (this.metadata) {
|
|
28
|
+
this.dom.appendChild(this.metadata);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
this.ignoreMutation = () => true;
|
|
32
|
+
this.stopEvent = () => true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.ContributorsSectionView = ContributorsSectionView;
|
|
36
|
+
exports.default = (0, creators_1.createNodeView)(ContributorsSectionView);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* © 2019 Atypon Systems LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TitleView = void 0;
|
|
19
|
+
const base_node_view_1 = require("./base_node_view");
|
|
20
|
+
const creators_1 = require("./creators");
|
|
21
|
+
class TitleView extends base_node_view_1.BaseNodeView {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.initialise = () => {
|
|
25
|
+
this.createDOM();
|
|
26
|
+
};
|
|
27
|
+
this.createDOM = () => {
|
|
28
|
+
this.dom = document.createElement('div');
|
|
29
|
+
this.dom.classList.add('manuscript-title');
|
|
30
|
+
this.contentDOM = document.createElement('div');
|
|
31
|
+
this.contentDOM.classList.add('article-titles');
|
|
32
|
+
this.dom.appendChild(this.contentDOM);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.TitleView = TitleView;
|
|
37
|
+
exports.default = (0, creators_1.createNodeView)(TitleView);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* © 2019 Atypon Systems LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const creators_1 = require("./creators");
|
|
19
|
+
const title_1 = require("./title");
|
|
20
|
+
exports.default = (0, creators_1.createEditableNodeView)(title_1.TitleView);
|
package/dist/es/commands.js
CHANGED
|
@@ -354,7 +354,7 @@ export const insertFootnotesSection = (state, dispatch) => {
|
|
|
354
354
|
return true;
|
|
355
355
|
};
|
|
356
356
|
export const insertBibliographySection = (state, dispatch) => {
|
|
357
|
-
if (
|
|
357
|
+
if (getMatchingDescendant(state.doc, (node) => node.type === state.schema.nodes.bibliography_section)) {
|
|
358
358
|
return false;
|
|
359
359
|
}
|
|
360
360
|
const section = state.schema.nodes.bibliography_section.createAndFill({}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isElementNodeType, nodeTitle, nodeTitlePlaceholder, } from '@manuscripts/transform';
|
|
1
|
+
import { isElementNodeType, nodeTitle, nodeTitlePlaceholder, schema, } from '@manuscripts/transform';
|
|
2
2
|
import { Fragment } from 'prosemirror-model';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { DragSource, DropTarget, } from 'react-dnd';
|
|
@@ -8,21 +8,23 @@ import { isDeleted, isRejectedInsert } from '../../lib/track-changes-utils';
|
|
|
8
8
|
import { nodeTypeIcon } from '../../node-type-icons';
|
|
9
9
|
import { isSpecialSection } from '../../views/section_title';
|
|
10
10
|
import { Outline, OutlineDropPreview, OutlineItem, OutlineItemArrow, OutlineItemIcon, OutlineItemLink, OutlineItemLinkText, OutlineItemNoArrow, OutlineItemPlaceholder, StyledTriangleCollapsed, StyledTriangleExpanded, } from './Outline';
|
|
11
|
+
const excludedTypes = [
|
|
12
|
+
schema.nodes.table,
|
|
13
|
+
schema.nodes.figure,
|
|
14
|
+
schema.nodes.footnotes_element,
|
|
15
|
+
schema.nodes.bibliography_element,
|
|
16
|
+
schema.nodes.keywords_section,
|
|
17
|
+
schema.nodes.title,
|
|
18
|
+
];
|
|
19
|
+
const childrenExcludedTypes = [
|
|
20
|
+
schema.nodes.pullquote_element,
|
|
21
|
+
schema.nodes.blockquote_element,
|
|
22
|
+
];
|
|
11
23
|
const isExcluded = (nodeType) => {
|
|
12
|
-
const { nodes } = nodeType.schema;
|
|
13
|
-
const excludedTypes = [
|
|
14
|
-
nodes.table,
|
|
15
|
-
nodes.figure,
|
|
16
|
-
nodes.footnotes_element,
|
|
17
|
-
nodes.bibliography_element,
|
|
18
|
-
nodes.keywords_section,
|
|
19
|
-
];
|
|
20
24
|
return excludedTypes.includes(nodeType);
|
|
21
25
|
};
|
|
22
26
|
const isChildrenExcluded = (nodeType) => {
|
|
23
|
-
|
|
24
|
-
const excludedTypes = [nodes.pullquote_element, nodes.blockquote_element];
|
|
25
|
-
return excludedTypes.includes(nodeType);
|
|
27
|
+
return childrenExcludedTypes.includes(nodeType);
|
|
26
28
|
};
|
|
27
29
|
export const buildTree = ({ node, pos, index, selected, parent, }) => {
|
|
28
30
|
const items = [];
|
|
@@ -107,23 +109,22 @@ class Tree extends React.Component {
|
|
|
107
109
|
if (isRejectedItem || node.attrs.id === 'META_SECTION') {
|
|
108
110
|
return null;
|
|
109
111
|
}
|
|
110
|
-
return connectDropTarget(React.createElement("div", null,
|
|
111
|
-
React.createElement(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
React.createElement(
|
|
115
|
-
|
|
116
|
-
React.createElement(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
React.createElement(OutlineDropPreview, { depth: depth, style: this.bottomPreviewStyles(mightDrop, dragPosition) }))));
|
|
112
|
+
return connectDropTarget(React.createElement("div", null, node.type.name !== 'titles' && (React.createElement(Outline, { style: this.outlineStyles(isDragging) },
|
|
113
|
+
React.createElement(OutlineDropPreview, { depth: depth, style: this.topPreviewStyles(mightDrop, dragPosition) }),
|
|
114
|
+
!isSpecialSection(node) && (React.createElement(React.Fragment, null, connectDragSource(React.createElement("div", null,
|
|
115
|
+
React.createElement(OutlineItem, { isSelected: isSelected, depth: depth, onContextMenu: this.handleContextMenu },
|
|
116
|
+
items.length ? (React.createElement(OutlineItemArrow, { onClick: this.toggle }, open ? (React.createElement(StyledTriangleExpanded, null)) : (React.createElement(StyledTriangleCollapsed, null)))) : (React.createElement(OutlineItemNoArrow, null)),
|
|
117
|
+
React.createElement(OutlineItemLink, { to: `#${node.attrs.id || ''}` },
|
|
118
|
+
connectDragPreview(React.createElement("span", { style: {
|
|
119
|
+
display: 'inline-flex',
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
} },
|
|
122
|
+
React.createElement(OutlineItemIcon, null, nodeTypeIcon(node.type)))),
|
|
123
|
+
React.createElement(OutlineItemLinkText, { className: `outline-text-${node.type.name} ${isDeletedItem && 'deleted'}` }, this.itemText(node)))))))),
|
|
124
|
+
items.length ? (React.createElement("div", { style: {
|
|
125
|
+
display: open || isSpecialSection(node) ? '' : 'none',
|
|
126
|
+
} }, items.map((subtree) => (React.createElement(DraggableTree, Object.assign({}, this.props, { key: subtree.node.attrs.id, tree: subtree, view: view, depth: isSpecialSection(node) ? depth : depth + 1 })))))) : null,
|
|
127
|
+
React.createElement(OutlineDropPreview, { depth: depth, style: this.bottomPreviewStyles(mightDrop, dragPosition) })))));
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
const dragSource = DragSource('outline', {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { parse } from '@manuscripts/title-editor';
|
|
17
16
|
import React, { useEffect, useState } from 'react';
|
|
18
17
|
import { useDebounce } from '../hooks/use-debounce';
|
|
19
18
|
import DraggableTree, { buildTree } from './DraggableTree';
|
|
@@ -23,24 +22,14 @@ export const ManuscriptOutline = (props) => {
|
|
|
23
22
|
const debouncedProps = useDebounce(props, 500);
|
|
24
23
|
useEffect(() => {
|
|
25
24
|
var _a;
|
|
26
|
-
const { doc, view,
|
|
25
|
+
const { doc, view, selected } = debouncedProps;
|
|
27
26
|
if (doc) {
|
|
28
|
-
const
|
|
27
|
+
const tree = buildTree({
|
|
29
28
|
node: doc,
|
|
30
29
|
pos: 0,
|
|
31
30
|
index: 0,
|
|
32
31
|
selected,
|
|
33
32
|
});
|
|
34
|
-
const node = parse(manuscript.title || '');
|
|
35
|
-
const tree = {
|
|
36
|
-
node,
|
|
37
|
-
requirementsNode: doc,
|
|
38
|
-
pos: 0,
|
|
39
|
-
endPos: 0,
|
|
40
|
-
index: 0,
|
|
41
|
-
isSelected: !selected,
|
|
42
|
-
items,
|
|
43
|
-
};
|
|
44
33
|
setValues({ tree, view, editArticle: !!((_a = props.capabilities) === null || _a === void 0 ? void 0 : _a.editArticle) });
|
|
45
34
|
}
|
|
46
35
|
else {
|
|
@@ -14,21 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import OutlineIconManuscript from '@manuscripts/assets/react/OutlineIconManuscript';
|
|
17
|
-
import {
|
|
18
|
-
import { nodeTitlePlaceholder } from '@manuscripts/transform';
|
|
17
|
+
import { nodeTitle } from '@manuscripts/transform';
|
|
19
18
|
import React from 'react';
|
|
20
|
-
import { Outline, OutlineItem, OutlineItemArrow, OutlineItemIcon, OutlineItemLink, OutlineItemLinkText,
|
|
21
|
-
const
|
|
22
|
-
const node = parse(value, {
|
|
23
|
-
topNode: schema.nodes.title.create(),
|
|
24
|
-
});
|
|
25
|
-
return node.textContent;
|
|
26
|
-
};
|
|
27
|
-
export const OutlineManuscript = ({ project, manuscript, }) => (React.createElement(Outline, null,
|
|
19
|
+
import { Outline, OutlineItem, OutlineItemArrow, OutlineItemIcon, OutlineItemLink, OutlineItemLinkText, StyledTriangleCollapsed, } from './Outline';
|
|
20
|
+
export const OutlineManuscript = ({ project, manuscript, doc, }) => (React.createElement(Outline, null,
|
|
28
21
|
React.createElement(OutlineItem, { isSelected: false, depth: 0 },
|
|
29
22
|
React.createElement(OutlineItemLink, { to: `/projects/${project._id}/manuscripts/${manuscript._id}` },
|
|
30
23
|
React.createElement(OutlineItemArrow, null,
|
|
31
24
|
React.createElement(StyledTriangleCollapsed, null)),
|
|
32
25
|
React.createElement(OutlineItemIcon, null,
|
|
33
26
|
React.createElement(OutlineIconManuscript, null)),
|
|
34
|
-
React.createElement(OutlineItemLinkText, { className: 'outline-text-title' },
|
|
27
|
+
React.createElement(OutlineItemLinkText, { className: 'outline-text-title' }, nodeTitle(doc))))));
|
|
@@ -18,6 +18,7 @@ import bibliographyItem from '../views/bibliography_item_editable';
|
|
|
18
18
|
import blockquoteElement from '../views/blockquote_element_editable';
|
|
19
19
|
import bulletList from '../views/bullet_list_editable';
|
|
20
20
|
import citation from '../views/citation_editable';
|
|
21
|
+
import contributorsSection from '../views/contributors_section';
|
|
21
22
|
import crossReference from '../views/cross_reference_editable';
|
|
22
23
|
import equation from '../views/equation_editable';
|
|
23
24
|
import equationElement from '../views/equation_element_editable';
|
|
@@ -41,15 +42,18 @@ import pullquoteElement from '../views/pullquote_element_editable';
|
|
|
41
42
|
import sectionLabel from '../views/section_label';
|
|
42
43
|
import sectionTitle from '../views/section_title_editable';
|
|
43
44
|
import tableElement from '../views/table_element_editable';
|
|
45
|
+
import title from '../views/title_editable';
|
|
44
46
|
import tocElement from '../views/toc_element_editable';
|
|
45
47
|
export default (props, dispatch) => {
|
|
46
48
|
return {
|
|
49
|
+
title: title(props, dispatch),
|
|
47
50
|
bibliography_item: bibliographyItem(props),
|
|
48
51
|
bibliography_element: bibliographyElement(props),
|
|
49
52
|
blockquote_element: blockquoteElement(props),
|
|
50
53
|
bullet_list: bulletList(props),
|
|
51
54
|
citation: citation(props),
|
|
52
55
|
cross_reference: crossReference(props),
|
|
56
|
+
contributors_section: contributorsSection(props, dispatch),
|
|
53
57
|
equation: equation(props),
|
|
54
58
|
equation_element: equationElement(props),
|
|
55
59
|
figure: figure(props, dispatch),
|
|
@@ -23,11 +23,11 @@ import SectionIcon from '@manuscripts/assets/react/OutlineIconSection';
|
|
|
23
23
|
import TableIcon from '@manuscripts/assets/react/OutlineIconTable';
|
|
24
24
|
import BulletListIcon from '@manuscripts/assets/react/OutlineIconUnorderedList';
|
|
25
25
|
import { BlockQuoteIcon, PullQuoteIcon } from '@manuscripts/style-guide';
|
|
26
|
-
import { schema as titleSchema } from '@manuscripts/title-editor';
|
|
27
26
|
import { schema } from '@manuscripts/transform';
|
|
28
27
|
import React from 'react';
|
|
29
28
|
const { nodes } = schema;
|
|
30
29
|
const icons = new Map([
|
|
30
|
+
[nodes.manuscript, ManuscriptIcon],
|
|
31
31
|
[nodes.bibliography_section, SectionIcon],
|
|
32
32
|
[nodes.blockquote_element, BlockQuoteIcon],
|
|
33
33
|
[nodes.bullet_list, BulletListIcon],
|
|
@@ -46,9 +46,6 @@ const icons = new Map([
|
|
|
46
46
|
[nodes.footnotes_section, SectionIcon],
|
|
47
47
|
]);
|
|
48
48
|
export const nodeTypeIcon = (nodeType) => {
|
|
49
|
-
if (nodeType === titleSchema.nodes.title) {
|
|
50
|
-
return React.createElement(ManuscriptIcon, null);
|
|
51
|
-
}
|
|
52
49
|
const Icon = icons.get(nodeType);
|
|
53
50
|
return Icon ? React.createElement(Icon, null) : null;
|
|
54
51
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseNodeView } from './base_node_view';
|
|
2
|
+
import { createNodeView } from './creators';
|
|
3
|
+
import ReactSubView from './ReactSubView';
|
|
4
|
+
export class ContributorsSectionView extends BaseNodeView {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.initialise = () => {
|
|
8
|
+
this.createDOM();
|
|
9
|
+
};
|
|
10
|
+
this.createDOM = () => {
|
|
11
|
+
this.dom = document.createElement('div');
|
|
12
|
+
this.dom.classList.add('contributors');
|
|
13
|
+
const can = this.props.getCapabilities();
|
|
14
|
+
const { components: { MetadataContainer }, subscribeStore, } = this.props;
|
|
15
|
+
this.metadata = ReactSubView(this.props, MetadataContainer, {
|
|
16
|
+
allowInvitingAuthors: false,
|
|
17
|
+
showAuthorEditButton: true,
|
|
18
|
+
disableEditButton: !can.editMetadata,
|
|
19
|
+
subscribe: subscribeStore,
|
|
20
|
+
}, this.node, this.getPos, this.view, 'metadata-container');
|
|
21
|
+
if (this.metadata) {
|
|
22
|
+
this.dom.appendChild(this.metadata);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.ignoreMutation = () => true;
|
|
26
|
+
this.stopEvent = () => true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export default createNodeView(ContributorsSectionView);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © 2019 Atypon Systems LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { BaseNodeView } from './base_node_view';
|
|
17
|
+
import { createNodeView } from './creators';
|
|
18
|
+
export class TitleView extends BaseNodeView {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.initialise = () => {
|
|
22
|
+
this.createDOM();
|
|
23
|
+
};
|
|
24
|
+
this.createDOM = () => {
|
|
25
|
+
this.dom = document.createElement('div');
|
|
26
|
+
this.dom.classList.add('manuscript-title');
|
|
27
|
+
this.contentDOM = document.createElement('div');
|
|
28
|
+
this.contentDOM.classList.add('article-titles');
|
|
29
|
+
this.dom.appendChild(this.contentDOM);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export default createNodeView(TitleView);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © 2019 Atypon Systems LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { createEditableNodeView } from './creators';
|
|
17
|
+
import { TitleView } from './title';
|
|
18
|
+
export default createEditableNodeView(TitleView);
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Manuscript, Project } from '@manuscripts/json-schema';
|
|
17
|
+
import { ManuscriptNode } from '@manuscripts/transform';
|
|
17
18
|
import React from 'react';
|
|
18
19
|
interface Props {
|
|
19
20
|
project: Project;
|
|
20
21
|
manuscript: Manuscript;
|
|
22
|
+
doc: ManuscriptNode;
|
|
21
23
|
}
|
|
22
24
|
export declare const OutlineManuscript: React.FunctionComponent<Props>;
|
|
23
25
|
export {};
|
|
@@ -23,6 +23,7 @@ type EditorProps = EditableBlockProps & CitationEditableProps & FigureProps & Ke
|
|
|
23
23
|
theme: DefaultTheme;
|
|
24
24
|
};
|
|
25
25
|
declare const _default: (props: EditorProps, dispatch: Dispatch) => {
|
|
26
|
+
title: import("../types").NodeViewCreator<import("../views/title").TitleView<any>>;
|
|
26
27
|
bibliography_item: import("../types").NodeViewCreator<import("../views/bibliography_item").BibliographyItemView<any>>;
|
|
27
28
|
bibliography_element: import("../types").NodeViewCreator<{
|
|
28
29
|
gutterButtons: () => HTMLElement[];
|
|
@@ -137,6 +138,7 @@ declare const _default: (props: EditorProps, dispatch: Dispatch) => {
|
|
|
137
138
|
} & import("../views/bullet_list").BulletListView<any>>;
|
|
138
139
|
citation: import("../types").NodeViewCreator<import("../views/citation_editable").CitationEditableView>;
|
|
139
140
|
cross_reference: import("../types").NodeViewCreator<import("../views/cross_reference_editable").CrossReferenceEditableView>;
|
|
141
|
+
contributors_section: import("../types").NodeViewCreator<import("../views/contributors_section").ContributorsSectionView<any>>;
|
|
140
142
|
equation: import("../types").NodeViewCreator<import("../views/equation_editable").EquationEditableView>;
|
|
141
143
|
equation_element: import("../types").NodeViewCreator<{
|
|
142
144
|
gutterButtons: () => HTMLElement[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ManuscriptNodeView } from '@manuscripts/transform';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseNodeView } from './base_node_view';
|
|
4
|
+
import { EditableBlockProps } from './editable_block';
|
|
5
|
+
export interface ContributorsSectionProps extends EditableBlockProps {
|
|
6
|
+
components: Record<string, React.ComponentType<any>>;
|
|
7
|
+
subscribeStore: any;
|
|
8
|
+
}
|
|
9
|
+
export declare class ContributorsSectionView<PropsType extends ContributorsSectionProps> extends BaseNodeView<PropsType> implements ManuscriptNodeView {
|
|
10
|
+
private metadata;
|
|
11
|
+
initialise: () => void;
|
|
12
|
+
protected createDOM: () => void;
|
|
13
|
+
ignoreMutation: () => boolean;
|
|
14
|
+
stopEvent: () => boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: (props: import("./base_node_view").BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<ContributorsSectionView<any>>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © 2019 Atypon Systems LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ManuscriptNodeView } from '@manuscripts/transform';
|
|
17
|
+
import { BaseNodeProps, BaseNodeView } from './base_node_view';
|
|
18
|
+
export declare class TitleView<PropsType extends BaseNodeProps> extends BaseNodeView<PropsType> implements ManuscriptNodeView {
|
|
19
|
+
contentDOM: HTMLElement;
|
|
20
|
+
initialise: () => void;
|
|
21
|
+
protected createDOM: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: (props: BaseNodeProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TitleView<any>>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © 2019 Atypon Systems LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { TitleView } from './title';
|
|
17
|
+
declare const _default: (props: import("./editable_block").EditableBlockProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TitleView<any>>;
|
|
18
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manuscripts/body-editor",
|
|
3
3
|
"description": "Prosemirror components for editing and viewing manuscripts",
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.5-LEAN-2852-3",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@iarna/word-count": "^1.1.2",
|
|
30
30
|
"@manuscripts/assets": "^0.6.4",
|
|
31
31
|
"@manuscripts/comment-editor": "^1.0.3",
|
|
32
|
-
"@manuscripts/json-schema": "
|
|
33
|
-
"@manuscripts/library": "1.
|
|
34
|
-
"@manuscripts/style-guide": "1.4.
|
|
32
|
+
"@manuscripts/json-schema": "2.2.0-LEAN-2852-12",
|
|
33
|
+
"@manuscripts/library": "1.1.12-LEAN-2852-21",
|
|
34
|
+
"@manuscripts/style-guide": "1.4.0-LEAN-2852-8",
|
|
35
35
|
"@manuscripts/title-editor": "^1.1.0",
|
|
36
36
|
"@manuscripts/track-changes-plugin": "^1.7.3",
|
|
37
|
-
"@manuscripts/transform": "1.5.
|
|
37
|
+
"@manuscripts/transform": "1.5.1-LEAN-2852-9",
|
|
38
38
|
"astrocite-eutils": "^0.16.4",
|
|
39
39
|
"axios": "^1.2.2",
|
|
40
40
|
"codemirror": "^5.58.1",
|
|
@@ -730,3 +730,27 @@ Next levels are shifted 'up' by 1
|
|
|
730
730
|
.citation-wrapper:hover .track-changes-review {
|
|
731
731
|
display: inline-block;
|
|
732
732
|
}
|
|
733
|
+
|
|
734
|
+
.contributors {
|
|
735
|
+
white-space: initial;
|
|
736
|
+
margin-bottom: 24px;
|
|
737
|
+
margin-top: 24px;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.contributors .tools-panel {
|
|
741
|
+
position: initial;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.contributors table {
|
|
745
|
+
line-height: initial;
|
|
746
|
+
width: inherit;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.contributors tr th, .contributors tr td {
|
|
750
|
+
border: none !important;
|
|
751
|
+
background: none !important;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.contributors th, .contributors td {
|
|
755
|
+
padding: initial;
|
|
756
|
+
}
|
package/styles/Editor.css
CHANGED