@atlaskit/link-datasource 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/analytics/constants.js +1 -1
- package/dist/cjs/analytics/index.js +1 -14
- package/dist/cjs/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +21 -0
- package/dist/cjs/analytics/wrappers/render-failed/index.js +21 -0
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/analytics/constants.js +1 -1
- package/dist/es2019/analytics/index.js +1 -15
- package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +16 -0
- package/dist/es2019/analytics/wrappers/render-failed/index.js +5 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/analytics/constants.js +1 -1
- package/dist/esm/analytics/index.js +1 -14
- package/dist/esm/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +15 -0
- package/dist/esm/analytics/wrappers/render-failed/index.js +9 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/types/analytics/generated/analytics.types.d.ts +2 -2
- package/dist/types/analytics/index.d.ts +0 -2
- package/dist/types/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.d.ts +3 -0
- package/dist/types/analytics/wrappers/render-failed/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types-ts4.5/analytics/constants.d.ts +0 -3
- package/dist/types-ts4.5/analytics/generated/analytics.types.d.ts +0 -134
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +0 -31
- package/dist/types-ts4.5/analytics/generated/use-analytics-events.d.ts +0 -7
- package/dist/types-ts4.5/analytics/index.d.ts +0 -10
- package/dist/types-ts4.5/analytics/types.d.ts +0 -18
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +0 -2
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +0 -22
- package/dist/types-ts4.5/analytics/ufoExperiences/index.d.ts +0 -5
- package/dist/types-ts4.5/analytics/ufoExperiences/types.d.ts +0 -14
- package/dist/types-ts4.5/analytics/utils.d.ts +0 -3
- package/dist/types-ts4.5/common/types.d.ts +0 -1
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +0 -9
- package/dist/types-ts4.5/hooks/useDatasourceTableState.d.ts +0 -31
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +0 -8
- package/dist/types-ts4.5/hooks/useValidateAqlText.d.ts +0 -7
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -54
- package/dist/types-ts4.5/i18n/da.d.ts +0 -54
- package/dist/types-ts4.5/i18n/de.d.ts +0 -54
- package/dist/types-ts4.5/i18n/en.d.ts +0 -55
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -55
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -55
- package/dist/types-ts4.5/i18n/es.d.ts +0 -54
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -54
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -54
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -54
- package/dist/types-ts4.5/i18n/it.d.ts +0 -54
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -54
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -54
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -54
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -54
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -54
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -54
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -54
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -54
- package/dist/types-ts4.5/i18n/th.d.ts +0 -54
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -54
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -54
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -54
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -54
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -54
- package/dist/types-ts4.5/index.d.ts +0 -10
- package/dist/types-ts4.5/services/cmdbService.d.ts +0 -7
- package/dist/types-ts4.5/services/getAvailableJiraSites.d.ts +0 -6
- package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +0 -6
- package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +0 -5
- package/dist/types-ts4.5/types/assets/types.d.ts +0 -34
- package/dist/types-ts4.5/ui/assets-modal/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/assets-modal/modal/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/modal/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/assets/crystal-ball-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +0 -8
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +0 -21
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +0 -3
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +0 -2
- package/dist/types-ts4.5/ui/assets-modal/search-container/styled.d.ts +0 -19
- package/dist/types-ts4.5/ui/assets-modal/types.d.ts +0 -23
- package/dist/types-ts4.5/ui/common/error-state/access-required-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/common/error-state/access-required.d.ts +0 -6
- package/dist/types-ts4.5/ui/common/error-state/loading-error-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/common/error-state/loading-error.d.ts +0 -6
- package/dist/types-ts4.5/ui/common/error-state/messages.d.ts +0 -47
- package/dist/types-ts4.5/ui/common/error-state/modal-loading-error.d.ts +0 -6
- package/dist/types-ts4.5/ui/common/error-state/no-results.d.ts +0 -6
- package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +0 -3
- package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +0 -5
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +0 -7
- package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +0 -12
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +0 -6
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +0 -6
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/render-type/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/render-type/number/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/richtext/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/issue-like-table/styled.d.ts +0 -18
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +0 -53
- package/dist/types-ts4.5/ui/issue-like-table/useIsOnScreen.d.ts +0 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-search-input/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/assets/initial-state-svg.d.ts +0 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/initial-state-view/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/hooks/useBasicFilterHook.d.ts +0 -4
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/common/dropdown/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/containers/project/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/basic-filters/ui/index.d.ts +0 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +0 -7
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/jira-issues-modal/jql-editor/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/messages.d.ts +0 -42
- package/dist/types-ts4.5/ui/jira-issues-modal/mode-switcher/index.d.ts +0 -12
- package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/index.d.ts +0 -10
- package/dist/types-ts4.5/ui/jira-issues-modal/site-selector/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +0 -43
- package/dist/types-ts4.5/ui/table-footer/index.d.ts +0 -8
- package/dist/types-ts4.5/ui/table-footer/messages.d.ts +0 -17
- package/dist/types-ts4.5/ui/table-footer/sync-info/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/table-footer/sync-info/messages.d.ts +0 -12
- package/tmp/api-report-tmp.d.ts +0 -153
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#40745](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40745) [`f1fb082c389`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f1fb082c389) - DatasourceRenderFailedAnalyticsWrapper is now being exported as lazy loaded component
|
|
8
|
+
|
|
3
9
|
## 1.6.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.DatasourceRenderFailedAnalyticsWrapper = void 0;
|
|
7
6
|
Object.defineProperty(exports, "EVENT_CHANNEL", {
|
|
8
7
|
enumerable: true,
|
|
9
8
|
get: function get() {
|
|
@@ -11,20 +10,8 @@ Object.defineProperty(exports, "EVENT_CHANNEL", {
|
|
|
11
10
|
}
|
|
12
11
|
});
|
|
13
12
|
exports.useDatasourceAnalyticsEvents = void 0;
|
|
14
|
-
var _react = require("react");
|
|
15
13
|
var _constants = require("./constants");
|
|
16
|
-
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
17
14
|
var _useAnalyticsEvents = require("./generated/use-analytics-events");
|
|
18
15
|
var useDatasourceAnalyticsEvents = exports.useDatasourceAnalyticsEvents = function useDatasourceAnalyticsEvents() {
|
|
19
16
|
return (0, _useAnalyticsEvents.useAnalyticsEvents)();
|
|
20
|
-
};
|
|
21
|
-
var DatasourceRenderFailedAnalyticsWrapper = exports.DatasourceRenderFailedAnalyticsWrapper = (0, _analyticsNext.withAnalyticsContext)(_constants.packageMetaData)(function (props) {
|
|
22
|
-
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
23
|
-
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
24
|
-
(0, _react.useEffect)(function () {
|
|
25
|
-
fireEvent('ui.datasource.renderFailure', {
|
|
26
|
-
reason: 'internal'
|
|
27
|
-
});
|
|
28
|
-
}, [fireEvent]);
|
|
29
|
-
return props.children;
|
|
30
|
-
});
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
9
|
+
var _constants = require("../../constants");
|
|
10
|
+
var _index = require("../../index");
|
|
11
|
+
var DatasourceRenderFailedAnalyticsWrapper = (0, _analyticsNext.withAnalyticsContext)(_constants.packageMetaData)(function (props) {
|
|
12
|
+
var _useDatasourceAnalyti = (0, _index.useDatasourceAnalyticsEvents)(),
|
|
13
|
+
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
14
|
+
(0, _react.useEffect)(function () {
|
|
15
|
+
fireEvent('operational.datasource.renderFailure', {
|
|
16
|
+
reason: 'internal'
|
|
17
|
+
});
|
|
18
|
+
}, [fireEvent]);
|
|
19
|
+
return props.children;
|
|
20
|
+
});
|
|
21
|
+
var _default = exports.default = DatasourceRenderFailedAnalyticsWrapper;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.LazyLoadedDatasourceRenderFailedAnalyticsWrapper = void 0;
|
|
8
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (0, _typeof2.default)(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
+
var LazyDatasourceRenderFailedAnalyticsWrapper = /*#__PURE__*/_react.default.lazy(function () {
|
|
13
|
+
return Promise.resolve().then(function () {
|
|
14
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_linkdatasource-datasourceRenderFailedAnalyticsWrapper" */'./datasourceRenderFailedAnalyticsWrapper'));
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var LazyLoadedDatasourceRenderFailedAnalyticsWrapper = exports.LazyLoadedDatasourceRenderFailedAnalyticsWrapper = function LazyLoadedDatasourceRenderFailedAnalyticsWrapper(props) {
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
19
|
+
fallback: null
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(LazyDatasourceRenderFailedAnalyticsWrapper, props));
|
|
21
|
+
};
|
package/dist/cjs/index.js
CHANGED
|
@@ -17,12 +17,6 @@ Object.defineProperty(exports, "AssetsConfigModal", {
|
|
|
17
17
|
return _assetsModal.default;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
Object.defineProperty(exports, "DatasourceRenderFailedAnalyticsWrapper", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _analytics.DatasourceRenderFailedAnalyticsWrapper;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
20
|
Object.defineProperty(exports, "DatasourceTableView", {
|
|
27
21
|
enumerable: true,
|
|
28
22
|
get: function get() {
|
|
@@ -47,9 +41,15 @@ Object.defineProperty(exports, "JiraIssuesConfigModal", {
|
|
|
47
41
|
return _jiraIssuesModal.default;
|
|
48
42
|
}
|
|
49
43
|
});
|
|
44
|
+
Object.defineProperty(exports, "LazyLoadedDatasourceRenderFailedAnalyticsWrapper", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function get() {
|
|
47
|
+
return _renderFailed.LazyLoadedDatasourceRenderFailedAnalyticsWrapper;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
50
|
var _jiraIssuesModal = _interopRequireWildcard(require("./ui/jira-issues-modal"));
|
|
51
51
|
var _assetsModal = _interopRequireWildcard(require("./ui/assets-modal"));
|
|
52
52
|
var _datasourceTableView = _interopRequireDefault(require("./ui/datasource-table-view"));
|
|
53
|
-
var
|
|
53
|
+
var _renderFailed = require("./analytics/wrappers/render-failed");
|
|
54
54
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
55
55
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -234,7 +234,7 @@ var analyticsContextAttributes = {
|
|
|
234
234
|
};
|
|
235
235
|
var analyticsContextData = {
|
|
236
236
|
packageName: "@atlaskit/link-datasource",
|
|
237
|
-
packageVersion: "1.
|
|
237
|
+
packageVersion: "1.7.0",
|
|
238
238
|
source: 'datasourceConfigModal'
|
|
239
239
|
};
|
|
240
240
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
1
|
export { EVENT_CHANNEL } from './constants';
|
|
3
|
-
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
|
-
import { packageMetaData } from './constants';
|
|
5
2
|
import { useAnalyticsEvents } from './generated/use-analytics-events';
|
|
6
|
-
export const useDatasourceAnalyticsEvents = () => useAnalyticsEvents();
|
|
7
|
-
export const DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(packageMetaData)(props => {
|
|
8
|
-
const {
|
|
9
|
-
fireEvent
|
|
10
|
-
} = useDatasourceAnalyticsEvents();
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
fireEvent('ui.datasource.renderFailure', {
|
|
13
|
-
reason: 'internal'
|
|
14
|
-
});
|
|
15
|
-
}, [fireEvent]);
|
|
16
|
-
return props.children;
|
|
17
|
-
});
|
|
3
|
+
export const useDatasourceAnalyticsEvents = () => useAnalyticsEvents();
|
package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
|
+
import { packageMetaData } from '../../constants';
|
|
4
|
+
import { useDatasourceAnalyticsEvents } from '../../index';
|
|
5
|
+
const DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(packageMetaData)(props => {
|
|
6
|
+
const {
|
|
7
|
+
fireEvent
|
|
8
|
+
} = useDatasourceAnalyticsEvents();
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
fireEvent('operational.datasource.renderFailure', {
|
|
11
|
+
reason: 'internal'
|
|
12
|
+
});
|
|
13
|
+
}, [fireEvent]);
|
|
14
|
+
return props.children;
|
|
15
|
+
});
|
|
16
|
+
export default DatasourceRenderFailedAnalyticsWrapper;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React, { Suspense } from 'react';
|
|
2
|
+
const LazyDatasourceRenderFailedAnalyticsWrapper = /*#__PURE__*/React.lazy(() => import( /* webpackChunkName: "@atlaskit-internal_linkdatasource-datasourceRenderFailedAnalyticsWrapper" */'./datasourceRenderFailedAnalyticsWrapper'));
|
|
3
|
+
export const LazyLoadedDatasourceRenderFailedAnalyticsWrapper = props => /*#__PURE__*/React.createElement(Suspense, {
|
|
4
|
+
fallback: null
|
|
5
|
+
}, /*#__PURE__*/React.createElement(LazyDatasourceRenderFailedAnalyticsWrapper, props));
|
package/dist/es2019/index.js
CHANGED
|
@@ -4,4 +4,4 @@ export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
|
4
4
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
5
5
|
export { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from './ui/jira-issues-modal';
|
|
6
6
|
export { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from './ui/assets-modal';
|
|
7
|
-
export {
|
|
7
|
+
export { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from './analytics/wrappers/render-failed';
|
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
1
|
export { EVENT_CHANNEL } from './constants';
|
|
3
|
-
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
4
|
-
import { packageMetaData } from './constants';
|
|
5
2
|
import { useAnalyticsEvents } from './generated/use-analytics-events';
|
|
6
3
|
export var useDatasourceAnalyticsEvents = function useDatasourceAnalyticsEvents() {
|
|
7
4
|
return useAnalyticsEvents();
|
|
8
|
-
};
|
|
9
|
-
export var DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(packageMetaData)(function (props) {
|
|
10
|
-
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
11
|
-
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
12
|
-
useEffect(function () {
|
|
13
|
-
fireEvent('ui.datasource.renderFailure', {
|
|
14
|
-
reason: 'internal'
|
|
15
|
-
});
|
|
16
|
-
}, [fireEvent]);
|
|
17
|
-
return props.children;
|
|
18
|
-
});
|
|
5
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
|
+
import { packageMetaData } from '../../constants';
|
|
4
|
+
import { useDatasourceAnalyticsEvents } from '../../index';
|
|
5
|
+
var DatasourceRenderFailedAnalyticsWrapper = withAnalyticsContext(packageMetaData)(function (props) {
|
|
6
|
+
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
7
|
+
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
8
|
+
useEffect(function () {
|
|
9
|
+
fireEvent('operational.datasource.renderFailure', {
|
|
10
|
+
reason: 'internal'
|
|
11
|
+
});
|
|
12
|
+
}, [fireEvent]);
|
|
13
|
+
return props.children;
|
|
14
|
+
});
|
|
15
|
+
export default DatasourceRenderFailedAnalyticsWrapper;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { Suspense } from 'react';
|
|
2
|
+
var LazyDatasourceRenderFailedAnalyticsWrapper = /*#__PURE__*/React.lazy(function () {
|
|
3
|
+
return import( /* webpackChunkName: "@atlaskit-internal_linkdatasource-datasourceRenderFailedAnalyticsWrapper" */'./datasourceRenderFailedAnalyticsWrapper');
|
|
4
|
+
});
|
|
5
|
+
export var LazyLoadedDatasourceRenderFailedAnalyticsWrapper = function LazyLoadedDatasourceRenderFailedAnalyticsWrapper(props) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(Suspense, {
|
|
7
|
+
fallback: null
|
|
8
|
+
}, /*#__PURE__*/React.createElement(LazyDatasourceRenderFailedAnalyticsWrapper, props));
|
|
9
|
+
};
|
package/dist/esm/index.js
CHANGED
|
@@ -4,4 +4,4 @@ export { default as DatasourceTableView } from './ui/datasource-table-view';
|
|
|
4
4
|
export { default as JSMAssetsConfigModal } from './ui/assets-modal';
|
|
5
5
|
export { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from './ui/jira-issues-modal';
|
|
6
6
|
export { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from './ui/assets-modal';
|
|
7
|
-
export {
|
|
7
|
+
export { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from './analytics/wrappers/render-failed';
|
|
@@ -225,7 +225,7 @@ var analyticsContextAttributes = {
|
|
|
225
225
|
};
|
|
226
226
|
var analyticsContextData = {
|
|
227
227
|
packageName: "@atlaskit/link-datasource",
|
|
228
|
-
packageVersion: "1.
|
|
228
|
+
packageVersion: "1.7.0",
|
|
229
229
|
source: 'datasourceConfigModal'
|
|
230
230
|
};
|
|
231
231
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::24da75a4acd4c592c9cfed50e9897853>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
9
|
export type PackageMetaDataType = {
|
|
@@ -117,7 +117,7 @@ export type AnalyticsEventAttributes = {
|
|
|
117
117
|
'ui.datasource.renderSuccess': DatasourceRenderSuccessAttributesType;
|
|
118
118
|
/**
|
|
119
119
|
* Fired when an inserted datasource fails to render */
|
|
120
|
-
'
|
|
120
|
+
'operational.datasource.renderFailure': DatasourceRenderFailureAttributesType;
|
|
121
121
|
/**
|
|
122
122
|
* Fired when user scrolls to the next page/list of the objects */
|
|
123
123
|
'track.nextItem.loaded': NextItemLoadedAttributesType;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export { EVENT_CHANNEL } from './constants';
|
|
3
2
|
export declare const useDatasourceAnalyticsEvents: () => {
|
|
4
3
|
fireEvent: <K extends keyof import("./generated/analytics.types").AnalyticsEventAttributes>(params_0: K, ...params_1: undefined extends import("./generated/analytics.types").AnalyticsEventAttributes[K] ? [param?: import("./generated/analytics.types").AnalyticsEventAttributes[K] | undefined] : [param: import("./generated/analytics.types").AnalyticsEventAttributes[K]]) => void;
|
|
5
4
|
};
|
|
6
|
-
export declare const DatasourceRenderFailedAnalyticsWrapper: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export type { AssetsDatasourceAdf, AssetsDatasourceParameters, } from './ui/asse
|
|
|
7
7
|
export { JIRA_LIST_OF_LINKS_DATASOURCE_ID } from './ui/jira-issues-modal';
|
|
8
8
|
export { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from './ui/assets-modal';
|
|
9
9
|
export type { DatasourceAdf, DatasourceAdfView, DatasourceAdfTableView, } from '@atlaskit/linking-common/types';
|
|
10
|
-
export {
|
|
10
|
+
export { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from './analytics/wrappers/render-failed';
|
package/package.json
CHANGED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
|
-
*
|
|
6
|
-
* @codegen <<SignedSource::05b7b33172b55f75035f0d77317a3f4f>>
|
|
7
|
-
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
|
-
*/
|
|
9
|
-
export type PackageMetaDataType = {
|
|
10
|
-
packageName: string;
|
|
11
|
-
packageVersion: string;
|
|
12
|
-
};
|
|
13
|
-
export type AnalyticsContextType = {
|
|
14
|
-
source: 'datasourceConfigModal';
|
|
15
|
-
};
|
|
16
|
-
export type AnalyticsContextAttributesType = {
|
|
17
|
-
dataProvider: 'jira-issues' | 'jsm-assets';
|
|
18
|
-
};
|
|
19
|
-
export type DatasourceModalDialogViewedAttributesType = {};
|
|
20
|
-
export type ModalReadyDatasourceAttributesType = {
|
|
21
|
-
instancesCount: number;
|
|
22
|
-
};
|
|
23
|
-
export type JqlEditorSearchedAttributesType = {};
|
|
24
|
-
export type FormSubmittedBasicSearchAttributesType = {};
|
|
25
|
-
export type EmptyResultShownDatasourceAttributesType = {};
|
|
26
|
-
export type ErrorShownAttributesType = {
|
|
27
|
-
reason: 'network' | 'access';
|
|
28
|
-
};
|
|
29
|
-
export type ButtonClickedSyncAttributesType = {
|
|
30
|
-
extensionKey: string | null;
|
|
31
|
-
destinationObjectTypes: unknown[];
|
|
32
|
-
};
|
|
33
|
-
export type ButtonClickedInsertAttributesType = {
|
|
34
|
-
searchCount: number;
|
|
35
|
-
totalItemCount: number;
|
|
36
|
-
displayedColumnCount: number | null;
|
|
37
|
-
display: 'datasource_inline' | 'datasource_table' | 'inline';
|
|
38
|
-
destinationObjectTypes: unknown[];
|
|
39
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
40
|
-
extensionKey: string | null;
|
|
41
|
-
actions: unknown[];
|
|
42
|
-
};
|
|
43
|
-
export type ButtonClickedCancelAttributesType = {
|
|
44
|
-
searchCount: number;
|
|
45
|
-
destinationObjectTypes: unknown[];
|
|
46
|
-
extensionKey: string | null;
|
|
47
|
-
actions: unknown[];
|
|
48
|
-
};
|
|
49
|
-
export type LinkClickedSingleItemAttributesType = {
|
|
50
|
-
extensionKey: string | null;
|
|
51
|
-
destinationObjectTypes: unknown[];
|
|
52
|
-
};
|
|
53
|
-
export type DatasourceRenderSuccessAttributesType = {
|
|
54
|
-
totalItemCount: number;
|
|
55
|
-
destinationObjectTypes: unknown[];
|
|
56
|
-
displayedColumnCount: number | null;
|
|
57
|
-
extensionKey: string | null;
|
|
58
|
-
display: 'table';
|
|
59
|
-
};
|
|
60
|
-
export type DatasourceRenderFailureAttributesType = {};
|
|
61
|
-
export type NextItemLoadedAttributesType = {
|
|
62
|
-
destinationObjectTypes: unknown[];
|
|
63
|
-
extensionKey: string | null;
|
|
64
|
-
loadedItemCount: number;
|
|
65
|
-
};
|
|
66
|
-
export type TableViewedDatasourceConfigModalAttributesType = {
|
|
67
|
-
destinationObjectTypes: unknown[];
|
|
68
|
-
totalItemCount: number;
|
|
69
|
-
displayedColumnCount: number | null;
|
|
70
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
71
|
-
extensionKey: string | null;
|
|
72
|
-
};
|
|
73
|
-
export type LinkViewedSingleItemAttributesType = {
|
|
74
|
-
destinationObjectTypes: unknown[];
|
|
75
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
76
|
-
extensionKey: string | null;
|
|
77
|
-
};
|
|
78
|
-
export type LinkViewedCountAttributesType = {
|
|
79
|
-
destinationObjectTypes: unknown[];
|
|
80
|
-
searchMethod: 'datasource_search_query' | 'datasource_basic_filter' | 'datasource_saved_filter' | null;
|
|
81
|
-
totalItemCount: number;
|
|
82
|
-
extensionKey: string | null;
|
|
83
|
-
};
|
|
84
|
-
export type AnalyticsEventAttributes = {
|
|
85
|
-
/**
|
|
86
|
-
* Fires when user sees modal dialog. */
|
|
87
|
-
'screen.datasourceModalDialog.viewed': DatasourceModalDialogViewedAttributesType;
|
|
88
|
-
/**
|
|
89
|
-
* Fires when the datasource modal is ready for searching and displaying search results. */
|
|
90
|
-
'ui.modal.ready.datasource': ModalReadyDatasourceAttributesType;
|
|
91
|
-
/**
|
|
92
|
-
* Fires when search is initiated via the search icon or enter key press for jql editor input field. */
|
|
93
|
-
'ui.jqlEditor.searched': JqlEditorSearchedAttributesType;
|
|
94
|
-
/**
|
|
95
|
-
* Fires when search is initiated via the search icon or enter key press from the basic input textfield. */
|
|
96
|
-
'ui.form.submitted.basicSearch': FormSubmittedBasicSearchAttributesType;
|
|
97
|
-
/**
|
|
98
|
-
* Fires when datasource results are empty. */
|
|
99
|
-
'ui.emptyResult.shown.datasource': EmptyResultShownDatasourceAttributesType;
|
|
100
|
-
/**
|
|
101
|
-
* Fires when datasource errors state is shown. */
|
|
102
|
-
'ui.error.shown': ErrorShownAttributesType;
|
|
103
|
-
/**
|
|
104
|
-
* Fired when user clicks on datasource table sync button */
|
|
105
|
-
'ui.button.clicked.sync': ButtonClickedSyncAttributesType;
|
|
106
|
-
/**
|
|
107
|
-
* Fired on insert button click */
|
|
108
|
-
'ui.button.clicked.insert': ButtonClickedInsertAttributesType;
|
|
109
|
-
/**
|
|
110
|
-
* Fired on cancel button click */
|
|
111
|
-
'ui.button.clicked.cancel': ButtonClickedCancelAttributesType;
|
|
112
|
-
/**
|
|
113
|
-
* Fired when user clicks on datasource items */
|
|
114
|
-
'ui.link.clicked.singleItem': LinkClickedSingleItemAttributesType;
|
|
115
|
-
/**
|
|
116
|
-
* Fired when an inserted datasource resolves / renders. */
|
|
117
|
-
'ui.datasource.renderSuccess': DatasourceRenderSuccessAttributesType;
|
|
118
|
-
/**
|
|
119
|
-
* Fired when an inserted datasource fails to render */
|
|
120
|
-
'ui.datasource.renderFailure': DatasourceRenderFailureAttributesType;
|
|
121
|
-
/**
|
|
122
|
-
* Fired when user scrolls to the next page/list of the objects */
|
|
123
|
-
'track.nextItem.loaded': NextItemLoadedAttributesType;
|
|
124
|
-
/**
|
|
125
|
-
* Fired when the datasource results are displayed as table inside of datasource configuration modal */
|
|
126
|
-
'ui.table.viewed.datasourceConfigModal': TableViewedDatasourceConfigModalAttributesType;
|
|
127
|
-
/**
|
|
128
|
-
* Fired when the datasource results are displayed as link(may be smart-link) for a single item */
|
|
129
|
-
'ui.link.viewed.singleItem': LinkViewedSingleItemAttributesType;
|
|
130
|
-
/**
|
|
131
|
-
* Fired when the datasource results are displayed as link( smart-link) in count mode. */
|
|
132
|
-
'ui.link.viewed.count': LinkViewedCountAttributesType;
|
|
133
|
-
};
|
|
134
|
-
export type EventKey = keyof AnalyticsEventAttributes;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* Generates Typescript types for analytics events from analytics.spec.yaml
|
|
5
|
-
*
|
|
6
|
-
* @codegen <<SignedSource::819168596ba17484cadda969f8ecf82d>>
|
|
7
|
-
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
|
-
*/
|
|
9
|
-
import { AnalyticsEventAttributes, EventKey } from './analytics.types';
|
|
10
|
-
type OptionalIfUndefined<T> = undefined extends T ? [
|
|
11
|
-
param?: T
|
|
12
|
-
] : [
|
|
13
|
-
param: T
|
|
14
|
-
];
|
|
15
|
-
export type EventPayloadAttributes<K extends EventKey> = OptionalIfUndefined<AnalyticsEventAttributes[K]>;
|
|
16
|
-
type EventTypes = 'ui' | 'track' | 'operational' | 'screen';
|
|
17
|
-
type ScreenEventPayload<K extends EventKey> = {
|
|
18
|
-
eventType: 'screen';
|
|
19
|
-
name: string;
|
|
20
|
-
action: 'viewed';
|
|
21
|
-
attributes?: AnalyticsEventAttributes[K];
|
|
22
|
-
};
|
|
23
|
-
type EventPayload<K extends EventKey> = {
|
|
24
|
-
eventType: Omit<EventTypes, 'screen'>;
|
|
25
|
-
actionSubject: string;
|
|
26
|
-
action: string;
|
|
27
|
-
actionSubjectId?: string;
|
|
28
|
-
attributes?: AnalyticsEventAttributes[K];
|
|
29
|
-
};
|
|
30
|
-
declare const createEventPayload: <K extends keyof AnalyticsEventAttributes>(eventKey: K, ...[attributes]: OptionalIfUndefined<AnalyticsEventAttributes[K]>) => ScreenEventPayload<K> | EventPayload<K>;
|
|
31
|
-
export default createEventPayload;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const useAnalyticsEvents: () => {
|
|
2
|
-
fireEvent: <K extends keyof import("./analytics.types").AnalyticsEventAttributes>(params_0: K, ...params_1: undefined extends import("./analytics.types").AnalyticsEventAttributes[K] ? [
|
|
3
|
-
param?: import("./analytics.types").AnalyticsEventAttributes[K] | undefined
|
|
4
|
-
] : [
|
|
5
|
-
param: import("./analytics.types").AnalyticsEventAttributes[K]
|
|
6
|
-
]) => void;
|
|
7
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export { EVENT_CHANNEL } from './constants';
|
|
3
|
-
export declare const useDatasourceAnalyticsEvents: () => {
|
|
4
|
-
fireEvent: <K extends keyof import("./generated/analytics.types").AnalyticsEventAttributes>(params_0: K, ...params_1: undefined extends import("./generated/analytics.types").AnalyticsEventAttributes[K] ? [
|
|
5
|
-
param?: import("./generated/analytics.types").AnalyticsEventAttributes[K] | undefined
|
|
6
|
-
] : [
|
|
7
|
-
param: import("./generated/analytics.types").AnalyticsEventAttributes[K]
|
|
8
|
-
]) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const DatasourceRenderFailedAnalyticsWrapper: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<any>>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum DatasourceAction {
|
|
2
|
-
COLUMN_ADDED = "column added",
|
|
3
|
-
COLUMN_REMOVED = "column removed",
|
|
4
|
-
COLUMN_REORDERED = "column reordered",
|
|
5
|
-
INSTANCE_UPDATED = "instance updated",
|
|
6
|
-
QUERY_UPDATED = "query updated",
|
|
7
|
-
DISPLAY_VIEW_CHANGED = "display view changed",
|
|
8
|
-
NEXT_PAGE_SCROLLED = "next page scrolled"
|
|
9
|
-
}
|
|
10
|
-
export declare enum DatasourceDisplay {
|
|
11
|
-
DATASOURCE_TABLE = "datasource_table",
|
|
12
|
-
DATASOURCE_INLINE = "datasource_inline",
|
|
13
|
-
INLINE = "inline"
|
|
14
|
-
}
|
|
15
|
-
export declare enum DatasourceSearchMethod {
|
|
16
|
-
DATASOURCE_BASIC_FILTER = "datasource_basic_filter",
|
|
17
|
-
DATASOURCE_SEARCH_QUERY = "datasource_search_query"
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DatasourceTableStatusType } from '@atlaskit/linking-types';
|
|
2
|
-
interface DataRenderedUfoExperienceProps {
|
|
3
|
-
status: DatasourceTableStatusType;
|
|
4
|
-
experienceId: string;
|
|
5
|
-
itemCount: number;
|
|
6
|
-
canBeLink?: boolean;
|
|
7
|
-
extensionKey?: string | null;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hook to mark DataRendered UFO experience as either Success or Failure
|
|
11
|
-
* 1. Success when
|
|
12
|
-
* * its rendered as a link
|
|
13
|
-
* * it returns empty results
|
|
14
|
-
* * the request is unauthorized
|
|
15
|
-
* 2. Fail when
|
|
16
|
-
* * request is rejected
|
|
17
|
-
*
|
|
18
|
-
* Note:
|
|
19
|
-
* * When the request is resolved as a datasource table, it will be marked success in the table component, every other success case is marked by this hook
|
|
20
|
-
*/
|
|
21
|
-
export declare const useDataRenderedUfoExperience: ({ status, experienceId, itemCount, canBeLink, extensionKey, }: DataRenderedUfoExperienceProps) => void;
|
|
22
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UfoExperience } from './types';
|
|
2
|
-
export declare const startUfoExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
3
|
-
export declare const succeedUfoExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
4
|
-
export declare const failUfoExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
5
|
-
export declare const addMetadataToExperience: ({ name, metadata }: UfoExperience, id: string) => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface DatasourceRendered {
|
|
2
|
-
name: 'datasource-rendered';
|
|
3
|
-
metadata?: {
|
|
4
|
-
extensionKey?: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
interface ColumnPickerRendered {
|
|
8
|
-
name: 'column-picker-rendered';
|
|
9
|
-
metadata?: {
|
|
10
|
-
extensionKey?: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export type UfoExperience = DatasourceRendered | ColumnPickerRendered;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type JiraSearchMethod = 'basic' | 'jql';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ObjectSchema } from '../types/assets/types';
|
|
2
|
-
import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
|
|
3
|
-
export type UseAssetsClientState = {
|
|
4
|
-
workspaceId: string | undefined;
|
|
5
|
-
workspaceError: Error | undefined;
|
|
6
|
-
objectSchema: ObjectSchema | undefined;
|
|
7
|
-
assetsClientLoading: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const useAssetsClient: (initialParameters?: AssetsDatasourceParameters) => UseAssetsClientState;
|