victory-box-plot 36.8.5-next.0 → 36.8.5

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,15 +1,10 @@
1
1
  # victory-box-plot
2
2
 
3
- ## 36.8.5-next.0
3
+ ## 36.8.5
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - c8c2eb2f5: Replace instances of lodash.assign with Object.assign
8
- - 0f3abe234: Migrate victory-native to TypeScript
9
- - Updated dependencies [c8c2eb2f5]
10
- - Updated dependencies [0f3abe234]
11
- - victory-core@36.8.5-next.0
12
- - victory-vendor@36.8.5-next.0
7
+ - Replace instances of lodash.assign with Object.assign ([#2757](https://github.com/FormidableLabs/victory/pull/2757))
13
8
 
14
9
  ## 36.8.4
15
10
 
@@ -2272,44 +2272,6 @@ function basePropertyDeep(path) {
2272
2272
  module.exports = basePropertyDeep;
2273
2273
 
2274
2274
 
2275
- /***/ }),
2276
-
2277
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js":
2278
- /*!************************************************************************************!*\
2279
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js ***!
2280
- \************************************************************************************/
2281
- /***/ ((module) => {
2282
-
2283
- /* Built-in method references for those with the same name as other `lodash` methods. */
2284
- var nativeCeil = Math.ceil,
2285
- nativeMax = Math.max;
2286
-
2287
- /**
2288
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
2289
- * coerce arguments.
2290
- *
2291
- * @private
2292
- * @param {number} start The start of the range.
2293
- * @param {number} end The end of the range.
2294
- * @param {number} step The value to increment or decrement by.
2295
- * @param {boolean} [fromRight] Specify iterating from right to left.
2296
- * @returns {Array} Returns the range of numbers.
2297
- */
2298
- function baseRange(start, end, step, fromRight) {
2299
- var index = -1,
2300
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
2301
- result = Array(length);
2302
-
2303
- while (length--) {
2304
- result[fromRight ? length : ++index] = start;
2305
- start += step;
2306
- }
2307
- return result;
2308
- }
2309
-
2310
- module.exports = baseRange;
2311
-
2312
-
2313
2275
  /***/ }),
2314
2276
 
2315
2277
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js":
@@ -2882,46 +2844,6 @@ function createFind(findIndexFunc) {
2882
2844
  module.exports = createFind;
2883
2845
 
2884
2846
 
2885
- /***/ }),
2886
-
2887
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
2888
- /*!**************************************************************************************!*\
2889
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js ***!
2890
- \**************************************************************************************/
2891
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2892
-
2893
- var baseRange = __webpack_require__(/*! ./_baseRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js"),
2894
- isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"),
2895
- toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js");
2896
-
2897
- /**
2898
- * Creates a `_.range` or `_.rangeRight` function.
2899
- *
2900
- * @private
2901
- * @param {boolean} [fromRight] Specify iterating from right to left.
2902
- * @returns {Function} Returns the new range function.
2903
- */
2904
- function createRange(fromRight) {
2905
- return function(start, end, step) {
2906
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
2907
- end = step = undefined;
2908
- }
2909
- // Ensure the sign of `-0` is preserved.
2910
- start = toFinite(start);
2911
- if (end === undefined) {
2912
- end = start;
2913
- start = 0;
2914
- } else {
2915
- end = toFinite(end);
2916
- }
2917
- step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
2918
- return baseRange(start, end, step, fromRight);
2919
- };
2920
- }
2921
-
2922
- module.exports = createRange;
2923
-
2924
-
2925
2847
  /***/ }),
2926
2848
 
