@atlaskit/smart-card 45.21.9 → 45.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/entry-points/embedded-confluence-page.js +18 -0
- package/dist/cjs/state/actions/index.js +5 -5
- package/dist/cjs/state/config/index.js +2 -2
- package/dist/cjs/state/hooks/use-ai-summary-config/index.js +2 -2
- package/dist/cjs/state/hooks/use-control-data-export-config/index.js +2 -2
- package/dist/cjs/state/hooks/use-incoming-outgoing-links/index.js +3 -3
- package/dist/cjs/state/hooks/use-invoke/index.js +2 -2
- package/dist/cjs/state/hooks/use-resolve/index.js +2 -2
- package/dist/cjs/state/hooks/use-resolve-hyperlink/useResolveHyperlinkValidator.js +2 -2
- package/dist/cjs/state/hooks/use-response/index.js +14 -12
- package/dist/cjs/state/hooks/use-rovo-config/index.js +2 -2
- package/dist/cjs/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +2 -2
- package/dist/cjs/state/hooks/usePrefetch.js +4 -4
- package/dist/cjs/state/hooks/useSmartLink.js +2 -2
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +2 -2
- package/dist/cjs/state/renderers/index.js +2 -2
- package/dist/cjs/state/store/index.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/analytics/useSmartLinkAnalyticsContext.js +4 -4
- package/dist/cjs/utils/analytics/useSmartLinkAnalyticsUtils.js +4 -4
- package/dist/cjs/utils/fake-factory.js +2 -2
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +2 -2
- package/dist/cjs/view/CardWithUrl/experiment-meta-event-attributes/index.js +2 -2
- package/dist/cjs/view/EmbedCard/components/IFrame.js +33 -13
- package/dist/cjs/view/EmbedCard/components/embedded-confluence-page-context.js +22 -0
- package/dist/cjs/view/EmbedCard/components/loadEmbeddedConfluencePage.js +44 -0
- package/dist/cjs/view/FlexibleCard/index.js +2 -2
- package/dist/cjs/view/HoverCard/components/HoverCardContent.js +2 -2
- package/dist/cjs/view/InlineCard/Icon.js +2 -2
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/index.js +2 -2
- package/dist/es2019/entry-points/embedded-confluence-page.js +1 -0
- package/dist/es2019/state/actions/index.js +2 -2
- package/dist/es2019/state/config/index.js +1 -1
- package/dist/es2019/state/hooks/use-ai-summary-config/index.js +1 -1
- package/dist/es2019/state/hooks/use-control-data-export-config/index.js +1 -1
- package/dist/es2019/state/hooks/use-incoming-outgoing-links/index.js +1 -1
- package/dist/es2019/state/hooks/use-invoke/index.js +1 -1
- package/dist/es2019/state/hooks/use-resolve/index.js +1 -1
- package/dist/es2019/state/hooks/use-resolve-hyperlink/useResolveHyperlinkValidator.js +1 -1
- package/dist/es2019/state/hooks/use-response/index.js +4 -2
- package/dist/es2019/state/hooks/use-rovo-config/index.js +1 -1
- package/dist/es2019/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/es2019/state/hooks/usePrefetch.js +2 -2
- package/dist/es2019/state/hooks/useSmartLink.js +1 -1
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +1 -1
- package/dist/es2019/state/renderers/index.js +1 -1
- package/dist/es2019/state/store/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/analytics/useSmartLinkAnalyticsContext.js +2 -2
- package/dist/es2019/utils/analytics/useSmartLinkAnalyticsUtils.js +2 -2
- package/dist/es2019/utils/fake-factory.js +1 -1
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/es2019/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/es2019/view/EmbedCard/components/IFrame.js +27 -13
- package/dist/es2019/view/EmbedCard/components/embedded-confluence-page-context.js +15 -0
- package/dist/es2019/view/EmbedCard/components/loadEmbeddedConfluencePage.js +14 -0
- package/dist/es2019/view/FlexibleCard/index.js +1 -1
- package/dist/es2019/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/es2019/view/InlineCard/Icon.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/index.js +1 -1
- package/dist/esm/entry-points/embedded-confluence-page.js +1 -0
- package/dist/esm/state/actions/index.js +2 -2
- package/dist/esm/state/config/index.js +1 -1
- package/dist/esm/state/hooks/use-ai-summary-config/index.js +1 -1
- package/dist/esm/state/hooks/use-control-data-export-config/index.js +1 -1
- package/dist/esm/state/hooks/use-incoming-outgoing-links/index.js +1 -1
- package/dist/esm/state/hooks/use-invoke/index.js +1 -1
- package/dist/esm/state/hooks/use-resolve/index.js +1 -1
- package/dist/esm/state/hooks/use-resolve-hyperlink/useResolveHyperlinkValidator.js +1 -1
- package/dist/esm/state/hooks/use-response/index.js +4 -2
- package/dist/esm/state/hooks/use-rovo-config/index.js +1 -1
- package/dist/esm/state/hooks/use-smart-link-cross-product-url-wrapper/index.js +1 -1
- package/dist/esm/state/hooks/usePrefetch.js +2 -2
- package/dist/esm/state/hooks/useSmartLink.js +1 -1
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +1 -1
- package/dist/esm/state/renderers/index.js +1 -1
- package/dist/esm/state/store/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/analytics/useSmartLinkAnalyticsContext.js +2 -2
- package/dist/esm/utils/analytics/useSmartLinkAnalyticsUtils.js +2 -2
- package/dist/esm/utils/fake-factory.js +1 -1
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -1
- package/dist/esm/view/CardWithUrl/experiment-meta-event-attributes/index.js +1 -1
- package/dist/esm/view/EmbedCard/components/IFrame.js +31 -13
- package/dist/esm/view/EmbedCard/components/embedded-confluence-page-context.js +17 -0
- package/dist/esm/view/EmbedCard/components/loadEmbeddedConfluencePage.js +33 -0
- package/dist/esm/view/FlexibleCard/index.js +1 -1
- package/dist/esm/view/HoverCard/components/HoverCardContent.js +1 -1
- package/dist/esm/view/InlineCard/Icon.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/index.js +1 -1
- package/dist/types/entry-points/embedded-confluence-page.d.ts +1 -0
- package/dist/types/extractors/common/title-prefix/extractTitlePrefix.d.ts +2 -2
- package/dist/types/extractors/flexible/actions/extract-rovo-chat-action.d.ts +1 -1
- package/dist/types/extractors/flexible/actions/index.d.ts +1 -1
- package/dist/types/extractors/flexible/extract-placeholder-data.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-icon-renderer.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-link-icon.d.ts +1 -1
- package/dist/types/extractors/flexible/icon/extract-smart-link-icon.d.ts +1 -1
- package/dist/types/extractors/inline/index.d.ts +1 -1
- package/dist/types/model/invoke-opts.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +1 -1
- package/dist/types/state/actions/types.d.ts +1 -1
- package/dist/types/state/config/index.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +1 -1
- package/dist/types/state/getByDefinitionId.d.ts +1 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/getXProductHeaderValue.d.ts +1 -1
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +1 -1
- package/dist/types/state/hooks/use-ai-summary-config/types.d.ts +1 -1
- package/dist/types/state/hooks/use-control-data-export-config/types.d.ts +1 -1
- package/dist/types/state/hooks/use-embed-rovo-actions-footer-experiment/getEmbedRovoActionsFooterExperimentMeta.d.ts +1 -1
- package/dist/types/state/hooks/use-embed-rovo-actions-footer-experiment/index.d.ts +1 -1
- package/dist/types/state/hooks/use-embed-rovo-actions-footer-experiment/isEmbedRovoActionsFooterExperimentEnabled.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve/index.d.ts +1 -1
- package/dist/types/state/hooks/use-resolve-hyperlink/index.d.ts +1 -1
- package/dist/types/state/hooks/use-response/index.d.ts +2 -1
- package/dist/types/state/hooks/use-rovo-chat/constants.d.ts +1 -1
- package/dist/types/state/hooks/use-rovo-chat/index.d.ts +1 -1
- package/dist/types/state/hooks/use-rovo-config/index.d.ts +1 -1
- package/dist/types/state/hooks/use-smart-link-seen-event/index.d.ts +1 -1
- package/dist/types/state/hooks/usePrefetch.d.ts +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -2
- package/dist/types/state/isFinalState.d.ts +1 -1
- package/dist/types/state/renderers/index.d.ts +1 -1
- package/dist/types/state/store/index.d.ts +1 -1
- package/dist/types/utils/create.d.ts +1 -1
- package/dist/types/utils/get-measure.d.ts +1 -1
- package/dist/types/utils/mark.d.ts +1 -1
- package/dist/types/view/BlockCard/types.d.ts +2 -2
- package/dist/types/view/Card/types.d.ts +1 -1
- package/dist/types/view/CardWithUrl/experiment-meta-event-attributes/index.d.ts +2 -1
- package/dist/types/view/EmbedCard/components/IFrame.d.ts +5 -1
- package/dist/types/view/EmbedCard/components/embedded-confluence-page-context.d.ts +29 -0
- package/dist/types/view/EmbedCard/components/loadEmbeddedConfluencePage.d.ts +8 -0
- package/dist/types/view/EmbedCard/types.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/filterActionItems.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +3 -2
- package/dist/types/view/HoverCard/components/views/resolved/types.d.ts +1 -1
- package/dist/types/view/HoverCard/types.d.ts +2 -2
- package/dist/types/view/InlineCard/types.d.ts +2 -2
- package/dist/types/view/common/rovo-chat-utils/index.d.ts +1 -1
- package/dist/types/view/types.d.ts +1 -1
- package/embedded-confluence-page/package.json +10 -0
- package/package.json +7 -7
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useEmbeddedConfluencePage = exports.EmbeddedConfluencePageProvider = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
/**
|
|
9
|
+
* Props forwarded to `@atlaskit/embedded-confluence` `Page` from the embed iframe.
|
|
10
|
+
* Kept local so this module never imports the Confluence package.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
var EmbeddedConfluencePageContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Hosts that want Confluence page embeds can inject `Page` here so Trello and
|
|
17
|
+
* other products never compile `@atlaskit/embedded-confluence` as a hard import.
|
|
18
|
+
*/
|
|
19
|
+
var EmbeddedConfluencePageProvider = exports.EmbeddedConfluencePageProvider = EmbeddedConfluencePageContext.Provider;
|
|
20
|
+
var useEmbeddedConfluencePage = exports.useEmbeddedConfluencePage = function useEmbeddedConfluencePage() {
|
|
21
|
+
return (0, _react.useContext)(EmbeddedConfluencePageContext);
|
|
22
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.loadEmbeddedConfluencePage = loadEmbeddedConfluencePage;
|
|
8
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
/**
|
|
13
|
+
* Async factory for the Confluence embed `Page` component.
|
|
14
|
+
*
|
|
15
|
+
* Kept in its own module so `@atlaskit/embedded-confluence` is a dynamic
|
|
16
|
+
* import only — hosts that never render a Confluence embed URL do not
|
|
17
|
+
* download this chunk.
|
|
18
|
+
*/
|
|
19
|
+
function loadEmbeddedConfluencePage() {
|
|
20
|
+
return _loadEmbeddedConfluencePage.apply(this, arguments);
|
|
21
|
+
}
|
|
22
|
+
function _loadEmbeddedConfluencePage() {
|
|
23
|
+
_loadEmbeddedConfluencePage = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
24
|
+
var _yield$import, Page;
|
|
25
|
+
return _regenerator.default.wrap(function (_context) {
|
|
26
|
+
while (1) switch (_context.prev = _context.next) {
|
|
27
|
+
case 0:
|
|
28
|
+
_context.next = 1;
|
|
29
|
+
return Promise.resolve().then(function () {
|
|
30
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_smart-card-embedded-confluence" */
|
|
31
|
+
'@atlaskit/embedded-confluence'));
|
|
32
|
+
});
|
|
33
|
+
case 1:
|
|
34
|
+
_yield$import = _context.sent;
|
|
35
|
+
Page = _yield$import.Page;
|
|
36
|
+
return _context.abrupt("return", Page);
|
|
37
|
+
case 2:
|
|
38
|
+
case "end":
|
|
39
|
+
return _context.stop();
|
|
40
|
+
}
|
|
41
|
+
}, _callee);
|
|
42
|
+
}));
|
|
43
|
+
return _loadEmbeddedConfluencePage.apply(this, arguments);
|
|
44
|
+
}
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var
|
|
12
|
+
var _useSmartLinkContext2 = require("@atlaskit/link-provider/use-smart-link-context");
|
|
13
13
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
14
14
|
var _loadHold = _interopRequireDefault(require("@atlaskit/react-ufo/load-hold"));
|
|
15
15
|
var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
|
|
@@ -58,7 +58,7 @@ var FlexibleCard = function FlexibleCard(_ref) {
|
|
|
58
58
|
ssrTitle = _ref.title;
|
|
59
59
|
var aiSummaryConfig = (0, _useAiSummaryConfig.useAISummaryConfig)();
|
|
60
60
|
var resolve = (0, _useResolve.default)();
|
|
61
|
-
var _useSmartLinkContext = (0,
|
|
61
|
+
var _useSmartLinkContext = (0, _useSmartLinkContext2.useSmartLinkContext)(),
|
|
62
62
|
isPreviewPanelAvailable = _useSmartLinkContext.isPreviewPanelAvailable,
|
|
63
63
|
isPreviewRestricted = _useSmartLinkContext.isPreviewRestricted,
|
|
64
64
|
openPreviewPanel = _useSmartLinkContext.openPreviewPanel,
|
|
@@ -9,7 +9,7 @@ exports.hoverCardClassName = exports.default = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _AnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-next/AnalyticsContext"));
|
|
11
11
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
12
|
-
var
|
|
12
|
+
var _useSmartLinkContext2 = require("@atlaskit/link-provider/use-smart-link-context");
|
|
13
13
|
var _componentWithCondition = require("@atlaskit/platform-feature-flags-react/component-with-condition");
|
|
14
14
|
var _functionUnionWithCondition = require("@atlaskit/platform-feature-flags-react/function-union-with-condition");
|
|
15
15
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
@@ -91,7 +91,7 @@ var HoverCardContent = function HoverCardContent(_ref4) {
|
|
|
91
91
|
var definitionId = (0, _react.useMemo)(function () {
|
|
92
92
|
return (0, _getDefinitionId.getDefinitionId)(cardState.details);
|
|
93
93
|
}, [cardState.details]);
|
|
94
|
-
var _useSmartLinkContext = (0,
|
|
94
|
+
var _useSmartLinkContext = (0, _useSmartLinkContext2.useSmartLinkContext)(),
|
|
95
95
|
isAdminHubAIEnabled = _useSmartLinkContext.isAdminHubAIEnabled,
|
|
96
96
|
product = _useSmartLinkContext.product;
|
|
97
97
|
var isAISummaryEnabled = (0, _getIsAiSummaryEnabled.getIsAISummaryEnabled)(isAdminHubAIEnabled, cardState.details);
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
-
var
|
|
15
|
+
var _spanSkeleton = require("@atlaskit/linking-common/span-skeleton");
|
|
16
16
|
var _excluded = ["as", "style"];
|
|
17
17
|
/* eslint-disable @atlaskit/ui-styling-standard/no-styled */
|
|
18
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -47,7 +47,7 @@ var Shimmer = exports.Shimmer = function Shimmer(_ref2) {
|
|
|
47
47
|
transform: 'translate(-50%, -50%)',
|
|
48
48
|
marginRight: "var(--ds-space-050, 4px)"
|
|
49
49
|
};
|
|
50
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
50
|
+
return /*#__PURE__*/_react.default.createElement(_spanSkeleton.SpanSkeleton, {
|
|
51
51
|
width: 16,
|
|
52
52
|
height: 16,
|
|
53
53
|
borderRadius: "var(--ds-radius-xsmall, 2px)",
|
|
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
19
19
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
20
20
|
var PACKAGE_DATA = {
|
|
21
21
|
packageName: "@atlaskit/smart-card",
|
|
22
|
-
packageVersion: "45.
|
|
22
|
+
packageVersion: "45.22.1",
|
|
23
23
|
componentName: 'linkUrl'
|
|
24
24
|
};
|
|
25
25
|
var LinkUrl = function LinkUrl(_ref) {
|
|
@@ -12,7 +12,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _reactDom = require("react-dom");
|
|
14
14
|
var _extractLink = require("@atlaskit/link-extractors/extract-link");
|
|
15
|
-
var
|
|
15
|
+
var _useSmartLinkContext2 = require("@atlaskit/link-provider/use-smart-link-context");
|
|
16
16
|
var _useAnalyticsEvents2 = require("../../common/analytics/generated/use-analytics-events");
|
|
17
17
|
var _useIncomingOutgoingLinks = _interopRequireDefault(require("../../state/hooks/use-incoming-outgoing-links"));
|
|
18
18
|
var _useResponse2 = _interopRequireDefault(require("../../state/hooks/use-response"));
|
|
@@ -37,7 +37,7 @@ var RelatedLinksModal = function RelatedLinksModal(_ref) {
|
|
|
37
37
|
var RELATED_LINKS_LENGTH = 5;
|
|
38
38
|
var _useIncomingOutgoingA = (0, _useIncomingOutgoingLinks.default)(baseUriWithNoTrailingSlash),
|
|
39
39
|
getIncomingOutgoingAris = _useIncomingOutgoingA.getIncomingOutgoingAris;
|
|
40
|
-
var _useSmartLinkContext = (0,
|
|
40
|
+
var _useSmartLinkContext = (0, _useSmartLinkContext2.useSmartLinkContext)(),
|
|
41
41
|
connections = _useSmartLinkContext.connections;
|
|
42
42
|
var _useResponse = (0, _useResponse2.default)(),
|
|
43
43
|
handleResolvedLinkResponse = _useResponse.handleResolvedLinkResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmbeddedConfluencePageProvider, useEmbeddedConfluencePage } from '../view/EmbedCard/components/embedded-confluence-page-context';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useCallback, useMemo, useRef } from 'react';
|
|
2
2
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors/extract-smart-link-provider';
|
|
3
3
|
import { extractSmartLinkTitle } from '@atlaskit/link-extractors/extract-smart-link-title';
|
|
4
|
-
import { useSmartLinkContext } from '@atlaskit/link-provider';
|
|
5
|
-
import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common';
|
|
4
|
+
import { useSmartLinkContext } from '@atlaskit/link-provider/use-smart-link-context';
|
|
5
|
+
import { ACTION_RESOLVING, ACTION_UPDATE_METADATA_STATUS, cardAction } from '@atlaskit/linking-common/actions';
|
|
6
6
|
import { auth } from '@atlaskit/outbound-auth-flow-client/auth';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { ROVO_POST_MESSAGE_EVENT_TYPE } from '@atlaskit/rovo-triggers/post-message-to-pubsub';
|
|
@@ -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,9 +1,18 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Page } from '@atlaskit/embedded-confluence/page';
|
|
2
|
+
import React, { lazy, Suspense } from 'react';
|
|
4
3
|
import { useConfluencePageData } from '../../../hooks/useConfluencePageData';
|
|
4
|
+
import { useEmbeddedConfluencePage } from './embedded-confluence-page-context';
|
|
5
|
+
import { loadEmbeddedConfluencePage } from './loadEmbeddedConfluencePage';
|
|
6
|
+
const LazyEmbeddedConfluencePage = /*#__PURE__*/lazy(() => loadEmbeddedConfluencePage().then(Page => ({
|
|
7
|
+
default: Page
|
|
8
|
+
})));
|
|
9
|
+
|
|
5
10
|
/**
|
|
6
|
-
* Iframe element isolated for DI purposes
|
|
11
|
+
* Iframe element isolated for DI purposes.
|
|
12
|
+
*
|
|
13
|
+
* Confluence `Page` is a dynamic import (or an injected host component) so
|
|
14
|
+
* Trello and other non-Confluence embeds do not statically pull
|
|
15
|
+
* `@atlaskit/embedded-confluence`.
|
|
7
16
|
*/
|
|
8
17
|
export const IFrame = ({
|
|
9
18
|
childRef,
|
|
@@ -12,9 +21,22 @@ export const IFrame = ({
|
|
|
12
21
|
...props
|
|
13
22
|
}) => {
|
|
14
23
|
const confluencePageData = useConfluencePageData(props.src || '', extensionKey || '');
|
|
24
|
+
const InjectedPage = useEmbeddedConfluencePage();
|
|
25
|
+
const Page = InjectedPage !== null && InjectedPage !== void 0 ? InjectedPage : LazyEmbeddedConfluencePage;
|
|
26
|
+
const fallbackIframe =
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
29
|
+
React.createElement("iframe", _extends({
|
|
30
|
+
className: className
|
|
31
|
+
}, props, {
|
|
32
|
+
ref: childRef,
|
|
33
|
+
title: props.title
|
|
34
|
+
}));
|
|
15
35
|
|
|
16
36
|
// Conditional rendering: Page component for lp-cc-embed URLs, iframe for everything else
|
|
17
|
-
return confluencePageData ? /*#__PURE__*/React.createElement(
|
|
37
|
+
return confluencePageData ? /*#__PURE__*/React.createElement(Suspense, {
|
|
38
|
+
fallback: fallbackIframe
|
|
39
|
+
}, /*#__PURE__*/React.createElement(Page, {
|
|
18
40
|
hostname: confluencePageData.hostname,
|
|
19
41
|
spaceKey: confluencePageData.spaceKey,
|
|
20
42
|
contentId: confluencePageData.contentId,
|
|
@@ -30,13 +52,5 @@ export const IFrame = ({
|
|
|
30
52
|
allowedFeatures: confluencePageData.allowedFeatures,
|
|
31
53
|
themeState: confluencePageData.themeStateObject,
|
|
32
54
|
userInfo: confluencePageData.userInfo
|
|
33
|
-
}) :
|
|
34
|
-
/*#__PURE__*/
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
36
|
-
React.createElement("iframe", _extends({
|
|
37
|
-
className: className
|
|
38
|
-
}, props, {
|
|
39
|
-
ref: childRef,
|
|
40
|
-
title: props.title
|
|
41
|
-
}));
|
|
55
|
+
})) : fallbackIframe;
|
|
42
56
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Props forwarded to `@atlaskit/embedded-confluence` `Page` from the embed iframe.
|
|
5
|
+
* Kept local so this module never imports the Confluence package.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const EmbeddedConfluencePageContext = /*#__PURE__*/createContext(null);
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Hosts that want Confluence page embeds can inject `Page` here so Trello and
|
|
12
|
+
* other products never compile `@atlaskit/embedded-confluence` as a hard import.
|
|
13
|
+
*/
|
|
14
|
+
export const EmbeddedConfluencePageProvider = EmbeddedConfluencePageContext.Provider;
|
|
15
|
+
export const useEmbeddedConfluencePage = () => useContext(EmbeddedConfluencePageContext);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Async factory for the Confluence embed `Page` component.
|
|
3
|
+
*
|
|
4
|
+
* Kept in its own module so `@atlaskit/embedded-confluence` is a dynamic
|
|
5
|
+
* import only — hosts that never render a Confluence embed URL do not
|
|
6
|
+
* download this chunk.
|
|
7
|
+
*/
|
|
8
|
+
export async function loadEmbeddedConfluencePage() {
|
|
9
|
+
const {
|
|
10
|
+
Page
|
|
11
|
+
} = await import( /* webpackChunkName: "@atlaskit-internal_smart-card-embedded-confluence" */
|
|
12
|
+
'@atlaskit/embedded-confluence');
|
|
13
|
+
return Page;
|
|
14
|
+
}
|
|
@@ -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';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmbeddedConfluencePageProvider, useEmbeddedConfluencePage } from '../view/EmbedCard/components/embedded-confluence-page-context';
|
|
@@ -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,
|