@atlaskit/editor-common 116.40.2 → 116.42.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 +66 -0
- package/analytics/types/agent-edit-shimmer-events/package.json +10 -0
- package/dist/cjs/analytics/types/agent-edit-shimmer-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +1 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/vanilla-tooltip/index.js +10 -0
- package/dist/es2019/analytics/types/agent-edit-shimmer-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +1 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/vanilla-tooltip/index.js +10 -1
- package/dist/esm/analytics/types/agent-edit-shimmer-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +1 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/vanilla-tooltip/index.js +10 -0
- package/dist/types/analytics/types/agent-edit-shimmer-events.d.ts +14 -0
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +1 -7
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/block-menu/key.d.ts +5 -5
- package/dist/types/experiences/consts.d.ts +9 -9
- package/dist/types/extensions/combine-extension-providers.d.ts +2 -2
- package/dist/types/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.d.ts +1 -1
- package/dist/types/media-single/getBadgeSize.d.ts +1 -1
- package/dist/types/paste/md-plugins/linkify-md-plugin.d.ts +1 -1
- package/dist/types/paste/md-plugins/newline-md-plugin.d.ts +1 -1
- package/dist/types/paste/md-plugins/paragraph-md-plugin.d.ts +1 -1
- package/dist/types/provider-helpers/combine-providers.d.ts +2 -2
- package/dist/types/quick-insert/assets/index.d.ts +1 -1
- package/dist/types/resizer/BreakoutResizer.d.ts +1 -1
- package/dist/types/resizer/ResizerBreakoutModeLabel.d.ts +1 -1
- package/dist/types/styles/shared/calcTableWidth.d.ts +1 -1
- package/dist/types/styles/shared/headings.d.ts +1 -1
- package/dist/types/sync-block/SyncedBlocksSSRErrorCodeMap.d.ts +3 -3
- package/dist/types/toolbar/keys.d.ts +337 -337
- package/dist/types/toolbar/shouldShowPrimaryToolbar.d.ts +1 -1
- package/dist/types/toolbar/shouldShowSelectionToolbar.d.ts +1 -1
- package/dist/types/types/supported-browsers.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/Separator.d.ts +1 -1
- package/dist/types/ui-color/ColorPalette/Palettes/mapPaletteColor.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/user-preferences/user-preferences.d.ts +1 -1
- package/dist/types/utils/ADFStages.d.ts +2 -2
- package/dist/types/utils/breakout.d.ts +1 -1
- package/dist/types/utils/getNextBreakoutMode.d.ts +1 -1
- package/dist/types/utils/isSubSupType.d.ts +1 -1
- package/dist/types/utils/track-unsupported-content.d.ts +1 -1
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
- package/dist/types/vanilla-tooltip/index.d.ts +7 -1
- package/package.json +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.42.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`782360c1111dc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/782360c1111dc) -
|
|
8
|
+
Agent-edit shimmer review follow-ups (behind the default-OFF `platform_editor_agent_be_streaming`
|
|
9
|
+
experiment):
|
|
10
|
+
- Add a second shimmer phase: after the skeleton loader clears, the changed range shows a purple
|
|
11
|
+
"just edited" highlight (same colours as the editor AI "improve writing" in-editor highlight)
|
|
12
|
+
that eases in and out over its lifetime. The Rovo telepointer stays through both phases.
|
|
13
|
+
- The two phases are sized by independent experiment params: `shimmerDurationMs` (skeleton,
|
|
14
|
+
renamed from `durationMs`) and `highlightDurationMs` (highlight). `0` on either skips just that
|
|
15
|
+
phase, `0` on both shows nothing.
|
|
16
|
+
- Gate the agent-edit shimmer styles behind the experiment in both the emotion and compiled
|
|
17
|
+
`EditorContentContainer` style entries, using the no-exposure check on the hot render path.
|
|
18
|
+
- Add an `agentEditReceived` collab-provider analytics event, fired once per received transaction
|
|
19
|
+
that contains agent-authored steps, with non-PII attributes (agent ids, count, kinds,
|
|
20
|
+
agent/total step counts).
|
|
21
|
+
- Add an `agentEditShimmerNotShown` COLLAB operational analytics event for agent edits that apply
|
|
22
|
+
without the shimmer (`rebasedConcurrentEdit`, `nothingToShow`, `captureThrew`,
|
|
23
|
+
`tornDownMidAnimation`); neutral action + `reason`, non-PII attributes.
|
|
24
|
+
- Hoist the top-level block/position helpers in `agent-shimmer-ranges` to reusable module scope,
|
|
25
|
+
drop the redundant upper-bound clamp in `agent-shimmer-decorations`, and remove the empty
|
|
26
|
+
`@example` JSDoc tags added in the original PR.
|
|
27
|
+
|
|
28
|
+
`@atlaskit/editor-common` gains a new subpath export,
|
|
29
|
+
`@atlaskit/editor-common/analytics/types/agent-edit-shimmer-events`, exposing the
|
|
30
|
+
`agentEditShimmerNotShown` operational event types. Usage:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
34
|
+
import type { AgentEditShimmerNotShownReason } from '@atlaskit/editor-common/analytics/types/agent-edit-shimmer-events';
|
|
35
|
+
|
|
36
|
+
const reason: AgentEditShimmerNotShownReason = 'captureThrew';
|
|
37
|
+
editorAnalyticsApi?.fireAnalyticsEvent({
|
|
38
|
+
action: ACTION.AGENT_EDIT_SHIMMER_NOT_SHOWN,
|
|
39
|
+
actionSubject: ACTION_SUBJECT.COLLAB,
|
|
40
|
+
eventType: EVENT_TYPE.OPERATIONAL,
|
|
41
|
+
attributes: { reason },
|
|
42
|
+
});
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies
|
|
48
|
+
|
|
49
|
+
## 116.41.0
|
|
50
|
+
|
|
51
|
+
### Minor Changes
|
|
52
|
+
|
|
53
|
+
- [`a86fac88f3a5e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a86fac88f3a5e) -
|
|
54
|
+
Use lazy-loaded VanillaTooltip for emoji tooltips in the editor and render an ADS Tooltip
|
|
55
|
+
positioned above the emoji in the emoji element, gated behind the
|
|
56
|
+
platform_editor_emoji_hover_show_tooltip experiment.
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- [`c0fedda79b60e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0fedda79b60e) -
|
|
61
|
+
Clean up experiment `platform_editor_fix_a11y_tab_focus_insertion_menu`
|
|
62
|
+
- [`9d13e640f00d5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9d13e640f00d5) -
|
|
63
|
+
[EDITOR-8150] The `submitSuggestionFeedback` editor action now fires the canonical unified
|
|
64
|
+
`aiFeedback submitted` analytics event (with `aiFeedbackResult` up/down and the unified Editor AI
|
|
65
|
+
/ Suggested edits attributes) instead of a bespoke event, so suggestion feedback votes are
|
|
66
|
+
captured by the shared AI feedback pipeline.
|
|
67
|
+
- Updated dependencies
|
|
68
|
+
|
|
3
69
|
## 116.40.2
|
|
4
70
|
|
|
5
71
|
### Patch Changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/analytics/types/agent-edit-shimmer-events",
|
|
3
|
+
"main": "../../../dist/cjs/analytics/types/agent-edit-shimmer-events.js",
|
|
4
|
+
"module": "../../../dist/esm/analytics/types/agent-edit-shimmer-events.js",
|
|
5
|
+
"module:es2019": "../../../dist/es2019/analytics/types/agent-edit-shimmer-events.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../../../dist/types/analytics/types/agent-edit-shimmer-events.d.ts"
|
|
10
|
+
}
|
|
@@ -195,6 +195,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
195
195
|
ACTION["STEPS_TRACKED"] = "stepsTracked";
|
|
196
196
|
ACTION["ORGANIC_CHANGES_TRACKED"] = "organicChangesTracked";
|
|
197
197
|
ACTION["STEPS_FILTERED"] = "stepsFiltered";
|
|
198
|
+
ACTION["AGENT_EDIT_SHIMMER_NOT_SHOWN"] = "agentEditShimmerNotShown";
|
|
198
199
|
ACTION["CREATE_NOT_ALLOWED"] = "createNotAllowed";
|
|
199
200
|
ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED"] = "unsupportedContentLevelsTrackingSucceeded";
|
|
200
201
|
ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED"] = "unsupportedContentLevelsTrackingErrored";
|
|
@@ -437,12 +437,11 @@ function ElementItem(_ref6) {
|
|
|
437
437
|
role: role
|
|
438
438
|
// @ts-expect-error -- see A11Y-30538
|
|
439
439
|
,
|
|
440
|
-
tabIndex:
|
|
440
|
+
tabIndex: -1
|
|
441
441
|
}, (0, _react2.jsx)(ItemContent
|
|
442
442
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
443
443
|
, {
|
|
444
444
|
style: inlineMode ? null : itemStyleOverrides,
|
|
445
|
-
tabIndex: (0, _expValEquals.expValEquals)('platform_editor_fix_a11y_tab_focus_insertion_menu', 'isEnabled', true) ? undefined : 0,
|
|
446
445
|
title: title,
|
|
447
446
|
description: description,
|
|
448
447
|
keyshortcut: keyshortcut,
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "116.
|
|
31
|
+
var packageVersion = "116.41.0";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// 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 = "116.
|
|
27
|
+
var packageVersion = "116.41.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -43,6 +43,13 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
|
|
|
43
43
|
className) {
|
|
44
44
|
var _this = this;
|
|
45
45
|
var timeout = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300;
|
|
46
|
+
var
|
|
47
|
+
/**
|
|
48
|
+
* Optional inline styles to apply directly to the tooltip element.
|
|
49
|
+
* Useful when the tooltip is rendered in the browser's top layer (via Popover API),
|
|
50
|
+
* where ancestor CSS selectors cannot reach it.
|
|
51
|
+
*/
|
|
52
|
+
styles = arguments.length > 5 ? arguments[5] : undefined;
|
|
46
53
|
(0, _classCallCheck2.default)(this, VanillaTooltip);
|
|
47
54
|
(0, _defineProperty2.default)(this, "listeners", []);
|
|
48
55
|
(0, _defineProperty2.default)(this, "shouldHidePopover", false);
|
|
@@ -55,6 +62,9 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
|
|
|
55
62
|
tooltip.className = className;
|
|
56
63
|
tooltip.id = id;
|
|
57
64
|
tooltip.textContent = content;
|
|
65
|
+
if (styles) {
|
|
66
|
+
Object.assign(tooltip.style, styles);
|
|
67
|
+
}
|
|
58
68
|
this.tooltip = tooltip;
|
|
59
69
|
|
|
60
70
|
// Button preparation
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -191,6 +191,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
191
191
|
ACTION["STEPS_TRACKED"] = "stepsTracked";
|
|
192
192
|
ACTION["ORGANIC_CHANGES_TRACKED"] = "organicChangesTracked";
|
|
193
193
|
ACTION["STEPS_FILTERED"] = "stepsFiltered";
|
|
194
|
+
ACTION["AGENT_EDIT_SHIMMER_NOT_SHOWN"] = "agentEditShimmerNotShown";
|
|
194
195
|
ACTION["CREATE_NOT_ALLOWED"] = "createNotAllowed";
|
|
195
196
|
ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED"] = "unsupportedContentLevelsTrackingSucceeded";
|
|
196
197
|
ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED"] = "unsupportedContentLevelsTrackingErrored";
|
|
@@ -430,12 +430,11 @@ export function ElementItem({
|
|
|
430
430
|
role: role
|
|
431
431
|
// @ts-expect-error -- see A11Y-30538
|
|
432
432
|
,
|
|
433
|
-
tabIndex:
|
|
433
|
+
tabIndex: -1
|
|
434
434
|
}, jsx(ItemContent
|
|
435
435
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
436
436
|
, {
|
|
437
437
|
style: inlineMode ? null : itemStyleOverrides,
|
|
438
|
-
tabIndex: expValEquals('platform_editor_fix_a11y_tab_focus_insertion_menu', 'isEnabled', true) ? undefined : 0,
|
|
439
438
|
title: title,
|
|
440
439
|
description: description,
|
|
441
440
|
keyshortcut: keyshortcut,
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "116.
|
|
17
|
+
const packageVersion = "116.41.0";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// 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 = "116.
|
|
17
|
+
const packageVersion = "116.41.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -29,7 +29,13 @@ export class VanillaTooltip {
|
|
|
29
29
|
/**
|
|
30
30
|
* Class Name – used for styling.
|
|
31
31
|
*/
|
|
32
|
-
className, timeout = 300
|
|
32
|
+
className, timeout = 300,
|
|
33
|
+
/**
|
|
34
|
+
* Optional inline styles to apply directly to the tooltip element.
|
|
35
|
+
* Useful when the tooltip is rendered in the browser's top layer (via Popover API),
|
|
36
|
+
* where ancestor CSS selectors cannot reach it.
|
|
37
|
+
*/
|
|
38
|
+
styles) {
|
|
33
39
|
_defineProperty(this, "listeners", []);
|
|
34
40
|
_defineProperty(this, "shouldHidePopover", false);
|
|
35
41
|
_defineProperty(this, "isDisplayed", false);
|
|
@@ -41,6 +47,9 @@ export class VanillaTooltip {
|
|
|
41
47
|
tooltip.className = className;
|
|
42
48
|
tooltip.id = id;
|
|
43
49
|
tooltip.textContent = content;
|
|
50
|
+
if (styles) {
|
|
51
|
+
Object.assign(tooltip.style, styles);
|
|
52
|
+
}
|
|
44
53
|
this.tooltip = tooltip;
|
|
45
54
|
|
|
46
55
|
// Button preparation
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -191,6 +191,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
191
191
|
ACTION["STEPS_TRACKED"] = "stepsTracked";
|
|
192
192
|
ACTION["ORGANIC_CHANGES_TRACKED"] = "organicChangesTracked";
|
|
193
193
|
ACTION["STEPS_FILTERED"] = "stepsFiltered";
|
|
194
|
+
ACTION["AGENT_EDIT_SHIMMER_NOT_SHOWN"] = "agentEditShimmerNotShown";
|
|
194
195
|
ACTION["CREATE_NOT_ALLOWED"] = "createNotAllowed";
|
|
195
196
|
ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED"] = "unsupportedContentLevelsTrackingSucceeded";
|
|
196
197
|
ACTION["UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED"] = "unsupportedContentLevelsTrackingErrored";
|
|
@@ -426,12 +426,11 @@ export function ElementItem(_ref6) {
|
|
|
426
426
|
role: role
|
|
427
427
|
// @ts-expect-error -- see A11Y-30538
|
|
428
428
|
,
|
|
429
|
-
tabIndex:
|
|
429
|
+
tabIndex: -1
|
|
430
430
|
}, jsx(ItemContent
|
|
431
431
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
432
432
|
, {
|
|
433
433
|
style: inlineMode ? null : itemStyleOverrides,
|
|
434
|
-
tabIndex: expValEquals('platform_editor_fix_a11y_tab_focus_insertion_menu', 'isEnabled', true) ? undefined : 0,
|
|
435
434
|
title: title,
|
|
436
435
|
description: description,
|
|
437
436
|
keyshortcut: keyshortcut,
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "116.
|
|
23
|
+
var packageVersion = "116.41.0";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// 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 = "116.
|
|
24
|
+
var packageVersion = "116.41.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -36,6 +36,13 @@ export var VanillaTooltip = /*#__PURE__*/function () {
|
|
|
36
36
|
className) {
|
|
37
37
|
var _this = this;
|
|
38
38
|
var timeout = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300;
|
|
39
|
+
var
|
|
40
|
+
/**
|
|
41
|
+
* Optional inline styles to apply directly to the tooltip element.
|
|
42
|
+
* Useful when the tooltip is rendered in the browser's top layer (via Popover API),
|
|
43
|
+
* where ancestor CSS selectors cannot reach it.
|
|
44
|
+
*/
|
|
45
|
+
styles = arguments.length > 5 ? arguments[5] : undefined;
|
|
39
46
|
_classCallCheck(this, VanillaTooltip);
|
|
40
47
|
_defineProperty(this, "listeners", []);
|
|
41
48
|
_defineProperty(this, "shouldHidePopover", false);
|
|
@@ -48,6 +55,9 @@ export var VanillaTooltip = /*#__PURE__*/function () {
|
|
|
48
55
|
tooltip.className = className;
|
|
49
56
|
tooltip.id = id;
|
|
50
57
|
tooltip.textContent = content;
|
|
58
|
+
if (styles) {
|
|
59
|
+
Object.assign(tooltip.style, styles);
|
|
60
|
+
}
|
|
51
61
|
this.tooltip = tooltip;
|
|
52
62
|
|
|
53
63
|
// Button preparation
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { OperationalAEP } from './utils';
|
|
3
|
+
/**
|
|
4
|
+
* Reasons an agent-authored edit did NOT get the skeleton shimmer / telepointer and instead applied
|
|
5
|
+
* instantly. Success is the ABSENCE of this event, so a neutral action + `reason` attribute is used
|
|
6
|
+
* (rather than an error action) to keep benign, expected degrades out of error dashboards.
|
|
7
|
+
*/
|
|
8
|
+
export type AgentEditShimmerNotShownReason = 'rebasedConcurrentEdit' | 'nothingToShow' | 'captureThrew' | 'tornDownMidAnimation';
|
|
9
|
+
export type AgentEditShimmerNotShownAttributes = {
|
|
10
|
+
agentType?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
reason: AgentEditShimmerNotShownReason;
|
|
13
|
+
};
|
|
14
|
+
export type AgentEditShimmerNotShownAEP = OperationalAEP<ACTION.AGENT_EDIT_SHIMMER_NOT_SHOWN, ACTION_SUBJECT.COLLAB, undefined, AgentEditShimmerNotShownAttributes>;
|
|
@@ -48,11 +48,5 @@ type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS,
|
|
|
48
48
|
suggestionCardCharacterCount: number;
|
|
49
49
|
suggestionType: string;
|
|
50
50
|
}, undefined>;
|
|
51
|
-
export type
|
|
52
|
-
type SubmitFeedbackSuggestionAEP = TrackAEP<ACTION.SUBMITTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
53
|
-
interactionPoint: AiSuggestionInteractionPoint;
|
|
54
|
-
sentiment: SuggestionFeedbackSentiment;
|
|
55
|
-
suggestionType: string;
|
|
56
|
-
}, undefined>;
|
|
57
|
-
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP | SubmitFeedbackSuggestionAEP;
|
|
51
|
+
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP;
|
|
58
52
|
export {};
|
|
@@ -187,6 +187,7 @@ export declare enum ACTION {
|
|
|
187
187
|
STEPS_TRACKED = "stepsTracked",
|
|
188
188
|
ORGANIC_CHANGES_TRACKED = "organicChangesTracked",
|
|
189
189
|
STEPS_FILTERED = "stepsFiltered",
|
|
190
|
+
AGENT_EDIT_SHIMMER_NOT_SHOWN = "agentEditShimmerNotShown",
|
|
190
191
|
CREATE_NOT_ALLOWED = "createNotAllowed",
|
|
191
192
|
UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED = "unsupportedContentLevelsTrackingSucceeded",
|
|
192
193
|
UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED = "unsupportedContentLevelsTrackingErrored",
|
|
@@ -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 { AgentEditShimmerNotShownAEP } from './agent-edit-shimmer-events';
|
|
7
8
|
import type { AiAutocompleteEventPayload } from './ai-autocomplete-events';
|
|
8
9
|
import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
|
|
9
10
|
import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
@@ -71,7 +72,7 @@ export type SimplifiedNode = {
|
|
|
71
72
|
pos: number;
|
|
72
73
|
type: string;
|
|
73
74
|
};
|
|
74
|
-
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 | OpenLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | ContainerNodeActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | AiSuggestionsEventPayload | ContextualTypeaheadEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
75
|
+
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 | OpenLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | ContainerNodeActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AiAutocompleteEventPayload | AiSuggestionsEventPayload | ContextualTypeaheadEventPayload | AIQuickPromptEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | ExperienceEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | AgentEditShimmerNotShownAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
|
|
75
76
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
76
77
|
newColor: string;
|
|
77
78
|
previousColor: string;
|
|
@@ -80,7 +80,7 @@ export declare const BLOCK_ACTIONS_FEATURED_EXTENSION_SLOT_MENU_ITEM: {
|
|
|
80
80
|
key: string;
|
|
81
81
|
};
|
|
82
82
|
export declare const BLOCK_ACTIONS_TEMPLATE_SECTION: {
|
|
83
|
-
key:
|
|
83
|
+
key: 'block-actions-template-section';
|
|
84
84
|
};
|
|
85
85
|
export declare const BLOCK_ACTIONS_FEATURED_EXTENSION_SECTION_KEYS: readonly [
|
|
86
86
|
typeof BLOCK_ACTIONS_TEMPLATE_SECTION.key
|
|
@@ -114,10 +114,10 @@ export declare const DELETE_MENU_ITEM: {
|
|
|
114
114
|
};
|
|
115
115
|
export declare const BLOCK_MENU_TEST_ID = "editor-block-menu";
|
|
116
116
|
export declare const BLOCK_MENU_ACTION_TEST_ID: {
|
|
117
|
-
readonly MOVE_UP:
|
|
118
|
-
readonly MOVE_DOWN:
|
|
119
|
-
readonly DELETE:
|
|
120
|
-
readonly COPY_LINK:
|
|
117
|
+
readonly MOVE_UP: 'block-menu-move-up';
|
|
118
|
+
readonly MOVE_DOWN: 'block-menu-move-down';
|
|
119
|
+
readonly DELETE: 'block-menu-delete';
|
|
120
|
+
readonly COPY_LINK: 'block-menu-copy-link';
|
|
121
121
|
};
|
|
122
122
|
/** Test ID for extension menu items (used to skip block transform experience tracking) */
|
|
123
123
|
export declare const EXTENSION_MENU_ITEM_TEST_ID = "extension-menu-item";
|
|
@@ -8,15 +8,15 @@ export declare const EXPERIENCE_FAILURE_REASON: {
|
|
|
8
8
|
/**
|
|
9
9
|
* Experience timed out before completion
|
|
10
10
|
*/
|
|
11
|
-
readonly TIMEOUT:
|
|
11
|
+
readonly TIMEOUT: 'timeout';
|
|
12
12
|
/**
|
|
13
13
|
* Target element could not be found when starting DOM mutation observation
|
|
14
14
|
*/
|
|
15
|
-
readonly DOM_MUTATION_TARGET_NOT_FOUND:
|
|
15
|
+
readonly DOM_MUTATION_TARGET_NOT_FOUND: 'domMutationTargetNotFound';
|
|
16
16
|
/**
|
|
17
17
|
* Error occurred during DOM mutation check execution
|
|
18
18
|
*/
|
|
19
|
-
readonly DOM_MUTATION_CHECK_ERROR:
|
|
19
|
+
readonly DOM_MUTATION_CHECK_ERROR: 'domMutationCheckError';
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Built-in abort reasons for experiences.
|
|
@@ -28,7 +28,7 @@ export declare const EXPERIENCE_ABORT_REASON: {
|
|
|
28
28
|
/**
|
|
29
29
|
* Experience was aborted because it was restarted while already in progress
|
|
30
30
|
*/
|
|
31
|
-
readonly RESTARTED:
|
|
31
|
+
readonly RESTARTED: 'restarted';
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
34
|
* Default sample rate for experienceSampled events.
|
|
@@ -42,9 +42,9 @@ export declare const EXPERIENCE_ABORT_REASON: {
|
|
|
42
42
|
*/
|
|
43
43
|
export declare const DEFAULT_EXPERIENCE_SAMPLE_RATE = 0.001;
|
|
44
44
|
export declare const EXPERIENCE_ID: {
|
|
45
|
-
readonly ASYNC_OPERATION:
|
|
46
|
-
readonly MENU_ACTION:
|
|
47
|
-
readonly MENU_OPEN:
|
|
48
|
-
readonly TOOLBAR_ACTION:
|
|
49
|
-
readonly TOOLBAR_OPEN:
|
|
45
|
+
readonly ASYNC_OPERATION: 'asyncOperation';
|
|
46
|
+
readonly MENU_ACTION: 'menuAction';
|
|
47
|
+
readonly MENU_OPEN: 'menuOpen';
|
|
48
|
+
readonly TOOLBAR_ACTION: 'toolbarAction';
|
|
49
|
+
readonly TOOLBAR_OPEN: 'toolbarOpen';
|
|
50
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExtensionProvider } from './types/extension-provider';
|
|
2
|
+
export default _default;
|
|
2
3
|
/**
|
|
3
4
|
* Allow to run methods from the `ExtensionProvider` interface across all providers seamlessly.
|
|
4
5
|
* This handles promise racing and discards rejected promises safely.
|
|
5
6
|
*/
|
|
6
|
-
declare
|
|
7
|
-
export default _default;
|
|
7
|
+
declare function _default(extensionProviders: (ExtensionProvider | Promise<ExtensionProvider>)[]): ExtensionProvider;
|
|
@@ -8,7 +8,7 @@ export declare const useLinkOverlayAnalyticsEvents: () => {
|
|
|
8
8
|
* @param linkAction 'goToLink' when somebody clicks on the Go to link button
|
|
9
9
|
* in the chevron menu; 'configureLink' when somebody clicks on the Configure button (whether it's the overlay or in the dropdown)
|
|
10
10
|
*/
|
|
11
|
-
fireActionClickEvent: (linkAction:
|
|
11
|
+
fireActionClickEvent: (linkAction: 'goToLink' | 'configureLink') => void;
|
|
12
12
|
/**
|
|
13
13
|
* When a user clicks on the dropdown for a short link, or when a user clicks on the configure button for a wide link.
|
|
14
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getBadgeSize: (width?: number, height?: number) =>
|
|
1
|
+
export declare const getBadgeSize: (width?: number, height?: number) => 'medium' | 'small';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
export default _default;
|
|
1
2
|
/**
|
|
2
3
|
* Allow to run methods from the given provider interface across all providers seamlessly.
|
|
3
4
|
* Handles promise racing and discards rejected promises safely.
|
|
4
5
|
*/
|
|
5
|
-
declare
|
|
6
|
+
declare function _default<P>(providers: (P | Promise<P>)[]): {
|
|
6
7
|
invokeList: <T>(methodName: keyof P, args?: any[]) => Promise<T[]>;
|
|
7
8
|
invokeSingle: <T>(methodName: keyof P, args?: any[]) => Promise<T>;
|
|
8
9
|
};
|
|
9
|
-
export default _default;
|
|
@@ -28,7 +28,7 @@ export declare const IconFiveColumnLayout: React.ComponentType<React.PropsWithCh
|
|
|
28
28
|
type HeadingProps = IconProps & {
|
|
29
29
|
level: HeadingLevels;
|
|
30
30
|
};
|
|
31
|
-
export declare const IconHeading: ({ level, label, }: Pick<HeadingProps,
|
|
31
|
+
export declare const IconHeading: ({ level, label, }: Pick<HeadingProps, 'level' | 'label'>) => React.JSX.Element;
|
|
32
32
|
export declare const IconFeedback: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
33
33
|
export declare const IconExpand: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
34
34
|
export declare const IconDatasourceJiraIssue: React.ComponentType<React.PropsWithChildren<IconProps>> & Loadable.LoadableComponent;
|
|
@@ -6,7 +6,7 @@ import type { EditorContainerWidth, getPosHandlerNode } from '../types';
|
|
|
6
6
|
type BreakoutSupportedNodes = 'layoutSection' | 'expand' | 'codeBlock';
|
|
7
7
|
export declare const ignoreResizerMutations: (mutation: MutationRecord | {
|
|
8
8
|
target: Node;
|
|
9
|
-
type:
|
|
9
|
+
type: 'selection';
|
|
10
10
|
}) => boolean;
|
|
11
11
|
type BreakoutResizerProps = {
|
|
12
12
|
disabled?: boolean;
|
|
@@ -3,5 +3,5 @@ import type { BreakoutMode } from '../types';
|
|
|
3
3
|
type props = {
|
|
4
4
|
layout: BreakoutMode;
|
|
5
5
|
};
|
|
6
|
-
export declare const ResizerBreakoutModeLabel: ({ layout: breakoutLayout, }: props) =>
|
|
6
|
+
export declare const ResizerBreakoutModeLabel: ({ layout: breakoutLayout, }: props) => '' | React.JSX.Element | null;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
export declare const calcTableWidth: (layout: TableLayout, containerWidth?: number, addControllerPadding?: boolean) => number |
|
|
2
|
+
export declare const calcTableWidth: (layout: TableLayout, containerWidth?: number, addControllerPadding?: boolean) => number | 'inherit';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SerializedStyles } from '@emotion/react';
|
|
2
2
|
import type { ThemeState } from '@atlaskit/tokens/theme-config';
|
|
3
|
-
export declare const headingsSharedStyles: (_typographyTheme?: ThemeState[
|
|
3
|
+
export declare const headingsSharedStyles: (_typographyTheme?: ThemeState['typography']) => SerializedStyles;
|
|
@@ -8,16 +8,16 @@ export declare const SyncedBlocksSSRErrorCodeMap: {
|
|
|
8
8
|
* This indicates incomplete data retrieval or potential data loss.
|
|
9
9
|
* Included in error: list of missing block identifiers
|
|
10
10
|
*/
|
|
11
|
-
readonly FETCH_INCOMPLETE:
|
|
11
|
+
readonly FETCH_INCOMPLETE: 'SYNCED_BLOCKS_FETCH_INCOMPLETE';
|
|
12
12
|
/**
|
|
13
13
|
* Occurs when the batch fetch operation throws an error during execution.
|
|
14
14
|
* This indicates a network error, timeout, or API failure.
|
|
15
15
|
* Included in error: resource IDs that failed to fetch
|
|
16
16
|
*/
|
|
17
|
-
readonly BATCH_FETCH_FAILED:
|
|
17
|
+
readonly BATCH_FETCH_FAILED: 'SYNCED_BLOCKS_BATCH_FETCH_FAILED';
|
|
18
18
|
/**
|
|
19
19
|
* Occurs when the fetch operation times out without returning results.
|
|
20
20
|
* This is specific to the bulk fetch operation with a configurable timeout.
|
|
21
21
|
*/
|
|
22
|
-
readonly FETCH_TIMEOUT:
|
|
22
|
+
readonly FETCH_TIMEOUT: 'SYNCED_BLOCKS_FETCH_TIMEOUT';
|
|
23
23
|
};
|