@atlaskit/editor-core 215.14.6 → 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 +23 -2
- package/dist/cjs/create-editor/create-editor.js +1 -1
- 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/create-editor/create-editor.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/create-editor/create-editor.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 +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
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
|
+
|
|
13
|
+
## 215.15.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`d84e4018e7a77`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d84e4018e7a77) -
|
|
18
|
+
ED-29689 create new exp
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 215.14.6
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -455,7 +476,7 @@
|
|
|
455
476
|
|
|
456
477
|
- [`5a56aa8073a44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a56aa8073a44) -
|
|
457
478
|
[ux] ED-29340 fix block controls for layouts with platform_editor_breakout_resizing on and
|
|
458
|
-
|
|
479
|
+
platform_editor_native_anchor_with_dnd on
|
|
459
480
|
- Updated dependencies
|
|
460
481
|
|
|
461
482
|
## 215.6.1
|
|
@@ -549,7 +570,7 @@
|
|
|
549
570
|
- [`0b0ef25b2f529`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0b0ef25b2f529) -
|
|
550
571
|
Cleanup various feature gates and align them to aifc_create_enabled
|
|
551
572
|
- [`3feef799ad0a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3feef799ad0a5) -
|
|
552
|
-
[ED-29333] Fix 2 issues when
|
|
573
|
+
[ED-29333] Fix 2 issues when platform_editor_native_anchor_with_dnd is enabled
|
|
553
574
|
1. Drag handle is rendered for media node
|
|
554
575
|
2. When advanced_layouts experiment is off, quick insert button is rendered based on child node
|
|
555
576
|
inside layout column (as opposed to layout section node )
|
|
@@ -116,7 +116,7 @@ function createPMPlugins(config) {
|
|
|
116
116
|
}).filter(function (plugin) {
|
|
117
117
|
return typeof plugin !== 'undefined';
|
|
118
118
|
});
|
|
119
|
-
if ((0, _expValEquals.expValEquals)('
|
|
119
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
120
120
|
pmPlugins.push((0, _editorNativeAnchorSupportPlugin.createEditorNativeAnchorSupportPlugin)(config.schema));
|
|
121
121
|
}
|
|
122
122
|
if (config.onEditorStateUpdated !== undefined) {
|
|
@@ -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)"),
|
|
@@ -96,7 +96,7 @@ export function createPMPlugins(config) {
|
|
|
96
96
|
featureFlags: config.featureFlags || {},
|
|
97
97
|
getIntl: config.getIntl
|
|
98
98
|
})).filter(plugin => typeof plugin !== 'undefined');
|
|
99
|
-
if (expValEquals('
|
|
99
|
+
if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
100
100
|
pmPlugins.push(createEditorNativeAnchorSupportPlugin(config.schema));
|
|
101
101
|
}
|
|
102
102
|
if (config.onEditorStateUpdated !== undefined) {
|
|
@@ -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";
|
|
@@ -105,7 +105,7 @@ export function createPMPlugins(config) {
|
|
|
105
105
|
}).filter(function (plugin) {
|
|
106
106
|
return typeof plugin !== 'undefined';
|
|
107
107
|
});
|
|
108
|
-
if (expValEquals('
|
|
108
|
+
if (expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true)) {
|
|
109
109
|
pmPlugins.push(createEditorNativeAnchorSupportPlugin(config.schema));
|
|
110
110
|
}
|
|
111
111
|
if (config.onEditorStateUpdated !== undefined) {
|
|
@@ -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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.15.1",
|
|
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": "^
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^14.0.0",
|
|
68
68
|
"@atlaskit/tokens": "^8.4.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.10.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"uuid": "^3.1.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@atlaskit/editor-common": "^110.
|
|
84
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
85
85
|
"@atlaskit/link-provider": "^4.0.0",
|
|
86
86
|
"@atlaskit/media-core": "^37.0.0",
|
|
87
87
|
"react": "^18.2.0",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@af/visual-regression": "workspace:^",
|
|
94
94
|
"@atlaskit/adf-utils": "^19.26.0",
|
|
95
95
|
"@atlaskit/analytics-listeners": "^9.1.0",
|
|
96
|
-
"@atlaskit/collab-provider": "^14.
|
|
96
|
+
"@atlaskit/collab-provider": "^14.1.0",
|
|
97
97
|
"@atlaskit/editor-plugin-annotation": "^6.2.0",
|
|
98
98
|
"@atlaskit/editor-plugin-card": "^11.5.0",
|
|
99
99
|
"@atlaskit/editor-plugin-list": "^8.2.0",
|
|
@@ -107,7 +107,6 @@
|
|
|
107
107
|
"@atlaskit/primitives": "^16.4.0",
|
|
108
108
|
"@atlaskit/renderer": "^124.16.0",
|
|
109
109
|
"@atlaskit/section-message": "^8.9.0",
|
|
110
|
-
"@atlaskit/smart-card": "^43.11.0",
|
|
111
110
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
112
111
|
"@atlaskit/toggle": "^15.1.0",
|
|
113
112
|
"@atlaskit/util-data-test": "^18.3.0",
|