@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
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { useCallback } from 'react';
|
|
5
5
|
import { useCrossProductUrlWrapper } from '@atlaskit/analytics-cross-product/useCrossProductUrlWrapper';
|
|
6
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
6
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
7
7
|
import { XPC_CONSTANTS } from './constants';
|
|
8
8
|
import { getIsFirstPartyLink } from './getIsFirstPartyLink';
|
|
9
9
|
export var useSmartLinkCrossProductUrlWrapper = function useSmartLinkCrossProductUrlWrapper(_ref) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
5
|
-
import { ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common';
|
|
4
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
5
|
+
import { ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common/actions';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
export function usePrefetch(url, appearance) {
|
|
8
8
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { useSmartCardActions as useSmartLinkActions } from '../actions';
|
|
6
6
|
import { useSmartLinkConfig } from '../config';
|
|
@@ -5,7 +5,7 @@ import { useMemo } from 'react';
|
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
7
7
|
import { v4 as uuid } from 'uuid';
|
|
8
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
8
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
2
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
3
|
export var useSmartLinkRenderers = function useSmartLinkRenderers() {
|
|
4
4
|
var context = useSmartLinkContext();
|
|
5
5
|
var renderers = context === null || context === void 0 ? void 0 : context.renderers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';
|
|
2
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
2
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
3
|
var PENDING_STATE = {
|
|
4
4
|
status: 'pending'
|
|
5
5
|
};
|
|
@@ -3,7 +3,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export var context = {
|
|
4
4
|
componentName: 'smart-cards',
|
|
5
5
|
packageName: "@atlaskit/smart-card" || '',
|
|
6
|
-
packageVersion: "45.
|
|
6
|
+
packageVersion: "45.22.1" || ''
|
|
7
7
|
};
|
|
8
8
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
9
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
|
-
import { getUrl } from '@atlaskit/linking-common';
|
|
2
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
|
+
import { getUrl } from '@atlaskit/linking-common/store';
|
|
4
4
|
import { getSmartLinkAnalyticsContext } from './getSmartLinkAnalyticsContext';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
|
-
import { getUrl } from '@atlaskit/linking-common';
|
|
2
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
|
+
import { getUrl } from '@atlaskit/linking-common/store';
|
|
4
4
|
import { getSmartLinkAnalyticsContext } from './getSmartLinkAnalyticsContext';
|
|
5
5
|
/**
|
|
6
6
|
* Provides an analytics context data to supply attributes to events based on a URL
|
|
@@ -7,7 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
-
import
|
|
10
|
+
import CardClient from '@atlaskit/link-provider/client';
|
|
11
11
|
export var fakeFactory = function fakeFactory(implementation, implementationPost, implementationPrefetch, implementationAri) {
|
|
12
12
|
return /*#__PURE__*/function (_CardClient) {
|
|
13
13
|
function CustomClient() {
|
|
@@ -12,7 +12,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
12
12
|
import { di } from 'react-magnetic-di';
|
|
13
13
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
14
14
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
15
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
15
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
16
16
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react/component-with-fg';
|
|
17
17
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
18
18
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
5
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
6
6
|
import { getExtensionKey } from '../../../state/getExtensionKey';
|
|
7
7
|
import { getEmbedRovoActionsFooterExperimentMeta } from '../../../state/hooks/use-embed-rovo-actions-footer-experiment/getEmbedRovoActionsFooterExperimentMeta';
|
|
8
8
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["childRef", "className", "extensionKey"];
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Page } from '@atlaskit/embedded-confluence/page';
|
|
4
|
+
import React, { lazy, Suspense } from 'react';
|
|
6
5
|
import { useConfluencePageData } from '../../../hooks/useConfluencePageData';
|
|
6
|
+
import { useEmbeddedConfluencePage } from './embedded-confluence-page-context';
|
|
7
|
+
import { loadEmbeddedConfluencePage } from './loadEmbeddedConfluencePage';
|
|
8
|
+
var LazyEmbeddedConfluencePage = /*#__PURE__*/lazy(function () {
|
|
9
|
+
return loadEmbeddedConfluencePage().then(function (Page) {
|
|
10
|
+
return {
|
|
11
|
+
default: Page
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
7
16
|
/**
|
|
8
|
-
* Iframe element isolated for DI purposes
|
|
17
|
+
* Iframe element isolated for DI purposes.
|
|
18
|
+
*
|
|
19
|
+
* Confluence `Page` is a dynamic import (or an injected host component) so
|
|
20
|
+
* Trello and other non-Confluence embeds do not statically pull
|
|
21
|
+
* `@atlaskit/embedded-confluence`.
|
|
9
22
|
*/
|
|
10
23
|
export var IFrame = function IFrame(_ref) {
|
|
11
24
|
var childRef = _ref.childRef,
|
|
@@ -13,9 +26,22 @@ export var IFrame = function IFrame(_ref) {
|
|
|
13
26
|
extensionKey = _ref.extensionKey,
|
|
14
27
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
28
|
var confluencePageData = useConfluencePageData(props.src || '', extensionKey || '');
|
|
29
|
+
var InjectedPage = useEmbeddedConfluencePage();
|
|
30
|
+
var Page = InjectedPage !== null && InjectedPage !== void 0 ? InjectedPage : LazyEmbeddedConfluencePage;
|
|
31
|
+
var fallbackIframe =
|
|
32
|
+
/*#__PURE__*/
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
34
|
+
React.createElement("iframe", _extends({
|
|
35
|
+
className: className
|
|
36
|
+
}, props, {
|
|
37
|
+
ref: childRef,
|
|
38
|
+
title: props.title
|
|
39
|
+
}));
|
|
16
40
|
|
|
17
41
|
// Conditional rendering: Page component for lp-cc-embed URLs, iframe for everything else
|
|
18
|
-
return confluencePageData ? /*#__PURE__*/React.createElement(
|
|
42
|
+
return confluencePageData ? /*#__PURE__*/React.createElement(Suspense, {
|
|
43
|
+
fallback: fallbackIframe
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Page, {
|
|
19
45
|
hostname: confluencePageData.hostname,
|
|
20
46
|
spaceKey: confluencePageData.spaceKey,
|
|
21
47
|
contentId: confluencePageData.contentId,
|
|
@@ -31,13 +57,5 @@ export var IFrame = function IFrame(_ref) {
|
|
|
31
57
|
allowedFeatures: confluencePageData.allowedFeatures,
|
|
32
58
|
themeState: confluencePageData.themeStateObject,
|
|
33
59
|
userInfo: confluencePageData.userInfo
|
|
34
|
-
}) :
|
|
35
|
-
/*#__PURE__*/
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
37
|
-
React.createElement("iframe", _extends({
|
|
38
|
-
className: className
|
|
39
|
-
}, props, {
|
|
40
|
-
ref: childRef,
|
|
41
|
-
title: props.title
|
|
42
|
-
}));
|
|
60
|
+
})) : fallbackIframe;
|
|
43
61
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Props forwarded to `@atlaskit/embedded-confluence` `Page` from the embed iframe.
|
|
5
|
+
* Kept local so this module never imports the Confluence package.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
var EmbeddedConfluencePageContext = /*#__PURE__*/createContext(null);
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Hosts that want Confluence page embeds can inject `Page` here so Trello and
|
|
12
|
+
* other products never compile `@atlaskit/embedded-confluence` as a hard import.
|
|
13
|
+
*/
|
|
14
|
+
export var EmbeddedConfluencePageProvider = EmbeddedConfluencePageContext.Provider;
|
|
15
|
+
export var useEmbeddedConfluencePage = function useEmbeddedConfluencePage() {
|
|
16
|
+
return useContext(EmbeddedConfluencePageContext);
|
|
17
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
+
/**
|
|
4
|
+
* Async factory for the Confluence embed `Page` component.
|
|
5
|
+
*
|
|
6
|
+
* Kept in its own module so `@atlaskit/embedded-confluence` is a dynamic
|
|
7
|
+
* import only — hosts that never render a Confluence embed URL do not
|
|
8
|
+
* download this chunk.
|
|
9
|
+
*/
|
|
10
|
+
export function loadEmbeddedConfluencePage() {
|
|
11
|
+
return _loadEmbeddedConfluencePage.apply(this, arguments);
|
|
12
|
+
}
|
|
13
|
+
function _loadEmbeddedConfluencePage() {
|
|
14
|
+
_loadEmbeddedConfluencePage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
15
|
+
var _yield$import, Page;
|
|
16
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
17
|
+
while (1) switch (_context.prev = _context.next) {
|
|
18
|
+
case 0:
|
|
19
|
+
_context.next = 1;
|
|
20
|
+
return import( /* webpackChunkName: "@atlaskit-internal_smart-card-embedded-confluence" */
|
|
21
|
+
'@atlaskit/embedded-confluence');
|
|
22
|
+
case 1:
|
|
23
|
+
_yield$import = _context.sent;
|
|
24
|
+
Page = _yield$import.Page;
|
|
25
|
+
return _context.abrupt("return", Page);
|
|
26
|
+
case 2:
|
|
27
|
+
case "end":
|
|
28
|
+
return _context.stop();
|
|
29
|
+
}
|
|
30
|
+
}, _callee);
|
|
31
|
+
}));
|
|
32
|
+
return _loadEmbeddedConfluencePage.apply(this, arguments);
|
|
33
|
+
}
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
6
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
6
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
9
9
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
2
2
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
4
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
5
5
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react/component-with-condition';
|
|
6
6
|
import { functionUnionWithCondition } from '@atlaskit/platform-feature-flags-react/function-union-with-condition';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -7,7 +7,7 @@ import { forwardRef } from 'react';
|
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
/* eslint-disable @atlaskit/ui-styling-standard/no-styled */
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { SpanSkeleton } from '@atlaskit/linking-common';
|
|
10
|
+
import { SpanSkeleton } from '@atlaskit/linking-common/span-skeleton';
|
|
11
11
|
// TODO: Figure out a more scalable/responsive solution
|
|
12
12
|
// for vertical alignment.
|
|
13
13
|
// Current rationale: vertically positioned at the top of
|
|
@@ -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: "45.
|
|
15
|
+
packageVersion: "45.22.1",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -7,7 +7,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
7
7
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
8
8
|
import { unstable_batchedUpdates } from 'react-dom';
|
|
9
9
|
import { extractLink } from '@atlaskit/link-extractors/extract-link';
|
|
10
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
10
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
11
11
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
12
12
|
import useIncomingOutgoingAri from '../../state/hooks/use-incoming-outgoing-links';
|
|
13
13
|
import useResponse from '../../state/hooks/use-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmbeddedConfluencePageProvider, useEmbeddedConfluencePage, type EmbeddedConfluencePageComponent, type EmbeddedConfluencePageProps, } from '../view/EmbedCard/components/embedded-confluence-page-context';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
3
|
-
import type { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
-
import type { CardAppearance } from '@atlaskit/linking-common';
|
|
3
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
4
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
5
5
|
export declare const extractTitlePrefix: (jsonLd: JsonLd.Data.BaseData, renderers?: CardProviderRenderers, type?: CardAppearance) => string | React.ReactNode | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import type { ProductType } from '@atlaskit/linking-common';
|
|
2
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
3
3
|
import type { RovoChatActionData } from '../../../state/flexible-ui-context/types';
|
|
4
4
|
import type { RovoConfig } from '../../../state/hooks/use-rovo-config';
|
|
5
5
|
import { type InternalCardActionOptions as CardActionOptions } from '../../../view/Card/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import type { ProductType } from '@atlaskit/linking-common';
|
|
2
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
3
3
|
import { type FireEventFunction } from '../../../common/analytics/types';
|
|
4
4
|
import { type FlexibleUiActions } from '../../../state/flexible-ui-context/types';
|
|
5
5
|
import { type AISummaryConfig } from '../../../state/hooks/use-ai-summary-config/types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { CardState } from '@atlaskit/linking-common';
|
|
1
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
2
2
|
import type { SmartLinkResponse } from '@atlaskit/linking-types/smart-link';
|
|
3
3
|
export declare const extractPlaceHolderCardState: (placeholderData: SmartLinkResponse) => CardState | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
3
|
-
import type { CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
4
4
|
declare const extractIconRenderer: (data: JsonLd.Data.BaseData, renderers?: CardProviderRenderers) => (() => React.ReactNode) | undefined;
|
|
5
5
|
export default extractIconRenderer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import {
|
|
2
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
3
|
import { type IconType } from '../../../constants';
|
|
4
4
|
export declare const extractLinkIcon: (response: JsonLd.Response, renderers?: CardProviderRenderers) => {
|
|
5
5
|
icon?: IconType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
2
2
|
import type { SmartLinkResponse } from '@atlaskit/linking-types/smart-link';
|
|
3
3
|
import { type IconType } from '../../../constants';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
2
2
|
import type { SmartLinkResponse } from '@atlaskit/linking-types/smart-link';
|
|
3
3
|
import { type InlineCardResolvedViewProps } from '../../view/InlineCard/ResolvedView';
|
|
4
4
|
export declare const extractInlineProps: (response?: SmartLinkResponse, renderers?: CardProviderRenderers, removeTextHighlightingFromTitle?: boolean, showLabel?: boolean) => InlineCardResolvedViewProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { InvokePayload, ServerActionOpts } from '@atlaskit/linking-common/types';
|
|
2
2
|
import { type CardInnerAppearance } from '../view/Card/types';
|
|
3
3
|
export type InvokeType = 'server' | 'client';
|
|
4
4
|
export type InvokeOpts<T> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import {
|
|
2
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
3
3
|
import { type InvokeClientOpts, type InvokeServerOpts } from '../../model/invoke-opts';
|
|
4
4
|
import { type CardInnerAppearance } from '../../view/Card/types';
|
|
5
5
|
export declare const useSmartCardActions: (id: string, url: string) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardActionType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export type { CardActionType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardContext } from '@atlaskit/link-provider/types';
|
|
2
2
|
export declare const useSmartLinkConfig: () => CardContext['config'] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkPerson } from '@atlaskit/link-extractors/types';
|
|
2
|
-
import type { ProductType } from '@atlaskit/linking-common';
|
|
2
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
3
3
|
import { type ActionName, type IconType, type InternalActionName, type MediaType } from '../../constants';
|
|
4
4
|
import { type LinkLozenge } from '../../extractors/common/lozenge/types';
|
|
5
5
|
import { type RetryOptions } from '../../view/FlexibleCard/types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardStore } from '@atlaskit/linking-common/store';
|
|
2
2
|
export declare const getByDefinitionId: (definitionId: string | undefined, store: CardStore) => string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EnvironmentsKeys, ProductType } from '@atlaskit/linking-common';
|
|
1
|
+
import type { EnvironmentsKeys, ProductType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export interface AISummaryServiceInt {
|
|
3
3
|
state: AISummaryState;
|
|
4
4
|
subscribe: (stateSetter: StateSetter) => () => void;
|
|
@@ -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 { EmbedRovoActionsFooterExperimentMeta } from './index';
|
|
3
3
|
export declare const getEmbedRovoActionsFooterExperimentMeta: ({ extensionKey, isRovoChatActionOptedIn, isRovoChatEnabled, product, }: {
|
|
4
4
|
extensionKey?: string;
|
|
@@ -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 { RovoConfig } from '../../../state/hooks/use-rovo-config';
|
|
3
3
|
import type { CardActionOptions } from '../../../view/Card/types';
|
|
4
4
|
export declare const EMBED_ROVO_ACTIONS_FOOTER_EXPERIMENT_KEY = "platform_sl_3p_auth_rovo_embed_footer_exp";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ProductType } from '@atlaskit/linking-common';
|
|
1
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export declare const isEmbedRovoActionsFooterExperimentEnabled: (product?: ProductType) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import type { CardState } from '@atlaskit/linking-common';
|
|
2
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
3
3
|
import type { InvokeClientOpts, InvokeServerOpts } from '../../../model/invoke-opts';
|
|
4
4
|
import type { CardInnerAppearance } from '../../../view/Card/types';
|
|
5
5
|
declare const useResolveHyperlink: ({ href, }: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import {
|
|
2
|
+
import type { MetadataStatus } from '@atlaskit/linking-common/types';
|
|
3
|
+
import { APIError } from '@atlaskit/linking-common';
|
|
3
4
|
declare const useResponse: () => {
|
|
4
5
|
handleResolvedLinkError: (url: string, error: APIError, response?: JsonLd.Response, isMetadataRequest?: boolean) => void;
|
|
5
6
|
handleResolvedLinkResponse: (resourceUrl: string, response: JsonLd.Response | undefined, isReloading?: boolean, isMetadataRequest?: boolean, metadataStatus?: MetadataStatus) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ProductType } from '@atlaskit/linking-common';
|
|
1
|
+
import type { ProductType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export declare const JIRA_PRODUCTS: ProductType[];
|
|
@@ -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 { ChatNewPayload } from '@atlaskit/rovo-triggers/types';
|
|
3
3
|
export type SendPromptMessageData = Partial<ChatNewPayload['data']>;
|
|
4
4
|
declare const useRovoChat: () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardType } from '@atlaskit/linking-common/types';
|
|
2
2
|
import type { CardProps } from '../../../view/Card';
|
|
3
3
|
type UseSmartLinkSeenEventProps = Pick<CardProps, 'appearance' | 'children' | 'id' | 'ui' | 'url'>;
|
|
4
4
|
type UseSmartLinkSeenEventReturn = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
2
2
|
export declare function usePrefetch(url: string, appearance?: CardAppearance): () => Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import {
|
|
3
|
-
import type { CardAppearance
|
|
2
|
+
import type { CardAuthFlowOpts, CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
4
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
4
5
|
import type { InvokeClientOpts, InvokeServerOpts } from '../../model/invoke-opts';
|
|
5
6
|
import type { CardInnerAppearance } from '../../view/Card/types';
|
|
6
7
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export declare const isFinalState: (status: CardType) => boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardContext } from '@atlaskit/link-provider/types';
|
|
2
2
|
export declare const useSmartLinkRenderers: () => CardContext['renderers'] | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
2
2
|
export declare function useSmartCardState(url: string): CardState;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export declare const create: (id: string, status: CardType) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export declare const getMeasure: (id: string, status: CardType) => PerformanceEntry | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CardType } from '@atlaskit/linking-common/types';
|
|
2
2
|
export declare const mark: (id: string, status: CardType) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { CardState } from '@atlaskit/linking-common';
|
|
1
|
+
import type { CardAuthFlowOpts, CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
2
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
3
3
|
import { type InternalCardActionOptions as CardActionOptions, type OnResolveCallback } from '../Card/types';
|
|
4
4
|
import { type OnErrorCallback } from '../types';
|
|
5
5
|
export type BlockCardProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
2
2
|
import type { CardPlatform } from '@atlaskit/link-extractors/types';
|
|
3
|
-
import {
|
|
3
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
4
4
|
import type { CardAction } from '../../constants';
|
|
5
5
|
import { type FrameStyle } from '../EmbedCard/types';
|
|
6
6
|
import type { EmbedModalSize } from '../EmbedModal/types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CardAppearance
|
|
1
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
2
|
+
import type { CardState } from '@atlaskit/linking-common/store';
|
|
2
3
|
import type { EmbedRovoActionsFooterExperimentMeta } from '../../../state/hooks/use-embed-rovo-actions-footer-experiment';
|
|
3
4
|
import type { BlockCardSocialProofExperimentMeta, InlineSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment';
|
|
4
5
|
import type { InternalCardActionOptions } from '../../Card/types';
|
|
@@ -5,7 +5,11 @@ interface IFrameProps {
|
|
|
5
5
|
extensionKey?: string;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Iframe element isolated for DI purposes
|
|
8
|
+
* Iframe element isolated for DI purposes.
|
|
9
|
+
*
|
|
10
|
+
* Confluence `Page` is a dynamic import (or an injected host component) so
|
|
11
|
+
* Trello and other non-Confluence embeds do not statically pull
|
|
12
|
+
* `@atlaskit/embedded-confluence`.
|
|
9
13
|
*/
|
|
10
14
|
export declare const IFrame: ({ childRef, className, extensionKey, ...props }: React.ComponentProps<'iframe'> & IFrameProps) => React.JSX.Element;
|
|
11
15
|
export {};
|