@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
|
@@ -2,24 +2,23 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
var _panelIconMap;
|
|
3
3
|
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; }
|
|
4
4
|
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) { _defineProperty(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; }
|
|
5
|
-
import
|
|
5
|
+
import { PanelType } from '@atlaskit/adf-schema';
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
8
|
+
import commonMessages from '@atlaskit/editor-common/messages';
|
|
9
|
+
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
10
|
+
import { DEFAULT_BORDER_COLOR, panelBackgroundPalette } from '@atlaskit/editor-common/ui-color';
|
|
11
|
+
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
12
|
+
import ErrorIcon from '@atlaskit/icon/glyph/editor/error';
|
|
6
13
|
import InfoIcon from '@atlaskit/icon/glyph/editor/info';
|
|
7
14
|
import NoteIcon from '@atlaskit/icon/glyph/editor/note';
|
|
8
15
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
9
|
-
import WarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
10
|
-
import ErrorIcon from '@atlaskit/icon/glyph/editor/error';
|
|
11
16
|
import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
|
|
16
|
-
import { findPanel } from './utils';
|
|
17
|
-
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
18
|
-
import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
|
|
19
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
20
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
21
|
-
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
17
|
+
import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
18
|
+
import WarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
19
|
+
import { changePanelType, removePanel } from './actions';
|
|
22
20
|
import { messages } from './message';
|
|
21
|
+
import { findPanel } from './utils';
|
|
23
22
|
export var panelIconMap = (_panelIconMap = {}, _defineProperty(_panelIconMap, PanelType.INFO, {
|
|
24
23
|
shortName: ':info:',
|
|
25
24
|
id: 'atlassian-info'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
|
-
import { findSelectedNodeOfType, findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
4
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
6
5
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
7
6
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
7
|
+
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
8
8
|
export var findPanel = function findPanel(state, selection) {
|
|
9
9
|
var panel = state.schema.nodes.panel;
|
|
10
10
|
return findSelectedNodeOfType(panel)(selection || state.selection) || findParentNodeOfType(panel)(selection || state.selection);
|
|
@@ -2,7 +2,7 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
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; }
|
|
4
4
|
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) { _defineProperty(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; }
|
|
5
|
-
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, macroPlugin, maxContentSizePlugin, panelPlugin,
|
|
5
|
+
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';
|
|
6
6
|
import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
|
|
7
7
|
import { historyPlugin } from '@atlaskit/editor-plugin-history';
|
|
8
8
|
import { statusPlugin } from '@atlaskit/editor-plugin-status';
|
|
@@ -28,6 +28,7 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
|
28
28
|
import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
|
|
29
29
|
import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
|
|
30
30
|
import { mentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
31
|
+
import { placeholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
31
32
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
32
33
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
33
34
|
import { createDefaultPreset } from './default';
|
|
@@ -13,8 +13,8 @@ import { textHighlightStyle } from '@atlaskit/editor-plugin-paste-options-toolba
|
|
|
13
13
|
import { codeBlockStyles } from '../../plugins/code-block/styles';
|
|
14
14
|
import { mediaStyles } from './media';
|
|
15
15
|
import { layoutStyles } from './layout';
|
|
16
|
-
import { panelStyles } from '
|
|
17
|
-
import { placeholderTextStyles } from '
|
|
16
|
+
import { panelStyles } from './panel';
|
|
17
|
+
import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/styles';
|
|
18
18
|
import { extensionStyles } from '../../plugins/extension/ui/styles';
|
|
19
19
|
import { expandStyles } from '../../plugins/expand/ui/styles';
|
|
20
20
|
import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -63,7 +63,6 @@ declare const _default: {
|
|
|
63
63
|
'fabric.editor.single': string;
|
|
64
64
|
'fabric.editor.success': string;
|
|
65
65
|
'fabric.editor.taskPlaceholder': string;
|
|
66
|
-
'fabric.editor.textColor': string;
|
|
67
66
|
'fabric.editor.threeColumns': string;
|
|
68
67
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
69
68
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/da.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -64,7 +64,6 @@ declare const _default: {
|
|
|
64
64
|
'fabric.editor.single': string;
|
|
65
65
|
'fabric.editor.success': string;
|
|
66
66
|
'fabric.editor.taskPlaceholder': string;
|
|
67
|
-
'fabric.editor.textColor': string;
|
|
68
67
|
'fabric.editor.threeColumns': string;
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
70
69
|
'fabric.editor.twoColumns': string;
|
|
@@ -64,7 +64,6 @@ declare const _default: {
|
|
|
64
64
|
'fabric.editor.single': string;
|
|
65
65
|
'fabric.editor.success': string;
|
|
66
66
|
'fabric.editor.taskPlaceholder': string;
|
|
67
|
-
'fabric.editor.textColor': string;
|
|
68
67
|
'fabric.editor.threeColumns': string;
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
70
69
|
'fabric.editor.twoColumns': string;
|
|
@@ -64,7 +64,6 @@ declare const _default: {
|
|
|
64
64
|
'fabric.editor.single': string;
|
|
65
65
|
'fabric.editor.success': string;
|
|
66
66
|
'fabric.editor.taskPlaceholder': string;
|
|
67
|
-
'fabric.editor.textColor': string;
|
|
68
67
|
'fabric.editor.threeColumns': string;
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
70
69
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/es.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/hu.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/it.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/ja.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/ko.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/nb.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/nl.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/pl.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -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';
|
|
@@ -16,6 +16,7 @@ import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
|
16
16
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
17
17
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
18
|
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
19
|
+
import type { PlaceholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
|
|
19
20
|
import type { ExpandPlugin } from '../expand';
|
|
20
21
|
export type InsertBlockPluginDependencies = [
|
|
21
22
|
FeatureFlagsPlugin,
|
|
@@ -35,5 +36,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
35
36
|
OptionalPlugin<MentionsPlugin>,
|
|
36
37
|
OptionalPlugin<StatusPlugin>,
|
|
37
38
|
OptionalPlugin<LayoutPlugin>,
|
|
38
|
-
OptionalPlugin<ExpandPlugin
|
|
39
|
+
OptionalPlugin<ExpandPlugin>,
|
|
40
|
+
OptionalPlugin<PlaceholderTextPlugin>
|
|
39
41
|
];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { Command } from '../../types';
|
|
3
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { PanelOptions } from './pm-plugins/main';
|
|
6
6
|
export type DomAtPos = (pos: number) => {
|
|
7
7
|
node: HTMLElement;
|
|
@@ -9,4 +9,4 @@ export type DomAtPos = (pos: number) => {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const removePanel: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
11
11
|
export declare const changePanelType: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (panelType: PanelType, panelOptions?: PanelOptions, allowCustomPanel?: boolean) => Command;
|
|
12
|
-
export declare function insertPanelWithAnalytics(inputMethod: INPUT_METHOD, analyticsAPI?: EditorAnalyticsAPI):
|
|
12
|
+
export declare function insertPanelWithAnalytics(inputMethod: INPUT_METHOD, analyticsAPI?: EditorAnalyticsAPI): Command;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
1
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type {
|
|
4
|
-
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
2
|
+
import type { Command, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
5
3
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
+
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
|
+
import type { PanelPluginOptions } from './types';
|
|
6
6
|
export type PanelPlugin = NextEditorPlugin<'panel', {
|
|
7
7
|
pluginConfiguration: PanelPluginOptions | undefined;
|
|
8
8
|
dependencies: [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
2
|
import type { PanelAttributes } from '@atlaskit/adf-schema';
|
|
5
3
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
6
|
-
import type { getPosHandlerNode, getPosHandler } from '../../../nodeviews/';
|
|
7
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
+
import type { getPosHandler, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { PanelPluginOptions } from '../types';
|
|
9
9
|
export declare const panelIcons: {
|
|
10
10
|
[key in PanelType]: React.ComponentType<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
4
|
import type { PanelPluginOptions } from '../types';
|
|
4
|
-
import type { Dispatch } from '../../../event-dispatcher';
|
|
5
5
|
export type PanelOptions = {
|
|
6
6
|
color?: string;
|
|
7
7
|
emoji?: string;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type { FloatingToolbarConfig, FloatingToolbarItem, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { EmojiInfo, PanelPluginOptions } from './types';
|
|
3
1
|
import type { IntlShape } from 'react-intl-next';
|
|
4
|
-
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
-
import type { Command } from '../../types';
|
|
8
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
9
2
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
10
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
+
import type { Command, ExtractInjectionAPI, FloatingToolbarConfig, FloatingToolbarItem } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
7
|
+
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
8
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
+
import type { EmojiInfo, PanelPluginOptions } from './types';
|
|
11
10
|
import type { PanelPlugin } from './index';
|
|
12
11
|
export declare const panelIconMap: {
|
|
13
12
|
[key in Exclude<PanelType, PanelType.CUSTOM>]: EmojiInfo;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
1
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
export declare const pluginKey: PluginKey<any>;
|
|
4
4
|
export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PanelAttributes } from '@atlaskit/adf-schema';
|
|
1
2
|
import type { DOMOutputSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { PanelAttributes } from '@atlaskit/adf-schema';
|
|
4
4
|
export declare const findPanel: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
|
|
5
5
|
export declare const panelAttrsToDom: (attrs: PanelAttributes, allowCustomPanel: boolean) => DOMOutputSpec;
|
|
@@ -22,7 +22,7 @@ import type { LayoutPluginOptions } from '@atlaskit/editor-plugin-layout';
|
|
|
22
22
|
import type { MediaOptions, MediaState } from '@atlaskit/editor-plugin-media/types';
|
|
23
23
|
import type { MentionPluginConfig } from '@atlaskit/editor-plugin-mentions';
|
|
24
24
|
import type { PanelPluginConfig } from '../plugins/panel/types';
|
|
25
|
-
import type { PlaceholderTextOptions } from '
|
|
25
|
+
import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
|
|
26
26
|
import type { TextColorPluginConfig } from '@atlaskit/editor-plugin-text-color';
|
|
27
27
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
28
28
|
import type { EditorAppearance } from './editor-appearance';
|
|
@@ -17,5 +17,5 @@ type Props = {
|
|
|
17
17
|
isLoading?: boolean;
|
|
18
18
|
featureFlags?: FeatureFlags;
|
|
19
19
|
} & WithAnalyticsEventsProps;
|
|
20
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "autoSaveReject" | "onChange" | "isLoading" | "fields" | "key" | "parameters" | "
|
|
20
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "autoSaveReject" | "onChange" | "isLoading" | "fields" | "key" | "parameters" | "onCancel" | "featureFlags" | "autoSave" | "analyticsContext" | "errorMessage" | "extensionManifest" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
|
|
21
21
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ThemeProps } from '@atlaskit/theme/types';
|
|
1
|
+
import type { ThemeProps } from '@atlaskit/theme/types';
|
|
2
2
|
export declare const panelStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
@@ -63,7 +63,6 @@ declare const _default: {
|
|
|
63
63
|
'fabric.editor.single': string;
|
|
64
64
|
'fabric.editor.success': string;
|
|
65
65
|
'fabric.editor.taskPlaceholder': string;
|
|
66
|
-
'fabric.editor.textColor': string;
|
|
67
66
|
'fabric.editor.threeColumns': string;
|
|
68
67
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
69
68
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -64,7 +64,6 @@ declare const _default: {
|
|
|
64
64
|
'fabric.editor.single': string;
|
|
65
65
|
'fabric.editor.success': string;
|
|
66
66
|
'fabric.editor.taskPlaceholder': string;
|
|
67
|
-
'fabric.editor.textColor': string;
|
|
68
67
|
'fabric.editor.threeColumns': string;
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
70
69
|
'fabric.editor.twoColumns': string;
|
|
@@ -64,7 +64,6 @@ declare const _default: {
|
|
|
64
64
|
'fabric.editor.single': string;
|
|
65
65
|
'fabric.editor.success': string;
|
|
66
66
|
'fabric.editor.taskPlaceholder': string;
|
|
67
|
-
'fabric.editor.textColor': string;
|
|
68
67
|
'fabric.editor.threeColumns': string;
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
70
69
|
'fabric.editor.twoColumns': string;
|
|
@@ -64,7 +64,6 @@ declare const _default: {
|
|
|
64
64
|
'fabric.editor.single': string;
|
|
65
65
|
'fabric.editor.success': string;
|
|
66
66
|
'fabric.editor.taskPlaceholder': string;
|
|
67
|
-
'fabric.editor.textColor': string;
|
|
68
67
|
'fabric.editor.threeColumns': string;
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
70
69
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|
|
@@ -62,7 +62,6 @@ declare const _default: {
|
|
|
62
62
|
'fabric.editor.single': string;
|
|
63
63
|
'fabric.editor.success': string;
|
|
64
64
|
'fabric.editor.taskPlaceholder': string;
|
|
65
|
-
'fabric.editor.textColor': string;
|
|
66
65
|
'fabric.editor.threeColumns': string;
|
|
67
66
|
'fabric.editor.threeColumnsWithSidebars': string;
|
|
68
67
|
'fabric.editor.twoColumns': string;
|