@atlaskit/editor-plugin-quick-insert 18.0.11 → 18.1.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 +14 -0
- package/dist/cjs/ui/search.js +4 -0
- package/dist/es2019/ui/search.js +4 -0
- package/dist/esm/ui/search.js +4 -0
- package/package.json +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-quick-insert
|
|
2
2
|
|
|
3
|
+
## 18.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`b51cc398d7701`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b51cc398d7701) -
|
|
8
|
+
Add the opt-in @mention availability predicate used by the gated Home Search mode, so Search
|
|
9
|
+
preserves existing Chat mentions as inactive content while preventing new mention typeahead and
|
|
10
|
+
`/mention` slash-menu insertion. The `editor-disable-feature` feature gate enables that predicate
|
|
11
|
+
for Home Search.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 18.0.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/ui/search.js
CHANGED
|
@@ -60,6 +60,10 @@ var getQuickInsertSuggestions = exports.getQuickInsertSuggestions = function get
|
|
|
60
60
|
return "".concat(item.title, "-").concat((_item$description = item.description) !== null && _item$description !== void 0 ? _item$description : '');
|
|
61
61
|
};
|
|
62
62
|
var items = providedItems ? (0, _utils.dedupe)([].concat((0, _toConsumableArray2.default)(defaultItems), (0, _toConsumableArray2.default)(providedItems)), dedupeFn) : defaultItems;
|
|
63
|
+
items = items.filter(function (item) {
|
|
64
|
+
var _item$isHidden;
|
|
65
|
+
return ((_item$isHidden = item.isHidden) === null || _item$isHidden === void 0 ? void 0 : _item$isHidden.call(item)) !== true;
|
|
66
|
+
});
|
|
63
67
|
|
|
64
68
|
// EDITOR-6558: apply consumer-supplied filter (e.g. Markdown Mode allowlist).
|
|
65
69
|
if (itemFilter) {
|
package/dist/es2019/ui/search.js
CHANGED
|
@@ -44,6 +44,10 @@ export const getQuickInsertSuggestions = (searchOptions, lazyDefaultItems = () =
|
|
|
44
44
|
return `${item.title}-${(_item$description = item.description) !== null && _item$description !== void 0 ? _item$description : ''}`;
|
|
45
45
|
};
|
|
46
46
|
let items = providedItems ? dedupe([...defaultItems, ...providedItems], dedupeFn) : defaultItems;
|
|
47
|
+
items = items.filter(item => {
|
|
48
|
+
var _item$isHidden;
|
|
49
|
+
return ((_item$isHidden = item.isHidden) === null || _item$isHidden === void 0 ? void 0 : _item$isHidden.call(item)) !== true;
|
|
50
|
+
});
|
|
47
51
|
|
|
48
52
|
// EDITOR-6558: apply consumer-supplied filter (e.g. Markdown Mode allowlist).
|
|
49
53
|
if (itemFilter) {
|
package/dist/esm/ui/search.js
CHANGED
|
@@ -53,6 +53,10 @@ export var getQuickInsertSuggestions = function getQuickInsertSuggestions(search
|
|
|
53
53
|
return "".concat(item.title, "-").concat((_item$description = item.description) !== null && _item$description !== void 0 ? _item$description : '');
|
|
54
54
|
};
|
|
55
55
|
var items = providedItems ? dedupe([].concat(_toConsumableArray(defaultItems), _toConsumableArray(providedItems)), dedupeFn) : defaultItems;
|
|
56
|
+
items = items.filter(function (item) {
|
|
57
|
+
var _item$isHidden;
|
|
58
|
+
return ((_item$isHidden = item.isHidden) === null || _item$isHidden === void 0 ? void 0 : _item$isHidden.call(item)) !== true;
|
|
59
|
+
});
|
|
56
60
|
|
|
57
61
|
// EDITOR-6558: apply consumer-supplied filter (e.g. Markdown Mode allowlist).
|
|
58
62
|
if (itemFilter) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "18.0
|
|
3
|
+
"version": "18.1.0",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
+
"website": {
|
|
12
|
+
"tags": [
|
|
13
|
+
"platform-labs"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
11
16
|
"team": "Editor: Lego",
|
|
12
17
|
"singleton": true
|
|
13
18
|
},
|
|
@@ -26,7 +31,7 @@
|
|
|
26
31
|
"@atlaskit/editor-plugin-analytics": "^18.0.0",
|
|
27
32
|
"@atlaskit/editor-plugin-connectivity": "^18.0.0",
|
|
28
33
|
"@atlaskit/editor-plugin-metrics": "^19.0.0",
|
|
29
|
-
"@atlaskit/editor-plugin-type-ahead": "^19.
|
|
34
|
+
"@atlaskit/editor-plugin-type-ahead": "^19.1.0",
|
|
30
35
|
"@atlaskit/editor-plugin-ui-control-registry": "^12.0.0",
|
|
31
36
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
32
37
|
"@atlaskit/editor-tables": "^3.2.0",
|
|
@@ -46,7 +51,7 @@
|
|
|
46
51
|
"@emotion/react": "^11.7.1"
|
|
47
52
|
},
|
|
48
53
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^122.
|
|
54
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
50
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
51
56
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
52
57
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|