@atlaskit/editor-synced-block-provider 11.0.13 → 11.0.14
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 +10 -0
- package/dist/cjs/hooks/useFetchSyncBlockData.js +2 -2
- package/dist/cjs/store-manager/syncBlockProviderFactoryManager.js +2 -2
- package/dist/es2019/hooks/useFetchSyncBlockData.js +1 -1
- package/dist/es2019/store-manager/syncBlockProviderFactoryManager.js +1 -1
- package/dist/esm/hooks/useFetchSyncBlockData.js +1 -1
- package/dist/esm/store-manager/syncBlockProviderFactoryManager.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-provider
|
|
2
2
|
|
|
3
|
+
## 11.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 11.0.13
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
14
14
|
var _monitoring = require("@atlaskit/editor-common/monitoring");
|
|
15
|
-
var
|
|
15
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
16
16
|
var _types = require("../common/types");
|
|
17
17
|
var _errorHandling = require("../utils/errorHandling");
|
|
18
18
|
var _utils = require("../utils/utils");
|
|
@@ -167,7 +167,7 @@ var useFetchSyncBlockData = exports.useFetchSyncBlockData = function useFetchSyn
|
|
|
167
167
|
// Applying providers notifies subscribers synchronously, so it must not run during
|
|
168
168
|
// render - that would setState on another component mid-render and remount the block.
|
|
169
169
|
(0, _react.useEffect)(function () {
|
|
170
|
-
if (!(0,
|
|
170
|
+
if (!(0, _fg.fg)('platform_editor_blocks_patch_7')) {
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
if (!resourceId || (0, _coreUtils.isSSR)()) {
|
|
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
12
12
|
var _monitoring = require("@atlaskit/editor-common/monitoring");
|
|
13
13
|
var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
14
|
-
var
|
|
14
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
15
15
|
var _errorHandling = require("../utils/errorHandling");
|
|
16
16
|
var _resourceId = require("../utils/resourceId");
|
|
17
17
|
var _utils = require("../utils/utils");
|
|
@@ -54,7 +54,7 @@ var SyncBlockProviderFactoryManager = exports.SyncBlockProviderFactoryManager =
|
|
|
54
54
|
// cannot run during render - callers invoke `syncProviders` from an effect
|
|
55
55
|
// instead. Effects never run while server rendering, and there are no mounted
|
|
56
56
|
// subscribers to notify, so the server keeps applying them inline.
|
|
57
|
-
var deferProviderSync = (0,
|
|
57
|
+
var deferProviderSync = (0, _fg.fg)('platform_editor_blocks_patch_7');
|
|
58
58
|
if (deferProviderSync && !(0, _coreUtils.isSSR)()) {
|
|
59
59
|
return providerFactory;
|
|
60
60
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
3
3
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
5
5
|
import { isProviderNotReadyError, SyncBlockError } from '../common/types';
|
|
6
6
|
import { buildFetchErrorAttribution, fetchErrorPayload, getPiiSafeOriginalError } from '../utils/errorHandling';
|
|
7
7
|
import { createSyncBlockNode, getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
3
3
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
6
|
import { buildFetchErrorAttribution, fetchErrorPayload } from '../utils/errorHandling';
|
|
7
7
|
import { parseResourceId } from '../utils/resourceId';
|
|
8
8
|
import { getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
8
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
9
9
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
import { isProviderNotReadyError, SyncBlockError } from '../common/types';
|
|
12
12
|
import { buildFetchErrorAttribution, fetchErrorPayload, getPiiSafeOriginalError } from '../utils/errorHandling';
|
|
13
13
|
import { createSyncBlockNode, getSourceProductFromResourceIdSafe } from '../utils/utils';
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
5
5
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
6
6
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
import { buildFetchErrorAttribution, fetchErrorPayload } from '../utils/errorHandling';
|
|
9
9
|
import { parseResourceId } from '../utils/resourceId';
|
|
10
10
|
import { getSourceProductFromResourceIdSafe } from '../utils/utils';
|
package/package.json
CHANGED