@atlaskit/editor-core 210.1.4 → 210.1.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 +16 -0
- package/dist/cjs/presets/default.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +15 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +18 -7
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +15 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +4 -0
- package/dist/types/presets/universal.d.ts +4 -0
- package/dist/types/presets/useUniversalPreset.d.ts +4 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +4 -0
- package/dist/types-ts4.5/presets/universal.d.ts +4 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +4 -0
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 210.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4bc05c9f87780`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4bc05c9f87780) -
|
|
8
|
+
[ux] Fix toolbar blink CLS regression
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 210.1.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`e73faa5a52300`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e73faa5a52300) -
|
|
16
|
+
[ux] ED-28735 Fix selection toolbar opening and closing state
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 210.1.4
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -69,7 +69,7 @@ function createDefaultPreset(options) {
|
|
|
69
69
|
return (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin');
|
|
70
70
|
}).maybeAdd(_interaction.interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || (0, _expValEquals.expValEquals)('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
|
|
71
71
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
72
|
-
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([_toolbar.toolbarPlugin, options.toolbar], (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true)).add([_primaryToolbar.primaryToolbarPlugin, {
|
|
72
|
+
}]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([_toolbar.toolbarPlugin, options.toolbar || {}], (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true)).add([_primaryToolbar.primaryToolbarPlugin, {
|
|
73
73
|
contextualFormattingEnabled: isFullPage
|
|
74
74
|
}]).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), {}, {
|
|
75
75
|
includeBlockQuoteAsTextstyleOption: isFullPage
|
|
@@ -118,10 +118,6 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
118
118
|
var toolbarDocking = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'selectionToolbar.toolbarDocking', {
|
|
119
119
|
disabled: (0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
|
|
120
120
|
});
|
|
121
|
-
var _ref3 = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'userPreferences.preferences', {
|
|
122
|
-
disabled: !(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
|
|
123
|
-
}) || {},
|
|
124
|
-
toolbarDockingPosition = _ref3.toolbarDockingPosition;
|
|
125
121
|
if (!(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
|
|
126
122
|
if (!toolbarDocking) {
|
|
127
123
|
var _editorAPI$selectionT, _editorAPI$selectionT2;
|
|
@@ -132,6 +128,21 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
132
128
|
toolbarDocking = (_editorAPI$selectionT = editorAPI === null || editorAPI === void 0 || (_editorAPI$selectionT2 = editorAPI.selectionToolbar) === null || _editorAPI$selectionT2 === void 0 || (_editorAPI$selectionT2 = _editorAPI$selectionT2.sharedState.currentState()) === null || _editorAPI$selectionT2 === void 0 ? void 0 : _editorAPI$selectionT2.toolbarDocking) !== null && _editorAPI$selectionT !== void 0 ? _editorAPI$selectionT : defaultDocking;
|
|
133
129
|
}
|
|
134
130
|
}
|
|
131
|
+
var _ref3 = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'userPreferences.preferences', {
|
|
132
|
+
disabled: !(0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')
|
|
133
|
+
}) || {},
|
|
134
|
+
toolbarDockingPosition = _ref3.toolbarDockingPosition;
|
|
135
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_use_preferences_plugin')) {
|
|
136
|
+
if (!toolbarDockingPosition) {
|
|
137
|
+
var _editorAPI$userPrefer, _editorAPI$userPrefer2;
|
|
138
|
+
// This is a workaround for the rendering issue with the selection toolbar
|
|
139
|
+
// when using useSharedPluginStateWithSelector the state is not yet
|
|
140
|
+
// available when the editor is first loaded.
|
|
141
|
+
// This causes the toolbar to blink creating a layout shift.
|
|
142
|
+
var defaultDockingPosition = props.__livePage ? 'none' : 'top';
|
|
143
|
+
toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 || (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 || (_editorAPI$userPrefer2 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : _editorAPI$userPrefer2.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
135
146
|
var primaryToolbarComponents = props.primaryToolbarComponents;
|
|
136
147
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
137
148
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
@@ -60,7 +60,7 @@ export function createDefaultPreset(options) {
|
|
|
60
60
|
}
|
|
61
61
|
}], () => fg('platform_editor_use_preferences_plugin')).maybeAdd(interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
62
62
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
63
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([toolbarPlugin, options.toolbar], expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true)).add([primaryToolbarPlugin, {
|
|
63
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([toolbarPlugin, options.toolbar || {}], expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true)).add([primaryToolbarPlugin, {
|
|
64
64
|
contextualFormattingEnabled: isFullPage
|
|
65
65
|
}]).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, {
|
|
66
66
|
...options.blockType,
|
|
@@ -86,7 +86,7 @@ const useFullPageEditorPluginsStates = sharedPluginStateHookMigratorFactory(plug
|
|
|
86
86
|
};
|
|
87
87
|
});
|
|
88
88
|
export const FullPageEditor = props => {
|
|
89
|
-
var _scrollContentContain, _scrollContentContain2, _scrollContentContain3, _wrapperElementRef$cu;
|
|
89
|
+
var _scrollContentContain, _toolbarDockingPositi, _scrollContentContain2, _scrollContentContain3, _wrapperElementRef$cu;
|
|
90
90
|
const wrapperElementRef = useMemo(() => props.innerRef, [props.innerRef]);
|
|
91
91
|
const scrollContentContainerRef = useRef(null);
|
|
92
92
|
const showKeyline = useShowKeyline(scrollContentContainerRef);
|
|
@@ -102,11 +102,6 @@ export const FullPageEditor = props => {
|
|
|
102
102
|
let toolbarDocking = useSharedPluginStateSelector(editorAPI, 'selectionToolbar.toolbarDocking', {
|
|
103
103
|
disabled: fg('platform_editor_use_preferences_plugin')
|
|
104
104
|
});
|
|
105
|
-
const {
|
|
106
|
-
toolbarDockingPosition
|
|
107
|
-
} = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences', {
|
|
108
|
-
disabled: !fg('platform_editor_use_preferences_plugin')
|
|
109
|
-
}) || {};
|
|
110
105
|
if (!fg('platform_editor_use_preferences_plugin')) {
|
|
111
106
|
if (!toolbarDocking) {
|
|
112
107
|
var _editorAPI$selectionT, _editorAPI$selectionT2, _editorAPI$selectionT3;
|
|
@@ -117,6 +112,22 @@ export const FullPageEditor = props => {
|
|
|
117
112
|
toolbarDocking = (_editorAPI$selectionT = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$selectionT2 = editorAPI.selectionToolbar) === null || _editorAPI$selectionT2 === void 0 ? void 0 : (_editorAPI$selectionT3 = _editorAPI$selectionT2.sharedState.currentState()) === null || _editorAPI$selectionT3 === void 0 ? void 0 : _editorAPI$selectionT3.toolbarDocking) !== null && _editorAPI$selectionT !== void 0 ? _editorAPI$selectionT : defaultDocking;
|
|
118
113
|
}
|
|
119
114
|
}
|
|
115
|
+
let {
|
|
116
|
+
toolbarDockingPosition
|
|
117
|
+
} = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences', {
|
|
118
|
+
disabled: !fg('platform_editor_use_preferences_plugin')
|
|
119
|
+
}) || {};
|
|
120
|
+
if (fg('platform_editor_use_preferences_plugin')) {
|
|
121
|
+
if (!toolbarDockingPosition) {
|
|
122
|
+
var _editorAPI$userPrefer, _editorAPI$userPrefer2, _editorAPI$userPrefer3;
|
|
123
|
+
// This is a workaround for the rendering issue with the selection toolbar
|
|
124
|
+
// when using useSharedPluginStateWithSelector the state is not yet
|
|
125
|
+
// available when the editor is first loaded.
|
|
126
|
+
// This causes the toolbar to blink creating a layout shift.
|
|
127
|
+
const defaultDockingPosition = props.__livePage ? 'none' : 'top';
|
|
128
|
+
toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : (_editorAPI$userPrefer3 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer3 === void 0 ? void 0 : _editorAPI$userPrefer3.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
120
131
|
let primaryToolbarComponents = props.primaryToolbarComponents;
|
|
121
132
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
122
133
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
@@ -162,7 +173,7 @@ export const FullPageEditor = props => {
|
|
|
162
173
|
}, !isEditorToolbarHidden && (expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true) ? jsx(IntlProvider, {
|
|
163
174
|
locale: "en"
|
|
164
175
|
}, jsx(FullPageToolbarNext, {
|
|
165
|
-
toolbarDockingPosition: toolbarDockingPosition !== null &&
|
|
176
|
+
toolbarDockingPosition: (_toolbarDockingPositi = toolbarDockingPosition) !== null && _toolbarDockingPositi !== void 0 ? _toolbarDockingPositi : toolbarDocking,
|
|
166
177
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
167
178
|
editorAPI: editorAPI,
|
|
168
179
|
editorView: props.editorView,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "210.1.
|
|
2
|
+
export const version = "210.1.5";
|
|
@@ -64,7 +64,7 @@ export function createDefaultPreset(options) {
|
|
|
64
64
|
return fg('platform_editor_use_preferences_plugin');
|
|
65
65
|
}).maybeAdd(interactionPlugin, Boolean(options === null || options === void 0 ? void 0 : options.__livePage) || expValEquals('platform_editor_no_cursor_on_edit_page_init', 'isEnabled', true)).add(compositionPlugin).add([contextIdentifierPlugin, {
|
|
66
66
|
contextIdentifierProvider: options.contextIdentifierProvider
|
|
67
|
-
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([toolbarPlugin, options.toolbar], expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true)).add([primaryToolbarPlugin, {
|
|
67
|
+
}]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(options.allowUndoRedoButtons)).maybeAdd([toolbarPlugin, options.toolbar || {}], expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true)).add([primaryToolbarPlugin, {
|
|
68
68
|
contextualFormattingEnabled: isFullPage
|
|
69
69
|
}]).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), {}, {
|
|
70
70
|
includeBlockQuoteAsTextstyleOption: isFullPage
|
|
@@ -108,10 +108,6 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
108
108
|
var toolbarDocking = useSharedPluginStateSelector(editorAPI, 'selectionToolbar.toolbarDocking', {
|
|
109
109
|
disabled: fg('platform_editor_use_preferences_plugin')
|
|
110
110
|
});
|
|
111
|
-
var _ref3 = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences', {
|
|
112
|
-
disabled: !fg('platform_editor_use_preferences_plugin')
|
|
113
|
-
}) || {},
|
|
114
|
-
toolbarDockingPosition = _ref3.toolbarDockingPosition;
|
|
115
111
|
if (!fg('platform_editor_use_preferences_plugin')) {
|
|
116
112
|
if (!toolbarDocking) {
|
|
117
113
|
var _editorAPI$selectionT, _editorAPI$selectionT2;
|
|
@@ -122,6 +118,21 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
122
118
|
toolbarDocking = (_editorAPI$selectionT = editorAPI === null || editorAPI === void 0 || (_editorAPI$selectionT2 = editorAPI.selectionToolbar) === null || _editorAPI$selectionT2 === void 0 || (_editorAPI$selectionT2 = _editorAPI$selectionT2.sharedState.currentState()) === null || _editorAPI$selectionT2 === void 0 ? void 0 : _editorAPI$selectionT2.toolbarDocking) !== null && _editorAPI$selectionT !== void 0 ? _editorAPI$selectionT : defaultDocking;
|
|
123
119
|
}
|
|
124
120
|
}
|
|
121
|
+
var _ref3 = useSharedPluginStateSelector(editorAPI, 'userPreferences.preferences', {
|
|
122
|
+
disabled: !fg('platform_editor_use_preferences_plugin')
|
|
123
|
+
}) || {},
|
|
124
|
+
toolbarDockingPosition = _ref3.toolbarDockingPosition;
|
|
125
|
+
if (fg('platform_editor_use_preferences_plugin')) {
|
|
126
|
+
if (!toolbarDockingPosition) {
|
|
127
|
+
var _editorAPI$userPrefer, _editorAPI$userPrefer2;
|
|
128
|
+
// This is a workaround for the rendering issue with the selection toolbar
|
|
129
|
+
// when using useSharedPluginStateWithSelector the state is not yet
|
|
130
|
+
// available when the editor is first loaded.
|
|
131
|
+
// This causes the toolbar to blink creating a layout shift.
|
|
132
|
+
var defaultDockingPosition = props.__livePage ? 'none' : 'top';
|
|
133
|
+
toolbarDockingPosition = (_editorAPI$userPrefer = editorAPI === null || editorAPI === void 0 || (_editorAPI$userPrefer2 = editorAPI.userPreferences) === null || _editorAPI$userPrefer2 === void 0 || (_editorAPI$userPrefer2 = _editorAPI$userPrefer2.actions.getUserPreferences()) === null || _editorAPI$userPrefer2 === void 0 ? void 0 : _editorAPI$userPrefer2.toolbarDockingPosition) !== null && _editorAPI$userPrefer !== void 0 ? _editorAPI$userPrefer : defaultDockingPosition;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
125
136
|
var primaryToolbarComponents = props.primaryToolbarComponents;
|
|
126
137
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
127
138
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "210.1.
|
|
2
|
+
export var version = "210.1.5";
|
|
@@ -487,6 +487,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
487
487
|
pluginConfiguration?: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions;
|
|
488
488
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
489
489
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
490
|
+
sharedState: {
|
|
491
|
+
shouldShowToolbar: boolean;
|
|
492
|
+
};
|
|
490
493
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
|
|
491
494
|
actions: {
|
|
492
495
|
registerComponents: (toolbarComponents: Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>) => void;
|
|
@@ -551,6 +554,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
551
554
|
pluginConfiguration: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions;
|
|
552
555
|
actions: {
|
|
553
556
|
updateUserPreference: (key: import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey, value: import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences[import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey]) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
557
|
+
getUserPreferences: () => import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences | undefined;
|
|
554
558
|
};
|
|
555
559
|
sharedState: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesSharedState;
|
|
556
560
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
|
|
@@ -545,6 +545,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
545
545
|
pluginConfiguration?: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions;
|
|
546
546
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
547
547
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
548
|
+
sharedState: {
|
|
549
|
+
shouldShowToolbar: boolean;
|
|
550
|
+
};
|
|
548
551
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
|
|
549
552
|
actions: {
|
|
550
553
|
registerComponents: (toolbarComponents: Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>) => void;
|
|
@@ -609,6 +612,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
609
612
|
pluginConfiguration: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions;
|
|
610
613
|
actions: {
|
|
611
614
|
updateUserPreference: (key: import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey, value: import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences[import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey]) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
615
|
+
getUserPreferences: () => import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences | undefined;
|
|
612
616
|
};
|
|
613
617
|
sharedState: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesSharedState;
|
|
614
618
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
|
|
@@ -487,6 +487,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
487
487
|
pluginConfiguration?: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions;
|
|
488
488
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
489
489
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
490
|
+
sharedState: {
|
|
491
|
+
shouldShowToolbar: boolean;
|
|
492
|
+
};
|
|
490
493
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePlugin>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/connectivity").ConnectivityPlugin>];
|
|
491
494
|
actions: {
|
|
492
495
|
registerComponents: (toolbarComponents: Array<import("@atlaskit/editor-toolbar-model").RegisterComponent>) => void;
|
|
@@ -551,6 +554,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
551
554
|
pluginConfiguration: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions;
|
|
552
555
|
actions: {
|
|
553
556
|
updateUserPreference: (key: import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey, value: import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences[import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey]) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
557
|
+
getUserPreferences: () => import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences | undefined;
|
|
554
558
|
};
|
|
555
559
|
sharedState: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesSharedState;
|
|
556
560
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/analytics").AnalyticsPlugin>];
|
|
@@ -698,6 +698,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
698
698
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>,
|
|
699
699
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
700
700
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
701
|
+
sharedState: {
|
|
702
|
+
shouldShowToolbar: boolean;
|
|
703
|
+
};
|
|
701
704
|
dependencies: [
|
|
702
705
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
|
|
703
706
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>,
|
|
@@ -785,6 +788,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
785
788
|
pluginConfiguration: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions;
|
|
786
789
|
actions: {
|
|
787
790
|
updateUserPreference: (key: import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey, value: import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences[import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey]) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
791
|
+
getUserPreferences: () => import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences | undefined;
|
|
788
792
|
};
|
|
789
793
|
sharedState: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesSharedState;
|
|
790
794
|
dependencies: [
|
|
@@ -756,6 +756,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
756
756
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>,
|
|
757
757
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
758
758
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
759
|
+
sharedState: {
|
|
760
|
+
shouldShowToolbar: boolean;
|
|
761
|
+
};
|
|
759
762
|
dependencies: [
|
|
760
763
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
|
|
761
764
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>,
|
|
@@ -843,6 +846,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
843
846
|
pluginConfiguration: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions;
|
|
844
847
|
actions: {
|
|
845
848
|
updateUserPreference: (key: import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey, value: import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences[import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey]) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
849
|
+
getUserPreferences: () => import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences | undefined;
|
|
846
850
|
};
|
|
847
851
|
sharedState: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesSharedState;
|
|
848
852
|
dependencies: [
|
|
@@ -698,6 +698,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
698
698
|
}, import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginOptions | undefined>,
|
|
699
699
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
|
|
700
700
|
pluginConfiguration?: import("@atlaskit/editor-plugins/toolbar").ToolbarPluginOptions;
|
|
701
|
+
sharedState: {
|
|
702
|
+
shouldShowToolbar: boolean;
|
|
703
|
+
};
|
|
701
704
|
dependencies: [
|
|
702
705
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/user-intent").UserIntentPlugin>,
|
|
703
706
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/selection").SelectionPlugin>,
|
|
@@ -785,6 +788,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
785
788
|
pluginConfiguration: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions;
|
|
786
789
|
actions: {
|
|
787
790
|
updateUserPreference: (key: import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey, value: import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences[import("packages/editor/editor-plugin-user-preferences/dist/types/userPreferencesPluginType").PrefKey]) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
791
|
+
getUserPreferences: () => import("@atlaskit/editor-common/user-preferences").ResolvedUserPreferences | undefined;
|
|
788
792
|
};
|
|
789
793
|
sharedState: import("@atlaskit/editor-plugin-user-preferences").UserPreferencesSharedState;
|
|
790
794
|
dependencies: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "210.1.
|
|
3
|
+
"version": "210.1.6",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
64
64
|
"@atlaskit/react-ufo": "^4.4.0",
|
|
65
65
|
"@atlaskit/task-decision": "^19.2.0",
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^11.5.0",
|
|
67
67
|
"@atlaskit/tokens": "^6.0.0",
|
|
68
68
|
"@atlaskit/tooltip": "^20.4.0",
|
|
69
69
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -104,13 +104,12 @@
|
|
|
104
104
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
105
105
|
"@atlaskit/modal-dialog": "^14.3.0",
|
|
106
106
|
"@atlaskit/primitives": "^14.11.0",
|
|
107
|
-
"@atlaskit/renderer": "^120.
|
|
107
|
+
"@atlaskit/renderer": "^120.5.0",
|
|
108
108
|
"@atlaskit/section-message": "^8.5.0",
|
|
109
109
|
"@atlaskit/smart-card": "^40.12.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
111
111
|
"@atlaskit/toggle": "^15.1.0",
|
|
112
112
|
"@atlaskit/util-data-test": "^18.1.0",
|
|
113
|
-
"@atlaskit/visual-regression": "workspace:^",
|
|
114
113
|
"@atlassian/adf-schema-json": "^1.31.0",
|
|
115
114
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
116
115
|
"@atlassian/search-provider": "^4.0.0",
|