@atlaskit/editor-core 193.24.6 → 193.24.15
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/.eslintrc.js +37 -37
- package/CHANGELOG.md +8 -0
- package/architecture/0001-record-architecture-decisions.md +6 -3
- package/architecture/0002-deep-equality-check-for-getsharedstate.md +9 -8
- package/architecture/0003-explicit-plugin-dependencies.md +47 -18
- package/codemods/140.0.0-rc-kraken-fix-type-errors.ts +1 -3
- package/codemods/145.0.0-deprecate-props.ts +1 -3
- package/codemods/172.0.0-transform-smartlinks-prop.ts +1 -3
- package/codemods/175.0.0-rename-unsafe-allowUndoRedoButton-prop.ts +1 -1
- package/codemods/180.1.0-update-to-editor-migration-component.ts +1 -3
- package/codemods/__tests__/next-remove-allow-more-text-colors-prop.ts +29 -31
- package/codemods/__tests__/remove-config-panel-width-prop.ts +29 -31
- package/codemods/__tests__/rename-editor-to-editor-migration-component.ts +43 -45
- package/codemods/__tests__/rename-smartlinks-prop.ts +57 -59
- package/codemods/__tests__/rename-unsafe-allowUndoRedoButtons-prop.ts +43 -43
- package/codemods/__tests__/rename-unsafe-cards-prop.ts +43 -45
- package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +41 -45
- package/codemods/migrates/remove-config-panel-width-prop.ts +20 -29
- package/codemods/migrates/rename-editor-to-editor-migration-component.ts +20 -24
- package/codemods/migrates/rename-smartlinks-prop.ts +30 -38
- package/codemods/migrates/rename-unsafe-allowUndoRedoButtons-prop.ts +4 -5
- package/codemods/migrates/rename-unsafe-cards-prop.ts +1 -4
- package/codemods/utils.ts +62 -72
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +3 -3
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +5 -5
- package/dist/cjs/ui/ContentStyles/ai-panels.js +1 -1
- package/dist/cjs/ui/ContentStyles/code-block.js +2 -2
- package/dist/cjs/ui/ContentStyles/date.js +1 -1
- package/dist/cjs/ui/ContentStyles/expand.js +1 -1
- package/dist/cjs/ui/ContentStyles/extension.js +2 -2
- package/dist/cjs/ui/ContentStyles/index.js +6 -6
- package/dist/cjs/ui/ContentStyles/layout.js +1 -1
- package/dist/cjs/ui/ContentStyles/media.js +1 -1
- package/dist/cjs/ui/ContentStyles/panel.js +1 -1
- package/dist/cjs/ui/ContentStyles/status.js +1 -1
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +40 -40
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +5 -5
- package/dist/es2019/ui/ContentStyles/ai-panels.js +80 -80
- package/dist/es2019/ui/ContentStyles/code-block.js +58 -58
- package/dist/es2019/ui/ContentStyles/date.js +19 -19
- package/dist/es2019/ui/ContentStyles/expand.js +98 -98
- package/dist/es2019/ui/ContentStyles/extension.js +154 -159
- package/dist/es2019/ui/ContentStyles/index.js +139 -144
- package/dist/es2019/ui/ContentStyles/layout.js +125 -125
- package/dist/es2019/ui/ContentStyles/media.js +179 -178
- package/dist/es2019/ui/ContentStyles/panel.js +29 -30
- package/dist/es2019/ui/ContentStyles/status.js +30 -32
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +18 -19
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -3
- package/dist/esm/ui/AppearanceComponents/Mobile.js +5 -5
- package/dist/esm/ui/ContentStyles/ai-panels.js +1 -1
- package/dist/esm/ui/ContentStyles/code-block.js +2 -2
- package/dist/esm/ui/ContentStyles/date.js +1 -1
- package/dist/esm/ui/ContentStyles/expand.js +1 -1
- package/dist/esm/ui/ContentStyles/extension.js +2 -2
- package/dist/esm/ui/ContentStyles/index.js +6 -6
- package/dist/esm/ui/ContentStyles/layout.js +1 -1
- package/dist/esm/ui/ContentStyles/media.js +1 -1
- package/dist/esm/ui/ContentStyles/panel.js +1 -1
- package/dist/esm/ui/ContentStyles/status.js +1 -1
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor.d.ts +1 -1
- package/dist/types/composable-editor/hooks/useProviders.d.ts +1 -1
- package/dist/types/create-editor/create-preset.d.ts +135 -9
- package/dist/types/create-editor/sort-by-order.d.ts +1 -1
- package/dist/types/event-dispatcher/index.d.ts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/presets/default.d.ts +120 -8
- package/dist/types/presets/universal.d.ts +135 -9
- package/dist/types/presets/useUniversalPreset.d.ts +135 -9
- package/dist/types/test-utils.d.ts +1 -1
- package/dist/types/types/browser.d.ts +1 -1
- package/dist/types/types/editor-plugin.d.ts +1 -1
- package/dist/types/types/empty-state-handler.d.ts +1 -1
- package/dist/types/types/feature-flags.d.ts +1 -1
- package/dist/types/types/index.d.ts +3 -3
- package/dist/types/types/pm-config.d.ts +1 -1
- package/dist/types/types/ui-components.d.ts +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
- package/dist/types/ui/Toolbar/types.d.ts +1 -1
- package/dist/types/utils/action.d.ts +1 -4
- package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -1
- package/dist/types/utils/slice.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/editor.d.ts +1 -1
- package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +153 -9
- package/dist/types-ts4.5/create-editor/sort-by-order.d.ts +1 -1
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/presets/default.d.ts +136 -8
- package/dist/types-ts4.5/presets/universal.d.ts +153 -9
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +153 -9
- package/dist/types-ts4.5/test-utils.d.ts +1 -1
- package/dist/types-ts4.5/types/browser.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-plugin.d.ts +1 -1
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +1 -1
- package/dist/types-ts4.5/types/feature-flags.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +3 -3
- package/dist/types-ts4.5/types/pm-config.d.ts +1 -1
- package/dist/types-ts4.5/types/ui-components.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/performance/plugin-performance-report.d.ts +1 -1
- package/dist/types-ts4.5/utils/slice.d.ts +1 -1
- package/docs/0-intro.tsx +13 -19
- package/docs/1-legacy-editor.tsx +13 -19
- package/docs/4-annotations.tsx +222 -223
- package/package.json +25 -12
- package/report.api.md +448 -473
|
@@ -408,7 +408,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
408
408
|
};
|
|
409
409
|
}, {
|
|
410
410
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
411
|
-
} | undefined
|
|
411
|
+
} | undefined>>,
|
|
412
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
413
|
+
dependencies: [
|
|
414
|
+
];
|
|
415
|
+
sharedState: {
|
|
416
|
+
isMenuOpen: boolean;
|
|
417
|
+
activeNode: {
|
|
418
|
+
pos: number;
|
|
419
|
+
};
|
|
420
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
421
|
+
isDragging: boolean;
|
|
422
|
+
} | undefined;
|
|
423
|
+
actions: {};
|
|
424
|
+
commands: {
|
|
425
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
426
|
+
};
|
|
427
|
+
}, undefined>>
|
|
412
428
|
];
|
|
413
429
|
actions: {
|
|
414
430
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -728,7 +744,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
728
744
|
};
|
|
729
745
|
}, {
|
|
730
746
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
731
|
-
} | undefined
|
|
747
|
+
} | undefined>>,
|
|
748
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
749
|
+
dependencies: [
|
|
750
|
+
];
|
|
751
|
+
sharedState: {
|
|
752
|
+
isMenuOpen: boolean;
|
|
753
|
+
activeNode: {
|
|
754
|
+
pos: number;
|
|
755
|
+
};
|
|
756
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
757
|
+
isDragging: boolean;
|
|
758
|
+
} | undefined;
|
|
759
|
+
actions: {};
|
|
760
|
+
commands: {
|
|
761
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
762
|
+
};
|
|
763
|
+
}, undefined>>
|
|
732
764
|
];
|
|
733
765
|
actions: {
|
|
734
766
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -1582,7 +1614,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
1582
1614
|
};
|
|
1583
1615
|
}, {
|
|
1584
1616
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1585
|
-
} | undefined
|
|
1617
|
+
} | undefined>>,
|
|
1618
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
1619
|
+
dependencies: [
|
|
1620
|
+
];
|
|
1621
|
+
sharedState: {
|
|
1622
|
+
isMenuOpen: boolean;
|
|
1623
|
+
activeNode: {
|
|
1624
|
+
pos: number;
|
|
1625
|
+
};
|
|
1626
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
1627
|
+
isDragging: boolean;
|
|
1628
|
+
} | undefined;
|
|
1629
|
+
actions: {};
|
|
1630
|
+
commands: {
|
|
1631
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1632
|
+
};
|
|
1633
|
+
}, undefined>>
|
|
1586
1634
|
];
|
|
1587
1635
|
actions: {
|
|
1588
1636
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -2229,7 +2277,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
2229
2277
|
};
|
|
2230
2278
|
}, {
|
|
2231
2279
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2232
|
-
} | undefined
|
|
2280
|
+
} | undefined>>,
|
|
2281
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
2282
|
+
dependencies: [
|
|
2283
|
+
];
|
|
2284
|
+
sharedState: {
|
|
2285
|
+
isMenuOpen: boolean;
|
|
2286
|
+
activeNode: {
|
|
2287
|
+
pos: number;
|
|
2288
|
+
};
|
|
2289
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
2290
|
+
isDragging: boolean;
|
|
2291
|
+
} | undefined;
|
|
2292
|
+
actions: {};
|
|
2293
|
+
commands: {
|
|
2294
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2295
|
+
};
|
|
2296
|
+
}, undefined>>
|
|
2233
2297
|
];
|
|
2234
2298
|
actions: {
|
|
2235
2299
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -3110,7 +3174,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3110
3174
|
};
|
|
3111
3175
|
}, {
|
|
3112
3176
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3113
|
-
} | undefined
|
|
3177
|
+
} | undefined>>,
|
|
3178
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
3179
|
+
dependencies: [
|
|
3180
|
+
];
|
|
3181
|
+
sharedState: {
|
|
3182
|
+
isMenuOpen: boolean;
|
|
3183
|
+
activeNode: {
|
|
3184
|
+
pos: number;
|
|
3185
|
+
};
|
|
3186
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3187
|
+
isDragging: boolean;
|
|
3188
|
+
} | undefined;
|
|
3189
|
+
actions: {};
|
|
3190
|
+
commands: {
|
|
3191
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3192
|
+
};
|
|
3193
|
+
}, undefined>>
|
|
3114
3194
|
];
|
|
3115
3195
|
actions: {
|
|
3116
3196
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -3823,7 +3903,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
3823
3903
|
};
|
|
3824
3904
|
}, {
|
|
3825
3905
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3826
|
-
} | undefined
|
|
3906
|
+
} | undefined>>,
|
|
3907
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
3908
|
+
dependencies: [
|
|
3909
|
+
];
|
|
3910
|
+
sharedState: {
|
|
3911
|
+
isMenuOpen: boolean;
|
|
3912
|
+
activeNode: {
|
|
3913
|
+
pos: number;
|
|
3914
|
+
};
|
|
3915
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3916
|
+
isDragging: boolean;
|
|
3917
|
+
} | undefined;
|
|
3918
|
+
actions: {};
|
|
3919
|
+
commands: {
|
|
3920
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3921
|
+
};
|
|
3922
|
+
}, undefined>>
|
|
3827
3923
|
];
|
|
3828
3924
|
actions: {
|
|
3829
3925
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -4118,7 +4214,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4118
4214
|
};
|
|
4119
4215
|
}, {
|
|
4120
4216
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4121
|
-
} | undefined
|
|
4217
|
+
} | undefined>>,
|
|
4218
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
4219
|
+
dependencies: [
|
|
4220
|
+
];
|
|
4221
|
+
sharedState: {
|
|
4222
|
+
isMenuOpen: boolean;
|
|
4223
|
+
activeNode: {
|
|
4224
|
+
pos: number;
|
|
4225
|
+
};
|
|
4226
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
4227
|
+
isDragging: boolean;
|
|
4228
|
+
} | undefined;
|
|
4229
|
+
actions: {};
|
|
4230
|
+
commands: {
|
|
4231
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4232
|
+
};
|
|
4233
|
+
}, undefined>>
|
|
4122
4234
|
];
|
|
4123
4235
|
actions: {
|
|
4124
4236
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -4985,7 +5097,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
4985
5097
|
};
|
|
4986
5098
|
}, {
|
|
4987
5099
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4988
|
-
} | undefined
|
|
5100
|
+
} | undefined>>,
|
|
5101
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
5102
|
+
dependencies: [
|
|
5103
|
+
];
|
|
5104
|
+
sharedState: {
|
|
5105
|
+
isMenuOpen: boolean;
|
|
5106
|
+
activeNode: {
|
|
5107
|
+
pos: number;
|
|
5108
|
+
};
|
|
5109
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
5110
|
+
isDragging: boolean;
|
|
5111
|
+
} | undefined;
|
|
5112
|
+
actions: {};
|
|
5113
|
+
commands: {
|
|
5114
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5115
|
+
};
|
|
5116
|
+
}, undefined>>
|
|
4989
5117
|
];
|
|
4990
5118
|
actions: {
|
|
4991
5119
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -5305,7 +5433,23 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
|
|
|
5305
5433
|
};
|
|
5306
5434
|
}, {
|
|
5307
5435
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5308
|
-
} | undefined
|
|
5436
|
+
} | undefined>>,
|
|
5437
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockControls", {
|
|
5438
|
+
dependencies: [
|
|
5439
|
+
];
|
|
5440
|
+
sharedState: {
|
|
5441
|
+
isMenuOpen: boolean;
|
|
5442
|
+
activeNode: {
|
|
5443
|
+
pos: number;
|
|
5444
|
+
};
|
|
5445
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
5446
|
+
isDragging: boolean;
|
|
5447
|
+
} | undefined;
|
|
5448
|
+
actions: {};
|
|
5449
|
+
commands: {
|
|
5450
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5451
|
+
};
|
|
5452
|
+
}, undefined>>
|
|
5309
5453
|
];
|
|
5310
5454
|
actions: {
|
|
5311
5455
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -394,7 +394,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
394
394
|
};
|
|
395
395
|
}, {
|
|
396
396
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
397
|
-
} | undefined
|
|
397
|
+
} | undefined>>,
|
|
398
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
399
|
+
dependencies: [
|
|
400
|
+
];
|
|
401
|
+
sharedState: {
|
|
402
|
+
isMenuOpen: boolean;
|
|
403
|
+
activeNode: {
|
|
404
|
+
pos: number;
|
|
405
|
+
};
|
|
406
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
407
|
+
isDragging: boolean;
|
|
408
|
+
} | undefined;
|
|
409
|
+
actions: {};
|
|
410
|
+
commands: {
|
|
411
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
412
|
+
};
|
|
413
|
+
}, undefined>>
|
|
398
414
|
];
|
|
399
415
|
actions: {
|
|
400
416
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -714,7 +730,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
714
730
|
};
|
|
715
731
|
}, {
|
|
716
732
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
717
|
-
} | undefined
|
|
733
|
+
} | undefined>>,
|
|
734
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
735
|
+
dependencies: [
|
|
736
|
+
];
|
|
737
|
+
sharedState: {
|
|
738
|
+
isMenuOpen: boolean;
|
|
739
|
+
activeNode: {
|
|
740
|
+
pos: number;
|
|
741
|
+
};
|
|
742
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
743
|
+
isDragging: boolean;
|
|
744
|
+
} | undefined;
|
|
745
|
+
actions: {};
|
|
746
|
+
commands: {
|
|
747
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
748
|
+
};
|
|
749
|
+
}, undefined>>
|
|
718
750
|
];
|
|
719
751
|
actions: {
|
|
720
752
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -1568,7 +1600,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
1568
1600
|
};
|
|
1569
1601
|
}, {
|
|
1570
1602
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1571
|
-
} | undefined
|
|
1603
|
+
} | undefined>>,
|
|
1604
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
1605
|
+
dependencies: [
|
|
1606
|
+
];
|
|
1607
|
+
sharedState: {
|
|
1608
|
+
isMenuOpen: boolean;
|
|
1609
|
+
activeNode: {
|
|
1610
|
+
pos: number;
|
|
1611
|
+
};
|
|
1612
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
1613
|
+
isDragging: boolean;
|
|
1614
|
+
} | undefined;
|
|
1615
|
+
actions: {};
|
|
1616
|
+
commands: {
|
|
1617
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1618
|
+
};
|
|
1619
|
+
}, undefined>>
|
|
1572
1620
|
];
|
|
1573
1621
|
actions: {
|
|
1574
1622
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -2215,7 +2263,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
2215
2263
|
};
|
|
2216
2264
|
}, {
|
|
2217
2265
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2218
|
-
} | undefined
|
|
2266
|
+
} | undefined>>,
|
|
2267
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
2268
|
+
dependencies: [
|
|
2269
|
+
];
|
|
2270
|
+
sharedState: {
|
|
2271
|
+
isMenuOpen: boolean;
|
|
2272
|
+
activeNode: {
|
|
2273
|
+
pos: number;
|
|
2274
|
+
};
|
|
2275
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
2276
|
+
isDragging: boolean;
|
|
2277
|
+
} | undefined;
|
|
2278
|
+
actions: {};
|
|
2279
|
+
commands: {
|
|
2280
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2281
|
+
};
|
|
2282
|
+
}, undefined>>
|
|
2219
2283
|
];
|
|
2220
2284
|
actions: {
|
|
2221
2285
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -3096,7 +3160,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3096
3160
|
};
|
|
3097
3161
|
}, {
|
|
3098
3162
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3099
|
-
} | undefined
|
|
3163
|
+
} | undefined>>,
|
|
3164
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
3165
|
+
dependencies: [
|
|
3166
|
+
];
|
|
3167
|
+
sharedState: {
|
|
3168
|
+
isMenuOpen: boolean;
|
|
3169
|
+
activeNode: {
|
|
3170
|
+
pos: number;
|
|
3171
|
+
};
|
|
3172
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3173
|
+
isDragging: boolean;
|
|
3174
|
+
} | undefined;
|
|
3175
|
+
actions: {};
|
|
3176
|
+
commands: {
|
|
3177
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3178
|
+
};
|
|
3179
|
+
}, undefined>>
|
|
3100
3180
|
];
|
|
3101
3181
|
actions: {
|
|
3102
3182
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -3809,7 +3889,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
3809
3889
|
};
|
|
3810
3890
|
}, {
|
|
3811
3891
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3812
|
-
} | undefined
|
|
3892
|
+
} | undefined>>,
|
|
3893
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
3894
|
+
dependencies: [
|
|
3895
|
+
];
|
|
3896
|
+
sharedState: {
|
|
3897
|
+
isMenuOpen: boolean;
|
|
3898
|
+
activeNode: {
|
|
3899
|
+
pos: number;
|
|
3900
|
+
};
|
|
3901
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
3902
|
+
isDragging: boolean;
|
|
3903
|
+
} | undefined;
|
|
3904
|
+
actions: {};
|
|
3905
|
+
commands: {
|
|
3906
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3907
|
+
};
|
|
3908
|
+
}, undefined>>
|
|
3813
3909
|
];
|
|
3814
3910
|
actions: {
|
|
3815
3911
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -4104,7 +4200,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
4104
4200
|
};
|
|
4105
4201
|
}, {
|
|
4106
4202
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4107
|
-
} | undefined
|
|
4203
|
+
} | undefined>>,
|
|
4204
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
4205
|
+
dependencies: [
|
|
4206
|
+
];
|
|
4207
|
+
sharedState: {
|
|
4208
|
+
isMenuOpen: boolean;
|
|
4209
|
+
activeNode: {
|
|
4210
|
+
pos: number;
|
|
4211
|
+
};
|
|
4212
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
4213
|
+
isDragging: boolean;
|
|
4214
|
+
} | undefined;
|
|
4215
|
+
actions: {};
|
|
4216
|
+
commands: {
|
|
4217
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4218
|
+
};
|
|
4219
|
+
}, undefined>>
|
|
4108
4220
|
];
|
|
4109
4221
|
actions: {
|
|
4110
4222
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -4971,7 +5083,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
4971
5083
|
};
|
|
4972
5084
|
}, {
|
|
4973
5085
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4974
|
-
} | undefined
|
|
5086
|
+
} | undefined>>,
|
|
5087
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
5088
|
+
dependencies: [
|
|
5089
|
+
];
|
|
5090
|
+
sharedState: {
|
|
5091
|
+
isMenuOpen: boolean;
|
|
5092
|
+
activeNode: {
|
|
5093
|
+
pos: number;
|
|
5094
|
+
};
|
|
5095
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
5096
|
+
isDragging: boolean;
|
|
5097
|
+
} | undefined;
|
|
5098
|
+
actions: {};
|
|
5099
|
+
commands: {
|
|
5100
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5101
|
+
};
|
|
5102
|
+
}, undefined>>
|
|
4975
5103
|
];
|
|
4976
5104
|
actions: {
|
|
4977
5105
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -5291,7 +5419,23 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
|
|
|
5291
5419
|
};
|
|
5292
5420
|
}, {
|
|
5293
5421
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
5294
|
-
} | undefined
|
|
5422
|
+
} | undefined>>,
|
|
5423
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"blockControls", {
|
|
5424
|
+
dependencies: [
|
|
5425
|
+
];
|
|
5426
|
+
sharedState: {
|
|
5427
|
+
isMenuOpen: boolean;
|
|
5428
|
+
activeNode: {
|
|
5429
|
+
pos: number;
|
|
5430
|
+
};
|
|
5431
|
+
decorationState: import("@atlaskit/editor-plugin-block-controls").DecorationState;
|
|
5432
|
+
isDragging: boolean;
|
|
5433
|
+
} | undefined;
|
|
5434
|
+
actions: {};
|
|
5435
|
+
commands: {
|
|
5436
|
+
moveNode: (start: number, to: number) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
5437
|
+
};
|
|
5438
|
+
}, undefined>>
|
|
5295
5439
|
];
|
|
5296
5440
|
actions: {
|
|
5297
5441
|
forceFocusSelector: import("@atlaskit/editor-plugin-floating-toolbar").ForceFocusSelector;
|
|
@@ -28,7 +28,7 @@ export declare const createPMSchemaAndPlugins: (inputPreset?: EditorPresetBuilde
|
|
|
28
28
|
}) => PluginData;
|
|
29
29
|
export { EventDispatcher } from './event-dispatcher';
|
|
30
30
|
export type { Dispatch } from './event-dispatcher';
|
|
31
|
-
export { GapCursorSelection, Side as GapCursorSide
|
|
31
|
+
export { GapCursorSelection, Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
32
32
|
export declare function setTextSelection(view: EditorView, anchor: number, head?: number): void;
|
|
33
33
|
/**
|
|
34
34
|
* Given a selector, checks if an element matching the selector exists in the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Browsers, Range, DisableSpellcheckByBrowser
|
|
1
|
+
export type { Browsers, Range, DisableSpellcheckByBrowser } from '@atlaskit/editor-common/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { NextEditorPlugin, PluginsOptions, EditorPlugin
|
|
1
|
+
export type { NextEditorPlugin, PluginsOptions, EditorPlugin } from '@atlaskit/editor-common/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { EmptyStateHandler, EmptyStateHandlerParams
|
|
1
|
+
export type { EmptyStateHandler, EmptyStateHandlerParams } from '@atlaskit/editor-common/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { FeatureFlags, FeatureFlagKey
|
|
1
|
+
export type { FeatureFlags, FeatureFlagKey } from '@atlaskit/editor-common/types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { AllowedBlockTypes } from '@atlaskit/editor-common/types';
|
|
2
2
|
export type { EditorInstance } from './editor-instance';
|
|
3
3
|
export type { EditorConfig } from './editor-config';
|
|
4
|
-
export type { NextEditorPlugin, EditorPlugin, PluginsOptions
|
|
4
|
+
export type { NextEditorPlugin, EditorPlugin, PluginsOptions } from './editor-plugin';
|
|
5
5
|
export type { EditorReactContext } from './editor-react-context';
|
|
6
6
|
export type { EditorProps, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, ContentComponents, } from './editor-props';
|
|
7
7
|
export type { EditorAppearanceComponentProps } from './editor-appearance-component';
|
|
@@ -11,8 +11,8 @@ export type { DomAtPos } from './dom-at-pos';
|
|
|
11
11
|
export type { ExtensionConfig } from './extension-config';
|
|
12
12
|
export type { EditorAppearance } from './editor-appearance';
|
|
13
13
|
export type { ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, } from '../ui/Toolbar/types';
|
|
14
|
-
export type { PMPlugin, PMPluginFactory, PMPluginFactoryParams
|
|
14
|
+
export type { PMPlugin, PMPluginFactory, PMPluginFactoryParams } from './pm-plugin';
|
|
15
15
|
export type { PMPluginCreateConfig } from './pm-plugin-list';
|
|
16
16
|
export type { NodeViewConfig, MarkConfig, NodeConfig } from './pm-config';
|
|
17
|
-
export type { UIComponentFactory, UiComponentFactoryParams
|
|
17
|
+
export type { UIComponentFactory, UiComponentFactoryParams } from './ui-components';
|
|
18
18
|
export type { DisableSpellcheckByBrowser, Range, Browsers } from './browser';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { NodeConfig, MarkConfig, NodeViewConfig
|
|
1
|
+
export type { NodeConfig, MarkConfig, NodeViewConfig } from '@atlaskit/editor-common/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { UiComponentFactoryParams, UIComponentFactory
|
|
1
|
+
export type { UiComponentFactoryParams, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
@@ -5,5 +5,5 @@ export interface Props {
|
|
|
5
5
|
children?: any;
|
|
6
6
|
editorDisabled?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const ClickAreaBlock: ({ editorView, editorDisabled, children
|
|
8
|
+
export declare const ClickAreaBlock: ({ editorView, editorDisabled, children }: Props) => jsx.JSX.Element;
|
|
9
9
|
export default ClickAreaBlock;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage
|
|
1
|
+
export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage } from '@atlaskit/editor-common/types';
|
|
2
2
|
export type { ToolbarUiComponentFactoryParams, ToolbarUIComponentFactory, } from '@atlaskit/editor-common/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NodeCount, PluginMethodReport, PluginPerformanceReportData, PluginsReport } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData
|
|
2
|
+
export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData };
|
|
3
3
|
export interface OutlierReport {
|
|
4
4
|
stateApplyOutlier: number | undefined;
|
|
5
5
|
viewUpdateOutlier: number | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { getFragmentBackingArray, mapFragment, mapSlice, flatmap, mapChildren, } from '@atlaskit/editor-common/utils';
|
|
2
|
-
export type { FlatMapCallback, MapWithCallback
|
|
2
|
+
export type { FlatMapCallback, MapWithCallback } from '@atlaskit/editor-common/utils';
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
AtlassianInternalWarning,
|
|
5
|
-
code,
|
|
6
|
-
Example,
|
|
7
|
-
md,
|
|
8
|
-
Props,
|
|
9
|
-
} from '@atlaskit/docs';
|
|
3
|
+
import { AtlassianInternalWarning, code, Example, md, Props } from '@atlaskit/docs';
|
|
10
4
|
|
|
11
5
|
export default md`
|
|
12
6
|
${(<AtlassianInternalWarning />)}
|
|
@@ -392,20 +386,20 @@ function EditorInternal() {
|
|
|
392
386
|
|
|
393
387
|
|
|
394
388
|
${(
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
389
|
+
<Example
|
|
390
|
+
packageName="@atlaskit/editor-core/composable-editor"
|
|
391
|
+
Component={require('../examples/1-basic-composable-editor').default}
|
|
392
|
+
title="Basic"
|
|
393
|
+
source={require('!!raw-loader!../examples/1-basic-composable-editor')}
|
|
394
|
+
/>
|
|
401
395
|
)}
|
|
402
396
|
|
|
403
397
|
${(
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
398
|
+
<Props
|
|
399
|
+
shouldCollapseProps
|
|
400
|
+
heading="Props"
|
|
401
|
+
props={require('!!extract-react-types-loader!../src/composable-editor/editor')}
|
|
402
|
+
/>
|
|
403
|
+
)}
|
|
410
404
|
|
|
411
405
|
`;
|
package/docs/1-legacy-editor.tsx
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
AtlassianInternalWarning,
|
|
5
|
-
code,
|
|
6
|
-
Example,
|
|
7
|
-
md,
|
|
8
|
-
Props,
|
|
9
|
-
} from '@atlaskit/docs';
|
|
3
|
+
import { AtlassianInternalWarning, code, Example, md, Props } from '@atlaskit/docs';
|
|
10
4
|
|
|
11
5
|
export default md`
|
|
12
6
|
${(<AtlassianInternalWarning />)}
|
|
@@ -251,19 +245,19 @@ ${code`
|
|
|
251
245
|
`}
|
|
252
246
|
|
|
253
247
|
${(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
248
|
+
<Example
|
|
249
|
+
packageName="@atlaskit/editor-core"
|
|
250
|
+
Component={require('../examples/1-basic').default}
|
|
251
|
+
title="Basic"
|
|
252
|
+
source={require('!!raw-loader!../examples/1-basic')}
|
|
253
|
+
/>
|
|
260
254
|
)}
|
|
261
255
|
|
|
262
256
|
${(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
257
|
+
<Props
|
|
258
|
+
shouldCollapseProps
|
|
259
|
+
heading="Props"
|
|
260
|
+
props={require('!!extract-react-types-loader!../src/editor')}
|
|
261
|
+
/>
|
|
262
|
+
)}
|
|
269
263
|
`;
|