@atlaskit/link-client-extension 1.4.0 → 1.5.1

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,21 @@
1
1
  # @atlaskit/link-client-extension
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
8
+
9
+ ## 1.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`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
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 1.4.0
4
20
 
5
21
  ### 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
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
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
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
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
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "Extension methods for linking platform client",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,8 +34,9 @@
34
34
  ".": "./src/index.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/linking-common": "^3.1.0",
38
- "@atlaskit/linking-types": "^7.0.0",
37
+ "@atlaskit/enforce-peer-dependencies": "^1.0.1",
38
+ "@atlaskit/linking-common": "^3.4.0",
39
+ "@atlaskit/linking-types": "^8.2.0",
39
40
  "@babel/runtime": "^7.0.0",
40
41
  "json-ld-types": "3.7.0"
41
42
  },
@@ -83,8 +84,14 @@
83
84
  "styling": [
84
85
  "static",
85
86
  "emotion"
87
+ ],
88
+ "imports": [
89
+ "import-no-extraneous-disable-for-examples-and-docs"
86
90
  ]
87
91
  }
88
92
  },
89
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
93
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
94
+ "scripts": {
95
+ "postinstall": "npx enforce-peer-dependencies --internal-packages"
96
+ }
90
97
  }
@@ -1,55 +0,0 @@
1
- ## API Report File for "@atlaskit/link-client-extension"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import type { CardClient } from '@atlaskit/link-provider';
8
- import type { DatasourceDataRequest } from '@atlaskit/linking-types';
9
- import type { DatasourceDataResponse } from '@atlaskit/linking-types';
10
- import type { DatasourceDetailsRequest } from '@atlaskit/linking-types';
11
- import type { DatasourceDetailsResponse } from '@atlaskit/linking-types';
12
- import type { DatasourceParameters } from '@atlaskit/linking-types';
13
- import { InvokeRequest } from '@atlaskit/linking-types/smart-link-actions';
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
- }
32
-
33
- // @public (undocumented)
34
- export const mockDatasourceDataResponse: DatasourceDataResponse;
35
-
36
- // @public (undocumented)
37
- export const mockDatasourceDataResponseWithSchema: DatasourceDataResponse;
38
-
39
- // @public (undocumented)
40
- export const mockDatasourceResponse: DatasourceDetailsResponse;
41
-
42
- // @public (undocumented)
43
- export const useDatasourceClientExtension: () => {
44
- getDatasourceDetails: (datasourceId: string, data: DatasourceDetailsRequest) => Promise<DatasourceDetailsResponse>;
45
- getDatasourceData: (datasourceId: string, data: DatasourceDataRequest) => Promise<DatasourceDataResponse>;
46
- };
47
-
48
- // @public
49
- export const useSmartLinkClientExtension: (cardClient: CardClient) => {
50
- invoke: (data: InvokeRequest) => Promise<InvokeResponse>;
51
- };
52
-
53
- // (No @packageDocumentation comment for this package)
54
-
55
- ```