@atlaskit/editor-synced-block-provider 6.5.2 → 6.6.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.
Files changed (206) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/blockService/ari/package.json +17 -0
  3. package/blockService/package.json +17 -0
  4. package/blockSubscription/package.json +17 -0
  5. package/clients/confluence/ari/package.json +5 -5
  6. package/common/types/package.json +5 -5
  7. package/dist/cjs/clients/jira/sourceInfo.js +63 -10
  8. package/dist/cjs/entry-points/blockService-ari.js +24 -0
  9. package/dist/cjs/entry-points/blockService.js +18 -0
  10. package/dist/cjs/entry-points/blockServiceAPI.js +54 -0
  11. package/dist/cjs/entry-points/blockSubscription.js +18 -0
  12. package/dist/cjs/entry-points/common-types.js +12 -0
  13. package/dist/cjs/entry-points/confluence-ari.js +18 -0
  14. package/dist/cjs/entry-points/errorHandling.js +12 -0
  15. package/dist/cjs/entry-points/fetchJiraMediaToken.js +12 -0
  16. package/dist/cjs/entry-points/fetchMediaToken.js +12 -0
  17. package/dist/cjs/entry-points/jira-ari.js +18 -0
  18. package/dist/cjs/entry-points/providers-types.js +1 -0
  19. package/dist/cjs/entry-points/rebaseTransaction.js +12 -0
  20. package/dist/cjs/entry-points/referenceSyncBlockStoreManager.js +12 -0
  21. package/dist/cjs/entry-points/requestJiraIssueAccess.js +12 -0
  22. package/dist/cjs/entry-points/resolveSyncBlockInstance.js +12 -0
  23. package/dist/cjs/entry-points/resourceId.js +18 -0
  24. package/dist/cjs/entry-points/sourceInfo.js +12 -0
  25. package/dist/cjs/entry-points/syncBlockInMemorySessionCache.js +18 -0
  26. package/dist/cjs/entry-points/syncBlockProvider.js +18 -0
  27. package/dist/cjs/entry-points/syncBlockStoreManager.js +18 -0
  28. package/dist/cjs/entry-points/tokenRouting.js +18 -0
  29. package/dist/cjs/entry-points/useFetchSyncBlockData.js +12 -0
  30. package/dist/cjs/entry-points/useFetchSyncBlockTitle.js +12 -0
  31. package/dist/cjs/entry-points/useHandleContentChanges.js +12 -0
  32. package/dist/cjs/entry-points/utils.js +60 -0
  33. package/dist/cjs/entry-points/validValue.js +18 -0
  34. package/dist/cjs/hooks/useFetchSyncBlockData.js +1 -1
  35. package/dist/cjs/providers/types.js +6 -0
  36. package/dist/cjs/store-manager/referenceSyncBlockStoreManager.js +24 -12
  37. package/dist/cjs/store-manager/sourceSyncBlockStoreManager.js +18 -15
  38. package/dist/cjs/store-manager/syncBlockBatchFetcher.js +1 -1
  39. package/dist/cjs/store-manager/syncBlockProviderFactoryManager.js +6 -4
  40. package/dist/cjs/store-manager/syncBlockStoreManager.js +2 -1
  41. package/dist/cjs/store-manager/syncBlockSubscriptionManager.js +9 -5
  42. package/dist/cjs/utils/errorHandling.js +41 -26
  43. package/dist/cjs/utils/resolveSyncBlockInstance.js +11 -10
  44. package/dist/cjs/utils/utils.js +30 -2
  45. package/dist/es2019/clients/jira/sourceInfo.js +64 -4
  46. package/dist/es2019/entry-points/blockService-ari.js +2 -0
  47. package/dist/es2019/entry-points/blockService.js +2 -0
  48. package/dist/es2019/entry-points/blockServiceAPI.js +2 -0
  49. package/dist/es2019/entry-points/blockSubscription.js +2 -0
  50. package/dist/es2019/entry-points/common-types.js +2 -0
  51. package/dist/es2019/entry-points/confluence-ari.js +2 -0
  52. package/dist/es2019/entry-points/errorHandling.js +2 -0
  53. package/dist/es2019/entry-points/fetchJiraMediaToken.js +2 -0
  54. package/dist/es2019/entry-points/fetchMediaToken.js +2 -0
  55. package/dist/es2019/entry-points/jira-ari.js +2 -0
  56. package/dist/es2019/entry-points/providers-types.js +0 -0
  57. package/dist/es2019/entry-points/rebaseTransaction.js +2 -0
  58. package/dist/es2019/entry-points/referenceSyncBlockStoreManager.js +2 -0
  59. package/dist/es2019/entry-points/requestJiraIssueAccess.js +2 -0
  60. package/dist/es2019/entry-points/resolveSyncBlockInstance.js +2 -0
  61. package/dist/es2019/entry-points/resourceId.js +2 -0
  62. package/dist/es2019/entry-points/sourceInfo.js +2 -0
  63. package/dist/es2019/entry-points/syncBlockInMemorySessionCache.js +2 -0
  64. package/dist/es2019/entry-points/syncBlockProvider.js +2 -0
  65. package/dist/es2019/entry-points/syncBlockStoreManager.js +2 -0
  66. package/dist/es2019/entry-points/tokenRouting.js +2 -0
  67. package/dist/es2019/entry-points/useFetchSyncBlockData.js +2 -0
  68. package/dist/es2019/entry-points/useFetchSyncBlockTitle.js +2 -0
  69. package/dist/es2019/entry-points/useHandleContentChanges.js +2 -0
  70. package/dist/es2019/entry-points/utils.js +2 -0
  71. package/dist/es2019/entry-points/validValue.js +2 -0
  72. package/dist/es2019/hooks/useFetchSyncBlockData.js +2 -2
  73. package/dist/es2019/providers/syncBlockProvider.js +4 -2
  74. package/dist/es2019/providers/types.js +7 -0
  75. package/dist/es2019/store-manager/referenceSyncBlockStoreManager.js +25 -13
  76. package/dist/es2019/store-manager/sourceSyncBlockStoreManager.js +19 -16
  77. package/dist/es2019/store-manager/syncBlockBatchFetcher.js +2 -2
  78. package/dist/es2019/store-manager/syncBlockProviderFactoryManager.js +6 -4
  79. package/dist/es2019/store-manager/syncBlockStoreManager.js +2 -1
  80. package/dist/es2019/store-manager/syncBlockSubscriptionManager.js +9 -5
  81. package/dist/es2019/utils/errorHandling.js +33 -14
  82. package/dist/es2019/utils/resolveSyncBlockInstance.js +11 -10
  83. package/dist/es2019/utils/utils.js +26 -0
  84. package/dist/esm/clients/jira/sourceInfo.js +63 -11
  85. package/dist/esm/entry-points/blockService-ari.js +2 -0
  86. package/dist/esm/entry-points/blockService.js +2 -0
  87. package/dist/esm/entry-points/blockServiceAPI.js +2 -0
  88. package/dist/esm/entry-points/blockSubscription.js +2 -0
  89. package/dist/esm/entry-points/common-types.js +2 -0
  90. package/dist/esm/entry-points/confluence-ari.js +2 -0
  91. package/dist/esm/entry-points/errorHandling.js +2 -0
  92. package/dist/esm/entry-points/fetchJiraMediaToken.js +2 -0
  93. package/dist/esm/entry-points/fetchMediaToken.js +2 -0
  94. package/dist/esm/entry-points/jira-ari.js +2 -0
  95. package/dist/esm/entry-points/providers-types.js +0 -0
  96. package/dist/esm/entry-points/rebaseTransaction.js +2 -0
  97. package/dist/esm/entry-points/referenceSyncBlockStoreManager.js +2 -0
  98. package/dist/esm/entry-points/requestJiraIssueAccess.js +2 -0
  99. package/dist/esm/entry-points/resolveSyncBlockInstance.js +2 -0
  100. package/dist/esm/entry-points/resourceId.js +2 -0
  101. package/dist/esm/entry-points/sourceInfo.js +2 -0
  102. package/dist/esm/entry-points/syncBlockInMemorySessionCache.js +2 -0
  103. package/dist/esm/entry-points/syncBlockProvider.js +2 -0
  104. package/dist/esm/entry-points/syncBlockStoreManager.js +2 -0
  105. package/dist/esm/entry-points/tokenRouting.js +2 -0
  106. package/dist/esm/entry-points/useFetchSyncBlockData.js +2 -0
  107. package/dist/esm/entry-points/useFetchSyncBlockTitle.js +2 -0
  108. package/dist/esm/entry-points/useHandleContentChanges.js +2 -0
  109. package/dist/esm/entry-points/utils.js +2 -0
  110. package/dist/esm/entry-points/validValue.js +2 -0
  111. package/dist/esm/hooks/useFetchSyncBlockData.js +2 -2
  112. package/dist/esm/providers/types.js +7 -0
  113. package/dist/esm/store-manager/referenceSyncBlockStoreManager.js +25 -13
  114. package/dist/esm/store-manager/sourceSyncBlockStoreManager.js +19 -16
  115. package/dist/esm/store-manager/syncBlockBatchFetcher.js +2 -2
  116. package/dist/esm/store-manager/syncBlockProviderFactoryManager.js +6 -4
  117. package/dist/esm/store-manager/syncBlockStoreManager.js +2 -1
  118. package/dist/esm/store-manager/syncBlockSubscriptionManager.js +9 -5
  119. package/dist/esm/utils/errorHandling.js +41 -26
  120. package/dist/esm/utils/resolveSyncBlockInstance.js +11 -10
  121. package/dist/esm/utils/utils.js +29 -1
  122. package/dist/types/clients/jira/sourceInfo.d.ts +20 -0
  123. package/dist/types/common/types.d.ts +2 -1
  124. package/dist/types/entry-points/blockService-ari.d.ts +1 -0
  125. package/dist/types/entry-points/blockService.d.ts +2 -0
  126. package/dist/types/entry-points/blockServiceAPI.d.ts +1 -0
  127. package/dist/types/entry-points/blockSubscription.d.ts +1 -0
  128. package/dist/types/entry-points/common-types.d.ts +2 -0
  129. package/dist/types/entry-points/confluence-ari.d.ts +1 -0
  130. package/dist/types/entry-points/errorHandling.d.ts +1 -0
  131. package/dist/types/entry-points/fetchJiraMediaToken.d.ts +1 -0
  132. package/dist/types/entry-points/fetchMediaToken.d.ts +2 -0
  133. package/dist/types/entry-points/jira-ari.d.ts +1 -0
  134. package/dist/types/entry-points/providers-types.d.ts +1 -0
  135. package/dist/types/entry-points/rebaseTransaction.d.ts +1 -0
  136. package/dist/types/entry-points/referenceSyncBlockStoreManager.d.ts +1 -0
  137. package/dist/types/entry-points/requestJiraIssueAccess.d.ts +2 -0
  138. package/dist/types/entry-points/resolveSyncBlockInstance.d.ts +1 -0
  139. package/dist/types/entry-points/resourceId.d.ts +1 -0
  140. package/dist/types/entry-points/sourceInfo.d.ts +1 -0
  141. package/dist/types/entry-points/syncBlockInMemorySessionCache.d.ts +1 -0
  142. package/dist/types/entry-points/syncBlockProvider.d.ts +1 -0
  143. package/dist/types/entry-points/syncBlockStoreManager.d.ts +1 -0
  144. package/dist/types/entry-points/tokenRouting.d.ts +1 -0
  145. package/dist/types/entry-points/useFetchSyncBlockData.d.ts +2 -0
  146. package/dist/types/entry-points/useFetchSyncBlockTitle.d.ts +1 -0
  147. package/dist/types/entry-points/useHandleContentChanges.d.ts +1 -0
  148. package/dist/types/entry-points/utils.d.ts +1 -0
  149. package/dist/types/entry-points/validValue.d.ts +1 -0
  150. package/dist/types/providers/types.d.ts +17 -0
  151. package/dist/types/utils/errorHandling.d.ts +13 -12
  152. package/dist/types/utils/utils.d.ts +3 -1
  153. package/dist/types-ts4.5/clients/jira/sourceInfo.d.ts +20 -0
  154. package/dist/types-ts4.5/common/types.d.ts +2 -1
  155. package/dist/types-ts4.5/entry-points/blockService-ari.d.ts +1 -0
  156. package/dist/types-ts4.5/entry-points/blockService.d.ts +2 -0
  157. package/dist/types-ts4.5/entry-points/blockServiceAPI.d.ts +1 -0
  158. package/dist/types-ts4.5/entry-points/blockSubscription.d.ts +1 -0
  159. package/dist/types-ts4.5/entry-points/common-types.d.ts +2 -0
  160. package/dist/types-ts4.5/entry-points/confluence-ari.d.ts +1 -0
  161. package/dist/types-ts4.5/entry-points/errorHandling.d.ts +1 -0
  162. package/dist/types-ts4.5/entry-points/fetchJiraMediaToken.d.ts +1 -0
  163. package/dist/types-ts4.5/entry-points/fetchMediaToken.d.ts +2 -0
  164. package/dist/types-ts4.5/entry-points/jira-ari.d.ts +1 -0
  165. package/dist/types-ts4.5/entry-points/providers-types.d.ts +1 -0
  166. package/dist/types-ts4.5/entry-points/rebaseTransaction.d.ts +1 -0
  167. package/dist/types-ts4.5/entry-points/referenceSyncBlockStoreManager.d.ts +1 -0
  168. package/dist/types-ts4.5/entry-points/requestJiraIssueAccess.d.ts +2 -0
  169. package/dist/types-ts4.5/entry-points/resolveSyncBlockInstance.d.ts +1 -0
  170. package/dist/types-ts4.5/entry-points/resourceId.d.ts +1 -0
  171. package/dist/types-ts4.5/entry-points/sourceInfo.d.ts +1 -0
  172. package/dist/types-ts4.5/entry-points/syncBlockInMemorySessionCache.d.ts +1 -0
  173. package/dist/types-ts4.5/entry-points/syncBlockProvider.d.ts +1 -0
  174. package/dist/types-ts4.5/entry-points/syncBlockStoreManager.d.ts +1 -0
  175. package/dist/types-ts4.5/entry-points/tokenRouting.d.ts +1 -0
  176. package/dist/types-ts4.5/entry-points/useFetchSyncBlockData.d.ts +2 -0
  177. package/dist/types-ts4.5/entry-points/useFetchSyncBlockTitle.d.ts +1 -0
  178. package/dist/types-ts4.5/entry-points/useHandleContentChanges.d.ts +1 -0
  179. package/dist/types-ts4.5/entry-points/utils.d.ts +1 -0
  180. package/dist/types-ts4.5/entry-points/validValue.d.ts +1 -0
  181. package/dist/types-ts4.5/providers/types.d.ts +17 -0
  182. package/dist/types-ts4.5/utils/errorHandling.d.ts +13 -12
  183. package/dist/types-ts4.5/utils/utils.d.ts +3 -1
  184. package/errorHandling/package.json +17 -0
  185. package/fetchJiraMediaToken/package.json +5 -5
  186. package/fetchMediaToken/package.json +17 -0
  187. package/jira/ari/package.json +17 -0
  188. package/package.json +7 -4
  189. package/providers/block-service/blockServiceAPI/package.json +5 -5
  190. package/providers/types/package.json +5 -5
  191. package/rebaseTransaction/package.json +17 -0
  192. package/referenceSyncBlockStoreManager/package.json +17 -0
  193. package/requestJiraIssueAccess/package.json +5 -5
  194. package/resolveSyncBlockInstance/package.json +17 -0
  195. package/sourceInfo/package.json +17 -0
  196. package/syncBlockInMemorySessionCache/package.json +17 -0
  197. package/syncBlockProvider/package.json +17 -0
  198. package/syncBlockStoreManager/package.json +17 -0
  199. package/tokenRouting/package.json +5 -5
  200. package/types/package.json +17 -0
  201. package/useFetchSyncBlockData/package.json +17 -0
  202. package/useFetchSyncBlockTitle/package.json +17 -0
  203. package/useHandleContentChanges/package.json +17 -0
  204. package/utils/package.json +17 -0
  205. package/utils/resourceId/package.json +5 -5
  206. package/validValue/package.json +17 -0
