@atlaskit/editor-core 202.5.0 → 203.0.0
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 +58 -0
- package/dist/cjs/actions/index.js +6 -1
- package/dist/cjs/composable-editor/composable-editor.js +2 -2
- package/dist/cjs/create-editor/ReactEditorView.js +3 -3
- package/dist/cjs/create-editor/ReactEditorViewNext.js +3 -3
- package/dist/cjs/create-editor/create-editor.js +2 -2
- package/dist/cjs/create-editor/create-plugins-list.js +1 -1
- package/dist/cjs/create-editor/create-schema.js +3 -3
- package/dist/cjs/create-editor/get-ui-component.js +4 -4
- package/dist/cjs/editor-appearances/CommentEditor.js +2 -2
- package/dist/cjs/editor-appearances/FullPageEditor.js +2 -2
- package/dist/cjs/editor-appearances/FullWidthEditor.js +2 -2
- package/dist/cjs/editor.js +2 -1
- package/dist/cjs/index.js +4 -10
- package/dist/cjs/test-utils.js +4 -23
- package/dist/cjs/ui/Appearance/Comment/Comment.js +8 -8
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/cjs/ui/ContentStyles/layout.js +2 -14
- package/dist/cjs/ui/PluginSlot/index.js +2 -2
- package/dist/cjs/ui/Toolbar/Toolbar.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/cjs/ui/Toolbar/toolbar-size.js +1 -1
- package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
- package/dist/cjs/utils/{index.js → whichTransitionEvent.js} +0 -15
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +6 -1
- package/dist/es2019/composable-editor/composable-editor.js +1 -1
- package/dist/es2019/composable-editor.js +3 -0
- package/dist/es2019/create-editor/ReactEditorView.js +2 -2
- package/dist/es2019/create-editor/ReactEditorViewNext.js +2 -2
- package/dist/es2019/create-editor/create-editor.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +1 -1
- package/dist/es2019/create-editor/create-schema.js +1 -1
- package/dist/es2019/create-editor/get-ui-component.js +2 -2
- package/dist/es2019/editor-appearances/CommentEditor.js +1 -1
- package/dist/es2019/editor-appearances/FullPageEditor.js +1 -1
- package/dist/es2019/editor-appearances/FullWidthEditor.js +1 -1
- package/dist/es2019/editor-context.js +3 -0
- package/dist/es2019/editor.js +3 -0
- package/dist/es2019/i18n/index.js +3 -0
- package/dist/es2019/index.js +6 -2
- package/dist/es2019/labs-next.js +3 -0
- package/dist/es2019/preset-default.js +3 -0
- package/dist/es2019/preset-universal.js +3 -0
- package/dist/es2019/test-utils.js +4 -3
- package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/es2019/ui/ContentStyles/layout.js +11 -7
- package/dist/es2019/ui/PluginSlot/index.js +1 -1
- package/dist/es2019/ui/Toolbar/Toolbar.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/es2019/ui/Toolbar/toolbar-size.js +1 -2
- package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
- package/dist/es2019/utils/{index.js → whichTransitionEvent.js} +0 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +6 -1
- package/dist/esm/composable-editor/composable-editor.js +1 -1
- package/dist/esm/composable-editor.js +3 -0
- package/dist/esm/create-editor/ReactEditorView.js +2 -2
- package/dist/esm/create-editor/ReactEditorViewNext.js +2 -2
- package/dist/esm/create-editor/create-editor.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +1 -1
- package/dist/esm/create-editor/create-schema.js +1 -1
- package/dist/esm/create-editor/get-ui-component.js +2 -2
- package/dist/esm/editor-appearances/CommentEditor.js +1 -1
- package/dist/esm/editor-appearances/FullPageEditor.js +1 -1
- package/dist/esm/editor-appearances/FullWidthEditor.js +1 -1
- package/dist/esm/editor-context.js +3 -0
- package/dist/esm/editor.js +3 -0
- package/dist/esm/i18n/index.js +3 -0
- package/dist/esm/index.js +6 -2
- package/dist/esm/labs-next.js +3 -0
- package/dist/esm/preset-default.js +3 -0
- package/dist/esm/preset-universal.js +3 -0
- package/dist/esm/test-utils.js +4 -3
- package/dist/esm/ui/Appearance/Comment/Comment.js +3 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/esm/ui/ContentStyles/layout.js +2 -3
- package/dist/esm/ui/PluginSlot/index.js +1 -1
- package/dist/esm/ui/Toolbar/Toolbar.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/esm/ui/Toolbar/toolbar-size.js +1 -2
- package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
- package/dist/esm/utils/{index.js → whichTransitionEvent.js} +0 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +5 -1
- package/dist/types/composable-editor/editor-internal.d.ts +1 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +1 -1
- package/dist/types/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +4 -4
- package/dist/types/create-editor/ReactEditorViewNext.d.ts +1 -1
- package/dist/types/create-editor/create-editor.d.ts +2 -1
- package/dist/types/create-editor/create-plugins-list.d.ts +2 -1
- package/dist/types/create-editor/create-schema.d.ts +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +202 -101
- package/dist/types/create-editor/feature-flags-from-props.d.ts +1 -1
- package/dist/types/create-editor/get-plugins.d.ts +2 -4
- package/dist/types/create-editor/get-ui-component.d.ts +2 -1
- package/dist/types/editor.d.ts +1 -2
- package/dist/types/index.d.ts +3 -4
- package/dist/types/presets/default.d.ts +158 -70
- package/dist/types/presets/universal.d.ts +203 -103
- package/dist/types/presets/useUniversalPreset.d.ts +202 -101
- package/dist/types/test-utils.d.ts +1 -7
- package/dist/types/types/editor-appearance-component.d.ts +2 -6
- package/dist/types/types/editor-config.d.ts +1 -4
- package/dist/types/types/editor-instance.d.ts +2 -3
- package/dist/types/types/editor-props.d.ts +4 -8
- package/dist/types/types/index.d.ts +0 -9
- package/dist/types/types/pm-plugin-list.d.ts +1 -1
- package/dist/types/ui/Appearance/Chromeless.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +3 -4
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -3
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +4 -4
- package/dist/types/ui/ContentStyles/index.d.ts +3 -3
- package/dist/types/ui/ContentStyles/layout.d.ts +0 -2
- package/dist/types/ui/PluginSlot/index.d.ts +2 -3
- package/dist/types/ui/Toolbar/toolbar-size.d.ts +2 -2
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +1 -2
- package/dist/types/utils/is-full-page.d.ts +1 -1
- package/dist/types/utils/performance/plugin-performance-observer.d.ts +2 -1
- package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -2
- package/dist/types/utils/performance/track-transactions.d.ts +1 -1
- package/dist/types/utils/whichTransitionEvent.d.ts +1 -0
- package/dist/types-ts4.5/actions/index.d.ts +5 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +4 -4
- package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-editor.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +239 -101
- package/dist/types-ts4.5/create-editor/feature-flags-from-props.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +2 -4
- package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +2 -1
- package/dist/types-ts4.5/editor.d.ts +1 -2
- package/dist/types-ts4.5/index.d.ts +3 -4
- package/dist/types-ts4.5/presets/default.d.ts +188 -70
- package/dist/types-ts4.5/presets/universal.d.ts +240 -103
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +239 -101
- package/dist/types-ts4.5/test-utils.d.ts +1 -7
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +2 -6
- package/dist/types-ts4.5/types/editor-config.d.ts +1 -4
- package/dist/types-ts4.5/types/editor-instance.d.ts +2 -3
- package/dist/types-ts4.5/types/editor-props.d.ts +4 -8
- package/dist/types-ts4.5/types/index.d.ts +0 -9
- package/dist/types-ts4.5/types/pm-plugin-list.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +3 -4
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -3
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +4 -4
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +0 -2
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +2 -3
- package/dist/types-ts4.5/ui/Toolbar/toolbar-size.d.ts +2 -2
- package/dist/types-ts4.5/ui/Toolbar/toolbar-types.d.ts +1 -2
- package/dist/types-ts4.5/utils/is-full-page.d.ts +1 -1
- package/dist/types-ts4.5/utils/performance/plugin-performance-observer.d.ts +2 -1
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +1 -2
- package/dist/types-ts4.5/utils/performance/track-transactions.d.ts +1 -1
- package/dist/types-ts4.5/utils/whichTransitionEvent.d.ts +1 -0
- package/package.json +14 -17
- package/dist/cjs/create-editor/ReactEditorViewContext.js +0 -8
- package/dist/cjs/create-editor/index.js +0 -42
- package/dist/cjs/create-editor/sort-by-order.js +0 -18
- package/dist/cjs/element-browser.js +0 -12
- package/dist/cjs/event-dispatcher/index.js +0 -18
- package/dist/cjs/messages.js +0 -36
- package/dist/cjs/nodeviews/index.js +0 -1
- package/dist/cjs/preset-builder.js +0 -12
- package/dist/cjs/types/browser.js +0 -1
- package/dist/cjs/types/editor-appearance.js +0 -1
- package/dist/cjs/types/editor-plugin.js +0 -1
- package/dist/cjs/types/editor-react-context.js +0 -1
- package/dist/cjs/types/empty-state-handler.js +0 -1
- package/dist/cjs/types/feature-flags.js +0 -1
- package/dist/cjs/types/performance-tracking.js +0 -1
- package/dist/cjs/types/pm-config.js +0 -1
- package/dist/cjs/types/pm-plugin.js +0 -1
- package/dist/cjs/types/ui-components.js +0 -1
- package/dist/cjs/ui/Addon/index.js +0 -27
- package/dist/cjs/ui/Appearance/Comment/index.js +0 -12
- package/dist/cjs/ui/Appearance/FullPage/index.js +0 -12
- package/dist/cjs/ui/Toolbar/index.js +0 -26
- package/dist/cjs/ui/Toolbar/types.js +0 -36
- package/dist/es2019/create-editor/ReactEditorViewContext.js +0 -2
- package/dist/es2019/create-editor/index.js +0 -3
- package/dist/es2019/create-editor/sort-by-order.js +0 -1
- package/dist/es2019/element-browser.js +0 -1
- package/dist/es2019/event-dispatcher/index.js +0 -1
- package/dist/es2019/messages.js +0 -7
- package/dist/es2019/nodeviews/index.js +0 -0
- package/dist/es2019/preset-builder.js +0 -1
- package/dist/es2019/types/browser.js +0 -0
- package/dist/es2019/types/editor-appearance.js +0 -0
- package/dist/es2019/types/editor-plugin.js +0 -0
- package/dist/es2019/types/editor-react-context.js +0 -0
- package/dist/es2019/types/empty-state-handler.js +0 -0
- package/dist/es2019/types/feature-flags.js +0 -0
- package/dist/es2019/types/performance-tracking.js +0 -0
- package/dist/es2019/types/pm-config.js +0 -0
- package/dist/es2019/types/pm-plugin.js +0 -0
- package/dist/es2019/types/ui-components.js +0 -0
- package/dist/es2019/ui/Addon/index.js +0 -3
- package/dist/es2019/ui/Appearance/Comment/index.js +0 -1
- package/dist/es2019/ui/Appearance/FullPage/index.js +0 -1
- package/dist/es2019/ui/Toolbar/index.js +0 -3
- package/dist/es2019/ui/Toolbar/types.js +0 -1
- package/dist/esm/create-editor/ReactEditorViewContext.js +0 -2
- package/dist/esm/create-editor/index.js +0 -3
- package/dist/esm/create-editor/sort-by-order.js +0 -1
- package/dist/esm/element-browser.js +0 -1
- package/dist/esm/event-dispatcher/index.js +0 -1
- package/dist/esm/messages.js +0 -7
- package/dist/esm/nodeviews/index.js +0 -0
- package/dist/esm/preset-builder.js +0 -1
- package/dist/esm/types/browser.js +0 -0
- package/dist/esm/types/editor-appearance.js +0 -0
- package/dist/esm/types/editor-plugin.js +0 -0
- package/dist/esm/types/editor-react-context.js +0 -0
- package/dist/esm/types/empty-state-handler.js +0 -0
- package/dist/esm/types/feature-flags.js +0 -0
- package/dist/esm/types/performance-tracking.js +0 -0
- package/dist/esm/types/pm-config.js +0 -0
- package/dist/esm/types/pm-plugin.js +0 -0
- package/dist/esm/types/ui-components.js +0 -0
- package/dist/esm/ui/Addon/index.js +0 -3
- package/dist/esm/ui/Appearance/Comment/index.js +0 -1
- package/dist/esm/ui/Appearance/FullPage/index.js +0 -1
- package/dist/esm/ui/Toolbar/index.js +0 -3
- package/dist/esm/ui/Toolbar/types.js +0 -1
- package/dist/types/create-editor/ReactEditorViewContext.d.ts +0 -2
- package/dist/types/create-editor/index.d.ts +0 -3
- package/dist/types/create-editor/sort-by-order.d.ts +0 -1
- package/dist/types/element-browser.d.ts +0 -1
- package/dist/types/event-dispatcher/index.d.ts +0 -2
- package/dist/types/messages.d.ts +0 -6
- package/dist/types/nodeviews/index.d.ts +0 -1
- package/dist/types/preset-builder.d.ts +0 -1
- package/dist/types/types/browser.d.ts +0 -1
- package/dist/types/types/editor-appearance.d.ts +0 -1
- package/dist/types/types/editor-plugin.d.ts +0 -1
- package/dist/types/types/editor-react-context.d.ts +0 -1
- package/dist/types/types/empty-state-handler.d.ts +0 -1
- package/dist/types/types/feature-flags.d.ts +0 -1
- package/dist/types/types/performance-tracking.d.ts +0 -1
- package/dist/types/types/pm-config.d.ts +0 -1
- package/dist/types/types/pm-plugin.d.ts +0 -1
- package/dist/types/types/ui-components.d.ts +0 -1
- package/dist/types/ui/Addon/index.d.ts +0 -4
- package/dist/types/ui/Appearance/Comment/index.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/index.d.ts +0 -1
- package/dist/types/ui/Toolbar/index.d.ts +0 -4
- package/dist/types/ui/Toolbar/types.d.ts +0 -2
- package/dist/types/utils/index.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/ReactEditorViewContext.d.ts +0 -2
- package/dist/types-ts4.5/create-editor/index.d.ts +0 -3
- package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +0 -1
- package/dist/types-ts4.5/element-browser.d.ts +0 -1
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +0 -2
- package/dist/types-ts4.5/messages.d.ts +0 -6
- package/dist/types-ts4.5/nodeviews/index.d.ts +0 -1
- package/dist/types-ts4.5/preset-builder.d.ts +0 -1
- package/dist/types-ts4.5/types/browser.d.ts +0 -1
- package/dist/types-ts4.5/types/editor-appearance.d.ts +0 -1
- package/dist/types-ts4.5/types/editor-plugin.d.ts +0 -1
- package/dist/types-ts4.5/types/editor-react-context.d.ts +0 -1
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +0 -1
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -1
- package/dist/types-ts4.5/types/performance-tracking.d.ts +0 -1
- package/dist/types-ts4.5/types/pm-config.d.ts +0 -1
- package/dist/types-ts4.5/types/pm-plugin.d.ts +0 -1
- package/dist/types-ts4.5/types/ui-components.d.ts +0 -1
- package/dist/types-ts4.5/ui/Addon/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/Appearance/Comment/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +0 -2
- package/dist/types-ts4.5/utils/index.d.ts +0 -3
- package/element-browser/package.json +0 -15
- package/messages/package.json +0 -15
- package/preset-builder/package.json +0 -15
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import type { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
2
2
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
|
-
import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { MarkConfig, NodeConfig, ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import type { Plugin } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import type { LightPMPlugin, LightPMPluginFactoryParams, OnEditorViewStateUpdated } from './create-editor/get-plugins';
|
|
8
|
-
import type { MarkConfig, NodeConfig } from './types/pm-config';
|
|
9
8
|
export type { LightEditorPlugin } from './create-editor/get-plugins';
|
|
10
|
-
export type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
11
|
-
export type { FeatureFlags } from './types/feature-flags';
|
|
12
9
|
export interface LightEditorConfig {
|
|
13
10
|
nodes: NodeConfig[];
|
|
14
11
|
marks: MarkConfig[];
|
|
@@ -26,9 +23,6 @@ type PluginData = {
|
|
|
26
23
|
export declare const createPMSchemaAndPlugins: (inputPreset?: EditorPresetBuilder) => (pluginFactoryParams: Omit<LightPMPluginFactoryParams, 'schema'> & {
|
|
27
24
|
pluginInjectionAPI: EditorPluginInjectionAPI;
|
|
28
25
|
}) => PluginData;
|
|
29
|
-
export { EventDispatcher } from './event-dispatcher';
|
|
30
|
-
export type { Dispatch } from './event-dispatcher';
|
|
31
|
-
export { GapCursorSelection, Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
32
26
|
export declare function setTextSelection(view: EditorView, anchor: number, head?: number): void;
|
|
33
27
|
/**
|
|
34
28
|
* Given a selector, checks if an element matching the selector exists in the
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import type { ReactElement, RefObject } from 'react';
|
|
2
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
4
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
5
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
5
6
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
import type { NextEditorPlugin, PublicPluginAPI, ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { EditorAppearance, FeatureFlags, NextEditorPlugin, PublicPluginAPI, ReactHookFactory, ToolbarUIComponentFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
7
8
|
import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
8
9
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
9
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
11
|
import type EditorActions from '../actions';
|
|
11
|
-
import type { EventDispatcher } from '../event-dispatcher';
|
|
12
12
|
import type { ContentComponents, PrimaryToolbarComponents, ReactComponents } from '../types/editor-props';
|
|
13
|
-
import type { UIComponentFactory } from '../types/ui-components';
|
|
14
|
-
import type { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
15
|
-
import type { EditorAppearance } from './editor-appearance';
|
|
16
|
-
import type { FeatureFlags } from './feature-flags';
|
|
17
13
|
export interface EditorAppearanceComponentProps<Plugins extends NextEditorPlugin<any, any>[]> {
|
|
18
14
|
editorAPI: PublicPluginAPI<Plugins> | undefined;
|
|
19
15
|
appearance?: EditorAppearance;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { MarkConfig, NodeConfig, PMPlugin, ReactHookFactory, ToolbarUIComponentFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
4
|
-
import type { MarkConfig, NodeConfig } from './pm-config';
|
|
5
|
-
import type { PMPlugin } from './pm-plugin';
|
|
6
3
|
export type EditorViewStateUpdatedCallbackProps = {
|
|
7
4
|
readonly originalTransaction: Readonly<Transaction>;
|
|
8
5
|
readonly transactions: readonly Transaction[];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
+
import type { ToolbarUIComponentFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
1
3
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
2
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
5
|
import type { OnEditorViewStateUpdated } from '../create-editor/get-plugins';
|
|
4
|
-
import type { EventDispatcher } from '../event-dispatcher';
|
|
5
|
-
import type { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
6
|
-
import type { UIComponentFactory } from './ui-components';
|
|
7
6
|
export interface EditorInstance {
|
|
8
7
|
editorView: EditorView;
|
|
9
8
|
eventDispatcher: EventDispatcher;
|
|
@@ -6,7 +6,7 @@ import type { ErrorReportingHandler } from '@atlaskit/editor-common/error-report
|
|
|
6
6
|
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
7
7
|
import type { AllEditorPresetPluginTypes, AllPluginNames, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
8
8
|
import type { ContextIdentifierProvider, Providers, SearchProvider } from '@atlaskit/editor-common/provider-factory';
|
|
9
|
-
import type { FeedbackInfo, LinkingOptions, QuickInsertOptions, TextFormattingOptions, Transformer } from '@atlaskit/editor-common/types';
|
|
9
|
+
import type { EditorAppearance, EditorPlugin, EmptyStateHandler, FeedbackInfo, LinkingOptions, PerformanceTracking, QuickInsertOptions, TextFormattingOptions, Transformer } from '@atlaskit/editor-common/types';
|
|
10
10
|
import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
11
11
|
import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
12
12
|
import type { AnnotationProviders } from '@atlaskit/editor-plugins/annotation';
|
|
@@ -26,13 +26,8 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
26
26
|
import type { MentionProvider } from '@atlaskit/mention/resource';
|
|
27
27
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
28
28
|
import type EditorActions from '../actions';
|
|
29
|
-
import type { EditorAppearance } from './editor-appearance';
|
|
30
29
|
import type { EditorOnChangeHandler } from './editor-onchange';
|
|
31
|
-
import type { EditorPlugin } from './editor-plugin';
|
|
32
|
-
import type { EmptyStateHandler } from './empty-state-handler';
|
|
33
30
|
import type { ExtensionConfig } from './extension-config';
|
|
34
|
-
import type { PerformanceTracking } from './performance-tracking';
|
|
35
|
-
export type { UseStickyToolbarType };
|
|
36
31
|
export type ReactComponents = ReactElement | ReactElement[];
|
|
37
32
|
type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
|
|
38
33
|
type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
|
|
@@ -72,7 +67,7 @@ interface EditorBaseProps {
|
|
|
72
67
|
onChange?: EditorOnChangeHandler;
|
|
73
68
|
onCancel?: (editorView: EditorView) => void;
|
|
74
69
|
/**
|
|
75
|
-
* @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/utils/inputTrackingConfig.ts
|
|
70
|
+
* @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/pm-plugins/utils/inputTrackingConfig.ts
|
|
76
71
|
* @description The nth keystroke after which an input time taken event is sent, 0 to disable it
|
|
77
72
|
* @default 100
|
|
78
73
|
*/
|
|
@@ -135,7 +130,7 @@ interface EditorBaseProps {
|
|
|
135
130
|
export interface EditorSharedPropsWithPlugins {
|
|
136
131
|
onSave?: (editorView: EditorView) => void;
|
|
137
132
|
/**
|
|
138
|
-
* @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/utils/inputTrackingConfig.ts
|
|
133
|
+
* @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/pm-plugins/utils/inputTrackingConfig.ts
|
|
139
134
|
* @description Control performance metric measurements and tracking
|
|
140
135
|
*/
|
|
141
136
|
performanceTracking?: PerformanceTracking;
|
|
@@ -286,3 +281,4 @@ export interface EditorPluginFeatureProps {
|
|
|
286
281
|
linking?: LinkingOptions;
|
|
287
282
|
media?: MediaOptions;
|
|
288
283
|
}
|
|
284
|
+
export {};
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
export type { AllowedBlockTypes } from '@atlaskit/editor-common/types';
|
|
2
1
|
export type { EditorInstance } from './editor-instance';
|
|
3
2
|
export type { EditorConfig } from './editor-config';
|
|
4
|
-
export type { NextEditorPlugin, EditorPlugin, PluginsOptions } from './editor-plugin';
|
|
5
|
-
export type { EditorReactContext } from './editor-react-context';
|
|
6
3
|
export type { EditorProps, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, ContentComponents, } from './editor-props';
|
|
7
4
|
export type { EditorAppearanceComponentProps } from './editor-appearance-component';
|
|
8
5
|
export type { Command, CommandDispatch } from './command';
|
|
9
6
|
export type { MessageDescriptor } from './i18n';
|
|
10
7
|
export type { DomAtPos } from './dom-at-pos';
|
|
11
8
|
export type { ExtensionConfig } from './extension-config';
|
|
12
|
-
export type { EditorAppearance } from './editor-appearance';
|
|
13
|
-
export type { ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, } from '../ui/Toolbar/types';
|
|
14
|
-
export type { PMPlugin, PMPluginFactory, PMPluginFactoryParams } from './pm-plugin';
|
|
15
9
|
export type { PMPluginCreateConfig } from './pm-plugin-list';
|
|
16
|
-
export type { NodeViewConfig, MarkConfig, NodeConfig } from './pm-config';
|
|
17
|
-
export type { UIComponentFactory, UiComponentFactoryParams } from './ui-components';
|
|
18
|
-
export type { DisableSpellcheckByBrowser, Range, Browsers } from './browser';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
1
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
3
|
import type { EditorConfig } from './editor-config';
|
|
3
|
-
import type { PMPluginFactoryParams } from './pm-plugin';
|
|
4
4
|
export type PMPluginCreateConfig = PMPluginFactoryParams & {
|
|
5
5
|
editorConfig: EditorConfig;
|
|
6
6
|
onEditorStateUpdated: ((props: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import {
|
|
7
|
+
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { type EditorViewModePlugin } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
9
9
|
import type { MaxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
|
|
10
10
|
import type { EditorAppearanceComponentProps } from '../../types';
|
|
@@ -6,15 +6,14 @@ import type { ReactElement } from 'react';
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
9
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
9
10
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
|
-
import type { OptionalPlugin, PublicPluginAPI, ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
11
|
+
import type { EditorAppearance, FeatureFlags, OptionalPlugin, PublicPluginAPI, ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
11
12
|
import { type ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
12
13
|
import { type ViewMode } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
13
14
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
14
15
|
import type EditorActions from '../../../actions';
|
|
15
|
-
import type {
|
|
16
|
-
import type { ContentComponents, EditorAppearance, ReactComponents, UIComponentFactory } from '../../../types';
|
|
17
|
-
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
16
|
+
import type { ContentComponents, ReactComponents } from '../../../types';
|
|
18
17
|
import { type ScrollContainerRefs } from './types';
|
|
19
18
|
interface FullPageEditorContentAreaProps {
|
|
20
19
|
editorAPI: PublicPluginAPI<[
|
|
@@ -10,7 +10,7 @@ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
10
10
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
11
11
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
12
12
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
13
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
13
|
+
import type { EditorAppearance, FeatureFlags, OptionalPlugin, PublicPluginAPI, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
14
14
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugins/analytics';
|
|
15
15
|
import type { AvatarGroupPlugin } from '@atlaskit/editor-plugins/avatar-group';
|
|
16
16
|
import type { BeforePrimaryToolbarPlugin } from '@atlaskit/editor-plugins/before-primary-toolbar';
|
|
@@ -19,8 +19,7 @@ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugins/feature-flags'
|
|
|
19
19
|
import type { FindReplacePlugin } from '@atlaskit/editor-plugins/find-replace';
|
|
20
20
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
21
21
|
import type { EditorActions } from '../../../index';
|
|
22
|
-
import type {
|
|
23
|
-
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
22
|
+
import type { PrimaryToolbarComponents } from '../../../types';
|
|
24
23
|
export type ToolbarEditorPlugins = [
|
|
25
24
|
OptionalPlugin<AnalyticsPlugin>,
|
|
26
25
|
OptionalPlugin<FindReplacePlugin>,
|
|
@@ -4,15 +4,15 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
colorMode?: "light" | "dark" | undefined;
|
|
6
6
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
|
-
viewMode?: "
|
|
7
|
+
viewMode?: "edit" | "view" | undefined;
|
|
8
8
|
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
9
|
-
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "key" | "property" | "type" | "action" | "content" | "title" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "name" | "
|
|
9
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "key" | "property" | "type" | "action" | "content" | "title" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "name" | "color" | "height" | "translate" | "width" | "default" | "hidden" | keyof {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
colorMode?: "light" | "dark" | undefined;
|
|
12
12
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
13
|
-
viewMode?: "
|
|
13
|
+
viewMode?: "edit" | "view" | undefined;
|
|
14
14
|
typographyTheme?: "typography" | "typography-adg3" | "typography-modernized" | "typography-refreshed" | undefined;
|
|
15
|
-
} | "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" | "start" | "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>>;
|
|
15
|
+
} | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "defer" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "radioGroup" | "role" | "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" | "children" | "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>>;
|
|
16
16
|
export declare const contentArea: () => import("@emotion/react").SerializedStyles;
|
|
17
17
|
export declare const contentAreaWrapper: import("@emotion/react").SerializedStyles;
|
|
18
18
|
export declare const contentAreaWrapperNoStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import type { SerializedStyles } from '@emotion/react';
|
|
7
7
|
import { type Theme } from '@emotion/react';
|
|
8
|
-
import type { FeatureFlags } from '
|
|
8
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
9
|
export declare const linkStyles: SerializedStyles;
|
|
10
10
|
type ContentStylesProps = {
|
|
11
11
|
theme?: Theme;
|
|
@@ -20,6 +20,6 @@ export declare const placeholderStyles: SerializedStyles;
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const fixBlockControlStylesSSR: () => SerializedStyles | null;
|
|
22
22
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
23
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "key" | "property" | "type" | "action" | "content" | "title" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "name" | "
|
|
24
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "key" | "property" | "type" | "action" | "content" | "title" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "name" | "
|
|
23
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "key" | "property" | "type" | "action" | "content" | "title" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "name" | "color" | "height" | "translate" | "width" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "defer" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "radioGroup" | "role" | "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" | "children" | "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>>;
|
|
24
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "key" | "property" | "type" | "action" | "content" | "title" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "name" | "color" | "height" | "translate" | "width" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "defer" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "radioGroup" | "role" | "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" | "children" | "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>>;
|
|
25
25
|
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { EditorAppearance, ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
7
|
import type EditorActions from '../../actions';
|
|
7
|
-
import type { EventDispatcher } from '../../event-dispatcher';
|
|
8
|
-
import type { EditorAppearance, UIComponentFactory } from '../../types';
|
|
9
8
|
export interface Props {
|
|
10
9
|
items?: UIComponentFactory[];
|
|
11
10
|
pluginHooks?: ReactHookFactory[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EditorAppearance } from '
|
|
2
|
-
import { ToolbarSize } from '
|
|
1
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
3
3
|
export declare const toolbarSizeToWidth: (toolbarSize: ToolbarSize, appearance?: EditorAppearance) => number;
|
|
4
4
|
export declare const widthToToolbarSize: (toolbarWidth: number, appearance?: EditorAppearance) => ToolbarSize;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
+
import type { EditorAppearance, ToolbarSize, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type EditorActions from '../../actions';
|
|
6
|
-
import type { EditorAppearance } from '../../types/editor-appearance';
|
|
7
|
-
import type { ToolbarSize, ToolbarUIComponentFactory } from './types';
|
|
8
7
|
export interface ToolbarBreakPoint {
|
|
9
8
|
width: number;
|
|
10
9
|
size: ToolbarSize;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { EditorAppearance } from '
|
|
1
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
2
2
|
export declare function isFullPage(appearance?: EditorAppearance): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PluginPerformanceReportData } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { NodesCount, PluginPerformanceReportOptions } from './plugin-performance-report';
|
|
2
3
|
import type { TransactionTracker } from './track-transactions';
|
|
3
4
|
export declare class PluginPerformanceObserver implements PerformanceObserver {
|
|
4
5
|
private callback;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { NodeCount,
|
|
2
|
-
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData };
|
|
1
|
+
import type { NodeCount, PluginPerformanceReportData } from '@atlaskit/editor-common/analytics';
|
|
3
2
|
export interface OutlierReport {
|
|
4
3
|
stateApplyOutlier: number | undefined;
|
|
5
4
|
viewUpdateOutlier: number | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TransactionTracking } from '
|
|
1
|
+
import type { TransactionTracking } from '@atlaskit/editor-common/types';
|
|
2
2
|
export declare const EVENT_NAME_STATE_APPLY = "\uD83E\uDD89 EditorView::state::apply";
|
|
3
3
|
export declare const EVENT_NAME_UPDATE_STATE = "\uD83E\uDD89 EditorView::updateState";
|
|
4
4
|
export declare const EVENT_NAME_VIEW_STATE_UPDATED = "\uD83E\uDD89 EditorView::onEditorViewStateUpdated";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function whichTransitionEvent<TransitionEventName extends string>(): TransitionEventName | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "203.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.3.0",
|
|
46
|
-
"@atlaskit/editor-common": "^95.
|
|
46
|
+
"@atlaskit/editor-common": "^95.10.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
48
48
|
"@atlaskit/editor-plugin-quick-insert": "1.7.1",
|
|
49
|
-
"@atlaskit/editor-plugins": "^5.
|
|
50
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
49
|
+
"@atlaskit/editor-plugins": "^5.8.0",
|
|
50
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.11.0",
|
|
53
|
-
"@atlaskit/icon": "^22.
|
|
54
|
-
"@atlaskit/media-card": "^78.
|
|
53
|
+
"@atlaskit/icon": "^22.28.0",
|
|
54
|
+
"@atlaskit/media-card": "^78.15.0",
|
|
55
55
|
"@atlaskit/mention": "^23.4.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
57
57
|
"@atlaskit/task-decision": "^17.11.0",
|
|
58
58
|
"@atlaskit/tmp-editor-statsig": "^2.21.0",
|
|
59
|
-
"@atlaskit/tokens": "^2.
|
|
59
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
60
60
|
"@atlaskit/tooltip": "^18.9.0",
|
|
61
61
|
"@atlaskit/width-detector": "^4.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
@@ -81,29 +81,29 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@af/editor-libra": "*",
|
|
83
83
|
"@af/visual-regression": "*",
|
|
84
|
-
"@atlaskit/adf-utils": "^19.
|
|
84
|
+
"@atlaskit/adf-utils": "^19.14.0",
|
|
85
85
|
"@atlaskit/analytics-listeners": "^8.13.0",
|
|
86
|
-
"@atlaskit/collab-provider": "10.
|
|
87
|
-
"@atlaskit/editor-plugin-annotation": "1.25.
|
|
86
|
+
"@atlaskit/collab-provider": "10.2.0",
|
|
87
|
+
"@atlaskit/editor-plugin-annotation": "1.25.4",
|
|
88
88
|
"@atlaskit/editor-plugin-card": "^4.4.0",
|
|
89
89
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
90
90
|
"@atlaskit/editor-plugin-paste": "^2.0.0",
|
|
91
91
|
"@atlaskit/link-provider": "^1.17.0",
|
|
92
|
-
"@atlaskit/logo": "^
|
|
92
|
+
"@atlaskit/logo": "^15.0.0",
|
|
93
93
|
"@atlaskit/media-core": "^34.3.0",
|
|
94
94
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
95
95
|
"@atlaskit/media-test-helpers": "^34.6.0",
|
|
96
|
-
"@atlaskit/modal-dialog": "^12.
|
|
96
|
+
"@atlaskit/modal-dialog": "^12.18.0",
|
|
97
97
|
"@atlaskit/primitives": "^13.3.0",
|
|
98
98
|
"@atlaskit/renderer": "^112.6.0",
|
|
99
|
-
"@atlaskit/smart-card": "^
|
|
99
|
+
"@atlaskit/smart-card": "^32.2.0",
|
|
100
100
|
"@atlaskit/synchrony-test-helpers": "^3.0.0",
|
|
101
101
|
"@atlaskit/toggle": "^13.4.0",
|
|
102
102
|
"@atlaskit/util-data-test": "^17.13.0",
|
|
103
103
|
"@atlaskit/visual-regression": "*",
|
|
104
104
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
105
105
|
"@atlassian/feature-flags-test-utils": "*",
|
|
106
|
-
"@atlassian/search-provider": "3.0.
|
|
106
|
+
"@atlassian/search-provider": "3.0.1",
|
|
107
107
|
"@emotion/jest": "^11.8.0",
|
|
108
108
|
"@storybook/addon-knobs": "^6.4.0",
|
|
109
109
|
"@testing-library/react": "^12.1.5",
|
|
@@ -369,17 +369,14 @@
|
|
|
369
369
|
"./create-editor-content-style": "./src/ui/ContentStyles/index.tsx",
|
|
370
370
|
"./editor-context": "./src/editor-context.ts",
|
|
371
371
|
"./editor": "./src/editor.tsx",
|
|
372
|
-
"./element-browser": "./src/element-browser.ts",
|
|
373
372
|
"./i18n": "./src/i18n/index.ts",
|
|
374
373
|
"./i18n-languages": "./src/i18n/languages.ts",
|
|
375
374
|
"./labs-next": "./src/labs-next.ts",
|
|
376
|
-
"./messages": "./src/messages.ts",
|
|
377
375
|
"./preset-default": "./src/preset-default.ts",
|
|
378
376
|
"./preset-universal": "./src/preset-universal.ts",
|
|
379
377
|
"./test-utils": "./src/test-utils.ts",
|
|
380
378
|
"./use-preset": "./src/use-preset.ts",
|
|
381
379
|
"./use-preset-context": "./src/presets/context.tsx",
|
|
382
|
-
"./preset-builder": "./src/preset-builder.ts",
|
|
383
380
|
"./appearance-editor-full-page": "./src/editor-appearances/FullPageEditor.tsx",
|
|
384
381
|
"./appearance-editor-full-width": "./src/editor-appearances/FullWidthEditor.tsx",
|
|
385
382
|
"./appearance-editor-comment": "./src/editor-appearances/CommentEditor.tsx",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports, "BaseReactEditorView", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _ReactEditorView.ReactEditorView;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "ReactEditorView", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _ReactEditorView.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "createPluginsList", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _createPluginsList.default;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(exports, "getDefaultPresetOptionsFromEditorProps", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function get() {
|
|
29
|
-
return _createPluginsList.getDefaultPresetOptionsFromEditorProps;
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "getUiComponent", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function get() {
|
|
35
|
-
return _getUiComponent.default;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
var _ReactEditorView = _interopRequireWildcard(require("./ReactEditorView"));
|
|
39
|
-
var _getUiComponent = _interopRequireDefault(require("./get-ui-component"));
|
|
40
|
-
var _createPluginsList = _interopRequireWildcard(require("./create-plugins-list"));
|
|
41
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
42
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "sortByOrder", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _legacyRankPlugins.sortByOrder;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "sortByOrderWithTypeName", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _legacyRankPlugins.sortByOrderWithTypeName;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
var _legacyRankPlugins = require("@atlaskit/editor-common/legacy-rank-plugins");
|