@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
|
@@ -258,6 +258,7 @@ declare const BitType: {
|
|
|
258
258
|
readonly extractorPageWithBlocks: "extractor-page-with-blocks";
|
|
259
259
|
readonly extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible";
|
|
260
260
|
readonly extractorRepeatedText: "extractor-repeated-text";
|
|
261
|
+
readonly extractorRule: "extractor-rule";
|
|
261
262
|
readonly extractorTheme: "extractor-theme";
|
|
262
263
|
readonly featured: "featured";
|
|
263
264
|
readonly feedback: "feedback";
|
|
@@ -285,6 +286,7 @@ declare const BitType: {
|
|
|
285
286
|
readonly handInPhoto: "hand-in-photo";
|
|
286
287
|
readonly handInScan: "hand-in-scan";
|
|
287
288
|
readonly handInSubmit: "hand-in-submit";
|
|
289
|
+
readonly handInSystemMedia: "hand-in-system-media";
|
|
288
290
|
readonly handInVideo: "hand-in-video";
|
|
289
291
|
readonly handInVoice: "hand-in-voice";
|
|
290
292
|
readonly help: "help";
|
|
@@ -258,6 +258,7 @@ declare const BitType: {
|
|
|
258
258
|
readonly extractorPageWithBlocks: "extractor-page-with-blocks";
|
|
259
259
|
readonly extractorPageWithBlocksCollapsible: "extractor-page-with-blocks-collapsible";
|
|
260
260
|
readonly extractorRepeatedText: "extractor-repeated-text";
|
|
261
|
+
readonly extractorRule: "extractor-rule";
|
|
261
262
|
readonly extractorTheme: "extractor-theme";
|
|
262
263
|
readonly featured: "featured";
|
|
263
264
|
readonly feedback: "feedback";
|
|
@@ -285,6 +286,7 @@ declare const BitType: {
|
|
|
285
286
|
readonly handInPhoto: "hand-in-photo";
|
|
286
287
|
readonly handInScan: "hand-in-scan";
|
|
287
288
|
readonly handInSubmit: "hand-in-submit";
|
|
289
|
+
readonly handInSystemMedia: "hand-in-system-media";
|
|
288
290
|
readonly handInVideo: "hand-in-video";
|
|
289
291
|
readonly handInVoice: "hand-in-voice";
|
|
290
292
|
readonly help: "help";
|
|
@@ -267,6 +267,7 @@ var BitType2 = {
|
|
|
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 BitType2 = {
|
|
|
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",
|
|
@@ -7837,6 +7839,24 @@ var BITS = {
|
|
|
7837
7839
|
baseBitType: BitType2.article,
|
|
7838
7840
|
description: "Extractor repeated text bit, used to define repeated text in extractor pages"
|
|
7839
7841
|
},
|
|
7842
|
+
[BitType2.extractorRule]: {
|
|
7843
|
+
since: "5.17.0",
|
|
7844
|
+
baseBitType: BitType2._standard,
|
|
7845
|
+
description: "Extractor rule bit, used to define extraction rules with reference images and instructions",
|
|
7846
|
+
tags: [
|
|
7847
|
+
{
|
|
7848
|
+
key: ConfigKey.group_resourceBitTags,
|
|
7849
|
+
description: "Resource bit tags for extraction rule images"
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
key: ConfigKey.group_resourceImage,
|
|
7853
|
+
description: "Resource image tags for the rule reference image",
|
|
7854
|
+
minCount: 1
|
|
7855
|
+
}
|
|
7856
|
+
],
|
|
7857
|
+
resourceAttachmentAllowed: false,
|
|
7858
|
+
textFormatDefault: TextFormat2.plainText
|
|
7859
|
+
},
|
|
7840
7860
|
[BitType2.extractorPageNumber]: {
|
|
7841
7861
|
since: "1.5.21",
|
|
7842
7862
|
baseBitType: BitType2.article,
|
|
@@ -10191,6 +10211,20 @@ var BITS = {
|
|
|
10191
10211
|
baseBitType: BitType2._standard,
|
|
10192
10212
|
description: "Hand in scan bit, used to create scan submission sections in articles or books"
|
|
10193
10213
|
},
|
|
10214
|
+
[BitType2.handInSystemMedia]: {
|
|
10215
|
+
//
|
|
10216
|
+
since: "1.5.15",
|
|
10217
|
+
baseBitType: BitType2._standard,
|
|
10218
|
+
description: "Hand in system media bit, used to create system media submission sections in articles or books",
|
|
10219
|
+
tags: [
|
|
10220
|
+
{
|
|
10221
|
+
key: ConfigKey.property_handInAcceptFileType,
|
|
10222
|
+
description: "Accepted file types for the hand-in system media, used to define allowed file formats",
|
|
10223
|
+
format: TagFormat.plainText,
|
|
10224
|
+
maxCount: Count.infinity
|
|
10225
|
+
}
|
|
10226
|
+
]
|
|
10227
|
+
},
|
|
10194
10228
|
[BitType2.handInSubmit]: {
|
|
10195
10229
|
//
|
|
10196
10230
|
since: "3.2.0",
|
|
@@ -10920,7 +10954,7 @@ var instance2 = new Config();
|
|
|
10920
10954
|
// src/generated/package_info.ts
|
|
10921
10955
|
var PACKAGE_INFO = {
|
|
10922
10956
|
"name": "@gmb/bitmark-parser-generator",
|
|
10923
|
-
"version": "5.
|
|
10957
|
+
"version": "5.19.0",
|
|
10924
10958
|
"author": "Get More Brain Ltd",
|
|
10925
10959
|
"license": "ISC",
|
|
10926
10960
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -31345,7 +31379,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
31345
31379
|
if (bitJson.buttonCaption == null) bitJson.buttonCaption = "";
|
|
31346
31380
|
if (bitJson.callToActionUrl == null) bitJson.callToActionUrl = "";
|
|
31347
31381
|
}
|
|
31348
|
-
if (instance2.isOfBitType(bitType, BitType2.handInFile)) {
|
|
31382
|
+
if (instance2.isOfBitType(bitType, [BitType2.handInFile, BitType2.handInSystemMedia])) {
|
|
31349
31383
|
if (bitJson.handInAcceptFileType == null) bitJson.handInAcceptFileType = [];
|
|
31350
31384
|
}
|
|
31351
31385
|
if (instance2.isOfBitType(bitType, BitType2.handInSubmit)) {
|