@gmb/bitmark-parser-generator 4.16.0 → 4.17.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 +151 -62
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +55 -4
- package/dist/browser/esm/index.d.ts +55 -4
- package/dist/browser/esm/index.js +151 -62
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/index.cjs +363 -301
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -4
- package/dist/index.d.ts +55 -4
- package/dist/index.js +363 -301
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -291,8 +291,8 @@ var BitType = (0, import_superenum.superenum)({
|
|
|
291
291
|
extractorAiChat: "extractor-ai-chat",
|
|
292
292
|
extractorBlock: "extractor-block",
|
|
293
293
|
extractorConfiguration: "extractor-configuration",
|
|
294
|
-
|
|
295
|
-
|
|
294
|
+
extractorImage: "extractor-image",
|
|
295
|
+
extractorImageCollapsible: "extractor-image-collapsible",
|
|
296
296
|
extractorInformation: "extractor-information",
|
|
297
297
|
extractorPage: "extractor-page",
|
|
298
298
|
extractorPageCollapsible: "extractor-page-collapsible",
|
|
@@ -1314,6 +1314,7 @@ var propertyKeys = {
|
|
|
1314
1314
|
// Deprecated, replaced by person
|
|
1315
1315
|
property_path: "@path",
|
|
1316
1316
|
property_platformBackgroundColor: "@platformBackgroundColor",
|
|
1317
|
+
property_platformBorderColor: "@platformBorderColor",
|
|
1317
1318
|
property_platformBrandTarget: "@platformBrandTarget",
|
|
1318
1319
|
property_platformButtonBackgroundColor: "@platformButtonBackgroundColor",
|
|
1319
1320
|
property_platformButtonPrimaryColor: "@platformButtonPrimaryColor",
|
|
@@ -1324,6 +1325,8 @@ var propertyKeys = {
|
|
|
1324
1325
|
property_platformScrollbarColor: "@platformScrollbarColor",
|
|
1325
1326
|
property_platformSecondaryColor: "@platformSecondaryColor",
|
|
1326
1327
|
property_platformSelectionColor: "@platformSelectionColor",
|
|
1328
|
+
property_platformSelectionTextColor: "@platformSelectionTextColor",
|
|
1329
|
+
property_platformBaseLayerColor: "@platformBaseLayerColor",
|
|
1327
1330
|
property_platformSeparatorColor: "@platformSeparatorColor",
|
|
1328
1331
|
property_platformTextSelectionColor: "@platformTextSelectionColor",
|
|
1329
1332
|
property_person: "@person",
|
|
@@ -1368,6 +1371,7 @@ var propertyKeys = {
|
|
|
1368
1371
|
property_scormSource: "@scormSource",
|
|
1369
1372
|
property_search: "@search",
|
|
1370
1373
|
property_searchIndex: "@searchIndex",
|
|
1374
|
+
property_selected: "@selected",
|
|
1371
1375
|
property_servings: "@servings",
|
|
1372
1376
|
property_showInIndex: "@showInIndex",
|
|
1373
1377
|
property_showSubtitles: "@showSubtitles",
|
|
@@ -3572,6 +3576,21 @@ var GROUPS = {
|
|
|
3572
3576
|
key: ConfigKey.property_platformMessageBackgroundColor,
|
|
3573
3577
|
description: "The platform section chat message background color",
|
|
3574
3578
|
format: TagFormat.plainText
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
key: ConfigKey.property_platformBorderColor,
|
|
3582
|
+
description: "The platform border color",
|
|
3583
|
+
format: TagFormat.plainText
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
key: ConfigKey.property_platformSelectionTextColor,
|
|
3587
|
+
description: "The platform selection text color",
|
|
3588
|
+
format: TagFormat.plainText
|
|
3589
|
+
},
|
|
3590
|
+
{
|
|
3591
|
+
key: ConfigKey.property_platformBaseLayerColor,
|
|
3592
|
+
description: "The platform base layer color",
|
|
3593
|
+
format: TagFormat.plainText
|
|
3575
3594
|
}
|
|
3576
3595
|
]
|
|
3577
3596
|
},
|
|
@@ -3646,6 +3665,12 @@ var GROUPS = {
|
|
|
3646
3665
|
description: "The search text for the resource",
|
|
3647
3666
|
format: TagFormat.plainText
|
|
3648
3667
|
},
|
|
3668
|
+
{
|
|
3669
|
+
key: ConfigKey.property_selected,
|
|
3670
|
+
description: "If true, the resource is selected",
|
|
3671
|
+
format: TagFormat.boolean,
|
|
3672
|
+
defaultValue: "false"
|
|
3673
|
+
},
|
|
3649
3674
|
{
|
|
3650
3675
|
key: ConfigKey.property_srcAlt,
|
|
3651
3676
|
description: "An alternative source for the resource",
|
|
@@ -7148,7 +7173,7 @@ var BITS = {
|
|
|
7148
7173
|
description: "Extractor configuration bit, used to configure extractors in articles or books",
|
|
7149
7174
|
textFormatDefault: TextFormat2.plainText
|
|
7150
7175
|
},
|
|
7151
|
-
[BitType.
|
|
7176
|
+
[BitType.extractorImage]: {
|
|
7152
7177
|
since: "4.3.0",
|
|
7153
7178
|
baseBitType: BitType._standard,
|
|
7154
7179
|
description: "Extractor images bit, used for images extracted from PDFs",
|
|
@@ -7168,9 +7193,9 @@ var BITS = {
|
|
|
7168
7193
|
resourceAttachmentAllowed: false,
|
|
7169
7194
|
textFormatDefault: TextFormat2.plainText
|
|
7170
7195
|
},
|
|
7171
|
-
[BitType.
|
|
7196
|
+
[BitType.extractorImageCollapsible]: {
|
|
7172
7197
|
since: "4.3.0",
|
|
7173
|
-
baseBitType: BitType.
|
|
7198
|
+
baseBitType: BitType.extractorImage,
|
|
7174
7199
|
description: "Collapsible extractor images bit, used for images extracted from PDFs"
|
|
7175
7200
|
},
|
|
7176
7201
|
[BitType.extractorInformation]: {
|
|
@@ -10175,7 +10200,7 @@ var instance2 = new Config();
|
|
|
10175
10200
|
// src/generated/package_info.ts
|
|
10176
10201
|
var PACKAGE_INFO = {
|
|
10177
10202
|
"name": "@gmb/bitmark-parser-generator",
|
|
10178
|
-
"version": "4.
|
|
10203
|
+
"version": "4.17.0",
|
|
10179
10204
|
"author": "Get More Brain Ltd",
|
|
10180
10205
|
"license": "ISC",
|
|
10181
10206
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10931,6 +10956,12 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
10931
10956
|
platformMessageBackgroundColorValue: "platformMessageBackgroundColorValue",
|
|
10932
10957
|
platformBackgroundImage: "platformBackgroundImage",
|
|
10933
10958
|
platformBackgroundImageValue: "platformBackgroundImageValue",
|
|
10959
|
+
platformBorderColor: "platformBorderColor",
|
|
10960
|
+
platformBorderColorValue: "platformBorderColorValue",
|
|
10961
|
+
platformSelectionTextColor: "platformSelectionTextColor",
|
|
10962
|
+
platformSelectionTextColorValue: "platformSelectionTextColorValue",
|
|
10963
|
+
platformBaseLayerColor: "platformBaseLayerColor",
|
|
10964
|
+
platformBaseLayerColorValue: "platformBaseLayerColorValue",
|
|
10934
10965
|
person: "person",
|
|
10935
10966
|
pointerLeft: "pointerLeft",
|
|
10936
10967
|
pointerLeftValue: "pointerLeftValue",
|
|
@@ -11046,6 +11077,7 @@ var NodeType = (0, import_superenum20.superenum)({
|
|
|
11046
11077
|
searchValue: "searchValue",
|
|
11047
11078
|
section: "section",
|
|
11048
11079
|
select: "select",
|
|
11080
|
+
selected: "selected",
|
|
11049
11081
|
servings: "servings",
|
|
11050
11082
|
servingsValue: "servingsValue",
|
|
11051
11083
|
showInIndex: "showInIndex",
|
|
@@ -22508,7 +22540,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22508
22540
|
license: data.license,
|
|
22509
22541
|
copyright: data.copyright,
|
|
22510
22542
|
showInIndex: data.showInIndex,
|
|
22511
|
-
search: data.search
|
|
22543
|
+
search: data.search,
|
|
22544
|
+
selected: data.selected
|
|
22512
22545
|
});
|
|
22513
22546
|
return node;
|
|
22514
22547
|
}
|
|
@@ -22673,7 +22706,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22673
22706
|
copyright,
|
|
22674
22707
|
showInIndex,
|
|
22675
22708
|
caption,
|
|
22676
|
-
search
|
|
22709
|
+
search,
|
|
22710
|
+
selected
|
|
22677
22711
|
} = data;
|
|
22678
22712
|
const { bitType } = context;
|
|
22679
22713
|
let zoomDisabledDefault = false;
|
|
@@ -22682,7 +22716,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22682
22716
|
BitType.pageBanner,
|
|
22683
22717
|
BitType.imagesLogoGrave,
|
|
22684
22718
|
BitType.prototypeImages,
|
|
22685
|
-
BitType.
|
|
22719
|
+
BitType.extractorImage
|
|
22686
22720
|
])) {
|
|
22687
22721
|
zoomDisabledDefault = true;
|
|
22688
22722
|
}
|
|
@@ -22707,11 +22741,12 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22707
22741
|
copyright: copyright ?? "",
|
|
22708
22742
|
showInIndex: showInIndex ?? false,
|
|
22709
22743
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22710
|
-
search: search ?? void 0
|
|
22744
|
+
search: search ?? void 0,
|
|
22745
|
+
selected: selected ?? false
|
|
22711
22746
|
}
|
|
22712
22747
|
};
|
|
22713
22748
|
objectUtils.removeUnwantedProperties(node.image, {
|
|
22714
|
-
ignoreFalse: ["zoomDisabled", "showInIndex"],
|
|
22749
|
+
ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
|
|
22715
22750
|
ignoreEmptyArrays: ["caption"],
|
|
22716
22751
|
ignoreUndefined: ["width", "height"],
|
|
22717
22752
|
ignoreEmptyString: ["src", "alt", "license", "copyright"]
|
|
@@ -22740,7 +22775,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22740
22775
|
copyright,
|
|
22741
22776
|
showInIndex,
|
|
22742
22777
|
caption,
|
|
22743
|
-
search
|
|
22778
|
+
search,
|
|
22779
|
+
selected
|
|
22744
22780
|
} = data;
|
|
22745
22781
|
const node = {
|
|
22746
22782
|
type: ResourceType.imageLink,
|
|
@@ -22765,11 +22801,12 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22765
22801
|
copyright: copyright ?? "",
|
|
22766
22802
|
showInIndex: showInIndex ?? false,
|
|
22767
22803
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22768
|
-
search: search ?? void 0
|
|
22804
|
+
search: search ?? void 0,
|
|
22805
|
+
selected: selected ?? false
|
|
22769
22806
|
}
|
|
22770
22807
|
};
|
|
22771
22808
|
objectUtils.removeUnwantedProperties(node.imageLink, {
|
|
22772
|
-
ignoreFalse: ["zoomDisabled", "showInIndex"],
|
|
22809
|
+
ignoreFalse: ["zoomDisabled", "showInIndex", "selected"],
|
|
22773
22810
|
ignoreEmptyArrays: ["caption"],
|
|
22774
22811
|
ignoreUndefined: ["width", "height"],
|
|
22775
22812
|
ignoreEmptyString: ["url", "alt", "license", "copyright"]
|
|
@@ -22793,7 +22830,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22793
22830
|
copyright,
|
|
22794
22831
|
showInIndex,
|
|
22795
22832
|
caption,
|
|
22796
|
-
search
|
|
22833
|
+
search,
|
|
22834
|
+
selected
|
|
22797
22835
|
} = data;
|
|
22798
22836
|
const node = {
|
|
22799
22837
|
type: ResourceType.audio,
|
|
@@ -22811,13 +22849,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22811
22849
|
copyright: copyright ?? "",
|
|
22812
22850
|
showInIndex: showInIndex ?? false,
|
|
22813
22851
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22814
|
-
search: search ?? void 0
|
|
22852
|
+
search: search ?? void 0,
|
|
22853
|
+
selected: selected ?? false
|
|
22815
22854
|
}
|
|
22816
22855
|
};
|
|
22817
22856
|
objectUtils.removeUnwantedProperties(node.audio, {
|
|
22818
22857
|
ignoreEmptyArrays: ["caption"],
|
|
22819
22858
|
ignoreEmptyString: ["src", "alt", "license", "copyright"],
|
|
22820
|
-
ignoreFalse: ["showInIndex"]
|
|
22859
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22821
22860
|
});
|
|
22822
22861
|
return nodeValidator.validateResource(node);
|
|
22823
22862
|
}
|
|
@@ -22838,7 +22877,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22838
22877
|
copyright,
|
|
22839
22878
|
showInIndex,
|
|
22840
22879
|
caption,
|
|
22841
|
-
search
|
|
22880
|
+
search,
|
|
22881
|
+
selected
|
|
22842
22882
|
} = data;
|
|
22843
22883
|
const node = {
|
|
22844
22884
|
type: ResourceType.audioEmbed,
|
|
@@ -22856,7 +22896,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22856
22896
|
copyright: copyright ?? "",
|
|
22857
22897
|
showInIndex: showInIndex ?? false,
|
|
22858
22898
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22859
|
-
search: search ?? void 0
|
|
22899
|
+
search: search ?? void 0,
|
|
22900
|
+
selected: selected ?? false
|
|
22860
22901
|
}
|
|
22861
22902
|
};
|
|
22862
22903
|
objectUtils.removeUnwantedProperties(node.audioEmbed, {
|
|
@@ -22867,7 +22908,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22867
22908
|
"license",
|
|
22868
22909
|
"copyright"
|
|
22869
22910
|
],
|
|
22870
|
-
ignoreFalse: ["showInIndex"]
|
|
22911
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22871
22912
|
});
|
|
22872
22913
|
return nodeValidator.validateResource(node);
|
|
22873
22914
|
}
|
|
@@ -22888,7 +22929,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22888
22929
|
copyright,
|
|
22889
22930
|
showInIndex,
|
|
22890
22931
|
caption,
|
|
22891
|
-
search
|
|
22932
|
+
search,
|
|
22933
|
+
selected
|
|
22892
22934
|
} = data;
|
|
22893
22935
|
const node = {
|
|
22894
22936
|
type: ResourceType.audioLink,
|
|
@@ -22907,7 +22949,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22907
22949
|
copyright: copyright ?? "",
|
|
22908
22950
|
showInIndex: showInIndex ?? false,
|
|
22909
22951
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22910
|
-
search: search ?? void 0
|
|
22952
|
+
search: search ?? void 0,
|
|
22953
|
+
selected: selected ?? false
|
|
22911
22954
|
}
|
|
22912
22955
|
};
|
|
22913
22956
|
objectUtils.removeUnwantedProperties(node.audioLink, {
|
|
@@ -22915,7 +22958,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22915
22958
|
ignoreEmptyString: [
|
|
22916
22959
|
"url"
|
|
22917
22960
|
/*'alt', 'license', 'copyright'*/
|
|
22918
|
-
]
|
|
22961
|
+
],
|
|
22962
|
+
ignoreFalse: ["selected"]
|
|
22919
22963
|
});
|
|
22920
22964
|
return nodeValidator.validateResource(node);
|
|
22921
22965
|
}
|
|
@@ -22943,7 +22987,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22943
22987
|
copyright,
|
|
22944
22988
|
showInIndex,
|
|
22945
22989
|
caption,
|
|
22946
|
-
search
|
|
22990
|
+
search,
|
|
22991
|
+
selected
|
|
22947
22992
|
} = data;
|
|
22948
22993
|
const node = {
|
|
22949
22994
|
type: ResourceType.video,
|
|
@@ -22967,6 +23012,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22967
23012
|
showInIndex: showInIndex ?? false,
|
|
22968
23013
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
22969
23014
|
search: search ?? void 0,
|
|
23015
|
+
selected: selected ?? false,
|
|
22970
23016
|
// Have sub-chains so must be at end of chain
|
|
22971
23017
|
posterImage: posterImage ?? void 0,
|
|
22972
23018
|
thumbnails: thumbnails ?? void 0
|
|
@@ -22981,7 +23027,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
22981
23027
|
"license",
|
|
22982
23028
|
"copyright"
|
|
22983
23029
|
],
|
|
22984
|
-
ignoreFalse: ["showInIndex"]
|
|
23030
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
22985
23031
|
});
|
|
22986
23032
|
return nodeValidator.validateResource(node);
|
|
22987
23033
|
}
|
|
@@ -23009,7 +23055,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23009
23055
|
copyright,
|
|
23010
23056
|
showInIndex,
|
|
23011
23057
|
caption,
|
|
23012
|
-
search
|
|
23058
|
+
search,
|
|
23059
|
+
selected
|
|
23013
23060
|
} = data;
|
|
23014
23061
|
const node = {
|
|
23015
23062
|
type: ResourceType.videoEmbed,
|
|
@@ -23035,7 +23082,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23035
23082
|
copyright: copyright ?? "",
|
|
23036
23083
|
showInIndex: showInIndex ?? false,
|
|
23037
23084
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23038
|
-
search: search ?? void 0
|
|
23085
|
+
search: search ?? void 0,
|
|
23086
|
+
selected: selected ?? false
|
|
23039
23087
|
}
|
|
23040
23088
|
};
|
|
23041
23089
|
objectUtils.removeUnwantedProperties(node.videoEmbed, {
|
|
@@ -23047,7 +23095,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23047
23095
|
"license",
|
|
23048
23096
|
"copyright"
|
|
23049
23097
|
],
|
|
23050
|
-
ignoreFalse: ["showInIndex"]
|
|
23098
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23051
23099
|
});
|
|
23052
23100
|
return nodeValidator.validateResource(node);
|
|
23053
23101
|
}
|
|
@@ -23075,7 +23123,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23075
23123
|
copyright,
|
|
23076
23124
|
showInIndex,
|
|
23077
23125
|
caption,
|
|
23078
|
-
search
|
|
23126
|
+
search,
|
|
23127
|
+
selected
|
|
23079
23128
|
} = data;
|
|
23080
23129
|
const node = {
|
|
23081
23130
|
type: ResourceType.videoLink,
|
|
@@ -23101,7 +23150,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23101
23150
|
copyright: copyright ?? "",
|
|
23102
23151
|
showInIndex: showInIndex ?? false,
|
|
23103
23152
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23104
|
-
search: search ?? void 0
|
|
23153
|
+
search: search ?? void 0,
|
|
23154
|
+
selected: selected ?? false
|
|
23105
23155
|
}
|
|
23106
23156
|
};
|
|
23107
23157
|
objectUtils.removeUnwantedProperties(node.videoLink, {
|
|
@@ -23113,7 +23163,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23113
23163
|
"license",
|
|
23114
23164
|
"copyright"
|
|
23115
23165
|
],
|
|
23116
|
-
ignoreFalse: ["showInIndex"]
|
|
23166
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23117
23167
|
});
|
|
23118
23168
|
return nodeValidator.validateResource(node);
|
|
23119
23169
|
}
|
|
@@ -23161,7 +23211,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23161
23211
|
copyright,
|
|
23162
23212
|
showInIndex,
|
|
23163
23213
|
caption,
|
|
23164
|
-
search
|
|
23214
|
+
search,
|
|
23215
|
+
selected
|
|
23165
23216
|
} = data;
|
|
23166
23217
|
const node = {
|
|
23167
23218
|
type: ResourceType.stillImageFilmEmbed,
|
|
@@ -23187,7 +23238,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23187
23238
|
copyright: copyright ?? "",
|
|
23188
23239
|
showInIndex: showInIndex ?? false,
|
|
23189
23240
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23190
|
-
search: search ?? void 0
|
|
23241
|
+
search: search ?? void 0,
|
|
23242
|
+
selected: selected ?? false
|
|
23191
23243
|
}
|
|
23192
23244
|
};
|
|
23193
23245
|
objectUtils.removeUnwantedProperties(node.stillImageFilmEmbed, {
|
|
@@ -23199,7 +23251,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23199
23251
|
"license",
|
|
23200
23252
|
"copyright"
|
|
23201
23253
|
],
|
|
23202
|
-
ignoreFalse: ["showInIndex"]
|
|
23254
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23203
23255
|
});
|
|
23204
23256
|
return nodeValidator.validateResource(node);
|
|
23205
23257
|
}
|
|
@@ -23227,7 +23279,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23227
23279
|
copyright,
|
|
23228
23280
|
showInIndex,
|
|
23229
23281
|
caption,
|
|
23230
|
-
search
|
|
23282
|
+
search,
|
|
23283
|
+
selected
|
|
23231
23284
|
} = data;
|
|
23232
23285
|
const node = {
|
|
23233
23286
|
type: ResourceType.stillImageFilmLink,
|
|
@@ -23253,7 +23306,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23253
23306
|
copyright: copyright ?? "",
|
|
23254
23307
|
showInIndex: showInIndex ?? false,
|
|
23255
23308
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23256
|
-
search: search ?? void 0
|
|
23309
|
+
search: search ?? void 0,
|
|
23310
|
+
selected: selected ?? false
|
|
23257
23311
|
}
|
|
23258
23312
|
};
|
|
23259
23313
|
objectUtils.removeUnwantedProperties(node.stillImageFilmLink, {
|
|
@@ -23265,7 +23319,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23265
23319
|
"license",
|
|
23266
23320
|
"copyright"
|
|
23267
23321
|
],
|
|
23268
|
-
ignoreFalse: ["showInIndex"]
|
|
23322
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23269
23323
|
});
|
|
23270
23324
|
return nodeValidator.validateResource(node);
|
|
23271
23325
|
}
|
|
@@ -23276,7 +23330,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23276
23330
|
* @returns
|
|
23277
23331
|
*/
|
|
23278
23332
|
articleResource(context, data) {
|
|
23279
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23333
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
23280
23334
|
const node = {
|
|
23281
23335
|
type: ResourceType.article,
|
|
23282
23336
|
__typeAlias: ResourceType.article,
|
|
@@ -23290,12 +23344,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23290
23344
|
copyright: copyright ?? "",
|
|
23291
23345
|
showInIndex: showInIndex ?? false,
|
|
23292
23346
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23293
|
-
search: search ?? void 0
|
|
23347
|
+
search: search ?? void 0,
|
|
23348
|
+
selected: selected ?? false
|
|
23294
23349
|
}
|
|
23295
23350
|
};
|
|
23296
23351
|
objectUtils.removeUnwantedProperties(node.article, {
|
|
23297
23352
|
ignoreEmptyArrays: ["caption"],
|
|
23298
|
-
ignoreEmptyString: ["body", "alt", "license", "copyright"]
|
|
23353
|
+
ignoreEmptyString: ["body", "alt", "license", "copyright"],
|
|
23354
|
+
ignoreFalse: ["selected"]
|
|
23299
23355
|
});
|
|
23300
23356
|
return nodeValidator.validateResource(node);
|
|
23301
23357
|
}
|
|
@@ -23306,7 +23362,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23306
23362
|
* @returns
|
|
23307
23363
|
*/
|
|
23308
23364
|
documentResource(context, data) {
|
|
23309
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23365
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
23310
23366
|
const node = {
|
|
23311
23367
|
type: ResourceType.document,
|
|
23312
23368
|
__typeAlias: ResourceType.document,
|
|
@@ -23320,13 +23376,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23320
23376
|
copyright: copyright ?? "",
|
|
23321
23377
|
showInIndex: showInIndex ?? false,
|
|
23322
23378
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23323
|
-
search: search ?? void 0
|
|
23379
|
+
search: search ?? void 0,
|
|
23380
|
+
selected: selected ?? false
|
|
23324
23381
|
}
|
|
23325
23382
|
};
|
|
23326
23383
|
objectUtils.removeUnwantedProperties(node.document, {
|
|
23327
23384
|
ignoreEmptyArrays: ["caption"],
|
|
23328
23385
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
23329
|
-
ignoreFalse: ["showInIndex"]
|
|
23386
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23330
23387
|
});
|
|
23331
23388
|
return nodeValidator.validateResource(node);
|
|
23332
23389
|
}
|
|
@@ -23337,7 +23394,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23337
23394
|
* @returns
|
|
23338
23395
|
*/
|
|
23339
23396
|
documentEmbedResource(context, data) {
|
|
23340
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23397
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
23341
23398
|
const node = {
|
|
23342
23399
|
type: ResourceType.documentEmbed,
|
|
23343
23400
|
__typeAlias: ResourceType.documentEmbed,
|
|
@@ -23351,13 +23408,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23351
23408
|
copyright: copyright ?? "",
|
|
23352
23409
|
showInIndex: showInIndex ?? false,
|
|
23353
23410
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23354
|
-
search: search ?? void 0
|
|
23411
|
+
search: search ?? void 0,
|
|
23412
|
+
selected: selected ?? false
|
|
23355
23413
|
}
|
|
23356
23414
|
};
|
|
23357
23415
|
objectUtils.removeUnwantedProperties(node.documentEmbed, {
|
|
23358
23416
|
ignoreEmptyArrays: ["caption"],
|
|
23359
23417
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
23360
|
-
ignoreFalse: ["showInIndex"]
|
|
23418
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23361
23419
|
});
|
|
23362
23420
|
return nodeValidator.validateResource(node);
|
|
23363
23421
|
}
|
|
@@ -23368,7 +23426,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23368
23426
|
* @returns
|
|
23369
23427
|
*/
|
|
23370
23428
|
documentLinkResource(context, data) {
|
|
23371
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23429
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
23372
23430
|
const node = {
|
|
23373
23431
|
type: ResourceType.documentLink,
|
|
23374
23432
|
__typeAlias: ResourceType.documentLink,
|
|
@@ -23382,13 +23440,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23382
23440
|
copyright: copyright ?? "",
|
|
23383
23441
|
showInIndex: showInIndex ?? false,
|
|
23384
23442
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23385
|
-
search: search ?? void 0
|
|
23443
|
+
search: search ?? void 0,
|
|
23444
|
+
selected: selected ?? false
|
|
23386
23445
|
}
|
|
23387
23446
|
};
|
|
23388
23447
|
objectUtils.removeUnwantedProperties(node.documentLink, {
|
|
23389
23448
|
ignoreEmptyArrays: ["caption"],
|
|
23390
23449
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
23391
|
-
ignoreFalse: ["showInIndex"]
|
|
23450
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23392
23451
|
});
|
|
23393
23452
|
return nodeValidator.validateResource(node);
|
|
23394
23453
|
}
|
|
@@ -23399,7 +23458,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23399
23458
|
* @returns
|
|
23400
23459
|
*/
|
|
23401
23460
|
documentDownloadResource(context, data) {
|
|
23402
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23461
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
23403
23462
|
const node = {
|
|
23404
23463
|
type: ResourceType.documentDownload,
|
|
23405
23464
|
__typeAlias: ResourceType.documentDownload,
|
|
@@ -23413,13 +23472,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23413
23472
|
copyright: copyright ?? "",
|
|
23414
23473
|
showInIndex: showInIndex ?? false,
|
|
23415
23474
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23416
|
-
search: search ?? void 0
|
|
23475
|
+
search: search ?? void 0,
|
|
23476
|
+
selected: selected ?? false
|
|
23417
23477
|
}
|
|
23418
23478
|
};
|
|
23419
23479
|
objectUtils.removeUnwantedProperties(node.documentDownload, {
|
|
23420
23480
|
ignoreEmptyArrays: ["caption"],
|
|
23421
23481
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
23422
|
-
ignoreFalse: ["showInIndex"]
|
|
23482
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23423
23483
|
});
|
|
23424
23484
|
return nodeValidator.validateResource(node);
|
|
23425
23485
|
}
|
|
@@ -23430,7 +23490,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23430
23490
|
* @returns
|
|
23431
23491
|
*/
|
|
23432
23492
|
appLinkResource(context, data) {
|
|
23433
|
-
const { value, srcAlt, license, copyright, showInIndex, caption, search } = data;
|
|
23493
|
+
const { value, srcAlt, license, copyright, showInIndex, caption, search, selected } = data;
|
|
23434
23494
|
const node = {
|
|
23435
23495
|
type: ResourceType.appLink,
|
|
23436
23496
|
__typeAlias: ResourceType.appLink,
|
|
@@ -23445,7 +23505,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23445
23505
|
copyright: copyright ?? "",
|
|
23446
23506
|
showInIndex: showInIndex ?? false,
|
|
23447
23507
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23448
|
-
search: search ?? void 0
|
|
23508
|
+
search: search ?? void 0,
|
|
23509
|
+
selected: selected ?? false
|
|
23449
23510
|
}
|
|
23450
23511
|
};
|
|
23451
23512
|
objectUtils.removeUnwantedProperties(node.appLink, {
|
|
@@ -23456,7 +23517,7 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23456
23517
|
"license",
|
|
23457
23518
|
"copyright"
|
|
23458
23519
|
],
|
|
23459
|
-
ignoreFalse: ["showInIndex"]
|
|
23520
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23460
23521
|
});
|
|
23461
23522
|
return nodeValidator.validateResource(node);
|
|
23462
23523
|
}
|
|
@@ -23475,7 +23536,8 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23475
23536
|
copyright,
|
|
23476
23537
|
showInIndex,
|
|
23477
23538
|
caption,
|
|
23478
|
-
search
|
|
23539
|
+
search,
|
|
23540
|
+
selected
|
|
23479
23541
|
} = data;
|
|
23480
23542
|
const node = {
|
|
23481
23543
|
type: ResourceType.websiteLink,
|
|
@@ -23491,13 +23553,14 @@ var ResourceBuilder = class extends BaseBuilder {
|
|
|
23491
23553
|
copyright: copyright ?? "",
|
|
23492
23554
|
showInIndex: showInIndex ?? false,
|
|
23493
23555
|
caption: this.handleJsonText(context, TextLocation2.tag, caption),
|
|
23494
|
-
search: search ?? void 0
|
|
23556
|
+
search: search ?? void 0,
|
|
23557
|
+
selected: selected ?? false
|
|
23495
23558
|
}
|
|
23496
23559
|
};
|
|
23497
23560
|
objectUtils.removeUnwantedProperties(node.websiteLink, {
|
|
23498
23561
|
ignoreEmptyArrays: ["caption"],
|
|
23499
23562
|
ignoreEmptyString: ["url", "alt", "license", "copyright"],
|
|
23500
|
-
ignoreFalse: ["showInIndex"]
|
|
23563
|
+
ignoreFalse: ["showInIndex", "selected"]
|
|
23501
23564
|
});
|
|
23502
23565
|
return nodeValidator.validateResource(node);
|
|
23503
23566
|
}
|
|
@@ -24436,6 +24499,24 @@ var Builder = class extends BaseBuilder {
|
|
|
24436
24499
|
options
|
|
24437
24500
|
),
|
|
24438
24501
|
platformBackgroundImage: this.toImageResource(context, data.platformBackgroundImage),
|
|
24502
|
+
platformBorderColor: this.toAstProperty(
|
|
24503
|
+
bitType,
|
|
24504
|
+
ConfigKey.property_platformBorderColor,
|
|
24505
|
+
data.platformBorderColor,
|
|
24506
|
+
options
|
|
24507
|
+
),
|
|
24508
|
+
platformSelectionTextColor: this.toAstProperty(
|
|
24509
|
+
bitType,
|
|
24510
|
+
ConfigKey.property_platformSelectionTextColor,
|
|
24511
|
+
data.platformSelectionTextColor,
|
|
24512
|
+
options
|
|
24513
|
+
),
|
|
24514
|
+
platformBaseLayerColor: this.toAstProperty(
|
|
24515
|
+
bitType,
|
|
24516
|
+
ConfigKey.property_platformBaseLayerColor,
|
|
24517
|
+
data.platformBaseLayerColor,
|
|
24518
|
+
options
|
|
24519
|
+
),
|
|
24439
24520
|
productId: this.toAstProperty(bitType, ConfigKey.property_productId, data.productId, options),
|
|
24440
24521
|
product: this.toAstProperty(bitType, ConfigKey.property_product, data.product, options),
|
|
24441
24522
|
// productList: this.toAstProperty(
|
|
@@ -28191,7 +28272,7 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
28191
28272
|
BitType.pageBanner,
|
|
28192
28273
|
BitType.imagesLogoGrave,
|
|
28193
28274
|
BitType.prototypeImages,
|
|
28194
|
-
BitType.
|
|
28275
|
+
BitType.extractorImage
|
|
28195
28276
|
])) {
|
|
28196
28277
|
this.writeProperty("zoomDisabled", node.value, route, {
|
|
28197
28278
|
format: TagFormat.boolean,
|
|
@@ -28244,6 +28325,14 @@ var BitmarkGenerator = class extends AstWalkerGenerator {
|
|
|
28244
28325
|
format: TagFormat.plainText
|
|
28245
28326
|
});
|
|
28246
28327
|
}
|
|
28328
|
+
leaf_selected(node, route) {
|
|
28329
|
+
if (node.value == null) return;
|
|
28330
|
+
this.writeNL_IfNotChain(route);
|
|
28331
|
+
this.writeProperty("selected", node.value, route, {
|
|
28332
|
+
format: TagFormat.boolean,
|
|
28333
|
+
ignoreFalse: true
|
|
28334
|
+
});
|
|
28335
|
+
}
|
|
28247
28336
|
// bitmarkAst -> bits -> bitsValue -> resource -> ...
|
|
28248
28337
|
// bitmarkAst -> bits -> bitsValue -> resource -> posterImage -> ...
|
|
28249
28338
|
// bitmarkAst -> bits -> bitsValue -> resource -> thumbnails -> thumbnailsValue -> ...
|
|
@@ -29416,7 +29505,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
29416
29505
|
} else if (instance2.isOfBitType(bitType, [
|
|
29417
29506
|
BitType.imagesLogoGrave,
|
|
29418
29507
|
BitType.prototypeImages,
|
|
29419
|
-
BitType.
|
|
29508
|
+
BitType.extractorImage
|
|
29420
29509
|
])) {
|
|
29421
29510
|
const images = [];
|
|
29422
29511
|
for (const r of resources) {
|
|
@@ -29997,7 +30086,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
29997
30086
|
if (instance2.isOfBitType(bitType, [
|
|
29998
30087
|
BitType.imagesLogoGrave,
|
|
29999
30088
|
BitType.prototypeImages,
|
|
30000
|
-
BitType.
|
|
30089
|
+
BitType.extractorImage
|
|
30001
30090
|
])) {
|
|
30002
30091
|
if (bitType === BitType.imagesLogoGrave) {
|
|
30003
30092
|
if (bitJson.logos == null) {
|
|
@@ -30429,7 +30518,7 @@ var JsonParser = class {
|
|
|
30429
30518
|
processResources(bitType, resource, images, logos) {
|
|
30430
30519
|
const nodes = [];
|
|
30431
30520
|
if (resource) nodes.push(resource);
|
|
30432
|
-
if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.
|
|
30521
|
+
if (instance2.isOfBitType(bitType, [BitType.prototypeImages, BitType.extractorImage])) {
|
|
30433
30522
|
if (Array.isArray(images)) {
|
|
30434
30523
|
for (const image of images) {
|
|
30435
30524
|
if (image) nodes.push(image);
|