@atlaskit/smart-card 46.13.14 → 46.13.15
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 +21 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/block-card/block-card-google-doc-with-summarize-rovo-action--default.png +3 -0
- package/dist/cjs/__tests__/vr-tests/__snapshots__/google-sheets-visualize/embed-card-google-sheets-without-visualize-rovo-action-experiment-off---default.png +2 -2
- package/dist/cjs/ssr.js +6 -2
- package/dist/cjs/state/analytics/startUfoExperience.js +7 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/CardWithUrl/card-error-boundary/index.js +104 -3
- package/dist/cjs/view/CardWithUrl/card-intersection-observer/index.js +87 -1
- package/dist/cjs/view/CardWithUrl/loader.js +1 -1
- package/dist/cjs/view/EmbedCard/components/rovo-actions-footer/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/rovo-chat-utils/index.js +5 -1
- package/dist/es2019/__tests__/vr-tests/__snapshots__/block-card/block-card-google-doc-with-summarize-rovo-action--default.png +3 -0
- package/dist/es2019/__tests__/vr-tests/__snapshots__/google-sheets-visualize/embed-card-google-sheets-without-visualize-rovo-action-experiment-off---default.png +2 -2
- package/dist/es2019/ssr.js +6 -2
- package/dist/es2019/state/analytics/startUfoExperience.js +7 -2
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/CardWithUrl/card-error-boundary/index.js +105 -2
- package/dist/es2019/view/CardWithUrl/card-intersection-observer/index.js +88 -2
- package/dist/es2019/view/CardWithUrl/loader.js +1 -1
- package/dist/es2019/view/EmbedCard/components/rovo-actions-footer/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/rovo-chat-utils/index.js +5 -1
- package/dist/esm/__tests__/vr-tests/__snapshots__/block-card/block-card-google-doc-with-summarize-rovo-action--default.png +3 -0
- package/dist/esm/__tests__/vr-tests/__snapshots__/google-sheets-visualize/embed-card-google-sheets-without-visualize-rovo-action-experiment-off---default.png +2 -2
- package/dist/esm/ssr.js +6 -2
- package/dist/esm/state/analytics/startUfoExperience.js +7 -2
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/CardWithUrl/card-error-boundary/index.js +102 -3
- package/dist/esm/view/CardWithUrl/card-intersection-observer/index.js +88 -2
- package/dist/esm/view/CardWithUrl/loader.js +1 -1
- package/dist/esm/view/EmbedCard/components/rovo-actions-footer/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-dropdown-item/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-error/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-item/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/rovo-chat-utils/index.js +5 -1
- package/dist/types/state/analytics/startUfoExperience.d.ts +6 -1
- package/dist/types/view/CardWithUrl/card-error-boundary/index.d.ts +4 -1
- package/package.json +3 -3
|
@@ -10,6 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
12
|
import Button from '@atlaskit/button/default/button';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
14
|
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
14
15
|
import useInvokeClientAction from '../../../../state/hooks/use-invoke-client-action';
|
|
15
16
|
import useRovoChat from '../../../../state/hooks/use-rovo-chat';
|
|
@@ -104,7 +105,9 @@ var EmbedRovoActionsFooter = function EmbedRovoActionsFooter(_ref2) {
|
|
|
104
105
|
var isPrimaryAction = actions.length === 0;
|
|
105
106
|
// The primary action normally uses the branded AI icon. Visualize keeps its own
|
|
106
107
|
// chart icon so the action stays recognisable, including in the icon-only view.
|
|
107
|
-
|
|
108
|
+
// With platform_sl_rovo_summarize_icon_consistency on, every action keeps its own
|
|
109
|
+
// prompt icon so Summarize matches the inline and block cards.
|
|
110
|
+
var shouldUseBrandedIcon = fg('platform_sl_rovo_summarize_icon_consistency') ? false : isPrimaryAction && promptKey !== RovoChatPromptKey.VISUALIZE;
|
|
108
111
|
actions.push( /*#__PURE__*/React.createElement(RovoPromptButton, {
|
|
109
112
|
hideContent: isPrimaryAction && shouldHidePrimaryActionContent,
|
|
110
113
|
icon: shouldUseBrandedIcon ? /*#__PURE__*/React.createElement(AIEditIcon, null) : promptAction.icon,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-
|
|
2
|
+
import { DropdownItem } from '@atlaskit/dropdown-menu/dropdown-item';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { handleOnClick } from '../../../../../../utils/handle-on-click';
|
|
5
5
|
var ActionDropdownItem = function ActionDropdownItem(_ref) {
|
|
@@ -14,7 +14,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
14
14
|
import { di } from 'react-magnetic-di';
|
|
15
15
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
16
16
|
import IconButton from '@atlaskit/button/icon/button';
|
|
17
|
-
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
17
|
+
import { DropdownMenu } from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
18
18
|
import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
19
19
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
20
20
|
import { ActionName, CardDisplay, SmartLinkSize } from '../../../../../constants';
|
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
|
-
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
6
|
+
import { DropdownMenu } from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { useAnalyticsEvents } from '../../../../../../../common/analytics/generated/use-analytics-events';
|
|
9
9
|
import extractLozengeActionItems from '../../../../../../../extractors/action/extract-lozenge-action-items';
|
|
@@ -4,8 +4,8 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Fragment, useCallback, useMemo } from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl';
|
|
7
|
-
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-
|
|
8
|
-
import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-
|
|
7
|
+
import { DropdownItem } from '@atlaskit/dropdown-menu/dropdown-item';
|
|
8
|
+
import { DropdownItemGroup } from '@atlaskit/dropdown-menu/dropdown-item-group';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-
|
|
2
|
+
import { DropdownItem } from '@atlaskit/dropdown-menu/dropdown-item';
|
|
3
3
|
import Lozenge from '@atlaskit/lozenge/new/lozenge';
|
|
4
4
|
var LozengeActionItem = function LozengeActionItem(_ref) {
|
|
5
5
|
var appearance = _ref.appearance,
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-
|
|
6
|
+
import { DropdownItemGroup } from '@atlaskit/dropdown-menu/dropdown-item-group';
|
|
7
7
|
import LozengeActionItem from '../lozenge-action-item';
|
|
8
8
|
var dropdownItemGroupStyles = null;
|
|
9
9
|
var LozengeActionItemsGroup = function LozengeActionItemsGroup(_ref) {
|
|
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
12
12
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
13
13
|
var PACKAGE_DATA = {
|
|
14
14
|
packageName: "@atlaskit/smart-card",
|
|
15
|
-
packageVersion: "46.13.
|
|
15
|
+
packageVersion: "46.13.14",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -8,6 +8,7 @@ import AiGenerativeTextSummaryIcon from '@atlaskit/icon/core/ai-generative-text-
|
|
|
8
8
|
import ChartBarIcon from '@atlaskit/icon/core/chart-bar';
|
|
9
9
|
import RovoChatIcon from '@atlaskit/icon/core/rovo-chat';
|
|
10
10
|
import { RovoIcon } from '@atlaskit/logo/rovo/icon';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
12
|
import { CardDisplay } from '../../../constants';
|
|
12
13
|
import { messages } from '../../../messages';
|
|
13
14
|
import AiChapterIcon from '../../FlexibleCard/assets/ai-chapter-icon';
|
|
@@ -70,7 +71,10 @@ export var getPromptAction = function getPromptAction(_ref) {
|
|
|
70
71
|
ignoreTag: true
|
|
71
72
|
});
|
|
72
73
|
return {
|
|
73
|
-
icon: /*#__PURE__*/React.createElement(
|
|
74
|
+
icon: fg('platform_sl_rovo_summarize_icon_consistency') ? /*#__PURE__*/React.createElement(AiGenerativeTextSummaryIcon, {
|
|
75
|
+
label: label_summarize,
|
|
76
|
+
size: iconSize
|
|
77
|
+
}) : /*#__PURE__*/React.createElement(AiChatIcon, {
|
|
74
78
|
label: label_summarize,
|
|
75
79
|
size: iconSize
|
|
76
80
|
}),
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { CustomData } from '@atlaskit/ufo/types';
|
|
2
2
|
import type { UfoExperienceName } from './UfoExperienceName';
|
|
3
|
-
export declare const startUfoExperience: (experienceName: UfoExperienceName, id: string, properties?: CustomData
|
|
3
|
+
export declare const startUfoExperience: (experienceName: UfoExperienceName, id: string, properties?: CustomData,
|
|
4
|
+
/**
|
|
5
|
+
* Optional start time (`performance.now()` based). Defaults to now.
|
|
6
|
+
* Only applied when `platform_smartlink_cardssr_missing_events` is enabled.
|
|
7
|
+
*/
|
|
8
|
+
startTime?: number) => void;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { CardProps } from '../../Card';
|
|
3
3
|
type CardErrorBoundaryProps = CardProps & Required<Pick<CardProps, 'id' | 'url'>>;
|
|
4
|
-
|
|
4
|
+
type CardErrorBoundaryNewProps = CardErrorBoundaryProps & {
|
|
5
|
+
isFlexibleCard?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const CardErrorBoundary: ({ isFlexibleCard, ...props }: React.PropsWithChildren<CardErrorBoundaryNewProps>) => React.JSX.Element;
|
|
5
8
|
export default CardErrorBoundary;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "46.13.
|
|
3
|
+
"version": "46.13.15",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/checkbox": "^19.3.0",
|
|
52
52
|
"@atlaskit/css": "^1.1.0",
|
|
53
53
|
"@atlaskit/docs": "^12.3.0",
|
|
54
|
-
"@atlaskit/dropdown-menu": "^21.
|
|
54
|
+
"@atlaskit/dropdown-menu": "^21.3.0",
|
|
55
55
|
"@atlaskit/embedded-confluence": "^6.4.0",
|
|
56
56
|
"@atlaskit/feature-gate-js-client": "^8.0.0",
|
|
57
57
|
"@atlaskit/flag": "^19.0.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@atlaskit/theme": "^28.2.0",
|
|
96
96
|
"@atlaskit/tile": "^5.0.0",
|
|
97
97
|
"@atlaskit/tmp-editor-statsig": "^260.0.0",
|
|
98
|
-
"@atlaskit/tokens": "^20.
|
|
98
|
+
"@atlaskit/tokens": "^20.11.0",
|
|
99
99
|
"@atlaskit/tooltip": "^24.4.0",
|
|
100
100
|
"@atlaskit/top-layer": "^7.1.0",
|
|
101
101
|
"@atlaskit/ufo": "^2.0.0",
|