@atlaskit/editor-core 185.10.3 → 185.11.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 +13 -0
- package/composable-editor/package.json +15 -0
- package/dist/cjs/composable-editor.js +13 -0
- package/dist/cjs/plugins/block-type/commands/block-type.js +35 -24
- package/dist/cjs/plugins/block-type/index.js +4 -3
- package/dist/cjs/plugins/block-type/pm-plugins/keymap.js +2 -2
- package/dist/cjs/plugins/insert-block/index.js +6 -3
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +2 -0
- package/dist/cjs/plugins/media/nodeviews/styles.js +4 -1
- package/dist/cjs/preset-universal.js +13 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/composable-editor.js +1 -0
- package/dist/es2019/plugins/block-type/commands/block-type.js +18 -7
- package/dist/es2019/plugins/block-type/index.js +6 -3
- package/dist/es2019/plugins/block-type/pm-plugins/keymap.js +2 -2
- package/dist/es2019/plugins/insert-block/index.js +47 -44
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/media.js +2 -0
- package/dist/es2019/plugins/media/nodeviews/styles.js +4 -1
- package/dist/es2019/preset-universal.js +1 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/composable-editor.js +1 -0
- package/dist/esm/plugins/block-type/commands/block-type.js +18 -7
- package/dist/esm/plugins/block-type/index.js +4 -3
- package/dist/esm/plugins/block-type/pm-plugins/keymap.js +2 -2
- package/dist/esm/plugins/insert-block/index.js +6 -3
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +2 -0
- package/dist/esm/plugins/media/nodeviews/styles.js +4 -1
- package/dist/esm/preset-universal.js +1 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/composable-editor.d.ts +1 -0
- package/dist/types/plugins/block-type/commands/block-type.d.ts +11 -2
- package/dist/types/plugins/block-type/pm-plugins/keymap.d.ts +2 -1
- package/dist/types/plugins/insert-block/index.d.ts +4 -2
- package/dist/types/preset-universal.d.ts +1 -0
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/ElementBrowser/components/CategoryList.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor.d.ts +1 -0
- package/dist/types-ts4.5/plugins/block-type/commands/block-type.d.ts +11 -2
- package/dist/types-ts4.5/plugins/block-type/pm-plugins/keymap.d.ts +2 -1
- package/dist/types-ts4.5/plugins/insert-block/index.d.ts +4 -2
- package/dist/types-ts4.5/preset-universal.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ElementBrowser/components/CategoryList.d.ts +1 -1
- package/dist/types-ts4.5/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types-ts4.5/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
- package/package.json +13 -15
- package/preset-universal/package.json +15 -0
- package/report.api.md +3 -1
- package/tmp/api-report-tmp.d.ts +2 -1
|
@@ -6,7 +6,9 @@ import { safeInsert } from 'prosemirror-utils';
|
|
|
6
6
|
import { CODE_BLOCK, BLOCK_QUOTE, PANEL, HEADINGS_BY_NAME, NORMAL_TEXT } from '../types';
|
|
7
7
|
import { removeBlockMarks } from '../../../utils/mark';
|
|
8
8
|
import { shouldSplitSelectedNodeOnNodeInsertion } from '@atlaskit/editor-common/insert';
|
|
9
|
-
import { withAnalytics
|
|
9
|
+
import { withAnalytics as withAnalyticsDeprecated } from '../../analytics';
|
|
10
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
|
+
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
10
12
|
import { filterChildrenBetween } from '../../../utils';
|
|
11
13
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
12
14
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
@@ -90,7 +92,7 @@ function withCurrentHeadingLevel(fn) {
|
|
|
90
92
|
}
|
|
91
93
|
export function setNormalTextWithAnalytics(inputMethod) {
|
|
92
94
|
return withCurrentHeadingLevel(function (previousHeadingLevel) {
|
|
93
|
-
return
|
|
95
|
+
return withAnalyticsDeprecated({
|
|
94
96
|
action: ACTION.FORMATTED,
|
|
95
97
|
actionSubject: ACTION_SUBJECT.TEXT,
|
|
96
98
|
eventType: EVENT_TYPE.TRACK,
|
|
@@ -124,7 +126,7 @@ export function setHeading(level) {
|
|
|
124
126
|
}
|
|
125
127
|
export var setHeadingWithAnalytics = function setHeadingWithAnalytics(newHeadingLevel, inputMethod) {
|
|
126
128
|
return withCurrentHeadingLevel(function (previousHeadingLevel) {
|
|
127
|
-
return
|
|
129
|
+
return withAnalyticsDeprecated({
|
|
128
130
|
action: ACTION.FORMATTED,
|
|
129
131
|
actionSubject: ACTION_SUBJECT.TEXT,
|
|
130
132
|
eventType: EVENT_TYPE.TRACK,
|
|
@@ -160,10 +162,19 @@ export function insertBlockType(name) {
|
|
|
160
162
|
return false;
|
|
161
163
|
};
|
|
162
164
|
}
|
|
163
|
-
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @param name - block type name
|
|
169
|
+
* @param inputMethod - input method
|
|
170
|
+
* @param editorAnalyticsApi - analytics api, undefined if not available either because it failed to load or wasn't added
|
|
171
|
+
* otherwise Editor becomes very sad and crashes
|
|
172
|
+
* @returns - command that inserts block type
|
|
173
|
+
*/
|
|
174
|
+
export var insertBlockTypesWithAnalytics = function insertBlockTypesWithAnalytics(name, inputMethod, editorAnalyticsApi) {
|
|
164
175
|
switch (name) {
|
|
165
176
|
case BLOCK_QUOTE.name:
|
|
166
|
-
return withAnalytics({
|
|
177
|
+
return withAnalytics(editorAnalyticsApi, {
|
|
167
178
|
action: ACTION.FORMATTED,
|
|
168
179
|
actionSubject: ACTION_SUBJECT.TEXT,
|
|
169
180
|
eventType: EVENT_TYPE.TRACK,
|
|
@@ -173,7 +184,7 @@ export var insertBlockTypesWithAnalytics = function insertBlockTypesWithAnalytic
|
|
|
173
184
|
}
|
|
174
185
|
})(insertBlockType(name));
|
|
175
186
|
case CODE_BLOCK.name:
|
|
176
|
-
return withAnalytics({
|
|
187
|
+
return withAnalytics(editorAnalyticsApi, {
|
|
177
188
|
action: ACTION.INSERTED,
|
|
178
189
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
179
190
|
actionSubjectId: ACTION_SUBJECT_ID.CODE_BLOCK,
|
|
@@ -183,7 +194,7 @@ export var insertBlockTypesWithAnalytics = function insertBlockTypesWithAnalytic
|
|
|
183
194
|
eventType: EVENT_TYPE.TRACK
|
|
184
195
|
})(insertBlockType(name));
|
|
185
196
|
case PANEL.name:
|
|
186
|
-
return withAnalytics({
|
|
197
|
+
return withAnalytics(editorAnalyticsApi, {
|
|
187
198
|
action: ACTION.INSERTED,
|
|
188
199
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
189
200
|
actionSubjectId: ACTION_SUBJECT_ID.PANEL,
|
|
@@ -126,9 +126,10 @@ var blockTypePlugin = function blockTypePlugin(options, api) {
|
|
|
126
126
|
{
|
|
127
127
|
name: 'blockTypeKeyMap',
|
|
128
128
|
plugin: function plugin(_ref5) {
|
|
129
|
+
var _api$dependencies$ana;
|
|
129
130
|
var schema = _ref5.schema,
|
|
130
131
|
featureFlags = _ref5.featureFlags;
|
|
131
|
-
return keymapPlugin(schema, featureFlags);
|
|
132
|
+
return keymapPlugin(schema, featureFlags, api === null || api === void 0 ? void 0 : (_api$dependencies$ana = api.dependencies.analytics) === null || _api$dependencies$ana === void 0 ? void 0 : _api$dependencies$ana.actions);
|
|
132
133
|
}
|
|
133
134
|
}];
|
|
134
135
|
},
|
|
@@ -168,9 +169,9 @@ var blockTypePlugin = function blockTypePlugin(options, api) {
|
|
|
168
169
|
},
|
|
169
170
|
pluginsOptions: {
|
|
170
171
|
quickInsert: function quickInsert(intl) {
|
|
171
|
-
var _api$dependencies$
|
|
172
|
+
var _api$dependencies$ana2, _api$dependencies$ana3;
|
|
172
173
|
var exclude = options && options.allowBlockType && options.allowBlockType.exclude ? options.allowBlockType.exclude : [];
|
|
173
|
-
return [].concat(_toConsumableArray(blockquotePluginOptions(intl, exclude.indexOf('blockquote') === -1, api === null || api === void 0 ? void 0 : (_api$dependencies$
|
|
174
|
+
return [].concat(_toConsumableArray(blockquotePluginOptions(intl, exclude.indexOf('blockquote') === -1, api === null || api === void 0 ? void 0 : (_api$dependencies$ana2 = api.dependencies.analytics) === null || _api$dependencies$ana2 === void 0 ? void 0 : _api$dependencies$ana2.actions)), _toConsumableArray(headingPluginOptions(intl, exclude.indexOf('heading') === -1, api === null || api === void 0 ? void 0 : (_api$dependencies$ana3 = api.dependencies.analytics) === null || _api$dependencies$ana3 === void 0 ? void 0 : _api$dependencies$ana3.actions)));
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
177
|
};
|
|
@@ -10,7 +10,7 @@ import { INPUT_METHOD } from '../../analytics';
|
|
|
10
10
|
import { isNodeAWrappingBlockNode } from '../utils';
|
|
11
11
|
var backspace = chainCommands(cleanUpAtTheStartOfDocument, deleteBlockContent(isNodeAWrappingBlockNode), deleteAndMoveCursor);
|
|
12
12
|
var del = chainCommands(deleteEmptyParagraphAndMoveBlockUp(isNodeAWrappingBlockNode), deleteBlockContent(isNodeAWrappingBlockNode), deleteAndMoveCursor);
|
|
13
|
-
export default function keymapPlugin(schema, featureFlags) {
|
|
13
|
+
export default function keymapPlugin(schema, featureFlags, editorAnalyticsApi) {
|
|
14
14
|
var list = {};
|
|
15
15
|
keymaps.bindKeymapWithCommand(keymaps.insertNewLine.common, commands.insertNewLineWithAnalytics, list);
|
|
16
16
|
keymaps.bindKeymapWithCommand(keymaps.moveUp.common, commands.createNewParagraphAbove, list);
|
|
@@ -21,7 +21,7 @@ export default function keymapPlugin(schema, featureFlags) {
|
|
|
21
21
|
keymaps.bindKeymapWithCommand(keymaps.deleteKey.common, del, list);
|
|
22
22
|
keymaps.bindKeymapWithCommand(keymaps.forwardDelete.mac, del, list);
|
|
23
23
|
if (schema.nodes[blockTypes.BLOCK_QUOTE.nodeName]) {
|
|
24
|
-
keymaps.bindKeymapWithCommand(keymaps.findShortcutByKeymap(keymaps.toggleBlockQuote), insertBlockTypesWithAnalytics(blockTypes.BLOCK_QUOTE.name, INPUT_METHOD.KEYBOARD), list);
|
|
24
|
+
keymaps.bindKeymapWithCommand(keymaps.findShortcutByKeymap(keymaps.toggleBlockQuote), insertBlockTypesWithAnalytics(blockTypes.BLOCK_QUOTE.name, INPUT_METHOD.KEYBOARD, editorAnalyticsApi), list);
|
|
25
25
|
}
|
|
26
26
|
return keymap(list);
|
|
27
27
|
}
|
|
@@ -36,8 +36,10 @@ var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize) {
|
|
|
36
36
|
* Wrapper over insertBlockTypeWithAnalytics to autobind toolbar input method
|
|
37
37
|
* @param name Block name
|
|
38
38
|
*/
|
|
39
|
-
function handleInsertBlockType(
|
|
40
|
-
return
|
|
39
|
+
function handleInsertBlockType(editorAnalyticsApi) {
|
|
40
|
+
return function (name) {
|
|
41
|
+
return insertBlockTypesWithAnalytics(name, INPUT_METHOD.TOOLBAR, editorAnalyticsApi);
|
|
42
|
+
};
|
|
41
43
|
}
|
|
42
44
|
var insertBlockPlugin = function insertBlockPlugin() {
|
|
43
45
|
var _api$dependencies, _api$dependencies$fea;
|
|
@@ -75,6 +77,7 @@ var insertBlockPlugin = function insertBlockPlugin() {
|
|
|
75
77
|
layoutState: layoutStateKey
|
|
76
78
|
},
|
|
77
79
|
render: function render(_ref2) {
|
|
80
|
+
var _api$dependencies$ana;
|
|
78
81
|
var mentionState = _ref2.mentionState,
|
|
79
82
|
blockTypeState = _ref2.blockTypeState,
|
|
80
83
|
mediaState = _ref2.mediaState,
|
|
@@ -114,7 +117,7 @@ var insertBlockPlugin = function insertBlockPlugin() {
|
|
|
114
117
|
emojiProvider: providers.emojiProvider,
|
|
115
118
|
nativeStatusSupported: options.nativeStatusSupported,
|
|
116
119
|
horizontalRuleEnabled: options.horizontalRuleEnabled,
|
|
117
|
-
onInsertBlockType: handleInsertBlockType,
|
|
120
|
+
onInsertBlockType: handleInsertBlockType(api === null || api === void 0 ? void 0 : (_api$dependencies$ana = api.dependencies.analytics) === null || _api$dependencies$ana === void 0 ? void 0 : _api$dependencies$ana.actions),
|
|
118
121
|
onInsertMacroFromMacroBrowser: insertMacroFromMacroBrowser,
|
|
119
122
|
macroProvider: macroState.macroProvider,
|
|
120
123
|
popupsMountPoint: popupsMountPoint,
|
|
@@ -12,6 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
12
12
|
import { withImageLoader } from '@atlaskit/editor-common/utils';
|
|
13
13
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
14
14
|
import { MEDIA_CONTEXT } from '@atlaskit/analytics-namespaced-context';
|
|
15
|
+
import { IMAGE_AND_BORDER_ADJUSTMENT } from '@atlaskit/editor-common/ui';
|
|
15
16
|
import { Card, CardLoading } from '@atlaskit/media-card';
|
|
16
17
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
17
18
|
import React, { Component } from 'react';
|
|
@@ -209,6 +210,7 @@ export var MediaNode = /*#__PURE__*/function (_Component) {
|
|
|
209
210
|
border: !!borderMark
|
|
210
211
|
})
|
|
211
212
|
}, /*#__PURE__*/React.createElement(Card, {
|
|
213
|
+
expandByPixel: borderMark && IMAGE_AND_BORDER_ADJUSTMENT,
|
|
212
214
|
mediaClientConfig: mediaClientConfig,
|
|
213
215
|
resizeMode: "stretchy-fit",
|
|
214
216
|
dimensions: maxDimensions,
|
|
@@ -3,6 +3,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/react';
|
|
6
|
+
import { IMAGE_AND_BORDER_ADJUSTMENT } from '@atlaskit/editor-common/ui';
|
|
6
7
|
export var MediaInlineNodeSelector = 'media-inline-node';
|
|
7
8
|
export var MediaSingleNodeSelector = 'media-single-node';
|
|
8
9
|
export var figureWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0;\n"])));
|
|
@@ -22,7 +23,9 @@ export var MediaCardWrapper = function MediaCardWrapper(_ref) {
|
|
|
22
23
|
borderColor: "var(--custom-palette-color)",
|
|
23
24
|
borderWidth: "".concat(calculatedBorderWidth, "px"),
|
|
24
25
|
borderStyle: 'solid',
|
|
25
|
-
borderRadius: "".concat(calculatedBorderWidth * 2, "px")
|
|
26
|
+
borderRadius: "".concat(calculatedBorderWidth * 2, "px"),
|
|
27
|
+
width: calculatedBorderWidth > 0 ? "calc(100% - ".concat(IMAGE_AND_BORDER_ADJUSTMENT, "px)") : undefined,
|
|
28
|
+
height: calculatedBorderWidth > 0 ? "calc(100% - ".concat(IMAGE_AND_BORDER_ADJUSTMENT, "px)") : undefined
|
|
26
29
|
}
|
|
27
30
|
}, jsx("div", {
|
|
28
31
|
css: forcedDimensions,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useUniversalPreset } from './labs/next/presets/useUniversalPreset';
|
package/dist/esm/version.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Editor } from './editor-next';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command } from '../../../types';
|
|
2
2
|
import { HeadingLevelsAndNormalText } from '../types';
|
|
3
|
-
import { INPUT_METHOD } from '
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
export type InputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
5
6
|
export declare function setBlockType(name: string): Command;
|
|
6
7
|
export declare function setBlockTypeWithAnalytics(name: string, inputMethod: InputMethod): Command;
|
|
@@ -9,5 +10,13 @@ export declare function setNormalTextWithAnalytics(inputMethod: InputMethod): Co
|
|
|
9
10
|
export declare function setHeading(level: HeadingLevelsAndNormalText): Command;
|
|
10
11
|
export declare const setHeadingWithAnalytics: (newHeadingLevel: HeadingLevelsAndNormalText, inputMethod: InputMethod) => Command;
|
|
11
12
|
export declare function insertBlockType(name: string): Command;
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param name - block type name
|
|
16
|
+
* @param inputMethod - input method
|
|
17
|
+
* @param editorAnalyticsApi - analytics api, undefined if not available either because it failed to load or wasn't added
|
|
18
|
+
* otherwise Editor becomes very sad and crashes
|
|
19
|
+
* @returns - command that inserts block type
|
|
20
|
+
*/
|
|
21
|
+
export declare const insertBlockTypesWithAnalytics: (name: string, inputMethod: InputMethod, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
13
22
|
export declare const cleanUpAtTheStartOfDocument: Command;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'prosemirror-model';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { FeatureFlags } from '../../../types/feature-flags';
|
|
4
|
-
|
|
4
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
export default function keymapPlugin(schema: Schema, featureFlags: FeatureFlags, editorAnalyticsApi: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
3
2
|
import { tablesPlugin } from '@atlaskit/editor-plugin-table';
|
|
3
|
+
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
export interface InsertBlockOptions {
|
|
5
6
|
allowTables?: boolean;
|
|
6
7
|
allowExpand?: boolean;
|
|
@@ -14,7 +15,8 @@ declare const insertBlockPlugin: NextEditorPlugin<'insertBlock', {
|
|
|
14
15
|
pluginConfiguration: InsertBlockOptions | undefined;
|
|
15
16
|
dependencies: [
|
|
16
17
|
typeof featureFlagsPlugin,
|
|
17
|
-
OptionalPlugin<typeof tablesPlugin
|
|
18
|
+
OptionalPlugin<typeof tablesPlugin>,
|
|
19
|
+
OptionalPlugin<typeof analyticsPlugin>
|
|
18
20
|
];
|
|
19
21
|
}>;
|
|
20
22
|
export default insertBlockPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useUniversalPreset } from './labs/next/presets/useUniversalPreset';
|
|
@@ -32,7 +32,7 @@ type ScrollContainerRefs = {
|
|
|
32
32
|
scrollContainer: HTMLDivElement | null;
|
|
33
33
|
contentArea: HTMLDivElement | null;
|
|
34
34
|
};
|
|
35
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps<"intl"> & React.RefAttributes<ScrollContainerRefs>>>, "
|
|
35
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps<"intl"> & React.RefAttributes<ScrollContainerRefs>>>, "key" | "children" | keyof FullPageEditorContentAreaProps | "forwardedRef"> & React.RefAttributes<any>> & {
|
|
36
36
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps<"intl"> & React.RefAttributes<ScrollContainerRefs>>;
|
|
37
37
|
};
|
|
38
38
|
export {};
|
|
@@ -3,10 +3,10 @@ export declare const fullPageEditorWrapper: import("@emotion/react").SerializedS
|
|
|
3
3
|
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Pick<{
|
|
4
4
|
theme?: any;
|
|
5
5
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
6
|
-
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "
|
|
6
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "list" | "size" | "className" | "role" | "id" | "start" | "wrap" | "step" | "hidden" | "multiple" | keyof {
|
|
7
7
|
theme?: any;
|
|
8
8
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
9
|
-
}> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
} | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export declare const positionedOverEditorStyle: import("@emotion/react").SerializedStyles;
|
|
11
11
|
export declare const contentArea: import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
@@ -25,5 +25,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
25
25
|
*/
|
|
26
26
|
skipFocusButtonAfterPick?: boolean;
|
|
27
27
|
};
|
|
28
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "currentColor" | "cols" | "analyticsContext" | "
|
|
28
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "currentColor" | "cols" | "analyticsContext" | "mountPoint" | "alignX" | "colorPalette" | "placement" | "setDisableParentScroll" | "hexToPaletteColor" | "showSomewhatSemanticTooltips" | "paletteColorTooltipMessages" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
29
29
|
export default _default;
|
|
@@ -18,5 +18,5 @@ type Props = {
|
|
|
18
18
|
isLoading?: boolean;
|
|
19
19
|
featureFlags?: FeatureFlags;
|
|
20
20
|
} & WithAnalyticsEventsProps;
|
|
21
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "
|
|
21
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "autoSaveReject" | "onChange" | "isLoading" | "fields" | "parameters" | "onCancel" | "featureFlags" | "autoSave" | "analyticsContext" | "errorMessage" | "extensionManifest" | "autoSaveTrigger" | "showHeader" | "closeOnEsc"> & React.RefAttributes<any>>;
|
|
22
22
|
export default _default;
|
|
@@ -12,5 +12,5 @@ interface Props {
|
|
|
12
12
|
export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>;
|
|
14
14
|
};
|
|
15
|
-
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "
|
|
15
|
+
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "forwardedRef" | "analyticsContext" | keyof Props> & React.RefAttributes<any>>;
|
|
16
16
|
export {};
|
|
@@ -7,6 +7,6 @@ type ContentStylesProps = {
|
|
|
7
7
|
featureFlags?: FeatureFlags;
|
|
8
8
|
};
|
|
9
9
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
10
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "
|
|
10
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "list" | "size" | "className" | "role" | "id" | "start" | "wrap" | "step" | "hidden" | "multiple" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "list" | "size" | "className" | "role" | "id" | "start" | "wrap" | "step" | "hidden" | "multiple" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default _default;
|
|
@@ -6,5 +6,5 @@ interface Props {
|
|
|
6
6
|
onSelectCategory: (category: Category) => void;
|
|
7
7
|
selectedCategory?: string;
|
|
8
8
|
}
|
|
9
|
-
declare const MemoizedCategoryListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "
|
|
9
|
+
declare const MemoizedCategoryListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "createAnalyticsEvent" | "analyticsContext" | keyof Props> & React.RefAttributes<any>>>;
|
|
10
10
|
export default MemoizedCategoryListWithAnalytics;
|
|
@@ -25,5 +25,5 @@ type ElementItemType = {
|
|
|
25
25
|
index: number;
|
|
26
26
|
};
|
|
27
27
|
export declare function ElementItem({ inlineMode, selected, item, index, onInsertItem, focus, setFocusedItemIndex, }: ElementItemType): jsx.JSX.Element;
|
|
28
|
-
declare const MemoizedElementListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & SelectedItemProps & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "
|
|
28
|
+
declare const MemoizedElementListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & SelectedItemProps & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "createAnalyticsEvent" | "analyticsContext" | keyof Props | keyof SelectedItemProps> & React.RefAttributes<any>>>;
|
|
29
29
|
export default MemoizedElementListWithAnalytics;
|
|
@@ -19,5 +19,5 @@ export type StatelessElementBrowserProps = {
|
|
|
19
19
|
emptyStateHandler?: EmptyStateHandler;
|
|
20
20
|
viewMoreItem?: QuickInsertItem;
|
|
21
21
|
} & WithAnalyticsEventsProps;
|
|
22
|
-
declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "
|
|
22
|
+
declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "items" | "analyticsContext" | "categories" | "emptyStateHandler" | "selectedCategory" | "searchTerm" | "onInsertItem" | "onSelectCategory" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
|
|
23
23
|
export default MemoizedElementBrowser;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Editor } from './editor-next';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Command } from '../../../types';
|
|
2
2
|
import { HeadingLevelsAndNormalText } from '../types';
|
|
3
|
-
import { INPUT_METHOD } from '
|
|
3
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
export type InputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
5
6
|
export declare function setBlockType(name: string): Command;
|
|
6
7
|
export declare function setBlockTypeWithAnalytics(name: string, inputMethod: InputMethod): Command;
|
|
@@ -9,5 +10,13 @@ export declare function setNormalTextWithAnalytics(inputMethod: InputMethod): Co
|
|
|
9
10
|
export declare function setHeading(level: HeadingLevelsAndNormalText): Command;
|
|
10
11
|
export declare const setHeadingWithAnalytics: (newHeadingLevel: HeadingLevelsAndNormalText, inputMethod: InputMethod) => Command;
|
|
11
12
|
export declare function insertBlockType(name: string): Command;
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param name - block type name
|
|
16
|
+
* @param inputMethod - input method
|
|
17
|
+
* @param editorAnalyticsApi - analytics api, undefined if not available either because it failed to load or wasn't added
|
|
18
|
+
* otherwise Editor becomes very sad and crashes
|
|
19
|
+
* @returns - command that inserts block type
|
|
20
|
+
*/
|
|
21
|
+
export declare const insertBlockTypesWithAnalytics: (name: string, inputMethod: InputMethod, editorAnalyticsApi: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
13
22
|
export declare const cleanUpAtTheStartOfDocument: Command;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'prosemirror-model';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { FeatureFlags } from '../../../types/feature-flags';
|
|
4
|
-
|
|
4
|
+
import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
export default function keymapPlugin(schema: Schema, featureFlags: FeatureFlags, editorAnalyticsApi: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
3
2
|
import { tablesPlugin } from '@atlaskit/editor-plugin-table';
|
|
3
|
+
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
5
|
export interface InsertBlockOptions {
|
|
5
6
|
allowTables?: boolean;
|
|
6
7
|
allowExpand?: boolean;
|
|
@@ -14,7 +15,8 @@ declare const insertBlockPlugin: NextEditorPlugin<'insertBlock', {
|
|
|
14
15
|
pluginConfiguration: InsertBlockOptions | undefined;
|
|
15
16
|
dependencies: [
|
|
16
17
|
typeof featureFlagsPlugin,
|
|
17
|
-
OptionalPlugin<typeof tablesPlugin
|
|
18
|
+
OptionalPlugin<typeof tablesPlugin>,
|
|
19
|
+
OptionalPlugin<typeof analyticsPlugin>
|
|
18
20
|
];
|
|
19
21
|
}>;
|
|
20
22
|
export default insertBlockPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useUniversalPreset } from './labs/next/presets/useUniversalPreset';
|
|
@@ -32,7 +32,7 @@ type ScrollContainerRefs = {
|
|
|
32
32
|
scrollContainer: HTMLDivElement | null;
|
|
33
33
|
contentArea: HTMLDivElement | null;
|
|
34
34
|
};
|
|
35
|
-
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps<"intl"> & React.RefAttributes<ScrollContainerRefs>>>, "
|
|
35
|
+
export declare const FullPageContentArea: React.ForwardRefExoticComponent<Pick<import("react-intl-next").WithIntlProps<React.PropsWithChildren<FullPageEditorContentAreaProps & WrappedComponentProps<"intl"> & React.RefAttributes<ScrollContainerRefs>>>, "key" | "children" | keyof FullPageEditorContentAreaProps | "forwardedRef"> & React.RefAttributes<any>> & {
|
|
36
36
|
WrappedComponent: React.ComponentType<FullPageEditorContentAreaProps & WrappedComponentProps<"intl"> & React.RefAttributes<ScrollContainerRefs>>;
|
|
37
37
|
};
|
|
38
38
|
export {};
|