@atlaskit/width-detector
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -8,4 +8,3 @@ { | ||
"outDir": "../dist", | ||
"rootDir": "../", | ||
"baseUrl": "../" | ||
"rootDir": "../" | ||
}, | ||
@@ -12,0 +11,0 @@ "include": [ |
{ | ||
"extends": "../../../../tsconfig.entry-points.jira.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../tsDist/@atlaskit__width-detector/app", | ||
"composite": true, | ||
"rootDir": "../" | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*" | ||
], | ||
"references": [] | ||
} | ||
"extends": "../../../../tsconfig.entry-points.jira.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../tsDist/@atlaskit__width-detector/app", | ||
"rootDir": "../", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*" | ||
], | ||
"references": [] | ||
} |
{ | ||
"extends": "../../../../tsconfig.entry-points.post-office.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../tsDist/@atlaskit__width-detector/app", | ||
"composite": true, | ||
"rootDir": "../" | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*" | ||
], | ||
"references": [] | ||
} | ||
"extends": "../../../../tsconfig.entry-points.post-office.json", | ||
"compilerOptions": { | ||
"declaration": true, | ||
"target": "es5", | ||
"outDir": "../../../../../post-office/tsDist/@atlaskit__width-detector/app", | ||
"rootDir": "../", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.tsx" | ||
], | ||
"exclude": [ | ||
"../src/**/__tests__/*", | ||
"../src/**/*.test.*", | ||
"../src/**/test.*" | ||
], | ||
"references": [] | ||
} |
# @atlaskit/width-detector | ||
## 4.3.1 | ||
### Patch Changes | ||
- [#166026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166026) | ||
[`962b5e77810fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b5e77810fb) - | ||
Adds side-effect config to support Compiled css extraction in third-party apps | ||
## 4.3.0 | ||
@@ -4,0 +12,0 @@ |
@@ -22,3 +22,3 @@ "use strict"; | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | ||
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
@@ -25,0 +25,0 @@ var containerDivStyle = { |
@@ -13,3 +13,3 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
@@ -16,0 +16,0 @@ import React from 'react'; |
{ | ||
"name": "@atlaskit/width-detector", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Wrapper for components that need to respond to width changes", | ||
@@ -23,10 +23,8 @@ "publishConfig": { | ||
}, | ||
"sideEffects": false, | ||
"sideEffects": [ | ||
"**/*.compiled.css" | ||
], | ||
"atlaskit:src": "src/index.ts", | ||
"atlassian": { | ||
"team": "Design System Team", | ||
"releaseModel": "continuous", | ||
"productPushConsumption": [ | ||
"jira" | ||
], | ||
"website": { | ||
@@ -47,3 +45,3 @@ "name": "Width Detector", | ||
"@af/integration-testing": "*", | ||
"@atlaskit/ds-lib": "^2.4.0", | ||
"@atlaskit/ds-lib": "^3.2.0", | ||
"@atlaskit/ssr": "*", | ||
@@ -50,0 +48,0 @@ "@emotion/react": "^11.7.1", |
@@ -13,10 +13,18 @@ # Width-detector | ||
Detailed docs and example usage can be found | ||
[here](https://atlaskit.atlassian.com/packages/core/width-detector). | ||
You can see [examples](https://atlaskit.atlassian.com/examples/design-system/width-detector) learn | ||
more about the usage of this component. | ||
### Notes | ||
The default export WidthDetector will be deprecated in the next major release of width-detector. | ||
Follow our upgrade guide and | ||
[examples](https://atlaskit.atlassian.com/examples/design-system/width-detector) to migrate to | ||
WidthObserver. | ||
[Migration guide can be found here](./migration-guide.md). | ||
## Acknowledgements | ||
This size detection method used by this component is inspired by Federico Zivolo's awesome | ||
[react-resize-aware][react-resize-aware-repo] project, which Atlassian has contributed a PR back to. | ||
[react-resize-aware-repo]: https://github.com/FezVrasta/react-resize-aware | ||
[react-resize-aware](https://github.com/FezVrasta/react-resize-aware) project, which Atlassian has | ||
contributed a PR back to. |
@@ -6,3 +6,5 @@ { | ||
"module:es2019": "../dist/es2019/WidthDetector.js", | ||
"sideEffects": false, | ||
"sideEffects": [ | ||
"**/*.compiled.css" | ||
], | ||
"types": "../dist/types/WidthDetector.d.ts", | ||
@@ -9,0 +11,0 @@ "typesVersions": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
30
60495
1095
1