@gmb/bitmark-parser-generator 5.20.0 → 5.22.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 +188 -33
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +20 -2
- package/dist/browser/esm/index.d.ts +20 -2
- package/dist/browser/esm/index.js +188 -33
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +204 -35
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +204 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -2
- package/dist/index.d.ts +20 -2
- package/dist/index.js +204 -35
- package/dist/index.js.map +1 -1
- package/package.json +23 -22
|
@@ -624,6 +624,7 @@ declare const BitType: {
|
|
|
624
624
|
readonly vendorPadletEmbed: "vendor-padlet-embed";
|
|
625
625
|
readonly vendorStripePricingTable: "vendor-stripe-pricing-table";
|
|
626
626
|
readonly vendorStripePricingTableExternal: "vendor-stripe-pricing-table-external";
|
|
627
|
+
readonly vendorStripePricingTablePrintOnRequest: "vendor-stripe-pricing-table-print-on-request";
|
|
627
628
|
readonly video: "video";
|
|
628
629
|
readonly videoEmbed: "video-embed";
|
|
629
630
|
readonly videoEmbedLandscape: "video-embed-landscape";
|
|
@@ -875,6 +876,8 @@ declare const ConfigKey: {
|
|
|
875
876
|
readonly property_padletId: "@padletId";
|
|
876
877
|
readonly property_page: "@page";
|
|
877
878
|
readonly property_printParentChapterLevel: "@printParentChapterLevel";
|
|
879
|
+
readonly property_printOnRequestCustomerId: "@printOnRequestCustomerId";
|
|
880
|
+
readonly property_printOnRequestProductId: "@printOnRequestProductId";
|
|
878
881
|
readonly property_pageNo: "@pageNo";
|
|
879
882
|
readonly property_partialAnswer: "@partialAnswer";
|
|
880
883
|
readonly property_partner: "@partner";
|
|
@@ -1833,6 +1836,8 @@ interface BitJson {
|
|
|
1833
1836
|
maxTocChapterLevel: number;
|
|
1834
1837
|
allowPrint: string;
|
|
1835
1838
|
printParentChapterLevel: number;
|
|
1839
|
+
printOnRequestCustomerId: string;
|
|
1840
|
+
printOnRequestProductId: string;
|
|
1836
1841
|
sourceDocument: string;
|
|
1837
1842
|
internalPrintPdf: string;
|
|
1838
1843
|
hasPrintRestriction: boolean;
|
|
@@ -2122,6 +2127,7 @@ interface PronunciationTableJson {
|
|
|
2122
2127
|
data: PronunciationTableCellJson[][];
|
|
2123
2128
|
}
|
|
2124
2129
|
interface TableJson {
|
|
2130
|
+
columnWidths?: (number | null)[];
|
|
2125
2131
|
columns: JsonText[];
|
|
2126
2132
|
data: JsonText[][];
|
|
2127
2133
|
}
|
|
@@ -2466,6 +2472,8 @@ interface Bit {
|
|
|
2466
2472
|
allowPrint?: Property;
|
|
2467
2473
|
allowPrintValue?: Property;
|
|
2468
2474
|
printParentChapterLevel?: Property;
|
|
2475
|
+
printOnRequestCustomerId?: Property;
|
|
2476
|
+
printOnRequestProductId?: Property;
|
|
2469
2477
|
platformBrandTarget?: Property;
|
|
2470
2478
|
platformName?: Property;
|
|
2471
2479
|
platformIcon?: ImageResourceWrapperJson;
|
|
@@ -3052,6 +3060,10 @@ declare const NodeType: {
|
|
|
3052
3060
|
readonly previewVideoValue: "previewVideoValue";
|
|
3053
3061
|
readonly printParentChapterLevel: "printParentChapterLevel";
|
|
3054
3062
|
readonly printParentChapterLevelValue: "printParentChapterLevelValue";
|
|
3063
|
+
readonly printOnRequestCustomerId: "printOnRequestCustomerId";
|
|
3064
|
+
readonly printOnRequestCustomerIdValue: "printOnRequestCustomerIdValue";
|
|
3065
|
+
readonly printOnRequestProductId: "printOnRequestProductId";
|
|
3066
|
+
readonly printOnRequestProductIdValue: "printOnRequestProductIdValue";
|
|
3055
3067
|
readonly processHandIn: "processHandIn";
|
|
3056
3068
|
readonly processHandInLocation: "processHandInLocation";
|
|
3057
3069
|
readonly processHandInLocationValue: "processHandInLocationValue";
|
|
@@ -3515,6 +3527,11 @@ declare abstract class AstWalkerGenerator<AstType, R, Context = undefined> imple
|
|
|
3515
3527
|
exit(node: NodeInfo, route: NodeInfo[], context: Context): void;
|
|
3516
3528
|
leaf(node: NodeInfo, route: NodeInfo[], context: Context): void;
|
|
3517
3529
|
protected getParentNode(route: NodeInfo[], nodesBack?: number): NodeInfo | undefined;
|
|
3530
|
+
protected getSiblingNodes(route: NodeInfo[]): {
|
|
3531
|
+
left?: unknown;
|
|
3532
|
+
right?: unknown;
|
|
3533
|
+
};
|
|
3534
|
+
protected isEmptyParagraph(node: TextNode): boolean;
|
|
3518
3535
|
protected abstract writeInlineDebug(key: string, state: {
|
|
3519
3536
|
open?: boolean;
|
|
3520
3537
|
close?: boolean;
|
|
@@ -3578,7 +3595,6 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3578
3595
|
private inParagraph;
|
|
3579
3596
|
private inHeading;
|
|
3580
3597
|
private inCodeBlock;
|
|
3581
|
-
private exitedCodeBlock;
|
|
3582
3598
|
private inBulletList;
|
|
3583
3599
|
private inInline;
|
|
3584
3600
|
private markDepth;
|
|
@@ -3692,7 +3708,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3692
3708
|
* @param start true if starting (before) the text, false if ending (after) the text
|
|
3693
3709
|
*/
|
|
3694
3710
|
protected writeMarks(node: TextNode, stage: StageType): void | false;
|
|
3695
|
-
protected writeParagraph(node: TextNode): void;
|
|
3711
|
+
protected writeParagraph(node: TextNode, route: NodeInfo[]): void;
|
|
3696
3712
|
protected writeHardBreak(_node: TextNode): void;
|
|
3697
3713
|
protected writeHeading(node: HeadingTextNode): void;
|
|
3698
3714
|
protected writeSection(node: SectionTextNode): void;
|
|
@@ -4333,6 +4349,8 @@ declare class Builder extends BaseBuilder {
|
|
|
4333
4349
|
tocContent?: string | string[];
|
|
4334
4350
|
page?: string | string[];
|
|
4335
4351
|
printParentChapterLevel?: number;
|
|
4352
|
+
printOnRequestCustomerId?: string;
|
|
4353
|
+
printOnRequestProductId?: string;
|
|
4336
4354
|
platformBrandTarget?: string;
|
|
4337
4355
|
platformName?: string;
|
|
4338
4356
|
platformIcon?: Partial<ImageResourceWrapperJson>;
|
|
@@ -624,6 +624,7 @@ declare const BitType: {
|
|
|
624
624
|
readonly vendorPadletEmbed: "vendor-padlet-embed";
|
|
625
625
|
readonly vendorStripePricingTable: "vendor-stripe-pricing-table";
|
|
626
626
|
readonly vendorStripePricingTableExternal: "vendor-stripe-pricing-table-external";
|
|
627
|
+
readonly vendorStripePricingTablePrintOnRequest: "vendor-stripe-pricing-table-print-on-request";
|
|
627
628
|
readonly video: "video";
|
|
628
629
|
readonly videoEmbed: "video-embed";
|
|
629
630
|
readonly videoEmbedLandscape: "video-embed-landscape";
|
|
@@ -875,6 +876,8 @@ declare const ConfigKey: {
|
|
|
875
876
|
readonly property_padletId: "@padletId";
|
|
876
877
|
readonly property_page: "@page";
|
|
877
878
|
readonly property_printParentChapterLevel: "@printParentChapterLevel";
|
|
879
|
+
readonly property_printOnRequestCustomerId: "@printOnRequestCustomerId";
|
|
880
|
+
readonly property_printOnRequestProductId: "@printOnRequestProductId";
|
|
878
881
|
readonly property_pageNo: "@pageNo";
|
|
879
882
|
readonly property_partialAnswer: "@partialAnswer";
|
|
880
883
|
readonly property_partner: "@partner";
|
|
@@ -1833,6 +1836,8 @@ interface BitJson {
|
|
|
1833
1836
|
maxTocChapterLevel: number;
|
|
1834
1837
|
allowPrint: string;
|
|
1835
1838
|
printParentChapterLevel: number;
|
|
1839
|
+
printOnRequestCustomerId: string;
|
|
1840
|
+
printOnRequestProductId: string;
|
|
1836
1841
|
sourceDocument: string;
|
|
1837
1842
|
internalPrintPdf: string;
|
|
1838
1843
|
hasPrintRestriction: boolean;
|
|
@@ -2122,6 +2127,7 @@ interface PronunciationTableJson {
|
|
|
2122
2127
|
data: PronunciationTableCellJson[][];
|
|
2123
2128
|
}
|
|
2124
2129
|
interface TableJson {
|
|
2130
|
+
columnWidths?: (number | null)[];
|
|
2125
2131
|
columns: JsonText[];
|
|
2126
2132
|
data: JsonText[][];
|
|
2127
2133
|
}
|
|
@@ -2466,6 +2472,8 @@ interface Bit {
|
|
|
2466
2472
|
allowPrint?: Property;
|
|
2467
2473
|
allowPrintValue?: Property;
|
|
2468
2474
|
printParentChapterLevel?: Property;
|
|
2475
|
+
printOnRequestCustomerId?: Property;
|
|
2476
|
+
printOnRequestProductId?: Property;
|
|
2469
2477
|
platformBrandTarget?: Property;
|
|
2470
2478
|
platformName?: Property;
|
|
2471
2479
|
platformIcon?: ImageResourceWrapperJson;
|
|
@@ -3052,6 +3060,10 @@ declare const NodeType: {
|
|
|
3052
3060
|
readonly previewVideoValue: "previewVideoValue";
|
|
3053
3061
|
readonly printParentChapterLevel: "printParentChapterLevel";
|
|
3054
3062
|
readonly printParentChapterLevelValue: "printParentChapterLevelValue";
|
|
3063
|
+
readonly printOnRequestCustomerId: "printOnRequestCustomerId";
|
|
3064
|
+
readonly printOnRequestCustomerIdValue: "printOnRequestCustomerIdValue";
|
|
3065
|
+
readonly printOnRequestProductId: "printOnRequestProductId";
|
|
3066
|
+
readonly printOnRequestProductIdValue: "printOnRequestProductIdValue";
|
|
3055
3067
|
readonly processHandIn: "processHandIn";
|
|
3056
3068
|
readonly processHandInLocation: "processHandInLocation";
|
|
3057
3069
|
readonly processHandInLocationValue: "processHandInLocationValue";
|
|
@@ -3515,6 +3527,11 @@ declare abstract class AstWalkerGenerator<AstType, R, Context = undefined> imple
|
|
|
3515
3527
|
exit(node: NodeInfo, route: NodeInfo[], context: Context): void;
|
|
3516
3528
|
leaf(node: NodeInfo, route: NodeInfo[], context: Context): void;
|
|
3517
3529
|
protected getParentNode(route: NodeInfo[], nodesBack?: number): NodeInfo | undefined;
|
|
3530
|
+
protected getSiblingNodes(route: NodeInfo[]): {
|
|
3531
|
+
left?: unknown;
|
|
3532
|
+
right?: unknown;
|
|
3533
|
+
};
|
|
3534
|
+
protected isEmptyParagraph(node: TextNode): boolean;
|
|
3518
3535
|
protected abstract writeInlineDebug(key: string, state: {
|
|
3519
3536
|
open?: boolean;
|
|
3520
3537
|
close?: boolean;
|
|
@@ -3578,7 +3595,6 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3578
3595
|
private inParagraph;
|
|
3579
3596
|
private inHeading;
|
|
3580
3597
|
private inCodeBlock;
|
|
3581
|
-
private exitedCodeBlock;
|
|
3582
3598
|
private inBulletList;
|
|
3583
3599
|
private inInline;
|
|
3584
3600
|
private markDepth;
|
|
@@ -3692,7 +3708,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3692
3708
|
* @param start true if starting (before) the text, false if ending (after) the text
|
|
3693
3709
|
*/
|
|
3694
3710
|
protected writeMarks(node: TextNode, stage: StageType): void | false;
|
|
3695
|
-
protected writeParagraph(node: TextNode): void;
|
|
3711
|
+
protected writeParagraph(node: TextNode, route: NodeInfo[]): void;
|
|
3696
3712
|
protected writeHardBreak(_node: TextNode): void;
|
|
3697
3713
|
protected writeHeading(node: HeadingTextNode): void;
|
|
3698
3714
|
protected writeSection(node: SectionTextNode): void;
|
|
@@ -4333,6 +4349,8 @@ declare class Builder extends BaseBuilder {
|
|
|
4333
4349
|
tocContent?: string | string[];
|
|
4334
4350
|
page?: string | string[];
|
|
4335
4351
|
printParentChapterLevel?: number;
|
|
4352
|
+
printOnRequestCustomerId?: string;
|
|
4353
|
+
printOnRequestProductId?: string;
|
|
4336
4354
|
platformBrandTarget?: string;
|
|
4337
4355
|
platformName?: string;
|
|
4338
4356
|
platformIcon?: Partial<ImageResourceWrapperJson>;
|