@atlaskit/smart-card 37.1.3 → 38.0.0
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/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/InlineCard/index.js +0 -5
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/InlineCard/index.js +0 -5
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/InlineCard/index.js +0 -5
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/view/FlexibleCard/types.d.ts +1 -6
- package/dist/types-ts4.5/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/types.d.ts +1 -6
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 38.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#152125](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152125)
|
|
8
|
+
[`686465c46534f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/686465c46534f) -
|
|
9
|
+
Remove featureFlags prop from SmartCardProvider as per ENGHEALTH-30338
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 37.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
11
11
|
var context = exports.context = {
|
|
12
12
|
componentName: 'smart-cards',
|
|
13
13
|
packageName: "@atlaskit/smart-card",
|
|
14
|
-
packageVersion: "
|
|
14
|
+
packageVersion: "38.0.0"
|
|
15
15
|
};
|
|
16
16
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
17
17
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -40,7 +40,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
40
40
|
var _react = _interopRequireWildcard(require("react"));
|
|
41
41
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
42
42
|
var _linkExtractors = require("@atlaskit/link-extractors");
|
|
43
|
-
var _linkProvider = require("@atlaskit/link-provider");
|
|
44
43
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
45
44
|
var _constants = require("../../constants");
|
|
46
45
|
var _extractAccessContext = require("../../extractors/common/context/extractAccessContext");
|
|
@@ -82,10 +81,6 @@ var InlineCard = exports.InlineCard = function InlineCard(_ref) {
|
|
|
82
81
|
var cardDetails = details && details.data || (0, _jsonld.getEmptyJsonLd)();
|
|
83
82
|
var extensionKey = (0, _helpers.getExtensionKey)(details);
|
|
84
83
|
var testIdWithStatus = testId ? "".concat(testId, "-").concat(status, "-view") : undefined;
|
|
85
|
-
var showHoverPreviewFlag = (0, _linkProvider.useFeatureFlag)('showHoverPreview');
|
|
86
|
-
if (showHoverPreview === undefined && showHoverPreviewFlag !== undefined) {
|
|
87
|
-
showHoverPreview = Boolean(showHoverPreviewFlag);
|
|
88
|
-
}
|
|
89
84
|
var resolvedProps = status === _constants.SmartLinkStatus.Resolved ? (0, _inline.extractInlineProps)(details, renderers, removeTextHighlightingFromTitle, false) : {};
|
|
90
85
|
(0, _react.useEffect)(function () {
|
|
91
86
|
switch (status) {
|
|
@@ -20,7 +20,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
|
|
|
20
20
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
21
21
|
var PACKAGE_DATA = {
|
|
22
22
|
packageName: "@atlaskit/smart-card",
|
|
23
|
-
packageVersion: "
|
|
23
|
+
packageVersion: "38.0.0",
|
|
24
24
|
componentName: 'linkUrl'
|
|
25
25
|
};
|
|
26
26
|
var Anchor = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
2
2
|
export const context = {
|
|
3
3
|
componentName: 'smart-cards',
|
|
4
4
|
packageName: "@atlaskit/smart-card",
|
|
5
|
-
packageVersion: "
|
|
5
|
+
packageVersion: "38.0.0"
|
|
6
6
|
};
|
|
7
7
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
8
8
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
4
|
import { extractProvider, extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
5
|
-
import { useFeatureFlag } from '@atlaskit/link-provider';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { SmartLinkStatus } from '../../constants';
|
|
8
7
|
import { extractRequestAccessContextImproved } from '../../extractors/common/context/extractAccessContext';
|
|
@@ -47,10 +46,6 @@ export const InlineCard = ({
|
|
|
47
46
|
const cardDetails = details && details.data || getEmptyJsonLd();
|
|
48
47
|
const extensionKey = getExtensionKey(details);
|
|
49
48
|
const testIdWithStatus = testId ? `${testId}-${status}-view` : undefined;
|
|
50
|
-
const showHoverPreviewFlag = useFeatureFlag('showHoverPreview');
|
|
51
|
-
if (showHoverPreview === undefined && showHoverPreviewFlag !== undefined) {
|
|
52
|
-
showHoverPreview = Boolean(showHoverPreviewFlag);
|
|
53
|
-
}
|
|
54
49
|
const resolvedProps = status === SmartLinkStatus.Resolved ? extractInlineProps(details, renderers, removeTextHighlightingFromTitle, false) : {};
|
|
55
50
|
useEffect(() => {
|
|
56
51
|
switch (status) {
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
const PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "
|
|
13
|
+
packageVersion: "38.0.0",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
const Anchor = withLinkClickedEvent('a');
|
|
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export var context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "
|
|
7
|
+
packageVersion: "38.0.0"
|
|
8
8
|
};
|
|
9
9
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
4
|
import { extractProvider, extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
5
|
-
import { useFeatureFlag } from '@atlaskit/link-provider';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
import { SmartLinkStatus } from '../../constants';
|
|
8
7
|
import { extractRequestAccessContextImproved } from '../../extractors/common/context/extractAccessContext';
|
|
@@ -43,10 +42,6 @@ export var InlineCard = function InlineCard(_ref) {
|
|
|
43
42
|
var cardDetails = details && details.data || getEmptyJsonLd();
|
|
44
43
|
var extensionKey = getExtensionKey(details);
|
|
45
44
|
var testIdWithStatus = testId ? "".concat(testId, "-").concat(status, "-view") : undefined;
|
|
46
|
-
var showHoverPreviewFlag = useFeatureFlag('showHoverPreview');
|
|
47
|
-
if (showHoverPreview === undefined && showHoverPreviewFlag !== undefined) {
|
|
48
|
-
showHoverPreview = Boolean(showHoverPreviewFlag);
|
|
49
|
-
}
|
|
50
45
|
var resolvedProps = status === SmartLinkStatus.Resolved ? extractInlineProps(details, renderers, removeTextHighlightingFromTitle, false) : {};
|
|
51
46
|
useEffect(function () {
|
|
52
47
|
switch (status) {
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "38.0.0",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -7,7 +7,7 @@ export declare function useSmartLink(id: string, url: string): {
|
|
|
7
7
|
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("@atlaskit/json-ld-types").JsonLd.Response<import("@atlaskit/json-ld-types").JsonLd.Data.BaseData>>;
|
|
8
8
|
loadMetadata: () => Promise<void> | undefined;
|
|
9
9
|
};
|
|
10
|
-
config:
|
|
10
|
+
config: import("@atlaskit/link-provider").CardAuthFlowOpts | undefined;
|
|
11
11
|
renderers: import("@atlaskit/link-provider").CardProviderRenderers | undefined;
|
|
12
12
|
error: Error | null;
|
|
13
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
-
import { type CardState
|
|
4
|
+
import { type CardState } from '@atlaskit/linking-common';
|
|
5
5
|
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
6
6
|
import { type FireEventFunction } from '../../common/analytics/types';
|
|
7
7
|
import { type SmartLinkSize, type SmartLinkStatus, type SmartLinkTheme } from '../../constants';
|
|
@@ -153,11 +153,6 @@ export type ExtractFlexibleUiDataContextParams = Pick<FlexibleCardProps, 'appear
|
|
|
153
153
|
status?: SmartLinkStatus;
|
|
154
154
|
response?: SmartLinkResponse;
|
|
155
155
|
resolve?: ResolveFunction;
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-30338 Internal documentation for deprecation (no external access)}
|
|
158
|
-
* Remove any usages of this type or value. It is dead code
|
|
159
|
-
*/
|
|
160
|
-
featureFlags?: Partial<LinkingPlatformFeatureFlags>;
|
|
161
156
|
aiSummaryConfig?: AISummaryConfig;
|
|
162
157
|
};
|
|
163
158
|
/**
|
|
@@ -7,7 +7,7 @@ export declare function useSmartLink(id: string, url: string): {
|
|
|
7
7
|
invoke: (opts: import("../../model/invoke-opts").InvokeClientOpts | import("../../model/invoke-opts").InvokeServerOpts, appearance: import("../../view/Card/types").CardInnerAppearance) => Promise<void | import("@atlaskit/json-ld-types").JsonLd.Response<import("@atlaskit/json-ld-types").JsonLd.Data.BaseData>>;
|
|
8
8
|
loadMetadata: () => Promise<void> | undefined;
|
|
9
9
|
};
|
|
10
|
-
config:
|
|
10
|
+
config: import("@atlaskit/link-provider").CardAuthFlowOpts | undefined;
|
|
11
11
|
renderers: import("@atlaskit/link-provider").CardProviderRenderers | undefined;
|
|
12
12
|
error: Error | null;
|
|
13
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type MessageDescriptor } from 'react-intl-next';
|
|
3
3
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
4
|
-
import { type CardState
|
|
4
|
+
import { type CardState } from '@atlaskit/linking-common';
|
|
5
5
|
import { SmartLinkResponse } from '@atlaskit/linking-types';
|
|
6
6
|
import { type FireEventFunction } from '../../common/analytics/types';
|
|
7
7
|
import { type SmartLinkSize, type SmartLinkStatus, type SmartLinkTheme } from '../../constants';
|
|
@@ -153,11 +153,6 @@ export type ExtractFlexibleUiDataContextParams = Pick<FlexibleCardProps, 'appear
|
|
|
153
153
|
status?: SmartLinkStatus;
|
|
154
154
|
response?: SmartLinkResponse;
|
|
155
155
|
resolve?: ResolveFunction;
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-30338 Internal documentation for deprecation (no external access)}
|
|
158
|
-
* Remove any usages of this type or value. It is dead code
|
|
159
|
-
*/
|
|
160
|
-
featureFlags?: Partial<LinkingPlatformFeatureFlags>;
|
|
161
156
|
aiSummaryConfig?: AISummaryConfig;
|
|
162
157
|
};
|
|
163
158
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "38.0.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
32
|
-
"@atlaskit/avatar": "^25.
|
|
32
|
+
"@atlaskit/avatar": "^25.1.0",
|
|
33
33
|
"@atlaskit/avatar-group": "^12.0.0",
|
|
34
34
|
"@atlaskit/badge": "^18.1.0",
|
|
35
35
|
"@atlaskit/button": "^23.0.0",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@atlaskit/json-ld-types": "^1.2.0",
|
|
49
49
|
"@atlaskit/legacy-custom-icons": "^0.22.0",
|
|
50
50
|
"@atlaskit/link": "^3.1.0",
|
|
51
|
-
"@atlaskit/link-analytics": "^
|
|
52
|
-
"@atlaskit/link-client-extension": "^
|
|
51
|
+
"@atlaskit/link-analytics": "^10.0.0",
|
|
52
|
+
"@atlaskit/link-client-extension": "^5.0.0",
|
|
53
53
|
"@atlaskit/link-extractors": "^2.3.0",
|
|
54
|
-
"@atlaskit/linking-common": "^
|
|
54
|
+
"@atlaskit/linking-common": "^9.0.0",
|
|
55
55
|
"@atlaskit/linking-types": "^9.10.0",
|
|
56
56
|
"@atlaskit/logo": "^18.0.0",
|
|
57
57
|
"@atlaskit/lozenge": "^12.2.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"uuid": "^3.1.0"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
-
"@atlaskit/link-provider": "^
|
|
88
|
+
"@atlaskit/link-provider": "^3.0.0",
|
|
89
89
|
"react": "^18.2.0",
|
|
90
90
|
"react-dom": "^18.2.0",
|
|
91
91
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@atlaskit/css-reset": "^7.2.0",
|
|
98
98
|
"@atlaskit/link-test-helpers": "^8.0.0",
|
|
99
99
|
"@atlaskit/media-test-helpers": "^36.0.0",
|
|
100
|
-
"@atlaskit/react-ufo": "^3.
|
|
100
|
+
"@atlaskit/react-ufo": "^3.11.0",
|
|
101
101
|
"@atlaskit/ssr": "workspace:^",
|
|
102
102
|
"@atlaskit/visual-regression": "workspace:^",
|
|
103
103
|
"@atlassian/analytics-tooling": "^0.5.0",
|