@atlaskit/page-header 10.9.0 → 10.9.2

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,24 @@
1
1
  # @atlaskit/page-header
2
2
 
3
+ ## 10.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#129726](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129726)
8
+ [`778c15c1d279a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/778c15c1d279a) -
9
+ [ux] Removed feature flag
10
+ `platform.design-system-team.page-header-tokenised-typography-styles_lj1ix`. Title line height
11
+ visually changes as part of the internal typography changes.
12
+
13
+ ## 10.9.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#129411](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129411)
18
+ [`300b0a472d9ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/300b0a472d9ce) -
19
+ Removes deprecated usage of ak/theme mixin functions and replaces them with their direct outputs
20
+ - Updated dependencies
21
+
3
22
  ## 10.9.0
4
23
 
5
24
  ### Minor Changes
@@ -5,12 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.TitleWrapper = exports.TitleContainer = exports.StyledTitleWrapper = exports.OuterWrapper = exports.BottomBarWrapper = exports.ActionsWrapper = void 0;
8
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
9
  var _react2 = require("@emotion/react");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
10
  var _primitives = require("@atlaskit/primitives");
13
- var _typography = require("@atlaskit/theme/typography");
14
11
  // TODO: Remove this eslint-disable when prop names have been renamed.
15
12
  // This rule is here as prop name changes are a major as they are used
16
13
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -38,11 +35,6 @@ var titleStyles = (0, _react2.css)({
38
35
  marginBlockStart: 0,
39
36
  outline: 'none'
40
37
  });
41
- var styledTitleStyles = (0, _react2.css)({
42
- lineHeight: "var(--ds-font-lineHeight-500, 32px)",
43
- marginBlockStart: 0,
44
- outline: 'none'
45
- });
46
38
  var titleWrapperStyles = (0, _react2.css)({
47
39
  display: 'flex',
48
40
  alignItems: 'flex-start',
@@ -91,9 +83,6 @@ var OuterWrapper = exports.OuterWrapper = function OuterWrapper(_ref) {
91
83
  css: outerStyles
92
84
  }, children);
93
85
  };
94
-
95
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
96
- var h700Styles = (0, _react2.css)((0, _typography.h700)());
97
86
  /**
98
87
  * __Styled title wrapper__.
99
88
  *
@@ -105,7 +94,7 @@ var StyledTitleWrapper = exports.StyledTitleWrapper = /*#__PURE__*/_react.defaul
105
94
  id = _ref2.id,
106
95
  truncateTitle = _ref2.truncateTitle;
107
96
  return (0, _react2.jsx)("h1", {
108
- css: [].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.page-header-tokenised-typography-styles_lj1ix') ? [titleStyles] : [h700Styles, styledTitleStyles]), [truncateTitle && truncateStyles]),
97
+ css: [titleStyles, truncateTitle && truncateStyles],
109
98
  ref: ref,
110
99
  tabIndex: -1,
111
100
  id: id
@@ -12,9 +12,7 @@ import React from 'react';
12
12
 
13
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
14
  import { css, jsx } from '@emotion/react';
15
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
16
15
  import { Box, xcss } from '@atlaskit/primitives';
17
- import { h700 } from '@atlaskit/theme/typography';
18
16
  const truncateStyles = css({
19
17
  overflowX: 'hidden',
20
18
  textOverflow: 'ellipsis',
@@ -30,11 +28,6 @@ const titleStyles = css({
30
28
  marginBlockStart: 0,
31
29
  outline: 'none'
32
30
  });
33
- const styledTitleStyles = css({
34
- lineHeight: "var(--ds-font-lineHeight-500, 32px)",
35
- marginBlockStart: 0,
36
- outline: 'none'
37
- });
38
31
  const titleWrapperStyles = css({
39
32
  display: 'flex',
40
33
  alignItems: 'flex-start',
@@ -84,9 +77,6 @@ export const OuterWrapper = ({
84
77
  css: outerStyles
85
78
  }, children);
86
79
  };
87
-
88
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
89
- const h700Styles = css(h700());
90
80
  /**
91
81
  * __Styled title wrapper__.
92
82
  *
@@ -99,9 +89,7 @@ export const StyledTitleWrapper = /*#__PURE__*/React.forwardRef(({
99
89
  truncateTitle
100
90
  }, ref) => {
101
91
  return jsx("h1", {
102
- css: [
103
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
104
- ...(getBooleanFF('platform.design-system-team.page-header-tokenised-typography-styles_lj1ix') ? [titleStyles] : [h700Styles, styledTitleStyles]), truncateTitle && truncateStyles],
92
+ css: [titleStyles, truncateTitle && truncateStyles],
105
93
  ref: ref,
106
94
  tabIndex: -1,
107
95
  id: id
@@ -1,4 +1,3 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
1
  // TODO: Remove this eslint-disable when prop names have been renamed.
3
2
  // This rule is here as prop name changes are a major as they are used
4
3
  // by our consumers. The prop name concerned here is truncateTitle.
@@ -13,9 +12,7 @@ import React from 'react';
13
12
 
14
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
14
  import { css, jsx } from '@emotion/react';
16
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
17
15
  import { Box, xcss } from '@atlaskit/primitives';
18
- import { h700 } from '@atlaskit/theme/typography';
19
16
  var truncateStyles = css({
20
17
  overflowX: 'hidden',
21
18
  textOverflow: 'ellipsis',
@@ -31,11 +28,6 @@ var titleStyles = css({
31
28
  marginBlockStart: 0,
32
29
  outline: 'none'
33
30
  });
34
- var styledTitleStyles = css({
35
- lineHeight: "var(--ds-font-lineHeight-500, 32px)",
36
- marginBlockStart: 0,
37
- outline: 'none'
38
- });
39
31
  var titleWrapperStyles = css({
40
32
  display: 'flex',
41
33
  alignItems: 'flex-start',
@@ -84,9 +76,6 @@ export var OuterWrapper = function OuterWrapper(_ref) {
84
76
  css: outerStyles
85
77
  }, children);
86
78
  };
87
-
88
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
89
- var h700Styles = css(h700());
90
79
  /**
91
80
  * __Styled title wrapper__.
92
81
  *
@@ -98,7 +87,7 @@ export var StyledTitleWrapper = /*#__PURE__*/React.forwardRef(function (_ref2, r
98
87
  id = _ref2.id,
99
88
  truncateTitle = _ref2.truncateTitle;
100
89
  return jsx("h1", {
101
- css: [].concat(_toConsumableArray(getBooleanFF('platform.design-system-team.page-header-tokenised-typography-styles_lj1ix') ? [titleStyles] : [h700Styles, styledTitleStyles]), [truncateTitle && truncateStyles]),
90
+ css: [titleStyles, truncateTitle && truncateStyles],
102
91
  ref: ref,
103
92
  tabIndex: -1,
104
93
  id: id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-header",
3
- "version": "10.9.0",
3
+ "version": "10.9.2",
4
4
  "description": "A page header defines the top of a page. It contains a title and can be optionally combined with breadcrumbs buttons, search, and filters.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,9 +27,7 @@
27
27
  "runReact18": true
28
28
  },
29
29
  "dependencies": {
30
- "@atlaskit/platform-feature-flags": "^0.3.0",
31
30
  "@atlaskit/primitives": "^12.0.0",
32
- "@atlaskit/theme": "^12.12.0",
33
31
  "@atlaskit/tokens": "^1.58.0",
34
32
  "@babel/runtime": "^7.0.0",
35
33
  "@emotion/react": "^11.7.1"
@@ -90,10 +88,5 @@
90
88
  "homepage": "https://atlassian.design/components/page-header",
91
89
  "af:exports": {
92
90
  ".": "./src/index.tsx"
93
- },
94
- "platform-feature-flags": {
95
- "platform.design-system-team.page-header-tokenised-typography-styles_lj1ix": {
96
- "type": "boolean"
97
- }
98
91
  }
99
92
  }