@atlaskit/smart-card 45.21.9 → 45.22.1
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/entry-points/embedded-confluence-page.js +18 -0
- package/dist/cjs/state/actions/index.js +5 -5
- package/dist/cjs/state/config/index.js +2 -2
- package/dist/cjs/state/hooks/use-ai-summary-config/index.js +2 -2
- package/dist/cjs/state/hooks/use-control-data-export-config/index.js +2 -2
- package/dist/cjs/state/hooks/use-incoming-outgoing-links/index.js +3 -3
- package/dist/cjs/state/hooks/use-invoke/index.js +2 -2
- package/dist/cjs/state/hooks/use-resolve/index.js +2 -2
- package/dist/cjs/state/hooks/use-resolve-hyperlink/useResolveHyperlinkValidator.js +2 -2
- package/dist/cjs/state/hooks/use-response/index.js +14 -12
- package/dist/cjs/state/hooks/use-rovo-config/index.js +2 -2
- package/dist/cjs/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +2 -2
- package/dist/cjs/state/hooks/usePrefetch.js +4 -4
- package/dist/cjs/state/hooks/useSmartLink.js +2 -2
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +2 -2
- package/dist/cjs/state/renderers/index.js +2 -2
- package/dist/cjs/state/store/index.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/analytics/useSmartLinkAnalyticsContext.js +4 -4
- package/dist/cjs/utils/analytics/useSmartLinkAnalyticsUtils.js +4 -4
- package/dist/cjs/utils/fake-factory.js +2 -2
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +2 -2
- package/dist/cjs/view/CardWithUrl/experiment-meta-event-attributes/index.js +2 -2
- package/dist/cjs/view/EmbedCard/components/IFrame.js +33 -13
- package/dist/cjs/view/EmbedCard/components/embedded-confluence-page-context.js +22 -0
- package/dist/cjs/view/EmbedCard/components/loadEmbeddedConfluencePage.js +44 -0
- package/dist/cjs/view/FlexibleCard/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/cjs/view/InlineCard/Icon.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/index.js +2 -2
- package/dist/es2019/entry-points/embedded-confluence-page.js +1 -0
- package/dist/es2019/state/actions/index.js +2 -2
- package/dist/es2019/state/config/index.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary-config/index.js +1 -1
- package/dist/es2019/state/hooks/use-control-data-export-config/index.js +1 -1
- package/dist/es2019/state/hooks/use-incoming-outgoing-links/index.js +1 -1
- package/dist/es2019/state/hooks/use-invoke/index.js +1 -1
- package/dist/es2019/state/hooks/use-resolve/index.js +1 -1
- package/dist/es2019/state/hooks/use-resolve-hyperlink/useResolveHyperlinkValidator.js +1 -1
- package/dist/es2019/state/hooks/use-response/index.js +4 -2
- package/dist/es2019/state/hooks/use-rovo-config/index.js +1 -1
- package/dist/es2019/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/es2019/state/hooks/usePrefetch.js +2 -2
- package/dist/es2019/state/hooks/useSmartLink.js +1 -1
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +1 -1
- package/dist/es2019/state/renderers/index.js +1 -1
- package/dist/es2019/state/store/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/analytics/useSmartLinkAnalyticsContext.js +2 -2
- package/dist/es2019/utils/analytics/useSmartLinkAnalyticsUtils.js +2 -2
- package/dist/es2019/utils/fake-factory.js +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/es2019/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/es2019/view/EmbedCard/components/IFrame.js +27 -13
- package/dist/es2019/view/EmbedCard/components/embedded-confluence-page-context.js +15 -0
- package/dist/es2019/view/EmbedCard/components/loadEmbeddedConfluencePage.js +14 -0
- package/dist/es2019/view/FlexibleCard/index.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/es2019/view/InlineCard/Icon.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/index.js +1 -1
- package/dist/esm/entry-points/embedded-confluence-page.js +1 -0
- package/dist/esm/state/actions/index.js +2 -2
- package/dist/esm/state/config/index.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary-config/index.js +1 -1
- package/dist/esm/state/hooks/use-control-data-export-config/index.js +1 -1
- package/dist/esm/state/hooks/use-incoming-outgoing-links/index.js +1 -1
- package/dist/esm/state/hooks/use-invoke/index.js +1 -1
- package/dist/esm/state/hooks/use-resolve/index.js +1 -1
- package/dist/esm/state/hooks/use-resolve-hyperlink/useResolveHyperlinkValidator.js +1 -1
- package/dist/esm/state/hooks/use-response/index.js +4 -2
- package/dist/esm/state/hooks/use-rovo-config/index.js +1 -1
- package/dist/esm/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/esm/state/hooks/usePrefetch.js +2 -2
- package/dist/esm/state/hooks/useSmartLink.js +1 -1
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +1 -1
- package/dist/esm/state/renderers/index.js +1 -1
- package/dist/esm/state/store/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/analytics/useSmartLinkAnalyticsContext.js +2 -2
- package/dist/esm/utils/analytics/useSmartLinkAnalyticsUtils.js +2 -2
- package/dist/esm/utils/fake-factory.js +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/esm/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/esm/view/EmbedCard/components/IFrame.js +31 -13
- package/dist/esm/view/EmbedCard/components/embedded-confluence-page-context.js +17 -0
- package/dist/esm/view/EmbedCard/components/loadEmbeddedConfluencePage.js +33 -0
- package/dist/esm/view/FlexibleCard/index.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/esm/view/InlineCard/Icon.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/index.js +1 -1
- package/dist/types/entry-points/embedded-confluence-page.d.ts +1 -0
- package/dist/types/extractors/common/title-prefix/extractTitlePrefix.d.ts +2 -2
- package/dist/types/extractors/flexible/actions/extract-rovo-chat-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/index.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-placeholder-data.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-icon-renderer.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-link-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-smart-link-icon.d.ts +1 -1
- package/dist/types/extractors/inline/index.d.ts +1 -1
- package/dist/types/model/invoke-opts.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +1 -1
- package/dist/types/state/actions/types.d.ts +1 -1
- package/dist/types/state/config/index.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +1 -1
- package/dist/types/state/getByDefinitionId.d.ts +1 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/getXProductHeaderValue.d.ts +1 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +1 -1
- package/dist/types/state/hooks/use-ai-summary-config/types.d.ts +1 -1
- package/dist/types/state/hooks/use-control-data-export-config/types.d.ts +1 -1
- package/dist/types/state/hooks/use-embed-rovo-actions-footer-experiment/getEmbedRovoActionsFooterExperimentMeta.d.ts +1 -1
- package/dist/types/state/hooks/use-embed-rovo-actions-footer-experiment/index.d.ts +1 -1
- package/dist/types/state/hooks/use-embed-rovo-actions-footer-experiment/isEmbedRovoActionsFooterExperimentEnabled.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
- package/dist/types/state/hooks/use-response/index.d.ts +2 -1
- package/dist/types/state/hooks/use-rovo-chat/constants.d.ts +1 -1
- package/dist/types/state/hooks/use-rovo-chat/index.d.ts +1 -1
- package/dist/types/state/hooks/use-rovo-config/index.d.ts +1 -1
- package/dist/types/state/hooks/use-smart-link-seen-event/index.d.ts +1 -1
- package/dist/types/state/hooks/usePrefetch.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -2
- package/dist/types/state/isFinalState.d.ts +1 -1
- package/dist/types/state/renderers/index.d.ts +1 -1
- package/dist/types/state/store/index.d.ts +1 -1
- package/dist/types/utils/create.d.ts +1 -1
- package/dist/types/utils/get-measure.d.ts +1 -1
- package/dist/types/utils/mark.d.ts +1 -1
- package/dist/types/view/BlockCard/types.d.ts +2 -2
- package/dist/types/view/Card/types.d.ts +1 -1
- package/dist/types/view/CardWithUrl/experiment-meta-event-attributes/index.d.ts +2 -1
- package/dist/types/view/EmbedCard/components/IFrame.d.ts +5 -1
- package/dist/types/view/EmbedCard/components/embedded-confluence-page-context.d.ts +29 -0
- package/dist/types/view/EmbedCard/components/loadEmbeddedConfluencePage.d.ts +8 -0
- package/dist/types/view/EmbedCard/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/filterActionItems.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +3 -2
- package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +1 -1
- package/dist/types/view/HoverCard/types.d.ts +2 -2
- package/dist/types/view/InlineCard/types.d.ts +2 -2
- package/dist/types/view/common/rovo-chat-utils/index.d.ts +1 -1
- package/dist/types/view/types.d.ts +1 -1
- package/embedded-confluence-page/package.json +10 -0
- package/package.json +7 -7
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ComponentType, type MouseEventHandler, type Provider, type ReactEventHandler, type Ref } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props forwarded to `@atlaskit/embedded-confluence` `Page` from the embed iframe.
|
|
4
|
+
* Kept local so this module never imports the Confluence package.
|
|
5
|
+
*/
|
|
6
|
+
export type EmbeddedConfluencePageProps = {
|
|
7
|
+
allowedFeatures?: unknown;
|
|
8
|
+
contentId: string;
|
|
9
|
+
hash?: string;
|
|
10
|
+
hostname: string;
|
|
11
|
+
iframeRef?: Ref<HTMLIFrameElement>;
|
|
12
|
+
locale?: string;
|
|
13
|
+
mode?: string;
|
|
14
|
+
onLoad?: ReactEventHandler<HTMLIFrameElement>;
|
|
15
|
+
onMouseEnter?: MouseEventHandler<HTMLIFrameElement>;
|
|
16
|
+
onMouseLeave?: MouseEventHandler<HTMLIFrameElement>;
|
|
17
|
+
parentProduct?: string;
|
|
18
|
+
sandbox?: string;
|
|
19
|
+
spaceKey: string;
|
|
20
|
+
themeState?: unknown;
|
|
21
|
+
userInfo?: unknown;
|
|
22
|
+
};
|
|
23
|
+
export type EmbeddedConfluencePageComponent = ComponentType<EmbeddedConfluencePageProps>;
|
|
24
|
+
/**
|
|
25
|
+
* Hosts that want Confluence page embeds can inject `Page` here so Trello and
|
|
26
|
+
* other products never compile `@atlaskit/embedded-confluence` as a hard import.
|
|
27
|
+
*/
|
|
28
|
+
export declare const EmbeddedConfluencePageProvider: Provider<EmbeddedConfluencePageComponent | null>;
|
|
29
|
+
export declare const useEmbeddedConfluencePage: () => EmbeddedConfluencePageComponent | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Async factory for the Confluence embed `Page` component.
|
|
3
|
+
*
|
|
4
|
+
* Kept in its own module so `@atlaskit/embedded-confluence` is a dynamic
|
|
5
|
+
* import only — hosts that never render a Confluence embed URL do not
|
|
6
|
+
* download this chunk.
|
|
7
|
+
*/
|
|
8
|
+
export declare function loadEmbeddedConfluencePage(): Promise<(typeof import('@atlaskit/embedded-confluence'))['Page']>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
3
|
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
4
|
-
import type { CardState } from '@atlaskit/linking-common';
|
|
4
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
5
5
|
import type { InternalCardActionOptions as CardActionOptions, CardPlatform, EmbedIframeUrlType, OnResolveCallback } from '../Card/types';
|
|
6
6
|
import { type OnErrorCallback } from '../types';
|
|
7
7
|
export type EmbedCardProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ProductType } from '@atlaskit/linking-common';
|
|
1
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
2
2
|
import type { FlexibleUiDataContext } from '../../../../state/flexible-ui-context/types';
|
|
3
3
|
import { type ActionItem } from './types';
|
|
4
4
|
export declare const filterActionItems: (items?: ActionItem[], context?: FlexibleUiDataContext, product?: ProductType) => ActionItem[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type MessageDescriptor } from 'react-intl';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
4
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
4
5
|
import type { SmartLinkResponse } from '@atlaskit/linking-types/smart-link';
|
|
5
6
|
import { type FireEventFunction } from '../../common/analytics/types';
|
|
6
7
|
import { type SmartLinkSize, type SmartLinkStatus, type SmartLinkTheme } from '../../constants';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
2
2
|
import type { ActionName } from '../../../../../constants';
|
|
3
3
|
import { type LinkAction } from '../../../../../state/hooks-external/useSmartLinkActions';
|
|
4
4
|
import type { InternalCardActionOptions } from '../../../../Card/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type MouseEventHandler, type ReactElement } from 'react';
|
|
2
2
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
4
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
5
5
|
import type { SmartLinkResponse } from '@atlaskit/linking-types/smart-link';
|
|
6
6
|
import type { ActionName } from '../../constants';
|
|
7
7
|
import { type AnalyticsHandler } from '../../utils/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EventHandler, type KeyboardEvent, type MouseEvent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import type { CardState } from '@atlaskit/linking-common';
|
|
2
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
4
4
|
import type { InternalCardActionOptions as CardActionOptions, OnResolveCallback } from '../Card/types';
|
|
5
5
|
import { type HoverPreviewOptions } from '../HoverCard/types';
|
|
6
6
|
import { type InlinePreloaderStyle, type OnErrorCallback } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type IntlShape } from 'react-intl';
|
|
3
|
-
import type { ProductType } from '@atlaskit/linking-common';
|
|
3
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
4
4
|
import { CardDisplay } from '../../../constants';
|
|
5
5
|
import type { SendPromptMessageData } from '../../../state/hooks/use-rovo-chat';
|
|
6
6
|
import type Action from '../../FlexibleCard/components/actions/action';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Appearance } from '@atlaskit/button/old-button/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { CardType } from '@atlaskit/linking-common/types';
|
|
3
3
|
import { type RequestAccessMessageKey } from '../messages';
|
|
4
4
|
export interface WithShowControlMethodProp {
|
|
5
5
|
showControls?: () => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/smart-card/embedded-confluence-page",
|
|
3
|
+
"main": "../dist/cjs/entry-points/embedded-confluence-page.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/embedded-confluence-page.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/embedded-confluence-page.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/embedded-confluence-page.d.ts"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.
|
|
3
|
+
"version": "45.22.1",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/link-test-helpers": "^11.2.0",
|
|
67
67
|
"@atlaskit/linking-common": "^12.1.0",
|
|
68
68
|
"@atlaskit/linking-types": "^15.3.0",
|
|
69
|
-
"@atlaskit/logo": "^
|
|
69
|
+
"@atlaskit/logo": "^23.0.0",
|
|
70
70
|
"@atlaskit/lozenge": "^15.4.0",
|
|
71
71
|
"@atlaskit/menu": "^10.2.0",
|
|
72
72
|
"@atlaskit/modal-dialog": "^16.6.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@atlaskit/popup": "^6.3.0",
|
|
80
80
|
"@atlaskit/primitives": "^22.5.0",
|
|
81
81
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
82
|
-
"@atlaskit/react-ufo": "^7.
|
|
83
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
82
|
+
"@atlaskit/react-ufo": "^7.10.0",
|
|
83
|
+
"@atlaskit/rovo-triggers": "^10.34.0",
|
|
84
84
|
"@atlaskit/section-message": "^10.2.0",
|
|
85
85
|
"@atlaskit/select": "^22.11.0",
|
|
86
86
|
"@atlaskit/spinner": "^20.4.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/textfield": "^10.2.0",
|
|
91
91
|
"@atlaskit/theme": "^28.2.0",
|
|
92
92
|
"@atlaskit/tile": "^4.1.0",
|
|
93
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
93
|
+
"@atlaskit/tmp-editor-statsig": "^188.0.0",
|
|
94
94
|
"@atlaskit/tokens": "^16.12.0",
|
|
95
95
|
"@atlaskit/tooltip": "^24.3.0",
|
|
96
96
|
"@atlaskit/ufo": "^1.2.0",
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
"fetch-mock": "^8.0.0",
|
|
150
150
|
"jest-extended": "^4.0.2",
|
|
151
151
|
"jest-fetch-mock": "^3.0.3",
|
|
152
|
-
"jest-mock": "
|
|
153
|
-
"jsdom": "
|
|
152
|
+
"jest-mock": "30.0.5",
|
|
153
|
+
"jsdom": "26.1.0",
|
|
154
154
|
"lorem-ipsum": "^1.0.6",
|
|
155
155
|
"react": "^18.2.0",
|
|
156
156
|
"react-ace": "^6.1.0",
|