@atlaskit/primitives 20.5.0 → 20.6.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 (31) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/compass.yml +10 -1
  3. package/compiled/surface-context/package.json +10 -0
  4. package/dist/cjs/compiled/components/anchor.js +1 -1
  5. package/dist/cjs/compiled/components/pressable.js +1 -1
  6. package/dist/cjs/components/anchor.js +1 -1
  7. package/dist/cjs/components/pressable.js +1 -1
  8. package/dist/cjs/entry-points/compiled-surface-context.js +12 -0
  9. package/dist/cjs/entry-points/responsive-media.js +12 -0
  10. package/dist/cjs/entry-points/responsive-unsafe-build-above-media-query-css.js +12 -0
  11. package/dist/es2019/compiled/components/anchor.js +1 -1
  12. package/dist/es2019/compiled/components/pressable.js +1 -1
  13. package/dist/es2019/components/anchor.js +1 -1
  14. package/dist/es2019/components/pressable.js +1 -1
  15. package/dist/es2019/entry-points/compiled-surface-context.js +1 -0
  16. package/dist/es2019/entry-points/responsive-media.js +1 -0
  17. package/dist/es2019/entry-points/responsive-unsafe-build-above-media-query-css.js +1 -0
  18. package/dist/esm/compiled/components/anchor.js +1 -1
  19. package/dist/esm/compiled/components/pressable.js +1 -1
  20. package/dist/esm/components/anchor.js +1 -1
  21. package/dist/esm/components/pressable.js +1 -1
  22. package/dist/esm/entry-points/compiled-surface-context.js +1 -0
  23. package/dist/esm/entry-points/responsive-media.js +1 -0
  24. package/dist/esm/entry-points/responsive-unsafe-build-above-media-query-css.js +1 -0
  25. package/dist/types/entry-points/compiled-surface-context.d.ts +1 -0
  26. package/dist/types/entry-points/responsive-media.d.ts +1 -0
  27. package/dist/types/entry-points/responsive-unsafe-build-above-media-query-css.d.ts +1 -0
  28. package/package.json +9 -7
  29. package/primitives.docs.tsx +11 -11
  30. package/responsive/media/package.json +10 -0
  31. package/responsive/unsafe-build-above-media-query-css/package.json +10 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 20.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c98e0cf5cc4f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c98e0cf5cc4f6) -
8
+ Autofix: add explicit package exports (barrel removal)
9
+
3
10
  ## 20.5.0
4
11
 
5
12
  ### Minor Changes
package/compass.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  configVersion: 1
2
2
  id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/ccfac433-f59e-46f5-95b4-ad827a4a4c66
3
3
  name: '@atlaskit/primitives'
4
- ownerId: ari:cloud:identity::team/be19136e-6275-419f-be0c-fcee844b8684 # Design System Engineers
4
+ ownerId: ari:cloud:teams::team/814283d6-8695-4329-b2f8-d78b2645722f # Design System Team (ADS)
5
5
  labels:
6
6
  - platform-code
7
7
  - platform-afm
@@ -27,6 +27,9 @@ customFields:
27
27
  - name: Technical Owner
28
28
  type: user
29
29
  value: ari:cloud:identity::user/557058:86a9b692-7997-49cb-9984-080801b1de91 # Jared Crowe
30
+ - name: Reviewer Team
31
+ type: text
32
+ value: ari:cloud:teams::team/be19136e-6275-419f-be0c-fcee844b8684 # Design System Engineers
30
33
  - name: Required Reviewers Opt In
31
34
  type: boolean
32
35
  value: true
@@ -36,3 +39,9 @@ customFields:
36
39
  - name: Required Reviewer Approvals
37
40
  type: number
38
41
  value: 1
42
+ - name: Trusted Committers
43
+ type: text
44
+ value: ari:cloud:teams::team/814283d6-8695-4329-b2f8-d78b2645722f # Design System Team (ADS)
45
+ - name: Trusted Reviewer Teams
46
+ type: text
47
+ value: ari:cloud:teams::team/42f4416b-e028-4daa-b2a5-afe213ac75e1 # Design System Designers
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/primitives/compiled/surface-context",
3
+ "main": "../../dist/cjs/entry-points/compiled-surface-context.js",
4
+ "module": "../../dist/esm/entry-points/compiled-surface-context.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/compiled-surface-context.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/compiled-surface-context.d.ts"
10
+ }
@@ -70,7 +70,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
70
70
  action: 'clicked',
71
71
  componentName: componentName || 'Anchor',
72
72
  packageName: "@atlaskit/primitives",
