react-mutation-mapper 0.8.62 → 0.8.64

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.
@@ -25,7 +25,7 @@ export declare type LollipopMutationPlotProps<T extends Mutation> = {
25
25
  bottomYAxisDefaultMax?: number;
26
26
  bottomYAxisDefaultMin?: number;
27
27
  yAxisLabelPadding?: number;
28
- lollipopTooltipCountInfo?: (count: number, mutations?: Partial<T>[], axisMode?: AxisScale) => JSX.Element;
28
+ lollipopTooltipCountInfo?: (count: number, mutations?: Partial<T>[], axisMode?: AxisScale, group?: string) => JSX.Element;
29
29
  yAxisLabelFormatter?: (symbol?: string, groupName?: string) => string;
30
30
  axisMode?: AxisScale;
31
31
  customControls?: JSX.Element;
package/dist/index.es.js CHANGED
@@ -7854,10 +7854,10 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
7854
7854
  enumerable: false,
7855
7855
  configurable: true,
7856
7856
  writable: true,
7857
- value: function (mutationsAtPosition, countsByPosition) {
7857
+ value: function (mutationsAtPosition, countsByPosition, group) {
7858
7858
  var codon = mutationsAtPosition[0].proteinPosStart;
7859
7859
  var count = countsByPosition[codon];
7860
- var countInfo = this.props.lollipopTooltipCountInfo ? (this.props.lollipopTooltipCountInfo(count, mutationsAtPosition, this.props.axisMode)) : (React.createElement("strong", null,
7860
+ var countInfo = this.props.lollipopTooltipCountInfo ? (this.props.lollipopTooltipCountInfo(count, mutationsAtPosition, this.props.axisMode, group)) : (React.createElement("strong", null,
7861
7861
  count,
7862
7862
  " mutation", "" + (count !== 1 ? 's' : '')));
7863
7863
  var label = lollipopLabelText(mutationsAtPosition);
@@ -7955,7 +7955,7 @@ var LollipopMutationPlot = /** @class */ (function (_super) {
7955
7955
  group: group,
7956
7956
  placement: placement,
7957
7957
  count: mutationCount,
7958
- tooltip: _this.lollipopTooltip(mutations, countsByPosition),
7958
+ tooltip: _this.lollipopTooltip(mutations, countsByPosition, group),
7959
7959
  color: _this.props.getLollipopColor
7960
7960
  ? _this.props.getLollipopColor(mutations)
7961
7961
  : getColorForProteinImpactType(mutations, DEFAULT_PROTEIN_IMPACT_TYPE_COLORS, _this.props.getMutationCount, _this.props.isPutativeDriver),
@@ -9698,6 +9698,9 @@ var DefaultMutationMapperStore = /** @class */ (function () {
9698
9698
  }
9699
9699
  });
9700
9700
  }); },
9701
+ onError: function () {
9702
+ // allow client level handler to work
9703
+ },
9701
9704
  }, undefined)
9702
9705
  });
9703
9706
  Object.defineProperty(this, "canonicalTranscript", {
@@ -10078,7 +10081,7 @@ var DefaultMutationMapperStore = /** @class */ (function () {
10078
10081
  await: function () { return [_this.oncoKbCancerGenes]; },
10079
10082
  invoke: function () {
10080
10083
  return Promise.resolve(___default.reduce(_this.oncoKbCancerGenes.result, function (map, next) {
10081
- if (next.oncokbAnnotated) {
10084
+ if (next && next.oncokbAnnotated) {
10082
10085
  map[next.entrezGeneId] = true;
10083
10086
  }
10084
10087
  return map;