@atlaskit/editor-synced-block-renderer 28.0.1 → 29.0.0
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 +16 -0
- package/compass.yml +1 -1
- package/dist/cjs/ui/AKRendererWrapper.js +6 -1
- package/dist/cjs/ui/SyncedBlockEntityNotFoundError.js +1 -1
- package/dist/cjs/ui/SyncedBlockErrorStateCard.js +1 -1
- package/dist/cjs/ui/SyncedBlockLoadError.js +1 -1
- package/dist/cjs/ui/SyncedBlockLoadingState.js +1 -1
- package/dist/cjs/ui/SyncedBlockNotFoundError.js +1 -1
- package/dist/cjs/ui/SyncedBlockPermissionDenied.js +1 -1
- package/dist/cjs/ui/SyncedBlockUnpublishedError.js +1 -1
- package/dist/es2019/ui/AKRendererWrapper.js +7 -2
- package/dist/es2019/ui/SyncedBlockEntityNotFoundError.js +1 -1
- package/dist/es2019/ui/SyncedBlockErrorStateCard.js +1 -1
- package/dist/es2019/ui/SyncedBlockLoadError.js +1 -1
- package/dist/es2019/ui/SyncedBlockLoadingState.js +1 -1
- package/dist/es2019/ui/SyncedBlockNotFoundError.js +1 -1
- package/dist/es2019/ui/SyncedBlockPermissionDenied.js +1 -1
- package/dist/es2019/ui/SyncedBlockUnpublishedError.js +1 -1
- package/dist/esm/ui/AKRendererWrapper.js +7 -2
- package/dist/esm/ui/SyncedBlockEntityNotFoundError.js +1 -1
- package/dist/esm/ui/SyncedBlockErrorStateCard.js +1 -1
- package/dist/esm/ui/SyncedBlockLoadError.js +1 -1
- package/dist/esm/ui/SyncedBlockLoadingState.js +1 -1
- package/dist/esm/ui/SyncedBlockNotFoundError.js +1 -1
- package/dist/esm/ui/SyncedBlockPermissionDenied.js +1 -1
- package/dist/esm/ui/SyncedBlockUnpublishedError.js +1 -1
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 29.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 28.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`5ed76eebcd597`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5ed76eebcd597) -
|
|
14
|
+
Synced blocks automatically inherit the enclosing renderer's Performance Mode decision without
|
|
15
|
+
remounting content when activation changes. Without a parent decision, Performance Mode remains
|
|
16
|
+
inactive. Confluence supplies the parent decision through confluence_view_page_performance_mode.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 28.0.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -77,6 +77,10 @@ var AKRendererWrapper = exports.AKRendererWrapper = /*#__PURE__*/(0, _react.memo
|
|
|
77
77
|
dataProviders = _ref3.dataProviders,
|
|
78
78
|
options = _ref3.options,
|
|
79
79
|
headingIdPrefix = _ref3.headingIdPrefix;
|
|
80
|
+
// Read the host decision before the synced-block context provider replaces it.
|
|
81
|
+
var _useRendererContext = (0, _rendererContext.useRendererContext)(),
|
|
82
|
+
_useRendererContext$i = _useRendererContext.isPerformanceModeActive,
|
|
83
|
+
isPerformanceModeActive = _useRendererContext$i === void 0 ? false : _useRendererContext$i;
|
|
80
84
|
var mergedOptions = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
81
85
|
var _ref4 = mergedOptions !== null && mergedOptions !== void 0 ? mergedOptions : {},
|
|
82
86
|
appearance = _ref4.appearance,
|
|
@@ -159,6 +163,7 @@ var AKRendererWrapper = exports.AKRendererWrapper = /*#__PURE__*/(0, _react.memo
|
|
|
159
163
|
mentionNodeDataProvider: (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_mention_avatar_synced_block') ? mentionNodeDataProvider : undefined,
|
|
160
164
|
smartLinks: smartLinks,
|
|
161
165
|
stickyHeaders: stickyHeaders,
|
|
162
|
-
contentMode: contentMode
|
|
166
|
+
contentMode: contentMode,
|
|
167
|
+
isPerformanceModeActive: isPerformanceModeActive
|
|
163
168
|
})))));
|
|
164
169
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockEntityNotFoundError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockEntityNotFoundError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,7 +6,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
|
|
|
6
6
|
import { RendererActionsContext } from '@atlaskit/renderer/actions/renderer-actions-context';
|
|
7
7
|
import { nodeToReact as defaultNodeComponents } from '@atlaskit/renderer/nodes';
|
|
8
8
|
import ReactRenderer from '@atlaskit/renderer/renderer';
|
|
9
|
-
import { RendererContextProvider } from '@atlaskit/renderer/renderer-context';
|
|
9
|
+
import { RendererContextProvider, useRendererContext } from '@atlaskit/renderer/renderer-context';
|
|
10
10
|
import { ValidationContextProvider } from '@atlaskit/renderer/validation-context';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
12
|
const ValidationContextWrapper = ({
|
|
@@ -65,6 +65,10 @@ export const AKRendererWrapper = /*#__PURE__*/memo(({
|
|
|
65
65
|
options,
|
|
66
66
|
headingIdPrefix
|
|
67
67
|
}) => {
|
|
68
|
+
// Read the host decision before the synced-block context provider replaces it.
|
|
69
|
+
const {
|
|
70
|
+
isPerformanceModeActive = false
|
|
71
|
+
} = useRendererContext();
|
|
68
72
|
const mergedOptions = {
|
|
69
73
|
...defaultOptions,
|
|
70
74
|
...options
|
|
@@ -151,6 +155,7 @@ export const AKRendererWrapper = /*#__PURE__*/memo(({
|
|
|
151
155
|
mentionNodeDataProvider: isExperimentEnabled('platform_editor_mention_avatar_synced_block') ? mentionNodeDataProvider : undefined,
|
|
152
156
|
smartLinks: smartLinks,
|
|
153
157
|
stickyHeaders: stickyHeaders,
|
|
154
|
-
contentMode: contentMode
|
|
158
|
+
contentMode: contentMode,
|
|
159
|
+
isPerformanceModeActive: isPerformanceModeActive
|
|
155
160
|
})))));
|
|
156
161
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockEntityNotFoundError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockEntityNotFoundError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockEntityNotFoundError.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockErrorStateCard.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockErrorStateCard.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockErrorStateCard.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockLoadError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockLoadError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockLoadError.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockLoadingState.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockLoadingState.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockLoadingState.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockNotFoundError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockNotFoundError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockNotFoundError.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockPermissionDenied.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockPermissionDenied.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockPermissionDenied.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import _SyncedBlockPermissionDeniedRequestAccessMutation from "./__generated__/SyncedBlockPermissionDeniedRequestAccessMutation.graphql";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockUnpublishedError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockUnpublishedError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockUnpublishedError.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -11,7 +11,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
|
|
|
11
11
|
import { RendererActionsContext } from '@atlaskit/renderer/actions/renderer-actions-context';
|
|
12
12
|
import { nodeToReact as defaultNodeComponents } from '@atlaskit/renderer/nodes';
|
|
13
13
|
import ReactRenderer from '@atlaskit/renderer/renderer';
|
|
14
|
-
import { RendererContextProvider } from '@atlaskit/renderer/renderer-context';
|
|
14
|
+
import { RendererContextProvider, useRendererContext } from '@atlaskit/renderer/renderer-context';
|
|
15
15
|
import { ValidationContextProvider } from '@atlaskit/renderer/validation-context';
|
|
16
16
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
17
17
|
var ValidationContextWrapper = function ValidationContextWrapper(_ref) {
|
|
@@ -68,6 +68,10 @@ export var AKRendererWrapper = /*#__PURE__*/memo(function (_ref3) {
|
|
|
68
68
|
dataProviders = _ref3.dataProviders,
|
|
69
69
|
options = _ref3.options,
|
|
70
70
|
headingIdPrefix = _ref3.headingIdPrefix;
|
|
71
|
+
// Read the host decision before the synced-block context provider replaces it.
|
|
72
|
+
var _useRendererContext = useRendererContext(),
|
|
73
|
+
_useRendererContext$i = _useRendererContext.isPerformanceModeActive,
|
|
74
|
+
isPerformanceModeActive = _useRendererContext$i === void 0 ? false : _useRendererContext$i;
|
|
71
75
|
var mergedOptions = _objectSpread(_objectSpread({}, defaultOptions), options);
|
|
72
76
|
var _ref4 = mergedOptions !== null && mergedOptions !== void 0 ? mergedOptions : {},
|
|
73
77
|
appearance = _ref4.appearance,
|
|
@@ -150,6 +154,7 @@ export var AKRendererWrapper = /*#__PURE__*/memo(function (_ref3) {
|
|
|
150
154
|
mentionNodeDataProvider: isExperimentEnabled('platform_editor_mention_avatar_synced_block') ? mentionNodeDataProvider : undefined,
|
|
151
155
|
smartLinks: smartLinks,
|
|
152
156
|
stickyHeaders: stickyHeaders,
|
|
153
|
-
contentMode: contentMode
|
|
157
|
+
contentMode: contentMode,
|
|
158
|
+
isPerformanceModeActive: isPerformanceModeActive
|
|
154
159
|
})))));
|
|
155
160
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockEntityNotFoundError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockEntityNotFoundError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockEntityNotFoundError.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockErrorStateCard.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockErrorStateCard.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockErrorStateCard.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockLoadError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockLoadError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockLoadError.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockLoadingState.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockLoadingState.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockLoadingState.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockNotFoundError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockNotFoundError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./SyncedBlockNotFoundError.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockPermissionDenied.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockPermissionDenied.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./SyncedBlockPermissionDenied.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* SyncedBlockUnpublishedError.tsx generated by @compiled/babel-plugin v3.0.
|
|
1
|
+
/* SyncedBlockUnpublishedError.tsx generated by @compiled/babel-plugin v3.0.4 */
|
|
2
2
|
import "./SyncedBlockUnpublishedError.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.0",
|
|
4
4
|
"description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"atlaskit:src": "src/index.ts",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
34
|
-
"@atlaskit/button": "^25.
|
|
34
|
+
"@atlaskit/button": "^25.8.0",
|
|
35
35
|
"@atlaskit/css": "^1.1.0",
|
|
36
36
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-synced-block": "^
|
|
38
|
-
"@atlaskit/editor-synced-block-provider": "^
|
|
37
|
+
"@atlaskit/editor-plugin-synced-block": "^29.0.0",
|
|
38
|
+
"@atlaskit/editor-synced-block-provider": "^27.0.0",
|
|
39
39
|
"@atlaskit/heading": "^8.0.0",
|
|
40
|
-
"@atlaskit/icon": "^38.
|
|
40
|
+
"@atlaskit/icon": "^38.1.0",
|
|
41
41
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
42
42
|
"@atlaskit/image": "^5.2.0",
|
|
43
43
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
44
|
-
"@atlaskit/primitives": "^22.
|
|
44
|
+
"@atlaskit/primitives": "^22.7.0",
|
|
45
45
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
46
|
-
"@atlaskit/renderer": "^
|
|
46
|
+
"@atlaskit/renderer": "^154.0.0",
|
|
47
47
|
"@atlaskit/spinner": "^20.4.0",
|
|
48
|
-
"@atlaskit/tokens": "^20.
|
|
48
|
+
"@atlaskit/tokens": "^20.12.0",
|
|
49
49
|
"@atlaskit/tooltip": "^24.4.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@compiled/react": "^1.0.2",
|
|
@@ -53,11 +53,12 @@
|
|
|
53
53
|
"relay-runtime": "^20.1.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^
|
|
56
|
+
"@atlaskit/editor-common": "^135.0.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
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
+
"@atlaskit/editor-common": "^135.0.0",
|
|
61
62
|
"react": "^19.2.0",
|
|
62
63
|
"react-intl": "^7.0.0",
|
|
63
64
|
"typescript": "npm:@typescript/typescript6@^6.0.2"
|