@atlaskit/editor-plugin-paste 2.0.14 → 2.0.15

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,14 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 2.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#102045](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102045)
8
+ [`44f96aff22dd9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/44f96aff22dd9) -
9
+ [ED-26179] clean up platform_editor_elements_dnd_nested_table
10
+ - Updated dependencies
11
+
3
12
  ## 2.0.14
4
13
 
5
14
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.createPlugin = void 0;
7
7
  var _analytics = require("@atlaskit/editor-common/analytics");
8
8
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
9
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
10
9
  var _commands = require("./commands");
11
10
  var _pluginFactory = require("./plugin-factory");
12
11
  var _pluginKey = require("./plugin-key");
@@ -101,7 +100,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, editor
101
100
  if (!resetState && (0, _utils.isInlineNode)(nodeName) && (0, _utils.isNestedInlineNode)(selection)) {
102
101
  resetState = true;
103
102
  }
104
- if (!resetState && (0, _utils.isNestedInTable)(state) && (0, _experiments.editorExperiment)('table-nested-dnd', false)) {
103
+ if (!resetState && (0, _utils.isNestedInTable)(state)) {
105
104
  resetState = true;
106
105
  }
107
106
  if (resetState) {
@@ -1,6 +1,5 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
3
  import { resetContentMoved, resetContentMovedTransform, updateContentMoved } from './commands';
5
4
  import { createPluginState, getPluginState } from './plugin-factory';
6
5
  import { pluginKey } from './plugin-key';
@@ -107,7 +106,7 @@ export const createPlugin = (dispatch, editorAnalyticsAPI) => {
107
106
  if (!resetState && isInlineNode(nodeName) && isNestedInlineNode(selection)) {
108
107
  resetState = true;
109
108
  }
110
- if (!resetState && isNestedInTable(state) && editorExperiment('table-nested-dnd', false)) {
109
+ if (!resetState && isNestedInTable(state)) {
111
110
  resetState = true;
112
111
  }
113
112
  if (resetState) {
@@ -1,6 +1,5 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
4
3
  import { resetContentMoved, resetContentMovedTransform, updateContentMoved } from './commands';
5
4
  import { createPluginState, getPluginState } from './plugin-factory';
6
5
  import { pluginKey } from './plugin-key';
@@ -96,7 +95,7 @@ export var createPlugin = function createPlugin(dispatch, editorAnalyticsAPI) {
96
95
  if (!resetState && isInlineNode(nodeName) && isNestedInlineNode(selection)) {
97
96
  resetState = true;
98
97
  }
99
- if (!resetState && isNestedInTable(state) && editorExperiment('table-nested-dnd', false)) {
98
+ if (!resetState && isNestedInTable(state)) {
100
99
  resetState = true;
101
100
  }
102
101
  if (resetState) {
@@ -33,19 +33,20 @@ export type PastePluginOptions = {
33
33
  sanitizePrivateContent?: boolean;
34
34
  isFullPage?: boolean;
35
35
  };
36
+ export type PastePluginDependencies = [
37
+ OptionalPlugin<FeatureFlagsPlugin>,
38
+ OptionalPlugin<ListPlugin>,
39
+ BetterTypeHistoryPlugin,
40
+ OptionalPlugin<CardPlugin>,
41
+ OptionalPlugin<AnalyticsPlugin>,
42
+ OptionalPlugin<MediaPlugin>,
43
+ OptionalPlugin<ExtensionPlugin>,
44
+ OptionalPlugin<AnnotationPlugin>,
45
+ OptionalPlugin<MentionsPlugin>
46
+ ];
36
47
  export type PastePlugin = NextEditorPlugin<'paste', {
37
48
  pluginConfiguration: PastePluginOptions;
38
- dependencies: [
39
- OptionalPlugin<FeatureFlagsPlugin>,
40
- OptionalPlugin<ListPlugin>,
41
- BetterTypeHistoryPlugin,
42
- OptionalPlugin<CardPlugin>,
43
- OptionalPlugin<AnalyticsPlugin>,
44
- OptionalPlugin<MediaPlugin>,
45
- OptionalPlugin<ExtensionPlugin>,
46
- OptionalPlugin<AnnotationPlugin>,
47
- OptionalPlugin<MentionsPlugin>
48
- ];
49
+ dependencies: PastePluginDependencies;
49
50
  sharedState: {
50
51
  lastContentPasted: LastContentPasted | null;
51
52
  };
@@ -33,19 +33,20 @@ export type PastePluginOptions = {
33
33
  sanitizePrivateContent?: boolean;
34
34
  isFullPage?: boolean;
35
35
  };
36
+ export type PastePluginDependencies = [
37
+ OptionalPlugin<FeatureFlagsPlugin>,
38
+ OptionalPlugin<ListPlugin>,
39
+ BetterTypeHistoryPlugin,
40
+ OptionalPlugin<CardPlugin>,
41
+ OptionalPlugin<AnalyticsPlugin>,
42
+ OptionalPlugin<MediaPlugin>,
43
+ OptionalPlugin<ExtensionPlugin>,
44
+ OptionalPlugin<AnnotationPlugin>,
45
+ OptionalPlugin<MentionsPlugin>
46
+ ];
36
47
  export type PastePlugin = NextEditorPlugin<'paste', {
37
48
  pluginConfiguration: PastePluginOptions;
38
- dependencies: [
39
- OptionalPlugin<FeatureFlagsPlugin>,
40
- OptionalPlugin<ListPlugin>,
41
- BetterTypeHistoryPlugin,
42
- OptionalPlugin<CardPlugin>,
43
- OptionalPlugin<AnalyticsPlugin>,
44
- OptionalPlugin<MediaPlugin>,
45
- OptionalPlugin<ExtensionPlugin>,
46
- OptionalPlugin<AnnotationPlugin>,
47
- OptionalPlugin<MentionsPlugin>
48
- ];
49
+ dependencies: PastePluginDependencies;
49
50
  sharedState: {
50
51
  lastContentPasted: LastContentPasted | null;
51
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^99.0.0",
34
+ "@atlaskit/editor-common": "^99.1.0",
35
35
  "@atlaskit/editor-markdown-transformer": "^5.13.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
37
37
  "@atlaskit/editor-plugin-annotation": "^1.26.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/media-client": "^29.0.0",
47
47
  "@atlaskit/media-common": "^11.7.0",
48
48
  "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/tmp-editor-statsig": "^2.33.0",
49
+ "@atlaskit/tmp-editor-statsig": "^2.34.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "lodash": "^4.17.21",
52
52
  "uuid": "^3.1.0"