@atlaskit/editor-core 198.6.9 → 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 +17 -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 -6
|
@@ -773,6 +773,12 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
773
773
|
mark: import("prosemirror-model").Mark;
|
|
774
774
|
}) => boolean;
|
|
775
775
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
776
|
+
getCurrentCollabState: () => {
|
|
777
|
+
version: number | undefined;
|
|
778
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
779
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
780
|
+
};
|
|
781
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
776
782
|
};
|
|
777
783
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
778
784
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -2296,6 +2302,12 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2296
2302
|
mark: import("prosemirror-model").Mark;
|
|
2297
2303
|
}) => boolean;
|
|
2298
2304
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2305
|
+
getCurrentCollabState: () => {
|
|
2306
|
+
version: number | undefined;
|
|
2307
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2308
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2309
|
+
};
|
|
2310
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2299
2311
|
};
|
|
2300
2312
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2301
2313
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -2446,6 +2458,12 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
|
|
|
2446
2458
|
mark: import("prosemirror-model").Mark;
|
|
2447
2459
|
}) => boolean;
|
|
2448
2460
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2461
|
+
getCurrentCollabState: () => {
|
|
2462
|
+
version: number | undefined;
|
|
2463
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2464
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2465
|
+
};
|
|
2466
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2449
2467
|
};
|
|
2450
2468
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2451
2469
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -3296,6 +3314,12 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
3296
3314
|
mark: import("prosemirror-model").Mark;
|
|
3297
3315
|
}) => boolean;
|
|
3298
3316
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3317
|
+
getCurrentCollabState: () => {
|
|
3318
|
+
version: number | undefined;
|
|
3319
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
3320
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
3321
|
+
};
|
|
3322
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3299
3323
|
};
|
|
3300
3324
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3301
3325
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -4819,6 +4843,12 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4819
4843
|
mark: import("prosemirror-model").Mark;
|
|
4820
4844
|
}) => boolean;
|
|
4821
4845
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4846
|
+
getCurrentCollabState: () => {
|
|
4847
|
+
version: number | undefined;
|
|
4848
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
4849
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4850
|
+
};
|
|
4851
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4822
4852
|
};
|
|
4823
4853
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4824
4854
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -4969,6 +4999,12 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
|
|
|
4969
4999
|
mark: import("prosemirror-model").Mark;
|
|
4970
5000
|
}) => boolean;
|
|
4971
5001
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5002
|
+
getCurrentCollabState: () => {
|
|
5003
|
+
version: number | undefined;
|
|
5004
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
5005
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
5006
|
+
};
|
|
5007
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4972
5008
|
};
|
|
4973
5009
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4974
5010
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -853,6 +853,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
853
853
|
mark: import("prosemirror-model").Mark;
|
|
854
854
|
}) => boolean;
|
|
855
855
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
856
|
+
getCurrentCollabState: () => {
|
|
857
|
+
version: number | undefined;
|
|
858
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
859
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
860
|
+
};
|
|
861
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
856
862
|
};
|
|
857
863
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
858
864
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -1003,6 +1009,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1003
1009
|
mark: import("prosemirror-model").Mark;
|
|
1004
1010
|
}) => boolean;
|
|
1005
1011
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1012
|
+
getCurrentCollabState: () => {
|
|
1013
|
+
version: number | undefined;
|
|
1014
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
1015
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1016
|
+
};
|
|
1017
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1006
1018
|
};
|
|
1007
1019
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1008
1020
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -1208,6 +1220,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1208
1220
|
mark: import("prosemirror-model").Mark;
|
|
1209
1221
|
}) => boolean;
|
|
1210
1222
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1223
|
+
getCurrentCollabState: () => {
|
|
1224
|
+
version: number | undefined;
|
|
1225
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
1226
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1227
|
+
};
|
|
1228
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1211
1229
|
};
|
|
1212
1230
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
1213
1231
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -1972,6 +1990,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1972
1990
|
mark: import("prosemirror-model").Mark;
|
|
1973
1991
|
}) => boolean;
|
|
1974
1992
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1993
|
+
getCurrentCollabState: () => {
|
|
1994
|
+
version: number | undefined;
|
|
1995
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
1996
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1997
|
+
};
|
|
1998
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1975
1999
|
};
|
|
1976
2000
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1977
2001
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -2195,6 +2219,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2195
2219
|
mark: import("prosemirror-model").Mark;
|
|
2196
2220
|
}) => boolean;
|
|
2197
2221
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2222
|
+
getCurrentCollabState: () => {
|
|
2223
|
+
version: number | undefined;
|
|
2224
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
2225
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2226
|
+
};
|
|
2227
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2198
2228
|
};
|
|
2199
2229
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2200
2230
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
@@ -2597,6 +2627,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
2597
2627
|
mark: import("prosemirror-model").Mark;
|
|
2598
2628
|
}) => boolean;
|
|
2599
2629
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2630
|
+
getCurrentCollabState: () => {
|
|
2631
|
+
version: number | undefined;
|
|
2632
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
2633
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2634
|
+
};
|
|
2635
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2600
2636
|
};
|
|
2601
2637
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2602
2638
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -3484,6 +3520,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3484
3520
|
mark: import("prosemirror-model").Mark;
|
|
3485
3521
|
}) => boolean;
|
|
3486
3522
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3523
|
+
getCurrentCollabState: () => {
|
|
3524
|
+
version: number | undefined;
|
|
3525
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
3526
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
3527
|
+
};
|
|
3528
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3487
3529
|
};
|
|
3488
3530
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3489
3531
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -3934,6 +3976,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
3934
3976
|
mark: import("prosemirror-model").Mark;
|
|
3935
3977
|
}) => boolean;
|
|
3936
3978
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3979
|
+
getCurrentCollabState: () => {
|
|
3980
|
+
version: number | undefined;
|
|
3981
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
3982
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
3983
|
+
};
|
|
3984
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3937
3985
|
};
|
|
3938
3986
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3939
3987
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -4033,6 +4081,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
4033
4081
|
mark: import("prosemirror-model").Mark;
|
|
4034
4082
|
}) => boolean;
|
|
4035
4083
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4084
|
+
getCurrentCollabState: () => {
|
|
4085
|
+
version: number | undefined;
|
|
4086
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
4087
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4088
|
+
};
|
|
4089
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4036
4090
|
};
|
|
4037
4091
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4038
4092
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -5026,6 +5080,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
5026
5080
|
mark: import("prosemirror-model").Mark;
|
|
5027
5081
|
}) => boolean;
|
|
5028
5082
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5083
|
+
getCurrentCollabState: () => {
|
|
5084
|
+
version: number | undefined;
|
|
5085
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
5086
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
5087
|
+
};
|
|
5088
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
5029
5089
|
};
|
|
5030
5090
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
5031
5091
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -6549,6 +6609,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
6549
6609
|
mark: import("prosemirror-model").Mark;
|
|
6550
6610
|
}) => boolean;
|
|
6551
6611
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6612
|
+
getCurrentCollabState: () => {
|
|
6613
|
+
version: number | undefined;
|
|
6614
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
6615
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
6616
|
+
};
|
|
6617
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
6552
6618
|
};
|
|
6553
6619
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
6554
6620
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -6699,6 +6765,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
6699
6765
|
mark: import("prosemirror-model").Mark;
|
|
6700
6766
|
}) => boolean;
|
|
6701
6767
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6768
|
+
getCurrentCollabState: () => {
|
|
6769
|
+
version: number | undefined;
|
|
6770
|
+
sendableSteps: import("@atlaskit/editor-plugins/collab-edit").CollabSendableSteps | null | undefined;
|
|
6771
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
6772
|
+
};
|
|
6773
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
6702
6774
|
};
|
|
6703
6775
|
}, import("@atlaskit/editor-plugins/collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
6704
6776
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -802,6 +802,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
802
802
|
mark: import("prosemirror-model").Mark;
|
|
803
803
|
}) => boolean;
|
|
804
804
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
805
|
+
getCurrentCollabState: () => {
|
|
806
|
+
version: number | undefined;
|
|
807
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
808
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
809
|
+
};
|
|
810
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
805
811
|
};
|
|
806
812
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
807
813
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -952,6 +958,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
952
958
|
mark: import("prosemirror-model").Mark;
|
|
953
959
|
}) => boolean;
|
|
954
960
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
961
|
+
getCurrentCollabState: () => {
|
|
962
|
+
version: number | undefined;
|
|
963
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
964
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
965
|
+
};
|
|
966
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
955
967
|
};
|
|
956
968
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
957
969
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -1157,6 +1169,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1157
1169
|
mark: import("prosemirror-model").Mark;
|
|
1158
1170
|
}) => boolean;
|
|
1159
1171
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1172
|
+
getCurrentCollabState: () => {
|
|
1173
|
+
version: number | undefined;
|
|
1174
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
1175
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1176
|
+
};
|
|
1177
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1160
1178
|
};
|
|
1161
1179
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
|
|
1162
1180
|
sharedState: import("@atlaskit/editor-plugin-primary-toolbar").PrimaryToolbarPluginState | undefined;
|
|
@@ -1921,6 +1939,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1921
1939
|
mark: import("prosemirror-model").Mark;
|
|
1922
1940
|
}) => boolean;
|
|
1923
1941
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1942
|
+
getCurrentCollabState: () => {
|
|
1943
|
+
version: number | undefined;
|
|
1944
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
1945
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
1946
|
+
};
|
|
1947
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
1924
1948
|
};
|
|
1925
1949
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1926
1950
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -2144,6 +2168,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2144
2168
|
mark: import("prosemirror-model").Mark;
|
|
2145
2169
|
}) => boolean;
|
|
2146
2170
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2171
|
+
getCurrentCollabState: () => {
|
|
2172
|
+
version: number | undefined;
|
|
2173
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2174
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2175
|
+
};
|
|
2176
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2147
2177
|
};
|
|
2148
2178
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
2149
2179
|
pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
|
|
@@ -2546,6 +2576,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2546
2576
|
mark: import("prosemirror-model").Mark;
|
|
2547
2577
|
}) => boolean;
|
|
2548
2578
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2579
|
+
getCurrentCollabState: () => {
|
|
2580
|
+
version: number | undefined;
|
|
2581
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
2582
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
2583
|
+
};
|
|
2584
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
2549
2585
|
};
|
|
2550
2586
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2551
2587
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -3433,6 +3469,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3433
3469
|
mark: import("prosemirror-model").Mark;
|
|
3434
3470
|
}) => boolean;
|
|
3435
3471
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3472
|
+
getCurrentCollabState: () => {
|
|
3473
|
+
version: number | undefined;
|
|
3474
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
3475
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
3476
|
+
};
|
|
3477
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3436
3478
|
};
|
|
3437
3479
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3438
3480
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -3883,6 +3925,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3883
3925
|
mark: import("prosemirror-model").Mark;
|
|
3884
3926
|
}) => boolean;
|
|
3885
3927
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3928
|
+
getCurrentCollabState: () => {
|
|
3929
|
+
version: number | undefined;
|
|
3930
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
3931
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
3932
|
+
};
|
|
3933
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3886
3934
|
};
|
|
3887
3935
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3888
3936
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -3982,6 +4030,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3982
4030
|
mark: import("prosemirror-model").Mark;
|
|
3983
4031
|
}) => boolean;
|
|
3984
4032
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4033
|
+
getCurrentCollabState: () => {
|
|
4034
|
+
version: number | undefined;
|
|
4035
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
4036
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
4037
|
+
};
|
|
4038
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
3985
4039
|
};
|
|
3986
4040
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3987
4041
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -4975,6 +5029,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4975
5029
|
mark: import("prosemirror-model").Mark;
|
|
4976
5030
|
}) => boolean;
|
|
4977
5031
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5032
|
+
getCurrentCollabState: () => {
|
|
5033
|
+
version: number | undefined;
|
|
5034
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
5035
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
5036
|
+
};
|
|
5037
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
4978
5038
|
};
|
|
4979
5039
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4980
5040
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -6498,6 +6558,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
6498
6558
|
mark: import("prosemirror-model").Mark;
|
|
6499
6559
|
}) => boolean;
|
|
6500
6560
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6561
|
+
getCurrentCollabState: () => {
|
|
6562
|
+
version: number | undefined;
|
|
6563
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
6564
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
6565
|
+
};
|
|
6566
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
6501
6567
|
};
|
|
6502
6568
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
6503
6569
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -6648,6 +6714,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
6648
6714
|
mark: import("prosemirror-model").Mark;
|
|
6649
6715
|
}) => boolean;
|
|
6650
6716
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6717
|
+
getCurrentCollabState: () => {
|
|
6718
|
+
version: number | undefined;
|
|
6719
|
+
sendableSteps: import("@atlaskit/editor-plugin-collab-edit").CollabSendableSteps | null | undefined;
|
|
6720
|
+
content: import("@atlaskit/editor-json-transformer").JSONNode | undefined;
|
|
6721
|
+
};
|
|
6722
|
+
validatePMJSONDocument: (doc: any) => boolean;
|
|
6651
6723
|
};
|
|
6652
6724
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
6653
6725
|
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -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;
|
|
@@ -18,7 +18,6 @@ import { EventDispatcher } from '../event-dispatcher';
|
|
|
18
18
|
import type { Dispatch } from '../event-dispatcher';
|
|
19
19
|
import type { EditorAppearance, EditorConfig, EditorPlugin, EditorProps } from '../types';
|
|
20
20
|
import type { EditorNextProps } from '../types/editor-props';
|
|
21
|
-
import { TransactionTracker } from '../utils/performance/track-transactions';
|
|
22
21
|
export interface EditorViewProps {
|
|
23
22
|
editorProps: (EditorProps | EditorNextProps) & {
|
|
24
23
|
preset?: EditorNextProps['preset'];
|
|
@@ -69,7 +68,6 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
69
68
|
errorReporter: ErrorReporter;
|
|
70
69
|
dispatch: Dispatch;
|
|
71
70
|
proseMirrorRenderedSeverity?: SEVERITY;
|
|
72
|
-
transactionTracker: TransactionTracker;
|
|
73
71
|
experienceStore?: ExperienceStore;
|
|
74
72
|
editorRef: React.RefObject<HTMLDivElement>;
|
|
75
73
|
private canDispatchTransactions;
|
|
@@ -79,10 +77,11 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
79
77
|
private featureFlags;
|
|
80
78
|
private pluginInjectionAPI;
|
|
81
79
|
private onPluginObservation;
|
|
82
|
-
get transactionTracking():
|
|
80
|
+
get transactionTracking(): {
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
};
|
|
83
83
|
private getPluginNames;
|
|
84
84
|
private countNodes;
|
|
85
|
-
private isTransactionTrackingExplicitlyDisabled;
|
|
86
85
|
constructor(props: EditorViewProps & WrappedComponentProps & T);
|
|
87
86
|
getEditorState: () => EditorState | undefined;
|
|
88
87
|
getEditorView: () => EditorView | undefined;
|
|
@@ -1047,6 +1047,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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 declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
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", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | '
|
|
3
|
+
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'quickInsert' | 'performanceTracking' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type CommentEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | '
|
|
3
|
+
export type CommentEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'quickInsert' | 'performanceTracking' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "comment".
|
|
6
6
|
*
|