@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.js CHANGED
@@ -116,6 +116,7 @@ var BitType = superenum({
116
116
  botActionSend: "bot-action-send",
117
117
  botActionTrueFalse: "bot-action-true-false",
118
118
  botInterview: "bot-interview",
119
+ brandColor: "brand-color",
119
120
  browserImage: "browser-image",
120
121
  bug: "bug",
121
122
  bugAlt: "bug-alt",
@@ -430,7 +431,18 @@ var BitType = superenum({
430
431
  pageSubscribe: "page-subscribe",
431
432
  parameters: "parameters",
432
433
  photo: "photo",
434
+ platform: "platform",
435
+ platformHeader: "platform-header",
436
+ platformMain: "platform-main",
437
+ platformMainButton: "platform-main-button",
438
+ platformMainInput: "platform-main-input",
433
439
  platformPath: "platform-path",
440
+ platformSection: "platform-section",
441
+ platformSectionButton: "platform-section-button",
442
+ platformSectionChat: "platform-section-chat",
443
+ platformSectionHeader: "platform-section-header",
444
+ platformSectionInput: "platform-section-input",
445
+ platformSystemIcon: "platform-system-icon",
434
446
  preparationNote: "preparation-note",
435
447
  pronunciationTable: "pronunciation-table",
436
448
  prototypeImages: "prototype-images",
@@ -1057,6 +1069,7 @@ var groupKeys = {
1057
1069
  group_bookCommon: "group_bookCommon",
1058
1070
  group_learningPathCommon: "group_learningPathCommon",
1059
1071
  group_advertisingCommon: "group_advertisingCommon",
1072
+ group_platformColorsCommon: "group_platformColorsCommon",
1060
1073
  group_quizCommon: "group_quizCommon",
1061
1074
  group_resourceBitTags: "group_resourceBitTags",
1062
1075
  group_resourceCommon: "group_resourceCommon",
@@ -1111,6 +1124,8 @@ var propertyKeys = {
1111
1124
  property_author: "@author",
1112
1125
  property_autoplay: "@autoplay",
1113
1126
  property_availableClassifications: "@availableClassifications",
1127
+ property_brandColor: "@brandColor",
1128
+ property_brandColorName: "@brandColorName",
1114
1129
  property_blockId: "@blockId",
1115
1130
  property_book: "@book",
1116
1131
  property_bookAlias: "@bookAlias",
@@ -1177,6 +1192,7 @@ var propertyKeys = {
1177
1192
  property_imageSource: "@imageSource",
1178
1193
  property_index: "@index",
1179
1194
  property_internalComment: "@internalComment",
1195
+ property_internalPrintPdf: "@internalPrintPdf",
1180
1196
  property_isCaseSensitive: "@isCaseSensitive",
1181
1197
  property_isInfoOnly: "@isInfoOnly",
1182
1198
  property_isPublic: "@isPublic",
@@ -1217,6 +1233,18 @@ var propertyKeys = {
1217
1233
  property_partner: "@partner",
1218
1234
  // Deprecated, replaced by person
1219
1235
  property_path: "@path",
1236
+ property_platformBackgroundColor: "@platformBackgroundColor",
1237
+ property_platformButtonBackgroundColor: "@platformButtonBackgroundColor",
1238
+ property_platformButtonPrimaryColor: "@platformButtonPrimaryColor",
1239
+ property_platformMessageBackgroundColor: "@platformMessageBackgroundColor",
1240
+ property_platformName: "@platformName",
1241
+ property_platformPlaceholderColor: "@platformPlaceholderColor",
1242
+ property_platformPrimaryColor: "@platformPrimaryColor",
1243
+ property_platformScrollbarColor: "@platformScrollbarColor",
1244
+ property_platformSecondaryColor: "@platformSecondaryColor",
1245
+ property_platformSelectionColor: "@platformSelectionColor",
1246
+ property_platformSeparatorColor: "@platformSeparatorColor",
1247
+ property_platformTextSelectionColor: "@platformTextSelectionColor",
1220
1248
  property_person: "@person",
1221
1249
  property_pointerLeft: "@pointerLeft",
1222
1250
  property_pointerTop: "@pointerTop",
@@ -1266,6 +1294,7 @@ var propertyKeys = {
1266
1294
  property_size: "@size",
1267
1295
  property_slug: "@slug",
1268
1296
  property_sourceDocument: "@sourceDocument",
1297
+ property_sourceRL: "@sourceRL",
1269
1298
  property_spaceId: "@spaceId",
1270
1299
  property_src1x: "@src1x",
1271
1300
  property_src2x: "@src2x",
@@ -1340,6 +1369,9 @@ var resourceKeys = {
1340
1369
  resource_appLink: "&appLink",
1341
1370
  resource_websiteLink: "&websiteLink",
1342
1371
  resource_icon: "&icon",
1372
+ resource_platformBackgroundImage: "&platformBackgroundImage",
1373
+ resource_platformIcon: "&platformIcon",
1374
+ resource_platformLogo: "&platformLogo",
1343
1375
  resource_backgroundWallpaper: "&backgroundWallpaper",
1344
1376
  resource_imagePlaceholder: "&imagePlaceholder"
1345
1377
  };
@@ -1566,7 +1598,10 @@ var ResourceType = superenum13({
1566
1598
  // Aliases for image
1567
1599
  icon: "icon",
1568
1600
  backgroundWallpaper: "backgroundWallpaper",
1569
- imagePlaceholder: "imagePlaceholder"
1601
+ imagePlaceholder: "imagePlaceholder",
1602
+ platformIcon: "platformIcon",
1603
+ platformLogo: "platformLogo",
1604
+ platformBackgroundImage: "platformBackgroundImage"
1570
1605
  });
1571
1606
  function resourceTypeToConfigKey(type) {
1572
1607
  return `&${stringUtils.kebabToCamel(type)}`;
@@ -2581,6 +2616,11 @@ var GROUPS = {
2581
2616
  format: TagFormat.plainText,
2582
2617
  maxCount: Count.infinity
2583
2618
  },
2619
+ {
2620
+ key: ConfigKey.property_sourceRL,
2621
+ description: "The original location of the information in the original source material",
2622
+ format: TagFormat.plainText
2623
+ },
2584
2624
  {
2585
2625
  key: ConfigKey.property_isTemplate,
2586
2626
  description: "If true, the bit is a template",
@@ -3227,6 +3267,11 @@ var GROUPS = {
3227
3267
  key: ConfigKey.property_sourceDocument,
3228
3268
  description: "Url of the source document for the book (for example, a PDF file)",
3229
3269
  format: TagFormat.plainText
3270
+ },
3271
+ {
3272
+ key: ConfigKey.property_internalPrintPdf,
3273
+ description: "Url of the internal print PDF for the book",
3274
+ format: TagFormat.plainText
3230
3275
  }
3231
3276
  ]
3232
3277
  },
@@ -3316,6 +3361,67 @@ var GROUPS = {
3316
3361
  }
3317
3362
  ]
3318
3363
  },
3364
+ [ConfigKey.group_platformColorsCommon]: {
3365
+ type: GroupConfigType.standard,
3366
+ description: "Common platform colors",
3367
+ tags: [
3368
+ {
3369
+ key: ConfigKey.property_platformPrimaryColor,
3370
+ description: "The platform system primary color",
3371
+ format: TagFormat.plainText
3372
+ },
3373
+ {
3374
+ key: ConfigKey.property_platformSecondaryColor,
3375
+ description: "The platform section secondary color",
3376
+ format: TagFormat.plainText
3377
+ },
3378
+ {
3379
+ key: ConfigKey.property_platformBackgroundColor,
3380
+ description: "The platform system background color",
3381
+ format: TagFormat.plainText
3382
+ },
3383
+ {
3384
+ key: ConfigKey.property_platformButtonPrimaryColor,
3385
+ description: "The platform section header button primary color",
3386
+ format: TagFormat.plainText
3387
+ },
3388
+ {
3389
+ key: ConfigKey.property_platformButtonBackgroundColor,
3390
+ description: "The platform section header button background color",
3391
+ format: TagFormat.plainText
3392
+ },
3393
+ {
3394
+ key: ConfigKey.property_platformScrollbarColor,
3395
+ description: "The platform main scrollbar color",
3396
+ format: TagFormat.plainText
3397
+ },
3398
+ {
3399
+ key: ConfigKey.property_platformSelectionColor,
3400
+ description: "The platform main selection color",
3401
+ format: TagFormat.plainText
3402
+ },
3403
+ {
3404
+ key: ConfigKey.property_platformTextSelectionColor,
3405
+ description: "The platform main input text selection color",
3406
+ format: TagFormat.plainText
3407
+ },
3408
+ {
3409
+ key: ConfigKey.property_platformSeparatorColor,
3410
+ description: "The platform main separator color",
3411
+ format: TagFormat.plainText
3412
+ },
3413
+ {
3414
+ key: ConfigKey.property_platformPlaceholderColor,
3415
+ description: "The platform main input placeholder color",
3416
+ format: TagFormat.plainText
3417
+ },
3418
+ {
3419
+ key: ConfigKey.property_platformMessageBackgroundColor,
3420
+ description: "The platform section chat message background color",
3421
+ format: TagFormat.plainText
3422
+ }
3423
+ ]
3424
+ },
3319
3425
  [ConfigKey.group_quizCommon]: {
3320
3426
  type: GroupConfigType.standard,
3321
3427
  description: "Common quiz tags",
@@ -7117,6 +7223,23 @@ var BITS = {
7117
7223
  baseBitType: BitType.interview,
7118
7224
  description: "Bot interview bit, used to create bot interviews in articles or books"
7119
7225
  },
7226
+ [BitType.brandColor]: {
7227
+ since: "4.12.0",
7228
+ baseBitType: BitType._standard,
7229
+ description: "Brand color bit, used to define brand colors",
7230
+ tags: [
7231
+ {
7232
+ key: ConfigKey.property_brandColor,
7233
+ description: "The brand color",
7234
+ format: TagFormat.plainText
7235
+ },
7236
+ {
7237
+ key: ConfigKey.property_brandColorName,
7238
+ description: "The brand color name",
7239
+ format: TagFormat.plainText
7240
+ }
7241
+ ]
7242
+ },
7120
7243
  [BitType.learningPathBook]: {
7121
7244
  since: "1.3.0",
7122
7245
  baseBitType: BitType._standard,
@@ -7875,6 +7998,160 @@ var BITS = {
7875
7998
  baseBitType: BitType.image,
7876
7999
  description: "Photo bit, used to create photo bits in articles or books"
7877
8000
  },
8001
+ [BitType.platform]: {
8002
+ since: "4.12.0",
8003
+ baseBitType: BitType._standard,
8004
+ description: "Platform bit, used to define platform properties",
8005
+ tags: [
8006
+ {
8007
+ key: ConfigKey.property_platformName,
8008
+ description: "The platform name",
8009
+ format: TagFormat.plainText
8010
+ },
8011
+ {
8012
+ key: ConfigKey.resource_platformIcon,
8013
+ description: "The platform icon",
8014
+ chain: [
8015
+ {
8016
+ key: ConfigKey.group_resourceImageCommon,
8017
+ description: "Common image properties for the platform icon resource"
8018
+ }
8019
+ ],
8020
+ maxCount: 1
8021
+ }
8022
+ ]
8023
+ },
8024
+ [BitType.platformHeader]: {
8025
+ since: "4.12.0",
8026
+ baseBitType: BitType._standard,
8027
+ description: "Platform header bit, used to define platform header properties",
8028
+ tags: [
8029
+ {
8030
+ key: ConfigKey.resource_platformLogo,
8031
+ description: "The platform logo",
8032
+ chain: [
8033
+ {
8034
+ key: ConfigKey.group_resourceImageCommon,
8035
+ description: "Common image properties for the platform logo resource"
8036
+ }
8037
+ ],
8038
+ maxCount: 1
8039
+ },
8040
+ {
8041
+ key: ConfigKey.group_platformColorsCommon,
8042
+ description: "Common platform colors"
8043
+ }
8044
+ ]
8045
+ },
8046
+ [BitType.platformMain]: {
8047
+ since: "4.12.0",
8048
+ baseBitType: BitType._standard,
8049
+ description: "Platform main bit, used to define platform main properties",
8050
+ tags: [
8051
+ {
8052
+ key: ConfigKey.group_platformColorsCommon,
8053
+ description: "Common platform colors"
8054
+ }
8055
+ ]
8056
+ },
8057
+ [BitType.platformMainButton]: {
8058
+ since: "4.12.0",
8059
+ baseBitType: BitType._standard,
8060
+ description: "Platform main button bit, used to define platform main button properties",
8061
+ tags: [
8062
+ {
8063
+ key: ConfigKey.group_platformColorsCommon,
8064
+ description: "Common platform colors"
8065
+ }
8066
+ ]
8067
+ },
8068
+ [BitType.platformMainInput]: {
8069
+ since: "4.12.0",
8070
+ baseBitType: BitType._standard,
8071
+ description: "Platform main input bit, used to define platform main input properties",
8072
+ tags: [
8073
+ {
8074
+ key: ConfigKey.group_platformColorsCommon,
8075
+ description: "Common platform colors"
8076
+ }
8077
+ ]
8078
+ },
8079
+ [BitType.platformSection]: {
8080
+ since: "4.12.0",
8081
+ baseBitType: BitType._standard,
8082
+ description: "Platform section bit, used to define platform section properties",
8083
+ tags: [
8084
+ {
8085
+ key: ConfigKey.group_platformColorsCommon,
8086
+ description: "Common platform colors"
8087
+ }
8088
+ ]
8089
+ },
8090
+ [BitType.platformSectionButton]: {
8091
+ since: "4.12.0",
8092
+ baseBitType: BitType._standard,
8093
+ description: "Platform section button bit, used to define platform section button properties",
8094
+ tags: [
8095
+ {
8096
+ key: ConfigKey.group_platformColorsCommon,
8097
+ description: "Common platform colors"
8098
+ }
8099
+ ]
8100
+ },
8101
+ [BitType.platformSectionChat]: {
8102
+ since: "4.12.0",
8103
+ baseBitType: BitType._standard,
8104
+ description: "Platform section chat bit, used to define platform section chat properties",
8105
+ tags: [
8106
+ {
8107
+ key: ConfigKey.group_platformColorsCommon,
8108
+ description: "Common platform colors"
8109
+ },
8110
+ {
8111
+ key: ConfigKey.resource_platformBackgroundImage,
8112
+ description: "The platform section chat background image",
8113
+ chain: [
8114
+ {
8115
+ key: ConfigKey.group_resourceImageCommon,
8116
+ description: "Common image properties for the platform background image resource"
8117
+ }
8118
+ ]
8119
+ }
8120
+ ]
8121
+ },
8122
+ [BitType.platformSectionHeader]: {
8123
+ since: "4.12.0",
8124
+ baseBitType: BitType._standard,
8125
+ description: "Platform section header bit, used to define platform section header properties",
8126
+ tags: [
8127
+ {
8128
+ key: ConfigKey.group_platformColorsCommon,
8129
+ description: "Common platform colors"
8130
+ }
8131
+ ]
8132
+ },
8133
+ [BitType.platformSectionInput]: {
8134
+ since: "4.12.0",
8135
+ baseBitType: BitType._standard,
8136
+ description: "Platform section input bit, used to define platform section input properties",
8137
+ tags: [
8138
+ {
8139
+ key: ConfigKey.group_platformColorsCommon,
8140
+ description: "Common platform colors"
8141
+ }
8142
+ ]
8143
+ },
8144
+ [BitType.platformSystemIcon]: {
8145
+ since: "4.12.0",
8146
+ baseBitType: BitType._standard,
8147
+ description: "Platform system icon bit, used to define platform system icon properties",
8148
+ tags: [
8149
+ {
8150
+ key: ConfigKey.group_platformColorsCommon,
8151
+ description: "Common platform colors"
8152
+ }
8153
+ ]
8154
+ },
7878
8155
  [BitType.quote]: {
7879
8156
  since: "1.3.0",
7880
8157
  baseBitType: BitType._standard,
@@ -9223,7 +9500,7 @@ var instance2 = new Config();
9223
9500
  // src/generated/package_info.ts
9224
9501
  var PACKAGE_INFO = {
9225
9502
  "name": "@gmb/bitmark-parser-generator",
9226
- "version": "4.12.0",
9503
+ "version": "4.13.0",
9227
9504
  "author": "Get More Brain Ltd",
9228
9505
  "license": "ISC",
9229
9506
  "description": "A bitmark parser and generator using Peggy.js"
@@ -9568,6 +9845,10 @@ var NodeType = superenum20({
9568
9845
  advertisingClickUrl: "advertisingClickUrl",
9569
9846
  advertisingClickUrlValue: "advertisingClickUrlValue",
9570
9847
  ageRange: "ageRange",
9848
+ brandColor: "brandColor",
9849
+ brandColorValue: "brandColorValue",
9850
+ brandColorName: "brandColorName",
9851
+ brandColorNameValue: "brandColorNameValue",
9571
9852
  ageRangeValue: "ageRangeValue",
9572
9853
  aiGenerated: "aiGenerated",
9573
9854
  aiGeneratedValue: "aiGeneratedValue",
@@ -9798,6 +10079,8 @@ var NodeType = superenum20({
9798
10079
  instruction: "instruction",
9799
10080
  internalComment: "internalComment",
9800
10081
  internalCommentValue: "internalCommentValue",
10082
+ internalPrintPdf: "internalPrintPdf",
10083
+ internalPrintPdfValue: "internalPrintPdfValue",
9801
10084
  isCaseSensitive: "isCaseSensitive",
9802
10085
  isCommented: "isCommented",
9803
10086
  isCorrect: "isCorrect",
@@ -9900,6 +10183,36 @@ var NodeType = superenum20({
9900
10183
  partialAnswerValue: "partialAnswerValue",
9901
10184
  path: "path",
9902
10185
  pathValue: "pathValue",
10186
+ platformName: "platformName",
10187
+ platformNameValue: "platformNameValue",
10188
+ platformIcon: "platformIcon",
10189
+ platformIconValue: "platformIconValue",
10190
+ platformLogo: "platformLogo",
10191
+ platformLogoValue: "platformLogoValue",
10192
+ platformPrimaryColor: "platformPrimaryColor",
10193
+ platformPrimaryColorValue: "platformPrimaryColorValue",
10194
+ platformSecondaryColor: "platformSecondaryColor",
10195
+ platformSecondaryColorValue: "platformSecondaryColorValue",
10196
+ platformBackgroundColor: "platformBackgroundColor",
10197
+ platformBackgroundColorValue: "platformBackgroundColorValue",
10198
+ platformScrollbarColor: "platformScrollbarColor",
10199
+ platformScrollbarColorValue: "platformScrollbarColorValue",
10200
+ platformSelectionColor: "platformSelectionColor",
10201
+ platformSelectionColorValue: "platformSelectionColorValue",
10202
+ platformSeparatorColor: "platformSeparatorColor",
10203
+ platformSeparatorColorValue: "platformSeparatorColorValue",
10204
+ platformPlaceholderColor: "platformPlaceholderColor",
10205
+ platformPlaceholderColorValue: "platformPlaceholderColorValue",
10206
+ platformTextSelectionColor: "platformTextSelectionColor",
10207
+ platformTextSelectionColorValue: "platformTextSelectionColorValue",
10208
+ platformButtonPrimaryColor: "platformButtonPrimaryColor",
10209
+ platformButtonPrimaryColorValue: "platformButtonPrimaryColorValue",
10210
+ platformButtonBackgroundColor: "platformButtonBackgroundColor",
10211
+ platformButtonBackgroundColorValue: "platformButtonBackgroundColorValue",
10212
+ platformMessageBackgroundColor: "platformMessageBackgroundColor",
10213
+ platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
10214
+ platformBackgroundImage: "platformBackgroundImage",
10215
+ platformBackgroundImageValue: "platformBackgroundImageValue",
9903
10216
  person: "person",
9904
10217
  pointerLeft: "pointerLeft",
9905
10218
  pointerLeftValue: "pointerLeftValue",
@@ -10018,7 +10331,8 @@ var NodeType = superenum20({
10018
10331
  solutionsValue: "solutionsValue",
10019
10332
  sourceDocument: "sourceDocument",
10020
10333
  sourceDocumentValue: "sourceDocumentValue",
10021
- sourcePageNumber: "sourcePageNumber",
10334
+ sourceRL: "sourceRL",
10335
+ sourceRLValue: "sourceRLValue",
10022
10336
  spaceId: "spaceId",
10023
10337
  spaceIdValue: "spaceIdValue",
10024
10338
  src: "src",
@@ -21417,6 +21731,9 @@ var ResourceBuilder = class extends BaseBuilder {
21417
21731
  case ResourceType.backgroundWallpaper:
21418
21732
  case ResourceType.imagePlaceholder:
21419
21733
  case ResourceType.icon:
21734
+ case ResourceType.platformIcon:
21735
+ case ResourceType.platformLogo:
21736
+ case ResourceType.platformBackgroundImage:
21420
21737
  node = this.imageResource(context, finalData, type);
21421
21738
  break;
21422
21739
  // case ResourceType.imageResponsive: {
@@ -22453,6 +22770,7 @@ var Builder = class extends BaseBuilder {
22453
22770
  data.jupyterExecutionCount,
22454
22771
  options
22455
22772
  ),
22773
+ sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
22456
22774
  isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
22457
22775
  isTemplate: this.toAstProperty(
22458
22776
  bitType,
@@ -22976,6 +23294,18 @@ var Builder = class extends BaseBuilder {
22976
23294
  data.advertisingClickUrl,
22977
23295
  options
22978
23296
  ),
23297
+ brandColor: this.toAstProperty(
23298
+ bitType,
23299
+ ConfigKey.property_brandColor,
23300
+ data.brandColor,
23301
+ options
23302
+ ),
23303
+ brandColorName: this.toAstProperty(
23304
+ bitType,
23305
+ ConfigKey.property_brandColorName,
23306
+ data.brandColorName,
23307
+ options
23308
+ ),
22979
23309
  caption: this.handleJsonText(context, TextLocation.tag, data.caption),
22980
23310
  quotedPerson: this.toAstProperty(
22981
23311
  bitType,
@@ -23039,6 +23369,12 @@ var Builder = class extends BaseBuilder {
23039
23369
  data.sourceDocument,
23040
23370
  options
23041
23371
  ),
23372
+ internalPrintPdf: this.toAstProperty(
23373
+ bitType,
23374
+ ConfigKey.property_internalPrintPdf,
23375
+ data.internalPrintPdf,
23376
+ options
23377
+ ),
23042
23378
  tocResource: this.toAstProperty(
23043
23379
  bitType,
23044
23380
  ConfigKey.property_tocResource,
@@ -23052,6 +23388,81 @@ var Builder = class extends BaseBuilder {
23052
23388
  options
23053
23389
  ),
23054
23390
  page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
23391
+ platformName: this.toAstProperty(
23392
+ bitType,
23393
+ ConfigKey.property_platformName,
23394
+ data.platformName,
23395
+ options
23396
+ ),
23397
+ platformIcon: this.toImageResource(context, data.platformIcon),
23398
+ platformLogo: this.toImageResource(context, data.platformLogo),
23399
+ platformPrimaryColor: this.toAstProperty(
23400
+ bitType,
23401
+ ConfigKey.property_platformPrimaryColor,
23402
+ data.platformPrimaryColor,
23403
+ options
23404
+ ),
23405
+ platformSecondaryColor: this.toAstProperty(
23406
+ bitType,
23407
+ ConfigKey.property_platformSecondaryColor,
23408
+ data.platformSecondaryColor,
23409
+ options
23410
+ ),
23411
+ platformBackgroundColor: this.toAstProperty(
23412
+ bitType,
23413
+ ConfigKey.property_platformBackgroundColor,
23414
+ data.platformBackgroundColor,
23415
+ options
23416
+ ),
23417
+ platformScrollbarColor: this.toAstProperty(
23418
+ bitType,
23419
+ ConfigKey.property_platformScrollbarColor,
23420
+ data.platformScrollbarColor,
23421
+ options
23422
+ ),
23423
+ platformSelectionColor: this.toAstProperty(
23424
+ bitType,
23425
+ ConfigKey.property_platformSelectionColor,
23426
+ data.platformSelectionColor,
23427
+ options
23428
+ ),
23429
+ platformSeparatorColor: this.toAstProperty(
23430
+ bitType,
23431
+ ConfigKey.property_platformSeparatorColor,
23432
+ data.platformSeparatorColor,
23433
+ options
23434
+ ),
23435
+ platformPlaceholderColor: this.toAstProperty(
23436
+ bitType,
23437
+ ConfigKey.property_platformPlaceholderColor,
23438
+ data.platformPlaceholderColor,
23439
+ options
23440
+ ),
23441
+ platformTextSelectionColor: this.toAstProperty(
23442
+ bitType,
23443
+ ConfigKey.property_platformTextSelectionColor,
23444
+ data.platformTextSelectionColor,
23445
+ options
23446
+ ),
23447
+ platformButtonPrimaryColor: this.toAstProperty(
23448
+ bitType,
23449
+ ConfigKey.property_platformButtonPrimaryColor,
23450
+ data.platformButtonPrimaryColor,
23451
+ options
23452
+ ),
23453
+ platformButtonBackgroundColor: this.toAstProperty(
23454
+ bitType,
23455
+ ConfigKey.property_platformButtonBackgroundColor,
23456
+ data.platformButtonBackgroundColor,
23457
+ options
23458
+ ),
23459
+ platformMessageBackgroundColor: this.toAstProperty(
23460
+ bitType,
23461
+ ConfigKey.property_platformMessageBackgroundColor,
23462
+ data.platformMessageBackgroundColor,
23463
+ options
23464
+ ),
23465
+ platformBackgroundImage: this.toImageResource(context, data.platformBackgroundImage),
23055
23466
  productId: this.toAstProperty(bitType, ConfigKey.property_productId, data.productId, options),
23056
23467
  product: this.toAstProperty(bitType, ConfigKey.property_product, data.product, options),
23057
23468
  // productList: this.toAstProperty(
@@ -23123,7 +23534,6 @@ var Builder = class extends BaseBuilder {
23123
23534
  item: this.handleJsonText(context, TextLocation.tag, data.item),
23124
23535
  lead: this.handleJsonText(context, TextLocation.tag, data.lead),
23125
23536
  pageNumber: this.handleJsonText(context, TextLocation.tag, data.pageNumber),
23126
- sourcePageNumber: this.handleJsonText(context, TextLocation.tag, data.sourcePageNumber),
23127
23537
  marginNumber: this.handleJsonText(context, TextLocation.tag, data.marginNumber),
23128
23538
  hint: this.handleJsonText(context, TextLocation.tag, data.hint),
23129
23539
  instruction: this.handleJsonText(context, TextLocation.tag, data.instruction),
@@ -23226,15 +23636,7 @@ var Builder = class extends BaseBuilder {
23226
23636
  objectUtils.removeUnwantedProperties(node, {
23227
23637
  ignoreAllFalse: true,
23228
23638
  ignoreUndefined: ["example"],
23229
- ignoreEmptyArrays: [
23230
- "item",
23231
- "lead",
23232
- "pageNumber",
23233
- "sourcePageNumber",
23234
- "marginNumber",
23235
- "hint",
23236
- "instruction"
23237
- ]
23639
+ ignoreEmptyArrays: ["item", "lead", "pageNumber", "marginNumber", "hint", "instruction"]
23238
23640
  });
23239
23641
  return nodeValidator.validateBit(node);
23240
23642
  }
@@ -25547,7 +25949,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25547
25949
  if (this.isEmptyText(item)) return false;
25548
25950
  if (!this.isEmptyText(parent?.value?.lead)) return true;
25549
25951
  if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
25550
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25551
25952
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25552
25953
  this.writeNL_IfNotChain(route);
25553
25954
  this.writeOPC();
@@ -25561,7 +25962,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25561
25962
  const parent = this.getParentNode(route);
25562
25963
  if (this.isEmptyText(lead)) return false;
25563
25964
  if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
25564
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25565
25965
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25566
25966
  this.writeNL_IfNotChain(route);
25567
25967
  this.writeOPC();
@@ -25577,7 +25977,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25577
25977
  const pageNumber = node.value;
25578
25978
  const parent = this.getParentNode(route);
25579
25979
  if (this.isEmptyText(pageNumber)) return false;
25580
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25581
25980
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25582
25981
  this.writeNL_IfNotChain(route);
25583
25982
  this.writeOPC();
@@ -25591,31 +25990,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25591
25990
  this.writeCL();
25592
25991
  return true;
25593
25992
  }
25594
- // bitmarkAst -> bits -> bitsValue -> sourcePageNumber
25595
- enter_sourcePageNumber(node, route) {
25596
- const sourcePageNumber = node.value;
25597
- const parent = this.getParentNode(route);
25598
- if (this.isEmptyText(sourcePageNumber)) return false;
25599
- if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25600
- this.writeNL_IfNotChain(route);
25601
- this.writeOPC();
25602
- this.writeTextOrValue(parent?.value?.item ?? "", TextFormat.bitmarkText, TextLocation.tag);
25603
- this.writeCL();
25604
- this.writeOPC();
25605
- this.writeTextOrValue(parent?.value?.lead ?? "", TextFormat.bitmarkText, TextLocation.tag);
25606
- this.writeCL();
25607
- this.writeOPC();
25608
- this.writeTextOrValue(
25609
- parent?.value?.pageNumber ?? "",
25610
- TextFormat.bitmarkText,
25611
- TextLocation.tag
25612
- );
25613
- this.writeCL();
25614
- this.writeOPC();
25615
- this.writeTextOrValue(sourcePageNumber ?? "", TextFormat.bitmarkText, TextLocation.tag);
25616
- this.writeCL();
25617
- return true;
25618
- }
25619
25993
  // bitmarkAst -> bits -> bitsValue -> marginNumber
25620
25994
  enter_marginNumber(node, route) {
25621
25995
  const marginNumber = node.value;
@@ -25636,13 +26010,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25636
26010
  );
25637
26011
  this.writeCL();
25638
26012
  this.writeOPC();
25639
- this.writeTextOrValue(
25640
- parent?.value?.sourcePageNumber ?? "",
25641
- TextFormat.bitmarkText,
25642
- TextLocation.tag
25643
- );
25644
- this.writeCL();
25645
- this.writeOPC();
25646
26013
  this.writeTextOrValue(marginNumber, TextFormat.bitmarkText, TextLocation.tag);
25647
26014
  this.writeCL();
25648
26015
  return true;
@@ -26197,6 +26564,27 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
26197
26564
  this.writePropertyStyleResource(node.key, resource);
26198
26565
  return true;
26199
26566
  }
26567
+ // bitmarkAst -> bits -> bitsValue -> platformIcon
26568
+ enter_platformIcon(node, _route) {
26569
+ const resource = node.value;
26570
+ this.writeNL();
26571
+ this.writePropertyStyleResource(node.key, resource);
26572
+ return true;
26573
+ }
26574
+ // bitmarkAst -> bits -> bitsValue -> platformLogo
26575
+ enter_platformLogo(node, _route) {
26576
+ const resource = node.value;
26577
+ this.writeNL();
26578
+ this.writePropertyStyleResource(node.key, resource);
26579
+ return true;
26580
+ }
26581
+ // bitmarkAst -> bits -> bitsValue -> platformBackgroundImage
26582
+ enter_platformBackgroundImage(node, _route) {
26583
+ const resource = node.value;
26584
+ this.writeNL();
26585
+ this.writePropertyStyleResource(node.key, resource);
26586
+ return true;
26587
+ }
26200
26588
  exit_imagePlaceholder(_node, _route) {
26201
26589
  }
26202
26590
  // bitmarkAst -> bits -> bitsValue -> posterImage
@@ -27467,10 +27855,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
27467
27855
  enter_pageNumber(node, route) {
27468
27856
  return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
27469
27857
  }
27470
- // bitmarkAst -> bits -> bitsValue -> sourcePageNumber
27471
- enter_sourcePageNumber(node, route) {
27472
- return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
27473
- }
27474
27858
  // bitmarkAst -> bits -> bitsValue -> marginNumber
27475
27859
  enter_marginNumber(node, route) {
27476
27860
  return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
@@ -27757,6 +28141,18 @@ var JsonGenerator = class extends AstWalkerGenerator {
27757
28141
  enter_imagePlaceholder(node, route) {
27758
28142
  return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
27759
28143
  }
28144
+ // bitmarkAst -> bits -> bitsValue -> platformIcon
28145
+ enter_platformIcon(node, route) {
28146
+ return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
28147
+ }
28148
+ // bitmarkAst -> bits -> bitsValue -> platformLogo
28149
+ enter_platformLogo(node, route) {
28150
+ return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
28151
+ }
28152
+ // bitmarkAst -> bits -> bitsValue -> platformBackgroundImage
28153
+ enter_platformBackgroundImage(node, route) {
28154
+ return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
28155
+ }
27760
28156
  // bitmarkAst -> bits -> bitsValue -> resources
27761
28157
  enter_resources(node, route) {
27762
28158
  const resources = node.value;
@@ -28193,7 +28589,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28193
28589
  delete bitJson.item;
28194
28590
  delete bitJson.lead;
28195
28591
  delete bitJson.pageNumber;
28196
- delete bitJson.sourcePageNumber;
28197
28592
  delete bitJson.marginNumber;
28198
28593
  delete bitJson.hint;
28199
28594
  delete bitJson.instruction;
@@ -28205,8 +28600,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28205
28600
  if (bitJson.lead == null || bitJson.lead?.length === 0) delete bitJson.lead;
28206
28601
  if (bitJson.pageNumber == null || bitJson.pageNumber?.length === 0)
28207
28602
  delete bitJson.pageNumber;
28208
- if (bitJson.sourcePageNumber == null || bitJson.sourcePageNumber?.length === 0)
28209
- delete bitJson.sourcePageNumber;
28210
28603
  if (bitJson.marginNumber == null || bitJson.marginNumber?.length === 0)
28211
28604
  delete bitJson.marginNumber;
28212
28605
  if (bitJson.hint == null || bitJson.hint?.length === 0) delete bitJson.hint;
@@ -28218,7 +28611,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28218
28611
  if (bitJson.hint == null) bitJson.hint = this.textDefault;
28219
28612
  if (bitJson.instruction == null) bitJson.instruction = this.textDefault;
28220
28613
  if (bitJson.pageNumber == null) bitJson.pageNumber = this.textDefault;
28221
- if (bitJson.sourcePageNumber == null) bitJson.sourcePageNumber = this.textDefault;
28222
28614
  if (bitJson.marginNumber == null) bitJson.marginNumber = this.textDefault;
28223
28615
  }
28224
28616
  if (bitJson.body == null) bitJson.body = this.bodyDefault;
@@ -29691,7 +30083,7 @@ var BitmarkPegParserValidator = class {
29691
30083
  let tagData = validTypeKeys.get(validTypeKey);
29692
30084
  if (!tagData && typeKey === TypeKey.Property) {
29693
30085
  const resourceKey = key.replace(/^@/, "&");
29694
- if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder) {
30086
+ if (resourceKey === ConfigKey.resource_backgroundWallpaper || resourceKey === ConfigKey.resource_imagePlaceholder || resourceKey === ConfigKey.resource_platformIcon || resourceKey === ConfigKey.resource_platformLogo || resourceKey === ConfigKey.resource_platformBackgroundImage) {
29695
30087
  tagData = validTypeKeys.get(resourceKey);
29696
30088
  if (tagData) {
29697
30089
  typeKey = TypeKey.Resource;
@@ -31968,7 +32360,7 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
31968
32360
  ...tags2
31969
32361
  });
31970
32362
  if (resource) {
31971
- if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder) {
32363
+ if (configKey === ConfigKey.resource_backgroundWallpaper || configKey === ConfigKey.resource_imagePlaceholder || configKey === ConfigKey.resource_platformIcon || configKey === ConfigKey.resource_platformLogo || configKey === ConfigKey.resource_platformBackgroundImage) {
31972
32364
  if (target.propertyStyleResources) target.propertyStyleResources[resourceType] = resource;
31973
32365
  } else {
31974
32366
  resources.push(resource);
@@ -32680,8 +33072,7 @@ var BitmarkPegParserProcessor = class {
32680
33072
  if (l > 0) result.item = result.itemLead[0];
32681
33073
  if (l > 1) result.lead = result.itemLead[1];
32682
33074
  if (l > 2) result.pageNumber = result.itemLead[2];
32683
- if (l > 3) result.sourcePageNumber = result.itemLead[3];
32684
- if (l > 4) result.marginNumber = result.itemLead[l - 1];
33075
+ if (l > 3) result.marginNumber = result.itemLead[l - 1];
32685
33076
  }
32686
33077
  if (inBit) {
32687
33078
  result.body = instance11.process(