@gmb/bitmark-parser-generator 3.22.0 → 3.24.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.
Files changed (166) hide show
  1. package/dist/browser/bitmark-parser-generator.min.js +1 -1
  2. package/dist/browser/bundle-report.html +2 -2
  3. package/dist/cjs/ast/Builder.js +66 -62
  4. package/dist/cjs/ast/Builder.js.map +1 -1
  5. package/dist/cjs/breakscaping/Breakscape.js +37 -13
  6. package/dist/cjs/breakscaping/Breakscape.js.map +1 -1
  7. package/dist/cjs/config/raw/bits.js +16 -6
  8. package/dist/cjs/config/raw/bits.js.map +1 -1
  9. package/dist/cjs/config/raw/cardSets.js +46 -18
  10. package/dist/cjs/config/raw/cardSets.js.map +1 -1
  11. package/dist/cjs/config/raw/groups.js +5 -0
  12. package/dist/cjs/config/raw/groups.js.map +1 -1
  13. package/dist/cjs/config/raw/properties.js +4 -0
  14. package/dist/cjs/config/raw/properties.js.map +1 -1
  15. package/dist/cjs/generated/build-info.js +1 -1
  16. package/dist/cjs/generated/parser/text/text-peggy-parser.js +245 -285
  17. package/dist/cjs/generated/parser/text/text-peggy-parser.js.map +1 -1
  18. package/dist/cjs/generator/bitmark/BitmarkGenerator.js +28 -5
  19. package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/cjs/model/ast/NodeType.js +2 -0
  22. package/dist/cjs/model/ast/NodeType.js.map +1 -1
  23. package/dist/cjs/model/config/enum/CardSetConfigKey.js +4 -2
  24. package/dist/cjs/model/config/enum/CardSetConfigKey.js.map +1 -1
  25. package/dist/cjs/model/config/enum/PropertyConfigKey.js +1 -0
  26. package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
  27. package/dist/cjs/model/enum/BitType.js +1 -0
  28. package/dist/cjs/model/enum/BitType.js.map +1 -1
  29. package/dist/cjs/model/enum/TextFormat.js +2 -1
  30. package/dist/cjs/model/enum/TextFormat.js.map +1 -1
  31. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js +2 -2
  32. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
  33. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js +2 -2
  34. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
  35. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
  36. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +11 -9
  37. package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
  38. package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +4 -1
  39. package/dist/cjs/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
  40. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +71 -65
  41. package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  42. package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +4 -1
  43. package/dist/cjs/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
  44. package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +7 -2
  45. package/dist/cjs/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
  46. package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +4 -1
  47. package/dist/cjs/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
  48. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +4 -1
  49. package/dist/cjs/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
  50. package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +4 -1
  51. package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
  52. package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +15 -10
  53. package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
  54. package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +7 -2
  55. package/dist/cjs/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
  56. package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +4 -1
  57. package/dist/cjs/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
  58. package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -1
  59. package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
  60. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +4 -1
  61. package/dist/cjs/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
  62. package/dist/esm/ast/Builder.js +66 -62
  63. package/dist/esm/ast/Builder.js.map +1 -1
  64. package/dist/esm/breakscaping/Breakscape.js +37 -13
  65. package/dist/esm/breakscaping/Breakscape.js.map +1 -1
  66. package/dist/esm/config/raw/bits.js +16 -6
  67. package/dist/esm/config/raw/bits.js.map +1 -1
  68. package/dist/esm/config/raw/cardSets.js +46 -18
  69. package/dist/esm/config/raw/cardSets.js.map +1 -1
  70. package/dist/esm/config/raw/groups.js +5 -0
  71. package/dist/esm/config/raw/groups.js.map +1 -1
  72. package/dist/esm/config/raw/properties.js +4 -0
  73. package/dist/esm/config/raw/properties.js.map +1 -1
  74. package/dist/esm/generated/build-info.js +1 -1
  75. package/dist/esm/generated/parser/text/text-peggy-parser.js +245 -285
  76. package/dist/esm/generated/parser/text/text-peggy-parser.js.map +1 -1
  77. package/dist/esm/generator/bitmark/BitmarkGenerator.js +28 -5
  78. package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
  79. package/dist/esm/index.js.map +1 -1
  80. package/dist/esm/model/ast/NodeType.js +2 -0
  81. package/dist/esm/model/ast/NodeType.js.map +1 -1
  82. package/dist/esm/model/config/enum/CardSetConfigKey.js +4 -2
  83. package/dist/esm/model/config/enum/CardSetConfigKey.js.map +1 -1
  84. package/dist/esm/model/config/enum/PropertyConfigKey.js +1 -0
  85. package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
  86. package/dist/esm/model/enum/BitType.js +1 -0
  87. package/dist/esm/model/enum/BitType.js.map +1 -1
  88. package/dist/esm/model/enum/TextFormat.js +2 -1
  89. package/dist/esm/model/enum/TextFormat.js.map +1 -1
  90. package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js +2 -2
  91. package/dist/esm/parser/bitmark/peg/BitmarkPegParserHelper.js.map +1 -1
  92. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js +2 -2
  93. package/dist/esm/parser/bitmark/peg/BitmarkPegParserProcessor.js.map +1 -1
  94. package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
  95. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +11 -9
  96. package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
  97. package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js +4 -1
  98. package/dist/esm/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.js.map +1 -1
  99. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +71 -65
  100. package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
  101. package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js +4 -1
  102. package/dist/esm/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.js.map +1 -1
  103. package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js +7 -2
  104. package/dist/esm/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.js.map +1 -1
  105. package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js +4 -1
  106. package/dist/esm/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.js.map +1 -1
  107. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js +4 -1
  108. package/dist/esm/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.js.map +1 -1
  109. package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js +4 -1
  110. package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -1
  111. package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +16 -11
  112. package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
  113. package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js +7 -2
  114. package/dist/esm/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.js.map +1 -1
  115. package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js +4 -1
  116. package/dist/esm/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.js.map +1 -1
  117. package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +4 -1
  118. package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -1
  119. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js +4 -1
  120. package/dist/esm/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.js.map +1 -1
  121. package/dist/types/ast/Builder.d.ts +3 -16
  122. package/dist/types/ast/Builder.d.ts.map +1 -1
  123. package/dist/types/breakscaping/Breakscape.d.ts.map +1 -1
  124. package/dist/types/config/raw/bits.d.ts.map +1 -1
  125. package/dist/types/config/raw/cardSets.d.ts.map +1 -1
  126. package/dist/types/config/raw/groups.d.ts.map +1 -1
  127. package/dist/types/config/raw/properties.d.ts.map +1 -1
  128. package/dist/types/generated/parser/text/text-peggy-parser.d.ts.map +1 -1
  129. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +2 -1
  130. package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
  131. package/dist/types/index.d.ts +1 -1
  132. package/dist/types/index.d.ts.map +1 -1
  133. package/dist/types/model/ast/NodeType.d.ts +4 -0
  134. package/dist/types/model/ast/NodeType.d.ts.map +1 -1
  135. package/dist/types/model/ast/Nodes.d.ts +2 -2
  136. package/dist/types/model/ast/Nodes.d.ts.map +1 -1
  137. package/dist/types/model/config/enum/CardSetConfigKey.d.ts +4 -4
  138. package/dist/types/model/config/enum/CardSetConfigKey.d.ts.map +1 -1
  139. package/dist/types/model/config/enum/ConfigKey.d.ts +2 -0
  140. package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
  141. package/dist/types/model/config/enum/PropertyConfigKey.d.ts +3 -0
  142. package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
  143. package/dist/types/model/enum/BitType.d.ts +2 -0
  144. package/dist/types/model/enum/BitType.d.ts.map +1 -1
  145. package/dist/types/model/enum/PropertyTag.d.ts +2 -0
  146. package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
  147. package/dist/types/model/enum/TextFormat.d.ts +2 -0
  148. package/dist/types/model/enum/TextFormat.d.ts.map +1 -1
  149. package/dist/types/model/json/BitJson.d.ts +5 -13
  150. package/dist/types/model/json/BitJson.d.ts.map +1 -1
  151. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +1 -2
  152. package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
  153. package/dist/types/parser/bitmark/peg/BitmarkPegParserValidator.d.ts.map +1 -1
  154. package/dist/types/parser/bitmark/peg/contentProcessors/BookChainContentProcessor.d.ts.map +1 -1
  155. package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
  156. package/dist/types/parser/bitmark/peg/contentProcessors/ClozeTagContentProcessor.d.ts.map +1 -1
  157. package/dist/types/parser/bitmark/peg/contentProcessors/DefaultTagContentProcessor.d.ts.map +1 -1
  158. package/dist/types/parser/bitmark/peg/contentProcessors/ImageSourceChainContentProcessor.d.ts.map +1 -1
  159. package/dist/types/parser/bitmark/peg/contentProcessors/MarkConfigChainContentProcessor.d.ts.map +1 -1
  160. package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map +1 -1
  161. package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
  162. package/dist/types/parser/bitmark/peg/contentProcessors/ReferenceTagContentProcessor.d.ts.map +1 -1
  163. package/dist/types/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.d.ts.map +1 -1
  164. package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map +1 -1
  165. package/dist/types/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.d.ts.map +1 -1
  166. package/package.json +14 -3
