@manuscripts/transform 3.0.47-LEAN-4439.7 → 3.0.47-test.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.
@@ -158,8 +158,8 @@ const createBackmatter = (doc, body, sectionCategories, createElement) => {
158
158
  moveBackSections(doc, group);
159
159
  moveAppendices(doc, group, createElement);
160
160
  moveSpecialFootnotes(doc, group, sectionCategories, createElement);
161
- moveAcknowledgments(doc, group, createElement);
162
161
  moveFootnotes(doc, group, createElement);
162
+ moveAcknowledgments(doc, group, createElement);
163
163
  body.append(group);
164
164
  };
165
165
  exports.createBackmatter = createBackmatter;
@@ -178,13 +178,7 @@ const moveFootnotes = (doc, group, createElement) => {
178
178
  section = createFootnotesSection([fnGroup], createElement);
179
179
  }
180
180
  if (section) {
181
- const lastChild = group.lastElementChild;
182
- if ((lastChild === null || lastChild === void 0 ? void 0 : lastChild.getAttribute('sec-type')) === 'bibliography') {
183
- group.insertBefore(section, lastChild);
184
- }
185
- else {
186
- group.appendChild(section);
187
- }
181
+ group.appendChild(section);
188
182
  }
189
183
  };
190
184
  const moveSpecialFootnotes = (doc, group, sectionCategories, createElement) => {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "3.0.47-LEAN-4439.7";
4
+ exports.VERSION = "3.0.47-test.0";
@@ -145,8 +145,8 @@ export const createBackmatter = (doc, body, sectionCategories, createElement) =>
145
145
  moveBackSections(doc, group);
146
146
  moveAppendices(doc, group, createElement);
147
147
  moveSpecialFootnotes(doc, group, sectionCategories, createElement);
148
- moveAcknowledgments(doc, group, createElement);
149
148
  moveFootnotes(doc, group, createElement);
149
+ moveAcknowledgments(doc, group, createElement);
150
150
  body.append(group);
151
151
  };
152
152
  const moveFootnotes = (doc, group, createElement) => {
@@ -164,13 +164,7 @@ const moveFootnotes = (doc, group, createElement) => {
164
164
  section = createFootnotesSection([fnGroup], createElement);
165
165
  }
166
166
  if (section) {
167
- const lastChild = group.lastElementChild;
168
- if ((lastChild === null || lastChild === void 0 ? void 0 : lastChild.getAttribute('sec-type')) === 'bibliography') {
169
- group.insertBefore(section, lastChild);
170
- }
171
- else {
172
- group.appendChild(section);
173
- }
167
+ group.appendChild(section);
174
168
  }
175
169
  };
176
170
  const moveSpecialFootnotes = (doc, group, sectionCategories, createElement) => {
@@ -1 +1 @@
1
- export const VERSION = "3.0.47-LEAN-4439.7";
1
+ export const VERSION = "3.0.47-test.0";
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.47-LEAN-4439.7";
1
+ export declare const VERSION = "3.0.47-test.0";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "3.0.47-LEAN-4439.7",
4
+ "version": "3.0.47-test.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",