@atlaskit/smart-card 38.13.3 → 38.14.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/index.js +12 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +9 -2
- package/dist/cjs/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +37 -0
- package/dist/cjs/view/FlexibleCard/components/elements/custom-by-status-element/index.js +36 -0
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +15 -1
- package/dist/cjs/view/FlexibleCard/components/elements/owned-by-element/index.js +7 -1
- package/dist/cjs/view/FlexibleCard/external.js +25 -5
- package/dist/cjs/view/FlexibleCard/utils.js +11 -4
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +28 -0
- package/dist/es2019/view/FlexibleCard/components/elements/custom-by-status-element/index.js +27 -0
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/owned-by-element/index.js +7 -1
- package/dist/es2019/view/FlexibleCard/external.js +13 -5
- package/dist/es2019/view/FlexibleCard/utils.js +9 -3
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +9 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +9 -2
- package/dist/esm/view/FlexibleCard/components/elements/custom-by-access-type-element/index.js +30 -0
- package/dist/esm/view/FlexibleCard/components/elements/custom-by-status-element/index.js +29 -0
- package/dist/esm/view/FlexibleCard/components/elements/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/owned-by-element/index.js +7 -1
- package/dist/esm/view/FlexibleCard/external.js +13 -5
- package/dist/esm/view/FlexibleCard/utils.js +11 -4
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/state/flexible-ui-context/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +7 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +7 -1
- package/dist/types/view/FlexibleCard/components/elements/custom-by-access-type-element/index.d.ts +7 -0
- package/dist/types/view/FlexibleCard/components/elements/custom-by-status-element/index.d.ts +9 -0
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +2 -0
- package/dist/types/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
- package/dist/types/view/FlexibleCard/external.d.ts +4 -4
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/state/flexible-ui-context/types.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-date-time-element/index.d.ts +7 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-icon-element/index.d.ts +1 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-text-element/index.d.ts +7 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/custom-by-access-type-element/index.d.ts +7 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/custom-by-status-element/index.d.ts +9 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +2 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/owned-by-element/index.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/external.d.ts +4 -4
- package/package.json +5 -2
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type BaseTextElementProps } from '../common';
|
|
3
3
|
export type OwnedByElementProps = BaseTextElementProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The text prefix to display before the owned by text.
|
|
6
|
+
* Best used when hideFormat is enabled
|
|
7
|
+
*/
|
|
8
|
+
textPrefix?: string;
|
|
4
9
|
onRender?: (hasData: boolean) => void;
|
|
5
10
|
};
|
|
6
11
|
declare const OwnedByElement: (props: OwnedByElementProps) => JSX.Element | null;
|
|
@@ -27,9 +27,9 @@ type LinkIconElementProps = Prettify<Pick<React.ComponentProps<typeof LinkIcon>,
|
|
|
27
27
|
export declare const LinkIconElement: (props?: LinkIconElementProps) => React.JSX.Element;
|
|
28
28
|
export declare const LocationElement: () => React.JSX.Element;
|
|
29
29
|
export declare const ModifiedByElement: () => React.JSX.Element;
|
|
30
|
-
type ModifiedOnElementProps = Pick<React.ComponentProps<typeof ModifiedOn>, 'hideDatePrefix' | 'color' | 'onRender'>;
|
|
30
|
+
type ModifiedOnElementProps = Pick<React.ComponentProps<typeof ModifiedOn>, 'hideDatePrefix' | 'color' | 'onRender' | 'fontSize'>;
|
|
31
31
|
export declare const ModifiedOnElement: (props?: ModifiedOnElementProps) => React.JSX.Element;
|
|
32
|
-
type OwnedByElementProps = Pick<React.ComponentProps<typeof OwnedBy>, 'hideFormat' | 'color' | 'onRender'>;
|
|
32
|
+
type OwnedByElementProps = Pick<React.ComponentProps<typeof OwnedBy>, 'hideFormat' | 'color' | 'onRender' | 'textPrefix' | 'fontSize'>;
|
|
33
33
|
export declare const OwnedByElement: (props?: OwnedByElementProps) => React.JSX.Element;
|
|
34
34
|
type OwnedByGroupElementProps = Pick<React.ComponentProps<typeof OwnedByGroup>, 'onRender'>;
|
|
35
35
|
export declare const OwnedByGroupElement: (props?: OwnedByGroupElementProps) => React.JSX.Element;
|
|
@@ -54,7 +54,7 @@ export declare const StoryPointsElement: () => React.JSX.Element;
|
|
|
54
54
|
export declare const SubscriberCountElement: () => React.JSX.Element;
|
|
55
55
|
export declare const SubTasksProgressElement: () => React.JSX.Element;
|
|
56
56
|
export declare const TargetBranchElement: () => React.JSX.Element;
|
|
57
|
-
export type TitleElementProps = Pick<React.ComponentProps<typeof Title>, 'hideTooltip' | 'maxLines' | 'target' | 'text'>;
|
|
57
|
+
export type TitleElementProps = Pick<React.ComponentProps<typeof Title>, 'hideTooltip' | 'maxLines' | 'target' | 'text' | 'theme' | 'size'>;
|
|
58
58
|
export declare const TitleElement: (props?: TitleElementProps) => React.JSX.Element;
|
|
59
59
|
export declare const ViewCountElement: () => React.JSX.Element;
|
|
60
60
|
export declare const VoteCountElement: () => React.JSX.Element;
|
|
@@ -79,4 +79,4 @@ export declare const FollowAction: (props: FollowActionProps) => React.JSX.Eleme
|
|
|
79
79
|
export type PreviewActionProps = BaseActionProps;
|
|
80
80
|
export declare const PreviewAction: (props: PreviewActionProps) => React.JSX.Element;
|
|
81
81
|
export declare const UnresolvedAction: () => React.JSX.Element;
|
|
82
|
-
export {};
|
|
82
|
+
export { CustomByAccessTypeElement, CustomByStatusElement } from './components/elements';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-card",
|
|
3
|
-
"version": "38.
|
|
3
|
+
"version": "38.14.0",
|
|
4
4
|
"description": "Smart card component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/link-client-extension": "^5.0.0",
|
|
53
53
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
54
54
|
"@atlaskit/linking-common": "^9.1.0",
|
|
55
|
-
"@atlaskit/linking-types": "^12.
|
|
55
|
+
"@atlaskit/linking-types": "^12.2.0",
|
|
56
56
|
"@atlaskit/logo": "^19.1.0",
|
|
57
57
|
"@atlaskit/lozenge": "^13.0.0",
|
|
58
58
|
"@atlaskit/menu": "^8.0.0",
|
|
@@ -184,6 +184,9 @@
|
|
|
184
184
|
"smart_links_for_plans_platform": {
|
|
185
185
|
"type": "boolean"
|
|
186
186
|
},
|
|
187
|
+
"bandicoots-smart-card-teamwork-context": {
|
|
188
|
+
"type": "boolean"
|
|
189
|
+
},
|
|
187
190
|
"platform_bandicoots-smartlink-unresolved-error-key": {
|
|
188
191
|
"type": "boolean"
|
|
189
192
|
},
|