@atlaskit/editor-synced-block-provider 22.0.4 → 22.0.5
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 +6 -0
- package/dist/cjs/clients/block-service/blockSubscription.js +2 -2
- package/dist/cjs/clients/confluence/fetchMediaToken.js +2 -2
- package/dist/cjs/clients/jira/fetchMediaToken.js +2 -2
- package/dist/cjs/hooks/useFetchSyncBlockData.js +5 -5
- package/dist/cjs/providers/types.js +1 -1
- package/dist/cjs/store-manager/referenceSyncBlockStoreManager.js +9 -9
- package/dist/cjs/store-manager/sourceSyncBlockStoreManager.js +8 -8
- package/dist/cjs/store-manager/syncBlockBatchFetcher.js +2 -2
- package/dist/cjs/store-manager/syncBlockProviderFactoryManager.js +8 -8
- package/dist/cjs/store-manager/syncBlockStoreManager.js +2 -2
- package/dist/cjs/store-manager/syncBlockSubscriptionManager.js +4 -4
- package/dist/cjs/utils/errorHandling.js +44 -44
- package/dist/cjs/utils/experienceTracking.js +26 -24
- package/dist/cjs/utils/migrateSyncBlockIds.js +2 -2
- package/dist/es2019/clients/block-service/blockSubscription.js +1 -1
- package/dist/es2019/clients/confluence/fetchMediaToken.js +1 -1
- package/dist/es2019/clients/jira/fetchMediaToken.js +1 -1
- package/dist/es2019/hooks/useFetchSyncBlockData.js +2 -2
- package/dist/es2019/providers/types.js +1 -1
- package/dist/es2019/store-manager/referenceSyncBlockStoreManager.js +1 -1
- package/dist/es2019/store-manager/sourceSyncBlockStoreManager.js +1 -1
- package/dist/es2019/store-manager/syncBlockBatchFetcher.js +1 -1
- package/dist/es2019/store-manager/syncBlockProviderFactoryManager.js +3 -3
- package/dist/es2019/store-manager/syncBlockStoreManager.js +1 -1
- package/dist/es2019/store-manager/syncBlockSubscriptionManager.js +1 -1
- package/dist/es2019/utils/errorHandling.js +1 -1
- package/dist/es2019/utils/experienceTracking.js +4 -2
- package/dist/es2019/utils/migrateSyncBlockIds.js +1 -1
- package/dist/esm/clients/block-service/blockSubscription.js +1 -1
- package/dist/esm/clients/confluence/fetchMediaToken.js +1 -1
- package/dist/esm/clients/jira/fetchMediaToken.js +1 -1
- package/dist/esm/hooks/useFetchSyncBlockData.js +2 -2
- package/dist/esm/providers/types.js +1 -1
- package/dist/esm/store-manager/referenceSyncBlockStoreManager.js +1 -1
- package/dist/esm/store-manager/sourceSyncBlockStoreManager.js +1 -1
- package/dist/esm/store-manager/syncBlockBatchFetcher.js +1 -1
- package/dist/esm/store-manager/syncBlockProviderFactoryManager.js +3 -3
- package/dist/esm/store-manager/syncBlockStoreManager.js +1 -1
- package/dist/esm/store-manager/syncBlockSubscriptionManager.js +1 -1
- package/dist/esm/utils/errorHandling.js +1 -1
- package/dist/esm/utils/experienceTracking.js +4 -2
- package/dist/esm/utils/migrateSyncBlockIds.js +1 -1
- package/dist/types/hooks/useFetchSyncBlockData.d.ts +3 -2
- package/dist/types/providers/types.d.ts +4 -2
- package/dist/types/store-manager/referenceSyncBlockStoreManager.d.ts +5 -4
- package/dist/types/store-manager/sourceSyncBlockStoreManager.d.ts +2 -2
- package/dist/types/store-manager/syncBlockBatchFetcher.d.ts +1 -1
- package/dist/types/store-manager/syncBlockProviderFactoryManager.d.ts +3 -3
- package/dist/types/store-manager/syncBlockStoreManager.d.ts +2 -2
- package/dist/types/store-manager/syncBlockSubscriptionManager.d.ts +1 -1
- package/dist/types/utils/errorHandling.d.ts +4 -2
- package/dist/types/utils/experienceTracking.d.ts +3 -2
- package/package.json +2 -2
|
@@ -4,13 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getSaveSourceExperience = exports.getSaveReferenceExperience = exports.getFetchSourceInfoExperience = exports.getFetchReferencesExperience = exports.getFetchExperience = exports.getDeleteSourceExperience = exports.getCreateSourceExperience = exports.createExperienceDispatcher = void 0;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
8
|
+
var _consts = require("@atlaskit/editor-common/experiences/consts");
|
|
9
|
+
var _Experience = require("@atlaskit/editor-common/experiences/Experience");
|
|
10
|
+
var _ExperienceCheckTimeout = require("@atlaskit/editor-common/experiences/ExperienceCheckTimeout");
|
|
9
11
|
var TIMEOUT_DURATION = 30000;
|
|
10
12
|
var createExperienceDispatcher = exports.createExperienceDispatcher = function createExperienceDispatcher(fireAnalyticsEvent) {
|
|
11
13
|
return function (payload) {
|
|
12
14
|
// Runtime type guard - only forward experience events
|
|
13
|
-
if (payload.action ===
|
|
15
|
+
if (payload.action === _enums.ACTION.EXPERIENCE_MEASURED || payload.action === _enums.ACTION.EXPERIENCE_SAMPLED) {
|
|
14
16
|
fireAnalyticsEvent === null || fireAnalyticsEvent === void 0 || fireAnalyticsEvent(payload);
|
|
15
17
|
}
|
|
16
18
|
};
|
|
@@ -24,10 +26,10 @@ var createExperienceDispatcher = exports.createExperienceDispatcher = function c
|
|
|
24
26
|
* Failure: When the timeout duration passes without the sync block being successfully saved
|
|
25
27
|
*/
|
|
26
28
|
var getSaveSourceExperience = exports.getSaveSourceExperience = function getSaveSourceExperience(fireAnalyticsEvent) {
|
|
27
|
-
return new
|
|
28
|
-
action:
|
|
29
|
+
return new _Experience.Experience(_consts.EXPERIENCE_ID.ASYNC_OPERATION, {
|
|
30
|
+
action: _enums.ACTION.SYNCED_BLOCK_UPDATE,
|
|
29
31
|
dispatchAnalyticsEvent: createExperienceDispatcher(fireAnalyticsEvent),
|
|
30
|
-
checks: [new
|
|
32
|
+
checks: [new _ExperienceCheckTimeout.ExperienceCheckTimeout({
|
|
31
33
|
durationMs: TIMEOUT_DURATION
|
|
32
34
|
})]
|
|
33
35
|
});
|
|
@@ -41,10 +43,10 @@ var getSaveSourceExperience = exports.getSaveSourceExperience = function getSave
|
|
|
41
43
|
* Failure: When the timeout duration passes without the sync block being successfully saved
|
|
42
44
|
*/
|
|
43
45
|
var getSaveReferenceExperience = exports.getSaveReferenceExperience = function getSaveReferenceExperience(fireAnalyticsEvent) {
|
|
44
|
-
return new
|
|
45
|
-
action:
|
|
46
|
+
return new _Experience.Experience(_consts.EXPERIENCE_ID.ASYNC_OPERATION, {
|
|
47
|
+
action: _enums.ACTION.REFERENCE_SYNCED_BLOCK_UPDATE,
|
|
46
48
|
dispatchAnalyticsEvent: createExperienceDispatcher(fireAnalyticsEvent),
|
|
47
|
-
checks: [new
|
|
49
|
+
checks: [new _ExperienceCheckTimeout.ExperienceCheckTimeout({
|
|
48
50
|
durationMs: TIMEOUT_DURATION
|
|
49
51
|
})]
|
|
50
52
|
});
|
|
@@ -58,10 +60,10 @@ var getSaveReferenceExperience = exports.getSaveReferenceExperience = function g
|
|
|
58
60
|
* Failure: When the timeout duration passes without the data being successfully fetched, or the fetch fails
|
|
59
61
|
*/
|
|
60
62
|
var getFetchExperience = exports.getFetchExperience = function getFetchExperience(fireAnalyticsEvent) {
|
|
61
|
-
return new
|
|
62
|
-
action:
|
|
63
|
+
return new _Experience.Experience(_consts.EXPERIENCE_ID.ASYNC_OPERATION, {
|
|
64
|
+
action: _enums.ACTION.SYNCED_BLOCK_FETCH,
|
|
63
65
|
dispatchAnalyticsEvent: createExperienceDispatcher(fireAnalyticsEvent),
|
|
64
|
-
checks: [new
|
|
66
|
+
checks: [new _ExperienceCheckTimeout.ExperienceCheckTimeout({
|
|
65
67
|
durationMs: TIMEOUT_DURATION
|
|
66
68
|
})]
|
|
67
69
|
});
|
|
@@ -75,10 +77,10 @@ var getFetchExperience = exports.getFetchExperience = function getFetchExperienc
|
|
|
75
77
|
* Failure: When the timeout duration passes without the data being successfully fetched, or the fetch fails
|
|
76
78
|
*/
|
|
77
79
|
var getFetchSourceInfoExperience = exports.getFetchSourceInfoExperience = function getFetchSourceInfoExperience(fireAnalyticsEvent) {
|
|
78
|
-
return new
|
|
79
|
-
action:
|
|
80
|
+
return new _Experience.Experience(_consts.EXPERIENCE_ID.ASYNC_OPERATION, {
|
|
81
|
+
action: _enums.ACTION.SYNCED_BLOCK_GET_SOURCE_INFO,
|
|
80
82
|
dispatchAnalyticsEvent: createExperienceDispatcher(fireAnalyticsEvent),
|
|
81
|
-
checks: [new
|
|
83
|
+
checks: [new _ExperienceCheckTimeout.ExperienceCheckTimeout({
|
|
82
84
|
durationMs: TIMEOUT_DURATION
|
|
83
85
|
})]
|
|
84
86
|
});
|
|
@@ -92,10 +94,10 @@ var getFetchSourceInfoExperience = exports.getFetchSourceInfoExperience = functi
|
|
|
92
94
|
* Failure: When the timeout duration passes without the sync block being successfully deleted, or the deletion fails
|
|
93
95
|
*/
|
|
94
96
|
var getDeleteSourceExperience = exports.getDeleteSourceExperience = function getDeleteSourceExperience(fireAnalyticsEvent) {
|
|
95
|
-
return new
|
|
96
|
-
action:
|
|
97
|
+
return new _Experience.Experience(_consts.EXPERIENCE_ID.ASYNC_OPERATION, {
|
|
98
|
+
action: _enums.ACTION.SYNCED_BLOCK_DELETE,
|
|
97
99
|
dispatchAnalyticsEvent: createExperienceDispatcher(fireAnalyticsEvent),
|
|
98
|
-
checks: [new
|
|
100
|
+
checks: [new _ExperienceCheckTimeout.ExperienceCheckTimeout({
|
|
99
101
|
durationMs: TIMEOUT_DURATION
|
|
100
102
|
})]
|
|
101
103
|
});
|
|
@@ -109,10 +111,10 @@ var getDeleteSourceExperience = exports.getDeleteSourceExperience = function get
|
|
|
109
111
|
* Failure: When the timeout duration passes without the sync block being successfully created, or the creation fails
|
|
110
112
|
*/
|
|
111
113
|
var getCreateSourceExperience = exports.getCreateSourceExperience = function getCreateSourceExperience(fireAnalyticsEvent) {
|
|
112
|
-
return new
|
|
113
|
-
action:
|
|
114
|
+
return new _Experience.Experience(_consts.EXPERIENCE_ID.ASYNC_OPERATION, {
|
|
115
|
+
action: _enums.ACTION.SYNCED_BLOCK_CREATE,
|
|
114
116
|
dispatchAnalyticsEvent: createExperienceDispatcher(fireAnalyticsEvent),
|
|
115
|
-
checks: [new
|
|
117
|
+
checks: [new _ExperienceCheckTimeout.ExperienceCheckTimeout({
|
|
116
118
|
durationMs: TIMEOUT_DURATION
|
|
117
119
|
})]
|
|
118
120
|
});
|
|
@@ -126,10 +128,10 @@ var getCreateSourceExperience = exports.getCreateSourceExperience = function get
|
|
|
126
128
|
* Failure: When the timeout duration passes without references being successfully fetched, or the fetch fails
|
|
127
129
|
*/
|
|
128
130
|
var getFetchReferencesExperience = exports.getFetchReferencesExperience = function getFetchReferencesExperience(fireAnalyticsEvent) {
|
|
129
|
-
return new
|
|
130
|
-
action:
|
|
131
|
+
return new _Experience.Experience(_consts.EXPERIENCE_ID.ASYNC_OPERATION, {
|
|
132
|
+
action: _enums.ACTION.SYNCED_BLOCK_FETCH_REFERENCES,
|
|
131
133
|
dispatchAnalyticsEvent: createExperienceDispatcher(fireAnalyticsEvent),
|
|
132
|
-
checks: [new
|
|
134
|
+
checks: [new _ExperienceCheckTimeout.ExperienceCheckTimeout({
|
|
133
135
|
durationMs: TIMEOUT_DURATION
|
|
134
136
|
})]
|
|
135
137
|
});
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.migrateSyncBlockIds = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _main = require("@atlaskit/adf-utils/traverse/main");
|
|
10
10
|
var _resourceId = require("./resourceId");
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -91,7 +91,7 @@ var migrateSyncBlockIds = exports.migrateSyncBlockIds = function migrateSyncBloc
|
|
|
91
91
|
attrs: _objectSpread(_objectSpread({}, node.attrs), nextAttrs)
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
|
-
var transformedAdf = (0,
|
|
94
|
+
var transformedAdf = (0, _main.traverse)(adf, {
|
|
95
95
|
syncBlock: migrateNode,
|
|
96
96
|
bodiedSyncBlock: migrateNode
|
|
97
97
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createClient } from 'graphql-ws';
|
|
2
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
2
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
3
3
|
import { convertContentUpdatedAt } from '../../utils/utils';
|
|
4
4
|
const GRAPHQL_WS_ENDPOINT = '/gateway/api/graphql/subscriptions';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
1
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
2
2
|
import { fetchWithRetry } from '../../utils/retry';
|
|
3
3
|
import { getJiraIssueAriFromSourceAri } from './ari';
|
|
4
4
|
const COMMON_HEADERS = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
3
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
2
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
3
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
4
4
|
import { isProviderNotReadyError, SyncBlockError } from '../common/types';
|
|
5
5
|
import { buildFetchErrorAttribution, fetchErrorPayload, getPiiSafeOriginalError } from '../utils/errorHandling';
|
|
6
6
|
import { createSyncBlockNode, getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
3
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
4
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
5
|
import { isProviderNotReadyError, ProviderNotReadyError, SyncBlockError } from '../common/types';
|
|
6
6
|
import { buildErrorAttribution, buildFetchErrorAttribution, cacheDeletionForcedPayload, fetchErrorPayload, fetchSuccessPayload, getSourceInfoErrorPayload, sourceInfoOrphanedPayload, updateReferenceErrorPayload } from '../utils/errorHandling';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
2
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
4
|
import { SyncBlockError } from '../common/types';
|
|
5
5
|
import { updateErrorPayload, createErrorPayload, deleteErrorPayload, updateCacheErrorPayload, getSourceInfoErrorPayload, updateSuccessPayload, createSuccessPayload, createSuccessOperationalPayload, addContentSuccessPayload, deleteSuccessPayload, fetchReferencesErrorPayload, buildErrorAttribution } from '../utils/errorHandling';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import rafSchedule from 'raf-schd';
|
|
3
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
3
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
4
4
|
import { isProviderNotReadyError } from '../common/types';
|
|
5
5
|
import { buildFetchErrorAttribution, fetchErrorPayload } from '../utils/errorHandling';
|
|
6
6
|
import { createSyncBlockNode, getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
3
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
|
-
import
|
|
2
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
3
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
4
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
5
5
|
import { buildFetchErrorAttribution, fetchErrorPayload } from '../utils/errorHandling';
|
|
6
6
|
import { parseResourceId } from '../utils/resourceId';
|
|
7
7
|
import { getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef } from 'react';
|
|
2
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
2
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
3
3
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
4
4
|
import { getProductFromSourceAri } from '../clients/block-service/ari';
|
|
5
5
|
import { SyncBlockError } from '../common/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { bind } from 'bind-event-listener';
|
|
3
3
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
4
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
5
5
|
import { buildFetchErrorAttribution, fetchErrorPayload, fetchSuccessPayload } from '../utils/errorHandling';
|
|
6
6
|
import { resolveSyncBlockInstance } from '../utils/resolveSyncBlockInstance';
|
|
7
7
|
import { getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { SyncBlockError } from '../common/types';
|
|
3
3
|
export const stringifyError = error => {
|
|
4
4
|
try {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
1
|
+
import { ACTION } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { EXPERIENCE_ID } from '@atlaskit/editor-common/experiences/consts';
|
|
3
|
+
import { Experience } from '@atlaskit/editor-common/experiences/Experience';
|
|
4
|
+
import { ExperienceCheckTimeout } from '@atlaskit/editor-common/experiences/ExperienceCheckTimeout';
|
|
3
5
|
const TIMEOUT_DURATION = 30000;
|
|
4
6
|
export const createExperienceDispatcher = fireAnalyticsEvent => {
|
|
5
7
|
return payload => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
2
|
import { createClient } from 'graphql-ws';
|
|
3
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
3
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
4
4
|
import { convertContentUpdatedAt } from '../../utils/utils';
|
|
5
5
|
var GRAPHQL_WS_ENDPOINT = '/gateway/api/graphql/subscriptions';
|
|
6
6
|
|
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
6
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
7
7
|
import { fetchWithRetry } from '../../utils/retry';
|
|
8
8
|
var COMMON_HEADERS = {
|
|
9
9
|
'Content-Type': 'application/json',
|
|
@@ -3,7 +3,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
|
3
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
6
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
7
7
|
import { fetchWithRetry } from '../../utils/retry';
|
|
8
8
|
import { getJiraIssueAriFromSourceAri } from './ari';
|
|
9
9
|
var COMMON_HEADERS = {
|
|
@@ -5,8 +5,8 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
9
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
8
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
9
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
10
10
|
import { isProviderNotReadyError, SyncBlockError } from '../common/types';
|
|
11
11
|
import { buildFetchErrorAttribution, fetchErrorPayload, getPiiSafeOriginalError } from '../utils/errorHandling';
|
|
12
12
|
import { createSyncBlockNode, getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -5,7 +5,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
|
-
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
8
|
+
import { NodeDataProvider } from '@atlaskit/node-data-provider/node-data-provider';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The instance of a sync block, containing its data and metadata.
|
|
@@ -11,7 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
import isEqual from 'lodash/isEqual';
|
|
14
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
14
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
15
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
16
|
import { isProviderNotReadyError, ProviderNotReadyError, SyncBlockError } from '../common/types';
|
|
17
17
|
import { buildErrorAttribution, buildFetchErrorAttribution, cacheDeletionForcedPayload, fetchErrorPayload, fetchSuccessPayload, getSourceInfoErrorPayload, sourceInfoOrphanedPayload, updateReferenceErrorPayload } from '../utils/errorHandling';
|
|
@@ -12,7 +12,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
12
12
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
15
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
16
16
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
17
|
import { SyncBlockError } from '../common/types';
|
|
18
18
|
import { updateErrorPayload, createErrorPayload, deleteErrorPayload, updateCacheErrorPayload, getSourceInfoErrorPayload, updateSuccessPayload, createSuccessPayload, createSuccessOperationalPayload, addContentSuccessPayload, deleteSuccessPayload, fetchReferencesErrorPayload, buildErrorAttribution } from '../utils/errorHandling';
|
|
@@ -2,7 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import rafSchedule from 'raf-schd';
|
|
5
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
5
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
6
6
|
import { isProviderNotReadyError } from '../common/types';
|
|
7
7
|
import { buildFetchErrorAttribution, fetchErrorPayload } from '../utils/errorHandling';
|
|
8
8
|
import { createSyncBlockNode, getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
5
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
6
|
-
import
|
|
4
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
5
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
6
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
7
7
|
import { buildFetchErrorAttribution, fetchErrorPayload } from '../utils/errorHandling';
|
|
8
8
|
import { parseResourceId } from '../utils/resourceId';
|
|
9
9
|
import { getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -6,7 +6,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
6
6
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
7
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
8
|
import { useEffect, useMemo, useRef } from 'react';
|
|
9
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
9
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
10
10
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
11
11
|
import { getProductFromSourceAri } from '../clients/block-service/ari';
|
|
12
12
|
import { SyncBlockError } from '../common/types';
|
|
@@ -8,7 +8,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
9
|
import { bind } from 'bind-event-listener';
|
|
10
10
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
11
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
11
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
12
12
|
import { buildFetchErrorAttribution, fetchErrorPayload, fetchSuccessPayload } from '../utils/errorHandling';
|
|
13
13
|
import { resolveSyncBlockInstance } from '../utils/resolveSyncBlockInstance';
|
|
14
14
|
import { getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
6
|
import { SyncBlockError } from '../common/types';
|
|
7
7
|
export var stringifyError = function stringifyError(error) {
|
|
8
8
|
try {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
1
|
+
import { ACTION } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import { EXPERIENCE_ID } from '@atlaskit/editor-common/experiences/consts';
|
|
3
|
+
import { Experience } from '@atlaskit/editor-common/experiences/Experience';
|
|
4
|
+
import { ExperienceCheckTimeout } from '@atlaskit/editor-common/experiences/ExperienceCheckTimeout';
|
|
3
5
|
var TIMEOUT_DURATION = 30000;
|
|
4
6
|
export var createExperienceDispatcher = function createExperienceDispatcher(fireAnalyticsEvent) {
|
|
5
7
|
return function (payload) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { traverse } from '@atlaskit/adf-utils/traverse';
|
|
4
|
+
import { traverse } from '@atlaskit/adf-utils/traverse/main';
|
|
5
5
|
import { createResourceIdForReference, parseResourceId } from './resourceId';
|
|
6
6
|
|
|
7
7
|
/*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type {
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
2
|
+
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory/media-provider';
|
|
3
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
3
4
|
import type { SyncBlockInstance } from '../providers/types';
|
|
4
5
|
import type { SyncBlockStoreManager } from '../store-manager/syncBlockStoreManager';
|
|
5
6
|
type SSRProviders = {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { CardProvider
|
|
1
|
+
import type { CardProvider } from '@atlaskit/editor-common/provider-factory/card-provider';
|
|
2
|
+
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory/media-provider';
|
|
3
|
+
import type { ProfilecardProvider } from '@atlaskit/editor-common/provider-factory/profile-card-provider';
|
|
2
4
|
import type { EmojiProvider } from '@atlaskit/emoji';
|
|
3
5
|
import type { MentionProvider } from '@atlaskit/mention/types';
|
|
4
|
-
import { NodeDataProvider } from '@atlaskit/node-data-provider';
|
|
6
|
+
import { NodeDataProvider } from '@atlaskit/node-data-provider/node-data-provider';
|
|
5
7
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
6
8
|
import type { SyncBlockData, SyncBlockStatus, ResourceId, SyncBlockError, SyncBlockNode, SyncBlockProduct, BlockInstanceId, SyncBlockAttrs, ReferenceSyncBlockData, DeletionReason, SyncBlockLocationScope } from '../common/types';
|
|
7
9
|
type SyncBlockErrorInfo = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { Experience } from '@atlaskit/editor-common/experiences';
|
|
3
|
-
import type {
|
|
4
|
-
import type
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
2
|
+
import type { Experience } from '@atlaskit/editor-common/experiences/Experience';
|
|
3
|
+
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory/media-provider';
|
|
4
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
5
|
+
import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode/editorViewmodePluginType';
|
|
5
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
7
|
import type { BlockInstanceId, ResourceId, SyncBlockNode, SyncBlockPrefetchData } from '../common/types';
|
|
7
8
|
import type { SyncBlockInstance, SubscriptionCallback, SyncBlockDataProviderInterface, TitleSubscriptionCallback, SyncBlockSourceInfo, SyncedBlockRendererProviderOptions } from '../providers/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
|
-
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
2
|
+
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
3
|
+
import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode/editorViewmodePluginType';
|
|
4
4
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { ResourceId, SyncBlockAttrs, SyncBlockData as Data, BlockInstanceId, DeletionReason, DeletionMechanism, ReferenceSyncBlockData, SyncBlockStatus } from '../common/types';
|
|
6
6
|
import type { SyncBlockDataProviderInterface, SyncBlockSourceInfo } from '../providers/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
2
2
|
import type { ResourceId, BlockInstanceId, SyncBlockNode } from '../common/types';
|
|
3
3
|
import type { SubscriptionCallback } from '../providers/types';
|
|
4
4
|
export interface SyncBlockBatchFetcherDeps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
2
|
+
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory/media-provider';
|
|
3
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
4
4
|
import type { ResourceId } from '../common/types';
|
|
5
5
|
import type { SyncBlockInstance, SyncBlockDataProviderInterface, SyncedBlockRendererProviderOptions } from '../providers/types';
|
|
6
6
|
export interface SyncBlockProviderFactoryManagerDeps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
1
|
+
import type { SyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
2
|
+
import type { ViewMode } from '@atlaskit/editor-plugin-editor-viewmode/editorViewmodePluginType';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { BlockInstanceId, ReferencesSourceInfo, ResourceId } from '../common/types';
|
|
5
5
|
import type { SyncBlockDataProviderInterface } from '../providers/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { ResourceId, BlockInstanceId } from '../common/types';
|
|
4
4
|
import type { SyncBlockInstance, SubscriptionCallback, SyncBlockDataProviderInterface, SyncBlockSourceInfo, TitleSubscriptionCallback } from '../providers/types';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { INPUT_METHOD
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
|
+
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import type { RendererSyncBlockEventPayload, SyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
4
|
+
import type { OperationalAEP } from '@atlaskit/editor-common/analytics/types/utils';
|
|
3
5
|
import { SyncBlockError } from '../common/types';
|
|
4
6
|
import type { DeletionMechanism, DeletionReason } from '../common/types';
|
|
5
7
|
export declare const stringifyError: (error: unknown) => string | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent
|
|
2
|
-
import {
|
|
1
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
2
|
+
import type { SyncBlockEventPayload, RendererSyncBlockEventPayload } from '@atlaskit/editor-common/analytics/types/sync-block-events';
|
|
3
|
+
import { Experience } from '@atlaskit/editor-common/experiences/Experience';
|
|
3
4
|
export declare const createExperienceDispatcher: (fireAnalyticsEvent?: ((payload: SyncBlockEventPayload) => void) | ((payload: RendererSyncBlockEventPayload) => void)) => DispatchAnalyticsEvent;
|
|
4
5
|
/**
|
|
5
6
|
* This experience tracks when a source sync block is saved to the BE.
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@atlaskit/node-data-provider": "^27.0.0",
|
|
24
24
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
25
25
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
26
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
26
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
27
27
|
"@babel/runtime": "^7.0.0",
|
|
28
28
|
"@compiled/react": "^1.0.2",
|
|
29
29
|
"bind-event-listener": "^3.0.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-dom": "^19.2.0"
|
|
43
43
|
},
|
|
44
44
|
"name": "@atlaskit/editor-synced-block-provider",
|
|
45
|
-
"version": "22.0.
|
|
45
|
+
"version": "22.0.5",
|
|
46
46
|
"description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
|
|
47
47
|
"author": "Atlassian Pty Ltd",
|
|
48
48
|
"license": "Apache-2.0",
|