victory-voronoi-container 36.6.0 → 36.6.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # victory-voronoi-container
2
2
 
3
+ ## 36.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Do not generate \*.js.map sourcemaps (fixes [#2346](https://github.com/FormidableLabs/victory/issues/2346)) ([#2432](https://github.com/FormidableLabs/victory/pull/2432))
8
+
9
+ - Updated dependencies [[`4bfc65df5`](https://github.com/FormidableLabs/victory/commit/4bfc65df5a10aa6a10084882ed5c6d0d894dec6f)]:
10
+ - victory-core@36.6.3
11
+ - victory-tooltip@36.6.3
12
+
13
+ ## 36.6.2
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies []:
18
+ - victory-core@36.6.2
19
+ - victory-tooltip@36.6.2
20
+
21
+ ## 36.6.1
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [[`d1f281104`](https://github.com/FormidableLabs/victory/commit/d1f281104c7598c43e220dafd57546ab03daeeb5)]:
26
+ - victory-core@36.6.1
27
+ - victory-tooltip@36.6.1
28
+
3
29
  ## 36.6.0
4
30
 
5
31
  ### Patch Changes
@@ -8114,7 +8114,6 @@ VictoryContainer.defaultProps = {
8114
8114
  role: "img"
8115
8115
  };
8116
8116
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
8117
- //# sourceMappingURL=victory-container.js.map
8118
8117
 
8119
8118
  /***/ }),
8120
8119
 
@@ -8756,7 +8755,6 @@ VictoryLabel.defaultProps = {
8756
8755
  // Magic number from d3.
8757
8756
  lineHeight: 1
8758
8757
  };
8759
- //# sourceMappingURL=victory-label.js.map
8760
8758
 
8761
8759
  /***/ }),
8762
8760
 
@@ -8781,7 +8779,6 @@ __webpack_require__.r(__webpack_exports__);
8781
8779
  */
8782
8780
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
8783
8781
  PortalContext.displayName = "PortalContext";
8784
- //# sourceMappingURL=portal-context.js.map
8785
8782
 
8786
8783
  /***/ }),
8787
8784
 
@@ -8893,7 +8890,6 @@ Portal.propTypes = {
8893
8890
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
8894
8891
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
8895
8892
  };
8896
- //# sourceMappingURL=portal.js.map
8897
8893
 
8898
8894
  /***/ }),
8899
8895
 
@@ -9037,7 +9033,6 @@ VictoryPortal.defaultProps = {
9037
9033
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
9038
9034
  };
9039
9035
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
9040
- //# sourceMappingURL=victory-portal.js.map
9041
9036
 
9042
9037
  /***/ }),
9043
9038
 
@@ -9074,7 +9069,6 @@ var Path = function (props) {
9074
9069
  // @ts-expect-error FIXME: "id cannot be a number"
9075
9070
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
9076
9071
  };
9077
- //# sourceMappingURL=path.js.map
9078
9072
 
9079
9073
  /***/ }),
9080
9074
 
@@ -9117,7 +9111,6 @@ var Rect = function (props) {
9117
9111
  vectorEffect: "non-scaling-stroke"
9118
9112
  }, rest));
9119
9113
  };
9120
- //# sourceMappingURL=rect.js.map
9121
9114
 
9122
9115
  /***/ }),
9123
9116
 
@@ -9161,7 +9154,6 @@ Text.propTypes = {
9161
9154
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
9162
9155
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
9163
9156
  };
9164
- //# sourceMappingURL=text.js.map
9165
9157
 
9166
9158
  /***/ }),
9167
9159
 
@@ -9186,7 +9178,6 @@ var TSpan = function (props) {
9186
9178
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
9187
9179
  );
9188
9180
  };
9189
- //# sourceMappingURL=tspan.js.map
9190
9181
 
9191
9182
  /***/ }),
9192
9183
 
@@ -9462,7 +9453,6 @@ var grayscale = {
9462
9453
  }
9463
9454
  }, baseProps)
9464
9455
  };
9465
- //# sourceMappingURL=grayscale.js.map
9466
9456
 
9467
9457
  /***/ }),
9468
9458
 
@@ -9765,7 +9755,6 @@ var material = {
9765
9755
  }
