@gmb/bitmark-parser-generator 4.11.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +113 -14
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +11 -0
- package/dist/browser/esm/index.d.ts +11 -0
- package/dist/browser/esm/index.js +113 -14
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +113 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +113 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1254,6 +1254,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1254
1254
|
group_mark: "group_mark";
|
|
1255
1255
|
group_bookCommon: "group_bookCommon";
|
|
1256
1256
|
group_learningPathCommon: "group_learningPathCommon";
|
|
1257
|
+
group_advertisingCommon: "group_advertisingCommon";
|
|
1257
1258
|
group_quizCommon: "group_quizCommon";
|
|
1258
1259
|
group_resourceBitTags: "group_resourceBitTags";
|
|
1259
1260
|
group_resourceCommon: "group_resourceCommon";
|
|
@@ -1288,6 +1289,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1288
1289
|
property_action: "@action";
|
|
1289
1290
|
property_activityType: "@activityType";
|
|
1290
1291
|
property_additionalSolutions: "@additionalSolutions";
|
|
1292
|
+
property_advertisingClickUrl: "@advertisingClickUrl";
|
|
1291
1293
|
property_ageRange: "@ageRange";
|
|
1292
1294
|
property_aiGenerated: "@aiGenerated";
|
|
1293
1295
|
property_allowedBit: "@allowedBit";
|
|
@@ -1549,6 +1551,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1549
1551
|
group_mark: "group_mark";
|
|
1550
1552
|
group_bookCommon: "group_bookCommon";
|
|
1551
1553
|
group_learningPathCommon: "group_learningPathCommon";
|
|
1554
|
+
group_advertisingCommon: "group_advertisingCommon";
|
|
1552
1555
|
group_quizCommon: "group_quizCommon";
|
|
1553
1556
|
group_resourceBitTags: "group_resourceBitTags";
|
|
1554
1557
|
group_resourceCommon: "group_resourceCommon";
|
|
@@ -1583,6 +1586,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1583
1586
|
property_action: "@action";
|
|
1584
1587
|
property_activityType: "@activityType";
|
|
1585
1588
|
property_additionalSolutions: "@additionalSolutions";
|
|
1589
|
+
property_advertisingClickUrl: "@advertisingClickUrl";
|
|
1586
1590
|
property_ageRange: "@ageRange";
|
|
1587
1591
|
property_aiGenerated: "@aiGenerated";
|
|
1588
1592
|
property_allowedBit: "@allowedBit";
|
|
@@ -2636,6 +2640,7 @@ interface BitJson {
|
|
|
2636
2640
|
mailingList: string;
|
|
2637
2641
|
buttonCaption: string;
|
|
2638
2642
|
callToActionUrl: string;
|
|
2643
|
+
advertisingClickUrl: string;
|
|
2639
2644
|
caption: JsonText;
|
|
2640
2645
|
quotedPerson: string;
|
|
2641
2646
|
reasonableNumOfChars: number;
|
|
@@ -3165,6 +3170,7 @@ interface Bit {
|
|
|
3165
3170
|
mailingList?: Property;
|
|
3166
3171
|
buttonCaption?: Property;
|
|
3167
3172
|
callToActionUrl?: Property;
|
|
3173
|
+
advertisingClickUrl?: Property;
|
|
3168
3174
|
caption?: TextAst;
|
|
3169
3175
|
quotedPerson?: Property;
|
|
3170
3176
|
partialAnswer?: Property;
|
|
@@ -3291,6 +3297,8 @@ declare const NodeType: Readonly<{
|
|
|
3291
3297
|
activityTypeValue: "activityTypeValue";
|
|
3292
3298
|
additionalSolutions: "additionalSolutions";
|
|
3293
3299
|
additionalSolutionsValue: "additionalSolutionsValue";
|
|
3300
|
+
advertisingClickUrl: "advertisingClickUrl";
|
|
3301
|
+
advertisingClickUrlValue: "advertisingClickUrlValue";
|
|
3294
3302
|
ageRange: "ageRange";
|
|
3295
3303
|
ageRangeValue: "ageRangeValue";
|
|
3296
3304
|
aiGenerated: "aiGenerated";
|
|
@@ -3855,6 +3863,8 @@ declare const NodeType: Readonly<{
|
|
|
3855
3863
|
activityTypeValue: "activityTypeValue";
|
|
3856
3864
|
additionalSolutions: "additionalSolutions";
|
|
3857
3865
|
additionalSolutionsValue: "additionalSolutionsValue";
|
|
3866
|
+
advertisingClickUrl: "advertisingClickUrl";
|
|
3867
|
+
advertisingClickUrlValue: "advertisingClickUrlValue";
|
|
3858
3868
|
ageRange: "ageRange";
|
|
3859
3869
|
ageRangeValue: "ageRangeValue";
|
|
3860
3870
|
aiGenerated: "aiGenerated";
|
|
@@ -5410,6 +5420,7 @@ declare class Builder extends BaseBuilder {
|
|
|
5410
5420
|
mailingList?: string;
|
|
5411
5421
|
buttonCaption?: string;
|
|
5412
5422
|
callToActionUrl?: string;
|
|
5423
|
+
advertisingClickUrl?: string;
|
|
5413
5424
|
caption?: JsonText;
|
|
5414
5425
|
quotedPerson?: string;
|
|
5415
5426
|
reasonableNumOfChars?: number;
|
|
@@ -1254,6 +1254,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1254
1254
|
group_mark: "group_mark";
|
|
1255
1255
|
group_bookCommon: "group_bookCommon";
|
|
1256
1256
|
group_learningPathCommon: "group_learningPathCommon";
|
|
1257
|
+
group_advertisingCommon: "group_advertisingCommon";
|
|
1257
1258
|
group_quizCommon: "group_quizCommon";
|
|
1258
1259
|
group_resourceBitTags: "group_resourceBitTags";
|
|
1259
1260
|
group_resourceCommon: "group_resourceCommon";
|
|
@@ -1288,6 +1289,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1288
1289
|
property_action: "@action";
|
|
1289
1290
|
property_activityType: "@activityType";
|
|
1290
1291
|
property_additionalSolutions: "@additionalSolutions";
|
|
1292
|
+
property_advertisingClickUrl: "@advertisingClickUrl";
|
|
1291
1293
|
property_ageRange: "@ageRange";
|
|
1292
1294
|
property_aiGenerated: "@aiGenerated";
|
|
1293
1295
|
property_allowedBit: "@allowedBit";
|
|
@@ -1549,6 +1551,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1549
1551
|
group_mark: "group_mark";
|
|
1550
1552
|
group_bookCommon: "group_bookCommon";
|
|
1551
1553
|
group_learningPathCommon: "group_learningPathCommon";
|
|
1554
|
+
group_advertisingCommon: "group_advertisingCommon";
|
|
1552
1555
|
group_quizCommon: "group_quizCommon";
|
|
1553
1556
|
group_resourceBitTags: "group_resourceBitTags";
|
|
1554
1557
|
group_resourceCommon: "group_resourceCommon";
|
|
@@ -1583,6 +1586,7 @@ declare const ConfigKey: Readonly<{
|
|
|
1583
1586
|
property_action: "@action";
|
|
1584
1587
|
property_activityType: "@activityType";
|
|
1585
1588
|
property_additionalSolutions: "@additionalSolutions";
|
|
1589
|
+
property_advertisingClickUrl: "@advertisingClickUrl";
|
|
1586
1590
|
property_ageRange: "@ageRange";
|
|
1587
1591
|
property_aiGenerated: "@aiGenerated";
|
|
1588
1592
|
property_allowedBit: "@allowedBit";
|
|
@@ -2636,6 +2640,7 @@ interface BitJson {
|
|
|
2636
2640
|
mailingList: string;
|
|
2637
2641
|
buttonCaption: string;
|
|
2638
2642
|
callToActionUrl: string;
|
|
2643
|
+
advertisingClickUrl: string;
|
|
2639
2644
|
caption: JsonText;
|
|
2640
2645
|
quotedPerson: string;
|
|
2641
2646
|
reasonableNumOfChars: number;
|
|
@@ -3165,6 +3170,7 @@ interface Bit {
|
|
|
3165
3170
|
mailingList?: Property;
|
|
3166
3171
|
buttonCaption?: Property;
|
|
3167
3172
|
callToActionUrl?: Property;
|
|
3173
|
+
advertisingClickUrl?: Property;
|
|
3168
3174
|
caption?: TextAst;
|
|
3169
3175
|
quotedPerson?: Property;
|
|
3170
3176
|
partialAnswer?: Property;
|
|
@@ -3291,6 +3297,8 @@ declare const NodeType: Readonly<{
|
|
|
3291
3297
|
activityTypeValue: "activityTypeValue";
|
|
3292
3298
|
additionalSolutions: "additionalSolutions";
|
|
3293
3299
|
additionalSolutionsValue: "additionalSolutionsValue";
|
|
3300
|
+
advertisingClickUrl: "advertisingClickUrl";
|
|
3301
|
+
advertisingClickUrlValue: "advertisingClickUrlValue";
|
|
3294
3302
|
ageRange: "ageRange";
|
|
3295
3303
|
ageRangeValue: "ageRangeValue";
|
|
3296
3304
|
aiGenerated: "aiGenerated";
|
|
@@ -3855,6 +3863,8 @@ declare const NodeType: Readonly<{
|
|
|
3855
3863
|
activityTypeValue: "activityTypeValue";
|
|
3856
3864
|
additionalSolutions: "additionalSolutions";
|
|
3857
3865
|
additionalSolutionsValue: "additionalSolutionsValue";
|
|
3866
|
+
advertisingClickUrl: "advertisingClickUrl";
|
|
3867
|
+
advertisingClickUrlValue: "advertisingClickUrlValue";
|
|
3858
3868
|
ageRange: "ageRange";
|
|
3859
3869
|
ageRangeValue: "ageRangeValue";
|
|
3860
3870
|
aiGenerated: "aiGenerated";
|
|
@@ -5410,6 +5420,7 @@ declare class Builder extends BaseBuilder {
|
|
|
5410
5420
|
mailingList?: string;
|
|
5411
5421
|
buttonCaption?: string;
|
|
5412
5422
|
callToActionUrl?: string;
|
|
5423
|
+
advertisingClickUrl?: string;
|
|
5413
5424
|
caption?: JsonText;
|
|
5414
5425
|
quotedPerson?: string;
|
|
5415
5426
|
reasonableNumOfChars?: number;
|
|
@@ -1056,6 +1056,7 @@ var groupKeys = {
|
|
|
1056
1056
|
group_mark: "group_mark",
|
|
1057
1057
|
group_bookCommon: "group_bookCommon",
|
|
1058
1058
|
group_learningPathCommon: "group_learningPathCommon",
|
|
1059
|
+
group_advertisingCommon: "group_advertisingCommon",
|
|
1059
1060
|
group_quizCommon: "group_quizCommon",
|
|
1060
1061
|
group_resourceBitTags: "group_resourceBitTags",
|
|
1061
1062
|
group_resourceCommon: "group_resourceCommon",
|
|
@@ -1099,6 +1100,7 @@ var propertyKeys = {
|
|
|
1099
1100
|
property_action: "@action",
|
|
1100
1101
|
property_activityType: "@activityType",
|
|
1101
1102
|
property_additionalSolutions: "@additionalSolutions",
|
|
1103
|
+
property_advertisingClickUrl: "@advertisingClickUrl",
|
|
1102
1104
|
property_ageRange: "@ageRange",
|
|
1103
1105
|
property_aiGenerated: "@aiGenerated",
|
|
1104
1106
|
property_allowedBit: "@allowedBit",
|
|
@@ -3303,6 +3305,17 @@ var GROUPS = {
|
|
|
3303
3305
|
}
|
|
3304
3306
|
]
|
|
3305
3307
|
},
|
|
3308
|
+
[ConfigKey.group_advertisingCommon]: {
|
|
3309
|
+
type: GroupConfigType.standard,
|
|
3310
|
+
description: "Common advertising tags",
|
|
3311
|
+
tags: [
|
|
3312
|
+
{
|
|
3313
|
+
key: ConfigKey.property_advertisingClickUrl,
|
|
3314
|
+
description: "The URL to which the advertisement should link",
|
|
3315
|
+
format: TagFormat.plainText
|
|
3316
|
+
}
|
|
3317
|
+
]
|
|
3318
|
+
},
|
|
3306
3319
|
[ConfigKey.group_quizCommon]: {
|
|
3307
3320
|
type: GroupConfigType.standard,
|
|
3308
3321
|
description: "Common quiz tags",
|
|
@@ -5215,67 +5228,145 @@ var BITS = {
|
|
|
5215
5228
|
[BitType.advertising]: {
|
|
5216
5229
|
since: "4.2.0",
|
|
5217
5230
|
baseBitType: BitType.article,
|
|
5218
|
-
description: "General advertising content bit"
|
|
5231
|
+
description: "General advertising content bit",
|
|
5232
|
+
tags: [
|
|
5233
|
+
{
|
|
5234
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5235
|
+
description: "Common advertising tags"
|
|
5236
|
+
}
|
|
5237
|
+
]
|
|
5219
5238
|
},
|
|
5220
5239
|
[BitType.advertisingAdvertorial]: {
|
|
5221
5240
|
since: "4.2.0",
|
|
5222
5241
|
baseBitType: BitType.article,
|
|
5223
|
-
description: "Advertorial content bit (sponsored article)"
|
|
5242
|
+
description: "Advertorial content bit (sponsored article)",
|
|
5243
|
+
tags: [
|
|
5244
|
+
{
|
|
5245
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5246
|
+
description: "Common advertising tags"
|
|
5247
|
+
}
|
|
5248
|
+
]
|
|
5224
5249
|
},
|
|
5225
5250
|
[BitType.advertisingCallToAction]: {
|
|
5226
5251
|
since: "4.2.0",
|
|
5227
5252
|
baseBitType: BitType.callToAction,
|
|
5228
|
-
description: "Call-to-action for advertising"
|
|
5253
|
+
description: "Call-to-action for advertising",
|
|
5254
|
+
tags: [
|
|
5255
|
+
{
|
|
5256
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5257
|
+
description: "Common advertising tags"
|
|
5258
|
+
}
|
|
5259
|
+
]
|
|
5229
5260
|
},
|
|
5230
5261
|
[BitType.advertisingCallToActionMeeting]: {
|
|
5231
5262
|
since: "4.2.0",
|
|
5232
5263
|
baseBitType: BitType.callToAction,
|
|
5233
|
-
description: "Call-to-action for meeting or appointment"
|
|
5264
|
+
description: "Call-to-action for meeting or appointment",
|
|
5265
|
+
tags: [
|
|
5266
|
+
{
|
|
5267
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5268
|
+
description: "Common advertising tags"
|
|
5269
|
+
}
|
|
5270
|
+
]
|
|
5234
5271
|
},
|
|
5235
5272
|
[BitType.advertisingBanner]: {
|
|
5236
5273
|
since: "4.2.0",
|
|
5237
5274
|
baseBitType: BitType.image,
|
|
5238
|
-
description: "Banner advertisement bit"
|
|
5275
|
+
description: "Banner advertisement bit",
|
|
5276
|
+
tags: [
|
|
5277
|
+
{
|
|
5278
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5279
|
+
description: "Common advertising tags"
|
|
5280
|
+
}
|
|
5281
|
+
]
|
|
5239
5282
|
},
|
|
5240
5283
|
[BitType.advertisingSkyscraper]: {
|
|
5241
5284
|
since: "4.2.0",
|
|
5242
5285
|
baseBitType: BitType.image,
|
|
5243
|
-
description: "Skyscraper (vertical) advertisement bit"
|
|
5286
|
+
description: "Skyscraper (vertical) advertisement bit",
|
|
5287
|
+
tags: [
|
|
5288
|
+
{
|
|
5289
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5290
|
+
description: "Common advertising tags"
|
|
5291
|
+
}
|
|
5292
|
+
]
|
|
5244
5293
|
},
|
|
5245
5294
|
[BitType.advertisingRectangle]: {
|
|
5246
5295
|
since: "4.2.0",
|
|
5247
5296
|
baseBitType: BitType.image,
|
|
5248
|
-
description: "Rectangle advertisement bit"
|
|
5297
|
+
description: "Rectangle advertisement bit",
|
|
5298
|
+
tags: [
|
|
5299
|
+
{
|
|
5300
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5301
|
+
description: "Common advertising tags"
|
|
5302
|
+
}
|
|
5303
|
+
]
|
|
5249
5304
|
},
|
|
5250
5305
|
[BitType.advertisingFullPage]: {
|
|
5251
5306
|
since: "4.2.0",
|
|
5252
5307
|
baseBitType: BitType.image,
|
|
5253
|
-
description: "Full-page advertisement bit"
|
|
5308
|
+
description: "Full-page advertisement bit",
|
|
5309
|
+
tags: [
|
|
5310
|
+
{
|
|
5311
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5312
|
+
description: "Common advertising tags"
|
|
5313
|
+
}
|
|
5314
|
+
]
|
|
5254
5315
|
},
|
|
5255
5316
|
[BitType.advertisingHalfPage]: {
|
|
5256
5317
|
since: "4.2.0",
|
|
5257
5318
|
baseBitType: BitType.image,
|
|
5258
|
-
description: "Half-page advertisement bit"
|
|
5319
|
+
description: "Half-page advertisement bit",
|
|
5320
|
+
tags: [
|
|
5321
|
+
{
|
|
5322
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5323
|
+
description: "Common advertising tags"
|
|
5324
|
+
}
|
|
5325
|
+
]
|
|
5259
5326
|
},
|
|
5260
5327
|
[BitType.advertisingQuarterPage]: {
|
|
5261
5328
|
since: "4.2.0",
|
|
5262
5329
|
baseBitType: BitType.image,
|
|
5263
|
-
description: "Quarter-page advertisement bit"
|
|
5330
|
+
description: "Quarter-page advertisement bit",
|
|
5331
|
+
tags: [
|
|
5332
|
+
{
|
|
5333
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5334
|
+
description: "Common advertising tags"
|
|
5335
|
+
}
|
|
5336
|
+
]
|
|
5264
5337
|
},
|
|
5265
5338
|
[BitType.advertisingClassifiedPage]: {
|
|
5266
5339
|
since: "4.2.0",
|
|
5267
5340
|
baseBitType: BitType.image,
|
|
5268
|
-
description: "Classifieds advertisement page bit"
|
|
5341
|
+
description: "Classifieds advertisement page bit",
|
|
5342
|
+
tags: [
|
|
5343
|
+
{
|
|
5344
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5345
|
+
description: "Common advertising tags"
|
|
5346
|
+
}
|
|
5347
|
+
]
|
|
5269
5348
|
},
|
|
5270
5349
|
[BitType.advertisingLandscape]: {
|
|
5271
5350
|
since: "4.2.0",
|
|
5272
5351
|
baseBitType: BitType.image,
|
|
5273
|
-
description: "Landscape format advertisement bit"
|
|
5352
|
+
description: "Landscape format advertisement bit",
|
|
5353
|
+
tags: [
|
|
5354
|
+
{
|
|
5355
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5356
|
+
description: "Common advertising tags"
|
|
5357
|
+
}
|
|
5358
|
+
]
|
|
5274
5359
|
},
|
|
5275
5360
|
[BitType.advertisingPortrait]: {
|
|
5276
5361
|
since: "4.2.0",
|
|
5277
5362
|
baseBitType: BitType.image,
|
|
5278
|
-
description: "Portrait format advertisement bit"
|
|
5363
|
+
description: "Portrait format advertisement bit",
|
|
5364
|
+
tags: [
|
|
5365
|
+
{
|
|
5366
|
+
key: ConfigKey.group_advertisingCommon,
|
|
5367
|
+
description: "Common advertising tags"
|
|
5368
|
+
}
|
|
5369
|
+
]
|
|
5279
5370
|
},
|
|
5280
5371
|
[BitType.cookPreparation]: {
|
|
5281
5372
|
since: "1.3.0",
|
|
@@ -9132,7 +9223,7 @@ var instance2 = new Config();
|
|
|
9132
9223
|
// src/generated/package_info.ts
|
|
9133
9224
|
var PACKAGE_INFO = {
|
|
9134
9225
|
"name": "@gmb/bitmark-parser-generator",
|
|
9135
|
-
"version": "4.
|
|
9226
|
+
"version": "4.12.0",
|
|
9136
9227
|
"author": "Get More Brain Ltd",
|
|
9137
9228
|
"license": "ISC",
|
|
9138
9229
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -9474,6 +9565,8 @@ var NodeType = superenum20({
|
|
|
9474
9565
|
activityTypeValue: "activityTypeValue",
|
|
9475
9566
|
additionalSolutions: "additionalSolutions",
|
|
9476
9567
|
additionalSolutionsValue: "additionalSolutionsValue",
|
|
9568
|
+
advertisingClickUrl: "advertisingClickUrl",
|
|
9569
|
+
advertisingClickUrlValue: "advertisingClickUrlValue",
|
|
9477
9570
|
ageRange: "ageRange",
|
|
9478
9571
|
ageRangeValue: "ageRangeValue",
|
|
9479
9572
|
aiGenerated: "aiGenerated",
|
|
@@ -22877,6 +22970,12 @@ var Builder = class extends BaseBuilder {
|
|
|
22877
22970
|
data.callToActionUrl,
|
|
22878
22971
|
options
|
|
22879
22972
|
),
|
|
22973
|
+
advertisingClickUrl: this.toAstProperty(
|
|
22974
|
+
bitType,
|
|
22975
|
+
ConfigKey.property_advertisingClickUrl,
|
|
22976
|
+
data.advertisingClickUrl,
|
|
22977
|
+
options
|
|
22978
|
+
),
|
|
22880
22979
|
caption: this.handleJsonText(context, TextLocation2.tag, data.caption),
|
|
22881
22980
|
quotedPerson: this.toAstProperty(
|
|
22882
22981
|
bitType,
|