@atlaskit/editor-plugin-card 2.13.4 → 2.13.5

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,13 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 2.13.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#134243](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134243)
8
+ [`f80ad43fc6eea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f80ad43fc6eea) -
9
+ Fix text selection inside datasource table input
10
+
3
11
  ## 2.13.4
4
12
 
5
13
  ### Patch Changes
@@ -303,6 +303,12 @@ var Datasource = exports.Datasource = /*#__PURE__*/function (_ReactNodeView) {
303
303
  value: function render() {
304
304
  var _attrs$datasource;
305
305
  var attrs = this.node.attrs;
306
+ if ((0, _platformFeatureFlags.fg)('platform-datasources-enable-two-way-sync')) {
307
+ var _this$domRef;
308
+ // EDM-10607: Workaround to remove datasource table draggable attribute
309
+ // @ts-ignore TS2341: Property domRef is private
310
+ (_this$domRef = this.domRef) === null || _this$domRef === void 0 || _this$domRef.setAttribute('draggable', 'false');
311
+ }
306
312
  return (0, _react2.jsx)(_datasourceErrorBoundary.DatasourceErrorBoundary, {
307
313
  unsupportedComponent: _ui.UnsupportedInline,
308
314
  view: this.view,
@@ -249,6 +249,12 @@ export class Datasource extends ReactNodeView {
249
249
  const {
250
250
  attrs
251
251
  } = this.node;
252
+ if (fg('platform-datasources-enable-two-way-sync')) {
253
+ var _this$domRef;
254
+ // EDM-10607: Workaround to remove datasource table draggable attribute
255
+ // @ts-ignore TS2341: Property domRef is private
256
+ (_this$domRef = this.domRef) === null || _this$domRef === void 0 ? void 0 : _this$domRef.setAttribute('draggable', 'false');
257
+ }
252
258
  return jsx(DatasourceErrorBoundary, {
253
259
  unsupportedComponent: UnsupportedInline,
254
260
  view: this.view,
@@ -299,6 +299,12 @@ export var Datasource = /*#__PURE__*/function (_ReactNodeView) {
299
299
  value: function render() {
300
300
  var _attrs$datasource;
301
301
  var attrs = this.node.attrs;
302
+ if (fg('platform-datasources-enable-two-way-sync')) {
303
+ var _this$domRef;
304
+ // EDM-10607: Workaround to remove datasource table draggable attribute
305
+ // @ts-ignore TS2341: Property domRef is private
306
+ (_this$domRef = this.domRef) === null || _this$domRef === void 0 || _this$domRef.setAttribute('draggable', 'false');
307
+ }
302
308
  return jsx(DatasourceErrorBoundary, {
303
309
  unsupportedComponent: UnsupportedInline,
304
310
  view: this.view,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "2.13.4",
3
+ "version": "2.13.5",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/adf-schema": "^40.9.0",
36
36
  "@atlaskit/analytics-next": "^10.1.0",
37
37
  "@atlaskit/custom-steps": "^0.7.0",
38
- "@atlaskit/editor-common": "^88.2.0",
38
+ "@atlaskit/editor-common": "^88.3.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/menu": "2.12.2",
57
57
  "@atlaskit/platform-feature-flags": "^0.3.0",
58
58
  "@atlaskit/primitives": "^12.0.0",
59
- "@atlaskit/smart-card": "^27.18.0",
59
+ "@atlaskit/smart-card": "^27.19.0",
60
60
  "@atlaskit/theme": "^13.0.0",
61
61
  "@atlaskit/tokens": "^1.59.0",
62
62
  "@babel/runtime": "^7.0.0",