@atlaskit/smart-card 45.0.1 → 45.0.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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedModal/index.js +2 -3
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedModal/index.js +2 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedModal/index.js +2 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3c78f7149e895`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c78f7149e895) -
|
|
8
|
+
Clean up experiment `cc_integrations_editor_open_link_click_analytics`.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 45.0.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 45.0.1
|
|
4
18
|
|
|
5
19
|
### 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: "45.0.
|
|
14
|
+
packageVersion: "45.0.2" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
13
|
var _tokens = require("@atlaskit/tokens");
|
|
15
14
|
var _constants = require("../../constants");
|
|
16
15
|
var _useInvokeClientAction = _interopRequireDefault(require("../../state/hooks/use-invoke-client-action"));
|
|
@@ -94,7 +93,7 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
94
93
|
}
|
|
95
94
|
if (invokeViewAction) {
|
|
96
95
|
var visitedDisplay = invokeViewAction.display && invokeViewAction.display !== 'url' ? invokeViewAction.display : null;
|
|
97
|
-
if (visitedDisplay
|
|
96
|
+
if (visitedDisplay) {
|
|
98
97
|
var _invokeViewAction$id, _invokeViewAction$def;
|
|
99
98
|
fireEvent === null || fireEvent === void 0 || fireEvent('track.smartLink.visited', {
|
|
100
99
|
id: (_invokeViewAction$id = invokeViewAction.id) !== null && _invokeViewAction$id !== void 0 ? _invokeViewAction$id : iframeName,
|
|
@@ -110,7 +109,7 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
110
109
|
if (invokeViewAction) {
|
|
111
110
|
invoke(invokeViewAction);
|
|
112
111
|
var visitedDisplay = invokeViewAction.display && invokeViewAction.display !== 'url' ? invokeViewAction.display : null;
|
|
113
|
-
if (visitedDisplay
|
|
112
|
+
if (visitedDisplay) {
|
|
114
113
|
var _invokeViewAction$id2, _invokeViewAction$def2;
|
|
115
114
|
fireEvent === null || fireEvent === void 0 || fireEvent('track.smartLink.visited', {
|
|
116
115
|
id: (_invokeViewAction$id2 = invokeViewAction.id) !== null && _invokeViewAction$id2 !== void 0 ? _invokeViewAction$id2 : iframeName,
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "45.0.
|
|
22
|
+
packageVersion: "45.0.2",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -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: "45.0.
|
|
5
|
+
packageVersion: "45.0.2" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useRef, useState } from 'react';
|
|
3
3
|
import ModalDialog, { ModalBody, ModalTransition } from '@atlaskit/modal-dialog';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
6
5
|
import { SmartLinkSize } from '../../constants';
|
|
7
6
|
import useInvokeClientAction from '../../state/hooks/use-invoke-client-action';
|
|
@@ -70,7 +69,7 @@ const EmbedModal = ({
|
|
|
70
69
|
}
|
|
71
70
|
if (invokeViewAction) {
|
|
72
71
|
const visitedDisplay = invokeViewAction.display && invokeViewAction.display !== 'url' ? invokeViewAction.display : null;
|
|
73
|
-
if (visitedDisplay
|
|
72
|
+
if (visitedDisplay) {
|
|
74
73
|
var _invokeViewAction$id, _invokeViewAction$def;
|
|
75
74
|
fireEvent === null || fireEvent === void 0 ? void 0 : fireEvent('track.smartLink.visited', {
|
|
76
75
|
id: (_invokeViewAction$id = invokeViewAction.id) !== null && _invokeViewAction$id !== void 0 ? _invokeViewAction$id : iframeName,
|
|
@@ -86,7 +85,7 @@ const EmbedModal = ({
|
|
|
86
85
|
if (invokeViewAction) {
|
|
87
86
|
invoke(invokeViewAction);
|
|
88
87
|
const visitedDisplay = invokeViewAction.display && invokeViewAction.display !== 'url' ? invokeViewAction.display : null;
|
|
89
|
-
if (visitedDisplay
|
|
88
|
+
if (visitedDisplay) {
|
|
90
89
|
var _invokeViewAction$id2, _invokeViewAction$def2;
|
|
91
90
|
fireEvent === null || fireEvent === void 0 ? void 0 : fireEvent('track.smartLink.visited', {
|
|
92
91
|
id: (_invokeViewAction$id2 = invokeViewAction.id) !== null && _invokeViewAction$id2 !== void 0 ? _invokeViewAction$id2 : iframeName,
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "45.0.
|
|
12
|
+
packageVersion: "45.0.2",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -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: "45.0.
|
|
7
|
+
packageVersion: "45.0.2" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useCallback, useRef, useState } from 'react';
|
|
4
4
|
import ModalDialog, { ModalBody, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
7
6
|
import { SmartLinkSize } from '../../constants';
|
|
8
7
|
import useInvokeClientAction from '../../state/hooks/use-invoke-client-action';
|
|
@@ -85,7 +84,7 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
85
84
|
}
|
|
86
85
|
if (invokeViewAction) {
|
|
87
86
|
var visitedDisplay = invokeViewAction.display && invokeViewAction.display !== 'url' ? invokeViewAction.display : null;
|
|
88
|
-
if (visitedDisplay
|
|
87
|
+
if (visitedDisplay) {
|
|
89
88
|
var _invokeViewAction$id, _invokeViewAction$def;
|
|
90
89
|
fireEvent === null || fireEvent === void 0 || fireEvent('track.smartLink.visited', {
|
|
91
90
|
id: (_invokeViewAction$id = invokeViewAction.id) !== null && _invokeViewAction$id !== void 0 ? _invokeViewAction$id : iframeName,
|
|
@@ -101,7 +100,7 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
101
100
|
if (invokeViewAction) {
|
|
102
101
|
invoke(invokeViewAction);
|
|
103
102
|
var visitedDisplay = invokeViewAction.display && invokeViewAction.display !== 'url' ? invokeViewAction.display : null;
|
|
104
|
-
if (visitedDisplay
|
|
103
|
+
if (visitedDisplay) {
|
|
105
104
|
var _invokeViewAction$id2, _invokeViewAction$def2;
|
|
106
105
|
fireEvent === null || fireEvent === void 0 || fireEvent('track.smartLink.visited', {
|
|
107
106
|
id: (_invokeViewAction$id2 = invokeViewAction.id) !== null && _invokeViewAction$id2 !== void 0 ? _invokeViewAction$id2 : iframeName,
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "45.0.
|
|
15
|
+
packageVersion: "45.0.2",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.0.
|
|
3
|
+
"version": "45.0.3",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"@atlaskit/platform-feature-flags-react": "^1.0.0",
|
|
78
78
|
"@atlaskit/popup": "^5.0.0",
|
|
79
79
|
"@atlaskit/primitives": "^20.0.0",
|
|
80
|
-
"@atlaskit/react-ufo": "^7.
|
|
81
|
-
"@atlaskit/rovo-triggers": "^
|
|
80
|
+
"@atlaskit/react-ufo": "^7.1.0",
|
|
81
|
+
"@atlaskit/rovo-triggers": "^9.0.0",
|
|
82
82
|
"@atlaskit/section-message": "^9.0.0",
|
|
83
83
|
"@atlaskit/select": "^22.0.0",
|
|
84
84
|
"@atlaskit/spinner": "^20.0.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@atlaskit/textfield": "^9.0.0",
|
|
88
88
|
"@atlaskit/theme": "^26.0.0",
|
|
89
89
|
"@atlaskit/tile": "^2.0.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^106.0.0",
|
|
91
91
|
"@atlaskit/tokens": "^14.0.0",
|
|
92
92
|
"@atlaskit/tooltip": "^23.0.0",
|
|
93
93
|
"@atlaskit/ufo": "^1.0.0",
|