@atlaskit/editor-plugin-quick-insert 6.0.6 → 6.0.7
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 6.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0d661119b4293`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d661119b4293) -
|
|
8
|
+
Clean up platform_editor_insertion experiment by shipping control variant. Remove modern TypeAhead
|
|
9
|
+
components and experiment infrastructure while preserving all existing functionality.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 6.0.6
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -19,7 +19,6 @@ var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
|
19
19
|
var _showMoreHorizontalEditorMore = _interopRequireDefault(require("@atlaskit/icon/core/migration/show-more-horizontal--editor-more"));
|
|
20
20
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
21
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
23
22
|
var _commands = require("./pm-plugins/commands");
|
|
24
23
|
var _quickInsertOpenExperience = require("./pm-plugins/experiences/quick-insert-open-experience");
|
|
25
24
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
@@ -43,9 +42,8 @@ var quickInsertPlugin = exports.quickInsertPlugin = function quickInsertPlugin(_
|
|
|
43
42
|
var query = _ref2.query,
|
|
44
43
|
editorState = _ref2.editorState;
|
|
45
44
|
var quickInsertState = _pluginKey.pluginKey.getState(editorState);
|
|
46
|
-
var queryAllItems = '';
|
|
47
45
|
return Promise.resolve((0, _search.getQuickInsertSuggestions)({
|
|
48
|
-
query:
|
|
46
|
+
query: query,
|
|
49
47
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
50
48
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
51
49
|
}, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
|
|
@@ -8,7 +8,6 @@ import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
|
8
8
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/migration/show-more-horizontal--editor-more';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
import { createInsertItem, openElementBrowserModal } from './pm-plugins/commands';
|
|
13
12
|
import { getQuickInsertOpenExperiencePlugin } from './pm-plugins/experiences/quick-insert-open-experience';
|
|
14
13
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
@@ -32,9 +31,8 @@ export const quickInsertPlugin = ({
|
|
|
32
31
|
editorState
|
|
33
32
|
}) {
|
|
34
33
|
const quickInsertState = pluginKey.getState(editorState);
|
|
35
|
-
const queryAllItems = '';
|
|
36
34
|
return Promise.resolve(getQuickInsertSuggestions({
|
|
37
|
-
query:
|
|
35
|
+
query: query,
|
|
38
36
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
39
37
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
40
38
|
}, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
|
|
@@ -14,7 +14,6 @@ import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
|
14
14
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/migration/show-more-horizontal--editor-more';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import { createInsertItem, openElementBrowserModal as _openElementBrowserModal } from './pm-plugins/commands';
|
|
19
18
|
import { getQuickInsertOpenExperiencePlugin } from './pm-plugins/experiences/quick-insert-open-experience';
|
|
20
19
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
@@ -36,9 +35,8 @@ export var quickInsertPlugin = function quickInsertPlugin(_ref) {
|
|
|
36
35
|
var query = _ref2.query,
|
|
37
36
|
editorState = _ref2.editorState;
|
|
38
37
|
var quickInsertState = pluginKey.getState(editorState);
|
|
39
|
-
var queryAllItems = '';
|
|
40
38
|
return Promise.resolve(getQuickInsertSuggestions({
|
|
41
|
-
query:
|
|
39
|
+
query: query,
|
|
42
40
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
43
41
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
44
42
|
}, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.7",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/button": "^23.
|
|
32
|
+
"@atlaskit/button": "^23.6.0",
|
|
33
33
|
"@atlaskit/editor-plugin-connectivity": "^6.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-metrics": "^7.1.0",
|
|
35
35
|
"@atlaskit/editor-plugin-type-ahead": "^6.5.0",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@atlaskit/modal-dialog": "^14.6.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
40
|
"@atlaskit/theme": "^21.0.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
42
|
-
"@atlaskit/tokens": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^13.32.0",
|
|
42
|
+
"@atlaskit/tokens": "^8.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^110.
|
|
47
|
+
"@atlaskit/editor-common": "^110.24.0",
|
|
48
48
|
"react": "^18.2.0",
|
|
49
49
|
"react-dom": "^18.2.0",
|
|
50
50
|
"react-intl-next": "npm:react-intl@^5.18.1"
|