@gmb/bitmark-parser-generator 4.15.0 → 4.16.1
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/browser/cjs/index.cjs +829 -71
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +242 -7
- package/dist/browser/esm/index.d.ts +242 -7
- package/dist/browser/esm/index.js +829 -71
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +1042 -297
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +242 -7
- package/dist/index.d.ts +242 -7
- package/dist/index.js +1042 -297
- package/dist/index.js.map +1 -1
- package/package.json +27 -26
|
@@ -246,8 +246,8 @@ var BitType = superenum({
|
|
|
246
246
|
extractorAiChat: "extractor-ai-chat",
|
|
247
247
|
extractorBlock: "extractor-block",
|
|
248
248
|
extractorConfiguration: "extractor-configuration",
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
extractorImage: "extractor-image",
|
|
250
|
+
extractorImageCollapsible: "extractor-image-collapsible",
|
|
251
251
|
extractorInformation: "extractor-information",
|
|
252
252
|
extractorPage: "extractor-page",
|
|
253
253
|
extractorPageCollapsible: "extractor-page-collapsible",
|
|
@@ -421,6 +421,7 @@ var BitType = superenum({
|
|
|
421
421
|
pageHero: "page-hero",
|
|
422
422
|
pageOpenBook: "page-open-book",
|
|
423
423
|
pageOpenBookList: "page-open-book-list",
|
|
424
|
+
openBookChapter: "open-book-chapter",
|
|
424
425
|
pagePerson: "page-person",
|
|
425
426
|
pageProduct: "page-product",
|
|
426
427
|
pageProductList: "page-product-list",
|
|
@@ -435,6 +436,7 @@ var BitType = superenum({
|
|
|
435
436
|
parameters: "parameters",
|
|
436
437
|
photo: "photo",
|
|
437
438
|
platform: "platform",
|
|
439
|
+
platformBrandTarget: "platform-brand-target",
|
|
438
440
|
platformHeader: "platform-header",
|
|
439
441
|
platformMain: "platform-main",
|
|
440
442
|
platformMainButton: "platform-main-button",
|
|
@@ -1108,7 +1110,9 @@ var groupKeys = {
|
|
|
1108
1110
|
group_resourceDocumentLink: "group_resourceDocumentLink",
|
|
1109
1111
|
group_resourceDocumentDownload: "group_resourceDocumentDownload",
|
|
1110
1112
|
group_resourceAppLink: "group_resourceAppLink",
|
|
1111
|
-
group_resourceWebsiteLink: "group_resourceWebsiteLink"
|
|
1113
|
+
group_resourceWebsiteLink: "group_resourceWebsiteLink",
|
|
1114
|
+
group_previewImages: "group_previewImages",
|
|
1115
|
+
group_previewVideos: "group_previewVideos"
|
|
1112
1116
|
};
|
|
1113
1117
|
var GroupKey = superenum10(groupKeys);
|
|
1114
1118
|
|
|
@@ -1127,6 +1131,10 @@ var propertyKeys = {
|
|
|
1127
1131
|
property_altLangTag: "@altLangTag",
|
|
1128
1132
|
property_analyticsTag: "@analyticsTag",
|
|
1129
1133
|
property_author: "@author",
|
|
1134
|
+
property_authorFullName: "@authorFullName",
|
|
1135
|
+
property_authorJobTitle: "@authorJobTitle",
|
|
1136
|
+
property_authorPseudonym: "@authorPseudonym",
|
|
1137
|
+
property_authorTitle: "@authorTitle",
|
|
1130
1138
|
property_autoplay: "@autoplay",
|
|
1131
1139
|
property_availableClassifications: "@availableClassifications",
|
|
1132
1140
|
property_brandColor: "@brandColor",
|
|
@@ -1144,6 +1152,23 @@ var propertyKeys = {
|
|
|
1144
1152
|
property_categoryTag: "@categoryTag",
|
|
1145
1153
|
property_chatWithBook: "@chatWithBook",
|
|
1146
1154
|
property_chatWithBookBrainKey: "@chatWithBookBrainKey",
|
|
1155
|
+
property_currency: "@currency",
|
|
1156
|
+
property_bookIsbn: "@bookIsbn",
|
|
1157
|
+
property_bookAuthor: "@bookAuthor",
|
|
1158
|
+
property_bookType: "@bookType",
|
|
1159
|
+
property_bookBindingType: "@bookBindingType",
|
|
1160
|
+
property_bookNumberOfPages: "@bookNumberOfPages",
|
|
1161
|
+
property_bookRating: "@bookRating",
|
|
1162
|
+
property_bookSeriesTitle: "@bookSeriesTitle",
|
|
1163
|
+
property_bookSeriesId: "@bookSeriesId",
|
|
1164
|
+
property_bookSeriesNumber: "@bookSeriesNumber",
|
|
1165
|
+
property_bookLanguage: "@bookLanguage",
|
|
1166
|
+
property_bookPublishingDate: "@bookPublishingDate",
|
|
1167
|
+
property_bookPublisher: "@bookPublisher",
|
|
1168
|
+
property_bookTranslator: "@bookTranslator",
|
|
1169
|
+
property_bookOriginalTitle: "@bookOriginalTitle",
|
|
1170
|
+
property_gmbExternalShop: "@gmbExternalShop",
|
|
1171
|
+
property_gmbExternalShopItems: "@gmbExternalShopItems",
|
|
1147
1172
|
property_citationStyle: "@citationStyle",
|
|
1148
1173
|
property_classification: "@classification",
|
|
1149
1174
|
property_codeLineNumbers: "@codeLineNumbers",
|
|
@@ -1244,6 +1269,7 @@ var propertyKeys = {
|
|
|
1244
1269
|
// Deprecated, replaced by person
|
|
1245
1270
|
property_path: "@path",
|
|
1246
1271
|
property_platformBackgroundColor: "@platformBackgroundColor",
|
|
1272
|
+
property_platformBrandTarget: "@platformBrandTarget",
|
|
1247
1273
|
property_platformButtonBackgroundColor: "@platformButtonBackgroundColor",
|
|
1248
1274
|
property_platformButtonPrimaryColor: "@platformButtonPrimaryColor",
|
|
1249
1275
|
property_platformMessageBackgroundColor: "@platformMessageBackgroundColor",
|
|
@@ -1297,6 +1323,7 @@ var propertyKeys = {
|
|
|
1297
1323
|
property_scormSource: "@scormSource",
|
|
1298
1324
|
property_search: "@search",
|
|
1299
1325
|
property_searchIndex: "@searchIndex",
|
|
1326
|
+
property_selected: "@selected",
|
|
1300
1327
|
property_servings: "@servings",
|
|
1301
1328
|
property_showInIndex: "@showInIndex",
|
|
1302
1329
|
property_showSubtitles: "@showSubtitles",
|
|
@@ -1387,7 +1414,10 @@ var resourceKeys = {
|
|
|
1387
1414
|
resource_platformIcon: "&platformIcon",
|
|
1388
1415
|
resource_platformLogo: "&platformLogo",
|
|
1389
1416
|
resource_backgroundWallpaper: "&backgroundWallpaper",
|
|
1390
|
-
resource_imagePlaceholder: "&imagePlaceholder"
|
|
1417
|
+
resource_imagePlaceholder: "&imagePlaceholder",
|
|
1418
|
+
resource_previewImage: "&previewImage",
|
|
1419
|
+
resource_previewVideo: "&previewVideo",
|
|
1420
|
+
resource_coverImage: "&coverImage"
|
|
1391
1421
|
};
|
|
1392
1422
|
var ResourceKey = superenum12(resourceKeys);
|
|
1393
1423
|
|
|
@@ -1615,7 +1645,10 @@ var ResourceType = superenum13({
|
|
|
1615
1645
|
imagePlaceholder: "imagePlaceholder",
|
|
1616
1646
|
platformIcon: "platformIcon",
|
|
1617
1647
|
platformLogo: "platformLogo",
|
|
1618
|
-
platformBackgroundImage: "platformBackgroundImage"
|
|
1648
|
+
platformBackgroundImage: "platformBackgroundImage",
|
|
1649
|
+
previewImage: "previewImage",
|
|
1650
|
+
previewVideo: "previewVideo",
|
|
1651
|
+
coverImage: "coverImage"
|
|
1619
1652
|
});
|
|
1620
1653
|
function resourceTypeToConfigKey(type) {
|
|
1621
1654
|
return `&${stringUtils.kebabToCamel(type)}`;
|
|
@@ -3284,6 +3317,16 @@ var GROUPS = {
|
|
|
3284
3317
|
format: TagFormat.plainText,
|
|
3285
3318
|
maxCount: Count.infinity
|
|
3286
3319
|
},
|
|
3320
|
+
{
|
|
3321
|
+
key: ConfigKey.resource_coverImage,
|
|
3322
|
+
description: "The cover image of the book",
|
|
3323
|
+
chain: [
|
|
3324
|
+
{
|
|
3325
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
3326
|
+
description: "Common image properties for the cover image resource"
|
|
3327
|
+
}
|
|
3328
|
+
]
|
|
3329
|
+
},
|
|
3287
3330
|
{
|
|
3288
3331
|
key: ConfigKey.property_coverColor,
|
|
3289
3332
|
description: "The cover color of the book",
|
|
@@ -3559,6 +3602,12 @@ var GROUPS = {
|
|
|
3559
3602
|
description: "The search text for the resource",
|
|
3560
3603
|
format: TagFormat.plainText
|
|
3561
3604
|
},
|
|
3605
|
+
{
|
|
3606
|
+
key: ConfigKey.property_selected,
|
|
3607
|
+
description: "If true, the resource is selected",
|
|
3608
|
+
format: TagFormat.boolean,
|
|
3609
|
+
defaultValue: "false"
|
|
3610
|
+
},
|
|
3562
3611
|
{
|
|
3563
3612
|
key: ConfigKey.property_srcAlt,
|
|
3564
3613
|
description: "An alternative source for the resource",
|
|
@@ -4134,6 +4183,38 @@ var GROUPS = {
|
|
|
4134
4183
|
minCount: 1
|
|
4135
4184
|
}
|
|
4136
4185
|
]
|
|
4186
|
+
},
|
|
4187
|
+
[ConfigKey.group_previewImages]: {
|
|
4188
|
+
type: GroupConfigType.resource,
|
|
4189
|
+
description: "Array of preview images for catalog items",
|
|
4190
|
+
tags: [
|
|
4191
|
+
{
|
|
4192
|
+
key: ConfigKey.resource_previewImage,
|
|
4193
|
+
description: "The preview image resource",
|
|
4194
|
+
chain: [
|
|
4195
|
+
{
|
|
4196
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4197
|
+
description: "Common image properties for the image resource"
|
|
4198
|
+
}
|
|
4199
|
+
]
|
|
4200
|
+
}
|
|
4201
|
+
]
|
|
4202
|
+
},
|
|
4203
|
+
[ConfigKey.group_previewVideos]: {
|
|
4204
|
+
type: GroupConfigType.resource,
|
|
4205
|
+
description: "Array of preview videos for catalog items",
|
|
4206
|
+
tags: [
|
|
4207
|
+
{
|
|
4208
|
+
key: ConfigKey.resource_previewVideo,
|
|
4209
|
+
description: "The preview video resource",
|
|
4210
|
+
chain: [
|
|
4211
|
+
{
|
|
4212
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4213
|
+
description: "Common image properties for the image resource"
|
|
4214
|
+
}
|
|
4215
|
+
]
|
|
4216
|
+
}
|
|
4217
|
+
]
|
|
4137
4218
|
}
|
|
4138
4219
|
};
|
|
4139
4220
|
|
|
@@ -4527,6 +4608,16 @@ var BITS = {
|
|
|
4527
4608
|
description: "Cover image of the catalog item",
|
|
4528
4609
|
format: TagFormat.plainText
|
|
4529
4610
|
},
|
|
4611
|
+
{
|
|
4612
|
+
key: ConfigKey.resource_coverImage,
|
|
4613
|
+
description: "Cover image of the catalog item",
|
|
4614
|
+
chain: [
|
|
4615
|
+
{
|
|
4616
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4617
|
+
description: "Common image properties for the cover image resource"
|
|
4618
|
+
}
|
|
4619
|
+
]
|
|
4620
|
+
},
|
|
4530
4621
|
{
|
|
4531
4622
|
key: ConfigKey.property_content2Buy,
|
|
4532
4623
|
description: "Content to buy identifier",
|
|
@@ -4546,6 +4637,106 @@ var BITS = {
|
|
|
4546
4637
|
key: ConfigKey.property_customerProductId,
|
|
4547
4638
|
description: "Customer-specific product identifier",
|
|
4548
4639
|
format: TagFormat.plainText
|
|
4640
|
+
},
|
|
4641
|
+
{
|
|
4642
|
+
key: ConfigKey.property_currency,
|
|
4643
|
+
description: "Currency for the catalog item",
|
|
4644
|
+
format: TagFormat.plainText
|
|
4645
|
+
},
|
|
4646
|
+
{
|
|
4647
|
+
key: ConfigKey.property_bookIsbn,
|
|
4648
|
+
description: "ISBN for iBook version",
|
|
4649
|
+
format: TagFormat.plainText
|
|
4650
|
+
},
|
|
4651
|
+
{
|
|
4652
|
+
key: ConfigKey.property_bookAuthor,
|
|
4653
|
+
description: "Author of the book",
|
|
4654
|
+
format: TagFormat.plainText
|
|
4655
|
+
},
|
|
4656
|
+
{
|
|
4657
|
+
key: ConfigKey.property_bookType,
|
|
4658
|
+
description: "Type of the book",
|
|
4659
|
+
format: TagFormat.plainText
|
|
4660
|
+
},
|
|
4661
|
+
{
|
|
4662
|
+
key: ConfigKey.property_bookBindingType,
|
|
4663
|
+
description: "Binding type of the book",
|
|
4664
|
+
format: TagFormat.plainText
|
|
4665
|
+
},
|
|
4666
|
+
{
|
|
4667
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4668
|
+
description: "Number of pages in the book",
|
|
4669
|
+
format: TagFormat.plainText
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
key: ConfigKey.property_bookRating,
|
|
4673
|
+
description: "Rating of the book",
|
|
4674
|
+
format: TagFormat.plainText
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
4678
|
+
description: "Title of the book series",
|
|
4679
|
+
format: TagFormat.plainText
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
key: ConfigKey.property_bookSeriesId,
|
|
4683
|
+
description: "ID of the book series",
|
|
4684
|
+
format: TagFormat.plainText
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
4688
|
+
description: "Number in the book series",
|
|
4689
|
+
format: TagFormat.plainText
|
|
4690
|
+
},
|
|
4691
|
+
{
|
|
4692
|
+
key: ConfigKey.property_bookLanguage,
|
|
4693
|
+
description: "Language of the book",
|
|
4694
|
+
format: TagFormat.plainText
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
4698
|
+
description: "Publishing date of the book",
|
|
4699
|
+
format: TagFormat.plainText
|
|
4700
|
+
},
|
|
4701
|
+
{
|
|
4702
|
+
key: ConfigKey.property_bookPublisher,
|
|
4703
|
+
description: "Publisher of the book",
|
|
4704
|
+
format: TagFormat.plainText
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
key: ConfigKey.property_bookTranslator,
|
|
4708
|
+
description: "Translator of the book",
|
|
4709
|
+
format: TagFormat.plainText
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
4713
|
+
description: "Original title of the book",
|
|
4714
|
+
format: TagFormat.plainText
|
|
4715
|
+
},
|
|
4716
|
+
{
|
|
4717
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
4718
|
+
description: "External shop identifier",
|
|
4719
|
+
format: TagFormat.plainText
|
|
4720
|
+
},
|
|
4721
|
+
{
|
|
4722
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
4723
|
+
description: "Array of external shop items",
|
|
4724
|
+
format: TagFormat.plainText,
|
|
4725
|
+
maxCount: Count.infinity
|
|
4726
|
+
},
|
|
4727
|
+
{
|
|
4728
|
+
key: ConfigKey.group_imageSource,
|
|
4729
|
+
description: "Image source chain"
|
|
4730
|
+
},
|
|
4731
|
+
{
|
|
4732
|
+
key: ConfigKey.group_previewImages,
|
|
4733
|
+
description: "Array of preview images for the catalog item",
|
|
4734
|
+
maxCount: Count.infinity
|
|
4735
|
+
},
|
|
4736
|
+
{
|
|
4737
|
+
key: ConfigKey.group_previewVideos,
|
|
4738
|
+
description: "Array of preview videos for the catalog item",
|
|
4739
|
+
maxCount: Count.infinity
|
|
4549
4740
|
}
|
|
4550
4741
|
],
|
|
4551
4742
|
rootExampleType: ExampleType.string
|
|
@@ -4565,6 +4756,16 @@ var BITS = {
|
|
|
4565
4756
|
description: "Cover image of the catalog item",
|
|
4566
4757
|
format: TagFormat.plainText
|
|
4567
4758
|
},
|
|
4759
|
+
{
|
|
4760
|
+
key: ConfigKey.resource_coverImage,
|
|
4761
|
+
description: "Cover image of the catalog item",
|
|
4762
|
+
chain: [
|
|
4763
|
+
{
|
|
4764
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4765
|
+
description: "Common image properties for the cover image resource"
|
|
4766
|
+
}
|
|
4767
|
+
]
|
|
4768
|
+
},
|
|
4568
4769
|
{
|
|
4569
4770
|
key: ConfigKey.property_customerProductShopLink,
|
|
4570
4771
|
description: "Link to external shop for the product",
|
|
@@ -4584,6 +4785,106 @@ var BITS = {
|
|
|
4584
4785
|
key: ConfigKey.property_customerProductId,
|
|
4585
4786
|
description: "Customer-specific product identifier",
|
|
4586
4787
|
format: TagFormat.plainText
|
|
4788
|
+
},
|
|
4789
|
+
{
|
|
4790
|
+
key: ConfigKey.property_currency,
|
|
4791
|
+
description: "Currency for the catalog item",
|
|
4792
|
+
format: TagFormat.plainText
|
|
4793
|
+
},
|
|
4794
|
+
{
|
|
4795
|
+
key: ConfigKey.property_bookIsbn,
|
|
4796
|
+
description: "ISBN for iBook version",
|
|
4797
|
+
format: TagFormat.plainText
|
|
4798
|
+
},
|
|
4799
|
+
{
|
|
4800
|
+
key: ConfigKey.property_bookAuthor,
|
|
4801
|
+
description: "Author of the book",
|
|
4802
|
+
format: TagFormat.plainText
|
|
4803
|
+
},
|
|
4804
|
+
{
|
|
4805
|
+
key: ConfigKey.property_bookType,
|
|
4806
|
+
description: "Type of the book",
|
|
4807
|
+
format: TagFormat.plainText
|
|
4808
|
+
},
|
|
4809
|
+
{
|
|
4810
|
+
key: ConfigKey.property_bookBindingType,
|
|
4811
|
+
description: "Binding type of the book",
|
|
4812
|
+
format: TagFormat.plainText
|
|
4813
|
+
},
|
|
4814
|
+
{
|
|
4815
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4816
|
+
description: "Number of pages in the book",
|
|
4817
|
+
format: TagFormat.plainText
|
|
4818
|
+
},
|
|
4819
|
+
{
|
|
4820
|
+
key: ConfigKey.property_bookRating,
|
|
4821
|
+
description: "Rating of the book",
|
|
4822
|
+
format: TagFormat.plainText
|
|
4823
|
+
},
|
|
4824
|
+
{
|
|
4825
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
4826
|
+
description: "Title of the book series",
|
|
4827
|
+
format: TagFormat.plainText
|
|
4828
|
+
},
|
|
4829
|
+
{
|
|
4830
|
+
key: ConfigKey.property_bookSeriesId,
|
|
4831
|
+
description: "ID of the book series",
|
|
4832
|
+
format: TagFormat.plainText
|
|
4833
|
+
},
|
|
4834
|
+
{
|
|
4835
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
4836
|
+
description: "Number in the book series",
|
|
4837
|
+
format: TagFormat.plainText
|
|
4838
|
+
},
|
|
4839
|
+
{
|
|
4840
|
+
key: ConfigKey.property_bookLanguage,
|
|
4841
|
+
description: "Language of the book",
|
|
4842
|
+
format: TagFormat.plainText
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
4846
|
+
description: "Publishing date of the book",
|
|
4847
|
+
format: TagFormat.plainText
|
|
4848
|
+
},
|
|
4849
|
+
{
|
|
4850
|
+
key: ConfigKey.property_bookPublisher,
|
|
4851
|
+
description: "Publisher of the book",
|
|
4852
|
+
format: TagFormat.plainText
|
|
4853
|
+
},
|
|
4854
|
+
{
|
|
4855
|
+
key: ConfigKey.property_bookTranslator,
|
|
4856
|
+
description: "Translator of the book",
|
|
4857
|
+
format: TagFormat.plainText
|
|
4858
|
+
},
|
|
4859
|
+
{
|
|
4860
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
4861
|
+
description: "Original title of the book",
|
|
4862
|
+
format: TagFormat.plainText
|
|
4863
|
+
},
|
|
4864
|
+
{
|
|
4865
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
4866
|
+
description: "External shop identifier",
|
|
4867
|
+
format: TagFormat.plainText
|
|
4868
|
+
},
|
|
4869
|
+
{
|
|
4870
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
4871
|
+
description: "Array of external shop items",
|
|
4872
|
+
format: TagFormat.plainText,
|
|
4873
|
+
maxCount: Count.infinity
|
|
4874
|
+
},
|
|
4875
|
+
{
|
|
4876
|
+
key: ConfigKey.group_imageSource,
|
|
4877
|
+
description: "Image source chain"
|
|
4878
|
+
},
|
|
4879
|
+
{
|
|
4880
|
+
key: ConfigKey.group_previewImages,
|
|
4881
|
+
description: "Array of preview images for the catalog item",
|
|
4882
|
+
maxCount: Count.infinity
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
key: ConfigKey.group_previewVideos,
|
|
4886
|
+
description: "Array of preview videos for the catalog item",
|
|
4887
|
+
maxCount: Count.infinity
|
|
4587
4888
|
}
|
|
4588
4889
|
],
|
|
4589
4890
|
rootExampleType: ExampleType.string
|
|
@@ -4622,6 +4923,106 @@ var BITS = {
|
|
|
4622
4923
|
key: ConfigKey.property_customerProductId,
|
|
4623
4924
|
description: "Customer-specific product identifier",
|
|
4624
4925
|
format: TagFormat.plainText
|
|
4926
|
+
},
|
|
4927
|
+
{
|
|
4928
|
+
key: ConfigKey.property_currency,
|
|
4929
|
+
description: "Currency for the catalog item",
|
|
4930
|
+
format: TagFormat.plainText
|
|
4931
|
+
},
|
|
4932
|
+
{
|
|
4933
|
+
key: ConfigKey.property_bookIsbn,
|
|
4934
|
+
description: "ISBN for iBook version",
|
|
4935
|
+
format: TagFormat.plainText
|
|
4936
|
+
},
|
|
4937
|
+
{
|
|
4938
|
+
key: ConfigKey.property_bookAuthor,
|
|
4939
|
+
description: "Author of the book",
|
|
4940
|
+
format: TagFormat.plainText
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
key: ConfigKey.property_bookType,
|
|
4944
|
+
description: "Type of the book",
|
|
4945
|
+
format: TagFormat.plainText
|
|
4946
|
+
},
|
|
4947
|
+
{
|
|
4948
|
+
key: ConfigKey.property_bookBindingType,
|
|
4949
|
+
description: "Binding type of the book",
|
|
4950
|
+
format: TagFormat.plainText
|
|
4951
|
+
},
|
|
4952
|
+
{
|
|
4953
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4954
|
+
description: "Number of pages in the book",
|
|
4955
|
+
format: TagFormat.plainText
|
|
4956
|
+
},
|
|
4957
|
+
{
|
|
4958
|
+
key: ConfigKey.property_bookRating,
|
|
4959
|
+
description: "Rating of the book",
|
|
4960
|
+
format: TagFormat.plainText
|
|
4961
|
+
},
|
|
4962
|
+
{
|
|
4963
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
4964
|
+
description: "Title of the book series",
|
|
4965
|
+
format: TagFormat.plainText
|
|
4966
|
+
},
|
|
4967
|
+
{
|
|
4968
|
+
key: ConfigKey.property_bookSeriesId,
|
|
4969
|
+
description: "ID of the book series",
|
|
4970
|
+
format: TagFormat.plainText
|
|
4971
|
+
},
|
|
4972
|
+
{
|
|
4973
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
4974
|
+
description: "Number in the book series",
|
|
4975
|
+
format: TagFormat.plainText
|
|
4976
|
+
},
|
|
4977
|
+
{
|
|
4978
|
+
key: ConfigKey.property_bookLanguage,
|
|
4979
|
+
description: "Language of the book",
|
|
4980
|
+
format: TagFormat.plainText
|
|
4981
|
+
},
|
|
4982
|
+
{
|
|
4983
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
4984
|
+
description: "Publishing date of the book",
|
|
4985
|
+
format: TagFormat.plainText
|
|
4986
|
+
},
|
|
4987
|
+
{
|
|
4988
|
+
key: ConfigKey.property_bookPublisher,
|
|
4989
|
+
description: "Publisher of the book",
|
|
4990
|
+
format: TagFormat.plainText
|
|
4991
|
+
},
|
|
4992
|
+
{
|
|
4993
|
+
key: ConfigKey.property_bookTranslator,
|
|
4994
|
+
description: "Translator of the book",
|
|
4995
|
+
format: TagFormat.plainText
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
4999
|
+
description: "Original title of the book",
|
|
5000
|
+
format: TagFormat.plainText
|
|
5001
|
+
},
|
|
5002
|
+
{
|
|
5003
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
5004
|
+
description: "External shop identifier",
|
|
5005
|
+
format: TagFormat.plainText
|
|
5006
|
+
},
|
|
5007
|
+
{
|
|
5008
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
5009
|
+
description: "Array of external shop items",
|
|
5010
|
+
format: TagFormat.plainText,
|
|
5011
|
+
maxCount: Count.infinity
|
|
5012
|
+
},
|
|
5013
|
+
{
|
|
5014
|
+
key: ConfigKey.group_imageSource,
|
|
5015
|
+
description: "Image source chain"
|
|
5016
|
+
},
|
|
5017
|
+
{
|
|
5018
|
+
key: ConfigKey.group_previewImages,
|
|
5019
|
+
description: "Array of preview images for the catalog item",
|
|
5020
|
+
maxCount: Count.infinity
|
|
5021
|
+
},
|
|
5022
|
+
{
|
|
5023
|
+
key: ConfigKey.group_previewVideos,
|
|
5024
|
+
description: "Array of preview videos for the catalog item",
|
|
5025
|
+
maxCount: Count.infinity
|
|
4625
5026
|
}
|
|
4626
5027
|
],
|
|
4627
5028
|
rootExampleType: ExampleType.string
|
|
@@ -6709,7 +7110,7 @@ var BITS = {
|
|
|
6709
7110
|
description: "Extractor configuration bit, used to configure extractors in articles or books",
|
|
6710
7111
|
textFormatDefault: TextFormat2.plainText
|
|
6711
7112
|
},
|
|
6712
|
-
[BitType.
|
|
7113
|
+
[BitType.extractorImage]: {
|
|
6713
7114
|
since: "4.3.0",
|
|
6714
7115
|
baseBitType: BitType._standard,
|
|
6715
7116
|
description: "Extractor images bit, used for images extracted from PDFs",
|
|
@@ -6729,9 +7130,9 @@ var BITS = {
|
|
|
6729
7130
|
resourceAttachmentAllowed: false,
|
|
6730
7131
|
textFormatDefault: TextFormat2.plainText
|
|
6731
7132
|
},
|
|
6732
|
-
[BitType.
|
|
7133
|
+
[BitType.extractorImageCollapsible]: {
|
|
6733
7134
|
since: "4.3.0",
|
|
6734
|
-
baseBitType: BitType.
|
|
7135
|
+
baseBitType: BitType.extractorImage,
|
|
6735
7136
|
description: "Collapsible extractor images bit, used for images extracted from PDFs"
|
|
6736
7137
|
},
|
|
6737
7138
|
[BitType.extractorInformation]: {
|
|
@@ -6869,9 +7270,34 @@ var BITS = {
|
|
|
6869
7270
|
{
|
|
6870
7271
|
key: ConfigKey.property_buttonCaption,
|
|
6871
7272
|
description: "Caption for the button, used to define the text displayed on the button"
|
|
7273
|
+
},
|
|
7274
|
+
{
|
|
7275
|
+
key: ConfigKey.property_authorFullName,
|
|
7276
|
+
description: "Full name of the author",
|
|
7277
|
+
format: TagFormat.plainText
|
|
7278
|
+
},
|
|
7279
|
+
{
|
|
7280
|
+
key: ConfigKey.property_authorPseudonym,
|
|
7281
|
+
description: "A pseudonym of the author, if any",
|
|
7282
|
+
format: TagFormat.plainText
|
|
7283
|
+
},
|
|
7284
|
+
{
|
|
7285
|
+
key: ConfigKey.property_authorTitle,
|
|
7286
|
+
description: 'The title of the author, e.g. "Dr.", "Prof.", etc.',
|
|
7287
|
+
format: TagFormat.plainText
|
|
7288
|
+
},
|
|
7289
|
+
{
|
|
7290
|
+
key: ConfigKey.property_authorJobTitle,
|
|
7291
|
+
description: 'The job title of the author, e.g. "Software Engineer", "Professor", etc.',
|
|
7292
|
+
format: TagFormat.plainText
|
|
6872
7293
|
}
|
|
6873
7294
|
]
|
|
6874
7295
|
},
|
|
7296
|
+
[BitType.openBookChapter]: {
|
|
7297
|
+
since: "4.16.0",
|
|
7298
|
+
baseBitType: BitType.pageOpenBook,
|
|
7299
|
+
description: "Open book chapter bit, derived from page-open-book, used to create chapter pages that open books"
|
|
7300
|
+
},
|
|
6875
7301
|
[BitType.pageOpenBookList]: {
|
|
6876
7302
|
since: "2.1.0",
|
|
6877
7303
|
baseBitType: BitType.article,
|
|
@@ -8214,6 +8640,18 @@ var BITS = {
|
|
|
8214
8640
|
}
|
|
8215
8641
|
]
|
|
8216
8642
|
},
|
|
8643
|
+
[BitType.platformBrandTarget]: {
|
|
8644
|
+
since: "4.15.0",
|
|
8645
|
+
baseBitType: BitType._standard,
|
|
8646
|
+
description: "Platform brand target bit, used to define the brand target for publishing",
|
|
8647
|
+
tags: [
|
|
8648
|
+
{
|
|
8649
|
+
key: ConfigKey.property_platformBrandTarget,
|
|
8650
|
+
description: 'The platform brand target (typically "light", "dark" or "none")',
|
|
8651
|
+
format: TagFormat.plainText
|
|
8652
|
+
}
|
|
8653
|
+
]
|
|
8654
|
+
},
|
|
8217
8655
|
[BitType.platformHeader]: {
|
|
8218
8656
|
since: "4.12.0",
|
|
8219
8657
|
baseBitType: BitType._standard,
|
|
@@ -9699,7 +10137,7 @@ var instance2 = new Config();
|
|
|
9699
10137
|
// src/generated/package_info.ts
|
|
9700
10138
|
var PACKAGE_INFO = {
|
|
9701
10139
|
"name": "@gmb/bitmark-parser-generator",
|
|
9702
|
-
"version": "4.
|
|
10140
|
+
"version": "4.16.1",
|
|
9703
10141
|
"author": "Get More Brain Ltd",
|
|
9704
10142
|
"license": "ISC",
|
|
9705
10143
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10074,6 +10512,14 @@ var NodeType = superenum20({
|
|
|
10074
10512
|
audioLink: "audioLink",
|
|
10075
10513
|
author: "author",
|
|
10076
10514
|
authorValue: "authorValue",
|
|
10515
|
+
authorFullName: "authorFullName",
|
|
10516
|
+
authorFullNameValue: "authorFullNameValue",
|
|
10517
|
+
authorJobTitle: "authorJobTitle",
|
|
10518
|
+
authorJobTitleValue: "authorJobTitleValue",
|
|
10519
|
+
authorPseudonym: "authorPseudonym",
|
|
10520
|
+
authorPseudonymValue: "authorPseudonymValue",
|
|
10521
|
+
authorTitle: "authorTitle",
|
|
10522
|
+
authorTitleValue: "authorTitleValue",
|
|
10077
10523
|
availableClassifications: "availableClassifications",
|
|
10078
10524
|
availableClassificationsValue: "availableClassificationsValue",
|
|
10079
10525
|
avatarImage: "avatarImage",
|
|
@@ -10104,8 +10550,22 @@ var NodeType = superenum20({
|
|
|
10104
10550
|
book: "book",
|
|
10105
10551
|
bookAlias: "bookAlias",
|
|
10106
10552
|
bookAliasValue: "bookAliasValue",
|
|
10553
|
+
bookAuthor: "bookAuthor",
|
|
10554
|
+
bookBindingType: "bookBindingType",
|
|
10107
10555
|
bookDiff: "bookDiff",
|
|
10108
10556
|
bookDiffValue: "bookDiffValue",
|
|
10557
|
+
bookIsbn: "bookIsbn",
|
|
10558
|
+
bookLanguage: "bookLanguage",
|
|
10559
|
+
bookNumberOfPages: "bookNumberOfPages",
|
|
10560
|
+
bookOriginalTitle: "bookOriginalTitle",
|
|
10561
|
+
bookPublisher: "bookPublisher",
|
|
10562
|
+
bookPublishingDate: "bookPublishingDate",
|
|
10563
|
+
bookRating: "bookRating",
|
|
10564
|
+
bookSeriesId: "bookSeriesId",
|
|
10565
|
+
bookSeriesNumber: "bookSeriesNumber",
|
|
10566
|
+
bookSeriesTitle: "bookSeriesTitle",
|
|
10567
|
+
bookTranslator: "bookTranslator",
|
|
10568
|
+
bookType: "bookType",
|
|
10109
10569
|
bookValue: "bookValue",
|
|
10110
10570
|
bot: "bot",
|
|
10111
10571
|
botResponses: "botResponses",
|
|
@@ -10163,6 +10623,7 @@ var NodeType = superenum20({
|
|
|
10163
10623
|
coverColorValue: "coverColorValue",
|
|
10164
10624
|
coverImage: "coverImage",
|
|
10165
10625
|
coverImageValue: "coverImageValue",
|
|
10626
|
+
currency: "currency",
|
|
10166
10627
|
customerExternalId: "customerExternalId",
|
|
10167
10628
|
customerId: "customerId",
|
|
10168
10629
|
customerIdValue: "customerIdValue",
|
|
@@ -10242,6 +10703,8 @@ var NodeType = superenum20({
|
|
|
10242
10703
|
fullName: "fullName",
|
|
10243
10704
|
fullNameValue: "fullNameValue",
|
|
10244
10705
|
gap: "gap",
|
|
10706
|
+
gmbExternalShop: "gmbExternalShop",
|
|
10707
|
+
gmbExternalShopItems: "gmbExternalShopItems",
|
|
10245
10708
|
groupTag: "groupTag",
|
|
10246
10709
|
groupTagValue: "groupTagValue",
|
|
10247
10710
|
handInAcceptFileType: "handInAcceptFileType",
|
|
@@ -10398,6 +10861,8 @@ var NodeType = superenum20({
|
|
|
10398
10861
|
partialAnswerValue: "partialAnswerValue",
|
|
10399
10862
|
path: "path",
|
|
10400
10863
|
pathValue: "pathValue",
|
|
10864
|
+
platformBrandTarget: "platformBrandTarget",
|
|
10865
|
+
platformBrandTargetValue: "platformBrandTargetValue",
|
|
10401
10866
|
platformName: "platformName",
|
|
10402
10867
|
platformNameValue: "platformNameValue",
|
|
10403
10868
|
platformIcon: "platformIcon",
|
|
@@ -10437,6 +10902,10 @@ var NodeType = superenum20({
|
|
|
10437
10902
|
posterImageValue: "posterImageValue",
|
|
10438
10903
|
postfix: "postfix",
|
|
10439
10904
|
prefix: "prefix",
|
|
10905
|
+
previewImage: "previewImage",
|
|
10906
|
+
previewImageValue: "previewImageValue",
|
|
10907
|
+
previewVideo: "previewVideo",
|
|
10908
|
+
previewVideoValue: "previewVideoValue",
|
|
10440
10909
|
processHandIn: "processHandIn",
|
|
10441
10910
|
processHandInLocation: "processHandInLocation",
|
|
10442
10911
|
processHandInLocationValue: "processHandInLocationValue",
|
|
@@ -10539,6 +11008,7 @@ var NodeType = superenum20({
|
|
|
10539
11008
|
searchValue: "searchValue",
|
|
10540
11009
|
section: "section",
|
|
10541
11010
|
select: "select",
|
|
11011
|
+
selected: "selected",
|
|
10542
11012
|
servings: "servings",
|
|
10543
11013
|
servingsValue: "servingsValue",
|
|
10544
11014
|
showInIndex: "showInIndex",
|
|
@@ -10576,6 +11046,7 @@ var NodeType = superenum20({
|
|
|
10576
11046
|
subject: "subject",
|
|
10577
11047
|
subjectValue: "subjectValue",
|
|
10578
11048
|
subtitle: "subtitle",
|
|
11049
|
+
subtitleValue: "subtitleValue",
|
|
10579
11050
|
subtype: "subtype",
|
|
10580
11051
|
subtypeValue: "subtypeValue",
|
|
10581
11052
|
table: "table",
|
|
@@ -10624,6 +11095,7 @@ var NodeType = superenum20({
|
|
|
10624
11095
|
thumbnails: "thumbnails",
|
|
10625
11096
|
thumbnailsValue: "thumbnailsValue",
|
|
10626
11097
|
title: "title",
|
|
11098
|
+
titleValue: "titleValue",
|
|
10627
11099
|
titleString: "titleString",
|
|
10628
11100
|
toc: "toc",
|
|
10629
11101
|
tocContent: "tocContent",
|
|
@@ -21999,7 +22471,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21999
22471
|
license: data.license,
|
|
22000
22472
|
copyright: data.copyright,
|
|
22001
22473
|
showInIndex: data.showInIndex,
|
|
22002
|
-
search: data.search
|
|
22474
|
+
search: data.search,
|
|
22475
|
+
selected: data.selected
|
|
22003
22476
|
});
|
|
22004
22477
|
return node;
|
|
22005
22478
|
}
|
|
@@ -22051,6 +22524,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22051
22524
|
case ResourceType.platformIcon:
|
|
22052
22525
|
case ResourceType.platformLogo:
|
|
22053
22526
|
case ResourceType.platformBackgroundImage:
|
|
22527
|
+
case ResourceType.previewImage:
|
|
22528
|
+
case ResourceType.coverImage:
|
|
22054
22529
|
node = this.imageResource(context, finalData, type);
|
|
22055
22530
|
break;
|
|
22056
22531
|
// case ResourceType.imageResponsive: {
|
|
@@ -22083,6 +22558,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22083
22558
|
node = this.audioLinkResource(context, finalData);
|
|
22084
22559
|
break;
|
|
22085
22560
|
case ResourceType.video:
|
|
22561
|
+
case ResourceType.previewVideo:
|
|
22086
22562
|
node = this.videoResource(context, finalData);
|
|
22087
22563
|
break;
|
|
22088
22564
|
case ResourceType.videoEmbed:
|
|
@@ -22161,7 +22637,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22161
22637
|
copyright,
|
|
22162
22638
|
showInIndex,
|
|
22163
22639
|
caption,
|
|
22164
|
-
search
|
|
22640
|
+
search,
|
|
22641
|
+
selected
|
|
22165
22642
|
} = data;
|
|
22166
22643
|
const { bitType } = context;
|
|
22167
22644
|
let zoomDisabledDefault = false;
|
|
@@ -22170,7 +22647,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22170
22647
|
BitType.pageBanner,
|
|
22171
22648
|
BitType.imagesLogoGrave,
|
|
22172
22649
|
BitType.prototypeImages,
|
|
22173
|
-
BitType.
|
|
22650
|
+
BitType.extractorImage
|
|
22174
22651
|
])) {
|
|
22175
22652
|
zoomDisabledDefault = true;
|
|
22176
22653
|
}
|
|
@@ -22195,11 +22672,12 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22195
22672
|
copyright: copyright ?? "",
|
|
22196
22673
|
showInIndex: showInIndex ?? false,
|
|
22197
22674
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22198
|
-
search: search ?? void 0
|
|
22675
|
+
search: search ?? void 0,
|
|
22676
|
+
selected: selected ?? false
|
|
22199
22677
|
}
|
|
22200
22678
|
};
|
|
22201
22679
|
objectUtils.removeUnwantedProperties(node.image, {
|
|
22202
|
-
ignoreFalse: ["zoomDisabled", "showInIndex"],
|
|
22680
|
+
ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
|
|
22203
22681
|
ignoreEmptyArrays: ["caption"],
|
|
22204
22682
|
ignoreUndefined: ["width", "height"],
|
|
22205
22683
|
ignoreEmptyString: ["src", "alt", "license", "copyright"]
|
|
@@ -22228,7 +22706,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22228
22706
|
copyright,
|
|
22229
22707
|
showInIndex,
|
|
22230
22708
|
caption,
|
|
22231
|
-
search
|
|
22709
|
+
search,
|
|
22710
|
+
selected
|
|
22232
22711
|
} = data;
|
|
22233
22712
|
const node = {
|
|
22234
22713
|
type: ResourceType.imageLink,
|
|
@@ -22253,11 +22732,12 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22253
22732
|
copyright: copyright ?? "",
|
|
22254
22733
|
showInIndex: showInIndex ?? false,
|
|
22255
22734
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22256
|
-
search: search ?? void 0
|
|
22735
|
+
search: search ?? void 0,
|
|
22736
|
+
selected: selected ?? false
|
|
22257
22737
|
}
|
|
22258
22738
|
};
|
|
22259
22739
|
objectUtils.removeUnwantedProperties(node.imageLink, {
|
|
22260
|
-
ignoreFalse: ["zoomDisabled", "showInIndex"],
|
|
22740
|
+
ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
|
|
22261
22741
|
ignoreEmptyArrays: ["caption"],
|
|
22262
22742
|
ignoreUndefined: ["width", "height"],
|
|
22263
22743
|
ignoreEmptyString: ["url", "alt", "license", "copyright"]
|
|
@@ -22281,7 +22761,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22281
22761
|
copyright,
|
|
22282
22762
|
showInIndex,
|
|
22283
22763
|
caption,
|
|
22284
|
-
search
|
|
22764
|
+
search,
|
|
22765
|
+
selected
|
|
22285
22766
|
} = data;
|
|
22286
22767
|
const node = {
|
|
22287
22768
|
type: ResourceType.audio,
|
|
@@ -22299,13 +22780,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22299
22780
|
copyright: copyright ?? "",
|
|
22300
22781
|
showInIndex: showInIndex ?? false,
|
|
22301
22782
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22302
|
-
search: search ?? void 0
|
|
22783
|
+
search: search ?? void 0,
|
|
22784
|
+
selected: selected ?? false
|
|
22303
22785
|
}
|
|
22304
22786
|
};
|
|
22305
22787
|
objectUtils.removeUnwantedProperties(node.audio, {
|
|
22306
22788
|
ignoreEmptyArrays: ["caption"],
|
|
22307
22789
|
ignoreEmptyString: ["src", "alt", "license", "copyright"],
|
|
22308
|
-
ignoreFalse: ["showInIndex"]
|
|
22790
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22309
22791
|
});
|
|
22310
22792
|
return nodeValidator.validateResource(node);
|
|
22311
22793
|
}
|
|
@@ -22326,7 +22808,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22326
22808
|
copyright,
|
|
22327
22809
|
showInIndex,
|
|
22328
22810
|
caption,
|
|
22329
|
-
search
|
|
22811
|
+
search,
|
|
22812
|
+
selected
|
|
22330
22813
|
} = data;
|
|
22331
22814
|
const node = {
|
|
22332
22815
|
type: ResourceType.audioEmbed,
|
|
@@ -22344,7 +22827,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22344
22827
|
copyright: copyright ?? "",
|
|
22345
22828
|
showInIndex: showInIndex ?? false,
|
|
22346
22829
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22347
|
-
search: search ?? void 0
|
|
22830
|
+
search: search ?? void 0,
|
|
22831
|
+
selected: selected ?? false
|
|
22348
22832
|
}
|
|
22349
22833
|
};
|
|
22350
22834
|
objectUtils.removeUnwantedProperties(node.audioEmbed, {
|
|
@@ -22355,7 +22839,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22355
22839
|
"license",
|
|
22356
22840
|
"copyright"
|
|
22357
22841
|
],
|
|
22358
|
-
ignoreFalse: ["showInIndex"]
|
|
22842
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22359
22843
|
});
|
|
22360
22844
|
return nodeValidator.validateResource(node);
|
|
22361
22845
|
}
|
|
@@ -22376,7 +22860,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22376
22860
|
copyright,
|
|
22377
22861
|
showInIndex,
|
|
22378
22862
|
caption,
|
|
22379
|
-
search
|
|
22863
|
+
search,
|
|
22864
|
+
selected
|
|
22380
22865
|
} = data;
|
|
22381
22866
|
const node = {
|
|
22382
22867
|
type: ResourceType.audioLink,
|
|
@@ -22395,7 +22880,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22395
22880
|
copyright: copyright ?? "",
|
|
22396
22881
|
showInIndex: showInIndex ?? false,
|
|
22397
22882
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22398
|
-
search: search ?? void 0
|
|
22883
|
+
search: search ?? void 0,
|
|
22884
|
+
selected: selected ?? false
|
|
22399
22885
|
}
|
|
22400
22886
|
};
|
|
22401
22887
|
objectUtils.removeUnwantedProperties(node.audioLink, {
|
|
@@ -22403,7 +22889,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22403
22889
|
ignoreEmptyString: [
|
|
22404
22890
|
"url"
|
|
22405
22891
|
/*'alt', 'license', 'copyright'*/
|
|
22406
|
-
]
|
|
22892
|
+
],
|
|
22893
|
+
ignoreFalse: ["selected"]
|
|
22407
22894
|
});
|
|
22408
22895
|
return nodeValidator.validateResource(node);
|
|
22409
22896
|
}
|
|
@@ -22431,7 +22918,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22431
22918
|
copyright,
|
|
22432
22919
|
showInIndex,
|
|
22433
22920
|
caption,
|
|
22434
|
-
search
|
|
22921
|
+
search,
|
|
22922
|
+
selected
|
|
22435
22923
|
} = data;
|
|
22436
22924
|
const node = {
|
|
22437
22925
|
type: ResourceType.video,
|
|
@@ -22455,6 +22943,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22455
22943
|
showInIndex: showInIndex ?? false,
|
|
22456
22944
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22457
22945
|
search: search ?? void 0,
|
|
22946
|
+
selected: selected ?? false,
|
|
22458
22947
|
// Have sub-chains so must be at end of chain
|
|
22459
22948
|
posterImage: posterImage ?? void 0,
|
|
22460
22949
|
thumbnails: thumbnails ?? void 0
|
|
@@ -22469,7 +22958,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22469
22958
|
"license",
|
|
22470
22959
|
"copyright"
|
|
22471
22960
|
],
|
|
22472
|
-
ignoreFalse: ["showInIndex"]
|
|
22961
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22473
22962
|
});
|
|
22474
22963
|
return nodeValidator.validateResource(node);
|
|
22475
22964
|
}
|
|
@@ -22497,7 +22986,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22497
22986
|
copyright,
|
|
22498
22987
|
showInIndex,
|
|
22499
22988
|
caption,
|
|
22500
|
-
search
|
|
22989
|
+
search,
|
|
22990
|
+
selected
|
|
22501
22991
|
} = data;
|
|
22502
22992
|
const node = {
|
|
22503
22993
|
type: ResourceType.videoEmbed,
|
|
@@ -22523,7 +23013,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22523
23013
|
copyright: copyright ?? "",
|
|
22524
23014
|
showInIndex: showInIndex ?? false,
|
|
22525
23015
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22526
|
-
search: search ?? void 0
|
|
23016
|
+
search: search ?? void 0,
|
|
23017
|
+
selected: selected ?? false
|
|
22527
23018
|
}
|
|
22528
23019
|
};
|
|
22529
23020
|
objectUtils.removeUnwantedProperties(node.videoEmbed, {
|
|
@@ -22535,7 +23026,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22535
23026
|
"license",
|
|
22536
23027
|
"copyright"
|
|
22537
23028
|
],
|
|
22538
|
-
ignoreFalse: ["showInIndex"]
|
|
23029
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22539
23030
|
});
|
|
22540
23031
|
return nodeValidator.validateResource(node);
|
|
22541
23032
|
}
|
|
@@ -22563,7 +23054,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22563
23054
|
copyright,
|
|
22564
23055
|
showInIndex,
|
|
22565
23056
|
caption,
|
|
22566
|
-
search
|
|
23057
|
+
search,
|
|
23058
|
+
selected
|
|
22567
23059
|
} = data;
|
|
22568
23060
|
const node = {
|
|
22569
23061
|
type: ResourceType.videoLink,
|
|
@@ -22589,7 +23081,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22589
23081
|
copyright: copyright ?? "",
|
|
22590
23082
|
showInIndex: showInIndex ?? false,
|
|
22591
23083
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22592
|
-
search: search ?? void 0
|
|
23084
|
+
search: search ?? void 0,
|
|
23085
|
+
selected: selected ?? false
|
|
22593
23086
|
}
|
|
22594
23087
|
};
|
|
22595
23088
|
objectUtils.removeUnwantedProperties(node.videoLink, {
|
|
@@ -22601,7 +23094,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22601
23094
|
"license",
|
|
22602
23095
|
"copyright"
|
|
22603
23096
|
],
|
|
22604
|
-
ignoreFalse: ["showInIndex"]
|
|
23097
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22605
23098
|
});
|
|
22606
23099
|
return nodeValidator.validateResource(node);
|
|
22607
23100
|
}
|
|
@@ -22649,7 +23142,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22649
23142
|
copyright,
|
|
22650
23143
|
showInIndex,
|
|
22651
23144
|
caption,
|
|
22652
|
-
search
|
|
23145
|
+
search,
|
|
23146
|
+
selected
|
|
22653
23147
|
} = data;
|
|
22654
23148
|
const node = {
|
|
22655
23149
|
type: ResourceType.stillImageFilmEmbed,
|
|
@@ -22675,7 +23169,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22675
23169
|
copyright: copyright ?? "",
|
|
22676
23170
|
showInIndex: showInIndex ?? false,
|
|
22677
23171
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22678
|
-
search: search ?? void 0
|
|
23172
|
+
search: search ?? void 0,
|
|
23173
|
+
selected: selected ?? false
|
|
22679
23174
|
}
|
|
22680
23175
|
};
|
|
22681
23176
|
objectUtils.removeUnwantedProperties(node.stillImageFilmEmbed, {
|
|
@@ -22687,7 +23182,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22687
23182
|
"license",
|
|
22688
23183
|
"copyright"
|
|
22689
23184
|
],
|
|
22690
|
-
ignoreFalse: ["showInIndex"]
|
|
23185
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22691
23186
|
});
|
|
22692
23187
|
return nodeValidator.validateResource(node);
|
|
22693
23188
|
}
|
|
@@ -22715,7 +23210,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22715
23210
|
copyright,
|
|
22716
23211
|
showInIndex,
|
|
22717
23212
|
caption,
|
|
22718
|
-
search
|
|
23213
|
+
search,
|
|
23214
|
+
selected
|
|
22719
23215
|
} = data;
|
|
22720
23216
|
const node = {
|
|
22721
23217
|
type: ResourceType.stillImageFilmLink,
|
|
@@ -22741,7 +23237,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22741
23237
|
copyright: copyright ?? "",
|
|
22742
23238
|
showInIndex: showInIndex ?? false,
|
|
22743
23239
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22744
|
-
search: search ?? void 0
|
|
23240
|
+
search: search ?? void 0,
|
|
23241
|
+
selected: selected ?? false
|
|
22745
23242
|
}
|
|
22746
23243
|
};
|
|
22747
23244
|
objectUtils.removeUnwantedProperties(node.stillImageFilmLink, {
|
|
@@ -22753,7 +23250,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22753
23250
|
"license",
|
|
22754
23251
|
"copyright"
|
|
22755
23252
|
],
|
|
22756
|
-
ignoreFalse: ["showInIndex"]
|
|
23253
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22757
23254
|
});
|
|
22758
23255
|
return nodeValidator.validateResource(node);
|
|
22759
23256
|
}
|
|
@@ -22764,7 +23261,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22764
23261
|
* @returns
|
|
22765
23262
|
*/
|
|
22766
23263
|
articleResource(context, data) {
|
|
22767
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23264
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22768
23265
|
const node = {
|
|
22769
23266
|
type: ResourceType.article,
|
|
22770
23267
|
__typeAlias: ResourceType.article,
|
|
@@ -22778,12 +23275,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22778
23275
|
copyright: copyright ?? "",
|
|
22779
23276
|
showInIndex: showInIndex ?? false,
|
|
22780
23277
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22781
|
-
search: search ?? void 0
|
|
23278
|
+
search: search ?? void 0,
|
|
23279
|
+
selected: selected ?? false
|
|
22782
23280
|
}
|
|
22783
23281
|
};
|
|
22784
23282
|
objectUtils.removeUnwantedProperties(node.article, {
|
|
22785
23283
|
ignoreEmptyArrays: ["caption"],
|
|
22786
|
-
ignoreEmptyString: ["body", "alt", "license", "copyright"]
|
|
23284
|
+
ignoreEmptyString: ["body", "alt", "license", "copyright"],
|
|
23285
|
+
ignoreFalse: ["selected"]
|
|
22787
23286
|
});
|
|
22788
23287
|
return nodeValidator.validateResource(node);
|
|
22789
23288
|
}
|
|
@@ -22794,7 +23293,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22794
23293
|
* @returns
|
|
22795
23294
|
*/
|
|
22796
23295
|
documentResource(context, data) {
|
|
22797
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23296
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22798
23297
|
const node = {
|
|
22799
23298
|
type: ResourceType.document,
|
|
22800
23299
|
__typeAlias: ResourceType.document,
|
|
@@ -22808,13 +23307,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22808
23307
|
copyright: copyright ?? "",
|
|
22809
23308
|
showInIndex: showInIndex ?? false,
|
|
22810
23309
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22811
|
-
search: search ?? void 0
|
|
23310
|
+
search: search ?? void 0,
|
|
23311
|
+
selected: selected ?? false
|
|
22812
23312
|
}
|
|
22813
23313
|
};
|
|
22814
23314
|
objectUtils.removeUnwantedProperties(node.document, {
|
|
22815
23315
|
ignoreEmptyArrays: ["caption"],
|
|
22816
23316
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22817
|
-
ignoreFalse: ["showInIndex"]
|
|
23317
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22818
23318
|
});
|
|
22819
23319
|
return nodeValidator.validateResource(node);
|
|
22820
23320
|
}
|
|
@@ -22825,7 +23325,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22825
23325
|
* @returns
|
|
22826
23326
|
*/
|
|
22827
23327
|
documentEmbedResource(context, data) {
|
|
22828
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23328
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22829
23329
|
const node = {
|
|
22830
23330
|
type: ResourceType.documentEmbed,
|
|
22831
23331
|
__typeAlias: ResourceType.documentEmbed,
|
|
@@ -22839,13 +23339,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22839
23339
|
copyright: copyright ?? "",
|
|
22840
23340
|
showInIndex: showInIndex ?? false,
|
|
22841
23341
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22842
|
-
search: search ?? void 0
|
|
23342
|
+
search: search ?? void 0,
|
|
23343
|
+
selected: selected ?? false
|
|
22843
23344
|
}
|
|
22844
23345
|
};
|
|
22845
23346
|
objectUtils.removeUnwantedProperties(node.documentEmbed, {
|
|
22846
23347
|
ignoreEmptyArrays: ["caption"],
|
|
22847
23348
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22848
|
-
ignoreFalse: ["showInIndex"]
|
|
23349
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22849
23350
|
});
|
|
22850
23351
|
return nodeValidator.validateResource(node);
|
|
22851
23352
|
}
|
|
@@ -22856,7 +23357,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22856
23357
|
* @returns
|
|
22857
23358
|
*/
|
|
22858
23359
|
documentLinkResource(context, data) {
|
|
22859
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23360
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22860
23361
|
const node = {
|
|
22861
23362
|
type: ResourceType.documentLink,
|
|
22862
23363
|
__typeAlias: ResourceType.documentLink,
|
|
@@ -22870,13 +23371,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22870
23371
|
copyright: copyright ?? "",
|
|
22871
23372
|
showInIndex: showInIndex ?? false,
|
|
22872
23373
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22873
|
-
search: search ?? void 0
|
|
23374
|
+
search: search ?? void 0,
|
|
23375
|
+
selected: selected ?? false
|
|
22874
23376
|
}
|
|
22875
23377
|
};
|
|
22876
23378
|
objectUtils.removeUnwantedProperties(node.documentLink, {
|
|
22877
23379
|
ignoreEmptyArrays: ["caption"],
|
|
22878
23380
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22879
|
-
ignoreFalse: ["showInIndex"]
|
|
23381
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22880
23382
|
});
|
|
22881
23383
|
return nodeValidator.validateResource(node);
|
|
22882
23384
|
}
|
|
@@ -22887,7 +23389,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22887
23389
|
* @returns
|
|
22888
23390
|
*/
|
|
22889
23391
|
documentDownloadResource(context, data) {
|
|
22890
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23392
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22891
23393
|
const node = {
|
|
22892
23394
|
type: ResourceType.documentDownload,
|
|
22893
23395
|
__typeAlias: ResourceType.documentDownload,
|
|
@@ -22901,13 +23403,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22901
23403
|
copyright: copyright ?? "",
|
|
22902
23404
|
showInIndex: showInIndex ?? false,
|
|
22903
23405
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22904
|
-
search: search ?? void 0
|
|
23406
|
+
search: search ?? void 0,
|
|
23407
|
+
selected: selected ?? false
|
|
22905
23408
|
}
|
|
22906
23409
|
};
|
|
22907
23410
|
objectUtils.removeUnwantedProperties(node.documentDownload, {
|
|
22908
23411
|
ignoreEmptyArrays: ["caption"],
|
|
22909
23412
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22910
|
-
ignoreFalse: ["showInIndex"]
|
|
23413
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22911
23414
|
});
|
|
22912
23415
|
return nodeValidator.validateResource(node);
|
|
22913
23416
|
}
|
|
@@ -22918,7 +23421,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22918
23421
|
* @returns
|
|
22919
23422
|
*/
|
|
22920
23423
|
appLinkResource(context, data) {
|
|
22921
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23424
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22922
23425
|
const node = {
|
|
22923
23426
|
type: ResourceType.appLink,
|
|
22924
23427
|
__typeAlias: ResourceType.appLink,
|
|
@@ -22933,7 +23436,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22933
23436
|
copyright: copyright ?? "",
|
|
22934
23437
|
showInIndex: showInIndex ?? false,
|
|
22935
23438
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22936
|
-
search: search ?? void 0
|
|
23439
|
+
search: search ?? void 0,
|
|
23440
|
+
selected: selected ?? false
|
|
22937
23441
|
}
|
|
22938
23442
|
};
|
|
22939
23443
|
objectUtils.removeUnwantedProperties(node.appLink, {
|
|
@@ -22944,7 +23448,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22944
23448
|
"license",
|
|
22945
23449
|
"copyright"
|
|
22946
23450
|
],
|
|
22947
|
-
ignoreFalse: ["showInIndex"]
|
|
23451
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22948
23452
|
});
|
|
22949
23453
|
return nodeValidator.validateResource(node);
|
|
22950
23454
|
}
|
|
@@ -22963,7 +23467,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22963
23467
|
copyright,
|
|
22964
23468
|
showInIndex,
|
|
22965
23469
|
caption,
|
|
22966
|
-
search
|
|
23470
|
+
search,
|
|
23471
|
+
selected
|
|
22967
23472
|
} = data;
|
|
22968
23473
|
const node = {
|
|
22969
23474
|
type: ResourceType.websiteLink,
|
|
@@ -22979,13 +23484,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22979
23484
|
copyright: copyright ?? "",
|
|
22980
23485
|
showInIndex: showInIndex ?? false,
|
|
22981
23486
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22982
|
-
search: search ?? void 0
|
|
23487
|
+
search: search ?? void 0,
|
|
23488
|
+
selected: selected ?? false
|
|
22983
23489
|
}
|
|
22984
23490
|
};
|
|
22985
23491
|
objectUtils.removeUnwantedProperties(node.websiteLink, {
|
|
22986
23492
|
ignoreEmptyArrays: ["caption"],
|
|
22987
23493
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22988
|
-
ignoreFalse: ["showInIndex"]
|
|
23494
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22989
23495
|
});
|
|
22990
23496
|
return nodeValidator.validateResource(node);
|
|
22991
23497
|
}
|
|
@@ -23261,12 +23767,12 @@ var Builder = class extends BaseBuilder {
|
|
|
23261
23767
|
subtype: this.toAstProperty(bitType, ConfigKey.property_subtype, data.subtype, options),
|
|
23262
23768
|
bookAlias: this.toAstProperty(bitType, ConfigKey.property_bookAlias, data.bookAlias, options),
|
|
23263
23769
|
bookDiff: this.toAstProperty(bitType, ConfigKey.property_bookDiff, data.bookDiff, options),
|
|
23264
|
-
coverImage: this.toAstProperty(
|
|
23770
|
+
coverImage: typeof data.coverImage === "string" || Array.isArray(data.coverImage) ? this.toAstProperty(
|
|
23265
23771
|
bitType,
|
|
23266
23772
|
ConfigKey.property_coverImage,
|
|
23267
|
-
data.coverImage,
|
|
23773
|
+
instance4.asArray(data.coverImage),
|
|
23268
23774
|
options
|
|
23269
|
-
),
|
|
23775
|
+
) : this.toImageResource(context, data.coverImage),
|
|
23270
23776
|
coverColor: this.toAstProperty(
|
|
23271
23777
|
bitType,
|
|
23272
23778
|
ConfigKey.property_coverColor,
|
|
@@ -23321,6 +23827,93 @@ var Builder = class extends BaseBuilder {
|
|
|
23321
23827
|
data.chatWithBookBrainKey,
|
|
23322
23828
|
options
|
|
23323
23829
|
),
|
|
23830
|
+
currency: this.toAstProperty(bitType, ConfigKey.property_currency, data.currency, options),
|
|
23831
|
+
bookIsbn: this.toAstProperty(bitType, ConfigKey.property_bookIsbn, data.bookIsbn, options),
|
|
23832
|
+
bookAuthor: this.toAstProperty(
|
|
23833
|
+
bitType,
|
|
23834
|
+
ConfigKey.property_bookAuthor,
|
|
23835
|
+
data.bookAuthor,
|
|
23836
|
+
options
|
|
23837
|
+
),
|
|
23838
|
+
bookType: this.toAstProperty(bitType, ConfigKey.property_bookType, data.bookType, options),
|
|
23839
|
+
bookBindingType: this.toAstProperty(
|
|
23840
|
+
bitType,
|
|
23841
|
+
ConfigKey.property_bookBindingType,
|
|
23842
|
+
data.bookBindingType,
|
|
23843
|
+
options
|
|
23844
|
+
),
|
|
23845
|
+
bookNumberOfPages: this.toAstProperty(
|
|
23846
|
+
bitType,
|
|
23847
|
+
ConfigKey.property_bookNumberOfPages,
|
|
23848
|
+
data.bookNumberOfPages,
|
|
23849
|
+
options
|
|
23850
|
+
),
|
|
23851
|
+
bookRating: this.toAstProperty(
|
|
23852
|
+
bitType,
|
|
23853
|
+
ConfigKey.property_bookRating,
|
|
23854
|
+
data.bookRating,
|
|
23855
|
+
options
|
|
23856
|
+
),
|
|
23857
|
+
bookSeriesTitle: this.toAstProperty(
|
|
23858
|
+
bitType,
|
|
23859
|
+
ConfigKey.property_bookSeriesTitle,
|
|
23860
|
+
data.bookSeriesTitle,
|
|
23861
|
+
options
|
|
23862
|
+
),
|
|
23863
|
+
bookSeriesId: this.toAstProperty(
|
|
23864
|
+
bitType,
|
|
23865
|
+
ConfigKey.property_bookSeriesId,
|
|
23866
|
+
data.bookSeriesId,
|
|
23867
|
+
options
|
|
23868
|
+
),
|
|
23869
|
+
bookSeriesNumber: this.toAstProperty(
|
|
23870
|
+
bitType,
|
|
23871
|
+
ConfigKey.property_bookSeriesNumber,
|
|
23872
|
+
data.bookSeriesNumber,
|
|
23873
|
+
options
|
|
23874
|
+
),
|
|
23875
|
+
bookLanguage: this.toAstProperty(
|
|
23876
|
+
bitType,
|
|
23877
|
+
ConfigKey.property_bookLanguage,
|
|
23878
|
+
data.bookLanguage,
|
|
23879
|
+
options
|
|
23880
|
+
),
|
|
23881
|
+
bookPublishingDate: this.toAstProperty(
|
|
23882
|
+
bitType,
|
|
23883
|
+
ConfigKey.property_bookPublishingDate,
|
|
23884
|
+
data.bookPublishingDate,
|
|
23885
|
+
options
|
|
23886
|
+
),
|
|
23887
|
+
bookPublisher: this.toAstProperty(
|
|
23888
|
+
bitType,
|
|
23889
|
+
ConfigKey.property_bookPublisher,
|
|
23890
|
+
data.bookPublisher,
|
|
23891
|
+
options
|
|
23892
|
+
),
|
|
23893
|
+
bookTranslator: this.toAstProperty(
|
|
23894
|
+
bitType,
|
|
23895
|
+
ConfigKey.property_bookTranslator,
|
|
23896
|
+
data.bookTranslator,
|
|
23897
|
+
options
|
|
23898
|
+
),
|
|
23899
|
+
bookOriginalTitle: this.toAstProperty(
|
|
23900
|
+
bitType,
|
|
23901
|
+
ConfigKey.property_bookOriginalTitle,
|
|
23902
|
+
data.bookOriginalTitle,
|
|
23903
|
+
options
|
|
23904
|
+
),
|
|
23905
|
+
gmbExternalShop: this.toAstProperty(
|
|
23906
|
+
bitType,
|
|
23907
|
+
ConfigKey.property_gmbExternalShop,
|
|
23908
|
+
data.gmbExternalShop,
|
|
23909
|
+
options
|
|
23910
|
+
),
|
|
23911
|
+
gmbExternalShopItems: this.toAstProperty(
|
|
23912
|
+
bitType,
|
|
23913
|
+
ConfigKey.property_gmbExternalShopItems,
|
|
23914
|
+
data.gmbExternalShopItems,
|
|
23915
|
+
options
|
|
23916
|
+
),
|
|
23324
23917
|
action: this.toAstProperty(bitType, ConfigKey.property_action, data.action, options),
|
|
23325
23918
|
showInIndex: this.toAstProperty(
|
|
23326
23919
|
bitType,
|
|
@@ -23378,6 +23971,30 @@ var Builder = class extends BaseBuilder {
|
|
|
23378
23971
|
data.allowedBit,
|
|
23379
23972
|
options
|
|
23380
23973
|
),
|
|
23974
|
+
authorFullName: this.toAstProperty(
|
|
23975
|
+
bitType,
|
|
23976
|
+
ConfigKey.property_authorFullName,
|
|
23977
|
+
data.authorFullName,
|
|
23978
|
+
options
|
|
23979
|
+
),
|
|
23980
|
+
authorPseudonym: this.toAstProperty(
|
|
23981
|
+
bitType,
|
|
23982
|
+
ConfigKey.property_authorPseudonym,
|
|
23983
|
+
data.authorPseudonym,
|
|
23984
|
+
options
|
|
23985
|
+
),
|
|
23986
|
+
authorTitle: this.toAstProperty(
|
|
23987
|
+
bitType,
|
|
23988
|
+
ConfigKey.property_authorTitle,
|
|
23989
|
+
data.authorTitle,
|
|
23990
|
+
options
|
|
23991
|
+
),
|
|
23992
|
+
authorJobTitle: this.toAstProperty(
|
|
23993
|
+
bitType,
|
|
23994
|
+
ConfigKey.property_authorJobTitle,
|
|
23995
|
+
data.authorJobTitle,
|
|
23996
|
+
options
|
|
23997
|
+
),
|
|
23381
23998
|
tableFixedHeader: this.toAstProperty(
|
|
23382
23999
|
bitType,
|
|
23383
24000
|
ConfigKey.property_tableFixedHeader,
|
|
@@ -23732,6 +24349,12 @@ var Builder = class extends BaseBuilder {
|
|
|
23732
24349
|
options
|
|
23733
24350
|
),
|
|
23734
24351
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24352
|
+
platformBrandTarget: this.toAstProperty(
|
|
24353
|
+
bitType,
|
|
24354
|
+
ConfigKey.property_platformBrandTarget,
|
|
24355
|
+
data.platformBrandTarget,
|
|
24356
|
+
options
|
|
24357
|
+
),
|
|
23735
24358
|
platformName: this.toAstProperty(
|
|
23736
24359
|
bitType,
|
|
23737
24360
|
ConfigKey.property_platformName,
|
|
@@ -23902,6 +24525,8 @@ var Builder = class extends BaseBuilder {
|
|
|
23902
24525
|
// Example
|
|
23903
24526
|
...this.toExample(data.__isDefaultExample, data.example),
|
|
23904
24527
|
// Person
|
|
24528
|
+
previewImage: this.toImageResources(context, data.previewImage),
|
|
24529
|
+
previewVideo: this.toVideoResources(context, data.previewVideo),
|
|
23905
24530
|
imagePlaceholder: this.toImageResource(context, data.imagePlaceholder),
|
|
23906
24531
|
resources: instance4.asArray(
|
|
23907
24532
|
this.resourceBuilder.resourceFromResourceJson(context, data.resources)
|
|
@@ -25327,6 +25952,36 @@ var Builder = class extends BaseBuilder {
|
|
|
25327
25952
|
this.resourceBuilder.resourceFromResourceDataJson(context, ResourceType.image, data?.image)
|
|
25328
25953
|
);
|
|
25329
25954
|
}
|
|
25955
|
+
toImageResources(context, data) {
|
|
25956
|
+
const arr = instance4.asArray(data);
|
|
25957
|
+
const results = [];
|
|
25958
|
+
if (arr && arr.length > 0) {
|
|
25959
|
+
for (const item of arr) {
|
|
25960
|
+
const res = this.resourceBuilder.resourceFromResourceDataJson(
|
|
25961
|
+
context,
|
|
25962
|
+
ResourceType.image,
|
|
25963
|
+
item.image
|
|
25964
|
+
);
|
|
25965
|
+
results.push(res);
|
|
25966
|
+
}
|
|
25967
|
+
}
|
|
25968
|
+
return results;
|
|
25969
|
+
}
|
|
25970
|
+
toVideoResources(context, data) {
|
|
25971
|
+
const arr = instance4.asArray(data);
|
|
25972
|
+
const results = [];
|
|
25973
|
+
if (arr && arr.length > 0) {
|
|
25974
|
+
for (const item of arr) {
|
|
25975
|
+
const res = this.resourceBuilder.resourceFromResourceDataJson(
|
|
25976
|
+
context,
|
|
25977
|
+
ResourceType.video,
|
|
25978
|
+
item.video
|
|
25979
|
+
);
|
|
25980
|
+
results.push(res);
|
|
25981
|
+
}
|
|
25982
|
+
}
|
|
25983
|
+
return results;
|
|
25984
|
+
}
|
|
25330
25985
|
//
|
|
25331
25986
|
// Private
|
|
25332
25987
|
//
|
|
@@ -27015,6 +27670,20 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27015
27670
|
this.writePropertyStyleResource(node.key, resource);
|
|
27016
27671
|
return true;
|
|
27017
27672
|
}
|
|
27673
|
+
// bitmarkAst -> bits -> bitsValue -> previewImageValue
|
|
27674
|
+
enter_previewImageValue(node, _route) {
|
|
27675
|
+
const resource = node.value;
|
|
27676
|
+
this.writeNL();
|
|
27677
|
+
this.writePropertyStyleResource("previewImage", resource);
|
|
27678
|
+
return true;
|
|
27679
|
+
}
|
|
27680
|
+
// bitmarkAst -> bits -> bitsValue -> previewVideoValue
|
|
27681
|
+
enter_previewVideoValue(node, _route) {
|
|
27682
|
+
const resource = node.value;
|
|
27683
|
+
this.writeNL();
|
|
27684
|
+
this.writePropertyStyleResource("previewVideo", resource);
|
|
27685
|
+
return true;
|
|
27686
|
+
}
|
|
27018
27687
|
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
27019
27688
|
enter_platformIcon(node, _route) {
|
|
27020
27689
|
const resource = node.value;
|
|
@@ -27036,6 +27705,59 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27036
27705
|
this.writePropertyStyleResource(node.key, resource);
|
|
27037
27706
|
return true;
|
|
27038
27707
|
}
|
|
27708
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage (when it's a resource object or property array)
|
|
27709
|
+
enter_coverImage(node, route) {
|
|
27710
|
+
const value = node.value;
|
|
27711
|
+
if (value && typeof value === "object" && !Array.isArray(value) && "type" in value) {
|
|
27712
|
+
const resource = value;
|
|
27713
|
+
this.writeNL();
|
|
27714
|
+
this.writePropertyStyleResource(node.key, resource);
|
|
27715
|
+
return true;
|
|
27716
|
+
}
|
|
27717
|
+
if (Array.isArray(value)) {
|
|
27718
|
+
if (value == null) return true;
|
|
27719
|
+
const parent = this.getParentNode(route);
|
|
27720
|
+
if (parent?.key !== NodeType.bitsValue) return true;
|
|
27721
|
+
const bitType = this.getBitType(route);
|
|
27722
|
+
if (!bitType) return true;
|
|
27723
|
+
const config = instance2.getBitConfig(bitType);
|
|
27724
|
+
const propertyConfig = instance2.getTagConfigForTag(
|
|
27725
|
+
config.tags,
|
|
27726
|
+
ConfigKey.property_coverImage
|
|
27727
|
+
);
|
|
27728
|
+
if (!propertyConfig) return true;
|
|
27729
|
+
this.writeNL_IfNotChain(route);
|
|
27730
|
+
this.writeProperty(propertyConfig.tag, value, route, {
|
|
27731
|
+
format: propertyConfig.format ?? TagFormat.plainText,
|
|
27732
|
+
array: propertyConfig.array ?? false,
|
|
27733
|
+
writeEmpty: true,
|
|
27734
|
+
ignoreFalse: propertyConfig.defaultValue === "false",
|
|
27735
|
+
ignoreTrue: propertyConfig.defaultValue === "true"
|
|
27736
|
+
});
|
|
27737
|
+
}
|
|
27738
|
+
return true;
|
|
27739
|
+
}
|
|
27740
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage (when it's a property string)
|
|
27741
|
+
// This is called when coverImage is a simple string value
|
|
27742
|
+
leaf_coverImage(node, route) {
|
|
27743
|
+
const value = node.value;
|
|
27744
|
+
if (value == null) return;
|
|
27745
|
+
const parent = this.getParentNode(route);
|
|
27746
|
+
if (parent?.key !== NodeType.bitsValue) return;
|
|
27747
|
+
const bitType = this.getBitType(route);
|
|
27748
|
+
if (!bitType) return;
|
|
27749
|
+
const config = instance2.getBitConfig(bitType);
|
|
27750
|
+
const propertyConfig = instance2.getTagConfigForTag(config.tags, ConfigKey.property_coverImage);
|
|
27751
|
+
if (!propertyConfig) return;
|
|
27752
|
+
this.writeNL_IfNotChain(route);
|
|
27753
|
+
this.writeProperty(propertyConfig.tag, node.value, route, {
|
|
27754
|
+
format: propertyConfig.format ?? TagFormat.plainText,
|
|
27755
|
+
array: propertyConfig.array ?? false,
|
|
27756
|
+
writeEmpty: true,
|
|
27757
|
+
ignoreFalse: propertyConfig.defaultValue === "false",
|
|
27758
|
+
ignoreTrue: propertyConfig.defaultValue === "true"
|
|
27759
|
+
});
|
|
27760
|
+
}
|
|
27039
27761
|
exit_imagePlaceholder(_node, _route) {
|
|
27040
27762
|
}
|
|
27041
27763
|
// bitmarkAst -> bits -> bitsValue -> posterImage
|
|
@@ -27463,7 +28185,7 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27463
28185
|
BitType.pageBanner,
|
|
27464
28186
|
BitType.imagesLogoGrave,
|
|
27465
28187
|
BitType.prototypeImages,
|
|
27466
|
-
BitType.
|
|
28188
|
+
BitType.extractorImage
|
|
27467
28189
|
])) {
|
|
27468
28190
|
this.writeProperty("zoomDisabled", node.value, route, {
|
|
27469
28191
|
format: TagFormat.boolean,
|
|
@@ -27516,6 +28238,14 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27516
28238
|
format: TagFormat.plainText
|
|
27517
28239
|
});
|
|
27518
28240
|
}
|
|
28241
|
+
leaf_selected(node, route) {
|
|
28242
|
+
if (node.value == null) return;
|
|
28243
|
+
this.writeNL_IfNotChain(route);
|
|
28244
|
+
this.writeProperty("selected", node.value, route, {
|
|
28245
|
+
format: TagFormat.boolean,
|
|
28246
|
+
ignoreFalse: true
|
|
28247
|
+
});
|
|
28248
|
+
}
|
|
27519
28249
|
// bitmarkAst -> bits -> bitsValue -> resource -> ...
|
|
27520
28250
|
// bitmarkAst -> bits -> bitsValue -> resource -> posterImage -> ...
|
|
27521
28251
|
// bitmarkAst -> bits -> bitsValue -> resource -> thumbnails -> thumbnailsValue -> ...
|
|
@@ -28621,6 +29351,14 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28621
29351
|
enter_imagePlaceholder(node, route) {
|
|
28622
29352
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28623
29353
|
}
|
|
29354
|
+
// bitmarkAst -> bits -> bitsValue -> previewImage
|
|
29355
|
+
enter_previewImage(node, route) {
|
|
29356
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
29357
|
+
}
|
|
29358
|
+
// bitmarkAst -> bits -> bitsValue -> previewVideo
|
|
29359
|
+
enter_previewVideo(node, route) {
|
|
29360
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
29361
|
+
}
|
|
28624
29362
|
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
28625
29363
|
enter_platformIcon(node, route) {
|
|
28626
29364
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
@@ -28633,6 +29371,12 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28633
29371
|
enter_platformBackgroundImage(node, route) {
|
|
28634
29372
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28635
29373
|
}
|
|
29374
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage
|
|
29375
|
+
enter_coverImage(node, route) {
|
|
29376
|
+
return this.standardHandler(node, route, NodeType.bitsValue, {
|
|
29377
|
+
array: Array.isArray(node.value)
|
|
29378
|
+
});
|
|
29379
|
+
}
|
|
28636
29380
|
// bitmarkAst -> bits -> bitsValue -> resources
|
|
28637
29381
|
enter_resources(node, route) {
|
|
28638
29382
|
const resources = node.value;
|
|
@@ -28674,7 +29418,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28674
29418
|
} else if (instance2.isOfBitType(bitType, [
|
|
28675
29419
|
BitType.imagesLogoGrave,
|
|
28676
29420
|
BitType.prototypeImages,
|
|
28677
|
-
BitType.
|
|
29421
|
+
BitType.extractorImage
|
|
28678
29422
|
])) {
|
|
28679
29423
|
const images = [];
|
|
28680
29424
|
for (const r of resources) {
|
|
@@ -29255,7 +29999,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
29255
29999
|
if (instance2.isOfBitType(bitType, [
|
|
29256
30000
|
BitType.imagesLogoGrave,
|
|
29257
30001
|
BitType.prototypeImages,
|
|
29258
|
-
BitType.
|
|
30002
|
+
BitType.extractorImage
|
|
29259
30003
|
])) {
|
|
29260
30004
|
if (bitType === BitType.imagesLogoGrave) {
|
|
29261
30005
|
if (bitJson.logos == null) {
|
|
@@ -29312,6 +30056,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
29312
30056
|
if (instance2.isOfBitType(bitType, BitType.platformPath)) {
|
|
29313
30057
|
if (bitJson.path == null) bitJson.path = "";
|
|
29314
30058
|
}
|
|
30059
|
+
if (instance2.isOfBitType(bitType, BitType.platformBrandTarget)) {
|
|
30060
|
+
if (bitJson.platformBrandTarget == null) bitJson.platformBrandTarget = "none";
|
|
30061
|
+
}
|
|
29315
30062
|
if (isTopLevelExample) {
|
|
29316
30063
|
if (bitJson.isExample == null) bitJson.isExample = false;
|
|
29317
30064
|
} else {
|
|
@@ -29684,7 +30431,7 @@ var JsonParser = class {
|
|
|
29684
30431
|
processResources(bitType, resource, images, logos) {
|
|
29685
30432
|
const nodes = [];
|
|
29686
30433
|
if (resource) nodes.push(resource);
|
|
29687
|
-
if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.
|
|
30434
|
+
if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.extractorImage])) {
|
|
29688
30435
|
if (Array.isArray(images)) {
|
|
29689
30436
|
for (const image of images) {
|
|
29690
30437
|
if (image) nodes.push(image);
|
|
@@ -30606,7 +31353,7 @@ var BitmarkPegParserValidator = class {
|
|
|
30606
31353
|
let tagData = validTypeKeys.get(validTypeKey);
|
|
30607
31354
|
if (!tagData && typeKey === TypeKey.Property) {
|
|
30608
31355
|
const resourceKey = key.replace(/^@/, "&");
|
|
30609
|
-
if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder || resourceKey === ConfigKey.resource_platformIcon || resourceKey === ConfigKey.resource_platformLogo || resourceKey === ConfigKey.resource_platformBackgroundImage) {
|
|
31356
|
+
if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder || resourceKey === ConfigKey.resource_platformIcon || resourceKey === ConfigKey.resource_platformLogo || resourceKey === ConfigKey.resource_platformBackgroundImage || resourceKey === ConfigKey.resource_coverImage) {
|
|
30610
31357
|
tagData = validTypeKeys.get(resourceKey);
|
|
30611
31358
|
if (tagData) {
|
|
30612
31359
|
typeKey = TypeKey.Resource;
|
|
@@ -33009,8 +33756,19 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
|
|
|
33009
33756
|
...tags2
|
|
33010
33757
|
});
|
|
33011
33758
|
if (resource) {
|
|
33012
|
-
if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder || configKey === ConfigKey.resource_platformIcon || configKey === ConfigKey.resource_platformLogo || configKey === ConfigKey.resource_platformBackgroundImage) {
|
|
33013
|
-
if (target.propertyStyleResources)
|
|
33759
|
+
if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder || configKey === ConfigKey.resource_platformIcon || configKey === ConfigKey.resource_platformLogo || configKey === ConfigKey.resource_platformBackgroundImage || configKey === ConfigKey.resource_previewImage || configKey === ConfigKey.resource_previewVideo || configKey === ConfigKey.resource_coverImage) {
|
|
33760
|
+
if (target.propertyStyleResources) {
|
|
33761
|
+
if (target.propertyStyleResources[resourceType]) {
|
|
33762
|
+
if (!Array.isArray(target.propertyStyleResources[resourceType])) {
|
|
33763
|
+
target.propertyStyleResources[resourceType] = [
|
|
33764
|
+
target.propertyStyleResources[resourceType]
|
|
33765
|
+
];
|
|
33766
|
+
}
|
|
33767
|
+
target.propertyStyleResources[resourceType].push(resource);
|
|
33768
|
+
} else {
|
|
33769
|
+
target.propertyStyleResources[resourceType] = resource;
|
|
33770
|
+
}
|
|
33771
|
+
}
|
|
33014
33772
|
} else {
|
|
33015
33773
|
resources.push(resource);
|
|
33016
33774
|
}
|