73
- packageVersion: "20.4.0",
73
+ packageVersion: "20.5.0",
74
74
  analyticsData: analyticsContext,
75
75
  actionSubject: 'link'
76
76
  });
@@ -61,7 +61,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
61
61
  action: 'clicked',
62
62
  componentName: componentName || 'Pressable',
63
63
  packageName: "@atlaskit/primitives",
64
- packageVersion: "20.4.0",
64
+ packageVersion: "20.5.0",
65
65
  analyticsData: analyticsContext,
66
66
  actionSubject: 'button'
67
67
  });
@@ -105,7 +105,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
105
105
  action: 'clicked',
106
106
  componentName: componentName || 'Anchor',
107
107
  packageName: "@atlaskit/primitives",
108
- packageVersion: "20.4.0",
108
+ packageVersion: "20.5.0",
109
109
  analyticsData: analyticsContext,
110
110
  actionSubject: 'link'
111
111
  });
@@ -97,7 +97,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
97
97
  action: 'clicked',
98
98
  componentName: componentName || 'Pressable',
99
99
  packageName: "@atlaskit/primitives",
100
- packageVersion: "20.4.0",
100
+ packageVersion: "20.5.0",
101
101
  analyticsData: analyticsContext,
102
102
  actionSubject: 'button'
103
103
  });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "UNSAFE_SurfaceContext", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _surfaceContext.SurfaceContext;
10
+ }
11
+ });
12
+ var _surfaceContext = require("../utils/surface-context");
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "media", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _media.media;
10
+ }
11
+ });
12
+ var _media = require("../responsive/media");
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "UNSAFE_buildAboveMediaQueryCSS", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _unsafeBuildAboveMediaQueryCss.UNSAFE_buildAboveMediaQueryCSS;
10
+ }
11
+ });
12
+ var _unsafeBuildAboveMediaQueryCss = require("../responsive/unsafe-build-above-media-query-css");
@@ -56,7 +56,7 @@ const AnchorNoRef = ({
56
56
  action: 'clicked',
57
57
  componentName: componentName || 'Anchor',
58
58
  packageName: "@atlaskit/primitives",
59
- packageVersion: "20.4.0",
59
+ packageVersion: "20.5.0",
60
60
  analyticsData: analyticsContext,
61
61
  actionSubject: 'link'
62
62
  });
@@ -48,7 +48,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
48
48
  action: 'clicked',
49
49
  componentName: componentName || 'Pressable',
50
50
  packageName: "@atlaskit/primitives",
51
- packageVersion: "20.4.0",
51
+ packageVersion: "20.5.0",
52
52
  analyticsData: analyticsContext,
53
53
  actionSubject: 'button'
54
54
  });
@@ -94,7 +94,7 @@ const AnchorNoRef = ({
94
94
  action: 'clicked',
95
95
  componentName: componentName || 'Anchor',
96
96
  packageName: "@atlaskit/primitives",
97
- packageVersion: "20.4.0",
97
+ packageVersion: "20.5.0",
98
98
  analyticsData: analyticsContext,
99
99
  actionSubject: 'link'
100
100
  });
@@ -86,7 +86,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
86
86
  action: 'clicked',
87
87
  componentName: componentName || 'Pressable',
88
88
  packageName: "@atlaskit/primitives",
89
- packageVersion: "20.4.0",
89
+ packageVersion: "20.5.0",
90
90
  analyticsData: analyticsContext,
91
91
  actionSubject: 'button'
92
92
  });
@@ -0,0 +1 @@
1
+ export { SurfaceContext as UNSAFE_SurfaceContext } from '../utils/surface-context';
@@ -0,0 +1 @@
1
+ export { media } from '../responsive/media';
@@ -0,0 +1 @@
1
+ export { UNSAFE_buildAboveMediaQueryCSS } from '../responsive/unsafe-build-above-media-query-css';
@@ -61,7 +61,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
61
61
  action: 'clicked',
62
62
  componentName: componentName || 'Anchor',
63
63
  packageName: "@atlaskit/primitives",
64
- packageVersion: "20.4.0",
64
+ packageVersion: "20.5.0",
65
65
  analyticsData: analyticsContext,
66
66
  actionSubject: 'link'
67
67
  });
@@ -52,7 +52,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
52
52
  action: 'clicked',
53
53
  componentName: componentName || 'Pressable',
54
54
  packageName: "@atlaskit/primitives",
55
- packageVersion: "20.4.0",
55
+ packageVersion: "20.5.0",
56
56
  analyticsData: analyticsContext,
57
57
  actionSubject: 'button'
58
58
  });
@@ -99,7 +99,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
99
99
  action: 'clicked',
