@atlaskit/editor-core 207.4.0 → 207.6.0
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 +29 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
- package/dist/cjs/ui/ContentStyles/layout.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +7 -3
- package/dist/cjs/ui/EditorContentContainer/styles/codeMarkStyles.js +31 -0
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +211 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
- package/dist/es2019/ui/ContentStyles/layout.js +1 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +7 -5
- package/dist/es2019/ui/EditorContentContainer/styles/ai-panel.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +24 -0
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +7 -7
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +256 -0
- package/dist/es2019/ui/EditorContentContainer/styles/rule.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
- package/dist/esm/ui/ContentStyles/layout.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +8 -4
- package/dist/esm/ui/EditorContentContainer/styles/ai-panel.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +24 -0
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +7 -7
- package/dist/esm/ui/EditorContentContainer/styles/link.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +203 -0
- package/dist/esm/ui/EditorContentContainer/styles/rule.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +10 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/codeMarkStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +10 -0
- package/package.json +11 -7
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { css } from '@emotion/react'; // eslint-disable-line
|
|
3
|
+
|
|
4
|
+
export var resizerItemClassName = 'resizer-item';
|
|
5
|
+
export var resizerHoverZoneClassName = 'resizer-hover-zone';
|
|
6
|
+
export var resizerExtendedZone = 'resizer-is-extended';
|
|
7
|
+
export var resizerHandleClassName = 'resizer-handle';
|
|
8
|
+
export var resizerHandleTrackClassName = "".concat(resizerHandleClassName, "-track");
|
|
9
|
+
export var resizerHandleThumbClassName = "".concat(resizerHandleClassName, "-thumb");
|
|
10
|
+
export var resizerDangerClassName = "".concat(resizerHandleClassName, "-danger");
|
|
11
|
+
export var handleWrapperClass = 'resizer-handle-wrapper';
|
|
12
|
+
|
|
13
|
+
// 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…
|
|
14
|
+
export var resizerStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(resizerItemClassName), _defineProperty({
|
|
15
|
+
willChange: 'width',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
17
|
+
'&:hover, &.display-handle': _defineProperty({}, "& > .".concat(handleWrapperClass, " > .").concat(resizerHandleClassName), {
|
|
18
|
+
visibility: 'visible',
|
|
19
|
+
opacity: 1
|
|
20
|
+
}),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
22
|
+
'&.is-resizing': _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
23
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
24
|
+
})
|
|
25
|
+
}, "&.".concat(resizerDangerClassName), _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
26
|
+
transition: 'none',
|
|
27
|
+
background: "var(--ds-icon-danger, #C9372C)"
|
|
28
|
+
}))), ".".concat(resizerHandleClassName), {
|
|
29
|
+
display: 'flex',
|
|
30
|
+
visibility: 'hidden',
|
|
31
|
+
opacity: 0,
|
|
32
|
+
flexDirection: 'column',
|
|
33
|
+
justifyContent: 'center',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
width: 7,
|
|
36
|
+
transition: 'visibility 0.2s, opacity 0.2s',
|
|
37
|
+
// NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles
|
|
38
|
+
// into the tooltip
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
40
|
+
"& div[role='presentation']": {
|
|
41
|
+
width: '100%',
|
|
42
|
+
height: '100%',
|
|
43
|
+
display: 'flex',
|
|
44
|
+
flexDirection: 'column',
|
|
45
|
+
justifyContent: 'center',
|
|
46
|
+
alignItems: 'center',
|
|
47
|
+
marginTop: "var(--ds-space-negative-200, -16px)",
|
|
48
|
+
whiteSpace: 'normal'
|
|
49
|
+
},
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
51
|
+
'&.left': {
|
|
52
|
+
alignItems: 'flex-start'
|
|
53
|
+
},
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
55
|
+
'&.right': {
|
|
56
|
+
alignItems: 'flex-end'
|
|
57
|
+
},
|
|
58
|
+
// Handle Sizing
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
60
|
+
'&.small': _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
61
|
+
height: 43
|
|
62
|
+
}),
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
64
|
+
'&.medium': _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
65
|
+
height: 64
|
|
66
|
+
}),
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
+
'&.large': _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
69
|
+
height: 96
|
|
70
|
+
}),
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
+
'&.clamped': _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
73
|
+
height: 'clamp(43px, calc(100% - 32px), 96px)'
|
|
74
|
+
}),
|
|
75
|
+
// Handle Alignment
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
77
|
+
'&.sticky': _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
78
|
+
position: 'sticky',
|
|
79
|
+
top: "var(--ds-space-150, 12px)",
|
|
80
|
+
bottom: "var(--ds-space-150, 12px)"
|
|
81
|
+
}),
|
|
82
|
+
'&:hover': _defineProperty(_defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
83
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
84
|
+
}), "& .".concat(resizerHandleTrackClassName), {
|
|
85
|
+
visibility: 'visible',
|
|
86
|
+
opacity: 0.5
|
|
87
|
+
})
|
|
88
|
+
}), ".".concat(resizerHandleThumbClassName), {
|
|
89
|
+
content: "' '",
|
|
90
|
+
display: 'flex',
|
|
91
|
+
width: 3,
|
|
92
|
+
margin: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
93
|
+
height: 64,
|
|
94
|
+
transition: 'background-color 0.2s',
|
|
95
|
+
borderRadius: 6,
|
|
96
|
+
border: 0,
|
|
97
|
+
padding: 0,
|
|
98
|
+
zIndex: 2,
|
|
99
|
+
outline: 'none',
|
|
100
|
+
minHeight: 24,
|
|
101
|
+
background: "var(--ds-border, #091E4224)",
|
|
102
|
+
'&:hover': {
|
|
103
|
+
cursor: 'col-resize'
|
|
104
|
+
},
|
|
105
|
+
'&:focus': {
|
|
106
|
+
background: "var(--ds-border-selected, #0C66E4)",
|
|
107
|
+
'&::after': {
|
|
108
|
+
content: "''",
|
|
109
|
+
position: 'absolute',
|
|
110
|
+
top: "var(--ds-space-negative-050, -4px)",
|
|
111
|
+
right: "var(--ds-space-negative-050, -4px)",
|
|
112
|
+
bottom: "var(--ds-space-negative-050, -4px)",
|
|
113
|
+
left: "var(--ds-space-negative-050, -4px)",
|
|
114
|
+
border: "2px solid ".concat("var(--ds-border-focused, #388BFF)"),
|
|
115
|
+
borderRadius: 'inherit',
|
|
116
|
+
zIndex: -1
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}), ".".concat(resizerHandleTrackClassName), {
|
|
120
|
+
visibility: 'hidden',
|
|
121
|
+
position: 'absolute',
|
|
122
|
+
width: 7,
|
|
123
|
+
height: 'calc(100% - 40px)',
|
|
124
|
+
borderRadius: 4,
|
|
125
|
+
opacity: 0,
|
|
126
|
+
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
128
|
+
'&.none': {
|
|
129
|
+
background: 'none'
|
|
130
|
+
},
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
132
|
+
'&.shadow': {
|
|
133
|
+
background: "var(--ds-background-selected, #E9F2FF)"
|
|
134
|
+
},
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
136
|
+
'&.full-height': {
|
|
137
|
+
background: "var(--ds-background-selected, #E9F2FF)",
|
|
138
|
+
height: '100%',
|
|
139
|
+
minHeight: 36
|
|
140
|
+
}
|
|
141
|
+
}), '.ak-editor-selected-node', _defineProperty({}, "& .".concat(resizerHandleThumbClassName), {
|
|
142
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
143
|
+
})), ".ak-editor-no-interaction .ak-editor-selected-node .".concat(resizerHandleClassName, ":not(:hover) .").concat(resizerHandleThumbClassName), {
|
|
144
|
+
background: "var(--ds-border, #091E4224)"
|
|
145
|
+
}), ".".concat(resizerHoverZoneClassName), _defineProperty({
|
|
146
|
+
position: 'relative',
|
|
147
|
+
display: 'inline-block',
|
|
148
|
+
width: '100%'
|
|
149
|
+
}, "&.".concat(resizerExtendedZone), {
|
|
150
|
+
padding: "0 ".concat("var(--ds-space-150, 12px)"),
|
|
151
|
+
left: "var(--ds-space-negative-150, -12px)"
|
|
152
|
+
})), "table .".concat(resizerHoverZoneClassName, ", table .").concat(resizerHoverZoneClassName, ".").concat(resizerExtendedZone), {
|
|
153
|
+
padding: 'unset',
|
|
154
|
+
left: 'unset'
|
|
155
|
+
}));
|
|
156
|
+
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
158
|
+
export var pragmaticResizerStyles = css({
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
160
|
+
'.pm-breakout-resize-handle': {
|
|
161
|
+
position: 'relative',
|
|
162
|
+
display: 'flex',
|
|
163
|
+
alignItems: 'center',
|
|
164
|
+
justifyContent: 'center',
|
|
165
|
+
height: '100%',
|
|
166
|
+
width: 7,
|
|
167
|
+
alignSelf: 'center',
|
|
168
|
+
gridRow: 1,
|
|
169
|
+
gridColumn: 1,
|
|
170
|
+
cursor: 'col-resize',
|
|
171
|
+
borderRadius: 4,
|
|
172
|
+
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
173
|
+
'&:hover': {
|
|
174
|
+
background: "var(--ds-background-selected, #E9F2FF)",
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
176
|
+
'.pm-breakout-resize-handle-inner': {
|
|
177
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
182
|
+
'.pm-breakout-resize-handle-left': {
|
|
183
|
+
justifySelf: 'start',
|
|
184
|
+
left: -20
|
|
185
|
+
},
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
187
|
+
'.pm-breakout-resize-handle-right': {
|
|
188
|
+
justifySelf: 'end',
|
|
189
|
+
right: -20
|
|
190
|
+
},
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
192
|
+
'.pm-breakout-resize-handle-inner': {
|
|
193
|
+
minWidth: 3,
|
|
194
|
+
// copied from resizeStyles.clamped
|
|
195
|
+
height: 'clamp(27px, calc(100% - 32px), 96px)',
|
|
196
|
+
background: "var(--ds-border, #091E4224)",
|
|
197
|
+
borderRadius: 6,
|
|
198
|
+
// sticky styles
|
|
199
|
+
position: 'sticky',
|
|
200
|
+
top: "var(--ds-space-150, 12px)",
|
|
201
|
+
bottom: "var(--ds-space-150, 12px)"
|
|
202
|
+
}
|
|
203
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
3
|
-
import { css } from
|
|
4
|
-
import { akEditorSelectedNodeClassName } from
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
6
6
|
export var ruleStyles = css(_defineProperty({
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.
|
|
2
|
+
export var version = "207.6.0";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const codeMarkStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const resizerItemClassName = "resizer-item";
|
|
2
|
+
export declare const resizerHoverZoneClassName = "resizer-hover-zone";
|
|
3
|
+
export declare const resizerExtendedZone = "resizer-is-extended";
|
|
4
|
+
export declare const resizerHandleClassName = "resizer-handle";
|
|
5
|
+
export declare const resizerHandleTrackClassName = "resizer-handle-track";
|
|
6
|
+
export declare const resizerHandleThumbClassName = "resizer-handle-thumb";
|
|
7
|
+
export declare const resizerDangerClassName = "resizer-handle-danger";
|
|
8
|
+
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
9
|
+
export declare const resizerStyles: import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const codeMarkStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const resizerItemClassName = "resizer-item";
|
|
2
|
+
export declare const resizerHoverZoneClassName = "resizer-hover-zone";
|
|
3
|
+
export declare const resizerExtendedZone = "resizer-is-extended";
|
|
4
|
+
export declare const resizerHandleClassName = "resizer-handle";
|
|
5
|
+
export declare const resizerHandleTrackClassName = "resizer-handle-track";
|
|
6
|
+
export declare const resizerHandleThumbClassName = "resizer-handle-thumb";
|
|
7
|
+
export declare const resizerDangerClassName = "resizer-handle-danger";
|
|
8
|
+
export declare const handleWrapperClass = "resizer-handle-wrapper";
|
|
9
|
+
export declare const resizerStyles: import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.
|
|
3
|
+
"version": "207.6.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
63
63
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
64
64
|
"@atlaskit/task-decision": "^19.2.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^4.25.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.9.0",
|
|
67
67
|
"@atlaskit/tooltip": "^20.0.0",
|
|
68
68
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"uuid": "^3.1.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@atlaskit/link-provider": "^3.
|
|
82
|
+
"@atlaskit/link-provider": "^3.1.0",
|
|
83
83
|
"@atlaskit/media-core": "^36.1.0",
|
|
84
84
|
"react": "^18.2.0",
|
|
85
85
|
"react-dom": "^18.2.0",
|
|
@@ -90,20 +90,20 @@
|
|
|
90
90
|
"@af/visual-regression": "workspace:^",
|
|
91
91
|
"@atlaskit/adf-utils": "^19.19.0",
|
|
92
92
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
93
|
-
"@atlaskit/collab-provider": "^10.
|
|
93
|
+
"@atlaskit/collab-provider": "^10.16.0",
|
|
94
94
|
"@atlaskit/editor-plugin-annotation": "^2.8.0",
|
|
95
95
|
"@atlaskit/editor-plugin-card": "^6.3.0",
|
|
96
96
|
"@atlaskit/editor-plugin-list": "^4.2.0",
|
|
97
97
|
"@atlaskit/editor-plugin-paste": "^3.3.0",
|
|
98
|
-
"@atlaskit/link-provider": "^3.
|
|
99
|
-
"@atlaskit/logo": "^18.
|
|
98
|
+
"@atlaskit/link-provider": "^3.1.0",
|
|
99
|
+
"@atlaskit/logo": "^18.1.0",
|
|
100
100
|
"@atlaskit/media-core": "^36.1.0",
|
|
101
101
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
102
102
|
"@atlaskit/media-test-helpers": "^36.0.0",
|
|
103
103
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
104
104
|
"@atlaskit/primitives": "^14.8.0",
|
|
105
105
|
"@atlaskit/renderer": "^118.2.0",
|
|
106
|
-
"@atlaskit/smart-card": "^38.
|
|
106
|
+
"@atlaskit/smart-card": "^38.5.0",
|
|
107
107
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
108
108
|
"@atlaskit/toggle": "^15.0.0",
|
|
109
109
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
@@ -205,6 +205,10 @@
|
|
|
205
205
|
"type": "boolean",
|
|
206
206
|
"referenceOnly": true
|
|
207
207
|
},
|
|
208
|
+
"platform_editor_offline_banner_toolbar_position": {
|
|
209
|
+
"type": "boolean",
|
|
210
|
+
"referenceOnly": true
|
|
211
|
+
},
|
|
208
212
|
"platform_editor_disable_instrumented_plugin": {
|
|
209
213
|
"type": "boolean"
|
|
210
214
|
},
|