@atlaskit/link-client-extension 1.1.1 → 1.1.3

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,19 @@
1
1
  # @atlaskit/link-client-extension
2
2
 
3
+ ## 1.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e9ad7ee17bb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e9ad7ee17bb) - Updated mock response to the new `DatasourceType` value format
8
+ - Updated dependencies
9
+
10
+ ## 1.1.2
11
+
12
+ ### Patch Changes
13
+
14
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
15
+ - Updated dependencies
16
+
3
17
  ## 1.1.1
4
18
 
5
19
  ### Patch Changes
@@ -7,9 +7,15 @@ exports.mockDatasourceResponse = exports.mockDatasourceDataResponse = void 0;
7
7
  var mockDatasourceDataResponse = {
8
8
  totalIssues: 1234,
9
9
  data: [{
10
- id: 'EDM-12',
11
- description: 'Design datasource feature',
12
- createdAt: '2023-01-22T01:30:00.000-05:00',
10
+ id: {
11
+ value: 'EDM-12'
12
+ },
13
+ description: {
14
+ value: 'Design datasource feature'
15
+ },
16
+ createdAt: {
17
+ value: '2023-01-22T01:30:00.000-05:00'
18
+ },
13
19
  assigned: {
14
20
  displayName: 'Sasha'
15
21
  },
@@ -18,9 +24,15 @@ var mockDatasourceDataResponse = {
18
24
  status: 'inprogress'
19
25
  }
20
26
  }, {
21
- id: 'EDM-14',
22
- description: 'Implement datasource feature',
23
- createdAt: '2023-03-01T01:30:00.000-05:00',
27
+ id: {
28
+ value: 'EDM-14'
29
+ },
30
+ description: {
31
+ value: 'Implement datasource feature'
32
+ },
33
+ createdAt: {
34
+ value: '2023-03-01T01:30:00.000-05:00'
35
+ },
24
36
  assigned: {
25
37
  displayName: 'Hana'
26
38
  },
@@ -29,9 +41,15 @@ var mockDatasourceDataResponse = {
29
41
  status: 'new'
30
42
  }
31
43
  }, {
32
- id: 'EDM-15',
33
- description: 'Add Jira Provider',
34
- createdAt: '2023-03-31T01:30:00.000-05:00',
44
+ id: {
45
+ value: 'EDM-15'
46
+ },
47
+ description: {
48
+ value: 'Add Jira Provider'
49
+ },
50
+ createdAt: {
51
+ value: '2023-03-31T01:30:00.000-05:00'
52
+ },
35
53
  assigned: {
36
54
  displayName: 'Princey'
37
55
  },
@@ -40,9 +58,15 @@ var mockDatasourceDataResponse = {
40
58
  status: 'default'
41
59
  }
42
60
  }, {
43
- id: 'EDM-16',
44
- description: 'Plan team party',
45
- createdAt: '2023-05-01T01:30:00.000-05:00',
61
+ id: {
62
+ value: 'EDM-16'
63
+ },
64
+ description: {
65
+ value: 'Plan team party'
66
+ },
67
+ createdAt: {
68
+ value: '2023-05-01T01:30:00.000-05:00'
69
+ },
46
70
  assigned: {
47
71
  displayName: 'Nidhin'
48
72
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,9 +1,15 @@
1
1
  export const mockDatasourceDataResponse = {
2
2
  totalIssues: 1234,
3
3
  data: [{
4
- id: 'EDM-12',
5
- description: 'Design datasource feature',
6
- createdAt: '2023-01-22T01:30:00.000-05:00',
4
+ id: {
5
+ value: 'EDM-12'
6
+ },
7
+ description: {
8
+ value: 'Design datasource feature'
9
+ },
10
+ createdAt: {
11
+ value: '2023-01-22T01:30:00.000-05:00'
12
+ },
7
13
  assigned: {
8
14
  displayName: 'Sasha'
9
15
  },
@@ -12,9 +18,15 @@ export const mockDatasourceDataResponse = {
12
18
  status: 'inprogress'
13
19
  }
14
20
  }, {
15
- id: 'EDM-14',
16
- description: 'Implement datasource feature',
17
- createdAt: '2023-03-01T01:30:00.000-05:00',
21
+ id: {
22
+ value: 'EDM-14'
23
+ },
24
+ description: {
25
+ value: 'Implement datasource feature'
26
+ },
27
+ createdAt: {
28
+ value: '2023-03-01T01:30:00.000-05:00'
29
+ },
18
30
  assigned: {
19
31
  displayName: 'Hana'
20
32
  },
@@ -23,9 +35,15 @@ export const mockDatasourceDataResponse = {
23
35
  status: 'new'
24
36
  }
25
37
  }, {
26
- id: 'EDM-15',
27
- description: 'Add Jira Provider',
28
- createdAt: '2023-03-31T01:30:00.000-05:00',
38
+ id: {
39
+ value: 'EDM-15'
40
+ },
41
+ description: {
42
+ value: 'Add Jira Provider'
43
+ },
44
+ createdAt: {
45
+ value: '2023-03-31T01:30:00.000-05:00'
46
+ },
29
47
  assigned: {
30
48
  displayName: 'Princey'
31
49
  },
@@ -34,9 +52,15 @@ export const mockDatasourceDataResponse = {
34
52
  status: 'default'
35
53
  }
36
54
  }, {
37
- id: 'EDM-16',
38
- description: 'Plan team party',
39
- createdAt: '2023-05-01T01:30:00.000-05:00',
55
+ id: {
56
+ value: 'EDM-16'
57
+ },
58
+ description: {
59
+ value: 'Plan team party'
60
+ },
61
+ createdAt: {
62
+ value: '2023-05-01T01:30:00.000-05:00'
63
+ },
40
64
  assigned: {
41
65
  displayName: 'Nidhin'
42
66
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,9 +1,15 @@
1
1
  export var mockDatasourceDataResponse = {
2
2
  totalIssues: 1234,
3
3
  data: [{
4
- id: 'EDM-12',
5
- description: 'Design datasource feature',
6
- createdAt: '2023-01-22T01:30:00.000-05:00',
4
+ id: {
5
+ value: 'EDM-12'
6
+ },
7
+ description: {
8
+ value: 'Design datasource feature'
9
+ },
10
+ createdAt: {
11
+ value: '2023-01-22T01:30:00.000-05:00'
12
+ },
7
13
  assigned: {
8
14
  displayName: 'Sasha'
9
15
  },
@@ -12,9 +18,15 @@ export var mockDatasourceDataResponse = {
12
18
  status: 'inprogress'
13
19
  }
14
20
  }, {
15
- id: 'EDM-14',
16
- description: 'Implement datasource feature',
17
- createdAt: '2023-03-01T01:30:00.000-05:00',
21
+ id: {
22
+ value: 'EDM-14'
23
+ },
24
+ description: {
25
+ value: 'Implement datasource feature'
26
+ },
27
+ createdAt: {
28
+ value: '2023-03-01T01:30:00.000-05:00'
29
+ },
18
30
  assigned: {
19
31
  displayName: 'Hana'
20
32
  },
@@ -23,9 +35,15 @@ export var mockDatasourceDataResponse = {
23
35
  status: 'new'
24
36
  }
25
37
  }, {
26
- id: 'EDM-15',
27
- description: 'Add Jira Provider',
28
- createdAt: '2023-03-31T01:30:00.000-05:00',
38
+ id: {
39
+ value: 'EDM-15'
40
+ },
41
+ description: {
42
+ value: 'Add Jira Provider'
43
+ },
44
+ createdAt: {
45
+ value: '2023-03-31T01:30:00.000-05:00'
46
+ },
29
47
  assigned: {
30
48
  displayName: 'Princey'
31
49
  },
@@ -34,9 +52,15 @@ export var mockDatasourceDataResponse = {
34
52
  status: 'default'
35
53
  }
36
54
  }, {
37
- id: 'EDM-16',
38
- description: 'Plan team party',
39
- createdAt: '2023-05-01T01:30:00.000-05:00',
55
+ id: {
56
+ value: 'EDM-16'
57
+ },
58
+ description: {
59
+ value: 'Plan team party'
60
+ },
61
+ createdAt: {
62
+ value: '2023-05-01T01:30:00.000-05:00'
63
+ },
40
64
  assigned: {
41
65
  displayName: 'Nidhin'
42
66
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,3 @@
1
+ export { useSmartLinkClientExtension } from './services/use-smart-link-client-extension';
2
+ export { useDatasourceClientExtension } from './services/use-data-source-client-extension';
3
+ export { mockDatasourceResponse, mockDatasourceDataResponse, } from './services/use-data-source-client-extension/mocks';
@@ -0,0 +1,5 @@
1
+ import type { DatasourceDataRequest, DatasourceDataResponse, DatasourceParameters, DatasourceResponse } from '@atlaskit/linking-types';
2
+ export declare const useDatasourceClientExtension: () => {
3
+ getDatasourceDetails: (datasourceId: string, data: DatasourceParameters) => Promise<DatasourceResponse>;
4
+ getDatasourceData: (datasourceId: string, data: DatasourceDataRequest) => Promise<DatasourceDataResponse>;
5
+ };
@@ -0,0 +1,3 @@
1
+ import type { DatasourceDataResponse, DatasourceResponse } from '@atlaskit/linking-types';
2
+ export declare const mockDatasourceDataResponse: DatasourceDataResponse;
3
+ export declare const mockDatasourceResponse: DatasourceResponse;
@@ -0,0 +1,2 @@
1
+ import type { CardClient } from '@atlaskit/link-provider';
2
+ export declare const useResolverUrl: (cardClient: CardClient) => string;
@@ -0,0 +1,13 @@
1
+ import type { CardClient } from '@atlaskit/link-provider';
2
+ import { InvokeRequest, InvokeResponse } from '@atlaskit/linking-types/smart-link-actions';
3
+ /**
4
+ * useSmartLinkClientExtension
5
+ *
6
+ * This hook extends the usage of @atlaskit/link-provider CardClient
7
+ * for smart links.
8
+ *
9
+ * @param cardClient
10
+ */
11
+ export declare const useSmartLinkClientExtension: (cardClient: CardClient) => {
12
+ invoke: (data: InvokeRequest) => Promise<InvokeResponse>;
13
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Extension methods for linking platform client",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,12 +34,12 @@
34
34
  ".": "./src/index.ts"
35
35
  },
36
36
  "dependencies": {
37
- "@atlaskit/linking-common": "^2.9.0",
38
- "@atlaskit/linking-types": "^1.5.0",
37
+ "@atlaskit/linking-common": "^2.12.0",
38
+ "@atlaskit/linking-types": "^2.0.0",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@atlaskit/link-provider": "^1.6.1",
42
+ "@atlaskit/link-provider": "^1.6.2",
43
43
  "react": "^16.8.0"
44
44
  },
45
45
  "devDependencies": {
package/report.api.md CHANGED
@@ -57,7 +57,7 @@ export const useSmartLinkClientExtension: (cardClient: CardClient) => {
57
57
 
58
58
  ```json
59
59
  {
60
- "@atlaskit/link-provider": "^1.6.1",
60
+ "@atlaskit/link-provider": "^1.6.2",
61
61
  "react": "^16.8.0"
62
62
  }
63
63
  ```