@atlaskit/editor-common 84.0.4 → 84.2.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 (62) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/dist/cjs/analytics/types/context-menu-events.js +5 -0
  4. package/dist/cjs/analytics/types/enums.js +1 -0
  5. package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +56 -0
  6. package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +38 -0
  7. package/dist/cjs/link/ConfigureLinkOverlay/{OverlayButton.js → index.js} +29 -22
  8. package/dist/cjs/link/index.js +2 -2
  9. package/dist/cjs/monitoring/error.js +1 -1
  10. package/dist/cjs/resizer/Resizer.js +23 -45
  11. package/dist/cjs/ui/DropList/index.js +1 -1
  12. package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
  13. package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +6 -11
  14. package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +2 -11
  15. package/dist/cjs/ui-color/index.js +0 -12
  16. package/dist/es2019/analytics/types/context-menu-events.js +1 -0
  17. package/dist/es2019/analytics/types/enums.js +1 -0
  18. package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +45 -0
  19. package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +30 -0
  20. package/dist/es2019/link/ConfigureLinkOverlay/{OverlayButton.js → index.js} +28 -24
  21. package/dist/es2019/link/index.js +1 -1
  22. package/dist/es2019/monitoring/error.js +1 -1
  23. package/dist/es2019/resizer/Resizer.js +26 -54
  24. package/dist/es2019/ui/DropList/index.js +1 -1
  25. package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -2
  26. package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +2 -7
  27. package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.js +2 -7
  28. package/dist/es2019/ui-color/index.js +2 -2
  29. package/dist/esm/analytics/types/context-menu-events.js +1 -0
  30. package/dist/esm/analytics/types/enums.js +1 -0
  31. package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +46 -0
  32. package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +31 -0
  33. package/dist/esm/link/ConfigureLinkOverlay/{OverlayButton.js → index.js} +31 -24
  34. package/dist/esm/link/index.js +1 -1
  35. package/dist/esm/monitoring/error.js +1 -1
  36. package/dist/esm/resizer/Resizer.js +23 -45
  37. package/dist/esm/ui/DropList/index.js +1 -1
  38. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -2
  39. package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -10
  40. package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -10
  41. package/dist/esm/ui-color/index.js +2 -2
  42. package/dist/types/analytics/types/context-menu-events.d.ts +11 -0
  43. package/dist/types/analytics/types/enums.d.ts +2 -1
  44. package/dist/types/analytics/types/events.d.ts +2 -1
  45. package/dist/types/link/ConfigureLinkOverlay/Dropdown.d.ts +7 -0
  46. package/dist/types/link/ConfigureLinkOverlay/StyledButton.d.ts +7 -0
  47. package/dist/types/link/index.d.ts +2 -2
  48. package/dist/types/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +0 -1
  49. package/dist/types/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +1 -2
  50. package/dist/types/ui-color/index.d.ts +2 -2
  51. package/dist/types-ts4.5/analytics/types/context-menu-events.d.ts +11 -0
  52. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  53. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  54. package/dist/types-ts4.5/link/ConfigureLinkOverlay/Dropdown.d.ts +7 -0
  55. package/dist/types-ts4.5/link/ConfigureLinkOverlay/StyledButton.d.ts +7 -0
  56. package/dist/types-ts4.5/link/index.d.ts +2 -2
  57. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +0 -1
  58. package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +1 -2
  59. package/dist/types-ts4.5/ui-color/index.d.ts +2 -2
  60. package/package.json +5 -10
  61. /package/dist/types/link/ConfigureLinkOverlay/{OverlayButton.d.ts → index.d.ts} +0 -0
  62. /package/dist/types-ts4.5/link/ConfigureLinkOverlay/{OverlayButton.d.ts → index.d.ts} +0 -0
@@ -1,6 +1,3 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- 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; }
4
1
  /** @jsx jsx */
5
2
 
6
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -8,7 +5,6 @@ import { jsx } from '@emotion/react';
8
5
  import { backgroundColorPalette } from '@atlaskit/adf-schema';
