@atlaskit/editor-core 197.2.0 → 197.2.2
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 +18 -0
- package/dist/cjs/composable-editor/core-editor.js +2 -2
- package/dist/cjs/create-editor/create-schema.js +2 -2
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +57 -66
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +1 -18
- package/dist/cjs/ui/ContextPanel/index.js +1 -8
- package/dist/cjs/utils/document.js +0 -24
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +1 -1
- package/dist/es2019/create-editor/create-schema.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +58 -68
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -18
- package/dist/es2019/ui/ContextPanel/index.js +0 -5
- package/dist/es2019/utils/document.js +0 -20
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +1 -1
- package/dist/esm/create-editor/create-schema.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +58 -67
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -18
- package/dist/esm/ui/ContextPanel/index.js +0 -5
- package/dist/esm/utils/document.js +0 -22
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +1 -1
- package/dist/types/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +1 -1
- package/dist/types/composable-editor/hooks/useMeasureEditorMountTime.d.ts +1 -1
- package/dist/types/composable-editor/hooks/useProviderFactory.d.ts +1 -1
- package/dist/types/composable-editor/utils/editorMeasureTTICallback.d.ts +1 -1
- package/dist/types/composable-editor/utils/sendDurationAnalytics.d.ts +1 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -1
- package/dist/types/create-editor/create-plugins-list.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/presets/default.d.ts +1 -1
- package/dist/types/presets/universal.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -2
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/ContextPanel/index.d.ts +0 -1
- package/dist/types/utils/document.d.ts +0 -5
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/hooks/useMeasureEditorMountTime.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/hooks/useProviderFactory.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/utils/editorMeasureTTICallback.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/utils/sendDurationAnalytics.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/presets/default.d.ts +1 -1
- package/dist/types-ts4.5/presets/universal.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +0 -1
- package/dist/types-ts4.5/utils/document.d.ts +0 -5
- package/package.json +3 -7
- package/dist/cjs/ui/ContextPanel/deprecated.js +0 -283
- package/dist/cjs/utils/node-width.js +0 -20
- package/dist/es2019/ui/ContextPanel/deprecated.js +0 -258
- package/dist/es2019/utils/node-width.js +0 -9
- package/dist/esm/ui/ContextPanel/deprecated.js +0 -277
- package/dist/esm/utils/node-width.js +0 -9
- package/dist/types/ui/ContextPanel/deprecated.d.ts +0 -44
- package/dist/types/utils/node-width.d.ts +0 -7
- package/dist/types-ts4.5/ui/ContextPanel/deprecated.d.ts +0 -44
- package/dist/types-ts4.5/utils/node-width.d.ts +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sanitizeNodes } from '@atlaskit/adf-schema';
|
|
1
|
+
import { sanitizeNodes } from '@atlaskit/adf-schema/schema';
|
|
2
2
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { fixExcludes } from './create-editor';
|
|
4
4
|
import { sortByOrder } from './sort-by-order';
|
package/dist/esm/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export {
|
|
|
12
12
|
* @deprecated
|
|
13
13
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
ContextPanel } from './ui/ContextPanel';
|
|
16
16
|
export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
17
17
|
export { MentionResource } from '@atlaskit/mention/resource';
|
|
18
18
|
export { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
@@ -9,13 +9,13 @@ import React, { useImperativeHandle, useRef } from 'react';
|
|
|
9
9
|
import { jsx, useTheme } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
12
|
-
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
13
12
|
import { ClickAreaBlock } from '../../Addon';
|
|
14
|
-
import ContextPanel from '../../ContextPanel';
|
|
13
|
+
import { ContextPanel } from '../../ContextPanel';
|
|
15
14
|
import PluginSlot from '../../PluginSlot';
|
|
16
|
-
import { contentArea, contentAreaHeightNoToolbar, editorContentAreaStyle, editorContentGutterStyle,
|
|
15
|
+
import { contentArea, contentAreaHeightNoToolbar, editorContentAreaStyle, editorContentGutterStyle, ScrollContainer, sidebarArea } from './StyledComponents';
|
|
17
16
|
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
18
17
|
var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
18
|
+
var _contentAreaRef$curre;
|
|
19
19
|
var theme = useTheme();
|
|
20
20
|
var fullWidthMode = props.appearance === 'full-width';
|
|
21
21
|
var scrollContainerRef = useRef(null);
|
|
@@ -34,70 +34,61 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}, []);
|
|
37
|
-
return (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
wrapperElement: props.wrapperElement
|
|
93
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? props.customContentComponents.after : null)))), jsx("div", {
|
|
94
|
-
css: sidebarArea
|
|
95
|
-
}, props.contextPanel || jsx(ContextPanel, {
|
|
96
|
-
editorAPI: props.editorAPI,
|
|
97
|
-
visible: false
|
|
98
|
-
})));
|
|
99
|
-
})
|
|
100
|
-
);
|
|
37
|
+
return jsx("div", {
|
|
38
|
+
css: [
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
40
|
+
contentArea,
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
42
|
+
props.isEditorToolbarHidden && contentAreaHeightNoToolbar],
|
|
43
|
+
"data-testid": CONTENT_AREA_TEST_ID,
|
|
44
|
+
ref: containerRef
|
|
45
|
+
}, jsx(ScrollContainer
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
|
+
, {
|
|
48
|
+
className: "fabric-editor-popup-scroll-parent",
|
|
49
|
+
featureFlags: props.featureFlags,
|
|
50
|
+
ref: scrollContainerRef
|
|
51
|
+
}, jsx(ClickAreaBlock, {
|
|
52
|
+
editorView: props.editorView,
|
|
53
|
+
editorDisabled: props.disabled
|
|
54
|
+
}, jsx("div", {
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
56
|
+
css: editorContentAreaStyle({
|
|
57
|
+
fullWidthMode: fullWidthMode,
|
|
58
|
+
layoutMaxWidth: theme.layoutMaxWidth
|
|
59
|
+
}),
|
|
60
|
+
role: "region",
|
|
61
|
+
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
62
|
+
ref: contentAreaRef
|
|
63
|
+
}, jsx("div", {
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
65
|
+
css: editorContentGutterStyle()
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
|
+
,
|
|
68
|
+
className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
|
|
69
|
+
ref: contentAreaRef
|
|
70
|
+
}, !!props.customContentComponents && 'before' in props.customContentComponents ? props.customContentComponents.before : props.customContentComponents, jsx(PluginSlot, {
|
|
71
|
+
editorView: props.editorView,
|
|
72
|
+
editorActions: props.editorActions,
|
|
73
|
+
eventDispatcher: props.eventDispatcher,
|
|
74
|
+
providerFactory: props.providerFactory,
|
|
75
|
+
appearance: props.appearance,
|
|
76
|
+
items: props.contentComponents,
|
|
77
|
+
pluginHooks: props.pluginHooks,
|
|
78
|
+
contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
|
|
79
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
80
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
81
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
82
|
+
disabled: !!props.disabled,
|
|
83
|
+
containerElement: scrollContainerRef.current,
|
|
84
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
85
|
+
wrapperElement: props.wrapperElement
|
|
86
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? props.customContentComponents.after : null)))), jsx("div", {
|
|
87
|
+
css: sidebarArea
|
|
88
|
+
}, props.contextPanel || jsx(ContextPanel, {
|
|
89
|
+
editorAPI: props.editorAPI,
|
|
90
|
+
visible: false
|
|
91
|
+
})));
|
|
101
92
|
});
|
|
102
93
|
export var FullPageContentArea = injectIntl(Content, {
|
|
103
94
|
forwardRef: true
|
|
@@ -5,7 +5,7 @@ import { css } from '@emotion/react';
|
|
|
5
5
|
import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
6
6
|
import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
|
|
7
7
|
import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
|
|
8
|
-
import {
|
|
8
|
+
import { akEditorFullWidthLayoutWidth, akEditorGutterPaddingDynamic, akEditorSwoopCubicBezier, akLayoutGutterOffset, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
@@ -40,23 +40,6 @@ scrollbarStyles);
|
|
|
40
40
|
export var ScrollContainer = createEditorContentStyle(scrollStyles);
|
|
41
41
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
42
42
|
|
|
43
|
-
// transition used to match scrollbar with config panel opening animation
|
|
44
|
-
// only use animation when opening as there is a bug with floating toolbars.
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
|
-
export var positionedOverEditorStyle = css({
|
|
47
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
-
paddingRight: "".concat(akEditorContextPanelWidth, "px"),
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
|
-
transition: "padding 500ms ".concat(akEditorSwoopCubicBezier),
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
|
-
'.fabric-editor-popup-scroll-parent': {
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
54
|
-
paddingLeft: "".concat(akEditorContextPanelWidth, "px"),
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
|
-
transition: "padding 500ms ".concat(akEditorSwoopCubicBezier)
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
|
|
60
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
61
44
|
export var contentArea = function contentArea() {
|
|
62
45
|
var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
|
|
@@ -22,9 +22,7 @@ import Transition from 'react-transition-group/Transition';
|
|
|
22
22
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
23
23
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
24
24
|
import { akEditorContextPanelWidth, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
25
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
25
|
import { N30 } from '@atlaskit/theme/colors';
|
|
27
|
-
import ContextPanelDeprecated from './deprecated';
|
|
28
26
|
var ANIM_SPEED_MS = 500;
|
|
29
27
|
var panelHidden = css({
|
|
30
28
|
width: 0
|
|
@@ -163,7 +161,4 @@ export function ContextPanel(props) {
|
|
|
163
161
|
editorAPI: props.editorAPI,
|
|
164
162
|
pluginContent: firstContent
|
|
165
163
|
}));
|
|
166
|
-
}
|
|
167
|
-
export default function ContextPanelDefault(props) {
|
|
168
|
-
return fg('platform_editor_context-panel_simplify_behaviour') ? jsx(ContextPanel, props) : jsx(ContextPanelDeprecated, props);
|
|
169
164
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
1
|
import { processRawValue } from '@atlaskit/editor-common/utils';
|
|
3
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import { getBreakoutMode } from './node-width';
|
|
5
3
|
export function processRawFragmentValue(schema, value, providerFactory, sanitizePrivateContent, contentTransformer, dispatchAnalyticsEvent) {
|
|
6
4
|
if (!value) {
|
|
7
5
|
return;
|
|
@@ -22,24 +20,4 @@ export function getNodesCount(node) {
|
|
|
22
20
|
count[node.type.name] = (count[node.type.name] || 0) + 1;
|
|
23
21
|
});
|
|
24
22
|
return count;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Returns a set of active child breakout modes
|
|
29
|
-
*/
|
|
30
|
-
export function getChildBreakoutModes(doc, schema) {
|
|
31
|
-
var filter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ['wide', 'full-width'];
|
|
32
|
-
var breakoutModes = new Set();
|
|
33
|
-
if (doc.type.name === 'doc' && doc.childCount) {
|
|
34
|
-
for (var i = 0; i < doc.childCount; ++i) {
|
|
35
|
-
if (breakoutModes.size === filter.length) {
|
|
36
|
-
break;
|
|
37
|
-
}
|
|
38
|
-
var breakoutMode = getBreakoutMode(doc.child(i), schema.marks.breakout);
|
|
39
|
-
if (breakoutMode && filter.includes(breakoutMode)) {
|
|
40
|
-
breakoutModes.add(breakoutMode);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return _toConsumableArray(breakoutModes);
|
|
45
23
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "197.2.
|
|
2
|
+
export var version = "197.2.2";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
4
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
6
6
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
6
6
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
7
7
|
import type { EditorProps } from '../../types/editor-props';
|
|
8
8
|
import type { PerformanceTracking } from '../../types/performance-tracking';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
3
|
import type { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type EditorActions from '../../actions';
|
|
4
4
|
import type { EditorNextProps } from '../../types/editor-props';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
3
|
import type { EditorProps } from '../../types/editor-props';
|
|
4
4
|
import type { PerformanceTracking } from '../../types/performance-tracking';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
4
4
|
import type { EditorProps } from '../../types/editor-props';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ErrorInfo } from 'react';
|
|
2
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
5
5
|
import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
5
5
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { AnalyticsEventPayload, DispatchAnalyticsEvent, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { EditorPluginInjectionAPI, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
3
|
import type { ScrollGutterPluginOptions } from '@atlaskit/editor-plugins/base';
|
|
4
4
|
import type { DefaultPresetPluginOptions } from '../../src/presets/default';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export {
|
|
|
11
11
|
* @deprecated
|
|
12
12
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
ContextPanel, } from './ui/ContextPanel';
|
|
15
15
|
export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
16
16
|
export { MentionResource } from '@atlaskit/mention/resource';
|
|
17
17
|
export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
3
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
4
4
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
3
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { type EmojiPluginOptions } from '@atlaskit/editor-plugins/emoji';
|
|
5
5
|
import type { EditorProps } from '../types';
|
|
@@ -5,13 +5,12 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
5
5
|
colorMode?: "light" | "dark" | undefined;
|
|
6
6
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
7
|
viewMode?: "view" | "edit" | undefined;
|
|
8
|
-
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "
|
|
8
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "width" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof {
|
|
9
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
10
|
colorMode?: "light" | "dark" | undefined;
|
|
11
11
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
12
12
|
viewMode?: "view" | "edit" | undefined;
|
|
13
13
|
} | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "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" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "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"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export declare const positionedOverEditorStyle: import("@emotion/react").SerializedStyles;
|
|
15
14
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
16
15
|
export declare const contentAreaHeightNoToolbar: import("@emotion/react").SerializedStyles;
|
|
17
16
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
@@ -15,6 +15,6 @@ type ContentStylesProps = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const placeholderStyles: SerializedStyles;
|
|
17
17
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
18
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "
|
|
19
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "
|
|
18
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "width" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "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" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "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"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "width" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "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" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "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"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
export default _default;
|
|
@@ -36,5 +36,4 @@ export declare class SwappableContentArea extends React.PureComponent<SwappableC
|
|
|
36
36
|
render(): jsx.JSX.Element;
|
|
37
37
|
}
|
|
38
38
|
export declare function ContextPanel(props: Props): jsx.JSX.Element;
|
|
39
|
-
export default function ContextPanelDefault(props: Props): jsx.JSX.Element;
|
|
40
39
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
2
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
3
|
import type { ReplaceRawValue, Transformer } from '@atlaskit/editor-common/types';
|
|
@@ -6,7 +5,3 @@ import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
|
6
5
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
7
6
|
export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
|
|
8
7
|
export declare function getNodesCount(node: Node): Record<string, number>;
|
|
9
|
-
/**
|
|
10
|
-
* Returns a set of active child breakout modes
|
|
11
|
-
*/
|
|
12
|
-
export declare function getChildBreakoutModes(doc: Node, schema: Schema, filter?: BreakoutMarkAttrs['mode'][]): BreakoutMarkAttrs['mode'][];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
4
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
6
6
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
6
6
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
7
7
|
import type { EditorProps } from '../../types/editor-props';
|
|
8
8
|
import type { PerformanceTracking } from '../../types/performance-tracking';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
3
|
import type { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type EditorActions from '../../actions';
|
|
4
4
|
import type { EditorNextProps } from '../../types/editor-props';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
3
|
import type { EditorProps } from '../../types/editor-props';
|
|
4
4
|
import type { PerformanceTracking } from '../../types/performance-tracking';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
4
4
|
import type { EditorProps } from '../../types/editor-props';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ErrorInfo } from 'react';
|
|
2
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
5
5
|
import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
5
5
|
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { AnalyticsEventPayload, DispatchAnalyticsEvent, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
2
|
import type { EditorPluginInjectionAPI, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
3
|
import type { ScrollGutterPluginOptions } from '@atlaskit/editor-plugins/base';
|
|
4
4
|
import type { DefaultPresetPluginOptions } from '../../src/presets/default';
|
|
@@ -11,7 +11,7 @@ export {
|
|
|
11
11
|
* @deprecated
|
|
12
12
|
* DO NOT USE THIS WILL BE REMOVED SOON. This was intended for internal usage only
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
ContextPanel, } from './ui/ContextPanel';
|
|
15
15
|
export { EmojiResource } from '@atlaskit/emoji/resource';
|
|
16
16
|
export { MentionResource } from '@atlaskit/mention/resource';
|
|
17
17
|
export type { MentionProvider, PresenceProvider } from '@atlaskit/mention/resource';
|