@atlaskit/editor-plugin-paste 7.4.9 → 7.4.11

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
+ ## 7.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41a91a916c125`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41a91a916c125) -
8
+ EDITOR-2846 Change platform_synced_block to use editorExperiment and add Jira experiment
9
+ - Updated dependencies
10
+
11
+ ## 7.4.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 7.4.9
4
18
 
5
19
  ### Patch Changes
@@ -357,7 +357,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
357
357
  event: event,
358
358
  text: text
359
359
  });
360
- if ((0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true)) {
360
+ if ((0, _experiments.editorExperiment)('platform_synced_block', true)) {
361
361
  slice = (0, _transforms.transformSyncBlock)(slice, schema, (0, _util.getPasteSource)(event));
362
362
  }
363
363
  var plainTextPasteSlice = (0, _utils.linkifyContent)(state.schema)(slice);
@@ -320,7 +320,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
320
320
  event,
321
321
  text
322
322
  });
323
- if (expValEquals('platform_synced_block', 'isEnabled', true)) {
323
+ if (editorExperiment('platform_synced_block', true)) {
324
324
  slice = transformSyncBlock(slice, schema, getPasteSource(event));
325
325
  }
326
326
  const plainTextPasteSlice = linkifyContent(state.schema)(slice);
@@ -349,7 +349,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
349
349
  event: event,
350
350
  text: text
351
351
  });
352
- if (expValEquals('platform_synced_block', 'isEnabled', true)) {
352
+ if (editorExperiment('platform_synced_block', true)) {
353
353
  slice = transformSyncBlock(slice, schema, getPasteSource(event));
354
354
  }
355
355
  var plainTextPasteSlice = linkifyContent(state.schema)(slice);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "7.4.9",
3
+ "version": "7.4.11",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,24 +44,19 @@
44
44
  "@atlaskit/media-client": "^35.6.0",
45
45
  "@atlaskit/media-common": "^12.3.0",
46
46
  "@atlaskit/platform-feature-flags": "^1.1.0",
47
- "@atlaskit/tmp-editor-statsig": "^13.42.0",
47
+ "@atlaskit/tmp-editor-statsig": "^14.1.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "lodash": "^4.17.21",
50
50
  "react-intl-next": "npm:react-intl@^5.18.1",
51
51
  "uuid": "^3.1.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^110.34.0",
54
+ "@atlaskit/editor-common": "^110.36.0",
55
55
  "react": "^18.2.0",
56
56
  "react-dom": "^18.2.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@af/visual-regression": "workspace:^",
60
- "@atlaskit/editor-plugin-block-type": "^10.2.0",
61
- "@atlaskit/editor-plugin-history": "^6.1.0",
62
- "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
63
59
  "@atlaskit/prosemirror-history": "^0.2.0",
64
- "@atlaskit/ssr": "workspace:^",
65
60
  "@testing-library/react": "^13.4.0",
66
61
  "wait-for-expect": "^1.2.0"
67
62
  },