@atlaskit/link-client-extension 0.2.0 → 0.3.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 +6 -0
- package/dist/cjs/services/use-smart-link-client-extension/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/services/use-smart-link-client-extension/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/services/use-smart-link-client-extension/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/services/use-smart-link-client-extension/index.d.ts +1 -4
- package/package.json +1 -1
- package/report.api.md +1 -7
- package/tmp/api-report-tmp.d.ts +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -28,7 +28,7 @@ var useSmartLinkClientExtension = function useSmartLinkClientExtension(cardClien
|
|
|
28
28
|
switch (_context.prev = _context.next) {
|
|
29
29
|
case 0:
|
|
30
30
|
_context.next = 2;
|
|
31
|
-
return (0, _linkingCommon.request)('post', "".concat(resolvedUrl, "/invoke"), data, undefined, [200, 204]);
|
|
31
|
+
return (0, _linkingCommon.request)('post', "".concat(resolvedUrl, "/invoke"), data, undefined, [200, 201, 202, 203, 204]);
|
|
32
32
|
case 2:
|
|
33
33
|
response = _context.sent;
|
|
34
34
|
return _context.abrupt("return", response);
|
package/dist/cjs/version.json
CHANGED
|
@@ -13,7 +13,7 @@ import { useResolverUrl } from '../use-resolver-url';
|
|
|
13
13
|
export const useSmartLinkClientExtension = cardClient => {
|
|
14
14
|
const resolvedUrl = useResolverUrl(cardClient);
|
|
15
15
|
const invoke = useCallback(async data => {
|
|
16
|
-
const response = await request('post', `${resolvedUrl}/invoke`, data, undefined, [200, 204]);
|
|
16
|
+
const response = await request('post', `${resolvedUrl}/invoke`, data, undefined, [200, 201, 202, 203, 204]);
|
|
17
17
|
return response;
|
|
18
18
|
}, [resolvedUrl]);
|
|
19
19
|
return useMemo(() => ({
|
package/dist/es2019/version.json
CHANGED
|
@@ -22,7 +22,7 @@ export var useSmartLinkClientExtension = function useSmartLinkClientExtension(ca
|
|
|
22
22
|
switch (_context.prev = _context.next) {
|
|
23
23
|
case 0:
|
|
24
24
|
_context.next = 2;
|
|
25
|
-
return request('post', "".concat(resolvedUrl, "/invoke"), data, undefined, [200, 204]);
|
|
25
|
+
return request('post', "".concat(resolvedUrl, "/invoke"), data, undefined, [200, 201, 202, 203, 204]);
|
|
26
26
|
case 2:
|
|
27
27
|
response = _context.sent;
|
|
28
28
|
return _context.abrupt("return", response);
|
package/dist/esm/version.json
CHANGED
|
@@ -9,8 +9,5 @@ import type { InvokeRequest, InvokeResponse } from '@atlaskit/linking-types/smar
|
|
|
9
9
|
* @param cardClient
|
|
10
10
|
*/
|
|
11
11
|
export declare const useSmartLinkClientExtension: (cardClient: CardClient) => {
|
|
12
|
-
invoke: (data: InvokeRequest) => Promise<InvokeResponse
|
|
13
|
-
message?: string | undefined;
|
|
14
|
-
errorCode?: string | undefined;
|
|
15
|
-
}>;
|
|
12
|
+
invoke: (data: InvokeRequest) => Promise<InvokeResponse>;
|
|
16
13
|
};
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -21,13 +21,7 @@ import type { InvokeResponse } from '@atlaskit/linking-types/smart-link-actions'
|
|
|
21
21
|
|
|
22
22
|
// @public
|
|
23
23
|
export const useSmartLinkClientExtension: (cardClient: CardClient) => {
|
|
24
|
-
invoke: (data: InvokeRequest) => Promise<
|
|
25
|
-
| InvokeResponse
|
|
26
|
-
| {
|
|
27
|
-
message?: string | undefined;
|
|
28
|
-
errorCode?: string | undefined;
|
|
29
|
-
}
|
|
30
|
-
>;
|
|
24
|
+
invoke: (data: InvokeRequest) => Promise<InvokeResponse>;
|
|
31
25
|
};
|
|
32
26
|
|
|
33
27
|
// (No @packageDocumentation comment for this package)
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -10,10 +10,7 @@ import type { InvokeResponse } from '@atlaskit/linking-types/smart-link-actions'
|
|
|
10
10
|
|
|
11
11
|
// @public
|
|
12
12
|
export const useSmartLinkClientExtension: (cardClient: CardClient) => {
|
|
13
|
-
invoke: (data: InvokeRequest) => Promise<InvokeResponse
|
|
14
|
-
message?: string | undefined;
|
|
15
|
-
errorCode?: string | undefined;
|
|
16
|
-
}>;
|
|
13
|
+
invoke: (data: InvokeRequest) => Promise<InvokeResponse>;
|
|
17
14
|
};
|
|
18
15
|
|
|
19
16
|
// (No @packageDocumentation comment for this package)
|