@atlaskit/renderer 133.7.10 → 133.8.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,5 +1,19 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 133.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`663afd59ab193`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/663afd59ab193) -
8
+ Agent mentions in Rovo chat history now open the agent profile card on click (behind the
9
+ rovo_chat_agent_selection gate). The renderer and editor-common Mention now thread the mention
10
+ userType so an 'APP' (agent) mention renders an AgentProfileCardTrigger; AgentProfileCardTrigger
11
+ now honors a passed trigger prop.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 133.7.10
4
18
 
5
19
  ### Patch Changes
@@ -16,7 +16,8 @@ var _default_1 = /*#__PURE__*/(0, _react.memo)(function MentionItem(props) {
16
16
  providers = props.providers,
17
17
  text = props.text,
18
18
  accessLevel = props.accessLevel,
19
- localId = props.localId;
19
+ localId = props.localId,
20
+ userType = props.userType;
20
21
  var inlineAnnotationProps = (0, _useInlineAnnotationProps.useInlineAnnotationProps)(props);
21
22
  if ((0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
22
23
  return (
@@ -29,6 +30,7 @@ var _default_1 = /*#__PURE__*/(0, _react.memo)(function MentionItem(props) {
29
30
  accessLevel: accessLevel,
30
31
  providers: providers,
31
32
  localId: localId,
33
+ userType: userType,
32
34
  eventHandlers: eventHandlers && eventHandlers.mention
33
35
  }))
34
36
  );
@@ -39,6 +41,7 @@ var _default_1 = /*#__PURE__*/(0, _react.memo)(function MentionItem(props) {
39
41
  accessLevel: accessLevel,
40
42
  providers: providers,
41
43
  localId: localId,
44
+ userType: userType,
42
45
  eventHandlers: eventHandlers && eventHandlers.mention
43
46
  });
44
47
  });
@@ -72,7 +72,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
72
72
  var TABLE_INFO_TIMEOUT = 10000;
73
73
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
74
74
  var packageName = "@atlaskit/renderer";
75
- var packageVersion = "133.7.9";
75
+ var packageVersion = "133.7.10";
76
76
  var setAsQueryContainerStyles = (0, _react2.css)({
77
77
  containerName: 'ak-renderer-wrapper',
78
78
  containerType: 'inline-size'
@@ -9,7 +9,8 @@ const _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
9
9
  providers,
10
10
  text,
11
11
  accessLevel,
12
- localId
12
+ localId,
13
+ userType
13
14
  } = props;
14
15
  const inlineAnnotationProps = useInlineAnnotationProps(props);
15
16
  if (fg('editor_inline_comments_on_inline_nodes')) {
@@ -23,6 +24,7 @@ const _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
23
24
  accessLevel: accessLevel,
24
25
  providers: providers,
25
26
  localId: localId,
27
+ userType: userType,
26
28
  eventHandlers: eventHandlers && eventHandlers.mention
27
29
  }))
28
30
  );
@@ -33,6 +35,7 @@ const _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
33
35
  accessLevel: accessLevel,
34
36
  providers: providers,
35
37
  localId: localId,
38
+ userType: userType,
36
39
  eventHandlers: eventHandlers && eventHandlers.mention
37
40
  });
38
41
  });
@@ -58,7 +58,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
58
58
  const TABLE_INFO_TIMEOUT = 10000;
59
59
  const RENDER_EVENT_SAMPLE_RATE = 0.2;
60
60
  const packageName = "@atlaskit/renderer";
61
- const packageVersion = "133.7.9";
61
+ const packageVersion = "133.7.10";
62
62
  const setAsQueryContainerStyles = css({
63
63
  containerName: 'ak-renderer-wrapper',
64
64
  containerType: 'inline-size'
@@ -8,7 +8,8 @@ var _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
8
8
  providers = props.providers,
9
9
  text = props.text,
10
10
  accessLevel = props.accessLevel,
11
- localId = props.localId;
11
+ localId = props.localId,
12
+ userType = props.userType;
12
13
  var inlineAnnotationProps = useInlineAnnotationProps(props);
13
14
  if (fg('editor_inline_comments_on_inline_nodes')) {
14
15
  return (
@@ -21,6 +22,7 @@ var _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
21
22
  accessLevel: accessLevel,
22
23
  providers: providers,
23
24
  localId: localId,
25
+ userType: userType,
24
26
  eventHandlers: eventHandlers && eventHandlers.mention
25
27
  }))
26
28
  );
@@ -31,6 +33,7 @@ var _default_1 = /*#__PURE__*/memo(function MentionItem(props) {
31
33
  accessLevel: accessLevel,
32
34
  providers: providers,
33
35
  localId: localId,
36
+ userType: userType,
34
37
  eventHandlers: eventHandlers && eventHandlers.mention
35
38
  });
36
39
  });
@@ -63,7 +63,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
63
63
  var TABLE_INFO_TIMEOUT = 10000;
64
64
  var RENDER_EVENT_SAMPLE_RATE = 0.2;
65
65
  var packageName = "@atlaskit/renderer";
66
- var packageVersion = "133.7.9";
66
+ var packageVersion = "133.7.10";
67
67
  var setAsQueryContainerStyles = css({
68
68
  containerName: 'ak-renderer-wrapper',
69
69
  containerType: 'inline-size'
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { MentionUserType } from '@atlaskit/adf-schema';
2
3
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
4
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
5
  import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
@@ -9,6 +10,7 @@ export interface Props extends MarkDataAttributes {
9
10
  localId?: string;
10
11
  providers?: ProviderFactory;
11
12
  text: string;
13
+ userType?: MentionUserType;
12
14
  }
13
15
  declare const _default_1: React.NamedExoticComponent<Props>;
14
16
  export default _default_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "133.7.10",
3
+ "version": "133.8.0",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/status": "^5.4.0",
68
68
  "@atlaskit/task-decision": "^21.4.0",
69
69
  "@atlaskit/theme": "^26.1.0",
70
- "@atlaskit/tmp-editor-statsig": "^120.0.0",
70
+ "@atlaskit/tmp-editor-statsig": "^120.1.0",
71
71
  "@atlaskit/tokens": "^15.3.0",
72
72
  "@atlaskit/tooltip": "^23.1.0",
73
73
  "@atlaskit/visually-hidden": "^4.1.0",
@@ -82,7 +82,7 @@
82
82
  "uuid": "^3.1.0"
83
83
  },
84
84
  "peerDependencies": {
85
- "@atlaskit/editor-common": "^116.20.0",
85
+ "@atlaskit/editor-common": "^116.21.0",
86
86
  "@atlaskit/link-provider": "^5.1.0",
87
87
  "@atlaskit/media-core": "^38.0.0",
88
88
  "react": "^18.2.0",
@@ -103,7 +103,7 @@
103
103
  "@atlaskit/mention": "^27.5.0",
104
104
  "@atlaskit/modal-dialog": "^16.1.0",
105
105
  "@atlaskit/navigation-system": "^10.2.0",
106
- "@atlaskit/profilecard": "^26.5.0",
106
+ "@atlaskit/profilecard": "^26.8.0",
107
107
  "@atlaskit/side-nav-items": "^2.2.0",
108
108
  "@atlaskit/util-data-test": "^19.1.0",
109
109
  "@atlassian/a11y-jest-testing": "^0.13.0",