@atlaskit/smart-card 44.3.15 → 44.3.16

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,12 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 44.3.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2427776577054`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2427776577054) -
8
+ Update smartLink seen event to only fire on an unauthorized status
9
+
3
10
  ## 44.3.15
4
11
 
5
12
  ### Patch Changes
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card",
14
- packageVersion: "44.3.14"
14
+ packageVersion: "44.3.15"
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -233,7 +233,7 @@ function Component(_ref) {
233
233
  // Fire smartLink seen event once on a successful render card is in the viewport
234
234
  (0, _react.useEffect)(function () {
235
235
  if ((0, _platformFeatureFlags.fg)('platform_sl_event_ui_seen')) {
236
- if (!(0, _helpers.isFinalState)(state.status)) return;
236
+ if (state.status !== 'unauthorized') return;
237
237
  if (isIntersected && !hasFiredSeenRef.current) {
238
238
  fireEvent('ui.smartLink.seen', {
239
239
  display: appearance
@@ -554,7 +554,7 @@ function ComponentUpdated(_ref2) {
554
554
  // Fire smartLink seen event once on a successful render card is in the viewport
555
555
  (0, _react.useEffect)(function () {
556
556
  if ((0, _platformFeatureFlags.fg)('platform_sl_event_ui_seen')) {
557
- if (!(0, _helpers.isFinalState)(state.status)) return;
557
+ if (state.status !== 'unauthorized') return;
558
558
  if (isIntersected && !hasFiredSeenRef.current) {
559
559
  fireEvent('ui.smartLink.seen', {
560
560
  display: appearance
@@ -22,7 +22,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
22
22
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
23
23
  var PACKAGE_DATA = {
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "44.3.14",
25
+ packageVersion: "44.3.15",
26
26
  componentName: 'linkUrl'
27
27
  };
28
28
  var Anchor = (0, _click.withLinkClickedEvent)('a');
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card",
5
- packageVersion: "44.3.14"
5
+ packageVersion: "44.3.15"
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -221,7 +221,7 @@ function Component({
221
221
  // Fire smartLink seen event once on a successful render card is in the viewport
222
222
  useEffect(() => {
223
223
  if (fg('platform_sl_event_ui_seen')) {
224
- if (!isFinalState(state.status)) return;
224
+ if (state.status !== 'unauthorized') return;
225
225
  if (isIntersected && !hasFiredSeenRef.current) {
226
226
  fireEvent('ui.smartLink.seen', {
227
227
  display: appearance
@@ -542,7 +542,7 @@ function ComponentUpdated({
542
542
  // Fire smartLink seen event once on a successful render card is in the viewport
543
543
  useEffect(() => {
544
544
  if (fg('platform_sl_event_ui_seen')) {
545
- if (!isFinalState(state.status)) return;
545
+ if (state.status !== 'unauthorized') return;
546
546
  if (isIntersected && !hasFiredSeenRef.current) {
547
547
  fireEvent('ui.smartLink.seen', {
548
548
  display: appearance
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  const PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "44.3.14",
15
+ packageVersion: "44.3.15",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  const Anchor = withLinkClickedEvent('a');
@@ -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: "44.3.14"
7
+ packageVersion: "44.3.15"
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -224,7 +224,7 @@ function Component(_ref) {
224
224
  // Fire smartLink seen event once on a successful render card is in the viewport
225
225
  useEffect(function () {
226
226
  if (fg('platform_sl_event_ui_seen')) {
227
- if (!isFinalState(state.status)) return;
227
+ if (state.status !== 'unauthorized') return;
228
228
  if (isIntersected && !hasFiredSeenRef.current) {
229
229
  fireEvent('ui.smartLink.seen', {
230
230
  display: appearance
@@ -545,7 +545,7 @@ function ComponentUpdated(_ref2) {
545
545
  // Fire smartLink seen event once on a successful render card is in the viewport
546
546
  useEffect(function () {
547
547
  if (fg('platform_sl_event_ui_seen')) {
548
- if (!isFinalState(state.status)) return;
548
+ if (state.status !== 'unauthorized') return;
549
549
  if (isIntersected && !hasFiredSeenRef.current) {
550
550
  fireEvent('ui.smartLink.seen', {
551
551
  display: appearance
@@ -15,7 +15,7 @@ import LinkWarningModal from './LinkWarningModal';
15
15
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
16
16
  var PACKAGE_DATA = {
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "44.3.14",
18
+ packageVersion: "44.3.15",
19
19
  componentName: 'linkUrl'
20
20
  };
21
21
  var Anchor = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "44.3.15",
3
+ "version": "44.3.16",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"