@atlaskit/editor-core 203.2.7 → 203.2.9
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 +17 -0
- package/dist/cjs/create-editor/ReactEditorViewNext.js +18 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorViewNext.js +18 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorViewNext.js +18 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +132 -11
- package/dist/types/presets/default.d.ts +72 -6
- package/dist/types/presets/universal.d.ts +132 -11
- package/dist/types/presets/useUniversalPreset.d.ts +132 -11
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +143 -0
- package/dist/types-ts4.5/presets/default.d.ts +78 -0
- package/dist/types-ts4.5/presets/universal.d.ts +143 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +143 -0
- package/package.json +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 203.2.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#176217](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/176217)
|
|
8
|
+
[`38f5a9c8db167`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/38f5a9c8db167) -
|
|
9
|
+
ED-25953 Fix table overflow when page changes from full page to full width
|
|
10
|
+
|
|
11
|
+
## 203.2.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#174977](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/174977)
|
|
16
|
+
[`d96316360ee1d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d96316360ee1d) -
|
|
17
|
+
Block stale transactions when the react editor view is unmounted
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 203.2.7
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -252,14 +252,6 @@ function ReactEditorView(props) {
|
|
|
252
252
|
// Initialise phase
|
|
253
253
|
// Using constructor hook so we setup and dispatch analytics before anything else
|
|
254
254
|
(0, _hooks.useConstructor)(function () {
|
|
255
|
-
// Transaction dispatching is already enabled by default prior to
|
|
256
|
-
// mounting, but we reset it here, just in case the editor view
|
|
257
|
-
// instance is ever recycled (mounted again after unmounting) with
|
|
258
|
-
// the same key.
|
|
259
|
-
// Although storing mounted state is an anti-pattern in React,
|
|
260
|
-
// we do so here so that we can intercept and abort asynchronous
|
|
261
|
-
// ProseMirror transactions when a dismount is imminent.
|
|
262
|
-
canDispatchTransactions.current = true;
|
|
263
255
|
// This needs to be before initialising editorState because
|
|
264
256
|
// we dispatch analytics events in plugin initialisation
|
|
265
257
|
eventDispatcher.on(_analytics2.analyticsEventKey, handleAnalyticsEvent);
|
|
@@ -274,6 +266,24 @@ function ReactEditorView(props) {
|
|
|
274
266
|
eventType: _analytics.EVENT_TYPE.UI
|
|
275
267
|
});
|
|
276
268
|
});
|
|
269
|
+
(0, _react.useLayoutEffect)(function () {
|
|
270
|
+
// Transaction dispatching is already enabled by default prior to
|
|
271
|
+
// mounting, but we reset it here, just in case the editor view
|
|
272
|
+
// instance is ever recycled (mounted again after unmounting) with
|
|
273
|
+
// the same key.
|
|
274
|
+
// AND since React 18 effects may run multiple times so we need to ensure
|
|
275
|
+
// this is reset so that transactions are still allowed.
|
|
276
|
+
// Although storing mounted state is an anti-pattern in React,
|
|
277
|
+
// we do so here so that we can intercept and abort asynchronous
|
|
278
|
+
// ProseMirror transactions when a dismount is imminent.
|
|
279
|
+
canDispatchTransactions.current = true;
|
|
280
|
+
return function () {
|
|
281
|
+
// We can ignore any transactions from this point onwards.
|
|
282
|
+
// This serves to avoid potential runtime exceptions which could arise
|
|
283
|
+
// from an async dispatched transaction after it's unmounted.
|
|
284
|
+
canDispatchTransactions.current = false;
|
|
285
|
+
};
|
|
286
|
+
}, []);
|
|
277
287
|
|
|
278
288
|
// Cleanup
|
|
279
289
|
(0, _react.useLayoutEffect)(function () {
|
|
@@ -227,14 +227,6 @@ function ReactEditorView(props) {
|
|
|
227
227
|
// Initialise phase
|
|
228
228
|
// Using constructor hook so we setup and dispatch analytics before anything else
|
|
229
229
|
useConstructor(() => {
|
|
230
|
-
// Transaction dispatching is already enabled by default prior to
|
|
231
|
-
// mounting, but we reset it here, just in case the editor view
|
|
232
|
-
// instance is ever recycled (mounted again after unmounting) with
|
|
233
|
-
// the same key.
|
|
234
|
-
// Although storing mounted state is an anti-pattern in React,
|
|
235
|
-
// we do so here so that we can intercept and abort asynchronous
|
|
236
|
-
// ProseMirror transactions when a dismount is imminent.
|
|
237
|
-
canDispatchTransactions.current = true;
|
|
238
230
|
// This needs to be before initialising editorState because
|
|
239
231
|
// we dispatch analytics events in plugin initialisation
|
|
240
232
|
eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
|
|
@@ -249,6 +241,24 @@ function ReactEditorView(props) {
|
|
|
249
241
|
eventType: EVENT_TYPE.UI
|
|
250
242
|
});
|
|
251
243
|
});
|
|
244
|
+
useLayoutEffect(() => {
|
|
245
|
+
// Transaction dispatching is already enabled by default prior to
|
|
246
|
+
// mounting, but we reset it here, just in case the editor view
|
|
247
|
+
// instance is ever recycled (mounted again after unmounting) with
|
|
248
|
+
// the same key.
|
|
249
|
+
// AND since React 18 effects may run multiple times so we need to ensure
|
|
250
|
+
// this is reset so that transactions are still allowed.
|
|
251
|
+
// Although storing mounted state is an anti-pattern in React,
|
|
252
|
+
// we do so here so that we can intercept and abort asynchronous
|
|
253
|
+
// ProseMirror transactions when a dismount is imminent.
|
|
254
|
+
canDispatchTransactions.current = true;
|
|
255
|
+
return () => {
|
|
256
|
+
// We can ignore any transactions from this point onwards.
|
|
257
|
+
// This serves to avoid potential runtime exceptions which could arise
|
|
258
|
+
// from an async dispatched transaction after it's unmounted.
|
|
259
|
+
canDispatchTransactions.current = false;
|
|
260
|
+
};
|
|
261
|
+
}, []);
|
|
252
262
|
|
|
253
263
|
// Cleanup
|
|
254
264
|
useLayoutEffect(() => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "203.2.
|
|
2
|
+
export const version = "203.2.9";
|
|
@@ -242,14 +242,6 @@ function ReactEditorView(props) {
|
|
|
242
242
|
// Initialise phase
|
|
243
243
|
// Using constructor hook so we setup and dispatch analytics before anything else
|
|
244
244
|
useConstructor(function () {
|
|
245
|
-
// Transaction dispatching is already enabled by default prior to
|
|
246
|
-
// mounting, but we reset it here, just in case the editor view
|
|
247
|
-
// instance is ever recycled (mounted again after unmounting) with
|
|
248
|
-
// the same key.
|
|
249
|
-
// Although storing mounted state is an anti-pattern in React,
|
|
250
|
-
// we do so here so that we can intercept and abort asynchronous
|
|
251
|
-
// ProseMirror transactions when a dismount is imminent.
|
|
252
|
-
canDispatchTransactions.current = true;
|
|
253
245
|
// This needs to be before initialising editorState because
|
|
254
246
|
// we dispatch analytics events in plugin initialisation
|
|
255
247
|
eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
|
|
@@ -264,6 +256,24 @@ function ReactEditorView(props) {
|
|
|
264
256
|
eventType: EVENT_TYPE.UI
|
|
265
257
|
});
|
|
266
258
|
});
|
|
259
|
+
useLayoutEffect(function () {
|
|
260
|
+
// Transaction dispatching is already enabled by default prior to
|
|
261
|
+
// mounting, but we reset it here, just in case the editor view
|
|
262
|
+
// instance is ever recycled (mounted again after unmounting) with
|
|
263
|
+
// the same key.
|
|
264
|
+
// AND since React 18 effects may run multiple times so we need to ensure
|
|
265
|
+
// this is reset so that transactions are still allowed.
|
|
266
|
+
// Although storing mounted state is an anti-pattern in React,
|
|
267
|
+
// we do so here so that we can intercept and abort asynchronous
|
|
268
|
+
// ProseMirror transactions when a dismount is imminent.
|
|
269
|
+
canDispatchTransactions.current = true;
|
|
270
|
+
return function () {
|
|
271
|
+
// We can ignore any transactions from this point onwards.
|
|
272
|
+
// This serves to avoid potential runtime exceptions which could arise
|
|
273
|
+
// from an async dispatched transaction after it's unmounted.
|
|
274
|
+
canDispatchTransactions.current = false;
|
|
275
|
+
};
|
|
276
|
+
}, []);
|
|
267
277
|
|
|
268
278
|
// Cleanup
|
|
269
279
|
useLayoutEffect(function () {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "203.2.
|
|
2
|
+
export var version = "203.2.9";
|
|
@@ -877,7 +877,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
877
877
|
actions: {
|
|
878
878
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
879
879
|
};
|
|
880
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
880
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
881
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
882
|
+
dependencies: [];
|
|
883
|
+
pluginConfiguration?: {
|
|
884
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
885
|
+
} | undefined;
|
|
886
|
+
commands: {
|
|
887
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
888
|
+
};
|
|
889
|
+
}, {
|
|
890
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
891
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
881
892
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
882
893
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
883
894
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -1053,7 +1064,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1053
1064
|
actions: {
|
|
1054
1065
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1055
1066
|
};
|
|
1056
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
1067
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1068
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
1069
|
+
dependencies: [];
|
|
1070
|
+
pluginConfiguration?: {
|
|
1071
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1072
|
+
} | undefined;
|
|
1073
|
+
commands: {
|
|
1074
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1075
|
+
};
|
|
1076
|
+
}, {
|
|
1077
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1078
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1057
1079
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1058
1080
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1059
1081
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -2116,7 +2138,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2116
2138
|
actions: {
|
|
2117
2139
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2118
2140
|
};
|
|
2119
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2141
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2142
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2143
|
+
dependencies: [];
|
|
2144
|
+
pluginConfiguration?: {
|
|
2145
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
commands: {
|
|
2148
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2149
|
+
};
|
|
2150
|
+
}, {
|
|
2151
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2152
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2120
2153
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2121
2154
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2122
2155
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -2245,7 +2278,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2245
2278
|
actions: {
|
|
2246
2279
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2247
2280
|
};
|
|
2248
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2281
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2282
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2283
|
+
dependencies: [];
|
|
2284
|
+
pluginConfiguration?: {
|
|
2285
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2286
|
+
} | undefined;
|
|
2287
|
+
commands: {
|
|
2288
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2289
|
+
};
|
|
2290
|
+
}, {
|
|
2291
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2292
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2249
2293
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2250
2294
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2251
2295
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -2944,7 +2988,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
2944
2988
|
actions: {
|
|
2945
2989
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2946
2990
|
};
|
|
2947
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2991
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2992
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2993
|
+
dependencies: [];
|
|
2994
|
+
pluginConfiguration?: {
|
|
2995
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2996
|
+
} | undefined;
|
|
2997
|
+
commands: {
|
|
2998
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2999
|
+
};
|
|
3000
|
+
}, {
|
|
3001
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3002
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2948
3003
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2949
3004
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2950
3005
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -3918,7 +3973,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
3918
3973
|
actions: {
|
|
3919
3974
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3920
3975
|
};
|
|
3921
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
3976
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3977
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3978
|
+
dependencies: [];
|
|
3979
|
+
pluginConfiguration?: {
|
|
3980
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3981
|
+
} | undefined;
|
|
3982
|
+
commands: {
|
|
3983
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3984
|
+
};
|
|
3985
|
+
}, {
|
|
3986
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3987
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3922
3988
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3923
3989
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3924
3990
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -4418,7 +4484,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
4418
4484
|
actions: {
|
|
4419
4485
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4420
4486
|
};
|
|
4421
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
4487
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4488
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
4489
|
+
dependencies: [];
|
|
4490
|
+
pluginConfiguration?: {
|
|
4491
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4492
|
+
} | undefined;
|
|
4493
|
+
commands: {
|
|
4494
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4495
|
+
};
|
|
4496
|
+
}, {
|
|
4497
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4498
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4422
4499
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4423
4500
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4424
4501
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -4543,7 +4620,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
4543
4620
|
actions: {
|
|
4544
4621
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4545
4622
|
};
|
|
4546
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
4623
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4624
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
4625
|
+
dependencies: [];
|
|
4626
|
+
pluginConfiguration?: {
|
|
4627
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4628
|
+
} | undefined;
|
|
4629
|
+
commands: {
|
|
4630
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4631
|
+
};
|
|
4632
|
+
}, {
|
|
4633
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4634
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4547
4635
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4548
4636
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4549
4637
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -5720,7 +5808,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
5720
5808
|
actions: {
|
|
5721
5809
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5722
5810
|
};
|
|
5723
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
5811
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
5812
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
5813
|
+
dependencies: [];
|
|
5814
|
+
pluginConfiguration?: {
|
|
5815
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5816
|
+
} | undefined;
|
|
5817
|
+
commands: {
|
|
5818
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5819
|
+
};
|
|
5820
|
+
}, {
|
|
5821
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5822
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5724
5823
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5725
5824
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
5726
5825
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -7375,7 +7474,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
7375
7474
|
actions: {
|
|
7376
7475
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
7377
7476
|
};
|
|
7378
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
7477
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
7478
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
7479
|
+
dependencies: [];
|
|
7480
|
+
pluginConfiguration?: {
|
|
7481
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
7482
|
+
} | undefined;
|
|
7483
|
+
commands: {
|
|
7484
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
7485
|
+
};
|
|
7486
|
+
}, {
|
|
7487
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
7488
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
7379
7489
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
7380
7490
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
7381
7491
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -7551,7 +7661,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
7551
7661
|
actions: {
|
|
7552
7662
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
7553
7663
|
};
|
|
7554
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
7664
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
7665
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
7666
|
+
dependencies: [];
|
|
7667
|
+
pluginConfiguration?: {
|
|
7668
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
7669
|
+
} | undefined;
|
|
7670
|
+
commands: {
|
|
7671
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
7672
|
+
};
|
|
7673
|
+
}, {
|
|
7674
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
7675
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
7555
7676
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
7556
7677
|
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
7557
7678
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -847,7 +847,18 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
847
847
|
actions: {
|
|
848
848
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
849
849
|
};
|
|
850
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
850
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
851
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
852
|
+
dependencies: [];
|
|
853
|
+
pluginConfiguration?: {
|
|
854
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
855
|
+
} | undefined;
|
|
856
|
+
commands: {
|
|
857
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
858
|
+
};
|
|
859
|
+
}, {
|
|
860
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
861
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
851
862
|
pluginConfiguration: FeatureFlags;
|
|
852
863
|
sharedState: FeatureFlags;
|
|
853
864
|
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -2502,7 +2513,18 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2502
2513
|
actions: {
|
|
2503
2514
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2504
2515
|
};
|
|
2505
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2516
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2517
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2518
|
+
dependencies: [];
|
|
2519
|
+
pluginConfiguration?: {
|
|
2520
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2521
|
+
} | undefined;
|
|
2522
|
+
commands: {
|
|
2523
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2524
|
+
};
|
|
2525
|
+
}, {
|
|
2526
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2527
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2506
2528
|
pluginConfiguration: FeatureFlags;
|
|
2507
2529
|
sharedState: FeatureFlags;
|
|
2508
2530
|
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -2678,7 +2700,18 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2678
2700
|
actions: {
|
|
2679
2701
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2680
2702
|
};
|
|
2681
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
2703
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2704
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2705
|
+
dependencies: [];
|
|
2706
|
+
pluginConfiguration?: {
|
|
2707
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2708
|
+
} | undefined;
|
|
2709
|
+
commands: {
|
|
2710
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2711
|
+
};
|
|
2712
|
+
}, {
|
|
2713
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2714
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2682
2715
|
pluginConfiguration: FeatureFlags;
|
|
2683
2716
|
sharedState: FeatureFlags;
|
|
2684
2717
|
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -3610,7 +3643,18 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3610
3643
|
actions: {
|
|
3611
3644
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3612
3645
|
};
|
|
3613
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
3646
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3647
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3648
|
+
dependencies: [];
|
|
3649
|
+
pluginConfiguration?: {
|
|
3650
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3651
|
+
} | undefined;
|
|
3652
|
+
commands: {
|
|
3653
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3654
|
+
};
|
|
3655
|
+
}, {
|
|
3656
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3657
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3614
3658
|
pluginConfiguration: FeatureFlags;
|
|
3615
3659
|
sharedState: FeatureFlags;
|
|
3616
3660
|
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -5265,7 +5309,18 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
5265
5309
|
actions: {
|
|
5266
5310
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5267
5311
|
};
|
|
5268
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
5312
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
5313
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
5314
|
+
dependencies: [];
|
|
5315
|
+
pluginConfiguration?: {
|
|
5316
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5317
|
+
} | undefined;
|
|
5318
|
+
commands: {
|
|
5319
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5320
|
+
};
|
|
5321
|
+
}, {
|
|
5322
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5323
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5269
5324
|
pluginConfiguration: FeatureFlags;
|
|
5270
5325
|
sharedState: FeatureFlags;
|
|
5271
5326
|
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|
|
@@ -5441,7 +5496,18 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
5441
5496
|
actions: {
|
|
5442
5497
|
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5443
5498
|
};
|
|
5444
|
-
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"
|
|
5499
|
+
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
5500
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
5501
|
+
dependencies: [];
|
|
5502
|
+
pluginConfiguration?: {
|
|
5503
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5504
|
+
} | undefined;
|
|
5505
|
+
commands: {
|
|
5506
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5507
|
+
};
|
|
5508
|
+
}, {
|
|
5509
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5510
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
5445
5511
|
pluginConfiguration: FeatureFlags;
|
|
5446
5512
|
sharedState: FeatureFlags;
|
|
5447
5513
|
}, FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"engagementPlatform", {
|