proskomma-core 0.10.15 → 0.10.17
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 +9 -4
- package/dist/index.mjs +9 -4
- package/package.json +1 -1
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.
|
|
15995
|
+
const version = "0.10.17";
|
|
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
|
}
|
|
@@ -39594,7 +39598,8 @@ const specs = (pt) => [
|
|
|
39594
39598
|
"tagName",
|
|
39595
39599
|
[
|
|
39596
39600
|
"w",
|
|
39597
|
-
"rb"
|
|
39601
|
+
"rb",
|
|
39602
|
+
"jmp"
|
|
39598
39603
|
// 'xt',
|
|
39599
39604
|
].concat(pt.customTags.word)
|
|
39600
39605
|
]
|
|
@@ -39800,7 +39805,7 @@ const Parser2 = class {
|
|
|
39800
39805
|
if (seq.type === "sidebar") {
|
|
39801
39806
|
this.substituteEsbCatScopes(seq);
|
|
39802
39807
|
}
|
|
39803
|
-
if (["footnote", "xref"].includes(seq.type)) {
|
|
39808
|
+
if (["footnote", "xref", "fig"].includes(seq.type)) {
|
|
39804
39809
|
seq.lastBlock().inlineToEnd();
|
|
39805
39810
|
}
|
|
39806
39811
|
}
|
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.
|
|
15993
|
+
const version = "0.10.17";
|
|
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
|
}
|
|
@@ -39592,7 +39596,8 @@ const specs = (pt) => [
|
|
|
39592
39596
|
"tagName",
|
|
39593
39597
|
[
|
|
39594
39598
|
"w",
|
|
39595
|
-
"rb"
|
|
39599
|
+
"rb",
|
|
39600
|
+
"jmp"
|
|
39596
39601
|
// 'xt',
|
|
39597
39602
|
].concat(pt.customTags.word)
|
|
39598
39603
|
]
|
|
@@ -39798,7 +39803,7 @@ const Parser2 = class {
|
|
|
39798
39803
|
if (seq.type === "sidebar") {
|
|
39799
39804
|
this.substituteEsbCatScopes(seq);
|
|
39800
39805
|
}
|
|
39801
|
-
if (["footnote", "xref"].includes(seq.type)) {
|
|
39806
|
+
if (["footnote", "xref", "fig"].includes(seq.type)) {
|
|
39802
39807
|
seq.lastBlock().inlineToEnd();
|
|
39803
39808
|
}
|
|
39804
39809
|
}
|