@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 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
- - Updated dependencies
15
+ - Updated dependencies
8
16
 
9
17
  ## 1.1.3
10
18
 
11
19
  ### Patch Changes
12
20
 
13
- - Updated dependencies
21
+ - Updated dependencies
14
22
 
15
23
  ## 1.1.2
16
24
 
17
25
  ### Patch Changes
18
26
 
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
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
- - Updated dependencies
37
+ - Updated dependencies
30
38
 
31
39
  ## 1.1.0
32
40
 
33
41
  ### Minor Changes
34
42
 
35
- - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934)
36
- [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) -
37
- 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
38
46
 
39
47
  ### Patch Changes
40
48
 
41
- - Updated dependencies
49
+ - Updated dependencies
42
50
 
43
51
  ## 1.0.4
44
52
 
45
53
  ### Patch Changes
46
54
 
47
- - [#89247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89247)
48
- [`a65b4a0870d8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a65b4a0870d8) -
49
- 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.
50
58
 
51
59
  ## 1.0.3
52
60
 
53
61
  ### Patch Changes
54
62
 
55
- - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
56
- [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
57
- 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`
58
66
 
59
67
  ## 1.0.2
60
68
 
61
69
  ### Patch Changes
62
70
 
63
- - [#74886](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/74886)
64
- [`5b79ded33f58`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5b79ded33f58) -
65
- [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
66
74
 
67
75
  ## 1.0.1
68
76
 
69
77
  ### Patch Changes
70
78
 
71
- - Updated dependencies
79
+ - Updated dependencies
72
80
 
73
81
  ## 1.0.0
74
82
 
75
83
  ### Major Changes
76
84
 
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.
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
- - Updated dependencies
92
+ - Updated dependencies
85
93
 
86
94
  ## 0.2.13
87
95
 
88
96
  ### Patch Changes
89
97
 
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
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
- - [#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
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
- - Updated dependencies
115
+ - Updated dependencies
108
116
 
109
117
  ## 0.2.10
110
118
 
111
119
  ### Patch Changes
112
120
 
113
- - [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238)
114
- [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) -
115
- [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
116
124
 
117
125
  ## 0.2.9
118
126
 
119
127
  ### Patch Changes
120
128
 
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
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
- - Updated dependencies
137
+ - Updated dependencies
130
138
 
131
139
  ## 0.2.7
132
140
 
133
141
  ### Patch Changes
134
142
 
135
- - [#61923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61923)
136
- [`04e38cfe9e90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e38cfe9e90) -
137
- Remove legacy theming logic from all Editor plugin packages. Theming is still available via the
138
- @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.
139
147
 
140
148
  ## 0.2.6
141
149
 
142
150
  ### Patch Changes
143
151
 
144
- - Updated dependencies
152
+ - Updated dependencies
145
153
 
146
154
  ## 0.2.5
147
155
 
148
156
  ### Patch Changes
149
157
 
150
- - Updated dependencies
158
+ - Updated dependencies
151
159
 
152
160
  ## 0.2.4
153
161
 
154
162
  ### Patch Changes
155
163
 
156
- - Updated dependencies
164
+ - Updated dependencies
157
165
 
158
166
  ## 0.2.3
159
167
 
160
168
  ### Patch Changes
161
169
 
162
- - [#43164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43164)
163
- [`3aeedf55e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3aeedf55e29) -
164
- [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
165
173
 
166
174
  ## 0.2.2
167
175
 
168
176
  ### Patch Changes
169
177
 
170
- - Updated dependencies
178
+ - Updated dependencies
171
179
 
172
180
  ## 0.2.1
173
181
 
174
182
  ### Patch Changes
175
183
 
176
- - Updated dependencies
184
+ - Updated dependencies
177
185
 
178
186
  ## 0.2.0
179
187
 
180
188
  ### Minor Changes
181
189
 
182
- - [#41143](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41143)
183
- [`7d6dfe2befa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7d6dfe2befa) -
184
- [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
185
193
 
186
194
  ### Patch Changes
187
195
 
188
- - Updated dependencies
196
+ - Updated dependencies
189
197
 
190
198
  ## 0.1.2
191
199
 
192
200
  ### Patch Changes
193
201
 
194
- - [#39425](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39425)
195
- [`4c27d14af2e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c27d14af2e) -
196
- [ED-19408] Fix issue where FocusTrap returnFocus was causing the cursor to end up at the
197
- beginning of the document when inserting elements using the element browser modal.
198
- - 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
199
207
 
200
208
  ## 0.1.1
201
209
 
202
210
  ### Patch Changes
203
211
 
204
- - 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.4",
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.16.0",
37
- "@atlaskit/editor-common": "^81.0.0",
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",