@atlaskit/smart-card 23.6.0 → 23.6.2

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,17 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 23.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ac756b23886`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac756b23886) - Added tooltip for open link in new tab button in hover card
8
+
9
+ ## 23.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`55429f504d6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/55429f504d6) - [ux] Change the 'Preview' button text to 'Full screen view' with a matching icon
14
+
3
15
  ## 23.6.0
4
16
 
5
17
  ### Minor Changes
@@ -183,9 +183,14 @@ var messages = (0, _reactIntlNext.defineMessages)({
183
183
  defaultMessage: "Uh oh. We can't find this link!",
184
184
  description: 'Error case for when a provided link is not found'
185
185
  },
186
+ open_link_in_a_new_tab: {
187
+ id: 'fabric.linking.open_link_in_a_new_tab',
188
+ defaultMessage: 'Open link in a new tab',
189
+ description: 'Click to open link in a new tab'
190
+ },
186
191
  preview: {
187
192
  id: 'fabric.linking.preview',
188
- defaultMessage: 'Preview',
193
+ defaultMessage: 'Full screen view',
189
194
  description: 'Click to view a richer view of your content, without needing to navigate to it.'
190
195
  },
191
196
  preview_close: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.0",
3
+ "version": "23.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -80,7 +80,7 @@ var actionMappings = (_actionMappings = {}, (0, _defineProperty2.default)(_actio
80
80
  testId: 'smart-action-preview-action',
81
81
  content: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview),
82
82
  icon: /*#__PURE__*/_react.default.createElement(_vidFullScreenOn.default, {
83
- label: "Preview"
83
+ label: "Full screen view"
84
84
  }),
85
85
  tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.preview)
86
86
  }
@@ -33,6 +33,10 @@ var _unauthorised = _interopRequireDefault(require("./views/unauthorised"));
33
33
 
34
34
  var _resolved = _interopRequireDefault(require("./views/resolved"));
35
35
 
36
+ var _reactIntlNext = require("react-intl-next");
37
+
38
+ var _messages = require("../../../messages");
39
+
36
40
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
41
 
38
42
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -55,6 +59,7 @@ var getOpenAction = function getOpenAction(url, analytics, onActionClick) {
55
59
  previewDisplay: 'card'
56
60
  });
57
61
  },
62
+ tooltipMessage: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _messages.messages.open_link_in_a_new_tab),
58
63
  testId: 'hover-card-open-button'
59
64
  };
60
65
  };
@@ -175,9 +175,14 @@ export const messages = defineMessages({
175
175
  defaultMessage: "Uh oh. We can't find this link!",
176
176
  description: 'Error case for when a provided link is not found'
177
177
  },
178
+ open_link_in_a_new_tab: {
179
+ id: 'fabric.linking.open_link_in_a_new_tab',
180
+ defaultMessage: 'Open link in a new tab',
181
+ description: 'Click to open link in a new tab'
182
+ },
178
183
  preview: {
179
184
  id: 'fabric.linking.preview',
180
- defaultMessage: 'Preview',
185
+ defaultMessage: 'Full screen view',
181
186
  description: 'Click to view a richer view of your content, without needing to navigate to it.'
182
187
  },
183
188
  preview_close: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.0",
3
+ "version": "23.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -46,7 +46,7 @@ const actionMappings = {
46
46
  testId: 'smart-action-preview-action',
47
47
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview),
48
48
  icon: /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
49
- label: "Preview"
49
+ label: "Full screen view"
50
50
  }),
51
51
  tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview)
52
52
  }
@@ -10,6 +10,8 @@ import { getSimulatedMetadata, SMART_CARD_ANALYTICS_DISPLAY } from '../utils';
10
10
  import HoverCardLoadingView from './views/resolving';
11
11
  import HoverCardUnauthorisedView from './views/unauthorised';
12
12
  import HoverCardResolvedView from './views/resolved';
13
+ import { FormattedMessage } from 'react-intl-next';
14
+ import { messages } from '../../../messages';
13
15
  export const getOpenAction = (url, analytics, onActionClick) => ({
14
16
  name: ActionName.CustomAction,
15
17
  icon: /*#__PURE__*/React.createElement(ShortcutIcon, {
@@ -27,6 +29,7 @@ export const getOpenAction = (url, analytics, onActionClick) => ({
27
29
  previewDisplay: 'card'
28
30
  });
29
31
  },
32
+ tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.open_link_in_a_new_tab),
30
33
  testId: 'hover-card-open-button'
31
34
  });
32
35
 
@@ -175,9 +175,14 @@ export var messages = defineMessages({
175
175
  defaultMessage: "Uh oh. We can't find this link!",
176
176
  description: 'Error case for when a provided link is not found'
177
177
  },
178
+ open_link_in_a_new_tab: {
179
+ id: 'fabric.linking.open_link_in_a_new_tab',
180
+ defaultMessage: 'Open link in a new tab',
181
+ description: 'Click to open link in a new tab'
182
+ },
178
183
  preview: {
179
184
  id: 'fabric.linking.preview',
180
- defaultMessage: 'Preview',
185
+ defaultMessage: 'Full screen view',
181
186
  description: 'Click to view a richer view of your content, without needing to navigate to it.'
182
187
  },
183
188
  preview_close: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.0",
3
+ "version": "23.6.2",
4
4
  "sideEffects": false
5
5
  }
@@ -50,7 +50,7 @@ var actionMappings = (_actionMappings = {}, _defineProperty(_actionMappings, Act
50
50
  testId: 'smart-action-preview-action',
51
51
  content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview),
52
52
  icon: /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
53
- label: "Preview"
53
+ label: "Full screen view"
54
54
  }),
55
55
  tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview)
56
56
  }
@@ -10,6 +10,8 @@ import { getSimulatedMetadata, SMART_CARD_ANALYTICS_DISPLAY } from '../utils';
10
10
  import HoverCardLoadingView from './views/resolving';
11
11
  import HoverCardUnauthorisedView from './views/unauthorised';
12
12
  import HoverCardResolvedView from './views/resolved';
13
+ import { FormattedMessage } from 'react-intl-next';
14
+ import { messages } from '../../../messages';
13
15
  export var getOpenAction = function getOpenAction(url, analytics, onActionClick) {
14
16
  return {
15
17
  name: ActionName.CustomAction,
@@ -28,6 +30,7 @@ export var getOpenAction = function getOpenAction(url, analytics, onActionClick)
28
30
  previewDisplay: 'card'
29
31
  });
30
32
  },
33
+ tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.open_link_in_a_new_tab),
31
34
  testId: 'hover-card-open-button'
32
35
  };
33
36
  };
@@ -1,6 +1,6 @@
1
1
  import { MessageDescriptor } from 'react-intl-next';
2
2
  export declare type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_description' | 'request_denied_description';
3
- export declare type MessageKey = 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'could_not_load_link' | 'download' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'delete' | 'edit' | 'learn_more_about_smart_links_security' | 'loading' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'preview' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'try_again' | 'try_another_account' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
3
+ export declare type MessageKey = 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'could_not_load_link' | 'download' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'delete' | 'edit' | 'learn_more_about_smart_links_security' | 'loading' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_link_in_a_new_tab' | 'preview' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'try_again' | 'try_another_account' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey;
4
4
  declare type Messages = {
5
5
  [K in MessageKey]: MessageDescriptor;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.0",
3
+ "version": "23.6.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"