@atlaskit/link-datasource 4.33.12 → 4.34.1
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 +20 -0
- package/dist/cjs/common/ui/common/render-svg.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/index.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/index.js +1 -1
- package/dist/cjs/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/loading-state.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/cjs/ui/assets-modal/search-container/styled.js +1 -1
- package/dist/cjs/ui/common/error-state/access-required.js +1 -1
- package/dist/cjs/ui/common/error-state/loading-error.js +1 -1
- package/dist/cjs/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/cjs/ui/common/error-state/no-instances.js +1 -1
- package/dist/cjs/ui/common/error-state/no-results.js +1 -1
- package/dist/cjs/ui/common/error-state/provider-auth-required-svg.js +1 -1
- package/dist/cjs/ui/common/error-state/provider-auth-required.js +1 -1
- package/dist/cjs/ui/common/initial-state-view/index.js +1 -1
- package/dist/cjs/ui/common/modal/basic-search-input/index.js +1 -1
- package/dist/cjs/ui/common/modal/content-container/index.js +1 -1
- package/dist/cjs/ui/common/modal/count-view-smart-link/index.js +1 -1
- package/dist/cjs/ui/common/modal/display-view-dropdown/display-view-drop-down.js +1 -1
- package/dist/cjs/ui/common/modal/mode-switcher/index.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/control.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/index.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/cjs/ui/common/modal/popup-select/trigger.js +1 -1
- package/dist/cjs/ui/common/modal/search-count/index.js +1 -1
- package/dist/cjs/ui/common/modal/site-selector/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/basic-filters/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/confluence-search-container/index.js +1 -1
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +1 -1
- package/dist/cjs/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/cjs/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/cjs/ui/issue-like-table/column-picker/index.compiled.css +0 -2
- package/dist/cjs/ui/issue-like-table/column-picker/index.js +3 -21
- package/dist/cjs/ui/issue-like-table/drag-column-preview.js +1 -1
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.compiled.css +0 -2
- package/dist/cjs/ui/issue-like-table/draggable-table-heading.js +33 -59
- package/dist/cjs/ui/issue-like-table/empty-state/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/empty-state/type.js +1 -1
- package/dist/cjs/ui/issue-like-table/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/index.js +5 -11
- package/dist/cjs/ui/issue-like-table/render-type/richtext/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/shared-components/avatar/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/shared-components/icon/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/table-cell-content/index.js +1 -1
- package/dist/cjs/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/cjs/ui/issue-like-table/truncate-text-tag/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/jira-search-container/index.js +1 -1
- package/dist/cjs/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/cjs/ui/table-footer/index.js +1 -1
- package/dist/cjs/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/cjs/ui/table-footer/provider-link/index.js +1 -1
- package/dist/es2019/common/ui/common/render-svg.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/index.js +1 -1
- package/dist/es2019/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/loading-state.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/es2019/ui/assets-modal/search-container/styled.js +1 -1
- package/dist/es2019/ui/common/error-state/access-required.js +1 -1
- package/dist/es2019/ui/common/error-state/loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/es2019/ui/common/error-state/no-instances.js +1 -1
- package/dist/es2019/ui/common/error-state/no-results.js +1 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required-svg.js +1 -1
- package/dist/es2019/ui/common/error-state/provider-auth-required.js +1 -1
- package/dist/es2019/ui/common/initial-state-view/index.js +1 -1
- package/dist/es2019/ui/common/modal/basic-search-input/index.js +1 -1
- package/dist/es2019/ui/common/modal/content-container/index.js +1 -1
- package/dist/es2019/ui/common/modal/count-view-smart-link/index.js +1 -1
- package/dist/es2019/ui/common/modal/display-view-dropdown/display-view-drop-down.js +1 -1
- package/dist/es2019/ui/common/modal/mode-switcher/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/control.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/index.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/es2019/ui/common/modal/popup-select/trigger.js +1 -1
- package/dist/es2019/ui/common/modal/search-count/index.js +1 -1
- package/dist/es2019/ui/common/modal/site-selector/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/confluence-search-container/index.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +1 -1
- package/dist/es2019/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/es2019/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/es2019/ui/issue-like-table/column-picker/index.compiled.css +0 -2
- package/dist/es2019/ui/issue-like-table/column-picker/index.js +3 -19
- package/dist/es2019/ui/issue-like-table/drag-column-preview.js +1 -1
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.compiled.css +0 -2
- package/dist/es2019/ui/issue-like-table/draggable-table-heading.js +2 -27
- package/dist/es2019/ui/issue-like-table/empty-state/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/empty-state/type.js +1 -1
- package/dist/es2019/ui/issue-like-table/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/index.js +4 -10
- package/dist/es2019/ui/issue-like-table/render-type/richtext/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/shared-components/avatar/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/shared-components/icon/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-cell-content/index.js +1 -1
- package/dist/es2019/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/es2019/ui/issue-like-table/truncate-text-tag/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/jira-search-container/index.js +1 -1
- package/dist/es2019/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/es2019/ui/table-footer/index.js +1 -1
- package/dist/es2019/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/es2019/ui/table-footer/provider-link/index.js +1 -1
- package/dist/esm/common/ui/common/render-svg.js +1 -1
- package/dist/esm/ui/assets-modal/modal/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/index.js +1 -1
- package/dist/esm/ui/assets-modal/modal/render-assets-content/initial-state-view/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/aql-search-input/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/loading-state.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/object-schema-select/index.js +1 -1
- package/dist/esm/ui/assets-modal/search-container/styled.js +1 -1
- package/dist/esm/ui/common/error-state/access-required.js +1 -1
- package/dist/esm/ui/common/error-state/loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/modal-loading-error.js +1 -1
- package/dist/esm/ui/common/error-state/no-instances.js +1 -1
- package/dist/esm/ui/common/error-state/no-results.js +1 -1
- package/dist/esm/ui/common/error-state/provider-auth-required-svg.js +1 -1
- package/dist/esm/ui/common/error-state/provider-auth-required.js +1 -1
- package/dist/esm/ui/common/initial-state-view/index.js +1 -1
- package/dist/esm/ui/common/modal/basic-search-input/index.js +1 -1
- package/dist/esm/ui/common/modal/content-container/index.js +1 -1
- package/dist/esm/ui/common/modal/count-view-smart-link/index.js +1 -1
- package/dist/esm/ui/common/modal/display-view-dropdown/display-view-drop-down.js +1 -1
- package/dist/esm/ui/common/modal/mode-switcher/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/control.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/custom-checkbox-option.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/dropdownIndicator.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/footer.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/formatOptionLabel.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/index.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/menu-list/selectMessage.js +1 -1
- package/dist/esm/ui/common/modal/popup-select/trigger.js +1 -1
- package/dist/esm/ui/common/modal/search-count/index.js +1 -1
- package/dist/esm/ui/common/modal/site-selector/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/PopupComponent.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/styled.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/confluence-search-container/index.js +1 -1
- package/dist/esm/ui/confluence-search-modal/modal/index.js +1 -1
- package/dist/esm/ui/datasource-table-view/datasourceTableView.js +1 -1
- package/dist/esm/ui/issue-like-table/column-picker/concatenated-menu-list.js +1 -1
- package/dist/esm/ui/issue-like-table/column-picker/index.compiled.css +0 -2
- package/dist/esm/ui/issue-like-table/column-picker/index.js +3 -21
- package/dist/esm/ui/issue-like-table/drag-column-preview.js +1 -1
- package/dist/esm/ui/issue-like-table/draggable-table-heading.compiled.css +0 -2
- package/dist/esm/ui/issue-like-table/draggable-table-heading.js +33 -59
- package/dist/esm/ui/issue-like-table/empty-state/index.js +1 -1
- package/dist/esm/ui/issue-like-table/empty-state/type.js +1 -1
- package/dist/esm/ui/issue-like-table/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/index.js +5 -11
- package/dist/esm/ui/issue-like-table/render-type/richtext/index.js +1 -1
- package/dist/esm/ui/issue-like-table/render-type/user/index.js +1 -1
- package/dist/esm/ui/issue-like-table/shared-components/avatar/index.js +1 -1
- package/dist/esm/ui/issue-like-table/shared-components/icon/index.js +1 -1
- package/dist/esm/ui/issue-like-table/table-cell-content/index.js +1 -1
- package/dist/esm/ui/issue-like-table/table-cell-content/inline-edit.js +1 -1
- package/dist/esm/ui/issue-like-table/truncate-text-tag/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/basic-filters/ui/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/jira-search-container/index.js +1 -1
- package/dist/esm/ui/jira-issues-modal/modal/index.js +1 -1
- package/dist/esm/ui/table-footer/index.js +1 -1
- package/dist/esm/ui/table-footer/powered-by-jsm-assets/index.js +1 -1
- package/dist/esm/ui/table-footer/provider-link/index.js +1 -1
- package/package.json +12 -18
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/* draggable-table-heading.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* draggable-table-heading.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import _extends from "@babel/runtime/helpers/extends";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
6
6
|
var _excluded = ["as", "style"],
|
|
7
7
|
_excluded2 = ["as", "style"],
|
|
8
|
-
_excluded3 = ["
|
|
9
|
-
_excluded4 = ["triggerRef"];
|
|
8
|
+
_excluded3 = ["triggerRef"];
|
|
10
9
|
import "./draggable-table-heading.compiled.css";
|
|
11
10
|
import { forwardRef } from 'react';
|
|
12
11
|
import * as React from 'react';
|
|
@@ -23,7 +22,6 @@ import Button from '@atlaskit/button/new';
|
|
|
23
22
|
import DropdownMenu, { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
24
23
|
import ChevronDown from '@atlaskit/icon/core/chevron-down';
|
|
25
24
|
import ChevronUp from '@atlaskit/icon/core/chevron-up';
|
|
26
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
25
|
import { attachClosestEdge, extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
28
26
|
import { DropIndicator } from '@atlaskit/pragmatic-drag-and-drop-react-drop-indicator/box';
|
|
29
27
|
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
@@ -54,27 +52,11 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
54
52
|
TableHeading.displayName = 'TableHeading';
|
|
55
53
|
}
|
|
56
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
57
|
-
var
|
|
55
|
+
var DropdownParent = forwardRef(function (_ref2, __cmplr) {
|
|
58
56
|
var _ref2$as = _ref2.as,
|
|
59
57
|
C = _ref2$as === void 0 ? "div" : _ref2$as,
|
|
60
58
|
__cmpls = _ref2.style,
|
|
61
59
|
__cmplp = _objectWithoutProperties(_ref2, _excluded2);
|
|
62
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
63
|
-
style: __cmpls,
|
|
64
|
-
ref: __cmplr,
|
|
65
|
-
className: ax(["_1e0c1txw _4cvr1h6o _o5721q9c _1wtnze3t _ficf1e5h _jq8g1wug _11lvze3t _yhjmze3t", __cmplp.className])
|
|
66
|
-
}));
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- To migrate as part of go/ui-styling-standard
|
|
70
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
71
|
-
DropdownParentOld.displayName = 'DropdownParentOld';
|
|
72
|
-
}
|
|
73
|
-
var DropdownParent = forwardRef(function (_ref3, __cmplr) {
|
|
74
|
-
var _ref3$as = _ref3.as,
|
|
75
|
-
C = _ref3$as === void 0 ? "div" : _ref3$as,
|
|
76
|
-
__cmpls = _ref3.style,
|
|
77
|
-
__cmplp = _objectWithoutProperties(_ref3, _excluded3);
|
|
78
60
|
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
79
61
|
style: __cmpls,
|
|
80
62
|
ref: __cmplr,
|
|
@@ -94,17 +76,17 @@ var idleState = {
|
|
|
94
76
|
var draggingState = {
|
|
95
77
|
type: 'dragging'
|
|
96
78
|
};
|
|
97
|
-
export var DraggableTableHeading = function DraggableTableHeading(
|
|
98
|
-
var children =
|
|
99
|
-
id =
|
|
100
|
-
index =
|
|
101
|
-
tableId =
|
|
102
|
-
dndPreviewHeight =
|
|
103
|
-
dragPreview =
|
|
104
|
-
width =
|
|
105
|
-
onWidthChange =
|
|
106
|
-
isWrapped =
|
|
107
|
-
onIsWrappedChange =
|
|
79
|
+
export var DraggableTableHeading = function DraggableTableHeading(_ref3) {
|
|
80
|
+
var children = _ref3.children,
|
|
81
|
+
id = _ref3.id,
|
|
82
|
+
index = _ref3.index,
|
|
83
|
+
tableId = _ref3.tableId,
|
|
84
|
+
dndPreviewHeight = _ref3.dndPreviewHeight,
|
|
85
|
+
dragPreview = _ref3.dragPreview,
|
|
86
|
+
width = _ref3.width,
|
|
87
|
+
onWidthChange = _ref3.onWidthChange,
|
|
88
|
+
isWrapped = _ref3.isWrapped,
|
|
89
|
+
onIsWrappedChange = _ref3.onIsWrappedChange;
|
|
108
90
|
var _useDatasourceAnalyti = useDatasourceAnalyticsEvents(),
|
|
109
91
|
fireEvent = _useDatasourceAnalyti.fireEvent;
|
|
110
92
|
var mainHeaderCellRef = useRef(null);
|
|
@@ -140,15 +122,15 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
140
122
|
tableId: tableId
|
|
141
123
|
};
|
|
142
124
|
},
|
|
143
|
-
onGenerateDragPreview: function onGenerateDragPreview(
|
|
144
|
-
var nativeSetDragImage =
|
|
125
|
+
onGenerateDragPreview: function onGenerateDragPreview(_ref4) {
|
|
126
|
+
var nativeSetDragImage = _ref4.nativeSetDragImage;
|
|
145
127
|
setCustomNativeDragPreview({
|
|
146
128
|
getOffset: pointerOutsideOfPreview({
|
|
147
129
|
x: '18px',
|
|
148
130
|
y: '18px'
|
|
149
131
|
}),
|
|
150
|
-
render: function render(
|
|
151
|
-
var container =
|
|
132
|
+
render: function render(_ref5) {
|
|
133
|
+
var container = _ref5.container;
|
|
152
134
|
// Cause a `react` re-render to create your portal synchronously
|
|
153
135
|
setState({
|
|
154
136
|
type: 'preview',
|
|
@@ -183,9 +165,9 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
183
165
|
getIsSticky: function getIsSticky() {
|
|
184
166
|
return true;
|
|
185
167
|
},
|
|
186
|
-
getData: function getData(
|
|
187
|
-
var input =
|
|
188
|
-
element =
|
|
168
|
+
getData: function getData(_ref6) {
|
|
169
|
+
var input = _ref6.input,
|
|
170
|
+
element = _ref6.element;
|
|
189
171
|
var data = {
|
|
190
172
|
id: id,
|
|
191
173
|
index: index
|
|
@@ -216,8 +198,8 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
216
198
|
// During dragging anywhere we want to remove `pointerEvents: 'none'` from all the drop targets
|
|
217
199
|
useEffect(function () {
|
|
218
200
|
return monitorForElements({
|
|
219
|
-
canMonitor: function canMonitor(
|
|
220
|
-
var source =
|
|
201
|
+
canMonitor: function canMonitor(_ref7) {
|
|
202
|
+
var source = _ref7.source;
|
|
221
203
|
return source.data.type === 'table-header' && source.data.tableId === tableId;
|
|
222
204
|
},
|
|
223
205
|
onDragStart: function onDragStart() {
|
|
@@ -253,8 +235,8 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
253
235
|
};
|
|
254
236
|
},
|
|
255
237
|
// Is called when dragging started
|
|
256
|
-
onGenerateDragPreview: function onGenerateDragPreview(
|
|
257
|
-
var nativeSetDragImage =
|
|
238
|
+
onGenerateDragPreview: function onGenerateDragPreview(_ref8) {
|
|
239
|
+
var nativeSetDragImage = _ref8.nativeSetDragImage;
|
|
258
240
|
// We don't show any preview, since column separator (handle) is moving with the cursor
|
|
259
241
|
disableNativeDragPreview({
|
|
260
242
|
nativeSetDragImage: nativeSetDragImage
|
|
@@ -266,8 +248,8 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
266
248
|
initialWidth: width
|
|
267
249
|
});
|
|
268
250
|
},
|
|
269
|
-
onDrag: function onDrag(
|
|
270
|
-
var location =
|
|
251
|
+
onDrag: function onDrag(_ref9) {
|
|
252
|
+
var location = _ref9.location;
|
|
271
253
|
var relativeDistanceX = location.current.input.clientX - location.initial.input.clientX;
|
|
272
254
|
invariant(state.type === 'resizing');
|
|
273
255
|
var initialWidth = state.initialWidth;
|
|
@@ -306,9 +288,9 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
306
288
|
var TriggerIcon = useMemo(function () {
|
|
307
289
|
return shouldShowTriggerIcon ? isDropdownOpen ? ChevronUp : ChevronDown : isWideEnoughToHaveChevron ? GlyphPlaceholder : undefined;
|
|
308
290
|
}, [shouldShowTriggerIcon, isDropdownOpen, isWideEnoughToHaveChevron]);
|
|
309
|
-
var getTriggerButton = useCallback(function (
|
|
310
|
-
var triggerRef =
|
|
311
|
-
props = _objectWithoutProperties(
|
|
291
|
+
var getTriggerButton = useCallback(function (_ref0) {
|
|
292
|
+
var triggerRef = _ref0.triggerRef,
|
|
293
|
+
props = _objectWithoutProperties(_ref0, _excluded3);
|
|
312
294
|
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
313
295
|
testId: "".concat(id, "-column-dropdown"),
|
|
314
296
|
shouldFitContainer: true,
|
|
@@ -328,8 +310,8 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
328
310
|
}
|
|
329
311
|
}), children);
|
|
330
312
|
}, [children, id, TriggerIcon]);
|
|
331
|
-
var onDropdownOpenChange = useCallback(function (
|
|
332
|
-
var isOpen =
|
|
313
|
+
var onDropdownOpenChange = useCallback(function (_ref1) {
|
|
314
|
+
var isOpen = _ref1.isOpen;
|
|
333
315
|
return setIsDropdownOpen(isOpen);
|
|
334
316
|
}, []);
|
|
335
317
|
var toggleWrap = useCallback(function () {
|
|
@@ -361,15 +343,7 @@ export var DraggableTableHeading = function DraggableTableHeading(_ref4) {
|
|
|
361
343
|
},
|
|
362
344
|
"data-testid": "column-resize-handle",
|
|
363
345
|
className: ax(["_1y7c1ejb _1bsbaakz _80om11mm _16jlidpf _kqswstnw _1pbykb7n _1xi2aesa _154iidpf _1tesidpf _pdyk1hrg _154pidpf _dydkssc3 _1kt9b3bt _1cs8stnw _1rusopvu _1mp4atg7 _qneczvxw _1ct3kb7n", state.type === 'resizing' && "_80omn7od _154pkb7n"])
|
|
364
|
-
}) : null, onIsWrappedChange
|
|
365
|
-
trigger: getTriggerButton,
|
|
366
|
-
onOpenChange: onDropdownOpenChange,
|
|
367
|
-
placement: 'bottom'
|
|
368
|
-
}, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
369
|
-
elemBefore: isWrapped ? /*#__PURE__*/React.createElement(UnwrapTextIcon, null) : /*#__PURE__*/React.createElement(WrapTextIcon, null),
|
|
370
|
-
testId: "".concat(id, "-column-dropdown-item-toggle-wrapping"),
|
|
371
|
-
onClick: toggleWrap
|
|
372
|
-
}, isWrapped ? /*#__PURE__*/React.createElement(FormattedMessage, issueLikeTableMessages.unwrapText) : /*#__PURE__*/React.createElement(FormattedMessage, issueLikeTableMessages.wrapText)))) : onIsWrappedChange ? /*#__PURE__*/React.createElement(DropdownParentOld, null, /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
346
|
+
}) : null, onIsWrappedChange ? /*#__PURE__*/React.createElement(DropdownParent, null, /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
373
347
|
trigger: getTriggerButton,
|
|
374
348
|
onOpenChange: onDropdownOpenChange,
|
|
375
349
|
placement: 'bottom'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["as", "style"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* type.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* type.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["as", "style"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -26,10 +26,7 @@ export var stringifyType = function stringifyType(_ref, formatMessage, formatDat
|
|
|
26
26
|
return getFormattedDate(value, 'datetime', formatDate);
|
|
27
27
|
case 'daterange':
|
|
28
28
|
{
|
|
29
|
-
|
|
30
|
-
return getFormattedDateRange(value.start, value.end, formatDate, formatMessage);
|
|
31
|
-
}
|
|
32
|
-
return '';
|
|
29
|
+
return getFormattedDateRange(value.start, value.end, formatDate, formatMessage);
|
|
33
30
|
}
|
|
34
31
|
case 'time':
|
|
35
32
|
return getFormattedDate(value, 'time', formatDate);
|
|
@@ -79,14 +76,11 @@ export var renderType = function renderType(item) {
|
|
|
79
76
|
});
|
|
80
77
|
case 'daterange':
|
|
81
78
|
{
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
value: dateRangeValue
|
|
86
|
-
});
|
|
79
|
+
return item.values.map(function (dateRangeValue) {
|
|
80
|
+
return /*#__PURE__*/React.createElement(DateRangeRenderType, {
|
|
81
|
+
value: dateRangeValue
|
|
87
82
|
});
|
|
88
|
-
}
|
|
89
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
83
|
+
});
|
|
90
84
|
}
|
|
91
85
|
case 'icon':
|
|
92
86
|
return item.values.map(function (iconValue) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./index.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* inline-edit.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* inline-edit.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* index.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./index.compiled.css";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.34.1",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.{svg,png}"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/adf-schema": "^52.
|
|
39
|
+
"@atlaskit/adf-schema": "^52.3.0",
|
|
40
40
|
"@atlaskit/afm-i18n-platform-linking-platform-link-datasource": "2.7.0",
|
|
41
41
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^0.6.0",
|
|
43
|
-
"@atlaskit/avatar": "^25.
|
|
43
|
+
"@atlaskit/avatar": "^25.9.0",
|
|
44
44
|
"@atlaskit/avatar-group": "^12.4.0",
|
|
45
45
|
"@atlaskit/badge": "^18.4.0",
|
|
46
46
|
"@atlaskit/button": "^23.10.0",
|
|
47
47
|
"@atlaskit/css": "^0.19.0",
|
|
48
48
|
"@atlaskit/datetime-picker": "^17.5.0",
|
|
49
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
49
|
+
"@atlaskit/dropdown-menu": "^16.7.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
51
51
|
"@atlaskit/empty-state": "^10.1.0",
|
|
52
52
|
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
53
53
|
"@atlaskit/flag": "^17.8.0",
|
|
54
54
|
"@atlaskit/form": "^15.4.0",
|
|
55
55
|
"@atlaskit/heading": "^5.3.0",
|
|
56
|
-
"@atlaskit/icon": "^32.
|
|
57
|
-
"@atlaskit/icon-object": "^7.
|
|
56
|
+
"@atlaskit/icon": "^32.1.0",
|
|
57
|
+
"@atlaskit/icon-object": "^7.5.0",
|
|
58
58
|
"@atlaskit/image": "^3.0.0",
|
|
59
59
|
"@atlaskit/inline-edit": "^15.6.0",
|
|
60
60
|
"@atlaskit/intl-messages-provider": "^2.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/linking-common": "^9.10.0",
|
|
69
69
|
"@atlaskit/linking-types": "^14.2.0",
|
|
70
70
|
"@atlaskit/logo": "^19.10.0",
|
|
71
|
-
"@atlaskit/lozenge": "^13.
|
|
71
|
+
"@atlaskit/lozenge": "^13.5.0",
|
|
72
72
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
73
73
|
"@atlaskit/outbound-auth-flow-client": "^3.4.0",
|
|
74
74
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-autoscroll": "^2.0.0",
|
|
79
79
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
80
80
|
"@atlaskit/primitives": "^18.0.0",
|
|
81
|
-
"@atlaskit/react-select": "^3.
|
|
82
|
-
"@atlaskit/select": "^21.
|
|
83
|
-
"@atlaskit/smart-card": "^43.
|
|
81
|
+
"@atlaskit/react-select": "^3.14.0",
|
|
82
|
+
"@atlaskit/select": "^21.8.0",
|
|
83
|
+
"@atlaskit/smart-card": "^43.26.0",
|
|
84
84
|
"@atlaskit/smart-user-picker": "^9.2.0",
|
|
85
85
|
"@atlaskit/spinner": "^19.0.0",
|
|
86
86
|
"@atlaskit/tag": "^14.5.0",
|
|
87
87
|
"@atlaskit/textfield": "^8.2.0",
|
|
88
88
|
"@atlaskit/theme": "^22.0.0",
|
|
89
|
-
"@atlaskit/tokens": "^11.
|
|
89
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
90
90
|
"@atlaskit/tooltip": "^20.14.0",
|
|
91
91
|
"@atlaskit/ufo": "^0.4.0",
|
|
92
92
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@af/integration-testing": "workspace:^",
|
|
112
112
|
"@af/visual-regression": "workspace:^",
|
|
113
113
|
"@atlaskit/json-ld-types": "^1.4.0",
|
|
114
|
-
"@atlaskit/link-test-helpers": "^9.
|
|
114
|
+
"@atlaskit/link-test-helpers": "^9.1.0",
|
|
115
115
|
"@atlaskit/ssr": "workspace:^",
|
|
116
116
|
"@atlassian/a11y-jest-testing": "^0.10.0",
|
|
117
117
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
@@ -179,17 +179,11 @@
|
|
|
179
179
|
"platform_navx_jira_sllv_rich_text_gate": {
|
|
180
180
|
"type": "boolean"
|
|
181
181
|
},
|
|
182
|
-
"jpd_confluence_date_fields_improvements": {
|
|
183
|
-
"type": "boolean"
|
|
184
|
-
},
|
|
185
182
|
"platform_navx_sllv_dropdown_escape_and_focus_fix": {
|
|
186
183
|
"type": "boolean"
|
|
187
184
|
},
|
|
188
185
|
"platform_navx_sllv_j2ws_dropdown_for_single_row": {
|
|
189
186
|
"type": "boolean"
|
|
190
|
-
},
|
|
191
|
-
"platform-button-icon-spacing-cleanup": {
|
|
192
|
-
"type": "boolean"
|
|
193
187
|
}
|
|
194
188
|
},
|
|
195
189
|
"compassUnitTestMetricSourceId": "ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:metric-source/c5751cc6-3513-4070-9deb-af31e86aed34/9c893299-a527-4457-9b46-f3bc4c828766"
|