@gmb/bitmark-parser-generator 5.36.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.
- package/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +613 -71
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +19 -0
- package/dist/browser/esm/index.d.ts +19 -0
- package/dist/browser/esm/index.js +613 -71
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +613 -71
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +613 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +613 -71
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1048,6 +1048,8 @@ declare const ConfigKey: {
|
|
|
1048
1048
|
readonly property_trim: "@trim";
|
|
1049
1049
|
readonly property_unit: "@unit";
|
|
1050
1050
|
readonly property_unitAbbr: "@unitAbbr";
|
|
1051
|
+
readonly property_unitAbbrPlural: "@unitAbbrPlural";
|
|
1052
|
+
readonly property_unitPlural: "@unitPlural";
|
|
1051
1053
|
readonly property_vendorDashboardId: "@vendorDashboardId";
|
|
1052
1054
|
readonly property_vendorSurveyId: "@vendorSurveyId";
|
|
1053
1055
|
readonly property_vendorUrl: "@vendorUrl";
|
|
@@ -2249,7 +2251,9 @@ interface TechnicalTermJson {
|
|
|
2249
2251
|
interface ServingsJson {
|
|
2250
2252
|
servings: number;
|
|
2251
2253
|
unit: string;
|
|
2254
|
+
unitPlural: string;
|
|
2252
2255
|
unitAbbr: string;
|
|
2256
|
+
unitAbbrPlural: string;
|
|
2253
2257
|
decimalPlaces: number;
|
|
2254
2258
|
disableCalculation: boolean;
|
|
2255
2259
|
hint: string;
|
|
@@ -2260,7 +2264,9 @@ interface IngredientJson {
|
|
|
2260
2264
|
ingredient: string;
|
|
2261
2265
|
quantity: number;
|
|
2262
2266
|
unit: string;
|
|
2267
|
+
unitPlural: string;
|
|
2263
2268
|
unitAbbr: string;
|
|
2269
|
+
unitAbbrPlural: string;
|
|
2264
2270
|
decimalPlaces: number;
|
|
2265
2271
|
disableCalculation: boolean;
|
|
2266
2272
|
item: JsonText;
|
|
@@ -3380,6 +3386,8 @@ declare const NodeType: {
|
|
|
3380
3386
|
readonly type: "type";
|
|
3381
3387
|
readonly unit: "unit";
|
|
3382
3388
|
readonly unitAbbr: "unitAbbr";
|
|
3389
|
+
readonly unitAbbrPlural: "unitAbbrPlural";
|
|
3390
|
+
readonly unitPlural: "unitPlural";
|
|
3383
3391
|
readonly url: "url";
|
|
3384
3392
|
readonly validationDate: "validationDate";
|
|
3385
3393
|
readonly validationDateValue: "validationDateValue";
|
|
@@ -6188,6 +6196,17 @@ declare class JsonGenerator extends AstWalkerGenerator<BitmarkAst, void> {
|
|
|
6188
6196
|
protected enter_ratingLevelEnd(node: NodeInfo, route: NodeInfo[]): boolean;
|
|
6189
6197
|
protected enter_sourceBB(node: NodeInfo, route: NodeInfo[]): boolean;
|
|
6190
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;
|
|
6191
6210
|
protected enter_markConfig(_node: NodeInfo, _route: NodeInfo[]): boolean;
|
|
6192
6211
|
protected enter_markConfigValue(node: NodeInfo, route: NodeInfo[]): boolean;
|
|
6193
6212
|
protected enter_item(node: NodeInfo, route: NodeInfo[]): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1048,6 +1048,8 @@ declare const ConfigKey: {
|
|
|
1048
1048
|
readonly property_trim: "@trim";
|
|
1049
1049
|
readonly property_unit: "@unit";
|
|
1050
1050
|
readonly property_unitAbbr: "@unitAbbr";
|
|
1051
|
+
readonly property_unitAbbrPlural: "@unitAbbrPlural";
|
|
1052
|
+
readonly property_unitPlural: "@unitPlural";
|
|
1051
1053
|
readonly property_vendorDashboardId: "@vendorDashboardId";
|
|
1052
1054
|
readonly property_vendorSurveyId: "@vendorSurveyId";
|
|
1053
1055
|
readonly property_vendorUrl: "@vendorUrl";
|
|
@@ -2249,7 +2251,9 @@ interface TechnicalTermJson {
|
|
|
2249
2251
|
interface ServingsJson {
|
|
2250
2252
|
servings: number;
|
|
2251
2253
|
unit: string;
|
|
2254
|
+
unitPlural: string;
|
|
2252
2255
|
unitAbbr: string;
|
|
2256
|
+
unitAbbrPlural: string;
|
|
2253
2257
|
decimalPlaces: number;
|
|
2254
2258
|
disableCalculation: boolean;
|
|
2255
2259
|
hint: string;
|
|
@@ -2260,7 +2264,9 @@ interface IngredientJson {
|
|
|
2260
2264
|
ingredient: string;
|
|
2261
2265
|
quantity: number;
|
|
2262
2266
|
unit: string;
|
|
2267
|
+
unitPlural: string;
|
|
2263
2268
|
unitAbbr: string;
|
|
2269
|
+
unitAbbrPlural: string;
|
|
2264
2270
|
decimalPlaces: number;
|
|
2265
2271
|
disableCalculation: boolean;
|
|
2266
2272
|
item: JsonText;
|
|
@@ -3380,6 +3386,8 @@ declare const NodeType: {
|
|
|
3380
3386
|
readonly type: "type";
|
|
3381
3387
|
readonly unit: "unit";
|
|
3382
3388
|
readonly unitAbbr: "unitAbbr";
|
|
3389
|
+
readonly unitAbbrPlural: "unitAbbrPlural";
|
|
3390
|
+
readonly unitPlural: "unitPlural";
|
|
3383
3391
|
readonly url: "url";
|
|
3384
3392
|
readonly validationDate: "validationDate";
|
|
3385
3393
|
readonly validationDateValue: "validationDateValue";
|
|
@@ -6188,6 +6196,17 @@ declare class JsonGenerator extends AstWalkerGenerator<BitmarkAst, void> {
|
|
|
6188
6196
|
protected enter_ratingLevelEnd(node: NodeInfo, route: NodeInfo[]): boolean;
|
|
6189
6197
|
protected enter_sourceBB(node: NodeInfo, route: NodeInfo[]): boolean;
|
|
6190
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;
|
|
6191
6210
|
protected enter_markConfig(_node: NodeInfo, _route: NodeInfo[]): boolean;
|
|
6192
6211
|
protected enter_markConfigValue(node: NodeInfo, route: NodeInfo[]): boolean;
|
|
6193
6212
|
protected enter_item(node: NodeInfo, route: NodeInfo[]): boolean;
|