@atlaskit/link-datasource 3.12.0 → 3.12.1

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,14 @@
1
1
  # @atlaskit/link-datasource
2
2
 
3
+ ## 3.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167582](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167582)
8
+ [`668b477adfc03`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/668b477adfc03) -
9
+ Prevent problem with VR Test FF permutations by enforcing depency of `react_sweet_state` for
10
+ `enable-two-way-sync`
11
+
3
12
  ## 3.12.0
4
13
 
5
14
  ### Minor Changes
@@ -719,35 +719,37 @@ var IssueLikeDataTableView = exports.IssueLikeDataTableView = function IssueLike
719
719
  shouldUseWidth: shouldUseWidth,
720
720
  width: width
721
721
  });
722
-
723
722
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
724
- if ((0, _platformFeatureFlags.fg)('platform-datasources-enable-two-way-sync')) {
725
- return (0, _react2.jsx)(_styled2.InlineEditableTableCell, {
726
- key: cellKey,
727
- "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
728
- colSpan: isEditable && isLastCell ? 2 : undefined
729
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
730
- ,
731
- style: loadingRowStyle,
732
- css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
733
- }, content);
734
- } else {
735
- // extra padding is required around skeleton loader to avoid vertical jumps when data loads
736
- if (key !== null && key !== void 0 && key.includes('loading')) {
737
- loadingRowStyle = _objectSpread(_objectSpread({}, loadingRowStyle), {}, {
738
- paddingBlock: "var(--ds-space-100, 8px)"
739
- });
723
+ if ((0, _platformFeatureFlags.fg)('enable_datasource_react_sweet_state')) {
724
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
725
+ if ((0, _platformFeatureFlags.fg)('platform-datasources-enable-two-way-sync')) {
726
+ return (0, _react2.jsx)(_styled2.InlineEditableTableCell, {
727
+ key: cellKey,
728
+ "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
729
+ colSpan: isEditable && isLastCell ? 2 : undefined
730
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
731
+ ,
732
+ style: loadingRowStyle,
733
+ css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
734
+ }, content);
740
735
  }
741
- return (0, _react2.jsx)(_styled2.TableCell, {
742
- key: cellKey,
743
- "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
744
- colSpan: isEditable && isLastCell ? 2 : undefined
745
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
746
- ,
747
- style: loadingRowStyle,
748
- css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
749
- }, content);
750
736
  }
737
+
738
+ // extra padding is required around skeleton loader to avoid vertical jumps when data loads
739
+ if (key !== null && key !== void 0 && key.includes('loading')) {
740
+ loadingRowStyle = _objectSpread(_objectSpread({}, loadingRowStyle), {}, {
741
+ paddingBlock: "var(--ds-space-100, 8px)"
742
+ });
743
+ }
744
+ return (0, _react2.jsx)(_styled2.TableCell, {
745
+ key: cellKey,
746
+ "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
747
+ colSpan: isEditable && isLastCell ? 2 : undefined
748
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
749
+ ,
750
+ style: loadingRowStyle,
751
+ css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
752
+ }, content);
751
753
  }));
752
754
  }))));
753
755
  return (0, _platformFeatureFlags.fg)('platform-datasources-enable-two-way-sync') ? (0, _react2.jsx)(_flag.FlagsProvider, null, view) : view;
@@ -692,36 +692,38 @@ export const IssueLikeDataTableView = ({
692
692
  shouldUseWidth,
693
693
  width
694
694
  });
