@atlaskit/smart-card 30.2.2 → 30.2.3
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 +8 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.d.ts +2 -13
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +10 -4
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.d.ts +2 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +10 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/smart-card
|
|
2
2
|
|
|
3
|
+
## 30.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#163278](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/163278)
|
|
8
|
+
[`fbaa7de32c0b2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbaa7de32c0b2) -
|
|
9
|
+
Update FlexibleCard block prop children types
|
|
10
|
+
|
|
3
11
|
## 30.2.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
|
|
|
22
22
|
var context = exports.context = {
|
|
23
23
|
componentName: 'smart-cards',
|
|
24
24
|
packageName: "@atlaskit/smart-card",
|
|
25
|
-
packageVersion: "30.2.
|
|
25
|
+
packageVersion: "30.2.3"
|
|
26
26
|
};
|
|
27
27
|
var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
28
28
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
|
|
|
17
17
|
_excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
|
|
18
18
|
var PACKAGE_DATA = {
|
|
19
19
|
packageName: "@atlaskit/smart-card",
|
|
20
|
-
packageVersion: "30.2.
|
|
20
|
+
packageVersion: "30.2.3",
|
|
21
21
|
componentName: 'linkUrl'
|
|
22
22
|
};
|
|
23
23
|
var Link = (0, _click.withLinkClickedEvent)('a');
|
|
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
|
|
|
4
4
|
export const context = {
|
|
5
5
|
componentName: 'smart-cards',
|
|
6
6
|
packageName: "@atlaskit/smart-card",
|
|
7
|
-
packageVersion: "30.2.
|
|
7
|
+
packageVersion: "30.2.3"
|
|
8
8
|
};
|
|
9
9
|
export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
10
10
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -7,7 +7,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
7
7
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "30.2.
|
|
10
|
+
packageVersion: "30.2.3",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "30.2.
|
|
18
|
+
packageVersion: "30.2.3"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -10,7 +10,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
10
10
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
11
11
|
var PACKAGE_DATA = {
|
|
12
12
|
packageName: "@atlaskit/smart-card",
|
|
13
|
-
packageVersion: "30.2.
|
|
13
|
+
packageVersion: "30.2.3",
|
|
14
14
|
componentName: 'linkUrl'
|
|
15
15
|
};
|
|
16
16
|
var Link = withLinkClickedEvent('a');
|
package/dist/types/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type BlockProps } from '../../types';
|
|
3
|
-
export declare const RelatedUrlsBlockResolvingView: ({ testId, ...blockProps }: {
|
|
4
|
-
direction?: import("../../../../../..").SmartLinkDirection | undefined;
|
|
5
|
-
overrideCss?: import("@emotion/serialize").SerializedStyles | undefined;
|
|
6
|
-
size?: import("../../../../../..").SmartLinkSize | undefined;
|
|
7
|
-
status?: import("../../../../../../constants").SmartLinkStatus | undefined;
|
|
8
|
-
testId?: string | undefined;
|
|
9
|
-
blockRef?: React.Ref<HTMLDivElement> | undefined;
|
|
10
|
-
onRender?: (() => void) | undefined;
|
|
11
|
-
onTransitionEnd?: (() => void) | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
} & {
|
|
3
|
+
export declare const RelatedUrlsBlockResolvingView: ({ testId, ...blockProps }: BlockProps & {
|
|
15
4
|
testId?: string | undefined;
|
|
16
5
|
}) => JSX.Element;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
2
|
import { type SerializedStyles } from '@emotion/react';
|
|
3
3
|
import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize, type SmartLinkStatus } from '../../../../constants';
|
|
4
4
|
import { type ActionProps } from '../actions/action/types';
|
|
5
|
-
export type BlockProps =
|
|
5
|
+
export type BlockProps = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* React children
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The direction that the block should arrange its elements. Can be vertical
|
|
8
12
|
* or horizontal. Default is horizontal.
|
|
9
13
|
* @internal
|
|
10
14
|
*/
|
|
11
15
|
direction?: SmartLinkDirection;
|
|
12
16
|
/**
|
|
13
17
|
* Any additional CSS properties to apply to the block.
|
|
18
|
+
* The use of this prop is **strongly** discouraged.
|
|
19
|
+
* `@emotion/react` will be replaced with compiled.
|
|
14
20
|
*/
|
|
15
21
|
overrideCss?: SerializedStyles;
|
|
16
22
|
/**
|
|
@@ -44,7 +50,7 @@ export type BlockProps = PropsWithChildren<{
|
|
|
44
50
|
* @internal
|
|
45
51
|
*/
|
|
46
52
|
onTransitionEnd?: () => void;
|
|
47
|
-
}
|
|
53
|
+
};
|
|
48
54
|
/**
|
|
49
55
|
* Used to represent a metadata element to be rendered.
|
|
50
56
|
*/
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/related-urls-block/resolving/index.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type BlockProps } from '../../types';
|
|
3
|
-
export declare const RelatedUrlsBlockResolvingView: ({ testId, ...blockProps }: {
|
|
4
|
-
direction?: import("../../../../../..").SmartLinkDirection | undefined;
|
|
5
|
-
overrideCss?: import("@emotion/serialize").SerializedStyles | undefined;
|
|
6
|
-
size?: import("../../../../../..").SmartLinkSize | undefined;
|
|
7
|
-
status?: import("../../../../../../constants").SmartLinkStatus | undefined;
|
|
8
|
-
testId?: string | undefined;
|
|
9
|
-
blockRef?: React.Ref<HTMLDivElement> | undefined;
|
|
10
|
-
onRender?: (() => void) | undefined;
|
|
11
|
-
onTransitionEnd?: (() => void) | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
} & {
|
|
3
|
+
export declare const RelatedUrlsBlockResolvingView: ({ testId, ...blockProps }: BlockProps & {
|
|
15
4
|
testId?: string | undefined;
|
|
16
5
|
}) => JSX.Element;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ReactNode, type Ref } from 'react';
|
|
2
2
|
import { type SerializedStyles } from '@emotion/react';
|
|
3
3
|
import { type ActionName, type ElementName, type SmartLinkDirection, type SmartLinkSize, type SmartLinkStatus } from '../../../../constants';
|
|
4
4
|
import { type ActionProps } from '../actions/action/types';
|
|
5
|
-
export type BlockProps =
|
|
5
|
+
export type BlockProps = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* React children
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The direction that the block should arrange its elements. Can be vertical
|
|
8
12
|
* or horizontal. Default is horizontal.
|
|
9
13
|
* @internal
|
|
10
14
|
*/
|
|
11
15
|
direction?: SmartLinkDirection;
|
|
12
16
|
/**
|
|
13
17
|
* Any additional CSS properties to apply to the block.
|
|
18
|
+
* The use of this prop is **strongly** discouraged.
|
|
19
|
+
* `@emotion/react` will be replaced with compiled.
|
|
14
20
|
*/
|
|
15
21
|
overrideCss?: SerializedStyles;
|
|
16
22
|
/**
|
|
@@ -44,7 +50,7 @@ export type BlockProps = PropsWithChildren<{
|
|
|
44
50
|
* @internal
|
|
45
51
|
*/
|
|
46
52
|
onTransitionEnd?: () => void;
|
|
47
|
-
}
|
|
53
|
+
};
|
|
48
54
|
/**
|
|
49
55
|
* Used to represent a metadata element to be rendered.
|
|
50
56
|
*/
|