@atlaskit/editor-plugin-placeholder 7.2.13 → 7.2.15
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 7.2.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 7.2.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`6d74750cc8818`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6d74750cc8818) -
|
|
14
|
+
Fix hydration error on empty pages by not rendering placeholder plugin spinner in SSR
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 7.2.13
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -9,6 +9,7 @@ exports.pluginKey = exports.placeholderPlugin = exports.EMPTY_PARAGRAPH_TIMEOUT_
|
|
|
9
9
|
require("./placeholderPlugin.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
12
13
|
var _document = require("@atlaskit/editor-common/utils/document");
|
|
13
14
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
@@ -65,6 +66,10 @@ var placeholderPlugin = exports.placeholderPlugin = function placeholderPlugin(_
|
|
|
65
66
|
},
|
|
66
67
|
contentComponent: (0, _expValEquals.expValEquals)('confluence_load_editor_title_on_transition', 'contentPlaceholder', true) ? function (params) {
|
|
67
68
|
var _params$editorView, _params$editorView2;
|
|
69
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) && (0, _coreUtils.isSSR)()) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
|
|
68
73
|
// If loading spinner is explicitly disabled (e.g., for DiffEditor/version history), skip
|
|
69
74
|
if ((options === null || options === void 0 ? void 0 : options.enableLoadingSpinner) === false) {
|
|
70
75
|
return null;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import "./placeholderPlugin.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
5
6
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
|
|
6
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -55,6 +56,10 @@ export const placeholderPlugin = ({
|
|
|
55
56
|
},
|
|
56
57
|
contentComponent: expValEquals('confluence_load_editor_title_on_transition', 'contentPlaceholder', true) ? params => {
|
|
57
58
|
var _params$editorView, _params$editorView2, _params$editorView2$s;
|
|
59
|
+
if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && isSSR()) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
// If loading spinner is explicitly disabled (e.g., for DiffEditor/version history), skip
|
|
59
64
|
if ((options === null || options === void 0 ? void 0 : options.enableLoadingSpinner) === false) {
|
|
60
65
|
return null;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import "./placeholderPlugin.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
5
6
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
|
|
6
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
@@ -58,6 +59,10 @@ export var placeholderPlugin = function placeholderPlugin(_ref) {
|
|
|
58
59
|
},
|
|
59
60
|
contentComponent: expValEquals('confluence_load_editor_title_on_transition', 'contentPlaceholder', true) ? function (params) {
|
|
60
61
|
var _params$editorView, _params$editorView2;
|
|
62
|
+
if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && isSSR()) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
|
|
61
66
|
// If loading spinner is explicitly disabled (e.g., for DiffEditor/version history), skip
|
|
62
67
|
if ((options === null || options === void 0 ? void 0 : options.enableLoadingSpinner) === false) {
|
|
63
68
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.15",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/primitives": "^18.0.0",
|
|
39
39
|
"@atlaskit/spinner": "^19.0.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^26.0.0",
|
|
41
41
|
"@atlaskit/tokens": "^11.0.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^111.
|
|
45
|
+
"@atlaskit/editor-common": "^111.16.0",
|
|
46
46
|
"react": "^18.2.0",
|
|
47
47
|
"react-dom": "^18.2.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1"
|