@atlaskit/smart-card 45.6.6 → 45.6.8
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/extractors/flexible/actions/index.js +3 -3
- package/dist/cjs/extractors/flexible/index.js +3 -5
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +3 -8
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +3 -8
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +3 -8
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +7 -13
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +12 -7
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +11 -6
- package/dist/cjs/view/FlexibleCard/index.js +5 -12
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/flexible/actions/index.js +8 -10
- package/dist/es2019/extractors/flexible/index.js +2 -4
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +7 -14
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +10 -7
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +9 -6
- package/dist/es2019/view/FlexibleCard/index.js +3 -7
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/flexible/actions/index.js +3 -3
- package/dist/esm/extractors/flexible/index.js +3 -5
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summarise-action.js +3 -8
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +3 -8
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +3 -8
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +7 -13
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +12 -7
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +11 -6
- package/dist/esm/view/FlexibleCard/index.js +5 -12
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/package.json +4 -7
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
2
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
6
3
|
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
7
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -53,9 +50,7 @@ var FlexibleCard = function FlexibleCard(_ref) {
|
|
|
53
50
|
isPreviewPanelAvailable = _useSmartLinkContext.isPreviewPanelAvailable,
|
|
54
51
|
openPreviewPanel = _useSmartLinkContext.openPreviewPanel,
|
|
55
52
|
product = _useSmartLinkContext.product;
|
|
56
|
-
var rovoConfig =
|
|
57
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
58
|
-
useRovoConfig() : undefined;
|
|
53
|
+
var rovoConfig = useRovoConfig();
|
|
59
54
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
60
55
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
61
56
|
var cardType = cardState.status,
|
|
@@ -77,7 +72,7 @@ var FlexibleCard = function FlexibleCard(_ref) {
|
|
|
77
72
|
}, [placeholderData, status]);
|
|
78
73
|
var placeHolderStatus = placeholderCardState ? placeholderCardState.status : undefined;
|
|
79
74
|
var context = useMemo(function () {
|
|
80
|
-
return getContextByStatus(
|
|
75
|
+
return getContextByStatus({
|
|
81
76
|
aiSummaryConfig: aiSummaryConfig,
|
|
82
77
|
appearance: appearance,
|
|
83
78
|
fireEvent: fireEvent,
|
|
@@ -89,18 +84,16 @@ var FlexibleCard = function FlexibleCard(_ref) {
|
|
|
89
84
|
onContextMenu: onContextMenu,
|
|
90
85
|
origin: origin,
|
|
91
86
|
renderers: renderers,
|
|
92
|
-
resolve: resolve
|
|
93
|
-
}, fg('platform_sl_3p_auth_rovo_action_kill_switch') ? {
|
|
87
|
+
resolve: resolve,
|
|
94
88
|
product: product,
|
|
95
|
-
rovoConfig: rovoConfig
|
|
96
|
-
} : undefined), {}, {
|
|
89
|
+
rovoConfig: rovoConfig,
|
|
97
90
|
actionOptions: actionOptions,
|
|
98
91
|
status: placeholderCardState ? placeHolderStatus : status,
|
|
99
92
|
url: url,
|
|
100
93
|
isPreviewPanelAvailable: isPreviewPanelAvailable,
|
|
101
94
|
openPreviewPanel: openPreviewPanel,
|
|
102
95
|
transformUrl: transformUrl
|
|
103
|
-
})
|
|
96
|
+
});
|
|
104
97
|
}, [aiSummaryConfig, appearance, actionOptions, details, id, isPreviewPanelAvailable, onAuthorize, onClick, onAuxClick, onContextMenu, openPreviewPanel, origin, placeholderCardState, placeHolderStatus, product, renderers, resolve, rovoConfig, status, transformUrl, url, fireEvent]);
|
|
105
98
|
var flexibleCardContext = useMemo(function () {
|
|
106
99
|
return {
|
|
@@ -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.6.
|
|
15
|
+
packageVersion: "45.6.7",
|
|
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.6.
|
|
3
|
+
"version": "45.6.8",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@atlaskit/adf-utils": "^20.
|
|
38
|
+
"@atlaskit/adf-utils": "^20.2.0",
|
|
39
39
|
"@atlaskit/afm-i18n-platform-linking-platform-smart-card": "2.6.0",
|
|
40
40
|
"@atlaskit/analytics-cross-product": "^2.0.0",
|
|
41
41
|
"@atlaskit/analytics-gas-types": "^6.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^20.3.0",
|
|
80
80
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
81
81
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
82
|
-
"@atlaskit/rovo-triggers": "^9.
|
|
82
|
+
"@atlaskit/rovo-triggers": "^9.7.0",
|
|
83
83
|
"@atlaskit/section-message": "^9.2.0",
|
|
84
84
|
"@atlaskit/select": "^22.3.0",
|
|
85
85
|
"@atlaskit/spinner": "^20.1.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@atlaskit/textfield": "^9.1.0",
|
|
89
89
|
"@atlaskit/theme": "^26.1.0",
|
|
90
90
|
"@atlaskit/tile": "^2.1.0",
|
|
91
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
91
|
+
"@atlaskit/tmp-editor-statsig": "^120.0.0",
|
|
92
92
|
"@atlaskit/tokens": "^15.3.0",
|
|
93
93
|
"@atlaskit/tooltip": "^23.1.0",
|
|
94
94
|
"@atlaskit/ufo": "^1.0.0",
|
|
@@ -259,9 +259,6 @@
|
|
|
259
259
|
"platform_navx_block_card_footer_spacing": {
|
|
260
260
|
"type": "boolean"
|
|
261
261
|
},
|
|
262
|
-
"navx-4957-sl-embed-modal-a11y-label": {
|
|
263
|
-
"type": "boolean"
|
|
264
|
-
},
|
|
265
262
|
"platform_sl_3p_post_auth_chat_open_fg": {
|
|
266
263
|
"type": "boolean"
|
|
267
264
|
},
|