@atlaskit/smart-card 19.1.19 → 19.1.22
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 +20 -0
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +7 -3
- package/dist/cjs/state/helpers.js +26 -4
- package/dist/cjs/utils/analytics/analytics.js +3 -2
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/CardWithUrl/component.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/index.js +19 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +6 -25
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +5 -3
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +4 -4
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +19 -2
- package/dist/cjs/view/HoverCard/components/hover-card-content.js +2 -1
- package/dist/cjs/view/HoverCard/utils.js +6 -3
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +6 -3
- package/dist/es2019/state/helpers.js +25 -3
- package/dist/es2019/utils/analytics/analytics.js +3 -2
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/CardWithUrl/component.js +5 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +48 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/index.js +16 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +6 -33
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +6 -1
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +7 -2
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +17 -1
- package/dist/es2019/view/HoverCard/components/hover-card-content.js +2 -1
- package/dist/es2019/view/HoverCard/utils.js +4 -3
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +8 -4
- package/dist/esm/state/helpers.js +19 -3
- package/dist/esm/utils/analytics/analytics.js +3 -2
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/CardWithUrl/component.js +5 -3
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +19 -3
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/index.js +19 -1
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +6 -26
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +5 -3
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +4 -4
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +15 -1
- package/dist/esm/view/HoverCard/components/hover-card-content.js +2 -1
- package/dist/esm/view/HoverCard/utils.js +4 -3
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +3 -1
- package/dist/types/state/helpers.d.ts +3 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +1 -1
- package/dist/types/utils/analytics/analytics.d.ts +1 -1
- package/dist/types/utils/analytics/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject;
|
|
3
|
+
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
@@ -10,16 +10,18 @@ import { SmartLinkSize } from '../../../../../constants';
|
|
|
10
10
|
var MAX_COUNT = 4;
|
|
11
11
|
|
|
12
12
|
var getStyles = function getStyles(size) {
|
|
13
|
+
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n "])));
|
|
14
|
+
|
|
13
15
|
switch (size) {
|
|
14
16
|
case SmartLinkSize.XLarge:
|
|
15
17
|
case SmartLinkSize.Large:
|
|
16
18
|
// Default AK small size
|
|
17
|
-
return;
|
|
19
|
+
return styles;
|
|
18
20
|
|
|
19
21
|
case SmartLinkSize.Medium:
|
|
20
22
|
case SmartLinkSize.Small:
|
|
21
23
|
default:
|
|
22
|
-
return css(
|
|
24
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n li {\n span,\n svg {\n max-height: 1.25rem;\n max-width: 1.25rem;\n }\n }\n "])), styles);
|
|
23
25
|
}
|
|
24
26
|
};
|
|
25
27
|
/**
|
|
@@ -12,9 +12,9 @@ import { IconType } from '../../../../../constants';
|
|
|
12
12
|
import { messages } from '../../../../../messages';
|
|
13
13
|
import ImageIcon from '../../common/image-icon';
|
|
14
14
|
import AtlaskitIcon from '../../common/atlaskit-icon';
|
|
15
|
-
var badgeStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n min-width: fit-content;\n"])));
|
|
16
|
-
var iconStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n ", "\n span,\n svg {\n line-height: 0;\n }\n"])), tokens.badgeIcon, getIconSizeStyles('1rem'));
|
|
17
|
-
var labelStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 0.75rem;\n line-height: 1rem;\n padding-left: 0.125rem;\n"])), tokens.badgeText);
|
|
15
|
+
var badgeStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n display: inline-flex;\n min-width: fit-content;\n"])));
|
|
16
|
+
var iconStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: 0;\n vertical-align: middle;\n ", "\n img,\n span,\n svg {\n line-height: 0;\n vertical-align: middle;\n }\n"])), tokens.badgeIcon, getIconSizeStyles('1rem'));
|
|
17
|
+
var labelStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: 0.75rem;\n line-height: 1rem;\n padding-left: 0.125rem;\n vertical-align: middle;\n"])), tokens.badgeText);
|
|
18
18
|
var messageMapper = (_messageMapper = {}, _defineProperty(_messageMapper, IconType.PriorityBlocker, messages.priority_blocker), _defineProperty(_messageMapper, IconType.PriorityCritical, messages.priority_critical), _defineProperty(_messageMapper, IconType.PriorityHigh, messages.priority_high), _defineProperty(_messageMapper, IconType.PriorityHighest, messages.priority_highest), _defineProperty(_messageMapper, IconType.PriorityLow, messages.priority_low), _defineProperty(_messageMapper, IconType.PriorityLowest, messages.priority_lowest), _defineProperty(_messageMapper, IconType.PriorityMajor, messages.priority_major), _defineProperty(_messageMapper, IconType.PriorityMedium, messages.priority_medium), _defineProperty(_messageMapper, IconType.PriorityMinor, messages.priority_minor), _defineProperty(_messageMapper, IconType.PriorityTrivial, messages.priority_trivial), _defineProperty(_messageMapper, IconType.PriorityUndefined, messages.priority_undefined), _messageMapper);
|
|
19
19
|
|
|
20
20
|
var getFormattedMessageFromIcon = function getFormattedMessageFromIcon(icon) {
|
|
@@ -76,7 +76,7 @@ var Badge = function Badge(_ref) {
|
|
|
76
76
|
return null;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
return jsx("
|
|
79
|
+
return jsx("span", {
|
|
80
80
|
css: [badgeStyles, overrideCss],
|
|
81
81
|
"data-fit-to-content": true,
|
|
82
82
|
"data-smart-element-badge": true,
|
|
@@ -6,7 +6,7 @@ var _templateObject;
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { css, jsx } from '@emotion/core';
|
|
8
8
|
import AtlaskitLozenge from '@atlaskit/lozenge';
|
|
9
|
-
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n line-height: inherit;\n"])));
|
|
9
|
+
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n line-height: inherit;\n"])));
|
|
10
10
|
/**
|
|
11
11
|
* A base element that displays a Lozenge.
|
|
12
12
|
* @internal
|
|
@@ -17,7 +17,7 @@ import ImageIcon from '../../common/image-icon';
|
|
|
17
17
|
* [object-position] Center alignment of the selected replaced element's
|
|
18
18
|
* contents within the element's box.
|
|
19
19
|
*/
|
|
20
|
-
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n aspect-ratio: 16 / 9;\n display: flex;\n width: 100%;\n height: fit-content; // Fix Safari height not respecting aspect-ratio\n\n // fallback\n @supports not (aspect-ratio: auto) {\n padding-top: 56.25%; // 16:9 ratio (9 / 16 = 0.5625)\n height: 0;\n position: relative;\n overflow: hidden;\n }\n\n > img {\n min-height: 100%;\n min-width: 100%;\n max-height: 100%;\n max-width: 100%;\n object-fit: cover;\n object-position: center center;\n\n // fallback\n @supports not (aspect-ratio: auto) {\n position: absolute;\n transform: translate(-50%, -50%);\n left: 50%;\n top: 50%;\n width: auto;\n height: auto;\n }\n }\n"])));
|
|
20
|
+
var styles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n aspect-ratio: 16 / 9;\n display: flex;\n width: 100%;\n height: fit-content; // Fix Safari height not respecting aspect-ratio\n\n // fallback\n @supports not (aspect-ratio: auto) {\n padding-top: 56.25%; // 16:9 ratio (9 / 16 = 0.5625)\n height: 0;\n position: relative;\n overflow: hidden;\n }\n\n > img,\n > span {\n min-height: 100%;\n min-width: 100%;\n max-height: 100%;\n max-width: 100%;\n object-fit: cover;\n object-position: center center;\n\n // fallback\n @supports not (aspect-ratio: auto) {\n position: absolute;\n transform: translate(-50%, -50%);\n left: 50%;\n top: 50%;\n width: auto;\n height: auto;\n }\n }\n"])));
|
|
21
21
|
/**
|
|
22
22
|
* A base element that displays a Media.
|
|
23
23
|
* @internal
|
|
@@ -67,6 +67,20 @@ export var getLinkSizeStyles = function getLinkSizeStyles(size) {
|
|
|
67
67
|
return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 0.75rem;\n font-weight: 400;\n letter-spacing: 0em;\n line-height: ", ";\n "])), getLinkLineHeight(size));
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
+
export var getMaxLineHeight = function getMaxLineHeight(size) {
|
|
71
|
+
// The maximum line height based on all elements in specific size.
|
|
72
|
+
// These heights belongs to AvatarGroup.
|
|
73
|
+
switch (size) {
|
|
74
|
+
case SmartLinkSize.XLarge:
|
|
75
|
+
case SmartLinkSize.Large:
|
|
76
|
+
return 1.75;
|
|
77
|
+
|
|
78
|
+
case SmartLinkSize.Medium:
|
|
79
|
+
case SmartLinkSize.Small:
|
|
80
|
+
default:
|
|
81
|
+
return 1.5;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
70
84
|
export var getMaxLines = function getMaxLines(value, defaultValue, max, min) {
|
|
71
85
|
if (value > max) {
|
|
72
86
|
return defaultValue;
|
|
@@ -81,7 +95,7 @@ export var getMaxLines = function getMaxLines(value, defaultValue, max, min) {
|
|
|
81
95
|
export var getTruncateStyles = function getTruncateStyles(maxLines) {
|
|
82
96
|
var lineHeight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '1rem';
|
|
83
97
|
var wordBreak = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'break-word';
|
|
84
|
-
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: -webkit-box;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: ", ";\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n // Fallback options\n max-height: calc(", " * ", ");\n "])), wordBreak, maxLines, maxLines, lineHeight);
|
|
98
|
+
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: -webkit-box;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: ", ";\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n // Fallback options\n @supports not (-webkit-line-clamp: 1) {\n max-height: calc(", " * ", ");\n }\n "])), wordBreak, maxLines, maxLines, lineHeight);
|
|
85
99
|
};
|
|
86
100
|
export var hasWhiteSpace = function hasWhiteSpace(str) {
|
|
87
101
|
return str.search(/\s/) >= 0;
|
|
@@ -90,7 +90,8 @@ var HoverCardContent = function HoverCardContent(_ref) {
|
|
|
90
90
|
actions: titleActions
|
|
91
91
|
}), /*#__PURE__*/React.createElement(MetadataBlock, {
|
|
92
92
|
primary: primary,
|
|
93
|
-
secondary: secondary
|
|
93
|
+
secondary: secondary,
|
|
94
|
+
size: SmartLinkSize.Small
|
|
94
95
|
}), body, /*#__PURE__*/React.createElement(FooterBlock, {
|
|
95
96
|
actions: footerActions
|
|
96
97
|
}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementName } from '../../constants';
|
|
1
2
|
export var HOVER_CARD_ANALYTICS_DISPLAY = 'flexible';
|
|
2
3
|
export var getSimulatedMetadata = function getSimulatedMetadata() {
|
|
3
4
|
var extensionKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -6,7 +7,7 @@ export var getSimulatedMetadata = function getSimulatedMetadata() {
|
|
|
6
7
|
case 'confluence-object-provider':
|
|
7
8
|
return {
|
|
8
9
|
metadata: {
|
|
9
|
-
primary: [
|
|
10
|
+
primary: [ElementName.AuthorGroup, ElementName.CreatedBy, ElementName.CommentCount, ElementName.ReactCount],
|
|
10
11
|
secondary: []
|
|
11
12
|
}
|
|
12
13
|
};
|
|
@@ -14,7 +15,7 @@ export var getSimulatedMetadata = function getSimulatedMetadata() {
|
|
|
14
15
|
case 'jira-object-provider':
|
|
15
16
|
return {
|
|
16
17
|
metadata: {
|
|
17
|
-
primary: [
|
|
18
|
+
primary: [ElementName.AuthorGroup, ElementName.State, ElementName.Priority],
|
|
18
19
|
secondary: []
|
|
19
20
|
}
|
|
20
21
|
};
|
|
@@ -22,7 +23,7 @@ export var getSimulatedMetadata = function getSimulatedMetadata() {
|
|
|
22
23
|
default:
|
|
23
24
|
return {
|
|
24
25
|
metadata: {
|
|
25
|
-
primary: [
|
|
26
|
+
primary: [ElementName.ModifiedOn, ElementName.CreatedBy],
|
|
26
27
|
secondary: []
|
|
27
28
|
}
|
|
28
29
|
};
|
|
@@ -3,6 +3,7 @@ import { AnalyticsHandler } from '../../utils/types';
|
|
|
3
3
|
import { CardInnerAppearance } from '../../view/Card/types';
|
|
4
4
|
import { PreviewDisplay, PreviewInvokeMethod } from '../../view/HoverCard/types';
|
|
5
5
|
import { InvokeType } from '../../model/invoke-opts';
|
|
6
|
+
import { DestinationProduct, DestinationSubproduct } from '../../utils/analytics/types';
|
|
6
7
|
/**
|
|
7
8
|
* This hook provides usage of Smart Link analytics outside of the Card component.
|
|
8
9
|
* Can be provided to Card via the analyticsEvents prop to change the analytics events.
|
|
@@ -36,6 +37,7 @@ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: Ana
|
|
|
36
37
|
* This fires an event that represents when a user clicks on a Smart Link.
|
|
37
38
|
* @param id The unique ID for this Smart Link.
|
|
38
39
|
* @param display Whether the card was an Inline, Block, Embed or Flexible UI.
|
|
40
|
+
* @param status What status the Smart Link is currently in (e.g. resolved, unresolved)
|
|
39
41
|
* @param definitionId The definitionId of the Smart Link resolver invoked.
|
|
40
42
|
* @param extensionKey The extensionKey of the Smart Link resovler invoked.
|
|
41
43
|
* @param isModifierKeyPressed Whether a modifier key was pressed when clicking the Smart Link.
|
|
@@ -43,7 +45,7 @@ export declare const useSmartLinkAnalytics: (url: string, dispatchAnalytics: Ana
|
|
|
43
45
|
* @param destinationProduct The product the Smart Link is linked to.
|
|
44
46
|
* @returns
|
|
45
47
|
*/
|
|
46
|
-
cardClickedEvent: (id: string | undefined, display: CardInnerAppearance, status: CardType, definitionId?: string | undefined, extensionKey?: string | undefined, isModifierKeyPressed?: boolean | undefined, location?: string | undefined, destinationProduct?: string | undefined) => void;
|
|
48
|
+
cardClickedEvent: (id: string | undefined, display: CardInnerAppearance, status: CardType, definitionId?: string | undefined, extensionKey?: string | undefined, isModifierKeyPressed?: boolean | undefined, location?: string | undefined, destinationProduct?: DestinationProduct | string | undefined, destinationSubproduct?: DestinationSubproduct | string | undefined) => void;
|
|
47
49
|
/**
|
|
48
50
|
* This fires an event that represents when a user clicks on a Smart Link action.
|
|
49
51
|
* Note: This also starts the UFO smart-link-action-invocation experience.
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
2
|
import { CardType, CardStore } from '@atlaskit/linking-common';
|
|
3
|
+
import { DestinationProduct, DestinationSubproduct } from '../utils/analytics/types';
|
|
3
4
|
export declare const getByDefinitionId: (definitionId: string | undefined, store: CardStore) => string[];
|
|
4
5
|
export declare const getClickUrl: (url: string, jsonLd?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string;
|
|
5
6
|
export declare const getDefinitionId: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
|
|
6
7
|
export declare const getExtensionKey: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
|
|
7
8
|
export declare const getResourceType: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => string | undefined;
|
|
9
|
+
export declare const getProduct: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => DestinationProduct | string | undefined;
|
|
10
|
+
export declare const getSubproduct: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => DestinationSubproduct | string | undefined;
|
|
8
11
|
export declare const getServices: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => JsonLd.Primitives.AuthService[];
|
|
9
12
|
export declare const hasResolved: (details?: JsonLd.Response<JsonLd.Data.BaseData> | undefined) => boolean | undefined;
|
|
10
13
|
export declare const isAccessible: ({ meta: { access } }: JsonLd.Response) => boolean;
|
|
@@ -12,7 +12,7 @@ export declare function useSmartLink(id: string, url: string, dispatchAnalytics:
|
|
|
12
12
|
ui: {
|
|
13
13
|
authEvent: (display: import("../../view/Card/types").CardInnerAppearance, definitionId?: string | undefined, extensionKey?: string | undefined) => void;
|
|
14
14
|
authAlternateAccountEvent: (display: import("../../view/Card/types").CardInnerAppearance, definitionId?: string | undefined, extensionKey?: string | undefined) => void;
|
|
15
|
-
cardClickedEvent: (id: string | undefined, display: import("../../view/Card/types").CardInnerAppearance, status: import("@atlaskit/linking-common/types").CardType, definitionId?: string | undefined, extensionKey?: string | undefined, isModifierKeyPressed?: boolean | undefined, location?: string | undefined, destinationProduct?: string | undefined) => void;
|
|
15
|
+
cardClickedEvent: (id: string | undefined, display: import("../../view/Card/types").CardInnerAppearance, status: import("@atlaskit/linking-common/types").CardType, definitionId?: string | undefined, extensionKey?: string | undefined, isModifierKeyPressed?: boolean | undefined, location?: string | undefined, destinationProduct?: string | undefined, destinationSubproduct?: string | undefined) => void;
|
|
16
16
|
actionClickedEvent: (id: string | undefined, extensionKey: string | undefined, actionType: string, display: import("../../view/Card/types").CardInnerAppearance, invokeType: import("../../model/invoke-opts").InvokeType) => void;
|
|
17
17
|
hoverCardOpenLinkClickedEvent: (previewDisplay: import("../../view/HoverCard/types").PreviewDisplay, definitionId?: string | undefined, extensionKey?: string | undefined, previewInvokeMethod?: import("../../view/HoverCard/types").PreviewInvokeMethod | undefined) => void;
|
|
18
18
|
closedAuthEvent: (display: import("../../view/Card/types").CardInnerAppearance, definitionId?: string | undefined, extensionKey?: string | undefined) => void;
|
|
@@ -23,7 +23,7 @@ export declare const connectFailedEvent: (definitionId?: string | undefined, ext
|
|
|
23
23
|
export declare const trackAppAccountConnected: (definitionId?: string | undefined, extensionKey?: string | undefined) => AnalyticsPayload;
|
|
24
24
|
export declare const uiAuthEvent: (display: CardInnerAppearance, definitionId?: string | undefined, extensionKey?: string | undefined) => AnalyticsPayload;
|
|
25
25
|
export declare const uiAuthAlternateAccountEvent: (display: CardInnerAppearance, definitionId?: string | undefined, extensionKey?: string | undefined) => AnalyticsPayload;
|
|
26
|
-
export declare const uiCardClickedEvent: (id: string, display: CardInnerAppearance, status: CardType, definitionId?: string | undefined, extensionKey?: string | undefined, isModifierKeyPressed?: boolean | undefined, location?: string | undefined, destinationProduct?: string | undefined) => AnalyticsPayload;
|
|
26
|
+
export declare const uiCardClickedEvent: (id: string, display: CardInnerAppearance, status: CardType, definitionId?: string | undefined, extensionKey?: string | undefined, isModifierKeyPressed?: boolean | undefined, location?: string | undefined, destinationProduct?: string | undefined, destinationSubproduct?: string | undefined) => AnalyticsPayload;
|
|
27
27
|
export declare const uiActionClickedEvent: (id: string, actionType: string, extensionKey?: string | undefined, display?: CardInnerAppearance | undefined) => AnalyticsPayload;
|
|
28
28
|
export declare const uiClosedAuthEvent: (display: CardInnerAppearance, definitionId?: string | undefined, extensionKey?: string | undefined) => AnalyticsPayload;
|
|
29
29
|
export declare const screenAuthPopupEvent: (definitionId?: string | undefined, extensionKey?: string | undefined) => AnalyticsPayload;
|
|
@@ -7,6 +7,7 @@ export declare const getIconSizeStyles: (width: string) => SerializedStyles;
|
|
|
7
7
|
export declare const getIconWidth: (size?: SmartLinkSize | undefined) => string;
|
|
8
8
|
export declare const getLinkLineHeight: (size: SmartLinkSize) => string;
|
|
9
9
|
export declare const getLinkSizeStyles: (size: SmartLinkSize) => SerializedStyles;
|
|
10
|
+
export declare const getMaxLineHeight: (size: SmartLinkSize) => 1.5 | 1.75;
|
|
10
11
|
export declare const getMaxLines: (value: number, defaultValue: number, max: number, min: number) => number;
|
|
11
12
|
export declare const getTruncateStyles: (maxLines: number, lineHeight?: string, wordBreak?: 'break-word' | 'break-all') => SerializedStyles;
|
|
12
13
|
export declare const hasWhiteSpace: (str: string) => boolean;
|