@atlaskit/smart-card 30.3.1 → 30.3.3

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/analytics.spec.yaml +9 -0
  3. package/dist/cjs/state/actions/index.js +10 -4
  4. package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +1 -0
  5. package/dist/cjs/utils/analytics/analytics.js +5 -1
  6. package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +5 -8
  7. package/dist/cjs/view/EmbedModal/components/link-info/index.js +4 -2
  8. package/dist/cjs/view/LinkUrl/index.js +1 -1
  9. package/dist/es2019/state/actions/index.js +10 -4
  10. package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +1 -0
  11. package/dist/es2019/utils/analytics/analytics.js +5 -1
  12. package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +5 -8
  13. package/dist/es2019/view/EmbedModal/components/link-info/index.js +4 -2
  14. package/dist/es2019/view/LinkUrl/index.js +1 -1
  15. package/dist/esm/state/actions/index.js +10 -4
  16. package/dist/esm/state/analytics/useSmartLinkAnalytics.js +1 -0
  17. package/dist/esm/utils/analytics/analytics.js +5 -1
  18. package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +5 -8
  19. package/dist/esm/view/EmbedModal/components/link-info/index.js +4 -2
  20. package/dist/esm/view/LinkUrl/index.js +1 -1
  21. package/dist/types/common/analytics/generated/analytics.types.d.ts +7 -1
  22. package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +1 -0
  23. package/dist/types/utils/analytics/analytics.d.ts +3 -0
  24. package/dist/types/utils/analytics/types.d.ts +3 -0
  25. package/dist/types-ts4.5/common/analytics/generated/analytics.types.d.ts +7 -1
  26. package/dist/types-ts4.5/state/analytics/useSmartLinkAnalytics.d.ts +1 -0
  27. package/dist/types-ts4.5/utils/analytics/analytics.d.ts +3 -0
  28. package/dist/types-ts4.5/utils/analytics/types.d.ts +3 -0
  29. package/package.json +6 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 30.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167023](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167023)
8
+ [`b3d0e115a562a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b3d0e115a562a) -
9
+ Migrate screen analytics
10
+ - [#167132](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167132)
11
+ [`a43e7708c667f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a43e7708c667f) -
12
+ [ux] Migrate HTML heading tags to Heading AtlasKit component
13
+ - Updated dependencies
14
+
15
+ ## 30.3.2
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 30.3.1
4
22
 
5
23
  ### Patch Changes
@@ -335,3 +335,12 @@ events:
335
335
  required: false
336
336
  description: The reason for the failure
337
337
  type: ['PermissionError', 'ValidationError', 'UnknownError']
338
+ - consentModal viewed:
339
+ type: screen
340
+ description: fires an event which represents the connect account page being opened.
341
+ attributes:
342
+ <<: [*PackageMetaDataContext, *CommonContext]
343
+ definitionId:
344
+ required: false
345
+ type: string
346
+ description: The definitionId of the Smart Link resolver invoked.
@@ -120,10 +120,16 @@ var useSmartCardActions = exports.useSmartCardActions = function useSmartCardAct
120
120
  });
121
121
  }
