@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 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
- - Updated dependencies
22
+ - Updated dependencies
8
23
 
9
24
  ## 1.1.4
10
25
 
11
26
  ### Patch Changes
12
27
 
13
- - Updated dependencies
28
+ - Updated dependencies
14
29
 
15
30
  ## 1.1.3
16
31
 
17
32
  ### Patch Changes
18
33
 
19
- - [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
20
- [`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
21
- [HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
22
- language triggering composition on an empty line.This was fixed in a patch bump of
23
- prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
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
- - Updated dependencies
44
+ - Updated dependencies
30
45
 
31
46
  ## 1.1.1
32
47
 
33
48
  ### Patch Changes
34
49
 
35
- - [#96138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96138)
36
- [`6c157cfaf29f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6c157cfaf29f) -
37
- [ED-19863] Clean-up the paste options toolbar
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
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
44
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
45
- bumped editor-prosemirror version to 4.0.0
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
- - Updated dependencies
64
+ - Updated dependencies
50
65
 
51
66
  ## 1.0.3
52
67
 
53
68
  ### Patch Changes
54
69
 
55
- - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
56
- [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
57
- The internal composition of this package has changed. There is no expected change in behavior.
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
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
64
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
65
- Upgrade Typescript from `4.9.5` to `5.4.2`
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
- - Updated dependencies
86
+ - Updated dependencies
72
87
 
73
88
  ## 1.0.0
74
89
 
75
90
  ### Major Changes
76
91
 
77
- - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
78
- [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
79
- This changeset exists to bump all editor plugins that currently don't have a major version. This
80
- is to address an issue with Jira plugin consumption.
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
- - Updated dependencies
99
+ - Updated dependencies
85
100
 
86
101
  ## 0.3.9
87
102
 
88
103
  ### Patch Changes
89
104
 
90
- - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
91
- [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
92
- Upgrading @atlaskit/editor-prosemirror dependency
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
- - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
99
- [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
100
- Move all plugin translations to editor-common
101
- - Updated dependencies
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
- - [#69790](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/69790)
108
- [`0de5e8a05235`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0de5e8a05235) -
109
- ED-21955-update: Correcting outdated comments
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
- - Updated dependencies
130
+ - Updated dependencies
116
131
 
117
132
  ## 0.3.5
118
133
 
119
134
  ### Patch Changes
120
135
 
121
- - [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
122
- [`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
123
- Ensure all editor plugins are marked as singletons
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
- - Updated dependencies
144
+ - Updated dependencies
130
145
 
131
146
  ## 0.3.3
132
147
 
133
148
  ### Patch Changes
134
149
 
135
- - Updated dependencies
150
+ - Updated dependencies
136
151
 
137
152
  ## 0.3.2
138
153
 
139
154
  ### Patch Changes
140
155
 
141
- - [#43282](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43282)
142
- [`ea6aae16859`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea6aae16859) - Fixed
143
- extra paragraph added on pasting codeblock and modified relevant testcases
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
- - Updated dependencies
164
+ - Updated dependencies
150
165
 
151
166
  ## 0.3.0
152
167
 
153
168
  ### Minor Changes
154
169
 
155
- - [#42718](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42718)
156
- [`954af7ba44b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954af7ba44b) -
157
- Changing hasLinkMark function to use pasted slice instead of state.doc while searching for link
158
- in pasted text.
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
- - [#42152](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42152)
165
- [`0097171c562`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0097171c562) -
166
- ED-19766-collab: Adding collab support for paste options toolbar for confluence
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
- - Updated dependencies
187
+ - Updated dependencies
173
188
 
174
189
  ## 0.2.1
175
190
 
176
191
  ### Patch Changes
177
192
 
178
- - [#42128](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42128)
179
- [`8d06cbeae33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d06cbeae33) -
180
- ED-20584: Adding logic to show correct positioning for toolbar in confluence
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
- you may not use this file except in compliance with the License.
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 under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
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.
@@ -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;
@@ -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 -- needs manual remediation
13
- var textHighlightStyle = exports.textHighlightStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n background-color: ", ";\n\n border-bottom: 2px solid\n ", ";\n }\n"])), _constants.TEXT_HIGHLIGHT_CLASS, "var(--ds-background-accent-blue-subtlest, #E9F2FF)", "var(--ds-background-accent-blue-subtler, #cce0ff)");
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)");
@@ -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;
@@ -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 -- needs manual remediation
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
- .${TEXT_HIGHLIGHT_CLASS} {
7
- background-color: ${"var(--ds-background-accent-blue-subtlest, #E9F2FF)"};
7
+ .${TEXT_HIGHLIGHT_CLASS} {
8
+ background-color: ${"var(--ds-background-accent-blue-subtlest, #E9F2FF)"};
8
9
 
9
- border-bottom: 2px solid
10
- ${"var(--ds-background-accent-blue-subtler, #cce0ff)"};
11
- }
10
+ border-bottom: 2px solid ${"var(--ds-background-accent-blue-subtler, #cce0ff)"};
11
+ }
12
12
  `;
@@ -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;
@@ -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 -- needs manual remediation
7
- export var textHighlightStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n background-color: ", ";\n\n border-bottom: 2px solid\n ", ";\n }\n"])), TEXT_HIGHLIGHT_CLASS, "var(--ds-background-accent-blue-subtlest, #E9F2FF)", "var(--ds-background-accent-blue-subtler, #cce0ff)");
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
- "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "1.1.5",
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": "^81.0.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.11.0",
43
- "@atlaskit/icon": "^22.3.0",
44
- "@atlaskit/tokens": "^1.49.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
- "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
57
- "@testing-library/react": "^12.1.5",
58
- "react-dom": "^16.8.0",
59
- "typescript": "~5.4.2",
60
- "wait-for-expect": "^1.2.0"
61
- },
62
- "techstack": {
63
- "@atlassian/frontend": {
64
- "code-structure": [
65
- "tangerine-next"
66
- ],
67
- "import-structure": [
68
- "atlassian-conventions"
69
- ],
70
- "circular-dependencies": [
71
- "file-and-folder-level"
72
- ]
73
- },
74
- "@repo/internal": {
75
- "dom-events": "use-bind-event-listener",
76
- "analytics": [
77
- "analytics-next"
78
- ],
79
- "design-tokens": [
80
- "color"
81
- ],
82
- "theming": [
83
- "react-context"
84
- ],
85
- "ui-components": [
86
- "lite-mode"
87
- ],
88
- "deprecation": "no-deprecated-imports",
89
- "styling": [
90
- "emotion",
91
- "emotion"
92
- ],
93
- "imports": [
94
- "import-no-extraneous-disable-for-examples-and-docs"
95
- ]
96
- }
97
- },
98
- "techstackIgnore": {
99
- "stricter": [
100
- "@atlassian/tangerine/project-structure"
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 [API Extractor](https://api-extractor.com/).
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
- 'pasteOptionsToolbarPlugin',
26
- {
27
- dependencies: [OptionalPlugin<AnalyticsPlugin>, PastePlugin];
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
- "react": "^16.8.0"
43
+ "react": "^16.8.0"
43
44
  }
44
45
  ```
45
46