@atlaskit/editor-core 219.9.14 → 219.9.15
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/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-compiled.js +29 -0
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper-emotion.js +34 -0
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +7 -20
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +56 -0
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +88 -0
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +10 -73
- package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage-compiled.js +32 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage-emotion.js +38 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +19 -20
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.js +45 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-emotion.js +58 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +21 -26
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-compiled.js +19 -0
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper-emotion.js +25 -0
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +5 -17
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +46 -0
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +78 -0
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +6 -69
- package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPage-compiled.js +23 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPage-emotion.js +29 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +17 -19
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-compiled.js +34 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar-emotion.js +48 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +16 -27
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.compiled.css +4 -0
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-compiled.js +21 -0
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper-emotion.js +27 -0
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +7 -19
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.compiled.css +4 -0
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.js +48 -0
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.js +80 -0
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +10 -71
- package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.compiled.css +5 -0
- package/dist/esm/ui/Appearance/FullPage/FullPage-compiled.js +24 -0
- package/dist/esm/ui/Appearance/FullPage/FullPage-emotion.js +31 -0
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +19 -19
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.compiled.css +10 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-compiled.js +37 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar-emotion.js +50 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +22 -27
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +16 -0
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +16 -0
- package/dist/types/ui/Appearance/FullPage/BeforeWrapper.d.ts +3 -8
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +3 -0
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +14 -0
- package/dist/types/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +4 -10
- package/dist/types/ui/Appearance/FullPage/FullPage-compiled.d.ts +7 -0
- package/dist/types/ui/Appearance/FullPage/FullPage-emotion.d.ts +7 -0
- package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar-compiled.d.ts +20 -0
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts +20 -0
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -6
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-compiled.d.ts +16 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper-emotion.d.ts +16 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/BeforeWrapper.d.ts +3 -8
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-compiled.d.ts +3 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper-emotion.d.ts +14 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/CustomToolbarWrapper.d.ts +4 -10
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-compiled.d.ts +7 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage-emotion.d.ts +7 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-compiled.d.ts +20 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts +20 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 219.9.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e9de5e5d2942f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e9de5e5d2942f) -
|
|
8
|
+
Migrate UI appearance fullpage styles
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 219.9.14
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* BeforeWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
/**
|
|
3
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
+
* Used via `componentWithCondition` in `BeforeWrapper.tsx`.
|
|
5
|
+
*
|
|
6
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
exports.BeforePrimaryToolbarWrapperCompiled = void 0;
|
|
15
|
+
require("./BeforeWrapper-compiled.compiled.css");
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
var _runtime = require("@compiled/react/runtime");
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
|
+
var styles = {
|
|
20
|
+
beforePrimaryToolbarPluginWrapper: "_1e0c1txw _16jlkb7n _1bahesu3 _4cvr1h6o"
|
|
21
|
+
};
|
|
22
|
+
// Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
|
|
23
|
+
// only in `FullPageToolbar` to decouple the plugin from the main toolbar
|
|
24
|
+
var BeforePrimaryToolbarWrapperCompiled = exports.BeforePrimaryToolbarWrapperCompiled = function BeforePrimaryToolbarWrapperCompiled(props) {
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
"data-testid": 'before-primary-toolbar-components-plugin',
|
|
27
|
+
className: (0, _runtime.ax)([styles.beforePrimaryToolbarPluginWrapper])
|
|
28
|
+
}, props.beforePrimaryToolbarComponents);
|
|
29
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BeforePrimaryToolbarWrapperEmotion = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
14
|
+
* Used via `componentWithCondition` in `BeforeWrapper.tsx`.
|
|
15
|
+
*
|
|
16
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
|
|
20
|
+
|
|
21
|
+
var beforePrimaryToolbarPluginWrapperStyles = (0, _react.css)({
|
|
22
|
+
display: 'flex',
|
|
23
|
+
flexGrow: 1,
|
|
24
|
+
justifyContent: 'flex-end',
|
|
25
|
+
alignItems: 'center'
|
|
26
|
+
});
|
|
27
|
+
// Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
|
|
28
|
+
// only in `FullPageToolbar` to decouple the plugin from the main toolbar
|
|
29
|
+
var BeforePrimaryToolbarWrapperEmotion = exports.BeforePrimaryToolbarWrapperEmotion = function BeforePrimaryToolbarWrapperEmotion(props) {
|
|
30
|
+
return (0, _react.jsx)("div", {
|
|
31
|
+
css: beforePrimaryToolbarPluginWrapperStyles,
|
|
32
|
+
"data-testid": 'before-primary-toolbar-components-plugin'
|
|
33
|
+
}, props.beforePrimaryToolbarComponents);
|
|
34
|
+
};
|
|
@@ -4,25 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.BeforePrimaryToolbarWrapper = void 0;
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
14
|
-
|
|
15
|
-
var beforePrimaryToolbarPluginWrapperStyles = (0, _react.css)({
|
|
16
|
-
display: 'flex',
|
|
17
|
-
flexGrow: 1,
|
|
18
|
-
justifyContent: 'flex-end',
|
|
19
|
-
alignItems: 'center'
|
|
20
|
-
});
|
|
7
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
8
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
|
+
var _BeforeWrapperCompiled = require("./BeforeWrapper-compiled");
|
|
10
|
+
var _BeforeWrapperEmotion = require("./BeforeWrapper-emotion");
|
|
21
11
|
// Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
|
|
22
12
|
// only in `FullPageToolbar` to decouple the plugin from the main toolbar
|
|
23
|
-
var BeforePrimaryToolbarWrapper = exports.BeforePrimaryToolbarWrapper = function
|
|
24
|
-
return (0,
|
|
25
|
-
|
|
26
|
-
"data-testid": 'before-primary-toolbar-components-plugin'
|
|
27
|
-
}, props.beforePrimaryToolbarComponents);
|
|
28
|
-
};
|
|
13
|
+
var BeforePrimaryToolbarWrapper = exports.BeforePrimaryToolbarWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
14
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
15
|
+
}, _BeforeWrapperCompiled.BeforePrimaryToolbarWrapperCompiled, _BeforeWrapperEmotion.BeforePrimaryToolbarWrapperEmotion);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
._16jlkb7n{flex-grow:1}
|
|
2
|
+
._1e0c1txw{display:flex}
|
|
3
|
+
._1ul91ns9{min-width:-moz-fit-content;min-width:fit-content}
|
|
4
|
+
@media (max-width:868px){._u89dkb7n{flex-grow:1}._9gudkb7n{flex-shrink:1}._1hoh1osq{flex-basis:100%}._1tjb1wug{margin-top:auto}._1rg31wug{margin-right:auto}._1jzq1wug{margin-bottom:auto}._cn5x1wug{margin-left:auto}._87t41txw{display:flex}._8o3817qo{height:var(--ak-editor-fullpage-toolbar-height)}._1s2pidpf{min-width:0}._lhl4esu3{justify-content:flex-end}._1s2p1ns9{min-width:-moz-fit-content;min-width:fit-content}}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* CustomToolbarWrapper-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
/**
|
|
3
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
+
* Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
|
|
5
|
+
*
|
|
6
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
exports.MainToolbarForSecondChildWrapperCompiled = exports.MainToolbarForFirstChildWrapperCompiled = void 0;
|
|
15
|
+
require("./CustomToolbarWrapper-compiled.compiled.css");
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
var _runtime = require("@compiled/react/runtime");
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
|
+
var firstChildStyles = {
|
|
20
|
+
base: "_1e0c1txw _16jlkb7n",
|
|
21
|
+
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _8o3817qo _lhl4esu3 _1s2p1ns9"
|
|
22
|
+
};
|
|
23
|
+
var secondChildStyles = {
|
|
24
|
+
base: "_1ul91ns9",
|
|
25
|
+
twoLine: "_u89dkb7n _9gudkb7n _1hoh1osq _1tjb1wug _1rg31wug _1jzq1wug _cn5x1wug _87t41txw _8o3817qo _1s2pidpf"
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// ---------------- First child wrapper ----------------
|
|
29
|
+
var MainToolbarForFirstChildWrapperCompiled = exports.MainToolbarForFirstChildWrapperCompiled = function MainToolbarForFirstChildWrapperCompiled(_ref) {
|
|
30
|
+
var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
31
|
+
children = _ref.children,
|
|
32
|
+
role = _ref.role,
|
|
33
|
+
ariaLabel = _ref['aria-label'],
|
|
34
|
+
testId = _ref['data-testid'];
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
36
|
+
role: role,
|
|
37
|
+
"aria-label": ariaLabel,
|
|
38
|
+
"data-testid": testId,
|
|
39
|
+
className: (0, _runtime.ax)([firstChildStyles.base, twoLineEditorToolbar && firstChildStyles.twoLine])
|
|
40
|
+
}, children);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// ---------------- Second child wrapper ----------------
|
|
44
|
+
var MainToolbarForSecondChildWrapperCompiled = exports.MainToolbarForSecondChildWrapperCompiled = function MainToolbarForSecondChildWrapperCompiled(_ref2) {
|
|
45
|
+
var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
|
|
46
|
+
children = _ref2.children,
|
|
47
|
+
role = _ref2.role,
|
|
48
|
+
ariaLabel = _ref2['aria-label'],
|
|
49
|
+
testId = _ref2['data-testid'];
|
|
50
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
role: role,
|
|
52
|
+
"aria-label": ariaLabel,
|
|
53
|
+
"data-testid": testId,
|
|
54
|
+
className: (0, _runtime.ax)([secondChildStyles.base, twoLineEditorToolbar && secondChildStyles.twoLine])
|
|
55
|
+
}, children);
|
|
56
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.MainToolbarForSecondChildWrapperEmotion = exports.MainToolbarForFirstChildWrapperEmotion = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _react2 = require("@emotion/react");
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
16
|
+
* Used via `componentWithCondition` in `CustomToolbarWrapper.tsx`.
|
|
17
|
+
*
|
|
18
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
|
|
22
|
+
|
|
23
|
+
// Pre-computed static styles for first- and second-child wrappers.
|
|
24
|
+
// These contain no runtime logic and are safe for static-emotion mode.
|
|
25
|
+
|
|
26
|
+
var firstChildStaticBase = (0, _react2.css)({
|
|
27
|
+
display: 'flex',
|
|
28
|
+
flexGrow: 1
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// we can't avoid some kind of function call here, so we need to disable the rule
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
var firstChildStaticTwoLine = (0, _react2.css)({
|
|
34
|
+
'@media (max-width: 868px)': {
|
|
35
|
+
flex: '1 1 100%',
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
|
+
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
38
|
+
justifyContent: 'flex-end',
|
|
39
|
+
minWidth: 'fit-content'
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var secondChildStaticBase = (0, _react2.css)({
|
|
43
|
+
minWidth: 'fit-content'
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// we can't avoid some kind of function call here, so we need to disable the rule
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
+
var secondChildStaticTwoLine = (0, _react2.css)({
|
|
49
|
+
'@media (max-width: 868px)': {
|
|
50
|
+
display: 'flex',
|
|
51
|
+
flexGrow: 1,
|
|
52
|
+
flex: '1 1 100%',
|
|
53
|
+
margin: 'auto',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
55
|
+
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
56
|
+
minWidth: 0
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// ---------------- First child wrapper ----------------
|
|
61
|
+
var MainToolbarForFirstChildWrapperEmotion = exports.MainToolbarForFirstChildWrapperEmotion = function MainToolbarForFirstChildWrapperEmotion(_ref) {
|
|
62
|
+
var twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
63
|
+
children = _ref.children,
|
|
64
|
+
role = _ref.role,
|
|
65
|
+
ariaLabel = _ref['aria-label'],
|
|
66
|
+
testId = _ref['data-testid'];
|
|
67
|
+
return (0, _react2.jsx)("div", {
|
|
68
|
+
css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
|
|
69
|
+
role: role,
|
|
70
|
+
"aria-label": ariaLabel,
|
|
71
|
+
"data-testid": testId
|
|
72
|
+
}, children);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// ---------------- Second child wrapper ----------------
|
|
76
|
+
var MainToolbarForSecondChildWrapperEmotion = exports.MainToolbarForSecondChildWrapperEmotion = function MainToolbarForSecondChildWrapperEmotion(_ref2) {
|
|
77
|
+
var twoLineEditorToolbar = _ref2.twoLineEditorToolbar,
|
|
78
|
+
children = _ref2.children,
|
|
79
|
+
role = _ref2.role,
|
|
80
|
+
ariaLabel = _ref2['aria-label'],
|
|
81
|
+
testId = _ref2['data-testid'];
|
|
82
|
+
return (0, _react2.jsx)("div", {
|
|
83
|
+
css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
|
|
84
|
+
role: role,
|
|
85
|
+
"aria-label": ariaLabel,
|
|
86
|
+
"data-testid": testId
|
|
87
|
+
}, children);
|
|
88
|
+
};
|
|
@@ -1,82 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.MainToolbarForSecondChildWrapper = exports.MainToolbarForFirstChildWrapper = void 0;
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* @jsx jsx
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
16
|
-
|
|
17
|
-
// Pre-computed static styles for first- and second-child wrappers.
|
|
18
|
-
// These contain no runtime logic and are safe for static-emotion mode.
|
|
19
|
-
|
|
20
|
-
var firstChildStaticBase = (0, _react2.css)({
|
|
21
|
-
display: 'flex',
|
|
22
|
-
flexGrow: 1
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
// we can't avoid some kind of function call here, so we need to disable the rule
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
-
var firstChildStaticTwoLine = (0, _react2.css)({
|
|
28
|
-
'@media (max-width: 868px)': {
|
|
29
|
-
flex: '1 1 100%',
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
|
-
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
32
|
-
justifyContent: 'flex-end',
|
|
33
|
-
minWidth: 'fit-content'
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
var secondChildStaticBase = (0, _react2.css)({
|
|
37
|
-
minWidth: 'fit-content'
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
// we can't avoid some kind of function call here, so we need to disable the rule
|
|
41
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
|
-
var secondChildStaticTwoLine = (0, _react2.css)({
|
|
43
|
-
'@media (max-width: 868px)': {
|
|
44
|
-
display: 'flex',
|
|
45
|
-
flexGrow: 1,
|
|
46
|
-
flex: '1 1 100%',
|
|
47
|
-
margin: 'auto',
|
|
48
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
|
-
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
50
|
-
minWidth: 0
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
|
|
7
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
8
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
|
+
var _CustomToolbarWrapperCompiled = require("./CustomToolbarWrapper-compiled");
|
|
10
|
+
var _CustomToolbarWrapperEmotion = require("./CustomToolbarWrapper-emotion");
|
|
54
11
|
// ---------------- First child wrapper ----------------
|
|
55
|
-
var MainToolbarForFirstChildWrapper = exports.MainToolbarForFirstChildWrapper = function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
role = _ref.role,
|
|
59
|
-
ariaLabel = _ref['aria-label'],
|
|
60
|
-
testId = _ref['data-testid'];
|
|
61
|
-
return (0, _react2.jsx)("div", {
|
|
62
|
-
css: [firstChildStaticBase, twoLineEditorToolbar && firstChildStaticTwoLine],
|
|
63
|
-
role: role,
|
|
64
|
-
"aria-label": ariaLabel,
|
|
65
|
-
"data-testid": testId
|
|
66
|
-
}, children);
|
|
67
|
-
};
|
|
12
|
+
var MainToolbarForFirstChildWrapper = exports.MainToolbarForFirstChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
13
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
14
|
+
}, _CustomToolbarWrapperCompiled.MainToolbarForFirstChildWrapperCompiled, _CustomToolbarWrapperEmotion.MainToolbarForFirstChildWrapperEmotion);
|
|
68
15
|
|
|
69
16
|
// ---------------- Second child wrapper ----------------
|
|
70
|
-
var MainToolbarForSecondChildWrapper = exports.MainToolbarForSecondChildWrapper = function
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
role = _ref2.role,
|
|
74
|
-
ariaLabel = _ref2['aria-label'],
|
|
75
|
-
testId = _ref2['data-testid'];
|
|
76
|
-
return (0, _react2.jsx)("div", {
|
|
77
|
-
css: [secondChildStaticBase, twoLineEditorToolbar && secondChildStaticTwoLine],
|
|
78
|
-
role: role,
|
|
79
|
-
"aria-label": ariaLabel,
|
|
80
|
-
"data-testid": testId
|
|
81
|
-
}, children);
|
|
82
|
-
};
|
|
17
|
+
var MainToolbarForSecondChildWrapper = exports.MainToolbarForSecondChildWrapper = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
18
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
19
|
+
}, _CustomToolbarWrapperCompiled.MainToolbarForSecondChildWrapperCompiled, _CustomToolbarWrapperEmotion.MainToolbarForSecondChildWrapperEmotion);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* FullPage-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
/**
|
|
3
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
+
* Used via `componentWithCondition` in `FullPage.tsx`.
|
|
5
|
+
*
|
|
6
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
exports.FullPageEditorWrapperCompiled = void 0;
|
|
15
|
+
require("./FullPage-compiled.compiled.css");
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
var React = _react;
|
|
18
|
+
var _runtime = require("@compiled/react/runtime");
|
|
19
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
|
+
var styles = {
|
|
21
|
+
root: "_1ul95x59 _4t3i1osq _1e0c1txw _2lx21bp4 _vchhusvi"
|
|
22
|
+
};
|
|
23
|
+
var FullPageEditorWrapperCompiled = exports.FullPageEditorWrapperCompiled = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
24
|
+
var children = _ref.children,
|
|
25
|
+
className = _ref.className,
|
|
26
|
+
style = _ref.style;
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
ref: ref,
|
|
29
|
+
className: (0, _runtime.ax)([styles.root, className]),
|
|
30
|
+
style: style
|
|
31
|
+
}, children);
|
|
32
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FullPageEditorWrapperEmotion = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _react2 = require("@emotion/react");
|
|
9
|
+
var _StyledComponents = require("./StyledComponents");
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
16
|
+
* Used via `componentWithCondition` in `FullPage.tsx`.
|
|
17
|
+
*
|
|
18
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback; jsx required at runtime for @jsxRuntime classic
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- intentional: emotion fallback branch imports from StyledComponents
|
|
24
|
+
|
|
25
|
+
var FullPageEditorWrapperEmotion = exports.FullPageEditorWrapperEmotion = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
26
|
+
var children = _ref.children,
|
|
27
|
+
className = _ref.className,
|
|
28
|
+
style = _ref.style;
|
|
29
|
+
return (
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-classname-prop -- intentional: emotion fallback branch reuses StyledComponents style
|
|
31
|
+
(0, _react2.jsx)("div", {
|
|
32
|
+
css: _StyledComponents.fullPageEditorWrapper,
|
|
33
|
+
ref: ref,
|
|
34
|
+
className: className,
|
|
35
|
+
style: style
|
|
36
|
+
}, children)
|
|
37
|
+
);
|
|
38
|
+
});
|
|
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.FullPageEditor = void 0;
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _react2 = require("@emotion/react");
|
|
12
11
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
13
12
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
14
13
|
var _ssrMeasures = require("@atlaskit/editor-common/performance/ssr-measures");
|
|
@@ -16,22 +15,20 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
16
15
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
17
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
18
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
19
19
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
21
|
var _getPrimaryToolbarComponents = require("../../Toolbar/getPrimaryToolbarComponents");
|
|
22
|
+
var _FullPageCompiled = require("./FullPage-compiled");
|
|
23
|
+
var _FullPageEmotion = require("./FullPage-emotion");
|
|
22
24
|
var _FullPageContentArea = require("./FullPageContentArea");
|
|
23
25
|
var _FullPageToolbar = require("./FullPageToolbar");
|
|
24
26
|
var _FullPageToolbarNext = require("./FullPageToolbarNext");
|
|
25
|
-
var _StyledComponents = require("./StyledComponents");
|
|
26
27
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
27
|
-
/**
|
|
28
|
-
* @jsxRuntime classic
|
|
29
|
-
* @jsx jsx
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
33
|
-
|
|
34
28
|
var SSR_TRACE_SEGMENT_NAME = 'reactEditorView/fullPageAppearance';
|
|
29
|
+
var FullPageEditorWrapperMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
30
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
31
|
+
}, _FullPageCompiled.FullPageEditorWrapperCompiled, _FullPageEmotion.FullPageEditorWrapperEmotion);
|
|
35
32
|
var useShowKeyline = function useShowKeyline(contentAreaRef) {
|
|
36
33
|
var _useState = (0, _react.useState)(false),
|
|
37
34
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -154,23 +151,25 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
154
151
|
}
|
|
155
152
|
var isToolbarAIFCEnabled = Boolean(editorAPI === null || editorAPI === void 0 ? void 0 : editorAPI.toolbar);
|
|
156
153
|
var popupsBoundariesElement = props.popupsBoundariesElement || (scrollContentContainerRef === null || scrollContentContainerRef === void 0 || (_scrollContentContain = scrollContentContainerRef.current) === null || _scrollContentContain === void 0 ? void 0 : _scrollContentContain.containerArea) || undefined;
|
|
157
|
-
return
|
|
154
|
+
return /*#__PURE__*/_react.default.createElement(_ssrMeasures.SSRRenderMeasure, {
|
|
158
155
|
segmentName: SSR_TRACE_SEGMENT_NAME,
|
|
159
156
|
startTimestampRef: firstRenderStartTimestampRef,
|
|
160
157
|
onSSRMeasure: props.onSSRMeasure
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
165
|
-
,
|
|
158
|
+
}, /*#__PURE__*/_react.default.createElement(_ui.ContextPanelWidthProvider, null, /*#__PURE__*/_react.default.createElement(FullPageEditorWrapperMigration
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
160
|
+
, {
|
|
166
161
|
className: "akEditor",
|
|
167
|
-
ref: wrapperElementRef
|
|
168
|
-
style
|
|
162
|
+
ref: wrapperElementRef
|
|
163
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
164
|
+
,
|
|
165
|
+
style:
|
|
166
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props
|
|
167
|
+
{
|
|
169
168
|
'--ak-editor-fullpage-toolbar-height':
|
|
170
169
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
171
170
|
(0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(isToolbarAIFCEnabled)
|
|
172
171
|
}
|
|
173
|
-
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ?
|
|
172
|
+
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? /*#__PURE__*/_react.default.createElement(_FullPageToolbarNext.FullPageToolbarNext, {
|
|
174
173
|
disabled: !!props.disabled || !hasHadInteraction && (0, _expValEquals.expValEquals)('platform_editor_default_toolbar_state', 'isEnabled', true),
|
|
175
174
|
disabledWithoutInteractionLogic: !!props.disabled,
|
|
176
175
|
toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
|
|
@@ -182,7 +181,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
182
181
|
popupsScrollableElement: props.popupsScrollableElement,
|
|
183
182
|
showKeyline: showKeyline,
|
|
184
183
|
customPrimaryToolbarComponents: props.customPrimaryToolbarComponents
|
|
185
|
-
}) :
|
|
184
|
+
}) : /*#__PURE__*/_react.default.createElement(_FullPageToolbar.FullPageToolbar, {
|
|
186
185
|
appearance: props.appearance,
|
|
187
186
|
editorAPI: editorAPI,
|
|
188
187
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
@@ -209,7 +208,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
209
208
|
providerFactory: props.providerFactory,
|
|
210
209
|
showKeyline: showKeyline,
|
|
211
210
|
featureFlags: props.featureFlags
|
|
212
|
-
})),
|
|
211
|
+
})), /*#__PURE__*/_react.default.createElement(_FullPageContentArea.FullPageContentArea, {
|
|
213
212
|
editorAPI: editorAPI,
|
|
214
213
|
ref: scrollContentContainerRef,
|
|
215
214
|
appearance: props.appearance,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
._16jlkb7n{flex-grow:1}
|
|
2
|
+
._18u0pxbi{margin-left:var(--ds-space-200,1pc)}
|
|
3
|
+
._19pkpxbi{margin-top:var(--ds-space-200,1pc)}
|
|
4
|
+
._1bsbxy5q{width:var(--ds-space-400,2pc)}
|
|
5
|
+
._1e0c1txw{display:flex}
|
|
6
|
+
._2hwxpxbi{margin-right:var(--ds-space-200,1pc)}
|
|
7
|
+
._4cvr1h6o{align-items:center}
|
|
8
|
+
._4t3ixy5q{height:var(--ds-space-400,2pc)}
|
|
9
|
+
._otyrpxbi{margin-bottom:var(--ds-space-200,1pc)}
|
|
10
|
+
@media (max-width:0px){._mlgzkb7n{grid-column:1}._tuuhkb7n{grid-row:1}}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* FullPageToolbar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
/**
|
|
3
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
+
* Used via `componentWithCondition` in `FullPageToolbar.tsx`.
|
|
5
|
+
*
|
|
6
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
exports.NonCustomToolbarWrapperCompiled = exports.MainToolbarIconBeforeCompiled = exports.CustomToolbarWrapperCompiled = void 0;
|
|
15
|
+
require("./FullPageToolbar-compiled.compiled.css");
|
|
16
|
+
var React = _interopRequireWildcard(require("react"));
|
|
17
|
+
var _runtime = require("@compiled/react/runtime");
|
|
18
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
|
+
var nonCustomToolbarCompiledStyles = {
|
|
20
|
+
root: "_4cvr1h6o _1e0c1txw _16jlkb7n"
|
|
21
|
+
};
|
|
22
|
+
var mainToolbarIconBeforeCompiledStyles = {
|
|
23
|
+
root: "_19pkpxbi _2hwxpxbi _otyrpxbi _18u0pxbi _4t3ixy5q _1bsbxy5q _mlgzkb7n _tuuhkb7n"
|
|
24
|
+
};
|
|
25
|
+
var customToolbarCompiledStyles = {
|
|
26
|
+
root: "_4cvr1h6o _1e0c1txw"
|
|
27
|
+
};
|
|
28
|
+
var NonCustomToolbarWrapperCompiled = exports.NonCustomToolbarWrapperCompiled = function NonCustomToolbarWrapperCompiled(_ref) {
|
|
29
|
+
var children = _ref.children;
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: (0, _runtime.ax)([nonCustomToolbarCompiledStyles.root])
|
|
32
|
+
}, children);
|
|
33
|
+
};
|
|
34
|
+
var MainToolbarIconBeforeCompiled = exports.MainToolbarIconBeforeCompiled = function MainToolbarIconBeforeCompiled(_ref2) {
|
|
35
|
+
var children = _ref2.children;
|
|
36
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: (0, _runtime.ax)([mainToolbarIconBeforeCompiledStyles.root])
|
|
38
|
+
}, children);
|
|
39
|
+
};
|
|
40
|
+
var CustomToolbarWrapperCompiled = exports.CustomToolbarWrapperCompiled = function CustomToolbarWrapperCompiled(_ref3) {
|
|
41
|
+
var children = _ref3.children;
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: (0, _runtime.ax)([customToolbarCompiledStyles.root])
|
|
44
|
+
}, children);
|
|
45
|
+
};
|