@atlaskit/editor-plugin-paste 1.7.2 → 1.7.3

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,13 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 1.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#126553](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126553)
8
+ [`c7d63e493e698`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c7d63e493e698) -
9
+ Removed FF platform.editor.place-cursor-inside-text-block
10
+
3
11
  ## 1.7.2
4
12
 
5
13
  ### Patch Changes
@@ -959,7 +959,7 @@ function handleRichText(slice, queueCardsFromChangedTr) {
959
959
  var lastChild = slice.content.lastChild;
960
960
  var $nextPos = tr.doc.resolve(tr.mapping.map(selection.from));
961
961
  var nextSelection = lastChild !== null && lastChild !== void 0 && lastChild.type.isTextblock ? _state.TextSelection.findFrom($nextPos, -1, true) : new _selection.GapCursorSelection($nextPos, _selection.Side.RIGHT);
962
- if (nextSelection && (0, _platformFeatureFlags.fg)('platform.editor.place-cursor-inside-text-block')) {
962
+ if (nextSelection) {
963
963
  tr.setSelection(nextSelection);
964
964
  } else if ((0, _utils.insideTableCell)(state) && shouldUpdateCursorPosAfterPaste) {
965
965
  var nextPos = tr.doc.resolve(tr.mapping.map(selection.$from.pos));
@@ -937,7 +937,7 @@ export function handleRichText(slice, queueCardsFromChangedTr) {
937
937
  const lastChild = slice.content.lastChild;
938
938
  const $nextPos = tr.doc.resolve(tr.mapping.map(selection.from));
939
939
  const nextSelection = lastChild !== null && lastChild !== void 0 && lastChild.type.isTextblock ? TextSelection.findFrom($nextPos, -1, true) : new GapCursorSelection($nextPos, Side.RIGHT);
940
- if (nextSelection && fg('platform.editor.place-cursor-inside-text-block')) {
940
+ if (nextSelection) {
941
941
  tr.setSelection(nextSelection);
942
942
  } else if (insideTableCell(state) && shouldUpdateCursorPosAfterPaste) {
943
943
  const nextPos = tr.doc.resolve(tr.mapping.map(selection.$from.pos));
@@ -936,7 +936,7 @@ export function handleRichText(slice, queueCardsFromChangedTr) {
936
936
  var lastChild = slice.content.lastChild;
937
937
  var $nextPos = tr.doc.resolve(tr.mapping.map(selection.from));
938
938
  var nextSelection = lastChild !== null && lastChild !== void 0 && lastChild.type.isTextblock ? TextSelection.findFrom($nextPos, -1, true) : new GapCursorSelection($nextPos, Side.RIGHT);
939
- if (nextSelection && fg('platform.editor.place-cursor-inside-text-block')) {
939
+ if (nextSelection) {
940
940
  tr.setSelection(nextSelection);
941
941
  } else if (insideTableCell(state) && shouldUpdateCursorPosAfterPaste) {
942
942
  var nextPos = tr.doc.resolve(tr.mapping.map(selection.$from.pos));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,12 +33,12 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^87.0.0",
36
+ "@atlaskit/editor-common": "^87.3.0",
37
37
  "@atlaskit/editor-markdown-transformer": "^5.10.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.6.0",
39
39
  "@atlaskit/editor-plugin-annotation": "^1.18.0",
40
40
  "@atlaskit/editor-plugin-better-type-history": "^1.6.0",
41
- "@atlaskit/editor-plugin-card": "^2.8.0",
41
+ "@atlaskit/editor-plugin-card": "^2.9.0",
42
42
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
43
43
  "@atlaskit/editor-plugin-list": "^3.7.0",
44
44
  "@atlaskit/editor-plugin-media": "^1.27.0",
@@ -57,7 +57,7 @@
57
57
  "devDependencies": {
58
58
  "@af/visual-regression": "*",
59
59
  "@atlaskit/adf-schema": "^40.3.0",
60
- "@atlaskit/editor-plugin-block-type": "^3.10.0",
60
+ "@atlaskit/editor-plugin-block-type": "^3.11.0",
61
61
  "@atlaskit/editor-plugin-history": "^1.2.0",
62
62
  "@atlaskit/editor-plugin-type-ahead": "^1.6.0",
63
63
  "@atlaskit/ssr": "*",
@@ -118,9 +118,6 @@
118
118
  "platform.editor.media.fix-copy-paste-excel_62g4s": {
119
119
  "type": "boolean"
120
120
  },
121
- "platform.editor.place-cursor-inside-text-block": {
122
- "type": "boolean"
123
- },
124
121
  "platform.editor.multi-bodied-extension_0rygg": {
125
122
  "type": "boolean"
126
123
  },