@manuscripts/body-editor 1.5.16-LEAN-3030 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,7 +160,7 @@ class Tree extends React.Component {
160
160
  React.createElement(Outline_1.OutlineItemLinkText, { className: `outline-text-${node.type.name} ${isDeletedItem && 'deleted'}` }, this.itemText(node)))))),
161
161
  items.length ? (React.createElement("div", { style: {
162
162
  display: open || isTop ? '' : 'none',
163
- } }, items.map((subtree) => (React.createElement(DraggableTree, Object.assign({}, this.props, { key: subtree.node.attrs.id, tree: subtree, view: view, depth: isTop ? depth : depth + 1 })))))) : '',
163
+ } }, items.map((subtree) => (React.createElement(DraggableTree, Object.assign({}, this.props, { key: subtree.node.attrs.id, tree: subtree, view: view, depth: isTop ? depth : depth + 1 })))))) : (''),
164
164
  React.createElement(Outline_1.OutlineDropPreview, { depth: depth, style: this.bottomPreviewStyles(mightDrop, dragPosition) }))));
165
165
  }
166
166
  }
@@ -24,6 +24,7 @@ const bullet_list_editable_1 = __importDefault(require("../views/bullet_list_edi
24
24
  const citation_editable_1 = __importDefault(require("../views/citation_editable"));
25
25
  const contributors_1 = __importDefault(require("../views/contributors"));
26
26
  const cross_reference_editable_1 = __importDefault(require("../views/cross_reference_editable"));
27
+ const empty_1 = __importDefault(require("../views/empty"));
27
28
  const equation_editable_1 = __importDefault(require("../views/equation_editable"));
28
29
  const equation_element_editable_1 = __importDefault(require("../views/equation_element_editable"));
29
30
  const figure_editable_1 = __importDefault(require("../views/figure_editable"));
@@ -47,7 +48,6 @@ const section_title_editable_1 = __importDefault(require("../views/section_title
47
48
  const table_element_editable_1 = __importDefault(require("../views/table_element_editable"));
48
49
  const title_editable_1 = __importDefault(require("../views/title_editable"));
49
50
  const toc_element_editable_1 = __importDefault(require("../views/toc_element_editable"));
50
- const empty_1 = __importDefault(require("../views/empty"));
51
51
  exports.default = (props, dispatch) => {
52
52
  return {
53
53
  title: (0, title_editable_1.default)(props, dispatch),
@@ -133,7 +133,7 @@ class Tree extends React.Component {
133
133
  React.createElement(OutlineItemLinkText, { className: `outline-text-${node.type.name} ${isDeletedItem && 'deleted'}` }, this.itemText(node)))))),
134
134
  items.length ? (React.createElement("div", { style: {
135
135
  display: open || isTop ? '' : 'none',
136
- } }, items.map((subtree) => (React.createElement(DraggableTree, Object.assign({}, this.props, { key: subtree.node.attrs.id, tree: subtree, view: view, depth: isTop ? depth : depth + 1 })))))) : '',
136
+ } }, items.map((subtree) => (React.createElement(DraggableTree, Object.assign({}, this.props, { key: subtree.node.attrs.id, tree: subtree, view: view, depth: isTop ? depth : depth + 1 })))))) : (''),
137
137
  React.createElement(OutlineDropPreview, { depth: depth, style: this.bottomPreviewStyles(mightDrop, dragPosition) }))));
138
138
  }
139
139
  }
@@ -19,6 +19,7 @@ import bulletList from '../views/bullet_list_editable';
19
19
  import citation from '../views/citation_editable';
20
20
  import contributorsSection from '../views/contributors';
21
21
  import crossReference from '../views/cross_reference_editable';
22
+ import empty from '../views/empty';
22
23
  import equation from '../views/equation_editable';
23
24
  import equationElement from '../views/equation_element_editable';
24
25
  import figure from '../views/figure_editable';
@@ -42,7 +43,6 @@ import sectionTitle from '../views/section_title_editable';
42
43
  import tableElement from '../views/table_element_editable';
43
44
  import title from '../views/title_editable';
44
45
  import tocElement from '../views/toc_element_editable';
45
- import empty from "../views/empty";
46
46
  export default (props, dispatch) => {
47
47
  return {
48
48
  title: title(props, dispatch),
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.16-LEAN-3030",
4
+ "version": "1.6.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -29,10 +29,10 @@
29
29
  "@iarna/word-count": "^1.1.2",
30
30
  "@manuscripts/assets": "^0.6.4",
31
31
  "@manuscripts/json-schema": "2.2.1",
32
- "@manuscripts/library": "1.2.2-LEAN-3030-6",
33
- "@manuscripts/style-guide": "1.4.6-LEAN-3030-5",
32
+ "@manuscripts/library": "1.3.0",
33
+ "@manuscripts/style-guide": "1.5.0",
34
34
  "@manuscripts/track-changes-plugin": "^1.7.4",
35
- "@manuscripts/transform": "1.5.8-LEAN-3030-3",
35
+ "@manuscripts/transform": "2.0.0",
36
36
  "astrocite-eutils": "^0.16.4",
37
37
  "axios": "^1.2.2",
38
38
  "codemirror": "^5.58.1",
@@ -123,23 +123,6 @@
123
123
  "styled-components": "^5.2.0",
124
124
  "typescript": "^4.0.5"
125
125
  },
126
- "peerDependencies": {
127
- "prosemirror-commands": "^1.5.0",
128
- "prosemirror-dropcursor": "^1.6.1",
129
- "prosemirror-history": "^1.3.0",
130
- "prosemirror-inputrules": "^1.2.0",
131
- "prosemirror-keymap": "^1.2.0",
132
- "prosemirror-model": "^1.18.3",
133
- "prosemirror-schema-list": "^1.2.2",
134
- "prosemirror-state": "^1.4.2",
135
- "prosemirror-tables": "^1.3.0",
136
- "prosemirror-transform": "^1.7.0",
137
- "prosemirror-utils": "^0.9.6",
138
- "prosemirror-view": "^1.29.1",
139
- "react": ">=16.11.0",
140
- "react-dom": ">=16.11.0",
141
- "react-modal": "^3.11.2"
142
- },
143
126
  "resolutions": {
144
127
  "@types/react": "^17.0.2"
145
128
  }