@atlaskit/editor-core 189.1.11 → 189.1.13
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 +14 -0
- package/dist/cjs/plugins/index.js +0 -14
- package/dist/cjs/plugins/insert-block/index.js +6 -10
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
- package/dist/cjs/presets/universal.js +4 -2
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/index.js +0 -2
- package/dist/es2019/plugins/insert-block/index.js +5 -9
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
- package/dist/es2019/presets/universal.js +3 -1
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/index.js +0 -2
- package/dist/esm/plugins/insert-block/index.js +5 -9
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -38
- package/dist/esm/presets/universal.js +3 -1
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/plugins/insert-block/types.d.ts +4 -2
- package/dist/types/types/editor-props.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +4 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/package.json +4 -2
- package/report.api.md +2 -16
- package/tmp/api-report-tmp.d.ts +2 -16
- package/dist/cjs/plugins/layout/actions.js +0 -345
- package/dist/cjs/plugins/layout/index.js +0 -91
- package/dist/cjs/plugins/layout/pm-plugins/main.js +0 -148
- package/dist/cjs/plugins/layout/pm-plugins/plugin-key.js +0 -8
- package/dist/cjs/plugins/layout/pm-plugins/types.js +0 -5
- package/dist/cjs/plugins/layout/toolbar-messages.js +0 -39
- package/dist/cjs/plugins/layout/toolbar.js +0 -116
- package/dist/cjs/plugins/layout/types.js +0 -5
- package/dist/cjs/plugins/placeholder-text/actions.js +0 -35
- package/dist/cjs/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -107
- package/dist/cjs/plugins/placeholder-text/index.js +0 -20
- package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +0 -89
- package/dist/cjs/plugins/placeholder-text/plugin-key.js +0 -8
- package/dist/cjs/plugins/placeholder-text/plugin.js +0 -267
- package/dist/cjs/plugins/placeholder-text/selection-utils.js +0 -14
- package/dist/cjs/plugins/placeholder-text/styles.js +0 -13
- package/dist/cjs/plugins/placeholder-text/types.js +0 -5
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -86
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
- package/dist/cjs/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -54
- package/dist/cjs/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -89
- package/dist/es2019/plugins/layout/actions.js +0 -328
- package/dist/es2019/plugins/layout/index.js +0 -75
- package/dist/es2019/plugins/layout/pm-plugins/main.js +0 -142
- package/dist/es2019/plugins/layout/pm-plugins/plugin-key.js +0 -2
- package/dist/es2019/plugins/layout/pm-plugins/types.js +0 -1
- package/dist/es2019/plugins/layout/toolbar-messages.js +0 -33
- package/dist/es2019/plugins/layout/toolbar.js +0 -101
- package/dist/es2019/plugins/layout/types.js +0 -1
- package/dist/es2019/plugins/placeholder-text/actions.js +0 -27
- package/dist/es2019/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -77
- package/dist/es2019/plugins/placeholder-text/index.js +0 -2
- package/dist/es2019/plugins/placeholder-text/placeholder-text-nodeview.js +0 -77
- package/dist/es2019/plugins/placeholder-text/plugin-key.js +0 -2
- package/dist/es2019/plugins/placeholder-text/plugin.js +0 -247
- package/dist/es2019/plugins/placeholder-text/selection-utils.js +0 -8
- package/dist/es2019/plugins/placeholder-text/styles.js +0 -52
- package/dist/es2019/plugins/placeholder-text/types.js +0 -1
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -45
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -15
- package/dist/es2019/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -41
- package/dist/es2019/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -60
- package/dist/esm/plugins/layout/actions.js +0 -336
- package/dist/esm/plugins/layout/index.js +0 -79
- package/dist/esm/plugins/layout/pm-plugins/main.js +0 -141
- package/dist/esm/plugins/layout/pm-plugins/plugin-key.js +0 -2
- package/dist/esm/plugins/layout/pm-plugins/types.js +0 -1
- package/dist/esm/plugins/layout/toolbar-messages.js +0 -33
- package/dist/esm/plugins/layout/toolbar.js +0 -109
- package/dist/esm/plugins/layout/types.js +0 -1
- package/dist/esm/plugins/placeholder-text/actions.js +0 -29
- package/dist/esm/plugins/placeholder-text/fake-text-cursor/cursor.js +0 -100
- package/dist/esm/plugins/placeholder-text/index.js +0 -2
- package/dist/esm/plugins/placeholder-text/placeholder-text-nodeview.js +0 -82
- package/dist/esm/plugins/placeholder-text/plugin-key.js +0 -2
- package/dist/esm/plugins/placeholder-text/plugin.js +0 -259
- package/dist/esm/plugins/placeholder-text/selection-utils.js +0 -8
- package/dist/esm/plugins/placeholder-text/styles.js +0 -6
- package/dist/esm/plugins/placeholder-text/types.js +0 -1
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/index.js +0 -63
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/styles.js +0 -8
- package/dist/esm/plugins/placeholder-text/ui/FloatingToolbar/utils.js +0 -48
- package/dist/esm/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +0 -79
- package/dist/types/plugins/layout/actions.d.ts +0 -22
- package/dist/types/plugins/layout/index.d.ts +0 -15
- package/dist/types/plugins/layout/pm-plugins/main.d.ts +0 -6
- package/dist/types/plugins/layout/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types/plugins/layout/pm-plugins/types.d.ts +0 -14
- package/dist/types/plugins/layout/toolbar-messages.d.ts +0 -32
- package/dist/types/plugins/layout/toolbar.d.ts +0 -6
- package/dist/types/plugins/layout/types.d.ts +0 -13
- package/dist/types/plugins/placeholder-text/actions.d.ts +0 -4
- package/dist/types/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
- package/dist/types/plugins/placeholder-text/index.d.ts +0 -3
- package/dist/types/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
- package/dist/types/plugins/placeholder-text/plugin-key.d.ts +0 -3
- package/dist/types/plugins/placeholder-text/plugin.d.ts +0 -7
- package/dist/types/plugins/placeholder-text/selection-utils.d.ts +0 -2
- package/dist/types/plugins/placeholder-text/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/types.d.ts +0 -18
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
- package/dist/types/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
- package/dist/types-ts4.5/plugins/layout/actions.d.ts +0 -22
- package/dist/types-ts4.5/plugins/layout/index.d.ts +0 -18
- package/dist/types-ts4.5/plugins/layout/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/layout/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/layout/pm-plugins/types.d.ts +0 -14
- package/dist/types-ts4.5/plugins/layout/toolbar-messages.d.ts +0 -32
- package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +0 -6
- package/dist/types-ts4.5/plugins/layout/types.d.ts +0 -13
- package/dist/types-ts4.5/plugins/placeholder-text/actions.d.ts +0 -4
- package/dist/types-ts4.5/plugins/placeholder-text/fake-text-cursor/cursor.d.ts +0 -30
- package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +0 -3
- package/dist/types-ts4.5/plugins/placeholder-text/placeholder-text-nodeview.d.ts +0 -17
- package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/placeholder-text/plugin.d.ts +0 -7
- package/dist/types-ts4.5/plugins/placeholder-text/selection-utils.d.ts +0 -2
- package/dist/types-ts4.5/plugins/placeholder-text/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/placeholder-text/types.d.ts +0 -18
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/index.d.ts +0 -28
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/placeholder-text/ui/FloatingToolbar/utils.d.ts +0 -13
- package/dist/types-ts4.5/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.d.ts +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 189.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42391](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42391) [`f46e9fd8b00`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f46e9fd8b00) - [ux] ED-20479: Extracts placeholder-test editor plugin from editor-core
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 189.1.12
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#42505](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42505) [`48e5f1efdde`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e5f1efdde) - Extract layout plugin into new package @atlaskit/editor-plugin-layout.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 189.1.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -125,12 +125,6 @@ Object.defineProperty(exports, "jiraIssuePlugin", {
|
|
|
125
125
|
return _jiraIssue.default;
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
-
Object.defineProperty(exports, "layoutPlugin", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function get() {
|
|
131
|
-
return _layout.layoutPlugin;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
128
|
Object.defineProperty(exports, "macroPlugin", {
|
|
135
129
|
enumerable: true,
|
|
136
130
|
get: function get() {
|
|
@@ -167,12 +161,6 @@ Object.defineProperty(exports, "pastePlugin", {
|
|
|
167
161
|
return _paste.default;
|
|
168
162
|
}
|
|
169
163
|
});
|
|
170
|
-
Object.defineProperty(exports, "placeholderTextPlugin", {
|
|
171
|
-
enumerable: true,
|
|
172
|
-
get: function get() {
|
|
173
|
-
return _placeholderText.placeholderTextPlugin;
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
164
|
Object.defineProperty(exports, "tasksAndDecisionsPlugin", {
|
|
177
165
|
enumerable: true,
|
|
178
166
|
get: function get() {
|
|
@@ -203,13 +191,11 @@ var _collabEdit = _interopRequireDefault(require("./collab-edit"));
|
|
|
203
191
|
var _extension = _interopRequireDefault(require("./extension"));
|
|
204
192
|
var _insertBlock = _interopRequireDefault(require("./insert-block"));
|
|
205
193
|
var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
|
|
206
|
-
var _layout = require("./layout");
|
|
207
194
|
var _toolbarListsIndentation = _interopRequireDefault(require("./toolbar-lists-indentation"));
|
|
208
195
|
var _macro = _interopRequireDefault(require("./macro"));
|
|
209
196
|
var _maxContentSize = _interopRequireDefault(require("./max-content-size"));
|
|
210
197
|
var _panel = _interopRequireDefault(require("./panel"));
|
|
211
198
|
var _paste = _interopRequireDefault(require("./paste"));
|
|
212
|
-
var _placeholderText = require("./placeholder-text");
|
|
213
199
|
var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions"));
|
|
214
200
|
var _breakout = _interopRequireDefault(require("./breakout"));
|
|
215
201
|
var _alignment = _interopRequireDefault(require("./alignment"));
|
|
@@ -12,8 +12,7 @@ var _WithPluginState = _interopRequireDefault(require("../../ui/WithPluginState"
|
|
|
12
12
|
var _ToolbarInsertBlock = _interopRequireDefault(require("./ui/ToolbarInsertBlock"));
|
|
13
13
|
var _consts = require("@atlaskit/editor-plugin-block-type/consts");
|
|
14
14
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
15
|
-
var _pluginKey = require("../
|
|
16
|
-
var _pluginKey2 = require("../macro/plugin-key");
|
|
15
|
+
var _pluginKey = require("../macro/plugin-key");
|
|
17
16
|
var _types = require("../../ui/Toolbar/types");
|
|
18
17
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
19
18
|
var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize) {
|
|
@@ -74,13 +73,11 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
74
73
|
// `ToolbarInsertBlockWithInjectionApi` and remove `WithPluginState`
|
|
75
74
|
return /*#__PURE__*/_react.default.createElement(_WithPluginState.default, {
|
|
76
75
|
plugins: {
|
|
77
|
-
macroState:
|
|
78
|
-
placeholderTextState: _pluginKey.pluginKey
|
|
76
|
+
macroState: _pluginKey.pluginKey
|
|
79
77
|
},
|
|
80
78
|
render: function render(_ref3) {
|
|
81
79
|
var _ref3$macroState = _ref3.macroState,
|
|
82
|
-
macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState
|
|
83
|
-
placeholderTextState = _ref3.placeholderTextState;
|
|
80
|
+
macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState;
|
|
84
81
|
return /*#__PURE__*/_react.default.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
85
82
|
pluginInjectionApi: api,
|
|
86
83
|
editorView: editorView,
|
|
@@ -96,7 +93,6 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
96
93
|
isLastItem: isLastItem,
|
|
97
94
|
featureFlags: featureFlags,
|
|
98
95
|
macroState: macroState,
|
|
99
|
-
placeholderTextState: placeholderTextState,
|
|
100
96
|
providers: providers,
|
|
101
97
|
options: options
|
|
102
98
|
});
|
|
@@ -127,10 +123,9 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
127
123
|
pluginInjectionApi = _ref4.pluginInjectionApi,
|
|
128
124
|
options = _ref4.options,
|
|
129
125
|
macroState = _ref4.macroState,
|
|
130
|
-
placeholderTextState = _ref4.placeholderTextState,
|
|
131
126
|
featureFlags = _ref4.featureFlags;
|
|
132
127
|
var buttons = toolbarSizeToButtons(toolbarSize);
|
|
133
|
-
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead']),
|
|
128
|
+
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead', 'placeholderText']),
|
|
134
129
|
dateState = _useSharedPluginState.dateState,
|
|
135
130
|
hyperlinkState = _useSharedPluginState.hyperlinkState,
|
|
136
131
|
imageUploadState = _useSharedPluginState.imageUploadState,
|
|
@@ -138,7 +133,8 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
138
133
|
emojiState = _useSharedPluginState.emojiState,
|
|
139
134
|
blockTypeState = _useSharedPluginState.blockTypeState,
|
|
140
135
|
mediaState = _useSharedPluginState.mediaState,
|
|
141
|
-
typeAheadState = _useSharedPluginState.typeAheadState
|
|
136
|
+
typeAheadState = _useSharedPluginState.typeAheadState,
|
|
137
|
+
placeholderTextState = _useSharedPluginState.placeholderTextState;
|
|
142
138
|
return /*#__PURE__*/_react.default.createElement(_ToolbarInsertBlock.default, {
|
|
143
139
|
pluginInjectionApi: pluginInjectionApi,
|
|
144
140
|
buttons: buttons,
|
|
@@ -22,7 +22,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
22
22
|
var _ToolbarButton = _interopRequireDefault(require("../../../../ui/ToolbarButton"));
|
|
23
23
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
|
-
var _actions = require("../../../placeholder-text/actions");
|
|
26
25
|
var _commands = require("../../../tasks-and-decisions/commands");
|
|
27
26
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
28
27
|
var _messages = require("./messages");
|
|
@@ -208,29 +207,32 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
208
207
|
return true;
|
|
209
208
|
});
|
|
210
209
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createPlaceholderText", function () {
|
|
211
|
-
var
|
|
212
|
-
|
|
210
|
+
var _pluginInjectionApi$p;
|
|
211
|
+
var _this$props3 = _this.props,
|
|
212
|
+
editorView = _this$props3.editorView,
|
|
213
|
+
pluginInjectionApi = _this$props3.pluginInjectionApi;
|
|
214
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$p = pluginInjectionApi.placeholderText) === null || _pluginInjectionApi$p === void 0 || _pluginInjectionApi$p.actions.showPlaceholderFloatingToolbar(editorView.state, editorView.dispatch);
|
|
213
215
|
return true;
|
|
214
216
|
});
|
|
215
217
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertLayoutColumns", function (inputMethod) {
|
|
216
218
|
var _pluginInjectionApi$l;
|
|
217
|
-
var _this$
|
|
218
|
-
editorView = _this$
|
|
219
|
-
pluginInjectionApi = _this$
|
|
219
|
+
var _this$props4 = _this.props,
|
|
220
|
+
editorView = _this$props4.editorView,
|
|
221
|
+
pluginInjectionApi = _this$props4.pluginInjectionApi;
|
|
220
222
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$l = pluginInjectionApi.layout) === null || _pluginInjectionApi$l === void 0 || _pluginInjectionApi$l.actions.insertLayoutColumns(inputMethod)(editorView.state, editorView.dispatch);
|
|
221
223
|
return true;
|
|
222
224
|
});
|
|
223
225
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createStatus", function (inputMethod) {
|
|
224
226
|
var _pluginInjectionApi$s, _pluginInjectionApi$s2;
|
|
225
|
-
var _this$
|
|
226
|
-
pluginInjectionApi = _this$
|
|
227
|
-
editorView = _this$
|
|
227
|
+
var _this$props5 = _this.props,
|
|
228
|
+
pluginInjectionApi = _this$props5.pluginInjectionApi,
|
|
229
|
+
editorView = _this$props5.editorView;
|
|
228
230
|
return (_pluginInjectionApi$s = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$s2 = pluginInjectionApi.status) === null || _pluginInjectionApi$s2 === void 0 || (_pluginInjectionApi$s2 = _pluginInjectionApi$s2.actions) === null || _pluginInjectionApi$s2 === void 0 ? void 0 : _pluginInjectionApi$s2.updateStatus(inputMethod)(editorView.state, editorView.dispatch)) !== null && _pluginInjectionApi$s !== void 0 ? _pluginInjectionApi$s : false;
|
|
229
231
|
});
|
|
230
232
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openMediaPicker", function (inputMethod) {
|
|
231
|
-
var _this$
|
|
232
|
-
onShowMediaPicker = _this$
|
|
233
|
-
dispatchAnalyticsEvent = _this$
|
|
233
|
+
var _this$props6 = _this.props,
|
|
234
|
+
onShowMediaPicker = _this$props6.onShowMediaPicker,
|
|
235
|
+
dispatchAnalyticsEvent = _this$props6.dispatchAnalyticsEvent;
|
|
234
236
|
if (onShowMediaPicker) {
|
|
235
237
|
onShowMediaPicker();
|
|
236
238
|
if (dispatchAnalyticsEvent) {
|
|
@@ -260,27 +262,27 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
260
262
|
});
|
|
261
263
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertHorizontalRule", function (inputMethod) {
|
|
262
264
|
var _pluginInjectionApi$r, _pluginInjectionApi$r2;
|
|
263
|
-
var _this$props6 = _this.props,
|
|
264
|
-
_this$props6$editorVi = _this$props6.editorView,
|
|
265
|
-
state = _this$props6$editorVi.state,
|
|
266
|
-
dispatch = _this$props6$editorVi.dispatch,
|
|
267
|
-
pluginInjectionApi = _this$props6.pluginInjectionApi;
|
|
268
|
-
return (_pluginInjectionApi$r = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$r2 = pluginInjectionApi.rule) === null || _pluginInjectionApi$r2 === void 0 ? void 0 : _pluginInjectionApi$r2.actions.insertHorizontalRule(inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$r !== void 0 ? _pluginInjectionApi$r : false;
|
|
269
|
-
});
|
|
270
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertExpand", function () {
|
|
271
|
-
var _pluginInjectionApi$e, _pluginInjectionApi$e2;
|
|
272
265
|
var _this$props7 = _this.props,
|
|
273
266
|
_this$props7$editorVi = _this$props7.editorView,
|
|
274
267
|
state = _this$props7$editorVi.state,
|
|
275
268
|
dispatch = _this$props7$editorVi.dispatch,
|
|
276
269
|
pluginInjectionApi = _this$props7.pluginInjectionApi;
|
|
270
|
+
return (_pluginInjectionApi$r = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$r2 = pluginInjectionApi.rule) === null || _pluginInjectionApi$r2 === void 0 ? void 0 : _pluginInjectionApi$r2.actions.insertHorizontalRule(inputMethod)(state, dispatch)) !== null && _pluginInjectionApi$r !== void 0 ? _pluginInjectionApi$r : false;
|
|
271
|
+
});
|
|
272
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertExpand", function () {
|
|
273
|
+
var _pluginInjectionApi$e, _pluginInjectionApi$e2;
|
|
274
|
+
var _this$props8 = _this.props,
|
|
275
|
+
_this$props8$editorVi = _this$props8.editorView,
|
|
276
|
+
state = _this$props8$editorVi.state,
|
|
277
|
+
dispatch = _this$props8$editorVi.dispatch,
|
|
278
|
+
pluginInjectionApi = _this$props8.pluginInjectionApi;
|
|
277
279
|
return (_pluginInjectionApi$e = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$e2 = pluginInjectionApi.expand) === null || _pluginInjectionApi$e2 === void 0 ? void 0 : _pluginInjectionApi$e2.actions.insertExpand(state, dispatch)) !== null && _pluginInjectionApi$e !== void 0 ? _pluginInjectionApi$e : false;
|
|
278
280
|
});
|
|
279
281
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "insertBlockType", function (itemName) {
|
|
280
282
|
return function () {
|
|
281
|
-
var _this$
|
|
282
|
-
editorView = _this$
|
|
283
|
-
onInsertBlockType = _this$
|
|
283
|
+
var _this$props9 = _this.props,
|
|
284
|
+
editorView = _this$props9.editorView,
|
|
285
|
+
onInsertBlockType = _this$props9.onInsertBlockType;
|
|
284
286
|
var state = editorView.state,
|
|
285
287
|
dispatch = editorView.dispatch;
|
|
286
288
|
onInsertBlockType(itemName)(state, dispatch);
|
|
@@ -304,11 +306,11 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
304
306
|
var _this$props$pluginInj;
|
|
305
307
|
var item = _ref2.item,
|
|
306
308
|
inputMethod = _ref2.inputMethod;
|
|
307
|
-
var _this$
|
|
308
|
-
editorView = _this$
|
|
309
|
-
editorActions = _this$
|
|
310
|
-
handleImageUpload = _this$
|
|
311
|
-
expandEnabled = _this$
|
|
309
|
+
var _this$props10 = _this.props,
|
|
310
|
+
editorView = _this$props10.editorView,
|
|
311
|
+
editorActions = _this$props10.editorActions,
|
|
312
|
+
handleImageUpload = _this$props10.handleImageUpload,
|
|
313
|
+
expandEnabled = _this$props10.expandEnabled;
|
|
312
314
|
|
|
313
315
|
// need to do this before inserting nodes so scrollIntoView works properly
|
|
314
316
|
if (!editorView.hasFocus()) {
|
|
@@ -424,12 +426,12 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
424
426
|
key: "renderPopup",
|
|
425
427
|
value: function renderPopup() {
|
|
426
428
|
var emojiPickerOpen = this.state.emojiPickerOpen;
|
|
427
|
-
var _this$
|
|
428
|
-
popupsMountPoint = _this$
|
|
429
|
-
popupsBoundariesElement = _this$
|
|
430
|
-
popupsScrollableElement = _this$
|
|
431
|
-
emojiProvider = _this$
|
|
432
|
-
replacePlusMenuWithElementBrowser = _this$
|
|
429
|
+
var _this$props11 = this.props,
|
|
430
|
+
popupsMountPoint = _this$props11.popupsMountPoint,
|
|
431
|
+
popupsBoundariesElement = _this$props11.popupsBoundariesElement,
|
|
432
|
+
popupsScrollableElement = _this$props11.popupsScrollableElement,
|
|
433
|
+
emojiProvider = _this$props11.emojiProvider,
|
|
434
|
+
replacePlusMenuWithElementBrowser = _this$props11.replacePlusMenuWithElementBrowser;
|
|
433
435
|
var dropdownEmoji = this.state.dropdownItems.some(function (_ref4) {
|
|
434
436
|
var name = _ref4.value.name;
|
|
435
437
|
return name === 'emoji';
|
|
@@ -466,9 +468,9 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
|
|
|
466
468
|
buttons = _this$state.buttons,
|
|
467
469
|
dropdownItems = _this$state.dropdownItems,
|
|
468
470
|
emojiPickerOpen = _this$state.emojiPickerOpen;
|
|
469
|
-
var _this$
|
|
470
|
-
isDisabled = _this$
|
|
471
|
-
isReducedSpacing = _this$
|
|
471
|
+
var _this$props12 = this.props,
|
|
472
|
+
isDisabled = _this$props12.isDisabled,
|
|
473
|
+
isReducedSpacing = _this$props12.isReducedSpacing;
|
|
472
474
|
if (buttons.length === 0 && dropdownItems.length === 0) {
|
|
473
475
|
return null;
|
|
474
476
|
}
|
|
@@ -26,12 +26,14 @@ var _editorPluginGuideline = require("@atlaskit/editor-plugin-guideline");
|
|
|
26
26
|
var _editorPluginContextPanel = require("@atlaskit/editor-plugin-context-panel");
|
|
27
27
|
var _editorPluginGrid = require("@atlaskit/editor-plugin-grid");
|
|
28
28
|
var _editorPluginCard = require("@atlaskit/editor-plugin-card");
|
|
29
|
+
var _editorPluginLayout = require("@atlaskit/editor-plugin-layout");
|
|
29
30
|
var _editorPluginTable = require("@atlaskit/editor-plugin-table");
|
|
30
31
|
var _editorPluginContentInsertion = require("@atlaskit/editor-plugin-content-insertion");
|
|
31
32
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
32
33
|
var _editorPluginSaveOnEnter = require("@atlaskit/editor-plugin-save-on-enter");
|
|
33
34
|
var _editorPluginScrollIntoView = require("@atlaskit/editor-plugin-scroll-into-view");
|
|
34
35
|
var _editorPluginMentions = require("@atlaskit/editor-plugin-mentions");
|
|
36
|
+
var _editorPluginPlaceholderText = require("@atlaskit/editor-plugin-placeholder-text");
|
|
35
37
|
var _isFullPage = require("../utils/is-full-page");
|
|
36
38
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
37
39
|
var _default = require("./default");
|
|
@@ -287,13 +289,13 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
287
289
|
}]);
|
|
288
290
|
}
|
|
289
291
|
return builder;
|
|
290
|
-
}).maybeAdd(
|
|
292
|
+
}).maybeAdd(_editorPluginPlaceholderText.placeholderTextPlugin, function (plugin, builder) {
|
|
291
293
|
if (props.allowTemplatePlaceholders) {
|
|
292
294
|
var options = props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {};
|
|
293
295
|
return builder.add([plugin, options]);
|
|
294
296
|
}
|
|
295
297
|
return builder;
|
|
296
|
-
}).maybeAdd(
|
|
298
|
+
}).maybeAdd(_editorPluginLayout.layoutPlugin, function (plugin, builder) {
|
|
297
299
|
if (props.allowLayouts) {
|
|
298
300
|
var layoutOptions = (0, _typeof2.default)(props.allowLayouts) === 'object' ? props.allowLayouts : {};
|
|
299
301
|
return builder.add([plugin, _objectSpread(_objectSpread({}, layoutOptions), {}, {
|
|
@@ -20,7 +20,7 @@ var _styles5 = require("../../plugins/code-block/styles");
|
|
|
20
20
|
var _media = require("./media");
|
|
21
21
|
var _layout = require("./layout");
|
|
22
22
|
var _styles6 = require("../../plugins/panel/styles");
|
|
23
|
-
var _styles7 = require("
|
|
23
|
+
var _styles7 = require("@atlaskit/editor-plugin-placeholder-text/styles");
|
|
24
24
|
var _styles8 = require("../../plugins/extension/ui/styles");
|
|
25
25
|
var _styles9 = require("../../plugins/expand/ui/styles");
|
|
26
26
|
var _styles10 = require("../../plugins/find-replace/styles");
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
|
-
var version = exports.version = "189.1.
|
|
8
|
+
var version = exports.version = "189.1.13";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -4,13 +4,11 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
4
4
|
export { default as extensionPlugin } from './extension';
|
|
5
5
|
export { default as insertBlockPlugin } from './insert-block';
|
|
6
6
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
7
|
-
export { layoutPlugin } from './layout';
|
|
8
7
|
export { default as toolbarListsIndentationPlugin } from './toolbar-lists-indentation';
|
|
9
8
|
export { default as macroPlugin } from './macro';
|
|
10
9
|
export { default as maxContentSizePlugin } from './max-content-size';
|
|
11
10
|
export { default as panelPlugin } from './panel';
|
|
12
11
|
export { default as pastePlugin } from './paste';
|
|
13
|
-
export { placeholderTextPlugin } from './placeholder-text';
|
|
14
12
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
15
13
|
export { default as breakoutPlugin } from './breakout';
|
|
16
14
|
export { default as alignmentPlugin } from './alignment';
|
|
@@ -5,7 +5,6 @@ import WithPluginState from '../../ui/WithPluginState';
|
|
|
5
5
|
import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
|
|
6
6
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
7
7
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import { pluginKey as placeholderTextStateKey } from '../placeholder-text/plugin-key';
|
|
9
8
|
import { pluginKey as macroStateKey } from '../macro/plugin-key';
|
|
10
9
|
import { ToolbarSize } from '../../ui/Toolbar/types';
|
|
11
10
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -66,12 +65,10 @@ const insertBlockPlugin = ({
|
|
|
66
65
|
// `ToolbarInsertBlockWithInjectionApi` and remove `WithPluginState`
|
|
67
66
|
return /*#__PURE__*/React.createElement(WithPluginState, {
|
|
68
67
|
plugins: {
|
|
69
|
-
macroState: macroStateKey
|
|
70
|
-
placeholderTextState: placeholderTextStateKey
|
|
68
|
+
macroState: macroStateKey
|
|
71
69
|
},
|
|
72
70
|
render: ({
|
|
73
|
-
macroState = {}
|
|
74
|
-
placeholderTextState
|
|
71
|
+
macroState = {}
|
|
75
72
|
}) => {
|
|
76
73
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
77
74
|
pluginInjectionApi: api,
|
|
@@ -88,7 +85,6 @@ const insertBlockPlugin = ({
|
|
|
88
85
|
isLastItem: isLastItem,
|
|
89
86
|
featureFlags: featureFlags,
|
|
90
87
|
macroState: macroState,
|
|
91
|
-
placeholderTextState: placeholderTextState,
|
|
92
88
|
providers: providers,
|
|
93
89
|
options: options
|
|
94
90
|
});
|
|
@@ -118,7 +114,6 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
118
114
|
pluginInjectionApi,
|
|
119
115
|
options,
|
|
120
116
|
macroState,
|
|
121
|
-
placeholderTextState,
|
|
122
117
|
featureFlags
|
|
123
118
|
}) {
|
|
124
119
|
var _ref, _ref2, _pluginInjectionApi$i, _pluginInjectionApi$c, _pluginInjectionApi$p, _pluginInjectionApi$b;
|
|
@@ -131,8 +126,9 @@ function ToolbarInsertBlockWithInjectionApi({
|
|
|
131
126
|
emojiState,
|
|
132
127
|
blockTypeState,
|
|
133
128
|
mediaState,
|
|
134
|
-
typeAheadState
|
|
135
|
-
|
|
129
|
+
typeAheadState,
|
|
130
|
+
placeholderTextState
|
|
131
|
+
} = useSharedPluginState(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead', 'placeholderText']);
|
|
136
132
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlock, {
|
|
137
133
|
pluginInjectionApi: pluginInjectionApi,
|
|
138
134
|
buttons: buttons,
|
|
@@ -9,7 +9,6 @@ import { Popup } from '@atlaskit/editor-common/ui';
|
|
|
9
9
|
import ToolbarButton from '../../../../ui/ToolbarButton';
|
|
10
10
|
import { separatorStyles, buttonGroupStyle, wrapperStyle } from '@atlaskit/editor-common/styles';
|
|
11
11
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { showPlaceholderFloatingToolbar } from '../../../placeholder-text/actions';
|
|
13
12
|
import { insertTaskDecisionCommand } from '../../../tasks-and-decisions/commands';
|
|
14
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
15
14
|
import { messages } from './messages';
|
|
@@ -197,10 +196,12 @@ export class ToolbarInsertBlock extends React.PureComponent {
|
|
|
197
196
|
return true;
|
|
198
197
|
});
|
|
199
198
|
_defineProperty(this, "createPlaceholderText", () => {
|
|
199
|
+
var _pluginInjectionApi$p;
|
|
200
200
|
const {
|
|
201
|
-
editorView
|
|
201
|
+
editorView,
|
|
202
|
+
pluginInjectionApi
|
|
202
203
|
} = this.props;
|
|
203
|
-
showPlaceholderFloatingToolbar(editorView.state, editorView.dispatch);
|
|
204
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$p = pluginInjectionApi.placeholderText) === null || _pluginInjectionApi$p === void 0 ? void 0 : _pluginInjectionApi$p.actions.showPlaceholderFloatingToolbar(editorView.state, editorView.dispatch);
|
|
204
205
|
return true;
|
|
205
206
|
});
|
|
206
207
|
_defineProperty(this, "insertLayoutColumns", inputMethod => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin,
|
|
1
|
+
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, panelPlugin, tasksAndDecisionsPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, expandPlugin, isExpandInsertionEnabled, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
|
|
2
2
|
import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
|
|
3
3
|
import { historyPlugin } from '@atlaskit/editor-plugin-history';
|
|
4
4
|
import { statusPlugin } from '@atlaskit/editor-plugin-status';
|
|
@@ -17,12 +17,14 @@ import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
|
|
|
17
17
|
import { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
18
18
|
import { gridPlugin } from '@atlaskit/editor-plugin-grid';
|
|
19
19
|
import { cardPlugin } from '@atlaskit/editor-plugin-card';
|
|
20
|
+
import { layoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
20
21
|
import { tablesPlugin } from '@atlaskit/editor-plugin-table';
|
|
21
22
|
import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
22
23
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
23
24
|
import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
|
|
24
25
|
import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
|
|
25
26
|
import { mentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
27
|
+
import { placeholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
26
28
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
27
29
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
28
30
|
import { createDefaultPreset } from './default';
|
|
@@ -12,7 +12,7 @@ import { codeBlockStyles } from '../../plugins/code-block/styles';
|
|
|
12
12
|
import { mediaStyles } from './media';
|
|
13
13
|
import { layoutStyles } from './layout';
|
|
14
14
|
import { panelStyles } from '../../plugins/panel/styles';
|
|
15
|
-
import { placeholderTextStyles } from '
|
|
15
|
+
import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/styles';
|
|
16
16
|
import { extensionStyles } from '../../plugins/extension/ui/styles';
|
|
17
17
|
import { expandStyles } from '../../plugins/expand/ui/styles';
|
|
18
18
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
|
@@ -4,13 +4,11 @@ export { default as collabEditPlugin } from './collab-edit';
|
|
|
4
4
|
export { default as extensionPlugin } from './extension';
|
|
5
5
|
export { default as insertBlockPlugin } from './insert-block';
|
|
6
6
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
7
|
-
export { layoutPlugin } from './layout';
|
|
8
7
|
export { default as toolbarListsIndentationPlugin } from './toolbar-lists-indentation';
|
|
9
8
|
export { default as macroPlugin } from './macro';
|
|
10
9
|
export { default as maxContentSizePlugin } from './max-content-size';
|
|
11
10
|
export { default as panelPlugin } from './panel';
|
|
12
11
|
export { default as pastePlugin } from './paste';
|
|
13
|
-
export { placeholderTextPlugin } from './placeholder-text';
|
|
14
12
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
15
13
|
export { default as breakoutPlugin } from './breakout';
|
|
16
14
|
export { default as alignmentPlugin } from './alignment';
|
|
@@ -5,7 +5,6 @@ import WithPluginState from '../../ui/WithPluginState';
|
|
|
5
5
|
import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
|
|
6
6
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
7
7
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
import { pluginKey as placeholderTextStateKey } from '../placeholder-text/plugin-key';
|
|
9
8
|
import { pluginKey as macroStateKey } from '../macro/plugin-key';
|
|
10
9
|
import { ToolbarSize } from '../../ui/Toolbar/types';
|
|
11
10
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
@@ -67,13 +66,11 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
67
66
|
// `ToolbarInsertBlockWithInjectionApi` and remove `WithPluginState`
|
|
68
67
|
return /*#__PURE__*/React.createElement(WithPluginState, {
|
|
69
68
|
plugins: {
|
|
70
|
-
macroState: macroStateKey
|
|
71
|
-
placeholderTextState: placeholderTextStateKey
|
|
69
|
+
macroState: macroStateKey
|
|
72
70
|
},
|
|
73
71
|
render: function render(_ref3) {
|
|
74
72
|
var _ref3$macroState = _ref3.macroState,
|
|
75
|
-
macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState
|
|
76
|
-
placeholderTextState = _ref3.placeholderTextState;
|
|
73
|
+
macroState = _ref3$macroState === void 0 ? {} : _ref3$macroState;
|
|
77
74
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlockWithInjectionApi, {
|
|
78
75
|
pluginInjectionApi: api,
|
|
79
76
|
editorView: editorView,
|
|
@@ -89,7 +86,6 @@ var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
89
86
|
isLastItem: isLastItem,
|
|
90
87
|
featureFlags: featureFlags,
|
|
91
88
|
macroState: macroState,
|
|
92
|
-
placeholderTextState: placeholderTextState,
|
|
93
89
|
providers: providers,
|
|
94
90
|
options: options
|
|
95
91
|
});
|
|
@@ -120,10 +116,9 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
120
116
|
pluginInjectionApi = _ref4.pluginInjectionApi,
|
|
121
117
|
options = _ref4.options,
|
|
122
118
|
macroState = _ref4.macroState,
|
|
123
|
-
placeholderTextState = _ref4.placeholderTextState,
|
|
124
119
|
featureFlags = _ref4.featureFlags;
|
|
125
120
|
var buttons = toolbarSizeToButtons(toolbarSize);
|
|
126
|
-
var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead']),
|
|
121
|
+
var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['hyperlink', 'date', 'imageUpload', 'mention', 'emoji', 'blockType', 'media', 'typeAhead', 'placeholderText']),
|
|
127
122
|
dateState = _useSharedPluginState.dateState,
|
|
128
123
|
hyperlinkState = _useSharedPluginState.hyperlinkState,
|
|
129
124
|
imageUploadState = _useSharedPluginState.imageUploadState,
|
|
@@ -131,7 +126,8 @@ function ToolbarInsertBlockWithInjectionApi(_ref4) {
|
|
|
131
126
|
emojiState = _useSharedPluginState.emojiState,
|
|
132
127
|
blockTypeState = _useSharedPluginState.blockTypeState,
|
|
133
128
|
mediaState = _useSharedPluginState.mediaState,
|
|
134
|
-
typeAheadState = _useSharedPluginState.typeAheadState
|
|
129
|
+
typeAheadState = _useSharedPluginState.typeAheadState,
|
|
130
|
+
placeholderTextState = _useSharedPluginState.placeholderTextState;
|
|
135
131
|
return /*#__PURE__*/React.createElement(ToolbarInsertBlock, {
|
|
136
132
|
pluginInjectionApi: pluginInjectionApi,
|
|
137
133
|
buttons: buttons,
|