@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/cli/main.js
CHANGED
|
@@ -1103,6 +1103,7 @@ var propertyKeys = {
|
|
|
1103
1103
|
property_ageRange: "@ageRange",
|
|
1104
1104
|
property_aiGenerated: "@aiGenerated",
|
|
1105
1105
|
property_allowedBit: "@allowedBit",
|
|
1106
|
+
property_allowPrint: "@allowPrint",
|
|
1106
1107
|
property_allowSubtitles: "@allowSubtitles",
|
|
1107
1108
|
property_alt: "@alt",
|
|
1108
1109
|
property_altLangTag: "@altLangTag",
|
|
@@ -3365,6 +3366,12 @@ var GROUPS = {
|
|
|
3365
3366
|
description: "Url of the internal print PDF for the book",
|
|
3366
3367
|
format: TagFormat.plainText
|
|
3367
3368
|
},
|
|
3369
|
+
{
|
|
3370
|
+
key: ConfigKey.property_allowPrint,
|
|
3371
|
+
description: "If true, the book allows printing",
|
|
3372
|
+
format: TagFormat.boolean,
|
|
3373
|
+
defaultValue: "false"
|
|
3374
|
+
},
|
|
3368
3375
|
{
|
|
3369
3376
|
key: ConfigKey.property_hasPrintRestriction,
|
|
3370
3377
|
description: "If true, the book has print restrictions",
|
|
@@ -10292,7 +10299,7 @@ var instance2 = new Config();
|
|
|
10292
10299
|
// src/generated/package_info.ts
|
|
10293
10300
|
var PACKAGE_INFO = {
|
|
10294
10301
|
"name": "@gmb/bitmark-parser-generator",
|
|
10295
|
-
"version": "5.
|
|
10302
|
+
"version": "5.6.0",
|
|
10296
10303
|
"license": "ISC"};
|
|
10297
10304
|
var Environment = {
|
|
10298
10305
|
unknown: "",
|
|
@@ -10621,6 +10628,8 @@ var NodeType = {
|
|
|
10621
10628
|
alignment: "alignment",
|
|
10622
10629
|
allowedBit: "allowedBit",
|
|
10623
10630
|
allowedBitValue: "allowedBitValue",
|
|
10631
|
+
allowPrint: "allowPrint",
|
|
10632
|
+
allowPrintValue: "allowPrintValue",
|
|
10624
10633
|
alt: "alt",
|
|
10625
10634
|
alternativeAnswers: "alternativeAnswers",
|
|
10626
10635
|
alternativeAnswersValue: "alternativeAnswersValue",
|
|
@@ -24604,6 +24613,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24604
24613
|
options
|
|
24605
24614
|
),
|
|
24606
24615
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24616
|
+
allowPrint: this.toAstProperty(
|
|
24617
|
+
bitType,
|
|
24618
|
+
ConfigKey.property_allowPrint,
|
|
24619
|
+
data.allowPrint,
|
|
24620
|
+
options
|
|
24621
|
+
),
|
|
24607
24622
|
printParentChapterLevel: this.toAstProperty(
|
|
24608
24623
|
bitType,
|
|
24609
24624
|
ConfigKey.property_printParentChapterLevel,
|
|
@@ -30281,6 +30296,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30281
30296
|
}
|
|
30282
30297
|
if (instance2.isOfBitType(bitType, BitType.book)) {
|
|
30283
30298
|
if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
|
|
30299
|
+
if (bitJson.allowPrint == null) bitJson.allowPrint = false;
|
|
30284
30300
|
if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
|
|
30285
30301
|
if (bitJson.enforceUpdateOverUserInput == null) bitJson.enforceUpdateOverUserInput = false;
|
|
30286
30302
|
if (bitJson.hasMarkAsDone == null) bitJson.hasMarkAsDone = false;
|