@atlaskit/smart-card 45.22.0 → 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 +6 -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/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/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/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/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/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/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/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/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
|
-
import { request } from '@atlaskit/linking-common';
|
|
2
|
+
import { request } from '@atlaskit/linking-common/api';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { getCurrentSiteCloudId } from '../../services/current-site-cloud-id/getCurrentSiteCloudId';
|
|
5
5
|
import { queryIncomingOutgoingLinks as queryIncomingOutgoingAris } from './query';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { useSmartLinkClientExtension } from '@atlaskit/link-client-extension/use-smart-link-client-extension';
|
|
3
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
4
4
|
const useInvoke = () => {
|
|
5
5
|
const {
|
|
6
6
|
connections
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { isEntityPresent } from '@atlaskit/link-extractors/is-entity-present';
|
|
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 { SmartLinkStatus } from '../../../constants';
|
|
6
6
|
import { addMetadataToExperience } from '../../analytics/addMetadataToExperience';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
2
|
+
import { SmartCardContext } from '@atlaskit/link-provider/context';
|
|
3
3
|
import { shouldResolveUrl } from './shouldResolveUrl';
|
|
4
4
|
const useResolveHyperlinkValidator = (href = '') => {
|
|
5
5
|
const hasSmartCardProvider = !!useContext(SmartCardContext);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
2
|
import { unstable_batchedUpdates } from 'react-dom';
|
|
3
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
4
|
-
import { ACTION_ERROR, ACTION_ERROR_FALLBACK, ACTION_RELOADING, ACTION_RESOLVED, ACTION_UPDATE_METADATA_STATUS,
|
|
3
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
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
|
+
import { APIError } from '@atlaskit/linking-common';
|
|
5
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
8
|
import { SmartLinkStatus } from '../../../constants';
|
|
7
9
|
import { getUnauthorizedJsonLd } from '../../../utils/get-unauthorized-json-ld';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import { useCrossProductUrlWrapper } from '@atlaskit/analytics-cross-product/useCrossProductUrlWrapper';
|
|
3
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
4
4
|
import { XPC_CONSTANTS } from './constants';
|
|
5
5
|
import { getIsFirstPartyLink } from './getIsFirstPartyLink';
|
|
6
6
|
export const useSmartLinkCrossProductUrlWrapper = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
3
|
-
import { ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common';
|
|
2
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
|
+
import { ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common/actions';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
export function usePrefetch(url, appearance) {
|
|
6
6
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
2
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { useSmartCardActions as useSmartLinkActions } from '../actions';
|
|
5
5
|
import { useSmartLinkConfig } from '../config';
|
|
@@ -2,7 +2,7 @@ import { useMemo } from 'react';
|
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
4
4
|
import { v4 as uuid } from 'uuid';
|
|
5
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
5
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
8
|
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 const useSmartLinkRenderers = () => {
|
|
4
4
|
const context = useSmartLinkContext();
|
|
5
5
|
let 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
|
const PENDING_STATE = {
|
|
4
4
|
status: 'pending'
|
|
5
5
|
};
|
|
@@ -3,7 +3,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
3
3
|
export const 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 let 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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import CardClient from '@atlaskit/link-provider/client';
|
|
2
2
|
export const fakeFactory = (implementation, implementationPost, implementationPrefetch, implementationAri) => class CustomClient extends CardClient {
|
|
3
3
|
async fetchData(url) {
|
|
4
4
|
return await implementation(url);
|
|
@@ -8,7 +8,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
8
8
|
import { di } from 'react-magnetic-di';
|
|
9
9
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
10
10
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
11
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
11
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
12
12
|
import { componentWithFG } from '@atlaskit/platform-feature-flags-react/component-with-fg';
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { useAnalyticsEvents } from '../../../common/analytics/generated/use-analytics-events';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
2
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
3
3
|
import { getExtensionKey } from '../../../state/getExtensionKey';
|
|
4
4
|
import { getEmbedRovoActionsFooterExperimentMeta } from '../../../state/hooks/use-embed-rovo-actions-footer-experiment/getEmbedRovoActionsFooterExperimentMeta';
|
|
5
5
|
import useRovoConfig from '../../../state/hooks/use-rovo-config';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo } 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 UFOHoldLoad from '@atlaskit/react-ufo/load-hold';
|
|
6
6
|
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';
|
|
@@ -5,7 +5,7 @@ import { forwardRef } from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
/* eslint-disable @atlaskit/ui-styling-standard/no-styled */
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { SpanSkeleton } from '@atlaskit/linking-common';
|
|
8
|
+
import { SpanSkeleton } from '@atlaskit/linking-common/span-skeleton';
|
|
9
9
|
// TODO: Figure out a more scalable/responsive solution
|
|
10
10
|
// for vertical alignment.
|
|
11
11
|
// Current rationale: vertically positioned at the top of
|
|
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
9
9
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
10
10
|
const PACKAGE_DATA = {
|
|
11
11
|
packageName: "@atlaskit/smart-card",
|
|
12
|
-
packageVersion: "45.
|
|
12
|
+
packageVersion: "45.22.1",
|
|
13
13
|
componentName: 'linkUrl'
|
|
14
14
|
};
|
|
15
15
|
const LinkUrl = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { unstable_batchedUpdates } from 'react-dom';
|
|
3
3
|
import { extractLink } from '@atlaskit/link-extractors/extract-link';
|
|
4
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
4
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
5
5
|
import { useAnalyticsEvents } from '../../common/analytics/generated/use-analytics-events';
|
|
6
6
|
import useIncomingOutgoingAri from '../../state/hooks/use-incoming-outgoing-links';
|
|
7
7
|
import useResponse from '../../state/hooks/use-response';
|
|
@@ -3,8 +3,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
3
3
|
import { useCallback, useMemo, useRef } from 'react';
|
|
4
4
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
5
5
|
import { extractSmartLinkTitle } from '@atlaskit/link-extractors/extract-smart-link-title';
|
|
6
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
7
|
-
import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common';
|
|
6
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
7
|
+
import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common/actions';
|
|
8
8
|
import { auth } from '@atlaskit/outbound-auth-flow-client/auth';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { ROVO_POST_MESSAGE_EVENT_TYPE } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
1
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
2
2
|
export var useSmartLinkConfig = function useSmartLinkConfig() {
|
|
3
3
|
var context = useSmartLinkContext();
|
|
4
4
|
if (context) {
|
|
@@ -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 useAISummaryConfig = function useAISummaryConfig() {
|
|
4
4
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
5
5
|
connections = _useSmartLinkContext.connections,
|
|
@@ -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 useControlDataExportConfig = function useControlDataExportConfig() {
|
|
4
4
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
5
5
|
connections = _useSmartLinkContext.connections,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import { useCallback, useMemo } from 'react';
|
|
4
|
-
import { request } from '@atlaskit/linking-common';
|
|
4
|
+
import { request } from '@atlaskit/linking-common/api';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { getCurrentSiteCloudId } from '../../services/current-site-cloud-id/getCurrentSiteCloudId';
|
|
7
7
|
import { queryIncomingOutgoingLinks as queryIncomingOutgoingAris } from './query';
|
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import { useSmartLinkClientExtension } from '@atlaskit/link-client-extension/use-smart-link-client-extension';
|
|
5
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
5
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
6
6
|
var useInvoke = function useInvoke() {
|
|
7
7
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
8
8
|
connections = _useSmartLinkContext.connections;
|
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import { isEntityPresent } from '@atlaskit/link-extractors/is-entity-present';
|
|
5
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
5
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { SmartLinkStatus } from '../../../constants';
|
|
8
8
|
import { addMetadataToExperience } from '../../analytics/addMetadataToExperience';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
2
|
+
import { SmartCardContext } from '@atlaskit/link-provider/context';
|
|
3
3
|
import { shouldResolveUrl } from './shouldResolveUrl';
|
|
4
4
|
var useResolveHyperlinkValidator = function useResolveHyperlinkValidator() {
|
|
5
5
|
var href = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { useCallback, useMemo } from 'react';
|
|
2
2
|
import { unstable_batchedUpdates } from 'react-dom';
|
|
3
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
4
|
-
import { ACTION_ERROR, ACTION_ERROR_FALLBACK, ACTION_RELOADING, ACTION_RESOLVED, ACTION_UPDATE_METADATA_STATUS,
|
|
3
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
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
|
+
import { APIError } from '@atlaskit/linking-common';
|
|
5
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
8
|
import { SmartLinkStatus } from '../../../constants';
|
|
7
9
|
import { getUnauthorizedJsonLd } from '../../../utils/get-unauthorized-json-ld';
|
|
@@ -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
|
var useRovoConfig = function useRovoConfig() {
|
|
4
4
|
var _useSmartLinkContext = useSmartLinkContext(),
|
|
5
5
|
rovoOptions = _useSmartLinkContext.rovoOptions,
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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;
|