@atlaskit/editor-plugin-card 2.0.9 → 2.0.10

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,15 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 2.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#112182](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112182)
8
+ [`474de215aa66e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/474de215aa66e) -
9
+ Moving fix for using select all shortcut inside a database or other embed card into the card
10
+ itself to fix selection issues with embed card.
11
+ - Updated dependencies
12
+
3
13
  ## 2.0.9
4
14
 
5
15
  ### Patch Changes
@@ -23,7 +23,6 @@ var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/rea
23
23
  var _ui = require("@atlaskit/editor-common/ui");
24
24
  var _utils = require("@atlaskit/editor-common/utils");
25
25
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
26
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
27
26
  var _smartCard = require("@atlaskit/smart-card");
28
27
  var _actions = require("../pm-plugins/actions");
29
28
  var _ResizableEmbedCard = _interopRequireDefault(require("../ui/ResizableEmbedCard"));
@@ -366,16 +365,8 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
366
365
  value: function createDomRef() {
367
366
  var domRef = document.createElement('div');
368
367
  if (this.reactComponentProps.platform !== 'mobile') {
369
- // This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
370
- // It is a tradeoff for the bug mentioned below that occurs in Chrome.
371
- // See: HOT-107830
372
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.card.fix-embed-card-select-all')) {
373
- domRef.contentEditable = 'false';
374
- } else {
375
- // workaround Chrome bug in https://product-fabric.atlassian.net/browse/ED-5379
376
- // see also: https://github.com/ProseMirror/prosemirror/issues/884
377
- domRef.contentEditable = 'true';
378
- }
368
+ // It is a tradeoff for the bug mentioned that occurs in Chrome: https://product-fabric.atlassian.net/browse/ED-5379, https://github.com/ProseMirror/prosemirror/issues/884
369
+ domRef.contentEditable = 'true';
379
370
  domRef.setAttribute('spellcheck', 'false');
380
371
  }
381
372
  return domRef;
@@ -9,7 +9,6 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
9
9
  import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedBlock } from '@atlaskit/editor-common/ui';
10
10
  import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
11
11
  import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
12
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
13
12
  import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
14
13
  import { registerCard } from '../pm-plugins/actions';
15
14
  import ResizableEmbedCard from '../ui/ResizableEmbedCard';
@@ -343,16 +342,8 @@ export class EmbedCard extends ReactNodeView {
343
342
  createDomRef() {
344
343
  const domRef = document.createElement('div');
345
344
  if (this.reactComponentProps.platform !== 'mobile') {
346
- // This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
347
- // It is a tradeoff for the bug mentioned below that occurs in Chrome.
348
- // See: HOT-107830
349
- if (getBooleanFF('platform.editor.card.fix-embed-card-select-all')) {
350
- domRef.contentEditable = 'false';
351
- } else {
352
- // workaround Chrome bug in https://product-fabric.atlassian.net/browse/ED-5379
353
- // see also: https://github.com/ProseMirror/prosemirror/issues/884
354
- domRef.contentEditable = 'true';
355
- }
345
+ // It is a tradeoff for the bug mentioned that occurs in Chrome: https://product-fabric.atlassian.net/browse/ED-5379, https://github.com/ProseMirror/prosemirror/issues/884
346
+ domRef.contentEditable = 'true';
356
347
  domRef.setAttribute('spellcheck', 'false');
357
348
  }
358
349
  return domRef;
@@ -20,7 +20,6 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
20
20
  import { findOverflowScrollParent, MediaSingle as RichMediaWrapper, UnsupportedBlock } from '@atlaskit/editor-common/ui';
21
21
  import { floatingLayouts, isRichMediaInsideOfBlockNode } from '@atlaskit/editor-common/utils';
22
22
  import { DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
23
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
24
23
  import { EmbedResizeMessageListener, Card as SmartCard } from '@atlaskit/smart-card';
25
24
  import { registerCard } from '../pm-plugins/actions';
26
25
  import ResizableEmbedCard from '../ui/ResizableEmbedCard';
@@ -359,16 +358,8 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
359
358
  value: function createDomRef() {
360
359
  var domRef = document.createElement('div');
361
360
  if (this.reactComponentProps.platform !== 'mobile') {
362
- // This fixes an issue with input fields in cross domain iframes (ie. databases and jira fields from different domains)
363
- // It is a tradeoff for the bug mentioned below that occurs in Chrome.
364
- // See: HOT-107830
365
- if (getBooleanFF('platform.editor.card.fix-embed-card-select-all')) {
366
- domRef.contentEditable = 'false';
367
- } else {
368
- // workaround Chrome bug in https://product-fabric.atlassian.net/browse/ED-5379
369
- // see also: https://github.com/ProseMirror/prosemirror/issues/884
370
- domRef.contentEditable = 'true';
371
- }
361
+ // It is a tradeoff for the bug mentioned that occurs in Chrome: https://product-fabric.atlassian.net/browse/ED-5379, https://github.com/ProseMirror/prosemirror/issues/884
362
+ domRef.contentEditable = 'true';
372
363
  domRef.setAttribute('spellcheck', 'false');
373
364
  }
374
365
  return domRef;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,10 +34,10 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^36.10.7",
36
36
  "@atlaskit/analytics-next": "^9.3.0",
37
- "@atlaskit/button": "^17.22.0",
37
+ "@atlaskit/button": "^17.23.0",
38
38
  "@atlaskit/custom-steps": "^0.2.0",
39
39
  "@atlaskit/dropdown-menu": "^12.13.0",
40
- "@atlaskit/editor-common": "^82.9.0",
40
+ "@atlaskit/editor-common": "^82.10.0",
41
41
  "@atlaskit/editor-plugin-analytics": "^1.2.0",
42
42
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
43
43
  "@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
@@ -58,8 +58,8 @@
58
58
  "@atlaskit/platform-feature-flags": "^0.2.0",
59
59
  "@atlaskit/primitives": "^8.0.0",
60
60
  "@atlaskit/smart-card": "^27.6.0",
61
- "@atlaskit/theme": "^12.10.0",
62
- "@atlaskit/tokens": "^1.51.0",
61
+ "@atlaskit/theme": "^12.11.0",
62
+ "@atlaskit/tokens": "^1.52.0",
63
63
  "@atlaskit/tooltip": "^18.5.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
@@ -121,9 +121,6 @@
121
121
  "platform.linking-platform.datasource-enable-toolbar-buttons-for-all-datasources": {
122
122
  "type": "boolean"
123
123
  },
124
- "platform.editor.card.fix-embed-card-select-all": {
125
- "type": "boolean"
126
- },
127
124
  "platform.linking-platform.datasource.enable-confluence-search-modal": {
128
125
  "type": "boolean"
129
126
  },