@atlaskit/link-client-extension 1.11.0 → 1.13.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 +20 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/services/use-data-source-client-extension/mocks.js +7 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/services/use-data-source-client-extension/mocks.js +6 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/services/use-data-source-client-extension/mocks.js +6 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/services/use-data-source-client-extension/mocks.d.ts +2 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/services/use-data-source-client-extension/mocks.d.ts +2 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/link-client-extension
|
|
2
2
|
|
|
3
|
+
## 1.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#127351](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127351)
|
|
8
|
+
[`e87b54903058e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e87b54903058e) -
|
|
9
|
+
Add React 18 compatability
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.12.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#127170](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127170)
|
|
20
|
+
[`48d23d3dfb9a1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/48d23d3dfb9a1) -
|
|
21
|
+
Exposes a new `mockActionsDiscoveryEmptyResponse` mock for datasource action discovery
|
|
22
|
+
|
|
3
23
|
## 1.11.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE", {
|
|
|
9
9
|
return _useDataSourceClientExtension.DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "mockActionsDiscoveryEmptyResponse", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _mocks.mockActionsDiscoveryEmptyResponse;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
12
18
|
Object.defineProperty(exports, "mockDatasourceDataResponse", {
|
|
13
19
|
enumerable: true,
|
|
14
20
|
get: function get() {
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.mockExecuteActionResponseFailure = exports.mockExecuteActionResponse = exports.mockDatasourceDetailsResponse = exports.mockDatasourceDataResponseWithSchema = exports.mockDatasourceDataResponse = exports.mockActionsDiscoveryResponse = void 0;
|
|
7
|
+
exports.mockExecuteActionResponseFailure = exports.mockExecuteActionResponse = exports.mockDatasourceDetailsResponse = exports.mockDatasourceDataResponseWithSchema = exports.mockDatasourceDataResponse = exports.mockActionsDiscoveryResponse = exports.mockActionsDiscoveryEmptyResponse = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _linkingTypes = require("@atlaskit/linking-types");
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -228,6 +228,12 @@ var mockActionsDiscoveryResponse = exports.mockActionsDiscoveryResponse = {
|
|
|
228
228
|
}]
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
+
var mockActionsDiscoveryEmptyResponse = exports.mockActionsDiscoveryEmptyResponse = {
|
|
232
|
+
actions: [],
|
|
233
|
+
permissions: {
|
|
234
|
+
data: []
|
|
235
|
+
}
|
|
236
|
+
};
|
|
231
237
|
var mockExecuteActionResponse = exports.mockExecuteActionResponse = {
|
|
232
238
|
operationStatus: _linkingTypes.ActionOperationStatus.SUCCESS,
|
|
233
239
|
errors: []
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
|
|
2
2
|
export { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from './services/use-data-source-client-extension';
|
|
3
|
-
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema } from './services/use-data-source-client-extension/mocks';
|
|
3
|
+
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryEmptyResponse } from './services/use-data-source-client-extension/mocks';
|
|
@@ -220,6 +220,12 @@ export const mockActionsDiscoveryResponse = {
|
|
|
220
220
|
}]
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
+
export const mockActionsDiscoveryEmptyResponse = {
|
|
224
|
+
actions: [],
|
|
225
|
+
permissions: {
|
|
226
|
+
data: []
|
|
227
|
+
}
|
|
228
|
+
};
|
|
223
229
|
export const mockExecuteActionResponse = {
|
|
224
230
|
operationStatus: ActionOperationStatus.SUCCESS,
|
|
225
231
|
errors: []
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
|
|
2
2
|
export { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension } from './services/use-data-source-client-extension';
|
|
3
|
-
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema } from './services/use-data-source-client-extension/mocks';
|
|
3
|
+
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryEmptyResponse } from './services/use-data-source-client-extension/mocks';
|
|
@@ -221,6 +221,12 @@ export var mockActionsDiscoveryResponse = {
|
|
|
221
221
|
}]
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
+
export var mockActionsDiscoveryEmptyResponse = {
|
|
225
|
+
actions: [],
|
|
226
|
+
permissions: {
|
|
227
|
+
data: []
|
|
228
|
+
}
|
|
229
|
+
};
|
|
224
230
|
export var mockExecuteActionResponse = {
|
|
225
231
|
operationStatus: ActionOperationStatus.SUCCESS,
|
|
226
232
|
errors: []
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
|
|
2
2
|
export { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension, } from './services/use-data-source-client-extension';
|
|
3
|
-
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, } from './services/use-data-source-client-extension/mocks';
|
|
3
|
+
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryEmptyResponse, } from './services/use-data-source-client-extension/mocks';
|
|
4
4
|
export type { JsonLdDatasourceResponse, DatasourceResolveResponse } from './types';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type ActionsDiscoveryResponse, type AtomicActionExecuteResponse, type DatasourceDataResponse, type DatasourceDetailsResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import { type ActionsDiscoveryResponse, type ActionsServiceDiscoveryResponse, type AtomicActionExecuteResponse, type DatasourceDataResponse, type DatasourceDetailsResponse } from '@atlaskit/linking-types';
|
|
2
2
|
export declare const mockDatasourceDataResponse: DatasourceDataResponse;
|
|
3
3
|
export declare const mockDatasourceDetailsResponse: DatasourceDetailsResponse;
|
|
4
4
|
export declare const mockDatasourceDataResponseWithSchema: DatasourceDataResponse;
|
|
5
5
|
export declare const mockActionsDiscoveryResponse: ActionsDiscoveryResponse;
|
|
6
|
+
export declare const mockActionsDiscoveryEmptyResponse: ActionsServiceDiscoveryResponse;
|
|
6
7
|
export declare const mockExecuteActionResponse: AtomicActionExecuteResponse;
|
|
7
8
|
export declare const mockExecuteActionResponseFailure: AtomicActionExecuteResponse;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
|
|
2
2
|
export { DEFAULT_GET_DATASOURCE_DATA_PAGE_SIZE, useDatasourceClientExtension, } from './services/use-data-source-client-extension';
|
|
3
|
-
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, } from './services/use-data-source-client-extension/mocks';
|
|
3
|
+
export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryEmptyResponse, } from './services/use-data-source-client-extension/mocks';
|
|
4
4
|
export type { JsonLdDatasourceResponse, DatasourceResolveResponse } from './types';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type ActionsDiscoveryResponse, type AtomicActionExecuteResponse, type DatasourceDataResponse, type DatasourceDetailsResponse } from '@atlaskit/linking-types';
|
|
1
|
+
import { type ActionsDiscoveryResponse, type ActionsServiceDiscoveryResponse, type AtomicActionExecuteResponse, type DatasourceDataResponse, type DatasourceDetailsResponse } from '@atlaskit/linking-types';
|
|
2
2
|
export declare const mockDatasourceDataResponse: DatasourceDataResponse;
|
|
3
3
|
export declare const mockDatasourceDetailsResponse: DatasourceDetailsResponse;
|
|
4
4
|
export declare const mockDatasourceDataResponseWithSchema: DatasourceDataResponse;
|
|
5
5
|
export declare const mockActionsDiscoveryResponse: ActionsDiscoveryResponse;
|
|
6
|
+
export declare const mockActionsDiscoveryEmptyResponse: ActionsServiceDiscoveryResponse;
|
|
6
7
|
export declare const mockExecuteActionResponse: AtomicActionExecuteResponse;
|
|
7
8
|
export declare const mockExecuteActionResponseFailure: AtomicActionExecuteResponse;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/link-client-extension",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Extension methods for linking platform client",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"releaseModel": "continuous",
|
|
14
14
|
"website": {
|
|
15
15
|
"name": "LinkClientExtension"
|
|
16
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"runReact18": true
|
|
17
18
|
},
|
|
18
19
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
19
20
|
"main": "dist/cjs/index.js",
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
".": "./src/index.ts"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@atlaskit/linking-common": "^5.
|
|
38
|
-
"@atlaskit/linking-types": "^8.
|
|
38
|
+
"@atlaskit/linking-common": "^5.9.0",
|
|
39
|
+
"@atlaskit/linking-types": "^8.13.0",
|
|
39
40
|
"@atlaskit/platform-feature-flags": "0.3.0",
|
|
40
41
|
"@babel/runtime": "^7.0.0",
|
|
41
42
|
"json-ld-types": "^4.1.0",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
46
|
"@atlaskit/link-provider": "^1.14.0",
|
|
46
|
-
"react": "^16.8.0"
|
|
47
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@atlassian/feature-flags-test-utils": "0.2.3",
|