@atlaskit/editor-core 205.4.0 → 205.5.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 +26 -0
- package/dist/cjs/composable-editor/core-editor.js +2 -1
- package/dist/cjs/composable-editor/editor-inp-metrics.js +71 -0
- package/dist/cjs/ui/ContentStyles/index.js +1 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +2 -1
- package/dist/es2019/composable-editor/editor-inp-metrics.js +61 -0
- package/dist/es2019/ui/ContentStyles/index.js +1 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +2 -1
- package/dist/esm/composable-editor/editor-inp-metrics.js +64 -0
- package/dist/esm/ui/ContentStyles/index.js +1 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-inp-metrics.d.ts +1 -0
- package/dist/types/create-editor/create-universal-preset.d.ts +192 -7
- package/dist/types/presets/universal.d.ts +192 -7
- package/dist/types/presets/useUniversalPreset.d.ts +192 -7
- package/dist/types/ui/ContentStyles/index.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/editor-inp-metrics.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +220 -7
- package/dist/types-ts4.5/presets/universal.d.ts +220 -7
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +220 -7
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +1 -1
- package/package.json +25 -14
|
@@ -441,7 +441,32 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
441
441
|
sharedState: {
|
|
442
442
|
contents: import("react").ReactNode[] | undefined;
|
|
443
443
|
} | undefined;
|
|
444
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
444
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
445
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
446
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
447
|
+
sharedState: {
|
|
448
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
449
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
450
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
451
|
+
};
|
|
452
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
453
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
454
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
455
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
456
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
457
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
458
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
459
|
+
commands: {
|
|
460
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
461
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
462
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
463
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
464
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
465
|
+
shouldStartTimer?: boolean | undefined;
|
|
466
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
467
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
468
|
+
};
|
|
469
|
+
}, undefined>>];
|
|
445
470
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
446
471
|
actions: {
|
|
447
472
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -497,7 +522,32 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
497
522
|
sharedState: {
|
|
498
523
|
contents: import("react").ReactNode[] | undefined;
|
|
499
524
|
} | undefined;
|
|
500
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
525
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
526
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
527
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
528
|
+
sharedState: {
|
|
529
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
530
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
531
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
532
|
+
};
|
|
533
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
534
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
535
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
536
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
537
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
538
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
539
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
540
|
+
commands: {
|
|
541
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
542
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
543
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
544
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
545
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
546
|
+
shouldStartTimer?: boolean | undefined;
|
|
547
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
548
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
549
|
+
};
|
|
550
|
+
}, undefined>>];
|
|
501
551
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
502
552
|
actions: {
|
|
503
553
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -522,6 +572,31 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
522
572
|
commands: {
|
|
523
573
|
setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
524
574
|
};
|
|
575
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
576
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
577
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
578
|
+
sharedState: {
|
|
579
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
580
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
581
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
582
|
+
};
|
|
583
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
584
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
585
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
586
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
587
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
588
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
589
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
590
|
+
commands: {
|
|
591
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
592
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
593
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
594
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
595
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
596
|
+
shouldStartTimer?: boolean | undefined;
|
|
597
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
598
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
599
|
+
};
|
|
525
600
|
}, undefined>>];
|
|
526
601
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
527
602
|
actions: {
|
|
@@ -610,11 +685,31 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
610
685
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
611
686
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
612
687
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
613
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
688
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
689
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
690
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
691
|
+
commands: {
|
|
692
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
693
|
+
moveToEnd?: boolean | undefined;
|
|
694
|
+
selectMovedNode?: boolean | undefined;
|
|
695
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
696
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
697
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
698
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
699
|
+
toggleBlockMenu: (options?: {
|
|
700
|
+
closeMenu?: boolean | undefined;
|
|
701
|
+
anchorName?: string | undefined;
|
|
702
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
703
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
704
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
705
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
706
|
+
};
|
|
707
|
+
}, undefined>>];
|
|
614
708
|
actions?: {
|
|
615
709
|
suppressToolbar?: (() => boolean) | undefined;
|
|
616
710
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
617
711
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
712
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
618
713
|
} | undefined;
|
|
619
714
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
620
715
|
commands: {
|
|
@@ -671,11 +766,31 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
671
766
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
672
767
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
673
768
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
674
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
769
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
770
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
771
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
772
|
+
commands: {
|
|
773
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
774
|
+
moveToEnd?: boolean | undefined;
|
|
775
|
+
selectMovedNode?: boolean | undefined;
|
|
776
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
777
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
778
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
779
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
780
|
+
toggleBlockMenu: (options?: {
|
|
781
|
+
closeMenu?: boolean | undefined;
|
|
782
|
+
anchorName?: string | undefined;
|
|
783
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
784
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
785
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
786
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
787
|
+
};
|
|
788
|
+
}, undefined>>];
|
|
675
789
|
actions?: {
|
|
676
790
|
suppressToolbar?: (() => boolean) | undefined;
|
|
677
791
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
678
792
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
793
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
679
794
|
} | undefined;
|
|
680
795
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
681
796
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
@@ -734,11 +849,31 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
734
849
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
735
850
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
736
851
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
737
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
852
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
853
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
854
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
855
|
+
commands: {
|
|
856
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
857
|
+
moveToEnd?: boolean | undefined;
|
|
858
|
+
selectMovedNode?: boolean | undefined;
|
|
859
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
860
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
861
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
862
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
863
|
+
toggleBlockMenu: (options?: {
|
|
864
|
+
closeMenu?: boolean | undefined;
|
|
865
|
+
anchorName?: string | undefined;
|
|
866
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
867
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
868
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
869
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
870
|
+
};
|
|
871
|
+
}, undefined>>];
|
|
738
872
|
actions?: {
|
|
739
873
|
suppressToolbar?: (() => boolean) | undefined;
|
|
740
874
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
741
875
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
876
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
742
877
|
} | undefined;
|
|
743
878
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
744
879
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -784,7 +919,32 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
784
919
|
sharedState: {
|
|
785
920
|
contents: import("react").ReactNode[] | undefined;
|
|
786
921
|
} | undefined;
|
|
787
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
922
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
923
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
924
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
925
|
+
sharedState: {
|
|
926
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
927
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
928
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
929
|
+
};
|
|
930
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
931
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
932
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
933
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
934
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
935
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
936
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
937
|
+
commands: {
|
|
938
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
939
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
940
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
941
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
942
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
943
|
+
shouldStartTimer?: boolean | undefined;
|
|
944
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
945
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
946
|
+
};
|
|
947
|
+
}, undefined>>];
|
|
788
948
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
789
949
|
actions: {
|
|
790
950
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -870,7 +1030,32 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
870
1030
|
sharedState: {
|
|
871
1031
|
contents: import("react").ReactNode[] | undefined;
|
|
872
1032
|
} | undefined;
|
|
873
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
1033
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
1034
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1035
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
1036
|
+
sharedState: {
|
|
1037
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
1038
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1039
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1040
|
+
};
|
|
1041
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1042
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1043
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1044
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
1045
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1046
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
1047
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
1048
|
+
commands: {
|
|
1049
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1050
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1051
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1052
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
1053
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
1054
|
+
shouldStartTimer?: boolean | undefined;
|
|
1055
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
1056
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1057
|
+
};
|
|
1058
|
+
}, undefined>>];
|
|
874
1059
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
875
1060
|
actions: {
|
|
876
1061
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -493,7 +493,32 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
493
493
|
sharedState: {
|
|
494
494
|
contents: import("react").ReactNode[] | undefined;
|
|
495
495
|
} | undefined;
|
|
496
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
496
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
497
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
498
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
499
|
+
sharedState: {
|
|
500
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
501
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
502
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
503
|
+
};
|
|
504
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
505
|
+
pluginConfiguration: FeatureFlags;
|
|
506
|
+
sharedState: FeatureFlags;
|
|
507
|
+
}, FeatureFlags>>];
|
|
508
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
509
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
510
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
511
|
+
commands: {
|
|
512
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
513
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
514
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
515
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
516
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
517
|
+
shouldStartTimer?: boolean | undefined;
|
|
518
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
519
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
520
|
+
};
|
|
521
|
+
}, undefined>>];
|
|
497
522
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
498
523
|
actions: {
|
|
499
524
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -549,7 +574,32 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
549
574
|
sharedState: {
|
|
550
575
|
contents: import("react").ReactNode[] | undefined;
|
|
551
576
|
} | undefined;
|
|
552
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
577
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
578
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
579
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
580
|
+
sharedState: {
|
|
581
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
582
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
583
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
584
|
+
};
|
|
585
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
586
|
+
pluginConfiguration: FeatureFlags;
|
|
587
|
+
sharedState: FeatureFlags;
|
|
588
|
+
}, FeatureFlags>>];
|
|
589
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
590
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
591
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
592
|
+
commands: {
|
|
593
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
594
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
595
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
596
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
597
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
598
|
+
shouldStartTimer?: boolean | undefined;
|
|
599
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
600
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
601
|
+
};
|
|
602
|
+
}, undefined>>];
|
|
553
603
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
554
604
|
actions: {
|
|
555
605
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -574,6 +624,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
574
624
|
commands: {
|
|
575
625
|
setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
576
626
|
};
|
|
627
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
628
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
629
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
630
|
+
sharedState: {
|
|
631
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
632
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
633
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
634
|
+
};
|
|
635
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
636
|
+
pluginConfiguration: FeatureFlags;
|
|
637
|
+
sharedState: FeatureFlags;
|
|
638
|
+
}, FeatureFlags>>];
|
|
639
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
640
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
641
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
642
|
+
commands: {
|
|
643
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
644
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
645
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
646
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
647
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
648
|
+
shouldStartTimer?: boolean | undefined;
|
|
649
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
650
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
651
|
+
};
|
|
577
652
|
}, undefined>>];
|
|
578
653
|
sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
|
|
579
654
|
actions: {
|
|
@@ -662,11 +737,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
662
737
|
sharedState: FeatureFlags;
|
|
663
738
|
}, FeatureFlags>>];
|
|
664
739
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
665
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
740
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
741
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
742
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
743
|
+
commands: {
|
|
744
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
745
|
+
moveToEnd?: boolean | undefined;
|
|
746
|
+
selectMovedNode?: boolean | undefined;
|
|
747
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
748
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
749
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
750
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
751
|
+
toggleBlockMenu: (options?: {
|
|
752
|
+
closeMenu?: boolean | undefined;
|
|
753
|
+
anchorName?: string | undefined;
|
|
754
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
755
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
756
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
757
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
758
|
+
};
|
|
759
|
+
}, undefined>>];
|
|
666
760
|
actions?: {
|
|
667
761
|
suppressToolbar?: (() => boolean) | undefined;
|
|
668
762
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
669
763
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
764
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
670
765
|
} | undefined;
|
|
671
766
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
672
767
|
commands: {
|
|
@@ -723,11 +818,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
723
818
|
sharedState: FeatureFlags;
|
|
724
819
|
}, FeatureFlags>>];
|
|
725
820
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
726
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
821
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
822
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
823
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
824
|
+
commands: {
|
|
825
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
826
|
+
moveToEnd?: boolean | undefined;
|
|
827
|
+
selectMovedNode?: boolean | undefined;
|
|
828
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
829
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
830
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
831
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
832
|
+
toggleBlockMenu: (options?: {
|
|
833
|
+
closeMenu?: boolean | undefined;
|
|
834
|
+
anchorName?: string | undefined;
|
|
835
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
836
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
837
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
838
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
839
|
+
};
|
|
840
|
+
}, undefined>>];
|
|
727
841
|
actions?: {
|
|
728
842
|
suppressToolbar?: (() => boolean) | undefined;
|
|
729
843
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
730
844
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
845
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
731
846
|
} | undefined;
|
|
732
847
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
733
848
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
@@ -786,11 +901,31 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
786
901
|
sharedState: FeatureFlags;
|
|
787
902
|
}, FeatureFlags>>];
|
|
788
903
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
789
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
904
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
905
|
+
dependencies: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").BlockControlsPluginDependencies;
|
|
906
|
+
sharedState: import("@atlaskit/editor-plugins/block-controls").BlockControlsSharedState;
|
|
907
|
+
commands: {
|
|
908
|
+
moveToLayout: (start: number, to: number, options?: {
|
|
909
|
+
moveToEnd?: boolean | undefined;
|
|
910
|
+
selectMovedNode?: boolean | undefined;
|
|
911
|
+
moveNodeAtCursorPos?: boolean | undefined;
|
|
912
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
913
|
+
moveNode: import("packages/editor/editor-plugin-block-controls/dist/types/blockControlsPluginType").MoveNode;
|
|
914
|
+
showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number | undefined, rootAnchorName?: string | undefined, rootNodeType?: string | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
915
|
+
toggleBlockMenu: (options?: {
|
|
916
|
+
closeMenu?: boolean | undefined;
|
|
917
|
+
anchorName?: string | undefined;
|
|
918
|
+
} | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
919
|
+
setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
920
|
+
setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
921
|
+
setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
922
|
+
};
|
|
923
|
+
}, undefined>>];
|
|
790
924
|
actions?: {
|
|
791
925
|
suppressToolbar?: (() => boolean) | undefined;
|
|
792
926
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
793
927
|
setToolbarDocking?: ((toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking) => boolean) | undefined;
|
|
928
|
+
refreshToolbarDocking?: (() => boolean) | undefined;
|
|
794
929
|
} | undefined;
|
|
795
930
|
}, import("packages/editor/editor-plugin-selection-toolbar/dist/types").SelectionToolbarPluginOptions>>];
|
|
796
931
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -836,7 +971,32 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
836
971
|
sharedState: {
|
|
837
972
|
contents: import("react").ReactNode[] | undefined;
|
|
838
973
|
} | undefined;
|
|
839
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
974
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
975
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
976
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
977
|
+
sharedState: {
|
|
978
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
979
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
980
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
981
|
+
};
|
|
982
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
983
|
+
pluginConfiguration: FeatureFlags;
|
|
984
|
+
sharedState: FeatureFlags;
|
|
985
|
+
}, FeatureFlags>>];
|
|
986
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
987
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
988
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
989
|
+
commands: {
|
|
990
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
991
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
992
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
993
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
994
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
995
|
+
shouldStartTimer?: boolean | undefined;
|
|
996
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
997
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
998
|
+
};
|
|
999
|
+
}, undefined>>];
|
|
840
1000
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
841
1001
|
actions: {
|
|
842
1002
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|
|
@@ -922,7 +1082,32 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
922
1082
|
sharedState: {
|
|
923
1083
|
contents: import("react").ReactNode[] | undefined;
|
|
924
1084
|
} | undefined;
|
|
925
|
-
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined
|
|
1085
|
+
}, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"metrics", {
|
|
1086
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1087
|
+
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
1088
|
+
sharedState: {
|
|
1089
|
+
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
1090
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugins/analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1091
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1092
|
+
};
|
|
1093
|
+
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1094
|
+
pluginConfiguration: FeatureFlags;
|
|
1095
|
+
sharedState: FeatureFlags;
|
|
1096
|
+
}, FeatureFlags>>];
|
|
1097
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1098
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
|
|
1099
|
+
sharedState: import("@atlaskit/editor-plugins/metrics").MetricsState;
|
|
1100
|
+
commands: {
|
|
1101
|
+
setContentMoved: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1102
|
+
startActiveSessionTimer: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1103
|
+
stopActiveSession: () => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1104
|
+
handleIntentToStartEdit: ({ newSelection, shouldStartTimer, shouldPersistActiveSession, }: {
|
|
1105
|
+
newSelection?: import("prosemirror-state").Selection | undefined;
|
|
1106
|
+
shouldStartTimer?: boolean | undefined;
|
|
1107
|
+
shouldPersistActiveSession?: boolean | undefined;
|
|
1108
|
+
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1109
|
+
};
|
|
1110
|
+
}, undefined>>];
|
|
926
1111
|
sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
|
|
927
1112
|
actions: {
|
|
928
1113
|
isOpen: (editorState: import("prosemirror-state").EditorState) => boolean;
|