@gmb/bitmark-parser-generator 5.5.0 → 5.7.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 +27 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +12 -0
- package/dist/browser/esm/index.d.ts +12 -0
- package/dist/browser/esm/index.js +27 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +27 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +27 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +27 -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",
|
|
@@ -1449,6 +1450,7 @@ var propertyKeys = {
|
|
|
1449
1450
|
property_technicalTerm: "@technicalTerm",
|
|
1450
1451
|
property_textReference: "@textReference",
|
|
1451
1452
|
property_theme: "@theme",
|
|
1453
|
+
property_rtl: "@rtl",
|
|
1452
1454
|
property_thumbImage: "@thumbImage",
|
|
1453
1455
|
property_title: "@title",
|
|
1454
1456
|
property_toc: "@toc",
|
|
@@ -2933,6 +2935,12 @@ var GROUPS = {
|
|
|
2933
2935
|
format: TagFormat.plainText,
|
|
2934
2936
|
maxCount: Count.infinity
|
|
2935
2937
|
},
|
|
2938
|
+
{
|
|
2939
|
+
key: ConfigKey.property_rtl,
|
|
2940
|
+
description: "If true, the book is right-to-left",
|
|
2941
|
+
format: TagFormat.boolean,
|
|
2942
|
+
defaultValue: "false"
|
|
2943
|
+
},
|
|
2936
2944
|
{
|
|
2937
2945
|
key: ConfigKey.property_target,
|
|
2938
2946
|
description: "The target(s) for the bit",
|
|
@@ -3470,6 +3478,12 @@ var GROUPS = {
|
|
|
3470
3478
|
description: "Url of the internal print PDF for the book",
|
|
3471
3479
|
format: TagFormat.plainText
|
|
3472
3480
|
},
|
|
3481
|
+
{
|
|
3482
|
+
key: ConfigKey.property_allowPrint,
|
|
3483
|
+
description: "If true, the book allows printing",
|
|
3484
|
+
format: TagFormat.boolean,
|
|
3485
|
+
defaultValue: "false"
|
|
3486
|
+
},
|
|
3473
3487
|
{
|
|
3474
3488
|
key: ConfigKey.property_hasPrintRestriction,
|
|
3475
3489
|
description: "If true, the book has print restrictions",
|
|
@@ -10397,7 +10411,7 @@ var instance2 = new Config();
|
|
|
10397
10411
|
// src/generated/package_info.ts
|
|
10398
10412
|
var PACKAGE_INFO = {
|
|
10399
10413
|
"name": "@gmb/bitmark-parser-generator",
|
|
10400
|
-
"version": "5.
|
|
10414
|
+
"version": "5.7.0",
|
|
10401
10415
|
"author": "Get More Brain Ltd",
|
|
10402
10416
|
"license": "ISC",
|
|
10403
10417
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10758,6 +10772,8 @@ var NodeType = {
|
|
|
10758
10772
|
alignment: "alignment",
|
|
10759
10773
|
allowedBit: "allowedBit",
|
|
10760
10774
|
allowedBitValue: "allowedBitValue",
|
|
10775
|
+
allowPrint: "allowPrint",
|
|
10776
|
+
allowPrintValue: "allowPrintValue",
|
|
10761
10777
|
alt: "alt",
|
|
10762
10778
|
alternativeAnswers: "alternativeAnswers",
|
|
10763
10779
|
alternativeAnswersValue: "alternativeAnswersValue",
|
|
@@ -11380,6 +11396,8 @@ var NodeType = {
|
|
|
11380
11396
|
textsValue: "textsValue",
|
|
11381
11397
|
theme: "theme",
|
|
11382
11398
|
themeValue: "themeValue",
|
|
11399
|
+
rtl: "rtl",
|
|
11400
|
+
rtlValue: "rtlValue",
|
|
11383
11401
|
thumbImage: "thumbImage",
|
|
11384
11402
|
thumbImageValue: "thumbImageValue",
|
|
11385
11403
|
thumbnails: "thumbnails",
|
|
@@ -24282,6 +24300,7 @@ var Builder = class extends BaseBuilder {
|
|
|
24282
24300
|
options
|
|
24283
24301
|
),
|
|
24284
24302
|
theme: this.toAstProperty(bitType, ConfigKey.property_theme, data.theme, options),
|
|
24303
|
+
rtl: this.toAstProperty(bitType, ConfigKey.property_rtl, data.rtl, options),
|
|
24285
24304
|
computerLanguage: this.toAstProperty(
|
|
24286
24305
|
bitType,
|
|
24287
24306
|
ConfigKey.property_computerLanguage,
|
|
@@ -24925,6 +24944,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24925
24944
|
options
|
|
24926
24945
|
),
|
|
24927
24946
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24947
|
+
allowPrint: this.toAstProperty(
|
|
24948
|
+
bitType,
|
|
24949
|
+
ConfigKey.property_allowPrint,
|
|
24950
|
+
data.allowPrint,
|
|
24951
|
+
options
|
|
24952
|
+
),
|
|
24928
24953
|
printParentChapterLevel: this.toAstProperty(
|
|
24929
24954
|
bitType,
|
|
24930
24955
|
ConfigKey.property_printParentChapterLevel,
|
|
@@ -30627,6 +30652,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30627
30652
|
}
|
|
30628
30653
|
if (instance2.isOfBitType(bitType, BitType.book)) {
|
|
30629
30654
|
if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
|
|
30655
|
+
if (bitJson.allowPrint == null) bitJson.allowPrint = false;
|
|
30630
30656
|
if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
|
|
30631
30657
|
if (bitJson.enforceUpdateOverUserInput == null) bitJson.enforceUpdateOverUserInput = false;
|
|
30632
30658
|
if (bitJson.hasMarkAsDone == null) bitJson.hasMarkAsDone = false;
|