@atlaskit/editor-core 187.10.0 → 187.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -0
- package/CHANGELOG.md +7 -0
- package/dist/cjs/labs/next/presets/default.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/index.js +154 -132
- package/dist/cjs/plugins/floating-toolbar/pm-plugins/force-focus/index.js +11 -10
- package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +14 -7
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +6 -1
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -1
- package/dist/cjs/plugins/media/toolbar/alt-text.js +6 -6
- package/dist/cjs/plugins/media/toolbar/linking.js +4 -1
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +2 -2
- package/dist/cjs/ui/ColorPickerButton/index.js +3 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/labs/next/presets/default.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/index.js +152 -128
- package/dist/es2019/plugins/floating-toolbar/pm-plugins/force-focus/index.js +12 -8
- package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +5 -4
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +12 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -1
- package/dist/es2019/plugins/media/toolbar/alt-text.js +10 -6
- package/dist/es2019/plugins/media/toolbar/linking.js +8 -1
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +5 -3
- package/dist/es2019/ui/ColorPickerButton/index.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/labs/next/presets/default.js +1 -1
- package/dist/esm/plugins/floating-toolbar/index.js +153 -131
- package/dist/esm/plugins/floating-toolbar/pm-plugins/force-focus/index.js +9 -7
- package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +14 -7
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +6 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -1
- package/dist/esm/plugins/media/toolbar/alt-text.js +6 -6
- package/dist/esm/plugins/media/toolbar/linking.js +4 -1
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +2 -2
- package/dist/esm/ui/ColorPickerButton/index.js +3 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/labs/next/presets/default.d.ts +40 -8
- package/dist/types/plugins/date/index.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/index.d.ts +1 -7
- package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +2 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +2 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -3
- package/dist/types/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/media/index.d.ts +2 -2
- package/dist/types/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.d.ts +1 -0
- package/dist/types/plugins/media/ui/MediaLinkingToolbar.d.ts +3 -3
- package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/dist/types/ui/ColorPickerButton/index.d.ts +2 -2
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +44 -8
- package/dist/types-ts4.5/plugins/date/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +1 -7
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +2 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.d.ts +2 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +0 -3
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/media/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.d.ts +1 -0
- package/dist/types-ts4.5/plugins/media/ui/MediaLinkingToolbar.d.ts +3 -3
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +1 -1
- package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +2 -2
- package/package.json +3 -2
- package/report.api.md +3 -21
- package/tmp/api-report-tmp.d.ts +3 -18
- package/dist/cjs/plugins/editor-disabled/index.js +0 -75
- package/dist/es2019/plugins/editor-disabled/index.js +0 -62
- package/dist/esm/plugins/editor-disabled/index.js +0 -66
- package/dist/types/plugins/editor-disabled/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/editor-disabled/index.d.ts +0 -13
|
@@ -155,10 +155,18 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
155
155
|
actions: {
|
|
156
156
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
157
157
|
};
|
|
158
|
-
}
|
|
158
|
+
}>>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
159
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
160
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
161
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
162
|
+
}>];
|
|
159
163
|
actions: {
|
|
160
164
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
161
165
|
};
|
|
166
|
+
sharedState: {
|
|
167
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
168
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
169
|
+
} | undefined;
|
|
162
170
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
|
|
163
171
|
dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
164
172
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -186,18 +194,26 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
186
194
|
actions: {
|
|
187
195
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
188
196
|
};
|
|
189
|
-
}
|
|
197
|
+
}>>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
198
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
199
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
200
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
201
|
+
}>];
|
|
190
202
|
actions: {
|
|
191
203
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
192
204
|
};
|
|
205
|
+
sharedState: {
|
|
206
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
207
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
208
|
+
} | undefined;
|
|
193
209
|
}>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"fakeTextCursor", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"fakeTextCursor", {}>, (config?: ((editorView: import("prosemirror-view").EditorView) => void) | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"submitEditor", {
|
|
194
210
|
pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
|
|
195
211
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"submitEditor", {
|
|
196
212
|
pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
|
|
197
213
|
}>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
198
|
-
sharedState: import("
|
|
214
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
199
215
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
200
|
-
sharedState: import("
|
|
216
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
201
217
|
}>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"unsupportedContent", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"unsupportedContent", {}>, (config?: TypeAheadPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"typeAhead", {
|
|
202
218
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
203
219
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"typeAhead", {
|
|
@@ -480,10 +496,18 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
480
496
|
actions: {
|
|
481
497
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
482
498
|
};
|
|
483
|
-
}
|
|
499
|
+
}>>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
500
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
501
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
502
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
503
|
+
}>];
|
|
484
504
|
actions: {
|
|
485
505
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
486
506
|
};
|
|
507
|
+
sharedState: {
|
|
508
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
509
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
510
|
+
} | undefined;
|
|
487
511
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
|
|
488
512
|
dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
489
513
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -511,18 +535,26 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
511
535
|
actions: {
|
|
512
536
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
513
537
|
};
|
|
514
|
-
}
|
|
538
|
+
}>>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
539
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
540
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
541
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
542
|
+
}>];
|
|
515
543
|
actions: {
|
|
516
544
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
517
545
|
};
|
|
546
|
+
sharedState: {
|
|
547
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
548
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
549
|
+
} | undefined;
|
|
518
550
|
}>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"fakeTextCursor", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"fakeTextCursor", {}>, (config?: ((editorView: import("prosemirror-view").EditorView) => void) | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"submitEditor", {
|
|
519
551
|
pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
|
|
520
552
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"submitEditor", {
|
|
521
553
|
pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
|
|
522
554
|
}>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
523
|
-
sharedState: import("
|
|
555
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
524
556
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
525
|
-
sharedState: import("
|
|
557
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
526
558
|
}>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"unsupportedContent", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"unsupportedContent", {}>, (config?: TypeAheadPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"typeAhead", {
|
|
527
559
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
528
560
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"typeAhead", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type
|
|
2
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
3
3
|
import type { DatePluginConfig } from './types';
|
|
4
4
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
declare const datePlugin: NextEditorPlugin<'date', {
|
|
6
6
|
pluginConfiguration: DatePluginConfig | undefined;
|
|
7
|
-
dependencies: [typeof analyticsPlugin,
|
|
7
|
+
dependencies: [typeof analyticsPlugin, EditorDisabledPlugin];
|
|
8
8
|
sharedState: {
|
|
9
9
|
showDatePickerAt?: number | null;
|
|
10
10
|
isNew: boolean;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import type { Selection, EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
4
3
|
import type { FloatingToolbarConfig } from './types';
|
|
5
|
-
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
4
|
+
import type { FloatingToolbarPlugin, ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
6
5
|
export type FloatingToolbarPluginState = {
|
|
7
6
|
getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
|
|
8
7
|
};
|
|
9
|
-
export type ConfigWithNodeInfo = {
|
|
10
|
-
config: FloatingToolbarConfig | undefined;
|
|
11
|
-
pos: number;
|
|
12
|
-
node: Node;
|
|
13
|
-
};
|
|
14
8
|
export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
|
|
15
9
|
declare const floatingToolbarPlugin: FloatingToolbarPlugin;
|
|
16
10
|
export default floatingToolbarPlugin;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
export declare const forceFocusStateKey: PluginKey<any>;
|
|
@@ -11,7 +12,7 @@ export default _default;
|
|
|
11
12
|
/**
|
|
12
13
|
* The provided selector should be the floating toolbar button that needs focus.
|
|
13
14
|
*/
|
|
14
|
-
export declare
|
|
15
|
+
export declare const forceFocusSelector: (selector: string | null) => (tr: Transaction) => Transaction;
|
|
15
16
|
/**
|
|
16
17
|
* If a selector is set and the element exists, focus it.
|
|
17
18
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference path="../../../../../../../../../typings/prosemirror.d.ts" />
|
|
2
2
|
/// <reference path="../../../../../../../../../typings/prosemirror-state.d.ts" />
|
|
3
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("
|
|
3
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { FloatingToolbarPluginData } from '
|
|
2
|
+
import type { FloatingToolbarPluginData } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
3
3
|
export declare const pluginKey: PluginKey<FloatingToolbarPluginData>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { Dispatch } from '../../../../event-dispatcher';
|
|
3
|
-
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("
|
|
3
|
+
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { FloatingToolbarPluginAction
|
|
1
|
+
import type { FloatingToolbarPluginAction } from './types';
|
|
2
|
+
import type { FloatingToolbarPluginData } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
2
3
|
export declare const reducer: (pluginState: FloatingToolbarPluginData, action: FloatingToolbarPluginAction) => FloatingToolbarPluginData;
|
|
@@ -5,7 +5,7 @@ import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
|
5
5
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
6
6
|
interface Props {
|
|
7
7
|
node: PMNode;
|
|
8
|
-
extensionProvider: ExtensionProvider
|
|
8
|
+
extensionProvider: Promise<ExtensionProvider>;
|
|
9
9
|
editorView: EditorView;
|
|
10
10
|
separator?: 'start' | 'end' | 'both';
|
|
11
11
|
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
@@ -24,7 +24,7 @@ export interface Props {
|
|
|
24
24
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
25
25
|
target?: HTMLElement;
|
|
26
26
|
node: Node;
|
|
27
|
-
extensionsProvider?: ExtensionProvider
|
|
27
|
+
extensionsProvider?: Promise<ExtensionProvider>;
|
|
28
28
|
scrollable?: boolean;
|
|
29
29
|
featureFlags: FeatureFlags;
|
|
30
30
|
api: PluginInjectionAPIWithDependencies<[
|
|
@@ -38,7 +38,6 @@ export { default as statusPlugin } from './status';
|
|
|
38
38
|
export { default as breakoutPlugin } from './breakout';
|
|
39
39
|
export { default as alignmentPlugin } from './alignment';
|
|
40
40
|
export { default as dataConsumerMarkPlugin } from './data-consumer';
|
|
41
|
-
export { default as editorDisabledPlugin } from './editor-disabled';
|
|
42
41
|
export { default as fragmentMarkPlugin } from './fragment';
|
|
43
42
|
export { default as indentationPlugin } from './indentation';
|
|
44
43
|
export { default as annotationPlugin } from './annotation';
|
|
@@ -11,7 +11,7 @@ import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
11
11
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
12
12
|
import type { MediaPluginState } from './pm-plugins/types';
|
|
13
13
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
14
|
-
import type
|
|
14
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
15
15
|
export type { MediaState, MediaProvider, CustomMediaPicker };
|
|
16
16
|
export { insertMediaSingleNode } from './utils/media-single';
|
|
17
17
|
declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
@@ -24,7 +24,7 @@ declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
|
24
24
|
typeof widthPlugin,
|
|
25
25
|
typeof decorationsPlugin,
|
|
26
26
|
FloatingToolbarPlugin,
|
|
27
|
-
|
|
27
|
+
EditorDisabledPlugin
|
|
28
28
|
];
|
|
29
29
|
sharedState: MediaPluginState | null;
|
|
30
30
|
}>;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
view: EditorView;
|
|
10
10
|
value?: string;
|
|
11
11
|
altTextValidator?: (value: string) => string[];
|
|
12
|
+
onEscape?: () => void;
|
|
12
13
|
} & WrappedComponentProps & WithAnalyticsEventsProps;
|
|
13
14
|
export type AltTextEditComponentState = {
|
|
14
15
|
showClearTextButton: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
import { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
|
|
4
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
+
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
|
|
7
7
|
export type Props = {
|
|
8
8
|
intl: IntlShape;
|
|
9
9
|
providerFactory: ProviderFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import type { DatePluginState } from '../../date/pm-plugins/types';
|
|
3
|
-
import type { ConfigWithNodeInfo } from '
|
|
3
|
+
import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
4
4
|
import type { StatusState } from '../../status/types';
|
|
5
5
|
type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
|
|
6
6
|
dateState?: DatePluginState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PaletteColor, PaletteTooltipMessages } from '../ColorPalette/Palettes';
|
|
4
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { PaletteColor, PaletteTooltipMessages } from '../ColorPalette/Palettes';
|
|
4
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
type Props = WithAnalyticsEventsProps & {
|
|
6
6
|
currentColor?: string;
|
|
7
7
|
title?: string;
|
|
@@ -189,11 +189,20 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
189
189
|
actions: {
|
|
190
190
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
191
191
|
};
|
|
192
|
-
}
|
|
192
|
+
}>>,
|
|
193
|
+
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
194
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
195
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
196
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
197
|
+
}>
|
|
193
198
|
];
|
|
194
199
|
actions: {
|
|
195
200
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
196
201
|
};
|
|
202
|
+
sharedState: {
|
|
203
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
204
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
205
|
+
} | undefined;
|
|
197
206
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
|
|
198
207
|
dependencies: [
|
|
199
208
|
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
@@ -224,11 +233,20 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
224
233
|
actions: {
|
|
225
234
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
226
235
|
};
|
|
227
|
-
}
|
|
236
|
+
}>>,
|
|
237
|
+
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
238
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
239
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
240
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
241
|
+
}>
|
|
228
242
|
];
|
|
229
243
|
actions: {
|
|
230
244
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
231
245
|
};
|
|
246
|
+
sharedState: {
|
|
247
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
248
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
249
|
+
} | undefined;
|
|
232
250
|
}>,
|
|
233
251
|
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"fakeTextCursor", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"fakeTextCursor", {}>,
|
|
234
252
|
(config?: ((editorView: import("prosemirror-view").EditorView) => void) | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"submitEditor", {
|
|
@@ -237,9 +255,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
237
255
|
pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
|
|
238
256
|
}>,
|
|
239
257
|
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
240
|
-
sharedState: import("
|
|
258
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
241
259
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
242
|
-
sharedState: import("
|
|
260
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
243
261
|
}>,
|
|
244
262
|
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"unsupportedContent", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"unsupportedContent", {}>,
|
|
245
263
|
(config?: TypeAheadPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"typeAhead", {
|
|
@@ -590,11 +608,20 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
590
608
|
actions: {
|
|
591
609
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
592
610
|
};
|
|
593
|
-
}
|
|
611
|
+
}>>,
|
|
612
|
+
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
613
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
614
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
615
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
616
|
+
}>
|
|
594
617
|
];
|
|
595
618
|
actions: {
|
|
596
619
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
597
620
|
};
|
|
621
|
+
sharedState: {
|
|
622
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
623
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
624
|
+
} | undefined;
|
|
598
625
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
|
|
599
626
|
dependencies: [
|
|
600
627
|
(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
|
|
@@ -625,11 +652,20 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
625
652
|
actions: {
|
|
626
653
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
627
654
|
};
|
|
628
|
-
}
|
|
655
|
+
}>>,
|
|
656
|
+
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
657
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
658
|
+
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
659
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
660
|
+
}>
|
|
629
661
|
];
|
|
630
662
|
actions: {
|
|
631
663
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
632
664
|
};
|
|
665
|
+
sharedState: {
|
|
666
|
+
configWithNodeInfo: import("@atlaskit/editor-plugin-floating-toolbar").ConfigWithNodeInfo | undefined;
|
|
667
|
+
floatingToolbarData: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | undefined;
|
|
668
|
+
} | undefined;
|
|
633
669
|
}>,
|
|
634
670
|
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"fakeTextCursor", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"fakeTextCursor", {}>,
|
|
635
671
|
(config?: ((editorView: import("prosemirror-view").EditorView) => void) | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"submitEditor", {
|
|
@@ -638,9 +674,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
638
674
|
pluginConfiguration: ((editorView: import("prosemirror-view").EditorView) => void) | undefined;
|
|
639
675
|
}>,
|
|
640
676
|
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"editorDisabled", {
|
|
641
|
-
sharedState: import("
|
|
677
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
642
678
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"editorDisabled", {
|
|
643
|
-
sharedState: import("
|
|
679
|
+
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
644
680
|
}>,
|
|
645
681
|
(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"unsupportedContent", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"unsupportedContent", {}>,
|
|
646
682
|
(config?: TypeAheadPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"typeAhead", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type
|
|
2
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
3
3
|
import type { DatePluginConfig } from './types';
|
|
4
4
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
declare const datePlugin: NextEditorPlugin<'date', {
|
|
6
6
|
pluginConfiguration: DatePluginConfig | undefined;
|
|
7
7
|
dependencies: [
|
|
8
8
|
typeof analyticsPlugin,
|
|
9
|
-
|
|
9
|
+
EditorDisabledPlugin
|
|
10
10
|
];
|
|
11
11
|
sharedState: {
|
|
12
12
|
showDatePickerAt?: number | null;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import type { Selection, EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
4
3
|
import type { FloatingToolbarConfig } from './types';
|
|
5
|
-
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
4
|
+
import type { FloatingToolbarPlugin, ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
6
5
|
export type FloatingToolbarPluginState = {
|
|
7
6
|
getConfigWithNodeInfo: (state: EditorState) => ConfigWithNodeInfo | null | undefined;
|
|
8
7
|
};
|
|
9
|
-
export type ConfigWithNodeInfo = {
|
|
10
|
-
config: FloatingToolbarConfig | undefined;
|
|
11
|
-
pos: number;
|
|
12
|
-
node: Node;
|
|
13
|
-
};
|
|
14
8
|
export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
|
|
15
9
|
declare const floatingToolbarPlugin: FloatingToolbarPlugin;
|
|
16
10
|
export default floatingToolbarPlugin;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
export declare const forceFocusStateKey: PluginKey<any>;
|
|
@@ -11,7 +12,7 @@ export default _default;
|
|
|
11
12
|
/**
|
|
12
13
|
* The provided selector should be the floating toolbar button that needs focus.
|
|
13
14
|
*/
|
|
14
|
-
export declare
|
|
15
|
+
export declare const forceFocusSelector: (selector: string | null) => (tr: Transaction) => Transaction;
|
|
15
16
|
/**
|
|
16
17
|
* If a selector is set and the element exists, focus it.
|
|
17
18
|
*/
|
package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference path="../../../../../../../../../typings/prosemirror.d.ts" />
|
|
2
2
|
/// <reference path="../../../../../../../../../typings/prosemirror-state.d.ts" />
|
|
3
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("
|
|
3
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { FloatingToolbarPluginData } from '
|
|
2
|
+
import type { FloatingToolbarPluginData } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
3
3
|
export declare const pluginKey: PluginKey<FloatingToolbarPluginData>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { Dispatch } from '../../../../event-dispatcher';
|
|
3
|
-
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("
|
|
3
|
+
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { FloatingToolbarPluginAction
|
|
1
|
+
import type { FloatingToolbarPluginAction } from './types';
|
|
2
|
+
import type { FloatingToolbarPluginData } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
2
3
|
export declare const reducer: (pluginState: FloatingToolbarPluginData, action: FloatingToolbarPluginAction) => FloatingToolbarPluginData;
|
|
@@ -5,7 +5,7 @@ import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
|
5
5
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
6
6
|
interface Props {
|
|
7
7
|
node: PMNode;
|
|
8
|
-
extensionProvider: ExtensionProvider
|
|
8
|
+
extensionProvider: Promise<ExtensionProvider>;
|
|
9
9
|
editorView: EditorView;
|
|
10
10
|
separator?: 'start' | 'end' | 'both';
|
|
11
11
|
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
@@ -24,7 +24,7 @@ export interface Props {
|
|
|
24
24
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
25
25
|
target?: HTMLElement;
|
|
26
26
|
node: Node;
|
|
27
|
-
extensionsProvider?: ExtensionProvider
|
|
27
|
+
extensionsProvider?: Promise<ExtensionProvider>;
|
|
28
28
|
scrollable?: boolean;
|
|
29
29
|
featureFlags: FeatureFlags;
|
|
30
30
|
api: PluginInjectionAPIWithDependencies<[
|
|
@@ -38,7 +38,6 @@ export { default as statusPlugin } from './status';
|
|
|
38
38
|
export { default as breakoutPlugin } from './breakout';
|
|
39
39
|
export { default as alignmentPlugin } from './alignment';
|
|
40
40
|
export { default as dataConsumerMarkPlugin } from './data-consumer';
|
|
41
|
-
export { default as editorDisabledPlugin } from './editor-disabled';
|
|
42
41
|
export { default as fragmentMarkPlugin } from './fragment';
|
|
43
42
|
export { default as indentationPlugin } from './indentation';
|
|
44
43
|
export { default as annotationPlugin } from './annotation';
|
|
@@ -11,7 +11,7 @@ import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
|
11
11
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
12
12
|
import type { MediaPluginState } from './pm-plugins/types';
|
|
13
13
|
import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
14
|
-
import type
|
|
14
|
+
import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
|
|
15
15
|
export type { MediaState, MediaProvider, CustomMediaPicker };
|
|
16
16
|
export { insertMediaSingleNode } from './utils/media-single';
|
|
17
17
|
declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
@@ -24,7 +24,7 @@ declare const mediaPlugin: NextEditorPlugin<'media', {
|
|
|
24
24
|
typeof widthPlugin,
|
|
25
25
|
typeof decorationsPlugin,
|
|
26
26
|
FloatingToolbarPlugin,
|
|
27
|
-
|
|
27
|
+
EditorDisabledPlugin
|
|
28
28
|
];
|
|
29
29
|
sharedState: MediaPluginState | null;
|
|
30
30
|
}>;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
view: EditorView;
|
|
10
10
|
value?: string;
|
|
11
11
|
altTextValidator?: (value: string) => string[];
|
|
12
|
+
onEscape?: () => void;
|
|
12
13
|
} & WrappedComponentProps & WithAnalyticsEventsProps;
|
|
13
14
|
export type AltTextEditComponentState = {
|
|
14
15
|
showClearTextButton: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
import { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
|
|
4
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
+
import type { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { RecentSearchInputTypes } from '@atlaskit/editor-common/link';
|
|
7
7
|
export type Props = {
|
|
8
8
|
intl: IntlShape;
|
|
9
9
|
providerFactory: ProviderFactory;
|
package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
import type { DatePluginState } from '../../date/pm-plugins/types';
|
|
3
|
-
import type { ConfigWithNodeInfo } from '
|
|
3
|
+
import type { ConfigWithNodeInfo } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
4
4
|
import type { StatusState } from '../../status/types';
|
|
5
5
|
type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
|
|
6
6
|
dateState?: DatePluginState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { PaletteColor, PaletteTooltipMessages } from '../ColorPalette/Palettes';
|
|
4
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { PaletteColor, PaletteTooltipMessages } from '../ColorPalette/Palettes';
|
|
4
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
5
5
|
type Props = WithAnalyticsEventsProps & {
|
|
6
6
|
currentColor?: string;
|
|
7
7
|
title?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "187.10.
|
|
3
|
+
"version": "187.10.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,8 +64,9 @@
|
|
|
64
64
|
"@atlaskit/editor-plugin-content-insertion": "^0.0.7",
|
|
65
65
|
"@atlaskit/editor-plugin-context-panel": "^0.1.0",
|
|
66
66
|
"@atlaskit/editor-plugin-decorations": "^0.1.0",
|
|
67
|
+
"@atlaskit/editor-plugin-editor-disabled": "^0.1.0",
|
|
67
68
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
68
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^0.
|
|
69
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^0.3.0",
|
|
69
70
|
"@atlaskit/editor-plugin-grid": "^0.1.0",
|
|
70
71
|
"@atlaskit/editor-plugin-guideline": "^0.3.4",
|
|
71
72
|
"@atlaskit/editor-plugin-hyperlink": "^0.2.0",
|