@atlaskit/smart-card 26.52.3 → 26.52.5
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 +13 -0
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/messages.js +2 -2
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +6 -10
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/readStream.js +125 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/utils.js +0 -119
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/delete-action/index.js +24 -0
- package/dist/cjs/view/FlexibleCard/components/actions/delete-action/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/actions/edit-action/index.js +24 -0
- package/dist/cjs/view/FlexibleCard/components/actions/edit-action/types.js +5 -0
- package/dist/cjs/view/FlexibleCard/components/actions/index.js +15 -15
- package/dist/cjs/view/FlexibleCard/components/actions/utils.js +0 -22
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/constants.js +1 -1
- package/dist/es2019/messages.js +2 -2
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +6 -11
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/readStream.js +48 -0
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/utils.js +0 -47
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/delete-action/index.js +15 -0
- package/dist/es2019/view/FlexibleCard/components/actions/delete-action/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/edit-action/index.js +15 -0
- package/dist/es2019/view/FlexibleCard/components/actions/edit-action/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/index.js +2 -13
- package/dist/es2019/view/FlexibleCard/components/actions/utils.js +0 -24
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/messages.js +2 -2
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +6 -10
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/readStream.js +118 -0
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/utils.js +0 -117
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/delete-action/index.js +17 -0
- package/dist/esm/view/FlexibleCard/components/actions/delete-action/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/edit-action/index.js +17 -0
- package/dist/esm/view/FlexibleCard/components/actions/edit-action/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/index.js +2 -13
- package/dist/esm/view/FlexibleCard/components/actions/utils.js +0 -22
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/readStream.d.ts +1 -0
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +6 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/utils.d.ts +0 -1
- package/dist/types/view/FlexibleCard/components/actions/delete-action/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/actions/delete-action/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/edit-action/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/actions/edit-action/types.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/index.d.ts +2 -12
- package/dist/types-ts4.5/constants.d.ts +1 -1
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/readStream.d.ts +1 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +6 -1
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/utils.d.ts +0 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/delete-action/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/delete-action/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/edit-action/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/edit-action/types.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/index.d.ts +2 -12
- package/package.json +1 -1
|
@@ -4,18 +4,8 @@ import { ViewActionProps } from './action/view-action/types';
|
|
|
4
4
|
export { default as FollowAction } from './follow-action';
|
|
5
5
|
export { default as PreviewAction } from './preview-action';
|
|
6
6
|
export { default as DownloadAction } from './download-action';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* the icon to a cross icon.
|
|
10
|
-
* @see Action
|
|
11
|
-
*/
|
|
12
|
-
export declare const DeleteAction: import("react").FC<ActionProps>;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a EditAction component. Accepts default ActionProps, but defaults
|
|
15
|
-
* the icon to an edit (pencil) icon.
|
|
16
|
-
* @see Action
|
|
17
|
-
*/
|
|
18
|
-
export declare const EditAction: import("react").FC<ActionProps>;
|
|
7
|
+
export { default as EditAction } from './edit-action';
|
|
8
|
+
export { default as DeleteAction } from './delete-action';
|
|
19
9
|
/**
|
|
20
10
|
* Creates a ViewAction component. Accepts default ViewActionProps, and defaults
|
|
21
11
|
* to the text 'View' inside the button.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const CONTENT_URL_SECURITY_AND_PERMISSIONS = "https://support.atlassian.com/confluence-cloud/docs/insert-links-and-anchors/#Smart-links";
|
|
2
2
|
export declare const CONTENT_URL_3P_ACCOUNT_AUTH = "https://support.atlassian.com/confluence-cloud/docs/what-data-is-sent-and-received-when-pasting-a-smart-link/";
|
|
3
3
|
export declare const CONTENT_URL_AI = "https://www.atlassian.com/trust/atlassian-intelligence";
|
|
4
|
-
export declare const CONTENT_URL_AI_TROUBLESHOOTING = "https://
|
|
4
|
+
export declare const CONTENT_URL_AI_TROUBLESHOOTING = "https://status.atlassian.com/";
|
|
5
5
|
export declare const CONTENT_URL_ACCEPTABLE_USE_POLICY = "https://www.atlassian.com/legal/acceptable-use-policy";
|
|
6
6
|
/**
|
|
7
7
|
* The alignment of Flexible UI component.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function readStream<T>(response: Response): AsyncGenerator<T>;
|
|
@@ -11,8 +11,11 @@ export type AISummaryServiceProps = {
|
|
|
11
11
|
onStart?: (id: string) => void;
|
|
12
12
|
onSuccess?: (id: string) => void;
|
|
13
13
|
product?: ProductType;
|
|
14
|
+
/**
|
|
15
|
+
* we should always include the ARI if possible
|
|
16
|
+
*/
|
|
17
|
+
ari?: string;
|
|
14
18
|
url: string;
|
|
15
|
-
ari: string;
|
|
16
19
|
};
|
|
17
20
|
export type AISummaryServiceConfig = {
|
|
18
21
|
baseUrl: string;
|
|
@@ -91,7 +94,9 @@ export type StreamAnswerPart = {
|
|
|
91
94
|
export type StreamTrace = {
|
|
92
95
|
type: 'TRACE';
|
|
93
96
|
message: {
|
|
97
|
+
message_template: string;
|
|
94
98
|
content: string;
|
|
99
|
+
user_query: string;
|
|
95
100
|
};
|
|
96
101
|
millisOffset: number;
|
|
97
102
|
metadata?: {
|
|
@@ -4,18 +4,8 @@ import { ViewActionProps } from './action/view-action/types';
|
|
|
4
4
|
export { default as FollowAction } from './follow-action';
|
|
5
5
|
export { default as PreviewAction } from './preview-action';
|
|
6
6
|
export { default as DownloadAction } from './download-action';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* the icon to a cross icon.
|
|
10
|
-
* @see Action
|
|
11
|
-
*/
|
|
12
|
-
export declare const DeleteAction: import("react").FC<ActionProps>;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a EditAction component. Accepts default ActionProps, but defaults
|
|
15
|
-
* the icon to an edit (pencil) icon.
|
|
16
|
-
* @see Action
|
|
17
|
-
*/
|
|
18
|
-
export declare const EditAction: import("react").FC<ActionProps>;
|
|
7
|
+
export { default as EditAction } from './edit-action';
|
|
8
|
+
export { default as DeleteAction } from './delete-action';
|
|
19
9
|
/**
|
|
20
10
|
* Creates a ViewAction component. Accepts default ViewActionProps, and defaults
|
|
21
11
|
* to the text 'View' inside the button.
|