@atlaskit/editor-plugin-synced-block 8.3.7 → 8.3.9
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 +15 -0
- package/dist/cjs/pm-plugins/main.js +10 -0
- package/dist/es2019/pm-plugins/main.js +10 -0
- package/dist/esm/pm-plugins/main.js +10 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-synced-block
|
|
2
2
|
|
|
3
|
+
## 8.3.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`7ddc63dca3716`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ddc63dca3716) -
|
|
8
|
+
Fix synced block reference showing unpublished error when created from existing content on a live
|
|
9
|
+
page without further edits
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 8.3.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 8.3.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -327,6 +327,16 @@ var createPlugin = exports.createPlugin = function createPlugin(options, pmPlugi
|
|
|
327
327
|
});
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
+
// Trigger a deferred flush when block creation completes after the initial
|
|
331
|
+
// flush timed out waiting for it. This ensures content created from
|
|
332
|
+
// existing text is eventually persisted even if no further edits are made.
|
|
333
|
+
// See EDITOR-7112.
|
|
334
|
+
syncBlockStore.sourceManager.registerPostCreationFlushCallback(function () {
|
|
335
|
+
(0, _utils3.deferDispatch)(function () {
|
|
336
|
+
syncBlockStore.sourceManager.flush();
|
|
337
|
+
});
|
|
338
|
+
});
|
|
339
|
+
|
|
330
340
|
// Set up callback to detect unpublished sync blocks when they're fetched
|
|
331
341
|
syncBlockStore.referenceManager.setOnUnpublishedSyncBlockDetected(function (resourceId) {
|
|
332
342
|
// Only show the flag once per sync block
|
|
@@ -295,6 +295,16 @@ export const createPlugin = (options, pmPluginFactoryParams, syncBlockStore, api
|
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
|
|
298
|
+
// Trigger a deferred flush when block creation completes after the initial
|
|
299
|
+
// flush timed out waiting for it. This ensures content created from
|
|
300
|
+
// existing text is eventually persisted even if no further edits are made.
|
|
301
|
+
// See EDITOR-7112.
|
|
302
|
+
syncBlockStore.sourceManager.registerPostCreationFlushCallback(() => {
|
|
303
|
+
deferDispatch(() => {
|
|
304
|
+
syncBlockStore.sourceManager.flush();
|
|
305
|
+
});
|
|
306
|
+
});
|
|
307
|
+
|
|
298
308
|
// Set up callback to detect unpublished sync blocks when they're fetched
|
|
299
309
|
syncBlockStore.referenceManager.setOnUnpublishedSyncBlockDetected(resourceId => {
|
|
300
310
|
// Only show the flag once per sync block
|
|
@@ -320,6 +320,16 @@ export var createPlugin = function createPlugin(options, pmPluginFactoryParams,
|
|
|
320
320
|
});
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
+
// Trigger a deferred flush when block creation completes after the initial
|
|
324
|
+
// flush timed out waiting for it. This ensures content created from
|
|
325
|
+
// existing text is eventually persisted even if no further edits are made.
|
|
326
|
+
// See EDITOR-7112.
|
|
327
|
+
syncBlockStore.sourceManager.registerPostCreationFlushCallback(function () {
|
|
328
|
+
deferDispatch(function () {
|
|
329
|
+
syncBlockStore.sourceManager.flush();
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
|
|
323
333
|
// Set up callback to detect unpublished sync blocks when they're fetched
|
|
324
334
|
syncBlockStore.referenceManager.setOnUnpublishedSyncBlockDetected(function (resourceId) {
|
|
325
335
|
// Only show the flag once per sync block
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-synced-block",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.9",
|
|
4
4
|
"description": "SyncedBlock plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/adf-schema": "^52.11.0",
|
|
32
|
-
"@atlaskit/button": "23.11.
|
|
33
|
-
"@atlaskit/dropdown-menu": "16.8.
|
|
32
|
+
"@atlaskit/button": "23.11.6",
|
|
33
|
+
"@atlaskit/dropdown-menu": "16.8.12",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.32.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^10.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-block-menu": "^9.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/editor-synced-block-provider": "^6.6.0",
|
|
47
47
|
"@atlaskit/editor-toolbar": "^1.5.0",
|
|
48
48
|
"@atlaskit/flag": "^17.11.0",
|
|
49
|
-
"@atlaskit/icon": "
|
|
49
|
+
"@atlaskit/icon": "35.0.0",
|
|
50
50
|
"@atlaskit/icon-lab": "^6.9.0",
|
|
51
51
|
"@atlaskit/logo": "^20.1.0",
|
|
52
52
|
"@atlaskit/lozenge": "^13.8.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
55
55
|
"@atlaskit/primitives": "^19.0.0",
|
|
56
56
|
"@atlaskit/spinner": "19.1.2",
|
|
57
|
-
"@atlaskit/tmp-editor-statsig": "^81.
|
|
57
|
+
"@atlaskit/tmp-editor-statsig": "^81.1.0",
|
|
58
58
|
"@atlaskit/tokens": "13.0.4",
|
|
59
59
|
"@atlaskit/tooltip": "^22.2.0",
|
|
60
60
|
"@atlaskit/visually-hidden": "^3.1.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"date-fns": "^2.17.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@atlaskit/editor-common": "^114.
|
|
67
|
+
"@atlaskit/editor-common": "^114.35.0",
|
|
68
68
|
"react": "^18.2.0",
|
|
69
69
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
70
70
|
},
|