@atlaskit/editor-core 236.0.6 → 236.0.8
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 +12 -0
- package/dist/cjs/actions/index.js +6 -6
- package/dist/cjs/composable-editor/core-editor.js +6 -5
- package/dist/cjs/composable-editor/editor-internal.js +5 -5
- package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +2 -2
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +2 -2
- package/dist/cjs/composable-editor/hooks/useProviderFactory.js +2 -2
- package/dist/cjs/composable-editor/utils/getBaseFontSize.js +4 -4
- package/dist/cjs/composable-editor/utils/sendDurationAnalytics.js +5 -4
- package/dist/cjs/create-editor/ErrorBoundary.js +12 -11
- package/dist/cjs/create-editor/ReactEditorView/formatFullWidthAppearance.js +3 -3
- package/dist/cjs/create-editor/ReactEditorView/useDispatchTransaction.js +8 -7
- package/dist/cjs/create-editor/ReactEditorView/useFireFullWidthEvent.js +7 -6
- package/dist/cjs/create-editor/ReactEditorView.js +48 -44
- package/dist/cjs/presets/default.js +4 -4
- package/dist/cjs/presets/universal.js +2 -2
- package/dist/cjs/presets/useUniversalPreset.js +2 -2
- package/dist/cjs/test-utils.js +4 -4
- package/dist/cjs/ui/Addon/click-area-helper.js +7 -7
- package/dist/cjs/ui/Addon/outsideProsemirrorEditorClickHandler.js +2 -2
- package/dist/cjs/ui/Appearance/Chromeless.js +3 -3
- package/dist/cjs/ui/Appearance/Comment/CommentToolbar.js +4 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +9 -9
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +5 -5
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +10 -9
- package/dist/cjs/ui/ChromeCollapsed/styles.js +2 -2
- package/dist/cjs/ui/ContextPanel/index.js +7 -7
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -3
- package/dist/cjs/ui/ErrorBoundary/index.js +5 -5
- package/dist/cjs/ui/ExcludeFromHydration/index.js +2 -2
- package/dist/cjs/ui/PluginSlot/index.js +3 -3
- package/dist/cjs/ui/Toolbar/Toolbar.js +17 -14
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -2
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/cjs/ui/ToolbarHelp/index.js +2 -2
- package/dist/cjs/ui/WithHelpTrigger/index.js +8 -8
- package/dist/cjs/ui/quick-insert/executeExtensionQuickInsertItem.js +14 -13
- package/dist/cjs/use-preset.js +2 -2
- package/dist/cjs/utils/combineQuickInsertProviders.js +3 -2
- package/dist/cjs/utils/extensions.js +16 -14
- package/dist/cjs/utils/performance/safer-transactions.js +4 -4
- package/dist/cjs/utils/prepare-extension-provider.js +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +2 -1
- package/dist/es2019/composable-editor/editor-internal.js +2 -2
- package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -1
- package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +1 -1
- package/dist/es2019/composable-editor/hooks/useProviderFactory.js +1 -1
- package/dist/es2019/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/es2019/composable-editor/utils/sendDurationAnalytics.js +2 -1
- package/dist/es2019/create-editor/ErrorBoundary.js +4 -3
- package/dist/es2019/create-editor/ReactEditorView/formatFullWidthAppearance.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView/useDispatchTransaction.js +3 -2
- package/dist/es2019/create-editor/ReactEditorView/useFireFullWidthEvent.js +2 -2
- package/dist/es2019/create-editor/ReactEditorView.js +11 -7
- package/dist/es2019/presets/default.js +2 -2
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/presets/useUniversalPreset.js +1 -1
- package/dist/es2019/test-utils.js +2 -2
- package/dist/es2019/ui/Addon/click-area-helper.js +1 -1
- package/dist/es2019/ui/Addon/outsideProsemirrorEditorClickHandler.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/CommentToolbar.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +5 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +5 -4
- package/dist/es2019/ui/ChromeCollapsed/styles.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +3 -3
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
- package/dist/es2019/ui/ErrorBoundary/index.js +2 -2
- package/dist/es2019/ui/ExcludeFromHydration/index.js +1 -1
- package/dist/es2019/ui/PluginSlot/index.js +1 -1
- package/dist/es2019/ui/Toolbar/Toolbar.js +7 -4
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/es2019/ui/ToolbarHelp/index.js +1 -1
- package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
- package/dist/es2019/ui/quick-insert/executeExtensionQuickInsertItem.js +4 -3
- package/dist/es2019/use-preset.js +1 -1
- package/dist/es2019/utils/combineQuickInsertProviders.js +1 -1
- package/dist/es2019/utils/extensions.js +4 -2
- package/dist/es2019/utils/performance/safer-transactions.js +1 -1
- package/dist/es2019/utils/prepare-extension-provider.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +2 -1
- package/dist/esm/composable-editor/editor-internal.js +2 -2
- package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -1
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +1 -1
- package/dist/esm/composable-editor/hooks/useProviderFactory.js +1 -1
- package/dist/esm/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/esm/composable-editor/utils/sendDurationAnalytics.js +2 -1
- package/dist/esm/create-editor/ErrorBoundary.js +4 -3
- package/dist/esm/create-editor/ReactEditorView/formatFullWidthAppearance.js +1 -1
- package/dist/esm/create-editor/ReactEditorView/useDispatchTransaction.js +3 -2
- package/dist/esm/create-editor/ReactEditorView/useFireFullWidthEvent.js +2 -2
- package/dist/esm/create-editor/ReactEditorView.js +11 -7
- package/dist/esm/presets/default.js +2 -2
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/presets/useUniversalPreset.js +1 -1
- package/dist/esm/test-utils.js +2 -2
- package/dist/esm/ui/Addon/click-area-helper.js +1 -1
- package/dist/esm/ui/Addon/outsideProsemirrorEditorClickHandler.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +1 -1
- package/dist/esm/ui/Appearance/Comment/CommentToolbar.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +5 -5
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +5 -4
- package/dist/esm/ui/ChromeCollapsed/styles.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +3 -3
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
- package/dist/esm/ui/ErrorBoundary/index.js +2 -2
- package/dist/esm/ui/ExcludeFromHydration/index.js +1 -1
- package/dist/esm/ui/PluginSlot/index.js +1 -1
- package/dist/esm/ui/Toolbar/Toolbar.js +7 -4
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/esm/ui/ToolbarHelp/index.js +1 -1
- package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
- package/dist/esm/ui/quick-insert/executeExtensionQuickInsertItem.js +4 -3
- package/dist/esm/use-preset.js +1 -1
- package/dist/esm/utils/combineQuickInsertProviders.js +1 -1
- package/dist/esm/utils/extensions.js +4 -2
- package/dist/esm/utils/performance/safer-transactions.js +1 -1
- package/dist/esm/utils/prepare-extension-provider.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +3 -1
- package/dist/types/composable-editor/editor-internal.d.ts +3 -3
- package/dist/types/composable-editor/hooks/useProviderFactory.d.ts +1 -1
- package/dist/types/composable-editor/hooks/useProviders.d.ts +5 -2
- package/dist/types/composable-editor/utils/getBaseFontSize.d.ts +1 -1
- package/dist/types/composable-editor/utils/getProvidersFromEditorProps.d.ts +1 -1
- package/dist/types/composable-editor/utils/handleProviders.d.ts +4 -2
- package/dist/types/composable-editor/utils/sendDurationAnalytics.d.ts +1 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +3 -3
- package/dist/types/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +2 -2
- package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
- package/dist/types/create-editor/ReactEditorView/useFireFullWidthEvent.d.ts +2 -2
- package/dist/types/create-editor/ReactEditorView.d.ts +5 -5
- package/dist/types/create-editor/create-editor.d.ts +1 -1
- package/dist/types/create-editor/create-plugins-list.d.ts +3 -2
- package/dist/types/create-editor/create-schema.d.ts +1 -1
- package/dist/types/create-editor/filter-plugins-for-reconfigure.d.ts +1 -1
- package/dist/types/create-editor/get-plugins.d.ts +6 -4
- package/dist/types/create-editor/get-ui-component.d.ts +1 -1
- package/dist/types/create-editor/getScrollGutterOptions.d.ts +1 -1
- package/dist/types/presets/context.d.ts +1 -1
- package/dist/types/presets/default-preset-type.d.ts +3 -3
- package/dist/types/presets/default.d.ts +5 -3
- package/dist/types/presets/universal.d.ts +5 -4
- package/dist/types/test-utils.d.ts +4 -3
- package/dist/types/ts-hack.d.ts +1 -1
- package/dist/types/types/editor-appearance-component.d.ts +11 -7
- package/dist/types/types/editor-config.d.ts +4 -1
- package/dist/types/types/editor-instance.d.ts +3 -2
- package/dist/types/types/editor-props.d.ts +21 -10
- package/dist/types/types/markdown-mode.d.ts +1 -1
- package/dist/types/types/pm-plugin-list.d.ts +1 -1
- package/dist/types/types/with-appearance-component.d.ts +1 -1
- package/dist/types/ui/Appearance/Chromeless.d.ts +1 -1
- package/dist/types/ui/Appearance/Comment/CommentToolbar.d.ts +2 -1
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +6 -3
- package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +1 -1
- package/dist/types/ui/ContextPanel/index.d.ts +1 -1
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +2 -1
- package/dist/types/ui/ErrorBoundary/index.d.ts +3 -2
- package/dist/types/ui/PluginSlot/index.d.ts +4 -3
- package/dist/types/ui/PluginSlot/mount-plugin-hooks.d.ts +1 -1
- package/dist/types/ui/Toolbar/Toolbar.d.ts +4 -4
- package/dist/types/ui/Toolbar/getPrimaryToolbarComponents.d.ts +2 -1
- package/dist/types/ui/Toolbar/toolbar-size.d.ts +1 -1
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +5 -3
- package/dist/types/ui/ToolbarHelp/index.d.ts +1 -1
- package/dist/types/ui/quick-insert/ExtensionQuickInsertIcon.d.ts +1 -1
- package/dist/types/ui/quick-insert/ExtensionQuickInsertMenuItem.d.ts +3 -3
- package/dist/types/ui/quick-insert/executeExtensionQuickInsertItem.d.ts +5 -5
- package/dist/types/ui/quick-insert/getExtensionQuickInsertComponents.d.ts +3 -3
- package/dist/types/use-preset.d.ts +2 -2
- package/dist/types/utils/combineQuickInsertProviders.d.ts +1 -1
- package/dist/types/utils/extensions.d.ts +4 -4
- package/dist/types/utils/feature-flags-from-props.d.ts +1 -1
- package/dist/types/utils/is-chromeless.d.ts +1 -1
- package/dist/types/utils/is-full-page.d.ts +1 -1
- package/dist/types/utils/performance/safer-transactions.d.ts +1 -1
- package/dist/types/utils/performance/track-transactions.d.ts +1 -1
- package/dist/types/utils/prepare-extension-provider.d.ts +1 -1
- package/dist/types/utils/prepare-quick-insert-provider.d.ts +5 -4
- package/dist/types/utils/toolbar.d.ts +1 -1
- package/package.json +2 -2
|
@@ -14,10 +14,11 @@ import React from 'react';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
15
15
|
import { v4 as uuid } from 'uuid';
|
|
16
16
|
import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
17
|
+
import { editorAnalyticsChannel } from '@atlaskit/editor-common/analytics';
|
|
18
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
19
|
+
import { getDocStructure } from '@atlaskit/editor-common/document-logger';
|
|
19
20
|
import { IntlErrorBoundary } from '@atlaskit/editor-common/intl-error-boundary';
|
|
20
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
21
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
21
22
|
import { isOutdatedBrowser } from '../utils/outdatedBrowsers';
|
|
22
23
|
import { WithEditorView } from './WithEditorView';
|
|
23
24
|
// Ignored via go/ees005
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics/types/general-events';
|
|
2
2
|
export var formatFullWidthAppearance = function formatFullWidthAppearance(appearance) {
|
|
3
3
|
if (appearance === 'full-width') {
|
|
4
4
|
return FULL_WIDTH_MODE.FULL_WIDTH;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useCallback, useEffect, useRef } from 'react';
|
|
2
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import { getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics/utils';
|
|
3
4
|
import { isDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
4
|
-
import { getDocStructure } from '@atlaskit/editor-common/
|
|
5
|
+
import { getDocStructure } from '@atlaskit/editor-common/document-logger';
|
|
5
6
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
6
7
|
import { findChangedNodesFromTransaction } from '../../utils/findChangedNodesFromTransaction';
|
|
7
8
|
import { freezeUnsafeTransactionProperties } from '../../utils/performance/safer-transactions';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import
|
|
2
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
|
+
import usePreviousState from '@atlaskit/editor-common/usePreviousState';
|
|
4
4
|
import { formatFullWidthAppearance } from './formatFullWidthAppearance';
|
|
5
5
|
export var useFireFullWidthEvent = function useFireFullWidthEvent(appearance, dispatchAnalyticsEvent) {
|
|
6
6
|
var previousAppearance = usePreviousState(appearance);
|
|
@@ -11,27 +11,31 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState, useEffe
|
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
12
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
13
13
|
import { v4 as uuid } from 'uuid';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { fireAnalyticsEvent } from '@atlaskit/editor-common/analytics/fire-analytics-event';
|
|
15
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
16
|
+
import { PLATFORMS } from '@atlaskit/editor-common/analytics/types/general-events';
|
|
16
17
|
import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
17
|
-
import { useConstructor, usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
18
18
|
import { isPerformanceAPIAvailable } from '@atlaskit/editor-common/is-performance-api-available';
|
|
19
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
19
20
|
import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
20
21
|
import { getEnabledFeatureFlagKeys } from '@atlaskit/editor-common/normalize-feature-flags';
|
|
21
22
|
import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
|
|
22
23
|
import { getRequestToResponseTime, getResponseEndTime } from '@atlaskit/editor-common/performance/navigation';
|
|
23
|
-
import {
|
|
24
|
-
import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
24
|
+
import { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset/plugin-injection-api';
|
|
25
25
|
import { processRawValue, processRawValueWithoutValidation } from '@atlaskit/editor-common/process-raw-value';
|
|
26
|
-
import {
|
|
26
|
+
import { profileSSROperation } from '@atlaskit/editor-common/profileSSROperation';
|
|
27
|
+
import { SSRRenderMeasure } from '@atlaskit/editor-common/SSRRenderMeasure';
|
|
28
|
+
import ReactEditorViewContext from '@atlaskit/editor-common/ui-react/ReactEditorViewContext';
|
|
29
|
+
import useConstructor from '@atlaskit/editor-common/useConstructor';
|
|
30
|
+
import usePreviousState from '@atlaskit/editor-common/usePreviousState';
|
|
27
31
|
import { analyticsEventKey, getAnalyticsEventSeverity } from '@atlaskit/editor-common/utils/analytics';
|
|
28
32
|
import { isEmptyDocument } from '@atlaskit/editor-common/utils/document';
|
|
29
33
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
30
34
|
import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
31
35
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
32
|
-
import { EditorSSRRenderer } from '@atlaskit/editor-ssr-renderer';
|
|
33
36
|
import { createSSREditorState } from '@atlaskit/editor-ssr-renderer/create-ssr-editor-state';
|
|
34
37
|
import { createSSRPMPlugins } from '@atlaskit/editor-ssr-renderer/create-ssr-pm-plugins';
|
|
38
|
+
import { EditorSSRRenderer } from '@atlaskit/editor-ssr-renderer/editor-ssr-renderer';
|
|
35
39
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
36
40
|
import { addUFOCustomData } from '@atlaskit/react-ufo/add-ufo-custom-data';
|
|
37
41
|
import { getInteractionId } from '@atlaskit/react-ufo/get-interaction-id';
|
|
@@ -3,8 +3,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
// #region Imports
|
|
5
5
|
|
|
6
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
7
|
-
import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
6
|
+
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset/builder';
|
|
7
|
+
import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences/user-preferences-plugin';
|
|
8
8
|
import { analyticsPlugin } from '@atlaskit/editor-plugins/analytics';
|
|
9
9
|
import { basePlugin } from '@atlaskit/editor-plugins/base';
|
|
10
10
|
import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugins/better-type-history';
|
|
@@ -2,7 +2,7 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import { shouldForceTracking } from '@atlaskit/editor-common/utils';
|
|
5
|
+
import { shouldForceTracking } from '@atlaskit/editor-common/utils/should-force-tracking';
|
|
6
6
|
import { accessibilityUtilsPlugin } from '@atlaskit/editor-plugins/accessibility-utils';
|
|
7
7
|
import { alignmentPlugin } from '@atlaskit/editor-plugins/alignment';
|
|
8
8
|
import { annotationPlugin } from '@atlaskit/editor-plugins/annotation';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useLayoutEffect, useState } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import usePreviousState from '@atlaskit/editor-common/usePreviousState';
|
|
4
4
|
import { createUniversalPreset } from '../create-editor/create-universal-preset';
|
|
5
5
|
import { shouldRecreatePreset } from '../create-editor/preset-utils';
|
|
6
6
|
export default function useUniversalPreset(_ref) {
|
package/dist/esm/test-utils.js
CHANGED
|
@@ -6,8 +6,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
7
7
|
|
|
8
8
|
import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
|
|
9
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
10
|
-
import { basePlugin } from '@atlaskit/editor-
|
|
9
|
+
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset/builder';
|
|
10
|
+
import { basePlugin } from '@atlaskit/editor-plugin-base/basePlugin';
|
|
11
11
|
import { createSchema } from './create-editor/create-schema';
|
|
12
12
|
function lightProcessPluginsList(editorPlugins) {
|
|
13
13
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { closestElement } from '@atlaskit/editor-common/utils';
|
|
1
|
+
import { closestElement } from '@atlaskit/editor-common/utils/dom';
|
|
2
2
|
import { checkForModal } from './checkForModal';
|
|
3
3
|
import { ignoreAttribute } from './ClickAreaBlock/contentComponentWrapper';
|
|
4
4
|
import { outsideProsemirrorEditorClickHandler } from './outsideProsemirrorEditorClickHandler';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
|
|
2
2
|
import { addParagraphAtEnd } from '@atlaskit/editor-common/commands';
|
|
3
|
-
import { setSelectionTopLevelBlocks } from '@atlaskit/editor-common/selection';
|
|
3
|
+
import { setSelectionTopLevelBlocks } from '@atlaskit/editor-common/selection/actions';
|
|
4
4
|
export var outsideProsemirrorEditorClickHandler = function outsideProsemirrorEditorClickHandler(view, event) {
|
|
5
5
|
var _view$hasFocus;
|
|
6
6
|
var dispatch = view.dispatch,
|
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React, { Fragment } from 'react';
|
|
10
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/
|
|
10
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
11
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
12
|
import EditorContentContainer from '../EditorContentContainer/EditorContentContainer';
|
|
13
13
|
import PluginSlot from '../PluginSlot';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TOOLBARS } from '@atlaskit/editor-common/toolbar';
|
|
2
|
+
import { TOOLBARS } from '@atlaskit/editor-common/toolbar/keys';
|
|
3
3
|
import { isToolbar } from '../../../utils/toolbar';
|
|
4
4
|
import { ToolbarNext } from '../../Toolbar/Toolbar';
|
|
5
5
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
4
|
-
import {
|
|
5
|
-
import { SSRRenderMeasure } from '@atlaskit/editor-common/
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/context-panel';
|
|
5
|
+
import { SSRRenderMeasure } from '@atlaskit/editor-common/SSRRenderMeasure';
|
|
6
|
+
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/useSharedPluginStateSelector';
|
|
7
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
8
|
+
import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles/constants';
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
@@ -2,8 +2,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React, { useEffect, useCallback, useState } from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
4
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
5
|
-
import {
|
|
6
|
-
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
5
|
+
import { messages } from '@atlaskit/editor-common/messages/full-page';
|
|
6
|
+
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
7
7
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
8
8
|
import { ToolbarPortalMountPoint, useToolbarPortal } from '../../Toolbar/ToolbarPortal';
|
|
9
9
|
import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
|
|
@@ -4,10 +4,11 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React, { useCallback, useMemo } from 'react';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
7
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
7
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
8
|
+
import { shouldShowPrimaryToolbar } from '@atlaskit/editor-common/toolbar';
|
|
9
|
+
import { TOOLBARS, VIEW_MODE_TOGGLE_SECTION } from '@atlaskit/editor-common/toolbar/keys';
|
|
10
|
+
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
11
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
11
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
13
|
import { isToolbar } from '../../../utils/toolbar';
|
|
13
14
|
import ExcludeFromHydration from '../../ExcludeFromHydration';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
|
|
2
2
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
|
-
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
+
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles/constants';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export var inputStyle = css({
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -16,9 +16,9 @@ import { injectIntl } from 'react-intl';
|
|
|
16
16
|
import Transition from 'react-transition-group/Transition';
|
|
17
17
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
18
18
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { akEditorContextPanelWidth } from '@atlaskit/editor-shared-styles';
|
|
19
|
+
import { contextPanelMessages } from '@atlaskit/editor-common/messages/context-panel';
|
|
20
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
21
|
+
import { akEditorContextPanelWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
22
22
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
23
23
|
import { ContextPanelContentCompiled, ContextPanelWrapperCompiled } from './index-compiled';
|
|
24
24
|
// Ignored via go/ees005
|
|
@@ -13,12 +13,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
// eslint-disable-next-line import/order
|
|
15
15
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
16
|
+
|
|
16
17
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
17
18
|
// TODO: add back tableSharedStyle when migrate table styles
|
|
18
19
|
// import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
|
|
19
20
|
|
|
20
21
|
import { tableCellBackgroundColorVariablesForCompiled } from '@atlaskit/editor-common/table-cell-background-for-compiled';
|
|
21
|
-
import { akEditorFullPageDefaultFontSize, akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
22
|
+
import { akEditorFullPageDefaultFontSize, akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles/constants';
|
|
22
23
|
import { overflowShadowForCompiled } from '@atlaskit/editor-shared-styles/overflow-shadow-for-compiled';
|
|
23
24
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
24
25
|
import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
|
|
@@ -7,8 +7,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
11
|
-
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
10
|
+
import { ACTION, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
11
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
12
12
|
// Ignored via go/ees005
|
|
13
13
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
14
14
|
export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
3
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* ExcludeFromHydration component delays rendering of its children until after the initial
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import isEqual from 'lodash/isEqual';
|
|
3
|
-
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics/types/enums';
|
|
4
4
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
import { ErrorBoundary } from '../ErrorBoundary';
|
|
6
6
|
import { MountPluginHooks } from './mount-plugin-hooks';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { EditorToolbarProvider } from '@atlaskit/editor-common/toolbar/context';
|
|
3
|
+
import { EditorToolbarUIProvider } from '@atlaskit/editor-common/toolbar/EditorToolbarUIProvider';
|
|
4
4
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
5
|
+
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
5
6
|
import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
7
|
+
import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model/toolbar-model-renderer';
|
|
8
|
+
import { ToolbarButtonGroup } from '@atlaskit/editor-toolbar/toolbar-button-group';
|
|
9
|
+
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar/toolbar-dropdown-item-section';
|
|
10
|
+
import { ToolbarSection } from '@atlaskit/editor-toolbar/toolbar-section';
|
|
8
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
12
|
import { ToolbarInner } from './ToolbarInner';
|
|
10
13
|
var TOOLBAR_FALLBACKS = {
|
|
@@ -7,7 +7,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
10
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
11
11
|
import { ToolbarComponentsWrapperCompiled } from './ToolbarComponentsWrapper-compiled';
|
|
12
12
|
|
|
13
13
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { isSSR } from '@atlaskit/editor-common/
|
|
3
|
+
import { isSSR } from '@atlaskit/editor-common/is-ssr';
|
|
4
4
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
6
6
|
import { WidthObserver } from '@atlaskit/width-detector/width-observer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl';
|
|
3
|
-
import
|
|
3
|
+
import ToolbarButton from '@atlaskit/editor-common/ui-menu/ToolbarButton';
|
|
4
4
|
import QuestionIcon from '@atlaskit/icon/core/question-circle';
|
|
5
5
|
import { useEditorContext } from '../EditorContext';
|
|
6
6
|
import { messages } from './messages';
|
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
11
11
|
import { createDispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
12
12
|
import { EditorContext } from '@atlaskit/editor-common/UNSAFE_do_not_use_editor_context';
|
|
13
13
|
import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { fireAnalyticsEvent } from '@atlaskit/editor-common/analytics/fire-analytics-event';
|
|
5
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
|
+
import { resolveImport } from '@atlaskit/editor-common/extensions/manifest-helpers';
|
|
7
|
+
import { logException } from '@atlaskit/editor-common/monitoring/error';
|
|
7
8
|
import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
8
9
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
9
10
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
package/dist/esm/use-preset.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { useLayoutEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
3
|
+
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset/builder';
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import combineProviders from '@atlaskit/editor-common/combine-providers';
|
|
2
2
|
export function combineQuickInsertProviders(quickInsertProviders) {
|
|
3
3
|
var _combineProviders = combineProviders(quickInsertProviders),
|
|
4
4
|
invokeList = _combineProviders.invokeList,
|
|
@@ -7,8 +7,10 @@ import React from 'react';
|
|
|
7
7
|
import Loadable from 'react-loadable';
|
|
8
8
|
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
9
9
|
import { lazy, LazySuspense } from 'react-loosely-lazy';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { fireAnalyticsEvent } from '@atlaskit/editor-common/analytics/fire-analytics-event';
|
|
11
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics/types/enums';
|
|
12
|
+
import { resolveImport } from '@atlaskit/editor-common/extensions/manifest-helpers';
|
|
13
|
+
import { getQuickInsertItemsFromModule } from '@atlaskit/editor-common/extensions/module-helpers';
|
|
12
14
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
13
15
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
16
|
import { getExtensionQuickInsertComponents } from '../ui/quick-insert/getExtensionQuickInsertComponents';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
export var UNSAFE_PROPERTY_SET_ERROR = 'Setting an unsafe property on transaction after dispatch!';
|
|
3
3
|
|
|
4
4
|
// since selection uses curSelection under the hood, we guard setSelection instead
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
|
-
import
|
|
2
|
+
import combineExtensionProviders from '@atlaskit/editor-common/extensions/combine-extension-providers';
|
|
3
3
|
function prepareExtensionProvidersInternal(editorActions, extensionProviders) {
|
|
4
4
|
if (!extensionProviders) {
|
|
5
5
|
return;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
2
2
|
import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
3
3
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
-
import type { ContextUpdateHandler, EditorActionsOptions,
|
|
4
|
+
import type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, GetResolvedEditorStateReason } from '@atlaskit/editor-common/types/editor-actions';
|
|
5
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
6
|
+
import type { Transformer } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
5
7
|
import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
6
8
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
7
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -3,9 +3,9 @@ import type { MemoExoticComponent } from 'react';
|
|
|
3
3
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
4
|
import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
|
-
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
7
|
-
import type
|
|
8
|
-
import type { Transformer } from '@atlaskit/editor-common/types';
|
|
6
|
+
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset/builder';
|
|
7
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
8
|
+
import type { Transformer } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type EditorActions from '../actions';
|
|
11
11
|
import type { EditorAppearanceComponentProps } from '../types/editor-appearance-component';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import
|
|
2
|
+
import ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
3
3
|
import type EditorActions from '../../actions';
|
|
4
4
|
import type { EditorNextProps } from '../../types/editor-props';
|
|
5
5
|
/**
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type { AutoformattingProvider
|
|
2
|
-
import type {
|
|
1
|
+
import type { AutoformattingProvider } from '@atlaskit/editor-common/provider-factory/autoformatting-provider';
|
|
2
|
+
import type { CardProvider } from '@atlaskit/editor-common/provider-factory/card-provider';
|
|
3
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory/context-identifier-provider';
|
|
4
|
+
import type { MediaProvider } from '@atlaskit/editor-common/provider-factory/media-provider';
|
|
5
|
+
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
6
|
import type { CardPlugin } from '@atlaskit/editor-plugins/card';
|
|
4
7
|
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugins/context-identifier';
|
|
5
8
|
import type { CustomAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Providers } from '@atlaskit/editor-common/provider-factory';
|
|
1
|
+
import type { Providers } from '@atlaskit/editor-common/provider-factory/types';
|
|
2
2
|
import type { EditorProps } from '../../types/editor-props';
|
|
3
3
|
type Complete<T> = {
|
|
4
4
|
[P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type
|
|
1
|
+
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions/extension-provider';
|
|
2
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
3
|
+
import type { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory/quick-insert-provider';
|
|
4
|
+
import type { Providers } from '@atlaskit/editor-common/provider-factory/types';
|
|
3
5
|
/**
|
|
4
6
|
*
|
|
5
7
|
* Utility to set all the providers on a provider factory
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { ACTION } from '@atlaskit/editor-common/analytics/types/enums';
|
|
3
3
|
import type { EditorProps } from '../../types/editor-props';
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
@@ -3,9 +3,9 @@ import type { ErrorInfo } from 'react';
|
|
|
3
3
|
import type { Primitive } from '@sentry/types';
|
|
4
4
|
import { default as AnalyticsReactContext, type AnalyticsReactContextInterface } from '@atlaskit/analytics-next-stable-react-context';
|
|
5
5
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
6
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
|
|
6
|
+
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory/context-identifier-provider';
|
|
7
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types/feature-flags';
|
|
8
|
+
import type { UserBrowserExtensionResults } from '@atlaskit/editor-common/utils/browser-extensions';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
export type ErrorBoundaryProps = {
|
|
11
11
|
children: React.ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
1
|
+
import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics/types/general-events';
|
|
2
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types/editor-appearance';
|
|
3
3
|
export declare const formatFullWidthAppearance: (appearance: EditorAppearance | undefined) => FULL_WIDTH_MODE;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics/types/events';
|
|
2
2
|
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { EditorViewStateUpdatedCallbackProps } from '../../types/editor-config';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics/types/events';
|
|
2
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types/editor-appearance';
|
|
3
3
|
export declare const useFireFullWidthEvent: (appearance: EditorAppearance | undefined, dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps, WithIntlProps } from 'react-intl';
|
|
3
3
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
|
|
5
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/common';
|
|
5
6
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
|
-
import type {
|
|
7
|
-
import type
|
|
8
|
-
import type {
|
|
9
|
-
import type { PublicPluginAPI, Transformer } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset/builder';
|
|
8
|
+
import type ProviderFactory from '@atlaskit/editor-common/provider-factory/provider-factory';
|
|
9
|
+
import type { PublicPluginAPI, Transformer } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
10
10
|
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
11
|
import type { EditorConfig } from '../types/editor-config';
|
|
12
12
|
import type { EditorNextProps, EditorProps } from '../types/editor-props';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { EditorPlugin } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { EditorPlugin } from '@atlaskit/editor-common/types/editor-plugin';
|
|
2
2
|
import type { EditorConfig } from '../types/editor-config';
|
|
3
3
|
export declare function processPluginsList(plugins: EditorPlugin[]): EditorConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset/builder';
|
|
3
|
+
import type { EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset/plugin-injection-api';
|
|
4
|
+
import type { EditorPlugin } from '@atlaskit/editor-common/types/editor-plugin';
|
|
4
5
|
import type { DefaultPresetPluginOptions } from '../../src/presets/default';
|
|
5
6
|
import type { EditorPluginFeatureProps, EditorProps } from '../types/editor-props';
|
|
6
7
|
export declare function getDefaultPresetOptionsFromEditorProps(props: EditorProps, createAnalyticsEvent?: CreateUIAnalyticsEvent): DefaultPresetPluginOptions & Omit<EditorPluginFeatureProps, 'placeholder'>;
|