@gmb/bitmark-parser-generator 5.4.0 → 5.5.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 +69 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +13 -0
- package/dist/browser/esm/index.d.ts +13 -0
- package/dist/browser/esm/index.js +69 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +202 -21
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +202 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +202 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8"/>
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
6
|
-
<title>@gmb/bitmark-parser-generator [
|
|
6
|
+
<title>@gmb/bitmark-parser-generator [18 Jan 2026 at 22:17]</title>
|
|
7
7
|
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/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6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
|
|
8
8
|
|
|
9
9
|
<script>
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<body>
|
|
32
32
|
<div id="app"></div>
|
|
33
33
|
<script>
|
|
34
|
-
window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":
|
|
34
|
+
window.chartData = [{"label":"bitmark-parser-generator.min.js","isAsset":true,"statSize":1261870,"parsedSize":549722,"gzipSize":106763,"groups":[{"label":"dist/browser/cjs","path":"./dist/browser/cjs","statSize":1255808,"groups":[{"id":922,"label":"index.cjs","path":"./dist/browser/cjs/index.cjs","statSize":1255808,"parsedSize":549618,"gzipSize":106763}],"parsedSize":549618,"gzipSize":106763},{"label":"node_modules/@ncoderz/superenum/dist","path":"./node_modules/@ncoderz/superenum/dist","statSize":6062,"groups":[{"id":722,"label":"index.cjs","path":"./node_modules/@ncoderz/superenum/dist/index.cjs","statSize":6062}],"parsedSize":0,"gzipSize":0}],"isInitialByEntrypoint":{"main":true}}];
|
|
35
35
|
window.entrypoints = ["main"];
|
|
36
36
|
window.defaultSizes = "stat";
|
|
37
37
|
window.compressionAlgorithm = "gzip";
|
|
@@ -475,6 +475,7 @@ var BitType = {
|
|
|
475
475
|
pageHero: "page-hero",
|
|
476
476
|
pageOpenBook: "page-open-book",
|
|
477
477
|
pageOpenBookList: "page-open-book-list",
|
|
478
|
+
printBook: "print-book",
|
|
478
479
|
openBookChapter: "open-book-chapter",
|
|
479
480
|
pagePerson: "page-person",
|
|
480
481
|
pageProduct: "page-product",
|
|
@@ -1288,6 +1289,7 @@ var propertyKeys = {
|
|
|
1288
1289
|
property_internalPrintPdf: "@internalPrintPdf",
|
|
1289
1290
|
property_hasPrintRestriction: "@hasPrintRestriction",
|
|
1290
1291
|
property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput",
|
|
1292
|
+
property_extractorExtractionTimestamp: "@extractorExtractionTimestamp",
|
|
1291
1293
|
property_isCaseSensitive: "@isCaseSensitive",
|
|
1292
1294
|
property_isInfoOnly: "@isInfoOnly",
|
|
1293
1295
|
property_isPublic: "@isPublic",
|
|
@@ -1325,6 +1327,7 @@ var propertyKeys = {
|
|
|
1325
1327
|
property_mute: "@mute",
|
|
1326
1328
|
property_padletId: "@padletId",
|
|
1327
1329
|
property_page: "@page",
|
|
1330
|
+
property_printParentChapterLevel: "@printParentChapterLevel",
|
|
1328
1331
|
property_pageNo: "@pageNo",
|
|
1329
1332
|
property_partialAnswer: "@partialAnswer",
|
|
1330
1333
|
property_partner: "@partner",
|
|
@@ -3464,6 +3467,12 @@ var GROUPS = {
|
|
|
3464
3467
|
description: "If true, prioritize new content over legacy content from the instance API",
|
|
3465
3468
|
format: TagFormat.boolean,
|
|
3466
3469
|
defaultValue: "false"
|
|
3470
|
+
},
|
|
3471
|
+
{
|
|
3472
|
+
key: ConfigKey.property_extractorExtractionTimestamp,
|
|
3473
|
+
description: "Extraction timestamps for book conversion",
|
|
3474
|
+
format: TagFormat.plainText,
|
|
3475
|
+
maxCount: Count.infinity
|
|
3467
3476
|
}
|
|
3468
3477
|
]
|
|
3469
3478
|
},
|
|
@@ -6860,6 +6869,12 @@ var BITS = {
|
|
|
6860
6869
|
key: ConfigKey.property_buttonCaption,
|
|
6861
6870
|
description: "The caption of the print button",
|
|
6862
6871
|
format: TagFormat.plainText
|
|
6872
|
+
},
|
|
6873
|
+
{
|
|
6874
|
+
key: ConfigKey.property_printParentChapterLevel,
|
|
6875
|
+
description: "The parent chapter level to print",
|
|
6876
|
+
format: TagFormat.number,
|
|
6877
|
+
defaultValue: "-1"
|
|
6863
6878
|
}
|
|
6864
6879
|
]
|
|
6865
6880
|
},
|
|
@@ -7440,6 +7455,39 @@ var BITS = {
|
|
|
7440
7455
|
}
|
|
7441
7456
|
]
|
|
7442
7457
|
},
|
|
7458
|
+
[BitType.printBook]: {
|
|
7459
|
+
since: "5.5.0",
|
|
7460
|
+
baseBitType: BitType.article,
|
|
7461
|
+
description: "Print book bit, used to create pages that open books without author information in articles or books",
|
|
7462
|
+
tags: [
|
|
7463
|
+
{
|
|
7464
|
+
key: ConfigKey.property_slug,
|
|
7465
|
+
description: "Slug for the book, used to identify the book in the system",
|
|
7466
|
+
format: TagFormat.plainText
|
|
7467
|
+
},
|
|
7468
|
+
{
|
|
7469
|
+
key: ConfigKey.property_book,
|
|
7470
|
+
description: "Book reference for the page, used to link to a specific book",
|
|
7471
|
+
format: TagFormat.plainText,
|
|
7472
|
+
chain: [
|
|
7473
|
+
{
|
|
7474
|
+
key: ConfigKey.tag_reference,
|
|
7475
|
+
description: "Reference tag for the book, used to link to the book in the system",
|
|
7476
|
+
maxCount: 2
|
|
7477
|
+
}
|
|
7478
|
+
]
|
|
7479
|
+
},
|
|
7480
|
+
{
|
|
7481
|
+
/* Allow incorrectly chained reference tag */
|
|
7482
|
+
key: ConfigKey.tag_reference,
|
|
7483
|
+
description: "Reference tag for the book, used to link to the book in the system"
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
key: ConfigKey.property_buttonCaption,
|
|
7487
|
+
description: "Caption for the button, used to define the text displayed on the button"
|
|
7488
|
+
}
|
|
7489
|
+
]
|
|
7490
|
+
},
|
|
7443
7491
|
[BitType.openBookChapter]: {
|
|
7444
7492
|
since: "4.16.0",
|
|
7445
7493
|
baseBitType: BitType.pageOpenBook,
|
|
@@ -10335,7 +10383,7 @@ var instance2 = new Config();
|
|
|
10335
10383
|
// src/generated/package_info.ts
|
|
10336
10384
|
var PACKAGE_INFO = {
|
|
10337
10385
|
"name": "@gmb/bitmark-parser-generator",
|
|
10338
|
-
"version": "5.
|
|
10386
|
+
"version": "5.5.0",
|
|
10339
10387
|
"author": "Get More Brain Ltd",
|
|
10340
10388
|
"license": "ISC",
|
|
10341
10389
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10958,6 +11006,8 @@ var NodeType = {
|
|
|
10958
11006
|
hasPrintRestrictionValue: "hasPrintRestrictionValue",
|
|
10959
11007
|
enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
|
|
10960
11008
|
enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
|
|
11009
|
+
extractorExtractionTimestamp: "extractorExtractionTimestamp",
|
|
11010
|
+
extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
|
|
10961
11011
|
isCaseSensitive: "isCaseSensitive",
|
|
10962
11012
|
isCommented: "isCommented",
|
|
10963
11013
|
isCorrect: "isCorrect",
|
|
@@ -11061,6 +11111,8 @@ var NodeType = {
|
|
|
11061
11111
|
pageNumber: "pageNumber",
|
|
11062
11112
|
pageNumberValue: "pageNumberValue",
|
|
11063
11113
|
pageValue: "pageValue",
|
|
11114
|
+
printParentChapterLevel: "printParentChapterLevel",
|
|
11115
|
+
printParentChapterLevelValue: "printParentChapterLevelValue",
|
|
11064
11116
|
pairs: "pairs",
|
|
11065
11117
|
pairsValue: "pairsValue",
|
|
11066
11118
|
parent: "parent",
|
|
@@ -24840,6 +24892,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24840
24892
|
data.enforceUpdateOverUserInput,
|
|
24841
24893
|
options
|
|
24842
24894
|
),
|
|
24895
|
+
extractorExtractionTimestamp: this.toAstProperty(
|
|
24896
|
+
bitType,
|
|
24897
|
+
ConfigKey.property_extractorExtractionTimestamp,
|
|
24898
|
+
data.extractorExtractionTimestamp,
|
|
24899
|
+
options
|
|
24900
|
+
),
|
|
24843
24901
|
tocResource: this.toAstProperty(
|
|
24844
24902
|
bitType,
|
|
24845
24903
|
ConfigKey.property_tocResource,
|
|
@@ -24853,6 +24911,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24853
24911
|
options
|
|
24854
24912
|
),
|
|
24855
24913
|
page: this.toAstProperty(bitType, ConfigKey.property_page, data.page, options),
|
|
24914
|
+
printParentChapterLevel: this.toAstProperty(
|
|
24915
|
+
bitType,
|
|
24916
|
+
ConfigKey.property_printParentChapterLevel,
|
|
24917
|
+
data.printParentChapterLevel,
|
|
24918
|
+
options
|
|
24919
|
+
),
|
|
24856
24920
|
platformBrandTarget: this.toAstProperty(
|
|
24857
24921
|
bitType,
|
|
24858
24922
|
ConfigKey.property_platformBrandTarget,
|
|
@@ -30523,6 +30587,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30523
30587
|
BitType.pageFooter,
|
|
30524
30588
|
BitType.pageOpenBook,
|
|
30525
30589
|
BitType.pagePerson,
|
|
30590
|
+
BitType.printBook,
|
|
30526
30591
|
BitType.pageProduct,
|
|
30527
30592
|
BitType.pageProductList,
|
|
30528
30593
|
BitType.pageProductVideo,
|
|
@@ -30543,6 +30608,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30543
30608
|
if (instance2.isOfBitType(bitType, BitType.tocContent)) {
|
|
30544
30609
|
if (bitJson.tocContent == null) bitJson.tocContent = [];
|
|
30545
30610
|
}
|
|
30611
|
+
if (instance2.isOfBitType(bitType, BitType.printThisChapter)) {
|
|
30612
|
+
if (bitJson.printParentChapterLevel == null) bitJson.printParentChapterLevel = -1;
|
|
30613
|
+
}
|
|
30546
30614
|
if (instance2.isOfBitType(bitType, BitType.book)) {
|
|
30547
30615
|
if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
|
|
30548
30616
|
if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
|