@gmb/bitmark-parser-generator 5.17.0 → 5.19.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 +84 -29
- package/dist/browser/cjs/index.cjs +36 -2
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +2 -0
- package/dist/browser/esm/index.d.ts +2 -0
- package/dist/browser/esm/index.js +36 -2
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +36 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +36 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +36 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/main.js
CHANGED
|
@@ -267,6 +267,7 @@ var BitType = {
|
|
|
267
267
|
extractorPageWithBlocks: "extractor-page-with-blocks",
|
|
268
268
|
extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible",
|
|
269
269
|
extractorRepeatedText: "extractor-repeated-text",
|
|
270
|
+
extractorRule: "extractor-rule",
|
|
270
271
|
extractorTheme: "extractor-theme",
|
|
271
272
|
featured: "featured",
|
|
272
273
|
feedback: "feedback",
|
|
@@ -294,6 +295,7 @@ var BitType = {
|
|
|
294
295
|
handInPhoto: "hand-in-photo",
|
|
295
296
|
handInScan: "hand-in-scan",
|
|
296
297
|
handInSubmit: "hand-in-submit",
|
|
298
|
+
handInSystemMedia: "hand-in-system-media",
|
|
297
299
|
handInVideo: "hand-in-video",
|
|
298
300
|
handInVoice: "hand-in-voice",
|
|
299
301
|
help: "help",
|
|
@@ -7793,6 +7795,24 @@ var BITS = {
|
|
|
7793
7795
|
baseBitType: BitType.article,
|
|
7794
7796
|
description: "Extractor repeated text bit, used to define repeated text in extractor pages"
|
|
7795
7797
|
},
|
|
7798
|
+
[BitType.extractorRule]: {
|
|
7799
|
+
since: "5.17.0",
|
|
7800
|
+
baseBitType: BitType._standard,
|
|
7801
|
+
description: "Extractor rule bit, used to define extraction rules with reference images and instructions",
|
|
7802
|
+
tags: [
|
|
7803
|
+
{
|
|
7804
|
+
key: ConfigKey.group_resourceBitTags,
|
|
7805
|
+
description: "Resource bit tags for extraction rule images"
|
|
7806
|
+
},
|
|
7807
|
+
{
|
|
7808
|
+
key: ConfigKey.group_resourceImage,
|
|
7809
|
+
description: "Resource image tags for the rule reference image",
|
|
7810
|
+
minCount: 1
|
|
7811
|
+
}
|
|
7812
|
+
],
|
|
7813
|
+
resourceAttachmentAllowed: false,
|
|
7814
|
+
textFormatDefault: TextFormat.plainText
|
|
7815
|
+
},
|
|
7796
7816
|
[BitType.extractorPageNumber]: {
|
|
7797
7817
|
since: "1.5.21",
|
|
7798
7818
|
baseBitType: BitType.article,
|
|
@@ -10147,6 +10167,20 @@ var BITS = {
|
|
|
10147
10167
|
baseBitType: BitType._standard,
|
|
10148
10168
|
description: "Hand in scan bit, used to create scan submission sections in articles or books"
|
|
10149
10169
|
},
|
|
10170
|
+
[BitType.handInSystemMedia]: {
|
|
10171
|
+
//
|
|
10172
|
+
since: "1.5.15",
|
|
10173
|
+
baseBitType: BitType._standard,
|
|
10174
|
+
description: "Hand in system media bit, used to create system media submission sections in articles or books",
|
|
10175
|
+
tags: [
|
|
10176
|
+
{
|
|
10177
|
+
key: ConfigKey.property_handInAcceptFileType,
|
|
10178
|
+
description: "Accepted file types for the hand-in system media, used to define allowed file formats",
|
|
10179
|
+
format: TagFormat.plainText,
|
|
10180
|
+
maxCount: Count.infinity
|
|
10181
|
+
}
|
|
10182
|
+
]
|
|
10183
|
+
},
|
|
10150
10184
|
[BitType.handInSubmit]: {
|
|
10151
10185
|
//
|
|
10152
10186
|
since: "3.2.0",
|
|
@@ -10876,7 +10910,7 @@ var instance2 = new Config();
|
|
|
10876
10910
|
// src/generated/package_info.ts
|
|
10877
10911
|
var PACKAGE_INFO = {
|
|
10878
10912
|
"name": "@gmb/bitmark-parser-generator",
|
|
10879
|
-
"version": "5.
|
|
10913
|
+
"version": "5.19.0",
|
|
10880
10914
|
"license": "ISC"};
|
|
10881
10915
|
var Environment = {
|
|
10882
10916
|
unknown: "",
|
|
@@ -31060,7 +31094,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
31060
31094
|
if (bitJson.buttonCaption == null) bitJson.buttonCaption = "";
|
|
31061
31095
|
if (bitJson.callToActionUrl == null) bitJson.callToActionUrl = "";
|
|
31062
31096
|
}
|
|
31063
|
-
if (instance2.isOfBitType(bitType, BitType.handInFile)) {
|
|
31097
|
+
if (instance2.isOfBitType(bitType, [BitType.handInFile, BitType.handInSystemMedia])) {
|
|
31064
31098
|
if (bitJson.handInAcceptFileType == null) bitJson.handInAcceptFileType = [];
|
|
31065
31099
|
}
|
|
31066
31100
|
if (instance2.isOfBitType(bitType, BitType.handInSubmit)) {
|