@atlaskit/editor-plugin-quick-insert 2.2.2 → 2.2.4

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,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 2.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 2.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 2.2.2
4
16
 
5
17
  ### Patch Changes
@@ -112,11 +112,12 @@ var quickInsertPlugin = exports.quickInsertPlugin = function quickInsertPlugin(_
112
112
  },
113
113
  actions: {
114
114
  insertItem: (0, _commands.createInsertItem)(onInsert),
115
- openTypeAhead: function openTypeAhead(inputMethod) {
115
+ openTypeAhead: function openTypeAhead(inputMethod, removePrefixTriggerOnCancel) {
116
116
  var _api$typeAhead;
117
117
  return Boolean(api === null || api === void 0 || (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : _api$typeAhead.actions.open({
118
118
  triggerHandler: typeAhead,
119
- inputMethod: inputMethod
119
+ inputMethod: inputMethod,
120
+ removePrefixTriggerOnCancel: removePrefixTriggerOnCancel
120
121
  }));
121
122
  },
122
123
  getSuggestions: function getSuggestions(searchOptions) {
@@ -102,11 +102,12 @@ export const quickInsertPlugin = ({
102
102
  },
103
103
  actions: {
104
104
  insertItem: createInsertItem(onInsert),
105
- openTypeAhead(inputMethod) {
105
+ openTypeAhead(inputMethod, removePrefixTriggerOnCancel) {
106
106
  var _api$typeAhead;
107
107
  return Boolean(api === null || api === void 0 ? void 0 : (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : _api$typeAhead.actions.open({
108
108
  triggerHandler: typeAhead,
109
- inputMethod
109
+ inputMethod,
110
+ removePrefixTriggerOnCancel: removePrefixTriggerOnCancel
110
111
  }));
111
112
  },
112
113
  getSuggestions: searchOptions => {
@@ -105,11 +105,12 @@ export var quickInsertPlugin = function quickInsertPlugin(_ref) {
105
105
  },
106
106
  actions: {
107
107
  insertItem: createInsertItem(onInsert),
108
- openTypeAhead: function openTypeAhead(inputMethod) {
108
+ openTypeAhead: function openTypeAhead(inputMethod, removePrefixTriggerOnCancel) {
109
109
  var _api$typeAhead;
110
110
  return Boolean(api === null || api === void 0 || (_api$typeAhead = api.typeAhead) === null || _api$typeAhead === void 0 ? void 0 : _api$typeAhead.actions.open({
111
111
  triggerHandler: typeAhead,
112
- inputMethod: inputMethod
112
+ inputMethod: inputMethod,
113
+ removePrefixTriggerOnCancel: removePrefixTriggerOnCancel
113
114
  }));
114
115
  },
115
116
  getSuggestions: function getSuggestions(searchOptions) {
@@ -11,7 +11,7 @@ export type QuickInsertPlugin = NextEditorPlugin<'quickInsert', {
11
11
  dependencies: [TypeAheadPlugin, OptionalPlugin<ConnectivityPlugin>];
12
12
  sharedState: QuickInsertSharedState | null;
13
13
  actions: {
14
- openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
14
+ openTypeAhead: (inputMethod: TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean) => boolean;
15
15
  insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
16
16
  getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
17
17
  };
@@ -14,7 +14,7 @@ export type QuickInsertPlugin = NextEditorPlugin<'quickInsert', {
14
14
  ];
15
15
  sharedState: QuickInsertSharedState | null;
16
16
  actions: {
17
- openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
17
+ openTypeAhead: (inputMethod: TypeAheadInputMethod, removePrefixTriggerOnCancel?: boolean) => boolean;
18
18
  insertItem: (item: QuickInsertItem, source?: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => Command;
19
19
  getSuggestions: (searchOptions: QuickInsertSearchOptions) => QuickInsertItem[];
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-quick-insert",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "Quick insert plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,17 +33,17 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/button": "^22.0.0",
37
- "@atlaskit/editor-common": "^102.13.0",
36
+ "@atlaskit/button": "^23.0.0",
37
+ "@atlaskit/editor-common": "^103.0.0",
38
38
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
39
- "@atlaskit/editor-plugin-type-ahead": "^2.2.0",
39
+ "@atlaskit/editor-plugin-type-ahead": "^2.3.0",
40
40
  "@atlaskit/editor-prosemirror": "7.0.0",
41
- "@atlaskit/icon": "^25.2.0",
42
- "@atlaskit/modal-dialog": "^14.0.0",
41
+ "@atlaskit/icon": "^25.5.0",
42
+ "@atlaskit/modal-dialog": "^14.1.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/theme": "^18.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^4.4.0",
46
- "@atlaskit/tokens": "^4.5.0",
45
+ "@atlaskit/tmp-editor-statsig": "^4.6.0",
46
+ "@atlaskit/tokens": "^4.7.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },