@atlaskit/editor-core 192.7.0 → 193.1.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 +20 -0
- package/dist/cjs/CollapsedEditor/index.js +3 -3
- package/dist/cjs/EditorWithActions/index.js +1 -1
- package/dist/cjs/create-editor/ErrorBoundary.js +1 -1
- package/dist/cjs/create-editor/ReactEditorView.js +1 -1
- package/dist/cjs/create-editor/create-plugins-list.js +0 -1
- package/dist/cjs/create-editor/index.js +2 -2
- package/dist/cjs/editor.js +1 -1
- package/dist/cjs/messages.js +2 -2
- package/dist/cjs/nodeviews/context-adapter.js +1 -1
- package/dist/cjs/preset-universal.js +8 -1
- package/dist/cjs/presets/context.js +2 -2
- package/dist/cjs/presets/default.js +1 -2
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +5 -3
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +4 -3
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +1 -1
- package/dist/cjs/ui/Addon/Dropdown/index.js +1 -1
- package/dist/cjs/ui/Appearance/Chromeless.js +3 -3
- package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -5
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +16 -5
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -4
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +4 -2
- package/dist/cjs/ui/ChromeCollapsed/index.js +3 -3
- package/dist/cjs/ui/CollapsedEditor/index.js +1 -1
- package/dist/cjs/ui/ContentStyles/expand.js +6 -3
- package/dist/cjs/ui/ContentStyles/extension.js +1 -1
- package/dist/cjs/ui/ContentStyles/index.js +19 -5
- package/dist/cjs/ui/ContentStyles/media.js +1 -0
- package/dist/cjs/ui/ContentStyles/panel.js +1 -0
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -0
- package/dist/cjs/ui/ContextPanel/index.js +3 -3
- package/dist/cjs/ui/EditorContext/index.js +1 -1
- package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/PluginSlot/index.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
- package/dist/cjs/ui/WithEditorActions/index.js +1 -1
- package/dist/cjs/ui/WithFlash/index.js +28 -8
- package/dist/cjs/ui/WithHelpTrigger/index.js +1 -1
- package/dist/cjs/utils/performance/instrumented-plugin.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +0 -1
- package/dist/es2019/create-editor/create-plugins-list.js +0 -1
- package/dist/es2019/preset-universal.js +2 -1
- package/dist/es2019/presets/default.js +1 -2
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +4 -4
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -3
- package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +24 -15
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +2 -4
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +2 -0
- package/dist/es2019/ui/ContentStyles/expand.js +4 -3
- package/dist/es2019/ui/ContentStyles/extension.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +13 -13
- package/dist/es2019/ui/ContentStyles/media.js +1 -0
- package/dist/es2019/ui/ContentStyles/panel.js +1 -0
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +1 -0
- package/dist/es2019/ui/WithFlash/index.js +29 -32
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/CollapsedEditor/index.js +1 -1
- package/dist/esm/EditorWithActions/index.js +1 -1
- package/dist/esm/create-editor/ErrorBoundary.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +0 -1
- package/dist/esm/editor.js +1 -1
- package/dist/esm/nodeviews/context-adapter.js +1 -1
- package/dist/esm/preset-universal.js +2 -1
- package/dist/esm/presets/default.js +1 -2
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +4 -3
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -3
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +1 -1
- package/dist/esm/ui/Addon/Dropdown/index.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +3 -4
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +14 -3
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +2 -4
- package/dist/esm/ui/AppearanceComponents/Mobile.js +2 -0
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
- package/dist/esm/ui/CollapsedEditor/index.js +1 -1
- package/dist/esm/ui/ContentStyles/expand.js +6 -3
- package/dist/esm/ui/ContentStyles/extension.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +17 -3
- package/dist/esm/ui/ContentStyles/media.js +1 -0
- package/dist/esm/ui/ContentStyles/panel.js +1 -0
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -0
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/EditorContext/index.js +1 -1
- package/dist/esm/ui/ErrorBoundary/index.js +1 -1
- package/dist/esm/ui/PluginSlot/index.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/ui/WithEditorActions/index.js +1 -1
- package/dist/esm/ui/WithFlash/index.js +28 -7
- package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
- package/dist/esm/utils/performance/instrumented-plugin.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +70 -70
- package/dist/types/preset-universal.d.ts +1 -0
- package/dist/types/presets/default.d.ts +28 -164
- package/dist/types/presets/universal.d.ts +70 -70
- package/dist/types/presets/useUniversalPreset.d.ts +70 -70
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +82 -82
- package/dist/types-ts4.5/preset-universal.d.ts +1 -0
- package/dist/types-ts4.5/presets/default.d.ts +24 -190
- package/dist/types-ts4.5/presets/universal.d.ts +82 -82
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +82 -82
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +2 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/docs/4-annotations.tsx +1 -1
- package/package.json +25 -8
- package/docs/editor-use-only.tsx +0 -50
|
@@ -39,6 +39,7 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
39
39
|
import("@atlaskit/editor-common/types").MaybePluginName<"mention">,
|
|
40
40
|
import("@atlaskit/editor-common/types").MaybePluginName<"caption">,
|
|
41
41
|
import("@atlaskit/editor-common/types").MaybePluginName<"media">,
|
|
42
|
+
import("@atlaskit/editor-common/types").MaybePluginName<"annotation">,
|
|
42
43
|
import("@atlaskit/editor-common/types").MaybePluginName<"grid">,
|
|
43
44
|
import("@atlaskit/editor-common/types").MaybePluginName<"guideline">,
|
|
44
45
|
import("@atlaskit/editor-common/types").MaybePluginName<"expand">,
|
|
@@ -62,7 +63,6 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
62
63
|
"textFormatting",
|
|
63
64
|
"hyperlink",
|
|
64
65
|
import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">,
|
|
65
|
-
import("@atlaskit/editor-common/types").MaybePluginName<"annotation">,
|
|
66
66
|
"clearMarksOnEmptyDoc",
|
|
67
67
|
"blockType",
|
|
68
68
|
import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">,
|
|
@@ -2923,6 +2923,87 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2923
2923
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
2924
2924
|
};
|
|
2925
2925
|
}, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>,
|
|
2926
|
+
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
2927
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
|
|
2928
|
+
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
|
|
2929
|
+
dependencies: [
|
|
2930
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2931
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2932
|
+
sharedState: {
|
|
2933
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2934
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2935
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2936
|
+
};
|
|
2937
|
+
dependencies: [
|
|
2938
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2939
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2940
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2941
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2942
|
+
];
|
|
2943
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2944
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2945
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2946
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2947
|
+
dependencies: [
|
|
2948
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2949
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
2950
|
+
dependencies: [
|
|
2951
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2952
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2953
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2954
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
2955
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2956
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2957
|
+
sharedState: {
|
|
2958
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2959
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2960
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2961
|
+
};
|
|
2962
|
+
dependencies: [
|
|
2963
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2964
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2965
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2966
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2967
|
+
];
|
|
2968
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2969
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2970
|
+
];
|
|
2971
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2972
|
+
actions: {
|
|
2973
|
+
getAvatarColor: (str: string) => {
|
|
2974
|
+
index: number;
|
|
2975
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2976
|
+
};
|
|
2977
|
+
addInlineCommentMark: (props: {
|
|
2978
|
+
from: number;
|
|
2979
|
+
to: number;
|
|
2980
|
+
mark: import("prosemirror-model").Mark;
|
|
2981
|
+
}) => boolean;
|
|
2982
|
+
};
|
|
2983
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
2984
|
+
];
|
|
2985
|
+
pluginConfiguration?: {
|
|
2986
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2987
|
+
} | undefined;
|
|
2988
|
+
commands: {
|
|
2989
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2990
|
+
};
|
|
2991
|
+
actions: {
|
|
2992
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2993
|
+
};
|
|
2994
|
+
}, {
|
|
2995
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2996
|
+
} | undefined>>,
|
|
2997
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2998
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2999
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3000
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3001
|
+
];
|
|
3002
|
+
actions: {
|
|
3003
|
+
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3004
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3005
|
+
};
|
|
3006
|
+
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>,
|
|
2926
3007
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
2927
3008
|
pluginConfiguration: import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined;
|
|
2928
3009
|
dependencies: [
|
|
@@ -3896,87 +3977,6 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3896
3977
|
}, {
|
|
3897
3978
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
3898
3979
|
}>>,
|
|
3899
|
-
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
3900
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
|
|
3901
|
-
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
|
|
3902
|
-
dependencies: [
|
|
3903
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3904
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
3905
|
-
sharedState: {
|
|
3906
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
3907
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
3908
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
3909
|
-
};
|
|
3910
|
-
dependencies: [
|
|
3911
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3912
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3913
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3914
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3915
|
-
];
|
|
3916
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3917
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
3918
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3919
|
-
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3920
|
-
dependencies: [
|
|
3921
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
3922
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
3923
|
-
dependencies: [
|
|
3924
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3925
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3926
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3927
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
3928
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3929
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
3930
|
-
sharedState: {
|
|
3931
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
3932
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
3933
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
3934
|
-
};
|
|
3935
|
-
dependencies: [
|
|
3936
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3937
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3938
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3939
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3940
|
-
];
|
|
3941
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3942
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
3943
|
-
];
|
|
3944
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
3945
|
-
actions: {
|
|
3946
|
-
getAvatarColor: (str: string) => {
|
|
3947
|
-
index: number;
|
|
3948
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
3949
|
-
};
|
|
3950
|
-
addInlineCommentMark: (props: {
|
|
3951
|
-
from: number;
|
|
3952
|
-
to: number;
|
|
3953
|
-
mark: import("prosemirror-model").Mark;
|
|
3954
|
-
}) => boolean;
|
|
3955
|
-
};
|
|
3956
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
3957
|
-
];
|
|
3958
|
-
pluginConfiguration?: {
|
|
3959
|
-
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3960
|
-
} | undefined;
|
|
3961
|
-
commands: {
|
|
3962
|
-
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3963
|
-
};
|
|
3964
|
-
actions: {
|
|
3965
|
-
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3966
|
-
};
|
|
3967
|
-
}, {
|
|
3968
|
-
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3969
|
-
} | undefined>>,
|
|
3970
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3971
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3972
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3973
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3974
|
-
];
|
|
3975
|
-
actions: {
|
|
3976
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3977
|
-
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3978
|
-
};
|
|
3979
|
-
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>,
|
|
3980
3980
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
3981
3981
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
3982
3982
|
pluginConfiguration: import("@atlaskit/editor-plugin-block-type").BlockTypePluginOptions | undefined;
|
|
@@ -3,10 +3,10 @@ export declare const fullPageEditorWrapper: import("@emotion/react").SerializedS
|
|
|
3
3
|
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Pick<{
|
|
4
4
|
theme?: any;
|
|
5
5
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
6
|
-
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "dir" | "color" | "content" | "height" | "translate" | "width" | "key" | "name" | "property" | "type" | "disabled" | "placeholder" | "defaultValue" | "onChange" | "media" | "children" | "value" | "pattern" | "list" | "open" | "accessKey" | "className" | "role" | "id" | "start" | "action" | "step" | "wrap" | keyof {
|
|
6
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "dir" | "color" | "content" | "height" | "translate" | "width" | "key" | "name" | "property" | "type" | "disabled" | "placeholder" | "defaultValue" | "onChange" | "media" | "children" | "value" | "pattern" | "list" | "open" | "accessKey" | "className" | "role" | "id" | "start" | "action" | "step" | "wrap" | "hidden" | keyof {
|
|
7
7
|
theme?: any;
|
|
8
8
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
9
|
-
} | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "
|
|
9
|
+
} | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export declare const positionedOverEditorStyle: import("@emotion/react").SerializedStyles;
|
|
11
11
|
export declare const contentArea: import("@emotion/react").SerializedStyles;
|
|
12
12
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
@@ -9,6 +9,6 @@ type ContentStylesProps = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const placeholderStyles: SerializedStyles;
|
|
11
11
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
12
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "dir" | "color" | "content" | "height" | "translate" | "width" | "key" | "name" | "property" | "type" | "disabled" | "placeholder" | "defaultValue" | "onChange" | "media" | "children" | "value" | "pattern" | "list" | "open" | "accessKey" | "className" | "role" | "id" | "start" | "action" | "step" | "wrap" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "
|
|
13
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "dir" | "color" | "content" | "height" | "translate" | "width" | "key" | "name" | "property" | "type" | "disabled" | "placeholder" | "defaultValue" | "onChange" | "media" | "children" | "value" | "pattern" | "list" | "open" | "accessKey" | "className" | "role" | "id" | "start" | "action" | "step" | "wrap" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "
|
|
12
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "dir" | "color" | "content" | "height" | "translate" | "width" | "key" | "name" | "property" | "type" | "disabled" | "placeholder" | "defaultValue" | "onChange" | "media" | "children" | "value" | "pattern" | "list" | "open" | "accessKey" | "className" | "role" | "id" | "start" | "action" | "step" | "wrap" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "default" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "dir" | "color" | "content" | "height" | "translate" | "width" | "key" | "name" | "property" | "type" | "disabled" | "placeholder" | "defaultValue" | "onChange" | "media" | "children" | "value" | "pattern" | "list" | "open" | "accessKey" | "className" | "role" | "id" | "start" | "action" | "step" | "wrap" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export default _default;
|
package/docs/4-annotations.tsx
CHANGED
|
@@ -284,7 +284,7 @@ The full page examples in the storybook use the \`ExampleViewInlineCommentCompon
|
|
|
284
284
|
|
|
285
285
|
${code`
|
|
286
286
|
import { Editor } from '@atlaskit/editor-core';
|
|
287
|
-
import { ExampleViewInlineCommentComponent } from '@atlaskit/editor-
|
|
287
|
+
import { ExampleViewInlineCommentComponent } from '@atlaskit/editor-test-helpers/example-helpers';
|
|
288
288
|
|
|
289
289
|
class MyEditor extends React.Component {
|
|
290
290
|
render() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "193.1.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
"atlassian": {
|
|
26
26
|
"team": "Editor",
|
|
27
27
|
"singleton": true,
|
|
28
|
-
"deprecatedAutoEntryPoints": true,
|
|
29
28
|
"inPublicMirror": true,
|
|
30
29
|
"releaseModel": "continuous",
|
|
31
30
|
"website": {
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
46
45
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
47
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
48
|
-
"@atlaskit/button": "^17.
|
|
47
|
+
"@atlaskit/button": "^17.7.0",
|
|
49
48
|
"@atlaskit/editor-common": "^78.11.0",
|
|
50
49
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
51
50
|
"@atlaskit/editor-plugins": "^1.5.0",
|
|
@@ -76,7 +75,7 @@
|
|
|
76
75
|
"uuid": "^3.1.0"
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
79
|
-
"@atlaskit/link-provider": "^1.
|
|
78
|
+
"@atlaskit/link-provider": "^1.8.0",
|
|
80
79
|
"@atlaskit/media-core": "^34.2.0",
|
|
81
80
|
"react": "^16.8.0",
|
|
82
81
|
"react-dom": "^16.8.0",
|
|
@@ -88,16 +87,16 @@
|
|
|
88
87
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
89
88
|
"@atlaskit/analytics-listeners": "^8.9.1",
|
|
90
89
|
"@atlaskit/checkbox": "^13.0.0",
|
|
91
|
-
"@atlaskit/collab-provider": "9.25.
|
|
90
|
+
"@atlaskit/collab-provider": "9.25.7",
|
|
92
91
|
"@atlaskit/dropdown-menu": "^12.7.0",
|
|
93
|
-
"@atlaskit/editor-plugin-annotation": "1.2.
|
|
92
|
+
"@atlaskit/editor-plugin-annotation": "1.2.2",
|
|
94
93
|
"@atlaskit/editor-plugin-card": "^1.1.0",
|
|
95
94
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
|
|
96
95
|
"@atlaskit/editor-plugin-list": "^3.1.5",
|
|
97
96
|
"@atlaskit/editor-plugin-paste": "^1.0.0",
|
|
98
97
|
"@atlaskit/editor-test-helpers": "*",
|
|
99
98
|
"@atlaskit/flag": "^15.2.0",
|
|
100
|
-
"@atlaskit/link-provider": "^1.
|
|
99
|
+
"@atlaskit/link-provider": "^1.8.0",
|
|
101
100
|
"@atlaskit/link-test-helpers": "^6.2.0",
|
|
102
101
|
"@atlaskit/logo": "^13.15.0",
|
|
103
102
|
"@atlaskit/media-core": "^34.2.0",
|
|
@@ -107,7 +106,7 @@
|
|
|
107
106
|
"@atlaskit/primitives": "^4.0.0",
|
|
108
107
|
"@atlaskit/renderer": "^109.7.0",
|
|
109
108
|
"@atlaskit/select": "^17.2.0",
|
|
110
|
-
"@atlaskit/smart-card": "^26.
|
|
109
|
+
"@atlaskit/smart-card": "^26.49.0",
|
|
111
110
|
"@atlaskit/synchrony-test-helpers": "^2.3.0",
|
|
112
111
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
113
112
|
"@atlaskit/visual-regression": "*",
|
|
@@ -244,11 +243,29 @@
|
|
|
244
243
|
"platform.editor.inline_extension.extended_lcqdn": {
|
|
245
244
|
"type": "boolean",
|
|
246
245
|
"referenceOnly": "true"
|
|
246
|
+
},
|
|
247
|
+
"platform.editor.allow-inline-comments-for-inline-nodes": {
|
|
248
|
+
"type": "boolean",
|
|
249
|
+
"referenceOnly": "true"
|
|
247
250
|
}
|
|
248
251
|
},
|
|
249
252
|
"stricter": {
|
|
250
253
|
"no-unused-dependencies": {
|
|
251
254
|
"checkDevDependencies": true
|
|
252
255
|
}
|
|
256
|
+
},
|
|
257
|
+
"af:exports": {
|
|
258
|
+
".": "./src/index.ts",
|
|
259
|
+
"./composable-editor": "./src/composable-editor.ts",
|
|
260
|
+
"./editor-context": "./src/editor-context.ts",
|
|
261
|
+
"./editor": "./src/editor.tsx",
|
|
262
|
+
"./element-browser": "./src/element-browser.ts",
|
|
263
|
+
"./labs-next": "./src/labs-next.ts",
|
|
264
|
+
"./messages": "./src/messages.ts",
|
|
265
|
+
"./preset-default": "./src/preset-default.ts",
|
|
266
|
+
"./preset-universal": "./src/preset-universal.ts",
|
|
267
|
+
"./test-utils": "./src/test-utils.ts",
|
|
268
|
+
"./use-preset": "./src/use-preset.ts",
|
|
269
|
+
"./version-wrapper": "./src/version-wrapper.ts"
|
|
253
270
|
}
|
|
254
271
|
}
|
package/docs/editor-use-only.tsx
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import SectionMessage from '@atlaskit/section-message';
|
|
4
|
-
|
|
5
|
-
function AlternativePackagesMessage({
|
|
6
|
-
alternatePackages,
|
|
7
|
-
}: React.PropsWithoutRef<{
|
|
8
|
-
alternatePackages?: { name: string; link: string }[];
|
|
9
|
-
}>) {
|
|
10
|
-
if (!alternatePackages) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
if (alternatePackages.length === 1) {
|
|
14
|
-
return (
|
|
15
|
-
<p>
|
|
16
|
-
Consider using{' '}
|
|
17
|
-
<a href={alternatePackages[0].link}>{alternatePackages[0].name}</a>{' '}
|
|
18
|
-
instead.
|
|
19
|
-
</p>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
return (
|
|
23
|
-
<p>
|
|
24
|
-
Consider using one of these packages instead:
|
|
25
|
-
<ul>
|
|
26
|
-
{alternatePackages.map((p) => (
|
|
27
|
-
<li>
|
|
28
|
-
<a href={p.link}>{p.name}</a>
|
|
29
|
-
</li>
|
|
30
|
-
))}
|
|
31
|
-
</ul>
|
|
32
|
-
</p>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function createEditorUseOnlyNotice(
|
|
37
|
-
componentName: string,
|
|
38
|
-
alternatePackages?: { name: string; link: string }[],
|
|
39
|
-
) {
|
|
40
|
-
return (
|
|
41
|
-
<SectionMessage title="Internal Editor Use Only" appearance="error">
|
|
42
|
-
<p>
|
|
43
|
-
{componentName} is intended for internal use by the Editor Platform as a
|
|
44
|
-
plugin dependency of the Editor within your product.
|
|
45
|
-
</p>
|
|
46
|
-
<p>Direct use of this component is not supported.</p>
|
|
47
|
-
<AlternativePackagesMessage alternatePackages={alternatePackages} />
|
|
48
|
-
</SectionMessage>
|
|
49
|
-
);
|
|
50
|
-
}
|