2927
2849
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
@@ -5933,62 +5855,6 @@ function property(path) {
5933
5855
  module.exports = property;
5934
5856
 
5935
5857
 
5936
- /***/ }),
5937
-
5938
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js":
5939
- /*!*******************************************************************************!*\
5940
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js ***!
5941
- \*******************************************************************************/
5942
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5943
-
5944
- var createRange = __webpack_require__(/*! ./_createRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js");
5945
-
5946
- /**
5947
- * Creates an array of numbers (positive and/or negative) progressing from
5948
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
5949
- * `start` is specified without an `end` or `step`. If `end` is not specified,
5950
- * it's set to `start` with `start` then set to `0`.
5951
- *
5952
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
5953
- * floating-point values which can produce unexpected results.
5954
- *
5955
- * @static
5956
- * @since 0.1.0
5957
- * @memberOf _
5958
- * @category Util
5959
- * @param {number} [start=0] The start of the range.
5960
- * @param {number} end The end of the range.
5961
- * @param {number} [step=1] The value to increment or decrement by.
5962
- * @returns {Array} Returns the range of numbers.
5963
- * @see _.inRange, _.rangeRight
5964
- * @example
5965
- *
5966
- * _.range(4);
5967
- * // => [0, 1, 2, 3]
5968
- *
5969
- * _.range(-4);
5970
- * // => [0, -1, -2, -3]
5971
- *
5972
- * _.range(1, 5);
5973
- * // => [1, 2, 3, 4]
5974
- *
5975
- * _.range(0, 20, 5);
5976
- * // => [0, 5, 10, 15]
5977
- *
5978
- * _.range(0, -4, -1);
5979
- * // => [0, -1, -2, -3]
5980
- *
5981
- * _.range(1, 4, 0);
5982
- * // => [1, 1, 1]
5983
- *
5984
- * _.range(0);
5985
- * // => []
5986
- */
5987
- var range = createRange();
5988
-
5989
- module.exports = range;
5990
-
5991
-
5992
5858
  /***/ }),
5993
5859
 
5994
5860
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortedUniq.js":
@@ -9232,9 +9098,9 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
9232
9098
 
9233
9099
  _this = _super.call.apply(_super, [this].concat(args));
9234
9100
  _this.checkedContext = void 0;
9235
- _this.portalKey = void 0;
9236
9101
  _this.renderInPlace = void 0;
9237
9102
  _this.element = void 0;
9103
+ _this.portalKey = void 0;
9238
9104
  return _this;
9239
9105
  }
9240
9106
 
@@ -11415,17 +11281,14 @@ __webpack_require__.r(__webpack_exports__);
11415
11281
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
11416
11282
  /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/last */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js");
11417
11283
  /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__);
11418
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js");
11419
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_10__);
11420
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
11421
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_11__);
11422
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "react");
11423
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
11424
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
11284
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
11285
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_10__);
11286
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
11287
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
11288
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
11425
11289
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
11426
- /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
11427
- /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
11428
-
11290
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
11291
+ /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
11429
11292
 
11430
11293
 
11431
11294
 
@@ -11462,24 +11325,22 @@ function parseDatum(datum) {
11462
11325
  errorX: true,
11463
11326
  errorY: true
11464
11327
  };
11465
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_13__.shallowToJS(datum, immutableDatumWhitelist) : datum;
11328
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_12__.shallowToJS(datum, immutableDatumWhitelist) : datum;
11466
11329
  }
11467
11330
 
11468
11331
  function getLength(data) {
11469
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(data) ? data.size : data.length;
11332
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(data) ? data.size : data.length;
11470
11333
  } // Returns generated data for a given axis based on domain and sample from props
11471
11334
 
11472
11335
 
11473
11336
  function generateDataArray(props, axis) {
11474
11337
  var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain;
11475
- var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_14__.getBaseScale(props, axis).domain();
11338
+ var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_13__.getBaseScale(props, axis).domain();
11476
11339
  var samples = props.samples || 1;
11477
11340
  var domainMax = Math.max.apply(Math, _toConsumableArray(domain));
11478
11341
  var domainMin = Math.min.apply(Math, _toConsumableArray(domain));
11479
11342
  var step = (domainMax - domainMin) / samples;
11480
-
11481
- var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step);
11482
-
11343
+ var values = _helpers__WEBPACK_IMPORTED_MODULE_14__.range(domainMin, domainMax, step);
11483
11344
  return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax);
11484
11345
  } // Returns sorted data. If no sort keys are provided, data is returned unaltered.
11485
11346
 
@@ -11506,8 +11367,8 @@ function sortData(dataset, sortKey) {
11506
11367
  function cleanData(dataset, props) {
11507
11368
  var smallNumber = 1 / Number.MAX_SAFE_INTEGER;
11508
11369
  var scaleType = {
11509
- x: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "x"),
11510
- y: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "y")
11370
+ x: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "x"),
11371
+ y: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "y")
11511
11372
  };
11512
11373
 