100
100
  componentName: componentName || 'Anchor',
101
101
  packageName: "@atlaskit/primitives",
102
- packageVersion: "20.4.0",
102
+ packageVersion: "20.5.0",
103
103
  analyticsData: analyticsContext,
104
104
  actionSubject: 'link'
105
105
  });
@@ -91,7 +91,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
91
91
  action: 'clicked',
92
92
  componentName: componentName || 'Pressable',
93
93
  packageName: "@atlaskit/primitives",
94
- packageVersion: "20.4.0",
94
+ packageVersion: "20.5.0",
95
95
  analyticsData: analyticsContext,
96
96
  actionSubject: 'button'
97
97
  });
@@ -0,0 +1 @@
1
+ export { SurfaceContext as UNSAFE_SurfaceContext } from '../utils/surface-context';
@@ -0,0 +1 @@
1
+ export { media } from '../responsive/media';
@@ -0,0 +1 @@
1
+ export { UNSAFE_buildAboveMediaQueryCSS } from '../responsive/unsafe-build-above-media-query-css';
@@ -0,0 +1 @@
1
+ export { SurfaceContext as UNSAFE_SurfaceContext } from '../utils/surface-context';
@@ -0,0 +1 @@
1
+ export { media } from '../responsive/media';
@@ -0,0 +1 @@
1
+ export { UNSAFE_buildAboveMediaQueryCSS } from '../responsive/unsafe-build-above-media-query-css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "20.5.0",
3
+ "version": "20.6.0",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,7 +12,9 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": ["**/*.compiled.css"],
15
+ "sideEffects": [
16
+ "**/*.compiled.css"
17
+ ],
16
18
  "atlaskit:src": "src/index.tsx",
