@gmb/bitmark-parser-generator 5.19.0 → 5.21.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/index.d.cts CHANGED
@@ -672,6 +672,7 @@ type BitTagConfigKeyTypeType = EnumType<typeof BitTagConfigKeyType>;
672
672
  */
673
673
  declare const ConfigKey: {
674
674
  readonly group_standardAllBits: "group_standardAllBits";
675
+ readonly group_standardItemLead: "group_standardItemLead";
675
676
  readonly group_standardItemLeadInstructionHint: "group_standardItemLeadInstructionHint";
676
677
  readonly group_standardTags: "group_standardTags";
677
678
  readonly group_imageSource: "group_imageSource";
@@ -747,6 +748,7 @@ declare const ConfigKey: {
747
748
  readonly property_bot: "@bot";
748
749
  readonly property_bubbleTag: "@bubbleTag";
749
750
  readonly property_extractorTag: "@extractorTag";
751
+ readonly property_extractorInternal: "@extractorInternal";
750
752
  readonly property_buttonCaption: "@buttonCaption";
751
753
  readonly property_callToActionUrl: "@callToActionUrl";
752
754
  readonly property_caption: "@caption";
@@ -960,6 +962,7 @@ declare const ConfigKey: {
960
962
  readonly property_subject: "@subject";
961
963
  readonly property_subtype: "@subtype";
962
964
  readonly property_tableAutoWidth: "@tableAutoWidth";
965
+ readonly property_tableColWidth: "@tableColWidth";
963
966
  readonly property_tableColumnMinWidth: "@tableColumnMinWidth";
964
967
  readonly property_tableFixedHeader: "@tableFixedHeader";
965
968
  readonly property_tableHeaderWhitespaceNoWrap: "@tableHeaderWhitespaceNoWrap";
@@ -1690,6 +1693,7 @@ interface BitJson {
1690
1693
  reductionTag: string | string[];
1691
1694
  bubbleTag: string | string[];
1692
1695
  extractorTag: string | string[];
1696
+ extractorInternal: string | string[];
1693
1697
  levelCEFRp: string;
1694
1698
  levelCEFR: string;
1695
1699
  levelILR: string;
@@ -2138,6 +2142,7 @@ interface TableCellJson {
2138
2142
  rowspan?: number;
2139
2143
  colspan?: number;
2140
2144
  scope?: 'row' | 'col' | 'rowgroup' | 'colgroup';
2145
+ colwidth?: number;
2141
2146
  }
2142
2147
  interface QuestionJson {
2143
2148
  question: JsonText;
@@ -2303,6 +2308,7 @@ interface Bit {
2303
2308
  reductionTag?: Property;
2304
2309
  bubbleTag?: Property;
2305
2310
  extractorTag?: Property;
2311
+ extractorInternal?: Property;
2306
2312
  levelCEFRp?: Property;
2307
2313
  levelCEFR?: Property;
2308
2314
  levelILR?: Property;
@@ -2379,6 +2385,7 @@ interface Bit {
2379
2385
  tableWhitespaceNoWrap?: Property;
2380
2386
  tableAutoWidth?: Property;
2381
2387
  tableResizableColumns?: Property;
2388
+ tableColWidth?: Property;
2382
2389
  tableColumnMinWidth?: Property;
2383
2390
  tableCellType?: Property;
2384
2391
  tableRowSpan?: Property;
@@ -2792,6 +2799,8 @@ declare const NodeType: {
2792
2799
  readonly extractorExtractionTimestampValue: "extractorExtractionTimestampValue";
2793
2800
  readonly extractorTag: "extractorTag";
2794
2801
  readonly extractorTagValue: "extractorTagValue";
2802
+ readonly extractorInternal: "extractorInternal";
2803
+ readonly extractorInternalValue: "extractorInternalValue";
2795
2804
  readonly extraProperties: "extraProperties";
2796
2805
  readonly feedback: "feedback";
2797
2806
  readonly feedbackEngine: "feedbackEngine";
@@ -3195,6 +3204,8 @@ declare const NodeType: {
3195
3204
  readonly table: "table";
3196
3205
  readonly tableAutoWidth: "tableAutoWidth";
3197
3206
  readonly tableAutoWidthValue: "tableAutoWidthValue";
3207
+ readonly tableColWidth: "tableColWidth";
3208
+ readonly tableColWidthValue: "tableColWidthValue";
3198
3209
  readonly tableColumnMinWidth: "tableColumnMinWidth";
3199
3210
  readonly tableColumnMinWidthValue: "tableColumnMinWidthValue";
3200
3211
  readonly tableFixedHeader: "tableFixedHeader";
@@ -3504,6 +3515,11 @@ declare abstract class AstWalkerGenerator<AstType, R, Context = undefined> imple
3504
3515
  exit(node: NodeInfo, route: NodeInfo[], context: Context): void;
3505
3516
  leaf(node: NodeInfo, route: NodeInfo[], context: Context): void;
3506
3517
  protected getParentNode(route: NodeInfo[], nodesBack?: number): NodeInfo | undefined;
3518
+ protected getSiblingNodes(route: NodeInfo[]): {
3519
+ left?: unknown;
3520
+ right?: unknown;
3521
+ };
3522
+ protected isEmptyParagraph(node: TextNode): boolean;
3507
3523
  protected abstract writeInlineDebug(key: string, state: {
3508
3524
  open?: boolean;
3509
3525
  close?: boolean;
@@ -3567,7 +3583,6 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
3567
3583
  private inParagraph;
3568
3584
  private inHeading;
3569
3585
  private inCodeBlock;
3570
- private exitedCodeBlock;
3571
3586
  private inBulletList;
3572
3587
  private inInline;
3573
3588
  private markDepth;
@@ -3681,7 +3696,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
3681
3696
  * @param start true if starting (before) the text, false if ending (after) the text
3682
3697
  */
3683
3698
  protected writeMarks(node: TextNode, stage: StageType): void | false;
3684
- protected writeParagraph(node: TextNode): void;
3699
+ protected writeParagraph(node: TextNode, route: NodeInfo[]): void;
3685
3700
  protected writeHardBreak(_node: TextNode): void;
3686
3701
  protected writeHeading(node: HeadingTextNode): void;
3687
3702
  protected writeSection(node: SectionTextNode): void;
@@ -3770,7 +3785,6 @@ declare abstract class AbstractTagConfig {
3770
3785
  readonly minCount: number;
3771
3786
  readonly chain?: TagsConfig;
3772
3787
  readonly jsonKey?: string;
3773
- readonly secondaryJsonKey?: string;
3774
3788
  readonly deprecated?: string;
3775
3789
  constructor(params: {
3776
3790
  type: BitTagConfigKeyTypeType;
@@ -3780,7 +3794,6 @@ declare abstract class AbstractTagConfig {
3780
3794
  minCount: number;
3781
3795
  chain: TagsConfig | undefined;
3782
3796
  jsonKey: string | undefined;
3783
- secondaryJsonKey: string | undefined;
3784
3797
  deprecated: string | undefined;
3785
3798
  });
3786
3799
  }
@@ -3797,7 +3810,6 @@ declare class MarkupTagConfig extends AbstractTagConfig {
3797
3810
  maxCount: CountType;
3798
3811
  minCount: number;
3799
3812
  chain: TagsConfig | undefined;
3800
- secondaryJsonKey: string | undefined;
3801
3813
  deprecated: string | undefined;
3802
3814
  });
3803
3815
  toString(options?: ToStringOptions$6): string;
@@ -3831,7 +3843,6 @@ declare class PropertyTagConfig extends AbstractTagConfig {
3831
3843
  minCount: number;
3832
3844
  chain: TagsConfig | undefined;
3833
3845
  jsonKey: string | undefined;
3834
- secondaryJsonKey: string | undefined;
3835
3846
  format: TagFormatType | undefined;
3836
3847
  values: string[] | undefined;
3837
3848
  defaultValue: string | undefined;
@@ -3853,7 +3864,6 @@ declare class ResourceTagConfig extends AbstractTagConfig {
3853
3864
  minCount: number;
3854
3865
  chain: TagsConfig | undefined;
3855
3866
  jsonKey: string | undefined;
3856
- secondaryJsonKey: string | undefined;
3857
3867
  deprecated: string | undefined;
3858
3868
  });
3859
3869
  toString(options?: ToStringOptions$4): string;
@@ -3886,8 +3896,9 @@ interface ToStringOptions$2 {
3886
3896
  declare class CardSideConfig {
3887
3897
  readonly name: string;
3888
3898
  readonly repeat: boolean;
3899
+ readonly jsonKey: string | null | undefined;
3889
3900
  readonly variants: CardVariantConfig[];
3890
- constructor(name: string, repeat: boolean, variants: CardVariantConfig[]);
3901
+ constructor(name: string, repeat: boolean, variants: CardVariantConfig[], jsonKey?: string | null);
3891
3902
  toString(options?: ToStringOptions$2): string;
3892
3903
  }
3893
3904
 
@@ -3921,14 +3932,17 @@ interface ToStringOptions$1 {
3921
3932
  declare class CardSetConfig {
3922
3933
  readonly configKey: CardSetConfigKeyType;
3923
3934
  readonly jsonKey: string | null;
3924
- readonly itemType: 'object' | 'array';
3925
3935
  readonly sections: Record<string, {
3926
3936
  jsonKey: string;
3937
+ isDefault?: boolean;
3938
+ sideJsonKey?: string;
3927
3939
  }> | undefined;
3928
3940
  readonly sides: CardSideConfig[];
3929
3941
  get variants(): CardVariantConfig[][];
3930
- constructor(configKey: CardSetConfigKeyType, jsonKey: string | null, itemType: 'object' | 'array', sections: Record<string, {
3942
+ constructor(configKey: CardSetConfigKeyType, jsonKey: string | null, sections: Record<string, {
3931
3943
  jsonKey: string;
3944
+ isDefault?: boolean;
3945
+ sideJsonKey?: string;
3932
3946
  }> | undefined, sides: CardSideConfig[]);
3933
3947
  toString(options?: ToStringOptions$1): string;
3934
3948
  }
@@ -4172,6 +4186,7 @@ declare class Builder extends BaseBuilder {
4172
4186
  reductionTag?: string | string[];
4173
4187
  bubbleTag?: string | string[];
4174
4188
  extractorTag?: string | string[];
4189
+ extractorInternal?: string | string[];
4175
4190
  levelCEFRp?: string | string[];
4176
4191
  levelCEFR?: string | string[];
4177
4192
  levelILR?: string | string[];
package/dist/index.d.ts CHANGED
@@ -672,6 +672,7 @@ type BitTagConfigKeyTypeType = EnumType<typeof BitTagConfigKeyType>;
672
672
  */
673
673
  declare const ConfigKey: {
674
674
  readonly group_standardAllBits: "group_standardAllBits";
675
+ readonly group_standardItemLead: "group_standardItemLead";
675
676
  readonly group_standardItemLeadInstructionHint: "group_standardItemLeadInstructionHint";
676
677
  readonly group_standardTags: "group_standardTags";
677
678
  readonly group_imageSource: "group_imageSource";
@@ -747,6 +748,7 @@ declare const ConfigKey: {
747
748
  readonly property_bot: "@bot";
748
749
  readonly property_bubbleTag: "@bubbleTag";
749
750
  readonly property_extractorTag: "@extractorTag";
751
+ readonly property_extractorInternal: "@extractorInternal";
750
752
  readonly property_buttonCaption: "@buttonCaption";
751
753
  readonly property_callToActionUrl: "@callToActionUrl";
752
754
  readonly property_caption: "@caption";
@@ -960,6 +962,7 @@ declare const ConfigKey: {
960
962
  readonly property_subject: "@subject";
961
963
  readonly property_subtype: "@subtype";
962
964
  readonly property_tableAutoWidth: "@tableAutoWidth";
965
+ readonly property_tableColWidth: "@tableColWidth";
963
966
  readonly property_tableColumnMinWidth: "@tableColumnMinWidth";
964
967
  readonly property_tableFixedHeader: "@tableFixedHeader";
965
968
  readonly property_tableHeaderWhitespaceNoWrap: "@tableHeaderWhitespaceNoWrap";
@@ -1690,6 +1693,7 @@ interface BitJson {
1690
1693
  reductionTag: string | string[];
1691
1694
  bubbleTag: string | string[];
1692
1695
  extractorTag: string | string[];
1696
+ extractorInternal: string | string[];
1693
1697
  levelCEFRp: string;
1694
1698
  levelCEFR: string;
1695
1699
  levelILR: string;
@@ -2138,6 +2142,7 @@ interface TableCellJson {
2138
2142
  rowspan?: number;
2139
2143
  colspan?: number;
2140
2144
  scope?: 'row' | 'col' | 'rowgroup' | 'colgroup';
2145
+ colwidth?: number;
2141
2146
  }
2142
2147
  interface QuestionJson {
2143
2148
  question: JsonText;
@@ -2303,6 +2308,7 @@ interface Bit {
2303
2308
  reductionTag?: Property;
2304
2309
  bubbleTag?: Property;
2305
2310
  extractorTag?: Property;
2311
+ extractorInternal?: Property;
2306
2312
  levelCEFRp?: Property;
2307
2313
  levelCEFR?: Property;
2308
2314
  levelILR?: Property;
@@ -2379,6 +2385,7 @@ interface Bit {
2379
2385
  tableWhitespaceNoWrap?: Property;
2380
2386
  tableAutoWidth?: Property;
2381
2387
  tableResizableColumns?: Property;
2388
+ tableColWidth?: Property;
2382
2389
  tableColumnMinWidth?: Property;
2383
2390
  tableCellType?: Property;
2384
2391
  tableRowSpan?: Property;
@@ -2792,6 +2799,8 @@ declare const NodeType: {
2792
2799
  readonly extractorExtractionTimestampValue: "extractorExtractionTimestampValue";
2793
2800
  readonly extractorTag: "extractorTag";
2794
2801
  readonly extractorTagValue: "extractorTagValue";
2802
+ readonly extractorInternal: "extractorInternal";
2803
+ readonly extractorInternalValue: "extractorInternalValue";
2795
2804
  readonly extraProperties: "extraProperties";
2796
2805
  readonly feedback: "feedback";
2797
2806
  readonly feedbackEngine: "feedbackEngine";
@@ -3195,6 +3204,8 @@ declare const NodeType: {
3195
3204
  readonly table: "table";
3196
3205
  readonly tableAutoWidth: "tableAutoWidth";
3197
3206
  readonly tableAutoWidthValue: "tableAutoWidthValue";
3207
+ readonly tableColWidth: "tableColWidth";
3208
+ readonly tableColWidthValue: "tableColWidthValue";
3198
3209
  readonly tableColumnMinWidth: "tableColumnMinWidth";
3199
3210
  readonly tableColumnMinWidthValue: "tableColumnMinWidthValue";
3200
3211
  readonly tableFixedHeader: "tableFixedHeader";
@@ -3504,6 +3515,11 @@ declare abstract class AstWalkerGenerator<AstType, R, Context = undefined> imple
3504
3515
  exit(node: NodeInfo, route: NodeInfo[], context: Context): void;
3505
3516
  leaf(node: NodeInfo, route: NodeInfo[], context: Context): void;
3506
3517
  protected getParentNode(route: NodeInfo[], nodesBack?: number): NodeInfo | undefined;
3518
+ protected getSiblingNodes(route: NodeInfo[]): {
3519
+ left?: unknown;
3520
+ right?: unknown;
3521
+ };
3522
+ protected isEmptyParagraph(node: TextNode): boolean;
3507
3523
  protected abstract writeInlineDebug(key: string, state: {
3508
3524
  open?: boolean;
3509
3525
  close?: boolean;
@@ -3567,7 +3583,6 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
3567
3583
  private inParagraph;
3568
3584
  private inHeading;
3569
3585
  private inCodeBlock;
3570
- private exitedCodeBlock;
3571
3586
  private inBulletList;
3572
3587
  private inInline;
3573
3588
  private markDepth;
@@ -3681,7 +3696,7 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
3681
3696
  * @param start true if starting (before) the text, false if ending (after) the text
3682
3697
  */
3683
3698
  protected writeMarks(node: TextNode, stage: StageType): void | false;
3684
- protected writeParagraph(node: TextNode): void;
3699
+ protected writeParagraph(node: TextNode, route: NodeInfo[]): void;
3685
3700
  protected writeHardBreak(_node: TextNode): void;
3686
3701
  protected writeHeading(node: HeadingTextNode): void;
3687
3702
  protected writeSection(node: SectionTextNode): void;
@@ -3770,7 +3785,6 @@ declare abstract class AbstractTagConfig {
3770
3785
  readonly minCount: number;
3771
3786
  readonly chain?: TagsConfig;
3772
3787
  readonly jsonKey?: string;
3773
- readonly secondaryJsonKey?: string;
3774
3788
  readonly deprecated?: string;
3775
3789
  constructor(params: {
3776
3790
  type: BitTagConfigKeyTypeType;
@@ -3780,7 +3794,6 @@ declare abstract class AbstractTagConfig {
3780
3794
  minCount: number;
3781
3795
  chain: TagsConfig | undefined;
3782
3796
  jsonKey: string | undefined;
3783
- secondaryJsonKey: string | undefined;
3784
3797
  deprecated: string | undefined;
3785
3798
  });
3786
3799
  }
@@ -3797,7 +3810,6 @@ declare class MarkupTagConfig extends AbstractTagConfig {
3797
3810
  maxCount: CountType;
3798
3811
  minCount: number;
3799
3812
  chain: TagsConfig | undefined;
3800
- secondaryJsonKey: string | undefined;
3801
3813
  deprecated: string | undefined;
3802
3814
  });
3803
3815
  toString(options?: ToStringOptions$6): string;
@@ -3831,7 +3843,6 @@ declare class PropertyTagConfig extends AbstractTagConfig {
3831
3843
  minCount: number;
3832
3844
  chain: TagsConfig | undefined;
3833
3845
  jsonKey: string | undefined;
3834
- secondaryJsonKey: string | undefined;
3835
3846
  format: TagFormatType | undefined;
3836
3847
  values: string[] | undefined;
3837
3848
  defaultValue: string | undefined;
@@ -3853,7 +3864,6 @@ declare class ResourceTagConfig extends AbstractTagConfig {
3853
3864
  minCount: number;
3854
3865
  chain: TagsConfig | undefined;
3855
3866
  jsonKey: string | undefined;
3856
- secondaryJsonKey: string | undefined;
3857
3867
  deprecated: string | undefined;
3858
3868
  });
3859
3869
  toString(options?: ToStringOptions$4): string;
@@ -3886,8 +3896,9 @@ interface ToStringOptions$2 {
3886
3896
  declare class CardSideConfig {
3887
3897
  readonly name: string;
3888
3898
  readonly repeat: boolean;
3899
+ readonly jsonKey: string | null | undefined;
3889
3900
  readonly variants: CardVariantConfig[];
3890
- constructor(name: string, repeat: boolean, variants: CardVariantConfig[]);
3901
+ constructor(name: string, repeat: boolean, variants: CardVariantConfig[], jsonKey?: string | null);
3891
3902
  toString(options?: ToStringOptions$2): string;
3892
3903
  }
3893
3904
 
@@ -3921,14 +3932,17 @@ interface ToStringOptions$1 {
3921
3932
  declare class CardSetConfig {
3922
3933
  readonly configKey: CardSetConfigKeyType;
3923
3934
  readonly jsonKey: string | null;
3924
- readonly itemType: 'object' | 'array';
3925
3935
  readonly sections: Record<string, {
3926
3936
  jsonKey: string;
3937
+ isDefault?: boolean;
3938
+ sideJsonKey?: string;
3927
3939
  }> | undefined;
3928
3940
  readonly sides: CardSideConfig[];
3929
3941
  get variants(): CardVariantConfig[][];
3930
- constructor(configKey: CardSetConfigKeyType, jsonKey: string | null, itemType: 'object' | 'array', sections: Record<string, {
3942
+ constructor(configKey: CardSetConfigKeyType, jsonKey: string | null, sections: Record<string, {
3931
3943
  jsonKey: string;
3944
+ isDefault?: boolean;
3945
+ sideJsonKey?: string;
3932
3946
  }> | undefined, sides: CardSideConfig[]);
3933
3947
  toString(options?: ToStringOptions$1): string;
3934
3948
  }
@@ -4172,6 +4186,7 @@ declare class Builder extends BaseBuilder {
4172
4186
  reductionTag?: string | string[];
4173
4187
  bubbleTag?: string | string[];
4174
4188
  extractorTag?: string | string[];
4189
+ extractorInternal?: string | string[];
4175
4190
  levelCEFRp?: string | string[];
4176
4191
  levelCEFR?: string | string[];
4177
4192
  levelILR?: string | string[];