@atlaskit/link-client-extension 1.1.0 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
10
+ ## 1.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
15
+ - Updated dependencies
16
+
3
17
  ## 1.1.0
4
18
 
5
19
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -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,3 @@
1
+ import type { DatasourceDataResponse, DatasourceResponse } from '@atlaskit/linking-types';
2
+ export declare const mockDatasourceDataResponse: DatasourceDataResponse;
3
+ export declare const mockDatasourceResponse: DatasourceResponse;
@@ -0,0 +1,2 @@
1
+ import type { CardClient } from '@atlaskit/link-provider';
2
+ export declare const useResolverUrl: (cardClient: CardClient) => string;
@@ -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.0",
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",
@@ -20,18 +20,26 @@
20
20
  "module": "dist/esm/index.js",
21
21
  "module:es2019": "dist/es2019/index.js",
22
22
  "types": "dist/types/index.d.ts",
23
+ "typesVersions": {
24
+ ">=4.5 <4.9": {
25
+ "*": [
26
+ "dist/types-ts4.5/*",
27
+ "dist/types-ts4.5/index.d.ts"
28
+ ]
29
+ }
30
+ },
23
31
  "sideEffects": false,
24
32
  "atlaskit:src": "src/index.ts",
25
33
  "af:exports": {
26
34
  ".": "./src/index.ts"
27
35
  },
28
36
  "dependencies": {
29
- "@atlaskit/linking-common": "^2.8.0",
30
- "@atlaskit/linking-types": "^1.5.0",
37
+ "@atlaskit/linking-common": "^2.10.0",
38
+ "@atlaskit/linking-types": "^1.6.0",
31
39
  "@babel/runtime": "^7.0.0"
32
40
  },
33
41
  "peerDependencies": {
34
- "@atlaskit/link-provider": "^1.6.0",
42
+ "@atlaskit/link-provider": "^1.6.2",
35
43
  "react": "^16.8.0"
36
44
  },
37
45
  "devDependencies": {
@@ -40,7 +48,7 @@
40
48
  "@testing-library/react": "^12.1.5",
41
49
  "@testing-library/react-hooks": "^8.0.1",
42
50
  "react-dom": "^16.8.0",
43
- "typescript": "4.5.5",
51
+ "typescript": "~4.9.5",
44
52
  "wait-for-expect": "^1.2.0"
45
53
  },
46
54
  "techstack": {
package/report.api.md CHANGED
@@ -57,7 +57,7 @@ export const useSmartLinkClientExtension: (cardClient: CardClient) => {
57
57
 
58
58
  ```json
59
59
  {
60
- "@atlaskit/link-provider": "^1.6.0",
60
+ "@atlaskit/link-provider": "^1.6.2",
61
61
  "react": "^16.8.0"
62
62
  }
63
63
  ```