@atlaskit/editor-plugin-quick-insert 1.1.4 → 1.1.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 +72 -64
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,204 +1,212 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#103091](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103091)
|
|
8
|
+
[`736512792df6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/736512792df6) -
|
|
9
|
+
Fix analytics inputMethod bug for inserting a macro
|
|
10
|
+
|
|
3
11
|
## 1.1.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
6
14
|
|
|
7
|
-
-
|
|
15
|
+
- Updated dependencies
|
|
8
16
|
|
|
9
17
|
## 1.1.3
|
|
10
18
|
|
|
11
19
|
### Patch Changes
|
|
12
20
|
|
|
13
|
-
-
|
|
21
|
+
- Updated dependencies
|
|
14
22
|
|
|
15
23
|
## 1.1.2
|
|
16
24
|
|
|
17
25
|
### Patch Changes
|
|
18
26
|
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
- [#97698](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97698)
|
|
28
|
+
[`1c7b378c0d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c7b378c0d3b) -
|
|
29
|
+
[HOT-108999] We had an incident where the cursor jumps back a character in table headers for any
|
|
30
|
+
language triggering composition on an empty line.This was fixed in a patch bump of
|
|
31
|
+
prosemirror-view. https://github.com/ProseMirror/prosemirror-view/compare/1.33.4...1.33.5
|
|
24
32
|
|
|
25
33
|
## 1.1.1
|
|
26
34
|
|
|
27
35
|
### Patch Changes
|
|
28
36
|
|
|
29
|
-
-
|
|
37
|
+
- Updated dependencies
|
|
30
38
|
|
|
31
39
|
## 1.1.0
|
|
32
40
|
|
|
33
41
|
### Minor Changes
|
|
34
42
|
|
|
35
|
-
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
38
46
|
|
|
39
47
|
### Patch Changes
|
|
40
48
|
|
|
41
|
-
-
|
|
49
|
+
- Updated dependencies
|
|
42
50
|
|
|
43
51
|
## 1.0.4
|
|
44
52
|
|
|
45
53
|
### Patch Changes
|
|
46
54
|
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
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.
|
|
50
58
|
|
|
51
59
|
## 1.0.3
|
|
52
60
|
|
|
53
61
|
### Patch Changes
|
|
54
62
|
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
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`
|
|
58
66
|
|
|
59
67
|
## 1.0.2
|
|
60
68
|
|
|
61
69
|
### Patch Changes
|
|
62
70
|
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
- [#74886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74886)
|
|
72
|
+
[`5b79ded33f58`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b79ded33f58) -
|
|
73
|
+
[EDF-324] Element Browser now has a separate categories for ai config items
|
|
66
74
|
|
|
67
75
|
## 1.0.1
|
|
68
76
|
|
|
69
77
|
### Patch Changes
|
|
70
78
|
|
|
71
|
-
-
|
|
79
|
+
- Updated dependencies
|
|
72
80
|
|
|
73
81
|
## 1.0.0
|
|
74
82
|
|
|
75
83
|
### Major Changes
|
|
76
84
|
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
85
|
+
- [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386)
|
|
86
|
+
[`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) -
|
|
87
|
+
This changeset exists to bump all editor plugins that currently don't have a major version. This
|
|
88
|
+
is to address an issue with Jira plugin consumption.
|
|
81
89
|
|
|
82
90
|
### Patch Changes
|
|
83
91
|
|
|
84
|
-
-
|
|
92
|
+
- Updated dependencies
|
|
85
93
|
|
|
86
94
|
## 0.2.13
|
|
87
95
|
|
|
88
96
|
### Patch Changes
|
|
89
97
|
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
98
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572)
|
|
99
|
+
[`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) -
|
|
100
|
+
Upgrading @atlaskit/editor-prosemirror dependency
|
|
93
101
|
|
|
94
102
|
## 0.2.12
|
|
95
103
|
|
|
96
104
|
### Patch Changes
|
|
97
105
|
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
-
|
|
106
|
+
- [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136)
|
|
107
|
+
[`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) -
|
|
108
|
+
Move all plugin translations to editor-common
|
|
109
|
+
- Updated dependencies
|
|
102
110
|
|
|
103
111
|
## 0.2.11
|
|
104
112
|
|
|
105
113
|
### Patch Changes
|
|
106
114
|
|
|
107
|
-
-
|
|
115
|
+
- Updated dependencies
|
|
108
116
|
|
|
109
117
|
## 0.2.10
|
|
110
118
|
|
|
111
119
|
### Patch Changes
|
|
112
120
|
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
121
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
|
|
122
|
+
[`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
|
|
123
|
+
[ED-21835] Change EditorAPI type to always union with undefined
|
|
116
124
|
|
|
117
125
|
## 0.2.9
|
|
118
126
|
|
|
119
127
|
### Patch Changes
|
|
120
128
|
|
|
121
|
-
-
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
- [#65802](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65802)
|
|
130
|
+
[`438ead060875`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/438ead060875) -
|
|
131
|
+
Ensure all editor plugins are marked as singletons
|
|
124
132
|
|
|
125
133
|
## 0.2.8
|
|
126
134
|
|
|
127
135
|
### Patch Changes
|
|
128
136
|
|
|
129
|
-
-
|
|
137
|
+
- Updated dependencies
|
|
130
138
|
|
|
131
139
|
## 0.2.7
|
|
132
140
|
|
|
133
141
|
### Patch Changes
|
|
134
142
|
|
|
135
|
-
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
- [#61923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61923)
|
|
144
|
+
[`04e38cfe9e90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e38cfe9e90) -
|
|
145
|
+
Remove legacy theming logic from all Editor plugin packages. Theming is still available via the
|
|
146
|
+
@atlaskit/tokens package.
|
|
139
147
|
|
|
140
148
|
## 0.2.6
|
|
141
149
|
|
|
142
150
|
### Patch Changes
|
|
143
151
|
|
|
144
|
-
-
|
|
152
|
+
- Updated dependencies
|
|
145
153
|
|
|
146
154
|
## 0.2.5
|
|
147
155
|
|
|
148
156
|
### Patch Changes
|
|
149
157
|
|
|
150
|
-
-
|
|
158
|
+
- Updated dependencies
|
|
151
159
|
|
|
152
160
|
## 0.2.4
|
|
153
161
|
|
|
154
162
|
### Patch Changes
|
|
155
163
|
|
|
156
|
-
-
|
|
164
|
+
- Updated dependencies
|
|
157
165
|
|
|
158
166
|
## 0.2.3
|
|
159
167
|
|
|
160
168
|
### Patch Changes
|
|
161
169
|
|
|
162
|
-
-
|
|
163
|
-
|
|
164
|
-
|
|
170
|
+
- [#43164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43164)
|
|
171
|
+
[`3aeedf55e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3aeedf55e29) -
|
|
172
|
+
[ED-20068] Move editSelectedExtension to ExtensionPluginActions
|
|
165
173
|
|
|
166
174
|
## 0.2.2
|
|
167
175
|
|
|
168
176
|
### Patch Changes
|
|
169
177
|
|
|
170
|
-
-
|
|
178
|
+
- Updated dependencies
|
|
171
179
|
|
|
172
180
|
## 0.2.1
|
|
173
181
|
|
|
174
182
|
### Patch Changes
|
|
175
183
|
|
|
176
|
-
-
|
|
184
|
+
- Updated dependencies
|
|
177
185
|
|
|
178
186
|
## 0.2.0
|
|
179
187
|
|
|
180
188
|
### Minor Changes
|
|
181
189
|
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
190
|
+
- [#41143](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41143)
|
|
191
|
+
[`7d6dfe2befa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d6dfe2befa) -
|
|
192
|
+
[ED-20003] Replace TyepAhead API for Editor Plugin Injection API
|
|
185
193
|
|
|
186
194
|
### Patch Changes
|
|
187
195
|
|
|
188
|
-
-
|
|
196
|
+
- Updated dependencies
|
|
189
197
|
|
|
190
198
|
## 0.1.2
|
|
191
199
|
|
|
192
200
|
### Patch Changes
|
|
193
201
|
|
|
194
|
-
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
-
|
|
202
|
+
- [#39425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39425)
|
|
203
|
+
[`4c27d14af2e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c27d14af2e) -
|
|
204
|
+
[ED-19408] Fix issue where FocusTrap returnFocus was causing the cursor to end up at the beginning
|
|
205
|
+
of the document when inserting elements using the element browser modal.
|
|
206
|
+
- Updated dependencies
|
|
199
207
|
|
|
200
208
|
## 0.1.1
|
|
201
209
|
|
|
202
210
|
### Patch Changes
|
|
203
211
|
|
|
204
|
-
-
|
|
212
|
+
- Updated dependencies
|
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.5",
|
|
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": "^81.
|
|
36
|
+
"@atlaskit/button": "^17.17.0",
|
|
37
|
+
"@atlaskit/editor-common": "^81.1.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",
|