@atlaskit/editor-core 217.4.3 → 217.4.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 +25 -0
- package/codemods/140.0.0-rc-kraken-fix-type-errors.ts +6 -1
- package/codemods/145.0.0-deprecate-props.ts +3 -1
- package/codemods/172.0.0-transform-smartlinks-prop.ts +3 -1
- package/codemods/175.0.0-rename-unsafe-allowUndoRedoButton-prop.ts +3 -1
- package/codemods/180.1.0-update-to-editor-migration-component.ts +3 -1
- package/codemods/migrates/next-remove-allow-more-text-colors-prop.ts +2 -2
- package/codemods/migrates/remove-config-panel-width-prop.ts +2 -2
- package/codemods/migrates/rename-editor-to-editor-migration-component.ts +2 -2
- package/codemods/migrates/rename-smartlinks-prop.ts +2 -2
- package/codemods/migrates/rename-unsafe-allowUndoRedoButtons-prop.ts +4 -1
- package/codemods/migrates/rename-unsafe-cards-prop.ts +4 -1
- package/codemods/utils.ts +2 -2
- package/dist/cjs/composable-editor/core-editor.js +1 -1
- package/dist/cjs/editor.js +1 -1
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +1 -1
- package/dist/cjs/ui/Addon/Dropdown/index.js +1 -1
- package/dist/cjs/ui/Appearance/Chromeless.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +5 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
- package/dist/cjs/ui/ChromeCollapsed/index.js +1 -1
- package/dist/cjs/ui/ContextPanel/index.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +6 -7
- package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +10 -1
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +12 -14
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +12 -20
- package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +1 -10
- package/dist/cjs/ui/PluginSlot/index.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/cjs/ui/WithFlash/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +1 -1
- package/dist/es2019/editor.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +1 -1
- package/dist/es2019/ui/Addon/Dropdown/index.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +5 -8
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
- package/dist/es2019/ui/ChromeCollapsed/index.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +9 -10
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +9 -0
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +12 -14
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +10 -20
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +0 -9
- package/dist/es2019/ui/PluginSlot/index.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/es2019/ui/WithFlash/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +1 -1
- package/dist/esm/editor.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +1 -1
- package/dist/esm/ui/Addon/Dropdown/index.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/CustomToolbarWrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +5 -6
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +1 -1
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +9 -10
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +9 -0
- package/dist/esm/ui/EditorContentContainer/styles/list.js +12 -14
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +11 -17
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +0 -9
- package/dist/esm/ui/PluginSlot/index.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarInner.js +1 -1
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/esm/ui/WithFlash/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -1
- package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -1
- package/dist/types/ui/WithHelpTrigger/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/expandStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/syncBlockStyles.d.ts +0 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +0 -1
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +1 -1
- package/package.json +5 -11
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.tableLayoutFixes = exports.tableEmptyRowStyles = exports.tableContainerStyles = exports.
|
|
7
|
+
exports.tableLayoutFixes = exports.tableEmptyRowStyles = exports.tableContainerStyles = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _scrollbarStyles = require("./scrollbarStyles");
|
|
@@ -60,15 +60,6 @@ var tableContainerStyles = exports.tableContainerStyles = (0, _react.css)({
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
64
|
-
var tableContainerOverflowY = exports.tableContainerOverflowY = (0, _react.css)({
|
|
65
|
-
/* Fix for HOT-119925: Ensure table containers have proper width constraints and overflow handling */
|
|
66
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
67
|
-
'.ProseMirror .pm-table-wrapper': {
|
|
68
|
-
overflowY: 'visible'
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
|
|
72
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
73
64
|
var tableEmptyRowStyles = exports.tableEmptyRowStyles = (0, _react.css)({
|
|
74
65
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -17,7 +17,7 @@ var _mountPluginHooks = require("./mount-plugin-hooks");
|
|
|
17
17
|
* @jsx jsx
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
// 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
|
|
21
21
|
|
|
22
22
|
var pluginsComponentsWrapper = (0, _react2.css)({
|
|
23
23
|
display: 'flex'
|
|
@@ -20,7 +20,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
20
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
21
21
|
* @jsxRuntime classic
|
|
22
22
|
* @jsx jsx
|
|
23
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
*/ // 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
|
|
24
24
|
var toolbarComponentsWrapper = (0, _react2.css)((0, _defineProperty2.default)({
|
|
25
25
|
display: 'flex'
|
|
26
26
|
}, "@media (max-width: ".concat(_editorSharedStyles.akEditorMobileMaxWidth, "px)"), {
|
|
@@ -23,7 +23,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
|
+
// 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
|
|
27
27
|
|
|
28
28
|
var toolbar = (0, _react2.css)({
|
|
29
29
|
width: '100%',
|
|
@@ -17,7 +17,7 @@ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0,
|
|
|
17
17
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
18
18
|
* @jsxRuntime classic
|
|
19
19
|
* @jsx jsx
|
|
20
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
*/ // 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
|
|
21
21
|
var pulseBackground = (0, _react2.keyframes)({
|
|
22
22
|
'50%': {
|
|
23
23
|
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
@@ -5,7 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
5
5
|
*/
|
|
6
6
|
import { useCallback, useMemo, useRef, Fragment } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import isEqual from 'lodash/isEqual';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
package/dist/es2019/editor.js
CHANGED
|
@@ -9,7 +9,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
9
9
|
*/
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
// 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
|
|
13
13
|
import { jsx } from '@emotion/react';
|
|
14
14
|
import { ComposableEditor } from './composable-editor';
|
|
15
15
|
import useUniversalPreset from './presets/useUniversalPreset';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { dropdown } from './styles';
|
|
11
11
|
// Ignored via go/ees005
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { Fragment } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
11
11
|
import EditorContentContainer from '../EditorContentContainer/EditorContentContainer';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import classnames from 'classnames';
|
|
10
10
|
import { useIntl } from 'react-intl-next';
|
|
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
// 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
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
// 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
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
const beforePrimaryToolbarPluginWrapperStyles = css({
|
|
9
9
|
display: 'flex',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
// Pre-computed static styles for first- and second-child wrappers.
|
|
10
10
|
// These contain no runtime logic and are safe for static-emotion mode.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
10
10
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
@@ -13,7 +13,6 @@ import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
|
13
13
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
14
14
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
16
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
18
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
18
|
// Ignored via go/ees005
|
|
@@ -214,6 +213,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
214
213
|
const contentAreaRef = useRef(null);
|
|
215
214
|
const containerRef = useRef(null);
|
|
216
215
|
const allowScrollGutter = (_props$editorAPI = props.editorAPI) === null || _props$editorAPI === void 0 ? void 0 : (_props$editorAPI$base = _props$editorAPI.base) === null || _props$editorAPI$base === void 0 ? void 0 : (_props$editorAPI$base2 = _props$editorAPI$base.sharedState.currentState()) === null || _props$editorAPI$base2 === void 0 ? void 0 : _props$editorAPI$base2.allowScrollGutter;
|
|
216
|
+
const contentAreaMaxWidth = getTotalPadding() + (!fullWidthMode ? maxWidthMode ? akEditorUltraWideLayoutWidth : theme.layoutMaxWidth : akEditorFullWidthLayoutWidth);
|
|
217
217
|
useImperativeHandle(ref, () => ({
|
|
218
218
|
get scrollContainer() {
|
|
219
219
|
return scrollContainerRef.current;
|
|
@@ -253,11 +253,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
253
253
|
// for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
|
|
254
254
|
expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, fg('platform_editor_nested_dnd_styles_changes') && editorContentAreaContainerNestedDndStyle, !fg('platform_editor_controls_no_toolbar_space') && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReducedHeaderSpace, !fg('platform_editor_controls_no_toolbar_space') && props.isEditorToolbarHidden && editorExperiment('platform_editor_controls', 'variant1') && contentAreaReservedPrimaryToolbarSpace],
|
|
255
255
|
style: {
|
|
256
|
-
'--ak-editor-content-area-max-width':
|
|
257
|
-
// @ts-ignore
|
|
258
|
-
`${akEditorUltraWideLayoutWidth + getTotalPadding()}px` :
|
|
259
|
-
// @ts-ignore
|
|
260
|
-
`${theme.layoutMaxWidth + getTotalPadding()}px` : `${akEditorFullWidthLayoutWidth + getTotalPadding()}px`
|
|
256
|
+
'--ak-editor-content-area-max-width': `${contentAreaMaxWidth}px`
|
|
261
257
|
}
|
|
262
258
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
263
259
|
,
|
|
@@ -265,7 +261,8 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
265
261
|
"data-editor-editable-content": true,
|
|
266
262
|
role: "region",
|
|
267
263
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
268
|
-
ref: contentAreaRef
|
|
264
|
+
ref: contentAreaRef,
|
|
265
|
+
"data-vc": "editor-content-area-region"
|
|
269
266
|
}, jsx("div", {
|
|
270
267
|
css: [editorContentGutterStyles,
|
|
271
268
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import React, { useEffect, useCallback, useState } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/context-panel';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { akEditorFloatingDialogZIndex, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
10
10
|
import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { PureComponent } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import { messages } from './messages';
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
// 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
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { injectIntl } from 'react-intl-next';
|
|
12
12
|
import Transition from 'react-transition-group/Transition';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { jsx, useTheme } from '@emotion/react';
|
|
10
10
|
import { browser as browserLegacy, getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
11
11
|
import { richMediaClassName, tableSharedStyle } from '@atlaskit/editor-common/styles';
|
|
@@ -31,7 +31,7 @@ import { dangerDateStyles, dateStyles, dateVanillaStyles } from './styles/dateSt
|
|
|
31
31
|
import { editorUGCSmallText, editorUGCTokensDefault, editorUGCTokensRefreshed } from './styles/editorUGCTokenStyles';
|
|
32
32
|
import { embedCardStyles } from './styles/embedCardStyles';
|
|
33
33
|
import { emojiDangerStyles, emojiStyles, getDenseEmojiStyles, getScaledDenseEmojiStyles, scaledEmojiStyles } from './styles/emoji';
|
|
34
|
-
import { expandStyles, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
|
|
34
|
+
import { expandStyles, expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes, expandStylesMixin_fg_platform_visual_refresh_icons, expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes, getDenseExpandTitleStyles } from './styles/expandStyles';
|
|
35
35
|
import { extensionDiffStyles, getExtensionStyles } from './styles/extensionStyles';
|
|
36
36
|
import { findReplaceStyles, findReplaceStylesNewWithA11Y, findReplaceStylesNewWithCodeblockColorContrastFix, findReplaceStylesWithCodeblockColorContrastFix } from './styles/findReplaceStyles';
|
|
37
37
|
import { firstBlockNodeStyles } from './styles/firstBlockNodeStyles';
|
|
@@ -58,8 +58,8 @@ import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles
|
|
|
58
58
|
import { shadowStyles } from './styles/shadowStyles';
|
|
59
59
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, showDiffDeletedNodeStyles, showDiffDeletedNodeStylesNew, smartCardDiffStyles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
60
60
|
import { statusDangerStyles, statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
|
|
61
|
-
import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles
|
|
62
|
-
import { tableCommentEditorStyles,
|
|
61
|
+
import { syncBlockStyles, syncBlockFirstNodeStyles, syncBlockOverflowStyles } from './styles/syncBlockStyles';
|
|
62
|
+
import { tableCommentEditorStyles, tableContainerStyles, tableEmptyRowStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
63
63
|
import { decisionDangerStyles, decisionIconWithVisualRefresh, decisionStyles, getDenseTasksAndDecisionsStyles, taskItemCheckboxStyles, taskItemCheckboxStylesWithBlockTaskItem, taskItemNextCheckboxStyles, taskItemStyles, taskItemStylesWithBlockTaskItem, tasksAndDecisionsStyles } from './styles/tasksAndDecisionsStyles';
|
|
64
64
|
import { telepointerColorAndCommonStyle, telepointerStyle } from './styles/telepointerStyles';
|
|
65
65
|
import { textColorStyles } from './styles/textColorStyles';
|
|
@@ -119,6 +119,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
119
119
|
} = useThemeObserver();
|
|
120
120
|
const isFullPage = appearance === 'full-page' || appearance === 'full-width' || (expValEqualsNoExposure('editor_tinymce_full_width_mode', 'isEnabled', true) || expValEqualsNoExposure('confluence_max_width_content_appearance', 'isEnabled', true)) && appearance === 'max';
|
|
121
121
|
const isComment = appearance === 'comment';
|
|
122
|
+
const isChromeless = appearance === 'chromeless';
|
|
122
123
|
const baseFontSize = getBaseFontSize(appearance, contentMode);
|
|
123
124
|
const style = editorExperiment('platform_editor_preview_panel_responsiveness', true, {
|
|
124
125
|
exposure: true
|
|
@@ -299,7 +300,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
299
300
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
300
301
|
expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes,
|
|
301
302
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
302
|
-
expandStylesMixin_fg_platform_visual_refresh_icons, expValEquals('
|
|
303
|
+
expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && expValEquals('platform_editor_chromeless_expand_fix', 'isEnabled', true) &&
|
|
304
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
305
|
+
expandStylesMixin_experiment_platform_editor_chromeless_expand_fix, expValEquals('platform_editor_find_and_replace_improvements', 'isEnabled', true) ?
|
|
303
306
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
304
307
|
findReplaceStylesNewWithA11Y :
|
|
305
308
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -365,9 +368,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
365
368
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
366
369
|
editorExperiment('platform_synced_block', true) && syncBlockOverflowStyles, editorExperiment('platform_synced_block', true) &&
|
|
367
370
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
368
|
-
syncBlockFirstNodeStyles,
|
|
369
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
370
|
-
syncBlockDraggingStyles,
|
|
371
|
+
syncBlockFirstNodeStyles,
|
|
371
372
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
372
373
|
editorExperiment('advanced_layouts', true) && layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ?
|
|
373
374
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -503,8 +504,6 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
503
504
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
504
505
|
tableContainerStyles,
|
|
505
506
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
506
|
-
!fg('platform_editor_table_container_y_overflow_fix') && tableContainerOverflowY,
|
|
507
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
508
507
|
tableSharedStyle(),
|
|
509
508
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
510
509
|
tableEmptyRowStyles,
|
|
@@ -296,6 +296,15 @@ export const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes = cs
|
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
300
|
+
export const expandStylesMixin_experiment_platform_editor_chromeless_expand_fix = css({
|
|
301
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
302
|
+
'.ProseMirror > .ak-editor-expand': {
|
|
303
|
+
marginLeft: 0,
|
|
304
|
+
marginRight: 0
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
|
|
299
308
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
300
309
|
export const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes = css({
|
|
301
310
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -207,28 +207,26 @@ export const getDenseListStyles = baseFontSize => {
|
|
|
207
207
|
export const listItemHiddenMarkerStyles = css({
|
|
208
208
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
209
209
|
'.ProseMirror': {
|
|
210
|
-
// Hide
|
|
211
|
-
// Wrapper items for bullet lists: li with only ul child
|
|
210
|
+
// Hide markers and remove spacing for wrapper list items (items containing only nested lists)
|
|
212
211
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
213
|
-
'li:has(> ul:only-child)': {
|
|
212
|
+
'li:has(> ul:only-child), li:has(> ol:only-child), li:has(> div[data-node-type="actionList"]:only-child)': {
|
|
214
213
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
215
|
-
listStyleType: 'none !important'
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
219
|
-
'li:has(> ol:only-child)': {
|
|
214
|
+
listStyleType: 'none !important',
|
|
215
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
216
|
+
marginTop: '0 !important',
|
|
220
217
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
221
|
-
|
|
218
|
+
marginBottom: '0 !important'
|
|
222
219
|
},
|
|
223
|
-
//
|
|
220
|
+
// Remove margin from nested lists inside wrapper list items to avoid double spacing
|
|
224
221
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
225
|
-
'li:has(> div[data-node-type="actionList"]:only-child)': {
|
|
222
|
+
'li:has(> ul:only-child) > ul, li:has(> ol:only-child) > ol, li:has(> div[data-node-type="actionList"]:only-child) > div[data-node-type="actionList"]': {
|
|
226
223
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
227
|
-
|
|
224
|
+
marginTop: '0 !important'
|
|
228
225
|
},
|
|
229
|
-
//
|
|
226
|
+
// Collapse wrapper task items (empty task items followed by a sibling nested task list)
|
|
227
|
+
// Only hides empty task items that are actual wrappers, not regular empty task items being edited
|
|
230
228
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
231
|
-
'
|
|
229
|
+
'[data-prosemirror-node-name="taskItem"]:has([data-empty="true"]):has(+ [data-node-type="actionList"])': {
|
|
232
230
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
233
231
|
display: 'none !important'
|
|
234
232
|
}
|
|
@@ -145,6 +145,16 @@ export const syncBlockStyles = css({
|
|
|
145
145
|
visibility: 'hidden'
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
|
+
/* Dragging state */
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
150
|
+
[`&.${SyncBlockStateCssClassName.draggingClassName}`]: {
|
|
151
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border, #0B120E24)"}`,
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
153
|
+
[`.${SyncBlockLabelSharedCssClassName.labelClassName}`]: {
|
|
154
|
+
opacity: 1,
|
|
155
|
+
visibility: 'visible'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
148
158
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
149
159
|
[`.${BodiedSyncBlockSharedCssClassName.content}`]: {
|
|
150
160
|
padding: '0 18px',
|
|
@@ -222,24 +232,4 @@ export const syncBlockFirstNodeStyles = css({
|
|
|
222
232
|
marginTop: 0
|
|
223
233
|
}
|
|
224
234
|
}
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
// combine this with the selection inside styles when cleaning up platform_synced_block_patch_5
|
|
228
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
229
|
-
export const syncBlockDraggingStyles = css({
|
|
230
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
231
|
-
'.ProseMirror': {
|
|
232
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
233
|
-
[`.${SyncBlockSharedCssClassName.prefix}, .${BodiedSyncBlockSharedCssClassName.prefix}`]: {
|
|
234
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
235
|
-
[`&.${SyncBlockStateCssClassName.draggingClassName}`]: {
|
|
236
|
-
boxShadow: `0 0 0 1px ${"var(--ds-border, #0B120E24)"}`,
|
|
237
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
238
|
-
[`.${SyncBlockLabelSharedCssClassName.labelClassName}`]: {
|
|
239
|
-
opacity: 1,
|
|
240
|
-
visibility: 'visible'
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
235
|
});
|
|
@@ -56,15 +56,6 @@ export const tableContainerStyles = css({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
60
|
-
export const tableContainerOverflowY = css({
|
|
61
|
-
/* Fix for HOT-119925: Ensure table containers have proper width constraints and overflow handling */
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
-
'.ProseMirror .pm-table-wrapper': {
|
|
64
|
-
overflowY: 'visible'
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
|
|
68
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
69
60
|
export const tableEmptyRowStyles = css({
|
|
70
61
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
10
10
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
+
// 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
|
|
9
9
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
10
10
|
const pulseBackground = keyframes({
|
|
11
11
|
'50%': {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "217.4.
|
|
2
|
+
export const version = "217.4.4";
|
|
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
9
9
|
*/
|
|
10
10
|
import { useCallback, useMemo, useRef, Fragment } from 'react';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
// 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
|
|
13
13
|
import { jsx } from '@emotion/react';
|
|
14
14
|
import isEqual from 'lodash/isEqual';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
package/dist/esm/editor.js
CHANGED
|
@@ -16,7 +16,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
16
16
|
*/
|
|
17
17
|
import React from 'react';
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
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
20
|
import { jsx } from '@emotion/react';
|
|
21
21
|
import { ComposableEditor } from './composable-editor';
|
|
22
22
|
import useUniversalPreset from './presets/useUniversalPreset';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { clickAreaClickHandler } from '../click-area-helper';
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
*/
|
|
13
13
|
import React from 'react';
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
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
16
|
import { jsx } from '@emotion/react';
|
|
17
17
|
import { dropdown } from './styles';
|
|
18
18
|
// Ignored via go/ees005
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
*/
|
|
13
13
|
import React, { Fragment } from 'react';
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
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
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
18
18
|
import EditorContentContainer from '../EditorContentContainer/EditorContentContainer';
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
*/
|
|
7
7
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
// 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
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
12
|
import { useIntl } from 'react-intl-next';
|
|
@@ -9,7 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
9
9
|
|
|
10
10
|
import React, { useEffect, useState } from 'react';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
// 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
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
// 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
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
var beforePrimaryToolbarPluginWrapperStyles = css({
|
|
9
9
|
display: 'flex',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
+
// 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
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
// Pre-computed static styles for first- and second-child wrappers.
|
|
10
10
|
// These contain no runtime logic and are safe for static-emotion mode.
|