@@ -19,6 +19,7 @@ const Breakscape_1 = require("../../../../breakscaping/Breakscape");
19
19
  const Config_1 = require("../../../../config/Config");
20
20
  const Count_1 = require("../../../../model/enum/Count");
21
21
  const ResourceTag_1 = require("../../../../model/enum/ResourceTag");
22
+ const TextFormat_1 = require("../../../../model/enum/TextFormat");
22
23
  const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
23
24
  // const builder = new Builder();
24
25
  const resourceBuilder = new ResourceBuilder_1.ResourceBuilder();
@@ -127,7 +128,9 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
127
128
  // Build the poster image resource
128
129
  posterImageResource = resourceBuilder.resource(context, Object.assign({ type: ResourceTag_1.ResourceTag.image, value: posterImage }, posterImageTags)).image;
129
130
  }
130
- const resource = resourceBuilder.resource(context, Object.assign({ type, value: Breakscape_1.Breakscape.unbreakscape(value), posterImage: posterImageResource }, tags));
131
+ const resource = resourceBuilder.resource(context, Object.assign({ type, value: Breakscape_1.Breakscape.unbreakscape(value, {
132
+ textFormat: TextFormat_1.TextFormat.tag,
133
+ }), posterImage: posterImageResource }, tags));
131
134
  if (resource)
132
135
  resources.push(resource);
