@atlaskit/smart-card 26.65.0 → 26.67.0
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 +23 -0
- package/CONTRIBUTING.md +3 -0
- package/dist/cjs/constants.js +1 -0
- package/dist/cjs/extractors/flexible/actions/extract-automation-action.js +53 -0
- package/dist/cjs/extractors/flexible/actions/index.js +2 -1
- package/dist/cjs/messages.js +50 -0
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -1
- package/dist/cjs/state/hooks/use-ai-summary/index.js +3 -2
- package/dist/cjs/utils/ai-summary.js +4 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/Card/types.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/server-action/index.js +7 -5
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/index.js +56 -0
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/manaul-triggers-icon/index.js +31 -0
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/index.js +29 -9
- package/dist/cjs/view/FlexibleCard/components/actions/follow-action/utils.js +24 -0
- package/dist/cjs/view/FlexibleCard/components/actions/index.js +8 -1
- package/dist/cjs/view/FlexibleCard/components/actions/preview-action/index.js +10 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/constants.js +1 -0
- package/dist/es2019/extractors/flexible/actions/extract-automation-action.js +48 -0
- package/dist/es2019/extractors/flexible/actions/index.js +2 -0
- package/dist/es2019/messages.js +50 -0
- package/dist/es2019/state/flexible-ui-context/types.js +3 -1
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary/index.js +3 -2
- package/dist/es2019/utils/ai-summary.js +4 -0
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/Card/types.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/server-action/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/index.js +41 -0
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/manaul-triggers-icon/index.js +23 -0
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/index.js +29 -6
- package/dist/es2019/view/FlexibleCard/components/actions/follow-action/utils.js +16 -0
- package/dist/es2019/view/FlexibleCard/components/actions/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/preview-action/index.js +10 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/constants.js +1 -0
- package/dist/esm/extractors/flexible/actions/extract-automation-action.js +46 -0
- package/dist/esm/extractors/flexible/actions/index.js +2 -1
- package/dist/esm/messages.js +50 -0
- package/dist/esm/state/flexible-ui-context/types.js +3 -1
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/types.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary/index.js +3 -2
- package/dist/esm/utils/ai-summary.js +4 -0
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/Card/types.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/server-action/index.js +7 -5
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/index.js +46 -0
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/manaul-triggers-icon/index.js +24 -0
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/index.js +29 -9
- package/dist/esm/view/FlexibleCard/components/actions/follow-action/utils.js +18 -0
- package/dist/esm/view/FlexibleCard/components/actions/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/preview-action/index.js +10 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/constants.d.ts +1 -0
- package/dist/types/extractors/flexible/actions/extract-automation-action.d.ts +3 -0
- package/dist/types/extractors/flexible/actions/index.d.ts +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +12 -0
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +2 -1
- package/dist/types/view/FlexibleCard/components/actions/action/server-action/index.d.ts +3 -3
- package/dist/types/view/FlexibleCard/components/actions/action/server-action/types.d.ts +4 -3
- package/dist/types/view/FlexibleCard/components/actions/automation-action/index.d.ts +4 -0
- package/dist/types/view/FlexibleCard/components/actions/automation-action/manaul-triggers-icon/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/components/actions/follow-action/index.d.ts +3 -3
- package/dist/types/view/FlexibleCard/components/actions/follow-action/utils.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/actions/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +5 -5
- package/dist/types-ts4.5/constants.d.ts +1 -0
- package/dist/types-ts4.5/extractors/flexible/actions/extract-automation-action.d.ts +3 -0
- package/dist/types-ts4.5/extractors/flexible/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +12 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +2 -1
- package/dist/types-ts4.5/view/Card/types.d.ts +2 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/server-action/index.d.ts +3 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/server-action/types.d.ts +4 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/index.d.ts +4 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/manaul-triggers-icon/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/follow-action/index.d.ts +3 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/follow-action/utils.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +5 -5
- package/package.json +9 -3
|
@@ -6,3 +6,4 @@ export { default as FollowAction } from './follow-action';
|
|
|
6
6
|
export { default as PreviewAction } from './preview-action';
|
|
7
7
|
export { default as CopyLinkAction } from './copy-link-action';
|
|
8
8
|
export { default as AISummaryAction } from './ai-summary-action';
|
|
9
|
+
export { default as AutomationAction } from './automation-action';
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { AISummaryBlockProps } from '../types';
|
|
|
3
3
|
import type { AISummaryStatus, ErrorMessage } from '../../../../../../state/hooks/use-ai-summary/ai-summary-service/types';
|
|
4
4
|
export declare const AISummaryBlockErrorIndicator: ({ showErrorIndicator, error, showTransition, testId, }: {
|
|
5
5
|
showErrorIndicator: boolean;
|
|
6
|
-
error?: "NETWORK_ERROR" | "NO_ANSWER" | "RATE_LIMIT" | "NO_AGENT" | "PLUGIN_ERRORED" | "OPENAI_RATE_LIMIT_USER_ABUSE" | "ACCEPTABLE_USE_VIOLATIONS" | "AI_DISABLED" | "UNEXPECTED" | "HIPAA_CONTENT_DETECTED" | undefined;
|
|
6
|
+
error?: "NETWORK_ERROR" | "NO_ANSWER" | "RATE_LIMIT" | "NO_AGENT" | "PLUGIN_ERRORED" | "OPENAI_RATE_LIMIT_USER_ABUSE" | "ACCEPTABLE_USE_VIOLATIONS" | "AI_DISABLED" | "UNEXPECTED" | "HIPAA_CONTENT_DETECTED" | "EXCEEDING_CONTEXT_LENGTH_ERROR" | undefined;
|
|
7
7
|
showTransition: boolean;
|
|
8
8
|
} & Pick<AISummaryBlockProps, "testId">) => JSX.Element;
|
|
9
9
|
export declare const AISummaryBlockStatusIndicator: ({ showStatusIndicator, metadata, status, testId, }: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActionName, ElementName, SmartLinkDirection, SmartLinkSize, SmartLinkStatus } from '../../../../constants';
|
|
2
|
-
import { SerializedStyles } from '@emotion/react';
|
|
3
|
-
import { ActionProps } from '../actions/action/types';
|
|
4
|
-
import { PropsWithChildren, Ref } from 'react';
|
|
1
|
+
import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize, type SmartLinkStatus } from '../../../../constants';
|
|
2
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
3
|
+
import { type ActionProps } from '../actions/action/types';
|
|
4
|
+
import { type PropsWithChildren, type Ref } from 'react';
|
|
5
5
|
export type BlockProps = PropsWithChildren<{
|
|
6
6
|
/**
|
|
7
7
|
* The direction that the block should arrange it's elements. Can be vertical
|
|
@@ -161,7 +161,7 @@ export type BaseDataActionItem = {
|
|
|
161
161
|
* renders a preview modal when clicked.
|
|
162
162
|
*/
|
|
163
163
|
export type NamedDataActionItem = BaseDataActionItem & {
|
|
164
|
-
name: ActionName.FollowAction | ActionName.PreviewAction | ActionName.DownloadAction
|
|
164
|
+
name: ActionName.FollowAction | ActionName.PreviewAction | ActionName.DownloadAction | ActionName.AutomationAction
|
|
165
165
|
/**
|
|
166
166
|
* To be removed once ActionName.ViewAction is retired
|
|
167
167
|
* Currently left in to maintain backwards compatibility with public API
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.67.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@atlaskit/button": "^17.14.0",
|
|
37
37
|
"@atlaskit/dropdown-menu": "^12.10.0",
|
|
38
38
|
"@atlaskit/frontend-utilities": "^2.7.0",
|
|
39
|
-
"@atlaskit/icon": "^22.
|
|
39
|
+
"@atlaskit/icon": "^22.2.0",
|
|
40
40
|
"@atlaskit/icon-file-type": "^6.4.0",
|
|
41
41
|
"@atlaskit/icon-object": "^6.4.0",
|
|
42
42
|
"@atlaskit/icon-priority": "^6.3.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/spinner": "^16.1.0",
|
|
57
57
|
"@atlaskit/theme": "^12.8.0",
|
|
58
58
|
"@atlaskit/tokens": "^1.48.0",
|
|
59
|
-
"@atlaskit/tooltip": "^18.
|
|
59
|
+
"@atlaskit/tooltip": "^18.4.0",
|
|
60
60
|
"@atlaskit/ufo": "^0.2.0",
|
|
61
61
|
"@babel/runtime": "^7.0.0",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
@@ -179,6 +179,12 @@
|
|
|
179
179
|
},
|
|
180
180
|
"platform.linking-platform.smart-card.fix-embed-card-blurring": {
|
|
181
181
|
"type": "boolean"
|
|
182
|
+
},
|
|
183
|
+
"platform.linking-platform.smart-card.action-icon-redesign": {
|
|
184
|
+
"type": "boolean"
|
|
185
|
+
},
|
|
186
|
+
"platform.linking-platfom.smart-card.confluence.page.automation-action": {
|
|
187
|
+
"type": "boolean"
|
|
182
188
|
}
|
|
183
189
|
},
|
|
184
190
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|