@atlaskit/editor-plugin-quick-insert 19.0.3 → 19.0.4
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 +8 -0
- package/dist/cjs/ui/search.js +1 -2
- package/dist/es2019/ui/search.js +1 -2
- package/dist/esm/ui/search.js +1 -2
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 19.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`50f3c586dbc63`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/50f3c586dbc63) -
|
|
8
|
+
Clean up feature gate `platform_editor_fix_space_triggering_ai`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 19.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/ui/search.js
CHANGED
|
@@ -9,7 +9,6 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
10
10
|
var _getActiveQuickInsertCategories = require("@atlaskit/editor-common/quick-insert/get-active-quick-insert-categories");
|
|
11
11
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
12
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
13
12
|
var isRegisteredLayoutQuickInsertItem = function isRegisteredLayoutQuickInsertItem(item) {
|
|
14
13
|
var _item$keywords, _item$keywords2;
|
|
15
14
|
return Boolean(item.id && item.id !== 'layout' && ((_item$keywords = item.keywords) === null || _item$keywords === void 0 ? void 0 : _item$keywords.includes('layout')) && ((_item$keywords2 = item.keywords) === null || _item$keywords2 === void 0 ? void 0 : _item$keywords2.includes('column')));
|
|
@@ -74,7 +73,7 @@ var getQuickInsertSuggestions = exports.getQuickInsertSuggestions = function get
|
|
|
74
73
|
return item.featured;
|
|
75
74
|
});
|
|
76
75
|
}
|
|
77
|
-
return (0, _quickInsert.find)((
|
|
76
|
+
return (0, _quickInsert.find)((query === null || query === void 0 ? void 0 : query.trimEnd()) || '', category === 'all' || !category ? items : items.filter(function (item) {
|
|
78
77
|
return (0, _getActiveQuickInsertCategories.getActiveQuickInsertCategories)(item.category, item.categories).includes(category);
|
|
79
78
|
}), prioritySortingFn);
|
|
80
79
|
};
|
package/dist/es2019/ui/search.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { find } from '@atlaskit/editor-common/quick-insert';
|
|
2
2
|
import { getActiveQuickInsertCategories } from '@atlaskit/editor-common/quick-insert/get-active-quick-insert-categories';
|
|
3
3
|
import { dedupe } from '@atlaskit/editor-common/utils';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
const isRegisteredLayoutQuickInsertItem = item => {
|
|
6
5
|
var _item$keywords, _item$keywords2;
|
|
7
6
|
return Boolean(item.id && item.id !== 'layout' && ((_item$keywords = item.keywords) === null || _item$keywords === void 0 ? void 0 : _item$keywords.includes('layout')) && ((_item$keywords2 = item.keywords) === null || _item$keywords2 === void 0 ? void 0 : _item$keywords2.includes('column')));
|
|
@@ -56,5 +55,5 @@ export const getQuickInsertSuggestions = (searchOptions, lazyDefaultItems = () =
|
|
|
56
55
|
if (featuredItems) {
|
|
57
56
|
return items.filter(item => item.featured);
|
|
58
57
|
}
|
|
59
|
-
return find((
|
|
58
|
+
return find((query === null || query === void 0 ? void 0 : query.trimEnd()) || '', category === 'all' || !category ? items : items.filter(item => getActiveQuickInsertCategories(item.category, item.categories).includes(category)), prioritySortingFn);
|
|
60
59
|
};
|
package/dist/esm/ui/search.js
CHANGED
|
@@ -2,7 +2,6 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import { find } from '@atlaskit/editor-common/quick-insert';
|
|
3
3
|
import { getActiveQuickInsertCategories } from '@atlaskit/editor-common/quick-insert/get-active-quick-insert-categories';
|
|
4
4
|
import { dedupe } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
5
|
var isRegisteredLayoutQuickInsertItem = function isRegisteredLayoutQuickInsertItem(item) {
|
|
7
6
|
var _item$keywords, _item$keywords2;
|
|
8
7
|
return Boolean(item.id && item.id !== 'layout' && ((_item$keywords = item.keywords) === null || _item$keywords === void 0 ? void 0 : _item$keywords.includes('layout')) && ((_item$keywords2 = item.keywords) === null || _item$keywords2 === void 0 ? void 0 : _item$keywords2.includes('column')));
|
|
@@ -67,7 +66,7 @@ export var getQuickInsertSuggestions = function getQuickInsertSuggestions(search
|
|
|
67
66
|
return item.featured;
|
|
68
67
|
});
|
|
69
68
|
}
|
|
70
|
-
return find((
|
|
69
|
+
return find((query === null || query === void 0 ? void 0 : query.trimEnd()) || '', category === 'all' || !category ? items : items.filter(function (item) {
|
|
71
70
|
return getActiveQuickInsertCategories(item.category, item.categories).includes(category);
|
|
72
71
|
}), prioritySortingFn);
|
|
73
72
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.4",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@emotion/react": "^11.7.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^123.
|
|
54
|
+
"@atlaskit/editor-common": "^123.4.0",
|
|
55
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
57
57
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -68,9 +68,6 @@
|
|
|
68
68
|
"platform_editor_ease_of_use_metrics": {
|
|
69
69
|
"type": "boolean"
|
|
70
70
|
},
|
|
71
|
-
"platform_editor_fix_space_triggering_ai": {
|
|
72
|
-
"type": "boolean"
|
|
73
|
-
},
|
|
74
71
|
"platform_dst_modal-dialog-use-modal-title": {
|
|
75
72
|
"type": "boolean",
|
|
76
73
|
"referenceOnly": true
|