@atlaskit/editor-plugin-quick-insert 1.10.0 → 1.10.2
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 1.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.10.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#112096](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112096)
|
|
14
|
+
[`5d95afdd358ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5d95afdd358ac) -
|
|
15
|
+
[ux] Creates a package for new QuickInsert and Right Rail UI and adds it under a FF
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.10.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -14,6 +14,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
14
14
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
15
15
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
16
16
|
var _typeAhead = require("@atlaskit/editor-common/type-ahead");
|
|
17
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
17
18
|
var _commands = require("./pm-plugins/commands");
|
|
18
19
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
19
20
|
var _ModalElementBrowser = _interopRequireDefault(require("./ui/ModalElementBrowser"));
|
|
@@ -35,8 +36,9 @@ var quickInsertPlugin = exports.quickInsertPlugin = function quickInsertPlugin(_
|
|
|
35
36
|
var query = _ref2.query,
|
|
36
37
|
editorState = _ref2.editorState;
|
|
37
38
|
var quickInsertState = _pluginKey.pluginKey.getState(editorState);
|
|
39
|
+
var queryAllItems = '';
|
|
38
40
|
return Promise.resolve((0, _search.getQuickInsertSuggestions)({
|
|
39
|
-
query: query,
|
|
41
|
+
query: (0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? query : queryAllItems,
|
|
40
42
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
41
43
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
42
44
|
}, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
|
|
@@ -3,6 +3,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
3
3
|
import { memoProcessQuickInsertItems } from '@atlaskit/editor-common/quick-insert';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
7
|
import { createInsertItem, openElementBrowserModal } from './pm-plugins/commands';
|
|
7
8
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
8
9
|
import ModalElementBrowser from './ui/ModalElementBrowser';
|
|
@@ -24,8 +25,9 @@ export const quickInsertPlugin = ({
|
|
|
24
25
|
editorState
|
|
25
26
|
}) {
|
|
26
27
|
const quickInsertState = pluginKey.getState(editorState);
|
|
28
|
+
const queryAllItems = '';
|
|
27
29
|
return Promise.resolve(getQuickInsertSuggestions({
|
|
28
|
-
query,
|
|
30
|
+
query: editorExperiment('platform_editor_controls', 'control') ? query : queryAllItems,
|
|
29
31
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
30
32
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
31
33
|
}, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.lazyDefaultItems, quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems));
|
|
@@ -9,6 +9,7 @@ import { useIntl } from 'react-intl-next';
|
|
|
9
9
|
import { memoProcessQuickInsertItems } from '@atlaskit/editor-common/quick-insert';
|
|
10
10
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
11
11
|
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
13
|
import { createInsertItem, openElementBrowserModal } from './pm-plugins/commands';
|
|
13
14
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
14
15
|
import ModalElementBrowser from './ui/ModalElementBrowser';
|
|
@@ -28,8 +29,9 @@ export var quickInsertPlugin = function quickInsertPlugin(_ref) {
|
|
|
28
29
|
var query = _ref2.query,
|
|
29
30
|
editorState = _ref2.editorState;
|
|
30
31
|
var quickInsertState = pluginKey.getState(editorState);
|
|
32
|
+
var queryAllItems = '';
|
|
31
33
|
return Promise.resolve(getQuickInsertSuggestions({
|
|
32
|
-
query: query,
|
|
34
|
+
query: editorExperiment('platform_editor_controls', 'control') ? query : queryAllItems,
|
|
33
35
|
disableDefaultItems: options === null || options === void 0 ? void 0 : options.disableDefaultItems,
|
|
34
36
|
prioritySortingFn: options === null || options === void 0 ? void 0 : options.prioritySortingFn
|
|
35
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": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,13 +32,14 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/button": "^20.5.0",
|
|
35
|
-
"@atlaskit/editor-common": "^99.
|
|
36
|
-
"@atlaskit/editor-plugin-connectivity": "^1.
|
|
35
|
+
"@atlaskit/editor-common": "^99.17.0",
|
|
36
|
+
"@atlaskit/editor-plugin-connectivity": "^1.3.0",
|
|
37
37
|
"@atlaskit/editor-plugin-type-ahead": "^1.13.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/icon": "^23.
|
|
39
|
+
"@atlaskit/icon": "^23.9.0",
|
|
40
40
|
"@atlaskit/modal-dialog": "^12.20.0",
|
|
41
|
-
"@atlaskit/theme": "^
|
|
41
|
+
"@atlaskit/theme": "^16.0.0",
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^2.46.0",
|
|
42
43
|
"@atlaskit/tokens": "^3.3.0",
|
|
43
44
|
"@babel/runtime": "^7.0.0",
|
|
44
45
|
"@emotion/react": "^11.7.1"
|