@atlaskit/editor-plugin-paste 2.0.3 → 2.0.5
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 +18 -0
- package/dist/cjs/commands.js +1 -2
- package/dist/es2019/commands.js +1 -2
- package/dist/esm/commands.js +1 -2
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 2.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165765](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165765)
|
|
8
|
+
[`3f441f30e6507`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f441f30e6507) -
|
|
9
|
+
Bump adf-schema to 46.0.0
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 2.0.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#166663](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166663)
|
|
17
|
+
[`339439561ae6d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/339439561ae6d) -
|
|
18
|
+
Cleanup feature gate for CONFCLOUD-79708
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 2.0.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/commands.js
CHANGED
|
@@ -11,7 +11,6 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
11
11
|
var _commands = require("@atlaskit/editor-prosemirror/commands");
|
|
12
12
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _actions = require("./actions");
|
|
16
15
|
var _pluginFactory = require("./pm-plugins/plugin-factory");
|
|
17
16
|
/**
|
|
@@ -132,7 +131,7 @@ var extractListFromParagraph = exports.extractListFromParagraph = function extra
|
|
|
132
131
|
if (!listMatch ||
|
|
133
132
|
// CONFCLOUD-79708: If we are inside a list - let's not try to upgrade list as it resolves
|
|
134
133
|
// to invalid content
|
|
135
|
-
isListItem(parent, schema)
|
|
134
|
+
isListItem(parent, schema)) {
|
|
136
135
|
// if there is not list match return as is
|
|
137
136
|
paragraphParts.push(line);
|
|
138
137
|
continue;
|
package/dist/es2019/commands.js
CHANGED
|
@@ -2,7 +2,6 @@ import { isListNode, mapChildren, mapSlice } from '@atlaskit/editor-common/utils
|
|
|
2
2
|
import { autoJoin } from '@atlaskit/editor-prosemirror/commands';
|
|
3
3
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { PastePluginActionTypes as ActionTypes } from './actions';
|
|
7
6
|
import { createCommand } from './pm-plugins/plugin-factory';
|
|
8
7
|
|
|
@@ -120,7 +119,7 @@ export const extractListFromParagraph = (node, parent, schema) => {
|
|
|
120
119
|
if (!listMatch ||
|
|
121
120
|
// CONFCLOUD-79708: If we are inside a list - let's not try to upgrade list as it resolves
|
|
122
121
|
// to invalid content
|
|
123
|
-
isListItem(parent, schema)
|
|
122
|
+
isListItem(parent, schema)) {
|
|
124
123
|
// if there is not list match return as is
|
|
125
124
|
paragraphParts.push(line);
|
|
126
125
|
continue;
|
package/dist/esm/commands.js
CHANGED
|
@@ -4,7 +4,6 @@ import { isListNode, mapChildren, mapSlice } from '@atlaskit/editor-common/utils
|
|
|
4
4
|
import { autoJoin } from '@atlaskit/editor-prosemirror/commands';
|
|
5
5
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { PastePluginActionTypes as ActionTypes } from './actions';
|
|
9
8
|
import { createCommand } from './pm-plugins/plugin-factory';
|
|
10
9
|
|
|
@@ -126,7 +125,7 @@ export var extractListFromParagraph = function extractListFromParagraph(node, pa
|
|
|
126
125
|
if (!listMatch ||
|
|
127
126
|
// CONFCLOUD-79708: If we are inside a list - let's not try to upgrade list as it resolves
|
|
128
127
|
// to invalid content
|
|
129
|
-
isListItem(parent, schema)
|
|
128
|
+
isListItem(parent, schema)) {
|
|
130
129
|
// if there is not list match return as is
|
|
131
130
|
paragraphParts.push(line);
|
|
132
131
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^95.7.0",
|
|
35
35
|
"@atlaskit/editor-markdown-transformer": "^5.13.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
37
|
-
"@atlaskit/editor-plugin-annotation": "^1.
|
|
37
|
+
"@atlaskit/editor-plugin-annotation": "^1.25.0",
|
|
38
38
|
"@atlaskit/editor-plugin-better-type-history": "^1.9.0",
|
|
39
39
|
"@atlaskit/editor-plugin-card": "^4.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
42
|
-
"@atlaskit/editor-plugin-media": "^1.
|
|
42
|
+
"@atlaskit/editor-plugin-media": "^1.42.0",
|
|
43
43
|
"@atlaskit/editor-plugin-mentions": "^2.10.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
45
45
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
46
|
-
"@atlaskit/media-client": "^28.
|
|
46
|
+
"@atlaskit/media-client": "^28.3.0",
|
|
47
47
|
"@atlaskit/media-common": "^11.7.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^2.21.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"lodash": "^4.17.21",
|
|
52
52
|
"uuid": "^3.1.0"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@af/visual-regression": "*",
|
|
60
|
-
"@atlaskit/adf-schema": "^
|
|
60
|
+
"@atlaskit/adf-schema": "^46.1.0",
|
|
61
61
|
"@atlaskit/editor-plugin-block-type": "^4.0.0",
|
|
62
62
|
"@atlaskit/editor-plugin-history": "^1.3.0",
|
|
63
63
|
"@atlaskit/editor-plugin-type-ahead": "^1.10.0",
|
|
@@ -120,9 +120,6 @@
|
|
|
120
120
|
},
|
|
121
121
|
"editor_nest_media_and_codeblock_in_quotes_jira": {
|
|
122
122
|
"type": "boolean"
|
|
123
|
-
},
|
|
124
|
-
"platform_editor_escape_formatting_for_nested_list": {
|
|
125
|
-
"type": "boolean"
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
125
|
}
|