@gmb/bitmark-parser-generator 5.1.0 → 5.3.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 +120 -6
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +30 -3
- package/dist/browser/esm/index.d.ts +30 -3
- package/dist/browser/esm/index.js +120 -6
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +347 -74
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +310 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.js +310 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -261,6 +261,7 @@ declare const BitType: {
|
|
|
261
261
|
readonly flashcard1: "flashcard-1";
|
|
262
262
|
readonly focusImage: "focus-image";
|
|
263
263
|
readonly footNote: "foot-note";
|
|
264
|
+
readonly formFreeText: "form-free-text";
|
|
264
265
|
readonly formula: "formula";
|
|
265
266
|
readonly gapText: "gap-text";
|
|
266
267
|
readonly gapTextInstructionGrouped: "gap-text-instruction-grouped";
|
|
@@ -273,6 +274,8 @@ declare const BitType: {
|
|
|
273
274
|
readonly handInFeedbackExpert: "hand-in-feedback-expert";
|
|
274
275
|
readonly handInFeedbackSelf: "hand-in-feedback-self";
|
|
275
276
|
readonly handInFile: "hand-in-file";
|
|
277
|
+
readonly handInFreeText: "hand-in-free-text";
|
|
278
|
+
readonly handInFreeTextExpert: "hand-in-free-text-expert";
|
|
276
279
|
readonly handInLocation: "hand-in-location";
|
|
277
280
|
readonly handInPhoto: "hand-in-photo";
|
|
278
281
|
readonly handInScan: "hand-in-scan";
|
|
@@ -585,6 +588,7 @@ declare const BitType: {
|
|
|
585
588
|
readonly trueFalse: "true-false";
|
|
586
589
|
readonly trueFalse1: "true-false-1";
|
|
587
590
|
readonly vendorAmcharts5Chart: "vendor-amcharts-5-chart";
|
|
591
|
+
readonly vendorDatadogDashboard: "vendor-datadog-dashboard";
|
|
588
592
|
readonly vendorDatadogDashboardEmbed: "vendor-datadog-dashboard-embed";
|
|
589
593
|
readonly vendorFormbricksEmbed: "vendor-formbricks-embed";
|
|
590
594
|
readonly vendorFormbricksLink: "vendor-formbricks-link";
|
|
@@ -808,6 +812,7 @@ declare const ConfigKey: {
|
|
|
808
812
|
readonly property_internalComment: "@internalComment";
|
|
809
813
|
readonly property_internalPrintPdf: "@internalPrintPdf";
|
|
810
814
|
readonly property_hasPrintRestriction: "@hasPrintRestriction";
|
|
815
|
+
readonly property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput";
|
|
811
816
|
readonly property_isCaseSensitive: "@isCaseSensitive";
|
|
812
817
|
readonly property_isInfoOnly: "@isInfoOnly";
|
|
813
818
|
readonly property_isPublic: "@isPublic";
|
|
@@ -834,6 +839,7 @@ declare const ConfigKey: {
|
|
|
834
839
|
readonly property_listItemIndent: "@listItemIndent";
|
|
835
840
|
readonly property_location: "@location";
|
|
836
841
|
readonly property_machineTranslated: "@machineTranslated";
|
|
842
|
+
readonly property_translationOf: "@translationOf";
|
|
837
843
|
readonly property_spansPageBreak: "@spansPageBreak";
|
|
838
844
|
readonly property_mailingList: "@mailingList";
|
|
839
845
|
readonly property_mark: "@mark";
|
|
@@ -865,6 +871,7 @@ declare const ConfigKey: {
|
|
|
865
871
|
readonly property_platformMargin: "@platformMargin";
|
|
866
872
|
readonly property_platformBorderRadius: "@platformBorderRadius";
|
|
867
873
|
readonly property_platformSelectionBorderRadius: "@platformSelectionBorderRadius";
|
|
874
|
+
readonly property_platformLogoMaxHeight: "@platformLogoMaxHeight";
|
|
868
875
|
readonly property_platformNeedsShadow: "@platformNeedsShadow";
|
|
869
876
|
readonly property_platformSeparatorColor: "@platformSeparatorColor";
|
|
870
877
|
readonly property_platformTextSelectionColor: "@platformTextSelectionColor";
|
|
@@ -1613,6 +1620,7 @@ interface BitJson {
|
|
|
1613
1620
|
isEditable: boolean;
|
|
1614
1621
|
aiGenerated: boolean;
|
|
1615
1622
|
machineTranslated: string;
|
|
1623
|
+
translationOf: string;
|
|
1616
1624
|
spansPageBreak: boolean;
|
|
1617
1625
|
searchIndex: string | string[];
|
|
1618
1626
|
analyticsTag: string | string[];
|
|
@@ -1783,6 +1791,7 @@ interface BitJson {
|
|
|
1783
1791
|
sourceDocument: string;
|
|
1784
1792
|
internalPrintPdf: string;
|
|
1785
1793
|
hasPrintRestriction: boolean;
|
|
1794
|
+
enforceUpdateOverUserInput: boolean;
|
|
1786
1795
|
tocResource: string | string[];
|
|
1787
1796
|
tocContent: string | string[];
|
|
1788
1797
|
page: string;
|
|
@@ -1790,6 +1799,7 @@ interface BitJson {
|
|
|
1790
1799
|
platformName: string;
|
|
1791
1800
|
platformIcon: ImageResourceWrapperJson;
|
|
1792
1801
|
platformLogo: ImageResourceWrapperJson;
|
|
1802
|
+
platformLogoMaxHeight: number;
|
|
1793
1803
|
platformPrimaryColor: string;
|
|
1794
1804
|
platformSecondaryColor: string;
|
|
1795
1805
|
platformBackgroundColor: string;
|
|
@@ -2212,6 +2222,7 @@ interface Bit {
|
|
|
2212
2222
|
isEditable?: Property;
|
|
2213
2223
|
aiGenerated?: Property;
|
|
2214
2224
|
machineTranslated?: Property;
|
|
2225
|
+
translationOf?: Property;
|
|
2215
2226
|
spansPageBreak?: Property;
|
|
2216
2227
|
searchIndex?: Property;
|
|
2217
2228
|
analyticsTag?: Property;
|
|
@@ -2393,6 +2404,7 @@ interface Bit {
|
|
|
2393
2404
|
sourceDocument?: Property;
|
|
2394
2405
|
internalPrintPdf?: Property;
|
|
2395
2406
|
hasPrintRestriction?: Property;
|
|
2407
|
+
enforceUpdateOverUserInput?: Property;
|
|
2396
2408
|
tocResource?: Property;
|
|
2397
2409
|
tocContent?: Property;
|
|
2398
2410
|
page?: Property;
|
|
@@ -2400,6 +2412,7 @@ interface Bit {
|
|
|
2400
2412
|
platformName?: Property;
|
|
2401
2413
|
platformIcon?: ImageResourceWrapperJson;
|
|
2402
2414
|
platformLogo?: ImageResourceWrapperJson;
|
|
2415
|
+
platformLogoMaxHeight?: Property;
|
|
2403
2416
|
platformPrimaryColor?: Property;
|
|
2404
2417
|
platformSecondaryColor?: Property;
|
|
2405
2418
|
platformBackgroundColor?: Property;
|
|
@@ -2798,6 +2811,8 @@ declare const NodeType: {
|
|
|
2798
2811
|
readonly internalPrintPdfValue: "internalPrintPdfValue";
|
|
2799
2812
|
readonly hasPrintRestriction: "hasPrintRestriction";
|
|
2800
2813
|
readonly hasPrintRestrictionValue: "hasPrintRestrictionValue";
|
|
2814
|
+
readonly enforceUpdateOverUserInput: "enforceUpdateOverUserInput";
|
|
2815
|
+
readonly enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue";
|
|
2801
2816
|
readonly isCaseSensitive: "isCaseSensitive";
|
|
2802
2817
|
readonly isCommented: "isCommented";
|
|
2803
2818
|
readonly isCorrect: "isCorrect";
|
|
@@ -2864,6 +2879,8 @@ declare const NodeType: {
|
|
|
2864
2879
|
readonly locationValue: "locationValue";
|
|
2865
2880
|
readonly machineTranslated: "machineTranslated";
|
|
2866
2881
|
readonly machineTranslatedValue: "machineTranslatedValue";
|
|
2882
|
+
readonly translationOf: "translationOf";
|
|
2883
|
+
readonly translationOfValue: "translationOfValue";
|
|
2867
2884
|
readonly spansPageBreak: "spansPageBreak";
|
|
2868
2885
|
readonly spansPageBreakValue: "spansPageBreakValue";
|
|
2869
2886
|
readonly mailingList: "mailingList";
|
|
@@ -2914,6 +2931,8 @@ declare const NodeType: {
|
|
|
2914
2931
|
readonly platformIconValue: "platformIconValue";
|
|
2915
2932
|
readonly platformLogo: "platformLogo";
|
|
2916
2933
|
readonly platformLogoValue: "platformLogoValue";
|
|
2934
|
+
readonly platformLogoMaxHeight: "platformLogoMaxHeight";
|
|
2935
|
+
readonly platformLogoMaxHeightValue: "platformLogoMaxHeightValue";
|
|
2917
2936
|
readonly platformPrimaryColor: "platformPrimaryColor";
|
|
2918
2937
|
readonly platformPrimaryColorValue: "platformPrimaryColorValue";
|
|
2919
2938
|
readonly platformSecondaryColor: "platformSecondaryColor";
|
|
@@ -3445,6 +3464,7 @@ interface TextOptions {
|
|
|
3445
3464
|
type GenerateOptions = {
|
|
3446
3465
|
plainTextDividerAllowed?: boolean;
|
|
3447
3466
|
noBreakscaping?: boolean;
|
|
3467
|
+
forceInline?: boolean;
|
|
3448
3468
|
};
|
|
3449
3469
|
declare const Stage: {
|
|
3450
3470
|
enter: string;
|
|
@@ -3464,6 +3484,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3464
3484
|
protected ast: Ast;
|
|
3465
3485
|
private bitmarkVersion;
|
|
3466
3486
|
private options;
|
|
3487
|
+
private internalTextGenerator;
|
|
3467
3488
|
private generateOptions;
|
|
3468
3489
|
private textFormat;
|
|
3469
3490
|
private textLocation;
|
|
@@ -3478,6 +3499,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3478
3499
|
private exitedCodeBlock;
|
|
3479
3500
|
private inBulletList;
|
|
3480
3501
|
private inInline;
|
|
3502
|
+
private markDepth;
|
|
3481
3503
|
private textDepth;
|
|
3482
3504
|
private placeholderIndex;
|
|
3483
3505
|
private placeholders;
|
|
@@ -3519,6 +3541,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3519
3541
|
protected enter_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3520
3542
|
protected between_contentValueValue(node: NodeInfo, left: NodeInfo, right: NodeInfo, route: NodeInfo[]): void;
|
|
3521
3543
|
protected exit_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3544
|
+
protected enter_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3545
|
+
protected exit_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3522
3546
|
protected handleEnterNode(node: TextNode, route: NodeInfo[]): void | false;
|
|
3523
3547
|
protected handleBetweenNode(node: TextNode, _left: NodeInfo, _right: NodeInfo, _route: NodeInfo[]): void;
|
|
3524
3548
|
protected handleExitNode(node: TextNode, _route: NodeInfo[]): void | false;
|
|
@@ -3585,7 +3609,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3585
3609
|
* @param node the text node
|
|
3586
3610
|
* @param start true if starting (before) the text, false if ending (after) the text
|
|
3587
3611
|
*/
|
|
3588
|
-
protected writeMarks(node: TextNode, stage: StageType): void;
|
|
3612
|
+
protected writeMarks(node: TextNode, stage: StageType): void | false;
|
|
3589
3613
|
protected writeParagraph(node: TextNode): void;
|
|
3590
3614
|
protected writeHardBreak(_node: TextNode): void;
|
|
3591
3615
|
protected writeHeading(node: HeadingTextNode): void;
|
|
@@ -3601,8 +3625,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3601
3625
|
protected writeRefMark(mark: RefMark): void;
|
|
3602
3626
|
protected writeXRefMark(mark: XRefMark): void;
|
|
3603
3627
|
protected writeExtRefMark(mark: ExtRefMark): void;
|
|
3604
|
-
protected writeFootnoteMark(
|
|
3605
|
-
protected writeFootnoteStarMark(
|
|
3628
|
+
protected writeFootnoteMark(mark: FootnoteMark): void;
|
|
3629
|
+
protected writeFootnoteStarMark(mark: FootnoteMark): void;
|
|
3606
3630
|
protected writeSymbolMark(mark: SymbolMark): void;
|
|
3607
3631
|
protected writeInlineMarkStartEnd(): void;
|
|
3608
3632
|
protected writePlainTextDivider(): void;
|
|
@@ -4009,6 +4033,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4009
4033
|
isEditable?: boolean;
|
|
4010
4034
|
aiGenerated?: boolean;
|
|
4011
4035
|
machineTranslated?: string;
|
|
4036
|
+
translationOf?: string;
|
|
4012
4037
|
spansPageBreak?: boolean;
|
|
4013
4038
|
searchIndex?: string | string[];
|
|
4014
4039
|
analyticsTag?: string | string[];
|
|
@@ -4185,6 +4210,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4185
4210
|
sourceDocument?: string;
|
|
4186
4211
|
internalPrintPdf?: string;
|
|
4187
4212
|
hasPrintRestriction?: boolean;
|
|
4213
|
+
enforceUpdateOverUserInput?: boolean;
|
|
4188
4214
|
tocResource?: string | string[];
|
|
4189
4215
|
tocContent?: string | string[];
|
|
4190
4216
|
page?: string | string[];
|
|
@@ -4192,6 +4218,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4192
4218
|
platformName?: string;
|
|
4193
4219
|
platformIcon?: Partial<ImageResourceWrapperJson>;
|
|
4194
4220
|
platformLogo?: Partial<ImageResourceWrapperJson>;
|
|
4221
|
+
platformLogoMaxHeight?: number;
|
|
4195
4222
|
platformPrimaryColor?: string;
|
|
4196
4223
|
platformSecondaryColor?: string;
|
|
4197
4224
|
platformBackgroundColor?: string;
|
|
@@ -261,6 +261,7 @@ declare const BitType: {
|
|
|
261
261
|
readonly flashcard1: "flashcard-1";
|
|
262
262
|
readonly focusImage: "focus-image";
|
|
263
263
|
readonly footNote: "foot-note";
|
|
264
|
+
readonly formFreeText: "form-free-text";
|
|
264
265
|
readonly formula: "formula";
|
|
265
266
|
readonly gapText: "gap-text";
|
|
266
267
|
readonly gapTextInstructionGrouped: "gap-text-instruction-grouped";
|
|
@@ -273,6 +274,8 @@ declare const BitType: {
|
|
|
273
274
|
readonly handInFeedbackExpert: "hand-in-feedback-expert";
|
|
274
275
|
readonly handInFeedbackSelf: "hand-in-feedback-self";
|
|
275
276
|
readonly handInFile: "hand-in-file";
|
|
277
|
+
readonly handInFreeText: "hand-in-free-text";
|
|
278
|
+
readonly handInFreeTextExpert: "hand-in-free-text-expert";
|
|
276
279
|
readonly handInLocation: "hand-in-location";
|
|
277
280
|
readonly handInPhoto: "hand-in-photo";
|
|
278
281
|
readonly handInScan: "hand-in-scan";
|
|
@@ -585,6 +588,7 @@ declare const BitType: {
|
|
|
585
588
|
readonly trueFalse: "true-false";
|
|
586
589
|
readonly trueFalse1: "true-false-1";
|
|
587
590
|
readonly vendorAmcharts5Chart: "vendor-amcharts-5-chart";
|
|
591
|
+
readonly vendorDatadogDashboard: "vendor-datadog-dashboard";
|
|
588
592
|
readonly vendorDatadogDashboardEmbed: "vendor-datadog-dashboard-embed";
|
|
589
593
|
readonly vendorFormbricksEmbed: "vendor-formbricks-embed";
|
|
590
594
|
readonly vendorFormbricksLink: "vendor-formbricks-link";
|
|
@@ -808,6 +812,7 @@ declare const ConfigKey: {
|
|
|
808
812
|
readonly property_internalComment: "@internalComment";
|
|
809
813
|
readonly property_internalPrintPdf: "@internalPrintPdf";
|
|
810
814
|
readonly property_hasPrintRestriction: "@hasPrintRestriction";
|
|
815
|
+
readonly property_enforceUpdateOverUserInput: "@enforceUpdateOverUserInput";
|
|
811
816
|
readonly property_isCaseSensitive: "@isCaseSensitive";
|
|
812
817
|
readonly property_isInfoOnly: "@isInfoOnly";
|
|
813
818
|
readonly property_isPublic: "@isPublic";
|
|
@@ -834,6 +839,7 @@ declare const ConfigKey: {
|
|
|
834
839
|
readonly property_listItemIndent: "@listItemIndent";
|
|
835
840
|
readonly property_location: "@location";
|
|
836
841
|
readonly property_machineTranslated: "@machineTranslated";
|
|
842
|
+
readonly property_translationOf: "@translationOf";
|
|
837
843
|
readonly property_spansPageBreak: "@spansPageBreak";
|
|
838
844
|
readonly property_mailingList: "@mailingList";
|
|
839
845
|
readonly property_mark: "@mark";
|
|
@@ -865,6 +871,7 @@ declare const ConfigKey: {
|
|
|
865
871
|
readonly property_platformMargin: "@platformMargin";
|
|
866
872
|
readonly property_platformBorderRadius: "@platformBorderRadius";
|
|
867
873
|
readonly property_platformSelectionBorderRadius: "@platformSelectionBorderRadius";
|
|
874
|
+
readonly property_platformLogoMaxHeight: "@platformLogoMaxHeight";
|
|
868
875
|
readonly property_platformNeedsShadow: "@platformNeedsShadow";
|
|
869
876
|
readonly property_platformSeparatorColor: "@platformSeparatorColor";
|
|
870
877
|
readonly property_platformTextSelectionColor: "@platformTextSelectionColor";
|
|
@@ -1613,6 +1620,7 @@ interface BitJson {
|
|
|
1613
1620
|
isEditable: boolean;
|
|
1614
1621
|
aiGenerated: boolean;
|
|
1615
1622
|
machineTranslated: string;
|
|
1623
|
+
translationOf: string;
|
|
1616
1624
|
spansPageBreak: boolean;
|
|
1617
1625
|
searchIndex: string | string[];
|
|
1618
1626
|
analyticsTag: string | string[];
|
|
@@ -1783,6 +1791,7 @@ interface BitJson {
|
|
|
1783
1791
|
sourceDocument: string;
|
|
1784
1792
|
internalPrintPdf: string;
|
|
1785
1793
|
hasPrintRestriction: boolean;
|
|
1794
|
+
enforceUpdateOverUserInput: boolean;
|
|
1786
1795
|
tocResource: string | string[];
|
|
1787
1796
|
tocContent: string | string[];
|
|
1788
1797
|
page: string;
|
|
@@ -1790,6 +1799,7 @@ interface BitJson {
|
|
|
1790
1799
|
platformName: string;
|
|
1791
1800
|
platformIcon: ImageResourceWrapperJson;
|
|
1792
1801
|
platformLogo: ImageResourceWrapperJson;
|
|
1802
|
+
platformLogoMaxHeight: number;
|
|
1793
1803
|
platformPrimaryColor: string;
|
|
1794
1804
|
platformSecondaryColor: string;
|
|
1795
1805
|
platformBackgroundColor: string;
|
|
@@ -2212,6 +2222,7 @@ interface Bit {
|
|
|
2212
2222
|
isEditable?: Property;
|
|
2213
2223
|
aiGenerated?: Property;
|
|
2214
2224
|
machineTranslated?: Property;
|
|
2225
|
+
translationOf?: Property;
|
|
2215
2226
|
spansPageBreak?: Property;
|
|
2216
2227
|
searchIndex?: Property;
|
|
2217
2228
|
analyticsTag?: Property;
|
|
@@ -2393,6 +2404,7 @@ interface Bit {
|
|
|
2393
2404
|
sourceDocument?: Property;
|
|
2394
2405
|
internalPrintPdf?: Property;
|
|
2395
2406
|
hasPrintRestriction?: Property;
|
|
2407
|
+
enforceUpdateOverUserInput?: Property;
|
|
2396
2408
|
tocResource?: Property;
|
|
2397
2409
|
tocContent?: Property;
|
|
2398
2410
|
page?: Property;
|
|
@@ -2400,6 +2412,7 @@ interface Bit {
|
|
|
2400
2412
|
platformName?: Property;
|
|
2401
2413
|
platformIcon?: ImageResourceWrapperJson;
|
|
2402
2414
|
platformLogo?: ImageResourceWrapperJson;
|
|
2415
|
+
platformLogoMaxHeight?: Property;
|
|
2403
2416
|
platformPrimaryColor?: Property;
|
|
2404
2417
|
platformSecondaryColor?: Property;
|
|
2405
2418
|
platformBackgroundColor?: Property;
|
|
@@ -2798,6 +2811,8 @@ declare const NodeType: {
|
|
|
2798
2811
|
readonly internalPrintPdfValue: "internalPrintPdfValue";
|
|
2799
2812
|
readonly hasPrintRestriction: "hasPrintRestriction";
|
|
2800
2813
|
readonly hasPrintRestrictionValue: "hasPrintRestrictionValue";
|
|
2814
|
+
readonly enforceUpdateOverUserInput: "enforceUpdateOverUserInput";
|
|
2815
|
+
readonly enforceUpdateOverUserInputValue: "enforceUpdateOverUserInputValue";
|
|
2801
2816
|
readonly isCaseSensitive: "isCaseSensitive";
|
|
2802
2817
|
readonly isCommented: "isCommented";
|
|
2803
2818
|
readonly isCorrect: "isCorrect";
|
|
@@ -2864,6 +2879,8 @@ declare const NodeType: {
|
|
|
2864
2879
|
readonly locationValue: "locationValue";
|
|
2865
2880
|
readonly machineTranslated: "machineTranslated";
|
|
2866
2881
|
readonly machineTranslatedValue: "machineTranslatedValue";
|
|
2882
|
+
readonly translationOf: "translationOf";
|
|
2883
|
+
readonly translationOfValue: "translationOfValue";
|
|
2867
2884
|
readonly spansPageBreak: "spansPageBreak";
|
|
2868
2885
|
readonly spansPageBreakValue: "spansPageBreakValue";
|
|
2869
2886
|
readonly mailingList: "mailingList";
|
|
@@ -2914,6 +2931,8 @@ declare const NodeType: {
|
|
|
2914
2931
|
readonly platformIconValue: "platformIconValue";
|
|
2915
2932
|
readonly platformLogo: "platformLogo";
|
|
2916
2933
|
readonly platformLogoValue: "platformLogoValue";
|
|
2934
|
+
readonly platformLogoMaxHeight: "platformLogoMaxHeight";
|
|
2935
|
+
readonly platformLogoMaxHeightValue: "platformLogoMaxHeightValue";
|
|
2917
2936
|
readonly platformPrimaryColor: "platformPrimaryColor";
|
|
2918
2937
|
readonly platformPrimaryColorValue: "platformPrimaryColorValue";
|
|
2919
2938
|
readonly platformSecondaryColor: "platformSecondaryColor";
|
|
@@ -3445,6 +3464,7 @@ interface TextOptions {
|
|
|
3445
3464
|
type GenerateOptions = {
|
|
3446
3465
|
plainTextDividerAllowed?: boolean;
|
|
3447
3466
|
noBreakscaping?: boolean;
|
|
3467
|
+
forceInline?: boolean;
|
|
3448
3468
|
};
|
|
3449
3469
|
declare const Stage: {
|
|
3450
3470
|
enter: string;
|
|
@@ -3464,6 +3484,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3464
3484
|
protected ast: Ast;
|
|
3465
3485
|
private bitmarkVersion;
|
|
3466
3486
|
private options;
|
|
3487
|
+
private internalTextGenerator;
|
|
3467
3488
|
private generateOptions;
|
|
3468
3489
|
private textFormat;
|
|
3469
3490
|
private textLocation;
|
|
@@ -3478,6 +3499,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3478
3499
|
private exitedCodeBlock;
|
|
3479
3500
|
private inBulletList;
|
|
3480
3501
|
private inInline;
|
|
3502
|
+
private markDepth;
|
|
3481
3503
|
private textDepth;
|
|
3482
3504
|
private placeholderIndex;
|
|
3483
3505
|
private placeholders;
|
|
@@ -3519,6 +3541,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3519
3541
|
protected enter_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3520
3542
|
protected between_contentValueValue(node: NodeInfo, left: NodeInfo, right: NodeInfo, route: NodeInfo[]): void;
|
|
3521
3543
|
protected exit_contentValueValue(node: NodeInfo, route: NodeInfo[]): void | false;
|
|
3544
|
+
protected enter_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3545
|
+
protected exit_marks(_node: NodeInfo, _route: NodeInfo[]): void | false;
|
|
3522
3546
|
protected handleEnterNode(node: TextNode, route: NodeInfo[]): void | false;
|
|
3523
3547
|
protected handleBetweenNode(node: TextNode, _left: NodeInfo, _right: NodeInfo, _route: NodeInfo[]): void;
|
|
3524
3548
|
protected handleExitNode(node: TextNode, _route: NodeInfo[]): void | false;
|
|
@@ -3585,7 +3609,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3585
3609
|
* @param node the text node
|
|
3586
3610
|
* @param start true if starting (before) the text, false if ending (after) the text
|
|
3587
3611
|
*/
|
|
3588
|
-
protected writeMarks(node: TextNode, stage: StageType): void;
|
|
3612
|
+
protected writeMarks(node: TextNode, stage: StageType): void | false;
|
|
3589
3613
|
protected writeParagraph(node: TextNode): void;
|
|
3590
3614
|
protected writeHardBreak(_node: TextNode): void;
|
|
3591
3615
|
protected writeHeading(node: HeadingTextNode): void;
|
|
@@ -3601,8 +3625,8 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3601
3625
|
protected writeRefMark(mark: RefMark): void;
|
|
3602
3626
|
protected writeXRefMark(mark: XRefMark): void;
|
|
3603
3627
|
protected writeExtRefMark(mark: ExtRefMark): void;
|
|
3604
|
-
protected writeFootnoteMark(
|
|
3605
|
-
protected writeFootnoteStarMark(
|
|
3628
|
+
protected writeFootnoteMark(mark: FootnoteMark): void;
|
|
3629
|
+
protected writeFootnoteStarMark(mark: FootnoteMark): void;
|
|
3606
3630
|
protected writeSymbolMark(mark: SymbolMark): void;
|
|
3607
3631
|
protected writeInlineMarkStartEnd(): void;
|
|
3608
3632
|
protected writePlainTextDivider(): void;
|
|
@@ -4009,6 +4033,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4009
4033
|
isEditable?: boolean;
|
|
4010
4034
|
aiGenerated?: boolean;
|
|
4011
4035
|
machineTranslated?: string;
|
|
4036
|
+
translationOf?: string;
|
|
4012
4037
|
spansPageBreak?: boolean;
|
|
4013
4038
|
searchIndex?: string | string[];
|
|
4014
4039
|
analyticsTag?: string | string[];
|
|
@@ -4185,6 +4210,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4185
4210
|
sourceDocument?: string;
|
|
4186
4211
|
internalPrintPdf?: string;
|
|
4187
4212
|
hasPrintRestriction?: boolean;
|
|
4213
|
+
enforceUpdateOverUserInput?: boolean;
|
|
4188
4214
|
tocResource?: string | string[];
|
|
4189
4215
|
tocContent?: string | string[];
|
|
4190
4216
|
page?: string | string[];
|
|
@@ -4192,6 +4218,7 @@ declare class Builder extends BaseBuilder {
|
|
|
4192
4218
|
platformName?: string;
|
|
4193
4219
|
platformIcon?: Partial<ImageResourceWrapperJson>;
|
|
4194
4220
|
platformLogo?: Partial<ImageResourceWrapperJson>;
|
|
4221
|
+
platformLogoMaxHeight?: number;
|
|
4195
4222
|
platformPrimaryColor?: string;
|
|
4196
4223
|
platformSecondaryColor?: string;
|
|
4197
4224
|
platformBackgroundColor?: string;
|