@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/index.d.cts CHANGED
@@ -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";
@@ -962,6 +963,7 @@ declare const ConfigKey: {
962
963
  readonly property_technicalTerm: "@technicalTerm";
963
964
  readonly property_textReference: "@textReference";
964
965
  readonly property_theme: "@theme";
966
+ readonly property_rtl: "@rtl";
965
967
  readonly property_thumbImage: "@thumbImage";
966
968
  readonly property_title: "@title";
967
969
  readonly property_toc: "@toc";
@@ -1794,6 +1796,7 @@ interface BitJson {
1794
1796
  maxCreatedBits: number;
1795
1797
  maxDisplayLevel: number;
1796
1798
  maxTocChapterLevel: number;
1799
+ allowPrint: boolean;
1797
1800
  printParentChapterLevel: number;
1798
1801
  sourceDocument: string;
1799
1802
  internalPrintPdf: string;
@@ -2258,6 +2261,7 @@ interface Bit {
2258
2261
  publisher?: Property;
2259
2262
  publisherName?: Property;
2260
2263
  theme?: Property;
2264
+ rtl?: Property;
2261
2265
  computerLanguage?: Property;
2262
2266
  target?: Property;
2263
2267
  slug?: Property;
@@ -2417,6 +2421,8 @@ interface Bit {
2417
2421
  tocResource?: Property;
2418
2422
  tocContent?: Property;
2419
2423
  page?: Property;
2424
+ allowPrint?: Property;
2425
+ allowPrintValue?: Property;
2420
2426
  printParentChapterLevel?: Property;
2421
2427
  platformBrandTarget?: Property;
2422
2428
  platformName?: Property;
@@ -2566,6 +2572,8 @@ declare const NodeType: {
2566
2572
  readonly alignment: "alignment";
2567
2573
  readonly allowedBit: "allowedBit";
2568
2574
  readonly allowedBitValue: "allowedBitValue";
2575
+ readonly allowPrint: "allowPrint";
2576
+ readonly allowPrintValue: "allowPrintValue";
2569
2577
  readonly alt: "alt";
2570
2578
  readonly alternativeAnswers: "alternativeAnswers";
2571
2579
  readonly alternativeAnswersValue: "alternativeAnswersValue";
@@ -3181,6 +3189,8 @@ declare const NodeType: {
3181
3189
  readonly textsValue: "textsValue";
3182
3190
  readonly theme: "theme";
3183
3191
  readonly themeValue: "themeValue";
3192
+ readonly rtl: "rtl";
3193
+ readonly rtlValue: "rtlValue";
3184
3194
  readonly thumbImage: "thumbImage";
3185
3195
  readonly thumbImageValue: "thumbImageValue";
3186
3196
  readonly thumbnails: "thumbnails";
@@ -4075,6 +4085,7 @@ declare class Builder extends BaseBuilder {
4075
4085
  publisher?: string | string[];
4076
4086
  publisherName?: string;
4077
4087
  theme?: string | string[];
4088
+ rtl?: boolean;
4078
4089
  computerLanguage?: string;
4079
4090
  target?: string | string[];
4080
4091
  slug?: string;
@@ -4223,6 +4234,7 @@ declare class Builder extends BaseBuilder {
4223
4234
  maxTocChapterLevel?: number;
4224
4235
  sourceDocument?: string;
4225
4236
  internalPrintPdf?: string;
4237
+ allowPrint?: boolean;
4226
4238
  hasPrintRestriction?: boolean;
4227
4239
  enforceUpdateOverUserInput?: boolean;
4228
4240
  extractorExtractionTimestamp?: string[];
package/dist/index.d.ts CHANGED
@@ -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";
@@ -962,6 +963,7 @@ declare const ConfigKey: {
962
963
  readonly property_technicalTerm: "@technicalTerm";
963
964
  readonly property_textReference: "@textReference";
964
965
  readonly property_theme: "@theme";
966
+ readonly property_rtl: "@rtl";
965
967
  readonly property_thumbImage: "@thumbImage";
966
968
  readonly property_title: "@title";
967
969
  readonly property_toc: "@toc";
@@ -1794,6 +1796,7 @@ interface BitJson {
1794
1796
  maxCreatedBits: number;
1795
1797
  maxDisplayLevel: number;
1796
1798
  maxTocChapterLevel: number;
1799
+ allowPrint: boolean;
1797
1800
  printParentChapterLevel: number;
1798
1801
  sourceDocument: string;
1799
1802
  internalPrintPdf: string;
@@ -2258,6 +2261,7 @@ interface Bit {
2258
2261
  publisher?: Property;
2259
2262
  publisherName?: Property;
2260
2263
  theme?: Property;
2264
+ rtl?: Property;
2261
2265
  computerLanguage?: Property;
2262
2266
  target?: Property;
2263
2267
  slug?: Property;
@@ -2417,6 +2421,8 @@ interface Bit {
2417
2421
  tocResource?: Property;
2418
2422
  tocContent?: Property;
2419
2423
  page?: Property;
2424
+ allowPrint?: Property;
2425
+ allowPrintValue?: Property;
2420
2426
  printParentChapterLevel?: Property;
2421
2427
  platformBrandTarget?: Property;
2422
2428
  platformName?: Property;
@@ -2566,6 +2572,8 @@ declare const NodeType: {
2566
2572
  readonly alignment: "alignment";
2567
2573
  readonly allowedBit: "allowedBit";
2568
2574
  readonly allowedBitValue: "allowedBitValue";
2575
+ readonly allowPrint: "allowPrint";
2576
+ readonly allowPrintValue: "allowPrintValue";
2569
2577
  readonly alt: "alt";
2570
2578
  readonly alternativeAnswers: "alternativeAnswers";
2571
2579
  readonly alternativeAnswersValue: "alternativeAnswersValue";
@@ -3181,6 +3189,8 @@ declare const NodeType: {
3181
3189
  readonly textsValue: "textsValue";
3182
3190
  readonly theme: "theme";
3183
3191
  readonly themeValue: "themeValue";
3192
+ readonly rtl: "rtl";
3193
+ readonly rtlValue: "rtlValue";
3184
3194
  readonly thumbImage: "thumbImage";
3185
3195
  readonly thumbImageValue: "thumbImageValue";
3186
3196
  readonly thumbnails: "thumbnails";
@@ -4075,6 +4085,7 @@ declare class Builder extends BaseBuilder {
4075
4085
  publisher?: string | string[];
4076
4086
  publisherName?: string;
4077
4087
  theme?: string | string[];
4088
+ rtl?: boolean;
4078
4089
  computerLanguage?: string;
4079
4090
  target?: string | string[];
4080
4091
  slug?: string;
@@ -4223,6 +4234,7 @@ declare class Builder extends BaseBuilder {
4223
4234
  maxTocChapterLevel?: number;
4224
4235
  sourceDocument?: string;
4225
4236
  internalPrintPdf?: string;
4237
+ allowPrint?: boolean;
4226
4238
  hasPrintRestriction?: boolean;
4227
4239
  enforceUpdateOverUserInput?: boolean;
4228
4240
  extractorExtractionTimestamp?: string[];
package/dist/index.js CHANGED
@@ -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",
@@ -1388,6 +1389,7 @@ var propertyKeys = {
1388
1389
  property_technicalTerm: "@technicalTerm",
1389
1390
  property_textReference: "@textReference",
1390
1391
  property_theme: "@theme",
1392
+ property_rtl: "@rtl",
1391
1393
  property_thumbImage: "@thumbImage",
1392
1394
  property_title: "@title",
1393
1395
  property_toc: "@toc",
@@ -2872,6 +2874,12 @@ var GROUPS = {
2872
2874
  format: TagFormat.plainText,
2873
2875
  maxCount: Count.infinity
2874
2876
  },
2877
+ {
2878
+ key: ConfigKey.property_rtl,
2879
+ description: "If true, the book is right-to-left",
2880
+ format: TagFormat.boolean,
2881
+ defaultValue: "false"
2882
+ },
2875
2883
  {
2876
2884
  key: ConfigKey.property_target,
2877
2885
  description: "The target(s) for the bit",
@@ -3409,6 +3417,12 @@ var GROUPS = {
3409
3417
  description: "Url of the internal print PDF for the book",
3410
3418
  format: TagFormat.plainText
3411
3419
  },
3420
+ {
3421
+ key: ConfigKey.property_allowPrint,
3422
+ description: "If true, the book allows printing",
3423
+ format: TagFormat.boolean,
3424
+ defaultValue: "false"
3425
+ },
3412
3426
  {
3413
3427
  key: ConfigKey.property_hasPrintRestriction,
3414
3428
  description: "If true, the book has print restrictions",
@@ -10336,7 +10350,7 @@ var instance2 = new Config();
10336
10350
  // src/generated/package_info.ts
10337
10351
  var PACKAGE_INFO = {
10338
10352
  "name": "@gmb/bitmark-parser-generator",
10339
- "version": "5.5.0",
10353
+ "version": "5.7.0",
10340
10354
  "author": "Get More Brain Ltd",
10341
10355
  "license": "ISC",
10342
10356
  "description": "A bitmark parser and generator using Peggy.js"
@@ -10697,6 +10711,8 @@ var NodeType = {
10697
10711
  alignment: "alignment",
10698
10712
  allowedBit: "allowedBit",
10699
10713
  allowedBitValue: "allowedBitValue",
10714
+ allowPrint: "allowPrint",
10715
+ allowPrintValue: "allowPrintValue",
10700
10716
  alt: "alt",
10701
10717
  alternativeAnswers: "alternativeAnswers",
10702
10718
  alternativeAnswersValue: "alternativeAnswersValue",
@@ -11319,6 +11335,8 @@ var NodeType = {
11319
11335
  textsValue: "textsValue",
11320
11336
  theme: "theme",
11321
11337
  themeValue: "themeValue",
11338
+ rtl: "rtl",
11339
+ rtlValue: "rtlValue",
11322
11340
  thumbImage: "thumbImage",
11323
11341
  thumbImageValue: "thumbImageValue",
11324
11342
  thumbnails: "thumbnails",
@@ -24221,6 +24239,7 @@ var Builder = class extends BaseBuilder {
24221
24239
  options
24222
24240
  ),
24223
24241
  theme: this.toAstProperty(bitType, ConfigKey.property_theme, data.theme, options),
24242
+ rtl: this.toAstProperty(bitType, ConfigKey.property_rtl, data.rtl, options),
24224
24243
  computerLanguage: this.toAstProperty(
24225
24244
  bitType,
24226
24245
  ConfigKey.property_computerLanguage,
@@ -24864,6 +24883,12 @@ var Builder = class extends BaseBuilder {
24864
24883
  options
24865
24884
  ),
24866
24885
  page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
24886
+ allowPrint: this.toAstProperty(
24887
+ bitType,
24888
+ ConfigKey.property_allowPrint,
24889
+ data.allowPrint,
24890
+ options
24891
+ ),
24867
24892
  printParentChapterLevel: this.toAstProperty(
24868
24893
  bitType,
24869
24894
  ConfigKey.property_printParentChapterLevel,
@@ -30566,6 +30591,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
30566
30591
  }
30567
30592
  if (instance2.isOfBitType(bitType, BitType.book)) {
30568
30593
  if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
30594
+ if (bitJson.allowPrint == null) bitJson.allowPrint = false;
30569
30595
  if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
30570
30596
  if (bitJson.enforceUpdateOverUserInput == null) bitJson.enforceUpdateOverUserInput = false;
30571
30597
  if (bitJson.hasMarkAsDone == null) bitJson.hasMarkAsDone = false;