@gmb/bitmark-parser-generator 5.28.0 → 5.29.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 +28 -2
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +6 -0
- package/dist/browser/esm/index.d.ts +6 -0
- package/dist/browser/esm/index.js +28 -2
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +28 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +28 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +28 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -789,6 +789,7 @@ declare const ConfigKey: {
|
|
|
789
789
|
readonly property_bubbleTag: "@bubbleTag";
|
|
790
790
|
readonly property_extractorTag: "@extractorTag";
|
|
791
791
|
readonly property_extractorInternal: "@extractorInternal";
|
|
792
|
+
readonly property_bitFingerprint: "@bitFingerprint";
|
|
792
793
|
readonly property_buttonCaption: "@buttonCaption";
|
|
793
794
|
readonly property_callToActionUrl: "@callToActionUrl";
|
|
794
795
|
readonly property_caption: "@caption";
|
|
@@ -1744,6 +1745,7 @@ interface BitJson {
|
|
|
1744
1745
|
extractorTag: string | string[];
|
|
1745
1746
|
extractorInternal: string | string[];
|
|
1746
1747
|
sourceBB?: number[] | number[][];
|
|
1748
|
+
bitFingerprint: string | string[];
|
|
1747
1749
|
levelCEFRp: string;
|
|
1748
1750
|
levelCEFR: string;
|
|
1749
1751
|
levelILR: string;
|
|
@@ -2368,6 +2370,7 @@ interface Bit {
|
|
|
2368
2370
|
extractorTag?: Property;
|
|
2369
2371
|
extractorInternal?: Property;
|
|
2370
2372
|
sourceBB?: number[][];
|
|
2373
|
+
bitFingerprint?: Property;
|
|
2371
2374
|
levelCEFRp?: Property;
|
|
2372
2375
|
levelCEFR?: Property;
|
|
2373
2376
|
levelILR?: Property;
|
|
@@ -2716,6 +2719,8 @@ declare const NodeType: {
|
|
|
2716
2719
|
readonly bits: "bits";
|
|
2717
2720
|
readonly bitsValue: "bitsValue";
|
|
2718
2721
|
readonly bitType: "bitType";
|
|
2722
|
+
readonly bitFingerprint: "bitFingerprint";
|
|
2723
|
+
readonly bitFingerprintValue: "bitFingerprintValue";
|
|
2719
2724
|
readonly blockId: "blockId";
|
|
2720
2725
|
readonly blockIdValue: "blockIdValue";
|
|
2721
2726
|
readonly body: "body";
|
|
@@ -4346,6 +4351,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4346
4351
|
extractorTag?: string | string[];
|
|
4347
4352
|
extractorInternal?: string | string[];
|
|
4348
4353
|
sourceBB?: number[] | number[][];
|
|
4354
|
+
bitFingerprint?: string | string[];
|
|
4349
4355
|
levelCEFRp?: string | string[];
|
|
4350
4356
|
levelCEFR?: string | string[];
|
|
4351
4357
|
levelILR?: string | string[];
|
|
@@ -789,6 +789,7 @@ declare const ConfigKey: {
|
|
|
789
789
|
readonly property_bubbleTag: "@bubbleTag";
|
|
790
790
|
readonly property_extractorTag: "@extractorTag";
|
|
791
791
|
readonly property_extractorInternal: "@extractorInternal";
|
|
792
|
+
readonly property_bitFingerprint: "@bitFingerprint";
|
|
792
793
|
readonly property_buttonCaption: "@buttonCaption";
|
|
793
794
|
readonly property_callToActionUrl: "@callToActionUrl";
|
|
794
795
|
readonly property_caption: "@caption";
|
|
@@ -1744,6 +1745,7 @@ interface BitJson {
|
|
|
1744
1745
|
extractorTag: string | string[];
|
|
1745
1746
|
extractorInternal: string | string[];
|
|
1746
1747
|
sourceBB?: number[] | number[][];
|
|
1748
|
+
bitFingerprint: string | string[];
|
|
1747
1749
|
levelCEFRp: string;
|
|
1748
1750
|
levelCEFR: string;
|
|
1749
1751
|
levelILR: string;
|
|
@@ -2368,6 +2370,7 @@ interface Bit {
|
|
|
2368
2370
|
extractorTag?: Property;
|
|
2369
2371
|
extractorInternal?: Property;
|
|
2370
2372
|
sourceBB?: number[][];
|
|
2373
|
+
bitFingerprint?: Property;
|
|
2371
2374
|
levelCEFRp?: Property;
|
|
2372
2375
|
levelCEFR?: Property;
|
|
2373
2376
|
levelILR?: Property;
|
|
@@ -2716,6 +2719,8 @@ declare const NodeType: {
|
|
|
2716
2719
|
readonly bits: "bits";
|
|
2717
2720
|
readonly bitsValue: "bitsValue";
|
|
2718
2721
|
readonly bitType: "bitType";
|
|
2722
|
+
readonly bitFingerprint: "bitFingerprint";
|
|
2723
|
+
readonly bitFingerprintValue: "bitFingerprintValue";
|
|
2719
2724
|
readonly blockId: "blockId";
|
|
2720
2725
|
readonly blockIdValue: "blockIdValue";
|
|
2721
2726
|
readonly body: "body";
|
|
@@ -4346,6 +4351,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4346
4351
|
extractorTag?: string | string[];
|
|
4347
4352
|
extractorInternal?: string | string[];
|
|
4348
4353
|
sourceBB?: number[] | number[][];
|
|
4354
|
+
bitFingerprint?: string | string[];
|
|
4349
4355
|
levelCEFRp?: string | string[];
|
|
4350
4356
|
levelCEFR?: string | string[];
|
|
4351
4357
|
levelILR?: string | string[];
|
|
@@ -1304,6 +1304,7 @@ var propertyKeys = {
|
|
|
1304
1304
|
property_bubbleTag: "@bubbleTag",
|
|
1305
1305
|
property_extractorTag: "@extractorTag",
|
|
1306
1306
|
property_extractorInternal: "@extractorInternal",
|
|
1307
|
+
property_bitFingerprint: "@bitFingerprint",
|
|
1307
1308
|
property_buttonCaption: "@buttonCaption",
|
|
1308
1309
|
property_callToActionUrl: "@callToActionUrl",
|
|
1309
1310
|
property_caption: "@caption",
|
|
@@ -4596,6 +4597,12 @@ var GROUPS = {
|
|
|
4596
4597
|
format: TagFormat.coordinates,
|
|
4597
4598
|
maxCount: Count.infinity
|
|
4598
4599
|
},
|
|
4600
|
+
{
|
|
4601
|
+
key: ConfigKey.property_bitFingerprint,
|
|
4602
|
+
description: "Fingerprint(s) used by the AI extractor to identify the bit (font, style, color, pixels, etc.)",
|
|
4603
|
+
format: TagFormat.plainText,
|
|
4604
|
+
maxCount: Count.infinity
|
|
4605
|
+
},
|
|
4599
4606
|
{
|
|
4600
4607
|
key: ConfigKey.property_levelCEFRp,
|
|
4601
4608
|
description: "The CEFRp level for the bit",
|
|
@@ -10189,7 +10196,18 @@ var BITS = {
|
|
|
10189
10196
|
since: "5.12.0",
|
|
10190
10197
|
baseBitType: BitType2._standard,
|
|
10191
10198
|
description: "Extractor blueprint bit, used to provide blueprint information about extractors",
|
|
10192
|
-
textFormatDefault: TextFormat2.json
|
|
10199
|
+
textFormatDefault: TextFormat2.json,
|
|
10200
|
+
tags: [
|
|
10201
|
+
{
|
|
10202
|
+
key: ConfigKey.group_resourceBitTags,
|
|
10203
|
+
description: "Resource bit tags for the blueprint reference image"
|
|
10204
|
+
},
|
|
10205
|
+
{
|
|
10206
|
+
key: ConfigKey.group_resourceImage,
|
|
10207
|
+
description: "Optional uncropped reference page image, used so authoring tools can compute crops against the original page dimensions"
|
|
10208
|
+
}
|
|
10209
|
+
],
|
|
10210
|
+
resourceAttachmentAllowed: false
|
|
10193
10211
|
},
|
|
10194
10212
|
[BitType2.extractorInformation]: {
|
|
10195
10213
|
since: "3.8.0",
|
|
@@ -13887,7 +13905,7 @@ var instance2 = new Config();
|
|
|
13887
13905
|
// src/generated/package_info.ts
|
|
13888
13906
|
var PACKAGE_INFO = {
|
|
13889
13907
|
"name": "@gmb/bitmark-parser-generator",
|
|
13890
|
-
"version": "5.
|
|
13908
|
+
"version": "5.29.0",
|
|
13891
13909
|
"author": "Get More Brain Ltd",
|
|
13892
13910
|
"license": "ISC",
|
|
13893
13911
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -14300,6 +14318,8 @@ var NodeType = {
|
|
|
14300
14318
|
// bit
|
|
14301
14319
|
bitType: "bitType",
|
|
14302
14320
|
// bit type
|
|
14321
|
+
bitFingerprint: "bitFingerprint",
|
|
14322
|
+
bitFingerprintValue: "bitFingerprintValue",
|
|
14303
14323
|
blockId: "blockId",
|
|
14304
14324
|
blockIdValue: "blockIdValue",
|
|
14305
14325
|
body: "body",
|
|
@@ -27928,6 +27948,12 @@ var Builder = class extends BaseBuilder {
|
|
|
27928
27948
|
options
|
|
27929
27949
|
),
|
|
27930
27950
|
sourceBB: this.normaliseSourceBB(data.sourceBB),
|
|
27951
|
+
bitFingerprint: this.toAstProperty(
|
|
27952
|
+
bitType,
|
|
27953
|
+
ConfigKey.property_bitFingerprint,
|
|
27954
|
+
data.bitFingerprint,
|
|
27955
|
+
options
|
|
27956
|
+
),
|
|
27931
27957
|
levelCEFRp: this.toAstProperty(
|
|
27932
27958
|
bitType,
|
|
27933
27959
|
ConfigKey.property_levelCEFRp,
|