@atlaskit/link-client-extension 2.3.0 → 2.4.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,22 @@
1
1
  # @atlaskit/link-client-extension
2
2
 
3
+ ## 2.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#151132](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151132)
8
+ [`3da1333fcf30d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3da1333fcf30d) -
9
+ Adds the 'origin-timezone' header to all cached requests by removing feature flag
10
+ platform.linking-platform.datasource.add-timezone-header
11
+
12
+ ## 2.4.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#141472](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141472)
17
+ [`fa7d87963ed8a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fa7d87963ed8a) -
18
+ Export new mock `mockDatasourceDataNoActionsResponse` for DS without actions
19
+
3
20
  ## 2.3.0
4
21
 
5
22
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "mockActionsDiscoveryResponse", {
21
21
  return _mocks.mockActionsDiscoveryResponse;
22
22
  }
23
23
  });
24
+ Object.defineProperty(exports, "mockDatasourceDataNoActionsResponse", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _mocks.mockDatasourceDataNoActionsResponse;
28
+ }
29
+ });
24
30
  Object.defineProperty(exports, "mockDatasourceDataResponse", {
25
31
  enumerable: true,
26
32
  get: function get() {
@@ -13,7 +13,6 @@ var _react = require("react");
13
13
  var _lru_map = require("lru_map");
14
14
  var _linkProvider = require("@atlaskit/link-provider");
15
15
  var _linkingCommon = require("@atlaskit/linking-common");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _useResolverUrl = require("../use-resolver-url");
18
17
  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; }
19
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -52,13 +51,13 @@ var useDatasourceClientExtension = exports.useDatasourceClientExtension = functi
52
51
  }
53
52
  return _context.abrupt("return", responsePromise);
54
53
  case 6:
55
- headers = (0, _platformFeatureFlags.fg)('platform.linking-platform.datasource.add-timezone-header') ? {
54
+ headers = {
56
55
  /**
57
- * This header exist to enable the backend to process relative time, eg: "today", with respect to user timezone.
56
+ * This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
58
57
  * eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
59
58
  */
60
59
  'origin-timezone': (_Intl = Intl) === null || _Intl === void 0 ? void 0 : _Intl.DateTimeFormat().resolvedOptions().timeZone
61
- } : undefined;
60
+ };
62
61
  _context.prev = 7;
63
62
  responsePromise = (0, _linkingCommon.request)('post', url, data, headers, [200, 201, 202, 203, 204]);
64
63
  lruMap.set(cacheKey, responsePromise);
@@ -4,12 +4,132 @@ 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 = exports.mockActionsDiscoveryEmptyResponse = void 0;
7
+ exports.mockExecuteActionResponseFailure = exports.mockExecuteActionResponse = exports.mockDatasourceDetailsResponse = exports.mockDatasourceDataResponseWithSchema = exports.mockDatasourceDataResponse = exports.mockDatasourceDataNoActionsResponse = 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; }
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  var mockDatasourceDataResponse = exports.mockDatasourceDataResponse = {
13
+ meta: {
14
+ key: 'jira-object-provider',
15
+ access: 'granted',
16
+ auth: [],
17
+ definitionId: 'object-resolver-service',
18
+ product: 'jira',
19
+ visibility: 'restricted',
20
+ extensionKey: 'jira-object-provider',
21
+ providerName: 'Jira',
22
+ destinationObjectTypes: ['issue'],
23
+ objectTypesEntity: 'work-item'
24
+ },
25
+ data: {
26
+ totalCount: 1234,
27
+ items: [{
28
+ ari: {
29
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10025'
30
+ },
31
+ id: {
32
+ data: 'EDM-12'
33
+ },
34
+ description: {
35
+ data: 'Design datasource feature'
36
+ },
37
+ createdAt: {
38
+ data: '2023-01-22T01:30:00.000-05:00'
39
+ },
40
+ assigned: {
41
+ data: {
42
+ displayName: 'Sasha'
43
+ }
44
+ },
45
+ status: {
46
+ data: {
47
+ text: 'In Progress',
48
+ style: {
49
+ appearance: 'inprogress'
50
+ }
51
+ }
52
+ }
53
+ }, {
54
+ ari: {
55
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10026'
56
+ },
57
+ id: {
58
+ data: 'EDM-14'
59
+ },
60
+ description: {
61
+ data: 'Implement datasource feature'
62
+ },
63
+ createdAt: {
64
+ data: '2023-03-01T01:30:00.000-05:00'
65
+ },
66
+ assigned: {
67
+ data: {
68
+ displayName: 'Hana'
69
+ }
70
+ },
71
+ status: {
72
+ data: {
73
+ text: 'To Do',
74
+ style: {
75
+ appearance: 'new'
76
+ }
77
+ }
78
+ }
79
+ }, {
80
+ ari: {
81
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10027'
82
+ },
83
+ id: {
84
+ data: 'EDM-15'
85
+ },
86
+ description: {
87
+ data: 'Add Jira Provider'
88
+ },
89
+ createdAt: {
90
+ data: '2023-03-31T01:30:00.000-05:00'
91
+ },
92
+ assigned: {
93
+ data: {
94
+ displayName: 'Princey'
95
+ }
96
+ },
97
+ status: {
98
+ data: {
99
+ text: 'To Do'
100
+ }
101
+ }
102
+ }, {
103
+ ari: {
104
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10028'
105
+ },
106
+ id: {
107
+ data: 'EDM-16'
108
+ },
109
+ description: {
110
+ data: 'Plan team party'
111
+ },
112
+ createdAt: {
113
+ data: '2023-05-01T01:30:00.000-05:00'
114
+ },
115
+ assigned: {
116
+ data: {
117
+ displayName: 'Nidhin'
118
+ }
119
+ },
120
+ status: {
121
+ data: {
122
+ text: 'Done',
123
+ style: {
124
+ appearance: 'success'
125
+ }
126
+ }
127
+ }
128
+ }],
129
+ nextPageCursor: 'c3RhcnRBdD01'
130
+ }
131
+ };
132
+ var mockDatasourceDataNoActionsResponse = exports.mockDatasourceDataNoActionsResponse = {
13
133
  meta: {
14
134
  key: 'jira-object-provider',
15
135
  access: 'granted',
@@ -210,7 +330,7 @@ var mockDatasourceDataResponseWithSchema = exports.mockDatasourceDataResponseWit
210
330
  });
