@atlaskit/mention 27.2.1 → 27.4.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 CHANGED
@@ -1,11 +1,30 @@
1
1
  # @atlaskit/mention
2
2
 
3
+ ## 27.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6d48bbf99477b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d48bbf99477b) -
8
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
9
+ (Group 3)
10
+
11
+ ## 27.3.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`1e60d10b9bddf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1e60d10b9bddf) -
16
+ Fix agent mention chip not rendering as disabled after the last @-mentioned agent is dismissed via
17
+ the input hat (TREX-1692). An agent chip is now enabled only when its id is the active agent
18
+ (selectedAgentIds.at(-1)) and disabled otherwise; the rule is scoped to agent chips via the
19
+ mention node's userType (now forwarded through MentionDisabledStateInput) so people mentions are
20
+ never affected.
21
+
3
22
  ## 27.2.1
4
23
 
5
24
  ### Patch Changes
6
25
 
7
26
  - [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
8
- Add @atlassian/react-compiler-gating as a runtime dependency to enable React Compiler platform
27
+ Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform
9
28
  gating.
10
29
  - Updated dependencies
11
30
 
@@ -49,6 +49,9 @@
49
49
  {
50
50
  "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
51
51
  },
52
+ {
53
+ "path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
54
+ },
52
55
  {
53
56
  "path": "../../../design-system/tag/afm-cc/tsconfig.json"
54
57
  },
@@ -66,9 +69,6 @@
66
69
  },
67
70
  {
68
71
  "path": "../../util-service-support/afm-cc/tsconfig.json"
69
- },
70
- {
71
- "path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
72
72
  }
73
73
  ]
74
74
  }
@@ -49,6 +49,9 @@
49
49
  {
50
50
  "path": "../../../design-system/primitives/afm-products/tsconfig.json"
51
51
  },
52
+ {
53
+ "path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
54
+ },
52
55
  {
53
56
  "path": "../../../design-system/tag/afm-products/tsconfig.json"
54
57
  },
@@ -66,9 +69,6 @@
66
69
  },
67
70
  {
68
71
  "path": "../../util-service-support/afm-products/tsconfig.json"
69
- },
70
- {
71
- "path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
72
72
  }
73
73
  ]
74
74
  }
@@ -12,7 +12,7 @@ var _types = require("../types");
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  var packageName = "@atlaskit/mention";
15
- var packageVersion = "27.2.0";
15
+ var packageVersion = "27.3.0";
16
16
  var SLI_EVENT_TYPE = exports.SLI_EVENT_TYPE = 'sli';
17
17
  var SMART_EVENT_TYPE = exports.SMART_EVENT_TYPE = 'smart';
18
18
  var fireAnalyticsMentionTypeaheadEvent = exports.fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
@@ -2,7 +2,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
2
2
  import { ELEMENTS_CHANNEL } from '../_constants';
3
3
  import { ComponentNames, isSpecialMentionText } from '../types';
4
4
  const packageName = "@atlaskit/mention";
5
- const packageVersion = "27.2.0";
5
+ const packageVersion = "27.3.0";
6
6
  export const SLI_EVENT_TYPE = 'sli';
7
7
  export const SMART_EVENT_TYPE = 'smart';
8
8
  export const fireAnalyticsMentionTypeaheadEvent = props => (action, duration, userIds = [], query) => {
@@ -5,7 +5,7 @@ import { OPERATIONAL_EVENT_TYPE, UI_EVENT_TYPE } from '@atlaskit/analytics-gas-t
5
5
  import { ELEMENTS_CHANNEL } from '../_constants';
6
6
  import { ComponentNames, isSpecialMentionText } from '../types';
7
7
  var packageName = "@atlaskit/mention";
8
- var packageVersion = "27.2.0";
8
+ var packageVersion = "27.3.0";
9
9
  export var SLI_EVENT_TYPE = 'sli';
10
10
  export var SMART_EVENT_TYPE = 'smart';
11
11
  export var fireAnalyticsMentionTypeaheadEvent = function fireAnalyticsMentionTypeaheadEvent(props) {
@@ -127,6 +127,7 @@ export interface MentionDisabledState {
127
127
  */
128
128
  export interface MentionDisabledStateInput {
129
129
  id: string;
130
+ userType?: string;
130
131
  }
131
132
  export interface ResourceProvider<Result> {
132
133
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "react-compiler": {
5
5
  "enabled": true,
6
6
  "gating": {
7
- "source": "@atlassian/react-compiler-gating",
7
+ "source": "@atlaskit/react-compiler-gating",
8
8
  "importSpecifierName": "isReactCompilerActivePlatform"
9
9
  }
10
10
  },
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "dependencies": {
29
- "@atlaskit/afm-i18n-platform-elements-mention": "2.160.0",
29
+ "@atlaskit/afm-i18n-platform-elements-mention": "2.168.0",
30
30
  "@atlaskit/analytics-gas-types": "^6.0.0",
31
31
  "@atlaskit/analytics-next": "^12.0.0",
32
32
  "@atlaskit/avatar": "^26.0.0",
@@ -36,13 +36,13 @@
36
36
  "@atlaskit/lozenge": "^14.0.0",
37
37
  "@atlaskit/platform-feature-flags": "^2.0.0",
38
38
  "@atlaskit/primitives": "^20.0.0",
39
+ "@atlaskit/react-compiler-gating": "^0.2.0",
39
40
  "@atlaskit/tag": "^15.0.0",
40
41
  "@atlaskit/teams-avatar": "^3.0.0",
41
42
  "@atlaskit/tokens": "^15.0.0",
42
43
  "@atlaskit/tooltip": "^23.0.0",
43
44
  "@atlaskit/ufo": "^1.0.0",
44
45
  "@atlaskit/util-service-support": "^7.0.0",
45
- "@atlassian/react-compiler-gating": "^0.2.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@emotion/react": "^11.7.1",
48
48
  "@emotion/styled": "^11.0.0",
@@ -54,7 +54,7 @@
54
54
  "@af/integration-testing": "workspace:^",
55
55
  "@af/search-test-utils": "workspace:^",
56
56
  "@af/visual-regression": "workspace:^",
57
- "@atlassian/a11y-jest-testing": "^0.12.0",
57
+ "@atlassian/a11y-jest-testing": "^0.13.0",
58
58
  "@atlassian/a11y-playwright-testing": "^0.10.0",
59
59
  "@atlassian/feature-flags-test-utils": "^1.1.0",
60
60
  "@atlassian/testing-library": "^0.6.0",
@@ -117,5 +117,5 @@
117
117
  }
118
118
  },
119
119
  "types": "dist/types/index.d.ts",
120
- "version": "27.2.1"
120
+ "version": "27.4.0"
121
121
  }