@atlaskit/link-datasource 4.29.0 → 4.29.2
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 +14 -0
- package/compass.yml +3 -0
- package/dist/cjs/contexts/datasource-experience-id/index.js +3 -0
- package/dist/cjs/hooks/useDatasourceTableFlag.js +2 -1
- package/dist/cjs/state/index.js +2 -1
- package/dist/cjs/ui/common/modal/site-selector/index.js +1 -2
- package/dist/cjs/ui/confluence-search-modal/modal/index.js +1 -2
- package/dist/cjs/ui/issue-like-table/index.compiled.css +1 -0
- package/dist/cjs/ui/issue-like-table/index.js +2 -1
- package/dist/es2019/contexts/datasource-experience-id/index.js +3 -0
- package/dist/es2019/hooks/useDatasourceTableFlag.js +2 -0
- package/dist/es2019/state/index.js +2 -0
- package/dist/es2019/ui/common/modal/site-selector/index.js +1 -2
- package/dist/es2019/ui/confluence-search-modal/modal/index.js +1 -2
- package/dist/es2019/ui/issue-like-table/index.compiled.css +1 -0
- package/dist/es2019/ui/issue-like-table/index.js +2 -1
- package/dist/esm/contexts/datasource-experience-id/index.js +3 -0
- package/dist/esm/hooks/useDatasourceTableFlag.js +2 -0
- package/dist/esm/state/index.js +2 -0
- package/dist/esm/ui/common/modal/site-selector/index.js +1 -2
- package/dist/esm/ui/confluence-search-modal/modal/index.js +1 -2
- package/dist/esm/ui/issue-like-table/index.compiled.css +1 -0
- package/dist/esm/ui/issue-like-table/index.js +2 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 4.29.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e4abc23d0af19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e4abc23d0af19) -
|
|
8
|
+
Clean up add-disablesiteselector feature gate
|
|
9
|
+
|
|
10
|
+
## 4.29.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`d287c1d495c52`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d287c1d495c52) -
|
|
15
|
+
Minor fix for rich text and wrapped option
|
|
16
|
+
|
|
3
17
|
## 4.29.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/compass.yml
CHANGED
|
@@ -13,6 +13,9 @@ fields:
|
|
|
13
13
|
tier: 4
|
|
14
14
|
lifecycle: Active
|
|
15
15
|
links:
|
|
16
|
+
- name: Root Repository
|
|
17
|
+
type: REPOSITORY
|
|
18
|
+
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
16
19
|
- name: SignalFx - Link Datasource
|
|
17
20
|
type: DASHBOARD
|
|
18
21
|
url: 'https://atlassian.signalfx.com/#/dashboard/Gm8VEROA0AQ?groupId=Fcva05QA4AA&configId=Gm8VFYeAwAI&startTime=-31d&endTime=Now'
|
|
@@ -8,9 +8,12 @@ exports.useDatasourceExperienceId = exports.DatasourceExperienceIdProvider = voi
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _uuid = require("uuid");
|
|
10
10
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
11
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
12
|
+
|
|
11
13
|
var DatasourceExperienceIdContext = /*#__PURE__*/_react.default.createContext(undefined);
|
|
12
14
|
var DatasourceExperienceIdProvider = exports.DatasourceExperienceIdProvider = function DatasourceExperienceIdProvider(_ref) {
|
|
13
15
|
var children = _ref.children;
|
|
16
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
14
17
|
var value = (0, _react.useMemo)(function () {
|
|
15
18
|
return (0, _uuid.v4)();
|
|
16
19
|
}, []);
|
|
@@ -16,7 +16,7 @@ var _analytics = require("../analytics");
|
|
|
16
16
|
var _messages = require("../ui/issue-like-table/messages");
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
18
18
|
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; }
|
|
19
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
19
|
+
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) { (0, _defineProperty2.default)(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; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
20
20
|
var getErrorReason = function getErrorReason(status) {
|
|
21
21
|
switch (status) {
|
|
22
22
|
case 403:
|
|
@@ -60,6 +60,7 @@ var useDatasourceTableFlag = exports.useDatasourceTableFlag = function useDataso
|
|
|
60
60
|
label: "Error",
|
|
61
61
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
62
62
|
}),
|
|
63
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
63
64
|
id: (0, _uuid.default)(),
|
|
64
65
|
isAutoDismiss: true
|
|
65
66
|
}, options !== null && options !== void 0 && options.isFetchAction ? getFetchActionErrorMessage(args === null || args === void 0 ? void 0 : args.status) : getExecuteActionErrorMessage(args === null || args === void 0 ? void 0 : args.status)), args));
|
package/dist/cjs/state/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactSweetState = require("react-sweet-state");
|
|
13
13
|
var _uuid = require("uuid");
|
|
14
14
|
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; }
|
|
15
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
15
|
+
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) { (0, _defineProperty2.default)(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; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
16
16
|
var getInitialState = function getInitialState() {
|
|
17
17
|
return {
|
|
18
18
|
items: {}
|
|
@@ -48,6 +48,7 @@ var actions = exports.actions = {
|
|
|
48
48
|
ids = _ref4[0],
|
|
49
49
|
itemMap = _ref4[1];
|
|
50
50
|
var ari = typeof ((_item$ari = item['ari']) === null || _item$ari === void 0 ? void 0 : _item$ari.data) === 'string' ? item['ari'].data : undefined;
|
|
51
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
51
52
|
var id = ari !== null && ari !== void 0 ? ari : (0, _uuid.v4)();
|
|
52
53
|
return [[].concat((0, _toConsumableArray2.default)(ids), [id]), _objectSpread(_objectSpread({}, itemMap), {}, (0, _defineProperty2.default)({}, id, {
|
|
53
54
|
ari: ari,
|
|
@@ -35,7 +35,6 @@ var SiteSelector = exports.SiteSelector = function SiteSelector(props) {
|
|
|
35
35
|
testId = props.testId;
|
|
36
36
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
37
37
|
formatMessage = _useIntl.formatMessage;
|
|
38
|
-
var isSiteSelectorEnabled = !(0, _platformFeatureFlags.fg)('add-disablesiteselector') || !disableSiteSelector;
|
|
39
38
|
var onChange = function onChange(newValue) {
|
|
40
39
|
var selectedSite = availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(function (site) {
|
|
41
40
|
return site.cloudId === (newValue === null || newValue === void 0 ? void 0 : newValue.value);
|
|
@@ -61,7 +60,7 @@ var SiteSelector = exports.SiteSelector = function SiteSelector(props) {
|
|
|
61
60
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
62
61
|
size: "medium",
|
|
63
62
|
as: "h1"
|
|
64
|
-
}, formatMessage(label)),
|
|
63
|
+
}, formatMessage(label)), !disableSiteSelector && availableSites && availableSites.length > 1 && /*#__PURE__*/React.createElement("span", {
|
|
65
64
|
"data-testid": "".concat(testId, "--trigger")
|
|
66
65
|
}, /*#__PURE__*/React.createElement(_select.PopupSelect, {
|
|
67
66
|
searchThreshold: 10,
|
|
@@ -17,7 +17,6 @@ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gat
|
|
|
17
17
|
var _intlMessagesProvider = require("@atlaskit/intl-messages-provider");
|
|
18
18
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
19
19
|
var _modalDialog = require("@atlaskit/modal-dialog");
|
|
20
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
20
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
22
21
|
var _analytics = require("../../../analytics");
|
|
23
22
|
var _types = require("../../../analytics/types");
|
|
@@ -155,7 +154,7 @@ var PlainConfluenceSearchConfigModal = exports.PlainConfluenceSearchConfigModal
|
|
|
155
154
|
});
|
|
156
155
|
}, [reset, setParameters, userInteractions]);
|
|
157
156
|
var siteSelectorLabel;
|
|
158
|
-
if (disableSiteSelector
|
|
157
|
+
if (disableSiteSelector) {
|
|
159
158
|
siteSelectorLabel = _messages.confluenceSearchModalMessages.insertIssuesTitle;
|
|
160
159
|
} else {
|
|
161
160
|
siteSelectorLabel = availableSites && availableSites.length > 1 ? _messages.confluenceSearchModalMessages.insertIssuesTitleManySites : _messages.confluenceSearchModalMessages.insertIssuesTitle;
|
|
@@ -118,6 +118,7 @@ thead.has-column-picker ._10i2idpf:nth-last-of-type(2){border-right:0}.ProseMirr
|
|
|
118
118
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
119
119
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
120
120
|
._o5721q9c{white-space:nowrap}
|
|
121
|
+
._o5724jg8{white-space:normal}
|
|
121
122
|
._otyridpf{margin-bottom:0}
|
|
122
123
|
._ouxlbac2{background-position:0,0,100%,100%,top,0 52px,bottom,bottom}
|
|
123
124
|
._qmxj1c00{background-attachment:local,scroll,local,scroll,local,scroll,local,scroll}
|
|
@@ -67,6 +67,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
67
67
|
ColumnPickerHeader.displayName = 'ColumnPickerHeader';
|
|
68
68
|
}
|
|
69
69
|
var truncateStyles = null;
|
|
70
|
+
var wrappedStyles = null;
|
|
70
71
|
var tableContainerStyles = null;
|
|
71
72
|
|
|
72
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
@@ -580,7 +581,7 @@ var IssueLikeDataTableView = exports.IssueLikeDataTableView = function IssueLike
|
|
|
580
581
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
581
582
|
,
|
|
582
583
|
style: loadingRowStyle,
|
|
583
|
-
className: (0, _runtime.ax)([
|
|
584
|
+
className: (0, _runtime.ax)([wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? "_o5724jg8" : "_1bto1l2s _o5721q9c"])
|
|
584
585
|
}, content);
|
|
585
586
|
}));
|
|
586
587
|
}))));
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
4
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
5
|
const DatasourceExperienceIdContext = /*#__PURE__*/React.createContext(undefined);
|
|
4
6
|
const DatasourceExperienceIdProvider = ({
|
|
5
7
|
children
|
|
6
8
|
}) => {
|
|
9
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
7
10
|
const value = useMemo(() => uuidv4(), []);
|
|
8
11
|
return /*#__PURE__*/React.createElement(DatasourceExperienceIdContext.Provider, {
|
|
9
12
|
value: value
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
3
4
|
import uuid from 'uuid';
|
|
4
5
|
import { useFlags } from '@atlaskit/flag';
|
|
5
6
|
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
@@ -50,6 +51,7 @@ export const useDatasourceTableFlag = options => {
|
|
|
50
51
|
label: "Error",
|
|
51
52
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
52
53
|
}),
|
|
54
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
53
55
|
id: uuid(),
|
|
54
56
|
isAutoDismiss: true,
|
|
55
57
|
...(options !== null && options !== void 0 && options.isFetchAction ? getFetchActionErrorMessage(args === null || args === void 0 ? void 0 : args.status) : getExecuteActionErrorMessage(args === null || args === void 0 ? void 0 : args.status)),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createActionsHook, createContainer, createStateHook, createStore } from 'react-sweet-state';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
3
4
|
import { v4 as uuidv4 } from 'uuid';
|
|
4
5
|
const getInitialState = () => ({
|
|
5
6
|
items: {}
|
|
@@ -39,6 +40,7 @@ export const actions = {
|
|
|
39
40
|
const [newItemIds, newItems] = items.reduce(([ids, itemMap], item) => {
|
|
40
41
|
var _item$ari, _oldItems$id;
|
|
41
42
|
const ari = typeof ((_item$ari = item['ari']) === null || _item$ari === void 0 ? void 0 : _item$ari.data) === 'string' ? item['ari'].data : undefined;
|
|
43
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
42
44
|
const id = ari !== null && ari !== void 0 ? ari : uuidv4();
|
|
43
45
|
return [[...ids, id], {
|
|
44
46
|
...itemMap,
|
|
@@ -27,7 +27,6 @@ export const SiteSelector = props => {
|
|
|
27
27
|
const {
|
|
28
28
|
formatMessage
|
|
29
29
|
} = useIntl();
|
|
30
|
-
const isSiteSelectorEnabled = !fg('add-disablesiteselector') || !disableSiteSelector;
|
|
31
30
|
const onChange = newValue => {
|
|
32
31
|
const selectedSite = availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(site => site.cloudId === (newValue === null || newValue === void 0 ? void 0 : newValue.value));
|
|
33
32
|
if (selectedSite) {
|
|
@@ -47,7 +46,7 @@ export const SiteSelector = props => {
|
|
|
47
46
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
48
47
|
size: "medium",
|
|
49
48
|
as: "h1"
|
|
50
|
-
}, formatMessage(label)),
|
|
49
|
+
}, formatMessage(label)), !disableSiteSelector && availableSites && availableSites.length > 1 && /*#__PURE__*/React.createElement("span", {
|
|
51
50
|
"data-testid": `${testId}--trigger`
|
|
52
51
|
}, /*#__PURE__*/React.createElement(PopupSelect, {
|
|
53
52
|
searchThreshold: 10,
|
|
@@ -8,7 +8,6 @@ import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
|
8
8
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
9
9
|
import LinkComponent from '@atlaskit/link';
|
|
10
10
|
import { CloseButton, ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
13
12
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
14
13
|
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
@@ -147,7 +146,7 @@ export const PlainConfluenceSearchConfigModal = props => {
|
|
|
147
146
|
});
|
|
148
147
|
}, [reset, setParameters, userInteractions]);
|
|
149
148
|
let siteSelectorLabel;
|
|
150
|
-
if (disableSiteSelector
|
|
149
|
+
if (disableSiteSelector) {
|
|
151
150
|
siteSelectorLabel = confluenceSearchModalMessages.insertIssuesTitle;
|
|
152
151
|
} else {
|
|
153
152
|
siteSelectorLabel = availableSites && availableSites.length > 1 ? confluenceSearchModalMessages.insertIssuesTitleManySites : confluenceSearchModalMessages.insertIssuesTitle;
|
|
@@ -119,6 +119,7 @@ thead.has-column-picker ._10i2idpf:nth-last-of-type(2){border-right:0}.ProseMirr
|
|
|
119
119
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
120
120
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
121
121
|
._o5721q9c{white-space:nowrap}
|
|
122
|
+
._o5724jg8{white-space:normal}
|
|
122
123
|
._otyridpf{margin-bottom:0}
|
|
123
124
|
._ouxlbac2{background-position:0,0,100%,100%,top,0 52px,bottom,bottom}
|
|
124
125
|
._qmxj1c00{background-attachment:local,scroll,local,scroll,local,scroll,local,scroll}
|
|
@@ -48,6 +48,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
48
48
|
ColumnPickerHeader.displayName = 'ColumnPickerHeader';
|
|
49
49
|
}
|
|
50
50
|
const truncateStyles = null;
|
|
51
|
+
const wrappedStyles = null;
|
|
51
52
|
const tableContainerStyles = null;
|
|
52
53
|
|
|
53
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
@@ -515,7 +516,7 @@ export const IssueLikeDataTableView = ({
|
|
|
515
516
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
516
517
|
,
|
|
517
518
|
style: loadingRowStyle,
|
|
518
|
-
className: ax([
|
|
519
|
+
className: ax([wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? "_o5724jg8" : "_1bto1l2s _o5721q9c"])
|
|
519
520
|
}, content);
|
|
520
521
|
}))))));
|
|
521
522
|
return /*#__PURE__*/React.createElement(FlagsProvider, null, view);
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React, { useContext, useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
2
4
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
5
|
var DatasourceExperienceIdContext = /*#__PURE__*/React.createContext(undefined);
|
|
4
6
|
var DatasourceExperienceIdProvider = function DatasourceExperienceIdProvider(_ref) {
|
|
5
7
|
var children = _ref.children;
|
|
8
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
9
|
var value = useMemo(function () {
|
|
7
10
|
return uuidv4();
|
|
8
11
|
}, []);
|
|
@@ -3,6 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
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
4
|
import React, { useCallback } from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
7
|
import uuid from 'uuid';
|
|
7
8
|
import { useFlags } from '@atlaskit/flag';
|
|
8
9
|
import CrossCircleIcon from '@atlaskit/icon/core/migration/cross-circle';
|
|
@@ -51,6 +52,7 @@ export var useDatasourceTableFlag = function useDatasourceTableFlag(options) {
|
|
|
51
52
|
label: "Error",
|
|
52
53
|
color: "var(--ds-icon-danger, #C9372C)"
|
|
53
54
|
}),
|
|
55
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
54
56
|
id: uuid(),
|
|
55
57
|
isAutoDismiss: true
|
|
56
58
|
}, options !== null && options !== void 0 && options.isFetchAction ? getFetchActionErrorMessage(args === null || args === void 0 ? void 0 : args.status) : getExecuteActionErrorMessage(args === null || args === void 0 ? void 0 : args.status)), args));
|
package/dist/esm/state/index.js
CHANGED
|
@@ -5,6 +5,7 @@ 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
|
import React from 'react';
|
|
7
7
|
import { createActionsHook, createContainer, createStateHook, createStore } from 'react-sweet-state';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
8
9
|
import { v4 as uuidv4 } from 'uuid';
|
|
9
10
|
var getInitialState = function getInitialState() {
|
|
10
11
|
return {
|
|
@@ -41,6 +42,7 @@ export var actions = {
|
|
|
41
42
|
ids = _ref4[0],
|
|
42
43
|
itemMap = _ref4[1];
|
|
43
44
|
var ari = typeof ((_item$ari = item['ari']) === null || _item$ari === void 0 ? void 0 : _item$ari.data) === 'string' ? item['ari'].data : undefined;
|
|
45
|
+
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
44
46
|
var id = ari !== null && ari !== void 0 ? ari : uuidv4();
|
|
45
47
|
return [[].concat(_toConsumableArray(ids), [id]), _objectSpread(_objectSpread({}, itemMap), {}, _defineProperty({}, id, {
|
|
46
48
|
ari: ari,
|
|
@@ -26,7 +26,6 @@ export var SiteSelector = function SiteSelector(props) {
|
|
|
26
26
|
testId = props.testId;
|
|
27
27
|
var _useIntl = useIntl(),
|
|
28
28
|
formatMessage = _useIntl.formatMessage;
|
|
29
|
-
var isSiteSelectorEnabled = !fg('add-disablesiteselector') || !disableSiteSelector;
|
|
30
29
|
var onChange = function onChange(newValue) {
|
|
31
30
|
var selectedSite = availableSites === null || availableSites === void 0 ? void 0 : availableSites.find(function (site) {
|
|
32
31
|
return site.cloudId === (newValue === null || newValue === void 0 ? void 0 : newValue.value);
|
|
@@ -52,7 +51,7 @@ export var SiteSelector = function SiteSelector(props) {
|
|
|
52
51
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
53
52
|
size: "medium",
|
|
54
53
|
as: "h1"
|
|
55
|
-
}, formatMessage(label)),
|
|
54
|
+
}, formatMessage(label)), !disableSiteSelector && availableSites && availableSites.length > 1 && /*#__PURE__*/React.createElement("span", {
|
|
56
55
|
"data-testid": "".concat(testId, "--trigger")
|
|
57
56
|
}, /*#__PURE__*/React.createElement(PopupSelect, {
|
|
58
57
|
searchThreshold: 10,
|
|
@@ -11,7 +11,6 @@ import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
|
11
11
|
import { IntlMessagesProvider } from '@atlaskit/intl-messages-provider';
|
|
12
12
|
import LinkComponent from '@atlaskit/link';
|
|
13
13
|
import { CloseButton, ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
import { Box, Flex } from '@atlaskit/primitives/compiled';
|
|
16
15
|
import { useDatasourceAnalyticsEvents } from '../../../analytics';
|
|
17
16
|
import { DatasourceAction, DatasourceSearchMethod } from '../../../analytics/types';
|
|
@@ -146,7 +145,7 @@ export var PlainConfluenceSearchConfigModal = function PlainConfluenceSearchConf
|
|
|
146
145
|
});
|
|
147
146
|
}, [reset, setParameters, userInteractions]);
|
|
148
147
|
var siteSelectorLabel;
|
|
149
|
-
if (disableSiteSelector
|
|
148
|
+
if (disableSiteSelector) {
|
|
150
149
|
siteSelectorLabel = confluenceSearchModalMessages.insertIssuesTitle;
|
|
151
150
|
} else {
|
|
152
151
|
siteSelectorLabel = availableSites && availableSites.length > 1 ? confluenceSearchModalMessages.insertIssuesTitleManySites : confluenceSearchModalMessages.insertIssuesTitle;
|
|
@@ -118,6 +118,7 @@ thead.has-column-picker ._10i2idpf:nth-last-of-type(2){border-right:0}.ProseMirr
|
|
|
118
118
|
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
119
119
|
._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
|
|
120
120
|
._o5721q9c{white-space:nowrap}
|
|
121
|
+
._o5724jg8{white-space:normal}
|
|
121
122
|
._otyridpf{margin-bottom:0}
|
|
122
123
|
._ouxlbac2{background-position:0,0,100%,100%,top,0 52px,bottom,bottom}
|
|
123
124
|
._qmxj1c00{background-attachment:local,scroll,local,scroll,local,scroll,local,scroll}
|
|
@@ -60,6 +60,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
60
60
|
ColumnPickerHeader.displayName = 'ColumnPickerHeader';
|
|
61
61
|
}
|
|
62
62
|
var truncateStyles = null;
|
|
63
|
+
var wrappedStyles = null;
|
|
63
64
|
var tableContainerStyles = null;
|
|
64
65
|
|
|
65
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
@@ -573,7 +574,7 @@ export var IssueLikeDataTableView = function IssueLikeDataTableView(_ref5) {
|
|
|
573
574
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
574
575
|
,
|
|
575
576
|
style: loadingRowStyle,
|
|
576
|
-
className: ax([
|
|
577
|
+
className: ax([wrappedColumnKeys !== null && wrappedColumnKeys !== void 0 && wrappedColumnKeys.includes(cellKey) ? "_o5724jg8" : "_1bto1l2s _o5721q9c"])
|
|
577
578
|
}, content);
|
|
578
579
|
}));
|
|
579
580
|
}))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "4.29.
|
|
3
|
+
"version": "4.29.2",
|
|
4
4
|
"description": "UI Components to support linking platform dataset feature",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/layering": "^3.2.0",
|
|
65
65
|
"@atlaskit/link": "^3.2.0",
|
|
66
66
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
67
|
-
"@atlaskit/linking-common": "^9.
|
|
67
|
+
"@atlaskit/linking-common": "^9.8.0",
|
|
68
68
|
"@atlaskit/linking-types": "^14.1.0",
|
|
69
69
|
"@atlaskit/logo": "^19.9.0",
|
|
70
70
|
"@atlaskit/lozenge": "^13.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^16.1.0",
|
|
80
80
|
"@atlaskit/react-select": "^3.8.0",
|
|
81
81
|
"@atlaskit/select": "^21.3.0",
|
|
82
|
-
"@atlaskit/smart-card": "^43.
|
|
82
|
+
"@atlaskit/smart-card": "^43.6.0",
|
|
83
83
|
"@atlaskit/smart-user-picker": "^8.4.0",
|
|
84
84
|
"@atlaskit/spinner": "^19.0.0",
|
|
85
85
|
"@atlaskit/tag": "^14.1.0",
|
|
@@ -157,9 +157,6 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"platform-feature-flags": {
|
|
160
|
-
"add-disablesiteselector": {
|
|
161
|
-
"type": "boolean"
|
|
162
|
-
},
|
|
163
160
|
"confluence-issue-terminology-refresh": {
|
|
164
161
|
"type": "boolean"
|
|
165
162
|
},
|