@atlaskit/link-datasource 6.13.6 → 6.13.8
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 +15 -0
- package/dist/cjs/hooks/useErrorLogger.js +2 -2
- package/dist/cjs/services/getAvailableSites.js +2 -2
- package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +3 -3
- package/dist/es2019/hooks/useErrorLogger.js +1 -1
- package/dist/es2019/services/getAvailableSites.js +1 -1
- package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/dist/esm/hooks/useErrorLogger.js +1 -1
- package/dist/esm/services/getAvailableSites.js +1 -1
- package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js +1 -1
- package/examples-helpers/smartLinkCustomClient.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/link-datasource
|
|
2
2
|
|
|
3
|
+
## 6.13.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2bbc1c84de468`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2bbc1c84de468) -
|
|
8
|
+
Migrate Volt consumer imports to existing definitions and align affected test mocks without
|
|
9
|
+
changing runtime behavior.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 6.13.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 6.13.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
var
|
|
10
|
+
var _networkError = require("@atlaskit/linking-common/network-error");
|
|
11
11
|
var _getTraceId = require("@atlaskit/linking-common/utils/get-trace-id");
|
|
12
12
|
var _analytics = require("../analytics");
|
|
13
13
|
var _logToSentry = require("./logToSentry");
|
|
@@ -21,7 +21,7 @@ var getNetworkFields = function getNetworkFields(error) {
|
|
|
21
21
|
status: error.status,
|
|
22
22
|
reason: 'response'
|
|
23
23
|
};
|
|
24
|
-
case error instanceof
|
|
24
|
+
case error instanceof _networkError.NetworkError:
|
|
25
25
|
return {
|
|
26
26
|
traceId: null,
|
|
27
27
|
status: null,
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getAccessibleProducts = void 0;
|
|
8
8
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
9
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var
|
|
10
|
+
var _mapAccessibleProductsToAvailableSites = require("@atlaskit/linking-common/map-accessible-products-to-available-sites");
|
|
11
11
|
var _unitsRollout = require("@atlaskit/linking-common/units-rollout");
|
|
12
12
|
var _isLinkDatasourceInUnitsRollout = require("./isLinkDatasourceInUnitsRollout");
|
|
13
13
|
var getAccessibleProducts = exports.getAccessibleProducts = /*#__PURE__*/function () {
|
|
@@ -55,7 +55,7 @@ var getAccessibleProducts = exports.getAccessibleProducts = /*#__PURE__*/functio
|
|
|
55
55
|
return response.json();
|
|
56
56
|
case 5:
|
|
57
57
|
res = _context.sent;
|
|
58
|
-
return _context.abrupt("return", (0,
|
|
58
|
+
return _context.abrupt("return", (0, _mapAccessibleProductsToAvailableSites.mapAccessibleProductsToAvailableSites)(res.data));
|
|
59
59
|
case 6:
|
|
60
60
|
_t2 = Error;
|
|
61
61
|
_context.next = 7;
|
package/dist/cjs/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
15
15
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
16
16
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
|
-
var
|
|
18
|
+
var _datePicker = _interopRequireDefault(require("@atlaskit/datetime-picker/date-picker"));
|
|
19
19
|
var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
|
|
20
20
|
var _popup = require("@atlaskit/popup/popup");
|
|
21
21
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -203,7 +203,7 @@ var DateRangePicker = exports.DateRangePicker = function DateRangePicker(_ref6)
|
|
|
203
203
|
return handleClickFilterOption(option);
|
|
204
204
|
}
|
|
205
205
|
}, (0, _getDropdownLabel.getDropdownLabel)(option, formatMessage));
|
|
206
|
-
}), isPickerOpen && isCustomSelected && /*#__PURE__*/_react.default.createElement(CustomDateWrapper, null, /*#__PURE__*/_react.default.createElement(DatePickersWrapper, null, /*#__PURE__*/_react.default.createElement(
|
|
206
|
+
}), isPickerOpen && isCustomSelected && /*#__PURE__*/_react.default.createElement(CustomDateWrapper, null, /*#__PURE__*/_react.default.createElement(DatePickersWrapper, null, /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
207
207
|
shouldShowCalendarButton: true,
|
|
208
208
|
maxDate: todayDate,
|
|
209
209
|
innerProps: {
|
|
@@ -227,7 +227,7 @@ var DateRangePicker = exports.DateRangePicker = function DateRangePicker(_ref6)
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
}), /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.dateRangeMessages.dateRangeToLabel), /*#__PURE__*/_react.default.createElement(
|
|
230
|
+
}), /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, _messages.dateRangeMessages.dateRangeToLabel), /*#__PURE__*/_react.default.createElement(_datePicker.default, {
|
|
231
231
|
shouldShowCalendarButton: true,
|
|
232
232
|
maxDate: todayDate,
|
|
233
233
|
innerProps: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
|
-
import { NetworkError } from '@atlaskit/linking-common';
|
|
2
|
+
import { NetworkError } from '@atlaskit/linking-common/network-error';
|
|
3
3
|
import { getTraceId } from '@atlaskit/linking-common/utils/get-trace-id';
|
|
4
4
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
5
5
|
import { logToSentry } from './logToSentry';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mapAccessibleProductsToAvailableSites } from '@atlaskit/linking-common/
|
|
1
|
+
import { mapAccessibleProductsToAvailableSites } from '@atlaskit/linking-common/map-accessible-products-to-available-sites';
|
|
2
2
|
import { shouldUseUnitCompliantApi } from '@atlaskit/linking-common/units-rollout';
|
|
3
3
|
import { isLinkDatasourceInUnitsRollout } from './isLinkDatasourceInUnitsRollout';
|
|
4
4
|
export const getAccessibleProducts = async product => {
|
package/dist/es2019/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { forwardRef } from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
7
7
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
8
|
-
import
|
|
8
|
+
import DatePicker from '@atlaskit/datetime-picker/date-picker';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
10
10
|
import { Popup } from '@atlaskit/popup/popup';
|
|
11
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
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 { useCallback } from 'react';
|
|
5
|
-
import { NetworkError } from '@atlaskit/linking-common';
|
|
5
|
+
import { NetworkError } from '@atlaskit/linking-common/network-error';
|
|
6
6
|
import { getTraceId } from '@atlaskit/linking-common/utils/get-trace-id';
|
|
7
7
|
import { useDatasourceAnalyticsEvents } from '../analytics';
|
|
8
8
|
import { logToSentry } from './logToSentry';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { mapAccessibleProductsToAvailableSites } from '@atlaskit/linking-common/
|
|
3
|
+
import { mapAccessibleProductsToAvailableSites } from '@atlaskit/linking-common/map-accessible-products-to-available-sites';
|
|
4
4
|
import { shouldUseUnitCompliantApi } from '@atlaskit/linking-common/units-rollout';
|
|
5
5
|
import { isLinkDatasourceInUnitsRollout } from './isLinkDatasourceInUnitsRollout';
|
|
6
6
|
export var getAccessibleProducts = /*#__PURE__*/function () {
|
package/dist/esm/ui/confluence-search-modal/basic-filters/filters/date-range-picker/index.js
CHANGED
|
@@ -15,7 +15,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
15
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) { _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; }
|
|
16
16
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
17
17
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
18
|
-
import
|
|
18
|
+
import DatePicker from '@atlaskit/datetime-picker/date-picker';
|
|
19
19
|
import ErrorIcon from '@atlaskit/icon/core/status-error';
|
|
20
20
|
import { Popup } from '@atlaskit/popup/popup';
|
|
21
21
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JsonLd } from '@atlaskit/json-ld-types/jsonld';
|
|
2
2
|
import CardClient from '@atlaskit/link-provider/client';
|
|
3
|
-
import { APIError } from '@atlaskit/linking-common';
|
|
3
|
+
import { APIError } from '@atlaskit/linking-common/api-error';
|
|
4
4
|
|
|
5
5
|
import { mockJqlSmartLinkData } from './mockJqlSmartLinkData';
|
|
6
6
|
import { mocks } from './mockSmartLinkData';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-datasource",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.8",
|
|
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/link": "^5.1.0",
|
|
65
65
|
"@atlaskit/link-client-extension": "^7.3.0",
|
|
66
66
|
"@atlaskit/link-provider": "^5.6.0",
|
|
67
|
-
"@atlaskit/linking-common": "^12.
|
|
67
|
+
"@atlaskit/linking-common": "^12.3.0",
|
|
68
68
|
"@atlaskit/linking-types": "^15.3.0",
|
|
69
69
|
"@atlaskit/logo": "^23.0.0",
|
|
70
70
|
"@atlaskit/lozenge": "^15.4.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/textfield": "^10.2.0",
|
|
91
91
|
"@atlaskit/theme": "^28.2.0",
|
|
92
92
|
"@atlaskit/toggle": "^17.3.0",
|
|
93
|
-
"@atlaskit/tokens": "^
|
|
93
|
+
"@atlaskit/tokens": "^17.0.0",
|
|
94
94
|
"@atlaskit/tooltip": "^24.3.0",
|
|
95
95
|
"@atlaskit/ufo": "^1.2.0",
|
|
96
96
|
"@atlaskit/user-picker": "^13.13.0",
|