@atlaskit/link-client-extension 1.1.1 → 1.1.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 +7 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.5/index.d.ts +3 -0
- package/dist/types-ts4.5/services/use-data-source-client-extension/index.d.ts +5 -0
- package/dist/types-ts4.5/services/use-data-source-client-extension/mocks.d.ts +3 -0
- package/dist/types-ts4.5/services/use-resolver-url/index.d.ts +2 -0
- package/dist/types-ts4.5/services/use-smart-link-client-extension/index.d.ts +13 -0
- package/package.json +4 -4
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/link-client-extension
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 1.1.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
|
|
2
|
+
export { useDatasourceClientExtension } from './services/use-data-source-client-extension';
|
|
3
|
+
export { mockDatasourceResponse, mockDatasourceDataResponse, } from './services/use-data-source-client-extension/mocks';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DatasourceDataRequest, DatasourceDataResponse, DatasourceParameters, DatasourceResponse } from '@atlaskit/linking-types';
|
|
2
|
+
export declare const useDatasourceClientExtension: () => {
|
|
3
|
+
getDatasourceDetails: (datasourceId: string, data: DatasourceParameters) => Promise<DatasourceResponse>;
|
|
4
|
+
getDatasourceData: (datasourceId: string, data: DatasourceDataRequest) => Promise<DatasourceDataResponse>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CardClient } from '@atlaskit/link-provider';
|
|
2
|
+
import { InvokeRequest, InvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
|
|
3
|
+
/**
|
|
4
|
+
* useSmartLinkClientExtension
|
|
5
|
+
*
|
|
6
|
+
* This hook extends the usage of @atlaskit/link-provider CardClient
|
|
7
|
+
* for smart links.
|
|
8
|
+
*
|
|
9
|
+
* @param cardClient
|
|
10
|
+
*/
|
|
11
|
+
export declare const useSmartLinkClientExtension: (cardClient: CardClient) => {
|
|
12
|
+
invoke: (data: InvokeRequest) => Promise<InvokeResponse>;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-client-extension",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Extension methods for linking platform client",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
".": "./src/index.ts"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@atlaskit/linking-common": "^2.
|
|
38
|
-
"@atlaskit/linking-types": "^1.
|
|
37
|
+
"@atlaskit/linking-common": "^2.10.0",
|
|
38
|
+
"@atlaskit/linking-types": "^1.6.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@atlaskit/link-provider": "^1.6.
|
|
42
|
+
"@atlaskit/link-provider": "^1.6.2",
|
|
43
43
|
"react": "^16.8.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|