@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
|
@@ -315,6 +315,7 @@ var BitType2 = {
|
|
|
315
315
|
extractorPageWithBlocks: "extractor-page-with-blocks",
|
|
316
316
|
extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible",
|
|
317
317
|
extractorRepeatedText: "extractor-repeated-text",
|
|
318
|
+
extractorRule: "extractor-rule",
|
|
318
319
|
extractorTheme: "extractor-theme",
|
|
319
320
|
featured: "featured",
|
|
320
321
|
feedback: "feedback",
|
|
@@ -342,6 +343,7 @@ var BitType2 = {
|
|
|
342
343
|
handInPhoto: "hand-in-photo",
|
|
343
344
|
handInScan: "hand-in-scan",
|
|
344
345
|
handInSubmit: "hand-in-submit",
|
|
346
|
+
handInSystemMedia: "hand-in-system-media",
|
|
345
347
|
handInVideo: "hand-in-video",
|
|
346
348
|
handInVoice: "hand-in-voice",
|
|
347
349
|
help: "help",
|
|
@@ -7885,6 +7887,24 @@ var BITS = {
|
|
|
7885
7887
|
baseBitType: BitType2.article,
|
|
7886
7888
|
description: "Extractor repeated text bit, used to define repeated text in extractor pages"
|
|
7887
7889
|
},
|
|
7890
|
+
[BitType2.extractorRule]: {
|
|
7891
|
+
since: "5.17.0",
|
|
7892
|
+
baseBitType: BitType2._standard,
|
|
7893
|
+
description: "Extractor rule bit, used to define extraction rules with reference images and instructions",
|
|
7894
|
+
tags: [
|
|
7895
|
+
{
|
|
7896
|
+
key: ConfigKey.group_resourceBitTags,
|
|
7897
|
+
description: "Resource bit tags for extraction rule images"
|
|
7898
|
+
},
|
|
7899
|
+
{
|
|
7900
|
+
key: ConfigKey.group_resourceImage,
|
|
7901
|
+
description: "Resource image tags for the rule reference image",
|
|
7902
|
+
minCount: 1
|
|
7903
|
+
}
|
|
7904
|
+
],
|
|
7905
|
+
resourceAttachmentAllowed: false,
|
|
7906
|
+
textFormatDefault: TextFormat2.plainText
|
|
7907
|
+
},
|
|
7888
7908
|
[BitType2.extractorPageNumber]: {
|
|
7889
7909
|
since: "1.5.21",
|
|
7890
7910
|
baseBitType: BitType2.article,
|
|
@@ -10239,6 +10259,20 @@ var BITS = {
|
|
|
10239
10259
|
baseBitType: BitType2._standard,
|
|
10240
10260
|
description: "Hand in scan bit, used to create scan submission sections in articles or books"
|
|
10241
10261
|
},
|
|
10262
|
+
[BitType2.handInSystemMedia]: {
|
|
10263
|
+
//
|
|
10264
|
+
since: "1.5.15",
|
|
10265
|
+
baseBitType: BitType2._standard,
|
|
10266
|
+
description: "Hand in system media bit, used to create system media submission sections in articles or books",
|
|
10267
|
+
tags: [
|
|
10268
|
+
{
|
|
10269
|
+
key: ConfigKey.property_handInAcceptFileType,
|
|
10270
|
+
description: "Accepted file types for the hand-in system media, used to define allowed file formats",
|
|
10271
|
+
format: TagFormat.plainText,
|
|
10272
|
+
maxCount: Count.infinity
|
|
10273
|
+
}
|
|
10274
|
+
]
|
|
10275
|
+
},
|
|
10242
10276
|
[BitType2.handInSubmit]: {
|
|
10243
10277
|
//
|
|
10244
10278
|
since: "3.2.0",
|
|
@@ -10968,7 +11002,7 @@ var instance2 = new Config();
|
|
|
10968
11002
|
// src/generated/package_info.ts
|
|
10969
11003
|
var PACKAGE_INFO = {
|
|
10970
11004
|
"name": "@gmb/bitmark-parser-generator",
|
|
10971
|
-
"version": "5.
|
|
11005
|
+
"version": "5.19.0",
|
|
10972
11006
|
"author": "Get More Brain Ltd",
|
|
10973
11007
|
"license": "ISC",
|
|
10974
11008
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -31393,7 +31427,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
31393
31427
|
if (bitJson.buttonCaption == null) bitJson.buttonCaption = "";
|
|
31394
31428
|
if (bitJson.callToActionUrl == null) bitJson.callToActionUrl = "";
|
|
31395
31429
|
}
|
|
31396
|
-
if (instance2.isOfBitType(bitType, BitType2.handInFile)) {
|
|
31430
|
+
if (instance2.isOfBitType(bitType, [BitType2.handInFile, BitType2.handInSystemMedia])) {
|
|
31397
31431
|
if (bitJson.handInAcceptFileType == null) bitJson.handInAcceptFileType = [];
|
|
31398
31432
|
}
|
|
31399
31433
|
if (instance2.isOfBitType(bitType, BitType2.handInSubmit)) {
|