@atlaskit/editor-common 84.0.3 → 84.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/analytics/types/context-menu-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/FloatingToolbar/Button.js +2 -5
- package/dist/es2019/analytics/types/context-menu-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/FloatingToolbar/Button.js +2 -5
- package/dist/esm/analytics/types/context-menu-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/FloatingToolbar/Button.js +2 -5
- package/dist/types/analytics/types/context-menu-events.d.ts +11 -0
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/context-menu-events.d.ts +11 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 84.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#117489](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117489)
|
|
8
|
+
[`6a9147dd7b5bf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6a9147dd7b5bf) -
|
|
9
|
+
NO-ISSUE Added context menu editor plugin to capture right-click customer behaviour in analytics
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 84.0.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#116612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116612)
|
|
20
|
+
[`51b4df656c8d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/51b4df656c8d0) -
|
|
21
|
+
Floating toolbar radiogroup markup, feature flag removal
|
|
22
|
+
|
|
3
23
|
## 84.0.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -238,6 +238,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
238
238
|
ACTION_SUBJECT["DROP_TARGET"] = "dropTarget";
|
|
239
239
|
ACTION_SUBJECT["DRAG"] = "drag";
|
|
240
240
|
ACTION_SUBJECT["ELEMENT"] = "element";
|
|
241
|
+
ACTION_SUBJECT["CONTEXT_MENU"] = "contextMenu";
|
|
241
242
|
return ACTION_SUBJECT;
|
|
242
243
|
}({});
|
|
243
244
|
var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -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 && Object.prototype.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 = "84.0
|
|
20
|
+
var packageVersion = "84.1.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
|
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "84.0
|
|
23
|
+
var packageVersion = "84.1.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
14
13
|
var _styles = require("./styles");
|
|
15
14
|
var _excluded = ["buttonStyles"];
|
|
@@ -48,9 +47,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
48
47
|
var customSpacing = iconOnly ? _styles.iconOnlySpacing : {};
|
|
49
48
|
var isButtonPressed = ariaHasPopup ? undefined : selected;
|
|
50
49
|
var ariaChecked = isRadioButton ? isButtonPressed : undefined;
|
|
51
|
-
var ariaCheckedWithFF = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
|
|
52
50
|
var ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
53
|
-
var ariaPressedWithFF = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
|
|
54
51
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default
|
|
55
52
|
// Only fallback to title for tooltip if title is not shown
|
|
56
53
|
, {
|
|
@@ -78,8 +75,8 @@ var _default = exports.default = function _default(_ref) {
|
|
|
78
75
|
}, rest);
|
|
79
76
|
},
|
|
80
77
|
"aria-label": ariaLabel || title,
|
|
81
|
-
"aria-pressed":
|
|
82
|
-
"aria-checked":
|
|
78
|
+
"aria-pressed": ariaPressed,
|
|
79
|
+
"aria-checked": ariaChecked,
|
|
83
80
|
role: isRadioButton ? 'radio' : undefined,
|
|
84
81
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
85
82
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -232,6 +232,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
232
232
|
ACTION_SUBJECT["DROP_TARGET"] = "dropTarget";
|
|
233
233
|
ACTION_SUBJECT["DRAG"] = "drag";
|
|
234
234
|
ACTION_SUBJECT["ELEMENT"] = "element";
|
|
235
|
+
ACTION_SUBJECT["CONTEXT_MENU"] = "contextMenu";
|
|
235
236
|
return ACTION_SUBJECT;
|
|
236
237
|
}({});
|
|
237
238
|
export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -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 = "84.0
|
|
4
|
+
const packageVersion = "84.1.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -9,7 +9,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
9
9
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "84.0
|
|
12
|
+
const packageVersion = "84.1.0";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
3
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
4
|
import { getButtonStyles, iconOnlySpacing } from './styles';
|
|
6
5
|
export default (({
|
|
@@ -35,9 +34,7 @@ export default (({
|
|
|
35
34
|
const customSpacing = iconOnly ? iconOnlySpacing : {};
|
|
36
35
|
const isButtonPressed = ariaHasPopup ? undefined : selected;
|
|
37
36
|
const ariaChecked = isRadioButton ? isButtonPressed : undefined;
|
|
38
|
-
const ariaCheckedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
|
|
39
37
|
const ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
40
|
-
const ariaPressedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
|
|
41
38
|
return /*#__PURE__*/React.createElement(Tooltip
|
|
42
39
|
// Only fallback to title for tooltip if title is not shown
|
|
43
40
|
, {
|
|
@@ -71,8 +68,8 @@ export default (({
|
|
|
71
68
|
};
|
|
72
69
|
},
|
|
73
70
|
"aria-label": ariaLabel || title,
|
|
74
|
-
"aria-pressed":
|
|
75
|
-
"aria-checked":
|
|
71
|
+
"aria-pressed": ariaPressed,
|
|
72
|
+
"aria-checked": ariaChecked,
|
|
76
73
|
role: isRadioButton ? 'radio' : undefined,
|
|
77
74
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
78
75
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -232,6 +232,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
232
232
|
ACTION_SUBJECT["DROP_TARGET"] = "dropTarget";
|
|
233
233
|
ACTION_SUBJECT["DRAG"] = "drag";
|
|
234
234
|
ACTION_SUBJECT["ELEMENT"] = "element";
|
|
235
|
+
ACTION_SUBJECT["CONTEXT_MENU"] = "contextMenu";
|
|
235
236
|
return ACTION_SUBJECT;
|
|
236
237
|
}({});
|
|
237
238
|
export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -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 = "84.0
|
|
10
|
+
var packageVersion = "84.1.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "84.0
|
|
20
|
+
var packageVersion = "84.1.0";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -5,7 +5,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
5
5
|
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) { _defineProperty(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; }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
8
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
9
|
import { getButtonStyles, iconOnlySpacing } from './styles';
|
|
11
10
|
export default (function (_ref) {
|
|
@@ -41,9 +40,7 @@ export default (function (_ref) {
|
|
|
41
40
|
var customSpacing = iconOnly ? iconOnlySpacing : {};
|
|
42
41
|
var isButtonPressed = ariaHasPopup ? undefined : selected;
|
|
43
42
|
var ariaChecked = isRadioButton ? isButtonPressed : undefined;
|
|
44
|
-
var ariaCheckedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
|
|
45
43
|
var ariaPressed = isRadioButton ? undefined : isButtonPressed;
|
|
46
|
-
var ariaPressedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
|
|
47
44
|
return /*#__PURE__*/React.createElement(Tooltip
|
|
48
45
|
// Only fallback to title for tooltip if title is not shown
|
|
49
46
|
, {
|
|
@@ -71,8 +68,8 @@ export default (function (_ref) {
|
|
|
71
68
|
}, rest);
|
|
72
69
|
},
|
|
73
70
|
"aria-label": ariaLabel || title,
|
|
74
|
-
"aria-pressed":
|
|
75
|
-
"aria-checked":
|
|
71
|
+
"aria-pressed": ariaPressed,
|
|
72
|
+
"aria-checked": ariaChecked,
|
|
76
73
|
role: isRadioButton ? 'radio' : undefined,
|
|
77
74
|
"aria-expanded": ariaHasPopup ? selected : undefined,
|
|
78
75
|
"aria-controls": ariaHasPopup ? areaControls : undefined,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type ContextMenuOpenAEP = TrackAEP<ACTION.OPENED, ACTION_SUBJECT.CONTEXT_MENU, undefined, {
|
|
4
|
+
button: number;
|
|
5
|
+
altKey: boolean;
|
|
6
|
+
ctrlKey: boolean;
|
|
7
|
+
shiftKey: boolean;
|
|
8
|
+
metaKey: boolean;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
export type ContextMenuEventPayload = ContextMenuOpenAEP;
|
|
11
|
+
export {};
|
|
@@ -235,7 +235,8 @@ export declare enum ACTION_SUBJECT {
|
|
|
235
235
|
BODIED_EXTENSION = "bodiedExtension",
|
|
236
236
|
DROP_TARGET = "dropTarget",
|
|
237
237
|
DRAG = "drag",
|
|
238
|
-
ELEMENT = "element"
|
|
238
|
+
ELEMENT = "element",
|
|
239
|
+
CONTEXT_MENU = "contextMenu"
|
|
239
240
|
}
|
|
240
241
|
export declare enum ACTION_SUBJECT_ID {
|
|
241
242
|
ACTION = "action",
|
|
@@ -5,6 +5,7 @@ import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
6
6
|
import type { AvatarEventPayload } from './avatar';
|
|
7
7
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
8
|
+
import type { ContextMenuEventPayload } from './context-menu-events';
|
|
8
9
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
9
10
|
import type { DatasourceClickedPayload } from './datasource-clicked-events';
|
|
10
11
|
import type { DateEventPayload } from './date-events';
|
|
@@ -40,7 +41,7 @@ export type SimplifiedNode = {
|
|
|
40
41
|
marks?: string[];
|
|
41
42
|
content?: SimplifiedNode[];
|
|
42
43
|
};
|
|
43
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload;
|
|
44
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload;
|
|
44
45
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
45
46
|
previousColor: string;
|
|
46
47
|
newColor: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type ContextMenuOpenAEP = TrackAEP<ACTION.OPENED, ACTION_SUBJECT.CONTEXT_MENU, undefined, {
|
|
4
|
+
button: number;
|
|
5
|
+
altKey: boolean;
|
|
6
|
+
ctrlKey: boolean;
|
|
7
|
+
shiftKey: boolean;
|
|
8
|
+
metaKey: boolean;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
export type ContextMenuEventPayload = ContextMenuOpenAEP;
|
|
11
|
+
export {};
|
|
@@ -235,7 +235,8 @@ export declare enum ACTION_SUBJECT {
|
|
|
235
235
|
BODIED_EXTENSION = "bodiedExtension",
|
|
236
236
|
DROP_TARGET = "dropTarget",
|
|
237
237
|
DRAG = "drag",
|
|
238
|
-
ELEMENT = "element"
|
|
238
|
+
ELEMENT = "element",
|
|
239
|
+
CONTEXT_MENU = "contextMenu"
|
|
239
240
|
}
|
|
240
241
|
export declare enum ACTION_SUBJECT_ID {
|
|
241
242
|
ACTION = "action",
|
|
@@ -5,6 +5,7 @@ import type { NewCollabSyncUpErrorAttributes } from '../../collab';
|
|
|
5
5
|
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
|
|
6
6
|
import type { AvatarEventPayload } from './avatar';
|
|
7
7
|
import type { ConfigPanelEventPayload } from './config-panel-events';
|
|
8
|
+
import type { ContextMenuEventPayload } from './context-menu-events';
|
|
8
9
|
import type { CutCopyEventPayload } from './cut-copy-events';
|
|
9
10
|
import type { DatasourceClickedPayload } from './datasource-clicked-events';
|
|
10
11
|
import type { DateEventPayload } from './date-events';
|
|
@@ -40,7 +41,7 @@ export type SimplifiedNode = {
|
|
|
40
41
|
marks?: string[];
|
|
41
42
|
content?: SimplifiedNode[];
|
|
42
43
|
};
|
|
43
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload;
|
|
44
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload;
|
|
44
45
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
45
46
|
previousColor: string;
|
|
46
47
|
newColor: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "84.0
|
|
3
|
+
"version": "84.1.0",
|
|
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/"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
104
104
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
105
105
|
"@atlaskit/atlassian-context": "^0.0.0",
|
|
106
|
-
"@atlaskit/button": "^18.
|
|
106
|
+
"@atlaskit/button": "^18.2.0",
|
|
107
107
|
"@atlaskit/code": "^15.4.0",
|
|
108
108
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
109
109
|
"@atlaskit/custom-steps": "^0.4.0",
|
|
@@ -231,9 +231,6 @@
|
|
|
231
231
|
"platform.editor.resizer.prevent-contenteditable": {
|
|
232
232
|
"type": "boolean"
|
|
233
233
|
},
|
|
234
|
-
"platform.editor.a11y-floating-toolbar-markup_vexmo": {
|
|
235
|
-
"type": "boolean"
|
|
236
|
-
},
|
|
237
234
|
"platform.editor.inline_extension.extended_lcqdn": {
|
|
238
235
|
"type": "boolean"
|
|
239
236
|
},
|