@atlaskit/editor-common 112.7.1 → 112.7.3
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 +16 -0
- package/dist/cjs/analytics/types/ai-autocomplete-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +2 -2
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +9 -4
- package/dist/cjs/utils/commands.js +3 -3
- package/dist/es2019/analytics/types/ai-autocomplete-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Popup/index.js +2 -2
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +9 -4
- package/dist/es2019/utils/commands.js +3 -3
- package/dist/esm/analytics/types/ai-autocomplete-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +2 -2
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +9 -4
- package/dist/esm/utils/commands.js +3 -3
- package/dist/types/analytics/types/ai-autocomplete-events.d.ts +8 -0
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/ui/Popup/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/ai-autocomplete-events.d.ts +8 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/ui/Popup/index.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e152aabe13c9a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e152aabe13c9a) -
|
|
8
|
+
Add analytics events to Autocomplete plugin
|
|
9
|
+
- [`9ed32aea2c1d3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ed32aea2c1d3) -
|
|
10
|
+
Replace feature experiment util with cross platform alternative for platform_editor_block_menu
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 112.7.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 112.7.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -364,6 +364,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
364
364
|
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
365
365
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
366
366
|
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
367
|
+
ACTION_SUBJECT["AI_AUTOCOMPLETE"] = "aiAutocomplete";
|
|
367
368
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
368
369
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
369
370
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
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); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "
|
|
22
|
+
var packageVersion = "112.7.2";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -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 = "112.7.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -17,7 +17,7 @@ var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
|
17
17
|
var _reactDom = require("react-dom");
|
|
18
18
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
|
-
var
|
|
20
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
21
|
var _utils = require("./utils");
|
|
22
22
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
23
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -71,7 +71,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
71
71
|
returnFocusOnDeactivate: false
|
|
72
72
|
};
|
|
73
73
|
var trapConfig = typeof _this.props.focusTrap === 'boolean' ? defaultTrapConfig : _objectSpread(_objectSpread({}, defaultTrapConfig), _this.props.focusTrap);
|
|
74
|
-
_this.focusTrap = (0, _focusTrap.default)(popup, (0,
|
|
74
|
+
_this.focusTrap = (0, _focusTrap.default)(popup, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) ? trapConfig : defaultTrapConfig);
|
|
75
75
|
_this.focusTrap.activate();
|
|
76
76
|
}));
|
|
77
77
|
return _this;
|
|
@@ -16,7 +16,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
16
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
18
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
20
19
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
20
|
var _ReactEditorViewContext = _interopRequireDefault(require("./ReactEditorViewContext"));
|
|
22
21
|
var _excluded = ["captureClick", "closeOnTab", "handleBackspaceDeleteKeydown", "handleClickOutside", "handleEnterKeydown", "handleEscapeKeydown", "handleKeyDown"];
|
|
@@ -74,7 +73,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
74
73
|
} else if ((evt.code === 'Delete' || evt.code === 'Backspace') && _this.props.handleBackspaceDeleteKeydown) {
|
|
75
74
|
_this.props.handleBackspaceDeleteKeydown(evt);
|
|
76
75
|
}
|
|
77
|
-
if ((0,
|
|
76
|
+
if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
|
|
77
|
+
exposure: true
|
|
78
|
+
})) {
|
|
78
79
|
var _this$props$handleKey, _this$props;
|
|
79
80
|
(_this$props$handleKey = (_this$props = _this.props).handleKeyDown) === null || _this$props$handleKey === void 0 || _this$props$handleKey.call(_this$props, evt);
|
|
80
81
|
}
|
|
@@ -93,7 +94,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
93
94
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
94
95
|
document.addEventListener('click', this.handleClick, options);
|
|
95
96
|
}
|
|
96
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && (0,
|
|
97
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
|
|
98
|
+
exposure: true
|
|
99
|
+
})) {
|
|
97
100
|
var _this$props$editorRef;
|
|
98
101
|
// Attached event to the menu so that 'ESC' events from the opened menu also will be handled.
|
|
99
102
|
// Ignored via go/ees005
|
|
@@ -118,7 +121,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
118
121
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
119
122
|
document.removeEventListener('click', this.handleClick, options);
|
|
120
123
|
}
|
|
121
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && (0,
|
|
124
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
|
|
125
|
+
exposure: true
|
|
126
|
+
})) {
|
|
122
127
|
var _this$props$editorRef2;
|
|
123
128
|
// Ignored via go/ees005
|
|
124
129
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -15,7 +15,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
15
15
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
16
16
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
17
17
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
|
-
var
|
|
18
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
19
19
|
var _analytics = require("../analytics");
|
|
20
20
|
var _editorAnalytics = require("../editor-analytics");
|
|
21
21
|
var _selection = require("../selection");
|
|
@@ -193,7 +193,7 @@ function canMoveUp(state) {
|
|
|
193
193
|
if (selection instanceof _state.NodeSelection && (0, _nodes.isMediaNode)(selection.node)) {
|
|
194
194
|
return true;
|
|
195
195
|
}
|
|
196
|
-
if (selection instanceof _state.TextSelection && !(0,
|
|
196
|
+
if (selection instanceof _state.TextSelection && !(0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
|
|
197
197
|
if (!selection.empty) {
|
|
198
198
|
return true;
|
|
199
199
|
}
|
|
@@ -209,7 +209,7 @@ function canMoveDown(state) {
|
|
|
209
209
|
if (selection instanceof _state.NodeSelection && (0, _nodes.isMediaNode)(selection.node)) {
|
|
210
210
|
return true;
|
|
211
211
|
}
|
|
212
|
-
if (selection instanceof _state.TextSelection && !(0,
|
|
212
|
+
if (selection instanceof _state.TextSelection && !(0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
|
|
213
213
|
if (!selection.empty) {
|
|
214
214
|
return true;
|
|
215
215
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -358,6 +358,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
358
358
|
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
359
359
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
360
360
|
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
361
|
+
ACTION_SUBJECT["AI_AUTOCOMPLETE"] = "aiAutocomplete";
|
|
361
362
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
362
363
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
363
364
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "112.7.2";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -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 = "112.7.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -5,7 +5,7 @@ import rafSchedule from 'raf-schd';
|
|
|
5
5
|
import { createPortal, flushSync } from 'react-dom';
|
|
6
6
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
import {
|
|
8
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
9
9
|
import { calculatePlacement, calculatePosition, findOverflowScrollParent, validatePosition } from './utils';
|
|
10
10
|
// Ignored via go/ees005
|
|
11
11
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -51,7 +51,7 @@ export default class Popup extends React.Component {
|
|
|
51
51
|
...defaultTrapConfig,
|
|
52
52
|
...this.props.focusTrap
|
|
53
53
|
};
|
|
54
|
-
this.focusTrap = createFocusTrap(popup,
|
|
54
|
+
this.focusTrap = createFocusTrap(popup, editorExperiment('platform_editor_block_menu', true) ? trapConfig : defaultTrapConfig);
|
|
55
55
|
this.focusTrap.activate();
|
|
56
56
|
}));
|
|
57
57
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
6
5
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
@@ -48,7 +47,9 @@ class WithOutsideClick extends PureComponent {
|
|
|
48
47
|
} else if ((evt.code === 'Delete' || evt.code === 'Backspace') && this.props.handleBackspaceDeleteKeydown) {
|
|
49
48
|
this.props.handleBackspaceDeleteKeydown(evt);
|
|
50
49
|
}
|
|
51
|
-
if (
|
|
50
|
+
if (editorExperiment('platform_editor_block_menu', true, {
|
|
51
|
+
exposure: true
|
|
52
|
+
})) {
|
|
52
53
|
var _this$props$handleKey, _this$props;
|
|
53
54
|
(_this$props$handleKey = (_this$props = this.props).handleKeyDown) === null || _this$props$handleKey === void 0 ? void 0 : _this$props$handleKey.call(_this$props, evt);
|
|
54
55
|
}
|
|
@@ -63,7 +64,9 @@ class WithOutsideClick extends PureComponent {
|
|
|
63
64
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
64
65
|
document.addEventListener('click', this.handleClick, options);
|
|
65
66
|
}
|
|
66
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown &&
|
|
67
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && editorExperiment('platform_editor_block_menu', true, {
|
|
68
|
+
exposure: true
|
|
69
|
+
})) {
|
|
67
70
|
var _this$props$editorRef;
|
|
68
71
|
// Attached event to the menu so that 'ESC' events from the opened menu also will be handled.
|
|
69
72
|
// Ignored via go/ees005
|
|
@@ -86,7 +89,9 @@ class WithOutsideClick extends PureComponent {
|
|
|
86
89
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
87
90
|
document.removeEventListener('click', this.handleClick, options);
|
|
88
91
|
}
|
|
89
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown &&
|
|
92
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && editorExperiment('platform_editor_block_menu', true, {
|
|
93
|
+
exposure: true
|
|
94
|
+
})) {
|
|
90
95
|
var _this$props$editorRef2;
|
|
91
96
|
// Ignored via go/ees005
|
|
92
97
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import {
|
|
4
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
6
6
|
import { withAnalytics } from '../editor-analytics';
|
|
7
7
|
import { GapCursorSelection } from '../selection';
|
|
@@ -186,7 +186,7 @@ function canMoveUp(state) {
|
|
|
186
186
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
|
-
if (selection instanceof TextSelection && !
|
|
189
|
+
if (selection instanceof TextSelection && !editorExperiment('platform_editor_block_menu', true)) {
|
|
190
190
|
if (!selection.empty) {
|
|
191
191
|
return true;
|
|
192
192
|
}
|
|
@@ -204,7 +204,7 @@ function canMoveDown(state) {
|
|
|
204
204
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
205
205
|
return true;
|
|
206
206
|
}
|
|
207
|
-
if (selection instanceof TextSelection && !
|
|
207
|
+
if (selection instanceof TextSelection && !editorExperiment('platform_editor_block_menu', true)) {
|
|
208
208
|
if (!selection.empty) {
|
|
209
209
|
return true;
|
|
210
210
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -358,6 +358,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
358
358
|
ACTION_SUBJECT["EDITOR_PLUGIN_SELECTION_EXTENSION"] = "editorPluginSelectionExtension";
|
|
359
359
|
ACTION_SUBJECT["AI_DEFINITIONS"] = "aiDefinitions";
|
|
360
360
|
ACTION_SUBJECT["AI_QUICK_PROMPT"] = "aiQuickPrompt";
|
|
361
|
+
ACTION_SUBJECT["AI_AUTOCOMPLETE"] = "aiAutocomplete";
|
|
361
362
|
ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
|
|
362
363
|
ACTION_SUBJECT["ALIGNMENT"] = "alignment";
|
|
363
364
|
ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "
|
|
13
|
+
var packageVersion = "112.7.2";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -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 = "112.7.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -14,7 +14,7 @@ import rafSchedule from 'raf-schd';
|
|
|
14
14
|
import { createPortal, flushSync } from 'react-dom';
|
|
15
15
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
-
import {
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
18
|
import { calculatePlacement, calculatePosition as _calculatePosition, findOverflowScrollParent, validatePosition } from './utils';
|
|
19
19
|
// Ignored via go/ees005
|
|
20
20
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -64,7 +64,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
|
|
|
64
64
|
returnFocusOnDeactivate: false
|
|
65
65
|
};
|
|
66
66
|
var trapConfig = typeof _this.props.focusTrap === 'boolean' ? defaultTrapConfig : _objectSpread(_objectSpread({}, defaultTrapConfig), _this.props.focusTrap);
|
|
67
|
-
_this.focusTrap = createFocusTrap(popup,
|
|
67
|
+
_this.focusTrap = createFocusTrap(popup, editorExperiment('platform_editor_block_menu', true) ? trapConfig : defaultTrapConfig);
|
|
68
68
|
_this.focusTrap.activate();
|
|
69
69
|
}));
|
|
70
70
|
return _this;
|
|
@@ -10,7 +10,6 @@ var _excluded = ["captureClick", "closeOnTab", "handleBackspaceDeleteKeydown", "
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
13
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
14
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
16
15
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
@@ -64,7 +63,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
64
63
|
} else if ((evt.code === 'Delete' || evt.code === 'Backspace') && _this.props.handleBackspaceDeleteKeydown) {
|
|
65
64
|
_this.props.handleBackspaceDeleteKeydown(evt);
|
|
66
65
|
}
|
|
67
|
-
if (
|
|
66
|
+
if (editorExperiment('platform_editor_block_menu', true, {
|
|
67
|
+
exposure: true
|
|
68
|
+
})) {
|
|
68
69
|
var _this$props$handleKey, _this$props;
|
|
69
70
|
(_this$props$handleKey = (_this$props = _this.props).handleKeyDown) === null || _this$props$handleKey === void 0 || _this$props$handleKey.call(_this$props, evt);
|
|
70
71
|
}
|
|
@@ -83,7 +84,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
83
84
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
84
85
|
document.addEventListener('click', this.handleClick, options);
|
|
85
86
|
}
|
|
86
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown &&
|
|
87
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && editorExperiment('platform_editor_block_menu', true, {
|
|
88
|
+
exposure: true
|
|
89
|
+
})) {
|
|
87
90
|
var _this$props$editorRef;
|
|
88
91
|
// Attached event to the menu so that 'ESC' events from the opened menu also will be handled.
|
|
89
92
|
// Ignored via go/ees005
|
|
@@ -108,7 +111,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
|
|
|
108
111
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
109
112
|
document.removeEventListener('click', this.handleClick, options);
|
|
110
113
|
}
|
|
111
|
-
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown &&
|
|
114
|
+
if (this.props.handleEscapeKeydown || this.props.handleBackspaceDeleteKeydown || this.props.handleKeyDown && editorExperiment('platform_editor_block_menu', true, {
|
|
115
|
+
exposure: true
|
|
116
|
+
})) {
|
|
112
117
|
var _this$props$editorRef2;
|
|
113
118
|
// Ignored via go/ees005
|
|
114
119
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import {
|
|
5
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
7
7
|
import { withAnalytics } from '../editor-analytics';
|
|
8
8
|
import { GapCursorSelection } from '../selection';
|
|
@@ -180,7 +180,7 @@ function canMoveUp(state) {
|
|
|
180
180
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
|
-
if (selection instanceof TextSelection && !
|
|
183
|
+
if (selection instanceof TextSelection && !editorExperiment('platform_editor_block_menu', true)) {
|
|
184
184
|
if (!selection.empty) {
|
|
185
185
|
return true;
|
|
186
186
|
}
|
|
@@ -196,7 +196,7 @@ function canMoveDown(state) {
|
|
|
196
196
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
197
197
|
return true;
|
|
198
198
|
}
|
|
199
|
-
if (selection instanceof TextSelection && !
|
|
199
|
+
if (selection instanceof TextSelection && !editorExperiment('platform_editor_block_menu', true)) {
|
|
200
200
|
if (!selection.empty) {
|
|
201
201
|
return true;
|
|
202
202
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type AiAutocompleteInvokedAEP = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
4
|
+
type AiAutocompleteViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
5
|
+
type AiAutocompleteAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
6
|
+
type AiAutocompleteRejectedAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
7
|
+
export type AiAutocompleteEventPayload = AiAutocompleteInvokedAEP | AiAutocompleteViewedAEP | AiAutocompleteAcceptedAEP | AiAutocompleteRejectedAEP;
|
|
8
|
+
export {};
|
|
@@ -350,6 +350,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
350
350
|
EDITOR_PLUGIN_SELECTION_EXTENSION = "editorPluginSelectionExtension",
|
|
351
351
|
AI_DEFINITIONS = "aiDefinitions",
|
|
352
352
|
AI_QUICK_PROMPT = "aiQuickPrompt",
|
|
353
|
+
AI_AUTOCOMPLETE = "aiAutocomplete",
|
|
353
354
|
USER_PREFERENCES = "userPreferences",
|
|
354
355
|
ALIGNMENT = "alignment",
|
|
355
356
|
OFFLINE_EDITING = "offlineEditing",
|
|
@@ -4,6 +4,7 @@ import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
|
4
4
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
5
5
|
import type { FireAnalyticsEventOptions } from '../api';
|
|
6
6
|
import type { ActiveSessionEventPayload } from './activity-session-events';
|
|
7
|
+
import type { AiAutocompleteEventPayload } from './ai-autocomplete-events';
|
|
7
8
|
import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
|
|
8
9
|
import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
9
10
|
import type { AIEventPayload } from './ai-events';
|
|
@@ -67,7 +68,7 @@ export type SimplifiedNode = {
|
|
|
67
68
|
pos: number;
|
|
68
69
|
type: string;
|
|
69
70
|
};
|
|
70
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
71
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
71
72
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
72
73
|
newColor: string;
|
|
73
74
|
previousColor: string;
|
|
@@ -41,8 +41,8 @@ export default class Popup extends React.Component<Props, State> {
|
|
|
41
41
|
scrollParentElement: undefined | false | HTMLElement;
|
|
42
42
|
rafIds: Set<number>;
|
|
43
43
|
static defaultProps: {
|
|
44
|
-
offset: number[];
|
|
45
44
|
allowOutOfBound: boolean;
|
|
45
|
+
offset: number[];
|
|
46
46
|
};
|
|
47
47
|
state: State;
|
|
48
48
|
private popupRef;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type AiAutocompleteInvokedAEP = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
4
|
+
type AiAutocompleteViewedAEP = TrackAEP<ACTION.SUGGESTION_VIEWED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
5
|
+
type AiAutocompleteAcceptedAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
6
|
+
type AiAutocompleteRejectedAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.AI_AUTOCOMPLETE, undefined, undefined, undefined>;
|
|
7
|
+
export type AiAutocompleteEventPayload = AiAutocompleteInvokedAEP | AiAutocompleteViewedAEP | AiAutocompleteAcceptedAEP | AiAutocompleteRejectedAEP;
|
|
8
|
+
export {};
|
|
@@ -350,6 +350,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
350
350
|
EDITOR_PLUGIN_SELECTION_EXTENSION = "editorPluginSelectionExtension",
|
|
351
351
|
AI_DEFINITIONS = "aiDefinitions",
|
|
352
352
|
AI_QUICK_PROMPT = "aiQuickPrompt",
|
|
353
|
+
AI_AUTOCOMPLETE = "aiAutocomplete",
|
|
353
354
|
USER_PREFERENCES = "userPreferences",
|
|
354
355
|
ALIGNMENT = "alignment",
|
|
355
356
|
OFFLINE_EDITING = "offlineEditing",
|
|
@@ -4,6 +4,7 @@ import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
|
4
4
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
5
5
|
import type { FireAnalyticsEventOptions } from '../api';
|
|
6
6
|
import type { ActiveSessionEventPayload } from './activity-session-events';
|
|
7
|
+
import type { AiAutocompleteEventPayload } from './ai-autocomplete-events';
|
|
7
8
|
import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
|
|
8
9
|
import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
9
10
|
import type { AIEventPayload } from './ai-events';
|
|
@@ -67,7 +68,7 @@ export type SimplifiedNode = {
|
|
|
67
68
|
pos: number;
|
|
68
69
|
type: string;
|
|
69
70
|
};
|
|
70
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
71
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | PasteActionsMenuEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
71
72
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
72
73
|
newColor: string;
|
|
73
74
|
previousColor: string;
|
|
@@ -44,8 +44,8 @@ export default class Popup extends React.Component<Props, State> {
|
|
|
44
44
|
scrollParentElement: undefined | false | HTMLElement;
|
|
45
45
|
rafIds: Set<number>;
|
|
46
46
|
static defaultProps: {
|
|
47
|
-
offset: number[];
|
|
48
47
|
allowOutOfBound: boolean;
|
|
48
|
+
offset: number[];
|
|
49
49
|
};
|
|
50
50
|
state: State;
|
|
51
51
|
private popupRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "112.7.
|
|
3
|
+
"version": "112.7.3",
|
|
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/"
|
|
@@ -75,14 +75,14 @@
|
|
|
75
75
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
76
76
|
"@atlaskit/react-ufo": "^5.4.0",
|
|
77
77
|
"@atlaskit/section-message": "^8.12.0",
|
|
78
|
-
"@atlaskit/smart-card": "^43.
|
|
78
|
+
"@atlaskit/smart-card": "^43.27.0",
|
|
79
79
|
"@atlaskit/smart-user-picker": "^9.2.0",
|
|
80
80
|
"@atlaskit/spinner": "^19.0.0",
|
|
81
81
|
"@atlaskit/status": "^3.1.0",
|
|
82
82
|
"@atlaskit/task-decision": "^19.3.0",
|
|
83
83
|
"@atlaskit/textfield": "^8.2.0",
|
|
84
84
|
"@atlaskit/theme": "^22.0.0",
|
|
85
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
85
|
+
"@atlaskit/tmp-editor-statsig": "^43.0.0",
|
|
86
86
|
"@atlaskit/tokens": "^11.1.0",
|
|
87
87
|
"@atlaskit/tooltip": "^21.0.0",
|
|
88
88
|
"@atlaskit/width-detector": "^5.0.0",
|