11513
11374
  if (scaleType.x !== "log" && scaleType.y !== "log") {
@@ -11642,7 +11503,7 @@ function createStringMap(props, axis) {
11642
11503
  var stringsFromCategories = getStringsFromCategories(props, axis);
11643
11504
  var stringsFromData = getStringsFromData(props, axis);
11644
11505
 
11645
- var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
11506
+ var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
11646
11507
 
11647
11508
  return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) {
11648
11509
  memo[string] = index + 1;
@@ -11684,7 +11545,7 @@ function downsample(data, maxPoints) {
11684
11545
  */
11685
11546
 
11686
11547
  function formatData(dataset, props, expectedKeys) {
11687
- var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(dataset);
11548
+ var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(dataset);
11688
11549
 
11689
11550
  if (!isArrayOrIterable || getLength(dataset) < 1) {
11690
11551
  return [];
@@ -11697,7 +11558,7 @@ function formatData(dataset, props, expectedKeys) {
11697
11558
  expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys;
11698
11559
 
11699
11560
  var createAccessor = function (name) {
11700
- return _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(props[name] !== undefined ? props[name] : name);
11561
+ return _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(props[name] !== undefined ? props[name] : name);
11701
11562
  };
11702
11563
 
11703
11564
  var accessor = expectedKeys.reduce(function (memo, type) {
@@ -11834,14 +11695,14 @@ function getStringsFromCategories(props, axis) {
11834
11695
  */
11835
11696
 
11836
11697
  function getStringsFromData(props, axis) {
11837
- var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(props.data);
11698
+ var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(props.data);
11838
11699
 
11839
11700
  if (!isArrayOrIterable) {
11840
11701
  return [];
11841
11702
  }
11842
11703
 
11843
11704
  var key = props[axis] === undefined ? axis : props[axis];
11844
- var accessor = _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(key); // support immutable data
11705
+ var accessor = _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(key); // support immutable data
11845
11706
 
11846
11707
  var data = props.data.reduce(function (memo, d) {
11847
11708
  memo.push(parseDatum(d));
@@ -11878,7 +11739,7 @@ function isDataComponent(component) {
11878
11739
  var role = getRole(component);
11879
11740
 
11880
11741
  if (role === "portal") {
11881
- var children = react__WEBPACK_IMPORTED_MODULE_12___default().Children.toArray(component.props.children);
11742
+ var children = react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(component.props.children);
11882
11743
  role = children.length ? getRole(children[0]) : "";
11883
11744
  }
11884
11745
 
@@ -12990,6 +12851,7 @@ __webpack_require__.r(__webpack_exports__);
12990
12851
  /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
12991
12852
  /* harmony export */ "omit": () => (/* binding */ omit),
12992
12853
  /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
12854
+ /* harmony export */ "range": () => (/* binding */ range),
12993
12855
  /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
12994
12856
  /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
12995
12857
  /* harmony export */ });
@@ -13269,6 +13131,38 @@ function getCurrentAxis(axis, horizontal) {
13269
13131
  var otherAxis = axis === "x" ? "y" : "x";
13270
13132
  return horizontal ? otherAxis : axis;
13271
13133
  }
13134
+ /**
13135
+ * Creates an array of numbers (positive and/or negative) progressing
13136
+ * from start up to, but not including, end.
13137
+ * A step of -1 is used if a negative start is specified without an end or step.
13138
+ * If end is not specified, it's set to start with start then set to 0.
13139
+ *
13140
+ * @param start The length of the array to create, or the start value
13141
+ * @param end [The end value] If this is defined, start is the start value
13142
+ * @returns An array of the given length
13143
+ */
13144
+
13145
+ function range(start, end, increment) {
13146
+ // when the end index is not given, start from 0
13147
+ var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
13148
+
13149
+ var endIndex = end ? end : start; // ensure endIndex is not a falsy value
13150
+
13151
+ if (!endIndex) endIndex = 0;
13152
+ var k = endIndex - startIndex; // the value range
13153
+
13154
+ var length = Math.abs(k); // the length of the range
13155
+
13156
+ var sign = k / length || 1; // the sign of the range (negative or positive)
13157
+
13158
+ var inc = increment || 1; // the step size of each increment
13159
+ // normalize the array length when dealing with floating point values
13160
+
13161
+ var arrayLength = Math.max(Math.ceil(length / inc), 0);
13162
+ return Array.from(Array(arrayLength), function (_, i) {
13163
+ return startIndex + i * sign * inc;
13164
+ });
13165
+ }
13272
13166
  /**
13273
13167
  * @param {Array} children: an array of child components
13274
13168
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"