@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.
Files changed (174) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/ui/assets-modal/modal/index.js +4 -1
  3. package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +4 -1
  4. package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +4 -1
  5. package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +4 -1
  6. package/dist/cjs/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
  7. package/dist/cjs/ui/assets-modal/search-container/index.js +4 -1
  8. package/dist/cjs/ui/assets-modal/search-container/loading-state.js +4 -1
  9. package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +4 -1
  10. package/dist/cjs/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
  11. package/dist/cjs/ui/common/error-state/access-required.js +4 -1
  12. package/dist/cjs/ui/common/error-state/loading-error.js +4 -1
  13. package/dist/cjs/ui/common/error-state/modal-loading-error.js +4 -1
  14. package/dist/cjs/ui/common/error-state/no-instances.js +4 -1
  15. package/dist/cjs/ui/common/error-state/no-results.js +4 -1
  16. package/dist/cjs/ui/common/error-state/provider-auth-required-svg.js +4 -1
  17. package/dist/cjs/ui/common/error-state/provider-auth-required.js +4 -1
  18. package/dist/cjs/ui/common/initial-state-view/index.js +4 -1
  19. package/dist/cjs/ui/common/modal/basic-search-input/index.js +4 -1
  20. package/dist/cjs/ui/common/modal/cancel-button/index.js +4 -1
  21. package/dist/cjs/ui/common/modal/content-container/index.js +4 -1
  22. package/dist/cjs/ui/common/modal/count-view-smart-link/index.js +4 -1
  23. package/dist/cjs/ui/common/modal/datasource-context/index.js +7 -3
  24. package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +4 -1
  25. package/dist/cjs/ui/common/modal/insert-button/index.js +98 -0
  26. package/dist/cjs/ui/common/modal/mode-switcher/index.js +4 -1
  27. package/dist/cjs/ui/common/modal/mode-switcher/useViewModeContext.js +4 -1
  28. package/dist/cjs/ui/common/modal/site-selector/index.js +4 -1
  29. package/dist/cjs/ui/confluence-search-modal/modal/ModalOld.js +4 -1
  30. package/dist/cjs/ui/confluence-search-modal/modal/index.js +14 -67
  31. package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +4 -1
  32. package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +4 -1
  33. package/dist/cjs/ui/issue-like-table/column-picker/index.js +4 -1
  34. package/dist/cjs/ui/issue-like-table/drag-column-preview.js +4 -1
  35. package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +4 -1
  36. package/dist/cjs/ui/issue-like-table/empty-state/index.js +4 -1
  37. package/dist/cjs/ui/issue-like-table/index.js +4 -1
  38. package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +4 -1
  39. package/dist/cjs/ui/issue-like-table/render-type/user/index.js +4 -1
  40. package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +4 -1
  41. package/dist/cjs/ui/jira-issues-modal/modal/ModalOld.js +4 -1
  42. package/dist/cjs/ui/jira-issues-modal/modal/index.js +4 -1
  43. package/dist/cjs/ui/table-footer/index.js +4 -1
  44. package/dist/es2019/ui/assets-modal/modal/index.js +4 -1
  45. package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +4 -1
  46. package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +4 -1
  47. package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +4 -1
  48. package/dist/es2019/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
  49. package/dist/es2019/ui/assets-modal/search-container/index.js +4 -1
  50. package/dist/es2019/ui/assets-modal/search-container/loading-state.js +4 -1
  51. package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +4 -1
  52. package/dist/es2019/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
  53. package/dist/es2019/ui/common/error-state/access-required.js +4 -1
  54. package/dist/es2019/ui/common/error-state/loading-error.js +4 -1
  55. package/dist/es2019/ui/common/error-state/modal-loading-error.js +4 -1
  56. package/dist/es2019/ui/common/error-state/no-instances.js +4 -1
  57. package/dist/es2019/ui/common/error-state/no-results.js +4 -1
  58. package/dist/es2019/ui/common/error-state/provider-auth-required-svg.js +4 -1
  59. package/dist/es2019/ui/common/error-state/provider-auth-required.js +4 -1
  60. package/dist/es2019/ui/common/initial-state-view/index.js +4 -1
  61. package/dist/es2019/ui/common/modal/basic-search-input/index.js +4 -1
  62. package/dist/es2019/ui/common/modal/cancel-button/index.js +4 -1
  63. package/dist/es2019/ui/common/modal/content-container/index.js +4 -1
  64. package/dist/es2019/ui/common/modal/count-view-smart-link/index.js +4 -1
  65. package/dist/es2019/ui/common/modal/datasource-context/index.js +7 -3
  66. package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +4 -1
  67. package/dist/es2019/ui/common/modal/insert-button/index.js +99 -0
  68. package/dist/es2019/ui/common/modal/mode-switcher/index.js +4 -1
  69. package/dist/es2019/ui/common/modal/mode-switcher/useViewModeContext.js +4 -1
  70. package/dist/es2019/ui/common/modal/site-selector/index.js +4 -1
  71. package/dist/es2019/ui/confluence-search-modal/modal/ModalOld.js +4 -1
  72. package/dist/es2019/ui/confluence-search-modal/modal/index.js +15 -72
  73. package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +4 -1
  74. package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +4 -1
  75. package/dist/es2019/ui/issue-like-table/column-picker/index.js +4 -1
  76. package/dist/es2019/ui/issue-like-table/drag-column-preview.js +4 -1
  77. package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +4 -1
  78. package/dist/es2019/ui/issue-like-table/empty-state/index.js +4 -1
  79. package/dist/es2019/ui/issue-like-table/index.js +4 -1
  80. package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +4 -1
  81. package/dist/es2019/ui/issue-like-table/render-type/user/index.js +4 -1
  82. package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +4 -1
  83. package/dist/es2019/ui/jira-issues-modal/modal/ModalOld.js +4 -1
  84. package/dist/es2019/ui/jira-issues-modal/modal/index.js +4 -1
  85. package/dist/es2019/ui/table-footer/index.js +4 -1
  86. package/dist/esm/ui/assets-modal/modal/index.js +4 -1
  87. package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +4 -1
  88. package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +4 -1
  89. package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +4 -1
  90. package/dist/esm/ui/assets-modal/search-container/aql-search-input/loading-state.js +4 -1
  91. package/dist/esm/ui/assets-modal/search-container/index.js +4 -1
  92. package/dist/esm/ui/assets-modal/search-container/loading-state.js +4 -1
  93. package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +4 -1
  94. package/dist/esm/ui/assets-modal/search-container/object-schema-select/loading-state.js +4 -1
  95. package/dist/esm/ui/common/error-state/access-required.js +4 -1
  96. package/dist/esm/ui/common/error-state/loading-error.js +4 -1
  97. package/dist/esm/ui/common/error-state/modal-loading-error.js +4 -1
  98. package/dist/esm/ui/common/error-state/no-instances.js +4 -1
  99. package/dist/esm/ui/common/error-state/no-results.js +4 -1
  100. package/dist/esm/ui/common/error-state/provider-auth-required-svg.js +4 -1
  101. package/dist/esm/ui/common/error-state/provider-auth-required.js +4 -1
  102. package/dist/esm/ui/common/initial-state-view/index.js +4 -1
  103. package/dist/esm/ui/common/modal/basic-search-input/index.js +4 -1
  104. package/dist/esm/ui/common/modal/cancel-button/index.js +4 -1
  105. package/dist/esm/ui/common/modal/content-container/index.js +4 -1
  106. package/dist/esm/ui/common/modal/count-view-smart-link/index.js +4 -1
  107. package/dist/esm/ui/common/modal/datasource-context/index.js +7 -3
  108. package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +4 -1
  109. package/dist/esm/ui/common/modal/insert-button/index.js +95 -0
  110. package/dist/esm/ui/common/modal/mode-switcher/index.js +4 -1
  111. package/dist/esm/ui/common/modal/mode-switcher/useViewModeContext.js +4 -1
  112. package/dist/esm/ui/common/modal/site-selector/index.js +4 -1
  113. package/dist/esm/ui/confluence-search-modal/modal/ModalOld.js +4 -1
  114. package/dist/esm/ui/confluence-search-modal/modal/index.js +16 -69
  115. package/dist/esm/ui/datasource-table-view/datasourceTableView.js +4 -1
  116. package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +4 -1
  117. package/dist/esm/ui/issue-like-table/column-picker/index.js +4 -1
  118. package/dist/esm/ui/issue-like-table/drag-column-preview.js +4 -1
  119. package/dist/esm/ui/issue-like-table/draggable-table-heading.js +4 -1
  120. package/dist/esm/ui/issue-like-table/empty-state/index.js +4 -1
  121. package/dist/esm/ui/issue-like-table/index.js +4 -1
  122. package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +4 -1
  123. package/dist/esm/ui/issue-like-table/render-type/user/index.js +4 -1
  124. package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +4 -1
  125. package/dist/esm/ui/jira-issues-modal/modal/ModalOld.js +4 -1
  126. package/dist/esm/ui/jira-issues-modal/modal/index.js +4 -1
  127. package/dist/esm/ui/table-footer/index.js +4 -1
  128. package/dist/types/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +4 -1
  129. package/dist/types/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +4 -1
  130. package/dist/types/ui/assets-modal/search-container/index.d.ts +4 -1
  131. package/dist/types/ui/assets-modal/search-container/loading-state.d.ts +4 -1
  132. package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +4 -1
  133. package/dist/types/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +4 -1
  134. package/dist/types/ui/common/error-state/no-instances.d.ts +4 -1
  135. package/dist/types/ui/common/error-state/provider-auth-required-svg.d.ts +4 -1
  136. package/dist/types/ui/common/initial-state-view/index.d.ts +4 -1
  137. package/dist/types/ui/common/modal/basic-search-input/index.d.ts +4 -1
  138. package/dist/types/ui/common/modal/content-container/index.d.ts +4 -1
  139. package/dist/types/ui/common/modal/count-view-smart-link/index.d.ts +4 -1
  140. package/dist/types/ui/common/modal/datasource-context/index.d.ts +7 -1
  141. package/dist/types/ui/common/modal/display-view-dropdown/display-view-drop-down.d.ts +4 -1
  142. package/dist/types/ui/common/modal/insert-button/index.d.ts +12 -0
  143. package/dist/types/ui/common/modal/mode-switcher/useViewModeContext.d.ts +4 -1
  144. package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +4 -1
  145. package/dist/types/ui/issue-like-table/drag-column-preview.d.ts +4 -1
  146. package/dist/types/ui/issue-like-table/draggable-table-heading.d.ts +4 -1
  147. package/dist/types/ui/issue-like-table/empty-state/index.d.ts +4 -1
  148. package/dist/types/ui/issue-like-table/index.d.ts +4 -1
  149. package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +4 -1
  150. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/initial-state-view/index.d.ts +4 -1
  151. package/dist/types-ts4.5/ui/assets-modal/search-container/aql-search-input/loading-state.d.ts +4 -1
  152. package/dist/types-ts4.5/ui/assets-modal/search-container/index.d.ts +4 -1
  153. package/dist/types-ts4.5/ui/assets-modal/search-container/loading-state.d.ts +4 -1
  154. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +4 -1
  155. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/loading-state.d.ts +4 -1
  156. package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +4 -1
  157. package/dist/types-ts4.5/ui/common/error-state/provider-auth-required-svg.d.ts +4 -1
  158. package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +4 -1
  159. package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +4 -1
  160. package/dist/types-ts4.5/ui/common/modal/content-container/index.d.ts +4 -1
  161. package/dist/types-ts4.5/ui/common/modal/count-view-smart-link/index.d.ts +4 -1
  162. package/dist/types-ts4.5/ui/common/modal/datasource-context/index.d.ts +7 -1
  163. package/dist/types-ts4.5/ui/common/modal/display-view-dropdown/display-view-drop-down.d.ts +4 -1
  164. package/dist/types-ts4.5/ui/common/modal/insert-button/index.d.ts +12 -0
  165. package/dist/types-ts4.5/ui/common/modal/mode-switcher/useViewModeContext.d.ts +4 -1
  166. package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +4 -1
  167. package/dist/types-ts4.5/ui/issue-like-table/drag-column-preview.d.ts +4 -1
  168. package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +4 -1
  169. package/dist/types-ts4.5/ui/issue-like-table/empty-state/index.d.ts +4 -1
  170. package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +4 -1
  171. package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +4 -1
  172. package/examples-helpers/buildIssueLikeTable.tsx +4 -1
  173. package/examples-helpers/hoverableContainer.tsx +4 -1
  174. 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
