@atlaskit/smart-card 23.6.4 → 23.6.5

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,11 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 23.6.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0540b6c16a4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0540b6c16a4) - Hover Preview: Update action experiment analytics
8
+
3
9
  ## 23.6.4
4
10
 
5
11
  ### Patch Changes
@@ -55,6 +55,7 @@ function useSmartLinkActions(_ref) {
55
55
  if (enableActionableElement && opts.type === 'client' && opts.isReloadRequired && ((_opts$action = opts.action) === null || _opts$action === void 0 ? void 0 : _opts$action.type) === 'PreviewAction') {
56
56
  // Reload when embed preview modal close
57
57
  var promise = opts.action.promise;
58
+ opts.action.type = 'StatusAction';
58
59
 
59
60
  opts.action.promise = function () {
60
61
  return promise({
@@ -32,7 +32,8 @@ exports.context = context;
32
32
  var uiActionSubjectIds = {
33
33
  DownloadAction: 'downloadDocument',
34
34
  PreviewAction: 'invokePreviewScreen',
35
- ViewAction: 'shortcutGoToLink'
35
+ ViewAction: 'shortcutGoToLink',
36
+ StatusAction: 'issueStatusUpdate'
36
37
  };
37
38
 
38
39
  var SmartLinkEvents = /*#__PURE__*/function () {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.4",
3
+ "version": "23.6.5",
4
4
  "sideEffects": false
5
5
  }
@@ -29,6 +29,7 @@ export function useSmartLinkActions({
29
29
  const {
30
30
  promise
31
31
  } = opts.action;
32
+ opts.action.type = 'StatusAction';
32
33
 
33
34
  opts.action.promise = () => promise({
34
35
  onClose: reload
@@ -9,7 +9,8 @@ export const context = {
9
9
  const uiActionSubjectIds = {
10
10
  DownloadAction: 'downloadDocument',
11
11
  PreviewAction: 'invokePreviewScreen',
12
- ViewAction: 'shortcutGoToLink'
12
+ ViewAction: 'shortcutGoToLink',
13
+ StatusAction: 'issueStatusUpdate'
13
14
  };
14
15
  export class SmartLinkEvents {
15
16
  insertSmartLink(url, type, createAnalyticsEvent) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.4",
3
+ "version": "23.6.5",
4
4
  "sideEffects": false
5
5
  }
@@ -37,6 +37,7 @@ export function useSmartLinkActions(_ref) {
37
37
  if (enableActionableElement && opts.type === 'client' && opts.isReloadRequired && ((_opts$action = opts.action) === null || _opts$action === void 0 ? void 0 : _opts$action.type) === 'PreviewAction') {
38
38
  // Reload when embed preview modal close
39
39
  var promise = opts.action.promise;
40
+ opts.action.type = 'StatusAction';
40
41
 
41
42
  opts.action.promise = function () {
42
43
  return promise({
@@ -17,7 +17,8 @@ export var context = {
17
17
  var uiActionSubjectIds = {
18
18
  DownloadAction: 'downloadDocument',
19
19
  PreviewAction: 'invokePreviewScreen',
20
- ViewAction: 'shortcutGoToLink'
20
+ ViewAction: 'shortcutGoToLink',
21
+ StatusAction: 'issueStatusUpdate'
21
22
  };
22
23
  export var SmartLinkEvents = /*#__PURE__*/function () {
23
24
  function SmartLinkEvents() {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.4",
3
+ "version": "23.6.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "23.6.4",
3
+ "version": "23.6.5",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"