@atlaskit/link-datasource 2.3.2 → 2.3.4
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 +18 -0
- package/dist/cjs/contexts/datasource-experience-id/index.js +28 -0
- package/dist/cjs/ui/assets-modal/modal/index.js +11 -10
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +2 -4
- package/dist/cjs/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +8 -7
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +6 -5
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +1 -0
- package/dist/cjs/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/cjs/ui/issue-like-table/index.js +12 -9
- package/dist/cjs/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/cjs/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/cjs/ui/issue-like-table/styled.js +4 -0
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +15 -13
- package/dist/cjs/ui/table-footer/index.js +9 -0
- package/dist/es2019/contexts/datasource-experience-id/index.js +19 -0
- package/dist/es2019/ui/assets-modal/modal/index.js +9 -11
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +2 -4
- package/dist/es2019/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +6 -8
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +7 -10
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +6 -5
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +1 -0
- package/dist/es2019/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/es2019/ui/issue-like-table/index.js +12 -9
- package/dist/es2019/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/es2019/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/es2019/ui/issue-like-table/styled.js +4 -0
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +12 -13
- package/dist/es2019/ui/table-footer/index.js +9 -0
- package/dist/esm/contexts/datasource-experience-id/index.js +20 -0
- package/dist/esm/ui/assets-modal/modal/index.js +11 -10
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +2 -4
- package/dist/esm/ui/assets-modal/search-container/styled.js +6 -0
- package/dist/esm/ui/common/modal/popup-select/trigger.js +2 -0
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
- package/dist/esm/ui/confluence-search-modal/modal/index.js +8 -7
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +9 -9
- package/dist/esm/ui/issue-like-table/column-picker/index.js +6 -5
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +3 -0
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +1 -0
- package/dist/esm/ui/issue-like-table/empty-state/type.js +1 -0
- package/dist/esm/ui/issue-like-table/index.js +12 -9
- package/dist/esm/ui/issue-like-table/render-type/date-time/index.js +2 -0
- package/dist/esm/ui/issue-like-table/render-type/icon/index.js +1 -0
- package/dist/esm/ui/issue-like-table/render-type/text/index.js +2 -0
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +2 -0
- package/dist/esm/ui/issue-like-table/styled.js +4 -0
- package/dist/esm/ui/jira-issues-modal/modal/index.js +14 -12
- package/dist/esm/ui/table-footer/index.js +9 -0
- package/dist/types/analytics/generated/create-event-payload.d.ts +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/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types/contexts/datasource-experience-id/index.d.ts +4 -0
- package/dist/types/hooks/useAssetsClient.d.ts +2 -2
- package/dist/types/hooks/useObjectSchemas.d.ts +1 -1
- package/dist/types/services/cmdbService.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/services/mocks.d.ts +2 -2
- package/dist/types/services/useBasicFilterAGG.d.ts +2 -2
- package/dist/types/ui/assets-modal/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -2
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
- package/dist/types/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types/ui/common/initial-state-view/index.d.ts +1 -1
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +1 -1
- package/dist/types/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/control.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/index.d.ts +3 -3
- package/dist/types/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
- package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/trigger.d.ts +1 -1
- package/dist/types/ui/common/modal/popup-select/types.d.ts +1 -1
- package/dist/types/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
- package/dist/types/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
- package/dist/types/ui/confluence-search-modal/index.d.ts +1 -1
- package/dist/types/ui/datasource-table-view/index.d.ts +1 -1
- 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/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/column-picker/types.d.ts +1 -2
- package/dist/types/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types/ui/issue-like-table/empty-state/priority.d.ts +1 -1
- package/dist/types/ui/issue-like-table/empty-state/type.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-time/index.d.ts +2 -2
- package/dist/types/ui/issue-like-table/render-type/icon/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/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/types.d.ts +0 -4
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
- package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/index.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
- package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types/ui/jira-issues-modal/modal/index.d.ts +0 -2
- package/dist/types/ui/jira-issues-modal/types.d.ts +3 -3
- package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +1 -1
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
- package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
- package/dist/types-ts4.5/common/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
- package/dist/types-ts4.5/contexts/datasource-experience-id/index.d.ts +4 -0
- package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +2 -2
- package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +1 -1
- package/dist/types-ts4.5/services/cmdbService.d.ts +3 -3
- package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +1 -1
- package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +1 -1
- package/dist/types-ts4.5/services/mocks.d.ts +2 -2
- package/dist/types-ts4.5/services/useBasicFilterAGG.d.ts +2 -2
- package/dist/types-ts4.5/ui/assets-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/cancel-button/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/content-container/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/control.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/trigger.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/popup-select/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
- package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/confluence-search-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +1 -2
- package/dist/types-ts4.5/ui/issue-like-table/custom-icons.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/issue-like-table/types.d.ts +0 -4
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
- package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/modal/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +3 -3
- package/examples-helpers/buildAssetsIssuesTable.tsx +2 -2
- package/examples-helpers/buildConfluenceSearchTable.tsx +2 -2
- package/examples-helpers/buildIssueLikeTable.tsx +14 -10
- package/examples-helpers/buildJiraIssuesTable.tsx +10 -7
- 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 +2 -2
- package/package.json +7 -7
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import { fieldTextFontSize } from '../../styled';
|
|
4
4
|
export const TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
5
7
|
const TextWrapper = styled.span({
|
|
6
8
|
fontSize: fieldTextFontSize
|
|
7
9
|
});
|
|
@@ -20,6 +20,8 @@ const avatarWrapperStyles = xcss({
|
|
|
20
20
|
const widthObserverWrapperStyles = xcss({
|
|
21
21
|
position: 'relative'
|
|
22
22
|
});
|
|
23
|
+
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
23
25
|
const AvatarGroupWrapperStyles = styled.div({
|
|
24
26
|
ul: {
|
|
25
27
|
paddingLeft: '0px !important'
|
|
@@ -3,6 +3,8 @@ import { N40 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { fontFallback } from '@atlaskit/theme/typography';
|
|
4
4
|
export const ScrollableContainerHeight = 590;
|
|
5
5
|
export const fieldTextFontSize = `var(--ds-font-body, ${fontFallback.body.medium})`;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
6
8
|
export const Table = styled.table({
|
|
7
9
|
width: '100%'
|
|
8
10
|
});
|
|
@@ -22,6 +24,8 @@ export const withTablePluginPrefix = (tableSection, mainRule = '&') => `
|
|
|
22
24
|
`;
|
|
23
25
|
export const withTablePluginHeaderPrefix = withTablePluginPrefix.bind(null, 'thead');
|
|
24
26
|
export const withTablePluginBodyPrefix = withTablePluginPrefix.bind(null, 'tbody');
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
29
|
export const TableHeading = styled.th({
|
|
26
30
|
[`${withTablePluginHeaderPrefix()}`]: {
|
|
27
31
|
border: 0,
|
|
@@ -3,7 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { FormattedMessage, FormattedNumber } from 'react-intl-next';
|
|
6
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
7
6
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
8
7
|
import Button from '@atlaskit/button/standard-button';
|
|
9
8
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
@@ -20,6 +19,7 @@ import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/
|
|
|
20
19
|
import { mapSearchMethod } from '../../../analytics/utils';
|
|
21
20
|
import { buildDatasourceAdf } from '../../../common/utils/adf';
|
|
22
21
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
22
|
+
import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
23
23
|
import { useDatasourceTableState } from '../../../hooks/useDatasourceTableState';
|
|
24
24
|
import i18nEN from '../../../i18n/en';
|
|
25
25
|
import { useAvailableSites } from '../../../services/useAvailableSites';
|
|
@@ -56,7 +56,7 @@ const getDisplayValue = (currentViewMode, itemCount) => {
|
|
|
56
56
|
return itemCount === 1 ? DatasourceDisplay.INLINE : DatasourceDisplay.DATASOURCE_INLINE;
|
|
57
57
|
};
|
|
58
58
|
const jqlSupportDocumentLink = 'https://support.atlassian.com/jira-service-management-cloud/docs/use-advanced-search-with-jira-query-language-jql/';
|
|
59
|
-
|
|
59
|
+
const PlainJiraIssuesConfigModal = props => {
|
|
60
60
|
const {
|
|
61
61
|
datasourceId,
|
|
62
62
|
columnCustomSizes: initialColumnCustomSizes,
|
|
@@ -120,9 +120,7 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
120
120
|
const {
|
|
121
121
|
fireEvent
|
|
122
122
|
} = useDatasourceAnalyticsEvents();
|
|
123
|
-
const
|
|
124
|
-
current: modalRenderInstanceId
|
|
125
|
-
} = useRef(uuidv4());
|
|
123
|
+
const experienceId = useDatasourceExperienceId();
|
|
126
124
|
const analyticsPayload = useMemo(() => ({
|
|
127
125
|
extensionKey,
|
|
128
126
|
destinationObjectTypes
|
|
@@ -146,12 +144,12 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
146
144
|
if (shouldStartUfoExperience) {
|
|
147
145
|
startUfoExperience({
|
|
148
146
|
name: 'datasource-rendered'
|
|
149
|
-
},
|
|
147
|
+
}, experienceId);
|
|
150
148
|
}
|
|
151
|
-
}, [
|
|
149
|
+
}, [experienceId, status]);
|
|
152
150
|
useDataRenderedUfoExperience({
|
|
153
151
|
status,
|
|
154
|
-
experienceId:
|
|
152
|
+
experienceId: experienceId,
|
|
155
153
|
itemCount: responseItems.length,
|
|
156
154
|
canBeLink: currentViewMode === 'inline',
|
|
157
155
|
extensionKey
|
|
@@ -212,7 +210,7 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
212
210
|
fireCountViewedEvent();
|
|
213
211
|
}
|
|
214
212
|
}, [currentViewMode, status, fireIssueViewAnalytics, fireCountViewedEvent]);
|
|
215
|
-
useColumnPickerRenderedFailedUfoExperience(status,
|
|
213
|
+
useColumnPickerRenderedFailedUfoExperience(status, experienceId);
|
|
216
214
|
const onSearch = useCallback((newParameters, {
|
|
217
215
|
searchMethod,
|
|
218
216
|
basicFilterSelections,
|
|
@@ -362,13 +360,12 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
362
360
|
onNextPage: handleOnNextPage,
|
|
363
361
|
onLoadDatasourceDetails: loadDatasourceDetails,
|
|
364
362
|
onVisibleColumnKeysChange: handleVisibleColumnKeysChange,
|
|
365
|
-
parentContainerRenderInstanceId: modalRenderInstanceId,
|
|
366
363
|
extensionKey: extensionKey,
|
|
367
364
|
columnCustomSizes: columnCustomSizes,
|
|
368
365
|
onColumnResize: onColumnResize,
|
|
369
366
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
370
367
|
onWrappedColumnChange: getBooleanFF('platform.linking-platform.datasource-word_wrap') ? onWrappedColumnChange : undefined
|
|
371
|
-
})), [status, columns, responseItems, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, handleOnNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange,
|
|
368
|
+
})), [status, columns, responseItems, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, handleOnNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange, extensionKey, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange]);
|
|
372
369
|
const renderCountModeContent = useCallback(() => {
|
|
373
370
|
const selectedJiraSiteUrl = selectedJiraSite === null || selectedJiraSite === void 0 ? void 0 : selectedJiraSite.url;
|
|
374
371
|
if (status === 'unauthorized') {
|
|
@@ -470,7 +467,9 @@ export const PlainJiraIssuesConfigModal = props => {
|
|
|
470
467
|
}, jsx(LinkUrl, {
|
|
471
468
|
href: jqlUrl,
|
|
472
469
|
target: "_blank",
|
|
473
|
-
testId: "item-count-url"
|
|
470
|
+
testId: "item-count-url"
|
|
471
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
472
|
+
,
|
|
474
473
|
style: {
|
|
475
474
|
color: `var(--ds-text-accent-gray, ${N800})`
|
|
476
475
|
}
|
|
@@ -504,4 +503,4 @@ const contextData = {
|
|
|
504
503
|
...analyticsContextAttributes
|
|
505
504
|
}
|
|
506
505
|
};
|
|
507
|
-
export const JiraIssuesConfigModal = withAnalyticsContext(contextData)(PlainJiraIssuesConfigModal);
|
|
506
|
+
export const JiraIssuesConfigModal = withAnalyticsContext(contextData)(props => jsx(DatasourceExperienceIdProvider, null, jsx(PlainJiraIssuesConfigModal, props)));
|
|
@@ -13,6 +13,7 @@ import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
|
|
13
13
|
import { footerMessages } from './messages';
|
|
14
14
|
import { PoweredByJSMAssets } from './powered-by-jsm-assets';
|
|
15
15
|
import { SyncInfo } from './sync-info';
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
17
|
const FooterWrapper = styled.div({
|
|
17
18
|
padding: `${"var(--ds-space-0, 0px)"} ${"var(--ds-space-200, 16px)"}`,
|
|
18
19
|
boxSizing: 'border-box',
|
|
@@ -22,21 +23,29 @@ const FooterWrapper = styled.div({
|
|
|
22
23
|
background: `var(--ds-background-input, ${N0})`,
|
|
23
24
|
borderTop: `2px solid ${`var(--ds-background-accent-gray-subtler, ${N40})`}`
|
|
24
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
25
28
|
const TopBorderWrapper = styled.div({
|
|
26
29
|
display: 'flex',
|
|
27
30
|
boxSizing: 'border-box',
|
|
28
31
|
justifyContent: 'space-between',
|
|
29
32
|
padding: `${"var(--ds-space-250, 20px)"} ${"var(--ds-space-0, 0px)"}`
|
|
30
33
|
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
31
36
|
const ItemCounterWrapper = styled.div({
|
|
32
37
|
display: 'flex',
|
|
33
38
|
alignSelf: 'center'
|
|
34
39
|
});
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
35
42
|
const SyncWrapper = styled.div({
|
|
36
43
|
display: 'flex',
|
|
37
44
|
alignItems: 'center',
|
|
38
45
|
color: `var(--ds-text-accent-gray, ${N90})`
|
|
39
46
|
});
|
|
47
|
+
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
40
49
|
const SyncTextWrapper = styled.div({
|
|
41
50
|
marginRight: "var(--ds-space-075, 6px)",
|
|
42
51
|
fontSize: '12px'
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { useContext, useMemo } from 'react';
|
|
2
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
3
|
+
var DatasourceExperienceIdContext = /*#__PURE__*/React.createContext(undefined);
|
|
4
|
+
var DatasourceExperienceIdProvider = function DatasourceExperienceIdProvider(_ref) {
|
|
5
|
+
var children = _ref.children;
|
|
6
|
+
var value = useMemo(function () {
|
|
7
|
+
return uuidv4();
|
|
8
|
+
}, []);
|
|
9
|
+
return /*#__PURE__*/React.createElement(DatasourceExperienceIdContext.Provider, {
|
|
10
|
+
value: value
|
|
11
|
+
}, children);
|
|
12
|
+
};
|
|
13
|
+
var useDatasourceExperienceId = function useDatasourceExperienceId() {
|
|
14
|
+
var context = useContext(DatasourceExperienceIdContext);
|
|
15
|
+
if (!context) {
|
|
16
|
+
throw Error('useDatasourceExperienceId() must be wrapped in <DatasourceExperienceIdProvider>');
|
|
17
|
+
}
|
|
18
|
+
return context;
|
|
19
|
+
};
|
|
20
|
+
export { DatasourceExperienceIdProvider, useDatasourceExperienceId };
|
|
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
11
10
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
11
|
import Button from '@atlaskit/button/standard-button';
|
|
13
12
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
@@ -20,6 +19,7 @@ import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/u
|
|
|
20
19
|
import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
21
20
|
import { buildDatasourceAdf } from '../../../common/utils/adf';
|
|
22
21
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
22
|
+
import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
23
23
|
import { useAssetsClient } from '../../../hooks/useAssetsClient';
|
|
24
24
|
import { useDatasourceTableState } from '../../../hooks/useDatasourceTableState';
|
|
25
25
|
import i18nEN from '../../../i18n/en';
|
|
@@ -35,6 +35,7 @@ import { MODAL_HEIGHT, RenderAssetsContent } from './render-assets-content';
|
|
|
35
35
|
var modalBodyErrorWrapperStyles = css({
|
|
36
36
|
alignItems: 'center',
|
|
37
37
|
display: 'grid',
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
38
39
|
height: MODAL_HEIGHT
|
|
39
40
|
});
|
|
40
41
|
var AssetsModalTitle = jsx(ModalTitle, null, jsx(FormattedMessage, modalMessages.insertObjectsTitle));
|
|
@@ -66,8 +67,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
66
67
|
setErrorState = _useState10[1];
|
|
67
68
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
68
69
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
69
|
-
var
|
|
70
|
-
modalRenderInstanceId = _useRef.current;
|
|
70
|
+
var experienceId = useDatasourceExperienceId();
|
|
71
71
|
var _useAssetsClient = useAssetsClient(initialParameters),
|
|
72
72
|
workspaceId = _useAssetsClient.workspaceId,
|
|
73
73
|
workspaceError = _useAssetsClient.workspaceError,
|
|
@@ -176,17 +176,17 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
176
176
|
if (shouldStartUfoExperience) {
|
|
177
177
|
startUfoExperience({
|
|
178
178
|
name: 'datasource-rendered'
|
|
179
|
-
},
|
|
179
|
+
}, experienceId);
|
|
180
180
|
}
|
|
181
|
-
}, [
|
|
181
|
+
}, [experienceId, status]);
|
|
182
182
|
useDataRenderedUfoExperience({
|
|
183
183
|
status: status,
|
|
184
|
-
experienceId:
|
|
184
|
+
experienceId: experienceId,
|
|
185
185
|
itemCount: responseItems.length,
|
|
186
186
|
canBeLink: false,
|
|
187
187
|
extensionKey: extensionKey
|
|
188
188
|
});
|
|
189
|
-
useColumnPickerRenderedFailedUfoExperience(status,
|
|
189
|
+
useColumnPickerRenderedFailedUfoExperience(status, experienceId);
|
|
190
190
|
/* ------------------------------ END OBSERVABILITY ------------------------------ */
|
|
191
191
|
|
|
192
192
|
var onVisibleColumnKeysChange = useCallback(function (visibleColumnKeys) {
|
|
@@ -343,8 +343,7 @@ var PlainAssetsConfigModal = function PlainAssetsConfigModal(props) {
|
|
|
343
343
|
hasNextPage: hasNextPage,
|
|
344
344
|
loadDatasourceDetails: loadDatasourceDetails,
|
|
345
345
|
columns: columns,
|
|
346
|
-
defaultVisibleColumnKeys: defaultVisibleColumnKeys
|
|
347
|
-
modalRenderInstanceId: modalRenderInstanceId
|
|
346
|
+
defaultVisibleColumnKeys: defaultVisibleColumnKeys
|
|
348
347
|
})), jsx(ModalFooter, null, jsx(CancelButton, {
|
|
349
348
|
onCancel: onCancel,
|
|
350
349
|
getAnalyticsPayload: getCancelButtonAnalyticsPayload,
|
|
@@ -369,4 +368,6 @@ var analyticsContextData = _objectSpread(_objectSpread({}, componentMetadata.con
|
|
|
369
368
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
370
369
|
attributes: _objectSpread({}, analyticsContextAttributes)
|
|
371
370
|
});
|
|
372
|
-
export var AssetsConfigModal = withAnalyticsContext(contextData)(
|
|
371
|
+
export var AssetsConfigModal = withAnalyticsContext(contextData)(function (props) {
|
|
372
|
+
return jsx(DatasourceExperienceIdProvider, null, jsx(PlainAssetsConfigModal, props));
|
|
373
|
+
});
|
|
@@ -65,7 +65,6 @@ export var RenderAssetsContent = function RenderAssetsContent(props) {
|
|
|
65
65
|
columns = props.columns,
|
|
66
66
|
defaultVisibleColumnKeys = props.defaultVisibleColumnKeys,
|
|
67
67
|
onVisibleColumnKeysChange = props.onVisibleColumnKeysChange,
|
|
68
|
-
modalRenderInstanceId = props.modalRenderInstanceId,
|
|
69
68
|
isFetchingInitialData = props.isFetchingInitialData;
|
|
70
69
|
var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
|
|
71
70
|
var issueLikeDataTableView = useMemo(function () {
|
|
@@ -80,10 +79,9 @@ export var RenderAssetsContent = function RenderAssetsContent(props) {
|
|
|
80
79
|
visibleColumnKeys: visibleColumnKeys || defaultVisibleColumnKeys,
|
|
81
80
|
onNextPage: onNextPage,
|
|
82
81
|
onLoadDatasourceDetails: loadDatasourceDetails,
|
|
83
|
-
onVisibleColumnKeysChange: onVisibleColumnKeysChange
|
|
84
|
-
parentContainerRenderInstanceId: modalRenderInstanceId
|
|
82
|
+
onVisibleColumnKeysChange: onVisibleColumnKeysChange
|
|
85
83
|
}));
|
|
86
|
-
}, [columns, defaultVisibleColumnKeys, hasNextPage, loadDatasourceDetails, onNextPage, onVisibleColumnKeysChange, responseItems, status, visibleColumnKeys
|
|
84
|
+
}, [columns, defaultVisibleColumnKeys, hasNextPage, loadDatasourceDetails, onNextPage, onVisibleColumnKeysChange, responseItems, status, visibleColumnKeys]);
|
|
87
85
|
var renderAssetsContentView = useCallback(function () {
|
|
88
86
|
if (isFetchingInitialData) {
|
|
89
87
|
// Placing this check first as it's a priority before all others
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
2
3
|
export var FormRowContainer = styled.div(function (props) {
|
|
3
4
|
return {
|
|
4
5
|
alignItems: 'center',
|
|
@@ -8,6 +9,8 @@ export var FormRowContainer = styled.div(function (props) {
|
|
|
8
9
|
width: '100%'
|
|
9
10
|
};
|
|
10
11
|
});
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
11
14
|
export var FormContainer = styled.form({
|
|
12
15
|
display: 'grid',
|
|
13
16
|
rowGap: "var(--ds-space-200, 16px)",
|
|
@@ -15,10 +18,13 @@ export var FormContainer = styled.form({
|
|
|
15
18
|
});
|
|
16
19
|
|
|
17
20
|
// Override the top margin of fields
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
18
22
|
export var FieldContainer = styled.div({
|
|
19
23
|
flex: 1,
|
|
20
24
|
marginTop: "var(--ds-space-negative-100, -8px)"
|
|
21
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
22
28
|
export var SchemaSelectContainer = styled.div({
|
|
23
29
|
width: '100%',
|
|
24
30
|
maxWidth: '386px'
|
|
@@ -13,6 +13,8 @@ var triggerButtonLabelStyles = xcss({
|
|
|
13
13
|
var badgeStyles = xcss({
|
|
14
14
|
marginLeft: 'space.050'
|
|
15
15
|
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
18
|
export var LoadingStateAnimationWrapper = styled.div({
|
|
17
19
|
position: 'relative',
|
|
18
20
|
animation: 'flickerAnimation 2s infinite',
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { B400, B50, N0, N20, N30, R400 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { layers } from '@atlaskit/theme/constants';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
4
5
|
export var PopupComponentContainer = styled.div({
|
|
5
6
|
boxSizing: 'border-box',
|
|
6
7
|
display: 'block',
|
|
@@ -13,6 +14,8 @@ export var PopupComponentContainer = styled.div({
|
|
|
13
14
|
},
|
|
14
15
|
boxShadow: "var(--ds-shadow-overlay, 0px 0px 1px 0px rgba(9, 30, 66, 0.31), 0px 3px 5px 0px rgba(9, 30, 66, 0.20))"
|
|
15
16
|
});
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
16
19
|
export var CustomDropdown = styled.div({
|
|
17
20
|
width: '340px',
|
|
18
21
|
background: "var(--ds-background-input, ".concat(N0, ")"),
|
|
@@ -20,6 +23,8 @@ export var CustomDropdown = styled.div({
|
|
|
20
23
|
boxShadow: "var(--ds-shadow-overlay, 0px 0px 1px 0px rgba(9, 30, 66, 0.31), 0px 3px 5px 0px rgba(9, 30, 66, 0.20))",
|
|
21
24
|
zIndex: layers.modal()
|
|
22
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
23
28
|
export var CustomDropdownItem = styled.div(function (props) {
|
|
24
29
|
return {
|
|
25
30
|
height: '36px',
|
|
@@ -38,16 +43,22 @@ export var CustomDropdownItem = styled.div(function (props) {
|
|
|
38
43
|
}
|
|
39
44
|
};
|
|
40
45
|
});
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
41
48
|
export var CustomDateWrapper = styled.div({
|
|
42
49
|
padding: "var(--ds-space-150, 12px)",
|
|
43
50
|
boxSizing: 'border-box'
|
|
44
51
|
});
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
45
54
|
export var DatePickersWrapper = styled.div({
|
|
46
55
|
display: 'flex',
|
|
47
56
|
justifyContent: 'space-between',
|
|
48
57
|
alignItems: 'center',
|
|
49
58
|
width: '100%'
|
|
50
59
|
});
|
|
60
|
+
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
51
62
|
export var SelectDateRangeButton = styled.button({
|
|
52
63
|
background: "var(--ds-background-accent-gray-subtler, ".concat(N20, ")"),
|
|
53
64
|
border: 'none',
|
|
@@ -61,6 +72,8 @@ export var SelectDateRangeButton = styled.button({
|
|
|
61
72
|
cursor: 'pointer'
|
|
62
73
|
}
|
|
63
74
|
});
|
|
75
|
+
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
64
77
|
export var DateRangeErrorMessage = styled.div({
|
|
65
78
|
display: 'flex',
|
|
66
79
|
lineHeight: 1.3333,
|
|
@@ -7,7 +7,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { FormattedMessage, FormattedNumber } from 'react-intl-next';
|
|
10
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
11
10
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
11
|
import Button from '@atlaskit/button/standard-button';
|
|
13
12
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
@@ -21,6 +20,7 @@ import { componentMetadata } from '../../../analytics/constants';
|
|
|
21
20
|
import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../../../analytics/types';
|
|
22
21
|
import { buildDatasourceAdf } from '../../../common/utils/adf';
|
|
23
22
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
23
|
+
import { DatasourceExperienceIdProvider } from '../../../contexts/datasource-experience-id';
|
|
24
24
|
import { useDatasourceTableState } from '../../../hooks/useDatasourceTableState';
|
|
25
25
|
import i18nEN from '../../../i18n/en';
|
|
26
26
|
import { useAvailableSites } from '../../../services/useAvailableSites';
|
|
@@ -52,8 +52,6 @@ var searchCountStyles = xcss({
|
|
|
52
52
|
fontWeight: 600
|
|
53
53
|
});
|
|
54
54
|
export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConfigModal(props) {
|
|
55
|
-
var _useRef = useRef(uuidv4()),
|
|
56
|
-
modalRenderInstanceId = _useRef.current;
|
|
57
55
|
var datasourceId = props.datasourceId,
|
|
58
56
|
initialColumnCustomSizes = props.columnCustomSizes,
|
|
59
57
|
initialWrappedColumnKeys = props.wrappedColumnKeys,
|
|
@@ -210,14 +208,13 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
210
208
|
onNextPage: onNextPage,
|
|
211
209
|
onLoadDatasourceDetails: loadDatasourceDetails,
|
|
212
210
|
onVisibleColumnKeysChange: handleVisibleColumnKeysChange,
|
|
213
|
-
parentContainerRenderInstanceId: modalRenderInstanceId,
|
|
214
211
|
extensionKey: extensionKey,
|
|
215
212
|
columnCustomSizes: columnCustomSizes,
|
|
216
213
|
onColumnResize: onColumnResize,
|
|
217
214
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
218
215
|
onWrappedColumnChange: getBooleanFF('platform.linking-platform.datasource-word_wrap') ? onWrappedColumnChange : undefined
|
|
219
216
|
}));
|
|
220
|
-
}, [status, columns, responseItems, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, onNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange,
|
|
217
|
+
}, [status, columns, responseItems, hasNextPage, visibleColumnKeys, defaultVisibleColumnKeys, onNextPage, loadDatasourceDetails, handleVisibleColumnKeysChange, extensionKey, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange]);
|
|
221
218
|
var resolvedWithNoResults = status === 'resolved' && !responseItems.length;
|
|
222
219
|
var hasConfluenceSearchParams = selectedConfluenceSite && searchString;
|
|
223
220
|
var selectedConfluenceSiteUrl = selectedConfluenceSite === null || selectedConfluenceSite === void 0 ? void 0 : selectedConfluenceSite.url;
|
|
@@ -444,7 +441,9 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
444
441
|
}, jsx(LinkUrl, {
|
|
445
442
|
href: confluenceSearchUrl,
|
|
446
443
|
target: "_blank",
|
|
447
|
-
testId: "item-count-url"
|
|
444
|
+
testId: "item-count-url"
|
|
445
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
446
|
+
,
|
|
448
447
|
style: {
|
|
449
448
|
color: "var(--ds-text-accent-gray, ".concat(N800, ")")
|
|
450
449
|
}
|
|
@@ -474,4 +473,6 @@ var analyticsContextData = _objectSpread(_objectSpread({}, componentMetadata.con
|
|
|
474
473
|
var contextData = _objectSpread(_objectSpread({}, analyticsContextData), {}, {
|
|
475
474
|
attributes: _objectSpread({}, analyticsContextAttributes)
|
|
476
475
|
});
|
|
477
|
-
export var ConfluenceSearchConfigModal = withAnalyticsContext(contextData)(
|
|
476
|
+
export var ConfluenceSearchConfigModal = withAnalyticsContext(contextData)(function (props) {
|
|
477
|
+
return jsx(DatasourceExperienceIdProvider, null, jsx(PlainConfluenceSearchConfigModal, props));
|
|
478
|
+
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useEffect, useRef } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
5
4
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
5
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
7
6
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
@@ -10,6 +9,7 @@ import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
|
10
9
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
11
10
|
import { useDataRenderedUfoExperience } from '../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
12
11
|
import { fetchMessagesForLocale } from '../../common/utils/locale/fetch-messages-for-locale';
|
|
12
|
+
import { DatasourceExperienceIdProvider, useDatasourceExperienceId } from '../../contexts/datasource-experience-id';
|
|
13
13
|
import { useDatasourceTableState } from '../../hooks/useDatasourceTableState';
|
|
14
14
|
import i18nEN from '../../i18n/en';
|
|
15
15
|
import { ScrollableContainerHeight } from '../../ui/issue-like-table/styled';
|
|
@@ -54,8 +54,7 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
54
54
|
authDetails = _useDatasourceTableSt.authDetails;
|
|
55
55
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
56
56
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
57
|
-
var
|
|
58
|
-
tableRenderInstanceId = _useRef.current;
|
|
57
|
+
var experienceId = useDatasourceExperienceId();
|
|
59
58
|
var visibleColumnCount = useRef((visibleColumnKeys === null || visibleColumnKeys === void 0 ? void 0 : visibleColumnKeys.length) || 0);
|
|
60
59
|
|
|
61
60
|
/* Need this to make sure that the datasource in the editor gets updated new info if any edits are made in the modal
|
|
@@ -94,13 +93,13 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
94
93
|
if (shouldStartUfoExperience) {
|
|
95
94
|
startUfoExperience({
|
|
96
95
|
name: 'datasource-rendered'
|
|
97
|
-
},
|
|
96
|
+
}, experienceId);
|
|
98
97
|
}
|
|
99
|
-
}, [datasourceId, parameters, status,
|
|
100
|
-
useColumnPickerRenderedFailedUfoExperience(status,
|
|
98
|
+
}, [datasourceId, parameters, status, experienceId, visibleColumnKeys]);
|
|
99
|
+
useColumnPickerRenderedFailedUfoExperience(status, experienceId);
|
|
101
100
|
useDataRenderedUfoExperience({
|
|
102
101
|
status: status,
|
|
103
|
-
experienceId:
|
|
102
|
+
experienceId: experienceId,
|
|
104
103
|
itemCount: responseItems.length,
|
|
105
104
|
extensionKey: extensionKey
|
|
106
105
|
});
|
|
@@ -164,7 +163,6 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
164
163
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
165
164
|
onWrappedColumnChange: onWrappedColumnChange,
|
|
166
165
|
scrollableContainerHeight: ScrollableContainerHeight,
|
|
167
|
-
parentContainerRenderInstanceId: tableRenderInstanceId,
|
|
168
166
|
extensionKey: extensionKey
|
|
169
167
|
}) : jsx(EmptyState, {
|
|
170
168
|
testId: "datasource-table-view-skeleton",
|
|
@@ -177,4 +175,6 @@ var DatasourceTableViewWithoutAnalytics = function DatasourceTableViewWithoutAna
|
|
|
177
175
|
url: url
|
|
178
176
|
})));
|
|
179
177
|
};
|
|
180
|
-
export var DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(
|
|
178
|
+
export var DatasourceTableView = withAnalyticsContext(componentMetadata.tableView)(function (props) {
|
|
179
|
+
return jsx(DatasourceExperienceIdProvider, null, jsx(DatasourceTableViewWithoutAnalytics, props));
|
|
180
|
+
});
|
|
@@ -13,15 +13,16 @@ import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
13
13
|
import { CheckboxOption, createFilter, PopupSelect } from '@atlaskit/select';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
15
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences';
|
|
16
|
+
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
16
17
|
import { ConcatenatedMenuList } from './concatenated-menu-list';
|
|
17
18
|
import { columnPickerMessages } from './messages';
|
|
18
19
|
export var ColumnPicker = function ColumnPicker(_ref) {
|
|
19
20
|
var columns = _ref.columns,
|
|
20
21
|
selectedColumnKeys = _ref.selectedColumnKeys,
|
|
21
22
|
onSelectedColumnKeysChange = _ref.onSelectedColumnKeysChange,
|
|
22
|
-
onOpen = _ref.onOpen
|
|
23
|
-
parentContainerRenderInstanceId = _ref.parentContainerRenderInstanceId;
|
|
23
|
+
onOpen = _ref.onOpen;
|
|
24
24
|
var intl = useIntl();
|
|
25
|
+
var experienceId = useDatasourceExperienceId();
|
|
25
26
|
var _useState = useState([]),
|
|
26
27
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
28
|
allOptions = _useState2[0],
|
|
@@ -100,13 +101,13 @@ export var ColumnPicker = function ColumnPicker(_ref) {
|
|
|
100
101
|
}, [allOptions]);
|
|
101
102
|
useEffect(function () {
|
|
102
103
|
if (allOptions.length) {
|
|
103
|
-
if (
|
|
104
|
+
if (experienceId) {
|
|
104
105
|
succeedUfoExperience({
|
|
105
106
|
name: 'column-picker-rendered'
|
|
106
|
-
},
|
|
107
|
+
}, experienceId);
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
|
-
}, [allOptions,
|
|
110
|
+
}, [allOptions, experienceId]);
|
|
110
111
|
return jsx(PopupSelect, {
|
|
111
112
|
classNamePrefix: 'column-picker-popup',
|
|
112
113
|
testId: 'column-picker-popup',
|
|
@@ -7,6 +7,7 @@ import { fontFallback } from '@atlaskit/theme/typography';
|
|
|
7
7
|
import { TableHeading } from './styled';
|
|
8
8
|
var maxWidth = '200px';
|
|
9
9
|
var firstLastChildOverride = "\n &:first-of-type, &:last-of-type {\n padding-left: ".concat("var(--ds-space-100, 8px)", ";\n padding-right: ", "var(--ds-space-100, 8px)", ";\n }\n");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
10
11
|
var TablePreviewHeading = styled(TableHeading)({
|
|
11
12
|
overflow: 'hidden',
|
|
12
13
|
textOverflow: 'ellipsis',
|
|
@@ -14,6 +15,8 @@ var TablePreviewHeading = styled(TableHeading)({
|
|
|
14
15
|
background: "var(--ds-background-disabled, #091E4224)",
|
|
15
16
|
maxWidth: maxWidth
|
|
16
17
|
}, firstLastChildOverride);
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
17
20
|
var TablePreviewCell = styled.td({
|
|
18
21
|
overflow: 'hidden',
|
|
19
22
|
textOverflow: 'ellipsis',
|
|
@@ -28,6 +28,7 @@ import { GlyphPlaceholder, UnwrapTextIcon, WrapTextIcon } from './custom-icons';
|
|
|
28
28
|
import { issueLikeTableMessages } from './messages';
|
|
29
29
|
import { TableHeading } from './styled';
|
|
30
30
|
import { COLUMN_MIN_WIDTH, getWidthCss } from './utils';
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
31
32
|
var DropdownParent = styled.div({
|
|
32
33
|
display: 'flex',
|
|
33
34
|
alignItems: 'center',
|
|
@@ -6,6 +6,7 @@ import Epic16Icon from '@atlaskit/icon-object/glyph/epic/16';
|
|
|
6
6
|
import Issue16Icon from '@atlaskit/icon-object/glyph/issue/16';
|
|
7
7
|
import Story16Icon from '@atlaskit/icon-object/glyph/story/16';
|
|
8
8
|
import Task16Icon from '@atlaskit/icon-object/glyph/task/16';
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
9
10
|
var IconWrapper = styled.div({
|
|
10
11
|
display: 'flex',
|
|
11
12
|
alignItems: 'center',
|