victory-cursor-container 37.3.1 → 37.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-cursor-container",
3
- "version": "37.3.1",
3
+ "version": "37.3.3",
4
4
  "description": "Interactive Cursor Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
- "victory-core": "37.3.1"
24
+ "victory-core": "37.3.3"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.6.0"
@@ -180,38 +180,10 @@
180
180
  "pnpm-lock.yaml"
181
181
  ]
182
182
  },
183
- "format": {
184
- "command": "nps format:pkg",
185
- "files": [
186
- "src/**",
187
- "*.json",
188
- "../../.prettierignore",
189
- "../../.prettierrc.json"
190
- ],
191
- "output": [],
192
- "packageLocks": [
193
- "pnpm-lock.yaml"
194
- ]
195
- },
196
- "format:fix": {
197
- "command": "pnpm run format || nps format:pkg:fix",
198
- "files": [
199
- "src/**",
200
- "*.json",
201
- "../../.prettierignore",
202
- "../../.prettierrc.json"
203
- ],
204
- "output": [],
205
- "packageLocks": [
206
- "pnpm-lock.yaml"
207
- ]
208
- },
209
183
  "lint": {
210
- "command": "nps lint:pkg",
184
+ "command": "eslint src",
211
185
  "files": [
212
- "src/**",
213
- "../../.eslintignore",
214
- "../../.eslintrc.js"
186
+ "src/**"
215
187
  ],
216
188
  "output": [],
217
189
  "dependencies": [
@@ -224,11 +196,9 @@
224
196
  ]
225
197
  },
226
198
  "lint:fix": {
227
- "command": "pnpm run lint || nps lint:pkg:fix",
199
+ "command": "eslint --fix src",
228
200
  "files": [
229
- "src/**",
230
- "../../.eslintignore",
231
- "../../.eslintrc.js"
201
+ "src/**"
232
202
  ],
233
203
  "output": [],
234
204
  "dependencies": [
@@ -272,8 +242,6 @@
272
242
  "check": "wireit",
273
243
  "types:check": "wireit",
274
244
  "types:create": "wireit",
275
- "format": "wireit",
276
- "format:fix": "wireit",
277
245
  "lint": "wireit",
278
246
  "lint:fix": "wireit",
279
247
  "jest": "wireit"
@@ -1,5 +1,5 @@
1
1
  import { Helpers, Selection, SVGCoordinateType } from "victory-core";
2
- import { throttle } from "lodash";
2
+ import throttle from "lodash/throttle";
3
3
 
4
4
  const ON_MOUSE_MOVE_THROTTLE_MS = 16;
5
5
 
@@ -1,4 +1,3 @@
1
- /* eslint-disable complexity */
2
1
  import React from "react";
3
2
  import {
4
3
  Helpers,
@@ -13,7 +12,8 @@ import {
13
12
  DomainTuple,
14
13
  PaddingProps,
15
14
  } from "victory-core";
16
- import { defaults, isObject } from "lodash";
15
+ import defaults from "lodash/defaults";
16
+ import isObject from "lodash/isObject";
17
17
  import { CursorHelpers } from "./cursor-helpers";
18
18
 
19
19
  export type CursorCoordinatesPropType = CoordinatesPropType | number;
@@ -97,11 +97,10 @@ export const useVictoryCursorContainer = (
97
97
  : props.children;
98
98
  return Helpers.getPadding(child?.props);
99
99
  }
100
- return Helpers.getPadding(props);
100
+ return Helpers.getPadding(props.padding);
101
101
  };
102
102
 
103
103
  const getCursorElements = () => {
104
- // eslint-disable-line max-statements
105
104
  const {
106
105
  scale,
107
106
  cursorLabelComponent,