@atlaskit/editor-plugin-quick-insert 1.1.4 → 1.1.6
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/.eslintrc.js +4 -4
- package/CHANGELOG.md +78 -64
- package/LICENSE.md +6 -8
- package/dist/cjs/commands.js +2 -2
- package/dist/es2019/commands.js +2 -2
- package/dist/esm/commands.js +2 -2
- package/dist/types/commands.d.ts +2 -1
- package/dist/types/plugin.d.ts +2 -1
- package/dist/types-ts4.5/commands.d.ts +2 -1
- package/dist/types-ts4.5/plugin.d.ts +2 -1
- package/package.json +4 -6
- package/report.api.md +19 -20
package/.eslintrc.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,204 +1,218 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 1.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#103091](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103091)
|
|
14
|
+
[`736512792df6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/736512792df6) -
|
|
15
|
+
Fix analytics inputMethod bug for inserting a macro
|
|
16
|
+
|
|
3
17
|
## 1.1.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
6
20
|
|
|
7
|
-
-
|
|
21
|
+
- Updated dependencies
|
|
8
22
|
|
|
9
23
|
## 1.1.3
|
|
10
24
|
|
|
11
25
|
### Patch Changes
|
|
12
26
|
|
|
13
|
-
-
|
|
27
|
+
- Updated dependencies
|
|
14
28
|
|
|
15
29
|
## 1.1.2
|
|
16
30
|
|
|
17
31
|
### Patch Changes
|
|
18
32
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
34
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
35
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
36
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
37
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
24
38
|
|
|
25
39
|
## 1.1.1
|
|
26
40
|
|
|
27
41
|
### Patch Changes
|
|
28
42
|
|
|
29
|
-
-
|
|
43
|
+
- Updated dependencies
|
|
30
44
|
|
|
31
45
|
## 1.1.0
|
|
32
46
|
|
|
33
47
|
### Minor Changes
|
|
34
48
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
- [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
|
|
50
|
+
[`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
|
|
51
|
+
bumped editor-prosemirror version to 4.0.0
|
|
38
52
|
|
|
39
53
|
### Patch Changes
|
|
40
54
|
|
|
41
|
-
-
|
|
55
|
+
- Updated dependencies
|
|
42
56
|
|
|
43
57
|
## 1.0.4
|
|
44
58
|
|
|
45
59
|
### Patch Changes
|
|
46
60
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
61
|
+
- [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
|
|
62
|
+
[`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
|
|
63
|
+
The internal composition of this package has changed. There is no expected change in behavior.
|
|
50
64
|
|
|
51
65
|
## 1.0.3
|
|
52
66
|
|
|
53
67
|
### Patch Changes
|
|
54
68
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
69
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
70
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
71
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
58
72
|
|
|
59
73
|
## 1.0.2
|
|
60
74
|
|
|
61
75
|
### Patch Changes
|
|
62
76
|
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
77
|
+
- [#74886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74886)
|
|
78
|
+
[`5b79ded33f58`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b79ded33f58) -
|
|
79
|
+
[EDF-324] Element Browser now has a separate categories for ai config items
|
|
66
80
|
|
|
67
81
|
## 1.0.1
|
|
68
82
|
|
|
69
83
|
### Patch Changes
|
|
70
84
|
|
|
71
|
-
-
|
|
85
|
+
- Updated dependencies
|
|
72
86
|
|
|
73
87
|
## 1.0.0
|
|
74
88
|
|
|
75
89
|
### Major Changes
|
|
76
90
|
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
91
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
92
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
93
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
94
|
+
is to address an issue with Jira plugin consumption.
|
|
81
95
|
|
|
82
96
|
### Patch Changes
|
|
83
97
|
|
|
84
|
-
-
|
|
98
|
+
- Updated dependencies
|
|
85
99
|
|
|
86
100
|
## 0.2.13
|
|
87
101
|
|
|
88
102
|
### Patch Changes
|
|
89
103
|
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
104
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
105
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
106
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
93
107
|
|
|
94
108
|
## 0.2.12
|
|
95
109
|
|
|
96
110
|
### Patch Changes
|
|
97
111
|
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
-
|
|
112
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
113
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
114
|
+
Move all plugin translations to editor-common
|
|
115
|
+
- Updated dependencies
|
|
102
116
|
|
|
103
117
|
## 0.2.11
|
|
104
118
|
|
|
105
119
|
### Patch Changes
|
|
106
120
|
|
|
107
|
-
-
|
|
121
|
+
- Updated dependencies
|
|
108
122
|
|
|
109
123
|
## 0.2.10
|
|
110
124
|
|
|
111
125
|
### Patch Changes
|
|
112
126
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
127
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
128
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
129
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
116
130
|
|
|
117
131
|
## 0.2.9
|
|
118
132
|
|
|
119
133
|
### Patch Changes
|
|
120
134
|
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
135
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
136
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
137
|
+
Ensure all editor plugins are marked as singletons
|
|
124
138
|
|
|
125
139
|
## 0.2.8
|
|
126
140
|
|
|
127
141
|
### Patch Changes
|
|
128
142
|
|
|
129
|
-
-
|
|
143
|
+
- Updated dependencies
|
|
130
144
|
|
|
131
145
|
## 0.2.7
|
|
132
146
|
|
|
133
147
|
### Patch Changes
|
|
134
148
|
|
|
135
|
-
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
149
|
+
- [#61923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61923)
|
|
150
|
+
[`04e38cfe9e90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e38cfe9e90) -
|
|
151
|
+
Remove legacy theming logic from all Editor plugin packages. Theming is still available via the
|
|
152
|
+
@atlaskit/tokens package.
|
|
139
153
|
|
|
140
154
|
## 0.2.6
|
|
141
155
|
|
|
142
156
|
### Patch Changes
|
|
143
157
|
|
|
144
|
-
-
|
|
158
|
+
- Updated dependencies
|
|
145
159
|
|
|
146
160
|
## 0.2.5
|
|
147
161
|
|
|
148
162
|
### Patch Changes
|
|
149
163
|
|
|
150
|
-
-
|
|
164
|
+
- Updated dependencies
|
|
151
165
|
|
|
152
166
|
## 0.2.4
|
|
153
167
|
|
|
154
168
|
### Patch Changes
|
|
155
169
|
|
|
156
|
-
-
|
|
170
|
+
- Updated dependencies
|
|
157
171
|
|
|
158
172
|
## 0.2.3
|
|
159
173
|
|
|
160
174
|
### Patch Changes
|
|
161
175
|
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
|
|
176
|
+
- [#43164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43164)
|
|
177
|
+
[`3aeedf55e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3aeedf55e29) -
|
|
178
|
+
[ED-20068] Move editSelectedExtension to ExtensionPluginActions
|
|
165
179
|
|
|
166
180
|
## 0.2.2
|
|
167
181
|
|
|
168
182
|
### Patch Changes
|
|
169
183
|
|
|
170
|
-
-
|
|
184
|
+
- Updated dependencies
|
|
171
185
|
|
|
172
186
|
## 0.2.1
|
|
173
187
|
|
|
174
188
|
### Patch Changes
|
|
175
189
|
|
|
176
|
-
-
|
|
190
|
+
- Updated dependencies
|
|
177
191
|
|
|
178
192
|
## 0.2.0
|
|
179
193
|
|
|
180
194
|
### Minor Changes
|
|
181
195
|
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
196
|
+
- [#41143](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41143)
|
|
197
|
+
[`7d6dfe2befa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d6dfe2befa) -
|
|
198
|
+
[ED-20003] Replace TyepAhead API for Editor Plugin Injection API
|
|
185
199
|
|
|
186
200
|
### Patch Changes
|
|
187
201
|
|
|
188
|
-
-
|
|
202
|
+
- Updated dependencies
|
|
189
203
|
|
|
190
204
|
## 0.1.2
|
|
191
205
|
|
|
192
206
|
### Patch Changes
|
|
193
207
|
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
-
|
|
208
|
+
- [#39425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39425)
|
|
209
|
+
[`4c27d14af2e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c27d14af2e) -
|
|
210
|
+
[ED-19408] Fix issue where FocusTrap returnFocus was causing the cursor to end up at the beginning
|
|
211
|
+
of the document when inserting elements using the element browser modal.
|
|
212
|
+
- Updated dependencies
|
|
199
213
|
|
|
200
214
|
## 0.1.1
|
|
201
215
|
|
|
202
216
|
### Patch Changes
|
|
203
217
|
|
|
204
|
-
-
|
|
218
|
+
- Updated dependencies
|
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/commands.js
CHANGED
|
@@ -24,13 +24,13 @@ var closeElementBrowserModal = exports.closeElementBrowserModal = function close
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
// this method was adapted from the typeahead plugin so we respect the API for quick insert items
|
|
27
|
-
var insertItem = exports.insertItem = function insertItem(item) {
|
|
27
|
+
var insertItem = exports.insertItem = function insertItem(item, source) {
|
|
28
28
|
return function (state, dispatch) {
|
|
29
29
|
var insert = function insert(maybeNode) {
|
|
30
30
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
31
31
|
return (0, _insert.insertSelectedItem)(maybeNode, opts)(state, state.tr, state.selection.head);
|
|
32
32
|
};
|
|
33
|
-
var tr = item.action(insert, state);
|
|
33
|
+
var tr = item.action(insert, state, source);
|
|
34
34
|
|
|
35
35
|
/** @note There is no transaction when called without a search currently (different insert) */
|
|
36
36
|
if (tr && dispatch) {
|
package/dist/es2019/commands.js
CHANGED
|
@@ -15,11 +15,11 @@ export const closeElementBrowserModal = () => (state, dispatch) => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// this method was adapted from the typeahead plugin so we respect the API for quick insert items
|
|
18
|
-
export const insertItem = item => (state, dispatch) => {
|
|
18
|
+
export const insertItem = (item, source) => (state, dispatch) => {
|
|
19
19
|
const insert = (maybeNode, opts = {}) => {
|
|
20
20
|
return insertSelectedItem(maybeNode, opts)(state, state.tr, state.selection.head);
|
|
21
21
|
};
|
|
22
|
-
const tr = item.action(insert, state);
|
|
22
|
+
const tr = item.action(insert, state, source);
|
|
23
23
|
|
|
24
24
|
/** @note There is no transaction when called without a search currently (different insert) */
|
|
25
25
|
if (tr && dispatch) {
|
package/dist/esm/commands.js
CHANGED
|
@@ -18,13 +18,13 @@ export var closeElementBrowserModal = function closeElementBrowserModal() {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
// this method was adapted from the typeahead plugin so we respect the API for quick insert items
|
|
21
|
-
export var insertItem = function insertItem(item) {
|
|
21
|
+
export var insertItem = function insertItem(item, source) {
|
|
22
22
|
return function (state, dispatch) {
|
|
23
23
|
var insert = function insert(maybeNode) {
|
|
24
24
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
25
25
|
return insertSelectedItem(maybeNode, opts)(state, state.tr, state.selection.head);
|
|
26
26
|
};
|
|
27
|
-
var tr = item.action(insert, state);
|
|
27
|
+
var tr = item.action(insert, state, source);
|
|
28
28
|
|
|
29
29
|
/** @note There is no transaction when called without a search currently (different insert) */
|
|
30
30
|
if (tr && dispatch) {
|
package/dist/types/commands.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
3
|
import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
|
|
3
4
|
export declare const openElementBrowserModal: EditorCommand;
|
|
4
5
|
export declare const closeElementBrowserModal: () => Command;
|
|
5
|
-
export declare const insertItem: (item: QuickInsertItem) => Command;
|
|
6
|
+
export declare const insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
3
|
import type { Command, QuickInsertSharedState as CommonQuickInsertSharedState, EditorCommand, NextEditorPlugin, QuickInsertPluginOptions, QuickInsertSearchOptions, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
@@ -11,7 +12,7 @@ export type QuickInsertPlugin = NextEditorPlugin<'quickInsert', {
|
|
|
11
12
|
sharedState: QuickInsertSharedState | null;
|
|
12
13
|
actions: {
|
|
13
14
|
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
14
|
-
insertItem: (item: QuickInsertItem) => Command;
|
|
15
|
+
insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
|
|
15
16
|
getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
|
|
16
17
|
};
|
|
17
18
|
commands: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
3
|
import type { Command, EditorCommand } from '@atlaskit/editor-common/types';
|
|
3
4
|
export declare const openElementBrowserModal: EditorCommand;
|
|
4
5
|
export declare const closeElementBrowserModal: () => Command;
|
|
5
|
-
export declare const insertItem: (item: QuickInsertItem) => Command;
|
|
6
|
+
export declare const insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
3
|
import type { Command, QuickInsertSharedState as CommonQuickInsertSharedState, EditorCommand, NextEditorPlugin, QuickInsertPluginOptions, QuickInsertSearchOptions, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
3
4
|
import type { TypeAheadInputMethod, TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
@@ -13,7 +14,7 @@ export type QuickInsertPlugin = NextEditorPlugin<'quickInsert', {
|
|
|
13
14
|
sharedState: QuickInsertSharedState | null;
|
|
14
15
|
actions: {
|
|
15
16
|
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
16
|
-
insertItem: (item: QuickInsertItem) => Command;
|
|
17
|
+
insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
|
|
17
18
|
getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
|
|
18
19
|
};
|
|
19
20
|
commands: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/button": "^17.
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/button": "^17.17.0",
|
|
37
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-type-ahead": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
40
40
|
"@atlaskit/icon": "^22.3.0",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"@af/visual-regression": "*",
|
|
53
53
|
"@atlaskit/ssr": "*",
|
|
54
54
|
"@atlaskit/visual-regression": "*",
|
|
55
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
56
55
|
"@testing-library/react": "^12.1.5",
|
|
57
56
|
"react-dom": "^16.8.0",
|
|
58
57
|
"typescript": "~5.4.2",
|
|
@@ -90,6 +89,5 @@
|
|
|
90
89
|
"import-no-extraneous-disable-for-examples-and-docs"
|
|
91
90
|
]
|
|
92
91
|
}
|
|
93
|
-
}
|
|
94
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
92
|
+
}
|
|
95
93
|
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-quick-insert"
|
|
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
|
|
@@ -28,22 +29,20 @@ import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
|
28
29
|
|
|
29
30
|
// @public (undocumented)
|
|
30
31
|
export type QuickInsertPlugin = NextEditorPlugin<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
}
|
|
32
|
+
'quickInsert',
|
|
33
|
+
{
|
|
34
|
+
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
35
|
+
dependencies: [TypeAheadPlugin];
|
|
36
|
+
sharedState: QuickInsertSharedState | null;
|
|
37
|
+
actions: {
|
|
38
|
+
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
39
|
+
insertItem: (item: QuickInsertItem) => Command;
|
|
40
|
+
getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
|
|
41
|
+
};
|
|
42
|
+
commands: {
|
|
43
|
+
openElementBrowserModal: EditorCommand;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
47
46
|
>;
|
|
48
47
|
|
|
49
48
|
// @public (undocumented)
|
|
@@ -51,7 +50,7 @@ export const quickInsertPlugin: QuickInsertPlugin;
|
|
|
51
50
|
|
|
52
51
|
// @public (undocumented)
|
|
53
52
|
export type QuickInsertSharedState = QuickInsertSharedState_2 & {
|
|
54
|
-
|
|
53
|
+
typeAheadHandler: TypeAheadHandler;
|
|
55
54
|
};
|
|
56
55
|
|
|
57
56
|
// (No @packageDocumentation comment for this package)
|
|
@@ -65,8 +64,8 @@ export type QuickInsertSharedState = QuickInsertSharedState_2 & {
|
|
|
65
64
|
|
|
66
65
|
```json
|
|
67
66
|
{
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
"react": "^16.8.0",
|
|
68
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
70
69
|
}
|
|
71
70
|
```
|
|
72
71
|
|