@atlaskit/editor-core 241.0.4 → 241.0.5
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 +8 -0
- package/dist/cjs/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +4 -4
- package/dist/cjs/composable-editor/editor-internal.js +2 -2
- package/dist/cjs/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +4 -4
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -2
- package/dist/cjs/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +4 -4
- package/dist/cjs/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +4 -4
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +4 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +4 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/cjs/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +6 -6
- package/dist/cjs/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +4 -4
- package/dist/cjs/ui/ChromeCollapsed/index.js +2 -2
- package/dist/cjs/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +5 -5
- package/dist/cjs/ui/ContextPanel/index.js +3 -3
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.compiled.css +213 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +415 -4
- package/dist/cjs/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +4 -4
- package/dist/cjs/ui/PluginSlot/index.js +2 -2
- package/dist/cjs/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +4 -4
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -2
- package/dist/cjs/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +4 -4
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/cjs/ui/WithFlash/index.js +2 -2
- package/dist/cjs/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +9 -9
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +3 -3
- package/dist/es2019/composable-editor/editor-internal.js +2 -2
- package/dist/es2019/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +3 -3
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +2 -2
- package/dist/es2019/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +3 -3
- package/dist/es2019/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +3 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +4 -4
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/es2019/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +3 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/es2019/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +5 -5
- package/dist/es2019/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +3 -3
- package/dist/es2019/ui/ChromeCollapsed/index.js +2 -2
- package/dist/es2019/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +4 -4
- package/dist/es2019/ui/ContextPanel/index.js +3 -3
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.compiled.css +213 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +476 -4
- package/dist/es2019/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +3 -3
- package/dist/es2019/ui/PluginSlot/index.js +2 -2
- package/dist/es2019/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +3 -3
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +2 -2
- package/dist/es2019/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +3 -3
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/es2019/ui/WithFlash/index.js +2 -2
- package/dist/es2019/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +3 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/{editor-internal-compiled.js → editor-internal-container.js} +3 -3
- package/dist/esm/composable-editor/editor-internal.js +2 -2
- package/dist/esm/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js} +3 -3
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +2 -2
- package/dist/esm/ui/Appearance/Comment/{FixedToolbar-compiled.js → FixedToolbar.js} +3 -3
- package/dist/esm/ui/Appearance/Comment/{StickyToolbar-compiled.js → StickyToolbar.js} +3 -3
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +4 -4
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js} +3 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +3 -3
- package/dist/esm/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js} +5 -5
- package/dist/esm/ui/ChromeCollapsed/{ChromeCollapsed-compiled.js → ChromeCollapsed.js} +3 -3
- package/dist/esm/ui/ChromeCollapsed/index.js +2 -2
- package/dist/esm/ui/ContextPanel/{index-compiled.js → ContextPanelWrappers.js} +4 -4
- package/dist/esm/ui/ContextPanel/index.js +3 -3
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.compiled.css +213 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +419 -4
- package/dist/esm/ui/PluginSlot/{PluginSlot-compiled.js → PluginSlot.js} +3 -3
- package/dist/esm/ui/PluginSlot/index.js +2 -2
- package/dist/esm/ui/Toolbar/{ToolbarComponentsWrapper-compiled.js → ToolbarComponentsWrapper.js} +3 -3
- package/dist/esm/ui/Toolbar/ToolbarInner.js +2 -2
- package/dist/esm/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.js → ToolbarSizeDetectorWrapper.js} +3 -3
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +2 -2
- package/dist/esm/ui/WithFlash/index.js +2 -2
- package/dist/esm/ui/WithFlash/{withFlash-compiled.js → withFlash.js} +8 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/{editor-internal-compiled.d.ts → editor-internal-container.d.ts} +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock.d.ts +6 -0
- package/dist/types/ui/Appearance/Comment/{FixedToolbar-compiled.d.ts → FixedToolbar.d.ts} +2 -2
- package/dist/types/ui/Appearance/Comment/{StickyToolbar-compiled.d.ts → StickyToolbar.d.ts} +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageEditorWrapper.d.ts +7 -0
- package/dist/types/ui/Appearance/FullPage/{MainToolbar-compiled.d.ts → MainToolbarWrappers.d.ts} +3 -3
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed.d.ts +7 -0
- package/dist/types/ui/ContextPanel/{index-compiled.d.ts → ContextPanelWrappers.d.ts} +2 -2
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +26 -4
- package/dist/types/ui/PluginSlot/PluginSlot.d.ts +6 -0
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper.d.ts +11 -0
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper.d.ts +11 -0
- package/dist/types/ui/WithFlash/{withFlash-compiled.d.ts → withFlash.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -213
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -423
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -213
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -479
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -213
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -422
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +0 -6
- package/dist/types/ui/Appearance/FullPage/FullPage-compiled.d.ts +0 -7
- package/dist/types/ui/ChromeCollapsed/ChromeCollapsed-compiled.d.ts +0 -7
- package/dist/types/ui/EditorContentContainer/EditorContentContainer-compiled.d.ts +0 -29
- package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +0 -6
- package/dist/types/ui/Toolbar/ToolbarComponentsWrapper-compiled.d.ts +0 -11
- package/dist/types/ui/Toolbar/ToolbarSizeDetectorWrapper-compiled.d.ts +0 -11
- /package/dist/cjs/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
- /package/dist/cjs/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
- /package/dist/cjs/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
- /package/dist/cjs/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
- /package/dist/cjs/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
- /package/dist/cjs/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
- /package/dist/cjs/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
- /package/dist/es2019/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
- /package/dist/es2019/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
- /package/dist/es2019/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
- /package/dist/es2019/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
- /package/dist/es2019/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
- /package/dist/es2019/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
- /package/dist/es2019/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
- /package/dist/esm/composable-editor/{editor-internal-compiled.compiled.css → editor-internal-container.compiled.css} +0 -0
- /package/dist/esm/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.compiled.css → clickAreaBlock.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/Comment/{FixedToolbar-compiled.compiled.css → FixedToolbar.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/Comment/{StickyToolbar-compiled.compiled.css → StickyToolbar.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{FullPage-compiled.compiled.css → FullPageEditorWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{MainToolbar-compiled.compiled.css → MainToolbarWrappers.compiled.css} +0 -0
- /package/dist/esm/ui/ChromeCollapsed/{ChromeCollapsed-compiled.compiled.css → ChromeCollapsed.compiled.css} +0 -0
- /package/dist/esm/ui/ContextPanel/{index-compiled.compiled.css → ContextPanelWrappers.compiled.css} +0 -0
- /package/dist/esm/ui/PluginSlot/{PluginSlot-compiled.compiled.css → PluginSlot.compiled.css} +0 -0
- /package/dist/esm/ui/Toolbar/{ToolbarComponentsWrapper-compiled.compiled.css → ToolbarComponentsWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/Toolbar/{ToolbarSizeDetectorWrapper-compiled.compiled.css → ToolbarSizeDetectorWrapper.compiled.css} +0 -0
- /package/dist/esm/ui/WithFlash/{withFlash-compiled.compiled.css → withFlash.compiled.css} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* withFlash
|
|
1
|
+
/* withFlash.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
9
|
-
require("./withFlash
|
|
8
|
+
exports.WithFlash = void 0;
|
|
9
|
+
require("./withFlash.compiled.css");
|
|
10
10
|
var _runtime = require("@compiled/react/runtime");
|
|
11
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -25,19 +25,19 @@ var compiledStyles = {
|
|
|
25
25
|
};
|
|
26
26
|
// Ignored via go/ees005
|
|
27
27
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
28
|
-
var
|
|
29
|
-
function
|
|
28
|
+
var WithFlash = exports.WithFlash = /*#__PURE__*/function (_React$Component) {
|
|
29
|
+
function WithFlash() {
|
|
30
30
|
var _this;
|
|
31
|
-
(0, _classCallCheck2.default)(this,
|
|
31
|
+
(0, _classCallCheck2.default)(this, WithFlash);
|
|
32
32
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33
33
|
args[_key] = arguments[_key];
|
|
34
34
|
}
|
|
35
|
-
_this = _callSuper(this,
|
|
35
|
+
_this = _callSuper(this, WithFlash, [].concat(args));
|
|
36
36
|
(0, _defineProperty2.default)(_this, "toggle", false);
|
|
37
37
|
return _this;
|
|
38
38
|
}
|
|
39
|
-
(0, _inherits2.default)(
|
|
40
|
-
return (0, _createClass2.default)(
|
|
39
|
+
(0, _inherits2.default)(WithFlash, _React$Component);
|
|
40
|
+
return (0, _createClass2.default)(WithFlash, [{
|
|
41
41
|
key: "render",
|
|
42
42
|
value: function render() {
|
|
43
43
|
var _this$props = this.props,
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "241.0.
|
|
9
|
+
var version = exports.version = "241.0.4";
|
package/dist/es2019/composable-editor/{editor-internal-compiled.js → editor-internal-container.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* editor-internal-
|
|
2
|
-
import "./editor-internal-
|
|
1
|
+
/* editor-internal-container.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./editor-internal-container.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
const editorContainerCompiledStyles = {
|
|
6
6
|
root: "_kqswh2mm _1bsb1osq _4t3i1osq"
|
|
7
7
|
};
|
|
8
|
-
export const
|
|
8
|
+
export const EditorInternalContainer = ({
|
|
9
9
|
children,
|
|
10
10
|
fontSize
|
|
11
11
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
@@ -9,7 +9,7 @@ import EditorContext from '../ui/EditorContext';
|
|
|
9
9
|
import { IntlProviderIfMissingWrapper } from '../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper';
|
|
10
10
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
11
11
|
import { RenderTracking } from '../utils/performance/components/RenderTracking';
|
|
12
|
-
import {
|
|
12
|
+
import { EditorInternalContainer } from './editor-internal-container';
|
|
13
13
|
import { getBaseFontSize } from './utils/getBaseFontSize';
|
|
14
14
|
const DEFAULT_VALUE_PROP_TO_IGNORE = ['defaultValue'];
|
|
15
15
|
|
|
@@ -58,7 +58,7 @@ export const EditorInternal = /*#__PURE__*/memo(({
|
|
|
58
58
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
59
59
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
60
60
|
featureFlags: featureFlags
|
|
61
|
-
}, /*#__PURE__*/React.createElement(
|
|
61
|
+
}, /*#__PURE__*/React.createElement(EditorInternalContainer, {
|
|
62
62
|
fontSize: fontSize
|
|
63
63
|
}, /*#__PURE__*/React.createElement(EditorContext, {
|
|
64
64
|
editorActions: editorActions
|
package/dist/es2019/ui/Addon/ClickAreaBlock/{clickAreaBlock-compiled.js → clickAreaBlock.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* clickAreaBlock
|
|
1
|
+
/* clickAreaBlock.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./clickAreaBlock
|
|
3
|
+
import "./clickAreaBlock.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
const clickWrapperCompiledStyles = {
|
|
7
7
|
root: "_16jlkb7n _4t3i1osq"
|
|
8
8
|
};
|
|
9
|
-
export const
|
|
9
|
+
export const ClickAreaBlockContainer = ({
|
|
10
10
|
children,
|
|
11
11
|
...rest
|
|
12
12
|
}) => /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
3
|
-
import {
|
|
3
|
+
import { ClickAreaBlockContainer } from './clickAreaBlock';
|
|
4
4
|
export const ClickAreaBlock = ({
|
|
5
5
|
editorView,
|
|
6
6
|
editorDisabled,
|
|
@@ -14,7 +14,7 @@ export const ClickAreaBlock = ({
|
|
|
14
14
|
clickAreaClickHandler(editorView, event);
|
|
15
15
|
}
|
|
16
16
|
}, [editorView, editorDisabled]);
|
|
17
|
-
return /*#__PURE__*/React.createElement(
|
|
17
|
+
return /*#__PURE__*/React.createElement(ClickAreaBlockContainer, {
|
|
18
18
|
"data-editor-click-wrapper": true,
|
|
19
19
|
"data-testid": "click-wrapper",
|
|
20
20
|
onMouseDown: handleMouseDown
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* FixedToolbar
|
|
2
|
-
import "./FixedToolbar
|
|
1
|
+
/* FixedToolbar.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./FixedToolbar.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
@@ -11,7 +11,7 @@ const fixedToolbarCompiledStyles = {
|
|
|
11
11
|
mainToolbarRadius: "_2rko12c2",
|
|
12
12
|
editorModernisationToolbar: "_2rko15b0 _10yt1nax"
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const FixedToolbar = props => /*#__PURE__*/React.createElement("div", {
|
|
15
15
|
"data-testid": "ak-editor-main-toolbar",
|
|
16
16
|
className: ax([fixedToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && fixedToolbarCompiledStyles.mainToolbarTwoLine, fixedToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, props.isNewToolbarEnabled && fixedToolbarCompiledStyles.mainToolbarWithoutLeftPadding, fixedToolbarCompiledStyles.mainToolbarRadius, props.isEditorModernisationEnabled && fixedToolbarCompiledStyles.editorModernisationToolbar])
|
|
17
17
|
}, props.children);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* StickyToolbar
|
|
2
|
-
import "./StickyToolbar
|
|
1
|
+
/* StickyToolbar.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./StickyToolbar.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
5
|
const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
@@ -14,7 +14,7 @@ const stickyToolbarCompiledStyles = {
|
|
|
14
14
|
editorModernisationToolbar: "_2rko15b0 _10yt1nax",
|
|
15
15
|
stickyToolbarWrapper: "_v56416gf _kqsw1if8 _n3tdu2gc _1pbybfng _10ytl2q5"
|
|
16
16
|
};
|
|
17
|
-
export const
|
|
17
|
+
export const StickyToolbar = props => {
|
|
18
18
|
const [top, setTop] = useState(0);
|
|
19
19
|
|
|
20
20
|
// ED-15802: if externalToolbarRef is passed in, set top to externalToolbarRef?.current?.clientHeight
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { FixedToolbar } from './FixedToolbar';
|
|
4
|
+
import { StickyToolbar } from './StickyToolbar';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* ED-15802: Scenarios when a sticky bar is used:
|
|
@@ -38,7 +38,7 @@ export const MainToolbar = ({
|
|
|
38
38
|
isNewToolbarEnabled
|
|
39
39
|
}) => {
|
|
40
40
|
if (useStickyToolbar) {
|
|
41
|
-
return /*#__PURE__*/React.createElement(
|
|
41
|
+
return /*#__PURE__*/React.createElement(StickyToolbar
|
|
42
42
|
// Ignored via go/ees005
|
|
43
43
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
44
44
|
, _extends({}, getStickyParameters(useStickyToolbar), {
|
|
@@ -47,7 +47,7 @@ export const MainToolbar = ({
|
|
|
47
47
|
isNewToolbarEnabled: isNewToolbarEnabled
|
|
48
48
|
}), children);
|
|
49
49
|
}
|
|
50
|
-
return /*#__PURE__*/React.createElement(
|
|
50
|
+
return /*#__PURE__*/React.createElement(FixedToolbar, {
|
|
51
51
|
isEditorModernisationEnabled: isEditorModernisationEnabled,
|
|
52
52
|
twoLineEditorToolbar: twoLineEditorToolbar,
|
|
53
53
|
isNewToolbarEnabled: isNewToolbarEnabled
|
|
@@ -8,8 +8,8 @@ import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles/
|
|
|
8
8
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
11
|
-
import { FullPageEditorWrapperCompiled } from './FullPage-compiled';
|
|
12
11
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
12
|
+
import { FullPageEditorWrapper } from './FullPageEditorWrapper';
|
|
13
13
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
14
14
|
import { FullPageToolbarNext } from './FullPageToolbarNext';
|
|
15
15
|
const SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
|
|
@@ -109,7 +109,7 @@ export const FullPageEditor = props => {
|
|
|
109
109
|
segmentName: SSR_TRACE_SEGMENT_NAME,
|
|
110
110
|
startTimestampRef: firstRenderStartTimestampRef,
|
|
111
111
|
onSSRMeasure: props.onSSRMeasure
|
|
112
|
-
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(
|
|
112
|
+
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapper
|
|
113
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
114
114
|
, {
|
|
115
115
|
className: "akEditor",
|
package/dist/es2019/ui/Appearance/FullPage/{FullPage-compiled.js → FullPageEditorWrapper.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*
|
|
2
|
-
import "./
|
|
1
|
+
/* FullPageEditorWrapper.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./FullPageEditorWrapper.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
const styles = {
|
|
7
7
|
root: "_1ul95x59 _4t3i1osq _1e0c1txw _2lx21bp4 _vchhusvi"
|
|
8
8
|
};
|
|
9
|
-
export const
|
|
9
|
+
export const FullPageEditorWrapper = /*#__PURE__*/forwardRef(({
|
|
10
10
|
children,
|
|
11
11
|
className,
|
|
12
12
|
style
|
|
@@ -9,8 +9,8 @@ import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSiz
|
|
|
9
9
|
import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
|
|
10
10
|
import { MainToolbarForFirstChildWrapper, MainToolbarForSecondChildWrapper } from './CustomToolbarWrapper';
|
|
11
11
|
import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
12
|
-
import { CustomToolbarWrapperCompiled, MainToolbarIconBeforeCompiled, NonCustomToolbarWrapperCompiled } from './MainToolbar-compiled';
|
|
13
12
|
import { MainToolbarWrapper } from './MainToolbarWrapper';
|
|
13
|
+
import { CustomToolbarWrapper, MainToolbarIconBefore, NonCustomToolbarWrapper } from './MainToolbarWrappers';
|
|
14
14
|
export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
15
15
|
var _props$primaryToolbar, _useToolbarPortal, _props$customPrimaryT;
|
|
16
16
|
const [shouldSplitToolbar, setShouldSplitToolbar] = useState(false);
|
|
@@ -30,7 +30,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
30
30
|
};
|
|
31
31
|
const hasToolbarPortal = ToolbarPortal !== React.Fragment;
|
|
32
32
|
const popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
|
|
33
|
-
const nonCustomToolbar = /*#__PURE__*/React.createElement(
|
|
33
|
+
const nonCustomToolbar = /*#__PURE__*/React.createElement(NonCustomToolbarWrapper, null, props.beforeIcon && /*#__PURE__*/React.createElement(MainToolbarIconBefore, null, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
|
|
34
34
|
editorView: props.editorView,
|
|
35
35
|
editorActions: props.editorActions,
|
|
36
36
|
eventDispatcher: props.eventDispatcher,
|
|
@@ -46,7 +46,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
46
46
|
hasMinWidth: props.hasMinWidth,
|
|
47
47
|
twoLineEditorToolbar: twoLineEditorToolbar
|
|
48
48
|
}));
|
|
49
|
-
const customToolbar = /*#__PURE__*/React.createElement(
|
|
49
|
+
const customToolbar = /*#__PURE__*/React.createElement(CustomToolbarWrapper, null, !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
|
|
50
50
|
beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
|
|
51
51
|
}) : null, !editorExperiment('platform_editor_controls', 'variant1') && editorAPI !== null && editorAPI !== void 0 && editorAPI.findReplace && twoLineEditorToolbar ? editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.findReplace.actions.registerToolbarButton({
|
|
52
52
|
popupsBoundariesElement: props.popupsBoundariesElement,
|
package/dist/es2019/ui/Appearance/FullPage/{MainToolbar-compiled.js → MainToolbarWrappers.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
import "./
|
|
1
|
+
/* MainToolbarWrappers.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
|
+
import "./MainToolbarWrappers.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
const nonCustomToolbarWrapperCompiledStyles = {
|
|
9
9
|
root: "_4cvr1h6o _1e0c1txw _16jlkb7n"
|
|
10
10
|
};
|
|
11
|
-
export const
|
|
11
|
+
export const NonCustomToolbarWrapper = ({
|
|
12
12
|
children
|
|
13
13
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
14
14
|
className: ax([nonCustomToolbarWrapperCompiledStyles.root])
|
|
@@ -18,7 +18,7 @@ const customToolbarWrapperCompiledStyles = {
|
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
21
|
-
export const
|
|
21
|
+
export const CustomToolbarWrapper = ({
|
|
22
22
|
children
|
|
23
23
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
24
24
|
className: ax([customToolbarWrapperCompiledStyles.root])
|
|
@@ -28,7 +28,7 @@ const mainToolbarIconBeforeCompiledStyles = {
|
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
31
|
-
export const
|
|
31
|
+
export const MainToolbarIconBefore = ({
|
|
32
32
|
children
|
|
33
33
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
34
34
|
className: ax([mainToolbarIconBeforeCompiledStyles.root])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/* ChromeCollapsed
|
|
1
|
+
/* ChromeCollapsed.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./ChromeCollapsed
|
|
3
|
+
import "./ChromeCollapsed.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
6
|
const inputCompiledStyles = {
|
|
7
7
|
root: "_19it19hj _2rkofajl _bfhk1j9a _vchhusvi _4t3i1ylp _19bvv47k _ca0qutpp _n3tdutpp _1wyboxwj _1bsb1osq _k48pi7a9 _vwz41aog _1dyzdjp5 _syaz1rpy _4cvxrsbi _irr3l4ek _d0al1kdv"
|
|
8
8
|
};
|
|
9
|
-
export const
|
|
9
|
+
export const ChromeCollapsed = /*#__PURE__*/forwardRef(
|
|
10
10
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
11
11
|
({
|
|
12
12
|
...rest
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import { injectIntl } from 'react-intl';
|
|
4
|
-
import {
|
|
4
|
+
import { ChromeCollapsed as ChromeCollapsedInput } from './ChromeCollapsed';
|
|
5
5
|
import { messages } from './messages';
|
|
6
6
|
// Ignored via go/ees005
|
|
7
7
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -28,7 +28,7 @@ class ChromeCollapsed extends PureComponent {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const placeholder = this.props.text || this.props.intl.formatMessage(messages.chromeCollapsedPlaceholder);
|
|
31
|
-
return /*#__PURE__*/React.createElement(
|
|
31
|
+
return /*#__PURE__*/React.createElement(ChromeCollapsedInput, {
|
|
32
32
|
"data-testid": "chrome-collapsed",
|
|
33
33
|
ref: this.handleInputRef,
|
|
34
34
|
onFocus: this.focusHandler,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* ContextPanelWrappers.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./
|
|
3
|
+
import "./ContextPanelWrappers.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useMemo } from 'react';
|
|
@@ -27,7 +27,7 @@ const panelStyles = {
|
|
|
27
27
|
padding: "_ca0qpxbi _u5f3pxbi _n3tdze3t _19bvpxbi",
|
|
28
28
|
customWidthOverflow: "_1reo15vq"
|
|
29
29
|
};
|
|
30
|
-
export const
|
|
30
|
+
export const ContextPanelWrapper = ({
|
|
31
31
|
children,
|
|
32
32
|
customWidth,
|
|
33
33
|
visible,
|
|
@@ -47,7 +47,7 @@ export const ContextPanelWrapperCompiled = ({
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
50
|
-
export const
|
|
50
|
+
export const ContextPanelContent = ({
|
|
51
51
|
children,
|
|
52
52
|
customWidth,
|
|
53
53
|
visible,
|
|
@@ -11,7 +11,7 @@ import { contextPanelMessages } from '@atlaskit/editor-common/messages/context-p
|
|
|
11
11
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
12
12
|
import { akEditorContextPanelWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
13
13
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
|
-
import {
|
|
14
|
+
import { ContextPanelContent, ContextPanelWrapper } from './ContextPanelWrappers';
|
|
15
15
|
// Ignored via go/ees005
|
|
16
16
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
17
17
|
class SwappableContentAreaInner extends React.PureComponent {
|
|
@@ -117,7 +117,7 @@ class SwappableContentAreaInner extends React.PureComponent {
|
|
|
117
117
|
var _this$props$intl, _this$props$intl2;
|
|
118
118
|
const contextPanelWidth = visible ? width : 0;
|
|
119
119
|
broadcastWidth(contextPanelWidth);
|
|
120
|
-
return /*#__PURE__*/React.createElement(
|
|
120
|
+
return /*#__PURE__*/React.createElement(ContextPanelWrapper, {
|
|
121
121
|
customWidth: this.props.customWidth,
|
|
122
122
|
visible: visible,
|
|
123
123
|
"data-testid": "context-panel-panel"
|
|
@@ -126,7 +126,7 @@ class SwappableContentAreaInner extends React.PureComponent {
|
|
|
126
126
|
"aria-label": ((_this$props$intl = this.props.intl) === null || _this$props$intl === void 0 ? void 0 : _this$props$intl.formatMessage(contextPanelMessages.panelLabel)) || '',
|
|
127
127
|
"aria-modal": "false",
|
|
128
128
|
role: "dialog"
|
|
129
|
-
}, /*#__PURE__*/React.createElement(
|
|
129
|
+
}, /*#__PURE__*/React.createElement(ContextPanelContent, {
|
|
130
130
|
customWidth: this.props.customWidth,
|
|
131
131
|
visible: visible,
|
|
132
132
|
hasPadding: hasPadding,
|