@atlaskit/smart-card 46.14.0 → 46.14.2
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 +15 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/common/one-click-chat-spotlight/index.compiled.css +1 -4
- package/dist/cjs/view/InlineCard/common/one-click-chat-spotlight/index.js +6 -7
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/common/one-click-chat-spotlight/index.compiled.css +1 -4
- package/dist/es2019/view/InlineCard/common/one-click-chat-spotlight/index.js +6 -7
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/common/one-click-chat-spotlight/index.compiled.css +1 -4
- package/dist/esm/view/InlineCard/common/one-click-chat-spotlight/index.js +6 -7
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-forbidden-view---linking-refresh-only--default.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-forbidden-view-with-design-refresh-ff--default.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-forbidden-view---linking-refresh-only--default.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-forbidden-view-with-design-refresh-ff--default.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-not-found-view-with-design-refresh-ff--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-forbidden-view---linking-refresh-only--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-forbidden-view-with-design-refresh-ff--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-not-found-view---linking-refresh-only--default.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-not-found-view-with-design-refresh-ff--default.png +0 -3
- /package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/{block-card-error-view---linking-refresh-only--default.png → block-card-error-view--default.png} +0 -0
- /package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/{block-card-not-found-view---linking-refresh-only--default.png → block-card-not-found-view--default.png} +0 -0
- /package/dist/{cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view-with-design-refresh-ff--default.png → es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view--default.png} +0 -0
- /package/dist/{cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-not-found-view-with-design-refresh-ff--default.png → es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-not-found-view--default.png} +0 -0
- /package/dist/{es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view---linking-refresh-only--default.png → esm/__tests__/vr-tests/__snapshots__/block-card/block-card-error-view--default.png} +0 -0
- /package/dist/{es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-not-found-view---linking-refresh-only--default.png → esm/__tests__/vr-tests/__snapshots__/block-card/block-card-not-found-view--default.png} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 46.14.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3ff81b8eba204`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3ff81b8eba204) -
|
|
8
|
+
Use a primary button for the One Click Chat spotlight CTA behind
|
|
9
|
+
platform_sl_one_click_chat_spotlight_v2_fg.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 46.14.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 46.14.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
25
25
|
var context = exports.context = {
|
|
26
26
|
componentName: 'smart-cards',
|
|
27
27
|
packageName: "@atlaskit/smart-card" || '',
|
|
28
|
-
packageVersion: "46.
|
|
28
|
+
packageVersion: "46.14.1" || ''
|
|
29
29
|
};
|
|
30
30
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
31
31
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
2
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
3
|
-
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
4
|
-
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
5
|
-
._1dqonqa1{border-style:solid}
|
|
6
|
-
._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}._154iidpf{top:0}
|
|
3
|
+
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}._154iidpf{top:0}
|
|
7
4
|
._154iu2gc{top:var(--ds-space-100,8px)}
|
|
8
5
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
9
6
|
._18m91wug{overflow-y:auto}
|
|
@@ -17,6 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
18
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
19
19
|
var _browserApis = require("@atlaskit/browser-apis");
|
|
20
|
+
var _button = _interopRequireDefault(require("@atlaskit/button/default/button"));
|
|
20
21
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
|
|
21
22
|
var _choreographedContent = require("@atlaskit/link-provider/choreographed-content");
|
|
22
23
|
var _popup = require("@atlaskit/popup/popup");
|
|
@@ -64,8 +65,7 @@ var styles = {
|
|
|
64
65
|
above: "_94n5idpf _t9ec1sub",
|
|
65
66
|
close: "_2rko12b0 _v564k6bl _kqswstnw _154iu2gc _1xi2u2gc _ca0qv77o _n3tdv77o _19bvv77o _u5f3v77o _syaz15cr _bfhk1aqn _irr31ibz _1ggl5xtf _1di6of27",
|
|
66
67
|
content: "_kqswh2mm",
|
|
67
|
-
body: "_u5f31ejb"
|
|
68
|
-
action: "_2rko12b0 _v564k6bl _1h6d8yml _1dqonqa1 _189ee4h9 _syaz15cr _bfhk1aqn _ca0qv77o _n3tdv77o _19bvu2gc _u5f3u2gc _irr31ibz _1ggl5xtf _1di6of27"
|
|
68
|
+
body: "_u5f31ejb"
|
|
69
69
|
};
|
|
70
70
|
var SpotlightOpenContext = /*#__PURE__*/(0, _react.createContext)(false);
|
|
71
71
|
var TargetContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
@@ -189,12 +189,11 @@ function VisibleSpotlightCard(_ref3) {
|
|
|
189
189
|
color: "color.text.inverse"
|
|
190
190
|
}, body)), /*#__PURE__*/_react.default.createElement(_inline.Inline, {
|
|
191
191
|
alignInline: "end"
|
|
192
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
193
|
-
|
|
192
|
+
}, /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
193
|
+
appearance: "primary",
|
|
194
|
+
spacing: "compact",
|
|
194
195
|
onClick: onAction
|
|
195
|
-
},
|
|
196
|
-
color: "color.text.inverse"
|
|
197
|
-
}, actionLabel)))));
|
|
196
|
+
}, actionLabel))));
|
|
198
197
|
}
|
|
199
198
|
function OneClickChatSpotlight(_ref4) {
|
|
200
199
|
var children = _ref4.children,
|
|
@@ -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: "46.
|
|
22
|
+
packageVersion: "46.14.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -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: "46.
|
|
7
|
+
packageVersion: "46.14.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
2
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
3
|
-
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
4
|
-
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
5
|
-
._1dqonqa1{border-style:solid}
|
|
6
|
-
._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}._154iidpf{top:0}
|
|
3
|
+
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}._154iidpf{top:0}
|
|
7
4
|
._154iu2gc{top:var(--ds-space-100,8px)}
|
|
8
5
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
9
6
|
._18m91wug{overflow-y:auto}
|
|
@@ -6,6 +6,7 @@ import React, { createContext, forwardRef, useCallback, useContext, useEffect, u
|
|
|
6
6
|
import { defineMessages, useIntl } from 'react-intl';
|
|
7
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
8
8
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
9
|
+
import Button from '@atlaskit/button/default/button';
|
|
9
10
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
10
11
|
import { ChoreographedContent } from '@atlaskit/link-provider/choreographed-content';
|
|
11
12
|
import { Popup } from '@atlaskit/popup/popup';
|
|
@@ -49,8 +50,7 @@ const styles = {
|
|
|
49
50
|
above: "_94n5idpf _t9ec1sub",
|
|
50
51
|
close: "_2rko12b0 _v564k6bl _kqswstnw _154iu2gc _1xi2u2gc _ca0qv77o _n3tdv77o _19bvv77o _u5f3v77o _syaz15cr _bfhk1aqn _irr31ibz _1ggl5xtf _1di6of27",
|
|
51
52
|
content: "_kqswh2mm",
|
|
52
|
-
body: "_u5f31ejb"
|
|
53
|
-
action: "_2rko12b0 _v564k6bl _1h6d8yml _1dqonqa1 _189ee4h9 _syaz15cr _bfhk1aqn _ca0qv77o _n3tdv77o _19bvu2gc _u5f3u2gc _irr31ibz _1ggl5xtf _1di6of27"
|
|
53
|
+
body: "_u5f31ejb"
|
|
54
54
|
};
|
|
55
55
|
const SpotlightOpenContext = /*#__PURE__*/createContext(false);
|
|
56
56
|
const TargetContext = /*#__PURE__*/createContext(null);
|
|
@@ -170,12 +170,11 @@ function VisibleSpotlightCard({
|
|
|
170
170
|
color: "color.text.inverse"
|
|
171
171
|
}, body)), /*#__PURE__*/React.createElement(Inline, {
|
|
172
172
|
alignInline: "end"
|
|
173
|
-
}, /*#__PURE__*/React.createElement(
|
|
174
|
-
|
|
173
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
174
|
+
appearance: "primary",
|
|
175
|
+
spacing: "compact",
|
|
175
176
|
onClick: onAction
|
|
176
|
-
},
|
|
177
|
-
color: "color.text.inverse"
|
|
178
|
-
}, actionLabel)))));
|
|
177
|
+
}, actionLabel))));
|
|
179
178
|
}
|
|
180
179
|
export function OneClickChatSpotlight({
|
|
181
180
|
children,
|
|
@@ -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: "46.
|
|
12
|
+
packageVersion: "46.14.1",
|
|
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: "46.
|
|
7
|
+
packageVersion: "46.14.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
2
2
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
3
|
-
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
4
|
-
._189ee4h9{border-width:var(--ds-border-width,1px)}
|
|
5
|
-
._1dqonqa1{border-style:solid}
|
|
6
|
-
._1h6d8yml{border-color:var(--ds-border-accent-gray,#7d818a)}._154iidpf{top:0}
|
|
3
|
+
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}._154iidpf{top:0}
|
|
7
4
|
._154iu2gc{top:var(--ds-space-100,8px)}
|
|
8
5
|
._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
9
6
|
._18m91wug{overflow-y:auto}
|
|
@@ -12,6 +12,7 @@ import React, { createContext, forwardRef, useCallback, useContext, useEffect, u
|
|
|
12
12
|
import { defineMessages, useIntl } from 'react-intl';
|
|
13
13
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
14
14
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
15
|
+
import Button from '@atlaskit/button/default/button';
|
|
15
16
|
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
16
17
|
import { ChoreographedContent } from '@atlaskit/link-provider/choreographed-content';
|
|
17
18
|
import { Popup } from '@atlaskit/popup/popup';
|
|
@@ -55,8 +56,7 @@ var styles = {
|
|
|
55
56
|
above: "_94n5idpf _t9ec1sub",
|
|
56
57
|
close: "_2rko12b0 _v564k6bl _kqswstnw _154iu2gc _1xi2u2gc _ca0qv77o _n3tdv77o _19bvv77o _u5f3v77o _syaz15cr _bfhk1aqn _irr31ibz _1ggl5xtf _1di6of27",
|
|
57
58
|
content: "_kqswh2mm",
|
|
58
|
-
body: "_u5f31ejb"
|
|
59
|
-
action: "_2rko12b0 _v564k6bl _1h6d8yml _1dqonqa1 _189ee4h9 _syaz15cr _bfhk1aqn _ca0qv77o _n3tdv77o _19bvu2gc _u5f3u2gc _irr31ibz _1ggl5xtf _1di6of27"
|
|
59
|
+
body: "_u5f31ejb"
|
|
60
60
|
};
|
|
61
61
|
var SpotlightOpenContext = /*#__PURE__*/createContext(false);
|
|
62
62
|
var TargetContext = /*#__PURE__*/createContext(null);
|
|
@@ -180,12 +180,11 @@ function VisibleSpotlightCard(_ref3) {
|
|
|
180
180
|
color: "color.text.inverse"
|
|
181
181
|
}, body)), /*#__PURE__*/React.createElement(Inline, {
|
|
182
182
|
alignInline: "end"
|
|
183
|
-
}, /*#__PURE__*/React.createElement(
|
|
184
|
-
|
|
183
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
184
|
+
appearance: "primary",
|
|
185
|
+
spacing: "compact",
|
|
185
186
|
onClick: onAction
|
|
186
|
-
},
|
|
187
|
-
color: "color.text.inverse"
|
|
188
|
-
}, actionLabel)))));
|
|
187
|
+
}, actionLabel))));
|
|
189
188
|
}
|
|
190
189
|
export function OneClickChatSpotlight(_ref4) {
|
|
191
190
|
var children = _ref4.children,
|
|
@@ -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: "46.
|
|
15
|
+
packageVersion: "46.14.1",
|
|
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": "46.14.
|
|
3
|
+
"version": "46.14.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@atlaskit/textfield": "^10.3.0",
|
|
95
95
|
"@atlaskit/theme": "^28.2.0",
|
|
96
96
|
"@atlaskit/tile": "^5.0.0",
|
|
97
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
97
|
+
"@atlaskit/tmp-editor-statsig": "^262.0.0",
|
|
98
98
|
"@atlaskit/tokens": "^20.11.0",
|
|
99
99
|
"@atlaskit/tooltip": "^24.4.0",
|
|
100
100
|
"@atlaskit/top-layer": "^7.2.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|