@gmb/bitmark-parser-generator 4.5.0 → 4.7.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 +106 -23
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +35 -0
- package/dist/browser/esm/index.d.ts +35 -0
- package/dist/browser/esm/index.js +106 -23
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +106 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +106 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1110,6 +1110,7 @@ var propertyKeys = {
|
|
|
1110
1110
|
property_bookDiff: "@bookDiff",
|
|
1111
1111
|
property_bot: "@bot",
|
|
1112
1112
|
property_bubbleTag: "@bubbleTag",
|
|
1113
|
+
property_extractorTag: "@extractorTag",
|
|
1113
1114
|
property_buttonCaption: "@buttonCaption",
|
|
1114
1115
|
property_callToActionUrl: "@callToActionUrl",
|
|
1115
1116
|
property_caption: "@caption",
|
|
@@ -1260,6 +1261,7 @@ var propertyKeys = {
|
|
|
1260
1261
|
property_src2x: "@src2x",
|
|
1261
1262
|
property_src3x: "@src3x",
|
|
1262
1263
|
property_src4x: "@src4x",
|
|
1264
|
+
property_srcAlt: "@srcAlt",
|
|
1263
1265
|
property_stripePricingTableId: "@stripePricingTableId",
|
|
1264
1266
|
property_stripePublishableKey: "@stripePublishableKey",
|
|
1265
1267
|
property_subject: "@subject",
|
|
@@ -2722,6 +2724,12 @@ var GROUPS = {
|
|
|
2722
2724
|
format: TagFormat.plainText,
|
|
2723
2725
|
maxCount: Count.infinity
|
|
2724
2726
|
},
|
|
2727
|
+
{
|
|
2728
|
+
key: ConfigKey.property_extractorTag,
|
|
2729
|
+
description: "The extractor tag(s) for the bit",
|
|
2730
|
+
format: TagFormat.plainText,
|
|
2731
|
+
maxCount: Count.infinity
|
|
2732
|
+
},
|
|
2725
2733
|
{
|
|
2726
2734
|
key: ConfigKey.property_levelCEFRp,
|
|
2727
2735
|
description: "The CEFRp level for the bit",
|
|
@@ -3275,6 +3283,12 @@ var GROUPS = {
|
|
|
3275
3283
|
description: "If true, the quiz solutions are revealed",
|
|
3276
3284
|
format: TagFormat.boolean
|
|
3277
3285
|
// defaultValue: 'false',
|
|
3286
|
+
},
|
|
3287
|
+
{
|
|
3288
|
+
key: ConfigKey.property_additionalSolutions,
|
|
3289
|
+
description: "Additional solutions",
|
|
3290
|
+
format: TagFormat.plainText,
|
|
3291
|
+
maxCount: Count.infinity
|
|
3278
3292
|
}
|
|
3279
3293
|
]
|
|
3280
3294
|
},
|
|
@@ -3330,6 +3344,12 @@ var GROUPS = {
|
|
|
3330
3344
|
key: ConfigKey.property_search,
|
|
3331
3345
|
description: "The search text for the resource",
|
|
3332
3346
|
format: TagFormat.plainText
|
|
3347
|
+
},
|
|
3348
|
+
{
|
|
3349
|
+
key: ConfigKey.property_srcAlt,
|
|
3350
|
+
description: "An alternative source for the resource",
|
|
3351
|
+
format: TagFormat.plainText,
|
|
3352
|
+
maxCount: Count.infinity
|
|
3333
3353
|
}
|
|
3334
3354
|
]
|
|
3335
3355
|
},
|
|
@@ -4893,12 +4913,6 @@ var BITS = {
|
|
|
4893
4913
|
description: "If the cloze solutions should be strikethrough",
|
|
4894
4914
|
format: TagFormat.boolean
|
|
4895
4915
|
},
|
|
4896
|
-
{
|
|
4897
|
-
key: ConfigKey.property_additionalSolutions,
|
|
4898
|
-
description: "Additional solutions for the cloze quiz",
|
|
4899
|
-
format: TagFormat.plainText,
|
|
4900
|
-
maxCount: Count.infinity
|
|
4901
|
-
},
|
|
4902
4916
|
{
|
|
4903
4917
|
key: ConfigKey.group_gap,
|
|
4904
4918
|
description: "Tags for gaps in cloze bits"
|
|
@@ -5426,12 +5440,6 @@ var BITS = {
|
|
|
5426
5440
|
description: "Sample solution for the essay, used as a reference answer",
|
|
5427
5441
|
format: TagFormat.plainText
|
|
5428
5442
|
},
|
|
5429
|
-
{
|
|
5430
|
-
key: ConfigKey.property_additionalSolutions,
|
|
5431
|
-
description: "Additional solutions for the essay, used for alternative answers",
|
|
5432
|
-
format: TagFormat.plainText,
|
|
5433
|
-
maxCount: Count.infinity
|
|
5434
|
-
},
|
|
5435
5443
|
{
|
|
5436
5444
|
key: ConfigKey.property_partialAnswer,
|
|
5437
5445
|
description: "Partial answer for the essay, used to indicate incomplete answers",
|
|
@@ -9063,7 +9071,7 @@ var instance2 = new Config();
|
|
|
9063
9071
|
// src/generated/package_info.ts
|
|
9064
9072
|
var PACKAGE_INFO = {
|
|
9065
9073
|
"name": "@gmb/bitmark-parser-generator",
|
|
9066
|
-
"version": "4.
|
|
9074
|
+
"version": "4.7.0",
|
|
9067
9075
|
"author": "Get More Brain Ltd",
|
|
9068
9076
|
"license": "ISC",
|
|
9069
9077
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -9471,6 +9479,8 @@ var NodeType = superenum20({
|
|
|
9471
9479
|
botValue: "botValue",
|
|
9472
9480
|
bubbleTag: "bubbleTag",
|
|
9473
9481
|
bubbleTagValue: "bubbleTagValue",
|
|
9482
|
+
extractorTag: "extractorTag",
|
|
9483
|
+
extractorTagValue: "extractorTagValue",
|
|
9474
9484
|
buttonCaption: "buttonCaption",
|
|
9475
9485
|
buttonCaptionValue: "buttonCaptionValue",
|
|
9476
9486
|
callToActionUrl: "callToActionUrl",
|
|
@@ -9851,6 +9861,8 @@ var NodeType = superenum20({
|
|
|
9851
9861
|
spaceId: "spaceId",
|
|
9852
9862
|
spaceIdValue: "spaceIdValue",
|
|
9853
9863
|
src: "src",
|
|
9864
|
+
srcAlt: "srcAlt",
|
|
9865
|
+
srcAltValue: "srcAltValue",
|
|
9854
9866
|
src1x: "src1x",
|
|
9855
9867
|
src2x: "src2x",
|
|
9856
9868
|
src3x: "src3x",
|
|
@@ -21033,6 +21045,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21033
21045
|
type,
|
|
21034
21046
|
// Generic (except Article / Document)
|
|
21035
21047
|
value: url,
|
|
21048
|
+
// Alternative source
|
|
21049
|
+
srcAlt: data.srcAlt,
|
|
21036
21050
|
// ImageLikeResource / AudioLikeResource / VideoLikeResource / Article / Document
|
|
21037
21051
|
format: data.format,
|
|
21038
21052
|
// ImageLikeResource
|
|
@@ -21207,6 +21221,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21207
21221
|
imageResource(context, data, __typeAlias) {
|
|
21208
21222
|
const {
|
|
21209
21223
|
value,
|
|
21224
|
+
srcAlt,
|
|
21210
21225
|
src1x,
|
|
21211
21226
|
src2x,
|
|
21212
21227
|
src3x,
|
|
@@ -21239,6 +21254,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21239
21254
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21240
21255
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21241
21256
|
src: value ?? "",
|
|
21257
|
+
srcAlt: srcAlt ?? void 0,
|
|
21242
21258
|
src1x: src1x ?? void 0,
|
|
21243
21259
|
src2x: src2x ?? void 0,
|
|
21244
21260
|
src3x: src3x ?? void 0,
|
|
@@ -21271,6 +21287,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21271
21287
|
imageLinkResource(context, data) {
|
|
21272
21288
|
const {
|
|
21273
21289
|
value,
|
|
21290
|
+
srcAlt,
|
|
21274
21291
|
src1x,
|
|
21275
21292
|
src2x,
|
|
21276
21293
|
src3x,
|
|
@@ -21294,6 +21311,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21294
21311
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21295
21312
|
// src: value ?? '',
|
|
21296
21313
|
url: value ?? "",
|
|
21314
|
+
srcAlt: srcAlt ?? void 0,
|
|
21297
21315
|
src1x: src1x ?? void 0,
|
|
21298
21316
|
src2x: src2x ?? void 0,
|
|
21299
21317
|
src3x: src3x ?? void 0,
|
|
@@ -21325,7 +21343,18 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21325
21343
|
* @returns
|
|
21326
21344
|
*/
|
|
21327
21345
|
audioResource(context, data) {
|
|
21328
|
-
const {
|
|
21346
|
+
const {
|
|
21347
|
+
value,
|
|
21348
|
+
srcAlt,
|
|
21349
|
+
duration,
|
|
21350
|
+
mute,
|
|
21351
|
+
autoplay,
|
|
21352
|
+
license,
|
|
21353
|
+
copyright,
|
|
21354
|
+
showInIndex,
|
|
21355
|
+
caption,
|
|
21356
|
+
search
|
|
21357
|
+
} = data;
|
|
21329
21358
|
const node = {
|
|
21330
21359
|
type: ResourceType.audio,
|
|
21331
21360
|
__typeAlias: ResourceType.audio,
|
|
@@ -21334,6 +21363,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21334
21363
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21335
21364
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21336
21365
|
src: value ?? "",
|
|
21366
|
+
srcAlt: srcAlt ?? void 0,
|
|
21337
21367
|
duration: duration ?? void 0,
|
|
21338
21368
|
mute: mute ?? void 0,
|
|
21339
21369
|
autoplay: autoplay ?? void 0,
|
|
@@ -21358,7 +21388,18 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21358
21388
|
* @returns
|
|
21359
21389
|
*/
|
|
21360
21390
|
audioEmbedResource(context, data) {
|
|
21361
|
-
const {
|
|
21391
|
+
const {
|
|
21392
|
+
value,
|
|
21393
|
+
srcAlt,
|
|
21394
|
+
duration,
|
|
21395
|
+
mute,
|
|
21396
|
+
autoplay,
|
|
21397
|
+
license,
|
|
21398
|
+
copyright,
|
|
21399
|
+
showInIndex,
|
|
21400
|
+
caption,
|
|
21401
|
+
search
|
|
21402
|
+
} = data;
|
|
21362
21403
|
const node = {
|
|
21363
21404
|
type: ResourceType.audioEmbed,
|
|
21364
21405
|
__typeAlias: ResourceType.audioEmbed,
|
|
@@ -21367,6 +21408,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21367
21408
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21368
21409
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21369
21410
|
src: value ?? "",
|
|
21411
|
+
srcAlt: srcAlt ?? void 0,
|
|
21370
21412
|
duration: duration ?? void 0,
|
|
21371
21413
|
mute: mute ?? void 0,
|
|
21372
21414
|
autoplay: autoplay ?? void 0,
|
|
@@ -21396,7 +21438,18 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21396
21438
|
* @returns
|
|
21397
21439
|
*/
|
|
21398
21440
|
audioLinkResource(context, data) {
|
|
21399
|
-
const {
|
|
21441
|
+
const {
|
|
21442
|
+
value,
|
|
21443
|
+
srcAlt,
|
|
21444
|
+
duration,
|
|
21445
|
+
mute,
|
|
21446
|
+
autoplay,
|
|
21447
|
+
license,
|
|
21448
|
+
copyright,
|
|
21449
|
+
showInIndex,
|
|
21450
|
+
caption,
|
|
21451
|
+
search
|
|
21452
|
+
} = data;
|
|
21400
21453
|
const node = {
|
|
21401
21454
|
type: ResourceType.audioLink,
|
|
21402
21455
|
__typeAlias: ResourceType.audioLink,
|
|
@@ -21406,6 +21459,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21406
21459
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21407
21460
|
// src: value ?? '',
|
|
21408
21461
|
url: value ?? "",
|
|
21462
|
+
srcAlt: srcAlt ?? void 0,
|
|
21409
21463
|
duration: duration ?? void 0,
|
|
21410
21464
|
mute: mute ?? void 0,
|
|
21411
21465
|
autoplay: autoplay ?? void 0,
|
|
@@ -21434,6 +21488,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21434
21488
|
videoResource(context, data) {
|
|
21435
21489
|
const {
|
|
21436
21490
|
value,
|
|
21491
|
+
srcAlt,
|
|
21437
21492
|
width,
|
|
21438
21493
|
height,
|
|
21439
21494
|
duration,
|
|
@@ -21458,6 +21513,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21458
21513
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21459
21514
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21460
21515
|
src: value ?? "",
|
|
21516
|
+
srcAlt: srcAlt ?? void 0,
|
|
21461
21517
|
width: width ?? null,
|
|
21462
21518
|
height: height ?? null,
|
|
21463
21519
|
duration: duration ?? void 0,
|
|
@@ -21498,6 +21554,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21498
21554
|
videoEmbedResource(context, data) {
|
|
21499
21555
|
const {
|
|
21500
21556
|
value,
|
|
21557
|
+
srcAlt,
|
|
21501
21558
|
width,
|
|
21502
21559
|
height,
|
|
21503
21560
|
duration,
|
|
@@ -21523,6 +21580,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21523
21580
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21524
21581
|
// src: value ?? '',
|
|
21525
21582
|
url: value ?? "",
|
|
21583
|
+
srcAlt: srcAlt ?? void 0,
|
|
21526
21584
|
width: width ?? null,
|
|
21527
21585
|
height: height ?? null,
|
|
21528
21586
|
duration: duration ?? void 0,
|
|
@@ -21562,6 +21620,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21562
21620
|
videoLinkResource(context, data) {
|
|
21563
21621
|
const {
|
|
21564
21622
|
value,
|
|
21623
|
+
srcAlt,
|
|
21565
21624
|
width,
|
|
21566
21625
|
height,
|
|
21567
21626
|
duration,
|
|
@@ -21587,6 +21646,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21587
21646
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21588
21647
|
// src: value ?? '',
|
|
21589
21648
|
url: value ?? "",
|
|
21649
|
+
srcAlt: srcAlt ?? void 0,
|
|
21590
21650
|
width: width ?? null,
|
|
21591
21651
|
height: height ?? null,
|
|
21592
21652
|
duration: duration ?? void 0,
|
|
@@ -21646,6 +21706,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21646
21706
|
stillImageFilmEmbedResource(context, data) {
|
|
21647
21707
|
const {
|
|
21648
21708
|
value,
|
|
21709
|
+
srcAlt,
|
|
21649
21710
|
width,
|
|
21650
21711
|
height,
|
|
21651
21712
|
duration,
|
|
@@ -21671,6 +21732,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21671
21732
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21672
21733
|
// src: value ?? '',
|
|
21673
21734
|
url: value ?? "",
|
|
21735
|
+
srcAlt: srcAlt ?? void 0,
|
|
21674
21736
|
width: width ?? null,
|
|
21675
21737
|
height: height ?? null,
|
|
21676
21738
|
duration: duration ?? void 0,
|
|
@@ -21710,6 +21772,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21710
21772
|
stillImageFilmLinkResource(context, data) {
|
|
21711
21773
|
const {
|
|
21712
21774
|
value,
|
|
21775
|
+
srcAlt,
|
|
21713
21776
|
width,
|
|
21714
21777
|
height,
|
|
21715
21778
|
duration,
|
|
@@ -21735,6 +21798,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21735
21798
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21736
21799
|
// src: value ?? '',
|
|
21737
21800
|
url: value ?? "",
|
|
21801
|
+
srcAlt: srcAlt ?? void 0,
|
|
21738
21802
|
width: width ?? null,
|
|
21739
21803
|
height: height ?? null,
|
|
21740
21804
|
duration: duration ?? void 0,
|
|
@@ -21772,7 +21836,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21772
21836
|
* @returns
|
|
21773
21837
|
*/
|
|
21774
21838
|
articleResource(context, data) {
|
|
21775
|
-
const { value, license, copyright, showInIndex, caption, search } = data;
|
|
21839
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
21776
21840
|
const node = {
|
|
21777
21841
|
type: ResourceType.article,
|
|
21778
21842
|
__typeAlias: ResourceType.article,
|
|
@@ -21781,6 +21845,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21781
21845
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21782
21846
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21783
21847
|
body: value ?? "",
|
|
21848
|
+
srcAlt: srcAlt ?? void 0,
|
|
21784
21849
|
license: license ?? "",
|
|
21785
21850
|
copyright: copyright ?? "",
|
|
21786
21851
|
showInIndex: showInIndex ?? false,
|
|
@@ -21801,7 +21866,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21801
21866
|
* @returns
|
|
21802
21867
|
*/
|
|
21803
21868
|
documentResource(context, data) {
|
|
21804
|
-
const { value, license, copyright, showInIndex, caption, search } = data;
|
|
21869
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
21805
21870
|
const node = {
|
|
21806
21871
|
type: ResourceType.document,
|
|
21807
21872
|
__typeAlias: ResourceType.document,
|
|
@@ -21810,6 +21875,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21810
21875
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21811
21876
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21812
21877
|
url: value ?? "",
|
|
21878
|
+
srcAlt: srcAlt ?? void 0,
|
|
21813
21879
|
license: license ?? "",
|
|
21814
21880
|
copyright: copyright ?? "",
|
|
21815
21881
|
showInIndex: showInIndex ?? false,
|
|
@@ -21831,7 +21897,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21831
21897
|
* @returns
|
|
21832
21898
|
*/
|
|
21833
21899
|
documentEmbedResource(context, data) {
|
|
21834
|
-
const { value, license, copyright, showInIndex, caption, search } = data;
|
|
21900
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
21835
21901
|
const node = {
|
|
21836
21902
|
type: ResourceType.documentEmbed,
|
|
21837
21903
|
__typeAlias: ResourceType.documentEmbed,
|
|
@@ -21840,6 +21906,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21840
21906
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21841
21907
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21842
21908
|
url: value ?? "",
|
|
21909
|
+
srcAlt: srcAlt ?? void 0,
|
|
21843
21910
|
license: license ?? "",
|
|
21844
21911
|
copyright: copyright ?? "",
|
|
21845
21912
|
showInIndex: showInIndex ?? false,
|
|
@@ -21861,7 +21928,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21861
21928
|
* @returns
|
|
21862
21929
|
*/
|
|
21863
21930
|
documentLinkResource(context, data) {
|
|
21864
|
-
const { value, license, copyright, showInIndex, caption, search } = data;
|
|
21931
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
21865
21932
|
const node = {
|
|
21866
21933
|
type: ResourceType.documentLink,
|
|
21867
21934
|
__typeAlias: ResourceType.documentLink,
|
|
@@ -21870,6 +21937,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21870
21937
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21871
21938
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21872
21939
|
url: value ?? "",
|
|
21940
|
+
srcAlt: srcAlt ?? void 0,
|
|
21873
21941
|
license: license ?? "",
|
|
21874
21942
|
copyright: copyright ?? "",
|
|
21875
21943
|
showInIndex: showInIndex ?? false,
|
|
@@ -21891,7 +21959,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21891
21959
|
* @returns
|
|
21892
21960
|
*/
|
|
21893
21961
|
documentDownloadResource(context, data) {
|
|
21894
|
-
const { value, license, copyright, showInIndex, caption, search } = data;
|
|
21962
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
21895
21963
|
const node = {
|
|
21896
21964
|
type: ResourceType.documentDownload,
|
|
21897
21965
|
__typeAlias: ResourceType.documentDownload,
|
|
@@ -21900,6 +21968,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21900
21968
|
format: instance8.fileExtensionFromUrl(value) ?? void 0,
|
|
21901
21969
|
provider: instance8.domainFromUrl(value) ?? void 0,
|
|
21902
21970
|
url: value ?? "",
|
|
21971
|
+
srcAlt: srcAlt ?? void 0,
|
|
21903
21972
|
license: license ?? "",
|
|
21904
21973
|
copyright: copyright ?? "",
|
|
21905
21974
|
showInIndex: showInIndex ?? false,
|
|
@@ -21921,7 +21990,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21921
21990
|
* @returns
|
|
21922
21991
|
*/
|
|
21923
21992
|
appLinkResource(context, data) {
|
|
21924
|
-
const { value, license, copyright, showInIndex, caption, search } = data;
|
|
21993
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
21925
21994
|
const node = {
|
|
21926
21995
|
type: ResourceType.appLink,
|
|
21927
21996
|
__typeAlias: ResourceType.appLink,
|
|
@@ -21931,6 +22000,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21931
22000
|
// provider: (UrlUtils.domainFromUrl(value) ?? undefined) as string,
|
|
21932
22001
|
provider: void 0,
|
|
21933
22002
|
url: value ?? "",
|
|
22003
|
+
srcAlt: srcAlt ?? void 0,
|
|
21934
22004
|
license: license ?? "",
|
|
21935
22005
|
copyright: copyright ?? "",
|
|
21936
22006
|
showInIndex: showInIndex ?? false,
|
|
@@ -21959,6 +22029,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21959
22029
|
websiteLinkResource(context, data) {
|
|
21960
22030
|
const {
|
|
21961
22031
|
value,
|
|
22032
|
+
srcAlt,
|
|
21962
22033
|
/*siteName,*/
|
|
21963
22034
|
license,
|
|
21964
22035
|
copyright,
|
|
@@ -21974,6 +22045,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
21974
22045
|
// provider: (UrlUtils.domainFromUrl(value) ?? undefined) as string,
|
|
21975
22046
|
provider: void 0,
|
|
21976
22047
|
url: value ?? "",
|
|
22048
|
+
srcAlt: srcAlt ?? void 0,
|
|
21977
22049
|
// siteName,
|
|
21978
22050
|
license: license ?? "",
|
|
21979
22051
|
copyright: copyright ?? "",
|
|
@@ -22221,6 +22293,12 @@ var Builder = class extends BaseBuilder {
|
|
|
22221
22293
|
options
|
|
22222
22294
|
),
|
|
22223
22295
|
bubbleTag: this.toAstProperty(bitType, ConfigKey.property_bubbleTag, data.bubbleTag, options),
|
|
22296
|
+
extractorTag: this.toAstProperty(
|
|
22297
|
+
bitType,
|
|
22298
|
+
ConfigKey.property_extractorTag,
|
|
22299
|
+
data.extractorTag,
|
|
22300
|
+
options
|
|
22301
|
+
),
|
|
22224
22302
|
levelCEFRp: this.toAstProperty(
|
|
22225
22303
|
bitType,
|
|
22226
22304
|
ConfigKey.property_levelCEFRp,
|
|
@@ -26132,7 +26210,12 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
26132
26210
|
// bitmarkAst -> bits -> bitsValue -> resource -> ...
|
|
26133
26211
|
// bitmarkAst -> bits -> bitsValue -> resource -> posterImage -> ...
|
|
26134
26212
|
// bitmarkAst -> bits -> bitsValue -> resource -> thumbnails -> thumbnailsValue -> ...
|
|
26135
|
-
// [src1x,src2x,src3x,src4x,width,height,alt,zoomDisabled,caption]
|
|
26213
|
+
// [srcAlt,src1x,src2x,src3x,src4x,width,height,alt,zoomDisabled,caption]
|
|
26214
|
+
leaf_srcAltValue(node, route) {
|
|
26215
|
+
this.writeProperty("srcAlt", node.value, route, {
|
|
26216
|
+
format: TagFormat.plainText
|
|
26217
|
+
});
|
|
26218
|
+
}
|
|
26136
26219
|
leaf_src1x(node, route) {
|
|
26137
26220
|
this.writeProperty("src1x", node.value, route, {
|
|
26138
26221
|
format: TagFormat.plainText
|