@atlaskit/editor-synced-block-renderer 23.0.1 → 24.0.1

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-synced-block-renderer
2
2
 
3
+ ## 24.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f53a04e7c8b40`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f53a04e7c8b40) -
8
+ Restore the editor-synced-block-same-page-sync experiment guards to prevent Jira fetch-only
9
+ renderers from entering the same-document write-provider path.
10
+ - Updated dependencies
11
+
12
+ ## 24.0.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 23.0.1
4
19
 
5
20
  ### Patch Changes
@@ -8,6 +8,7 @@ exports.renderSyncedBlockContent = renderSyncedBlockContent;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
10
10
  var _editorSyncedBlockProvider = require("@atlaskit/editor-synced-block-provider");
11
+ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
11
12
  var _AKRendererWrapper = require("./AKRendererWrapper");
12
13
  var _SyncedBlockErrorComponent = require("./SyncedBlockErrorComponent");
13
14
  var _SyncedBlockLoadingState = require("./SyncedBlockLoadingState");
@@ -73,7 +74,7 @@ function renderSyncedBlockContent(_ref) {
73
74
  isSuccess: false
74
75
  };
75
76
  }
76
- var isLocalSameDocumentSource = Boolean(syncBlockInstance.localSameDocumentSource);
77
+ var isLocalSameDocumentSource = Boolean(syncBlockInstance.localSameDocumentSource) && (0, _isExperimentEnabled.isExperimentEnabled)('editor-synced-block-same-page-sync');
77
78
  if (syncBlockInstance.data.status === 'unpublished' && !isLocalSameDocumentSource) {
78
79
  var _syncBlockInstance$da2;
79
80
  return {
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { isSSR } from '@atlaskit/editor-common/core-utils';
3
3
  import { SyncBlockError } from '@atlaskit/editor-synced-block-provider';
4
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
5
  import { AKRendererWrapper } from './AKRendererWrapper';
5
6
  import { SyncedBlockErrorComponent } from './SyncedBlockErrorComponent';
6
7
  import { SyncedBlockLoadingState } from './SyncedBlockLoadingState';
@@ -67,7 +68,7 @@ export function renderSyncedBlockContent({
67
68
  isSuccess: false
68
69
  };
69
70
  }
70
- const isLocalSameDocumentSource = Boolean(syncBlockInstance.localSameDocumentSource);
71
+ const isLocalSameDocumentSource = Boolean(syncBlockInstance.localSameDocumentSource) && isExperimentEnabled('editor-synced-block-same-page-sync');
71
72
  if (syncBlockInstance.data.status === 'unpublished' && !isLocalSameDocumentSource) {
72
73
  var _syncBlockInstance$da2;
73
74
  return {
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { isSSR } from '@atlaskit/editor-common/core-utils';
3
3
  import { SyncBlockError } from '@atlaskit/editor-synced-block-provider';
4
+ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
5
  import { AKRendererWrapper } from './AKRendererWrapper';
5
6
  import { SyncedBlockErrorComponent } from './SyncedBlockErrorComponent';
6
7
  import { SyncedBlockLoadingState } from './SyncedBlockLoadingState';
@@ -66,7 +67,7 @@ export function renderSyncedBlockContent(_ref) {
66
67
  isSuccess: false
67
68
  };
68
69
  }
69
- var isLocalSameDocumentSource = Boolean(syncBlockInstance.localSameDocumentSource);
70
+ var isLocalSameDocumentSource = Boolean(syncBlockInstance.localSameDocumentSource) && isExperimentEnabled('editor-synced-block-same-page-sync');
70
71
  if (syncBlockInstance.data.status === 'unpublished' && !isLocalSameDocumentSource) {
71
72
  var _syncBlockInstance$da2;
72
73
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-synced-block-renderer",
3
- "version": "23.0.1",
3
+ "version": "24.0.1",
4
4
  "description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,8 +34,8 @@
34
34
  "@atlaskit/button": "^25.4.0",
35
35
  "@atlaskit/css": "^1.1.0",
36
36
  "@atlaskit/editor-json-transformer": "^10.0.0",
37
- "@atlaskit/editor-plugin-synced-block": "^23.0.0",
38
- "@atlaskit/editor-synced-block-provider": "^21.0.0",
37
+ "@atlaskit/editor-plugin-synced-block": "^24.0.0",
38
+ "@atlaskit/editor-synced-block-provider": "^22.0.0",
39
39
  "@atlaskit/heading": "^8.0.0",
40
40
  "@atlaskit/icon": "^38.0.0",
41
41
  "@atlaskit/icon-lab": "^7.11.0",
@@ -43,9 +43,9 @@
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/primitives": "^22.5.0",
45
45
  "@atlaskit/react-compiler-gating": "^0.2.0",
46
- "@atlaskit/renderer": "^148.0.0",
46
+ "@atlaskit/renderer": "^149.0.0",
47
47
  "@atlaskit/spinner": "^20.4.0",
48
- "@atlaskit/tokens": "^20.3.0",
48
+ "@atlaskit/tokens": "^20.4.0",
49
49
  "@atlaskit/tooltip": "^24.4.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@compiled/react": "^1.0.2",
@@ -53,7 +53,7 @@
53
53
  "relay-runtime": "^20.1.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@atlaskit/editor-common": "^129.1.0",
56
+ "@atlaskit/editor-common": "^130.3.0",
57
57
  "react": "^18.2.0 || ^19.2.0",
58
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
59
59
  },