@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.
Files changed (46) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/element-browser/components/ElementList/ElementList.js +1 -2
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/ui/DropList/index.js +1 -1
  5. package/dist/cjs/vanilla-tooltip/index.js +10 -0
  6. package/dist/es2019/element-browser/components/ElementList/ElementList.js +1 -2
  7. package/dist/es2019/monitoring/error.js +1 -1
  8. package/dist/es2019/ui/DropList/index.js +1 -1
  9. package/dist/es2019/vanilla-tooltip/index.js +10 -1
  10. package/dist/esm/element-browser/components/ElementList/ElementList.js +1 -2
  11. package/dist/esm/monitoring/error.js +1 -1
  12. package/dist/esm/ui/DropList/index.js +1 -1
  13. package/dist/esm/vanilla-tooltip/index.js +10 -0
  14. package/dist/types/analytics/types/ai-suggestions-events.d.ts +1 -7
  15. package/dist/types/block-menu/key.d.ts +5 -5
  16. package/dist/types/experiences/consts.d.ts +9 -9
  17. package/dist/types/extensions/combine-extension-providers.d.ts +2 -2
  18. package/dist/types/link/ConfigureLinkOverlay/useLinkOverlayAnalyticsEvents.d.ts +1 -1
  19. package/dist/types/media-single/getBadgeSize.d.ts +1 -1
  20. package/dist/types/paste/md-plugins/linkify-md-plugin.d.ts +1 -1
  21. package/dist/types/paste/md-plugins/newline-md-plugin.d.ts +1 -1
  22. package/dist/types/paste/md-plugins/paragraph-md-plugin.d.ts +1 -1
  23. package/dist/types/provider-helpers/combine-providers.d.ts +2 -2
  24. package/dist/types/quick-insert/assets/index.d.ts +1 -1
  25. package/dist/types/resizer/BreakoutResizer.d.ts +1 -1
  26. package/dist/types/resizer/ResizerBreakoutModeLabel.d.ts +1 -1
  27. package/dist/types/styles/shared/calcTableWidth.d.ts +1 -1
  28. package/dist/types/styles/shared/headings.d.ts +1 -1
  29. package/dist/types/sync-block/SyncedBlocksSSRErrorCodeMap.d.ts +3 -3
  30. package/dist/types/toolbar/keys.d.ts +337 -337
  31. package/dist/types/toolbar/shouldShowPrimaryToolbar.d.ts +1 -1
  32. package/dist/types/toolbar/shouldShowSelectionToolbar.d.ts +1 -1
  33. package/dist/types/types/supported-browsers.d.ts +1 -1
  34. package/dist/types/ui/FloatingToolbar/Separator.d.ts +1 -1
  35. package/dist/types/ui-color/ColorPalette/Palettes/mapPaletteColor.d.ts +1 -1
  36. package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
  37. package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
  38. package/dist/types/user-preferences/user-preferences.d.ts +1 -1
  39. package/dist/types/utils/ADFStages.d.ts +2 -2
  40. package/dist/types/utils/breakout.d.ts +1 -1
  41. package/dist/types/utils/getNextBreakoutMode.d.ts +1 -1
  42. package/dist/types/utils/isSubSupType.d.ts +1 -1
  43. package/dist/types/utils/track-unsupported-content.d.ts +1 -1
  44. package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +1 -1
  45. package/dist/types/vanilla-tooltip/index.d.ts +7 -1
  46. package/package.json +5 -5
@@ -7,4 +7,4 @@ import type { ContextualFormattingEnabledOptions } from './types';
7
7
  * @param toolbarDockingPosition - The user's toolbar docking preference
8
8
  * @returns true if the primary toolbar should be displayed, false otherwise
9
9
  */
10
- export declare const shouldShowPrimaryToolbar: (contextualFormattingEnabled?: ContextualFormattingEnabledOptions, toolbarDockingPosition?: "top" | "none") => boolean;
10
+ export declare const shouldShowPrimaryToolbar: (contextualFormattingEnabled?: ContextualFormattingEnabledOptions, toolbarDockingPosition?: 'top' | 'none') => boolean;
@@ -7,4 +7,4 @@ import type { ContextualFormattingEnabledOptions } from './types';
7
7
  * @param toolbarDockingPosition - The user's toolbar docking preference
8
8
  * @returns true if the selection toolbar should be displayed, false otherwise
9
9
  */
