@atlaskit/editor-plugin-placeholder 7.2.3 → 7.2.4
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 +8 -0
- package/dist/cjs/placeholderPlugin.js +0 -8
- package/dist/es2019/placeholderPlugin.js +0 -8
- package/dist/esm/placeholderPlugin.js +0 -8
- package/package.json +2 -5
- package/dist/cjs/pm-plugins/placeholderPluginLegacy.js +0 -651
- package/dist/es2019/pm-plugins/placeholderPluginLegacy.js +0 -631
- package/dist/esm/pm-plugins/placeholderPluginLegacy.js +0 -641
- package/dist/types/pm-plugins/placeholderPluginLegacy.d.ts +0 -13
- package/dist/types-ts4.5/pm-plugins/placeholderPluginLegacy.d.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 7.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4a4392c5bdf9d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4a4392c5bdf9d) -
|
|
8
|
+
[EDITOR-4807] fg cleanup platform_editor_placeholder_plugin_tidying
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.2.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -11,24 +11,16 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _document = require("@atlaskit/editor-common/utils/document");
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
15
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
17
16
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
17
|
var _main = _interopRequireDefault(require("./pm-plugins/main"));
|
|
19
|
-
var _placeholderPluginLegacy = require("./pm-plugins/placeholderPluginLegacy");
|
|
20
18
|
var EMPTY_PARAGRAPH_TIMEOUT_DELAY = exports.EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000; // Delay before showing placeholder on empty paragraph
|
|
21
19
|
|
|
22
20
|
var pluginKey = exports.pluginKey = new _state.PluginKey('placeholderPlugin');
|
|
23
21
|
var placeholderPlugin = exports.placeholderPlugin = function placeholderPlugin(_ref) {
|
|
24
22
|
var options = _ref.config,
|
|
25
23
|
api = _ref.api;
|
|
26
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_placeholder_plugin_tidying')) {
|
|
27
|
-
return (0, _placeholderPluginLegacy.placeholderPluginLegacy)({
|
|
28
|
-
config: options,
|
|
29
|
-
api: api
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
24
|
var currentPlaceholder = options === null || options === void 0 ? void 0 : options.placeholder;
|
|
33
25
|
return {
|
|
34
26
|
name: 'placeholder',
|
|
@@ -4,12 +4,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
|
|
6
6
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import createPlugin from './pm-plugins/main';
|
|
12
|
-
import { placeholderPluginLegacy } from './pm-plugins/placeholderPluginLegacy';
|
|
13
11
|
export const EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000; // Delay before showing placeholder on empty paragraph
|
|
14
12
|
|
|
15
13
|
export const pluginKey = new PluginKey('placeholderPlugin');
|
|
@@ -17,12 +15,6 @@ export const placeholderPlugin = ({
|
|
|
17
15
|
config: options,
|
|
18
16
|
api
|
|
19
17
|
}) => {
|
|
20
|
-
if (!fg('platform_editor_placeholder_plugin_tidying')) {
|
|
21
|
-
return placeholderPluginLegacy({
|
|
22
|
-
config: options,
|
|
23
|
-
api
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
18
|
let currentPlaceholder = options === null || options === void 0 ? void 0 : options.placeholder;
|
|
27
19
|
return {
|
|
28
20
|
name: 'placeholder',
|
|
@@ -4,24 +4,16 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
|
|
6
6
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
8
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
10
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import createPlugin from './pm-plugins/main';
|
|
12
|
-
import { placeholderPluginLegacy } from './pm-plugins/placeholderPluginLegacy';
|
|
13
11
|
export var EMPTY_PARAGRAPH_TIMEOUT_DELAY = 2000; // Delay before showing placeholder on empty paragraph
|
|
14
12
|
|
|
15
13
|
export var pluginKey = new PluginKey('placeholderPlugin');
|
|
16
14
|
export var placeholderPlugin = function placeholderPlugin(_ref) {
|
|
17
15
|
var options = _ref.config,
|
|
18
16
|
api = _ref.api;
|
|
19
|
-
if (!fg('platform_editor_placeholder_plugin_tidying')) {
|
|
20
|
-
return placeholderPluginLegacy({
|
|
21
|
-
config: options,
|
|
22
|
-
api: api
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
17
|
var currentPlaceholder = options === null || options === void 0 ? void 0 : options.placeholder;
|
|
26
18
|
return {
|
|
27
19
|
name: 'placeholder',
|
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.4",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/primitives": "^17.1.0",
|
|
39
39
|
"@atlaskit/spinner": "^19.0.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^17.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^17.2.0",
|
|
41
41
|
"@atlaskit/tokens": "^10.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0"
|
|
43
43
|
},
|
|
@@ -57,9 +57,6 @@
|
|
|
57
57
|
"platform_editor_ai_aifc_patch_ga_blockers": {
|
|
58
58
|
"type": "boolean"
|
|
59
59
|
},
|
|
60
|
-
"platform_editor_placeholder_plugin_tidying": {
|
|
61
|
-
"type": "boolean"
|
|
62
|
-
},
|
|
63
60
|
"platform_editor_ai_aifc_adf_placeholder": {
|
|
64
61
|
"type": "boolean"
|
|
65
62
|
}
|