@gmb/bitmark-parser-generator 5.5.0 → 5.6.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 +17 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +7 -0
- package/dist/browser/esm/index.d.ts +7 -0
- package/dist/browser/esm/index.js +17 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +17 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -713,6 +713,7 @@ declare const ConfigKey: {
|
|
|
713
713
|
readonly property_ageRange: "@ageRange";
|
|
714
714
|
readonly property_aiGenerated: "@aiGenerated";
|
|
715
715
|
readonly property_allowedBit: "@allowedBit";
|
|
716
|
+
readonly property_allowPrint: "@allowPrint";
|
|
716
717
|
readonly property_allowSubtitles: "@allowSubtitles";
|
|
717
718
|
readonly property_alt: "@alt";
|
|
718
719
|
readonly property_altLangTag: "@altLangTag";
|
|
@@ -1794,6 +1795,7 @@ interface BitJson {
|
|
|
1794
1795
|
maxCreatedBits: number;
|
|
1795
1796
|
maxDisplayLevel: number;
|
|
1796
1797
|
maxTocChapterLevel: number;
|
|
1798
|
+
allowPrint: boolean;
|
|
1797
1799
|
printParentChapterLevel: number;
|
|
1798
1800
|
sourceDocument: string;
|
|
1799
1801
|
internalPrintPdf: string;
|
|
@@ -2417,6 +2419,8 @@ interface Bit {
|
|
|
2417
2419
|
tocResource?: Property;
|
|
2418
2420
|
tocContent?: Property;
|
|
2419
2421
|
page?: Property;
|
|
2422
|
+
allowPrint?: Property;
|
|
2423
|
+
allowPrintValue?: Property;
|
|
2420
2424
|
printParentChapterLevel?: Property;
|
|
2421
2425
|
platformBrandTarget?: Property;
|
|
2422
2426
|
platformName?: Property;
|
|
@@ -2566,6 +2570,8 @@ declare const NodeType: {
|
|
|
2566
2570
|
readonly alignment: "alignment";
|
|
2567
2571
|
readonly allowedBit: "allowedBit";
|
|
2568
2572
|
readonly allowedBitValue: "allowedBitValue";
|
|
2573
|
+
readonly allowPrint: "allowPrint";
|
|
2574
|
+
readonly allowPrintValue: "allowPrintValue";
|
|
2569
2575
|
readonly alt: "alt";
|
|
2570
2576
|
readonly alternativeAnswers: "alternativeAnswers";
|
|
2571
2577
|
readonly alternativeAnswersValue: "alternativeAnswersValue";
|
|
@@ -4223,6 +4229,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4223
4229
|
maxTocChapterLevel?: number;
|
|
4224
4230
|
sourceDocument?: string;
|
|
4225
4231
|
internalPrintPdf?: string;
|
|
4232
|
+
allowPrint?: boolean;
|
|
4226
4233
|
hasPrintRestriction?: boolean;
|
|
4227
4234
|
enforceUpdateOverUserInput?: boolean;
|
|
4228
4235
|
extractorExtractionTimestamp?: string[];
|
|
@@ -713,6 +713,7 @@ declare const ConfigKey: {
|
|
|
713
713
|
readonly property_ageRange: "@ageRange";
|
|
714
714
|
readonly property_aiGenerated: "@aiGenerated";
|
|
715
715
|
readonly property_allowedBit: "@allowedBit";
|
|
716
|
+
readonly property_allowPrint: "@allowPrint";
|
|
716
717
|
readonly property_allowSubtitles: "@allowSubtitles";
|
|
717
718
|
readonly property_alt: "@alt";
|
|
718
719
|
readonly property_altLangTag: "@altLangTag";
|
|
@@ -1794,6 +1795,7 @@ interface BitJson {
|
|
|
1794
1795
|
maxCreatedBits: number;
|
|
1795
1796
|
maxDisplayLevel: number;
|
|
1796
1797
|
maxTocChapterLevel: number;
|
|
1798
|
+
allowPrint: boolean;
|
|
1797
1799
|
printParentChapterLevel: number;
|
|
1798
1800
|
sourceDocument: string;
|
|
1799
1801
|
internalPrintPdf: string;
|
|
@@ -2417,6 +2419,8 @@ interface Bit {
|
|
|
2417
2419
|
tocResource?: Property;
|
|
2418
2420
|
tocContent?: Property;
|
|
2419
2421
|
page?: Property;
|
|
2422
|
+
allowPrint?: Property;
|
|
2423
|
+
allowPrintValue?: Property;
|
|
2420
2424
|
printParentChapterLevel?: Property;
|
|
2421
2425
|
platformBrandTarget?: Property;
|
|
2422
2426
|
platformName?: Property;
|
|
@@ -2566,6 +2570,8 @@ declare const NodeType: {
|
|
|
2566
2570
|
readonly alignment: "alignment";
|
|
2567
2571
|
readonly allowedBit: "allowedBit";
|
|
2568
2572
|
readonly allowedBitValue: "allowedBitValue";
|
|
2573
|
+
readonly allowPrint: "allowPrint";
|
|
2574
|
+
readonly allowPrintValue: "allowPrintValue";
|
|
2569
2575
|
readonly alt: "alt";
|
|
2570
2576
|
readonly alternativeAnswers: "alternativeAnswers";
|
|
2571
2577
|
readonly alternativeAnswersValue: "alternativeAnswersValue";
|
|
@@ -4223,6 +4229,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4223
4229
|
maxTocChapterLevel?: number;
|
|
4224
4230
|
sourceDocument?: string;
|
|
4225
4231
|
internalPrintPdf?: string;
|
|
4232
|
+
allowPrint?: boolean;
|
|
4226
4233
|
hasPrintRestriction?: boolean;
|
|
4227
4234
|
enforceUpdateOverUserInput?: boolean;
|
|
4228
4235
|
extractorExtractionTimestamp?: string[];
|
|
@@ -1138,6 +1138,7 @@ var propertyKeys = {
|
|
|
1138
1138
|
property_ageRange: "@ageRange",
|
|
1139
1139
|
property_aiGenerated: "@aiGenerated",
|
|
1140
1140
|
property_allowedBit: "@allowedBit",
|
|
1141
|
+
property_allowPrint: "@allowPrint",
|
|
1141
1142
|
property_allowSubtitles: "@allowSubtitles",
|
|
1142
1143
|
property_alt: "@alt",
|
|
1143
1144
|
property_altLangTag: "@altLangTag",
|
|
@@ -3409,6 +3410,12 @@ var GROUPS = {
|
|
|
3409
3410
|
description: "Url of the internal print PDF for the book",
|
|
3410
3411
|
format: TagFormat.plainText
|
|
3411
3412
|
},
|
|
3413
|
+
{
|
|
3414
|
+
key: ConfigKey.property_allowPrint,
|
|
3415
|
+
description: "If true, the book allows printing",
|
|
3416
|
+
format: TagFormat.boolean,
|
|
3417
|
+
defaultValue: "false"
|
|
3418
|
+
},
|
|
3412
3419
|
{
|
|
3413
3420
|
key: ConfigKey.property_hasPrintRestriction,
|
|
3414
3421
|
description: "If true, the book has print restrictions",
|
|
@@ -10336,7 +10343,7 @@ var instance2 = new Config();
|
|
|
10336
10343
|
// src/generated/package_info.ts
|
|
10337
10344
|
var PACKAGE_INFO = {
|
|
10338
10345
|
"name": "@gmb/bitmark-parser-generator",
|
|
10339
|
-
"version": "5.
|
|
10346
|
+
"version": "5.6.0",
|
|
10340
10347
|
"author": "Get More Brain Ltd",
|
|
10341
10348
|
"license": "ISC",
|
|
10342
10349
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10697,6 +10704,8 @@ var NodeType = {
|
|
|
10697
10704
|
alignment: "alignment",
|
|
10698
10705
|
allowedBit: "allowedBit",
|
|
10699
10706
|
allowedBitValue: "allowedBitValue",
|
|
10707
|
+
allowPrint: "allowPrint",
|
|
10708
|
+
allowPrintValue: "allowPrintValue",
|
|
10700
10709
|
alt: "alt",
|
|
10701
10710
|
alternativeAnswers: "alternativeAnswers",
|
|
10702
10711
|
alternativeAnswersValue: "alternativeAnswersValue",
|
|
@@ -24864,6 +24873,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24864
24873
|
options
|
|
24865
24874
|
),
|
|
24866
24875
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24876
|
+
allowPrint: this.toAstProperty(
|
|
24877
|
+
bitType,
|
|
24878
|
+
ConfigKey.property_allowPrint,
|
|
24879
|
+
data.allowPrint,
|
|
24880
|
+
options
|
|
24881
|
+
),
|
|
24867
24882
|
printParentChapterLevel: this.toAstProperty(
|
|
24868
24883
|
bitType,
|
|
24869
24884
|
ConfigKey.property_printParentChapterLevel,
|
|
@@ -30566,6 +30581,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30566
30581
|
}
|
|
30567
30582
|
if (instance2.isOfBitType(bitType, BitType.book)) {
|
|
30568
30583
|
if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
|
|
30584
|
+
if (bitJson.allowPrint == null) bitJson.allowPrint = false;
|
|
30569
30585
|
if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
|
|
30570
30586
|
if (bitJson.enforceUpdateOverUserInput == null) bitJson.enforceUpdateOverUserInput = false;
|
|
30571
30587
|
if (bitJson.hasMarkAsDone == null) bitJson.hasMarkAsDone = false;
|