victory-core 36.6.1 → 36.6.2

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,12 @@
1
1
  # victory-core
2
2
 
3
+ ## 36.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - victory-vendor@36.6.2
9
+
3
10
  ## 36.6.1
4
11
 
5
12
  ### Patch Changes
@@ -8914,7 +8914,7 @@ __webpack_require__.r(__webpack_exports__);
8914
8914
  /* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
8915
8915
  /* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
8916
8916
  /* harmony export */ });
8917
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "./victory-util/collection.tsx");
8917
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "./victory-util/collection.tsx");
8918
8918
 
8919
8919
 
8920
8920
  // Private Functions
@@ -9021,7 +9021,7 @@ function getBounds(props) {
9021
9021
  var point2 = getDataCoordinates(props, scale, x2, y2);
9022
9022
 
9023
9023
  var makeBound = function (a, b) {
9024
- return [_index__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _index__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
9024
+ return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
9025
9025
  };
9026
9026
 
9027
9027
  return {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { VictoryCommonProps } from "./index";
2
+ import { VictoryCommonProps } from "./common-props";
3
3
  import type { DomainPropType, ScaleXYPropType } from "../types/prop-types";
4
4
  export declare function getParentSVG(evt: Pick<React.SyntheticEvent, "target"> & Partial<Pick<React.SyntheticEvent, "nativeEvent">>): SVGElement;
5
5
  export declare function getSVGEventCoordinates(evt: React.SyntheticEvent, svg?: SVGElement): SVGCoordinateType;
@@ -1,4 +1,4 @@
1
- import { Collection } from "./index";
1
+ import * as Collection from "./collection";
2
2
 
3
3
  // Private Functions
4
4
  function transformTarget(target, matrix, dimension) {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  import { VictoryProviderProps } from "../victory-state";
3
3
  import { VictoryCommonProps } from "./common-props";
4
- export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent: (props: Props) => React.ReactElement, initialProviderProps?: Partial<VictoryProviderProps>): (props: Props) => JSX.Element;
4
+ export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent: React.FC<Props>, initialProviderProps?: Partial<VictoryProviderProps>): React.FC<Props>;
5
5
  //# sourceMappingURL=with-container.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { VictoryCommonProps } from "./index";
2
+ import { VictoryCommonProps } from "./common-props";
3
3
  import type { DomainPropType, ScaleXYPropType } from "../types/prop-types";
4
4
  export declare function getParentSVG(evt: Pick<React.SyntheticEvent, "target"> & Partial<Pick<React.SyntheticEvent, "nativeEvent">>): SVGElement;
5
5
  export declare function getSVGEventCoordinates(evt: React.SyntheticEvent, svg?: SVGElement): SVGCoordinateType;
@@ -9,7 +9,11 @@ exports.getDomainCoordinates = getDomainCoordinates;
9
9
  exports.getParentSVG = getParentSVG;
10
10
  exports.getSVGEventCoordinates = getSVGEventCoordinates;
11
11
 
12
- var _index = require("./index");
12
+ var Collection = _interopRequireWildcard(require("./collection"));
13
+
14
+ 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); }
15
+
16
+ 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; }
13
17
 
14
18
  // Private Functions
15
19
  function transformTarget(target, matrix, dimension) {
@@ -119,7 +123,7 @@ function getBounds(props) {
119
123
  var point2 = getDataCoordinates(props, scale, x2, y2);
120
124
 
121
125
  var makeBound = function (a, b) {
122
- return [_index.Collection.getMinValue([a, b]), _index.Collection.getMaxValue([a, b])];
126
+ return [Collection.getMinValue([a, b]), Collection.getMaxValue([a, b])];
123
127
  };
124
128
 
125
129
  return {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  import { VictoryProviderProps } from "../victory-state";
3
3
  import { VictoryCommonProps } from "./common-props";
4
- export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent: (props: Props) => React.ReactElement, initialProviderProps?: Partial<VictoryProviderProps>): (props: Props) => JSX.Element;
4
+ export declare function withContainer<Props extends VictoryCommonProps>(WrappedComponent: React.FC<Props>, initialProviderProps?: Partial<VictoryProviderProps>): React.FC<Props>;
5
5
  //# sourceMappingURL=with-container.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-core",
3
- "version": "36.6.1",
3
+ "version": "36.6.2",
4
4
  "description": "Victory Core",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -23,7 +23,7 @@
23
23
  "lodash": "^4.17.21",
24
24
  "prop-types": "^15.8.1",
25
25
  "react-fast-compare": "^3.2.0",
26
- "victory-vendor": "^36.6.1"
26
+ "victory-vendor": "^36.6.2"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.6.0"
@@ -1,5 +1,7 @@
1
1
  import React from "react";
2
- import { Collection, VictoryCommonProps } from "./index";
2
+ import * as Collection from "./collection";
3
+ import { VictoryCommonProps } from "./common-props";
4
+
3
5
  import type { DomainPropType, ScaleXYPropType } from "../types/prop-types";
4
6
 
5
7
  // Private Functions
@@ -11,9 +11,9 @@ const defaultProviderProps = {
11
11
  };
12
12
 
13
13
  export function withContainer<Props extends VictoryCommonProps>(
14
- WrappedComponent: (props: Props) => React.ReactElement,
14
+ WrappedComponent: React.FC<Props>,
15
15
  initialProviderProps: Partial<VictoryProviderProps> = {},
16
- ) {
16
+ ): React.FC<Props> {
17
17
  return (props: Props) => {
18
18
  const providerProps = {
19
19
  ...defaultProviderProps,