@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
package/dist/index.cjs
CHANGED
|
@@ -1199,6 +1199,7 @@ var propertyKeys = {
|
|
|
1199
1199
|
property_ageRange: "@ageRange",
|
|
1200
1200
|
property_aiGenerated: "@aiGenerated",
|
|
1201
1201
|
property_allowedBit: "@allowedBit",
|
|
1202
|
+
property_allowPrint: "@allowPrint",
|
|
1202
1203
|
property_allowSubtitles: "@allowSubtitles",
|
|
1203
1204
|
property_alt: "@alt",
|
|
1204
1205
|
property_altLangTag: "@altLangTag",
|
|
@@ -3470,6 +3471,12 @@ var GROUPS = {
|
|
|
3470
3471
|
description: "Url of the internal print PDF for the book",
|
|
3471
3472
|
format: TagFormat.plainText
|
|
3472
3473
|
},
|
|
3474
|
+
{
|
|
3475
|
+
key: ConfigKey.property_allowPrint,
|
|
3476
|
+
description: "If true, the book allows printing",
|
|
3477
|
+
format: TagFormat.boolean,
|
|
3478
|
+
defaultValue: "false"
|
|
3479
|
+
},
|
|
3473
3480
|
{
|
|
3474
3481
|
key: ConfigKey.property_hasPrintRestriction,
|
|
3475
3482
|
description: "If true, the book has print restrictions",
|
|
@@ -10397,7 +10404,7 @@ var instance2 = new Config();
|
|
|
10397
10404
|
// src/generated/package_info.ts
|
|
10398
10405
|
var PACKAGE_INFO = {
|
|
10399
10406
|
"name": "@gmb/bitmark-parser-generator",
|
|
10400
|
-
"version": "5.
|
|
10407
|
+
"version": "5.6.0",
|
|
10401
10408
|
"author": "Get More Brain Ltd",
|
|
10402
10409
|
"license": "ISC",
|
|
10403
10410
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10758,6 +10765,8 @@ var NodeType = {
|
|
|
10758
10765
|
alignment: "alignment",
|
|
10759
10766
|
allowedBit: "allowedBit",
|
|
10760
10767
|
allowedBitValue: "allowedBitValue",
|
|
10768
|
+
allowPrint: "allowPrint",
|
|
10769
|
+
allowPrintValue: "allowPrintValue",
|
|
10761
10770
|
alt: "alt",
|
|
10762
10771
|
alternativeAnswers: "alternativeAnswers",
|
|
10763
10772
|
alternativeAnswersValue: "alternativeAnswersValue",
|
|
@@ -24925,6 +24934,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24925
24934
|
options
|
|
24926
24935
|
),
|
|
24927
24936
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24937
|
+
allowPrint: this.toAstProperty(
|
|
24938
|
+
bitType,
|
|
24939
|
+
ConfigKey.property_allowPrint,
|
|
24940
|
+
data.allowPrint,
|
|
24941
|
+
options
|
|
24942
|
+
),
|
|
24928
24943
|
printParentChapterLevel: this.toAstProperty(
|
|
24929
24944
|
bitType,
|
|
24930
24945
|
ConfigKey.property_printParentChapterLevel,
|
|
@@ -30627,6 +30642,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30627
30642
|
}
|
|
30628
30643
|
if (instance2.isOfBitType(bitType, BitType.book)) {
|
|
30629
30644
|
if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
|
|
30645
|
+
if (bitJson.allowPrint == null) bitJson.allowPrint = false;
|
|
30630
30646
|
if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
|
|
30631
30647
|
if (bitJson.enforceUpdateOverUserInput == null) bitJson.enforceUpdateOverUserInput = false;
|
|
30632
30648
|
if (bitJson.hasMarkAsDone == null) bitJson.hasMarkAsDone = false;
|