@atlaskit/editor-core 204.5.5 → 204.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/presets/default.js +5 -2
- package/dist/cjs/utils/extensions.js +18 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +5 -2
- package/dist/es2019/utils/extensions.js +18 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +5 -2
- package/dist/esm/utils/extensions.js +18 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +48 -7
- package/dist/types/presets/universal.d.ts +48 -7
- package/dist/types/presets/useUniversalPreset.d.ts +48 -7
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +48 -7
- package/dist/types-ts4.5/presets/universal.d.ts +48 -7
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +48 -7
- package/package.json +14 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 204.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#130044](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130044)
|
|
8
|
+
[`cad348d512cdf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cad348d512cdf) -
|
|
9
|
+
[ux] ED-26802 contextual formatting configuration
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 204.5.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -56,10 +56,13 @@ function createDefaultPreset(options) {
|
|
|
56
56
|
isFullPage: isFullPage
|
|
57
57
|
})]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
|
|
58
58
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
59
|
-
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(options.allowUndoRedoButtons)).add(_primaryToolbar.primaryToolbarPlugin
|
|
59
|
+
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(options.allowUndoRedoButtons)).add([_primaryToolbar.primaryToolbarPlugin, {
|
|
60
|
+
contextualFormattingEnabled: isFullPage
|
|
61
|
+
}]).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, _objectSpread(_objectSpread({}, options.blockType), {}, {
|
|
60
62
|
includeBlockQuoteAsTextstyleOption: isFullPage
|
|
61
63
|
})]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).add([_selectionToolbar.selectionToolbarPlugin, {
|
|
62
|
-
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
64
|
+
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection,
|
|
65
|
+
contextualFormattingEnabled: isFullPage
|
|
63
66
|
}]).add([_hyperlink.hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
64
67
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
65
68
|
__livePage: options.__livePage
|
|
@@ -89,14 +89,24 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
89
89
|
isDisabledOffline: true,
|
|
90
90
|
action: function action(insert, state, source) {
|
|
91
91
|
if (typeof item.node === 'function') {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_add_extension_api_to_quick_insert')) {
|
|
93
|
+
var _apiRef$current;
|
|
94
|
+
var extensionAPI = apiRef === null || apiRef === void 0 || (_apiRef$current = apiRef.current) === null || _apiRef$current === void 0 || (_apiRef$current = _apiRef$current.extension) === null || _apiRef$current === void 0 || (_apiRef$current = _apiRef$current.actions) === null || _apiRef$current === void 0 ? void 0 : _apiRef$current.api();
|
|
95
|
+
// While the api can be "undefined" there are no runtime scenarios where this is the case because:
|
|
96
|
+
// - The quick insert API can only be called from an active editor
|
|
97
|
+
// - The extension module handler can only be called from an active editor with the extension plugin
|
|
98
|
+
// Therefore this should always be run unless there is something very wrong.
|
|
99
|
+
if (extensionAPI) {
|
|
100
|
+
(0, _extensions.resolveImport)(item.node(extensionAPI)).then(function (node) {
|
|
101
|
+
sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
102
|
+
if (node) {
|
|
103
|
+
editorActions.replaceSelection(node);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
// @ts-expect-error No longer supported without extension API - this will be removed once we cleanup the FG.
|
|
109
|
+
(0, _extensions.resolveImport)(item.node()).then(function (node) {
|
|
100
110
|
sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
101
111
|
if (node) {
|
|
102
112
|
editorActions.replaceSelection(node);
|
|
@@ -49,11 +49,14 @@ export function createDefaultPreset(options) {
|
|
|
49
49
|
isFullPage
|
|
50
50
|
}]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
51
51
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
52
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add(primaryToolbarPlugin
|
|
52
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add([primaryToolbarPlugin, {
|
|
53
|
+
contextualFormattingEnabled: isFullPage
|
|
54
|
+
}]).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, {
|
|
53
55
|
...options.blockType,
|
|
54
56
|
includeBlockQuoteAsTextstyleOption: isFullPage
|
|
55
57
|
}]).add(clearMarksOnEmptyDocPlugin).add([selectionToolbarPlugin, {
|
|
56
|
-
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
58
|
+
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection,
|
|
59
|
+
contextualFormattingEnabled: isFullPage
|
|
57
60
|
}]).add([hyperlinkPlugin, {
|
|
58
61
|
...options.hyperlinkOptions,
|
|
59
62
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
@@ -61,14 +61,24 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
|
|
|
61
61
|
isDisabledOffline: true,
|
|
62
62
|
action: (insert, state, source) => {
|
|
63
63
|
if (typeof item.node === 'function') {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
if (fg('platform_editor_add_extension_api_to_quick_insert')) {
|
|
65
|
+
var _apiRef$current, _apiRef$current$exten, _apiRef$current$exten2;
|
|
66
|
+
const extensionAPI = apiRef === null || apiRef === void 0 ? void 0 : (_apiRef$current = apiRef.current) === null || _apiRef$current === void 0 ? void 0 : (_apiRef$current$exten = _apiRef$current.extension) === null || _apiRef$current$exten === void 0 ? void 0 : (_apiRef$current$exten2 = _apiRef$current$exten.actions) === null || _apiRef$current$exten2 === void 0 ? void 0 : _apiRef$current$exten2.api();
|
|
67
|
+
// While the api can be "undefined" there are no runtime scenarios where this is the case because:
|
|
68
|
+
// - The quick insert API can only be called from an active editor
|
|
69
|
+
// - The extension module handler can only be called from an active editor with the extension plugin
|
|
70
|
+
// Therefore this should always be run unless there is something very wrong.
|
|
71
|
+
if (extensionAPI) {
|
|
72
|
+
resolveImport(item.node(extensionAPI)).then(node => {
|
|
73
|
+
sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
74
|
+
if (node) {
|
|
75
|
+
editorActions.replaceSelection(node);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
} else {
|
|
80
|
+
// @ts-expect-error No longer supported without extension API - this will be removed once we cleanup the FG.
|
|
81
|
+
resolveImport(item.node()).then(node => {
|
|
72
82
|
sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
73
83
|
if (node) {
|
|
74
84
|
editorActions.replaceSelection(node);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "204.5.
|
|
2
|
+
export const version = "204.5.6";
|
|
@@ -51,10 +51,13 @@ export function createDefaultPreset(options) {
|
|
|
51
51
|
isFullPage: isFullPage
|
|
52
52
|
})]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
53
53
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
54
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add(primaryToolbarPlugin
|
|
54
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).add([primaryToolbarPlugin, {
|
|
55
|
+
contextualFormattingEnabled: isFullPage
|
|
56
|
+
}]).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, _objectSpread(_objectSpread({}, options.blockType), {}, {
|
|
55
57
|
includeBlockQuoteAsTextstyleOption: isFullPage
|
|
56
58
|
})]).add(clearMarksOnEmptyDocPlugin).add([selectionToolbarPlugin, {
|
|
57
|
-
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection
|
|
59
|
+
preferenceToolbarAboveSelection: !!options.preferenceToolbarAboveSelection,
|
|
60
|
+
contextualFormattingEnabled: isFullPage
|
|
58
61
|
}]).add([hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
|
|
59
62
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
60
63
|
__livePage: options.__livePage
|
|
@@ -83,14 +83,24 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
83
83
|
isDisabledOffline: true,
|
|
84
84
|
action: function action(insert, state, source) {
|
|
85
85
|
if (typeof item.node === 'function') {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
if (fg('platform_editor_add_extension_api_to_quick_insert')) {
|
|
87
|
+
var _apiRef$current;
|
|
88
|
+
var extensionAPI = apiRef === null || apiRef === void 0 || (_apiRef$current = apiRef.current) === null || _apiRef$current === void 0 || (_apiRef$current = _apiRef$current.extension) === null || _apiRef$current === void 0 || (_apiRef$current = _apiRef$current.actions) === null || _apiRef$current === void 0 ? void 0 : _apiRef$current.api();
|
|
89
|
+
// While the api can be "undefined" there are no runtime scenarios where this is the case because:
|
|
90
|
+
// - The quick insert API can only be called from an active editor
|
|
91
|
+
// - The extension module handler can only be called from an active editor with the extension plugin
|
|
92
|
+
// Therefore this should always be run unless there is something very wrong.
|
|
93
|
+
if (extensionAPI) {
|
|
94
|
+
resolveImport(item.node(extensionAPI)).then(function (node) {
|
|
95
|
+
sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
96
|
+
if (node) {
|
|
97
|
+
editorActions.replaceSelection(node);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
} else {
|
|
102
|
+
// @ts-expect-error No longer supported without extension API - this will be removed once we cleanup the FG.
|
|
103
|
+
resolveImport(item.node()).then(function (node) {
|
|
94
104
|
sendExtensionQuickInsertAnalytics(item, state.selection, createAnalyticsEvent, source);
|
|
95
105
|
if (node) {
|
|
96
106
|
editorActions.replaceSelection(node);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "204.5.
|
|
2
|
+
export var version = "204.5.6";
|
|
@@ -590,7 +590,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
590
590
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
591
591
|
}) => void;
|
|
592
592
|
};
|
|
593
|
-
|
|
593
|
+
pluginConfiguration?: {
|
|
594
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
595
|
+
} | undefined;
|
|
596
|
+
}, {
|
|
597
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
598
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
|
|
594
599
|
pluginConfiguration: import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined;
|
|
595
600
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
596
601
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -615,6 +620,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
615
620
|
pluginConfiguration: {
|
|
616
621
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
617
622
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
623
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
618
624
|
};
|
|
619
625
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
620
626
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -632,7 +638,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
632
638
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
633
639
|
}) => void;
|
|
634
640
|
};
|
|
635
|
-
|
|
641
|
+
pluginConfiguration?: {
|
|
642
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
643
|
+
} | undefined;
|
|
644
|
+
}, {
|
|
645
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
646
|
+
} | undefined>>];
|
|
636
647
|
actions?: {
|
|
637
648
|
suppressToolbar?: (() => boolean) | undefined;
|
|
638
649
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -641,6 +652,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
641
652
|
}, {
|
|
642
653
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
643
654
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
655
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
644
656
|
}>>];
|
|
645
657
|
commands: {
|
|
646
658
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -669,6 +681,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
669
681
|
pluginConfiguration: {
|
|
670
682
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
671
683
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
684
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
672
685
|
};
|
|
673
686
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
674
687
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -686,7 +699,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
686
699
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
687
700
|
}) => void;
|
|
688
701
|
};
|
|
689
|
-
|
|
702
|
+
pluginConfiguration?: {
|
|
703
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
704
|
+
} | undefined;
|
|
705
|
+
}, {
|
|
706
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
707
|
+
} | undefined>>];
|
|
690
708
|
actions?: {
|
|
691
709
|
suppressToolbar?: (() => boolean) | undefined;
|
|
692
710
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -695,6 +713,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
695
713
|
}, {
|
|
696
714
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
697
715
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
716
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
698
717
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
699
718
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
700
719
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -717,13 +736,19 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
717
736
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
718
737
|
}) => void;
|
|
719
738
|
};
|
|
720
|
-
|
|
739
|
+
pluginConfiguration?: {
|
|
740
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
741
|
+
} | undefined;
|
|
742
|
+
}, {
|
|
743
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
744
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
721
745
|
sharedState: {
|
|
722
746
|
toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
|
|
723
747
|
};
|
|
724
748
|
pluginConfiguration: {
|
|
725
749
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
726
750
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
751
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
727
752
|
};
|
|
728
753
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
729
754
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -741,7 +766,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
741
766
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
742
767
|
}) => void;
|
|
743
768
|
};
|
|
744
|
-
|
|
769
|
+
pluginConfiguration?: {
|
|
770
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
}, {
|
|
773
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
774
|
+
} | undefined>>];
|
|
745
775
|
actions?: {
|
|
746
776
|
suppressToolbar?: (() => boolean) | undefined;
|
|
747
777
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -750,6 +780,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
750
780
|
}, {
|
|
751
781
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
752
782
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
783
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
753
784
|
}>>];
|
|
754
785
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
755
786
|
actions: {
|
|
@@ -835,7 +866,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
835
866
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
836
867
|
}) => void;
|
|
837
868
|
};
|
|
838
|
-
|
|
869
|
+
pluginConfiguration?: {
|
|
870
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
871
|
+
} | undefined;
|
|
872
|
+
}, {
|
|
873
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
874
|
+
} | undefined>>];
|
|
839
875
|
actions: {
|
|
840
876
|
undo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
841
877
|
redo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
@@ -848,7 +884,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
848
884
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
849
885
|
}) => void;
|
|
850
886
|
};
|
|
851
|
-
|
|
887
|
+
pluginConfiguration?: {
|
|
888
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
889
|
+
} | undefined;
|
|
890
|
+
}, {
|
|
891
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
892
|
+
} | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
852
893
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
853
894
|
commands: {
|
|
854
895
|
updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -642,7 +642,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
642
642
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
643
643
|
}) => void;
|
|
644
644
|
};
|
|
645
|
-
|
|
645
|
+
pluginConfiguration?: {
|
|
646
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
647
|
+
} | undefined;
|
|
648
|
+
}, {
|
|
649
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
650
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
|
|
646
651
|
pluginConfiguration: import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined;
|
|
647
652
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
648
653
|
pluginConfiguration: FeatureFlags;
|
|
@@ -667,6 +672,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
667
672
|
pluginConfiguration: {
|
|
668
673
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
669
674
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
675
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
670
676
|
};
|
|
671
677
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
672
678
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -684,7 +690,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
684
690
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
685
691
|
}) => void;
|
|
686
692
|
};
|
|
687
|
-
|
|
693
|
+
pluginConfiguration?: {
|
|
694
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
695
|
+
} | undefined;
|
|
696
|
+
}, {
|
|
697
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
698
|
+
} | undefined>>];
|
|
688
699
|
actions?: {
|
|
689
700
|
suppressToolbar?: (() => boolean) | undefined;
|
|
690
701
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -693,6 +704,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
693
704
|
}, {
|
|
694
705
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
695
706
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
707
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
696
708
|
}>>];
|
|
697
709
|
commands: {
|
|
698
710
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -721,6 +733,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
721
733
|
pluginConfiguration: {
|
|
722
734
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
723
735
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
736
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
724
737
|
};
|
|
725
738
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
726
739
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -738,7 +751,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
738
751
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
739
752
|
}) => void;
|
|
740
753
|
};
|
|
741
|
-
|
|
754
|
+
pluginConfiguration?: {
|
|
755
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
756
|
+
} | undefined;
|
|
757
|
+
}, {
|
|
758
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
759
|
+
} | undefined>>];
|
|
742
760
|
actions?: {
|
|
743
761
|
suppressToolbar?: (() => boolean) | undefined;
|
|
744
762
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -747,6 +765,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
747
765
|
}, {
|
|
748
766
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
749
767
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
768
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
750
769
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
751
770
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
752
771
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -769,13 +788,19 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
769
788
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
770
789
|
}) => void;
|
|
771
790
|
};
|
|
772
|
-
|
|
791
|
+
pluginConfiguration?: {
|
|
792
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
793
|
+
} | undefined;
|
|
794
|
+
}, {
|
|
795
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
796
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
773
797
|
sharedState: {
|
|
774
798
|
toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
|
|
775
799
|
};
|
|
776
800
|
pluginConfiguration: {
|
|
777
801
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
778
802
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
803
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
779
804
|
};
|
|
780
805
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
781
806
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -793,7 +818,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
793
818
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
794
819
|
}) => void;
|
|
795
820
|
};
|
|
796
|
-
|
|
821
|
+
pluginConfiguration?: {
|
|
822
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
823
|
+
} | undefined;
|
|
824
|
+
}, {
|
|
825
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
826
|
+
} | undefined>>];
|
|
797
827
|
actions?: {
|
|
798
828
|
suppressToolbar?: (() => boolean) | undefined;
|
|
799
829
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -802,6 +832,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
802
832
|
}, {
|
|
803
833
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
804
834
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
835
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
805
836
|
}>>];
|
|
806
837
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
807
838
|
actions: {
|
|
@@ -887,7 +918,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
887
918
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
888
919
|
}) => void;
|
|
889
920
|
};
|
|
890
|
-
|
|
921
|
+
pluginConfiguration?: {
|
|
922
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
923
|
+
} | undefined;
|
|
924
|
+
}, {
|
|
925
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
926
|
+
} | undefined>>];
|
|
891
927
|
actions: {
|
|
892
928
|
undo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
893
929
|
redo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
@@ -900,7 +936,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
900
936
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
901
937
|
}) => void;
|
|
902
938
|
};
|
|
903
|
-
|
|
939
|
+
pluginConfiguration?: {
|
|
940
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
941
|
+
} | undefined;
|
|
942
|
+
}, {
|
|
943
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
944
|
+
} | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
904
945
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
905
946
|
commands: {
|
|
906
947
|
updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -590,7 +590,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
590
590
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
591
591
|
}) => void;
|
|
592
592
|
};
|
|
593
|
-
|
|
593
|
+
pluginConfiguration?: {
|
|
594
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
595
|
+
} | undefined;
|
|
596
|
+
}, {
|
|
597
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
598
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
|
|
594
599
|
pluginConfiguration: import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined;
|
|
595
600
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
596
601
|
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
@@ -615,6 +620,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
615
620
|
pluginConfiguration: {
|
|
616
621
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
617
622
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
623
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
618
624
|
};
|
|
619
625
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
620
626
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -632,7 +638,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
632
638
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
633
639
|
}) => void;
|
|
634
640
|
};
|
|
635
|
-
|
|
641
|
+
pluginConfiguration?: {
|
|
642
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
643
|
+
} | undefined;
|
|
644
|
+
}, {
|
|
645
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
646
|
+
} | undefined>>];
|
|
636
647
|
actions?: {
|
|
637
648
|
suppressToolbar?: (() => boolean) | undefined;
|
|
638
649
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -641,6 +652,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
641
652
|
}, {
|
|
642
653
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
643
654
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
655
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
644
656
|
}>>];
|
|
645
657
|
commands: {
|
|
646
658
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -669,6 +681,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
669
681
|
pluginConfiguration: {
|
|
670
682
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
671
683
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
684
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
672
685
|
};
|
|
673
686
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
674
687
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -686,7 +699,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
686
699
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
687
700
|
}) => void;
|
|
688
701
|
};
|
|
689
|
-
|
|
702
|
+
pluginConfiguration?: {
|
|
703
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
704
|
+
} | undefined;
|
|
705
|
+
}, {
|
|
706
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
707
|
+
} | undefined>>];
|
|
690
708
|
actions?: {
|
|
691
709
|
suppressToolbar?: (() => boolean) | undefined;
|
|
692
710
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -695,6 +713,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
695
713
|
}, {
|
|
696
714
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
697
715
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
716
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
698
717
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
699
718
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
700
719
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -717,13 +736,19 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
717
736
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
718
737
|
}) => void;
|
|
719
738
|
};
|
|
720
|
-
|
|
739
|
+
pluginConfiguration?: {
|
|
740
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
741
|
+
} | undefined;
|
|
742
|
+
}, {
|
|
743
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
744
|
+
} | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
721
745
|
sharedState: {
|
|
722
746
|
toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
|
|
723
747
|
};
|
|
724
748
|
pluginConfiguration: {
|
|
725
749
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
726
750
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
751
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
727
752
|
};
|
|
728
753
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
729
754
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -741,7 +766,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
741
766
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
742
767
|
}) => void;
|
|
743
768
|
};
|
|
744
|
-
|
|
769
|
+
pluginConfiguration?: {
|
|
770
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
}, {
|
|
773
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
774
|
+
} | undefined>>];
|
|
745
775
|
actions?: {
|
|
746
776
|
suppressToolbar?: (() => boolean) | undefined;
|
|
747
777
|
unsuppressToolbar?: (() => boolean) | undefined;
|
|
@@ -750,6 +780,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
750
780
|
}, {
|
|
751
781
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
752
782
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
783
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
753
784
|
}>>];
|
|
754
785
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
755
786
|
actions: {
|
|
@@ -835,7 +866,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
835
866
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
836
867
|
}) => void;
|
|
837
868
|
};
|
|
838
|
-
|
|
869
|
+
pluginConfiguration?: {
|
|
870
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
871
|
+
} | undefined;
|
|
872
|
+
}, {
|
|
873
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
874
|
+
} | undefined>>];
|
|
839
875
|
actions: {
|
|
840
876
|
undo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
841
877
|
redo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
@@ -848,7 +884,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
848
884
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
849
885
|
}) => void;
|
|
850
886
|
};
|
|
851
|
-
|
|
887
|
+
pluginConfiguration?: {
|
|
888
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
889
|
+
} | undefined;
|
|
890
|
+
}, {
|
|
891
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
892
|
+
} | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
852
893
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
853
894
|
commands: {
|
|
854
895
|
updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
|
|
@@ -773,7 +773,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
773
773
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
774
774
|
}) => void;
|
|
775
775
|
};
|
|
776
|
-
|
|
776
|
+
pluginConfiguration?: {
|
|
777
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
778
|
+
} | undefined;
|
|
779
|
+
}, {
|
|
780
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
781
|
+
} | undefined>>,
|
|
777
782
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
|
|
778
783
|
pluginConfiguration: import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined;
|
|
779
784
|
dependencies: [
|
|
@@ -803,6 +808,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
803
808
|
pluginConfiguration: {
|
|
804
809
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
805
810
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
811
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
806
812
|
};
|
|
807
813
|
dependencies: [
|
|
808
814
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -823,7 +829,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
823
829
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
824
830
|
}) => void;
|
|
825
831
|
};
|
|
826
|
-
|
|
832
|
+
pluginConfiguration?: {
|
|
833
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
834
|
+
} | undefined;
|
|
835
|
+
}, {
|
|
836
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
837
|
+
} | undefined>>
|
|
827
838
|
];
|
|
828
839
|
actions?: {
|
|
829
840
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -833,6 +844,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
833
844
|
}, {
|
|
834
845
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
835
846
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
847
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
836
848
|
}>>
|
|
837
849
|
];
|
|
838
850
|
commands: {
|
|
@@ -864,6 +876,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
864
876
|
pluginConfiguration: {
|
|
865
877
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
866
878
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
879
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
867
880
|
};
|
|
868
881
|
dependencies: [
|
|
869
882
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -884,7 +897,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
884
897
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
885
898
|
}) => void;
|
|
886
899
|
};
|
|
887
|
-
|
|
900
|
+
pluginConfiguration?: {
|
|
901
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
902
|
+
} | undefined;
|
|
903
|
+
}, {
|
|
904
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
905
|
+
} | undefined>>
|
|
888
906
|
];
|
|
889
907
|
actions?: {
|
|
890
908
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -894,6 +912,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
894
912
|
}, {
|
|
895
913
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
896
914
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
915
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
897
916
|
}>,
|
|
898
917
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
899
918
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -922,7 +941,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
922
941
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
923
942
|
}) => void;
|
|
924
943
|
};
|
|
925
|
-
|
|
944
|
+
pluginConfiguration?: {
|
|
945
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
946
|
+
} | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
949
|
+
} | undefined>>,
|
|
926
950
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
927
951
|
sharedState: {
|
|
928
952
|
toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
|
|
@@ -930,6 +954,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
930
954
|
pluginConfiguration: {
|
|
931
955
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
932
956
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
957
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
933
958
|
};
|
|
934
959
|
dependencies: [
|
|
935
960
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -950,7 +975,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
950
975
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
951
976
|
}) => void;
|
|
952
977
|
};
|
|
953
|
-
|
|
978
|
+
pluginConfiguration?: {
|
|
979
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
980
|
+
} | undefined;
|
|
981
|
+
}, {
|
|
982
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
983
|
+
} | undefined>>
|
|
954
984
|
];
|
|
955
985
|
actions?: {
|
|
956
986
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -960,6 +990,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
960
990
|
}, {
|
|
961
991
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
962
992
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
993
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
963
994
|
}>>
|
|
964
995
|
];
|
|
965
996
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -1057,7 +1088,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1057
1088
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1058
1089
|
}) => void;
|
|
1059
1090
|
};
|
|
1060
|
-
|
|
1091
|
+
pluginConfiguration?: {
|
|
1092
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1093
|
+
} | undefined;
|
|
1094
|
+
}, {
|
|
1095
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1096
|
+
} | undefined>>
|
|
1061
1097
|
];
|
|
1062
1098
|
actions: {
|
|
1063
1099
|
undo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
@@ -1072,7 +1108,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1072
1108
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1073
1109
|
}) => void;
|
|
1074
1110
|
};
|
|
1075
|
-
|
|
1111
|
+
pluginConfiguration?: {
|
|
1112
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1113
|
+
} | undefined;
|
|
1114
|
+
}, {
|
|
1115
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1116
|
+
} | undefined>,
|
|
1076
1117
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
1077
1118
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
1078
1119
|
commands: {
|
|
@@ -825,7 +825,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
825
825
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
826
826
|
}) => void;
|
|
827
827
|
};
|
|
828
|
-
|
|
828
|
+
pluginConfiguration?: {
|
|
829
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
830
|
+
} | undefined;
|
|
831
|
+
}, {
|
|
832
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
833
|
+
} | undefined>>,
|
|
829
834
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
|
|
830
835
|
pluginConfiguration: import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined;
|
|
831
836
|
dependencies: [
|
|
@@ -855,6 +860,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
855
860
|
pluginConfiguration: {
|
|
856
861
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
857
862
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
863
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
858
864
|
};
|
|
859
865
|
dependencies: [
|
|
860
866
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -875,7 +881,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
875
881
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
876
882
|
}) => void;
|
|
877
883
|
};
|
|
878
|
-
|
|
884
|
+
pluginConfiguration?: {
|
|
885
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
886
|
+
} | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
889
|
+
} | undefined>>
|
|
879
890
|
];
|
|
880
891
|
actions?: {
|
|
881
892
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -885,6 +896,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
885
896
|
}, {
|
|
886
897
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
887
898
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
899
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
888
900
|
}>>
|
|
889
901
|
];
|
|
890
902
|
commands: {
|
|
@@ -916,6 +928,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
916
928
|
pluginConfiguration: {
|
|
917
929
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
918
930
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
931
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
919
932
|
};
|
|
920
933
|
dependencies: [
|
|
921
934
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -936,7 +949,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
936
949
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
937
950
|
}) => void;
|
|
938
951
|
};
|
|
939
|
-
|
|
952
|
+
pluginConfiguration?: {
|
|
953
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
954
|
+
} | undefined;
|
|
955
|
+
}, {
|
|
956
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
957
|
+
} | undefined>>
|
|
940
958
|
];
|
|
941
959
|
actions?: {
|
|
942
960
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -946,6 +964,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
946
964
|
}, {
|
|
947
965
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
948
966
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
967
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
949
968
|
}>,
|
|
950
969
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
951
970
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -974,7 +993,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
974
993
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
975
994
|
}) => void;
|
|
976
995
|
};
|
|
977
|
-
|
|
996
|
+
pluginConfiguration?: {
|
|
997
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
998
|
+
} | undefined;
|
|
999
|
+
}, {
|
|
1000
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1001
|
+
} | undefined>>,
|
|
978
1002
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
979
1003
|
sharedState: {
|
|
980
1004
|
toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
|
|
@@ -982,6 +1006,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
982
1006
|
pluginConfiguration: {
|
|
983
1007
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
984
1008
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
1009
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
985
1010
|
};
|
|
986
1011
|
dependencies: [
|
|
987
1012
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1002,7 +1027,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1002
1027
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1003
1028
|
}) => void;
|
|
1004
1029
|
};
|
|
1005
|
-
|
|
1030
|
+
pluginConfiguration?: {
|
|
1031
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
}, {
|
|
1034
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1035
|
+
} | undefined>>
|
|
1006
1036
|
];
|
|
1007
1037
|
actions?: {
|
|
1008
1038
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -1012,6 +1042,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1012
1042
|
}, {
|
|
1013
1043
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
1014
1044
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
1045
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1015
1046
|
}>>
|
|
1016
1047
|
];
|
|
1017
1048
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -1109,7 +1140,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1109
1140
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1110
1141
|
}) => void;
|
|
1111
1142
|
};
|
|
1112
|
-
|
|
1143
|
+
pluginConfiguration?: {
|
|
1144
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1145
|
+
} | undefined;
|
|
1146
|
+
}, {
|
|
1147
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1148
|
+
} | undefined>>
|
|
1113
1149
|
];
|
|
1114
1150
|
actions: {
|
|
1115
1151
|
undo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
@@ -1124,7 +1160,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1124
1160
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1125
1161
|
}) => void;
|
|
1126
1162
|
};
|
|
1127
|
-
|
|
1163
|
+
pluginConfiguration?: {
|
|
1164
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1165
|
+
} | undefined;
|
|
1166
|
+
}, {
|
|
1167
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1168
|
+
} | undefined>,
|
|
1128
1169
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
1129
1170
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
1130
1171
|
commands: {
|
|
@@ -773,7 +773,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
773
773
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
774
774
|
}) => void;
|
|
775
775
|
};
|
|
776
|
-
|
|
776
|
+
pluginConfiguration?: {
|
|
777
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
778
|
+
} | undefined;
|
|
779
|
+
}, {
|
|
780
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
781
|
+
} | undefined>>,
|
|
777
782
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"base", {
|
|
778
783
|
pluginConfiguration: import("@atlaskit/editor-plugins/base").BasePluginOptions | undefined;
|
|
779
784
|
dependencies: [
|
|
@@ -803,6 +808,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
803
808
|
pluginConfiguration: {
|
|
804
809
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
805
810
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
811
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
806
812
|
};
|
|
807
813
|
dependencies: [
|
|
808
814
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -823,7 +829,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
823
829
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
824
830
|
}) => void;
|
|
825
831
|
};
|
|
826
|
-
|
|
832
|
+
pluginConfiguration?: {
|
|
833
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
834
|
+
} | undefined;
|
|
835
|
+
}, {
|
|
836
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
837
|
+
} | undefined>>
|
|
827
838
|
];
|
|
828
839
|
actions?: {
|
|
829
840
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -833,6 +844,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
833
844
|
}, {
|
|
834
845
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
835
846
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
847
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
836
848
|
}>>
|
|
837
849
|
];
|
|
838
850
|
commands: {
|
|
@@ -864,6 +876,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
864
876
|
pluginConfiguration: {
|
|
865
877
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
866
878
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
879
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
867
880
|
};
|
|
868
881
|
dependencies: [
|
|
869
882
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -884,7 +897,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
884
897
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
885
898
|
}) => void;
|
|
886
899
|
};
|
|
887
|
-
|
|
900
|
+
pluginConfiguration?: {
|
|
901
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
902
|
+
} | undefined;
|
|
903
|
+
}, {
|
|
904
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
905
|
+
} | undefined>>
|
|
888
906
|
];
|
|
889
907
|
actions?: {
|
|
890
908
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -894,6 +912,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
894
912
|
}, {
|
|
895
913
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
896
914
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
915
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
897
916
|
}>,
|
|
898
917
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
899
918
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -922,7 +941,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
922
941
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
923
942
|
}) => void;
|
|
924
943
|
};
|
|
925
|
-
|
|
944
|
+
pluginConfiguration?: {
|
|
945
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
946
|
+
} | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
949
|
+
} | undefined>>,
|
|
926
950
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
|
|
927
951
|
sharedState: {
|
|
928
952
|
toolbarDocking: import("packages/editor/editor-plugin-selection-toolbar/dist/types/types").ToolbarDocking;
|
|
@@ -930,6 +954,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
930
954
|
pluginConfiguration: {
|
|
931
955
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
932
956
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
957
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
933
958
|
};
|
|
934
959
|
dependencies: [
|
|
935
960
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -950,7 +975,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
950
975
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
951
976
|
}) => void;
|
|
952
977
|
};
|
|
953
|
-
|
|
978
|
+
pluginConfiguration?: {
|
|
979
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
980
|
+
} | undefined;
|
|
981
|
+
}, {
|
|
982
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
983
|
+
} | undefined>>
|
|
954
984
|
];
|
|
955
985
|
actions?: {
|
|
956
986
|
suppressToolbar?: (() => boolean) | undefined;
|
|
@@ -960,6 +990,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
960
990
|
}, {
|
|
961
991
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
962
992
|
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
993
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
963
994
|
}>>
|
|
964
995
|
];
|
|
965
996
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -1057,7 +1088,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1057
1088
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1058
1089
|
}) => void;
|
|
1059
1090
|
};
|
|
1060
|
-
|
|
1091
|
+
pluginConfiguration?: {
|
|
1092
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1093
|
+
} | undefined;
|
|
1094
|
+
}, {
|
|
1095
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1096
|
+
} | undefined>>
|
|
1061
1097
|
];
|
|
1062
1098
|
actions: {
|
|
1063
1099
|
undo: import("packages/editor/editor-plugin-undo-redo/dist/types/undoRedoPluginType").UndoRedoAction;
|
|
@@ -1072,7 +1108,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1072
1108
|
component: import("@atlaskit/editor-common/types").ToolbarUIComponentFactory;
|
|
1073
1109
|
}) => void;
|
|
1074
1110
|
};
|
|
1075
|
-
|
|
1111
|
+
pluginConfiguration?: {
|
|
1112
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1113
|
+
} | undefined;
|
|
1114
|
+
}, {
|
|
1115
|
+
contextualFormattingEnabled?: boolean | undefined;
|
|
1116
|
+
} | undefined>,
|
|
1076
1117
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
|
|
1077
1118
|
sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
|
|
1078
1119
|
commands: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "204.5.
|
|
3
|
+
"version": "204.5.6",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^21.1.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^102.
|
|
49
|
+
"@atlaskit/editor-common": "^102.12.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
91
91
|
"@atlaskit/collab-provider": "^10.10.0",
|
|
92
92
|
"@atlaskit/editor-plugin-annotation": "^2.1.0",
|
|
93
|
-
"@atlaskit/editor-plugin-card": "^5.
|
|
93
|
+
"@atlaskit/editor-plugin-card": "^5.4.0",
|
|
94
94
|
"@atlaskit/editor-plugin-list": "^4.1.0",
|
|
95
95
|
"@atlaskit/editor-plugin-paste": "^3.1.0",
|
|
96
96
|
"@atlaskit/link-provider": "^2.0.0",
|
|
@@ -281,6 +281,9 @@
|
|
|
281
281
|
"platform_editor_disable_rerender_tracking_jira": {
|
|
282
282
|
"type": "boolean"
|
|
283
283
|
},
|
|
284
|
+
"platform_editor_add_extension_api_to_quick_insert": {
|
|
285
|
+
"type": "boolean"
|
|
286
|
+
},
|
|
284
287
|
"platform-component-visual-refresh": {
|
|
285
288
|
"type": "boolean",
|
|
286
289
|
"referenceOnly": true
|
|
@@ -560,6 +563,14 @@
|
|
|
560
563
|
"platform_editor_scroll_table_flickering_fix": {
|
|
561
564
|
"type": "boolean",
|
|
562
565
|
"referenceOnly": true
|
|
566
|
+
},
|
|
567
|
+
"platform_editor_render_media_viewer_as_inline": {
|
|
568
|
+
"type": "boolean",
|
|
569
|
+
"referenceOnly": true
|
|
570
|
+
},
|
|
571
|
+
"platform_editor_paste_full_table_inside_empty_cell": {
|
|
572
|
+
"type": "boolean",
|
|
573
|
+
"referenceOnly": true
|
|
563
574
|
}
|
|
564
575
|
},
|
|
565
576
|
"stricter": {
|