@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
|
@@ -291,8 +291,8 @@ var BitType = (0, import_superenum.superenum)({
|
|
|
291
291
|
extractorAiChat: "extractor-ai-chat",
|
|
292
292
|
extractorBlock: "extractor-block",
|
|
293
293
|
extractorConfiguration: "extractor-configuration",
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
extractorImage: "extractor-image",
|
|
295
|
+
extractorImageCollapsible: "extractor-image-collapsible",
|
|
296
296
|
extractorInformation: "extractor-information",
|
|
297
297
|
extractorPage: "extractor-page",
|
|
298
298
|
extractorPageCollapsible: "extractor-page-collapsible",
|
|
@@ -466,6 +466,7 @@ var BitType = (0, import_superenum.superenum)({
|
|
|
466
466
|
pageHero: "page-hero",
|
|
467
467
|
pageOpenBook: "page-open-book",
|
|
468
468
|
pageOpenBookList: "page-open-book-list",
|
|
469
|
+
openBookChapter: "open-book-chapter",
|
|
469
470
|
pagePerson: "page-person",
|
|
470
471
|
pageProduct: "page-product",
|
|
471
472
|
pageProductList: "page-product-list",
|
|
@@ -480,6 +481,7 @@ var BitType = (0, import_superenum.superenum)({
|
|
|
480
481
|
parameters: "parameters",
|
|
481
482
|
photo: "photo",
|
|
482
483
|
platform: "platform",
|
|
484
|
+
platformBrandTarget: "platform-brand-target",
|
|
483
485
|
platformHeader: "platform-header",
|
|
484
486
|
platformMain: "platform-main",
|
|
485
487
|
platformMainButton: "platform-main-button",
|
|
@@ -1153,7 +1155,9 @@ var groupKeys = {
|
|
|
1153
1155
|
group_resourceDocumentLink: "group_resourceDocumentLink",
|
|
1154
1156
|
group_resourceDocumentDownload: "group_resourceDocumentDownload",
|
|
1155
1157
|
group_resourceAppLink: "group_resourceAppLink",
|
|
1156
|
-
group_resourceWebsiteLink: "group_resourceWebsiteLink"
|
|
1158
|
+
group_resourceWebsiteLink: "group_resourceWebsiteLink",
|
|
1159
|
+
group_previewImages: "group_previewImages",
|
|
1160
|
+
group_previewVideos: "group_previewVideos"
|
|
1157
1161
|
};
|
|
1158
1162
|
var GroupKey = (0, import_superenum10.superenum)(groupKeys);
|
|
1159
1163
|
|
|
@@ -1172,6 +1176,10 @@ var propertyKeys = {
|
|
|
1172
1176
|
property_altLangTag: "@altLangTag",
|
|
1173
1177
|
property_analyticsTag: "@analyticsTag",
|
|
1174
1178
|
property_author: "@author",
|
|
1179
|
+
property_authorFullName: "@authorFullName",
|
|
1180
|
+
property_authorJobTitle: "@authorJobTitle",
|
|
1181
|
+
property_authorPseudonym: "@authorPseudonym",
|
|
1182
|
+
property_authorTitle: "@authorTitle",
|
|
1175
1183
|
property_autoplay: "@autoplay",
|
|
1176
1184
|
property_availableClassifications: "@availableClassifications",
|
|
1177
1185
|
property_brandColor: "@brandColor",
|
|
@@ -1189,6 +1197,23 @@ var propertyKeys = {
|
|
|
1189
1197
|
property_categoryTag: "@categoryTag",
|
|
1190
1198
|
property_chatWithBook: "@chatWithBook",
|
|
1191
1199
|
property_chatWithBookBrainKey: "@chatWithBookBrainKey",
|
|
1200
|
+
property_currency: "@currency",
|
|
1201
|
+
property_bookIsbn: "@bookIsbn",
|
|
1202
|
+
property_bookAuthor: "@bookAuthor",
|
|
1203
|
+
property_bookType: "@bookType",
|
|
1204
|
+
property_bookBindingType: "@bookBindingType",
|
|
1205
|
+
property_bookNumberOfPages: "@bookNumberOfPages",
|
|
1206
|
+
property_bookRating: "@bookRating",
|
|
1207
|
+
property_bookSeriesTitle: "@bookSeriesTitle",
|
|
1208
|
+
property_bookSeriesId: "@bookSeriesId",
|
|
1209
|
+
property_bookSeriesNumber: "@bookSeriesNumber",
|
|
1210
|
+
property_bookLanguage: "@bookLanguage",
|
|
1211
|
+
property_bookPublishingDate: "@bookPublishingDate",
|
|
1212
|
+
property_bookPublisher: "@bookPublisher",
|
|
1213
|
+
property_bookTranslator: "@bookTranslator",
|
|
1214
|
+
property_bookOriginalTitle: "@bookOriginalTitle",
|
|
1215
|
+
property_gmbExternalShop: "@gmbExternalShop",
|
|
1216
|
+
property_gmbExternalShopItems: "@gmbExternalShopItems",
|
|
1192
1217
|
property_citationStyle: "@citationStyle",
|
|
1193
1218
|
property_classification: "@classification",
|
|
1194
1219
|
property_codeLineNumbers: "@codeLineNumbers",
|
|
@@ -1289,6 +1314,7 @@ var propertyKeys = {
|
|
|
1289
1314
|
// Deprecated, replaced by person
|
|
1290
1315
|
property_path: "@path",
|
|
1291
1316
|
property_platformBackgroundColor: "@platformBackgroundColor",
|
|
1317
|
+
property_platformBrandTarget: "@platformBrandTarget",
|
|
1292
1318
|
property_platformButtonBackgroundColor: "@platformButtonBackgroundColor",
|
|
1293
1319
|
property_platformButtonPrimaryColor: "@platformButtonPrimaryColor",
|
|
1294
1320
|
property_platformMessageBackgroundColor: "@platformMessageBackgroundColor",
|
|
@@ -1342,6 +1368,7 @@ var propertyKeys = {
|
|
|
1342
1368
|
property_scormSource: "@scormSource",
|
|
1343
1369
|
property_search: "@search",
|
|
1344
1370
|
property_searchIndex: "@searchIndex",
|
|
1371
|
+
property_selected: "@selected",
|
|
1345
1372
|
property_servings: "@servings",
|
|
1346
1373
|
property_showInIndex: "@showInIndex",
|
|
1347
1374
|
property_showSubtitles: "@showSubtitles",
|
|
@@ -1432,7 +1459,10 @@ var resourceKeys = {
|
|
|
1432
1459
|
resource_platformIcon: "&platformIcon",
|
|
1433
1460
|
resource_platformLogo: "&platformLogo",
|
|
1434
1461
|
resource_backgroundWallpaper: "&backgroundWallpaper",
|
|
1435
|
-
resource_imagePlaceholder: "&imagePlaceholder"
|
|
1462
|
+
resource_imagePlaceholder: "&imagePlaceholder",
|
|
1463
|
+
resource_previewImage: "&previewImage",
|
|
1464
|
+
resource_previewVideo: "&previewVideo",
|
|
1465
|
+
resource_coverImage: "&coverImage"
|
|
1436
1466
|
};
|
|
1437
1467
|
var ResourceKey = (0, import_superenum12.superenum)(resourceKeys);
|
|
1438
1468
|
|
|
@@ -1660,7 +1690,10 @@ var ResourceType = (0, import_superenum13.superenum)({
|
|
|
1660
1690
|
imagePlaceholder: "imagePlaceholder",
|
|
1661
1691
|
platformIcon: "platformIcon",
|
|
1662
1692
|
platformLogo: "platformLogo",
|
|
1663
|
-
platformBackgroundImage: "platformBackgroundImage"
|
|
1693
|
+
platformBackgroundImage: "platformBackgroundImage",
|
|
1694
|
+
previewImage: "previewImage",
|
|
1695
|
+
previewVideo: "previewVideo",
|
|
1696
|
+
coverImage: "coverImage"
|
|
1664
1697
|
});
|
|
1665
1698
|
function resourceTypeToConfigKey(type) {
|
|
1666
1699
|
return `&${stringUtils.kebabToCamel(type)}`;
|
|
@@ -3329,6 +3362,16 @@ var GROUPS = {
|
|
|
3329
3362
|
format: TagFormat.plainText,
|
|
3330
3363
|
maxCount: Count.infinity
|
|
3331
3364
|
},
|
|
3365
|
+
{
|
|
3366
|
+
key: ConfigKey.resource_coverImage,
|
|
3367
|
+
description: "The cover image of the book",
|
|
3368
|
+
chain: [
|
|
3369
|
+
{
|
|
3370
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
3371
|
+
description: "Common image properties for the cover image resource"
|
|
3372
|
+
}
|
|
3373
|
+
]
|
|
3374
|
+
},
|
|
3332
3375
|
{
|
|
3333
3376
|
key: ConfigKey.property_coverColor,
|
|
3334
3377
|
description: "The cover color of the book",
|
|
@@ -3604,6 +3647,12 @@ var GROUPS = {
|
|
|
3604
3647
|
description: "The search text for the resource",
|
|
3605
3648
|
format: TagFormat.plainText
|
|
3606
3649
|
},
|
|
3650
|
+
{
|
|
3651
|
+
key: ConfigKey.property_selected,
|
|
3652
|
+
description: "If true, the resource is selected",
|
|
3653
|
+
format: TagFormat.boolean,
|
|
3654
|
+
defaultValue: "false"
|
|
3655
|
+
},
|
|
3607
3656
|
{
|
|
3608
3657
|
key: ConfigKey.property_srcAlt,
|
|
3609
3658
|
description: "An alternative source for the resource",
|
|
@@ -4179,6 +4228,38 @@ var GROUPS = {
|
|
|
4179
4228
|
minCount: 1
|
|
4180
4229
|
}
|
|
4181
4230
|
]
|
|
4231
|
+
},
|
|
4232
|
+
[ConfigKey.group_previewImages]: {
|
|
4233
|
+
type: GroupConfigType.resource,
|
|
4234
|
+
description: "Array of preview images for catalog items",
|
|
4235
|
+
tags: [
|
|
4236
|
+
{
|
|
4237
|
+
key: ConfigKey.resource_previewImage,
|
|
4238
|
+
description: "The preview image resource",
|
|
4239
|
+
chain: [
|
|
4240
|
+
{
|
|
4241
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4242
|
+
description: "Common image properties for the image resource"
|
|
4243
|
+
}
|
|
4244
|
+
]
|
|
4245
|
+
}
|
|
4246
|
+
]
|
|
4247
|
+
},
|
|
4248
|
+
[ConfigKey.group_previewVideos]: {
|
|
4249
|
+
type: GroupConfigType.resource,
|
|
4250
|
+
description: "Array of preview videos for catalog items",
|
|
4251
|
+
tags: [
|
|
4252
|
+
{
|
|
4253
|
+
key: ConfigKey.resource_previewVideo,
|
|
4254
|
+
description: "The preview video resource",
|
|
4255
|
+
chain: [
|
|
4256
|
+
{
|
|
4257
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4258
|
+
description: "Common image properties for the image resource"
|
|
4259
|
+
}
|
|
4260
|
+
]
|
|
4261
|
+
}
|
|
4262
|
+
]
|
|
4182
4263
|
}
|
|
4183
4264
|
};
|
|
4184
4265
|
|
|
@@ -4572,6 +4653,16 @@ var BITS = {
|
|
|
4572
4653
|
description: "Cover image of the catalog item",
|
|
4573
4654
|
format: TagFormat.plainText
|
|
4574
4655
|
},
|
|
4656
|
+
{
|
|
4657
|
+
key: ConfigKey.resource_coverImage,
|
|
4658
|
+
description: "Cover image of the catalog item",
|
|
4659
|
+
chain: [
|
|
4660
|
+
{
|
|
4661
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4662
|
+
description: "Common image properties for the cover image resource"
|
|
4663
|
+
}
|
|
4664
|
+
]
|
|
4665
|
+
},
|
|
4575
4666
|
{
|
|
4576
4667
|
key: ConfigKey.property_content2Buy,
|
|
4577
4668
|
description: "Content to buy identifier",
|
|
@@ -4591,6 +4682,106 @@ var BITS = {
|
|
|
4591
4682
|
key: ConfigKey.property_customerProductId,
|
|
4592
4683
|
description: "Customer-specific product identifier",
|
|
4593
4684
|
format: TagFormat.plainText
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
key: ConfigKey.property_currency,
|
|
4688
|
+
description: "Currency for the catalog item",
|
|
4689
|
+
format: TagFormat.plainText
|
|
4690
|
+
},
|
|
4691
|
+
{
|
|
4692
|
+
key: ConfigKey.property_bookIsbn,
|
|
4693
|
+
description: "ISBN for iBook version",
|
|
4694
|
+
format: TagFormat.plainText
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
key: ConfigKey.property_bookAuthor,
|
|
4698
|
+
description: "Author of the book",
|
|
4699
|
+
format: TagFormat.plainText
|
|
4700
|
+
},
|
|
4701
|
+
{
|
|
4702
|
+
key: ConfigKey.property_bookType,
|
|
4703
|
+
description: "Type of the book",
|
|
4704
|
+
format: TagFormat.plainText
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
key: ConfigKey.property_bookBindingType,
|
|
4708
|
+
description: "Binding type of the book",
|
|
4709
|
+
format: TagFormat.plainText
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4713
|
+
description: "Number of pages in the book",
|
|
4714
|
+
format: TagFormat.plainText
|
|
4715
|
+
},
|
|
4716
|
+
{
|
|
4717
|
+
key: ConfigKey.property_bookRating,
|
|
4718
|
+
description: "Rating of the book",
|
|
4719
|
+
format: TagFormat.plainText
|
|
4720
|
+
},
|
|
4721
|
+
{
|
|
4722
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
4723
|
+
description: "Title of the book series",
|
|
4724
|
+
format: TagFormat.plainText
|
|
4725
|
+
},
|
|
4726
|
+
{
|
|
4727
|
+
key: ConfigKey.property_bookSeriesId,
|
|
4728
|
+
description: "ID of the book series",
|
|
4729
|
+
format: TagFormat.plainText
|
|
4730
|
+
},
|
|
4731
|
+
{
|
|
4732
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
4733
|
+
description: "Number in the book series",
|
|
4734
|
+
format: TagFormat.plainText
|
|
4735
|
+
},
|
|
4736
|
+
{
|
|
4737
|
+
key: ConfigKey.property_bookLanguage,
|
|
4738
|
+
description: "Language of the book",
|
|
4739
|
+
format: TagFormat.plainText
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
4743
|
+
description: "Publishing date of the book",
|
|
4744
|
+
format: TagFormat.plainText
|
|
4745
|
+
},
|
|
4746
|
+
{
|
|
4747
|
+
key: ConfigKey.property_bookPublisher,
|
|
4748
|
+
description: "Publisher of the book",
|
|
4749
|
+
format: TagFormat.plainText
|
|
4750
|
+
},
|
|
4751
|
+
{
|
|
4752
|
+
key: ConfigKey.property_bookTranslator,
|
|
4753
|
+
description: "Translator of the book",
|
|
4754
|
+
format: TagFormat.plainText
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
4758
|
+
description: "Original title of the book",
|
|
4759
|
+
format: TagFormat.plainText
|
|
4760
|
+
},
|
|
4761
|
+
{
|
|
4762
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
4763
|
+
description: "External shop identifier",
|
|
4764
|
+
format: TagFormat.plainText
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
4768
|
+
description: "Array of external shop items",
|
|
4769
|
+
format: TagFormat.plainText,
|
|
4770
|
+
maxCount: Count.infinity
|
|
4771
|
+
},
|
|
4772
|
+
{
|
|
4773
|
+
key: ConfigKey.group_imageSource,
|
|
4774
|
+
description: "Image source chain"
|
|
4775
|
+
},
|
|
4776
|
+
{
|
|
4777
|
+
key: ConfigKey.group_previewImages,
|
|
4778
|
+
description: "Array of preview images for the catalog item",
|
|
4779
|
+
maxCount: Count.infinity
|
|
4780
|
+
},
|
|
4781
|
+
{
|
|
4782
|
+
key: ConfigKey.group_previewVideos,
|
|
4783
|
+
description: "Array of preview videos for the catalog item",
|
|
4784
|
+
maxCount: Count.infinity
|
|
4594
4785
|
}
|
|
4595
4786
|
],
|
|
4596
4787
|
rootExampleType: ExampleType.string
|
|
@@ -4610,6 +4801,16 @@ var BITS = {
|
|
|
4610
4801
|
description: "Cover image of the catalog item",
|
|
4611
4802
|
format: TagFormat.plainText
|
|
4612
4803
|
},
|
|
4804
|
+
{
|
|
4805
|
+
key: ConfigKey.resource_coverImage,
|
|
4806
|
+
description: "Cover image of the catalog item",
|
|
4807
|
+
chain: [
|
|
4808
|
+
{
|
|
4809
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4810
|
+
description: "Common image properties for the cover image resource"
|
|
4811
|
+
}
|
|
4812
|
+
]
|
|
4813
|
+
},
|
|
4613
4814
|
{
|
|
4614
4815
|
key: ConfigKey.property_customerProductShopLink,
|
|
4615
4816
|
description: "Link to external shop for the product",
|
|
@@ -4629,6 +4830,106 @@ var BITS = {
|
|
|
4629
4830
|
key: ConfigKey.property_customerProductId,
|
|
4630
4831
|
description: "Customer-specific product identifier",
|
|
4631
4832
|
format: TagFormat.plainText
|
|
4833
|
+
},
|
|
4834
|
+
{
|
|
4835
|
+
key: ConfigKey.property_currency,
|
|
4836
|
+
description: "Currency for the catalog item",
|
|
4837
|
+
format: TagFormat.plainText
|
|
4838
|
+
},
|
|
4839
|
+
{
|
|
4840
|
+
key: ConfigKey.property_bookIsbn,
|
|
4841
|
+
description: "ISBN for iBook version",
|
|
4842
|
+
format: TagFormat.plainText
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
key: ConfigKey.property_bookAuthor,
|
|
4846
|
+
description: "Author of the book",
|
|
4847
|
+
format: TagFormat.plainText
|
|
4848
|
+
},
|
|
4849
|
+
{
|
|
4850
|
+
key: ConfigKey.property_bookType,
|
|
4851
|
+
description: "Type of the book",
|
|
4852
|
+
format: TagFormat.plainText
|
|
4853
|
+
},
|
|
4854
|
+
{
|
|
4855
|
+
key: ConfigKey.property_bookBindingType,
|
|
4856
|
+
description: "Binding type of the book",
|
|
4857
|
+
format: TagFormat.plainText
|
|
4858
|
+
},
|
|
4859
|
+
{
|
|
4860
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4861
|
+
description: "Number of pages in the book",
|
|
4862
|
+
format: TagFormat.plainText
|
|
4863
|
+
},
|
|
4864
|
+
{
|
|
4865
|
+
key: ConfigKey.property_bookRating,
|
|
4866
|
+
description: "Rating of the book",
|
|
4867
|
+
format: TagFormat.plainText
|
|
4868
|
+
},
|
|
4869
|
+
{
|
|
4870
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
4871
|
+
description: "Title of the book series",
|
|
4872
|
+
format: TagFormat.plainText
|
|
4873
|
+
},
|
|
4874
|
+
{
|
|
4875
|
+
key: ConfigKey.property_bookSeriesId,
|
|
4876
|
+
description: "ID of the book series",
|
|
4877
|
+
format: TagFormat.plainText
|
|
4878
|
+
},
|
|
4879
|
+
{
|
|
4880
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
4881
|
+
description: "Number in the book series",
|
|
4882
|
+
format: TagFormat.plainText
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
key: ConfigKey.property_bookLanguage,
|
|
4886
|
+
description: "Language of the book",
|
|
4887
|
+
format: TagFormat.plainText
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
4891
|
+
description: "Publishing date of the book",
|
|
4892
|
+
format: TagFormat.plainText
|
|
4893
|
+
},
|
|
4894
|
+
{
|
|
4895
|
+
key: ConfigKey.property_bookPublisher,
|
|
4896
|
+
description: "Publisher of the book",
|
|
4897
|
+
format: TagFormat.plainText
|
|
4898
|
+
},
|
|
4899
|
+
{
|
|
4900
|
+
key: ConfigKey.property_bookTranslator,
|
|
4901
|
+
description: "Translator of the book",
|
|
4902
|
+
format: TagFormat.plainText
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
4906
|
+
description: "Original title of the book",
|
|
4907
|
+
format: TagFormat.plainText
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
4911
|
+
description: "External shop identifier",
|
|
4912
|
+
format: TagFormat.plainText
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
4916
|
+
description: "Array of external shop items",
|
|
4917
|
+
format: TagFormat.plainText,
|
|
4918
|
+
maxCount: Count.infinity
|
|
4919
|
+
},
|
|
4920
|
+
{
|
|
4921
|
+
key: ConfigKey.group_imageSource,
|
|
4922
|
+
description: "Image source chain"
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
key: ConfigKey.group_previewImages,
|
|
4926
|
+
description: "Array of preview images for the catalog item",
|
|
4927
|
+
maxCount: Count.infinity
|
|
4928
|
+
},
|
|
4929
|
+
{
|
|
4930
|
+
key: ConfigKey.group_previewVideos,
|
|
4931
|
+
description: "Array of preview videos for the catalog item",
|
|
4932
|
+
maxCount: Count.infinity
|
|
4632
4933
|
}
|
|
4633
4934
|
],
|
|
4634
4935
|
rootExampleType: ExampleType.string
|
|
@@ -4667,6 +4968,106 @@ var BITS = {
|
|
|
4667
4968
|
key: ConfigKey.property_customerProductId,
|
|
4668
4969
|
description: "Customer-specific product identifier",
|
|
4669
4970
|
format: TagFormat.plainText
|
|
4971
|
+
},
|
|
4972
|
+
{
|
|
4973
|
+
key: ConfigKey.property_currency,
|
|
4974
|
+
description: "Currency for the catalog item",
|
|
4975
|
+
format: TagFormat.plainText
|
|
4976
|
+
},
|
|
4977
|
+
{
|
|
4978
|
+
key: ConfigKey.property_bookIsbn,
|
|
4979
|
+
description: "ISBN for iBook version",
|
|
4980
|
+
format: TagFormat.plainText
|
|
4981
|
+
},
|
|
4982
|
+
{
|
|
4983
|
+
key: ConfigKey.property_bookAuthor,
|
|
4984
|
+
description: "Author of the book",
|
|
4985
|
+
format: TagFormat.plainText
|
|
4986
|
+
},
|
|
4987
|
+
{
|
|
4988
|
+
key: ConfigKey.property_bookType,
|
|
4989
|
+
description: "Type of the book",
|
|
4990
|
+
format: TagFormat.plainText
|
|
4991
|
+
},
|
|
4992
|
+
{
|
|
4993
|
+
key: ConfigKey.property_bookBindingType,
|
|
4994
|
+
description: "Binding type of the book",
|
|
4995
|
+
format: TagFormat.plainText
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4999
|
+
description: "Number of pages in the book",
|
|
5000
|
+
format: TagFormat.plainText
|
|
5001
|
+
},
|
|
5002
|
+
{
|
|
5003
|
+
key: ConfigKey.property_bookRating,
|
|
5004
|
+
description: "Rating of the book",
|
|
5005
|
+
format: TagFormat.plainText
|
|
5006
|
+
},
|
|
5007
|
+
{
|
|
5008
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
5009
|
+
description: "Title of the book series",
|
|
5010
|
+
format: TagFormat.plainText
|
|
5011
|
+
},
|
|
5012
|
+
{
|
|
5013
|
+
key: ConfigKey.property_bookSeriesId,
|
|
5014
|
+
description: "ID of the book series",
|
|
5015
|
+
format: TagFormat.plainText
|
|
5016
|
+
},
|
|
5017
|
+
{
|
|
5018
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
5019
|
+
description: "Number in the book series",
|
|
5020
|
+
format: TagFormat.plainText
|
|
5021
|
+
},
|
|
5022
|
+
{
|
|
5023
|
+
key: ConfigKey.property_bookLanguage,
|
|
5024
|
+
description: "Language of the book",
|
|
5025
|
+
format: TagFormat.plainText
|
|
5026
|
+
},
|
|
5027
|
+
{
|
|
5028
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
5029
|
+
description: "Publishing date of the book",
|
|
5030
|
+
format: TagFormat.plainText
|
|
5031
|
+
},
|
|
5032
|
+
{
|
|
5033
|
+
key: ConfigKey.property_bookPublisher,
|
|
5034
|
+
description: "Publisher of the book",
|
|
5035
|
+
format: TagFormat.plainText
|
|
5036
|
+
},
|
|
5037
|
+
{
|
|
5038
|
+
key: ConfigKey.property_bookTranslator,
|
|
5039
|
+
description: "Translator of the book",
|
|
5040
|
+
format: TagFormat.plainText
|
|
5041
|
+
},
|
|
5042
|
+
{
|
|
5043
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
5044
|
+
description: "Original title of the book",
|
|
5045
|
+
format: TagFormat.plainText
|
|
5046
|
+
},
|
|
5047
|
+
{
|
|
5048
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
5049
|
+
description: "External shop identifier",
|
|
5050
|
+
format: TagFormat.plainText
|
|
5051
|
+
},
|
|
5052
|
+
{
|
|
5053
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
5054
|
+
description: "Array of external shop items",
|
|
5055
|
+
format: TagFormat.plainText,
|
|
5056
|
+
maxCount: Count.infinity
|
|
5057
|
+
},
|
|
5058
|
+
{
|
|
5059
|
+
key: ConfigKey.group_imageSource,
|
|
5060
|
+
description: "Image source chain"
|
|
5061
|
+
},
|
|
5062
|
+
{
|
|
5063
|
+
key: ConfigKey.group_previewImages,
|
|
5064
|
+
description: "Array of preview images for the catalog item",
|
|
5065
|
+
maxCount: Count.infinity
|
|
5066
|
+
},
|
|
5067
|
+
{
|
|
5068
|
+
key: ConfigKey.group_previewVideos,
|
|
5069
|
+
description: "Array of preview videos for the catalog item",
|
|
5070
|
+
maxCount: Count.infinity
|
|
4670
5071
|
}
|
|
4671
5072
|
],
|
|
4672
5073
|
rootExampleType: ExampleType.string
|
|
@@ -6754,7 +7155,7 @@ var BITS = {
|
|
|
6754
7155
|
description: "Extractor configuration bit, used to configure extractors in articles or books",
|
|
6755
7156
|
textFormatDefault: TextFormat2.plainText
|
|
6756
7157
|
},
|
|
6757
|
-
[BitType.
|
|
7158
|
+
[BitType.extractorImage]: {
|
|
6758
7159
|
since: "4.3.0",
|
|
6759
7160
|
baseBitType: BitType._standard,
|
|
6760
7161
|
description: "Extractor images bit, used for images extracted from PDFs",
|
|
@@ -6774,9 +7175,9 @@ var BITS = {
|
|
|
6774
7175
|
resourceAttachmentAllowed: false,
|
|
6775
7176
|
textFormatDefault: TextFormat2.plainText
|
|
6776
7177
|
},
|
|
6777
|
-
[BitType.
|
|
7178
|
+
[BitType.extractorImageCollapsible]: {
|
|
6778
7179
|
since: "4.3.0",
|
|
6779
|
-
baseBitType: BitType.
|
|
7180
|
+
baseBitType: BitType.extractorImage,
|
|
6780
7181
|
description: "Collapsible extractor images bit, used for images extracted from PDFs"
|
|
6781
7182
|
},
|
|
6782
7183
|
[BitType.extractorInformation]: {
|
|
@@ -6914,9 +7315,34 @@ var BITS = {
|
|
|
6914
7315
|
{
|
|
6915
7316
|
key: ConfigKey.property_buttonCaption,
|
|
6916
7317
|
description: "Caption for the button, used to define the text displayed on the button"
|
|
7318
|
+
},
|
|
7319
|
+
{
|
|
7320
|
+
key: ConfigKey.property_authorFullName,
|
|
7321
|
+
description: "Full name of the author",
|
|
7322
|
+
format: TagFormat.plainText
|
|
7323
|
+
},
|
|
7324
|
+
{
|
|
7325
|
+
key: ConfigKey.property_authorPseudonym,
|
|
7326
|
+
description: "A pseudonym of the author, if any",
|
|
7327
|
+
format: TagFormat.plainText
|
|
7328
|
+
},
|
|
7329
|
+
{
|
|
7330
|
+
key: ConfigKey.property_authorTitle,
|
|
7331
|
+
description: 'The title of the author, e.g. "Dr.", "Prof.", etc.',
|
|
7332
|
+
format: TagFormat.plainText
|
|
7333
|
+
},
|
|
7334
|
+
{
|
|
7335
|
+
key: ConfigKey.property_authorJobTitle,
|
|
7336
|
+
description: 'The job title of the author, e.g. "Software Engineer", "Professor", etc.',
|
|
7337
|
+
format: TagFormat.plainText
|
|
6917
7338
|
}
|
|
6918
7339
|
]
|
|
6919
7340
|
},
|
|
7341
|
+
[BitType.openBookChapter]: {
|
|
7342
|
+
since: "4.16.0",
|
|
7343
|
+
baseBitType: BitType.pageOpenBook,
|
|
7344
|
+
description: "Open book chapter bit, derived from page-open-book, used to create chapter pages that open books"
|
|
7345
|
+
},
|
|
6920
7346
|
[BitType.pageOpenBookList]: {
|
|
6921
7347
|
since: "2.1.0",
|
|
6922
7348
|
baseBitType: BitType.article,
|
|
@@ -8259,6 +8685,18 @@ var BITS = {
|
|
|
8259
8685
|
}
|
|
8260
8686
|
]
|
|
8261
8687
|
},
|
|
8688
|
+
[BitType.platformBrandTarget]: {
|
|
8689
|
+
since: "4.15.0",
|
|
8690
|
+
baseBitType: BitType._standard,
|
|
8691
|
+
description: "Platform brand target bit, used to define the brand target for publishing",
|
|
8692
|
+
tags: [
|
|
8693
|
+
{
|
|
8694
|
+
key: ConfigKey.property_platformBrandTarget,
|
|
8695
|
+
description: 'The platform brand target (typically "light", "dark" or "none")',
|
|
8696
|
+
format: TagFormat.plainText
|
|
8697
|
+
}
|
|
8698
|
+
]
|
|
8699
|
+
},
|
|
8262
8700
|
[BitType.platformHeader]: {
|
|
8263
8701
|
since: "4.12.0",
|
|
8264
8702
|
baseBitType: BitType._standard,
|
|
@@ -9744,7 +10182,7 @@ var instance2 = new Config();
|
|
|
9744
10182
|
// src/generated/package_info.ts
|
|
9745
10183
|
var PACKAGE_INFO = {
|
|
9746
10184
|
"name": "@gmb/bitmark-parser-generator",
|
|
9747
|
-
"version": "4.
|
|
10185
|
+
"version": "4.16.1",
|
|
9748
10186
|
"author": "Get More Brain Ltd",
|
|
9749
10187
|
"license": "ISC",
|
|
9750
10188
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10119,6 +10557,14 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10119
10557
|
audioLink: "audioLink",
|
|
10120
10558
|
author: "author",
|
|
10121
10559
|
authorValue: "authorValue",
|
|
10560
|
+
authorFullName: "authorFullName",
|
|
10561
|
+
authorFullNameValue: "authorFullNameValue",
|
|
10562
|
+
authorJobTitle: "authorJobTitle",
|
|
10563
|
+
authorJobTitleValue: "authorJobTitleValue",
|
|
10564
|
+
authorPseudonym: "authorPseudonym",
|
|
10565
|
+
authorPseudonymValue: "authorPseudonymValue",
|
|
10566
|
+
authorTitle: "authorTitle",
|
|
10567
|
+
authorTitleValue: "authorTitleValue",
|
|
10122
10568
|
availableClassifications: "availableClassifications",
|
|
10123
10569
|
availableClassificationsValue: "availableClassificationsValue",
|
|
10124
10570
|
avatarImage: "avatarImage",
|
|
@@ -10149,8 +10595,22 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10149
10595
|
book: "book",
|
|
10150
10596
|
bookAlias: "bookAlias",
|
|
10151
10597
|
bookAliasValue: "bookAliasValue",
|
|
10598
|
+
bookAuthor: "bookAuthor",
|
|
10599
|
+
bookBindingType: "bookBindingType",
|
|
10152
10600
|
bookDiff: "bookDiff",
|
|
10153
10601
|
bookDiffValue: "bookDiffValue",
|
|
10602
|
+
bookIsbn: "bookIsbn",
|
|
10603
|
+
bookLanguage: "bookLanguage",
|
|
10604
|
+
bookNumberOfPages: "bookNumberOfPages",
|
|
10605
|
+
bookOriginalTitle: "bookOriginalTitle",
|
|
10606
|
+
bookPublisher: "bookPublisher",
|
|
10607
|
+
bookPublishingDate: "bookPublishingDate",
|
|
10608
|
+
bookRating: "bookRating",
|
|
10609
|
+
bookSeriesId: "bookSeriesId",
|
|
10610
|
+
bookSeriesNumber: "bookSeriesNumber",
|
|
10611
|
+
bookSeriesTitle: "bookSeriesTitle",
|
|
10612
|
+
bookTranslator: "bookTranslator",
|
|
10613
|
+
bookType: "bookType",
|
|
10154
10614
|
bookValue: "bookValue",
|
|
10155
10615
|
bot: "bot",
|
|
10156
10616
|
botResponses: "botResponses",
|
|
@@ -10208,6 +10668,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10208
10668
|
coverColorValue: "coverColorValue",
|
|
10209
10669
|
coverImage: "coverImage",
|
|
10210
10670
|
coverImageValue: "coverImageValue",
|
|
10671
|
+
currency: "currency",
|
|
10211
10672
|
customerExternalId: "customerExternalId",
|
|
10212
10673
|
customerId: "customerId",
|
|
10213
10674
|
customerIdValue: "customerIdValue",
|
|
@@ -10287,6 +10748,8 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10287
10748
|
fullName: "fullName",
|
|
10288
10749
|
fullNameValue: "fullNameValue",
|
|
10289
10750
|
gap: "gap",
|
|
10751
|
+
gmbExternalShop: "gmbExternalShop",
|
|
10752
|
+
gmbExternalShopItems: "gmbExternalShopItems",
|
|
10290
10753
|
groupTag: "groupTag",
|
|
10291
10754
|
groupTagValue: "groupTagValue",
|
|
10292
10755
|
handInAcceptFileType: "handInAcceptFileType",
|
|
@@ -10443,6 +10906,8 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10443
10906
|
partialAnswerValue: "partialAnswerValue",
|
|
10444
10907
|
path: "path",
|
|
10445
10908
|
pathValue: "pathValue",
|
|
10909
|
+
platformBrandTarget: "platformBrandTarget",
|
|
10910
|
+
platformBrandTargetValue: "platformBrandTargetValue",
|
|
10446
10911
|
platformName: "platformName",
|
|
10447
10912
|
platformNameValue: "platformNameValue",
|
|
10448
10913
|
platformIcon: "platformIcon",
|
|
@@ -10482,6 +10947,10 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10482
10947
|
posterImageValue: "posterImageValue",
|
|
10483
10948
|
postfix: "postfix",
|
|
10484
10949
|
prefix: "prefix",
|
|
10950
|
+
previewImage: "previewImage",
|
|
10951
|
+
previewImageValue: "previewImageValue",
|
|
10952
|
+
previewVideo: "previewVideo",
|
|
10953
|
+
previewVideoValue: "previewVideoValue",
|
|
10485
10954
|
processHandIn: "processHandIn",
|
|
10486
10955
|
processHandInLocation: "processHandInLocation",
|
|
10487
10956
|
processHandInLocationValue: "processHandInLocationValue",
|
|
@@ -10584,6 +11053,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10584
11053
|
searchValue: "searchValue",
|
|
10585
11054
|
section: "section",
|
|
10586
11055
|
select: "select",
|
|
11056
|
+
selected: "selected",
|
|
10587
11057
|
servings: "servings",
|
|
10588
11058
|
servingsValue: "servingsValue",
|
|
10589
11059
|
showInIndex: "showInIndex",
|
|
@@ -10621,6 +11091,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10621
11091
|
subject: "subject",
|
|
10622
11092
|
subjectValue: "subjectValue",
|
|
10623
11093
|
subtitle: "subtitle",
|
|
11094
|
+
subtitleValue: "subtitleValue",
|
|
10624
11095
|
subtype: "subtype",
|
|
10625
11096
|
subtypeValue: "subtypeValue",
|
|
10626
11097
|
table: "table",
|
|
@@ -10669,6 +11140,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10669
11140
|
thumbnails: "thumbnails",
|
|
10670
11141
|
thumbnailsValue: "thumbnailsValue",
|
|
10671
11142
|
title: "title",
|
|
11143
|
+
titleValue: "titleValue",
|
|
10672
11144
|
titleString: "titleString",
|
|
10673
11145
|
toc: "toc",
|
|
10674
11146
|
tocContent: "tocContent",
|
|
@@ -22044,7 +22516,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22044
22516
|
license: data.license,
|
|
22045
22517
|
copyright: data.copyright,
|
|
22046
22518
|
showInIndex: data.showInIndex,
|
|
22047
|
-
search: data.search
|
|
22519
|
+
search: data.search,
|
|
22520
|
+
selected: data.selected
|
|
22048
22521
|
});
|
|
22049
22522
|
return node;
|
|
22050
22523
|
}
|
|
@@ -22096,6 +22569,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22096
22569
|
case ResourceType.platformIcon:
|
|
22097
22570
|
case ResourceType.platformLogo:
|
|
22098
22571
|
case ResourceType.platformBackgroundImage:
|
|
22572
|
+
case ResourceType.previewImage:
|
|
22573
|
+
case ResourceType.coverImage:
|
|
22099
22574
|
node = this.imageResource(context, finalData, type);
|
|
22100
22575
|
break;
|
|
22101
22576
|
// case ResourceType.imageResponsive: {
|
|
@@ -22128,6 +22603,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22128
22603
|
node = this.audioLinkResource(context, finalData);
|
|
22129
22604
|
break;
|
|
22130
22605
|
case ResourceType.video:
|
|
22606
|
+
case ResourceType.previewVideo:
|
|
22131
22607
|
node = this.videoResource(context, finalData);
|
|
22132
22608
|
break;
|
|
22133
22609
|
case ResourceType.videoEmbed:
|
|
@@ -22206,7 +22682,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22206
22682
|
copyright,
|
|
22207
22683
|
showInIndex,
|
|
22208
22684
|
caption,
|
|
22209
|
-
search
|
|
22685
|
+
search,
|
|
22686
|
+
selected
|
|
22210
22687
|
} = data;
|
|
22211
22688
|
const { bitType } = context;
|
|
22212
22689
|
let zoomDisabledDefault = false;
|
|
@@ -22215,7 +22692,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22215
22692
|
BitType.pageBanner,
|
|
22216
22693
|
BitType.imagesLogoGrave,
|
|
22217
22694
|
BitType.prototypeImages,
|
|
22218
|
-
BitType.
|
|
22695
|
+
BitType.extractorImage
|
|
22219
22696
|
])) {
|
|
22220
22697
|
zoomDisabledDefault = true;
|
|
22221
22698
|
}
|
|
@@ -22240,11 +22717,12 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22240
22717
|
copyright: copyright ?? "",
|
|
22241
22718
|
showInIndex: showInIndex ?? false,
|
|
22242
22719
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22243
|
-
search: search ?? void 0
|
|
22720
|
+
search: search ?? void 0,
|
|
22721
|
+
selected: selected ?? false
|
|
22244
22722
|
}
|
|
22245
22723
|
};
|
|
22246
22724
|
objectUtils.removeUnwantedProperties(node.image, {
|
|
22247
|
-
ignoreFalse: ["zoomDisabled", "showInIndex"],
|
|
22725
|
+
ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
|
|
22248
22726
|
ignoreEmptyArrays: ["caption"],
|
|
22249
22727
|
ignoreUndefined: ["width", "height"],
|
|
22250
22728
|
ignoreEmptyString: ["src", "alt", "license", "copyright"]
|
|
@@ -22273,7 +22751,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22273
22751
|
copyright,
|
|
22274
22752
|
showInIndex,
|
|
22275
22753
|
caption,
|
|
22276
|
-
search
|
|
22754
|
+
search,
|
|
22755
|
+
selected
|
|
22277
22756
|
} = data;
|
|
22278
22757
|
const node = {
|
|
22279
22758
|
type: ResourceType.imageLink,
|
|
@@ -22298,11 +22777,12 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22298
22777
|
copyright: copyright ?? "",
|
|
22299
22778
|
showInIndex: showInIndex ?? false,
|
|
22300
22779
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22301
|
-
search: search ?? void 0
|
|
22780
|
+
search: search ?? void 0,
|
|
22781
|
+
selected: selected ?? false
|
|
22302
22782
|
}
|
|
22303
22783
|
};
|
|
22304
22784
|
objectUtils.removeUnwantedProperties(node.imageLink, {
|
|
22305
|
-
ignoreFalse: ["zoomDisabled", "showInIndex"],
|
|
22785
|
+
ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
|
|
22306
22786
|
ignoreEmptyArrays: ["caption"],
|
|
22307
22787
|
ignoreUndefined: ["width", "height"],
|
|
22308
22788
|
ignoreEmptyString: ["url", "alt", "license", "copyright"]
|
|
@@ -22326,7 +22806,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22326
22806
|
copyright,
|
|
22327
22807
|
showInIndex,
|
|
22328
22808
|
caption,
|
|
22329
|
-
search
|
|
22809
|
+
search,
|
|
22810
|
+
selected
|
|
22330
22811
|
} = data;
|
|
22331
22812
|
const node = {
|
|
22332
22813
|
type: ResourceType.audio,
|
|
@@ -22344,13 +22825,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22344
22825
|
copyright: copyright ?? "",
|
|
22345
22826
|
showInIndex: showInIndex ?? false,
|
|
22346
22827
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22347
|
-
search: search ?? void 0
|
|
22828
|
+
search: search ?? void 0,
|
|
22829
|
+
selected: selected ?? false
|
|
22348
22830
|
}
|
|
22349
22831
|
};
|
|
22350
22832
|
objectUtils.removeUnwantedProperties(node.audio, {
|
|
22351
22833
|
ignoreEmptyArrays: ["caption"],
|
|
22352
22834
|
ignoreEmptyString: ["src", "alt", "license", "copyright"],
|
|
22353
|
-
ignoreFalse: ["showInIndex"]
|
|
22835
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22354
22836
|
});
|
|
22355
22837
|
return nodeValidator.validateResource(node);
|
|
22356
22838
|
}
|
|
@@ -22371,7 +22853,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22371
22853
|
copyright,
|
|
22372
22854
|
showInIndex,
|
|
22373
22855
|
caption,
|
|
22374
|
-
search
|
|
22856
|
+
search,
|
|
22857
|
+
selected
|
|
22375
22858
|
} = data;
|
|
22376
22859
|
const node = {
|
|
22377
22860
|
type: ResourceType.audioEmbed,
|
|
@@ -22389,7 +22872,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22389
22872
|
copyright: copyright ?? "",
|
|
22390
22873
|
showInIndex: showInIndex ?? false,
|
|
22391
22874
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22392
|
-
search: search ?? void 0
|
|
22875
|
+
search: search ?? void 0,
|
|
22876
|
+
selected: selected ?? false
|
|
22393
22877
|
}
|
|
22394
22878
|
};
|
|
22395
22879
|
objectUtils.removeUnwantedProperties(node.audioEmbed, {
|
|
@@ -22400,7 +22884,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22400
22884
|
"license",
|
|
22401
22885
|
"copyright"
|
|
22402
22886
|
],
|
|
22403
|
-
ignoreFalse: ["showInIndex"]
|
|
22887
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22404
22888
|
});
|
|
22405
22889
|
return nodeValidator.validateResource(node);
|
|
22406
22890
|
}
|
|
@@ -22421,7 +22905,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22421
22905
|
copyright,
|
|
22422
22906
|
showInIndex,
|
|
22423
22907
|
caption,
|
|
22424
|
-
search
|
|
22908
|
+
search,
|
|
22909
|
+
selected
|
|
22425
22910
|
} = data;
|
|
22426
22911
|
const node = {
|
|
22427
22912
|
type: ResourceType.audioLink,
|
|
@@ -22440,7 +22925,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22440
22925
|
copyright: copyright ?? "",
|
|
22441
22926
|
showInIndex: showInIndex ?? false,
|
|
22442
22927
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22443
|
-
search: search ?? void 0
|
|
22928
|
+
search: search ?? void 0,
|
|
22929
|
+
selected: selected ?? false
|
|
22444
22930
|
}
|
|
22445
22931
|
};
|
|
22446
22932
|
objectUtils.removeUnwantedProperties(node.audioLink, {
|
|
@@ -22448,7 +22934,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22448
22934
|
ignoreEmptyString: [
|
|
22449
22935
|
"url"
|
|
22450
22936
|
/*'alt', 'license', 'copyright'*/
|
|
22451
|
-
]
|
|
22937
|
+
],
|
|
22938
|
+
ignoreFalse: ["selected"]
|
|
22452
22939
|
});
|
|
22453
22940
|
return nodeValidator.validateResource(node);
|
|
22454
22941
|
}
|
|
@@ -22476,7 +22963,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22476
22963
|
copyright,
|
|
22477
22964
|
showInIndex,
|
|
22478
22965
|
caption,
|
|
22479
|
-
search
|
|
22966
|
+
search,
|
|
22967
|
+
selected
|
|
22480
22968
|
} = data;
|
|
22481
22969
|
const node = {
|
|
22482
22970
|
type: ResourceType.video,
|
|
@@ -22500,6 +22988,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22500
22988
|
showInIndex: showInIndex ?? false,
|
|
22501
22989
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22502
22990
|
search: search ?? void 0,
|
|
22991
|
+
selected: selected ?? false,
|
|
22503
22992
|
// Have sub-chains so must be at end of chain
|
|
22504
22993
|
posterImage: posterImage ?? void 0,
|
|
22505
22994
|
thumbnails: thumbnails ?? void 0
|
|
@@ -22514,7 +23003,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22514
23003
|
"license",
|
|
22515
23004
|
"copyright"
|
|
22516
23005
|
],
|
|
22517
|
-
ignoreFalse: ["showInIndex"]
|
|
23006
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22518
23007
|
});
|
|
22519
23008
|
return nodeValidator.validateResource(node);
|
|
22520
23009
|
}
|
|
@@ -22542,7 +23031,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22542
23031
|
copyright,
|
|
22543
23032
|
showInIndex,
|
|
22544
23033
|
caption,
|
|
22545
|
-
search
|
|
23034
|
+
search,
|
|
23035
|
+
selected
|
|
22546
23036
|
} = data;
|
|
22547
23037
|
const node = {
|
|
22548
23038
|
type: ResourceType.videoEmbed,
|
|
@@ -22568,7 +23058,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22568
23058
|
copyright: copyright ?? "",
|
|
22569
23059
|
showInIndex: showInIndex ?? false,
|
|
22570
23060
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22571
|
-
search: search ?? void 0
|
|
23061
|
+
search: search ?? void 0,
|
|
23062
|
+
selected: selected ?? false
|
|
22572
23063
|
}
|
|
22573
23064
|
};
|
|
22574
23065
|
objectUtils.removeUnwantedProperties(node.videoEmbed, {
|
|
@@ -22580,7 +23071,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22580
23071
|
"license",
|
|
22581
23072
|
"copyright"
|
|
22582
23073
|
],
|
|
22583
|
-
ignoreFalse: ["showInIndex"]
|
|
23074
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22584
23075
|
});
|
|
22585
23076
|
return nodeValidator.validateResource(node);
|
|
22586
23077
|
}
|
|
@@ -22608,7 +23099,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22608
23099
|
copyright,
|
|
22609
23100
|
showInIndex,
|
|
22610
23101
|
caption,
|
|
22611
|
-
search
|
|
23102
|
+
search,
|
|
23103
|
+
selected
|
|
22612
23104
|
} = data;
|
|
22613
23105
|
const node = {
|
|
22614
23106
|
type: ResourceType.videoLink,
|
|
@@ -22634,7 +23126,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22634
23126
|
copyright: copyright ?? "",
|
|
22635
23127
|
showInIndex: showInIndex ?? false,
|
|
22636
23128
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22637
|
-
search: search ?? void 0
|
|
23129
|
+
search: search ?? void 0,
|
|
23130
|
+
selected: selected ?? false
|
|
22638
23131
|
}
|
|
22639
23132
|
};
|
|
22640
23133
|
objectUtils.removeUnwantedProperties(node.videoLink, {
|
|
@@ -22646,7 +23139,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22646
23139
|
"license",
|
|
22647
23140
|
"copyright"
|
|
22648
23141
|
],
|
|
22649
|
-
ignoreFalse: ["showInIndex"]
|
|
23142
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22650
23143
|
});
|
|
22651
23144
|
return nodeValidator.validateResource(node);
|
|
22652
23145
|
}
|
|
@@ -22694,7 +23187,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22694
23187
|
copyright,
|
|
22695
23188
|
showInIndex,
|
|
22696
23189
|
caption,
|
|
22697
|
-
search
|
|
23190
|
+
search,
|
|
23191
|
+
selected
|
|
22698
23192
|
} = data;
|
|
22699
23193
|
const node = {
|
|
22700
23194
|
type: ResourceType.stillImageFilmEmbed,
|
|
@@ -22720,7 +23214,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22720
23214
|
copyright: copyright ?? "",
|
|
22721
23215
|
showInIndex: showInIndex ?? false,
|
|
22722
23216
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22723
|
-
search: search ?? void 0
|
|
23217
|
+
search: search ?? void 0,
|
|
23218
|
+
selected: selected ?? false
|
|
22724
23219
|
}
|
|
22725
23220
|
};
|
|
22726
23221
|
objectUtils.removeUnwantedProperties(node.stillImageFilmEmbed, {
|
|
@@ -22732,7 +23227,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22732
23227
|
"license",
|
|
22733
23228
|
"copyright"
|
|
22734
23229
|
],
|
|
22735
|
-
ignoreFalse: ["showInIndex"]
|
|
23230
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22736
23231
|
});
|
|
22737
23232
|
return nodeValidator.validateResource(node);
|
|
22738
23233
|
}
|
|
@@ -22760,7 +23255,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22760
23255
|
copyright,
|
|
22761
23256
|
showInIndex,
|
|
22762
23257
|
caption,
|
|
22763
|
-
search
|
|
23258
|
+
search,
|
|
23259
|
+
selected
|
|
22764
23260
|
} = data;
|
|
22765
23261
|
const node = {
|
|
22766
23262
|
type: ResourceType.stillImageFilmLink,
|
|
@@ -22786,7 +23282,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22786
23282
|
copyright: copyright ?? "",
|
|
22787
23283
|
showInIndex: showInIndex ?? false,
|
|
22788
23284
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22789
|
-
search: search ?? void 0
|
|
23285
|
+
search: search ?? void 0,
|
|
23286
|
+
selected: selected ?? false
|
|
22790
23287
|
}
|
|
22791
23288
|
};
|
|
22792
23289
|
objectUtils.removeUnwantedProperties(node.stillImageFilmLink, {
|
|
@@ -22798,7 +23295,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22798
23295
|
"license",
|
|
22799
23296
|
"copyright"
|
|
22800
23297
|
],
|
|
22801
|
-
ignoreFalse: ["showInIndex"]
|
|
23298
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22802
23299
|
});
|
|
22803
23300
|
return nodeValidator.validateResource(node);
|
|
22804
23301
|
}
|
|
@@ -22809,7 +23306,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22809
23306
|
* @returns
|
|
22810
23307
|
*/
|
|
22811
23308
|
articleResource(context, data) {
|
|
22812
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23309
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22813
23310
|
const node = {
|
|
22814
23311
|
type: ResourceType.article,
|
|
22815
23312
|
__typeAlias: ResourceType.article,
|
|
@@ -22823,12 +23320,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22823
23320
|
copyright: copyright ?? "",
|
|
22824
23321
|
showInIndex: showInIndex ?? false,
|
|
22825
23322
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22826
|
-
search: search ?? void 0
|
|
23323
|
+
search: search ?? void 0,
|
|
23324
|
+
selected: selected ?? false
|
|
22827
23325
|
}
|
|
22828
23326
|
};
|
|
22829
23327
|
objectUtils.removeUnwantedProperties(node.article, {
|
|
22830
23328
|
ignoreEmptyArrays: ["caption"],
|
|
22831
|
-
ignoreEmptyString: ["body", "alt", "license", "copyright"]
|
|
23329
|
+
ignoreEmptyString: ["body", "alt", "license", "copyright"],
|
|
23330
|
+
ignoreFalse: ["selected"]
|
|
22832
23331
|
});
|
|
22833
23332
|
return nodeValidator.validateResource(node);
|
|
22834
23333
|
}
|
|
@@ -22839,7 +23338,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22839
23338
|
* @returns
|
|
22840
23339
|
*/
|
|
22841
23340
|
documentResource(context, data) {
|
|
22842
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23341
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22843
23342
|
const node = {
|
|
22844
23343
|
type: ResourceType.document,
|
|
22845
23344
|
__typeAlias: ResourceType.document,
|
|
@@ -22853,13 +23352,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22853
23352
|
copyright: copyright ?? "",
|
|
22854
23353
|
showInIndex: showInIndex ?? false,
|
|
22855
23354
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22856
|
-
search: search ?? void 0
|
|
23355
|
+
search: search ?? void 0,
|
|
23356
|
+
selected: selected ?? false
|
|
22857
23357
|
}
|
|
22858
23358
|
};
|
|
22859
23359
|
objectUtils.removeUnwantedProperties(node.document, {
|
|
22860
23360
|
ignoreEmptyArrays: ["caption"],
|
|
22861
23361
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22862
|
-
ignoreFalse: ["showInIndex"]
|
|
23362
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22863
23363
|
});
|
|
22864
23364
|
return nodeValidator.validateResource(node);
|
|
22865
23365
|
}
|
|
@@ -22870,7 +23370,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22870
23370
|
* @returns
|
|
22871
23371
|
*/
|
|
22872
23372
|
documentEmbedResource(context, data) {
|
|
22873
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23373
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22874
23374
|
const node = {
|
|
22875
23375
|
type: ResourceType.documentEmbed,
|
|
22876
23376
|
__typeAlias: ResourceType.documentEmbed,
|
|
@@ -22884,13 +23384,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22884
23384
|
copyright: copyright ?? "",
|
|
22885
23385
|
showInIndex: showInIndex ?? false,
|
|
22886
23386
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22887
|
-
search: search ?? void 0
|
|
23387
|
+
search: search ?? void 0,
|
|
23388
|
+
selected: selected ?? false
|
|
22888
23389
|
}
|
|
22889
23390
|
};
|
|
22890
23391
|
objectUtils.removeUnwantedProperties(node.documentEmbed, {
|
|
22891
23392
|
ignoreEmptyArrays: ["caption"],
|
|
22892
23393
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22893
|
-
ignoreFalse: ["showInIndex"]
|
|
23394
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22894
23395
|
});
|
|
22895
23396
|
return nodeValidator.validateResource(node);
|
|
22896
23397
|
}
|
|
@@ -22901,7 +23402,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22901
23402
|
* @returns
|
|
22902
23403
|
*/
|
|
22903
23404
|
documentLinkResource(context, data) {
|
|
22904
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23405
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22905
23406
|
const node = {
|
|
22906
23407
|
type: ResourceType.documentLink,
|
|
22907
23408
|
__typeAlias: ResourceType.documentLink,
|
|
@@ -22915,13 +23416,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22915
23416
|
copyright: copyright ?? "",
|
|
22916
23417
|
showInIndex: showInIndex ?? false,
|
|
22917
23418
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22918
|
-
search: search ?? void 0
|
|
23419
|
+
search: search ?? void 0,
|
|
23420
|
+
selected: selected ?? false
|
|
22919
23421
|
}
|
|
22920
23422
|
};
|
|
22921
23423
|
objectUtils.removeUnwantedProperties(node.documentLink, {
|
|
22922
23424
|
ignoreEmptyArrays: ["caption"],
|
|
22923
23425
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22924
|
-
ignoreFalse: ["showInIndex"]
|
|
23426
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22925
23427
|
});
|
|
22926
23428
|
return nodeValidator.validateResource(node);
|
|
22927
23429
|
}
|
|
@@ -22932,7 +23434,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22932
23434
|
* @returns
|
|
22933
23435
|
*/
|
|
22934
23436
|
documentDownloadResource(context, data) {
|
|
22935
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23437
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22936
23438
|
const node = {
|
|
22937
23439
|
type: ResourceType.documentDownload,
|
|
22938
23440
|
__typeAlias: ResourceType.documentDownload,
|
|
@@ -22946,13 +23448,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22946
23448
|
copyright: copyright ?? "",
|
|
22947
23449
|
showInIndex: showInIndex ?? false,
|
|
22948
23450
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22949
|
-
search: search ?? void 0
|
|
23451
|
+
search: search ?? void 0,
|
|
23452
|
+
selected: selected ?? false
|
|
22950
23453
|
}
|
|
22951
23454
|
};
|
|
22952
23455
|
objectUtils.removeUnwantedProperties(node.documentDownload, {
|
|
22953
23456
|
ignoreEmptyArrays: ["caption"],
|
|
22954
23457
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
22955
|
-
ignoreFalse: ["showInIndex"]
|
|
23458
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22956
23459
|
});
|
|
22957
23460
|
return nodeValidator.validateResource(node);
|
|
22958
23461
|
}
|
|
@@ -22963,7 +23466,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22963
23466
|
* @returns
|
|
22964
23467
|
*/
|
|
22965
23468
|
appLinkResource(context, data) {
|
|
22966
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23469
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
22967
23470
|
const node = {
|
|
22968
23471
|
type: ResourceType.appLink,
|
|
22969
23472
|
__typeAlias: ResourceType.appLink,
|
|
@@ -22978,7 +23481,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22978
23481
|
copyright: copyright ?? "",
|
|
22979
23482
|
showInIndex: showInIndex ?? false,
|
|
22980
23483
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22981
|
-
search: search ?? void 0
|
|
23484
|
+
search: search ?? void 0,
|
|
23485
|
+
selected: selected ?? false
|
|
22982
23486
|
}
|
|
22983
23487
|
};
|
|
22984
23488
|
objectUtils.removeUnwantedProperties(node.appLink, {
|
|
@@ -22989,7 +23493,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22989
23493
|
"license",
|
|
22990
23494
|
"copyright"
|
|
22991
23495
|
],
|
|
22992
|
-
ignoreFalse: ["showInIndex"]
|
|
23496
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22993
23497
|
});
|
|
22994
23498
|
return nodeValidator.validateResource(node);
|
|
22995
23499
|
}
|
|
@@ -23008,7 +23512,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23008
23512
|
copyright,
|
|
23009
23513
|
showInIndex,
|
|
23010
23514
|
caption,
|
|
23011
|
-
search
|
|
23515
|
+
search,
|
|
23516
|
+
selected
|
|
23012
23517
|
} = data;
|
|
23013
23518
|
const node = {
|
|
23014
23519
|
type: ResourceType.websiteLink,
|
|
@@ -23024,13 +23529,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23024
23529
|
copyright: copyright ?? "",
|
|
23025
23530
|
showInIndex: showInIndex ?? false,
|
|
23026
23531
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23027
|
-
search: search ?? void 0
|
|
23532
|
+
search: search ?? void 0,
|
|
23533
|
+
selected: selected ?? false
|
|
23028
23534
|
}
|
|
23029
23535
|
};
|
|
23030
23536
|
objectUtils.removeUnwantedProperties(node.websiteLink, {
|
|
23031
23537
|
ignoreEmptyArrays: ["caption"],
|
|
23032
23538
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
23033
|
-
ignoreFalse: ["showInIndex"]
|
|
23539
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23034
23540
|
});
|
|
23035
23541
|
return nodeValidator.validateResource(node);
|
|
23036
23542
|
}
|
|
@@ -23306,12 +23812,12 @@ var Builder = class extends BaseBuilder {
|
|
|
23306
23812
|
subtype: this.toAstProperty(bitType, ConfigKey.property_subtype, data.subtype, options),
|
|
23307
23813
|
bookAlias: this.toAstProperty(bitType, ConfigKey.property_bookAlias, data.bookAlias, options),
|
|
23308
23814
|
bookDiff: this.toAstProperty(bitType, ConfigKey.property_bookDiff, data.bookDiff, options),
|
|
23309
|
-
coverImage: this.toAstProperty(
|
|
23815
|
+
coverImage: typeof data.coverImage === "string" || Array.isArray(data.coverImage) ? this.toAstProperty(
|
|
23310
23816
|
bitType,
|
|
23311
23817
|
ConfigKey.property_coverImage,
|
|
23312
|
-
data.coverImage,
|
|
23818
|
+
instance4.asArray(data.coverImage),
|
|
23313
23819
|
options
|
|
23314
|
-
),
|
|
23820
|
+
) : this.toImageResource(context, data.coverImage),
|
|
23315
23821
|
coverColor: this.toAstProperty(
|
|
23316
23822
|
bitType,
|
|
23317
23823
|
ConfigKey.property_coverColor,
|
|
@@ -23366,6 +23872,93 @@ var Builder = class extends BaseBuilder {
|
|
|
23366
23872
|
data.chatWithBookBrainKey,
|
|
23367
23873
|
options
|
|
23368
23874
|
),
|
|
23875
|
+
currency: this.toAstProperty(bitType, ConfigKey.property_currency, data.currency, options),
|
|
23876
|
+
bookIsbn: this.toAstProperty(bitType, ConfigKey.property_bookIsbn, data.bookIsbn, options),
|
|
23877
|
+
bookAuthor: this.toAstProperty(
|
|
23878
|
+
bitType,
|
|
23879
|
+
ConfigKey.property_bookAuthor,
|
|
23880
|
+
data.bookAuthor,
|
|
23881
|
+
options
|
|
23882
|
+
),
|
|
23883
|
+
bookType: this.toAstProperty(bitType, ConfigKey.property_bookType, data.bookType, options),
|
|
23884
|
+
bookBindingType: this.toAstProperty(
|
|
23885
|
+
bitType,
|
|
23886
|
+
ConfigKey.property_bookBindingType,
|
|
23887
|
+
data.bookBindingType,
|
|
23888
|
+
options
|
|
23889
|
+
),
|
|
23890
|
+
bookNumberOfPages: this.toAstProperty(
|
|
23891
|
+
bitType,
|
|
23892
|
+
ConfigKey.property_bookNumberOfPages,
|
|
23893
|
+
data.bookNumberOfPages,
|
|
23894
|
+
options
|
|
23895
|
+
),
|
|
23896
|
+
bookRating: this.toAstProperty(
|
|
23897
|
+
bitType,
|
|
23898
|
+
ConfigKey.property_bookRating,
|
|
23899
|
+
data.bookRating,
|
|
23900
|
+
options
|
|
23901
|
+
),
|
|
23902
|
+
bookSeriesTitle: this.toAstProperty(
|
|
23903
|
+
bitType,
|
|
23904
|
+
ConfigKey.property_bookSeriesTitle,
|
|
23905
|
+
data.bookSeriesTitle,
|
|
23906
|
+
options
|
|
23907
|
+
),
|
|
23908
|
+
bookSeriesId: this.toAstProperty(
|
|
23909
|
+
bitType,
|
|
23910
|
+
ConfigKey.property_bookSeriesId,
|
|
23911
|
+
data.bookSeriesId,
|
|
23912
|
+
options
|
|
23913
|
+
),
|
|
23914
|
+
bookSeriesNumber: this.toAstProperty(
|
|
23915
|
+
bitType,
|
|
23916
|
+
ConfigKey.property_bookSeriesNumber,
|
|
23917
|
+
data.bookSeriesNumber,
|
|
23918
|
+
options
|
|
23919
|
+
),
|
|
23920
|
+
bookLanguage: this.toAstProperty(
|
|
23921
|
+
bitType,
|
|
23922
|
+
ConfigKey.property_bookLanguage,
|
|
23923
|
+
data.bookLanguage,
|
|
23924
|
+
options
|
|
23925
|
+
),
|
|
23926
|
+
bookPublishingDate: this.toAstProperty(
|
|
23927
|
+
bitType,
|
|
23928
|
+
ConfigKey.property_bookPublishingDate,
|
|
23929
|
+
data.bookPublishingDate,
|
|
23930
|
+
options
|
|
23931
|
+
),
|
|
23932
|
+
bookPublisher: this.toAstProperty(
|
|
23933
|
+
bitType,
|
|
23934
|
+
ConfigKey.property_bookPublisher,
|
|
23935
|
+
data.bookPublisher,
|
|
23936
|
+
options
|
|
23937
|
+
),
|
|
23938
|
+
bookTranslator: this.toAstProperty(
|
|
23939
|
+
bitType,
|
|
23940
|
+
ConfigKey.property_bookTranslator,
|
|
23941
|
+
data.bookTranslator,
|
|
23942
|
+
options
|
|
23943
|
+
),
|
|
23944
|
+
bookOriginalTitle: this.toAstProperty(
|
|
23945
|
+
bitType,
|
|
23946
|
+
ConfigKey.property_bookOriginalTitle,
|
|
23947
|
+
data.bookOriginalTitle,
|
|
23948
|
+
options
|
|
23949
|
+
),
|
|
23950
|
+
gmbExternalShop: this.toAstProperty(
|
|
23951
|
+
bitType,
|
|
23952
|
+
ConfigKey.property_gmbExternalShop,
|
|
23953
|
+
data.gmbExternalShop,
|
|
23954
|
+
options
|
|
23955
|
+
),
|
|
23956
|
+
gmbExternalShopItems: this.toAstProperty(
|
|
23957
|
+
bitType,
|
|
23958
|
+
ConfigKey.property_gmbExternalShopItems,
|
|
23959
|
+
data.gmbExternalShopItems,
|
|
23960
|
+
options
|
|
23961
|
+
),
|
|
23369
23962
|
action: this.toAstProperty(bitType, ConfigKey.property_action, data.action, options),
|
|
23370
23963
|
showInIndex: this.toAstProperty(
|
|
23371
23964
|
bitType,
|
|
@@ -23423,6 +24016,30 @@ var Builder = class extends BaseBuilder {
|
|
|
23423
24016
|
data.allowedBit,
|
|
23424
24017
|
options
|
|
23425
24018
|
),
|
|
24019
|
+
authorFullName: this.toAstProperty(
|
|
24020
|
+
bitType,
|
|
24021
|
+
ConfigKey.property_authorFullName,
|
|
24022
|
+
data.authorFullName,
|
|
24023
|
+
options
|
|
24024
|
+
),
|
|
24025
|
+
authorPseudonym: this.toAstProperty(
|
|
24026
|
+
bitType,
|
|
24027
|
+
ConfigKey.property_authorPseudonym,
|
|
24028
|
+
data.authorPseudonym,
|
|
24029
|
+
options
|
|
24030
|
+
),
|
|
24031
|
+
authorTitle: this.toAstProperty(
|
|
24032
|
+
bitType,
|
|
24033
|
+
ConfigKey.property_authorTitle,
|
|
24034
|
+
data.authorTitle,
|
|
24035
|
+
options
|
|
24036
|
+
),
|
|
24037
|
+
authorJobTitle: this.toAstProperty(
|
|
24038
|
+
bitType,
|
|
24039
|
+
ConfigKey.property_authorJobTitle,
|
|
24040
|
+
data.authorJobTitle,
|
|
24041
|
+
options
|
|
24042
|
+
),
|
|
23426
24043
|
tableFixedHeader: this.toAstProperty(
|
|
23427
24044
|
bitType,
|
|
23428
24045
|
ConfigKey.property_tableFixedHeader,
|
|
@@ -23777,6 +24394,12 @@ var Builder = class extends BaseBuilder {
|
|
|
23777
24394
|
options
|
|
23778
24395
|
),
|
|
23779
24396
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24397
|
+
platformBrandTarget: this.toAstProperty(
|
|
24398
|
+
bitType,
|
|
24399
|
+
ConfigKey.property_platformBrandTarget,
|
|
24400
|
+
data.platformBrandTarget,
|
|
24401
|
+
options
|
|
24402
|
+
),
|
|
23780
24403
|
platformName: this.toAstProperty(
|
|
23781
24404
|
bitType,
|
|
23782
24405
|
ConfigKey.property_platformName,
|
|
@@ -23947,6 +24570,8 @@ var Builder = class extends BaseBuilder {
|
|
|
23947
24570
|
// Example
|
|
23948
24571
|
...this.toExample(data.__isDefaultExample, data.example),
|
|
23949
24572
|
// Person
|
|
24573
|
+
previewImage: this.toImageResources(context, data.previewImage),
|
|
24574
|
+
previewVideo: this.toVideoResources(context, data.previewVideo),
|
|
23950
24575
|
imagePlaceholder: this.toImageResource(context, data.imagePlaceholder),
|
|
23951
24576
|
resources: instance4.asArray(
|
|
23952
24577
|
this.resourceBuilder.resourceFromResourceJson(context, data.resources)
|
|
@@ -25372,6 +25997,36 @@ var Builder = class extends BaseBuilder {
|
|
|
25372
25997
|
this.resourceBuilder.resourceFromResourceDataJson(context, ResourceType.image, data?.image)
|
|
25373
25998
|
);
|
|
25374
25999
|
}
|
|
26000
|
+
toImageResources(context, data) {
|
|
26001
|
+
const arr = instance4.asArray(data);
|
|
26002
|
+
const results = [];
|
|
26003
|
+
if (arr && arr.length > 0) {
|
|
26004
|
+
for (const item of arr) {
|
|
26005
|
+
const res = this.resourceBuilder.resourceFromResourceDataJson(
|
|
26006
|
+
context,
|
|
26007
|
+
ResourceType.image,
|
|
26008
|
+
item.image
|
|
26009
|
+
);
|
|
26010
|
+
results.push(res);
|
|
26011
|
+
}
|
|
26012
|
+
}
|
|
26013
|
+
return results;
|
|
26014
|
+
}
|
|
26015
|
+
toVideoResources(context, data) {
|
|
26016
|
+
const arr = instance4.asArray(data);
|
|
26017
|
+
const results = [];
|
|
26018
|
+
if (arr && arr.length > 0) {
|
|
26019
|
+
for (const item of arr) {
|
|
26020
|
+
const res = this.resourceBuilder.resourceFromResourceDataJson(
|
|
26021
|
+
context,
|
|
26022
|
+
ResourceType.video,
|
|
26023
|
+
item.video
|
|
26024
|
+
);
|
|
26025
|
+
results.push(res);
|
|
26026
|
+
}
|
|
26027
|
+
}
|
|
26028
|
+
return results;
|
|
26029
|
+
}
|
|
25375
26030
|
//
|
|
25376
26031
|
// Private
|
|
25377
26032
|
//
|
|
@@ -27060,6 +27715,20 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27060
27715
|
this.writePropertyStyleResource(node.key, resource);
|
|
27061
27716
|
return true;
|
|
27062
27717
|
}
|
|
27718
|
+
// bitmarkAst -> bits -> bitsValue -> previewImageValue
|
|
27719
|
+
enter_previewImageValue(node, _route) {
|
|
27720
|
+
const resource = node.value;
|
|
27721
|
+
this.writeNL();
|
|
27722
|
+
this.writePropertyStyleResource("previewImage", resource);
|
|
27723
|
+
return true;
|
|
27724
|
+
}
|
|
27725
|
+
// bitmarkAst -> bits -> bitsValue -> previewVideoValue
|
|
27726
|
+
enter_previewVideoValue(node, _route) {
|
|
27727
|
+
const resource = node.value;
|
|
27728
|
+
this.writeNL();
|
|
27729
|
+
this.writePropertyStyleResource("previewVideo", resource);
|
|
27730
|
+
return true;
|
|
27731
|
+
}
|
|
27063
27732
|
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
27064
27733
|
enter_platformIcon(node, _route) {
|
|
27065
27734
|
const resource = node.value;
|
|
@@ -27081,6 +27750,59 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27081
27750
|
this.writePropertyStyleResource(node.key, resource);
|
|
27082
27751
|
return true;
|
|
27083
27752
|
}
|
|
27753
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage (when it's a resource object or property array)
|
|
27754
|
+
enter_coverImage(node, route) {
|
|
27755
|
+
const value = node.value;
|
|
27756
|
+
if (value && typeof value === "object" && !Array.isArray(value) && "type" in value) {
|
|
27757
|
+
const resource = value;
|
|
27758
|
+
this.writeNL();
|
|
27759
|
+
this.writePropertyStyleResource(node.key, resource);
|
|
27760
|
+
return true;
|
|
27761
|
+
}
|
|
27762
|
+
if (Array.isArray(value)) {
|
|
27763
|
+
if (value == null) return true;
|
|
27764
|
+
const parent = this.getParentNode(route);
|
|
27765
|
+
if (parent?.key !== NodeType.bitsValue) return true;
|
|
27766
|
+
const bitType = this.getBitType(route);
|
|
27767
|
+
if (!bitType) return true;
|
|
27768
|
+
const config = instance2.getBitConfig(bitType);
|
|
27769
|
+
const propertyConfig = instance2.getTagConfigForTag(
|
|
27770
|
+
config.tags,
|
|
27771
|
+
ConfigKey.property_coverImage
|
|
27772
|
+
);
|
|
27773
|
+
if (!propertyConfig) return true;
|
|
27774
|
+
this.writeNL_IfNotChain(route);
|
|
27775
|
+
this.writeProperty(propertyConfig.tag, value, route, {
|
|
27776
|
+
format: propertyConfig.format ?? TagFormat.plainText,
|
|
27777
|
+
array: propertyConfig.array ?? false,
|
|
27778
|
+
writeEmpty: true,
|
|
27779
|
+
ignoreFalse: propertyConfig.defaultValue === "false",
|
|
27780
|
+
ignoreTrue: propertyConfig.defaultValue === "true"
|
|
27781
|
+
});
|
|
27782
|
+
}
|
|
27783
|
+
return true;
|
|
27784
|
+
}
|
|
27785
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage (when it's a property string)
|
|
27786
|
+
// This is called when coverImage is a simple string value
|
|
27787
|
+
leaf_coverImage(node, route) {
|
|
27788
|
+
const value = node.value;
|
|
27789
|
+
if (value == null) return;
|
|
27790
|
+
const parent = this.getParentNode(route);
|
|
27791
|
+
if (parent?.key !== NodeType.bitsValue) return;
|
|
27792
|
+
const bitType = this.getBitType(route);
|
|
27793
|
+
if (!bitType) return;
|
|
27794
|
+
const config = instance2.getBitConfig(bitType);
|
|
27795
|
+
const propertyConfig = instance2.getTagConfigForTag(config.tags, ConfigKey.property_coverImage);
|
|
27796
|
+
if (!propertyConfig) return;
|
|
27797
|
+
this.writeNL_IfNotChain(route);
|
|
27798
|
+
this.writeProperty(propertyConfig.tag, node.value, route, {
|
|
27799
|
+
format: propertyConfig.format ?? TagFormat.plainText,
|
|
27800
|
+
array: propertyConfig.array ?? false,
|
|
27801
|
+
writeEmpty: true,
|
|
27802
|
+
ignoreFalse: propertyConfig.defaultValue === "false",
|
|
27803
|
+
ignoreTrue: propertyConfig.defaultValue === "true"
|
|
27804
|
+
});
|
|
27805
|
+
}
|
|
27084
27806
|
exit_imagePlaceholder(_node, _route) {
|
|
27085
27807
|
}
|
|
27086
27808
|
// bitmarkAst -> bits -> bitsValue -> posterImage
|
|
@@ -27508,7 +28230,7 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27508
28230
|
BitType.pageBanner,
|
|
27509
28231
|
BitType.imagesLogoGrave,
|
|
27510
28232
|
BitType.prototypeImages,
|
|
27511
|
-
BitType.
|
|
28233
|
+
BitType.extractorImage
|
|
27512
28234
|
])) {
|
|
27513
28235
|
this.writeProperty("zoomDisabled", node.value, route, {
|
|
27514
28236
|
format: TagFormat.boolean,
|
|
@@ -27561,6 +28283,14 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27561
28283
|
format: TagFormat.plainText
|
|
27562
28284
|
});
|
|
27563
28285
|
}
|
|
28286
|
+
leaf_selected(node, route) {
|
|
28287
|
+
if (node.value == null) return;
|
|
28288
|
+
this.writeNL_IfNotChain(route);
|
|
28289
|
+
this.writeProperty("selected", node.value, route, {
|
|
28290
|
+
format: TagFormat.boolean,
|
|
28291
|
+
ignoreFalse: true
|
|
28292
|
+
});
|
|
28293
|
+
}
|
|
27564
28294
|
// bitmarkAst -> bits -> bitsValue -> resource -> ...
|
|
27565
28295
|
// bitmarkAst -> bits -> bitsValue -> resource -> posterImage -> ...
|
|
27566
28296
|
// bitmarkAst -> bits -> bitsValue -> resource -> thumbnails -> thumbnailsValue -> ...
|
|
@@ -28666,6 +29396,14 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28666
29396
|
enter_imagePlaceholder(node, route) {
|
|
28667
29397
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28668
29398
|
}
|
|
29399
|
+
// bitmarkAst -> bits -> bitsValue -> previewImage
|
|
29400
|
+
enter_previewImage(node, route) {
|
|
29401
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
29402
|
+
}
|
|
29403
|
+
// bitmarkAst -> bits -> bitsValue -> previewVideo
|
|
29404
|
+
enter_previewVideo(node, route) {
|
|
29405
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
29406
|
+
}
|
|
28669
29407
|
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
28670
29408
|
enter_platformIcon(node, route) {
|
|
28671
29409
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
@@ -28678,6 +29416,12 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28678
29416
|
enter_platformBackgroundImage(node, route) {
|
|
28679
29417
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28680
29418
|
}
|
|
29419
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage
|
|
29420
|
+
enter_coverImage(node, route) {
|
|
29421
|
+
return this.standardHandler(node, route, NodeType.bitsValue, {
|
|
29422
|
+
array: Array.isArray(node.value)
|
|
29423
|
+
});
|
|
29424
|
+
}
|
|
28681
29425
|
// bitmarkAst -> bits -> bitsValue -> resources
|
|
28682
29426
|
enter_resources(node, route) {
|
|
28683
29427
|
const resources = node.value;
|
|
@@ -28719,7 +29463,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28719
29463
|
} else if (instance2.isOfBitType(bitType, [
|
|
28720
29464
|
BitType.imagesLogoGrave,
|
|
28721
29465
|
BitType.prototypeImages,
|
|
28722
|
-
BitType.
|
|
29466
|
+
BitType.extractorImage
|
|
28723
29467
|
])) {
|
|
28724
29468
|
const images = [];
|
|
28725
29469
|
for (const r of resources) {
|
|
@@ -29300,7 +30044,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
29300
30044
|
if (instance2.isOfBitType(bitType, [
|
|
29301
30045
|
BitType.imagesLogoGrave,
|
|
29302
30046
|
BitType.prototypeImages,
|
|
29303
|
-
BitType.
|
|
30047
|
+
BitType.extractorImage
|
|
29304
30048
|
])) {
|
|
29305
30049
|
if (bitType === BitType.imagesLogoGrave) {
|
|
29306
30050
|
if (bitJson.logos == null) {
|
|
@@ -29357,6 +30101,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
29357
30101
|
if (instance2.isOfBitType(bitType, BitType.platformPath)) {
|
|
29358
30102
|
if (bitJson.path == null) bitJson.path = "";
|
|
29359
30103
|
}
|
|
30104
|
+
if (instance2.isOfBitType(bitType, BitType.platformBrandTarget)) {
|
|
30105
|
+
if (bitJson.platformBrandTarget == null) bitJson.platformBrandTarget = "none";
|
|
30106
|
+
}
|
|
29360
30107
|
if (isTopLevelExample) {
|
|
29361
30108
|
if (bitJson.isExample == null) bitJson.isExample = false;
|
|
29362
30109
|
} else {
|
|
@@ -29729,7 +30476,7 @@ var JsonParser = class {
|
|
|
29729
30476
|
processResources(bitType, resource, images, logos) {
|
|
29730
30477
|
const nodes = [];
|
|
29731
30478
|
if (resource) nodes.push(resource);
|
|
29732
|
-
if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.
|
|
30479
|
+
if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.extractorImage])) {
|
|
29733
30480
|
if (Array.isArray(images)) {
|
|
29734
30481
|
for (const image of images) {
|
|
29735
30482
|
if (image) nodes.push(image);
|
|
@@ -30651,7 +31398,7 @@ var BitmarkPegParserValidator = class {
|
|
|
30651
31398
|
let tagData = validTypeKeys.get(validTypeKey);
|
|
30652
31399
|
if (!tagData && typeKey === TypeKey.Property) {
|
|
30653
31400
|
const resourceKey = key.replace(/^@/, "&");
|
|
30654
|
-
if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder || resourceKey === ConfigKey.resource_platformIcon || resourceKey === ConfigKey.resource_platformLogo || resourceKey === ConfigKey.resource_platformBackgroundImage) {
|
|
31401
|
+
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) {
|
|
30655
31402
|
tagData = validTypeKeys.get(resourceKey);
|
|
30656
31403
|
if (tagData) {
|
|
30657
31404
|
typeKey = TypeKey.Resource;
|
|
@@ -33054,8 +33801,19 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
|
|
|
33054
33801
|
...tags2
|
|
33055
33802
|
});
|
|
33056
33803
|
if (resource) {
|
|
33057
|
-
if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder || configKey === ConfigKey.resource_platformIcon || configKey === ConfigKey.resource_platformLogo || configKey === ConfigKey.resource_platformBackgroundImage) {
|
|
33058
|
-
if (target.propertyStyleResources)
|
|
33804
|
+
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) {
|
|
33805
|
+
if (target.propertyStyleResources) {
|
|
33806
|
+
if (target.propertyStyleResources[resourceType]) {
|
|
33807
|
+
if (!Array.isArray(target.propertyStyleResources[resourceType])) {
|
|
33808
|
+
target.propertyStyleResources[resourceType] = [
|
|
33809
|
+
target.propertyStyleResources[resourceType]
|
|
33810
|
+
];
|
|
33811
|
+
}
|
|
33812
|
+
target.propertyStyleResources[resourceType].push(resource);
|
|
33813
|
+
} else {
|
|
33814
|
+
target.propertyStyleResources[resourceType] = resource;
|
|
33815
|
+
}
|
|
33816
|
+
}
|
|
33059
33817
|
} else {
|
|
33060
33818
|
resources.push(resource);
|
|
33061
33819
|
}
|