@atlaskit/editor-plugin-quick-insert 6.0.16 → 6.1.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 +13 -0
- package/dist/cjs/ui/search.js +1 -3
- package/dist/es2019/ui/search.js +2 -2
- package/dist/esm/ui/search.js +1 -3
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 6.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 6.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`7e99b96b72a08`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7e99b96b72a08) -
|
|
14
|
+
[ux] Feature gate cleanup for dedup quick insert title and description check
|
|
15
|
+
|
|
3
16
|
## 6.0.16
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/cjs/ui/search.js
CHANGED
|
@@ -21,11 +21,9 @@ var getQuickInsertSuggestions = exports.getQuickInsertSuggestions = function get
|
|
|
21
21
|
featuredItems = searchOptions.featuredItems,
|
|
22
22
|
prioritySortingFn = searchOptions.prioritySortingFn;
|
|
23
23
|
var defaultItems = disableDefaultItems ? [] : lazyDefaultItems();
|
|
24
|
-
var dedupeFn =
|
|
24
|
+
var dedupeFn = function dedupeFn(item) {
|
|
25
25
|
var _item$description;
|
|
26
26
|
return "".concat(item.title, "-").concat((_item$description = item.description) !== null && _item$description !== void 0 ? _item$description : '');
|
|
27
|
-
} : function (item) {
|
|
28
|
-
return item.title;
|
|
29
27
|
};
|
|
30
28
|
var items = providedItems ? (0, _utils.dedupe)([].concat((0, _toConsumableArray2.default)(defaultItems), (0, _toConsumableArray2.default)(providedItems)), dedupeFn) : defaultItems;
|
|
31
29
|
if (featuredItems) {
|
package/dist/es2019/ui/search.js
CHANGED
|
@@ -11,10 +11,10 @@ export const getQuickInsertSuggestions = (searchOptions, lazyDefaultItems = () =
|
|
|
11
11
|
prioritySortingFn
|
|
12
12
|
} = searchOptions;
|
|
13
13
|
const defaultItems = disableDefaultItems ? [] : lazyDefaultItems();
|
|
14
|
-
const dedupeFn =
|
|
14
|
+
const dedupeFn = item => {
|
|
15
15
|
var _item$description;
|
|
16
16
|
return `${item.title}-${(_item$description = item.description) !== null && _item$description !== void 0 ? _item$description : ''}`;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
const items = providedItems ? dedupe([...defaultItems, ...providedItems], dedupeFn) : defaultItems;
|
|
19
19
|
if (featuredItems) {
|
|
20
20
|
return items.filter(item => item.featured);
|
package/dist/esm/ui/search.js
CHANGED
|
@@ -14,11 +14,9 @@ export var getQuickInsertSuggestions = function getQuickInsertSuggestions(search
|
|
|
14
14
|
featuredItems = searchOptions.featuredItems,
|
|
15
15
|
prioritySortingFn = searchOptions.prioritySortingFn;
|
|
16
16
|
var defaultItems = disableDefaultItems ? [] : lazyDefaultItems();
|
|
17
|
-
var dedupeFn =
|
|
17
|
+
var dedupeFn = function dedupeFn(item) {
|
|
18
18
|
var _item$description;
|
|
19
19
|
return "".concat(item.title, "-").concat((_item$description = item.description) !== null && _item$description !== void 0 ? _item$description : '');
|
|
20
|
-
} : function (item) {
|
|
21
|
-
return item.title;
|
|
22
20
|
};
|
|
23
21
|
var items = providedItems ? dedupe([].concat(_toConsumableArray(defaultItems), _toConsumableArray(providedItems)), dedupeFn) : defaultItems;
|
|
24
22
|
if (featuredItems) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"@atlaskit/modal-dialog": "^14.7.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/theme": "^21.0.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^15.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^8.4.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^110.
|
|
48
|
+
"@atlaskit/editor-common": "^110.40.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -91,9 +91,6 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"platform-feature-flags": {
|
|
94
|
-
"platform_editor_quick_insert_dedupe_title_desc": {
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
},
|
|
97
94
|
"platform_editor_ease_of_use_metrics": {
|
|
98
95
|
"type": "boolean"
|
|
99
96
|
},
|