@atlaskit/editor-plugin-placeholder 10.0.2 → 10.1.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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 10.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 10.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`e5cdd96dcf4f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5cdd96dcf4f9) -
|
|
14
|
+
Clean up platform_editor_hydratable_ui experiment (shipped as enabled)
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 10.0.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -14,7 +14,6 @@ var _document = require("@atlaskit/editor-common/utils/document");
|
|
|
14
14
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
15
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
16
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
17
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
17
|
var _main = _interopRequireDefault(require("./pm-plugins/main"));
|
|
19
18
|
var EMPTY_PARAGRAPH_TIMEOUT_DELAY = exports.EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000; // Delay before showing placeholder on empty paragraph
|
|
20
19
|
|
|
@@ -64,9 +63,9 @@ var placeholderPlugin = exports.placeholderPlugin = function placeholderPlugin(_
|
|
|
64
63
|
}
|
|
65
64
|
}];
|
|
66
65
|
},
|
|
67
|
-
contentComponent:
|
|
66
|
+
contentComponent: function contentComponent(params) {
|
|
68
67
|
var _params$editorView, _params$editorView2;
|
|
69
|
-
if ((0,
|
|
68
|
+
if ((0, _coreUtils.isSSR)()) {
|
|
70
69
|
return null;
|
|
71
70
|
}
|
|
72
71
|
|
|
@@ -96,7 +95,7 @@ var placeholderPlugin = exports.placeholderPlugin = function placeholderPlugin(_
|
|
|
96
95
|
}));
|
|
97
96
|
}
|
|
98
97
|
return null;
|
|
99
|
-
}
|
|
98
|
+
}
|
|
100
99
|
};
|
|
101
100
|
};
|
|
102
101
|
var spinnerContainerStyles = {
|
|
@@ -7,7 +7,6 @@ import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
|
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import createPlugin from './pm-plugins/main';
|
|
12
11
|
export const EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000; // Delay before showing placeholder on empty paragraph
|
|
13
12
|
|
|
@@ -54,9 +53,9 @@ export const placeholderPlugin = ({
|
|
|
54
53
|
}) => createPlugin(getIntl(), options && options.placeholder, options && options.placeholderBracketHint, options && options.emptyLinePlaceholder, options && options.placeholderPrompts, options === null || options === void 0 ? void 0 : options.withEmptyParagraph, options === null || options === void 0 ? void 0 : options.isPlaceholderHidden, options && options.placeholderADF, options === null || options === void 0 ? void 0 : options.isRovoLLMEnabled, api)
|
|
55
54
|
}];
|
|
56
55
|
},
|
|
57
|
-
contentComponent:
|
|
56
|
+
contentComponent: params => {
|
|
58
57
|
var _params$editorView, _params$editorView2, _params$editorView2$s;
|
|
59
|
-
if (
|
|
58
|
+
if (isSSR()) {
|
|
60
59
|
return null;
|
|
61
60
|
}
|
|
62
61
|
|
|
@@ -86,7 +85,7 @@ export const placeholderPlugin = ({
|
|
|
86
85
|
}));
|
|
87
86
|
}
|
|
88
87
|
return null;
|
|
89
|
-
}
|
|
88
|
+
}
|
|
90
89
|
};
|
|
91
90
|
};
|
|
92
91
|
const spinnerContainerStyles = {
|
|
@@ -7,7 +7,6 @@ import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
|
|
|
7
7
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import createPlugin from './pm-plugins/main';
|
|
12
11
|
export var EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000; // Delay before showing placeholder on empty paragraph
|
|
13
12
|
|
|
@@ -57,9 +56,9 @@ export var placeholderPlugin = function placeholderPlugin(_ref) {
|
|
|
57
56
|
}
|
|
58
57
|
}];
|
|
59
58
|
},
|
|
60
|
-
contentComponent:
|
|
59
|
+
contentComponent: function contentComponent(params) {
|
|
61
60
|
var _params$editorView, _params$editorView2;
|
|
62
|
-
if (
|
|
61
|
+
if (isSSR()) {
|
|
63
62
|
return null;
|
|
64
63
|
}
|
|
65
64
|
|
|
@@ -89,7 +88,7 @@ export var placeholderPlugin = function placeholderPlugin(_ref) {
|
|
|
89
88
|
}));
|
|
90
89
|
}
|
|
91
90
|
return null;
|
|
92
|
-
}
|
|
91
|
+
}
|
|
93
92
|
};
|
|
94
93
|
};
|
|
95
94
|
var spinnerContainerStyles = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.1",
|
|
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": "^19.0.0",
|
|
39
39
|
"@atlaskit/spinner": "^19.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^66.0.0",
|
|
41
41
|
"@atlaskit/tokens": "^13.0.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^114.
|
|
45
|
+
"@atlaskit/editor-common": "^114.7.0",
|
|
46
46
|
"react": "^18.2.0",
|
|
47
47
|
"react-dom": "^18.2.0",
|
|
48
48
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|