@atlaskit/link-client-extension 1.3.0 → 1.5.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,5 +1,25 @@
1
1
  # @atlaskit/link-client-extension
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`12411d70076`](https://bitbucket.org/atlassian/atlassian-frontend/commits/12411d70076) - export more datasource types in the linking-type index and remove the defaultProperties in the datasourceDataResponse
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 1.4.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [`04295e9d5bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/04295e9d5bc) - [ux] Updating ORS response to include datasources and facilitating pasting JQL links turning into datasource tables
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 1.3.0
4
24
 
5
25
  ### Minor Changes
@@ -187,8 +187,7 @@ exports.mockDatasourceResponse = mockDatasourceResponse;
187
187
  var mockDatasourceDataResponseWithSchema = _objectSpread(_objectSpread({}, mockDatasourceDataResponse), {}, {
188
188
  data: _objectSpread(_objectSpread({}, mockDatasourceDataResponse.data), {}, {
189
189
  schema: {
190
- properties: mockDatasourceResponse.data.schema.properties,
191
- defaultProperties: mockDatasourceResponse.data.schema.defaultProperties
190
+ properties: mockDatasourceResponse.data.schema.properties
192
191
  }
193
192
  })
194
193
  });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "sideEffects": false
5
5
  }
@@ -177,8 +177,7 @@ export const mockDatasourceDataResponseWithSchema = {
177
177
  data: {
178
178
  ...mockDatasourceDataResponse.data,
179
179
  schema: {
180
- properties: mockDatasourceResponse.data.schema.properties,
181
- defaultProperties: mockDatasourceResponse.data.schema.defaultProperties
180
+ properties: mockDatasourceResponse.data.schema.properties
182
181
  }
183
182
  }
184
183
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "sideEffects": false
5
5
  }
@@ -178,8 +178,7 @@ export var mockDatasourceResponse = {
178
178
  export var mockDatasourceDataResponseWithSchema = _objectSpread(_objectSpread({}, mockDatasourceDataResponse), {}, {
179
179
  data: _objectSpread(_objectSpread({}, mockDatasourceDataResponse.data), {}, {
180
180
  schema: {
181
- properties: mockDatasourceResponse.data.schema.properties,
182
- defaultProperties: mockDatasourceResponse.data.schema.defaultProperties
181
+ properties: mockDatasourceResponse.data.schema.properties
183
182
  }
184
183
  })
185
184
  });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
1
  export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
2
2
  export { useDatasourceClientExtension } from './services/use-data-source-client-extension';
3
3
  export { mockDatasourceResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, } from './services/use-data-source-client-extension/mocks';
4
+ export type { JsonLdDatasourceResponse, DatasourceResolveResponse, } from './types';
@@ -0,0 +1,13 @@
1
+ import { JsonLd } from 'json-ld-types';
2
+ import type { DatasourceParameters } from '@atlaskit/linking-types';
3
+ export interface JsonLdDatasourceResponse extends JsonLd.Response {
4
+ datasources?: DatasourceResolveResponse[];
5
+ }
6
+ export type DatasourceResolveResponse = {
7
+ id: string;
8
+ ari?: string;
9
+ key?: string;
10
+ name?: string;
11
+ description?: string;
12
+ parameters: DatasourceParameters;
13
+ };
@@ -1,3 +1,4 @@
1
1
  export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
2
2
  export { useDatasourceClientExtension } from './services/use-data-source-client-extension';
3
3
  export { mockDatasourceResponse, mockDatasourceDataResponse, mockDatasourceDataResponseWithSchema, } from './services/use-data-source-client-extension/mocks';
4
+ export type { JsonLdDatasourceResponse, DatasourceResolveResponse, } from './types';
@@ -0,0 +1,13 @@
1
+ import { JsonLd } from 'json-ld-types';
2
+ import type { DatasourceParameters } from '@atlaskit/linking-types';
3
+ export interface JsonLdDatasourceResponse extends JsonLd.Response {
4
+ datasources?: DatasourceResolveResponse[];
5
+ }
6
+ export type DatasourceResolveResponse = {
7
+ id: string;
8
+ ari?: string;
9
+ key?: string;
10
+ name?: string;
11
+ description?: string;
12
+ parameters: DatasourceParameters;
13
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Extension methods for linking platform client",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,9 +34,10 @@
34
34
  ".": "./src/index.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/linking-common": "^3.0.0",
38
- "@atlaskit/linking-types": "^7.0.0",
39
- "@babel/runtime": "^7.0.0"
37
+ "@atlaskit/linking-common": "^3.1.0",
38
+ "@atlaskit/linking-types": "^8.0.0",
39
+ "@babel/runtime": "^7.0.0",
40
+ "json-ld-types": "3.7.0"
40
41
  },
41
42
  "peerDependencies": {
42
43
  "@atlaskit/link-provider": "^1.6.4",
@@ -82,8 +83,11 @@
82
83
  "styling": [
83
84
  "static",
84
85
  "emotion"
86
+ ],
87
+ "imports": [
88
+ "import-no-extraneous-disable-for-examples-and-docs"
85
89
  ]
86
90
  }
87
91
  },
88
92
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
89
- }
93
+ }
package/report.api.md CHANGED
@@ -20,8 +20,26 @@ import type { DatasourceDataRequest } from '@atlaskit/linking-types';
20
20
  import type { DatasourceDataResponse } from '@atlaskit/linking-types';
21
21
  import type { DatasourceDetailsRequest } from '@atlaskit/linking-types';
22
22
  import type { DatasourceDetailsResponse } from '@atlaskit/linking-types';
23
+ import type { DatasourceParameters } from '@atlaskit/linking-types';
23
24
  import { InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
24
25
  import { InvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
26
+ import { JsonLd } from 'json-ld-types';
27
+
28
+ // @public (undocumented)
29
+ export type DatasourceResolveResponse = {
30
+ id: string;
31
+ ari?: string;
32
+ key?: string;
33
+ name?: string;
34
+ description?: string;
35
+ parameters: DatasourceParameters;
36
+ };
37
+
38
+ // @public (undocumented)
39
+ export interface JsonLdDatasourceResponse extends JsonLd.Response {
40
+ // (undocumented)
41
+ datasources?: DatasourceResolveResponse[];
42
+ }
25
43
 
26
44
  // @public (undocumented)
27
45
  export const mockDatasourceDataResponse: DatasourceDataResponse;
@@ -9,8 +9,26 @@ import type { DatasourceDataRequest } from '@atlaskit/linking-types';
9
9
  import type { DatasourceDataResponse } from '@atlaskit/linking-types';
10
10
  import type { DatasourceDetailsRequest } from '@atlaskit/linking-types';
11
11
  import type { DatasourceDetailsResponse } from '@atlaskit/linking-types';
12
+ import type { DatasourceParameters } from '@atlaskit/linking-types';
12
13
  import { InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
13
14
  import { InvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
15
+ import { JsonLd } from 'json-ld-types';
16
+
17
+ // @public (undocumented)
18
+ export type DatasourceResolveResponse = {
19
+ id: string;
20
+ ari?: string;
21
+ key?: string;
22
+ name?: string;
23
+ description?: string;
24
+ parameters: DatasourceParameters;
25
+ };
26
+
27
+ // @public (undocumented)
28
+ export interface JsonLdDatasourceResponse extends JsonLd.Response {
29
+ // (undocumented)
30
+ datasources?: DatasourceResolveResponse[];
31
+ }
14
32
 
15
33
  // @public (undocumented)
16
34
  export const mockDatasourceDataResponse: DatasourceDataResponse;