@atlaskit/editor-common 110.4.2 → 110.4.4
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 +18 -0
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/resizer.js +6 -131
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/resizer.js +6 -131
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/resizer.js +6 -131
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/block-menu-events.d.ts +3 -3
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/block-menu-events.d.ts +3 -3
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.4.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d24d26320c940`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d24d26320c940) -
|
|
8
|
+
FD-100510 clean up fg platform_editor_breakout_resizing_hello_release
|
|
9
|
+
- [`eb4899e5362e5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/eb4899e5362e5) -
|
|
10
|
+
Update BlockMenuItemClicked event payload
|
|
11
|
+
- [`f2edf4a20927d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2edf4a20927d) -
|
|
12
|
+
ED-29303 Move TaskListMenuItem component to taskAndDecision plugin
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 110.4.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 110.4.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -103,7 +103,7 @@ exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
|
|
|
103
103
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
104
104
|
exports.makeKeymap = makeKeymap;
|
|
105
105
|
exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.selectColumn = exports.redoAlt = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRowUp = exports.moveRowDown = exports.moveRight = exports.moveLeft = exports.moveDown = exports.moveColumnRight = exports.moveColumnLeft = void 0;
|
|
106
|
-
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCodeBlock = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = exports.splitCodeBlock = void 0;
|
|
106
|
+
exports.toggleUnderline = exports.toggleTaskList = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCodeBlock = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = exports.splitCodeBlock = void 0;
|
|
107
107
|
exports.tooltip = tooltip;
|
|
108
108
|
exports.undo = void 0;
|
|
109
109
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -206,6 +206,7 @@ var alignLeft = exports.alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shif
|
|
|
206
206
|
var alignCenter = exports.alignCenter = makeKeyMapWithCommon('Align Center', 'Mod-Alt-e');
|
|
207
207
|
var alignRight = exports.alignRight = makeKeyMapWithCommon('Align Right', 'Mod-Alt-t');
|
|
208
208
|
var toggleTaskItemCheckbox = exports.toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
209
|
+
var toggleTaskList = exports.toggleTaskList = makeKeyMapWithCommon('Toggle task list', 'Mod-Shift-6');
|
|
209
210
|
var selectRow = exports.selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
210
211
|
var selectColumn = exports.selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
211
212
|
var selectTable = exports.selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "
|
|
19
|
+
var packageVersion = "110.4.3";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
14
13
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
14
|
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -36,7 +35,7 @@ var resizerStyles = exports.resizerStyles = (0, _react.css)(_templateObject || (
|
|
|
36
35
|
|
|
37
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
38
37
|
var pragmaticResizerStylesForTooltip = exports.pragmaticResizerStylesForTooltip = function pragmaticResizerStylesForTooltip() {
|
|
39
|
-
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
38
|
+
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
40
39
|
return (0, _react.css)({
|
|
41
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
42
41
|
'.pm-breakout-resize-handle-rail-wrapper': {
|
|
@@ -62,7 +61,7 @@ var pragmaticResizerStylesForTooltip = exports.pragmaticResizerStylesForTooltip
|
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
63
|
var pragmaticStylesLayoutFirstNodeResizeHandleFix = exports.pragmaticStylesLayoutFirstNodeResizeHandleFix = function pragmaticStylesLayoutFirstNodeResizeHandleFix() {
|
|
65
|
-
if ((0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
64
|
+
if ((0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
66
65
|
return (0, _react.css)({
|
|
67
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
67
|
'.fabric-editor-breakout-mark': {
|
|
@@ -83,130 +82,6 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = function pragmatic
|
|
|
83
82
|
if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
84
83
|
return;
|
|
85
84
|
}
|
|
86
|
-
|
|
87
|
-
// styles needed to be duplicated
|
|
88
|
-
if ((0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release')) {
|
|
89
|
-
return (0, _react.css)({
|
|
90
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
91
|
-
'.fabric-editor-breakout-mark': {
|
|
92
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
93
|
-
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
94
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
95
|
-
'> .pm-breakout-resize-handle-container--left': {
|
|
96
|
-
left: '-5px'
|
|
97
|
-
},
|
|
98
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
99
|
-
'> .pm-breakout-resize-handle-container--right': {
|
|
100
|
-
right: '-5px'
|
|
101
|
-
},
|
|
102
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
103
|
-
'> .pm-breakout-resize-handle-container': {
|
|
104
|
-
height: 'calc(100% - 12px)'
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
108
|
-
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
109
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
110
|
-
'> .pm-breakout-resize-handle-container--left': {
|
|
111
|
-
left: '-25px'
|
|
112
|
-
},
|
|
113
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
114
|
-
'> .pm-breakout-resize-handle-container--right': {
|
|
115
|
-
right: '-25px'
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
119
|
-
'&:has([data-prosemirror-node-name="expand"])': {
|
|
120
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
121
|
-
'> .pm-breakout-resize-handle-container': {
|
|
122
|
-
height: 'calc(100% - 4px)'
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
126
|
-
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
127
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
128
|
-
'> .pm-breakout-resize-handle-container': {
|
|
129
|
-
height: 'calc(100% - 8px)'
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
// the first node in the document always has margin-top = 0
|
|
133
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
134
|
-
'&:has(.first-node-in-document)': {
|
|
135
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
136
|
-
'> .pm-breakout-resize-handle-container': {
|
|
137
|
-
height: '100%'
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
142
|
-
'.pm-breakout-resize-handle-container': {
|
|
143
|
-
position: 'relative',
|
|
144
|
-
alignSelf: 'end',
|
|
145
|
-
gridRow: 1,
|
|
146
|
-
gridColumn: 1,
|
|
147
|
-
height: '100%',
|
|
148
|
-
width: 7
|
|
149
|
-
},
|
|
150
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
151
|
-
'.pm-breakout-resize-handle-container--left': {
|
|
152
|
-
justifySelf: 'start'
|
|
153
|
-
},
|
|
154
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
155
|
-
'.pm-breakout-resize-handle-container--right': {
|
|
156
|
-
justifySelf: 'end'
|
|
157
|
-
},
|
|
158
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
159
|
-
'.pm-breakout-resize-handle-rail': {
|
|
160
|
-
position: 'relative',
|
|
161
|
-
display: 'flex',
|
|
162
|
-
alignItems: 'center',
|
|
163
|
-
justifyContent: 'center',
|
|
164
|
-
height: '100%',
|
|
165
|
-
cursor: 'col-resize',
|
|
166
|
-
borderRadius: "var(--ds-radius-small, 4px)",
|
|
167
|
-
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
168
|
-
zIndex: 2,
|
|
169
|
-
opacity: 0,
|
|
170
|
-
'&:hover': {
|
|
171
|
-
background: "var(--ds-background-selected, #E9F2FF)",
|
|
172
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
173
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
174
|
-
background: "var(--ds-border-focused, #388BFF)"
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
// same as 'hover' styles above
|
|
179
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
180
|
-
'.pm-breakout-resize-handle-container--active': {
|
|
181
|
-
background: "var(--ds-background-selected, #E9F2FF)",
|
|
182
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
183
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
184
|
-
background: "var(--ds-border-focused, #388BFF)"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
188
|
-
'.pm-breakout-resize-handle-hit-box': {
|
|
189
|
-
position: 'absolute',
|
|
190
|
-
top: 0,
|
|
191
|
-
bottom: 0,
|
|
192
|
-
left: -20,
|
|
193
|
-
right: -20,
|
|
194
|
-
zIndex: 0
|
|
195
|
-
},
|
|
196
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
197
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
198
|
-
minWidth: resizerHandleThumbWidth,
|
|
199
|
-
// copied from resizeStyles.clamped
|
|
200
|
-
height: 'clamp(27px, calc(100% - 32px), 96px)',
|
|
201
|
-
background: "var(--ds-border, #091E4224)",
|
|
202
|
-
borderRadius: "var(--ds-radius-medium, 6px)",
|
|
203
|
-
// sticky styles
|
|
204
|
-
position: 'sticky',
|
|
205
|
-
top: "var(--ds-space-150, 12px)",
|
|
206
|
-
bottom: "var(--ds-space-150, 12px)"
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
85
|
return (0, _react.css)({
|
|
211
86
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
212
87
|
'.fabric-editor-breakout-mark': {
|
|
@@ -214,11 +89,11 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = function pragmatic
|
|
|
214
89
|
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
215
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
216
91
|
'> .pm-breakout-resize-handle-container--left': {
|
|
217
|
-
left: '-
|
|
92
|
+
left: '-5px'
|
|
218
93
|
},
|
|
219
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
220
95
|
'> .pm-breakout-resize-handle-container--right': {
|
|
221
|
-
right: '-
|
|
96
|
+
right: '-5px'
|
|
222
97
|
},
|
|
223
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
224
99
|
'> .pm-breakout-resize-handle-container': {
|
|
@@ -229,11 +104,11 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = function pragmatic
|
|
|
229
104
|
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
230
105
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
231
106
|
'> .pm-breakout-resize-handle-container--left': {
|
|
232
|
-
left: '-
|
|
107
|
+
left: '-25px'
|
|
233
108
|
},
|
|
234
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
110
|
'> .pm-breakout-resize-handle-container--right': {
|
|
236
|
-
right: '-
|
|
111
|
+
right: '-25px'
|
|
237
112
|
}
|
|
238
113
|
},
|
|
239
114
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "
|
|
27
|
+
var packageVersion = "110.4.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -93,6 +93,7 @@ export const alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
|
93
93
|
export const alignCenter = makeKeyMapWithCommon('Align Center', 'Mod-Alt-e');
|
|
94
94
|
export const alignRight = makeKeyMapWithCommon('Align Right', 'Mod-Alt-t');
|
|
95
95
|
export const toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
96
|
+
export const toggleTaskList = makeKeyMapWithCommon('Toggle task list', 'Mod-Shift-6');
|
|
96
97
|
export const selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
97
98
|
export const selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
98
99
|
export const selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "
|
|
4
|
+
const packageVersion = "110.4.3";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { akEditorDeleteIconColor, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
/*
|
|
@@ -222,7 +221,7 @@ export const resizerStyles = css`
|
|
|
222
221
|
|
|
223
222
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
224
223
|
export const pragmaticResizerStylesForTooltip = () => {
|
|
225
|
-
if (expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
224
|
+
if (expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
226
225
|
return css({
|
|
227
226
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
228
227
|
'.pm-breakout-resize-handle-rail-wrapper': {
|
|
@@ -248,7 +247,7 @@ export const pragmaticResizerStylesForTooltip = () => {
|
|
|
248
247
|
}
|
|
249
248
|
};
|
|
250
249
|
export const pragmaticStylesLayoutFirstNodeResizeHandleFix = () => {
|
|
251
|
-
if (editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
250
|
+
if (editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
252
251
|
return css({
|
|
253
252
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
254
253
|
'.fabric-editor-breakout-mark': {
|
|
@@ -269,130 +268,6 @@ export const pragmaticResizerStyles = () => {
|
|
|
269
268
|
if (!expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
270
269
|
return;
|
|
271
270
|
}
|
|
272
|
-
|
|
273
|
-
// styles needed to be duplicated
|
|
274
|
-
if (fg('platform_editor_breakout_resizing_hello_release')) {
|
|
275
|
-
return css({
|
|
276
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
277
|
-
'.fabric-editor-breakout-mark': {
|
|
278
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
279
|
-
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
280
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
281
|
-
'> .pm-breakout-resize-handle-container--left': {
|
|
282
|
-
left: '-5px'
|
|
283
|
-
},
|
|
284
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
285
|
-
'> .pm-breakout-resize-handle-container--right': {
|
|
286
|
-
right: '-5px'
|
|
287
|
-
},
|
|
288
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
289
|
-
'> .pm-breakout-resize-handle-container': {
|
|
290
|
-
height: 'calc(100% - 12px)'
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
294
|
-
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
295
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
296
|
-
'> .pm-breakout-resize-handle-container--left': {
|
|
297
|
-
left: '-25px'
|
|
298
|
-
},
|
|
299
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
300
|
-
'> .pm-breakout-resize-handle-container--right': {
|
|
301
|
-
right: '-25px'
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
305
|
-
'&:has([data-prosemirror-node-name="expand"])': {
|
|
306
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
307
|
-
'> .pm-breakout-resize-handle-container': {
|
|
308
|
-
height: 'calc(100% - 4px)'
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
312
|
-
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
313
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
314
|
-
'> .pm-breakout-resize-handle-container': {
|
|
315
|
-
height: 'calc(100% - 8px)'
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
// the first node in the document always has margin-top = 0
|
|
319
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
320
|
-
'&:has(.first-node-in-document)': {
|
|
321
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
322
|
-
'> .pm-breakout-resize-handle-container': {
|
|
323
|
-
height: '100%'
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
328
|
-
'.pm-breakout-resize-handle-container': {
|
|
329
|
-
position: 'relative',
|
|
330
|
-
alignSelf: 'end',
|
|
331
|
-
gridRow: 1,
|
|
332
|
-
gridColumn: 1,
|
|
333
|
-
height: '100%',
|
|
334
|
-
width: 7
|
|
335
|
-
},
|
|
336
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
337
|
-
'.pm-breakout-resize-handle-container--left': {
|
|
338
|
-
justifySelf: 'start'
|
|
339
|
-
},
|
|
340
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
341
|
-
'.pm-breakout-resize-handle-container--right': {
|
|
342
|
-
justifySelf: 'end'
|
|
343
|
-
},
|
|
344
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
345
|
-
'.pm-breakout-resize-handle-rail': {
|
|
346
|
-
position: 'relative',
|
|
347
|
-
display: 'flex',
|
|
348
|
-
alignItems: 'center',
|
|
349
|
-
justifyContent: 'center',
|
|
350
|
-
height: '100%',
|
|
351
|
-
cursor: 'col-resize',
|
|
352
|
-
borderRadius: "var(--ds-radius-small, 4px)",
|
|
353
|
-
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
354
|
-
zIndex: 2,
|
|
355
|
-
opacity: 0,
|
|
356
|
-
'&:hover': {
|
|
357
|
-
background: "var(--ds-background-selected, #E9F2FF)",
|
|
358
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
359
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
360
|
-
background: "var(--ds-border-focused, #388BFF)"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
// same as 'hover' styles above
|
|
365
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
366
|
-
'.pm-breakout-resize-handle-container--active': {
|
|
367
|
-
background: "var(--ds-background-selected, #E9F2FF)",
|
|
368
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
369
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
370
|
-
background: "var(--ds-border-focused, #388BFF)"
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
374
|
-
'.pm-breakout-resize-handle-hit-box': {
|
|
375
|
-
position: 'absolute',
|
|
376
|
-
top: 0,
|
|
377
|
-
bottom: 0,
|
|
378
|
-
left: -20,
|
|
379
|
-
right: -20,
|
|
380
|
-
zIndex: 0
|
|
381
|
-
},
|
|
382
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
383
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
384
|
-
minWidth: resizerHandleThumbWidth,
|
|
385
|
-
// copied from resizeStyles.clamped
|
|
386
|
-
height: 'clamp(27px, calc(100% - 32px), 96px)',
|
|
387
|
-
background: "var(--ds-border, #091E4224)",
|
|
388
|
-
borderRadius: "var(--ds-radius-medium, 6px)",
|
|
389
|
-
// sticky styles
|
|
390
|
-
position: 'sticky',
|
|
391
|
-
top: "var(--ds-space-150, 12px)",
|
|
392
|
-
bottom: "var(--ds-space-150, 12px)"
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
271
|
return css({
|
|
397
272
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
398
273
|
'.fabric-editor-breakout-mark': {
|
|
@@ -400,11 +275,11 @@ export const pragmaticResizerStyles = () => {
|
|
|
400
275
|
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
401
276
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
402
277
|
'> .pm-breakout-resize-handle-container--left': {
|
|
403
|
-
left: '-
|
|
278
|
+
left: '-5px'
|
|
404
279
|
},
|
|
405
280
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
406
281
|
'> .pm-breakout-resize-handle-container--right': {
|
|
407
|
-
right: '-
|
|
282
|
+
right: '-5px'
|
|
408
283
|
},
|
|
409
284
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
410
285
|
'> .pm-breakout-resize-handle-container': {
|
|
@@ -415,11 +290,11 @@ export const pragmaticResizerStyles = () => {
|
|
|
415
290
|
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
416
291
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
417
292
|
'> .pm-breakout-resize-handle-container--left': {
|
|
418
|
-
left: '-
|
|
293
|
+
left: '-25px'
|
|
419
294
|
},
|
|
420
295
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
421
296
|
'> .pm-breakout-resize-handle-container--right': {
|
|
422
|
-
right: '-
|
|
297
|
+
right: '-25px'
|
|
423
298
|
}
|
|
424
299
|
},
|
|
425
300
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "110.4.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -94,6 +94,7 @@ export var alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
|
94
94
|
export var alignCenter = makeKeyMapWithCommon('Align Center', 'Mod-Alt-e');
|
|
95
95
|
export var alignRight = makeKeyMapWithCommon('Align Right', 'Mod-Alt-t');
|
|
96
96
|
export var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
97
|
+
export var toggleTaskList = makeKeyMapWithCommon('Toggle task list', 'Mod-Shift-6');
|
|
97
98
|
export var selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
98
99
|
export var selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
99
100
|
export var selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "
|
|
10
|
+
var packageVersion = "110.4.3";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -4,7 +4,6 @@ var _templateObject;
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { akEditorDeleteIconColor, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
9
8
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
9
|
/*
|
|
@@ -30,7 +29,7 @@ export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemp
|
|
|
30
29
|
|
|
31
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
32
31
|
export var pragmaticResizerStylesForTooltip = function pragmaticResizerStylesForTooltip() {
|
|
33
|
-
if (expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
32
|
+
if (expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
34
33
|
return css({
|
|
35
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
36
35
|
'.pm-breakout-resize-handle-rail-wrapper': {
|
|
@@ -56,7 +55,7 @@ export var pragmaticResizerStylesForTooltip = function pragmaticResizerStylesFor
|
|
|
56
55
|
}
|
|
57
56
|
};
|
|
58
57
|
export var pragmaticStylesLayoutFirstNodeResizeHandleFix = function pragmaticStylesLayoutFirstNodeResizeHandleFix() {
|
|
59
|
-
if (editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)
|
|
58
|
+
if (editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
60
59
|
return css({
|
|
61
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
62
61
|
'.fabric-editor-breakout-mark': {
|
|
@@ -77,130 +76,6 @@ export var pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
|
77
76
|
if (!expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)) {
|
|
78
77
|
return;
|
|
79
78
|
}
|
|
80
|
-
|
|
81
|
-
// styles needed to be duplicated
|
|
82
|
-
if (fg('platform_editor_breakout_resizing_hello_release')) {
|
|
83
|
-
return css({
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
85
|
-
'.fabric-editor-breakout-mark': {
|
|
86
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
87
|
-
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
88
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
89
|
-
'> .pm-breakout-resize-handle-container--left': {
|
|
90
|
-
left: '-5px'
|
|
91
|
-
},
|
|
92
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
93
|
-
'> .pm-breakout-resize-handle-container--right': {
|
|
94
|
-
right: '-5px'
|
|
95
|
-
},
|
|
96
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
97
|
-
'> .pm-breakout-resize-handle-container': {
|
|
98
|
-
height: 'calc(100% - 12px)'
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
102
|
-
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
103
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
104
|
-
'> .pm-breakout-resize-handle-container--left': {
|
|
105
|
-
left: '-25px'
|
|
106
|
-
},
|
|
107
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
108
|
-
'> .pm-breakout-resize-handle-container--right': {
|
|
109
|
-
right: '-25px'
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
113
|
-
'&:has([data-prosemirror-node-name="expand"])': {
|
|
114
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
115
|
-
'> .pm-breakout-resize-handle-container': {
|
|
116
|
-
height: 'calc(100% - 4px)'
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
120
|
-
'&:has([data-prosemirror-node-name="layoutSection"])': {
|
|
121
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
122
|
-
'> .pm-breakout-resize-handle-container': {
|
|
123
|
-
height: 'calc(100% - 8px)'
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
// the first node in the document always has margin-top = 0
|
|
127
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
128
|
-
'&:has(.first-node-in-document)': {
|
|
129
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
130
|
-
'> .pm-breakout-resize-handle-container': {
|
|
131
|
-
height: '100%'
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
136
|
-
'.pm-breakout-resize-handle-container': {
|
|
137
|
-
position: 'relative',
|
|
138
|
-
alignSelf: 'end',
|
|
139
|
-
gridRow: 1,
|
|
140
|
-
gridColumn: 1,
|
|
141
|
-
height: '100%',
|
|
142
|
-
width: 7
|
|
143
|
-
},
|
|
144
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
145
|
-
'.pm-breakout-resize-handle-container--left': {
|
|
146
|
-
justifySelf: 'start'
|
|
147
|
-
},
|
|
148
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
149
|
-
'.pm-breakout-resize-handle-container--right': {
|
|
150
|
-
justifySelf: 'end'
|
|
151
|
-
},
|
|
152
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
153
|
-
'.pm-breakout-resize-handle-rail': {
|
|
154
|
-
position: 'relative',
|
|
155
|
-
display: 'flex',
|
|
156
|
-
alignItems: 'center',
|
|
157
|
-
justifyContent: 'center',
|
|
158
|
-
height: '100%',
|
|
159
|
-
cursor: 'col-resize',
|
|
160
|
-
borderRadius: "var(--ds-radius-small, 4px)",
|
|
161
|
-
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
162
|
-
zIndex: 2,
|
|
163
|
-
opacity: 0,
|
|
164
|
-
'&:hover': {
|
|
165
|
-
background: "var(--ds-background-selected, #E9F2FF)",
|
|
166
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
167
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
168
|
-
background: "var(--ds-border-focused, #388BFF)"
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
// same as 'hover' styles above
|
|
173
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
174
|
-
'.pm-breakout-resize-handle-container--active': {
|
|
175
|
-
background: "var(--ds-background-selected, #E9F2FF)",
|
|
176
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
177
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
178
|
-
background: "var(--ds-border-focused, #388BFF)"
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
182
|
-
'.pm-breakout-resize-handle-hit-box': {
|
|
183
|
-
position: 'absolute',
|
|
184
|
-
top: 0,
|
|
185
|
-
bottom: 0,
|
|
186
|
-
left: -20,
|
|
187
|
-
right: -20,
|
|
188
|
-
zIndex: 0
|
|
189
|
-
},
|
|
190
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
191
|
-
'.pm-breakout-resize-handle-thumb': {
|
|
192
|
-
minWidth: resizerHandleThumbWidth,
|
|
193
|
-
// copied from resizeStyles.clamped
|
|
194
|
-
height: 'clamp(27px, calc(100% - 32px), 96px)',
|
|
195
|
-
background: "var(--ds-border, #091E4224)",
|
|
196
|
-
borderRadius: "var(--ds-radius-medium, 6px)",
|
|
197
|
-
// sticky styles
|
|
198
|
-
position: 'sticky',
|
|
199
|
-
top: "var(--ds-space-150, 12px)",
|
|
200
|
-
bottom: "var(--ds-space-150, 12px)"
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
79
|
return css({
|
|
205
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
206
81
|
'.fabric-editor-breakout-mark': {
|
|
@@ -208,11 +83,11 @@ export var pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
|
208
83
|
'&:has([data-prosemirror-node-name="codeBlock"])': {
|
|
209
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
210
85
|
'> .pm-breakout-resize-handle-container--left': {
|
|
211
|
-
left: '-
|
|
86
|
+
left: '-5px'
|
|
212
87
|
},
|
|
213
88
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
214
89
|
'> .pm-breakout-resize-handle-container--right': {
|
|
215
|
-
right: '-
|
|
90
|
+
right: '-5px'
|
|
216
91
|
},
|
|
217
92
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
218
93
|
'> .pm-breakout-resize-handle-container': {
|
|
@@ -223,11 +98,11 @@ export var pragmaticResizerStyles = function pragmaticResizerStyles() {
|
|
|
223
98
|
'&:has([data-prosemirror-node-name="expand"]), &:has([data-prosemirror-node-name="layoutSection"])': {
|
|
224
99
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
225
100
|
'> .pm-breakout-resize-handle-container--left': {
|
|
226
|
-
left: '-
|
|
101
|
+
left: '-25px'
|
|
227
102
|
},
|
|
228
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
229
104
|
'> .pm-breakout-resize-handle-container--right': {
|
|
230
|
-
right: '-
|
|
105
|
+
right: '-25px'
|
|
231
106
|
}
|
|
232
107
|
},
|
|
233
108
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "110.4.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ACTION, ACTION_SUBJECT,
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
2
2
|
import type { UIAEP, TrackAEP } from './utils';
|
|
3
|
-
export type BlockMenuActionSubjectId = ACTION_SUBJECT_ID.COPY_LINK_TO_BLOCK | ACTION_SUBJECT_ID.MOVE_UP_BLOCK | ACTION_SUBJECT_ID.MOVE_DOWN_BLOCK | ACTION_SUBJECT_ID.DELETE_BLOCK | ACTION_SUBJECT_ID.COPY_BLOCK | ACTION_SUBJECT_ID.FORMAT_MENU;
|
|
4
3
|
export type BlockMenuOpenedAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.BLOCK_MENU, undefined, {
|
|
5
4
|
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
|
|
6
5
|
}, undefined>;
|
|
7
|
-
export type BlockMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BLOCK_MENU_ITEM,
|
|
6
|
+
export type BlockMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BLOCK_MENU_ITEM, undefined, {
|
|
8
7
|
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
|
|
8
|
+
menuItemName: string;
|
|
9
9
|
}, undefined>;
|
|
10
10
|
interface ElementConvertedAttr {
|
|
11
11
|
conversionSource?: string;
|
|
@@ -88,6 +88,7 @@ export declare const alignLeft: Keymap;
|
|
|
88
88
|
export declare const alignCenter: Keymap;
|
|
89
89
|
export declare const alignRight: Keymap;
|
|
90
90
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
91
|
+
export declare const toggleTaskList: Keymap;
|
|
91
92
|
export declare const selectRow: Keymap[];
|
|
92
93
|
export declare const selectColumn: Keymap[];
|
|
93
94
|
export declare const selectTable: Keymap;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ACTION, ACTION_SUBJECT,
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
2
2
|
import type { UIAEP, TrackAEP } from './utils';
|
|
3
|
-
export type BlockMenuActionSubjectId = ACTION_SUBJECT_ID.COPY_LINK_TO_BLOCK | ACTION_SUBJECT_ID.MOVE_UP_BLOCK | ACTION_SUBJECT_ID.MOVE_DOWN_BLOCK | ACTION_SUBJECT_ID.DELETE_BLOCK | ACTION_SUBJECT_ID.COPY_BLOCK | ACTION_SUBJECT_ID.FORMAT_MENU;
|
|
4
3
|
export type BlockMenuOpenedAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.BLOCK_MENU, undefined, {
|
|
5
4
|
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
|
|
6
5
|
}, undefined>;
|
|
7
|
-
export type BlockMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BLOCK_MENU_ITEM,
|
|
6
|
+
export type BlockMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BLOCK_MENU_ITEM, undefined, {
|
|
8
7
|
inputMethod: INPUT_METHOD.MOUSE | INPUT_METHOD.KEYBOARD;
|
|
8
|
+
menuItemName: string;
|
|
9
9
|
}, undefined>;
|
|
10
10
|
interface ElementConvertedAttr {
|
|
11
11
|
conversionSource?: string;
|
|
@@ -88,6 +88,7 @@ export declare const alignLeft: Keymap;
|
|
|
88
88
|
export declare const alignCenter: Keymap;
|
|
89
89
|
export declare const alignRight: Keymap;
|
|
90
90
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
91
|
+
export declare const toggleTaskList: Keymap;
|
|
91
92
|
export declare const selectRow: Keymap[];
|
|
92
93
|
export declare const selectColumn: Keymap[];
|
|
93
94
|
export declare const selectTable: Keymap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.4.
|
|
3
|
+
"version": "110.4.4",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.0.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^13.0.0",
|
|
85
85
|
"@atlaskit/tokens": "^6.4.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.5.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -256,9 +256,6 @@
|
|
|
256
256
|
"cc_comments_log_draft_annotation_ancestor_nodes": {
|
|
257
257
|
"type": "boolean"
|
|
258
258
|
},
|
|
259
|
-
"platform_editor_breakout_resizing_hello_release": {
|
|
260
|
-
"type": "boolean"
|
|
261
|
-
},
|
|
262
259
|
"jfp_a11y_fix_create_issue_no_results_link_focus": {
|
|
263
260
|
"type": "boolean"
|
|
264
261
|
},
|