@atlaskit/editor-core 241.0.3 → 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 +18 -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 +6 -6
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -212
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -421
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -212
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -477
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +0 -212
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +0 -420
- 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
package/dist/esm/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
|
var editorContainerCompiledStyles = {
|
|
6
6
|
root: "_kqswh2mm _1bsb1osq _4t3i1osq"
|
|
7
7
|
};
|
|
8
|
-
export var
|
|
8
|
+
export var EditorInternalContainer = function EditorInternalContainer(_ref) {
|
|
9
9
|
var children = _ref.children,
|
|
10
10
|
fontSize = _ref.fontSize;
|
|
11
11
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -13,7 +13,7 @@ import EditorContext from '../ui/EditorContext';
|
|
|
13
13
|
import { IntlProviderIfMissingWrapper } from '../ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper';
|
|
14
14
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
15
15
|
import { RenderTracking } from '../utils/performance/components/RenderTracking';
|
|
16
|
-
import {
|
|
16
|
+
import { EditorInternalContainer } from './editor-internal-container';
|
|
17
17
|
import { getBaseFontSize } from './utils/getBaseFontSize';
|
|
18
18
|
var DEFAULT_VALUE_PROP_TO_IGNORE = ['defaultValue'];
|
|
19
19
|
|
|
@@ -66,7 +66,7 @@ export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
|
66
66
|
createAnalyticsEvent: createAnalyticsEvent,
|
|
67
67
|
contextIdentifierProvider: props.contextIdentifierProvider,
|
|
68
68
|
featureFlags: featureFlags
|
|
69
|
-
}, /*#__PURE__*/React.createElement(
|
|
69
|
+
}, /*#__PURE__*/React.createElement(EditorInternalContainer, {
|
|
70
70
|
fontSize: fontSize
|
|
71
71
|
}, /*#__PURE__*/React.createElement(EditorContext, {
|
|
72
72
|
editorActions: editorActions
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* clickAreaBlock
|
|
1
|
+
/* clickAreaBlock.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children"];
|
|
5
|
-
import "./clickAreaBlock
|
|
5
|
+
import "./clickAreaBlock.compiled.css";
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
var clickWrapperCompiledStyles = {
|
|
9
9
|
root: "_16jlkb7n _4t3i1osq"
|
|
10
10
|
};
|
|
11
|
-
export var
|
|
11
|
+
export var ClickAreaBlockContainer = function ClickAreaBlockContainer(_ref) {
|
|
12
12
|
var children = _ref.children,
|
|
13
13
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
14
14
|
return /*#__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 var ClickAreaBlock = function ClickAreaBlock(_ref) {
|
|
5
5
|
var editorView = _ref.editorView,
|
|
6
6
|
editorDisabled = _ref.editorDisabled,
|
|
@@ -13,7 +13,7 @@ export var ClickAreaBlock = function ClickAreaBlock(_ref) {
|
|
|
13
13
|
clickAreaClickHandler(editorView, event);
|
|
14
14
|
}
|
|
15
15
|
}, [editorView, editorDisabled]);
|
|
16
|
-
return /*#__PURE__*/React.createElement(
|
|
16
|
+
return /*#__PURE__*/React.createElement(ClickAreaBlockContainer, {
|
|
17
17
|
"data-editor-click-wrapper": true,
|
|
18
18
|
"data-testid": "click-wrapper",
|
|
19
19
|
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
|
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
@@ -11,7 +11,7 @@ var fixedToolbarCompiledStyles = {
|
|
|
11
11
|
mainToolbarRadius: "_2rko12c2",
|
|
12
12
|
editorModernisationToolbar: "_2rko15b0 _10yt1nax"
|
|
13
13
|
};
|
|
14
|
-
export var
|
|
14
|
+
export var FixedToolbar = function FixedToolbar(props) {
|
|
15
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
16
16
|
"data-testid": "ak-editor-main-toolbar",
|
|
17
17
|
className: ax([fixedToolbarCompiledStyles.mainToolbarWrapper, props.twoLineEditorToolbar && fixedToolbarCompiledStyles.mainToolbarTwoLine, fixedToolbarCompiledStyles.mainToolbarWrapperVisualRefresh, props.isNewToolbarEnabled && fixedToolbarCompiledStyles.mainToolbarWithoutLeftPadding, fixedToolbarCompiledStyles.mainToolbarRadius, props.isEditorModernisationEnabled && fixedToolbarCompiledStyles.editorModernisationToolbar])
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* StickyToolbar
|
|
1
|
+
/* StickyToolbar.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import "./StickyToolbar
|
|
3
|
+
import "./StickyToolbar.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
6
6
|
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 490;
|
|
@@ -15,7 +15,7 @@ var stickyToolbarCompiledStyles = {
|
|
|
15
15
|
editorModernisationToolbar: "_2rko15b0 _10yt1nax",
|
|
16
16
|
stickyToolbarWrapper: "_v56416gf _kqsw1if8 _n3tdu2gc _1pbybfng _10ytl2q5"
|
|
17
17
|
};
|
|
18
|
-
export var
|
|
18
|
+
export var StickyToolbar = function StickyToolbar(props) {
|
|
19
19
|
var _useState = useState(0),
|
|
20
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21
21
|
top = _useState2[0],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { FixedToolbar } from './FixedToolbar';
|
|
5
|
+
import { StickyToolbar } from './StickyToolbar';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* ED-15802: Scenarios when a sticky bar is used:
|
|
@@ -38,7 +38,7 @@ export var MainToolbar = function MainToolbar(_ref) {
|
|
|
38
38
|
isEditorModernisationEnabled = _ref.isEditorModernisationEnabled,
|
|
39
39
|
isNewToolbarEnabled = _ref.isNewToolbarEnabled;
|
|
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 var MainToolbar = function MainToolbar(_ref) {
|
|
|
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
|
|
@@ -9,8 +9,8 @@ import { FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles/
|
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
11
|
import { getPrimaryToolbarComponents } from '../../Toolbar/getPrimaryToolbarComponents';
|
|
12
|
-
import { FullPageEditorWrapperCompiled } from './FullPage-compiled';
|
|
13
12
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
13
|
+
import { FullPageEditorWrapper } from './FullPageEditorWrapper';
|
|
14
14
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
15
15
|
import { FullPageToolbarNext } from './FullPageToolbarNext';
|
|
16
16
|
var SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
|
|
@@ -114,7 +114,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
114
114
|
segmentName: SSR_TRACE_SEGMENT_NAME,
|
|
115
115
|
startTimestampRef: firstRenderStartTimestampRef,
|
|
116
116
|
onSSRMeasure: props.onSSRMeasure
|
|
117
|
-
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(
|
|
117
|
+
}, /*#__PURE__*/React.createElement(ContextPanelWidthProvider, null, /*#__PURE__*/React.createElement(FullPageEditorWrapper
|
|
118
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
119
119
|
, {
|
|
120
120
|
className: "akEditor",
|
|
@@ -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
|
var styles = {
|
|
7
7
|
root: "_1ul95x59 _4t3i1osq _1e0c1txw _2lx21bp4 _vchhusvi"
|
|
8
8
|
};
|
|
9
|
-
export var
|
|
9
|
+
export var FullPageEditorWrapper = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
10
|
var children = _ref.children,
|
|
11
11
|
className = _ref.className,
|
|
12
12
|
style = _ref.style;
|
|
@@ -10,8 +10,8 @@ import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSiz
|
|
|
10
10
|
import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
|
|
11
11
|
import { MainToolbarForFirstChildWrapper, MainToolbarForSecondChildWrapper } from './CustomToolbarWrapper';
|
|
12
12
|
import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
13
|
-
import { CustomToolbarWrapperCompiled, MainToolbarIconBeforeCompiled, NonCustomToolbarWrapperCompiled } from './MainToolbar-compiled';
|
|
14
13
|
import { MainToolbarWrapper } from './MainToolbarWrapper';
|
|
14
|
+
import { CustomToolbarWrapper, MainToolbarIconBefore, NonCustomToolbarWrapper } from './MainToolbarWrappers';
|
|
15
15
|
export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
16
16
|
var _props$primaryToolbar, _useToolbarPortal, _props$customPrimaryT;
|
|
17
17
|
var _useState = useState(false),
|
|
@@ -31,7 +31,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
31
31
|
ToolbarPortal = _ref.Portal;
|
|
32
32
|
var hasToolbarPortal = ToolbarPortal !== React.Fragment;
|
|
33
33
|
var popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
|
|
34
|
-
var nonCustomToolbar = /*#__PURE__*/React.createElement(
|
|
34
|
+
var nonCustomToolbar = /*#__PURE__*/React.createElement(NonCustomToolbarWrapper, null, props.beforeIcon && /*#__PURE__*/React.createElement(MainToolbarIconBefore, null, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
|
|
35
35
|
editorView: props.editorView,
|
|
36
36
|
editorActions: props.editorActions,
|
|
37
37
|
eventDispatcher: props.eventDispatcher,
|
|
@@ -47,7 +47,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
47
47
|
hasMinWidth: props.hasMinWidth,
|
|
48
48
|
twoLineEditorToolbar: twoLineEditorToolbar
|
|
49
49
|
}));
|
|
50
|
-
var customToolbar = /*#__PURE__*/React.createElement(
|
|
50
|
+
var customToolbar = /*#__PURE__*/React.createElement(CustomToolbarWrapper, null, !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
|
|
51
51
|
beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
|
|
52
52
|
}) : 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({
|
|
53
53
|
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
@@ -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
|
var nonCustomToolbarWrapperCompiledStyles = {
|
|
9
9
|
root: "_4cvr1h6o _1e0c1txw _16jlkb7n"
|
|
10
10
|
};
|
|
11
|
-
export var
|
|
11
|
+
export var NonCustomToolbarWrapper = function NonCustomToolbarWrapper(_ref) {
|
|
12
12
|
var children = _ref.children;
|
|
13
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
14
14
|
className: ax([nonCustomToolbarWrapperCompiledStyles.root])
|
|
@@ -19,7 +19,7 @@ var customToolbarWrapperCompiledStyles = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
22
|
-
export var
|
|
22
|
+
export var CustomToolbarWrapper = function CustomToolbarWrapper(_ref2) {
|
|
23
23
|
var children = _ref2.children;
|
|
24
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
25
25
|
className: ax([customToolbarWrapperCompiledStyles.root])
|
|
@@ -30,7 +30,7 @@ var mainToolbarIconBeforeCompiledStyles = {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
33
|
-
export var
|
|
33
|
+
export var MainToolbarIconBefore = function MainToolbarIconBefore(_ref3) {
|
|
34
34
|
var children = _ref3.children;
|
|
35
35
|
return /*#__PURE__*/React.createElement("div", {
|
|
36
36
|
className: ax([mainToolbarIconBeforeCompiledStyles.root])
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* ChromeCollapsed
|
|
1
|
+
/* ChromeCollapsed.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
3
3
|
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
-
import "./ChromeCollapsed
|
|
4
|
+
import "./ChromeCollapsed.compiled.css";
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React, { forwardRef } from 'react';
|
|
7
7
|
var inputCompiledStyles = {
|
|
8
8
|
root: "_19it19hj _2rkofajl _bfhk1j9a _vchhusvi _4t3i1ylp _19bvv47k _ca0qutpp _n3tdutpp _1wyboxwj _1bsb1osq _k48pi7a9 _vwz41aog _1dyzdjp5 _syaz1rpy _4cvxrsbi _irr3l4ek _d0al1kdv"
|
|
9
9
|
};
|
|
10
|
-
export var
|
|
10
|
+
export var ChromeCollapsed = /*#__PURE__*/forwardRef(
|
|
11
11
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
12
12
|
function (_ref, ref) {
|
|
13
13
|
var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
@@ -8,7 +8,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import React, { PureComponent } from 'react';
|
|
10
10
|
import { injectIntl } from 'react-intl';
|
|
11
|
-
import {
|
|
11
|
+
import { ChromeCollapsed as ChromeCollapsedInput } from './ChromeCollapsed';
|
|
12
12
|
import { messages } from './messages';
|
|
13
13
|
// Ignored via go/ees005
|
|
14
14
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -44,7 +44,7 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
|
44
44
|
key: "render",
|
|
45
45
|
value: function render() {
|
|
46
46
|
var placeholder = this.props.text || this.props.intl.formatMessage(messages.chromeCollapsedPlaceholder);
|
|
47
|
-
return /*#__PURE__*/React.createElement(
|
|
47
|
+
return /*#__PURE__*/React.createElement(ChromeCollapsedInput, {
|
|
48
48
|
"data-testid": "chrome-collapsed",
|
|
49
49
|
ref: this.handleInputRef,
|
|
50
50
|
onFocus: this.focusHandler,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* ContextPanelWrappers.tsx generated by @compiled/babel-plugin v3.0.2 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children", "customWidth", "visible"],
|
|
5
5
|
_excluded2 = ["children", "customWidth", "visible", "hasPadding"];
|
|
6
|
-
import "./
|
|
6
|
+
import "./ContextPanelWrappers.compiled.css";
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
9
9
|
import { useMemo } from 'react';
|
|
@@ -29,7 +29,7 @@ var panelStyles = {
|
|
|
29
29
|
padding: "_ca0qpxbi _u5f3pxbi _n3tdze3t _19bvpxbi",
|
|
30
30
|
customWidthOverflow: "_1reo15vq"
|
|
31
31
|
};
|
|
32
|
-
export var
|
|
32
|
+
export var ContextPanelWrapper = function ContextPanelWrapper(_ref2) {
|
|
33
33
|
var children = _ref2.children,
|
|
34
34
|
customWidth = _ref2.customWidth,
|
|
35
35
|
visible = _ref2.visible,
|
|
@@ -50,7 +50,7 @@ export var ContextPanelWrapperCompiled = function ContextPanelWrapperCompiled(_r
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
53
|
-
export var
|
|
53
|
+
export var ContextPanelContent = function ContextPanelContent(_ref3) {
|
|
54
54
|
var children = _ref3.children,
|
|
55
55
|
customWidth = _ref3.customWidth,
|
|
56
56
|
visible = _ref3.visible,
|
|
@@ -20,7 +20,7 @@ import { contextPanelMessages } from '@atlaskit/editor-common/messages/context-p
|
|
|
20
20
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/useSharedPluginStateWithSelector';
|
|
21
21
|
import { akEditorContextPanelWidth } from '@atlaskit/editor-shared-styles/constants';
|
|
22
22
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
23
|
-
import {
|
|
23
|
+
import { ContextPanelContent, ContextPanelWrapper } from './ContextPanelWrappers';
|
|
24
24
|
// Ignored via go/ees005
|
|
25
25
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
26
26
|
var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -122,7 +122,7 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
122
122
|
var broadcastWidth = _ref.broadcastWidth;
|
|
123
123
|
var contextPanelWidth = visible ? width : 0;
|
|
124
124
|
broadcastWidth(contextPanelWidth);
|
|
125
|
-
return /*#__PURE__*/React.createElement(
|
|
125
|
+
return /*#__PURE__*/React.createElement(ContextPanelWrapper, {
|
|
126
126
|
customWidth: _this2.props.customWidth,
|
|
127
127
|
visible: visible,
|
|
128
128
|
"data-testid": "context-panel-panel"
|
|
@@ -131,7 +131,7 @@ var SwappableContentAreaInner = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
131
131
|
"aria-label": ((_this2$props$intl = _this2.props.intl) === null || _this2$props$intl === void 0 ? void 0 : _this2$props$intl.formatMessage(contextPanelMessages.panelLabel)) || '',
|
|
132
132
|
"aria-modal": "false",
|
|
133
133
|
role: "dialog"
|
|
134
|
-
}, /*#__PURE__*/React.createElement(
|
|
134
|
+
}, /*#__PURE__*/React.createElement(ContextPanelContent, {
|
|
135
135
|
customWidth: _this2.props.customWidth,
|
|
136
136
|
visible: visible,
|
|
137
137
|
hasPadding: hasPadding,
|