@atlaskit/editor-core 189.1.12 → 189.1.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 +13 -0
- package/dist/cjs/i18n/cs.js +0 -1
- package/dist/cjs/i18n/da.js +0 -1
- package/dist/cjs/i18n/de.js +0 -1
- package/dist/cjs/i18n/en.js +0 -1
- package/dist/cjs/i18n/en_GB.js +0 -1
- package/dist/cjs/i18n/en_ZZ.js +0 -1
- package/dist/cjs/i18n/es.js +0 -1
- package/dist/cjs/i18n/fi.js +0 -1
- package/dist/cjs/i18n/fr.js +0 -1
- package/dist/cjs/i18n/hu.js +0 -1
- package/dist/cjs/i18n/it.js +0 -1
- package/dist/cjs/i18n/ja.js +0 -1
- package/dist/cjs/i18n/ko.js +0 -1
- package/dist/cjs/i18n/nb.js +0 -1
- package/dist/cjs/i18n/nl.js +0 -1
- package/dist/cjs/i18n/pl.js +0 -1
- package/dist/cjs/i18n/pt_BR.js +0 -1
- package/dist/cjs/i18n/ru.js +0 -1
- package/dist/cjs/i18n/sv.js +0 -1
- package/dist/cjs/i18n/th.js +0 -1
- package/dist/cjs/i18n/tr.js +0 -1
- package/dist/cjs/i18n/uk.js +0 -1
- package/dist/cjs/i18n/vi.js +0 -1
- package/dist/cjs/i18n/zh.js +0 -1
- package/dist/cjs/i18n/zh_TW.js +0 -1
- package/dist/cjs/plugins/index.js +0 -7
- 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/plugins/panel/actions.js +11 -11
- package/dist/cjs/plugins/panel/index.js +4 -4
- package/dist/cjs/plugins/panel/nodeviews/panel.js +5 -5
- package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +7 -7
- package/dist/cjs/plugins/panel/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/panel/toolbar.js +16 -16
- package/dist/cjs/plugins/panel/utils.js +1 -1
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/ui/ContentStyles/index.js +7 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/i18n/cs.js +0 -1
- package/dist/es2019/i18n/da.js +0 -1
- package/dist/es2019/i18n/de.js +0 -1
- package/dist/es2019/i18n/en.js +0 -1
- package/dist/es2019/i18n/en_GB.js +0 -1
- package/dist/es2019/i18n/en_ZZ.js +0 -1
- package/dist/es2019/i18n/es.js +0 -1
- package/dist/es2019/i18n/fi.js +0 -1
- package/dist/es2019/i18n/fr.js +0 -1
- package/dist/es2019/i18n/hu.js +0 -1
- package/dist/es2019/i18n/it.js +0 -1
- package/dist/es2019/i18n/ja.js +0 -1
- package/dist/es2019/i18n/ko.js +0 -1
- package/dist/es2019/i18n/nb.js +0 -1
- package/dist/es2019/i18n/nl.js +0 -1
- package/dist/es2019/i18n/pl.js +0 -1
- package/dist/es2019/i18n/pt_BR.js +0 -1
- package/dist/es2019/i18n/ru.js +0 -1
- package/dist/es2019/i18n/sv.js +0 -1
- package/dist/es2019/i18n/th.js +0 -1
- package/dist/es2019/i18n/tr.js +0 -1
- package/dist/es2019/i18n/uk.js +0 -1
- package/dist/es2019/i18n/vi.js +0 -1
- package/dist/es2019/i18n/zh.js +0 -1
- package/dist/es2019/i18n/zh_TW.js +0 -1
- package/dist/es2019/plugins/index.js +0 -1
- 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/plugins/panel/actions.js +5 -5
- package/dist/es2019/plugins/panel/index.js +6 -6
- package/dist/es2019/plugins/panel/nodeviews/panel.js +5 -5
- package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +2 -2
- package/dist/es2019/plugins/panel/pm-plugins/main.js +2 -2
- package/dist/es2019/plugins/panel/toolbar.js +12 -13
- package/dist/es2019/plugins/panel/utils.js +1 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/ContentStyles/index.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/i18n/cs.js +0 -1
- package/dist/esm/i18n/da.js +0 -1
- package/dist/esm/i18n/de.js +0 -1
- package/dist/esm/i18n/en.js +0 -1
- package/dist/esm/i18n/en_GB.js +0 -1
- package/dist/esm/i18n/en_ZZ.js +0 -1
- package/dist/esm/i18n/es.js +0 -1
- package/dist/esm/i18n/fi.js +0 -1
- package/dist/esm/i18n/fr.js +0 -1
- package/dist/esm/i18n/hu.js +0 -1
- package/dist/esm/i18n/it.js +0 -1
- package/dist/esm/i18n/ja.js +0 -1
- package/dist/esm/i18n/ko.js +0 -1
- package/dist/esm/i18n/nb.js +0 -1
- package/dist/esm/i18n/nl.js +0 -1
- package/dist/esm/i18n/pl.js +0 -1
- package/dist/esm/i18n/pt_BR.js +0 -1
- package/dist/esm/i18n/ru.js +0 -1
- package/dist/esm/i18n/sv.js +0 -1
- package/dist/esm/i18n/th.js +0 -1
- package/dist/esm/i18n/tr.js +0 -1
- package/dist/esm/i18n/uk.js +0 -1
- package/dist/esm/i18n/vi.js +0 -1
- package/dist/esm/i18n/zh.js +0 -1
- package/dist/esm/i18n/zh_TW.js +0 -1
- package/dist/esm/plugins/index.js +0 -1
- 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/plugins/panel/actions.js +5 -5
- package/dist/esm/plugins/panel/index.js +6 -6
- package/dist/esm/plugins/panel/nodeviews/panel.js +5 -5
- package/dist/esm/plugins/panel/pm-plugins/keymaps.js +2 -2
- package/dist/esm/plugins/panel/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/panel/toolbar.js +12 -13
- package/dist/esm/plugins/panel/utils.js +1 -1
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/ui/ContentStyles/index.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/i18n/cs.d.ts +0 -1
- package/dist/types/i18n/da.d.ts +0 -1
- package/dist/types/i18n/de.d.ts +0 -1
- package/dist/types/i18n/en.d.ts +0 -1
- package/dist/types/i18n/en_GB.d.ts +0 -1
- package/dist/types/i18n/en_ZZ.d.ts +0 -1
- package/dist/types/i18n/es.d.ts +0 -1
- package/dist/types/i18n/fi.d.ts +0 -1
- package/dist/types/i18n/fr.d.ts +0 -1
- package/dist/types/i18n/hu.d.ts +0 -1
- package/dist/types/i18n/it.d.ts +0 -1
- package/dist/types/i18n/ja.d.ts +0 -1
- package/dist/types/i18n/ko.d.ts +0 -1
- package/dist/types/i18n/nb.d.ts +0 -1
- package/dist/types/i18n/nl.d.ts +0 -1
- package/dist/types/i18n/pl.d.ts +0 -1
- package/dist/types/i18n/pt_BR.d.ts +0 -1
- package/dist/types/i18n/ru.d.ts +0 -1
- package/dist/types/i18n/sv.d.ts +0 -1
- package/dist/types/i18n/th.d.ts +0 -1
- package/dist/types/i18n/tr.d.ts +0 -1
- package/dist/types/i18n/uk.d.ts +0 -1
- package/dist/types/i18n/vi.d.ts +0 -1
- package/dist/types/i18n/zh.d.ts +0 -1
- package/dist/types/i18n/zh_TW.d.ts +0 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/insert-block/types.d.ts +3 -1
- package/dist/types/plugins/panel/actions.d.ts +2 -2
- package/dist/types/plugins/panel/index.d.ts +3 -3
- package/dist/types/plugins/panel/nodeviews/panel.d.ts +3 -3
- package/dist/types/plugins/panel/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/panel/toolbar.d.ts +6 -7
- package/dist/types/plugins/panel/types.d.ts +1 -1
- package/dist/types/plugins/panel/utils.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -1
- package/dist/types-ts4.5/i18n/da.d.ts +0 -1
- package/dist/types-ts4.5/i18n/de.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -1
- package/dist/types-ts4.5/i18n/es.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -1
- package/dist/types-ts4.5/i18n/it.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -1
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -1
- package/dist/types-ts4.5/i18n/th.d.ts +0 -1
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -1
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
- package/dist/types-ts4.5/plugins/panel/actions.d.ts +2 -2
- package/dist/types-ts4.5/plugins/panel/index.d.ts +3 -3
- package/dist/types-ts4.5/plugins/panel/nodeviews/panel.d.ts +3 -3
- package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +6 -7
- package/dist/types-ts4.5/plugins/panel/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/panel/utils.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types-ts4.5/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
- package/package.json +4 -3
- package/report.api.md +1 -6
- package/tmp/api-report-tmp.d.ts +1 -6
- 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/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/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/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/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/dist/cjs/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
- /package/dist/es2019/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
- /package/dist/esm/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createPlugin = void 0;
|
|
7
|
-
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
8
7
|
var _panel = require("@atlaskit/editor-common/panel");
|
|
8
|
+
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
9
|
+
var _selection = require("@atlaskit/editor-common/selection");
|
|
9
10
|
var _panel2 = require("../nodeviews/panel");
|
|
10
11
|
var _types = require("../types");
|
|
11
|
-
var _selection = require("@atlaskit/editor-common/selection");
|
|
12
12
|
var createPlugin = exports.createPlugin = function createPlugin(dispatch, providerFactory, pluginOptions) {
|
|
13
13
|
var _pluginOptions$useLon = pluginOptions.useLongPressSelection,
|
|
14
14
|
useLongPressSelection = _pluginOptions$useLon === void 0 ? false : _pluginOptions$useLon;
|
|
@@ -6,23 +6,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.panelIconMap = exports.getToolbarItems = exports.getToolbarConfig = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
|
+
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
|
+
var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
|
|
12
|
+
var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
|
|
13
|
+
var _panel = require("@atlaskit/editor-common/panel");
|
|
14
|
+
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
15
|
+
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
16
|
+
var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/error"));
|
|
10
17
|
var _info = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/info"));
|
|
11
18
|
var _note = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/note"));
|
|
12
19
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
13
|
-
var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/warning"));
|
|
14
|
-
var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/error"));
|
|
15
20
|
var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
|
|
16
|
-
var
|
|
21
|
+
var _success = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/success"));
|
|
22
|
+
var _warning = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/warning"));
|
|
17
23
|
var _actions = require("./actions");
|
|
18
|
-
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
19
|
-
var _panel = require("@atlaskit/editor-common/panel");
|
|
20
|
-
var _utils = require("./utils");
|
|
21
|
-
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
22
|
-
var _adfSchema = require("@atlaskit/adf-schema");
|
|
23
|
-
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
24
|
-
var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
|
|
25
24
|
var _message = require("./message");
|
|
25
|
+
var _utils2 = require("./utils");
|
|
26
26
|
var _panelIconMap;
|
|
27
27
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28
28
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -91,7 +91,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
91
91
|
if (isCustomPanelEnabled) {
|
|
92
92
|
var changeColor = function changeColor(color) {
|
|
93
93
|
return function (state, dispatch) {
|
|
94
|
-
var panelNode = (0,
|
|
94
|
+
var panelNode = (0, _utils2.findPanel)(state);
|
|
95
95
|
if (panelNode === undefined) {
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
@@ -126,7 +126,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
126
126
|
};
|
|
127
127
|
var changeEmoji = function changeEmoji(emoji) {
|
|
128
128
|
return function (state, dispatch) {
|
|
129
|
-
var panelNode = (0,
|
|
129
|
+
var panelNode = (0, _utils2.findPanel)(state);
|
|
130
130
|
if (panelNode === undefined) {
|
|
131
131
|
return false;
|
|
132
132
|
}
|
|
@@ -159,7 +159,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
|
|
|
159
159
|
};
|
|
160
160
|
var removeEmoji = function removeEmoji() {
|
|
161
161
|
return function (state, dispatch) {
|
|
162
|
-
var panelNode = (0,
|
|
162
|
+
var panelNode = (0, _utils2.findPanel)(state);
|
|
163
163
|
if (activePanelType === _adfSchema.PanelType.CUSTOM && !activePanelIcon) {
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
@@ -262,7 +262,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
|
|
|
262
262
|
var providerFactory = arguments.length > 3 ? arguments[3] : undefined;
|
|
263
263
|
var api = arguments.length > 4 ? arguments[4] : undefined;
|
|
264
264
|
var formatMessage = intl.formatMessage;
|
|
265
|
-
var panelObject = (0,
|
|
265
|
+
var panelObject = (0, _utils2.findPanel)(state);
|
|
266
266
|
if (panelObject) {
|
|
267
267
|
var _api$analytics;
|
|
268
268
|
var nodeType = state.schema.nodes.panel;
|
|
@@ -278,7 +278,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
|
|
|
278
278
|
var items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, api === null || api === void 0 ? void 0 : api.decorations.actions.hoverDecoration, api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, panelType, options.allowCustomPanel ? panelColor : undefined, options.allowCustomPanel ? panelIcon || isStandardPanel(panelType) : undefined, state);
|
|
279
279
|
var getDomRef = function getDomRef(editorView) {
|
|
280
280
|
var domAtPos = editorView.domAtPos.bind(editorView);
|
|
281
|
-
var element = (0,
|
|
281
|
+
var element = (0, _utils.findDomRefAtPos)(panelObject.pos, domAtPos);
|
|
282
282
|
return element;
|
|
283
283
|
};
|
|
284
284
|
return {
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.panelAttrsToDom = exports.findPanel = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
10
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
10
|
var _panel = require("@atlaskit/editor-common/panel");
|
|
12
11
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
12
|
+
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
15
|
var findPanel = exports.findPanel = function findPanel(state, selection) {
|
|
@@ -33,6 +33,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
33
33
|
var _editorPluginSaveOnEnter = require("@atlaskit/editor-plugin-save-on-enter");
|
|
34
34
|
var _editorPluginScrollIntoView = require("@atlaskit/editor-plugin-scroll-into-view");
|
|
35
35
|
var _editorPluginMentions = require("@atlaskit/editor-plugin-mentions");
|
|
36
|
+
var _editorPluginPlaceholderText = require("@atlaskit/editor-plugin-placeholder-text");
|
|
36
37
|
var _isFullPage = require("../utils/is-full-page");
|
|
37
38
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
38
39
|
var _default = require("./default");
|
|
@@ -288,7 +289,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
288
289
|
}]);
|
|
289
290
|
}
|
|
290
291
|
return builder;
|
|
291
|
-
}).maybeAdd(
|
|
292
|
+
}).maybeAdd(_editorPluginPlaceholderText.placeholderTextPlugin, function (plugin, builder) {
|
|
292
293
|
if (props.allowTemplatePlaceholders) {
|
|
293
294
|
var options = props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {};
|
|
294
295
|
return builder.add([plugin, options]);
|
|
@@ -19,12 +19,12 @@ var _styles4 = require("@atlaskit/editor-plugin-paste-options-toolbar/styles");
|
|
|
19
19
|
var _styles5 = require("../../plugins/code-block/styles");
|
|
20
20
|
var _media = require("./media");
|
|
21
21
|
var _layout = require("./layout");
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
22
|
+
var _panel = require("./panel");
|
|
23
|
+
var _styles6 = require("@atlaskit/editor-plugin-placeholder-text/styles");
|
|
24
|
+
var _styles7 = require("../../plugins/extension/ui/styles");
|
|
25
|
+
var _styles8 = require("../../plugins/expand/ui/styles");
|
|
26
|
+
var _styles9 = require("../../plugins/find-replace/styles");
|
|
27
|
+
var _styles10 = require("../../plugins/tasks-and-decisions/styles");
|
|
28
28
|
var _status = require("./status");
|
|
29
29
|
var _date = require("./date");
|
|
30
30
|
var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
|
|
@@ -47,7 +47,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)(_templateOb
|
|
|
47
47
|
var contentStyles = function contentStyles(props) {
|
|
48
48
|
return (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
|
|
49
49
|
theme: props.theme
|
|
50
|
-
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)",
|
|
50
|
+
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles6.placeholderTextStyles, placeholderStyles, (0, _styles5.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _layout.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _panel.panelStyles)(props), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles7.extensionStyles, (0, _styles8.expandStyles)(props), _styles9.findReplaceStyles, _styles4.textHighlightStyle, _styles10.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
51
51
|
};
|
|
52
52
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
53
53
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -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.15";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -65,7 +65,6 @@ export default {
|
|
|
65
65
|
'fabric.editor.single': 'Jeden sloupec',
|
|
66
66
|
'fabric.editor.success': 'Úspěch',
|
|
67
67
|
'fabric.editor.taskPlaceholder': 'Napište svou akci a použitím „@“ ji někomu přidělte.',
|
|
68
|
-
'fabric.editor.textColor': 'Barva textu',
|
|
69
68
|
'fabric.editor.threeColumns': 'Tři sloupce',
|
|
70
69
|
'fabric.editor.threeColumnsWithSidebars': 'Tři sloupce s postranními panely',
|
|
71
70
|
'fabric.editor.twoColumns': 'Dva sloupce',
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Enkelt kolonne',
|
|
65
65
|
'fabric.editor.success': 'Succes',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Indtast din handling, og brug "@" for at tildele til nogen.',
|
|
67
|
-
'fabric.editor.textColor': 'Tekstfarve',
|
|
68
67
|
'fabric.editor.threeColumns': 'Tre kolonner',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Tre kolonner med sidebjælker',
|
|
70
69
|
'fabric.editor.twoColumns': 'To kolonner',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Einzelne Spalte',
|
|
65
65
|
'fabric.editor.success': 'Erfolgreich',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Geben Sie Ihre Aktion ein und weisen Sie sie mithilfe von „@” jemandem zu.',
|
|
67
|
-
'fabric.editor.textColor': 'Textfarbe',
|
|
68
67
|
'fabric.editor.threeColumns': 'Drei Spalten',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Drei Spalten mit Seitenleisten',
|
|
70
69
|
'fabric.editor.twoColumns': 'Zwei Spalten',
|
package/dist/es2019/i18n/en.js
CHANGED
|
@@ -66,7 +66,6 @@ export default {
|
|
|
66
66
|
'fabric.editor.single': 'Single column',
|
|
67
67
|
'fabric.editor.success': 'Success',
|
|
68
68
|
'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
|
|
69
|
-
'fabric.editor.textColor': 'Text color',
|
|
70
69
|
'fabric.editor.threeColumns': 'Three columns',
|
|
71
70
|
'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
|
|
72
71
|
'fabric.editor.twoColumns': 'Two columns',
|
|
@@ -66,7 +66,6 @@ export default {
|
|
|
66
66
|
'fabric.editor.single': 'Single column',
|
|
67
67
|
'fabric.editor.success': 'Success',
|
|
68
68
|
'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
|
|
69
|
-
'fabric.editor.textColor': 'Text colour',
|
|
70
69
|
'fabric.editor.threeColumns': 'Three columns',
|
|
71
70
|
'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
|
|
72
71
|
'fabric.editor.twoColumns': 'Two columns',
|
|
@@ -66,7 +66,6 @@ export default {
|
|
|
66
66
|
'fabric.editor.single': 'Single column',
|
|
67
67
|
'fabric.editor.success': 'Success',
|
|
68
68
|
'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
|
|
69
|
-
'fabric.editor.textColor': 'Text color',
|
|
70
69
|
'fabric.editor.threeColumns': 'Three columns',
|
|
71
70
|
'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
|
|
72
71
|
'fabric.editor.twoColumns': 'Two columns',
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Una sola columna',
|
|
65
65
|
'fabric.editor.success': 'Correcto',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Escribe la acción y usa "@" para asignársela a alguien.',
|
|
67
|
-
'fabric.editor.textColor': 'Color del texto',
|
|
68
67
|
'fabric.editor.threeColumns': 'Tres columnas',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Tres columnas con barras laterales',
|
|
70
69
|
'fabric.editor.twoColumns': 'Dos columnas',
|
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Yksittäinen sarake',
|
|
65
65
|
'fabric.editor.success': 'Onnistunut',
|
|
66
66
|
'fabric.editor.taskPlaceholder': "Kirjoita toimintasi, käytä '@'-merkkiä määrätäksesi sen jollekin henkilölle.",
|
|
67
|
-
'fabric.editor.textColor': 'Tekstin väri',
|
|
68
67
|
'fabric.editor.threeColumns': 'Kolme saraketta',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Kolme saraketta sivupalkkien kanssa',
|
|
70
69
|
'fabric.editor.twoColumns': 'Kaksi saraketta',
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Colonne unique',
|
|
65
65
|
'fabric.editor.success': 'Opération réussie',
|
|
66
66
|
'fabric.editor.taskPlaceholder': "Saisissez votre action, utilisez « @ » pour l'assigner à quelqu'un.",
|
|
67
|
-
'fabric.editor.textColor': 'Couleur du texte',
|
|
68
67
|
'fabric.editor.threeColumns': 'Trois colonnes',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Trois colonnes avec barres latérales',
|
|
70
69
|
'fabric.editor.twoColumns': 'Deux colonnes',
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Egy oszlop',
|
|
65
65
|
'fabric.editor.success': 'Sikerült',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Írja be a műveletet. Az „@” jellel hozzárendelheti valakihez.',
|
|
67
|
-
'fabric.editor.textColor': 'Szövegszín',
|
|
68
67
|
'fabric.editor.threeColumns': 'Három oszlop',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Három oszlop oldalsávval',
|
|
70
69
|
'fabric.editor.twoColumns': 'Két oszlop',
|
package/dist/es2019/i18n/it.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Colonna singola',
|
|
65
65
|
'fabric.editor.success': 'Operazione riuscita',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Digita la tua azione e usa “@” per assegnarla a qualcuno.',
|
|
67
|
-
'fabric.editor.textColor': 'Colore del testo',
|
|
68
67
|
'fabric.editor.threeColumns': 'Tre colonne',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Tre colonne con barre laterali',
|
|
70
69
|
'fabric.editor.twoColumns': 'Due colonne',
|
package/dist/es2019/i18n/ja.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': '単一列',
|
|
65
65
|
'fabric.editor.success': '成功',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'アクションを入力し、「@」を使用して担当者を割り当てます。',
|
|
67
|
-
'fabric.editor.textColor': 'テキストの色',
|
|
68
67
|
'fabric.editor.threeColumns': '3 列',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'サイドバーを使用した 3 列レイアウト',
|
|
70
69
|
'fabric.editor.twoColumns': '2 列',
|
package/dist/es2019/i18n/ko.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': '단일 열',
|
|
65
65
|
'fabric.editor.success': '성공',
|
|
66
66
|
'fabric.editor.taskPlaceholder': "작업을 입력하고 '@'를 사용하여 할당합니다.",
|
|
67
|
-
'fabric.editor.textColor': '텍스트 색상',
|
|
68
67
|
'fabric.editor.threeColumns': '세 개 열',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': '사이드바가 있는 세 개 열',
|
|
70
69
|
'fabric.editor.twoColumns': '두 개 열',
|
package/dist/es2019/i18n/nb.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Enkeltkolonne',
|
|
65
65
|
'fabric.editor.success': 'Vellykket',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Skriv inn handlingen. Bruk @ for å tilordne den til noen.',
|
|
67
|
-
'fabric.editor.textColor': 'Tekstfarge',
|
|
68
67
|
'fabric.editor.threeColumns': 'Tre kolonner',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Tre kolonner med sidelinjer',
|
|
70
69
|
'fabric.editor.twoColumns': 'To kolonner',
|
package/dist/es2019/i18n/nl.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Eén kolom',
|
|
65
65
|
'fabric.editor.success': 'Gelukt',
|
|
66
66
|
'fabric.editor.taskPlaceholder': "Geef je actie in en gebruik een '@' om de actie aan iemand toe te wijzen.",
|
|
67
|
-
'fabric.editor.textColor': 'Tekstkleur',
|
|
68
67
|
'fabric.editor.threeColumns': 'Drie kolommen',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Drie kolommen met zijbalken',
|
|
70
69
|
'fabric.editor.twoColumns': 'Twee kolommen',
|
package/dist/es2019/i18n/pl.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Pojedyncza kolumna',
|
|
65
65
|
'fabric.editor.success': 'Sukces',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Wprowadź swoją akcję, użyj „@”, aby przypisać ją do użytkownika.',
|
|
67
|
-
'fabric.editor.textColor': 'Kolor tekstu',
|
|
68
67
|
'fabric.editor.threeColumns': 'Trzy kolumny',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Trzy kolumny z paskami bocznymi',
|
|
70
69
|
'fabric.editor.twoColumns': 'Dwie kolumny',
|
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Coluna única',
|
|
65
65
|
'fabric.editor.success': 'Sucesso',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Digite sua ação e use "@" para atribuí-la a alguém.',
|
|
67
|
-
'fabric.editor.textColor': 'Cor do texto',
|
|
68
67
|
'fabric.editor.threeColumns': 'Três colunas',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Três colunas com barras laterais',
|
|
70
69
|
'fabric.editor.twoColumns': 'Duas colunas',
|
package/dist/es2019/i18n/ru.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Один столбец',
|
|
65
65
|
'fabric.editor.success': 'Готово',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Укажите задание и назначьте исполнителя с помощью значка «@».',
|
|
67
|
-
'fabric.editor.textColor': 'Цвет текста',
|
|
68
67
|
'fabric.editor.threeColumns': 'Три столбца',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Три столбца с боковыми панелями',
|
|
70
69
|
'fabric.editor.twoColumns': 'Два столбца',
|
package/dist/es2019/i18n/sv.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Enkel kolumn',
|
|
65
65
|
'fabric.editor.success': 'Klart!',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Skriv din åtgärd och använd @ för att tilldela någon.',
|
|
67
|
-
'fabric.editor.textColor': 'Textfärg',
|
|
68
67
|
'fabric.editor.threeColumns': 'Tre kolumner',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Tre kolumner med sidopaneler',
|
|
70
69
|
'fabric.editor.twoColumns': 'Två kolumner',
|
package/dist/es2019/i18n/th.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'คอลัมน์เดียว',
|
|
65
65
|
'fabric.editor.success': 'สำเร็จ',
|
|
66
66
|
'fabric.editor.taskPlaceholder': "พิมพ์ข้อความของคุณ ใช้ '@' เพื่อมอบหมายให้ผู้ใช้ที่คุณเลือก",
|
|
67
|
-
'fabric.editor.textColor': 'สีข้อความ',
|
|
68
67
|
'fabric.editor.threeColumns': 'สามคอลัมน์',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'สามคอลัมน์พร้อมแถบด้านข้าง',
|
|
70
69
|
'fabric.editor.twoColumns': 'สองคอลัมน์',
|
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Tek sütun',
|
|
65
65
|
'fabric.editor.success': 'Başarılı',
|
|
66
66
|
'fabric.editor.taskPlaceholder': "Yapılacak eylemi yazın, birine atamak için '@' kullanın.",
|
|
67
|
-
'fabric.editor.textColor': 'Metin rengi',
|
|
68
67
|
'fabric.editor.threeColumns': 'Üç sütun',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Kenar çubuklu üç sütun',
|
|
70
69
|
'fabric.editor.twoColumns': 'İki sütun',
|
package/dist/es2019/i18n/uk.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Один стовпець',
|
|
65
65
|
'fabric.editor.success': 'Готово',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Вкажіть задачу. Призначте її комусь за допомогою символу «@».',
|
|
67
|
-
'fabric.editor.textColor': 'Колір тексту',
|
|
68
67
|
'fabric.editor.threeColumns': 'Три стовпці',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Три стовпці з бічними панелями',
|
|
70
69
|
'fabric.editor.twoColumns': 'Два стовпці',
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Cột đơn',
|
|
65
65
|
'fabric.editor.success': 'Thành công',
|
|
66
66
|
'fabric.editor.taskPlaceholder': "Nhập thao tác của bạn, sử dụng '@' để chỉ định cho người nào đó.",
|
|
67
|
-
'fabric.editor.textColor': 'Màu văn bản',
|
|
68
67
|
'fabric.editor.threeColumns': 'Ba cột',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Ba cột có các thanh bên',
|
|
70
69
|
'fabric.editor.twoColumns': 'Hai cột',
|
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': '单列',
|
|
65
65
|
'fabric.editor.success': '成功',
|
|
66
66
|
'fabric.editor.taskPlaceholder': '输入您的操作,使用“@”进行分配。',
|
|
67
|
-
'fabric.editor.textColor': '文本颜色',
|
|
68
67
|
'fabric.editor.threeColumns': '三栏',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': '具有侧边栏的三列',
|
|
70
69
|
'fabric.editor.twoColumns': '两栏',
|
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': '單欄',
|
|
65
65
|
'fabric.editor.success': '成功',
|
|
66
66
|
'fabric.editor.taskPlaceholder': '輸入動作,使用「@」以指派給他人。',
|
|
67
|
-
'fabric.editor.textColor': '文字顏色',
|
|
68
67
|
'fabric.editor.threeColumns': '三欄',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': '三個包含資訊看板的直欄',
|
|
70
69
|
'fabric.editor.twoColumns': '兩欄',
|
|
@@ -9,7 +9,6 @@ export { default as macroPlugin } from './macro';
|
|
|
9
9
|
export { default as maxContentSizePlugin } from './max-content-size';
|
|
10
10
|
export { default as panelPlugin } from './panel';
|
|
11
11
|
export { default as pastePlugin } from './paste';
|
|
12
|
-
export { placeholderTextPlugin } from './placeholder-text';
|
|
13
12
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
14
13
|
export { default as breakoutPlugin } from './breakout';
|
|
15
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,11 +1,11 @@
|
|
|
1
|
-
import { removeParentNodeOfType, findSelectedNodeOfType, removeSelectedNode, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
-
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
1
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
4
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID,
|
|
5
|
-
import { findPanel } from './utils';
|
|
6
|
-
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
3
|
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
4
|
+
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
8
5
|
import { wrapSelectionIn } from '@atlaskit/editor-common/utils';
|
|
6
|
+
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
+
import { findParentNodeOfType, findSelectedNodeOfType, removeParentNodeOfType, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
+
import { findPanel } from './utils';
|
|
9
9
|
export const removePanel = editorAnalyticsAPI => (state, dispatch) => {
|
|
10
10
|
const {
|
|
11
11
|
schema: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { panel, PanelType } from '@atlaskit/adf-schema';
|
|
3
|
-
import {
|
|
4
|
-
import { getToolbarConfig } from './toolbar';
|
|
5
|
-
import keymap from './pm-plugins/keymaps';
|
|
6
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { IconPanel, IconPanelNote, IconPanelSuccess, IconPanelWarning, IconPanelError } from '@atlaskit/editor-common/quick-insert';
|
|
8
|
-
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
4
|
import { blockTypeMessages } from '@atlaskit/editor-common/messages';
|
|
5
|
+
import { IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
|
|
10
6
|
import { IconCustomPanel } from '@atlaskit/editor-common/quick-insert';
|
|
7
|
+
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
11
8
|
import { T50 } from '@atlaskit/theme/colors';
|
|
12
9
|
import { insertPanelWithAnalytics } from './actions';
|
|
10
|
+
import keymap from './pm-plugins/keymaps';
|
|
11
|
+
import { createPlugin } from './pm-plugins/main';
|
|
12
|
+
import { getToolbarConfig } from './toolbar';
|
|
13
13
|
const panelPlugin = ({
|
|
14
14
|
config: options = {},
|
|
15
15
|
api
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
|
-
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import TipIcon from '@atlaskit/icon/glyph/editor/hint';
|
|
5
3
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
6
|
-
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
7
4
|
import { Emoji } from '@atlaskit/editor-common/emoji';
|
|
8
|
-
import {
|
|
5
|
+
import { PanelErrorIcon, PanelInfoIcon, PanelNoteIcon, PanelSuccessIcon, PanelWarningIcon } from '@atlaskit/editor-common/icons';
|
|
6
|
+
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
7
|
+
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
9
8
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
10
|
-
import
|
|
9
|
+
import TipIcon from '@atlaskit/icon/glyph/editor/hint';
|
|
10
|
+
import { panelAttrsToDom } from '../utils';
|
|
11
11
|
export const panelIcons = {
|
|
12
12
|
info: PanelInfoIcon,
|
|
13
13
|
success: PanelSuccessIcon,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { isEmptyNode } from '@atlaskit/editor-common/utils';
|
|
1
2
|
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
2
|
-
import {
|
|
3
|
-
import { isEmptyNode } from '../../../utils';
|
|
3
|
+
import { findParentNodeOfType, hasParentNodeOfType, setTextSelection } from '@atlaskit/editor-prosemirror/utils';
|
|
4
4
|
function findParentNode(selection, nodeType) {
|
|
5
5
|
const parentPosition = findParentNodeOfType(nodeType)(selection);
|
|
6
6
|
if (parentPosition) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
1
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
2
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
+
import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
3
4
|
import { getPanelNodeView } from '../nodeviews/panel';
|
|
4
5
|
import { pluginKey } from '../types';
|
|
5
|
-
import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
|
|
6
6
|
export const createPlugin = (dispatch, providerFactory, pluginOptions) => {
|
|
7
7
|
const {
|
|
8
8
|
useLongPressSelection = false
|