@atlaskit/editor-core 189.1.13 → 189.2.0
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 +18 -0
- package/dist/cjs/composable-editor/editor-internal.js +22 -1
- package/dist/cjs/create-editor/feature-flags-from-props.js +4 -5
- package/dist/cjs/i18n/cs.js +0 -1
- package/dist/cjs/i18n/da.js +0 -1
- package/dist/cjs/i18n/de.js +0 -1
- package/dist/cjs/i18n/en.js +0 -1
- package/dist/cjs/i18n/en_GB.js +0 -1
- package/dist/cjs/i18n/en_ZZ.js +0 -1
- package/dist/cjs/i18n/es.js +0 -1
- package/dist/cjs/i18n/fi.js +0 -1
- package/dist/cjs/i18n/fr.js +0 -1
- package/dist/cjs/i18n/hu.js +0 -1
- package/dist/cjs/i18n/it.js +0 -1
- package/dist/cjs/i18n/ja.js +0 -1
- package/dist/cjs/i18n/ko.js +0 -1
- package/dist/cjs/i18n/nb.js +0 -1
- package/dist/cjs/i18n/nl.js +0 -1
- package/dist/cjs/i18n/pl.js +0 -1
- package/dist/cjs/i18n/pt_BR.js +0 -1
- package/dist/cjs/i18n/ru.js +0 -1
- package/dist/cjs/i18n/sv.js +0 -1
- package/dist/cjs/i18n/th.js +0 -1
- package/dist/cjs/i18n/tr.js +0 -1
- package/dist/cjs/i18n/uk.js +0 -1
- package/dist/cjs/i18n/vi.js +0 -1
- package/dist/cjs/i18n/zh.js +0 -1
- package/dist/cjs/i18n/zh_TW.js +0 -1
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/presets/universal.js +3 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +10 -8
- package/dist/cjs/ui/ContentStyles/index.js +7 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +25 -2
- package/dist/es2019/create-editor/feature-flags-from-props.js +4 -5
- package/dist/es2019/i18n/cs.js +0 -1
- package/dist/es2019/i18n/da.js +0 -1
- package/dist/es2019/i18n/de.js +0 -1
- package/dist/es2019/i18n/en.js +0 -1
- package/dist/es2019/i18n/en_GB.js +0 -1
- package/dist/es2019/i18n/en_ZZ.js +0 -1
- package/dist/es2019/i18n/es.js +0 -1
- package/dist/es2019/i18n/fi.js +0 -1
- package/dist/es2019/i18n/fr.js +0 -1
- package/dist/es2019/i18n/hu.js +0 -1
- package/dist/es2019/i18n/it.js +0 -1
- package/dist/es2019/i18n/ja.js +0 -1
- package/dist/es2019/i18n/ko.js +0 -1
- package/dist/es2019/i18n/nb.js +0 -1
- package/dist/es2019/i18n/nl.js +0 -1
- package/dist/es2019/i18n/pl.js +0 -1
- package/dist/es2019/i18n/pt_BR.js +0 -1
- package/dist/es2019/i18n/ru.js +0 -1
- package/dist/es2019/i18n/sv.js +0 -1
- package/dist/es2019/i18n/th.js +0 -1
- package/dist/es2019/i18n/tr.js +0 -1
- package/dist/es2019/i18n/uk.js +0 -1
- package/dist/es2019/i18n/vi.js +0 -1
- package/dist/es2019/i18n/zh.js +0 -1
- package/dist/es2019/i18n/zh_TW.js +0 -1
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/presets/universal.js +3 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +10 -8
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +23 -2
- package/dist/esm/create-editor/feature-flags-from-props.js +4 -5
- package/dist/esm/i18n/cs.js +0 -1
- package/dist/esm/i18n/da.js +0 -1
- package/dist/esm/i18n/de.js +0 -1
- package/dist/esm/i18n/en.js +0 -1
- package/dist/esm/i18n/en_GB.js +0 -1
- package/dist/esm/i18n/en_ZZ.js +0 -1
- package/dist/esm/i18n/es.js +0 -1
- package/dist/esm/i18n/fi.js +0 -1
- package/dist/esm/i18n/fr.js +0 -1
- package/dist/esm/i18n/hu.js +0 -1
- package/dist/esm/i18n/it.js +0 -1
- package/dist/esm/i18n/ja.js +0 -1
- package/dist/esm/i18n/ko.js +0 -1
- package/dist/esm/i18n/nb.js +0 -1
- package/dist/esm/i18n/nl.js +0 -1
- package/dist/esm/i18n/pl.js +0 -1
- package/dist/esm/i18n/pt_BR.js +0 -1
- package/dist/esm/i18n/ru.js +0 -1
- package/dist/esm/i18n/sv.js +0 -1
- package/dist/esm/i18n/th.js +0 -1
- package/dist/esm/i18n/tr.js +0 -1
- package/dist/esm/i18n/uk.js +0 -1
- package/dist/esm/i18n/vi.js +0 -1
- package/dist/esm/i18n/zh.js +0 -1
- package/dist/esm/i18n/zh_TW.js +0 -1
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/presets/universal.js +3 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +10 -8
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/get-ui-component.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +0 -1
- package/dist/types/i18n/da.d.ts +0 -1
- package/dist/types/i18n/de.d.ts +0 -1
- package/dist/types/i18n/en.d.ts +0 -1
- package/dist/types/i18n/en_GB.d.ts +0 -1
- package/dist/types/i18n/en_ZZ.d.ts +0 -1
- package/dist/types/i18n/es.d.ts +0 -1
- package/dist/types/i18n/fi.d.ts +0 -1
- package/dist/types/i18n/fr.d.ts +0 -1
- package/dist/types/i18n/hu.d.ts +0 -1
- package/dist/types/i18n/it.d.ts +0 -1
- package/dist/types/i18n/ja.d.ts +0 -1
- package/dist/types/i18n/ko.d.ts +0 -1
- package/dist/types/i18n/nb.d.ts +0 -1
- package/dist/types/i18n/nl.d.ts +0 -1
- package/dist/types/i18n/pl.d.ts +0 -1
- package/dist/types/i18n/pt_BR.d.ts +0 -1
- package/dist/types/i18n/ru.d.ts +0 -1
- package/dist/types/i18n/sv.d.ts +0 -1
- package/dist/types/i18n/th.d.ts +0 -1
- package/dist/types/i18n/tr.d.ts +0 -1
- package/dist/types/i18n/uk.d.ts +0 -1
- package/dist/types/i18n/vi.d.ts +0 -1
- package/dist/types/i18n/zh.d.ts +0 -1
- package/dist/types/i18n/zh_TW.d.ts +0 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/insert-block/types.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
- package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -1
- package/dist/types-ts4.5/i18n/da.d.ts +0 -1
- package/dist/types-ts4.5/i18n/de.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -1
- package/dist/types-ts4.5/i18n/es.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -1
- package/dist/types-ts4.5/i18n/it.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -1
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -1
- package/dist/types-ts4.5/i18n/th.d.ts +0 -1
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -1
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +1 -1
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/{plugins/panel/styles.d.ts → ui/ContentStyles/panel.d.ts} +1 -1
- package/package.json +6 -5
- package/report.api.md +1 -8
- package/tmp/api-report-tmp.d.ts +1 -8
- package/dist/cjs/plugins/panel/actions.js +0 -125
- package/dist/cjs/plugins/panel/index.js +0 -215
- package/dist/cjs/plugins/panel/message.js +0 -44
- package/dist/cjs/plugins/panel/nodeviews/panel.js +0 -94
- package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +0 -81
- package/dist/cjs/plugins/panel/pm-plugins/main.js +0 -28
- package/dist/cjs/plugins/panel/toolbar.js +0 -293
- package/dist/cjs/plugins/panel/types.js +0 -8
- package/dist/cjs/plugins/panel/utils.js +0 -53
- package/dist/es2019/plugins/panel/actions.js +0 -116
- package/dist/es2019/plugins/panel/index.js +0 -192
- package/dist/es2019/plugins/panel/message.js +0 -38
- package/dist/es2019/plugins/panel/nodeviews/panel.js +0 -82
- package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +0 -82
- package/dist/es2019/plugins/panel/pm-plugins/main.js +0 -21
- package/dist/es2019/plugins/panel/toolbar.js +0 -280
- package/dist/es2019/plugins/panel/types.js +0 -2
- package/dist/es2019/plugins/panel/utils.js +0 -48
- package/dist/esm/plugins/panel/actions.js +0 -116
- package/dist/esm/plugins/panel/index.js +0 -209
- package/dist/esm/plugins/panel/message.js +0 -38
- package/dist/esm/plugins/panel/nodeviews/panel.js +0 -87
- package/dist/esm/plugins/panel/pm-plugins/keymaps.js +0 -74
- package/dist/esm/plugins/panel/pm-plugins/main.js +0 -22
- package/dist/esm/plugins/panel/toolbar.js +0 -287
- package/dist/esm/plugins/panel/types.js +0 -2
- package/dist/esm/plugins/panel/utils.js +0 -46
- package/dist/types/plugins/panel/actions.d.ts +0 -12
- package/dist/types/plugins/panel/index.d.ts +0 -17
- package/dist/types/plugins/panel/message.d.ts +0 -37
- package/dist/types/plugins/panel/nodeviews/panel.d.ts +0 -36
- package/dist/types/plugins/panel/pm-plugins/keymaps.d.ts +0 -3
- package/dist/types/plugins/panel/pm-plugins/main.d.ts +0 -11
- package/dist/types/plugins/panel/toolbar.d.ts +0 -16
- package/dist/types/plugins/panel/types.d.ts +0 -21
- package/dist/types/plugins/panel/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/panel/actions.d.ts +0 -12
- package/dist/types-ts4.5/plugins/panel/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/panel/message.d.ts +0 -37
- package/dist/types-ts4.5/plugins/panel/nodeviews/panel.d.ts +0 -36
- package/dist/types-ts4.5/plugins/panel/pm-plugins/keymaps.d.ts +0 -3
- package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +0 -11
- package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +0 -16
- package/dist/types-ts4.5/plugins/panel/types.d.ts +0 -21
- package/dist/types-ts4.5/plugins/panel/utils.d.ts +0 -5
- /package/dist/cjs/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
- /package/dist/es2019/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
- /package/dist/esm/{plugins/panel/styles.js → ui/ContentStyles/panel.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 189.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#42452](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42452) [`bdbe13c80c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bdbe13c80c9) - ED-19900 Removing indentationButtonsInTheToolbar FF fallback from showIndentationButtons editor prop.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#42352](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42352) [`965649a4121`](https://bitbucket.org/atlassian/atlassian-frontend/commits/965649a4121) - Decouple find replace prop from the full page toolbar.
|
|
12
|
+
- [#42604](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42604) [`182627d0f5e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/182627d0f5e) - Extracted panel plugin from editor-core as @atlaskit/editor-plugin-panel
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 189.1.15
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#42584](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42584) [`2191409c070`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2191409c070) - Decouple panel plugin from editor-core.
|
|
20
|
+
|
|
3
21
|
## 189.1.13
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.EditorInternal = EditorInternal;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
8
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
10
|
var _react = require("react");
|
|
10
11
|
var _react2 = require("@emotion/react");
|
|
@@ -74,7 +75,7 @@ function EditorInternal(_ref) {
|
|
|
74
75
|
onAnalyticsEvent: handleAnalyticsEvent,
|
|
75
76
|
useAnalyticsContext: props.UNSAFE_useAnalyticsContext,
|
|
76
77
|
render: function render(portalProviderAPI) {
|
|
77
|
-
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(
|
|
78
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(ReactEditorViewContextWrapper, {
|
|
78
79
|
editorProps: overriddenEditorProps,
|
|
79
80
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
80
81
|
portalProviderAPI: portalProviderAPI,
|
|
@@ -132,4 +133,24 @@ function EditorInternal(_ref) {
|
|
|
132
133
|
}));
|
|
133
134
|
}
|
|
134
135
|
}))))));
|
|
136
|
+
}
|
|
137
|
+
function ReactEditorViewContextWrapper(props) {
|
|
138
|
+
var setInternalEditorAPI = (0, _context.useSetPresetContext)();
|
|
139
|
+
var setExternalEditorAPI = props.setEditorApi;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* We use the context to retrieve the editorAPI
|
|
143
|
+
* externally for consumers via `usePreset`.
|
|
144
|
+
*
|
|
145
|
+
* However we also may need to retrieve this value internally via context
|
|
146
|
+
* so we should also set the value for the `EditorContext` that is used in
|
|
147
|
+
* `EditorInternal`.
|
|
148
|
+
*/
|
|
149
|
+
var setEditorAPI = (0, _react.useCallback)(function (api) {
|
|
150
|
+
setInternalEditorAPI === null || setInternalEditorAPI === void 0 || setInternalEditorAPI(api);
|
|
151
|
+
setExternalEditorAPI === null || setExternalEditorAPI === void 0 || setExternalEditorAPI(api);
|
|
152
|
+
}, [setInternalEditorAPI, setExternalEditorAPI]);
|
|
153
|
+
return (0, _react2.jsx)(_ReactEditorView.default, (0, _extends2.default)({}, props, {
|
|
154
|
+
setEditorApi: setEditorAPI
|
|
155
|
+
}));
|
|
135
156
|
}
|
|
@@ -32,7 +32,7 @@ function getSpellCheck(featureFlags) {
|
|
|
32
32
|
* which is used by both current and archv3 editors.
|
|
33
33
|
*/
|
|
34
34
|
function createFeatureFlagsFromProps(props) {
|
|
35
|
-
var _props$allowLayouts, _props$performanceTra, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20
|
|
35
|
+
var _props$allowLayouts, _props$performanceTra, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20;
|
|
36
36
|
var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(props.featureFlags);
|
|
37
37
|
return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
|
|
38
38
|
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
@@ -54,13 +54,12 @@ function createFeatureFlagsFromProps(props) {
|
|
|
54
54
|
twoLineEditorToolbar: Boolean(typeof ((_props$featureFlags13 = props.featureFlags) === null || _props$featureFlags13 === void 0 ? void 0 : _props$featureFlags13.twoLineEditorToolbar) === 'boolean' ? !!((_props$featureFlags14 = props.featureFlags) !== null && _props$featureFlags14 !== void 0 && _props$featureFlags14.twoLineEditorToolbar) : false),
|
|
55
55
|
useNativeCollabPlugin: Boolean(typeof ((_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.useNativePlugin) === 'boolean' ? !!((_props$collabEdit2 = props.collabEdit) !== null && _props$collabEdit2 !== void 0 && _props$collabEdit2.useNativePlugin) : false),
|
|
56
56
|
showHoverPreview: Boolean(typeof ((_props$featureFlags15 = props.featureFlags) === null || _props$featureFlags15 === void 0 ? void 0 : _props$featureFlags15.showHoverPreview) === 'boolean' ? !!((_props$featureFlags16 = props.featureFlags) !== null && _props$featureFlags16 !== void 0 && _props$featureFlags16.showHoverPreview) : false),
|
|
57
|
-
|
|
58
|
-
floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags19 = props.featureFlags) === null || _props$featureFlags19 === void 0 ? void 0 : _props$featureFlags19['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
|
|
57
|
+
floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags17 = props.featureFlags) === null || _props$featureFlags17 === void 0 ? void 0 : _props$featureFlags17['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
|
|
59
58
|
disableSpellcheckByBrowser: getSpellCheck(props.featureFlags),
|
|
60
59
|
// Including fallback to props.featureFlags so that mobile feature flags
|
|
61
60
|
// are included (they are not kebab cased)
|
|
62
|
-
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$
|
|
61
|
+
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags18 = props.featureFlags) === null || _props$featureFlags18 === void 0 ? void 0 : _props$featureFlags18.restartNumberedLists) === true,
|
|
63
62
|
lpLinkPickerFocusTrap: Boolean(normalizedFeatureFlags.lpLinkPickerFocusTrap),
|
|
64
|
-
preventPopupOverflow: Boolean(typeof ((_props$
|
|
63
|
+
preventPopupOverflow: Boolean(typeof ((_props$featureFlags19 = props.featureFlags) === null || _props$featureFlags19 === void 0 ? void 0 : _props$featureFlags19['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags20 = props.featureFlags) !== null && _props$featureFlags20 !== void 0 && _props$featureFlags20['prevent-popup-overflow']) : false)
|
|
65
64
|
});
|
|
66
65
|
}
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -71,7 +71,6 @@ var _default = exports.default = {
|
|
|
71
71
|
'fabric.editor.single': 'Jeden sloupec',
|
|
72
72
|
'fabric.editor.success': 'Úspěch',
|
|
73
73
|
'fabric.editor.taskPlaceholder': 'Napište svou akci a použitím „@“ ji někomu přidělte.',
|
|
74
|
-
'fabric.editor.textColor': 'Barva textu',
|
|
75
74
|
'fabric.editor.threeColumns': 'Tři sloupce',
|
|
76
75
|
'fabric.editor.threeColumnsWithSidebars': 'Tři sloupce s postranními panely',
|
|
77
76
|
'fabric.editor.twoColumns': 'Dva sloupce',
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Enkelt kolonne',
|
|
71
71
|
'fabric.editor.success': 'Succes',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Indtast din handling, og brug "@" for at tildele til nogen.',
|
|
73
|
-
'fabric.editor.textColor': 'Tekstfarve',
|
|
74
73
|
'fabric.editor.threeColumns': 'Tre kolonner',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Tre kolonner med sidebjælker',
|
|
76
75
|
'fabric.editor.twoColumns': 'To kolonner',
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Einzelne Spalte',
|
|
71
71
|
'fabric.editor.success': 'Erfolgreich',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Geben Sie Ihre Aktion ein und weisen Sie sie mithilfe von „@” jemandem zu.',
|
|
73
|
-
'fabric.editor.textColor': 'Textfarbe',
|
|
74
73
|
'fabric.editor.threeColumns': 'Drei Spalten',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Drei Spalten mit Seitenleisten',
|
|
76
75
|
'fabric.editor.twoColumns': 'Zwei Spalten',
|
package/dist/cjs/i18n/en.js
CHANGED
|
@@ -72,7 +72,6 @@ var _default = exports.default = {
|
|
|
72
72
|
'fabric.editor.single': 'Single column',
|
|
73
73
|
'fabric.editor.success': 'Success',
|
|
74
74
|
'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
|
|
75
|
-
'fabric.editor.textColor': 'Text color',
|
|
76
75
|
'fabric.editor.threeColumns': 'Three columns',
|
|
77
76
|
'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
|
|
78
77
|
'fabric.editor.twoColumns': 'Two columns',
|
package/dist/cjs/i18n/en_GB.js
CHANGED
|
@@ -72,7 +72,6 @@ var _default = exports.default = {
|
|
|
72
72
|
'fabric.editor.single': 'Single column',
|
|
73
73
|
'fabric.editor.success': 'Success',
|
|
74
74
|
'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
|
|
75
|
-
'fabric.editor.textColor': 'Text colour',
|
|
76
75
|
'fabric.editor.threeColumns': 'Three columns',
|
|
77
76
|
'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
|
|
78
77
|
'fabric.editor.twoColumns': 'Two columns',
|
package/dist/cjs/i18n/en_ZZ.js
CHANGED
|
@@ -72,7 +72,6 @@ var _default = exports.default = {
|
|
|
72
72
|
'fabric.editor.single': 'Single column',
|
|
73
73
|
'fabric.editor.success': 'Success',
|
|
74
74
|
'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone.",
|
|
75
|
-
'fabric.editor.textColor': 'Text color',
|
|
76
75
|
'fabric.editor.threeColumns': 'Three columns',
|
|
77
76
|
'fabric.editor.threeColumnsWithSidebars': 'Three columns with sidebars',
|
|
78
77
|
'fabric.editor.twoColumns': 'Two columns',
|
package/dist/cjs/i18n/es.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Una sola columna',
|
|
71
71
|
'fabric.editor.success': 'Correcto',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Escribe la acción y usa "@" para asignársela a alguien.',
|
|
73
|
-
'fabric.editor.textColor': 'Color del texto',
|
|
74
73
|
'fabric.editor.threeColumns': 'Tres columnas',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Tres columnas con barras laterales',
|
|
76
75
|
'fabric.editor.twoColumns': 'Dos columnas',
|
package/dist/cjs/i18n/fi.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Yksittäinen sarake',
|
|
71
71
|
'fabric.editor.success': 'Onnistunut',
|
|
72
72
|
'fabric.editor.taskPlaceholder': "Kirjoita toimintasi, käytä '@'-merkkiä määrätäksesi sen jollekin henkilölle.",
|
|
73
|
-
'fabric.editor.textColor': 'Tekstin väri',
|
|
74
73
|
'fabric.editor.threeColumns': 'Kolme saraketta',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Kolme saraketta sivupalkkien kanssa',
|
|
76
75
|
'fabric.editor.twoColumns': 'Kaksi saraketta',
|
package/dist/cjs/i18n/fr.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Colonne unique',
|
|
71
71
|
'fabric.editor.success': 'Opération réussie',
|
|
72
72
|
'fabric.editor.taskPlaceholder': "Saisissez votre action, utilisez « @ » pour l'assigner à quelqu'un.",
|
|
73
|
-
'fabric.editor.textColor': 'Couleur du texte',
|
|
74
73
|
'fabric.editor.threeColumns': 'Trois colonnes',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Trois colonnes avec barres latérales',
|
|
76
75
|
'fabric.editor.twoColumns': 'Deux colonnes',
|
package/dist/cjs/i18n/hu.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Egy oszlop',
|
|
71
71
|
'fabric.editor.success': 'Sikerült',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Írja be a műveletet. Az „@” jellel hozzárendelheti valakihez.',
|
|
73
|
-
'fabric.editor.textColor': 'Szövegszín',
|
|
74
73
|
'fabric.editor.threeColumns': 'Három oszlop',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Három oszlop oldalsávval',
|
|
76
75
|
'fabric.editor.twoColumns': 'Két oszlop',
|
package/dist/cjs/i18n/it.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Colonna singola',
|
|
71
71
|
'fabric.editor.success': 'Operazione riuscita',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Digita la tua azione e usa “@” per assegnarla a qualcuno.',
|
|
73
|
-
'fabric.editor.textColor': 'Colore del testo',
|
|
74
73
|
'fabric.editor.threeColumns': 'Tre colonne',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Tre colonne con barre laterali',
|
|
76
75
|
'fabric.editor.twoColumns': 'Due colonne',
|
package/dist/cjs/i18n/ja.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': '単一列',
|
|
71
71
|
'fabric.editor.success': '成功',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'アクションを入力し、「@」を使用して担当者を割り当てます。',
|
|
73
|
-
'fabric.editor.textColor': 'テキストの色',
|
|
74
73
|
'fabric.editor.threeColumns': '3 列',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'サイドバーを使用した 3 列レイアウト',
|
|
76
75
|
'fabric.editor.twoColumns': '2 列',
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': '단일 열',
|
|
71
71
|
'fabric.editor.success': '성공',
|
|
72
72
|
'fabric.editor.taskPlaceholder': "작업을 입력하고 '@'를 사용하여 할당합니다.",
|
|
73
|
-
'fabric.editor.textColor': '텍스트 색상',
|
|
74
73
|
'fabric.editor.threeColumns': '세 개 열',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': '사이드바가 있는 세 개 열',
|
|
76
75
|
'fabric.editor.twoColumns': '두 개 열',
|
package/dist/cjs/i18n/nb.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Enkeltkolonne',
|
|
71
71
|
'fabric.editor.success': 'Vellykket',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Skriv inn handlingen. Bruk @ for å tilordne den til noen.',
|
|
73
|
-
'fabric.editor.textColor': 'Tekstfarge',
|
|
74
73
|
'fabric.editor.threeColumns': 'Tre kolonner',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Tre kolonner med sidelinjer',
|
|
76
75
|
'fabric.editor.twoColumns': 'To kolonner',
|
package/dist/cjs/i18n/nl.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Eén kolom',
|
|
71
71
|
'fabric.editor.success': 'Gelukt',
|
|
72
72
|
'fabric.editor.taskPlaceholder': "Geef je actie in en gebruik een '@' om de actie aan iemand toe te wijzen.",
|
|
73
|
-
'fabric.editor.textColor': 'Tekstkleur',
|
|
74
73
|
'fabric.editor.threeColumns': 'Drie kolommen',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Drie kolommen met zijbalken',
|
|
76
75
|
'fabric.editor.twoColumns': 'Twee kolommen',
|
package/dist/cjs/i18n/pl.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Pojedyncza kolumna',
|
|
71
71
|
'fabric.editor.success': 'Sukces',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Wprowadź swoją akcję, użyj „@”, aby przypisać ją do użytkownika.',
|
|
73
|
-
'fabric.editor.textColor': 'Kolor tekstu',
|
|
74
73
|
'fabric.editor.threeColumns': 'Trzy kolumny',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Trzy kolumny z paskami bocznymi',
|
|
76
75
|
'fabric.editor.twoColumns': 'Dwie kolumny',
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Coluna única',
|
|
71
71
|
'fabric.editor.success': 'Sucesso',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Digite sua ação e use "@" para atribuí-la a alguém.',
|
|
73
|
-
'fabric.editor.textColor': 'Cor do texto',
|
|
74
73
|
'fabric.editor.threeColumns': 'Três colunas',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Três colunas com barras laterais',
|
|
76
75
|
'fabric.editor.twoColumns': 'Duas colunas',
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Один столбец',
|
|
71
71
|
'fabric.editor.success': 'Готово',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Укажите задание и назначьте исполнителя с помощью значка «@».',
|
|
73
|
-
'fabric.editor.textColor': 'Цвет текста',
|
|
74
73
|
'fabric.editor.threeColumns': 'Три столбца',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Три столбца с боковыми панелями',
|
|
76
75
|
'fabric.editor.twoColumns': 'Два столбца',
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Enkel kolumn',
|
|
71
71
|
'fabric.editor.success': 'Klart!',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Skriv din åtgärd och använd @ för att tilldela någon.',
|
|
73
|
-
'fabric.editor.textColor': 'Textfärg',
|
|
74
73
|
'fabric.editor.threeColumns': 'Tre kolumner',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Tre kolumner med sidopaneler',
|
|
76
75
|
'fabric.editor.twoColumns': 'Två kolumner',
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'คอลัมน์เดียว',
|
|
71
71
|
'fabric.editor.success': 'สำเร็จ',
|
|
72
72
|
'fabric.editor.taskPlaceholder': "พิมพ์ข้อความของคุณ ใช้ '@' เพื่อมอบหมายให้ผู้ใช้ที่คุณเลือก",
|
|
73
|
-
'fabric.editor.textColor': 'สีข้อความ',
|
|
74
73
|
'fabric.editor.threeColumns': 'สามคอลัมน์',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'สามคอลัมน์พร้อมแถบด้านข้าง',
|
|
76
75
|
'fabric.editor.twoColumns': 'สองคอลัมน์',
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Tek sütun',
|
|
71
71
|
'fabric.editor.success': 'Başarılı',
|
|
72
72
|
'fabric.editor.taskPlaceholder': "Yapılacak eylemi yazın, birine atamak için '@' kullanın.",
|
|
73
|
-
'fabric.editor.textColor': 'Metin rengi',
|
|
74
73
|
'fabric.editor.threeColumns': 'Üç sütun',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Kenar çubuklu üç sütun',
|
|
76
75
|
'fabric.editor.twoColumns': 'İki sütun',
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Один стовпець',
|
|
71
71
|
'fabric.editor.success': 'Готово',
|
|
72
72
|
'fabric.editor.taskPlaceholder': 'Вкажіть задачу. Призначте її комусь за допомогою символу «@».',
|
|
73
|
-
'fabric.editor.textColor': 'Колір тексту',
|
|
74
73
|
'fabric.editor.threeColumns': 'Три стовпці',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Три стовпці з бічними панелями',
|
|
76
75
|
'fabric.editor.twoColumns': 'Два стовпці',
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': 'Cột đơn',
|
|
71
71
|
'fabric.editor.success': 'Thành công',
|
|
72
72
|
'fabric.editor.taskPlaceholder': "Nhập thao tác của bạn, sử dụng '@' để chỉ định cho người nào đó.",
|
|
73
|
-
'fabric.editor.textColor': 'Màu văn bản',
|
|
74
73
|
'fabric.editor.threeColumns': 'Ba cột',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': 'Ba cột có các thanh bên',
|
|
76
75
|
'fabric.editor.twoColumns': 'Hai cột',
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': '单列',
|
|
71
71
|
'fabric.editor.success': '成功',
|
|
72
72
|
'fabric.editor.taskPlaceholder': '输入您的操作,使用“@”进行分配。',
|
|
73
|
-
'fabric.editor.textColor': '文本颜色',
|
|
74
73
|
'fabric.editor.threeColumns': '三栏',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': '具有侧边栏的三列',
|
|
76
75
|
'fabric.editor.twoColumns': '两栏',
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -70,7 +70,6 @@ var _default = exports.default = {
|
|
|
70
70
|
'fabric.editor.single': '單欄',
|
|
71
71
|
'fabric.editor.success': '成功',
|
|
72
72
|
'fabric.editor.taskPlaceholder': '輸入動作,使用「@」以指派給他人。',
|
|
73
|
-
'fabric.editor.textColor': '文字顏色',
|
|
74
73
|
'fabric.editor.threeColumns': '三欄',
|
|
75
74
|
'fabric.editor.threeColumnsWithSidebars': '三個包含資訊看板的直欄',
|
|
76
75
|
'fabric.editor.twoColumns': '兩欄',
|
|
@@ -149,12 +149,6 @@ Object.defineProperty(exports, "mobileSelectionPlugin", {
|
|
|
149
149
|
return _mobileSelection.default;
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
|
-
Object.defineProperty(exports, "panelPlugin", {
|
|
153
|
-
enumerable: true,
|
|
154
|
-
get: function get() {
|
|
155
|
-
return _panel.default;
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
152
|
Object.defineProperty(exports, "pastePlugin", {
|
|
159
153
|
enumerable: true,
|
|
160
154
|
get: function get() {
|
|
@@ -194,7 +188,6 @@ var _jiraIssue = _interopRequireDefault(require("./jira-issue"));
|
|
|
194
188
|
var _toolbarListsIndentation = _interopRequireDefault(require("./toolbar-lists-indentation"));
|
|
195
189
|
var _macro = _interopRequireDefault(require("./macro"));
|
|
196
190
|
var _maxContentSize = _interopRequireDefault(require("./max-content-size"));
|
|
197
|
-
var _panel = _interopRequireDefault(require("./panel"));
|
|
198
191
|
var _paste = _interopRequireDefault(require("./paste"));
|
|
199
192
|
var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions"));
|
|
200
193
|
var _breakout = _interopRequireDefault(require("./breakout"));
|
|
@@ -8,6 +8,7 @@ exports.default = createUniversalPreset;
|
|
|
8
8
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _plugins = require("../plugins");
|
|
11
|
+
var _editorPluginPanel = require("@atlaskit/editor-plugin-panel");
|
|
11
12
|
var _editorPluginTextColor = require("@atlaskit/editor-plugin-text-color");
|
|
12
13
|
var _editorPluginHistory = require("@atlaskit/editor-plugin-history");
|
|
13
14
|
var _editorPluginStatus = require("@atlaskit/editor-plugin-status");
|
|
@@ -243,7 +244,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
243
244
|
return builder.add(plugin);
|
|
244
245
|
}
|
|
245
246
|
return builder;
|
|
246
|
-
}).maybeAdd(
|
|
247
|
+
}).maybeAdd(_editorPluginPanel.panelPlugin, function (plugin, builder) {
|
|
247
248
|
if (props.allowPanel) {
|
|
248
249
|
var allowPanel = (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel : {};
|
|
249
250
|
return builder.add([plugin, {
|
|
@@ -356,7 +357,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
356
357
|
}
|
|
357
358
|
return builder;
|
|
358
359
|
}).add([_plugins.toolbarListsIndentationPlugin, {
|
|
359
|
-
showIndentationButtons: !!
|
|
360
|
+
showIndentationButtons: !!props.showIndentationButtons,
|
|
360
361
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
361
362
|
}]).add([_plugins.insertBlockPlugin, {
|
|
362
363
|
allowTables: !!props.allowTables,
|
|
@@ -19,16 +19,18 @@ var _ui2 = require("@atlaskit/editor-common/ui");
|
|
|
19
19
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
20
20
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
21
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
|
+
var _context = require("../../../presets/context");
|
|
22
23
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
25
|
/** @jsx jsx */
|
|
25
26
|
|
|
26
27
|
var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
27
|
-
var _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _props$featureFlags5
|
|
28
|
+
var _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _props$featureFlags5;
|
|
28
29
|
var _useState = (0, _react.useState)(false),
|
|
29
30
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
30
31
|
shouldSplitToolbar = _useState2[0],
|
|
31
32
|
setShouldSplitToolbar = _useState2[1];
|
|
33
|
+
var editorAPI = (0, _context.usePresetContext)();
|
|
32
34
|
var nonCustomToolbar = (0, _react2.jsx)("div", {
|
|
33
35
|
css: _MainToolbar.nonCustomToolbarWrapperStyle
|
|
34
36
|
}, props.beforeIcon && (0, _react2.jsx)("div", {
|
|
@@ -60,7 +62,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
60
62
|
inviteToEditHandler: (_props$collabEdit2 = props.collabEdit) === null || _props$collabEdit2 === void 0 ? void 0 : _props$collabEdit2.inviteToEditHandler,
|
|
61
63
|
isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected,
|
|
62
64
|
featureFlags: props.featureFlags || {}
|
|
63
|
-
}),
|
|
65
|
+
}), editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && (_props$featureFlags5 = props.featureFlags) !== null && _props$featureFlags5 !== void 0 && _props$featureFlags5.twoLineEditorToolbar ? (0, _react2.jsx)(_FindReplaceToolbarButtonWithState.default, {
|
|
64
66
|
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
65
67
|
popupsMountPoint: props.popupsMountPoint,
|
|
66
68
|
popupsScrollableElement: props.popupsScrollableElement,
|
|
@@ -70,8 +72,8 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
70
72
|
featureFlags: props.featureFlags
|
|
71
73
|
}) : null, !!props.customPrimaryToolbarComponents && 'after' in props.customPrimaryToolbarComponents ? props.customPrimaryToolbarComponents.after : props.customPrimaryToolbarComponents);
|
|
72
74
|
(0, _react.useEffect)(function () {
|
|
73
|
-
var _props$
|
|
74
|
-
if ((_props$
|
|
75
|
+
var _props$featureFlags6;
|
|
76
|
+
if ((_props$featureFlags6 = props.featureFlags) !== null && _props$featureFlags6 !== void 0 && _props$featureFlags6.twoLineEditorToolbar) {
|
|
75
77
|
var updateOnResize = function updateOnResize() {
|
|
76
78
|
setShouldSplitToolbar(window.innerWidth <= _MainToolbar.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT);
|
|
77
79
|
};
|
|
@@ -96,7 +98,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
96
98
|
event.stopPropagation();
|
|
97
99
|
};
|
|
98
100
|
return (0, _react2.jsx)(_ui2.ContextPanelConsumer, null, function (_ref) {
|
|
99
|
-
var _props$
|
|
101
|
+
var _props$featureFlags7, _props$featureFlags8, _props$featureFlags9;
|
|
100
102
|
var contextPanelWidth = _ref.width;
|
|
101
103
|
return (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
|
|
102
104
|
editorView: props.editorView,
|
|
@@ -105,14 +107,14 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
105
107
|
handleEscape: handleEscape,
|
|
106
108
|
intl: props.intl
|
|
107
109
|
}, (0, _react2.jsx)("div", {
|
|
108
|
-
css: (0, _MainToolbar.mainToolbarStyle)(props.showKeyline || contextPanelWidth > 0, !!((_props$
|
|
110
|
+
css: (0, _MainToolbar.mainToolbarStyle)(props.showKeyline || contextPanelWidth > 0, !!((_props$featureFlags7 = props.featureFlags) !== null && _props$featureFlags7 !== void 0 && _props$featureFlags7.twoLineEditorToolbar)),
|
|
109
111
|
"data-testid": "ak-editor-main-toolbar"
|
|
110
112
|
}, (0, _react2.jsx)("div", {
|
|
111
|
-
css: (0, _MainToolbar.mainToolbarFirstChildStyle)(!!((_props$
|
|
113
|
+
css: (0, _MainToolbar.mainToolbarFirstChildStyle)(!!((_props$featureFlags8 = props.featureFlags) !== null && _props$featureFlags8 !== void 0 && _props$featureFlags8.twoLineEditorToolbar)),
|
|
112
114
|
role: "toolbar",
|
|
113
115
|
"aria-label": props.intl.formatMessage(_messages.fullPageMessages.toolbarLabel)
|
|
114
116
|
}, shouldSplitToolbar ? customToolbar : nonCustomToolbar), (0, _react2.jsx)("div", {
|
|
115
|
-
css: (0, _MainToolbar.mainToolbarSecondChildStyle)(!!((_props$
|
|
117
|
+
css: (0, _MainToolbar.mainToolbarSecondChildStyle)(!!((_props$featureFlags9 = props.featureFlags) !== null && _props$featureFlags9 !== void 0 && _props$featureFlags9.twoLineEditorToolbar)),
|
|
116
118
|
"data-testid": 'avatar-group-outside-plugin',
|
|
117
119
|
role: "region",
|
|
118
120
|
"aria-label": props.intl.formatMessage(_messages.fullPageMessages.pageActionsLabel)
|
|
@@ -19,12 +19,12 @@ var _styles4 = require("@atlaskit/editor-plugin-paste-options-toolbar/styles");
|
|
|
19
19
|
var _styles5 = require("../../plugins/code-block/styles");
|
|
20
20
|
var _media = require("./media");
|
|
21
21
|
var _layout = require("./layout");
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
22
|
+
var _panel = require("./panel");
|
|
23
|
+
var _styles6 = require("@atlaskit/editor-plugin-placeholder-text/styles");
|
|
24
|
+
var _styles7 = require("../../plugins/extension/ui/styles");
|
|
25
|
+
var _styles8 = require("../../plugins/expand/ui/styles");
|
|
26
|
+
var _styles9 = require("../../plugins/find-replace/styles");
|
|
27
|
+
var _styles10 = require("../../plugins/tasks-and-decisions/styles");
|
|
28
28
|
var _status = require("./status");
|
|
29
29
|
var _date = require("./date");
|
|
30
30
|
var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
|
|
@@ -47,7 +47,7 @@ var placeholderStyles = exports.placeholderStyles = (0, _react2.css)(_templateOb
|
|
|
47
47
|
var contentStyles = function contentStyles(props) {
|
|
48
48
|
return (0, _react2.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
|
|
49
49
|
theme: props.theme
|
|
50
|
-
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)",
|
|
50
|
+
}), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles6.placeholderTextStyles, placeholderStyles, (0, _styles5.codeBlockStyles)(props), (0, _styles3.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, ruleStyles(props), _media.mediaStyles, (0, _layout.layoutStyles)(props), _styles2.telepointerStyle, _selection.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _panel.panelStyles)(props), mentionsStyles, emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles7.extensionStyles, (0, _styles8.expandStyles)(props), _styles9.findReplaceStyles, _styles4.textHighlightStyle, _styles10.taskDecisionStyles, _status.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _date.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
51
51
|
};
|
|
52
52
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
53
53
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
|
-
var version = exports.version = "189.
|
|
8
|
+
var version = exports.version = "189.2.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
1
2
|
/** @jsx jsx */
|
|
2
|
-
import { Fragment } from 'react';
|
|
3
|
+
import { Fragment, useCallback } from 'react';
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
5
6
|
import { PortalProviderWithThemeProviders, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
|
|
@@ -66,7 +67,7 @@ export function EditorInternal({
|
|
|
66
67
|
}, jsx(ContextAdapter, null, jsx(PortalProviderWithThemeProviders, {
|
|
67
68
|
onAnalyticsEvent: handleAnalyticsEvent,
|
|
68
69
|
useAnalyticsContext: props.UNSAFE_useAnalyticsContext,
|
|
69
|
-
render: portalProviderAPI => jsx(Fragment, null, jsx(
|
|
70
|
+
render: portalProviderAPI => jsx(Fragment, null, jsx(ReactEditorViewContextWrapper, {
|
|
70
71
|
editorProps: overriddenEditorProps,
|
|
71
72
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
72
73
|
portalProviderAPI: portalProviderAPI,
|
|
@@ -124,4 +125,26 @@ export function EditorInternal({
|
|
|
124
125
|
portalProviderAPI: portalProviderAPI
|
|
125
126
|
}))
|
|
126
127
|
}))))));
|
|
128
|
+
}
|
|
129
|
+
function ReactEditorViewContextWrapper(props) {
|
|
130
|
+
const setInternalEditorAPI = useSetPresetContext();
|
|
131
|
+
const {
|
|
132
|
+
setEditorApi: setExternalEditorAPI
|
|
133
|
+
} = props;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* We use the context to retrieve the editorAPI
|
|
137
|
+
* externally for consumers via `usePreset`.
|
|
138
|
+
*
|
|
139
|
+
* However we also may need to retrieve this value internally via context
|
|
140
|
+
* so we should also set the value for the `EditorContext` that is used in
|
|
141
|
+
* `EditorInternal`.
|
|
142
|
+
*/
|
|
143
|
+
const setEditorAPI = useCallback(api => {
|
|
144
|
+
setInternalEditorAPI === null || setInternalEditorAPI === void 0 ? void 0 : setInternalEditorAPI(api);
|
|
145
|
+
setExternalEditorAPI === null || setExternalEditorAPI === void 0 ? void 0 : setExternalEditorAPI(api);
|
|
146
|
+
}, [setInternalEditorAPI, setExternalEditorAPI]);
|
|
147
|
+
return jsx(ReactEditorView, _extends({}, props, {
|
|
148
|
+
setEditorApi: setEditorAPI
|
|
149
|
+
}));
|
|
127
150
|
}
|
|
@@ -21,7 +21,7 @@ function getSpellCheck(featureFlags) {
|
|
|
21
21
|
* which is used by both current and archv3 editors.
|
|
22
22
|
*/
|
|
23
23
|
export function createFeatureFlagsFromProps(props) {
|
|
24
|
-
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20
|
|
24
|
+
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$featureFlags19, _props$featureFlags20;
|
|
25
25
|
const normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
|
|
26
26
|
return {
|
|
27
27
|
...normalizedFeatureFlags,
|
|
@@ -44,13 +44,12 @@ export function createFeatureFlagsFromProps(props) {
|
|
|
44
44
|
twoLineEditorToolbar: Boolean(typeof ((_props$featureFlags13 = props.featureFlags) === null || _props$featureFlags13 === void 0 ? void 0 : _props$featureFlags13.twoLineEditorToolbar) === 'boolean' ? !!((_props$featureFlags14 = props.featureFlags) !== null && _props$featureFlags14 !== void 0 && _props$featureFlags14.twoLineEditorToolbar) : false),
|
|
45
45
|
useNativeCollabPlugin: Boolean(typeof ((_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.useNativePlugin) === 'boolean' ? !!((_props$collabEdit2 = props.collabEdit) !== null && _props$collabEdit2 !== void 0 && _props$collabEdit2.useNativePlugin) : false),
|
|
46
46
|
showHoverPreview: Boolean(typeof ((_props$featureFlags15 = props.featureFlags) === null || _props$featureFlags15 === void 0 ? void 0 : _props$featureFlags15.showHoverPreview) === 'boolean' ? !!((_props$featureFlags16 = props.featureFlags) !== null && _props$featureFlags16 !== void 0 && _props$featureFlags16.showHoverPreview) : false),
|
|
47
|
-
|
|
48
|
-
floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags19 = props.featureFlags) === null || _props$featureFlags19 === void 0 ? void 0 : _props$featureFlags19['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
|
|
47
|
+
floatingToolbarLinkSettingsButton: typeof ((_props$featureFlags17 = props.featureFlags) === null || _props$featureFlags17 === void 0 ? void 0 : _props$featureFlags17['floating-toolbar-link-settings-button']) === 'string' ? props.featureFlags['floating-toolbar-link-settings-button'] || undefined : undefined,
|
|
49
48
|
disableSpellcheckByBrowser: getSpellCheck(props.featureFlags),
|
|
50
49
|
// Including fallback to props.featureFlags so that mobile feature flags
|
|
51
50
|
// are included (they are not kebab cased)
|
|
52
|
-
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$
|
|
51
|
+
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags18 = props.featureFlags) === null || _props$featureFlags18 === void 0 ? void 0 : _props$featureFlags18.restartNumberedLists) === true,
|
|
53
52
|
lpLinkPickerFocusTrap: Boolean(normalizedFeatureFlags.lpLinkPickerFocusTrap),
|
|
54
|
-
preventPopupOverflow: Boolean(typeof ((_props$
|
|
53
|
+
preventPopupOverflow: Boolean(typeof ((_props$featureFlags19 = props.featureFlags) === null || _props$featureFlags19 === void 0 ? void 0 : _props$featureFlags19['prevent-popup-overflow']) === 'boolean' ? !!((_props$featureFlags20 = props.featureFlags) !== null && _props$featureFlags20 !== void 0 && _props$featureFlags20['prevent-popup-overflow']) : false)
|
|
55
54
|
};
|
|
56
55
|
}
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -65,7 +65,6 @@ export default {
|
|
|
65
65
|
'fabric.editor.single': 'Jeden sloupec',
|
|
66
66
|
'fabric.editor.success': 'Úspěch',
|
|
67
67
|
'fabric.editor.taskPlaceholder': 'Napište svou akci a použitím „@“ ji někomu přidělte.',
|
|
68
|
-
'fabric.editor.textColor': 'Barva textu',
|
|
69
68
|
'fabric.editor.threeColumns': 'Tři sloupce',
|
|
70
69
|
'fabric.editor.threeColumnsWithSidebars': 'Tři sloupce s postranními panely',
|
|
71
70
|
'fabric.editor.twoColumns': 'Dva sloupce',
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Enkelt kolonne',
|
|
65
65
|
'fabric.editor.success': 'Succes',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Indtast din handling, og brug "@" for at tildele til nogen.',
|
|
67
|
-
'fabric.editor.textColor': 'Tekstfarve',
|
|
68
67
|
'fabric.editor.threeColumns': 'Tre kolonner',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Tre kolonner med sidebjælker',
|
|
70
69
|
'fabric.editor.twoColumns': 'To kolonner',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -64,7 +64,6 @@ export default {
|
|
|
64
64
|
'fabric.editor.single': 'Einzelne Spalte',
|
|
65
65
|
'fabric.editor.success': 'Erfolgreich',
|
|
66
66
|
'fabric.editor.taskPlaceholder': 'Geben Sie Ihre Aktion ein und weisen Sie sie mithilfe von „@” jemandem zu.',
|
|
67
|
-
'fabric.editor.textColor': 'Textfarbe',
|
|
68
67
|
'fabric.editor.threeColumns': 'Drei Spalten',
|
|
69
68
|
'fabric.editor.threeColumnsWithSidebars': 'Drei Spalten mit Seitenleisten',
|
|
70
69
|
'fabric.editor.twoColumns': 'Zwei Spalten',
|