@@ -15,7 +15,7 @@ import { SyncBlockError } from '../common/types';
15
15
  * @returns A merged SyncBlockInstance object.
16
16
  */
17
17
  export var resolveSyncBlockInstance = function resolveSyncBlockInstance(oldResult, newResult) {
18
- var _newResult$data, _oldResult$data, _newResult$data2, _oldResult$data2, _newResult$data3, _oldResult$data3;
18
+ var _newResult$data, _oldResult$data, _newResult$data2, _oldResult$data2, _newResult$data3, _oldResult$data3, _newResult$data4, _oldResult$data4;
19
19
  // if the old result has no data, we simply return the new result
20
20
  if (!oldResult.data) {
21
21
  return newResult;
@@ -35,29 +35,30 @@ export var resolveSyncBlockInstance = function resolveSyncBlockInstance(oldResul
35
35
  sourceURL: ((_newResult$data = newResult.data) === null || _newResult$data === void 0 ? void 0 : _newResult$data.sourceURL) || ((_oldResult$data = oldResult.data) === null || _oldResult$data === void 0 ? void 0 : _oldResult$data.sourceURL) || undefined,
36
36
  sourceTitle: ((_newResult$data2 = newResult.data) === null || _newResult$data2 === void 0 ? void 0 : _newResult$data2.sourceTitle) || ((_oldResult$data2 = oldResult.data) === null || _oldResult$data2 === void 0 ? void 0 : _oldResult$data2.sourceTitle) || undefined,
37
37
  sourceSubType: mergeSubType(oldResult, newResult),
38
- onSameDocument: ((_newResult$data3 = newResult.data) === null || _newResult$data3 === void 0 ? void 0 : _newResult$data3.onSameDocument) || ((_oldResult$data3 = oldResult.data) === null || _oldResult$data3 === void 0 ? void 0 : _oldResult$data3.onSameDocument) || undefined
38
+ onSameDocument: ((_newResult$data3 = newResult.data) === null || _newResult$data3 === void 0 ? void 0 : _newResult$data3.onSameDocument) || ((_oldResult$data3 = oldResult.data) === null || _oldResult$data3 === void 0 ? void 0 : _oldResult$data3.onSameDocument) || undefined,
39
+ issueType: ((_newResult$data4 = newResult.data) === null || _newResult$data4 === void 0 ? void 0 : _newResult$data4.issueType) || ((_oldResult$data4 = oldResult.data) === null || _oldResult$data4 === void 0 ? void 0 : _oldResult$data4.issueType) || undefined
39
40
  })
40
41
  });
