@atlaskit/popup 5.2.2 → 6.0.0
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 +49 -0
- package/compositional/popup/package.json +4 -4
- package/compositional/popup-content/package.json +4 -4
- package/compositional/popup-trigger/package.json +4 -4
- package/dist/cjs/compositional/popup-content-top-layer.js +1 -1
- package/dist/cjs/popper-wrapper.js +1 -1
- package/dist/cjs/popup-top-layer.js +1 -1
- package/dist/cjs/popup.js +1 -1
- package/dist/es2019/compositional/popup-content-top-layer.js +1 -1
- package/dist/es2019/entry-points/experimental/compositional.js +22 -1
- package/dist/es2019/popper-wrapper.js +1 -1
- package/dist/es2019/popup-top-layer.js +1 -1
- package/dist/es2019/popup.js +1 -1
- package/dist/esm/compositional/popup-content-top-layer.js +1 -1
- package/dist/esm/entry-points/experimental/compositional.js +22 -1
- package/dist/esm/popper-wrapper.js +1 -1
- package/dist/esm/popup-top-layer.js +1 -1
- package/dist/esm/popup.js +1 -1
- package/dist/types/entry-points/experimental/compositional.d.ts +18 -0
- package/package.json +6 -6
- package/popup/package.json +4 -4
- package/types/package.json +4 -4
- package/dist/cjs/entry-points/compositional-popup-content.js +0 -12
- package/dist/cjs/entry-points/compositional-popup-trigger.js +0 -12
- package/dist/cjs/entry-points/compositional-popup.js +0 -12
- package/dist/cjs/entry-points/popup.js +0 -12
- package/dist/cjs/entry-points/types.js +0 -1
- package/dist/es2019/entry-points/compositional-popup-content.js +0 -1
- package/dist/es2019/entry-points/compositional-popup-trigger.js +0 -1
- package/dist/es2019/entry-points/compositional-popup.js +0 -1
- package/dist/es2019/entry-points/popup.js +0 -1
- package/dist/es2019/entry-points/types.js +0 -0
- package/dist/esm/entry-points/compositional-popup-content.js +0 -1
- package/dist/esm/entry-points/compositional-popup-trigger.js +0 -1
- package/dist/esm/entry-points/compositional-popup.js +0 -1
- package/dist/esm/entry-points/popup.js +0 -1
- package/dist/esm/entry-points/types.js +0 -0
- package/dist/types/entry-points/compositional-popup-content.d.ts +0 -2
- package/dist/types/entry-points/compositional-popup-trigger.d.ts +0 -2
- package/dist/types/entry-points/compositional-popup.d.ts +0 -2
- package/dist/types/entry-points/popup.d.ts +0 -1
- package/dist/types/entry-points/types.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @atlaskit/popup
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`48e7d03469b80`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/48e7d03469b80) -
|
|
8
|
+
Apply Volt entry-point and barrel-removal standards across these design-system packages. Public
|
|
9
|
+
`exports` now resolve **directly** to `./src/*` implementations instead of intermediate
|
|
10
|
+
`./src/entry-points/*` re-exports, root barrels and remaining entry-point shims are marked
|
|
11
|
+
deprecated in favour of per-export subpaths, and a few new subpaths are added
|
|
12
|
+
(`@atlaskit/badge/badge-new`, `@atlaskit/tile/tile-skeleton`, `@atlaskit/popper/main`,
|
|
13
|
+
`@atlaskit/section-message/message`, `@atlaskit/section-message/message-action`).
|
|
14
|
+
|
|
15
|
+
### Why this is breaking
|
|
16
|
+
|
|
17
|
+
Subpaths and the package root can now resolve to the **same module instance**. Consumers that
|
|
18
|
+
deep-imported `entry-points/*`, or `jest.mock()`'d a specific subpath may need updates.
|
|
19
|
+
`@atlaskit/image`'s root export now points at `./src/ui/image/index.tsx`.
|
|
20
|
+
`@atlaskit/checkbox/checkbox` now exports a named `Checkbox` from the implementation module
|
|
21
|
+
(default export retained for backwards compatibility).
|
|
22
|
+
|
|
23
|
+
### Migration
|
|
24
|
+
|
|
25
|
+
Prefer published subpaths over the package root:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { Checkbox } from '@atlaskit/checkbox/checkbox';
|
|
29
|
+
import TextField from '@atlaskit/textfield/text-field';
|
|
30
|
+
import Popup from '@atlaskit/popup/popup';
|
|
31
|
+
import SectionMessage from '@atlaskit/section-message/message';
|
|
32
|
+
import EmptyState from '@atlaskit/empty-state/empty-state';
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
If you imported through internal entry-point modules, switch to the public subpath:
|
|
36
|
+
|
|
37
|
+
```diff
|
|
38
|
+
-import Checkbox from '@atlaskit/checkbox/entry-points/checkbox';
|
|
39
|
+
+import { Checkbox } from '@atlaskit/checkbox/checkbox';
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
|
|
46
|
+
## 5.2.3
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies
|
|
51
|
+
|
|
3
52
|
## 5.2.2
|
|
4
53
|
|
|
5
54
|
### Patch Changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popup/compositional/popup",
|
|
3
|
-
"main": "../../dist/cjs/
|
|
4
|
-
"module": "../../dist/esm/
|
|
5
|
-
"module:es2019": "../../dist/es2019/
|
|
3
|
+
"main": "../../dist/cjs/compositional/popup.js",
|
|
4
|
+
"module": "../../dist/esm/compositional/popup.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/compositional/popup.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/
|
|
9
|
+
"types": "../../dist/types/compositional/popup.d.ts"
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popup/compositional/popup-content",
|
|
3
|
-
"main": "../../dist/cjs/
|
|
4
|
-
"module": "../../dist/esm/
|
|
5
|
-
"module:es2019": "../../dist/es2019/
|
|
3
|
+
"main": "../../dist/cjs/compositional/popup-content.js",
|
|
4
|
+
"module": "../../dist/esm/compositional/popup-content.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/compositional/popup-content.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/
|
|
9
|
+
"types": "../../dist/types/compositional/popup-content.d.ts"
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popup/compositional/popup-trigger",
|
|
3
|
-
"main": "../../dist/cjs/
|
|
4
|
-
"module": "../../dist/esm/
|
|
5
|
-
"module:es2019": "../../dist/es2019/
|
|
3
|
+
"main": "../../dist/cjs/compositional/popup-trigger.js",
|
|
4
|
+
"module": "../../dist/esm/compositional/popup-trigger.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/compositional/popup-trigger.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../../dist/types/
|
|
9
|
+
"types": "../../dist/types/compositional/popup-trigger.d.ts"
|
|
10
10
|
}
|
package/dist/cjs/popup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* popup-content-top-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* popup-content-top-layer.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./popup-content-top-layer.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `import { Popup } from '@atlaskit/popup/compositional/popup'` instead.
|
|
4
|
+
*/
|
|
1
5
|
export { Popup } from '../../compositional/popup';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `import { PopupContent } from '@atlaskit/popup/compositional/popup-content'` instead.
|
|
8
|
+
*/
|
|
2
9
|
export { PopupContent } from '../../compositional/popup-content';
|
|
3
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `import { PopupTrigger } from '@atlaskit/popup/compositional/popup-trigger'` instead.
|
|
12
|
+
*/
|
|
13
|
+
export { PopupTrigger } from '../../compositional/popup-trigger';
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `import type { PopupProps } from '@atlaskit/popup/compositional/popup'` instead.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `import type { PopupContentProps } from '@atlaskit/popup/compositional/popup-content'` instead.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `import type { PopupTriggerProps } from '@atlaskit/popup/compositional/popup-trigger'` instead.
|
|
24
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* popup-top-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* popup-top-layer.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./popup-top-layer.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/dist/es2019/popup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* popup-content-top-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* popup-content-top-layer.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./popup-content-top-layer.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use `import { Popup } from '@atlaskit/popup/compositional/popup'` instead.
|
|
4
|
+
*/
|
|
1
5
|
export { Popup } from '../../compositional/popup';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `import { PopupContent } from '@atlaskit/popup/compositional/popup-content'` instead.
|
|
8
|
+
*/
|
|
2
9
|
export { PopupContent } from '../../compositional/popup-content';
|
|
3
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `import { PopupTrigger } from '@atlaskit/popup/compositional/popup-trigger'` instead.
|
|
12
|
+
*/
|
|
13
|
+
export { PopupTrigger } from '../../compositional/popup-trigger';
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `import type { PopupProps } from '@atlaskit/popup/compositional/popup'` instead.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `import type { PopupContentProps } from '@atlaskit/popup/compositional/popup-content'` instead.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `import type { PopupTriggerProps } from '@atlaskit/popup/compositional/popup-trigger'` instead.
|
|
24
|
+
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* popper-wrapper.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* popper-wrapper.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* popup-top-layer.tsx generated by @compiled/babel-plugin
|
|
1
|
+
/* popup-top-layer.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./popup-top-layer.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/dist/esm/popup.js
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `import { Popup } from '@atlaskit/popup/compositional/popup'` instead.
|
|
3
|
+
*/
|
|
1
4
|
export { Popup } from '../../compositional/popup';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use `import { PopupContent } from '@atlaskit/popup/compositional/popup-content'` instead.
|
|
7
|
+
*/
|
|
2
8
|
export { PopupContent } from '../../compositional/popup-content';
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `import { PopupTrigger } from '@atlaskit/popup/compositional/popup-trigger'` instead.
|
|
11
|
+
*/
|
|
3
12
|
export { PopupTrigger } from '../../compositional/popup-trigger';
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use `import type { PopupProps } from '@atlaskit/popup/compositional/popup'` instead.
|
|
15
|
+
*/
|
|
4
16
|
export type { PopupProps } from '../../compositional/popup';
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `import type { PopupContentProps } from '@atlaskit/popup/compositional/popup-content'` instead.
|
|
19
|
+
*/
|
|
5
20
|
export type { PopupContentProps } from '../../compositional/popup-content';
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Use `import type { PopupTriggerProps } from '@atlaskit/popup/compositional/popup-trigger'` instead.
|
|
23
|
+
*/
|
|
6
24
|
export type { PopupTriggerProps } from '../../compositional/popup-trigger';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popup",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "A popup displays brief content in an overlay.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"@atlaskit/layering": "^5.0.0",
|
|
37
37
|
"@atlaskit/motion": "^8.0.0",
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
39
|
-
"@atlaskit/popper": "^
|
|
39
|
+
"@atlaskit/popper": "^9.0.0",
|
|
40
40
|
"@atlaskit/portal": "^6.1.0",
|
|
41
41
|
"@atlaskit/primitives": "^22.2.0",
|
|
42
42
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
43
43
|
"@atlaskit/tokens": "^16.3.0",
|
|
44
|
-
"@atlaskit/top-layer": "^
|
|
44
|
+
"@atlaskit/top-layer": "^3.0.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@compiled/react": "^1.0.0",
|
|
47
47
|
"bind-event-listener": "^3.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@af/accessibility-testing": "workspace:^",
|
|
58
58
|
"@af/integration-testing": "workspace:^",
|
|
59
59
|
"@af/visual-regression": "workspace:^",
|
|
60
|
-
"@atlaskit/button": "^
|
|
60
|
+
"@atlaskit/button": "^25.0.0",
|
|
61
61
|
"@atlaskit/code": "^18.2.0",
|
|
62
62
|
"@atlaskit/docs": "^12.1.0",
|
|
63
63
|
"@atlaskit/form": "^16.1.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@atlaskit/icon": "^37.2.0",
|
|
66
66
|
"@atlaskit/link": "^5.0.0",
|
|
67
67
|
"@atlaskit/modal-dialog": "^16.2.0",
|
|
68
|
-
"@atlaskit/section-message": "^
|
|
69
|
-
"@atlaskit/textfield": "^
|
|
68
|
+
"@atlaskit/section-message": "^10.0.0",
|
|
69
|
+
"@atlaskit/textfield": "^10.0.0",
|
|
70
70
|
"@atlaskit/toggle": "^17.1.0",
|
|
71
71
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
72
72
|
"@atlassian/ssr-tests": "workspace:^",
|
package/popup/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popup/popup",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/popup.js",
|
|
4
|
+
"module": "../dist/esm/popup.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/popup.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/popup.d.ts"
|
|
10
10
|
}
|
package/types/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/popup/types",
|
|
3
|
-
"main": "../dist/cjs/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
3
|
+
"main": "../dist/cjs/types.js",
|
|
4
|
+
"module": "../dist/esm/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/types.js",
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/
|
|
9
|
+
"types": "../dist/types/types.d.ts"
|
|
10
10
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "PopupContent", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _popupContent.PopupContent;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _popupContent = require("../compositional/popup-content");
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "PopupTrigger", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _popupTrigger.PopupTrigger;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _popupTrigger = require("../compositional/popup-trigger");
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "Popup", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _popup.Popup;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _popup = require("../compositional/popup");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PopupContent } from '../compositional/popup-content';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PopupTrigger } from '../compositional/popup-trigger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Popup } from '../compositional/popup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Popup } from '../popup';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PopupContent } from '../compositional/popup-content';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { PopupTrigger } from '../compositional/popup-trigger';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Popup } from '../compositional/popup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Popup } from '../popup';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Popup } from '../popup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { ContentProps, PopupComponentProps, PopupProps, TriggerProps } from '../types';
|