@atlaskit/primitives 14.5.0 → 14.7.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 +23 -0
- package/dist/cjs/compiled/components/anchor.js +1 -1
- package/dist/cjs/compiled/components/pressable.js +1 -1
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/index.js +0 -6
- package/dist/es2019/compiled/components/anchor.js +1 -1
- package/dist/es2019/compiled/components/pressable.js +1 -1
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/index.js +1 -5
- package/dist/esm/compiled/components/anchor.js +1 -1
- package/dist/esm/compiled/components/pressable.js +1 -1
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/index.js +1 -5
- package/dist/types/components/anchor.d.ts +1 -0
- package/dist/types/components/pressable.d.ts +1 -0
- package/dist/types/index.d.ts +2 -10
- package/dist/types-ts4.5/components/anchor.d.ts +1 -0
- package/dist/types-ts4.5/components/pressable.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +2 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 14.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#146876](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146876)
|
|
8
|
+
[`1f9d7feceff9f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1f9d7feceff9f) -
|
|
9
|
+
Removed deprecated unsafe anchor and unsafe anchor props.
|
|
10
|
+
|
|
11
|
+
## 14.6.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#148632](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148632)
|
|
16
|
+
[`9dd484b8a47eb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9dd484b8a47eb) -
|
|
17
|
+
Make `<Pressable backgroundColor>` and `<Anchor backgroundColor>` a deprecated prop to ease the
|
|
18
|
+
migration to `@atlaskit/primitives/compiled` as including a `backgroundColor` style map for this
|
|
19
|
+
component is a large bytesize impact and it may lead to bad patterns as you should typically also
|
|
20
|
+
have `backgroundColor` changes in `&:hover` and `&:focus` states.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 14.5.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -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: "14.
|
|
73
|
+
packageVersion: "14.7.0",
|
|
74
74
|
analyticsData: analyticsContext,
|
|
75
75
|
actionSubject: 'link'
|
|
76
76
|
});
|
|
@@ -60,7 +60,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
60
60
|
action: 'clicked',
|
|
61
61
|
componentName: componentName || 'Pressable',
|
|
62
62
|
packageName: "@atlaskit/primitives",
|
|
63
|
-
packageVersion: "14.
|
|
63
|
+
packageVersion: "14.7.0",
|
|
64
64
|
analyticsData: analyticsContext,
|
|
65
65
|
actionSubject: 'button'
|
|
66
66
|
});
|
|
@@ -100,7 +100,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
100
100
|
action: 'clicked',
|
|
101
101
|
componentName: componentName || 'Anchor',
|
|
102
102
|
packageName: "@atlaskit/primitives",
|
|
103
|
-
packageVersion: "14.
|
|
103
|
+
packageVersion: "14.7.0",
|
|
104
104
|
analyticsData: analyticsContext,
|
|
105
105
|
actionSubject: 'link'
|
|
106
106
|
});
|
|
@@ -95,7 +95,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
95
95
|
action: 'clicked',
|
|
96
96
|
componentName: componentName || 'Pressable',
|
|
97
97
|
packageName: "@atlaskit/primitives",
|
|
98
|
-
packageVersion: "14.
|
|
98
|
+
packageVersion: "14.7.0",
|
|
99
99
|
analyticsData: analyticsContext,
|
|
100
100
|
actionSubject: 'button'
|
|
101
101
|
});
|
package/dist/cjs/index.js
CHANGED
|
@@ -58,12 +58,6 @@ Object.defineProperty(exports, "Text", {
|
|
|
58
58
|
return _text.default;
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
Object.defineProperty(exports, "UNSAFE_ANCHOR", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function get() {
|
|
64
|
-
return _anchor.default;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
61
|
Object.defineProperty(exports, "UNSAFE_BREAKPOINTS_CONFIG", {
|
|
68
62
|
enumerable: true,
|
|
69
63
|
get: function get() {
|
|
@@ -46,7 +46,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
46
46
|
action: 'clicked',
|
|
47
47
|
componentName: componentName || 'Pressable',
|
|
48
48
|
packageName: "@atlaskit/primitives",
|
|
49
|
-
packageVersion: "14.
|
|
49
|
+
packageVersion: "14.7.0",
|
|
50
50
|
analyticsData: analyticsContext,
|
|
51
51
|
actionSubject: 'button'
|
|
52
52
|
});
|
|
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
85
85
|
action: 'clicked',
|
|
86
86
|
componentName: componentName || 'Pressable',
|
|
87
87
|
packageName: "@atlaskit/primitives",
|
|
88
|
-
packageVersion: "14.
|
|
88
|
+
packageVersion: "14.7.0",
|
|
89
89
|
analyticsData: analyticsContext,
|
|
90
90
|
actionSubject: 'button'
|
|
91
91
|
});
|
package/dist/es2019/index.js
CHANGED
|
@@ -7,11 +7,7 @@ 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
9
|
export { default as Pressable } from './components/pressable';
|
|
10
|
-
export {
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `Anchor` instead. This will be removed in a future major release.
|
|
13
|
-
*/
|
|
14
|
-
default as UNSAFE_ANCHOR, default as Anchor } from './components/anchor';
|
|
10
|
+
export { default as Anchor } from './components/anchor';
|
|
15
11
|
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
|
16
12
|
export { useSurface as UNSAFE_useSurface } from './utils/surface-provider';
|
|
17
13
|
export { inverseColorMap as UNSAFE_inverseColorMap } from './xcss/style-maps.partial';
|
|
@@ -60,7 +60,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
60
60
|
action: 'clicked',
|
|
61
61
|
componentName: componentName || 'Anchor',
|
|
62
62
|
packageName: "@atlaskit/primitives",
|
|
63
|
-
packageVersion: "14.
|
|
63
|
+
packageVersion: "14.7.0",
|
|
64
64
|
analyticsData: analyticsContext,
|
|
65
65
|
actionSubject: 'link'
|
|
66
66
|
});
|
|
@@ -50,7 +50,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50
50
|
action: 'clicked',
|
|
51
51
|
componentName: componentName || 'Pressable',
|
|
52
52
|
packageName: "@atlaskit/primitives",
|
|
53
|
-
packageVersion: "14.
|
|
53
|
+
packageVersion: "14.7.0",
|
|
54
54
|
analyticsData: analyticsContext,
|
|
55
55
|
actionSubject: 'button'
|
|
56
56
|
});
|
|
@@ -94,7 +94,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
94
94
|
action: 'clicked',
|
|
95
95
|
componentName: componentName || 'Anchor',
|
|
96
96
|
packageName: "@atlaskit/primitives",
|
|
97
|
-
packageVersion: "14.
|
|
97
|
+
packageVersion: "14.7.0",
|
|
98
98
|
analyticsData: analyticsContext,
|
|
99
99
|
actionSubject: 'link'
|
|
100
100
|
});
|
|
@@ -89,7 +89,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
89
89
|
action: 'clicked',
|
|
90
90
|
componentName: componentName || 'Pressable',
|
|
91
91
|
packageName: "@atlaskit/primitives",
|
|
92
|
-
packageVersion: "14.
|
|
92
|
+
packageVersion: "14.7.0",
|
|
93
93
|
analyticsData: analyticsContext,
|
|
94
94
|
actionSubject: 'button'
|
|
95
95
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -7,11 +7,7 @@ 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
9
|
export { default as Pressable } from './components/pressable';
|
|
10
|
-
export {
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `Anchor` instead. This will be removed in a future major release.
|
|
13
|
-
*/
|
|
14
|
-
default as UNSAFE_ANCHOR, default as Anchor } from './components/anchor';
|
|
10
|
+
export { default as Anchor } from './components/anchor';
|
|
15
11
|
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
|
16
12
|
export { useSurface as UNSAFE_useSurface } from './utils/surface-provider';
|
|
17
13
|
export { inverseColorMap as UNSAFE_inverseColorMap } from './xcss/style-maps.partial';
|
|
@@ -31,6 +31,7 @@ type BaseAnchorProps = {
|
|
|
31
31
|
analyticsContext?: Record<string, any>;
|
|
32
32
|
/**
|
|
33
33
|
* Token representing background color with a built-in fallback value.
|
|
34
|
+
* @deprecated Please pass via `props.xcss`, eg. `xcss({ backgroundColor: '…' })` instead and include states such as hover values as well.
|
|
34
35
|
*/
|
|
35
36
|
backgroundColor?: BackgroundColor;
|
|
36
37
|
/**
|
|
@@ -33,6 +33,7 @@ type BasePressableProps = {
|
|
|
33
33
|
analyticsContext?: Record<string, any>;
|
|
34
34
|
/**
|
|
35
35
|
* Token representing background color with a built-in fallback value.
|
|
36
|
+
* @deprecated Please pass via `props.xcss`, eg. `xcss({ backgroundColor: '…' })` instead and include states such as hover values as well.
|
|
36
37
|
*/
|
|
37
38
|
backgroundColor?: BackgroundColor;
|
|
38
39
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -17,16 +17,8 @@ export { default as Text } from './components/text';
|
|
|
17
17
|
export type { TextProps } from './components/text';
|
|
18
18
|
export { default as Pressable } from './components/pressable';
|
|
19
19
|
export type { PressableProps } from './components/pressable';
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
* @deprecated Use `Anchor` instead. This will be removed in a future major release.
|
|
23
|
-
*/
|
|
24
|
-
default as UNSAFE_ANCHOR, default as Anchor, } from './components/anchor';
|
|
25
|
-
export type {
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `AnchorProps` instead. This will be removed in a future major release.
|
|
28
|
-
*/
|
|
29
|
-
AnchorProps as UNSAFE_AnchorProps, AnchorProps, } from './components/anchor';
|
|
20
|
+
export { default as Anchor } from './components/anchor';
|
|
21
|
+
export type { AnchorProps } from './components/anchor';
|
|
30
22
|
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
|
31
23
|
export type { Breakpoint, MediaQuery } from './responsive';
|
|
32
24
|
export { useSurface as UNSAFE_useSurface } from './utils/surface-provider';
|
|
@@ -31,6 +31,7 @@ type BaseAnchorProps = {
|
|
|
31
31
|
analyticsContext?: Record<string, any>;
|
|
32
32
|
/**
|
|
33
33
|
* Token representing background color with a built-in fallback value.
|
|
34
|
+
* @deprecated Please pass via `props.xcss`, eg. `xcss({ backgroundColor: '…' })` instead and include states such as hover values as well.
|
|
34
35
|
*/
|
|
35
36
|
backgroundColor?: BackgroundColor;
|
|
36
37
|
/**
|
|
@@ -33,6 +33,7 @@ type BasePressableProps = {
|
|
|
33
33
|
analyticsContext?: Record<string, any>;
|
|
34
34
|
/**
|
|
35
35
|
* Token representing background color with a built-in fallback value.
|
|
36
|
+
* @deprecated Please pass via `props.xcss`, eg. `xcss({ backgroundColor: '…' })` instead and include states such as hover values as well.
|
|
36
37
|
*/
|
|
37
38
|
backgroundColor?: BackgroundColor;
|
|
38
39
|
/**
|
|
@@ -17,16 +17,8 @@ export { default as Text } from './components/text';
|
|
|
17
17
|
export type { TextProps } from './components/text';
|
|
18
18
|
export { default as Pressable } from './components/pressable';
|
|
19
19
|
export type { PressableProps } from './components/pressable';
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
* @deprecated Use `Anchor` instead. This will be removed in a future major release.
|
|
23
|
-
*/
|
|
24
|
-
default as UNSAFE_ANCHOR, default as Anchor, } from './components/anchor';
|
|
25
|
-
export type {
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `AnchorProps` instead. This will be removed in a future major release.
|
|
28
|
-
*/
|
|
29
|
-
AnchorProps as UNSAFE_AnchorProps, AnchorProps, } from './components/anchor';
|
|
20
|
+
export { default as Anchor } from './components/anchor';
|
|
21
|
+
export type { AnchorProps } from './components/anchor';
|
|
30
22
|
export { media, UNSAFE_media, UNSAFE_BREAKPOINTS_CONFIG } from './responsive';
|
|
31
23
|
export type { Breakpoint, MediaQuery } from './responsive';
|
|
32
24
|
export { useSurface as UNSAFE_useSurface } from './utils/surface-provider';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.7.0",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@atlaskit/icon-object": "^7.1.0",
|
|
160
160
|
"@atlaskit/image": "^3.0.0",
|
|
161
161
|
"@atlaskit/link": "^3.1.0",
|
|
162
|
-
"@atlaskit/logo": "^
|
|
162
|
+
"@atlaskit/logo": "^18.0.0",
|
|
163
163
|
"@atlaskit/lozenge": "^12.2.0",
|
|
164
164
|
"@atlaskit/motion": "^5.1.0",
|
|
165
165
|
"@atlaskit/range": "^9.0.0",
|