9
6
  import Icon from '@atlaskit/icon';
10
7
  import { useThemeObserver } from '@atlaskit/tokens';
11
- import { DEFAULT_BORDER_COLOR } from './common';
12
8
  import getColorMessage from './getColorMessage';
13
9
  import paletteMessages from './paletteMessages';
14
10
  import { mapPaletteColor } from './textColorPalette';
@@ -47,15 +43,10 @@ export var highlightColorPalette = [{
47
43
  value: REMOVE_HIGHLIGHT_COLOR,
48
44
  label: 'No color',
49
45
  // Mostly informative, only used for analytics
50
- border: DEFAULT_BORDER_COLOR,
46
+ border: "var(--ds-border, #091E4224)",
51
47
  message: getColorMessage(paletteMessages, 'no-color'),
52
48
  decorator: jsx(EditorDiagonalLineIcon, null)
53
49
  }];
54
50
  backgroundColorPalette.forEach(function (label, color) {
55
51
  highlightColorPalette.push(mapPaletteColor(label, color));
56
- });
57
- export var highlightColorPaletteWithTokenBorders = highlightColorPalette.map(function (paletteColor) {
58
- return _objectSpread(_objectSpread({}, paletteColor), {}, {
59
- border: "var(--ds-border, #091E4224)"
60
- });
61
52
  });
@@ -1,8 +1,4 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- 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; }
4
1
  import { colorPalette } from '@atlaskit/adf-schema';
5
- import { DEFAULT_BORDER_COLOR } from './common';
6
2
  import getColorMessage from './getColorMessage';
7
3
  import paletteMessages from './paletteMessages';
