@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/index.cjs
CHANGED
|
@@ -329,6 +329,7 @@ var BitType = {
|
|
|
329
329
|
extractorPageWithBlocks: "extractor-page-with-blocks",
|
|
330
330
|
extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible",
|
|
331
331
|
extractorRepeatedText: "extractor-repeated-text",
|
|
332
|
+
extractorRule: "extractor-rule",
|
|
332
333
|
extractorTheme: "extractor-theme",
|
|
333
334
|
featured: "featured",
|
|
334
335
|
feedback: "feedback",
|
|
@@ -356,6 +357,7 @@ var BitType = {
|
|
|
356
357
|
handInPhoto: "hand-in-photo",
|
|
357
358
|
handInScan: "hand-in-scan",
|
|
358
359
|
handInSubmit: "hand-in-submit",
|
|
360
|
+
handInSystemMedia: "hand-in-system-media",
|
|
359
361
|
handInVideo: "hand-in-video",
|
|
360
362
|
handInVoice: "hand-in-voice",
|
|
361
363
|
help: "help",
|
|
@@ -7899,6 +7901,24 @@ var BITS = {
|
|
|
7899
7901
|
baseBitType: BitType.article,
|
|
7900
7902
|
description: "Extractor repeated text bit, used to define repeated text in extractor pages"
|
|
7901
7903
|
},
|
|
7904
|
+
[BitType.extractorRule]: {
|
|
7905
|
+
since: "5.17.0",
|
|
7906
|
+
baseBitType: BitType._standard,
|
|
7907
|
+
description: "Extractor rule bit, used to define extraction rules with reference images and instructions",
|
|
7908
|
+
tags: [
|
|
7909
|
+
{
|
|
7910
|
+
key: ConfigKey.group_resourceBitTags,
|
|
7911
|
+
description: "Resource bit tags for extraction rule images"
|
|
7912
|
+
},
|
|
7913
|
+
{
|
|
7914
|
+
key: ConfigKey.group_resourceImage,
|
|
7915
|
+
description: "Resource image tags for the rule reference image",
|
|
7916
|
+
minCount: 1
|
|
7917
|
+
}
|
|
7918
|
+
],
|
|
7919
|
+
resourceAttachmentAllowed: false,
|
|
7920
|
+
textFormatDefault: TextFormat.plainText
|
|
7921
|
+
},
|
|
7902
7922
|
[BitType.extractorPageNumber]: {
|
|
7903
7923
|
since: "1.5.21",
|
|
7904
7924
|
baseBitType: BitType.article,
|
|
@@ -10253,6 +10273,20 @@ var BITS = {
|
|
|
10253
10273
|
baseBitType: BitType._standard,
|
|
10254
10274
|
description: "Hand in scan bit, used to create scan submission sections in articles or books"
|
|
10255
10275
|
},
|
|
10276
|
+
[BitType.handInSystemMedia]: {
|
|
10277
|
+
//
|
|
10278
|
+
since: "1.5.15",
|
|
10279
|
+
baseBitType: BitType._standard,
|
|
10280
|
+
description: "Hand in system media bit, used to create system media submission sections in articles or books",
|
|
10281
|
+
tags: [
|
|
10282
|
+
{
|
|
10283
|
+
key: ConfigKey.property_handInAcceptFileType,
|
|
10284
|
+
description: "Accepted file types for the hand-in system media, used to define allowed file formats",
|
|
10285
|
+
format: TagFormat.plainText,
|
|
10286
|
+
maxCount: Count.infinity
|
|
10287
|
+
}
|
|
10288
|
+
]
|
|
10289
|
+
},
|
|
10256
10290
|
[BitType.handInSubmit]: {
|
|
10257
10291
|
//
|
|
10258
10292
|
since: "3.2.0",
|
|
@@ -10982,7 +11016,7 @@ var instance2 = new Config();
|
|
|
10982
11016
|
// src/generated/package_info.ts
|
|
10983
11017
|
var PACKAGE_INFO = {
|
|
10984
11018
|
"name": "@gmb/bitmark-parser-generator",
|
|
10985
|
-
"version": "5.
|
|
11019
|
+
"version": "5.19.0",
|
|
10986
11020
|
"author": "Get More Brain Ltd",
|
|
10987
11021
|
"license": "ISC",
|
|
10988
11022
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -31407,7 +31441,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
31407
31441
|
if (bitJson.buttonCaption == null) bitJson.buttonCaption = "";
|
|
31408
31442
|
if (bitJson.callToActionUrl == null) bitJson.callToActionUrl = "";
|
|
31409
31443
|
}
|
|
31410
|
-
if (instance2.isOfBitType(bitType, BitType.handInFile)) {
|
|
31444
|
+
if (instance2.isOfBitType(bitType, [BitType.handInFile, BitType.handInSystemMedia])) {
|
|
31411
31445
|
if (bitJson.handInAcceptFileType == null) bitJson.handInAcceptFileType = [];
|
|
31412
31446
|
}
|
|
31413
31447
|
if (instance2.isOfBitType(bitType, BitType.handInSubmit)) {
|