17
19
  "atlassian": {
18
20
  "react-compiler": {
@@ -137,7 +139,7 @@
137
139
  "@atlaskit/ds-lib": "^8.0.0",
138
140
  "@atlaskit/interaction-context": "^4.0.0",
139
141
  "@atlaskit/react-compiler-gating": "^0.2.0",
140
- "@atlaskit/tokens": "^15.5.0",
142
+ "@atlaskit/tokens": "^15.6.0",
141
143
  "@atlaskit/visually-hidden": "^4.1.0",
142
144
  "@babel/runtime": "^7.0.0",
143
145
  "@compiled/react": "^0.20.0",
@@ -156,19 +158,19 @@
156
158
  "@af/visual-regression": "workspace:^",
157
159
  "@atlaskit/avatar": "^26.1.0",
158
160
  "@atlaskit/button": "^24.3.0",
159
- "@atlaskit/checkbox": "^18.1.0",
161
+ "@atlaskit/checkbox": "^18.2.0",
160
162
  "@atlaskit/code": "^18.2.0",
161
163
  "@atlaskit/docs": "^12.0.0",
162
164
  "@atlaskit/dropdown-menu": "^17.1.0",
163
165
  "@atlaskit/flag": "^18.1.0",
164
166
  "@atlaskit/form": "^16.1.0",
165
167
  "@atlaskit/heading": "^6.2.0",
166
- "@atlaskit/icon": "^36.2.0",
167
- "@atlaskit/image": "^4.1.0",
168
+ "@atlaskit/icon": "^37.0.0",
169
+ "@atlaskit/image": "^4.2.0",
168
170
  "@atlaskit/link": "^4.1.0",
169
171
  "@atlaskit/logo": "^21.4.0",
170
172
  "@atlaskit/lozenge": "^14.1.0",
171
- "@atlaskit/motion": "^7.2.0",
173
+ "@atlaskit/motion": "^7.3.0",
172
174
  "@atlaskit/object": "^2.2.0",
173
175
  "@atlaskit/range": "^11.1.0",
174
176
  "@atlaskit/section-message": "^9.2.0",
@@ -11,7 +11,7 @@ const documentation: StructuredContentSource = {
11
11
  status: 'general-availability',
12
12
  import: {
13
13
  name: 'Anchor',
14
- package: '@atlaskit/primitives/compiled',
14
+ package: '@atlaskit/primitives/compiled/anchor',
15
15
  type: 'named',
16
16
  packagePath: path.resolve(__dirname),
17
17
  packageJson: require('./package.json'),
@@ -51,7 +51,7 @@ const documentation: StructuredContentSource = {
51
51
  status: 'general-availability',
52
52
  import: {
53
53
  name: 'Bleed',
54
- package: '@atlaskit/primitives/compiled',
54
+ package: '@atlaskit/primitives/compiled/bleed',
55
55
  type: 'named',
56
56
  packagePath: path.resolve(__dirname),
57
57
  packageJson: require('./package.json'),
@@ -84,7 +84,7 @@ const documentation: StructuredContentSource = {
84
84
  status: 'general-availability',
85
85
  import: {
86
86
  name: 'Box',
87
- package: '@atlaskit/primitives/compiled',
87
+ package: '@atlaskit/primitives/compiled/box',
88
88
  type: 'named',
89
89
  packagePath: path.resolve(__dirname),
90
90
  packageJson: require('./package.json'),
@@ -116,7 +116,7 @@ const documentation: StructuredContentSource = {
116
116
  status: 'general-availability',
117
117
  import: {
118
118
  name: 'Flex',
119
- package: '@atlaskit/primitives/compiled',
119
+ package: '@atlaskit/primitives/compiled/flex',
120
120
  type: 'named',
121
121
  packagePath: path.resolve(__dirname),
122
122
  packageJson: require('./package.json'),
@@ -149,7 +149,7 @@ const documentation: StructuredContentSource = {
149
149
  status: 'general-availability',
150
150
  import: {
151
151
  name: 'Focusable',
152
- package: '@atlaskit/primitives/compiled',
152
+ package: '@atlaskit/primitives/compiled/focusable',
153
153
  type: 'named',
154
154
  packagePath: path.resolve(__dirname),
155
155
  packageJson: require('./package.json'),
@@ -196,7 +196,7 @@ const documentation: StructuredContentSource = {
196
196
  status: 'general-availability',
197
197
  import: {
198
198
  name: 'Grid',
199
- package: '@atlaskit/primitives/compiled',
199
+ package: '@atlaskit/primitives/compiled/grid',
200
200
  type: 'named',
201
201
  packagePath: path.resolve(__dirname),
202
202
  packageJson: require('./package.json'),
@@ -228,7 +228,7 @@ const documentation: StructuredContentSource = {
228
228
  status: 'general-availability',
229
229
  import: {
230
230
  name: 'Inline',
231
- package: '@atlaskit/primitives/compiled',
231
+ package: '@atlaskit/primitives/compiled/inline',
232
232
  type: 'named',
233
233
  packagePath: path.resolve(__dirname),
234
234
  packageJson: require('./package.json'),
@@ -260,7 +260,7 @@ const documentation: StructuredContentSource = {
260
260
  status: 'general-availability',
261
261
  import: {
262
262
  name: 'MetricText',
263
- package: '@atlaskit/primitives/compiled',
263
+ package: '@atlaskit/primitives/compiled/metric-text',
264
264
  type: 'named',
265
265
  packagePath: path.resolve(__dirname),
266
266
  packageJson: require('./package.json'),
@@ -293,7 +293,7 @@ const documentation: StructuredContentSource = {
293
293
  status: 'general-availability',
294
294
  import: {
295
295
  name: 'Pressable',
296
- package: '@atlaskit/primitives/compiled',
296
+ package: '@atlaskit/primitives/compiled/pressable',
297
297
  type: 'named',
298
298
  packagePath: path.resolve(__dirname),
299
299
  packageJson: require('./package.json'),
@@ -332,7 +332,7 @@ const documentation: StructuredContentSource = {
332
332
  status: 'general-availability',
333
333
  import: {
334
334
  name: 'Stack',
335
- package: '@atlaskit/primitives/compiled',
335
+ package: '@atlaskit/primitives/compiled/stack',
336
336
  type: 'named',
337
337
  packagePath: path.resolve(__dirname),
338
338
  packageJson: require('./package.json'),
@@ -364,7 +364,7 @@ const documentation: StructuredContentSource = {
364
364
  status: 'general-availability',
365
365
  import: {
366
366
  name: 'Text',
367
- package: '@atlaskit/primitives/compiled',
367
+ package: '@atlaskit/primitives/compiled/text',
368
368
  type: 'named',
369
369
  packagePath: path.resolve(__dirname),
370
370
  packageJson: require('./package.json'),
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/primitives/responsive/media",
3
+ "main": "../../dist/cjs/entry-points/responsive-media.js",
4
+ "module": "../../dist/esm/entry-points/responsive-media.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/responsive-media.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/responsive-media.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/primitives/responsive/unsafe-build-above-media-query-css",
3
+ "main": "../../dist/cjs/entry-points/responsive-unsafe-build-above-media-query-css.js",
4
+ "module": "../../dist/esm/entry-points/responsive-unsafe-build-above-media-query-css.js",
5
+ "module:es2019": "../../dist/es2019/entry-points/responsive-unsafe-build-above-media-query-css.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/entry-points/responsive-unsafe-build-above-media-query-css.d.ts"
10
+ }