41
42
  };
42
43
  var mergeSubType = function mergeSubType(oldResult, newResult) {
43
- var _newResult$data4, _newResult$data5, _oldResult$data4;
44
+ var _newResult$data5, _newResult$data6, _oldResult$data5;
44
45
  // for classic pages, subType is 'null'
45
- if (((_newResult$data4 = newResult.data) === null || _newResult$data4 === void 0 ? void 0 : _newResult$data4.sourceSubType) !== undefined) {
46
+ if (((_newResult$data5 = newResult.data) === null || _newResult$data5 === void 0 ? void 0 : _newResult$data5.sourceSubType) !== undefined) {
46
47
  return newResult.data.sourceSubType;
47
48
  }
48
- if ((_newResult$data5 = newResult.data) !== null && _newResult$data5 !== void 0 && _newResult$data5.sourceAri) {
49
+ if ((_newResult$data6 = newResult.data) !== null && _newResult$data6 !== void 0 && _newResult$data6.sourceAri) {
49
50
  // for blogposts, subType is always undefined
50
51
  try {
51
- var _newResult$data6;
52
+ var _newResult$data7;
52
53
  var _getPageIdAndTypeFrom = getPageIdAndTypeFromConfluencePageAri({
53
- ari: (_newResult$data6 = newResult.data) === null || _newResult$data6 === void 0 ? void 0 : _newResult$data6.sourceAri
54
+ ari: (_newResult$data7 = newResult.data) === null || _newResult$data7 === void 0 ? void 0 : _newResult$data7.sourceAri
54
55
  }),
55
56
  pageType = _getPageIdAndTypeFrom.type;
56
57
  if (pageType === 'blogpost') {
57
- var _newResult$data7;
58
- return (_newResult$data7 = newResult.data) === null || _newResult$data7 === void 0 ? void 0 : _newResult$data7.sourceSubType;
58
+ var _newResult$data8;
59
+ return (_newResult$data8 = newResult.data) === null || _newResult$data8 === void 0 ? void 0 : _newResult$data8.sourceSubType;
59
60
  }
60
61
  } catch (_unused) {}
61
62
  }
62
- return (_oldResult$data4 = oldResult.data) === null || _oldResult$data4 === void 0 ? void 0 : _oldResult$data4.sourceSubType;
63
+ return (_oldResult$data5 = oldResult.data) === null || _oldResult$data5 === void 0 ? void 0 : _oldResult$data5.sourceSubType;
63
64
  };
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable require-unicode-regexp */
2
2
 
3
+ import { fg } from '@atlaskit/platform-feature-flags';
3
4
  export var convertSyncBlockPMNodeToSyncBlockData = function convertSyncBlockPMNodeToSyncBlockData(node) {
4
5
  return {
5
6
  blockInstanceId: node.attrs.localId,
@@ -52,11 +53,38 @@ export var getContentIdAndProductFromResourceId = function getContentIdAndProduc
52
53
  }
53
54
  throw new Error("Invalid resourceId: ".concat(resourceId));
54
55
  };
56
+
57
+ /*
58
+ * Safe variant of `getContentIdAndProductFromResourceId` for analytics call-sites.
59
+ * Returns `undefined` instead of throwing when the resourceId is missing or malformed,
60
+ * so a bad value can never break the analytics pipeline.
61
+ */
62
+ export var getSourceProductFromResourceIdSafe = function getSourceProductFromResourceIdSafe(resourceId) {
63
+ if (!resourceId) {
64
+ return undefined;
65
+ }
66
+ try {
67
+ return getContentIdAndProductFromResourceId(resourceId).sourceProduct;
68
+ } catch (_unused) {
69
+ return undefined;
70
+ }
71
+ };
72
+
73
+ /*
74
+ * Convenience wrapper around `getSourceProductFromResourceIdSafe` that returns
75
+ * `undefined` whenever the `platform_synced_block_patch_11` rollout flag is off.
76
+ * Centralised so that the flag name lives in exactly one place — when the flag is
77
+ * cleaned up, this function should be deleted in its entirety and call-sites should
78
+ * fall back to calling `getSourceProductFromResourceIdSafe` directly.
79
+ */
80
+ export var productAttrIfGateOn = function productAttrIfGateOn(resourceId) {
81
+ return fg('platform_synced_block_patch_11') ? getSourceProductFromResourceIdSafe(resourceId) : undefined;
82
+ };
55
83
  export var convertContentUpdatedAt = function convertContentUpdatedAt(contentUpdatedAt) {
56
84
  if (typeof contentUpdatedAt === 'number') {
57
85
  try {
58
86
  return new Date(contentUpdatedAt).toISOString();
59
- } catch (_unused) {
87
+ } catch (_unused2) {
60
88
  return undefined;
61
89
  }
62
90
  }
@@ -1,2 +1,22 @@
1
1
  import type { SyncBlockSourceInfo } from '../../providers/types';
2
+ /**
3
+ * Fetch source-info metadata for a Jira work item used by reference sync blocks.
4
+ *
5
+ * Parity notes vs the Confluence equivalent (`fetchConfluencePageInfo`):
6
+ *
7
+ * - **Archived / draft URL variants** are intentionally omitted. Confluence pages can be
8
+ * "unpublished" (draft, archived, in-trash) and need REST fallbacks plus alternate URL
9
+ * shapes. Jira work items have no equivalent lifecycle — an issue either exists in AGG
10
+ * or it does not — so a single `webUrl` is sufficient.
11
+ *
12
+ * - **`#block-{localId}` deep-link anchor** is intentionally not appended. The current
13
+ * Jira issue view does not implement scroll-to-anchor for unknown fragments, so the
14
+ * anchor would be dead weight on the URL. The dispatching code in
15
+ * `syncBlockProvider.fetchSyncBlockSourceInfo` deliberately does not pass `localId`
16
+ * here for the same reason. If/when Jira issue view supports anchor scrolling for
17
+ * sync-block local IDs, accept `localId?: string` here and append `#block-{localId}`.
18
+ *
19
+ * - **`subType` / page-type variants** are not modeled — Jira issue type is exposed via
20
+ * the separate `issueType` field returned alongside `summary` / `webUrl`.
21
+ */
2
22
  export declare const fetchJiraWorkItemInfo: (workItemAri: string, hasAccess: boolean) => Promise<SyncBlockSourceInfo | undefined>;
@@ -1,6 +1,6 @@
1
1
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { JSONNode } from '@atlaskit/editor-json-transformer/types';
3
- import type { SyncBlockInstance, SyncBlockSourceInfo } from '../providers/types';
3
+ import type { SyncBlockInstance, SyncBlockJiraIssueType, SyncBlockSourceInfo } from '../providers/types';
4
4
  import type { SYNC_BLOCK_PRODUCTS } from './consts';
5
5
  export type BlockInstanceId = string;
6
6
  export type ResourceId = string;
@@ -36,6 +36,7 @@ export interface SyncBlockData {
36
36
  createdAt?: string;
37
37
  createdBy?: string;
38
38
  deletionReason?: DeletionReason;
39
+ issueType?: SyncBlockJiraIssueType;
39
40
  isSynced?: boolean;
40
41
  /**
41
42
  * Whether the block is on the same page as the source block
@@ -0,0 +1 @@
1
+ export { generateBlockAri, generateBlockAriFromReference, getLocalIdFromBlockResourceId, } from '../clients/block-service/ari';
@@ -0,0 +1,2 @@
1
+ export { BlockError, updateSyncedBlocks } from '../clients/block-service/blockService';
2
+ export type { BlockContentResponse, BatchRetrieveSyncedBlocksResponse, ErrorResponse, } from '../clients/block-service/blockService';
@@ -0,0 +1 @@
1
+ export { useMemoizedBlockServiceAPIProviders, useMemoizedBlockServiceFetchOnlyAPIProvider, fetchReferences, batchFetchData, writeDataBatch, blockAriToResourceId, convertToSyncBlockData, extractResourceIdFromBlockAri, } from '../providers/block-service/blockServiceAPI';
@@ -0,0 +1 @@
1
+ export { extractGraphQLWSErrorMessage, getConnectionDiagnosticsSummary, } from '../clients/block-service/blockSubscription';
@@ -0,0 +1,2 @@
1
+ export { SyncBlockError } from '../common/types';
2
+ export type { ResourceId, SyncBlockData, SyncBlockNode, SyncBlockProduct, SyncBlockStatus, BlockInstanceId, SyncBlockAttrs, ReferenceSyncBlockData, ReferencesSourceInfo, DeletionReason, SyncBlockPrefetchData, } from '../common/types';
@@ -0,0 +1 @@
1
+ export { getConfluencePageAri, getPageIdAndTypeFromConfluencePageAri, } from '../clients/confluence/ari';
@@ -0,0 +1 @@
1
+ export { fetchErrorPayload } from '../utils/errorHandling';
@@ -0,0 +1 @@
1
+ export { fetchJiraMediaToken } from '../clients/jira/fetchMediaToken';
@@ -0,0 +1,2 @@
1
+ export { fetchMediaToken } from '../clients/confluence/fetchMediaToken';
2
+ export type { TokenData, ConfigData } from '../clients/confluence/fetchMediaToken';
@@ -0,0 +1 @@
1
+ export { getJiraWorkItemAri, getJiraWorkItemIdFromAri } from '../clients/jira/ari';
@@ -0,0 +1 @@
1
+ export type { ADFFetchProvider, ADFWriteProvider, BatchFetchConfig, BlockNodeIdentifiers, BlockSubscriptionErrorCallback, BlockUpdateCallback, SyncBlockDataProviderInterface, SyncBlockInstance, MediaEmojiProviderOptions, SyncedBlockRendererProviderOptions, SyncBlockRendererProviderCreator, SyncedBlockRendererDataProviders, Unsubscribe, UpdateReferenceSyncBlockResult, WriteSyncBlockResult, SyncBlockParentInfo, SyncBlockSourceInfo, SyncBlockJiraIssueType, } from '../providers/types';
@@ -0,0 +1 @@
1
+ export { rebaseTransaction } from '../common/rebase-transaction';
@@ -0,0 +1 @@
1
+ export { ReferenceSyncBlockStoreManager } from '../store-manager/referenceSyncBlockStoreManager';
@@ -0,0 +1,2 @@
1
+ export { requestJiraSpaceAccess } from '../clients/jira/requestJiraIssueAccess';
2
+ export type { AccessRequestPayload } from '../clients/jira/requestJiraIssueAccess';
@@ -0,0 +1 @@
1
+ export { resolveSyncBlockInstance } from '../utils/resolveSyncBlockInstance';
@@ -0,0 +1 @@
1
+ export { parseResourceId, createResourceIdForReference } from '../utils/resourceId';
@@ -0,0 +1 @@
1
+ export { fetchConfluencePageInfo } from '../clients/confluence/sourceInfo';
@@ -0,0 +1 @@
1
+ export { SyncBlockInMemorySessionCache, syncBlockInMemorySessionCache, } from '../store-manager/syncBlockInMemorySessionCache';
@@ -0,0 +1 @@
1
+ export { SyncedBlockProvider, useMemoizedSyncedBlockProvider, } from '../providers/syncBlockProvider';
@@ -0,0 +1 @@
1
+ export { SyncBlockStoreManager, useMemoizedSyncBlockStoreManager, } from '../store-manager/syncBlockStoreManager';
@@ -0,0 +1 @@
1
+ export { fetchTokenForSourceProduct, requiresCrossProductAuth } from '../clients/tokenRouting';
@@ -0,0 +1,2 @@
1
+ export { useFetchSyncBlockData } from '../hooks/useFetchSyncBlockData';
2
+ export type { UseFetchSyncBlockDataResult } from '../hooks/useFetchSyncBlockData';
@@ -0,0 +1 @@
1
+ export { useFetchSyncBlockTitle } from '../hooks/useFetchSyncBlockTitle';
@@ -0,0 +1 @@
1
+ export { useHandleContentChanges } from '../hooks/useHandleContentChanges';
@@ -0,0 +1 @@
1
+ export { createSyncBlockNode, convertSyncBlockPMNodeToSyncBlockData, convertSyncBlockJSONNodeToSyncBlockNode, convertPMNodesToSyncBlockNodes, convertPMNodeToSyncBlockNode, convertContentUpdatedAt, getContentIdAndProductFromResourceId, getSourceProductFromResourceIdSafe, productAttrIfGateOn, } from '../utils/utils';
@@ -0,0 +1 @@
1
+ export { normaliseSyncBlockProduct, normaliseSyncBlockStatus } from '../utils/validValue';
@@ -27,12 +27,29 @@ export type DeleteSyncBlockResult = {
27
27
  resourceId: ResourceId;
28
28
  success: boolean;
29
29
  };
30
+ /**
31
+ * Lightweight metadata for a Jira issue's type, surfaced so consumers can render the
32
+ * correct ADS issue-type icon (Task / Bug / Story / Epic / Subtask) or fall back to the
33
+ * AGG-provided `iconUrl` for custom types. Optional throughout — Confluence references
34
+ * leave it `undefined`.
35
+ */
36
+ export type SyncBlockJiraIssueType = {
37
+ /** AGG-served icon URL (from `avatar.xsmall`) — used as the fallback when no ADS icon matches `name`. */
38
+ iconUrl?: string;
39
+ /** Display name of the issue type, e.g. `"Task"`, `"Bug"`, `"Story"`. */
40
+ name: string;
41
+ };
30
42
  export type SyncBlockSourceInfo = {
31
43
  hasAccess?: boolean;
32
44
  /**
33
45
  * Whether the source info is for a source synced block
34
46
  */
35
47
  isSource?: boolean;
48
+ /**
49
+ * Issue-type metadata for `productType === 'jira-work-item'` references. Always
50
+ * `undefined` for Confluence references.
51
+ */
52
+ issueType?: SyncBlockJiraIssueType;
36
53
  onSameDocument?: boolean;
37
54
  productType?: SyncBlockProduct;
38
55
  sourceAri: string;
@@ -1,20 +1,21 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
2
2
  import type { RendererSyncBlockEventPayload, OperationalAEP, SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
3
3
  export declare const stringifyError: (error: unknown) => string | undefined;
4
- export declare const getErrorPayload: <T extends ACTION_SUBJECT_ID>(actionSubjectId: T, error: string, resourceId?: string) => OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, T, {
4
+ export declare const getErrorPayload: <T extends ACTION_SUBJECT_ID>(actionSubjectId: T, error: string, resourceId?: string, sourceProduct?: string) => OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, T, {
5
5
  error: string;
6
6
  resourceId?: string;
7
+ sourceProduct?: string;
7
8
  }>;
8
- export declare const fetchErrorPayload: (error: string, resourceId?: string) => RendererSyncBlockEventPayload;
9
- export declare const getSourceInfoErrorPayload: (error: string, resourceId?: string) => RendererSyncBlockEventPayload;
10
- export declare const updateErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
11
- export declare const updateReferenceErrorPayload: (error: string, resourceId?: string) => RendererSyncBlockEventPayload;
12
- export declare const createErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
13
- export declare const deleteErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
14
- export declare const updateCacheErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
15
- export declare const fetchReferencesErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
9
+ export declare const fetchErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
10
+ export declare const getSourceInfoErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
11
+ export declare const updateErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
12
+ export declare const updateReferenceErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
13
+ export declare const createErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
14
+ export declare const deleteErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
15
+ export declare const updateCacheErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
16
+ export declare const fetchReferencesErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
16
17
  export declare const fetchSuccessPayload: (resourceId: string, blockInstanceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
17
- export declare const createSuccessPayload: (resourceId: string) => SyncBlockEventPayload;
18
+ export declare const createSuccessPayload: (resourceId: string, sourceProduct?: string) => SyncBlockEventPayload;
18
19
  export declare const createSuccessPayloadNew: (resourceId: string) => SyncBlockEventPayload;
19
- export declare const updateSuccessPayload: (resourceId: string, hasReference?: boolean) => SyncBlockEventPayload;
20
- export declare const deleteSuccessPayload: (resourceId: string) => SyncBlockEventPayload;
20
+ export declare const updateSuccessPayload: (resourceId: string, hasReference?: boolean, sourceProduct?: string) => SyncBlockEventPayload;
21
+ export declare const deleteSuccessPayload: (resourceId: string, sourceProduct?: string) => SyncBlockEventPayload;
@@ -7,7 +7,9 @@ export declare const convertSyncBlockJSONNodeToSyncBlockNode: (node: JSONNode) =
7
7
  export declare const convertPMNodeToSyncBlockNode: (node: PMNode) => SyncBlockNode | undefined;
8
8
  export declare const convertPMNodesToSyncBlockNodes: (nodes: PMNode[]) => SyncBlockNode[];
9
9
  export declare const getContentIdAndProductFromResourceId: (resourceId: string) => {
10
- sourceProduct: SyncBlockProduct;
11
10
  sourceContentId: string;
11
+ sourceProduct: SyncBlockProduct;
12
12
  };
13
+ export declare const getSourceProductFromResourceIdSafe: (resourceId?: string) => SyncBlockProduct | undefined;
14
+ export declare const productAttrIfGateOn: (resourceId?: string) => SyncBlockProduct | undefined;
13
15
  export declare const convertContentUpdatedAt: (contentUpdatedAt: number | undefined) => string | undefined;
@@ -1,2 +1,22 @@
1
1
  import type { SyncBlockSourceInfo } from '../../providers/types';
2
+ /**
3
+ * Fetch source-info metadata for a Jira work item used by reference sync blocks.
4
+ *
5
+ * Parity notes vs the Confluence equivalent (`fetchConfluencePageInfo`):
6
+ *
7
+ * - **Archived / draft URL variants** are intentionally omitted. Confluence pages can be
8
+ * "unpublished" (draft, archived, in-trash) and need REST fallbacks plus alternate URL
9
+ * shapes. Jira work items have no equivalent lifecycle — an issue either exists in AGG
10
+ * or it does not — so a single `webUrl` is sufficient.
11
+ *
12
+ * - **`#block-{localId}` deep-link anchor** is intentionally not appended. The current
13
+ * Jira issue view does not implement scroll-to-anchor for unknown fragments, so the
14
+ * anchor would be dead weight on the URL. The dispatching code in
15
+ * `syncBlockProvider.fetchSyncBlockSourceInfo` deliberately does not pass `localId`
16
+ * here for the same reason. If/when Jira issue view supports anchor scrolling for
17
+ * sync-block local IDs, accept `localId?: string` here and append `#block-{localId}`.
18
+ *
19
+ * - **`subType` / page-type variants** are not modeled — Jira issue type is exposed via
20
+ * the separate `issueType` field returned alongside `summary` / `webUrl`.
21
+ */
2
22
  export declare const fetchJiraWorkItemInfo: (workItemAri: string, hasAccess: boolean) => Promise<SyncBlockSourceInfo | undefined>;
@@ -1,6 +1,6 @@
1
1
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
2
  import type { JSONNode } from '@atlaskit/editor-json-transformer/types';
3
- import type { SyncBlockInstance, SyncBlockSourceInfo } from '../providers/types';
3
+ import type { SyncBlockInstance, SyncBlockJiraIssueType, SyncBlockSourceInfo } from '../providers/types';
4
4
  import type { SYNC_BLOCK_PRODUCTS } from './consts';
5
5
  export type BlockInstanceId = string;
6
6
  export type ResourceId = string;
@@ -36,6 +36,7 @@ export interface SyncBlockData {
36
36
  createdAt?: string;
37
37
  createdBy?: string;
38
38
  deletionReason?: DeletionReason;
39
+ issueType?: SyncBlockJiraIssueType;
39
40
  isSynced?: boolean;
40
41
  /**
41
42
  * Whether the block is on the same page as the source block
@@ -0,0 +1 @@
1
+ export { generateBlockAri, generateBlockAriFromReference, getLocalIdFromBlockResourceId, } from '../clients/block-service/ari';
@@ -0,0 +1,2 @@
1
+ export { BlockError, updateSyncedBlocks } from '../clients/block-service/blockService';
2
+ export type { BlockContentResponse, BatchRetrieveSyncedBlocksResponse, ErrorResponse, } from '../clients/block-service/blockService';
@@ -0,0 +1 @@
1
+ export { useMemoizedBlockServiceAPIProviders, useMemoizedBlockServiceFetchOnlyAPIProvider, fetchReferences, batchFetchData, writeDataBatch, blockAriToResourceId, convertToSyncBlockData, extractResourceIdFromBlockAri, } from '../providers/block-service/blockServiceAPI';
@@ -0,0 +1 @@
1
+ export { extractGraphQLWSErrorMessage, getConnectionDiagnosticsSummary, } from '../clients/block-service/blockSubscription';
@@ -0,0 +1,2 @@
1
+ export { SyncBlockError } from '../common/types';
2
+ export type { ResourceId, SyncBlockData, SyncBlockNode, SyncBlockProduct, SyncBlockStatus, BlockInstanceId, SyncBlockAttrs, ReferenceSyncBlockData, ReferencesSourceInfo, DeletionReason, SyncBlockPrefetchData, } from '../common/types';
@@ -0,0 +1 @@
1
+ export { getConfluencePageAri, getPageIdAndTypeFromConfluencePageAri, } from '../clients/confluence/ari';
@@ -0,0 +1 @@
1
+ export { fetchErrorPayload } from '../utils/errorHandling';
@@ -0,0 +1 @@
1
+ export { fetchJiraMediaToken } from '../clients/jira/fetchMediaToken';
@@ -0,0 +1,2 @@
1
+ export { fetchMediaToken } from '../clients/confluence/fetchMediaToken';
2
+ export type { TokenData, ConfigData } from '../clients/confluence/fetchMediaToken';
@@ -0,0 +1 @@
1
+ export { getJiraWorkItemAri, getJiraWorkItemIdFromAri } from '../clients/jira/ari';
@@ -0,0 +1 @@
1
+ export type { ADFFetchProvider, ADFWriteProvider, BatchFetchConfig, BlockNodeIdentifiers, BlockSubscriptionErrorCallback, BlockUpdateCallback, SyncBlockDataProviderInterface, SyncBlockInstance, MediaEmojiProviderOptions, SyncedBlockRendererProviderOptions, SyncBlockRendererProviderCreator, SyncedBlockRendererDataProviders, Unsubscribe, UpdateReferenceSyncBlockResult, WriteSyncBlockResult, SyncBlockParentInfo, SyncBlockSourceInfo, SyncBlockJiraIssueType, } from '../providers/types';
@@ -0,0 +1 @@
1
+ export { rebaseTransaction } from '../common/rebase-transaction';
@@ -0,0 +1 @@
1
+ export { ReferenceSyncBlockStoreManager } from '../store-manager/referenceSyncBlockStoreManager';
@@ -0,0 +1,2 @@
1
+ export { requestJiraSpaceAccess } from '../clients/jira/requestJiraIssueAccess';
2
+ export type { AccessRequestPayload } from '../clients/jira/requestJiraIssueAccess';
@@ -0,0 +1 @@
1
+ export { resolveSyncBlockInstance } from '../utils/resolveSyncBlockInstance';
@@ -0,0 +1 @@
1
+ export { parseResourceId, createResourceIdForReference } from '../utils/resourceId';
@@ -0,0 +1 @@
1
+ export { fetchConfluencePageInfo } from '../clients/confluence/sourceInfo';
@@ -0,0 +1 @@
1
+ export { SyncBlockInMemorySessionCache, syncBlockInMemorySessionCache, } from '../store-manager/syncBlockInMemorySessionCache';
@@ -0,0 +1 @@
1
+ export { SyncedBlockProvider, useMemoizedSyncedBlockProvider, } from '../providers/syncBlockProvider';
@@ -0,0 +1 @@
1
+ export { SyncBlockStoreManager, useMemoizedSyncBlockStoreManager, } from '../store-manager/syncBlockStoreManager';
@@ -0,0 +1 @@
1
+ export { fetchTokenForSourceProduct, requiresCrossProductAuth } from '../clients/tokenRouting';
@@ -0,0 +1,2 @@
1
+ export { useFetchSyncBlockData } from '../hooks/useFetchSyncBlockData';
2
+ export type { UseFetchSyncBlockDataResult } from '../hooks/useFetchSyncBlockData';
@@ -0,0 +1 @@
1
+ export { useFetchSyncBlockTitle } from '../hooks/useFetchSyncBlockTitle';
@@ -0,0 +1 @@
1
+ export { useHandleContentChanges } from '../hooks/useHandleContentChanges';
@@ -0,0 +1 @@
1
+ export { createSyncBlockNode, convertSyncBlockPMNodeToSyncBlockData, convertSyncBlockJSONNodeToSyncBlockNode, convertPMNodesToSyncBlockNodes, convertPMNodeToSyncBlockNode, convertContentUpdatedAt, getContentIdAndProductFromResourceId, getSourceProductFromResourceIdSafe, productAttrIfGateOn, } from '../utils/utils';
@@ -0,0 +1 @@
1
+ export { normaliseSyncBlockProduct, normaliseSyncBlockStatus } from '../utils/validValue';
@@ -27,12 +27,29 @@ export type DeleteSyncBlockResult = {
27
27
  resourceId: ResourceId;
28
28
  success: boolean;
29
29
  };
30
+ /**
31
+ * Lightweight metadata for a Jira issue's type, surfaced so consumers can render the
32
+ * correct ADS issue-type icon (Task / Bug / Story / Epic / Subtask) or fall back to the
33
+ * AGG-provided `iconUrl` for custom types. Optional throughout — Confluence references
34
+ * leave it `undefined`.
35
+ */
36
+ export type SyncBlockJiraIssueType = {
37
+ /** AGG-served icon URL (from `avatar.xsmall`) — used as the fallback when no ADS icon matches `name`. */
38
+ iconUrl?: string;
39
+ /** Display name of the issue type, e.g. `"Task"`, `"Bug"`, `"Story"`. */
40
+ name: string;
41
+ };
30
42
  export type SyncBlockSourceInfo = {
31
43
  hasAccess?: boolean;
32
44
  /**
33
45
  * Whether the source info is for a source synced block
34
46
  */
35
47
  isSource?: boolean;
48
+ /**
49
+ * Issue-type metadata for `productType === 'jira-work-item'` references. Always
50
+ * `undefined` for Confluence references.
51
+ */
52
+ issueType?: SyncBlockJiraIssueType;
36
53
  onSameDocument?: boolean;
37
54
  productType?: SyncBlockProduct;
38
55
  sourceAri: string;
@@ -1,20 +1,21 @@
1
1
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
2
2
  import type { RendererSyncBlockEventPayload, OperationalAEP, SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
3
3
  export declare const stringifyError: (error: unknown) => string | undefined;
4
- export declare const getErrorPayload: <T extends ACTION_SUBJECT_ID>(actionSubjectId: T, error: string, resourceId?: string) => OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, T, {
4
+ export declare const getErrorPayload: <T extends ACTION_SUBJECT_ID>(actionSubjectId: T, error: string, resourceId?: string, sourceProduct?: string) => OperationalAEP<ACTION.ERROR, ACTION_SUBJECT.SYNCED_BLOCK, T, {
5
5
  error: string;
6
6
  resourceId?: string;
7
+ sourceProduct?: string;
7
8
  }>;
8
- export declare const fetchErrorPayload: (error: string, resourceId?: string) => RendererSyncBlockEventPayload;
9
- export declare const getSourceInfoErrorPayload: (error: string, resourceId?: string) => RendererSyncBlockEventPayload;
10
- export declare const updateErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
11
- export declare const updateReferenceErrorPayload: (error: string, resourceId?: string) => RendererSyncBlockEventPayload;
12
- export declare const createErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
13
- export declare const deleteErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
14
- export declare const updateCacheErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
15
- export declare const fetchReferencesErrorPayload: (error: string, resourceId?: string) => SyncBlockEventPayload;
9
+ export declare const fetchErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
10
+ export declare const getSourceInfoErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
11
+ export declare const updateErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
12
+ export declare const updateReferenceErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
13
+ export declare const createErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
14
+ export declare const deleteErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
15
+ export declare const updateCacheErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
16
+ export declare const fetchReferencesErrorPayload: (error: string, resourceId?: string, sourceProduct?: string) => SyncBlockEventPayload;
16
17
  export declare const fetchSuccessPayload: (resourceId: string, blockInstanceId?: string, sourceProduct?: string) => RendererSyncBlockEventPayload;
17
- export declare const createSuccessPayload: (resourceId: string) => SyncBlockEventPayload;
18
+ export declare const createSuccessPayload: (resourceId: string, sourceProduct?: string) => SyncBlockEventPayload;
18
19
  export declare const createSuccessPayloadNew: (resourceId: string) => SyncBlockEventPayload;
19
- export declare const updateSuccessPayload: (resourceId: string, hasReference?: boolean) => SyncBlockEventPayload;
20
- export declare const deleteSuccessPayload: (resourceId: string) => SyncBlockEventPayload;
20
+ export declare const updateSuccessPayload: (resourceId: string, hasReference?: boolean, sourceProduct?: string) => SyncBlockEventPayload;
21
+ export declare const deleteSuccessPayload: (resourceId: string, sourceProduct?: string) => SyncBlockEventPayload;
@@ -7,7 +7,9 @@ export declare const convertSyncBlockJSONNodeToSyncBlockNode: (node: JSONNode) =
7
7
  export declare const convertPMNodeToSyncBlockNode: (node: PMNode) => SyncBlockNode | undefined;
8
8
  export declare const convertPMNodesToSyncBlockNodes: (nodes: PMNode[]) => SyncBlockNode[];
9
9
  export declare const getContentIdAndProductFromResourceId: (resourceId: string) => {
10
- sourceProduct: SyncBlockProduct;
11
10
  sourceContentId: string;
11
+ sourceProduct: SyncBlockProduct;
12
12
  };
13
+ export declare const getSourceProductFromResourceIdSafe: (resourceId?: string) => SyncBlockProduct | undefined;
14
+ export declare const productAttrIfGateOn: (resourceId?: string) => SyncBlockProduct | undefined;
13
15
  export declare const convertContentUpdatedAt: (contentUpdatedAt: number | undefined) => string | undefined;
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-synced-block-provider/errorHandling",
3
+ "main": "../dist/cjs/entry-points/errorHandling.js",
4
+ "module": "../dist/esm/entry-points/errorHandling.js",
5
+ "module:es2019": "../dist/es2019/entry-points/errorHandling.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/errorHandling.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/entry-points/errorHandling.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-synced-block-provider/fetchJiraMediaToken",
3
- "main": "../dist/cjs/clients/jira/fetchMediaToken.js",
4
- "module": "../dist/esm/clients/jira/fetchMediaToken.js",
5
- "module:es2019": "../dist/es2019/clients/jira/fetchMediaToken.js",
3
+ "main": "../dist/cjs/entry-points/fetchJiraMediaToken.js",
4
+ "module": "../dist/esm/entry-points/fetchJiraMediaToken.js",
5
+ "module:es2019": "../dist/es2019/entry-points/fetchJiraMediaToken.js",
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/clients/jira/fetchMediaToken.d.ts",
9
+ "types": "../dist/types/entry-points/fetchJiraMediaToken.d.ts",
10
10
  "typesVersions": {
11
11
  ">=4.5 <5.9": {
12
12
  "*": [
13
- "../dist/types-ts4.5/clients/jira/fetchMediaToken.d.ts"
13
+ "../dist/types-ts4.5/entry-points/fetchJiraMediaToken.d.ts"
14
14
  ]
15
15
  }
16
16
  }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@atlaskit/editor-synced-block-provider/fetchMediaToken",
3
+ "main": "../dist/cjs/entry-points/fetchMediaToken.js",
4
+ "module": "../dist/esm/entry-points/fetchMediaToken.js",
5
+ "module:es2019": "../dist/es2019/entry-points/fetchMediaToken.js",
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/fetchMediaToken.d.ts",
10
+ "typesVersions": {
11
+ ">=4.5 <5.9": {
12
+ "*": [
13
+ "../dist/types-ts4.5/entry-points/fetchMediaToken.d.ts"
14
+ ]
15
+ }
16
+ }
17
+ }