@atlaskit/smart-card 44.3.15 → 44.3.17
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 +13 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +2 -2
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/component.js +2 -2
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 44.3.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 44.3.16
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2427776577054`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2427776577054) -
|
|
14
|
+
Update smartLink seen event to only fire on an unauthorized status
|
|
15
|
+
|
|
3
16
|
## 44.3.15
|
|
4
17
|
|
|
5
18
|
### 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
|
+
packageVersion: "44.3.16"
|
|
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 (
|
|
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 (
|
|
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.
|
|
25
|
+
packageVersion: "44.3.16",
|
|
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.
|
|
5
|
+
packageVersion: "44.3.16"
|
|
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 (
|
|
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 (
|
|
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.
|
|
15
|
+
packageVersion: "44.3.16",
|
|
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.
|
|
7
|
+
packageVersion: "44.3.16"
|
|
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 (
|
|
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 (
|
|
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.
|
|
18
|
+
packageVersion: "44.3.16",
|
|
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.
|
|
3
|
+
"version": "44.3.17",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@atlaskit/popup": "^4.17.0",
|
|
76
76
|
"@atlaskit/primitives": "^19.0.0",
|
|
77
77
|
"@atlaskit/react-ufo": "^5.16.0",
|
|
78
|
-
"@atlaskit/rovo-triggers": "^5.
|
|
78
|
+
"@atlaskit/rovo-triggers": "^5.45.0",
|
|
79
79
|
"@atlaskit/section-message": "^8.12.0",
|
|
80
80
|
"@atlaskit/select": "^21.10.0",
|
|
81
81
|
"@atlaskit/spinner": "^19.1.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/textfield": "^8.3.0",
|
|
85
85
|
"@atlaskit/theme": "^23.2.0",
|
|
86
86
|
"@atlaskit/tile": "^1.0.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^71.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^13.0.0",
|
|
89
89
|
"@atlaskit/tooltip": "^21.2.0",
|
|
90
90
|
"@atlaskit/ufo": "^0.4.0",
|