@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.
- package/CHANGELOG.md +20 -0
- package/blockService/ari/package.json +17 -0
- package/blockService/package.json +17 -0
- package/blockSubscription/package.json +17 -0
- package/clients/confluence/ari/package.json +5 -5
- package/common/types/package.json +5 -5
- package/dist/cjs/clients/jira/sourceInfo.js +63 -10
- package/dist/cjs/entry-points/blockService-ari.js +24 -0
- package/dist/cjs/entry-points/blockService.js +18 -0
- package/dist/cjs/entry-points/blockServiceAPI.js +54 -0
- package/dist/cjs/entry-points/blockSubscription.js +18 -0
- package/dist/cjs/entry-points/common-types.js +12 -0
- package/dist/cjs/entry-points/confluence-ari.js +18 -0
- package/dist/cjs/entry-points/errorHandling.js +12 -0
- package/dist/cjs/entry-points/fetchJiraMediaToken.js +12 -0
- package/dist/cjs/entry-points/fetchMediaToken.js +12 -0
- package/dist/cjs/entry-points/jira-ari.js +18 -0
- package/dist/cjs/entry-points/providers-types.js +1 -0
- package/dist/cjs/entry-points/rebaseTransaction.js +12 -0
- package/dist/cjs/entry-points/referenceSyncBlockStoreManager.js +12 -0
- package/dist/cjs/entry-points/requestJiraIssueAccess.js +12 -0
- package/dist/cjs/entry-points/resolveSyncBlockInstance.js +12 -0
- package/dist/cjs/entry-points/resourceId.js +18 -0
- package/dist/cjs/entry-points/sourceInfo.js +12 -0
- package/dist/cjs/entry-points/syncBlockInMemorySessionCache.js +18 -0
- package/dist/cjs/entry-points/syncBlockProvider.js +18 -0
- package/dist/cjs/entry-points/syncBlockStoreManager.js +18 -0
- package/dist/cjs/entry-points/tokenRouting.js +18 -0
- package/dist/cjs/entry-points/useFetchSyncBlockData.js +12 -0
- package/dist/cjs/entry-points/useFetchSyncBlockTitle.js +12 -0
- package/dist/cjs/entry-points/useHandleContentChanges.js +12 -0
- package/dist/cjs/entry-points/utils.js +60 -0
- package/dist/cjs/entry-points/validValue.js +18 -0
- package/dist/cjs/hooks/useFetchSyncBlockData.js +1 -1
- package/dist/cjs/providers/types.js +6 -0
- package/dist/cjs/store-manager/referenceSyncBlockStoreManager.js +24 -12
- package/dist/cjs/store-manager/sourceSyncBlockStoreManager.js +18 -15
- package/dist/cjs/store-manager/syncBlockBatchFetcher.js +1 -1
- package/dist/cjs/store-manager/syncBlockProviderFactoryManager.js +6 -4
- package/dist/cjs/store-manager/syncBlockStoreManager.js +2 -1
- package/dist/cjs/store-manager/syncBlockSubscriptionManager.js +9 -5
- package/dist/cjs/utils/errorHandling.js +41 -26
- package/dist/cjs/utils/resolveSyncBlockInstance.js +11 -10
- package/dist/cjs/utils/utils.js +30 -2
- package/dist/es2019/clients/jira/sourceInfo.js +64 -4
- package/dist/es2019/entry-points/blockService-ari.js +2 -0
- package/dist/es2019/entry-points/blockService.js +2 -0
- package/dist/es2019/entry-points/blockServiceAPI.js +2 -0
- package/dist/es2019/entry-points/blockSubscription.js +2 -0
- package/dist/es2019/entry-points/common-types.js +2 -0
- package/dist/es2019/entry-points/confluence-ari.js +2 -0
- package/dist/es2019/entry-points/errorHandling.js +2 -0
- package/dist/es2019/entry-points/fetchJiraMediaToken.js +2 -0
- package/dist/es2019/entry-points/fetchMediaToken.js +2 -0
- package/dist/es2019/entry-points/jira-ari.js +2 -0
- package/dist/es2019/entry-points/providers-types.js +0 -0
- package/dist/es2019/entry-points/rebaseTransaction.js +2 -0
- package/dist/es2019/entry-points/referenceSyncBlockStoreManager.js +2 -0
- package/dist/es2019/entry-points/requestJiraIssueAccess.js +2 -0
- package/dist/es2019/entry-points/resolveSyncBlockInstance.js +2 -0
- package/dist/es2019/entry-points/resourceId.js +2 -0
- package/dist/es2019/entry-points/sourceInfo.js +2 -0
- package/dist/es2019/entry-points/syncBlockInMemorySessionCache.js +2 -0
- package/dist/es2019/entry-points/syncBlockProvider.js +2 -0
- package/dist/es2019/entry-points/syncBlockStoreManager.js +2 -0
- package/dist/es2019/entry-points/tokenRouting.js +2 -0
- package/dist/es2019/entry-points/useFetchSyncBlockData.js +2 -0
- package/dist/es2019/entry-points/useFetchSyncBlockTitle.js +2 -0
- package/dist/es2019/entry-points/useHandleContentChanges.js +2 -0
- package/dist/es2019/entry-points/utils.js +2 -0
- package/dist/es2019/entry-points/validValue.js +2 -0
- package/dist/es2019/hooks/useFetchSyncBlockData.js +2 -2
- package/dist/es2019/providers/syncBlockProvider.js +4 -2
- package/dist/es2019/providers/types.js +7 -0
- package/dist/es2019/store-manager/referenceSyncBlockStoreManager.js +25 -13
- package/dist/es2019/store-manager/sourceSyncBlockStoreManager.js +19 -16
- package/dist/es2019/store-manager/syncBlockBatchFetcher.js +2 -2
- package/dist/es2019/store-manager/syncBlockProviderFactoryManager.js +6 -4
- package/dist/es2019/store-manager/syncBlockStoreManager.js +2 -1
- package/dist/es2019/store-manager/syncBlockSubscriptionManager.js +9 -5
- package/dist/es2019/utils/errorHandling.js +33 -14
- package/dist/es2019/utils/resolveSyncBlockInstance.js +11 -10
- package/dist/es2019/utils/utils.js +26 -0
- package/dist/esm/clients/jira/sourceInfo.js +63 -11
- package/dist/esm/entry-points/blockService-ari.js +2 -0
- package/dist/esm/entry-points/blockService.js +2 -0
- package/dist/esm/entry-points/blockServiceAPI.js +2 -0
- package/dist/esm/entry-points/blockSubscription.js +2 -0
- package/dist/esm/entry-points/common-types.js +2 -0
- package/dist/esm/entry-points/confluence-ari.js +2 -0
- package/dist/esm/entry-points/errorHandling.js +2 -0
- package/dist/esm/entry-points/fetchJiraMediaToken.js +2 -0
- package/dist/esm/entry-points/fetchMediaToken.js +2 -0
- package/dist/esm/entry-points/jira-ari.js +2 -0
- package/dist/esm/entry-points/providers-types.js +0 -0
- package/dist/esm/entry-points/rebaseTransaction.js +2 -0
- package/dist/esm/entry-points/referenceSyncBlockStoreManager.js +2 -0
- package/dist/esm/entry-points/requestJiraIssueAccess.js +2 -0
- package/dist/esm/entry-points/resolveSyncBlockInstance.js +2 -0
- package/dist/esm/entry-points/resourceId.js +2 -0
- package/dist/esm/entry-points/sourceInfo.js +2 -0
- package/dist/esm/entry-points/syncBlockInMemorySessionCache.js +2 -0
- package/dist/esm/entry-points/syncBlockProvider.js +2 -0
- package/dist/esm/entry-points/syncBlockStoreManager.js +2 -0
- package/dist/esm/entry-points/tokenRouting.js +2 -0
- package/dist/esm/entry-points/useFetchSyncBlockData.js +2 -0
- package/dist/esm/entry-points/useFetchSyncBlockTitle.js +2 -0
- package/dist/esm/entry-points/useHandleContentChanges.js +2 -0
- package/dist/esm/entry-points/utils.js +2 -0
- package/dist/esm/entry-points/validValue.js +2 -0
- package/dist/esm/hooks/useFetchSyncBlockData.js +2 -2
- package/dist/esm/providers/types.js +7 -0
- package/dist/esm/store-manager/referenceSyncBlockStoreManager.js +25 -13
- package/dist/esm/store-manager/sourceSyncBlockStoreManager.js +19 -16
- package/dist/esm/store-manager/syncBlockBatchFetcher.js +2 -2
- package/dist/esm/store-manager/syncBlockProviderFactoryManager.js +6 -4
- package/dist/esm/store-manager/syncBlockStoreManager.js +2 -1
- package/dist/esm/store-manager/syncBlockSubscriptionManager.js +9 -5
- package/dist/esm/utils/errorHandling.js +41 -26
- package/dist/esm/utils/resolveSyncBlockInstance.js +11 -10
- package/dist/esm/utils/utils.js +29 -1
- package/dist/types/clients/jira/sourceInfo.d.ts +20 -0
- package/dist/types/common/types.d.ts +2 -1
- package/dist/types/entry-points/blockService-ari.d.ts +1 -0
- package/dist/types/entry-points/blockService.d.ts +2 -0
- package/dist/types/entry-points/blockServiceAPI.d.ts +1 -0
- package/dist/types/entry-points/blockSubscription.d.ts +1 -0
- package/dist/types/entry-points/common-types.d.ts +2 -0
- package/dist/types/entry-points/confluence-ari.d.ts +1 -0
- package/dist/types/entry-points/errorHandling.d.ts +1 -0
- package/dist/types/entry-points/fetchJiraMediaToken.d.ts +1 -0
- package/dist/types/entry-points/fetchMediaToken.d.ts +2 -0
- package/dist/types/entry-points/jira-ari.d.ts +1 -0
- package/dist/types/entry-points/providers-types.d.ts +1 -0
- package/dist/types/entry-points/rebaseTransaction.d.ts +1 -0
- package/dist/types/entry-points/referenceSyncBlockStoreManager.d.ts +1 -0
- package/dist/types/entry-points/requestJiraIssueAccess.d.ts +2 -0
- package/dist/types/entry-points/resolveSyncBlockInstance.d.ts +1 -0
- package/dist/types/entry-points/resourceId.d.ts +1 -0
- package/dist/types/entry-points/sourceInfo.d.ts +1 -0
- package/dist/types/entry-points/syncBlockInMemorySessionCache.d.ts +1 -0
- package/dist/types/entry-points/syncBlockProvider.d.ts +1 -0
- package/dist/types/entry-points/syncBlockStoreManager.d.ts +1 -0
- package/dist/types/entry-points/tokenRouting.d.ts +1 -0
- package/dist/types/entry-points/useFetchSyncBlockData.d.ts +2 -0
- package/dist/types/entry-points/useFetchSyncBlockTitle.d.ts +1 -0
- package/dist/types/entry-points/useHandleContentChanges.d.ts +1 -0
- package/dist/types/entry-points/utils.d.ts +1 -0
- package/dist/types/entry-points/validValue.d.ts +1 -0
- package/dist/types/providers/types.d.ts +17 -0
- package/dist/types/utils/errorHandling.d.ts +13 -12
- package/dist/types/utils/utils.d.ts +3 -1
- package/dist/types-ts4.5/clients/jira/sourceInfo.d.ts +20 -0
- package/dist/types-ts4.5/common/types.d.ts +2 -1
- package/dist/types-ts4.5/entry-points/blockService-ari.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/blockService.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/blockServiceAPI.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/blockSubscription.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/common-types.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/confluence-ari.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/errorHandling.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/fetchJiraMediaToken.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/fetchMediaToken.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/jira-ari.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/providers-types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/rebaseTransaction.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/referenceSyncBlockStoreManager.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/requestJiraIssueAccess.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/resolveSyncBlockInstance.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/resourceId.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/sourceInfo.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/syncBlockInMemorySessionCache.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/syncBlockProvider.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/syncBlockStoreManager.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/tokenRouting.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/useFetchSyncBlockData.d.ts +2 -0
- package/dist/types-ts4.5/entry-points/useFetchSyncBlockTitle.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/useHandleContentChanges.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/utils.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/validValue.d.ts +1 -0
- package/dist/types-ts4.5/providers/types.d.ts +17 -0
- package/dist/types-ts4.5/utils/errorHandling.d.ts +13 -12
- package/dist/types-ts4.5/utils/utils.d.ts +3 -1
- package/errorHandling/package.json +17 -0
- package/fetchJiraMediaToken/package.json +5 -5
- package/fetchMediaToken/package.json +17 -0
- package/jira/ari/package.json +17 -0
- package/package.json +7 -4
- package/providers/block-service/blockServiceAPI/package.json +5 -5
- package/providers/types/package.json +5 -5
- package/rebaseTransaction/package.json +17 -0
- package/referenceSyncBlockStoreManager/package.json +17 -0
- package/requestJiraIssueAccess/package.json +5 -5
- package/resolveSyncBlockInstance/package.json +17 -0
- package/sourceInfo/package.json +17 -0
- package/syncBlockInMemorySessionCache/package.json +17 -0
- package/syncBlockProvider/package.json +17 -0
- package/syncBlockStoreManager/package.json +17 -0
- package/tokenRouting/package.json +5 -5
- package/types/package.json +17 -0
- package/useFetchSyncBlockData/package.json +17 -0
- package/useFetchSyncBlockTitle/package.json +17 -0
- package/useHandleContentChanges/package.json +17 -0
- package/utils/package.json +17 -0
- package/utils/resourceId/package.json +5 -5
- 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$
|
|
44
|
+
var _newResult$data5, _newResult$data6, _oldResult$data5;
|
|
44
45
|
// for classic pages, subType is 'null'
|
|
45
|
-
if (((_newResult$
|
|
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$
|
|
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$
|
|
52
|
+
var _newResult$data7;
|
|
52
53
|
var _getPageIdAndTypeFrom = getPageIdAndTypeFromConfluencePageAri({
|
|
53
|
-
ari: (_newResult$
|
|
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$
|
|
58
|
-
return (_newResult$
|
|
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$
|
|
63
|
+
return (_oldResult$data5 = oldResult.data) === null || _oldResult$data5 === void 0 ? void 0 : _oldResult$data5.sourceSubType;
|
|
63
64
|
};
|
package/dist/esm/utils/utils.js
CHANGED
|
@@ -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 (
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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/
|
|
4
|
-
"module": "../dist/esm/
|
|
5
|
-
"module:es2019": "../dist/es2019/
|
|
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/
|
|
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/
|
|
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
|
+
}
|