@visx/responsive
Advanced tools
Comparing version 2.7.1 to 2.8.0
@@ -10,3 +10,3 @@ import _pt from "prop-types"; | ||
import React, { useEffect, useMemo, useRef, useState } from 'react'; | ||
import ResizeObserver from 'resize-observer-polyfill'; | ||
import { ResizeObserver } from '@juggle/resize-observer'; | ||
var defaultIgnoreDimensions = []; | ||
@@ -13,0 +13,0 @@ export default function ParentSize(_ref) { |
@@ -15,3 +15,3 @@ import _pt from "prop-types"; | ||
import debounce from 'lodash/debounce'; | ||
import ResizeObserver from 'resize-observer-polyfill'; | ||
import { ResizeObserver } from '@juggle/resize-observer'; | ||
var CONTAINER_STYLES = { | ||
@@ -18,0 +18,0 @@ width: '100%', |
@@ -12,3 +12,3 @@ "use strict"; | ||
var _resizeObserverPolyfill = _interopRequireDefault(require("resize-observer-polyfill")); | ||
var _resizeObserver = require("@juggle/resize-observer"); | ||
@@ -75,3 +75,3 @@ var _excluded = ["className", "children", "debounceTime", "ignoreDimensions", "parentSizeStyles", "enableDebounceLeadingCall"]; | ||
(0, _react.useEffect)(function () { | ||
var observer = new _resizeObserverPolyfill.default(function (entries | ||
var observer = new _resizeObserver.ResizeObserver(function (entries | ||
/** , observer */ | ||
@@ -78,0 +78,0 @@ ) { |
/// <reference types="lodash" /> | ||
import React from 'react'; | ||
import ResizeObserver from 'resize-observer-polyfill'; | ||
import { ResizeObserver } from '@juggle/resize-observer'; | ||
export declare type WithParentSizeProps = { | ||
@@ -5,0 +5,0 @@ debounceTime?: number; |
@@ -12,3 +12,3 @@ "use strict"; | ||
var _resizeObserverPolyfill = _interopRequireDefault(require("resize-observer-polyfill")); | ||
var _resizeObserver = require("@juggle/resize-observer"); | ||
@@ -82,3 +82,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
this.resizeObserver = new _resizeObserverPolyfill.default(function (entries | ||
this.resizeObserver = new _resizeObserver.ResizeObserver(function (entries | ||
/** , observer */ | ||
@@ -85,0 +85,0 @@ ) { |
{ | ||
"name": "@visx/responsive", | ||
"version": "2.7.1", | ||
"version": "2.8.0", | ||
"description": "visx responsive svg", | ||
@@ -31,7 +31,7 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@juggle/resize-observer": "^3.3.1", | ||
"@types/lodash": "^4.14.172", | ||
"@types/react": "*", | ||
"lodash": "^4.17.21", | ||
"prop-types": "^15.6.1", | ||
"resize-observer-polyfill": "1.5.1" | ||
"prop-types": "^15.6.1" | ||
}, | ||
@@ -44,3 +44,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "58a3f5a65997274e41d240e2b8ed491400fdfded" | ||
"gitHead": "dadd039d0c5271cd522dfd956f0239873d433b61" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83042
+ Added@juggle/resize-observer@3.4.0(transitive)
- Removedresize-observer-polyfill@1.5.1
- Removedresize-observer-polyfill@1.5.1(transitive)