proskomma-core 0.10.15 → 0.10.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.
package/dist/index.js CHANGED
@@ -15992,7 +15992,7 @@ var bitset = { exports: {} };
15992
15992
  var bitsetExports = bitset.exports;
15993
15993
  const BitSet = /* @__PURE__ */ getDefaultExportFromCjs(bitsetExports);
15994
15994
  const name = "proskomma-core";
15995
- const version = "0.10.15";
15995
+ const version = "0.10.16";
15996
15996
  const description$b = "A Scripture Runtime Engine";
15997
15997
  const files = [
15998
15998
  "dist"
@@ -38523,8 +38523,12 @@ const Sequence = class {
38523
38523
  }
38524
38524
  return false;
38525
38525
  };
38526
+ const blockGrafts = (blockItems) => {
38527
+ const grafts = blockItems.filter((i) => i.type === "graft" && i.subType === "fig");
38528
+ return grafts.length > 0;
38529
+ };
38526
38530
  for (const blockRecord of this.blocks.entries()) {
38527
- if (blockRecord[1].tokens().length === 0 && !emptyMilestones(blockRecord[1].items) && !canBeEmpty.includes(blockRecord[1].bs.payload)) {
38531
+ if (blockRecord[1].tokens().length === 0 && !emptyMilestones(blockRecord[1].items) && !blockGrafts(blockRecord[1].items) && !canBeEmpty.includes(blockRecord[1].bs.payload)) {
38528
38532
  emptyBlocks.push(blockRecord);
38529
38533
  }
38530
38534
  }
@@ -39800,7 +39804,7 @@ const Parser2 = class {
39800
39804
  if (seq.type === "sidebar") {
39801
39805
  this.substituteEsbCatScopes(seq);
39802
39806
  }
39803
- if (["footnote", "xref"].includes(seq.type)) {
39807
+ if (["footnote", "xref", "fig"].includes(seq.type)) {
39804
39808
  seq.lastBlock().inlineToEnd();
39805
39809
  }
39806
39810
  }
package/dist/index.mjs CHANGED
@@ -15990,7 +15990,7 @@ var bitset = { exports: {} };
15990
15990
  var bitsetExports = bitset.exports;
15991
15991
  const BitSet = /* @__PURE__ */ getDefaultExportFromCjs(bitsetExports);
15992
15992
  const name = "proskomma-core";
15993
- const version = "0.10.15";
15993
+ const version = "0.10.16";
15994
15994
  const description$b = "A Scripture Runtime Engine";
15995
15995
  const files = [
15996
15996
  "dist"
@@ -38521,8 +38521,12 @@ const Sequence = class {
38521
38521
  }
38522
38522
  return false;
38523
38523
  };
38524
+ const blockGrafts = (blockItems) => {
38525
+ const grafts = blockItems.filter((i) => i.type === "graft" && i.subType === "fig");
38526
+ return grafts.length > 0;
38527
+ };
38524
38528
  for (const blockRecord of this.blocks.entries()) {
38525
- if (blockRecord[1].tokens().length === 0 && !emptyMilestones(blockRecord[1].items) && !canBeEmpty.includes(blockRecord[1].bs.payload)) {
38529
+ if (blockRecord[1].tokens().length === 0 && !emptyMilestones(blockRecord[1].items) && !blockGrafts(blockRecord[1].items) && !canBeEmpty.includes(blockRecord[1].bs.payload)) {
38526
38530
  emptyBlocks.push(blockRecord);
38527
38531
  }
38528
38532
  }
@@ -39798,7 +39802,7 @@ const Parser2 = class {
39798
39802
  if (seq.type === "sidebar") {
39799
39803
  this.substituteEsbCatScopes(seq);
39800
39804
  }
39801
- if (["footnote", "xref"].includes(seq.type)) {
39805
+ if (["footnote", "xref", "fig"].includes(seq.type)) {
39802
39806
  seq.lastBlock().inlineToEnd();
39803
39807
  }
39804
39808
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proskomma-core",
3
- "version": "0.10.15",
3
+ "version": "0.10.16",
4
4
  "description": "A Scripture Runtime Engine",
5
5
  "files": [
6
6
  "dist"