@gmb/bitmark-parser-generator 5.8.0 → 5.9.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 +5 -5
- package/dist/browser/cjs/index.cjs +28 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +9 -0
- package/dist/browser/esm/index.d.ts +9 -0
- package/dist/browser/esm/index.js +28 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +28 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +28 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/package.json +16 -16
|
@@ -718,6 +718,7 @@ declare const ConfigKey: {
|
|
|
718
718
|
readonly property_aiGenerated: "@aiGenerated";
|
|
719
719
|
readonly property_allowedBit: "@allowedBit";
|
|
720
720
|
readonly property_allowPrint: "@allowPrint";
|
|
721
|
+
readonly property_allowPrintEnforceSpaceConfiguration: "@allowPrintEnforceSpaceConfiguration";
|
|
721
722
|
readonly property_allowSubtitles: "@allowSubtitles";
|
|
722
723
|
readonly property_alt: "@alt";
|
|
723
724
|
readonly property_altLangTag: "@altLangTag";
|
|
@@ -852,6 +853,7 @@ declare const ConfigKey: {
|
|
|
852
853
|
readonly property_location: "@location";
|
|
853
854
|
readonly property_machineTranslated: "@machineTranslated";
|
|
854
855
|
readonly property_translationOf: "@translationOf";
|
|
856
|
+
readonly property_translationOfBook: "@translationOfBook";
|
|
855
857
|
readonly property_spansPageBreak: "@spansPageBreak";
|
|
856
858
|
readonly property_mailingList: "@mailingList";
|
|
857
859
|
readonly property_mark: "@mark";
|
|
@@ -1805,6 +1807,7 @@ interface BitJson {
|
|
|
1805
1807
|
maxDisplayLevel: number;
|
|
1806
1808
|
maxTocChapterLevel: number;
|
|
1807
1809
|
allowPrint: boolean;
|
|
1810
|
+
allowPrintEnforceSpaceConfiguration: boolean;
|
|
1808
1811
|
printParentChapterLevel: number;
|
|
1809
1812
|
sourceDocument: string;
|
|
1810
1813
|
internalPrintPdf: string;
|
|
@@ -2295,6 +2298,7 @@ interface Bit {
|
|
|
2295
2298
|
coverColor?: Property;
|
|
2296
2299
|
publications?: Property;
|
|
2297
2300
|
relatedBook?: Property;
|
|
2301
|
+
translationOfBook?: Property;
|
|
2298
2302
|
author?: Property;
|
|
2299
2303
|
subject?: Property;
|
|
2300
2304
|
date?: Property;
|
|
@@ -2432,6 +2436,7 @@ interface Bit {
|
|
|
2432
2436
|
tocContent?: Property;
|
|
2433
2437
|
page?: Property;
|
|
2434
2438
|
allowPrint?: Property;
|
|
2439
|
+
allowPrintEnforceSpaceConfiguration?: Property;
|
|
2435
2440
|
allowPrintValue?: Property;
|
|
2436
2441
|
printParentChapterLevel?: Property;
|
|
2437
2442
|
platformBrandTarget?: Property;
|
|
@@ -3079,6 +3084,8 @@ declare const NodeType: {
|
|
|
3079
3084
|
readonly refPublisher: "refPublisher";
|
|
3080
3085
|
readonly relatedBook: "relatedBook";
|
|
3081
3086
|
readonly relatedBookValue: "relatedBookValue";
|
|
3087
|
+
readonly translationOfBook: "translationOfBook";
|
|
3088
|
+
readonly translationOfBookValue: "translationOfBookValue";
|
|
3082
3089
|
readonly releaseDate: "releaseDate";
|
|
3083
3090
|
readonly releaseDateValue: "releaseDateValue";
|
|
3084
3091
|
readonly releaseKind: "releaseKind";
|
|
@@ -4125,6 +4132,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4125
4132
|
coverColor?: string;
|
|
4126
4133
|
publications?: string | string[];
|
|
4127
4134
|
relatedBook?: string | string[];
|
|
4135
|
+
translationOfBook?: string;
|
|
4128
4136
|
author?: string | string[];
|
|
4129
4137
|
subject?: string | string[];
|
|
4130
4138
|
date?: string;
|
|
@@ -4251,6 +4259,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4251
4259
|
sourceDocument?: string;
|
|
4252
4260
|
internalPrintPdf?: string;
|
|
4253
4261
|
allowPrint?: boolean;
|
|
4262
|
+
allowPrintEnforceSpaceConfiguration?: boolean;
|
|
4254
4263
|
hasPrintRestriction?: boolean;
|
|
4255
4264
|
enforceUpdateOverUserInput?: boolean;
|
|
4256
4265
|
extractorExtractionTimestamp?: string[];
|
|
@@ -718,6 +718,7 @@ declare const ConfigKey: {
|
|
|
718
718
|
readonly property_aiGenerated: "@aiGenerated";
|
|
719
719
|
readonly property_allowedBit: "@allowedBit";
|
|
720
720
|
readonly property_allowPrint: "@allowPrint";
|
|
721
|
+
readonly property_allowPrintEnforceSpaceConfiguration: "@allowPrintEnforceSpaceConfiguration";
|
|
721
722
|
readonly property_allowSubtitles: "@allowSubtitles";
|
|
722
723
|
readonly property_alt: "@alt";
|
|
723
724
|
readonly property_altLangTag: "@altLangTag";
|
|
@@ -852,6 +853,7 @@ declare const ConfigKey: {
|
|
|
852
853
|
readonly property_location: "@location";
|
|
853
854
|
readonly property_machineTranslated: "@machineTranslated";
|
|
854
855
|
readonly property_translationOf: "@translationOf";
|
|
856
|
+
readonly property_translationOfBook: "@translationOfBook";
|
|
855
857
|
readonly property_spansPageBreak: "@spansPageBreak";
|
|
856
858
|
readonly property_mailingList: "@mailingList";
|
|
857
859
|
readonly property_mark: "@mark";
|
|
@@ -1805,6 +1807,7 @@ interface BitJson {
|
|
|
1805
1807
|
maxDisplayLevel: number;
|
|
1806
1808
|
maxTocChapterLevel: number;
|
|
1807
1809
|
allowPrint: boolean;
|
|
1810
|
+
allowPrintEnforceSpaceConfiguration: boolean;
|
|
1808
1811
|
printParentChapterLevel: number;
|
|
1809
1812
|
sourceDocument: string;
|
|
1810
1813
|
internalPrintPdf: string;
|
|
@@ -2295,6 +2298,7 @@ interface Bit {
|
|
|
2295
2298
|
coverColor?: Property;
|
|
2296
2299
|
publications?: Property;
|
|
2297
2300
|
relatedBook?: Property;
|
|
2301
|
+
translationOfBook?: Property;
|
|
2298
2302
|
author?: Property;
|
|
2299
2303
|
subject?: Property;
|
|
2300
2304
|
date?: Property;
|
|
@@ -2432,6 +2436,7 @@ interface Bit {
|
|
|
2432
2436
|
tocContent?: Property;
|
|
2433
2437
|
page?: Property;
|
|
2434
2438
|
allowPrint?: Property;
|
|
2439
|
+
allowPrintEnforceSpaceConfiguration?: Property;
|
|
2435
2440
|
allowPrintValue?: Property;
|
|
2436
2441
|
printParentChapterLevel?: Property;
|
|
2437
2442
|
platformBrandTarget?: Property;
|
|
@@ -3079,6 +3084,8 @@ declare const NodeType: {
|
|
|
3079
3084
|
readonly refPublisher: "refPublisher";
|
|
3080
3085
|
readonly relatedBook: "relatedBook";
|
|
3081
3086
|
readonly relatedBookValue: "relatedBookValue";
|
|
3087
|
+
readonly translationOfBook: "translationOfBook";
|
|
3088
|
+
readonly translationOfBookValue: "translationOfBookValue";
|
|
3082
3089
|
readonly releaseDate: "releaseDate";
|
|
3083
3090
|
readonly releaseDateValue: "releaseDateValue";
|
|
3084
3091
|
readonly releaseKind: "releaseKind";
|
|
@@ -4125,6 +4132,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4125
4132
|
coverColor?: string;
|
|
4126
4133
|
publications?: string | string[];
|
|
4127
4134
|
relatedBook?: string | string[];
|
|
4135
|
+
translationOfBook?: string;
|
|
4128
4136
|
author?: string | string[];
|
|
4129
4137
|
subject?: string | string[];
|
|
4130
4138
|
date?: string;
|
|
@@ -4251,6 +4259,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4251
4259
|
sourceDocument?: string;
|
|
4252
4260
|
internalPrintPdf?: string;
|
|
4253
4261
|
allowPrint?: boolean;
|
|
4262
|
+
allowPrintEnforceSpaceConfiguration?: boolean;
|
|
4254
4263
|
hasPrintRestriction?: boolean;
|
|
4255
4264
|
enforceUpdateOverUserInput?: boolean;
|
|
4256
4265
|
extractorExtractionTimestamp?: string[];
|
|
@@ -1143,6 +1143,7 @@ var propertyKeys = {
|
|
|
1143
1143
|
property_aiGenerated: "@aiGenerated",
|
|
1144
1144
|
property_allowedBit: "@allowedBit",
|
|
1145
1145
|
property_allowPrint: "@allowPrint",
|
|
1146
|
+
property_allowPrintEnforceSpaceConfiguration: "@allowPrintEnforceSpaceConfiguration",
|
|
1146
1147
|
property_allowSubtitles: "@allowSubtitles",
|
|
1147
1148
|
property_alt: "@alt",
|
|
1148
1149
|
property_altLangTag: "@altLangTag",
|
|
@@ -1277,6 +1278,7 @@ var propertyKeys = {
|
|
|
1277
1278
|
property_location: "@location",
|
|
1278
1279
|
property_machineTranslated: "@machineTranslated",
|
|
1279
1280
|
property_translationOf: "@translationOf",
|
|
1281
|
+
property_translationOfBook: "@translationOfBook",
|
|
1280
1282
|
property_spansPageBreak: "@spansPageBreak",
|
|
1281
1283
|
property_mailingList: "@mailingList",
|
|
1282
1284
|
property_mark: "@mark",
|
|
@@ -3415,6 +3417,11 @@ var GROUPS = {
|
|
|
3415
3417
|
format: TagFormat.plainText,
|
|
3416
3418
|
maxCount: Count.infinity
|
|
3417
3419
|
},
|
|
3420
|
+
{
|
|
3421
|
+
key: ConfigKey.property_translationOfBook,
|
|
3422
|
+
description: "External Id of the translated book",
|
|
3423
|
+
format: TagFormat.plainText
|
|
3424
|
+
},
|
|
3418
3425
|
{
|
|
3419
3426
|
key: ConfigKey.property_duration,
|
|
3420
3427
|
description: "The duration of the book",
|
|
@@ -3441,6 +3448,12 @@ var GROUPS = {
|
|
|
3441
3448
|
format: TagFormat.boolean,
|
|
3442
3449
|
defaultValue: "false"
|
|
3443
3450
|
},
|
|
3451
|
+
{
|
|
3452
|
+
key: ConfigKey.property_allowPrintEnforceSpaceConfiguration,
|
|
3453
|
+
description: "If true, enforces space configuration for printing regardless of the allowPrint setting",
|
|
3454
|
+
format: TagFormat.boolean,
|
|
3455
|
+
defaultValue: "false"
|
|
3456
|
+
},
|
|
3444
3457
|
{
|
|
3445
3458
|
key: ConfigKey.property_hasPrintRestriction,
|
|
3446
3459
|
description: "If true, the book has print restrictions",
|
|
@@ -10389,7 +10402,7 @@ var instance2 = new Config();
|
|
|
10389
10402
|
// src/generated/package_info.ts
|
|
10390
10403
|
var PACKAGE_INFO = {
|
|
10391
10404
|
"name": "@gmb/bitmark-parser-generator",
|
|
10392
|
-
"version": "5.
|
|
10405
|
+
"version": "5.9.0",
|
|
10393
10406
|
"author": "Get More Brain Ltd",
|
|
10394
10407
|
"license": "ISC",
|
|
10395
10408
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -11253,6 +11266,8 @@ var NodeType = {
|
|
|
11253
11266
|
refPublisher: "refPublisher",
|
|
11254
11267
|
relatedBook: "relatedBook",
|
|
11255
11268
|
relatedBookValue: "relatedBookValue",
|
|
11269
|
+
translationOfBook: "translationOfBook",
|
|
11270
|
+
translationOfBookValue: "translationOfBookValue",
|
|
11256
11271
|
releaseDate: "releaseDate",
|
|
11257
11272
|
releaseDateValue: "releaseDateValue",
|
|
11258
11273
|
releaseKind: "releaseKind",
|
|
@@ -24368,6 +24383,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24368
24383
|
data.relatedBook,
|
|
24369
24384
|
options
|
|
24370
24385
|
),
|
|
24386
|
+
translationOfBook: this.toAstProperty(
|
|
24387
|
+
bitType,
|
|
24388
|
+
ConfigKey.property_translationOfBook,
|
|
24389
|
+
data.translationOfBook,
|
|
24390
|
+
options
|
|
24391
|
+
),
|
|
24371
24392
|
author: this.toAstProperty(bitType, ConfigKey.property_author, data.author, options),
|
|
24372
24393
|
subject: this.toAstProperty(bitType, ConfigKey.property_subject, data.subject, options),
|
|
24373
24394
|
date: this.toAstProperty(bitType, ConfigKey.property_date, data.date, options),
|
|
@@ -24944,6 +24965,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24944
24965
|
data.allowPrint,
|
|
24945
24966
|
options
|
|
24946
24967
|
),
|
|
24968
|
+
allowPrintEnforceSpaceConfiguration: this.toAstProperty(
|
|
24969
|
+
bitType,
|
|
24970
|
+
ConfigKey.property_allowPrintEnforceSpaceConfiguration,
|
|
24971
|
+
data.allowPrintEnforceSpaceConfiguration,
|
|
24972
|
+
options
|
|
24973
|
+
),
|
|
24947
24974
|
printParentChapterLevel: this.toAstProperty(
|
|
24948
24975
|
bitType,
|
|
24949
24976
|
ConfigKey.property_printParentChapterLevel,
|