@gmb/bitmark-parser-generator 5.4.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 +85 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +20 -0
- package/dist/browser/esm/index.d.ts +20 -0
- package/dist/browser/esm/index.js +85 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +218 -21
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +218 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +218 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -419,6 +419,7 @@ declare const BitType: {
|
|
|
419
419
|
readonly pageHero: "page-hero";
|
|
420
420
|
readonly pageOpenBook: "page-open-book";
|
|
421
421
|
readonly pageOpenBookList: "page-open-book-list";
|
|
422
|
+
readonly printBook: "print-book";
|
|
422
423
|
readonly openBookChapter: "open-book-chapter";
|
|
423
424
|
readonly pagePerson: "page-person";
|
|
424
425
|
readonly pageProduct: "page-product";
|
|
@@ -712,6 +713,7 @@ declare const ConfigKey: {
|
|
|
712
713
|
readonly property_ageRange: "@ageRange";
|
|
713
714
|
readonly property_aiGenerated: "@aiGenerated";
|
|
714
715
|
readonly property_allowedBit: "@allowedBit";
|
|
716
|
+
readonly property_allowPrint: "@allowPrint";
|
|
715
717
|
readonly property_allowSubtitles: "@allowSubtitles";
|
|
716
718
|
readonly property_alt: "@alt";
|
|
717
719
|
readonly property_altLangTag: "@altLangTag";
|
|
@@ -816,6 +818,7 @@ declare const ConfigKey: {
|
|
|
816
818
|
readonly property_internalPrintPdf: "@internalPrintPdf";
|
|
817
819
|
readonly property_hasPrintRestriction: "@hasPrintRestriction";
|
|
818
820
|
readonly property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput";
|
|
821
|
+
readonly property_extractorExtractionTimestamp: "@extractorExtractionTimestamp";
|
|
819
822
|
readonly property_isCaseSensitive: "@isCaseSensitive";
|
|
820
823
|
readonly property_isInfoOnly: "@isInfoOnly";
|
|
821
824
|
readonly property_isPublic: "@isPublic";
|
|
@@ -853,6 +856,7 @@ declare const ConfigKey: {
|
|
|
853
856
|
readonly property_mute: "@mute";
|
|
854
857
|
readonly property_padletId: "@padletId";
|
|
855
858
|
readonly property_page: "@page";
|
|
859
|
+
readonly property_printParentChapterLevel: "@printParentChapterLevel";
|
|
856
860
|
readonly property_pageNo: "@pageNo";
|
|
857
861
|
readonly property_partialAnswer: "@partialAnswer";
|
|
858
862
|
readonly property_partner: "@partner";
|
|
@@ -1791,10 +1795,13 @@ interface BitJson {
|
|
|
1791
1795
|
maxCreatedBits: number;
|
|
1792
1796
|
maxDisplayLevel: number;
|
|
1793
1797
|
maxTocChapterLevel: number;
|
|
1798
|
+
allowPrint: boolean;
|
|
1799
|
+
printParentChapterLevel: number;
|
|
1794
1800
|
sourceDocument: string;
|
|
1795
1801
|
internalPrintPdf: string;
|
|
1796
1802
|
hasPrintRestriction: boolean;
|
|
1797
1803
|
enforceUpdateOverUserInput: boolean;
|
|
1804
|
+
extractorExtractionTimestamp: string[];
|
|
1798
1805
|
tocResource: string | string[];
|
|
1799
1806
|
tocContent: string | string[];
|
|
1800
1807
|
page: string;
|
|
@@ -2408,9 +2415,13 @@ interface Bit {
|
|
|
2408
2415
|
internalPrintPdf?: Property;
|
|
2409
2416
|
hasPrintRestriction?: Property;
|
|
2410
2417
|
enforceUpdateOverUserInput?: Property;
|
|
2418
|
+
extractorExtractionTimestamp?: Property;
|
|
2411
2419
|
tocResource?: Property;
|
|
2412
2420
|
tocContent?: Property;
|
|
2413
2421
|
page?: Property;
|
|
2422
|
+
allowPrint?: Property;
|
|
2423
|
+
allowPrintValue?: Property;
|
|
2424
|
+
printParentChapterLevel?: Property;
|
|
2414
2425
|
platformBrandTarget?: Property;
|
|
2415
2426
|
platformName?: Property;
|
|
2416
2427
|
platformIcon?: ImageResourceWrapperJson;
|
|
@@ -2559,6 +2570,8 @@ declare const NodeType: {
|
|
|
2559
2570
|
readonly alignment: "alignment";
|
|
2560
2571
|
readonly allowedBit: "allowedBit";
|
|
2561
2572
|
readonly allowedBitValue: "allowedBitValue";
|
|
2573
|
+
readonly allowPrint: "allowPrint";
|
|
2574
|
+
readonly allowPrintValue: "allowPrintValue";
|
|
2562
2575
|
readonly alt: "alt";
|
|
2563
2576
|
readonly alternativeAnswers: "alternativeAnswers";
|
|
2564
2577
|
readonly alternativeAnswersValue: "alternativeAnswersValue";
|
|
@@ -2816,6 +2829,8 @@ declare const NodeType: {
|
|
|
2816
2829
|
readonly hasPrintRestrictionValue: "hasPrintRestrictionValue";
|
|
2817
2830
|
readonly enforceUpdateOverUserInput: "enforceUpdateOverUserInput";
|
|
2818
2831
|
readonly enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue";
|
|
2832
|
+
readonly extractorExtractionTimestamp: "extractorExtractionTimestamp";
|
|
2833
|
+
readonly extractorExtractionTimestampValue: "extractorExtractionTimestampValue";
|
|
2819
2834
|
readonly isCaseSensitive: "isCaseSensitive";
|
|
2820
2835
|
readonly isCommented: "isCommented";
|
|
2821
2836
|
readonly isCorrect: "isCorrect";
|
|
@@ -2918,6 +2933,8 @@ declare const NodeType: {
|
|
|
2918
2933
|
readonly pageNumber: "pageNumber";
|
|
2919
2934
|
readonly pageNumberValue: "pageNumberValue";
|
|
2920
2935
|
readonly pageValue: "pageValue";
|
|
2936
|
+
readonly printParentChapterLevel: "printParentChapterLevel";
|
|
2937
|
+
readonly printParentChapterLevelValue: "printParentChapterLevelValue";
|
|
2921
2938
|
readonly pairs: "pairs";
|
|
2922
2939
|
readonly pairsValue: "pairsValue";
|
|
2923
2940
|
readonly parent: "parent";
|
|
@@ -4212,11 +4229,14 @@ declare class Builder extends BaseBuilder {
|
|
|
4212
4229
|
maxTocChapterLevel?: number;
|
|
4213
4230
|
sourceDocument?: string;
|
|
4214
4231
|
internalPrintPdf?: string;
|
|
4232
|
+
allowPrint?: boolean;
|
|
4215
4233
|
hasPrintRestriction?: boolean;
|
|
4216
4234
|
enforceUpdateOverUserInput?: boolean;
|
|
4235
|
+
extractorExtractionTimestamp?: string[];
|
|
4217
4236
|
tocResource?: string | string[];
|
|
4218
4237
|
tocContent?: string | string[];
|
|
4219
4238
|
page?: string | string[];
|
|
4239
|
+
printParentChapterLevel?: number;
|
|
4220
4240
|
platformBrandTarget?: string;
|
|
4221
4241
|
platformName?: string;
|
|
4222
4242
|
platformIcon?: Partial<ImageResourceWrapperJson>;
|
|
@@ -419,6 +419,7 @@ declare const BitType: {
|
|
|
419
419
|
readonly pageHero: "page-hero";
|
|
420
420
|
readonly pageOpenBook: "page-open-book";
|
|
421
421
|
readonly pageOpenBookList: "page-open-book-list";
|
|
422
|
+
readonly printBook: "print-book";
|
|
422
423
|
readonly openBookChapter: "open-book-chapter";
|
|
423
424
|
readonly pagePerson: "page-person";
|
|
424
425
|
readonly pageProduct: "page-product";
|
|
@@ -712,6 +713,7 @@ declare const ConfigKey: {
|
|
|
712
713
|
readonly property_ageRange: "@ageRange";
|
|
713
714
|
readonly property_aiGenerated: "@aiGenerated";
|
|
714
715
|
readonly property_allowedBit: "@allowedBit";
|
|
716
|
+
readonly property_allowPrint: "@allowPrint";
|
|
715
717
|
readonly property_allowSubtitles: "@allowSubtitles";
|
|
716
718
|
readonly property_alt: "@alt";
|
|
717
719
|
readonly property_altLangTag: "@altLangTag";
|
|
@@ -816,6 +818,7 @@ declare const ConfigKey: {
|
|
|
816
818
|
readonly property_internalPrintPdf: "@internalPrintPdf";
|
|
817
819
|
readonly property_hasPrintRestriction: "@hasPrintRestriction";
|
|
818
820
|
readonly property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput";
|
|
821
|
+
readonly property_extractorExtractionTimestamp: "@extractorExtractionTimestamp";
|
|
819
822
|
readonly property_isCaseSensitive: "@isCaseSensitive";
|
|
820
823
|
readonly property_isInfoOnly: "@isInfoOnly";
|
|
821
824
|
readonly property_isPublic: "@isPublic";
|
|
@@ -853,6 +856,7 @@ declare const ConfigKey: {
|
|
|
853
856
|
readonly property_mute: "@mute";
|
|
854
857
|
readonly property_padletId: "@padletId";
|
|
855
858
|
readonly property_page: "@page";
|
|
859
|
+
readonly property_printParentChapterLevel: "@printParentChapterLevel";
|
|
856
860
|
readonly property_pageNo: "@pageNo";
|
|
857
861
|
readonly property_partialAnswer: "@partialAnswer";
|
|
858
862
|
readonly property_partner: "@partner";
|
|
@@ -1791,10 +1795,13 @@ interface BitJson {
|
|
|
1791
1795
|
maxCreatedBits: number;
|
|
1792
1796
|
maxDisplayLevel: number;
|
|
1793
1797
|
maxTocChapterLevel: number;
|
|
1798
|
+
allowPrint: boolean;
|
|
1799
|
+
printParentChapterLevel: number;
|
|
1794
1800
|
sourceDocument: string;
|
|
1795
1801
|
internalPrintPdf: string;
|
|
1796
1802
|
hasPrintRestriction: boolean;
|
|
1797
1803
|
enforceUpdateOverUserInput: boolean;
|
|
1804
|
+
extractorExtractionTimestamp: string[];
|
|
1798
1805
|
tocResource: string | string[];
|
|
1799
1806
|
tocContent: string | string[];
|
|
1800
1807
|
page: string;
|
|
@@ -2408,9 +2415,13 @@ interface Bit {
|
|
|
2408
2415
|
internalPrintPdf?: Property;
|
|
2409
2416
|
hasPrintRestriction?: Property;
|
|
2410
2417
|
enforceUpdateOverUserInput?: Property;
|
|
2418
|
+
extractorExtractionTimestamp?: Property;
|
|
2411
2419
|
tocResource?: Property;
|
|
2412
2420
|
tocContent?: Property;
|
|
2413
2421
|
page?: Property;
|
|
2422
|
+
allowPrint?: Property;
|
|
2423
|
+
allowPrintValue?: Property;
|
|
2424
|
+
printParentChapterLevel?: Property;
|
|
2414
2425
|
platformBrandTarget?: Property;
|
|
2415
2426
|
platformName?: Property;
|
|
2416
2427
|
platformIcon?: ImageResourceWrapperJson;
|
|
@@ -2559,6 +2570,8 @@ declare const NodeType: {
|
|
|
2559
2570
|
readonly alignment: "alignment";
|
|
2560
2571
|
readonly allowedBit: "allowedBit";
|
|
2561
2572
|
readonly allowedBitValue: "allowedBitValue";
|
|
2573
|
+
readonly allowPrint: "allowPrint";
|
|
2574
|
+
readonly allowPrintValue: "allowPrintValue";
|
|
2562
2575
|
readonly alt: "alt";
|
|
2563
2576
|
readonly alternativeAnswers: "alternativeAnswers";
|
|
2564
2577
|
readonly alternativeAnswersValue: "alternativeAnswersValue";
|
|
@@ -2816,6 +2829,8 @@ declare const NodeType: {
|
|
|
2816
2829
|
readonly hasPrintRestrictionValue: "hasPrintRestrictionValue";
|
|
2817
2830
|
readonly enforceUpdateOverUserInput: "enforceUpdateOverUserInput";
|
|
2818
2831
|
readonly enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue";
|
|
2832
|
+
readonly extractorExtractionTimestamp: "extractorExtractionTimestamp";
|
|
2833
|
+
readonly extractorExtractionTimestampValue: "extractorExtractionTimestampValue";
|
|
2819
2834
|
readonly isCaseSensitive: "isCaseSensitive";
|
|
2820
2835
|
readonly isCommented: "isCommented";
|
|
2821
2836
|
readonly isCorrect: "isCorrect";
|
|
@@ -2918,6 +2933,8 @@ declare const NodeType: {
|
|
|
2918
2933
|
readonly pageNumber: "pageNumber";
|
|
2919
2934
|
readonly pageNumberValue: "pageNumberValue";
|
|
2920
2935
|
readonly pageValue: "pageValue";
|
|
2936
|
+
readonly printParentChapterLevel: "printParentChapterLevel";
|
|
2937
|
+
readonly printParentChapterLevelValue: "printParentChapterLevelValue";
|
|
2921
2938
|
readonly pairs: "pairs";
|
|
2922
2939
|
readonly pairsValue: "pairsValue";
|
|
2923
2940
|
readonly parent: "parent";
|
|
@@ -4212,11 +4229,14 @@ declare class Builder extends BaseBuilder {
|
|
|
4212
4229
|
maxTocChapterLevel?: number;
|
|
4213
4230
|
sourceDocument?: string;
|
|
4214
4231
|
internalPrintPdf?: string;
|
|
4232
|
+
allowPrint?: boolean;
|
|
4215
4233
|
hasPrintRestriction?: boolean;
|
|
4216
4234
|
enforceUpdateOverUserInput?: boolean;
|
|
4235
|
+
extractorExtractionTimestamp?: string[];
|
|
4217
4236
|
tocResource?: string | string[];
|
|
4218
4237
|
tocContent?: string | string[];
|
|
4219
4238
|
page?: string | string[];
|
|
4239
|
+
printParentChapterLevel?: number;
|
|
4220
4240
|
platformBrandTarget?: string;
|
|
4221
4241
|
platformName?: string;
|
|
4222
4242
|
platformIcon?: Partial<ImageResourceWrapperJson>;
|
|
@@ -428,6 +428,7 @@ var BitType = {
|
|
|
428
428
|
pageHero: "page-hero",
|
|
429
429
|
pageOpenBook: "page-open-book",
|
|
430
430
|
pageOpenBookList: "page-open-book-list",
|
|
431
|
+
printBook: "print-book",
|
|
431
432
|
openBookChapter: "open-book-chapter",
|
|
432
433
|
pagePerson: "page-person",
|
|
433
434
|
pageProduct: "page-product",
|
|
@@ -1137,6 +1138,7 @@ var propertyKeys = {
|
|
|
1137
1138
|
property_ageRange: "@ageRange",
|
|
1138
1139
|
property_aiGenerated: "@aiGenerated",
|
|
1139
1140
|
property_allowedBit: "@allowedBit",
|
|
1141
|
+
property_allowPrint: "@allowPrint",
|
|
1140
1142
|
property_allowSubtitles: "@allowSubtitles",
|
|
1141
1143
|
property_alt: "@alt",
|
|
1142
1144
|
property_altLangTag: "@altLangTag",
|
|
@@ -1241,6 +1243,7 @@ var propertyKeys = {
|
|
|
1241
1243
|
property_internalPrintPdf: "@internalPrintPdf",
|
|
1242
1244
|
property_hasPrintRestriction: "@hasPrintRestriction",
|
|
1243
1245
|
property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput",
|
|
1246
|
+
property_extractorExtractionTimestamp: "@extractorExtractionTimestamp",
|
|
1244
1247
|
property_isCaseSensitive: "@isCaseSensitive",
|
|
1245
1248
|
property_isInfoOnly: "@isInfoOnly",
|
|
1246
1249
|
property_isPublic: "@isPublic",
|
|
@@ -1278,6 +1281,7 @@ var propertyKeys = {
|
|
|
1278
1281
|
property_mute: "@mute",
|
|
1279
1282
|
property_padletId: "@padletId",
|
|
1280
1283
|
property_page: "@page",
|
|
1284
|
+
property_printParentChapterLevel: "@printParentChapterLevel",
|
|
1281
1285
|
property_pageNo: "@pageNo",
|
|
1282
1286
|
property_partialAnswer: "@partialAnswer",
|
|
1283
1287
|
property_partner: "@partner",
|
|
@@ -3406,6 +3410,12 @@ var GROUPS = {
|
|
|
3406
3410
|
description: "Url of the internal print PDF for the book",
|
|
3407
3411
|
format: TagFormat.plainText
|
|
3408
3412
|
},
|
|
3413
|
+
{
|
|
3414
|
+
key: ConfigKey.property_allowPrint,
|
|
3415
|
+
description: "If true, the book allows printing",
|
|
3416
|
+
format: TagFormat.boolean,
|
|
3417
|
+
defaultValue: "false"
|
|
3418
|
+
},
|
|
3409
3419
|
{
|
|
3410
3420
|
key: ConfigKey.property_hasPrintRestriction,
|
|
3411
3421
|
description: "If true, the book has print restrictions",
|
|
@@ -3417,6 +3427,12 @@ var GROUPS = {
|
|
|
3417
3427
|
description: "If true, prioritize new content over legacy content from the instance API",
|
|
3418
3428
|
format: TagFormat.boolean,
|
|
3419
3429
|
defaultValue: "false"
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
key: ConfigKey.property_extractorExtractionTimestamp,
|
|
3433
|
+
description: "Extraction timestamps for book conversion",
|
|
3434
|
+
format: TagFormat.plainText,
|
|
3435
|
+
maxCount: Count.infinity
|
|
3420
3436
|
}
|
|
3421
3437
|
]
|
|
3422
3438
|
},
|
|
@@ -6813,6 +6829,12 @@ var BITS = {
|
|
|
6813
6829
|
key: ConfigKey.property_buttonCaption,
|
|
6814
6830
|
description: "The caption of the print button",
|
|
6815
6831
|
format: TagFormat.plainText
|
|
6832
|
+
},
|
|
6833
|
+
{
|
|
6834
|
+
key: ConfigKey.property_printParentChapterLevel,
|
|
6835
|
+
description: "The parent chapter level to print",
|
|
6836
|
+
format: TagFormat.number,
|
|
6837
|
+
defaultValue: "-1"
|
|
6816
6838
|
}
|
|
6817
6839
|
]
|
|
6818
6840
|
},
|
|
@@ -7393,6 +7415,39 @@ var BITS = {
|
|
|
7393
7415
|
}
|
|
7394
7416
|
]
|
|
7395
7417
|
},
|
|
7418
|
+
[BitType.printBook]: {
|
|
7419
|
+
since: "5.5.0",
|
|
7420
|
+
baseBitType: BitType.article,
|
|
7421
|
+
description: "Print book bit, used to create pages that open books without author information in articles or books",
|
|
7422
|
+
tags: [
|
|
7423
|
+
{
|
|
7424
|
+
key: ConfigKey.property_slug,
|
|
7425
|
+
description: "Slug for the book, used to identify the book in the system",
|
|
7426
|
+
format: TagFormat.plainText
|
|
7427
|
+
},
|
|
7428
|
+
{
|
|
7429
|
+
key: ConfigKey.property_book,
|
|
7430
|
+
description: "Book reference for the page, used to link to a specific book",
|
|
7431
|
+
format: TagFormat.plainText,
|
|
7432
|
+
chain: [
|
|
7433
|
+
{
|
|
7434
|
+
key: ConfigKey.tag_reference,
|
|
7435
|
+
description: "Reference tag for the book, used to link to the book in the system",
|
|
7436
|
+
maxCount: 2
|
|
7437
|
+
}
|
|
7438
|
+
]
|
|
7439
|
+
},
|
|
7440
|
+
{
|
|
7441
|
+
/* Allow incorrectly chained reference tag */
|
|
7442
|
+
key: ConfigKey.tag_reference,
|
|
7443
|
+
description: "Reference tag for the book, used to link to the book in the system"
|
|
7444
|
+
},
|
|
7445
|
+
{
|
|
7446
|
+
key: ConfigKey.property_buttonCaption,
|
|
7447
|
+
description: "Caption for the button, used to define the text displayed on the button"
|
|
7448
|
+
}
|
|
7449
|
+
]
|
|
7450
|
+
},
|
|
7396
7451
|
[BitType.openBookChapter]: {
|
|
7397
7452
|
since: "4.16.0",
|
|
7398
7453
|
baseBitType: BitType.pageOpenBook,
|
|
@@ -10288,7 +10343,7 @@ var instance2 = new Config();
|
|
|
10288
10343
|
// src/generated/package_info.ts
|
|
10289
10344
|
var PACKAGE_INFO = {
|
|
10290
10345
|
"name": "@gmb/bitmark-parser-generator",
|
|
10291
|
-
"version": "5.
|
|
10346
|
+
"version": "5.6.0",
|
|
10292
10347
|
"author": "Get More Brain Ltd",
|
|
10293
10348
|
"license": "ISC",
|
|
10294
10349
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10649,6 +10704,8 @@ var NodeType = {
|
|
|
10649
10704
|
alignment: "alignment",
|
|
10650
10705
|
allowedBit: "allowedBit",
|
|
10651
10706
|
allowedBitValue: "allowedBitValue",
|
|
10707
|
+
allowPrint: "allowPrint",
|
|
10708
|
+
allowPrintValue: "allowPrintValue",
|
|
10652
10709
|
alt: "alt",
|
|
10653
10710
|
alternativeAnswers: "alternativeAnswers",
|
|
10654
10711
|
alternativeAnswersValue: "alternativeAnswersValue",
|
|
@@ -10911,6 +10968,8 @@ var NodeType = {
|
|
|
10911
10968
|
hasPrintRestrictionValue: "hasPrintRestrictionValue",
|
|
10912
10969
|
enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
|
|
10913
10970
|
enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
|
|
10971
|
+
extractorExtractionTimestamp: "extractorExtractionTimestamp",
|
|
10972
|
+
extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
|
|
10914
10973
|
isCaseSensitive: "isCaseSensitive",
|
|
10915
10974
|
isCommented: "isCommented",
|
|
10916
10975
|
isCorrect: "isCorrect",
|
|
@@ -11014,6 +11073,8 @@ var NodeType = {
|
|
|
11014
11073
|
pageNumber: "pageNumber",
|
|
11015
11074
|
pageNumberValue: "pageNumberValue",
|
|
11016
11075
|
pageValue: "pageValue",
|
|
11076
|
+
printParentChapterLevel: "printParentChapterLevel",
|
|
11077
|
+
printParentChapterLevelValue: "printParentChapterLevelValue",
|
|
11017
11078
|
pairs: "pairs",
|
|
11018
11079
|
pairsValue: "pairsValue",
|
|
11019
11080
|
parent: "parent",
|
|
@@ -24793,6 +24854,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24793
24854
|
data.enforceUpdateOverUserInput,
|
|
24794
24855
|
options
|
|
24795
24856
|
),
|
|
24857
|
+
extractorExtractionTimestamp: this.toAstProperty(
|
|
24858
|
+
bitType,
|
|
24859
|
+
ConfigKey.property_extractorExtractionTimestamp,
|
|
24860
|
+
data.extractorExtractionTimestamp,
|
|
24861
|
+
options
|
|
24862
|
+
),
|
|
24796
24863
|
tocResource: this.toAstProperty(
|
|
24797
24864
|
bitType,
|
|
24798
24865
|
ConfigKey.property_tocResource,
|
|
@@ -24806,6 +24873,18 @@ var Builder = class extends BaseBuilder {
|
|
|
24806
24873
|
options
|
|
24807
24874
|
),
|
|
24808
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
|
+
),
|
|
24882
|
+
printParentChapterLevel: this.toAstProperty(
|
|
24883
|
+
bitType,
|
|
24884
|
+
ConfigKey.property_printParentChapterLevel,
|
|
24885
|
+
data.printParentChapterLevel,
|
|
24886
|
+
options
|
|
24887
|
+
),
|
|
24809
24888
|
platformBrandTarget: this.toAstProperty(
|
|
24810
24889
|
bitType,
|
|
24811
24890
|
ConfigKey.property_platformBrandTarget,
|
|
@@ -30476,6 +30555,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30476
30555
|
BitType.pageFooter,
|
|
30477
30556
|
BitType.pageOpenBook,
|
|
30478
30557
|
BitType.pagePerson,
|
|
30558
|
+
BitType.printBook,
|
|
30479
30559
|
BitType.pageProduct,
|
|
30480
30560
|
BitType.pageProductList,
|
|
30481
30561
|
BitType.pageProductVideo,
|
|
@@ -30496,8 +30576,12 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30496
30576
|
if (instance2.isOfBitType(bitType, BitType.tocContent)) {
|
|
30497
30577
|
if (bitJson.tocContent == null) bitJson.tocContent = [];
|
|
30498
30578
|
}
|
|
30579
|
+
if (instance2.isOfBitType(bitType, BitType.printThisChapter)) {
|
|
30580
|
+
if (bitJson.printParentChapterLevel == null) bitJson.printParentChapterLevel = -1;
|
|
30581
|
+
}
|
|
30499
30582
|
if (instance2.isOfBitType(bitType, BitType.book)) {
|
|
30500
30583
|
if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
|
|
30584
|
+
if (bitJson.allowPrint == null) bitJson.allowPrint = false;
|
|
30501
30585
|
if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
|
|
30502
30586
|
if (bitJson.enforceUpdateOverUserInput == null) bitJson.enforceUpdateOverUserInput = false;
|
|
30503
30587
|
if (bitJson.hasMarkAsDone == null) bitJson.hasMarkAsDone = false;
|