@atlaskit/editor-core 215.15.0 → 215.15.2
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/composable-editor/core-editor.js +2 -2
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +3 -8
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +2 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +2 -2
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +4 -9
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +1 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +2 -2
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +4 -9
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +2 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.15.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41a91a916c125`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41a91a916c125) -
|
|
8
|
+
EDITOR-2846 Change platform_synced_block to use editorExperiment and add Jira experiment
|
|
9
|
+
- [`3964517d6aa61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3964517d6aa61) -
|
|
10
|
+
fix unsafe experiment usage for platform_editor_block_menu
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 215.15.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`9b498e7d943c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b498e7d943c0) -
|
|
18
|
+
NOISSUE: hydration example quality of life improvements
|
|
19
|
+
- [`5e935a27d0d78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e935a27d0d78) -
|
|
20
|
+
Cleanup platform_editor_resizer_cls_fix experiment
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 215.15.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -18,7 +18,7 @@ var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents"
|
|
|
18
18
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
19
19
|
var _performanceMeasures = require("@atlaskit/editor-common/performance-measures");
|
|
20
20
|
var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
|
|
21
|
-
var
|
|
21
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
22
|
var _actions = _interopRequireDefault(require("../actions"));
|
|
23
23
|
var _EditorContext = require("../ui/EditorContext");
|
|
24
24
|
var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
|
|
@@ -95,7 +95,7 @@ function Editor(passedProps) {
|
|
|
95
95
|
onSaveFromProps(view);
|
|
96
96
|
}
|
|
97
97
|
}, [onSaveFromProps]);
|
|
98
|
-
var isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width'].concat((0, _toConsumableArray2.default)((0,
|
|
98
|
+
var isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width'].concat((0, _toConsumableArray2.default)((0, _experiments.editorExperiment)('platform_synced_block', true) ? ['max'] : [])).includes(props.appearance));
|
|
99
99
|
return (0, _react2.jsx)(_react.Fragment, null, isFullPageAppearance ? (0, _react2.jsx)(_editorInpMetrics.EditorINPMetrics, null) : null, (0, _react2.jsx)(_editorInternal.EditorInternal, {
|
|
100
100
|
props: props,
|
|
101
101
|
handleAnalyticsEvent: handleAnalyticsEvent,
|
|
@@ -224,7 +224,7 @@ function createUniversalPresetInternal(_ref) {
|
|
|
224
224
|
}], Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
|
|
225
225
|
menuDisabled: statusMenuDisabled,
|
|
226
226
|
allowZeroWidthSpaceAfter: true
|
|
227
|
-
}], Boolean(props.allowStatus)).maybeAdd([_syncedBlock.syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) && (0,
|
|
227
|
+
}], Boolean(props.allowStatus)).maybeAdd([_syncedBlock.syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) && (0, _experiments.editorExperiment)('platform_synced_block', true)).maybeAdd(_indentation.indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(_scrollIntoView.scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([_toolbarListsIndentation.toolbarListsIndentationPlugin, {
|
|
228
228
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
229
229
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
230
230
|
}]).add([_insertBlock.insertBlockPlugin, _objectSpread({
|
|
@@ -140,13 +140,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
140
140
|
'--ak-editor--large-gutter-padding': "".concat((0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), "px")
|
|
141
141
|
};
|
|
142
142
|
var browser = (0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) ? (0, _browser.getBrowserInfo)() : _browser.browser;
|
|
143
|
-
var allClassNames = [className];
|
|
144
|
-
if ((0, _expVal.expVal)('platform_editor_resizer_cls_fix', 'isEnabled', false)) {
|
|
145
|
-
allClassNames.push('resizer-hover-zone-cls-fix');
|
|
146
|
-
}
|
|
147
143
|
return (0, _react2.jsx)("div", {
|
|
148
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
149
|
-
className:
|
|
145
|
+
className: className,
|
|
150
146
|
ref: ref,
|
|
151
147
|
css: [
|
|
152
148
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -334,7 +330,7 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
334
330
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
335
331
|
_layout.layoutBaseStyles,
|
|
336
332
|
// merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
|
|
337
|
-
(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, (0,
|
|
333
|
+
(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
|
|
338
334
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
339
335
|
_syncBlockStyles.syncBlockStyles,
|
|
340
336
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -465,9 +461,8 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
465
461
|
(0, _platformFeatureFlags.fg)('confluence_floating_toolbar_animation') && _selectionToolbarStyles.selectionToolbarAnimationStyles,
|
|
466
462
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
467
463
|
(0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarningStyles.codeBidiWarningStyles,
|
|
468
|
-
// @ts-expect-error - true is not allowed as a default value
|
|
469
464
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
470
|
-
(0, _expVal.expValNoExposure)('platform_editor_block_menu', 'isEnabled',
|
|
465
|
+
(0, _expVal.expValNoExposure)('platform_editor_block_menu', 'isEnabled', false) && [
|
|
471
466
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
472
467
|
_dateStyles.dangerDateStyles,
|
|
473
468
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -21,7 +21,7 @@ var resizerHandleThumbWidth = exports.resizerHandleThumbWidth = 3;
|
|
|
21
21
|
var handleWrapperClass = exports.handleWrapperClass = 'resizer-handle-wrapper';
|
|
22
22
|
|
|
23
23
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
|
|
24
|
-
var resizerStyles = exports.resizerStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)(
|
|
24
|
+
var resizerStyles = exports.resizerStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(resizerItemClassName), (0, _defineProperty2.default)({
|
|
25
25
|
willChange: 'width',
|
|
26
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
27
27
|
'&:hover, &.display-handle': (0, _defineProperty2.default)({}, "& > .".concat(handleWrapperClass, " > .").concat(resizerHandleClassName), {
|
|
@@ -152,11 +152,9 @@ var resizerStyles = exports.resizerStyles = (0, _react.css)((0, _defineProperty2
|
|
|
152
152
|
background: "var(--ds-border-focused, #4688EC)"
|
|
153
153
|
})), ".ak-editor-no-interaction .ak-editor-selected-node .".concat(resizerHandleClassName, ":not(:hover) .").concat(resizerHandleThumbClassName), {
|
|
154
154
|
background: "var(--ds-border, #0B120E24)"
|
|
155
|
-
}), "&.resizer-hover-zone-cls-fix .".concat(resizerHoverZoneClassName), {
|
|
156
|
-
display: 'flow-root'
|
|
157
155
|
}), ".".concat(resizerHoverZoneClassName), (0, _defineProperty2.default)({
|
|
158
156
|
position: 'relative',
|
|
159
|
-
display: '
|
|
157
|
+
display: 'flow-root',
|
|
160
158
|
width: '100%'
|
|
161
159
|
}, "&.".concat(resizerExtendedZone), {
|
|
162
160
|
padding: "0 ".concat("var(--ds-space-150, 12px)"),
|
|
@@ -15,7 +15,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
|
|
|
15
15
|
import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
16
16
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
17
17
|
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
|
|
18
|
-
import {
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
19
|
import EditorActions from '../actions';
|
|
20
20
|
import { useEditorContext } from '../ui/EditorContext';
|
|
21
21
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
@@ -92,7 +92,7 @@ function Editor(passedProps) {
|
|
|
92
92
|
onSaveFromProps(view);
|
|
93
93
|
}
|
|
94
94
|
}, [onSaveFromProps]);
|
|
95
|
-
const isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width', ...(
|
|
95
|
+
const isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width', ...(editorExperiment('platform_synced_block', true) ? ['max'] : [])].includes(props.appearance));
|
|
96
96
|
return jsx(Fragment, null, isFullPageAppearance ? jsx(EditorINPMetrics, null) : null, jsx(EditorInternal, {
|
|
97
97
|
props: props,
|
|
98
98
|
handleAnalyticsEvent: handleAnalyticsEvent,
|
|
@@ -225,7 +225,7 @@ export default function createUniversalPresetInternal({
|
|
|
225
225
|
}], Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
|
|
226
226
|
menuDisabled: statusMenuDisabled,
|
|
227
227
|
allowZeroWidthSpaceAfter: true
|
|
228
|
-
}], Boolean(props.allowStatus)).maybeAdd([syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) &&
|
|
228
|
+
}], Boolean(props.allowStatus)).maybeAdd([syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) && editorExperiment('platform_synced_block', true)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
|
|
229
229
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
230
230
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
231
231
|
}]).add([insertBlockPlugin, {
|
|
@@ -14,7 +14,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
15
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
16
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
|
-
import {
|
|
17
|
+
import { expValNoExposure } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
18
18
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
19
19
|
import { getBaseFontSize } from '../../composable-editor/utils/getBaseFontSize';
|
|
20
20
|
import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
|
|
@@ -136,13 +136,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
136
136
|
'--ak-editor--large-gutter-padding': `${akEditorGutterPaddingDynamic()}px`
|
|
137
137
|
};
|
|
138
138
|
const browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
|
|
139
|
-
const allClassNames = [className];
|
|
140
|
-
if (expVal('platform_editor_resizer_cls_fix', 'isEnabled', false)) {
|
|
141
|
-
allClassNames.push('resizer-hover-zone-cls-fix');
|
|
142
|
-
}
|
|
143
139
|
return jsx("div", {
|
|
144
140
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
145
|
-
className:
|
|
141
|
+
className: className,
|
|
146
142
|
ref: ref,
|
|
147
143
|
css: [
|
|
148
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -330,7 +326,7 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
330
326
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
331
327
|
layoutBaseStyles,
|
|
332
328
|
// merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
|
|
333
|
-
fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles,
|
|
329
|
+
fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, editorExperiment('platform_synced_block', true) &&
|
|
334
330
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
335
331
|
syncBlockStyles,
|
|
336
332
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -461,9 +457,8 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
461
457
|
fg('confluence_floating_toolbar_animation') && selectionToolbarAnimationStyles,
|
|
462
458
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
463
459
|
fg('platform_editor_vanilla_codebidi_warning') && codeBidiWarningStyles,
|
|
464
|
-
// @ts-expect-error - true is not allowed as a default value
|
|
465
460
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
466
|
-
expValNoExposure('platform_editor_block_menu', 'isEnabled',
|
|
461
|
+
expValNoExposure('platform_editor_block_menu', 'isEnabled', false) && [
|
|
467
462
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
468
463
|
dangerDateStyles,
|
|
469
464
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -191,13 +191,9 @@ export const resizerStyles = css({
|
|
|
191
191
|
background: "var(--ds-border, #0B120E24)"
|
|
192
192
|
},
|
|
193
193
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
194
|
-
[`&.resizer-hover-zone-cls-fix .${resizerHoverZoneClassName}`]: {
|
|
195
|
-
display: 'flow-root'
|
|
196
|
-
},
|
|
197
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
198
194
|
[`.${resizerHoverZoneClassName}`]: {
|
|
199
195
|
position: 'relative',
|
|
200
|
-
display: '
|
|
196
|
+
display: 'flow-root',
|
|
201
197
|
width: '100%',
|
|
202
198
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
203
199
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.
|
|
2
|
+
export const version = "215.15.1";
|
|
@@ -19,7 +19,7 @@ import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents'
|
|
|
19
19
|
import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
20
20
|
import { startMeasure, stopMeasure } from '@atlaskit/editor-common/performance-measures';
|
|
21
21
|
import { getAnalyticsAppearance } from '@atlaskit/editor-common/utils/analytics';
|
|
22
|
-
import {
|
|
22
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
23
23
|
import EditorActions from '../actions';
|
|
24
24
|
import { useEditorContext } from '../ui/EditorContext';
|
|
25
25
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
@@ -91,7 +91,7 @@ function Editor(passedProps) {
|
|
|
91
91
|
onSaveFromProps(view);
|
|
92
92
|
}
|
|
93
93
|
}, [onSaveFromProps]);
|
|
94
|
-
var isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width'].concat(_toConsumableArray(
|
|
94
|
+
var isFullPageAppearance = Boolean(props.appearance && ['full-page', 'full-width'].concat(_toConsumableArray(editorExperiment('platform_synced_block', true) ? ['max'] : [])).includes(props.appearance));
|
|
95
95
|
return jsx(Fragment, null, isFullPageAppearance ? jsx(EditorINPMetrics, null) : null, jsx(EditorInternal, {
|
|
96
96
|
props: props,
|
|
97
97
|
handleAnalyticsEvent: handleAnalyticsEvent,
|
|
@@ -217,7 +217,7 @@ export default function createUniversalPresetInternal(_ref) {
|
|
|
217
217
|
}], Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
|
|
218
218
|
menuDisabled: statusMenuDisabled,
|
|
219
219
|
allowZeroWidthSpaceAfter: true
|
|
220
|
-
}], Boolean(props.allowStatus)).maybeAdd([syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) &&
|
|
220
|
+
}], Boolean(props.allowStatus)).maybeAdd([syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) && editorExperiment('platform_synced_block', true)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
|
|
221
221
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
222
222
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
223
223
|
}]).add([insertBlockPlugin, _objectSpread({
|
|
@@ -15,7 +15,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
16
16
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
17
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
|
-
import {
|
|
18
|
+
import { expValNoExposure } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
19
19
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
20
20
|
import { getBaseFontSize } from '../../composable-editor/utils/getBaseFontSize';
|
|
21
21
|
import { aiPanelBaseFirefoxStyles, aiPanelBaseStyles, aiPanelDarkFirefoxStyles, aiPanelDarkStyles } from './styles/aiPanel';
|
|
@@ -132,13 +132,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
132
132
|
'--ak-editor--large-gutter-padding': "".concat(akEditorGutterPaddingDynamic(), "px")
|
|
133
133
|
};
|
|
134
134
|
var browser = expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) ? getBrowserInfo() : browserLegacy;
|
|
135
|
-
var allClassNames = [className];
|
|
136
|
-
if (expVal('platform_editor_resizer_cls_fix', 'isEnabled', false)) {
|
|
137
|
-
allClassNames.push('resizer-hover-zone-cls-fix');
|
|
138
|
-
}
|
|
139
135
|
return jsx("div", {
|
|
140
136
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
141
|
-
className:
|
|
137
|
+
className: className,
|
|
142
138
|
ref: ref,
|
|
143
139
|
css: [
|
|
144
140
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -326,7 +322,7 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
326
322
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
327
323
|
layoutBaseStyles,
|
|
328
324
|
// merge alignMultipleWrappedImageInLayoutStyles with layoutBaseStyles when clean up platform_editor_fix_media_in_renderer
|
|
329
|
-
fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles,
|
|
325
|
+
fg('platform_editor_fix_media_in_renderer') && alignMultipleWrappedImageInLayoutStyles, editorExperiment('platform_synced_block', true) &&
|
|
330
326
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
331
327
|
syncBlockStyles,
|
|
332
328
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -457,9 +453,8 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
457
453
|
fg('confluence_floating_toolbar_animation') && selectionToolbarAnimationStyles,
|
|
458
454
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
459
455
|
fg('platform_editor_vanilla_codebidi_warning') && codeBidiWarningStyles,
|
|
460
|
-
// @ts-expect-error - true is not allowed as a default value
|
|
461
456
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
462
|
-
expValNoExposure('platform_editor_block_menu', 'isEnabled',
|
|
457
|
+
expValNoExposure('platform_editor_block_menu', 'isEnabled', false) && [
|
|
463
458
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
464
459
|
dangerDateStyles,
|
|
465
460
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -13,7 +13,7 @@ export var resizerHandleThumbWidth = 3;
|
|
|
13
13
|
export var handleWrapperClass = 'resizer-handle-wrapper';
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
|
|
16
|
-
export var resizerStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
16
|
+
export var resizerStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(resizerItemClassName), _defineProperty({
|
|
17
17
|
willChange: 'width',
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
19
19
|
'&:hover, &.display-handle': _defineProperty({}, "& > .".concat(handleWrapperClass, " > .").concat(resizerHandleClassName), {
|
|
@@ -144,11 +144,9 @@ export var resizerStyles = css(_defineProperty(_defineProperty(_defineProperty(_
|
|
|
144
144
|
background: "var(--ds-border-focused, #4688EC)"
|
|
145
145
|
})), ".ak-editor-no-interaction .ak-editor-selected-node .".concat(resizerHandleClassName, ":not(:hover) .").concat(resizerHandleThumbClassName), {
|
|
146
146
|
background: "var(--ds-border, #0B120E24)"
|
|
147
|
-
}), "&.resizer-hover-zone-cls-fix .".concat(resizerHoverZoneClassName), {
|
|
148
|
-
display: 'flow-root'
|
|
149
147
|
}), ".".concat(resizerHoverZoneClassName), _defineProperty({
|
|
150
148
|
position: 'relative',
|
|
151
|
-
display: '
|
|
149
|
+
display: 'flow-root',
|
|
152
150
|
width: '100%'
|
|
153
151
|
}, "&.".concat(resizerExtendedZone), {
|
|
154
152
|
padding: "0 ".concat("var(--ds-space-150, 12px)"),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.
|
|
2
|
+
export var version = "215.15.1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.15.
|
|
3
|
+
"version": "215.15.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
65
65
|
"@atlaskit/react-ufo": "^4.15.0",
|
|
66
66
|
"@atlaskit/task-decision": "^19.2.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^14.
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^14.1.0",
|
|
68
68
|
"@atlaskit/tokens": "^8.4.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.10.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|