@manuscripts/body-editor 1.9.15 → 1.9.16

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.
@@ -171,7 +171,7 @@ const DraggableTree = ({ tree, view, depth, can, }) => {
171
171
  const dragClass = isDragging ? 'dragging' : '';
172
172
  const dropClass = isOver && dropSide ? `drop-${dropSide}` : '';
173
173
  return (react_1.default.createElement(Outline_1.Outline, { ref: ref, className: `${dragClass} ${dropClass}` },
174
- !isTop && (react_1.default.createElement(Outline_1.OutlineItem, { depth: depth, onContextMenu: handleContextMenu },
174
+ !isTop && node.type.name != 'manuscript' && (react_1.default.createElement(Outline_1.OutlineItem, { depth: depth, onContextMenu: handleContextMenu },
175
175
  items.length ? (react_1.default.createElement(Outline_1.OutlineItemArrow, { onClick: toggleOpen }, isOpen ? (react_1.default.createElement(Outline_1.StyledTriangleExpanded, null)) : (react_1.default.createElement(Outline_1.StyledTriangleCollapsed, null)))) : (react_1.default.createElement(Outline_1.OutlineItemNoArrow, null)),
176
176
  react_1.default.createElement(Outline_1.OutlineItemLink, { to: `#${node.attrs.id}` },
177
177
  react_1.default.createElement(Outline_1.OutlineItemIcon, null, (0, node_type_icons_1.nodeTypeIcon)(node.type)),
@@ -144,7 +144,7 @@ export const DraggableTree = ({ tree, view, depth, can, }) => {
144
144
  const dragClass = isDragging ? 'dragging' : '';
145
145
  const dropClass = isOver && dropSide ? `drop-${dropSide}` : '';
146
146
  return (React.createElement(Outline, { ref: ref, className: `${dragClass} ${dropClass}` },
147
- !isTop && (React.createElement(OutlineItem, { depth: depth, onContextMenu: handleContextMenu },
147
+ !isTop && node.type.name != 'manuscript' && (React.createElement(OutlineItem, { depth: depth, onContextMenu: handleContextMenu },
148
148
  items.length ? (React.createElement(OutlineItemArrow, { onClick: toggleOpen }, isOpen ? (React.createElement(StyledTriangleExpanded, null)) : (React.createElement(StyledTriangleCollapsed, null)))) : (React.createElement(OutlineItemNoArrow, null)),
149
149
  React.createElement(OutlineItemLink, { to: `#${node.attrs.id}` },
150
150
  React.createElement(OutlineItemIcon, null, nodeTypeIcon(node.type)),
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.9.15",
4
+ "version": "1.9.16",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -111,4 +111,4 @@
111
111
  "@types/react": "^17.0.2",
112
112
  "prosemirror-tables": "^1.3.5"
113
113
  }
114
- }
114
+ }