@atlaskit/editor-core 187.20.0 → 187.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/plugins/annotation/commands/index.js +13 -1
- package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +9 -2
- package/dist/cjs/plugins/annotation/pm-plugins/reducer.js +4 -0
- package/dist/cjs/plugins/annotation/pm-plugins/types.js +1 -0
- package/dist/cjs/plugins/annotation/ui/InlineCommentView.js +2 -0
- package/dist/cjs/plugins/annotation/utils.js +1 -1
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +28 -10
- package/dist/cjs/plugins/media/styles.js +1 -1
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +25 -5
- package/dist/cjs/plugins/media/utils/media-single.js +21 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/annotation/commands/index.js +9 -0
- package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +10 -3
- package/dist/es2019/plugins/annotation/pm-plugins/reducer.js +5 -0
- package/dist/es2019/plugins/annotation/pm-plugins/types.js +1 -0
- package/dist/es2019/plugins/annotation/ui/InlineCommentView.js +3 -1
- package/dist/es2019/plugins/annotation/utils.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +21 -3
- package/dist/es2019/plugins/media/styles.js +8 -2
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +22 -3
- package/dist/es2019/plugins/media/utils/media-single.js +21 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/annotation/commands/index.js +11 -0
- package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +10 -3
- package/dist/esm/plugins/annotation/pm-plugins/reducer.js +4 -0
- package/dist/esm/plugins/annotation/pm-plugins/types.js +1 -0
- package/dist/esm/plugins/annotation/ui/InlineCommentView.js +3 -1
- package/dist/esm/plugins/annotation/utils.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +21 -3
- package/dist/esm/plugins/media/styles.js +1 -1
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +25 -5
- package/dist/esm/plugins/media/utils/media-single.js +20 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +2 -3
- package/dist/types/plugins/annotation/commands/index.d.ts +1 -0
- package/dist/types/plugins/annotation/pm-plugins/types.d.ts +7 -1
- package/dist/types/plugins/annotation/types.d.ts +4 -0
- package/dist/types/plugins/annotation/update-provider.d.ts +1 -1
- package/dist/types/plugins/collab-edit/actions.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/handlers.d.ts +2 -2
- package/dist/types/plugins/collab-edit/events/initialize.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/send-transaction.d.ts +1 -1
- package/dist/types/plugins/collab-edit/index.d.ts +1 -1
- package/dist/types/plugins/collab-edit/native-collab-provider-plugin.d.ts +2 -2
- package/dist/types/plugins/collab-edit/participants.d.ts +1 -1
- package/dist/types/plugins/collab-edit/plugin.d.ts +5 -6
- package/dist/types/plugins/collab-edit/types.d.ts +1 -2
- package/dist/types/plugins/collab-edit/ui/to-avatar.d.ts +2 -2
- package/dist/types/plugins/collab-edit/utils.d.ts +1 -2
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +6 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-single.d.ts +2 -1
- package/dist/types-ts4.5/actions/index.d.ts +2 -3
- package/dist/types-ts4.5/plugins/annotation/commands/index.d.ts +1 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +7 -1
- package/dist/types-ts4.5/plugins/annotation/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/annotation/update-provider.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/actions.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/events/handlers.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/events/initialize.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/events/send-transaction.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/native-collab-provider-plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/participants.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/plugin.d.ts +5 -6
- package/dist/types-ts4.5/plugins/collab-edit/types.d.ts +1 -2
- package/dist/types-ts4.5/plugins/collab-edit/ui/to-avatar.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +1 -2
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +6 -1
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +2 -1
- package/package.json +3 -3
- package/report.api.md +8 -2
- package/tmp/api-report-tmp.d.ts +3 -2
|
@@ -45,9 +45,14 @@ export default class MediaSingleNode extends Component<MediaSingleNodeProps, Med
|
|
|
45
45
|
* Get parent width for a nested media single node
|
|
46
46
|
* @param view Editor view
|
|
47
47
|
* @param pos node position
|
|
48
|
-
* @param includeMoreParentNodeTypes should consider table and list as parent nodes(only true for new experience)
|
|
49
48
|
*/
|
|
50
49
|
private getLineLength;
|
|
50
|
+
/**
|
|
51
|
+
* Get parent width for a nested media single node for new experience
|
|
52
|
+
* @param view Editor view
|
|
53
|
+
* @param pos node position
|
|
54
|
+
*/
|
|
55
|
+
private getLineLengthNext;
|
|
51
56
|
}
|
|
52
57
|
declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps> {
|
|
53
58
|
lastOffsetLeft: number;
|
|
@@ -38,7 +38,7 @@ declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSin
|
|
|
38
38
|
width: number | null;
|
|
39
39
|
layout: MediaSingleLayout;
|
|
40
40
|
};
|
|
41
|
-
calcUnwrappedLayout: (width: number, containerWidth: number, contentWidth: number) => 'center' | 'wide' | 'full-width';
|
|
41
|
+
calcUnwrappedLayout: (width: number, containerWidth: number, contentWidth: number, fullWidthMode?: boolean) => 'center' | 'wide' | 'full-width';
|
|
42
42
|
get $pos(): import("prosemirror-model").ResolvedPos | null;
|
|
43
43
|
/**
|
|
44
44
|
* The maxmimum number of grid columns this node can resize to.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Node as PMNode, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -19,3 +19,4 @@ export declare const insertMediaSingleNode: (view: EditorView, mediaState: Media
|
|
|
19
19
|
export declare const createMediaSingleNode: (schema: Schema, collection: string, maxWidth?: number, minWidth?: number, alignLeftOnInsert?: boolean) => (mediaState: MediaSingleState) => PMNode;
|
|
20
20
|
export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
|
|
21
21
|
export declare function isCaptionNode(editorView: EditorView): boolean;
|
|
22
|
+
export declare const getParentWidthForNestedMediaSingleNode: (resolvedPos: ResolvedPos, view: EditorView) => number | null;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Node } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
4
|
-
import type { ResolvedEditorState } from '@atlaskit/collab
|
|
5
|
-
import type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { FeatureFlags, Transformer } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
5
|
+
import type { ContextUpdateHandler, EditorActionsOptions, ReplaceRawValue, FeatureFlags, Transformer } from '@atlaskit/editor-common/types';
|
|
7
6
|
import type { EventDispatcher } from '../event-dispatcher';
|
|
8
7
|
export default class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
9
8
|
private editorView?;
|
|
@@ -10,5 +10,6 @@ export declare const removeInlineCommentNearSelection: (id: string) => Command;
|
|
|
10
10
|
export declare const setInlineCommentDraftState: (drafting: boolean, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT) => Command;
|
|
11
11
|
export declare const addInlineComment: (id: string) => Command;
|
|
12
12
|
export declare const updateMouseState: (mouseData: InlineCommentMouseData) => Command;
|
|
13
|
+
export declare const setSelectedAnnotation: (id: string) => Command;
|
|
13
14
|
export declare const createAnnotation: (id: string, annotationType?: AnnotationTypes) => Command;
|
|
14
15
|
export declare const setInlineCommentsVisibility: (isVisible: boolean) => Command;
|
|
@@ -10,7 +10,8 @@ export declare enum ACTIONS {
|
|
|
10
10
|
INLINE_COMMENT_CLEAR_DIRTY_MARK = 3,
|
|
11
11
|
ADD_INLINE_COMMENT = 4,
|
|
12
12
|
INLINE_COMMENT_SET_VISIBLE = 5,
|
|
13
|
-
CLOSE_COMPONENT = 6
|
|
13
|
+
CLOSE_COMPONENT = 6,
|
|
14
|
+
SET_SELECTED_ANNOTATION = 7
|
|
14
15
|
}
|
|
15
16
|
export interface InlineCommentPluginOptions {
|
|
16
17
|
dispatch: Dispatch;
|
|
@@ -55,6 +56,11 @@ export type InlineCommentAction = {
|
|
|
55
56
|
data: {
|
|
56
57
|
isVisible: boolean;
|
|
57
58
|
};
|
|
59
|
+
} | {
|
|
60
|
+
type: ACTIONS.SET_SELECTED_ANNOTATION;
|
|
61
|
+
data: {
|
|
62
|
+
selectedAnnotations: AnnotationInfo[];
|
|
63
|
+
};
|
|
58
64
|
};
|
|
59
65
|
export type InlineCommentPluginState = {
|
|
60
66
|
annotations: InlineCommentMap;
|
|
@@ -39,6 +39,10 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
|
|
|
39
39
|
* Removes the annotation from the document
|
|
40
40
|
*/
|
|
41
41
|
onDelete?: (id: string) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Ordered list of annotation ids as shown in the document
|
|
44
|
+
*/
|
|
45
|
+
annotationsList?: string[];
|
|
42
46
|
};
|
|
43
47
|
export interface AnnotationState<Type, State> {
|
|
44
48
|
annotationType: Type;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
|
|
3
|
+
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve' | 'setselectedannotation';
|
|
4
4
|
export type VisibilityEvent = 'setvisibility';
|
|
5
5
|
export declare class AnnotationUpdateEmitter extends EventEmitter {
|
|
6
6
|
on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { CollabEventInitData, CollabEventRemoteData, CollabEventConnectionData, CollabEventPresenceData, CollabTelepointerPayload, CollabSendableSelection } from '@atlaskit/collab
|
|
3
|
+
import type { CollabEventInitData, CollabEventRemoteData, CollabEventConnectionData, CollabEventPresenceData, CollabTelepointerPayload, CollabSendableSelection } from '@atlaskit/editor-common/collab';
|
|
4
4
|
import type { PrivateCollabEditOptions } from './types';
|
|
5
5
|
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions) => void;
|
|
6
6
|
export declare const handleConnection: (connectionData: CollabEventConnectionData, view: EditorView) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
-
import type { CollabEventInitData, CollabEventConnectionData, CollabEventPresenceData, CollabTelepointerPayload, CollabEventRemoteData, CollabEventLocalStepData, CollabEditProvider } from '@atlaskit/collab
|
|
2
|
+
import type { CollabEventInitData, CollabEventConnectionData, CollabEventPresenceData, CollabTelepointerPayload, CollabEventRemoteData, CollabEventLocalStepData, CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { PrivateCollabEditOptions } from '../types';
|
|
5
5
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
@@ -21,4 +21,4 @@ export interface CollabHandlers {
|
|
|
21
21
|
}) => void;
|
|
22
22
|
}
|
|
23
23
|
export type Cleanup = () => void;
|
|
24
|
-
export declare const subscribe: (currentDeps_0: EditorView, currentDeps_1: CollabEditProvider<import("@atlaskit/collab
|
|
24
|
+
export declare const subscribe: (currentDeps_0: EditorView, currentDeps_1: CollabEditProvider<import("@atlaskit/editor-common/collab").CollabEvents>, currentDeps_2: PrivateCollabEditOptions, currentDeps_3: FeatureFlags, currentDeps_4?: ProviderFactory | undefined, currentDeps_5?: EditorAnalyticsAPI | undefined) => Cleanup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { CollabEditProvider } from '@atlaskit/collab
|
|
3
|
+
import type { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
4
4
|
import type { PrivateCollabEditOptions } from '../types';
|
|
5
5
|
import type { Cleanup } from './handlers';
|
|
6
6
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CollabEditProvider } from '@atlaskit/collab
|
|
1
|
+
import type { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
2
2
|
import type { Transaction, EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
type Props = {
|
|
4
4
|
originalTransaction: Readonly<Transaction>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { pluginKey } from './plugin';
|
|
3
|
-
import { PrivateCollabEditOptions } from './types';
|
|
3
|
+
import type { 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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { CollabEditProvider } from '@atlaskit/collab
|
|
3
|
+
import type { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
4
4
|
export declare const nativeCollabProviderPlugin: ({ providerPromise, }: {
|
|
5
5
|
providerPromise: Promise<CollabEditProvider>;
|
|
6
|
-
}) => SafePlugin<CollabEditProvider<import("@atlaskit/collab
|
|
6
|
+
}) => SafePlugin<CollabEditProvider<import("@atlaskit/editor-common/collab").CollabEvents> | null>;
|
|
7
7
|
export declare const getCollabProvider: (editorState: EditorState) => CollabEditProvider | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CollabParticipant } from '@atlaskit/collab
|
|
1
|
+
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
2
2
|
export interface ReadOnlyParticipants {
|
|
3
3
|
get(sessionId: string): CollabParticipant | undefined;
|
|
4
4
|
toArray(): ReadonlyArray<CollabParticipant>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { Dispatch } from '../../event-dispatcher';
|
|
4
|
-
import { PrivateCollabEditOptions, ProviderCallback } from './types';
|
|
2
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import type { Dispatch } from '../../event-dispatcher';
|
|
4
|
+
import type { PrivateCollabEditOptions, ProviderCallback } from './types';
|
|
5
5
|
import { PluginState } from './plugin-state';
|
|
6
6
|
import { pluginKey } from './plugin-key';
|
|
7
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { CollabEditProvider } from '@atlaskit/
|
|
9
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
+
import type { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
10
9
|
import type collabEditPlugin from './index';
|
|
11
10
|
export { PluginState, pluginKey };
|
|
12
11
|
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, providerResolver: (value: CollabEditProvider) => void, collabProviderCallback: ProviderCallback, options: PrivateCollabEditOptions, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<typeof collabEditPlugin> | undefined) => SafePlugin<PluginState>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { CollabEditProvider, SyncUpErrorFunction } from '@atlaskit/collab
|
|
2
|
-
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
1
|
+
import type { CollabEditProvider, SyncUpErrorFunction, CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
3
2
|
export type { InviteToEditComponentProps, InviteToEditButtonProps, CollabInviteToEditProps, CollabAnalyticsProps, } from '@atlaskit/editor-common/collab';
|
|
4
3
|
export type PrivateCollabEditOptions = CollabEditOptions & {
|
|
5
4
|
sanitizePrivateContent?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvatarProps } from '@atlaskit/avatar-group';
|
|
2
|
-
import type { CollabParticipant } from '@atlaskit/collab
|
|
1
|
+
import type { AvatarProps } from '@atlaskit/avatar-group';
|
|
2
|
+
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
3
3
|
declare const _default: import("memoize-one").MemoizedFn<(participant: CollabParticipant) => AvatarProps>;
|
|
4
4
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { EditorView, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import { Decoration } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { CollabParticipant } from '@atlaskit/collab
|
|
5
|
-
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
4
|
+
import type { CollabParticipant, CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
6
5
|
export interface Color {
|
|
7
6
|
solid: string;
|
|
8
7
|
selection: string;
|
|
@@ -45,9 +45,14 @@ export default class MediaSingleNode extends Component<MediaSingleNodeProps, Med
|
|
|
45
45
|
* Get parent width for a nested media single node
|
|
46
46
|
* @param view Editor view
|
|
47
47
|
* @param pos node position
|
|
48
|
-
* @param includeMoreParentNodeTypes should consider table and list as parent nodes(only true for new experience)
|
|
49
48
|
*/
|
|
50
49
|
private getLineLength;
|
|
50
|
+
/**
|
|
51
|
+
* Get parent width for a nested media single node for new experience
|
|
52
|
+
* @param view Editor view
|
|
53
|
+
* @param pos node position
|
|
54
|
+
*/
|
|
55
|
+
private getLineLengthNext;
|
|
51
56
|
}
|
|
52
57
|
declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps> {
|
|
53
58
|
lastOffsetLeft: number;
|
package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSin
|
|
|
38
38
|
width: number | null;
|
|
39
39
|
layout: MediaSingleLayout;
|
|
40
40
|
};
|
|
41
|
-
calcUnwrappedLayout: (width: number, containerWidth: number, contentWidth: number) => 'center' | 'wide' | 'full-width';
|
|
41
|
+
calcUnwrappedLayout: (width: number, containerWidth: number, contentWidth: number, fullWidthMode?: boolean) => 'center' | 'wide' | 'full-width';
|
|
42
42
|
get $pos(): import("prosemirror-model").ResolvedPos | null;
|
|
43
43
|
/**
|
|
44
44
|
* The maxmimum number of grid columns this node can resize to.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Node as PMNode, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -19,3 +19,4 @@ export declare const insertMediaSingleNode: (view: EditorView, mediaState: Media
|
|
|
19
19
|
export declare const createMediaSingleNode: (schema: Schema, collection: string, maxWidth?: number, minWidth?: number, alignLeftOnInsert?: boolean) => (mediaState: MediaSingleState) => PMNode;
|
|
20
20
|
export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
|
|
21
21
|
export declare function isCaptionNode(editorView: EditorView): boolean;
|
|
22
|
+
export declare const getParentWidthForNestedMediaSingleNode: (resolvedPos: ResolvedPos, view: EditorView) => number | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.
|
|
3
|
+
"version": "187.21.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -143,11 +143,11 @@
|
|
|
143
143
|
"@af/editor-libra": "*",
|
|
144
144
|
"@af/integration-testing": "*",
|
|
145
145
|
"@atlaskit/code": "^14.6.0",
|
|
146
|
-
"@atlaskit/collab-provider": "9.10.
|
|
146
|
+
"@atlaskit/collab-provider": "9.10.1",
|
|
147
147
|
"@atlaskit/dropdown-menu": "^11.11.0",
|
|
148
148
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
149
149
|
"@atlaskit/editor-plugin-table": "^2.8.0",
|
|
150
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
150
|
+
"@atlaskit/editor-test-helpers": "^18.11.0",
|
|
151
151
|
"@atlaskit/flag": "^15.2.0",
|
|
152
152
|
"@atlaskit/icon-object": "^6.3.0",
|
|
153
153
|
"@atlaskit/inline-dialog": "^13.6.0",
|
package/report.api.md
CHANGED
|
@@ -139,7 +139,7 @@ import { default as React_2 } from 'react';
|
|
|
139
139
|
import type { ReactElement } from 'react';
|
|
140
140
|
import type { ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
141
141
|
import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
142
|
-
import type { ResolvedEditorState } from '@atlaskit/collab
|
|
142
|
+
import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
143
143
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
144
144
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
145
145
|
import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -1113,6 +1113,7 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
|
|
|
1113
1113
|
annotations: Array<AnnotationInfo>;
|
|
1114
1114
|
onResolve: (id: string) => void;
|
|
1115
1115
|
onDelete?: (id: string) => void;
|
|
1116
|
+
annotationsList?: string[];
|
|
1116
1117
|
};
|
|
1117
1118
|
|
|
1118
1119
|
export { INPUT_METHOD };
|
|
@@ -2181,7 +2182,12 @@ interface TypeAheadStatsSerializable extends TypeAheadStats {
|
|
|
2181
2182
|
}
|
|
2182
2183
|
|
|
2183
2184
|
// @public (undocumented)
|
|
2184
|
-
export type UpdateEvent =
|
|
2185
|
+
export type UpdateEvent =
|
|
2186
|
+
| 'create'
|
|
2187
|
+
| 'delete'
|
|
2188
|
+
| 'resolve'
|
|
2189
|
+
| 'setselectedannotation'
|
|
2190
|
+
| 'unresolve';
|
|
2185
2191
|
|
|
2186
2192
|
// @public (undocumented)
|
|
2187
2193
|
export const updateStatus: (status?: StatusType) => Command;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ import { default as React_2 } from 'react';
|
|
|
128
128
|
import type { ReactElement } from 'react';
|
|
129
129
|
import type { ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
130
130
|
import type { ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
131
|
-
import type { ResolvedEditorState } from '@atlaskit/collab
|
|
131
|
+
import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
132
132
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
133
133
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
134
134
|
import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
|
|
@@ -1016,6 +1016,7 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
|
|
|
1016
1016
|
annotations: Array<AnnotationInfo>;
|
|
1017
1017
|
onResolve: (id: string) => void;
|
|
1018
1018
|
onDelete?: (id: string) => void;
|
|
1019
|
+
annotationsList?: string[];
|
|
1019
1020
|
};
|
|
1020
1021
|
|
|
1021
1022
|
export { INPUT_METHOD }
|
|
@@ -1941,7 +1942,7 @@ interface TypeAheadStatsSerializable extends TypeAheadStats {
|
|
|
1941
1942
|
}
|
|
1942
1943
|
|
|
1943
1944
|
// @public (undocumented)
|
|
1944
|
-
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
|
|
1945
|
+
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'setselectedannotation' | 'unresolve';
|
|
1945
1946
|
|
|
1946
1947
|
// @public (undocumented)
|
|
1947
1948
|
export const updateStatus: (status?: StatusType) => Command;
|