- /** @jsx jsx */
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 _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import React from 'react';
4
7
 
5
8
  // 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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
- /** @jsx jsx */
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 { EVENT_CHANNEL, useDatasourceAnalyticsEvents } from '../../../analytics';
20
+ import { useDatasourceAnalyticsEvents } from '../../../analytics';
19
21
  import { componentMetadata } from '../../../analytics/constants';
20
- import { DatasourceAction, DatasourceDisplay, DatasourceSearchMethod } from '../../../analytics/types';
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 datasourceId = props.datasourceId,
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 isInsertDisabled = !isValidParameters(parameters) || status === 'rejected' || status === 'unauthorized' || status === 'loading';
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: getCancelButtonAnalyticsPayload,
332
+ getAnalyticsPayload: getButtonAnalyticsPayload,
386
333
  testId: "confluence-search-modal--cancel-button"
387
- }), !hasNoConfluenceSites && jsx(Button, {
388
- appearance: "primary",
389
- onClick: onInsertPressed,
390
- isDisabled: isInsertDisabled,
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,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { useCallback, useEffect, useRef } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
 
4
7
  // 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
- /** @jsx jsx */
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
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
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 { css, jsx } from '@emotion/react';
4
7
  import { Skeleton } from '@atlaskit/linking-common';
@@ -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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
- /** @jsx jsx */
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
@@ -1,3 +1,6 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  export declare const InitialStateView: () => jsx.JSX.Element;
@@ -1,3 +1,6 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  export declare const AssetsAqlSearchInputSkeleton: () => jsx.JSX.Element;
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { jsx } from '@emotion/react';
4
7
  import type { ObjectSchema } from '../../../types/assets/types';
5
8
  export type InitialSearchData = {
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { jsx } from '@emotion/react';
4
7
  type AssetsSearchConatinerLoadingProps = {
5
8
  modalTitle?: JSX.Element;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import { type ObjectSchema } from '../../../../types/assets/types';
4
7
  type AssetsObjectSchemaSelectProps = {
@@ -1,3 +1,6 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  export declare const AssetsObjectSchemaSelectSkeleton: () => jsx.JSX.Element;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import { type MessageDescriptor } from 'react-intl-next';
4
7
  interface NoInstanceViewProps {
@@ -1,3 +1,6 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  export declare const ProviderAuthRequiredSVG: () => jsx.JSX.Element;
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  import { jsx } from '@emotion/react';
4
7
  import { type MessageDescriptor } from 'react-intl-next';
5
8
  interface InitialStateViewProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  /// <reference types="react" />
3
6
  import { jsx } from '@emotion/react';
4
7
  import { type MessageDescriptor } from 'react-intl-next';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { type ReactNode } from 'react';
3
6
  import { jsx } from '@emotion/react';
4
7
  export interface ContentContainerProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import { type MessageDescriptor } from 'react-intl-next';
4
7
  export declare const SmartCardPlaceholder: ({ placeholderText, }: {