@atlaskit/smart-card 19.1.16 → 19.1.19
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 +26 -0
- package/dist/cjs/constants.js +2 -1
- package/dist/cjs/extractors/block/index.js +2 -1
- package/dist/cjs/extractors/common/actions/extractPreviewAction.js +2 -1
- package/dist/cjs/extractors/flexible/index.js +3 -0
- package/dist/cjs/extractors/flexible/latest-commit/index.js +21 -0
- package/dist/cjs/i18n/cs.js +29 -115
- package/dist/cjs/i18n/da.js +31 -116
- package/dist/cjs/i18n/de.js +30 -116
- package/dist/cjs/i18n/en.js +29 -115
- package/dist/cjs/i18n/en_GB.js +29 -115
- package/dist/cjs/i18n/en_ZZ.js +10 -129
- package/dist/cjs/i18n/es.js +29 -115
- package/dist/cjs/i18n/fi.js +29 -115
- package/dist/cjs/i18n/fr.js +30 -116
- package/dist/cjs/i18n/hu.js +30 -116
- package/dist/cjs/i18n/it.js +29 -115
- package/dist/cjs/i18n/ja.js +29 -115
- package/dist/cjs/i18n/ko.js +29 -115
- package/dist/cjs/i18n/nb.js +30 -116
- package/dist/cjs/i18n/nl.js +29 -115
- package/dist/cjs/i18n/pl.js +30 -116
- package/dist/cjs/i18n/pt_BR.js +29 -115
- package/dist/cjs/i18n/ru.js +30 -116
- package/dist/cjs/i18n/sv.js +29 -115
- package/dist/cjs/i18n/th.js +29 -115
- package/dist/cjs/i18n/tr.js +30 -116
- package/dist/cjs/i18n/uk.js +29 -115
- package/dist/cjs/i18n/vi.js +29 -115
- package/dist/cjs/i18n/zh.js +30 -116
- package/dist/cjs/i18n/zh_TW.js +29 -115
- package/dist/cjs/state/analytics/useSmartLinkAnalytics.js +12 -12
- package/dist/cjs/state/hooks-external/useSmartLinkActions.js +2 -1
- package/dist/cjs/utils/analytics/analytics.js +8 -4
- package/dist/cjs/version.json +1 -1
- package/dist/cjs/view/CardWithUrl/component-lazy/LazyFallback.js +4 -2
- package/dist/cjs/view/CardWithUrl/loader.js +4 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/index.js +8 -2
- package/dist/cjs/view/FlexibleCard/components/elements/utils.js +6 -0
- package/dist/cjs/view/HoverCard/components/hover-card-content.js +125 -0
- package/dist/cjs/view/HoverCard/index.js +22 -89
- package/dist/cjs/view/HoverCard/utils.js +3 -1
- package/dist/cjs/view/LinkView/index.js +1 -1
- package/dist/es2019/constants.js +2 -1
- package/dist/es2019/extractors/block/index.js +2 -1
- package/dist/es2019/extractors/common/actions/extractPreviewAction.js +2 -2
- package/dist/es2019/extractors/flexible/index.js +2 -0
- package/dist/es2019/extractors/flexible/latest-commit/index.js +12 -0
- package/dist/es2019/i18n/cs.js +29 -115
- package/dist/es2019/i18n/da.js +31 -116
- package/dist/es2019/i18n/de.js +30 -116
- package/dist/es2019/i18n/en.js +29 -115
- package/dist/es2019/i18n/en_GB.js +29 -115
- package/dist/es2019/i18n/en_ZZ.js +10 -129
- package/dist/es2019/i18n/es.js +29 -115
- package/dist/es2019/i18n/fi.js +29 -115
- package/dist/es2019/i18n/fr.js +30 -116
- package/dist/es2019/i18n/hu.js +30 -116
- package/dist/es2019/i18n/it.js +29 -115
- package/dist/es2019/i18n/ja.js +29 -115
- package/dist/es2019/i18n/ko.js +29 -115
- package/dist/es2019/i18n/nb.js +30 -116
- package/dist/es2019/i18n/nl.js +29 -115
- package/dist/es2019/i18n/pl.js +30 -116
- package/dist/es2019/i18n/pt_BR.js +29 -115
- package/dist/es2019/i18n/ru.js +30 -116
- package/dist/es2019/i18n/sv.js +29 -115
- package/dist/es2019/i18n/th.js +29 -115
- package/dist/es2019/i18n/tr.js +30 -116
- package/dist/es2019/i18n/uk.js +29 -115
- package/dist/es2019/i18n/vi.js +29 -115
- package/dist/es2019/i18n/zh.js +30 -116
- package/dist/es2019/i18n/zh_TW.js +29 -115
- package/dist/es2019/state/analytics/useSmartLinkAnalytics.js +4 -4
- package/dist/es2019/state/hooks-external/useSmartLinkActions.js +2 -1
- package/dist/es2019/utils/analytics/analytics.js +8 -4
- package/dist/es2019/version.json +1 -1
- package/dist/es2019/view/CardWithUrl/component-lazy/LazyFallback.js +13 -9
- package/dist/es2019/view/CardWithUrl/loader.js +4 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/es2019/view/FlexibleCard/components/elements/utils.js +7 -0
- package/dist/es2019/view/HoverCard/components/hover-card-content.js +85 -0
- package/dist/es2019/view/HoverCard/index.js +23 -78
- package/dist/es2019/view/HoverCard/utils.js +1 -0
- package/dist/es2019/view/LinkView/index.js +1 -1
- package/dist/esm/constants.js +2 -1
- package/dist/esm/extractors/block/index.js +2 -1
- package/dist/esm/extractors/common/actions/extractPreviewAction.js +2 -1
- package/dist/esm/extractors/flexible/index.js +2 -0
- package/dist/esm/extractors/flexible/latest-commit/index.js +12 -0
- package/dist/esm/i18n/cs.js +29 -115
- package/dist/esm/i18n/da.js +31 -116
- package/dist/esm/i18n/de.js +30 -116
- package/dist/esm/i18n/en.js +29 -115
- package/dist/esm/i18n/en_GB.js +29 -115
- package/dist/esm/i18n/en_ZZ.js +10 -129
- package/dist/esm/i18n/es.js +29 -115
- package/dist/esm/i18n/fi.js +29 -115
- package/dist/esm/i18n/fr.js +30 -116
- package/dist/esm/i18n/hu.js +30 -116
- package/dist/esm/i18n/it.js +29 -115
- package/dist/esm/i18n/ja.js +29 -115
- package/dist/esm/i18n/ko.js +29 -115
- package/dist/esm/i18n/nb.js +30 -116
- package/dist/esm/i18n/nl.js +29 -115
- package/dist/esm/i18n/pl.js +30 -116
- package/dist/esm/i18n/pt_BR.js +29 -115
- package/dist/esm/i18n/ru.js +30 -116
- package/dist/esm/i18n/sv.js +29 -115
- package/dist/esm/i18n/th.js +29 -115
- package/dist/esm/i18n/tr.js +30 -116
- package/dist/esm/i18n/uk.js +29 -115
- package/dist/esm/i18n/vi.js +29 -115
- package/dist/esm/i18n/zh.js +30 -116
- package/dist/esm/i18n/zh_TW.js +29 -115
- package/dist/esm/state/analytics/useSmartLinkAnalytics.js +12 -12
- package/dist/esm/state/hooks-external/useSmartLinkActions.js +2 -1
- package/dist/esm/utils/analytics/analytics.js +8 -4
- package/dist/esm/version.json +1 -1
- package/dist/esm/view/CardWithUrl/component-lazy/LazyFallback.js +4 -2
- package/dist/esm/view/CardWithUrl/loader.js +4 -2
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/index.js +5 -0
- package/dist/esm/view/FlexibleCard/components/elements/utils.js +6 -0
- package/dist/esm/view/HoverCard/components/hover-card-content.js +99 -0
- package/dist/esm/view/HoverCard/index.js +25 -87
- package/dist/esm/view/HoverCard/utils.js +1 -0
- package/dist/esm/view/LinkView/index.js +1 -1
- package/dist/types/constants.d.ts +3 -2
- package/dist/types/extractors/block/types.d.ts +2 -0
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +91 -0
- package/dist/types/extractors/common/actions/extractPreviewAction.d.ts +2 -1
- package/dist/types/extractors/flexible/latest-commit/index.d.ts +2 -0
- package/dist/types/i18n/cs.d.ts +28 -114
- package/dist/types/i18n/da.d.ts +28 -113
- package/dist/types/i18n/de.d.ts +28 -114
- package/dist/types/i18n/en.d.ts +28 -114
- package/dist/types/i18n/en_GB.d.ts +28 -114
- package/dist/types/i18n/en_ZZ.d.ts +9 -128
- package/dist/types/i18n/es.d.ts +28 -114
- package/dist/types/i18n/fi.d.ts +28 -114
- package/dist/types/i18n/fr.d.ts +28 -114
- package/dist/types/i18n/hu.d.ts +28 -114
- package/dist/types/i18n/it.d.ts +28 -114
- package/dist/types/i18n/ja.d.ts +28 -114
- package/dist/types/i18n/ko.d.ts +28 -114
- package/dist/types/i18n/nb.d.ts +28 -114
- package/dist/types/i18n/nl.d.ts +28 -114
- package/dist/types/i18n/pl.d.ts +28 -114
- package/dist/types/i18n/pt_BR.d.ts +28 -114
- package/dist/types/i18n/ru.d.ts +28 -114
- package/dist/types/i18n/sv.d.ts +28 -114
- package/dist/types/i18n/th.d.ts +28 -114
- package/dist/types/i18n/tr.d.ts +28 -114
- package/dist/types/i18n/uk.d.ts +28 -114
- package/dist/types/i18n/vi.d.ts +28 -114
- package/dist/types/i18n/zh.d.ts +28 -114
- package/dist/types/i18n/zh_TW.d.ts +28 -114
- package/dist/types/state/actions/index.d.ts +2 -1
- package/dist/types/state/analytics/useSmartLinkAnalytics.d.ts +2 -2
- package/dist/types/state/flexible-ui-context/types.d.ts +4 -0
- package/dist/types/state/hooks/useSmartLink.d.ts +3 -3
- package/dist/types/state/hooks-external/useSmartLinkActions.d.ts +2 -2
- package/dist/types/utils/analytics/analytics.d.ts +4 -4
- package/dist/types/view/Card/index.d.ts +1 -1
- package/dist/types/view/Card/types.d.ts +1 -0
- package/dist/types/view/CardWithUrl/types.d.ts +1 -0
- package/dist/types/view/FlexibleCard/components/blocks/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +4 -0
- package/dist/types/view/HoverCard/components/hover-card-content.d.ts +4 -0
- package/dist/types/view/HoverCard/types.d.ts +12 -0
- package/dist/types/view/HoverCard/utils.d.ts +1 -0
- package/dist/types/view/LinkView/index.d.ts +4 -1
- package/package.json +3 -3
|
@@ -3,22 +3,17 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { jsx } from '@emotion/core';
|
|
6
|
-
import React, { useCallback, useRef
|
|
7
|
-
import { TitleBlock, SnippetBlock, FooterBlock, MetadataBlock, PreviewBlock } from '../FlexibleCard/components/blocks';
|
|
8
|
-
import { Card } from '../Card';
|
|
6
|
+
import React, { useCallback, useRef } from 'react';
|
|
9
7
|
import Popup from '@atlaskit/popup';
|
|
10
|
-
import { SmartLinkSize, ActionName, SmartLinkTheme } from '../../constants';
|
|
11
8
|
import { useSmartLinkActions } from '../../state/hooks-external/useSmartLinkActions';
|
|
12
9
|
import { HoverCardContainer } from './styled';
|
|
13
|
-
import
|
|
14
|
-
import { withAnalyticsEvents, withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
10
|
+
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
15
11
|
import { fireSmartLinkEvent } from '../../utils/analytics';
|
|
16
12
|
import { useSmartCardState as useLinkState } from '../../state/store';
|
|
17
13
|
import { useSmartLinkAnalytics } from '../../state/analytics';
|
|
18
|
-
import {
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import extractPreview from '../../extractors/flexible/extract-preview';
|
|
14
|
+
import { useSmartLinkRenderers } from '../../state/renderers';
|
|
15
|
+
import HoverCardContent from './components/hover-card-content';
|
|
16
|
+
import { HOVER_CARD_ANALYTICS_DISPLAY } from './utils';
|
|
22
17
|
export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
23
18
|
var children = _ref.children,
|
|
24
19
|
id = _ref.id,
|
|
@@ -37,14 +32,9 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
37
32
|
var fadeOutTimeoutId = useRef();
|
|
38
33
|
var fadeInTimeoutId = useRef();
|
|
39
34
|
var cardOpenTime = useRef();
|
|
35
|
+
var renderers = useSmartLinkRenderers();
|
|
40
36
|
var linkState = useLinkState(url);
|
|
41
37
|
var analytics = useSmartLinkAnalytics(url, analyticsHandler, id);
|
|
42
|
-
var extensionKey = useMemo(function () {
|
|
43
|
-
return getExtensionKey(linkState.details);
|
|
44
|
-
}, [linkState]);
|
|
45
|
-
var definitionId = useMemo(function () {
|
|
46
|
-
return getDefinitionId(linkState.details);
|
|
47
|
-
}, [linkState]);
|
|
48
38
|
var initHideCard = useCallback(function () {
|
|
49
39
|
if (fadeInTimeoutId.current) {
|
|
50
40
|
clearTimeout(fadeInTimeoutId.current);
|
|
@@ -54,12 +44,12 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
54
44
|
//Check its previously open to avoid firing events when moving between the child and hover card components
|
|
55
45
|
if (isOpen === true && cardOpenTime.current) {
|
|
56
46
|
var hoverTime = Date.now() - cardOpenTime.current;
|
|
57
|
-
analytics.ui.hoverCardDismissedEvent('card', hoverTime,
|
|
47
|
+
analytics.ui.hoverCardDismissedEvent('card', hoverTime, 'mouse_hover');
|
|
58
48
|
}
|
|
59
49
|
|
|
60
50
|
setIsOpen(false);
|
|
61
51
|
}, delay);
|
|
62
|
-
}, [delay, isOpen,
|
|
52
|
+
}, [delay, isOpen, analytics.ui]);
|
|
63
53
|
var initShowCard = useCallback(function () {
|
|
64
54
|
if (fadeOutTimeoutId.current) {
|
|
65
55
|
clearTimeout(fadeOutTimeoutId.current);
|
|
@@ -69,78 +59,17 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
69
59
|
//Check if its previously closed to avoid firing events when moving between the child and hover card components
|
|
70
60
|
if (isOpen === false) {
|
|
71
61
|
cardOpenTime.current = Date.now();
|
|
72
|
-
analytics.ui.hoverCardViewedEvent('card',
|
|
62
|
+
analytics.ui.hoverCardViewedEvent('card', 'mouse_hover');
|
|
73
63
|
}
|
|
74
64
|
|
|
75
65
|
setIsOpen(true);
|
|
76
66
|
}, delay);
|
|
77
|
-
}, [delay, isOpen,
|
|
67
|
+
}, [delay, isOpen, analytics.ui]);
|
|
78
68
|
var linkActions = useSmartLinkActions({
|
|
79
69
|
url: url,
|
|
80
|
-
appearance:
|
|
70
|
+
appearance: HOVER_CARD_ANALYTICS_DISPLAY,
|
|
81
71
|
analyticsHandler: analyticsHandler
|
|
82
72
|
});
|
|
83
|
-
var smartlinkActions = useMemo(function () {
|
|
84
|
-
return linkActions.map(function (action) {
|
|
85
|
-
return {
|
|
86
|
-
content: action.text,
|
|
87
|
-
name: ActionName.CustomAction,
|
|
88
|
-
onClick: function onClick() {
|
|
89
|
-
return action.invoke();
|
|
90
|
-
},
|
|
91
|
-
testId: action.id
|
|
92
|
-
};
|
|
93
|
-
});
|
|
94
|
-
}, [linkActions]);
|
|
95
|
-
var openAction = useMemo(function () {
|
|
96
|
-
return {
|
|
97
|
-
name: ActionName.CustomAction,
|
|
98
|
-
icon: jsx(ShortcutIcon, {
|
|
99
|
-
label: "open in new tab",
|
|
100
|
-
size: "medium"
|
|
101
|
-
}),
|
|
102
|
-
iconPosition: 'before',
|
|
103
|
-
onClick: function onClick() {
|
|
104
|
-
window.open(url, '_blank');
|
|
105
|
-
analytics.ui.hoverCardOpenLinkClickedEvent('card', definitionId, extensionKey);
|
|
106
|
-
},
|
|
107
|
-
testId: 'hover-card-open-button'
|
|
108
|
-
};
|
|
109
|
-
}, [url, definitionId, extensionKey, analytics]);
|
|
110
|
-
|
|
111
|
-
var CardComponent = function CardComponent(_ref2) {
|
|
112
|
-
var _linkState$details;
|
|
113
|
-
|
|
114
|
-
var update = _ref2.update;
|
|
115
|
-
//TODO: EDM-3224 deleted simulated and use real JsonLd
|
|
116
|
-
var metadataElements = extractMetadata(getSimulatedMetadata(extensionKey));
|
|
117
|
-
var linkData = (_linkState$details = linkState.details) === null || _linkState$details === void 0 ? void 0 : _linkState$details.data;
|
|
118
|
-
var content = extractPreview(linkData) ? jsx(PreviewBlock, null) : jsx(SnippetBlock, null);
|
|
119
|
-
return jsx("div", {
|
|
120
|
-
onMouseEnter: initShowCard,
|
|
121
|
-
onMouseLeave: initHideCard,
|
|
122
|
-
css: HoverCardContainer
|
|
123
|
-
}, jsx(Card, {
|
|
124
|
-
id: id,
|
|
125
|
-
appearance: "block",
|
|
126
|
-
url: url,
|
|
127
|
-
ui: {
|
|
128
|
-
hideElevation: true,
|
|
129
|
-
size: SmartLinkSize.Large,
|
|
130
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
131
|
-
theme: SmartLinkTheme.Black
|
|
132
|
-
},
|
|
133
|
-
onResolve: update
|
|
134
|
-
}, jsx(TitleBlock, {
|
|
135
|
-
actions: [openAction]
|
|
136
|
-
}), jsx(MetadataBlock, {
|
|
137
|
-
primary: metadataElements.primary,
|
|
138
|
-
secondary: metadataElements.secondary
|
|
139
|
-
}), content, jsx(FooterBlock, {
|
|
140
|
-
actions: smartlinkActions
|
|
141
|
-
})));
|
|
142
|
-
};
|
|
143
|
-
|
|
144
73
|
var onClose = useCallback(function () {
|
|
145
74
|
return setIsOpen(false);
|
|
146
75
|
}, []);
|
|
@@ -149,11 +78,20 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
|
|
|
149
78
|
isOpen: isOpen,
|
|
150
79
|
onClose: onClose,
|
|
151
80
|
placement: "bottom-start",
|
|
152
|
-
content: function content(
|
|
153
|
-
var update =
|
|
154
|
-
return jsx(
|
|
155
|
-
|
|
156
|
-
|
|
81
|
+
content: function content(_ref2) {
|
|
82
|
+
var update = _ref2.update;
|
|
83
|
+
return jsx("div", {
|
|
84
|
+
onMouseEnter: initShowCard,
|
|
85
|
+
onMouseLeave: initHideCard,
|
|
86
|
+
css: HoverCardContainer
|
|
87
|
+
}, jsx(HoverCardContent, {
|
|
88
|
+
analytics: analytics,
|
|
89
|
+
cardActions: linkActions,
|
|
90
|
+
cardState: linkState,
|
|
91
|
+
onResolve: update,
|
|
92
|
+
renderers: renderers,
|
|
93
|
+
url: url
|
|
94
|
+
}));
|
|
157
95
|
},
|
|
158
96
|
trigger: function trigger(triggerProps) {
|
|
159
97
|
return jsx("span", _extends({}, triggerProps, {
|
|
@@ -27,7 +27,7 @@ export var CardLinkView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
27
27
|
value: function render() {
|
|
28
28
|
return /*#__PURE__*/React.createElement(Frame, _extends({
|
|
29
29
|
withoutBackground: true
|
|
30
|
-
}, this.props), this.props.link);
|
|
30
|
+
}, this.props), this.props.placeholder || this.props.link);
|
|
31
31
|
}
|
|
32
32
|
}]);
|
|
33
33
|
|
|
@@ -66,7 +66,7 @@ export declare enum SmartLinkWidth {
|
|
|
66
66
|
/**
|
|
67
67
|
* Flexible UI element name - each reflecting the link data its represented.
|
|
68
68
|
* When adding an element...
|
|
69
|
-
* 1) Create base element if it doesn't already
|
|
69
|
+
* 1) Create base element if it doesn't already exist.
|
|
70
70
|
* Base element are inside src/view/FlexibleCard/components/elements.
|
|
71
71
|
* E.g. Badge,DateTime, Icon, Lozenge, etc.
|
|
72
72
|
* 2) Update FlexibleUiContext with the new prop for data representing
|
|
@@ -98,7 +98,8 @@ export declare enum ElementName {
|
|
|
98
98
|
SubscriberCount = "SubscriberCount",
|
|
99
99
|
Title = "Title",
|
|
100
100
|
ViewCount = "ViewCount",
|
|
101
|
-
VoteCount = "VoteCount"
|
|
101
|
+
VoteCount = "VoteCount",
|
|
102
|
+
LatestCommit = "LatestCommit"
|
|
102
103
|
}
|
|
103
104
|
/**
|
|
104
105
|
* Flexible UI action (button)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { InvokeHandler } from '../../model/invoke-handler';
|
|
2
2
|
import { AnalyticsHandler } from '../../utils/types';
|
|
3
|
+
import { CardInnerAppearance } from '../../view/Card/types';
|
|
3
4
|
export interface ExtractBlockOpts {
|
|
4
5
|
handleInvoke: InvokeHandler;
|
|
5
6
|
handleAnalytics: AnalyticsHandler;
|
|
6
7
|
extensionKey?: string;
|
|
8
|
+
source?: CardInnerAppearance;
|
|
7
9
|
testId?: string;
|
|
8
10
|
}
|
|
@@ -134,3 +134,94 @@ export declare const TEST_DOCUMENT_WITH_PREVIEW: {
|
|
|
134
134
|
summaryMap?: Record<string, string> | undefined;
|
|
135
135
|
updated?: string | undefined;
|
|
136
136
|
};
|
|
137
|
+
export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: {
|
|
138
|
+
'atlassian:latestCommit': {
|
|
139
|
+
'@type': string;
|
|
140
|
+
name: string;
|
|
141
|
+
};
|
|
142
|
+
'@context': JsonLd.Primitives.Context;
|
|
143
|
+
'@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
|
|
144
|
+
'schema:potentialAction'?: import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | (import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction)[] | undefined;
|
|
145
|
+
'atlassian:downloadUrl'?: string | undefined;
|
|
146
|
+
'atlassian:visitUrl'?: string | undefined;
|
|
147
|
+
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
148
|
+
'@id'?: string | undefined;
|
|
149
|
+
attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
150
|
+
attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
|
|
151
|
+
actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
152
|
+
}> | undefined;
|
|
153
|
+
audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
154
|
+
bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
155
|
+
bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
156
|
+
cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
157
|
+
context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
158
|
+
generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
159
|
+
icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
160
|
+
image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
161
|
+
inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
162
|
+
location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
163
|
+
oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
164
|
+
anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
165
|
+
closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
166
|
+
preview?: string | ((JsonLd.Primitives.Object<any> | JsonLd.Primitives.LinkModel) & JsonLd.Primitives.PreviewExtension) | undefined;
|
|
167
|
+
replies?: JsonLd.Primitives.Collection<any> | undefined;
|
|
168
|
+
tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
169
|
+
to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
170
|
+
url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
|
|
171
|
+
content?: string | undefined;
|
|
172
|
+
contentMap?: Record<string, string> | undefined;
|
|
173
|
+
name?: string | undefined;
|
|
174
|
+
nameMap?: Record<string, string> | undefined;
|
|
175
|
+
duration?: string | undefined;
|
|
176
|
+
mediaType?: string | undefined;
|
|
177
|
+
endTime?: string | undefined;
|
|
178
|
+
published?: string | undefined;
|
|
179
|
+
startTime?: string | undefined;
|
|
180
|
+
summary?: string | undefined;
|
|
181
|
+
summaryMap?: Record<string, string> | undefined;
|
|
182
|
+
updated?: string | undefined;
|
|
183
|
+
};
|
|
184
|
+
export declare const TEST_DATA_WITH_LATEST_COMMIT_TEXT: {
|
|
185
|
+
'atlassian:latestCommit': string;
|
|
186
|
+
'@context': JsonLd.Primitives.Context;
|
|
187
|
+
'@type': JsonLd.Primitives.Property<JsonLd.Primitives.ObjectType>;
|
|
188
|
+
'schema:potentialAction'?: import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction | (import("schema-dts").DeleteAction | import("schema-dts").ViewAction | import("schema-dts").DownloadAction | import("schema-dts").WatchAction | import("schema-dts").AssignAction | import("schema-dts").CommentAction | import("schema-dts").ReplyAction | import("schema-dts").ShareAction | import("schema-dts").SubscribeAction)[] | undefined;
|
|
189
|
+
'atlassian:downloadUrl'?: string | undefined;
|
|
190
|
+
'atlassian:visitUrl'?: string | undefined;
|
|
191
|
+
'atlassian:titlePrefix'?: JsonLd.Data.TitlePrefix | undefined;
|
|
192
|
+
'@id'?: string | undefined;
|
|
193
|
+
attachment?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
194
|
+
attributedTo?: JsonLd.Primitives.Property<(JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link) & {
|
|
195
|
+
actor?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
196
|
+
}> | undefined;
|
|
197
|
+
audience?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
198
|
+
bcc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
199
|
+
bto?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
200
|
+
cc?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
201
|
+
context?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
202
|
+
generator?: JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
203
|
+
icon?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
204
|
+
image?: JsonLd.Primitives.Link | JsonLd.Primitives.Image | undefined;
|
|
205
|
+
inReplyTo?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
206
|
+
location?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
207
|
+
oneOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
208
|
+
anyOf?: (JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link)[] | undefined;
|
|
209
|
+
closed?: boolean | JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link | undefined;
|
|
210
|
+
preview?: string | ((JsonLd.Primitives.Object<any> | JsonLd.Primitives.LinkModel) & JsonLd.Primitives.PreviewExtension) | undefined;
|
|
211
|
+
replies?: JsonLd.Primitives.Collection<any> | undefined;
|
|
212
|
+
tag?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
213
|
+
to?: JsonLd.Primitives.Property<JsonLd.Primitives.Object<any> | JsonLd.Primitives.Link> | undefined;
|
|
214
|
+
url?: JsonLd.Primitives.Property<JsonLd.Primitives.Link> | undefined;
|
|
215
|
+
content?: string | undefined;
|
|
216
|
+
contentMap?: Record<string, string> | undefined;
|
|
217
|
+
name?: string | undefined;
|
|
218
|
+
nameMap?: Record<string, string> | undefined;
|
|
219
|
+
duration?: string | undefined;
|
|
220
|
+
mediaType?: string | undefined;
|
|
221
|
+
endTime?: string | undefined;
|
|
222
|
+
published?: string | undefined;
|
|
223
|
+
startTime?: string | undefined;
|
|
224
|
+
summary?: string | undefined;
|
|
225
|
+
summaryMap?: Record<string, string> | undefined;
|
|
226
|
+
updated?: string | undefined;
|
|
227
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JsonLd } from 'json-ld-types';
|
|
2
2
|
import { InvokeHandler } from '../../../model/invoke-handler';
|
|
3
|
+
import { CardInnerAppearance } from '../../../view/Card/types';
|
|
3
4
|
import { AnalyticsHandler } from '../../../utils/types';
|
|
4
5
|
import { BlockCardResolvedViewProps } from '../../../view/BlockCard';
|
|
5
|
-
export declare const extractPreviewAction: (extensionKey: string | undefined, viewProps: BlockCardResolvedViewProps, jsonLd: JsonLd.Data.BaseData, handleInvoke: InvokeHandler, handleAnalytics: AnalyticsHandler, testId?: string | undefined, platform?: JsonLd.Primitives.Platforms | undefined) => import("../../../view/BlockCard/components/Action").ActionProps | undefined;
|
|
6
|
+
export declare const extractPreviewAction: (extensionKey: string | undefined, viewProps: BlockCardResolvedViewProps, jsonLd: JsonLd.Data.BaseData, handleInvoke: InvokeHandler, handleAnalytics: AnalyticsHandler, testId?: string | undefined, platform?: JsonLd.Primitives.Platforms | undefined, source?: CardInnerAppearance | undefined) => import("../../../view/BlockCard/components/Action").ActionProps | undefined;
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -1,152 +1,66 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
'fabric.linking.cannot_connect': string;
|
|
3
|
-
'fabric.linking.cannot_find_link': string;
|
|
4
|
-
'fabric.linking.join_to_view': string;
|
|
5
|
-
'fabric.linking.create_on': string;
|
|
6
|
-
'fabric.linking.created_by': string;
|
|
7
|
-
'fabric.linking.delete': string;
|
|
8
|
-
'fabric.linking.edit': string;
|
|
9
|
-
'fabric.linking.forbidden_access': string;
|
|
10
|
-
'fabric.linking.restricted_link': string;
|
|
11
|
-
'fabric.linking.modified_on': string;
|
|
12
|
-
'fabric.linking.pending_request': string;
|
|
13
|
-
'fabric.linking.priority_blocker': string;
|
|
14
|
-
'fabric.linking.priority_critical': string;
|
|
15
|
-
'fabric.linking.priority_high': string;
|
|
16
|
-
'fabric.linking.priority_highest': string;
|
|
17
|
-
'fabric.linking.priority_low': string;
|
|
18
|
-
'fabric.linking.priority_lowest': string;
|
|
19
|
-
'fabric.linking.priority_major': string;
|
|
20
|
-
'fabric.linking.priority_medium': string;
|
|
21
|
-
'fabric.linking.priority_minor': string;
|
|
22
|
-
'fabric.linking.priority_trivial': string;
|
|
23
|
-
'fabric.linking.priority_undefined': string;
|
|
24
|
-
'fabric.linking.request_access_to_view': string;
|
|
25
|
-
'fabric.linking.request_denied': string;
|
|
26
|
-
'fabric.linking.updated_by': string;
|
|
27
|
-
'fabric.linking.accounts': string;
|
|
28
2
|
'fabric.linking.actions': string;
|
|
29
3
|
'fabric.linking.add_account': string;
|
|
30
|
-
'fabric.linking.annotate': string;
|
|
31
|
-
'fabric.linking.annotate.confirmation.close.anyway': string;
|
|
32
|
-
'fabric.linking.annotate.confirmation.content': string;
|
|
33
|
-
'fabric.linking.annotate.confirmation.heading': string;
|
|
34
|
-
'fabric.linking.annotate.tool.arrow': string;
|
|
35
|
-
'fabric.linking.annotate.tool.blur': string;
|
|
36
|
-
'fabric.linking.annotate.tool.brush': string;
|
|
37
|
-
'fabric.linking.annotate.tool.color': string;
|
|
38
|
-
'fabric.linking.annotate.tool.line.thickness': string;
|
|
39
|
-
'fabric.linking.annotate.tool.shape': string;
|
|
40
|
-
'fabric.linking.annotate.tool.text': string;
|
|
41
|
-
'fabric.linking.archive': string;
|
|
42
|
-
'fabric.linking.audio': string;
|
|
43
4
|
'fabric.linking.cancel': string;
|
|
44
|
-
'fabric.linking.
|
|
45
|
-
'fabric.linking.
|
|
46
|
-
'fabric.linking.cant_retrieve_gifs': string;
|
|
47
|
-
'fabric.linking.change_view': string;
|
|
48
|
-
'fabric.linking.check_your_network': string;
|
|
5
|
+
'fabric.linking.cannot_connect': string;
|
|
6
|
+
'fabric.linking.cannot_find_link': string;
|
|
49
7
|
'fabric.linking.click_to_join': string;
|
|
50
8
|
'fabric.linking.click_to_join_description': string;
|
|
51
9
|
'fabric.linking.close': string;
|
|
52
|
-
'fabric.linking.close_and_reopen': string;
|
|
53
10
|
'fabric.linking.connect_account_description': string;
|
|
54
11
|
'fabric.linking.connect_link_account': string;
|
|
55
12
|
'fabric.linking.connect_link_account_card_view': string;
|
|
56
13
|
'fabric.linking.connect_link_account_card_view_description': string;
|
|
57
14
|
'fabric.linking.connect_link_account_card_view_name': string;
|
|
58
15
|
'fabric.linking.connect_to': string;
|
|
59
|
-
'fabric.linking.could_not_load_editor': string;
|
|
60
|
-
'fabric.linking.could_not_save_image': string;
|
|
61
|
-
'fabric.linking.couldnt_generate_encrypted_entry_preview': string;
|
|
62
|
-
'fabric.linking.couldnt_generate_preview': string;
|
|
63
|
-
'fabric.linking.couldnt_load_file': string;
|
|
64
16
|
'fabric.linking.couldnt_load_link': string;
|
|
65
|
-
'fabric.linking.
|
|
66
|
-
'fabric.linking.
|
|
67
|
-
'fabric.linking.
|
|
68
|
-
'fabric.linking.
|
|
69
|
-
'fabric.linking.document': string;
|
|
17
|
+
'fabric.linking.create_on_absolute': string;
|
|
18
|
+
'fabric.linking.create_on_relative': string;
|
|
19
|
+
'fabric.linking.created_by': string;
|
|
20
|
+
'fabric.linking.delete': string;
|
|
70
21
|
'fabric.linking.download': string;
|
|
71
|
-
'fabric.linking.
|
|
72
|
-
'fabric.linking.
|
|
73
|
-
'fabric.linking.drag_and_drop_your_files_and_folders': string;
|
|
74
|
-
'fabric.linking.drop_your_files': string;
|
|
75
|
-
'fabric.linking.drop_your_files_here': string;
|
|
76
|
-
'fabric.linking.email': string;
|
|
77
|
-
'fabric.linking.enable_fullscreen': string;
|
|
78
|
-
'fabric.linking.error_429': string;
|
|
79
|
-
'fabric.linking.error_generating_preview': string;
|
|
80
|
-
'fabric.linking.error_hint_critical': string;
|
|
81
|
-
'fabric.linking.error_hint_retry': string;
|
|
82
|
-
'fabric.linking.error_loading_file': string;
|
|
83
|
-
'fabric.linking.failed_to_load': string;
|
|
84
|
-
'fabric.linking.failed_to_upload': string;
|
|
22
|
+
'fabric.linking.edit': string;
|
|
23
|
+
'fabric.linking.forbidden_access': string;
|
|
85
24
|
'fabric.linking.forbidden_description': string;
|
|
86
|
-
'fabric.linking.give_feedback': string;
|
|
87
|
-
'fabric.linking.image': string;
|
|
88
|
-
'fabric.linking.image_format_invalid_error': string;
|
|
89
|
-
'fabric.linking.image_size_too_large_error': string;
|
|
90
|
-
'fabric.linking.image_url_invalid_error': string;
|
|
91
|
-
'fabric.linking.insert_files': string;
|
|
92
25
|
'fabric.linking.invalid_permissions': string;
|
|
93
26
|
'fabric.linking.invalid_permissions_description': string;
|
|
94
|
-
'fabric.linking.
|
|
95
|
-
'fabric.linking.learn_more': string;
|
|
96
|
-
'fabric.linking.load_more_gifs': string;
|
|
27
|
+
'fabric.linking.join_to_view': string;
|
|
97
28
|
'fabric.linking.loading': string;
|
|
98
|
-
'fabric.linking.
|
|
99
|
-
'fabric.linking.
|
|
100
|
-
'fabric.linking.
|
|
101
|
-
'fabric.linking.no_gifs_found_suggestion': string;
|
|
102
|
-
'fabric.linking.no_pdf_artifacts': string;
|
|
29
|
+
'fabric.linking.modified_on_absolute': string;
|
|
30
|
+
'fabric.linking.modified_on_relative': string;
|
|
31
|
+
'fabric.linking.more_actions': string;
|
|
103
32
|
'fabric.linking.not_found_description': string;
|
|
104
33
|
'fabric.linking.not_found_title': string;
|
|
105
|
-
'fabric.linking.
|
|
106
|
-
'fabric.linking.pause': string;
|
|
107
|
-
'fabric.linking.play': string;
|
|
108
|
-
'fabric.linking.playback_default_speed': string;
|
|
109
|
-
'fabric.linking.playback_speed': string;
|
|
34
|
+
'fabric.linking.pending_request': string;
|
|
110
35
|
'fabric.linking.preview': string;
|
|
111
|
-
'fabric.linking.
|
|
112
|
-
'fabric.linking.
|
|
113
|
-
'fabric.linking.
|
|
114
|
-
'fabric.linking.
|
|
36
|
+
'fabric.linking.priority_blocker': string;
|
|
37
|
+
'fabric.linking.priority_critical': string;
|
|
38
|
+
'fabric.linking.priority_high': string;
|
|
39
|
+
'fabric.linking.priority_highest': string;
|
|
40
|
+
'fabric.linking.priority_low': string;
|
|
41
|
+
'fabric.linking.priority_lowest': string;
|
|
42
|
+
'fabric.linking.priority_major': string;
|
|
43
|
+
'fabric.linking.priority_medium': string;
|
|
44
|
+
'fabric.linking.priority_minor': string;
|
|
45
|
+
'fabric.linking.priority_trivial': string;
|
|
46
|
+
'fabric.linking.priority_undefined': string;
|
|
115
47
|
'fabric.linking.request_access': string;
|
|
116
48
|
'fabric.linking.request_access_description': string;
|
|
117
49
|
'fabric.linking.request_access_pending': string;
|
|
118
50
|
'fabric.linking.request_access_pending_description': string;
|
|
51
|
+
'fabric.linking.request_access_to_view': string;
|
|
52
|
+
'fabric.linking.request_denied': string;
|
|
119
53
|
'fabric.linking.request_denied_description': string;
|
|
54
|
+
'fabric.linking.restricted_link': string;
|
|
120
55
|
'fabric.linking.retry': string;
|
|
121
56
|
'fabric.linking.save': string;
|
|
122
|
-
'fabric.linking.search': string;
|
|
123
|
-
'fabric.linking.search_all_gifs': string;
|
|
124
|
-
'fabric.linking.share_files_instantly': string;
|
|
125
|
-
'fabric.linking.skip_backward': string;
|
|
126
|
-
'fabric.linking.skip_forward': string;
|
|
127
|
-
'fabric.linking.something_went_wrong': string;
|
|
128
57
|
'fabric.linking.srclink': string;
|
|
129
58
|
'fabric.linking.srclinkunknown': string;
|
|
130
|
-
'fabric.linking.text': string;
|
|
131
59
|
'fabric.linking.try_again': string;
|
|
132
60
|
'fabric.linking.try_another_account': string;
|
|
133
|
-
'fabric.linking.try_downloading_file': string;
|
|
134
|
-
'fabric.linking.unable_to_annotate_image': string;
|
|
135
|
-
'fabric.linking.unknown': string;
|
|
136
61
|
'fabric.linking.unlink_account': string;
|
|
137
|
-
'fabric.linking.
|
|
138
|
-
'fabric.linking.upload_an_avatar': string;
|
|
139
|
-
'fabric.linking.upload_file': string;
|
|
140
|
-
'fabric.linking.upload_file_from': string;
|
|
141
|
-
'fabric.linking.upload_image': string;
|
|
142
|
-
'fabric.linking.upload_photo': string;
|
|
143
|
-
'fabric.linking.video': string;
|
|
62
|
+
'fabric.linking.updated_by': string;
|
|
144
63
|
'fabric.linking.view': string;
|
|
145
|
-
'fabric.linking.viewer_rateLimited': string;
|
|
146
|
-
'fabric.linking.webgl_warning_description': string;
|
|
147
|
-
'fabric.linking.zip_entry_load_failed': string;
|
|
148
|
-
'fabric.linking.zoom_in': string;
|
|
149
|
-
'fabric.linking.zoom_out': string;
|
|
150
64
|
};
|
|
151
65
|
/**
|
|
152
66
|
* NOTE:
|