@atlaskit/link-client-extension 0.1.0 → 0.2.0

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 +1,11 @@
1
1
  # @atlaskit/link-client-extension
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f32cef73d0f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f32cef73d0f) - use new types from smart link types
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import type { CardClient } from '@atlaskit/link-provider';
2
- import type { InvokeActionRequest, InvokeActionResponse } from '@atlaskit/linking-types/smart-link-actions';
2
+ import type { InvokeRequest, InvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
3
3
  /**
4
4
  * useSmartLinkClientExtension
5
5
  *
@@ -9,7 +9,7 @@ import type { InvokeActionRequest, InvokeActionResponse } from '@atlaskit/linkin
9
9
  * @param cardClient
10
10
  */
11
11
  export declare const useSmartLinkClientExtension: (cardClient: CardClient) => {
12
- invoke: <T>(data: InvokeActionRequest) => Promise<InvokeActionResponse | {
12
+ invoke: (data: InvokeRequest) => Promise<InvokeResponse | {
13
13
  message?: string | undefined;
14
14
  errorCode?: string | undefined;
15
15
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Extension methods for linking platform client",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,8 +26,8 @@
26
26
  ".": "./src/index.ts"
27
27
  },
28
28
  "dependencies": {
29
- "@atlaskit/linking-common": "^2.3.0",
30
- "@atlaskit/linking-types": "^0.2.0",
29
+ "@atlaskit/linking-common": "^2.4.0",
30
+ "@atlaskit/linking-types": "^0.3.0",
31
31
  "@babel/runtime": "^7.0.0"
32
32
  },
33
33
  "peerDependencies": {
package/report.api.md CHANGED
@@ -16,13 +16,13 @@
16
16
 
17
17
  ```ts
18
18
  import type { CardClient } from '@atlaskit/link-provider';
19
- import type { InvokeActionRequest } from '@atlaskit/linking-types/smart-link-actions';
20
- import type { InvokeActionResponse } from '@atlaskit/linking-types/smart-link-actions';
19
+ import type { InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
20
+ import type { InvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
21
21
 
22
22
  // @public
23
23
  export const useSmartLinkClientExtension: (cardClient: CardClient) => {
24
- invoke: <T>(data: InvokeActionRequest) => Promise<
25
- | InvokeActionResponse
24
+ invoke: (data: InvokeRequest) => Promise<
25
+ | InvokeResponse
26
26
  | {
27
27
  message?: string | undefined;
28
28
  errorCode?: string | undefined;
@@ -5,12 +5,12 @@
5
5
  ```ts
6
6
 
7
7
  import type { CardClient } from '@atlaskit/link-provider';
8
- import type { InvokeActionRequest } from '@atlaskit/linking-types/smart-link-actions';
9
- import type { InvokeActionResponse } from '@atlaskit/linking-types/smart-link-actions';
8
+ import type { InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
9
+ import type { InvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
10
10
 
11
11
  // @public
12
12
  export const useSmartLinkClientExtension: (cardClient: CardClient) => {
13
- invoke: <T>(data: InvokeActionRequest) => Promise<InvokeActionResponse | {
13
+ invoke: (data: InvokeRequest) => Promise<InvokeResponse | {
14
14
  message?: string | undefined;
15
15
  errorCode?: string | undefined;
16
16
  }>;