@atlaskit/link-datasource 6.4.13 → 6.6.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 +48 -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/analytics/xpc/useDatasourceCrossProductAttribution.js +75 -0
- 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-modal/createDatasourceModal.js +2 -2
- package/dist/cjs/ui/common/modal/datasource-modal/index.js +1 -1
- 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 +8 -8
- 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 +8 -7
- 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.js +17 -17
- package/dist/cjs/ui/issue-like-table/render-type/link/index.js +6 -3
- 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 +59 -46
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/jql-editor/index.js +2 -2
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +27 -18
- 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/analytics/xpc/useDatasourceCrossProductAttribution.js +64 -0
- 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-modal/createDatasourceModal.js +1 -1
- package/dist/es2019/ui/common/modal/datasource-modal/index.js +1 -1
- 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 +2 -2
- 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 +4 -3
- 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.js +7 -7
- package/dist/es2019/ui/issue-like-table/render-type/link/index.js +6 -3
- 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 +33 -18
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +15 -5
- 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/analytics/xpc/useDatasourceCrossProductAttribution.js +68 -0
- 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-modal/createDatasourceModal.js +1 -1
- package/dist/esm/ui/common/modal/datasource-modal/index.js +1 -1
- 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 +2 -2
- 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 +4 -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.js +7 -7
- package/dist/esm/ui/issue-like-table/render-type/link/index.js +6 -3
- 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 +58 -45
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/esm/ui/jira-issues-modal/jql-editor/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +14 -5
- 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/analytics/xpc/useDatasourceCrossProductAttribution.d.ts +13 -0
- 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/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 +2 -2
- package/dist/types/ui/datasource-table-view/types.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/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/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/types.d.ts +1 -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 +1 -1
- package/examples-helpers/buildConfluenceSearchTable.tsx +1 -1
- package/examples-helpers/mockJqlSmartLinkData.ts +1 -1
- package/examples-helpers/mockSmartLinkData.ts +1 -1
- package/examples-helpers/smartLinkCustomClient.ts +1 -1
- package/package.json +49 -44
|
@@ -6,9 +6,9 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
8
|
import isEqual from 'lodash/isEqual';
|
|
9
|
-
import
|
|
9
|
+
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
10
10
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
12
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
13
13
|
import { componentMetadata } from '../../analytics/constants';
|
|
14
14
|
import { startUfoExperience } from '../../analytics/ufoExperiences';
|
|
@@ -7,7 +7,8 @@ import "./concatenated-menu-list.compiled.css";
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import { FormattedMessage } from 'react-intl';
|
|
10
|
-
import { CheckboxOption
|
|
10
|
+
import { CheckboxOption } from '@atlaskit/select/checkbox-option';
|
|
11
|
+
import { components } from '@atlaskit/react-select/components';
|
|
11
12
|
import { columnPickerMessages } from './messages';
|
|
12
13
|
export var SELECT_ITEMS_MAXIMUM_THRESHOLD = 200;
|
|
13
14
|
var messageStyles = null;
|
|
@@ -8,12 +8,13 @@ import "./index.compiled.css";
|
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
|
-
import Button from '@atlaskit/button/
|
|
11
|
+
import Button from '@atlaskit/button/default/button';
|
|
12
12
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
13
13
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
14
14
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
15
|
-
import { createFilter
|
|
16
|
-
import
|
|
15
|
+
import { createFilter } from '@atlaskit/react-select/filters';
|
|
16
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
17
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
18
|
import { succeedUfoExperience } from '../../../analytics/ufoExperiences';
|
|
18
19
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
19
20
|
import { ConcatenatedMenuList, MenuItem } from './concatenated-menu-list';
|
|
@@ -18,18 +18,20 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
18
18
|
import ReactDOM from 'react-dom';
|
|
19
19
|
import { FormattedMessage } from 'react-intl';
|
|
20
20
|
import invariant from 'tiny-invariant';
|
|
21
|
-
import Button from '@atlaskit/button/
|
|
22
|
-
import DropdownMenu
|
|
21
|
+
import Button from '@atlaskit/button/default/button';
|
|
22
|
+
import DropdownMenu from '@atlaskit/dropdown-menu/dropdown-menu';
|
|
23
|
+
import DropdownItem from '@atlaskit/dropdown-menu/dropdown-menu-item';
|
|
23
24
|
import ChevronDown from '@atlaskit/icon/core/chevron-down';
|
|
24
25
|
import ChevronUp from '@atlaskit/icon/core/chevron-up';
|
|
25
|
-
import { attachClosestEdge
|
|
26
|
+
import { attachClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/attach-closest-edge';
|
|
27
|
+
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge';
|
|
26
28
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
27
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
28
|
-
import { draggable, dropTargetForElements, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
29
|
-
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/
|
|
30
|
-
import { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/
|
|
31
|
-
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/
|
|
32
|
-
import { preventUnhandled } from '@atlaskit/pragmatic-drag-and-drop/prevent-unhandled';
|
|
29
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
30
|
+
import { draggable, dropTargetForElements, monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
31
|
+
import { disableNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/disable-native-drag-preview';
|
|
32
|
+
import { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/pointer-outside-of-preview';
|
|
33
|
+
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/utils/set-custom-native-drag-preview';
|
|
34
|
+
import { preventUnhandled } from '@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled';
|
|
33
35
|
import { useDatasourceAnalyticsEvents } from '../../analytics';
|
|
34
36
|
import { GlyphPlaceholder, UnwrapTextIcon, WrapTextIcon } from './custom-icons';
|
|
35
37
|
import { issueLikeTableMessages } from './messages';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { Layering } from '@atlaskit/layering/layering';
|
|
4
|
-
import Select from '@atlaskit/select';
|
|
5
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
4
|
+
import Select from '@atlaskit/select/default';
|
|
5
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
6
6
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
7
7
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
8
8
|
import { useLoadOptions } from '../../../../hooks/useLoadOptions';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { Layering } from '@atlaskit/layering/layering';
|
|
4
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
5
|
-
import Select from '@atlaskit/select';
|
|
6
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
4
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
5
|
+
import Select from '@atlaskit/select/default';
|
|
6
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
7
7
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
8
8
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
9
9
|
import { useLoadOptions } from '../../../../hooks/useLoadOptions';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { Layering } from '@atlaskit/layering/layering';
|
|
4
|
-
import Textfield from '@atlaskit/textfield';
|
|
4
|
+
import Textfield from '@atlaskit/textfield/text-field';
|
|
5
5
|
import { succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
6
6
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
7
7
|
var TextEditType = function TextEditType(props) {
|
|
@@ -3,10 +3,11 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
3
3
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { useDebouncedCallback } from 'use-debounce';
|
|
6
|
-
import Avatar
|
|
6
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
7
|
+
import AvatarItem from '@atlaskit/avatar/avatar-item';
|
|
7
8
|
import { Layering } from '@atlaskit/layering/layering';
|
|
8
|
-
import Select from '@atlaskit/select';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import Select from '@atlaskit/select/default';
|
|
10
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
11
|
import { failUfoExperience, succeedUfoExperience } from '../../../../analytics/ufoExperiences';
|
|
11
12
|
import { useDatasourceExperienceId } from '../../../../contexts/datasource-experience-id';
|
|
12
13
|
import { useLoadOptions } from '../../../../hooks/useLoadOptions';
|
|
@@ -22,19 +22,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
22
22
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
23
23
|
import { useIntl } from 'react-intl';
|
|
24
24
|
import invariant from 'tiny-invariant';
|
|
25
|
-
import Button from '@atlaskit/button/
|
|
26
|
-
import { FlagsProvider } from '@atlaskit/flag';
|
|
25
|
+
import Button from '@atlaskit/button/default/button';
|
|
26
|
+
import { FlagsProvider } from '@atlaskit/flag/flags-provider';
|
|
27
27
|
import SortAscendingIcon from '@atlaskit/icon/core/sort-ascending';
|
|
28
28
|
import SortDescendingIcon from '@atlaskit/icon/core/sort-descending';
|
|
29
29
|
import { Skeleton } from '@atlaskit/linking-common';
|
|
30
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
31
|
-
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
30
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
31
|
+
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge/extract-closest-edge';
|
|
32
32
|
import { reorderWithEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/reorder-with-edge';
|
|
33
33
|
import { autoScroller } from '@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll';
|
|
34
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
35
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element
|
|
34
|
+
import { combine } from '@atlaskit/pragmatic-drag-and-drop/utils/combine';
|
|
35
|
+
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter';
|
|
36
36
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
37
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
37
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
38
38
|
import { startUfoExperience, succeedUfoExperience } from '../../analytics/ufoExperiences';
|
|
39
39
|
import { useDatasourceExperienceId } from '../../contexts/datasource-experience-id';
|
|
40
40
|
import { useIsInPDFRender } from '../../hooks/useIsInPDFRender';
|
|
@@ -2,6 +2,7 @@ import React, { useMemo } from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
4
|
import { Card } from '@atlaskit/smart-card';
|
|
5
|
+
import { useSmartLinkDestinationUrl } from '@atlaskit/smart-card/hook/use-smart-link-destination-url';
|
|
5
6
|
import { HoverCard } from '@atlaskit/smart-card/hover-card';
|
|
6
7
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
7
8
|
import VisuallyHidden from '@atlaskit/visually-hidden/visually-hidden';
|
|
@@ -26,11 +27,13 @@ var LinkRenderType = function LinkRenderType(_ref) {
|
|
|
26
27
|
var linkStyle = useMemo(function () {
|
|
27
28
|
return (style === null || style === void 0 ? void 0 : style.appearance) && linkStyles[style.appearance] || {};
|
|
28
29
|
}, [style]);
|
|
30
|
+
var destinationUrl = useSmartLinkDestinationUrl(url);
|
|
31
|
+
var crossProductUrlGated = fg('electric_issue_like_table_xpc_url_wrapping') ? destinationUrl : url;
|
|
29
32
|
var anchor = useMemo(function () {
|
|
30
33
|
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
31
34
|
url: url
|
|
32
35
|
}, /*#__PURE__*/React.createElement(LinkUrl, {
|
|
33
|
-
href:
|
|
36
|
+
href: crossProductUrlGated
|
|
34
37
|
// NOTE: This will no longer apply styles to `@atlaskit/link`.
|
|
35
38
|
// Wrap `@atlaskit/link` in a Text component to provide font styles to Link
|
|
36
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -43,11 +46,11 @@ var LinkRenderType = function LinkRenderType(_ref) {
|
|
|
43
46
|
// This link always opens in a new tab (`target="_blank"` above), so
|
|
44
47
|
// screen reader users need to be told before activating it (WCAG 2.4.4).
|
|
45
48
|
React.createElement(VisuallyHidden, null, " ".concat(formatMessage(messages.opensInNewTab)))));
|
|
46
|
-
}, [linkStyle, url, text, testId, formatMessage]);
|
|
49
|
+
}, [linkStyle, url, text, testId, formatMessage, crossProductUrlGated]);
|
|
47
50
|
var SmartCard = function SmartCard() {
|
|
48
51
|
var handleClick = function handleClick(e) {
|
|
49
52
|
e.preventDefault();
|
|
50
|
-
window.open(
|
|
53
|
+
window.open(crossProductUrlGated, '_blank', 'noopener, noreferrer');
|
|
51
54
|
};
|
|
52
55
|
return /*#__PURE__*/React.createElement(Card, {
|
|
53
56
|
appearance: "inline",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
2
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
3
3
|
export var STATUS_TYPE_TEST_ID = 'link-datasource-render-type--status';
|
|
4
4
|
var StatusRenderType = function StatusRenderType(_ref) {
|
|
5
5
|
var text = _ref.text,
|
|
@@ -8,10 +8,10 @@ import { forwardRef } from 'react';
|
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import React, { useState } from 'react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl';
|
|
11
|
-
import Avatar from '@atlaskit/avatar';
|
|
12
|
-
import AvatarGroup from '@atlaskit/avatar-group';
|
|
11
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
12
|
+
import AvatarGroup from '@atlaskit/avatar-group/avatar-group';
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
|
-
import { WidthObserver } from '@atlaskit/width-detector';
|
|
14
|
+
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
15
15
|
import { userTypeMessages } from './messages';
|
|
16
16
|
var styles = {
|
|
17
17
|
userWrapperStyles: "_11c8fhey _1e0c1txw _4cvr1h6o",
|
|
@@ -3,9 +3,9 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
6
|
-
import Avatar from '@atlaskit/avatar';
|
|
6
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
8
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
9
9
|
import { USER_TYPE_TEST_ID } from '../../render-type/user';
|
|
10
10
|
import { userTypeMessages } from '../../render-type/user/messages';
|
|
11
11
|
var styles = {
|
|
@@ -3,10 +3,11 @@ import "./index.compiled.css";
|
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
8
|
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
9
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
|
+
import { useDatasourceCrossProductAttribution } from '../../../analytics/xpc/useDatasourceCrossProductAttribution';
|
|
10
11
|
import { useDatasourceItem } from '../../../state';
|
|
11
12
|
import { useExecuteAtomicAction } from '../../../state/actions';
|
|
12
13
|
import { isEditTypeSelectable, isEditTypeSupported } from '../edit-type';
|
|
@@ -72,17 +73,32 @@ var getLinkedCellContent = function getLinkedCellContent(_ref2) {
|
|
|
72
73
|
"data-testid": 'issue-like-table-type-icon-link'
|
|
73
74
|
}, children);
|
|
74
75
|
};
|
|
76
|
+
var LinkedCellContentWrapped = function LinkedCellContentWrapped(_ref3) {
|
|
77
|
+
var children = _ref3.children,
|
|
78
|
+
issueLinkData = _ref3.issueLinkData;
|
|
79
|
+
var _useDatasourceCrossPr = useDatasourceCrossProductAttribution(),
|
|
80
|
+
wrapCrossProductUrl = _useDatasourceCrossPr.wrapCrossProductUrl;
|
|
81
|
+
if (!issueLinkData) {
|
|
82
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
83
|
+
}
|
|
84
|
+
return /*#__PURE__*/React.createElement(LinkUrl, {
|
|
85
|
+
href: wrapCrossProductUrl(issueLinkData.url),
|
|
86
|
+
target: "_blank",
|
|
87
|
+
"aria-label": issueLinkData.text || issueLinkData.url,
|
|
88
|
+
"data-testid": 'issue-like-table-type-icon-link'
|
|
89
|
+
}, children);
|
|
90
|
+
};
|
|
75
91
|
var isIssueTypeColumnFn = function isIssueTypeColumnFn(columnKey) {
|
|
76
92
|
return columnKey === 'issuetype';
|
|
77
93
|
};
|
|
78
|
-
export var ReadOnlyCell = function ReadOnlyCell(
|
|
94
|
+
export var ReadOnlyCell = function ReadOnlyCell(_ref4) {
|
|
79
95
|
var _useDatasourceItem, _rowData$columnKey;
|
|
80
|
-
var id =
|
|
81
|
-
columnType =
|
|
82
|
-
|
|
83
|
-
wrappedColumnKeys =
|
|
84
|
-
renderItem =
|
|
85
|
-
columnKey =
|
|
96
|
+
var id = _ref4.id,
|
|
97
|
+
columnType = _ref4.columnType,
|
|
98
|
+
_ref4$wrappedColumnKe = _ref4.wrappedColumnKeys,
|
|
99
|
+
wrappedColumnKeys = _ref4$wrappedColumnKe === void 0 ? [] : _ref4$wrappedColumnKe,
|
|
100
|
+
renderItem = _ref4.renderItem,
|
|
101
|
+
columnKey = _ref4.columnKey;
|
|
86
102
|
var rowData = (_useDatasourceItem = useDatasourceItem({
|
|
87
103
|
id: id
|
|
88
104
|
})) === null || _useDatasourceItem === void 0 ? void 0 : _useDatasourceItem.data;
|
|
@@ -97,33 +113,28 @@ export var ReadOnlyCell = function ReadOnlyCell(_ref3) {
|
|
|
97
113
|
type: columnType,
|
|
98
114
|
values: values
|
|
99
115
|
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var issueLinkData = getIssueLinkData(rowData);
|
|
103
|
-
return /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
104
|
-
columnKey: columnKey,
|
|
105
|
-
datasourceTypeWithValues: datasourceTypeWithValues,
|
|
106
|
-
wrappedColumnKeys: wrappedColumnKeys
|
|
107
|
-
}, isIssueTypeColumn && issueLinkData ? getLinkedCellContent({
|
|
108
|
-
children: renderItem(datasourceTypeWithValues),
|
|
109
|
-
issueLinkData: issueLinkData
|
|
110
|
-
}) : renderItem(datasourceTypeWithValues));
|
|
111
|
-
}
|
|
116
|
+
var isIssueTypeColumn = isIssueTypeColumnFn(columnKey);
|
|
117
|
+
var issueLinkData = getIssueLinkData(rowData);
|
|
112
118
|
return /*#__PURE__*/React.createElement(TooltipWrapper, {
|
|
113
119
|
columnKey: columnKey,
|
|
114
120
|
datasourceTypeWithValues: datasourceTypeWithValues,
|
|
115
121
|
wrappedColumnKeys: wrappedColumnKeys
|
|
116
|
-
},
|
|
122
|
+
}, isIssueTypeColumn && issueLinkData ? fg('electric_issue_like_table_xpc_url_wrapping') ? /*#__PURE__*/React.createElement(LinkedCellContentWrapped, {
|
|
123
|
+
issueLinkData: issueLinkData
|
|
124
|
+
}, renderItem(datasourceTypeWithValues)) : getLinkedCellContent({
|
|
125
|
+
children: renderItem(datasourceTypeWithValues),
|
|
126
|
+
issueLinkData: issueLinkData
|
|
127
|
+
}) : renderItem(datasourceTypeWithValues));
|
|
117
128
|
};
|
|
118
|
-
var InlineEditableCell = function InlineEditableCell(
|
|
119
|
-
var ari =
|
|
120
|
-
values =
|
|
121
|
-
columnKey =
|
|
122
|
-
columnTitle =
|
|
123
|
-
renderItem =
|
|
124
|
-
integrationKey =
|
|
125
|
-
issueLinkData =
|
|
126
|
-
wrappedColumnKeys =
|
|
129
|
+
var InlineEditableCell = function InlineEditableCell(_ref5) {
|
|
130
|
+
var ari = _ref5.ari,
|
|
131
|
+
values = _ref5.values,
|
|
132
|
+
columnKey = _ref5.columnKey,
|
|
133
|
+
columnTitle = _ref5.columnTitle,
|
|
134
|
+
renderItem = _ref5.renderItem,
|
|
135
|
+
integrationKey = _ref5.integrationKey,
|
|
136
|
+
issueLinkData = _ref5.issueLinkData,
|
|
137
|
+
wrappedColumnKeys = _ref5.wrappedColumnKeys;
|
|
127
138
|
// Callbacks are returned only when the ari is editable and the action schemas exist in the store
|
|
128
139
|
var _useExecuteAtomicActi = useExecuteAtomicAction({
|
|
129
140
|
ari: ari,
|
|
@@ -150,10 +161,12 @@ var InlineEditableCell = function InlineEditableCell(_ref4) {
|
|
|
150
161
|
style: {
|
|
151
162
|
minHeight: 'calc(40px - 2px * 2)'
|
|
152
163
|
}
|
|
153
|
-
},
|
|
164
|
+
}, !isEditable && isIssueTypeColumnFn(columnKey) && issueLinkData ? fg('electric_issue_like_table_xpc_url_wrapping') ? /*#__PURE__*/React.createElement(LinkedCellContentWrapped, {
|
|
165
|
+
issueLinkData: issueLinkData
|
|
166
|
+
}, renderItem(values)) : getLinkedCellContent({
|
|
154
167
|
children: renderItem(values),
|
|
155
168
|
issueLinkData: issueLinkData
|
|
156
|
-
}) : renderItem(values)
|
|
169
|
+
}) : renderItem(values)));
|
|
157
170
|
if (!isEditable) {
|
|
158
171
|
return readView;
|
|
159
172
|
}
|
|
@@ -172,11 +185,11 @@ var InlineEditableCell = function InlineEditableCell(_ref4) {
|
|
|
172
185
|
datasourceTypeWithValues: values
|
|
173
186
|
});
|
|
174
187
|
};
|
|
175
|
-
var toDatasourceTypeWithValues = function toDatasourceTypeWithValues(
|
|
188
|
+
var toDatasourceTypeWithValues = function toDatasourceTypeWithValues(_ref6) {
|
|
176
189
|
var _rowData$columnKey2;
|
|
177
|
-
var rowData =
|
|
178
|
-
columnKey =
|
|
179
|
-
columnType =
|
|
190
|
+
var rowData = _ref6.rowData,
|
|
191
|
+
columnKey = _ref6.columnKey,
|
|
192
|
+
columnType = _ref6.columnType;
|
|
180
193
|
// Need to make sure we keep falsy values like 0 and '', as well as the boolean false.
|
|
181
194
|
var value = (_rowData$columnKey2 = rowData[columnKey]) === null || _rowData$columnKey2 === void 0 ? void 0 : _rowData$columnKey2.data;
|
|
182
195
|
var values = !value ? [] : Array.isArray(value) ? value : [value];
|
|
@@ -185,13 +198,13 @@ var toDatasourceTypeWithValues = function toDatasourceTypeWithValues(_ref5) {
|
|
|
185
198
|
values: values
|
|
186
199
|
};
|
|
187
200
|
};
|
|
188
|
-
export var TableCellContent = function TableCellContent(
|
|
189
|
-
var id =
|
|
190
|
-
columnKey =
|
|
191
|
-
columnTitle =
|
|
192
|
-
columnType =
|
|
193
|
-
renderItem =
|
|
194
|
-
wrappedColumnKeys =
|
|
201
|
+
export var TableCellContent = function TableCellContent(_ref7) {
|
|
202
|
+
var id = _ref7.id,
|
|
203
|
+
columnKey = _ref7.columnKey,
|
|
204
|
+
columnTitle = _ref7.columnTitle,
|
|
205
|
+
columnType = _ref7.columnType,
|
|
206
|
+
renderItem = _ref7.renderItem,
|
|
207
|
+
wrappedColumnKeys = _ref7.wrappedColumnKeys;
|
|
195
208
|
var item = useDatasourceItem({
|
|
196
209
|
id: id
|
|
197
210
|
});
|
|
@@ -207,7 +220,7 @@ export var TableCellContent = function TableCellContent(_ref6) {
|
|
|
207
220
|
columnTitle: columnTitle,
|
|
208
221
|
renderItem: renderItem,
|
|
209
222
|
integrationKey: integrationKey,
|
|
210
|
-
issueLinkData:
|
|
223
|
+
issueLinkData: getIssueLinkData(rowData),
|
|
211
224
|
values: toDatasourceTypeWithValues({
|
|
212
225
|
rowData: rowData,
|
|
213
226
|
columnKey: columnKey,
|
|
@@ -9,7 +9,7 @@ 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 React, { useCallback, useMemo, useState } from 'react';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
|
-
import AKInlineEdit from '@atlaskit/inline-edit';
|
|
12
|
+
import AKInlineEdit from '@atlaskit/inline-edit/inline-edit';
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { useSmartLinkReload } from '@atlaskit/smart-card/hooks';
|
|
15
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
@@ -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 var JiraJQLEditor = function JiraJQLEditor(_ref) {
|
|
@@ -9,11 +9,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
/* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
10
10
|
import React, { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
11
11
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
12
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
12
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
13
13
|
import IntlMessagesProvider from '@atlaskit/intl-messages-provider/main';
|
|
14
|
-
import LinkComponent from '@atlaskit/link';
|
|
15
|
-
import { CloseButton
|
|
16
|
-
import
|
|
14
|
+
import LinkComponent from '@atlaskit/link/link';
|
|
15
|
+
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
16
|
+
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
17
|
+
import ModalFooter from '@atlaskit/modal-dialog/modal-footer';
|
|
18
|
+
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
19
|
+
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
20
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
21
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
17
22
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
18
23
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
19
24
|
import { EVENT_CHANNEL } from '../../../analytics/constants';
|
|
@@ -22,6 +27,7 @@ import { startUfoExperience } from '../../../analytics/ufoExperiences';
|
|
|
22
27
|
import { useColumnPickerRenderedFailedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience';
|
|
23
28
|
import { useDataRenderedUfoExperience } from '../../../analytics/ufoExperiences/hooks/useDataRenderedUfoExperience';
|
|
24
29
|
import { mapSearchMethod } from '../../../analytics/utils';
|
|
30
|
+
import { useDatasourceCrossProductAttribution } from '../../../analytics/xpc/useDatasourceCrossProductAttribution';
|
|
25
31
|
import { RichIconSearch } from '../../../common/ui/rich-icon/search';
|
|
26
32
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
27
33
|
import { useDatasourceExperienceId } from '../../../contexts/datasource-experience-id';
|
|
@@ -121,6 +127,8 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
121
127
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
122
128
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
123
129
|
var experienceId = useDatasourceExperienceId();
|
|
130
|
+
var _useDatasourceCrossPr = useDatasourceCrossProductAttribution(),
|
|
131
|
+
wrapCrossProductUrl = _useDatasourceCrossPr.wrapCrossProductUrl;
|
|
124
132
|
var _useIntl = useIntl(),
|
|
125
133
|
formatMessage = _useIntl.formatMessage;
|
|
126
134
|
var analyticsPayload = useMemo(function () {
|
|
@@ -133,7 +141,8 @@ var PlainJiraIssuesConfigModal = function PlainJiraIssuesConfigModal(props) {
|
|
|
133
141
|
// With columns available the table can keep its headers and show the empty state in place of
|
|
134
142
|
// the rows, instead of replacing the whole table with it.
|
|
135
143
|
var shouldRenderTableWithNoResults = resolvedWithNoResults && !!columns.length && fg('platform_lp_sllv_ux_improvements');
|
|
136
|
-
var
|
|
144
|
+
var jqlUrlUnwrapped = selectedJiraSite && jql && "".concat(selectedJiraSite.url, "/issues/?jql=").concat(encodeURI(jql));
|
|
145
|
+
var jqlUrl = jqlUrlUnwrapped && fg('electric_issue_like_table_xpc_url_wrapping') ? wrapCrossProductUrl(jqlUrlUnwrapped) : jqlUrlUnwrapped;
|
|
137
146
|
var shouldShowIssueCount = !!totalCount && totalCount !== 1 && currentViewMode === 'table';
|
|
138
147
|
var isDataReady = (visibleColumnKeys || []).length > 0;
|
|
139
148
|
var hasNoJiraSites = availableSites && availableSites.length === 0;
|
|
@@ -6,7 +6,7 @@ import * as React from 'react';
|
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useEffect, useState } from 'react';
|
|
8
8
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
9
|
-
import
|
|
9
|
+
import IconButton from '@atlaskit/button/icon/button';
|
|
10
10
|
import RefreshIcon from '@atlaskit/icon/core/refresh';
|
|
11
11
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
|
package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DatasourceTableStatusType } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
export declare const useColumnPickerRenderedFailedUfoExperience: (status: DatasourceTableStatusType, experienceId: string) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DatasourceCrossProductAttribution {
|
|
2
|
+
wrapCrossProductUrl: (url: string) => string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Returns cross-product (XPC) MAU attribution helpers for the linking-platform datasource modals
|
|
6
|
+
* and the shared issue-like table renderer.
|
|
7
|
+
*
|
|
8
|
+
* Prefer the gated export {@link useDatasourceCrossProductAttribution} which swaps in a no-op
|
|
9
|
+
* fallback when the gate is off (matching smart-card's `functionWithFG` pattern).
|
|
10
|
+
*/
|
|
11
|
+
declare const useDatasourceCrossProductAttributionUngated: () => DatasourceCrossProductAttribution;
|
|
12
|
+
export declare const useDatasourceCrossProductAttribution: typeof useDatasourceCrossProductAttributionUngated;
|
|
13
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
3
3
|
import { type IssueLikeDataTableViewProps } from '../ui/issue-like-table/types';
|
|
4
4
|
export type JiraSearchMethod = 'basic' | 'jql';
|
|
5
5
|
export interface Site {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DatasourceDataResponseItem, DatasourceMeta, DatasourceParameters, DatasourceResponseSchemaProperty, DatasourceTableStatusType } from '@atlaskit/linking-types/datasource';
|
|
2
2
|
export declare const INCREASED_DATASOURCE_DATA_PAGE_SIZE = 100;
|
|
3
3
|
export interface onNextPageProps {
|
|
4
4
|
isSchemaFromData?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AtomicActionExecuteRequest } from '@atlaskit/linking-types';
|
|
1
|
+
import { type AtomicActionExecuteRequest } from '@atlaskit/linking-types/datasource-actions';
|
|
2
2
|
import type { ExecuteFetch } from '../state/actions';
|
|
3
3
|
export type LoadOptionsProps<T> = {
|
|
4
4
|
emptyOption?: T;
|
|
@@ -6,7 +6,7 @@ export type LoadOptionsProps<T> = {
|
|
|
6
6
|
fetchInputs?: AtomicActionExecuteRequest['parameters']['inputs'];
|
|
7
7
|
};
|
|
8
8
|
export declare const useLoadOptions: <T>({ fetchInputs, executeFetch, emptyOption, }: LoadOptionsProps<T>) => {
|
|
9
|
-
options: T[];
|
|
10
|
-
isLoading: boolean;
|
|
11
9
|
hasFailed: boolean;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
options: T[];
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GetAutocompleteInitialData } from '@atlaskit/jql-editor-autocomplete-rest/types';
|
|
2
2
|
export type AutocompleteInitialDataResponse = {
|
|
3
3
|
jqlFields: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFields'];
|
|
4
4
|
jqlFunctions: Awaited<ReturnType<GetAutocompleteInitialData>>['jqlFunctions'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GetAutocompleteSuggestions } from '@atlaskit/jql-editor-autocomplete-rest/types';
|
|
2
2
|
export type AutocompleteSuggestionsResponse = {
|
|
3
3
|
results: Awaited<ReturnType<GetAutocompleteSuggestions>>['results'];
|
|
4
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Action, type BoundActions, type HookFunction, type Store } from 'react-sweet-state';
|
|
2
2
|
import { useDatasourceClientExtension } from '@atlaskit/link-client-extension';
|
|
3
|
-
import type { ActionsDiscoveryRequest, AtomicActionExecuteRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types';
|
|
3
|
+
import type { ActionsDiscoveryRequest, AtomicActionExecuteRequest, AtomicActionExecuteResponse, AtomicActionInterface } from '@atlaskit/linking-types/datasource-actions';
|
|
4
4
|
import { type DatasourceOperationFailedAttributesType, type EventKey } from '../../../src/analytics/generated/analytics.types';
|
|
5
5
|
import type createEventPayload from '../../../src/analytics/generated/create-event-payload';
|
|
6
6
|
type IntegrationKey = string;
|
|
@@ -82,13 +82,13 @@ export declare const useDiscoverActions: ({ captureError, fireEvent, }: UseDisco
|
|
|
82
82
|
* Retrieves the action schema for a given ARI + fieldKey + integrationKey
|
|
83
83
|
*/
|
|
84
84
|
export declare const useAtomicUpdateActionSchema: HookFunction<{
|
|
85
|
-
schema?: undefined;
|
|
86
85
|
fetchSchema?: undefined;
|
|
86
|
+
schema?: undefined;
|
|
87
87
|
} | {
|
|
88
|
+
fetchSchema: Pick<AtomicActionInterface, 'type' | 'inputs' | 'actionKey'> | undefined;
|
|
88
89
|
schema: Pick<AtomicActionInterface, 'type' | 'description' | 'actionKey'> & {
|
|
89
90
|
fetchAction?: Pick<AtomicActionInterface, 'actionKey' | 'type' | 'inputs'>;
|
|
90
91
|
};
|
|
91
|
-
fetchSchema: Pick<AtomicActionInterface, 'type' | 'inputs' | 'actionKey'> | undefined;
|
|
92
92
|
}, BoundActions<ActionsStoreState, {
|
|
93
93
|
discoverActions: (captureError: AnalyticsCaptureError, fireEvent: AnalyticsFireEvent, api: Client, request: ActionsDiscoveryRequest) => Action<ActionsStoreState>;
|
|
94
94
|
}>, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Action, type BoundActions, type HookActionsFunction, type HookStateFunction, type Store as StoreType } from 'react-sweet-state';
|
|
3
|
-
import type { DatasourceDataResponseItem } from '@atlaskit/linking-types';
|
|
3
|
+
import type { DatasourceDataResponseItem } from '@atlaskit/linking-types/datasource';
|
|
4
4
|
type UniqueIdentifier = string;
|
|
5
5
|
export interface DatasourceItem {
|
|
6
6
|
ari: string | undefined;
|
|
@@ -16,15 +16,15 @@ export declare const actions: {
|
|
|
16
16
|
onAddItems: (items: DatasourceDataResponseItem[], integrationKey: string | undefined, entityType: string | undefined) => Action<State, void, string[]>;
|
|
17
17
|
};
|
|
18
18
|
export declare const Store: StoreType<State, {
|
|
19
|
-
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
20
19
|
onAddItems: (items: DatasourceDataResponseItem[], integrationKey: string | undefined, entityType: string | undefined) => Action<State, void, string[]>;
|
|
20
|
+
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const useDatasourceItem: HookStateFunction<DatasourceItem | undefined, {
|
|
23
23
|
id: string;
|
|
24
24
|
}>;
|
|
25
25
|
export declare const useDatasourceActions: HookActionsFunction<BoundActions<State, {
|
|
26
|
-
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
27
26
|
onAddItems: (items: DatasourceDataResponseItem[], integrationKey: string | undefined, entityType: string | undefined) => Action<State, void, string[]>;
|
|
27
|
+
onUpdateItem: (id: string, data: DatasourceDataResponseItem) => Action<State, void, void>;
|
|
28
28
|
}>>;
|
|
29
29
|
export declare const StoreContainer: ({ children }: {
|
|
30
30
|
children: JSX.Element;
|