@atlaskit/link-datasource 7.0.7 → 7.1.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,26 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 7.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`48ee35bbf1e1b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/48ee35bbf1e1b) -
8
+ Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 7.0.8
15
+
16
+ ### Patch Changes
17
+
18
+ - [`be25f647e8e7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be25f647e8e7b) -
19
+ Cleanup experiment `platform_datasource_hydration_stability`. The datasource table view now always
20
+ preserves its Suspense boundary across equivalent renderer props, so an unchanged parent render no
21
+ longer updates a boundary that is still hydrating.
22
+ - Updated dependencies
23
+
3
24
  ## 7.0.7
4
25
 
5
26
  ### 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.7",
3
+ "version": "7.1.0",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "scripts": {
37
37
  "analytics:codegen": "afm workspace @atlassian/analytics-tooling analytics:codegen link-datasource --output ./src/analytics/generated",
38
- "ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
38
+ "ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V 'src/**/*.{svg,png}'"
39
39
  },
40
40
  "dependencies": {
41
41
  "@atlaskit/adf-schema": "^57.6.0",
42
- "@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.258.0",
42
+ "@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.265.0",
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",
@@ -77,7 +77,7 @@
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": "^8.0.0",
80
+ "@atlaskit/popup": "^8.1.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",
@@ -86,8 +86,8 @@
86
86
  "@atlaskit/react-compiler-gating": "^0.2.0",
87
87
  "@atlaskit/react-select": "^4.12.0",
88
88
  "@atlaskit/select": "^23.1.0",
89
- "@atlaskit/smart-card": "^46.1.0",
90
- "@atlaskit/smart-user-picker": "^12.0.0",
89
+ "@atlaskit/smart-card": "^46.2.0",
90
+ "@atlaskit/smart-user-picker": "^12.1.0",
91
91
  "@atlaskit/spinner": "^20.4.0",
92
92
  "@atlaskit/tag": "^17.0.0",
93
93
  "@atlaskit/textfield": "^10.2.0",