122
122
  if (services.length > 0) {
123
- analytics.screen.authPopupEvent({
124
- definitionId: definitionId,
125
- extensionKey: extensionKey
126
- });
123
+ if ((0, _platformFeatureFlags.fg)('platform_smart-card-migrate-screen-analytics')) {
124
+ fireEvent('screen.consentModal.viewed', {
125
+ definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
126
+ });
127
+ } else {
128
+ analytics.screen.authPopupEvent({
129
+ definitionId: definitionId,
130
+ extensionKey: extensionKey
131
+ });
132
+ }
127
133
  (0, _outboundAuthFlowClient.auth)(services[0].url).then(function () {
128
134
  if ((0, _platformFeatureFlags.fg)('smart-card-migrate-track-analytics')) {
129
135
  fireEvent('track.applicationAccount.connected', {
@@ -722,6 +722,7 @@ var useSmartLinkAnalytics = exports.useSmartLinkAnalytics = function useSmartLin
722
722
  * @param definitionId The definitionId of the Smart Link resolver invoked.
723
723
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
724
724
  * @returns
725
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
725
726
  */
726
727
  authPopupEvent: function authPopupEvent(_ref19) {
727
728
  var extensionKey = _ref19.extensionKey,
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "30.3.1"
25
+ packageVersion: "30.3.3"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -439,6 +439,10 @@ var uiClosedAuthEvent = exports.uiClosedAuthEvent = function uiClosedAuthEvent(_
439
439
  })
440
440
  };
441
441
  };
442
+
443
+ /**
444
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
445
+ */
442
446
  var screenAuthPopupEvent = exports.screenAuthPopupEvent = function screenAuthPopupEvent(_ref17) {
443
447
  var extensionKey = _ref17.extensionKey,
444
448
  definitionId = _ref17.definitionId,
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _react2 = require("@emotion/react");
11
+ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
11
12
  var _link = _interopRequireDefault(require("@atlaskit/icon/core/migration/link"));
12
13
  var _utils = require("../../../common/utils");
13
14
  var _ExpandedFrame = require("../../components/ExpandedFrame");
@@ -29,6 +30,7 @@ var contentStyles = (0, _react2.css)({
29
30
  display: 'flex',
30
31
  flexDirection: 'column',
31
32
  justifyContent: 'center',
33
+ textAlign: 'center',
32
34
  alignItems: 'center',
33
35
  margin: 'auto',
34
36
  padding: "var(--ds-space-200, 16px)",
@@ -46,11 +48,6 @@ var imageStyles = (0, _react2.css)({
46
48
  objectFit: 'contain',
47
49
  objectPosition: 'center center'
48
50
  });
49
- var titleStyles = (0, _react2.css)({
50
- textAlign: 'center',
51
- margin: 0,
52
- padding: 0
53
- });
54
51
  var UnresolvedView = function UnresolvedView(_ref) {
55
52
  var button = _ref.button,
56
53
  description = _ref.description,
@@ -120,9 +117,9 @@ var UnresolvedView = function UnresolvedView(_ref) {
120
117
  "data-testid": "".concat(testId, "-unresolved-container")
121
118
  }, (0, _react2.jsx)("div", {
122
119
  css: contentStyles
123
- }, image, (0, _react2.jsx)("h2", {
124
- css: titleStyles,
125
- "data-testid": "".concat(testId, "-unresolved-title")
120
+ }, image, (0, _react2.jsx)(_heading.default, {
121
+ size: "large",
122
+ testId: "".concat(testId, "-unresolved-title")
126
123
  }, title), (0, _react2.jsx)("span", {
127
124
  css: descriptionStyles,
128
125
  "data-testid": "".concat(testId, "-unresolved-description")
@@ -9,6 +9,7 @@ exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _react2 = require("@emotion/react");
11
11
  var _reactIntlNext = require("react-intl-next");
12
+ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
12
13
  var _download = _interopRequireDefault(require("@atlaskit/icon/core/download"));
13
14
  var _fullscreenExit = _interopRequireDefault(require("@atlaskit/icon/core/fullscreen-exit"));
14
15
  var _closeCross = _interopRequireDefault(require("@atlaskit/icon/core/migration/close--cross"));
@@ -108,8 +109,9 @@ var LinkInfo = function LinkInfo(_ref) {
108
109
  "data-testid": "".concat(testId, "-icon")
109
110
  }, (0, _react2.jsx)(_Icon.Icon, icon)), (0, _react2.jsx)("div", {
110
111
  css: _styled.titleCss
111
- }, (0, _react2.jsx)("h3", {
112
- "data-testid": "".concat(testId, "-title")
112
+ }, (0, _react2.jsx)(_heading.default, {
113
+ size: "medium",
114
+ testId: "".concat(testId, "-title")
113
115
  }, title), (0, _react2.jsx)("span", {
114
116
  tabIndex: 0
115
117
  })), (0, _react2.jsx)("div", {
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "30.3.1",
20
+ packageVersion: "30.3.3",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -101,10 +101,16 @@ export const useSmartCardActions = (id, url, analytics) => {
101
101
  });
102
102
  }
103
103
  if (services.length > 0) {
104
- analytics.screen.authPopupEvent({
105
- definitionId,
106
- extensionKey
107
- });
104
+ if (fg('platform_smart-card-migrate-screen-analytics')) {
105
+ fireEvent('screen.consentModal.viewed', {
106
+ definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
107
+ });
108
+ } else {
109
+ analytics.screen.authPopupEvent({
110
+ definitionId,
111
+ extensionKey
112
+ });
113
+ }
108
114
  auth(services[0].url).then(() => {
109
115
  if (fg('smart-card-migrate-track-analytics')) {
110
116
  fireEvent('track.applicationAccount.connected', {
@@ -701,6 +701,7 @@ export const useSmartLinkAnalytics = (url, id, defaultLocation) => {
701
701
  * @param definitionId The definitionId of the Smart Link resolver invoked.
702
702
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
703
703
  * @returns
704
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
704
705
  */
705
706
  authPopupEvent: ({
706
707
  extensionKey,
@@ -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: "30.3.1"
7
+ packageVersion: "30.3.3"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -441,6 +441,10 @@ export const uiClosedAuthEvent = ({
441
441
  display
442
442
  }
443
443
  });
444
+
445
+ /**
446
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
447
+ */
444
448
  export const screenAuthPopupEvent = ({
445
449
  extensionKey,
446
450
  definitionId,
@@ -6,6 +6,7 @@ import React, { useMemo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
+ import Heading from '@atlaskit/heading';
9
10
  import LinkGlyph from '@atlaskit/icon/core/migration/link';
10
11
  import { gs } from '../../../common/utils';
11
12
  import { ExpandedFrame } from '../../components/ExpandedFrame';
@@ -18,6 +19,7 @@ const contentStyles = css({
18
19
  display: 'flex',
19
20
  flexDirection: 'column',
20
21
  justifyContent: 'center',
22
+ textAlign: 'center',
21
23
  alignItems: 'center',
22
24
  margin: 'auto',
23
25
  padding: "var(--ds-space-200, 16px)",
@@ -35,11 +37,6 @@ const imageStyles = css({
35
37
  objectFit: 'contain',
36
38
  objectPosition: 'center center'
37
39
  });
38
- const titleStyles = css({
39
- textAlign: 'center',
40
- margin: 0,
41
- padding: 0
42
- });
43
40
  const UnresolvedView = ({
44
41
  button,
45
42
  description,
@@ -110,9 +107,9 @@ const UnresolvedView = ({
110
107
  "data-testid": `${testId}-unresolved-container`
111
108
  }, jsx("div", {
112
109
  css: contentStyles
113
- }, image, jsx("h2", {
114
- css: titleStyles,
115
- "data-testid": `${testId}-unresolved-title`
110
+ }, image, jsx(Heading, {
111
+ size: "large",
112
+ testId: `${testId}-unresolved-title`
116
113
  }, title), jsx("span", {
117
114
  css: descriptionStyles,
118
115
  "data-testid": `${testId}-unresolved-description`
@@ -7,6 +7,7 @@ import React, { useMemo } from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
  import { FormattedMessage } from 'react-intl-next';
10
+ import Heading from '@atlaskit/heading';
10
11
  import DownloadIcon from '@atlaskit/icon/core/download';
11
12
  import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
12
13
  import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
@@ -99,8 +100,9 @@ const LinkInfo = ({
99
100
  "data-testid": `${testId}-icon`
100
101
  }, jsx(Icon, icon)), jsx("div", {
101
102
  css: titleCss
102
- }, jsx("h3", {
103
- "data-testid": `${testId}-title`
103
+ }, jsx(Heading, {
104
+ size: "medium",
105
+ testId: `${testId}-title`
104
106
  }, title), jsx("span", {
105
107
  tabIndex: 0
106
108
  })), jsx("div", {
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
7
7
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "30.3.1",
10
+ packageVersion: "30.3.3",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -113,10 +113,16 @@ export var useSmartCardActions = function useSmartCardActions(id, url, analytics
113
113
  });
114
114
  }
115
115
  if (services.length > 0) {
116
- analytics.screen.authPopupEvent({
117
- definitionId: definitionId,
118
- extensionKey: extensionKey
119
- });
116
+ if (fg('platform_smart-card-migrate-screen-analytics')) {
117
+ fireEvent('screen.consentModal.viewed', {
118
+ definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null
119
+ });
120
+ } else {
121
+ analytics.screen.authPopupEvent({
122
+ definitionId: definitionId,
123
+ extensionKey: extensionKey
124
+ });
125
+ }
120
126
  auth(services[0].url).then(function () {
121
127
  if (fg('smart-card-migrate-track-analytics')) {
122
128
  fireEvent('track.applicationAccount.connected', {
@@ -715,6 +715,7 @@ export var useSmartLinkAnalytics = function useSmartLinkAnalytics(url, id, defau
715
715
  * @param definitionId The definitionId of the Smart Link resolver invoked.
716
716
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
717
717
  * @returns
718
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
718
719
  */
719
720
  authPopupEvent: function authPopupEvent(_ref19) {
720
721
  var extensionKey = _ref19.extensionKey,
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "30.3.1"
18
+ packageVersion: "30.3.3"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -432,6 +432,10 @@ export var uiClosedAuthEvent = function uiClosedAuthEvent(_ref16) {
432
432
  })
433
433
  };
434
434
  };
435
+
436
+ /**
437
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
438
+ */
435
439
  export var screenAuthPopupEvent = function screenAuthPopupEvent(_ref17) {
436
440
  var extensionKey = _ref17.extensionKey,
437
441
  definitionId = _ref17.definitionId,
@@ -6,6 +6,7 @@ import React, { useMemo } from 'react';
6
6
 
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
+ import Heading from '@atlaskit/heading';
9
10
  import LinkGlyph from '@atlaskit/icon/core/migration/link';
10
11
  import { gs } from '../../../common/utils';
11
12
  import { ExpandedFrame } from '../../components/ExpandedFrame';
@@ -18,6 +19,7 @@ var contentStyles = css({
18
19
  display: 'flex',
19
20
  flexDirection: 'column',
20
21
  justifyContent: 'center',
22
+ textAlign: 'center',
21
23
  alignItems: 'center',
22
24
  margin: 'auto',
23
25
  padding: "var(--ds-space-200, 16px)",
@@ -35,11 +37,6 @@ var imageStyles = css({
35
37
  objectFit: 'contain',
36
38
  objectPosition: 'center center'
37
39
  });
38
- var titleStyles = css({
39
- textAlign: 'center',
40
- margin: 0,
41
- padding: 0
42
- });
43
40
  var UnresolvedView = function UnresolvedView(_ref) {
44
41
  var button = _ref.button,
45
42
  description = _ref.description,
@@ -109,9 +106,9 @@ var UnresolvedView = function UnresolvedView(_ref) {
109
106
  "data-testid": "".concat(testId, "-unresolved-container")
110
107
  }, jsx("div", {
111
108
  css: contentStyles
112
- }, image, jsx("h2", {
113
- css: titleStyles,
114
- "data-testid": "".concat(testId, "-unresolved-title")
109
+ }, image, jsx(Heading, {
110
+ size: "large",
111
+ testId: "".concat(testId, "-unresolved-title")
115
112
  }, title), jsx("span", {
116
113
  css: descriptionStyles,
117
114
  "data-testid": "".concat(testId, "-unresolved-description")
@@ -7,6 +7,7 @@ import React, { useMemo } from 'react';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { jsx } from '@emotion/react';
9
9
  import { FormattedMessage } from 'react-intl-next';
10
+ import Heading from '@atlaskit/heading';
10
11
  import DownloadIcon from '@atlaskit/icon/core/download';
11
12
  import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
12
13
  import CrossIcon from '@atlaskit/icon/core/migration/close--cross';
@@ -97,8 +98,9 @@ var LinkInfo = function LinkInfo(_ref) {
97
98
  "data-testid": "".concat(testId, "-icon")
98
99
  }, jsx(Icon, icon)), jsx("div", {
99
100
  css: titleCss
100
- }, jsx("h3", {
101
- "data-testid": "".concat(testId, "-title")
101
+ }, jsx(Heading, {
102
+ size: "medium",
103
+ testId: "".concat(testId, "-title")
102
104
  }, title), jsx("span", {
103
105
  tabIndex: 0
104
106
  })), jsx("div", {
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
10
10
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "30.3.1",
13
+ packageVersion: "30.3.3",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::82b30bbee0df694864fcd2e2b938bffa>>
6
+ * @codegen <<SignedSource::b25cecd58c98d2c650c7c6c94fdf3c0c>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  export type PackageMetaDataContextType = {
@@ -90,6 +90,9 @@ export type SmartLinkQuickActionFailedAttributesType = {
90
90
  smartLinkActionType: 'FollowEntityAction' | 'GetStatusTransitionsAction' | 'StatusUpdateAction' | 'UnfollowEntityAction' | 'StatusUpdate';
91
91
  reason: 'PermissionError' | 'ValidationError' | 'UnknownError' | null;
92
92
  };
93
+ export type ConsentModalViewedAttributesType = {
94
+ definitionId: string | null;
95
+ };
93
96
  export type AnalyticsEventAttributes = {
94
97
  /**
95
98
  * fired when an ai summary is clicked */
@@ -151,5 +154,8 @@ export type AnalyticsEventAttributes = {
151
154
  /**
152
155
  * fires a tracking event after an action invoke api call has failed */
153
156
  'track.smartLinkQuickAction.failed': SmartLinkQuickActionFailedAttributesType;
157
+ /**
158
+ * fires an event which represents the connect account page being opened. */
159
+ 'screen.consentModal.viewed': ConsentModalViewedAttributesType;
154
160
  };
155
161
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -247,6 +247,7 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
247
247
  * @param definitionId The definitionId of the Smart Link resolver invoked.
248
248
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
249
249
  * @returns
250
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
250
251
  */
251
252
  authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
252
253
  /**
@@ -64,6 +64,9 @@ export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey,
64
64
  export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
65
65
  export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
66
66
  export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
67
+ /**
68
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
69
+ */
67
70
  export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
68
71
  export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => AnalyticsPayload;
69
72
  export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
@@ -66,6 +66,9 @@ export type UiActionClickedEventProps = CommonEventProps & {
66
66
  export type UiServerActionClickedEventProps = CommonEventProps & {
67
67
  smartLinkActionType: SmartLinkActionType;
68
68
  };
69
+ /**
70
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
71
+ */
69
72
  export type ScreenAuthPopupEventProps = CommonEventProps;
70
73
  export type UiClosedAuthEventProps = CommonEventProps & {
71
74
  display: CardInnerAppearance;
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::82b30bbee0df694864fcd2e2b938bffa>>
6
+ * @codegen <<SignedSource::b25cecd58c98d2c650c7c6c94fdf3c0c>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  export type PackageMetaDataContextType = {
@@ -90,6 +90,9 @@ export type SmartLinkQuickActionFailedAttributesType = {
90
90
  smartLinkActionType: 'FollowEntityAction' | 'GetStatusTransitionsAction' | 'StatusUpdateAction' | 'UnfollowEntityAction' | 'StatusUpdate';
91
91
  reason: 'PermissionError' | 'ValidationError' | 'UnknownError' | null;
92
92
  };
93
+ export type ConsentModalViewedAttributesType = {
94
+ definitionId: string | null;
95
+ };
93
96
  export type AnalyticsEventAttributes = {
94
97
  /**
95
98
  * fired when an ai summary is clicked */
@@ -151,5 +154,8 @@ export type AnalyticsEventAttributes = {
151
154
  /**
152
155
  * fires a tracking event after an action invoke api call has failed */
153
156
  'track.smartLinkQuickAction.failed': SmartLinkQuickActionFailedAttributesType;
157
+ /**
158
+ * fires an event which represents the connect account page being opened. */
159
+ 'screen.consentModal.viewed': ConsentModalViewedAttributesType;
154
160
  };
155
161
  export type EventKey = keyof AnalyticsEventAttributes;
@@ -247,6 +247,7 @@ export declare const useSmartLinkAnalytics: (url: string, id?: string, defaultLo
247
247
  * @param definitionId The definitionId of the Smart Link resolver invoked.
248
248
  * @param extensionKey The extensionKey of the Smart Link resovler invoked.
249
249
  * @returns
250
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
250
251
  */
251
252
  authPopupEvent: ({ extensionKey, definitionId, resourceType, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => void;
252
253
  /**
@@ -64,6 +64,9 @@ export declare const uiAuthAlternateAccountEvent: ({ definitionId, extensionKey,
64
64
  export declare const uiCardClickedEvent: ({ id, display, status, definitionId, extensionKey, isModifierKeyPressed, location, destinationProduct, destinationSubproduct, actionSubjectId, }: UiCardClickedEventProps) => AnalyticsPayload;
65
65
  export declare const uiActionClickedEvent: ({ id, actionType, extensionKey, display, definitionId, destinationProduct, destinationSubproduct, location, }: UiActionClickedEventProps) => AnalyticsPayload;
66
66
  export declare const uiClosedAuthEvent: ({ display, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiClosedAuthEventProps) => AnalyticsPayload;
67
+ /**
68
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
69
+ */
67
70
  export declare const screenAuthPopupEvent: ({ extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: ScreenAuthPopupEventProps) => AnalyticsPayload;
68
71
  export declare const uiRenderSuccessEvent: ({ display, status, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, canBeDatasource, }: UiRenderSuccessEventProps) => AnalyticsPayload;
69
72
  export declare const uiRenderFailedEvent: ({ display, error, errorInfo, extensionKey, definitionId, destinationProduct, destinationSubproduct, location, }: UiRenderFailedEventProps) => AnalyticsPayload;
@@ -66,6 +66,9 @@ export type UiActionClickedEventProps = CommonEventProps & {
66
66
  export type UiServerActionClickedEventProps = CommonEventProps & {
67
67
  smartLinkActionType: SmartLinkActionType;
68
68
  };
69
+ /**
70
+ * @deprecated remove when platform_smart-card-migrate-screen-analytics is cleaned up
71
+ */
69
72
  export type ScreenAuthPopupEventProps = CommonEventProps;
70
73
  export type UiClosedAuthEventProps = CommonEventProps & {
71
74
  display: CardInnerAppearance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "30.3.1",
3
+ "version": "30.3.3",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,11 +36,11 @@
36
36
  "@atlaskit/form": "^10.5.0",
37
37
  "@atlaskit/frontend-utilities": "^2.7.0",
38
38
  "@atlaskit/heading": "^3.1.0",
39
- "@atlaskit/icon": "^22.24.0",
39
+ "@atlaskit/icon": "^22.25.0",
40
40
  "@atlaskit/icon-file-type": "^6.7.0",
41
41
  "@atlaskit/icon-object": "^6.7.0",
42
42
  "@atlaskit/icon-priority": "^6.3.0",
43
- "@atlaskit/legacy-custom-icons": "^0.16.0",
43
+ "@atlaskit/legacy-custom-icons": "^0.17.0",
44
44
  "@atlaskit/link-analytics": "^8.5.0",
45
45
  "@atlaskit/link-client-extension": "^2.4.0",
46
46
  "@atlaskit/link-extractors": "^1.9.0",
@@ -177,6 +177,9 @@
177
177
  },
178
178
  "smart-card-migrate-track-analytics": {
179
179
  "type": "boolean"
180
+ },
181
+ "platform_smart-card-migrate-screen-analytics": {
182
+ "type": "boolean"
180
183
  }
181
184
  }
182
185
  }