@atlaskit/editor-core 193.24.20 → 193.25.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 +23 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +4 -6
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -4
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +4 -6
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +30 -0
- package/dist/types/presets/default.d.ts +30 -0
- package/dist/types/presets/universal.d.ts +30 -0
- package/dist/types/presets/useUniversalPreset.d.ts +30 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +30 -0
- package/dist/types-ts4.5/presets/default.d.ts +30 -0
- package/dist/types-ts4.5/presets/universal.d.ts +30 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +30 -0
- package/package.json +17 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.25.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#109694](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109694)
|
|
8
|
+
[`7c6d607dd808c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7c6d607dd808c) -
|
|
9
|
+
Fix HOT-109709 fix null ref in comment editor
|
|
10
|
+
|
|
11
|
+
## 193.25.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#108459](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108459)
|
|
16
|
+
[`dff16b735e876`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dff16b735e876) -
|
|
17
|
+
[ED-23613] Avoid blending background color when inline comments overlap with highlights
|
|
18
|
+
- [#108623](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108623)
|
|
19
|
+
[`c01339668ebde`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c01339668ebde) -
|
|
20
|
+
[ux] ED-23617 Add support in editor for comments on status, emoji, date and mention nodes
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 193.24.20
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -299,7 +299,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
299
299
|
innerRef = props.innerRef;
|
|
300
300
|
var maxContentSizeReached = Boolean(maxContentSizeState === null || maxContentSizeState === void 0 ? void 0 : maxContentSizeState.maxContentSizeReached);
|
|
301
301
|
var showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
302
|
-
var containerElement = null;
|
|
302
|
+
var containerElement = _react.default.useRef(null);
|
|
303
303
|
|
|
304
304
|
// Wrapper container for toolbar and content area
|
|
305
305
|
var wrapperElementRef = (0, _react.useMemo)(function () {
|
|
@@ -376,7 +376,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
376
376
|
popupsScrollableElement: popupsScrollableElement,
|
|
377
377
|
disabled: !!disabled,
|
|
378
378
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
379
|
-
containerElement: containerElement,
|
|
379
|
+
containerElement: containerElement.current,
|
|
380
380
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
381
381
|
}), (0, _react2.jsx)("div", {
|
|
382
382
|
css: (0, _Toolbar2.mainToolbarCustomComponentsSlotStyle)(isTwoLineToolbarEnabled)
|
|
@@ -386,9 +386,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
386
386
|
}, (0, _react2.jsx)(_ui.WidthConsumer, null, function (_ref5) {
|
|
387
387
|
var width = _ref5.width;
|
|
388
388
|
return (0, _react2.jsx)(ContentArea, {
|
|
389
|
-
ref:
|
|
390
|
-
return containerElement = _ref6;
|
|
391
|
-
},
|
|
389
|
+
ref: containerElement,
|
|
392
390
|
css: maxHeight ? (0, _react2.css)({
|
|
393
391
|
maxHeight: "".concat(maxHeight, "px")
|
|
394
392
|
}) : null
|
|
@@ -409,7 +407,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
409
407
|
popupsMountPoint: popupsMountPoint,
|
|
410
408
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
411
409
|
popupsScrollableElement: popupsScrollableElement,
|
|
412
|
-
containerElement: containerElement,
|
|
410
|
+
containerElement: containerElement.current,
|
|
413
411
|
disabled: !!disabled,
|
|
414
412
|
wrapperElement: wrapperElementRef.current,
|
|
415
413
|
pluginHooks: pluginHooks
|
|
@@ -70,7 +70,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)({
|
|
|
70
70
|
var contentStyles = function contentStyles(props) {
|
|
71
71
|
return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\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.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\tpointer-events: none;\n\t\topacity: 0.7;\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.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\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.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/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), (0, _editorSharedStyles.editorFontSize)({
|
|
72
72
|
theme: props.theme
|
|
73
|
-
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles,
|
|
73
|
+
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles5.placeholderTextStyles, placeholderStyles, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, _styles.backgroundColorStyles, listsStyles, ruleStyles(), _media.mediaStyles, (0, _layout.layoutStyles)(props.viewMode), _collab.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _panel.panelStyles)(), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, (0, _aiPanels.aiPanelStyles)(props.colorMode), _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
74
74
|
};
|
|
75
75
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
76
76
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -276,7 +276,7 @@ const EditorNext = props => {
|
|
|
276
276
|
} = props;
|
|
277
277
|
const maxContentSizeReached = Boolean(maxContentSizeState === null || maxContentSizeState === void 0 ? void 0 : maxContentSizeState.maxContentSizeReached);
|
|
278
278
|
const showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
279
|
-
|
|
279
|
+
const containerElement = React.useRef(null);
|
|
280
280
|
|
|
281
281
|
// Wrapper container for toolbar and content area
|
|
282
282
|
const wrapperElementRef = useMemo(() => innerRef || /*#__PURE__*/React.createRef(), [innerRef]);
|
|
@@ -346,7 +346,7 @@ const EditorNext = props => {
|
|
|
346
346
|
popupsScrollableElement: popupsScrollableElement,
|
|
347
347
|
disabled: !!disabled,
|
|
348
348
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
349
|
-
containerElement: containerElement,
|
|
349
|
+
containerElement: containerElement.current,
|
|
350
350
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
351
351
|
}), jsx("div", {
|
|
352
352
|
css: mainToolbarCustomComponentsSlotStyle(isTwoLineToolbarEnabled)
|
|
@@ -357,7 +357,7 @@ const EditorNext = props => {
|
|
|
357
357
|
width
|
|
358
358
|
}) => {
|
|
359
359
|
return jsx(ContentArea, {
|
|
360
|
-
ref:
|
|
360
|
+
ref: containerElement,
|
|
361
361
|
css: maxHeight ? css({
|
|
362
362
|
maxHeight: `${maxHeight}px`
|
|
363
363
|
}) : null
|
|
@@ -378,7 +378,7 @@ const EditorNext = props => {
|
|
|
378
378
|
popupsMountPoint: popupsMountPoint,
|
|
379
379
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
380
380
|
popupsScrollableElement: popupsScrollableElement,
|
|
381
|
-
containerElement: containerElement,
|
|
381
|
+
containerElement: containerElement.current,
|
|
382
382
|
disabled: !!disabled,
|
|
383
383
|
wrapperElement: wrapperElementRef.current,
|
|
384
384
|
pluginHooks: pluginHooks
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.
|
|
2
|
+
export const version = "193.25.3";
|
|
@@ -290,7 +290,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
290
290
|
innerRef = props.innerRef;
|
|
291
291
|
var maxContentSizeReached = Boolean(maxContentSizeState === null || maxContentSizeState === void 0 ? void 0 : maxContentSizeState.maxContentSizeReached);
|
|
292
292
|
var showSecondaryToolbar = !!onSave || !!onCancel || !!customSecondaryToolbarComponents;
|
|
293
|
-
var containerElement = null;
|
|
293
|
+
var containerElement = React.useRef(null);
|
|
294
294
|
|
|
295
295
|
// Wrapper container for toolbar and content area
|
|
296
296
|
var wrapperElementRef = useMemo(function () {
|
|
@@ -367,7 +367,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
367
367
|
popupsScrollableElement: popupsScrollableElement,
|
|
368
368
|
disabled: !!disabled,
|
|
369
369
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
370
|
-
containerElement: containerElement,
|
|
370
|
+
containerElement: containerElement.current,
|
|
371
371
|
twoLineEditorToolbar: isTwoLineToolbarEnabled
|
|
372
372
|
}), jsx("div", {
|
|
373
373
|
css: mainToolbarCustomComponentsSlotStyle(isTwoLineToolbarEnabled)
|
|
@@ -377,9 +377,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
377
377
|
}, jsx(WidthConsumer, null, function (_ref5) {
|
|
378
378
|
var width = _ref5.width;
|
|
379
379
|
return jsx(ContentArea, {
|
|
380
|
-
ref:
|
|
381
|
-
return containerElement = _ref6;
|
|
382
|
-
},
|
|
380
|
+
ref: containerElement,
|
|
383
381
|
css: maxHeight ? css({
|
|
384
382
|
maxHeight: "".concat(maxHeight, "px")
|
|
385
383
|
}) : null
|
|
@@ -400,7 +398,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
400
398
|
popupsMountPoint: popupsMountPoint,
|
|
401
399
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
402
400
|
popupsScrollableElement: popupsScrollableElement,
|
|
403
|
-
containerElement: containerElement,
|
|
401
|
+
containerElement: containerElement.current,
|
|
404
402
|
disabled: !!disabled,
|
|
405
403
|
wrapperElement: wrapperElementRef.current,
|
|
406
404
|
pluginHooks: pluginHooks
|
|
@@ -61,7 +61,7 @@ export var placeholderStyles = css({
|
|
|
61
61
|
var contentStyles = function contentStyles(props) {
|
|
62
62
|
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\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.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\tpointer-events: none;\n\t\topacity: 0.7;\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.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t", "\n\t", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n\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.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/* Link icon in the Atlaskit package\n is bigger than the others\n */\n\t.hyperlink-open-link {\n\t\tsvg {\n\t\t\tmax-width: 18px;\n\t\t}\n\t\t&[href] {\n\t\t\tpadding: 0 4px;\n\t\t}\n\t}\n"])), editorFontSize({
|
|
63
63
|
theme: props.theme
|
|
64
|
-
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles
|
|
64
|
+
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles, listsStyles, ruleStyles(), mediaStyles, layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(), mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, annotationSharedStyles(), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
65
65
|
};
|
|
66
66
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
67
67
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.
|
|
2
|
+
export var version = "193.25.3";
|
|
@@ -266,12 +266,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
266
266
|
isMenuOpen: boolean;
|
|
267
267
|
activeNode: {
|
|
268
268
|
pos: number;
|
|
269
|
+
anchorName: string;
|
|
269
270
|
} | null;
|
|
270
271
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
271
272
|
isDragging: boolean;
|
|
272
273
|
} | undefined;
|
|
273
274
|
commands: {
|
|
274
275
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
276
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
277
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
275
278
|
};
|
|
276
279
|
}, undefined>>];
|
|
277
280
|
actions: {
|
|
@@ -519,12 +522,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
519
522
|
isMenuOpen: boolean;
|
|
520
523
|
activeNode: {
|
|
521
524
|
pos: number;
|
|
525
|
+
anchorName: string;
|
|
522
526
|
} | null;
|
|
523
527
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
524
528
|
isDragging: boolean;
|
|
525
529
|
} | undefined;
|
|
526
530
|
commands: {
|
|
527
531
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
532
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
533
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
528
534
|
};
|
|
529
535
|
}, undefined>>];
|
|
530
536
|
actions: {
|
|
@@ -1242,12 +1248,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1242
1248
|
isMenuOpen: boolean;
|
|
1243
1249
|
activeNode: {
|
|
1244
1250
|
pos: number;
|
|
1251
|
+
anchorName: string;
|
|
1245
1252
|
} | null;
|
|
1246
1253
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
1247
1254
|
isDragging: boolean;
|
|
1248
1255
|
} | undefined;
|
|
1249
1256
|
commands: {
|
|
1250
1257
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1258
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1259
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1251
1260
|
};
|
|
1252
1261
|
}, undefined>>];
|
|
1253
1262
|
actions: {
|
|
@@ -1767,12 +1776,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1767
1776
|
isMenuOpen: boolean;
|
|
1768
1777
|
activeNode: {
|
|
1769
1778
|
pos: number;
|
|
1779
|
+
anchorName: string;
|
|
1770
1780
|
} | null;
|
|
1771
1781
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
1772
1782
|
isDragging: boolean;
|
|
1773
1783
|
} | undefined;
|
|
1774
1784
|
commands: {
|
|
1775
1785
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1786
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1787
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1776
1788
|
};
|
|
1777
1789
|
}, undefined>>];
|
|
1778
1790
|
actions: {
|
|
@@ -2517,12 +2529,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2517
2529
|
isMenuOpen: boolean;
|
|
2518
2530
|
activeNode: {
|
|
2519
2531
|
pos: number;
|
|
2532
|
+
anchorName: string;
|
|
2520
2533
|
} | null;
|
|
2521
2534
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
2522
2535
|
isDragging: boolean;
|
|
2523
2536
|
} | undefined;
|
|
2524
2537
|
commands: {
|
|
2525
2538
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2539
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2540
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2526
2541
|
};
|
|
2527
2542
|
}, undefined>>];
|
|
2528
2543
|
actions: {
|
|
@@ -3118,12 +3133,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3118
3133
|
isMenuOpen: boolean;
|
|
3119
3134
|
activeNode: {
|
|
3120
3135
|
pos: number;
|
|
3136
|
+
anchorName: string;
|
|
3121
3137
|
} | null;
|
|
3122
3138
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3123
3139
|
isDragging: boolean;
|
|
3124
3140
|
} | undefined;
|
|
3125
3141
|
commands: {
|
|
3126
3142
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3143
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3144
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3127
3145
|
};
|
|
3128
3146
|
}, undefined>>];
|
|
3129
3147
|
actions: {
|
|
@@ -3375,12 +3393,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3375
3393
|
isMenuOpen: boolean;
|
|
3376
3394
|
activeNode: {
|
|
3377
3395
|
pos: number;
|
|
3396
|
+
anchorName: string;
|
|
3378
3397
|
} | null;
|
|
3379
3398
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3380
3399
|
isDragging: boolean;
|
|
3381
3400
|
} | undefined;
|
|
3382
3401
|
commands: {
|
|
3383
3402
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3403
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3404
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3384
3405
|
};
|
|
3385
3406
|
}, undefined>>];
|
|
3386
3407
|
actions: {
|
|
@@ -3846,12 +3867,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3846
3867
|
isMenuOpen: boolean;
|
|
3847
3868
|
activeNode: {
|
|
3848
3869
|
pos: number;
|
|
3870
|
+
anchorName: string;
|
|
3849
3871
|
} | null;
|
|
3850
3872
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3851
3873
|
isDragging: boolean;
|
|
3852
3874
|
} | undefined;
|
|
3853
3875
|
commands: {
|
|
3854
3876
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3877
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3878
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3855
3879
|
};
|
|
3856
3880
|
}, undefined>>];
|
|
3857
3881
|
actions: {
|
|
@@ -4343,12 +4367,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4343
4367
|
isMenuOpen: boolean;
|
|
4344
4368
|
activeNode: {
|
|
4345
4369
|
pos: number;
|
|
4370
|
+
anchorName: string;
|
|
4346
4371
|
} | null;
|
|
4347
4372
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
4348
4373
|
isDragging: boolean;
|
|
4349
4374
|
} | undefined;
|
|
4350
4375
|
commands: {
|
|
4351
4376
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4377
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4378
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4352
4379
|
};
|
|
4353
4380
|
}, undefined>>];
|
|
4354
4381
|
actions: {
|
|
@@ -4596,12 +4623,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4596
4623
|
isMenuOpen: boolean;
|
|
4597
4624
|
activeNode: {
|
|
4598
4625
|
pos: number;
|
|
4626
|
+
anchorName: string;
|
|
4599
4627
|
} | null;
|
|
4600
4628
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
4601
4629
|
isDragging: boolean;
|
|
4602
4630
|
} | undefined;
|
|
4603
4631
|
commands: {
|
|
4604
4632
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4633
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4634
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4605
4635
|
};
|
|
4606
4636
|
}, undefined>>];
|
|
4607
4637
|
actions: {
|
|
@@ -208,12 +208,15 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
208
208
|
isMenuOpen: boolean;
|
|
209
209
|
activeNode: {
|
|
210
210
|
pos: number;
|
|
211
|
+
anchorName: string;
|
|
211
212
|
} | null;
|
|
212
213
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
213
214
|
isDragging: boolean;
|
|
214
215
|
} | undefined;
|
|
215
216
|
commands: {
|
|
216
217
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
218
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
219
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
217
220
|
};
|
|
218
221
|
}, undefined>>];
|
|
219
222
|
actions: {
|
|
@@ -465,12 +468,15 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
465
468
|
isMenuOpen: boolean;
|
|
466
469
|
activeNode: {
|
|
467
470
|
pos: number;
|
|
471
|
+
anchorName: string;
|
|
468
472
|
} | null;
|
|
469
473
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
470
474
|
isDragging: boolean;
|
|
471
475
|
} | undefined;
|
|
472
476
|
commands: {
|
|
473
477
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
478
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
479
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
474
480
|
};
|
|
475
481
|
}, undefined>>];
|
|
476
482
|
actions: {
|
|
@@ -936,12 +942,15 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
936
942
|
isMenuOpen: boolean;
|
|
937
943
|
activeNode: {
|
|
938
944
|
pos: number;
|
|
945
|
+
anchorName: string;
|
|
939
946
|
} | null;
|
|
940
947
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
941
948
|
isDragging: boolean;
|
|
942
949
|
} | undefined;
|
|
943
950
|
commands: {
|
|
944
951
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
952
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
953
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
945
954
|
};
|
|
946
955
|
}, undefined>>];
|
|
947
956
|
actions: {
|
|
@@ -1433,12 +1442,15 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1433
1442
|
isMenuOpen: boolean;
|
|
1434
1443
|
activeNode: {
|
|
1435
1444
|
pos: number;
|
|
1445
|
+
anchorName: string;
|
|
1436
1446
|
} | null;
|
|
1437
1447
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
1438
1448
|
isDragging: boolean;
|
|
1439
1449
|
} | undefined;
|
|
1440
1450
|
commands: {
|
|
1441
1451
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1452
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1453
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1442
1454
|
};
|
|
1443
1455
|
}, undefined>>];
|
|
1444
1456
|
actions: {
|
|
@@ -1686,12 +1698,15 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1686
1698
|
isMenuOpen: boolean;
|
|
1687
1699
|
activeNode: {
|
|
1688
1700
|
pos: number;
|
|
1701
|
+
anchorName: string;
|
|
1689
1702
|
} | null;
|
|
1690
1703
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
1691
1704
|
isDragging: boolean;
|
|
1692
1705
|
} | undefined;
|
|
1693
1706
|
commands: {
|
|
1694
1707
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1708
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1709
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1695
1710
|
};
|
|
1696
1711
|
}, undefined>>];
|
|
1697
1712
|
actions: {
|
|
@@ -2089,12 +2104,15 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2089
2104
|
isMenuOpen: boolean;
|
|
2090
2105
|
activeNode: {
|
|
2091
2106
|
pos: number;
|
|
2107
|
+
anchorName: string;
|
|
2092
2108
|
} | null;
|
|
2093
2109
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
2094
2110
|
isDragging: boolean;
|
|
2095
2111
|
} | undefined;
|
|
2096
2112
|
commands: {
|
|
2097
2113
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2114
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2115
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2098
2116
|
};
|
|
2099
2117
|
}, undefined>>];
|
|
2100
2118
|
actions: {
|
|
@@ -2346,12 +2364,15 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2346
2364
|
isMenuOpen: boolean;
|
|
2347
2365
|
activeNode: {
|
|
2348
2366
|
pos: number;
|
|
2367
|
+
anchorName: string;
|
|
2349
2368
|
} | null;
|
|
2350
2369
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
2351
2370
|
isDragging: boolean;
|
|
2352
2371
|
} | undefined;
|
|
2353
2372
|
commands: {
|
|
2354
2373
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2374
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2375
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2355
2376
|
};
|
|
2356
2377
|
}, undefined>>];
|
|
2357
2378
|
actions: {
|
|
@@ -2817,12 +2838,15 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2817
2838
|
isMenuOpen: boolean;
|
|
2818
2839
|
activeNode: {
|
|
2819
2840
|
pos: number;
|
|
2841
|
+
anchorName: string;
|
|
2820
2842
|
} | null;
|
|
2821
2843
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
2822
2844
|
isDragging: boolean;
|
|
2823
2845
|
} | undefined;
|
|
2824
2846
|
commands: {
|
|
2825
2847
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2848
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2849
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2826
2850
|
};
|
|
2827
2851
|
}, undefined>>];
|
|
2828
2852
|
actions: {
|
|
@@ -3314,12 +3338,15 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3314
3338
|
isMenuOpen: boolean;
|
|
3315
3339
|
activeNode: {
|
|
3316
3340
|
pos: number;
|
|
3341
|
+
anchorName: string;
|
|
3317
3342
|
} | null;
|
|
3318
3343
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3319
3344
|
isDragging: boolean;
|
|
3320
3345
|
} | undefined;
|
|
3321
3346
|
commands: {
|
|
3322
3347
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3348
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3349
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3323
3350
|
};
|
|
3324
3351
|
}, undefined>>];
|
|
3325
3352
|
actions: {
|
|
@@ -3567,12 +3594,15 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3567
3594
|
isMenuOpen: boolean;
|
|
3568
3595
|
activeNode: {
|
|
3569
3596
|
pos: number;
|
|
3597
|
+
anchorName: string;
|
|
3570
3598
|
} | null;
|
|
3571
3599
|
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3572
3600
|
isDragging: boolean;
|
|
3573
3601
|
} | undefined;
|
|
3574
3602
|
commands: {
|
|
3575
3603
|
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3604
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3605
|
+
setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3576
3606
|
};
|
|
3577
3607
|
}, undefined>>];
|
|
3578
3608
|
actions: {
|