133
136
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAgPS,wCAAc;AAAE,4DAAwB;AAAE,sFAAqC;AAhPxF,qEAAkE;AAClE,oEAAiE;AACjE,sDAAmD;AAGnD,wDAAqD;AACrD,oEAAkF;AAGlF,oEAOkC;AAElC,iCAAiC;AACjC,MAAM,eAAe,GAAG,IAAI,iCAAe,EAAE,CAAC;AAE9C;;;;;;GAMG;AACH,SAAS,cAAc,CACrB,OAAgC,EAChC,sBAA0C,EAC1C,SAAqC;;IAErC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5B,MAAM,iBAAiB,GAAmB,EAAE,CAAC;IAC7C,MAAM,eAAe,GAAmB,EAAE,CAAC;IAE3C,MAAM,+BAA+B,GAAG,yBAAW,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAEtF,wCAAwC;IACxC,MAAM,eAAe,GAAG,eAAM,CAAC,qBAAqB,CAAC,OAAO,EAAE,+BAA+B,CAAC,CAAC;IAC/F,MAAM,yBAAyB,GAAG,eAAe,CAAC,yBAAyB,CAAC;IAC5E,MAAM,SAAS,GAAG,eAAe,CAAC,YAAY,EAAE,CAAC,CAAC,wCAAwC;IAC1F,MAAM,SAAS,GAAG,eAAe,CAAC,YAAY,EAAE,CAAC,CAAC,wCAAwC;IAE1F,qEAAqE;IACrE,IAAI,SAAS,EAAE,CAAC;QACd,KAAK,MAAM,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;YACpC,IAAI,QAAQ,GAAG,MAAA,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,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"}
1
+ {"version":3,"file":"ResourceContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/ResourceContentProcessor.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAmPS,wCAAc;AAAE,4DAAwB;AAAE,sFAAqC;AAnPxF,qEAAkE;AAClE,oEAAiE;AACjE,sDAAmD;AAGnD,wDAAqD;AACrD,oEAAkF;AAClF,kEAA+D;AAG/D,oEAOkC;AAElC,iCAAiC;AACjC,MAAM,eAAe,GAAG,IAAI,iCAAe,EAAE,CAAC;AAE9C;;;;;;GAMG;AACH,SAAS,cAAc,CACrB,OAAgC,EAChC,sBAA0C,EAC1C,SAAqC;;IAErC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5B,MAAM,iBAAiB,GAAmB,EAAE,CAAC;IAC7C,MAAM,eAAe,GAAmB,EAAE,CAAC;IAE3C,MAAM,+BAA+B,GAAG,yBAAW,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IAEtF,wCAAwC;IACxC,MAAM,eAAe,GAAG,eAAM,CAAC,qBAAqB,CAAC,OAAO,EAAE,+BAA+B,CAAC,CAAC;IAC/F,MAAM,yBAAyB,GAAG,eAAe,CAAC,yBAAyB,CAAC;IAC5E,MAAM,SAAS,GAAG,eAAe,CAAC,YAAY,EAAE,CAAC,CAAC,wCAAwC;IAC1F,MAAM,SAAS,GAAG,eAAe,CAAC,YAAY,EAAE,CAAC,CAAC,wCAAwC;IAE1F,qEAAqE;IACrE,IAAI,SAAS,EAAE,CAAC;QACd,KAAK,MAAM,CAAC,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;YACpC,IAAI,QAAQ,GAAG,MAAA,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,mCAAI,CAAC,CAAC;YACjD,IAAI,QAAQ,GAAG,MAAA,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,mCAAI,CAAC,CAAC;YAEjD,uD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entProcessor = technicalTermChainContentProcessor;
4
4
  const Breakscape_1 = require("../../../../breakscaping/Breakscape");
5
+ const TextFormat_1 = require("../../../../model/enum/TextFormat");
5
6
  const StringUtils_1 = require("../../../../utils/StringUtils");
6
7
  const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
7
8
  function technicalTermChainContentProcessor(context, _contentDepth, tagsConfig, content, target) {
@@ -13,7 +14,9 @@ function technicalTermChainContentProcessor(context, _contentDepth, tagsConfig,
13
14
  context.debugPrint('technicalTerm TAGS', tags);
14
15
  const { lang } = tags;
15
16
  // Extract the technicalTerm from the content tag
16
- const technicalTerm = Breakscape_1.Breakscape.unbreakscape(StringUtils_1.StringUtils.trimmedString(content.value));
17
+ const technicalTerm = Breakscape_1.Breakscape.unbreakscape(StringUtils_1.StringUtils.trimmedString(content.value), {
18
+ textFormat: TextFormat_1.TextFormat.tag,
19
+ });
17
20
  const node = {
18
21
  technicalTerm,
19
22
  lang,
@@ -1 +1 @@
1
- {"version":3,"file":"TechnicalTermChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.ts"],"names":[],"mappings":";;AA0CS,gFAAkC;AA1C3C,oEAAiE;AAIjE,+DAA4D;AAE5D,oEAMkC;AAElC,SAAS,kCAAkC,CACzC,OAAgC,EAChC,aAA+B,EAC/B,UAAkC,EAClC,OAAmB,EACnB,MAAiC;IAEjC,0CAA0C;IAE1C,IAAI,OAAO,CAAC,mBAAmB;QAAE,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAEtF,MAAM,IAAI,GAAG,OAAO,CAAC,mBAAmB,CAAC,uCAAe,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE3F,IAAI,OAAO,CAAC,gBAAgB;QAAE,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IAE7E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAEtB,iDAAiD;IACjD,MAAM,aAAa,GAAG,uBAAU,CAAC,YAAY,CAAC,yBAAW,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAsB,CAAC,CAAC;IAE7G,MAAM,IAAI,GAA+B;QACvC,aAAa;QACb,IAAI;KACL,CAAC;IAEF,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;AAC9B,CAAC"}
1
+ {"version":3,"file":"TechnicalTermChainContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.ts"],"names":[],"mappings":";;AA6CS,gFAAkC;AA7C3C,oEAAiE;AAGjE,kEAA+D;AAE/D,+DAA4D;AAE5D,oEAMkC;AAElC,SAAS,kCAAkC,CACzC,OAAgC,EAChC,aAA+B,EAC/B,UAAkC,EAClC,OAAmB,EACnB,MAAiC;IAEjC,0CAA0C;IAE1C,IAAI,OAAO,CAAC,mBAAmB;QAAE,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAEtF,MAAM,IAAI,GAAG,OAAO,CAAC,mBAAmB,CAAC,uCAAe,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE3F,IAAI,OAAO,CAAC,gBAAgB;QAAE,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IAE7E,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAEtB,iDAAiD;IACjD,MAAM,aAAa,GAAG,uBAAU,CAAC,YAAY,CAAC,yBAAW,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAsB,EAAE;QAC3G,UAAU,EAAE,uBAAU,CAAC,GAAG;KAC3B,CAAC,CAAC;IAEH,MAAM,IAAI,GAA+B;QACvC,aAAa;QACb,IAAI;KACL,CAAC;IAEF,MAAM,CAAC,aAAa,GAAG,IAAI,CAAC;AAC9B,CAAC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.trueFalseTagContentProcessor = trueFalseTagContentProcessor;
4
4
  const Breakscape_1 = require("../../../../breakscaping/Breakscape");
5
+ const TextFormat_1 = require("../../../../model/enum/TextFormat");
5
6
  const StringUtils_1 = require("../../../../utils/StringUtils");
6
7
  const BitmarkPegParserTypes_1 = require("../BitmarkPegParserTypes");
7
8
  function trueFalseTagContentProcessor(_context, _contentDepth, content, target) {
@@ -9,7 +10,9 @@ function trueFalseTagContentProcessor(_context, _contentDepth, content, target)
9
10
  const trueFalse = target.trueFalse;
10
11
  if (!trueFalse)
11
12
  return;
12
- const trimmedStringValue = Breakscape_1.Breakscape.unbreakscape(StringUtils_1.StringUtils.trimmedString(value));
13
+ const trimmedStringValue = Breakscape_1.Breakscape.unbreakscape(StringUtils_1.StringUtils.trimmedString(value), {
14
+ textFormat: TextFormat_1.TextFormat.tag,
15
+ });
13
16
  trueFalse.push({
14
17
  text: trimmedStringValue,
15
18
  isCorrect: type === BitmarkPegParserTypes_1.TypeKey.True,
@@ -1 +1 @@
1
- {"version":3,"file":"TrueFalseTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.ts"],"names":[],"mappings":";;AAiCS,oEAA4B;AAjCrC,oEAAiE;AAEjE,+DAA4D;AAE5D,oEAOkC;AAElC,SAAS,4BAA4B,CACnC,QAAiC,EACjC,aAA+B,EAC/B,OAAmB,EACnB,MAAiC;IAEjC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAoB,CAAC;IAE7C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IAEnC,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,MAAM,kBAAkB,GAAG,uBAAU,CAAC,YAAY,CAAC,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAsB,CAAC,CAAC;IAE1G,SAAS,CAAC,IAAI,CAAC;QACb,IAAI,EAAE,kBAAkB;QACxB,SAAS,EAAE,IAAI,KAAK,+BAAO,CAAC,IAAI;QAChC,kBAAkB,EAAE,KAAK;KAC1B,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"TrueFalseTagContentProcessor.js","sourceRoot":"","sources":["../../../../../../src/parser/bitmark/peg/contentProcessors/TrueFalseTagContentProcessor.ts"],"names":[],"mappings":";;AAoCS,oEAA4B;AApCrC,oEAAiE;AAEjE,kEAA+D;AAC/D,+DAA4D;AAE5D,oEAOkC;AAElC,SAAS,4BAA4B,CACnC,QAAiC,EACjC,aAA+B,EAC/B,OAAmB,EACnB,MAAiC;IAEjC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAoB,CAAC;IAE7C,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IAEnC,IAAI,CAAC,SAAS;QAAE,OAAO;IAEvB,MAAM,kBAAkB,GAAG,uBAAU,CAAC,YAAY,CAAC,yBAAW,CAAC,aAAa,CAAC,KAAK,CAAsB,EAAE;QACxG,UAAU,EAAE,uBAAU,CAAC,GAAG;KAC3B,CAAC,CAAC;IAEH,SAAS,CAAC,IAAI,CAAC;QACb,IAAI,EAAE,kBAAkB;QACxB,SAAS,EAAE,IAAI,KAAK,+BAAO,CAAC,IAAI;QAChC,kBAAkB,EAAE,KAAK;KAC1B,CAAC,CAAC;AACL,CAAC"}
@@ -68,7 +68,7 @@ class Builder extends BaseBuilder {
68
68
  // NOTE: Node order is important and is defined here
69
69
  const node = Object.assign(Object.assign({ bitType, bitLevel: data.bitLevel, textFormat, resourceType: ResourceTag.fromValue(data.resourceType), isCommented: data.isCommented,
70
70
  // Properties
71
- id: this.toAstProperty(PropertyConfigKey.id, data.id), internalComment: this.toAstProperty(PropertyConfigKey.internalComment, data.internalComment), customerId: this.toAstProperty(PropertyConfigKey.customerId, data.customerId), customerExternalId: this.toAstProperty(PropertyConfigKey.customerExternalId, data.customerExternalId), externalId: this.toAstProperty(PropertyConfigKey.externalId, data.externalId), spaceId: this.toAstProperty(PropertyConfigKey.spaceId, data.spaceId), padletId: this.toAstProperty(PropertyConfigKey.padletId, data.padletId), jupyterId: this.toAstProperty(PropertyConfigKey.jupyterId, data.jupyterId), jupyterExecutionCount: this.toAstProperty(PropertyConfigKey.jupyterExecutionCount, data.jupyterExecutionCount), isPublic: this.toAstProperty(PropertyConfigKey.isPublic, data.isPublic), aiGenerated: this.toAstProperty(PropertyConfigKey.aiGenerated, data.aiGenerated), machineTranslated: this.toAstProperty(PropertyConfigKey.machineTranslated, data.machineTranslated), searchIndex: this.toAstProperty(PropertyConfigKey.searchIndex, data.searchIndex), analyticsTag: this.toAstProperty(PropertyConfigKey.analyticsTag, data.analyticsTag), categoryTag: this.toAstProperty(PropertyConfigKey.categoryTag, data.categoryTag), topicTag: this.toAstProperty(PropertyConfigKey.topicTag, data.topicTag), altLangTag: this.toAstProperty(PropertyConfigKey.altLangTag, data.altLangTag), feedbackEngine: this.toAstProperty(PropertyConfigKey.feedbackEngine, data.feedbackEngine), feedbackType: this.toAstProperty(PropertyConfigKey.feedbackType, data.feedbackType), disableFeedback: this.toAstProperty(PropertyConfigKey.disableFeedback, data.disableFeedback), diffTo: this.toAstProperty(PropertyConfigKey.diffTo, data.diffTo), diffOp: this.toAstProperty(PropertyConfigKey.diffOp, data.diffOp), diffRef: this.toAstProperty(PropertyConfigKey.diffRef, data.diffRef), diffContext: this.toAstProperty(PropertyConfigKey.diffContext, data.diffContext), diffTime: this.toAstProperty(PropertyConfigKey.diffTime, data.diffTime), path: this.toAstProperty(PropertyConfigKey.path, data.path), releaseVersion: this.toAstProperty(PropertyConfigKey.releaseVersion, data.releaseVersion), releaseKind: this.toAstProperty(PropertyConfigKey.releaseKind, data.releaseKind), releaseDate: this.toAstProperty(PropertyConfigKey.releaseDate, data.releaseDate), book: this.buildBooks(context, data.book), ageRange: this.toAstProperty(PropertyConfigKey.ageRange, data.ageRange), lang: this.toAstProperty(PropertyConfigKey.lang, data.lang), language: this.toAstProperty(PropertyConfigKey.language, data.language), publisher: this.toAstProperty(PropertyConfigKey.publisher, data.publisher), publisherName: this.toAstProperty(PropertyConfigKey.publisherName, data.publisherName), theme: this.toAstProperty(PropertyConfigKey.theme, data.theme), computerLanguage: this.toAstProperty(PropertyConfigKey.computerLanguage, data.computerLanguage), target: this.toAstProperty(PropertyConfigKey.target, data.target), slug: this.toAstProperty(PropertyConfigKey.slug, data.slug), tag: this.toAstProperty(PropertyConfigKey.tag, data.tag), reductionTag: this.toAstProperty(PropertyConfigKey.reductionTag, data.reductionTag), bubbleTag: this.toAstProperty(PropertyConfigKey.bubbleTag, data.bubbleTag), levelCEFRp: this.toAstProperty(PropertyConfigKey.levelCEFRp, data.levelCEFRp), levelCEFR: this.toAstProperty(PropertyConfigKey.levelCEFR, data.levelCEFR), levelILR: this.toAstProperty(PropertyConfigKey.levelILR, data.levelILR), levelACTFL: this.toAstProperty(PropertyConfigKey.levelACTFL, data.levelACTFL), icon: this.toAstProperty(PropertyConfigKey.icon, data.icon), iconTag: this.toAstProperty(PropertyConfigKey.iconTag, data.iconTag), colorTag: this.toAstProperty(PropertyConfigKey.colorTag, data.colorTag), flashcardSet: this.toAstProperty(PropertyConfigKey.flashcardSet, data.flashcardSet), subtype: this.toAstProperty(PropertyConfigKey.subtype, data.subtype), bookAlias: this.toAstProperty(PropertyConfigKey.bookAlias, data.bookAlias), bookDiff: this.toAstProperty(PropertyConfigKey.bookDiff, data.bookDiff), coverImage: this.toAstProperty(PropertyConfigKey.coverImage, data.coverImage), coverColor: this.toAstProperty(PropertyConfigKey.coverColor, data.coverColor), publications: this.toAstProperty(PropertyConfigKey.publications, data.publications), author: this.toAstProperty(PropertyConfigKey.author, data.author), subject: this.toAstProperty(PropertyConfigKey.subject, data.subject), date: this.toAstProperty(PropertyConfigKey.date, data.date), dateEnd: this.toAstProperty(PropertyConfigKey.dateEnd, data.dateEnd), location: this.toAstProperty(PropertyConfigKey.location, data.location), kind: this.toAstProperty(PropertyConfigKey.kind, data.kind), hasMarkAsDone: this.toAstProperty(PropertyConfigKey.hasMarkAsDone, data.hasMarkAsDone), processHandIn: this.toAstProperty(PropertyConfigKey.processHandIn, data.processHandIn), chatWithBook: this.toAstProperty(PropertyConfigKey.chatWithBook, data.chatWithBook), chatWithBookBrainKey: this.toAstProperty(PropertyConfigKey.chatWithBookBrainKey, data.chatWithBookBrainKey), action: this.toAstProperty(PropertyConfigKey.action, data.action), showInIndex: this.toAstProperty(PropertyConfigKey.showInIndex, data.showInIndex), refAuthor: this.toAstProperty(PropertyConfigKey.refAuthor, data.refAuthor), refBookTitle: this.toAstProperty(PropertyConfigKey.refBookTitle, data.refBookTitle), refPublisher: this.toAstProperty(PropertyConfigKey.refPublisher, data.refPublisher), refPublicationYear: this.toAstProperty(PropertyConfigKey.refPublicationYear, data.refPublicationYear), citationStyle: this.toAstProperty(PropertyConfigKey.citationStyle, data.citationStyle), blockId: this.toAstProperty(PropertyConfigKey.blockId, data.blockId), pageNo: this.toAstProperty(PropertyConfigKey.pageNo, data.pageNo), x: this.toAstProperty(PropertyConfigKey.x, data.x), y: this.toAstProperty(PropertyConfigKey.y, data.y), width: this.toAstProperty(PropertyConfigKey.width, data.width), height: this.toAstProperty(PropertyConfigKey.height, data.height), index: this.toAstProperty(PropertyConfigKey.index, data.index), classification: this.toAstProperty(PropertyConfigKey.classification, data.classification), availableClassifications: this.toAstProperty(PropertyConfigKey.availableClassifications, data.availableClassifications), allowedBit: this.toAstProperty(PropertyConfigKey.allowedBit, data.allowedBit), tableFixedHeader: this.toAstProperty(PropertyConfigKey.tableFixedHeader, data.tableFixedHeader), tableSearch: this.toAstProperty(PropertyConfigKey.tableSearch, data.tableSearch), tableSort: this.toAstProperty(PropertyConfigKey.tableSort, data.tableSort), tablePagination: this.toAstProperty(PropertyConfigKey.tablePagination, data.tablePagination), tablePaginationLimit: this.toAstProperty(PropertyConfigKey.tablePaginationLimit, data.tablePaginationLimit), tableHeight: this.toAstProperty(PropertyConfigKey.tableHeight, data.tableHeight), tableWhitespaceNoWrap: this.toAstProperty(PropertyConfigKey.tableWhitespaceNoWrap, data.tableWhitespaceNoWrap), tableAutoWidth: this.toAstProperty(PropertyConfigKey.tableAutoWidth, data.tableAutoWidth), tableResizableColumns: this.toAstProperty(PropertyConfigKey.tableResizableColumns, data.tableResizableColumns), tableColumnMinWidth: this.toAstProperty(PropertyConfigKey.tableColumnMinWidth, data.tableColumnMinWidth), quizCountItems: this.toAstProperty(PropertyConfigKey.quizCountItems, data.quizCountItems), quizStrikethroughSolutions: this.toAstProperty(PropertyConfigKey.quizStrikethroughSolutions, data.quizStrikethroughSolutions), codeLineNumbers: this.toAstProperty(PropertyConfigKey.codeLineNumbers, data.codeLineNumbers), codeMinimap: this.toAstProperty(PropertyConfigKey.codeMinimap, data.codeMinimap), stripePricingTableId: this.toAstProperty(PropertyConfigKey.stripePricingTableId, data.stripePricingTableId), stripePublishableKey: this.toAstProperty(PropertyConfigKey.stripePublishableKey, data.stripePublishableKey), thumbImage: this.toAstProperty(PropertyConfigKey.thumbImage, data.thumbImage), scormSource: this.toAstProperty(PropertyConfigKey.scormSource, data.scormSource), posterImage: this.toAstProperty(PropertyConfigKey.posterImage, data.posterImage), focusX: this.toAstProperty(PropertyConfigKey.focusX, data.focusX), focusY: this.toAstProperty(PropertyConfigKey.focusY, data.focusY), pointerLeft: this.toAstProperty(PropertyConfigKey.pointerLeft, data.pointerLeft), pointerTop: this.toAstProperty(PropertyConfigKey.pointerTop, data.pointerTop), listItemIndent: this.toAstProperty(PropertyConfigKey.listItemIndent, data.listItemIndent), backgroundWallpaper: this.toAstProperty(PropertyConfigKey.backgroundWallpaper, data.backgroundWallpaper), hasBookNavigation: this.toAstProperty(PropertyConfigKey.hasBookNavigation, data.hasBookNavigation), duration: this.toAstProperty(PropertyConfigKey.duration, data.duration), deeplink: this.toAstProperty(PropertyConfigKey.deeplink, data.deeplink), externalLink: this.toAstProperty(PropertyConfigKey.externalLink, data.externalLink), externalLinkText: this.toAstProperty(PropertyConfigKey.externalLinkText, data.externalLinkText), videoCallLink: this.toAstProperty(PropertyConfigKey.videoCallLink, data.videoCallLink), vendorDashboardId: this.toAstProperty(PropertyConfigKey.vendorDashboardId, data.vendorDashboardId), vendorSurveyId: this.toAstProperty(PropertyConfigKey.vendorSurveyId, data.vendorSurveyId), vendorUrl: this.toAstProperty(PropertyConfigKey.vendorUrl, data.vendorUrl), search: this.toAstProperty(PropertyConfigKey.search, data.search), list: this.toAstProperty(PropertyConfigKey.list, data.list), textReference: this.toAstProperty(PropertyConfigKey.textReference, data.textReference), isTracked: this.toAstProperty(PropertyConfigKey.isTracked, data.isTracked), isInfoOnly: this.toAstProperty(PropertyConfigKey.isInfoOnly, data.isInfoOnly), imageFirst: this.toAstProperty(PropertyConfigKey.imageFirst, data.imageFirst), activityType: this.toAstProperty(PropertyConfigKey.activityType, data.activityType), labelTrue: this.toAstProperty(PropertyConfigKey.labelTrue, data.labelTrue), labelFalse: this.toAstProperty(PropertyConfigKey.labelFalse, data.labelFalse), content2Buy: this.toAstProperty(PropertyConfigKey.content2Buy, data.content2Buy), mailingList: this.toAstProperty(PropertyConfigKey.mailingList, data.mailingList), buttonCaption: this.toAstProperty(PropertyConfigKey.buttonCaption, data.buttonCaption), callToActionUrl: this.toAstProperty(PropertyConfigKey.callToActionUrl, data.callToActionUrl), caption: this.handleJsonText(context, true, data.caption), quotedPerson: this.toAstProperty(PropertyConfigKey.quotedPerson, data.quotedPerson), reasonableNumOfChars: reasonableNumOfCharsProperty, resolved: this.toAstProperty(PropertyConfigKey.resolved, data.resolved), resolvedDate: this.toAstProperty(PropertyConfigKey.resolvedDate, data.resolvedDate), resolvedBy: this.toAstProperty(PropertyConfigKey.resolvedBy, data.resolvedBy), handInAcceptFileType: this.toAstProperty(PropertyConfigKey.handInAcceptFileType, data.handInAcceptFileType), handInRequirement: this.toAstProperty(PropertyConfigKey.handInRequirement, data.handInRequirement), handInInstruction: this.toAstProperty(PropertyConfigKey.handInInstruction, data.handInInstruction), maxCreatedBits: this.toAstProperty(PropertyConfigKey.maxCreatedBits, data.maxCreatedBits), maxDisplayLevel: this.toAstProperty(PropertyConfigKey.maxDisplayLevel, data.maxDisplayLevel), maxTocChapterLevel: this.toAstProperty(PropertyConfigKey.maxTocChapterLevel, data.maxTocChapterLevel), page: this.toAstProperty(PropertyConfigKey.page, data.page), productId: this.toAstProperty(PropertyConfigKey.productId, data.productId), product: this.toAstProperty(PropertyConfigKey.product, data.product), productList: this.toAstProperty(PropertyConfigKey.productList, data.productList), productVideo: this.toAstProperty(PropertyConfigKey.productVideo, data.productVideo), productVideoList: this.toAstProperty(PropertyConfigKey.productVideoList, data.productVideoList), productFolder: this.toAstProperty(PropertyConfigKey.productFolder, data.productFolder), technicalTerm: this.buildTechnicalTerm(context, data.technicalTerm), servings: this.buildServings(context, data.servings), ratingLevelStart: this.buildRatingLevelStartEnd(context, data.ratingLevelStart), ratingLevelEnd: this.buildRatingLevelStartEnd(context, data.ratingLevelEnd), ratingLevelSelected: this.toAstProperty(PropertyConfigKey.ratingLevelSelected, data.ratingLevelSelected), markConfig: this.buildMarkConfigs(context, data.markConfig), imageSource: this.buildImageSource(context, data.imageSource), person: this.buildPerson(context, data.person), bot: this.toAstProperty(PropertyConfigKey.bot, data.bot), referenceProperty: this.toAstProperty(PropertyConfigKey.property_reference, data.referenceProperty),
71
+ id: this.toAstProperty(PropertyConfigKey.id, data.id), internalComment: this.toAstProperty(PropertyConfigKey.internalComment, data.internalComment), customerId: this.toAstProperty(PropertyConfigKey.customerId, data.customerId), customerExternalId: this.toAstProperty(PropertyConfigKey.customerExternalId, data.customerExternalId), externalId: this.toAstProperty(PropertyConfigKey.externalId, data.externalId), spaceId: this.toAstProperty(PropertyConfigKey.spaceId, data.spaceId), padletId: this.toAstProperty(PropertyConfigKey.padletId, data.padletId), jupyterId: this.toAstProperty(PropertyConfigKey.jupyterId, data.jupyterId), jupyterExecutionCount: this.toAstProperty(PropertyConfigKey.jupyterExecutionCount, data.jupyterExecutionCount), isPublic: this.toAstProperty(PropertyConfigKey.isPublic, data.isPublic), aiGenerated: this.toAstProperty(PropertyConfigKey.aiGenerated, data.aiGenerated), machineTranslated: this.toAstProperty(PropertyConfigKey.machineTranslated, data.machineTranslated), searchIndex: this.toAstProperty(PropertyConfigKey.searchIndex, data.searchIndex), analyticsTag: this.toAstProperty(PropertyConfigKey.analyticsTag, data.analyticsTag), categoryTag: this.toAstProperty(PropertyConfigKey.categoryTag, data.categoryTag), topicTag: this.toAstProperty(PropertyConfigKey.topicTag, data.topicTag), altLangTag: this.toAstProperty(PropertyConfigKey.altLangTag, data.altLangTag), feedbackEngine: this.toAstProperty(PropertyConfigKey.feedbackEngine, data.feedbackEngine), feedbackType: this.toAstProperty(PropertyConfigKey.feedbackType, data.feedbackType), disableFeedback: this.toAstProperty(PropertyConfigKey.disableFeedback, data.disableFeedback), diffTo: this.toAstProperty(PropertyConfigKey.diffTo, data.diffTo), diffOp: this.toAstProperty(PropertyConfigKey.diffOp, data.diffOp), diffRef: this.toAstProperty(PropertyConfigKey.diffRef, data.diffRef), diffContext: this.toAstProperty(PropertyConfigKey.diffContext, data.diffContext), diffTime: this.toAstProperty(PropertyConfigKey.diffTime, data.diffTime), path: this.toAstProperty(PropertyConfigKey.path, data.path), releaseVersion: this.toAstProperty(PropertyConfigKey.releaseVersion, data.releaseVersion), releaseKind: this.toAstProperty(PropertyConfigKey.releaseKind, data.releaseKind), releaseDate: this.toAstProperty(PropertyConfigKey.releaseDate, data.releaseDate), book: this.buildBooks(context, data.book), ageRange: this.toAstProperty(PropertyConfigKey.ageRange, data.ageRange), lang: this.toAstProperty(PropertyConfigKey.lang, data.lang), language: this.toAstProperty(PropertyConfigKey.language, data.language), publisher: this.toAstProperty(PropertyConfigKey.publisher, data.publisher), publisherName: this.toAstProperty(PropertyConfigKey.publisherName, data.publisherName), theme: this.toAstProperty(PropertyConfigKey.theme, data.theme), computerLanguage: this.toAstProperty(PropertyConfigKey.computerLanguage, data.computerLanguage), target: this.toAstProperty(PropertyConfigKey.target, data.target), slug: this.toAstProperty(PropertyConfigKey.slug, data.slug), tag: this.toAstProperty(PropertyConfigKey.tag, data.tag), reductionTag: this.toAstProperty(PropertyConfigKey.reductionTag, data.reductionTag), bubbleTag: this.toAstProperty(PropertyConfigKey.bubbleTag, data.bubbleTag), levelCEFRp: this.toAstProperty(PropertyConfigKey.levelCEFRp, data.levelCEFRp), levelCEFR: this.toAstProperty(PropertyConfigKey.levelCEFR, data.levelCEFR), levelILR: this.toAstProperty(PropertyConfigKey.levelILR, data.levelILR), levelACTFL: this.toAstProperty(PropertyConfigKey.levelACTFL, data.levelACTFL), icon: this.toAstProperty(PropertyConfigKey.icon, data.icon), iconTag: this.toAstProperty(PropertyConfigKey.iconTag, data.iconTag), colorTag: this.toAstProperty(PropertyConfigKey.colorTag, data.colorTag), flashcardSet: this.toAstProperty(PropertyConfigKey.flashcardSet, data.flashcardSet), subtype: this.toAstProperty(PropertyConfigKey.subtype, data.subtype), bookAlias: this.toAstProperty(PropertyConfigKey.bookAlias, data.bookAlias), bookDiff: this.toAstProperty(PropertyConfigKey.bookDiff, data.bookDiff), coverImage: this.toAstProperty(PropertyConfigKey.coverImage, data.coverImage), coverColor: this.toAstProperty(PropertyConfigKey.coverColor, data.coverColor), publications: this.toAstProperty(PropertyConfigKey.publications, data.publications), author: this.toAstProperty(PropertyConfigKey.author, data.author), subject: this.toAstProperty(PropertyConfigKey.subject, data.subject), date: this.toAstProperty(PropertyConfigKey.date, data.date), dateEnd: this.toAstProperty(PropertyConfigKey.dateEnd, data.dateEnd), location: this.toAstProperty(PropertyConfigKey.location, data.location), kind: this.toAstProperty(PropertyConfigKey.kind, data.kind), hasMarkAsDone: this.toAstProperty(PropertyConfigKey.hasMarkAsDone, data.hasMarkAsDone), processHandIn: this.toAstProperty(PropertyConfigKey.processHandIn, data.processHandIn), chatWithBook: this.toAstProperty(PropertyConfigKey.chatWithBook, data.chatWithBook), chatWithBookBrainKey: this.toAstProperty(PropertyConfigKey.chatWithBookBrainKey, data.chatWithBookBrainKey), action: this.toAstProperty(PropertyConfigKey.action, data.action), showInIndex: this.toAstProperty(PropertyConfigKey.showInIndex, data.showInIndex), refAuthor: this.toAstProperty(PropertyConfigKey.refAuthor, data.refAuthor), refBookTitle: this.toAstProperty(PropertyConfigKey.refBookTitle, data.refBookTitle), refPublisher: this.toAstProperty(PropertyConfigKey.refPublisher, data.refPublisher), refPublicationYear: this.toAstProperty(PropertyConfigKey.refPublicationYear, data.refPublicationYear), citationStyle: this.toAstProperty(PropertyConfigKey.citationStyle, data.citationStyle), blockId: this.toAstProperty(PropertyConfigKey.blockId, data.blockId), pageNo: this.toAstProperty(PropertyConfigKey.pageNo, data.pageNo), x: this.toAstProperty(PropertyConfigKey.x, data.x), y: this.toAstProperty(PropertyConfigKey.y, data.y), width: this.toAstProperty(PropertyConfigKey.width, data.width), height: this.toAstProperty(PropertyConfigKey.height, data.height), index: this.toAstProperty(PropertyConfigKey.index, data.index), classification: this.toAstProperty(PropertyConfigKey.classification, data.classification), availableClassifications: this.toAstProperty(PropertyConfigKey.availableClassifications, data.availableClassifications), allowedBit: this.toAstProperty(PropertyConfigKey.allowedBit, data.allowedBit), tableFixedHeader: this.toAstProperty(PropertyConfigKey.tableFixedHeader, data.tableFixedHeader), tableSearch: this.toAstProperty(PropertyConfigKey.tableSearch, data.tableSearch), tableSort: this.toAstProperty(PropertyConfigKey.tableSort, data.tableSort), tablePagination: this.toAstProperty(PropertyConfigKey.tablePagination, data.tablePagination), tablePaginationLimit: this.toAstProperty(PropertyConfigKey.tablePaginationLimit, data.tablePaginationLimit), tableHeight: this.toAstProperty(PropertyConfigKey.tableHeight, data.tableHeight), tableWhitespaceNoWrap: this.toAstProperty(PropertyConfigKey.tableWhitespaceNoWrap, data.tableWhitespaceNoWrap), tableAutoWidth: this.toAstProperty(PropertyConfigKey.tableAutoWidth, data.tableAutoWidth), tableResizableColumns: this.toAstProperty(PropertyConfigKey.tableResizableColumns, data.tableResizableColumns), tableColumnMinWidth: this.toAstProperty(PropertyConfigKey.tableColumnMinWidth, data.tableColumnMinWidth), quizCountItems: this.toAstProperty(PropertyConfigKey.quizCountItems, data.quizCountItems), quizStrikethroughSolutions: this.toAstProperty(PropertyConfigKey.quizStrikethroughSolutions, data.quizStrikethroughSolutions), codeLineNumbers: this.toAstProperty(PropertyConfigKey.codeLineNumbers, data.codeLineNumbers), codeMinimap: this.toAstProperty(PropertyConfigKey.codeMinimap, data.codeMinimap), stripePricingTableId: this.toAstProperty(PropertyConfigKey.stripePricingTableId, data.stripePricingTableId), stripePublishableKey: this.toAstProperty(PropertyConfigKey.stripePublishableKey, data.stripePublishableKey), thumbImage: this.toAstProperty(PropertyConfigKey.thumbImage, data.thumbImage), scormSource: this.toAstProperty(PropertyConfigKey.scormSource, data.scormSource), posterImage: this.toAstProperty(PropertyConfigKey.posterImage, data.posterImage), focusX: this.toAstProperty(PropertyConfigKey.focusX, data.focusX), focusY: this.toAstProperty(PropertyConfigKey.focusY, data.focusY), pointerLeft: this.toAstProperty(PropertyConfigKey.pointerLeft, data.pointerLeft), pointerTop: this.toAstProperty(PropertyConfigKey.pointerTop, data.pointerTop), listItemIndent: this.toAstProperty(PropertyConfigKey.listItemIndent, data.listItemIndent), backgroundWallpaper: this.toAstProperty(PropertyConfigKey.backgroundWallpaper, data.backgroundWallpaper), hasBookNavigation: this.toAstProperty(PropertyConfigKey.hasBookNavigation, data.hasBookNavigation), duration: this.toAstProperty(PropertyConfigKey.duration, data.duration), deeplink: this.toAstProperty(PropertyConfigKey.deeplink, data.deeplink), externalLink: this.toAstProperty(PropertyConfigKey.externalLink, data.externalLink), externalLinkText: this.toAstProperty(PropertyConfigKey.externalLinkText, data.externalLinkText), videoCallLink: this.toAstProperty(PropertyConfigKey.videoCallLink, data.videoCallLink), vendorDashboardId: this.toAstProperty(PropertyConfigKey.vendorDashboardId, data.vendorDashboardId), vendorSurveyId: this.toAstProperty(PropertyConfigKey.vendorSurveyId, data.vendorSurveyId), vendorUrl: this.toAstProperty(PropertyConfigKey.vendorUrl, data.vendorUrl), search: this.toAstProperty(PropertyConfigKey.search, data.search), list: this.toAstProperty(PropertyConfigKey.list, data.list), layer: this.toAstProperty(PropertyConfigKey.layer, data.layer), textReference: this.toAstProperty(PropertyConfigKey.textReference, data.textReference), isTracked: this.toAstProperty(PropertyConfigKey.isTracked, data.isTracked), isInfoOnly: this.toAstProperty(PropertyConfigKey.isInfoOnly, data.isInfoOnly), imageFirst: this.toAstProperty(PropertyConfigKey.imageFirst, data.imageFirst), activityType: this.toAstProperty(PropertyConfigKey.activityType, data.activityType), labelTrue: this.toAstProperty(PropertyConfigKey.labelTrue, data.labelTrue), labelFalse: this.toAstProperty(PropertyConfigKey.labelFalse, data.labelFalse), content2Buy: this.toAstProperty(PropertyConfigKey.content2Buy, data.content2Buy), mailingList: this.toAstProperty(PropertyConfigKey.mailingList, data.mailingList), buttonCaption: this.toAstProperty(PropertyConfigKey.buttonCaption, data.buttonCaption), callToActionUrl: this.toAstProperty(PropertyConfigKey.callToActionUrl, data.callToActionUrl), caption: this.handleJsonText(context, true, data.caption), quotedPerson: this.toAstProperty(PropertyConfigKey.quotedPerson, data.quotedPerson), reasonableNumOfChars: reasonableNumOfCharsProperty, resolved: this.toAstProperty(PropertyConfigKey.resolved, data.resolved), resolvedDate: this.toAstProperty(PropertyConfigKey.resolvedDate, data.resolvedDate), resolvedBy: this.toAstProperty(PropertyConfigKey.resolvedBy, data.resolvedBy), handInAcceptFileType: this.toAstProperty(PropertyConfigKey.handInAcceptFileType, data.handInAcceptFileType), handInRequirement: this.toAstProperty(PropertyConfigKey.handInRequirement, data.handInRequirement), handInInstruction: this.toAstProperty(PropertyConfigKey.handInInstruction, data.handInInstruction), maxCreatedBits: this.toAstProperty(PropertyConfigKey.maxCreatedBits, data.maxCreatedBits), maxDisplayLevel: this.toAstProperty(PropertyConfigKey.maxDisplayLevel, data.maxDisplayLevel), maxTocChapterLevel: this.toAstProperty(PropertyConfigKey.maxTocChapterLevel, data.maxTocChapterLevel), page: this.toAstProperty(PropertyConfigKey.page, data.page), productId: this.toAstProperty(PropertyConfigKey.productId, data.productId), product: this.toAstProperty(PropertyConfigKey.product, data.product), productList: this.toAstProperty(PropertyConfigKey.productList, data.productList), productVideo: this.toAstProperty(PropertyConfigKey.productVideo, data.productVideo), productVideoList: this.toAstProperty(PropertyConfigKey.productVideoList, data.productVideoList), productFolder: this.toAstProperty(PropertyConfigKey.productFolder, data.productFolder), technicalTerm: this.buildTechnicalTerm(context, data.technicalTerm), servings: this.buildServings(context, data.servings), ratingLevelStart: this.buildRatingLevelStartEnd(context, data.ratingLevelStart), ratingLevelEnd: this.buildRatingLevelStartEnd(context, data.ratingLevelEnd), ratingLevelSelected: this.toAstProperty(PropertyConfigKey.ratingLevelSelected, data.ratingLevelSelected), markConfig: this.buildMarkConfigs(context, data.markConfig), imageSource: this.buildImageSource(context, data.imageSource), person: this.buildPerson(context, data.person), bot: this.toAstProperty(PropertyConfigKey.bot, data.bot), referenceProperty: this.toAstProperty(PropertyConfigKey.property_reference, data.referenceProperty),
72
72
  // Book data
73
73
  title: this.handleJsonText(context, true, data.title), subtitle: this.handleJsonText(context, true, data.subtitle), level: NumberUtils.asNumber(data.level), toc: this.toAstProperty(PropertyConfigKey.toc, data.toc), progress: this.toAstProperty(PropertyConfigKey.progress, data.progress), anchor: data.anchor, reference: data.reference, referenceEnd: data.referenceEnd, revealSolutions: this.toAstProperty(PropertyConfigKey.revealSolutions, data.revealSolutions),
74
74
  // Item, Lead, Hint, Instruction
@@ -458,17 +458,17 @@ class Builder extends BaseBuilder {
458
458
  * @returns
459
459
  */
460
460
  buildPair(context, data) {
461
- var _a, _b, _c, _d;
461
+ var _a, _b;
462
462
  if (!data)
463
463
  return undefined;
464
464
  // Set default example
465
465
  const defaultExample = Array.isArray(data.__valuesAst) && data.__valuesAst.length > 0 ? data.__valuesAst[0] : null;
466
466
  // Process the keyAudio and keyImage resources
467
- const keyAudio = (_a = ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(context, ResourceTag.audio, data.keyAudio))) === null || _a === void 0 ? void 0 : _a.audio;
468
- const keyImage = (_b = ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(context, ResourceTag.image, data.keyImage))) === null || _b === void 0 ? void 0 : _b.image;
467
+ const keyAudio = this.resourceBuilder.resourceFromResourceJson(context, data.keyAudio);
468
+ const keyImage = this.resourceBuilder.resourceFromResourceJson(context, data.keyImage);
469
469
  // NOTE: Node order is important and is defined here
470
- const node = Object.assign(Object.assign({ key: (_c = data.key) !== null && _c !== void 0 ? _c : '', keyAudio,
471
- keyImage, item: this.handleJsonText(context, true, data.item), lead: this.handleJsonText(context, true, data.lead), hint: this.handleJsonText(context, true, data.hint), instruction: this.handleJsonText(context, true, data.instruction), isCaseSensitive: data.isCaseSensitive }, this.toExample(data.__isDefaultExample, data.example, defaultExample)), { values: (_d = data.values) !== null && _d !== void 0 ? _d : [], __valuesAst: data.__valuesAst });
470
+ const node = Object.assign(Object.assign({ key: (_a = data.key) !== null && _a !== void 0 ? _a : '', keyAudio,
471
+ keyImage, item: this.handleJsonText(context, true, data.item), lead: this.handleJsonText(context, true, data.lead), hint: this.handleJsonText(context, true, data.hint), instruction: this.handleJsonText(context, true, data.instruction), isCaseSensitive: data.isCaseSensitive }, this.toExample(data.__isDefaultExample, data.example, defaultExample)), { values: (_b = data.values) !== null && _b !== void 0 ? _b : [], __valuesAst: data.__valuesAst });
472
472
  // Remove Unset Optionals
473
473
  ObjectUtils.removeUnwantedProperties(node, {
474
474
  ignoreAllFalse: true,
@@ -1128,8 +1128,7 @@ class Builder extends BaseBuilder {
1128
1128
  return node;
1129
1129
  }
1130
1130
  buildTextAndIcon(context, data, textAsStrings = false) {
1131
- var _a;
1132
- const icon = (_a = ArrayUtils.asSingle(this.resourceBuilder.resourceFromResourceDataJson(context, ResourceTag.image, data === null || data === void 0 ? void 0 : data.icon))) === null || _a === void 0 ? void 0 : _a.image;
1131
+ const icon = this.resourceBuilder.resourceFromResourceJson(context, data === null || data === void 0 ? void 0 : data.icon);
1133
1132
  // Ensure text is bitmark text
1134
1133
  let text = this.handleJsonText(context, true, data === null || data === void 0 ? void 0 : data.text);
1135
1134
  if (textAsStrings) {
@@ -1301,58 +1300,61 @@ class Builder extends BaseBuilder {
1301
1300
  });
1302
1301
  return node;
1303
1302
  }
1304
- /**
1305
- * Build captionDefinition node
1306
- *
1307
- * @param data - data for the node
1308
- * @returns
1309
- */
1310
- buildCaptionDefinition(_context, data) {
1311
- var _a, _b;
1312
- if (!data)
1313
- return undefined;
1314
- // NOTE: Node order is important and is defined here
1315
- const node = {
1316
- // term: this.convertJsonTextToAstText(data.term),
1317
- // description: this.convertJsonTextToAstText(data.description),
1318
- term: (_a = data.term) !== null && _a !== void 0 ? _a : '',
1319
- definition: (_b = data.definition) !== null && _b !== void 0 ? _b : '',
1320
- };
1321
- // Remove Unset Optionals
1322
- ObjectUtils.removeUnwantedProperties(node, {
1323
- ignoreEmptyString: ['term', 'description'],
1324
- // ignoreAllUndefined: true,
1325
- });
1326
- return node;
1327
- }
1328
- /**
1329
- * Build captionDefinitionList node
1330
- *
1331
- * @param data - data for the node
1332
- * @returns
1333
- */
1334
- buildCaptionDefinitionList(context, data) {
1335
- var _a, _b;
1336
- if (!data)
1337
- return undefined;
1338
- // NOTE: Node order is important and is defined here
1339
- const node = {
1340
- columns: (_a = data.columns) !== null && _a !== void 0 ? _a : [],
1341
- definitions: ((_b = data.definitions) !== null && _b !== void 0 ? _b : [])
1342
- .map((d) => {
1343
- return this.buildCaptionDefinition(context, {
1344
- term: d.term,
1345
- definition: d.definition,
1346
- });
1347
- })
1348
- .filter((d) => d != null),
1349
- };
1350
- // Remove Unset Optionals
1351
- ObjectUtils.removeUnwantedProperties(node, {
1352
- ignoreAllEmptyArrays: true,
1353
- });
1354
- return node;
1355
- }
1303
+ // DEPRECATED - TO BE REMOVED IN FUTURE
1304
+ // /**
1305
+ // * Build captionDefinition node
1306
+ // *
1307
+ // * @param data - data for the node
1308
+ // * @returns
1309
+ // */
1310
+ // protected buildCaptionDefinition(
1311
+ // _context: BuildContext,
1312
+ // data: Partial<CaptionDefinitionJson> | undefined,
1313
+ // ): CaptionDefinitionJson | undefined {
1314
+ // if (!data) return undefined;
1315
+ // // NOTE: Node order is important and is defined here
1316
+ // const node: CaptionDefinitionJson = {
1317
+ // // term: this.convertJsonTextToAstText(data.term),
1318
+ // // description: this.convertJsonTextToAstText(data.description),
1319
+ // term: data.term ?? '',
1320
+ // definition: data.definition ?? '',
1321
+ // };
1322
+ // // Remove Unset Optionals
1323
+ // ObjectUtils.removeUnwantedProperties(node, {
1324
+ // ignoreEmptyString: ['term', 'description'],
1325
+ // // ignoreAllUndefined: true,
1326
+ // });
1327
+ // return node;
1328
+ // }
1329
+ // /**
1330
+ // * Build captionDefinitionList node
1331
+ // *
1332
+ // * @param data - data for the node
1333
+ // * @returns
1334
+ // */
1335
+ // protected buildCaptionDefinitionList(
1336
+ // context: BuildContext,
1337
+ // data: Partial<CaptionDefinitionListJson> | undefined,
1338
+ // ): CaptionDefinitionListJson | undefined {
1339
+ // if (!data) return undefined;
1340
+ // // NOTE: Node order is important and is defined here
1341
+ // const node: CaptionDefinitionListJson = {
1342
+ // columns: data.columns ?? [],
1343
+ // definitions: (data.definitions ?? [])
1344
+ // .map((d) => {
1345
+ // return this.buildCaptionDefinition(context, {
1346
+ // term: d.term,
1347
+ // definition: d.definition,
1348
+ // });
1349
+ // })
1350
+ // .filter((d) => d != null),
1351
+ // };
1352
+ // // Remove Unset Optionals
1353
+ // ObjectUtils.removeUnwantedProperties(node, {
1354
+ // ignoreAllEmptyArrays: true,
1355
+ // });
1356
+ // return node;
1357
+ // }
1356
1358
  /**
1357
1359
  * Build card bit[] node
1358
1360
  *
@@ -1402,12 +1404,13 @@ class Builder extends BaseBuilder {
1402
1404
  // Private
1403
1405
  //
1404
1406
  buildCardNode(context, data) {
1407
+ var _a;
1405
1408
  const node = {
1406
1409
  heading: this.buildHeading(context, data.heading),
1407
1410
  questions: this.buildQuestions(context, data.questions),
1408
1411
  elements: data.elements,
1409
1412
  flashcards: this.buildFlashcards(context, data.flashcards),
1410
- definitions: this.buildDefinitionList(context, data.definitions),
1413
+ definitions: this.buildDefinitionList(context, (_a = data.definitions) !== null && _a !== void 0 ? _a : data.legend),
1411
1414
  statement: this.buildStatement(context, data.statement),
1412
1415
  statements: this.buildStatements(context, data.statements),
1413
1416
  choices: this.buildChoices(context, data.choices),
@@ -1420,7 +1423,8 @@ class Builder extends BaseBuilder {
1420
1423
  table: this.buildTable(context, data.table),
1421
1424
  botResponses: this.buildBotResponses(context, data.botResponses),
1422
1425
  ingredients: this.buildIngredients(context, data.ingredients),
1423
- captionDefinitionList: this.buildCaptionDefinitionList(context, data.captionDefinitionList),
1426
+ // DEPRECATED - TO BE REMOVED IN FUTURE
1427
+ // captionDefinitionList: this.buildCaptionDefinitionList(context, data.captionDefinitionList),
1424
1428
  cardBits: this.buildCardBits(context, data.cardBits),
1425
1429
  };
1426
1430
  // Remove Unset Optionals