@atlaskit/editor-plugin-placeholder-text 2.1.3 → 2.1.5
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
|
@@ -14,7 +14,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
14
14
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
15
15
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
16
16
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
17
|
-
var _text = _interopRequireDefault(require("@atlaskit/icon/
|
|
17
|
+
var _text = _interopRequireDefault(require("@atlaskit/icon/core/text"));
|
|
18
18
|
var _actions = require("./editor-actions/actions");
|
|
19
19
|
var _cursor = require("./pm-plugins/fake-text-cursor/cursor");
|
|
20
20
|
var _placeholderTextNodeview = require("./pm-plugins/placeholder-text-nodeview");
|
|
@@ -6,7 +6,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { isNodeEmpty } from '@atlaskit/editor-common/utils';
|
|
8
8
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import
|
|
9
|
+
import TextIcon from '@atlaskit/icon/core/text';
|
|
10
10
|
import { hidePlaceholderFloatingToolbar, insertPlaceholderTextAtSelection, showPlaceholderFloatingToolbar } from './editor-actions/actions';
|
|
11
11
|
import { drawFakeTextCursor, FakeTextCursorSelection } from './pm-plugins/fake-text-cursor/cursor';
|
|
12
12
|
import { PlaceholderTextNodeView } from './pm-plugins/placeholder-text-nodeview';
|
|
@@ -221,7 +221,7 @@ const decorateWithPluginOptions = (plugin, options, api) => {
|
|
|
221
221
|
description: formatMessage(messages.placeholderTextDescription),
|
|
222
222
|
priority: 1400,
|
|
223
223
|
keywords: ['placeholder'],
|
|
224
|
-
icon: () => /*#__PURE__*/React.createElement(
|
|
224
|
+
icon: () => /*#__PURE__*/React.createElement(TextIcon, {
|
|
225
225
|
label: ""
|
|
226
226
|
}),
|
|
227
227
|
action(insert, state) {
|
|
@@ -6,7 +6,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { isNodeEmpty } from '@atlaskit/editor-common/utils';
|
|
8
8
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
import
|
|
9
|
+
import TextIcon from '@atlaskit/icon/core/text';
|
|
10
10
|
import { hidePlaceholderFloatingToolbar, insertPlaceholderTextAtSelection, showPlaceholderFloatingToolbar } from './editor-actions/actions';
|
|
11
11
|
import { drawFakeTextCursor, FakeTextCursorSelection } from './pm-plugins/fake-text-cursor/cursor';
|
|
12
12
|
import { PlaceholderTextNodeView } from './pm-plugins/placeholder-text-nodeview';
|
|
@@ -229,7 +229,7 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
|
|
|
229
229
|
priority: 1400,
|
|
230
230
|
keywords: ['placeholder'],
|
|
231
231
|
icon: function icon() {
|
|
232
|
-
return /*#__PURE__*/React.createElement(
|
|
232
|
+
return /*#__PURE__*/React.createElement(TextIcon, {
|
|
233
233
|
label: ""
|
|
234
234
|
});
|
|
235
235
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder-text",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "placeholder text plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
32
|
-
"@atlaskit/editor-common": "^
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^2.
|
|
34
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.
|
|
32
|
+
"@atlaskit/editor-common": "^103.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
34
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.3.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
37
|
-
"@atlaskit/icon": "^
|
|
37
|
+
"@atlaskit/icon": "^25.5.0",
|
|
38
38
|
"@atlaskit/theme": "^18.0.0",
|
|
39
|
-
"@atlaskit/tokens": "^4.
|
|
39
|
+
"@atlaskit/tokens": "^4.7.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@emotion/react": "^11.7.1"
|
|
42
42
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@af/visual-regression": "^1.3.0",
|
|
50
50
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
51
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^3.
|
|
51
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^3.3.0",
|
|
52
52
|
"@atlaskit/ssr": "^0.4.0",
|
|
53
53
|
"@atlaskit/visual-regression": "^0.10.0",
|
|
54
54
|
"@testing-library/react": "^13.4.0",
|