@gmb/bitmark-parser-generator 5.35.0 → 5.37.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.
@@ -836,6 +836,7 @@ declare const ConfigKey: {
836
836
  readonly property_dateEnd: "@dateEnd";
837
837
  readonly property_decimalPlaces: "@decimalPlaces";
838
838
  readonly property_deeplink: "@deeplink";
839
+ readonly property_displayName: "@displayName";
839
840
  readonly property_diffContext: "@diffContext";
840
841
  readonly property_diffOp: "@diffOp";
841
842
  readonly property_diffRef: "@diffRef";
@@ -1047,6 +1048,8 @@ declare const ConfigKey: {
1047
1048
  readonly property_trim: "@trim";
1048
1049
  readonly property_unit: "@unit";
1049
1050
  readonly property_unitAbbr: "@unitAbbr";
1051
+ readonly property_unitAbbrPlural: "@unitAbbrPlural";
1052
+ readonly property_unitPlural: "@unitPlural";
1050
1053
  readonly property_vendorDashboardId: "@vendorDashboardId";
1051
1054
  readonly property_vendorSurveyId: "@vendorSurveyId";
1052
1055
  readonly property_vendorUrl: "@vendorUrl";
@@ -1775,6 +1778,7 @@ interface BitJson {
1775
1778
  backgroundImage: string | string[];
1776
1779
  publisher: string | string[];
1777
1780
  publisherName: string;
1781
+ displayName: string;
1778
1782
  publications: string | string[];
1779
1783
  relatedBook: string | string[];
1780
1784
  userFeedbackTranslationUrl: string;
@@ -2247,7 +2251,9 @@ interface TechnicalTermJson {
2247
2251
  interface ServingsJson {
2248
2252
  servings: number;
2249
2253
  unit: string;
2254
+ unitPlural: string;
2250
2255
  unitAbbr: string;
2256
+ unitAbbrPlural: string;
2251
2257
  decimalPlaces: number;
2252
2258
  disableCalculation: boolean;
2253
2259
  hint: string;
@@ -2258,7 +2264,9 @@ interface IngredientJson {
2258
2264
  ingredient: string;
2259
2265
  quantity: number;
2260
2266
  unit: string;
2267
+ unitPlural: string;
2261
2268
  unitAbbr: string;
2269
+ unitAbbrPlural: string;
2262
2270
  decimalPlaces: number;
2263
2271
  disableCalculation: boolean;
2264
2272
  item: JsonText;
@@ -2374,6 +2382,7 @@ interface Bit {
2374
2382
  language?: Property;
2375
2383
  publisher?: Property;
2376
2384
  publisherName?: Property;
2385
+ displayName?: Property;
2377
2386
  theme?: Property;
2378
2387
  rtl?: Property;
2379
2388
  computerLanguage?: Property;
@@ -2849,6 +2858,8 @@ declare const NodeType: {
2849
2858
  readonly definition: "definition";
2850
2859
  readonly definitions: "definitions";
2851
2860
  readonly definitionsValue: "definitionsValue";
2861
+ readonly displayName: "displayName";
2862
+ readonly displayNameValue: "displayNameValue";
2852
2863
  readonly diffContext: "diffContext";
2853
2864
  readonly diffContextValue: "diffContextValue";
2854
2865
  readonly diffOp: "diffOp";
@@ -3375,6 +3386,8 @@ declare const NodeType: {
3375
3386
  readonly type: "type";
3376
3387
  readonly unit: "unit";
3377
3388
  readonly unitAbbr: "unitAbbr";
3389
+ readonly unitAbbrPlural: "unitAbbrPlural";
3390
+ readonly unitPlural: "unitPlural";
3378
3391
  readonly url: "url";
3379
3392
  readonly validationDate: "validationDate";
3380
3393
  readonly validationDateValue: "validationDateValue";
@@ -4387,6 +4400,7 @@ declare class Builder extends BaseBuilder {
4387
4400
  language?: string | string[];
4388
4401
  publisher?: string | string[];
4389
4402
  publisherName?: string;
4403
+ displayName?: string;
4390
4404
  theme?: string | string[];
4391
4405
  rtl?: boolean;
4392
4406
  computerLanguage?: string;
@@ -6182,6 +6196,17 @@ declare class JsonGenerator extends AstWalkerGenerator<BitmarkAst, void> {
6182
6196
  protected enter_ratingLevelEnd(node: NodeInfo, route: NodeInfo[]): boolean;
6183
6197
  protected enter_sourceBB(node: NodeInfo, route: NodeInfo[]): boolean;
6184
6198
  protected enter_productId(node: NodeInfo, route: NodeInfo[]): boolean;
6199
+ /**
6200
+ * PLAN-016: `isCollapsible` is emitted only when true. `false` is the implied
6201
+ * default for every bit, so it is never written to the JSON — an absent key
6202
+ * means the bit's configured default (`true` for the deprecated
6203
+ * `*-collapsible` bit types, `false` everywhere else).
6204
+ *
6205
+ * Defining these handlers suppresses the generic property handlers that
6206
+ * `generatePropertyHandlers()` would otherwise install for this tag.
6207
+ */
6208
+ protected leaf_isCollapsible(node: NodeInfo, route: NodeInfo[]): boolean;
6209
+ protected enter_isCollapsible(node: NodeInfo, route: NodeInfo[]): boolean;
6185
6210
  protected enter_markConfig(_node: NodeInfo, _route: NodeInfo[]): boolean;
6186
6211
  protected enter_markConfigValue(node: NodeInfo, route: NodeInfo[]): boolean;
6187
6212
  protected enter_item(node: NodeInfo, route: NodeInfo[]): boolean;
@@ -836,6 +836,7 @@ declare const ConfigKey: {
836
836
  readonly property_dateEnd: "@dateEnd";
837
837
  readonly property_decimalPlaces: "@decimalPlaces";
838
838
  readonly property_deeplink: "@deeplink";
839
+ readonly property_displayName: "@displayName";
839
840
  readonly property_diffContext: "@diffContext";
840
841
  readonly property_diffOp: "@diffOp";
841
842
  readonly property_diffRef: "@diffRef";
@@ -1047,6 +1048,8 @@ declare const ConfigKey: {
1047
1048
  readonly property_trim: "@trim";
1048
1049
  readonly property_unit: "@unit";
1049
1050
  readonly property_unitAbbr: "@unitAbbr";
1051
+ readonly property_unitAbbrPlural: "@unitAbbrPlural";
1052
+ readonly property_unitPlural: "@unitPlural";
1050
1053
  readonly property_vendorDashboardId: "@vendorDashboardId";
1051
1054
  readonly property_vendorSurveyId: "@vendorSurveyId";
1052
1055
  readonly property_vendorUrl: "@vendorUrl";
@@ -1775,6 +1778,7 @@ interface BitJson {
1775
1778
  backgroundImage: string | string[];
1776
1779
  publisher: string | string[];
1777
1780
  publisherName: string;
1781
+ displayName: string;
1778
1782
  publications: string | string[];
1779
1783
  relatedBook: string | string[];
1780
1784
  userFeedbackTranslationUrl: string;
@@ -2247,7 +2251,9 @@ interface TechnicalTermJson {
2247
2251
  interface ServingsJson {
2248
2252
  servings: number;
2249
2253
  unit: string;
2254
+ unitPlural: string;
2250
2255
  unitAbbr: string;
2256
+ unitAbbrPlural: string;
2251
2257
  decimalPlaces: number;
2252
2258
  disableCalculation: boolean;
2253
2259
  hint: string;
@@ -2258,7 +2264,9 @@ interface IngredientJson {
2258
2264
  ingredient: string;
2259
2265
  quantity: number;
2260
2266
  unit: string;
2267
+ unitPlural: string;
2261
2268
  unitAbbr: string;
2269
+ unitAbbrPlural: string;
2262
2270
  decimalPlaces: number;
2263
2271
  disableCalculation: boolean;
2264
2272
  item: JsonText;
@@ -2374,6 +2382,7 @@ interface Bit {
2374
2382
  language?: Property;
2375
2383
  publisher?: Property;
2376
2384
  publisherName?: Property;
2385
+ displayName?: Property;
2377
2386
  theme?: Property;
2378
2387
  rtl?: Property;
2379
2388
  computerLanguage?: Property;
@@ -2849,6 +2858,8 @@ declare const NodeType: {
2849
2858
  readonly definition: "definition";
2850
2859
  readonly definitions: "definitions";
2851
2860
  readonly definitionsValue: "definitionsValue";
2861
+ readonly displayName: "displayName";
2862
+ readonly displayNameValue: "displayNameValue";
2852
2863
  readonly diffContext: "diffContext";
2853
2864
  readonly diffContextValue: "diffContextValue";
2854
2865
  readonly diffOp: "diffOp";
@@ -3375,6 +3386,8 @@ declare const NodeType: {
3375
3386
  readonly type: "type";
3376
3387
  readonly unit: "unit";
3377
3388
  readonly unitAbbr: "unitAbbr";
3389
+ readonly unitAbbrPlural: "unitAbbrPlural";
3390
+ readonly unitPlural: "unitPlural";
3378
3391
  readonly url: "url";
3379
3392
  readonly validationDate: "validationDate";
3380
3393
  readonly validationDateValue: "validationDateValue";
@@ -4387,6 +4400,7 @@ declare class Builder extends BaseBuilder {
4387
4400
  language?: string | string[];
4388
4401
  publisher?: string | string[];
4389
4402
  publisherName?: string;
4403
+ displayName?: string;
4390
4404
  theme?: string | string[];
4391
4405
  rtl?: boolean;
4392
4406
  computerLanguage?: string;
@@ -6182,6 +6196,17 @@ declare class JsonGenerator extends AstWalkerGenerator<BitmarkAst, void> {
6182
6196
  protected enter_ratingLevelEnd(node: NodeInfo, route: NodeInfo[]): boolean;
6183
6197
  protected enter_sourceBB(node: NodeInfo, route: NodeInfo[]): boolean;
6184
6198
  protected enter_productId(node: NodeInfo, route: NodeInfo[]): boolean;
6199
+ /**
6200
+ * PLAN-016: `isCollapsible` is emitted only when true. `false` is the implied
6201
+ * default for every bit, so it is never written to the JSON — an absent key
6202
+ * means the bit's configured default (`true` for the deprecated
6203
+ * `*-collapsible` bit types, `false` everywhere else).
6204
+ *
6205
+ * Defining these handlers suppresses the generic property handlers that
6206
+ * `generatePropertyHandlers()` would otherwise install for this tag.
6207
+ */
6208
+ protected leaf_isCollapsible(node: NodeInfo, route: NodeInfo[]): boolean;
6209
+ protected enter_isCollapsible(node: NodeInfo, route: NodeInfo[]): boolean;
6185
6210
  protected enter_markConfig(_node: NodeInfo, _route: NodeInfo[]): boolean;
6186
6211
  protected enter_markConfigValue(node: NodeInfo, route: NodeInfo[]): boolean;
6187
6212
  protected enter_item(node: NodeInfo, route: NodeInfo[]): boolean;