@atlaskit/smart-card 43.17.5 → 43.17.7
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 +19 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +2 -2
- package/dist/cjs/__tests__/vr-tests/__snapshots__/card-ssr/block-card-ssr--default.png +2 -2
- package/dist/cjs/extractors/common/icon/extractIcon.js +1 -1
- package/dist/cjs/ssr.js +4 -12
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/EmbedCard/views/ResolvedView.js +1 -1
- package/dist/cjs/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.compiled.css +15 -1
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +108 -1
- package/dist/cjs/view/EmbedModal/index.js +13 -4
- package/dist/cjs/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/delete-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/download-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/edit-action/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/Icon.js +1 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +2 -2
- package/dist/es2019/__tests__/vr-tests/__snapshots__/card-ssr/block-card-ssr--default.png +2 -2
- package/dist/es2019/extractors/common/icon/extractIcon.js +1 -1
- package/dist/es2019/ssr.js +4 -12
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/EmbedCard/views/ResolvedView.js +1 -1
- package/dist/es2019/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.compiled.css +15 -1
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +103 -1
- package/dist/es2019/view/EmbedModal/index.js +13 -4
- package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/delete-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/download-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/edit-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/Icon.js +1 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-unauthorised-view-with-experiment--default--platform-sl-3p-unauth-paste-as-block-card-card-by-default-and-new-design.png +2 -2
- package/dist/esm/__tests__/vr-tests/__snapshots__/card-ssr/block-card-ssr--default.png +2 -2
- package/dist/esm/extractors/common/icon/extractIcon.js +1 -1
- package/dist/esm/ssr.js +4 -12
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/EmbedCard/views/ResolvedView.js +1 -1
- package/dist/esm/view/EmbedCard/views/unresolved-view/index.js +1 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.compiled.css +15 -1
- package/dist/esm/view/EmbedModal/components/link-info/index.js +108 -1
- package/dist/esm/view/EmbedModal/index.js +13 -4
- package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/copy-link-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/delete-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/download-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/edit-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.js +1 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/Icon.js +1 -1
- package/dist/types/view/EmbedModal/components/link-info/index.d.ts +7 -2
- package/dist/types/view/EmbedModal/components/link-info/types.d.ts +2 -0
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/index.d.ts +7 -2
- package/dist/types-ts4.5/view/EmbedModal/components/link-info/types.d.ts +2 -0
- package/package.json +10 -10
|
@@ -10,6 +10,7 @@ import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
|
|
|
10
10
|
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
11
11
|
import { CloseButton, useModal } from '@atlaskit/modal-dialog';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
13
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
15
|
import { messages } from '../../../../messages';
|
|
15
16
|
import { Icon } from '../../../common/Icon';
|
|
@@ -24,6 +25,9 @@ const iconSize = '24px';
|
|
|
24
25
|
const iconCss = null;
|
|
25
26
|
const titleCss = null;
|
|
26
27
|
const actionCss = null;
|
|
28
|
+
const buttonGroupCss = null;
|
|
29
|
+
const listItemCSS = null;
|
|
30
|
+
const resizeButtonCss = null;
|
|
27
31
|
const LinkInfo = ({
|
|
28
32
|
icon,
|
|
29
33
|
providerName,
|
|
@@ -125,4 +129,102 @@ const LinkInfo = ({
|
|
|
125
129
|
testId: testId
|
|
126
130
|
}))));
|
|
127
131
|
};
|
|
128
|
-
|
|
132
|
+
const LinkInfoNew = ({
|
|
133
|
+
focusRef,
|
|
134
|
+
icon,
|
|
135
|
+
providerName,
|
|
136
|
+
onDownloadButtonClick,
|
|
137
|
+
onResizeButtonClick,
|
|
138
|
+
onViewButtonClick,
|
|
139
|
+
size,
|
|
140
|
+
testId,
|
|
141
|
+
title
|
|
142
|
+
}) => {
|
|
143
|
+
const {
|
|
144
|
+
onClose
|
|
145
|
+
} = useModal();
|
|
146
|
+
const {
|
|
147
|
+
formatMessage
|
|
148
|
+
} = useIntl();
|
|
149
|
+
const downloadButton = useMemo(() => /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
150
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.download),
|
|
151
|
+
icon: () => /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
152
|
+
label: "",
|
|
153
|
+
spacing: "spacious",
|
|
154
|
+
color: "currentColor"
|
|
155
|
+
}),
|
|
156
|
+
label: messages.download,
|
|
157
|
+
onClick: onDownloadButtonClick,
|
|
158
|
+
testId: `${testId}-download`
|
|
159
|
+
}), [onDownloadButtonClick, testId]);
|
|
160
|
+
const urlButton = useMemo(() => {
|
|
161
|
+
if (onViewButtonClick) {
|
|
162
|
+
const content = providerName ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.viewIn), " ", providerName) : /*#__PURE__*/React.createElement(FormattedMessage, messages.viewOriginal);
|
|
163
|
+
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
164
|
+
content: content,
|
|
165
|
+
icon: () => /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
166
|
+
label: "",
|
|
167
|
+
spacing: "spacious",
|
|
168
|
+
color: "currentColor"
|
|
169
|
+
}),
|
|
170
|
+
label: messages.viewOriginal,
|
|
171
|
+
onClick: onViewButtonClick,
|
|
172
|
+
testId: `${testId}-url`
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}, [onViewButtonClick, providerName, testId]);
|
|
176
|
+
const sizeButton = useMemo(() => {
|
|
177
|
+
const isFullScreen = size === MAX_MODAL_SIZE;
|
|
178
|
+
const message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
|
|
179
|
+
const icon = isFullScreen ? /*#__PURE__*/React.createElement(FullscreenExitIcon, {
|
|
180
|
+
label: "",
|
|
181
|
+
spacing: "spacious",
|
|
182
|
+
color: "currentColor"
|
|
183
|
+
}) : /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
|
|
184
|
+
label: "",
|
|
185
|
+
spacing: "spacious",
|
|
186
|
+
color: "currentColor"
|
|
187
|
+
});
|
|
188
|
+
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
189
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, message),
|
|
190
|
+
icon: () => icon,
|
|
191
|
+
label: message,
|
|
192
|
+
onClick: onResizeButtonClick,
|
|
193
|
+
testId: `${testId}-resize`
|
|
194
|
+
});
|
|
195
|
+
}, [onResizeButtonClick, size, testId]);
|
|
196
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
197
|
+
className: ax(["_zulpu2gc _1e0c1txw _19bv1ejb _u5f31ejb _ca0q1ejb _n3tdpxbi _1wpz1fhb _4t3i1tcg"])
|
|
198
|
+
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
199
|
+
"data-testid": `${testId}-icon`,
|
|
200
|
+
className: ax(["_4t3i1tcg _gire1tcg _yrry1tcg _1bnm1tcg _bna71tcg _1xjx1tcg _17521tcg _1tke1tcg _x9xj1tcg _v5981tcg _z15s1tcg _qci81tcg _15iz1tcg _erub1tcg _c71l1tcg _1q121tcg _2s1x1tcg _1rh41tcg _19l31tcg _1pr21tcg _1u5t1tcg _1bsb1tcg _1xyl1tcg _1h1b1tcg _prfw1tcg _mezj1tcg _e2oo1tcg _w8l51tcg _1ul91tcg _1ekg1tcg _jbhf1tcg _11hh1tcg _1rg21tcg _q7cv1tcg _xwbj1tcg _p12f1tcg _1mj01tcg _1r9c1tcg _1xch1tcg _rtys1tcg _b8nk1tcg _4x201tcg"])
|
|
201
|
+
}, /*#__PURE__*/React.createElement(Icon, icon)), /*#__PURE__*/React.createElement("div", {
|
|
202
|
+
className: ax(["_16jlkb7n _1o9zidpf _i0dlf1ug _1e0c1txw _2lx21bp4 _1bah1h6o _1wpz1fhb"])
|
|
203
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
204
|
+
size: "small",
|
|
205
|
+
color: "color.text",
|
|
206
|
+
ref: focusRef,
|
|
207
|
+
testId: `${testId}-title`
|
|
208
|
+
}, title)), /*#__PURE__*/React.createElement("ul", {
|
|
209
|
+
role: "list",
|
|
210
|
+
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _qtt8glyw _1e0c1txw _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _1pfhze3t _6rthze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bozgze3t"])
|
|
211
|
+
}, onDownloadButtonClick && /*#__PURE__*/React.createElement("li", {
|
|
212
|
+
className: ax(["_4cvr1h6o _19pkidpf"])
|
|
213
|
+
}, downloadButton), /*#__PURE__*/React.createElement("li", {
|
|
214
|
+
className: ax(["_4cvr1h6o _19pkidpf"])
|
|
215
|
+
}, urlButton), /*#__PURE__*/React.createElement("li", {
|
|
216
|
+
className: ax(["_4cvr1h6o _19pkidpf", "_1dt6glyw"])
|
|
217
|
+
}, sizeButton), /*#__PURE__*/React.createElement("li", {
|
|
218
|
+
className: ax(["_4cvr1h6o _19pkidpf"])
|
|
219
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
220
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
|
|
221
|
+
hideTooltipOnClick: true,
|
|
222
|
+
tag: "span",
|
|
223
|
+
testId: `${testId}-close-tooltip`
|
|
224
|
+
}, /*#__PURE__*/React.createElement(CloseButton, {
|
|
225
|
+
onClick: onClose,
|
|
226
|
+
label: formatMessage(messages.preview_close),
|
|
227
|
+
testId: testId
|
|
228
|
+
})))));
|
|
229
|
+
};
|
|
230
|
+
export default componentWithFG('platform_navx_sl_a11y_embed_modal', LinkInfoNew, LinkInfo);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useRef, useState } from 'react';
|
|
3
3
|
import ModalDialog, { ModalBody, ModalTransition } from '@atlaskit/modal-dialog';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
5
6
|
import { SmartLinkSize } from '../../constants';
|
|
6
7
|
import useInvokeClientAction from '../../state/hooks/use-invoke-client-action';
|
|
@@ -38,6 +39,9 @@ const EmbedModal = ({
|
|
|
38
39
|
const [isOpen, setIsOpen] = useState(showModal);
|
|
39
40
|
const [width, setWidth] = useState(defaultWidth);
|
|
40
41
|
const openAt = useRef();
|
|
42
|
+
const focusRef = fg('platform_navx_sl_a11y_embed_modal') ?
|
|
43
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
44
|
+
useRef(null) : undefined;
|
|
41
45
|
const invoke = useInvokeClientAction({
|
|
42
46
|
fireEvent
|
|
43
47
|
});
|
|
@@ -79,7 +83,9 @@ const EmbedModal = ({
|
|
|
79
83
|
if (previewUrl && isSupportTheming) {
|
|
80
84
|
previewUrl = getPreviewUrlWithTheme(previewUrl, themeState);
|
|
81
85
|
}
|
|
82
|
-
return /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(ModalDialog, {
|
|
86
|
+
return /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(ModalDialog, _extends({}, fg('platform_navx_sl_a11y_embed_modal') ? {
|
|
87
|
+
autoFocus: focusRef
|
|
88
|
+
} : undefined, {
|
|
83
89
|
height: "100%",
|
|
84
90
|
onClose: handleOnClose,
|
|
85
91
|
onCloseComplete: handleOnCloseComplete,
|
|
@@ -88,13 +94,16 @@ const EmbedModal = ({
|
|
|
88
94
|
width: width,
|
|
89
95
|
label: title,
|
|
90
96
|
isBlanketHidden: isBlanketHidden
|
|
91
|
-
}, /*#__PURE__*/React.createElement(LinkInfo, {
|
|
97
|
+
}), /*#__PURE__*/React.createElement(LinkInfo, _extends({
|
|
92
98
|
icon: linkIcon && {
|
|
93
99
|
icon: /*#__PURE__*/React.createElement(BaseIconElement, _extends({}, linkIcon, {
|
|
94
100
|
size: SmartLinkSize.Large
|
|
95
101
|
})),
|
|
96
102
|
isFlexibleUi: true
|
|
97
|
-
}
|
|
103
|
+
}
|
|
104
|
+
}, fg('platform_navx_sl_a11y_embed_modal') ? {
|
|
105
|
+
focusRef
|
|
106
|
+
} : undefined, {
|
|
98
107
|
providerName: providerName,
|
|
99
108
|
onViewButtonClick: invokeViewAction ? handleOnViewActionClick : undefined,
|
|
100
109
|
onDownloadButtonClick: invokeDownloadAction ? handleOnDownloadActionClick : undefined,
|
|
@@ -102,7 +111,7 @@ const EmbedModal = ({
|
|
|
102
111
|
size: width,
|
|
103
112
|
title: title,
|
|
104
113
|
testId: testId
|
|
105
|
-
}), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(EmbedContent, {
|
|
114
|
+
})), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(EmbedContent, {
|
|
106
115
|
isTrusted: isTrusted,
|
|
107
116
|
name: iframeName,
|
|
108
117
|
src: previewUrl,
|
package/dist/es2019/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import CopyIcon from '@atlaskit/icon/core/
|
|
4
|
+
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
5
5
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
6
6
|
import { messages } from '../../../../../messages';
|
|
7
7
|
import Action from '../action';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useState } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import LinkIcon from '@atlaskit/icon/core/
|
|
4
|
+
import LinkIcon from '@atlaskit/icon/core/link';
|
|
5
5
|
import { ActionName } from '../../../../../constants';
|
|
6
6
|
import { messages } from '../../../../../messages';
|
|
7
7
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
4
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
5
5
|
import { messages } from '../../../../../messages';
|
|
6
6
|
import Action from '../action';
|
|
7
7
|
const DeleteAction = props => /*#__PURE__*/React.createElement(Action, _extends({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import DownloadIcon from '@atlaskit/icon/core/
|
|
4
|
+
import DownloadIcon from '@atlaskit/icon/core/download';
|
|
5
5
|
import { ActionName } from '../../../../../constants';
|
|
6
6
|
import { messages } from '../../../../../messages';
|
|
7
7
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import EditIcon from '@atlaskit/icon/core/
|
|
4
|
+
import EditIcon from '@atlaskit/icon/core/edit';
|
|
5
5
|
import { messages } from '../../../../../messages';
|
|
6
6
|
import Action from '../action';
|
|
7
7
|
const EditAction = props => /*#__PURE__*/React.createElement(Action, _extends({
|
|
@@ -6,7 +6,7 @@ import "./index.compiled.css";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
-
import LinkIcon from '@atlaskit/icon/core/
|
|
9
|
+
import LinkIcon from '@atlaskit/icon/core/link';
|
|
10
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import Tile from '@atlaskit/tile';
|
|
12
12
|
import { SmartLinkPosition, SmartLinkSize } from '../../../../../../constants';
|
|
@@ -8,7 +8,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
9
|
import { cx } from '@compiled/react';
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
11
|
-
import ChevronDownIcon from '@atlaskit/icon/core/
|
|
11
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
12
12
|
import Lozenge from '@atlaskit/lozenge';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
import { di } from 'react-magnetic-di';
|
|
8
8
|
import ImageLoader from 'react-render-image';
|
|
9
|
-
import LinkIcon from '@atlaskit/icon/core/
|
|
9
|
+
import LinkIcon from '@atlaskit/icon/core/link';
|
|
10
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import { B400 } from '@atlaskit/theme/colors';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
const PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "43.17.
|
|
15
|
+
packageVersion: "43.17.6",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -3,7 +3,7 @@ import "./Icon.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import ImageLoader from 'react-render-image';
|
|
6
|
-
import LinkIcon from '@atlaskit/icon/core/
|
|
6
|
+
import LinkIcon from '@atlaskit/icon/core/link';
|
|
7
7
|
/**
|
|
8
8
|
* Class name for selecting non-flexible block card icon image
|
|
9
9
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:7539dc58765cc3a644800473955f56a8410e7750b326a8a043680cfe70263d8a
|
|
3
|
+
size 95118
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
version https://git-lfs.github.com/spec/v1
|
|
2
|
-
oid sha256:
|
|
3
|
-
size
|
|
2
|
+
oid sha256:913988a97d9d0de73709ab6a078ad6d16e6e8bad73a240669ad03dc7e3326fe9
|
|
3
|
+
size 2574
|
|
@@ -4,7 +4,7 @@ import RepoIcon from '@atlaskit/icon-object/glyph/code/16';
|
|
|
4
4
|
import CommitIcon from '@atlaskit/icon-object/glyph/commit/16';
|
|
5
5
|
import PullRequestIcon from '@atlaskit/icon-object/glyph/pull-request/16';
|
|
6
6
|
import TaskIcon from '@atlaskit/icon-object/glyph/task/16';
|
|
7
|
-
import PeopleGroupIcon from '@atlaskit/icon/core/
|
|
7
|
+
import PeopleGroupIcon from '@atlaskit/icon/core/people-group';
|
|
8
8
|
import { extractProvider, extractTitle, extractUrlFromIconJsonLd } from '@atlaskit/link-extractors';
|
|
9
9
|
import { getIconForFileType } from '../../../utils';
|
|
10
10
|
import { extractTaskType } from '../lozenge/extractTaskType';
|
package/dist/esm/ssr.js
CHANGED
|
@@ -7,7 +7,6 @@ import { ErrorBoundary } from 'react-error-boundary';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
8
8
|
import uuid from 'uuid';
|
|
9
9
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { context } from './utils/analytics/analytics';
|
|
12
11
|
import { CardWithUrlContent } from './view/CardWithUrl/component';
|
|
13
12
|
import { LoadingCardLink } from './view/CardWithUrl/component-lazy/LoadingCardLink';
|
|
@@ -32,19 +31,12 @@ export var CardSSR = function CardSSR(props) {
|
|
|
32
31
|
}
|
|
33
32
|
return /*#__PURE__*/React.createElement(LoadingCardLink, cardProps);
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
var Component = cardProps.appearance === 'inline' ? 'span' : 'div';
|
|
37
|
-
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
38
|
-
data: context
|
|
39
|
-
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
40
|
-
FallbackComponent: errorBoundaryFallbackComponent
|
|
41
|
-
}, /*#__PURE__*/React.createElement(Component, {
|
|
42
|
-
className: "loader-wrapper"
|
|
43
|
-
}, /*#__PURE__*/React.createElement(CardWithUrlContent, cardProps))));
|
|
44
|
-
}
|
|
34
|
+
var Component = cardProps.appearance === 'inline' ? 'span' : 'div';
|
|
45
35
|
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
46
36
|
data: context
|
|
47
37
|
}, /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
48
38
|
FallbackComponent: errorBoundaryFallbackComponent
|
|
49
|
-
}, /*#__PURE__*/React.createElement(
|
|
39
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
40
|
+
className: "loader-wrapper"
|
|
41
|
+
}, /*#__PURE__*/React.createElement(CardWithUrlContent, cardProps))));
|
|
50
42
|
};
|
|
@@ -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: "43.17.
|
|
7
|
+
packageVersion: "43.17.6"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import LinkGlyph from '@atlaskit/icon/core/
|
|
3
|
+
import LinkGlyph from '@atlaskit/icon/core/link';
|
|
4
4
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
5
5
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
6
6
|
import { getPreviewUrlWithTheme, isProfileType } from '../../../utils';
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
5
|
import Heading from '@atlaskit/heading';
|
|
6
|
-
import LinkGlyph from '@atlaskit/icon/core/
|
|
6
|
+
import LinkGlyph from '@atlaskit/icon/core/link';
|
|
7
7
|
import { ExpandedFrame } from '../../components/ExpandedFrame';
|
|
8
8
|
import { ImageIcon } from '../../components/ImageIcon';
|
|
9
9
|
var containerStyles = null;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
._qtt8glyw{list-style:none}
|
|
2
3
|
._zulp1b66{gap:var(--ds-space-050,4px)}
|
|
3
4
|
._zulpu2gc{gap:var(--ds-space-100,8px)}._11hh1tcg [data-smart-element-icon] svg{min-width:24px}
|
|
4
5
|
._15iz1tcg span{min-height:24px}
|
|
5
6
|
._16jlidpf{flex-grow:0}
|
|
6
7
|
._16jlkb7n{flex-grow:1}
|
|
7
8
|
._17521tcg svg{height:24px}
|
|
9
|
+
._18u0ze3t{margin-left:var(--ds-space-0,0)}
|
|
8
10
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
11
|
+
._19bvze3t{padding-left:var(--ds-space-0,0)}
|
|
9
12
|
._19l31tcg img{max-height:24px}
|
|
13
|
+
._19pkidpf{margin-top:0}
|
|
14
|
+
._19pkze3t{margin-top:var(--ds-space-0,0)}
|
|
10
15
|
._1bah1h6o{justify-content:center}
|
|
11
16
|
._1bnm1tcg [data-smart-element-icon] svg{height:24px}
|
|
12
17
|
._1bsb1tcg{width:24px}
|
|
@@ -15,6 +20,7 @@
|
|
|
15
20
|
._1h1b1tcg [data-smart-element-icon] span{width:24px}
|
|
16
21
|
._1mj01tcg [data-smart-element-icon] img{max-width:24px}
|
|
17
22
|
._1o9zidpf{flex-shrink:0}
|
|
23
|
+
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
18
24
|
._1pr21tcg span{max-height:24px}
|
|
19
25
|
._1q121tcg [data-smart-element-icon] img{max-height:24px}
|
|
20
26
|
._1r9c1tcg [data-smart-element-icon] span{max-width:24px}
|
|
@@ -27,14 +33,19 @@
|
|
|
27
33
|
._1xch1tcg [data-smart-element-icon] svg{max-width:24px}
|
|
28
34
|
._1xjx1tcg span{height:24px}
|
|
29
35
|
._1xyl1tcg [data-smart-element-icon] img{width:24px}
|
|
36
|
+
._2hwxze3t{margin-right:var(--ds-space-0,0)}
|
|
30
37
|
._2lx21bp4{flex-direction:column}
|
|
31
38
|
._2s1x1tcg [data-smart-element-icon] span{max-height:24px}
|
|
39
|
+
._4cvr1h6o{align-items:center}
|
|
32
40
|
._4t3i1tcg{height:24px}
|
|
33
41
|
._4x201tcg svg{max-width:24px}
|
|
42
|
+
._6rthze3t{margin-block-end:var(--ds-space-0,0)}
|
|
34
43
|
._b8nk1tcg span{max-width:24px}
|
|
35
44
|
._bna71tcg img{height:24px}
|
|
45
|
+
._bozgze3t{padding-inline-start:var(--ds-space-0,0)}
|
|
36
46
|
._c71l1tcg{max-height:24px}
|
|
37
47
|
._ca0q1ejb{padding-top:var(--ds-space-300,24px)}
|
|
48
|
+
._ca0qze3t{padding-top:var(--ds-space-0,0)}
|
|
38
49
|
._e2oo1tcg span{width:24px}
|
|
39
50
|
._erub1tcg svg{min-height:24px}
|
|
40
51
|
._gire1tcg [data-smart-element-icon] img{height:24px}
|
|
@@ -43,16 +54,19 @@
|
|
|
43
54
|
._jbhf1tcg [data-smart-element-icon] span{min-width:24px}
|
|
44
55
|
._mezj1tcg img{width:24px}
|
|
45
56
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
57
|
+
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
58
|
+
._otyrze3t{margin-bottom:var(--ds-space-0,0)}
|
|
46
59
|
._p12f1tcg{max-width:24px}
|
|
47
60
|
._prfw1tcg [data-smart-element-icon] svg{width:24px}
|
|
48
61
|
._q7cv1tcg span{min-width:24px}
|
|
49
62
|
._qci81tcg img{min-height:24px}
|
|
50
63
|
._rtys1tcg img{max-width:24px}
|
|
51
64
|
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
65
|
+
._u5f3ze3t{padding-right:var(--ds-space-0,0)}
|
|
52
66
|
._v5981tcg [data-smart-element-icon] span{min-height:24px}
|
|
53
67
|
._w8l51tcg svg{width:24px}
|
|
54
68
|
._x9xj1tcg [data-smart-element-icon] img{min-height:24px}
|
|
55
69
|
._xwbj1tcg svg{min-width:24px}
|
|
56
70
|
._yrry1tcg [data-smart-element-icon] span{height:24px}
|
|
57
71
|
._z15s1tcg [data-smart-element-icon] svg{min-height:24px}
|
|
58
|
-
@media only screen and (max-width:980px){._3kllglyw .smart-link-resize-button{display:none}}
|
|
72
|
+
@media only screen and (max-width:980px){._1dt6glyw{display:none}._3kllglyw .smart-link-resize-button{display:none}}
|
|
@@ -10,6 +10,7 @@ import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
|
|
|
10
10
|
import ShortcutIcon from '@atlaskit/icon/core/link-external';
|
|
11
11
|
import { CloseButton, useModal } from '@atlaskit/modal-dialog';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
|
|
13
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
15
|
import { messages } from '../../../../messages';
|
|
15
16
|
import { Icon } from '../../../common/Icon';
|
|
@@ -24,6 +25,9 @@ var iconSize = '24px';
|
|
|
24
25
|
var iconCss = null;
|
|
25
26
|
var titleCss = null;
|
|
26
27
|
var actionCss = null;
|
|
28
|
+
var buttonGroupCss = null;
|
|
29
|
+
var listItemCSS = null;
|
|
30
|
+
var resizeButtonCss = null;
|
|
27
31
|
var LinkInfo = function LinkInfo(_ref) {
|
|
28
32
|
var icon = _ref.icon,
|
|
29
33
|
providerName = _ref.providerName,
|
|
@@ -128,4 +132,107 @@ var LinkInfo = function LinkInfo(_ref) {
|
|
|
128
132
|
testId: testId
|
|
129
133
|
}))));
|
|
130
134
|
};
|
|
131
|
-
|
|
135
|
+
var LinkInfoNew = function LinkInfoNew(_ref2) {
|
|
136
|
+
var focusRef = _ref2.focusRef,
|
|
137
|
+
icon = _ref2.icon,
|
|
138
|
+
providerName = _ref2.providerName,
|
|
139
|
+
onDownloadButtonClick = _ref2.onDownloadButtonClick,
|
|
140
|
+
onResizeButtonClick = _ref2.onResizeButtonClick,
|
|
141
|
+
onViewButtonClick = _ref2.onViewButtonClick,
|
|
142
|
+
size = _ref2.size,
|
|
143
|
+
testId = _ref2.testId,
|
|
144
|
+
title = _ref2.title;
|
|
145
|
+
var _useModal2 = useModal(),
|
|
146
|
+
onClose = _useModal2.onClose;
|
|
147
|
+
var _useIntl2 = useIntl(),
|
|
148
|
+
formatMessage = _useIntl2.formatMessage;
|
|
149
|
+
var downloadButton = useMemo(function () {
|
|
150
|
+
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
151
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.download),
|
|
152
|
+
icon: function icon() {
|
|
153
|
+
return /*#__PURE__*/React.createElement(DownloadIcon, {
|
|
154
|
+
label: "",
|
|
155
|
+
spacing: "spacious",
|
|
156
|
+
color: "currentColor"
|
|
157
|
+
});
|
|
158
|
+
},
|
|
159
|
+
label: messages.download,
|
|
160
|
+
onClick: onDownloadButtonClick,
|
|
161
|
+
testId: "".concat(testId, "-download")
|
|
162
|
+
});
|
|
163
|
+
}, [onDownloadButtonClick, testId]);
|
|
164
|
+
var urlButton = useMemo(function () {
|
|
165
|
+
if (onViewButtonClick) {
|
|
166
|
+
var content = providerName ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormattedMessage, messages.viewIn), " ", providerName) : /*#__PURE__*/React.createElement(FormattedMessage, messages.viewOriginal);
|
|
167
|
+
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
168
|
+
content: content,
|
|
169
|
+
icon: function icon() {
|
|
170
|
+
return /*#__PURE__*/React.createElement(ShortcutIcon, {
|
|
171
|
+
label: "",
|
|
172
|
+
spacing: "spacious",
|
|
173
|
+
color: "currentColor"
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
label: messages.viewOriginal,
|
|
177
|
+
onClick: onViewButtonClick,
|
|
178
|
+
testId: "".concat(testId, "-url")
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}, [onViewButtonClick, providerName, testId]);
|
|
182
|
+
var sizeButton = useMemo(function () {
|
|
183
|
+
var isFullScreen = size === MAX_MODAL_SIZE;
|
|
184
|
+
var message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
|
|
185
|
+
var _icon2 = isFullScreen ? /*#__PURE__*/React.createElement(FullscreenExitIcon, {
|
|
186
|
+
label: "",
|
|
187
|
+
spacing: "spacious",
|
|
188
|
+
color: "currentColor"
|
|
189
|
+
}) : /*#__PURE__*/React.createElement(VidFullScreenOnIcon, {
|
|
190
|
+
label: "",
|
|
191
|
+
spacing: "spacious",
|
|
192
|
+
color: "currentColor"
|
|
193
|
+
});
|
|
194
|
+
return /*#__PURE__*/React.createElement(LinkInfoButton, {
|
|
195
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, message),
|
|
196
|
+
icon: function icon() {
|
|
197
|
+
return _icon2;
|
|
198
|
+
},
|
|
199
|
+
label: message,
|
|
200
|
+
onClick: onResizeButtonClick,
|
|
201
|
+
testId: "".concat(testId, "-resize")
|
|
202
|
+
});
|
|
203
|
+
}, [onResizeButtonClick, size, testId]);
|
|
204
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
205
|
+
className: ax(["_zulpu2gc _1e0c1txw _19bv1ejb _u5f31ejb _ca0q1ejb _n3tdpxbi _1wpz1fhb _4t3i1tcg"])
|
|
206
|
+
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
207
|
+
"data-testid": "".concat(testId, "-icon"),
|
|
208
|
+
className: ax(["_4t3i1tcg _gire1tcg _yrry1tcg _1bnm1tcg _bna71tcg _1xjx1tcg _17521tcg _1tke1tcg _x9xj1tcg _v5981tcg _z15s1tcg _qci81tcg _15iz1tcg _erub1tcg _c71l1tcg _1q121tcg _2s1x1tcg _1rh41tcg _19l31tcg _1pr21tcg _1u5t1tcg _1bsb1tcg _1xyl1tcg _1h1b1tcg _prfw1tcg _mezj1tcg _e2oo1tcg _w8l51tcg _1ul91tcg _1ekg1tcg _jbhf1tcg _11hh1tcg _1rg21tcg _q7cv1tcg _xwbj1tcg _p12f1tcg _1mj01tcg _1r9c1tcg _1xch1tcg _rtys1tcg _b8nk1tcg _4x201tcg"])
|
|
209
|
+
}, /*#__PURE__*/React.createElement(Icon, icon)), /*#__PURE__*/React.createElement("div", {
|
|
210
|
+
className: ax(["_16jlkb7n _1o9zidpf _i0dlf1ug _1e0c1txw _2lx21bp4 _1bah1h6o _1wpz1fhb"])
|
|
211
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
212
|
+
size: "small",
|
|
213
|
+
color: "color.text",
|
|
214
|
+
ref: focusRef,
|
|
215
|
+
testId: "".concat(testId, "-title")
|
|
216
|
+
}, title)), /*#__PURE__*/React.createElement("ul", {
|
|
217
|
+
role: "list",
|
|
218
|
+
className: ax(["_16jlidpf _1o9zidpf _i0dl1wug _zulp1b66 _qtt8glyw _1e0c1txw _19pkze3t _2hwxze3t _otyrze3t _18u0ze3t _1pfhze3t _6rthze3t _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _bozgze3t"])
|
|
219
|
+
}, onDownloadButtonClick && /*#__PURE__*/React.createElement("li", {
|
|
220
|
+
className: ax(["_4cvr1h6o _19pkidpf"])
|
|
221
|
+
}, downloadButton), /*#__PURE__*/React.createElement("li", {
|
|
222
|
+
className: ax(["_4cvr1h6o _19pkidpf"])
|
|
223
|
+
}, urlButton), /*#__PURE__*/React.createElement("li", {
|
|
224
|
+
className: ax(["_4cvr1h6o _19pkidpf", "_1dt6glyw"])
|
|
225
|
+
}, sizeButton), /*#__PURE__*/React.createElement("li", {
|
|
226
|
+
className: ax(["_4cvr1h6o _19pkidpf"])
|
|
227
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
228
|
+
content: /*#__PURE__*/React.createElement(FormattedMessage, messages.preview_close),
|
|
229
|
+
hideTooltipOnClick: true,
|
|
230
|
+
tag: "span",
|
|
231
|
+
testId: "".concat(testId, "-close-tooltip")
|
|
232
|
+
}, /*#__PURE__*/React.createElement(CloseButton, {
|
|
233
|
+
onClick: onClose,
|
|
234
|
+
label: formatMessage(messages.preview_close),
|
|
235
|
+
testId: testId
|
|
236
|
+
})))));
|
|
237
|
+
};
|
|
238
|
+
export default componentWithFG('platform_navx_sl_a11y_embed_modal', LinkInfoNew, LinkInfo);
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useCallback, useRef, useState } from 'react';
|
|
4
4
|
import ModalDialog, { ModalBody, ModalTransition } from '@atlaskit/modal-dialog';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
6
7
|
import { SmartLinkSize } from '../../constants';
|
|
7
8
|
import useInvokeClientAction from '../../state/hooks/use-invoke-client-action';
|
|
@@ -51,6 +52,9 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
51
52
|
width = _useState4[0],
|
|
52
53
|
setWidth = _useState4[1];
|
|
53
54
|
var openAt = useRef();
|
|
55
|
+
var focusRef = fg('platform_navx_sl_a11y_embed_modal') ?
|
|
56
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
57
|
+
useRef(null) : undefined;
|
|
54
58
|
var invoke = useInvokeClientAction({
|
|
55
59
|
fireEvent: fireEvent
|
|
56
60
|
});
|
|
@@ -94,7 +98,9 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
94
98
|
if (previewUrl && isSupportTheming) {
|
|
95
99
|
previewUrl = getPreviewUrlWithTheme(previewUrl, themeState);
|
|
96
100
|
}
|
|
97
|
-
return /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(ModalDialog, {
|
|
101
|
+
return /*#__PURE__*/React.createElement(ModalTransition, null, isOpen && /*#__PURE__*/React.createElement(ModalDialog, _extends({}, fg('platform_navx_sl_a11y_embed_modal') ? {
|
|
102
|
+
autoFocus: focusRef
|
|
103
|
+
} : undefined, {
|
|
98
104
|
height: "100%",
|
|
99
105
|
onClose: handleOnClose,
|
|
100
106
|
onCloseComplete: handleOnCloseComplete,
|
|
@@ -103,13 +109,16 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
103
109
|
width: width,
|
|
104
110
|
label: title,
|
|
105
111
|
isBlanketHidden: isBlanketHidden
|
|
106
|
-
}, /*#__PURE__*/React.createElement(LinkInfo, {
|
|
112
|
+
}), /*#__PURE__*/React.createElement(LinkInfo, _extends({
|
|
107
113
|
icon: linkIcon && {
|
|
108
114
|
icon: /*#__PURE__*/React.createElement(BaseIconElement, _extends({}, linkIcon, {
|
|
109
115
|
size: SmartLinkSize.Large
|
|
110
116
|
})),
|
|
111
117
|
isFlexibleUi: true
|
|
112
|
-
}
|
|
118
|
+
}
|
|
119
|
+
}, fg('platform_navx_sl_a11y_embed_modal') ? {
|
|
120
|
+
focusRef: focusRef
|
|
121
|
+
} : undefined, {
|
|
113
122
|
providerName: providerName,
|
|
114
123
|
onViewButtonClick: invokeViewAction ? handleOnViewActionClick : undefined,
|
|
115
124
|
onDownloadButtonClick: invokeDownloadAction ? handleOnDownloadActionClick : undefined,
|
|
@@ -117,7 +126,7 @@ var EmbedModal = function EmbedModal(_ref) {
|
|
|
117
126
|
size: width,
|
|
118
127
|
title: title,
|
|
119
128
|
testId: testId
|
|
120
|
-
}), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(EmbedContent, {
|
|
129
|
+
})), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(EmbedContent, {
|
|
121
130
|
isTrusted: isTrusted,
|
|
122
131
|
name: iframeName,
|
|
123
132
|
src: previewUrl,
|
package/dist/esm/view/FlexibleCard/components/actions/ai-summary-action/copy-summary-action.js
CHANGED
|
@@ -6,7 +6,7 @@ var _excluded = ["url", "onClick", "testId", "content"];
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useCallback, useState } from 'react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
|
-
import CopyIcon from '@atlaskit/icon/core/
|
|
9
|
+
import CopyIcon from '@atlaskit/icon/core/copy';
|
|
10
10
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
11
11
|
import { messages } from '../../../../../messages';
|
|
12
12
|
import Action from '../action';
|
|
@@ -9,7 +9,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
9
9
|
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; }
|
|
10
10
|
import React, { useCallback, useState } from 'react';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
|
-
import LinkIcon from '@atlaskit/icon/core/
|
|
12
|
+
import LinkIcon from '@atlaskit/icon/core/link';
|
|
13
13
|
import { ActionName } from '../../../../../constants';
|
|
14
14
|
import { messages } from '../../../../../messages';
|
|
15
15
|
import { useFlexibleUiContext } from '../../../../../state/flexible-ui-context';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import CrossIcon from '@atlaskit/icon/core/
|
|
4
|
+
import CrossIcon from '@atlaskit/icon/core/cross';
|
|
5
5
|
import { messages } from '../../../../../messages';
|
|
6
6
|
import Action from '../action';
|
|
7
7
|
var DeleteAction = function DeleteAction(props) {
|