@atlaskit/primitives 5.4.0 → 5.5.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 +6 -0
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/components/text.js +1 -3
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/components/text.js +1 -2
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/components/text.js +1 -3
- package/dist/types/components/text.d.ts +1 -5
- package/dist/types-ts4.5/components/text.d.ts +1 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 5.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#86439](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86439) [`43cd9551f332`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/43cd9551f332) - Removed deprecated `textAlign` prop from Text primitive component
|
|
8
|
+
|
|
3
9
|
## 5.4.0
|
|
4
10
|
|
|
5
11
|
### Minor 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.5.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.5.0",
|
|
84
84
|
analyticsData: analyticsContext,
|
|
85
85
|
actionSubject: 'button'
|
|
86
86
|
});
|
|
@@ -86,9 +86,7 @@ var Text = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
86
86
|
var _ref$as = _ref.as,
|
|
87
87
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
88
88
|
colorProp = _ref.color,
|
|
89
|
-
|
|
90
|
-
_ref$align = _ref.align,
|
|
91
|
-
align = _ref$align === void 0 ? textAlign : _ref$align,
|
|
89
|
+
align = _ref.align,
|
|
92
90
|
testId = _ref.testId,
|
|
93
91
|
id = _ref.id,
|
|
94
92
|
_ref$size = _ref.size,
|
|
@@ -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.5.0",
|
|
70
70
|
analyticsData: analyticsContext,
|
|
71
71
|
actionSubject: 'button'
|
|
72
72
|
});
|
|
@@ -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.5.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.5.0",
|
|
74
74
|
analyticsData: analyticsContext,
|
|
75
75
|
actionSubject: 'button'
|
|
76
76
|
});
|
|
@@ -78,9 +78,7 @@ var Text = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
78
78
|
var _ref$as = _ref.as,
|
|
79
79
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
80
80
|
colorProp = _ref.color,
|
|
81
|
-
|
|
82
|
-
_ref$align = _ref.align,
|
|
83
|
-
align = _ref$align === void 0 ? textAlign : _ref$align,
|
|
81
|
+
align = _ref.align,
|
|
84
82
|
testId = _ref.testId,
|
|
85
83
|
id = _ref.id,
|
|
86
84
|
_ref$size = _ref.size,
|
|
@@ -29,10 +29,6 @@ type TextPropsBase<T extends ElementType = 'span'> = {
|
|
|
29
29
|
* When `maxLines={1}`, `wordBreak` defaults to `break-all` to match the behaviour of `text-overflow: ellipsis`.
|
|
30
30
|
*/
|
|
31
31
|
maxLines?: number;
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
|
|
34
|
-
*/
|
|
35
|
-
textAlign?: TextAlign;
|
|
36
32
|
/**
|
|
37
33
|
* Text alignment.
|
|
38
34
|
*/
|
|
@@ -66,5 +62,5 @@ declare const textAlignMap: {
|
|
|
66
62
|
*
|
|
67
63
|
* @internal
|
|
68
64
|
*/
|
|
69
|
-
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "
|
|
65
|
+
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
|
|
70
66
|
export default Text;
|
|
@@ -34,10 +34,6 @@ type TextPropsBase<T extends ElementType = 'span'> = {
|
|
|
34
34
|
* When `maxLines={1}`, `wordBreak` defaults to `break-all` to match the behaviour of `text-overflow: ellipsis`.
|
|
35
35
|
*/
|
|
36
36
|
maxLines?: number;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
|
|
39
|
-
*/
|
|
40
|
-
textAlign?: TextAlign;
|
|
41
37
|
/**
|
|
42
38
|
* Text alignment.
|
|
43
39
|
*/
|
|
@@ -71,5 +67,5 @@ declare const textAlignMap: {
|
|
|
71
67
|
*
|
|
72
68
|
* @internal
|
|
73
69
|
*/
|
|
74
|
-
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "
|
|
70
|
+
declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
|
|
75
71
|
export default Text;
|