@atlaskit/smart-card 34.2.2 → 34.4.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 +23 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/index.js +201 -263
- package/dist/cjs/view/FlexibleCard/components/actions/action/index.js +8 -13
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +5 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +33 -18
- package/dist/cjs/view/FlexibleCard/components/blocks/block/indexOld.js +56 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +115 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +58 -81
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/indexOld.js +37 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +18 -52
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +104 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +135 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +108 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +10 -57
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +38 -37
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +58 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolved/index.js +24 -16
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +48 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +23 -19
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +14 -9
- package/dist/cjs/view/FlexibleCard/components/common/image-icon/index.js +4 -9
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
- package/dist/cjs/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +63 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +61 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-link-item/index.js +20 -19
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +51 -0
- package/dist/cjs/view/RelatedLinksModal/components/related-links-list/index.js +24 -24
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +66 -0
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
- package/dist/cjs/view/RelatedLinksModal/views/errored/error-svg/index.js +31 -25
- package/dist/cjs/view/RelatedLinksModal/views/resolved/ResolvedOld.js +45 -0
- package/dist/cjs/view/RelatedLinksModal/views/resolved/index.js +16 -14
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +141 -0
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
- package/dist/cjs/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +56 -50
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/index.js +69 -55
- package/dist/es2019/view/FlexibleCard/components/actions/action/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +32 -35
- package/dist/es2019/view/FlexibleCard/components/blocks/block/indexOld.js +62 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +113 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +60 -95
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/indexOld.js +28 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +14 -62
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +106 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +118 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +102 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +11 -57
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +35 -36
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +50 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolved/index.js +15 -11
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +42 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +20 -18
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/common/image-icon/index.js +1 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
- package/dist/es2019/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +55 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +55 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-link-item/index.js +19 -18
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +42 -0
- package/dist/es2019/view/RelatedLinksModal/components/related-links-list/index.js +23 -22
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +58 -0
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
- package/dist/es2019/view/RelatedLinksModal/views/errored/error-svg/index.js +28 -24
- package/dist/es2019/view/RelatedLinksModal/views/resolved/ResolvedOld.js +36 -0
- package/dist/es2019/view/RelatedLinksModal/views/resolved/index.js +16 -13
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +133 -0
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
- package/dist/es2019/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +53 -49
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/index.js +116 -162
- package/dist/esm/view/FlexibleCard/components/actions/action/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +1 -4
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +34 -0
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +31 -20
- package/dist/esm/view/FlexibleCard/components/blocks/block/indexOld.js +50 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.js +108 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +46 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +54 -79
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/index.js +12 -8
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/indexOld.js +30 -0
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.compiled.css +15 -0
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +15 -53
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.js +98 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.js +127 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.js +101 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +11 -56
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +36 -37
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.js +53 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.compiled.css +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolved/index.js +15 -11
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.js +42 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.compiled.css +55 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +20 -18
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +14 -9
- package/dist/esm/view/FlexibleCard/components/common/image-icon/index.js +1 -3
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModal.js +15 -14
- package/dist/esm/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.js +53 -0
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.js +54 -0
- package/dist/esm/view/RelatedLinksModal/components/related-link-item/index.js +19 -18
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.js +43 -0
- package/dist/esm/view/RelatedLinksModal/components/related-links-list/index.js +24 -23
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.js +58 -0
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.compiled.css +6 -0
- package/dist/esm/view/RelatedLinksModal/views/errored/error-svg/index.js +28 -24
- package/dist/esm/view/RelatedLinksModal/views/resolved/ResolvedOld.js +37 -0
- package/dist/esm/view/RelatedLinksModal/views/resolved/index.js +16 -13
- package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.js +133 -0
- package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.compiled.css +6 -0
- package/dist/esm/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.js +53 -49
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
- package/dist/types/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
- package/dist/types/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.d.ts +17 -0
- package/dist/types/view/FlexibleCard/components/blocks/element-group/index.d.ts +5 -9
- package/dist/types/view/FlexibleCard/components/blocks/element-group/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +16 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.d.ts +15 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +5 -7
- package/dist/types/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -13
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +9 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +8 -2
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.d.ts +14 -0
- package/dist/types/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +5 -3
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +2 -0
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/components/related-link-item/index.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/components/related-links-list/index.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.d.ts +6 -0
- package/dist/types/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +2 -6
- package/dist/types/view/RelatedLinksModal/views/resolved/ResolvedOld.d.ts +8 -0
- package/dist/types/view/RelatedLinksModal/views/resolved/index.d.ts +3 -7
- package/dist/types/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.d.ts +6 -0
- package/dist/types/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +2 -6
- package/dist/types-ts4.5/utils/index.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/index.d.ts +3 -10
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/block/indexOld.d.ts +11 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.d.ts +17 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/index.d.ts +5 -9
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/types.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/index.d.ts +3 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/indexOld.d.ts +14 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts +2 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts +10 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/TitleBlockOld.d.ts +16 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/errored/TitleBlockErroredViewOld.d.ts +15 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/errored/index.d.ts +5 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/index.d.ts +1 -13
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/TitleBlockResolvedViewOld.d.ts +9 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts +8 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/TitleBlockResolvingViewOld.d.ts +14 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts +5 -3
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/types.d.ts +2 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModal.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/components/RelatedLinksBaseModalOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-link-item/index.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/components/related-links-list/index.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/ErrorSvgOld.d.ts +6 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/errored/error-svg/index.d.ts +2 -6
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/ResolvedOld.d.ts +8 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/resolved/index.d.ts +3 -7
- package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/unavailable-svg/UnavailableSvgOld.d.ts +6 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/views/unavailable/unavailable-svg/index.d.ts +2 -6
- package/package.json +4 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type PreviewBlockProps } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a PreviewBlock, which typically contains media or other large format content.
|
|
9
|
+
* @public
|
|
10
|
+
* @param {PreviewBlockProps} PreviewBlock
|
|
11
|
+
* @see Block
|
|
12
|
+
*/
|
|
13
|
+
declare const PreviewBlock: ({ status, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
14
|
+
export default PreviewBlock;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type PreviewBlockProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
@@ -6,5 +6,5 @@ import { type PreviewBlockProps } from '../types';
|
|
|
6
6
|
* @param {PreviewBlock} PreviewBlock
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError,
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, className, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => JSX.Element;
|
|
10
10
|
export default PreviewBlockResolvedView;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type PreviewBlockProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
5
|
+
* @public
|
|
6
|
+
* @param {PreviewBlock} PreviewBlock
|
|
7
|
+
* @see Block
|
|
8
|
+
*/
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, overrideCss, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
10
|
+
export default PreviewBlockResolvedView;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type TitleBlockProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a TitleBlock, which is the foundation of Flexible UI.
|
|
5
|
+
* This contains an icon, the link, and any associated metadata and actions in one block.
|
|
6
|
+
* The TitleBlock will also render differently given the state of the smart link.
|
|
7
|
+
* This can be found in the corresponding Resolving, Resolved and Errored views.
|
|
8
|
+
* @public
|
|
9
|
+
* @param {TitleBlockProps} TitleBlockProps
|
|
10
|
+
* @see Block
|
|
11
|
+
* @see TitleBlockResolvingView
|
|
12
|
+
* @see TitleBlockResolvedView
|
|
13
|
+
* @see TitleBlockErroredView
|
|
14
|
+
*/
|
|
15
|
+
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange, onClick, overrideCss, status, showActionOnHover, testId, text, icon, theme, hideRetry, metadataPosition, hideIcon, ...props }: TitleBlockProps) => JSX.Element;
|
|
16
|
+
export default TitleBlock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Represents an Errored TitleBlock view.
|
|
9
|
+
* This will render when a Smart Link did not successfully resolve.
|
|
10
|
+
* This may be a result of a Smart Link not having the correct credentials,
|
|
11
|
+
* or the backend response was errored or malformed.
|
|
12
|
+
* @see TitleBlock
|
|
13
|
+
*/
|
|
14
|
+
declare const TitleBlockErroredView: ({ actionGroup, retry, position, testId, title, icon, hideIcon, ...blockProps }: TitleBlockViewProps) => jsx.JSX.Element;
|
|
15
|
+
export default TitleBlockErroredView;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type TitleBlockViewProps } from '../types';
|
|
3
|
+
import TitleBlockErroredViewOld from './TitleBlockErroredViewOld';
|
|
7
4
|
/**
|
|
8
5
|
* Represents an Errored TitleBlock view.
|
|
9
6
|
* This will render when a Smart Link did not successfully resolve.
|
|
@@ -11,5 +8,6 @@ import { type TitleBlockViewProps } from '../types';
|
|
|
11
8
|
* or the backend response was errored or malformed.
|
|
12
9
|
* @see TitleBlock
|
|
13
10
|
*/
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
11
|
+
declare const TitleBlockErroredViewNew: ({ actionGroup, retry, position, testId, title, icon, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
12
|
+
export default TitleBlockErroredViewOld;
|
|
13
|
+
export { TitleBlockErroredViewNew };
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type TitleBlockProps } from './types';
|
|
3
|
-
|
|
4
|
-
* Represents a TitleBlock, which is the foundation of Flexible UI.
|
|
5
|
-
* This contains an icon, the link, and any associated metadata and actions in one block.
|
|
6
|
-
* The TitleBlock will also render differently given the state of the smart link.
|
|
7
|
-
* This can be found in the corresponding Resolving, Resolved and Errored views.
|
|
8
|
-
* @public
|
|
9
|
-
* @param {TitleBlockProps} TitleBlockProps
|
|
10
|
-
* @see Block
|
|
11
|
-
* @see TitleBlockResolvingView
|
|
12
|
-
* @see TitleBlockResolvedView
|
|
13
|
-
* @see TitleBlockErroredView
|
|
14
|
-
*/
|
|
15
|
-
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange, onClick, overrideCss, status, showActionOnHover, testId, text, icon, theme, hideRetry, metadataPosition, hideIcon, ...props }: TitleBlockProps) => JSX.Element;
|
|
3
|
+
declare const TitleBlock: (props: TitleBlockProps) => JSX.Element;
|
|
16
4
|
export default TitleBlock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type TitleBlockViewProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* This renders a fully resolved TitleBlock.
|
|
5
|
+
* This should render when a Smart Link returns a valid response.
|
|
6
|
+
* @see TitleBlock
|
|
7
|
+
*/
|
|
8
|
+
declare const TitleBlockResolvedView: ({ actionGroup, metadata, position, subtitle, testId, text, icon, title, metadataPosition, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
9
|
+
export default TitleBlockResolvedView;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
1
5
|
/// <reference types="react" />
|
|
2
6
|
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
import TitleBlockResolvedViewOld from './TitleBlockResolvedViewOld';
|
|
3
8
|
/**
|
|
4
9
|
* This renders a fully resolved TitleBlock.
|
|
5
10
|
* This should render when a Smart Link returns a valid response.
|
|
6
11
|
* @see TitleBlock
|
|
7
12
|
*/
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
13
|
+
declare const TitleBlockResolvedViewNew: ({ actionGroup, metadata, position, subtitle, testId, text, icon, title, metadataPosition, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
14
|
+
export default TitleBlockResolvedViewOld;
|
|
15
|
+
export { TitleBlockResolvedViewNew };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* This represents a TitleBlock for a Smart Link that is currently waiting
|
|
9
|
+
* for a request to finish.
|
|
10
|
+
* This should render when a Smart Link has sent a request.
|
|
11
|
+
* @see TitleBlock
|
|
12
|
+
*/
|
|
13
|
+
declare const TitleBlockResolvingView: ({ actionGroup, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => jsx.JSX.Element;
|
|
14
|
+
export default TitleBlockResolvingView;
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
/// <reference types="react" />
|
|
6
6
|
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
import TitleBlockResolvingViewOld from './TitleBlockResolvingViewOld';
|
|
7
8
|
/**
|
|
8
9
|
* This represents a TitleBlock for a Smart Link that is currently waiting
|
|
9
10
|
* for a request to finish.
|
|
10
11
|
* This should render when a Smart Link has sent a request.
|
|
11
12
|
* @see TitleBlock
|
|
12
13
|
*/
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
14
|
+
declare const TitleBlockResolvingViewNew: ({ actionGroup, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
15
|
+
export default TitleBlockResolvingViewOld;
|
|
16
|
+
export { TitleBlockResolvingViewNew };
|
|
@@ -17,8 +17,10 @@ export type BlockProps = {
|
|
|
17
17
|
* Any additional CSS properties to apply to the block.
|
|
18
18
|
* The use of this prop is **strongly** discouraged.
|
|
19
19
|
* `@emotion/react` will be replaced with compiled.
|
|
20
|
+
* @deprecated
|
|
20
21
|
*/
|
|
21
22
|
overrideCss?: SerializedStyles;
|
|
23
|
+
className?: string;
|
|
22
24
|
/**
|
|
23
25
|
* The size of the block and the size that the underlying elements should
|
|
24
26
|
* default to.
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type RelatedLinksBaseModalProps } from './types';
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
3
|
+
declare const RelatedLinksBaseModalExported: (props: RelatedLinksBaseModalProps) => JSX.Element;
|
|
4
|
+
export default RelatedLinksBaseModalExported;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type RelatedLinksBaseModalProps } from './types';
|
|
7
|
+
declare const RelatedLinksBaseModal: ({ onClose, showModal, children }: RelatedLinksBaseModalProps) => jsx.JSX.Element;
|
|
8
|
+
export default RelatedLinksBaseModal;
|
package/dist/types/view/RelatedLinksModal/components/related-link-item/RelatedLinkItemOld.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type RelatedLinkItemProp } from '../types';
|
|
7
|
+
declare const RelatedLinkItem: ({ url, testId }: RelatedLinkItemProp) => jsx.JSX.Element;
|
|
8
|
+
export default RelatedLinkItem;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type RelatedLinkItemProp } from '../types';
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
3
|
+
declare const RelatedLinkItemExported: (props: RelatedLinkItemProp) => JSX.Element;
|
|
4
|
+
export default RelatedLinkItemExported;
|
package/dist/types/view/RelatedLinksModal/components/related-links-list/RelatedLinksListOld.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type RelatedLinksListProp } from '../types';
|
|
7
|
+
declare const RelatedLinksList: ({ urls, title, testId }: RelatedLinksListProp) => jsx.JSX.Element;
|
|
8
|
+
export default RelatedLinksList;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type RelatedLinksListProp } from '../types';
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
3
|
+
declare const RelatedLinksListExported: (props: RelatedLinksListProp) => JSX.Element;
|
|
4
|
+
export default RelatedLinksListExported;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
export declare const ErrorSVG: (props: React.SVGProps<SVGSVGElement>) => jsx.JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ErrorSVG: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type RelatedLinksProps } from './types';
|
|
7
|
+
declare const RelatedLinksResolvedView: ({ incomingLinks, outgoingLinks, }: RelatedLinksProps) => jsx.JSX.Element;
|
|
8
|
+
export default RelatedLinksResolvedView;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type RelatedLinksProps } from './types';
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
3
|
+
declare const RelatedLinksResolvedExported: (props: RelatedLinksProps) => JSX.Element;
|
|
4
|
+
export default RelatedLinksResolvedExported;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
export declare const UnavailableSVG: (props: React.SVGProps<SVGSVGElement>) => jsx.JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const UnavailableSVG: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ActiveThemeState } from '@atlaskit/tokens';
|
|
3
|
+
import { IconType } from '../constants';
|
|
3
4
|
export declare const isSpecialEvent: (evt: React.MouseEvent | React.KeyboardEvent) => boolean;
|
|
4
5
|
export declare const isIframe: () => boolean;
|
|
5
6
|
/**
|
|
@@ -15,6 +16,7 @@ export declare const isSpecialKey: (event: React.MouseEvent | React.KeyboardEven
|
|
|
15
16
|
export declare const isSpecialClick: (event: React.MouseEvent) => boolean;
|
|
16
17
|
export declare const getIconForFileType: (fileMimeType: string) => React.ReactNode | undefined;
|
|
17
18
|
export declare const getLabelForFileType: (fileMimeType: string) => React.ReactNode | undefined;
|
|
19
|
+
export declare const getLazyIcons: () => Partial<Record<IconType, () => Promise<unknown>>>;
|
|
18
20
|
export declare const getIframeSandboxAttribute: (isTrusted: boolean) => "allow-downloads allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts" | undefined;
|
|
19
21
|
export declare const handleOnClick: (handler: Function) => (e: React.BaseSyntheticEvent) => void;
|
|
20
22
|
export declare const isIntersectionObserverSupported: () => boolean;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type BlockProps } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* in a row. All elements and actions should be contained within a Block.
|
|
6
|
-
* @internal
|
|
7
|
-
* @param {ActionGroupProps} ActionGroupProps
|
|
8
|
-
* @see Action
|
|
9
|
-
*/
|
|
10
|
-
declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
|
|
11
|
-
export default Block;
|
|
3
|
+
declare const Exported: (props: BlockProps) => JSX.Element;
|
|
4
|
+
export default Exported;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type BlockProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* A block represents a collection of elements and actions that are arranged
|
|
5
|
+
* in a row. All elements and actions should be contained within a Block.
|
|
6
|
+
* @internal
|
|
7
|
+
* @param {ActionGroupProps} ActionGroupProps
|
|
8
|
+
* @see Action
|
|
9
|
+
*/
|
|
10
|
+
declare const Block: ({ children, direction, size, testId, overrideCss, blockRef, onRender, onTransitionEnd, }: BlockProps) => jsx.JSX.Element;
|
|
11
|
+
export default Block;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/element-group/ElementGroupOld.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx, type SerializedStyles } from '@emotion/react';
|
|
6
|
+
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
|
|
7
|
+
import { type ElementGroupProps } from './types';
|
|
8
|
+
export declare const getElementGroupStyles: (direction: SmartLinkDirection, size: SmartLinkSize, align: SmartLinkAlignment, width: SmartLinkWidth, position: SmartLinkPosition) => SerializedStyles;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a group of Action components. Accepts an array of Actions, in addition to some styling
|
|
11
|
+
* preferences.
|
|
12
|
+
* @internal
|
|
13
|
+
* @param {ActionGroupProps} ActionGroupProps
|
|
14
|
+
* @see Action
|
|
15
|
+
*/
|
|
16
|
+
declare const ElementGroup: ({ align, children, overrideCss, direction, size, testId, width, position, }: ElementGroupProps) => jsx.JSX.Element;
|
|
17
|
+
export default ElementGroup;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx, type SerializedStyles } from '@emotion/react';
|
|
6
|
-
import { SmartLinkAlignment, SmartLinkDirection, SmartLinkPosition, SmartLinkSize, SmartLinkWidth } from '../../../../../constants';
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import ElementGroupOld from './ElementGroupOld';
|
|
7
3
|
import { type ElementGroupProps } from './types';
|
|
8
|
-
export declare const getElementGroupStyles: (direction: SmartLinkDirection, size: SmartLinkSize, align: SmartLinkAlignment, width: SmartLinkWidth, position: SmartLinkPosition) => SerializedStyles;
|
|
9
4
|
/**
|
|
10
5
|
* Creates a group of Action components. Accepts an array of Actions, in addition to some styling
|
|
11
6
|
* preferences.
|
|
@@ -13,5 +8,6 @@ export declare const getElementGroupStyles: (direction: SmartLinkDirection, size
|
|
|
13
8
|
* @param {ActionGroupProps} ActionGroupProps
|
|
14
9
|
* @see Action
|
|
15
10
|
*/
|
|
16
|
-
declare const
|
|
17
|
-
export default
|
|
11
|
+
declare const ElementGroupNew: ({ align, children, direction, size, testId, width, position, className, }: ElementGroupProps) => JSX.Element;
|
|
12
|
+
export default ElementGroupOld;
|
|
13
|
+
export { ElementGroupNew };
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type PreviewBlockProps } from './types';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @public
|
|
10
|
-
* @param {PreviewBlockProps} PreviewBlock
|
|
11
|
-
* @see Block
|
|
12
|
-
*/
|
|
13
|
-
declare const PreviewBlock: ({ status, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
14
|
-
export default PreviewBlock;
|
|
3
|
+
declare const Exported: (props: PreviewBlockProps) => JSX.Element;
|
|
4
|
+
export default Exported;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type PreviewBlockProps } from './types';
|
|
7
|
+
/**
|
|
8
|
+
* Represents a PreviewBlock, which typically contains media or other large format content.
|
|
9
|
+
* @public
|
|
10
|
+
* @param {PreviewBlockProps} PreviewBlock
|
|
11
|
+
* @see Block
|
|
12
|
+
*/
|
|
13
|
+
declare const PreviewBlock: ({ status, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
14
|
+
export default PreviewBlock;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type PreviewBlockProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
@@ -6,5 +6,5 @@ import { type PreviewBlockProps } from '../types';
|
|
|
6
6
|
* @param {PreviewBlock} PreviewBlock
|
|
7
7
|
* @see Block
|
|
8
8
|
*/
|
|
9
|
-
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError,
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, className, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => JSX.Element;
|
|
10
10
|
export default PreviewBlockResolvedView;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/resolved/indexOld.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
import { type PreviewBlockProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a resolved PreviewBlock, which typically contains media or other large format content.
|
|
5
|
+
* @public
|
|
6
|
+
* @param {PreviewBlock} PreviewBlock
|
|
7
|
+
* @see Block
|
|
8
|
+
*/
|
|
9
|
+
declare const PreviewBlockResolvedView: ({ ignoreContainerPadding, onError, overrideCss, placement, testId, overrideUrl, ...blockProps }: PreviewBlockProps) => jsx.JSX.Element;
|
|
10
|
+
export default PreviewBlockResolvedView;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type TitleBlockProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a TitleBlock, which is the foundation of Flexible UI.
|
|
5
|
+
* This contains an icon, the link, and any associated metadata and actions in one block.
|
|
6
|
+
* The TitleBlock will also render differently given the state of the smart link.
|
|
7
|
+
* This can be found in the corresponding Resolving, Resolved and Errored views.
|
|
8
|
+
* @public
|
|
9
|
+
* @param {TitleBlockProps} TitleBlockProps
|
|
10
|
+
* @see Block
|
|
11
|
+
* @see TitleBlockResolvingView
|
|
12
|
+
* @see TitleBlockResolvedView
|
|
13
|
+
* @see TitleBlockErroredView
|
|
14
|
+
*/
|
|
15
|
+
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange, onClick, overrideCss, status, showActionOnHover, testId, text, icon, theme, hideRetry, metadataPosition, hideIcon, ...props }: TitleBlockProps) => JSX.Element;
|
|
16
|
+
export default TitleBlock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* Represents an Errored TitleBlock view.
|
|
9
|
+
* This will render when a Smart Link did not successfully resolve.
|
|
10
|
+
* This may be a result of a Smart Link not having the correct credentials,
|
|
11
|
+
* or the backend response was errored or malformed.
|
|
12
|
+
* @see TitleBlock
|
|
13
|
+
*/
|
|
14
|
+
declare const TitleBlockErroredView: ({ actionGroup, retry, position, testId, title, icon, hideIcon, ...blockProps }: TitleBlockViewProps) => jsx.JSX.Element;
|
|
15
|
+
export default TitleBlockErroredView;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
import { type TitleBlockViewProps } from '../types';
|
|
3
|
+
import TitleBlockErroredViewOld from './TitleBlockErroredViewOld';
|
|
7
4
|
/**
|
|
8
5
|
* Represents an Errored TitleBlock view.
|
|
9
6
|
* This will render when a Smart Link did not successfully resolve.
|
|
@@ -11,5 +8,6 @@ import { type TitleBlockViewProps } from '../types';
|
|
|
11
8
|
* or the backend response was errored or malformed.
|
|
12
9
|
* @see TitleBlock
|
|
13
10
|
*/
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
11
|
+
declare const TitleBlockErroredViewNew: ({ actionGroup, retry, position, testId, title, icon, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
12
|
+
export default TitleBlockErroredViewOld;
|
|
13
|
+
export { TitleBlockErroredViewNew };
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type TitleBlockProps } from './types';
|
|
3
|
-
|
|
4
|
-
* Represents a TitleBlock, which is the foundation of Flexible UI.
|
|
5
|
-
* This contains an icon, the link, and any associated metadata and actions in one block.
|
|
6
|
-
* The TitleBlock will also render differently given the state of the smart link.
|
|
7
|
-
* This can be found in the corresponding Resolving, Resolved and Errored views.
|
|
8
|
-
* @public
|
|
9
|
-
* @param {TitleBlockProps} TitleBlockProps
|
|
10
|
-
* @see Block
|
|
11
|
-
* @see TitleBlockResolvingView
|
|
12
|
-
* @see TitleBlockResolvedView
|
|
13
|
-
* @see TitleBlockErroredView
|
|
14
|
-
*/
|
|
15
|
-
declare const TitleBlock: ({ actions, anchorTarget, hideTitleTooltip, maxLines, onActionMenuOpenChange, onClick, overrideCss, status, showActionOnHover, testId, text, icon, theme, hideRetry, metadataPosition, hideIcon, ...props }: TitleBlockProps) => JSX.Element;
|
|
3
|
+
declare const TitleBlock: (props: TitleBlockProps) => JSX.Element;
|
|
16
4
|
export default TitleBlock;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type TitleBlockViewProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* This renders a fully resolved TitleBlock.
|
|
5
|
+
* This should render when a Smart Link returns a valid response.
|
|
6
|
+
* @see TitleBlock
|
|
7
|
+
*/
|
|
8
|
+
declare const TitleBlockResolvedView: ({ actionGroup, metadata, position, subtitle, testId, text, icon, title, metadataPosition, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
9
|
+
export default TitleBlockResolvedView;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolved/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
2
6
|
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
import TitleBlockResolvedViewOld from './TitleBlockResolvedViewOld';
|
|
3
8
|
/**
|
|
4
9
|
* This renders a fully resolved TitleBlock.
|
|
5
10
|
* This should render when a Smart Link returns a valid response.
|
|
6
11
|
* @see TitleBlock
|
|
7
12
|
*/
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
13
|
+
declare const TitleBlockResolvedViewNew: ({ actionGroup, metadata, position, subtitle, testId, text, icon, title, metadataPosition, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
14
|
+
export default TitleBlockResolvedViewOld;
|
|
15
|
+
export { TitleBlockResolvedViewNew };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
6
|
+
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
/**
|
|
8
|
+
* This represents a TitleBlock for a Smart Link that is currently waiting
|
|
9
|
+
* for a request to finish.
|
|
10
|
+
* This should render when a Smart Link has sent a request.
|
|
11
|
+
* @see TitleBlock
|
|
12
|
+
*/
|
|
13
|
+
declare const TitleBlockResolvingView: ({ actionGroup, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => jsx.JSX.Element;
|
|
14
|
+
export default TitleBlockResolvingView;
|
package/dist/types-ts4.5/view/FlexibleCard/components/blocks/title-block/resolving/index.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
* @jsxRuntime classic
|
|
3
4
|
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
6
|
import { type TitleBlockViewProps } from '../types';
|
|
7
|
+
import TitleBlockResolvingViewOld from './TitleBlockResolvingViewOld';
|
|
7
8
|
/**
|
|
8
9
|
* This represents a TitleBlock for a Smart Link that is currently waiting
|
|
9
10
|
* for a request to finish.
|
|
10
11
|
* This should render when a Smart Link has sent a request.
|
|
11
12
|
* @see TitleBlock
|
|
12
13
|
*/
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
14
|
+
declare const TitleBlockResolvingViewNew: ({ actionGroup, testId, title, hideIcon, ...blockProps }: TitleBlockViewProps) => JSX.Element;
|
|
15
|
+
export default TitleBlockResolvingViewOld;
|
|
16
|
+
export { TitleBlockResolvingViewNew };
|
|
@@ -17,8 +17,10 @@ export type BlockProps = {
|
|
|
17
17
|
* Any additional CSS properties to apply to the block.
|
|
18
18
|
* The use of this prop is **strongly** discouraged.
|
|
19
19
|
* `@emotion/react` will be replaced with compiled.
|
|
20
|
+
* @deprecated
|
|
20
21
|
*/
|
|
21
22
|
overrideCss?: SerializedStyles;
|
|
23
|
+
className?: string;
|
|
22
24
|
/**
|
|
23
25
|
* The size of the block and the size that the underlying elements should
|
|
24
26
|
* default to.
|