@atlaskit/editor-core 193.28.5 → 193.28.6
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 +9 -0
- package/dist/cjs/test-utils.js +1 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/test-utils.js +1 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/test-utils.js +1 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types/create-editor/create-preset.d.ts +46 -46
- package/dist/types/presets/context.d.ts +2 -2
- package/dist/types/presets/default.d.ts +18 -18
- package/dist/types/presets/universal.d.ts +46 -46
- package/dist/types/presets/useUniversalPreset.d.ts +46 -46
- package/dist/types/test-utils.d.ts +2 -2
- package/dist/types/types/editor-props.d.ts +3 -3
- package/dist/types/use-preset.d.ts +5 -6
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +122 -122
- package/dist/types-ts4.5/presets/context.d.ts +2 -2
- package/dist/types-ts4.5/presets/default.d.ts +30 -30
- package/dist/types-ts4.5/presets/universal.d.ts +122 -122
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +122 -122
- package/dist/types-ts4.5/test-utils.d.ts +2 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +3 -3
- package/dist/types-ts4.5/use-preset.d.ts +5 -10
- package/package.json +6 -6
- package/tsconfig.json +1 -2
|
@@ -57,12 +57,12 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
57
57
|
"width",
|
|
58
58
|
"textFormatting",
|
|
59
59
|
"hyperlink",
|
|
60
|
-
import("@atlaskit/editor-common/
|
|
60
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"selectionToolbar">,
|
|
61
61
|
"clearMarksOnEmptyDoc",
|
|
62
62
|
"blockType",
|
|
63
|
-
import("@atlaskit/editor-common/
|
|
64
|
-
import("@atlaskit/editor-common/
|
|
65
|
-
import("@atlaskit/editor-common/
|
|
63
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
64
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"primaryToolbar">,
|
|
65
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
|
|
66
66
|
"typeAhead",
|
|
67
67
|
"decorations",
|
|
68
68
|
"base",
|
|
@@ -72,7 +72,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
72
72
|
"clipboard",
|
|
73
73
|
"paste",
|
|
74
74
|
"betterTypeHistory",
|
|
75
|
-
import("@atlaskit/editor-common/
|
|
75
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">,
|
|
76
76
|
"featureFlags"
|
|
77
77
|
], [
|
|
78
78
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
@@ -1082,7 +1082,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1082
1082
|
};
|
|
1083
1083
|
sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
|
|
1084
1084
|
}, HyperlinkPluginOptions | undefined>,
|
|
1085
|
-
import("@atlaskit/editor-common/types").
|
|
1085
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
1086
1086
|
pluginConfiguration: {
|
|
1087
1087
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
1088
1088
|
};
|
|
@@ -1103,7 +1103,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1103
1103
|
];
|
|
1104
1104
|
}, {
|
|
1105
1105
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
1106
|
-
}
|
|
1106
|
+
}> | undefined,
|
|
1107
1107
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
1108
1108
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
1109
1109
|
pluginConfiguration: BlockTypePluginOptions | undefined;
|
|
@@ -1141,7 +1141,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1141
1141
|
setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1142
1142
|
};
|
|
1143
1143
|
}, BlockTypePluginOptions | undefined>,
|
|
1144
|
-
import("@atlaskit/editor-common/types").
|
|
1144
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
|
|
1145
1145
|
dependencies: [
|
|
1146
1146
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
1147
1147
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
@@ -1203,8 +1203,8 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1203
1203
|
};
|
|
1204
1204
|
}, undefined>>
|
|
1205
1205
|
];
|
|
1206
|
-
}, undefined
|
|
1207
|
-
import("@atlaskit/editor-common/types").
|
|
1206
|
+
}, undefined> | undefined,
|
|
1207
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
1208
1208
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
1209
1209
|
commands: {
|
|
1210
1210
|
registerComponent: ({ name, component, }: {
|
|
@@ -1212,10 +1212,10 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
1212
1212
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1213
1213
|
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1214
1214
|
};
|
|
1215
|
-
}, undefined
|
|
1216
|
-
import("@atlaskit/editor-common/types").
|
|
1215
|
+
}, undefined> | undefined,
|
|
1216
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
1217
1217
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
1218
|
-
}, undefined
|
|
1218
|
+
}, undefined> | undefined,
|
|
1219
1219
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
1220
1220
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
1221
1221
|
dependencies: [
|
|
@@ -2117,7 +2117,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2117
2117
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"betterTypeHistory", {
|
|
2118
2118
|
actions: import("@atlaskit/editor-plugins/better-type-history").BetterTypeHistoryAPI;
|
|
2119
2119
|
}, undefined>,
|
|
2120
|
-
import("@atlaskit/editor-common/types").
|
|
2120
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2121
2121
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
2122
2122
|
sharedState: {
|
|
2123
2123
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
@@ -2131,7 +2131,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2131
2131
|
}, FeatureFlags>>
|
|
2132
2132
|
];
|
|
2133
2133
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2134
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
2134
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions> | undefined,
|
|
2135
2135
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2136
2136
|
pluginConfiguration: FeatureFlags;
|
|
2137
2137
|
sharedState: FeatureFlags;
|
|
@@ -2150,12 +2150,12 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2150
2150
|
"width",
|
|
2151
2151
|
"textFormatting",
|
|
2152
2152
|
"hyperlink",
|
|
2153
|
-
import("@atlaskit/editor-common/
|
|
2153
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"selectionToolbar">,
|
|
2154
2154
|
"clearMarksOnEmptyDoc",
|
|
2155
2155
|
"blockType",
|
|
2156
|
-
import("@atlaskit/editor-common/
|
|
2157
|
-
import("@atlaskit/editor-common/
|
|
2158
|
-
import("@atlaskit/editor-common/
|
|
2156
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">,
|
|
2157
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"primaryToolbar">,
|
|
2158
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"history">,
|
|
2159
2159
|
"typeAhead",
|
|
2160
2160
|
"decorations",
|
|
2161
2161
|
"base",
|
|
@@ -2165,7 +2165,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
2165
2165
|
"clipboard",
|
|
2166
2166
|
"paste",
|
|
2167
2167
|
"betterTypeHistory",
|
|
2168
|
-
import("@atlaskit/editor-common/
|
|
2168
|
+
import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">,
|
|
2169
2169
|
"featureFlags"
|
|
2170
2170
|
], [
|
|
2171
2171
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBlock", {
|
|
@@ -3175,7 +3175,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3175
3175
|
};
|
|
3176
3176
|
sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
|
|
3177
3177
|
}, HyperlinkPluginOptions | undefined>,
|
|
3178
|
-
import("@atlaskit/editor-common/types").
|
|
3178
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
3179
3179
|
pluginConfiguration: {
|
|
3180
3180
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
3181
3181
|
};
|
|
@@ -3196,7 +3196,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3196
3196
|
];
|
|
3197
3197
|
}, {
|
|
3198
3198
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
3199
|
-
}
|
|
3199
|
+
}> | undefined,
|
|
3200
3200
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
3201
3201
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
3202
3202
|
pluginConfiguration: BlockTypePluginOptions | undefined;
|
|
@@ -3234,7 +3234,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3234
3234
|
setTextLevel: (level: import("@atlaskit/editor-plugins/block-type").TextBlockTypes, inputMethod: import("@atlaskit/editor-plugins/block-type").InputMethod) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3235
3235
|
};
|
|
3236
3236
|
}, BlockTypePluginOptions | undefined>,
|
|
3237
|
-
import("@atlaskit/editor-common/types").
|
|
3237
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"undoRedoPlugin", {
|
|
3238
3238
|
dependencies: [
|
|
3239
3239
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
3240
3240
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
@@ -3296,8 +3296,8 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3296
3296
|
};
|
|
3297
3297
|
}, undefined>>
|
|
3298
3298
|
];
|
|
3299
|
-
}, undefined
|
|
3300
|
-
import("@atlaskit/editor-common/types").
|
|
3299
|
+
}, undefined> | undefined,
|
|
3300
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
3301
3301
|
sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
3302
3302
|
commands: {
|
|
3303
3303
|
registerComponent: ({ name, component, }: {
|
|
@@ -3305,10 +3305,10 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3305
3305
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
3306
3306
|
}) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3307
3307
|
};
|
|
3308
|
-
}, undefined
|
|
3309
|
-
import("@atlaskit/editor-common/types").
|
|
3308
|
+
}, undefined> | undefined,
|
|
3309
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
3310
3310
|
sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
|
|
3311
|
-
}, undefined
|
|
3311
|
+
}, undefined> | undefined,
|
|
3312
3312
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
|
|
3313
3313
|
pluginConfiguration: TypeAheadPluginOptions | undefined;
|
|
3314
3314
|
dependencies: [
|
|
@@ -4210,7 +4210,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4210
4210
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"betterTypeHistory", {
|
|
4211
4211
|
actions: import("@atlaskit/editor-plugins/better-type-history").BetterTypeHistoryAPI;
|
|
4212
4212
|
}, undefined>,
|
|
4213
|
-
import("@atlaskit/editor-common/types").
|
|
4213
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
4214
4214
|
pluginConfiguration: import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions;
|
|
4215
4215
|
sharedState: {
|
|
4216
4216
|
createAnalyticsEvent: CreateUIAnalyticsEvent | null;
|
|
@@ -4224,7 +4224,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4224
4224
|
}, FeatureFlags>>
|
|
4225
4225
|
];
|
|
4226
4226
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
4227
|
-
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions
|
|
4227
|
+
}, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions> | undefined,
|
|
4228
4228
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4229
4229
|
pluginConfiguration: FeatureFlags;
|
|
4230
4230
|
sharedState: FeatureFlags;
|