@atlaskit/smart-card 45.18.0 → 45.18.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 +17 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-atlas--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-trello--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-entity-support--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-2--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-3--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-4--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/vrblock-profile-card--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-resolved-view-no-preview--default.png +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -3
- package/dist/cjs/view/CardWithUrl/component.js +2 -6
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +3 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-atlas--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-trello--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-entity-support--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-2--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-3--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-4--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/vrblock-profile-card--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-resolved-view-no-preview--default.png +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +2 -3
- package/dist/es2019/view/CardWithUrl/component.js +2 -6
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +3 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-atlas--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-resolved-icon-variations-resolvedclient-icontesturls---flexible-extractsmartlinkicon-path---default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-trello--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-entity-support--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-2--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-3--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-per-file-format-slice-4--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-2--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-3--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-4--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-with-lazy-load-icons-slice-5--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/vrblock-card-resolved-rovo-actions--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/vrblock-profile-card--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-resolved-view-no-preview--default.png +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +2 -3
- package/dist/esm/view/CardWithUrl/component.js +2 -6
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +3 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +5 -8
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--platform-navx-block-card-footer-spacing-false.png +0 -3
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-jira--default--platform-navx-block-card-footer-spacing-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--platform-navx-block-card-footer-spacing-false.png +0 -3
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-jira--default--platform-navx-block-card-footer-spacing-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-confluence--default--platform-navx-block-card-footer-spacing-false.png +0 -3
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-jira--default--platform-navx-block-card-footer-spacing-false.png +0 -3
- /package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/{block-card-confluence--default--platform-navx-block-card-footer-spacing-true.png → block-card-confluence--default.png} +0 -0
- /package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/{block-card-jira--default--platform-navx-block-card-footer-spacing-true.png → block-card-jira--default.png} +0 -0
- /package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/{block-card-confluence--default--platform-navx-block-card-footer-spacing-true.png → block-card-confluence--default.png} +0 -0
- /package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/{block-card-jira--default--platform-navx-block-card-footer-spacing-true.png → block-card-jira--default.png} +0 -0
- /package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/{block-card-confluence--default--platform-navx-block-card-footer-spacing-true.png → block-card-confluence--default.png} +0 -0
- /package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/{block-card-jira--default--platform-navx-block-card-footer-spacing-true.png → block-card-jira--default.png} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 45.18.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9e4a665de419a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e4a665de419a) -
|
|
8
|
+
Clean up of expriment flag `platform_editor_preview_panel_linking_exp_conf` and
|
|
9
|
+
`platform_editor_preview_panel_linking_exp_jira`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 45.18.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`f42598f4b4985`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f42598f4b4985) -
|
|
17
|
+
Cleanup feature gate `platform_navx_block_card_footer_spacing`. Block card footers now permanently
|
|
18
|
+
use the larger spacing introduced by NAVX-4858.
|
|
19
|
+
|
|
3
20
|
## 45.18.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:00b225e64394369befc4f126703a2315026d68767a0e7c68289ffd757535b959
|
|
3
|
+
size 46945
|
package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b3e2c5a40e74d86dfbc587c0e86e21263e48d1630d75d6f73698736068832718
|
|
3
|
+
size 112580
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:dd9675ac8f15424fbea2733f3c9cb5c9b491f3c82ae4d0d2a5e2eedbc0de8ecd
|
|
3
|
+
size 253320
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4b22426e5e4a38fe22705c73e23cdd309619b51f4fc36a71a81e6e651fb5c81b
|
|
3
|
+
size 46594
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d9d03139bf24d1c29c3b9d72837615d2d8a25ce13d09bc615636d855121321a6
|
|
3
|
+
size 30325
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:137bdc34ec6ce3400e4bc6ef45c8cbc5ae5d26e15d8b170d92ba6de427c484bc
|
|
3
|
+
size 88331
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:dc66a9b11a3a49827fa2a3a59e46de4ed463d8e4c4d1e6f65e370d1770962dd9
|
|
3
|
+
size 89467
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c0e85cf086f315093f39a082e38c303f1b823ddceb71b9313f6940decced2a1d
|
|
3
|
+
size 85420
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d856aabb847ecc33c54f949c3883c2db33bcc53911d231a7c77dc64445be5f57
|
|
3
|
+
size 103069
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ce3077a8a2c31d86fc21790fb177ed7cf20f0ccb668bc92348101c4624bc1989
|
|
3
|
+
size 87811
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:97d243b88ead44248373b7e9cec7e1c47dcba65642333e9a5ac7e9d44c7a784b
|
|
3
|
+
size 91878
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4b7d8912d34e2de4cea2b03459db33011eb999011a6822ee6c72c738834c88de
|
|
3
|
+
size 93045
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:aa68ed68f0be0907c1d075323762f959d0acf33c5cc0be66972243209a1d252f
|
|
3
|
+
size 91434
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:94b882cf071220ff4432826011c925c4397184f42da6959ea2e9d487257d68a4
|
|
3
|
+
size 90991
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:926170adad9df8a1f74399ed62978f4297140ffa5e9cf62f44aa8b76e5fa6678
|
|
3
|
+
size 25651
|
package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/vrblock-profile-card--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8ce53068a6ea690907a28840040731f00d880333856a3a42363c1fb79dc6835e
|
|
3
|
+
size 6885
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:818dceaa6311f3f3045000f5303252311a00d8e4073d46f9feacc5dc0955358f
|
|
3
|
+
size 17545
|
|
@@ -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.
|
|
14
|
+
packageVersion: "45.18.1" || ''
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -14,7 +14,6 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _userAgent = require("@atlaskit/linking-common/user-agent");
|
|
17
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
17
|
var _constants = require("../../../constants");
|
|
19
18
|
var _extractRovoChatAction = _interopRequireDefault(require("../../../extractors/flexible/actions/extract-rovo-chat-action"));
|
|
20
19
|
var _helpers = require("../../../state/helpers");
|
|
@@ -28,7 +27,7 @@ var _withFlexibleUIBlockCardStyle = require("./utils/withFlexibleUIBlockCardStyl
|
|
|
28
27
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
29
28
|
var titleBlockCss = null;
|
|
30
29
|
var footerBlockCss = null;
|
|
31
|
-
var
|
|
30
|
+
var footerSpacingCss = null;
|
|
32
31
|
var footerBlockSafariStyles = null;
|
|
33
32
|
|
|
34
33
|
/**
|
|
@@ -156,7 +155,7 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
156
155
|
})) : null, /*#__PURE__*/React.createElement(_blocks.FooterBlock, {
|
|
157
156
|
actions: footerActions,
|
|
158
157
|
isPreviewBlockErrored: isPreviewBlockErrored,
|
|
159
|
-
className: (0, _runtime.ax)(["_4t3i10yn _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq",
|
|
158
|
+
className: (0, _runtime.ax)(["_4t3i10yn _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq", "_19pku2gc"])
|
|
160
159
|
}));
|
|
161
160
|
};
|
|
162
161
|
var _default_1 = (0, _withFlexibleUIBlockCardStyle.withFlexibleUIBlockCardStyle)(ResolvedView);
|
|
@@ -12,7 +12,6 @@ var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents"
|
|
|
12
12
|
var _extractSmartLinkEmbed = require("@atlaskit/link-extractors/extract-smart-link-embed");
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _useAnalyticsEvents3 = require("../../common/analytics/generated/use-analytics-events");
|
|
17
16
|
var _constants = require("../../constants");
|
|
18
17
|
var _state = require("../../state");
|
|
@@ -132,9 +131,6 @@ function Component(_ref) {
|
|
|
132
131
|
// please reach out to the 3P Workflows Team via Slack in #help-3p-connector-workflow
|
|
133
132
|
fire3PClickEvent === null || fire3PClickEvent === void 0 || fire3PClickEvent();
|
|
134
133
|
}
|
|
135
|
-
var isDisablePreviewPanel = disablePreviewPanel && (0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true, {
|
|
136
|
-
exposure: true
|
|
137
|
-
});
|
|
138
134
|
if ((0, _fg.fg)('platform_smartlink_xpc_url_wrapping')) {
|
|
139
135
|
// FIXME: InlineCard, BlockCard and EmbedCard call event.preventDefault() internally
|
|
140
136
|
// before the event bubbles up to this handler. This forces us to snapshot
|
|
@@ -144,7 +140,7 @@ function Component(_ref) {
|
|
|
144
140
|
var isEventDefaultPrevented = event.defaultPrevented;
|
|
145
141
|
var canOpenPreviewPanel = !isModifierKeyPressed && ari && name && openPreviewPanel && (isPreviewPanelAvailable === null || isPreviewPanelAvailable === void 0 ? void 0 : isPreviewPanelAvailable({
|
|
146
142
|
ari: ari
|
|
147
|
-
})) && !
|
|
143
|
+
})) && !disablePreviewPanel;
|
|
148
144
|
|
|
149
145
|
// Preview panel takes priority over link navigation when available.
|
|
150
146
|
if (canOpenPreviewPanel) {
|
|
@@ -206,7 +202,7 @@ function Component(_ref) {
|
|
|
206
202
|
// delegate the click to the preview panel handler
|
|
207
203
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
208
204
|
ari: ari
|
|
209
|
-
}) && !
|
|
205
|
+
}) && !disablePreviewPanel) {
|
|
210
206
|
var _extractSmartLinkEmbe2;
|
|
211
207
|
event.preventDefault();
|
|
212
208
|
event.stopPropagation();
|
|
@@ -12,7 +12,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _popup = require("@atlaskit/popup/popup");
|
|
15
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _constants = require("../../../constants");
|
|
17
16
|
var _actions = require("../../../state/actions");
|
|
18
17
|
var _renderers = require("../../../state/renderers");
|
|
@@ -252,9 +251,9 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
|
|
|
252
251
|
onClick: onChildClick,
|
|
253
252
|
onContextMenu: onContextMenuClick,
|
|
254
253
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
255
|
+
,
|
|
256
|
+
className: HOVER_CARD_TRIGGER_WRAPPER,
|
|
258
257
|
onFocus: _utils.noop,
|
|
259
258
|
onBlur: _utils.noop,
|
|
260
259
|
role: "none"
|
|
@@ -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.
|
|
22
|
+
packageVersion: "45.18.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-atlas--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:00b225e64394369befc4f126703a2315026d68767a0e7c68289ffd757535b959
|
|
3
|
+
size 46945
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b3e2c5a40e74d86dfbc587c0e86e21263e48d1630d75d6f73698736068832718
|
|
3
|
+
size 112580
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:dd9675ac8f15424fbea2733f3c9cb5c9b491f3c82ae4d0d2a5e2eedbc0de8ecd
|
|
3
|
+
size 253320
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-trello--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4b22426e5e4a38fe22705c73e23cdd309619b51f4fc36a71a81e6e651fb5c81b
|
|
3
|
+
size 46594
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d9d03139bf24d1c29c3b9d72837615d2d8a25ce13d09bc615636d855121321a6
|
|
3
|
+
size 30325
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:137bdc34ec6ce3400e4bc6ef45c8cbc5ae5d26e15d8b170d92ba6de427c484bc
|
|
3
|
+
size 88331
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:dc66a9b11a3a49827fa2a3a59e46de4ed463d8e4c4d1e6f65e370d1770962dd9
|
|
3
|
+
size 89467
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c0e85cf086f315093f39a082e38c303f1b823ddceb71b9313f6940decced2a1d
|
|
3
|
+
size 85420
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d856aabb847ecc33c54f949c3883c2db33bcc53911d231a7c77dc64445be5f57
|
|
3
|
+
size 103069
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ce3077a8a2c31d86fc21790fb177ed7cf20f0ccb668bc92348101c4624bc1989
|
|
3
|
+
size 87811
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:97d243b88ead44248373b7e9cec7e1c47dcba65642333e9a5ac7e9d44c7a784b
|
|
3
|
+
size 91878
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4b7d8912d34e2de4cea2b03459db33011eb999011a6822ee6c72c738834c88de
|
|
3
|
+
size 93045
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:aa68ed68f0be0907c1d075323762f959d0acf33c5cc0be66972243209a1d252f
|
|
3
|
+
size 91434
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:94b882cf071220ff4432826011c925c4397184f42da6959ea2e9d487257d68a4
|
|
3
|
+
size 90991
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:926170adad9df8a1f74399ed62978f4297140ffa5e9cf62f44aa8b76e5fa6678
|
|
3
|
+
size 25651
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/vrblock-profile-card--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8ce53068a6ea690907a28840040731f00d880333856a3a42363c1fb79dc6835e
|
|
3
|
+
size 6885
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:818dceaa6311f3f3045000f5303252311a00d8e4073d46f9feacc5dc0955358f
|
|
3
|
+
size 17545
|
|
@@ -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.
|
|
5
|
+
packageVersion: "45.18.1" || ''
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -5,7 +5,6 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useEffect, useMemo, useState } from 'react';
|
|
7
7
|
import { browser } from '@atlaskit/linking-common/user-agent';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import { ActionName, CardDisplay, ElementName, SmartLinkPosition } from '../../../constants';
|
|
10
9
|
import extractRovoChatAction from '../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
11
10
|
import { getExtensionKey } from '../../../state/helpers';
|
|
@@ -18,7 +17,7 @@ import { FlexibleCardUiOptions, getSimulatedBetterMetadata, PreviewBlockOptions,
|
|
|
18
17
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
19
18
|
const titleBlockCss = null;
|
|
20
19
|
const footerBlockCss = null;
|
|
21
|
-
const
|
|
20
|
+
const footerSpacingCss = null;
|
|
22
21
|
const footerBlockSafariStyles = null;
|
|
23
22
|
|
|
24
23
|
/**
|
|
@@ -142,7 +141,7 @@ const ResolvedView = ({
|
|
|
142
141
|
})) : null, /*#__PURE__*/React.createElement(FooterBlock, {
|
|
143
142
|
actions: footerActions,
|
|
144
143
|
isPreviewBlockErrored: isPreviewBlockErrored,
|
|
145
|
-
className: ax(["_4t3i10yn _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq",
|
|
144
|
+
className: ax(["_4t3i10yn _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq", "_19pku2gc"])
|
|
146
145
|
}));
|
|
147
146
|
};
|
|
148
147
|
const _default_1 = withFlexibleUIBlockCardStyle(ResolvedView);
|
|
@@ -3,7 +3,6 @@ import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytic
|
|
|
3
3
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
8
7
|
import { CardDisplay } from '../../constants';
|
|
9
8
|
import { useSmartLink } from '../../state';
|
|
@@ -122,9 +121,6 @@ function Component({
|
|
|
122
121
|
// please reach out to the 3P Workflows Team via Slack in #help-3p-connector-workflow
|
|
123
122
|
fire3PClickEvent === null || fire3PClickEvent === void 0 ? void 0 : fire3PClickEvent();
|
|
124
123
|
}
|
|
125
|
-
const isDisablePreviewPanel = disablePreviewPanel && editorExperiment('platform_editor_preview_panel_linking_exp', true, {
|
|
126
|
-
exposure: true
|
|
127
|
-
});
|
|
128
124
|
if (fg('platform_smartlink_xpc_url_wrapping')) {
|
|
129
125
|
// FIXME: InlineCard, BlockCard and EmbedCard call event.preventDefault() internally
|
|
130
126
|
// before the event bubbles up to this handler. This forces us to snapshot
|
|
@@ -134,7 +130,7 @@ function Component({
|
|
|
134
130
|
const isEventDefaultPrevented = event.defaultPrevented;
|
|
135
131
|
const canOpenPreviewPanel = !isModifierKeyPressed && ari && name && openPreviewPanel && (isPreviewPanelAvailable === null || isPreviewPanelAvailable === void 0 ? void 0 : isPreviewPanelAvailable({
|
|
136
132
|
ari
|
|
137
|
-
})) && !
|
|
133
|
+
})) && !disablePreviewPanel;
|
|
138
134
|
|
|
139
135
|
// Preview panel takes priority over link navigation when available.
|
|
140
136
|
if (canOpenPreviewPanel) {
|
|
@@ -197,7 +193,7 @@ function Component({
|
|
|
197
193
|
// delegate the click to the preview panel handler
|
|
198
194
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
199
195
|
ari
|
|
200
|
-
}) && !
|
|
196
|
+
}) && !disablePreviewPanel) {
|
|
201
197
|
var _extractSmartLinkEmbe2;
|
|
202
198
|
event.preventDefault();
|
|
203
199
|
event.stopPropagation();
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { Popup } from '@atlaskit/popup/popup';
|
|
5
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
7
6
|
import { useSmartCardActions } from '../../../state/actions';
|
|
8
7
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -231,9 +230,9 @@ export const HoverCardComponent = ({
|
|
|
231
230
|
onClick: onChildClick,
|
|
232
231
|
onContextMenu: onContextMenuClick,
|
|
233
232
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
234
|
+
,
|
|
235
|
+
className: HOVER_CARD_TRIGGER_WRAPPER,
|
|
237
236
|
onFocus: noop,
|
|
238
237
|
onBlur: noop,
|
|
239
238
|
role: "none"
|
|
@@ -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.
|
|
12
|
+
packageVersion: "45.18.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:00b225e64394369befc4f126703a2315026d68767a0e7c68289ffd757535b959
|
|
3
|
+
size 46945
|
package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-bitbucket--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b3e2c5a40e74d86dfbc587c0e86e21263e48d1630d75d6f73698736068832718
|
|
3
|
+
size 112580
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:dd9675ac8f15424fbea2733f3c9cb5c9b491f3c82ae4d0d2a5e2eedbc0de8ecd
|
|
3
|
+
size 253320
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4b22426e5e4a38fe22705c73e23cdd309619b51f4fc36a71a81e6e651fb5c81b
|
|
3
|
+
size 46594
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d9d03139bf24d1c29c3b9d72837615d2d8a25ce13d09bc615636d855121321a6
|
|
3
|
+
size 30325
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:137bdc34ec6ce3400e4bc6ef45c8cbc5ae5d26e15d8b170d92ba6de427c484bc
|
|
3
|
+
size 88331
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:dc66a9b11a3a49827fa2a3a59e46de4ed463d8e4c4d1e6f65e370d1770962dd9
|
|
3
|
+
size 89467
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c0e85cf086f315093f39a082e38c303f1b823ddceb71b9313f6940decced2a1d
|
|
3
|
+
size 85420
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:d856aabb847ecc33c54f949c3883c2db33bcc53911d231a7c77dc64445be5f57
|
|
3
|
+
size 103069
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:ce3077a8a2c31d86fc21790fb177ed7cf20f0ccb668bc92348101c4624bc1989
|
|
3
|
+
size 87811
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:97d243b88ead44248373b7e9cec7e1c47dcba65642333e9a5ac7e9d44c7a784b
|
|
3
|
+
size 91878
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:4b7d8912d34e2de4cea2b03459db33011eb999011a6822ee6c72c738834c88de
|
|
3
|
+
size 93045
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:aa68ed68f0be0907c1d075323762f959d0acf33c5cc0be66972243209a1d252f
|
|
3
|
+
size 91434
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:94b882cf071220ff4432826011c925c4397184f42da6959ea2e9d487257d68a4
|
|
3
|
+
size 90991
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:926170adad9df8a1f74399ed62978f4297140ffa5e9cf62f44aa8b76e5fa6678
|
|
3
|
+
size 25651
|
package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/vrblock-profile-card--default.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8ce53068a6ea690907a28840040731f00d880333856a3a42363c1fb79dc6835e
|
|
3
|
+
size 6885
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:818dceaa6311f3f3045000f5303252311a00d8e4073d46f9feacc5dc0955358f
|
|
3
|
+
size 17545
|
|
@@ -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.
|
|
7
|
+
packageVersion: "45.18.1" || ''
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -6,7 +6,6 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useEffect, useMemo, useState } from 'react';
|
|
8
8
|
import { browser } from '@atlaskit/linking-common/user-agent';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
9
|
import { ActionName, CardDisplay, ElementName, SmartLinkPosition } from '../../../constants';
|
|
11
10
|
import extractRovoChatAction from '../../../extractors/flexible/actions/extract-rovo-chat-action';
|
|
12
11
|
import { getExtensionKey } from '../../../state/helpers';
|
|
@@ -19,7 +18,7 @@ import { FlexibleCardUiOptions, getSimulatedBetterMetadata, PreviewBlockOptions,
|
|
|
19
18
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
20
19
|
var titleBlockCss = null;
|
|
21
20
|
var footerBlockCss = null;
|
|
22
|
-
var
|
|
21
|
+
var footerSpacingCss = null;
|
|
23
22
|
var footerBlockSafariStyles = null;
|
|
24
23
|
|
|
25
24
|
/**
|
|
@@ -147,7 +146,7 @@ var ResolvedView = function ResolvedView(_ref) {
|
|
|
147
146
|
})) : null, /*#__PURE__*/React.createElement(FooterBlock, {
|
|
148
147
|
actions: footerActions,
|
|
149
148
|
isPreviewBlockErrored: isPreviewBlockErrored,
|
|
150
|
-
className: ax(["_4t3i10yn _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq",
|
|
149
|
+
className: ax(["_4t3i10yn _1e0c1txw _1bah1yb4 _4cvresu3 _1wpz1fhb", safari && "_4t3i1osq", "_19pku2gc"])
|
|
151
150
|
}));
|
|
152
151
|
};
|
|
153
152
|
var _default_1 = withFlexibleUIBlockCardStyle(ResolvedView);
|
|
@@ -6,7 +6,6 @@ import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytic
|
|
|
6
6
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
9
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
11
10
|
import { CardDisplay } from '../../constants';
|
|
12
11
|
import { useSmartLink } from '../../state';
|
|
@@ -123,9 +122,6 @@ function Component(_ref) {
|
|
|
123
122
|
// please reach out to the 3P Workflows Team via Slack in #help-3p-connector-workflow
|
|
124
123
|
fire3PClickEvent === null || fire3PClickEvent === void 0 || fire3PClickEvent();
|
|
125
124
|
}
|
|
126
|
-
var isDisablePreviewPanel = disablePreviewPanel && editorExperiment('platform_editor_preview_panel_linking_exp', true, {
|
|
127
|
-
exposure: true
|
|
128
|
-
});
|
|
129
125
|
if (fg('platform_smartlink_xpc_url_wrapping')) {
|
|
130
126
|
// FIXME: InlineCard, BlockCard and EmbedCard call event.preventDefault() internally
|
|
131
127
|
// before the event bubbles up to this handler. This forces us to snapshot
|
|
@@ -135,7 +131,7 @@ function Component(_ref) {
|
|
|
135
131
|
var isEventDefaultPrevented = event.defaultPrevented;
|
|
136
132
|
var canOpenPreviewPanel = !isModifierKeyPressed && ari && name && openPreviewPanel && (isPreviewPanelAvailable === null || isPreviewPanelAvailable === void 0 ? void 0 : isPreviewPanelAvailable({
|
|
137
133
|
ari: ari
|
|
138
|
-
})) && !
|
|
134
|
+
})) && !disablePreviewPanel;
|
|
139
135
|
|
|
140
136
|
// Preview panel takes priority over link navigation when available.
|
|
141
137
|
if (canOpenPreviewPanel) {
|
|
@@ -197,7 +193,7 @@ function Component(_ref) {
|
|
|
197
193
|
// delegate the click to the preview panel handler
|
|
198
194
|
if (!isModifierKeyPressed && ari && name && openPreviewPanel && isPreviewPanelAvailable !== null && isPreviewPanelAvailable !== void 0 && isPreviewPanelAvailable({
|
|
199
195
|
ari: ari
|
|
200
|
-
}) && !
|
|
196
|
+
}) && !disablePreviewPanel) {
|
|
201
197
|
var _extractSmartLinkEmbe2;
|
|
202
198
|
event.preventDefault();
|
|
203
199
|
event.stopPropagation();
|
|
@@ -5,7 +5,6 @@ var _excluded = ["aria-haspopup", "aria-expanded", "aria-controls"];
|
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { Popup } from '@atlaskit/popup/popup';
|
|
8
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
8
|
import { ActionName, CardDisplay } from '../../../constants';
|
|
10
9
|
import { useSmartCardActions } from '../../../state/actions';
|
|
11
10
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
@@ -243,9 +242,9 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
243
242
|
onClick: onChildClick,
|
|
244
243
|
onContextMenu: onContextMenuClick,
|
|
245
244
|
"data-testid": HOVER_CARD_TRIGGER_WRAPPER
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
246
|
+
,
|
|
247
|
+
className: HOVER_CARD_TRIGGER_WRAPPER,
|
|
249
248
|
onFocus: noop,
|
|
250
249
|
onBlur: noop,
|
|
251
250
|
role: "none"
|
|
@@ -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.
|
|
15
|
+
packageVersion: "45.18.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": "45.18.
|
|
3
|
+
"version": "45.18.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/lozenge": "^15.3.0",
|
|
71
71
|
"@atlaskit/menu": "^10.1.0",
|
|
72
72
|
"@atlaskit/modal-dialog": "^16.5.0",
|
|
73
|
-
"@atlaskit/motion": "^8.
|
|
73
|
+
"@atlaskit/motion": "^8.4.0",
|
|
74
74
|
"@atlaskit/object": "^2.3.0",
|
|
75
75
|
"@atlaskit/outbound-auth-flow-client": "^4.1.0",
|
|
76
76
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^22.4.0",
|
|
80
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
81
|
"@atlaskit/react-ufo": "^7.7.0",
|
|
82
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
82
|
+
"@atlaskit/rovo-triggers": "^10.18.0",
|
|
83
83
|
"@atlaskit/section-message": "^10.1.0",
|
|
84
84
|
"@atlaskit/select": "^22.8.0",
|
|
85
85
|
"@atlaskit/spinner": "^20.3.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@atlaskit/textfield": "^10.1.0",
|
|
90
90
|
"@atlaskit/theme": "^28.1.0",
|
|
91
91
|
"@atlaskit/tile": "^4.1.0",
|
|
92
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
92
|
+
"@atlaskit/tmp-editor-statsig": "^158.0.0",
|
|
93
93
|
"@atlaskit/tokens": "^16.8.0",
|
|
94
94
|
"@atlaskit/tooltip": "^24.2.0",
|
|
95
95
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"@atlaskit/range": "^12.1.0",
|
|
129
129
|
"@atlaskit/ssr": "workspace:^",
|
|
130
130
|
"@atlaskit/toggle": "^17.2.0",
|
|
131
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
131
|
+
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
132
132
|
"@atlassian/analytics-tooling": "workspace:^",
|
|
133
133
|
"@atlassian/feature-flags-test-utils": "^1.2.0",
|
|
134
134
|
"@atlassian/gemini": "^1.52.0",
|
|
@@ -265,9 +265,6 @@
|
|
|
265
265
|
"platform_sl_incoming_outgoing_tenant_info_killswitch": {
|
|
266
266
|
"type": "boolean"
|
|
267
267
|
},
|
|
268
|
-
"platform_navx_block_card_footer_spacing": {
|
|
269
|
-
"type": "boolean"
|
|
270
|
-
},
|
|
271
268
|
"platform_sl_3p_post_auth_chat_open_fg": {
|
|
272
269
|
"type": "boolean"
|
|
273
270
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|