New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@atlaskit/width-detector

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/width-detector - npm Package Compare versions

Comparing version 2.0.10 to 2.1.0

dist/cjs/WidthObserver/hooks.d.ts

26

CHANGELOG.md
# @atlaskit/width-detector
## 2.1.0
### Minor Changes
- [minor][67bc25bc3f](https://bitbucket.org/atlassian/atlassian-frontend/commits/67bc25bc3f):
Move WidthObserver from editor-common to width-detector
WidthObserver is a more performant version of WidthDetector and should be used going forward.
```js
import { WidthObserver } from '@atlaskit/width-detector';
<WidthObserver
setWidth={width => console.log(`width has changed to ${width}`)}
/>;
```
### Patch Changes
- [patch][109004a98e](https://bitbucket.org/atlassian/atlassian-frontend/commits/109004a98e):
Deletes internal package @atlaskit/type-helpers and removes all usages. @atlaskit/type-helpers has been superseded by native typescript helper utilities.- Updated dependencies [168b5f90e5](https://bitbucket.org/atlassian/atlassian-frontend/commits/168b5f90e5):
- @atlaskit/docs@8.5.1
## 2.0.10

@@ -4,0 +30,0 @@

1

dist/cjs/index.d.ts
export { default } from './WidthDetector';
export { WidthObserver, IframeWidthObserverFallbackWrapper, IframeWrapperConsumer, } from './WidthObserver';

@@ -5,2 +5,6 @@ "use strict";

exports.default = WidthDetector_1.default;
var WidthObserver_1 = require("./WidthObserver");
exports.WidthObserver = WidthObserver_1.WidthObserver;
exports.IframeWidthObserverFallbackWrapper = WidthObserver_1.IframeWidthObserverFallbackWrapper;
exports.IframeWrapperConsumer = WidthObserver_1.IframeWrapperConsumer;
//# sourceMappingURL=index.js.map

2

dist/cjs/version.json
{
"name": "@atlaskit/width-detector",
"version": "2.0.10",
"version": "2.1.0",
"sideEffects": false
}

@@ -15,2 +15,9 @@ import React from 'react';

};
/**
* @deprecated use WidthOvserver instead
*
* This component uses iframes for rendering and is currently
* not performant. It will be DEPRECATED in the future.
* It is recommended that you instead use WidthObserver from @atlaskit/width-detector
*/
export default class WidthDetector extends React.Component<Props, State> {

@@ -17,0 +24,0 @@ state: State;

@@ -6,2 +6,4 @@ "use strict";

var raf_schd_1 = tslib_1.__importDefault(require("raf-schd"));
// eslint-disable-next-line no-console
console.warn('WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.');
var containerDivStyle = {

@@ -25,2 +27,9 @@ width: '100%',

};
/**
* @deprecated use WidthOvserver instead
*
* This component uses iframes for rendering and is currently
* not performant. It will be DEPRECATED in the future.
* It is recommended that you instead use WidthObserver from @atlaskit/width-detector
*/
var WidthDetector = /** @class */ (function (_super) {

@@ -27,0 +36,0 @@ tslib_1.__extends(WidthDetector, _super);

export { default } from './WidthDetector';
export { WidthObserver, IframeWidthObserverFallbackWrapper, IframeWrapperConsumer, } from './WidthObserver';
export { default } from './WidthDetector';
export { WidthObserver, IframeWidthObserverFallbackWrapper, IframeWrapperConsumer, } from './WidthObserver';
//# sourceMappingURL=index.js.map
{
"name": "@atlaskit/width-detector",
"version": "2.0.10",
"version": "2.1.0",
"sideEffects": false
}

@@ -15,2 +15,9 @@ import React from 'react';

};
/**
* @deprecated use WidthOvserver instead
*
* This component uses iframes for rendering and is currently
* not performant. It will be DEPRECATED in the future.
* It is recommended that you instead use WidthObserver from @atlaskit/width-detector
*/
export default class WidthDetector extends React.Component<Props, State> {

@@ -17,0 +24,0 @@ state: State;

import { __assign, __extends, __rest } from "tslib";
import React from 'react';
import rafSchedule from 'raf-schd';
// eslint-disable-next-line no-console
console.warn('WidthDetector will be deprecated, please use WidthObserver from @atlaskit/width-detector instead.');
var containerDivStyle = {

@@ -22,2 +24,9 @@ width: '100%',

};
/**
* @deprecated use WidthOvserver instead
*
* This component uses iframes for rendering and is currently
* not performant. It will be DEPRECATED in the future.
* It is recommended that you instead use WidthObserver from @atlaskit/width-detector
*/
var WidthDetector = /** @class */ (function (_super) {

@@ -24,0 +33,0 @@ __extends(WidthDetector, _super);

{
"name": "@atlaskit/width-detector",
"version": "2.0.10",
"version": "2.1.0",
"description": "Wrapper for components that need to respond to width changes",

@@ -8,2 +8,4 @@ "publishConfig": {

},
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
"author": "Atlassian Pty Ltd",
"license": "Apache-2.0",

@@ -13,12 +15,12 @@ "module": "dist/esm/index.js",

"types": "dist/cjs/index.d.ts",
"sideEffects": false,
"atlaskit:src": "src/index.ts",
"sideEffects": false,
"author": "Atlassian Pty Ltd",
"atlaskit": {
"name": "Width Detector"
"atlassian": {
"team": "Design System Team",
"releaseModel": "scheduled",
"website": {
"name": "Width Detector"
}
},
"team": "Design System Team",
"repository": "https://bitbucket.org/atlassian/atlaskit-mk-2",
"dependencies": {
"@atlaskit/type-helpers": "^4.2.3",
"raf-schd": "^2.1.0",

@@ -33,3 +35,3 @@ "tslib": "^1.9.3"

"@atlaskit/build-utils": "^2.2.7",
"@atlaskit/docs": "^8.3.2",
"@atlaskit/docs": "^8.5.1",
"@atlaskit/ssr": "^0.1.1",

@@ -36,0 +38,0 @@ "@atlaskit/visual-regression": "^0.1.9",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc