@atlaskit/dynamic-table 15.1.1 → 15.2.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,19 @@
1
1
  # @atlaskit/dynamic-table
2
2
 
3
+ ## 15.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#149695](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/149695)
8
+ [`45d766152e3a9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/45d766152e3a9) -
9
+ Updated header styles introduced in v15.1.0 are now default and no longer behind a feature flag.
10
+
11
+ ## 15.1.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 15.1.1
4
18
 
5
19
  ### Patch Changes
@@ -86,14 +86,14 @@ var DynamicTable = function DynamicTable(_ref) {
86
86
  action: 'sorted',
87
87
  componentName: 'dynamicTable',
88
88
  packageName: "@atlaskit/dynamic-table",
89
- packageVersion: "15.1.1"
89
+ packageVersion: "15.2.0"
90
90
  });
91
91
  var onRankEnd = (0, _analyticsNext.usePlatformLeafEventHandler)({
92
92
  fn: providedOnRankEnd,
93
93
  action: 'ranked',
94
94
  componentName: 'dynamicTable',
95
95
  packageName: "@atlaskit/dynamic-table",
96
- packageVersion: "15.1.1"
96
+ packageVersion: "15.2.0"
97
97
  });
98
98
  (0, _react.useEffect)(function () {
99
99
  (0, _helpers.validateSortKey)(sortKey, head);
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _colors = require("@atlaskit/theme/colors");
15
14
  var _constants = require("../internal/constants");
16
15
  var _theme = require("../theme");
@@ -43,20 +42,6 @@ var Head = exports.Head = function Head(_ref) {
43
42
  }, props));
44
43
  };
45
44
  var headCellBaseStyles = (0, _react2.css)({
46
- boxSizing: 'border-box',
47
- position: 'relative',
48
- border: 'none',
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
50
- borderBlockEnd: "2px solid ".concat(_theme.tableBorder.borderColor),
51
- color: "var(--ds-text-subtlest, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"),
52
- font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
53
- textAlign: 'left',
54
- verticalAlign: 'top',
55
- '&:focus-visible': {
56
- outline: "solid 2px ".concat("var(--ds-border-focused, ".concat(_colors.B100, ")"))
57
- }
58
- });
59
- var headCellBaseStylesModernized = (0, _react2.css)({
60
45
  boxSizing: 'border-box',
61
46
  position: 'relative',
62
47
  border: 'none',
@@ -197,7 +182,7 @@ var HeadCell = exports.HeadCell = /*#__PURE__*/(0, _react.forwardRef)(function (
197
182
  style: mergedStyles,
198
183
  css: [
199
184
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
200
- _constants2.cellStyles, (0, _platformFeatureFlags.fg)('design_system_team_dynamic_table_typography') ? headCellBaseStylesModernized : headCellBaseStyles, onClick && onClickStyles,
185
+ _constants2.cellStyles, headCellBaseStyles, onClick && onClickStyles,
201
186
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
202
187
  _constants2.truncationWidthStyles,
203
188
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -60,14 +60,14 @@ const DynamicTable = ({
60
60
  action: 'sorted',
61
61
  componentName: 'dynamicTable',
62
62
  packageName: "@atlaskit/dynamic-table",
63
- packageVersion: "15.1.1"
63
+ packageVersion: "15.2.0"
64
64
  });
65
65
  const onRankEnd = usePlatformLeafEventHandler({
66
66
  fn: providedOnRankEnd,
67
67
  action: 'ranked',
68
68
  componentName: 'dynamicTable',
69
69
  packageName: "@atlaskit/dynamic-table",
70
- packageVersion: "15.1.1"
70
+ packageVersion: "15.2.0"
71
71
  });
72
72
  useEffect(() => {
73
73
  validateSortKey(sortKey, head);
@@ -8,7 +8,6 @@ import { forwardRef } from 'react';
8
8
 
9
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
10
  import { css, jsx } from '@emotion/react';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { B100, N30A } from '@atlaskit/theme/colors';
13
12
  import { ASC, DESC } from '../internal/constants';
14
13
  import { arrow, head, MSThemeColors, tableBorder } from '../theme';
@@ -32,20 +31,6 @@ export const Head = ({
32
31
  }, props));
33
32
  };
34
33
  const headCellBaseStyles = css({
35
- boxSizing: 'border-box',
36
- position: 'relative',
37
- border: 'none',
38
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
39
- borderBlockEnd: `2px solid ${tableBorder.borderColor}`,
40
- color: `var(--ds-text-subtlest, ${`var(${CSS_VAR_TEXT_COLOR})`})`,
41
- font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
42
- textAlign: 'left',
43
- verticalAlign: 'top',
44
- '&:focus-visible': {
45
- outline: `solid 2px ${`var(--ds-border-focused, ${B100})`}`
46
- }
47
- });
48
- const headCellBaseStylesModernized = css({
49
34
  boxSizing: 'border-box',
50
35
  position: 'relative',
51
36
  border: 'none',
@@ -191,7 +176,7 @@ export const HeadCell = /*#__PURE__*/forwardRef(({
191
176
  style: mergedStyles,
192
177
  css: [
193
178
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
194
- cellStyles, fg('design_system_team_dynamic_table_typography') ? headCellBaseStylesModernized : headCellBaseStyles, onClick && onClickStyles,
179
+ cellStyles, headCellBaseStyles, onClick && onClickStyles,
195
180
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
196
181
  truncationWidthStyles,
197
182
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
@@ -76,14 +76,14 @@ var DynamicTable = function DynamicTable(_ref) {
76
76
  action: 'sorted',
77
77
  componentName: 'dynamicTable',
78
78
  packageName: "@atlaskit/dynamic-table",
79
- packageVersion: "15.1.1"
79
+ packageVersion: "15.2.0"
80
80
  });
81
81
  var onRankEnd = usePlatformLeafEventHandler({
82
82
  fn: providedOnRankEnd,
83
83
  action: 'ranked',
84
84
  componentName: 'dynamicTable',
85
85
  packageName: "@atlaskit/dynamic-table",
86
- packageVersion: "15.1.1"
86
+ packageVersion: "15.2.0"
87
87
  });
88
88
  useEffect(function () {
89
89
  validateSortKey(sortKey, head);
@@ -14,7 +14,6 @@ import { forwardRef } from 'react';
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
16
  import { css, jsx } from '@emotion/react';
17
- import { fg } from '@atlaskit/platform-feature-flags';
18
17
  import { B100, N30A } from '@atlaskit/theme/colors';
19
18
  import { ASC, DESC } from '../internal/constants';
20
19
  import { arrow, head, MSThemeColors, tableBorder } from '../theme';
@@ -37,20 +36,6 @@ export var Head = function Head(_ref) {
37
36
  }, props));
38
37
  };
39
38
  var headCellBaseStyles = css({
40
- boxSizing: 'border-box',
41
- position: 'relative',
42
- border: 'none',
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
44
- borderBlockEnd: "2px solid ".concat(tableBorder.borderColor),
45
- color: "var(--ds-text-subtlest, ".concat("var(".concat(CSS_VAR_TEXT_COLOR, ")"), ")"),
46
- font: "var(--ds-font-heading-xxsmall, normal 600 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
47
- textAlign: 'left',
48
- verticalAlign: 'top',
49
- '&:focus-visible': {
50
- outline: "solid 2px ".concat("var(--ds-border-focused, ".concat(B100, ")"))
51
- }
52
- });
53
- var headCellBaseStylesModernized = css({
54
39
  boxSizing: 'border-box',
55
40
  position: 'relative',
56
41
  border: 'none',
@@ -191,7 +176,7 @@ export var HeadCell = /*#__PURE__*/forwardRef(function (_ref2, ref) {
191
176
  style: mergedStyles,
192
177
  css: [
193
178
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
194
- cellStyles, fg('design_system_team_dynamic_table_typography') ? headCellBaseStylesModernized : headCellBaseStyles, onClick && onClickStyles,
179
+ cellStyles, headCellBaseStyles, onClick && onClickStyles,
195
180
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
196
181
  truncationWidthStyles,
197
182
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/dynamic-table",
3
- "version": "15.1.1",
3
+ "version": "15.2.0",
4
4
  "description": "A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,9 +38,8 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-next": "^10.1.0",
41
- "@atlaskit/ds-lib": "^2.6.0",
41
+ "@atlaskit/ds-lib": "^3.0.0",
42
42
  "@atlaskit/pagination": "^14.9.0",
43
- "@atlaskit/platform-feature-flags": "^0.3.0",
44
43
  "@atlaskit/spinner": "^16.3.0",
45
44
  "@atlaskit/theme": "^13.0.0",
46
45
  "@atlaskit/tokens": "^2.0.0",
@@ -82,10 +81,5 @@
82
81
  "emotion"
83
82
  ]
84
83
  }
85
- },
86
- "platform-feature-flags": {
87
- "design_system_team_dynamic_table_typography": {
88
- "type": "boolean"
89
- }
90
84
  }
91
85
  }