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