@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
|
@@ -4,7 +4,7 @@ import "./inline-edit.compiled.css";
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import AKInlineEdit from '@atlaskit/inline-edit';
|
|
7
|
+
import AKInlineEdit from '@atlaskit/inline-edit/inline-edit';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import { useSmartLinkReload } from '@atlaskit/smart-card/hooks';
|
|
10
10
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
._1rjcu2gc{padding-block:var(--ds-space-100,8px)}._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
2
|
+
._1bsb1mjv{width:300px}
|
|
3
|
+
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
4
|
+
._ca0q1b66{padding-top:var(--ds-space-050,4px)}
|
|
5
|
+
._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
|
|
6
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v2.0.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { useId, useState } from 'react';
|
|
6
|
+
import { useIntl } from 'react-intl';
|
|
7
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
8
|
+
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
9
|
+
import { Popup } from '@atlaskit/popup/popup';
|
|
10
|
+
import { Box, Inline } from '@atlaskit/primitives/compiled';
|
|
11
|
+
import { layers } from '@atlaskit/theme/constants';
|
|
12
|
+
import Toggle from '@atlaskit/toggle/toggle';
|
|
13
|
+
import { tableSettingsMenuMessages } from './messages';
|
|
14
|
+
const styles = {
|
|
15
|
+
menu: "_1rjcu2gc _1bsb1mjv",
|
|
16
|
+
setting: "_bfhksm61 _ca0q1b66 _u5f3utpp _n3td1b66 _19bvutpp"
|
|
17
|
+
};
|
|
18
|
+
export const hasAvailableTableSettings = ({
|
|
19
|
+
wrapTextSetting
|
|
20
|
+
}) => Boolean(wrapTextSetting);
|
|
21
|
+
export const TableSettingsMenu = props => {
|
|
22
|
+
const {
|
|
23
|
+
formatMessage
|
|
24
|
+
} = useIntl();
|
|
25
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
26
|
+
const wrapTextToggleId = useId();
|
|
27
|
+
if (!hasAvailableTableSettings(props)) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
const {
|
|
31
|
+
wrapTextSetting
|
|
32
|
+
} = props;
|
|
33
|
+
const wrapTextLabel = formatMessage(tableSettingsMenuMessages.wrapTextOnAllColumns);
|
|
34
|
+
return /*#__PURE__*/React.createElement(Popup, {
|
|
35
|
+
isOpen: isOpen,
|
|
36
|
+
onClose: () => setIsOpen(false),
|
|
37
|
+
placement: "bottom-end",
|
|
38
|
+
shouldFlip: true,
|
|
39
|
+
testId: "table-settings-menu",
|
|
40
|
+
zIndex: layers.modal(),
|
|
41
|
+
role: "dialog",
|
|
42
|
+
label: formatMessage(tableSettingsMenuMessages.tableSettings),
|
|
43
|
+
trigger: triggerProps => /*#__PURE__*/React.createElement(IconButton, {
|
|
44
|
+
ref: triggerProps.ref,
|
|
45
|
+
"aria-controls": triggerProps['aria-controls'],
|
|
46
|
+
"aria-expanded": triggerProps['aria-expanded'],
|
|
47
|
+
"aria-haspopup": triggerProps['aria-haspopup'],
|
|
48
|
+
icon: ShowMoreHorizontalIcon,
|
|
49
|
+
isSelected: isOpen,
|
|
50
|
+
isTooltipDisabled: false,
|
|
51
|
+
label: formatMessage(tableSettingsMenuMessages.moreActions),
|
|
52
|
+
onClick: () => setIsOpen(currentIsOpen => !currentIsOpen),
|
|
53
|
+
spacing: "default"
|
|
54
|
+
}),
|
|
55
|
+
content: ({
|
|
56
|
+
setInitialFocusRef
|
|
57
|
+
}) => /*#__PURE__*/React.createElement(Box, {
|
|
58
|
+
xcss: styles.menu
|
|
59
|
+
}, wrapTextSetting && /*#__PURE__*/React.createElement(Box, {
|
|
60
|
+
xcss: styles.setting
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
62
|
+
alignBlock: "center",
|
|
63
|
+
spread: "space-between"
|
|
64
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
65
|
+
htmlFor: wrapTextToggleId
|
|
66
|
+
}, wrapTextLabel), /*#__PURE__*/React.createElement(Toggle, {
|
|
67
|
+
ref: element => {
|
|
68
|
+
setInitialFocusRef(element);
|
|
69
|
+
},
|
|
70
|
+
id: wrapTextToggleId,
|
|
71
|
+
isChecked: wrapTextSetting.isChecked,
|
|
72
|
+
onChange: wrapTextSetting.onChange,
|
|
73
|
+
testId: "table-settings-menu-wrap-text-toggle"
|
|
74
|
+
}))))
|
|
75
|
+
});
|
|
76
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
export const tableSettingsMenuMessages = defineMessages({
|
|
3
|
+
moreActions: {
|
|
4
|
+
id: 'link-datasource.issue-like-table.table-settings-menu.moreActions',
|
|
5
|
+
description: 'Tooltip and accessibility label for the table settings meatball menu button',
|
|
6
|
+
defaultMessage: 'More actions'
|
|
7
|
+
},
|
|
8
|
+
tableSettings: {
|
|
9
|
+
id: 'link-datasource.issue-like-table.table-settings-menu.tableSettings',
|
|
10
|
+
description: 'Accessibility label for the table settings popup',
|
|
11
|
+
defaultMessage: 'Table settings'
|
|
12
|
+
},
|
|
13
|
+
wrapTextOnAllColumns: {
|
|
14
|
+
id: 'link-datasource.issue-like-table.table-settings-menu.wrapTextOnAllColumns',
|
|
15
|
+
description: 'Label for the toggle that wraps text in every table column',
|
|
16
|
+
defaultMessage: 'Wrap text in all columns'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import { JQLEditor } from '@atlaskit/jql-editor';
|
|
4
|
-
import { useAutocompleteProvider } from '@atlaskit/jql-editor-autocomplete-rest';
|
|
4
|
+
import { useAutocompleteProvider } from '@atlaskit/jql-editor-autocomplete-rest/use-autocomplete-provider';
|
|
5
5
|
import { makeGetJqlAutocompleteData } from '../../../services/makeGetJqlAutocompleteData';
|
|
6
6
|
import { makeGetJqlSuggestionsData } from '../../../services/makeGetJqlSuggestionsData';
|
|
7
7
|
export const JiraJQLEditor = ({
|
|
@@ -5,10 +5,15 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
/* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
6
6
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
7
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
8
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
9
9
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
10
|
-
import LinkComponent from '@atlaskit/link';
|
|
11
|
-
import { CloseButton
|
|
10
|
+
import LinkComponent from '@atlaskit/link/link';
|
|
11
|
+
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
12
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
13
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
14
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
15
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
16
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
12
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
18
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
14
19
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
7
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
|
-
import
|
|
8
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
9
9
|
import RefreshIcon from '@atlaskit/icon/core/refresh';
|
|
10
10
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
|
|
8
8
|
*/
|
|
9
9
|
import { useCallback } from 'react';
|
|
10
|
-
import { useAnalyticsEvents as useAnalyticsNextEvents } from '@atlaskit/analytics-next';
|
|
10
|
+
import { useAnalyticsEvents as useAnalyticsNextEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
11
11
|
import { EVENT_CHANNEL } from '../constants';
|
|
12
12
|
import createEventPayload from './create-event-payload';
|
|
13
13
|
export var useAnalyticsEvents = function useAnalyticsEvents() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ConcurrentExperience
|
|
1
|
+
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
2
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
2
3
|
var datasourcePageSegmentLoadExperienceConfig = {
|
|
3
4
|
platform: {
|
|
4
5
|
component: 'datasource'
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { useEffect } from 'react';
|
|
5
|
-
import
|
|
5
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
6
6
|
import { logToSentry } from '../../../hooks/useErrorLogger';
|
|
7
7
|
import { componentMetadata } from '../../constants';
|
|
8
8
|
import { useDatasourceAnalyticsEvents } from '../../index';
|
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
7
7
|
import { fetchObjectSchema, fetchObjectSchemas, getWorkspaceId, resolvePrimaryWorkspace } from '../services/cmdbService';
|
|
8
8
|
import { getMeta } from '../services/getMeta';
|
|
@@ -5,7 +5,7 @@ import React, { useCallback } from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
7
7
|
import uuid from 'uuid';
|
|
8
|
-
import { useFlags } from '@atlaskit/flag';
|
|
8
|
+
import { useFlags } from '@atlaskit/flag/use-flags';
|
|
9
9
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
10
10
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
11
11
|
import { issueLikeTableMessages } from '../ui/issue-like-table/messages';
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
import { useEffect, useReducer } from 'react';
|
|
9
|
-
import { ActionOperationStatus } from '@atlaskit/linking-types';
|
|
9
|
+
import { ActionOperationStatus } from '@atlaskit/linking-types/datasource-actions';
|
|
10
10
|
import { useDatasourceTableFlag } from './useDatasourceTableFlag';
|
|
11
11
|
var loadOptions = /*#__PURE__*/function () {
|
|
12
12
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import { mapAccessibleProductsToAvailableSites } from '@atlaskit/linking-common/hooks';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
export var getAccessibleProducts = /*#__PURE__*/function () {
|
|
6
6
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(product) {
|
|
7
7
|
var requestConfig, endpoint, response, res, _t, _t2, _t3;
|
|
@@ -9,10 +9,14 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
11
|
import { FormattedMessage } from 'react-intl';
|
|
12
|
-
import
|
|
12
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
13
13
|
import Button from '@atlaskit/button/standard-button';
|
|
14
14
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
15
|
-
import
|
|
15
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
16
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
17
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
18
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
19
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
16
20
|
import { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
17
21
|
import { componentMetadata } from '../../../analytics/constants';
|
|
18
22
|
import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../../../analytics/types';
|
|
@@ -3,7 +3,7 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import Link from '@atlaskit/link';
|
|
6
|
+
import Link from '@atlaskit/link/link';
|
|
7
7
|
import { RichIconSearch } from '../../../../../common/ui/rich-icon/search';
|
|
8
8
|
import { initialStateViewMessages } from './messages';
|
|
9
9
|
var initialStateViewContainerStyles = null;
|
|
@@ -8,17 +8,19 @@ import * as React from 'react';
|
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import { Fragment } from 'react';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
|
-
import
|
|
12
|
-
import { ErrorMessage
|
|
11
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
12
|
+
import { ErrorMessage } from '@atlaskit/form/error-message';
|
|
13
|
+
import Field from '@atlaskit/form/field';
|
|
14
|
+
import { MessageWrapper } from '@atlaskit/form/message-wrapper';
|
|
13
15
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
14
16
|
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
15
17
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
16
18
|
import CheckCircleIcon from '@atlaskit/icon/core/status-success';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
20
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
19
|
-
import Spinner from '@atlaskit/spinner';
|
|
20
|
-
import Textfield from '@atlaskit/textfield';
|
|
21
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
21
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
22
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
23
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
22
24
|
import { useValidateAqlText } from '../../../../hooks/useValidateAqlText';
|
|
23
25
|
import { aqlKey } from '../../../../types/assets/types';
|
|
24
26
|
import { searchInputMessages } from './messages';
|
|
@@ -6,8 +6,8 @@ import "./index.compiled.css";
|
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
|
-
import Form from '@atlaskit/form';
|
|
10
|
-
import { CloseButton } from '@atlaskit/modal-dialog';
|
|
9
|
+
import Form from '@atlaskit/form/form';
|
|
10
|
+
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
11
11
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
13
13
|
import { AqlSearchInput } from './aql-search-input';
|
|
@@ -17,10 +17,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
17
17
|
import { useCallback, useRef, useState } from 'react';
|
|
18
18
|
import debounce from 'debounce-promise';
|
|
19
19
|
import { useIntl } from 'react-intl';
|
|
20
|
-
import Button from '@atlaskit/button/
|
|
21
|
-
import
|
|
20
|
+
import Button from '@atlaskit/button/default/button';
|
|
21
|
+
import Field from '@atlaskit/form/field';
|
|
22
22
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
23
|
-
import { PopupSelect } from '@atlaskit/select';
|
|
23
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
24
24
|
import { layers } from '@atlaskit/theme/constants';
|
|
25
25
|
import { useObjectSchemas } from '../../../../hooks/useObjectSchemas';
|
|
26
26
|
import { objectSchemaKey } from '../../../../types/assets/types';
|
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import EmptyState from '@atlaskit/empty-state';
|
|
7
|
+
import EmptyState from '@atlaskit/empty-state/empty-state';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
10
10
|
import { SpotPadlockKey } from '../../../common/ui/spot/basics/padlock-key';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useEffect } from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import Button from '@atlaskit/button/standard-button';
|
|
9
|
-
import AKLink from '@atlaskit/link';
|
|
9
|
+
import AKLink from '@atlaskit/link/link';
|
|
10
10
|
import { Box, Inline, Text } from '@atlaskit/primitives/compiled';
|
|
11
11
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
12
12
|
import { SpotErrorSearch } from '../../../common/ui/spot/error-state/search';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
|
-
import Button from '@atlaskit/button/
|
|
8
|
+
import Button from '@atlaskit/button/default/button';
|
|
9
9
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
11
11
|
import { SpotErrorSearch } from '../../../common/ui/spot/error-state/search';
|
|
@@ -6,10 +6,11 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
7
|
import React, { useEffect } from 'react';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
|
-
import Button from '@atlaskit/button/
|
|
10
|
-
import EmptyState from '@atlaskit/empty-state';
|
|
11
|
-
import { AuthError
|
|
12
|
-
import {
|
|
9
|
+
import Button from '@atlaskit/button/default/button';
|
|
10
|
+
import EmptyState from '@atlaskit/empty-state/empty-state';
|
|
11
|
+
import { AuthError } from '@atlaskit/outbound-auth-flow-client/error';
|
|
12
|
+
import { auth as outboundAuth } from '@atlaskit/outbound-auth-flow-client/auth';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
14
|
import { Anchor, Box } from '@atlaskit/primitives/compiled';
|
|
14
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
15
16
|
import useErrorLogger from '../../../hooks/useErrorLogger';
|
|
@@ -3,8 +3,8 @@ import "./index.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
|
-
import Link from '@atlaskit/link';
|
|
7
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
6
|
+
import Link from '@atlaskit/link/link';
|
|
7
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
8
8
|
import { initialStateViewMessages } from './messages';
|
|
9
9
|
var initialStateViewContainerStyles = null;
|
|
10
10
|
var svgAndTextsWrapperStyles = null;
|
|
@@ -4,11 +4,11 @@ import "./index.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import
|
|
7
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
8
8
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
11
|
-
import Textfield from '@atlaskit/textfield';
|
|
11
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
12
12
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
13
13
|
import { basicSearchInputMessages } from './messages';
|
|
14
14
|
var styles = {
|
|
@@ -27,7 +27,8 @@ export var DatasourceContextProvider = function DatasourceContextProvider(_ref)
|
|
|
27
27
|
onColumnResize = _useColumnResize.onColumnResize;
|
|
28
28
|
var _useColumnWrapping = useColumnWrapping(initialWrappedColumnKeys),
|
|
29
29
|
wrappedColumnKeys = _useColumnWrapping.wrappedColumnKeys,
|
|
30
|
-
onWrappedColumnChange = _useColumnWrapping.onWrappedColumnChange
|
|
30
|
+
onWrappedColumnChange = _useColumnWrapping.onWrappedColumnChange,
|
|
31
|
+
onWrappedColumnsChange = _useColumnWrapping.onWrappedColumnsChange;
|
|
31
32
|
var tableState = useDatasourceTableState({
|
|
32
33
|
datasourceId: datasourceId,
|
|
33
34
|
parameters: isValidParameters(parameters) ? parameters : undefined,
|
|
@@ -53,11 +54,12 @@ export var DatasourceContextProvider = function DatasourceContextProvider(_ref)
|
|
|
53
54
|
onColumnResize: onColumnResize,
|
|
54
55
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
55
56
|
onWrappedColumnChange: onWrappedColumnChange,
|
|
57
|
+
onWrappedColumnsChange: onWrappedColumnsChange,
|
|
56
58
|
parameters: parameters,
|
|
57
59
|
setParameters: setParameters,
|
|
58
60
|
onInsert: onInsert
|
|
59
61
|
};
|
|
60
|
-
}, [datasourceId, isValidParameters, tableState, visibleColumnCount, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, parameters, onInsert]);
|
|
62
|
+
}, [datasourceId, isValidParameters, tableState, visibleColumnCount, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, onWrappedColumnsChange, parameters, onInsert]);
|
|
61
63
|
return /*#__PURE__*/React.createElement(DatasourceContext.Provider, {
|
|
62
64
|
value: contextValue
|
|
63
65
|
}, children);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
3
3
|
import { DatasourceExperienceIdProvider } from '../../../../contexts/datasource-experience-id';
|
|
4
4
|
import { UserInteractionsProvider } from '../../../../contexts/user-interactions';
|
|
5
5
|
import { DatasourceContextProvider } from '../datasource-context';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import Modal from '@atlaskit/modal-dialog';
|
|
2
|
+
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
3
3
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
4
4
|
var ScreenEvent = function ScreenEvent() {
|
|
5
5
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback } from 'react';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
4
|
import { DatasourceAction } from '../../../../analytics/types';
|
|
4
5
|
import { useUserInteractions } from '../../../../contexts/user-interactions';
|
|
5
6
|
import { IssueLikeDataTableView } from '../../../issue-like-table';
|
|
@@ -10,6 +11,7 @@ var Table = function Table(props) {
|
|
|
10
11
|
onColumnResize = _useDatasourceContext.onColumnResize,
|
|
11
12
|
wrappedColumnKeys = _useDatasourceContext.wrappedColumnKeys,
|
|
12
13
|
onWrappedColumnChange = _useDatasourceContext.onWrappedColumnChange,
|
|
14
|
+
onWrappedColumnsChange = _useDatasourceContext.onWrappedColumnsChange,
|
|
13
15
|
visibleColumnKeys = _useDatasourceContext.visibleColumnKeys,
|
|
14
16
|
onVisibleColumnKeysChange = _useDatasourceContext.onVisibleColumnKeysChange,
|
|
15
17
|
_useDatasourceContext2 = _useDatasourceContext.tableState,
|
|
@@ -44,6 +46,8 @@ var Table = function Table(props) {
|
|
|
44
46
|
onColumnResize: onColumnResize,
|
|
45
47
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
46
48
|
onWrappedColumnChange: onWrappedColumnChange
|
|
47
|
-
})
|
|
49
|
+
}, fg('platform_lp_sllv_table_settings_menu') ? {
|
|
50
|
+
onWrappedColumnsChange: onWrappedColumnsChange
|
|
51
|
+
} : {}));
|
|
48
52
|
};
|
|
49
53
|
export default Table;
|
package/dist/esm/ui/common/modal/datasources-table-in-modal-preview/use-column-wrapping/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useCallback, useState } from 'react';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
4
|
export var useColumnWrapping = function useColumnWrapping() {
|
|
4
5
|
var initialWrappedColumnKeys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
5
6
|
var _useState = useState(initialWrappedColumnKeys),
|
|
@@ -15,6 +16,27 @@ export var useColumnWrapping = function useColumnWrapping() {
|
|
|
15
16
|
}
|
|
16
17
|
setWrappedColumnKeys(Array.from(set));
|
|
17
18
|
}, [wrappedColumnKeys]);
|
|
19
|
+
var onWrappedColumnChangeWithLatestState = useCallback(function (key, isWrapped) {
|
|
20
|
+
setWrappedColumnKeys(function (currentWrappedColumnKeys) {
|
|
21
|
+
var nextWrappedColumnKeys = new Set(currentWrappedColumnKeys);
|
|
22
|
+
if (isWrapped) {
|
|
23
|
+
nextWrappedColumnKeys.add(key);
|
|
24
|
+
} else {
|
|
25
|
+
nextWrappedColumnKeys.delete(key);
|
|
26
|
+
}
|
|
27
|
+
return Array.from(nextWrappedColumnKeys);
|
|
28
|
+
});
|
|
29
|
+
}, []);
|
|
30
|
+
var onWrappedColumnsChange = useCallback(function (nextWrappedColumnKeys) {
|
|
31
|
+
setWrappedColumnKeys(nextWrappedColumnKeys);
|
|
32
|
+
}, []);
|
|
33
|
+
if (fg('platform_lp_sllv_table_settings_menu')) {
|
|
34
|
+
return {
|
|
35
|
+
wrappedColumnKeys: wrappedColumnKeys,
|
|
36
|
+
onWrappedColumnChange: onWrappedColumnChangeWithLatestState,
|
|
37
|
+
onWrappedColumnsChange: onWrappedColumnsChange
|
|
38
|
+
};
|
|
39
|
+
}
|
|
18
40
|
return {
|
|
19
41
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
20
42
|
onWrappedColumnChange: onWrappedColumnChange
|
|
@@ -6,10 +6,12 @@ import "./display-view-drop-down.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
|
-
import Button from '@atlaskit/button/
|
|
10
|
-
import DropdownMenu
|
|
9
|
+
import Button from '@atlaskit/button/default/button';
|
|
10
|
+
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
11
|
+
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
12
|
+
import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group';
|
|
11
13
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
13
15
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
16
|
import { displayViewDropDownMessages } from './messages';
|
|
15
17
|
var styles = {
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
6
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
7
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
8
8
|
import { DatasourceAction } from '../../../../analytics/types';
|
|
9
9
|
import { useUserInteractions } from '../../../../contexts/user-interactions';
|
|
@@ -6,7 +6,7 @@ import "./control.compiled.css";
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
|
-
import { components } from '@atlaskit/select';
|
|
9
|
+
import { components } from '@atlaskit/react-select/components';
|
|
10
10
|
var getPopupCustomControlStyles = function getPopupCustomControlStyles() {
|
|
11
11
|
return {
|
|
12
12
|
display: 'flex',
|
|
@@ -5,8 +5,8 @@ var _excluded = ["children"];
|
|
|
5
5
|
import "./custom-checkbox-option.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
|
-
import { CheckboxOption } from '@atlaskit/select';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
8
|
+
import { CheckboxOption } from '@atlaskit/select/checkbox-option';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
var checkboxStyles = null;
|
|
11
11
|
var checkboxSelectedStyles = null;
|
|
12
12
|
var checkboxFocusedStyles = null;
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import CloseIcon from '@atlaskit/icon/core/cross-circle';
|
|
6
6
|
import SearchIcon from '@atlaskit/icon/core/search';
|
|
7
7
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import { components } from '@atlaskit/select';
|
|
8
|
+
import { components } from '@atlaskit/react-select/components';
|
|
9
9
|
var styles = {
|
|
10
10
|
customDropdownIndicatorStylesOld: "_1e0c1txw _80omtlke _1bah1h6o _1bsbzwfg",
|
|
11
11
|
customDropdownIndicatorStyles: "_1e0c1txw _80omtlke _1bah1h6o _1bsbzwfg _bfhk1j28 _syazazsu"
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import "./formatOptionLabel.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import Avatar from '@atlaskit/avatar';
|
|
5
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
6
6
|
import { cx } from '@atlaskit/css';
|
|
7
7
|
import PeopleGroupIcon from '@atlaskit/icon/core/people-group';
|
|
8
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
8
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
9
9
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
10
10
|
var styles = {
|
|
11
11
|
commonLabelStyles: "_1reo15vq _18m915vq _1bto1l2s",
|
|
@@ -11,7 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
12
12
|
import isEqual from 'lodash/isEqual';
|
|
13
13
|
import { useIntl } from 'react-intl';
|
|
14
|
-
import { PopupSelect } from '@atlaskit/select';
|
|
14
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
15
15
|
import { useDatasourceAnalyticsEvents } from '../../../../analytics';
|
|
16
16
|
import CustomControl from './control';
|
|
17
17
|
import { CustomCheckboxOption } from './custom-checkbox-option';
|
|
@@ -6,8 +6,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { cx } from '@compiled/react';
|
|
8
8
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
9
|
-
import { components } from '@atlaskit/select';
|
|
10
|
-
import Spinner from '@atlaskit/spinner';
|
|
9
|
+
import { components } from '@atlaskit/react-select/components';
|
|
10
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
11
|
import CustomErrorMessage from './errorMessage';
|
|
12
12
|
import CustomDropdownLoadingMessage from './loadingMessage';
|
|
13
13
|
import CustomNoOptionsMessage from './noOptionsMessage';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Spinner from '@atlaskit/spinner';
|
|
2
|
+
import Spinner from '@atlaskit/spinner/spinner';
|
|
3
3
|
import { asyncPopupSelectMessages } from './messages';
|
|
4
4
|
import CustomSelectMessage from './selectMessage';
|
|
5
5
|
var CustomDropdownLoadingMessage = function CustomDropdownLoadingMessage(_ref) {
|
|
@@ -3,7 +3,7 @@ import "./selectMessage.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
|
-
import Heading from '@atlaskit/heading';
|
|
6
|
+
import Heading from '@atlaskit/heading/heading';
|
|
7
7
|
import { Flex, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
8
8
|
var styles = {
|
|
9
9
|
boxStyles: "_4t3i16xz",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import Button from '@atlaskit/button/
|
|
3
|
+
import Button from '@atlaskit/button/default/button';
|
|
4
4
|
import { useDatasourceAnalyticsEvents } from '../../../../../analytics';
|
|
5
5
|
import { asyncPopupSelectMessages } from './messages';
|
|
6
6
|
var ShowMoreButton = function ShowMoreButton(_ref) {
|