react-mutation-mapper 0.8.77 → 0.8.78

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.
@@ -8,6 +8,7 @@ export declare type ProteinImpactTypeBadgeSelectorProps = BadgeSelectorProps & {
8
8
  counts?: {
9
9
  [proteinImpactType: string]: number;
10
10
  };
11
+ excludedProteinTypes?: string[];
11
12
  };
12
13
  export declare function getProteinImpactTypeOptionLabel(option: Option): JSX.Element;
13
14
  export declare function getProteinImpactTypeBadgeLabel(option: BadgeSelectorOption, selectedValues: {
package/dist/index.es.js CHANGED
@@ -2365,8 +2365,10 @@ var ProteinImpactTypeBadgeSelector = /** @class */ (function (_super) {
2365
2365
  backgroundColor: _this.proteinImpactTypeColors[value],
2366
2366
  },
2367
2367
  }); }).filter(function (type) {
2368
- return !(type.value === ProteinImpactType.OTHER &&
2369
- type.badgeContent === 0);
2368
+ var _a;
2369
+ return !(((_a = _this.props.excludedProteinTypes) === null || _a === void 0 ? void 0 : _a.includes(type.value)) ||
2370
+ (type.value === ProteinImpactType.OTHER &&
2371
+ type.badgeContent === 0));
2370
2372
  });
2371
2373
  },
2372
2374
  enumerable: false,
@@ -2377,7 +2379,8 @@ var ProteinImpactTypeBadgeSelector = /** @class */ (function (_super) {
2377
2379
  configurable: true,
2378
2380
  writable: true,
2379
2381
  value: function () {
2380
- return (React.createElement(BadgeSelector, __assign({ options: this.options, getOptionLabel: getProteinImpactTypeOptionLabel, getBadgeLabel: getProteinImpactTypeBadgeLabel, useOnlyFeature: true }, this.props)));
2382
+ return (React.createElement("table", null,
2383
+ React.createElement(BadgeSelector, __assign({ options: this.options, getOptionLabel: getProteinImpactTypeOptionLabel, getBadgeLabel: getProteinImpactTypeBadgeLabel, useOnlyFeature: true }, this.props))));
2381
2384
  }
2382
2385
  });
2383
2386
  Object.defineProperty(ProteinImpactTypeBadgeSelector, "defaultProps", {
@@ -2439,7 +2442,8 @@ var MutationStatusBadgeSelector = /** @class */ (function (_super) {
2439
2442
  configurable: true,
2440
2443
  writable: true,
2441
2444
  value: function () {
2442
- return React.createElement(BadgeSelector, __assign({ options: this.options }, this.props));
2445
+ return (React.createElement("table", null,
2446
+ React.createElement(BadgeSelector, __assign({ options: this.options }, this.props))));
2443
2447
  }
2444
2448
  });
2445
2449
  Object.defineProperty(MutationStatusBadgeSelector, "defaultProps", {