@atlaskit/link-datasource 7.0.6 → 7.0.8

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,21 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 7.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`be25f647e8e7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be25f647e8e7b) -
8
+ Cleanup experiment `platform_datasource_hydration_stability`. The datasource table view now always
9
+ preserves its Suspense boundary across equivalent renderer props, so an unchanged parent render no
10
+ longer updates a boundary that is still hydrating.
11
+ - Updated dependencies
12
+
13
+ ## 7.0.7
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 7.0.6
4
20
 
5
21
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.DatasourceTableViewWithWrappers = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
11
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
12
11
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
12
  var LazyDatasourceTableView = /*#__PURE__*/(0, _react.lazy)(function () {
14
13
  return Promise.resolve().then(function () {
@@ -21,20 +20,10 @@ var LazyDatasourceTableView = /*#__PURE__*/(0, _react.lazy)(function () {
21
20
  });
22
21
 
23
22
  // Equivalent renderer props must not update a Suspense boundary that is still hydrating.
24
- var StableDatasourceTableView = /*#__PURE__*/(0, _react.memo)(function StableDatasourceTableView(props) {
23
+ var DatasourceTableViewWithWrappers = exports.DatasourceTableViewWithWrappers = /*#__PURE__*/(0, _react.memo)(function DatasourceTableViewWithWrappers(props) {
25
24
  return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
26
25
  fallback: /*#__PURE__*/_react.default.createElement("div", {
27
26
  "data-testid": 'datasource-table-view-suspense'
28
27
  })
29
28
  }, /*#__PURE__*/_react.default.createElement(LazyDatasourceTableView, props));
30
- }, _isEqual.default);
31
- var DatasourceTableViewWithWrappers = exports.DatasourceTableViewWithWrappers = function DatasourceTableViewWithWrappers(props) {
32
- if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_datasource_hydration_stability')) {
33
- return /*#__PURE__*/_react.default.createElement(StableDatasourceTableView, props);
34
- }
35
- return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
36
- fallback: /*#__PURE__*/_react.default.createElement("div", {
37
- "data-testid": 'datasource-table-view-suspense'
38
- })
39
- }, /*#__PURE__*/_react.default.createElement(LazyDatasourceTableView, props));
40
- };
29
+ }, _isEqual.default);
@@ -1,25 +1,14 @@
1
1
  import React, { lazy, memo, Suspense } from 'react';
2
2
  import isEqual from 'lodash/isEqual';
3
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
3
  const LazyDatasourceTableView = /*#__PURE__*/lazy(() => import( /* webpackChunkName: "@atlaskit-internal_linkdatasource-tableview" */'./datasourceTableView').then(module => ({
5
4
  default: module.DatasourceTableView
6
5
  })));
7
6
 
8
7
  // Equivalent renderer props must not update a Suspense boundary that is still hydrating.
9
- const StableDatasourceTableView = /*#__PURE__*/memo(function StableDatasourceTableView(props) {
8
+ export const DatasourceTableViewWithWrappers = /*#__PURE__*/memo(function DatasourceTableViewWithWrappers(props) {
10
9
  return /*#__PURE__*/React.createElement(Suspense, {
11
10
  fallback: /*#__PURE__*/React.createElement("div", {
12
11
  "data-testid": 'datasource-table-view-suspense'
13
12
  })
14
13
  }, /*#__PURE__*/React.createElement(LazyDatasourceTableView, props));
15
- }, isEqual);
16
- export const DatasourceTableViewWithWrappers = props => {
17
- if (isExperimentEnabled('platform_datasource_hydration_stability')) {
18
- return /*#__PURE__*/React.createElement(StableDatasourceTableView, props);
19
- }
20
- return /*#__PURE__*/React.createElement(Suspense, {
21
- fallback: /*#__PURE__*/React.createElement("div", {
22
- "data-testid": 'datasource-table-view-suspense'
23
- })
24
- }, /*#__PURE__*/React.createElement(LazyDatasourceTableView, props));
25
- };
14
+ }, isEqual);
@@ -1,6 +1,5 @@
1
1
  import React, { lazy, memo, Suspense } from 'react';
2
2
  import isEqual from 'lodash/isEqual';
3
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
3
  var LazyDatasourceTableView = /*#__PURE__*/lazy(function () {
5
4
  return import( /* webpackChunkName: "@atlaskit-internal_linkdatasource-tableview" */'./datasourceTableView').then(function (module) {
6
5
  return {
@@ -10,20 +9,10 @@ var LazyDatasourceTableView = /*#__PURE__*/lazy(function () {
10
9
  });
11
10
 
12
11
  // Equivalent renderer props must not update a Suspense boundary that is still hydrating.
13
- var StableDatasourceTableView = /*#__PURE__*/memo(function StableDatasourceTableView(props) {
12
+ export var DatasourceTableViewWithWrappers = /*#__PURE__*/memo(function DatasourceTableViewWithWrappers(props) {
14
13
  return /*#__PURE__*/React.createElement(Suspense, {
15
14
  fallback: /*#__PURE__*/React.createElement("div", {
16
15
  "data-testid": 'datasource-table-view-suspense'
17
16
  })
18
17
  }, /*#__PURE__*/React.createElement(LazyDatasourceTableView, props));
19
- }, isEqual);
20
- export var DatasourceTableViewWithWrappers = function DatasourceTableViewWithWrappers(props) {
21
- if (isExperimentEnabled('platform_datasource_hydration_stability')) {
22
- return /*#__PURE__*/React.createElement(StableDatasourceTableView, props);
23
- }
24
- return /*#__PURE__*/React.createElement(Suspense, {
25
- fallback: /*#__PURE__*/React.createElement("div", {
26
- "data-testid": 'datasource-table-view-suspense'
27
- })
28
- }, /*#__PURE__*/React.createElement(LazyDatasourceTableView, props));
29
- };
18
+ }, isEqual);
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type DatasourceTableViewProps } from './types';
3
- export declare const DatasourceTableViewWithWrappers: (props: DatasourceTableViewProps) => React.JSX.Element;
3
+ export declare const DatasourceTableViewWithWrappers: React.MemoExoticComponent<(props: DatasourceTableViewProps) => React.JSX.Element>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "7.0.6",
3
+ "version": "7.0.8",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,13 +43,13 @@
43
43
  "@atlaskit/analytics-cross-product": "^2.2.0",
44
44
  "@atlaskit/analytics-next": "^12.5.0",
45
45
  "@atlaskit/atlassian-context": "^2.0.0",
46
- "@atlaskit/avatar": "^29.2.0",
46
+ "@atlaskit/avatar": "^30.0.0",
47
47
  "@atlaskit/avatar-group": "^14.4.0",
48
48
  "@atlaskit/badge": "^22.0.0",
49
49
  "@atlaskit/button": "^25.4.0",
50
50
  "@atlaskit/css": "^1.1.0",
51
51
  "@atlaskit/datetime-picker": "^19.0.0",
52
- "@atlaskit/dropdown-menu": "^19.0.0",
52
+ "@atlaskit/dropdown-menu": "^20.0.0",
53
53
  "@atlaskit/editor-prosemirror": "^9.0.0",
54
54
  "@atlaskit/empty-state": "^12.2.0",
55
55
  "@atlaskit/feature-gate-js-client": "^7.0.0",
@@ -70,14 +70,14 @@
70
70
  "@atlaskit/linking-common": "^13.0.0",
71
71
  "@atlaskit/linking-types": "^16.0.0",
72
72
  "@atlaskit/logo": "^23.3.0",
73
- "@atlaskit/lozenge": "^16.1.0",
73
+ "@atlaskit/lozenge": "^17.0.0",
74
74
  "@atlaskit/modal-dialog": "^17.0.0",
75
75
  "@atlaskit/object": "^2.3.0",
76
76
  "@atlaskit/outbound-auth-flow-client": "^4.2.0",
77
77
  "@atlaskit/platform-feature-experiments": "^0.3.0",
78
78
  "@atlaskit/platform-feature-flags": "^2.2.0",
79
79
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
80
- "@atlaskit/popup": "^7.0.0",
80
+ "@atlaskit/popup": "^8.0.0",
81
81
  "@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
82
82
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^3.0.0",
83
83
  "@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^3.2.0",