@atlaskit/link-client-extension 5.0.4 → 5.0.6
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/dist/cjs/services/use-data-source-client-extension/index.js +1 -2
- package/dist/es2019/services/use-data-source-client-extension/index.js +1 -2
- package/dist/esm/services/use-data-source-client-extension/index.js +1 -2
- package/dist/types/types.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +2 -2
- package/package.json +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/link-client-extension
|
|
2
2
|
|
|
3
|
+
## 5.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1b7d48c39ae03`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b7d48c39ae03) -
|
|
8
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 5.0.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 5.0.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -27,7 +27,6 @@ var useDatasourceClientExtension = exports.useDatasourceClientExtension = functi
|
|
|
27
27
|
var resolverUrl = (0, _useResolverUrl.useResolverUrl)(client);
|
|
28
28
|
var cachedRequest = /*#__PURE__*/function () {
|
|
29
29
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(cacheKeyId, data, url, lruMap, force) {
|
|
30
|
-
var _Intl;
|
|
31
30
|
var cacheKeyData, cacheKey, responsePromise, headers;
|
|
32
31
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
33
32
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -56,7 +55,7 @@ var useDatasourceClientExtension = exports.useDatasourceClientExtension = functi
|
|
|
56
55
|
* This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
|
|
57
56
|
* eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
|
|
58
57
|
*/
|
|
59
|
-
'origin-timezone':
|
|
58
|
+
'origin-timezone': Intl === null || Intl === void 0 ? void 0 : Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
60
59
|
};
|
|
61
60
|
_context.prev = 7;
|
|
62
61
|
responsePromise = (0, _linkingCommon.request)('post', url, data, headers, [200, 201, 202, 203, 204]);
|
|
@@ -16,7 +16,6 @@ export const useDatasourceClientExtension = () => {
|
|
|
16
16
|
} = useSmartLinkContext();
|
|
17
17
|
const resolverUrl = useResolverUrl(client);
|
|
18
18
|
const cachedRequest = async (cacheKeyId, data, url, lruMap, force) => {
|
|
19
|
-
var _Intl;
|
|
20
19
|
const cacheKeyData = {
|
|
21
20
|
...data,
|
|
22
21
|
// Sort fields to use cached version of response regardless of the order
|
|
@@ -43,7 +42,7 @@ export const useDatasourceClientExtension = () => {
|
|
|
43
42
|
* This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
|
|
44
43
|
* eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
|
|
45
44
|
*/
|
|
46
|
-
'origin-timezone':
|
|
45
|
+
'origin-timezone': Intl === null || Intl === void 0 ? void 0 : Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
47
46
|
};
|
|
48
47
|
try {
|
|
49
48
|
responsePromise = request('post', url, data, headers, [200, 201, 202, 203, 204]);
|
|
@@ -20,7 +20,6 @@ export var useDatasourceClientExtension = function useDatasourceClientExtension(
|
|
|
20
20
|
var resolverUrl = useResolverUrl(client);
|
|
21
21
|
var cachedRequest = /*#__PURE__*/function () {
|
|
22
22
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(cacheKeyId, data, url, lruMap, force) {
|
|
23
|
-
var _Intl;
|
|
24
23
|
var cacheKeyData, cacheKey, responsePromise, headers;
|
|
25
24
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
26
25
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -49,7 +48,7 @@ export var useDatasourceClientExtension = function useDatasourceClientExtension(
|
|
|
49
48
|
* This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
|
|
50
49
|
* eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
|
|
51
50
|
*/
|
|
52
|
-
'origin-timezone':
|
|
51
|
+
'origin-timezone': Intl === null || Intl === void 0 ? void 0 : Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
53
52
|
};
|
|
54
53
|
_context.prev = 7;
|
|
55
54
|
responsePromise = request('post', url, data, headers, [200, 201, 202, 203, 204]);
|
package/dist/types/types.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export interface JsonLdDatasourceResponse extends JsonLd.Response {
|
|
|
4
4
|
datasources?: DatasourceResolveResponse[];
|
|
5
5
|
}
|
|
6
6
|
export type DatasourceResolveResponse = {
|
|
7
|
-
id: string;
|
|
8
7
|
ari?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
id: string;
|
|
9
10
|
key?: string;
|
|
10
11
|
name?: string;
|
|
11
|
-
description?: string;
|
|
12
12
|
parameters: DatasourceParameters;
|
|
13
13
|
};
|
|
@@ -4,10 +4,10 @@ export interface JsonLdDatasourceResponse extends JsonLd.Response {
|
|
|
4
4
|
datasources?: DatasourceResolveResponse[];
|
|
5
5
|
}
|
|
6
6
|
export type DatasourceResolveResponse = {
|
|
7
|
-
id: string;
|
|
8
7
|
ari?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
id: string;
|
|
9
10
|
key?: string;
|
|
10
11
|
name?: string;
|
|
11
|
-
description?: string;
|
|
12
12
|
parameters: DatasourceParameters;
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-client-extension",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "Extension methods for linking platform client",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
|
-
"team": "Linking Platform",
|
|
11
|
+
"team": "Navigation Experiences - Linking Platform",
|
|
12
12
|
"website": {
|
|
13
13
|
"name": "LinkClientExtension"
|
|
14
|
-
}
|
|
15
|
-
"runReact18": true
|
|
14
|
+
}
|
|
16
15
|
},
|
|
17
16
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
17
|
"main": "dist/cjs/index.js",
|
|
@@ -33,24 +32,23 @@
|
|
|
33
32
|
".": "./src/index.ts"
|
|
34
33
|
},
|
|
35
34
|
"dependencies": {
|
|
36
|
-
"@atlaskit/json-ld-types": "^1.
|
|
37
|
-
"@atlaskit/linking-common": "^9.
|
|
38
|
-
"@atlaskit/linking-types": "^
|
|
35
|
+
"@atlaskit/json-ld-types": "^1.4.0",
|
|
36
|
+
"@atlaskit/linking-common": "^9.5.0",
|
|
37
|
+
"@atlaskit/linking-types": "^14.0.0",
|
|
39
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
39
|
"@babel/runtime": "^7.0.0",
|
|
41
40
|
"lru_map": "^0.4.1"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
|
-
"@atlaskit/link-provider": "^3.
|
|
43
|
+
"@atlaskit/link-provider": "^3.7.0",
|
|
45
44
|
"react": "^18.2.0"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@atlaskit/link-test-helpers": "^8.
|
|
47
|
+
"@atlaskit/link-test-helpers": "^8.3.0",
|
|
49
48
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
50
49
|
"@testing-library/react": "^13.4.0",
|
|
51
50
|
"@testing-library/react-hooks": "^8.0.1",
|
|
52
51
|
"react-dom": "^18.2.0",
|
|
53
|
-
"typescript": "~5.4.2",
|
|
54
52
|
"wait-for-expect": "^1.2.0"
|
|
55
53
|
},
|
|
56
54
|
"techstack": {
|