@gmb/bitmark-parser-generator 5.3.2 → 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 +101 -1
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +16 -0
- package/dist/browser/esm/index.d.ts +16 -0
- package/dist/browser/esm/index.js +101 -1
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +234 -21
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +234 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +234 -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",
|
|
@@ -503,6 +504,9 @@ var BitType = {
|
|
|
503
504
|
platformSectionInput: "platform-section-input",
|
|
504
505
|
platformSystemIcon: "platform-system-icon",
|
|
505
506
|
preparationNote: "preparation-note",
|
|
507
|
+
printThisBook: "print-this-book",
|
|
508
|
+
printThisChapter: "print-this-chapter",
|
|
509
|
+
printPageBreak: "print-page-break",
|
|
506
510
|
pronunciationTable: "pronunciation-table",
|
|
507
511
|
prototypeImages: "prototype-images",
|
|
508
512
|
qAndA: "q-and-a",
|
|
@@ -1285,6 +1289,7 @@ var propertyKeys = {
|
|
|
1285
1289
|
property_internalPrintPdf: "@internalPrintPdf",
|
|
1286
1290
|
property_hasPrintRestriction: "@hasPrintRestriction",
|
|
1287
1291
|
property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput",
|
|
1292
|
+
property_extractorExtractionTimestamp: "@extractorExtractionTimestamp",
|
|
1288
1293
|
property_isCaseSensitive: "@isCaseSensitive",
|
|
1289
1294
|
property_isInfoOnly: "@isInfoOnly",
|
|
1290
1295
|
property_isPublic: "@isPublic",
|
|
@@ -1322,6 +1327,7 @@ var propertyKeys = {
|
|
|
1322
1327
|
property_mute: "@mute",
|
|
1323
1328
|
property_padletId: "@padletId",
|
|
1324
1329
|
property_page: "@page",
|
|
1330
|
+
property_printParentChapterLevel: "@printParentChapterLevel",
|
|
1325
1331
|
property_pageNo: "@pageNo",
|
|
1326
1332
|
property_partialAnswer: "@partialAnswer",
|
|
1327
1333
|
property_partner: "@partner",
|
|
@@ -3461,6 +3467,12 @@ var GROUPS = {
|
|
|
3461
3467
|
description: "If true, prioritize new content over legacy content from the instance API",
|
|
3462
3468
|
format: TagFormat.boolean,
|
|
3463
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
|
|
3464
3476
|
}
|
|
3465
3477
|
]
|
|
3466
3478
|
},
|
|
@@ -6836,6 +6848,41 @@ var BITS = {
|
|
|
6836
6848
|
baseBitType: BitType.article,
|
|
6837
6849
|
description: "Preparation note bit, used to provide preparation notes in articles or books"
|
|
6838
6850
|
},
|
|
6851
|
+
[BitType.printThisBook]: {
|
|
6852
|
+
since: "5.4.0",
|
|
6853
|
+
baseBitType: BitType._standard,
|
|
6854
|
+
description: "Print this book bit, used to create a button that prints the entire book",
|
|
6855
|
+
tags: [
|
|
6856
|
+
{
|
|
6857
|
+
key: ConfigKey.property_buttonCaption,
|
|
6858
|
+
description: "The caption of the print button",
|
|
6859
|
+
format: TagFormat.plainText
|
|
6860
|
+
}
|
|
6861
|
+
]
|
|
6862
|
+
},
|
|
6863
|
+
[BitType.printThisChapter]: {
|
|
6864
|
+
since: "5.4.0",
|
|
6865
|
+
baseBitType: BitType._standard,
|
|
6866
|
+
description: "Print this chapter bit, used to create a button that prints the current chapter",
|
|
6867
|
+
tags: [
|
|
6868
|
+
{
|
|
6869
|
+
key: ConfigKey.property_buttonCaption,
|
|
6870
|
+
description: "The caption of the print button",
|
|
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"
|
|
6878
|
+
}
|
|
6879
|
+
]
|
|
6880
|
+
},
|
|
6881
|
+
[BitType.printPageBreak]: {
|
|
6882
|
+
since: "5.4.0",
|
|
6883
|
+
baseBitType: BitType.separator,
|
|
6884
|
+
description: "Print page break bit, used to create page breaks for printing in articles or books"
|
|
6885
|
+
},
|
|
6839
6886
|
[BitType.releaseNotesSummary]: {
|
|
6840
6887
|
since: "1.3.0",
|
|
6841
6888
|
baseBitType: BitType.article,
|
|
@@ -7408,6 +7455,39 @@ var BITS = {
|
|
|
7408
7455
|
}
|
|
7409
7456
|
]
|
|
7410
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
|
+
},
|
|
7411
7491
|
[BitType.openBookChapter]: {
|
|
7412
7492
|
since: "4.16.0",
|
|
7413
7493
|
baseBitType: BitType.pageOpenBook,
|
|
@@ -10303,7 +10383,7 @@ var instance2 = new Config();
|
|
|
10303
10383
|
// src/generated/package_info.ts
|
|
10304
10384
|
var PACKAGE_INFO = {
|
|
10305
10385
|
"name": "@gmb/bitmark-parser-generator",
|
|
10306
|
-
"version": "5.
|
|
10386
|
+
"version": "5.5.0",
|
|
10307
10387
|
"author": "Get More Brain Ltd",
|
|
10308
10388
|
"license": "ISC",
|
|
10309
10389
|
"description": "A bitmark parser and generator using Peggy.js"
|
|
@@ -10926,6 +11006,8 @@ var NodeType = {
|
|
|
10926
11006
|
hasPrintRestrictionValue: "hasPrintRestrictionValue",
|
|
10927
11007
|
enforceUpdateOverUserInput: "enforceUpdateOverUserInput",
|
|
10928
11008
|
enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue",
|
|
11009
|
+
extractorExtractionTimestamp: "extractorExtractionTimestamp",
|
|
11010
|
+
extractorExtractionTimestampValue: "extractorExtractionTimestampValue",
|
|
10929
11011
|
isCaseSensitive: "isCaseSensitive",
|
|
10930
11012
|
isCommented: "isCommented",
|
|
10931
11013
|
isCorrect: "isCorrect",
|
|
@@ -11029,6 +11111,8 @@ var NodeType = {
|
|
|
11029
11111
|
pageNumber: "pageNumber",
|
|
11030
11112
|
pageNumberValue: "pageNumberValue",
|
|
11031
11113
|
pageValue: "pageValue",
|
|
11114
|
+
printParentChapterLevel: "printParentChapterLevel",
|
|
11115
|
+
printParentChapterLevelValue: "printParentChapterLevelValue",
|
|
11032
11116
|
pairs: "pairs",
|
|
11033
11117
|
pairsValue: "pairsValue",
|
|
11034
11118
|
parent: "parent",
|
|
@@ -24808,6 +24892,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24808
24892
|
data.enforceUpdateOverUserInput,
|
|
24809
24893
|
options
|
|
24810
24894
|
),
|
|
24895
|
+
extractorExtractionTimestamp: this.toAstProperty(
|
|
24896
|
+
bitType,
|
|
24897
|
+
ConfigKey.property_extractorExtractionTimestamp,
|
|
24898
|
+
data.extractorExtractionTimestamp,
|
|
24899
|
+
options
|
|
24900
|
+
),
|
|
24811
24901
|
tocResource: this.toAstProperty(
|
|
24812
24902
|
bitType,
|
|
24813
24903
|
ConfigKey.property_tocResource,
|
|
@@ -24821,6 +24911,12 @@ var Builder = class extends BaseBuilder {
|
|
|
24821
24911
|
options
|
|
24822
24912
|
),
|
|
24823
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
|
+
),
|
|
24824
24920
|
platformBrandTarget: this.toAstProperty(
|
|
24825
24921
|
bitType,
|
|
24826
24922
|
ConfigKey.property_platformBrandTarget,
|
|
@@ -30491,6 +30587,7 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30491
30587
|
BitType.pageFooter,
|
|
30492
30588
|
BitType.pageOpenBook,
|
|
30493
30589
|
BitType.pagePerson,
|
|
30590
|
+
BitType.printBook,
|
|
30494
30591
|
BitType.pageProduct,
|
|
30495
30592
|
BitType.pageProductList,
|
|
30496
30593
|
BitType.pageProductVideo,
|
|
@@ -30511,6 +30608,9 @@ var JsonGenerator = class extends AstWalkerGenerator {
|
|
|
30511
30608
|
if (instance2.isOfBitType(bitType, BitType.tocContent)) {
|
|
30512
30609
|
if (bitJson.tocContent == null) bitJson.tocContent = [];
|
|
30513
30610
|
}
|
|
30611
|
+
if (instance2.isOfBitType(bitType, BitType.printThisChapter)) {
|
|
30612
|
+
if (bitJson.printParentChapterLevel == null) bitJson.printParentChapterLevel = -1;
|
|
30613
|
+
}
|
|
30514
30614
|
if (instance2.isOfBitType(bitType, BitType.book)) {
|
|
30515
30615
|
if (bitJson.maxTocChapterLevel == null) bitJson.maxTocChapterLevel = -1;
|
|
30516
30616
|
if (bitJson.hasPrintRestriction == null) bitJson.hasPrintRestriction = true;
|