@atlaskit/editor-core 195.0.4 → 195.1.0
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 +23 -0
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +4 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +4 -2
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +59 -47
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +23 -17
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +4 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +5 -3
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +69 -57
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +24 -18
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +4 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +5 -3
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +60 -48
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +24 -18
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +22 -22
- package/dist/types/presets/default.d.ts +16 -16
- package/dist/types/presets/universal.d.ts +22 -22
- package/dist/types/presets/useUniversalPreset.d.ts +22 -22
- package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +3 -3
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +22 -20
- package/dist/types-ts4.5/presets/default.d.ts +16 -16
- package/dist/types-ts4.5/presets/universal.d.ts +22 -20
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +22 -20
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +3 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/package.json +22 -15
|
@@ -35,6 +35,7 @@ import { layoutPlugin } from '@atlaskit/editor-plugins/layout';
|
|
|
35
35
|
import { listPlugin } from '@atlaskit/editor-plugins/list';
|
|
36
36
|
import { maxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
|
|
37
37
|
import { mediaPlugin } from '@atlaskit/editor-plugins/media';
|
|
38
|
+
import { mediaInsertPlugin } from '@atlaskit/editor-plugins/media-insert';
|
|
38
39
|
import { mentionsPlugin } from '@atlaskit/editor-plugins/mentions';
|
|
39
40
|
import { panelPlugin } from '@atlaskit/editor-plugins/panel';
|
|
40
41
|
import { pasteOptionsToolbarPlugin } from '@atlaskit/editor-plugins/paste-options-toolbar';
|
|
@@ -113,7 +114,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
113
114
|
isCopyPasteEnabled: !isMobile,
|
|
114
115
|
alignLeftOnInsert: typeof ((_props$media3 = props.media) === null || _props$media3 === void 0 ? void 0 : _props$media3.alignLeftOnInsert) !== 'undefined' ? (_props$media4 = props.media) === null || _props$media4 === void 0 ? void 0 : _props$media4.alignLeftOnInsert : isComment,
|
|
115
116
|
getEditorFeatureFlags: getEditorFeatureFlags
|
|
116
|
-
})], Boolean(props.media)).maybeAdd(captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([mentionsPlugin, {
|
|
117
|
+
})], Boolean(props.media)).maybeAdd(mediaInsertPlugin, Boolean(props.media && fg('platform_editor_insert_media_plugin_phase_one'))).maybeAdd(captionPlugin, Boolean((_props$media5 = props.media) === null || _props$media5 === void 0 ? void 0 : _props$media5.allowCaptions)).maybeAdd([mentionsPlugin, {
|
|
117
118
|
sanitizePrivateContent: props.sanitizePrivateContent,
|
|
118
119
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
119
120
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
@@ -44,7 +44,7 @@ var useShowKeyline = function useShowKeyline(contentAreaRef) {
|
|
|
44
44
|
return showKeyline;
|
|
45
45
|
};
|
|
46
46
|
export var FullPageEditor = function FullPageEditor(props) {
|
|
47
|
-
var _scrollContentContain, _scrollContentContain2, _wrapperElementRef$cu;
|
|
47
|
+
var _scrollContentContain, _scrollContentContain2, _scrollContentContain3, _wrapperElementRef$cu;
|
|
48
48
|
var wrapperElementRef = useMemo(function () {
|
|
49
49
|
return props.innerRef;
|
|
50
50
|
}, [props.innerRef]);
|
|
@@ -59,6 +59,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
59
59
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
60
60
|
}
|
|
61
61
|
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
62
|
+
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.scrollContainer) || undefined;
|
|
62
63
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
63
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
64
65
|
css: fullPageEditorWrapper
|
|
@@ -70,7 +71,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
70
71
|
appearance: props.appearance,
|
|
71
72
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
72
73
|
collabEdit: props.collabEdit,
|
|
73
|
-
containerElement: (
|
|
74
|
+
containerElement: (_scrollContentContain2 = (_scrollContentContain3 = scrollContentContainerRef.current) === null || _scrollContentContain3 === void 0 ? void 0 : _scrollContentContain3.scrollContainer) !== null && _scrollContentContain2 !== void 0 ? _scrollContentContain2 : null,
|
|
74
75
|
customPrimaryToolbarComponents: props.customPrimaryToolbarComponents,
|
|
75
76
|
disabled: !!props.disabled,
|
|
76
77
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
@@ -99,7 +100,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
99
100
|
editorDOMElement: props.editorDOMElement,
|
|
100
101
|
editorView: props.editorView,
|
|
101
102
|
eventDispatcher: props.eventDispatcher,
|
|
102
|
-
popupsBoundariesElement:
|
|
103
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
103
104
|
popupsMountPoint: props.popupsMountPoint,
|
|
104
105
|
popupsScrollableElement: props.popupsScrollableElement,
|
|
105
106
|
providerFactory: props.providerFactory,
|
|
@@ -65,7 +65,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
65
65
|
ref: contentAreaRef
|
|
66
66
|
}, jsx("div", {
|
|
67
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
68
|
-
css: editorContentGutterStyle
|
|
68
|
+
css: editorContentGutterStyle()
|
|
69
69
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
70
70
|
,
|
|
71
71
|
className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
|
|
@@ -12,7 +12,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
12
12
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
14
14
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
15
|
-
import {
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
16
|
import { usePresetContext } from '../../../presets/context';
|
|
17
17
|
import Toolbar from '../../Toolbar';
|
|
18
18
|
import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
|
|
@@ -90,8 +90,10 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
90
90
|
};
|
|
91
91
|
var handleEscape = function handleEscape(event) {
|
|
92
92
|
var _props$editorView;
|
|
93
|
-
if (
|
|
94
|
-
|
|
93
|
+
if (!fg('editor-fix-esc-main-toolbar-navigation')) {
|
|
94
|
+
if (!props.popupsMountPoint) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
95
97
|
}
|
|
96
98
|
if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
|
|
97
99
|
var _props$editorView2;
|
|
@@ -2,45 +2,51 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { akEditorFloatingDialogZIndex, akEditorMobileMaxWidth, akEditorSwoopCubicBezier, akEditorToolbarKeylineHeight, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import {
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
export var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
7
7
|
|
|
8
8
|
// box-shadow is overriden by the mainToolbar
|
|
9
9
|
var mainToolbarWithKeyline = css({
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
|
-
boxShadow:
|
|
11
|
+
boxShadow: fg('platform.confluence.frontend.narrow-full-page-editor-toolbar') ? "var(--ds-shadow-overflow, 0px 0px 8px #091E4228, 0px 0px 1px #091E421e)" : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
12
12
|
"0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F1F2F4)")
|
|
13
13
|
});
|
|
14
|
-
var mainToolbarTwoLineStyle =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
14
|
+
var mainToolbarTwoLineStyle = function mainToolbarTwoLineStyle() {
|
|
15
|
+
var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
|
|
16
|
+
return css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
17
|
+
flexWrap: 'wrap',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
height: "calc(".concat(editorToolbarHeight, " * 2)")
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
var mainToolbar = function mainToolbar() {
|
|
23
|
+
var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
|
|
24
|
+
return css(_defineProperty({
|
|
25
|
+
position: 'relative',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
boxShadow: 'none',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
+
borderBottom: fg('platform.confluence.frontend.narrow-full-page-editor-toolbar') ? "1px solid ".concat("var(--ds-border, #091E4224)") : undefined,
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
|
+
transition: "box-shadow 200ms ".concat(akEditorSwoopCubicBezier),
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
zIndex: akEditorFloatingDialogZIndex,
|
|
34
|
+
display: 'flex',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
|
+
height: editorToolbarHeight,
|
|
37
|
+
flexShrink: 0,
|
|
38
|
+
backgroundColor: "var(--ds-surface, white)",
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
|
+
'& object': {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
42
|
+
height: '0 !important'
|
|
43
|
+
}
|
|
44
|
+
}, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
|
|
45
|
+
display: 'grid',
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
+
height: "calc(".concat(editorToolbarHeight, " * 2)")
|
|
48
|
+
}));
|
|
49
|
+
};
|
|
44
50
|
export var mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
|
|
45
51
|
return [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
|
|
46
52
|
};
|
|
@@ -61,28 +67,34 @@ var mainToolbarFirstChild = css(_defineProperty({
|
|
|
61
67
|
gridColumn: 1,
|
|
62
68
|
gridRow: 1
|
|
63
69
|
}));
|
|
64
|
-
var mainToolbarFirstChildTowLine =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
var mainToolbarFirstChildTowLine = function mainToolbarFirstChildTowLine() {
|
|
71
|
+
var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
|
|
72
|
+
return css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
73
|
+
flex: '1 1 100%',
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
75
|
+
height: editorToolbarHeight,
|
|
76
|
+
justifyContent: 'flex-end',
|
|
77
|
+
minWidth: 'fit-content'
|
|
78
|
+
}));
|
|
79
|
+
};
|
|
71
80
|
export var mainToolbarFirstChildStyle = function mainToolbarFirstChildStyle(twoLineEditorToolbar) {
|
|
72
81
|
return [mainToolbarFirstChild, twoLineEditorToolbar && mainToolbarFirstChildTowLine];
|
|
73
82
|
};
|
|
74
83
|
var mainToolbarSecondChild = css({
|
|
75
84
|
minWidth: 'fit-content'
|
|
76
85
|
});
|
|
77
|
-
var mainToolbarSecondChildTwoLine =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
var mainToolbarSecondChildTwoLine = function mainToolbarSecondChildTwoLine() {
|
|
87
|
+
var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
|
|
88
|
+
return css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
89
|
+
display: 'flex',
|
|
90
|
+
flexGrow: 1,
|
|
91
|
+
flex: '1 1 100%',
|
|
92
|
+
margin: 'auto',
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
94
|
+
height: editorToolbarHeight,
|
|
95
|
+
minWidth: 0
|
|
96
|
+
}));
|
|
97
|
+
};
|
|
86
98
|
export var mainToolbarSecondChildStyle = function mainToolbarSecondChildStyle(twoLineEditorToolbar) {
|
|
87
99
|
return [mainToolbarSecondChild, twoLineEditorToolbar && mainToolbarSecondChildTwoLine];
|
|
88
100
|
};
|
|
@@ -7,7 +7,7 @@ import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/com
|
|
|
7
7
|
import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
|
|
8
8
|
import { akEditorContextPanelWidth, akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
10
|
-
import {
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -58,17 +58,20 @@ export var positionedOverEditorStyle = css({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
61
|
-
export var contentArea =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
export var contentArea = function contentArea() {
|
|
62
|
+
var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
|
|
63
|
+
return css({
|
|
64
|
+
display: 'flex',
|
|
65
|
+
flexDirection: 'row',
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
67
|
+
height: "calc(100% - ".concat(editorToolbarHeight, ")"),
|
|
68
|
+
boxSizing: 'border-box',
|
|
69
|
+
margin: 0,
|
|
70
|
+
padding: 0,
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
72
|
+
transition: "padding 0ms ".concat(akEditorSwoopCubicBezier)
|
|
73
|
+
});
|
|
74
|
+
};
|
|
72
75
|
|
|
73
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
74
77
|
export var contentAreaHeightNoToolbar = css({
|
|
@@ -189,9 +192,12 @@ tableFullPageEditorStyles, {
|
|
|
189
192
|
});
|
|
190
193
|
|
|
191
194
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
192
|
-
export var editorContentGutterStyle =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
export var editorContentGutterStyle = function editorContentGutterStyle() {
|
|
196
|
+
var padding = fg('platform.editor.core.increase-full-page-guttering') ? // there is no space token for 52px
|
|
197
|
+
"0 52px" : "0 ".concat("var(--ds-space-400, 32px)");
|
|
198
|
+
return css({
|
|
199
|
+
boxSizing: 'border-box',
|
|
200
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
201
|
+
padding: padding
|
|
202
|
+
});
|
|
203
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.0
|
|
2
|
+
export var version = "195.1.0";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorProps } from '../types';
|
|
3
|
-
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"primaryToolbar">, import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
3
|
+
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"primaryToolbar">, import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
4
4
|
pluginConfiguration: {
|
|
5
5
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
6
6
|
} | undefined;
|
|
@@ -698,11 +698,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
698
698
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
699
699
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
700
700
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
701
|
-
|
|
701
|
+
actions: {
|
|
702
702
|
registerComponent: ({ name, component, }: {
|
|
703
703
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
704
704
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
705
|
-
}) =>
|
|
705
|
+
}) => void;
|
|
706
706
|
};
|
|
707
707
|
}, undefined>>];
|
|
708
708
|
actions: {
|
|
@@ -780,11 +780,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
780
780
|
};
|
|
781
781
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
782
782
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
783
|
-
|
|
783
|
+
actions: {
|
|
784
784
|
registerComponent: ({ name, component, }: {
|
|
785
785
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
786
786
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
787
|
-
}) =>
|
|
787
|
+
}) => void;
|
|
788
788
|
};
|
|
789
789
|
}, undefined>>];
|
|
790
790
|
actions: {
|
|
@@ -802,11 +802,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
802
802
|
};
|
|
803
803
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
804
804
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
805
|
-
|
|
805
|
+
actions: {
|
|
806
806
|
registerComponent: ({ name, component, }: {
|
|
807
807
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
808
808
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
809
|
-
}) =>
|
|
809
|
+
}) => void;
|
|
810
810
|
};
|
|
811
811
|
}, undefined>>];
|
|
812
812
|
}, {
|
|
@@ -962,11 +962,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
962
962
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
963
963
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
964
964
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
965
|
-
|
|
965
|
+
actions: {
|
|
966
966
|
registerComponent: ({ name, component, }: {
|
|
967
967
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
968
968
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
969
|
-
}) =>
|
|
969
|
+
}) => void;
|
|
970
970
|
};
|
|
971
971
|
}, undefined>>];
|
|
972
972
|
}, {
|
|
@@ -2219,7 +2219,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2219
2219
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2220
2220
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2221
2221
|
}, undefined>>];
|
|
2222
|
-
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2222
|
+
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"mediaInsert", {}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2223
2223
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2224
2224
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2225
2225
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -2772,11 +2772,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2772
2772
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2773
2773
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
2774
2774
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
2775
|
-
|
|
2775
|
+
actions: {
|
|
2776
2776
|
registerComponent: ({ name, component, }: {
|
|
2777
2777
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
2778
2778
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2779
|
-
}) =>
|
|
2779
|
+
}) => void;
|
|
2780
2780
|
};
|
|
2781
2781
|
}, undefined>>];
|
|
2782
2782
|
actions: {
|
|
@@ -2787,11 +2787,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2787
2787
|
sharedState: import("@atlaskit/editor-plugin-alignment").AlignmentPluginState | undefined;
|
|
2788
2788
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
2789
2789
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
2790
|
-
|
|
2790
|
+
actions: {
|
|
2791
2791
|
registerComponent: ({ name, component, }: {
|
|
2792
2792
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
2793
2793
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2794
|
-
}) =>
|
|
2794
|
+
}) => void;
|
|
2795
2795
|
};
|
|
2796
2796
|
}, undefined>>];
|
|
2797
2797
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"breakout", {
|
|
@@ -3437,11 +3437,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3437
3437
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3438
3438
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
3439
3439
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
3440
|
-
|
|
3440
|
+
actions: {
|
|
3441
3441
|
registerComponent: ({ name, component, }: {
|
|
3442
3442
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
3443
3443
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3444
|
-
}) =>
|
|
3444
|
+
}) => void;
|
|
3445
3445
|
};
|
|
3446
3446
|
}, undefined>>];
|
|
3447
3447
|
commands: {
|
|
@@ -3706,11 +3706,11 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3706
3706
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3707
3707
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
3708
3708
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
3709
|
-
|
|
3709
|
+
actions: {
|
|
3710
3710
|
registerComponent: ({ name, component, }: {
|
|
3711
3711
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
3712
3712
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3713
|
-
}) =>
|
|
3713
|
+
}) => void;
|
|
3714
3714
|
};
|
|
3715
3715
|
}, undefined>>];
|
|
3716
3716
|
sharedState: import("@atlaskit/editor-plugin-block-type").BlockTypeState | undefined;
|
|
@@ -3770,20 +3770,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3770
3770
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
3771
3771
|
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
3772
3772
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
3773
|
-
|
|
3773
|
+
actions: {
|
|
3774
3774
|
registerComponent: ({ name, component, }: {
|
|
3775
3775
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
3776
3776
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3777
|
-
}) =>
|
|
3777
|
+
}) => void;
|
|
3778
3778
|
};
|
|
3779
3779
|
}, undefined>>];
|
|
3780
3780
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
3781
3781
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
3782
|
-
|
|
3782
|
+
actions: {
|
|
3783
3783
|
registerComponent: ({ name, component, }: {
|
|
3784
3784
|
name: import("@atlaskit/editor-plugin-primary-toolbar").ToolbarElementNames;
|
|
3785
3785
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3786
|
-
}) =>
|
|
3786
|
+
}) => void;
|
|
3787
3787
|
};
|
|
3788
3788
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
3789
3789
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
@@ -650,11 +650,11 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
650
650
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
651
651
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
652
652
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
653
|
-
|
|
653
|
+
actions: {
|
|
654
654
|
registerComponent: ({ name, component, }: {
|
|
655
655
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
656
656
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
657
|
-
}) =>
|
|
657
|
+
}) => void;
|
|
658
658
|
};
|
|
659
659
|
}, undefined>>];
|
|
660
660
|
commands: {
|
|
@@ -919,11 +919,11 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
919
919
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
920
920
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
921
921
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
922
|
-
|
|
922
|
+
actions: {
|
|
923
923
|
registerComponent: ({ name, component, }: {
|
|
924
924
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
925
925
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
926
|
-
}) =>
|
|
926
|
+
}) => void;
|
|
927
927
|
};
|
|
928
928
|
}, undefined>>];
|
|
929
929
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -983,20 +983,20 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
983
983
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
984
984
|
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
985
985
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
986
|
-
|
|
986
|
+
actions: {
|
|
987
987
|
registerComponent: ({ name, component, }: {
|
|
988
988
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
989
989
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
990
|
-
}) =>
|
|
990
|
+
}) => void;
|
|
991
991
|
};
|
|
992
992
|
}, undefined>>];
|
|
993
993
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
994
994
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
995
|
-
|
|
995
|
+
actions: {
|
|
996
996
|
registerComponent: ({ name, component, }: {
|
|
997
997
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
998
998
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
999
|
-
}) =>
|
|
999
|
+
}) => void;
|
|
1000
1000
|
};
|
|
1001
1001
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
1002
1002
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
@@ -2360,11 +2360,11 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2360
2360
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2361
2361
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
2362
2362
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
2363
|
-
|
|
2363
|
+
actions: {
|
|
2364
2364
|
registerComponent: ({ name, component, }: {
|
|
2365
2365
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
2366
2366
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2367
|
-
}) =>
|
|
2367
|
+
}) => void;
|
|
2368
2368
|
};
|
|
2369
2369
|
}, undefined>>];
|
|
2370
2370
|
commands: {
|
|
@@ -2629,11 +2629,11 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2629
2629
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2630
2630
|
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
2631
2631
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
2632
|
-
|
|
2632
|
+
actions: {
|
|
2633
2633
|
registerComponent: ({ name, component, }: {
|
|
2634
2634
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
2635
2635
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2636
|
-
}) =>
|
|
2636
|
+
}) => void;
|
|
2637
2637
|
};
|
|
2638
2638
|
}, undefined>>];
|
|
2639
2639
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -2693,20 +2693,20 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2693
2693
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
2694
2694
|
}, undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
2695
2695
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
2696
|
-
|
|
2696
|
+
actions: {
|
|
2697
2697
|
registerComponent: ({ name, component, }: {
|
|
2698
2698
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
2699
2699
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2700
|
-
}) =>
|
|
2700
|
+
}) => void;
|
|
2701
2701
|
};
|
|
2702
2702
|
}, undefined>>];
|
|
2703
2703
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
2704
2704
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
2705
|
-
|
|
2705
|
+
actions: {
|
|
2706
2706
|
registerComponent: ({ name, component, }: {
|
|
2707
2707
|
name: import("@atlaskit/editor-plugins/primary-toolbar").ToolbarElementNames;
|
|
2708
2708
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2709
|
-
}) =>
|
|
2709
|
+
}) => void;
|
|
2710
2710
|
};
|
|
2711
2711
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
2712
2712
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|