@gmb/bitmark-parser-generator 1.5.14 → 1.5.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/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/cjs/ast/BaseBuilder.js +8 -1
- package/dist/cjs/ast/BaseBuilder.js.map +1 -1
- package/dist/cjs/ast/Builder.js +50 -7
- package/dist/cjs/ast/Builder.js.map +1 -1
- package/dist/cjs/config/raw/bits.js +139 -15
- package/dist/cjs/config/raw/bits.js.map +1 -1
- package/dist/cjs/config/raw/cardSets.js +32 -0
- package/dist/cjs/config/raw/cardSets.js.map +1 -1
- package/dist/cjs/config/raw/groups.js +35 -1
- package/dist/cjs/config/raw/groups.js.map +1 -1
- package/dist/cjs/config/raw/properties.js +86 -0
- package/dist/cjs/config/raw/properties.js.map +1 -1
- package/dist/cjs/generated/build-info.js +1 -1
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js +70 -7
- package/dist/cjs/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/cjs/generator/json/JsonGenerator.js +123 -12
- package/dist/cjs/generator/json/JsonGenerator.js.map +1 -1
- package/dist/cjs/model/ast/NodeType.js +34 -2
- package/dist/cjs/model/ast/NodeType.js.map +1 -1
- package/dist/cjs/model/config/enum/CardSetConfigKey.js +1 -0
- package/dist/cjs/model/config/enum/CardSetConfigKey.js.map +1 -1
- package/dist/cjs/model/config/enum/GroupConfigKey.js +2 -1
- package/dist/cjs/model/config/enum/GroupConfigKey.js.map +1 -1
- package/dist/cjs/model/config/enum/PropertyConfigKey.js +18 -1
- package/dist/cjs/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/cjs/model/enum/BitType.js +14 -0
- package/dist/cjs/model/enum/BitType.js.map +1 -1
- package/dist/cjs/model/enum/PropertyTag.js +18 -1
- package/dist/cjs/model/enum/PropertyTag.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js +1 -1
- package/dist/cjs/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +33 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/{PartnerChainContentProcessor.js → PersonChainContentProcessor.js} +13 -10
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +14 -4
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +25 -0
- package/dist/cjs/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -0
- package/dist/cjs/parser/json/JsonParser.js +55 -13
- package/dist/cjs/parser/json/JsonParser.js.map +1 -1
- package/dist/cjs/utils/NumberUtils.js +40 -4
- package/dist/cjs/utils/NumberUtils.js.map +1 -1
- package/dist/esm/ast/BaseBuilder.js +8 -1
- package/dist/esm/ast/BaseBuilder.js.map +1 -1
- package/dist/esm/ast/Builder.js +50 -7
- package/dist/esm/ast/Builder.js.map +1 -1
- package/dist/esm/config/raw/bits.js +139 -15
- package/dist/esm/config/raw/bits.js.map +1 -1
- package/dist/esm/config/raw/cardSets.js +32 -0
- package/dist/esm/config/raw/cardSets.js.map +1 -1
- package/dist/esm/config/raw/groups.js +35 -1
- package/dist/esm/config/raw/groups.js.map +1 -1
- package/dist/esm/config/raw/properties.js +86 -0
- package/dist/esm/config/raw/properties.js.map +1 -1
- package/dist/esm/generated/build-info.js +1 -1
- package/dist/esm/generator/bitmark/BitmarkGenerator.js +70 -7
- package/dist/esm/generator/bitmark/BitmarkGenerator.js.map +1 -1
- package/dist/esm/generator/json/JsonGenerator.js +123 -12
- package/dist/esm/generator/json/JsonGenerator.js.map +1 -1
- package/dist/esm/model/ast/NodeType.js +34 -2
- package/dist/esm/model/ast/NodeType.js.map +1 -1
- package/dist/esm/model/config/enum/CardSetConfigKey.js +1 -0
- package/dist/esm/model/config/enum/CardSetConfigKey.js.map +1 -1
- package/dist/esm/model/config/enum/GroupConfigKey.js +2 -1
- package/dist/esm/model/config/enum/GroupConfigKey.js.map +1 -1
- package/dist/esm/model/config/enum/PropertyConfigKey.js +18 -1
- package/dist/esm/model/config/enum/PropertyConfigKey.js.map +1 -1
- package/dist/esm/model/enum/BitType.js +14 -0
- package/dist/esm/model/enum/BitType.js.map +1 -1
- package/dist/esm/model/enum/PropertyTag.js +18 -1
- package/dist/esm/model/enum/PropertyTag.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserTypes.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js +1 -1
- package/dist/esm/parser/bitmark/peg/BitmarkPegParserValidator.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js +33 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/CardContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/{PartnerChainContentProcessor.js → PersonChainContentProcessor.js} +12 -9
- package/dist/esm/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.js.map +1 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js +14 -4
- package/dist/esm/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.js.map +1 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js +22 -0
- package/dist/esm/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.js.map +1 -0
- package/dist/esm/parser/json/JsonParser.js +55 -13
- package/dist/esm/parser/json/JsonParser.js.map +1 -1
- package/dist/esm/utils/NumberUtils.js +40 -4
- package/dist/esm/utils/NumberUtils.js.map +1 -1
- package/dist/types/ast/BaseBuilder.d.ts.map +1 -1
- package/dist/types/ast/Builder.d.ts +43 -5
- package/dist/types/ast/Builder.d.ts.map +1 -1
- package/dist/types/config/raw/bits.d.ts.map +1 -1
- package/dist/types/config/raw/cardSets.d.ts.map +1 -1
- package/dist/types/config/raw/groups.d.ts.map +1 -1
- package/dist/types/config/raw/properties.d.ts.map +1 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts +6 -1
- package/dist/types/generator/bitmark/BitmarkGenerator.d.ts.map +1 -1
- package/dist/types/generator/json/JsonGenerator.d.ts +5 -2
- package/dist/types/generator/json/JsonGenerator.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/ast/NodeType.d.ts +64 -2
- package/dist/types/model/ast/NodeType.d.ts.map +1 -1
- package/dist/types/model/ast/Nodes.d.ts +28 -2
- package/dist/types/model/ast/Nodes.d.ts.map +1 -1
- package/dist/types/model/config/enum/CardSetConfigKey.d.ts +2 -0
- package/dist/types/model/config/enum/CardSetConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/ConfigKey.d.ts +38 -2
- package/dist/types/model/config/enum/ConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/GroupConfigKey.d.ts +6 -3
- package/dist/types/model/config/enum/GroupConfigKey.d.ts.map +1 -1
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts +51 -0
- package/dist/types/model/config/enum/PropertyConfigKey.d.ts.map +1 -1
- package/dist/types/model/enum/BitType.d.ts +28 -0
- package/dist/types/model/enum/BitType.d.ts.map +1 -1
- package/dist/types/model/enum/PropertyTag.d.ts +34 -0
- package/dist/types/model/enum/PropertyTag.d.ts.map +1 -1
- package/dist/types/model/json/BitJson.d.ts +29 -2
- package/dist/types/model/json/BitJson.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts +9 -2
- package/dist/types/parser/bitmark/peg/BitmarkPegParserTypes.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/CardContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts +7 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/PersonChainContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/PropertyContentProcessor.d.ts.map +1 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts +7 -0
- package/dist/types/parser/bitmark/peg/contentProcessors/TechnicalTermChainContentProcessor.d.ts.map +1 -0
- package/dist/types/parser/json/JsonParser.d.ts +3 -1
- package/dist/types/parser/json/JsonParser.d.ts.map +1 -1
- package/dist/types/utils/NumberUtils.d.ts +33 -2
- package/dist/types/utils/NumberUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js.map +0 -1
- package/dist/esm/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.js.map +0 -1
- package/dist/types/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.d.ts +0 -7
- package/dist/types/parser/bitmark/peg/contentProcessors/PartnerChainContentProcessor.d.ts.map +0 -1
|
@@ -36,6 +36,7 @@ const TextFormat_1 = require("../../model/enum/TextFormat");
|
|
|
36
36
|
const TextParser_1 = require("../../parser/text/TextParser");
|
|
37
37
|
const ArrayUtils_1 = require("../../utils/ArrayUtils");
|
|
38
38
|
const BooleanUtils_1 = require("../../utils/BooleanUtils");
|
|
39
|
+
const NumberUtils_1 = require("../../utils/NumberUtils");
|
|
39
40
|
const StringUtils_1 = require("../../utils/StringUtils");
|
|
40
41
|
const UrlUtils_1 = require("../../utils/UrlUtils");
|
|
41
42
|
const AstWalkerGenerator_1 = require("../AstWalkerGenerator");
|
|
@@ -214,24 +215,33 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
214
215
|
this.addProperty(imageSourceJson, 'trim', BooleanUtils_1.BooleanUtils.isBoolean(trim) ? trim : null, true);
|
|
215
216
|
this.bitJson.imageSource = imageSourceJson;
|
|
216
217
|
}
|
|
217
|
-
// bitmarkAst -> bits -> bitsValue ->
|
|
218
|
-
|
|
219
|
-
const
|
|
218
|
+
// bitmarkAst -> bits -> bitsValue -> person
|
|
219
|
+
enter_person(node, route) {
|
|
220
|
+
const person = node.value;
|
|
220
221
|
const bitType = this.getBitType(route);
|
|
221
222
|
// Ignore values that are not at the bit level as they might be handled elsewhere
|
|
222
223
|
const parent = this.getParentNode(route);
|
|
223
224
|
if ((parent === null || parent === void 0 ? void 0 : parent.key) !== NodeType_1.NodeType.bitsValue || !bitType)
|
|
224
225
|
return;
|
|
225
|
-
const { name, avatarImage } =
|
|
226
|
-
const
|
|
227
|
-
this.addProperty(
|
|
226
|
+
const { name, title, avatarImage } = person;
|
|
227
|
+
const personJson = {};
|
|
228
|
+
this.addProperty(personJson, 'name', name !== null && name !== void 0 ? name : '', true);
|
|
229
|
+
if (title) {
|
|
230
|
+
this.addProperty(personJson, 'title', title, true);
|
|
231
|
+
}
|
|
228
232
|
if (avatarImage) {
|
|
229
233
|
const res = this.parseResourceToJson(bitType, avatarImage);
|
|
230
234
|
if (res && res.type === ResourceTag_1.ResourceTag.image) {
|
|
231
|
-
|
|
235
|
+
personJson.avatarImage = res.image;
|
|
232
236
|
}
|
|
233
237
|
}
|
|
234
|
-
|
|
238
|
+
if (Config_1.Config.isOfBitType(bitType, BitType_1.BitType.conversationLeft1)) {
|
|
239
|
+
// Use the legacy partner property in the JSON for conversation bits, so change to person is backwards compatible
|
|
240
|
+
this.bitJson.partner = personJson;
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
this.bitJson.person = personJson;
|
|
244
|
+
}
|
|
235
245
|
}
|
|
236
246
|
// bitmarkAst -> bits -> bitsValue -> markConfig -> markConfigValue
|
|
237
247
|
enter_markConfigValue(node, route) {
|
|
@@ -281,6 +291,32 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
281
291
|
this.bitJson.marginNumber = this.convertBreakscapedStringToJsonText(marginNumber, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
282
292
|
}
|
|
283
293
|
}
|
|
294
|
+
// bitmarkAst -> bits -> bitsValue -> width
|
|
295
|
+
enter_width(node, route) {
|
|
296
|
+
var _a;
|
|
297
|
+
let value = node.value;
|
|
298
|
+
const bitType = this.getBitType(route);
|
|
299
|
+
const parent = this.getParentNode(route);
|
|
300
|
+
if ((parent === null || parent === void 0 ? void 0 : parent.key) === NodeType_1.NodeType.bitsValue && Config_1.Config.isOfBitType(bitType, BitType_1.BitType.extractorBlock)) {
|
|
301
|
+
value = (_a = NumberUtils_1.NumberUtils.asNumber(value, 0)) !== null && _a !== void 0 ? _a : 0;
|
|
302
|
+
}
|
|
303
|
+
// Add the property
|
|
304
|
+
this.addProperty(this.bitJson, 'width', value, true);
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
// bitmarkAst -> bits -> bitsValue -> height
|
|
308
|
+
enter_height(node, route) {
|
|
309
|
+
var _a;
|
|
310
|
+
let value = node.value;
|
|
311
|
+
const bitType = this.getBitType(route);
|
|
312
|
+
const parent = this.getParentNode(route);
|
|
313
|
+
if ((parent === null || parent === void 0 ? void 0 : parent.key) === NodeType_1.NodeType.bitsValue && Config_1.Config.isOfBitType(bitType, BitType_1.BitType.extractorBlock)) {
|
|
314
|
+
value = (_a = NumberUtils_1.NumberUtils.asNumber(value, 0)) !== null && _a !== void 0 ? _a : 0;
|
|
315
|
+
}
|
|
316
|
+
// Add the property
|
|
317
|
+
this.addProperty(this.bitJson, 'height', value, true);
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
284
320
|
// bitmarkAst -> bits -> bitsValue -> extraProperties
|
|
285
321
|
enter_extraProperties(node, _route) {
|
|
286
322
|
const extraProperties = node.value;
|
|
@@ -836,6 +872,37 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
836
872
|
this.bitJson.responses = responsesJson;
|
|
837
873
|
}
|
|
838
874
|
}
|
|
875
|
+
// bitmarkAst -> bits -> bitsValue -> cardNode -> ingredients -> ingredientsValue
|
|
876
|
+
enter_ingredients(node, route) {
|
|
877
|
+
var _a, _b, _c, _d, _e, _f;
|
|
878
|
+
const ingredients = node.value;
|
|
879
|
+
// Ignore statements that are not at the card node level as they are handled elsewhere
|
|
880
|
+
const parent = this.getParentNode(route);
|
|
881
|
+
if ((parent === null || parent === void 0 ? void 0 : parent.key) !== NodeType_1.NodeType.cardNode)
|
|
882
|
+
return;
|
|
883
|
+
const ingredientsJson = [];
|
|
884
|
+
if (ingredients) {
|
|
885
|
+
for (const i of ingredients) {
|
|
886
|
+
// Create the ingredient
|
|
887
|
+
const ingredientJson = {
|
|
888
|
+
checked: (_a = i.checked) !== null && _a !== void 0 ? _a : false,
|
|
889
|
+
item: (_b = Breakscape_1.Breakscape.unbreakscape(i.item)) !== null && _b !== void 0 ? _b : '',
|
|
890
|
+
quantity: (_c = i.quantity) !== null && _c !== void 0 ? _c : 0,
|
|
891
|
+
unit: (_d = Breakscape_1.Breakscape.unbreakscape(i.unit)) !== null && _d !== void 0 ? _d : '',
|
|
892
|
+
unitAbbr: (_e = Breakscape_1.Breakscape.unbreakscape(i.unitAbbr)) !== null && _e !== void 0 ? _e : '',
|
|
893
|
+
disableCalculation: (_f = i.disableCalculation) !== null && _f !== void 0 ? _f : false,
|
|
894
|
+
};
|
|
895
|
+
// Delete unwanted properties
|
|
896
|
+
if ((i === null || i === void 0 ? void 0 : i.unitAbbr) == null)
|
|
897
|
+
delete ingredientJson.unitAbbr;
|
|
898
|
+
// if (i?.instruction == null) delete ingredientJson.instruction;
|
|
899
|
+
ingredientsJson.push(ingredientJson);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
if (ingredientsJson.length > 0) {
|
|
903
|
+
this.bitJson.ingredients = ingredientsJson;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
839
906
|
// bitmarkAst -> bits -> bitsValue -> resources
|
|
840
907
|
enter_resources(node, route) {
|
|
841
908
|
var _a;
|
|
@@ -903,7 +970,11 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
903
970
|
// Terminal nodes (leaves)
|
|
904
971
|
//
|
|
905
972
|
// bitmarkAst -> bits -> bitsValue -> title
|
|
906
|
-
leaf_title(node,
|
|
973
|
+
leaf_title(node, route) {
|
|
974
|
+
// Ignore title that are not at the bit or card node level as they are handled elsewhere
|
|
975
|
+
const parent = this.getParentNode(route);
|
|
976
|
+
if ((parent === null || parent === void 0 ? void 0 : parent.key) !== NodeType_1.NodeType.bitsValue && (parent === null || parent === void 0 ? void 0 : parent.key) !== NodeType_1.NodeType.cardNode)
|
|
977
|
+
return;
|
|
907
978
|
this.bitJson.title = this.convertBreakscapedStringToJsonText(node.value, TextFormat_1.TextFormat.bitmarkMinusMinus);
|
|
908
979
|
}
|
|
909
980
|
// bitmarkAst -> bits -> bitsValue -> subtitle
|
|
@@ -1037,7 +1108,11 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
1037
1108
|
continue;
|
|
1038
1109
|
if (astKey === PropertyTag_1.PropertyTag.imageSource)
|
|
1039
1110
|
continue;
|
|
1040
|
-
if (astKey === PropertyTag_1.PropertyTag.
|
|
1111
|
+
if (astKey === PropertyTag_1.PropertyTag.person)
|
|
1112
|
+
continue;
|
|
1113
|
+
if (astKey === PropertyTag_1.PropertyTag.width)
|
|
1114
|
+
continue;
|
|
1115
|
+
if (astKey === PropertyTag_1.PropertyTag.height)
|
|
1041
1116
|
continue;
|
|
1042
1117
|
if (astKey === PropertyAstKey_1.PropertyAstKey.markConfig)
|
|
1043
1118
|
continue;
|
|
@@ -1905,12 +1980,15 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
1905
1980
|
id: undefined,
|
|
1906
1981
|
internalComment: undefined,
|
|
1907
1982
|
externalId: undefined,
|
|
1983
|
+
bookId: undefined,
|
|
1908
1984
|
spaceId: undefined,
|
|
1909
1985
|
padletId: undefined,
|
|
1910
1986
|
jupyterId: undefined,
|
|
1911
1987
|
jupyterExecutionCount: undefined,
|
|
1912
1988
|
AIGenerated: undefined,
|
|
1913
1989
|
releaseVersion: undefined,
|
|
1990
|
+
releaseKind: undefined,
|
|
1991
|
+
releaseDate: undefined,
|
|
1914
1992
|
book: undefined,
|
|
1915
1993
|
ageRange: undefined,
|
|
1916
1994
|
lang: undefined,
|
|
@@ -1934,8 +2012,14 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
1934
2012
|
location: undefined,
|
|
1935
2013
|
kind: undefined,
|
|
1936
2014
|
action: undefined,
|
|
2015
|
+
blockId: undefined,
|
|
2016
|
+
pageNo: undefined,
|
|
2017
|
+
x: undefined,
|
|
2018
|
+
y: undefined,
|
|
1937
2019
|
width: undefined,
|
|
1938
2020
|
height: undefined,
|
|
2021
|
+
index: undefined,
|
|
2022
|
+
classification: undefined,
|
|
1939
2023
|
thumbImage: undefined,
|
|
1940
2024
|
scormSource: undefined,
|
|
1941
2025
|
posterImage: undefined,
|
|
@@ -1957,6 +2041,7 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
1957
2041
|
labelTrue: undefined,
|
|
1958
2042
|
labelFalse: undefined,
|
|
1959
2043
|
content2Buy: undefined,
|
|
2044
|
+
mailingList: undefined,
|
|
1960
2045
|
buttonCaption: undefined,
|
|
1961
2046
|
quotedPerson: undefined,
|
|
1962
2047
|
reasonableNumOfChars: undefined,
|
|
@@ -1968,6 +2053,8 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
1968
2053
|
product: undefined,
|
|
1969
2054
|
productVideo: undefined,
|
|
1970
2055
|
productFolder: undefined,
|
|
2056
|
+
technicalTerm: undefined,
|
|
2057
|
+
portions: undefined,
|
|
1971
2058
|
// Book data
|
|
1972
2059
|
title: undefined,
|
|
1973
2060
|
subtitle: undefined,
|
|
@@ -1987,8 +2074,8 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
1987
2074
|
// Example
|
|
1988
2075
|
isExample: undefined,
|
|
1989
2076
|
example: undefined,
|
|
1990
|
-
//
|
|
1991
|
-
|
|
2077
|
+
// Person .conversion-xxx, page-person, etc
|
|
2078
|
+
person: undefined,
|
|
1992
2079
|
// Marks (config)
|
|
1993
2080
|
marks: undefined,
|
|
1994
2081
|
// Extra Properties
|
|
@@ -2281,6 +2368,8 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
2281
2368
|
delete bitJson.internalComment;
|
|
2282
2369
|
if (bitJson.externalId == null)
|
|
2283
2370
|
delete bitJson.externalId;
|
|
2371
|
+
if (bitJson.bookId == null)
|
|
2372
|
+
delete bitJson.bookId;
|
|
2284
2373
|
if (bitJson.spaceId == null)
|
|
2285
2374
|
delete bitJson.spaceId;
|
|
2286
2375
|
if (bitJson.padletId == null)
|
|
@@ -2293,6 +2382,10 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
2293
2382
|
delete bitJson.AIGenerated;
|
|
2294
2383
|
if (bitJson.releaseVersion == null)
|
|
2295
2384
|
delete bitJson.releaseVersion;
|
|
2385
|
+
if (bitJson.releaseKind == null)
|
|
2386
|
+
delete bitJson.releaseKind;
|
|
2387
|
+
if (bitJson.releaseDate == null)
|
|
2388
|
+
delete bitJson.releaseDate;
|
|
2296
2389
|
if (bitJson.book == null)
|
|
2297
2390
|
delete bitJson.book;
|
|
2298
2391
|
if (bitJson.ageRange == null)
|
|
@@ -2339,10 +2432,22 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
2339
2432
|
delete bitJson.kind;
|
|
2340
2433
|
if (bitJson.action == null)
|
|
2341
2434
|
delete bitJson.action;
|
|
2435
|
+
if (bitJson.blockId == null)
|
|
2436
|
+
delete bitJson.blockId;
|
|
2437
|
+
if (bitJson.pageNo == null)
|
|
2438
|
+
delete bitJson.pageNo;
|
|
2439
|
+
if (bitJson.x == null)
|
|
2440
|
+
delete bitJson.x;
|
|
2441
|
+
if (bitJson.y == null)
|
|
2442
|
+
delete bitJson.y;
|
|
2342
2443
|
if (bitJson.width == null)
|
|
2343
2444
|
delete bitJson.width;
|
|
2344
2445
|
if (bitJson.height == null)
|
|
2345
2446
|
delete bitJson.height;
|
|
2447
|
+
if (bitJson.index == null)
|
|
2448
|
+
delete bitJson.index;
|
|
2449
|
+
if (bitJson.classification == null)
|
|
2450
|
+
delete bitJson.classification;
|
|
2346
2451
|
if (bitJson.thumbImage == null)
|
|
2347
2452
|
delete bitJson.thumbImage;
|
|
2348
2453
|
if (bitJson.scormSource == null)
|
|
@@ -2385,6 +2490,8 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
2385
2490
|
delete bitJson.labelFalse;
|
|
2386
2491
|
if (bitJson.content2Buy == null)
|
|
2387
2492
|
delete bitJson.content2Buy;
|
|
2493
|
+
if (bitJson.mailingList == null)
|
|
2494
|
+
delete bitJson.mailingList;
|
|
2388
2495
|
if (bitJson.buttonCaption == null)
|
|
2389
2496
|
delete bitJson.buttonCaption;
|
|
2390
2497
|
if (bitJson.quotedPerson == null)
|
|
@@ -2405,6 +2512,10 @@ class JsonGenerator extends AstWalkerGenerator_1.AstWalkerGenerator {
|
|
|
2405
2512
|
delete bitJson.productVideo;
|
|
2406
2513
|
if (bitJson.productFolder == null)
|
|
2407
2514
|
delete bitJson.productFolder;
|
|
2515
|
+
if (bitJson.technicalTerm == null)
|
|
2516
|
+
delete bitJson.technicalTerm;
|
|
2517
|
+
if (bitJson.portions == null)
|
|
2518
|
+
delete bitJson.portions;
|
|
2408
2519
|
// Book data
|
|
2409
2520
|
if (bitJson.title == null)
|
|
2410
2521
|
delete bitJson.title;
|