@atlaskit/popup 5.2.3 → 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.
Files changed (30) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/compositional/popup/package.json +4 -4
  3. package/compositional/popup-content/package.json +4 -4
  4. package/compositional/popup-trigger/package.json +4 -4
  5. package/dist/es2019/entry-points/experimental/compositional.js +22 -1
  6. package/dist/esm/entry-points/experimental/compositional.js +22 -1
  7. package/dist/types/entry-points/experimental/compositional.d.ts +18 -0
  8. package/package.json +5 -5
  9. package/popup/package.json +4 -4
  10. package/types/package.json +4 -4
  11. package/dist/cjs/entry-points/compositional-popup-content.js +0 -12
  12. package/dist/cjs/entry-points/compositional-popup-trigger.js +0 -12
  13. package/dist/cjs/entry-points/compositional-popup.js +0 -12
  14. package/dist/cjs/entry-points/popup.js +0 -12
  15. package/dist/cjs/entry-points/types.js +0 -1
  16. package/dist/es2019/entry-points/compositional-popup-content.js +0 -1
  17. package/dist/es2019/entry-points/compositional-popup-trigger.js +0 -1
  18. package/dist/es2019/entry-points/compositional-popup.js +0 -1
  19. package/dist/es2019/entry-points/popup.js +0 -1
  20. package/dist/es2019/entry-points/types.js +0 -0
  21. package/dist/esm/entry-points/compositional-popup-content.js +0 -1
  22. package/dist/esm/entry-points/compositional-popup-trigger.js +0 -1
  23. package/dist/esm/entry-points/compositional-popup.js +0 -1
  24. package/dist/esm/entry-points/popup.js +0 -1
  25. package/dist/esm/entry-points/types.js +0 -0
  26. package/dist/types/entry-points/compositional-popup-content.d.ts +0 -2
  27. package/dist/types/entry-points/compositional-popup-trigger.d.ts +0 -2
  28. package/dist/types/entry-points/compositional-popup.d.ts +0 -2
  29. package/dist/types/entry-points/popup.d.ts +0 -1
  30. package/dist/types/entry-points/types.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
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
+
3
46
  ## 5.2.3
4
47
 
5
48
  ### Patch Changes
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@atlaskit/popup/compositional/popup",
3
- "main": "../../dist/cjs/entry-points/compositional-popup.js",
4
- "module": "../../dist/esm/entry-points/compositional-popup.js",
5
- "module:es2019": "../../dist/es2019/entry-points/compositional-popup.js",
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/entry-points/compositional-popup.d.ts"
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/entry-points/compositional-popup-content.js",
4
- "module": "../../dist/esm/entry-points/compositional-popup-content.js",
5
- "module:es2019": "../../dist/es2019/entry-points/compositional-popup-content.js",
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/entry-points/compositional-popup-content.d.ts"
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/entry-points/compositional-popup-trigger.js",
4
- "module": "../../dist/esm/entry-points/compositional-popup-trigger.js",
5
- "module:es2019": "../../dist/es2019/entry-points/compositional-popup-trigger.js",
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/entry-points/compositional-popup-trigger.d.ts"
9
+ "types": "../../dist/types/compositional/popup-trigger.d.ts"
10
10
  }
@@ -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
- export { PopupTrigger } from '../../compositional/popup-trigger';
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,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
- export { PopupTrigger } from '../../compositional/popup-trigger';
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,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": "5.2.3",
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,7 +36,7 @@
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": "^8.5.0",
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",
@@ -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": "^24.3.0",
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": "^9.2.0",
69
- "@atlaskit/textfield": "^9.1.0",
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:^",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@atlaskit/popup/popup",
3
- "main": "../dist/cjs/entry-points/popup.js",
4
- "module": "../dist/esm/entry-points/popup.js",
5
- "module:es2019": "../dist/es2019/entry-points/popup.js",
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/entry-points/popup.d.ts"
9
+ "types": "../dist/types/popup.d.ts"
10
10
  }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@atlaskit/popup/types",
3
- "main": "../dist/cjs/entry-points/types.js",
4
- "module": "../dist/esm/entry-points/types.js",
5
- "module:es2019": "../dist/es2019/entry-points/types.js",
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/entry-points/types.d.ts"
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,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("../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,2 +0,0 @@
1
- export { PopupContent } from '../compositional/popup-content';
2
- export type { PopupContentProps } from '../compositional/popup-content';
@@ -1,2 +0,0 @@
1
- export { PopupTrigger } from '../compositional/popup-trigger';
2
- export type { PopupTriggerProps } from '../compositional/popup-trigger';
@@ -1,2 +0,0 @@
1
- export { Popup } from '../compositional/popup';
2
- export type { PopupProps } from '../compositional/popup';
@@ -1 +0,0 @@
1
- export { Popup } from '../popup';
@@ -1 +0,0 @@
1
- export type { ContentProps, PopupComponentProps, PopupProps, TriggerProps } from '../types';