@atlaskit/editor-common 102.17.0 → 102.17.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 +23 -0
- package/dist/cjs/analytics/types/enums.js +0 -1
- package/dist/cjs/keymaps/index.js +2 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/resizer/BreakoutResizer.js +1 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/calculate-toolbar-position.js +11 -4
- package/dist/es2019/analytics/types/enums.js +0 -1
- package/dist/es2019/keymaps/index.js +0 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +1 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/calculate-toolbar-position.js +11 -4
- package/dist/esm/analytics/types/enums.js +0 -1
- package/dist/esm/keymaps/index.js +0 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +1 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/calculate-toolbar-position.js +11 -4
- package/dist/types/analytics/types/ai-unified-events.d.ts +7 -0
- package/dist/types/analytics/types/enums.d.ts +0 -1
- package/dist/types/analytics/types/selection-events.d.ts +1 -5
- package/dist/types/keymaps/index.d.ts +0 -1
- package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +7 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +0 -1
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +1 -5
- package/dist/types-ts4.5/keymaps/index.d.ts +0 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 102.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#135979](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135979)
|
|
8
|
+
[`9e83a79d2c8ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e83a79d2c8ad) -
|
|
9
|
+
[HOT-116417] Revert null mode which was causing layouts to lose their width breakout mark on
|
|
10
|
+
publish
|
|
11
|
+
|
|
12
|
+
## 102.17.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#134378](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/134378)
|
|
17
|
+
[`210a48c778086`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/210a48c778086) -
|
|
18
|
+
EDITOR-546 Cleaned up platform_editor_cmd_a_progressively_select_nodes to revert to control
|
|
19
|
+
behaviour.
|
|
20
|
+
- [#135717](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/135717)
|
|
21
|
+
[`5e9c4ce5c11da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5e9c4ce5c11da) -
|
|
22
|
+
[ux] Show Text Formatting toolbar in the view when table is large and column is selected via drag
|
|
23
|
+
handle.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 102.17.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
|
@@ -105,7 +105,6 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
105
105
|
ACTION["RESOLVED"] = "resolved";
|
|
106
106
|
ACTION["REQUEST_TO_EDIT"] = "requestToEdit";
|
|
107
107
|
ACTION["SELECTED"] = "selected";
|
|
108
|
-
ACTION["SELECT_ALL"] = "selectAll";
|
|
109
108
|
ACTION["SHOWN"] = "shown";
|
|
110
109
|
ACTION["SLOW_INPUT"] = "slowInput";
|
|
111
110
|
ACTION["STARTED"] = "started";
|
|
@@ -102,8 +102,8 @@ Object.defineProperty(exports, "keymap", {
|
|
|
102
102
|
exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
|
|
103
103
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
104
104
|
exports.makeKeymap = makeKeymap;
|
|
105
|
-
exports.splitCodeBlock = exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.
|
|
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.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing =
|
|
105
|
+
exports.splitListItem = exports.splitCodeBlock = 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.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = void 0;
|
|
107
107
|
exports.tooltip = tooltip;
|
|
108
108
|
exports.undo = void 0;
|
|
109
109
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -208,7 +208,6 @@ var toggleTaskItemCheckbox = exports.toggleTaskItemCheckbox = makeKeyMapWithComm
|
|
|
208
208
|
var selectRow = exports.selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
209
209
|
var selectColumn = exports.selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
210
210
|
var selectTable = exports.selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
211
|
-
var selectNode = exports.selectNode = makeKeyMapWithCommon('Select node', 'Mod-a');
|
|
212
211
|
var increaseMediaSize = exports.increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
213
212
|
var decreaseMediaSize = exports.decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
214
213
|
var activateVideoControls = exports.activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "102.17.
|
|
20
|
+
var packageVersion = "102.17.2";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -178,8 +178,7 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
178
178
|
} else {
|
|
179
179
|
var newBreakoutWidth = Math.max(newWidth, _editorSharedStyles.akEditorDefaultLayoutWidth);
|
|
180
180
|
newTr.setNodeMarkup(pos, node.type, node.attrs, [breakout.create({
|
|
181
|
-
width: newBreakoutWidth
|
|
182
|
-
mode: null
|
|
181
|
+
width: newBreakoutWidth
|
|
183
182
|
})]);
|
|
184
183
|
var breakoutResizePayload = {
|
|
185
184
|
action: _analytics.ACTION.RESIZED,
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "102.17.
|
|
26
|
+
var packageVersion = "102.17.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -159,7 +159,7 @@ var getCoordsBelowSelection = function getCoordsBelowSelection(bottomCoords, too
|
|
|
159
159
|
left: bottomCoords.right - toolbarRect.width / 2
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
|
-
var
|
|
162
|
+
var cellSelectionToolbarOffsetTop = 10;
|
|
163
163
|
var scrollbarWidth = 20;
|
|
164
164
|
var offsetTopOnColumnSelection = 4;
|
|
165
165
|
var calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionOnCellSelection = function calculateToolbarPositionOnCellSelection(toolbarTitle) {
|
|
@@ -186,10 +186,10 @@ var calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionOn
|
|
|
186
186
|
var top;
|
|
187
187
|
if (headCellRect.top <= anchorCellRect.top) {
|
|
188
188
|
// Display Selection toolbar at the top of the selection
|
|
189
|
-
top = headCellRect.top - toolbarRect.height -
|
|
189
|
+
top = headCellRect.top - toolbarRect.height - cellSelectionToolbarOffsetTop;
|
|
190
190
|
} else {
|
|
191
191
|
// Display Selection toolbar at the bottom of the selection
|
|
192
|
-
top = headCellRect.bottom +
|
|
192
|
+
top = headCellRect.bottom + cellSelectionToolbarOffsetTop;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
// scroll wrapper for full page, fall back to document body
|
|
@@ -200,7 +200,7 @@ var calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionOn
|
|
|
200
200
|
var wrapperBounds = scrollWrapper.getBoundingClientRect();
|
|
201
201
|
// Place toolbar below selection if not sufficient space above
|
|
202
202
|
if (top < wrapperBounds.top && headCellRect.top <= anchorCellRect.top) {
|
|
203
|
-
top = anchorCellRect.bottom +
|
|
203
|
+
top = anchorCellRect.bottom + cellSelectionToolbarOffsetTop;
|
|
204
204
|
}
|
|
205
205
|
var left;
|
|
206
206
|
if (headCellRect.left < anchorCellRect.left) {
|
|
@@ -237,6 +237,13 @@ var calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionOn
|
|
|
237
237
|
if (adjustedLeft + toolbarRect.width > wrapperBounds.width) {
|
|
238
238
|
adjustedLeft = Math.max(0, wrapperBounds.width - (toolbarRect.width + scrollbarWidth));
|
|
239
239
|
}
|
|
240
|
+
|
|
241
|
+
// If the toolbar is to be placed at the bottom of the selection (it happens when
|
|
242
|
+
// there is no sufficient space above) and the bottom of the selection is not in the view,
|
|
243
|
+
// place the toolbar at the bottom of the visible part of selection
|
|
244
|
+
if (selection.isColSelection() && top + toolbarRect.height > wrapperBounds.bottom && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_2')) {
|
|
245
|
+
top = top - (top - wrapperBounds.bottom) - (toolbarRect.height + 2 * cellSelectionToolbarOffsetTop);
|
|
246
|
+
}
|
|
240
247
|
return {
|
|
241
248
|
top: top - wrapperBounds.top + scrollWrapper.scrollTop,
|
|
242
249
|
left: adjustedLeft
|
|
@@ -99,7 +99,6 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
99
99
|
ACTION["RESOLVED"] = "resolved";
|
|
100
100
|
ACTION["REQUEST_TO_EDIT"] = "requestToEdit";
|
|
101
101
|
ACTION["SELECTED"] = "selected";
|
|
102
|
-
ACTION["SELECT_ALL"] = "selectAll";
|
|
103
102
|
ACTION["SHOWN"] = "shown";
|
|
104
103
|
ACTION["SLOW_INPUT"] = "slowInput";
|
|
105
104
|
ACTION["STARTED"] = "started";
|
|
@@ -94,7 +94,6 @@ export const toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item',
|
|
|
94
94
|
export const selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
95
95
|
export const selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
96
96
|
export const selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
97
|
-
export const selectNode = makeKeyMapWithCommon('Select node', 'Mod-a');
|
|
98
97
|
export const increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
99
98
|
export const decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
100
99
|
export const activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
@@ -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 = "102.17.
|
|
4
|
+
const packageVersion = "102.17.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -174,8 +174,7 @@ const BreakoutResizer = ({
|
|
|
174
174
|
} else {
|
|
175
175
|
const newBreakoutWidth = Math.max(newWidth, akEditorDefaultLayoutWidth);
|
|
176
176
|
newTr.setNodeMarkup(pos, node.type, node.attrs, [breakout.create({
|
|
177
|
-
width: newBreakoutWidth
|
|
178
|
-
mode: null
|
|
177
|
+
width: newBreakoutWidth
|
|
179
178
|
})]);
|
|
180
179
|
const breakoutResizePayload = {
|
|
181
180
|
action: ACTION.RESIZED,
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "102.17.
|
|
16
|
+
const packageVersion = "102.17.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -153,7 +153,7 @@ const getCoordsBelowSelection = (bottomCoords, toolbarRect) => {
|
|
|
153
153
|
left: bottomCoords.right - toolbarRect.width / 2
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
|
-
const
|
|
156
|
+
const cellSelectionToolbarOffsetTop = 10;
|
|
157
157
|
const scrollbarWidth = 20;
|
|
158
158
|
const offsetTopOnColumnSelection = 4;
|
|
159
159
|
export const calculateToolbarPositionOnCellSelection = toolbarTitle => (editorView, nextPos) => {
|
|
@@ -183,10 +183,10 @@ export const calculateToolbarPositionOnCellSelection = toolbarTitle => (editorVi
|
|
|
183
183
|
let top;
|
|
184
184
|
if (headCellRect.top <= anchorCellRect.top) {
|
|
185
185
|
// Display Selection toolbar at the top of the selection
|
|
186
|
-
top = headCellRect.top - toolbarRect.height -
|
|
186
|
+
top = headCellRect.top - toolbarRect.height - cellSelectionToolbarOffsetTop;
|
|
187
187
|
} else {
|
|
188
188
|
// Display Selection toolbar at the bottom of the selection
|
|
189
|
-
top = headCellRect.bottom +
|
|
189
|
+
top = headCellRect.bottom + cellSelectionToolbarOffsetTop;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
// scroll wrapper for full page, fall back to document body
|
|
@@ -197,7 +197,7 @@ export const calculateToolbarPositionOnCellSelection = toolbarTitle => (editorVi
|
|
|
197
197
|
const wrapperBounds = scrollWrapper.getBoundingClientRect();
|
|
198
198
|
// Place toolbar below selection if not sufficient space above
|
|
199
199
|
if (top < wrapperBounds.top && headCellRect.top <= anchorCellRect.top) {
|
|
200
|
-
top = anchorCellRect.bottom +
|
|
200
|
+
top = anchorCellRect.bottom + cellSelectionToolbarOffsetTop;
|
|
201
201
|
}
|
|
202
202
|
let left;
|
|
203
203
|
if (headCellRect.left < anchorCellRect.left) {
|
|
@@ -234,6 +234,13 @@ export const calculateToolbarPositionOnCellSelection = toolbarTitle => (editorVi
|
|
|
234
234
|
if (adjustedLeft + toolbarRect.width > wrapperBounds.width) {
|
|
235
235
|
adjustedLeft = Math.max(0, wrapperBounds.width - (toolbarRect.width + scrollbarWidth));
|
|
236
236
|
}
|
|
237
|
+
|
|
238
|
+
// If the toolbar is to be placed at the bottom of the selection (it happens when
|
|
239
|
+
// there is no sufficient space above) and the bottom of the selection is not in the view,
|
|
240
|
+
// place the toolbar at the bottom of the visible part of selection
|
|
241
|
+
if (selection.isColSelection() && top + toolbarRect.height > wrapperBounds.bottom && fg('platform_editor_controls_patch_2')) {
|
|
242
|
+
top = top - (top - wrapperBounds.bottom) - (toolbarRect.height + 2 * cellSelectionToolbarOffsetTop);
|
|
243
|
+
}
|
|
237
244
|
return {
|
|
238
245
|
top: top - wrapperBounds.top + scrollWrapper.scrollTop,
|
|
239
246
|
left: adjustedLeft
|
|
@@ -99,7 +99,6 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
99
99
|
ACTION["RESOLVED"] = "resolved";
|
|
100
100
|
ACTION["REQUEST_TO_EDIT"] = "requestToEdit";
|
|
101
101
|
ACTION["SELECTED"] = "selected";
|
|
102
|
-
ACTION["SELECT_ALL"] = "selectAll";
|
|
103
102
|
ACTION["SHOWN"] = "shown";
|
|
104
103
|
ACTION["SLOW_INPUT"] = "slowInput";
|
|
105
104
|
ACTION["STARTED"] = "started";
|
|
@@ -95,7 +95,6 @@ export var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'M
|
|
|
95
95
|
export var selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
96
96
|
export var selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
97
97
|
export var selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
98
|
-
export var selectNode = makeKeyMapWithCommon('Select node', 'Mod-a');
|
|
99
98
|
export var increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
100
99
|
export var decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
101
100
|
export var activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
@@ -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 = "102.17.
|
|
10
|
+
var packageVersion = "102.17.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -168,8 +168,7 @@ var BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
168
168
|
} else {
|
|
169
169
|
var newBreakoutWidth = Math.max(newWidth, akEditorDefaultLayoutWidth);
|
|
170
170
|
newTr.setNodeMarkup(pos, node.type, node.attrs, [breakout.create({
|
|
171
|
-
width: newBreakoutWidth
|
|
172
|
-
mode: null
|
|
171
|
+
width: newBreakoutWidth
|
|
173
172
|
})]);
|
|
174
173
|
var breakoutResizePayload = {
|
|
175
174
|
action: ACTION.RESIZED,
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "102.17.
|
|
23
|
+
var packageVersion = "102.17.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -153,7 +153,7 @@ var getCoordsBelowSelection = function getCoordsBelowSelection(bottomCoords, too
|
|
|
153
153
|
left: bottomCoords.right - toolbarRect.width / 2
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
|
-
var
|
|
156
|
+
var cellSelectionToolbarOffsetTop = 10;
|
|
157
157
|
var scrollbarWidth = 20;
|
|
158
158
|
var offsetTopOnColumnSelection = 4;
|
|
159
159
|
export var calculateToolbarPositionOnCellSelection = function calculateToolbarPositionOnCellSelection(toolbarTitle) {
|
|
@@ -180,10 +180,10 @@ export var calculateToolbarPositionOnCellSelection = function calculateToolbarPo
|
|
|
180
180
|
var top;
|
|
181
181
|
if (headCellRect.top <= anchorCellRect.top) {
|
|
182
182
|
// Display Selection toolbar at the top of the selection
|
|
183
|
-
top = headCellRect.top - toolbarRect.height -
|
|
183
|
+
top = headCellRect.top - toolbarRect.height - cellSelectionToolbarOffsetTop;
|
|
184
184
|
} else {
|
|
185
185
|
// Display Selection toolbar at the bottom of the selection
|
|
186
|
-
top = headCellRect.bottom +
|
|
186
|
+
top = headCellRect.bottom + cellSelectionToolbarOffsetTop;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
// scroll wrapper for full page, fall back to document body
|
|
@@ -194,7 +194,7 @@ export var calculateToolbarPositionOnCellSelection = function calculateToolbarPo
|
|
|
194
194
|
var wrapperBounds = scrollWrapper.getBoundingClientRect();
|
|
195
195
|
// Place toolbar below selection if not sufficient space above
|
|
196
196
|
if (top < wrapperBounds.top && headCellRect.top <= anchorCellRect.top) {
|
|
197
|
-
top = anchorCellRect.bottom +
|
|
197
|
+
top = anchorCellRect.bottom + cellSelectionToolbarOffsetTop;
|
|
198
198
|
}
|
|
199
199
|
var left;
|
|
200
200
|
if (headCellRect.left < anchorCellRect.left) {
|
|
@@ -231,6 +231,13 @@ export var calculateToolbarPositionOnCellSelection = function calculateToolbarPo
|
|
|
231
231
|
if (adjustedLeft + toolbarRect.width > wrapperBounds.width) {
|
|
232
232
|
adjustedLeft = Math.max(0, wrapperBounds.width - (toolbarRect.width + scrollbarWidth));
|
|
233
233
|
}
|
|
234
|
+
|
|
235
|
+
// If the toolbar is to be placed at the bottom of the selection (it happens when
|
|
236
|
+
// there is no sufficient space above) and the bottom of the selection is not in the view,
|
|
237
|
+
// place the toolbar at the bottom of the visible part of selection
|
|
238
|
+
if (selection.isColSelection() && top + toolbarRect.height > wrapperBounds.bottom && fg('platform_editor_controls_patch_2')) {
|
|
239
|
+
top = top - (top - wrapperBounds.bottom) - (toolbarRect.height + 2 * cellSelectionToolbarOffsetTop);
|
|
240
|
+
}
|
|
234
241
|
return {
|
|
235
242
|
top: top - wrapperBounds.top + scrollWrapper.scrollTop,
|
|
236
243
|
left: adjustedLeft
|
|
@@ -13,6 +13,13 @@ export type AIUnifiedCommonAttributes = {
|
|
|
13
13
|
isAIFeature: 1;
|
|
14
14
|
aiExperienceName?: string;
|
|
15
15
|
traceIds?: string[];
|
|
16
|
+
invokedFrom?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Confidence score will be used passed in analytics events.
|
|
19
|
+
* It is currently only set when "Improve writing" is triggered from the
|
|
20
|
+
* "Improve writing" nudge.
|
|
21
|
+
*/
|
|
22
|
+
confidenceScore?: number;
|
|
16
23
|
};
|
|
17
24
|
type AIUnifiedAgentAttributes = {
|
|
18
25
|
agentName?: string;
|
|
@@ -17,9 +17,5 @@ export type SelectCellAEP = SelectAEP<ACTION_SUBJECT_ID.CELL, {
|
|
|
17
17
|
export type SelectTableAEP = SelectAEP<ACTION_SUBJECT_ID.TABLE, {
|
|
18
18
|
localId: string;
|
|
19
19
|
}>;
|
|
20
|
-
export type
|
|
21
|
-
followedBy?: string;
|
|
22
|
-
fromDepth?: number;
|
|
23
|
-
}, undefined>;
|
|
24
|
-
export type SelectionEventPayload = SelectNodeAEP | SelectRangeAEP | SelectAllAEP | SelectAllNodeAEP | SelectCellAEP | SelectTableAEP;
|
|
20
|
+
export type SelectionEventPayload = SelectNodeAEP | SelectRangeAEP | SelectAllAEP | SelectCellAEP | SelectTableAEP;
|
|
25
21
|
export {};
|
|
@@ -90,7 +90,6 @@ export declare const toggleTaskItemCheckbox: Keymap;
|
|
|
90
90
|
export declare const selectRow: Keymap[];
|
|
91
91
|
export declare const selectColumn: Keymap[];
|
|
92
92
|
export declare const selectTable: Keymap;
|
|
93
|
-
export declare const selectNode: Keymap;
|
|
94
93
|
export declare const increaseMediaSize: Keymap;
|
|
95
94
|
export declare const decreaseMediaSize: Keymap;
|
|
96
95
|
export declare const activateVideoControls: Keymap;
|
|
@@ -13,6 +13,13 @@ export type AIUnifiedCommonAttributes = {
|
|
|
13
13
|
isAIFeature: 1;
|
|
14
14
|
aiExperienceName?: string;
|
|
15
15
|
traceIds?: string[];
|
|
16
|
+
invokedFrom?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Confidence score will be used passed in analytics events.
|
|
19
|
+
* It is currently only set when "Improve writing" is triggered from the
|
|
20
|
+
* "Improve writing" nudge.
|
|
21
|
+
*/
|
|
22
|
+
confidenceScore?: number;
|
|
16
23
|
};
|
|
17
24
|
type AIUnifiedAgentAttributes = {
|
|
18
25
|
agentName?: string;
|
|
@@ -17,9 +17,5 @@ export type SelectCellAEP = SelectAEP<ACTION_SUBJECT_ID.CELL, {
|
|
|
17
17
|
export type SelectTableAEP = SelectAEP<ACTION_SUBJECT_ID.TABLE, {
|
|
18
18
|
localId: string;
|
|
19
19
|
}>;
|
|
20
|
-
export type
|
|
21
|
-
followedBy?: string;
|
|
22
|
-
fromDepth?: number;
|
|
23
|
-
}, undefined>;
|
|
24
|
-
export type SelectionEventPayload = SelectNodeAEP | SelectRangeAEP | SelectAllAEP | SelectAllNodeAEP | SelectCellAEP | SelectTableAEP;
|
|
20
|
+
export type SelectionEventPayload = SelectNodeAEP | SelectRangeAEP | SelectAllAEP | SelectCellAEP | SelectTableAEP;
|
|
25
21
|
export {};
|
|
@@ -90,7 +90,6 @@ export declare const toggleTaskItemCheckbox: Keymap;
|
|
|
90
90
|
export declare const selectRow: Keymap[];
|
|
91
91
|
export declare const selectColumn: Keymap[];
|
|
92
92
|
export declare const selectTable: Keymap;
|
|
93
|
-
export declare const selectNode: Keymap;
|
|
94
93
|
export declare const increaseMediaSize: Keymap;
|
|
95
94
|
export declare const decreaseMediaSize: Keymap;
|
|
96
95
|
export declare const activateVideoControls: Keymap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.17.
|
|
3
|
+
"version": "102.17.2",
|
|
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/"
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"@atlaskit/onboarding": "^14.0.0",
|
|
154
154
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
155
155
|
"@atlaskit/popper": "^7.0.0",
|
|
156
|
-
"@atlaskit/primitives": "^14.
|
|
156
|
+
"@atlaskit/primitives": "^14.3.0",
|
|
157
157
|
"@atlaskit/profilecard": "^23.7.0",
|
|
158
158
|
"@atlaskit/section-message": "^8.2.0",
|
|
159
159
|
"@atlaskit/smart-card": "^36.2.0",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"@atlaskit/task-decision": "^19.1.0",
|
|
163
163
|
"@atlaskit/textfield": "^8.0.0",
|
|
164
164
|
"@atlaskit/tmp-editor-statsig": "^4.6.0",
|
|
165
|
-
"@atlaskit/tokens": "^4.
|
|
165
|
+
"@atlaskit/tokens": "^4.6.0",
|
|
166
166
|
"@atlaskit/tooltip": "^20.0.0",
|
|
167
167
|
"@atlaskit/width-detector": "^5.0.0",
|
|
168
168
|
"@babel/runtime": "^7.0.0",
|
|
@@ -337,6 +337,9 @@
|
|
|
337
337
|
},
|
|
338
338
|
"platform_editor_controls_patch_1": {
|
|
339
339
|
"type": "boolean"
|
|
340
|
+
},
|
|
341
|
+
"platform_editor_controls_patch_2": {
|
|
342
|
+
"type": "boolean"
|
|
340
343
|
}
|
|
341
344
|
}
|
|
342
345
|
}
|