@gmb/bitmark-parser-generator 5.0.1 → 5.2.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 +722 -430
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +22 -3
- package/dist/browser/esm/index.d.ts +22 -3
- package/dist/browser/esm/index.js +722 -430
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +719 -428
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +722 -430
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -3
- package/dist/index.d.ts +22 -3
- package/dist/index.js +722 -430
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -585,6 +585,7 @@ declare const BitType: {
|
|
|
585
585
|
readonly trueFalse: "true-false";
|
|
586
586
|
readonly trueFalse1: "true-false-1";
|
|
587
587
|
readonly vendorAmcharts5Chart: "vendor-amcharts-5-chart";
|
|
588
|
+
readonly vendorDatadogDashboard: "vendor-datadog-dashboard";
|
|
588
589
|
readonly vendorDatadogDashboardEmbed: "vendor-datadog-dashboard-embed";
|
|
589
590
|
readonly vendorFormbricksEmbed: "vendor-formbricks-embed";
|
|
590
591
|
readonly vendorFormbricksLink: "vendor-formbricks-link";
|
|
@@ -808,6 +809,7 @@ declare const ConfigKey: {
|
|
|
808
809
|
readonly property_internalComment: "@internalComment";
|
|
809
810
|
readonly property_internalPrintPdf: "@internalPrintPdf";
|
|
810
811
|
readonly property_hasPrintRestriction: "@hasPrintRestriction";
|
|
812
|
+
readonly property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput";
|
|
811
813
|
readonly property_isCaseSensitive: "@isCaseSensitive";
|
|
812
814
|
readonly property_isInfoOnly: "@isInfoOnly";
|
|
813
815
|
readonly property_isPublic: "@isPublic";
|
|
@@ -834,6 +836,7 @@ declare const ConfigKey: {
|
|
|
834
836
|
readonly property_listItemIndent: "@listItemIndent";
|
|
835
837
|
readonly property_location: "@location";
|
|
836
838
|
readonly property_machineTranslated: "@machineTranslated";
|
|
839
|
+
readonly property_translationOf: "@translationOf";
|
|
837
840
|
readonly property_spansPageBreak: "@spansPageBreak";
|
|
838
841
|
readonly property_mailingList: "@mailingList";
|
|
839
842
|
readonly property_mark: "@mark";
|
|
@@ -1106,6 +1109,7 @@ declare const TextMarkType: {
|
|
|
1106
1109
|
readonly timer: "timer";
|
|
1107
1110
|
readonly duration: "duration";
|
|
1108
1111
|
readonly color: "color";
|
|
1112
|
+
readonly colorPicker: "colorPicker";
|
|
1109
1113
|
readonly comment: "comment";
|
|
1110
1114
|
};
|
|
1111
1115
|
type TextMarkTypeType = EnumType<typeof TextMarkType>;
|
|
@@ -1612,6 +1616,7 @@ interface BitJson {
|
|
|
1612
1616
|
isEditable: boolean;
|
|
1613
1617
|
aiGenerated: boolean;
|
|
1614
1618
|
machineTranslated: string;
|
|
1619
|
+
translationOf: string;
|
|
1615
1620
|
spansPageBreak: boolean;
|
|
1616
1621
|
searchIndex: string | string[];
|
|
1617
1622
|
analyticsTag: string | string[];
|
|
@@ -1782,6 +1787,7 @@ interface BitJson {
|
|
|
1782
1787
|
sourceDocument: string;
|
|
1783
1788
|
internalPrintPdf: string;
|
|
1784
1789
|
hasPrintRestriction: boolean;
|
|
1790
|
+
enforceUpdateOverUserInput: boolean;
|
|
1785
1791
|
tocResource: string | string[];
|
|
1786
1792
|
tocContent: string | string[];
|
|
1787
1793
|
page: string;
|
|
@@ -2211,6 +2217,7 @@ interface Bit {
|
|
|
2211
2217
|
isEditable?: Property;
|
|
2212
2218
|
aiGenerated?: Property;
|
|
2213
2219
|
machineTranslated?: Property;
|
|
2220
|
+
translationOf?: Property;
|
|
2214
2221
|
spansPageBreak?: Property;
|
|
2215
2222
|
searchIndex?: Property;
|
|
2216
2223
|
analyticsTag?: Property;
|
|
@@ -2392,6 +2399,7 @@ interface Bit {
|
|
|
2392
2399
|
sourceDocument?: Property;
|
|
2393
2400
|
internalPrintPdf?: Property;
|
|
2394
2401
|
hasPrintRestriction?: Property;
|
|
2402
|
+
enforceUpdateOverUserInput?: Property;
|
|
2395
2403
|
tocResource?: Property;
|
|
2396
2404
|
tocContent?: Property;
|
|
2397
2405
|
page?: Property;
|
|
@@ -2797,6 +2805,8 @@ declare const NodeType: {
|
|
|
2797
2805
|
readonly internalPrintPdfValue: "internalPrintPdfValue";
|
|
2798
2806
|
readonly hasPrintRestriction: "hasPrintRestriction";
|
|
2799
2807
|
readonly hasPrintRestrictionValue: "hasPrintRestrictionValue";
|
|
2808
|
+
readonly enforceUpdateOverUserInput: "enforceUpdateOverUserInput";
|
|
2809
|
+
readonly enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue";
|
|
2800
2810
|
readonly isCaseSensitive: "isCaseSensitive";
|
|
2801
2811
|
readonly isCommented: "isCommented";
|
|
2802
2812
|
readonly isCorrect: "isCorrect";
|
|
@@ -2863,6 +2873,8 @@ declare const NodeType: {
|
|
|
2863
2873
|
readonly locationValue: "locationValue";
|
|
2864
2874
|
readonly machineTranslated: "machineTranslated";
|
|
2865
2875
|
readonly machineTranslatedValue: "machineTranslatedValue";
|
|
2876
|
+
readonly translationOf: "translationOf";
|
|
2877
|
+
readonly translationOfValue: "translationOfValue";
|
|
2866
2878
|
readonly spansPageBreak: "spansPageBreak";
|
|
2867
2879
|
readonly spansPageBreakValue: "spansPageBreakValue";
|
|
2868
2880
|
readonly mailingList: "mailingList";
|
|
@@ -3444,6 +3456,7 @@ interface TextOptions {
|
|
|
3444
3456
|
type GenerateOptions = {
|
|
3445
3457
|
plainTextDividerAllowed?: boolean;
|
|
3446
3458
|
noBreakscaping?: boolean;
|
|
3459
|
+
forceInline?: boolean;
|
|
3447
3460
|
};
|
|
3448
3461
|
declare const Stage: {
|
|
3449
3462
|
enter: string;
|
|
@@ -3463,6 +3476,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3463
3476
|
protected ast: Ast;
|
|
3464
3477
|
private bitmarkVersion;
|
|
3465
3478
|
private options;
|
|
3479
|
+
private internalTextGenerator;
|
|
3466
3480
|
private generateOptions;
|
|
3467
3481
|
private textFormat;
|
|
3468
3482
|
private textLocation;
|
|
@@ -3477,6 +3491,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3477
3491
|
private exitedCodeBlock;
|
|
3478
3492
|
private inBulletList;
|
|
3479
3493
|
private inInline;
|
|
3494
|
+
private markDepth;
|
|
3480
3495
|
private textDepth;
|
|
3481
3496
|
private placeholderIndex;
|
|
3482
3497
|
private placeholders;
|
|
@@ -3518,6 +3533,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3518
3533
|
protected enter_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3519
3534
|
protected between_contentValueValue(node: NodeInfo, left: NodeInfo, right: NodeInfo, route: NodeInfo[]): void;
|
|
3520
3535
|
protected exit_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3536
|
+
protected enter_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3537
|
+
protected exit_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3521
3538
|
protected handleEnterNode(node: TextNode, route: NodeInfo[]): void | false;
|
|
3522
3539
|
protected handleBetweenNode(node: TextNode, _left: NodeInfo, _right: NodeInfo, _route: NodeInfo[]): void;
|
|
3523
3540
|
protected handleExitNode(node: TextNode, _route: NodeInfo[]): void | false;
|
|
@@ -3584,7 +3601,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3584
3601
|
* @param node the text node
|
|
3585
3602
|
* @param start true if starting (before) the text, false if ending (after) the text
|
|
3586
3603
|
*/
|
|
3587
|
-
protected writeMarks(node: TextNode, stage: StageType): void;
|
|
3604
|
+
protected writeMarks(node: TextNode, stage: StageType): void | false;
|
|
3588
3605
|
protected writeParagraph(node: TextNode): void;
|
|
3589
3606
|
protected writeHardBreak(_node: TextNode): void;
|
|
3590
3607
|
protected writeHeading(node: HeadingTextNode): void;
|
|
@@ -3600,8 +3617,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3600
3617
|
protected writeRefMark(mark: RefMark): void;
|
|
3601
3618
|
protected writeXRefMark(mark: XRefMark): void;
|
|
3602
3619
|
protected writeExtRefMark(mark: ExtRefMark): void;
|
|
3603
|
-
protected writeFootnoteMark(
|
|
3604
|
-
protected writeFootnoteStarMark(
|
|
3620
|
+
protected writeFootnoteMark(mark: FootnoteMark): void;
|
|
3621
|
+
protected writeFootnoteStarMark(mark: FootnoteMark): void;
|
|
3605
3622
|
protected writeSymbolMark(mark: SymbolMark): void;
|
|
3606
3623
|
protected writeInlineMarkStartEnd(): void;
|
|
3607
3624
|
protected writePlainTextDivider(): void;
|
|
@@ -4008,6 +4025,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4008
4025
|
isEditable?: boolean;
|
|
4009
4026
|
aiGenerated?: boolean;
|
|
4010
4027
|
machineTranslated?: string;
|
|
4028
|
+
translationOf?: string;
|
|
4011
4029
|
spansPageBreak?: boolean;
|
|
4012
4030
|
searchIndex?: string | string[];
|
|
4013
4031
|
analyticsTag?: string | string[];
|
|
@@ -4184,6 +4202,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4184
4202
|
sourceDocument?: string;
|
|
4185
4203
|
internalPrintPdf?: string;
|
|
4186
4204
|
hasPrintRestriction?: boolean;
|
|
4205
|
+
enforceUpdateOverUserInput?: boolean;
|
|
4187
4206
|
tocResource?: string | string[];
|
|
4188
4207
|
tocContent?: string | string[];
|
|
4189
4208
|
page?: string | string[];
|
|
@@ -585,6 +585,7 @@ declare const BitType: {
|
|
|
585
585
|
readonly trueFalse: "true-false";
|
|
586
586
|
readonly trueFalse1: "true-false-1";
|
|
587
587
|
readonly vendorAmcharts5Chart: "vendor-amcharts-5-chart";
|
|
588
|
+
readonly vendorDatadogDashboard: "vendor-datadog-dashboard";
|
|
588
589
|
readonly vendorDatadogDashboardEmbed: "vendor-datadog-dashboard-embed";
|
|
589
590
|
readonly vendorFormbricksEmbed: "vendor-formbricks-embed";
|
|
590
591
|
readonly vendorFormbricksLink: "vendor-formbricks-link";
|
|
@@ -808,6 +809,7 @@ declare const ConfigKey: {
|
|
|
808
809
|
readonly property_internalComment: "@internalComment";
|
|
809
810
|
readonly property_internalPrintPdf: "@internalPrintPdf";
|
|
810
811
|
readonly property_hasPrintRestriction: "@hasPrintRestriction";
|
|
812
|
+
readonly property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput";
|
|
811
813
|
readonly property_isCaseSensitive: "@isCaseSensitive";
|
|
812
814
|
readonly property_isInfoOnly: "@isInfoOnly";
|
|
813
815
|
readonly property_isPublic: "@isPublic";
|
|
@@ -834,6 +836,7 @@ declare const ConfigKey: {
|
|
|
834
836
|
readonly property_listItemIndent: "@listItemIndent";
|
|
835
837
|
readonly property_location: "@location";
|
|
836
838
|
readonly property_machineTranslated: "@machineTranslated";
|
|
839
|
+
readonly property_translationOf: "@translationOf";
|
|
837
840
|
readonly property_spansPageBreak: "@spansPageBreak";
|
|
838
841
|
readonly property_mailingList: "@mailingList";
|
|
839
842
|
readonly property_mark: "@mark";
|
|
@@ -1106,6 +1109,7 @@ declare const TextMarkType: {
|
|
|
1106
1109
|
readonly timer: "timer";
|
|
1107
1110
|
readonly duration: "duration";
|
|
1108
1111
|
readonly color: "color";
|
|
1112
|
+
readonly colorPicker: "colorPicker";
|
|
1109
1113
|
readonly comment: "comment";
|
|
1110
1114
|
};
|
|
1111
1115
|
type TextMarkTypeType = EnumType<typeof TextMarkType>;
|
|
@@ -1612,6 +1616,7 @@ interface BitJson {
|
|
|
1612
1616
|
isEditable: boolean;
|
|
1613
1617
|
aiGenerated: boolean;
|
|
1614
1618
|
machineTranslated: string;
|
|
1619
|
+
translationOf: string;
|
|
1615
1620
|
spansPageBreak: boolean;
|
|
1616
1621
|
searchIndex: string | string[];
|
|
1617
1622
|
analyticsTag: string | string[];
|
|
@@ -1782,6 +1787,7 @@ interface BitJson {
|
|
|
1782
1787
|
sourceDocument: string;
|
|
1783
1788
|
internalPrintPdf: string;
|
|
1784
1789
|
hasPrintRestriction: boolean;
|
|
1790
|
+
enforceUpdateOverUserInput: boolean;
|
|
1785
1791
|
tocResource: string | string[];
|
|
1786
1792
|
tocContent: string | string[];
|
|
1787
1793
|
page: string;
|
|
@@ -2211,6 +2217,7 @@ interface Bit {
|
|
|
2211
2217
|
isEditable?: Property;
|
|
2212
2218
|
aiGenerated?: Property;
|
|
2213
2219
|
machineTranslated?: Property;
|
|
2220
|
+
translationOf?: Property;
|
|
2214
2221
|
spansPageBreak?: Property;
|
|
2215
2222
|
searchIndex?: Property;
|
|
2216
2223
|
analyticsTag?: Property;
|
|
@@ -2392,6 +2399,7 @@ interface Bit {
|
|
|
2392
2399
|
sourceDocument?: Property;
|
|
2393
2400
|
internalPrintPdf?: Property;
|
|
2394
2401
|
hasPrintRestriction?: Property;
|
|
2402
|
+
enforceUpdateOverUserInput?: Property;
|
|
2395
2403
|
tocResource?: Property;
|
|
2396
2404
|
tocContent?: Property;
|
|
2397
2405
|
page?: Property;
|
|
@@ -2797,6 +2805,8 @@ declare const NodeType: {
|
|
|
2797
2805
|
readonly internalPrintPdfValue: "internalPrintPdfValue";
|
|
2798
2806
|
readonly hasPrintRestriction: "hasPrintRestriction";
|
|
2799
2807
|
readonly hasPrintRestrictionValue: "hasPrintRestrictionValue";
|
|
2808
|
+
readonly enforceUpdateOverUserInput: "enforceUpdateOverUserInput";
|
|
2809
|
+
readonly enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue";
|
|
2800
2810
|
readonly isCaseSensitive: "isCaseSensitive";
|
|
2801
2811
|
readonly isCommented: "isCommented";
|
|
2802
2812
|
readonly isCorrect: "isCorrect";
|
|
@@ -2863,6 +2873,8 @@ declare const NodeType: {
|
|
|
2863
2873
|
readonly locationValue: "locationValue";
|
|
2864
2874
|
readonly machineTranslated: "machineTranslated";
|
|
2865
2875
|
readonly machineTranslatedValue: "machineTranslatedValue";
|
|
2876
|
+
readonly translationOf: "translationOf";
|
|
2877
|
+
readonly translationOfValue: "translationOfValue";
|
|
2866
2878
|
readonly spansPageBreak: "spansPageBreak";
|
|
2867
2879
|
readonly spansPageBreakValue: "spansPageBreakValue";
|
|
2868
2880
|
readonly mailingList: "mailingList";
|
|
@@ -3444,6 +3456,7 @@ interface TextOptions {
|
|
|
3444
3456
|
type GenerateOptions = {
|
|
3445
3457
|
plainTextDividerAllowed?: boolean;
|
|
3446
3458
|
noBreakscaping?: boolean;
|
|
3459
|
+
forceInline?: boolean;
|
|
3447
3460
|
};
|
|
3448
3461
|
declare const Stage: {
|
|
3449
3462
|
enter: string;
|
|
@@ -3463,6 +3476,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3463
3476
|
protected ast: Ast;
|
|
3464
3477
|
private bitmarkVersion;
|
|
3465
3478
|
private options;
|
|
3479
|
+
private internalTextGenerator;
|
|
3466
3480
|
private generateOptions;
|
|
3467
3481
|
private textFormat;
|
|
3468
3482
|
private textLocation;
|
|
@@ -3477,6 +3491,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3477
3491
|
private exitedCodeBlock;
|
|
3478
3492
|
private inBulletList;
|
|
3479
3493
|
private inInline;
|
|
3494
|
+
private markDepth;
|
|
3480
3495
|
private textDepth;
|
|
3481
3496
|
private placeholderIndex;
|
|
3482
3497
|
private placeholders;
|
|
@@ -3518,6 +3533,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3518
3533
|
protected enter_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3519
3534
|
protected between_contentValueValue(node: NodeInfo, left: NodeInfo, right: NodeInfo, route: NodeInfo[]): void;
|
|
3520
3535
|
protected exit_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3536
|
+
protected enter_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3537
|
+
protected exit_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3521
3538
|
protected handleEnterNode(node: TextNode, route: NodeInfo[]): void | false;
|
|
3522
3539
|
protected handleBetweenNode(node: TextNode, _left: NodeInfo, _right: NodeInfo, _route: NodeInfo[]): void;
|
|
3523
3540
|
protected handleExitNode(node: TextNode, _route: NodeInfo[]): void | false;
|
|
@@ -3584,7 +3601,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3584
3601
|
* @param node the text node
|
|
3585
3602
|
* @param start true if starting (before) the text, false if ending (after) the text
|
|
3586
3603
|
*/
|
|
3587
|
-
protected writeMarks(node: TextNode, stage: StageType): void;
|
|
3604
|
+
protected writeMarks(node: TextNode, stage: StageType): void | false;
|
|
3588
3605
|
protected writeParagraph(node: TextNode): void;
|
|
3589
3606
|
protected writeHardBreak(_node: TextNode): void;
|
|
3590
3607
|
protected writeHeading(node: HeadingTextNode): void;
|
|
@@ -3600,8 +3617,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3600
3617
|
protected writeRefMark(mark: RefMark): void;
|
|
3601
3618
|
protected writeXRefMark(mark: XRefMark): void;
|
|
3602
3619
|
protected writeExtRefMark(mark: ExtRefMark): void;
|
|
3603
|
-
protected writeFootnoteMark(
|
|
3604
|
-
protected writeFootnoteStarMark(
|
|
3620
|
+
protected writeFootnoteMark(mark: FootnoteMark): void;
|
|
3621
|
+
protected writeFootnoteStarMark(mark: FootnoteMark): void;
|
|
3605
3622
|
protected writeSymbolMark(mark: SymbolMark): void;
|
|
3606
3623
|
protected writeInlineMarkStartEnd(): void;
|
|
3607
3624
|
protected writePlainTextDivider(): void;
|
|
@@ -4008,6 +4025,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4008
4025
|
isEditable?: boolean;
|
|
4009
4026
|
aiGenerated?: boolean;
|
|
4010
4027
|
machineTranslated?: string;
|
|
4028
|
+
translationOf?: string;
|
|
4011
4029
|
spansPageBreak?: boolean;
|
|
4012
4030
|
searchIndex?: string | string[];
|
|
4013
4031
|
analyticsTag?: string | string[];
|
|
@@ -4184,6 +4202,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4184
4202
|
sourceDocument?: string;
|
|
4185
4203
|
internalPrintPdf?: string;
|
|
4186
4204
|
hasPrintRestriction?: boolean;
|
|
4205
|
+
enforceUpdateOverUserInput?: boolean;
|
|
4187
4206
|
tocResource?: string | string[];
|
|
4188
4207
|
tocContent?: string | string[];
|
|
4189
4208
|
page?: string | string[];
|