@atlaskit/editor-plugin-paste 1.3.2 → 1.4.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,26 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#115817](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115817)
8
+ [`d647eedc6ddd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d647eedc6ddd4) -
9
+ [ux] [ED-23275] Feature flag cleanup for allow-extended-panel
10
+ - Updated dependencies
11
+
12
+ ## 1.4.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#115247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115247)
17
+ [`251d23ff9e6c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/251d23ff9e6c8) -
18
+ upgrade adf-schema version to 38.0.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 1.3.2
4
25
 
5
26
  ### Patch Changes
@@ -164,7 +164,7 @@ function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChangedTr) {
164
164
  // and the slice is not a whole node (i.e. openStart is 1 and openEnd is 0)
165
165
  // or the slice's first node is a paragraph,
166
166
  // then we can replace the selection with our slice.
167
- var pastingIntoExtendedPanel = selectionIsPanel && (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-extended-panel') && panel.validContent(transformedSlice.content);
167
+ var pastingIntoExtendedPanel = selectionIsPanel && panel.validContent(transformedSlice.content);
168
168
  if ((transformedSliceIsValidNode || selectionIsValidNode) && !pastingIntoExtendedPanel && !(transformedSlice.openStart === 1 && transformedSlice.openEnd === 0 ||
169
169
  // Whole codeblock node has reverse slice depths.
170
170
  transformedSlice.openStart === 0 && transformedSlice.openEnd === 1) || ((_transformedSlice$con = transformedSlice.content.firstChild) === null || _transformedSlice$con === void 0 ? void 0 : _transformedSlice$con.type) === paragraph) {
@@ -136,7 +136,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
136
136
  // and the slice is not a whole node (i.e. openStart is 1 and openEnd is 0)
137
137
  // or the slice's first node is a paragraph,
138
138
  // then we can replace the selection with our slice.
139
- const pastingIntoExtendedPanel = selectionIsPanel && getBooleanFF('platform.editor.allow-extended-panel') && panel.validContent(transformedSlice.content);
139
+ const pastingIntoExtendedPanel = selectionIsPanel && panel.validContent(transformedSlice.content);
140
140
  if ((transformedSliceIsValidNode || selectionIsValidNode) && !pastingIntoExtendedPanel && !(transformedSlice.openStart === 1 && transformedSlice.openEnd === 0 ||
141
141
  // Whole codeblock node has reverse slice depths.
142
142
  transformedSlice.openStart === 0 && transformedSlice.openEnd === 1) || ((_transformedSlice$con = transformedSlice.content.firstChild) === null || _transformedSlice$con === void 0 ? void 0 : _transformedSlice$con.type) === paragraph) {
@@ -141,7 +141,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
141
141
  // and the slice is not a whole node (i.e. openStart is 1 and openEnd is 0)
142
142
  // or the slice's first node is a paragraph,
143
143
  // then we can replace the selection with our slice.
144
- var pastingIntoExtendedPanel = selectionIsPanel && getBooleanFF('platform.editor.allow-extended-panel') && panel.validContent(transformedSlice.content);
144
+ var pastingIntoExtendedPanel = selectionIsPanel && panel.validContent(transformedSlice.content);
145
145
  if ((transformedSliceIsValidNode || selectionIsValidNode) && !pastingIntoExtendedPanel && !(transformedSlice.openStart === 1 && transformedSlice.openEnd === 0 ||
146
146
  // Whole codeblock node has reverse slice depths.
147
147
  transformedSlice.openStart === 0 && transformedSlice.openEnd === 1) || ((_transformedSlice$con = transformedSlice.content.firstChild) === null || _transformedSlice$con === void 0 ? void 0 : _transformedSlice$con.type) === paragraph) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "1.3.2",
3
+ "version": "1.4.1",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,15 +33,15 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^83.0.0",
37
- "@atlaskit/editor-markdown-transformer": "^5.7.0",
38
- "@atlaskit/editor-plugin-analytics": "^1.3.0",
39
- "@atlaskit/editor-plugin-annotation": "^1.12.0",
40
- "@atlaskit/editor-plugin-better-type-history": "^1.3.0",
41
- "@atlaskit/editor-plugin-card": "^2.1.0",
36
+ "@atlaskit/editor-common": "^83.4.0",
37
+ "@atlaskit/editor-markdown-transformer": "^5.8.0",
38
+ "@atlaskit/editor-plugin-analytics": "^1.4.0",
39
+ "@atlaskit/editor-plugin-annotation": "^1.13.0",
40
+ "@atlaskit/editor-plugin-better-type-history": "^1.4.0",
41
+ "@atlaskit/editor-plugin-card": "^2.2.0",
42
42
  "@atlaskit/editor-plugin-feature-flags": "^1.1.0",
43
- "@atlaskit/editor-plugin-list": "^3.4.0",
44
- "@atlaskit/editor-plugin-media": "^1.21.0",
43
+ "@atlaskit/editor-plugin-list": "^3.5.0",
44
+ "@atlaskit/editor-plugin-media": "^1.22.0",
45
45
  "@atlaskit/editor-prosemirror": "4.0.1",
46
46
  "@atlaskit/editor-tables": "^2.7.0",
47
47
  "@atlaskit/media-client": "^27.3.0",
@@ -56,10 +56,10 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@af/visual-regression": "*",
59
- "@atlaskit/adf-schema": "^37.0.0",
60
- "@atlaskit/editor-plugin-block-type": "^3.7.0",
59
+ "@atlaskit/adf-schema": "^38.0.0",
60
+ "@atlaskit/editor-plugin-block-type": "^3.8.0",
61
61
  "@atlaskit/editor-plugin-history": "^1.1.0",
62
- "@atlaskit/editor-plugin-type-ahead": "^1.3.0",
62
+ "@atlaskit/editor-plugin-type-ahead": "^1.4.0",
63
63
  "@atlaskit/ssr": "*",
64
64
  "@atlaskit/visual-regression": "*",
65
65
  "@atlassian/feature-flags-test-utils": "^0.2.0",
@@ -113,9 +113,6 @@
113
113
  "platform.editor.media.extended-resize-experience": {
114
114
  "type": "boolean"
115
115
  },
116
- "platform.editor.allow-extended-panel": {
117
- "type": "boolean"
118
- },
119
116
  "platform.editor.allow-action-in-list": {
120
117
  "type": "boolean"
121
118
  },