695
-
696
695
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
697
- if (fg('platform-datasources-enable-two-way-sync')) {
698
- return jsx(InlineEditableTableCell, {
699
- key: cellKey,
700
- "data-testid": testId && `${testId}--cell-${cellIndex}`,
701
- colSpan: isEditable && isLastCell ? 2 : undefined
702
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
703
- ,
704
- style: loadingRowStyle,
705
- css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
706
- }, content);
707
- } else {
708
- // extra padding is required around skeleton loader to avoid vertical jumps when data loads
709
- if (key !== null && key !== void 0 && key.includes('loading')) {
710
- loadingRowStyle = {
711
- ...loadingRowStyle,
712
- paddingBlock: "var(--ds-space-100, 8px)"
713
- };
696
+ if (fg('enable_datasource_react_sweet_state')) {
697
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
698
+ if (fg('platform-datasources-enable-two-way-sync')) {
699
+ return jsx(InlineEditableTableCell, {
700
+ key: cellKey,
701
+ "data-testid": testId && `${testId}--cell-${cellIndex}`,
702
+ colSpan: isEditable && isLastCell ? 2 : undefined
703
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
704
+ ,
705
+ style: loadingRowStyle,
706
+ css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
707
+ }, content);
714
708
  }
715
- return jsx(TableCell, {
716
- key: cellKey,
717
- "data-testid": testId && `${testId}--cell-${cellIndex}`,
718
- colSpan: isEditable && isLastCell ? 2 : undefined
719
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
720
- ,
721
- style: loadingRowStyle,
722
- css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
723
- }, content);
724
709
  }
710
+
711
+ // extra padding is required around skeleton loader to avoid vertical jumps when data loads
712
+ if (key !== null && key !== void 0 && key.includes('loading')) {
713
+ loadingRowStyle = {
714
+ ...loadingRowStyle,
715
+ paddingBlock: "var(--ds-space-100, 8px)"
716
+ };
717
+ }
718
+ return jsx(TableCell, {
719
+ key: cellKey,
720
+ "data-testid": testId && `${testId}--cell-${cellIndex}`,
721
+ colSpan: isEditable && isLastCell ? 2 : undefined
722
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
723
+ ,
724
+ style: loadingRowStyle,
725
+ css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
726
+ }, content);
725
727
  }))))));
726
728
  return fg('platform-datasources-enable-two-way-sync') ? jsx(FlagsProvider, null, view) : view;
727
729
  };
@@ -715,35 +715,37 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
715
715
  shouldUseWidth: shouldUseWidth,
716
716
  width: width
717
717
  });
718
-
719
718
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
720
- if (fg('platform-datasources-enable-two-way-sync')) {
721
- return jsx(InlineEditableTableCell, {
722
- key: cellKey,
723
- "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
724
- colSpan: isEditable && isLastCell ? 2 : undefined
725
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
726
- ,
727
- style: loadingRowStyle,
728
- css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
729
- }, content);
730
- } else {
731
- // extra padding is required around skeleton loader to avoid vertical jumps when data loads
732
- if (key !== null && key !== void 0 && key.includes('loading')) {
733
- loadingRowStyle = _objectSpread(_objectSpread({}, loadingRowStyle), {}, {
734
- paddingBlock: "var(--ds-space-100, 8px)"
735
- });
719
+ if (fg('enable_datasource_react_sweet_state')) {
720
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
721
+ if (fg('platform-datasources-enable-two-way-sync')) {
722
+ return jsx(InlineEditableTableCell, {
723
+ key: cellKey,
724
+ "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
725
+ colSpan: isEditable && isLastCell ? 2 : undefined
726
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
727
+ ,
728
+ style: loadingRowStyle,
729
+ css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
730
+ }, content);
736
731
  }
737
- return jsx(TableCell, {
738
- key: cellKey,
739
- "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
740
- colSpan: isEditable && isLastCell ? 2 : undefined
741
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
742
- ,
743
- style: loadingRowStyle,
744
- css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
745
- }, content);
746
732
  }
733
+
734
+ // extra padding is required around skeleton loader to avoid vertical jumps when data loads
735
+ if (key !== null && key !== void 0 && key.includes('loading')) {
736
+ loadingRowStyle = _objectSpread(_objectSpread({}, loadingRowStyle), {}, {
737
+ paddingBlock: "var(--ds-space-100, 8px)"
738
+ });
739
+ }
740
+ return jsx(TableCell, {
741
+ key: cellKey,
742
+ "data-testid": testId && "".concat(testId, "--cell-").concat(cellIndex),
743
+ colSpan: isEditable && isLastCell ? 2 : undefined
744
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
745
+ ,
746
+ style: loadingRowStyle,
747
+ css: [wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? null : truncateStyles]
748
+ }, content);
747
749
  }));
748
750
  }))));
749
751
  return fg('platform-datasources-enable-two-way-sync') ? jsx(FlagsProvider, null, view) : view;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-datasource",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "description": "UI Components to support linking platform dataset feature",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -101,7 +101,7 @@
101
101
  "devDependencies": {
102
102
  "@af/integration-testing": "*",
103
103
  "@af/visual-regression": "*",
104
- "@atlaskit/link-provider": "^1.16.0",
104
+ "@atlaskit/link-provider": "^1.17.0",
105
105
  "@atlaskit/link-test-helpers": "^7.5.0",
106
106
  "@atlaskit/ssr": "*",
107
107
  "@atlaskit/visual-regression": "*",