@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 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.4.0",
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.4.0",
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
- textAlign = _ref.textAlign,
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,
@@ -62,7 +62,7 @@ const Anchor = ({
62
62
  action: 'clicked',
63
63
  componentName: componentName || 'Anchor',
64
64
  packageName: "@atlaskit/primitives",
65
- packageVersion: "5.4.0",
65
+ packageVersion: "5.5.0",
66
66
  analyticsData: analyticsContext,
67
67
  actionSubject: 'link'
68
68
  });
@@ -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.4.0",
69
+ packageVersion: "5.5.0",
70
70
  analyticsData: analyticsContext,
71
71
  actionSubject: 'button'
72
72
  });
@@ -75,8 +75,7 @@ const useColor = (colorProp, hasTextAncestor) => {
75
75
  const Text = /*#__PURE__*/forwardRef(({
76
76
  as: Component = 'span',
77
77
  color: colorProp,
78
- textAlign,
79
- align = textAlign,
78
+ align,
80
79
  testId,
81
80
  id,
82
81
  size = 'medium',
@@ -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.4.0",
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.4.0",
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
- textAlign = _ref.textAlign,
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" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
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" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"