@atlaskit/editor-common 112.6.0 → 112.6.1
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 +6 -0
- package/codemods/migrates/entry-points.ts +8 -3
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +0 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/ButtonSpotlightCard.js +1 -1
- package/dist/cjs/ui/Pulse/Pulse.js +2 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +0 -2
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +0 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/ButtonSpotlightCard.js +2 -0
- package/dist/es2019/ui/Pulse/Pulse.js +2 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -2
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +0 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/ButtonSpotlightCard.js +2 -0
- package/dist/esm/ui/Pulse/Pulse.js +2 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +0 -2
- package/dist/types/ai-messages/ai-languages.d.ts +190 -190
- package/dist/types/card/LinkToolbarButtonGroup.d.ts +1 -1
- package/dist/types/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types/element-browser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types/element-browser/components/ElementSearch.d.ts +1 -1
- package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +1 -1
- package/dist/types/element-browser/components/ViewMore.d.ts +1 -1
- package/dist/types/element-browser/constants.d.ts +2 -2
- package/dist/types/experiences/types.d.ts +1 -1
- package/dist/types/extensions/UnknownMacroPlaceholder.d.ts +1 -1
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/link/LinkSearch/LinkSearchListItem.d.ts +1 -1
- package/dist/types/media-inline/views/frame.d.ts +1 -1
- package/dist/types/resizer/ResizerBreakoutModeLabel.d.ts +1 -1
- package/dist/types/selection/utils.d.ts +1 -1
- package/dist/types/styles/shared/resizer.d.ts +3 -3
- package/dist/types/styles/shared/table.d.ts +23 -23
- package/dist/types/toolbar/rank.d.ts +151 -151
- package/dist/types/ui/Announcer/announcer.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/Button.d.ts +1 -1
- package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
- package/dist/types/ui/Toolbar/DropdownTriggerWrapper.d.ts +1 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +2 -2
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +7 -7
- package/dist/types/utils/breakout.d.ts +1 -1
- package/dist/types/utils/getModeFromTheme.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/ai-messages/ai-languages.d.ts +190 -190
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ViewMore.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/constants.d.ts +2 -2
- package/dist/types-ts4.5/experiences/types.d.ts +1 -1
- package/dist/types-ts4.5/extensions/UnknownMacroPlaceholder.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +1 -1
- package/dist/types-ts4.5/media-inline/views/frame.d.ts +1 -1
- package/dist/types-ts4.5/resizer/ResizerBreakoutModeLabel.d.ts +1 -1
- package/dist/types-ts4.5/selection/utils.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +3 -3
- package/dist/types-ts4.5/styles/shared/table.d.ts +23 -23
- package/dist/types-ts4.5/toolbar/rank.d.ts +151 -151
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +1 -1
- package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +1 -1
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +1 -1
- package/dist/types-ts4.5/ui/Toolbar/DropdownTriggerWrapper.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +2 -2
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +7 -7
- package/dist/types-ts4.5/utils/breakout.d.ts +1 -1
- package/dist/types-ts4.5/utils/getModeFromTheme.d.ts +1 -1
- package/dist/types-ts4.5/utils/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -20,5 +20,5 @@ export type OpenChangedEvent = {
|
|
|
20
20
|
event: MouseEvent | KeyboardEvent;
|
|
21
21
|
isOpen: boolean;
|
|
22
22
|
};
|
|
23
|
-
declare const _default_1: ForwardRefExoticComponent<Omit<Omit<Props, keyof WithAnalyticsEventsProps> & RefAttributes<unknown> & WithContextProps,
|
|
23
|
+
declare const _default_1: ForwardRefExoticComponent<Omit<Omit<Props, keyof WithAnalyticsEventsProps> & RefAttributes<unknown> & WithContextProps, 'ref'> & RefAttributes<unknown>>;
|
|
24
24
|
export default _default_1;
|
|
@@ -36,5 +36,5 @@ export interface Props {
|
|
|
36
36
|
tooltipContent?: TooltipProps['content'];
|
|
37
37
|
tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
|
|
38
38
|
}
|
|
39
|
-
declare const _default_1: React.FC<Omit<Props & React.RefAttributes<HTMLElement>,
|
|
39
|
+
declare const _default_1: React.FC<Omit<Props & React.RefAttributes<HTMLElement>, 'ref'> & Props & React.RefAttributes<HTMLElement>>;
|
|
40
40
|
export default _default_1;
|
|
@@ -104,5 +104,5 @@ export declare const MediaWrapper: {
|
|
|
104
104
|
type MediaBorderGapFillerProps = {
|
|
105
105
|
borderColor: string;
|
|
106
106
|
};
|
|
107
|
-
export declare const MediaBorderGapFiller: ({ borderColor }: MediaBorderGapFillerProps) => jsx.JSX.Element;
|
|
107
|
+
export declare const MediaBorderGapFiller: ({ borderColor, }: MediaBorderGapFillerProps) => jsx.JSX.Element;
|
|
108
108
|
export {};
|
|
@@ -8,7 +8,7 @@ import type { PaletteColor, PaletteTooltipMessages } from '../../ui-color';
|
|
|
8
8
|
import type { Position as PopupPosition } from '../../ui/Popup/utils';
|
|
9
9
|
declare const _default_1: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
10
10
|
absoluteOffset?: PopupPosition;
|
|
11
|
-
alignX?:
|
|
11
|
+
alignX?: 'left' | 'right' | 'center' | 'end';
|
|
12
12
|
colorPalette: PaletteColor[];
|
|
13
13
|
cols?: number;
|
|
14
14
|
currentColor?: string;
|
|
@@ -30,5 +30,5 @@ declare const _default_1: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
30
30
|
*/
|
|
31
31
|
skipFocusButtonAfterPick?: boolean;
|
|
32
32
|
title?: string;
|
|
33
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<unknown> & WithContextProps,
|
|
33
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<unknown> & WithContextProps, 'ref'> & React.RefAttributes<unknown>>;
|
|
34
34
|
export default _default_1;
|
|
@@ -36,11 +36,11 @@ export type Props = {
|
|
|
36
36
|
} & Pick<ButtonProps, 'aria-label' | 'children' | 'onFocus' | 'onBlur' | 'onMouseEnter' | 'onMouseLeave' | 'aria-controls' | 'rel'>;
|
|
37
37
|
export type ToolbarButtonRef = HTMLElement;
|
|
38
38
|
declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
39
|
-
'aria-expanded'?: React.AriaAttributes[
|
|
40
|
-
'aria-haspopup'?: React.AriaAttributes[
|
|
41
|
-
'aria-keyshortcuts'?: React.AriaAttributes[
|
|
42
|
-
'aria-label'?: React.AriaAttributes[
|
|
43
|
-
'aria-pressed'?: React.AriaAttributes[
|
|
39
|
+
'aria-expanded'?: React.AriaAttributes['aria-expanded'];
|
|
40
|
+
'aria-haspopup'?: React.AriaAttributes['aria-haspopup'];
|
|
41
|
+
'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
|
|
42
|
+
'aria-label'?: React.AriaAttributes['aria-label'];
|
|
43
|
+
'aria-pressed'?: React.AriaAttributes['aria-pressed'];
|
|
44
44
|
buttonId?: TOOLBAR_ACTION_SUBJECT_ID;
|
|
45
45
|
className?: string;
|
|
46
46
|
'data-ds--level'?: string;
|
|
@@ -55,10 +55,10 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
|
55
55
|
onItemClick?: (item: MenuItem) => void;
|
|
56
56
|
onKeyDown?: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
57
57
|
selected?: boolean;
|
|
58
|
-
spacing?:
|
|
58
|
+
spacing?: 'default' | 'compact' | 'none';
|
|
59
59
|
target?: string;
|
|
60
60
|
testId?: string;
|
|
61
61
|
title?: React.ReactNode;
|
|
62
62
|
titlePosition?: PositionType;
|
|
63
|
-
} & Pick<ButtonProps,
|
|
63
|
+
} & Pick<ButtonProps, 'children' | 'rel' | 'aria-controls' | 'aria-label' | 'onFocus' | 'onBlur' | 'onMouseEnter' | 'onMouseLeave'> & React.RefAttributes<HTMLElement>>;
|
|
64
64
|
export default ToolbarButton;
|
|
@@ -29,7 +29,7 @@ export declare const absoluteBreakoutWidth: (layout: "full-width" | "wide" | str
|
|
|
29
29
|
export { breakoutConsts };
|
|
30
30
|
export declare const calcWideWidth: (containerWidth?: number, maxWidth?: number, fallback?: string, padding?: number) => string;
|
|
31
31
|
export declare const calcBreakoutWidth: any;
|
|
32
|
-
export declare const calcBreakoutWithCustomWidth: (mode:
|
|
32
|
+
export declare const calcBreakoutWithCustomWidth: (mode: 'full-width' | 'wide', width: number | null, editorContainerWidth: number) => string;
|
|
33
33
|
export declare function calculateBreakoutStyles({ mode, widthStateLineLength, widthStateWidth, }: {
|
|
34
34
|
mode: BreakoutMarkAttrs['mode'];
|
|
35
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getModeFromTheme(theme: string):
|
|
1
|
+
export declare function getModeFromTheme(theme: string): 'dark' | 'light';
|
|
@@ -206,7 +206,7 @@ export declare const isInListItem: (state: EditorState) => boolean;
|
|
|
206
206
|
export declare const findFarthestParentNode: (predicate: (node: PMNode) => boolean) => ($pos: ResolvedPos) => ContentNodeWithPos | null;
|
|
207
207
|
export declare const insideTableCell: (state: EditorState) => boolean;
|
|
208
208
|
export declare function checkNodeDown(selection: Selection, doc: PMNode, filter: (node: PMNode) => boolean): boolean;
|
|
209
|
-
export declare const isEmptyNode: (schema: Schema) => (node: PMNode) => boolean;
|
|
209
|
+
export declare const isEmptyNode: (schema: Schema) => ((node: PMNode) => boolean);
|
|
210
210
|
/**
|
|
211
211
|
* Checks if a node has any content. Ignores node that only contain empty block nodes.
|
|
212
212
|
*/
|