proskomma-core 0.10.16 → 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 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.16";
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
  },
@@ -39598,7 +39598,8 @@ const specs = (pt) => [
39598
39598
  "tagName",
39599
39599
  [
39600
39600
  "w",
39601
- "rb"
39601
+ "rb",
39602
+ "jmp"
39602
39603
  // 'xt',
39603
39604
  ].concat(pt.customTags.word)
39604
39605
  ]
@@ -40089,12 +40090,29 @@ const Parser2 = class {
40089
40090
  payload: label
40090
40091
  });
40091
40092
  }
40092
- addEmptyMilestone(label) {
40093
+ addEmptyMilestone(label, pt) {
40093
40094
  this.mainLike.addItem({
40094
40095
  type: "scope",
40095
40096
  subType: "start",
40096
40097
  payload: label
40097
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
+ }
40098
40116
  this.mainLike.addItem({
40099
40117
  type: "scope",
40100
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.10.16";
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
  },
@@ -39596,7 +39596,8 @@ const specs = (pt) => [
39596
39596
  "tagName",
39597
39597
  [
39598
39598
  "w",
39599
- "rb"
39599
+ "rb",
39600
+ "jmp"
39600
39601
  // 'xt',
39601
39602
  ].concat(pt.customTags.word)
39602
39603
  ]
@@ -40087,12 +40088,29 @@ const Parser2 = class {
40087
40088
  payload: label
40088
40089
  });
40089
40090
  }
40090
- addEmptyMilestone(label) {
40091
+ addEmptyMilestone(label, pt) {
40091
40092
  this.mainLike.addItem({
40092
40093
  type: "scope",
40093
40094
  subType: "start",
40094
40095
  payload: label
40095
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
+ }
40096
40114
  this.mainLike.addItem({
40097
40115
  type: "scope",
40098
40116
  subType: "end",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proskomma-core",
3
- "version": "0.10.16",
3
+ "version": "0.11.0",
4
4
  "description": "A Scripture Runtime Engine",
5
5
  "files": [
6
6
  "dist"