@atlaskit/editor-core 215.15.0 → 215.15.1
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 +10 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +1 -5
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +2 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +2 -6
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +1 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +2 -6
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +2 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.15.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9b498e7d943c0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b498e7d943c0) -
|
|
8
|
+
NOISSUE: hydration example quality of life improvements
|
|
9
|
+
- [`5e935a27d0d78`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e935a27d0d78) -
|
|
10
|
+
Cleanup platform_editor_resizer_cls_fix experiment
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 215.15.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -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
|
|
@@ -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)"),
|
|
@@ -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
|
|
@@ -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.0";
|
|
@@ -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
|
|
@@ -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.0";
|