@atlaskit/editor-plugin-paste 13.3.11 → 13.3.13

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,19 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 13.3.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.3.12
10
+
11
+ ### Patch Changes
12
+
13
+ - [`0e797fd81675f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0e797fd81675f) -
14
+ Cleaning up interactivity monitoring experiment
15
+ - Updated dependencies
16
+
3
17
  ## 13.3.11
4
18
 
5
19
  ### Patch Changes
@@ -152,7 +152,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
152
152
  // note
153
153
  paste: function paste(view, event) {
154
154
  mostRecentPasteEvent = event;
155
- if ((0, _expValEquals.expValEquals)('cc_editor_interactivity_monitoring', 'isEnabled', true) && event.clipboardData) {
155
+ if (event.clipboardData) {
156
156
  _insm.insm.startHeavyTask('paste');
157
157
  }
158
158
  return false;
@@ -198,9 +198,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
198
198
  // Bail if copied content has files
199
199
  if (isPastedFile) {
200
200
  if (!html) {
201
- if ((0, _expValEquals.expValEquals)('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
202
- _insm.insm.endHeavyTask('paste');
203
- }
201
+ _insm.insm.endHeavyTask('paste');
204
202
  /**
205
203
  * Microsoft Office, Number, Pages, etc. adds an image to clipboard
206
204
  * with other mime-types so we don't let the event reach media.
@@ -219,9 +217,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
219
217
  * is skipped and handled in handleRichText
220
218
  */
221
219
  if ((0, _util.htmlContainsSingleFile)(html) && !isInsideBlockQuote(view.state)) {
222
- if ((0, _expValEquals.expValEquals)('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
223
- _insm.insm.endHeavyTask('paste');
224
- }
220
+ _insm.insm.endHeavyTask('paste');
225
221
  return true;
226
222
  }
227
223
 
@@ -249,9 +245,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
249
245
  if (payload) {
250
246
  dispatchAnalyticsEvent(payload);
251
247
  }
252
- if ((0, _expValEquals.expValEquals)('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
253
- _insm.insm.endHeavyTask('paste');
254
- }
248
+ _insm.insm.endHeavyTask('paste');
255
249
  });
256
250
  var getLastReplaceStepSlice = function getLastReplaceStepSlice(tr) {
257
251
  var slice;
@@ -117,7 +117,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
117
117
  // note
118
118
  paste: (view, event) => {
119
119
  mostRecentPasteEvent = event;
120
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true) && event.clipboardData) {
120
+ if (event.clipboardData) {
121
121
  insm.startHeavyTask('paste');
122
122
  }
123
123
  return false;
@@ -163,9 +163,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
163
163
  // Bail if copied content has files
164
164
  if (isPastedFile) {
165
165
  if (!html) {
166
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
167
- insm.endHeavyTask('paste');
168
- }
166
+ insm.endHeavyTask('paste');
169
167
  /**
170
168
  * Microsoft Office, Number, Pages, etc. adds an image to clipboard
171
169
  * with other mime-types so we don't let the event reach media.
@@ -184,9 +182,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
184
182
  * is skipped and handled in handleRichText
185
183
  */
186
184
  if (htmlContainsSingleFile(html) && !isInsideBlockQuote(view.state)) {
187
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
188
- insm.endHeavyTask('paste');
189
- }
185
+ insm.endHeavyTask('paste');
190
186
  return true;
191
187
  }
192
188
 
@@ -217,9 +213,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
217
213
  if (payload) {
218
214
  dispatchAnalyticsEvent(payload);
219
215
  }
220
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
221
- insm.endHeavyTask('paste');
222
- }
216
+ insm.endHeavyTask('paste');
223
217
  });
224
218
  const getLastReplaceStepSlice = tr => {
225
219
  let slice;
@@ -144,7 +144,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
144
144
  // note
145
145
  paste: function paste(view, event) {
146
146
  mostRecentPasteEvent = event;
147
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true) && event.clipboardData) {
147
+ if (event.clipboardData) {
148
148
  insm.startHeavyTask('paste');
149
149
  }
150
150
  return false;
@@ -190,9 +190,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
190
190
  // Bail if copied content has files
191
191
  if (isPastedFile) {
192
192
  if (!html) {
193
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
194
- insm.endHeavyTask('paste');
195
- }
193
+ insm.endHeavyTask('paste');
196
194
  /**
197
195
  * Microsoft Office, Number, Pages, etc. adds an image to clipboard
198
196
  * with other mime-types so we don't let the event reach media.
@@ -211,9 +209,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
211
209
  * is skipped and handled in handleRichText
212
210
  */
213
211
  if (htmlContainsSingleFile(html) && !isInsideBlockQuote(view.state)) {
214
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
215
- insm.endHeavyTask('paste');
216
- }
212
+ insm.endHeavyTask('paste');
217
213
  return true;
218
214
  }
219
215
 
@@ -241,9 +237,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
241
237
  if (payload) {
242
238
  dispatchAnalyticsEvent(payload);
243
239
  }
244
- if (expValEquals('cc_editor_interactivity_monitoring', 'isEnabled', true)) {
245
- insm.endHeavyTask('paste');
246
- }
240
+ insm.endHeavyTask('paste');
247
241
  });
248
242
  var getLastReplaceStepSlice = function getLastReplaceStepSlice(tr) {
249
243
  var slice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "13.3.11",
3
+ "version": "13.3.13",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,25 +30,25 @@
30
30
  "@atlaskit/editor-plugin-expand": "^13.1.0",
31
31
  "@atlaskit/editor-plugin-feature-flags": "^11.0.0",
32
32
  "@atlaskit/editor-plugin-list": "^14.1.0",
33
- "@atlaskit/editor-plugin-media": "^14.2.0",
34
- "@atlaskit/editor-plugin-mentions": "^14.5.0",
33
+ "@atlaskit/editor-plugin-media": "^14.3.0",
34
+ "@atlaskit/editor-plugin-mentions": "^14.6.0",
35
35
  "@atlaskit/editor-prosemirror": "^8.0.0",
36
36
  "@atlaskit/editor-tables": "^3.0.0",
37
37
  "@atlaskit/flag": "^18.1.0",
38
- "@atlaskit/icon": "^36.2.0",
38
+ "@atlaskit/icon": "^37.0.0",
39
39
  "@atlaskit/insm": "^1.0.0",
40
40
  "@atlaskit/media-client": "^37.2.0",
41
41
  "@atlaskit/media-common": "^14.3.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.0.0",
43
43
  "@atlaskit/prosemirror-history": "^1.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^123.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^124.1.0",
45
45
  "@atlaskit/tokens": "^15.5.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "lodash": "^4.17.21",
48
48
  "uuid": "^3.1.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^116.24.0",
51
+ "@atlaskit/editor-common": "^116.25.0",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"