@atlaskit/smart-card 45.24.5 → 45.24.7
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 +12 -0
- package/analytics.spec.yaml +14 -11
- package/dist/cjs/classNames.js +1 -0
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/cjs/extractors/action/extract-invoke-view-action.js +1 -1
- package/dist/cjs/extractors/embed/index.js +1 -1
- package/dist/cjs/state/hooks/use-ai-summary/ai-summary-service/index.js +2 -2
- package/dist/cjs/state/hooks/use-response/index.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +2 -1
- package/dist/cjs/utils/is-flexible-ui-block.js +1 -1
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +2 -2
- package/dist/cjs/view/CardWithUrl/component.js +7 -7
- package/dist/cjs/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/cjs/view/CardWithUrl/loader.js +1 -1
- package/dist/cjs/view/EmbedCard/index.js +1 -1
- package/dist/cjs/view/EmbedModal/index.js +1 -1
- package/dist/cjs/view/Flag/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils/render-with-di.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +1 -1
- package/dist/cjs/view/FlexibleCard/getRetryOptions.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +1 -1
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +1 -1
- package/dist/cjs/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/cjs/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +1 -1
- package/dist/cjs/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/cjs/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/cjs/view/LinkUrl/LinkWarningModal/index.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -1
- package/dist/es2019/classNames.js +1 -0
- package/dist/es2019/entry-points/hover.js +1 -0
- package/dist/es2019/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/es2019/extractors/action/extract-invoke-view-action.js +1 -1
- package/dist/es2019/extractors/embed/index.js +1 -1
- package/dist/es2019/hooks.js +1 -0
- package/dist/es2019/hoverCard.js +1 -0
- package/dist/es2019/linkUrl.js +1 -0
- package/dist/es2019/state/helpers.js +1 -0
- package/dist/es2019/state/hooks/use-ai-summary/ai-summary-service/index.js +2 -2
- package/dist/es2019/state/hooks/use-response/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +2 -1
- package/dist/es2019/utils/analytics/useSmartLinkAnalyticsContext.js +0 -1
- package/dist/es2019/utils/is-flexible-ui-block.js +1 -1
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +2 -2
- package/dist/es2019/view/CardWithUrl/component.js +7 -7
- package/dist/es2019/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/es2019/view/CardWithUrl/loader.js +1 -1
- package/dist/es2019/view/EmbedCard/index.js +1 -1
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/carousel-images/RovoChatBenefitImage.js +1 -0
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/carousel-images/RovoSearchBenefitImage.js +1 -0
- package/dist/es2019/view/EmbedCard/views/unauthorized-view/carousel-images/SmartLinkBenefitImage.js +1 -0
- package/dist/es2019/view/EmbedModal/index.js +1 -1
- package/dist/es2019/view/Flag/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils/render-with-di.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/AutomationMenuProvider.js +0 -1
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +1 -1
- package/dist/es2019/view/FlexibleCard/getRetryOptions.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +1 -1
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +1 -1
- package/dist/es2019/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/es2019/view/InlineCard/Icon.js +1 -0
- package/dist/es2019/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +1 -1
- package/dist/es2019/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/es2019/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/es2019/view/LinkUrl/LinkWarningModal/index.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -1
- package/dist/es2019/view/SmartLinkEvents/useSmartLinkEvents.js +1 -0
- package/dist/esm/classNames.js +1 -0
- package/dist/esm/entry-points/hover.js +1 -0
- package/dist/esm/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/esm/extractors/action/extract-invoke-view-action.js +1 -1
- package/dist/esm/extractors/embed/index.js +1 -1
- package/dist/esm/hooks.js +1 -0
- package/dist/esm/hoverCard.js +1 -0
- package/dist/esm/linkUrl.js +1 -0
- package/dist/esm/state/helpers.js +1 -0
- package/dist/esm/state/hooks/use-ai-summary/ai-summary-service/index.js +2 -2
- package/dist/esm/state/hooks/use-response/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +2 -1
- package/dist/esm/utils/analytics/useSmartLinkAnalyticsContext.js +0 -1
- package/dist/esm/utils/is-flexible-ui-block.js +1 -1
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +2 -2
- package/dist/esm/view/CardWithUrl/component.js +7 -7
- package/dist/esm/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/esm/view/CardWithUrl/loader.js +1 -1
- package/dist/esm/view/EmbedCard/index.js +1 -1
- package/dist/esm/view/EmbedCard/views/unauthorized-view/carousel-images/RovoChatBenefitImage.js +1 -0
- package/dist/esm/view/EmbedCard/views/unauthorized-view/carousel-images/RovoSearchBenefitImage.js +1 -0
- package/dist/esm/view/EmbedCard/views/unauthorized-view/carousel-images/SmartLinkBenefitImage.js +1 -0
- package/dist/esm/view/EmbedModal/index.js +1 -1
- package/dist/esm/view/Flag/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils/render-with-di.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/manual-triggers-form/main.js +2 -2
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/main.js +1 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/menu-context/AutomationMenuProvider.js +0 -1
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-modal/sub-components/header/main.js +1 -1
- package/dist/esm/view/FlexibleCard/getRetryOptions.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardComponent.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +1 -1
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +1 -1
- package/dist/esm/view/InlineCard/ErroredView/index.js +1 -1
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +2 -2
- package/dist/esm/view/InlineCard/Icon.js +1 -0
- package/dist/esm/view/InlineCard/ResolvedView/InlineCardResolvedViewFunctional.js +1 -1
- package/dist/esm/view/InlineCard/ResolvedView/index.js +1 -1
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +1 -1
- package/dist/esm/view/LinkUrl/HyperlinkResolver/index.js +1 -1
- package/dist/esm/view/LinkUrl/LinkWarningModal/index.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +1 -1
- package/dist/esm/view/SmartLinkEvents/useSmartLinkEvents.js +1 -0
- package/dist/types/state/hooks/use-response/index.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/view/CardWithUrl/experiment-meta-event-attributes/index.d.ts +1 -1
- package/dist/types/view/EmbedCard/types.d.ts +1 -1
- package/dist/types/view/Flag/index.d.ts +28 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-lozenge-element/lozenge-action/lozenge-action-trigger/index.d.ts +4 -0
- package/dist/types/view/HoverCard/components/HoverCardContent.d.ts +1 -1
- package/dist/types/view/InlineCard/index.d.ts +1 -1
- package/package.json +6 -6
|
@@ -2,8 +2,8 @@ import { useCallback, useMemo } from 'react';
|
|
|
2
2
|
import { unstable_batchedUpdates } from 'react-dom';
|
|
3
3
|
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
4
4
|
import { ACTION_ERROR, ACTION_ERROR_FALLBACK, ACTION_RELOADING, ACTION_RESOLVED, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common/actions';
|
|
5
|
-
import { getStatus } from '@atlaskit/linking-common/utils/get-status';
|
|
6
5
|
import { APIError } from '@atlaskit/linking-common/api-error';
|
|
6
|
+
import { getStatus } from '@atlaskit/linking-common/utils/get-status';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { SmartLinkStatus } from '../../../constants';
|
|
9
9
|
import { getUnauthorizedJsonLd } from '../../../utils/get-unauthorized-json-ld';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
export var ANALYTICS_CHANNEL = 'media';
|
|
3
4
|
export var context = {
|
|
4
5
|
componentName: 'smart-cards',
|
|
5
6
|
packageName: "@atlaskit/smart-card" || '',
|
|
6
|
-
packageVersion: "45.24.
|
|
7
|
+
packageVersion: "45.24.6" || ''
|
|
7
8
|
};
|
|
8
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
9
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -2,7 +2,6 @@ import { useMemo } from 'react';
|
|
|
2
2
|
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
3
|
import { getUrl } from '@atlaskit/linking-common/store';
|
|
4
4
|
import { getSmartLinkAnalyticsContext } from './getSmartLinkAnalyticsContext';
|
|
5
|
-
|
|
6
5
|
/**
|
|
7
6
|
* Provides an analytics context data to supply attributes to events based on a URL
|
|
8
7
|
* and the link state in the store
|
|
@@ -3,11 +3,11 @@ import ActionBlock from '../view/FlexibleCard/components/blocks/action-block';
|
|
|
3
3
|
import AIFooterBlock from '../view/FlexibleCard/components/blocks/ai-footer-block';
|
|
4
4
|
import Block from '../view/FlexibleCard/components/blocks/block';
|
|
5
5
|
import FooterBlock from '../view/FlexibleCard/components/blocks/footer-block';
|
|
6
|
+
import ResolvedHoverCardFooterBlock from '../view/FlexibleCard/components/blocks/hover-card-footer-block';
|
|
6
7
|
import MetadataBlock from '../view/FlexibleCard/components/blocks/metadata-block';
|
|
7
8
|
import PreviewBlock from '../view/FlexibleCard/components/blocks/preview-block';
|
|
8
9
|
import SnippetBlock from '../view/FlexibleCard/components/blocks/snippet-block';
|
|
9
10
|
import TitleBlock from '../view/FlexibleCard/components/blocks/title-block';
|
|
10
|
-
import ResolvedHoverCardFooterBlock from '../view/FlexibleCard/components/blocks/hover-card-footer-block';
|
|
11
11
|
import { isStyleCacheProvider } from './is-style-cache-provider';
|
|
12
12
|
var Blocks = {
|
|
13
13
|
ActionBlock: ActionBlock,
|
|
@@ -11,13 +11,13 @@ import extractRovoChatAction from '../../../extractors/flexible/actions/extract-
|
|
|
11
11
|
import { getExtensionKey } from '../../../state/getExtensionKey';
|
|
12
12
|
import useBlockCardRovoAction from '../../../state/hooks/use-block-card-rovo-action-experiment';
|
|
13
13
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
14
|
+
import { RovoChatPromptKey } from '../../common/rovo-chat-utils';
|
|
14
15
|
import FlexibleCard from '../../FlexibleCard';
|
|
15
16
|
import { default as FooterBlock } from '../../FlexibleCard/components/blocks/footer-block';
|
|
16
17
|
import { default as MetadataBlock } from '../../FlexibleCard/components/blocks/metadata-block';
|
|
17
18
|
import { default as PreviewBlock } from '../../FlexibleCard/components/blocks/preview-block';
|
|
18
19
|
import { default as SnippetBlock } from '../../FlexibleCard/components/blocks/snippet-block';
|
|
19
20
|
import { default as TitleBlock } from '../../FlexibleCard/components/blocks/title-block';
|
|
20
|
-
import { RovoChatPromptKey } from '../../common/rovo-chat-utils';
|
|
21
21
|
import { FlexibleCardUiOptions, getSimulatedBetterMetadata, PreviewBlockOptions, titleBlockOptions } from './utils';
|
|
22
22
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
23
23
|
var titleBlockCss = null;
|
|
@@ -22,6 +22,7 @@ import { useFlexibleCardContext } from '../../../state/flexible-ui-context/useFl
|
|
|
22
22
|
import { hasAuthScopeOverrides } from '../../../state/hasAuthScopeOverrides';
|
|
23
23
|
import { getSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment/getSocialProofExperimentMeta';
|
|
24
24
|
import { default as useSocialProofExperiment } from '../../../state/hooks/use-social-proof-experiment/index';
|
|
25
|
+
import UnauthorisedViewContent from '../../common/UnauthorisedViewContent';
|
|
25
26
|
import FlexibleCard from '../../FlexibleCard';
|
|
26
27
|
import ActionGroup from '../../FlexibleCard/components/blocks/action-group';
|
|
27
28
|
import Block from '../../FlexibleCard/components/blocks/block';
|
|
@@ -29,10 +30,9 @@ import ElementGroup from '../../FlexibleCard/components/blocks/element-group';
|
|
|
29
30
|
import { renderElementItems } from '../../FlexibleCard/components/blocks/renderElementItems';
|
|
30
31
|
import { default as LinkIcon } from '../../FlexibleCard/components/elements/link-icon-element';
|
|
31
32
|
import { default as Title } from '../../FlexibleCard/components/elements/title-element';
|
|
32
|
-
import UnauthorisedViewContent from '../../common/UnauthorisedViewContent';
|
|
33
33
|
import { AuthorizeAction } from '../actions/AuthorizeAction';
|
|
34
|
-
import SocialProofMessage from './SocialProofMessage';
|
|
35
34
|
import unauthIllustrationGeneral from './assets/general@2x.png';
|
|
35
|
+
import SocialProofMessage from './SocialProofMessage';
|
|
36
36
|
import { FlexibleCardUiOptions, titleBlockOptions } from './utils';
|
|
37
37
|
import { withFlexibleUIBlockCardStyle } from './utils/withFlexibleUIBlockCardStyle';
|
|
38
38
|
var contentStyles = null;
|
|
@@ -2,9 +2,9 @@ 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 React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
5
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
6
5
|
import { useAnalyticsEvents as useAnalyticsEventsNext } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
7
6
|
import { extractSmartLinkEmbed } from '@atlaskit/link-extractors/extract-smart-link-embed';
|
|
7
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
@@ -24,17 +24,17 @@ import { useSmartLinkCrossProductUrlWrapper } from '../../state/hooks/use-smart-
|
|
|
24
24
|
import { useSmartLink } from '../../state/hooks/useSmartLink';
|
|
25
25
|
import { isFinalState } from '../../state/isFinalState';
|
|
26
26
|
import { SmartLinkModalProvider } from '../../state/modal/SmartLinkModalProvider';
|
|
27
|
-
import { isSpecialClick } from '../../utils/is-special-click';
|
|
28
|
-
import { isSpecialEvent } from '../../utils/is-special-event';
|
|
29
|
-
import { isSpecialKey } from '../../utils/is-special-key';
|
|
30
27
|
import { combineActionOptions } from '../../utils/actions/combine-action-options';
|
|
31
|
-
import { SmartLinkAnalyticsContext } from '../../utils/analytics/SmartLinkAnalyticsContext';
|
|
32
28
|
import { fireLinkClickedEvent } from '../../utils/analytics/fireLinkClickedEvent';
|
|
29
|
+
import { SmartLinkAnalyticsContext } from '../../utils/analytics/SmartLinkAnalyticsContext';
|
|
30
|
+
import { create } from '../../utils/create';
|
|
33
31
|
import { getAnchorAttributesFromEvent } from '../../utils/get-anchor-attributes-from-event';
|
|
32
|
+
import { getMeasure } from '../../utils/get-measure';
|
|
34
33
|
import { isAuxClick } from '../../utils/is-aux-click';
|
|
35
34
|
import { isFlexibleUiCard } from '../../utils/is-flexible-ui-card';
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
35
|
+
import { isSpecialClick } from '../../utils/is-special-click';
|
|
36
|
+
import { isSpecialEvent } from '../../utils/is-special-event';
|
|
37
|
+
import { isSpecialKey } from '../../utils/is-special-key';
|
|
38
38
|
import { mark } from '../../utils/mark';
|
|
39
39
|
import { updateAnchorHref } from '../../utils/update-anchor-href';
|
|
40
40
|
import { BlockCard } from '../BlockCard';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
4
|
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
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';
|
|
@@ -11,10 +11,10 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
11
11
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
12
12
|
import { failUfoExperience } from '../../state/analytics/failUfoExperience';
|
|
13
13
|
import { startUfoExperience } from '../../state/analytics/startUfoExperience';
|
|
14
|
-
import { importWithRetry } from '../../utils/import-with-retry';
|
|
15
14
|
import { useSmartLinkAnalyticsContext } from '../../utils/analytics/useSmartLinkAnalyticsContext';
|
|
16
15
|
import { clearMarks } from '../../utils/clear-marks';
|
|
17
16
|
import { clearMeasures } from '../../utils/clear-measures';
|
|
17
|
+
import { importWithRetry } from '../../utils/import-with-retry';
|
|
18
18
|
import { isFlexibleUiCard } from '../../utils/is-flexible-ui-card';
|
|
19
19
|
import { LoadingCardLink } from './component-lazy/LoadingCardLink';
|
|
20
20
|
export var LazyCardWithUrlContent = /*#__PURE__*/lazy(function () {
|
|
@@ -13,9 +13,9 @@ import { getIsDataExportEnabled } from '../../utils/should-data-export';
|
|
|
13
13
|
import BlockCardResolvedView from '../BlockCard/views/ResolvedView';
|
|
14
14
|
import { InlineCardResolvedView } from '../InlineCard/ResolvedView';
|
|
15
15
|
import { EmbedCardErroredView } from './views/ErroredView';
|
|
16
|
-
import { EmbedCardResolvedView } from './views/ResolvedView';
|
|
17
16
|
import ForbiddenView from './views/forbidden-view';
|
|
18
17
|
import NotFoundView from './views/not-found-view';
|
|
18
|
+
import { EmbedCardResolvedView } from './views/ResolvedView';
|
|
19
19
|
import UnauthorizedView from './views/unauthorized-view';
|
|
20
20
|
var UFOLoadHoldWrapper = function UFOLoadHoldWrapper(_ref) {
|
|
21
21
|
var children = _ref.children;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
-
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
5
4
|
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
5
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
6
6
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
7
7
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
8
8
|
import { SmartLinkSize } from '../../constants';
|
|
@@ -32,12 +32,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
32
32
|
*
|
|
33
33
|
* Usage: import `showFlag` and call it directly — no provider needed.
|
|
34
34
|
*/
|
|
35
|
+
|
|
35
36
|
import React from 'react';
|
|
36
37
|
import { flushSync } from 'react-dom';
|
|
37
38
|
import { createRoot } from 'react-dom/client';
|
|
38
39
|
import { IntlProvider } from 'react-intl';
|
|
39
|
-
import FlagGroup from '@atlaskit/flag/flag-group';
|
|
40
40
|
import AutoDismissFlag from '@atlaskit/flag/auto-dismiss-flag';
|
|
41
|
+
import FlagGroup from '@atlaskit/flag/flag-group';
|
|
41
42
|
import AIPrism from '../common/ai-prism';
|
|
42
43
|
var FLAG_GROUP_MOUNT_POINT_ID = 'smart-link-flags-mount';
|
|
43
44
|
|
|
@@ -3,9 +3,9 @@ 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, { Fragment } from 'react';
|
|
6
|
-
import { render } from '@atlassian/testing-library';
|
|
7
6
|
import { IntlProvider } from 'react-intl'; // eslint-disable-line import/no-extraneous-dependencies
|
|
8
7
|
import { DiProvider } from 'react-magnetic-di';
|
|
8
|
+
import { render } from '@atlassian/testing-library';
|
|
9
9
|
var Provider = function Provider(_ref) {
|
|
10
10
|
var children = _ref.children,
|
|
11
11
|
use = _ref.use,
|
|
@@ -2,11 +2,11 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { di } from 'react-magnetic-di';
|
|
4
4
|
import Button from '@atlaskit/button/default/button';
|
|
5
|
-
import Form from '@atlaskit/form/form';
|
|
6
5
|
import { ErrorMessage } from '@atlaskit/form/error-message';
|
|
6
|
+
import Form from '@atlaskit/form/form';
|
|
7
7
|
import { FormSection } from '@atlaskit/form/form-section';
|
|
8
|
-
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
9
8
|
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
9
|
+
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
10
10
|
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
11
11
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
12
12
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
4
|
-
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
5
4
|
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
5
|
+
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
6
6
|
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
7
7
|
import { AutomationMenuContextContainer } from './menu-context/AutomationMenuContextContainer';
|
|
8
8
|
import { AutomationModalBody } from './sub-components/body';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// This is another layer on top of the AFE ManualRulesContainer.
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
4
3
|
// It is necessary that this container wraps the entire "automation" component and not nested. Else the user input form will not render correctly.
|
|
5
4
|
// This container provides an automation context to all children components through the useAutomationMenu hook.
|
|
6
5
|
|
|
@@ -5,9 +5,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { defineMessages, useIntl } from 'react-intl';
|
|
6
6
|
import Heading from '@atlaskit/heading/heading';
|
|
7
7
|
import AutomationIcon from '@atlaskit/icon/core/automation';
|
|
8
|
+
import { useModal } from '@atlaskit/modal-dialog/hooks';
|
|
8
9
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
9
10
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
10
|
-
import { useModal } from '@atlaskit/modal-dialog/hooks';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { Box, Inline, Stack } from '@atlaskit/primitives/compiled';
|
|
13
13
|
import { useAutomationMenu } from '../../menu-context/useAutomationMenu';
|
|
@@ -3,8 +3,8 @@ import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
|
3
3
|
import { SmartLinkStatus } from '../../constants';
|
|
4
4
|
import { extractRequestAccessContextImproved } from '../../extractors/common/context/extractAccessContext';
|
|
5
5
|
import { messages } from '../../messages';
|
|
6
|
-
import { handleOnClick } from '../../utils/handle-on-click';
|
|
7
6
|
import { getForbiddenJsonLd } from '../../utils/get-forbidden-json-ld';
|
|
7
|
+
import { handleOnClick } from '../../utils/handle-on-click';
|
|
8
8
|
var getForbiddenMessageKey = function getForbiddenMessageKey(meta) {
|
|
9
9
|
var _meta$requestAccess;
|
|
10
10
|
var accessType = meta === null || meta === void 0 || (_meta$requestAccess = meta.requestAccess) === null || _meta$requestAccess === void 0 ? void 0 : _meta$requestAccess.accessType;
|
|
@@ -9,8 +9,8 @@ import { ActionName, CardDisplay } from '../../../constants';
|
|
|
9
9
|
import { useSmartCardActions } from '../../../state/actions';
|
|
10
10
|
import { useSmartLinkRenderers } from '../../../state/renderers';
|
|
11
11
|
import { useSmartCardState as useLinkState } from '../../../state/store';
|
|
12
|
-
import { noop } from '../../../utils/noop';
|
|
13
12
|
import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAnalyticsContext';
|
|
13
|
+
import { noop } from '../../../utils/noop';
|
|
14
14
|
import HoverCardContent from '../components/HoverCardContent';
|
|
15
15
|
import { CARD_GAP_PX, HOVER_CARD_Z_INDEX } from '../styled';
|
|
16
16
|
import { createCustomPopupContainer } from './createCustomPopupContainer';
|
|
@@ -15,10 +15,10 @@ import { getServices } from '../../../state/getServices';
|
|
|
15
15
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
16
16
|
import { useSmartLinkCrossProductUrlWrapper } from '../../../state/hooks/use-smart-link-cross-product-url-wrapper';
|
|
17
17
|
import { useSmartCardState } from '../../../state/store';
|
|
18
|
-
import { isSpecialEvent } from '../../../utils/is-special-event';
|
|
19
18
|
import { fireLinkClickedEvent } from '../../../utils/analytics/fireLinkClickedEvent';
|
|
20
19
|
import { getAnchorAttributesFromEvent } from '../../../utils/get-anchor-attributes-from-event';
|
|
21
20
|
import { getIsAISummaryEnabled } from '../../../utils/get-is-ai-summary-enabled';
|
|
21
|
+
import { isSpecialEvent } from '../../../utils/is-special-event';
|
|
22
22
|
import { updateAnchorHref } from '../../../utils/update-anchor-href';
|
|
23
23
|
import { flexibleUiOptions } from '../styled';
|
|
24
24
|
import { getMetadata } from '../utils';
|
|
@@ -3,10 +3,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { LoadingSkeleton } from '../../../../common/loading-skeleton';
|
|
6
7
|
import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
|
|
7
8
|
import { default as CustomBlock } from '../../../../FlexibleCard/components/blocks/block';
|
|
8
9
|
import { BaseIconElement } from '../../../../FlexibleCard/components/elements/common';
|
|
9
|
-
import { LoadingSkeleton } from '../../../../common/loading-skeleton';
|
|
10
10
|
import { CARD_WIDTH_REM } from '../../../styled';
|
|
11
11
|
var loadingViewContainer = null;
|
|
12
12
|
var skeletonContainer = null;
|
|
@@ -11,10 +11,10 @@ import { ActionName, CardDisplay } from '../../../../../constants';
|
|
|
11
11
|
import { messages } from '../../../../../messages';
|
|
12
12
|
import { useSmartCardActions } from '../../../../../state/actions';
|
|
13
13
|
import { hasAuthScopeOverrides } from '../../../../../state/hasAuthScopeOverrides';
|
|
14
|
+
import UnauthorisedViewContent from '../../../../common/UnauthorisedViewContent';
|
|
14
15
|
import FlexibleCard from '../../../../FlexibleCard';
|
|
15
16
|
import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
|
|
16
17
|
import { default as CustomBlock } from '../../../../FlexibleCard/components/blocks/block';
|
|
17
|
-
import UnauthorisedViewContent from '../../../../common/UnauthorisedViewContent';
|
|
18
18
|
import { default as LinkIcon } from '../../../../FlexibleCard/components/elements/link-icon-element';
|
|
19
19
|
var connectButtonStyles = null;
|
|
20
20
|
var titleBlockStyles = null;
|
|
@@ -5,9 +5,9 @@ import { FormattedMessage } from 'react-intl';
|
|
|
5
5
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
6
6
|
import { messages } from '../../../messages';
|
|
7
7
|
import { HoverCard } from '../../HoverCard';
|
|
8
|
+
import { ActionButton } from '../common/action-button';
|
|
8
9
|
import { Frame } from '../Frame';
|
|
9
10
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
10
|
-
import { ActionButton } from '../common/action-button';
|
|
11
11
|
var fallbackIcon = function fallbackIcon() {
|
|
12
12
|
return /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
13
13
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
@@ -9,10 +9,10 @@ import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
|
9
9
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import { messages } from '../../../messages';
|
|
11
11
|
import { HoverCard } from '../../HoverCard';
|
|
12
|
-
import { Frame } from '../Frame';
|
|
13
|
-
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
14
12
|
import { ActionButton } from '../common/action-button';
|
|
15
13
|
import InlineLozenge from '../common/inline-lozenge';
|
|
14
|
+
import { Frame } from '../Frame';
|
|
15
|
+
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
16
16
|
var styles = {
|
|
17
17
|
actionButtonLozengeStyle: "_2rkolb4i _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _p12f1osq"
|
|
18
18
|
};
|
|
@@ -6,6 +6,7 @@ import "./Icon.compiled.css";
|
|
|
6
6
|
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
10
|
import React from 'react';
|
|
10
11
|
import { SpanSkeleton } from '@atlaskit/linking-common/span-skeleton';
|
|
11
12
|
// TODO: Figure out a more scalable/responsive solution
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import useInlineTailoredAction from '../../../state/hooks/use-inline-tailored-actions';
|
|
3
3
|
import { HoverCard } from '../../HoverCard';
|
|
4
|
+
import { InlineRovoActionButton } from '../common/rovo-actions-cta';
|
|
4
5
|
import { Frame } from '../Frame';
|
|
5
6
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
6
|
-
import { InlineRovoActionButton } from '../common/rovo-actions-cta';
|
|
7
7
|
import { renderLozenge } from './renderLozenge';
|
|
8
8
|
export function InlineCardResolvedViewFunctional(_ref) {
|
|
9
9
|
var id = _ref.id,
|
|
@@ -10,9 +10,9 @@ import React from 'react';
|
|
|
10
10
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react/component-with-fg';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { HoverCard } from '../../HoverCard';
|
|
13
|
+
import InlineLozenge from '../common/inline-lozenge';
|
|
13
14
|
import { Frame } from '../Frame';
|
|
14
15
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
15
|
-
import InlineLozenge from '../common/inline-lozenge';
|
|
16
16
|
import { InlineCardResolvedViewFunctional } from './InlineCardResolvedViewFunctional';
|
|
17
17
|
var InlineCardResolvedViewClass = /*#__PURE__*/function (_React$Component) {
|
|
18
18
|
function InlineCardResolvedViewClass() {
|
|
@@ -14,9 +14,9 @@ import { useAnalyticsEvents } from '../../../common/analytics/generated/use-anal
|
|
|
14
14
|
import { messages } from '../../../messages';
|
|
15
15
|
import { getCachedProviderPctMapAndRefresh } from '../../../state/services/personalization/getCachedProviderPctMapAndRefresh';
|
|
16
16
|
import { HoverCard } from '../../HoverCard';
|
|
17
|
+
import { ActionButton } from '../common/action-button';
|
|
17
18
|
import { Frame } from '../Frame';
|
|
18
19
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
19
|
-
import { ActionButton } from '../common/action-button';
|
|
20
20
|
var fallbackUnauthorizedIcon = function fallbackUnauthorizedIcon() {
|
|
21
21
|
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
22
22
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
@@ -10,8 +10,8 @@ import useResolveHyperlink from '../../../state/hooks/use-resolve-hyperlink';
|
|
|
10
10
|
import { default as useResolveHyperlinkValidator } from '../../../state/hooks/use-resolve-hyperlink/useResolveHyperlinkValidator';
|
|
11
11
|
import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAnalyticsContext';
|
|
12
12
|
import { isAuxClick } from '../../../utils/is-aux-click';
|
|
13
|
-
import { useFire3PWorkflowsClickEvent } from '../../SmartLinkEvents/useFire3PWorkflowsClickEvent';
|
|
14
13
|
import withIntlProvider from '../../common/intl-provider';
|
|
14
|
+
import { useFire3PWorkflowsClickEvent } from '../../SmartLinkEvents/useFire3PWorkflowsClickEvent';
|
|
15
15
|
import Hyperlink from '../Hyperlink';
|
|
16
16
|
var HyperlinkFallbackComponent = function HyperlinkFallbackComponent() {
|
|
17
17
|
return null;
|
|
@@ -6,8 +6,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { FormattedMessage, injectIntl, IntlProvider } from 'react-intl';
|
|
7
7
|
import Button from '@atlaskit/button/standard-button';
|
|
8
8
|
import Link from '@atlaskit/link/link';
|
|
9
|
-
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
10
9
|
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
10
|
+
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
11
11
|
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
12
12
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
13
13
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
@@ -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.24.
|
|
15
|
+
packageVersion: "45.24.6",
|
|
16
16
|
componentName: 'linkUrl'
|
|
17
17
|
};
|
|
18
18
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -4,8 +4,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import { useCallback, useRef } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import Button from '@atlaskit/button/default/button';
|
|
7
|
-
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
8
7
|
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
8
|
+
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
9
9
|
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
10
10
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
11
11
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
|
|
2
|
+
|
|
2
3
|
import { useMemo } from 'react';
|
|
3
4
|
import { SmartLinkEvents } from '../../utils/analytics/SmartLinkEvents';
|
|
4
5
|
export function useSmartLinkEvents() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
|
-
import type { MetadataStatus } from '@atlaskit/linking-common/types';
|
|
3
2
|
import { APIError } from '@atlaskit/linking-common/api-error';
|
|
3
|
+
import type { MetadataStatus } from '@atlaskit/linking-common/types';
|
|
4
4
|
declare const useResponse: () => {
|
|
5
5
|
handleResolvedLinkError: (url: string, error: APIError, response?: JsonLd.Response, isMetadataRequest?: boolean) => void;
|
|
6
6
|
handleResolvedLinkResponse: (resourceUrl: string, response: JsonLd.Response | undefined, isReloading?: boolean, isMetadataRequest?: boolean, metadataStatus?: MetadataStatus) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
2
|
import type { CardAuthFlowOpts, CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
|
-
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
4
3
|
import type { CardState } from '@atlaskit/linking-common/store';
|
|
4
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
5
5
|
import type { InvokeClientOpts, InvokeServerOpts } from '../../model/invoke-opts';
|
|
6
6
|
import type { CardInnerAppearance } from '../../view/Card/types';
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
2
1
|
import type { CardState } from '@atlaskit/linking-common/store';
|
|
2
|
+
import type { CardAppearance } from '@atlaskit/linking-common/types';
|
|
3
3
|
import type { EmbedRovoActionsFooterExperimentMeta } from '../../../state/hooks/use-embed-rovo-actions-footer-experiment';
|
|
4
4
|
import type { BlockCardSocialProofExperimentMeta, InlineSocialProofExperimentMeta } from '../../../state/hooks/use-social-proof-experiment';
|
|
5
5
|
import type { InternalCardActionOptions } from '../../Card/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
|
-
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
4
3
|
import type { CardState } from '@atlaskit/linking-common/store';
|
|
4
|
+
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
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,3 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Link flag module — imperative singleton pattern.
|
|
3
|
+
*
|
|
4
|
+
* ## Why not a React context provider?
|
|
5
|
+
*
|
|
6
|
+
* The natural approach would be to render a `<FlagProvider>` inside the Card
|
|
7
|
+
* component tree, managing flag state via React context. This was the original
|
|
8
|
+
* implementation. However, it caused a critical bug:
|
|
9
|
+
*
|
|
10
|
+
* When a parent component of smart card changed, either swap or unmount,
|
|
11
|
+
* it unmounts the entire card subtree including `FlagsProvider`.
|
|
12
|
+
* Any flag that was visible at that moment is instantly destroyed and lost.
|
|
13
|
+
*
|
|
14
|
+
* ## Why an injected React root?
|
|
15
|
+
*
|
|
16
|
+
* This module manages a persistent `FlagGroup` at `document.body` via its own
|
|
17
|
+
* `createRoot` — completely independent of any card component tree. The root is created
|
|
18
|
+
* lazily on the first `showFlag` call and kept alive indefinitely, re-rendering with
|
|
19
|
+
* the current flags array on every change.
|
|
20
|
+
*
|
|
21
|
+
* Benefits:
|
|
22
|
+
* - Flags survive any card unmount/remount cycle
|
|
23
|
+
* - No provider needed anywhere in the component tree
|
|
24
|
+
* - Works identically for all card paths (Card, CardSSR)
|
|
25
|
+
* - Same pattern as `EmbedModal/utils.tsx` but for a persistent group
|
|
26
|
+
*
|
|
27
|
+
* Usage: import `showFlag` and call it directly — no provider needed.
|
|
28
|
+
*/
|
|
1
29
|
import type { FlagProps } from '@atlaskit/flag/types';
|
|
2
30
|
/**
|
|
3
31
|
* Show a flag notification. The FlagGroup root is created lazily on first call
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
1
5
|
import { type LozengeActionTriggerProps } from './type';
|
|
2
6
|
declare const LozengeActionTrigger: ({ appearance, isOpen, maxWidth, testId, text, triggerRef, trailingMetric, ...props }: LozengeActionTriggerProps) => JSX.Element;
|
|
3
7
|
export default LozengeActionTrigger;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { type MouseEventHandler } from 'react';
|
|
2
2
|
import type { CardProviderRenderers } from '@atlaskit/link-provider/types';
|
|
3
|
-
import { type ActionName } from '../../../constants';
|
|
4
3
|
import type { CardState } from '@atlaskit/linking-common/store';
|
|
4
|
+
import { type ActionName } from '../../../constants';
|
|
5
5
|
import type { InternalCardActionOptions } from '../../Card/types.ts';
|
|
6
6
|
import { type HoverPreviewOptions } from '../types';
|
|
7
7
|
export declare const hoverCardClassName = "smart-links-hover-preview";
|
|
@@ -3,7 +3,7 @@ import { InlineCardErroredView } from './ErroredView';
|
|
|
3
3
|
import { InlineCardForbiddenView } from './ForbiddenView';
|
|
4
4
|
import { InlineCardResolvedView } from './ResolvedView';
|
|
5
5
|
import { InlineCardResolvingView } from './ResolvingView';
|
|
6
|
-
import { InlineCardUnauthorizedView } from './UnauthorisedView';
|
|
7
6
|
import { type InlineCardProps } from './types';
|
|
7
|
+
import { InlineCardUnauthorizedView } from './UnauthorisedView';
|
|
8
8
|
export { InlineCardResolvedView, InlineCardResolvingView, InlineCardErroredView, InlineCardForbiddenView, InlineCardUnauthorizedView, };
|
|
9
9
|
export declare const InlineCard: ({ id, url, cardState, handleAuthorize, handleFrameClick, handleFrameAuxClick, handleFrameContextMenu, isSelected, isHovered, renderers, onResolve, onError, testId, inlinePreloaderStyle, showHoverPreview, hoverPreviewOptions, actionOptions, removeTextHighlightingFromTitle, resolvingPlaceholder, truncateInline, hideIconLoadingSkeleton, }: InlineCardProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "45.24.
|
|
3
|
+
"version": "45.24.7",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@atlaskit/link-test-helpers": "^11.2.0",
|
|
70
70
|
"@atlaskit/linking-common": "^12.3.0",
|
|
71
71
|
"@atlaskit/linking-types": "^15.3.0",
|
|
72
|
-
"@atlaskit/logo": "^23.
|
|
72
|
+
"@atlaskit/logo": "^23.1.0",
|
|
73
73
|
"@atlaskit/lozenge": "^15.4.0",
|
|
74
74
|
"@atlaskit/menu": "^11.0.0",
|
|
75
75
|
"@atlaskit/modal-dialog": "^16.6.0",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@atlaskit/popup": "^6.3.0",
|
|
83
83
|
"@atlaskit/primitives": "^22.5.0",
|
|
84
84
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
85
|
-
"@atlaskit/react-ufo": "^7.
|
|
86
|
-
"@atlaskit/rovo-triggers": "^11.
|
|
85
|
+
"@atlaskit/react-ufo": "^7.13.0",
|
|
86
|
+
"@atlaskit/rovo-triggers": "^11.2.0",
|
|
87
87
|
"@atlaskit/section-message": "^10.2.0",
|
|
88
88
|
"@atlaskit/select": "^22.11.0",
|
|
89
89
|
"@atlaskit/spinner": "^20.4.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@atlaskit/textfield": "^10.2.0",
|
|
94
94
|
"@atlaskit/theme": "^28.2.0",
|
|
95
95
|
"@atlaskit/tile": "^4.1.0",
|
|
96
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
96
|
+
"@atlaskit/tmp-editor-statsig": "^201.0.0",
|
|
97
97
|
"@atlaskit/tokens": "^18.2.0",
|
|
98
98
|
"@atlaskit/tooltip": "^24.3.0",
|
|
99
99
|
"@atlaskit/ufo": "^1.2.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@af/integration-testing": "workspace:^",
|
|
123
123
|
"@af/visual-regression": "workspace:^",
|
|
124
|
-
"@atlaskit/analytics-listeners": "^11.
|
|
124
|
+
"@atlaskit/analytics-listeners": "^11.4.0",
|
|
125
125
|
"@atlaskit/code": "^19.2.0",
|
|
126
126
|
"@atlaskit/css-reset": "^8.4.0",
|
|
127
127
|
"@atlaskit/datetime-picker": "^18.7.0",
|