@atlaskit/editor-core 191.0.9 → 191.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/afm-cc/tsconfig.json +3 -6
- package/dist/cjs/plugins/index.js +1 -8
- package/dist/cjs/presets/universal.js +10 -13
- package/dist/cjs/ui/Addon/click-area-helper.js +2 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +6 -3
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +19 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +6 -12
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/index.js +1 -2
- package/dist/es2019/presets/universal.js +11 -14
- package/dist/es2019/ui/Addon/click-area-helper.js +2 -0
- package/dist/es2019/ui/Appearance/Comment/Comment.js +6 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +38 -6
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +4 -10
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/index.js +1 -2
- package/dist/esm/presets/universal.js +11 -14
- package/dist/esm/ui/Addon/click-area-helper.js +2 -0
- package/dist/esm/ui/Appearance/Comment/Comment.js +6 -3
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +19 -6
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +4 -10
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/presets/default.d.ts +6 -36
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +2 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/presets/default.d.ts +6 -36
- package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +2 -1
- package/docs/0-intro.tsx +252 -174
- package/docs/1-legacy-editor.tsx +268 -0
- package/package.json +7 -7
- package/dist/cjs/plugins/avatar-group/index.js +0 -40
- package/dist/cjs/plugins/avatar-group/messages.js +0 -14
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -49
- package/dist/cjs/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -42
- package/dist/cjs/plugins/avatar-group/ui/avatars.js +0 -70
- package/dist/cjs/plugins/avatar-group/ui/colored-avatar-item.js +0 -20
- package/dist/cjs/plugins/avatar-group/ui/index.js +0 -9
- package/dist/cjs/plugins/avatar-group/ui/invite-to-edit.js +0 -45
- package/dist/cjs/plugins/avatar-group/ui/styles.js +0 -17
- package/dist/cjs/plugins/avatar-group/ui/to-avatar.js +0 -30
- package/dist/es2019/plugins/avatar-group/index.js +0 -35
- package/dist/es2019/plugins/avatar-group/messages.js +0 -8
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -53
- package/dist/es2019/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -38
- package/dist/es2019/plugins/avatar-group/ui/avatars.js +0 -62
- package/dist/es2019/plugins/avatar-group/ui/colored-avatar-item.js +0 -13
- package/dist/es2019/plugins/avatar-group/ui/index.js +0 -2
- package/dist/es2019/plugins/avatar-group/ui/invite-to-edit.js +0 -32
- package/dist/es2019/plugins/avatar-group/ui/styles.js +0 -46
- package/dist/es2019/plugins/avatar-group/ui/to-avatar.js +0 -16
- package/dist/esm/plugins/avatar-group/index.js +0 -33
- package/dist/esm/plugins/avatar-group/messages.js +0 -8
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -42
- package/dist/esm/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -35
- package/dist/esm/plugins/avatar-group/ui/avatars.js +0 -62
- package/dist/esm/plugins/avatar-group/ui/colored-avatar-item.js +0 -13
- package/dist/esm/plugins/avatar-group/ui/index.js +0 -2
- package/dist/esm/plugins/avatar-group/ui/invite-to-edit.js +0 -34
- package/dist/esm/plugins/avatar-group/ui/styles.js +0 -10
- package/dist/esm/plugins/avatar-group/ui/to-avatar.js +0 -23
- package/dist/types/plugins/avatar-group/index.d.ts +0 -19
- package/dist/types/plugins/avatar-group/messages.d.ts +0 -7
- package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +0 -18
- package/dist/types/plugins/avatar-group/ui/avatars-with-plugin-state.d.ts +0 -81
- package/dist/types/plugins/avatar-group/ui/avatars.d.ts +0 -17
- package/dist/types/plugins/avatar-group/ui/colored-avatar-item.d.ts +0 -10
- package/dist/types/plugins/avatar-group/ui/index.d.ts +0 -2
- package/dist/types/plugins/avatar-group/ui/invite-to-edit.d.ts +0 -10
- package/dist/types/plugins/avatar-group/ui/styles.d.ts +0 -3
- package/dist/types/plugins/avatar-group/ui/to-avatar.d.ts +0 -30
- package/dist/types-ts4.5/plugins/avatar-group/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/avatar-group/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +0 -18
- package/dist/types-ts4.5/plugins/avatar-group/ui/avatars-with-plugin-state.d.ts +0 -97
- package/dist/types-ts4.5/plugins/avatar-group/ui/avatars.d.ts +0 -19
- package/dist/types-ts4.5/plugins/avatar-group/ui/colored-avatar-item.d.ts +0 -12
- package/dist/types-ts4.5/plugins/avatar-group/ui/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/avatar-group/ui/invite-to-edit.d.ts +0 -10
- package/dist/types-ts4.5/plugins/avatar-group/ui/styles.d.ts +0 -3
- package/dist/types-ts4.5/plugins/avatar-group/ui/to-avatar.d.ts +0 -37
- /package/docs/{1-labs.tsx → 2-labs.tsx} +0 -0
- /package/docs/{2-autoformatting.tsx → 3-autoformatting.tsx} +0 -0
- /package/docs/{3-annotations.tsx → 4-annotations.tsx} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
@@ -9,7 +10,11 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
10
|
import { N30 } from '@atlaskit/theme/colors';
|
|
10
11
|
import { akEditorToolbarKeylineHeight, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
12
|
export var TableControlsPadding = 20;
|
|
12
|
-
var
|
|
13
|
+
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
14
|
+
var mainToolbarWrapperStyle = function mainToolbarWrapperStyle() {
|
|
15
|
+
var isTwoLineEditorToolbar = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
16
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", " ", " 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", ";\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n ", "\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-surface, white)", "var(--ds-space-250, 20px)", isTwoLineEditorToolbar && "\n @media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px) {\n flex-direction: column-reverse;\n align-items: end;\n display: flex;\n justify-content: flex-end;\n }\n\n //make this more explicit for a toolbar\n > *:nth-child(1) {\n @media (max-width: ").concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px) {\n > div:nth-child(2) {\n justify-content: flex-end;\n display: flex;\n }\n }\n }\n "));
|
|
17
|
+
};
|
|
13
18
|
var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", ";\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), "var(--ds-space-100, 8px)", akEditorMenuZIndex, akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(N30, ")"));
|
|
14
19
|
var StickyToolbar = function StickyToolbar(props) {
|
|
15
20
|
var _useState = useState(0),
|
|
@@ -29,14 +34,14 @@ var StickyToolbar = function StickyToolbar(props) {
|
|
|
29
34
|
}
|
|
30
35
|
}, [props.externalToolbarRef, props.offsetTop]);
|
|
31
36
|
return jsx("div", {
|
|
32
|
-
css: [mainToolbarWrapperStyle, stickyToolbarWrapperStyle, css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n top: ", "px;\n "])), top)],
|
|
37
|
+
css: [mainToolbarWrapperStyle(props.twoLineEditorToolbar), stickyToolbarWrapperStyle, css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n top: ", "px;\n "])), top)],
|
|
33
38
|
"data-testid": "ak-editor-main-toolbar",
|
|
34
39
|
className: 'show-keyline'
|
|
35
40
|
}, props.children);
|
|
36
41
|
};
|
|
37
42
|
var FixedToolbar = function FixedToolbar(props) {
|
|
38
43
|
return jsx("div", {
|
|
39
|
-
css: mainToolbarWrapperStyle,
|
|
44
|
+
css: mainToolbarWrapperStyle(props.twoLineEditorToolbar),
|
|
40
45
|
"data-testid": "ak-editor-main-toolbar"
|
|
41
46
|
}, props.children);
|
|
42
47
|
};
|
|
@@ -70,10 +75,18 @@ var getStickyParameters = function getStickyParameters(configuration) {
|
|
|
70
75
|
};
|
|
71
76
|
export var MainToolbar = function MainToolbar(_ref) {
|
|
72
77
|
var useStickyToolbar = _ref.useStickyToolbar,
|
|
78
|
+
twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
73
79
|
children = _ref.children;
|
|
74
80
|
if (useStickyToolbar) {
|
|
75
|
-
return jsx(StickyToolbar, getStickyParameters(useStickyToolbar),
|
|
81
|
+
return jsx(StickyToolbar, _extends({}, getStickyParameters(useStickyToolbar), {
|
|
82
|
+
twoLineEditorToolbar: twoLineEditorToolbar
|
|
83
|
+
}), children);
|
|
76
84
|
}
|
|
77
|
-
return jsx(FixedToolbar,
|
|
85
|
+
return jsx(FixedToolbar, {
|
|
86
|
+
twoLineEditorToolbar: twoLineEditorToolbar
|
|
87
|
+
}, children);
|
|
78
88
|
};
|
|
79
|
-
export var mainToolbarCustomComponentsSlotStyle =
|
|
89
|
+
export var mainToolbarCustomComponentsSlotStyle = function mainToolbarCustomComponentsSlotStyle() {
|
|
90
|
+
var isTwoLineEditorToolbar = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
91
|
+
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n align-items: center;\n flex-grow: 1;\n padding-right: ", ";\n ", "\n > div {\n display: flex;\n flex-shrink: 0;\n }\n"])), "var(--ds-space-250, 20px)", isTwoLineEditorToolbar && "\n @media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px) {\n {\n padding-right: 0;\n }\n }\n "));
|
|
92
|
+
};
|
|
@@ -4,7 +4,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import React, { useState, useEffect } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
|
-
import AvatarsWithPluginState from '../../../plugins/avatar-group/ui';
|
|
8
7
|
import Toolbar from '../../Toolbar';
|
|
9
8
|
import { mainToolbarStyle, mainToolbarIconBeforeStyle, mainToolbarFirstChildStyle, mainToolbarSecondChildStyle, nonCustomToolbarWrapperStyle, customToolbarWrapperStyle, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
10
9
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
@@ -13,7 +12,7 @@ import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-me
|
|
|
13
12
|
import { usePresetContext } from '../../../presets/context';
|
|
14
13
|
import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
|
|
15
14
|
export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
16
|
-
var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _props$collabEdit, _props$collabEdit2, _props$collabEdit3
|
|
15
|
+
var _props$featureFlags, _props$customPrimaryT, _props$featureFlags2, _props$featureFlags3, _editorAPI$avatarGrou, _props$collabEdit, _props$collabEdit2, _props$collabEdit3;
|
|
17
16
|
var _useState = useState(false),
|
|
18
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19
18
|
shouldSplitToolbar = _useState2[0],
|
|
@@ -46,20 +45,15 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
46
45
|
css: customToolbarWrapperStyle
|
|
47
46
|
}, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? jsx(BeforePrimaryToolbarWrapper, {
|
|
48
47
|
beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
|
|
49
|
-
}) : null, props.hideAvatarGroup || (props === null || props === void 0 || (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null :
|
|
50
|
-
// Avatars are moved to Confluence codebase for Edit in Context
|
|
48
|
+
}) : null, props.hideAvatarGroup || (props === null || props === void 0 || (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null : // Avatars are moved to Confluence codebase for Edit in Context
|
|
51
49
|
// When Edit in Context is enabled customPrimaryToolbarComponents is undefined
|
|
52
50
|
// For more details please check
|
|
53
51
|
// https://hello.atlassian.net/wiki/spaces/PCG/pages/2851572180/Editor+toolbar+for+live+pages+and+edit+in+context+projects
|
|
54
|
-
|
|
52
|
+
editorAPI === null || editorAPI === void 0 || (_editorAPI$avatarGrou = editorAPI.avatarGroup) === null || _editorAPI$avatarGrou === void 0 ? void 0 : _editorAPI$avatarGrou.actions.getToolbarItem({
|
|
55
53
|
editorView: props.editorView,
|
|
56
|
-
eventDispatcher: props.eventDispatcher,
|
|
57
54
|
inviteToEditComponent: (_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.inviteToEditComponent,
|
|
58
55
|
inviteToEditHandler: (_props$collabEdit2 = props.collabEdit) === null || _props$collabEdit2 === void 0 ? void 0 : _props$collabEdit2.inviteToEditHandler,
|
|
59
|
-
isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected
|
|
60
|
-
featureFlags: props.featureFlags || {},
|
|
61
|
-
editorAnalyticsAPI: editorAPI === null || editorAPI === void 0 || (_editorAPI$analytics = editorAPI.analytics) === null || _editorAPI$analytics === void 0 ? void 0 : _editorAPI$analytics.actions,
|
|
62
|
-
editorAPI: editorAPI
|
|
56
|
+
isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected
|
|
63
57
|
}), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.getToolbarButton({
|
|
64
58
|
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
65
59
|
popupsMountPoint: props.popupsMountPoint,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "191.
|
|
2
|
+
export var version = "191.1.3";
|
|
@@ -338,12 +338,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
338
338
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
339
339
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
340
340
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
341
|
-
sharedState:
|
|
342
|
-
query: string;
|
|
343
|
-
isOpen: boolean;
|
|
344
|
-
isAllowed: boolean;
|
|
345
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
346
|
-
};
|
|
341
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
347
342
|
actions: {
|
|
348
343
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
349
344
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -386,12 +381,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
386
381
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
387
382
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
388
383
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
389
|
-
sharedState:
|
|
390
|
-
query: string;
|
|
391
|
-
isOpen: boolean;
|
|
392
|
-
isAllowed: boolean;
|
|
393
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
394
|
-
};
|
|
384
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
395
385
|
actions: {
|
|
396
386
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
397
387
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -435,12 +425,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
435
425
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
436
426
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
437
427
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
438
|
-
sharedState:
|
|
439
|
-
query: string;
|
|
440
|
-
isOpen: boolean;
|
|
441
|
-
isAllowed: boolean;
|
|
442
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
443
|
-
};
|
|
428
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
444
429
|
actions: {
|
|
445
430
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
446
431
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -834,12 +819,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
834
819
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
835
820
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
836
821
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
837
|
-
sharedState:
|
|
838
|
-
query: string;
|
|
839
|
-
isOpen: boolean;
|
|
840
|
-
isAllowed: boolean;
|
|
841
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
842
|
-
};
|
|
822
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
843
823
|
actions: {
|
|
844
824
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
845
825
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -882,12 +862,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
882
862
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
883
863
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
884
864
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
885
|
-
sharedState:
|
|
886
|
-
query: string;
|
|
887
|
-
isOpen: boolean;
|
|
888
|
-
isAllowed: boolean;
|
|
889
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
890
|
-
};
|
|
865
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
891
866
|
actions: {
|
|
892
867
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
893
868
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -931,12 +906,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
931
906
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
932
907
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
933
908
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
934
|
-
sharedState:
|
|
935
|
-
query: string;
|
|
936
|
-
isOpen: boolean;
|
|
937
|
-
isAllowed: boolean;
|
|
938
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
939
|
-
};
|
|
909
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
940
910
|
actions: {
|
|
941
911
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
942
912
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -3,7 +3,8 @@ import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
|
3
3
|
export declare const TableControlsPadding = 20;
|
|
4
4
|
type MainToolbarProps = {
|
|
5
5
|
useStickyToolbar?: UseStickyToolbarType;
|
|
6
|
+
twoLineEditorToolbar?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare const MainToolbar: React.FC<MainToolbarProps>;
|
|
8
|
-
export declare const mainToolbarCustomComponentsSlotStyle: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const mainToolbarCustomComponentsSlotStyle: (isTwoLineEditorToolbar?: boolean) => import("@emotion/react").SerializedStyles;
|
|
9
10
|
export {};
|
|
@@ -435,12 +435,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
435
435
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
436
436
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
437
437
|
];
|
|
438
|
-
sharedState:
|
|
439
|
-
query: string;
|
|
440
|
-
isOpen: boolean;
|
|
441
|
-
isAllowed: boolean;
|
|
442
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
443
|
-
};
|
|
438
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
444
439
|
actions: {
|
|
445
440
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
446
441
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -489,12 +484,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
489
484
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
490
485
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
491
486
|
];
|
|
492
|
-
sharedState:
|
|
493
|
-
query: string;
|
|
494
|
-
isOpen: boolean;
|
|
495
|
-
isAllowed: boolean;
|
|
496
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
497
|
-
};
|
|
487
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
498
488
|
actions: {
|
|
499
489
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
500
490
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -544,12 +534,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
544
534
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
545
535
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
546
536
|
];
|
|
547
|
-
sharedState:
|
|
548
|
-
query: string;
|
|
549
|
-
isOpen: boolean;
|
|
550
|
-
isAllowed: boolean;
|
|
551
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
552
|
-
};
|
|
537
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
553
538
|
actions: {
|
|
554
539
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
555
540
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -1054,12 +1039,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1054
1039
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1055
1040
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
1056
1041
|
];
|
|
1057
|
-
sharedState:
|
|
1058
|
-
query: string;
|
|
1059
|
-
isOpen: boolean;
|
|
1060
|
-
isAllowed: boolean;
|
|
1061
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
1062
|
-
};
|
|
1042
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1063
1043
|
actions: {
|
|
1064
1044
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1065
1045
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -1108,12 +1088,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1108
1088
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1109
1089
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
1110
1090
|
];
|
|
1111
|
-
sharedState:
|
|
1112
|
-
query: string;
|
|
1113
|
-
isOpen: boolean;
|
|
1114
|
-
isAllowed: boolean;
|
|
1115
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
1116
|
-
};
|
|
1091
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1117
1092
|
actions: {
|
|
1118
1093
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1119
1094
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -1163,12 +1138,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
1163
1138
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1164
1139
|
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
1165
1140
|
];
|
|
1166
|
-
sharedState:
|
|
1167
|
-
query: string;
|
|
1168
|
-
isOpen: boolean;
|
|
1169
|
-
isAllowed: boolean;
|
|
1170
|
-
currentHandler?: import("@atlaskit/editor-plugin-type-ahead").TypeAheadHandler | undefined;
|
|
1171
|
-
};
|
|
1141
|
+
sharedState: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginSharedState;
|
|
1172
1142
|
actions: {
|
|
1173
1143
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
1174
1144
|
isAllowed: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -3,7 +3,8 @@ import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
|
3
3
|
export declare const TableControlsPadding = 20;
|
|
4
4
|
type MainToolbarProps = {
|
|
5
5
|
useStickyToolbar?: UseStickyToolbarType;
|
|
6
|
+
twoLineEditorToolbar?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare const MainToolbar: React.FC<MainToolbarProps>;
|
|
8
|
-
export declare const mainToolbarCustomComponentsSlotStyle: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const mainToolbarCustomComponentsSlotStyle: (isTwoLineEditorToolbar?: boolean) => import("@emotion/react").SerializedStyles;
|
|
9
10
|
export {};
|