@atlaskit/smart-card 45.24.2 → 45.24.4
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/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-dropbox-in-atlas-slide1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide2--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide3--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide1--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide2--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide3--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card--light-mode.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-entities-support--light-mode.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrerror--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrloading--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-forbidden-view-renders-correctly-when-hovering-over-url-in-forbidden-view--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-not-found-view-renders-correctly-when-hovering-over-url-in-not-found-view--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-renders-correctly-when-hovering-over-url--default--jfp-magma-platform-lozenge-jump-fix-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-renders-correctly-when-hovering-over-url--default--jfp-magma-platform-lozenge-jump-fix-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-connect-account--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-url-in-unauthorized-view--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-when-selected--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden--default--jfp-magma-platform-lozenge-jump-fix-false.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden--default--jfp-magma-platform-lozenge-jump-fix-true.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden-with-site-pending-request--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden-with-site-request-access--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-not-found-with-site-access-exists--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-resolving--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-un-auth--default.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/inline-card/vrinline-profile-card--default.png +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -6
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +7 -5
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +2 -5
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +4 -7
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-dropbox-in-atlas-slide1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide2--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide3--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide1--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide2--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide3--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card--light-mode.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-entities-support--light-mode.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrerror--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrloading--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-forbidden-view-renders-correctly-when-hovering-over-url-in-forbidden-view--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-not-found-view-renders-correctly-when-hovering-over-url-in-not-found-view--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-renders-correctly-when-hovering-over-url--default--jfp-magma-platform-lozenge-jump-fix-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-renders-correctly-when-hovering-over-url--default--jfp-magma-platform-lozenge-jump-fix-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-connect-account--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-url-in-unauthorized-view--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-when-selected--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden--default--jfp-magma-platform-lozenge-jump-fix-false.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden--default--jfp-magma-platform-lozenge-jump-fix-true.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden-with-site-pending-request--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden-with-site-request-access--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-not-found-with-site-access-exists--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-resolving--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-un-auth--default.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/vrinline-profile-card--default.png +2 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -6
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +5 -4
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +2 -5
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +4 -7
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-dropbox-in-atlas-slide1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide2--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-figma-in-trello-slide3--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide1--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide2--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/embed-card/embed-card-unauthorized-carousel-google-in-confluence-slide3--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card--light-mode.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions-with-related-urls--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-entities-support--light-mode.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrerror--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrloading--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-unauthorised--default--platform-sl-3p-preauth-better-hovercard-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-forbidden-view-renders-correctly-when-hovering-over-url-in-forbidden-view--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-not-found-view-renders-correctly-when-hovering-over-url-in-not-found-view--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-renders-correctly-when-hovering-over-url--default--jfp-magma-platform-lozenge-jump-fix-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-renders-correctly-when-hovering-over-url--default--jfp-magma-platform-lozenge-jump-fix-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-connect-account--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-renders-correctly-when-hovering-over-url-in-unauthorized-view--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-unauthorised-view-with-truncation--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-when-selected--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden--default--jfp-magma-platform-lozenge-jump-fix-false.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden--default--jfp-magma-platform-lozenge-jump-fix-true.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden-with-site-pending-request--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-forbidden-with-site-request-access--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-not-found-with-site-access-exists--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-resolving--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-word-wrap-un-auth--default.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/vrinline-profile-card--default.png +2 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +3 -5
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/ai-summary-action-component.js +1 -6
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +7 -5
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +2 -5
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +4 -7
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts +2 -2
- package/package.json +7 -10
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action-new.js +0 -66
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action-new.js +0 -38
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action-new.js +0 -57
- package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action-new.d.ts +0 -6
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2b71188f22b83c5f37c86db14e4951bb3bde3b56dff16fa4aae740bcbe881786
|
|
3
|
+
size 100886
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b5ecd8965dab04211d2f276c3e15918268bf35a9bd475a17b90393db062618a6
|
|
3
|
+
size 103177
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:f98d3c05e86c99bb39120f275fd11165fab0361b402293e97655f69038c5757d
|
|
3
|
+
size 90126
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a5172c026739728f9192e42294943ef83e818685c16a02520017ecbefd0b79f3
|
|
3
|
+
size 52740
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a7851672fcb7c23132ae79daef3b837f602f95ad40165e69f28202be06285322
|
|
3
|
+
size 148900
|
package/dist/es2019/__tests__/vr-tests/__snapshots__/inline-card/vrinline-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:2eef09f9248e7f446ec4d879c77d7020456756331d655e1f3f19c4f315a9bc79
|
|
3
|
+
size 15110
|
|
@@ -3,7 +3,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export const context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card" || '',
|
|
6
|
-
packageVersion: "45.24.
|
|
6
|
+
packageVersion: "45.24.3" || ''
|
|
7
7
|
};
|
|
8
8
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -5,7 +5,6 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
10
|
import { getPrimitivesInlineSpaceBySize } from '../../../getPrimitivesInlineSpaceBySize';
|
|
@@ -57,10 +56,9 @@ const ActionButton = ({
|
|
|
57
56
|
testId: testId
|
|
58
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
59
58
|
,
|
|
60
|
-
style: style
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} : {}), /*#__PURE__*/React.createElement(Inline, {
|
|
59
|
+
style: style,
|
|
60
|
+
"aria-label": ariaLabel
|
|
61
|
+
}), /*#__PURE__*/React.createElement(Inline, {
|
|
64
62
|
alignBlock: "center",
|
|
65
63
|
grow: "fill",
|
|
66
64
|
space: space
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
6
5
|
import { AISummariseAction } from './ai-summarise-action';
|
|
7
6
|
import { CopySummaryAction } from './copy-summary-action';
|
|
8
|
-
import { CopySummaryActionNew } from './copy-summary-action-new';
|
|
9
7
|
export const AISummaryActionComponent = props => {
|
|
10
8
|
const {
|
|
11
9
|
url,
|
|
@@ -22,12 +20,9 @@ export const AISummaryActionComponent = props => {
|
|
|
22
20
|
useEffect(() => {
|
|
23
21
|
onLoadingChange === null || onLoadingChange === void 0 ? void 0 : onLoadingChange(status === 'loading');
|
|
24
22
|
}, [onLoadingChange, status]);
|
|
25
|
-
return status === 'done' ?
|
|
23
|
+
return status === 'done' ? /*#__PURE__*/React.createElement(CopySummaryAction, _extends({}, props, {
|
|
26
24
|
summary: content,
|
|
27
25
|
testId: testId
|
|
28
|
-
})) : /*#__PURE__*/React.createElement(CopySummaryAction, _extends({}, props, {
|
|
29
|
-
testId: testId,
|
|
30
|
-
content: content
|
|
31
26
|
})) : /*#__PURE__*/React.createElement(AISummariseAction, _extends({}, props, {
|
|
32
27
|
testId: testId,
|
|
33
28
|
summariseUrl: summariseUrl,
|
package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -8,8 +8,8 @@ import Action from '../action';
|
|
|
8
8
|
export function CopySummaryAction({
|
|
9
9
|
url,
|
|
10
10
|
onClick: onClickCallback,
|
|
11
|
+
summary = '',
|
|
11
12
|
testId,
|
|
12
|
-
content,
|
|
13
13
|
...props
|
|
14
14
|
}) {
|
|
15
15
|
const {
|
|
@@ -18,16 +18,17 @@ export function CopySummaryAction({
|
|
|
18
18
|
const [tooltipMessage, setTooltipMessage] = useState(messages.copy_summary_action_description);
|
|
19
19
|
const handleCopySummaryClick = useCallback(async () => {
|
|
20
20
|
fireEvent('ui.button.clicked.copySummary', {});
|
|
21
|
-
await navigator.clipboard.writeText(
|
|
21
|
+
await navigator.clipboard.writeText(summary);
|
|
22
22
|
setTooltipMessage(messages.copied_summary_action_description);
|
|
23
23
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback();
|
|
24
|
-
}, [fireEvent, onClickCallback,
|
|
24
|
+
}, [fireEvent, onClickCallback, summary]);
|
|
25
25
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
26
26
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action),
|
|
27
27
|
icon: /*#__PURE__*/React.createElement(CopyIcon, {
|
|
28
28
|
color: "currentColor",
|
|
29
29
|
spacing: "spacious",
|
|
30
|
-
label: "Copy Summary"
|
|
30
|
+
label: "Copy Summary",
|
|
31
|
+
size: props.iconSize
|
|
31
32
|
}),
|
|
32
33
|
onClick: handleCopySummaryClick,
|
|
33
34
|
testId: `${testId}-copy-summary-action`,
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
4
4
|
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
5
|
import { ActionName } from '../../../../../constants';
|
|
7
6
|
import { messages } from '../../../../../messages';
|
|
8
7
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context/useFlexibleUiContext';
|
|
@@ -68,10 +67,8 @@ const FollowAction = props => {
|
|
|
68
67
|
});
|
|
69
68
|
};
|
|
70
69
|
return /*#__PURE__*/React.createElement(ServerAction, _extends({
|
|
71
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, label)
|
|
72
|
-
|
|
73
|
-
ariaLabel: intl.formatMessage(label)
|
|
74
|
-
} : {}, {
|
|
70
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, label),
|
|
71
|
+
ariaLabel: intl.formatMessage(label),
|
|
75
72
|
icon: followIcon,
|
|
76
73
|
testId: "smart-action-follow-action",
|
|
77
74
|
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage)
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { lazy, useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
6
5
|
import { messages } from '../../../../../messages';
|
|
7
6
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context/useFlexibleUiContext';
|
|
@@ -33,13 +32,11 @@ const ViewRelatedLinksAction = ({
|
|
|
33
32
|
onClickCallback === null || onClickCallback === void 0 ? void 0 : onClickCallback();
|
|
34
33
|
}, [actionData === null || actionData === void 0 ? void 0 : actionData.ari, fireEvent, modal, onClickCallback]);
|
|
35
34
|
return actionData ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
36
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} : {}, {
|
|
40
|
-
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, fg('platform_sl_action_refactoring') ? {
|
|
35
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links),
|
|
36
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links),
|
|
37
|
+
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, {
|
|
41
38
|
iconSize: props.iconSize
|
|
42
|
-
}
|
|
39
|
+
}),
|
|
43
40
|
onClick: onClick,
|
|
44
41
|
testId: "smart-action-view-related-links-action",
|
|
45
42
|
ariaLabel: "View most recent pages or content types coming from or found on this link"
|
|
@@ -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.24.
|
|
12
|
+
packageVersion: "45.24.3",
|
|
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:45e6fdaac167c5307077da7dd5f370c61c722c68059b5b53fcd61f6fe2657b1c
|
|
3
|
+
size 22472
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:825c91b55ead8f8d92f0602b0ff35e6e8896df2f670a9b9914ec9002727ab291
|
|
3
|
+
size 20516
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:619be3efcf226b3cc75ed4e367de60d74027981ae9a8bb58ada87631d04b344e
|
|
3
|
+
size 28076
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:7266ba2d248296a202365523c8f7f7c9c96a490362153cbf8ef98261d00c4389
|
|
3
|
+
size 34497
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:fbcb498b9f263d849e98711258eceed0283ea9e5da30237b5f9689def7c06998
|
|
3
|
+
size 25909
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6edc582fad5f4fae7b16a3f81c8812fed0c3fc801d947ab00f9b839483f34b3e
|
|
3
|
+
size 32894
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:6ff7ac03b8d78f21a68f0b76789c9ffe14301764957795d98ccfe334b396d41e
|
|
3
|
+
size 37018
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c5c71dec79a61e93cdcb41f866b0dddcc59caa662a94ad25e77311600048d4b5
|
|
3
|
+
size 20969
|
package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-actions--light-mode.png
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:174dbc030763c6d7f09c0e78265e76bd8c2b86f42825349823f7d276b0ea0903
|
|
3
|
+
size 36071
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:8a2e327bbe3c5940f9518c2aea8aed2546534243aaeb89ce149bbc4494517399
|
|
3
|
+
size 36069
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:c9ab2dacda60471830347ce36d214dd5b4d2cb97ac9bef0a3b59bff6f2b6bb9d
|
|
3
|
+
size 46243
|
package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrerror--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:622ec6db10186b4207a8241539ca9236e6e7536b70b746151ff0a97184851e6e
|
|
3
|
+
size 12425
|
package/dist/esm/__tests__/vr-tests/__snapshots__/hover-card/hover-card-ssrloading--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:7e3551bcdc87a92ac0577030bd6933422e13e9b6c6a5369314d35bbdf75f99e1
|
|
3
|
+
size 20463
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:0a4e093f3df21190d4595641f529de4265334576cc9a70d0c33c97a200977c77
|
|
3
|
+
size 24613
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:998d989a29c83e6aad6dfb8490fd9854e339fb5cffe2f74263c0f06e4de7fc8a
|
|
3
|
+
size 37811
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:19fa05b5555854431e8b3d0a2a1151dd46626f53e81be59511af55386b679397
|
|
3
|
+
size 4534
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:f70924110a4b1f8222f072db6224aa1104c187eb25221b0b756204983fd204a1
|
|
3
|
+
size 3976
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:71c7329a388b69179f8235509ca5ba9f9b1f64e7abf73553d80f70d539320b5b
|
|
3
|
+
size 7313
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:eab1fba5679cfd4e87f8bccaa4c4620185c36427ee5bfc10b6e18290632807b9
|
|
3
|
+
size 7313
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a16747b2631d762c2a70c40cc40f45886479a9411fddf9e78247f5bdea7ddf35
|
|
3
|
+
size 6032
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:51eed55cffd70e45bd3f5f572c6b797eab2ba7c6a0f397f43d60cb8514933ce3
|
|
3
|
+
size 5895
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a88c35a647e5421afbf588583ecdb811da86b40be745c7359c639a9f7b3e321f
|
|
3
|
+
size 2915
|
package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/inline-card-when-selected--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:fd0bc2773f38b49810c101469cbdb6d2f04f479e423a32eab5c6f6d9b9a1f48c
|
|
3
|
+
size 7918
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:023b7059d0f9f46f956d65c71ff8ad6aa3768791cc5f3adbd7b9aa8e9f180d38
|
|
3
|
+
size 61455
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:902dd4332b8b9cc46c0dba9048b50257adf4329ef0beb0c4c05839097a0ffd82
|
|
3
|
+
size 61738
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:2b71188f22b83c5f37c86db14e4951bb3bde3b56dff16fa4aae740bcbe881786
|
|
3
|
+
size 100886
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:b5ecd8965dab04211d2f276c3e15918268bf35a9bd475a17b90393db062618a6
|
|
3
|
+
size 103177
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:f98d3c05e86c99bb39120f275fd11165fab0361b402293e97655f69038c5757d
|
|
3
|
+
size 90126
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a5172c026739728f9192e42294943ef83e818685c16a02520017ecbefd0b79f3
|
|
3
|
+
size 52740
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:a7851672fcb7c23132ae79daef3b837f602f95ad40165e69f28202be06285322
|
|
3
|
+
size 148900
|
package/dist/esm/__tests__/vr-tests/__snapshots__/inline-card/vrinline-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:2eef09f9248e7f446ec4d879c77d7020456756331d655e1f3f19c4f315a9bc79
|
|
3
|
+
size 15110
|
|
@@ -3,7 +3,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export var context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card" || '',
|
|
6
|
-
packageVersion: "45.24.
|
|
6
|
+
packageVersion: "45.24.3" || ''
|
|
7
7
|
};
|
|
8
8
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js
CHANGED
|
@@ -5,7 +5,6 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
8
|
import { Box, Inline, Pressable } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
10
|
import { getPrimitivesInlineSpaceBySize } from '../../../getPrimitivesInlineSpaceBySize';
|
|
@@ -56,10 +55,9 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
56
55
|
testId: testId
|
|
57
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
58
57
|
,
|
|
59
|
-
style: style
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} : {}), /*#__PURE__*/React.createElement(Inline, {
|
|
58
|
+
style: style,
|
|
59
|
+
"aria-label": ariaLabel
|
|
60
|
+
}), /*#__PURE__*/React.createElement(Inline, {
|
|
63
61
|
alignBlock: "center",
|
|
64
62
|
grow: "fill",
|
|
65
63
|
space: space
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import useAISummaryAction from '../../../../../state/hooks/use-ai-summary-action';
|
|
6
5
|
import { AISummariseAction } from './ai-summarise-action';
|
|
7
6
|
import { CopySummaryAction } from './copy-summary-action';
|
|
8
|
-
import { CopySummaryActionNew } from './copy-summary-action-new';
|
|
9
7
|
export var AISummaryActionComponent = function AISummaryActionComponent(props) {
|
|
10
8
|
var url = props.url,
|
|
11
9
|
onLoadingChange = props.onLoadingChange,
|
|
@@ -19,12 +17,9 @@ export var AISummaryActionComponent = function AISummaryActionComponent(props) {
|
|
|
19
17
|
useEffect(function () {
|
|
20
18
|
onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(status === 'loading');
|
|
21
19
|
}, [onLoadingChange, status]);
|
|
22
|
-
return status === 'done' ?
|
|
20
|
+
return status === 'done' ? /*#__PURE__*/React.createElement(CopySummaryAction, _extends({}, props, {
|
|
23
21
|
summary: content,
|
|
24
22
|
testId: testId
|
|
25
|
-
})) : /*#__PURE__*/React.createElement(CopySummaryAction, _extends({}, props, {
|
|
26
|
-
testId: testId,
|
|
27
|
-
content: content
|
|
28
23
|
})) : /*#__PURE__*/React.createElement(AISummariseAction, _extends({}, props, {
|
|
29
24
|
testId: testId,
|
|
30
25
|
summariseUrl: summariseUrl,
|
package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["url", "onClick", "
|
|
5
|
+
var _excluded = ["url", "onClick", "summary", "testId"];
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useCallback, useState } from 'react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl';
|
|
@@ -13,8 +13,9 @@ import Action from '../action';
|
|
|
13
13
|
export function CopySummaryAction(_ref) {
|
|
14
14
|
var url = _ref.url,
|
|
15
15
|
onClickCallback = _ref.onClick,
|
|
16
|
+
_ref$summary = _ref.summary,
|
|
17
|
+
summary = _ref$summary === void 0 ? '' : _ref$summary,
|
|
16
18
|
testId = _ref.testId,
|
|
17
|
-
content = _ref.content,
|
|
18
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
20
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
20
21
|
fireEvent = _useAnalyticsEvents.fireEvent;
|
|
@@ -28,7 +29,7 @@ export function CopySummaryAction(_ref) {
|
|
|
28
29
|
case 0:
|
|
29
30
|
fireEvent('ui.button.clicked.copySummary', {});
|
|
30
31
|
_context.next = 1;
|
|
31
|
-
return navigator.clipboard.writeText(
|
|
32
|
+
return navigator.clipboard.writeText(summary);
|
|
32
33
|
case 1:
|
|
33
34
|
setTooltipMessage(messages.copied_summary_action_description);
|
|
34
35
|
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
@@ -37,13 +38,14 @@ export function CopySummaryAction(_ref) {
|
|
|
37
38
|
return _context.stop();
|
|
38
39
|
}
|
|
39
40
|
}, _callee);
|
|
40
|
-
})), [fireEvent, onClickCallback,
|
|
41
|
+
})), [fireEvent, onClickCallback, summary]);
|
|
41
42
|
return /*#__PURE__*/React.createElement(Action, _extends({
|
|
42
43
|
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.copy_summary_action),
|
|
43
44
|
icon: /*#__PURE__*/React.createElement(CopyIcon, {
|
|
44
45
|
color: "currentColor",
|
|
45
46
|
spacing: "spacious",
|
|
46
|
-
label: "Copy Summary"
|
|
47
|
+
label: "Copy Summary",
|
|
48
|
+
size: props.iconSize
|
|
47
49
|
}),
|
|
48
50
|
onClick: handleCopySummaryClick,
|
|
49
51
|
testId: "".concat(testId, "-copy-summary-action"),
|
|
@@ -4,7 +4,6 @@ var _excluded = ["value", "isProject"];
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
6
|
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
7
|
import { ActionName } from '../../../../../constants';
|
|
9
8
|
import { messages } from '../../../../../messages';
|
|
10
9
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context/useFlexibleUiContext';
|
|
@@ -72,10 +71,8 @@ var FollowAction = function FollowAction(props) {
|
|
|
72
71
|
});
|
|
73
72
|
};
|
|
74
73
|
return /*#__PURE__*/React.createElement(ServerAction, _extends({
|
|
75
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, label)
|
|
76
|
-
|
|
77
|
-
ariaLabel: intl.formatMessage(label)
|
|
78
|
-
} : {}, {
|
|
74
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, label),
|
|
75
|
+
ariaLabel: intl.formatMessage(label),
|
|
79
76
|
icon: followIcon,
|
|
80
77
|
testId: "smart-action-follow-action",
|
|
81
78
|
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, tooltipMessage)
|
|
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["onClick"];
|
|
4
4
|
import React, { lazy, useCallback } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
6
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
8
7
|
import { messages } from '../../../../../messages';
|
|
9
8
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context/useFlexibleUiContext';
|
|
@@ -37,13 +36,11 @@ var ViewRelatedLinksAction = function ViewRelatedLinksAction(_ref) {
|
|
|
37
36
|
onClickCallback === null || onClickCallback === void 0 || onClickCallback();
|
|
38
37
|
}, [actionData === null || actionData === void 0 ? void 0 : actionData.ari, fireEvent, modal, onClickCallback]);
|
|
39
38
|
return actionData ? /*#__PURE__*/React.createElement(Action, _extends({
|
|
40
|
-
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} : {}, {
|
|
44
|
-
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, fg('platform_sl_action_refactoring') ? {
|
|
39
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links),
|
|
40
|
+
tooltipMessage: /*#__PURE__*/React.createElement(FormattedMessage, messages.related_links_view_related_links),
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(RelatedLinksActionIcon, {
|
|
45
42
|
iconSize: props.iconSize
|
|
46
|
-
}
|
|
43
|
+
}),
|
|
47
44
|
onClick: onClick,
|
|
48
45
|
testId: "smart-action-view-related-links-action",
|
|
49
46
|
ariaLabel: "View most recent pages or content types coming from or found on this link"
|
|
@@ -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.24.
|
|
15
|
+
packageVersion: "45.24.3",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
package/dist/types/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AISummaryActionData } from '../../../../../state/flexible-ui-context/types';
|
|
3
3
|
import type { AISummaryActionProps } from './types';
|
|
4
|
-
export declare function CopySummaryAction({ url, onClick: onClickCallback,
|
|
5
|
-
|
|
4
|
+
export declare function CopySummaryAction({ url, onClick: onClickCallback, summary, testId, ...props }: AISummaryActionProps & AISummaryActionData & {
|
|
5
|
+
summary?: string;
|
|
6
6
|
}): React.JSX.Element;
|