@atlaskit/smart-card 26.46.0 → 26.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/messages.js +5 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/index.js +33 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +77 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +8 -19
- package/dist/cjs/view/FlexibleCard/components/blocks/index.js +8 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +10 -2
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +11 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/ai-icon/index.js +117 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +249 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +55 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/types.js +5 -0
- package/dist/cjs/view/common/ai-prism/constants.js +53 -0
- package/dist/cjs/view/common/ai-prism/index.js +45 -0
- package/dist/cjs/view/common/ai-prism/types.js +5 -0
- package/dist/es2019/messages.js +5 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/index.js +25 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +66 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -12
- package/dist/es2019/view/FlexibleCard/components/blocks/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +10 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +14 -4
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/ai-icon/index.js +108 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +236 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +45 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/types.js +1 -0
- package/dist/es2019/view/common/ai-prism/constants.js +47 -0
- package/dist/es2019/view/common/ai-prism/index.js +36 -0
- package/dist/es2019/view/common/ai-prism/types.js +1 -0
- package/dist/esm/messages.js +5 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/index.js +27 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +67 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +1 -12
- package/dist/esm/view/FlexibleCard/components/blocks/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +9 -1
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +13 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/ai-icon/index.js +110 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +239 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +47 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/types.js +1 -0
- package/dist/esm/view/common/ai-prism/constants.js +47 -0
- package/dist/esm/view/common/ai-prism/index.js +37 -0
- package/dist/esm/view/common/ai-prism/types.js +1 -0
- package/dist/types/__fixtures__/atlas-project-with-ai-summary.d.ts +2 -0
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +11 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +23 -0
- package/dist/types/view/FlexibleCard/components/blocks/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/utils.d.ts +1 -0
- package/dist/types/view/common/ai-icon/index.d.ts +9 -0
- package/dist/types/view/common/ai-prism/ai-glowing-border/animated-svg-container.d.ts +9 -0
- package/dist/types/view/common/ai-prism/ai-glowing-border/index.d.ts +10 -0
- package/dist/types/view/common/ai-prism/ai-glowing-border/types.d.ts +25 -0
- package/dist/types/view/common/ai-prism/constants.d.ts +30 -0
- package/dist/types/view/common/ai-prism/index.d.ts +4 -0
- package/dist/types/view/common/ai-prism/types.d.ts +13 -0
- package/dist/types-ts4.5/__fixtures__/atlas-project-with-ai-summary.d.ts +2 -0
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/index.d.ts +11 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/types.d.ts +23 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/utils.d.ts +1 -0
- package/dist/types-ts4.5/view/common/ai-icon/index.d.ts +9 -0
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/animated-svg-container.d.ts +9 -0
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/index.d.ts +10 -0
- package/dist/types-ts4.5/view/common/ai-prism/ai-glowing-border/types.d.ts +25 -0
- package/dist/types-ts4.5/view/common/ai-prism/constants.d.ts +30 -0
- package/dist/types-ts4.5/view/common/ai-prism/index.d.ts +4 -0
- package/dist/types-ts4.5/view/common/ai-prism/types.d.ts +13 -0
- package/package.json +10 -7
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AIGlowingBorderProps } from './types';
|
|
3
|
+
export declare const borderContentStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
+
/**
|
|
5
|
+
* The bulk of this file is originally from
|
|
6
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
7
|
+
* with modifications.
|
|
8
|
+
*/
|
|
9
|
+
declare const AIGlowingBorder: React.FC<AIGlowingBorderProps>;
|
|
10
|
+
export default AIGlowingBorder;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
3
|
+
import type { AIBorderPalette } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* The bulk of this file is originally from
|
|
6
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
7
|
+
* with modifications.
|
|
8
|
+
*/
|
|
9
|
+
export type AIGlowingBorderProps = {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
palette: AIBorderPalette;
|
|
12
|
+
isMoving?: boolean;
|
|
13
|
+
isGlowing?: boolean;
|
|
14
|
+
testId?: string;
|
|
15
|
+
additionalCss?: {
|
|
16
|
+
container?: SerializedStyles;
|
|
17
|
+
animatedSvgContainer?: SerializedStyles;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type AnimatedSvgContainerProps = {
|
|
21
|
+
palette: AIBorderPalette;
|
|
22
|
+
isMoving?: boolean;
|
|
23
|
+
isGlowing?: boolean;
|
|
24
|
+
additionalCss?: SerializedStyles;
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AIThemeBorderPalette } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The bulk of this file is originally from
|
|
4
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
5
|
+
* with modifications.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GLOW_SIZE = 8;
|
|
8
|
+
export declare const INNER_BORDER_RADIUS = 8;
|
|
9
|
+
export declare const OUTER_BORDER_RADIUS = 10;
|
|
10
|
+
export declare const aiThemeTokens: {
|
|
11
|
+
blueUniqueGradientLight: string;
|
|
12
|
+
blueUniqueGradientDark: string;
|
|
13
|
+
blue1000: string;
|
|
14
|
+
blue800: string;
|
|
15
|
+
blue700: string;
|
|
16
|
+
blue600: string;
|
|
17
|
+
blue500: string;
|
|
18
|
+
blue300: string;
|
|
19
|
+
blue200: string;
|
|
20
|
+
blue100: string;
|
|
21
|
+
teal500: string;
|
|
22
|
+
teal300: string;
|
|
23
|
+
yellow500: string;
|
|
24
|
+
yellow200: string;
|
|
25
|
+
red800: string;
|
|
26
|
+
red600: string;
|
|
27
|
+
orange500: string;
|
|
28
|
+
orange300: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const AI_BORDER_PALETTE: AIThemeBorderPalette;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AIGlowingBorderProps } from './ai-glowing-border/types';
|
|
2
|
+
export type AIPrismProps = Pick<AIGlowingBorderProps, 'isMoving' | 'isGlowing' | 'testId'> & {
|
|
3
|
+
isVisible?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type AIBorderPalette = {
|
|
6
|
+
blue: string;
|
|
7
|
+
yellow: string;
|
|
8
|
+
teal: string;
|
|
9
|
+
};
|
|
10
|
+
export type AIThemeBorderPalette = {
|
|
11
|
+
dark: AIBorderPalette;
|
|
12
|
+
light: AIBorderPalette;
|
|
13
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageDescriptor } from 'react-intl-next';
|
|
2
2
|
export type RequestAccessMessageKey = 'click_to_join' | 'click_to_join_description' | 'forbidden_description' | 'request_access' | 'request_access_description' | 'request_access_pending' | 'request_access_pending_description' | 'request_denied_description' | 'default_no_access_title_crossjoin' | 'direct_access_title_crossjoin' | 'direct_access_description_crossjoin' | 'direct_access_crossjoin' | 'request_access_description_crossjoin' | 'request_access_crossjoin' | 'request_access_pending_title_crossjoin' | 'request_access_pending_description_crossjoin' | 'request_access_pending_crossjoin' | 'request_denied_description_crossjoin' | 'access_exists_description_crossjoin' | 'not_found_description_crossjoin' | 'not_found_title_crossjoin';
|
|
3
|
-
export type MessageKey = 'assigned_to' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'could_not_load_link' | 'download' | 'follow' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message';
|
|
3
|
+
export type MessageKey = 'assigned_to' | 'ai_summarize' | 'cannot_find_link' | 'connect_link_account_card' | 'connect_link_account_card_name' | 'connect_link_account_card_description' | 'connect_unauthorised_account_action' | 'connect_unauthorised_account_description' | 'connect_unauthorised_account_description_no_provider' | 'continue' | 'copy_url_to_clipboard' | 'could_not_load_link' | 'download' | 'follow' | 'go_back' | 'invalid_permissions' | 'invalid_permissions_description' | 'join_to_view' | 'connect_link_account' | 'created_by' | 'created_on_relative' | 'created_on_absolute' | 'check_this_link' | 'delete' | 'edit' | 'learn_more_about_smart_links' | 'learn_more_about_connecting_account' | 'loading' | 'link_safety_warning_message' | 'modified_by' | 'modified_on_relative' | 'modified_on_absolute' | 'more_actions' | 'not_found_title' | 'not_found_description' | 'open_issue_in_jira' | 'open_link_in_a_new_tab' | 'owned_by' | 'preview_improved' | 'preview_close' | 'preview_max_size' | 'preview_min_size' | 'priority_blocker' | 'priority_critical' | 'priority_high' | 'priority_highest' | 'priority_low' | 'priority_lowest' | 'priority_major' | 'priority_medium' | 'priority_minor' | 'priority_trivial' | 'priority_undefined' | 'forbidden_access' | 'pending_request' | 'read_time' | 'restricted_link' | 'request_access_to_view' | 'request_denied' | 'sent_on_relative' | 'sent_on_absolute' | 'status_change_load_error' | 'status_change_permission_error' | 'status_change_update_error' | 'try_again' | 'try_another_account' | 'unauthorised_account_description' | 'unauthorised_account_description_no_provider' | 'unauthorised_account_name' | 'unauthorised_account_name_no_provider' | 'unassigned' | 'unfollow' | 'view' | 'viewIn' | 'viewOriginal' | 'actions' | 'add_account' | 'cancel' | 'close' | 'connect_to' | 'connect_account_description' | 'retry' | 'save' | 'unlink_account' | RequestAccessMessageKey | 'related_work_items_not_found' | 'last_mentioned_in' | 'related' | 'generic_error_message';
|
|
4
4
|
type Messages = {
|
|
5
5
|
[K in MessageKey]: MessageDescriptor;
|
|
6
6
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AISummaryBlockProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents an AISummaryBlock, designed to summarising link resource
|
|
5
|
+
* content using AI.
|
|
6
|
+
* @public
|
|
7
|
+
* @param {AISummaryBlockProps} AISummaryBlock
|
|
8
|
+
* @see Block
|
|
9
|
+
*/
|
|
10
|
+
declare const AISummaryBlock: React.FC<AISummaryBlockProps>;
|
|
11
|
+
export default AISummaryBlock;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ActionItem, BlockProps, ElementItem } from '../types';
|
|
2
|
+
import { OnActionMenuOpenChangeOptions } from '../types';
|
|
3
|
+
export type AISummaryBlockProps = {
|
|
4
|
+
/**
|
|
5
|
+
* An array of actions to be displayed on the right
|
|
6
|
+
* after AI Summary button.
|
|
7
|
+
* @see ActionItem
|
|
8
|
+
*/
|
|
9
|
+
actions?: ActionItem[];
|
|
10
|
+
/**
|
|
11
|
+
* An array of metadata elements to display on the left.
|
|
12
|
+
* @see ElementItem
|
|
13
|
+
*/
|
|
14
|
+
metadata?: ElementItem[];
|
|
15
|
+
/**
|
|
16
|
+
* Function to be called when footer action dropdown open state is changed.
|
|
17
|
+
*/
|
|
18
|
+
onActionMenuOpenChange?: (options: OnActionMenuOpenChangeOptions) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Function to be called when AI Summary state changed.
|
|
21
|
+
*/
|
|
22
|
+
onAIActionChange?: () => void;
|
|
23
|
+
} & BlockProps;
|
|
@@ -6,3 +6,4 @@ export { default as TitleBlock } from './title-block';
|
|
|
6
6
|
export { default as CustomBlock } from './block';
|
|
7
7
|
export { default as InternalFooterBlock } from './footer-block/resolved';
|
|
8
8
|
export { default as RelatedUrlsBlock } from './related-urls-block';
|
|
9
|
+
export { default as AISummaryBlock } from './ai-summary-block';
|
|
@@ -9,6 +9,7 @@ export declare const getGapSize: (size: SmartLinkSize) => number;
|
|
|
9
9
|
export declare const getBaseStyles: (direction: SmartLinkDirection, size: SmartLinkSize) => SerializedStyles;
|
|
10
10
|
export declare const highlightRemoveStyles: SerializedStyles;
|
|
11
11
|
export declare const isJSXElementNull: (children: JSX.Element) => boolean;
|
|
12
|
+
export declare const getActionGroupStyles: (size: SmartLinkSize) => SerializedStyles | undefined;
|
|
12
13
|
export declare const filterActionItems: (items?: ActionItem[], context?: FlexibleUiDataContext) => ActionItem[];
|
|
13
14
|
export declare const renderChildren: (children: React.ReactNode, size: SmartLinkSize) => React.ReactNode;
|
|
14
15
|
export declare const renderElementItems: (items?: ElementItem[], display?: ElementDisplaySchemaType) => React.ReactNode | undefined;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SVGProps } from '@atlaskit/icon/types';
|
|
3
|
+
/**
|
|
4
|
+
* The bulk of this file is originally from
|
|
5
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
6
|
+
* with modifications
|
|
7
|
+
*/
|
|
8
|
+
declare const AiIcon: (props: SVGProps) => JSX.Element;
|
|
9
|
+
export default AiIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AnimatedSvgContainerProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* The bulk of this file is originally from
|
|
5
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
6
|
+
* with modifications.
|
|
7
|
+
*/
|
|
8
|
+
declare const AnimatedSvgContainer: React.FC<AnimatedSvgContainerProps>;
|
|
9
|
+
export default AnimatedSvgContainer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AIGlowingBorderProps } from './types';
|
|
3
|
+
export declare const borderContentStyles: import("@emotion/react").SerializedStyles;
|
|
4
|
+
/**
|
|
5
|
+
* The bulk of this file is originally from
|
|
6
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
7
|
+
* with modifications.
|
|
8
|
+
*/
|
|
9
|
+
declare const AIGlowingBorder: React.FC<AIGlowingBorderProps>;
|
|
10
|
+
export default AIGlowingBorder;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
3
|
+
import type { AIBorderPalette } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* The bulk of this file is originally from
|
|
6
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
7
|
+
* with modifications.
|
|
8
|
+
*/
|
|
9
|
+
export type AIGlowingBorderProps = {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
palette: AIBorderPalette;
|
|
12
|
+
isMoving?: boolean;
|
|
13
|
+
isGlowing?: boolean;
|
|
14
|
+
testId?: string;
|
|
15
|
+
additionalCss?: {
|
|
16
|
+
container?: SerializedStyles;
|
|
17
|
+
animatedSvgContainer?: SerializedStyles;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type AnimatedSvgContainerProps = {
|
|
21
|
+
palette: AIBorderPalette;
|
|
22
|
+
isMoving?: boolean;
|
|
23
|
+
isGlowing?: boolean;
|
|
24
|
+
additionalCss?: SerializedStyles;
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AIThemeBorderPalette } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The bulk of this file is originally from
|
|
4
|
+
* https://bitbucket.org/atlassian/barrel/src/master/ui/platform/ui-kit/ai
|
|
5
|
+
* with modifications.
|
|
6
|
+
*/
|
|
7
|
+
export declare const GLOW_SIZE = 8;
|
|
8
|
+
export declare const INNER_BORDER_RADIUS = 8;
|
|
9
|
+
export declare const OUTER_BORDER_RADIUS = 10;
|
|
10
|
+
export declare const aiThemeTokens: {
|
|
11
|
+
blueUniqueGradientLight: string;
|
|
12
|
+
blueUniqueGradientDark: string;
|
|
13
|
+
blue1000: string;
|
|
14
|
+
blue800: string;
|
|
15
|
+
blue700: string;
|
|
16
|
+
blue600: string;
|
|
17
|
+
blue500: string;
|
|
18
|
+
blue300: string;
|
|
19
|
+
blue200: string;
|
|
20
|
+
blue100: string;
|
|
21
|
+
teal500: string;
|
|
22
|
+
teal300: string;
|
|
23
|
+
yellow500: string;
|
|
24
|
+
yellow200: string;
|
|
25
|
+
red800: string;
|
|
26
|
+
red600: string;
|
|
27
|
+
orange500: string;
|
|
28
|
+
orange300: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const AI_BORDER_PALETTE: AIThemeBorderPalette;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AIGlowingBorderProps } from './ai-glowing-border/types';
|
|
2
|
+
export type AIPrismProps = Pick<AIGlowingBorderProps, 'isMoving' | 'isGlowing' | 'testId'> & {
|
|
3
|
+
isVisible?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type AIBorderPalette = {
|
|
6
|
+
blue: string;
|
|
7
|
+
yellow: string;
|
|
8
|
+
teal: string;
|
|
9
|
+
};
|
|
10
|
+
export type AIThemeBorderPalette = {
|
|
11
|
+
dark: AIBorderPalette;
|
|
12
|
+
light: AIBorderPalette;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.46.
|
|
3
|
+
"version": "26.46.2",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
29
|
-
"@atlaskit/analytics-next": "^9.
|
|
29
|
+
"@atlaskit/analytics-next": "^9.2.0",
|
|
30
30
|
"@atlaskit/avatar": "^21.4.0",
|
|
31
31
|
"@atlaskit/avatar-group": "^9.5.0",
|
|
32
32
|
"@atlaskit/badge": "^15.2.0",
|
|
33
|
-
"@atlaskit/button": "^17.
|
|
34
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
33
|
+
"@atlaskit/button": "^17.3.0",
|
|
34
|
+
"@atlaskit/dropdown-menu": "^12.4.0",
|
|
35
35
|
"@atlaskit/icon": "^22.0.0",
|
|
36
36
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
37
37
|
"@atlaskit/icon-object": "^6.3.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@atlaskit/modal-dialog": "^12.10.0",
|
|
48
48
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^0.2.1",
|
|
50
|
-
"@atlaskit/popup": "^1.
|
|
51
|
-
"@atlaskit/primitives": "^
|
|
50
|
+
"@atlaskit/popup": "^1.12.0",
|
|
51
|
+
"@atlaskit/primitives": "^2.0.0",
|
|
52
52
|
"@atlaskit/spinner": "^16.0.0",
|
|
53
53
|
"@atlaskit/theme": "^12.6.0",
|
|
54
54
|
"@atlaskit/tokens": "^1.35.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
83
83
|
"@atlaskit/visual-regression": "*",
|
|
84
84
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
85
|
-
"@atlassian/feature-flags-test-utils": "^0.
|
|
85
|
+
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
86
86
|
"@testing-library/dom": "^8.17.1",
|
|
87
87
|
"@testing-library/jest-dom": "^5.16.5",
|
|
88
88
|
"@testing-library/react": "^12.1.5",
|
|
@@ -154,6 +154,9 @@
|
|
|
154
154
|
},
|
|
155
155
|
"platform.linking-platform.smart-card.disable-jira-status-action": {
|
|
156
156
|
"type": "boolean"
|
|
157
|
+
},
|
|
158
|
+
"platform.linking-platform.smart-card.hover-card-ai-summaries": {
|
|
159
|
+
"type": "boolean"
|
|
157
160
|
}
|
|
158
161
|
},
|
|
159
162
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|