@manuscripts/body-editor 2.6.1 → 2.6.2-LEAN-4089.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.
package/dist/cjs/versions.js
CHANGED
|
@@ -149,19 +149,21 @@ class InlineFootnoteView extends base_node_view_1.BaseNodeView {
|
|
|
149
149
|
this.destroy();
|
|
150
150
|
};
|
|
151
151
|
this.handleInsert = (footnotes) => {
|
|
152
|
+
const pos = this.getPos();
|
|
153
|
+
const tr = this.view.state.tr;
|
|
152
154
|
if (footnotes.length) {
|
|
153
|
-
const pos = this.getPos();
|
|
154
155
|
const rids = footnotes.map((note) => note.attrs.id);
|
|
155
|
-
const tr = this.view.state.tr;
|
|
156
156
|
if (rids.length) {
|
|
157
157
|
tr.setNodeAttribute(pos, 'rids', rids);
|
|
158
|
-
this.view.dispatch(tr);
|
|
159
158
|
}
|
|
160
159
|
else if ((0, track_changes_utils_1.isPendingInsert)(this.node)) {
|
|
161
160
|
tr.delete(pos, pos + this.node.nodeSize);
|
|
162
|
-
this.view.dispatch(tr);
|
|
163
161
|
}
|
|
164
162
|
}
|
|
163
|
+
else {
|
|
164
|
+
tr.delete(pos, pos + this.node.nodeSize);
|
|
165
|
+
}
|
|
166
|
+
this.view.dispatch(tr);
|
|
165
167
|
this.destroy();
|
|
166
168
|
};
|
|
167
169
|
}
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.6.
|
|
1
|
+
export const VERSION = '2.6.2-LEAN-4089.0';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
|
@@ -143,19 +143,21 @@ export class InlineFootnoteView extends BaseNodeView {
|
|
|
143
143
|
this.destroy();
|
|
144
144
|
};
|
|
145
145
|
this.handleInsert = (footnotes) => {
|
|
146
|
+
const pos = this.getPos();
|
|
147
|
+
const tr = this.view.state.tr;
|
|
146
148
|
if (footnotes.length) {
|
|
147
|
-
const pos = this.getPos();
|
|
148
149
|
const rids = footnotes.map((note) => note.attrs.id);
|
|
149
|
-
const tr = this.view.state.tr;
|
|
150
150
|
if (rids.length) {
|
|
151
151
|
tr.setNodeAttribute(pos, 'rids', rids);
|
|
152
|
-
this.view.dispatch(tr);
|
|
153
152
|
}
|
|
154
153
|
else if (isPendingInsert(this.node)) {
|
|
155
154
|
tr.delete(pos, pos + this.node.nodeSize);
|
|
156
|
-
this.view.dispatch(tr);
|
|
157
155
|
}
|
|
158
156
|
}
|
|
157
|
+
else {
|
|
158
|
+
tr.delete(pos, pos + this.node.nodeSize);
|
|
159
|
+
}
|
|
160
|
+
this.view.dispatch(tr);
|
|
159
161
|
this.destroy();
|
|
160
162
|
};
|
|
161
163
|
}
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.6.
|
|
1
|
+
export declare const VERSION = "2.6.2-LEAN-4089.0";
|
|
2
2
|
export declare const MATHJAX_VERSION = "3.2.2";
|
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": "2.6.
|
|
4
|
+
"version": "2.6.2-LEAN-4089.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|