@atlaskit/editor-plugin-quick-insert 18.0.11 → 18.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/editor-plugin-quick-insert
2
2
 
3
+ ## 18.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 18.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`b51cc398d7701`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b51cc398d7701) -
14
+ Add the opt-in @mention availability predicate used by the gated Home Search mode, so Search
15
+ preserves existing Chat mentions as inactive content while preventing new mention typeahead and
16
+ `/mention` slash-menu insertion. The `editor-disable-feature` feature gate enables that predicate
17
+ for Home Search.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 18.0.11
4
24
 
5
25
  ### Patch Changes
@@ -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) {
@@ -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) {
@@ -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.11",
3
+ "version": "18.1.1",
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.0.0",
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",
@@ -38,15 +43,15 @@
38
43
  "@atlaskit/platform-feature-flags": "^2.2.0",
39
44
  "@atlaskit/primitives": "^22.5.0",
40
45
  "@atlaskit/textfield": "^10.2.0",
41
- "@atlaskit/tmp-editor-statsig": "^198.0.0",
42
- "@atlaskit/tokens": "^17.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^199.0.0",
47
+ "@atlaskit/tokens": "^18.0.0",
43
48
  "@atlaskit/tooltip": "^24.3.0",
44
49
  "@babel/runtime": "^7.0.0",
45
50
  "@compiled/react": "^1.0.2",
46
51
  "@emotion/react": "^11.7.1"
47
52
  },
48
53
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^122.10.0",
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"