10
- export declare const shouldShowSelectionToolbar: (contextualFormattingEnabled: ContextualFormattingEnabledOptions, toolbarDockingPosition?: "top" | "none") => boolean;
10
+ export declare const shouldShowSelectionToolbar: (contextualFormattingEnabled: ContextualFormattingEnabledOptions, toolbarDockingPosition?: 'top' | 'none') => boolean;
@@ -1,4 +1,4 @@
1
- declare const SupportedBrowsers: readonly ["ie", "gecko", "chrome", "safari"];
1
+ declare const SupportedBrowsers: readonly ['ie', 'gecko', 'chrome', 'safari'];
2
2
  export type Browsers = (typeof SupportedBrowsers)[number];
3
3
  export type Range = {
4
4
  maximum?: number;
@@ -13,5 +13,5 @@ type SeparatorProps = {
13
13
  */
14
14
  fullHeight?: boolean;
15
15
  };
16
- declare const _default: ({ fullHeight, areAnyNewToolbarFlagsEnabled }: SeparatorProps) => jsx.JSX.Element;
17
16
  export default _default;
17
+ declare function _default({ fullHeight, areAnyNewToolbarFlagsEnabled }: SeparatorProps): jsx.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import type { MessageDescriptor } from 'react-intl';
2
2
  export declare const mapPaletteColor: (label: string, color: string) => {
3
- border: "var(--ds-border)";
3
+ border: 'var(--ds-border)';
4
4
  label: string;
5
5
  message: MessageDescriptor | undefined;
6
6
  value: string;
@@ -4,4 +4,4 @@ import type { ColorPaletteArrowKeyNavigationProps } from '../types';
4
4
  * This component is a wrapper for color picker which listens to keydown events of children
5
5
  * and handles arrow key navigation
6
6
  */
7
- export declare const ColorPaletteArrowKeyNavigationProvider: ({ children, selectedRowIndex, selectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, handleClose, closeOnTab, editorRef, ignoreEscapeKey, popupsMountPoint, }: React.PropsWithChildren<Omit<ColorPaletteArrowKeyNavigationProps, "type">>) => React.JSX.Element;
7
+ export declare const ColorPaletteArrowKeyNavigationProvider: ({ children, selectedRowIndex, selectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, handleClose, closeOnTab, editorRef, ignoreEscapeKey, popupsMountPoint, }: React.PropsWithChildren<Omit<ColorPaletteArrowKeyNavigationProps, 'type'>>) => React.JSX.Element;
@@ -4,4 +4,4 @@ import type { MenuArrowKeyNavigationProviderProps } from '../types';
4
4
  * This component is a wrapper of vertical menus which listens to keydown events of children
5
5
  * and handles up/down arrow key navigation
6
6
  */
7
- export declare const MenuArrowKeyNavigationProvider: ({ children, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, editorRef, popupsMountPoint, disableCloseOnArrowClick, }: React.PropsWithChildren<Omit<MenuArrowKeyNavigationProviderProps, "type">>) => React.JSX.Element;
7
+ export declare const MenuArrowKeyNavigationProvider: ({ children, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, editorRef, popupsMountPoint, disableCloseOnArrowClick, }: React.PropsWithChildren<Omit<MenuArrowKeyNavigationProviderProps, 'type'>>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare const TOOLBAR_DOCKING_POSITIONS: readonly ["top", "none"];
1
+ export declare const TOOLBAR_DOCKING_POSITIONS: readonly ['top', 'none'];
2
2
  export type ToolbarDocking = (typeof TOOLBAR_DOCKING_POSITIONS)[number];
3
3
  export type UserPreferences = {
4
4
  toolbarDockingPosition?: ToolbarDocking;
@@ -1,4 +1,4 @@
1
1
  export declare const ADFStages: {
2
- readonly FINAL: "final";
3
- readonly STAGE_0: "stage0";
2
+ readonly FINAL: 'final';
3
+ readonly STAGE_0: 'stage0';
4
4
  };
@@ -21,7 +21,7 @@ export type BreakoutConstsType = {
21
21
  wideScaleRatio: number;
22
22
  };
23
23
  declare const breakoutConsts: BreakoutConstsType;
24
- export declare const absoluteBreakoutWidth: (layout: "full-width" | "wide" | string, containerWidth: number) => number;
24
+ export declare const absoluteBreakoutWidth: (layout: 'full-width' | 'wide' | string, containerWidth: number) => number;
25
25
  export { breakoutConsts };
26
26
  export declare const calcWideWidth: (containerWidth?: number, maxWidth?: number, fallback?: string, padding?: number) => string;
27
27
  export declare const calcBreakoutWidth: any;
@@ -1,2 +1,2 @@
1
1
  import type { BreakoutMode } from '../types/breakout';
2
- export declare const getNextBreakoutMode: (currentMode?: BreakoutMode) => Exclude<BreakoutMode, "max">;
2
+ export declare const getNextBreakoutMode: (currentMode?: BreakoutMode) => Exclude<BreakoutMode, 'max'>;
@@ -1 +1 @@
1
- export declare const isSubSupType: (type: string) => type is "sub" | "sup";
1
+ export declare const isSubSupType: (type: string) => type is 'sub' | 'sup';
@@ -16,5 +16,5 @@ interface UnsupportedNode {
16
16
  type: string;
17
17
  }
18
18
  export declare const fireUnsupportedEvent: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, actionSubjectId: ACTION_SUBJECT_ID, unsupportedNode: UnsupportedNode, errorCode?: string) => void;
19
- export declare const trackUnsupportedContentTooltipDisplayedFor: (dispatchAnalyticsEvent: DispatchAnalyticsEventTooltip, unsupportedContentType: UnsupportedContentTooltipPayload["actionSubjectId"], originalNodeType?: string) => void;
19
+ export declare const trackUnsupportedContentTooltipDisplayedFor: (dispatchAnalyticsEvent: DispatchAnalyticsEventTooltip, unsupportedContentType: UnsupportedContentTooltipPayload['actionSubjectId'], originalNodeType?: string) => void;
20
20
  export {};
@@ -38,7 +38,7 @@ export type UnsupportedContentLevelsTracking = {
38
38
  * ```
39
39
  *
40
40
  */
41
- export declare const getUnsupportedContentLevelData: (validDocument: ADFEntity, customThresholds: UnsupportedContentLevelsTracking["thresholds"]) => {
41
+ export declare const getUnsupportedContentLevelData: (validDocument: ADFEntity, customThresholds: UnsupportedContentLevelsTracking['thresholds']) => {
42
42
  severity: UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
43
43
  percentage: number;
44
44
  counts: {
@@ -21,7 +21,13 @@ export declare class VanillaTooltip {
21
21
  /**
22
22
  * Class Name – used for styling.
23
23
  */
24
- className: string, timeout?: number);
24
+ className: string, timeout?: number,
25
+ /**
26
+ * Optional inline styles to apply directly to the tooltip element.
27
+ * Useful when the tooltip is rendered in the browser's top layer (via Popover API),
28
+ * where ancestor CSS selectors cannot reach it.
29
+ */
30
+ styles?: Record<string, string>);
25
31
  private createPopperInstance;
26
32
  destroy(): void;
27
33
  private hide;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.40.2",
3
+ "version": "116.41.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/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/codemod-utils": "^5.0.0",
42
42
  "@atlaskit/css": "^1.0.0",
43
43
  "@atlaskit/custom-steps": "^1.0.0",
44
- "@atlaskit/dropdown-menu": "^17.1.0",
44
+ "@atlaskit/dropdown-menu": "^17.2.0",
45
45
  "@atlaskit/editor-json-transformer": "^9.1.0",
46
46
  "@atlaskit/editor-palette": "^3.1.0",
47
47
  "@atlaskit/editor-prosemirror": "^8.0.0",
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/editor-tables": "^3.0.0",
50
50
  "@atlaskit/editor-toolbar": "^2.3.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.1.0",
52
- "@atlaskit/emoji": "^71.13.0",
52
+ "@atlaskit/emoji": "^71.14.0",
53
53
  "@atlaskit/icon": "^37.2.0",
54
54
  "@atlaskit/link": "^4.3.0",
55
55
  "@atlaskit/link-datasource": "^6.3.0",
@@ -80,9 +80,9 @@
80
80
  "@atlaskit/task-decision": "^21.7.0",
81
81
  "@atlaskit/teams-app-config": "^2.1.0",
82
82
  "@atlaskit/textfield": "^9.1.0",
83
- "@atlaskit/tmp-editor-statsig": "^134.0.0",
83
+ "@atlaskit/tmp-editor-statsig": "^135.0.0",
84
84
  "@atlaskit/tokens": "^16.3.0",
85
- "@atlaskit/tooltip": "^23.1.0",
85
+ "@atlaskit/tooltip": "^23.2.0",
86
86
  "@atlaskit/width-detector": "^6.2.0",
87
87
  "@babel/runtime": "^7.0.0",
88
88
  "@compiled/react": "^1.0.0",