@atlaskit/editor-plugin-quick-insert 2.1.1 → 2.2.0
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 +19 -0
- package/dist/cjs/ui/search.js +0 -10
- package/dist/es2019/ui/search.js +0 -10
- package/dist/esm/ui/search.js +0 -10
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#130262](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130262)
|
|
8
|
+
[`236c73af67c7b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/236c73af67c7b) -
|
|
9
|
+
[ED-24873] This change is cleaning up code from the element templates experiment
|
|
10
|
+
`platform_editor_element_level_templates`.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 2.1.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 2.1.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cjs/ui/search.js
CHANGED
|
@@ -19,7 +19,6 @@ var getQuickInsertSuggestions = exports.getQuickInsertSuggestions = function get
|
|
|
19
19
|
category = searchOptions.category,
|
|
20
20
|
disableDefaultItems = searchOptions.disableDefaultItems,
|
|
21
21
|
featuredItems = searchOptions.featuredItems,
|
|
22
|
-
templateItems = searchOptions.templateItems,
|
|
23
22
|
prioritySortingFn = searchOptions.prioritySortingFn;
|
|
24
23
|
var defaultItems = disableDefaultItems ? [] : lazyDefaultItems();
|
|
25
24
|
var dedupeFn = (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_dedupe_title_desc') ? function (item) {
|
|
@@ -29,15 +28,6 @@ var getQuickInsertSuggestions = exports.getQuickInsertSuggestions = function get
|
|
|
29
28
|
return item.title;
|
|
30
29
|
};
|
|
31
30
|
var items = providedItems ? (0, _utils.dedupe)([].concat((0, _toConsumableArray2.default)(defaultItems), (0, _toConsumableArray2.default)(providedItems)), dedupeFn) : defaultItems;
|
|
32
|
-
|
|
33
|
-
// For platform_editor_element_level_templates experiment only
|
|
34
|
-
// clean up ticket ED-24873
|
|
35
|
-
if (templateItems && featuredItems) {
|
|
36
|
-
return items.filter(function (item) {
|
|
37
|
-
var _item$id;
|
|
38
|
-
return ['discussionNotes', 'approvalsTracker', 'decisionMatrix', 'actionList', 'instructionsOutline'].includes((_item$id = item.id) !== null && _item$id !== void 0 ? _item$id : '') || item.featured;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
31
|
if (featuredItems) {
|
|
42
32
|
return items.filter(function (item) {
|
|
43
33
|
return item.featured;
|
package/dist/es2019/ui/search.js
CHANGED
|
@@ -8,7 +8,6 @@ export const getQuickInsertSuggestions = (searchOptions, lazyDefaultItems = () =
|
|
|
8
8
|
category,
|
|
9
9
|
disableDefaultItems,
|
|
10
10
|
featuredItems,
|
|
11
|
-
templateItems,
|
|
12
11
|
prioritySortingFn
|
|
13
12
|
} = searchOptions;
|
|
14
13
|
const defaultItems = disableDefaultItems ? [] : lazyDefaultItems();
|
|
@@ -17,15 +16,6 @@ export const getQuickInsertSuggestions = (searchOptions, lazyDefaultItems = () =
|
|
|
17
16
|
return `${item.title}-${(_item$description = item.description) !== null && _item$description !== void 0 ? _item$description : ''}`;
|
|
18
17
|
} : item => item.title;
|
|
19
18
|
const items = providedItems ? dedupe([...defaultItems, ...providedItems], dedupeFn) : defaultItems;
|
|
20
|
-
|
|
21
|
-
// For platform_editor_element_level_templates experiment only
|
|
22
|
-
// clean up ticket ED-24873
|
|
23
|
-
if (templateItems && featuredItems) {
|
|
24
|
-
return items.filter(item => {
|
|
25
|
-
var _item$id;
|
|
26
|
-
return ['discussionNotes', 'approvalsTracker', 'decisionMatrix', 'actionList', 'instructionsOutline'].includes((_item$id = item.id) !== null && _item$id !== void 0 ? _item$id : '') || item.featured;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
19
|
if (featuredItems) {
|
|
30
20
|
return items.filter(item => item.featured);
|
|
31
21
|
}
|
package/dist/esm/ui/search.js
CHANGED
|
@@ -12,7 +12,6 @@ export var getQuickInsertSuggestions = function getQuickInsertSuggestions(search
|
|
|
12
12
|
category = searchOptions.category,
|
|
13
13
|
disableDefaultItems = searchOptions.disableDefaultItems,
|
|
14
14
|
featuredItems = searchOptions.featuredItems,
|
|
15
|
-
templateItems = searchOptions.templateItems,
|
|
16
15
|
prioritySortingFn = searchOptions.prioritySortingFn;
|
|
17
16
|
var defaultItems = disableDefaultItems ? [] : lazyDefaultItems();
|
|
18
17
|
var dedupeFn = fg('platform_editor_quick_insert_dedupe_title_desc') ? function (item) {
|
|
@@ -22,15 +21,6 @@ export var getQuickInsertSuggestions = function getQuickInsertSuggestions(search
|
|
|
22
21
|
return item.title;
|
|
23
22
|
};
|
|
24
23
|
var items = providedItems ? dedupe([].concat(_toConsumableArray(defaultItems), _toConsumableArray(providedItems)), dedupeFn) : defaultItems;
|
|
25
|
-
|
|
26
|
-
// For platform_editor_element_level_templates experiment only
|
|
27
|
-
// clean up ticket ED-24873
|
|
28
|
-
if (templateItems && featuredItems) {
|
|
29
|
-
return items.filter(function (item) {
|
|
30
|
-
var _item$id;
|
|
31
|
-
return ['discussionNotes', 'approvalsTracker', 'decisionMatrix', 'actionList', 'instructionsOutline'].includes((_item$id = item.id) !== null && _item$id !== void 0 ? _item$id : '') || item.featured;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
24
|
if (featuredItems) {
|
|
35
25
|
return items.filter(function (item) {
|
|
36
26
|
return item.featured;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/button": "^21.1.0",
|
|
37
|
-
"@atlaskit/editor-common": "^102.
|
|
37
|
+
"@atlaskit/editor-common": "^102.13.0",
|
|
38
38
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
39
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
|
39
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.2.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
41
|
"@atlaskit/icon": "^25.0.0",
|
|
42
|
-
"@atlaskit/modal-dialog": "^13.
|
|
42
|
+
"@atlaskit/modal-dialog": "^13.4.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/theme": "^18.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
-
"@atlaskit/tokens": "^4.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^4.2.0",
|
|
46
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@emotion/react": "^11.7.1"
|
|
49
49
|
},
|