@atlaskit/link-datasource 2.3.1 → 2.3.3

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 (193) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/ui/assets-modal/search-container/styled.js +6 -0
  3. package/dist/cjs/ui/common/modal/popup-select/trigger.js +2 -0
  4. package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
  5. package/dist/cjs/ui/issue-like-table/drag-column-preview.js +3 -0
  6. package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +13 -5
  7. package/dist/cjs/ui/issue-like-table/empty-state/type.js +1 -0
  8. package/dist/cjs/ui/issue-like-table/index.js +89 -48
  9. package/dist/cjs/ui/issue-like-table/render-type/date-time/index.js +2 -0
  10. package/dist/cjs/ui/issue-like-table/render-type/icon/index.js +1 -0
  11. package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +2 -3
  12. package/dist/cjs/ui/issue-like-table/render-type/text/index.js +2 -0
  13. package/dist/cjs/ui/issue-like-table/render-type/user/index.js +2 -0
  14. package/dist/cjs/ui/issue-like-table/styled.js +15 -0
  15. package/dist/cjs/ui/issue-like-table/utils.js +13 -6
  16. package/dist/cjs/ui/table-footer/index.js +9 -0
  17. package/dist/es2019/ui/assets-modal/search-container/styled.js +6 -0
  18. package/dist/es2019/ui/common/modal/popup-select/trigger.js +2 -0
  19. package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
  20. package/dist/es2019/ui/issue-like-table/drag-column-preview.js +3 -0
  21. package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +13 -5
  22. package/dist/es2019/ui/issue-like-table/empty-state/type.js +1 -0
  23. package/dist/es2019/ui/issue-like-table/index.js +53 -17
  24. package/dist/es2019/ui/issue-like-table/render-type/date-time/index.js +2 -0
  25. package/dist/es2019/ui/issue-like-table/render-type/icon/index.js +1 -0
  26. package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +2 -3
  27. package/dist/es2019/ui/issue-like-table/render-type/text/index.js +2 -0
  28. package/dist/es2019/ui/issue-like-table/render-type/user/index.js +2 -0
  29. package/dist/es2019/ui/issue-like-table/styled.js +15 -0
  30. package/dist/es2019/ui/issue-like-table/utils.js +14 -5
  31. package/dist/es2019/ui/table-footer/index.js +9 -0
  32. package/dist/esm/ui/assets-modal/search-container/styled.js +6 -0
  33. package/dist/esm/ui/common/modal/popup-select/trigger.js +2 -0
  34. package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +13 -0
  35. package/dist/esm/ui/issue-like-table/drag-column-preview.js +3 -0
  36. package/dist/esm/ui/issue-like-table/draggable-table-heading.js +13 -5
  37. package/dist/esm/ui/issue-like-table/empty-state/type.js +1 -0
  38. package/dist/esm/ui/issue-like-table/index.js +89 -48
  39. package/dist/esm/ui/issue-like-table/render-type/date-time/index.js +2 -0
  40. package/dist/esm/ui/issue-like-table/render-type/icon/index.js +1 -0
  41. package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +2 -3
  42. package/dist/esm/ui/issue-like-table/render-type/text/index.js +2 -0
  43. package/dist/esm/ui/issue-like-table/render-type/user/index.js +2 -0
  44. package/dist/esm/ui/issue-like-table/styled.js +15 -0
  45. package/dist/esm/ui/issue-like-table/utils.js +13 -6
  46. package/dist/esm/ui/table-footer/index.js +9 -0
  47. package/dist/types/analytics/generated/create-event-payload.d.ts +1 -1
  48. package/dist/types/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
  49. package/dist/types/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
  50. package/dist/types/common/types.d.ts +1 -1
  51. package/dist/types/common/utils/adf.d.ts +1 -1
  52. package/dist/types/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
  53. package/dist/types/hooks/useAssetsClient.d.ts +2 -2
  54. package/dist/types/hooks/useObjectSchemas.d.ts +1 -1
  55. package/dist/types/services/cmdbService.d.ts +3 -3
  56. package/dist/types/services/makeGetJqlAutocompleteData.d.ts +1 -1
  57. package/dist/types/services/makeGetJqlSuggestionsData.d.ts +1 -1
  58. package/dist/types/services/mocks.d.ts +2 -2
  59. package/dist/types/services/useBasicFilterAGG.d.ts +2 -2
  60. package/dist/types/ui/assets-modal/index.d.ts +1 -1
  61. package/dist/types/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -1
  62. package/dist/types/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
  63. package/dist/types/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
  64. package/dist/types/ui/common/error-state/no-instances.d.ts +1 -1
  65. package/dist/types/ui/common/error-state/provider-auth-required.d.ts +1 -1
  66. package/dist/types/ui/common/initial-state-view/index.d.ts +1 -1
  67. package/dist/types/ui/common/modal/basic-search-input/index.d.ts +1 -1
  68. package/dist/types/ui/common/modal/cancel-button/index.d.ts +1 -1
  69. package/dist/types/ui/common/modal/content-container/index.d.ts +1 -1
  70. package/dist/types/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
  71. package/dist/types/ui/common/modal/popup-select/control.d.ts +2 -2
  72. package/dist/types/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
  73. package/dist/types/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
  74. package/dist/types/ui/common/modal/popup-select/index.d.ts +3 -3
  75. package/dist/types/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
  76. package/dist/types/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
  77. package/dist/types/ui/common/modal/popup-select/trigger.d.ts +1 -1
  78. package/dist/types/ui/common/modal/popup-select/types.d.ts +1 -1
  79. package/dist/types/ui/common/modal/site-selector/index.d.ts +1 -1
  80. package/dist/types/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
  81. package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
  82. package/dist/types/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
  83. package/dist/types/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
  84. package/dist/types/ui/confluence-search-modal/index.d.ts +1 -1
  85. package/dist/types/ui/datasource-table-view/datasourceTableView.d.ts +0 -1
  86. package/dist/types/ui/datasource-table-view/index.d.ts +1 -1
  87. package/dist/types/ui/datasource-table-view/types.d.ts +1 -2
  88. package/dist/types/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
  89. package/dist/types/ui/issue-like-table/column-picker/index.d.ts +1 -1
  90. package/dist/types/ui/issue-like-table/column-picker/types.d.ts +1 -1
  91. package/dist/types/ui/issue-like-table/custom-icons.d.ts +1 -1
  92. package/dist/types/ui/issue-like-table/draggable-table-heading.d.ts +2 -2
  93. package/dist/types/ui/issue-like-table/empty-state/priority.d.ts +1 -1
  94. package/dist/types/ui/issue-like-table/empty-state/type.d.ts +1 -1
  95. package/dist/types/ui/issue-like-table/index.d.ts +1 -1
  96. package/dist/types/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
  97. package/dist/types/ui/issue-like-table/render-type/date-time/index.d.ts +2 -2
  98. package/dist/types/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
  99. package/dist/types/ui/issue-like-table/render-type/link/index.d.ts +1 -1
  100. package/dist/types/ui/issue-like-table/render-type/status/index.d.ts +1 -1
  101. package/dist/types/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
  102. package/dist/types/ui/issue-like-table/render-type/text/index.d.ts +1 -1
  103. package/dist/types/ui/issue-like-table/render-type/user/index.d.ts +2 -2
  104. package/dist/types/ui/issue-like-table/utils.d.ts +2 -2
  105. package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
  106. package/dist/types/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
  107. package/dist/types/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
  108. package/dist/types/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
  109. package/dist/types/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
  110. package/dist/types/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
  111. package/dist/types/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
  112. package/dist/types/ui/jira-issues-modal/index.d.ts +1 -1
  113. package/dist/types/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
  114. package/dist/types/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
  115. package/dist/types/ui/jira-issues-modal/types.d.ts +3 -3
  116. package/dist/types-ts4.5/analytics/generated/create-event-payload.d.ts +1 -1
  117. package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useColumnPickerRenderedFailedUfoExperience.d.ts +1 -1
  118. package/dist/types-ts4.5/analytics/ufoExperiences/hooks/useDataRenderedUfoExperience.d.ts +1 -1
  119. package/dist/types-ts4.5/common/types.d.ts +1 -1
  120. package/dist/types-ts4.5/common/utils/adf.d.ts +1 -1
  121. package/dist/types-ts4.5/common/utils/locale/fetch-messages-for-locale.d.ts +1 -1
  122. package/dist/types-ts4.5/hooks/useAssetsClient.d.ts +2 -2
  123. package/dist/types-ts4.5/hooks/useObjectSchemas.d.ts +1 -1
  124. package/dist/types-ts4.5/services/cmdbService.d.ts +3 -3
  125. package/dist/types-ts4.5/services/makeGetJqlAutocompleteData.d.ts +1 -1
  126. package/dist/types-ts4.5/services/makeGetJqlSuggestionsData.d.ts +1 -1
  127. package/dist/types-ts4.5/services/mocks.d.ts +2 -2
  128. package/dist/types-ts4.5/services/useBasicFilterAGG.d.ts +2 -2
  129. package/dist/types-ts4.5/ui/assets-modal/index.d.ts +1 -1
  130. package/dist/types-ts4.5/ui/assets-modal/modal/render-assets-content/index.d.ts +1 -1
  131. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/index.d.ts +1 -1
  132. package/dist/types-ts4.5/ui/assets-modal/search-container/object-schema-select/utils.d.ts +1 -1
  133. package/dist/types-ts4.5/ui/common/error-state/no-instances.d.ts +1 -1
  134. package/dist/types-ts4.5/ui/common/error-state/provider-auth-required.d.ts +1 -1
  135. package/dist/types-ts4.5/ui/common/initial-state-view/index.d.ts +1 -1
  136. package/dist/types-ts4.5/ui/common/modal/basic-search-input/index.d.ts +1 -1
  137. package/dist/types-ts4.5/ui/common/modal/cancel-button/index.d.ts +1 -1
  138. package/dist/types-ts4.5/ui/common/modal/content-container/index.d.ts +1 -1
  139. package/dist/types-ts4.5/ui/common/modal/count-view-smart-link/index.d.ts +1 -1
  140. package/dist/types-ts4.5/ui/common/modal/popup-select/control.d.ts +2 -2
  141. package/dist/types-ts4.5/ui/common/modal/popup-select/dropdownIndicator.d.ts +2 -2
  142. package/dist/types-ts4.5/ui/common/modal/popup-select/formatOptionLabel.d.ts +1 -1
  143. package/dist/types-ts4.5/ui/common/modal/popup-select/index.d.ts +3 -3
  144. package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/index.d.ts +2 -2
  145. package/dist/types-ts4.5/ui/common/modal/popup-select/menu-list/selectMessage.d.ts +1 -1
  146. package/dist/types-ts4.5/ui/common/modal/popup-select/trigger.d.ts +1 -1
  147. package/dist/types-ts4.5/ui/common/modal/popup-select/types.d.ts +1 -1
  148. package/dist/types-ts4.5/ui/common/modal/site-selector/index.d.ts +1 -1
  149. package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/filters/edited-or-created-by/index.d.ts +1 -1
  150. package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useCurrentUserInfo.d.ts +1 -1
  151. package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/hooks/useRecommendation.d.ts +2 -2
  152. package/dist/types-ts4.5/ui/confluence-search-modal/basic-filters/types.d.ts +1 -1
  153. package/dist/types-ts4.5/ui/confluence-search-modal/index.d.ts +1 -1
  154. package/dist/types-ts4.5/ui/datasource-table-view/datasourceTableView.d.ts +0 -1
  155. package/dist/types-ts4.5/ui/datasource-table-view/index.d.ts +1 -1
  156. package/dist/types-ts4.5/ui/datasource-table-view/types.d.ts +1 -2
  157. package/dist/types-ts4.5/ui/issue-like-table/column-picker/concatenated-menu-list.d.ts +1 -1
  158. package/dist/types-ts4.5/ui/issue-like-table/column-picker/index.d.ts +1 -1
  159. package/dist/types-ts4.5/ui/issue-like-table/column-picker/types.d.ts +1 -1
  160. package/dist/types-ts4.5/ui/issue-like-table/custom-icons.d.ts +1 -1
  161. package/dist/types-ts4.5/ui/issue-like-table/draggable-table-heading.d.ts +2 -2
  162. package/dist/types-ts4.5/ui/issue-like-table/empty-state/priority.d.ts +1 -1
  163. package/dist/types-ts4.5/ui/issue-like-table/empty-state/type.d.ts +1 -1
  164. package/dist/types-ts4.5/ui/issue-like-table/index.d.ts +1 -1
  165. package/dist/types-ts4.5/ui/issue-like-table/render-type/boolean/index.d.ts +1 -1
  166. package/dist/types-ts4.5/ui/issue-like-table/render-type/date-time/index.d.ts +2 -2
  167. package/dist/types-ts4.5/ui/issue-like-table/render-type/icon/index.d.ts +1 -1
  168. package/dist/types-ts4.5/ui/issue-like-table/render-type/link/index.d.ts +1 -1
  169. package/dist/types-ts4.5/ui/issue-like-table/render-type/status/index.d.ts +1 -1
  170. package/dist/types-ts4.5/ui/issue-like-table/render-type/tag/index.d.ts +1 -1
  171. package/dist/types-ts4.5/ui/issue-like-table/render-type/text/index.d.ts +1 -1
  172. package/dist/types-ts4.5/ui/issue-like-table/render-type/user/index.d.ts +2 -2
  173. package/dist/types-ts4.5/ui/issue-like-table/utils.d.ts +2 -2
  174. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useFilterOptions.d.ts +3 -3
  175. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/hooks/useHydrateJqlQuery.d.ts +2 -2
  176. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/types.d.ts +1 -1
  177. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/async-popup-select/index.d.ts +2 -2
  178. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/ui/index.d.ts +1 -1
  179. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/isClauseTooComplex.d.ts +1 -1
  180. package/dist/types-ts4.5/ui/jira-issues-modal/basic-filters/utils/transformers.d.ts +2 -2
  181. package/dist/types-ts4.5/ui/jira-issues-modal/index.d.ts +1 -1
  182. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/buildJQL.d.ts +1 -1
  183. package/dist/types-ts4.5/ui/jira-issues-modal/jira-search-container/index.d.ts +2 -2
  184. package/dist/types-ts4.5/ui/jira-issues-modal/types.d.ts +3 -3
  185. package/examples-helpers/buildAssetsIssuesTable.tsx +2 -2
  186. package/examples-helpers/buildConfluenceSearchTable.tsx +2 -2
  187. package/examples-helpers/buildIssueLikeTable.tsx +2 -1
  188. package/examples-helpers/buildJiraIssuesTable.tsx +2 -2
  189. package/examples-helpers/mockJqlSmartLinkData.ts +1 -1
  190. package/examples-helpers/mockSmartLinkData.ts +1 -1
  191. package/examples-helpers/smartLinkCustomClient.ts +1 -1
  192. package/examples-helpers/useAssetsTableProps.tsx +2 -2
  193. package/package.json +18 -12
