@gmb/bitmark-parser-generator 5.9.0 → 5.10.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.
@@ -718,7 +718,6 @@ declare const ConfigKey: {
718
718
  readonly property_aiGenerated: "@aiGenerated";
719
719
  readonly property_allowedBit: "@allowedBit";
720
720
  readonly property_allowPrint: "@allowPrint";
721
- readonly property_allowPrintEnforceSpaceConfiguration: "@allowPrintEnforceSpaceConfiguration";
722
721
  readonly property_allowSubtitles: "@allowSubtitles";
723
722
  readonly property_alt: "@alt";
724
723
  readonly property_altLangTag: "@altLangTag";
@@ -1806,8 +1805,7 @@ interface BitJson {
1806
1805
  maxCreatedBits: number;
1807
1806
  maxDisplayLevel: number;
1808
1807
  maxTocChapterLevel: number;
1809
- allowPrint: boolean;
1810
- allowPrintEnforceSpaceConfiguration: boolean;
1808
+ allowPrint: string;
1811
1809
  printParentChapterLevel: number;
1812
1810
  sourceDocument: string;
1813
1811
  internalPrintPdf: string;
@@ -2436,7 +2434,6 @@ interface Bit {
2436
2434
  tocContent?: Property;
2437
2435
  page?: Property;
2438
2436
  allowPrint?: Property;
2439
- allowPrintEnforceSpaceConfiguration?: Property;
2440
2437
  allowPrintValue?: Property;
2441
2438
  printParentChapterLevel?: Property;
2442
2439
  platformBrandTarget?: Property;
@@ -2842,6 +2839,8 @@ declare const NodeType: {
2842
2839
  readonly indexValue: "indexValue";
2843
2840
  readonly ingredients: "ingredients";
2844
2841
  readonly ingredientsValue: "ingredientsValue";
2842
+ readonly ingredient: "ingredient";
2843
+ readonly ingredientValue: "ingredientValue";
2845
2844
  readonly instruction: "instruction";
2846
2845
  readonly instructionValue: "instructionValue";
2847
2846
  readonly internalComment: "internalComment";
@@ -3152,6 +3151,7 @@ declare const NodeType: {
3152
3151
  readonly srcAltValue: "srcAltValue";
3153
3152
  readonly start: "start";
3154
3153
  readonly statement: "statement";
3154
+ readonly statementValue: "statementValue";
3155
3155
  readonly statements: "statements";
3156
3156
  readonly statementsValue: "statementsValue";
3157
3157
  readonly statementText: "statementText";
@@ -3781,6 +3781,7 @@ declare const TagFormat: {
3781
3781
  readonly number: "number";
3782
3782
  readonly boolean: "boolean";
3783
3783
  readonly invertedBoolean: "invertedBoolean";
3784
+ readonly enumeration: "enumeration";
3784
3785
  };
3785
3786
  type TagFormatType = EnumType<typeof TagFormat>;
3786
3787
 
@@ -3792,6 +3793,7 @@ declare class PropertyTagConfig extends AbstractTagConfig {
3792
3793
  readonly type: BitTagConfigKeyTypeType;
3793
3794
  readonly array?: boolean;
3794
3795
  readonly format?: TagFormatType;
3796
+ readonly values?: string[];
3795
3797
  readonly defaultValue?: string;
3796
3798
  constructor(params: {
3797
3799
  configKey: ConfigKeyType;
@@ -3801,6 +3803,7 @@ declare class PropertyTagConfig extends AbstractTagConfig {
3801
3803
  chain: TagsConfig | undefined;
3802
3804
  jsonKey: string | undefined;
3803
3805
  format: TagFormatType | undefined;
3806
+ values: string[] | undefined;
3804
3807
  defaultValue: string | undefined;
3805
3808
  deprecated: string | undefined;
3806
3809
  });
@@ -4258,8 +4261,7 @@ declare class Builder extends BaseBuilder {
4258
4261
  maxTocChapterLevel?: number;
4259
4262
  sourceDocument?: string;
4260
4263
  internalPrintPdf?: string;
4261
- allowPrint?: boolean;
4262
- allowPrintEnforceSpaceConfiguration?: boolean;
4264
+ allowPrint?: string;
4263
4265
  hasPrintRestriction?: boolean;
4264
4266
  enforceUpdateOverUserInput?: boolean;
4265
4267
  extractorExtractionTimestamp?: string[];
@@ -5448,8 +5450,8 @@ declare class BitmarkGenerator extends AstWalkerGenerator<BitmarkAst, void> {
5448
5450
  protected exit_bitsValue(_node: NodeInfo, _route: NodeInfo[]): void;
5449
5451
  protected enter_internalComment(node: NodeInfo, route: NodeInfo[]): boolean;
5450
5452
  protected enter_groupTag(node: NodeInfo, route: NodeInfo[]): boolean;
5451
- protected enter_labelTrue(node: NodeInfo, route: NodeInfo[]): boolean;
5452
- protected enter_labelFalse(_node: NodeInfo, _route: NodeInfo[]): boolean;
5453
+ protected leaf_labelTrue(node: NodeInfo, route: NodeInfo[]): boolean;
5454
+ protected leaf_labelFalse(_node: NodeInfo, _route: NodeInfo[]): boolean;
5453
5455
  protected enter_imageSource(node: NodeInfo, route: NodeInfo[]): boolean;
5454
5456
  protected enter_technicalTerm(node: NodeInfo, route: NodeInfo[]): boolean;
5455
5457
  protected enter_servings(node: NodeInfo, route: NodeInfo[]): boolean;
@@ -5710,6 +5712,7 @@ declare class BitmarkGenerator extends AstWalkerGenerator<BitmarkAst, void> {
5710
5712
  ignoreFalse?: boolean;
5711
5713
  ignoreTrue?: boolean;
5712
5714
  writeEmpty?: boolean;
5715
+ forceChain?: boolean;
5713
5716
  }): void;
5714
5717
  protected writeInlineDebug(key: string, state: {
5715
5718
  open?: boolean;
@@ -6059,6 +6062,7 @@ declare class JsonGenerator extends AstWalkerGenerator<BitmarkAst, void> {
6059
6062
  * @returns
6060
6063
  */
6061
6064
  protected cleanBitJson(bitJson: Partial<BitJson>): Partial<BitJson>;
6065
+ protected tableIsEmpty(table: TableJson | TableExtendedJson | undefined): boolean;
6062
6066
  /**
6063
6067
  * Convert any bitmark texts to strings.
6064
6068
  */
@@ -718,7 +718,6 @@ declare const ConfigKey: {
718
718
  readonly property_aiGenerated: "@aiGenerated";
719
719
  readonly property_allowedBit: "@allowedBit";
720
720
  readonly property_allowPrint: "@allowPrint";
721
- readonly property_allowPrintEnforceSpaceConfiguration: "@allowPrintEnforceSpaceConfiguration";
722
721
  readonly property_allowSubtitles: "@allowSubtitles";
723
722
  readonly property_alt: "@alt";
724
723
  readonly property_altLangTag: "@altLangTag";
@@ -1806,8 +1805,7 @@ interface BitJson {
1806
1805
  maxCreatedBits: number;
1807
1806
  maxDisplayLevel: number;
1808
1807
  maxTocChapterLevel: number;
1809
- allowPrint: boolean;
1810
- allowPrintEnforceSpaceConfiguration: boolean;
1808
+ allowPrint: string;
1811
1809
  printParentChapterLevel: number;
1812
1810
  sourceDocument: string;
1813
1811
  internalPrintPdf: string;
@@ -2436,7 +2434,6 @@ interface Bit {
2436
2434
  tocContent?: Property;
2437
2435
  page?: Property;
2438
2436
  allowPrint?: Property;
2439
- allowPrintEnforceSpaceConfiguration?: Property;
2440
2437
  allowPrintValue?: Property;
2441
2438
  printParentChapterLevel?: Property;
2442
2439
  platformBrandTarget?: Property;
@@ -2842,6 +2839,8 @@ declare const NodeType: {
2842
2839
  readonly indexValue: "indexValue";
2843
2840
  readonly ingredients: "ingredients";
2844
2841
  readonly ingredientsValue: "ingredientsValue";
2842
+ readonly ingredient: "ingredient";
2843
+ readonly ingredientValue: "ingredientValue";
2845
2844
  readonly instruction: "instruction";
2846
2845
  readonly instructionValue: "instructionValue";
2847
2846
  readonly internalComment: "internalComment";
@@ -3152,6 +3151,7 @@ declare const NodeType: {
3152
3151
  readonly srcAltValue: "srcAltValue";
3153
3152
  readonly start: "start";
3154
3153
  readonly statement: "statement";
3154
+ readonly statementValue: "statementValue";
3155
3155
  readonly statements: "statements";
3156
3156
  readonly statementsValue: "statementsValue";
3157
3157
  readonly statementText: "statementText";
@@ -3781,6 +3781,7 @@ declare const TagFormat: {
3781
3781
  readonly number: "number";
3782
3782
  readonly boolean: "boolean";
3783
3783
  readonly invertedBoolean: "invertedBoolean";
3784
+ readonly enumeration: "enumeration";
3784
3785
  };
3785
3786
  type TagFormatType = EnumType<typeof TagFormat>;
3786
3787
 
@@ -3792,6 +3793,7 @@ declare class PropertyTagConfig extends AbstractTagConfig {
3792
3793
  readonly type: BitTagConfigKeyTypeType;
3793
3794
  readonly array?: boolean;
3794
3795
  readonly format?: TagFormatType;
3796
+ readonly values?: string[];
3795
3797
  readonly defaultValue?: string;
3796
3798
  constructor(params: {
3797
3799
  configKey: ConfigKeyType;
@@ -3801,6 +3803,7 @@ declare class PropertyTagConfig extends AbstractTagConfig {
3801
3803
  chain: TagsConfig | undefined;
3802
3804
  jsonKey: string | undefined;
3803
3805
  format: TagFormatType | undefined;
3806
+ values: string[] | undefined;
3804
3807
  defaultValue: string | undefined;
3805
3808
  deprecated: string | undefined;
3806
3809
  });
@@ -4258,8 +4261,7 @@ declare class Builder extends BaseBuilder {
4258
4261
  maxTocChapterLevel?: number;
4259
4262
  sourceDocument?: string;
4260
4263
  internalPrintPdf?: string;
4261
- allowPrint?: boolean;
4262
- allowPrintEnforceSpaceConfiguration?: boolean;
4264
+ allowPrint?: string;
4263
4265
  hasPrintRestriction?: boolean;
4264
4266
  enforceUpdateOverUserInput?: boolean;
4265
4267
  extractorExtractionTimestamp?: string[];
@@ -5448,8 +5450,8 @@ declare class BitmarkGenerator extends AstWalkerGenerator<BitmarkAst, void> {
5448
5450
  protected exit_bitsValue(_node: NodeInfo, _route: NodeInfo[]): void;
5449
5451
  protected enter_internalComment(node: NodeInfo, route: NodeInfo[]): boolean;
5450
5452
  protected enter_groupTag(node: NodeInfo, route: NodeInfo[]): boolean;
5451
- protected enter_labelTrue(node: NodeInfo, route: NodeInfo[]): boolean;
5452
- protected enter_labelFalse(_node: NodeInfo, _route: NodeInfo[]): boolean;
5453
+ protected leaf_labelTrue(node: NodeInfo, route: NodeInfo[]): boolean;
5454
+ protected leaf_labelFalse(_node: NodeInfo, _route: NodeInfo[]): boolean;
5453
5455
  protected enter_imageSource(node: NodeInfo, route: NodeInfo[]): boolean;
5454
5456
  protected enter_technicalTerm(node: NodeInfo, route: NodeInfo[]): boolean;
5455
5457
  protected enter_servings(node: NodeInfo, route: NodeInfo[]): boolean;
@@ -5710,6 +5712,7 @@ declare class BitmarkGenerator extends AstWalkerGenerator<BitmarkAst, void> {
5710
5712
  ignoreFalse?: boolean;
5711
5713
  ignoreTrue?: boolean;
5712
5714
  writeEmpty?: boolean;
5715
+ forceChain?: boolean;
5713
5716
  }): void;
5714
5717
  protected writeInlineDebug(key: string, state: {
5715
5718
  open?: boolean;
@@ -6059,6 +6062,7 @@ declare class JsonGenerator extends AstWalkerGenerator<BitmarkAst, void> {
6059
6062
  * @returns
6060
6063
  */
6061
6064
  protected cleanBitJson(bitJson: Partial<BitJson>): Partial<BitJson>;
6065
+ protected tableIsEmpty(table: TableJson | TableExtendedJson | undefined): boolean;
6062
6066
  /**
6063
6067
  * Convert any bitmark texts to strings.
6064
6068
  */