UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

24 lines 1.05 kB
import _extends from "@babel/runtime/helpers/extends"; import React from 'react'; import { CoreEditor } from '../composable-editor/core-editor'; import { FullPageEditor as FullPage } from '../ui/Appearance/FullPage/FullPage'; // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883 /** * Editor component based on `ComposableEditor` which sets the `appearance` to "full-width". * * This has a performance benefit as it doesn't bundle unnecessary appearance code. * * Docs for `ComposableEditor` are also relevant: https://atlaskit.atlassian.com/packages/editor/editor-core * * @param props FullWidthEditorProps * @returns Editor component * @deprecated In favour of `FullPageEditor` with appearance "full-width" */ export function FullWidthEditor(props) { // Ignored via go/ees005 // eslint-disable-next-line react/jsx-props-no-spreading return /*#__PURE__*/React.createElement(CoreEditor, _extends({}, props, { appearance: "full-width", AppearanceComponent: FullPage })); }