@atlaskit/editor-synced-block-provider 8.1.2 → 8.1.3
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 +9 -0
- package/dist/cjs/providers/block-service/blockServiceAPI.js +1 -1
- package/dist/cjs/store-manager/referenceSyncBlockStoreManager.js +1 -1
- package/dist/es2019/providers/block-service/blockServiceAPI.js +1 -1
- package/dist/es2019/store-manager/referenceSyncBlockStoreManager.js +3 -2
- package/dist/esm/providers/block-service/blockServiceAPI.js +1 -1
- package/dist/esm/store-manager/referenceSyncBlockStoreManager.js +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-provider
|
|
2
2
|
|
|
3
|
+
## 8.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0310e538ce794`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0310e538ce794) -
|
|
8
|
+
Treat no-op reference sync block flushes as successful when there is nothing to persist, reducing
|
|
9
|
+
false-positive sync block error reporting.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 8.1.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -806,7 +806,7 @@ var BlockServiceADFFetchProvider = /*#__PURE__*/function () {
|
|
|
806
806
|
// Dynamically import blockSubscription so that graphql-ws is NOT pulled
|
|
807
807
|
// into the SSR/preload bundle that imports this subpath.
|
|
808
808
|
void Promise.resolve().then(function () {
|
|
809
|
-
return _interopRequireWildcard(require('../../clients/block-service/blockSubscription'));
|
|
809
|
+
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-synced-block-subscription" */'../../clients/block-service/blockSubscription'));
|
|
810
810
|
}).then(function (_ref6) {
|
|
811
811
|
var subscribeToBlockUpdatesWS = _ref6.subscribeToBlockUpdates;
|
|
812
812
|
if (cancelled) {
|
|
@@ -986,7 +986,7 @@ var ReferenceSyncBlockStoreManager = exports.ReferenceSyncBlockStoreManager = /*
|
|
|
986
986
|
_context4.next = 1;
|
|
987
987
|
break;
|
|
988
988
|
}
|
|
989
|
-
return _context4.abrupt("return",
|
|
989
|
+
return _context4.abrupt("return", (0, _platformFeatureFlags.fg)('platform_editor_blocks_patch_2'));
|
|
990
990
|
case 1:
|
|
991
991
|
if (this.isCacheDirty) {
|
|
992
992
|
_context4.next = 2;
|
|
@@ -545,7 +545,7 @@ class BlockServiceADFFetchProvider {
|
|
|
545
545
|
|
|
546
546
|
// Dynamically import blockSubscription so that graphql-ws is NOT pulled
|
|
547
547
|
// into the SSR/preload bundle that imports this subpath.
|
|
548
|
-
void import('../../clients/block-service/blockSubscription').then(({
|
|
548
|
+
void import( /* webpackChunkName: "@atlaskit-internal_editor-synced-block-subscription" */'../../clients/block-service/blockSubscription').then(({
|
|
549
549
|
subscribeToBlockUpdates: subscribeToBlockUpdatesWS
|
|
550
550
|
}) => {
|
|
551
551
|
if (cancelled) {
|
|
@@ -810,7 +810,9 @@ export class ReferenceSyncBlockStoreManager {
|
|
|
810
810
|
*/
|
|
811
811
|
async flush() {
|
|
812
812
|
if (this.viewMode === 'view') {
|
|
813
|
-
|
|
813
|
+
// Reference flushes are only meaningful while editing. Treat view-mode flush attempts as
|
|
814
|
+
// gated no-op successes so lifecycle/teardown calls do not report false save failures.
|
|
815
|
+
return fg('platform_editor_blocks_patch_2');
|
|
814
816
|
}
|
|
815
817
|
if (!this.isCacheDirty) {
|
|
816
818
|
// we use the isCacheDirty flag as a quick check.
|
|
@@ -858,7 +860,6 @@ export class ReferenceSyncBlockStoreManager {
|
|
|
858
860
|
this.isCacheDirty = false; // Reset since we're considering this a successful no-op flush
|
|
859
861
|
return true;
|
|
860
862
|
}
|
|
861
|
-
|
|
862
863
|
// reset isCacheDirty early to prevent race condition
|
|
863
864
|
// There is a race condition where if a user makes changes (create/delete) to a reference sync block
|
|
864
865
|
// on a live page and the reference sync block is being saved while the user
|
|
@@ -798,7 +798,7 @@ var BlockServiceADFFetchProvider = /*#__PURE__*/function () {
|
|
|
798
798
|
|
|
799
799
|
// Dynamically import blockSubscription so that graphql-ws is NOT pulled
|
|
800
800
|
// into the SSR/preload bundle that imports this subpath.
|
|
801
|
-
void import('../../clients/block-service/blockSubscription').then(function (_ref6) {
|
|
801
|
+
void import( /* webpackChunkName: "@atlaskit-internal_editor-synced-block-subscription" */'../../clients/block-service/blockSubscription').then(function (_ref6) {
|
|
802
802
|
var subscribeToBlockUpdatesWS = _ref6.subscribeToBlockUpdates;
|
|
803
803
|
if (cancelled) {
|
|
804
804
|
return;
|
|
@@ -979,7 +979,7 @@ export var ReferenceSyncBlockStoreManager = /*#__PURE__*/function () {
|
|
|
979
979
|
_context4.next = 1;
|
|
980
980
|
break;
|
|
981
981
|
}
|
|
982
|
-
return _context4.abrupt("return",
|
|
982
|
+
return _context4.abrupt("return", fg('platform_editor_blocks_patch_2'));
|
|
983
983
|
case 1:
|
|
984
984
|
if (this.isCacheDirty) {
|
|
985
985
|
_context4.next = 2;
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
22
22
|
"@atlaskit/node-data-provider": "^13.0.0",
|
|
23
23
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
24
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
24
|
+
"@atlaskit/tmp-editor-statsig": "^109.0.0",
|
|
25
25
|
"@babel/runtime": "^7.0.0",
|
|
26
26
|
"@compiled/react": "^0.20.0",
|
|
27
27
|
"graphql-ws": "^5.14.2",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"uuid": "^3.1.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^116.
|
|
33
|
+
"@atlaskit/editor-common": "^116.6.0",
|
|
34
34
|
"react": "^18.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"name": "@atlaskit/editor-synced-block-provider",
|
|
77
|
-
"version": "8.1.
|
|
77
|
+
"version": "8.1.3",
|
|
78
78
|
"description": "Synced Block Provider for @atlaskit/editor-plugin-synced-block",
|
|
79
79
|
"author": "Atlassian Pty Ltd",
|
|
80
80
|
"license": "Apache-2.0",
|
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
"registry": "https://registry.npmjs.org/"
|
|
83
83
|
},
|
|
84
84
|
"platform-feature-flags": {
|
|
85
|
+
"platform_editor_blocks_patch_2": {
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
},
|
|
85
88
|
"platform_synced_block_patch_13": {
|
|
86
89
|
"type": "boolean"
|
|
87
90
|
},
|