@atlaskit/editor-plugin-paste-options-toolbar 1.1.5 → 1.1.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 +73 -58
- package/LICENSE.md +6 -8
- package/dist/cjs/toolbar.js +2 -2
- package/dist/cjs/ui/styles.js +3 -3
- package/dist/es2019/toolbar.js +2 -2
- package/dist/es2019/ui/styles.js +6 -6
- package/dist/esm/toolbar.js +2 -2
- package/dist/esm/ui/styles.js +3 -2
- package/package.json +101 -103
- package/report.api.md +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,180 +1,195 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste-options-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#113525](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113525)
|
|
8
|
+
[`f60b24002afb7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f60b24002afb7) -
|
|
9
|
+
Null check code block node so we don't crash if the code block plugin hasn't been added.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.1.6
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.1.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
6
21
|
|
|
7
|
-
-
|
|
22
|
+
- Updated dependencies
|
|
8
23
|
|
|
9
24
|
## 1.1.4
|
|
10
25
|
|
|
11
26
|
### Patch Changes
|
|
12
27
|
|
|
13
|
-
-
|
|
28
|
+
- Updated dependencies
|
|
14
29
|
|
|
15
30
|
## 1.1.3
|
|
16
31
|
|
|
17
32
|
### Patch Changes
|
|
18
33
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
34
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
35
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
36
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
37
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
38
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
24
39
|
|
|
25
40
|
## 1.1.2
|
|
26
41
|
|
|
27
42
|
### Patch Changes
|
|
28
43
|
|
|
29
|
-
-
|
|
44
|
+
- Updated dependencies
|
|
30
45
|
|
|
31
46
|
## 1.1.1
|
|
32
47
|
|
|
33
48
|
### Patch Changes
|
|
34
49
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
50
|
+
- [#96138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96138)
|
|
51
|
+
[`6c157cfaf29f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6c157cfaf29f) -
|
|
52
|
+
[ED-19863] Clean-up the paste options toolbar
|
|
38
53
|
|
|
39
54
|
## 1.1.0
|
|
40
55
|
|
|
41
56
|
### Minor Changes
|
|
42
57
|
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
59
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
60
|
+
bumped editor-prosemirror version to 4.0.0
|
|
46
61
|
|
|
47
62
|
### Patch Changes
|
|
48
63
|
|
|
49
|
-
-
|
|
64
|
+
- Updated dependencies
|
|
50
65
|
|
|
51
66
|
## 1.0.3
|
|
52
67
|
|
|
53
68
|
### Patch Changes
|
|
54
69
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
70
|
+
- [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
|
|
71
|
+
[`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
|
|
72
|
+
The internal composition of this package has changed. There is no expected change in behavior.
|
|
58
73
|
|
|
59
74
|
## 1.0.2
|
|
60
75
|
|
|
61
76
|
### Patch Changes
|
|
62
77
|
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
78
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
79
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
80
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
66
81
|
|
|
67
82
|
## 1.0.1
|
|
68
83
|
|
|
69
84
|
### Patch Changes
|
|
70
85
|
|
|
71
|
-
-
|
|
86
|
+
- Updated dependencies
|
|
72
87
|
|
|
73
88
|
## 1.0.0
|
|
74
89
|
|
|
75
90
|
### Major Changes
|
|
76
91
|
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
92
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
93
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
94
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
95
|
+
is to address an issue with Jira plugin consumption.
|
|
81
96
|
|
|
82
97
|
### Patch Changes
|
|
83
98
|
|
|
84
|
-
-
|
|
99
|
+
- Updated dependencies
|
|
85
100
|
|
|
86
101
|
## 0.3.9
|
|
87
102
|
|
|
88
103
|
### Patch Changes
|
|
89
104
|
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
105
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
106
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
107
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
93
108
|
|
|
94
109
|
## 0.3.8
|
|
95
110
|
|
|
96
111
|
### Patch Changes
|
|
97
112
|
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
-
|
|
113
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
114
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
115
|
+
Move all plugin translations to editor-common
|
|
116
|
+
- Updated dependencies
|
|
102
117
|
|
|
103
118
|
## 0.3.7
|
|
104
119
|
|
|
105
120
|
### Patch Changes
|
|
106
121
|
|
|
107
|
-
-
|
|
108
|
-
|
|
109
|
-
|
|
122
|
+
- [#69790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69790)
|
|
123
|
+
[`0de5e8a05235`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0de5e8a05235) -
|
|
124
|
+
ED-21955-update: Correcting outdated comments
|
|
110
125
|
|
|
111
126
|
## 0.3.6
|
|
112
127
|
|
|
113
128
|
### Patch Changes
|
|
114
129
|
|
|
115
|
-
-
|
|
130
|
+
- Updated dependencies
|
|
116
131
|
|
|
117
132
|
## 0.3.5
|
|
118
133
|
|
|
119
134
|
### Patch Changes
|
|
120
135
|
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
136
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
137
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
138
|
+
Ensure all editor plugins are marked as singletons
|
|
124
139
|
|
|
125
140
|
## 0.3.4
|
|
126
141
|
|
|
127
142
|
### Patch Changes
|
|
128
143
|
|
|
129
|
-
-
|
|
144
|
+
- Updated dependencies
|
|
130
145
|
|
|
131
146
|
## 0.3.3
|
|
132
147
|
|
|
133
148
|
### Patch Changes
|
|
134
149
|
|
|
135
|
-
-
|
|
150
|
+
- Updated dependencies
|
|
136
151
|
|
|
137
152
|
## 0.3.2
|
|
138
153
|
|
|
139
154
|
### Patch Changes
|
|
140
155
|
|
|
141
|
-
-
|
|
142
|
-
|
|
143
|
-
|
|
156
|
+
- [#43282](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43282)
|
|
157
|
+
[`ea6aae16859`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea6aae16859) - Fixed
|
|
158
|
+
extra paragraph added on pasting codeblock and modified relevant testcases
|
|
144
159
|
|
|
145
160
|
## 0.3.1
|
|
146
161
|
|
|
147
162
|
### Patch Changes
|
|
148
163
|
|
|
149
|
-
-
|
|
164
|
+
- Updated dependencies
|
|
150
165
|
|
|
151
166
|
## 0.3.0
|
|
152
167
|
|
|
153
168
|
### Minor Changes
|
|
154
169
|
|
|
155
|
-
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
170
|
+
- [#42718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42718)
|
|
171
|
+
[`954af7ba44b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954af7ba44b) - Changing
|
|
172
|
+
hasLinkMark function to use pasted slice instead of state.doc while searching for link in pasted
|
|
173
|
+
text.
|
|
159
174
|
|
|
160
175
|
## 0.2.3
|
|
161
176
|
|
|
162
177
|
### Patch Changes
|
|
163
178
|
|
|
164
|
-
-
|
|
165
|
-
|
|
166
|
-
|
|
179
|
+
- [#42152](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42152)
|
|
180
|
+
[`0097171c562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0097171c562) -
|
|
181
|
+
ED-19766-collab: Adding collab support for paste options toolbar for confluence
|
|
167
182
|
|
|
168
183
|
## 0.2.2
|
|
169
184
|
|
|
170
185
|
### Patch Changes
|
|
171
186
|
|
|
172
|
-
-
|
|
187
|
+
- Updated dependencies
|
|
173
188
|
|
|
174
189
|
## 0.2.1
|
|
175
190
|
|
|
176
191
|
### Patch Changes
|
|
177
192
|
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
193
|
+
- [#42128](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42128)
|
|
194
|
+
[`8d06cbeae33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d06cbeae33) -
|
|
195
|
+
ED-20584: Adding logic to show correct positioning for toolbar in confluence
|
package/LICENSE.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
Copyright 2023 Atlassian Pty Ltd
|
|
2
2
|
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
|
|
5
|
-
You may obtain a copy of the License at
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
6
5
|
|
|
7
6
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
7
|
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
limitations under the License.
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -13,7 +13,7 @@ var _types = require("./types");
|
|
|
13
13
|
var _pasteIcon = _interopRequireDefault(require("./ui/paste-icon"));
|
|
14
14
|
var _util = require("./util");
|
|
15
15
|
var isToolbarVisible = exports.isToolbarVisible = function isToolbarVisible(state, lastContentPasted) {
|
|
16
|
-
var _$from$parent, _$from$node;
|
|
16
|
+
var _$from$parent, _$from$node, _state$schema$nodes$c;
|
|
17
17
|
/**
|
|
18
18
|
* Conditions for not showing the toolbar:
|
|
19
19
|
* 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
|
|
@@ -27,7 +27,7 @@ var isToolbarVisible = exports.isToolbarVisible = function isToolbarVisible(stat
|
|
|
27
27
|
}
|
|
28
28
|
var parentNodeType = (_$from$parent = $from.parent) === null || _$from$parent === void 0 ? void 0 : _$from$parent.type;
|
|
29
29
|
var grandParentNodeType = (_$from$node = $from.node($from.depth - 1)) === null || _$from$node === void 0 ? void 0 : _$from$node.type;
|
|
30
|
-
if (grandParentNodeType && grandParentNodeType.name === state.schema.nodes.doc.name && parentNodeType.name !== state.schema.nodes.codeBlock.name && !(0, _util.isPastedFromFabricEditor)(lastContentPasted.pasteSource) && !(0, _util.hasLinkMark)(lastContentPasted.pastedSlice) && !(0, _util.hasMediaNode)(lastContentPasted.pastedSlice)) {
|
|
30
|
+
if (grandParentNodeType && grandParentNodeType.name === state.schema.nodes.doc.name && parentNodeType.name !== ((_state$schema$nodes$c = state.schema.nodes.codeBlock) === null || _state$schema$nodes$c === void 0 ? void 0 : _state$schema$nodes$c.name) && !(0, _util.isPastedFromFabricEditor)(lastContentPasted.pasteSource) && !(0, _util.hasLinkMark)(lastContentPasted.pastedSlice) && !(0, _util.hasMediaNode)(lastContentPasted.pastedSlice)) {
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
33
|
return false;
|
package/dist/cjs/ui/styles.js
CHANGED
|
@@ -8,6 +8,6 @@ exports.textHighlightStyle = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _constants = require("../pm-plugins/constants");
|
|
11
|
-
var _templateObject;
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
13
|
-
var textHighlightStyle = exports.textHighlightStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n
|
|
11
|
+
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
|
+
var textHighlightStyle = exports.textHighlightStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tbackground-color: ", ";\n\n\t\tborder-bottom: 2px solid ", ";\n\t}\n"])), _constants.TEXT_HIGHLIGHT_CLASS, "var(--ds-background-accent-blue-subtlest, #E9F2FF)", "var(--ds-background-accent-blue-subtler, #cce0ff)");
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -6,7 +6,7 @@ import { pasteOptionsPluginKey, ToolbarDropdownOption } from './types';
|
|
|
6
6
|
import EditorPasteIcon from './ui/paste-icon';
|
|
7
7
|
import { hasLinkMark, hasMediaNode, hasRuleNode, isPastedFromFabricEditor } from './util';
|
|
8
8
|
export const isToolbarVisible = (state, lastContentPasted) => {
|
|
9
|
-
var _$from$parent, _$from$node;
|
|
9
|
+
var _$from$parent, _$from$node, _state$schema$nodes$c;
|
|
10
10
|
/**
|
|
11
11
|
* Conditions for not showing the toolbar:
|
|
12
12
|
* 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
|
|
@@ -20,7 +20,7 @@ export const isToolbarVisible = (state, lastContentPasted) => {
|
|
|
20
20
|
}
|
|
21
21
|
const parentNodeType = (_$from$parent = $from.parent) === null || _$from$parent === void 0 ? void 0 : _$from$parent.type;
|
|
22
22
|
const grandParentNodeType = (_$from$node = $from.node($from.depth - 1)) === null || _$from$node === void 0 ? void 0 : _$from$node.type;
|
|
23
|
-
if (grandParentNodeType && grandParentNodeType.name === state.schema.nodes.doc.name && parentNodeType.name !== state.schema.nodes.codeBlock.name && !isPastedFromFabricEditor(lastContentPasted.pasteSource) && !hasLinkMark(lastContentPasted.pastedSlice) && !hasMediaNode(lastContentPasted.pastedSlice)) {
|
|
23
|
+
if (grandParentNodeType && grandParentNodeType.name === state.schema.nodes.doc.name && parentNodeType.name !== ((_state$schema$nodes$c = state.schema.nodes.codeBlock) === null || _state$schema$nodes$c === void 0 ? void 0 : _state$schema$nodes$c.name) && !isPastedFromFabricEditor(lastContentPasted.pasteSource) && !hasLinkMark(lastContentPasted.pastedSlice) && !hasMediaNode(lastContentPasted.pastedSlice)) {
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
26
|
return false;
|
package/dist/es2019/ui/styles.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { TEXT_HIGHLIGHT_CLASS } from '../pm-plugins/constants';
|
|
3
4
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
6
|
export const textHighlightStyle = css`
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
.${TEXT_HIGHLIGHT_CLASS} {
|
|
8
|
+
background-color: ${"var(--ds-background-accent-blue-subtlest, #E9F2FF)"};
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
10
|
+
border-bottom: 2px solid ${"var(--ds-background-accent-blue-subtler, #cce0ff)"};
|
|
11
|
+
}
|
|
12
12
|
`;
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -6,7 +6,7 @@ import { pasteOptionsPluginKey, ToolbarDropdownOption } from './types';
|
|
|
6
6
|
import EditorPasteIcon from './ui/paste-icon';
|
|
7
7
|
import { hasLinkMark, hasMediaNode, hasRuleNode, isPastedFromFabricEditor } from './util';
|
|
8
8
|
export var isToolbarVisible = function isToolbarVisible(state, lastContentPasted) {
|
|
9
|
-
var _$from$parent, _$from$node;
|
|
9
|
+
var _$from$parent, _$from$node, _state$schema$nodes$c;
|
|
10
10
|
/**
|
|
11
11
|
* Conditions for not showing the toolbar:
|
|
12
12
|
* 1. Pasting link, media or text containing media(note: markdown link and images are allowed)
|
|
@@ -20,7 +20,7 @@ export var isToolbarVisible = function isToolbarVisible(state, lastContentPasted
|
|
|
20
20
|
}
|
|
21
21
|
var parentNodeType = (_$from$parent = $from.parent) === null || _$from$parent === void 0 ? void 0 : _$from$parent.type;
|
|
22
22
|
var grandParentNodeType = (_$from$node = $from.node($from.depth - 1)) === null || _$from$node === void 0 ? void 0 : _$from$node.type;
|
|
23
|
-
if (grandParentNodeType && grandParentNodeType.name === state.schema.nodes.doc.name && parentNodeType.name !== state.schema.nodes.codeBlock.name && !isPastedFromFabricEditor(lastContentPasted.pasteSource) && !hasLinkMark(lastContentPasted.pastedSlice) && !hasMediaNode(lastContentPasted.pastedSlice)) {
|
|
23
|
+
if (grandParentNodeType && grandParentNodeType.name === state.schema.nodes.doc.name && parentNodeType.name !== ((_state$schema$nodes$c = state.schema.nodes.codeBlock) === null || _state$schema$nodes$c === void 0 ? void 0 : _state$schema$nodes$c.name) && !isPastedFromFabricEditor(lastContentPasted.pasteSource) && !hasLinkMark(lastContentPasted.pastedSlice) && !hasMediaNode(lastContentPasted.pastedSlice)) {
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
26
|
return false;
|
package/dist/esm/ui/styles.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
4
5
|
import { TEXT_HIGHLIGHT_CLASS } from '../pm-plugins/constants';
|
|
5
6
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
7
|
-
export var textHighlightStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
|
+
export var textHighlightStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tbackground-color: ", ";\n\n\t\tborder-bottom: 2px solid ", ";\n\t}\n"])), TEXT_HIGHLIGHT_CLASS, "var(--ds-background-accent-blue-subtlest, #E9F2FF)", "var(--ds-background-accent-blue-subtler, #cce0ff)");
|
package/package.json
CHANGED
|
@@ -1,104 +1,102 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
104
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-paste-options-toolbar",
|
|
3
|
+
"version": "1.1.7",
|
|
4
|
+
"description": "Paste options toolbar for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Scarlet",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"inPublicMirror": false,
|
|
14
|
+
"releaseModel": "continuous",
|
|
15
|
+
"runReact18": false
|
|
16
|
+
},
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
|
+
"main": "dist/cjs/index.js",
|
|
19
|
+
"module": "dist/esm/index.js",
|
|
20
|
+
"module:es2019": "dist/es2019/index.js",
|
|
21
|
+
"types": "dist/types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
|
+
"*": [
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"atlaskit:src": "src/index.ts",
|
|
32
|
+
"af:exports": {
|
|
33
|
+
".": "./src/index.ts",
|
|
34
|
+
"./styles": "./src/styles.ts"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@atlaskit/editor-common": "^82.10.0",
|
|
38
|
+
"@atlaskit/editor-markdown-transformer": "^5.6.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
40
|
+
"@atlaskit/editor-plugin-paste": "^1.2.0",
|
|
41
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
42
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
43
|
+
"@atlaskit/icon": "^22.4.0",
|
|
44
|
+
"@atlaskit/tokens": "^1.52.0",
|
|
45
|
+
"@babel/runtime": "^7.0.0",
|
|
46
|
+
"@emotion/react": "^11.7.1",
|
|
47
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": "^16.8.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@af/visual-regression": "*",
|
|
54
|
+
"@atlaskit/ssr": "*",
|
|
55
|
+
"@atlaskit/visual-regression": "*",
|
|
56
|
+
"@testing-library/react": "^12.1.5",
|
|
57
|
+
"react-dom": "^16.8.0",
|
|
58
|
+
"typescript": "~5.4.2",
|
|
59
|
+
"wait-for-expect": "^1.2.0"
|
|
60
|
+
},
|
|
61
|
+
"techstack": {
|
|
62
|
+
"@atlassian/frontend": {
|
|
63
|
+
"code-structure": [
|
|
64
|
+
"tangerine-next"
|
|
65
|
+
],
|
|
66
|
+
"import-structure": [
|
|
67
|
+
"atlassian-conventions"
|
|
68
|
+
],
|
|
69
|
+
"circular-dependencies": [
|
|
70
|
+
"file-and-folder-level"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"@repo/internal": {
|
|
74
|
+
"dom-events": "use-bind-event-listener",
|
|
75
|
+
"analytics": [
|
|
76
|
+
"analytics-next"
|
|
77
|
+
],
|
|
78
|
+
"design-tokens": [
|
|
79
|
+
"color"
|
|
80
|
+
],
|
|
81
|
+
"theming": [
|
|
82
|
+
"react-context"
|
|
83
|
+
],
|
|
84
|
+
"ui-components": [
|
|
85
|
+
"lite-mode"
|
|
86
|
+
],
|
|
87
|
+
"deprecation": "no-deprecated-imports",
|
|
88
|
+
"styling": [
|
|
89
|
+
"emotion",
|
|
90
|
+
"emotion"
|
|
91
|
+
],
|
|
92
|
+
"imports": [
|
|
93
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"techstackIgnore": {
|
|
98
|
+
"stricter": [
|
|
99
|
+
"@atlassian/tangerine/project-structure"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-paste-options-toolbar"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -22,10 +23,10 @@ import type { PastePlugin } from '@atlaskit/editor-plugin-paste';
|
|
|
22
23
|
|
|
23
24
|
// @public (undocumented)
|
|
24
25
|
export const pasteOptionsToolbarPlugin: NextEditorPlugin<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
'pasteOptionsToolbarPlugin',
|
|
27
|
+
{
|
|
28
|
+
dependencies: [OptionalPlugin<AnalyticsPlugin>, PastePlugin];
|
|
29
|
+
}
|
|
29
30
|
>;
|
|
30
31
|
|
|
31
32
|
// (No @packageDocumentation comment for this package)
|
|
@@ -39,7 +40,7 @@ export const pasteOptionsToolbarPlugin: NextEditorPlugin<
|
|
|
39
40
|
|
|
40
41
|
```json
|
|
41
42
|
{
|
|
42
|
-
|
|
43
|
+
"react": "^16.8.0"
|
|
43
44
|
}
|
|
44
45
|
```
|
|
45
46
|
|