@atlaskit/editor-plugin-quick-insert 1.10.2 → 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,33 @@
|
|
|
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
|
+
|
|
13
|
+
## 2.0.0
|
|
14
|
+
|
|
15
|
+
### Major Changes
|
|
16
|
+
|
|
17
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
18
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
19
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
20
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
21
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
22
|
+
React 17 may come via non-major semver releases.
|
|
23
|
+
|
|
24
|
+
Please refer this community post for more details:
|
|
25
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 1.10.2
|
|
4
32
|
|
|
5
33
|
### Patch 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": "
|
|
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,22 +31,22 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/button": "^
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
37
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
34
|
+
"@atlaskit/button": "^21.1.0",
|
|
35
|
+
"@atlaskit/editor-common": "^100.2.0",
|
|
36
|
+
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/icon": "^
|
|
40
|
-
"@atlaskit/modal-dialog": "^
|
|
41
|
-
"@atlaskit/theme": "^
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
43
|
-
"@atlaskit/tokens": "^
|
|
39
|
+
"@atlaskit/icon": "^24.1.0",
|
|
40
|
+
"@atlaskit/modal-dialog": "^13.0.0",
|
|
41
|
+
"@atlaskit/theme": "^17.0.0",
|
|
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
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"react": "^
|
|
49
|
-
"react-dom": "^
|
|
48
|
+
"react": "^18.2.0",
|
|
49
|
+
"react-dom": "^18.2.0",
|
|
50
50
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|