@atlaskit/smart-card 46.5.0 → 46.5.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,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 46.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c2a714462c2d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2a714462c2d1) -
8
+ Update One Click Chat Spotlight V2 body and CTA copy behind
9
+ platform_sl_one_click_chat_spotlight_v2_fg.
10
+ - Updated dependencies
11
+
3
12
  ## 46.5.0
4
13
 
5
14
  ### Minor Changes
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
25
25
  var context = exports.context = {
26
26
  componentName: 'smart-cards',
27
27
  packageName: "@atlaskit/smart-card" || '',
28
- packageVersion: "46.4.2" || ''
28
+ packageVersion: "46.5.0" || ''
29
29
  };
30
30
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
31
31
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -36,15 +36,10 @@ var messages = (0, _reactIntl.defineMessages)({
36
36
  defaultMessage: 'Explore this link with Rovo',
37
37
  description: 'Accessible name of a spotlight introducing the Rovo action beside a resolved Smart Link.'
38
38
  },
39
- drive: {
40
- id: 'smart-card.one-click-chat-spotlight-v2.drive.ai-non-final',
41
- defaultMessage: 'Discover insights from your Google Drive Smart Link using Rovo',
42
- description: 'Spotlight text explaining that the inline action summarizes the linked Google Drive content.'
43
- },
44
- github: {
45
- id: 'smart-card.one-click-chat-spotlight-v2.github.ai-non-final',
46
- defaultMessage: 'Discover insights from your GitHub Smart Link using Rovo',
47
- description: 'Spotlight text explaining that the inline action explains the linked GitHub code.'
39
+ body: {
40
+ id: 'smart-card.one-click-chat-spotlight-v2.takeaways-body.ai-non-final',
41
+ defaultMessage: 'Get key decisions and next steps from this link',
42
+ description: 'Spotlight body inviting users to get key decisions and next steps from a linked document or code using Rovo.'
48
43
  },
49
44
  dismiss: {
50
45
  id: 'smart-card.one-click-chat-spotlight-v2.dismiss.ai-non-final',
@@ -52,8 +47,8 @@ var messages = (0, _reactIntl.defineMessages)({
52
47
  description: 'Dismiss button in the Smart Link spotlight. Hides this spotlight for seven days.'
53
48
  },
54
49
  action: {
55
- id: 'smart-card.one-click-chat-spotlight-v2.action.ai-non-final',
56
- defaultMessage: 'Try Now',
50
+ id: 'smart-card.one-click-chat-spotlight-v2.see-takeaways.ai-non-final',
51
+ defaultMessage: 'See takeaways',
57
52
  description: 'Button in the spotlight that invokes the same Rovo action as the highlighted inline button.'
58
53
  }
59
54
  });
@@ -278,7 +273,7 @@ function OneClickChatSpotlight(_ref3) {
278
273
  content: function content() {
279
274
  return /*#__PURE__*/_react.default.createElement(VisibleSpotlightCard, {
280
275
  onShown: spotlight.onShown,
281
- body: intl.formatMessage(provider === 'google-object-provider' ? messages.drive : messages.github),
276
+ body: intl.formatMessage(messages.body),
282
277
  dismissLabel: intl.formatMessage(messages.dismiss),
283
278
  actionLabel: intl.formatMessage(messages.action),
284
279
  onDismiss: spotlight.onDismiss,
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "46.4.2",
22
+ packageVersion: "46.5.0",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card" || '',
7
- packageVersion: "46.4.2" || ''
7
+ packageVersion: "46.5.0" || ''
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -24,15 +24,10 @@ const messages = defineMessages({
24
24
  defaultMessage: 'Explore this link with Rovo',
25
25
  description: 'Accessible name of a spotlight introducing the Rovo action beside a resolved Smart Link.'
26
26
  },
27
- drive: {
28
- id: 'smart-card.one-click-chat-spotlight-v2.drive.ai-non-final',
29
- defaultMessage: 'Discover insights from your Google Drive Smart Link using Rovo',
30
- description: 'Spotlight text explaining that the inline action summarizes the linked Google Drive content.'
31
- },
32
- github: {
33
- id: 'smart-card.one-click-chat-spotlight-v2.github.ai-non-final',
34
- defaultMessage: 'Discover insights from your GitHub Smart Link using Rovo',
35
- description: 'Spotlight text explaining that the inline action explains the linked GitHub code.'
27
+ body: {
28
+ id: 'smart-card.one-click-chat-spotlight-v2.takeaways-body.ai-non-final',
29
+ defaultMessage: 'Get key decisions and next steps from this link',
30
+ description: 'Spotlight body inviting users to get key decisions and next steps from a linked document or code using Rovo.'
36
31
  },
37
32
  dismiss: {
38
33
  id: 'smart-card.one-click-chat-spotlight-v2.dismiss.ai-non-final',
@@ -40,8 +35,8 @@ const messages = defineMessages({
40
35
  description: 'Dismiss button in the Smart Link spotlight. Hides this spotlight for seven days.'
41
36
  },
42
37
  action: {
43
- id: 'smart-card.one-click-chat-spotlight-v2.action.ai-non-final',
44
- defaultMessage: 'Try Now',
38
+ id: 'smart-card.one-click-chat-spotlight-v2.see-takeaways.ai-non-final',
39
+ defaultMessage: 'See takeaways',
45
40
  description: 'Button in the spotlight that invokes the same Rovo action as the highlighted inline button.'
46
41
  }
47
42
  });
@@ -253,7 +248,7 @@ export function OneClickChatSpotlight({
253
248
  }, children),
254
249
  content: () => /*#__PURE__*/React.createElement(VisibleSpotlightCard, {
255
250
  onShown: spotlight.onShown,
256
- body: intl.formatMessage(provider === 'google-object-provider' ? messages.drive : messages.github),
251
+ body: intl.formatMessage(messages.body),
257
252
  dismissLabel: intl.formatMessage(messages.dismiss),
258
253
  actionLabel: intl.formatMessage(messages.action),
259
254
  onDismiss: spotlight.onDismiss,
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "46.4.2",
12
+ packageVersion: "46.5.0",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card" || '',
7
- packageVersion: "46.4.2" || ''
7
+ packageVersion: "46.5.0" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -27,15 +27,10 @@ var messages = defineMessages({
27
27
  defaultMessage: 'Explore this link with Rovo',
28
28
  description: 'Accessible name of a spotlight introducing the Rovo action beside a resolved Smart Link.'
29
29
  },
30
- drive: {
31
- id: 'smart-card.one-click-chat-spotlight-v2.drive.ai-non-final',
32
- defaultMessage: 'Discover insights from your Google Drive Smart Link using Rovo',
33
- description: 'Spotlight text explaining that the inline action summarizes the linked Google Drive content.'
34
- },
35
- github: {
36
- id: 'smart-card.one-click-chat-spotlight-v2.github.ai-non-final',
37
- defaultMessage: 'Discover insights from your GitHub Smart Link using Rovo',
38
- description: 'Spotlight text explaining that the inline action explains the linked GitHub code.'
30
+ body: {
31
+ id: 'smart-card.one-click-chat-spotlight-v2.takeaways-body.ai-non-final',
32
+ defaultMessage: 'Get key decisions and next steps from this link',
33
+ description: 'Spotlight body inviting users to get key decisions and next steps from a linked document or code using Rovo.'
39
34
  },
40
35
  dismiss: {
41
36
  id: 'smart-card.one-click-chat-spotlight-v2.dismiss.ai-non-final',
@@ -43,8 +38,8 @@ var messages = defineMessages({
43
38
  description: 'Dismiss button in the Smart Link spotlight. Hides this spotlight for seven days.'
44
39
  },
45
40
  action: {
46
- id: 'smart-card.one-click-chat-spotlight-v2.action.ai-non-final',
47
- defaultMessage: 'Try Now',
41
+ id: 'smart-card.one-click-chat-spotlight-v2.see-takeaways.ai-non-final',
42
+ defaultMessage: 'See takeaways',
48
43
  description: 'Button in the spotlight that invokes the same Rovo action as the highlighted inline button.'
49
44
  }
50
45
  });
@@ -269,7 +264,7 @@ export function OneClickChatSpotlight(_ref3) {
269
264
  content: function content() {
270
265
  return /*#__PURE__*/React.createElement(VisibleSpotlightCard, {
271
266
  onShown: spotlight.onShown,
272
- body: intl.formatMessage(provider === 'google-object-provider' ? messages.drive : messages.github),
267
+ body: intl.formatMessage(messages.body),
273
268
  dismissLabel: intl.formatMessage(messages.dismiss),
274
269
  actionLabel: intl.formatMessage(messages.action),
275
270
  onDismiss: spotlight.onDismiss,
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "46.4.2",
15
+ packageVersion: "46.5.0",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "46.5.0",
3
+ "version": "46.5.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -83,7 +83,7 @@
83
83
  "@atlaskit/primitives": "^22.5.0",
84
84
  "@atlaskit/react-compiler-gating": "^0.2.0",
85
85
  "@atlaskit/react-ufo": "^8.0.0",
86
- "@atlaskit/rovo-triggers": "^11.9.0",
86
+ "@atlaskit/rovo-triggers": "^11.10.0",
87
87
  "@atlaskit/section-message": "^10.2.0",
88
88
  "@atlaskit/select": "^23.1.0",
89
89
  "@atlaskit/spinner": "^20.4.0",
@@ -93,7 +93,7 @@
93
93
  "@atlaskit/textfield": "^10.2.0",
94
94
  "@atlaskit/theme": "^28.2.0",
95
95
  "@atlaskit/tile": "^5.0.0",
96
- "@atlaskit/tmp-editor-statsig": "^223.0.0",
96
+ "@atlaskit/tmp-editor-statsig": "^224.0.0",
97
97
  "@atlaskit/tokens": "^20.3.0",
98
98
  "@atlaskit/tooltip": "^24.4.0",
99
99
  "@atlaskit/ufo": "^2.0.0",