@atlaskit/editor-common 116.40.2 → 116.41.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/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/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/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/ai-suggestions-events.d.ts +1 -7
- 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 +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.41.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a86fac88f3a5e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a86fac88f3a5e) -
|
|
8
|
+
Use lazy-loaded VanillaTooltip for emoji tooltips in the editor and render an ADS Tooltip
|
|
9
|
+
positioned above the emoji in the emoji element, gated behind the
|
|
10
|
+
platform_editor_emoji_hover_show_tooltip experiment.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`c0fedda79b60e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0fedda79b60e) -
|
|
15
|
+
Clean up experiment `platform_editor_fix_a11y_tab_focus_insertion_menu`
|
|
16
|
+
- [`9d13e640f00d5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9d13e640f00d5) -
|
|
17
|
+
[EDITOR-8150] The `submitSuggestionFeedback` editor action now fires the canonical unified
|
|
18
|
+
`aiFeedback submitted` analytics event (with `aiFeedbackResult` up/down and the unified Editor AI
|
|
19
|
+
/ Suggested edits attributes) instead of a bespoke event, so suggestion feedback votes are
|
|
20
|
+
captured by the shared AI feedback pipeline.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 116.40.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -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.40.
|
|
31
|
+
var packageVersion = "116.40.2";
|
|
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.40.
|
|
27
|
+
var packageVersion = "116.40.2";
|
|
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
|
|
@@ -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.40.
|
|
17
|
+
const packageVersion = "116.40.2";
|
|
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.40.
|
|
17
|
+
const packageVersion = "116.40.2";
|
|
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
|
|
@@ -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.40.
|
|
23
|
+
var packageVersion = "116.40.2";
|
|
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.40.
|
|
24
|
+
var packageVersion = "116.40.2";
|
|
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
|
|
@@ -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 {};
|
|
@@ -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
|
};
|