@atlaskit/editor-plugin-paste-options-toolbar 1.1.0 → 1.1.2
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 +61 -21
- package/dist/cjs/toolbar.js +3 -8
- package/dist/es2019/toolbar.js +3 -8
- package/dist/esm/toolbar.js +3 -8
- package/package.json +5 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,118 +1,158 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste-options-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#96138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96138)
|
|
14
|
+
[`6c157cfaf29f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6c157cfaf29f) -
|
|
15
|
+
[ED-19863] Clean-up the paste options toolbar
|
|
16
|
+
|
|
3
17
|
## 1.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
21
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
22
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
23
|
+
bumped editor-prosemirror version to 4.0.0
|
|
8
24
|
|
|
9
25
|
### Patch Changes
|
|
10
26
|
|
|
11
|
-
-
|
|
27
|
+
- Updated dependencies
|
|
12
28
|
|
|
13
29
|
## 1.0.3
|
|
14
30
|
|
|
15
31
|
### Patch Changes
|
|
16
32
|
|
|
17
|
-
-
|
|
33
|
+
- [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
|
|
34
|
+
[`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
|
|
35
|
+
The internal composition of this package has changed. There is no expected change in behavior.
|
|
18
36
|
|
|
19
37
|
## 1.0.2
|
|
20
38
|
|
|
21
39
|
### Patch Changes
|
|
22
40
|
|
|
23
|
-
-
|
|
41
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
42
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
43
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
24
44
|
|
|
25
45
|
## 1.0.1
|
|
26
46
|
|
|
27
47
|
### Patch Changes
|
|
28
48
|
|
|
29
|
-
-
|
|
49
|
+
- Updated dependencies
|
|
30
50
|
|
|
31
51
|
## 1.0.0
|
|
32
52
|
|
|
33
53
|
### Major Changes
|
|
34
54
|
|
|
35
|
-
-
|
|
55
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
56
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
57
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
58
|
+
is to address an issue with Jira plugin consumption.
|
|
36
59
|
|
|
37
60
|
### Patch Changes
|
|
38
61
|
|
|
39
|
-
-
|
|
62
|
+
- Updated dependencies
|
|
40
63
|
|
|
41
64
|
## 0.3.9
|
|
42
65
|
|
|
43
66
|
### Patch Changes
|
|
44
67
|
|
|
45
|
-
-
|
|
68
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
69
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
70
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
46
71
|
|
|
47
72
|
## 0.3.8
|
|
48
73
|
|
|
49
74
|
### Patch Changes
|
|
50
75
|
|
|
51
|
-
-
|
|
52
|
-
-
|
|
76
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
77
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
78
|
+
Move all plugin translations to editor-common
|
|
79
|
+
- Updated dependencies
|
|
53
80
|
|
|
54
81
|
## 0.3.7
|
|
55
82
|
|
|
56
83
|
### Patch Changes
|
|
57
84
|
|
|
58
|
-
-
|
|
85
|
+
- [#69790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69790)
|
|
86
|
+
[`0de5e8a05235`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0de5e8a05235) -
|
|
87
|
+
ED-21955-update: Correcting outdated comments
|
|
59
88
|
|
|
60
89
|
## 0.3.6
|
|
61
90
|
|
|
62
91
|
### Patch Changes
|
|
63
92
|
|
|
64
|
-
-
|
|
93
|
+
- Updated dependencies
|
|
65
94
|
|
|
66
95
|
## 0.3.5
|
|
67
96
|
|
|
68
97
|
### Patch Changes
|
|
69
98
|
|
|
70
|
-
-
|
|
99
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
100
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
101
|
+
Ensure all editor plugins are marked as singletons
|
|
71
102
|
|
|
72
103
|
## 0.3.4
|
|
73
104
|
|
|
74
105
|
### Patch Changes
|
|
75
106
|
|
|
76
|
-
-
|
|
107
|
+
- Updated dependencies
|
|
77
108
|
|
|
78
109
|
## 0.3.3
|
|
79
110
|
|
|
80
111
|
### Patch Changes
|
|
81
112
|
|
|
82
|
-
-
|
|
113
|
+
- Updated dependencies
|
|
83
114
|
|
|
84
115
|
## 0.3.2
|
|
85
116
|
|
|
86
117
|
### Patch Changes
|
|
87
118
|
|
|
88
|
-
-
|
|
119
|
+
- [#43282](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43282)
|
|
120
|
+
[`ea6aae16859`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea6aae16859) - Fixed
|
|
121
|
+
extra paragraph added on pasting codeblock and modified relevant testcases
|
|
89
122
|
|
|
90
123
|
## 0.3.1
|
|
91
124
|
|
|
92
125
|
### Patch Changes
|
|
93
126
|
|
|
94
|
-
-
|
|
127
|
+
- Updated dependencies
|
|
95
128
|
|
|
96
129
|
## 0.3.0
|
|
97
130
|
|
|
98
131
|
### Minor Changes
|
|
99
132
|
|
|
100
|
-
-
|
|
133
|
+
- [#42718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42718)
|
|
134
|
+
[`954af7ba44b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954af7ba44b) -
|
|
135
|
+
Changing hasLinkMark function to use pasted slice instead of state.doc while searching for link
|
|
136
|
+
in pasted text.
|
|
101
137
|
|
|
102
138
|
## 0.2.3
|
|
103
139
|
|
|
104
140
|
### Patch Changes
|
|
105
141
|
|
|
106
|
-
-
|
|
142
|
+
- [#42152](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42152)
|
|
143
|
+
[`0097171c562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0097171c562) -
|
|
144
|
+
ED-19766-collab: Adding collab support for paste options toolbar for confluence
|
|
107
145
|
|
|
108
146
|
## 0.2.2
|
|
109
147
|
|
|
110
148
|
### Patch Changes
|
|
111
149
|
|
|
112
|
-
-
|
|
150
|
+
- Updated dependencies
|
|
113
151
|
|
|
114
152
|
## 0.2.1
|
|
115
153
|
|
|
116
154
|
### Patch Changes
|
|
117
155
|
|
|
118
|
-
-
|
|
156
|
+
- [#42128](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42128)
|
|
157
|
+
[`8d06cbeae33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d06cbeae33) -
|
|
158
|
+
ED-20584: Adding logic to show correct positioning for toolbar in confluence
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.isToolbarVisible = exports.getToolbarMenuConfig = exports.buildToolbar = void 0;
|
|
8
8
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
9
9
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _commands = require("./commands");
|
|
12
11
|
var _constants = require("./pm-plugins/constants");
|
|
13
12
|
var _types = require("./types");
|
|
@@ -17,15 +16,11 @@ var isToolbarVisible = exports.isToolbarVisible = function isToolbarVisible(stat
|
|
|
17
16
|
var _$from$parent, _$from$node;
|
|
18
17
|
/**
|
|
19
18
|
* Conditions for not showing the toolbar:
|
|
20
|
-
* 1.
|
|
21
|
-
* 2.
|
|
22
|
-
* 3. Content is pasted in a nested node(i.e. inside a table, panel etc.).
|
|
19
|
+
* 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
|
|
20
|
+
* 2. Content is pasted in a nested node(i.e. inside a table, panel etc.).
|
|
23
21
|
* (grandParent node should be root doc for showing up the toolbar)
|
|
24
|
-
*
|
|
22
|
+
* 3. Cursor is inside the codeblock.
|
|
25
23
|
*/
|
|
26
|
-
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.paste-options-toolbar')) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
24
|
var $from = state.selection.$from;
|
|
30
25
|
if ((0, _util.hasRuleNode)(lastContentPasted.pastedSlice, state.schema)) {
|
|
31
26
|
return false;
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { changeToMarkdownWithAnalytics, changeToPlainTextWithAnalytics, changeToRichTextWithAnalytics, dropdownClickHandler } from './commands';
|
|
5
4
|
import { PASTE_OPTIONS_TEST_ID, PASTE_TOOLBAR_CLASS, PASTE_TOOLBAR_ITEM_CLASS } from './pm-plugins/constants';
|
|
6
5
|
import { pasteOptionsPluginKey, ToolbarDropdownOption } from './types';
|
|
@@ -10,15 +9,11 @@ export const isToolbarVisible = (state, lastContentPasted) => {
|
|
|
10
9
|
var _$from$parent, _$from$node;
|
|
11
10
|
/**
|
|
12
11
|
* Conditions for not showing the toolbar:
|
|
13
|
-
* 1.
|
|
14
|
-
* 2.
|
|
15
|
-
* 3. Content is pasted in a nested node(i.e. inside a table, panel etc.).
|
|
12
|
+
* 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
|
|
13
|
+
* 2. Content is pasted in a nested node(i.e. inside a table, panel etc.).
|
|
16
14
|
* (grandParent node should be root doc for showing up the toolbar)
|
|
17
|
-
*
|
|
15
|
+
* 3. Cursor is inside the codeblock.
|
|
18
16
|
*/
|
|
19
|
-
if (!getBooleanFF('platform.editor.paste-options-toolbar')) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
17
|
const $from = state.selection.$from;
|
|
23
18
|
if (hasRuleNode(lastContentPasted.pastedSlice, state.schema)) {
|
|
24
19
|
return false;
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
|
|
2
2
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { changeToMarkdownWithAnalytics, changeToPlainTextWithAnalytics, changeToRichTextWithAnalytics, dropdownClickHandler } from './commands';
|
|
5
4
|
import { PASTE_OPTIONS_TEST_ID, PASTE_TOOLBAR_CLASS, PASTE_TOOLBAR_ITEM_CLASS } from './pm-plugins/constants';
|
|
6
5
|
import { pasteOptionsPluginKey, ToolbarDropdownOption } from './types';
|
|
@@ -10,15 +9,11 @@ export var isToolbarVisible = function isToolbarVisible(state, lastContentPasted
|
|
|
10
9
|
var _$from$parent, _$from$node;
|
|
11
10
|
/**
|
|
12
11
|
* Conditions for not showing the toolbar:
|
|
13
|
-
* 1.
|
|
14
|
-
* 2.
|
|
15
|
-
* 3. Content is pasted in a nested node(i.e. inside a table, panel etc.).
|
|
12
|
+
* 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
|
|
13
|
+
* 2. Content is pasted in a nested node(i.e. inside a table, panel etc.).
|
|
16
14
|
* (grandParent node should be root doc for showing up the toolbar)
|
|
17
|
-
*
|
|
15
|
+
* 3. Cursor is inside the codeblock.
|
|
18
16
|
*/
|
|
19
|
-
if (!getBooleanFF('platform.editor.paste-options-toolbar')) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
17
|
var $from = state.selection.$from;
|
|
23
18
|
if (hasRuleNode(lastContentPasted.pastedSlice, state.schema)) {
|
|
24
19
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste-options-toolbar",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Paste options toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,15 +34,14 @@
|
|
|
34
34
|
"./styles": "./src/styles.ts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
37
|
+
"@atlaskit/editor-common": "^79.0.0",
|
|
38
38
|
"@atlaskit/editor-markdown-transformer": "^5.5.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-paste": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "4.0.0",
|
|
42
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
42
|
+
"@atlaskit/editor-shared-styles": "^2.10.0",
|
|
43
43
|
"@atlaskit/icon": "^22.1.0",
|
|
44
|
-
"@atlaskit/
|
|
45
|
-
"@atlaskit/tokens": "^1.43.0",
|
|
44
|
+
"@atlaskit/tokens": "^1.45.0",
|
|
46
45
|
"@babel/runtime": "^7.0.0",
|
|
47
46
|
"@emotion/react": "^11.7.1",
|
|
48
47
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -101,10 +100,5 @@
|
|
|
101
100
|
"@atlassian/tangerine/project-structure"
|
|
102
101
|
]
|
|
103
102
|
},
|
|
104
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
105
|
-
"platform-feature-flags": {
|
|
106
|
-
"platform.editor.paste-options-toolbar": {
|
|
107
|
-
"type": "boolean"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
103
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
110
104
|
}
|