@atlaskit/editor-core 205.4.0 → 205.4.1
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 +10 -0
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +63 -3
- package/dist/types/presets/universal.d.ts +63 -3
- package/dist/types/presets/useUniversalPreset.d.ts +63 -3
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +66 -3
- package/dist/types-ts4.5/presets/universal.d.ts +66 -3
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +66 -3
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 205.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#142098](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142098)
|
|
8
|
+
[`e84b542ba2d44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e84b542ba2d44) -
|
|
9
|
+
[ED-27614] Put quick insert placeholder behind a separate
|
|
10
|
+
FGplatform_editor_quick_insert_placeholder
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 205.4.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -156,7 +156,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
156
156
|
var contentStyles = function contentStyles(props) {
|
|
157
157
|
return (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _editorSharedStyles.editorFontSize)({
|
|
158
158
|
theme: props.theme
|
|
159
|
-
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('
|
|
159
|
+
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('editor_request_to_edit_task') ? null : (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
160
160
|
exposure: false
|
|
161
161
|
}) && vanillaMentionsStyles, (0, _experiments.editorExperiment)('platform_editor_vanilla_dom', true, {
|
|
162
162
|
exposure: false
|
|
@@ -407,7 +407,7 @@ const contentStyles = props => css`
|
|
|
407
407
|
${placeholderTextStyles}
|
|
408
408
|
${placeholderStyles}
|
|
409
409
|
${editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null}
|
|
410
|
-
${editorExperiment('platform_editor_controls', 'variant1') && fg('
|
|
410
|
+
${editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null}
|
|
411
411
|
|
|
412
412
|
${codeBlockStyles()}
|
|
413
413
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "205.4.
|
|
2
|
+
export const version = "205.4.1";
|
|
@@ -148,7 +148,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
148
148
|
var contentStyles = function contentStyles(props) {
|
|
149
149
|
return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
|
|
150
150
|
theme: props.theme
|
|
151
|
-
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('
|
|
151
|
+
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
152
152
|
exposure: false
|
|
153
153
|
}) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
154
154
|
exposure: false
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "205.4.
|
|
2
|
+
export var version = "205.4.1";
|
|
@@ -610,11 +610,31 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
610
610
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
611
611
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
612
612
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
613
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
613
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
614
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
615
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
616
|
+
commands: {
|
|
617
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
618
|
+
moveToEnd?: boolean | undefined;
|
|
619
|
+
selectMovedNode?: boolean | undefined;
|
|
620
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
621
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
622
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
623
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
624
|
+
toggleBlockMenu: (options?: {
|
|
625
|
+
closeMenu?: boolean | undefined;
|
|
626
|
+
anchorName?: string | undefined;
|
|
627
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
628
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
629
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
630
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
631
|
+
};
|
|
632
|
+
}, undefined>>];
|
|
614
633
|
actions?: {
|
|
615
634
|
suppressToolbar?: (() => boolean) | undefined;
|
|
616
635
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
617
636
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
637
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
618
638
|
} | undefined;
|
|
619
639
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
620
640
|
commands: {
|
|
@@ -671,11 +691,31 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
671
691
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
672
692
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
673
693
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
674
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
694
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
695
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
696
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
697
|
+
commands: {
|
|
698
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
699
|
+
moveToEnd?: boolean | undefined;
|
|
700
|
+
selectMovedNode?: boolean | undefined;
|
|
701
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
702
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
703
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
704
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
705
|
+
toggleBlockMenu: (options?: {
|
|
706
|
+
closeMenu?: boolean | undefined;
|
|
707
|
+
anchorName?: string | undefined;
|
|
708
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
709
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
710
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
711
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
712
|
+
};
|
|
713
|
+
}, undefined>>];
|
|
675
714
|
actions?: {
|
|
676
715
|
suppressToolbar?: (() => boolean) | undefined;
|
|
677
716
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
678
717
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
718
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
679
719
|
} | undefined;
|
|
680
720
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
681
721
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
@@ -734,11 +774,31 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
734
774
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
735
775
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
736
776
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
737
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
777
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
778
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
779
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
780
|
+
commands: {
|
|
781
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
782
|
+
moveToEnd?: boolean | undefined;
|
|
783
|
+
selectMovedNode?: boolean | undefined;
|
|
784
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
785
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
786
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
787
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
788
|
+
toggleBlockMenu: (options?: {
|
|
789
|
+
closeMenu?: boolean | undefined;
|
|
790
|
+
anchorName?: string | undefined;
|
|
791
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
792
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
793
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
794
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
795
|
+
};
|
|
796
|
+
}, undefined>>];
|
|
738
797
|
actions?: {
|
|
739
798
|
suppressToolbar?: (() => boolean) | undefined;
|
|
740
799
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
741
800
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
801
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
742
802
|
} | undefined;
|
|
743
803
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
744
804
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -662,11 +662,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
662
662
|
sharedState: FeatureFlags;
|
|
663
663
|
}, FeatureFlags>>];
|
|
664
664
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
665
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
665
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
666
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
667
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
668
|
+
commands: {
|
|
669
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
670
|
+
moveToEnd?: boolean | undefined;
|
|
671
|
+
selectMovedNode?: boolean | undefined;
|
|
672
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
673
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
674
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
675
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
676
|
+
toggleBlockMenu: (options?: {
|
|
677
|
+
closeMenu?: boolean | undefined;
|
|
678
|
+
anchorName?: string | undefined;
|
|
679
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
680
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
681
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
682
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
683
|
+
};
|
|
684
|
+
}, undefined>>];
|
|
666
685
|
actions?: {
|
|
667
686
|
suppressToolbar?: (() => boolean) | undefined;
|
|
668
687
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
669
688
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
689
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
670
690
|
} | undefined;
|
|
671
691
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
672
692
|
commands: {
|
|
@@ -723,11 +743,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
723
743
|
sharedState: FeatureFlags;
|
|
724
744
|
}, FeatureFlags>>];
|
|
725
745
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
726
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
746
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
747
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
748
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
749
|
+
commands: {
|
|
750
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
751
|
+
moveToEnd?: boolean | undefined;
|
|
752
|
+
selectMovedNode?: boolean | undefined;
|
|
753
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
754
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
755
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
756
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
757
|
+
toggleBlockMenu: (options?: {
|
|
758
|
+
closeMenu?: boolean | undefined;
|
|
759
|
+
anchorName?: string | undefined;
|
|
760
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
761
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
762
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
763
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
764
|
+
};
|
|
765
|
+
}, undefined>>];
|
|
727
766
|
actions?: {
|
|
728
767
|
suppressToolbar?: (() => boolean) | undefined;
|
|
729
768
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
730
769
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
770
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
731
771
|
} | undefined;
|
|
732
772
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
733
773
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
@@ -786,11 +826,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
786
826
|
sharedState: FeatureFlags;
|
|
787
827
|
}, FeatureFlags>>];
|
|
788
828
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
789
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
829
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
830
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
831
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
832
|
+
commands: {
|
|
833
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
834
|
+
moveToEnd?: boolean | undefined;
|
|
835
|
+
selectMovedNode?: boolean | undefined;
|
|
836
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
837
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
838
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
839
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
840
|
+
toggleBlockMenu: (options?: {
|
|
841
|
+
closeMenu?: boolean | undefined;
|
|
842
|
+
anchorName?: string | undefined;
|
|
843
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
844
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
845
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
846
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
847
|
+
};
|
|
848
|
+
}, undefined>>];
|
|
790
849
|
actions?: {
|
|
791
850
|
suppressToolbar?: (() => boolean) | undefined;
|
|
792
851
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
793
852
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
853
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
794
854
|
} | undefined;
|
|
795
855
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
796
856
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -610,11 +610,31 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
610
610
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
611
611
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
612
612
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
613
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
613
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
614
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
615
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
616
|
+
commands: {
|
|
617
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
618
|
+
moveToEnd?: boolean | undefined;
|
|
619
|
+
selectMovedNode?: boolean | undefined;
|
|
620
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
621
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
622
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
623
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
624
|
+
toggleBlockMenu: (options?: {
|
|
625
|
+
closeMenu?: boolean | undefined;
|
|
626
|
+
anchorName?: string | undefined;
|
|
627
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
628
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
629
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
630
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
631
|
+
};
|
|
632
|
+
}, undefined>>];
|
|
614
633
|
actions?: {
|
|
615
634
|
suppressToolbar?: (() => boolean) | undefined;
|
|
616
635
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
617
636
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
637
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
618
638
|
} | undefined;
|
|
619
639
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
620
640
|
commands: {
|
|
@@ -671,11 +691,31 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
671
691
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
672
692
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
673
693
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
674
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
694
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
695
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
696
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
697
|
+
commands: {
|
|
698
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
699
|
+
moveToEnd?: boolean | undefined;
|
|
700
|
+
selectMovedNode?: boolean | undefined;
|
|
701
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
702
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
703
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
704
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
705
|
+
toggleBlockMenu: (options?: {
|
|
706
|
+
closeMenu?: boolean | undefined;
|
|
707
|
+
anchorName?: string | undefined;
|
|
708
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
709
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
710
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
711
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
712
|
+
};
|
|
713
|
+
}, undefined>>];
|
|
675
714
|
actions?: {
|
|
676
715
|
suppressToolbar?: (() => boolean) | undefined;
|
|
677
716
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
678
717
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
718
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
679
719
|
} | undefined;
|
|
680
720
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
681
721
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
@@ -734,11 +774,31 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
734
774
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
735
775
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
736
776
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
737
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
777
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
778
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
779
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
780
|
+
commands: {
|
|
781
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
782
|
+
moveToEnd?: boolean | undefined;
|
|
783
|
+
selectMovedNode?: boolean | undefined;
|
|
784
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
785
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
786
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
787
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
788
|
+
toggleBlockMenu: (options?: {
|
|
789
|
+
closeMenu?: boolean | undefined;
|
|
790
|
+
anchorName?: string | undefined;
|
|
791
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
792
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
793
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
794
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
795
|
+
};
|
|
796
|
+
}, undefined>>];
|
|
738
797
|
actions?: {
|
|
739
798
|
suppressToolbar?: (() => boolean) | undefined;
|
|
740
799
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
741
800
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
801
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
742
802
|
} | undefined;
|
|
743
803
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
744
804
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -806,12 +806,33 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
806
806
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
807
807
|
];
|
|
808
808
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
809
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
809
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
810
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
811
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
812
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
813
|
+
commands: {
|
|
814
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
815
|
+
moveToEnd?: boolean | undefined;
|
|
816
|
+
selectMovedNode?: boolean | undefined;
|
|
817
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
818
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
819
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
820
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
821
|
+
toggleBlockMenu: (options?: {
|
|
822
|
+
closeMenu?: boolean | undefined;
|
|
823
|
+
anchorName?: string | undefined;
|
|
824
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
825
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
826
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
827
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
828
|
+
};
|
|
829
|
+
}, undefined>>
|
|
810
830
|
];
|
|
811
831
|
actions?: {
|
|
812
832
|
suppressToolbar?: (() => boolean) | undefined;
|
|
813
833
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
814
834
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
835
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
815
836
|
} | undefined;
|
|
816
837
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
|
|
817
838
|
];
|
|
@@ -877,12 +898,33 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
877
898
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
878
899
|
];
|
|
879
900
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
880
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
901
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
902
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
903
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
904
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
905
|
+
commands: {
|
|
906
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
907
|
+
moveToEnd?: boolean | undefined;
|
|
908
|
+
selectMovedNode?: boolean | undefined;
|
|
909
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
910
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
911
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
912
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
913
|
+
toggleBlockMenu: (options?: {
|
|
914
|
+
closeMenu?: boolean | undefined;
|
|
915
|
+
anchorName?: string | undefined;
|
|
916
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
917
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
918
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
919
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
920
|
+
};
|
|
921
|
+
}, undefined>>
|
|
881
922
|
];
|
|
882
923
|
actions?: {
|
|
883
924
|
suppressToolbar?: (() => boolean) | undefined;
|
|
884
925
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
885
926
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
927
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
886
928
|
} | undefined;
|
|
887
929
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>,
|
|
888
930
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
@@ -954,12 +996,33 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
954
996
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
955
997
|
];
|
|
956
998
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
957
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
999
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
1000
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
1001
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
1002
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
1003
|
+
commands: {
|
|
1004
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
1005
|
+
moveToEnd?: boolean | undefined;
|
|
1006
|
+
selectMovedNode?: boolean | undefined;
|
|
1007
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
1008
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1009
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
1010
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1011
|
+
toggleBlockMenu: (options?: {
|
|
1012
|
+
closeMenu?: boolean | undefined;
|
|
1013
|
+
anchorName?: string | undefined;
|
|
1014
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1015
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1016
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1017
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1018
|
+
};
|
|
1019
|
+
}, undefined>>
|
|
958
1020
|
];
|
|
959
1021
|
actions?: {
|
|
960
1022
|
suppressToolbar?: (() => boolean) | undefined;
|
|
961
1023
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
962
1024
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1025
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
963
1026
|
} | undefined;
|
|
964
1027
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
|
|
965
1028
|
];
|
|
@@ -858,12 +858,33 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
858
858
|
}, FeatureFlags>>
|
|
859
859
|
];
|
|
860
860
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
861
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
861
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
862
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
863
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
864
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
865
|
+
commands: {
|
|
866
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
867
|
+
moveToEnd?: boolean | undefined;
|
|
868
|
+
selectMovedNode?: boolean | undefined;
|
|
869
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
870
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
871
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
872
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
873
|
+
toggleBlockMenu: (options?: {
|
|
874
|
+
closeMenu?: boolean | undefined;
|
|
875
|
+
anchorName?: string | undefined;
|
|
876
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
877
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
878
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
879
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
880
|
+
};
|
|
881
|
+
}, undefined>>
|
|
862
882
|
];
|
|
863
883
|
actions?: {
|
|
864
884
|
suppressToolbar?: (() => boolean) | undefined;
|
|
865
885
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
866
886
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
887
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
867
888
|
} | undefined;
|
|
868
889
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
|
|
869
890
|
];
|
|
@@ -929,12 +950,33 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
929
950
|
}, FeatureFlags>>
|
|
930
951
|
];
|
|
931
952
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
932
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
953
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
954
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
955
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
956
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
957
|
+
commands: {
|
|
958
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
959
|
+
moveToEnd?: boolean | undefined;
|
|
960
|
+
selectMovedNode?: boolean | undefined;
|
|
961
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
962
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
963
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
964
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
965
|
+
toggleBlockMenu: (options?: {
|
|
966
|
+
closeMenu?: boolean | undefined;
|
|
967
|
+
anchorName?: string | undefined;
|
|
968
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
969
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
970
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
971
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
972
|
+
};
|
|
973
|
+
}, undefined>>
|
|
933
974
|
];
|
|
934
975
|
actions?: {
|
|
935
976
|
suppressToolbar?: (() => boolean) | undefined;
|
|
936
977
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
937
978
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
979
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
938
980
|
} | undefined;
|
|
939
981
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>,
|
|
940
982
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
@@ -1006,12 +1048,33 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1006
1048
|
}, FeatureFlags>>
|
|
1007
1049
|
];
|
|
1008
1050
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1009
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
1051
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
1052
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
1053
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
1054
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
1055
|
+
commands: {
|
|
1056
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
1057
|
+
moveToEnd?: boolean | undefined;
|
|
1058
|
+
selectMovedNode?: boolean | undefined;
|
|
1059
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
1060
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1061
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
1062
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1063
|
+
toggleBlockMenu: (options?: {
|
|
1064
|
+
closeMenu?: boolean | undefined;
|
|
1065
|
+
anchorName?: string | undefined;
|
|
1066
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1067
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1068
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1069
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1070
|
+
};
|
|
1071
|
+
}, undefined>>
|
|
1010
1072
|
];
|
|
1011
1073
|
actions?: {
|
|
1012
1074
|
suppressToolbar?: (() => boolean) | undefined;
|
|
1013
1075
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
1014
1076
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1077
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
1015
1078
|
} | undefined;
|
|
1016
1079
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
|
|
1017
1080
|
];
|
|
@@ -806,12 +806,33 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
806
806
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
807
807
|
];
|
|
808
808
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
809
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
809
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
810
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
811
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
812
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
813
|
+
commands: {
|
|
814
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
815
|
+
moveToEnd?: boolean | undefined;
|
|
816
|
+
selectMovedNode?: boolean | undefined;
|
|
817
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
818
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
819
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
820
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
821
|
+
toggleBlockMenu: (options?: {
|
|
822
|
+
closeMenu?: boolean | undefined;
|
|
823
|
+
anchorName?: string | undefined;
|
|
824
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
825
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
826
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
827
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
828
|
+
};
|
|
829
|
+
}, undefined>>
|
|
810
830
|
];
|
|
811
831
|
actions?: {
|
|
812
832
|
suppressToolbar?: (() => boolean) | undefined;
|
|
813
833
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
814
834
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
835
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
815
836
|
} | undefined;
|
|
816
837
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
|
|
817
838
|
];
|
|
@@ -877,12 +898,33 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
877
898
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
878
899
|
];
|
|
879
900
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
880
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
901
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
902
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
903
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
904
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
905
|
+
commands: {
|
|
906
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
907
|
+
moveToEnd?: boolean | undefined;
|
|
908
|
+
selectMovedNode?: boolean | undefined;
|
|
909
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
910
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
911
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
912
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
913
|
+
toggleBlockMenu: (options?: {
|
|
914
|
+
closeMenu?: boolean | undefined;
|
|
915
|
+
anchorName?: string | undefined;
|
|
916
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
917
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
918
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
919
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
920
|
+
};
|
|
921
|
+
}, undefined>>
|
|
881
922
|
];
|
|
882
923
|
actions?: {
|
|
883
924
|
suppressToolbar?: (() => boolean) | undefined;
|
|
884
925
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
885
926
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
927
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
886
928
|
} | undefined;
|
|
887
929
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>,
|
|
888
930
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
@@ -954,12 +996,33 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
954
996
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
955
997
|
];
|
|
956
998
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
957
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
999
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>,
|
|
1000
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
1001
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
1002
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
1003
|
+
commands: {
|
|
1004
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
1005
|
+
moveToEnd?: boolean | undefined;
|
|
1006
|
+
selectMovedNode?: boolean | undefined;
|
|
1007
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
1008
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1009
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
1010
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1011
|
+
toggleBlockMenu: (options?: {
|
|
1012
|
+
closeMenu?: boolean | undefined;
|
|
1013
|
+
anchorName?: string | undefined;
|
|
1014
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1015
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1016
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1017
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1018
|
+
};
|
|
1019
|
+
}, undefined>>
|
|
958
1020
|
];
|
|
959
1021
|
actions?: {
|
|
960
1022
|
suppressToolbar?: (() => boolean) | undefined;
|
|
961
1023
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
962
1024
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
1025
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
963
1026
|
} | undefined;
|
|
964
1027
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>
|
|
965
1028
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "205.4.
|
|
3
|
+
"version": "205.4.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^23.0.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^103.
|
|
49
|
+
"@atlaskit/editor-common": "^103.8.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.3.0",
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
56
56
|
"@atlaskit/emoji": "^69.0.0",
|
|
57
57
|
"@atlaskit/icon": "^25.6.0",
|
|
58
|
-
"@atlaskit/media-card": "^79.
|
|
58
|
+
"@atlaskit/media-card": "^79.1.0",
|
|
59
59
|
"@atlaskit/mention": "^24.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|
|
62
62
|
"@atlaskit/react-ufo": "^3.5.0",
|
|
63
63
|
"@atlaskit/task-decision": "^19.1.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
65
|
-
"@atlaskit/tokens": "^4.
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^4.10.0",
|
|
65
|
+
"@atlaskit/tokens": "^4.8.0",
|
|
66
66
|
"@atlaskit/tooltip": "^20.0.0",
|
|
67
67
|
"@atlaskit/width-detector": "^5.0.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
103
103
|
"@atlaskit/primitives": "^14.4.0",
|
|
104
104
|
"@atlaskit/renderer": "^114.9.0",
|
|
105
|
-
"@atlaskit/smart-card": "^36.
|
|
105
|
+
"@atlaskit/smart-card": "^36.8.0",
|
|
106
106
|
"@atlaskit/synchrony-test-helpers": "^3.1.0",
|
|
107
107
|
"@atlaskit/toggle": "^15.0.0",
|
|
108
108
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
@@ -200,6 +200,10 @@
|
|
|
200
200
|
"platform_editor_prevent_toolbar_width_reflow": {
|
|
201
201
|
"type": "boolean"
|
|
202
202
|
},
|
|
203
|
+
"platform_editor_disable_unnecessary_expand_renders": {
|
|
204
|
+
"type": "boolean",
|
|
205
|
+
"referenceOnly": "true"
|
|
206
|
+
},
|
|
203
207
|
"platform-editor-single-player-expand": {
|
|
204
208
|
"type": "boolean",
|
|
205
209
|
"referenceOnly": "true"
|
|
@@ -568,9 +572,8 @@
|
|
|
568
572
|
"type": "boolean",
|
|
569
573
|
"referenceOnly": true
|
|
570
574
|
},
|
|
571
|
-
"
|
|
572
|
-
"type": "boolean"
|
|
573
|
-
"referenceOnly": true
|
|
575
|
+
"platform_editor_quick_insert_placeholder": {
|
|
576
|
+
"type": "boolean"
|
|
574
577
|
},
|
|
575
578
|
"platform_editor_numbered_column_misalignment": {
|
|
576
579
|
"type": "boolean",
|