@atlaskit/editor-core 219.1.3 → 219.1.4
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/actions/index.js +4 -0
- package/dist/cjs/composable-editor/core-editor.js +2 -0
- package/dist/cjs/create-editor/ErrorBoundary.js +4 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -0
- package/dist/cjs/ui/ChromeCollapsed/index.js +3 -2
- package/dist/cjs/ui/ContextPanel/index.js +1 -1
- package/dist/cjs/ui/ToolbarHelp/index.js +4 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +2 -0
- package/dist/es2019/composable-editor/core-editor.js +2 -0
- package/dist/es2019/create-editor/ErrorBoundary.js +4 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -0
- package/dist/es2019/ui/ChromeCollapsed/index.js +4 -1
- package/dist/es2019/ui/ContextPanel/index.js +2 -0
- package/dist/es2019/ui/ToolbarHelp/index.js +4 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +2 -0
- package/dist/esm/composable-editor/core-editor.js +2 -0
- package/dist/esm/create-editor/ErrorBoundary.js +5 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -0
- package/dist/esm/ui/ChromeCollapsed/index.js +3 -2
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/ToolbarHelp/index.js +4 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +2 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +4 -4
- package/dist/types/create-editor/create-universal-preset.d.ts +4 -0
- package/dist/types/create-editor/editorNativeAnchorSupportPlugin.d.ts +1 -1
- package/dist/types/presets/universal.d.ts +4 -0
- package/dist/types/presets/useUniversalPreset.d.ts +4 -0
- 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 +3 -3
- package/dist/types/ui/ContextPanel/index.d.ts +2 -2
- package/dist/types/ui/EditorContentContainer/styles/list.d.ts +1 -1
- package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +3 -3
- package/dist/types/ui/ToolbarHelp/index.d.ts +3 -3
- package/dist/types-ts4.5/actions/index.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +4 -4
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +4 -0
- package/dist/types-ts4.5/create-editor/editorNativeAnchorSupportPlugin.d.ts +1 -1
- package/dist/types-ts4.5/presets/universal.d.ts +4 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +4 -0
- 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 +3 -3
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/list.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +3 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,10 @@ var _nodesByLocalIds = require("../utils/nodes-by-localIds");
|
|
|
23
23
|
var _tempIsEmptyDocument = require("./temp-is-empty-document");
|
|
24
24
|
var _tempNodesByLocalids = require("./temp-nodes-by-localids");
|
|
25
25
|
var _tempToJson = require("./temp-to-json");
|
|
26
|
+
// eslint-disable-next-line import/order
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line import/order
|
|
29
|
+
|
|
26
30
|
// Please, do not copy or use this kind of code below
|
|
27
31
|
// @ts-ignore
|
|
28
32
|
var fakePluginKey = {
|
|
@@ -146,6 +146,8 @@ function CoreEditor(props) {
|
|
|
146
146
|
featureFlags: memodEditorFeatureFlags
|
|
147
147
|
})));
|
|
148
148
|
}
|
|
149
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
150
|
+
|
|
149
151
|
CoreEditor.propTypes = {
|
|
150
152
|
minHeight: function minHeight(_ref) {
|
|
151
153
|
var appearance = _ref.appearance,
|
|
@@ -204,8 +204,9 @@ var ErrorBoundaryWithEditorViewWithAnalyticsReactContext = exports.ErrorBoundary
|
|
|
204
204
|
}
|
|
205
205
|
(0, _inherits2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, _ErrorBoundaryWithEdi);
|
|
206
206
|
return (0, _createClass2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext);
|
|
207
|
-
}(ErrorBoundaryWithEditorView);
|
|
207
|
+
}(ErrorBoundaryWithEditorView); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
208
208
|
(0, _defineProperty2.default)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, "contextType", _analyticsNextStableReactContext.default);
|
|
209
|
-
var
|
|
209
|
+
var _default_1 = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
210
210
|
return (0, _platformFeatureFlags.fg)('platform_editor_sentry_breadcrumbs');
|
|
211
|
-
}, (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView));
|
|
211
|
+
}, (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView));
|
|
212
|
+
var _default = exports.default = _default_1;
|
|
@@ -326,6 +326,8 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
326
326
|
visible: false
|
|
327
327
|
})));
|
|
328
328
|
});
|
|
329
|
+
|
|
330
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
329
331
|
var FullPageContentArea = exports.FullPageContentArea = (0, _reactIntl.injectIntl)(Content, {
|
|
330
332
|
forwardRef: true
|
|
331
333
|
});
|
|
@@ -136,4 +136,6 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
136
136
|
}, shouldSplitToolbar ? nonCustomToolbar : customToolbar), (0, _react2.jsx)(_ToolbarPortal.ToolbarPortalMountPoint, null))));
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
|
+
|
|
140
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
139
141
|
var FullPageToolbar = exports.FullPageToolbar = (0, _reactIntl.injectIntl)(EditorToolbar);
|
|
@@ -69,5 +69,6 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
}]);
|
|
72
|
-
}(_react.PureComponent);
|
|
73
|
-
var
|
|
72
|
+
}(_react.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
73
|
+
var _default_1 = (0, _reactIntl.injectIntl)(ChromeCollapsed);
|
|
74
|
+
var _default = exports.default = _default_1;
|
|
@@ -187,7 +187,7 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
187
187
|
return null;
|
|
188
188
|
}
|
|
189
189
|
}]);
|
|
190
|
-
}(_react.default.PureComponent);
|
|
190
|
+
}(_react.default.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
191
191
|
var SwappableContentArea = exports.SwappableContentArea = (0, _reactIntl.injectIntl)(SwappableContentAreaInner);
|
|
192
192
|
function ContextPanel(props) {
|
|
193
193
|
var contextPanelContents = (0, _hooks.useSharedPluginStateWithSelector)(props.editorAPI, ['contextPanel'], function (states) {
|
|
@@ -64,4 +64,7 @@ var TooltipHelpTrigger = function TooltipHelpTrigger(_ref) {
|
|
|
64
64
|
})
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
|
-
|
|
67
|
+
|
|
68
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
69
|
+
var _default_1 = (0, _reactIntl.injectIntl)(TooltipHelpTrigger);
|
|
70
|
+
var _default = exports.default = _default_1;
|
|
@@ -11,7 +11,9 @@ import deprecationWarnings from '../utils/deprecation-warnings';
|
|
|
11
11
|
import { findNodePosByFragmentLocalIds } from '../utils/nodes-by-localIds';
|
|
12
12
|
import { isEmptyDocument } from './temp-is-empty-document';
|
|
13
13
|
import { findNodePosByLocalIds } from './temp-nodes-by-localids';
|
|
14
|
+
// eslint-disable-next-line import/order
|
|
14
15
|
import { toJSON } from './temp-to-json';
|
|
16
|
+
// eslint-disable-next-line import/order
|
|
15
17
|
|
|
16
18
|
// Please, do not copy or use this kind of code below
|
|
17
19
|
// @ts-ignore
|
|
@@ -149,5 +149,8 @@ export class ErrorBoundaryWithEditorViewWithAnalyticsReactContext extends ErrorB
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
|
|
153
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
152
154
|
_defineProperty(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, "contextType", AnalyticsReactContext);
|
|
153
|
-
|
|
155
|
+
const _default_1 = componentWithCondition(() => fg('platform_editor_sentry_breadcrumbs'), WithEditorView(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), WithEditorView(ErrorBoundaryWithEditorView));
|
|
156
|
+
export default _default_1;
|
|
@@ -318,6 +318,8 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
318
318
|
visible: false
|
|
319
319
|
})));
|
|
320
320
|
});
|
|
321
|
+
|
|
322
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
321
323
|
export const FullPageContentArea = injectIntl(Content, {
|
|
322
324
|
forwardRef: true
|
|
323
325
|
});
|
|
@@ -123,4 +123,6 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
123
123
|
"aria-label": props.intl.formatMessage(messages.pageActionsLabel)
|
|
124
124
|
}, shouldSplitToolbar ? nonCustomToolbar : customToolbar), jsx(ToolbarPortalMountPoint, null)))));
|
|
125
125
|
});
|
|
126
|
+
|
|
127
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
126
128
|
export const FullPageToolbar = injectIntl(EditorToolbar);
|
|
@@ -166,6 +166,8 @@ class SwappableContentAreaInner extends React.PureComponent {
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
+
|
|
170
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
169
171
|
export const SwappableContentArea = injectIntl(SwappableContentAreaInner);
|
|
170
172
|
export function ContextPanel(props) {
|
|
171
173
|
const contextPanelContents = useSharedPluginStateWithSelector(props.editorAPI, ['contextPanel'], states => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "219.1.
|
|
2
|
+
export const version = "219.1.3";
|
|
@@ -15,7 +15,9 @@ import deprecationWarnings from '../utils/deprecation-warnings';
|
|
|
15
15
|
import { findNodePosByFragmentLocalIds } from '../utils/nodes-by-localIds';
|
|
16
16
|
import { isEmptyDocument } from './temp-is-empty-document';
|
|
17
17
|
import { findNodePosByLocalIds } from './temp-nodes-by-localids';
|
|
18
|
+
// eslint-disable-next-line import/order
|
|
18
19
|
import { toJSON } from './temp-to-json';
|
|
20
|
+
// eslint-disable-next-line import/order
|
|
19
21
|
|
|
20
22
|
// Please, do not copy or use this kind of code below
|
|
21
23
|
// @ts-ignore
|
|
@@ -142,6 +142,8 @@ export function CoreEditor(props) {
|
|
|
142
142
|
featureFlags: memodEditorFeatureFlags
|
|
143
143
|
})));
|
|
144
144
|
}
|
|
145
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
146
|
+
|
|
145
147
|
CoreEditor.propTypes = {
|
|
146
148
|
minHeight: function minHeight(_ref) {
|
|
147
149
|
var appearance = _ref.appearance,
|
|
@@ -199,7 +199,10 @@ export var ErrorBoundaryWithEditorViewWithAnalyticsReactContext = /*#__PURE__*/f
|
|
|
199
199
|
_inherits(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, _ErrorBoundaryWithEdi);
|
|
200
200
|
return _createClass(ErrorBoundaryWithEditorViewWithAnalyticsReactContext);
|
|
201
201
|
}(ErrorBoundaryWithEditorView);
|
|
202
|
+
|
|
203
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
202
204
|
_defineProperty(ErrorBoundaryWithEditorViewWithAnalyticsReactContext, "contextType", AnalyticsReactContext);
|
|
203
|
-
|
|
205
|
+
var _default_1 = componentWithCondition(function () {
|
|
204
206
|
return fg('platform_editor_sentry_breadcrumbs');
|
|
205
|
-
}, WithEditorView(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), WithEditorView(ErrorBoundaryWithEditorView));
|
|
207
|
+
}, WithEditorView(ErrorBoundaryWithEditorViewWithAnalyticsReactContext), WithEditorView(ErrorBoundaryWithEditorView));
|
|
208
|
+
export default _default_1;
|
|
@@ -316,6 +316,8 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
316
316
|
visible: false
|
|
317
317
|
})));
|
|
318
318
|
});
|
|
319
|
+
|
|
320
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
319
321
|
export var FullPageContentArea = injectIntl(Content, {
|
|
320
322
|
forwardRef: true
|
|
321
323
|
});
|
|
@@ -127,4 +127,6 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
127
127
|
}, shouldSplitToolbar ? nonCustomToolbar : customToolbar), jsx(ToolbarPortalMountPoint, null))));
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
|
+
|
|
131
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
130
132
|
export var FullPageToolbar = injectIntl(EditorToolbar);
|
|
@@ -63,5 +63,6 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}]);
|
|
66
|
-
}(PureComponent);
|
|
67
|
-
|
|
66
|
+
}(PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
67
|
+
var _default_1 = injectIntl(ChromeCollapsed);
|
|
68
|
+
export default _default_1;
|
|
@@ -183,7 +183,7 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
183
183
|
return null;
|
|
184
184
|
}
|
|
185
185
|
}]);
|
|
186
|
-
}(React.PureComponent);
|
|
186
|
+
}(React.PureComponent); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
187
187
|
export var SwappableContentArea = injectIntl(SwappableContentAreaInner);
|
|
188
188
|
export function ContextPanel(props) {
|
|
189
189
|
var contextPanelContents = useSharedPluginStateWithSelector(props.editorAPI, ['contextPanel'], function (states) {
|
|
@@ -57,4 +57,7 @@ var TooltipHelpTrigger = function TooltipHelpTrigger(_ref) {
|
|
|
57
57
|
})
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
62
|
+
var _default_1 = injectIntl(TooltipHelpTrigger);
|
|
63
|
+
export default _default_1;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "219.1.
|
|
2
|
+
export var version = "219.1.3";
|
|
@@ -4,6 +4,7 @@ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
|
4
4
|
import type { ContextUpdateHandler, EditorActionsOptions, FeatureFlags, ReplaceRawValue, GetResolvedEditorStateReason, Transformer } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
7
8
|
/**
|
|
8
9
|
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-26729 Internal documentation for deprecation (no external access)} Editor actions is no longer supported and will be removed in a future version. Please use the core actions, or Plugin APIs directly instead
|
|
9
10
|
* @example If you were using editorActions.getValue() replace with:
|
|
@@ -49,7 +50,7 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
|
49
50
|
*
|
|
50
51
|
* WARNING: this may be called repeatedly, async with care
|
|
51
52
|
*/
|
|
52
|
-
getValue(): Promise<
|
|
53
|
+
getValue(): Promise<JSONDocNode | T | undefined>;
|
|
53
54
|
/**
|
|
54
55
|
* @deprecated - please use `getNodeWithPosByLocalId` found in the core plugin actions instead
|
|
55
56
|
* @example
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ErrorInfo } from 'react';
|
|
3
3
|
import type { Primitive } from '@sentry/types';
|
|
4
|
-
import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
|
|
4
|
+
import { default as AnalyticsReactContext, type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
5
5
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
6
6
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
@@ -40,14 +40,14 @@ export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBo
|
|
|
40
40
|
render(): React.JSX.Element;
|
|
41
41
|
}
|
|
42
42
|
export declare class ErrorBoundaryWithEditorViewWithAnalyticsReactContext extends ErrorBoundaryWithEditorView {
|
|
43
|
-
static contextType: React.Context<
|
|
43
|
+
static contextType: React.Context<AnalyticsReactContextInterface>;
|
|
44
44
|
context: React.ContextType<typeof AnalyticsReactContext>;
|
|
45
45
|
constructor(props: ErrorBoundaryProps);
|
|
46
46
|
protected logException: (error: Error, tags?: {
|
|
47
47
|
[key: string]: Primitive;
|
|
48
48
|
}) => void;
|
|
49
49
|
}
|
|
50
|
-
declare const
|
|
50
|
+
declare const _default_1: React.FC<Omit<ErrorBoundaryProps, "editorView"> & {
|
|
51
51
|
children?: React.ReactNode | undefined;
|
|
52
52
|
}>;
|
|
53
|
-
export default
|
|
53
|
+
export default _default_1;
|
|
@@ -180,8 +180,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
180
180
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
181
181
|
};
|
|
182
182
|
commands: {
|
|
183
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
183
184
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
184
185
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
186
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
185
187
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
186
188
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
187
189
|
};
|
|
@@ -262,8 +264,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
262
264
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
263
265
|
};
|
|
264
266
|
commands: {
|
|
267
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
265
268
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
266
269
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
270
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
267
271
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
268
272
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
269
273
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export declare const createEditorNativeAnchorSupportPlugin: (schema: Schema) => SafePlugin
|
|
3
|
+
export declare const createEditorNativeAnchorSupportPlugin: (schema: Schema) => SafePlugin;
|
|
@@ -267,8 +267,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
267
267
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
268
268
|
};
|
|
269
269
|
commands: {
|
|
270
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
270
271
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
271
272
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
273
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
272
274
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
273
275
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
274
276
|
};
|
|
@@ -349,8 +351,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
349
351
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
350
352
|
};
|
|
351
353
|
commands: {
|
|
354
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
352
355
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
353
356
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
357
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
354
358
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
355
359
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
356
360
|
};
|
|
@@ -180,8 +180,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
180
180
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
181
181
|
};
|
|
182
182
|
commands: {
|
|
183
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
183
184
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
184
185
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
186
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
185
187
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
186
188
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
187
189
|
};
|
|
@@ -262,8 +264,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
262
264
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
263
265
|
};
|
|
264
266
|
commands: {
|
|
267
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
265
268
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
266
269
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
270
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
267
271
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
268
272
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
269
273
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
10
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -48,7 +48,7 @@ interface FullPageEditorContentAreaProps {
|
|
|
48
48
|
}
|
|
49
49
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
50
50
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
51
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<
|
|
51
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "ref"> & React.RefAttributes<any>> & {
|
|
52
52
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
53
53
|
};
|
|
54
54
|
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
8
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
9
9
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
11
11
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -51,6 +51,6 @@ export interface FullPageToolbarProps {
|
|
|
51
51
|
showKeyline: boolean;
|
|
52
52
|
}
|
|
53
53
|
export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
|
|
54
|
-
export declare const FullPageToolbar: React.FC<
|
|
54
|
+
export declare const FullPageToolbar: React.FC<WithIntlProps<FullPageToolbarProps & WrappedComponentProps>> & {
|
|
55
55
|
WrappedComponent: React.ComponentType<FullPageToolbarProps & WrappedComponentProps>;
|
|
56
56
|
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
export interface Props {
|
|
8
8
|
label?: string;
|
|
9
9
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
10
10
|
text?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default _default_1;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { SerializedStyles } from '@emotion/react';
|
|
8
|
-
import type { IntlShape } from 'react-intl';
|
|
8
|
+
import type { IntlShape, WithIntlProps } from 'react-intl';
|
|
9
9
|
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
11
11
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -23,7 +23,7 @@ type SwappableContentAreaProps = {
|
|
|
23
23
|
intl: IntlShape;
|
|
24
24
|
pluginContent?: React.ReactNode;
|
|
25
25
|
} & Props;
|
|
26
|
-
export declare const SwappableContentArea: React.FC<
|
|
26
|
+
export declare const SwappableContentArea: React.FC<WithIntlProps<SwappableContentAreaProps>> & {
|
|
27
27
|
WrappedComponent: React.ComponentType<SwappableContentAreaProps>;
|
|
28
28
|
};
|
|
29
29
|
export declare function ContextPanel(props: Props): jsx.JSX.Element;
|
|
@@ -3,6 +3,6 @@ export declare const listsStyles: SerializedStyles;
|
|
|
3
3
|
export declare const diffListStyles: SerializedStyles;
|
|
4
4
|
export declare const listsStylesMarginLayoutShiftFix: SerializedStyles;
|
|
5
5
|
export declare const listsStylesSafariFix: SerializedStyles;
|
|
6
|
-
export declare const EDITOR_LIST_DENSE_GAP
|
|
6
|
+
export declare const EDITOR_LIST_DENSE_GAP: "max(0px, calc((var(--ak-editor-base-font-size, 16px) - 13px) * (4 / 3)))";
|
|
7
7
|
export declare const getDenseListStyles: (baseFontSize?: number) => SerializedStyles;
|
|
8
8
|
export declare const listItemHiddenMarkerStyles: SerializedStyles;
|
|
@@ -3,9 +3,9 @@ export declare const resizerItemClassName = "resizer-item";
|
|
|
3
3
|
export declare const resizerHoverZoneClassName = "resizer-hover-zone";
|
|
4
4
|
export declare const resizerExtendedZone = "resizer-is-extended";
|
|
5
5
|
export declare const resizerHandleClassName = "resizer-handle";
|
|
6
|
-
export declare const resizerHandleTrackClassName
|
|
7
|
-
export declare const resizerHandleThumbClassName
|
|
8
|
-
export declare const resizerDangerClassName
|
|
6
|
+
export declare const resizerHandleTrackClassName: "resizer-handle-track";
|
|
7
|
+
export declare const resizerHandleThumbClassName: "resizer-handle-thumb";
|
|
8
|
+
export declare const resizerDangerClassName: "resizer-handle-danger";
|
|
9
9
|
export declare const resizerHandleThumbWidth = 3;
|
|
10
10
|
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
11
11
|
export declare const resizerStyles: SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HelpDialogPlugin } from '@atlaskit/editor-plugins/help-dialog';
|
|
5
5
|
import type { PositionType } from '@atlaskit/tooltip/types';
|
|
@@ -8,7 +8,7 @@ interface Props {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
titlePosition?: PositionType;
|
|
10
10
|
}
|
|
11
|
-
declare const
|
|
11
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
|
-
export default
|
|
14
|
+
export default _default_1;
|
|
@@ -4,6 +4,7 @@ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
|
4
4
|
import type { ContextUpdateHandler, EditorActionsOptions, FeatureFlags, ReplaceRawValue, GetResolvedEditorStateReason, Transformer } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
7
8
|
/**
|
|
8
9
|
* @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-26729 Internal documentation for deprecation (no external access)} Editor actions is no longer supported and will be removed in a future version. Please use the core actions, or Plugin APIs directly instead
|
|
9
10
|
* @example If you were using editorActions.getValue() replace with:
|
|
@@ -49,7 +50,7 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
|
49
50
|
*
|
|
50
51
|
* WARNING: this may be called repeatedly, async with care
|
|
51
52
|
*/
|
|
52
|
-
getValue(): Promise<
|
|
53
|
+
getValue(): Promise<JSONDocNode | T | undefined>;
|
|
53
54
|
/**
|
|
54
55
|
* @deprecated - please use `getNodeWithPosByLocalId` found in the core plugin actions instead
|
|
55
56
|
* @example
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ErrorInfo } from 'react';
|
|
3
3
|
import type { Primitive } from '@sentry/types';
|
|
4
|
-
import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
|
|
4
|
+
import { default as AnalyticsReactContext, type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
5
5
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
6
6
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
@@ -40,14 +40,14 @@ export declare class ErrorBoundaryWithEditorView extends React.Component<ErrorBo
|
|
|
40
40
|
render(): React.JSX.Element;
|
|
41
41
|
}
|
|
42
42
|
export declare class ErrorBoundaryWithEditorViewWithAnalyticsReactContext extends ErrorBoundaryWithEditorView {
|
|
43
|
-
static contextType: React.Context<
|
|
43
|
+
static contextType: React.Context<AnalyticsReactContextInterface>;
|
|
44
44
|
context: React.ContextType<typeof AnalyticsReactContext>;
|
|
45
45
|
constructor(props: ErrorBoundaryProps);
|
|
46
46
|
protected logException: (error: Error, tags?: {
|
|
47
47
|
[key: string]: Primitive;
|
|
48
48
|
}) => void;
|
|
49
49
|
}
|
|
50
|
-
declare const
|
|
50
|
+
declare const _default_1: React.FC<Omit<ErrorBoundaryProps, "editorView"> & {
|
|
51
51
|
children?: React.ReactNode | undefined;
|
|
52
52
|
}>;
|
|
53
|
-
export default
|
|
53
|
+
export default _default_1;
|
|
@@ -306,8 +306,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
306
306
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
307
307
|
};
|
|
308
308
|
commands: {
|
|
309
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
309
310
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
310
311
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
312
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
311
313
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
312
314
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
313
315
|
};
|
|
@@ -399,8 +401,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
399
401
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
400
402
|
};
|
|
401
403
|
commands: {
|
|
404
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
402
405
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
403
406
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
407
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
404
408
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
405
409
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
406
410
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
export declare const createEditorNativeAnchorSupportPlugin: (schema: Schema) => SafePlugin
|
|
3
|
+
export declare const createEditorNativeAnchorSupportPlugin: (schema: Schema) => SafePlugin;
|
|
@@ -393,8 +393,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
393
393
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
394
394
|
};
|
|
395
395
|
commands: {
|
|
396
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
396
397
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
397
398
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
399
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
398
400
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
399
401
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
400
402
|
};
|
|
@@ -486,8 +488,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
486
488
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
487
489
|
};
|
|
488
490
|
commands: {
|
|
491
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
489
492
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
490
493
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
494
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
491
495
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
492
496
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
493
497
|
};
|
|
@@ -306,8 +306,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
306
306
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
307
307
|
};
|
|
308
308
|
commands: {
|
|
309
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
309
310
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
310
311
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
312
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
311
313
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
312
314
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
313
315
|
};
|
|
@@ -399,8 +401,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
399
401
|
setProvider: (provider: Promise<import("@atlaskit/editor-common/provider-factory").MediaProvider>) => boolean;
|
|
400
402
|
};
|
|
401
403
|
commands: {
|
|
404
|
+
clearAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
402
405
|
hideMediaViewer: import("@atlaskit/editor-common/types").EditorCommand;
|
|
403
406
|
insertMediaSingle: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs, inputMethod: import("@atlaskit/editor-common/analytics").InputMethodInsertMedia, insertMediaVia?: import("@atlaskit/editor-common/analytics").InsertMediaVia) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
407
|
+
setAIGenerating: (mediaId: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
404
408
|
showMediaViewer: (media: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
405
409
|
trackMediaPaste: (attrs: import("@atlaskit/adf-schema").MediaADFAttrs) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
406
410
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
7
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
10
10
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -48,7 +48,7 @@ interface FullPageEditorContentAreaProps {
|
|
|
48
48
|
}
|
|
49
49
|
export declare const CONTENT_AREA_TEST_ID = "ak-editor-fp-content-area";
|
|
50
50
|
export declare const EDITOR_CONTAINER = "ak-editor-container";
|
|
51
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<
|
|
51
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Omit<WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>>, "ref"> & React.RefAttributes<any>> & {
|
|
52
52
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps & React.RefAttributes<ScrollContainerRefs>>;
|
|
53
53
|
};
|
|
54
54
|
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import type { ReactElement } from 'react';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
8
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
9
9
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
11
11
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
@@ -51,6 +51,6 @@ export interface FullPageToolbarProps {
|
|
|
51
51
|
showKeyline: boolean;
|
|
52
52
|
}
|
|
53
53
|
export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
|
|
54
|
-
export declare const FullPageToolbar: React.FC<
|
|
54
|
+
export declare const FullPageToolbar: React.FC<WithIntlProps<FullPageToolbarProps & WrappedComponentProps>> & {
|
|
55
55
|
WrappedComponent: React.ComponentType<FullPageToolbarProps & WrappedComponentProps>;
|
|
56
56
|
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
export interface Props {
|
|
8
8
|
label?: string;
|
|
9
9
|
onFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
10
10
|
text?: string;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
12
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default _default_1;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import type { SerializedStyles } from '@emotion/react';
|
|
8
|
-
import type { IntlShape } from 'react-intl';
|
|
8
|
+
import type { IntlShape, WithIntlProps } from 'react-intl';
|
|
9
9
|
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
11
11
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -25,7 +25,7 @@ type SwappableContentAreaProps = {
|
|
|
25
25
|
intl: IntlShape;
|
|
26
26
|
pluginContent?: React.ReactNode;
|
|
27
27
|
} & Props;
|
|
28
|
-
export declare const SwappableContentArea: React.FC<
|
|
28
|
+
export declare const SwappableContentArea: React.FC<WithIntlProps<SwappableContentAreaProps>> & {
|
|
29
29
|
WrappedComponent: React.ComponentType<SwappableContentAreaProps>;
|
|
30
30
|
};
|
|
31
31
|
export declare function ContextPanel(props: Props): jsx.JSX.Element;
|
|
@@ -3,6 +3,6 @@ export declare const listsStyles: SerializedStyles;
|
|
|
3
3
|
export declare const diffListStyles: SerializedStyles;
|
|
4
4
|
export declare const listsStylesMarginLayoutShiftFix: SerializedStyles;
|
|
5
5
|
export declare const listsStylesSafariFix: SerializedStyles;
|
|
6
|
-
export declare const EDITOR_LIST_DENSE_GAP
|
|
6
|
+
export declare const EDITOR_LIST_DENSE_GAP: "max(0px, calc((var(--ak-editor-base-font-size, 16px) - 13px) * (4 / 3)))";
|
|
7
7
|
export declare const getDenseListStyles: (baseFontSize?: number) => SerializedStyles;
|
|
8
8
|
export declare const listItemHiddenMarkerStyles: SerializedStyles;
|
|
@@ -3,9 +3,9 @@ export declare const resizerItemClassName = "resizer-item";
|
|
|
3
3
|
export declare const resizerHoverZoneClassName = "resizer-hover-zone";
|
|
4
4
|
export declare const resizerExtendedZone = "resizer-is-extended";
|
|
5
5
|
export declare const resizerHandleClassName = "resizer-handle";
|
|
6
|
-
export declare const resizerHandleTrackClassName
|
|
7
|
-
export declare const resizerHandleThumbClassName
|
|
8
|
-
export declare const resizerDangerClassName
|
|
6
|
+
export declare const resizerHandleTrackClassName: "resizer-handle-track";
|
|
7
|
+
export declare const resizerHandleThumbClassName: "resizer-handle-thumb";
|
|
8
|
+
export declare const resizerDangerClassName: "resizer-handle-danger";
|
|
9
9
|
export declare const resizerHandleThumbWidth = 3;
|
|
10
10
|
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
11
11
|
export declare const resizerStyles: SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { HelpDialogPlugin } from '@atlaskit/editor-plugins/help-dialog';
|
|
5
5
|
import type { PositionType } from '@atlaskit/tooltip/types';
|
|
@@ -8,7 +8,7 @@ interface Props {
|
|
|
8
8
|
title?: string;
|
|
9
9
|
titlePosition?: PositionType;
|
|
10
10
|
}
|
|
11
|
-
declare const
|
|
11
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
|
-
export default
|
|
14
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "219.1.
|
|
3
|
+
"version": "219.1.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^5.16.0",
|
|
76
76
|
"@atlaskit/task-decision": "^20.0.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^69.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.0.0",
|
|
79
79
|
"@atlaskit/tooltip": "^21.2.0",
|
|
80
80
|
"@atlaskit/width-detector": "^5.1.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"uuid": "^3.1.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@atlaskit/editor-common": "^114.
|
|
94
|
+
"@atlaskit/editor-common": "^114.10.0",
|
|
95
95
|
"@atlaskit/link-provider": "^4.3.0",
|
|
96
96
|
"@atlaskit/media-core": "^37.0.0",
|
|
97
97
|
"react": "^18.2.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
113
113
|
"@atlaskit/link-provider": "^4.3.0",
|
|
114
114
|
"@atlaskit/linking-common": "^9.11.0",
|
|
115
|
-
"@atlaskit/logo": "^20.
|
|
115
|
+
"@atlaskit/logo": "^20.1.0",
|
|
116
116
|
"@atlaskit/media-core": "^37.0.0",
|
|
117
117
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
118
118
|
"@atlaskit/media-test-helpers": "^41.0.0",
|