@@ -7,6 +7,7 @@ import { fontFallback } from '@atlaskit/theme/typography';
7
7
  import { TableHeading } from './styled';
8
8
  var maxWidth = '200px';
9
9
  var firstLastChildOverride = "\n &:first-of-type, &:last-of-type {\n padding-left: ".concat("var(--ds-space-100, 8px)", ";\n padding-right: ", "var(--ds-space-100, 8px)", ";\n }\n");
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
10
11
  var TablePreviewHeading = styled(TableHeading)({
11
12
  overflow: 'hidden',
12
13
  textOverflow: 'ellipsis',
@@ -14,6 +15,8 @@ var TablePreviewHeading = styled(TableHeading)({
14
15
  background: "var(--ds-background-disabled, #091E4224)",
15
16
  maxWidth: maxWidth
16
17
  }, firstLastChildOverride);
18
+
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
17
20
  var TablePreviewCell = styled.td({
18
21
  overflow: 'hidden',
19
22
  textOverflow: 'ellipsis',
@@ -28,6 +28,7 @@ import { GlyphPlaceholder, UnwrapTextIcon, WrapTextIcon } from './custom-icons';
28
28
  import { issueLikeTableMessages } from './messages';
29
29
  import { TableHeading } from './styled';
30
30
  import { COLUMN_MIN_WIDTH, getWidthCss } from './utils';
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
31
32
  var DropdownParent = styled.div({
32
33
  display: 'flex',
33
34
  alignItems: 'center',
@@ -114,6 +115,11 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref) {
114
115
  closestEdge = _useState6[0],
115
116
  setClosestEdge = _useState6[1];
116
117
  var dropTargetRef = useRef(null);
118
+ /**
119
+ * When width is not set (or callback is not set) we assume not resizing is needed.
120
+ * In our case width won't be set for last cell when table container is bigger than sum of all columns
121
+ */
122
+ var resizeIsEnabled = !!onWidthChange && !!width;
117
123
  useEffect(function () {
118
124
  var cell = mainHeaderCellRef.current;
119
125
  invariant(cell);
@@ -221,7 +227,7 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref) {
221
227
 
222
228
  // Handling column resizing
223
229
  useEffect(function () {
224
- if (!onWidthChange) {
230
+ if (!resizeIsEnabled) {
225
231
  return;
226
232
  }
227
233
  var resizeHandle = columnResizeHandleRef.current;
@@ -277,7 +283,7 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref) {
277
283
  }
278
284
  }
279
285
  });
280
- }, [id, index, onWidthChange, state, tableId, width]);
286
+ }, [id, index, onWidthChange, resizeIsEnabled, state, tableId, width]);
281
287
  var _useState7 = useState(false),
282
288
  _useState8 = _slicedToArray(_useState7, 2),
283
289
  buttonHovered = _useState8[0],
@@ -286,7 +292,9 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref) {
286
292
  _useState10 = _slicedToArray(_useState9, 2),
287
293
  isDropdownOpen = _useState10[0],
288
294
  setIsDropdownOpen = _useState10[1];
289
- var isWideEnoughToHaveChevron = width > 76;
295
+ // Width is not set when it is a last cell in a wide table.
296
+ // We make assumption thus that there is enough width for chevron.
297
+ var isWideEnoughToHaveChevron = !width || width > 76;
290
298
  var shouldShowTriggerIcon = (buttonHovered || isDropdownOpen) && isWideEnoughToHaveChevron;
291
299
  var triggerIcon = useMemo(function () {
292
300
  return shouldShowTriggerIcon ? isDropdownOpen ? ChevronUp : ChevronDown : isWideEnoughToHaveChevron ? GlyphPlaceholder : undefined;
@@ -322,10 +330,10 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref) {
322
330
  style: _objectSpread({
323
331
  cursor: 'grab'
324
332
  }, getWidthCss({
325
- shouldUseWidth: !!onWidthChange,
333
+ shouldUseWidth: resizeIsEnabled,
326
334
  width: width
327
335
  }))
328
- }, onWidthChange ? jsx("div", {
336
+ }, resizeIsEnabled ? jsx("div", {
329
337
  ref: columnResizeHandleRef,
330
338
  css: [resizerStyles, state.type === 'resizing' && resizingStyles],
331
339
  style: {
@@ -6,6 +6,7 @@ import Epic16Icon from '@atlaskit/icon-object/glyph/epic/16';
6
6
  import Issue16Icon from '@atlaskit/icon-object/glyph/issue/16';
7
7
  import Story16Icon from '@atlaskit/icon-object/glyph/story/16';
8
8
  import Task16Icon from '@atlaskit/icon-object/glyph/task/16';
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
9
10
  var IconWrapper = styled.div({
10
11
  display: 'flex',
11
12
  alignItems: 'center',
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
5
5
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
- var _styled$th, _styled$td;
6
+ 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; }
@@ -11,6 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
11
11
  import { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';
12
12
  import { css, jsx } from '@emotion/react';
13
13
  import styled from '@emotion/styled';
14
+ import debounce from 'lodash/debounce';
14
15
  import { useIntl } from 'react-intl-next';
15
16
  import invariant from 'tiny-invariant';
16
17
  import { Skeleton } from '@atlaskit/linking-common';
@@ -22,6 +23,7 @@ import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/ad
22
23
  import { N40 } from '@atlaskit/theme/colors';
23
24
  import { fontFallback } from '@atlaskit/theme/typography';
24
25
  import Tooltip from '@atlaskit/tooltip';
26
+ import { WidthObserver } from '@atlaskit/width-detector';
25
27
  import { startUfoExperience, succeedUfoExperience } from '../../analytics/ufoExperiences';
26
28
  import { stickyTableHeadersIndex } from '../../common/zindex';
27
29
  import { ColumnPicker } from './column-picker';
@@ -44,27 +46,33 @@ var truncateTextStyles = css({
44
46
  textOverflow: 'ellipsis',
45
47
  whiteSpace: 'nowrap'
46
48
  });
47
- var ColumnPickerHeader = styled.th((_styled$th = {}, _defineProperty(_styled$th, "".concat(withTablePluginHeaderPrefix()), {
48
- boxSizing: 'content-box',
49
+ var columnPickerWidth = 80;
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
51
+ var ColumnPickerHeader = styled.th(_defineProperty({}, "".concat(withTablePluginHeaderPrefix('&:last-of-type')), {
52
+ boxSizing: 'border-box',
49
53
  border: 0,
50
- width: '56px',
54
+ width: "".concat(columnPickerWidth, "px"),
51
55
  zIndex: 10,
52
56
  position: 'sticky',
53
57
  right: "calc(-1 * ".concat(tableSidePadding, ")"),
54
58
  backgroundColor: "var(--ds-elevation-surface-current, #FFF)",
59
+ /* It is required to have solid (not half-transparent) color because of this gradient business below */
55
60
  borderBottom: "2px solid ".concat("var(--ds-border, ".concat(N40, ")")),
56
- paddingRight: "var(--ds-space-100, 4px)",
61
+ paddingRight: tableSidePadding,
57
62
  background: "linear-gradient( 90deg, rgba(255, 255, 255, 0) 0%, ".concat("var(--ds-elevation-surface-current, #FFF)", " 10% )"),
63
+ /* Keeps dropdown button in the middle */
58
64
  verticalAlign: 'middle',
65
+ /* In case when TH itself is bigger we want to keep picker at the right side */
59
66
  textAlign: 'right'
60
- }), _defineProperty(_styled$th, "".concat(withTablePluginHeaderPrefix('&:last-of-type')), {
61
- paddingRight: tableSidePadding
62
- }), _styled$th));
67
+ }));
63
68
  var truncateStyles = css({
64
69
  textOverflow: 'ellipsis',
65
70
  whiteSpace: 'nowrap'
66
71
  });
72
+
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
67
74
  var TableCell = styled.td((_styled$td = {}, _defineProperty(_styled$td, "".concat(withTablePluginBodyPrefix()), {
75
+ /* First section here is to override things editor table plugin css defines */
68
76
  font: fieldTextFontSize,
69
77
  padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
70
78
  border: 0,
@@ -85,7 +93,8 @@ var TableCell = styled.td((_styled$td = {}, _defineProperty(_styled$td, "".conca
85
93
  var tableContainerStyles = css({
86
94
  borderRadius: 'inherit',
87
95
  borderBottomLeftRadius: 0,
88
- borderBottomRightRadius: 0
96
+ borderBottomRightRadius: 0,
97
+ position: 'relative'
89
98
  });
90
99
 
91
100
  /**
@@ -182,7 +191,10 @@ var tableStyles = css({
182
191
  // These styles are needed to prevent thead bottom border from scrolling away.
183
192
  // This happens because it is sticky. https://stackoverflow.com/questions/50361698/border-style-do-not-work-with-sticky-position-element
184
193
  borderCollapse: 'separate',
185
- borderSpacing: 0
194
+ borderSpacing: 0,
195
+ // There is a strange table:first-of-type rule that sets margin-top to 0 coming from container,
196
+ // but because our table is now not the first child (there is an empty div to measure width) we need to set it manually.
197
+ margin: 0
186
198
  });
187
199
 
188
200
  // By default tbody and thead have border-bottom: 2px ...
@@ -294,6 +306,19 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
294
306
  _useState6 = _slicedToArray(_useState5, 2),
295
307
  orderedColumns = _useState6[0],
296
308
  setOrderedColumns = _useState6[1];
309
+
310
+ // Table container width is used to know if sum of all column widths is bigger of container or not.
311
+ // When sum of all columns is less than container size we make last column stretchable (width: undefined)
312
+ var _useState7 = useState(),
313
+ _useState8 = _slicedToArray(_useState7, 2),
314
+ tableContainerWidth = _useState8[0],
315
+ setTableContainerWidth = _useState8[1];
316
+ useEffect(function () {
317
+ var current = containerRef.current;
318
+ if (containerRef && current) {
319
+ setTableContainerWidth(current.getBoundingClientRect().width);
320
+ }
321
+ }, [containerRef]);
297
322
  useEffect(function () {
298
323
  if (!hasFullSchema) {
299
324
  setOrderedColumns(getOrderedColumns(_toConsumableArray(columns), _toConsumableArray(visibleColumnKeys)));
@@ -320,19 +345,33 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
320
345
  // or some other combination.
321
346
 
322
347
  var identityColumnKey = 'id';
323
- var getColumnWidth = useCallback(function (key, type) {
324
- return (columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key]) || getDefaultColumnWidth(key, type);
325
- }, [columnCustomSizes]);
326
- var headerColumns = useMemo(function () {
348
+ var columnsWidthsSum = useMemo(function () {
327
349
  return visibleSortedColumns.map(function (_ref7) {
328
350
  var key = _ref7.key,
329
- title = _ref7.title,
330
351
  type = _ref7.type;
352
+ return (columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key]) || getDefaultColumnWidth(key, type);
353
+ }).reduce(function (sum, width) {
354
+ return width + sum;
355
+ }, 0) + (onVisibleColumnKeysChange ? columnPickerWidth : 0);
356
+ }, [columnCustomSizes, onVisibleColumnKeysChange, visibleSortedColumns]);
357
+ var shouldUseWidth = !!(onColumnResize || columnCustomSizes);
358
+ var getColumnWidth = useCallback(function (key, type, isLastCell) {
359
+ if (isLastCell && shouldUseWidth && (!tableContainerWidth || tableContainerWidth > columnsWidthsSum)) {
360
+ return undefined;
361
+ } else {
362
+ return (columnCustomSizes === null || columnCustomSizes === void 0 ? void 0 : columnCustomSizes[key]) || getDefaultColumnWidth(key, type);
363
+ }
364
+ }, [columnCustomSizes, columnsWidthsSum, shouldUseWidth, tableContainerWidth]);
365
+ var headerColumns = useMemo(function () {
366
+ return visibleSortedColumns.map(function (_ref8, index) {
367
+ var key = _ref8.key,
368
+ title = _ref8.title,
369
+ type = _ref8.type;
331
370
  return {
332
371
  key: key,
333
372
  content: title,
334
373
  shouldTruncate: true,
335
- width: getColumnWidth(key, type)
374
+ width: getColumnWidth(key, type, index === visibleSortedColumns.length - 1)
336
375
  };
337
376
  });
338
377
  }, [getColumnWidth, visibleSortedColumns]);
@@ -369,9 +408,9 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
369
408
  return;
370
409
  }
371
410
  return combine(monitorForElements({
372
- onDragStart: function onDragStart(_ref8) {
373
- var location = _ref8.location,
374
- source = _ref8.source;
411
+ onDragStart: function onDragStart(_ref9) {
412
+ var location = _ref9.location,
413
+ source = _ref9.source;
375
414
  initialAutoScrollerClientY.current = location.current.input.clientY;
376
415
  if (source.data.type === 'table-header') {
377
416
  var _containerRef$current;
@@ -387,9 +426,9 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
387
426
  });
388
427
  }
389
428
  },
390
- onDrag: function onDrag(_ref9) {
391
- var location = _ref9.location,
392
- source = _ref9.source;
429
+ onDrag: function onDrag(_ref10) {
430
+ var location = _ref10.location,
431
+ source = _ref10.source;
393
432
  if (source.data.type === 'table-header') {
394
433
  var _containerRef$current2;
395
434
  autoScroller.updateInput({
@@ -399,9 +438,9 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
399
438
  });
400
439
  }
401
440
  },
402
- onDrop: function onDrop(_ref10) {
403
- var source = _ref10.source,
404
- location = _ref10.location;
441
+ onDrop: function onDrop(_ref11) {
442
+ var source = _ref11.source,
443
+ location = _ref11.location;
405
444
  autoScroller.stop();
406
445
  if (location.current.dropTargets.length === 0) {
407
446
  return;
@@ -436,10 +475,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
436
475
  return items.map(function (newRowData, rowIndex) {
437
476
  return {
438
477
  key: "".concat(identityColumnKey && newRowData[identityColumnKey] && newRowData[identityColumnKey].data || rowIndex),
439
- cells: visibleSortedColumns.map(function (_ref11) {
478
+ cells: visibleSortedColumns.map(function (_ref12, cellIndex) {
440
479
  var _newRowData$key;
441
- var key = _ref11.key,
442
- type = _ref11.type;
480
+ var key = _ref12.key,
481
+ type = _ref12.type;
443
482
  // Need to make sure we keep falsy values like 0 and '', as well as the boolean false.
444
483
  var value = (_newRowData$key = newRowData[key]) === null || _newRowData$key === void 0 ? void 0 : _newRowData$key.data;
445
484
  var values = Array.isArray(value) ? value : [value];
@@ -463,7 +502,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
463
502
  return {
464
503
  key: key,
465
504
  content: contentComponent,
466
- width: getColumnWidth(key, type)
505
+ width: getColumnWidth(key, type, cellIndex === visibleSortedColumns.length - 1)
467
506
  };
468
507
  }),
469
508
  ref: rowIndex === items.length - 1 ? function (el) {
@@ -529,7 +568,6 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
529
568
  }
530
569
  }, _callee, null, [[3, 9]]);
531
570
  })), [parentContainerRenderInstanceId, extensionKey, hasFullSchema, onLoadDatasourceDetails]);
532
- var shouldUseWidth = !!(onColumnResize || columnCustomSizes);
533
571
  var isEditable = onVisibleColumnKeysChange && hasData;
534
572
  return jsx("div", {
535
573
  /* There is required contentEditable={true} in editor-card-plugin
@@ -541,8 +579,11 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
541
579
  css: [tableContainerStyles, scrollableContainerHeight && scrollableContainerStyles],
542
580
  style: scrollableContainerHeight ? {
543
581
  maxHeight: "".concat(scrollableContainerHeight, "px")
544
- } : undefined
545
- }, jsx(Table, {
582
+ } : undefined,
583
+ "data-testid": 'issue-like-table-container'
584
+ }, jsx(WidthObserver, {
585
+ setWidth: debounce(setTableContainerWidth, 100)
586
+ }), jsx(Table, {
546
587
  css: tableStyles,
547
588
  "data-testid": testId,
548
589
  style: shouldUseWidth ? {
@@ -554,10 +595,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
554
595
  className: !!onVisibleColumnKeysChange ? 'has-column-picker' : ''
555
596
  }, jsx("tr", {
556
597
  ref: tableHeaderRowRef
557
- }, headerColumns.map(function (_ref13, cellIndex) {
558
- var key = _ref13.key,
559
- content = _ref13.content,
560
- width = _ref13.width;
598
+ }, headerColumns.map(function (_ref14, cellIndex) {
599
+ var key = _ref14.key,
600
+ content = _ref14.content,
601
+ width = _ref14.width;
561
602
  var heading = jsx(Tooltip, {
562
603
  content: content,
563
604
  tag: "span",
@@ -574,10 +615,10 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
574
615
  }
575
616
  if (isEditable) {
576
617
  var _containerRef$current3;
577
- var previewRows = tableRows.map(function (_ref14) {
578
- var cells = _ref14.cells;
579
- var cell = cells.find(function (_ref15) {
580
- var cellKey = _ref15.key;
618
+ var previewRows = tableRows.map(function (_ref15) {
619
+ var cells = _ref15.cells;
620
+ var cell = cells.find(function (_ref16) {
621
+ var cellKey = _ref16.key;
581
622
  return cellKey === key;
582
623
  });
583
624
  if (cell) {
@@ -619,18 +660,18 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
619
660
  })))), jsx("tbody", {
620
661
  css: noDefaultBorderStyles,
621
662
  "data-testid": testId && "".concat(testId, "--body")
622
- }, rows.map(function (_ref16) {
623
- var key = _ref16.key,
624
- cells = _ref16.cells,
625
- ref = _ref16.ref;
663
+ }, rows.map(function (_ref17) {
664
+ var key = _ref17.key,
665
+ cells = _ref17.cells,
666
+ ref = _ref17.ref;
626
667
  return jsx("tr", {
627
668
  key: key,
628
669
  "data-testid": testId && "".concat(testId, "--row-").concat(key),
629
670
  ref: ref
630
- }, cells.map(function (_ref17, cellIndex) {
631
- var cellKey = _ref17.key,
632
- content = _ref17.content,
633
- width = _ref17.width;
671
+ }, cells.map(function (_ref18, cellIndex) {
672
+ var cellKey = _ref18.key,
673
+ content = _ref18.content,
674
+ width = _ref18.width;
634
675
  var isLastCell = cellIndex === cells.length - 1;
635
676
  var loadingRowStyle = getWidthCss({
636
677
  shouldUseWidth: shouldUseWidth,
@@ -16,6 +16,8 @@ var timeOptions = {
16
16
  hour: '2-digit',
17
17
  minute: '2-digit'
18
18
  };
19
+
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
19
21
  var DateTimeWrapper = styled.span({
20
22
  fontSize: fieldTextFontSize
21
23
  });
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import Image from '@atlaskit/image';
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
4
5
  var IconWrapper = styled.div({
5
6
  display: 'flex',
6
7
  alignItems: 'center',
@@ -8,8 +8,7 @@ import { css, jsx } from '@emotion/react';
8
8
  import { defaultSchema } from '@atlaskit/adf-schema/schema-default';
9
9
  import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
10
10
  var rootStyles = css({
11
- position: 'relative',
12
- display: 'block'
11
+ position: 'relative'
13
12
  });
14
13
  var smartLinkNodeToUrl = function smartLinkNodeToUrl(node) {
15
14
  var _node$attrs$url;
@@ -46,7 +45,7 @@ var RichTextType = function RichTextType(_ref) {
46
45
  return parseRichText(value);
47
46
  }, [value]);
48
47
  if (adfPlainText) {
49
- return jsx("div", {
48
+ return jsx("span", {
50
49
  css: rootStyles,
51
50
  "data-testid": "richtext-plaintext"
52
51
  }, adfPlainText);
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { fieldTextFontSize } from '../../styled';
4
4
  export var TEXT_TYPE_TEST_ID = 'link-datasource-render-type--text';
5
+
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
5
7
  var TextWrapper = styled.span({
6
8
  fontSize: fieldTextFontSize
7
9
  });
@@ -21,6 +21,8 @@ var avatarWrapperStyles = xcss({
21
21
  var widthObserverWrapperStyles = xcss({
22
22
  position: 'relative'
23
23
  });
24
+
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
24
26
  var AvatarGroupWrapperStyles = styled.div({
25
27
  ul: {
26
28
  paddingLeft: '0px !important'
@@ -5,6 +5,8 @@ import { N40 } from '@atlaskit/theme/colors';
5
5
  import { fontFallback } from '@atlaskit/theme/typography';
6
6
  export var ScrollableContainerHeight = 590;
7
7
  export var fieldTextFontSize = "var(--ds-font-body, ".concat(fontFallback.body.medium, ")");
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
8
10
  export var Table = styled.table({
9
11
  width: '100%'
10
12
  });
@@ -23,14 +25,24 @@ export var withTablePluginPrefix = function withTablePluginPrefix(tableSection)
23
25
  };
24
26
  export var withTablePluginHeaderPrefix = withTablePluginPrefix.bind(null, 'thead');
25
27
  export var withTablePluginBodyPrefix = withTablePluginPrefix.bind(null, 'tbody');
28
+
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
26
30
  export var TableHeading = styled.th((_styled$th = {}, _defineProperty(_styled$th, "".concat(withTablePluginHeaderPrefix()), {
27
31
  border: 0,
28
32
  position: 'relative',
33
+ /* This makes resizing work with out jumping due to padding + changes overall width for same default values. */
29
34
  boxSizing: 'border-box',
30
35
  lineHeight: lineHeight,
31
36
  padding: "".concat(verticalPadding, " ", "var(--ds-space-050, 4px)"),
32
37
  borderRight: "0.5px solid ".concat("var(--ds-border, ".concat(N40, ")")),
33
38
  borderBottom: "2px solid ".concat("var(--ds-border, ".concat(N40, ")")),
39
+ /*
40
+ lineHeight * 2 -> Max height of two lined header
41
+ verticalPadding * 2 -> padding for this component itself
42
+ verticalPadding * 2 -> padding inside span (--container)
43
+ 2px -> Bottom border
44
+ Last two terms are needed because of border-box box sizing.
45
+ */
34
46
  height: "calc(".concat(lineHeight, " * 2 + ").concat(verticalPadding, " * 4 + 2px)"),
35
47
  verticalAlign: 'bottom',
36
48
  backgroundColor: "var(--ds-elevation-surface-current, #FFF)"
@@ -42,6 +54,9 @@ export var TableHeading = styled.th((_styled$th = {}, _defineProperty(_styled$th
42
54
  borderRight: 0
43
55
  }), _defineProperty(_styled$th, "& [data-testid='datasource-header-content--container']", {
44
56
  width: '100%',
57
+ /* With Button now being a parent for this component it adds its lineHeight value and spoils
58
+ `height` calculation above. */
59
+ lineHeight: lineHeight,
45
60
  padding: "".concat(verticalPadding, " ", "var(--ds-space-050, 4px)"),
46
61
  display: '-webkit-box',
47
62
  WebkitLineClamp: 2,
@@ -8,16 +8,23 @@ export var COLUMN_MIN_WIDTH = COLUMN_BASE_WIDTH * 3;
8
8
  * or rather default width that should be treated as a maximum width. When table inserted initially
9
9
  * and no user custom width defined we set this value to `false`. As soon as user changes any of the
10
10
  * column widths we treat all width as custom hardcoded widths.
11
- * @param width
11
+ * @param width Sometimes set to undefined for last column to make it occupy remainder of the table width
12
12
  */
13
13
  export var getWidthCss = function getWidthCss(_ref) {
14
14
  var shouldUseWidth = _ref.shouldUseWidth,
15
15
  width = _ref.width;
16
- return shouldUseWidth ? {
17
- width: width
18
- } : {
19
- maxWidth: width
20
- };
16
+ if (!width) {
17
+ return {};
18
+ }
19
+ if (shouldUseWidth) {
20
+ return {
21
+ width: width
22
+ };
23
+ } else {
24
+ return {
25
+ maxWidth: width
26
+ };
27
+ }
21
28
  };
22
29
 
23
30
  /**
@@ -14,6 +14,7 @@ import { ASSETS_LIST_OF_LINKS_DATASOURCE_ID } from '../assets-modal';
14
14
  import { footerMessages } from './messages';
15
15
  import { PoweredByJSMAssets } from './powered-by-jsm-assets';
16
16
  import { SyncInfo } from './sync-info';
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
17
18
  var FooterWrapper = styled.div({
18
19
  padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-200, 16px)"),
19
20
  boxSizing: 'border-box',
@@ -23,21 +24,29 @@ var FooterWrapper = styled.div({
23
24
  background: "var(--ds-background-input, ".concat(N0, ")"),
24
25
  borderTop: "2px solid ".concat("var(--ds-background-accent-gray-subtler, ".concat(N40, ")"))
25
26
  });
27
+
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
26
29
  var TopBorderWrapper = styled.div({
27
30
  display: 'flex',
28
31
  boxSizing: 'border-box',
29
32
  justifyContent: 'space-between',
30
33
  padding: "var(--ds-space-250, 20px)".concat(" ", "var(--ds-space-0, 0px)")
31
34
  });
35
+
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
32
37
  var ItemCounterWrapper = styled.div({
33
38
  display: 'flex',
34
39
  alignSelf: 'center'
35
40
  });
41
+
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
36
43
  var SyncWrapper = styled.div({
37
44
  display: 'flex',
38
45
  alignItems: 'center',
39
46
  color: "var(--ds-text-accent-gray, ".concat(N90, ")")
40
47
  });
48
+
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
41
50
  var SyncTextWrapper = styled.div({
42
51
  marginRight: "var(--ds-space-075, 6px)",
43
52
  fontSize: '12px'
@@ -6,7 +6,7 @@
6
6
  * @codegen <<SignedSource::819168596ba17484cadda969f8ecf82d>>
7
7
  * @codegenCommand yarn workspace @atlassian/analytics-tooling run analytics:codegen link-datasource
8
8
  */
9
- import { AnalyticsEventAttributes, EventKey } from './analytics.types';
9
+ import { type AnalyticsEventAttributes, type EventKey } from './analytics.types';
10
10
  type OptionalIfUndefined<T> = undefined extends T ? [param?: T] : [param: T];
11
11
  export type EventPayloadAttributes<K extends EventKey> = OptionalIfUndefined<AnalyticsEventAttributes[K]>;
12
12
  type EventTypes = 'ui' | 'track' | 'operational' | 'screen';
@@ -1,2 +1,2 @@
1
- import { DatasourceTableStatusType } from '@atlaskit/linking-types';
1
+ import { type DatasourceTableStatusType } from '@atlaskit/linking-types';
2
2
  export declare const useColumnPickerRenderedFailedUfoExperience: (status: DatasourceTableStatusType, experienceId: string) => void;
@@ -1,4 +1,4 @@
1
- import { DatasourceTableStatusType } from '@atlaskit/linking-types';
1
+ import { type DatasourceTableStatusType } from '@atlaskit/linking-types';
2
2
  interface DataRenderedUfoExperienceProps {
3
3
  status: DatasourceTableStatusType;
4
4
  experienceId: string;
@@ -1,5 +1,5 @@
1
1
  import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { IssueLikeDataTableViewProps } from '../ui/issue-like-table/types';
2
+ import { type IssueLikeDataTableViewProps } from '../ui/issue-like-table/types';
3
3
  export type JiraSearchMethod = 'basic' | 'jql';
4
4
  export interface Site {
5
5
  cloudId: string;
@@ -1,2 +1,2 @@
1
- import { Datasource, DatasourceAdf } from '@atlaskit/linking-common/types';
1
+ import { type Datasource, type DatasourceAdf } from '@atlaskit/linking-common/types';
2
2
  export declare const buildDatasourceAdf: <P extends Record<string, unknown>>(datasource: Datasource<P>, url?: string) => DatasourceAdf<P>;
@@ -1,2 +1,2 @@
1
- import { I18NMessages } from '@atlaskit/intl-messages-provider';
1
+ import { type I18NMessages } from '@atlaskit/intl-messages-provider';
2
2
  export declare const fetchMessagesForLocale: (locale: string) => Promise<I18NMessages | undefined>;
@@ -1,5 +1,5 @@
1
- import { ObjectSchema } from '../types/assets/types';
2
- import { AssetsDatasourceParameters } from '../ui/assets-modal/types';
1
+ import { type ObjectSchema } from '../types/assets/types';
2
+ import { type AssetsDatasourceParameters } from '../ui/assets-modal/types';
3
3
  export type UseAssetsClientState = {
4
4
  workspaceId: string | undefined;
5
5
  workspaceError: Error | undefined;
@@ -1,4 +1,4 @@
1
- import { ObjectSchema } from '../types/assets/types';
1
+ import { type ObjectSchema } from '../types/assets/types';
2
2
  export type FetchObjectSchemasDetails = Pick<UseObjectSchemasState, 'objectSchemas' | 'totalObjectSchemas'>;
3
3
  export type UseObjectSchemasState = {
4
4
  objectSchemasLoading: boolean;
@@ -1,6 +1,6 @@
1
- import { EventKey } from '../analytics/generated/analytics.types';
2
- import createEventPayload from '../analytics/generated/create-event-payload';
3
- import { AqlValidateResponse, FetchObjectSchemasResponse } from '../types/assets/types';
1
+ import { type EventKey } from '../analytics/generated/analytics.types';
2
+ import type createEventPayload from '../analytics/generated/create-event-payload';
3
+ import { type AqlValidateResponse, type FetchObjectSchemasResponse } from '../types/assets/types';
4
4
  type AnalyticsFireEvent = <K extends EventKey>(...params: Parameters<typeof createEventPayload<K>>) => void;
5
5
  export declare const getWorkspaceId: (fireEvent?: AnalyticsFireEvent) => Promise<string>;
6
6
  export declare const validateAql: (workspaceId: string, data: {
@@ -1,4 +1,4 @@
1
- import { GetAutocompleteInitialData } from '@atlaskit/jql-editor-autocomplete-rest';
1
+ import { type GetAutocompleteInitialData } from '@atlaskit/jql-editor-autocomplete-rest';
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 { GetAutocompleteSuggestions } from '@atlaskit/jql-editor-autocomplete-rest';
1
+ import { type GetAutocompleteSuggestions } from '@atlaskit/jql-editor-autocomplete-rest';
2
2
  export type AutocompleteSuggestionsResponse = {
3
3
  results: Awaited<ReturnType<GetAutocompleteSuggestions>>['results'];
4
4
  };
@@ -1,5 +1,5 @@
1
- import { SelectOption } from '../ui/common/modal/popup-select/types';
2
- import { FieldValuesResponse, HydrateResponse } from '../ui/jira-issues-modal/basic-filters/types';
1
+ import { type SelectOption } from '../ui/common/modal/popup-select/types';
2
+ import { type FieldValuesResponse, type HydrateResponse } from '../ui/jira-issues-modal/basic-filters/types';
3
3
  export declare const mockHydrateJqlResponse: HydrateResponse;
4
4
  export declare const mockFieldValuesResponse: FieldValuesResponse;
5
5
  export declare const mockUserRecommendationsResponse: {