@atlaskit/smart-card 32.1.0 → 32.1.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,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 32.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#170976](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170976)
8
+ [`dd792fd8a84f0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dd792fd8a84f0) -
9
+ Fix analytics naming for smartLinkIframe focused
10
+
3
11
  ## 32.1.0
4
12
 
5
13
  ### Minor Changes
@@ -290,7 +290,7 @@ events:
290
290
  required: true
291
291
  type: number
292
292
  description: Percentage element was visible at end of dwell
293
- - smartLinkIframe focus:
293
+ - smartLinkIframe focused:
294
294
  type: ui
295
295
  description: fires when a user clicks or tabs into a Smart Link's iframe.
296
296
  attributes:
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  *
12
12
  * Generates Typescript types for analytics events from analytics.spec.yaml
13
13
  *
14
- * @codegen <<SignedSource::0d08fdca953a1eb1130683499e509165>>
14
+ * @codegen <<SignedSource::eb8cd1263459fb798341024dc0c461ea>>
15
15
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
16
16
  */
17
17
 
@@ -14,7 +14,7 @@ var _createEventPayload = _interopRequireDefault(require("./create-event-payload
14
14
  *
15
15
  * Generates Typescript types for analytics events from analytics.spec.yaml
16
16
  *
17
- * @codegen <<SignedSource::3fdfbbdbdb062babb9a2ab4e53454d79>>
17
+ * @codegen <<SignedSource::1f3587129789e7883af37adad3817cd2>>
18
18
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
19
19
  */
20
20
 
@@ -17,7 +17,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
17
17
  var context = exports.context = {
18
18
  componentName: 'smart-cards',
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "32.1.0"
20
+ packageVersion: "32.1.1"
21
21
  };
22
22
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
23
23
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -167,7 +167,7 @@ function Component(_ref) {
167
167
  });
168
168
  }, [id, appearance, definitionId, isFlexibleUi, fireEvent]);
169
169
  var onIframeFocus = (0, _react.useCallback)(function () {
170
- fireEvent('ui.smartLinkIframe.focus', {
170
+ fireEvent('ui.smartLinkIframe.focused', {
171
171
  id: id,
172
172
  definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
173
173
  display: isFlexibleUi ? 'flexible' : appearance
@@ -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: "32.1.0",
20
+ packageVersion: "32.1.1",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.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::0d08fdca953a1eb1130683499e509165>>
6
+ * @codegen <<SignedSource::eb8cd1263459fb798341024dc0c461ea>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
 
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::3fdfbbdbdb062babb9a2ab4e53454d79>>
6
+ * @codegen <<SignedSource::1f3587129789e7883af37adad3817cd2>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  import { useCallback } from 'react';
@@ -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: "32.1.0"
7
+ packageVersion: "32.1.1"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -155,7 +155,7 @@ function Component({
155
155
  });
156
156
  }, [id, appearance, definitionId, isFlexibleUi, fireEvent]);
157
157
  const onIframeFocus = useCallback(() => {
158
- fireEvent('ui.smartLinkIframe.focus', {
158
+ fireEvent('ui.smartLinkIframe.focused', {
159
159
  id,
160
160
  definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
161
161
  display: isFlexibleUi ? 'flexible' : appearance
@@ -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: "32.1.0",
10
+ packageVersion: "32.1.1",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -4,7 +4,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  *
5
5
  * Generates Typescript types for analytics events from analytics.spec.yaml
6
6
  *
7
- * @codegen <<SignedSource::0d08fdca953a1eb1130683499e509165>>
7
+ * @codegen <<SignedSource::eb8cd1263459fb798341024dc0c461ea>>
8
8
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
9
9
  */
10
10
 
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::3fdfbbdbdb062babb9a2ab4e53454d79>>
6
+ * @codegen <<SignedSource::1f3587129789e7883af37adad3817cd2>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  import { useCallback } from 'react';
@@ -10,7 +10,7 @@ export var ANALYTICS_CHANNEL = 'media';
10
10
  export var context = {
11
11
  componentName: 'smart-cards',
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "32.1.0"
13
+ packageVersion: "32.1.1"
14
14
  };
15
15
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
16
16
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -157,7 +157,7 @@ function Component(_ref) {
157
157
  });
158
158
  }, [id, appearance, definitionId, isFlexibleUi, fireEvent]);
159
159
  var onIframeFocus = useCallback(function () {
160
- fireEvent('ui.smartLinkIframe.focus', {
160
+ fireEvent('ui.smartLinkIframe.focused', {
161
161
  id: id,
162
162
  definitionId: definitionId !== null && definitionId !== void 0 ? definitionId : null,
163
163
  display: isFlexibleUi ? 'flexible' : appearance
@@ -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: "32.1.0",
13
+ packageVersion: "32.1.1",
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::b25cecd58c98d2c650c7c6c94fdf3c0c>>
6
+ * @codegen <<SignedSource::6a2a0a5715993e0dd235d38d95d6bbcc>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  export type PackageMetaDataContextType = {
@@ -71,7 +71,7 @@ export type SmartLinkIframeDwelledAttributesType = {
71
71
  dwellTime: number;
72
72
  dwellPercentVisible: number;
73
73
  };
74
- export type SmartLinkIframeFocusAttributesType = {
74
+ export type SmartLinkIframeFocusedAttributesType = {
75
75
  id: string;
76
76
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
77
77
  definitionId: string | null;
@@ -138,7 +138,7 @@ export type AnalyticsEventAttributes = {
138
138
  'ui.smartLinkIframe.dwelled': SmartLinkIframeDwelledAttributesType;
139
139
  /**
140
140
  * fires when a user clicks or tabs into a Smart Link's iframe. */
141
- 'ui.smartLinkIframe.focus': SmartLinkIframeFocusAttributesType;
141
+ 'ui.smartLinkIframe.focused': SmartLinkIframeFocusedAttributesType;
142
142
  /**
143
143
  * user connecting their account to view a Smart Link. */
144
144
  'track.applicationAccount.connected': ApplicationAccountConnectedAttributesType;
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::0d08fdca953a1eb1130683499e509165>>
6
+ * @codegen <<SignedSource::eb8cd1263459fb798341024dc0c461ea>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
- import { type AnalyticsEventAttributes, type EventKey } from './analytics.types';
9
+ import type { AnalyticsEventAttributes, EventKey } from './analytics.types';
10
10
  type OptionalIfUndefined<T> = undefined extends T ? [param?: T] : [param: T];
11
11
  export type EventPayloadAttributes<K extends EventKey> = OptionalIfUndefined<AnalyticsEventAttributes[K]>;
12
12
  type EventTypes = 'ui' | 'track' | 'operational' | 'screen';
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::b25cecd58c98d2c650c7c6c94fdf3c0c>>
6
+ * @codegen <<SignedSource::6a2a0a5715993e0dd235d38d95d6bbcc>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
9
  export type PackageMetaDataContextType = {
@@ -71,7 +71,7 @@ export type SmartLinkIframeDwelledAttributesType = {
71
71
  dwellTime: number;
72
72
  dwellPercentVisible: number;
73
73
  };
74
- export type SmartLinkIframeFocusAttributesType = {
74
+ export type SmartLinkIframeFocusedAttributesType = {
75
75
  id: string;
76
76
  display: 'inline' | 'block' | 'embed' | 'embedPreview' | 'flexible' | 'hoverCardPreview';
77
77
  definitionId: string | null;
@@ -138,7 +138,7 @@ export type AnalyticsEventAttributes = {
138
138
  'ui.smartLinkIframe.dwelled': SmartLinkIframeDwelledAttributesType;
139
139
  /**
140
140
  * fires when a user clicks or tabs into a Smart Link's iframe. */
141
- 'ui.smartLinkIframe.focus': SmartLinkIframeFocusAttributesType;
141
+ 'ui.smartLinkIframe.focused': SmartLinkIframeFocusedAttributesType;
142
142
  /**
143
143
  * user connecting their account to view a Smart Link. */
144
144
  'track.applicationAccount.connected': ApplicationAccountConnectedAttributesType;
@@ -3,10 +3,10 @@
3
3
  *
4
4
  * Generates Typescript types for analytics events from analytics.spec.yaml
5
5
  *
6
- * @codegen <<SignedSource::0d08fdca953a1eb1130683499e509165>>
6
+ * @codegen <<SignedSource::eb8cd1263459fb798341024dc0c461ea>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen smart-card
8
8
  */
9
- import { type AnalyticsEventAttributes, type EventKey } from './analytics.types';
9
+ import type { AnalyticsEventAttributes, EventKey } from './analytics.types';
10
10
  type OptionalIfUndefined<T> = undefined extends T ? [
11
11
  param?: T
12
12
  ] : [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "32.1.0",
3
+ "version": "32.1.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/logo": "^14.3.0",
50
50
  "@atlaskit/lozenge": "^11.12.0",
51
51
  "@atlaskit/menu": "^2.13.0",
52
- "@atlaskit/modal-dialog": "^12.17.0",
52
+ "@atlaskit/modal-dialog": "^12.18.0",
53
53
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
54
54
  "@atlaskit/platform-feature-flags": "^0.3.0",
55
55
  "@atlaskit/popup": "^1.29.0",