@atlaskit/editor-core 195.1.11 → 195.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/presets/default.js +1 -4
- package/dist/cjs/ui/ContentStyles/extension.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +1 -2
- package/dist/es2019/ui/ContentStyles/extension.js +8 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +1 -4
- package/dist/esm/ui/ContentStyles/extension.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +3 -2
- package/dist/types/presets/default.d.ts +4 -4
- package/dist/types/presets/universal.d.ts +3 -2
- package/dist/types/presets/useUniversalPreset.d.ts +3 -2
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +3 -2
- package/dist/types-ts4.5/presets/default.d.ts +4 -4
- package/dist/types-ts4.5/presets/universal.d.ts +3 -2
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +3 -2
- package/package.json +15 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 195.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
|
|
8
|
+
[`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
|
|
9
|
+
[ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
|
|
10
|
+
promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
|
|
11
|
+
quotes in panels and decisions in lists in stage0 schema, and a validator spec change
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 195.2.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#127649](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127649)
|
|
22
|
+
[`0309e1c2b167a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0309e1c2b167a) -
|
|
23
|
+
[ED-23435] Clean-up primary toolbar plugin feature flag
|
|
24
|
+
|
|
3
25
|
## 195.1.11
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -37,7 +37,6 @@ var _typeAhead = require("@atlaskit/editor-plugins/type-ahead");
|
|
|
37
37
|
var _undoRedo = require("@atlaskit/editor-plugins/undo-redo");
|
|
38
38
|
var _unsupportedContent = require("@atlaskit/editor-plugins/unsupported-content");
|
|
39
39
|
var _width = require("@atlaskit/editor-plugins/width");
|
|
40
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
41
40
|
var _isFullPage = require("../utils/is-full-page");
|
|
42
41
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43
42
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // #region Imports
|
|
@@ -58,9 +57,7 @@ function createDefaultPreset(options) {
|
|
|
58
57
|
isFullPage: isFullPage
|
|
59
58
|
})]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
|
|
60
59
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
61
|
-
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).
|
|
62
|
-
return !!(0, _platformFeatureFlags.fg)('platform.editor.primary-toolbar-ordering');
|
|
63
|
-
}).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).add([_selectionToolbar.selectionToolbarPlugin, {
|
|
60
|
+
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).add(_primaryToolbar.primaryToolbarPlugin).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).add([_selectionToolbar.selectionToolbarPlugin, {
|
|
64
61
|
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
65
62
|
}]).add([_hyperlink.hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
66
63
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
@@ -19,4 +19,4 @@ var dangerOverlayStyles = (0, _react.css)({
|
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
22
|
-
var extensionStyles = exports.extensionStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t.multiBodiedExtensionView-content-wrap {\n\t\t&.danger > span > .multiBodiedExtension--container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.multiBodiedExtension--overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .multiBodiedExtension--container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t\t.multiBodiedExtension--container {\n\t\t\twidth: 100%;\n\t\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t\t}\n\t}\n\n\t.inlineExtensionView-content-wrap {\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\t// If the macro turned used to turn red before, not setting the background to be transparent will cause the\n\t\t\t// danger state to have two layers of red which we don't want.\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t}\n\n\t.extensionView-content-wrap,\n\t.multiBodiedExtensionView-content-wrap,\n\t.bodiedExtensionView-content-wrap {\n\t\tmargin: ", " 0;\n\n\t\t&:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\n\t\t&:last-of-type {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.inline {\n\t\t\tword-wrap: break-all;\n\t\t}\n\t}\n\n\t.extensionView-content-wrap .extension-container {\n\t\toverflow: hidden;\n\t}\n\n\t.bodiedExtensionView-content-wrap .extensionView-content-wrap .extension-container {\n\t\twidth: 100%;\n\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t}\n\n\t[data-mark-type='fragment'] {\n\t\t& > .extensionView-content-wrap,\n\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin: ", " 0;\n\t\t\t}\n\t\t}\n\n\t\t&:first-child {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&:nth-last-of-type(-n + 2):not(:first-of-type) {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), dangerOverlayStyles, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), extensionLabelStyles, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin);
|
|
22
|
+
var extensionStyles = exports.extensionStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t.multiBodiedExtensionView-content-wrap {\n\t\t&.danger > span > .multiBodiedExtension--container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.multiBodiedExtension--overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .multiBodiedExtension--container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t\t.multiBodiedExtension--container {\n\t\t\twidth: 100%;\n\t\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t\t}\n\t}\n\n\t.inlineExtensionView-content-wrap {\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\t// If the macro turned used to turn red before, not setting the background to be transparent will cause the\n\t\t\t// danger state to have two layers of red which we don't want.\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t}\n\n\t// This is referenced in the toDOM of a bodied extension and is used to put\n\t// label content into the bodied extension.\n\t// We do this so that we don't serialise the label (which causes the label to be\n\t// be copied to the clipboard causing copy-paste issues).\n\t.bodied-extension-to-dom-label::after {\n\t\tcontent: attr(data-bodied-extension-label);\n\t}\n\n\t.extensionView-content-wrap,\n\t.multiBodiedExtensionView-content-wrap,\n\t.bodiedExtensionView-content-wrap {\n\t\tmargin: ", " 0;\n\n\t\t&:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\n\t\t&:last-of-type {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.inline {\n\t\t\tword-wrap: break-all;\n\t\t}\n\t}\n\n\t.extensionView-content-wrap .extension-container {\n\t\toverflow: hidden;\n\t}\n\n\t.bodiedExtensionView-content-wrap .extensionView-content-wrap .extension-container {\n\t\twidth: 100%;\n\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t}\n\n\t[data-mark-type='fragment'] {\n\t\t& > .extensionView-content-wrap,\n\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin: ", " 0;\n\t\t\t}\n\t\t}\n\n\t\t&:first-child {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&:nth-last-of-type(-n + 2):not(:first-of-type) {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), dangerOverlayStyles, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), extensionLabelStyles, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin);
|
|
@@ -30,7 +30,6 @@ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
|
|
|
30
30
|
import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
|
|
31
31
|
import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
|
|
32
32
|
import { widthPlugin } from '@atlaskit/editor-plugins/width';
|
|
33
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
34
33
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
35
34
|
// #endregion
|
|
36
35
|
|
|
@@ -50,7 +49,7 @@ export function createDefaultPreset(options) {
|
|
|
50
49
|
isFullPage
|
|
51
50
|
}]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
52
51
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
53
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).
|
|
52
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).add(primaryToolbarPlugin).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).add([selectionToolbarPlugin, {
|
|
54
53
|
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
55
54
|
}]).add([hyperlinkPlugin, {
|
|
56
55
|
...options.hyperlinkOptions,
|
|
@@ -87,6 +87,14 @@ export const extensionStyles = css`
|
|
|
87
87
|
${extensionLabelStyles}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
// This is referenced in the toDOM of a bodied extension and is used to put
|
|
91
|
+
// label content into the bodied extension.
|
|
92
|
+
// We do this so that we don't serialise the label (which causes the label to be
|
|
93
|
+
// be copied to the clipboard causing copy-paste issues).
|
|
94
|
+
.bodied-extension-to-dom-label::after {
|
|
95
|
+
content: attr(data-bodied-extension-label);
|
|
96
|
+
}
|
|
97
|
+
|
|
90
98
|
.extensionView-content-wrap,
|
|
91
99
|
.multiBodiedExtensionView-content-wrap,
|
|
92
100
|
.bodiedExtensionView-content-wrap {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "195.
|
|
2
|
+
export const version = "195.3.0";
|
|
@@ -33,7 +33,6 @@ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
|
|
|
33
33
|
import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
|
|
34
34
|
import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
|
|
35
35
|
import { widthPlugin } from '@atlaskit/editor-plugins/width';
|
|
36
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
37
36
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
38
37
|
// #endregion
|
|
39
38
|
|
|
@@ -52,9 +51,7 @@ export function createDefaultPreset(options) {
|
|
|
52
51
|
isFullPage: isFullPage
|
|
53
52
|
})]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
54
53
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
55
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(
|
|
56
|
-
return !!fg('platform.editor.primary-toolbar-ordering');
|
|
57
|
-
}).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).add([selectionToolbarPlugin, {
|
|
54
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).add(primaryToolbarPlugin).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).add([selectionToolbarPlugin, {
|
|
58
55
|
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
59
56
|
}]).add([hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
60
57
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
@@ -13,4 +13,4 @@ var dangerOverlayStyles = css({
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
16
|
-
export var extensionStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t.multiBodiedExtensionView-content-wrap {\n\t\t&.danger > span > .multiBodiedExtension--container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.multiBodiedExtension--overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .multiBodiedExtension--container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t\t.multiBodiedExtension--container {\n\t\t\twidth: 100%;\n\t\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t\t}\n\t}\n\n\t.inlineExtensionView-content-wrap {\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\t// If the macro turned used to turn red before, not setting the background to be transparent will cause the\n\t\t\t// danger state to have two layers of red which we don't want.\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t}\n\n\t.extensionView-content-wrap,\n\t.multiBodiedExtensionView-content-wrap,\n\t.bodiedExtensionView-content-wrap {\n\t\tmargin: ", " 0;\n\n\t\t&:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\n\t\t&:last-of-type {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.inline {\n\t\t\tword-wrap: break-all;\n\t\t}\n\t}\n\n\t.extensionView-content-wrap .extension-container {\n\t\toverflow: hidden;\n\t}\n\n\t.bodiedExtensionView-content-wrap .extensionView-content-wrap .extension-container {\n\t\twidth: 100%;\n\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t}\n\n\t[data-mark-type='fragment'] {\n\t\t& > .extensionView-content-wrap,\n\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin: ", " 0;\n\t\t\t}\n\t\t}\n\n\t\t&:first-child {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&:nth-last-of-type(-n + 2):not(:first-of-type) {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), dangerOverlayStyles, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), extensionLabelStyles, blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, blockNodesVerticalMargin, blockNodesVerticalMargin);
|
|
16
|
+
export var extensionStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t.multiBodiedExtensionView-content-wrap {\n\t\t&.danger > span > .multiBodiedExtension--container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.multiBodiedExtension--overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .multiBodiedExtension--container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t\t.multiBodiedExtension--container {\n\t\t\twidth: 100%;\n\t\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t\t}\n\t}\n\n\t.inlineExtensionView-content-wrap {\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\t// If the macro turned used to turn red before, not setting the background to be transparent will cause the\n\t\t\t// danger state to have two layers of red which we don't want.\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t}\n\n\t// This is referenced in the toDOM of a bodied extension and is used to put\n\t// label content into the bodied extension.\n\t// We do this so that we don't serialise the label (which causes the label to be\n\t// be copied to the clipboard causing copy-paste issues).\n\t.bodied-extension-to-dom-label::after {\n\t\tcontent: attr(data-bodied-extension-label);\n\t}\n\n\t.extensionView-content-wrap,\n\t.multiBodiedExtensionView-content-wrap,\n\t.bodiedExtensionView-content-wrap {\n\t\tmargin: ", " 0;\n\n\t\t&:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\n\t\t&:last-of-type {\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t&:not(.danger).", " {\n\t\t\t& > span > .extension-container {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger > span > .extension-container {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t", "\n\n\t\t&.danger > span > .with-danger-overlay {\n\t\t\tbackground-color: transparent;\n\t\t\t.extension-overlay {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.inline {\n\t\t\tword-wrap: break-all;\n\t\t}\n\t}\n\n\t.extensionView-content-wrap .extension-container {\n\t\toverflow: hidden;\n\t}\n\n\t.bodiedExtensionView-content-wrap .extensionView-content-wrap .extension-container {\n\t\twidth: 100%;\n\t\tmax-width: 100%; // ensure width can't go over 100%;\n\t}\n\n\t[data-mark-type='fragment'] {\n\t\t& > .extensionView-content-wrap,\n\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin: ", " 0;\n\t\t\t}\n\t\t}\n\n\t\t&:first-child {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&:nth-last-of-type(-n + 2):not(:first-of-type) {\n\t\t\t& > .extensionView-content-wrap,\n\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\n\t\t\t& > [data-mark-type='dataConsumer'] {\n\t\t\t\t& > .extensionView-content-wrap,\n\t\t\t\t& > .bodiedExtensionView-content-wrap {\n\t\t\t\t\tmargin-bottom: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), dangerOverlayStyles, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), extensionLabelStyles, blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), extensionLabelStyles, dangerOverlayStyles, blockNodesVerticalMargin, blockNodesVerticalMargin);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "195.
|
|
2
|
+
export var version = "195.3.0";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { EditorProps } from '../types';
|
|
3
|
-
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
3
|
+
export declare function createPreset(props: EditorProps, prevProps?: EditorProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
4
4
|
pluginConfiguration: {
|
|
5
5
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
6
6
|
} | undefined;
|
|
@@ -2754,6 +2754,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2754
2754
|
}, undefined>>];
|
|
2755
2755
|
actions: {
|
|
2756
2756
|
insertExpand: import("@atlaskit/editor-common/types").Command;
|
|
2757
|
+
insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugin-expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
|
|
2757
2758
|
};
|
|
2758
2759
|
}, import("@atlaskit/editor-plugin-expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
2759
2760
|
pluginConfiguration: undefined;
|
|
@@ -3857,7 +3858,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3857
3858
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3858
3859
|
}) => void;
|
|
3859
3860
|
};
|
|
3860
|
-
}, undefined
|
|
3861
|
+
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
3861
3862
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
3862
3863
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
3863
3864
|
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
@@ -46,7 +46,7 @@ export type DefaultPresetPluginOptions = {
|
|
|
46
46
|
* Note: The order that presets are added determines
|
|
47
47
|
* their placement in the editor toolbar
|
|
48
48
|
*/
|
|
49
|
-
export declare function createDefaultPreset(options: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
49
|
+
export declare function createDefaultPreset(options: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
50
50
|
pluginConfiguration: CodeBlockOptions | undefined;
|
|
51
51
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
52
52
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -1026,7 +1026,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1026
1026
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1027
1027
|
}) => void;
|
|
1028
1028
|
};
|
|
1029
|
-
}, undefined
|
|
1029
|
+
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
1030
1030
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
1031
1031
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
1032
1032
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
@@ -1801,7 +1801,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1801
1801
|
pluginConfiguration: FeatureFlags;
|
|
1802
1802
|
sharedState: FeatureFlags;
|
|
1803
1803
|
}, FeatureFlags>]>;
|
|
1804
|
-
export declare function useDefaultPreset(props: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
1804
|
+
export declare function useDefaultPreset(props: DefaultPresetPluginOptions): EditorPresetBuilder<["codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
1805
1805
|
pluginConfiguration: CodeBlockOptions | undefined;
|
|
1806
1806
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"decorations", {
|
|
1807
1807
|
sharedState: import("@atlaskit/editor-plugins/decorations").DecorationState;
|
|
@@ -2781,7 +2781,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2781
2781
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
2782
2782
|
}) => void;
|
|
2783
2783
|
};
|
|
2784
|
-
}, undefined
|
|
2784
|
+
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
2785
2785
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
2786
2786
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
2787
2787
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
@@ -17,7 +17,7 @@ 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", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
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/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
|
|
21
21
|
pluginConfiguration: {
|
|
22
22
|
appearance?: EditorAppearance | undefined;
|
|
23
23
|
} | undefined;
|
|
@@ -2771,6 +2771,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2771
2771
|
}, undefined>>];
|
|
2772
2772
|
actions: {
|
|
2773
2773
|
insertExpand: import("@atlaskit/editor-common/types").Command;
|
|
2774
|
+
insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
|
|
2774
2775
|
};
|
|
2775
2776
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
2776
2777
|
pluginConfiguration: undefined;
|
|
@@ -3874,7 +3875,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3874
3875
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3875
3876
|
}) => void;
|
|
3876
3877
|
};
|
|
3877
|
-
}, undefined
|
|
3878
|
+
}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
3878
3879
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
3879
3880
|
}, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
3880
3881
|
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
@@ -3,7 +3,7 @@ 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", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
6
|
+
export default function useUniversalPreset({ props }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "contentInsertion", "accessibilityUtils", "dataConsumer", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"codeBidiWarning", {
|
|
7
7
|
pluginConfiguration: {
|
|
8
8
|
appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
|
|
9
9
|
} | undefined;
|
|
@@ -2757,6 +2757,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2757
2757
|
}, undefined>>];
|
|
2758
2758
|
actions: {
|
|
2759
2759
|
insertExpand: import("@atlaskit/editor-common/types").Command;
|
|
2760
|
+
insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugin-expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
|
|
2760
2761
|
};
|
|
2761
2762
|
}, import("@atlaskit/editor-plugin-expand").ExpandPluginOptions | undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"rule", {
|
|
2762
2763
|
pluginConfiguration: undefined;
|
|
@@ -3860,7 +3861,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3860
3861
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3861
3862
|
}) => void;
|
|
3862
3863
|
};
|
|
3863
|
-
}, undefined
|
|
3864
|
+
}, undefined>, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"history", {
|
|
3864
3865
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
3865
3866
|
}, undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"typeAhead", {
|
|
3866
3867
|
pluginConfiguration: import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined;
|
|
@@ -64,7 +64,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
64
64
|
"clearMarksOnEmptyDoc",
|
|
65
65
|
"blockType",
|
|
66
66
|
import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
67
|
-
|
|
67
|
+
"primaryToolbar",
|
|
68
68
|
import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
|
|
69
69
|
"typeAhead",
|
|
70
70
|
"decorations",
|
|
@@ -3443,6 +3443,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3443
3443
|
];
|
|
3444
3444
|
actions: {
|
|
3445
3445
|
insertExpand: import("@atlaskit/editor-common/types").Command;
|
|
3446
|
+
insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugin-expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
|
|
3446
3447
|
};
|
|
3447
3448
|
}, import("@atlaskit/editor-plugin-expand").ExpandPluginOptions | undefined> | undefined,
|
|
3448
3449
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
@@ -4801,7 +4802,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4801
4802
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4802
4803
|
}) => void;
|
|
4803
4804
|
};
|
|
4804
|
-
}, undefined
|
|
4805
|
+
}, undefined>,
|
|
4805
4806
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
4806
4807
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
4807
4808
|
}, undefined> | undefined,
|
|
@@ -63,7 +63,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
63
63
|
"clearMarksOnEmptyDoc",
|
|
64
64
|
"blockType",
|
|
65
65
|
import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
66
|
-
|
|
66
|
+
"primaryToolbar",
|
|
67
67
|
import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
|
|
68
68
|
"typeAhead",
|
|
69
69
|
"decorations",
|
|
@@ -1278,7 +1278,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1278
1278
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1279
1279
|
}) => void;
|
|
1280
1280
|
};
|
|
1281
|
-
}, undefined
|
|
1281
|
+
}, undefined>,
|
|
1282
1282
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
1283
1283
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
1284
1284
|
}, undefined> | undefined,
|
|
@@ -2250,7 +2250,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2250
2250
|
"clearMarksOnEmptyDoc",
|
|
2251
2251
|
"blockType",
|
|
2252
2252
|
import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
2253
|
-
|
|
2253
|
+
"primaryToolbar",
|
|
2254
2254
|
import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
|
|
2255
2255
|
"typeAhead",
|
|
2256
2256
|
"decorations",
|
|
@@ -3465,7 +3465,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3465
3465
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3466
3466
|
}) => void;
|
|
3467
3467
|
};
|
|
3468
|
-
}, undefined
|
|
3468
|
+
}, undefined>,
|
|
3469
3469
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
3470
3470
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
3471
3471
|
}, undefined> | undefined,
|
|
@@ -81,7 +81,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
81
81
|
"clearMarksOnEmptyDoc",
|
|
82
82
|
"blockType",
|
|
83
83
|
import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
84
|
-
|
|
84
|
+
"primaryToolbar",
|
|
85
85
|
import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
|
|
86
86
|
"typeAhead",
|
|
87
87
|
"decorations",
|
|
@@ -3460,6 +3460,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3460
3460
|
];
|
|
3461
3461
|
actions: {
|
|
3462
3462
|
insertExpand: import("@atlaskit/editor-common/types").Command;
|
|
3463
|
+
insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugins/expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
|
|
3463
3464
|
};
|
|
3464
3465
|
}, import("@atlaskit/editor-plugins/expand").ExpandPluginOptions | undefined> | undefined,
|
|
3465
3466
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"rule", {
|
|
@@ -4818,7 +4819,7 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4818
4819
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4819
4820
|
}) => void;
|
|
4820
4821
|
};
|
|
4821
|
-
}, undefined
|
|
4822
|
+
}, undefined>,
|
|
4822
4823
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
4823
4824
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
4824
4825
|
}, undefined> | undefined,
|
|
@@ -67,7 +67,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
67
67
|
"clearMarksOnEmptyDoc",
|
|
68
68
|
"blockType",
|
|
69
69
|
import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
70
|
-
|
|
70
|
+
"primaryToolbar",
|
|
71
71
|
import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
|
|
72
72
|
"typeAhead",
|
|
73
73
|
"decorations",
|
|
@@ -3446,6 +3446,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3446
3446
|
];
|
|
3447
3447
|
actions: {
|
|
3448
3448
|
insertExpand: import("@atlaskit/editor-common/types").Command;
|
|
3449
|
+
insertExpandWithInputMethod: (inputMethod: import("@atlaskit/editor-plugin-expand").InsertMethod) => import("@atlaskit/editor-common/types").Command;
|
|
3449
3450
|
};
|
|
3450
3451
|
}, import("@atlaskit/editor-plugin-expand").ExpandPluginOptions | undefined> | undefined,
|
|
3451
3452
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"rule", {
|
|
@@ -4804,7 +4805,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
4804
4805
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
4805
4806
|
}) => void;
|
|
4806
4807
|
};
|
|
4807
|
-
}, undefined
|
|
4808
|
+
}, undefined>,
|
|
4808
4809
|
import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"history", {
|
|
4809
4810
|
sharedState: import("@atlaskit/editor-plugin-history").HistoryPluginState | undefined;
|
|
4810
4811
|
}, undefined> | undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "195.
|
|
3
|
+
"version": "195.3.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
43
|
-
"@atlaskit/adf-schema": "^40.
|
|
43
|
+
"@atlaskit/adf-schema": "^40.8.1",
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^10.0.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^19.1.0",
|
|
48
|
-
"@atlaskit/editor-common": "^87.
|
|
48
|
+
"@atlaskit/editor-common": "^87.6.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.6.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.7.0",
|
|
53
|
-
"@atlaskit/icon": "^22.
|
|
53
|
+
"@atlaskit/icon": "^22.11.0",
|
|
54
54
|
"@atlaskit/media-card": "^78.0.0",
|
|
55
55
|
"@atlaskit/mention": "^23.2.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/task-decision": "^17.10.0",
|
|
59
59
|
"@atlaskit/theme": "^12.11.0",
|
|
60
60
|
"@atlaskit/tokens": "^1.57.0",
|
|
61
|
-
"@atlaskit/tooltip": "^18.
|
|
61
|
+
"@atlaskit/tooltip": "^18.6.0",
|
|
62
62
|
"@atlaskit/width-detector": "^4.2.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
@@ -83,15 +83,15 @@
|
|
|
83
83
|
"@af/editor-examples-helpers": "0.1.2",
|
|
84
84
|
"@af/editor-libra": "*",
|
|
85
85
|
"@af/visual-regression": "*",
|
|
86
|
-
"@atlaskit/adf-utils": "^19.
|
|
86
|
+
"@atlaskit/adf-utils": "^19.7.0",
|
|
87
87
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
88
|
-
"@atlaskit/collab-provider": "9.
|
|
89
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
90
|
-
"@atlaskit/editor-plugin-annotation": "1.
|
|
91
|
-
"@atlaskit/editor-plugin-card": "^2.
|
|
88
|
+
"@atlaskit/collab-provider": "9.37.0",
|
|
89
|
+
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
90
|
+
"@atlaskit/editor-plugin-annotation": "1.19.0",
|
|
91
|
+
"@atlaskit/editor-plugin-card": "^2.10.0",
|
|
92
92
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
93
|
-
"@atlaskit/editor-plugin-list": "^3.
|
|
94
|
-
"@atlaskit/editor-plugin-paste": "^1.
|
|
93
|
+
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
94
|
+
"@atlaskit/editor-plugin-paste": "^1.8.0",
|
|
95
95
|
"@atlaskit/editor-test-helpers": "*",
|
|
96
96
|
"@atlaskit/link-provider": "^1.14.0",
|
|
97
97
|
"@atlaskit/logo": "^14.1.0",
|
|
@@ -100,15 +100,15 @@
|
|
|
100
100
|
"@atlaskit/media-test-helpers": "^34.0.0",
|
|
101
101
|
"@atlaskit/modal-dialog": "^12.14.0",
|
|
102
102
|
"@atlaskit/primitives": "^11.1.0",
|
|
103
|
-
"@atlaskit/renderer": "^109.
|
|
103
|
+
"@atlaskit/renderer": "^109.46.0",
|
|
104
104
|
"@atlaskit/smart-card": "^27.13.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
106
106
|
"@atlaskit/toggle": "^13.2.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
108
108
|
"@atlaskit/visual-regression": "*",
|
|
109
|
-
"@atlassian/adf-schema-json": "^1.
|
|
109
|
+
"@atlassian/adf-schema-json": "^1.22.0",
|
|
110
110
|
"@atlassian/feature-flags-test-utils": "*",
|
|
111
|
-
"@atlassian/search-provider": "2.4.
|
|
111
|
+
"@atlassian/search-provider": "2.4.102",
|
|
112
112
|
"@emotion/jest": "^11.8.0",
|
|
113
113
|
"@storybook/addon-knobs": "^5.3.18",
|
|
114
114
|
"@testing-library/react": "^12.1.5",
|
|
@@ -256,9 +256,6 @@
|
|
|
256
256
|
"platform.confluence.frontend.narrow-full-page-editor-toolbar": {
|
|
257
257
|
"type": "boolean"
|
|
258
258
|
},
|
|
259
|
-
"platform.editor.primary-toolbar-ordering": {
|
|
260
|
-
"type": "boolean"
|
|
261
|
-
},
|
|
262
259
|
"platform.editor.mentions-in-editor-popup-on-click": {
|
|
263
260
|
"type": "boolean",
|
|
264
261
|
"referenceOnly": "true"
|
|
@@ -289,10 +286,6 @@
|
|
|
289
286
|
"platform_editor_table_support_in_comment": {
|
|
290
287
|
"type": "boolean"
|
|
291
288
|
},
|
|
292
|
-
"react_18_tasks_and_decisions_concurrent_mode": {
|
|
293
|
-
"type": "boolean",
|
|
294
|
-
"referenceOnly": true
|
|
295
|
-
},
|
|
296
289
|
"editor_react_18_fix_table_delete_col_decorations": {
|
|
297
290
|
"type": "boolean",
|
|
298
291
|
"referenceOnly": true
|
|
@@ -315,18 +308,10 @@
|
|
|
315
308
|
"type": "boolean",
|
|
316
309
|
"referenceOnly": true
|
|
317
310
|
},
|
|
318
|
-
"platform_editor_element_drag_and_drop_ed_24372": {
|
|
319
|
-
"type": "boolean",
|
|
320
|
-
"referenceOnly": true
|
|
321
|
-
},
|
|
322
311
|
"platform_editor_elements_dnd_nested": {
|
|
323
312
|
"type": "boolean",
|
|
324
313
|
"referenceOnly": true
|
|
325
314
|
},
|
|
326
|
-
"platform_editor_element_drag_and_drop_ed_24330": {
|
|
327
|
-
"type": "boolean",
|
|
328
|
-
"referenceOnly": true
|
|
329
|
-
},
|
|
330
315
|
"editor_support_code_block_wrapping": {
|
|
331
316
|
"type": "boolean",
|
|
332
317
|
"referenceOnly": true
|