proskomma-core 0.10.17 → 0.11.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/index.js +20 -3
- package/dist/index.mjs +20 -3
- 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.
|
|
15995
|
+
const version = "0.11.0";
|
|
15996
15996
|
const description$b = "A Scripture Runtime Engine";
|
|
15997
15997
|
const files = [
|
|
15998
15998
|
"dist"
|
|
@@ -39530,7 +39530,7 @@ const specs = (pt) => [
|
|
|
39530
39530
|
contexts: [["emptyMilestone"]],
|
|
39531
39531
|
parser: {
|
|
39532
39532
|
during: (parser, pt2) => {
|
|
39533
|
-
parser.addEmptyMilestone(labelForScope$2("milestone", [pt2.tagName]));
|
|
39533
|
+
parser.addEmptyMilestone(labelForScope$2("milestone", [pt2.tagName]), pt2);
|
|
39534
39534
|
}
|
|
39535
39535
|
}
|
|
39536
39536
|
},
|
|
@@ -40090,12 +40090,29 @@ const Parser2 = class {
|
|
|
40090
40090
|
payload: label
|
|
40091
40091
|
});
|
|
40092
40092
|
}
|
|
40093
|
-
addEmptyMilestone(label) {
|
|
40093
|
+
addEmptyMilestone(label, pt) {
|
|
40094
40094
|
this.mainLike.addItem({
|
|
40095
40095
|
type: "scope",
|
|
40096
40096
|
subType: "start",
|
|
40097
40097
|
payload: label
|
|
40098
40098
|
});
|
|
40099
|
+
const startAttributeStrings = pt.attributes.map(
|
|
40100
|
+
(kv) => `attribute/${label}/${kv[0]}/0/${kv[1]}`
|
|
40101
|
+
);
|
|
40102
|
+
for (const aString of startAttributeStrings) {
|
|
40103
|
+
this.mainLike.addItem({
|
|
40104
|
+
type: "scope",
|
|
40105
|
+
subType: "start",
|
|
40106
|
+
payload: aString
|
|
40107
|
+
});
|
|
40108
|
+
}
|
|
40109
|
+
for (const aString of startAttributeStrings.reverse()) {
|
|
40110
|
+
this.mainLike.addItem({
|
|
40111
|
+
type: "scope",
|
|
40112
|
+
subType: "end",
|
|
40113
|
+
payload: aString
|
|
40114
|
+
});
|
|
40115
|
+
}
|
|
40099
40116
|
this.mainLike.addItem({
|
|
40100
40117
|
type: "scope",
|
|
40101
40118
|
subType: "end",
|
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.
|
|
15993
|
+
const version = "0.11.0";
|
|
15994
15994
|
const description$b = "A Scripture Runtime Engine";
|
|
15995
15995
|
const files = [
|
|
15996
15996
|
"dist"
|
|
@@ -39528,7 +39528,7 @@ const specs = (pt) => [
|
|
|
39528
39528
|
contexts: [["emptyMilestone"]],
|
|
39529
39529
|
parser: {
|
|
39530
39530
|
during: (parser, pt2) => {
|
|
39531
|
-
parser.addEmptyMilestone(labelForScope$2("milestone", [pt2.tagName]));
|
|
39531
|
+
parser.addEmptyMilestone(labelForScope$2("milestone", [pt2.tagName]), pt2);
|
|
39532
39532
|
}
|
|
39533
39533
|
}
|
|
39534
39534
|
},
|
|
@@ -40088,12 +40088,29 @@ const Parser2 = class {
|
|
|
40088
40088
|
payload: label
|
|
40089
40089
|
});
|
|
40090
40090
|
}
|
|
40091
|
-
addEmptyMilestone(label) {
|
|
40091
|
+
addEmptyMilestone(label, pt) {
|
|
40092
40092
|
this.mainLike.addItem({
|
|
40093
40093
|
type: "scope",
|
|
40094
40094
|
subType: "start",
|
|
40095
40095
|
payload: label
|
|
40096
40096
|
});
|
|
40097
|
+
const startAttributeStrings = pt.attributes.map(
|
|
40098
|
+
(kv) => `attribute/${label}/${kv[0]}/0/${kv[1]}`
|
|
40099
|
+
);
|
|
40100
|
+
for (const aString of startAttributeStrings) {
|
|
40101
|
+
this.mainLike.addItem({
|
|
40102
|
+
type: "scope",
|
|
40103
|
+
subType: "start",
|
|
40104
|
+
payload: aString
|
|
40105
|
+
});
|
|
40106
|
+
}
|
|
40107
|
+
for (const aString of startAttributeStrings.reverse()) {
|
|
40108
|
+
this.mainLike.addItem({
|
|
40109
|
+
type: "scope",
|
|
40110
|
+
subType: "end",
|
|
40111
|
+
payload: aString
|
|
40112
|
+
});
|
|
40113
|
+
}
|
|
40097
40114
|
this.mainLike.addItem({
|
|
40098
40115
|
type: "scope",
|
|
40099
40116
|
subType: "end",
|