@atlaskit/smart-card 32.8.2 → 32.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/extractors/action/extract-invoke-download-action.js +2 -2
- package/dist/cjs/extractors/common/icon/extractIcon.js +0 -5
- package/dist/cjs/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/cjs/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/cjs/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/cjs/extractors/flexible/actions/extract-download-action.js +2 -2
- package/dist/cjs/extractors/flexible/actions/extract-preview-action.js +2 -2
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/utils/test-utils.js +1 -11
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +1 -7
- package/dist/cjs/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/cjs/view/InlineCard/styled.js +1 -6
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/es2019/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/es2019/extractors/common/icon/extractIcon.js +0 -5
- package/dist/es2019/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/es2019/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/es2019/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/es2019/extractors/flexible/actions/extract-download-action.js +1 -1
- package/dist/es2019/extractors/flexible/actions/extract-preview-action.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/utils/test-utils.js +0 -10
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +0 -3
- package/dist/es2019/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +0 -6
- package/dist/es2019/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/es2019/view/InlineCard/styled.js +0 -5
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/esm/extractors/action/extract-invoke-download-action.js +1 -1
- package/dist/esm/extractors/common/icon/extractIcon.js +0 -5
- package/dist/esm/extractors/common/icon/extractIconFromDocument.js +0 -1
- package/dist/esm/extractors/common/icon/extractIconFromTask.js +0 -11
- package/dist/esm/extractors/common/icon/prioritiseIcon.js +0 -4
- package/dist/esm/extractors/flexible/actions/extract-download-action.js +1 -1
- package/dist/esm/extractors/flexible/actions/extract-preview-action.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/utils/test-utils.js +0 -10
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.js +0 -3
- package/dist/esm/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.js +0 -6
- package/dist/esm/view/FlexibleCard/components/common/atlaskit-icon/index.js +0 -1
- package/dist/esm/view/InlineCard/styled.js +0 -5
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/types/extractors/common/__mocks__/jsonld.d.ts +0 -8
- package/dist/types/extractors/common/icon/prioritiseIcon.d.ts +0 -9
- package/dist/types/extractors/flexible/utils.d.ts +4 -0
- package/dist/types/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -6
- package/dist/types/utils/analytics/types.d.ts +1 -9
- package/dist/types/utils/test-utils.d.ts +0 -2
- package/dist/types/view/EmbedCard/types.d.ts +1 -7
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.d.ts +1 -2
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +0 -5
- package/dist/types/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +0 -16
- package/dist/types/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -3
- package/dist/types/view/HoverCard/types.d.ts +0 -2
- package/dist/types/view/InlineCard/styled.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/__mocks__/jsonld.d.ts +0 -8
- package/dist/types-ts4.5/extractors/common/icon/prioritiseIcon.d.ts +0 -9
- package/dist/types-ts4.5/extractors/flexible/utils.d.ts +4 -0
- package/dist/types-ts4.5/state/hooks/use-ai-summary/ai-summary-service/types.d.ts +0 -6
- package/dist/types-ts4.5/utils/analytics/types.d.ts +1 -9
- package/dist/types-ts4.5/utils/test-utils.d.ts +0 -2
- package/dist/types-ts4.5/view/EmbedCard/types.d.ts +1 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/mocks.d.ts +1 -2
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/test-utils.d.ts +0 -5
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/automation-action/automation-manual-triggers/manual-triggers-container/common/types.d.ts +0 -16
- package/dist/types-ts4.5/view/FlexibleCard/components/blocks/preview-block/types.d.ts +0 -3
- package/dist/types-ts4.5/view/HoverCard/types.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +0 -4
- package/package.json +1 -1
- package/dist/cjs/extractors/common/byline/extractByline.js +0 -40
- package/dist/cjs/extractors/common/detail/extractAttachmentCount.js +0 -23
- package/dist/cjs/extractors/common/detail/extractCommentCount.js +0 -24
- package/dist/cjs/extractors/common/detail/extractProgrammingLanguage.js +0 -23
- package/dist/cjs/extractors/common/detail/extractSubscriberCount.js +0 -23
- package/dist/cjs/extractors/common/detail/index.js +0 -40
- package/dist/cjs/extractors/common/detail/types.js +0 -1
- package/dist/cjs/state/analytics/types.js +0 -5
- package/dist/es2019/extractors/common/byline/extractByline.js +0 -35
- package/dist/es2019/extractors/common/detail/extractAttachmentCount.js +0 -16
- package/dist/es2019/extractors/common/detail/extractCommentCount.js +0 -17
- package/dist/es2019/extractors/common/detail/extractProgrammingLanguage.js +0 -16
- package/dist/es2019/extractors/common/detail/extractSubscriberCount.js +0 -16
- package/dist/es2019/extractors/common/detail/index.js +0 -5
- package/dist/es2019/extractors/common/detail/types.js +0 -0
- package/dist/es2019/state/analytics/types.js +0 -1
- package/dist/esm/extractors/common/byline/extractByline.js +0 -33
- package/dist/esm/extractors/common/detail/extractAttachmentCount.js +0 -16
- package/dist/esm/extractors/common/detail/extractCommentCount.js +0 -17
- package/dist/esm/extractors/common/detail/extractProgrammingLanguage.js +0 -16
- package/dist/esm/extractors/common/detail/extractSubscriberCount.js +0 -16
- package/dist/esm/extractors/common/detail/index.js +0 -5
- package/dist/esm/extractors/common/detail/types.js +0 -0
- package/dist/esm/state/analytics/types.js +0 -1
- package/dist/types/extractors/common/byline/extractByline.d.ts +0 -3
- package/dist/types/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractCommentCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
- package/dist/types/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
- package/dist/types/extractors/common/detail/index.d.ts +0 -9
- package/dist/types/extractors/common/detail/types.d.ts +0 -5
- package/dist/types/state/analytics/types.d.ts +0 -9
- package/dist/types-ts4.5/extractors/common/byline/extractByline.d.ts +0 -3
- package/dist/types-ts4.5/extractors/common/detail/extractAttachmentCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractCommentCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractProgrammingLanguage.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/extractSubscriberCount.d.ts +0 -4
- package/dist/types-ts4.5/extractors/common/detail/index.d.ts +0 -9
- package/dist/types-ts4.5/extractors/common/detail/types.d.ts +0 -5
- package/dist/types-ts4.5/state/analytics/types.d.ts +0 -9
- /package/dist/cjs/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/es2019/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/esm/extractors/common/{detail → download}/extractDownloadUrl.js +0 -0
- /package/dist/types/extractors/common/{detail → download}/extractDownloadUrl.d.ts +0 -0
- /package/dist/types-ts4.5/extractors/common/{detail → download}/extractDownloadUrl.d.ts +0 -0
|
@@ -9,7 +9,6 @@ import JiraStoryIcon from '@atlaskit/icon-object/glyph/story/16';
|
|
|
9
9
|
import JiraSubTaskIcon from '@atlaskit/icon-object/glyph/subtask/16';
|
|
10
10
|
import JiraTaskIcon from '@atlaskit/icon-object/glyph/task/16';
|
|
11
11
|
import { JIRA_BUG, JIRA_CHANGE, JIRA_CUSTOM_TASK_TYPE, JIRA_EPIC, JIRA_GENERATOR_ID, JIRA_INCIDENT, JIRA_PROBLEM, JIRA_SERVICE_REQUEST, JIRA_STORY, JIRA_SUB_TASK, JIRA_TASK } from '../../constants';
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
13
12
|
var TaskIcon = JiraTaskIcon;
|
|
14
13
|
|
|
15
14
|
/**
|
|
@@ -25,7 +24,6 @@ export var extractIconFromTask = function extractIconFromTask(opts) {
|
|
|
25
24
|
var taskType = opts.taskType,
|
|
26
25
|
provider = opts.provider;
|
|
27
26
|
var taskLabel = opts.title || 'task';
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
29
27
|
var defaultIcon = /*#__PURE__*/React.createElement(TaskIcon, {
|
|
30
28
|
label: taskLabel,
|
|
31
29
|
testId: "default-task-icon"
|
|
@@ -35,55 +33,46 @@ export var extractIconFromTask = function extractIconFromTask(opts) {
|
|
|
35
33
|
var taskTypeName = taskTypeId.split('#').pop();
|
|
36
34
|
switch (taskTypeName) {
|
|
37
35
|
case JIRA_TASK:
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
39
36
|
return /*#__PURE__*/React.createElement(JiraTaskIcon, {
|
|
40
37
|
label: taskLabel,
|
|
41
38
|
testId: "jira-task-icon"
|
|
42
39
|
});
|
|
43
40
|
case JIRA_SUB_TASK:
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
45
41
|
return /*#__PURE__*/React.createElement(JiraSubTaskIcon, {
|
|
46
42
|
label: taskLabel,
|
|
47
43
|
testId: "jira-subtask-icon"
|
|
48
44
|
});
|
|
49
45
|
case JIRA_STORY:
|
|
50
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
51
46
|
return /*#__PURE__*/React.createElement(JiraStoryIcon, {
|
|
52
47
|
label: taskLabel,
|
|
53
48
|
testId: "jira-story-icon"
|
|
54
49
|
});
|
|
55
50
|
case JIRA_BUG:
|
|
56
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
57
51
|
return /*#__PURE__*/React.createElement(JiraBugIcon, {
|
|
58
52
|
label: taskLabel,
|
|
59
53
|
testId: "jira-bug-icon"
|
|
60
54
|
});
|
|
61
55
|
case JIRA_EPIC:
|
|
62
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
63
56
|
return /*#__PURE__*/React.createElement(JiraEpicIcon, {
|
|
64
57
|
label: taskLabel,
|
|
65
58
|
testId: "jira-epic-icon"
|
|
66
59
|
});
|
|
67
60
|
case JIRA_INCIDENT:
|
|
68
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
69
61
|
return /*#__PURE__*/React.createElement(JiraIncidentIcon, {
|
|
70
62
|
label: taskLabel,
|
|
71
63
|
testId: "jira-incident-icon"
|
|
72
64
|
});
|
|
73
65
|
case JIRA_SERVICE_REQUEST:
|
|
74
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
75
66
|
return /*#__PURE__*/React.createElement(JiraServiceRequestIcon, {
|
|
76
67
|
label: taskLabel,
|
|
77
68
|
testId: "jira-service-request-icon"
|
|
78
69
|
});
|
|
79
70
|
case JIRA_CHANGE:
|
|
80
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
81
71
|
return /*#__PURE__*/React.createElement(JiraChangeIcon, {
|
|
82
72
|
label: taskLabel,
|
|
83
73
|
testId: "jira-change-icon"
|
|
84
74
|
});
|
|
85
75
|
case JIRA_PROBLEM:
|
|
86
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
87
76
|
return /*#__PURE__*/React.createElement(JiraProblemIcon, {
|
|
88
77
|
label: taskLabel,
|
|
89
78
|
testId: "jira-problem-icon"
|
|
@@ -2,7 +2,7 @@ import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
|
2
2
|
import { CardAction } from '../../../view/Card/types';
|
|
3
3
|
import { extractInvokeDownloadAction } from '../../action/extract-invoke-download-action';
|
|
4
4
|
import { getActionsFromJsonLd } from '../../common/actions/extractActions';
|
|
5
|
-
import { extractDownloadUrl } from '../../common/
|
|
5
|
+
import { extractDownloadUrl } from '../../common/download/extractDownloadUrl';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Remove on cleanup of platform-smart-card-migrate-embed-modal-analytics
|
|
@@ -2,7 +2,7 @@ import { extractLink, extractPreview as extractPreviewData, extractProvider, ext
|
|
|
2
2
|
import { canShowAction } from '../../../utils/actions/can-show-action';
|
|
3
3
|
import { CardAction } from '../../../view/Card/types';
|
|
4
4
|
import { extractInvokePreviewAction } from '../../action/extract-invoke-preview-action';
|
|
5
|
-
import { extractDownloadUrl } from '../../common/
|
|
5
|
+
import { extractDownloadUrl } from '../../common/download/extractDownloadUrl';
|
|
6
6
|
import { extractIsSupportTheming } from '../../common/meta/extractIsSupportTheming';
|
|
7
7
|
import { extractIsTrusted } from '../../common/meta/extractIsTrusted';
|
|
8
8
|
import { extractLinkIcon } from '../icon';
|
|
@@ -8,7 +8,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
8
8
|
export var context = {
|
|
9
9
|
componentName: 'smart-cards',
|
|
10
10
|
packageName: "@atlaskit/smart-card",
|
|
11
|
-
packageVersion: "32.8.
|
|
11
|
+
packageVersion: "32.8.3"
|
|
12
12
|
};
|
|
13
13
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
14
14
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { CardClient } from '@atlaskit/link-provider';
|
|
4
|
-
import { SmartCardProvider } from '../state';
|
|
5
2
|
var Hook = function Hook(props) {
|
|
6
3
|
props.callback();
|
|
7
4
|
return null;
|
|
@@ -10,11 +7,4 @@ export var renderHook = function renderHook(callback) {
|
|
|
10
7
|
return /*#__PURE__*/React.createElement(Hook, {
|
|
11
8
|
callback: callback
|
|
12
9
|
});
|
|
13
|
-
};
|
|
14
|
-
export var renderSmartLinkHook = function renderSmartLinkHook(callback, providerProps) {
|
|
15
|
-
return /*#__PURE__*/React.createElement(SmartCardProvider, _extends({
|
|
16
|
-
client: new CardClient()
|
|
17
|
-
}, providerProps), /*#__PURE__*/React.createElement(Hook, {
|
|
18
|
-
callback: callback
|
|
19
|
-
}), ";");
|
|
20
10
|
};
|
|
@@ -66,8 +66,5 @@ export var mockTransformedRules = [_objectSpread(_objectSpread({}, mockRules.dat
|
|
|
66
66
|
}), _objectSpread(_objectSpread({}, mockRules.data[2]), {}, {
|
|
67
67
|
userInputPrompts: mockRules.data[2].userInputs
|
|
68
68
|
})];
|
|
69
|
-
export var mockInvocationResponse = {
|
|
70
|
-
'TEST-1': 'SUCCESS'
|
|
71
|
-
};
|
|
72
69
|
export var mockGetUrl = 'https://test-api/get/rules';
|
|
73
70
|
export var mockInvokeUrl = 'https://test-api/invoke';
|
|
@@ -46,12 +46,6 @@ export var createStubInvokeManuallyTriggeredRule = function createStubInvokeManu
|
|
|
46
46
|
};
|
|
47
47
|
}();
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Default stubbed invokeManuallyTriggeredRule call. Returns 'SUCCESS' for
|
|
52
|
-
* all objects the rule was called for.
|
|
53
|
-
*/
|
|
54
|
-
export var successStubInvokeManuallyTriggeredRule = createStubInvokeManuallyTriggeredRule('SUCCESS', 2000);
|
|
55
49
|
var Provider = function Provider(_ref2) {
|
|
56
50
|
var children = _ref2.children,
|
|
57
51
|
use = _ref2.use,
|
|
@@ -168,7 +168,6 @@ var AtlaskitIcon = function AtlaskitIcon(_ref3) {
|
|
|
168
168
|
testId: testId
|
|
169
169
|
});
|
|
170
170
|
case IconType.Blog:
|
|
171
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons -- TODO - https://product-fabric.atlassian.net/browse/DSP-19493
|
|
172
171
|
return /*#__PURE__*/React.createElement(BlogIcon, {
|
|
173
172
|
label: label || 'blog',
|
|
174
173
|
testId: testId
|
|
@@ -38,11 +38,6 @@ export var NoLinkAppearance = styled.span({
|
|
|
38
38
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
export var LowercaseAppearance = styled.span({
|
|
43
|
-
textTransform: 'lowercase'
|
|
44
|
-
});
|
|
45
|
-
|
|
46
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
47
42
|
export var LinkAppearance = styled.a({
|
|
48
43
|
color: "var(--ds-link, ".concat(B400, ")"),
|
|
@@ -13,7 +13,7 @@ import LinkWarningModal from './LinkWarningModal';
|
|
|
13
13
|
import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
|
|
14
14
|
var PACKAGE_DATA = {
|
|
15
15
|
packageName: "@atlaskit/smart-card",
|
|
16
|
-
packageVersion: "32.8.
|
|
16
|
+
packageVersion: "32.8.3",
|
|
17
17
|
componentName: 'linkUrl'
|
|
18
18
|
};
|
|
19
19
|
var Anchor = withLinkClickedEvent('a');
|
|
@@ -2,16 +2,11 @@ import { type JsonLd } from 'json-ld-types';
|
|
|
2
2
|
export declare const TEST_URL = "https://my.url.com";
|
|
3
3
|
export declare const TEST_VISIT_URL = "https://visit.url.com";
|
|
4
4
|
export declare const TEST_NAME = "my name";
|
|
5
|
-
export declare const TEST_STRING = "foo";
|
|
6
|
-
export declare const TEST_PREFIX = "some-mock-prefix";
|
|
7
5
|
export declare const TEST_EMOJI = "\"emoji-id\"";
|
|
8
6
|
export declare const TEST_EMOJI_SANITIZED = "emoji-id";
|
|
9
7
|
export declare const TEST_LINK: JsonLd.Primitives.Link;
|
|
10
|
-
export declare const TEST_ARRAY: JsonLd.Primitives.Link[];
|
|
11
8
|
export declare const TEST_OBJECT: JsonLd.Primitives.Object;
|
|
12
9
|
export declare const TEST_PERSON: JsonLd.Primitives.Person;
|
|
13
|
-
export declare const TEST_IMAGE: JsonLd.Primitives.Image;
|
|
14
|
-
export declare const TEST_IMAGE_WITH_LINK: JsonLd.Primitives.Image;
|
|
15
10
|
export declare const TEST_TITLE_EMOJI: JsonLd.Data.BaseData['atlassian:titlePrefix'];
|
|
16
11
|
export declare const TEST_BASE_DATA: JsonLd.Data.BaseData;
|
|
17
12
|
export declare const TEST_DATA_WITH_EMOJI: JsonLd.Data.BaseData;
|
|
@@ -19,7 +14,6 @@ export declare const TEST_DATA_WITH_NO_PREFIX: JsonLd.Data.BaseData;
|
|
|
19
14
|
export declare const TEST_PROJECT: JsonLd.Data.Project;
|
|
20
15
|
export declare const TEST_PROJECT_WITHOUT_MEMBERS: Partial<JsonLd.Data.Project>;
|
|
21
16
|
export declare const TEST_PULL_REQUEST: JsonLd.Data.SourceCodePullRequest;
|
|
22
|
-
export declare const TEST_TASK: JsonLd.Data.Task;
|
|
23
17
|
export declare const TEST_META_DATA: JsonLd.Meta.BaseMeta;
|
|
24
18
|
export declare const TEST_RESOLVED_META_DATA: JsonLd.Meta.BaseMeta;
|
|
25
19
|
export declare const TEST_RESOLVED_META_DATA_WITH_AI_SUMMARY: JsonLd.Meta.BaseMeta;
|
|
@@ -33,10 +27,8 @@ export declare const TEST_VIEW_ACTION: JsonLd.Data.BaseData['schema:potentialAct
|
|
|
33
27
|
export declare const TEST_FOLLOW_ACTION: JsonLd.Primitives.UpdateAction;
|
|
34
28
|
export declare const TEST_UNFOLLOW_ACTION: JsonLd.Primitives.UpdateAction;
|
|
35
29
|
export declare const TEST_STATUS_UPDATE_ACTION: JsonLd.Primitives.UpdateAction;
|
|
36
|
-
export declare const TEST_DOCUMENT_WITH_ACTIONS: JsonLd.Data.BaseData;
|
|
37
30
|
export declare const TEST_DOCUMENT_WITH_DOWNLOAD_ACTION: JsonLd.Data.BaseData;
|
|
38
31
|
export declare const TEST_DOCUMENT_WITH_VIEW_ACTION: JsonLd.Data.BaseData;
|
|
39
|
-
export declare const TEST_DOCUMENT_WITH_MULTIPLE_ACTIONS: JsonLd.Data.BaseData;
|
|
40
32
|
export declare const PREVIEW: JsonLd.Data.BaseData['preview'];
|
|
41
33
|
export declare const TEST_DOCUMENT_WITH_PREVIEW: JsonLd.Data.BaseData;
|
|
42
34
|
export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: JsonLd.Data.SourceCodeRepository;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { type IconType } from '../../../constants';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an icon. Should either contain a label and url, or a an icon type and label.
|
|
4
|
-
*/
|
|
5
|
-
export type IconDescriptor = {
|
|
6
|
-
icon?: IconType;
|
|
7
|
-
label?: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
};
|
|
10
1
|
/**
|
|
11
2
|
* Options required to prioritise which icon to show
|
|
12
3
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type JsonLd } from 'json-ld-types';
|
|
2
2
|
import { type LinkPerson } from '@atlaskit/link-extractors';
|
|
3
3
|
import { type LinkLocation } from '../../state/flexible-ui-context/types';
|
|
4
|
+
export type LinkCommentType = JsonLd.Data.Document | JsonLd.Data.Page | JsonLd.Data.Project | JsonLd.Data.SourceCodeCommit | JsonLd.Data.TaskType;
|
|
4
5
|
export declare const extractCommentCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
5
6
|
export declare const extractDueOn: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
6
7
|
export declare const extractViewCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
@@ -11,9 +12,12 @@ export declare const extractAssignedTo: (data: JsonLd.Data.BaseData) => string |
|
|
|
11
12
|
export declare const extractPersonAssignedToAsArray: (data: JsonLd.Data.BaseData) => LinkPerson[] | undefined;
|
|
12
13
|
export declare const extractCreatedBy: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
13
14
|
export declare const extractModifiedBy: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
15
|
+
export type LinkProgrammingLanguageType = JsonLd.Data.SourceCodeDocument | JsonLd.Data.SourceCodeCommit | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository;
|
|
14
16
|
export declare const extractProgrammingLanguage: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
15
17
|
export declare const extractSourceBranch: (data: JsonLd.Data.SourceCodePullRequest) => string | undefined;
|
|
18
|
+
export type LinkSubscriberType = JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task | JsonLd.Data.TaskType;
|
|
16
19
|
export declare const extractSubscriberCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
20
|
+
export type LinkAttachmentType = JsonLd.Data.Document | JsonLd.Data.Task | JsonLd.Data.TaskType | JsonLd.Data.Project;
|
|
17
21
|
export declare const extractAttachmentCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
18
22
|
export declare const extractTargetBranch: (data: JsonLd.Data.SourceCodePullRequest) => string | undefined;
|
|
19
23
|
export declare const extractChecklistProgress: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
@@ -117,12 +117,6 @@ export type ModelUsage = {
|
|
|
117
117
|
total_cost: number;
|
|
118
118
|
duration: number;
|
|
119
119
|
};
|
|
120
|
-
export type Durations = {
|
|
121
|
-
events: {
|
|
122
|
-
[key: string]: number;
|
|
123
|
-
};
|
|
124
|
-
total: number;
|
|
125
|
-
};
|
|
126
120
|
export type Metadata = {
|
|
127
121
|
bm25Variant?: string;
|
|
128
122
|
confidenceScore?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ErrorInfo } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type CardType } from '@atlaskit/linking-common';
|
|
3
3
|
import { type InvokeType } from '../../model/invoke-opts';
|
|
4
4
|
import { type CardInnerAppearance } from '../../view/Card/types';
|
|
5
5
|
export type DestinationProduct = 'jira' | 'confluence' | 'bitbucket' | 'trello';
|
|
@@ -15,14 +15,6 @@ export interface CommonEventProps {
|
|
|
15
15
|
location?: string;
|
|
16
16
|
statusDetails?: string;
|
|
17
17
|
}
|
|
18
|
-
export type ResolvedEventProps = CommonEventProps & {
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
export type UnresolvedEventProps = CommonEventProps & {
|
|
22
|
-
id: string;
|
|
23
|
-
status: string;
|
|
24
|
-
error?: APIError;
|
|
25
|
-
};
|
|
26
18
|
export type InvokeSucceededEventProps = CommonEventProps & {
|
|
27
19
|
id?: string;
|
|
28
20
|
actionType: string;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
-
import { type RequestAccessMessageKey } from '../../messages';
|
|
4
3
|
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
5
4
|
import { type AnalyticsFacade } from '../../state/analytics';
|
|
6
5
|
import { type CardState } from '../../state/types';
|
|
7
6
|
import type { CardActionOptions, CardPlatform, EmbedIframeUrlType, OnResolveCallback } from '../Card/types';
|
|
8
|
-
import { type
|
|
7
|
+
import { type OnErrorCallback } from '../types';
|
|
9
8
|
export type EmbedCardProps = {
|
|
10
9
|
url: string;
|
|
11
10
|
cardState: CardState;
|
|
@@ -43,10 +42,5 @@ export interface AccessContext {
|
|
|
43
42
|
url?: string;
|
|
44
43
|
smartLinksAccessMetadataExperimentCohort?: 'experiment' | 'control' | 'not-enrolled';
|
|
45
44
|
}
|
|
46
|
-
export interface RequestAccessContextProps extends AccessContext {
|
|
47
|
-
action?: ActionProps;
|
|
48
|
-
callToActionMessageKey?: RequestAccessMessageKey;
|
|
49
|
-
descriptiveMessageKey?: RequestAccessMessageKey;
|
|
50
|
-
}
|
|
51
45
|
export type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
|
|
52
46
|
export type FrameStyle = 'show' | 'hide' | 'showOnHover';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type GetManualRulesResponse, type
|
|
1
|
+
import { type GetManualRulesResponse, type ManualRule } from './types';
|
|
2
2
|
export declare const mockRules: GetManualRulesResponse;
|
|
3
3
|
export declare const mockTransformedRules: ManualRule[];
|
|
4
|
-
export declare const mockInvocationResponse: InvocationResponse;
|
|
5
4
|
export declare const mockGetUrl = "https://test-api/get/rules";
|
|
6
5
|
export declare const mockInvokeUrl = "https://test-api/invoke";
|
|
@@ -7,11 +7,6 @@ import type { Ari, Environment, InvocationResponse, InvocationResult, UserInputs
|
|
|
7
7
|
* for.
|
|
8
8
|
*/
|
|
9
9
|
export declare const createStubInvokeManuallyTriggeredRule: (stubbedInvocationResultForAllObjects: InvocationResult, responseDelay?: number) => (_env: Environment | null, _site: Ari, _ruleId: number, objects: string[], _inputs?: UserInputs) => Promise<InvocationResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Default stubbed invokeManuallyTriggeredRule call. Returns 'SUCCESS' for
|
|
12
|
-
* all objects the rule was called for.
|
|
13
|
-
*/
|
|
14
|
-
export declare const successStubInvokeManuallyTriggeredRule: (_env: Environment | null, _site: Ari, _ruleId: number, objects: string[], _inputs?: UserInputs) => Promise<InvocationResponse>;
|
|
15
10
|
/**
|
|
16
11
|
* Render into a container which is appended to `document.body`.
|
|
17
12
|
*
|
|
@@ -75,22 +75,6 @@ export declare const SOFTWARE_PROJECT = "software";
|
|
|
75
75
|
export declare const SERVICE_DESK_PROJECT = "service_desk";
|
|
76
76
|
export declare const PRODUCT_DISCOVERY_PROJECT = "product_discovery";
|
|
77
77
|
export type ProjectType = typeof CORE_PROJECT | typeof SOFTWARE_PROJECT | typeof SERVICE_DESK_PROJECT | typeof PRODUCT_DISCOVERY_PROJECT;
|
|
78
|
-
export type ProjectId = string;
|
|
79
|
-
export type ProjectKey = string;
|
|
80
78
|
export type CloudId = string;
|
|
81
79
|
export type Environment = 'prod' | 'pre-prod' | 'staging' | 'dev' | 'local';
|
|
82
|
-
export type DevStack = {
|
|
83
|
-
name: string;
|
|
84
|
-
};
|
|
85
|
-
type EnvironmentDetails = {
|
|
86
|
-
failedStack: boolean;
|
|
87
|
-
releasedSuccessfully: boolean;
|
|
88
|
-
rolledBackStack: boolean;
|
|
89
|
-
stack: string;
|
|
90
|
-
};
|
|
91
|
-
type EnvironmentResponse = {
|
|
92
|
-
liveStack: EnvironmentDetails;
|
|
93
|
-
otherStacks: EnvironmentDetails[];
|
|
94
|
-
};
|
|
95
|
-
export type StacksResponse = Record<Environment, EnvironmentResponse>;
|
|
96
80
|
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { type MediaPlacement } from '../../../../../constants';
|
|
2
2
|
import { type BlockProps } from '../types';
|
|
3
|
-
export type OnPreviewRenderOptions = {
|
|
4
|
-
placement?: MediaPlacement;
|
|
5
|
-
};
|
|
6
3
|
export type PreviewBlockProps = {
|
|
7
4
|
/**
|
|
8
5
|
* Indicate whether preview block should ignore the padding its parent container.
|
|
@@ -67,8 +67,6 @@ export interface HoverCardComponentProps extends HoverCardProps, HoverCardIntern
|
|
|
67
67
|
canOpen?: boolean;
|
|
68
68
|
closeOnChildClick?: boolean;
|
|
69
69
|
}
|
|
70
|
-
export type PreviewDisplay = 'card' | 'embed';
|
|
71
|
-
export type PreviewInvokeMethod = 'keyboard' | 'mouse_hover' | 'mouse_click';
|
|
72
70
|
export type HoverCardContentProps = {
|
|
73
71
|
id?: string;
|
|
74
72
|
analytics?: AnalyticsFacade;
|
|
@@ -7,10 +7,6 @@ export declare const NoLinkAppearance: import("@emotion/styled").StyledComponent
|
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
-
export declare const LowercaseAppearance: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
14
10
|
export declare const LinkAppearance: import("@emotion/styled").StyledComponent<{
|
|
15
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
12
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -2,16 +2,11 @@ import { type JsonLd } from 'json-ld-types';
|
|
|
2
2
|
export declare const TEST_URL = "https://my.url.com";
|
|
3
3
|
export declare const TEST_VISIT_URL = "https://visit.url.com";
|
|
4
4
|
export declare const TEST_NAME = "my name";
|
|
5
|
-
export declare const TEST_STRING = "foo";
|
|
6
|
-
export declare const TEST_PREFIX = "some-mock-prefix";
|
|
7
5
|
export declare const TEST_EMOJI = "\"emoji-id\"";
|
|
8
6
|
export declare const TEST_EMOJI_SANITIZED = "emoji-id";
|
|
9
7
|
export declare const TEST_LINK: JsonLd.Primitives.Link;
|
|
10
|
-
export declare const TEST_ARRAY: JsonLd.Primitives.Link[];
|
|
11
8
|
export declare const TEST_OBJECT: JsonLd.Primitives.Object;
|
|
12
9
|
export declare const TEST_PERSON: JsonLd.Primitives.Person;
|
|
13
|
-
export declare const TEST_IMAGE: JsonLd.Primitives.Image;
|
|
14
|
-
export declare const TEST_IMAGE_WITH_LINK: JsonLd.Primitives.Image;
|
|
15
10
|
export declare const TEST_TITLE_EMOJI: JsonLd.Data.BaseData['atlassian:titlePrefix'];
|
|
16
11
|
export declare const TEST_BASE_DATA: JsonLd.Data.BaseData;
|
|
17
12
|
export declare const TEST_DATA_WITH_EMOJI: JsonLd.Data.BaseData;
|
|
@@ -19,7 +14,6 @@ export declare const TEST_DATA_WITH_NO_PREFIX: JsonLd.Data.BaseData;
|
|
|
19
14
|
export declare const TEST_PROJECT: JsonLd.Data.Project;
|
|
20
15
|
export declare const TEST_PROJECT_WITHOUT_MEMBERS: Partial<JsonLd.Data.Project>;
|
|
21
16
|
export declare const TEST_PULL_REQUEST: JsonLd.Data.SourceCodePullRequest;
|
|
22
|
-
export declare const TEST_TASK: JsonLd.Data.Task;
|
|
23
17
|
export declare const TEST_META_DATA: JsonLd.Meta.BaseMeta;
|
|
24
18
|
export declare const TEST_RESOLVED_META_DATA: JsonLd.Meta.BaseMeta;
|
|
25
19
|
export declare const TEST_RESOLVED_META_DATA_WITH_AI_SUMMARY: JsonLd.Meta.BaseMeta;
|
|
@@ -33,10 +27,8 @@ export declare const TEST_VIEW_ACTION: JsonLd.Data.BaseData['schema:potentialAct
|
|
|
33
27
|
export declare const TEST_FOLLOW_ACTION: JsonLd.Primitives.UpdateAction;
|
|
34
28
|
export declare const TEST_UNFOLLOW_ACTION: JsonLd.Primitives.UpdateAction;
|
|
35
29
|
export declare const TEST_STATUS_UPDATE_ACTION: JsonLd.Primitives.UpdateAction;
|
|
36
|
-
export declare const TEST_DOCUMENT_WITH_ACTIONS: JsonLd.Data.BaseData;
|
|
37
30
|
export declare const TEST_DOCUMENT_WITH_DOWNLOAD_ACTION: JsonLd.Data.BaseData;
|
|
38
31
|
export declare const TEST_DOCUMENT_WITH_VIEW_ACTION: JsonLd.Data.BaseData;
|
|
39
|
-
export declare const TEST_DOCUMENT_WITH_MULTIPLE_ACTIONS: JsonLd.Data.BaseData;
|
|
40
32
|
export declare const PREVIEW: JsonLd.Data.BaseData['preview'];
|
|
41
33
|
export declare const TEST_DOCUMENT_WITH_PREVIEW: JsonLd.Data.BaseData;
|
|
42
34
|
export declare const TEST_DATA_WITH_LATEST_COMMIT_OBJ: JsonLd.Data.SourceCodeRepository;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import { type IconType } from '../../../constants';
|
|
2
|
-
/**
|
|
3
|
-
* Represents an icon. Should either contain a label and url, or a an icon type and label.
|
|
4
|
-
*/
|
|
5
|
-
export type IconDescriptor = {
|
|
6
|
-
icon?: IconType;
|
|
7
|
-
label?: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
};
|
|
10
1
|
/**
|
|
11
2
|
* Options required to prioritise which icon to show
|
|
12
3
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type JsonLd } from 'json-ld-types';
|
|
2
2
|
import { type LinkPerson } from '@atlaskit/link-extractors';
|
|
3
3
|
import { type LinkLocation } from '../../state/flexible-ui-context/types';
|
|
4
|
+
export type LinkCommentType = JsonLd.Data.Document | JsonLd.Data.Page | JsonLd.Data.Project | JsonLd.Data.SourceCodeCommit | JsonLd.Data.TaskType;
|
|
4
5
|
export declare const extractCommentCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
5
6
|
export declare const extractDueOn: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
6
7
|
export declare const extractViewCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
@@ -11,9 +12,12 @@ export declare const extractAssignedTo: (data: JsonLd.Data.BaseData) => string |
|
|
|
11
12
|
export declare const extractPersonAssignedToAsArray: (data: JsonLd.Data.BaseData) => LinkPerson[] | undefined;
|
|
12
13
|
export declare const extractCreatedBy: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
13
14
|
export declare const extractModifiedBy: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
15
|
+
export type LinkProgrammingLanguageType = JsonLd.Data.SourceCodeDocument | JsonLd.Data.SourceCodeCommit | JsonLd.Data.SourceCodePullRequest | JsonLd.Data.SourceCodeReference | JsonLd.Data.SourceCodeRepository;
|
|
14
16
|
export declare const extractProgrammingLanguage: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
15
17
|
export declare const extractSourceBranch: (data: JsonLd.Data.SourceCodePullRequest) => string | undefined;
|
|
18
|
+
export type LinkSubscriberType = JsonLd.Data.SourceCodeRepository | JsonLd.Data.Task | JsonLd.Data.TaskType;
|
|
16
19
|
export declare const extractSubscriberCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
20
|
+
export type LinkAttachmentType = JsonLd.Data.Document | JsonLd.Data.Task | JsonLd.Data.TaskType | JsonLd.Data.Project;
|
|
17
21
|
export declare const extractAttachmentCount: (data: JsonLd.Data.BaseData) => number | undefined;
|
|
18
22
|
export declare const extractTargetBranch: (data: JsonLd.Data.SourceCodePullRequest) => string | undefined;
|
|
19
23
|
export declare const extractChecklistProgress: (data: JsonLd.Data.BaseData) => string | undefined;
|
|
@@ -129,12 +129,6 @@ export type ModelUsage = {
|
|
|
129
129
|
total_cost: number;
|
|
130
130
|
duration: number;
|
|
131
131
|
};
|
|
132
|
-
export type Durations = {
|
|
133
|
-
events: {
|
|
134
|
-
[key: string]: number;
|
|
135
|
-
};
|
|
136
|
-
total: number;
|
|
137
|
-
};
|
|
138
132
|
export type Metadata = {
|
|
139
133
|
bm25Variant?: string;
|
|
140
134
|
confidenceScore?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ErrorInfo } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type CardType } from '@atlaskit/linking-common';
|
|
3
3
|
import { type InvokeType } from '../../model/invoke-opts';
|
|
4
4
|
import { type CardInnerAppearance } from '../../view/Card/types';
|
|
5
5
|
export type DestinationProduct = 'jira' | 'confluence' | 'bitbucket' | 'trello';
|
|
@@ -15,14 +15,6 @@ export interface CommonEventProps {
|
|
|
15
15
|
location?: string;
|
|
16
16
|
statusDetails?: string;
|
|
17
17
|
}
|
|
18
|
-
export type ResolvedEventProps = CommonEventProps & {
|
|
19
|
-
id: string;
|
|
20
|
-
};
|
|
21
|
-
export type UnresolvedEventProps = CommonEventProps & {
|
|
22
|
-
id: string;
|
|
23
|
-
status: string;
|
|
24
|
-
error?: APIError;
|
|
25
|
-
};
|
|
26
18
|
export type InvokeSucceededEventProps = CommonEventProps & {
|
|
27
19
|
id?: string;
|
|
28
20
|
actionType: string;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type CardProviderRenderers } from '@atlaskit/link-provider';
|
|
3
|
-
import { type RequestAccessMessageKey } from '../../messages';
|
|
4
3
|
import { type InvokeHandler } from '../../model/invoke-handler';
|
|
5
4
|
import { type AnalyticsFacade } from '../../state/analytics';
|
|
6
5
|
import { type CardState } from '../../state/types';
|
|
7
6
|
import type { CardActionOptions, CardPlatform, EmbedIframeUrlType, OnResolveCallback } from '../Card/types';
|
|
8
|
-
import { type
|
|
7
|
+
import { type OnErrorCallback } from '../types';
|
|
9
8
|
export type EmbedCardProps = {
|
|
10
9
|
url: string;
|
|
11
10
|
cardState: CardState;
|
|
@@ -43,10 +42,5 @@ export interface AccessContext {
|
|
|
43
42
|
url?: string;
|
|
44
43
|
smartLinksAccessMetadataExperimentCohort?: 'experiment' | 'control' | 'not-enrolled';
|
|
45
44
|
}
|
|
46
|
-
export interface RequestAccessContextProps extends AccessContext {
|
|
47
|
-
action?: ActionProps;
|
|
48
|
-
callToActionMessageKey?: RequestAccessMessageKey;
|
|
49
|
-
descriptiveMessageKey?: RequestAccessMessageKey;
|
|
50
|
-
}
|
|
51
45
|
export type InlinePreloaderStyle = 'on-left-with-skeleton' | 'on-right-without-skeleton';
|
|
52
46
|
export type FrameStyle = 'show' | 'hide' | 'showOnHover';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { type GetManualRulesResponse, type
|
|
1
|
+
import { type GetManualRulesResponse, type ManualRule } from './types';
|
|
2
2
|
export declare const mockRules: GetManualRulesResponse;
|
|
3
3
|
export declare const mockTransformedRules: ManualRule[];
|
|
4
|
-
export declare const mockInvocationResponse: InvocationResponse;
|
|
5
4
|
export declare const mockGetUrl = "https://test-api/get/rules";
|
|
6
5
|
export declare const mockInvokeUrl = "https://test-api/invoke";
|
|
@@ -7,11 +7,6 @@ import type { Ari, Environment, InvocationResponse, InvocationResult, UserInputs
|
|
|
7
7
|
* for.
|
|
8
8
|
*/
|
|
9
9
|
export declare const createStubInvokeManuallyTriggeredRule: (stubbedInvocationResultForAllObjects: InvocationResult, responseDelay?: number) => (_env: Environment | null, _site: Ari, _ruleId: number, objects: string[], _inputs?: UserInputs) => Promise<InvocationResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Default stubbed invokeManuallyTriggeredRule call. Returns 'SUCCESS' for
|
|
12
|
-
* all objects the rule was called for.
|
|
13
|
-
*/
|
|
14
|
-
export declare const successStubInvokeManuallyTriggeredRule: (_env: Environment | null, _site: Ari, _ruleId: number, objects: string[], _inputs?: UserInputs) => Promise<InvocationResponse>;
|
|
15
10
|
/**
|
|
16
11
|
* Render into a container which is appended to `document.body`.
|
|
17
12
|
*
|
|
@@ -75,22 +75,6 @@ export declare const SOFTWARE_PROJECT = "software";
|
|
|
75
75
|
export declare const SERVICE_DESK_PROJECT = "service_desk";
|
|
76
76
|
export declare const PRODUCT_DISCOVERY_PROJECT = "product_discovery";
|
|
77
77
|
export type ProjectType = typeof CORE_PROJECT | typeof SOFTWARE_PROJECT | typeof SERVICE_DESK_PROJECT | typeof PRODUCT_DISCOVERY_PROJECT;
|
|
78
|
-
export type ProjectId = string;
|
|
79
|
-
export type ProjectKey = string;
|
|
80
78
|
export type CloudId = string;
|
|
81
79
|
export type Environment = 'prod' | 'pre-prod' | 'staging' | 'dev' | 'local';
|
|
82
|
-
export type DevStack = {
|
|
83
|
-
name: string;
|
|
84
|
-
};
|
|
85
|
-
type EnvironmentDetails = {
|
|
86
|
-
failedStack: boolean;
|
|
87
|
-
releasedSuccessfully: boolean;
|
|
88
|
-
rolledBackStack: boolean;
|
|
89
|
-
stack: string;
|
|
90
|
-
};
|
|
91
|
-
type EnvironmentResponse = {
|
|
92
|
-
liveStack: EnvironmentDetails;
|
|
93
|
-
otherStacks: EnvironmentDetails[];
|
|
94
|
-
};
|
|
95
|
-
export type StacksResponse = Record<Environment, EnvironmentResponse>;
|
|
96
80
|
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { type MediaPlacement } from '../../../../../constants';
|
|
2
2
|
import { type BlockProps } from '../types';
|
|
3
|
-
export type OnPreviewRenderOptions = {
|
|
4
|
-
placement?: MediaPlacement;
|
|
5
|
-
};
|
|
6
3
|
export type PreviewBlockProps = {
|
|
7
4
|
/**
|
|
8
5
|
* Indicate whether preview block should ignore the padding its parent container.
|
|
@@ -67,8 +67,6 @@ export interface HoverCardComponentProps extends HoverCardProps, HoverCardIntern
|
|
|
67
67
|
canOpen?: boolean;
|
|
68
68
|
closeOnChildClick?: boolean;
|
|
69
69
|
}
|
|
70
|
-
export type PreviewDisplay = 'card' | 'embed';
|
|
71
|
-
export type PreviewInvokeMethod = 'keyboard' | 'mouse_hover' | 'mouse_click';
|
|
72
70
|
export type HoverCardContentProps = {
|
|
73
71
|
id?: string;
|
|
74
72
|
analytics?: AnalyticsFacade;
|
|
@@ -7,10 +7,6 @@ export declare const NoLinkAppearance: import("@emotion/styled").StyledComponent
|
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
8
8
|
as?: import("react").ElementType<any> | undefined;
|
|
9
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
10
|
-
export declare const LowercaseAppearance: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
14
10
|
export declare const LinkAppearance: import("@emotion/styled").StyledComponent<{
|
|
15
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
12
|
as?: import("react").ElementType<any> | undefined;
|