@atlaskit/editor-core 193.5.3 → 193.5.5
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 +6 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/cjs/ui/WithHelpTrigger/index.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/esm/ui/WithHelpTrigger/index.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -0
- package/dist/types/create-editor/create-preset.d.ts +225 -5
- package/dist/types/presets/default.d.ts +180 -4
- package/dist/types/presets/universal.d.ts +225 -5
- package/dist/types/presets/useUniversalPreset.d.ts +225 -5
- package/dist/types/ui/WithHelpTrigger/index.d.ts +4 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +260 -0
- package/dist/types-ts4.5/presets/default.d.ts +208 -0
- package/dist/types-ts4.5/presets/universal.d.ts +260 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +260 -0
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +4 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.5.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83044](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83044) [`cdab77009f9e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cdab77009f9e) - Fix leftover react 18 type issues in editor-core, editor-plugin-extension and date
|
|
8
|
+
|
|
3
9
|
## 193.5.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -42,7 +42,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
42
42
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
43
43
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
44
44
|
var CommentEditorMargin = 14;
|
|
45
|
-
var
|
|
45
|
+
var commentEditorStyles = (0, _react2.css)({
|
|
46
46
|
display: 'flex',
|
|
47
47
|
flexDirection: 'column',
|
|
48
48
|
'.less-margin .ProseMirror': {
|
|
@@ -72,7 +72,7 @@ var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)(
|
|
|
72
72
|
padding: "var(--ds-space-250, 20px)"
|
|
73
73
|
}, _commonStyles.tableCommentEditorStyles));
|
|
74
74
|
ContentArea.displayName = 'ContentArea';
|
|
75
|
-
var
|
|
75
|
+
var secondaryToolbarStyles = (0, _react2.css)({
|
|
76
76
|
boxSizing: 'border-box',
|
|
77
77
|
justifyContent: 'flex-end',
|
|
78
78
|
alignItems: 'center',
|
|
@@ -146,7 +146,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
146
146
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
147
147
|
animate: maxContentSizeReached
|
|
148
148
|
}, (0, _react2.jsx)("div", {
|
|
149
|
-
css: [
|
|
149
|
+
css: [commentEditorStyles, (0, _react2.css)({
|
|
150
150
|
minHeight: "".concat(minHeight, "px")
|
|
151
151
|
})],
|
|
152
152
|
className: "akEditor",
|
|
@@ -211,7 +211,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
211
211
|
pluginHooks: pluginHooks
|
|
212
212
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
213
213
|
}))), showSecondaryToolbar && (0, _react2.jsx)("div", {
|
|
214
|
-
css:
|
|
214
|
+
css: secondaryToolbarStyles,
|
|
215
215
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
216
216
|
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_customThemeButton.default, {
|
|
217
217
|
appearance: "primary",
|
|
@@ -330,7 +330,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
330
330
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
331
331
|
animate: maxContentSizeReached
|
|
332
332
|
}, (0, _react2.jsx)("div", {
|
|
333
|
-
css: [
|
|
333
|
+
css: [commentEditorStyles, (0, _react2.css)({
|
|
334
334
|
minHeight: "".concat(minHeight, "px")
|
|
335
335
|
})],
|
|
336
336
|
className: "akEditor",
|
|
@@ -395,7 +395,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
395
395
|
pluginHooks: pluginHooks
|
|
396
396
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
397
397
|
}))), showSecondaryToolbar && (0, _react2.jsx)("div", {
|
|
398
|
-
css:
|
|
398
|
+
css: secondaryToolbarStyles,
|
|
399
399
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
400
400
|
}, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_customThemeButton.default, {
|
|
401
401
|
appearance: "primary",
|
|
@@ -31,7 +31,8 @@ var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
31
31
|
}
|
|
32
32
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
33
33
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openHelp", function () {
|
|
34
|
-
var
|
|
34
|
+
var _ref = _this.context,
|
|
35
|
+
editorActions = _ref.editorActions;
|
|
35
36
|
var dispatch = (0, _eventDispatcher.createDispatch)(editorActions.eventDispatcher);
|
|
36
37
|
dispatch(_utils.analyticsEventKey, {
|
|
37
38
|
payload: {
|
|
@@ -24,7 +24,7 @@ import Toolbar from '../../Toolbar';
|
|
|
24
24
|
import WithFlash from '../../WithFlash';
|
|
25
25
|
import { MainToolbar, mainToolbarCustomComponentsSlotStyle } from './Toolbar';
|
|
26
26
|
const CommentEditorMargin = 14;
|
|
27
|
-
const
|
|
27
|
+
const commentEditorStyles = css({
|
|
28
28
|
display: 'flex',
|
|
29
29
|
flexDirection: 'column',
|
|
30
30
|
'.less-margin .ProseMirror': {
|
|
@@ -54,7 +54,7 @@ const ContentArea = createEditorContentStyle(css({
|
|
|
54
54
|
padding: "var(--ds-space-250, 20px)"
|
|
55
55
|
}, tableCommentEditorStyles));
|
|
56
56
|
ContentArea.displayName = 'ContentArea';
|
|
57
|
-
const
|
|
57
|
+
const secondaryToolbarStyles = css({
|
|
58
58
|
boxSizing: 'border-box',
|
|
59
59
|
justifyContent: 'flex-end',
|
|
60
60
|
alignItems: 'center',
|
|
@@ -125,7 +125,7 @@ class Editor extends React.Component {
|
|
|
125
125
|
return jsx(WithFlash, {
|
|
126
126
|
animate: maxContentSizeReached
|
|
127
127
|
}, jsx("div", {
|
|
128
|
-
css: [
|
|
128
|
+
css: [commentEditorStyles, css({
|
|
129
129
|
minHeight: `${minHeight}px`
|
|
130
130
|
})],
|
|
131
131
|
className: "akEditor",
|
|
@@ -189,7 +189,7 @@ class Editor extends React.Component {
|
|
|
189
189
|
pluginHooks: pluginHooks
|
|
190
190
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
191
191
|
}))), showSecondaryToolbar && jsx("div", {
|
|
192
|
-
css:
|
|
192
|
+
css: secondaryToolbarStyles,
|
|
193
193
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
194
194
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
195
195
|
appearance: "primary",
|
|
@@ -300,7 +300,7 @@ const EditorNext = props => {
|
|
|
300
300
|
return jsx(WithFlash, {
|
|
301
301
|
animate: maxContentSizeReached
|
|
302
302
|
}, jsx("div", {
|
|
303
|
-
css: [
|
|
303
|
+
css: [commentEditorStyles, css({
|
|
304
304
|
minHeight: `${minHeight}px`
|
|
305
305
|
})],
|
|
306
306
|
className: "akEditor",
|
|
@@ -364,7 +364,7 @@ const EditorNext = props => {
|
|
|
364
364
|
pluginHooks: pluginHooks
|
|
365
365
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
366
366
|
}))), showSecondaryToolbar && jsx("div", {
|
|
367
|
-
css:
|
|
367
|
+
css: secondaryToolbarStyles,
|
|
368
368
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
369
369
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
370
370
|
appearance: "primary",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.5.
|
|
2
|
+
export const version = "193.5.5";
|
|
@@ -33,7 +33,7 @@ import Toolbar from '../../Toolbar';
|
|
|
33
33
|
import WithFlash from '../../WithFlash';
|
|
34
34
|
import { MainToolbar, mainToolbarCustomComponentsSlotStyle } from './Toolbar';
|
|
35
35
|
var CommentEditorMargin = 14;
|
|
36
|
-
var
|
|
36
|
+
var commentEditorStyles = css({
|
|
37
37
|
display: 'flex',
|
|
38
38
|
flexDirection: 'column',
|
|
39
39
|
'.less-margin .ProseMirror': {
|
|
@@ -63,7 +63,7 @@ var ContentArea = createEditorContentStyle(css({
|
|
|
63
63
|
padding: "var(--ds-space-250, 20px)"
|
|
64
64
|
}, tableCommentEditorStyles));
|
|
65
65
|
ContentArea.displayName = 'ContentArea';
|
|
66
|
-
var
|
|
66
|
+
var secondaryToolbarStyles = css({
|
|
67
67
|
boxSizing: 'border-box',
|
|
68
68
|
justifyContent: 'flex-end',
|
|
69
69
|
alignItems: 'center',
|
|
@@ -137,7 +137,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
137
137
|
return jsx(WithFlash, {
|
|
138
138
|
animate: maxContentSizeReached
|
|
139
139
|
}, jsx("div", {
|
|
140
|
-
css: [
|
|
140
|
+
css: [commentEditorStyles, css({
|
|
141
141
|
minHeight: "".concat(minHeight, "px")
|
|
142
142
|
})],
|
|
143
143
|
className: "akEditor",
|
|
@@ -202,7 +202,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
202
202
|
pluginHooks: pluginHooks
|
|
203
203
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
204
204
|
}))), showSecondaryToolbar && jsx("div", {
|
|
205
|
-
css:
|
|
205
|
+
css: secondaryToolbarStyles,
|
|
206
206
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
207
207
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
208
208
|
appearance: "primary",
|
|
@@ -321,7 +321,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
321
321
|
return jsx(WithFlash, {
|
|
322
322
|
animate: maxContentSizeReached
|
|
323
323
|
}, jsx("div", {
|
|
324
|
-
css: [
|
|
324
|
+
css: [commentEditorStyles, css({
|
|
325
325
|
minHeight: "".concat(minHeight, "px")
|
|
326
326
|
})],
|
|
327
327
|
className: "akEditor",
|
|
@@ -386,7 +386,7 @@ var EditorNext = function EditorNext(props) {
|
|
|
386
386
|
pluginHooks: pluginHooks
|
|
387
387
|
}), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
|
|
388
388
|
}))), showSecondaryToolbar && jsx("div", {
|
|
389
|
-
css:
|
|
389
|
+
css: secondaryToolbarStyles,
|
|
390
390
|
"data-testid": "ak-editor-secondary-toolbar"
|
|
391
391
|
}, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
|
|
392
392
|
appearance: "primary",
|
|
@@ -24,7 +24,8 @@ var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
|
|
|
24
24
|
}
|
|
25
25
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
26
26
|
_defineProperty(_assertThisInitialized(_this), "openHelp", function () {
|
|
27
|
-
var
|
|
27
|
+
var _ref = _this.context,
|
|
28
|
+
editorActions = _ref.editorActions;
|
|
28
29
|
var dispatch = createDispatch(editorActions.eventDispatcher);
|
|
29
30
|
dispatch(analyticsEventKey, {
|
|
30
31
|
payload: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.5.
|
|
2
|
+
export var version = "193.5.5";
|
|
@@ -74,6 +74,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
74
74
|
static contextTypes: {
|
|
75
75
|
getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
76
|
};
|
|
77
|
+
context: EditorReactContext;
|
|
77
78
|
private canDispatchTransactions;
|
|
78
79
|
private focusTimeoutId?;
|
|
79
80
|
private reliabilityInterval?;
|
|
@@ -320,7 +320,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
320
320
|
commands: {
|
|
321
321
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
322
322
|
};
|
|
323
|
-
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
323
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
324
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
325
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
326
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
327
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
328
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
329
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
330
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
331
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
332
|
+
sharedState: {
|
|
333
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
334
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
335
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
336
|
+
};
|
|
337
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
338
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
339
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
340
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
341
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
342
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
343
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
344
|
+
actions: {
|
|
345
|
+
getAvatarColor: (str: string) => {
|
|
346
|
+
index: number;
|
|
347
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
348
|
+
};
|
|
349
|
+
addInlineCommentMark: (props: {
|
|
350
|
+
from: number;
|
|
351
|
+
to: number;
|
|
352
|
+
mark: import("prosemirror-model").Mark;
|
|
353
|
+
}) => boolean;
|
|
354
|
+
};
|
|
355
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
356
|
+
pluginConfiguration?: {
|
|
357
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
358
|
+
} | undefined;
|
|
359
|
+
commands: {
|
|
360
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
361
|
+
};
|
|
362
|
+
actions: {
|
|
363
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
364
|
+
};
|
|
365
|
+
}, {
|
|
366
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
367
|
+
} | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
324
368
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
325
369
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
326
370
|
}, undefined>];
|
|
@@ -1460,7 +1504,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1460
1504
|
commands: {
|
|
1461
1505
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1462
1506
|
};
|
|
1463
|
-
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1507
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1508
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
1509
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
1510
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
1511
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1512
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1513
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1514
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1515
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1516
|
+
sharedState: {
|
|
1517
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
1518
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1519
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1520
|
+
};
|
|
1521
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1522
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1523
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1524
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1525
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1526
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
1527
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
1528
|
+
actions: {
|
|
1529
|
+
getAvatarColor: (str: string) => {
|
|
1530
|
+
index: number;
|
|
1531
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
1532
|
+
};
|
|
1533
|
+
addInlineCommentMark: (props: {
|
|
1534
|
+
from: number;
|
|
1535
|
+
to: number;
|
|
1536
|
+
mark: import("prosemirror-model").Mark;
|
|
1537
|
+
}) => boolean;
|
|
1538
|
+
};
|
|
1539
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
1540
|
+
pluginConfiguration?: {
|
|
1541
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1542
|
+
} | undefined;
|
|
1543
|
+
commands: {
|
|
1544
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1545
|
+
};
|
|
1546
|
+
actions: {
|
|
1547
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1548
|
+
};
|
|
1549
|
+
}, {
|
|
1550
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1551
|
+
} | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
1464
1552
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
1465
1553
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
1466
1554
|
}, undefined>];
|
|
@@ -2092,7 +2180,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2092
2180
|
commands: {
|
|
2093
2181
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2094
2182
|
};
|
|
2095
|
-
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2183
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2184
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2185
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2186
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
2187
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2188
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2189
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2190
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2191
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2192
|
+
sharedState: {
|
|
2193
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2194
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2195
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2196
|
+
};
|
|
2197
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2198
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2199
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2200
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2201
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2202
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2203
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2204
|
+
actions: {
|
|
2205
|
+
getAvatarColor: (str: string) => {
|
|
2206
|
+
index: number;
|
|
2207
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2208
|
+
};
|
|
2209
|
+
addInlineCommentMark: (props: {
|
|
2210
|
+
from: number;
|
|
2211
|
+
to: number;
|
|
2212
|
+
mark: import("prosemirror-model").Mark;
|
|
2213
|
+
}) => boolean;
|
|
2214
|
+
};
|
|
2215
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
2216
|
+
pluginConfiguration?: {
|
|
2217
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2218
|
+
} | undefined;
|
|
2219
|
+
commands: {
|
|
2220
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2221
|
+
};
|
|
2222
|
+
actions: {
|
|
2223
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2224
|
+
};
|
|
2225
|
+
}, {
|
|
2226
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2227
|
+
} | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
2096
2228
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
2097
2229
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
2098
2230
|
}, undefined>];
|
|
@@ -2749,7 +2881,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2749
2881
|
commands: {
|
|
2750
2882
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2751
2883
|
};
|
|
2752
|
-
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2884
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2885
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2886
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2887
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
2888
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2889
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2890
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2891
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2892
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2893
|
+
sharedState: {
|
|
2894
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2895
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2896
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2897
|
+
};
|
|
2898
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2899
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2900
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2901
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
2902
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2903
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
2904
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2905
|
+
actions: {
|
|
2906
|
+
getAvatarColor: (str: string) => {
|
|
2907
|
+
index: number;
|
|
2908
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2909
|
+
};
|
|
2910
|
+
addInlineCommentMark: (props: {
|
|
2911
|
+
from: number;
|
|
2912
|
+
to: number;
|
|
2913
|
+
mark: import("prosemirror-model").Mark;
|
|
2914
|
+
}) => boolean;
|
|
2915
|
+
};
|
|
2916
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
2917
|
+
pluginConfiguration?: {
|
|
2918
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2919
|
+
} | undefined;
|
|
2920
|
+
commands: {
|
|
2921
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2922
|
+
};
|
|
2923
|
+
actions: {
|
|
2924
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2925
|
+
};
|
|
2926
|
+
}, {
|
|
2927
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2928
|
+
} | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
2753
2929
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
2754
2930
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
2755
2931
|
}, undefined>];
|
|
@@ -3609,7 +3785,51 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3609
3785
|
commands: {
|
|
3610
3786
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3611
3787
|
};
|
|
3612
|
-
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
3788
|
+
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3789
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3790
|
+
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
3791
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
3792
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3793
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3794
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3795
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3796
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
3797
|
+
sharedState: {
|
|
3798
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
3799
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
3800
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
3801
|
+
};
|
|
3802
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3803
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3804
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3805
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
3806
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3807
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
3808
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
3809
|
+
actions: {
|
|
3810
|
+
getAvatarColor: (str: string) => {
|
|
3811
|
+
index: number;
|
|
3812
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
3813
|
+
};
|
|
3814
|
+
addInlineCommentMark: (props: {
|
|
3815
|
+
from: number;
|
|
3816
|
+
to: number;
|
|
3817
|
+
mark: import("prosemirror-model").Mark;
|
|
3818
|
+
}) => boolean;
|
|
3819
|
+
};
|
|
3820
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
3821
|
+
pluginConfiguration?: {
|
|
3822
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3823
|
+
} | undefined;
|
|
3824
|
+
commands: {
|
|
3825
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3826
|
+
};
|
|
3827
|
+
actions: {
|
|
3828
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3829
|
+
};
|
|
3830
|
+
}, {
|
|
3831
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3832
|
+
} | undefined>>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
3613
3833
|
dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
3614
3834
|
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
3615
3835
|
}, undefined>];
|