@atlaskit/editor-core 198.6.10 → 198.6.11
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/composable-editor/core-editor.js +2 -5
- package/dist/cjs/composable-editor/editor-internal.js +3 -10
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +2 -2
- package/dist/cjs/composable-editor/hooks/useMemoEditorProps.js +3 -3
- package/dist/cjs/create-editor/ReactEditorView.js +59 -110
- package/dist/cjs/create-editor/create-plugins-list.js +1 -4
- package/dist/cjs/create-editor/feature-flags-from-props.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +2 -5
- package/dist/es2019/composable-editor/editor-internal.js +3 -10
- package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +2 -2
- package/dist/es2019/composable-editor/hooks/useMemoEditorProps.js +3 -3
- package/dist/es2019/create-editor/ReactEditorView.js +51 -100
- package/dist/es2019/create-editor/create-plugins-list.js +1 -4
- package/dist/es2019/create-editor/feature-flags-from-props.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +2 -5
- package/dist/esm/composable-editor/editor-internal.js +3 -10
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +2 -2
- package/dist/esm/composable-editor/hooks/useMemoEditorProps.js +3 -3
- package/dist/esm/create-editor/ReactEditorView.js +50 -101
- package/dist/esm/create-editor/create-plugins-list.js +1 -4
- package/dist/esm/create-editor/feature-flags-from-props.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +3 -4
- package/dist/types/create-editor/create-universal-preset.d.ts +72 -0
- package/dist/types/editor-appearances/ChromelessEditor.d.ts +1 -1
- package/dist/types/editor-appearances/CommentEditor.d.ts +1 -1
- package/dist/types/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types/editor-appearances/FullWidthEditor.d.ts +1 -1
- package/dist/types/presets/default.d.ts +36 -0
- package/dist/types/presets/universal.d.ts +72 -0
- package/dist/types/presets/useUniversalPreset.d.ts +72 -0
- package/dist/types/types/editor-props.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +3 -4
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +72 -0
- package/dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts +1 -1
- package/dist/types-ts4.5/editor-appearances/CommentEditor.d.ts +1 -1
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types-ts4.5/editor-appearances/FullWidthEditor.d.ts +1 -1
- package/dist/types-ts4.5/presets/default.d.ts +36 -0
- package/dist/types-ts4.5/presets/universal.d.ts +72 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +72 -0
- package/dist/types-ts4.5/types/editor-props.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | '
|
|
3
|
+
export type FullPageEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
4
|
onChange?: () => void;
|
|
5
5
|
onEditorReady?: () => void;
|
|
6
6
|
appearance: 'full-page' | 'full-width';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type FullWidthEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | '
|
|
3
|
+
export type FullWidthEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'disabled' | 'mentionProvider' | 'performanceTracking' | 'contextIdentifierProvider' | 'searchProvider' | 'annotationProviders' | 'collabEditProvider' | 'collabEdit' | 'taskDecisionProvider' | 'extensionProviders' | 'shouldFocus' | 'quickInsert' | 'secondaryToolbarComponents' | 'featureFlags' | 'primaryToolbarComponents' | 'contextPanel' | 'contentComponents' | 'primaryToolbarIconBefore' | 'sanitizePrivateContent'> & {
|
|
4
4
|
onChange?: () => void;
|
|
5
5
|
onEditorReady?: () => void;
|
|
6
6
|
};
|
|
@@ -954,6 +954,12 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
954
954
|
mark: import("prosemirror-model").Mark;
|
|
955
955
|
}) => boolean;
|
|
956
956
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
957
|
+
getCurrentCollabState: () => {
|
|
958
|
+
version: number | undefined;
|
|
959
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
960
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
961
|
+
};
|
|
962
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
957
963
|
};
|
|
958
964
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
959
965
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -2786,6 +2792,12 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2786
2792
|
mark: import("prosemirror-model").Mark;
|
|
2787
2793
|
}) => boolean;
|
|
2788
2794
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2795
|
+
getCurrentCollabState: () => {
|
|
2796
|
+
version: number | undefined;
|
|
2797
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2798
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2799
|
+
};
|
|
2800
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2789
2801
|
};
|
|
2790
2802
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
2791
2803
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -2966,6 +2978,12 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2966
2978
|
mark: import("prosemirror-model").Mark;
|
|
2967
2979
|
}) => boolean;
|
|
2968
2980
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2981
|
+
getCurrentCollabState: () => {
|
|
2982
|
+
version: number | undefined;
|
|
2983
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2984
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2985
|
+
};
|
|
2986
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2969
2987
|
};
|
|
2970
2988
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
2971
2989
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -4021,6 +4039,12 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4021
4039
|
mark: import("prosemirror-model").Mark;
|
|
4022
4040
|
}) => boolean;
|
|
4023
4041
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4042
|
+
getCurrentCollabState: () => {
|
|
4043
|
+
version: number | undefined;
|
|
4044
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
4045
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4046
|
+
};
|
|
4047
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4024
4048
|
};
|
|
4025
4049
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
4026
4050
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -5853,6 +5877,12 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
5853
5877
|
mark: import("prosemirror-model").Mark;
|
|
5854
5878
|
}) => boolean;
|
|
5855
5879
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5880
|
+
getCurrentCollabState: () => {
|
|
5881
|
+
version: number | undefined;
|
|
5882
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
5883
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
5884
|
+
};
|
|
5885
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
5856
5886
|
};
|
|
5857
5887
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
5858
5888
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -6033,6 +6063,12 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
6033
6063
|
mark: import("prosemirror-model").Mark;
|
|
6034
6064
|
}) => boolean;
|
|
6035
6065
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6066
|
+
getCurrentCollabState: () => {
|
|
6067
|
+
version: number | undefined;
|
|
6068
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
6069
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
6070
|
+
};
|
|
6071
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
6036
6072
|
};
|
|
6037
6073
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
6038
6074
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1098,6 +1098,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1098
1098
|
mark: import("prosemirror-model").Mark;
|
|
1099
1099
|
}) => boolean;
|
|
1100
1100
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1101
|
+
getCurrentCollabState: () => {
|
|
1102
|
+
version: number | undefined;
|
|
1103
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
1104
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1105
|
+
};
|
|
1106
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1101
1107
|
};
|
|
1102
1108
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
1103
1109
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1278,6 +1284,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1278
1284
|
mark: import("prosemirror-model").Mark;
|
|
1279
1285
|
}) => boolean;
|
|
1280
1286
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1287
|
+
getCurrentCollabState: () => {
|
|
1288
|
+
version: number | undefined;
|
|
1289
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
1290
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1291
|
+
};
|
|
1292
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1281
1293
|
};
|
|
1282
1294
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
1283
1295
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1523,6 +1535,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1523
1535
|
mark: import("prosemirror-model").Mark;
|
|
1524
1536
|
}) => boolean;
|
|
1525
1537
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1538
|
+
getCurrentCollabState: () => {
|
|
1539
|
+
version: number | undefined;
|
|
1540
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
1541
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1542
|
+
};
|
|
1543
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1526
1544
|
};
|
|
1527
1545
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>>,
|
|
1528
1546
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -2440,6 +2458,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2440
2458
|
mark: import("prosemirror-model").Mark;
|
|
2441
2459
|
}) => boolean;
|
|
2442
2460
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2461
|
+
getCurrentCollabState: () => {
|
|
2462
|
+
version: number | undefined;
|
|
2463
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
2464
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2465
|
+
};
|
|
2466
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2443
2467
|
};
|
|
2444
2468
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
2445
2469
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -2705,6 +2729,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2705
2729
|
mark: import("prosemirror-model").Mark;
|
|
2706
2730
|
}) => boolean;
|
|
2707
2731
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2732
|
+
getCurrentCollabState: () => {
|
|
2733
|
+
version: number | undefined;
|
|
2734
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
2735
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2736
|
+
};
|
|
2737
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2708
2738
|
};
|
|
2709
2739
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined,
|
|
2710
2740
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
@@ -3190,6 +3220,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3190
3220
|
mark: import("prosemirror-model").Mark;
|
|
3191
3221
|
}) => boolean;
|
|
3192
3222
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3223
|
+
getCurrentCollabState: () => {
|
|
3224
|
+
version: number | undefined;
|
|
3225
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
3226
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
3227
|
+
};
|
|
3228
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3193
3229
|
};
|
|
3194
3230
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
3195
3231
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -4256,6 +4292,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4256
4292
|
mark: import("prosemirror-model").Mark;
|
|
4257
4293
|
}) => boolean;
|
|
4258
4294
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4295
|
+
getCurrentCollabState: () => {
|
|
4296
|
+
version: number | undefined;
|
|
4297
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
4298
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4299
|
+
};
|
|
4300
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4259
4301
|
};
|
|
4260
4302
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
4261
4303
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -4798,6 +4840,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4798
4840
|
mark: import("prosemirror-model").Mark;
|
|
4799
4841
|
}) => boolean;
|
|
4800
4842
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4843
|
+
getCurrentCollabState: () => {
|
|
4844
|
+
version: number | undefined;
|
|
4845
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
4846
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4847
|
+
};
|
|
4848
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4801
4849
|
};
|
|
4802
4850
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
4803
4851
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -4917,6 +4965,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4917
4965
|
mark: import("prosemirror-model").Mark;
|
|
4918
4966
|
}) => boolean;
|
|
4919
4967
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4968
|
+
getCurrentCollabState: () => {
|
|
4969
|
+
version: number | undefined;
|
|
4970
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
4971
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4972
|
+
};
|
|
4973
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4920
4974
|
};
|
|
4921
4975
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
4922
4976
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -6125,6 +6179,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
6125
6179
|
mark: import("prosemirror-model").Mark;
|
|
6126
6180
|
}) => boolean;
|
|
6127
6181
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6182
|
+
getCurrentCollabState: () => {
|
|
6183
|
+
version: number | undefined;
|
|
6184
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
6185
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
6186
|
+
};
|
|
6187
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
6128
6188
|
};
|
|
6129
6189
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
6130
6190
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -7957,6 +8017,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
7957
8017
|
mark: import("prosemirror-model").Mark;
|
|
7958
8018
|
}) => boolean;
|
|
7959
8019
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
8020
|
+
getCurrentCollabState: () => {
|
|
8021
|
+
version: number | undefined;
|
|
8022
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
8023
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
8024
|
+
};
|
|
8025
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
7960
8026
|
};
|
|
7961
8027
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
7962
8028
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -8137,6 +8203,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
8137
8203
|
mark: import("prosemirror-model").Mark;
|
|
8138
8204
|
}) => boolean;
|
|
8139
8205
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
8206
|
+
getCurrentCollabState: () => {
|
|
8207
|
+
version: number | undefined;
|
|
8208
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
8209
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
8210
|
+
};
|
|
8211
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
8140
8212
|
};
|
|
8141
8213
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>,
|
|
8142
8214
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1047,6 +1047,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1047
1047
|
mark: import("prosemirror-model").Mark;
|
|
1048
1048
|
}) => boolean;
|
|
1049
1049
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1050
|
+
getCurrentCollabState: () => {
|
|
1051
|
+
version: number | undefined;
|
|
1052
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
1053
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1054
|
+
};
|
|
1055
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1050
1056
|
};
|
|
1051
1057
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
1052
1058
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1227,6 +1233,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1227
1233
|
mark: import("prosemirror-model").Mark;
|
|
1228
1234
|
}) => boolean;
|
|
1229
1235
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1236
|
+
getCurrentCollabState: () => {
|
|
1237
|
+
version: number | undefined;
|
|
1238
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
1239
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1240
|
+
};
|
|
1241
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1230
1242
|
};
|
|
1231
1243
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
1232
1244
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1472,6 +1484,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1472
1484
|
mark: import("prosemirror-model").Mark;
|
|
1473
1485
|
}) => boolean;
|
|
1474
1486
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1487
|
+
getCurrentCollabState: () => {
|
|
1488
|
+
version: number | undefined;
|
|
1489
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
1490
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1491
|
+
};
|
|
1492
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1475
1493
|
};
|
|
1476
1494
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>,
|
|
1477
1495
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
@@ -2389,6 +2407,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2389
2407
|
mark: import("prosemirror-model").Mark;
|
|
2390
2408
|
}) => boolean;
|
|
2391
2409
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2410
|
+
getCurrentCollabState: () => {
|
|
2411
|
+
version: number | undefined;
|
|
2412
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2413
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2414
|
+
};
|
|
2415
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2392
2416
|
};
|
|
2393
2417
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
2394
2418
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -2654,6 +2678,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2654
2678
|
mark: import("prosemirror-model").Mark;
|
|
2655
2679
|
}) => boolean;
|
|
2656
2680
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2681
|
+
getCurrentCollabState: () => {
|
|
2682
|
+
version: number | undefined;
|
|
2683
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2684
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2685
|
+
};
|
|
2686
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2657
2687
|
};
|
|
2658
2688
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions> | undefined,
|
|
2659
2689
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
@@ -3139,6 +3169,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3139
3169
|
mark: import("prosemirror-model").Mark;
|
|
3140
3170
|
}) => boolean;
|
|
3141
3171
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3172
|
+
getCurrentCollabState: () => {
|
|
3173
|
+
version: number | undefined;
|
|
3174
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
3175
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
3176
|
+
};
|
|
3177
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3142
3178
|
};
|
|
3143
3179
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
3144
3180
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -4205,6 +4241,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4205
4241
|
mark: import("prosemirror-model").Mark;
|
|
4206
4242
|
}) => boolean;
|
|
4207
4243
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4244
|
+
getCurrentCollabState: () => {
|
|
4245
|
+
version: number | undefined;
|
|
4246
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
4247
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4248
|
+
};
|
|
4249
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4208
4250
|
};
|
|
4209
4251
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
4210
4252
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -4747,6 +4789,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4747
4789
|
mark: import("prosemirror-model").Mark;
|
|
4748
4790
|
}) => boolean;
|
|
4749
4791
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4792
|
+
getCurrentCollabState: () => {
|
|
4793
|
+
version: number | undefined;
|
|
4794
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
4795
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4796
|
+
};
|
|
4797
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4750
4798
|
};
|
|
4751
4799
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
4752
4800
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -4866,6 +4914,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4866
4914
|
mark: import("prosemirror-model").Mark;
|
|
4867
4915
|
}) => boolean;
|
|
4868
4916
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4917
|
+
getCurrentCollabState: () => {
|
|
4918
|
+
version: number | undefined;
|
|
4919
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
4920
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4921
|
+
};
|
|
4922
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4869
4923
|
};
|
|
4870
4924
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
4871
4925
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -6074,6 +6128,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
6074
6128
|
mark: import("prosemirror-model").Mark;
|
|
6075
6129
|
}) => boolean;
|
|
6076
6130
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6131
|
+
getCurrentCollabState: () => {
|
|
6132
|
+
version: number | undefined;
|
|
6133
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
6134
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
6135
|
+
};
|
|
6136
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
6077
6137
|
};
|
|
6078
6138
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
6079
6139
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -7906,6 +7966,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
7906
7966
|
mark: import("prosemirror-model").Mark;
|
|
7907
7967
|
}) => boolean;
|
|
7908
7968
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
7969
|
+
getCurrentCollabState: () => {
|
|
7970
|
+
version: number | undefined;
|
|
7971
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
7972
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
7973
|
+
};
|
|
7974
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
7909
7975
|
};
|
|
7910
7976
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
7911
7977
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -8086,6 +8152,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
8086
8152
|
mark: import("prosemirror-model").Mark;
|
|
8087
8153
|
}) => boolean;
|
|
8088
8154
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
8155
|
+
getCurrentCollabState: () => {
|
|
8156
|
+
version: number | undefined;
|
|
8157
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
8158
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
8159
|
+
};
|
|
8160
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
8089
8161
|
};
|
|
8090
8162
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>,
|
|
8091
8163
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -72,9 +72,9 @@ interface EditorBaseProps {
|
|
|
72
72
|
onChange?: EditorOnChangeHandler;
|
|
73
73
|
onCancel?: (editorView: EditorView) => void;
|
|
74
74
|
/**
|
|
75
|
+
* @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/utils/inputTrackingConfig.ts
|
|
75
76
|
* @description The nth keystroke after which an input time taken event is sent, 0 to disable it
|
|
76
77
|
* @default 100
|
|
77
|
-
* @deprecated Use performanceTracking.inputSampling instead https://product-fabric.atlassian.net/browse/ED-10260
|
|
78
78
|
*/
|
|
79
79
|
inputSamplingLimit?: number;
|
|
80
80
|
extensionProviders?: ExtensionProvidersProp;
|
|
@@ -134,6 +134,7 @@ interface EditorBaseProps {
|
|
|
134
134
|
export interface EditorSharedPropsWithPlugins {
|
|
135
135
|
onSave?: (editorView: EditorView) => void;
|
|
136
136
|
/**
|
|
137
|
+
* @deprecated do not use, value is hardcoded. Can be mocked for tests. Config exists here: platform/packages/editor/editor-plugin-base/src/utils/inputTrackingConfig.ts
|
|
137
138
|
* @description Control performance metric measurements and tracking
|
|
138
139
|
*/
|
|
139
140
|
performanceTracking?: PerformanceTracking;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "198.6.
|
|
3
|
+
"version": "198.6.11",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@af/visual-regression": "*",
|
|
84
84
|
"@atlaskit/adf-utils": "^19.9.0",
|
|
85
85
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
86
|
-
"@atlaskit/collab-provider": "9.43.
|
|
86
|
+
"@atlaskit/collab-provider": "9.43.2",
|
|
87
87
|
"@atlaskit/editor-plugin-annotation": "1.21.1",
|
|
88
88
|
"@atlaskit/editor-plugin-card": "^4.3.0",
|
|
89
89
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|