@atlaskit/editor-plugin-paste 20.0.5 → 20.0.7

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,20 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 20.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 20.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`56ed7cf145315`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/56ed7cf145315) -
14
+ Cleanup experiment platform_editor_fix_header_paste_in_panel and permanently support pasting
15
+ headings into panels.
16
+ - Updated dependencies
17
+
3
18
  ## 20.0.5
4
19
 
5
20
  ### Patch Changes
@@ -157,7 +157,7 @@ function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
157
157
  var sliceIsInvalid = false;
158
158
  var sliceHasTask = false;
159
159
  slice.content.nodesBetween(0, slice.content.size, function (node) {
160
- if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !(selectionIsPanel && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_fix_header_paste_in_panel')) || node.type === listItem) {
160
+ if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !selectionIsPanel || node.type === listItem) {
161
161
  sliceIsInvalid = true;
162
162
  }
163
163
  if (selectionIsPanel && node.type === taskList) {
@@ -125,7 +125,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
125
125
  let sliceIsInvalid = false;
126
126
  let sliceHasTask = false;
127
127
  slice.content.nodesBetween(0, slice.content.size, node => {
128
- if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !(selectionIsPanel && isExperimentEnabled('platform_editor_fix_header_paste_in_panel')) || node.type === listItem) {
128
+ if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !selectionIsPanel || node.type === listItem) {
129
129
  sliceIsInvalid = true;
130
130
  }
131
131
  if (selectionIsPanel && node.type === taskList) {
@@ -128,7 +128,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
128
128
  var sliceIsInvalid = false;
129
129
  var sliceHasTask = false;
130
130
  slice.content.nodesBetween(0, slice.content.size, function (node) {
131
- if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !(selectionIsPanel && isExperimentEnabled('platform_editor_fix_header_paste_in_panel')) || node.type === listItem) {
131
+ if (node.type === bulletList || node.type === orderedList || node.type === expand || node.type === heading && !selectionIsPanel || node.type === listItem) {
132
132
  sliceIsInvalid = true;
133
133
  }
134
134
  if (selectionIsPanel && node.type === taskList) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "20.0.5",
3
+ "version": "20.0.7",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -44,14 +44,14 @@
44
44
  "@atlaskit/platform-feature-experiments": "^0.3.0",
45
45
  "@atlaskit/platform-feature-flags": "^2.2.0",
46
46
  "@atlaskit/prosemirror-history": "^1.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^202.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^204.0.0",
48
48
  "@atlaskit/tokens": "^19.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "lodash": "^4.17.21",
51
51
  "uuid": "^11.1.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^123.7.0",
54
+ "@atlaskit/editor-common": "^123.8.0",
55
55
  "react": "^18.2.0 || ^19.2.0",
56
56
  "react-dom": "^18.2.0 || ^19.2.0",
57
57
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"