@atlaskit/link-datasource 6.5.0 → 6.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 +43 -0
- package/dist/cjs/analytics/generated/use-analytics-events.js +2 -2
- package/dist/cjs/analytics/ufoExperiences/index.js +11 -10
- package/dist/cjs/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +2 -2
- package/dist/cjs/hooks/useAssetsClient.js +2 -2
- package/dist/cjs/hooks/useDatasourceTableFlag.js +2 -2
- package/dist/cjs/hooks/useLoadOptions.js +2 -2
- package/dist/cjs/services/getAvailableSites.js +2 -2
- package/dist/cjs/ui/assets-modal/modal/index.js +11 -7
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +13 -11
- package/dist/cjs/ui/assets-modal/search-container/index.js +3 -3
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +6 -6
- package/dist/cjs/ui/common/error-state/access-required.js +1 -1
- package/dist/cjs/ui/common/error-state/loading-error.js +1 -1
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +2 -2
- package/dist/cjs/ui/common/error-state/provider-auth-required.js +9 -8
- package/dist/cjs/ui/common/initial-state-view/index.js +2 -2
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +6 -6
- package/dist/cjs/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/cjs/ui/common/modal/datasource-modal/createDatasourceModal.js +2 -2
- package/dist/cjs/ui/common/modal/datasource-modal/index.js +1 -1
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/cjs/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +9 -9
- package/dist/cjs/ui/common/modal/mode-switcher/index.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/control.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/custom-checkbox-option.js +4 -4
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/formatOptionLabel.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/index.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.js +3 -3
- package/dist/cjs/ui/common/modal/popup-select/menu-list/loadingMessage.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/showMoreButton.js +2 -2
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +4 -4
- package/dist/cjs/ui/common/modal/search-count/index.js +2 -2
- package/dist/cjs/ui/common/modal/site-selector/index.js +5 -5
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +2 -2
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +2 -2
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +13 -9
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +13 -9
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +5 -4
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +20 -6
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +19 -17
- package/dist/cjs/ui/issue-like-table/edit-type/icon/index.js +4 -4
- package/dist/cjs/ui/issue-like-table/edit-type/status/index.js +5 -5
- package/dist/cjs/ui/issue-like-table/edit-type/text/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/edit-type/user/index.js +7 -6
- package/dist/cjs/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/cjs/ui/issue-like-table/index.js +155 -102
- package/dist/cjs/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/tag/index.js +2 -2
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +4 -4
- package/dist/cjs/ui/issue-like-table/shared-components/avatar/index.js +3 -3
- package/dist/cjs/ui/issue-like-table/table-cell-content/index.js +13 -20
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/cjs/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/cjs/ui/issue-like-table/table-settings-menu/index.js +96 -0
- package/dist/cjs/ui/issue-like-table/table-settings-menu/messages.js +24 -0
- package/dist/cjs/ui/jira-issues-modal/jql-editor/index.js +2 -2
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +15 -10
- package/dist/cjs/ui/table-footer/index.js +2 -2
- package/dist/es2019/analytics/generated/use-analytics-events.js +1 -1
- package/dist/es2019/analytics/ufoExperiences/index.js +2 -1
- package/dist/es2019/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +1 -1
- package/dist/es2019/hooks/useAssetsClient.js +1 -1
- package/dist/es2019/hooks/useDatasourceTableFlag.js +1 -1
- package/dist/es2019/hooks/useLoadOptions.js +1 -1
- package/dist/es2019/services/getAvailableSites.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +6 -2
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +8 -6
- package/dist/es2019/ui/assets-modal/search-container/index.js +2 -2
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +3 -3
- package/dist/es2019/ui/common/error-state/access-required.js +1 -1
- package/dist/es2019/ui/common/error-state/loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +5 -4
- package/dist/es2019/ui/common/initial-state-view/index.js +2 -2
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +3 -3
- package/dist/es2019/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/es2019/ui/common/modal/datasource-modal/createDatasourceModal.js +1 -1
- package/dist/es2019/ui/common/modal/datasource-modal/index.js +1 -1
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/es2019/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +5 -3
- package/dist/es2019/ui/common/modal/mode-switcher/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/control.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/custom-checkbox-option.js +2 -2
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/formatOptionLabel.js +2 -2
- package/dist/es2019/ui/common/modal/popup-select/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.js +2 -2
- package/dist/es2019/ui/common/modal/popup-select/menu-list/loadingMessage.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/showMoreButton.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +3 -3
- package/dist/es2019/ui/common/modal/search-count/index.js +1 -1
- package/dist/es2019/ui/common/modal/site-selector/index.js +3 -3
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +7 -3
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +7 -3
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +2 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +36 -20
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +11 -9
- package/dist/es2019/ui/issue-like-table/edit-type/icon/index.js +2 -2
- package/dist/es2019/ui/issue-like-table/edit-type/status/index.js +3 -3
- package/dist/es2019/ui/issue-like-table/edit-type/text/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/edit-type/user/index.js +4 -3
- package/dist/es2019/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/es2019/ui/issue-like-table/index.js +59 -11
- package/dist/es2019/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/tag/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +3 -3
- package/dist/es2019/ui/issue-like-table/shared-components/avatar/index.js +2 -2
- package/dist/es2019/ui/issue-like-table/table-cell-content/index.js +12 -19
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/es2019/ui/issue-like-table/table-settings-menu/index.js +76 -0
- package/dist/es2019/ui/issue-like-table/table-settings-menu/messages.js +18 -0
- package/dist/es2019/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +8 -3
- package/dist/es2019/ui/table-footer/index.js +1 -1
- package/dist/esm/analytics/generated/use-analytics-events.js +1 -1
- package/dist/esm/analytics/ufoExperiences/index.js +2 -1
- package/dist/esm/analytics/wrappers/render-failed/datasourceRenderFailedAnalyticsWrapper.js +1 -1
- package/dist/esm/hooks/useAssetsClient.js +1 -1
- package/dist/esm/hooks/useDatasourceTableFlag.js +1 -1
- package/dist/esm/hooks/useLoadOptions.js +1 -1
- package/dist/esm/services/getAvailableSites.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +6 -2
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +8 -6
- package/dist/esm/ui/assets-modal/search-container/index.js +2 -2
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +3 -3
- package/dist/esm/ui/common/error-state/access-required.js +1 -1
- package/dist/esm/ui/common/error-state/loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/provider-auth-required.js +5 -4
- package/dist/esm/ui/common/initial-state-view/index.js +2 -2
- package/dist/esm/ui/common/modal/basic-search-input/index.js +3 -3
- package/dist/esm/ui/common/modal/datasource-context/index.js +4 -2
- package/dist/esm/ui/common/modal/datasource-modal/createDatasourceModal.js +1 -1
- package/dist/esm/ui/common/modal/datasource-modal/index.js +1 -1
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/index.js +5 -1
- package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js +22 -0
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +5 -3
- package/dist/esm/ui/common/modal/mode-switcher/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/control.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/custom-checkbox-option.js +2 -2
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/formatOptionLabel.js +2 -2
- package/dist/esm/ui/common/modal/popup-select/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.js +2 -2
- package/dist/esm/ui/common/modal/popup-select/menu-list/loadingMessage.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/showMoreButton.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/trigger.js +3 -3
- package/dist/esm/ui/common/modal/search-count/index.js +1 -1
- package/dist/esm/ui/common/modal/site-selector/index.js +3 -3
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/trigger.js +1 -1
- package/dist/esm/ui/confluence-search-modal/modal/index.js +7 -3
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +7 -3
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +2 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.js +17 -3
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +11 -9
- package/dist/esm/ui/issue-like-table/edit-type/icon/index.js +2 -2
- package/dist/esm/ui/issue-like-table/edit-type/status/index.js +3 -3
- package/dist/esm/ui/issue-like-table/edit-type/text/index.js +1 -1
- package/dist/esm/ui/issue-like-table/edit-type/user/index.js +4 -3
- package/dist/esm/ui/issue-like-table/index.compiled.css +3 -0
- package/dist/esm/ui/issue-like-table/index.js +146 -93
- package/dist/esm/ui/issue-like-table/render-type/status/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/tag/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +3 -3
- package/dist/esm/ui/issue-like-table/shared-components/avatar/index.js +2 -2
- package/dist/esm/ui/issue-like-table/table-cell-content/index.js +12 -19
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/esm/ui/issue-like-table/table-settings-menu/index.compiled.css +6 -0
- package/dist/esm/ui/issue-like-table/table-settings-menu/index.js +87 -0
- package/dist/esm/ui/issue-like-table/table-settings-menu/messages.js +18 -0
- package/dist/esm/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +8 -3
- package/dist/esm/ui/table-footer/index.js +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
- package/dist/types/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/hooks/useDatasourceTableFlag.d.ts +1 -1
- package/dist/types/hooks/useDatasourceTableState.d.ts +1 -1
- package/dist/types/hooks/useLoadOptions.d.ts +3 -3
- package/dist/types/services/makeGetJqlAutocompleteData.d.ts +1 -1
- package/dist/types/services/makeGetJqlSuggestionsData.d.ts +1 -1
- package/dist/types/state/actions/index.d.ts +3 -3
- package/dist/types/state/index.d.ts +3 -3
- package/dist/types/ui/assets-modal/modal/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/types.d.ts +1 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types/ui/common/modal/datasource-context/index.d.ts +1 -1
- package/dist/types/ui/common/modal/datasource-modal/createDatasourceModal.d.ts +1 -1
- package/dist/types/ui/common/modal/datasource-modal/index.d.ts +1 -1
- package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.d.ts +1 -1
- package/dist/types/ui/common/modal/insert-button/index.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/control.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/custom-checkbox-option.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/dropdownIndicator.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/menu-list/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/types.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/datasource-column-sort.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +4 -4
- package/dist/types/ui/datasource-table-view/types.d.ts +2 -2
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
- package/dist/types/ui/issue-like-table/column-picker/types.d.ts +1 -1
- package/dist/types/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/edit-type/status/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/text/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/edit-type/user/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-range/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/date-time/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/number/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/richtext/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/text/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/table-cell-content/index.d.ts +1 -1
- package/dist/types/ui/issue-like-table/table-cell-content/inline-edit.d.ts +1 -1
- package/dist/types/ui/issue-like-table/table-settings-menu/index.d.ts +8 -0
- package/dist/types/ui/issue-like-table/table-settings-menu/messages.d.ts +17 -0
- package/dist/types/ui/issue-like-table/types.d.ts +7 -1
- package/dist/types/ui/issue-like-table/utils.d.ts +7 -7
- package/dist/types/ui/jira-issues-modal/types.d.ts +1 -1
- package/examples-helpers/buildAssetsIssuesTable.tsx +3 -1
- package/examples-helpers/buildConfluenceSearchTable.tsx +3 -1
- package/examples-helpers/buildIssueLikeTable.tsx +2 -0
- package/examples-helpers/buildJiraIssuesTable.tsx +2 -0
- package/examples-helpers/mockJqlSmartLinkData.ts +1 -1
- package/examples-helpers/mockSmartLinkData.ts +1 -1
- package/examples-helpers/smartLinkCustomClient.ts +1 -1
- package/examples-helpers/useAssetsTableProps.tsx +6 -0
- package/examples-helpers/useCommonTableProps.tsx +5 -2
- package/package.json +47 -43
|
@@ -9,10 +9,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
/* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
10
10
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
11
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
12
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
12
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
13
13
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
14
|
-
import LinkComponent from '@atlaskit/link';
|
|
15
|
-
import { CloseButton
|
|
14
|
+
import LinkComponent from '@atlaskit/link/link';
|
|
15
|
+
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
16
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
17
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
18
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
19
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
20
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
16
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
22
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
18
23
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
@@ -6,7 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useEffect, useState } from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
|
-
import
|
|
9
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
10
10
|
import RefreshIcon from '@atlaskit/icon/core/refresh';
|
|
11
11
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DatasourceTableStatusType } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
export declare const useColumnPickerRenderedFailedUfoExperience: (status: DatasourceTableStatusType, experienceId: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
3
3
|
import { type IssueLikeDataTableViewProps } from '../ui/issue-like-table/types';
|
|
4
4
|
export type JiraSearchMethod = 'basic' | 'jql';
|
|
5
5
|
export interface Site {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DatasourceDataResponseItem, DatasourceMeta, DatasourceParameters, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
export declare const INCREASED_DATASOURCE_DATA_PAGE_SIZE = 100;
|
|
3
3
|
export interface onNextPageProps {
|
|
4
4
|
isSchemaFromData?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AtomicActionExecuteRequest } from '@atlaskit/linking-types';
|
|
1
|
+
import { type AtomicActionExecuteRequest } from '@atlaskit/linking-types/datasource-actions';
|
|
2
2
|
import type { ExecuteFetch } from '../state/actions';
|
|
3
3
|
export type LoadOptionsProps<T> = {
|
|
4
4
|
emptyOption?: T;
|
|
@@ -6,7 +6,7 @@ export type LoadOptionsProps<T> = {
|
|
|
6
6
|
fetchInputs?: AtomicActionExecuteRequest['parameters']['inputs'];
|
|
7
7
|
};
|
|
8
8
|
export declare const useLoadOptions: <T>({ fetchInputs, executeFetch, emptyOption, }: LoadOptionsProps<T>) => {
|
|
9
|
-
options: T[];
|
|
10
|
-
isLoading: boolean;
|
|
11
9
|
hasFailed: boolean;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
options: T[];
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GetAutocompleteInitialData } from '@atlaskit/jql-editor-autocomplete-rest/types';
|
|
2
2
|
export type AutocompleteInitialDataResponse = {
|
|
3
3
|
jqlFields: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFields'];
|
|
4
4
|
jqlFunctions: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFunctions'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GetAutocompleteSuggestions } from '@atlaskit/jql-editor-autocomplete-rest/types';
|
|
2
2
|
export type AutocompleteSuggestionsResponse = {
|
|
3
3
|
results: Awaited<ReturnType<GetAutocompleteSuggestions>>['results'];
|
|
4
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Action, type BoundActions, type HookFunction, type Store } from 'react-sweet-state';
|
|
2
2
|
import { useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
3
|
-
import type { ActionsDiscoveryRequest, AtomicActionExecuteRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types';
|
|
3
|
+
import type { ActionsDiscoveryRequest, AtomicActionExecuteRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types/datasource-actions';
|
|
4
4
|
import { type DatasourceOperationFailedAttributesType, type EventKey } from '../../../src/analytics/generated/analytics.types';
|
|
5
5
|
import type createEventPayload from '../../../src/analytics/generated/create-event-payload';
|
|
6
6
|
type IntegrationKey = string;
|
|
@@ -82,13 +82,13 @@ export declare const useDiscoverActions: ({ captureError, fireEvent, }: UseDisco
|
|
|
82
82
|
* Retrieves the action schema for a given ARI + fieldKey + integrationKey
|
|
83
83
|
*/
|
|
84
84
|
export declare const useAtomicUpdateActionSchema: HookFunction<{
|
|
85
|
-
schema?: undefined;
|
|
86
85
|
fetchSchema?: undefined;
|
|
86
|
+
schema?: undefined;
|
|
87
87
|
} | {
|
|
88
|
+
fetchSchema: Pick<AtomicActionInterface, 'type' | 'inputs' | 'actionKey'> | undefined;
|
|
88
89
|
schema: Pick<AtomicActionInterface, 'type' | 'description' | 'actionKey'> & {
|
|
89
90
|
fetchAction?: Pick<AtomicActionInterface, 'actionKey' | 'type' | 'inputs'>;
|
|
90
91
|
};
|
|
91
|
-
fetchSchema: Pick<AtomicActionInterface, 'type' | 'inputs' | 'actionKey'> | undefined;
|
|
92
92
|
}, BoundActions<ActionsStoreState, {
|
|
93
93
|
discoverActions: (captureError: AnalyticsCaptureError, fireEvent: AnalyticsFireEvent, api: Client, request: ActionsDiscoveryRequest) => Action<ActionsStoreState>;
|
|
94
94
|
}>, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Action, type BoundActions, type HookActionsFunction, type HookStateFunction, type Store as StoreType } from 'react-sweet-state';
|
|
3
|
-
import type { DatasourceDataResponseItem } from '@atlaskit/linking-types';
|
|
3
|
+
import type { DatasourceDataResponseItem } from '@atlaskit/linking-types/datasource';
|
|
4
4
|
type UniqueIdentifier = string;
|
|
5
5
|
export interface DatasourceItem {
|
|
6
6
|
ari: string | undefined;
|
|
@@ -16,15 +16,15 @@ export declare const actions: {
|
|
|
16
16
|
onAddItems: (items: DatasourceDataResponseItem[], integrationKey: string | undefined, entityType: string | undefined) => Action<State, void, string[]>;
|
|
17
17
|
};
|
|
18
18
|
export declare const Store: StoreType<State, {
|
|
19
|
-
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
20
19
|
onAddItems: (items: DatasourceDataResponseItem[], integrationKey: string | undefined, entityType: string | undefined) => Action<State, void, string[]>;
|
|
20
|
+
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const useDatasourceItem: HookStateFunction<DatasourceItem | undefined, {
|
|
23
23
|
id: string;
|
|
24
24
|
}>;
|
|
25
25
|
export declare const useDatasourceActions: HookActionsFunction<BoundActions<State, {
|
|
26
|
-
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
27
26
|
onAddItems: (items: DatasourceDataResponseItem[], integrationKey: string | undefined, entityType: string | undefined) => Action<State, void, string[]>;
|
|
27
|
+
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
28
28
|
}>>;
|
|
29
29
|
export declare const StoreContainer: ({ children }: {
|
|
30
30
|
children: JSX.Element;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
6
|
-
import { type WithContextProps } from '@atlaskit/analytics-next';
|
|
6
|
+
import { type WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
7
7
|
import { type AssetsConfigModalProps } from '../types';
|
|
8
8
|
export declare const AssetsConfigModal: ForwardRefExoticComponent<AssetsConfigModalProps & WithContextProps & RefAttributes<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
export interface RenderAssetsContentProps {
|
|
3
3
|
aql?: string;
|
|
4
4
|
columns: DatasourceResponseSchemaProperty[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
3
3
|
import { type ConfigModalProps } from '../../common/types';
|
|
4
4
|
export type AssetsDatasourceParameters = {
|
|
5
5
|
aql: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common';
|
|
3
|
-
import type { DatasourceParameters } from '@atlaskit/linking-types';
|
|
3
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
4
4
|
import { type OnInsertFunction } from '../../../../common/types';
|
|
5
5
|
import { type DatasourceTableState } from '../../../../hooks/useDatasourceTableState';
|
|
6
6
|
import type { ColumnSizesMap } from '../../../issue-like-table/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common';
|
|
3
|
-
import {
|
|
3
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
4
4
|
import { type ConfigModalProps } from '../../../../common/types';
|
|
5
5
|
export type ConnectedConfigModalProps<Parameters extends DatasourceParameters> = Omit<ConfigModalProps<DatasourceAdf<Parameters> | InlineCardAdf, Parameters>, 'onInsert' | 'parameters'>;
|
|
6
6
|
export declare const createDatasourceModal: <Parameters extends DatasourceParameters>({ isValidParameters, dataProvider, component: ModalContent, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ModalDialogProps } from '@atlaskit/modal-dialog/types';
|
|
3
3
|
type DatasourceModalProps = Pick<ModalDialogProps, 'testId' | 'onClose' | 'children' | 'shouldReturnFocus'>;
|
|
4
4
|
export declare const DatasourceModal: ({ testId, onClose, children, shouldReturnFocus, }: DatasourceModalProps) => React.JSX.Element;
|
|
5
5
|
export {};
|
package/dist/types/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type IssueLikeDataTableViewProps } from '../../../../issue-like-table/types';
|
|
2
|
-
export type ColumnWrappingProps = Required<Pick<IssueLikeDataTableViewProps, 'wrappedColumnKeys' | 'onWrappedColumnChange'
|
|
2
|
+
export type ColumnWrappingProps = Required<Pick<IssueLikeDataTableViewProps, 'wrappedColumnKeys' | 'onWrappedColumnChange'>> & Pick<IssueLikeDataTableViewProps, 'onWrappedColumnsChange'>;
|
|
3
3
|
export declare const useColumnWrapping: (initialWrappedColumnKeys?: string[]) => ColumnWrappingProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
3
3
|
export type InsertButtonProps<Parameters extends DatasourceParameters> = PropsWithChildren<{
|
|
4
4
|
getAnalyticsPayload: () => Record<string, any>;
|
|
5
5
|
hasErrors?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ControlProps } from '@atlaskit/select/types';
|
|
3
3
|
import { type SelectOption } from './types';
|
|
4
4
|
export declare const CustomControl: ({ children, ...innerProps }: ControlProps<SelectOption, true>) => React.JSX.Element;
|
|
5
5
|
export default CustomControl;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { OptionProps } from '@atlaskit/react-select/option';
|
|
2
2
|
import type { SelectOption } from './types';
|
|
3
3
|
export declare const CustomCheckboxOption: ({ children, ...props }: OptionProps<SelectOption, true>) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { DropdownIndicatorProps } from '@atlaskit/select/types';
|
|
3
3
|
import { type SelectOption } from './types';
|
|
4
4
|
declare const CustomDropdownIndicator: (props: DropdownIndicatorProps<SelectOption, true>) => React.JSX.Element;
|
|
5
5
|
export default CustomDropdownIndicator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { InputActionMeta, ValueType } from '@atlaskit/select/types';
|
|
3
3
|
import { type CustomMenuListProps } from './menu-list';
|
|
4
4
|
import { type SelectOption } from './types';
|
|
5
5
|
export interface FilterPopupSelectProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { MenuListComponentProps } from '@atlaskit/select/types';
|
|
3
3
|
import { type SelectOption } from '../types';
|
|
4
4
|
export type CustomMenuListProps = {
|
|
5
5
|
errors?: unknown[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PopupComponentProps } from '@atlaskit/popup';
|
|
2
|
+
import type { PopupComponentProps } from '@atlaskit/popup/types';
|
|
3
3
|
export declare const PopupComponent: React.ForwardRefExoticComponent<PopupComponentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DatasourceAdf, type InlineCardAdf } from '@atlaskit/linking-common/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
3
3
|
import { type ConfigModalProps } from '../../common/types';
|
|
4
4
|
import { type ConnectedConfigModalProps } from '../common/modal/datasource-modal/createDatasourceModal';
|
|
5
5
|
import { type DateRangeType } from '../common/modal/popup-select/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DatasourceParameters } from '@atlaskit/linking-types';
|
|
1
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
import type { DatasourceTableSortState } from '../issue-like-table/types';
|
|
3
3
|
export type { DatasourceTableSortState } from '../issue-like-table/types';
|
|
4
4
|
export type DatasourceColumnSortGetter = ({ parameters, columnKey, currentSort, }: {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
6
|
-
import { type WithContextProps } from '@atlaskit/analytics-next';
|
|
7
|
-
import type { DatasourceParameters } from '@atlaskit/linking-types';
|
|
6
|
+
import { type WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
7
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
8
8
|
import type { IssueLikeDataTableViewProps } from '../issue-like-table/types';
|
|
9
9
|
export declare const DatasourceTableView: ForwardRefExoticComponent<{
|
|
10
10
|
datasourceId: string;
|
|
11
11
|
parameters: DatasourceParameters;
|
|
12
12
|
url?: string;
|
|
13
|
-
} & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onColumnResize' | 'onColumnSort' | 'sortState' | 'columnCustomSizes' | 'scrollableContainerHeight'>> & WithContextProps & RefAttributes<any>>;
|
|
13
|
+
} & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onWrappedColumnsChange' | 'onColumnResize' | 'onColumnSort' | 'sortState' | 'columnCustomSizes' | 'scrollableContainerHeight'>> & WithContextProps & RefAttributes<any>>;
|
|
14
14
|
export declare const DataSourceTableViewNoSuspense: ForwardRefExoticComponent<{
|
|
15
15
|
datasourceId: string;
|
|
16
16
|
parameters: DatasourceParameters;
|
|
17
17
|
url?: string;
|
|
18
|
-
} & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onColumnResize' | 'onColumnSort' | 'sortState' | 'columnCustomSizes' | 'scrollableContainerHeight'>> & WithContextProps & RefAttributes<any>>;
|
|
18
|
+
} & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onWrappedColumnsChange' | 'onColumnResize' | 'onColumnSort' | 'sortState' | 'columnCustomSizes' | 'scrollableContainerHeight'>> & WithContextProps & RefAttributes<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DatasourceParameters } from '@atlaskit/linking-types';
|
|
1
|
+
import type { DatasourceParameters } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
import { type IssueLikeDataTableViewProps } from '../issue-like-table/types';
|
|
3
3
|
export type DatasourceTableViewProps = {
|
|
4
4
|
/** Unique identifier for which type of datasource is being rendered and for making its requests */
|
|
@@ -7,4 +7,4 @@ export type DatasourceTableViewProps = {
|
|
|
7
7
|
parameters: DatasourceParameters;
|
|
8
8
|
/** Url for an existing datasource, initially used for displaying to a user unauthorized to query that site */
|
|
9
9
|
url?: string;
|
|
10
|
-
} & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onColumnResize' | 'onColumnSort' | 'sortState' | 'columnCustomSizes' | 'scrollableContainerHeight'>>;
|
|
10
|
+
} & Partial<Pick<IssueLikeDataTableViewProps, 'visibleColumnKeys' | 'onVisibleColumnKeysChange' | 'wrappedColumnKeys' | 'onWrappedColumnChange' | 'onWrappedColumnsChange' | 'onColumnResize' | 'onColumnSort' | 'sortState' | 'columnCustomSizes' | 'scrollableContainerHeight'>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { MenuListComponentProps, OptionProps, OptionType } from '@atlaskit/select/types';
|
|
2
2
|
export declare const SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
3
3
|
export declare const ConcatenatedMenuList: ({ children, ...props }: MenuListComponentProps<OptionType, true>) => JSX.Element;
|
|
4
4
|
export declare const MenuItem: ({ children, ...props }: OptionProps<OptionType, true>) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
export type ColumnPickerProps = {
|
|
3
3
|
columns: DatasourceResponseSchemaProperty[];
|
|
4
4
|
onOpen?: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
3
|
export declare const GlyphPlaceholder: (props: IconProps) => React.JSX.Element;
|
|
4
4
|
export declare const WrapTextIcon: () => React.JSX.Element;
|
|
5
5
|
export declare const UnwrapTextIcon: () => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { FieldProps } from '@atlaskit/form/field';
|
|
3
3
|
import { type ExecuteFetch } from '../../../../state/actions';
|
|
4
4
|
import type { DatasourceTypeWithOnlyTypeValues, DatasourceTypeWithOnlyValues } from '../../types';
|
|
5
5
|
interface IconEditTypeProps extends Omit<FieldProps<string>, 'value'> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type InlineEdit from '@atlaskit/inline-edit';
|
|
3
|
-
import type { DatasourceType } from '@atlaskit/linking-types';
|
|
2
|
+
import type InlineEdit from '@atlaskit/inline-edit/inline-edit';
|
|
3
|
+
import type { DatasourceType } from '@atlaskit/linking-types/datasource';
|
|
4
4
|
import { type ExecuteFetch } from '../../../state/actions';
|
|
5
5
|
import { type DatasourceTypeWithOnlyValues } from '../types';
|
|
6
6
|
export declare const editType: ({ defaultValue, currentValue, labelId, setEditValues, executeFetch, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { FieldProps } from '@atlaskit/form/field';
|
|
3
3
|
import type { ExecuteFetch } from '../../../../state/actions';
|
|
4
4
|
import type { DatasourceTypeWithOnlyTypeValues, DatasourceTypeWithOnlyValues } from '../../types';
|
|
5
5
|
interface StatusEditTypeProps extends Omit<FieldProps<string>, 'value'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { FieldProps } from '@atlaskit/form/field';
|
|
3
3
|
import type { DatasourceTypeWithOnlyTypeValues, DatasourceTypeWithOnlyValues } from '../../types';
|
|
4
4
|
interface TextEditTypeProps extends Omit<FieldProps<string>, 'value'> {
|
|
5
5
|
currentValue: DatasourceTypeWithOnlyTypeValues<'string'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { FieldProps } from '@atlaskit/form/field';
|
|
3
3
|
import type { ExecuteFetch } from '../../../../state/actions';
|
|
4
4
|
import type { DatasourceTypeWithOnlyTypeValues, DatasourceTypeWithOnlyValues } from '../../types';
|
|
5
5
|
interface UserEditTypeProps extends Omit<FieldProps<string>, 'value'> {
|
|
@@ -2,5 +2,5 @@ import { type DatasourceResponseSchemaProperty } from '@atlaskit/linking-types/d
|
|
|
2
2
|
import { type Props } from './empty-state';
|
|
3
3
|
import { type IssueLikeDataTableViewProps } from './types';
|
|
4
4
|
export declare const getOrderedColumns: (columns: DatasourceResponseSchemaProperty[], visibleColumnKeys: string[]) => DatasourceResponseSchemaProperty[];
|
|
5
|
-
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, itemIds, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, onColumnSort, wrappedColumnKeys, onWrappedColumnChange, sortState, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => JSX.Element;
|
|
5
|
+
export declare const IssueLikeDataTableView: ({ testId, onNextPage, onLoadDatasourceDetails, items, itemIds, columns, renderItem, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, onColumnSort, wrappedColumnKeys, onWrappedColumnChange, onWrappedColumnsChange, sortState, status, hasNextPage, scrollableContainerHeight, extensionKey, }: IssueLikeDataTableViewProps) => JSX.Element;
|
|
6
6
|
export declare const EmptyState: ({ isCompact, testId }: Props) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type IntlShape } from 'react-intl';
|
|
3
|
-
import {
|
|
3
|
+
import type { DateRangeType } from '@atlaskit/linking-types/datasource';
|
|
4
4
|
export interface DateRangeProps {
|
|
5
5
|
testId?: string;
|
|
6
6
|
value: DateRangeType['value'];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type IntlShape } from 'react-intl';
|
|
3
|
-
import {
|
|
3
|
+
import type { DateTimeType, DateType, TimeType } from '@atlaskit/linking-types/datasource';
|
|
4
4
|
export interface DateProps {
|
|
5
5
|
display: (DateType | TimeType | DateTimeType)['type'];
|
|
6
6
|
testId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl';
|
|
2
|
-
import {
|
|
2
|
+
import type { DatasourceType } from '@atlaskit/linking-types/datasource';
|
|
3
3
|
import { type TableViewPropsRenderType } from '../types';
|
|
4
4
|
export declare const stringifyType: ({ type, value }: DatasourceType, formatMessage: IntlShape['formatMessage'], formatDate: IntlShape['formatDate']) => string;
|
|
5
5
|
export declare const renderType: TableViewPropsRenderType;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import type { SizeType } from '@atlaskit/avatar/types';
|
|
7
|
+
import type { User } from '@atlaskit/linking-types/datasource';
|
|
8
8
|
export interface UserProps extends User {
|
|
9
9
|
avatarSize?: SizeType;
|
|
10
10
|
children?: React.ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { DatasourceType } from '@atlaskit/linking-types/datasource';
|
|
3
3
|
import { type TableViewPropsRenderType } from '../types';
|
|
4
4
|
interface TableCellContentProps {
|
|
5
5
|
columnKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { AtomicActionExecuteResponse } from '@atlaskit/linking-types/datasource-actions';
|
|
3
3
|
import type { DatasourceTypeWithOnlyValues } from '../types';
|
|
4
4
|
export declare const InlineEditUFOExperience = "inline-edit-rendered";
|
|
5
5
|
interface InlineEditProps {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type TableSettingsMenuProps = {
|
|
2
|
+
wrapTextSetting?: {
|
|
3
|
+
isChecked: boolean;
|
|
4
|
+
onChange: () => void;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const hasAvailableTableSettings: ({ wrapTextSetting }: TableSettingsMenuProps) => boolean;
|
|
8
|
+
export declare const TableSettingsMenu: (props: TableSettingsMenuProps) => React.JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const tableSettingsMenuMessages: {
|
|
2
|
+
moreActions: {
|
|
3
|
+
defaultMessage: string;
|
|
4
|
+
description: string;
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
tableSettings: {
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
id: string;
|
|
11
|
+
};
|
|
12
|
+
wrapTextOnAllColumns: {
|
|
13
|
+
defaultMessage: string;
|
|
14
|
+
description: string;
|
|
15
|
+
id: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'react';
|
|
2
|
-
import type { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType, DatasourceType } from '@atlaskit/linking-types';
|
|
2
|
+
import type { DatasourceDataResponseItem, DatasourceResponseSchemaProperty, DatasourceTableStatusType, DatasourceType } from '@atlaskit/linking-types/datasource';
|
|
3
3
|
import type { NextPageType } from '../../hooks/useDatasourceTableState';
|
|
4
4
|
export type DatasourceTypeWithOnlyValues = {
|
|
5
5
|
[K in DatasourceType['type']]: {
|
|
@@ -67,6 +67,12 @@ export interface IssueLikeDataTableViewProps {
|
|
|
67
67
|
* @param shouldWrap Whenever column should wrap
|
|
68
68
|
*/
|
|
69
69
|
onWrappedColumnChange?: (key: string, shouldWrap: boolean) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Callback to be invoked whenever wrap is toggled for all currently visible columns.
|
|
72
|
+
*
|
|
73
|
+
* @param wrappedColumnKeys the full list of column keys that should wrap after the change
|
|
74
|
+
*/
|
|
75
|
+
onWrappedColumnsChange?: (wrappedColumnKeys: string[]) => void;
|
|
70
76
|
/**
|
|
71
77
|
* A function to define new or override existing render components.
|
|
72
78
|
* eg:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormEvent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { FieldProps } from '@atlaskit/form/field';
|
|
3
3
|
import { DatasourceAction } from '../../analytics/types';
|
|
4
4
|
export declare const COLUMN_BASE_WIDTH = 8;
|
|
5
5
|
export type GetWidthCss = (arg: {
|
|
@@ -26,16 +26,16 @@ export declare const getColumnAction: (oldVisibleColumnKeys: string[], newVisibl
|
|
|
26
26
|
* Remove deprecated `aria-labelledby` prop from select component props.
|
|
27
27
|
*/
|
|
28
28
|
export declare const getCleanedSelectProps: (props: Omit<FieldProps<string>, 'value'>) => {
|
|
29
|
-
name: string;
|
|
30
|
-
id: string;
|
|
31
29
|
'aria-describedby'?: string | undefined;
|
|
32
30
|
'aria-invalid': 'true' | 'false';
|
|
33
|
-
|
|
34
|
-
onBlur: () => void;
|
|
35
|
-
onChange: (value: string | FormEvent<HTMLInputElement>) => void;
|
|
36
|
-
isRequired: boolean;
|
|
31
|
+
id: string;
|
|
37
32
|
isDisabled: boolean;
|
|
38
33
|
isInvalid: boolean;
|
|
34
|
+
isRequired: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
onBlur: () => void;
|
|
37
|
+
onChange: (value: string | FormEvent<HTMLInputElement>) => void;
|
|
38
|
+
onFocus: () => void;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
41
41
|
* Create id for table header to be used as aria-labelledby on form fields.
|