@atlaskit/editor-core 193.4.0 → 193.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/composable-editor/package.json +1 -1
- package/dist/cjs/ui/ContentStyles/extension.js +2 -1
- package/dist/cjs/ui/ContextPanel/index.js +25 -21
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/extension.js +17 -0
- package/dist/es2019/ui/ContextPanel/index.js +27 -23
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/extension.js +2 -1
- package/dist/esm/ui/ContextPanel/index.js +25 -21
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types/create-editor/WithEditorView.d.ts +1 -1
- package/dist/types/create-editor/create-preset.d.ts +13 -13
- package/dist/types/presets/default.d.ts +10 -10
- package/dist/types/presets/universal.d.ts +13 -13
- package/dist/types/presets/useUniversalPreset.d.ts +652 -652
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types/ui/ToolbarHelp/index.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/WithEditorView.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +13 -13
- package/dist/types-ts4.5/presets/default.d.ts +10 -10
- package/dist/types-ts4.5/presets/universal.d.ts +13 -13
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +660 -660
- package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +2 -2
- package/editor/package.json +1 -1
- package/editor-context/package.json +1 -1
- package/element-browser/package.json +1 -1
- package/labs-next/package.json +1 -1
- package/messages/package.json +1 -1
- package/package.json +7 -7
- package/preset-default/package.json +1 -1
- package/preset-universal/package.json +1 -1
- package/test-utils/package.json +1 -1
- package/use-preset/package.json +1 -1
- package/version-wrapper/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
9
|
+
## 193.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#81734](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81734) [`1148ef3d8a84`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1148ef3d8a84) - [ux] lozenge trash interaction, hover overlay removal, and fix label text truncation
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 193.4.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
|
@@ -8,6 +8,7 @@ exports.extensionStyles = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
11
12
|
var _templateObject;
|
|
12
13
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/no-exported-css -- Needs manual remediation
|
|
13
|
-
var extensionStyles = exports.extensionStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .multiBodiedExtensionView-content-wrap {\n &.danger > span > .multiBodiedExtension--container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n &:not(.danger).", " {\n & > span > .multiBodiedExtension--container {\n ", "\n }\n }\n .multiBodiedExtension--container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n }\n\n .inlineExtensionView-content-wrap {\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n }\n\n .extensionView-content-wrap,\n .multiBodiedExtensionView-content-wrap,\n .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:last-of-type {\n margin-bottom: 0;\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.inline {\n word-wrap: break-all;\n }\n }\n\n .extensionView-content-wrap .extension-container {\n overflow: hidden;\n }\n\n .bodiedExtensionView-content-wrap\n .extensionView-content-wrap\n .extension-container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n\n [data-mark-type='fragment'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n }\n\n &:first-child {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n }\n }\n\n &:nth-last-of-type(-n + 2):not(:first-of-type) {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n }\n }\n }\n"])), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), _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, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), _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, ")"), _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin);
|
|
14
|
+
var extensionStyles = exports.extensionStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .multiBodiedExtensionView-content-wrap {\n &.danger > span > .multiBodiedExtension--container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n }\n\n &:not(.danger).", " {\n & > span > .multiBodiedExtension--container {\n ", "\n }\n }\n .multiBodiedExtension--container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n }\n\n .inlineExtensionView-content-wrap {\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n }\n }\n\n .extensionView-content-wrap,\n .multiBodiedExtensionView-content-wrap,\n .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:last-of-type {\n margin-bottom: 0;\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n }\n\n &.inline {\n word-wrap: break-all;\n }\n }\n\n .extensionView-content-wrap .extension-container {\n overflow: hidden;\n }\n\n .bodiedExtensionView-content-wrap\n .extensionView-content-wrap\n .extension-container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n\n [data-mark-type='fragment'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n }\n\n &:first-child {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n }\n }\n\n &:nth-last-of-type(-n + 2):not(:first-of-type) {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n }\n }\n }\n"])), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), "var(--ds-background-accent-red-subtler, ".concat(_colors.R200, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), _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, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow]), "var(--ds-background-accent-red-subtler, ".concat(_colors.R200, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), _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, ")"), "var(--ds-background-accent-red-subtler, ".concat(_colors.R200, ")"), "var(--ds-text-danger, ".concat(_colors.R400, ")"), _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin);
|
|
@@ -233,27 +233,31 @@ function ContextPanelWithActions(_ref2) {
|
|
|
233
233
|
editorView: editorView
|
|
234
234
|
}, props));
|
|
235
235
|
}
|
|
236
|
-
return (
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
236
|
+
return (
|
|
237
|
+
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
238
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
239
|
+
(0, _react2.jsx)(_WithPluginState.default, {
|
|
240
|
+
eventDispatcher: eventDispatcher,
|
|
241
|
+
plugins: {
|
|
242
|
+
contextPanel: contextPanelPluginKey,
|
|
243
|
+
widthState: widthPluginKey
|
|
244
|
+
},
|
|
245
|
+
render: function render(_ref3) {
|
|
246
|
+
var contextPanel = _ref3.contextPanel,
|
|
247
|
+
widthState = _ref3.widthState;
|
|
248
|
+
var firstContent = contextPanel && contextPanel.contents.find(Boolean);
|
|
249
|
+
var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
|
|
250
|
+
containerWidth: width,
|
|
251
|
+
contentBreakoutModes: editorView ? (0, _document.getChildBreakoutModes)(editorView.state.doc, editorView.state.schema) : []
|
|
252
|
+
});
|
|
253
|
+
return (0, _react2.jsx)(SwappableContentArea, (0, _extends2.default)({}, props, {
|
|
254
|
+
editorView: editorView,
|
|
255
|
+
pluginContent: firstContent,
|
|
256
|
+
editorWidth: editorWidth
|
|
257
|
+
}));
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
);
|
|
257
261
|
}
|
|
258
262
|
function ContextPanel(props) {
|
|
259
263
|
return (0, _react2.jsx)(_WithEditorActions.default, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
3
|
+
import { R200, R400 } from '@atlaskit/theme/colors';
|
|
3
4
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/no-exported-css -- Needs manual remediation
|
|
4
5
|
export const extensionStyles = css`
|
|
5
6
|
.multiBodiedExtensionView-content-wrap {
|
|
@@ -8,6 +9,12 @@ export const extensionStyles = css`
|
|
|
8
9
|
${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
9
10
|
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
|
|
10
11
|
}
|
|
12
|
+
|
|
13
|
+
&.danger > span > div > .extension-label {
|
|
14
|
+
background-color: ${`var(--ds-background-accent-red-subtler, ${R200})`};
|
|
15
|
+
color: ${`var(--ds-text-danger, ${R400})`};
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
&:not(.danger).${akEditorSelectedNodeClassName} {
|
|
12
19
|
& > span > .multiBodiedExtension--container {
|
|
13
20
|
${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket])}
|
|
@@ -31,6 +38,11 @@ export const extensionStyles = css`
|
|
|
31
38
|
${getSelectionStyles([SelectionStyle.BoxShadow])}
|
|
32
39
|
}
|
|
33
40
|
}
|
|
41
|
+
|
|
42
|
+
&.danger > span > div > .extension-label {
|
|
43
|
+
background-color: ${`var(--ds-background-accent-red-subtler, ${R200})`};
|
|
44
|
+
color: ${`var(--ds-text-danger, ${R400})`};
|
|
45
|
+
}
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
.extensionView-content-wrap,
|
|
@@ -58,6 +70,11 @@ export const extensionStyles = css`
|
|
|
58
70
|
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
|
|
59
71
|
}
|
|
60
72
|
|
|
73
|
+
&.danger > span > div > .extension-label {
|
|
74
|
+
background-color: ${`var(--ds-background-accent-red-subtler, ${R200})`};
|
|
75
|
+
color: ${`var(--ds-text-danger, ${R400})`};
|
|
76
|
+
}
|
|
77
|
+
|
|
61
78
|
&.inline {
|
|
62
79
|
word-wrap: break-all;
|
|
63
80
|
}
|
|
@@ -206,29 +206,33 @@ function ContextPanelWithActions({
|
|
|
206
206
|
editorView: editorView
|
|
207
207
|
}, props));
|
|
208
208
|
}
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
209
|
+
return (
|
|
210
|
+
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
211
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
212
|
+
jsx(WithPluginState, {
|
|
213
|
+
eventDispatcher: eventDispatcher,
|
|
214
|
+
plugins: {
|
|
215
|
+
contextPanel: contextPanelPluginKey,
|
|
216
|
+
widthState: widthPluginKey
|
|
217
|
+
},
|
|
218
|
+
render: ({
|
|
219
|
+
contextPanel,
|
|
220
|
+
widthState
|
|
221
|
+
}) => {
|
|
222
|
+
const firstContent = contextPanel && contextPanel.contents.find(Boolean);
|
|
223
|
+
const editorWidth = {
|
|
224
|
+
...widthState,
|
|
225
|
+
containerWidth: width,
|
|
226
|
+
contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
|
|
227
|
+
};
|
|
228
|
+
return jsx(SwappableContentArea, _extends({}, props, {
|
|
229
|
+
editorView: editorView,
|
|
230
|
+
pluginContent: firstContent,
|
|
231
|
+
editorWidth: editorWidth
|
|
232
|
+
}));
|
|
233
|
+
}
|
|
234
|
+
})
|
|
235
|
+
);
|
|
232
236
|
}
|
|
233
237
|
export default function ContextPanel(props) {
|
|
234
238
|
return jsx(WithEditorActions, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.
|
|
2
|
+
export const version = "193.5.3";
|
|
@@ -2,5 +2,6 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
5
|
+
import { R200, R400 } from '@atlaskit/theme/colors';
|
|
5
6
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/no-exported-css -- Needs manual remediation
|
|
6
|
-
export var extensionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .multiBodiedExtensionView-content-wrap {\n &.danger > span > .multiBodiedExtension--container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n &:not(.danger).", " {\n & > span > .multiBodiedExtension--container {\n ", "\n }\n }\n .multiBodiedExtension--container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n }\n\n .inlineExtensionView-content-wrap {\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n }\n\n .extensionView-content-wrap,\n .multiBodiedExtensionView-content-wrap,\n .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:last-of-type {\n margin-bottom: 0;\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.inline {\n word-wrap: break-all;\n }\n }\n\n .extensionView-content-wrap .extension-container {\n overflow: hidden;\n }\n\n .bodiedExtensionView-content-wrap\n .extensionView-content-wrap\n .extension-container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n\n [data-mark-type='fragment'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n }\n\n &:first-child {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n }\n }\n\n &:nth-last-of-type(-n + 2):not(:first-of-type) {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n }\n }\n }\n"])), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), blockNodesVerticalMargin, blockNodesVerticalMargin);
|
|
7
|
+
export var extensionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .multiBodiedExtensionView-content-wrap {\n &.danger > span > .multiBodiedExtension--container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n }\n\n &:not(.danger).", " {\n & > span > .multiBodiedExtension--container {\n ", "\n }\n }\n .multiBodiedExtension--container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n }\n\n .inlineExtensionView-content-wrap {\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n }\n }\n\n .extensionView-content-wrap,\n .multiBodiedExtensionView-content-wrap,\n .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:last-of-type {\n margin-bottom: 0;\n }\n\n &:not(.danger).", " {\n & > span > .extension-container {\n ", "\n }\n }\n\n &.danger > span > .extension-container {\n box-shadow: 0 0 0 ", "px\n ", ";\n background-color: ", ";\n }\n\n &.danger > span > div > .extension-label {\n background-color: ", ";\n color: ", ";\n }\n\n &.inline {\n word-wrap: break-all;\n }\n }\n\n .extensionView-content-wrap .extension-container {\n overflow: hidden;\n }\n\n .bodiedExtensionView-content-wrap\n .extensionView-content-wrap\n .extension-container {\n width: 100%;\n max-width: 100%; // ensure width can't go over 100%;\n }\n\n [data-mark-type='fragment'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin: ", " 0;\n }\n }\n\n &:first-child {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-top: 0;\n }\n }\n }\n\n &:nth-last-of-type(-n + 2):not(:first-of-type) {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n\n & > [data-mark-type='dataConsumer'] {\n & > .extensionView-content-wrap,\n & > .bodiedExtensionView-content-wrap {\n margin-bottom: 0;\n }\n }\n }\n }\n"])), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-background-accent-red-subtler, ".concat(R200, ")"), "var(--ds-text-danger, ".concat(R400, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-background-accent-red-subtler, ".concat(R200, ")"), "var(--ds-text-danger, ".concat(R400, ")"), blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-background-accent-red-subtler, ".concat(R200, ")"), "var(--ds-text-danger, ".concat(R400, ")"), blockNodesVerticalMargin, blockNodesVerticalMargin);
|
|
@@ -225,27 +225,31 @@ function ContextPanelWithActions(_ref2) {
|
|
|
225
225
|
editorView: editorView
|
|
226
226
|
}, props));
|
|
227
227
|
}
|
|
228
|
-
return
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
228
|
+
return (
|
|
229
|
+
// @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
|
|
230
|
+
// This error was introduced after upgrading to TypeScript 5
|
|
231
|
+
jsx(WithPluginState, {
|
|
232
|
+
eventDispatcher: eventDispatcher,
|
|
233
|
+
plugins: {
|
|
234
|
+
contextPanel: contextPanelPluginKey,
|
|
235
|
+
widthState: widthPluginKey
|
|
236
|
+
},
|
|
237
|
+
render: function render(_ref3) {
|
|
238
|
+
var contextPanel = _ref3.contextPanel,
|
|
239
|
+
widthState = _ref3.widthState;
|
|
240
|
+
var firstContent = contextPanel && contextPanel.contents.find(Boolean);
|
|
241
|
+
var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
|
|
242
|
+
containerWidth: width,
|
|
243
|
+
contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
|
|
244
|
+
});
|
|
245
|
+
return jsx(SwappableContentArea, _extends({}, props, {
|
|
246
|
+
editorView: editorView,
|
|
247
|
+
pluginContent: firstContent,
|
|
248
|
+
editorWidth: editorWidth
|
|
249
|
+
}));
|
|
250
|
+
}
|
|
251
|
+
})
|
|
252
|
+
);
|
|
249
253
|
}
|
|
250
254
|
export default function ContextPanel(props) {
|
|
251
255
|
return jsx(WithEditorActions, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.
|
|
2
|
+
export var version = "193.5.3";
|
|
@@ -116,7 +116,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
116
116
|
private editor;
|
|
117
117
|
render(): JSX.Element;
|
|
118
118
|
}
|
|
119
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps
|
|
120
|
-
WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps
|
|
119
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps>> & {
|
|
120
|
+
WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps>;
|
|
121
121
|
};
|
|
122
122
|
export default _default;
|
|
@@ -3,4 +3,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
3
3
|
export interface WithEditorViewInternalProps {
|
|
4
4
|
editorView?: EditorView | undefined;
|
|
5
5
|
}
|
|
6
|
-
export declare const WithEditorView: <P extends WithEditorViewInternalProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<P>>) => (props: React.PropsWithChildren<Omit<P,
|
|
6
|
+
export declare const WithEditorView: <P extends WithEditorViewInternalProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<P>>) => (props: React.PropsWithChildren<Omit<P, keyof WithEditorViewInternalProps>>) => JSX.Element;
|
|
@@ -184,7 +184,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
184
184
|
} | undefined;
|
|
185
185
|
actions: {
|
|
186
186
|
editSelectedExtension: () => boolean;
|
|
187
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
187
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
188
188
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
189
189
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
190
190
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -401,7 +401,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
401
401
|
} | undefined;
|
|
402
402
|
actions: {
|
|
403
403
|
editSelectedExtension: () => boolean;
|
|
404
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
404
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
405
405
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
406
406
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
407
407
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -603,7 +603,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
603
603
|
} | undefined;
|
|
604
604
|
actions: {
|
|
605
605
|
editSelectedExtension: () => boolean;
|
|
606
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
606
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
607
607
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
608
608
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
609
609
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1055,7 +1055,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1055
1055
|
} | undefined;
|
|
1056
1056
|
actions: {
|
|
1057
1057
|
editSelectedExtension: () => boolean;
|
|
1058
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
1058
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
1059
1059
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
1060
1060
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
1061
1061
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1374,7 +1374,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1374
1374
|
} | undefined;
|
|
1375
1375
|
actions: {
|
|
1376
1376
|
editSelectedExtension: () => boolean;
|
|
1377
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
1377
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
1378
1378
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
1379
1379
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
1380
1380
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1541,7 +1541,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1541
1541
|
} | undefined;
|
|
1542
1542
|
actions: {
|
|
1543
1543
|
editSelectedExtension: () => boolean;
|
|
1544
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
1544
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
1545
1545
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
1546
1546
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
1547
1547
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1873,7 +1873,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1873
1873
|
}, import("@atlaskit/editor-plugin-tasks-and-decisions").TaskDecisionPluginOptions | undefined>>, import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"table", {
|
|
1874
1874
|
pluginConfiguration: import("@atlaskit/editor-plugin-table").TablePluginOptions | undefined;
|
|
1875
1875
|
actions: {
|
|
1876
|
-
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload
|
|
1876
|
+
insertTable: (analyticsPayload: import("@atlaskit/editor-common/analytics").AnalyticsEventPayload) => import("@atlaskit/editor-common/types").Command;
|
|
1877
1877
|
};
|
|
1878
1878
|
sharedState: {
|
|
1879
1879
|
isFullWidthModeEnabled: boolean;
|
|
@@ -2173,7 +2173,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2173
2173
|
} | undefined;
|
|
2174
2174
|
actions: {
|
|
2175
2175
|
editSelectedExtension: () => boolean;
|
|
2176
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
2176
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
2177
2177
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
2178
2178
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
2179
2179
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2634,7 +2634,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2634
2634
|
} | undefined;
|
|
2635
2635
|
actions: {
|
|
2636
2636
|
editSelectedExtension: () => boolean;
|
|
2637
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
2637
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
2638
2638
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
2639
2639
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
2640
2640
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2830,7 +2830,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2830
2830
|
} | undefined;
|
|
2831
2831
|
actions: {
|
|
2832
2832
|
editSelectedExtension: () => boolean;
|
|
2833
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
2833
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
2834
2834
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
2835
2835
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
2836
2836
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -3473,7 +3473,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3473
3473
|
} | undefined;
|
|
3474
3474
|
actions: {
|
|
3475
3475
|
editSelectedExtension: () => boolean;
|
|
3476
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
3476
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
3477
3477
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
3478
3478
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
3479
3479
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -3690,7 +3690,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3690
3690
|
} | undefined;
|
|
3691
3691
|
actions: {
|
|
3692
3692
|
editSelectedExtension: () => boolean;
|
|
3693
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
3693
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
3694
3694
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
3695
3695
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
3696
3696
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -3892,7 +3892,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3892
3892
|
} | undefined;
|
|
3893
3893
|
actions: {
|
|
3894
3894
|
editSelectedExtension: () => boolean;
|
|
3895
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
3895
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
3896
3896
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
|
|
3897
3897
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
3898
3898
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -129,7 +129,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
129
129
|
} | undefined;
|
|
130
130
|
actions: {
|
|
131
131
|
editSelectedExtension: () => boolean;
|
|
132
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
132
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
133
133
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
134
134
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
135
135
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -325,7 +325,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
325
325
|
} | undefined;
|
|
326
326
|
actions: {
|
|
327
327
|
editSelectedExtension: () => boolean;
|
|
328
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
328
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
329
329
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
330
330
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
331
331
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -968,7 +968,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
968
968
|
} | undefined;
|
|
969
969
|
actions: {
|
|
970
970
|
editSelectedExtension: () => boolean;
|
|
971
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
971
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
972
972
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
973
973
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
974
974
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1185,7 +1185,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1185
1185
|
} | undefined;
|
|
1186
1186
|
actions: {
|
|
1187
1187
|
editSelectedExtension: () => boolean;
|
|
1188
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
1188
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
1189
1189
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
1190
1190
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
1191
1191
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1387,7 +1387,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1387
1387
|
} | undefined;
|
|
1388
1388
|
actions: {
|
|
1389
1389
|
editSelectedExtension: () => boolean;
|
|
1390
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
1390
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
1391
1391
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
1392
1392
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
1393
1393
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1566,7 +1566,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1566
1566
|
} | undefined;
|
|
1567
1567
|
actions: {
|
|
1568
1568
|
editSelectedExtension: () => boolean;
|
|
1569
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
1569
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
1570
1570
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
1571
1571
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
1572
1572
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1762,7 +1762,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
1762
1762
|
} | undefined;
|
|
1763
1763
|
actions: {
|
|
1764
1764
|
editSelectedExtension: () => boolean;
|
|
1765
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
1765
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
1766
1766
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
1767
1767
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
1768
1768
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2405,7 +2405,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2405
2405
|
} | undefined;
|
|
2406
2406
|
actions: {
|
|
2407
2407
|
editSelectedExtension: () => boolean;
|
|
2408
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
2408
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
2409
2409
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
2410
2410
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
2411
2411
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2622,7 +2622,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2622
2622
|
} | undefined;
|
|
2623
2623
|
actions: {
|
|
2624
2624
|
editSelectedExtension: () => boolean;
|
|
2625
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
2625
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
2626
2626
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
2627
2627
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
2628
2628
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -2824,7 +2824,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2824
2824
|
} | undefined;
|
|
2825
2825
|
actions: {
|
|
2826
2826
|
editSelectedExtension: () => boolean;
|
|
2827
|
-
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI
|
|
2827
|
+
api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI;
|
|
2828
2828
|
insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: EditorView) => Promise<boolean>;
|
|
2829
2829
|
runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
|
|
2830
2830
|
forceAutoSave: (applyChangeToContextPanel: import("@atlaskit/editor-plugin-context-panel").ApplyChangeHandler | undefined) => (resolve: () => void, reject?: import("@atlaskit/editor-plugin-extension").RejectSave | undefined) => import("@atlaskit/editor-common/types").Command;
|