@gmb/bitmark-parser-generator 4.11.0 → 4.13.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 +563 -73
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +220 -7
- package/dist/browser/esm/index.d.ts +220 -7
- package/dist/browser/esm/index.js +563 -73
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +563 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +220 -7
- package/dist/index.d.ts +220 -7
- package/dist/index.js +563 -73
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -161,6 +161,7 @@ var BitType = (0, import_superenum.superenum)({
|
|
|
161
161
|
botActionSend: "bot-action-send",
|
|
162
162
|
botActionTrueFalse: "bot-action-true-false",
|
|
163
163
|
botInterview: "bot-interview",
|
|
164
|
+
brandColor: "brand-color",
|
|
164
165
|
browserImage: "browser-image",
|
|
165
166
|
bug: "bug",
|
|
166
167
|
bugAlt: "bug-alt",
|
|
@@ -475,7 +476,18 @@ var BitType = (0, import_superenum.superenum)({
|
|
|
475
476
|
pageSubscribe: "page-subscribe",
|
|
476
477
|
parameters: "parameters",
|
|
477
478
|
photo: "photo",
|
|
479
|
+
platform: "platform",
|
|
480
|
+
platformHeader: "platform-header",
|
|
481
|
+
platformMain: "platform-main",
|
|
482
|
+
platformMainButton: "platform-main-button",
|
|
483
|
+
platformMainInput: "platform-main-input",
|
|
478
484
|
platformPath: "platform-path",
|
|
485
|
+
platformSection: "platform-section",
|
|
486
|
+
platformSectionButton: "platform-section-button",
|
|
487
|
+
platformSectionChat: "platform-section-chat",
|
|
488
|
+
platformSectionHeader: "platform-section-header",
|
|
489
|
+
platformSectionInput: "platform-section-input",
|
|
490
|
+
platformSystemIcon: "platform-system-icon",
|
|
479
491
|
preparationNote: "preparation-note",
|
|
480
492
|
pronunciationTable: "pronunciation-table",
|
|
481
493
|
prototypeImages: "prototype-images",
|
|
@@ -1101,6 +1113,8 @@ var groupKeys = {
|
|
|
1101
1113
|
group_mark: "group_mark",
|
|
1102
1114
|
group_bookCommon: "group_bookCommon",
|
|
1103
1115
|
group_learningPathCommon: "group_learningPathCommon",
|
|
1116
|
+
group_advertisingCommon: "group_advertisingCommon",
|
|
1117
|
+
group_platformColorsCommon: "group_platformColorsCommon",
|
|
1104
1118
|
group_quizCommon: "group_quizCommon",
|
|
1105
1119
|
group_resourceBitTags: "group_resourceBitTags",
|
|
1106
1120
|
group_resourceCommon: "group_resourceCommon",
|
|
@@ -1144,6 +1158,7 @@ var propertyKeys = {
|
|
|
1144
1158
|
property_action: "@action",
|
|
1145
1159
|
property_activityType: "@activityType",
|
|
1146
1160
|
property_additionalSolutions: "@additionalSolutions",
|
|
1161
|
+
property_advertisingClickUrl: "@advertisingClickUrl",
|
|
1147
1162
|
property_ageRange: "@ageRange",
|
|
1148
1163
|
property_aiGenerated: "@aiGenerated",
|
|
1149
1164
|
property_allowedBit: "@allowedBit",
|
|
@@ -1154,6 +1169,8 @@ var propertyKeys = {
|
|
|
1154
1169
|
property_author: "@author",
|
|
1155
1170
|
property_autoplay: "@autoplay",
|
|
1156
1171
|
property_availableClassifications: "@availableClassifications",
|
|
1172
|
+
property_brandColor: "@brandColor",
|
|
1173
|
+
property_brandColorName: "@brandColorName",
|
|
1157
1174
|
property_blockId: "@blockId",
|
|
1158
1175
|
property_book: "@book",
|
|
1159
1176
|
property_bookAlias: "@bookAlias",
|
|
@@ -1220,6 +1237,7 @@ var propertyKeys = {
|
|
|
1220
1237
|
property_imageSource: "@imageSource",
|
|
1221
1238
|
property_index: "@index",
|
|
1222
1239
|
property_internalComment: "@internalComment",
|
|
1240
|
+
property_internalPrintPdf: "@internalPrintPdf",
|
|
1223
1241
|
property_isCaseSensitive: "@isCaseSensitive",
|
|
1224
1242
|
property_isInfoOnly: "@isInfoOnly",
|
|
1225
1243
|
property_isPublic: "@isPublic",
|
|
@@ -1260,6 +1278,18 @@ var propertyKeys = {
|
|
|
1260
1278
|
property_partner: "@partner",
|
|
1261
1279
|
// Deprecated, replaced by person
|
|
1262
1280
|
property_path: "@path",
|
|
1281
|
+
property_platformBackgroundColor: "@platformBackgroundColor",
|
|
1282
|
+
property_platformButtonBackgroundColor: "@platformButtonBackgroundColor",
|
|
1283
|
+
property_platformButtonPrimaryColor: "@platformButtonPrimaryColor",
|
|
1284
|
+
property_platformMessageBackgroundColor: "@platformMessageBackgroundColor",
|
|
1285
|
+
property_platformName: "@platformName",
|
|
1286
|
+
property_platformPlaceholderColor: "@platformPlaceholderColor",
|
|
1287
|
+
property_platformPrimaryColor: "@platformPrimaryColor",
|
|
1288
|
+
property_platformScrollbarColor: "@platformScrollbarColor",
|
|
1289
|
+
property_platformSecondaryColor: "@platformSecondaryColor",
|
|
1290
|
+
property_platformSelectionColor: "@platformSelectionColor",
|
|
1291
|
+
property_platformSeparatorColor: "@platformSeparatorColor",
|
|
1292
|
+
property_platformTextSelectionColor: "@platformTextSelectionColor",
|
|
1263
1293
|
property_person: "@person",
|
|
1264
1294
|
property_pointerLeft: "@pointerLeft",
|
|
1265
1295
|
property_pointerTop: "@pointerTop",
|
|
@@ -1309,6 +1339,7 @@ var propertyKeys = {
|
|
|
1309
1339
|
property_size: "@size",
|
|
1310
1340
|
property_slug: "@slug",
|
|
1311
1341
|
property_sourceDocument: "@sourceDocument",
|
|
1342
|
+
property_sourceRL: "@sourceRL",
|
|
1312
1343
|
property_spaceId: "@spaceId",
|
|
1313
1344
|
property_src1x: "@src1x",
|
|
1314
1345
|
property_src2x: "@src2x",
|
|
@@ -1383,6 +1414,9 @@ var resourceKeys = {
|
|
|
1383
1414
|
resource_appLink: "&appLink",
|
|
1384
1415
|
resource_websiteLink: "&websiteLink",
|
|
1385
1416
|
resource_icon: "&icon",
|
|
1417
|
+
resource_platformBackgroundImage: "&platformBackgroundImage",
|
|
1418
|
+
resource_platformIcon: "&platformIcon",
|
|
1419
|
+
resource_platformLogo: "&platformLogo",
|
|
1386
1420
|
resource_backgroundWallpaper: "&backgroundWallpaper",
|
|
1387
1421
|
resource_imagePlaceholder: "&imagePlaceholder"
|
|
1388
1422
|
};
|
|
@@ -1609,7 +1643,10 @@ var ResourceType = (0, import_superenum13.superenum)({
|
|
|
1609
1643
|
// Aliases for image
|
|
1610
1644
|
icon: "icon",
|
|
1611
1645
|
backgroundWallpaper: "backgroundWallpaper",
|
|
1612
|
-
imagePlaceholder: "imagePlaceholder"
|
|
1646
|
+
imagePlaceholder: "imagePlaceholder",
|
|
1647
|
+
platformIcon: "platformIcon",
|
|
1648
|
+
platformLogo: "platformLogo",
|
|
1649
|
+
platformBackgroundImage: "platformBackgroundImage"
|
|
1613
1650
|
});
|
|
1614
1651
|
function resourceTypeToConfigKey(type) {
|
|
1615
1652
|
return `&${stringUtils.kebabToCamel(type)}`;
|
|
@@ -2624,6 +2661,11 @@ var GROUPS = {
|
|
|
2624
2661
|
format: TagFormat.plainText,
|
|
2625
2662
|
maxCount: Count.infinity
|
|
2626
2663
|
},
|
|
2664
|
+
{
|
|
2665
|
+
key: ConfigKey.property_sourceRL,
|
|
2666
|
+
description: "The original location of the information in the original source material",
|
|
2667
|
+
format: TagFormat.plainText
|
|
2668
|
+
},
|
|
2627
2669
|
{
|
|
2628
2670
|
key: ConfigKey.property_isTemplate,
|
|
2629
2671
|
description: "If true, the bit is a template",
|
|
@@ -3270,6 +3312,11 @@ var GROUPS = {
|
|
|
3270
3312
|
key: ConfigKey.property_sourceDocument,
|
|
3271
3313
|
description: "Url of the source document for the book (for example, a PDF file)",
|
|
3272
3314
|
format: TagFormat.plainText
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
key: ConfigKey.property_internalPrintPdf,
|
|
3318
|
+
description: "Url of the internal print PDF for the book",
|
|
3319
|
+
format: TagFormat.plainText
|
|
3273
3320
|
}
|
|
3274
3321
|
]
|
|
3275
3322
|
},
|
|
@@ -3348,6 +3395,78 @@ var GROUPS = {
|
|
|
3348
3395
|
}
|
|
3349
3396
|
]
|
|
3350
3397
|
},
|
|
3398
|
+
[ConfigKey.group_advertisingCommon]: {
|
|
3399
|
+
type: GroupConfigType.standard,
|
|
3400
|
+
description: "Common advertising tags",
|
|
3401
|
+
tags: [
|
|
3402
|
+
{
|
|
3403
|
+
key: ConfigKey.property_advertisingClickUrl,
|
|
3404
|
+
description: "The URL to which the advertisement should link",
|
|
3405
|
+
format: TagFormat.plainText
|
|
3406
|
+
}
|
|
3407
|
+
]
|
|
3408
|
+
},
|
|
3409
|
+
[ConfigKey.group_platformColorsCommon]: {
|
|
3410
|
+
type: GroupConfigType.standard,
|
|
3411
|
+
description: "Common platform colors",
|
|
3412
|
+
tags: [
|
|
3413
|
+
{
|
|
3414
|
+
key: ConfigKey.property_platformPrimaryColor,
|
|
3415
|
+
description: "The platform system primary color",
|
|
3416
|
+
format: TagFormat.plainText
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
key: ConfigKey.property_platformSecondaryColor,
|
|
3420
|
+
description: "The platform section secondary color",
|
|
3421
|
+
format: TagFormat.plainText
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
key: ConfigKey.property_platformBackgroundColor,
|
|
3425
|
+
description: "The platform system background color",
|
|
3426
|
+
format: TagFormat.plainText
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
key: ConfigKey.property_platformButtonPrimaryColor,
|
|
3430
|
+
description: "The platform section header button primary color",
|
|
3431
|
+
format: TagFormat.plainText
|
|
3432
|
+
},
|
|
3433
|
+
{
|
|
3434
|
+
key: ConfigKey.property_platformButtonBackgroundColor,
|
|
3435
|
+
description: "The platform section header button background color",
|
|
3436
|
+
format: TagFormat.plainText
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
key: ConfigKey.property_platformScrollbarColor,
|
|
3440
|
+
description: "The platform main scrollbar color",
|
|
3441
|
+
format: TagFormat.plainText
|
|
3442
|
+
},
|
|
3443
|
+
{
|
|
3444
|
+
key: ConfigKey.property_platformSelectionColor,
|
|
3445
|
+
description: "The platform main selection color",
|
|
3446
|
+
format: TagFormat.plainText
|
|
3447
|
+
},
|
|
3448
|
+
{
|
|
3449
|
+
key: ConfigKey.property_platformTextSelectionColor,
|
|
3450
|
+
description: "The platform main input text selection color",
|
|
3451
|
+
format: TagFormat.plainText
|
|
3452
|
+
},
|
|
3453
|
+
{
|
|
3454
|
+
key: ConfigKey.property_platformSeparatorColor,
|
|
3455
|
+
description: "The platform main separator color",
|
|
3456
|
+
format: TagFormat.plainText
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
key: ConfigKey.property_platformPlaceholderColor,
|
|
3460
|
+
description: "The platform main input placeholder color",
|
|
3461
|
+
format: TagFormat.plainText
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
key: ConfigKey.property_platformMessageBackgroundColor,
|
|
3465
|
+
description: "The platform section chat message background color",
|
|
3466
|
+
format: TagFormat.plainText
|
|
3467
|
+
}
|
|
3468
|
+
]
|
|
3469
|
+
},
|
|
3351
3470
|
[ConfigKey.group_quizCommon]: {
|
|
3352
3471
|
type: GroupConfigType.standard,
|
|
3353
3472
|
description: "Common quiz tags",
|
|
@@ -5260,67 +5379,145 @@ var BITS = {
|
|
|
5260
5379
|
[BitType.advertising]: {
|
|
5261
5380
|
since: "4.2.0",
|
|
5262
5381
|
baseBitType: BitType.article,
|
|
5263
|
-
description: "General advertising content bit"
|
|
5382
|
+
description: "General advertising content bit",
|
|
5383
|
+
tags: [
|
|
5384
|
+
{
|
|
5385
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5386
|
+
description: "Common advertising tags"
|
|
5387
|
+
}
|
|
5388
|
+
]
|
|
5264
5389
|
},
|
|
5265
5390
|
[BitType.advertisingAdvertorial]: {
|
|
5266
5391
|
since: "4.2.0",
|
|
5267
5392
|
baseBitType: BitType.article,
|
|
5268
|
-
description: "Advertorial content bit (sponsored article)"
|
|
5393
|
+
description: "Advertorial content bit (sponsored article)",
|
|
5394
|
+
tags: [
|
|
5395
|
+
{
|
|
5396
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5397
|
+
description: "Common advertising tags"
|
|
5398
|
+
}
|
|
5399
|
+
]
|
|
5269
5400
|
},
|
|
5270
5401
|
[BitType.advertisingCallToAction]: {
|
|
5271
5402
|
since: "4.2.0",
|
|
5272
5403
|
baseBitType: BitType.callToAction,
|
|
5273
|
-
description: "Call-to-action for advertising"
|
|
5404
|
+
description: "Call-to-action for advertising",
|
|
5405
|
+
tags: [
|
|
5406
|
+
{
|
|
5407
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5408
|
+
description: "Common advertising tags"
|
|
5409
|
+
}
|
|
5410
|
+
]
|
|
5274
5411
|
},
|
|
5275
5412
|
[BitType.advertisingCallToActionMeeting]: {
|
|
5276
5413
|
since: "4.2.0",
|
|
5277
5414
|
baseBitType: BitType.callToAction,
|
|
5278
|
-
description: "Call-to-action for meeting or appointment"
|
|
5415
|
+
description: "Call-to-action for meeting or appointment",
|
|
5416
|
+
tags: [
|
|
5417
|
+
{
|
|
5418
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5419
|
+
description: "Common advertising tags"
|
|
5420
|
+
}
|
|
5421
|
+
]
|
|
5279
5422
|
},
|
|
5280
5423
|
[BitType.advertisingBanner]: {
|
|
5281
5424
|
since: "4.2.0",
|
|
5282
5425
|
baseBitType: BitType.image,
|
|
5283
|
-
description: "Banner advertisement bit"
|
|
5426
|
+
description: "Banner advertisement bit",
|
|
5427
|
+
tags: [
|
|
5428
|
+
{
|
|
5429
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5430
|
+
description: "Common advertising tags"
|
|
5431
|
+
}
|
|
5432
|
+
]
|
|
5284
5433
|
},
|
|
5285
5434
|
[BitType.advertisingSkyscraper]: {
|
|
5286
5435
|
since: "4.2.0",
|
|
5287
5436
|
baseBitType: BitType.image,
|
|
5288
|
-
description: "Skyscraper (vertical) advertisement bit"
|
|
5437
|
+
description: "Skyscraper (vertical) advertisement bit",
|
|
5438
|
+
tags: [
|
|
5439
|
+
{
|
|
5440
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5441
|
+
description: "Common advertising tags"
|
|
5442
|
+
}
|
|
5443
|
+
]
|
|
5289
5444
|
},
|
|
5290
5445
|
[BitType.advertisingRectangle]: {
|
|
5291
5446
|
since: "4.2.0",
|
|
5292
5447
|
baseBitType: BitType.image,
|
|
5293
|
-
description: "Rectangle advertisement bit"
|
|
5448
|
+
description: "Rectangle advertisement bit",
|
|
5449
|
+
tags: [
|
|
5450
|
+
{
|
|
5451
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5452
|
+
description: "Common advertising tags"
|
|
5453
|
+
}
|
|
5454
|
+
]
|
|
5294
5455
|
},
|
|
5295
5456
|
[BitType.advertisingFullPage]: {
|
|
5296
5457
|
since: "4.2.0",
|
|
5297
5458
|
baseBitType: BitType.image,
|
|
5298
|
-
description: "Full-page advertisement bit"
|
|
5459
|
+
description: "Full-page advertisement bit",
|
|
5460
|
+
tags: [
|
|
5461
|
+
{
|
|
5462
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5463
|
+
description: "Common advertising tags"
|
|
5464
|
+
}
|
|
5465
|
+
]
|
|
5299
5466
|
},
|
|
5300
5467
|
[BitType.advertisingHalfPage]: {
|
|
5301
5468
|
since: "4.2.0",
|
|
5302
5469
|
baseBitType: BitType.image,
|
|
5303
|
-
description: "Half-page advertisement bit"
|
|
5470
|
+
description: "Half-page advertisement bit",
|
|
5471
|
+
tags: [
|
|
5472
|
+
{
|
|
5473
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5474
|
+
description: "Common advertising tags"
|
|
5475
|
+
}
|
|
5476
|
+
]
|
|
5304
5477
|
},
|
|
5305
5478
|
[BitType.advertisingQuarterPage]: {
|
|
5306
5479
|
since: "4.2.0",
|
|
5307
5480
|
baseBitType: BitType.image,
|
|
5308
|
-
description: "Quarter-page advertisement bit"
|
|
5481
|
+
description: "Quarter-page advertisement bit",
|
|
5482
|
+
tags: [
|
|
5483
|
+
{
|
|
5484
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5485
|
+
description: "Common advertising tags"
|
|
5486
|
+
}
|
|
5487
|
+
]
|
|
5309
5488
|
},
|
|
5310
5489
|
[BitType.advertisingClassifiedPage]: {
|
|
5311
5490
|
since: "4.2.0",
|
|
5312
5491
|
baseBitType: BitType.image,
|
|
5313
|
-
description: "Classifieds advertisement page bit"
|
|
5492
|
+
description: "Classifieds advertisement page bit",
|
|
5493
|
+
tags: [
|
|
5494
|
+
{
|
|
5495
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5496
|
+
description: "Common advertising tags"
|
|
5497
|
+
}
|
|
5498
|
+
]
|
|
5314
5499
|
},
|
|
5315
5500
|
[BitType.advertisingLandscape]: {
|
|
5316
5501
|
since: "4.2.0",
|
|
5317
5502
|
baseBitType: BitType.image,
|
|
5318
|
-
description: "Landscape format advertisement bit"
|
|
5503
|
+
description: "Landscape format advertisement bit",
|
|
5504
|
+
tags: [
|
|
5505
|
+
{
|
|
5506
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5507
|
+
description: "Common advertising tags"
|
|
5508
|
+
}
|
|
5509
|
+
]
|
|
5319
5510
|
},
|
|
5320
5511
|
[BitType.advertisingPortrait]: {
|
|
5321
5512
|
since: "4.2.0",
|
|
5322
5513
|
baseBitType: BitType.image,
|
|
5323
|
-
description: "Portrait format advertisement bit"
|
|
5514
|
+
description: "Portrait format advertisement bit",
|
|
5515
|
+
tags: [
|
|
5516
|
+
{
|
|
5517
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5518
|
+
description: "Common advertising tags"
|
|
5519
|
+
}
|
|
5520
|
+
]
|
|
5324
5521
|
},
|
|
5325
5522
|
[BitType.cookPreparation]: {
|
|
5326
5523
|
since: "1.3.0",
|
|
@@ -7071,6 +7268,23 @@ var BITS = {
|
|
|
7071
7268
|
baseBitType: BitType.interview,
|
|
7072
7269
|
description: "Bot interview bit, used to create bot interviews in articles or books"
|
|
7073
7270
|
},
|
|
7271
|
+
[BitType.brandColor]: {
|
|
7272
|
+
since: "4.12.0",
|
|
7273
|
+
baseBitType: BitType._standard,
|
|
7274
|
+
description: "Brand color bit, used to define brand colors",
|
|
7275
|
+
tags: [
|
|
7276
|
+
{
|
|
7277
|
+
key: ConfigKey.property_brandColor,
|
|
7278
|
+
description: "The brand color",
|
|
7279
|
+
format: TagFormat.plainText
|
|
7280
|
+
},
|
|
7281
|
+
{
|
|
7282
|
+
key: ConfigKey.property_brandColorName,
|
|
7283
|
+
description: "The brand color name",
|
|
7284
|
+
format: TagFormat.plainText
|
|
7285
|
+
}
|
|
7286
|
+
]
|
|
7287
|
+
},
|
|
7074
7288
|
[BitType.learningPathBook]: {
|
|
7075
7289
|
since: "1.3.0",
|
|
7076
7290
|
baseBitType: BitType._standard,
|
|
@@ -7829,6 +8043,160 @@ var BITS = {
|
|
|
7829
8043
|
baseBitType: BitType.image,
|
|
7830
8044
|
description: "Photo bit, used to create photo bits in articles or books"
|
|
7831
8045
|
},
|
|
8046
|
+
[BitType.platform]: {
|
|
8047
|
+
since: "4.12.0",
|
|
8048
|
+
baseBitType: BitType._standard,
|
|
8049
|
+
description: "Platform bit, used to define platform properties",
|
|
8050
|
+
tags: [
|
|
8051
|
+
{
|
|
8052
|
+
key: ConfigKey.property_platformName,
|
|
8053
|
+
description: "The platform name",
|
|
8054
|
+
format: TagFormat.plainText
|
|
8055
|
+
},
|
|
8056
|
+
{
|
|
8057
|
+
key: ConfigKey.resource_platformIcon,
|
|
8058
|
+
description: "The platform icon",
|
|
8059
|
+
chain: [
|
|
8060
|
+
{
|
|
8061
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
8062
|
+
description: "Common image properties for the platform icon resource"
|
|
8063
|
+
}
|
|
8064
|
+
],
|
|
8065
|
+
maxCount: 1
|
|
8066
|
+
}
|
|
8067
|
+
]
|
|
8068
|
+
},
|
|
8069
|
+
[BitType.platformHeader]: {
|
|
8070
|
+
since: "4.12.0",
|
|
8071
|
+
baseBitType: BitType._standard,
|
|
8072
|
+
description: "Platform header bit, used to define platform header properties",
|
|
8073
|
+
tags: [
|
|
8074
|
+
{
|
|
8075
|
+
key: ConfigKey.resource_platformLogo,
|
|
8076
|
+
description: "The platform logo",
|
|
8077
|
+
chain: [
|
|
8078
|
+
{
|
|
8079
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
8080
|
+
description: "Common image properties for the platform logo resource"
|
|
8081
|
+
}
|
|
8082
|
+
],
|
|
8083
|
+
maxCount: 1
|
|
8084
|
+
},
|
|
8085
|
+
{
|
|
8086
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8087
|
+
description: "Common platform colors"
|
|
8088
|
+
}
|
|
8089
|
+
]
|
|
8090
|
+
},
|
|
8091
|
+
[BitType.platformMain]: {
|
|
8092
|
+
since: "4.12.0",
|
|
8093
|
+
baseBitType: BitType._standard,
|
|
8094
|
+
description: "Platform main bit, used to define platform main properties",
|
|
8095
|
+
tags: [
|
|
8096
|
+
{
|
|
8097
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8098
|
+
description: "Common platform colors"
|
|
8099
|
+
}
|
|
8100
|
+
]
|
|
8101
|
+
},
|
|
8102
|
+
[BitType.platformMainButton]: {
|
|
8103
|
+
since: "4.12.0",
|
|
8104
|
+
baseBitType: BitType._standard,
|
|
8105
|
+
description: "Platform main button bit, used to define platform main button properties",
|
|
8106
|
+
tags: [
|
|
8107
|
+
{
|
|
8108
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8109
|
+
description: "Common platform colors"
|
|
8110
|
+
}
|
|
8111
|
+
]
|
|
8112
|
+
},
|
|
8113
|
+
[BitType.platformMainInput]: {
|
|
8114
|
+
since: "4.12.0",
|
|
8115
|
+
baseBitType: BitType._standard,
|
|
8116
|
+
description: "Platform main input bit, used to define platform main input properties",
|
|
8117
|
+
tags: [
|
|
8118
|
+
{
|
|
8119
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8120
|
+
description: "Common platform colors"
|
|
8121
|
+
}
|
|
8122
|
+
]
|
|
8123
|
+
},
|
|
8124
|
+
[BitType.platformSection]: {
|
|
8125
|
+
since: "4.12.0",
|
|
8126
|
+
baseBitType: BitType._standard,
|
|
8127
|
+
description: "Platform section bit, used to define platform section properties",
|
|
8128
|
+
tags: [
|
|
8129
|
+
{
|
|
8130
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8131
|
+
description: "Common platform colors"
|
|
8132
|
+
}
|
|
8133
|
+
]
|
|
8134
|
+
},
|
|
8135
|
+
[BitType.platformSectionButton]: {
|
|
8136
|
+
since: "4.12.0",
|
|
8137
|
+
baseBitType: BitType._standard,
|
|
8138
|
+
description: "Platform section button bit, used to define platform section button properties",
|
|
8139
|
+
tags: [
|
|
8140
|
+
{
|
|
8141
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8142
|
+
description: "Common platform colors"
|
|
8143
|
+
}
|
|
8144
|
+
]
|
|
8145
|
+
},
|
|
8146
|
+
[BitType.platformSectionChat]: {
|
|
8147
|
+
since: "4.12.0",
|
|
8148
|
+
baseBitType: BitType._standard,
|
|
8149
|
+
description: "Platform section chat bit, used to define platform section chat properties",
|
|
8150
|
+
tags: [
|
|
8151
|
+
{
|
|
8152
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8153
|
+
description: "Common platform colors"
|
|
8154
|
+
},
|
|
8155
|
+
{
|
|
8156
|
+
key: ConfigKey.resource_platformBackgroundImage,
|
|
8157
|
+
description: "The platform section chat background image",
|
|
8158
|
+
chain: [
|
|
8159
|
+
{
|
|
8160
|
+
key: ConfigKey.group_resourceImageCommon,
|
|
8161
|
+
description: "Common image properties for the platform background image resource"
|
|
8162
|
+
}
|
|
8163
|
+
]
|
|
8164
|
+
}
|
|
8165
|
+
]
|
|
8166
|
+
},
|
|
8167
|
+
[BitType.platformSectionHeader]: {
|
|
8168
|
+
since: "4.12.0",
|
|
8169
|
+
baseBitType: BitType._standard,
|
|
8170
|
+
description: "Platform section header bit, used to define platform section header properties",
|
|
8171
|
+
tags: [
|
|
8172
|
+
{
|
|
8173
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8174
|
+
description: "Common platform colors"
|
|
8175
|
+
}
|
|
8176
|
+
]
|
|
8177
|
+
},
|
|
8178
|
+
[BitType.platformSectionInput]: {
|
|
8179
|
+
since: "4.12.0",
|
|
8180
|
+
baseBitType: BitType._standard,
|
|
8181
|
+
description: "Platform section input bit, used to define platform section input properties",
|
|
8182
|
+
tags: [
|
|
8183
|
+
{
|
|
8184
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8185
|
+
description: "Common platform colors"
|
|
8186
|
+
}
|
|
8187
|
+
]
|
|
8188
|
+
},
|
|
8189
|
+
[BitType.platformSystemIcon]: {
|
|
8190
|
+
since: "4.12.0",
|
|
8191
|
+
baseBitType: BitType._standard,
|
|
8192
|
+
description: "Platform system icon bit, used to define platform system icon properties",
|
|
8193
|
+
tags: [
|
|
8194
|
+
{
|
|
8195
|
+
key: ConfigKey.group_platformColorsCommon,
|
|
8196
|
+
description: "Common platform colors"
|
|
8197
|
+
}
|
|
8198
|
+
]
|
|
8199
|
+
},
|
|
7832
8200
|
[BitType.quote]: {
|
|
7833
8201
|
since: "1.3.0",
|
|
7834
8202
|
baseBitType: BitType._standard,
|
|
@@ -9177,7 +9545,7 @@ var instance2 = new Config();
|
|
|
9177
9545
|
// src/generated/package_info.ts
|
|
9178
9546
|
var PACKAGE_INFO = {
|
|
9179
9547
|
"name": "@gmb/bitmark-parser-generator",
|
|
9180
|
-
"version": "4.
|
|
9548
|
+
"version": "4.13.0",
|
|
9181
9549
|
"author": "Get More Brain Ltd",
|
|
9182
9550
|
"license": "ISC",
|
|
9183
9551
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -9519,7 +9887,13 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
9519
9887
|
activityTypeValue: "activityTypeValue",
|
|
9520
9888
|
additionalSolutions: "additionalSolutions",
|
|
9521
9889
|
additionalSolutionsValue: "additionalSolutionsValue",
|
|
9890
|
+
advertisingClickUrl: "advertisingClickUrl",
|
|
9891
|
+
advertisingClickUrlValue: "advertisingClickUrlValue",
|
|
9522
9892
|
ageRange: "ageRange",
|
|
9893
|
+
brandColor: "brandColor",
|
|
9894
|
+
brandColorValue: "brandColorValue",
|
|
9895
|
+
brandColorName: "brandColorName",
|
|
9896
|
+
brandColorNameValue: "brandColorNameValue",
|
|
9523
9897
|
ageRangeValue: "ageRangeValue",
|
|
9524
9898
|
aiGenerated: "aiGenerated",
|
|
9525
9899
|
aiGeneratedValue: "aiGeneratedValue",
|
|
@@ -9750,6 +10124,8 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
9750
10124
|
instruction: "instruction",
|
|
9751
10125
|
internalComment: "internalComment",
|
|
9752
10126
|
internalCommentValue: "internalCommentValue",
|
|
10127
|
+
internalPrintPdf: "internalPrintPdf",
|
|
10128
|
+
internalPrintPdfValue: "internalPrintPdfValue",
|
|
9753
10129
|
isCaseSensitive: "isCaseSensitive",
|
|
9754
10130
|
isCommented: "isCommented",
|
|
9755
10131
|
isCorrect: "isCorrect",
|
|
@@ -9852,6 +10228,36 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
9852
10228
|
partialAnswerValue: "partialAnswerValue",
|
|
9853
10229
|
path: "path",
|
|
9854
10230
|
pathValue: "pathValue",
|
|
10231
|
+
platformName: "platformName",
|
|
10232
|
+
platformNameValue: "platformNameValue",
|
|
10233
|
+
platformIcon: "platformIcon",
|
|
10234
|
+
platformIconValue: "platformIconValue",
|
|
10235
|
+
platformLogo: "platformLogo",
|
|
10236
|
+
platformLogoValue: "platformLogoValue",
|
|
10237
|
+
platformPrimaryColor: "platformPrimaryColor",
|
|
10238
|
+
platformPrimaryColorValue: "platformPrimaryColorValue",
|
|
10239
|
+
platformSecondaryColor: "platformSecondaryColor",
|
|
10240
|
+
platformSecondaryColorValue: "platformSecondaryColorValue",
|
|
10241
|
+
platformBackgroundColor: "platformBackgroundColor",
|
|
10242
|
+
platformBackgroundColorValue: "platformBackgroundColorValue",
|
|
10243
|
+
platformScrollbarColor: "platformScrollbarColor",
|
|
10244
|
+
platformScrollbarColorValue: "platformScrollbarColorValue",
|
|
10245
|
+
platformSelectionColor: "platformSelectionColor",
|
|
10246
|
+
platformSelectionColorValue: "platformSelectionColorValue",
|
|
10247
|
+
platformSeparatorColor: "platformSeparatorColor",
|
|
10248
|
+
platformSeparatorColorValue: "platformSeparatorColorValue",
|
|
10249
|
+
platformPlaceholderColor: "platformPlaceholderColor",
|
|
10250
|
+
platformPlaceholderColorValue: "platformPlaceholderColorValue",
|
|
10251
|
+
platformTextSelectionColor: "platformTextSelectionColor",
|
|
10252
|
+
platformTextSelectionColorValue: "platformTextSelectionColorValue",
|
|
10253
|
+
platformButtonPrimaryColor: "platformButtonPrimaryColor",
|
|
10254
|
+
platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
|
|
10255
|
+
platformButtonBackgroundColor: "platformButtonBackgroundColor",
|
|
10256
|
+
platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
|
|
10257
|
+
platformMessageBackgroundColor: "platformMessageBackgroundColor",
|
|
10258
|
+
platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
|
|
10259
|
+
platformBackgroundImage: "platformBackgroundImage",
|
|
10260
|
+
platformBackgroundImageValue: "platformBackgroundImageValue",
|
|
9855
10261
|
person: "person",
|
|
9856
10262
|
pointerLeft: "pointerLeft",
|
|
9857
10263
|
pointerLeftValue: "pointerLeftValue",
|
|
@@ -9970,7 +10376,8 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
9970
10376
|
solutionsValue: "solutionsValue",
|
|
9971
10377
|
sourceDocument: "sourceDocument",
|
|
9972
10378
|
sourceDocumentValue: "sourceDocumentValue",
|
|
9973
|
-
|
|
10379
|
+
sourceRL: "sourceRL",
|
|
10380
|
+
sourceRLValue: "sourceRLValue",
|
|
9974
10381
|
spaceId: "spaceId",
|
|
9975
10382
|
spaceIdValue: "spaceIdValue",
|
|
9976
10383
|
src: "src",
|
|
@@ -21369,6 +21776,9 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21369
21776
|
case ResourceType.backgroundWallpaper:
|
|
21370
21777
|
case ResourceType.imagePlaceholder:
|
|
21371
21778
|
case ResourceType.icon:
|
|
21779
|
+
case ResourceType.platformIcon:
|
|
21780
|
+
case ResourceType.platformLogo:
|
|
21781
|
+
case ResourceType.platformBackgroundImage:
|
|
21372
21782
|
node = this.imageResource(context, finalData, type);
|
|
21373
21783
|
break;
|
|
21374
21784
|
// case ResourceType.imageResponsive: {
|
|
@@ -22405,6 +22815,7 @@ var Builder = class extends BaseBuilder {
|
|
|
22405
22815
|
data.jupyterExecutionCount,
|
|
22406
22816
|
options
|
|
22407
22817
|
),
|
|
22818
|
+
sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
|
|
22408
22819
|
isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
|
|
22409
22820
|
isTemplate: this.toAstProperty(
|
|
22410
22821
|
bitType,
|
|
@@ -22922,6 +23333,24 @@ var Builder = class extends BaseBuilder {
|
|
|
22922
23333
|
data.callToActionUrl,
|
|
22923
23334
|
options
|
|
22924
23335
|
),
|
|
23336
|
+
advertisingClickUrl: this.toAstProperty(
|
|
23337
|
+
bitType,
|
|
23338
|
+
ConfigKey.property_advertisingClickUrl,
|
|
23339
|
+
data.advertisingClickUrl,
|
|
23340
|
+
options
|
|
23341
|
+
),
|
|
23342
|
+
brandColor: this.toAstProperty(
|
|
23343
|
+
bitType,
|
|
23344
|
+
ConfigKey.property_brandColor,
|
|
23345
|
+
data.brandColor,
|
|
23346
|
+
options
|
|
23347
|
+
),
|
|
23348
|
+
brandColorName: this.toAstProperty(
|
|
23349
|
+
bitType,
|
|
23350
|
+
ConfigKey.property_brandColorName,
|
|
23351
|
+
data.brandColorName,
|
|
23352
|
+
options
|
|
23353
|
+
),
|
|
22925
23354
|
caption: this.handleJsonText(context, TextLocation2.tag, data.caption),
|
|
22926
23355
|
quotedPerson: this.toAstProperty(
|
|
22927
23356
|
bitType,
|
|
@@ -22985,6 +23414,12 @@ var Builder = class extends BaseBuilder {
|
|
|
22985
23414
|
data.sourceDocument,
|
|
22986
23415
|
options
|
|
22987
23416
|
),
|
|
23417
|
+
internalPrintPdf: this.toAstProperty(
|
|
23418
|
+
bitType,
|
|
23419
|
+
ConfigKey.property_internalPrintPdf,
|
|
23420
|
+
data.internalPrintPdf,
|
|
23421
|
+
options
|
|
23422
|
+
),
|
|
22988
23423
|
tocResource: this.toAstProperty(
|
|
22989
23424
|
bitType,
|
|
22990
23425
|
ConfigKey.property_tocResource,
|
|
@@ -22998,6 +23433,81 @@ var Builder = class extends BaseBuilder {
|
|
|
22998
23433
|
options
|
|
22999
23434
|
),
|
|
23000
23435
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
23436
|
+
platformName: this.toAstProperty(
|
|
23437
|
+
bitType,
|
|
23438
|
+
ConfigKey.property_platformName,
|
|
23439
|
+
data.platformName,
|
|
23440
|
+
options
|
|
23441
|
+
),
|
|
23442
|
+
platformIcon: this.toImageResource(context, data.platformIcon),
|
|
23443
|
+
platformLogo: this.toImageResource(context, data.platformLogo),
|
|
23444
|
+
platformPrimaryColor: this.toAstProperty(
|
|
23445
|
+
bitType,
|
|
23446
|
+
ConfigKey.property_platformPrimaryColor,
|
|
23447
|
+
data.platformPrimaryColor,
|
|
23448
|
+
options
|
|
23449
|
+
),
|
|
23450
|
+
platformSecondaryColor: this.toAstProperty(
|
|
23451
|
+
bitType,
|
|
23452
|
+
ConfigKey.property_platformSecondaryColor,
|
|
23453
|
+
data.platformSecondaryColor,
|
|
23454
|
+
options
|
|
23455
|
+
),
|
|
23456
|
+
platformBackgroundColor: this.toAstProperty(
|
|
23457
|
+
bitType,
|
|
23458
|
+
ConfigKey.property_platformBackgroundColor,
|
|
23459
|
+
data.platformBackgroundColor,
|
|
23460
|
+
options
|
|
23461
|
+
),
|
|
23462
|
+
platformScrollbarColor: this.toAstProperty(
|
|
23463
|
+
bitType,
|
|
23464
|
+
ConfigKey.property_platformScrollbarColor,
|
|
23465
|
+
data.platformScrollbarColor,
|
|
23466
|
+
options
|
|
23467
|
+
),
|
|
23468
|
+
platformSelectionColor: this.toAstProperty(
|
|
23469
|
+
bitType,
|
|
23470
|
+
ConfigKey.property_platformSelectionColor,
|
|
23471
|
+
data.platformSelectionColor,
|
|
23472
|
+
options
|
|
23473
|
+
),
|
|
23474
|
+
platformSeparatorColor: this.toAstProperty(
|
|
23475
|
+
bitType,
|
|
23476
|
+
ConfigKey.property_platformSeparatorColor,
|
|
23477
|
+
data.platformSeparatorColor,
|
|
23478
|
+
options
|
|
23479
|
+
),
|
|
23480
|
+
platformPlaceholderColor: this.toAstProperty(
|
|
23481
|
+
bitType,
|
|
23482
|
+
ConfigKey.property_platformPlaceholderColor,
|
|
23483
|
+
data.platformPlaceholderColor,
|
|
23484
|
+
options
|
|
23485
|
+
),
|
|
23486
|
+
platformTextSelectionColor: this.toAstProperty(
|
|
23487
|
+
bitType,
|
|
23488
|
+
ConfigKey.property_platformTextSelectionColor,
|
|
23489
|
+
data.platformTextSelectionColor,
|
|
23490
|
+
options
|
|
23491
|
+
),
|
|
23492
|
+
platformButtonPrimaryColor: this.toAstProperty(
|
|
23493
|
+
bitType,
|
|
23494
|
+
ConfigKey.property_platformButtonPrimaryColor,
|
|
23495
|
+
data.platformButtonPrimaryColor,
|
|
23496
|
+
options
|
|
23497
|
+
),
|
|
23498
|
+
platformButtonBackgroundColor: this.toAstProperty(
|
|
23499
|
+
bitType,
|
|
23500
|
+
ConfigKey.property_platformButtonBackgroundColor,
|
|
23501
|
+
data.platformButtonBackgroundColor,
|
|
23502
|
+
options
|
|
23503
|
+
),
|
|
23504
|
+
platformMessageBackgroundColor: this.toAstProperty(
|
|
23505
|
+
bitType,
|
|
23506
|
+
ConfigKey.property_platformMessageBackgroundColor,
|
|
23507
|
+
data.platformMessageBackgroundColor,
|
|
23508
|
+
options
|
|
23509
|
+
),
|
|
23510
|
+
platformBackgroundImage: this.toImageResource(context, data.platformBackgroundImage),
|
|
23001
23511
|
productId: this.toAstProperty(bitType, ConfigKey.property_productId, data.productId, options),
|
|
23002
23512
|
product: this.toAstProperty(bitType, ConfigKey.property_product, data.product, options),
|
|
23003
23513
|
// productList: this.toAstProperty(
|
|
@@ -23069,7 +23579,6 @@ var Builder = class extends BaseBuilder {
|
|
|
23069
23579
|
item: this.handleJsonText(context, TextLocation2.tag, data.item),
|
|
23070
23580
|
lead: this.handleJsonText(context, TextLocation2.tag, data.lead),
|
|
23071
23581
|
pageNumber: this.handleJsonText(context, TextLocation2.tag, data.pageNumber),
|
|
23072
|
-
sourcePageNumber: this.handleJsonText(context, TextLocation2.tag, data.sourcePageNumber),
|
|
23073
23582
|
marginNumber: this.handleJsonText(context, TextLocation2.tag, data.marginNumber),
|
|
23074
23583
|
hint: this.handleJsonText(context, TextLocation2.tag, data.hint),
|
|
23075
23584
|
instruction: this.handleJsonText(context, TextLocation2.tag, data.instruction),
|
|
@@ -23172,15 +23681,7 @@ var Builder = class extends BaseBuilder {
|
|
|
23172
23681
|
objectUtils.removeUnwantedProperties(node, {
|
|
23173
23682
|
ignoreAllFalse: true,
|
|
23174
23683
|
ignoreUndefined: ["example"],
|
|
23175
|
-
ignoreEmptyArrays: [
|
|
23176
|
-
"item",
|
|
23177
|
-
"lead",
|
|
23178
|
-
"pageNumber",
|
|
23179
|
-
"sourcePageNumber",
|
|
23180
|
-
"marginNumber",
|
|
23181
|
-
"hint",
|
|
23182
|
-
"instruction"
|
|
23183
|
-
]
|
|
23684
|
+
ignoreEmptyArrays: ["item", "lead", "pageNumber", "marginNumber", "hint", "instruction"]
|
|
23184
23685
|
});
|
|
23185
23686
|
return nodeValidator.validateBit(node);
|
|
23186
23687
|
}
|
|
@@ -25493,7 +25994,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
25493
25994
|
if (this.isEmptyText(item)) return false;
|
|
25494
25995
|
if (!this.isEmptyText(parent?.value?.lead)) return true;
|
|
25495
25996
|
if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
|
|
25496
|
-
if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
|
|
25497
25997
|
if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
|
|
25498
25998
|
this.writeNL_IfNotChain(route);
|
|
25499
25999
|
this.writeOPC();
|
|
@@ -25507,7 +26007,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
25507
26007
|
const parent = this.getParentNode(route);
|
|
25508
26008
|
if (this.isEmptyText(lead)) return false;
|
|
25509
26009
|
if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
|
|
25510
|
-
if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
|
|
25511
26010
|
if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
|
|
25512
26011
|
this.writeNL_IfNotChain(route);
|
|
25513
26012
|
this.writeOPC();
|
|
@@ -25523,7 +26022,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
25523
26022
|
const pageNumber = node.value;
|
|
25524
26023
|
const parent = this.getParentNode(route);
|
|
25525
26024
|
if (this.isEmptyText(pageNumber)) return false;
|
|
25526
|
-
if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
|
|
25527
26025
|
if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
|
|
25528
26026
|
this.writeNL_IfNotChain(route);
|
|
25529
26027
|
this.writeOPC();
|
|
@@ -25537,31 +26035,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
25537
26035
|
this.writeCL();
|
|
25538
26036
|
return true;
|
|
25539
26037
|
}
|
|
25540
|
-
// bitmarkAst -> bits -> bitsValue -> sourcePageNumber
|
|
25541
|
-
enter_sourcePageNumber(node, route) {
|
|
25542
|
-
const sourcePageNumber = node.value;
|
|
25543
|
-
const parent = this.getParentNode(route);
|
|
25544
|
-
if (this.isEmptyText(sourcePageNumber)) return false;
|
|
25545
|
-
if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
|
|
25546
|
-
this.writeNL_IfNotChain(route);
|
|
25547
|
-
this.writeOPC();
|
|
25548
|
-
this.writeTextOrValue(parent?.value?.item ?? "", TextFormat2.bitmarkText, TextLocation2.tag);
|
|
25549
|
-
this.writeCL();
|
|
25550
|
-
this.writeOPC();
|
|
25551
|
-
this.writeTextOrValue(parent?.value?.lead ?? "", TextFormat2.bitmarkText, TextLocation2.tag);
|
|
25552
|
-
this.writeCL();
|
|
25553
|
-
this.writeOPC();
|
|
25554
|
-
this.writeTextOrValue(
|
|
25555
|
-
parent?.value?.pageNumber ?? "",
|
|
25556
|
-
TextFormat2.bitmarkText,
|
|
25557
|
-
TextLocation2.tag
|
|
25558
|
-
);
|
|
25559
|
-
this.writeCL();
|
|
25560
|
-
this.writeOPC();
|
|
25561
|
-
this.writeTextOrValue(sourcePageNumber ?? "", TextFormat2.bitmarkText, TextLocation2.tag);
|
|
25562
|
-
this.writeCL();
|
|
25563
|
-
return true;
|
|
25564
|
-
}
|
|
25565
26038
|
// bitmarkAst -> bits -> bitsValue -> marginNumber
|
|
25566
26039
|
enter_marginNumber(node, route) {
|
|
25567
26040
|
const marginNumber = node.value;
|
|
@@ -25582,13 +26055,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
25582
26055
|
);
|
|
25583
26056
|
this.writeCL();
|
|
25584
26057
|
this.writeOPC();
|
|
25585
|
-
this.writeTextOrValue(
|
|
25586
|
-
parent?.value?.sourcePageNumber ?? "",
|
|
25587
|
-
TextFormat2.bitmarkText,
|
|
25588
|
-
TextLocation2.tag
|
|
25589
|
-
);
|
|
25590
|
-
this.writeCL();
|
|
25591
|
-
this.writeOPC();
|
|
25592
26058
|
this.writeTextOrValue(marginNumber, TextFormat2.bitmarkText, TextLocation2.tag);
|
|
25593
26059
|
this.writeCL();
|
|
25594
26060
|
return true;
|
|
@@ -26143,6 +26609,27 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
26143
26609
|
this.writePropertyStyleResource(node.key, resource);
|
|
26144
26610
|
return true;
|
|
26145
26611
|
}
|
|
26612
|
+
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
26613
|
+
enter_platformIcon(node, _route) {
|
|
26614
|
+
const resource = node.value;
|
|
26615
|
+
this.writeNL();
|
|
26616
|
+
this.writePropertyStyleResource(node.key, resource);
|
|
26617
|
+
return true;
|
|
26618
|
+
}
|
|
26619
|
+
// bitmarkAst -> bits -> bitsValue -> platformLogo
|
|
26620
|
+
enter_platformLogo(node, _route) {
|
|
26621
|
+
const resource = node.value;
|
|
26622
|
+
this.writeNL();
|
|
26623
|
+
this.writePropertyStyleResource(node.key, resource);
|
|
26624
|
+
return true;
|
|
26625
|
+
}
|
|
26626
|
+
// bitmarkAst -> bits -> bitsValue -> platformBackgroundImage
|
|
26627
|
+
enter_platformBackgroundImage(node, _route) {
|
|
26628
|
+
const resource = node.value;
|
|
26629
|
+
this.writeNL();
|
|
26630
|
+
this.writePropertyStyleResource(node.key, resource);
|
|
26631
|
+
return true;
|
|
26632
|
+
}
|
|
26146
26633
|
exit_imagePlaceholder(_node, _route) {
|
|
26147
26634
|
}
|
|
26148
26635
|
// bitmarkAst -> bits -> bitsValue -> posterImage
|
|
@@ -27413,10 +27900,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
27413
27900
|
enter_pageNumber(node, route) {
|
|
27414
27901
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
27415
27902
|
}
|
|
27416
|
-
// bitmarkAst -> bits -> bitsValue -> sourcePageNumber
|
|
27417
|
-
enter_sourcePageNumber(node, route) {
|
|
27418
|
-
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
27419
|
-
}
|
|
27420
27903
|
// bitmarkAst -> bits -> bitsValue -> marginNumber
|
|
27421
27904
|
enter_marginNumber(node, route) {
|
|
27422
27905
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
|
|
@@ -27703,6 +28186,18 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
27703
28186
|
enter_imagePlaceholder(node, route) {
|
|
27704
28187
|
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
27705
28188
|
}
|
|
28189
|
+
// bitmarkAst -> bits -> bitsValue -> platformIcon
|
|
28190
|
+
enter_platformIcon(node, route) {
|
|
28191
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28192
|
+
}
|
|
28193
|
+
// bitmarkAst -> bits -> bitsValue -> platformLogo
|
|
28194
|
+
enter_platformLogo(node, route) {
|
|
28195
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28196
|
+
}
|
|
28197
|
+
// bitmarkAst -> bits -> bitsValue -> platformBackgroundImage
|
|
28198
|
+
enter_platformBackgroundImage(node, route) {
|
|
28199
|
+
return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
|
|
28200
|
+
}
|
|
27706
28201
|
// bitmarkAst -> bits -> bitsValue -> resources
|
|
27707
28202
|
enter_resources(node, route) {
|
|
27708
28203
|
const resources = node.value;
|
|
@@ -28139,7 +28634,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28139
28634
|
delete bitJson.item;
|
|
28140
28635
|
delete bitJson.lead;
|
|
28141
28636
|
delete bitJson.pageNumber;
|
|
28142
|
-
delete bitJson.sourcePageNumber;
|
|
28143
28637
|
delete bitJson.marginNumber;
|
|
28144
28638
|
delete bitJson.hint;
|
|
28145
28639
|
delete bitJson.instruction;
|
|
@@ -28151,8 +28645,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28151
28645
|
if (bitJson.lead == null || bitJson.lead?.length === 0) delete bitJson.lead;
|
|
28152
28646
|
if (bitJson.pageNumber == null || bitJson.pageNumber?.length === 0)
|
|
28153
28647
|
delete bitJson.pageNumber;
|
|
28154
|
-
if (bitJson.sourcePageNumber == null || bitJson.sourcePageNumber?.length === 0)
|
|
28155
|
-
delete bitJson.sourcePageNumber;
|
|
28156
28648
|
if (bitJson.marginNumber == null || bitJson.marginNumber?.length === 0)
|
|
28157
28649
|
delete bitJson.marginNumber;
|
|
28158
28650
|
if (bitJson.hint == null || bitJson.hint?.length === 0) delete bitJson.hint;
|
|
@@ -28164,7 +28656,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
28164
28656
|
if (bitJson.hint == null) bitJson.hint = this.textDefault;
|
|
28165
28657
|
if (bitJson.instruction == null) bitJson.instruction = this.textDefault;
|
|
28166
28658
|
if (bitJson.pageNumber == null) bitJson.pageNumber = this.textDefault;
|
|
28167
|
-
if (bitJson.sourcePageNumber == null) bitJson.sourcePageNumber = this.textDefault;
|
|
28168
28659
|
if (bitJson.marginNumber == null) bitJson.marginNumber = this.textDefault;
|
|
28169
28660
|
}
|
|
28170
28661
|
if (bitJson.body == null) bitJson.body = this.bodyDefault;
|
|
@@ -29619,7 +30110,7 @@ var BitmarkPegParserValidator = class {
|
|
|
29619
30110
|
let tagData = validTypeKeys.get(validTypeKey);
|
|
29620
30111
|
if (!tagData && typeKey === TypeKey.Property) {
|
|
29621
30112
|
const resourceKey = key.replace(/^@/, "&");
|
|
29622
|
-
if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder) {
|
|
30113
|
+
if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder || resourceKey === ConfigKey.resource_platformIcon || resourceKey === ConfigKey.resource_platformLogo || resourceKey === ConfigKey.resource_platformBackgroundImage) {
|
|
29623
30114
|
tagData = validTypeKeys.get(resourceKey);
|
|
29624
30115
|
if (tagData) {
|
|
29625
30116
|
typeKey = TypeKey.Resource;
|
|
@@ -31896,7 +32387,7 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
|
|
|
31896
32387
|
...tags2
|
|
31897
32388
|
});
|
|
31898
32389
|
if (resource) {
|
|
31899
|
-
if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder) {
|
|
32390
|
+
if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder || configKey === ConfigKey.resource_platformIcon || configKey === ConfigKey.resource_platformLogo || configKey === ConfigKey.resource_platformBackgroundImage) {
|
|
31900
32391
|
if (target.propertyStyleResources) target.propertyStyleResources[resourceType] = resource;
|
|
31901
32392
|
} else {
|
|
31902
32393
|
resources.push(resource);
|
|
@@ -32604,8 +33095,7 @@ var BitmarkPegParserProcessor = class {
|
|
|
32604
33095
|
if (l > 0) result.item = result.itemLead[0];
|
|
32605
33096
|
if (l > 1) result.lead = result.itemLead[1];
|
|
32606
33097
|
if (l > 2) result.pageNumber = result.itemLead[2];
|
|
32607
|
-
if (l > 3) result.
|
|
32608
|
-
if (l > 4) result.marginNumber = result.itemLead[l - 1];
|
|
33098
|
+
if (l > 3) result.marginNumber = result.itemLead[l - 1];
|
|
32609
33099
|
}
|
|
32610
33100
|
if (inBit) {
|
|
32611
33101
|
result.body = instance11.process(
|