@atlaskit/editor-plugin-quick-insert 2.0.0 → 2.0.1
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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120426](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120426)
|
|
8
|
+
[`1fc7b1519dbcf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1fc7b1519dbcf) -
|
|
9
|
+
Uses a separate FF for the new QuickInsert and Right rail to split them from the other Editor
|
|
10
|
+
Controls features.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 2.0.0
|
|
4
14
|
|
|
5
15
|
### Major Changes
|
|
@@ -38,7 +38,7 @@ var quickInsertPlugin = exports.quickInsertPlugin = function quickInsertPlugin(_
|
|
|
38
38
|
var quickInsertState = _pluginKey.pluginKey.getState(editorState);
|
|
39
39
|
var queryAllItems = '';
|
|
40
40
|
return Promise.resolve((0, _search.getQuickInsertSuggestions)({
|
|
41
|
-
query: (0, _experiments.editorExperiment)('
|
|
41
|
+
query: (0, _experiments.editorExperiment)('platform_editor_insertion', 'control') ? query : queryAllItems,
|
|
42
42
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
43
43
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
44
44
|
}, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
|
|
@@ -27,7 +27,7 @@ export const quickInsertPlugin = ({
|
|
|
27
27
|
const quickInsertState = pluginKey.getState(editorState);
|
|
28
28
|
const queryAllItems = '';
|
|
29
29
|
return Promise.resolve(getQuickInsertSuggestions({
|
|
30
|
-
query: editorExperiment('
|
|
30
|
+
query: editorExperiment('platform_editor_insertion', 'control') ? query : queryAllItems,
|
|
31
31
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
32
32
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
33
33
|
}, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
|
|
@@ -31,7 +31,7 @@ export var quickInsertPlugin = function quickInsertPlugin(_ref) {
|
|
|
31
31
|
var quickInsertState = pluginKey.getState(editorState);
|
|
32
32
|
var queryAllItems = '';
|
|
33
33
|
return Promise.resolve(getQuickInsertSuggestions({
|
|
34
|
-
query: editorExperiment('
|
|
34
|
+
query: editorExperiment('platform_editor_insertion', 'control') ? query : queryAllItems,
|
|
35
35
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
36
36
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
37
37
|
}, 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": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/button": "^21.
|
|
35
|
-
"@atlaskit/editor-common": "^100.
|
|
34
|
+
"@atlaskit/button": "^21.1.0",
|
|
35
|
+
"@atlaskit/editor-common": "^100.2.0",
|
|
36
36
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-type-ahead": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/icon": "^24.
|
|
39
|
+
"@atlaskit/icon": "^24.1.0",
|
|
40
40
|
"@atlaskit/modal-dialog": "^13.0.0",
|
|
41
41
|
"@atlaskit/theme": "^17.0.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^3.
|
|
43
|
-
"@atlaskit/tokens": "^4.
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^3.3.0",
|
|
43
|
+
"@atlaskit/tokens": "^4.2.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|
|
46
46
|
},
|