9766
9756
  }, baseProps)
9767
9757
  };
9768
- //# sourceMappingURL=material.js.map
9769
9758
 
9770
9759
  /***/ }),
9771
9760
 
@@ -9789,7 +9778,6 @@ var VictoryTheme = {
9789
9778
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
9790
9779
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
9791
9780
  };
9792
- //# sourceMappingURL=victory-theme.js.map
9793
9781
 
9794
9782
  /***/ }),
9795
9783
 
@@ -9873,7 +9861,6 @@ function getMinValue(arr) {
9873
9861
  return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
9874
9862
  : Math.min.apply(Math, _toConsumableArray(array));
9875
9863
  }
9876
- //# sourceMappingURL=collection.js.map
9877
9864
 
9878
9865
  /***/ }),
9879
9866
 
@@ -10023,7 +10010,6 @@ var CommonProps = {
10023
10010
  baseProps: baseProps,
10024
10011
  primitiveProps: primitiveProps
10025
10012
  };
10026
- //# sourceMappingURL=common-props.js.map
10027
10013
 
10028
10014
  /***/ }),
10029
10015
 
@@ -10537,7 +10523,6 @@ function isDataComponent(component) {
10537
10523
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
10538
10524
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
10539
10525
  }
10540
- //# sourceMappingURL=data.js.map
10541
10526
 
10542
10527
  /***/ }),
10543
10528
 
@@ -10934,7 +10919,6 @@ function isHorizontal(props) {
10934
10919
 
10935
10920
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
10936
10921
  }
10937
- //# sourceMappingURL=helpers.js.map
10938
10922
 
10939
10923
  /***/ }),
10940
10924
 
@@ -10987,7 +10971,6 @@ function shallowToJS(x, whitelist) {
10987
10971
  return result;
10988
10972
  }, isList(x) ? [] : {}) : x;
10989
10973
  }
10990
- //# sourceMappingURL=immutable.js.map
10991
10974
 
10992
10975
  /***/ }),
10993
10976
 
@@ -11245,7 +11228,6 @@ function getProps(props, index) {
11245
11228
  var tooltipTheme = theme && theme.tooltip || {};
11246
11229
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
11247
11230
  }
11248
- //# sourceMappingURL=label-helpers.js.map
11249
11231
 
11250
11232
  /***/ }),
11251
11233
 
@@ -11271,7 +11253,6 @@ function warn(message) {
11271
11253
  }
11272
11254
  }
11273
11255
  }
11274
- //# sourceMappingURL=log.js.map
11275
11256
 
11276
11257
  /***/ }),
11277
11258
 
@@ -11544,7 +11525,6 @@ var regExp = makeChainable(function (props, propName, componentName) {
11544
11525
 
11545
11526
  return null;
11546
11527
  });
11547
- //# sourceMappingURL=prop-types.js.map
11548
11528
 
11549
11529
  /***/ }),
11550
11530
 
@@ -11716,7 +11696,6 @@ function getType(scale) {
11716
11696
  })[0];
11717
11697
  return scaleType ? scaleType.name : undefined;
11718
11698
  }
11719
- //# sourceMappingURL=scale.js.map
11720
11699
 
11721
11700
  /***/ }),
11722
11701
 
@@ -11735,7 +11714,7 @@ __webpack_require__.r(__webpack_exports__);
11735
11714
  /* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
11736
11715
  /* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
11737
11716
  /* harmony export */ });
11738
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "../../victory-core/es/victory-util/collection.js");
11717
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
11739
11718
 
11740
11719
 
11741
11720
  // Private Functions
@@ -11842,7 +11821,7 @@ function getBounds(props) {
11842
11821
  var point2 = getDataCoordinates(props, scale, x2, y2);
11843
11822
 
11844
11823
  var makeBound = function (a, b) {
11845
- return [_index__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _index__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
11824
+ return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
11846
11825
  };
11847
11826
 
11848
11827
  return {
@@ -11850,7 +11829,6 @@ function getBounds(props) {
11850
11829
  y: makeBound(point1.y, point2.y)
11851
11830
  };
11852
11831
  }
11853
- //# sourceMappingURL=selection.js.map
11854
11832
 
11855
11833
  /***/ }),
11856
11834
 
@@ -11922,7 +11900,6 @@ function getColorScale(name) {
11922
11900
  };
11923
11901
  return name ? scales[name] : scales.grayscale;
11924
11902
  }
11925
- //# sourceMappingURL=style.js.map
11926
11903
 
11927
11904
  /***/ }),
11928
11905
 
@@ -12230,7 +12207,6 @@ var _approximateTextSizeInternal = {
12230
12207
  var approximateTextSize = function (text, style) {
12231
12208
  return _approximateTextSizeInternal.impl(text, style);
12232
12209
  };
12233
- //# sourceMappingURL=textsize.js.map
12234
12210
 
12235
12211
  /***/ }),
12236
12212
 
@@ -12261,7 +12237,6 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
12261
12237
  });
12262
12238
  TimerContext.displayName = "TimerContext";
12263
12239
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
12264
- //# sourceMappingURL=timer-context.js.map
12265
12240
 
12266
12241
  /***/ }),
12267
12242
 
@@ -12364,7 +12339,6 @@ var Timer = /*#__PURE__*/function () {
12364
12339
  }();
12365
12340
 
12366
12341
 
12367
- //# sourceMappingURL=timer.js.map
12368
12342
 
12369
12343
  /***/ }),
12370
12344
 
@@ -12411,7 +12385,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12411
12385
  var USER_PROPS_SAFELIST = {
12412
12386
  startsWith: ["data-", "aria-"],
12413
12387
  exactMatch: []
12414
- };
12388
+ }; // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
12389
+
12390
+ // `data-${string}` | `aria-${string}`;
12415
12391
 
12416
12392
  /**
12417
12393
  * doesPropStartWith: Function that takes a prop's key and runs it against all
@@ -12505,7 +12481,6 @@ var getSafeUserProps = function (props) {
12505
12481
  var withSafeUserProps = function (component, props) {
12506
12482
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
12507
12483
  };
12508
- //# sourceMappingURL=user-props.js.map
12509
12484
 
12510
12485
  /***/ }),
12511
12486
 
@@ -12647,7 +12622,6 @@ Flyout.defaultProps = {
12647
12622
  shapeRendering: "auto"
12648
12623
  };
12649
12624
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flyout);
12650
- //# sourceMappingURL=flyout.js.map
12651
12625
 
12652
12626
  /***/ }),
12653
12627
 
@@ -13332,7 +13306,6 @@ VictoryTooltip.defaultEvents = function (props) {
13332
13306
  };
13333
13307
 
13334
13308
 
13335
- //# sourceMappingURL=victory-tooltip.js.map
13336
13309
 
13337
13310
  /***/ }),
13338
13311
 
package/es/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export { voronoiContainerMixin, default as VictoryVoronoiContainer } from "./victory-voronoi-container";
2
- export { default as VoronoiHelpers } from "./voronoi-helpers";
3
- //# sourceMappingURL=index.js.map
2
+ export { default as VoronoiHelpers } from "./voronoi-helpers";
@@ -298,5 +298,4 @@ export var voronoiContainerMixin = function (base) {
298
298
  }];
299
299
  }, _class;
300
300
  };
301
- export default voronoiContainerMixin(VictoryContainer);
302
- //# sourceMappingURL=victory-voronoi-container.js.map
301
+ export default voronoiContainerMixin(VictoryContainer);
@@ -285,5 +285,4 @@ export default {
285
285
  leading: true,
286
286
  trailing: false
287
287
  })
288
- };
289
- //# sourceMappingURL=voronoi-helpers.js.map
288
+ };
package/lib/index.js CHANGED
@@ -30,5 +30,4 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
30
30
 
31
31
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
32
32
 
33
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
34
- //# sourceMappingURL=index.js.map
33
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -319,5 +319,4 @@ exports.voronoiContainerMixin = voronoiContainerMixin;
319
319
 
320
320
  var _default = voronoiContainerMixin(_victoryCore.VictoryContainer);
321
321
 
322
- exports.default = _default;
323
- //# sourceMappingURL=victory-voronoi-container.js.map
322
+ exports.default = _default;
@@ -313,5 +313,4 @@ var _default = {
313
313
  trailing: false
314
314
  })
