@atlaskit/editor-core 201.1.5 → 201.1.7
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 +20 -0
- package/dist/cjs/composable-editor/editor-internal.js +60 -2
- package/dist/cjs/create-editor/ReactEditorView/formatFullWidthAppearance.js +13 -0
- package/dist/cjs/create-editor/ReactEditorView/getUAPrefix.js +19 -0
- package/dist/cjs/create-editor/ReactEditorView/handleEditorFocus.js +44 -0
- package/dist/cjs/create-editor/ReactEditorView/useDispatchTransaction.js +90 -0
- package/dist/cjs/create-editor/ReactEditorView/useFireFullWidthEvent.js +28 -0
- package/dist/cjs/create-editor/ReactEditorView/usePluginPerformanceObserver.js +48 -0
- package/dist/cjs/create-editor/ReactEditorView.js +2 -1
- package/dist/cjs/create-editor/ReactEditorViewNext.js +538 -0
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +61 -2
- package/dist/es2019/create-editor/ReactEditorView/formatFullWidthAppearance.js +7 -0
- package/dist/es2019/create-editor/ReactEditorView/getUAPrefix.js +13 -0
- package/dist/es2019/create-editor/ReactEditorView/handleEditorFocus.js +38 -0
- package/dist/es2019/create-editor/ReactEditorView/useDispatchTransaction.js +82 -0
- package/dist/es2019/create-editor/ReactEditorView/useFireFullWidthEvent.js +22 -0
- package/dist/es2019/create-editor/ReactEditorView/usePluginPerformanceObserver.js +32 -0
- package/dist/es2019/create-editor/ReactEditorView.js +2 -1
- package/dist/es2019/create-editor/ReactEditorViewNext.js +515 -0
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +60 -2
- package/dist/esm/create-editor/ReactEditorView/formatFullWidthAppearance.js +7 -0
- package/dist/esm/create-editor/ReactEditorView/getUAPrefix.js +13 -0
- package/dist/esm/create-editor/ReactEditorView/handleEditorFocus.js +38 -0
- package/dist/esm/create-editor/ReactEditorView/useDispatchTransaction.js +84 -0
- package/dist/esm/create-editor/ReactEditorView/useFireFullWidthEvent.js +22 -0
- package/dist/esm/create-editor/ReactEditorView/usePluginPerformanceObserver.js +42 -0
- package/dist/esm/create-editor/ReactEditorView.js +2 -1
- package/dist/esm/create-editor/ReactEditorViewNext.js +528 -0
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +3 -0
- package/dist/types/create-editor/ReactEditorView/getUAPrefix.d.ts +1 -0
- package/dist/types/create-editor/ReactEditorView/handleEditorFocus.d.ts +2 -0
- package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +12 -0
- package/dist/types/create-editor/ReactEditorView/useFireFullWidthEvent.d.ts +3 -0
- package/dist/types/create-editor/ReactEditorView/usePluginPerformanceObserver.d.ts +5 -0
- package/dist/types/create-editor/ReactEditorViewNext.d.ts +48 -0
- package/dist/types/create-editor/create-universal-preset.d.ts +8 -2
- package/dist/types/presets/universal.d.ts +8 -2
- package/dist/types/presets/useUniversalPreset.d.ts +8 -2
- package/dist/types/types/editor-config.d.ts +1 -2
- package/dist/types-ts4.5/create-editor/ReactEditorView/formatFullWidthAppearance.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView/getUAPrefix.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView/handleEditorFocus.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +12 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView/useFireFullWidthEvent.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView/usePluginPerformanceObserver.d.ts +5 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewNext.d.ts +48 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +11 -2
- package/dist/types-ts4.5/presets/universal.d.ts +11 -2
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +11 -2
- package/dist/types-ts4.5/types/editor-config.d.ts +1 -2
- package/package.json +14 -4
|
@@ -1885,7 +1885,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1885
1885
|
sharedState: FeatureFlags;
|
|
1886
1886
|
}, FeatureFlags>>];
|
|
1887
1887
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1888
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
1888
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
1889
|
+
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
1890
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
1891
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
1892
|
+
}, undefined>>];
|
|
1889
1893
|
actions: {
|
|
1890
1894
|
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
1891
1895
|
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
@@ -4485,7 +4489,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4485
4489
|
};
|
|
4486
4490
|
}, {
|
|
4487
4491
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4488
|
-
} | undefined
|
|
4492
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
4493
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
4494
|
+
}, undefined>>];
|
|
4489
4495
|
sharedState: Partial<import("@atlaskit/editor-plugins/breakout").BreakoutPluginState>;
|
|
4490
4496
|
}, import("@atlaskit/editor-plugins/breakout").BreakoutPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"batchAttributeUpdates", {
|
|
4491
4497
|
actions: {
|
|
@@ -1834,7 +1834,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1834
1834
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1835
1835
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1836
1836
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1837
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
1837
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
1838
|
+
sharedState: import("@atlaskit/editor-plugin-width").WidthPluginState | undefined;
|
|
1839
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
1840
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
1841
|
+
}, undefined>>];
|
|
1838
1842
|
actions: {
|
|
1839
1843
|
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
1840
1844
|
(descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>> | undefined, opts?: import("intl-messageformat").Options | undefined): string;
|
|
@@ -4434,7 +4438,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4434
4438
|
};
|
|
4435
4439
|
}, {
|
|
4436
4440
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4437
|
-
} | undefined
|
|
4441
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
4442
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
4443
|
+
}, undefined>>];
|
|
4438
4444
|
sharedState: Partial<import("@atlaskit/editor-plugin-breakout").BreakoutPluginState>;
|
|
4439
4445
|
}, import("@atlaskit/editor-plugin-breakout").BreakoutPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"batchAttributeUpdates", {
|
|
4440
4446
|
actions: {
|
|
@@ -3,7 +3,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
|
|
|
3
3
|
import type { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
4
4
|
import type { MarkConfig, NodeConfig } from './pm-config';
|
|
5
5
|
import type { PMPlugin } from './pm-plugin';
|
|
6
|
-
type EditorViewStateUpdatedCallbackProps = {
|
|
6
|
+
export type EditorViewStateUpdatedCallbackProps = {
|
|
7
7
|
readonly originalTransaction: Readonly<Transaction>;
|
|
8
8
|
readonly transactions: readonly Transaction[];
|
|
9
9
|
readonly oldEditorState: Readonly<EditorState>;
|
|
@@ -22,4 +22,3 @@ export interface EditorConfig {
|
|
|
22
22
|
callback: (props: EditorViewStateUpdatedCallbackProps) => void;
|
|
23
23
|
}>;
|
|
24
24
|
}
|
|
25
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getUAPrefix(): "" | "ua-chrome" | "ua-ie" | "ua-firefox" | "ua-safari";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import type { EditorViewStateUpdatedCallbackProps } from '../../types/editor-config';
|
|
5
|
+
import type { EditorOnChangeHandler } from '../../types/editor-onchange';
|
|
6
|
+
type DispatchTransaction = (view: EditorView | undefined, tr: Transaction) => EditorState | undefined;
|
|
7
|
+
export declare const useDispatchTransaction: ({ onChange, dispatchAnalyticsEvent, onEditorViewUpdated, }: {
|
|
8
|
+
onChange: EditorOnChangeHandler | undefined;
|
|
9
|
+
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
10
|
+
onEditorViewUpdated: (params: EditorViewStateUpdatedCallbackProps) => void;
|
|
11
|
+
}) => DispatchTransaction;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const useFireFullWidthEvent: (appearance: EditorAppearance | undefined, dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { type EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
|
|
4
|
+
import { type EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
export declare const usePluginPerformanceObserver: (editorState: React.MutableRefObject<EditorState>, pluginInjectionAPI: React.MutableRefObject<EditorPluginInjectionAPI>, dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void) => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
4
|
+
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
6
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
|
|
8
|
+
import type { PublicPluginAPI, Transformer } from '@atlaskit/editor-common/types';
|
|
9
|
+
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
+
import { EventDispatcher } from '../event-dispatcher';
|
|
11
|
+
import type { EditorConfig, EditorProps } from '../types';
|
|
12
|
+
import type { EditorNextProps } from '../types/editor-props';
|
|
13
|
+
export interface EditorViewProps extends WrappedComponentProps {
|
|
14
|
+
editorProps: (EditorProps | EditorNextProps) & {
|
|
15
|
+
preset?: EditorNextProps['preset'];
|
|
16
|
+
};
|
|
17
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
18
|
+
providerFactory: ProviderFactory;
|
|
19
|
+
portalProviderAPI: PortalProviderAPI;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
render?: (props: {
|
|
22
|
+
editor: JSX.Element;
|
|
23
|
+
view?: EditorView;
|
|
24
|
+
config: EditorConfig;
|
|
25
|
+
eventDispatcher: EventDispatcher;
|
|
26
|
+
transformer?: Transformer<string>;
|
|
27
|
+
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
28
|
+
editorRef: React.RefObject<HTMLDivElement>;
|
|
29
|
+
editorAPI: PublicPluginAPI<any> | undefined;
|
|
30
|
+
}) => JSX.Element;
|
|
31
|
+
onEditorCreated: (instance: {
|
|
32
|
+
view: EditorView;
|
|
33
|
+
config: EditorConfig;
|
|
34
|
+
eventDispatcher: EventDispatcher;
|
|
35
|
+
transformer?: Transformer<string>;
|
|
36
|
+
}) => void;
|
|
37
|
+
onEditorDestroyed: (instance: {
|
|
38
|
+
view: EditorView;
|
|
39
|
+
config: EditorConfig;
|
|
40
|
+
eventDispatcher: EventDispatcher;
|
|
41
|
+
transformer?: Transformer<string>;
|
|
42
|
+
}) => void;
|
|
43
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
44
|
+
}
|
|
45
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps>> & {
|
|
46
|
+
WrappedComponent: React.ComponentType<EditorViewProps>;
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
|
@@ -2281,7 +2281,13 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2281
2281
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2282
2282
|
];
|
|
2283
2283
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2284
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2284
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2285
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
2286
|
+
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
2287
|
+
}, undefined>>,
|
|
2288
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2289
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2290
|
+
}, undefined>>
|
|
2285
2291
|
];
|
|
2286
2292
|
actions: {
|
|
2287
2293
|
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
@@ -5407,7 +5413,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
5407
5413
|
};
|
|
5408
5414
|
}, {
|
|
5409
5415
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5410
|
-
} | undefined
|
|
5416
|
+
} | undefined>>,
|
|
5417
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
5418
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
5419
|
+
}, undefined>>
|
|
5411
5420
|
];
|
|
5412
5421
|
sharedState: Partial<import("@atlaskit/editor-plugin-breakout").BreakoutPluginState>;
|
|
5413
5422
|
}, import("@atlaskit/editor-plugin-breakout").BreakoutPluginOptions | undefined> | undefined,
|
|
@@ -2332,7 +2332,13 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2332
2332
|
}, FeatureFlags>>
|
|
2333
2333
|
];
|
|
2334
2334
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2335
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2335
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2336
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
2337
|
+
sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
|
|
2338
|
+
}, undefined>>,
|
|
2339
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2340
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2341
|
+
}, undefined>>
|
|
2336
2342
|
];
|
|
2337
2343
|
actions: {
|
|
2338
2344
|
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
@@ -5458,7 +5464,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5458
5464
|
};
|
|
5459
5465
|
}, {
|
|
5460
5466
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5461
|
-
} | undefined
|
|
5467
|
+
} | undefined>>,
|
|
5468
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
5469
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
5470
|
+
}, undefined>>
|
|
5462
5471
|
];
|
|
5463
5472
|
sharedState: Partial<import("@atlaskit/editor-plugins/breakout").BreakoutPluginState>;
|
|
5464
5473
|
}, import("@atlaskit/editor-plugins/breakout").BreakoutPluginOptions | undefined> | undefined,
|
|
@@ -2281,7 +2281,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2281
2281
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2282
2282
|
];
|
|
2283
2283
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2284
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
2284
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2285
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
2286
|
+
sharedState: import("@atlaskit/editor-plugin-width").WidthPluginState | undefined;
|
|
2287
|
+
}, undefined>>,
|
|
2288
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
2289
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
2290
|
+
}, undefined>>
|
|
2285
2291
|
];
|
|
2286
2292
|
actions: {
|
|
2287
2293
|
insertLayoutColumns: (inputMethod: import("@atlaskit/editor-common/types").TOOLBAR_MENU_TYPE, formatMessage?: {
|
|
@@ -5407,7 +5413,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
5407
5413
|
};
|
|
5408
5414
|
}, {
|
|
5409
5415
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5410
|
-
} | undefined
|
|
5416
|
+
} | undefined>>,
|
|
5417
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
5418
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
5419
|
+
}, undefined>>
|
|
5411
5420
|
];
|
|
5412
5421
|
sharedState: Partial<import("@atlaskit/editor-plugin-breakout").BreakoutPluginState>;
|
|
5413
5422
|
}, import("@atlaskit/editor-plugin-breakout").BreakoutPluginOptions | undefined> | undefined,
|
|
@@ -3,7 +3,7 @@ import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/stat
|
|
|
3
3
|
import type { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
4
4
|
import type { MarkConfig, NodeConfig } from './pm-config';
|
|
5
5
|
import type { PMPlugin } from './pm-plugin';
|
|
6
|
-
type EditorViewStateUpdatedCallbackProps = {
|
|
6
|
+
export type EditorViewStateUpdatedCallbackProps = {
|
|
7
7
|
readonly originalTransaction: Readonly<Transaction>;
|
|
8
8
|
readonly transactions: readonly Transaction[];
|
|
9
9
|
readonly oldEditorState: Readonly<EditorState>;
|
|
@@ -22,4 +22,3 @@ export interface EditorConfig {
|
|
|
22
22
|
callback: (props: EditorViewStateUpdatedCallbackProps) => void;
|
|
23
23
|
}>;
|
|
24
24
|
}
|
|
25
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "201.1.
|
|
3
|
+
"version": "201.1.7",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.3.0",
|
|
46
|
-
"@atlaskit/editor-common": "^94.
|
|
46
|
+
"@atlaskit/editor-common": "^94.12.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.20.0",
|
|
48
|
-
"@atlaskit/editor-plugin-quick-insert": "1.6.
|
|
48
|
+
"@atlaskit/editor-plugin-quick-insert": "1.6.1",
|
|
49
49
|
"@atlaskit/editor-plugins": "^5.6.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"type": "boolean",
|
|
165
165
|
"referenceOnly": "true"
|
|
166
166
|
},
|
|
167
|
-
"
|
|
167
|
+
"platform_editor_media_extended_resize_experience": {
|
|
168
168
|
"type": "boolean",
|
|
169
169
|
"referenceOnly": "true"
|
|
170
170
|
},
|
|
@@ -300,6 +300,9 @@
|
|
|
300
300
|
"type": "boolean",
|
|
301
301
|
"referenceOnly": true
|
|
302
302
|
},
|
|
303
|
+
"platform_editor_react_editor_view_react_18": {
|
|
304
|
+
"type": "boolean"
|
|
305
|
+
},
|
|
303
306
|
"platform_editor_advanced_layouts_pre_release_1": {
|
|
304
307
|
"type": "boolean"
|
|
305
308
|
},
|
|
@@ -315,6 +318,9 @@
|
|
|
315
318
|
"type": "boolean",
|
|
316
319
|
"referenceOnly": true
|
|
317
320
|
},
|
|
321
|
+
"platform_editor_disable_rerender_tracking_jira": {
|
|
322
|
+
"type": "boolean"
|
|
323
|
+
},
|
|
318
324
|
"platform_editor_replace_finddomnode_in_common": {
|
|
319
325
|
"type": "boolean",
|
|
320
326
|
"referenceOnly": true
|
|
@@ -322,6 +328,10 @@
|
|
|
322
328
|
"platform_editor_expand_auto_scroll": {
|
|
323
329
|
"type": "boolean",
|
|
324
330
|
"referenceOnly": true
|
|
331
|
+
},
|
|
332
|
+
"platform_editor_advanced_layouts_breakout_resizing": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"referenceOnly": true
|
|
325
335
|
}
|
|
326
336
|
},
|
|
327
337
|
"stricter": {
|