@atlaskit/link-datasource 2.5.11 → 2.5.13
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 +13 -0
- package/dist/cjs/ui/assets-modal/modal/index.js +4 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +4 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/index.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/loading-state.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +4 -1
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
- package/dist/cjs/ui/common/error-state/access-required.js +4 -1
- package/dist/cjs/ui/common/error-state/loading-error.js +4 -1
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +4 -1
- package/dist/cjs/ui/common/error-state/no-instances.js +4 -1
- package/dist/cjs/ui/common/error-state/no-results.js +4 -1
- package/dist/cjs/ui/common/error-state/provider-auth-required-svg.js +4 -1
- package/dist/cjs/ui/common/error-state/provider-auth-required.js +4 -1
- package/dist/cjs/ui/common/initial-state-view/index.js +4 -1
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +4 -1
- package/dist/cjs/ui/common/modal/cancel-button/index.js +4 -1
- package/dist/cjs/ui/common/modal/content-container/index.js +4 -1
- package/dist/cjs/ui/common/modal/count-view-smart-link/index.js +4 -1
- package/dist/cjs/ui/common/modal/datasource-context/index.js +7 -3
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +4 -1
- package/dist/cjs/ui/common/modal/insert-button/index.js +98 -0
- package/dist/cjs/ui/common/modal/mode-switcher/index.js +4 -1
- package/dist/cjs/ui/common/modal/mode-switcher/useViewModeContext.js +4 -1
- package/dist/cjs/ui/common/modal/site-selector/index.js +4 -1
- package/dist/cjs/ui/confluence-search-modal/modal/ModalOld.js +4 -1
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +14 -67
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +4 -1
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +4 -1
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +4 -1
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +4 -1
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +4 -1
- package/dist/cjs/ui/issue-like-table/empty-state/index.js +4 -1
- package/dist/cjs/ui/issue-like-table/index.js +4 -1
- package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +4 -1
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +4 -1
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +4 -1
- package/dist/cjs/ui/jira-issues-modal/modal/ModalOld.js +4 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +4 -1
- package/dist/cjs/ui/table-footer/index.js +4 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +4 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +4 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +4 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +4 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
- package/dist/es2019/ui/assets-modal/search-container/index.js +4 -1
- package/dist/es2019/ui/assets-modal/search-container/loading-state.js +4 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +4 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
- package/dist/es2019/ui/common/error-state/access-required.js +4 -1
- package/dist/es2019/ui/common/error-state/loading-error.js +4 -1
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +4 -1
- package/dist/es2019/ui/common/error-state/no-instances.js +4 -1
- package/dist/es2019/ui/common/error-state/no-results.js +4 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required-svg.js +4 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +4 -1
- package/dist/es2019/ui/common/initial-state-view/index.js +4 -1
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +4 -1
- package/dist/es2019/ui/common/modal/cancel-button/index.js +4 -1
- package/dist/es2019/ui/common/modal/content-container/index.js +4 -1
- package/dist/es2019/ui/common/modal/count-view-smart-link/index.js +4 -1
- package/dist/es2019/ui/common/modal/datasource-context/index.js +7 -3
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +4 -1
- package/dist/es2019/ui/common/modal/insert-button/index.js +99 -0
- package/dist/es2019/ui/common/modal/mode-switcher/index.js +4 -1
- package/dist/es2019/ui/common/modal/mode-switcher/useViewModeContext.js +4 -1
- package/dist/es2019/ui/common/modal/site-selector/index.js +4 -1
- package/dist/es2019/ui/confluence-search-modal/modal/ModalOld.js +4 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +15 -72
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +4 -1
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +4 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +4 -1
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +4 -1
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +4 -1
- package/dist/es2019/ui/issue-like-table/empty-state/index.js +4 -1
- package/dist/es2019/ui/issue-like-table/index.js +4 -1
- package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +4 -1
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +4 -1
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +4 -1
- package/dist/es2019/ui/jira-issues-modal/modal/ModalOld.js +4 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +4 -1
- package/dist/es2019/ui/table-footer/index.js +4 -1
- package/dist/esm/ui/assets-modal/modal/index.js +4 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +4 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +4 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +4 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
- package/dist/esm/ui/assets-modal/search-container/index.js +4 -1
- package/dist/esm/ui/assets-modal/search-container/loading-state.js +4 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +4 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
- package/dist/esm/ui/common/error-state/access-required.js +4 -1
- package/dist/esm/ui/common/error-state/loading-error.js +4 -1
- package/dist/esm/ui/common/error-state/modal-loading-error.js +4 -1
- package/dist/esm/ui/common/error-state/no-instances.js +4 -1
- package/dist/esm/ui/common/error-state/no-results.js +4 -1
- package/dist/esm/ui/common/error-state/provider-auth-required-svg.js +4 -1
- package/dist/esm/ui/common/error-state/provider-auth-required.js +4 -1
- package/dist/esm/ui/common/initial-state-view/index.js +4 -1
- package/dist/esm/ui/common/modal/basic-search-input/index.js +4 -1
- package/dist/esm/ui/common/modal/cancel-button/index.js +4 -1
- package/dist/esm/ui/common/modal/content-container/index.js +4 -1
- package/dist/esm/ui/common/modal/count-view-smart-link/index.js +4 -1
- package/dist/esm/ui/common/modal/datasource-context/index.js +7 -3
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +4 -1
- package/dist/esm/ui/common/modal/insert-button/index.js +95 -0
- package/dist/esm/ui/common/modal/mode-switcher/index.js +4 -1
- package/dist/esm/ui/common/modal/mode-switcher/useViewModeContext.js +4 -1
- package/dist/esm/ui/common/modal/site-selector/index.js +4 -1
- package/dist/esm/ui/confluence-search-modal/modal/ModalOld.js +4 -1
- package/dist/esm/ui/confluence-search-modal/modal/index.js +16 -69
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +4 -1
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +4 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.js +4 -1
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +4 -1
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +4 -1
- package/dist/esm/ui/issue-like-table/empty-state/index.js +4 -1
- package/dist/esm/ui/issue-like-table/index.js +4 -1
- package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +4 -1
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +4 -1
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +4 -1
- package/dist/esm/ui/jira-issues-modal/modal/ModalOld.js +4 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +4 -1
- package/dist/esm/ui/table-footer/index.js +4 -1
- package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +4 -1
- package/dist/types/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +4 -1
- package/dist/types/ui/assets-modal/search-container/index.d.ts +4 -1
- package/dist/types/ui/assets-modal/search-container/loading-state.d.ts +4 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +4 -1
- package/dist/types/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +4 -1
- package/dist/types/ui/common/error-state/no-instances.d.ts +4 -1
- package/dist/types/ui/common/error-state/provider-auth-required-svg.d.ts +4 -1
- package/dist/types/ui/common/initial-state-view/index.d.ts +4 -1
- package/dist/types/ui/common/modal/basic-search-input/index.d.ts +4 -1
- package/dist/types/ui/common/modal/content-container/index.d.ts +4 -1
- package/dist/types/ui/common/modal/count-view-smart-link/index.d.ts +4 -1
- package/dist/types/ui/common/modal/datasource-context/index.d.ts +7 -1
- package/dist/types/ui/common/modal/display-view-dropdown/display-view-drop-down.d.ts +4 -1
- package/dist/types/ui/common/modal/insert-button/index.d.ts +12 -0
- package/dist/types/ui/common/modal/mode-switcher/useViewModeContext.d.ts +4 -1
- package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +4 -1
- package/dist/types/ui/issue-like-table/drag-column-preview.d.ts +4 -1
- package/dist/types/ui/issue-like-table/draggable-table-heading.d.ts +4 -1
- package/dist/types/ui/issue-like-table/empty-state/index.d.ts +4 -1
- package/dist/types/ui/issue-like-table/index.d.ts +4 -1
- package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +4 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +4 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/error-state/provider-auth-required-svg.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/modal/content-container/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/modal/count-view-smart-link/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/modal/datasource-context/index.d.ts +7 -1
- package/dist/types-ts4.5/ui/common/modal/display-view-dropdown/display-view-drop-down.d.ts +4 -1
- package/dist/types-ts4.5/ui/common/modal/insert-button/index.d.ts +12 -0
- package/dist/types-ts4.5/ui/common/modal/mode-switcher/useViewModeContext.d.ts +4 -1
- package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +4 -1
- package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +4 -1
- package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +4 -1
- package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +4 -1
- package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +4 -1
- package/examples-helpers/buildIssueLikeTable.tsx +4 -1
- package/examples-helpers/hoverableContainer.tsx +4 -1
- package/package.json +7 -7
|
@@ -12,7 +12,8 @@ export var DatasourceContextProvider = function DatasourceContextProvider(_ref)
|
|
|
12
12
|
initialParameters = _ref.initialParameters,
|
|
13
13
|
initialVisibleColumnKeys = _ref.initialVisibleColumnKeys,
|
|
14
14
|
initialColumnCustomSizes = _ref.initialColumnCustomSizes,
|
|
15
|
-
initialWrappedColumnKeys = _ref.initialWrappedColumnKeys
|
|
15
|
+
initialWrappedColumnKeys = _ref.initialWrappedColumnKeys,
|
|
16
|
+
onInsert = _ref.onInsert;
|
|
16
17
|
var _useState = useState(initialParameters),
|
|
17
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18
19
|
parameters = _useState2[0],
|
|
@@ -42,6 +43,8 @@ export var DatasourceContextProvider = function DatasourceContextProvider(_ref)
|
|
|
42
43
|
visibleColumnCount = _useColumnVisibility.visibleColumnCount;
|
|
43
44
|
var contextValue = useMemo(function () {
|
|
44
45
|
return {
|
|
46
|
+
datasourceId: datasourceId,
|
|
47
|
+
isValidParameters: isValidParameters,
|
|
45
48
|
tableState: tableState,
|
|
46
49
|
visibleColumnCount: visibleColumnCount,
|
|
47
50
|
visibleColumnKeys: visibleColumnKeys,
|
|
@@ -51,9 +54,10 @@ export var DatasourceContextProvider = function DatasourceContextProvider(_ref)
|
|
|
51
54
|
wrappedColumnKeys: wrappedColumnKeys,
|
|
52
55
|
onWrappedColumnChange: onWrappedColumnChange,
|
|
53
56
|
parameters: parameters,
|
|
54
|
-
setParameters: setParameters
|
|
57
|
+
setParameters: setParameters,
|
|
58
|
+
onInsert: onInsert
|
|
55
59
|
};
|
|
56
|
-
}, [tableState, visibleColumnCount, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, parameters]);
|
|
60
|
+
}, [datasourceId, isValidParameters, tableState, visibleColumnCount, visibleColumnKeys, onVisibleColumnKeysChange, columnCustomSizes, onColumnResize, wrappedColumnKeys, onWrappedColumnChange, parameters, onInsert]);
|
|
57
61
|
return /*#__PURE__*/React.createElement(DatasourceContext.Provider, {
|
|
58
62
|
value: contextValue
|
|
59
63
|
}, children);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
7
|
import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { useCallback } from 'react';
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
13
|
+
import Button from '@atlaskit/button/standard-button';
|
|
14
|
+
import { EVENT_CHANNEL } from '../../../../analytics';
|
|
15
|
+
import { DatasourceDisplay, DatasourceSearchMethod } from '../../../../analytics/types';
|
|
16
|
+
import { buildDatasourceAdf } from '../../../../common/utils/adf';
|
|
17
|
+
import { useUserInteractions } from '../../../../contexts/user-interactions';
|
|
18
|
+
import { useDatasourceContext } from '../datasource-context';
|
|
19
|
+
import { useViewModeContext } from '../mode-switcher/useViewModeContext';
|
|
20
|
+
export var InsertButton = function InsertButton(_ref) {
|
|
21
|
+
var testId = _ref.testId,
|
|
22
|
+
url = _ref.url,
|
|
23
|
+
getAnalyticsPayload = _ref.getAnalyticsPayload,
|
|
24
|
+
children = _ref.children;
|
|
25
|
+
var _useDatasourceContext = useDatasourceContext(),
|
|
26
|
+
datasourceId = _useDatasourceContext.datasourceId,
|
|
27
|
+
parameters = _useDatasourceContext.parameters,
|
|
28
|
+
_useDatasourceContext2 = _useDatasourceContext.tableState,
|
|
29
|
+
status = _useDatasourceContext2.status,
|
|
30
|
+
totalCount = _useDatasourceContext2.totalCount,
|
|
31
|
+
isValidParameters = _useDatasourceContext.isValidParameters,
|
|
32
|
+
visibleColumnCount = _useDatasourceContext.visibleColumnCount,
|
|
33
|
+
visibleColumnKeys = _useDatasourceContext.visibleColumnKeys,
|
|
34
|
+
columnCustomSizes = _useDatasourceContext.columnCustomSizes,
|
|
35
|
+
wrappedColumnKeys = _useDatasourceContext.wrappedColumnKeys,
|
|
36
|
+
onInsert = _useDatasourceContext.onInsert;
|
|
37
|
+
var userInteractions = useUserInteractions();
|
|
38
|
+
var _useViewModeContext = useViewModeContext(),
|
|
39
|
+
currentViewMode = _useViewModeContext.currentViewMode;
|
|
40
|
+
var isInsertDisabled = !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
|
|
41
|
+
var onInsertPressed = useCallback(function (e, analyticsEvent) {
|
|
42
|
+
var _insertButtonClickedE;
|
|
43
|
+
if (!parameters || !isValidParameters(parameters) || !url) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
var insertButtonClickedEvent = analyticsEvent.update({
|
|
47
|
+
actionSubjectId: 'insert',
|
|
48
|
+
attributes: _objectSpread(_objectSpread({}, getAnalyticsPayload()), {}, {
|
|
49
|
+
totalItemCount: totalCount || 0,
|
|
50
|
+
displayedColumnCount: visibleColumnCount.current,
|
|
51
|
+
display: currentViewMode === 'inline' ? DatasourceDisplay.DATASOURCE_INLINE : DatasourceDisplay.DATASOURCE_TABLE,
|
|
52
|
+
searchMethod: DatasourceSearchMethod.DATASOURCE_SEARCH_QUERY,
|
|
53
|
+
actions: userInteractions.get()
|
|
54
|
+
}),
|
|
55
|
+
eventType: 'ui'
|
|
56
|
+
});
|
|
57
|
+
var consumerEvent = (_insertButtonClickedE = insertButtonClickedEvent.clone()) !== null && _insertButtonClickedE !== void 0 ? _insertButtonClickedE : undefined;
|
|
58
|
+
insertButtonClickedEvent.fire(EVENT_CHANNEL);
|
|
59
|
+
if (currentViewMode === 'inline') {
|
|
60
|
+
onInsert({
|
|
61
|
+
type: 'inlineCard',
|
|
62
|
+
attrs: {
|
|
63
|
+
url: url
|
|
64
|
+
}
|
|
65
|
+
}, consumerEvent);
|
|
66
|
+
} else {
|
|
67
|
+
onInsert(buildDatasourceAdf({
|
|
68
|
+
id: datasourceId,
|
|
69
|
+
parameters: parameters,
|
|
70
|
+
views: [{
|
|
71
|
+
type: 'table',
|
|
72
|
+
properties: {
|
|
73
|
+
columns: (visibleColumnKeys || []).map(function (key) {
|
|
74
|
+
var width = columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key];
|
|
75
|
+
var isWrapped = wrappedColumnKeys === null || wrappedColumnKeys === void 0 ? void 0 : wrappedColumnKeys.includes(key);
|
|
76
|
+
return _objectSpread(_objectSpread({
|
|
77
|
+
key: key
|
|
78
|
+
}, width ? {
|
|
79
|
+
width: width
|
|
80
|
+
} : {}), isWrapped ? {
|
|
81
|
+
isWrapped: isWrapped
|
|
82
|
+
} : {});
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
}]
|
|
86
|
+
}, url), consumerEvent);
|
|
87
|
+
}
|
|
88
|
+
}, [isValidParameters, parameters, url, getAnalyticsPayload, totalCount, visibleColumnCount, currentViewMode, userInteractions, onInsert, datasourceId, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys]);
|
|
89
|
+
return jsx(Button, {
|
|
90
|
+
appearance: "primary",
|
|
91
|
+
onClick: onInsertPressed,
|
|
92
|
+
isDisabled: isInsertDisabled,
|
|
93
|
+
testId: testId
|
|
94
|
+
}, children);
|
|
95
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React, { createContext, useContext, useMemo, useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -3,7 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["width"];
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
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; }
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
9
|
+
*/
|
|
7
10
|
import { useMemo } from 'react';
|
|
8
11
|
|
|
9
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -2,7 +2,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
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; }
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
10
|
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -3,22 +3,23 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
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; }
|
|
5
5
|
/* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
9
|
+
*/
|
|
7
10
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
8
11
|
|
|
9
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
13
|
import { jsx } from '@emotion/react';
|
|
11
14
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
15
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
13
|
-
import Button from '@atlaskit/button';
|
|
14
16
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
15
17
|
import { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
16
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
19
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
18
|
-
import {
|
|
20
|
+
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
19
21
|
import { componentMetadata } from '../../../analytics/constants';
|
|
20
|
-
import { DatasourceAction,
|
|
21
|
-
import { buildDatasourceAdf } from '../../../common/utils/adf';
|
|
22
|
+
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
22
23
|
import { fetchMessagesForLocale } from '../../../common/utils/locale/fetch-messages-for-locale';
|
|
23
24
|
import { DatasourceExperienceIdProvider } from '../../../contexts/datasource-experience-id';
|
|
24
25
|
import { UserInteractionsProvider, useUserInteractions } from '../../../contexts/user-interactions';
|
|
@@ -35,6 +36,7 @@ import { SmartCardPlaceholder, SmartLink } from '../../common/modal/count-view-s
|
|
|
35
36
|
import { DatasourceContextProvider, useDatasourceContext } from '../../common/modal/datasource-context';
|
|
36
37
|
import { DatasourceModal } from '../../common/modal/datasource-modal';
|
|
37
38
|
import DatasourcesTableInModalPreview from '../../common/modal/datasources-table-in-modal-preview';
|
|
39
|
+
import { InsertButton } from '../../common/modal/insert-button';
|
|
38
40
|
import { DatasourceViewModeDropDown } from '../../common/modal/mode-switcher';
|
|
39
41
|
import { DatasourceViewModeProvider, useViewModeContext } from '../../common/modal/mode-switcher/useViewModeContext';
|
|
40
42
|
import TableSearchCount from '../../common/modal/search-count';
|
|
@@ -71,9 +73,7 @@ var useUpdateParametersOnFormUpdate = function useUpdateParametersOnFormUpdate(c
|
|
|
71
73
|
}, [cloudId, searchString, lastModified, contributorAccountIds, setParameters, overrideParameters]);
|
|
72
74
|
};
|
|
73
75
|
export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConfigModal(props) {
|
|
74
|
-
var
|
|
75
|
-
onCancel = props.onCancel,
|
|
76
|
-
onInsert = props.onInsert,
|
|
76
|
+
var onCancel = props.onCancel,
|
|
77
77
|
initialParameters = props.parameters,
|
|
78
78
|
urlBeingEdited = props.url,
|
|
79
79
|
_props$disableDisplay = props.disableDisplayDropdown,
|
|
@@ -260,58 +260,6 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
260
260
|
}
|
|
261
261
|
}, [confluenceSearchUrl, selectedConfluenceSiteUrl, status, urlBeingEdited]);
|
|
262
262
|
var shouldShowResultsCount = !!totalCount && currentViewMode === 'table';
|
|
263
|
-
var _useDatasourceContext5 = useDatasourceContext(),
|
|
264
|
-
columnCustomSizes = _useDatasourceContext5.columnCustomSizes,
|
|
265
|
-
wrappedColumnKeys = _useDatasourceContext5.wrappedColumnKeys;
|
|
266
|
-
var onInsertPressed = useCallback(function (e, analyticsEvent) {
|
|
267
|
-
var _insertButtonClickedE;
|
|
268
|
-
if (!parameters || !isValidParameters(parameters) || !confluenceSearchUrl) {
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
var insertButtonClickedEvent = analyticsEvent.update({
|
|
272
|
-
actionSubjectId: 'insert',
|
|
273
|
-
attributes: _objectSpread(_objectSpread({}, analyticsPayload), {}, {
|
|
274
|
-
totalItemCount: totalCount || 0,
|
|
275
|
-
displayedColumnCount: visibleColumnCount.current,
|
|
276
|
-
display: currentViewMode === 'inline' ? DatasourceDisplay.DATASOURCE_INLINE : DatasourceDisplay.DATASOURCE_TABLE,
|
|
277
|
-
searchCount: searchCount.current,
|
|
278
|
-
searchMethod: DatasourceSearchMethod.DATASOURCE_SEARCH_QUERY,
|
|
279
|
-
actions: userInteractions.get()
|
|
280
|
-
}),
|
|
281
|
-
eventType: 'ui'
|
|
282
|
-
});
|
|
283
|
-
var consumerEvent = (_insertButtonClickedE = insertButtonClickedEvent.clone()) !== null && _insertButtonClickedE !== void 0 ? _insertButtonClickedE : undefined;
|
|
284
|
-
insertButtonClickedEvent.fire(EVENT_CHANNEL);
|
|
285
|
-
if (currentViewMode === 'inline') {
|
|
286
|
-
onInsert({
|
|
287
|
-
type: 'inlineCard',
|
|
288
|
-
attrs: {
|
|
289
|
-
url: confluenceSearchUrl
|
|
290
|
-
}
|
|
291
|
-
}, consumerEvent);
|
|
292
|
-
} else {
|
|
293
|
-
onInsert(buildDatasourceAdf({
|
|
294
|
-
id: datasourceId,
|
|
295
|
-
parameters: parameters,
|
|
296
|
-
views: [{
|
|
297
|
-
type: 'table',
|
|
298
|
-
properties: {
|
|
299
|
-
columns: (visibleColumnKeys || []).map(function (key) {
|
|
300
|
-
var width = columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key];
|
|
301
|
-
var isWrapped = wrappedColumnKeys === null || wrappedColumnKeys === void 0 ? void 0 : wrappedColumnKeys.includes(key);
|
|
302
|
-
return _objectSpread(_objectSpread({
|
|
303
|
-
key: key
|
|
304
|
-
}, width ? {
|
|
305
|
-
width: width
|
|
306
|
-
} : {}), isWrapped ? {
|
|
307
|
-
isWrapped: isWrapped
|
|
308
|
-
} : {});
|
|
309
|
-
})
|
|
310
|
-
}
|
|
311
|
-
}]
|
|
312
|
-
}, confluenceSearchUrl), consumerEvent);
|
|
313
|
-
}
|
|
314
|
-
}, [parameters, confluenceSearchUrl, analyticsPayload, totalCount, visibleColumnCount, currentViewMode, userInteractions, onInsert, datasourceId, visibleColumnKeys, columnCustomSizes, wrappedColumnKeys]);
|
|
315
263
|
var onSearch = useCallback(function (newSearchString, filters) {
|
|
316
264
|
searchCount.current++;
|
|
317
265
|
userInteractions.add(DatasourceAction.QUERY_UPDATED);
|
|
@@ -342,8 +290,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
342
290
|
shouldForceRequest: true
|
|
343
291
|
});
|
|
344
292
|
}, [reset, userInteractions]);
|
|
345
|
-
var
|
|
346
|
-
var getCancelButtonAnalyticsPayload = useCallback(function () {
|
|
293
|
+
var getButtonAnalyticsPayload = useCallback(function () {
|
|
347
294
|
return {
|
|
348
295
|
extensionKey: extensionKey,
|
|
349
296
|
destinationObjectTypes: destinationObjectTypes,
|
|
@@ -382,13 +329,12 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
382
329
|
testId: "confluence-search-datasource-modal-total-results-count"
|
|
383
330
|
}), jsx(CancelButton, {
|
|
384
331
|
onCancel: onCancel,
|
|
385
|
-
getAnalyticsPayload:
|
|
332
|
+
getAnalyticsPayload: getButtonAnalyticsPayload,
|
|
386
333
|
testId: "confluence-search-modal--cancel-button"
|
|
387
|
-
}), !hasNoConfluenceSites && jsx(
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
testId: "confluence-search-datasource-modal--insert-button"
|
|
334
|
+
}), !hasNoConfluenceSites && jsx(InsertButton, {
|
|
335
|
+
testId: "confluence-search-datasource-modal--insert-button",
|
|
336
|
+
url: confluenceSearchUrl,
|
|
337
|
+
getAnalyticsPayload: getButtonAnalyticsPayload
|
|
392
338
|
}, jsx(FormattedMessage, confluenceSearchModalMessages.insertResultsButtonText)))));
|
|
393
339
|
};
|
|
394
340
|
var analyticsContextAttributes = {
|
|
@@ -408,7 +354,8 @@ export var ConfluenceSearchConfigModal = withAnalyticsContext(contextData)(funct
|
|
|
408
354
|
initialColumnCustomSizes: props.columnCustomSizes,
|
|
409
355
|
initialWrappedColumnKeys: props.wrappedColumnKeys,
|
|
410
356
|
initialParameters: props.parameters,
|
|
411
|
-
isValidParameters: isValidParameters
|
|
357
|
+
isValidParameters: isValidParameters,
|
|
358
|
+
onInsert: props.onInsert
|
|
412
359
|
}, jsx(DatasourceViewModeProvider, {
|
|
413
360
|
viewMode: (_props$viewMode = props.viewMode) !== null && _props$viewMode !== void 0 ? _props$viewMode : DEFAULT_VIEW_MODE
|
|
414
361
|
}, jsx(PlainConfluenceSearchConfigModal, props))) :
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children"];
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
* @jsx jsx
|
|
7
|
+
*/
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
9
|
import { css, jsx } from '@emotion/react';
|
|
7
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -3,7 +3,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
5
|
var _excluded = ["isOpen"];
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
9
|
+
*/
|
|
7
10
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
8
11
|
|
|
9
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -5,7 +5,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
var _excluded = ["triggerRef"];
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
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; }
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
9
12
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
10
13
|
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -7,7 +7,10 @@ var _styled$td;
|
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
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
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
11
14
|
import { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
12
15
|
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -2,7 +2,10 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
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; }
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
import { useMemo } from 'react';
|
|
7
10
|
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React, { useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -4,7 +4,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
var _excluded = ["basicInputTextValue"];
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @jsxRuntime classic
|
|
9
|
+
* @jsx jsx
|
|
10
|
+
*/
|
|
8
11
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
12
|
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -4,7 +4,10 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
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; }
|
|
6
6
|
/* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* @jsxRuntime classic
|
|
9
|
+
* @jsx jsx
|
|
10
|
+
*/
|
|
8
11
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
9
12
|
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -5,7 +5,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
5
5
|
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; }
|
|
6
6
|
/* eslint-disable @atlaskit/platform/no-preconditioning */
|
|
7
7
|
/* eslint-disable @atlaskit/platform/ensure-feature-flag-prefix */
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
9
12
|
import { Fragment, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
10
13
|
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import { Fragment, useEffect, useState } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|