@atlaskit/editor-plugin-paste 1.8.2 → 1.9.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,25 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 1.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#131711](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131711)
8
+ [`00a61b846f2a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/00a61b846f2a1) -
9
+ Cleanup FF platform.editor.media.fix-copy-paste-excel_62g4s
10
+
11
+ ## 1.9.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#130825](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130825)
16
+ [`d8a00de5637ff`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d8a00de5637ff) -
17
+ ENGHEALTH-9890: Bumps React peer dependency for Lego editor plugins
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 1.8.2
4
24
 
5
25
  ### Patch Changes
@@ -27,7 +27,6 @@ var _editorMarkdownTransformer = require("@atlaskit/editor-markdown-transformer"
27
27
  var _model = require("@atlaskit/editor-prosemirror/model");
28
28
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
29
29
  var _utils3 = require("@atlaskit/editor-tables/utils");
30
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
31
30
  var _actions = require("../actions");
32
31
  var _commands = require("../commands");
33
32
  var _handlers = require("../handlers");
@@ -182,7 +181,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
182
181
  * stopImmediatePropagation will run the first event attached to the same element
183
182
  * Which chould have race condition issue
184
183
  */
185
- (0, _platformFeatureFlags.fg)('platform.editor.media.fix-copy-paste-excel_62g4s') ? event.stopPropagation() : event.stopImmediatePropagation();
184
+ event.stopPropagation();
186
185
  }
187
186
  var state = view.state;
188
187
  var analyticsPlugin = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 || (_pluginInjectionApi$a2 = _pluginInjectionApi$a2.sharedState) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.currentState();
@@ -11,7 +11,6 @@ import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
11
11
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
12
12
  import { contains, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
13
13
  import { handlePaste as handlePasteTable } from '@atlaskit/editor-tables/utils';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { PastePluginActionTypes } from '../actions';
16
15
  import { splitParagraphs, upgradeTextToLists } from '../commands';
17
16
  import { handleMacroAutoConvert, handleMention, handleParagraphBlockMarks, handleTableContentPasteInBodiedExtension } from '../handlers';
@@ -146,7 +145,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
146
145
  * stopImmediatePropagation will run the first event attached to the same element
147
146
  * Which chould have race condition issue
148
147
  */
149
- fg('platform.editor.media.fix-copy-paste-excel_62g4s') ? event.stopPropagation() : event.stopImmediatePropagation();
148
+ event.stopPropagation();
150
149
  }
151
150
  const {
152
151
  state
@@ -13,7 +13,6 @@ import { MarkdownTransformer } from '@atlaskit/editor-markdown-transformer';
13
13
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
14
14
  import { contains, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
15
15
  import { handlePaste as handlePasteTable } from '@atlaskit/editor-tables/utils';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  import { PastePluginActionTypes } from '../actions';
18
17
  import { splitParagraphs, upgradeTextToLists } from '../commands';
19
18
  import { handleMacroAutoConvert, handleMention, handleParagraphBlockMarks, handleTableContentPasteInBodiedExtension } from '../handlers';
@@ -169,7 +168,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
169
168
  * stopImmediatePropagation will run the first event attached to the same element
170
169
  * Which chould have race condition issue
171
170
  */
172
- fg('platform.editor.media.fix-copy-paste-excel_62g4s') ? event.stopPropagation() : event.stopImmediatePropagation();
171
+ event.stopPropagation();
173
172
  }
174
173
  var state = view.state;
175
174
  var analyticsPlugin = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 || (_pluginInjectionApi$a2 = _pluginInjectionApi$a2.sharedState) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.currentState();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "1.8.2",
3
+ "version": "1.9.1",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,11 +33,11 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^87.12.0",
36
+ "@atlaskit/editor-common": "^87.13.0",
37
37
  "@atlaskit/editor-markdown-transformer": "^5.11.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.7.0",
39
39
  "@atlaskit/editor-plugin-annotation": "^1.19.0",
40
- "@atlaskit/editor-plugin-better-type-history": "^1.7.0",
40
+ "@atlaskit/editor-plugin-better-type-history": "^1.8.0",
41
41
  "@atlaskit/editor-plugin-card": "^2.13.0",
42
42
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
43
43
  "@atlaskit/editor-plugin-list": "^3.8.0",
@@ -52,14 +52,14 @@
52
52
  "uuid": "^3.1.0"
53
53
  },
54
54
  "peerDependencies": {
55
- "react": "^16.8.0"
55
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@af/visual-regression": "*",
59
59
  "@atlaskit/adf-schema": "^40.8.1",
60
- "@atlaskit/editor-plugin-block-type": "^3.12.0",
61
- "@atlaskit/editor-plugin-history": "^1.2.0",
62
- "@atlaskit/editor-plugin-type-ahead": "^1.7.0",
60
+ "@atlaskit/editor-plugin-block-type": "^3.13.0",
61
+ "@atlaskit/editor-plugin-history": "^1.3.0",
62
+ "@atlaskit/editor-plugin-type-ahead": "^1.8.0",
63
63
  "@atlaskit/ssr": "*",
64
64
  "@atlaskit/visual-regression": "*",
65
65
  "@testing-library/react": "^12.1.5",
@@ -112,9 +112,6 @@
112
112
  "platform.editor.media.extended-resize-experience": {
113
113
  "type": "boolean"
114
114
  },
115
- "platform.editor.media.fix-copy-paste-excel_62g4s": {
116
- "type": "boolean"
117
- },
118
115
  "platform.editor.multi-bodied-extension_0rygg": {
119
116
  "type": "boolean"
120
117
  },