211
331
  var mockActionsDiscoveryResponse = exports.mockActionsDiscoveryResponse = {
212
332
  actions: [{
213
- actionKey: 'atlassian:issue:update:summary',
333
+ actionKey: 'atlassian:work-item:update:summary',
214
334
  description: 'Updates issue summary',
215
335
  fieldKey: 'summary',
216
336
  integrationKey: 'jira',
@@ -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, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse } from './services/use-data-source-client-extension/mocks';
3
+ export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataNoActionsResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse } from './services/use-data-source-client-extension/mocks';
@@ -2,7 +2,6 @@ import { useCallback, useMemo } from 'react';
2
2
  import { LRUMap } from 'lru_map';
3
3
  import { useSmartLinkContext } from '@atlaskit/link-provider';
4
4
  import { request } from '@atlaskit/linking-common';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { useResolverUrl } from '../use-resolver-url';
7
6
  const URL_RESPONSE_CACHE_SIZE = 50;
8
7
  export const datasourceDetailsResponsePromiseCache = new LRUMap(URL_RESPONSE_CACHE_SIZE);
@@ -39,13 +38,13 @@ export const useDatasourceClientExtension = () => {
39
38
  if (responsePromise) {
40
39
  return responsePromise;
41
40
  }
42
- const headers = fg('platform.linking-platform.datasource.add-timezone-header') ? {
41
+ const headers = {
43
42
  /**
44
- * This header exist to enable the backend to process relative time, eg: "today", with respect to user timezone.
43
+ * This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
45
44
  * eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
46
45
  */
47
46
  'origin-timezone': (_Intl = Intl) === null || _Intl === void 0 ? void 0 : _Intl.DateTimeFormat().resolvedOptions().timeZone
48
- } : undefined;
47
+ };
49
48
  try {
50
49
  responsePromise = request('post', url, data, headers, [200, 201, 202, 203, 204]);
51
50
  lruMap.set(cacheKey, responsePromise);
@@ -1,5 +1,125 @@
1
1
  import { ActionOperationStatus } from '@atlaskit/linking-types';
2
2
  export const mockDatasourceDataResponse = {
3
+ meta: {
4
+ key: 'jira-object-provider',
5
+ access: 'granted',
6
+ auth: [],
7
+ definitionId: 'object-resolver-service',
8
+ product: 'jira',
9
+ visibility: 'restricted',
10
+ extensionKey: 'jira-object-provider',
11
+ providerName: 'Jira',
12
+ destinationObjectTypes: ['issue'],
13
+ objectTypesEntity: 'work-item'
14
+ },
15
+ data: {
16
+ totalCount: 1234,
17
+ items: [{
18
+ ari: {
19
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10025'
20
+ },
21
+ id: {
22
+ data: 'EDM-12'
23
+ },
24
+ description: {
25
+ data: 'Design datasource feature'
26
+ },
27
+ createdAt: {
28
+ data: '2023-01-22T01:30:00.000-05:00'
29
+ },
30
+ assigned: {
31
+ data: {
32
+ displayName: 'Sasha'
33
+ }
34
+ },
35
+ status: {
36
+ data: {
37
+ text: 'In Progress',
38
+ style: {
39
+ appearance: 'inprogress'
40
+ }
41
+ }
42
+ }
43
+ }, {
44
+ ari: {
45
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10026'
46
+ },
47
+ id: {
48
+ data: 'EDM-14'
49
+ },
50
+ description: {
51
+ data: 'Implement datasource feature'
52
+ },
53
+ createdAt: {
54
+ data: '2023-03-01T01:30:00.000-05:00'
55
+ },
56
+ assigned: {
57
+ data: {
58
+ displayName: 'Hana'
59
+ }
60
+ },
61
+ status: {
62
+ data: {
63
+ text: 'To Do',
64
+ style: {
65
+ appearance: 'new'
66
+ }
67
+ }
68
+ }
69
+ }, {
70
+ ari: {
71
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10027'
72
+ },
73
+ id: {
74
+ data: 'EDM-15'
75
+ },
76
+ description: {
77
+ data: 'Add Jira Provider'
78
+ },
79
+ createdAt: {
80
+ data: '2023-03-31T01:30:00.000-05:00'
81
+ },
82
+ assigned: {
83
+ data: {
84
+ displayName: 'Princey'
85
+ }
86
+ },
87
+ status: {
88
+ data: {
89
+ text: 'To Do'
90
+ }
91
+ }
92
+ }, {
93
+ ari: {
94
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10028'
95
+ },
96
+ id: {
97
+ data: 'EDM-16'
98
+ },
99
+ description: {
100
+ data: 'Plan team party'
101
+ },
102
+ createdAt: {
103
+ data: '2023-05-01T01:30:00.000-05:00'
104
+ },
105
+ assigned: {
106
+ data: {
107
+ displayName: 'Nidhin'
108
+ }
109
+ },
110
+ status: {
111
+ data: {
112
+ text: 'Done',
113
+ style: {
114
+ appearance: 'success'
115
+ }
116
+ }
117
+ }
118
+ }],
119
+ nextPageCursor: 'c3RhcnRBdD01'
120
+ }
121
+ };
122
+ export const mockDatasourceDataNoActionsResponse = {
3
123
  meta: {
4
124
  key: 'jira-object-provider',
5
125
  access: 'granted',
@@ -202,7 +322,7 @@ export const mockDatasourceDataResponseWithSchema = {
202
322
  };
203
323
  export const mockActionsDiscoveryResponse = {
204
324
  actions: [{
205
- actionKey: 'atlassian:issue:update:summary',
325
+ actionKey: 'atlassian:work-item:update:summary',
206
326
  description: 'Updates issue summary',
207
327
  fieldKey: 'summary',
208
328
  integrationKey: 'jira',
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, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse } from './services/use-data-source-client-extension/mocks';
3
+ export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataNoActionsResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse } from './services/use-data-source-client-extension/mocks';
@@ -8,7 +8,6 @@ import { useCallback, useMemo } from 'react';
8
8
  import { LRUMap } from 'lru_map';
9
9
  import { useSmartLinkContext } from '@atlaskit/link-provider';
10
10
  import { request } from '@atlaskit/linking-common';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { useResolverUrl } from '../use-resolver-url';
13
12
  var URL_RESPONSE_CACHE_SIZE = 50;
14
13
  export var datasourceDetailsResponsePromiseCache = new LRUMap(URL_RESPONSE_CACHE_SIZE);
@@ -45,13 +44,13 @@ export var useDatasourceClientExtension = function useDatasourceClientExtension(
45
44
  }
46
45
  return _context.abrupt("return", responsePromise);
47
46
  case 6:
48
- headers = fg('platform.linking-platform.datasource.add-timezone-header') ? {
47
+ headers = {
49
48
  /**
50
- * This header exist to enable the backend to process relative time, eg: "today", with respect to user timezone.
49
+ * This header exists to enable the backend to process relative time, eg: "today", with respect to user timezone.
51
50
  * eg: used in "confluence-object-provider" to process confluence SLLV requests to filter data for relative time.
52
51
  */
53
52
  'origin-timezone': (_Intl = Intl) === null || _Intl === void 0 ? void 0 : _Intl.DateTimeFormat().resolvedOptions().timeZone
54
- } : undefined;
53
+ };
55
54
  _context.prev = 7;
56
55
  responsePromise = request('post', url, data, headers, [200, 201, 202, 203, 204]);
57
56
  lruMap.set(cacheKey, responsePromise);
@@ -3,6 +3,126 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { ActionOperationStatus } from '@atlaskit/linking-types';
5
5
  export var mockDatasourceDataResponse = {
6
+ meta: {
7
+ key: 'jira-object-provider',
8
+ access: 'granted',
9
+ auth: [],
10
+ definitionId: 'object-resolver-service',
11
+ product: 'jira',
12
+ visibility: 'restricted',
13
+ extensionKey: 'jira-object-provider',
14
+ providerName: 'Jira',
15
+ destinationObjectTypes: ['issue'],
16
+ objectTypesEntity: 'work-item'
17
+ },
18
+ data: {
19
+ totalCount: 1234,
20
+ items: [{
21
+ ari: {
22
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10025'
23
+ },
24
+ id: {
25
+ data: 'EDM-12'
26
+ },
27
+ description: {
28
+ data: 'Design datasource feature'
29
+ },
30
+ createdAt: {
31
+ data: '2023-01-22T01:30:00.000-05:00'
32
+ },
33
+ assigned: {
34
+ data: {
35
+ displayName: 'Sasha'
36
+ }
37
+ },
38
+ status: {
39
+ data: {
40
+ text: 'In Progress',
41
+ style: {
42
+ appearance: 'inprogress'
43
+ }
44
+ }
45
+ }
46
+ }, {
47
+ ari: {
48
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10026'
49
+ },
50
+ id: {
51
+ data: 'EDM-14'
52
+ },
53
+ description: {
54
+ data: 'Implement datasource feature'
55
+ },
56
+ createdAt: {
57
+ data: '2023-03-01T01:30:00.000-05:00'
58
+ },
59
+ assigned: {
60
+ data: {
61
+ displayName: 'Hana'
62
+ }
63
+ },
64
+ status: {
65
+ data: {
66
+ text: 'To Do',
67
+ style: {
68
+ appearance: 'new'
69
+ }
70
+ }
71
+ }
72
+ }, {
73
+ ari: {
74
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10027'
75
+ },
76
+ id: {
77
+ data: 'EDM-15'
78
+ },
79
+ description: {
80
+ data: 'Add Jira Provider'
81
+ },
82
+ createdAt: {
83
+ data: '2023-03-31T01:30:00.000-05:00'
84
+ },
85
+ assigned: {
86
+ data: {
87
+ displayName: 'Princey'
88
+ }
89
+ },
90
+ status: {
91
+ data: {
92
+ text: 'To Do'
93
+ }
94
+ }
95
+ }, {
96
+ ari: {
97
+ data: 'ari:cloud:jira:3ac63b37-9bca-435e-9840-eff6f8739dba:issue/10028'
98
+ },
99
+ id: {
100
+ data: 'EDM-16'
101
+ },
102
+ description: {
103
+ data: 'Plan team party'
104
+ },
105
+ createdAt: {
106
+ data: '2023-05-01T01:30:00.000-05:00'
107
+ },
108
+ assigned: {
109
+ data: {
110
+ displayName: 'Nidhin'
111
+ }
112
+ },
113
+ status: {
114
+ data: {
115
+ text: 'Done',
116
+ style: {
117
+ appearance: 'success'
118
+ }
119
+ }
120
+ }
121
+ }],
122
+ nextPageCursor: 'c3RhcnRBdD01'
123
+ }
124
+ };
125
+ export var mockDatasourceDataNoActionsResponse = {
6
126
  meta: {
7
127
  key: 'jira-object-provider',
8
128
  access: 'granted',
@@ -203,7 +323,7 @@ export var mockDatasourceDataResponseWithSchema = _objectSpread(_objectSpread({}
203
323
  });
204
324
  export var mockActionsDiscoveryResponse = {
205
325
  actions: [{
206
- actionKey: 'atlassian:issue:update:summary',
326
+ actionKey: 'atlassian:work-item:update:summary',
207
327
  description: 'Updates issue summary',
208
328
  fieldKey: 'summary',
209
329
  integrationKey: 'jira',
@@ -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, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse, } from './services/use-data-source-client-extension/mocks';
3
+ export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataNoActionsResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse, } from './services/use-data-source-client-extension/mocks';
4
4
  export type { JsonLdDatasourceResponse, DatasourceResolveResponse } from './types';
@@ -1,5 +1,6 @@
1
1
  import { type ActionsDiscoveryResponse, type ActionsServiceDiscoveryResponse, type AtomicActionExecuteResponse, type DatasourceDataResponse, type DatasourceDetailsResponse } from '@atlaskit/linking-types';
2
2
  export declare const mockDatasourceDataResponse: DatasourceDataResponse;
3
+ export declare const mockDatasourceDataNoActionsResponse: DatasourceDataResponse;
3
4
  export declare const mockDatasourceDetailsResponse: DatasourceDetailsResponse;
4
5
  export declare const mockDatasourceDataResponseWithSchema: DatasourceDataResponse;
5
6
  export declare const mockActionsDiscoveryResponse: ActionsDiscoveryResponse;
@@ -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, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse, } from './services/use-data-source-client-extension/mocks';
3
+ export { mockDatasourceDetailsResponse as mockDatasourceResponse, mockDatasourceDetailsResponse, mockDatasourceDataResponse, mockDatasourceDataNoActionsResponse, mockDatasourceDataResponseWithSchema, mockActionsDiscoveryResponse, mockActionsDiscoveryEmptyResponse, } from './services/use-data-source-client-extension/mocks';
4
4
  export type { JsonLdDatasourceResponse, DatasourceResolveResponse } from './types';
@@ -1,5 +1,6 @@
1
1
  import { type ActionsDiscoveryResponse, type ActionsServiceDiscoveryResponse, type AtomicActionExecuteResponse, type DatasourceDataResponse, type DatasourceDetailsResponse } from '@atlaskit/linking-types';
2
2
  export declare const mockDatasourceDataResponse: DatasourceDataResponse;
3
+ export declare const mockDatasourceDataNoActionsResponse: DatasourceDataResponse;
3
4
  export declare const mockDatasourceDetailsResponse: DatasourceDetailsResponse;
4
5
  export declare const mockDatasourceDataResponseWithSchema: DatasourceDataResponse;
5
6
  export declare const mockActionsDiscoveryResponse: ActionsDiscoveryResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/link-client-extension",
3
- "version": "2.3.0",
3
+ "version": "2.4.1",
4
4
  "description": "Extension methods for linking platform client",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/linking-common": "^5.11.0",
36
+ "@atlaskit/linking-common": "^5.12.0",
37
37
  "@atlaskit/linking-types": "^9.0.0",
38
38
  "@atlaskit/platform-feature-flags": "0.3.0",
39
39
  "@babel/runtime": "^7.0.0",
@@ -41,7 +41,7 @@
41
41
  "lru_map": "^0.4.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "@atlaskit/link-provider": "^1.14.0",
44
+ "@atlaskit/link-provider": "^1.16.0",
45
45
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
46
46
  },
47
47
  "devDependencies": {
@@ -90,10 +90,5 @@
90
90
  "import-no-extraneous-disable-for-examples-and-docs"
91
91
  ]
92
92
  }
93
- },
94
- "platform-feature-flags": {
95
- "platform.linking-platform.datasource.add-timezone-header": {
96
- "type": "boolean"
97
- }
98
93
  }
99
94
  }