@atlaskit/editor-core 209.6.2 → 209.6.4
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/create-editor/ReactEditorView.js +8 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/cjs/ui/Appearance/FullPage/getEditorViewModeSync.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +3 -1
- package/dist/cjs/ui/Toolbar/getPrimaryToolbarComponents.js +8 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +8 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/es2019/ui/Appearance/FullPage/getEditorViewModeSync.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +4 -0
- package/dist/es2019/ui/Toolbar/getPrimaryToolbarComponents.js +9 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +8 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/esm/ui/Appearance/FullPage/getEditorViewModeSync.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +3 -1
- package/dist/esm/ui/Toolbar/getPrimaryToolbarComponents.js +9 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/editor-appearances/ChromelessEditor.d.ts +1 -1
- package/dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 209.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#197821](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/197821)
|
|
8
|
+
[`54760d8b5b3ea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/54760d8b5b3ea) -
|
|
9
|
+
Allow popupsBoundariesElement & popupsScrollableElement in ChromelessEditorProps
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 209.6.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`b601133ff4b93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b601133ff4b93) -
|
|
17
|
+
[ux] Adds margin top for embeds on narrow screens.
|
|
18
|
+
|
|
3
19
|
## 209.6.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -121,6 +121,11 @@ function ReactEditorView(props) {
|
|
|
121
121
|
getEditorView: getEditorView,
|
|
122
122
|
fireAnalyticsEvent: handleAnalyticsEvent
|
|
123
123
|
}));
|
|
124
|
+
(0, _react.useLayoutEffect)(function () {
|
|
125
|
+
if (!(0, _platformFeatureFlags.fg)('platform_editor_setup_editorapi_sync')) {
|
|
126
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
127
|
+
}
|
|
128
|
+
}, []);
|
|
124
129
|
var createEditorState = (0, _react.useCallback)(function (options) {
|
|
125
130
|
var _api$editorViewMode;
|
|
126
131
|
var schema;
|
|
@@ -147,7 +152,9 @@ function ReactEditorView(props) {
|
|
|
147
152
|
} else {
|
|
148
153
|
config.current = (0, _createEditor.processPluginsList)((0, _createPluginsList.default)(options.props.preset, props.editorProps, pluginInjectionAPI.current));
|
|
149
154
|
schema = (0, _createSchema.createSchema)(config.current);
|
|
150
|
-
|
|
155
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_setup_editorapi_sync')) {
|
|
156
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
157
|
+
}
|
|
151
158
|
}
|
|
152
159
|
var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
|
|
153
160
|
var plugins = (0, _createEditor.createPMPlugins)({
|
|
@@ -133,9 +133,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
133
133
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
134
134
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
135
135
|
}
|
|
136
|
-
var isEditorToolbarHidden =
|
|
137
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
138
|
-
(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state') && !(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
136
|
+
var isEditorToolbarHidden = (0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
139
137
|
var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
|
|
140
138
|
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
141
139
|
exposure: true
|
|
@@ -10,7 +10,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
10
10
|
// Retrieve the initial config value from the editor view plugin preset
|
|
11
11
|
var getViewModeSync = function getViewModeSync(preset) {
|
|
12
12
|
var _editorViewModePlugin;
|
|
13
|
-
if (!(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state')
|
|
13
|
+
if (!(0, _platformFeatureFlags.fg)('platform_editor_sync_editor_view_mode_state')) {
|
|
14
14
|
return undefined;
|
|
15
15
|
}
|
|
16
16
|
// @ts-expect-error - data is a private property
|
|
@@ -230,7 +230,9 @@ _selectionStyles.boxShadowSelectionStyles]), '&.danger', {
|
|
|
230
230
|
}));
|
|
231
231
|
|
|
232
232
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
233
|
-
var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = (0, _react.css)((0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), (0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER
|
|
233
|
+
var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = (0, _react.css)((0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), {
|
|
234
|
+
marginTop: "var(--ds-space-150, 0.75rem)"
|
|
235
|
+
}), ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
|
|
234
236
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
235
237
|
[
|
|
236
238
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -4,12 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getPrimaryToolbarComponents = void 0;
|
|
7
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
7
8
|
// Primary toolbar doesn't actually use plugin state so the state selector doesn't update as intended
|
|
8
9
|
// We need a proper API to deal with non-prosemirror based state in plugins but until then we can retrieve
|
|
9
10
|
// the latest
|
|
10
11
|
var getPrimaryToolbarComponents = exports.getPrimaryToolbarComponents = function getPrimaryToolbarComponents(editorAPI, components) {
|
|
11
|
-
|
|
12
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_setup_editorapi_sync')) {
|
|
13
|
+
var _editorAPI$primaryToo;
|
|
14
|
+
return {
|
|
15
|
+
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 || (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 || (_editorAPI$primaryToo = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo === void 0 ? void 0 : _editorAPI$primaryToo.components
|
|
16
|
+
};
|
|
17
|
+
}
|
|
12
18
|
return {
|
|
13
|
-
components: components
|
|
19
|
+
components: components
|
|
14
20
|
};
|
|
15
21
|
};
|
|
@@ -93,6 +93,11 @@ export function ReactEditorView(props) {
|
|
|
93
93
|
getEditorView: getEditorView,
|
|
94
94
|
fireAnalyticsEvent: handleAnalyticsEvent
|
|
95
95
|
}));
|
|
96
|
+
useLayoutEffect(() => {
|
|
97
|
+
if (!fg('platform_editor_setup_editorapi_sync')) {
|
|
98
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
99
|
+
}
|
|
100
|
+
}, []);
|
|
96
101
|
const createEditorState = useCallback(options => {
|
|
97
102
|
var _api$editorViewMode;
|
|
98
103
|
let schema;
|
|
@@ -119,7 +124,9 @@ export function ReactEditorView(props) {
|
|
|
119
124
|
} else {
|
|
120
125
|
config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
|
|
121
126
|
schema = createSchema(config.current);
|
|
122
|
-
|
|
127
|
+
if (fg('platform_editor_setup_editorapi_sync')) {
|
|
128
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
129
|
+
}
|
|
123
130
|
}
|
|
124
131
|
const {
|
|
125
132
|
contentTransformerProvider
|
|
@@ -118,9 +118,7 @@ export const FullPageEditor = props => {
|
|
|
118
118
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
119
119
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
120
120
|
}
|
|
121
|
-
let isEditorToolbarHidden =
|
|
122
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
123
|
-
fg('platform_editor_sync_editor_view_mode_state') && !fg('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
121
|
+
let isEditorToolbarHidden = fg('platform_editor_sync_editor_view_mode_state') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
124
122
|
const {
|
|
125
123
|
customPrimaryToolbarComponents
|
|
126
124
|
} = props;
|
|
@@ -2,7 +2,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
2
2
|
// Retrieve the initial config value from the editor view plugin preset
|
|
3
3
|
const getViewModeSync = preset => {
|
|
4
4
|
var _editorViewModePlugin;
|
|
5
|
-
if (!fg('platform_editor_sync_editor_view_mode_state')
|
|
5
|
+
if (!fg('platform_editor_sync_editor_view_mode_state')) {
|
|
6
6
|
return undefined;
|
|
7
7
|
}
|
|
8
8
|
// @ts-expect-error - data is a private property
|
|
@@ -327,6 +327,10 @@ export const smartCardStylesWithSearchMatch = css({
|
|
|
327
327
|
export const smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css({
|
|
328
328
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
329
329
|
[`@container editor-area (max-width: ${akEditorFullPageNarrowBreakout}px)`]: {
|
|
330
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
331
|
+
[`.${SmartCardSharedCssClassName.EMBED_CARD_CONTAINER}`]: {
|
|
332
|
+
marginTop: "var(--ds-space-150, 0.75rem)"
|
|
333
|
+
},
|
|
330
334
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
331
335
|
[`.${SmartCardSharedCssClassName.EMBED_CARD_CONTAINER}.ak-editor-selected-node .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div`]:
|
|
332
336
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
|
|
1
3
|
// Primary toolbar doesn't actually use plugin state so the state selector doesn't update as intended
|
|
2
4
|
// We need a proper API to deal with non-prosemirror based state in plugins but until then we can retrieve
|
|
3
5
|
// the latest
|
|
4
6
|
export const getPrimaryToolbarComponents = (editorAPI, components) => {
|
|
5
|
-
|
|
7
|
+
if (fg('platform_editor_setup_editorapi_sync')) {
|
|
8
|
+
var _editorAPI$primaryToo, _editorAPI$primaryToo2;
|
|
9
|
+
return {
|
|
10
|
+
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 ? void 0 : (_editorAPI$primaryToo2 = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo2 === void 0 ? void 0 : _editorAPI$primaryToo2.components
|
|
11
|
+
};
|
|
12
|
+
}
|
|
6
13
|
return {
|
|
7
|
-
components
|
|
14
|
+
components
|
|
8
15
|
};
|
|
9
16
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "209.6.
|
|
2
|
+
export const version = "209.6.3";
|
|
@@ -111,6 +111,11 @@ export function ReactEditorView(props) {
|
|
|
111
111
|
getEditorView: getEditorView,
|
|
112
112
|
fireAnalyticsEvent: handleAnalyticsEvent
|
|
113
113
|
}));
|
|
114
|
+
useLayoutEffect(function () {
|
|
115
|
+
if (!fg('platform_editor_setup_editorapi_sync')) {
|
|
116
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
117
|
+
}
|
|
118
|
+
}, []);
|
|
114
119
|
var createEditorState = useCallback(function (options) {
|
|
115
120
|
var _api$editorViewMode;
|
|
116
121
|
var schema;
|
|
@@ -137,7 +142,9 @@ export function ReactEditorView(props) {
|
|
|
137
142
|
} else {
|
|
138
143
|
config.current = processPluginsList(createPluginsList(options.props.preset, props.editorProps, pluginInjectionAPI.current));
|
|
139
144
|
schema = createSchema(config.current);
|
|
140
|
-
|
|
145
|
+
if (fg('platform_editor_setup_editorapi_sync')) {
|
|
146
|
+
setEditorAPI(pluginInjectionAPI.current.api());
|
|
147
|
+
}
|
|
141
148
|
}
|
|
142
149
|
var contentTransformerProvider = options.props.editorProps.contentTransformerProvider;
|
|
143
150
|
var plugins = createPMPlugins({
|
|
@@ -123,9 +123,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
123
123
|
if (Array.isArray(primaryToolbarState === null || primaryToolbarState === void 0 ? void 0 : primaryToolbarState.components) && Array.isArray(primaryToolbarComponents)) {
|
|
124
124
|
primaryToolbarComponents = primaryToolbarState.components.concat(primaryToolbarComponents);
|
|
125
125
|
}
|
|
126
|
-
var isEditorToolbarHidden =
|
|
127
|
-
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
128
|
-
fg('platform_editor_sync_editor_view_mode_state') && !fg('platform_editor_sync_editor_view_mode_state_revert') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
126
|
+
var isEditorToolbarHidden = fg('platform_editor_sync_editor_view_mode_state') ? viewMode === 'view' : (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
129
127
|
var customPrimaryToolbarComponents = props.customPrimaryToolbarComponents;
|
|
130
128
|
if (editorExperiment('platform_editor_controls', 'variant1', {
|
|
131
129
|
exposure: true
|
|
@@ -3,7 +3,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
3
3
|
// Retrieve the initial config value from the editor view plugin preset
|
|
4
4
|
var getViewModeSync = function getViewModeSync(preset) {
|
|
5
5
|
var _editorViewModePlugin;
|
|
6
|
-
if (!fg('platform_editor_sync_editor_view_mode_state')
|
|
6
|
+
if (!fg('platform_editor_sync_editor_view_mode_state')) {
|
|
7
7
|
return undefined;
|
|
8
8
|
}
|
|
9
9
|
// @ts-expect-error - data is a private property
|
|
@@ -222,7 +222,9 @@ boxShadowSelectionStyles]), '&.danger', {
|
|
|
222
222
|
}));
|
|
223
223
|
|
|
224
224
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
225
|
-
export var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css(_defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), _defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER
|
|
225
|
+
export var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css(_defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), _defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), {
|
|
226
|
+
marginTop: "var(--ds-space-150, 0.75rem)"
|
|
227
|
+
}), ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
|
|
226
228
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
227
229
|
[
|
|
228
230
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
|
|
1
3
|
// Primary toolbar doesn't actually use plugin state so the state selector doesn't update as intended
|
|
2
4
|
// We need a proper API to deal with non-prosemirror based state in plugins but until then we can retrieve
|
|
3
5
|
// the latest
|
|
4
6
|
export var getPrimaryToolbarComponents = function getPrimaryToolbarComponents(editorAPI, components) {
|
|
5
|
-
|
|
7
|
+
if (fg('platform_editor_setup_editorapi_sync')) {
|
|
8
|
+
var _editorAPI$primaryToo;
|
|
9
|
+
return {
|
|
10
|
+
components: components !== null && components !== void 0 ? components : editorAPI === null || editorAPI === void 0 || (_editorAPI$primaryToo = editorAPI.primaryToolbar) === null || _editorAPI$primaryToo === void 0 || (_editorAPI$primaryToo = _editorAPI$primaryToo.sharedState.currentState()) === null || _editorAPI$primaryToo === void 0 ? void 0 : _editorAPI$primaryToo.components
|
|
11
|
+
};
|
|
12
|
+
}
|
|
6
13
|
return {
|
|
7
|
-
components: components
|
|
14
|
+
components: components
|
|
8
15
|
};
|
|
9
16
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "209.6.
|
|
2
|
+
export var version = "209.6.3";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'quickInsert' | 'performanceTracking' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders' | 'popupsMountPoint'>;
|
|
3
|
+
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'quickInsert' | 'performanceTracking' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type EditorNextProps } from '../types/editor-props';
|
|
3
|
-
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'quickInsert' | 'performanceTracking' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders' | 'popupsMountPoint'>;
|
|
3
|
+
export type ChromelessEditorProps = Pick<EditorNextProps, 'preset' | 'defaultValue' | 'assistiveLabel' | 'disabled' | 'shouldFocus' | 'quickInsert' | 'performanceTracking' | 'secondaryToolbarComponents' | 'featureFlags' | 'onChange' | 'onDestroy' | 'onEditorReady' | 'onSave' | 'onCancel' | 'mentionProvider' | 'contextIdentifierProvider' | 'searchProvider' | 'extensionProviders' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement'>;
|
|
4
4
|
/**
|
|
5
5
|
* Editor component based on `ComposableEditor` which sets the `appearance` to "chromeless".
|
|
6
6
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "209.6.
|
|
3
|
+
"version": "209.6.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -163,9 +163,6 @@
|
|
|
163
163
|
"platform_editor_sync_editor_view_mode_state": {
|
|
164
164
|
"type": "boolean"
|
|
165
165
|
},
|
|
166
|
-
"platform_editor_sync_editor_view_mode_state_revert": {
|
|
167
|
-
"type": "boolean"
|
|
168
|
-
},
|
|
169
166
|
"annotations_defensive_node_name_calculations": {
|
|
170
167
|
"type": "boolean",
|
|
171
168
|
"referenceOnly": "true"
|
|
@@ -267,6 +264,9 @@
|
|
|
267
264
|
"type": "boolean",
|
|
268
265
|
"referenceOnly": true
|
|
269
266
|
},
|
|
267
|
+
"platform_editor_setup_editorapi_sync": {
|
|
268
|
+
"type": "boolean"
|
|
269
|
+
},
|
|
270
270
|
"platform_editor_disable_context_panel_animation": {
|
|
271
271
|
"type": "boolean",
|
|
272
272
|
"referenceOnly": true
|