@atlaskit/editor-core 219.9.6 → 219.9.8
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 +20 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +31 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +36 -0
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +8 -14
- package/dist/cjs/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
- package/dist/cjs/ui/Appearance/Chromeless-compiled.js +40 -0
- package/dist/cjs/ui/Appearance/Chromeless-emotion.js +91 -0
- package/dist/cjs/ui/Appearance/Chromeless.js +21 -81
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
- package/dist/cjs/ui/PluginSlot/PluginSlot-compiled.js +33 -0
- package/dist/cjs/ui/PluginSlot/PluginSlot-emotion.js +35 -0
- package/dist/cjs/ui/PluginSlot/index.js +10 -15
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +19 -0
- package/dist/es2019/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +26 -0
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +6 -13
- package/dist/es2019/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
- package/dist/es2019/ui/Appearance/Chromeless-compiled.js +32 -0
- package/dist/es2019/ui/Appearance/Chromeless-emotion.js +82 -0
- package/dist/es2019/ui/Appearance/Chromeless.js +17 -82
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
- package/dist/es2019/ui/PluginSlot/PluginSlot-compiled.js +21 -0
- package/dist/es2019/ui/PluginSlot/PluginSlot-emotion.js +25 -0
- package/dist/es2019/ui/PluginSlot/index.js +8 -14
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.compiled.css +2 -0
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.js +22 -0
- package/dist/esm/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.js +30 -0
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +8 -13
- package/dist/esm/ui/Appearance/Chromeless-compiled.compiled.css +27 -0
- package/dist/esm/ui/Appearance/Chromeless-compiled.js +33 -0
- package/dist/esm/ui/Appearance/Chromeless-emotion.js +85 -0
- package/dist/esm/ui/Appearance/Chromeless.js +19 -81
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.compiled.css +1 -0
- package/dist/esm/ui/PluginSlot/PluginSlot-compiled.js +24 -0
- package/dist/esm/ui/PluginSlot/PluginSlot-emotion.js +29 -0
- package/dist/esm/ui/PluginSlot/index.js +10 -14
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +10 -0
- package/dist/types/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +12 -0
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -6
- package/dist/types/ui/Appearance/Chromeless-compiled.d.ts +18 -0
- package/dist/types/ui/Appearance/Chromeless-emotion.d.ts +18 -0
- package/dist/types/ui/Appearance/Chromeless.d.ts +10 -14
- package/dist/types/ui/PluginSlot/PluginSlot-compiled.d.ts +12 -0
- package/dist/types/ui/PluginSlot/PluginSlot-emotion.d.ts +12 -0
- package/dist/types/ui/PluginSlot/index.d.ts +0 -4
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-compiled.d.ts +10 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/clickAreaBlock-emotion.d.ts +12 -0
- package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/index.d.ts +1 -6
- package/dist/types-ts4.5/ui/Appearance/Chromeless-compiled.d.ts +18 -0
- package/dist/types-ts4.5/ui/Appearance/Chromeless-emotion.d.ts +18 -0
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +10 -14
- package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-compiled.d.ts +12 -0
- package/dist/types-ts4.5/ui/PluginSlot/PluginSlot-emotion.d.ts +12 -0
- package/dist/types-ts4.5/ui/PluginSlot/index.d.ts +0 -4
- package/editor-core.docs.tsx +55 -53
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 219.9.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 219.9.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`2b34d9b3c52be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b34d9b3c52be) -
|
|
14
|
+
EDITOR-6461 - migrate chromeless styles
|
|
15
|
+
- [`2b34d9b3c52be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b34d9b3c52be) -
|
|
16
|
+
EDITOR-6461 - migrate editor chromeless styles to compiled
|
|
17
|
+
- [`2f92bfa334e05`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2f92bfa334e05) -
|
|
18
|
+
Migrate ui pluginslot styles
|
|
19
|
+
- [`6ca645eb352a1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6ca645eb352a1) -
|
|
20
|
+
EDITOR-6461 - migrate ui/addon styles
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 219.9.6
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* clickAreaBlock-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.ClickAreaBlockContainerCompiled = void 0;
|
|
10
|
+
require("./clickAreaBlock-compiled.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
var _excluded = ["children"];
|
|
16
|
+
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); }
|
|
17
|
+
/**
|
|
18
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
19
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
var clickWrapperCompiledStyles = {
|
|
23
|
+
root: "_16jlkb7n _4t3i1osq"
|
|
24
|
+
};
|
|
25
|
+
var ClickAreaBlockContainerCompiled = exports.ClickAreaBlockContainerCompiled = function ClickAreaBlockContainerCompiled(_ref) {
|
|
26
|
+
var children = _ref.children,
|
|
27
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({}, rest, {
|
|
29
|
+
className: (0, _runtime.ax)([clickWrapperCompiledStyles.root])
|
|
30
|
+
}), children);
|
|
31
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ClickAreaBlockContainerEmotion = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = require("@emotion/react");
|
|
11
|
+
var _excluded = ["children"];
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
18
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
19
|
+
*
|
|
20
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
21
|
+
*/
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
23
|
+
var clickWrapperEmotionStyles = (0, _react.css)({
|
|
24
|
+
flexGrow: 1,
|
|
25
|
+
height: '100%'
|
|
26
|
+
});
|
|
27
|
+
var ClickAreaBlockContainerEmotion = exports.ClickAreaBlockContainerEmotion = function ClickAreaBlockContainerEmotion(_ref) {
|
|
28
|
+
var children = _ref.children,
|
|
29
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
return (
|
|
31
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
32
|
+
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
33
|
+
css: clickWrapperEmotionStyles
|
|
34
|
+
}, rest), children)
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -6,19 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.ClickAreaBlock = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
10
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
10
11
|
var _clickAreaHelper = require("../click-area-helper");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// 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
|
|
17
|
-
|
|
18
|
-
var clickWrapper = (0, _react2.css)({
|
|
19
|
-
flexGrow: 1,
|
|
20
|
-
height: '100%'
|
|
21
|
-
});
|
|
12
|
+
var _clickAreaBlockCompiled = require("./clickAreaBlock-compiled");
|
|
13
|
+
var _clickAreaBlockEmotion = require("./clickAreaBlock-emotion");
|
|
14
|
+
var ClickAreaBlockContainerMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
15
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
16
|
+
}, _clickAreaBlockCompiled.ClickAreaBlockContainerCompiled, _clickAreaBlockEmotion.ClickAreaBlockContainerEmotion);
|
|
22
17
|
var ClickAreaBlock = exports.ClickAreaBlock = function ClickAreaBlock(_ref) {
|
|
23
18
|
var editorView = _ref.editorView,
|
|
24
19
|
editorDisabled = _ref.editorDisabled,
|
|
@@ -31,10 +26,9 @@ var ClickAreaBlock = exports.ClickAreaBlock = function ClickAreaBlock(_ref) {
|
|
|
31
26
|
(0, _clickAreaHelper.clickAreaClickHandler)(editorView, event);
|
|
32
27
|
}
|
|
33
28
|
}, [editorView, editorDisabled]);
|
|
34
|
-
return
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(ClickAreaBlockContainerMigration, {
|
|
35
30
|
"data-editor-click-wrapper": true,
|
|
36
31
|
"data-testid": "click-wrapper",
|
|
37
|
-
css: clickWrapper,
|
|
38
32
|
onMouseDown: handleMouseDown
|
|
39
33
|
// This div is a presentational container that captures mouse events
|
|
40
34
|
// for programmatic editor focus management, not user interaction.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
._1khk1mok:hover::-webkit-scrollbar-thumb{border-radius:var(--ds-radius-large,8px)}._123b1aqn:hover::-webkit-scrollbar-thumb{background-color:var(--ds-background-neutral-bold,#292a2e)}
|
|
3
|
+
._15gyze3t .ProseMirror>p:last-of-type{margin-bottom:var(--ds-space-0,0)}
|
|
4
|
+
._18m91wug{overflow-y:auto}
|
|
5
|
+
._1awku2gc div>.ProseMirror>:last-child{padding-bottom:var(--ds-space-100,8px)}
|
|
6
|
+
._1fpfolhs{ms-overflow-style:-ms-autohiding-scrollbar}
|
|
7
|
+
._1gfdidpf div>.ProseMirror{margin-bottom:0}
|
|
8
|
+
._1itkidpf div>.ProseMirror{margin-left:0}
|
|
9
|
+
._1nhbidpf div>.ProseMirror{margin-top:0}
|
|
10
|
+
._1q5yidpf div>.ProseMirror{margin-right:0}
|
|
11
|
+
._1reo15vq{overflow-x:hidden}
|
|
12
|
+
._1yt4idpf div>.ProseMirror{padding-top:0}
|
|
13
|
+
._4t3i1wug{height:auto}
|
|
14
|
+
._7fa7idpf div>.ProseMirror{padding-bottom:0}
|
|
15
|
+
._7fkv1jtm div>.ProseMirror{white-space:pre-wrap}
|
|
16
|
+
._8wn3idpf div>.ProseMirror{padding-left:0}
|
|
17
|
+
._aaynsm61::-webkit-scrollbar-thumb{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
18
|
+
._fpqb1r31 div>.ProseMirror{outline-color:currentColor}
|
|
19
|
+
._jaboglyw::-webkit-scrollbar-corner{display:none}
|
|
20
|
+
._l5dlglyw div>.ProseMirror{outline-style:none}
|
|
21
|
+
._p12f1kw7{max-width:inherit}
|
|
22
|
+
._slp31hna{word-wrap:break-word}
|
|
23
|
+
._tjxn1o36 div>.ProseMirror{outline-width:medium}
|
|
24
|
+
._vchhusvi{box-sizing:border-box}
|
|
25
|
+
._vwz4gktf{line-height:20px}
|
|
26
|
+
._y826idpf div>.ProseMirror{padding-right:0}
|
|
27
|
+
._1ogl1ibz::-webkit-scrollbar-thumb:hover{background-color:var(--ds-background-neutral-bold-hovered,#3b3d42)}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Chromeless-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 `Chromeless.tsx`.
|
|
5
|
+
*
|
|
6
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
+
*/
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
|
+
Object.defineProperty(exports, "__esModule", {
|
|
12
|
+
value: true
|
|
13
|
+
});
|
|
14
|
+
exports.ChromelessEditorContainerCompiled = void 0;
|
|
15
|
+
require("./Chromeless-compiled.compiled.css");
|
|
16
|
+
var _runtime = require("@compiled/react/runtime");
|
|
17
|
+
var _react = _interopRequireDefault(require("react"));
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
|
+
var chromelessStyles = {
|
|
21
|
+
scrollbar: "_1fpfolhs _1khk1mok _123b1aqn _jaboglyw _aaynsm61 _1ogl1ibz",
|
|
22
|
+
editor: "_vwz4gktf _4t3i1wug _1reo15vq _18m91wug _p12f1kw7 _vchhusvi _slp31hna _fpqb1r31 _l5dlglyw _tjxn1o36 _1yt4idpf _y826idpf _7fa7idpf _8wn3idpf _1nhbidpf _1q5yidpf _1gfdidpf _1itkidpf _7fkv1jtm _1awku2gc _15gyze3t"
|
|
23
|
+
};
|
|
24
|
+
var ChromelessEditorContainerCompiled = exports.ChromelessEditorContainerCompiled = function ChromelessEditorContainerCompiled(_ref) {
|
|
25
|
+
var children = _ref.children,
|
|
26
|
+
containerRef = _ref.containerRef,
|
|
27
|
+
maxHeight = _ref.maxHeight,
|
|
28
|
+
minHeight = _ref.minHeight;
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
31
|
+
className: (0, _runtime.ax)([chromelessStyles.editor, chromelessStyles.scrollbar, (0, _platformFeatureFlags.fg)('platform_editor_chromeless_akeditor_class') || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined]),
|
|
32
|
+
style: {
|
|
33
|
+
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
34
|
+
minHeight: "".concat(minHeight, "px")
|
|
35
|
+
},
|
|
36
|
+
ref: containerRef,
|
|
37
|
+
"data-testid": "chromeless-editor",
|
|
38
|
+
id: "chromeless-editor"
|
|
39
|
+
}, children);
|
|
40
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ChromelessEditorContainerEmotion = void 0;
|
|
8
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _react = require("@emotion/react");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
|
+
var _excluded = ["children", "containerRef", "maxHeight", "minHeight"];
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
19
|
+
* Used via `componentWithCondition` in `Chromeless.tsx`.
|
|
20
|
+
*
|
|
21
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
22
|
+
*/
|
|
23
|
+
// 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
|
|
24
|
+
var scrollbarStylesNew = (0, _react.css)({
|
|
25
|
+
msOverflowStyle: '-ms-autohiding-scrollbar',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
27
|
+
'&::-webkit-scrollbar-corner': {
|
|
28
|
+
display: 'none'
|
|
29
|
+
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
31
|
+
'&::-webkit-scrollbar-thumb': {
|
|
32
|
+
backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
|
|
33
|
+
},
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
35
|
+
'&:hover::-webkit-scrollbar-thumb': {
|
|
36
|
+
backgroundColor: "var(--ds-background-neutral-bold, #292A2E)",
|
|
37
|
+
borderRadius: "var(--ds-radius-large, 8px)"
|
|
38
|
+
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
40
|
+
'&::-webkit-scrollbar-thumb:hover': {
|
|
41
|
+
backgroundColor: "var(--ds-background-neutral-bold-hovered, #3B3D42)"
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
var chromelessEditorStylesNew = (0, _react.css)({
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
46
|
+
lineHeight: '20px',
|
|
47
|
+
height: 'auto',
|
|
48
|
+
overflowX: 'hidden',
|
|
49
|
+
overflowY: 'auto',
|
|
50
|
+
maxWidth: 'inherit',
|
|
51
|
+
boxSizing: 'border-box',
|
|
52
|
+
wordWrap: 'break-word',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
54
|
+
'div > .ProseMirror': {
|
|
55
|
+
outline: 'none',
|
|
56
|
+
whiteSpace: 'pre-wrap',
|
|
57
|
+
padding: 0,
|
|
58
|
+
margin: 0,
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
60
|
+
'& > :last-child': {
|
|
61
|
+
paddingBottom: "var(--ds-space-100, 8px)"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
65
|
+
'.ProseMirror': {
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
67
|
+
'& > p:last-of-type': {
|
|
68
|
+
marginBottom: "var(--ds-space-0, 0px)"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var ChromelessEditorContainerEmotion = exports.ChromelessEditorContainerEmotion = function ChromelessEditorContainerEmotion(_ref) {
|
|
73
|
+
var children = _ref.children,
|
|
74
|
+
containerRef = _ref.containerRef,
|
|
75
|
+
maxHeight = _ref.maxHeight,
|
|
76
|
+
minHeight = _ref.minHeight,
|
|
77
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
78
|
+
return (0, _react.jsx)("div", {
|
|
79
|
+
css: [chromelessEditorStylesNew, scrollbarStylesNew]
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
81
|
+
,
|
|
82
|
+
className: (0, _platformFeatureFlags.fg)('platform_editor_chromeless_akeditor_class') || (0, _expValEquals.expValEquals)('create_work_item_modernization_exp', 'isEnabled', true) ? 'akEditor' : undefined,
|
|
83
|
+
style: {
|
|
84
|
+
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
85
|
+
minHeight: "".concat(minHeight, "px")
|
|
86
|
+
},
|
|
87
|
+
ref: containerRef,
|
|
88
|
+
"data-testid": "chromeless-editor",
|
|
89
|
+
id: "chromeless-editor"
|
|
90
|
+
}, children);
|
|
91
|
+
};
|
|
@@ -5,8 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.ChromelessEditorContainer =
|
|
9
|
-
exports.default = void 0;
|
|
8
|
+
exports.default = exports.ChromelessEditorContainer = void 0;
|
|
10
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
11
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
@@ -14,67 +13,17 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
15
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
var _react2 = require("@emotion/react");
|
|
18
16
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
19
|
-
var
|
|
17
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
20
18
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
19
|
var _EditorContentContainer = _interopRequireDefault(require("../EditorContentContainer/EditorContentContainer"));
|
|
22
20
|
var _PluginSlot = _interopRequireDefault(require("../PluginSlot"));
|
|
23
21
|
var _WithFlash = _interopRequireDefault(require("../WithFlash"));
|
|
22
|
+
var _ChromelessCompiled = require("./Chromeless-compiled");
|
|
23
|
+
var _ChromelessEmotion = require("./Chromeless-emotion");
|
|
24
24
|
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); }
|
|
25
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
27
|
-
* @jsxRuntime classic
|
|
28
|
-
* @jsx jsx
|
|
29
|
-
*/ // 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
|
|
30
|
-
var scrollbarStylesNew = (0, _react2.css)({
|
|
31
|
-
msOverflowStyle: '-ms-autohiding-scrollbar',
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
33
|
-
'&::-webkit-scrollbar-corner': {
|
|
34
|
-
display: 'none'
|
|
35
|
-
},
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
37
|
-
'&::-webkit-scrollbar-thumb': {
|
|
38
|
-
backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
|
|
39
|
-
},
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
41
|
-
'&:hover::-webkit-scrollbar-thumb': {
|
|
42
|
-
backgroundColor: "var(--ds-background-neutral-bold, #292A2E)",
|
|
43
|
-
borderRadius: "var(--ds-radius-large, 8px)"
|
|
44
|
-
},
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
46
|
-
'&::-webkit-scrollbar-thumb:hover': {
|
|
47
|
-
backgroundColor: "var(--ds-background-neutral-bold-hovered, #3B3D42)"
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
var chromelessEditorStylesNew = (0, _react2.css)({
|
|
51
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
52
|
-
lineHeight: '20px',
|
|
53
|
-
height: 'auto',
|
|
54
|
-
overflowX: 'hidden',
|
|
55
|
-
overflowY: 'auto',
|
|
56
|
-
maxWidth: 'inherit',
|
|
57
|
-
boxSizing: 'border-box',
|
|
58
|
-
wordWrap: 'break-word',
|
|
59
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
60
|
-
'div > .ProseMirror': {
|
|
61
|
-
outline: 'none',
|
|
62
|
-
whiteSpace: 'pre-wrap',
|
|
63
|
-
padding: 0,
|
|
64
|
-
margin: 0,
|
|
65
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
66
|
-
'& > :last-child': {
|
|
67
|
-
paddingBottom: "var(--ds-space-100, 8px)"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
71
|
-
'.ProseMirror': {
|
|
72
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
73
|
-
'& > p:last-of-type': {
|
|
74
|
-
marginBottom: "var(--ds-space-0, 0px)"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
78
27
|
/**
|
|
79
28
|
* Render the editor in a chromeless appearance.
|
|
80
29
|
* Example use is the inline comment editor, which doesn't have editor toolbar
|
|
@@ -122,20 +71,20 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
122
71
|
var containerRef = (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? _this.setContainerElement : function (ref) {
|
|
123
72
|
return _this.containerElement = ref;
|
|
124
73
|
};
|
|
125
|
-
return
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(_WithFlash.default, {
|
|
126
75
|
animate: maxContentSizeReached
|
|
127
|
-
},
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement(ChromelessEditorContainer, {
|
|
128
77
|
maxHeight: maxHeight,
|
|
129
78
|
minHeight: minHeight,
|
|
130
79
|
containerRef: containerRef
|
|
131
|
-
},
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement(_EditorContentContainer.default
|
|
132
81
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
133
82
|
, {
|
|
134
83
|
className: "ak-editor-content-area",
|
|
135
84
|
featureFlags: featureFlags,
|
|
136
85
|
viewMode: editorViewMode,
|
|
137
86
|
appearance: _this.appearance
|
|
138
|
-
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents,
|
|
87
|
+
}, customContentComponents && 'before' in customContentComponents ? customContentComponents.before : customContentComponents, /*#__PURE__*/_react.default.createElement(_PluginSlot.default, {
|
|
139
88
|
editorView: editorView,
|
|
140
89
|
editorActions: editorActions,
|
|
141
90
|
eventDispatcher: eventDispatcher,
|
|
@@ -158,7 +107,7 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
158
107
|
return (0, _createClass2.default)(Editor, [{
|
|
159
108
|
key: "render",
|
|
160
109
|
value: function render() {
|
|
161
|
-
return
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement(RenderWithPluginState, {
|
|
162
111
|
editorAPI: this.props.editorAPI,
|
|
163
112
|
renderChrome: this.renderChrome
|
|
164
113
|
});
|
|
@@ -179,26 +128,17 @@ function RenderWithPluginState(_ref2) {
|
|
|
179
128
|
var maxContentSize = maxContentSizeReached === undefined ? undefined : {
|
|
180
129
|
maxContentSizeReached: maxContentSizeReached
|
|
181
130
|
};
|
|
182
|
-
return
|
|
131
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, renderChrome({
|
|
183
132
|
maxContentSize: maxContentSize
|
|
184
133
|
}));
|
|
185
134
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
style: {
|
|
197
|
-
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
198
|
-
minHeight: "".concat(minHeight, "px")
|
|
199
|
-
},
|
|
200
|
-
"data-testid": "chromeless-editor",
|
|
201
|
-
id: "chromeless-editor",
|
|
202
|
-
ref: containerRef
|
|
203
|
-
}, children);
|
|
204
|
-
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Container for the chromeless editor appearance. This is used to set the max and min height
|
|
138
|
+
* of the editor content area, and to provide a ref to the container element for the popups.
|
|
139
|
+
* @param param0 props for the chromeless editor container
|
|
140
|
+
* @returns JSX element representing the chromeless editor container
|
|
141
|
+
*/
|
|
142
|
+
var ChromelessEditorContainer = exports.ChromelessEditorContainer = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
143
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
144
|
+
}, _ChromelessCompiled.ChromelessEditorContainerCompiled, _ChromelessEmotion.ChromelessEditorContainerEmotion);
|
|
@@ -373,7 +373,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
373
373
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
374
374
|
_unsupportedStyles.unsupportedStyles,
|
|
375
375
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
376
|
-
_resizerStyles.resizerStyles, (0, _expValEquals.expValEquals)('databases-native-embeds-v2', 'isEnabled', true) &&
|
|
376
|
+
_resizerStyles.resizerStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-maui-experiment', 'isEnabled', true) && (0, _expValEquals.expValEquals)('databases-native-embeds-v2', 'isEnabled', true) &&
|
|
377
377
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
378
378
|
_resizerStyles.resizerBottomHandleStyles,
|
|
379
379
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._1e0c1txw{display:flex}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* PluginSlot-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.PluginsComponentsWrapperCompiled = void 0;
|
|
10
|
+
require("./PluginSlot-compiled.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
var _excluded = ["children"];
|
|
16
|
+
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); }
|
|
17
|
+
/**
|
|
18
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
19
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
20
|
+
*
|
|
21
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
var pluginsComponentsWrapperCompiledStyles = {
|
|
25
|
+
root: "_1e0c1txw"
|
|
26
|
+
};
|
|
27
|
+
var PluginsComponentsWrapperCompiled = exports.PluginsComponentsWrapperCompiled = function PluginsComponentsWrapperCompiled(_ref) {
|
|
28
|
+
var children = _ref.children,
|
|
29
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({}, rest, {
|
|
31
|
+
className: (0, _runtime.ax)([pluginsComponentsWrapperCompiledStyles.root])
|
|
32
|
+
}), children);
|
|
33
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.PluginsComponentsWrapperEmotion = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = require("@emotion/react");
|
|
11
|
+
var _excluded = ["children"];
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
18
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
19
|
+
*
|
|
20
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
21
|
+
*/
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
23
|
+
var pluginsComponentsWrapperEmotionStyles = (0, _react.css)({
|
|
24
|
+
display: 'flex'
|
|
25
|
+
});
|
|
26
|
+
var PluginsComponentsWrapperEmotion = exports.PluginsComponentsWrapperEmotion = function PluginsComponentsWrapperEmotion(_ref) {
|
|
27
|
+
var children = _ref.children,
|
|
28
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
29
|
+
return (
|
|
30
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
31
|
+
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
32
|
+
css: pluginsComponentsWrapperEmotionStyles
|
|
33
|
+
}, rest), children)
|
|
34
|
+
);
|
|
35
|
+
};
|
|
@@ -6,21 +6,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _react2 = require("@emotion/react");
|
|
10
9
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
11
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
|
+
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
12
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
13
|
var _ErrorBoundary = require("../ErrorBoundary");
|
|
13
14
|
var _mountPluginHooks = require("./mount-plugin-hooks");
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// 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
|
|
20
|
-
|
|
21
|
-
var pluginsComponentsWrapper = (0, _react2.css)({
|
|
22
|
-
display: 'flex'
|
|
23
|
-
});
|
|
15
|
+
var _PluginSlotCompiled = require("./PluginSlot-compiled");
|
|
16
|
+
var _PluginSlotEmotion = require("./PluginSlot-emotion");
|
|
17
|
+
var PluginsComponentsWrapperMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
18
|
+
return (0, _expValEquals.expValEquals)('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
19
|
+
}, _PluginSlotCompiled.PluginsComponentsWrapperCompiled, _PluginSlotEmotion.PluginsComponentsWrapperEmotion);
|
|
24
20
|
var PluginSlot = function PluginSlot(_ref) {
|
|
25
21
|
var items = _ref.items,
|
|
26
22
|
editorView = _ref.editorView,
|
|
@@ -39,15 +35,14 @@ var PluginSlot = function PluginSlot(_ref) {
|
|
|
39
35
|
if (!items && !pluginHooks) {
|
|
40
36
|
return null;
|
|
41
37
|
}
|
|
42
|
-
return
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_ErrorBoundary.ErrorBoundary, {
|
|
43
39
|
component: _analytics.ACTION_SUBJECT.PLUGIN_SLOT,
|
|
44
40
|
fallbackComponent: null
|
|
45
|
-
},
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_mountPluginHooks.MountPluginHooks, {
|
|
46
42
|
editorView: editorView,
|
|
47
43
|
pluginHooks: pluginHooks,
|
|
48
44
|
containerElement: containerElement
|
|
49
|
-
}),
|
|
50
|
-
css: pluginsComponentsWrapper,
|
|
45
|
+
}), /*#__PURE__*/_react.default.createElement(PluginsComponentsWrapperMigration, {
|
|
51
46
|
"data-testid": "plugins-components-wrapper"
|
|
52
47
|
}, items === null || items === void 0 ? void 0 : items.map(function (component, key) {
|
|
53
48
|
var props = {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* clickAreaBlock-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./clickAreaBlock-compiled.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
/**
|
|
7
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
8
|
+
* Used via `componentWithCondition` in `index.tsx`.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const clickWrapperCompiledStyles = {
|
|
12
|
+
root: "_16jlkb7n _4t3i1osq"
|
|
13
|
+
};
|
|
14
|
+
export const ClickAreaBlockContainerCompiled = ({
|
|
15
|
+
children,
|
|
16
|
+
...rest
|
|
17
|
+
}) => /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
18
|
+
className: ax([clickWrapperCompiledStyles.root])
|
|
19
|
+
}), children);
|