@atlaskit/editor-core 187.14.3 → 187.14.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/version-wrapper.js +1 -1
  3. package/dist/cjs/version.json +1 -1
  4. package/dist/es2019/version-wrapper.js +1 -1
  5. package/dist/es2019/version.json +1 -1
  6. package/dist/esm/version-wrapper.js +1 -1
  7. package/dist/esm/version.json +1 -1
  8. package/dist/types/plugins/avatar-group/index.d.ts +1 -1
  9. package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
  10. package/dist/types/plugins/code-block/types.d.ts +1 -1
  11. package/dist/types/plugins/collab-edit/index.d.ts +1 -2
  12. package/dist/types/plugins/collab-edit/types.d.ts +2 -25
  13. package/dist/types/plugins/collab-edit/utils.d.ts +1 -1
  14. package/dist/types/plugins/expand/index.d.ts +1 -1
  15. package/dist/types/plugins/extension/index.d.ts +3 -3
  16. package/dist/types/plugins/layout/types.d.ts +1 -1
  17. package/dist/types/plugins/panel/types.d.ts +1 -1
  18. package/dist/types/plugins/selection/types.d.ts +1 -3
  19. package/dist/types/plugins/tasks-and-decisions/types.d.ts +2 -2
  20. package/dist/types/types/editor-appearance-component.d.ts +1 -1
  21. package/dist/types/types/editor-props.d.ts +1 -1
  22. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -1
  23. package/dist/types-ts4.5/plugins/avatar-group/index.d.ts +1 -1
  24. package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -1
  25. package/dist/types-ts4.5/plugins/code-block/types.d.ts +1 -1
  26. package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +1 -2
  27. package/dist/types-ts4.5/plugins/collab-edit/types.d.ts +2 -25
  28. package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +1 -1
  29. package/dist/types-ts4.5/plugins/expand/index.d.ts +1 -1
  30. package/dist/types-ts4.5/plugins/extension/index.d.ts +3 -3
  31. package/dist/types-ts4.5/plugins/layout/types.d.ts +1 -1
  32. package/dist/types-ts4.5/plugins/panel/types.d.ts +1 -1
  33. package/dist/types-ts4.5/plugins/selection/types.d.ts +1 -3
  34. package/dist/types-ts4.5/plugins/tasks-and-decisions/types.d.ts +2 -2
  35. package/dist/types-ts4.5/types/editor-appearance-component.d.ts +1 -1
  36. package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
  37. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -1
  38. package/package.json +2 -2
  39. package/report.api.md +4 -42
  40. package/tmp/api-report-tmp.d.ts +4 -41
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.14.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8699cf99ceb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8699cf99ceb) - Exporting LayoutPluginOptions and CollabEditOptions from editor-common.
8
+ - Updated dependencies
9
+
3
10
  ## 187.14.3
4
11
 
