@atlaskit/editor-core 215.20.1 → 215.20.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 +11 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +3 -1
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +33 -1
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +16 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +4 -2
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +32 -0
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +20 -10
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +4 -2
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +32 -0
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +16 -10
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.20.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`dcc6a3e73f414`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dcc6a3e73f414) -
|
|
8
|
+
[ux] EDITOR-3304 add offline error state for sync blocks and update other error UI to match new
|
|
9
|
+
designs
|
|
10
|
+
- [`0c0f8207e7294`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c0f8207e7294) -
|
|
11
|
+
Added sync block resizing
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 215.20.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -388,7 +388,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
388
388
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
389
389
|
_resizerStyles.pragmaticResizerStylesNew :
|
|
390
390
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
391
|
-
_resizerStyles.pragmaticResizerStyles : undefined, (0, _experiments.editorExperiment)('
|
|
391
|
+
_resizerStyles.pragmaticResizerStyles : undefined, (0, _experiments.editorExperiment)('platform_synced_block', true) &&
|
|
392
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
393
|
+
_resizerStyles.pragmaticResizerStylesSyncedBlock, (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) &&
|
|
392
394
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
393
395
|
_resizerStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true) &&
|
|
394
396
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -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.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticStylesLayoutFirstNodeResizeHandleFix = exports.pragmaticResizerStylesWithReducedEditorGutter = exports.pragmaticResizerStylesNew = exports.pragmaticResizerStylesForTooltip = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
|
|
7
|
+
exports.resizerStyles = exports.resizerItemClassName = exports.resizerHoverZoneClassName = exports.resizerHandleTrackClassName = exports.resizerHandleThumbWidth = exports.resizerHandleThumbClassName = exports.resizerHandleClassName = exports.resizerExtendedZone = exports.resizerDangerClassName = exports.pragmaticStylesLayoutFirstNodeResizeHandleFix = exports.pragmaticResizerStylesWithReducedEditorGutter = exports.pragmaticResizerStylesSyncedBlock = exports.pragmaticResizerStylesNew = exports.pragmaticResizerStylesForTooltip = exports.pragmaticResizerStyles = exports.handleWrapperClass = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
@@ -446,6 +446,38 @@ var pragmaticResizerStylesNew = exports.pragmaticResizerStylesNew = (0, _react.c
|
|
|
446
446
|
}
|
|
447
447
|
});
|
|
448
448
|
|
|
449
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
450
|
+
var pragmaticResizerStylesSyncedBlock = exports.pragmaticResizerStylesSyncedBlock = (0, _react.css)({
|
|
451
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
452
|
+
'.fabric-editor-breakout-mark': {
|
|
453
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
454
|
+
'&:has([data-prosemirror-node-name="syncBlock"]), &:has([data-prosemirror-node-name="bodiedSyncBlock"])': {
|
|
455
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
456
|
+
'> .pm-breakout-resize-handle-container--left': {
|
|
457
|
+
left: '-20px'
|
|
458
|
+
},
|
|
459
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
460
|
+
'> .pm-breakout-resize-handle-container--right': {
|
|
461
|
+
right: '-20px'
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
465
|
+
'&:has([data-prosemirror-node-name="syncBlock"])': {
|
|
466
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
467
|
+
'> .pm-breakout-resize-handle-container': {
|
|
468
|
+
height: 'calc(100% - 12px)'
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
472
|
+
'&:has([data-prosemirror-node-name="bodiedSyncBlock"])': {
|
|
473
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
474
|
+
'> .pm-breakout-resize-handle-container': {
|
|
475
|
+
height: 'calc(100% - 2px)'
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
|
|
449
481
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
450
482
|
var pragmaticResizerStylesWithReducedEditorGutter = exports.pragmaticResizerStylesWithReducedEditorGutter = (0, _react.css)((0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), {
|
|
451
483
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -8,21 +8,20 @@ exports.syncBlockStyles = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _syncBlock = require("@atlaskit/editor-common/sync-block");
|
|
11
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
13
12
|
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
15
14
|
var syncBlockStyles = exports.syncBlockStyles = (0, _react.css)((0, _defineProperty2.default)({
|
|
16
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
17
|
-
'.ProseMirror': (0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.prefix, ", .").concat(_syncBlock.BodiedSyncBlockSharedCssClassName.prefix), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
16
|
+
'.ProseMirror': (0, _defineProperty2.default)({}, ".".concat(_syncBlock.SyncBlockSharedCssClassName.prefix, ", .").concat(_syncBlock.BodiedSyncBlockSharedCssClassName.prefix), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
18
17
|
position: 'relative',
|
|
19
18
|
cursor: 'pointer',
|
|
20
19
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
21
20
|
marginTop: "var(--ds-space-150, 12px)",
|
|
22
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
23
|
-
marginRight: "-"
|
|
22
|
+
marginRight: "-18px",
|
|
24
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
25
|
-
marginLeft: "-"
|
|
24
|
+
marginLeft: "-18px",
|
|
26
25
|
marginBottom: 0,
|
|
27
26
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
28
27
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
@@ -95,11 +94,18 @@ var syncBlockStyles = exports.syncBlockStyles = (0, _react.css)((0, _definePrope
|
|
|
95
94
|
'&::before': {
|
|
96
95
|
border: 'none'
|
|
97
96
|
}
|
|
98
|
-
})), "
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
})), ":has(.".concat(_syncBlock.SyncBlockSharedCssClassName.error, ")"), (0, _defineProperty2.default)({
|
|
98
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)",
|
|
99
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
100
|
+
}, ".".concat(_syncBlock.SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
101
|
+
opacity: 1,
|
|
102
|
+
visibility: 'visible',
|
|
103
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
104
|
+
'&::before': {
|
|
105
|
+
border: 'none'
|
|
102
106
|
}
|
|
107
|
+
})), ":has(.".concat(_syncBlock.SyncBlockSharedCssClassName.loading, ")"), (0, _defineProperty2.default)({
|
|
108
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
103
109
|
}, ".".concat(_syncBlock.SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
104
110
|
opacity: 0,
|
|
105
111
|
visibility: 'hidden'
|
|
@@ -110,10 +116,10 @@ var syncBlockStyles = exports.syncBlockStyles = (0, _react.css)((0, _definePrope
|
|
|
110
116
|
opacity: 0,
|
|
111
117
|
visibility: 'hidden'
|
|
112
118
|
})), ".".concat(_syncBlock.BodiedSyncBlockSharedCssClassName.content), {
|
|
113
|
-
padding: '0
|
|
119
|
+
padding: '0 18px',
|
|
114
120
|
cursor: 'text'
|
|
115
121
|
}), ".".concat(_syncBlock.SyncBlockSharedCssClassName.renderer), {
|
|
116
|
-
padding: '0
|
|
122
|
+
padding: '0 18px'
|
|
117
123
|
}))
|
|
118
124
|
}, ".".concat(_syncBlock.SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
119
125
|
color: "var(--ds-text-subtle, #505258)",
|
|
@@ -50,7 +50,7 @@ import { mentionsStyles, mentionsSelectionStyles, mentionNodeStyles, mentionsSel
|
|
|
50
50
|
import { panelStyles, panelStylesMixin, nestedPanelBorderStylesMixin, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelViewStyles, nestedPanelDangerStyles } from './styles/panelStyles';
|
|
51
51
|
import { paragraphStylesOld, paragraphStylesOldWithScaledMargin, paragraphStylesUGCRefreshed, paragraphStylesWithScaledMargin } from './styles/paragraphStyles';
|
|
52
52
|
import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderWrapStyles } from './styles/placeholderStyles';
|
|
53
|
-
import { pragmaticResizerStyles, pragmaticResizerStylesNew, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, resizerStyles } from './styles/resizerStyles';
|
|
53
|
+
import { pragmaticResizerStyles, pragmaticResizerStylesNew, pragmaticResizerStylesSyncedBlock, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, resizerStyles } from './styles/resizerStyles';
|
|
54
54
|
import { dangerRuleStyles, ruleStyles } from './styles/rule';
|
|
55
55
|
import { scrollbarStyles } from './styles/scrollbarStyles';
|
|
56
56
|
import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
|
|
@@ -384,7 +384,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
384
384
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
385
385
|
pragmaticResizerStylesNew :
|
|
386
386
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
387
|
-
pragmaticResizerStyles : undefined, editorExperiment('
|
|
387
|
+
pragmaticResizerStyles : undefined, editorExperiment('platform_synced_block', true) &&
|
|
388
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
389
|
+
pragmaticResizerStylesSyncedBlock, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) &&
|
|
388
390
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
389
391
|
pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) &&
|
|
390
392
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -493,6 +493,38 @@ export const pragmaticResizerStylesNew = css({
|
|
|
493
493
|
}
|
|
494
494
|
});
|
|
495
495
|
|
|
496
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
497
|
+
export const pragmaticResizerStylesSyncedBlock = css({
|
|
498
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
499
|
+
'.fabric-editor-breakout-mark': {
|
|
500
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
501
|
+
'&:has([data-prosemirror-node-name="syncBlock"]), &:has([data-prosemirror-node-name="bodiedSyncBlock"])': {
|
|
502
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
503
|
+
'> .pm-breakout-resize-handle-container--left': {
|
|
504
|
+
left: '-20px'
|
|
505
|
+
},
|
|
506
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
507
|
+
'> .pm-breakout-resize-handle-container--right': {
|
|
508
|
+
right: '-20px'
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
512
|
+
'&:has([data-prosemirror-node-name="syncBlock"])': {
|
|
513
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
514
|
+
'> .pm-breakout-resize-handle-container': {
|
|
515
|
+
height: 'calc(100% - 12px)'
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
519
|
+
'&:has([data-prosemirror-node-name="bodiedSyncBlock"])': {
|
|
520
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
521
|
+
'> .pm-breakout-resize-handle-container': {
|
|
522
|
+
height: 'calc(100% - 2px)'
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
|
|
496
528
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
497
529
|
export const pragmaticResizerStylesWithReducedEditorGutter = css({
|
|
498
530
|
/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName, SyncBlockLabelSharedCssClassName, SyncBlockStateCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
4
|
-
import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
|
|
5
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
6
5
|
export const syncBlockStyles = css({
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -13,9 +12,9 @@ export const syncBlockStyles = css({
|
|
|
13
12
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
14
13
|
marginTop: "var(--ds-space-150, 12px)",
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
16
|
-
marginRight:
|
|
15
|
+
marginRight: `-18px`,
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
18
|
-
marginLeft:
|
|
17
|
+
marginLeft: `-18px`,
|
|
19
18
|
marginBottom: 0,
|
|
20
19
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
21
20
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
@@ -113,11 +112,22 @@ export const syncBlockStyles = css({
|
|
|
113
112
|
/* Error state */
|
|
114
113
|
/* In error state sync block should not have hover styles or show the label */
|
|
115
114
|
// 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
|
|
116
|
-
[
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
115
|
+
[`:has(.${SyncBlockSharedCssClassName.error})`]: {
|
|
116
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)",
|
|
117
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border, #0B120E24)"}`,
|
|
118
|
+
// 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
|
|
119
|
+
[`.${SyncBlockLabelSharedCssClassName.labelClassName}`]: {
|
|
120
|
+
opacity: 1,
|
|
121
|
+
visibility: 'visible',
|
|
122
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
123
|
+
'&::before': {
|
|
124
|
+
border: 'none'
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
129
|
+
[`:has(.${SyncBlockSharedCssClassName.loading})`]: {
|
|
130
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border, #0B120E24)"}`,
|
|
121
131
|
// 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
|
|
122
132
|
[`.${SyncBlockLabelSharedCssClassName.labelClassName}`]: {
|
|
123
133
|
opacity: 0,
|
|
@@ -137,12 +147,12 @@ export const syncBlockStyles = css({
|
|
|
137
147
|
},
|
|
138
148
|
// 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
|
|
139
149
|
[`.${BodiedSyncBlockSharedCssClassName.content}`]: {
|
|
140
|
-
padding: '0
|
|
150
|
+
padding: '0 18px',
|
|
141
151
|
cursor: 'text'
|
|
142
152
|
},
|
|
143
153
|
// 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
|
|
144
154
|
[`.${SyncBlockSharedCssClassName.renderer}`]: {
|
|
145
|
-
padding: '0
|
|
155
|
+
padding: '0 18px'
|
|
146
156
|
}
|
|
147
157
|
}
|
|
148
158
|
},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.20.
|
|
2
|
+
export const version = "215.20.1";
|
|
@@ -51,7 +51,7 @@ import { mentionsStyles, mentionsSelectionStyles, mentionNodeStyles, mentionsSel
|
|
|
51
51
|
import { panelStyles, panelStylesMixin, nestedPanelBorderStylesMixin, panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, panelViewStyles, nestedPanelDangerStyles } from './styles/panelStyles';
|
|
52
52
|
import { paragraphStylesOld, paragraphStylesOldWithScaledMargin, paragraphStylesUGCRefreshed, paragraphStylesWithScaledMargin } from './styles/paragraphStyles';
|
|
53
53
|
import { placeholderOverflowStyles, placeholderStyles, placeholderTextStyles, placeholderWrapStyles } from './styles/placeholderStyles';
|
|
54
|
-
import { pragmaticResizerStyles, pragmaticResizerStylesNew, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, resizerStyles } from './styles/resizerStyles';
|
|
54
|
+
import { pragmaticResizerStyles, pragmaticResizerStylesNew, pragmaticResizerStylesSyncedBlock, pragmaticStylesLayoutFirstNodeResizeHandleFix, pragmaticResizerStylesForTooltip, pragmaticResizerStylesWithReducedEditorGutter, resizerStyles } from './styles/resizerStyles';
|
|
55
55
|
import { dangerRuleStyles, ruleStyles } from './styles/rule';
|
|
56
56
|
import { scrollbarStyles } from './styles/scrollbarStyles';
|
|
57
57
|
import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
|
|
@@ -380,7 +380,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
380
380
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
381
381
|
pragmaticResizerStylesNew :
|
|
382
382
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
383
|
-
pragmaticResizerStyles : undefined, editorExperiment('
|
|
383
|
+
pragmaticResizerStyles : undefined, editorExperiment('platform_synced_block', true) &&
|
|
384
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
385
|
+
pragmaticResizerStylesSyncedBlock, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) &&
|
|
384
386
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
385
387
|
pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) &&
|
|
386
388
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -438,6 +438,38 @@ export var pragmaticResizerStylesNew = css({
|
|
|
438
438
|
}
|
|
439
439
|
});
|
|
440
440
|
|
|
441
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
442
|
+
export var pragmaticResizerStylesSyncedBlock = css({
|
|
443
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
444
|
+
'.fabric-editor-breakout-mark': {
|
|
445
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
446
|
+
'&:has([data-prosemirror-node-name="syncBlock"]), &:has([data-prosemirror-node-name="bodiedSyncBlock"])': {
|
|
447
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
448
|
+
'> .pm-breakout-resize-handle-container--left': {
|
|
449
|
+
left: '-20px'
|
|
450
|
+
},
|
|
451
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
452
|
+
'> .pm-breakout-resize-handle-container--right': {
|
|
453
|
+
right: '-20px'
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
457
|
+
'&:has([data-prosemirror-node-name="syncBlock"])': {
|
|
458
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
459
|
+
'> .pm-breakout-resize-handle-container': {
|
|
460
|
+
height: 'calc(100% - 12px)'
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
464
|
+
'&:has([data-prosemirror-node-name="bodiedSyncBlock"])': {
|
|
465
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
466
|
+
'> .pm-breakout-resize-handle-container': {
|
|
467
|
+
height: 'calc(100% - 2px)'
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
|
|
441
473
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
442
474
|
export var pragmaticResizerStylesWithReducedEditorGutter = css(_defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), {
|
|
443
475
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -2,19 +2,18 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { BodiedSyncBlockSharedCssClassName, SyncBlockSharedCssClassName, SyncBlockLabelSharedCssClassName, SyncBlockStateCssClassName } from '@atlaskit/editor-common/sync-block';
|
|
5
|
-
import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
7
6
|
export var syncBlockStyles = css(_defineProperty({
|
|
8
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
9
|
-
'.ProseMirror': _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
8
|
+
'.ProseMirror': _defineProperty({}, ".".concat(SyncBlockSharedCssClassName.prefix, ", .").concat(BodiedSyncBlockSharedCssClassName.prefix), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
10
9
|
position: 'relative',
|
|
11
10
|
cursor: 'pointer',
|
|
12
11
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
13
12
|
marginTop: "var(--ds-space-150, 12px)",
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
15
|
-
marginRight: "-"
|
|
14
|
+
marginRight: "-18px",
|
|
16
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
17
|
-
marginLeft: "-"
|
|
16
|
+
marginLeft: "-18px",
|
|
18
17
|
marginBottom: 0,
|
|
19
18
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
20
19
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
@@ -87,11 +86,18 @@ export var syncBlockStyles = css(_defineProperty({
|
|
|
87
86
|
'&::before': {
|
|
88
87
|
border: 'none'
|
|
89
88
|
}
|
|
90
|
-
})), "
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
89
|
+
})), ":has(.".concat(SyncBlockSharedCssClassName.error, ")"), _defineProperty({
|
|
90
|
+
backgroundColor: "var(--ds-background-disabled, #17171708)",
|
|
91
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
92
|
+
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
93
|
+
opacity: 1,
|
|
94
|
+
visibility: 'visible',
|
|
95
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
96
|
+
'&::before': {
|
|
97
|
+
border: 'none'
|
|
94
98
|
}
|
|
99
|
+
})), ":has(.".concat(SyncBlockSharedCssClassName.loading, ")"), _defineProperty({
|
|
100
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #0B120E24)")
|
|
95
101
|
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
96
102
|
opacity: 0,
|
|
97
103
|
visibility: 'hidden'
|
|
@@ -102,10 +108,10 @@ export var syncBlockStyles = css(_defineProperty({
|
|
|
102
108
|
opacity: 0,
|
|
103
109
|
visibility: 'hidden'
|
|
104
110
|
})), ".".concat(BodiedSyncBlockSharedCssClassName.content), {
|
|
105
|
-
padding: '0
|
|
111
|
+
padding: '0 18px',
|
|
106
112
|
cursor: 'text'
|
|
107
113
|
}), ".".concat(SyncBlockSharedCssClassName.renderer), {
|
|
108
|
-
padding: '0
|
|
114
|
+
padding: '0 18px'
|
|
109
115
|
}))
|
|
110
116
|
}, ".".concat(SyncBlockLabelSharedCssClassName.labelClassName), {
|
|
111
117
|
color: "var(--ds-text-subtle, #505258)",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.20.
|
|
2
|
+
export var version = "215.20.1";
|
|
@@ -13,4 +13,5 @@ export declare const pragmaticResizerStylesForTooltip: SerializedStyles;
|
|
|
13
13
|
export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: SerializedStyles;
|
|
14
14
|
export declare const pragmaticResizerStyles: SerializedStyles;
|
|
15
15
|
export declare const pragmaticResizerStylesNew: SerializedStyles;
|
|
16
|
+
export declare const pragmaticResizerStylesSyncedBlock: SerializedStyles;
|
|
16
17
|
export declare const pragmaticResizerStylesWithReducedEditorGutter: SerializedStyles;
|
|
@@ -13,4 +13,5 @@ export declare const pragmaticResizerStylesForTooltip: SerializedStyles;
|
|
|
13
13
|
export declare const pragmaticStylesLayoutFirstNodeResizeHandleFix: SerializedStyles;
|
|
14
14
|
export declare const pragmaticResizerStyles: SerializedStyles;
|
|
15
15
|
export declare const pragmaticResizerStylesNew: SerializedStyles;
|
|
16
|
+
export declare const pragmaticResizerStylesSyncedBlock: SerializedStyles;
|
|
16
17
|
export declare const pragmaticResizerStylesWithReducedEditorGutter: SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.20.
|
|
3
|
+
"version": "215.20.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
|
-
"@atlaskit/button": "^23.
|
|
47
|
+
"@atlaskit/button": "^23.7.0",
|
|
48
48
|
"@atlaskit/css": "^0.17.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.31.0",
|
|
50
50
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
66
66
|
"@atlaskit/react-ufo": "^4.15.0",
|
|
67
67
|
"@atlaskit/task-decision": "^19.2.0",
|
|
68
|
-
"@atlaskit/tmp-editor-statsig": "^15.
|
|
68
|
+
"@atlaskit/tmp-editor-statsig": "^15.7.0",
|
|
69
69
|
"@atlaskit/tokens": "^8.4.0",
|
|
70
70
|
"@atlaskit/tooltip": "^20.11.0",
|
|
71
71
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -104,19 +104,18 @@
|
|
|
104
104
|
"@atlaskit/media-core": "^37.0.0",
|
|
105
105
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
106
106
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
107
|
-
"@atlaskit/modal-dialog": "^14.
|
|
107
|
+
"@atlaskit/modal-dialog": "^14.8.0",
|
|
108
108
|
"@atlaskit/renderer": "^124.17.0",
|
|
109
|
-
"@atlaskit/section-message": "^8.
|
|
109
|
+
"@atlaskit/section-message": "^8.10.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
111
|
-
"@atlaskit/toggle": "^15.
|
|
111
|
+
"@atlaskit/toggle": "^15.2.0",
|
|
112
112
|
"@atlaskit/util-data-test": "^18.3.0",
|
|
113
113
|
"@atlassian/adf-schema-json": "^1.31.0",
|
|
114
114
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
115
115
|
"@atlassian/search-provider": "^7.0.0",
|
|
116
116
|
"@emotion/jest": "^11.8.0",
|
|
117
117
|
"@storybook/addon-knobs": "^6.4.0",
|
|
118
|
-
"@testing-library/react": "^
|
|
119
|
-
"@testing-library/react-hooks": "^8.0.1",
|
|
118
|
+
"@testing-library/react": "^16.3.0",
|
|
120
119
|
"@types/diff": "^5.0.2",
|
|
121
120
|
"@types/is-number": "^7.0.0",
|
|
122
121
|
"@types/react-transition-group": "^2.0.6",
|