@gmb/bitmark-parser-generator 4.12.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/index.cjs CHANGED
@@ -175,6 +175,7 @@ var BitType = (0, import_superenum.superenum)({
175
175
  botActionSend: "bot-action-send",
176
176
  botActionTrueFalse: "bot-action-true-false",
177
177
  botInterview: "bot-interview",
178
+ brandColor: "brand-color",
178
179
  browserImage: "browser-image",
179
180
  bug: "bug",
180
181
  bugAlt: "bug-alt",
@@ -489,7 +490,18 @@ var BitType = (0, import_superenum.superenum)({
489
490
  pageSubscribe: "page-subscribe",
490
491
  parameters: "parameters",
491
492
  photo: "photo",
493
+ platform: "platform",
494
+ platformHeader: "platform-header",
495
+ platformMain: "platform-main",
496
+ platformMainButton: "platform-main-button",
497
+ platformMainInput: "platform-main-input",
492
498
  platformPath: "platform-path",
499
+ platformSection: "platform-section",
500
+ platformSectionButton: "platform-section-button",
501
+ platformSectionChat: "platform-section-chat",
502
+ platformSectionHeader: "platform-section-header",
503
+ platformSectionInput: "platform-section-input",
504
+ platformSystemIcon: "platform-system-icon",
493
505
  preparationNote: "preparation-note",
494
506
  pronunciationTable: "pronunciation-table",
495
507
  prototypeImages: "prototype-images",
@@ -1116,6 +1128,7 @@ var groupKeys = {
1116
1128
  group_bookCommon: "group_bookCommon",
1117
1129
  group_learningPathCommon: "group_learningPathCommon",
1118
1130
  group_advertisingCommon: "group_advertisingCommon",
1131
+ group_platformColorsCommon: "group_platformColorsCommon",
1119
1132
  group_quizCommon: "group_quizCommon",
1120
1133
  group_resourceBitTags: "group_resourceBitTags",
1121
1134
  group_resourceCommon: "group_resourceCommon",
@@ -1170,6 +1183,8 @@ var propertyKeys = {
1170
1183
  property_author: "@author",
1171
1184
  property_autoplay: "@autoplay",
1172
1185
  property_availableClassifications: "@availableClassifications",
1186
+ property_brandColor: "@brandColor",
1187
+ property_brandColorName: "@brandColorName",
1173
1188
  property_blockId: "@blockId",
1174
1189
  property_book: "@book",
1175
1190
  property_bookAlias: "@bookAlias",
@@ -1236,6 +1251,7 @@ var propertyKeys = {
1236
1251
  property_imageSource: "@imageSource",
1237
1252
  property_index: "@index",
1238
1253
  property_internalComment: "@internalComment",
1254
+ property_internalPrintPdf: "@internalPrintPdf",
1239
1255
  property_isCaseSensitive: "@isCaseSensitive",
1240
1256
  property_isInfoOnly: "@isInfoOnly",
1241
1257
  property_isPublic: "@isPublic",
@@ -1276,6 +1292,18 @@ var propertyKeys = {
1276
1292
  property_partner: "@partner",
1277
1293
  // Deprecated, replaced by person
1278
1294
  property_path: "@path",
1295
+ property_platformBackgroundColor: "@platformBackgroundColor",
1296
+ property_platformButtonBackgroundColor: "@platformButtonBackgroundColor",
1297
+ property_platformButtonPrimaryColor: "@platformButtonPrimaryColor",
1298
+ property_platformMessageBackgroundColor: "@platformMessageBackgroundColor",
1299
+ property_platformName: "@platformName",
1300
+ property_platformPlaceholderColor: "@platformPlaceholderColor",
1301
+ property_platformPrimaryColor: "@platformPrimaryColor",
1302
+ property_platformScrollbarColor: "@platformScrollbarColor",
1303
+ property_platformSecondaryColor: "@platformSecondaryColor",
1304
+ property_platformSelectionColor: "@platformSelectionColor",
1305
+ property_platformSeparatorColor: "@platformSeparatorColor",
1306
+ property_platformTextSelectionColor: "@platformTextSelectionColor",
1279
1307
  property_person: "@person",
1280
1308
  property_pointerLeft: "@pointerLeft",
1281
1309
  property_pointerTop: "@pointerTop",
@@ -1325,6 +1353,7 @@ var propertyKeys = {
1325
1353
  property_size: "@size",
1326
1354
  property_slug: "@slug",
1327
1355
  property_sourceDocument: "@sourceDocument",
1356
+ property_sourceRL: "@sourceRL",
1328
1357
  property_spaceId: "@spaceId",
1329
1358
  property_src1x: "@src1x",
1330
1359
  property_src2x: "@src2x",
@@ -1399,6 +1428,9 @@ var resourceKeys = {
1399
1428
  resource_appLink: "&appLink",
1400
1429
  resource_websiteLink: "&websiteLink",
1401
1430
  resource_icon: "&icon",
1431
+ resource_platformBackgroundImage: "&platformBackgroundImage",
1432
+ resource_platformIcon: "&platformIcon",
1433
+ resource_platformLogo: "&platformLogo",
1402
1434
  resource_backgroundWallpaper: "&backgroundWallpaper",
1403
1435
  resource_imagePlaceholder: "&imagePlaceholder"
1404
1436
  };
@@ -1625,7 +1657,10 @@ var ResourceType = (0, import_superenum13.superenum)({
1625
1657
  // Aliases for image
1626
1658
  icon: "icon",
1627
1659
  backgroundWallpaper: "backgroundWallpaper",
1628
- imagePlaceholder: "imagePlaceholder"
1660
+ imagePlaceholder: "imagePlaceholder",
1661
+ platformIcon: "platformIcon",
1662
+ platformLogo: "platformLogo",
1663
+ platformBackgroundImage: "platformBackgroundImage"
1629
1664
  });
1630
1665
  function resourceTypeToConfigKey(type) {
1631
1666
  return `&${stringUtils.kebabToCamel(type)}`;
@@ -2640,6 +2675,11 @@ var GROUPS = {
2640
2675
  format: TagFormat.plainText,
2641
2676
  maxCount: Count.infinity
2642
2677
  },
2678
+ {
2679
+ key: ConfigKey.property_sourceRL,
2680
+ description: "The original location of the information in the original source material",
2681
+ format: TagFormat.plainText
2682
+ },
2643
2683
  {
2644
2684
  key: ConfigKey.property_isTemplate,
2645
2685
  description: "If true, the bit is a template",
@@ -3286,6 +3326,11 @@ var GROUPS = {
3286
3326
  key: ConfigKey.property_sourceDocument,
3287
3327
  description: "Url of the source document for the book (for example, a PDF file)",
3288
3328
  format: TagFormat.plainText
3329
+ },
3330
+ {
3331
+ key: ConfigKey.property_internalPrintPdf,
3332
+ description: "Url of the internal print PDF for the book",
3333
+ format: TagFormat.plainText
3289
3334
  }
3290
3335
  ]
3291
3336
  },
@@ -3375,6 +3420,67 @@ var GROUPS = {
3375
3420
  }
3376
3421
  ]
3377
3422
  },
3423
+ [ConfigKey.group_platformColorsCommon]: {
3424
+ type: GroupConfigType.standard,
3425
+ description: "Common platform colors",
3426
+ tags: [
3427
+ {
3428
+ key: ConfigKey.property_platformPrimaryColor,
3429
+ description: "The platform system primary color",
3430
+ format: TagFormat.plainText
3431
+ },
3432
+ {
3433
+ key: ConfigKey.property_platformSecondaryColor,
3434
+ description: "The platform section secondary color",
3435
+ format: TagFormat.plainText
3436
+ },
3437
+ {
3438
+ key: ConfigKey.property_platformBackgroundColor,
3439
+ description: "The platform system background color",
3440
+ format: TagFormat.plainText
3441
+ },
3442
+ {
3443
+ key: ConfigKey.property_platformButtonPrimaryColor,
3444
+ description: "The platform section header button primary color",
3445
+ format: TagFormat.plainText
3446
+ },
3447
+ {
3448
+ key: ConfigKey.property_platformButtonBackgroundColor,
3449
+ description: "The platform section header button background color",
3450
+ format: TagFormat.plainText
3451
+ },
3452
+ {
3453
+ key: ConfigKey.property_platformScrollbarColor,
3454
+ description: "The platform main scrollbar color",
3455
+ format: TagFormat.plainText
3456
+ },
3457
+ {
3458
+ key: ConfigKey.property_platformSelectionColor,
3459
+ description: "The platform main selection color",
3460
+ format: TagFormat.plainText
3461
+ },
3462
+ {
3463
+ key: ConfigKey.property_platformTextSelectionColor,
3464
+ description: "The platform main input text selection color",
3465
+ format: TagFormat.plainText
3466
+ },
3467
+ {
3468
+ key: ConfigKey.property_platformSeparatorColor,
3469
+ description: "The platform main separator color",
3470
+ format: TagFormat.plainText
3471
+ },
3472
+ {
3473
+ key: ConfigKey.property_platformPlaceholderColor,
3474
+ description: "The platform main input placeholder color",
3475
+ format: TagFormat.plainText
3476
+ },
3477
+ {
3478
+ key: ConfigKey.property_platformMessageBackgroundColor,
3479
+ description: "The platform section chat message background color",
3480
+ format: TagFormat.plainText
3481
+ }
3482
+ ]
3483
+ },
3378
3484
  [ConfigKey.group_quizCommon]: {
3379
3485
  type: GroupConfigType.standard,
3380
3486
  description: "Common quiz tags",
@@ -7176,6 +7282,23 @@ var BITS = {
7176
7282
  baseBitType: BitType.interview,
7177
7283
  description: "Bot interview bit, used to create bot interviews in articles or books"
7178
7284
  },
7285
+ [BitType.brandColor]: {
7286
+ since: "4.12.0",
7287
+ baseBitType: BitType._standard,
7288
+ description: "Brand color bit, used to define brand colors",
7289
+ tags: [
7290
+ {
7291
+ key: ConfigKey.property_brandColor,
7292
+ description: "The brand color",
7293
+ format: TagFormat.plainText
7294
+ },
7295
+ {
7296
+ key: ConfigKey.property_brandColorName,
7297
+ description: "The brand color name",
7298
+ format: TagFormat.plainText
7299
+ }
7300
+ ]
7301
+ },
7179
7302
  [BitType.learningPathBook]: {
7180
7303
  since: "1.3.0",
7181
7304
  baseBitType: BitType._standard,
@@ -7934,6 +8057,160 @@ var BITS = {
7934
8057
  baseBitType: BitType.image,
7935
8058
  description: "Photo bit, used to create photo bits in articles or books"
7936
8059
  },
8060
+ [BitType.platform]: {
8061
+ since: "4.12.0",
8062
+ baseBitType: BitType._standard,
8063
+ description: "Platform bit, used to define platform properties",
8064
+ tags: [
8065
+ {
8066
+ key: ConfigKey.property_platformName,
8067
+ description: "The platform name",
8068
+ format: TagFormat.plainText
8069
+ },
8070
+ {
8071
+ key: ConfigKey.resource_platformIcon,
8072
+ description: "The platform icon",
8073
+ chain: [
8074
+ {
8075
+ key: ConfigKey.group_resourceImageCommon,
8076
+ description: "Common image properties for the platform icon resource"
8077
+ }
8078
+ ],
8079
+ maxCount: 1
8080
+ }
8081
+ ]
8082
+ },
8083
+ [BitType.platformHeader]: {
8084
+ since: "4.12.0",
8085
+ baseBitType: BitType._standard,
8086
+ description: "Platform header bit, used to define platform header properties",
8087
+ tags: [
8088
+ {
8089
+ key: ConfigKey.resource_platformLogo,
8090
+ description: "The platform logo",
8091
+ chain: [
8092
+ {
8093
+ key: ConfigKey.group_resourceImageCommon,
8094
+ description: "Common image properties for the platform logo resource"
8095
+ }
8096
+ ],
8097
+ maxCount: 1
8098
+ },
8099
+ {
8100
+ key: ConfigKey.group_platformColorsCommon,
8101
+ description: "Common platform colors"
8102
+ }
8103
+ ]
8104
+ },
8105
+ [BitType.platformMain]: {
8106
+ since: "4.12.0",
8107
+ baseBitType: BitType._standard,
8108
+ description: "Platform main bit, used to define platform main properties",
8109
+ tags: [
8110
+ {
8111
+ key: ConfigKey.group_platformColorsCommon,
8112
+ description: "Common platform colors"
8113
+ }
8114
+ ]
8115
+ },
8116
+ [BitType.platformMainButton]: {
8117
+ since: "4.12.0",
8118
+ baseBitType: BitType._standard,
8119
+ description: "Platform main button bit, used to define platform main button properties",
8120
+ tags: [
8121
+ {
8122
+ key: ConfigKey.group_platformColorsCommon,
8123
+ description: "Common platform colors"
8124
+ }
8125
+ ]
8126
+ },
8127
+ [BitType.platformMainInput]: {
8128
+ since: "4.12.0",
8129
+ baseBitType: BitType._standard,
8130
+ description: "Platform main input bit, used to define platform main input properties",
8131
+ tags: [
8132
+ {
8133
+ key: ConfigKey.group_platformColorsCommon,
8134
+ description: "Common platform colors"
8135
+ }
8136
+ ]
8137
+ },
8138
+ [BitType.platformSection]: {
8139
+ since: "4.12.0",
8140
+ baseBitType: BitType._standard,
8141
+ description: "Platform section bit, used to define platform section properties",
8142
+ tags: [
8143
+ {
8144
+ key: ConfigKey.group_platformColorsCommon,
8145
+ description: "Common platform colors"
8146
+ }
8147
+ ]
8148
+ },
8149
+ [BitType.platformSectionButton]: {
8150
+ since: "4.12.0",
8151
+ baseBitType: BitType._standard,
8152
+ description: "Platform section button bit, used to define platform section button properties",
8153
+ tags: [
8154
+ {
8155
+ key: ConfigKey.group_platformColorsCommon,
8156
+ description: "Common platform colors"
8157
+ }
8158
+ ]
8159
+ },
8160
+ [BitType.platformSectionChat]: {
8161
+ since: "4.12.0",
8162
+ baseBitType: BitType._standard,
8163
+ description: "Platform section chat bit, used to define platform section chat properties",
8164
+ tags: [
8165
+ {
8166
+ key: ConfigKey.group_platformColorsCommon,
8167
+ description: "Common platform colors"
8168
+ },
8169
+ {
8170
+ key: ConfigKey.resource_platformBackgroundImage,
8171
+ description: "The platform section chat background image",
8172
+ chain: [
8173
+ {
8174
+ key: ConfigKey.group_resourceImageCommon,
8175
+ description: "Common image properties for the platform background image resource"
8176
+ }
8177
+ ]
8178
+ }
8179
+ ]
8180
+ },
8181
+ [BitType.platformSectionHeader]: {
8182
+ since: "4.12.0",
8183
+ baseBitType: BitType._standard,
8184
+ description: "Platform section header bit, used to define platform section header properties",
8185
+ tags: [
8186
+ {
8187
+ key: ConfigKey.group_platformColorsCommon,
8188
+ description: "Common platform colors"
8189
+ }
8190
+ ]
8191
+ },
8192
+ [BitType.platformSectionInput]: {
8193
+ since: "4.12.0",
8194
+ baseBitType: BitType._standard,
8195
+ description: "Platform section input bit, used to define platform section input properties",
8196
+ tags: [
8197
+ {
8198
+ key: ConfigKey.group_platformColorsCommon,
8199
+ description: "Common platform colors"
8200
+ }
8201
+ ]
8202
+ },
8203
+ [BitType.platformSystemIcon]: {
8204
+ since: "4.12.0",
8205
+ baseBitType: BitType._standard,
8206
+ description: "Platform system icon bit, used to define platform system icon properties",
8207
+ tags: [
8208
+ {
8209
+ key: ConfigKey.group_platformColorsCommon,
8210
+ description: "Common platform colors"
8211
+ }
8212
+ ]
8213
+ },
7937
8214
  [BitType.quote]: {
7938
8215
  since: "1.3.0",
7939
8216
  baseBitType: BitType._standard,
@@ -9282,7 +9559,7 @@ var instance2 = new Config();
9282
9559
  // src/generated/package_info.ts
9283
9560
  var PACKAGE_INFO = {
9284
9561
  "name": "@gmb/bitmark-parser-generator",
9285
- "version": "4.12.0",
9562
+ "version": "4.13.0",
9286
9563
  "author": "Get More Brain Ltd",
9287
9564
  "license": "ISC",
9288
9565
  "description": "A bitmark parser and generator using Peggy.js"
@@ -9627,6 +9904,10 @@ var NodeType = (0, import_superenum20.superenum)({
9627
9904
  advertisingClickUrl: "advertisingClickUrl",
9628
9905
  advertisingClickUrlValue: "advertisingClickUrlValue",
9629
9906
  ageRange: "ageRange",
9907
+ brandColor: "brandColor",
9908
+ brandColorValue: "brandColorValue",
9909
+ brandColorName: "brandColorName",
9910
+ brandColorNameValue: "brandColorNameValue",
9630
9911
  ageRangeValue: "ageRangeValue",
9631
9912
  aiGenerated: "aiGenerated",
9632
9913
  aiGeneratedValue: "aiGeneratedValue",
@@ -9857,6 +10138,8 @@ var NodeType = (0, import_superenum20.superenum)({
9857
10138
  instruction: "instruction",
9858
10139
  internalComment: "internalComment",
9859
10140
  internalCommentValue: "internalCommentValue",
10141
+ internalPrintPdf: "internalPrintPdf",
10142
+ internalPrintPdfValue: "internalPrintPdfValue",
9860
10143
  isCaseSensitive: "isCaseSensitive",
9861
10144
  isCommented: "isCommented",
9862
10145
  isCorrect: "isCorrect",
@@ -9959,6 +10242,36 @@ var NodeType = (0, import_superenum20.superenum)({
9959
10242
  partialAnswerValue: "partialAnswerValue",
9960
10243
  path: "path",
9961
10244
  pathValue: "pathValue",
10245
+ platformName: "platformName",
10246
+ platformNameValue: "platformNameValue",
10247
+ platformIcon: "platformIcon",
10248
+ platformIconValue: "platformIconValue",
10249
+ platformLogo: "platformLogo",
10250
+ platformLogoValue: "platformLogoValue",
10251
+ platformPrimaryColor: "platformPrimaryColor",
10252
+ platformPrimaryColorValue: "platformPrimaryColorValue",
10253
+ platformSecondaryColor: "platformSecondaryColor",
10254
+ platformSecondaryColorValue: "platformSecondaryColorValue",
10255
+ platformBackgroundColor: "platformBackgroundColor",
10256
+ platformBackgroundColorValue: "platformBackgroundColorValue",
10257
+ platformScrollbarColor: "platformScrollbarColor",
10258
+ platformScrollbarColorValue: "platformScrollbarColorValue",
10259
+ platformSelectionColor: "platformSelectionColor",
10260
+ platformSelectionColorValue: "platformSelectionColorValue",
10261
+ platformSeparatorColor: "platformSeparatorColor",
10262
+ platformSeparatorColorValue: "platformSeparatorColorValue",
10263
+ platformPlaceholderColor: "platformPlaceholderColor",
10264
+ platformPlaceholderColorValue: "platformPlaceholderColorValue",
10265
+ platformTextSelectionColor: "platformTextSelectionColor",
10266
+ platformTextSelectionColorValue: "platformTextSelectionColorValue",
10267
+ platformButtonPrimaryColor: "platformButtonPrimaryColor",
10268
+ platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
10269
+ platformButtonBackgroundColor: "platformButtonBackgroundColor",
10270
+ platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
10271
+ platformMessageBackgroundColor: "platformMessageBackgroundColor",
10272
+ platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
10273
+ platformBackgroundImage: "platformBackgroundImage",
10274
+ platformBackgroundImageValue: "platformBackgroundImageValue",
9962
10275
  person: "person",
9963
10276
  pointerLeft: "pointerLeft",
9964
10277
  pointerLeftValue: "pointerLeftValue",
@@ -10077,7 +10390,8 @@ var NodeType = (0, import_superenum20.superenum)({
10077
10390
  solutionsValue: "solutionsValue",
10078
10391
  sourceDocument: "sourceDocument",
10079
10392
  sourceDocumentValue: "sourceDocumentValue",
10080
- sourcePageNumber: "sourcePageNumber",
10393
+ sourceRL: "sourceRL",
10394
+ sourceRLValue: "sourceRLValue",
10081
10395
  spaceId: "spaceId",
10082
10396
  spaceIdValue: "spaceIdValue",
10083
10397
  src: "src",
@@ -21476,6 +21790,9 @@ var ResourceBuilder = class extends BaseBuilder {
21476
21790
  case ResourceType.backgroundWallpaper:
21477
21791
  case ResourceType.imagePlaceholder:
21478
21792
  case ResourceType.icon:
21793
+ case ResourceType.platformIcon:
21794
+ case ResourceType.platformLogo:
21795
+ case ResourceType.platformBackgroundImage:
21479
21796
  node = this.imageResource(context, finalData, type);
21480
21797
  break;
21481
21798
  // case ResourceType.imageResponsive: {
@@ -22512,6 +22829,7 @@ var Builder = class extends BaseBuilder {
22512
22829
  data.jupyterExecutionCount,
22513
22830
  options
22514
22831
  ),
22832
+ sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
22515
22833
  isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
22516
22834
  isTemplate: this.toAstProperty(
22517
22835
  bitType,
@@ -23035,6 +23353,18 @@ var Builder = class extends BaseBuilder {
23035
23353
  data.advertisingClickUrl,
23036
23354
  options
23037
23355
  ),
23356
+ brandColor: this.toAstProperty(
23357
+ bitType,
23358
+ ConfigKey.property_brandColor,
23359
+ data.brandColor,
23360
+ options
23361
+ ),
23362
+ brandColorName: this.toAstProperty(
23363
+ bitType,
23364
+ ConfigKey.property_brandColorName,
23365
+ data.brandColorName,
23366
+ options
23367
+ ),
23038
23368
  caption: this.handleJsonText(context, TextLocation.tag, data.caption),
23039
23369
  quotedPerson: this.toAstProperty(
23040
23370
  bitType,
@@ -23098,6 +23428,12 @@ var Builder = class extends BaseBuilder {
23098
23428
  data.sourceDocument,
23099
23429
  options
23100
23430
  ),
23431
+ internalPrintPdf: this.toAstProperty(
23432
+ bitType,
23433
+ ConfigKey.property_internalPrintPdf,
23434
+ data.internalPrintPdf,
23435
+ options
23436
+ ),
23101
23437
  tocResource: this.toAstProperty(
23102
23438
  bitType,
23103
23439
  ConfigKey.property_tocResource,
@@ -23111,6 +23447,81 @@ var Builder = class extends BaseBuilder {
23111
23447
  options
23112
23448
  ),
23113
23449
  page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
23450
+ platformName: this.toAstProperty(
23451
+ bitType,
23452
+ ConfigKey.property_platformName,
23453
+ data.platformName,
23454
+ options
23455
+ ),
23456
+ platformIcon: this.toImageResource(context, data.platformIcon),
23457
+ platformLogo: this.toImageResource(context, data.platformLogo),
23458
+ platformPrimaryColor: this.toAstProperty(
23459
+ bitType,
23460
+ ConfigKey.property_platformPrimaryColor,
23461
+ data.platformPrimaryColor,
23462
+ options
23463
+ ),
23464
+ platformSecondaryColor: this.toAstProperty(
23465
+ bitType,
23466
+ ConfigKey.property_platformSecondaryColor,
23467
+ data.platformSecondaryColor,
23468
+ options
23469
+ ),
23470
+ platformBackgroundColor: this.toAstProperty(
23471
+ bitType,
23472
+ ConfigKey.property_platformBackgroundColor,
23473
+ data.platformBackgroundColor,
23474
+ options
23475
+ ),
23476
+ platformScrollbarColor: this.toAstProperty(
23477
+ bitType,
23478
+ ConfigKey.property_platformScrollbarColor,
23479
+ data.platformScrollbarColor,
23480
+ options
23481
+ ),
23482
+ platformSelectionColor: this.toAstProperty(
23483
+ bitType,
23484
+ ConfigKey.property_platformSelectionColor,
23485
+ data.platformSelectionColor,
23486
+ options
23487
+ ),
23488
+ platformSeparatorColor: this.toAstProperty(
23489
+ bitType,
23490
+ ConfigKey.property_platformSeparatorColor,
23491
+ data.platformSeparatorColor,
23492
+ options
23493
+ ),
23494
+ platformPlaceholderColor: this.toAstProperty(
23495
+ bitType,
23496
+ ConfigKey.property_platformPlaceholderColor,
23497
+ data.platformPlaceholderColor,
23498
+ options
23499
+ ),
23500
+ platformTextSelectionColor: this.toAstProperty(
23501
+ bitType,
23502
+ ConfigKey.property_platformTextSelectionColor,
23503
+ data.platformTextSelectionColor,
23504
+ options
23505
+ ),
23506
+ platformButtonPrimaryColor: this.toAstProperty(
23507
+ bitType,
23508
+ ConfigKey.property_platformButtonPrimaryColor,
23509
+ data.platformButtonPrimaryColor,
23510
+ options
23511
+ ),
23512
+ platformButtonBackgroundColor: this.toAstProperty(
23513
+ bitType,
23514
+ ConfigKey.property_platformButtonBackgroundColor,
23515
+ data.platformButtonBackgroundColor,
23516
+ options
23517
+ ),
23518
+ platformMessageBackgroundColor: this.toAstProperty(
23519
+ bitType,
23520
+ ConfigKey.property_platformMessageBackgroundColor,
23521
+ data.platformMessageBackgroundColor,
23522
+ options
23523
+ ),
23524
+ platformBackgroundImage: this.toImageResource(context, data.platformBackgroundImage),
23114
23525
  productId: this.toAstProperty(bitType, ConfigKey.property_productId, data.productId, options),
23115
23526
  product: this.toAstProperty(bitType, ConfigKey.property_product, data.product, options),
23116
23527
  // productList: this.toAstProperty(
@@ -23182,7 +23593,6 @@ var Builder = class extends BaseBuilder {
23182
23593
  item: this.handleJsonText(context, TextLocation.tag, data.item),
23183
23594
  lead: this.handleJsonText(context, TextLocation.tag, data.lead),
23184
23595
  pageNumber: this.handleJsonText(context, TextLocation.tag, data.pageNumber),
23185
- sourcePageNumber: this.handleJsonText(context, TextLocation.tag, data.sourcePageNumber),
23186
23596
  marginNumber: this.handleJsonText(context, TextLocation.tag, data.marginNumber),
23187
23597
  hint: this.handleJsonText(context, TextLocation.tag, data.hint),
23188
23598
  instruction: this.handleJsonText(context, TextLocation.tag, data.instruction),
@@ -23285,15 +23695,7 @@ var Builder = class extends BaseBuilder {
23285
23695
  objectUtils.removeUnwantedProperties(node, {
23286
23696
  ignoreAllFalse: true,
23287
23697
  ignoreUndefined: ["example"],
23288
- ignoreEmptyArrays: [
23289
- "item",
23290
- "lead",
23291
- "pageNumber",
23292
- "sourcePageNumber",
23293
- "marginNumber",
23294
- "hint",
23295
- "instruction"
23296
- ]
23698
+ ignoreEmptyArrays: ["item", "lead", "pageNumber", "marginNumber", "hint", "instruction"]
23297
23699
  });
23298
23700
  return nodeValidator.validateBit(node);
23299
23701
  }
@@ -25606,7 +26008,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25606
26008
  if (this.isEmptyText(item)) return false;
25607
26009
  if (!this.isEmptyText(parent?.value?.lead)) return true;
25608
26010
  if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
25609
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25610
26011
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25611
26012
  this.writeNL_IfNotChain(route);
25612
26013
  this.writeOPC();
@@ -25620,7 +26021,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25620
26021
  const parent = this.getParentNode(route);
25621
26022
  if (this.isEmptyText(lead)) return false;
25622
26023
  if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
25623
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25624
26024
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25625
26025
  this.writeNL_IfNotChain(route);
25626
26026
  this.writeOPC();
@@ -25636,7 +26036,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25636
26036
  const pageNumber = node.value;
25637
26037
  const parent = this.getParentNode(route);
25638
26038
  if (this.isEmptyText(pageNumber)) return false;
25639
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25640
26039
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25641
26040
  this.writeNL_IfNotChain(route);
25642
26041
  this.writeOPC();
@@ -25650,31 +26049,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25650
26049
  this.writeCL();
25651
26050
  return true;
25652
26051
  }
25653
- // bitmarkAst -> bits -> bitsValue -> sourcePageNumber
25654
- enter_sourcePageNumber(node, route) {
25655
- const sourcePageNumber = node.value;
25656
- const parent = this.getParentNode(route);
25657
- if (this.isEmptyText(sourcePageNumber)) return false;
25658
- if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25659
- this.writeNL_IfNotChain(route);
25660
- this.writeOPC();
25661
- this.writeTextOrValue(parent?.value?.item ?? "", TextFormat.bitmarkText, TextLocation.tag);
25662
- this.writeCL();
25663
- this.writeOPC();
25664
- this.writeTextOrValue(parent?.value?.lead ?? "", TextFormat.bitmarkText, TextLocation.tag);
25665
- this.writeCL();
25666
- this.writeOPC();
25667
- this.writeTextOrValue(
25668
- parent?.value?.pageNumber ?? "",
25669
- TextFormat.bitmarkText,
25670
- TextLocation.tag
25671
- );
25672
- this.writeCL();
25673
- this.writeOPC();
25674
- this.writeTextOrValue(sourcePageNumber ?? "", TextFormat.bitmarkText, TextLocation.tag);
25675
- this.writeCL();
25676
- return true;
25677
- }
25678
26052
  // bitmarkAst -> bits -> bitsValue -> marginNumber
25679
26053
  enter_marginNumber(node, route) {
25680
26054
  const marginNumber = node.value;
@@ -25695,13 +26069,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25695
26069
  );
25696
26070
  this.writeCL();
25697
26071
  this.writeOPC();
25698
- this.writeTextOrValue(
25699
- parent?.value?.sourcePageNumber ?? "",
25700
- TextFormat.bitmarkText,
25701
- TextLocation.tag
25702
- );
25703
- this.writeCL();
25704
- this.writeOPC();
25705
26072
  this.writeTextOrValue(marginNumber, TextFormat.bitmarkText, TextLocation.tag);
25706
26073
  this.writeCL();
25707
26074
  return true;
@@ -26256,6 +26623,27 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
26256
26623
  this.writePropertyStyleResource(node.key, resource);
26257
26624
  return true;
26258
26625
  }
26626
+ // bitmarkAst -> bits -> bitsValue -> platformIcon
26627
+ enter_platformIcon(node, _route) {
26628
+ const resource = node.value;
26629
+ this.writeNL();
26630
+ this.writePropertyStyleResource(node.key, resource);
26631
+ return true;
26632
+ }
26633
+ // bitmarkAst -> bits -> bitsValue -> platformLogo
26634
+ enter_platformLogo(node, _route) {
26635
+ const resource = node.value;
26636
+ this.writeNL();
26637
+ this.writePropertyStyleResource(node.key, resource);
26638
+ return true;
26639
+ }
26640
+ // bitmarkAst -> bits -> bitsValue -> platformBackgroundImage
26641
+ enter_platformBackgroundImage(node, _route) {
26642
+ const resource = node.value;
26643
+ this.writeNL();
26644
+ this.writePropertyStyleResource(node.key, resource);
26645
+ return true;
26646
+ }
26259
26647
  exit_imagePlaceholder(_node, _route) {
26260
26648
  }
26261
26649
  // bitmarkAst -> bits -> bitsValue -> posterImage
@@ -27526,10 +27914,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
27526
27914
  enter_pageNumber(node, route) {
27527
27915
  return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
27528
27916
  }
27529
- // bitmarkAst -> bits -> bitsValue -> sourcePageNumber
27530
- enter_sourcePageNumber(node, route) {
27531
- return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
27532
- }
27533
27917
  // bitmarkAst -> bits -> bitsValue -> marginNumber
27534
27918
  enter_marginNumber(node, route) {
27535
27919
  return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
@@ -27816,6 +28200,18 @@ var JsonGenerator = class extends AstWalkerGenerator {
27816
28200
  enter_imagePlaceholder(node, route) {
27817
28201
  return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
27818
28202
  }
28203
+ // bitmarkAst -> bits -> bitsValue -> platformIcon
28204
+ enter_platformIcon(node, route) {
28205
+ return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
28206
+ }
28207
+ // bitmarkAst -> bits -> bitsValue -> platformLogo
28208
+ enter_platformLogo(node, route) {
28209
+ return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
28210
+ }
28211
+ // bitmarkAst -> bits -> bitsValue -> platformBackgroundImage
28212
+ enter_platformBackgroundImage(node, route) {
28213
+ return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
28214
+ }
27819
28215
  // bitmarkAst -> bits -> bitsValue -> resources
27820
28216
  enter_resources(node, route) {
27821
28217
  const resources = node.value;
@@ -28252,7 +28648,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28252
28648
  delete bitJson.item;
28253
28649
  delete bitJson.lead;
28254
28650
  delete bitJson.pageNumber;
28255
- delete bitJson.sourcePageNumber;
28256
28651
  delete bitJson.marginNumber;
28257
28652
  delete bitJson.hint;
28258
28653
  delete bitJson.instruction;
@@ -28264,8 +28659,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28264
28659
  if (bitJson.lead == null || bitJson.lead?.length === 0) delete bitJson.lead;
28265
28660
  if (bitJson.pageNumber == null || bitJson.pageNumber?.length === 0)
28266
28661
  delete bitJson.pageNumber;
28267
- if (bitJson.sourcePageNumber == null || bitJson.sourcePageNumber?.length === 0)
28268
- delete bitJson.sourcePageNumber;
28269
28662
  if (bitJson.marginNumber == null || bitJson.marginNumber?.length === 0)
28270
28663
  delete bitJson.marginNumber;
28271
28664
  if (bitJson.hint == null || bitJson.hint?.length === 0) delete bitJson.hint;
@@ -28277,7 +28670,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28277
28670
  if (bitJson.hint == null) bitJson.hint = this.textDefault;
28278
28671
  if (bitJson.instruction == null) bitJson.instruction = this.textDefault;
28279
28672
  if (bitJson.pageNumber == null) bitJson.pageNumber = this.textDefault;
28280
- if (bitJson.sourcePageNumber == null) bitJson.sourcePageNumber = this.textDefault;
28281
28673
  if (bitJson.marginNumber == null) bitJson.marginNumber = this.textDefault;
28282
28674
  }
28283
28675
  if (bitJson.body == null) bitJson.body = this.bodyDefault;
@@ -29750,7 +30142,7 @@ var BitmarkPegParserValidator = class {
29750
30142
  let tagData = validTypeKeys.get(validTypeKey);
29751
30143
  if (!tagData && typeKey === TypeKey.Property) {
29752
30144
  const resourceKey = key.replace(/^@/, "&");
29753
- if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder) {
30145
+ if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder || resourceKey === ConfigKey.resource_platformIcon || resourceKey === ConfigKey.resource_platformLogo || resourceKey === ConfigKey.resource_platformBackgroundImage) {
29754
30146
  tagData = validTypeKeys.get(resourceKey);
29755
30147
  if (tagData) {
29756
30148
  typeKey = TypeKey.Resource;
@@ -32027,7 +32419,7 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
32027
32419
  ...tags2
32028
32420
  });
32029
32421
  if (resource) {
32030
- if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder) {
32422
+ if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder || configKey === ConfigKey.resource_platformIcon || configKey === ConfigKey.resource_platformLogo || configKey === ConfigKey.resource_platformBackgroundImage) {
32031
32423
  if (target.propertyStyleResources) target.propertyStyleResources[resourceType] = resource;
32032
32424
  } else {
32033
32425
  resources.push(resource);
@@ -32739,8 +33131,7 @@ var BitmarkPegParserProcessor = class {
32739
33131
  if (l > 0) result.item = result.itemLead[0];
32740
33132
  if (l > 1) result.lead = result.itemLead[1];
32741
33133
  if (l > 2) result.pageNumber = result.itemLead[2];
32742
- if (l > 3) result.sourcePageNumber = result.itemLead[3];
32743
- if (l > 4) result.marginNumber = result.itemLead[l - 1];
33134
+ if (l > 3) result.marginNumber = result.itemLead[l - 1];
32744
33135
  }
32745
33136
  if (inBit) {
32746
33137
  result.body = instance11.process(