8
4
  export var mapPaletteColor = function mapPaletteColor(label, color) {
@@ -11,7 +7,7 @@ export var mapPaletteColor = function mapPaletteColor(label, color) {
11
7
  return {
12
8
  value: color,
13
9
  label: label,
14
- border: DEFAULT_BORDER_COLOR,
10
+ border: "var(--ds-border, #091E4224)",
15
11
  message: message
16
12
  };
17
13
  };
@@ -21,9 +17,4 @@ export var textColorPalette = [];
21
17
  export var textColorPaletteTokenBorders = [];
22
18
  colorPalette.forEach(function (label, color) {
23
19
  textColorPalette.push(mapPaletteColor(label, color));
24
- });
25
- export var textColorPaletteWithTokenBorders = textColorPalette.map(function (paletteColor) {
26
- return _objectSpread(_objectSpread({}, paletteColor), {}, {
27
- border: "var(--ds-border, #091E4224)"
28
- });
29
20
  });
@@ -5,8 +5,8 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
5
5
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
6
6
  export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
7
7
  export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
8
- export { textColorPalette, textColorPaletteWithTokenBorders } from './ColorPalette/Palettes/textColorPalette';
9
- export { highlightColorPalette, highlightColorPaletteWithTokenBorders, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
8
+ export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
9
+ export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
10
10
  export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
11
11
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
12
12
  export { default as borderColorPalette } from './ColorPalette/Palettes/borderColorPalette';
@@ -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,7 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ export type DropdownProps = {
4
+ testId: string;
5
+ };
6
+ declare const Dropdown: ({ testId }: DropdownProps) => jsx.JSX.Element;
7
+ export default Dropdown;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ /** @jsx jsx */
3
+ import { jsx } from '@emotion/react';
4
+ import { type ButtonProps } from '@atlaskit/button';
5
+ export declare const StyledButton: ({ innerRef, ...props }: ButtonProps & {
6
+ innerRef?: import("react").Ref<HTMLElement> | undefined;
7
+ }) => jsx.JSX.Element;
@@ -15,5 +15,5 @@ export type { HyperlinkAddToolbarProps } from './LinkPicker/HyperlinkAddToolbar'
15
15
  export { sha1 } from './LinkPicker/HyperlinkAddToolbar/utils';
16
16
  export { isLinkAtPos, isTextAtPos, getLinkPreferencesURLFromENV } from './utils';
17
17
  export { stagingLinkPreferencesUrl, productionLinkPreferencesUrl } from './constants';
18
- export { OverlayButton } from './ConfigureLinkOverlay/OverlayButton';
19
- export type { OverlayButtonProps } from './ConfigureLinkOverlay/OverlayButton';
18
+ export { OverlayButton } from './ConfigureLinkOverlay';
19
+ export type { OverlayButtonProps } from './ConfigureLinkOverlay';
@@ -4,4 +4,3 @@ import type { PaletteColor } from './type';
4
4
  export declare const REMOVE_HIGHLIGHT_COLOR = "#00000000";
5
5
  export declare const EditorDiagonalLineIcon: () => jsx.JSX.Element;
6
6
  export declare const highlightColorPalette: Array<PaletteColor>;
7
- export declare const highlightColorPaletteWithTokenBorders: Array<PaletteColor>;
@@ -2,9 +2,8 @@ import type { PaletteColor } from './type';
2
2
  export declare const mapPaletteColor: (label: string, color: string) => {
3
3
  value: string;
4
4
  label: string;
5
- border: string;
5
+ border: "var(--ds-border)";
6
6
  message: import("react-intl-next").MessageDescriptor | undefined;
7
7
  };
8
8
  export declare const textColorPalette: Array<PaletteColor>;
9
9
  export declare const textColorPaletteTokenBorders: Array<PaletteColor>;
10
- export declare const textColorPaletteWithTokenBorders: Array<PaletteColor>;
@@ -5,8 +5,8 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
5
5
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
6
6
  export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
7
7
  export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ColorPalette/Palettes/statusColorPalette';
8
- export { textColorPalette, textColorPaletteWithTokenBorders, } from './ColorPalette/Palettes/textColorPalette';
9
- export { highlightColorPalette, highlightColorPaletteWithTokenBorders, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
8
+ export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
9
+ export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
10
10
  export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes';
11
11
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
12
12
  export type { PaletteColor, PaletteTooltipMessages } from './ColorPalette/Palettes/type';
@@ -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,7 @@
1
+ /** @jsx jsx */
2
+ import { jsx } from '@emotion/react';
3
+ export type DropdownProps = {
4
+ testId: string;
5
+ };
6
+ declare const Dropdown: ({ testId }: DropdownProps) => jsx.JSX.Element;
7
+ export default Dropdown;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ /** @jsx jsx */
3
+ import { jsx } from '@emotion/react';
4
+ import { type ButtonProps } from '@atlaskit/button';
5
+ export declare const StyledButton: ({ innerRef, ...props }: ButtonProps & {
6
+ innerRef?: import("react").Ref<HTMLElement> | undefined;
7
+ }) => jsx.JSX.Element;
@@ -15,5 +15,5 @@ export type { HyperlinkAddToolbarProps } from './LinkPicker/HyperlinkAddToolbar'
15
15
  export { sha1 } from './LinkPicker/HyperlinkAddToolbar/utils';
16
16
  export { isLinkAtPos, isTextAtPos, getLinkPreferencesURLFromENV } from './utils';
17
17
  export { stagingLinkPreferencesUrl, productionLinkPreferencesUrl } from './constants';
18
- export { OverlayButton } from './ConfigureLinkOverlay/OverlayButton';
19
- export type { OverlayButtonProps } from './ConfigureLinkOverlay/OverlayButton';
18
+ export { OverlayButton } from './ConfigureLinkOverlay';
19
+ export type { OverlayButtonProps } from './ConfigureLinkOverlay';
@@ -4,4 +4,3 @@ import type { PaletteColor } from './type';
4
4
  export declare const REMOVE_HIGHLIGHT_COLOR = "#00000000";
5
5
  export declare const EditorDiagonalLineIcon: () => jsx.JSX.Element;
6
6
  export declare const highlightColorPalette: Array<PaletteColor>;
7
- export declare const highlightColorPaletteWithTokenBorders: Array<PaletteColor>;
@@ -2,9 +2,8 @@ import type { PaletteColor } from './type';
2
2
  export declare const mapPaletteColor: (label: string, color: string) => {
3
3
  value: string;
4
4
  label: string;
5
- border: string;
5
+ border: "var(--ds-border)";
6
6
  message: import("react-intl-next").MessageDescriptor | undefined;
7
7
  };
8
8
  export declare const textColorPalette: Array<PaletteColor>;
9
9
  export declare const textColorPaletteTokenBorders: Array<PaletteColor>;
10
- export declare const textColorPaletteWithTokenBorders: Array<PaletteColor>;
@@ -5,8 +5,8 @@ export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/c
5
5
  export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
6
6
  export { panelBackgroundPalette, panelDarkModeBackgroundPalette, } from './ColorPalette/Palettes/panelBackgroundPalette';
7
7
  export { lightModeStatusColorPalette, darkModeStatusColorPalette, } from './ColorPalette/Palettes/statusColorPalette';
8
- export { textColorPalette, textColorPaletteWithTokenBorders, } from './ColorPalette/Palettes/textColorPalette';
9
- export { highlightColorPalette, highlightColorPaletteWithTokenBorders, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
8
+ export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
9
+ export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR, } from './ColorPalette/Palettes/highlightColorPalette';
10
10
  export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages, } from './ColorPalette/Palettes';
11
11
  export { DEFAULT_BORDER_COLOR } from './ColorPalette/Palettes/common';
12
12
  export type { PaletteColor, PaletteTooltipMessages } from './ColorPalette/Palettes/type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "84.0.4",
3
+ "version": "84.2.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,17 +103,18 @@
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.1.0",
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",
110
+ "@atlaskit/dropdown-menu": "^12.13.0",
110
111
  "@atlaskit/editor-json-transformer": "^8.15.0",
111
112
  "@atlaskit/editor-palette": "1.6.0",
112
113
  "@atlaskit/editor-prosemirror": "4.0.1",
113
114
  "@atlaskit/editor-shared-styles": "^2.12.0",
114
115
  "@atlaskit/editor-tables": "^2.7.0",
115
116
  "@atlaskit/emoji": "^67.6.0",
116
- "@atlaskit/icon": "^22.5.0",
117
+ "@atlaskit/icon": "^22.6.0",
117
118
  "@atlaskit/icon-object": "^6.4.0",
118
119
  "@atlaskit/link-datasource": "^2.5.0",
119
120
  "@atlaskit/link-picker": "^1.39.0",
@@ -128,7 +129,7 @@
128
129
  "@atlaskit/mention": "^23.2.0",
129
130
  "@atlaskit/menu": "^2.7.0",
130
131
  "@atlaskit/platform-feature-flags": "^0.3.0",
131
- "@atlaskit/primitives": "^10.0.0",
132
+ "@atlaskit/primitives": "^10.1.0",
132
133
  "@atlaskit/profilecard": "^19.15.0",
133
134
  "@atlaskit/section-message": "^6.5.0",
134
135
  "@atlaskit/smart-card": "^27.9.0",
@@ -228,9 +229,6 @@
228
229
  "platform.editor.ordered-list-auto-join-improvements_mrlv5": {
229
230
  "type": "boolean"
230
231
  },
231
- "platform.editor.resizer.prevent-contenteditable": {
232
- "type": "boolean"
233
- },
234
232
  "platform.editor.inline_extension.extended_lcqdn": {
235
233
  "type": "boolean"
236
234
  },
@@ -255,9 +253,6 @@
255
253
  "platform_editor_tables_padding_increase": {
256
254
  "type": "boolean"
257
255
  },
258
- "platform.editor.dynamic-palette-borders": {
259
- "type": "boolean"
260
- },
261
256
  "platform.editor.text-alignment-keyboard-shortcuts": {
262
257
  "type": "boolean"
263
258
  },