@atlaskit/editor-core 185.15.0 → 185.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +2 -0
- package/CHANGELOG.md +12 -0
- package/dist/cjs/actions/index.js +1 -1
- package/dist/cjs/commands/index.js +1 -1
- package/dist/cjs/editor-next/editor-internal.js +17 -17
- package/dist/cjs/editor-next/hooks/useMeasureEditorMountTime.js +1 -1
- package/dist/cjs/editor-next/hooks/useProviderFactory.js +3 -3
- package/dist/cjs/editor-next/index.js +15 -15
- package/dist/cjs/editor-next/utils/editorMeasureTTICallback.js +2 -2
- package/dist/cjs/editor-next/utils/onEditorCreated.js +1 -1
- package/dist/cjs/editor-next/utils/sendDurationAnalytics.js +1 -1
- package/dist/cjs/editor.js +5 -5
- package/dist/cjs/messages.js +4 -4
- package/dist/cjs/nodeviews/context-adapter.js +1 -1
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/cjs/plugins/card/pm-plugins/main.js +1 -1
- package/dist/cjs/plugins/type-ahead/commands/insert-type-ahead-item.js +4 -4
- package/dist/cjs/test-utils.js +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +2 -3
- package/dist/es2019/commands/index.js +1 -1
- package/dist/es2019/editor-next/editor-internal.js +6 -7
- package/dist/es2019/editor-next/hooks/useMeasureEditorMountTime.js +1 -1
- package/dist/es2019/editor-next/hooks/useProviderFactory.js +3 -3
- package/dist/es2019/editor-next/index.js +10 -11
- package/dist/es2019/editor-next/utils/editorMeasureTTICallback.js +2 -2
- package/dist/es2019/editor-next/utils/onEditorCreated.js +1 -1
- package/dist/es2019/editor-next/utils/sendDurationAnalytics.js +1 -1
- package/dist/es2019/editor.js +1 -1
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/nodeviews/context-adapter.js +1 -1
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/es2019/plugins/card/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/type-ahead/commands/insert-type-ahead-item.js +5 -5
- package/dist/es2019/test-utils.js +3 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +2 -3
- package/dist/esm/commands/index.js +1 -1
- package/dist/esm/editor-next/editor-internal.js +6 -7
- package/dist/esm/editor-next/hooks/useMeasureEditorMountTime.js +1 -1
- package/dist/esm/editor-next/hooks/useProviderFactory.js +3 -3
- package/dist/esm/editor-next/index.js +10 -11
- package/dist/esm/editor-next/utils/editorMeasureTTICallback.js +2 -2
- package/dist/esm/editor-next/utils/onEditorCreated.js +1 -1
- package/dist/esm/editor-next/utils/sendDurationAnalytics.js +1 -1
- package/dist/esm/editor.js +1 -1
- package/dist/esm/messages.js +1 -1
- package/dist/esm/nodeviews/context-adapter.js +1 -1
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/esm/plugins/card/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/type-ahead/commands/insert-type-ahead-item.js +5 -5
- package/dist/esm/test-utils.js +3 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +2 -2
- package/dist/types/commands/index.d.ts +2 -2
- package/dist/types/create-editor/get-plugins.d.ts +6 -6
- package/dist/types/editor-next/editor-internal.d.ts +5 -6
- package/dist/types/editor-next/hooks/useMeasureEditorMountTime.d.ts +1 -1
- package/dist/types/editor-next/hooks/useProviderFactory.d.ts +3 -3
- package/dist/types/editor-next/index.d.ts +2 -1
- package/dist/types/editor-next/utils/deprecationWarnings.d.ts +1 -1
- package/dist/types/editor-next/utils/handleProviders.d.ts +1 -2
- package/dist/types/editor-next/utils/onEditorCreated.d.ts +3 -3
- package/dist/types/editor-next/utils/sendDurationAnalytics.d.ts +1 -1
- package/dist/types/editor-next/utils/trackEditorActions.d.ts +1 -1
- package/dist/types/editor.d.ts +1 -1
- package/dist/types/messages.d.ts +1 -1
- package/dist/types/selection-api/api.d.ts +1 -1
- package/dist/types/test-utils.d.ts +3 -3
- package/dist/types/types/editor-appearance-component.d.ts +8 -8
- package/dist/types/types/editor-config.d.ts +3 -3
- package/dist/types/types/editor-props.d.ts +10 -10
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/actions/index.d.ts +2 -2
- package/dist/types-ts4.5/commands/index.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/get-plugins.d.ts +6 -6
- package/dist/types-ts4.5/editor-next/editor-internal.d.ts +5 -6
- package/dist/types-ts4.5/editor-next/hooks/useMeasureEditorMountTime.d.ts +1 -1
- package/dist/types-ts4.5/editor-next/hooks/useProviderFactory.d.ts +3 -3
- package/dist/types-ts4.5/editor-next/index.d.ts +2 -1
- package/dist/types-ts4.5/editor-next/utils/deprecationWarnings.d.ts +1 -1
- package/dist/types-ts4.5/editor-next/utils/handleProviders.d.ts +1 -2
- package/dist/types-ts4.5/editor-next/utils/onEditorCreated.d.ts +3 -3
- package/dist/types-ts4.5/editor-next/utils/sendDurationAnalytics.d.ts +1 -1
- package/dist/types-ts4.5/editor-next/utils/trackEditorActions.d.ts +1 -1
- package/dist/types-ts4.5/editor.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +1 -1
- package/dist/types-ts4.5/selection-api/api.d.ts +1 -1
- package/dist/types-ts4.5/test-utils.d.ts +3 -3
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +8 -8
- package/dist/types-ts4.5/types/editor-config.d.ts +3 -3
- package/dist/types-ts4.5/types/editor-props.d.ts +10 -10
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/utils';
|
|
3
2
|
import { inlineNodeViewClassname } from '@atlaskit/editor-common/react-node-view';
|
|
3
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/utils';
|
|
4
4
|
|
|
5
5
|
// For reasoning behind styles, see comments in:
|
|
6
6
|
// ./getInlineNodeViewProducer -> portalChildren()
|
|
@@ -167,7 +167,7 @@ export const createPlugin = (options, pluginInjectionApi) => pmPluginFactoryPara
|
|
|
167
167
|
const isDatasource = !!(node !== null && node !== void 0 && (_node$attrs3 = node.attrs) !== null && _node$attrs3 !== void 0 && _node$attrs3.datasource);
|
|
168
168
|
if (isDatasource) {
|
|
169
169
|
var _node$attrs4;
|
|
170
|
-
if (canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : _node$attrs4.datasource)) {
|
|
170
|
+
if (platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : _node$attrs4.datasource)) {
|
|
171
171
|
return new Datasource({
|
|
172
172
|
node,
|
|
173
173
|
view,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Node as PMNode, Fragment } from 'prosemirror-model';
|
|
2
|
-
import { InsertTypeAheadStep, InsertTypeAheadStages } from '@atlaskit/adf-schema/steps';
|
|
3
1
|
import { closeHistory } from 'prosemirror-history';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { StatsModifier } from '../stats-modifier';
|
|
2
|
+
import { Fragment, Node as PMNode } from 'prosemirror-model';
|
|
3
|
+
import { InsertTypeAheadStages, InsertTypeAheadStep } from '@atlaskit/adf-schema/steps';
|
|
7
4
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
5
|
+
import { insertBlockNode, insertInlineNodeOrFragment } from '../insert-utils';
|
|
8
6
|
import { ACTIONS } from '../pm-plugins/actions';
|
|
7
|
+
import { pluginKey } from '../pm-plugins/key';
|
|
8
|
+
import { StatsModifier } from '../stats-modifier';
|
|
9
9
|
import { closeTypeAhead } from '../transforms/close-type-ahead';
|
|
10
10
|
import { getPluginState } from '../utils';
|
|
11
11
|
const validateNode = ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TextSelection } from 'prosemirror-state';
|
|
2
|
-
import {
|
|
2
|
+
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
3
|
import { createSchema } from './create-editor/create-schema';
|
|
4
|
-
import
|
|
4
|
+
import { sortByOrder } from './create-editor/sort-by-order';
|
|
5
5
|
import { analyticsPluginKey } from './plugins/analytics/plugin-key';
|
|
6
|
+
import basePlugin from './plugins/base';
|
|
6
7
|
export { createTypeAheadTools } from './plugins/type-ahead/api';
|
|
7
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
8
8
|
export function getFireAnalytics(editorView) {
|
|
9
9
|
var _analyticsPluginKey$g;
|
|
10
10
|
return analyticsPluginKey === null || analyticsPluginKey === void 0 ? void 0 : (_analyticsPluginKey$g = analyticsPluginKey.getState(editorView.state)) === null || _analyticsPluginKey$g === void 0 ? void 0 : _analyticsPluginKey$g.fireAnalytics;
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,16 +4,15 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
import { Node } from 'prosemirror-model';
|
|
7
|
-
import { analyticsEventKey } from '@atlaskit/editor-common/utils';
|
|
8
7
|
import { NodeSelection, TextSelection } from 'prosemirror-state';
|
|
9
8
|
import { findParentNode, safeInsert } from 'prosemirror-utils';
|
|
9
|
+
import { analyticsEventKey, isEmptyDocument, processRawValue } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import { createDispatch } from '../event-dispatcher';
|
|
11
11
|
import { getCollabProvider } from '../plugins/collab-edit/native-collab-provider-plugin';
|
|
12
12
|
import { findNodePosWithLocalId } from '../plugins/extension/utils';
|
|
13
13
|
import { toJSON } from '../utils';
|
|
14
|
-
import {
|
|
14
|
+
import { __temporaryFixForConfigPanel as _temporaryFixForConfigPanel, getEditorValueWithMedia } from '../utils/action';
|
|
15
15
|
import deprecationWarnings from '../utils/deprecation-warnings';
|
|
16
|
-
import { isEmptyDocument, processRawValue } from '@atlaskit/editor-common/utils';
|
|
17
16
|
import { processRawFragmentValue } from '../utils/document';
|
|
18
17
|
import { findNodePosByFragmentLocalIds } from '../utils/nodes-by-localIds';
|
|
19
18
|
var EditorActions = /*#__PURE__*/function () {
|
|
@@ -4,8 +4,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
import { Fragment } from 'prosemirror-model';
|
|
5
5
|
import { NodeSelection, Selection, TextSelection } from 'prosemirror-state';
|
|
6
6
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
7
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, withAnalytics } from '../plugins/analytics';
|
|
7
8
|
import { canMoveDown, canMoveUp } from '../utils';
|
|
8
|
-
import { withAnalytics, EVENT_TYPE, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../plugins/analytics';
|
|
9
9
|
export function preventDefault() {
|
|
10
10
|
return function () {
|
|
11
11
|
return true;
|
|
@@ -2,22 +2,21 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
|
|
6
|
-
import { BaseTheme, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
7
|
-
import { jsx, css } from '@emotion/react';
|
|
8
5
|
import { Fragment } from 'react';
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
|
+
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import { PortalProviderWithThemeProviders, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
|
|
9
|
+
import { BaseTheme, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
9
10
|
import { getUiComponent } from '../create-editor';
|
|
10
|
-
import ReactEditorView from '../create-editor/ReactEditorViewNext';
|
|
11
11
|
import ErrorBoundary from '../create-editor/ErrorBoundary';
|
|
12
12
|
import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
|
|
13
|
+
import ReactEditorView from '../create-editor/ReactEditorViewNext';
|
|
13
14
|
import { ContextAdapter } from '../nodeviews/context-adapter';
|
|
14
|
-
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
15
15
|
import EditorContext from '../ui/EditorContext';
|
|
16
|
-
import { PortalProviderWithThemeProviders, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
|
|
17
16
|
import { RenderTracking } from '../utils/performance/components/RenderTracking';
|
|
18
|
-
import { getBaseFontSize } from './utils/getBaseFontSize';
|
|
19
17
|
import useMeasureEditorMountTime from './hooks/useMeasureEditorMountTime';
|
|
20
18
|
import useProviderFactory from './hooks/useProviderFactory';
|
|
19
|
+
import { getBaseFontSize } from './utils/getBaseFontSize';
|
|
21
20
|
/**
|
|
22
21
|
* EditorInternal is used for the internal editor react component
|
|
23
22
|
* with the lifecycle methods extracted into hooks.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
-
import { clearMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
|
|
4
3
|
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { clearMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import measurements from '../../utils/performance/measure-enum';
|
|
6
6
|
import sendDurationAnalytics from '../utils/sendDurationAnalytics';
|
|
7
7
|
import useEditorConstructor from './useEditorMeasuresConstructor';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
2
|
import { useEffect, useRef, useState } from 'react';
|
|
4
3
|
import { usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
5
|
-
import
|
|
4
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
5
|
import prepareExtensionProvider from '../../utils/prepare-extension-provider';
|
|
7
|
-
import
|
|
6
|
+
import prepareQuickInsertProvider from '../../utils/prepare-quick-insert-provider';
|
|
8
7
|
import getProvidersFromEditorProps from '../utils/getProvidersFromEditorProps';
|
|
8
|
+
import handleProviders from '../utils/handleProviders';
|
|
9
9
|
function createNewState(editorActions, quickInsert, extensionProviders, createAnalyticsEvent) {
|
|
10
10
|
var extensionProvider = prepareExtensionProvider(function () {
|
|
11
11
|
return editorActions;
|
|
@@ -10,24 +10,23 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
/** @jsx jsx */
|
|
13
|
-
|
|
14
|
-
import { WithCreateAnalyticsEvent } from '@atlaskit/editor-common/ui';
|
|
15
|
-
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
13
|
+
import React from 'react';
|
|
16
14
|
import { jsx } from '@emotion/react';
|
|
17
15
|
import PropTypes from 'prop-types';
|
|
18
|
-
import React from 'react';
|
|
19
|
-
import { name, version } from '../version-wrapper';
|
|
20
|
-
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
21
16
|
import uuid from 'uuid/v4';
|
|
22
|
-
import
|
|
17
|
+
import { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
23
18
|
import { fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
19
|
+
import { WithCreateAnalyticsEvent } from '@atlaskit/editor-common/ui';
|
|
20
|
+
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils';
|
|
21
|
+
import EditorActions from '../actions';
|
|
22
|
+
import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
|
|
23
|
+
import { basePlugin } from '../plugins';
|
|
24
|
+
import { name, version } from '../version-wrapper';
|
|
24
25
|
import EditorInternal from './editor-internal';
|
|
26
|
+
import deprecationWarnings from './utils/deprecationWarnings';
|
|
25
27
|
import { propTypes } from './utils/editorPropTypes';
|
|
26
|
-
import trackEditorActions from './utils/trackEditorActions';
|
|
27
28
|
import _onEditorCreated from './utils/onEditorCreated';
|
|
28
|
-
import
|
|
29
|
-
import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
|
|
30
|
-
import { basePlugin } from '../plugins';
|
|
29
|
+
import trackEditorActions from './utils/trackEditorActions';
|
|
31
30
|
var EditorNext = /*#__PURE__*/function (_React$Component) {
|
|
32
31
|
_inherits(EditorNext, _React$Component);
|
|
33
32
|
var _super = _createSuper(EditorNext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getTTISeverity } from '@atlaskit/editor-common/utils';
|
|
2
|
-
import { EditorExperience } from '@atlaskit/editor-common/ufo';
|
|
3
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { EditorExperience } from '@atlaskit/editor-common/ufo';
|
|
3
|
+
import { getTTISeverity } from '@atlaskit/editor-common/utils';
|
|
4
4
|
export default function editorMeasureTTICallback(tti, ttiFromInvocation, canceled, performanceTracking, featureFlags, createAnalyticsEvent, experienceStore) {
|
|
5
5
|
var _performanceTracking$;
|
|
6
6
|
if (performanceTracking !== null && performanceTracking !== void 0 && (_performanceTracking$ = performanceTracking.ttiTracking) !== null && _performanceTracking$ !== void 0 && _performanceTracking$.enabled && createAnalyticsEvent) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
import { EditorExperience, ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
2
3
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
|
|
3
|
-
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import measurements from '../../utils/performance/measure-enum';
|
|
5
5
|
import sendDurationAnalytics from './sendDurationAnalytics';
|
|
6
6
|
export default function onEditorCreated(instance, props, setExperienceStore, getExperienceStore, getCreateAnalyticsEvent, editorActions, startTime, registerEditorForActions) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
import { EditorExperience } from '@atlaskit/editor-common/ufo';
|
|
4
3
|
import { ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { EditorExperience } from '@atlaskit/editor-common/ufo';
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
7
7
|
* Util function to be used with the Editor component to send duration analytics
|
package/dist/esm/editor.js
CHANGED
|
@@ -8,8 +8,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
/** @jsx jsx */
|
|
11
|
-
import { jsx } from '@emotion/react';
|
|
12
11
|
import React from 'react';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
13
13
|
import { defaultProps } from './editor-next/utils/editorPropTypes';
|
|
14
14
|
import EditorNext from './editor-next';
|
|
15
15
|
import useUniversalPreset from './labs/next/presets/useUniversalPreset';
|
package/dist/esm/messages.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Common Translations will live here
|
|
2
2
|
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
3
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
4
3
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
4
|
+
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
5
5
|
export { linkMessages };
|
|
6
6
|
export { statusMessages };
|
|
7
7
|
export { dateMessages };
|
|
@@ -9,8 +9,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import PropTypes from 'prop-types';
|
|
12
|
-
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
13
12
|
import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
|
|
13
|
+
import { SmartCardContext } from '@atlaskit/link-provider';
|
|
14
14
|
function useContextMemoized(reactContext) {
|
|
15
15
|
var value = React.useContext(reactContext);
|
|
16
16
|
var context = React.useMemo(function () {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/utils';
|
|
5
4
|
import { inlineNodeViewClassname } from '@atlaskit/editor-common/react-node-view';
|
|
5
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/utils';
|
|
6
6
|
|
|
7
7
|
// For reasoning behind styles, see comments in:
|
|
8
8
|
// ./getInlineNodeViewProducer -> portalChildren()
|
|
@@ -159,7 +159,7 @@ export var createPlugin = function createPlugin(options, pluginInjectionApi) {
|
|
|
159
159
|
var isDatasource = !!(node !== null && node !== void 0 && (_node$attrs3 = node.attrs) !== null && _node$attrs3 !== void 0 && _node$attrs3.datasource);
|
|
160
160
|
if (isDatasource) {
|
|
161
161
|
var _node$attrs4;
|
|
162
|
-
if (canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : _node$attrs4.datasource)) {
|
|
162
|
+
if (platform !== 'mobile' && canRenderDatasource(node === null || node === void 0 ? void 0 : (_node$attrs4 = node.attrs) === null || _node$attrs4 === void 0 ? void 0 : _node$attrs4.datasource)) {
|
|
163
163
|
return new Datasource({
|
|
164
164
|
node: node,
|
|
165
165
|
view: view,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { Node as PMNode, Fragment } from 'prosemirror-model';
|
|
3
|
-
import { InsertTypeAheadStep, InsertTypeAheadStages } from '@atlaskit/adf-schema/steps';
|
|
4
2
|
import { closeHistory } from 'prosemirror-history';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { StatsModifier } from '../stats-modifier';
|
|
3
|
+
import { Fragment, Node as PMNode } from 'prosemirror-model';
|
|
4
|
+
import { InsertTypeAheadStages, InsertTypeAheadStep } from '@atlaskit/adf-schema/steps';
|
|
8
5
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
6
|
+
import { insertBlockNode, insertInlineNodeOrFragment } from '../insert-utils';
|
|
9
7
|
import { ACTIONS } from '../pm-plugins/actions';
|
|
8
|
+
import { pluginKey } from '../pm-plugins/key';
|
|
9
|
+
import { StatsModifier } from '../stats-modifier';
|
|
10
10
|
import { closeTypeAhead } from '../transforms/close-type-ahead';
|
|
11
11
|
import { getPluginState } from '../utils';
|
|
12
12
|
var validateNode = function validateNode(_ref) {
|
package/dist/esm/test-utils.js
CHANGED
|
@@ -3,12 +3,12 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
5
|
import { TextSelection } from 'prosemirror-state';
|
|
6
|
-
import {
|
|
6
|
+
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
7
7
|
import { createSchema } from './create-editor/create-schema';
|
|
8
|
-
import
|
|
8
|
+
import { sortByOrder } from './create-editor/sort-by-order';
|
|
9
9
|
import { analyticsPluginKey } from './plugins/analytics/plugin-key';
|
|
10
|
+
import basePlugin from './plugins/base';
|
|
10
11
|
export { createTypeAheadTools } from './plugins/type-ahead/api';
|
|
11
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
12
12
|
export function getFireAnalytics(editorView) {
|
|
13
13
|
var _analyticsPluginKey$g;
|
|
14
14
|
return analyticsPluginKey === null || analyticsPluginKey === void 0 ? void 0 : (_analyticsPluginKey$g = analyticsPluginKey.getState(editorView.state)) === null || _analyticsPluginKey$g === void 0 ? void 0 : _analyticsPluginKey$g.fireAnalytics;
|
package/dist/esm/version.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
|
-
import {
|
|
2
|
+
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
4
4
|
import type { ResolvedEditorState } from '@atlaskit/collab-provider';
|
|
5
|
+
import { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
5
6
|
import type { FeatureFlags, Transformer } from '@atlaskit/editor-common/types';
|
|
6
|
-
import { EditorView } from 'prosemirror-view';
|
|
7
7
|
import { EventDispatcher } from '../event-dispatcher';
|
|
8
8
|
export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
9
9
|
private editorView?;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Node as PMNode,
|
|
1
|
+
import { MarkType, NodeType, Node as PMNode, Schema } from 'prosemirror-model';
|
|
2
2
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
3
|
-
import { Command } from '../types';
|
|
4
3
|
import { AlignmentState } from '../plugins/alignment/pm-plugins/types';
|
|
4
|
+
import { Command } from '../types';
|
|
5
5
|
export declare function preventDefault(): Command;
|
|
6
6
|
export declare function insertNewLine(): Command;
|
|
7
7
|
export declare const insertNewLineWithAnalytics: Command;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Schema } from 'prosemirror-model';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { EditorState, Transaction } from 'prosemirror-state';
|
|
3
|
+
import { IntlShape } from 'react-intl-next';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
6
|
+
import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
7
|
+
import { Dispatch, EventDispatcher } from '../event-dispatcher';
|
|
7
8
|
import { EditorReactContext } from '../types/editor-react-context';
|
|
8
9
|
import { FeatureFlags } from '../types/feature-flags';
|
|
9
|
-
import {
|
|
10
|
-
import type { UIComponentFactory, ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
10
|
+
import { MarkConfig, NodeConfig } from '../types/pm-config';
|
|
11
11
|
export type LightPMPluginFactoryParams = {
|
|
12
12
|
schema: Schema;
|
|
13
13
|
dispatch: Dispatch;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import type { Transformer, AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
3
1
|
import { jsx } from '@emotion/react';
|
|
4
2
|
import { EditorView } from 'prosemirror-view';
|
|
5
3
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
|
+
import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
6
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import type { AllEditorPresetPluginTypes, Transformer } from '@atlaskit/editor-common/types';
|
|
6
8
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
7
9
|
import EditorActions from '../actions';
|
|
8
10
|
import { EventDispatcher } from '../event-dispatcher';
|
|
9
|
-
import {
|
|
10
|
-
import { EditorProps, EditorNextProps } from '../types/editor-props';
|
|
11
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
12
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
11
|
+
import { EditorNextProps, EditorProps } from '../types/editor-props';
|
|
13
12
|
interface Props<PropsType> {
|
|
14
13
|
props: PropsType;
|
|
15
14
|
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
|
-
import {
|
|
3
|
+
import { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
* Hook to run the analytics for the Editor component.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
1
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
-
import { EditorNextProps } from '../../types/editor-props';
|
|
3
4
|
import EditorActions from '../../actions';
|
|
4
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { QuickInsertProvider } from '../../plugins/quick-insert/types';
|
|
6
|
-
import
|
|
6
|
+
import { EditorNextProps } from '../../types/editor-props';
|
|
7
7
|
export type ProviderFactoryState = {
|
|
8
8
|
extensionProvider?: ExtensionProvider;
|
|
9
9
|
quickInsertProvider?: Promise<QuickInsertProvider>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
1
3
|
import { jsx } from '@emotion/react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
|
-
import React from 'react';
|
|
4
5
|
import { EditorNextProps } from '../types/editor-props';
|
|
5
6
|
import { Context } from './utils/editorPropTypes';
|
|
6
7
|
export default class EditorNext extends React.Component<EditorNextProps> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
2
2
|
export default function deprecationWarnings(props: EditorProps | EditorNextProps): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
2
|
+
import { ProviderFactory, Providers } from '@atlaskit/editor-common/provider-factory';
|
|
4
3
|
import { QuickInsertProvider } from '../../plugins/quick-insert/types';
|
|
5
4
|
/**
|
|
6
5
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { EditorView } from 'prosemirror-view';
|
|
1
2
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
3
|
import { Transformer } from '@atlaskit/editor-common/types';
|
|
4
|
-
import {
|
|
4
|
+
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
5
5
|
import EditorActions from '../../actions';
|
|
6
6
|
import { EventDispatcher } from '../../event-dispatcher';
|
|
7
|
-
import {
|
|
7
|
+
import { EditorNextProps, EditorProps } from '../../types/editor-props';
|
|
8
8
|
export default function onEditorCreated(instance: {
|
|
9
9
|
view: EditorView;
|
|
10
10
|
eventDispatcher: EventDispatcher;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
3
2
|
import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
4
4
|
import { EditorProps } from '../../types/editor-props';
|
|
5
5
|
/**
|
|
6
6
|
*
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
4
|
import { EditorProps } from './types/editor-props';
|
|
5
5
|
export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, FeedbackInfo, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
|
|
6
6
|
export default class Editor extends React.Component<EditorProps> {
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import commonMessages, { linkMessages, linkToolbarMessages } from '@atlaskit/editor-common/messages';
|
|
2
|
-
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
3
2
|
import { messages as dateMessages } from './plugins/date/nodeviews/messages';
|
|
3
|
+
import { messages as statusMessages } from './plugins/status/nodeviews/messages';
|
|
4
4
|
export { linkMessages };
|
|
5
5
|
export { statusMessages };
|
|
6
6
|
export { dateMessages };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { EditorState, Selection, Transaction } from 'prosemirror-state';
|
|
1
2
|
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
2
|
-
import type { Transaction, Selection, EditorState } from 'prosemirror-state';
|
|
3
3
|
import type { SelectionPluginState } from '../plugins/selection/types';
|
|
4
4
|
export type EditorSelectionAPI = {
|
|
5
5
|
setSelectionRelativeToNode: (props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { Schema } from 'prosemirror-model';
|
|
1
2
|
import { Plugin } from 'prosemirror-state';
|
|
2
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
|
+
import { type EditorPluginInjectionAPI, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
5
|
+
import type { AllEditorPresetPluginTypes, ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
3
6
|
import { LightPMPlugin, LightPMPluginFactoryParams, OnEditorViewStateUpdated } from './create-editor/get-plugins';
|
|
4
|
-
import { Schema } from 'prosemirror-model';
|
|
5
7
|
import { MarkConfig, NodeConfig } from './types/pm-config';
|
|
6
8
|
export { createTypeAheadTools } from './plugins/type-ahead/api';
|
|
7
9
|
export type { LightEditorPlugin } from './create-editor/get-plugins';
|
|
8
10
|
export type { DispatchAnalyticsEvent } from './plugins/analytics/types';
|
|
9
11
|
export type { FeatureFlags } from './types/feature-flags';
|
|
10
|
-
import { EditorPresetBuilder, type EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
11
|
-
import type { AllEditorPresetPluginTypes, UIComponentFactory, ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
12
12
|
export interface LightEditorConfig {
|
|
13
13
|
nodes: NodeConfig[];
|
|
14
14
|
marks: MarkConfig[];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { EditorView } from 'prosemirror-view';
|
|
2
1
|
import { RefObject } from 'react';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { EditorView } from 'prosemirror-view';
|
|
4
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
3
5
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
4
6
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import {
|
|
7
|
+
import type { ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
6
8
|
import EditorActions from '../actions';
|
|
9
|
+
import { EventDispatcher } from '../event-dispatcher';
|
|
10
|
+
import { CollabEditOptions } from '../plugins/collab-edit/types';
|
|
11
|
+
import { PrimaryToolbarComponents, ReactComponents, UseStickyToolbarType } from '../types/editor-props';
|
|
7
12
|
import { UIComponentFactory } from '../types/ui-components';
|
|
8
|
-
import {
|
|
13
|
+
import { MenuItem } from '../ui/DropdownMenu/types';
|
|
9
14
|
import { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
10
|
-
import { CollabEditOptions } from '../plugins/collab-edit/types';
|
|
11
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
12
15
|
import { EditorAppearance } from './editor-appearance';
|
|
13
|
-
import { MenuItem } from '../ui/DropdownMenu/types';
|
|
14
|
-
import { ReactElement } from 'react';
|
|
15
16
|
import { FeatureFlags } from './feature-flags';
|
|
16
|
-
import type { ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
17
17
|
export interface EditorAppearanceComponentProps {
|
|
18
18
|
appearance?: EditorAppearance;
|
|
19
19
|
onSave?: (editorView: EditorView) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
|
+
import type { ReactHookFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
1
3
|
import { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
2
|
-
import { Transaction, EditorState } from 'prosemirror-state';
|
|
3
|
-
import { PMPlugin } from './pm-plugin';
|
|
4
4
|
import { MarkConfig, NodeConfig } from './pm-config';
|
|
5
|
-
import
|
|
5
|
+
import { PMPlugin } from './pm-plugin';
|
|
6
6
|
type EditorViewStateUpdatedCallbackProps = {
|
|
7
7
|
readonly originalTransaction: Readonly<Transaction>;
|
|
8
8
|
readonly transactions: readonly Transaction[];
|