@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/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",
@@ -1115,6 +1127,8 @@ var groupKeys = {
1115
1127
  group_mark: "group_mark",
1116
1128
  group_bookCommon: "group_bookCommon",
1117
1129
  group_learningPathCommon: "group_learningPathCommon",
1130
+ group_advertisingCommon: "group_advertisingCommon",
1131
+ group_platformColorsCommon: "group_platformColorsCommon",
1118
1132
  group_quizCommon: "group_quizCommon",
1119
1133
  group_resourceBitTags: "group_resourceBitTags",
1120
1134
  group_resourceCommon: "group_resourceCommon",
@@ -1158,6 +1172,7 @@ var propertyKeys = {
1158
1172
  property_action: "@action",
1159
1173
  property_activityType: "@activityType",
1160
1174
  property_additionalSolutions: "@additionalSolutions",
1175
+ property_advertisingClickUrl: "@advertisingClickUrl",
1161
1176
  property_ageRange: "@ageRange",
1162
1177
  property_aiGenerated: "@aiGenerated",
1163
1178
  property_allowedBit: "@allowedBit",
@@ -1168,6 +1183,8 @@ var propertyKeys = {
1168
1183
  property_author: "@author",
1169
1184
  property_autoplay: "@autoplay",
1170
1185
  property_availableClassifications: "@availableClassifications",
1186
+ property_brandColor: "@brandColor",
1187
+ property_brandColorName: "@brandColorName",
1171
1188
  property_blockId: "@blockId",
1172
1189
  property_book: "@book",
1173
1190
  property_bookAlias: "@bookAlias",
@@ -1234,6 +1251,7 @@ var propertyKeys = {
1234
1251
  property_imageSource: "@imageSource",
1235
1252
  property_index: "@index",
1236
1253
  property_internalComment: "@internalComment",
1254
+ property_internalPrintPdf: "@internalPrintPdf",
1237
1255
  property_isCaseSensitive: "@isCaseSensitive",
1238
1256
  property_isInfoOnly: "@isInfoOnly",
1239
1257
  property_isPublic: "@isPublic",
@@ -1274,6 +1292,18 @@ var propertyKeys = {
1274
1292
  property_partner: "@partner",
1275
1293
  // Deprecated, replaced by person
1276
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",
1277
1307
  property_person: "@person",
1278
1308
  property_pointerLeft: "@pointerLeft",
1279
1309
  property_pointerTop: "@pointerTop",
@@ -1323,6 +1353,7 @@ var propertyKeys = {
1323
1353
  property_size: "@size",
1324
1354
  property_slug: "@slug",
1325
1355
  property_sourceDocument: "@sourceDocument",
1356
+ property_sourceRL: "@sourceRL",
1326
1357
  property_spaceId: "@spaceId",
1327
1358
  property_src1x: "@src1x",
1328
1359
  property_src2x: "@src2x",
@@ -1397,6 +1428,9 @@ var resourceKeys = {
1397
1428
  resource_appLink: "&appLink",
1398
1429
  resource_websiteLink: "&websiteLink",
1399
1430
  resource_icon: "&icon",
1431
+ resource_platformBackgroundImage: "&platformBackgroundImage",
1432
+ resource_platformIcon: "&platformIcon",
1433
+ resource_platformLogo: "&platformLogo",
1400
1434
  resource_backgroundWallpaper: "&backgroundWallpaper",
1401
1435
  resource_imagePlaceholder: "&imagePlaceholder"
1402
1436
  };
@@ -1623,7 +1657,10 @@ var ResourceType = (0, import_superenum13.superenum)({
1623
1657
  // Aliases for image
1624
1658
  icon: "icon",
1625
1659
  backgroundWallpaper: "backgroundWallpaper",
1626
- imagePlaceholder: "imagePlaceholder"
1660
+ imagePlaceholder: "imagePlaceholder",
1661
+ platformIcon: "platformIcon",
1662
+ platformLogo: "platformLogo",
1663
+ platformBackgroundImage: "platformBackgroundImage"
1627
1664
  });
1628
1665
  function resourceTypeToConfigKey(type) {
1629
1666
  return `&${stringUtils.kebabToCamel(type)}`;
@@ -2638,6 +2675,11 @@ var GROUPS = {
2638
2675
  format: TagFormat.plainText,
2639
2676
  maxCount: Count.infinity
2640
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
+ },
2641
2683
  {
2642
2684
  key: ConfigKey.property_isTemplate,
2643
2685
  description: "If true, the bit is a template",
@@ -3284,6 +3326,11 @@ var GROUPS = {
3284
3326
  key: ConfigKey.property_sourceDocument,
3285
3327
  description: "Url of the source document for the book (for example, a PDF file)",
3286
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
3287
3334
  }
3288
3335
  ]
3289
3336
  },
@@ -3362,6 +3409,78 @@ var GROUPS = {
3362
3409
  }
3363
3410
  ]
3364
3411
  },
3412
+ [ConfigKey.group_advertisingCommon]: {
3413
+ type: GroupConfigType.standard,
3414
+ description: "Common advertising tags",
3415
+ tags: [
3416
+ {
3417
+ key: ConfigKey.property_advertisingClickUrl,
3418
+ description: "The URL to which the advertisement should link",
3419
+ format: TagFormat.plainText
3420
+ }
3421
+ ]
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
+ },
3365
3484
  [ConfigKey.group_quizCommon]: {
3366
3485
  type: GroupConfigType.standard,
3367
3486
  description: "Common quiz tags",
@@ -5274,67 +5393,145 @@ var BITS = {
5274
5393
  [BitType.advertising]: {
5275
5394
  since: "4.2.0",
5276
5395
  baseBitType: BitType.article,
5277
- description: "General advertising content bit"
5396
+ description: "General advertising content bit",
5397
+ tags: [
5398
+ {
5399
+ key: ConfigKey.group_advertisingCommon,
5400
+ description: "Common advertising tags"
5401
+ }
5402
+ ]
5278
5403
  },
5279
5404
  [BitType.advertisingAdvertorial]: {
5280
5405
  since: "4.2.0",
5281
5406
  baseBitType: BitType.article,
5282
- description: "Advertorial content bit (sponsored article)"
5407
+ description: "Advertorial content bit (sponsored article)",
5408
+ tags: [
5409
+ {
5410
+ key: ConfigKey.group_advertisingCommon,
5411
+ description: "Common advertising tags"
5412
+ }
5413
+ ]
5283
5414
  },
5284
5415
  [BitType.advertisingCallToAction]: {
5285
5416
  since: "4.2.0",
5286
5417
  baseBitType: BitType.callToAction,
5287
- description: "Call-to-action for advertising"
5418
+ description: "Call-to-action for advertising",
5419
+ tags: [
5420
+ {
5421
+ key: ConfigKey.group_advertisingCommon,
5422
+ description: "Common advertising tags"
5423
+ }
5424
+ ]
5288
5425
  },
5289
5426
  [BitType.advertisingCallToActionMeeting]: {
5290
5427
  since: "4.2.0",
5291
5428
  baseBitType: BitType.callToAction,
5292
- description: "Call-to-action for meeting or appointment"
5429
+ description: "Call-to-action for meeting or appointment",
5430
+ tags: [
5431
+ {
5432
+ key: ConfigKey.group_advertisingCommon,
5433
+ description: "Common advertising tags"
5434
+ }
5435
+ ]
5293
5436
  },
5294
5437
  [BitType.advertisingBanner]: {
5295
5438
  since: "4.2.0",
5296
5439
  baseBitType: BitType.image,
5297
- description: "Banner advertisement bit"
5440
+ description: "Banner advertisement bit",
5441
+ tags: [
5442
+ {
5443
+ key: ConfigKey.group_advertisingCommon,
5444
+ description: "Common advertising tags"
5445
+ }
5446
+ ]
5298
5447
  },
5299
5448
  [BitType.advertisingSkyscraper]: {
5300
5449
  since: "4.2.0",
5301
5450
  baseBitType: BitType.image,
5302
- description: "Skyscraper (vertical) advertisement bit"
5451
+ description: "Skyscraper (vertical) advertisement bit",
5452
+ tags: [
5453
+ {
5454
+ key: ConfigKey.group_advertisingCommon,
5455
+ description: "Common advertising tags"
5456
+ }
5457
+ ]
5303
5458
  },
5304
5459
  [BitType.advertisingRectangle]: {
5305
5460
  since: "4.2.0",
5306
5461
  baseBitType: BitType.image,
5307
- description: "Rectangle advertisement bit"
5462
+ description: "Rectangle advertisement bit",
5463
+ tags: [
5464
+ {
5465
+ key: ConfigKey.group_advertisingCommon,
5466
+ description: "Common advertising tags"
5467
+ }
5468
+ ]
5308
5469
  },
5309
5470
  [BitType.advertisingFullPage]: {
5310
5471
  since: "4.2.0",
5311
5472
  baseBitType: BitType.image,
5312
- description: "Full-page advertisement bit"
5473
+ description: "Full-page advertisement bit",
5474
+ tags: [
5475
+ {
5476
+ key: ConfigKey.group_advertisingCommon,
5477
+ description: "Common advertising tags"
5478
+ }
5479
+ ]
5313
5480
  },
5314
5481
  [BitType.advertisingHalfPage]: {
5315
5482
  since: "4.2.0",
5316
5483
  baseBitType: BitType.image,
5317
- description: "Half-page advertisement bit"
5484
+ description: "Half-page advertisement bit",
5485
+ tags: [
5486
+ {
5487
+ key: ConfigKey.group_advertisingCommon,
5488
+ description: "Common advertising tags"
5489
+ }
5490
+ ]
5318
5491
  },
5319
5492
  [BitType.advertisingQuarterPage]: {
5320
5493
  since: "4.2.0",
5321
5494
  baseBitType: BitType.image,
5322
- description: "Quarter-page advertisement bit"
5495
+ description: "Quarter-page advertisement bit",
5496
+ tags: [
5497
+ {
5498
+ key: ConfigKey.group_advertisingCommon,
5499
+ description: "Common advertising tags"
5500
+ }
5501
+ ]
5323
5502
  },
5324
5503
  [BitType.advertisingClassifiedPage]: {
5325
5504
  since: "4.2.0",
5326
5505
  baseBitType: BitType.image,
5327
- description: "Classifieds advertisement page bit"
5506
+ description: "Classifieds advertisement page bit",
5507
+ tags: [
5508
+ {
5509
+ key: ConfigKey.group_advertisingCommon,
5510
+ description: "Common advertising tags"
5511
+ }
5512
+ ]
5328
5513
  },
5329
5514
  [BitType.advertisingLandscape]: {
5330
5515
  since: "4.2.0",
5331
5516
  baseBitType: BitType.image,
5332
- description: "Landscape format advertisement bit"
5517
+ description: "Landscape format advertisement bit",
5518
+ tags: [
5519
+ {
5520
+ key: ConfigKey.group_advertisingCommon,
5521
+ description: "Common advertising tags"
5522
+ }
5523
+ ]
5333
5524
  },
5334
5525
  [BitType.advertisingPortrait]: {
5335
5526
  since: "4.2.0",
5336
5527
  baseBitType: BitType.image,
5337
- description: "Portrait format advertisement bit"
5528
+ description: "Portrait format advertisement bit",
5529
+ tags: [
5530
+ {
5531
+ key: ConfigKey.group_advertisingCommon,
5532
+ description: "Common advertising tags"
5533
+ }
5534
+ ]
5338
5535
  },
5339
5536
  [BitType.cookPreparation]: {
5340
5537
  since: "1.3.0",
@@ -7085,6 +7282,23 @@ var BITS = {
7085
7282
  baseBitType: BitType.interview,
7086
7283
  description: "Bot interview bit, used to create bot interviews in articles or books"
7087
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
+ },
7088
7302
  [BitType.learningPathBook]: {
7089
7303
  since: "1.3.0",
7090
7304
  baseBitType: BitType._standard,
@@ -7843,6 +8057,160 @@ var BITS = {
7843
8057
  baseBitType: BitType.image,
7844
8058
  description: "Photo bit, used to create photo bits in articles or books"
7845
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
+ },
7846
8214
  [BitType.quote]: {
7847
8215
  since: "1.3.0",
7848
8216
  baseBitType: BitType._standard,
@@ -9191,7 +9559,7 @@ var instance2 = new Config();
9191
9559
  // src/generated/package_info.ts
9192
9560
  var PACKAGE_INFO = {
9193
9561
  "name": "@gmb/bitmark-parser-generator",
9194
- "version": "4.11.0",
9562
+ "version": "4.13.0",
9195
9563
  "author": "Get More Brain Ltd",
9196
9564
  "license": "ISC",
9197
9565
  "description": "A bitmark parser and generator using Peggy.js"
@@ -9533,7 +9901,13 @@ var NodeType = (0, import_superenum20.superenum)({
9533
9901
  activityTypeValue: "activityTypeValue",
9534
9902
  additionalSolutions: "additionalSolutions",
9535
9903
  additionalSolutionsValue: "additionalSolutionsValue",
9904
+ advertisingClickUrl: "advertisingClickUrl",
9905
+ advertisingClickUrlValue: "advertisingClickUrlValue",
9536
9906
  ageRange: "ageRange",
9907
+ brandColor: "brandColor",
9908
+ brandColorValue: "brandColorValue",
9909
+ brandColorName: "brandColorName",
9910
+ brandColorNameValue: "brandColorNameValue",
9537
9911
  ageRangeValue: "ageRangeValue",
9538
9912
  aiGenerated: "aiGenerated",
9539
9913
  aiGeneratedValue: "aiGeneratedValue",
@@ -9764,6 +10138,8 @@ var NodeType = (0, import_superenum20.superenum)({
9764
10138
  instruction: "instruction",
9765
10139
  internalComment: "internalComment",
9766
10140
  internalCommentValue: "internalCommentValue",
10141
+ internalPrintPdf: "internalPrintPdf",
10142
+ internalPrintPdfValue: "internalPrintPdfValue",
9767
10143
  isCaseSensitive: "isCaseSensitive",
9768
10144
  isCommented: "isCommented",
9769
10145
  isCorrect: "isCorrect",
@@ -9866,6 +10242,36 @@ var NodeType = (0, import_superenum20.superenum)({
9866
10242
  partialAnswerValue: "partialAnswerValue",
9867
10243
  path: "path",
9868
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",
9869
10275
  person: "person",
9870
10276
  pointerLeft: "pointerLeft",
9871
10277
  pointerLeftValue: "pointerLeftValue",
@@ -9984,7 +10390,8 @@ var NodeType = (0, import_superenum20.superenum)({
9984
10390
  solutionsValue: "solutionsValue",
9985
10391
  sourceDocument: "sourceDocument",
9986
10392
  sourceDocumentValue: "sourceDocumentValue",
9987
- sourcePageNumber: "sourcePageNumber",
10393
+ sourceRL: "sourceRL",
10394
+ sourceRLValue: "sourceRLValue",
9988
10395
  spaceId: "spaceId",
9989
10396
  spaceIdValue: "spaceIdValue",
9990
10397
  src: "src",
@@ -21383,6 +21790,9 @@ var ResourceBuilder = class extends BaseBuilder {
21383
21790
  case ResourceType.backgroundWallpaper:
21384
21791
  case ResourceType.imagePlaceholder:
21385
21792
  case ResourceType.icon:
21793
+ case ResourceType.platformIcon:
21794
+ case ResourceType.platformLogo:
21795
+ case ResourceType.platformBackgroundImage:
21386
21796
  node = this.imageResource(context, finalData, type);
21387
21797
  break;
21388
21798
  // case ResourceType.imageResponsive: {
@@ -22419,6 +22829,7 @@ var Builder = class extends BaseBuilder {
22419
22829
  data.jupyterExecutionCount,
22420
22830
  options
22421
22831
  ),
22832
+ sourceRL: this.toAstProperty(bitType, ConfigKey.property_sourceRL, data.sourceRL, options),
22422
22833
  isPublic: this.toAstProperty(bitType, ConfigKey.property_isPublic, data.isPublic, options),
22423
22834
  isTemplate: this.toAstProperty(
22424
22835
  bitType,
@@ -22936,6 +23347,24 @@ var Builder = class extends BaseBuilder {
22936
23347
  data.callToActionUrl,
22937
23348
  options
22938
23349
  ),
23350
+ advertisingClickUrl: this.toAstProperty(
23351
+ bitType,
23352
+ ConfigKey.property_advertisingClickUrl,
23353
+ data.advertisingClickUrl,
23354
+ options
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
+ ),
22939
23368
  caption: this.handleJsonText(context, TextLocation.tag, data.caption),
22940
23369
  quotedPerson: this.toAstProperty(
22941
23370
  bitType,
@@ -22999,6 +23428,12 @@ var Builder = class extends BaseBuilder {
22999
23428
  data.sourceDocument,
23000
23429
  options
23001
23430
  ),
23431
+ internalPrintPdf: this.toAstProperty(
23432
+ bitType,
23433
+ ConfigKey.property_internalPrintPdf,
23434
+ data.internalPrintPdf,
23435
+ options
23436
+ ),
23002
23437
  tocResource: this.toAstProperty(
23003
23438
  bitType,
23004
23439
  ConfigKey.property_tocResource,
@@ -23012,6 +23447,81 @@ var Builder = class extends BaseBuilder {
23012
23447
  options
23013
23448
  ),
23014
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),
23015
23525
  productId: this.toAstProperty(bitType, ConfigKey.property_productId, data.productId, options),
23016
23526
  product: this.toAstProperty(bitType, ConfigKey.property_product, data.product, options),
23017
23527
  // productList: this.toAstProperty(
@@ -23083,7 +23593,6 @@ var Builder = class extends BaseBuilder {
23083
23593
  item: this.handleJsonText(context, TextLocation.tag, data.item),
23084
23594
  lead: this.handleJsonText(context, TextLocation.tag, data.lead),
23085
23595
  pageNumber: this.handleJsonText(context, TextLocation.tag, data.pageNumber),
23086
- sourcePageNumber: this.handleJsonText(context, TextLocation.tag, data.sourcePageNumber),
23087
23596
  marginNumber: this.handleJsonText(context, TextLocation.tag, data.marginNumber),
23088
23597
  hint: this.handleJsonText(context, TextLocation.tag, data.hint),
23089
23598
  instruction: this.handleJsonText(context, TextLocation.tag, data.instruction),
@@ -23186,15 +23695,7 @@ var Builder = class extends BaseBuilder {
23186
23695
  objectUtils.removeUnwantedProperties(node, {
23187
23696
  ignoreAllFalse: true,
23188
23697
  ignoreUndefined: ["example"],
23189
- ignoreEmptyArrays: [
23190
- "item",
23191
- "lead",
23192
- "pageNumber",
23193
- "sourcePageNumber",
23194
- "marginNumber",
23195
- "hint",
23196
- "instruction"
23197
- ]
23698
+ ignoreEmptyArrays: ["item", "lead", "pageNumber", "marginNumber", "hint", "instruction"]
23198
23699
  });
23199
23700
  return nodeValidator.validateBit(node);
23200
23701
  }
@@ -25507,7 +26008,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25507
26008
  if (this.isEmptyText(item)) return false;
25508
26009
  if (!this.isEmptyText(parent?.value?.lead)) return true;
25509
26010
  if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
25510
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25511
26011
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25512
26012
  this.writeNL_IfNotChain(route);
25513
26013
  this.writeOPC();
@@ -25521,7 +26021,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25521
26021
  const parent = this.getParentNode(route);
25522
26022
  if (this.isEmptyText(lead)) return false;
25523
26023
  if (!this.isEmptyText(parent?.value?.pageNumber)) return true;
25524
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25525
26024
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25526
26025
  this.writeNL_IfNotChain(route);
25527
26026
  this.writeOPC();
@@ -25537,7 +26036,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25537
26036
  const pageNumber = node.value;
25538
26037
  const parent = this.getParentNode(route);
25539
26038
  if (this.isEmptyText(pageNumber)) return false;
25540
- if (!this.isEmptyText(parent?.value?.sourcePageNumber)) return true;
25541
26039
  if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25542
26040
  this.writeNL_IfNotChain(route);
25543
26041
  this.writeOPC();
@@ -25551,31 +26049,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25551
26049
  this.writeCL();
25552
26050
  return true;
25553
26051
  }
25554
- // bitmarkAst -> bits -> bitsValue -> sourcePageNumber
25555
- enter_sourcePageNumber(node, route) {
25556
- const sourcePageNumber = node.value;
25557
- const parent = this.getParentNode(route);
25558
- if (this.isEmptyText(sourcePageNumber)) return false;
25559
- if (!this.isEmptyText(parent?.value?.marginNumber)) return true;
25560
- this.writeNL_IfNotChain(route);
25561
- this.writeOPC();
25562
- this.writeTextOrValue(parent?.value?.item ?? "", TextFormat.bitmarkText, TextLocation.tag);
25563
- this.writeCL();
25564
- this.writeOPC();
25565
- this.writeTextOrValue(parent?.value?.lead ?? "", TextFormat.bitmarkText, TextLocation.tag);
25566
- this.writeCL();
25567
- this.writeOPC();
25568
- this.writeTextOrValue(
25569
- parent?.value?.pageNumber ?? "",
25570
- TextFormat.bitmarkText,
25571
- TextLocation.tag
25572
- );
25573
- this.writeCL();
25574
- this.writeOPC();
25575
- this.writeTextOrValue(sourcePageNumber ?? "", TextFormat.bitmarkText, TextLocation.tag);
25576
- this.writeCL();
25577
- return true;
25578
- }
25579
26052
  // bitmarkAst -> bits -> bitsValue -> marginNumber
25580
26053
  enter_marginNumber(node, route) {
25581
26054
  const marginNumber = node.value;
@@ -25596,13 +26069,6 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
25596
26069
  );
25597
26070
  this.writeCL();
25598
26071
  this.writeOPC();
25599
- this.writeTextOrValue(
25600
- parent?.value?.sourcePageNumber ?? "",
25601
- TextFormat.bitmarkText,
25602
- TextLocation.tag
25603
- );
25604
- this.writeCL();
25605
- this.writeOPC();
25606
26072
  this.writeTextOrValue(marginNumber, TextFormat.bitmarkText, TextLocation.tag);
25607
26073
  this.writeCL();
25608
26074
  return true;
@@ -26157,6 +26623,27 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
26157
26623
  this.writePropertyStyleResource(node.key, resource);
26158
26624
  return true;
26159
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
+ }
26160
26647
  exit_imagePlaceholder(_node, _route) {
26161
26648
  }
26162
26649
  // bitmarkAst -> bits -> bitsValue -> posterImage
@@ -27427,10 +27914,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
27427
27914
  enter_pageNumber(node, route) {
27428
27915
  return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
27429
27916
  }
27430
- // bitmarkAst -> bits -> bitsValue -> sourcePageNumber
27431
- enter_sourcePageNumber(node, route) {
27432
- return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
27433
- }
27434
27917
  // bitmarkAst -> bits -> bitsValue -> marginNumber
27435
27918
  enter_marginNumber(node, route) {
27436
27919
  return this.standardHandler(node, route, NodeType.bitsValue, { array: true });
@@ -27717,6 +28200,18 @@ var JsonGenerator = class extends AstWalkerGenerator {
27717
28200
  enter_imagePlaceholder(node, route) {
27718
28201
  return this.standardHandler(node, route, NodeType.bitsValue, { array: false });
27719
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
+ }
27720
28215
  // bitmarkAst -> bits -> bitsValue -> resources
27721
28216
  enter_resources(node, route) {
27722
28217
  const resources = node.value;
@@ -28153,7 +28648,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28153
28648
  delete bitJson.item;
28154
28649
  delete bitJson.lead;
28155
28650
  delete bitJson.pageNumber;
28156
- delete bitJson.sourcePageNumber;
28157
28651
  delete bitJson.marginNumber;
28158
28652
  delete bitJson.hint;
28159
28653
  delete bitJson.instruction;
@@ -28165,8 +28659,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28165
28659
  if (bitJson.lead == null || bitJson.lead?.length === 0) delete bitJson.lead;
28166
28660
  if (bitJson.pageNumber == null || bitJson.pageNumber?.length === 0)
28167
28661
  delete bitJson.pageNumber;
28168
- if (bitJson.sourcePageNumber == null || bitJson.sourcePageNumber?.length === 0)
28169
- delete bitJson.sourcePageNumber;
28170
28662
  if (bitJson.marginNumber == null || bitJson.marginNumber?.length === 0)
28171
28663
  delete bitJson.marginNumber;
28172
28664
  if (bitJson.hint == null || bitJson.hint?.length === 0) delete bitJson.hint;
@@ -28178,7 +28670,6 @@ var JsonGenerator = class extends AstWalkerGenerator {
28178
28670
  if (bitJson.hint == null) bitJson.hint = this.textDefault;
28179
28671
  if (bitJson.instruction == null) bitJson.instruction = this.textDefault;
28180
28672
  if (bitJson.pageNumber == null) bitJson.pageNumber = this.textDefault;
28181
- if (bitJson.sourcePageNumber == null) bitJson.sourcePageNumber = this.textDefault;
28182
28673
  if (bitJson.marginNumber == null) bitJson.marginNumber = this.textDefault;
28183
28674
  }
28184
28675
  if (bitJson.body == null) bitJson.body = this.bodyDefault;
@@ -29651,7 +30142,7 @@ var BitmarkPegParserValidator = class {
29651
30142
  let tagData = validTypeKeys.get(validTypeKey);
29652
30143
  if (!tagData && typeKey === TypeKey.Property) {
29653
30144
  const resourceKey = key.replace(/^@/, "&");
29654
- 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) {
29655
30146
  tagData = validTypeKeys.get(resourceKey);
29656
30147
  if (tagData) {
29657
30148
  typeKey = TypeKey.Resource;
@@ -31928,7 +32419,7 @@ function resourceContentProcessor(context, _contentDepth, tagsConfig, content, t
31928
32419
  ...tags2
31929
32420
  });
31930
32421
  if (resource) {
31931
- 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) {
31932
32423
  if (target.propertyStyleResources) target.propertyStyleResources[resourceType] = resource;
31933
32424
  } else {
31934
32425
  resources.push(resource);
@@ -32640,8 +33131,7 @@ var BitmarkPegParserProcessor = class {
32640
33131
  if (l > 0) result.item = result.itemLead[0];
32641
33132
  if (l > 1) result.lead = result.itemLead[1];
32642
33133
  if (l > 2) result.pageNumber = result.itemLead[2];
32643
- if (l > 3) result.sourcePageNumber = result.itemLead[3];
32644
- if (l > 4) result.marginNumber = result.itemLead[l - 1];
33134
+ if (l > 3) result.marginNumber = result.itemLead[l - 1];
32645
33135
  }
32646
33136
  if (inBit) {
32647
33137
  result.body = instance11.process(