5
12
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.14.3";
9
+ var version = "187.14.4";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.14.3",
3
+ "version": "187.14.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.14.3";
2
+ export const version = "187.14.4";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.14.3",
3
+ "version": "187.14.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.14.3";
2
+ export var version = "187.14.4";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.14.3",
3
+ "version": "187.14.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import { CollabEditOptions } from '../collab-edit';
2
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
3
3
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
4
  type Config = {
5
5
  collabEdit?: CollabEditOptions;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import type { EventDispatcher } from '../../../event-dispatcher';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { CollabEditOptions } from '../../collab-edit';
4
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
5
5
  import type { DispatchAnalyticsEvent } from '../../analytics';
6
6
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  declare const AvatarGroupPluginWrapper: (props: {
@@ -1,5 +1,5 @@
1
1
  import type { EditorAppearance } from '../../types';
2
- import { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
4
4
  allowCopyToClipboard?: boolean;
5
5
  allowCompositionInputOverride?: boolean;
@@ -1,10 +1,9 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import { pluginKey } from './plugin';
3
- import { CollabEditOptions, PrivateCollabEditOptions } from './types';
3
+ import { PrivateCollabEditOptions } from './types';
4
4
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
6
6
  export { pluginKey };
7
- export type { CollabEditOptions };
8
7
  declare const collabEditPlugin: NextEditorPlugin<'collabEdit', {
9
8
  pluginConfiguration: PrivateCollabEditOptions;
10
9
  dependencies: [
@@ -1,29 +1,6 @@
1
- import { ReactElement } from 'react';
2
- import { Providers } from '@atlaskit/editor-common/provider-factory';
3
1
  import type { CollabEditProvider, SyncUpErrorFunction } from '@atlaskit/collab-provider';
4
- export type InviteToEditComponentProps = {
5
- children: ReactElement<InviteToEditButtonProps>;
6
- };
7
- export type InviteToEditButtonProps = {
8
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
9
- selected: boolean;
10
- };
11
- export interface CollabInviteToEditProps {
12
- inviteToEditHandler?: (event: React.MouseEvent<HTMLElement>) => void;
13
- isInviteToEditButtonSelected?: boolean;
14
- inviteToEditComponent?: React.ComponentType<InviteToEditComponentProps>;
15
- }
16
- export interface CollabAnalyticsProps {
17
- /**
18
- * @description Control wether Synchrony entity error events are tracked
19
- */
20
- EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
21
- }
22
- export type CollabEditOptions = {
23
- provider?: Providers['collabEditProvider'];
24
- userId?: string;
25
- useNativePlugin?: boolean;
26
- } & CollabInviteToEditProps & CollabAnalyticsProps;
2
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
3
+ export type { InviteToEditComponentProps, InviteToEditButtonProps, CollabInviteToEditProps, CollabAnalyticsProps, } from '@atlaskit/editor-common/collab';
27
4
  export type PrivateCollabEditOptions = CollabEditOptions & {
28
5
  sanitizePrivateContent?: boolean;
29
6
  onSyncUpError?: SyncUpErrorFunction;
@@ -4,7 +4,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView, DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
5
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { CollabParticipant } from '@atlaskit/collab-provider';
7
- import type { CollabEditOptions } from './types';
7
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
8
8
  export interface Color {
9
9
  solid: string;
10
10
  selection: string;
@@ -1,5 +1,5 @@
1
1
  import type { NextEditorPlugin, EditorProps } from '../../types';
2
- import type { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
@@ -1,7 +1,7 @@
1
- import { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
1
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
2
2
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
- import { NextEditorPlugin, EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
4
- import { LongPressSelectionPluginOptions } from '../selection/types';
3
+ import type { NextEditorPlugin, EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
4
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
5
5
  import type { widthPlugin } from '@atlaskit/editor-plugin-width';
6
6
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
7
  import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
@@ -1,5 +1,5 @@
1
1
  import type { Slice } from '@atlaskit/editor-prosemirror/model';
2
- import type { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  export interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
4
4
  allowBreakout?: boolean;
5
5
  UNSAFE_addSidebarLayouts?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  export declare const pluginKey: PluginKey<any>;
4
4
  export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
5
5
  }
@@ -1,14 +1,12 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
2
  import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
3
3
  export type { SelectionPluginState } from '@atlaskit/editor-common/selection';
4
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
4
5
  export declare const selectionPluginKey: PluginKey<any>;
5
6
  export { RelativeSelectionPos };
6
7
  export declare enum SelectionDirection {
7
8
  Before = -1,
8
9
  After = 1
9
10
  }
10
- export interface LongPressSelectionPluginOptions {
11
- useLongPressSelection?: boolean;
12
- }
13
11
  export interface SelectionPluginOptions extends LongPressSelectionPluginOptions {
14
12
  }
@@ -1,7 +1,7 @@
1
1
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { INPUT_METHOD, USER_CONTEXT } from '../analytics';
4
- import type { LongPressSelectionPluginOptions } from '../selection/types';
3
+ import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
4
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
5
5
  export type TaskDecisionListType = 'taskList' | 'decisionList';
6
6
  export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
7
7
  export type ContextData = {
@@ -6,7 +6,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { ReactHookFactory } from '@atlaskit/editor-common/types';
7
7
  import type EditorActions from '../actions';
8
8
  import type { EventDispatcher } from '../event-dispatcher';
9
- import type { CollabEditOptions } from '../plugins/collab-edit/types';
9
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
10
10
  import type { PrimaryToolbarComponents, ReactComponents } from '../types/editor-props';
11
11
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
12
12
  import type { UIComponentFactory } from '../types/ui-components';
@@ -15,7 +15,7 @@ import type EditorActions from '../actions';
15
15
  import type { AnnotationProviders } from '../plugins/annotation/types';
16
16
  import type { BlockTypePluginOptions } from '../plugins/block-type/types';
17
17
  import type { CodeBlockOptions } from '../plugins/code-block/types';
18
- import type { CollabEditOptions } from '../plugins/collab-edit/types';
18
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
19
19
  import type { DatePluginConfig } from '../plugins/date/types';
20
20
  import type { FindReplaceOptions } from '../plugins/find-replace/types';
21
21
  import type { LayoutPluginOptions } from '../plugins/layout/types';
@@ -6,7 +6,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { WrappedComponentProps } from 'react-intl-next';
8
8
  import type { EditorAppearance, ToolbarUIComponentFactory, PrimaryToolbarComponents } from '../../../types';
9
- import type { CollabEditOptions } from '../../../plugins/collab-edit';
9
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
10
10
  import type { DispatchAnalyticsEvent } from '../../../plugins/analytics';
11
11
  import type { EventDispatcher } from '../../../event-dispatcher';
12
12
  import type { EditorActions } from '../../..';
@@ -1,5 +1,5 @@
1
1
  import { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import { CollabEditOptions } from '../collab-edit';
2
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
3
3
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
4
  type Config = {
5
5
  collabEdit?: CollabEditOptions;
@@ -1,7 +1,7 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import type { EventDispatcher } from '../../../event-dispatcher';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { CollabEditOptions } from '../../collab-edit';
4
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
5
5
  import type { DispatchAnalyticsEvent } from '../../analytics';
6
6
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  declare const AvatarGroupPluginWrapper: (props: {
@@ -1,5 +1,5 @@
1
1
  import type { EditorAppearance } from '../../types';
2
- import { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  export interface CodeBlockOptions extends LongPressSelectionPluginOptions {
4
4
  allowCopyToClipboard?: boolean;
5
5
  allowCompositionInputOverride?: boolean;
@@ -1,10 +1,9 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import { pluginKey } from './plugin';
3
- import { CollabEditOptions, PrivateCollabEditOptions } from './types';
3
+ import { PrivateCollabEditOptions } from './types';
4
4
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
6
6
  export { pluginKey };
7
- export type { CollabEditOptions };
8
7
  declare const collabEditPlugin: NextEditorPlugin<'collabEdit', {
9
8
  pluginConfiguration: PrivateCollabEditOptions;
10
9
  dependencies: [
@@ -1,29 +1,6 @@
1
- import { ReactElement } from 'react';
2
- import { Providers } from '@atlaskit/editor-common/provider-factory';
3
1
  import type { CollabEditProvider, SyncUpErrorFunction } from '@atlaskit/collab-provider';
4
- export type InviteToEditComponentProps = {
5
- children: ReactElement<InviteToEditButtonProps>;
6
- };
7
- export type InviteToEditButtonProps = {
8
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
9
- selected: boolean;
10
- };
11
- export interface CollabInviteToEditProps {
12
- inviteToEditHandler?: (event: React.MouseEvent<HTMLElement>) => void;
13
- isInviteToEditButtonSelected?: boolean;
14
- inviteToEditComponent?: React.ComponentType<InviteToEditComponentProps>;
15
- }
16
- export interface CollabAnalyticsProps {
17
- /**
18
- * @description Control wether Synchrony entity error events are tracked
19
- */
20
- EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
21
- }
22
- export type CollabEditOptions = {
23
- provider?: Providers['collabEditProvider'];
24
- userId?: string;
25
- useNativePlugin?: boolean;
26
- } & CollabInviteToEditProps & CollabAnalyticsProps;
2
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
3
+ export type { InviteToEditComponentProps, InviteToEditButtonProps, CollabInviteToEditProps, CollabAnalyticsProps, } from '@atlaskit/editor-common/collab';
27
4
  export type PrivateCollabEditOptions = CollabEditOptions & {
28
5
  sanitizePrivateContent?: boolean;
29
6
  onSyncUpError?: SyncUpErrorFunction;
@@ -4,7 +4,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView, DecorationSet } from '@atlaskit/editor-prosemirror/view';
5
5
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
6
6
  import type { CollabParticipant } from '@atlaskit/collab-provider';
7
- import type { CollabEditOptions } from './types';
7
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
8
8
  export interface Color {
9
9
  solid: string;
10
10
  selection: string;
@@ -1,5 +1,5 @@
1
1
  import type { NextEditorPlugin, EditorProps } from '../../types';
2
- import type { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
5
5
  interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
@@ -1,7 +1,7 @@
1
- import { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
1
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
2
2
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
3
- import { NextEditorPlugin, EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
4
- import { LongPressSelectionPluginOptions } from '../selection/types';
3
+ import type { NextEditorPlugin, EditorAppearance, OptionalPlugin } from '@atlaskit/editor-common/types';
4
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
5
5
  import type { widthPlugin } from '@atlaskit/editor-plugin-width';
6
6
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
7
7
  import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
@@ -1,5 +1,5 @@
1
1
  import type { Slice } from '@atlaskit/editor-prosemirror/model';
2
- import type { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  export interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
4
4
  allowBreakout?: boolean;
5
5
  UNSAFE_addSidebarLayouts?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { LongPressSelectionPluginOptions } from '../selection/types';
2
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
3
  export declare const pluginKey: PluginKey<any>;
4
4
  export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
5
5
  }
@@ -1,14 +1,12 @@
1
1
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
2
  import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
3
3
  export type { SelectionPluginState } from '@atlaskit/editor-common/selection';
4
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
4
5
  export declare const selectionPluginKey: PluginKey<any>;
5
6
  export { RelativeSelectionPos };
6
7
  export declare enum SelectionDirection {
7
8
  Before = -1,
8
9
  After = 1
9
10
  }
10
- export interface LongPressSelectionPluginOptions {
11
- useLongPressSelection?: boolean;
12
- }
13
11
  export interface SelectionPluginOptions extends LongPressSelectionPluginOptions {
14
12
  }
@@ -1,7 +1,7 @@
1
1
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
3
- import type { INPUT_METHOD, USER_CONTEXT } from '../analytics';
4
- import type { LongPressSelectionPluginOptions } from '../selection/types';
3
+ import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
4
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
5
5
  export type TaskDecisionListType = 'taskList' | 'decisionList';
6
6
  export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
7
7
  export type ContextData = {
@@ -6,7 +6,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { ReactHookFactory } from '@atlaskit/editor-common/types';
7
7
  import type EditorActions from '../actions';
8
8
  import type { EventDispatcher } from '../event-dispatcher';
9
- import type { CollabEditOptions } from '../plugins/collab-edit/types';
9
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
10
10
  import type { PrimaryToolbarComponents, ReactComponents } from '../types/editor-props';
11
11
  import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
12
12
  import type { UIComponentFactory } from '../types/ui-components';
@@ -15,7 +15,7 @@ import type EditorActions from '../actions';
15
15
  import type { AnnotationProviders } from '../plugins/annotation/types';
16
16
  import type { BlockTypePluginOptions } from '../plugins/block-type/types';
17
17
  import type { CodeBlockOptions } from '../plugins/code-block/types';
18
- import type { CollabEditOptions } from '../plugins/collab-edit/types';
18
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
19
19
  import type { DatePluginConfig } from '../plugins/date/types';
20
20
  import type { FindReplaceOptions } from '../plugins/find-replace/types';
21
21
  import type { LayoutPluginOptions } from '../plugins/layout/types';
@@ -6,7 +6,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
6
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
7
  import type { WrappedComponentProps } from 'react-intl-next';
8
8
  import type { EditorAppearance, ToolbarUIComponentFactory, PrimaryToolbarComponents } from '../../../types';
9
- import type { CollabEditOptions } from '../../../plugins/collab-edit';
9
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
10
10
  import type { DispatchAnalyticsEvent } from '../../../plugins/analytics';
11
11
  import type { EventDispatcher } from '../../../event-dispatcher';
12
12
  import type { EditorActions } from '../../..';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.14.3",
3
+ "version": "187.14.4",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/code": "^14.6.0",
56
56
  "@atlaskit/date": "^0.10.0",
57
57
  "@atlaskit/datetime-picker": "^12.7.0",
58
- "@atlaskit/editor-common": "^74.36.0",
58
+ "@atlaskit/editor-common": "^74.37.0",
59
59
  "@atlaskit/editor-json-transformer": "^8.10.0",
60
60
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
61
61
  "@atlaskit/editor-palette": "1.5.1",
package/report.api.md CHANGED
@@ -32,6 +32,7 @@ import { AnnotationTypes } from '@atlaskit/adf-schema';
32
32
  import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
33
33
  import { CardOptions } from '@atlaskit/editor-common/card';
34
34
  import { CardProvider } from '@atlaskit/editor-common/provider-factory';
35
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
35
36
  import { Color } from '@atlaskit/status/element';
36
37
  import { Command as Command_2 } from '@atlaskit/editor-common/types';
37
38
  import { ComponentType } from 'react';
@@ -102,6 +103,7 @@ import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
102
103
  import { jsx } from '@emotion/react';
103
104
  import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
104
105
  import type { LinkingOptions } from '@atlaskit/editor-common/types';
106
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
105
107
  import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
106
108
  import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
107
109
  import { MarkConfig } from '@atlaskit/editor-common/types';
@@ -136,14 +138,14 @@ import { PresenceProvider } from '@atlaskit/mention/resource';
136
138
  import { PresenceResource } from '@atlaskit/mention/resource';
137
139
  import PropTypes from 'prop-types';
138
140
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
139
- import { Providers } from '@atlaskit/editor-common/provider-factory';
141
+ import type { Providers } from '@atlaskit/editor-common/provider-factory';
140
142
  import { PureComponent } from 'react';
141
143
  import { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory';
142
144
  import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
143
145
  import { QuickInsertItemId } from '@atlaskit/editor-common/provider-factory';
144
146
  import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
145
147
  import { default as React_2 } from 'react';
146
- import { ReactElement } from 'react';
148
+ import type { ReactElement } from 'react';
147
149
  import type { ReactHookFactory } from '@atlaskit/editor-common/types';
148
150
  import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
149
151
  import type { ResolvedEditorState } from '@atlaskit/collab-provider';
@@ -357,29 +359,6 @@ interface CodeBlockOptions extends LongPressSelectionPluginOptions {
357
359
  appearance?: EditorAppearance | undefined;
358
360
  }
359
361
 
360
- // @public (undocumented)
361
- interface CollabAnalyticsProps {
362
- EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
363
- }
364
-
365
- // @public (undocumented)
366
- type CollabEditOptions = {
367
- provider?: Providers['collabEditProvider'];
368
- userId?: string;
369
- useNativePlugin?: boolean;
370
- } & CollabInviteToEditProps &
371
- CollabAnalyticsProps;
372
-
373
- // @public (undocumented)
374
- interface CollabInviteToEditProps {
375
- // (undocumented)
376
- inviteToEditComponent?: React.ComponentType<InviteToEditComponentProps>;
377
- // (undocumented)
378
- inviteToEditHandler?: (event: React.MouseEvent<HTMLElement>) => void;
379
- // (undocumented)
380
- isInviteToEditButtonSelected?: boolean;
381
- }
382
-
383
362
  // @public (undocumented)
384
363
  export class CollapsedEditor extends React_2.Component<Props, State> {
385
364
  // (undocumented)
@@ -1248,17 +1227,6 @@ export const insertTaskDecisionCommand: (
1248
1227
  itemLocalId?: string,
1249
1228
  ) => Command;
1250
1229
 
1251
- // @public (undocumented)
1252
- type InviteToEditButtonProps = {
1253
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
1254
- selected: boolean;
1255
- };
1256
-
1257
- // @public (undocumented)
1258
- type InviteToEditComponentProps = {
1259
- children: ReactElement<InviteToEditButtonProps>;
1260
- };
1261
-
1262
1230
  // @public (undocumented)
1263
1231
  interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
1264
1232
  // (undocumented)
@@ -1294,12 +1262,6 @@ export interface ListState {
1294
1262
  // @public (undocumented)
1295
1263
  export const listStateKey: PluginKey<ListState>;
1296
1264
 
1297
- // @public (undocumented)
1298
- interface LongPressSelectionPluginOptions {
1299
- // (undocumented)
1300
- useLongPressSelection?: boolean;
1301
- }
1302
-
1303
1265
  export { MacroAttributes };
1304
1266
 
1305
1267
  export { MacroProvider };
@@ -21,6 +21,7 @@ import { AnnotationTypes } from '@atlaskit/adf-schema';
21
21
  import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
22
22
  import { CardOptions } from '@atlaskit/editor-common/card';
23
23
  import { CardProvider } from '@atlaskit/editor-common/provider-factory';
24
+ import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
24
25
  import { Color } from '@atlaskit/status/element';
25
26
  import { Command as Command_2 } from '@atlaskit/editor-common/types';
26
27
  import { ComponentType } from 'react';
@@ -91,6 +92,7 @@ import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
91
92
  import { jsx } from '@emotion/react';
92
93
  import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
93
94
  import type { LinkingOptions } from '@atlaskit/editor-common/types';
95
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
94
96
  import { MacroAttributes } from '@atlaskit/editor-common/provider-factory';
95
97
  import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
96
98
  import { MarkConfig } from '@atlaskit/editor-common/types';
@@ -125,14 +127,14 @@ import { PresenceProvider } from '@atlaskit/mention/resource';
125
127
  import { PresenceResource } from '@atlaskit/mention/resource';
126
128
  import PropTypes from 'prop-types';
127
129
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
128
- import { Providers } from '@atlaskit/editor-common/provider-factory';
130
+ import type { Providers } from '@atlaskit/editor-common/provider-factory';
129
131
  import { PureComponent } from 'react';
130
132
  import { QuickInsertActionInsert } from '@atlaskit/editor-common/provider-factory';
131
133
  import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
132
134
  import { QuickInsertItemId } from '@atlaskit/editor-common/provider-factory';
133
135
  import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
134
136
  import { default as React_2 } from 'react';
135
- import { ReactElement } from 'react';
137
+ import type { ReactElement } from 'react';
136
138
  import type { ReactHookFactory } from '@atlaskit/editor-common/types';
137
139
  import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
138
140
  import type { ResolvedEditorState } from '@atlaskit/collab-provider';
@@ -340,28 +342,6 @@ interface CodeBlockOptions extends LongPressSelectionPluginOptions {
340
342
  appearance?: EditorAppearance | undefined;
341
343
  }
342
344
 
343
- // @public (undocumented)
344
- interface CollabAnalyticsProps {
345
- EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
346
- }
347
-
348
- // @public (undocumented)
349
- type CollabEditOptions = {
350
- provider?: Providers['collabEditProvider'];
351
- userId?: string;
352
- useNativePlugin?: boolean;
353
- } & CollabInviteToEditProps & CollabAnalyticsProps;
354
-
355
- // @public (undocumented)
356
- interface CollabInviteToEditProps {
357
- // (undocumented)
358
- inviteToEditComponent?: React.ComponentType<InviteToEditComponentProps>;
359
- // (undocumented)
360
- inviteToEditHandler?: (event: React.MouseEvent<HTMLElement>) => void;
361
- // (undocumented)
362
- isInviteToEditButtonSelected?: boolean;
363
- }
364
-
365
345
  // @public (undocumented)
366
346
  export class CollapsedEditor extends React_2.Component<Props, State> {
367
347
  // (undocumented)
@@ -1112,17 +1092,6 @@ export const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, i
1112
1092
  // @public (undocumented)
1113
1093
  export const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | InsertBlockInputMethodToolbar, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
1114
1094
 
1115
- // @public (undocumented)
1116
- type InviteToEditButtonProps = {
1117
- onClick: (event: React.MouseEvent<HTMLElement>) => void;
1118
- selected: boolean;
1119
- };
1120
-
1121
- // @public (undocumented)
1122
- type InviteToEditComponentProps = {
1123
- children: ReactElement<InviteToEditButtonProps>;
1124
- };
1125
-
1126
1095
  // @public (undocumented)
1127
1096
  interface LayoutPluginOptions extends LongPressSelectionPluginOptions {
1128
1097
  // (undocumented)
@@ -1158,12 +1127,6 @@ export interface ListState {
1158
1127
  // @public (undocumented)
1159
1128
  export const listStateKey: PluginKey<ListState>;
1160
1129
 
1161
- // @public (undocumented)
1162
- interface LongPressSelectionPluginOptions {
1163
- // (undocumented)
1164
- useLongPressSelection?: boolean;
1165
- }
1166
-
1167
1130
  export { MacroAttributes }
1168
1131
 
1169
1132
  export { MacroProvider }