@atlaskit/editor-core 193.12.2 → 193.12.8
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 +17398 -11011
- package/dist/cjs/presets/universal.js +1 -6
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +1 -6
- package/dist/es2019/ui/ContentStyles/index.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +1 -6
- package/dist/esm/ui/ContentStyles/index.js +3 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +6 -4
- package/dist/types/presets/universal.d.ts +6 -4
- package/dist/types/presets/useUniversalPreset.d.ts +6 -4
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +7 -4
- package/dist/types-ts4.5/presets/universal.d.ts +7 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +7 -4
- package/package.json +12 -24
|
@@ -200,12 +200,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
200
200
|
}]).maybeAdd([_findReplace.findReplacePlugin, {
|
|
201
201
|
takeFullWidth: !props.hideAvatarGroup && !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
|
|
202
202
|
twoLineEditorToolbar: !!props.primaryToolbarComponents && !!featureFlags.twoLineEditorToolbar
|
|
203
|
-
}], Boolean(props.allowFindReplace)).maybeAdd(_border.borderPlugin, Boolean(props.allowBorderMark || props.UNSAFE_allowBorderMark)).maybeAdd(_fragment.fragmentPlugin, Boolean(props.allowFragmentMark)).
|
|
204
|
-
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.paste-options-toolbar')) {
|
|
205
|
-
return true;
|
|
206
|
-
}
|
|
207
|
-
return false;
|
|
208
|
-
}).add([_codeBidiWarning.codeBidiWarningPlugin, {
|
|
203
|
+
}], Boolean(props.allowFindReplace)).maybeAdd(_border.borderPlugin, Boolean(props.allowBorderMark || props.UNSAFE_allowBorderMark)).maybeAdd(_fragment.fragmentPlugin, Boolean(props.allowFragmentMark)).add(_pasteOptionsToolbar.pasteOptionsToolbarPlugin).add([_codeBidiWarning.codeBidiWarningPlugin, {
|
|
209
204
|
appearance: appearance
|
|
210
205
|
}]);
|
|
211
206
|
return finalPreset;
|
|
@@ -66,9 +66,9 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
var contentStyles = function contentStyles(props) {
|
|
69
|
-
return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\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 box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n .pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n clear: both;\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
|
|
69
|
+
return (0, _react2.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\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 box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n .pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n clear: both;\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
|
|
70
70
|
theme: props.theme
|
|
71
|
-
}), _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, listsStyles, ruleStyles(), _media.mediaStyles, _layout.layoutStyles, _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);
|
|
71
|
+
}), _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, _layout.layoutStyles, _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);
|
|
72
72
|
};
|
|
73
73
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
74
74
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -195,12 +195,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
195
195
|
}]).maybeAdd([findReplacePlugin, {
|
|
196
196
|
takeFullWidth: !props.hideAvatarGroup && !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
|
|
197
197
|
twoLineEditorToolbar: !!props.primaryToolbarComponents && !!featureFlags.twoLineEditorToolbar
|
|
198
|
-
}], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark || props.UNSAFE_allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).
|
|
199
|
-
if (getBooleanFF('platform.editor.paste-options-toolbar')) {
|
|
200
|
-
return true;
|
|
201
|
-
}
|
|
202
|
-
return false;
|
|
203
|
-
}).add([codeBidiWarningPlugin, {
|
|
198
|
+
}], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark || props.UNSAFE_allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).add(pasteOptionsToolbarPlugin).add([codeBidiWarningPlugin, {
|
|
204
199
|
appearance
|
|
205
200
|
}]);
|
|
206
201
|
return finalPreset;
|
|
@@ -8,7 +8,7 @@ import { telepointerStyle } from '@atlaskit/editor-common/collab';
|
|
|
8
8
|
import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
|
|
9
9
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
10
10
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
11
|
-
import { annotationSharedStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
11
|
+
import { annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
12
12
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
13
13
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
14
14
|
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
@@ -182,6 +182,7 @@ const contentStyles = props => css`
|
|
|
182
182
|
${blocktypeStyles()}
|
|
183
183
|
${codeMarkSharedStyles()}
|
|
184
184
|
${textColorStyles}
|
|
185
|
+
${backgroundColorStyles}
|
|
185
186
|
${listsStyles}
|
|
186
187
|
${ruleStyles()}
|
|
187
188
|
${mediaStyles}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.12.
|
|
2
|
+
export const version = "193.12.8";
|
|
@@ -192,12 +192,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
192
192
|
}]).maybeAdd([findReplacePlugin, {
|
|
193
193
|
takeFullWidth: !props.hideAvatarGroup && !!featureFlags.showAvatarGroupAsPlugin === false && !hasBeforePrimaryToolbar(props.primaryToolbarComponents),
|
|
194
194
|
twoLineEditorToolbar: !!props.primaryToolbarComponents && !!featureFlags.twoLineEditorToolbar
|
|
195
|
-
}], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark || props.UNSAFE_allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).
|
|
196
|
-
if (getBooleanFF('platform.editor.paste-options-toolbar')) {
|
|
197
|
-
return true;
|
|
198
|
-
}
|
|
199
|
-
return false;
|
|
200
|
-
}).add([codeBidiWarningPlugin, {
|
|
195
|
+
}], Boolean(props.allowFindReplace)).maybeAdd(borderPlugin, Boolean(props.allowBorderMark || props.UNSAFE_allowBorderMark)).maybeAdd(fragmentPlugin, Boolean(props.allowFragmentMark)).add(pasteOptionsToolbarPlugin).add([codeBidiWarningPlugin, {
|
|
201
196
|
appearance: appearance
|
|
202
197
|
}]);
|
|
203
198
|
return finalPreset;
|
|
@@ -10,7 +10,7 @@ import { telepointerStyle } from '@atlaskit/editor-common/collab';
|
|
|
10
10
|
import { EmojiSharedCssClassName } from '@atlaskit/editor-common/emoji';
|
|
11
11
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
12
12
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
13
|
-
import { annotationSharedStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
13
|
+
import { annotationSharedStyles, backgroundColorStyles, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, embedCardStyles, gridStyles, indentationSharedStyles, linkSharedStyle, listsSharedStyles, MediaSharedClassNames, paragraphSharedStyles, resizerStyles, ruleSharedStyles, shadowSharedStyle, SmartCardSharedCssClassName, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
14
14
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
15
15
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
16
16
|
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
@@ -57,9 +57,9 @@ export var placeholderStyles = css({
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
var contentStyles = function contentStyles(props) {
|
|
60
|
-
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\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 box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n .pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n clear: both;\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), editorFontSize({
|
|
60
|
+
return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\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 box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n .pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n clear: both;\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), editorFontSize({
|
|
61
61
|
theme: props.theme
|
|
62
|
-
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, listsStyles, ruleStyles(), mediaStyles, layoutStyles, 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);
|
|
62
|
+
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles, listsStyles, ruleStyles(), mediaStyles, layoutStyles, 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);
|
|
63
63
|
};
|
|
64
64
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
65
65
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.12.
|
|
2
|
+
export var version = "193.12.8";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorProps } from '../types';
|
|
3
|
-
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning",
|
|
3
|
+
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"border">, import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/types").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/types").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/types").MaybePluginName<"indentation">, import("@atlaskit/editor-common/types").MaybePluginName<"status">, import("@atlaskit/editor-common/types").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/types").MaybePluginName<"card">, import("@atlaskit/editor-common/types").MaybePluginName<"layout">, import("@atlaskit/editor-common/types").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/types").MaybePluginName<"date">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"extension">, import("@atlaskit/editor-common/types").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/types").MaybePluginName<"panel">, import("@atlaskit/editor-common/types").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/types").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/types").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/types").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/types").MaybePluginName<"table">, import("@atlaskit/editor-common/types").MaybePluginName<"emoji">, import("@atlaskit/editor-common/types").MaybePluginName<"mention">, import("@atlaskit/editor-common/types").MaybePluginName<"caption">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"grid">, import("@atlaskit/editor-common/types").MaybePluginName<"guideline">, import("@atlaskit/editor-common/types").MaybePluginName<"expand">, import("@atlaskit/editor-common/types").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/types").MaybePluginName<"textColor">, import("@atlaskit/editor-common/types").MaybePluginName<"alignment">, import("@atlaskit/editor-common/types").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
4
4
|
pluginConfiguration: {
|
|
5
5
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
6
6
|
} | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
9
|
-
} | undefined>, import("@atlaskit/editor-common/types").
|
|
9
|
+
} | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
|
|
10
10
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
11
11
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
12
12
|
sharedState: {
|
|
@@ -731,7 +731,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
731
731
|
lastContentPasted: import("@atlaskit/editor-plugin-paste").LastContentPasted | null;
|
|
732
732
|
};
|
|
733
733
|
}, import("@atlaskit/editor-plugin-paste").PastePluginOptions>];
|
|
734
|
-
}, undefined
|
|
734
|
+
}, undefined>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fragmentPlugin", {}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"border", {}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"findReplace", {
|
|
735
735
|
pluginConfiguration: {
|
|
736
736
|
takeFullWidth: boolean;
|
|
737
737
|
twoLineEditorToolbar: boolean;
|
|
@@ -2265,7 +2265,9 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2265
2265
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2266
2266
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2267
2267
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2268
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2268
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2269
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2270
|
+
}, undefined>>];
|
|
2269
2271
|
}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2270
2272
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2271
2273
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -17,13 +17,13 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
|
|
|
17
17
|
* @param prevAppearance The appearance of the editor in the previous render
|
|
18
18
|
* @returns a full featured preset configured according to the provided props - basis for create-plugins-list
|
|
19
19
|
*/
|
|
20
|
-
export default function createUniversalPreset(appearance: EditorAppearance | undefined, props: UniversalPresetProps, featureFlags: FeatureFlags, prevAppearance?: EditorAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning",
|
|
20
|
+
export default function createUniversalPreset(appearance: EditorAppearance | undefined, props: UniversalPresetProps, featureFlags: FeatureFlags, prevAppearance?: EditorAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"border">, import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/types").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/types").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/types").MaybePluginName<"indentation">, import("@atlaskit/editor-common/types").MaybePluginName<"status">, import("@atlaskit/editor-common/types").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/types").MaybePluginName<"card">, import("@atlaskit/editor-common/types").MaybePluginName<"layout">, import("@atlaskit/editor-common/types").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/types").MaybePluginName<"date">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"extension">, import("@atlaskit/editor-common/types").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/types").MaybePluginName<"panel">, import("@atlaskit/editor-common/types").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/types").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/types").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/types").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/types").MaybePluginName<"table">, import("@atlaskit/editor-common/types").MaybePluginName<"emoji">, import("@atlaskit/editor-common/types").MaybePluginName<"mention">, import("@atlaskit/editor-common/types").MaybePluginName<"caption">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"grid">, import("@atlaskit/editor-common/types").MaybePluginName<"guideline">, import("@atlaskit/editor-common/types").MaybePluginName<"expand">, import("@atlaskit/editor-common/types").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/types").MaybePluginName<"textColor">, import("@atlaskit/editor-common/types").MaybePluginName<"alignment">, import("@atlaskit/editor-common/types").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
21
21
|
pluginConfiguration: {
|
|
22
22
|
appearance?: EditorAppearance | undefined;
|
|
23
23
|
} | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
appearance?: EditorAppearance | undefined;
|
|
26
|
-
} | undefined>, import("@atlaskit/editor-common/types").
|
|
26
|
+
} | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
|
|
27
27
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
28
28
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
29
29
|
sharedState: {
|
|
@@ -748,7 +748,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
748
748
|
lastContentPasted: import("@atlaskit/editor-plugin-paste").LastContentPasted | null;
|
|
749
749
|
};
|
|
750
750
|
}, import("@atlaskit/editor-plugin-paste").PastePluginOptions>];
|
|
751
|
-
}, undefined
|
|
751
|
+
}, undefined>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fragmentPlugin", {}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"border", {}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"findReplace", {
|
|
752
752
|
pluginConfiguration: {
|
|
753
753
|
takeFullWidth: boolean;
|
|
754
754
|
twoLineEditorToolbar: boolean;
|
|
@@ -2282,7 +2282,9 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2282
2282
|
sharedState: FeatureFlags;
|
|
2283
2283
|
}, FeatureFlags>>];
|
|
2284
2284
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2285
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2285
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2286
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2287
|
+
}, undefined>>];
|
|
2286
2288
|
}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2287
2289
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2288
2290
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -3,13 +3,13 @@ import type { EditorProps } from '../types/editor-props';
|
|
|
3
3
|
interface PresetProps {
|
|
4
4
|
props: EditorProps;
|
|
5
5
|
}
|
|
6
|
-
export default function useUniversalPreset({ props }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning",
|
|
6
|
+
export default function useUniversalPreset({ props }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"border">, import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/types").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/types").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/types").MaybePluginName<"indentation">, import("@atlaskit/editor-common/types").MaybePluginName<"status">, import("@atlaskit/editor-common/types").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/types").MaybePluginName<"card">, import("@atlaskit/editor-common/types").MaybePluginName<"layout">, import("@atlaskit/editor-common/types").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/types").MaybePluginName<"date">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"extension">, import("@atlaskit/editor-common/types").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/types").MaybePluginName<"panel">, import("@atlaskit/editor-common/types").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/types").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/types").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/types").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/types").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/types").MaybePluginName<"table">, import("@atlaskit/editor-common/types").MaybePluginName<"emoji">, import("@atlaskit/editor-common/types").MaybePluginName<"mention">, import("@atlaskit/editor-common/types").MaybePluginName<"caption">, import("@atlaskit/editor-common/types").MaybePluginName<"media">, import("@atlaskit/editor-common/types").MaybePluginName<"annotation">, import("@atlaskit/editor-common/types").MaybePluginName<"grid">, import("@atlaskit/editor-common/types").MaybePluginName<"guideline">, import("@atlaskit/editor-common/types").MaybePluginName<"expand">, import("@atlaskit/editor-common/types").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/types").MaybePluginName<"textColor">, import("@atlaskit/editor-common/types").MaybePluginName<"alignment">, import("@atlaskit/editor-common/types").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">, "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">, import("@atlaskit/editor-common/types").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/types").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"codeBidiWarning", {
|
|
7
7
|
pluginConfiguration: {
|
|
8
8
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
9
9
|
} | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
12
|
-
} | undefined>, import("@atlaskit/editor-
|
|
12
|
+
} | undefined>, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"pasteOptionsToolbarPlugin", {
|
|
13
13
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
14
14
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
15
15
|
sharedState: {
|
|
@@ -734,7 +734,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
734
734
|
lastContentPasted: import("@atlaskit/editor-plugin-paste").LastContentPasted | null;
|
|
735
735
|
};
|
|
736
736
|
}, import("@atlaskit/editor-plugin-paste").PastePluginOptions>];
|
|
737
|
-
}, undefined
|
|
737
|
+
}, undefined>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"fragmentPlugin", {}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"border", {}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"findReplace", {
|
|
738
738
|
pluginConfiguration: {
|
|
739
739
|
takeFullWidth: boolean;
|
|
740
740
|
twoLineEditorToolbar: boolean;
|
|
@@ -2268,7 +2268,9 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2268
2268
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2269
2269
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2270
2270
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2271
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2271
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
2272
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2273
|
+
}, undefined>>];
|
|
2272
2274
|
}, undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"media", {
|
|
2273
2275
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
2274
2276
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { EditorProps } from '../types';
|
|
3
3
|
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
|
|
4
4
|
"codeBidiWarning",
|
|
5
|
-
|
|
5
|
+
"pasteOptionsToolbarPlugin",
|
|
6
6
|
import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">,
|
|
7
7
|
import("@atlaskit/editor-common/types").MaybePluginName<"border">,
|
|
8
8
|
import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">,
|
|
@@ -83,7 +83,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
83
83
|
}, {
|
|
84
84
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
85
85
|
} | undefined>,
|
|
86
|
-
import("@atlaskit/editor-common/types").
|
|
86
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
|
|
87
87
|
dependencies: [
|
|
88
88
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
89
89
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -968,7 +968,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
968
968
|
};
|
|
969
969
|
}, import("@atlaskit/editor-plugin-paste").PastePluginOptions>
|
|
970
970
|
];
|
|
971
|
-
}, undefined
|
|
971
|
+
}, undefined>,
|
|
972
972
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fragmentPlugin", {}, undefined>>,
|
|
973
973
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"border", {}, undefined>>,
|
|
974
974
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"findReplace", {
|
|
@@ -2823,7 +2823,10 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2823
2823
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2824
2824
|
];
|
|
2825
2825
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2826
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2826
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
2827
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2828
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2829
|
+
}, undefined>>
|
|
2827
2830
|
];
|
|
2828
2831
|
}, undefined>>,
|
|
2829
2832
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
@@ -19,7 +19,7 @@ type UniversalPresetProps = DefaultPresetPluginOptions & EditorSharedPropsWithPl
|
|
|
19
19
|
*/
|
|
20
20
|
export default function createUniversalPreset(appearance: EditorAppearance | undefined, props: UniversalPresetProps, featureFlags: FeatureFlags, prevAppearance?: EditorAppearance, createAnalyticsEvent?: CreateUIAnalyticsEvent): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
|
|
21
21
|
"codeBidiWarning",
|
|
22
|
-
|
|
22
|
+
"pasteOptionsToolbarPlugin",
|
|
23
23
|
import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">,
|
|
24
24
|
import("@atlaskit/editor-common/types").MaybePluginName<"border">,
|
|
25
25
|
import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">,
|
|
@@ -100,7 +100,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
100
100
|
}, {
|
|
101
101
|
appearance?: EditorAppearance | undefined;
|
|
102
102
|
} | undefined>,
|
|
103
|
-
import("@atlaskit/editor-common/types").
|
|
103
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
|
|
104
104
|
dependencies: [
|
|
105
105
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
106
106
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -985,7 +985,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
985
985
|
};
|
|
986
986
|
}, import("@atlaskit/editor-plugin-paste").PastePluginOptions>
|
|
987
987
|
];
|
|
988
|
-
}, undefined
|
|
988
|
+
}, undefined>,
|
|
989
989
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fragmentPlugin", {}, undefined>>,
|
|
990
990
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"border", {}, undefined>>,
|
|
991
991
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"findReplace", {
|
|
@@ -2840,7 +2840,10 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2840
2840
|
}, FeatureFlags>>
|
|
2841
2841
|
];
|
|
2842
2842
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2843
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2843
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
2844
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2845
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2846
|
+
}, undefined>>
|
|
2844
2847
|
];
|
|
2845
2848
|
}, undefined>>,
|
|
2846
2849
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
@@ -5,7 +5,7 @@ interface PresetProps {
|
|
|
5
5
|
}
|
|
6
6
|
export default function useUniversalPreset({ props }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[
|
|
7
7
|
"codeBidiWarning",
|
|
8
|
-
|
|
8
|
+
"pasteOptionsToolbarPlugin",
|
|
9
9
|
import("@atlaskit/editor-common/types").MaybePluginName<"fragmentPlugin">,
|
|
10
10
|
import("@atlaskit/editor-common/types").MaybePluginName<"border">,
|
|
11
11
|
import("@atlaskit/editor-common/types").MaybePluginName<"findReplace">,
|
|
@@ -86,7 +86,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
86
86
|
}, {
|
|
87
87
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
88
88
|
} | undefined>,
|
|
89
|
-
import("@atlaskit/editor-
|
|
89
|
+
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"pasteOptionsToolbarPlugin", {
|
|
90
90
|
dependencies: [
|
|
91
91
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
92
92
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
@@ -971,7 +971,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
971
971
|
};
|
|
972
972
|
}, import("@atlaskit/editor-plugin-paste").PastePluginOptions>
|
|
973
973
|
];
|
|
974
|
-
}, undefined
|
|
974
|
+
}, undefined>,
|
|
975
975
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"fragmentPlugin", {}, undefined>>,
|
|
976
976
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"border", {}, undefined>>,
|
|
977
977
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"findReplace", {
|
|
@@ -2826,7 +2826,10 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2826
2826
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2827
2827
|
];
|
|
2828
2828
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2829
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2829
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
2830
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorDisabled", {
|
|
2831
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2832
|
+
}, undefined>>
|
|
2830
2833
|
];
|
|
2831
2834
|
}, undefined>>,
|
|
2832
2835
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"media", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.12.
|
|
3
|
+
"version": "193.12.8",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^17.14.0",
|
|
48
|
-
"@atlaskit/editor-common": "^78.
|
|
48
|
+
"@atlaskit/editor-common": "^78.37.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.11.0",
|
|
50
50
|
"@atlaskit/editor-plugins": "^2.5.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "4.0.0",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"@atlaskit/media-card": "^77.11.0",
|
|
56
56
|
"@atlaskit/mention": "^23.0.0",
|
|
57
57
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
58
|
-
"@atlaskit/spinner": "^16.
|
|
58
|
+
"@atlaskit/spinner": "^16.1.0",
|
|
59
59
|
"@atlaskit/task-decision": "^17.9.0",
|
|
60
60
|
"@atlaskit/theme": "^12.7.0",
|
|
61
61
|
"@atlaskit/tokens": "^1.44.0",
|
|
62
|
-
"@atlaskit/tooltip": "^18.
|
|
62
|
+
"@atlaskit/tooltip": "^18.3.0",
|
|
63
63
|
"@atlaskit/ufo": "^0.2.0",
|
|
64
64
|
"@atlaskit/width-detector": "^4.1.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@af/visual-regression": "*",
|
|
87
87
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
88
88
|
"@atlaskit/analytics-listeners": "^8.9.1",
|
|
89
|
-
"@atlaskit/checkbox": "^13.
|
|
89
|
+
"@atlaskit/checkbox": "^13.2.0",
|
|
90
90
|
"@atlaskit/collab-provider": "9.28.1",
|
|
91
91
|
"@atlaskit/dropdown-menu": "^12.9.0",
|
|
92
92
|
"@atlaskit/editor-plugin-annotation": "1.6.2",
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
"@atlaskit/media-core": "^34.2.0",
|
|
103
103
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
104
104
|
"@atlaskit/media-test-helpers": "^33.0.27",
|
|
105
|
-
"@atlaskit/modal-dialog": "^12.
|
|
106
|
-
"@atlaskit/primitives": "^5.
|
|
105
|
+
"@atlaskit/modal-dialog": "^12.13.0",
|
|
106
|
+
"@atlaskit/primitives": "^5.7.0",
|
|
107
107
|
"@atlaskit/renderer": "^109.22.0",
|
|
108
108
|
"@atlaskit/select": "^17.7.0",
|
|
109
|
-
"@atlaskit/smart-card": "^26.
|
|
109
|
+
"@atlaskit/smart-card": "^26.59.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "^2.4.0",
|
|
111
111
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
112
112
|
"@atlaskit/visual-regression": "*",
|
|
@@ -129,7 +129,6 @@
|
|
|
129
129
|
"jscodeshift": "^0.13.0",
|
|
130
130
|
"lz-string": "^1.4.4",
|
|
131
131
|
"mockdate": "^3.0.5",
|
|
132
|
-
"prettier": "^2.8.0",
|
|
133
132
|
"prosemirror-dev-tools": "^4.0.0",
|
|
134
133
|
"raf-stub": "^2.0.1",
|
|
135
134
|
"react": "^16.8.0",
|
|
@@ -230,13 +229,6 @@
|
|
|
230
229
|
"type": "boolean",
|
|
231
230
|
"referenceOnly": "true"
|
|
232
231
|
},
|
|
233
|
-
"platform.editor.paste-options-toolbar": {
|
|
234
|
-
"type": "boolean"
|
|
235
|
-
},
|
|
236
|
-
"platform.editor.menu.group-items": {
|
|
237
|
-
"type": "boolean",
|
|
238
|
-
"referenceOnly": "true"
|
|
239
|
-
},
|
|
240
232
|
"platform.editor.enable-selection-toolbar_ucdwd": {
|
|
241
233
|
"type": "boolean"
|
|
242
234
|
},
|
|
@@ -285,10 +277,6 @@
|
|
|
285
277
|
"type": "boolean",
|
|
286
278
|
"referenceOnly": true
|
|
287
279
|
},
|
|
288
|
-
"platform.editor.table.column-controls-styles-updated": {
|
|
289
|
-
"type": "boolean",
|
|
290
|
-
"referenceOnly": "true"
|
|
291
|
-
},
|
|
292
280
|
"platform.editor.a11y-column-resizing_emcvz": {
|
|
293
281
|
"type": "boolean",
|
|
294
282
|
"referenceOnly": "true"
|
|
@@ -297,10 +285,6 @@
|
|
|
297
285
|
"type": "boolean",
|
|
298
286
|
"referenceOnly": "true"
|
|
299
287
|
},
|
|
300
|
-
"platform.editor.table.background-color-flicker-in-drag-menu": {
|
|
301
|
-
"type": "boolean",
|
|
302
|
-
"referenceOnly": "true"
|
|
303
|
-
},
|
|
304
288
|
"platform.editor.transform-slice-for-nested-expand": {
|
|
305
289
|
"type": "boolean",
|
|
306
290
|
"referenceOnly": "true"
|
|
@@ -350,6 +334,10 @@
|
|
|
350
334
|
"platform.editor.table.live-pages-sorting_4malx": {
|
|
351
335
|
"type": "boolean",
|
|
352
336
|
"referenceOnly": "true"
|
|
337
|
+
},
|
|
338
|
+
"platform.editor.codeblock-preserve-newlines_54r3m": {
|
|
339
|
+
"type": "boolean",
|
|
340
|
+
"referenceOnly": true
|
|
353
341
|
}
|
|
354
342
|
},
|
|
355
343
|
"stricter": {
|