@gmb/bitmark-parser-generator 4.15.0 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +721 -10
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +214 -3
- package/dist/browser/esm/index.d.ts +214 -3
- package/dist/browser/esm/index.js +721 -10
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +740 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +214 -3
- package/dist/index.d.ts +214 -3
- package/dist/index.js +740 -15
- package/dist/index.js.map +1 -1
- package/package.json +27 -26
|
@@ -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",
|
|
@@ -1432,7 +1458,10 @@ var resourceKeys = {
|
|
|
1432
1458
|
resource_platformIcon: "&platformIcon",
|
|
1433
1459
|
resource_platformLogo: "&platformLogo",
|
|
1434
1460
|
resource_backgroundWallpaper: "&backgroundWallpaper",
|
|
1435
|
-
resource_imagePlaceholder: "&imagePlaceholder"
|
|
1461
|
+
resource_imagePlaceholder: "&imagePlaceholder",
|
|
1462
|
+
resource_previewImage: "&previewImage",
|
|
1463
|
+
resource_previewVideo: "&previewVideo",
|
|
1464
|
+
resource_coverImage: "&coverImage"
|
|
1436
1465
|
};
|
|
1437
1466
|
var ResourceKey = (0, import_superenum12.superenum)(resourceKeys);
|
|
1438
1467
|
|
|
@@ -1660,7 +1689,10 @@ var ResourceType = (0, import_superenum13.superenum)({
|
|
|
1660
1689
|
imagePlaceholder: "imagePlaceholder",
|
|
1661
1690
|
platformIcon: "platformIcon",
|
|
1662
1691
|
platformLogo: "platformLogo",
|
|
1663
|
-
platformBackgroundImage: "platformBackgroundImage"
|
|
1692
|
+
platformBackgroundImage: "platformBackgroundImage",
|
|
1693
|
+
previewImage: "previewImage",
|
|
1694
|
+
previewVideo: "previewVideo",
|
|
1695
|
+
coverImage: "coverImage"
|
|
1664
1696
|
});
|
|
1665
1697
|
function resourceTypeToConfigKey(type) {
|
|
1666
1698
|
return `&${stringUtils.kebabToCamel(type)}`;
|
|
@@ -3329,6 +3361,16 @@ var GROUPS = {
|
|
|
3329
3361
|
format: TagFormat.plainText,
|
|
3330
3362
|
maxCount: Count.infinity
|
|
3331
3363
|
},
|
|
3364
|
+
{
|
|
3365
|
+
key: ConfigKey.resource_coverImage,
|
|
3366
|
+
description: "The cover image of the book",
|
|
3367
|
+
chain: [
|
|
3368
|
+
{
|
|
3369
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
3370
|
+
description: "Common image properties for the cover image resource"
|
|
3371
|
+
}
|
|
3372
|
+
]
|
|
3373
|
+
},
|
|
3332
3374
|
{
|
|
3333
3375
|
key: ConfigKey.property_coverColor,
|
|
3334
3376
|
description: "The cover color of the book",
|
|
@@ -4179,6 +4221,38 @@ var GROUPS = {
|
|
|
4179
4221
|
minCount: 1
|
|
4180
4222
|
}
|
|
4181
4223
|
]
|
|
4224
|
+
},
|
|
4225
|
+
[ConfigKey.group_previewImages]: {
|
|
4226
|
+
type: GroupConfigType.resource,
|
|
4227
|
+
description: "Array of preview images for catalog items",
|
|
4228
|
+
tags: [
|
|
4229
|
+
{
|
|
4230
|
+
key: ConfigKey.resource_previewImage,
|
|
4231
|
+
description: "The preview image resource",
|
|
4232
|
+
chain: [
|
|
4233
|
+
{
|
|
4234
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4235
|
+
description: "Common image properties for the image resource"
|
|
4236
|
+
}
|
|
4237
|
+
]
|
|
4238
|
+
}
|
|
4239
|
+
]
|
|
4240
|
+
},
|
|
4241
|
+
[ConfigKey.group_previewVideos]: {
|
|
4242
|
+
type: GroupConfigType.resource,
|
|
4243
|
+
description: "Array of preview videos for catalog items",
|
|
4244
|
+
tags: [
|
|
4245
|
+
{
|
|
4246
|
+
key: ConfigKey.resource_previewVideo,
|
|
4247
|
+
description: "The preview video resource",
|
|
4248
|
+
chain: [
|
|
4249
|
+
{
|
|
4250
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4251
|
+
description: "Common image properties for the image resource"
|
|
4252
|
+
}
|
|
4253
|
+
]
|
|
4254
|
+
}
|
|
4255
|
+
]
|
|
4182
4256
|
}
|
|
4183
4257
|
};
|
|
4184
4258
|
|
|
@@ -4572,6 +4646,16 @@ var BITS = {
|
|
|
4572
4646
|
description: "Cover image of the catalog item",
|
|
4573
4647
|
format: TagFormat.plainText
|
|
4574
4648
|
},
|
|
4649
|
+
{
|
|
4650
|
+
key: ConfigKey.resource_coverImage,
|
|
4651
|
+
description: "Cover image of the catalog item",
|
|
4652
|
+
chain: [
|
|
4653
|
+
{
|
|
4654
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4655
|
+
description: "Common image properties for the cover image resource"
|
|
4656
|
+
}
|
|
4657
|
+
]
|
|
4658
|
+
},
|
|
4575
4659
|
{
|
|
4576
4660
|
key: ConfigKey.property_content2Buy,
|
|
4577
4661
|
description: "Content to buy identifier",
|
|
@@ -4591,6 +4675,106 @@ var BITS = {
|
|
|
4591
4675
|
key: ConfigKey.property_customerProductId,
|
|
4592
4676
|
description: "Customer-specific product identifier",
|
|
4593
4677
|
format: TagFormat.plainText
|
|
4678
|
+
},
|
|
4679
|
+
{
|
|
4680
|
+
key: ConfigKey.property_currency,
|
|
4681
|
+
description: "Currency for the catalog item",
|
|
4682
|
+
format: TagFormat.plainText
|
|
4683
|
+
},
|
|
4684
|
+
{
|
|
4685
|
+
key: ConfigKey.property_bookIsbn,
|
|
4686
|
+
description: "ISBN for iBook version",
|
|
4687
|
+
format: TagFormat.plainText
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
key: ConfigKey.property_bookAuthor,
|
|
4691
|
+
description: "Author of the book",
|
|
4692
|
+
format: TagFormat.plainText
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
key: ConfigKey.property_bookType,
|
|
4696
|
+
description: "Type of the book",
|
|
4697
|
+
format: TagFormat.plainText
|
|
4698
|
+
},
|
|
4699
|
+
{
|
|
4700
|
+
key: ConfigKey.property_bookBindingType,
|
|
4701
|
+
description: "Binding type of the book",
|
|
4702
|
+
format: TagFormat.plainText
|
|
4703
|
+
},
|
|
4704
|
+
{
|
|
4705
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4706
|
+
description: "Number of pages in the book",
|
|
4707
|
+
format: TagFormat.plainText
|
|
4708
|
+
},
|
|
4709
|
+
{
|
|
4710
|
+
key: ConfigKey.property_bookRating,
|
|
4711
|
+
description: "Rating of the book",
|
|
4712
|
+
format: TagFormat.plainText
|
|
4713
|
+
},
|
|
4714
|
+
{
|
|
4715
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
4716
|
+
description: "Title of the book series",
|
|
4717
|
+
format: TagFormat.plainText
|
|
4718
|
+
},
|
|
4719
|
+
{
|
|
4720
|
+
key: ConfigKey.property_bookSeriesId,
|
|
4721
|
+
description: "ID of the book series",
|
|
4722
|
+
format: TagFormat.plainText
|
|
4723
|
+
},
|
|
4724
|
+
{
|
|
4725
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
4726
|
+
description: "Number in the book series",
|
|
4727
|
+
format: TagFormat.plainText
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
key: ConfigKey.property_bookLanguage,
|
|
4731
|
+
description: "Language of the book",
|
|
4732
|
+
format: TagFormat.plainText
|
|
4733
|
+
},
|
|
4734
|
+
{
|
|
4735
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
4736
|
+
description: "Publishing date of the book",
|
|
4737
|
+
format: TagFormat.plainText
|
|
4738
|
+
},
|
|
4739
|
+
{
|
|
4740
|
+
key: ConfigKey.property_bookPublisher,
|
|
4741
|
+
description: "Publisher of the book",
|
|
4742
|
+
format: TagFormat.plainText
|
|
4743
|
+
},
|
|
4744
|
+
{
|
|
4745
|
+
key: ConfigKey.property_bookTranslator,
|
|
4746
|
+
description: "Translator of the book",
|
|
4747
|
+
format: TagFormat.plainText
|
|
4748
|
+
},
|
|
4749
|
+
{
|
|
4750
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
4751
|
+
description: "Original title of the book",
|
|
4752
|
+
format: TagFormat.plainText
|
|
4753
|
+
},
|
|
4754
|
+
{
|
|
4755
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
4756
|
+
description: "External shop identifier",
|
|
4757
|
+
format: TagFormat.plainText
|
|
4758
|
+
},
|
|
4759
|
+
{
|
|
4760
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
4761
|
+
description: "Array of external shop items",
|
|
4762
|
+
format: TagFormat.plainText,
|
|
4763
|
+
maxCount: Count.infinity
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
key: ConfigKey.group_imageSource,
|
|
4767
|
+
description: "Image source chain"
|
|
4768
|
+
},
|
|
4769
|
+
{
|
|
4770
|
+
key: ConfigKey.group_previewImages,
|
|
4771
|
+
description: "Array of preview images for the catalog item",
|
|
4772
|
+
maxCount: Count.infinity
|
|
4773
|
+
},
|
|
4774
|
+
{
|
|
4775
|
+
key: ConfigKey.group_previewVideos,
|
|
4776
|
+
description: "Array of preview videos for the catalog item",
|
|
4777
|
+
maxCount: Count.infinity
|
|
4594
4778
|
}
|
|
4595
4779
|
],
|
|
4596
4780
|
rootExampleType: ExampleType.string
|
|
@@ -4610,6 +4794,16 @@ var BITS = {
|
|
|
4610
4794
|
description: "Cover image of the catalog item",
|
|
4611
4795
|
format: TagFormat.plainText
|
|
4612
4796
|
},
|
|
4797
|
+
{
|
|
4798
|
+
key: ConfigKey.resource_coverImage,
|
|
4799
|
+
description: "Cover image of the catalog item",
|
|
4800
|
+
chain: [
|
|
4801
|
+
{
|
|
4802
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
4803
|
+
description: "Common image properties for the cover image resource"
|
|
4804
|
+
}
|
|
4805
|
+
]
|
|
4806
|
+
},
|
|
4613
4807
|
{
|
|
4614
4808
|
key: ConfigKey.property_customerProductShopLink,
|
|
4615
4809
|
description: "Link to external shop for the product",
|
|
@@ -4629,6 +4823,106 @@ var BITS = {
|
|
|
4629
4823
|
key: ConfigKey.property_customerProductId,
|
|
4630
4824
|
description: "Customer-specific product identifier",
|
|
4631
4825
|
format: TagFormat.plainText
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
key: ConfigKey.property_currency,
|
|
4829
|
+
description: "Currency for the catalog item",
|
|
4830
|
+
format: TagFormat.plainText
|
|
4831
|
+
},
|
|
4832
|
+
{
|
|
4833
|
+
key: ConfigKey.property_bookIsbn,
|
|
4834
|
+
description: "ISBN for iBook version",
|
|
4835
|
+
format: TagFormat.plainText
|
|
4836
|
+
},
|
|
4837
|
+
{
|
|
4838
|
+
key: ConfigKey.property_bookAuthor,
|
|
4839
|
+
description: "Author of the book",
|
|
4840
|
+
format: TagFormat.plainText
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
key: ConfigKey.property_bookType,
|
|
4844
|
+
description: "Type of the book",
|
|
4845
|
+
format: TagFormat.plainText
|
|
4846
|
+
},
|
|
4847
|
+
{
|
|
4848
|
+
key: ConfigKey.property_bookBindingType,
|
|
4849
|
+
description: "Binding type of the book",
|
|
4850
|
+
format: TagFormat.plainText
|
|
4851
|
+
},
|
|
4852
|
+
{
|
|
4853
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4854
|
+
description: "Number of pages in the book",
|
|
4855
|
+
format: TagFormat.plainText
|
|
4856
|
+
},
|
|
4857
|
+
{
|
|
4858
|
+
key: ConfigKey.property_bookRating,
|
|
4859
|
+
description: "Rating of the book",
|
|
4860
|
+
format: TagFormat.plainText
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
4864
|
+
description: "Title of the book series",
|
|
4865
|
+
format: TagFormat.plainText
|
|
4866
|
+
},
|
|
4867
|
+
{
|
|
4868
|
+
key: ConfigKey.property_bookSeriesId,
|
|
4869
|
+
description: "ID of the book series",
|
|
4870
|
+
format: TagFormat.plainText
|
|
4871
|
+
},
|
|
4872
|
+
{
|
|
4873
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
4874
|
+
description: "Number in the book series",
|
|
4875
|
+
format: TagFormat.plainText
|
|
4876
|
+
},
|
|
4877
|
+
{
|
|
4878
|
+
key: ConfigKey.property_bookLanguage,
|
|
4879
|
+
description: "Language of the book",
|
|
4880
|
+
format: TagFormat.plainText
|
|
4881
|
+
},
|
|
4882
|
+
{
|
|
4883
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
4884
|
+
description: "Publishing date of the book",
|
|
4885
|
+
format: TagFormat.plainText
|
|
4886
|
+
},
|
|
4887
|
+
{
|
|
4888
|
+
key: ConfigKey.property_bookPublisher,
|
|
4889
|
+
description: "Publisher of the book",
|
|
4890
|
+
format: TagFormat.plainText
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
key: ConfigKey.property_bookTranslator,
|
|
4894
|
+
description: "Translator of the book",
|
|
4895
|
+
format: TagFormat.plainText
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
4899
|
+
description: "Original title of the book",
|
|
4900
|
+
format: TagFormat.plainText
|
|
4901
|
+
},
|
|
4902
|
+
{
|
|
4903
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
4904
|
+
description: "External shop identifier",
|
|
4905
|
+
format: TagFormat.plainText
|
|
4906
|
+
},
|
|
4907
|
+
{
|
|
4908
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
4909
|
+
description: "Array of external shop items",
|
|
4910
|
+
format: TagFormat.plainText,
|
|
4911
|
+
maxCount: Count.infinity
|
|
4912
|
+
},
|
|
4913
|
+
{
|
|
4914
|
+
key: ConfigKey.group_imageSource,
|
|
4915
|
+
description: "Image source chain"
|
|
4916
|
+
},
|
|
4917
|
+
{
|
|
4918
|
+
key: ConfigKey.group_previewImages,
|
|
4919
|
+
description: "Array of preview images for the catalog item",
|
|
4920
|
+
maxCount: Count.infinity
|
|
4921
|
+
},
|
|
4922
|
+
{
|
|
4923
|
+
key: ConfigKey.group_previewVideos,
|
|
4924
|
+
description: "Array of preview videos for the catalog item",
|
|
4925
|
+
maxCount: Count.infinity
|
|
4632
4926
|
}
|
|
4633
4927
|
],
|
|
4634
4928
|
rootExampleType: ExampleType.string
|
|
@@ -4667,6 +4961,106 @@ var BITS = {
|
|
|
4667
4961
|
key: ConfigKey.property_customerProductId,
|
|
4668
4962
|
description: "Customer-specific product identifier",
|
|
4669
4963
|
format: TagFormat.plainText
|
|
4964
|
+
},
|
|
4965
|
+
{
|
|
4966
|
+
key: ConfigKey.property_currency,
|
|
4967
|
+
description: "Currency for the catalog item",
|
|
4968
|
+
format: TagFormat.plainText
|
|
4969
|
+
},
|
|
4970
|
+
{
|
|
4971
|
+
key: ConfigKey.property_bookIsbn,
|
|
4972
|
+
description: "ISBN for iBook version",
|
|
4973
|
+
format: TagFormat.plainText
|
|
4974
|
+
},
|
|
4975
|
+
{
|
|
4976
|
+
key: ConfigKey.property_bookAuthor,
|
|
4977
|
+
description: "Author of the book",
|
|
4978
|
+
format: TagFormat.plainText
|
|
4979
|
+
},
|
|
4980
|
+
{
|
|
4981
|
+
key: ConfigKey.property_bookType,
|
|
4982
|
+
description: "Type of the book",
|
|
4983
|
+
format: TagFormat.plainText
|
|
4984
|
+
},
|
|
4985
|
+
{
|
|
4986
|
+
key: ConfigKey.property_bookBindingType,
|
|
4987
|
+
description: "Binding type of the book",
|
|
4988
|
+
format: TagFormat.plainText
|
|
4989
|
+
},
|
|
4990
|
+
{
|
|
4991
|
+
key: ConfigKey.property_bookNumberOfPages,
|
|
4992
|
+
description: "Number of pages in the book",
|
|
4993
|
+
format: TagFormat.plainText
|
|
4994
|
+
},
|
|
4995
|
+
{
|
|
4996
|
+
key: ConfigKey.property_bookRating,
|
|
4997
|
+
description: "Rating of the book",
|
|
4998
|
+
format: TagFormat.plainText
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
key: ConfigKey.property_bookSeriesTitle,
|
|
5002
|
+
description: "Title of the book series",
|
|
5003
|
+
format: TagFormat.plainText
|
|
5004
|
+
},
|
|
5005
|
+
{
|
|
5006
|
+
key: ConfigKey.property_bookSeriesId,
|
|
5007
|
+
description: "ID of the book series",
|
|
5008
|
+
format: TagFormat.plainText
|
|
5009
|
+
},
|
|
5010
|
+
{
|
|
5011
|
+
key: ConfigKey.property_bookSeriesNumber,
|
|
5012
|
+
description: "Number in the book series",
|
|
5013
|
+
format: TagFormat.plainText
|
|
5014
|
+
},
|
|
5015
|
+
{
|
|
5016
|
+
key: ConfigKey.property_bookLanguage,
|
|
5017
|
+
description: "Language of the book",
|
|
5018
|
+
format: TagFormat.plainText
|
|
5019
|
+
},
|
|
5020
|
+
{
|
|
5021
|
+
key: ConfigKey.property_bookPublishingDate,
|
|
5022
|
+
description: "Publishing date of the book",
|
|
5023
|
+
format: TagFormat.plainText
|
|
5024
|
+
},
|
|
5025
|
+
{
|
|
5026
|
+
key: ConfigKey.property_bookPublisher,
|
|
5027
|
+
description: "Publisher of the book",
|
|
5028
|
+
format: TagFormat.plainText
|
|
5029
|
+
},
|
|
5030
|
+
{
|
|
5031
|
+
key: ConfigKey.property_bookTranslator,
|
|
5032
|
+
description: "Translator of the book",
|
|
5033
|
+
format: TagFormat.plainText
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
key: ConfigKey.property_bookOriginalTitle,
|
|
5037
|
+
description: "Original title of the book",
|
|
5038
|
+
format: TagFormat.plainText
|
|
5039
|
+
},
|
|
5040
|
+
{
|
|
5041
|
+
key: ConfigKey.property_gmbExternalShop,
|
|
5042
|
+
description: "External shop identifier",
|
|
5043
|
+
format: TagFormat.plainText
|
|
5044
|
+
},
|
|
5045
|
+
{
|
|
5046
|
+
key: ConfigKey.property_gmbExternalShopItems,
|
|
5047
|
+
description: "Array of external shop items",
|
|
5048
|
+
format: TagFormat.plainText,
|
|
5049
|
+
maxCount: Count.infinity
|
|
5050
|
+
},
|
|
5051
|
+
{
|
|
5052
|
+
key: ConfigKey.group_imageSource,
|
|
5053
|
+
description: "Image source chain"
|
|
5054
|
+
},
|
|
5055
|
+
{
|
|
5056
|
+
key: ConfigKey.group_previewImages,
|
|
5057
|
+
description: "Array of preview images for the catalog item",
|
|
5058
|
+
maxCount: Count.infinity
|
|
5059
|
+
},
|
|
5060
|
+
{
|
|
5061
|
+
key: ConfigKey.group_previewVideos,
|
|
5062
|
+
description: "Array of preview videos for the catalog item",
|
|
5063
|
+
maxCount: Count.infinity
|
|
4670
5064
|
}
|
|
4671
5065
|
],
|
|
4672
5066
|
rootExampleType: ExampleType.string
|
|
@@ -6914,9 +7308,34 @@ var BITS = {
|
|
|
6914
7308
|
{
|
|
6915
7309
|
key: ConfigKey.property_buttonCaption,
|
|
6916
7310
|
description: "Caption for the button, used to define the text displayed on the button"
|
|
7311
|
+
},
|
|
7312
|
+
{
|
|
7313
|
+
key: ConfigKey.property_authorFullName,
|
|
7314
|
+
description: "Full name of the author",
|
|
7315
|
+
format: TagFormat.plainText
|
|
7316
|
+
},
|
|
7317
|
+
{
|
|
7318
|
+
key: ConfigKey.property_authorPseudonym,
|
|
7319
|
+
description: "A pseudonym of the author, if any",
|
|
7320
|
+
format: TagFormat.plainText
|
|
7321
|
+
},
|
|
7322
|
+
{
|
|
7323
|
+
key: ConfigKey.property_authorTitle,
|
|
7324
|
+
description: 'The title of the author, e.g. "Dr.", "Prof.", etc.',
|
|
7325
|
+
format: TagFormat.plainText
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
key: ConfigKey.property_authorJobTitle,
|
|
7329
|
+
description: 'The job title of the author, e.g. "Software Engineer", "Professor", etc.',
|
|
7330
|
+
format: TagFormat.plainText
|
|
6917
7331
|
}
|
|
6918
7332
|
]
|
|
6919
7333
|
},
|
|
7334
|
+
[BitType.openBookChapter]: {
|
|
7335
|
+
since: "4.16.0",
|
|
7336
|
+
baseBitType: BitType.pageOpenBook,
|
|
7337
|
+
description: "Open book chapter bit, derived from page-open-book, used to create chapter pages that open books"
|
|
7338
|
+
},
|
|
6920
7339
|
[BitType.pageOpenBookList]: {
|
|
6921
7340
|
since: "2.1.0",
|
|
6922
7341
|
baseBitType: BitType.article,
|
|
@@ -8259,6 +8678,18 @@ var BITS = {
|
|
|
8259
8678
|
}
|
|
8260
8679
|
]
|
|
8261
8680
|
},
|
|
8681
|
+
[BitType.platformBrandTarget]: {
|
|
8682
|
+
since: "4.15.0",
|
|
8683
|
+
baseBitType: BitType._standard,
|
|
8684
|
+
description: "Platform brand target bit, used to define the brand target for publishing",
|
|
8685
|
+
tags: [
|
|
8686
|
+
{
|
|
8687
|
+
key: ConfigKey.property_platformBrandTarget,
|
|
8688
|
+
description: 'The platform brand target (typically "light", "dark" or "none")',
|
|
8689
|
+
format: TagFormat.plainText
|
|
8690
|
+
}
|
|
8691
|
+
]
|
|
8692
|
+
},
|
|
8262
8693
|
[BitType.platformHeader]: {
|
|
8263
8694
|
since: "4.12.0",
|
|
8264
8695
|
baseBitType: BitType._standard,
|
|
@@ -9744,7 +10175,7 @@ var instance2 = new Config();
|
|
|
9744
10175
|
// src/generated/package_info.ts
|
|
9745
10176
|
var PACKAGE_INFO = {
|
|
9746
10177
|
"name": "@gmb/bitmark-parser-generator",
|
|
9747
|
-
"version": "4.
|
|
10178
|
+
"version": "4.16.0",
|
|
9748
10179
|
"author": "Get More Brain Ltd",
|
|
9749
10180
|
"license": "ISC",
|
|
9750
10181
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10119,6 +10550,14 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10119
10550
|
audioLink: "audioLink",
|
|
10120
10551
|
author: "author",
|
|
10121
10552
|
authorValue: "authorValue",
|
|
10553
|
+
authorFullName: "authorFullName",
|
|
10554
|
+
authorFullNameValue: "authorFullNameValue",
|
|
10555
|
+
authorJobTitle: "authorJobTitle",
|
|
10556
|
+
authorJobTitleValue: "authorJobTitleValue",
|
|
10557
|
+
authorPseudonym: "authorPseudonym",
|
|
10558
|
+
authorPseudonymValue: "authorPseudonymValue",
|
|
10559
|
+
authorTitle: "authorTitle",
|
|
10560
|
+
authorTitleValue: "authorTitleValue",
|
|
10122
10561
|
availableClassifications: "availableClassifications",
|
|
10123
10562
|
availableClassificationsValue: "availableClassificationsValue",
|
|
10124
10563
|
avatarImage: "avatarImage",
|
|
@@ -10149,8 +10588,22 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10149
10588
|
book: "book",
|
|
10150
10589
|
bookAlias: "bookAlias",
|
|
10151
10590
|
bookAliasValue: "bookAliasValue",
|
|
10591
|
+
bookAuthor: "bookAuthor",
|
|
10592
|
+
bookBindingType: "bookBindingType",
|
|
10152
10593
|
bookDiff: "bookDiff",
|
|
10153
10594
|
bookDiffValue: "bookDiffValue",
|
|
10595
|
+
bookIsbn: "bookIsbn",
|
|
10596
|
+
bookLanguage: "bookLanguage",
|
|
10597
|
+
bookNumberOfPages: "bookNumberOfPages",
|
|
10598
|
+
bookOriginalTitle: "bookOriginalTitle",
|
|
10599
|
+
bookPublisher: "bookPublisher",
|
|
10600
|
+
bookPublishingDate: "bookPublishingDate",
|
|
10601
|
+
bookRating: "bookRating",
|
|
10602
|
+
bookSeriesId: "bookSeriesId",
|
|
10603
|
+
bookSeriesNumber: "bookSeriesNumber",
|
|
10604
|
+
bookSeriesTitle: "bookSeriesTitle",
|
|
10605
|
+
bookTranslator: "bookTranslator",
|
|
10606
|
+
bookType: "bookType",
|
|
10154
10607
|
bookValue: "bookValue",
|
|
10155
10608
|
bot: "bot",
|
|
10156
10609
|
botResponses: "botResponses",
|
|
@@ -10208,6 +10661,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10208
10661
|
coverColorValue: "coverColorValue",
|
|
10209
10662
|
coverImage: "coverImage",
|
|
10210
10663
|
coverImageValue: "coverImageValue",
|
|
10664
|
+
currency: "currency",
|
|
10211
10665
|
customerExternalId: "customerExternalId",
|
|
10212
10666
|
customerId: "customerId",
|
|
10213
10667
|
customerIdValue: "customerIdValue",
|
|
@@ -10287,6 +10741,8 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10287
10741
|
fullName: "fullName",
|
|
10288
10742
|
fullNameValue: "fullNameValue",
|
|
10289
10743
|
gap: "gap",
|
|
10744
|
+
gmbExternalShop: "gmbExternalShop",
|
|
10745
|
+
gmbExternalShopItems: "gmbExternalShopItems",
|
|
10290
10746
|
groupTag: "groupTag",
|
|
10291
10747
|
groupTagValue: "groupTagValue",
|
|
10292
10748
|
handInAcceptFileType: "handInAcceptFileType",
|
|
@@ -10443,6 +10899,8 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10443
10899
|
partialAnswerValue: "partialAnswerValue",
|
|
10444
10900
|
path: "path",
|
|
10445
10901
|
pathValue: "pathValue",
|
|
10902
|
+
platformBrandTarget: "platformBrandTarget",
|
|
10903
|
+
platformBrandTargetValue: "platformBrandTargetValue",
|
|
10446
10904
|
platformName: "platformName",
|
|
10447
10905
|
platformNameValue: "platformNameValue",
|
|
10448
10906
|
platformIcon: "platformIcon",
|
|
@@ -10482,6 +10940,10 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10482
10940
|
posterImageValue: "posterImageValue",
|
|
10483
10941
|
postfix: "postfix",
|
|
10484
10942
|
prefix: "prefix",
|
|
10943
|
+
previewImage: "previewImage",
|
|
10944
|
+
previewImageValue: "previewImageValue",
|
|
10945
|
+
previewVideo: "previewVideo",
|
|
10946
|
+
previewVideoValue: "previewVideoValue",
|
|
10485
10947
|
processHandIn: "processHandIn",
|
|
10486
10948
|
processHandInLocation: "processHandInLocation",
|
|
10487
10949
|
processHandInLocationValue: "processHandInLocationValue",
|
|
@@ -10621,6 +11083,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10621
11083
|
subject: "subject",
|
|
10622
11084
|
subjectValue: "subjectValue",
|
|
10623
11085
|
subtitle: "subtitle",
|
|
11086
|
+
subtitleValue: "subtitleValue",
|
|
10624
11087
|
subtype: "subtype",
|
|
10625
11088
|
subtypeValue: "subtypeValue",
|
|
10626
11089
|
table: "table",
|
|
@@ -10669,6 +11132,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10669
11132
|
thumbnails: "thumbnails",
|
|
10670
11133
|
thumbnailsValue: "thumbnailsValue",
|
|
10671
11134
|
title: "title",
|
|
11135
|
+
titleValue: "titleValue",
|
|
10672
11136
|
titleString: "titleString",
|
|
10673
11137
|
toc: "toc",
|
|
10674
11138
|
tocContent: "tocContent",
|
|
@@ -22096,6 +22560,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22096
22560
|
case ResourceType.platformIcon:
|
|
22097
22561
|
case ResourceType.platformLogo:
|
|
22098
22562
|
case ResourceType.platformBackgroundImage:
|
|
22563
|
+
case ResourceType.previewImage:
|
|
22564
|
+
case ResourceType.coverImage:
|
|
22099
22565
|
node = this.imageResource(context, finalData, type);
|
|
22100
22566
|
break;
|
|
22101
22567
|
// case ResourceType.imageResponsive: {
|
|
@@ -22128,6 +22594,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22128
22594
|
node = this.audioLinkResource(context, finalData);
|
|
22129
22595
|
break;
|
|
22130
22596
|
case ResourceType.video:
|
|
22597
|
+
case ResourceType.previewVideo:
|
|
22131
22598
|
node = this.videoResource(context, finalData);
|
|
22132
22599
|
break;
|
|
22133
22600
|
case ResourceType.videoEmbed:
|
|
@@ -23306,12 +23773,12 @@ var Builder = class extends BaseBuilder {
|
|
|
23306
23773
|
subtype: this.toAstProperty(bitType, ConfigKey.property_subtype, data.subtype, options),
|
|
23307
23774
|
bookAlias: this.toAstProperty(bitType, ConfigKey.property_bookAlias, data.bookAlias, options),
|
|
23308
23775
|
bookDiff: this.toAstProperty(bitType, ConfigKey.property_bookDiff, data.bookDiff, options),
|
|
23309
|
-
coverImage: this.toAstProperty(
|
|
23776
|
+
coverImage: typeof data.coverImage === "string" || Array.isArray(data.coverImage) ? this.toAstProperty(
|
|
23310
23777
|
bitType,
|
|
23311
23778
|
ConfigKey.property_coverImage,
|
|
23312
|
-
data.coverImage,
|
|
23779
|
+
instance4.asArray(data.coverImage),
|
|
23313
23780
|
options
|
|
23314
|
-
),
|
|
23781
|
+
) : this.toImageResource(context, data.coverImage),
|
|
23315
23782
|
coverColor: this.toAstProperty(
|
|
23316
23783
|
bitType,
|
|
23317
23784
|
ConfigKey.property_coverColor,
|
|
@@ -23366,6 +23833,93 @@ var Builder = class extends BaseBuilder {
|
|
|
23366
23833
|
data.chatWithBookBrainKey,
|
|
23367
23834
|
options
|
|
23368
23835
|
),
|
|
23836
|
+
currency: this.toAstProperty(bitType, ConfigKey.property_currency, data.currency, options),
|
|
23837
|
+
bookIsbn: this.toAstProperty(bitType, ConfigKey.property_bookIsbn, data.bookIsbn, options),
|
|
23838
|
+
bookAuthor: this.toAstProperty(
|
|
23839
|
+
bitType,
|
|
23840
|
+
ConfigKey.property_bookAuthor,
|
|
23841
|
+
data.bookAuthor,
|
|
23842
|
+
options
|
|
23843
|
+
),
|
|
23844
|
+
bookType: this.toAstProperty(bitType, ConfigKey.property_bookType, data.bookType, options),
|
|
23845
|
+
bookBindingType: this.toAstProperty(
|
|
23846
|
+
bitType,
|
|
23847
|
+
ConfigKey.property_bookBindingType,
|
|
23848
|
+
data.bookBindingType,
|
|
23849
|
+
options
|
|
23850
|
+
),
|
|
23851
|
+
bookNumberOfPages: this.toAstProperty(
|
|
23852
|
+
bitType,
|
|
23853
|
+
ConfigKey.property_bookNumberOfPages,
|
|
23854
|
+
data.bookNumberOfPages,
|
|
23855
|
+
options
|
|
23856
|
+
),
|
|
23857
|
+
bookRating: this.toAstProperty(
|
|
23858
|
+
bitType,
|
|
23859
|
+
ConfigKey.property_bookRating,
|
|
23860
|
+
data.bookRating,
|
|
23861
|
+
options
|
|
23862
|
+
),
|
|
23863
|
+
bookSeriesTitle: this.toAstProperty(
|
|
23864
|
+
bitType,
|
|
23865
|
+
ConfigKey.property_bookSeriesTitle,
|
|
23866
|
+
data.bookSeriesTitle,
|
|
23867
|
+
options
|
|
23868
|
+
),
|
|
23869
|
+
bookSeriesId: this.toAstProperty(
|
|
23870
|
+
bitType,
|
|
23871
|
+
ConfigKey.property_bookSeriesId,
|
|
23872
|
+
data.bookSeriesId,
|
|
23873
|
+
options
|
|
23874
|
+
),
|
|
23875
|
+
bookSeriesNumber: this.toAstProperty(
|
|
23876
|
+
bitType,
|
|
23877
|
+
ConfigKey.property_bookSeriesNumber,
|
|
23878
|
+
data.bookSeriesNumber,
|
|
23879
|
+
options
|
|
23880
|
+
),
|
|
23881
|
+
bookLanguage: this.toAstProperty(
|
|
23882
|
+
bitType,
|
|
23883
|
+
ConfigKey.property_bookLanguage,
|
|
23884
|
+
data.bookLanguage,
|
|
23885
|
+
options
|
|
23886
|
+
),
|
|
23887
|
+
bookPublishingDate: this.toAstProperty(
|
|
23888
|
+
bitType,
|
|
23889
|
+
ConfigKey.property_bookPublishingDate,
|
|
23890
|
+
data.bookPublishingDate,
|
|
23891
|
+
options
|
|
23892
|
+
),
|
|
23893
|
+
bookPublisher: this.toAstProperty(
|
|
23894
|
+
bitType,
|
|
23895
|
+
ConfigKey.property_bookPublisher,
|
|
23896
|
+
data.bookPublisher,
|
|
23897
|
+
options
|
|
23898
|
+
),
|
|
23899
|
+
bookTranslator: this.toAstProperty(
|
|
23900
|
+
bitType,
|
|
23901
|
+
ConfigKey.property_bookTranslator,
|
|
23902
|
+
data.bookTranslator,
|
|
23903
|
+
options
|
|
23904
|
+
),
|
|
23905
|
+
bookOriginalTitle: this.toAstProperty(
|
|
23906
|
+
bitType,
|
|
23907
|
+
ConfigKey.property_bookOriginalTitle,
|
|
23908
|
+
data.bookOriginalTitle,
|
|
23909
|
+
options
|
|
23910
|
+
),
|
|
23911
|
+
gmbExternalShop: this.toAstProperty(
|
|
23912
|
+
bitType,
|
|
23913
|
+
ConfigKey.property_gmbExternalShop,
|
|
23914
|
+
data.gmbExternalShop,
|
|
23915
|
+
options
|
|
23916
|
+
),
|
|
23917
|
+
gmbExternalShopItems: this.toAstProperty(
|
|
23918
|
+
bitType,
|
|
23919
|
+
ConfigKey.property_gmbExternalShopItems,
|
|
23920
|
+
data.gmbExternalShopItems,
|
|
23921
|
+
options
|
|
23922
|
+
),
|
|
23369
23923
|
action: this.toAstProperty(bitType, ConfigKey.property_action, data.action, options),
|
|
23370
23924
|
showInIndex: this.toAstProperty(
|
|
23371
23925
|
bitType,
|
|
@@ -23423,6 +23977,30 @@ var Builder = class extends BaseBuilder {
|
|
|
23423
23977
|
data.allowedBit,
|
|
23424
23978
|
options
|
|
23425
23979
|
),
|
|
23980
|
+
authorFullName: this.toAstProperty(
|
|
23981
|
+
bitType,
|
|
23982
|
+
ConfigKey.property_authorFullName,
|
|
23983
|
+
data.authorFullName,
|
|
23984
|
+
options
|
|
23985
|
+
),
|
|
23986
|
+
authorPseudonym: this.toAstProperty(
|
|
23987
|
+
bitType,
|
|
23988
|
+
ConfigKey.property_authorPseudonym,
|
|
23989
|
+
data.authorPseudonym,
|
|
23990
|
+
options
|
|
23991
|
+
),
|
|
23992
|
+
authorTitle: this.toAstProperty(
|
|
23993
|
+
bitType,
|
|
23994
|
+
ConfigKey.property_authorTitle,
|
|
23995
|
+
data.authorTitle,
|
|
23996
|
+
options
|
|
23997
|
+
),
|
|
23998
|
+
authorJobTitle: this.toAstProperty(
|
|
23999
|
+
bitType,
|
|
24000
|
+
ConfigKey.property_authorJobTitle,
|
|
24001
|
+
data.authorJobTitle,
|
|
24002
|
+
options
|
|
24003
|
+
),
|
|
23426
24004
|
tableFixedHeader: this.toAstProperty(
|
|
23427
24005
|
bitType,
|
|
23428
24006
|
ConfigKey.property_tableFixedHeader,
|
|
@@ -23777,6 +24355,12 @@ var Builder = class extends BaseBuilder {
|
|
|
23777
24355
|
options
|
|
23778
24356
|
),
|
|
23779
24357
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24358
|
+
platformBrandTarget: this.toAstProperty(
|
|
24359
|
+
bitType,
|
|
24360
|
+
ConfigKey.property_platformBrandTarget,
|
|
24361
|
+
data.platformBrandTarget,
|
|
24362
|
+
options
|
|
24363
|
+
),
|
|
23780
24364
|
platformName: this.toAstProperty(
|
|
23781
24365
|
bitType,
|
|
23782
24366
|
ConfigKey.property_platformName,
|
|
@@ -23947,6 +24531,8 @@ var Builder = class extends BaseBuilder {
|
|
|
23947
24531
|
// Example
|
|
23948
24532
|
...this.toExample(data.__isDefaultExample, data.example),
|
|
23949
24533
|
// Person
|
|
24534
|
+
previewImage: this.toImageResources(context, data.previewImage),
|
|
24535
|
+
previewVideo: this.toVideoResources(context, data.previewVideo),
|
|
23950
24536
|
imagePlaceholder: this.toImageResource(context, data.imagePlaceholder),
|
|
23951
24537
|
resources: instance4.asArray(
|
|
23952
24538
|
this.resourceBuilder.resourceFromResourceJson(context, data.resources)
|
|
@@ -25372,6 +25958,36 @@ var Builder = class extends BaseBuilder {
|
|
|
25372
25958
|
this.resourceBuilder.resourceFromResourceDataJson(context, ResourceType.image, data?.image)
|
|
25373
25959
|
);
|
|
25374
25960
|
}
|
|
25961
|
+
toImageResources(context, data) {
|
|
25962
|
+
const arr = instance4.asArray(data);
|
|
25963
|
+
const results = [];
|
|
25964
|
+
if (arr && arr.length > 0) {
|
|
25965
|
+
for (const item of arr) {
|
|
25966
|
+
const res = this.resourceBuilder.resourceFromResourceDataJson(
|
|
25967
|
+
context,
|
|
25968
|
+
ResourceType.image,
|
|
25969
|
+
item.image
|
|
25970
|
+
);
|
|
25971
|
+
results.push(res);
|
|
25972
|
+
}
|
|
25973
|
+
}
|
|
25974
|
+
return results;
|
|
25975
|
+
}
|
|
25976
|
+
toVideoResources(context, data) {
|
|
25977
|
+
const arr = instance4.asArray(data);
|
|
25978
|
+
const results = [];
|
|
25979
|
+
if (arr && arr.length > 0) {
|
|
25980
|
+
for (const item of arr) {
|
|
25981
|
+
const res = this.resourceBuilder.resourceFromResourceDataJson(
|
|
25982
|
+
context,
|
|
25983
|
+
ResourceType.video,
|
|
25984
|
+
item.video
|
|
25985
|
+
);
|
|
25986
|
+
results.push(res);
|
|
25987
|
+
}
|
|
25988
|
+
}
|
|
25989
|
+
return results;
|
|
25990
|
+
}
|
|
25375
25991
|
//
|
|
25376
25992
|
// Private
|
|
25377
25993
|
//
|
|
@@ -27060,6 +27676,20 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27060
27676
|
this.writePropertyStyleResource(node.key, resource);
|
|
27061
27677
|
return true;
|
|
27062
27678
|
}
|
|
27679
|
+
// bitmarkAst -> bits -> bitsValue -> previewImageValue
|
|
27680
|
+
enter_previewImageValue(node, _route) {
|
|
27681
|
+
const resource = node.value;
|
|
27682
|
+
this.writeNL();
|
|
27683
|
+
this.writePropertyStyleResource("previewImage", resource);
|
|
27684
|
+
return true;
|
|
27685
|
+
}
|
|
27686
|
+
// bitmarkAst -> bits -> bitsValue -> previewVideoValue
|
|
27687
|
+
enter_previewVideoValue(node, _route) {
|
|
27688
|
+
const resource = node.value;
|
|
27689
|
+
this.writeNL();
|
|
27690
|
+
this.writePropertyStyleResource("previewVideo", resource);
|
|
27691
|
+
return true;
|
|
27692
|
+
}
|
|
27063
27693
|
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
27064
27694
|
enter_platformIcon(node, _route) {
|
|
27065
27695
|
const resource = node.value;
|
|
@@ -27081,6 +27711,59 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
27081
27711
|
this.writePropertyStyleResource(node.key, resource);
|
|
27082
27712
|
return true;
|
|
27083
27713
|
}
|
|
27714
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage (when it's a resource object or property array)
|
|
27715
|
+
enter_coverImage(node, route) {
|
|
27716
|
+
const value = node.value;
|
|
27717
|
+
if (value && typeof value === "object" && !Array.isArray(value) && "type" in value) {
|
|
27718
|
+
const resource = value;
|
|
27719
|
+
this.writeNL();
|
|
27720
|
+
this.writePropertyStyleResource(node.key, resource);
|
|
27721
|
+
return true;
|
|
27722
|
+
}
|
|
27723
|
+
if (Array.isArray(value)) {
|
|
27724
|
+
if (value == null) return true;
|
|
27725
|
+
const parent = this.getParentNode(route);
|
|
27726
|
+
if (parent?.key !== NodeType.bitsValue) return true;
|
|
27727
|
+
const bitType = this.getBitType(route);
|
|
27728
|
+
if (!bitType) return true;
|
|
27729
|
+
const config = instance2.getBitConfig(bitType);
|
|
27730
|
+
const propertyConfig = instance2.getTagConfigForTag(
|
|
27731
|
+
config.tags,
|
|
27732
|
+
ConfigKey.property_coverImage
|
|
27733
|
+
);
|
|
27734
|
+
if (!propertyConfig) return true;
|
|
27735
|
+
this.writeNL_IfNotChain(route);
|
|
27736
|
+
this.writeProperty(propertyConfig.tag, value, route, {
|
|
27737
|
+
format: propertyConfig.format ?? TagFormat.plainText,
|
|
27738
|
+
array: propertyConfig.array ?? false,
|
|
27739
|
+
writeEmpty: true,
|
|
27740
|
+
ignoreFalse: propertyConfig.defaultValue === "false",
|
|
27741
|
+
ignoreTrue: propertyConfig.defaultValue === "true"
|
|
27742
|
+
});
|
|
27743
|
+
}
|
|
27744
|
+
return true;
|
|
27745
|
+
}
|
|
27746
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage (when it's a property string)
|
|
27747
|
+
// This is called when coverImage is a simple string value
|
|
27748
|
+
leaf_coverImage(node, route) {
|
|
27749
|
+
const value = node.value;
|
|
27750
|
+
if (value == null) return;
|
|
27751
|
+
const parent = this.getParentNode(route);
|
|
27752
|
+
if (parent?.key !== NodeType.bitsValue) return;
|
|
27753
|
+
const bitType = this.getBitType(route);
|
|
27754
|
+
if (!bitType) return;
|
|
27755
|
+
const config = instance2.getBitConfig(bitType);
|
|
27756
|
+
const propertyConfig = instance2.getTagConfigForTag(config.tags, ConfigKey.property_coverImage);
|
|
27757
|
+
if (!propertyConfig) return;
|
|
27758
|
+
this.writeNL_IfNotChain(route);
|
|
27759
|
+
this.writeProperty(propertyConfig.tag, node.value, route, {
|
|
27760
|
+
format: propertyConfig.format ?? TagFormat.plainText,
|
|
27761
|
+
array: propertyConfig.array ?? false,
|
|
27762
|
+
writeEmpty: true,
|
|
27763
|
+
ignoreFalse: propertyConfig.defaultValue === "false",
|
|
27764
|
+
ignoreTrue: propertyConfig.defaultValue === "true"
|
|
27765
|
+
});
|
|
27766
|
+
}
|
|
27084
27767
|
exit_imagePlaceholder(_node, _route) {
|
|
27085
27768
|
}
|
|
27086
27769
|
// bitmarkAst -> bits -> bitsValue -> posterImage
|
|
@@ -28666,6 +29349,14 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28666
29349
|
enter_imagePlaceholder(node, route) {
|
|
28667
29350
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28668
29351
|
}
|
|
29352
|
+
// bitmarkAst -> bits -> bitsValue -> previewImage
|
|
29353
|
+
enter_previewImage(node, route) {
|
|
29354
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
29355
|
+
}
|
|
29356
|
+
// bitmarkAst -> bits -> bitsValue -> previewVideo
|
|
29357
|
+
enter_previewVideo(node, route) {
|
|
29358
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
29359
|
+
}
|
|
28669
29360
|
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
28670
29361
|
enter_platformIcon(node, route) {
|
|
28671
29362
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
@@ -28678,6 +29369,12 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28678
29369
|
enter_platformBackgroundImage(node, route) {
|
|
28679
29370
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28680
29371
|
}
|
|
29372
|
+
// bitmarkAst -> bits -> bitsValue -> coverImage
|
|
29373
|
+
enter_coverImage(node, route) {
|
|
29374
|
+
return this.standardHandler(node, route, NodeType.bitsValue, {
|
|
29375
|
+
array: Array.isArray(node.value)
|
|
29376
|
+
});
|
|
29377
|
+
}
|
|
28681
29378
|
// bitmarkAst -> bits -> bitsValue -> resources
|
|
28682
29379
|
enter_resources(node, route) {
|
|
28683
29380
|
const resources = node.value;
|
|
@@ -29357,6 +30054,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
29357
30054
|
if (instance2.isOfBitType(bitType, BitType.platformPath)) {
|
|
29358
30055
|
if (bitJson.path == null) bitJson.path = "";
|
|
29359
30056
|
}
|
|
30057
|
+
if (instance2.isOfBitType(bitType, BitType.platformBrandTarget)) {
|
|
30058
|
+
if (bitJson.platformBrandTarget == null) bitJson.platformBrandTarget = "none";
|
|
30059
|
+
}
|
|
29360
30060
|
if (isTopLevelExample) {
|
|
29361
30061
|
if (bitJson.isExample == null) bitJson.isExample = false;
|
|
29362
30062
|
} else {
|
|
@@ -30651,7 +31351,7 @@ var BitmarkPegParserValidator = class {
|
|
|
30651
31351
|
let tagData = validTypeKeys.get(validTypeKey);
|
|
30652
31352
|
if (!tagData && typeKey === TypeKey.Property) {
|
|
30653
31353
|
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) {
|
|
31354
|
+
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
31355
|
tagData = validTypeKeys.get(resourceKey);
|
|
30656
31356
|
if (tagData) {
|
|
30657
31357
|
typeKey = TypeKey.Resource;
|
|
@@ -33054,8 +33754,19 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
|
|
|
33054
33754
|
...tags2
|
|
33055
33755
|
});
|
|
33056
33756
|
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)
|
|
33757
|
+
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) {
|
|
33758
|
+
if (target.propertyStyleResources) {
|
|
33759
|
+
if (target.propertyStyleResources[resourceType]) {
|
|
33760
|
+
if (!Array.isArray(target.propertyStyleResources[resourceType])) {
|
|
33761
|
+
target.propertyStyleResources[resourceType] = [
|
|
33762
|
+
target.propertyStyleResources[resourceType]
|
|
33763
|
+
];
|
|
33764
|
+
}
|
|
33765
|
+
target.propertyStyleResources[resourceType].push(resource);
|
|
33766
|
+
} else {
|
|
33767
|
+
target.propertyStyleResources[resourceType] = resource;
|
|
33768
|
+
}
|
|
33769
|
+
}
|
|
33059
33770
|
} else {
|
|
33060
33771
|
resources.push(resource);
|
|
33061
33772
|
}
|