315
315
  };
316
- exports.default = _default;
317
- //# sourceMappingURL=voronoi-helpers.js.map
316
+ exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-voronoi-container",
3
- "version": "36.6.0",
3
+ "version": "36.6.3",
4
4
  "description": "Interactive Voronoi Mouseover Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -24,8 +24,8 @@
24
24
  "lodash": "^4.17.19",
25
25
  "prop-types": "^15.8.1",
26
26
  "react-fast-compare": "^3.2.0",
27
- "victory-core": "^36.6.0",
28
- "victory-tooltip": "^36.6.0"
27
+ "victory-core": "^36.6.3",
28
+ "victory-tooltip": "^36.6.3"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": ">=16.6.0"
@@ -51,7 +51,9 @@
51
51
  "files": [
52
52
  "src/**",
53
53
  "!src/**/*.test.*",
54
- "../../.babelrc.build.js"
54
+ "../../.babelrc.build.js",
55
+ "../../.babelrc.js",
56
+ "../../package-scripts.js"
55
57
  ],
56
58
  "output": [
57
59
  "es/**/*.js",
@@ -70,7 +72,9 @@
70
72
  "files": [
71
73
  "src/**",
72
74
  "!src/**/*.test.*",
73
- "../../.babelrc.build.js"
75
+ "../../.babelrc.build.js",
76
+ "../../.babelrc.js",
77
+ "../../package-scripts.js"
74
78
  ],
75
79
  "output": [
76
80
  "lib/**/*.js",
@@ -96,6 +100,8 @@
96
100
  "src/**",
97
101
  "!src/**/*.test.*",
98
102
  "../../.babelrc.build.js",
103
+ "../../.babelrc.js",
104
+ "../../package-scripts.js",
99
105
  "../../config/webpack.config.js",
100
106
  "../../config/webpack.config.dev.js"
101
107
  ],
@@ -117,6 +123,8 @@
117
123
  "src/**",
118
124
  "!src/**/*.test.*",
119
125
  "../../.babelrc.build.js",
126
+ "../../.babelrc.js",
127
+ "../../package-scripts.js",
120
128
  "../../config/webpack.config.js"
121
129
  ],
122
130
  "output": [
@@ -130,6 +138,14 @@
130
138
  "pnpm-lock.yaml"
131
139
  ]
132
140
  },
141
+ "check": {
142
+ "dependencies": [
143
+ "types:check",
144
+ "jest",
145
+ "format",
146
+ "lint"
147
+ ]
148
+ },
133
149
  "types:check": {
134
150
  "command": "nps types:pkg:check",
135
151
  "files": [
@@ -184,6 +200,19 @@
184
200
  "pnpm-lock.yaml"
185
201
  ]
186
202
  },
203
+ "format:fix": {
204
+ "command": "pnpm run format || nps format:pkg:fix",
205
+ "files": [
206
+ "src/**",
207
+ "*.json",
208
+ "../../.prettierignore",
209
+ "../../.prettierrc.json"
210
+ ],
211
+ "output": [],
212
+ "packageLocks": [
213
+ "pnpm-lock.yaml"
214
+ ]
215
+ },
187
216
  "lint": {
188
217
  "command": "nps lint:pkg",
189
218
  "files": [
@@ -202,19 +231,6 @@
202
231
  "pnpm-lock.yaml"
203
232
  ]
204
233
  },
205
- "format:fix": {
206
- "command": "pnpm run format || nps format:pkg:fix",
207
- "files": [
208
- "src/**",
209
- "*.json",
210
- "../../.prettierignore",
211
- "../../.prettierrc.json"
212
- ],
213
- "output": [],
214
- "packageLocks": [
215
- "pnpm-lock.yaml"
216
- ]
217
- },
218
234
  "lint:fix": {
219
235
  "command": "pnpm run lint || nps lint:pkg:fix",
220
236
  "files": [
@@ -262,6 +278,7 @@
262
278
  "build:dist": "wireit",
263
279
  "build:dist:dev": "wireit",
264
280
  "build:dist:min": "wireit",
281
+ "check": "wireit",
265
282
  "types:check": "wireit",
266
283
  "types:create": "wireit",
267
284
  "format": "wireit",