@atlaskit/primitives 5.5.3 → 5.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.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/index.js +6 -0
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/index.js +2 -0
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 5.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#93535](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93535) [`e9177e2fdee3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9177e2fdee3) - Adds new export for Pressable as `Pressable` in preparation for open beta. The previous `UNSAFE_PRESSABLE` export remains available while existing usages are migrated, and will be removed in an upcoming major release.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#92007](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92007) [`85525725cb0d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/85525725cb0d) - Migrated to the new button component
|
|
12
|
+
|
|
3
13
|
## 5.5.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -76,7 +76,7 @@ var Anchor = function Anchor(_ref, ref) {
|
|
|
76
76
|
action: 'clicked',
|
|
77
77
|
componentName: componentName || 'Anchor',
|
|
78
78
|
packageName: "@atlaskit/primitives",
|
|
79
|
-
packageVersion: "5.
|
|
79
|
+
packageVersion: "5.6.0",
|
|
80
80
|
analyticsData: analyticsContext,
|
|
81
81
|
actionSubject: 'link'
|
|
82
82
|
});
|
|
@@ -80,7 +80,7 @@ var UNSAFE_PRESSABLE = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
|
80
80
|
action: 'clicked',
|
|
81
81
|
componentName: componentName || 'Pressable',
|
|
82
82
|
packageName: "@atlaskit/primitives",
|
|
83
|
-
packageVersion: "5.
|
|
83
|
+
packageVersion: "5.6.0",
|
|
84
84
|
analyticsData: analyticsContext,
|
|
85
85
|
actionSubject: 'button'
|
|
86
86
|
});
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,6 +34,12 @@ Object.defineProperty(exports, "Inline", {
|
|
|
34
34
|
return _inline.default;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
+
Object.defineProperty(exports, "Pressable", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _pressable.default;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
37
43
|
Object.defineProperty(exports, "Stack", {
|
|
38
44
|
enumerable: true,
|
|
39
45
|
get: function get() {
|
|
@@ -66,7 +66,7 @@ const UNSAFE_PRESSABLE = /*#__PURE__*/forwardRef(({
|
|
|
66
66
|
action: 'clicked',
|
|
67
67
|
componentName: componentName || 'Pressable',
|
|
68
68
|
packageName: "@atlaskit/primitives",
|
|
69
|
-
packageVersion: "5.
|
|
69
|
+
packageVersion: "5.6.0",
|
|
70
70
|
analyticsData: analyticsContext,
|
|
71
71
|
actionSubject: 'button'
|
|
72
72
|
});
|
package/dist/es2019/index.js
CHANGED
|
@@ -6,6 +6,8 @@ export { default as Flex } from './components/flex';
|
|
|
6
6
|
export { default as Grid } from './components/grid';
|
|
7
7
|
export { default as Bleed } from './components/bleed';
|
|
8
8
|
export { default as Text } from './components/text';
|
|
9
|
+
// TODO: Remove UNSAFE_PRESSABLE once all usages are migrated to Pressable
|
|
9
10
|
export { default as UNSAFE_PRESSABLE } from './components/pressable';
|
|
11
|
+
export { default as Pressable } from './components/pressable';
|
|
10
12
|
export { default as UNSAFE_ANCHOR } from './components/anchor';
|
|
11
13
|
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
|
@@ -66,7 +66,7 @@ var Anchor = function Anchor(_ref, ref) {
|
|
|
66
66
|
action: 'clicked',
|
|
67
67
|
componentName: componentName || 'Anchor',
|
|
68
68
|
packageName: "@atlaskit/primitives",
|
|
69
|
-
packageVersion: "5.
|
|
69
|
+
packageVersion: "5.6.0",
|
|
70
70
|
analyticsData: analyticsContext,
|
|
71
71
|
actionSubject: 'link'
|
|
72
72
|
});
|
|
@@ -70,7 +70,7 @@ var UNSAFE_PRESSABLE = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
70
70
|
action: 'clicked',
|
|
71
71
|
componentName: componentName || 'Pressable',
|
|
72
72
|
packageName: "@atlaskit/primitives",
|
|
73
|
-
packageVersion: "5.
|
|
73
|
+
packageVersion: "5.6.0",
|
|
74
74
|
analyticsData: analyticsContext,
|
|
75
75
|
actionSubject: 'button'
|
|
76
76
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -6,6 +6,8 @@ export { default as Flex } from './components/flex';
|
|
|
6
6
|
export { default as Grid } from './components/grid';
|
|
7
7
|
export { default as Bleed } from './components/bleed';
|
|
8
8
|
export { default as Text } from './components/text';
|
|
9
|
+
// TODO: Remove UNSAFE_PRESSABLE once all usages are migrated to Pressable
|
|
9
10
|
export { default as UNSAFE_PRESSABLE } from './components/pressable';
|
|
11
|
+
export { default as Pressable } from './components/pressable';
|
|
10
12
|
export { default as UNSAFE_ANCHOR } from './components/anchor';
|
|
11
13
|
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type { BleedProps } from './components/bleed';
|
|
|
16
16
|
export { default as Text } from './components/text';
|
|
17
17
|
export type { TextProps } from './components/text';
|
|
18
18
|
export { default as UNSAFE_PRESSABLE } from './components/pressable';
|
|
19
|
+
export { default as Pressable } from './components/pressable';
|
|
19
20
|
export type { PressableProps as UNSAFE_PressableProps } from './components/pressable';
|
|
20
21
|
export { default as UNSAFE_ANCHOR } from './components/anchor';
|
|
21
22
|
export type { AnchorProps as UNSAFE_AnchorProps } from './components/anchor';
|
|
@@ -16,6 +16,7 @@ export type { BleedProps } from './components/bleed';
|
|
|
16
16
|
export { default as Text } from './components/text';
|
|
17
17
|
export type { TextProps } from './components/text';
|
|
18
18
|
export { default as UNSAFE_PRESSABLE } from './components/pressable';
|
|
19
|
+
export { default as Pressable } from './components/pressable';
|
|
19
20
|
export type { PressableProps as UNSAFE_PressableProps } from './components/pressable';
|
|
20
21
|
export { default as UNSAFE_ANCHOR } from './components/anchor';
|
|
21
22
|
export type { AnchorProps as UNSAFE_AnchorProps } from './components/anchor';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
"codegen-styles": "ts-node -r tsconfig-paths/register ./scripts/codegen-styles.tsx"
|
|
123
123
|
},
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"@atlaskit/analytics-next": "^9.
|
|
125
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
126
126
|
"@atlaskit/app-provider": "^1.3.0",
|
|
127
127
|
"@atlaskit/css": "^0.1.0",
|
|
128
|
-
"@atlaskit/ds-lib": "^2.
|
|
128
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
129
129
|
"@atlaskit/interaction-context": "^2.1.0",
|
|
130
130
|
"@atlaskit/tokens": "^1.43.0",
|
|
131
131
|
"@atlaskit/visually-hidden": "^1.2.4",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"@af/accessibility-testing": "*",
|
|
143
143
|
"@atlaskit/ssr": "*",
|
|
144
|
-
"@atlaskit/tooltip": "
|
|
144
|
+
"@atlaskit/tooltip": "^18.2.1",
|
|
145
145
|
"@atlaskit/visual-regression": "*",
|
|
146
146
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
147
147
|
"@atlassian/codegen": "^0.1.0",
|