@atlaskit/editor-toolbar 0.20.12 → 0.20.13

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 (40) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/types/types.d.ts +1 -1
  3. package/dist/types/ui/ColorPalette/getColorMessage.d.ts +1 -1
  4. package/dist/types/ui/ColorPalette/types.d.ts +2 -2
  5. package/dist/types/ui/ResponsiveContainer.d.ts +2 -1
  6. package/dist/types/ui/Show.d.ts +2 -1
  7. package/dist/types/ui/Toolbar.d.ts +3 -2
  8. package/dist/types/ui/ToolbarButton.d.ts +3 -2
  9. package/dist/types/ui/ToolbarButtonGroup.d.ts +1 -5
  10. package/dist/types/ui/ToolbarColorSwatch.d.ts +2 -1
  11. package/dist/types/ui/ToolbarDropdownItem.d.ts +2 -1
  12. package/dist/types/ui/ToolbarDropdownItemSection.d.ts +2 -1
  13. package/dist/types/ui/ToolbarDropdownMenu.d.ts +2 -1
  14. package/dist/types/ui/ToolbarDropdownMenuContext.d.ts +2 -1
  15. package/dist/types/ui/ToolbarNestedDropdownMenu.d.ts +1 -1
  16. package/dist/types/ui/ToolbarSection.d.ts +1 -1
  17. package/dist/types/ui/icons/MoreItemsIcon.d.ts +1 -1
  18. package/dist/types/ui/icons/NestedDropdownRightIcon.d.ts +1 -1
  19. package/dist/types/ui/icons/ShowMoreHorizontal.d.ts +1 -1
  20. package/dist/types/ui/icons/TextColorIcon.d.ts +2 -2
  21. package/dist/types-ts4.5/types.d.ts +1 -1
  22. package/dist/types-ts4.5/ui/ColorPalette/getColorMessage.d.ts +1 -1
  23. package/dist/types-ts4.5/ui/ColorPalette/types.d.ts +2 -2
  24. package/dist/types-ts4.5/ui/ResponsiveContainer.d.ts +2 -1
  25. package/dist/types-ts4.5/ui/Show.d.ts +2 -1
  26. package/dist/types-ts4.5/ui/Toolbar.d.ts +3 -2
  27. package/dist/types-ts4.5/ui/ToolbarButton.d.ts +3 -2
  28. package/dist/types-ts4.5/ui/ToolbarButtonGroup.d.ts +1 -5
  29. package/dist/types-ts4.5/ui/ToolbarColorSwatch.d.ts +2 -1
  30. package/dist/types-ts4.5/ui/ToolbarDropdownItem.d.ts +2 -1
  31. package/dist/types-ts4.5/ui/ToolbarDropdownItemSection.d.ts +2 -1
  32. package/dist/types-ts4.5/ui/ToolbarDropdownMenu.d.ts +2 -1
  33. package/dist/types-ts4.5/ui/ToolbarDropdownMenuContext.d.ts +2 -1
  34. package/dist/types-ts4.5/ui/ToolbarNestedDropdownMenu.d.ts +1 -1
  35. package/dist/types-ts4.5/ui/ToolbarSection.d.ts +1 -1
  36. package/dist/types-ts4.5/ui/icons/MoreItemsIcon.d.ts +1 -1
  37. package/dist/types-ts4.5/ui/icons/NestedDropdownRightIcon.d.ts +1 -1
  38. package/dist/types-ts4.5/ui/icons/ShowMoreHorizontal.d.ts +1 -1
  39. package/dist/types-ts4.5/ui/icons/TextColorIcon.d.ts +2 -2
  40. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.20.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c9b7aaa42d05b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c9b7aaa42d05b) -
8
+ Mechanical type-import autofix for editor core shell packages.
9
+
3
10
  ## 0.20.12
4
11
 
5
12
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { type NewCoreIconProps } from '@atlaskit/icon';
1
+ import type { NewCoreIconProps } from '@atlaskit/icon';
2
2
  export type IconComponent = (props: NewCoreIconProps) => JSX.Element;
3
3
  export type ToolbarKeyboardNavigationProviderConfig = {
4
4
  ariaControls?: string;
@@ -1,4 +1,4 @@
1
- import { type MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl-next';
2
2
  /**
3
3
  * Retrieves the appropriate internationalization message for a given color
4
4
  * @param messages - Record of color values to message descriptors
@@ -1,5 +1,5 @@
1
- import { type ReactElement } from 'react';
2
- import { type MessageDescriptor } from 'react-intl-next';
1
+ import type { ReactElement } from 'react';
2
+ import type { MessageDescriptor } from 'react-intl-next';
3
3
  /**
4
4
  * Represents a single color in the palette
5
5
  */
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  /**
3
4
  * Breakpoint preset names for ResponsiveContainer.
4
5
  * Each preset defines a specific set of breakpoints optimized for different use cases.
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
3
4
  type AboveProp = {
4
5
  above: Breakpoint;
@@ -1,6 +1,7 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  import type { ResponsiveContainerProps } from './ResponsiveContainer';
3
- import { type ViewEventEmitterProps } from './ViewEventEmitter';
4
+ import type { ViewEventEmitterProps } from './ViewEventEmitter';
4
5
  type ToolbarProps = {
5
6
  children?: ReactNode;
6
7
  /**
@@ -1,5 +1,6 @@
1
- import React, { type ReactNode } from 'react';
2
- import { type TriggerProps } from '@atlaskit/popup';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import type { TriggerProps } from '@atlaskit/popup';
3
4
  type ToolbarButtonProps = Partial<TriggerProps> & {
4
5
  ariaKeyshortcuts?: string;
5
6
  children?: ReactNode;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
6
2
  type ToolbarButtonGroupProps = {
7
3
  children?: ReactNode;
8
4
  };
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  type ToolbarColorSwatchProps = {
3
4
  children?: ReactNode;
4
5
  highlightColor?: string;
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode, type Ref } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode, Ref } from 'react';
2
3
  import type { CustomItemComponentProps } from '@atlaskit/menu/types';
3
4
  import type { DataAttributes } from '../types';
4
5
  type TextStyle = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  type ToolbarDropdownItemSectionProps = {
3
4
  children?: ReactNode;
4
5
  hasSeparator?: boolean;
@@ -2,7 +2,8 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import React, { type ReactNode } from 'react';
5
+ import React from 'react';
6
+ import type { ReactNode } from 'react';
6
7
  type ToolbarDropdownMenuProps = {
7
8
  children?: ReactNode;
8
9
  /**
@@ -1,4 +1,5 @@
1
- import React, { type KeyboardEvent, type MouseEvent } from 'react';
1
+ import React from 'react';
2
+ import type { KeyboardEvent, MouseEvent } from 'react';
2
3
  interface ToolbarDropdownMenuContextValue {
3
4
  closeMenu: (event: Event | MouseEvent | KeyboardEvent | null) => void;
4
5
  isOpen: boolean;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type ReactNode } from 'react';
5
+ import type { ReactNode } from 'react';
6
6
  type ToolbarNestedDropdownMenuProps = {
7
7
  children?: ReactNode;
8
8
  dropdownTestId?: string;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type ReactNode } from 'react';
5
+ import type { ReactNode } from 'react';
6
6
  export declare enum SeparatorPosition {
7
7
  START = "start",
8
8
  END = "end"
@@ -1,2 +1,2 @@
1
- import { type IconComponent } from '../../types';
1
+ import type { IconComponent } from '../../types';
2
2
  export declare const MoreItemsIcon: IconComponent;
@@ -1,2 +1,2 @@
1
- import { type IconComponent } from '../../types';
1
+ import type { IconComponent } from '../../types';
2
2
  export declare const NestedDropdownRightIcon: IconComponent;
@@ -1,2 +1,2 @@
1
- import { type IconComponent } from '../../types';
1
+ import type { IconComponent } from '../../types';
2
2
  export declare const ShowMoreHorizontalIcon: IconComponent;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type NewCoreIconProps } from '@atlaskit/icon/types';
3
- import { type IconColor } from '@atlaskit/tokens/css-type-schema';
2
+ import type { NewCoreIconProps } from '@atlaskit/icon/types';
3
+ import type { IconColor } from '@atlaskit/tokens/css-type-schema';
4
4
  type TextColorIconProps = NewCoreIconProps & {
5
5
  iconColor?: IconColor;
6
6
  isDisabled?: boolean;
@@ -1,4 +1,4 @@
1
- import { type NewCoreIconProps } from '@atlaskit/icon';
1
+ import type { NewCoreIconProps } from '@atlaskit/icon';
2
2
  export type IconComponent = (props: NewCoreIconProps) => JSX.Element;
3
3
  export type ToolbarKeyboardNavigationProviderConfig = {
4
4
  ariaControls?: string;
@@ -1,4 +1,4 @@
1
- import { type MessageDescriptor } from 'react-intl-next';
1
+ import type { MessageDescriptor } from 'react-intl-next';
2
2
  /**
3
3
  * Retrieves the appropriate internationalization message for a given color
4
4
  * @param messages - Record of color values to message descriptors
@@ -1,5 +1,5 @@
1
- import { type ReactElement } from 'react';
2
- import { type MessageDescriptor } from 'react-intl-next';
1
+ import type { ReactElement } from 'react';
2
+ import type { MessageDescriptor } from 'react-intl-next';
3
3
  /**
4
4
  * Represents a single color in the palette
5
5
  */
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  /**
3
4
  * Breakpoint preset names for ResponsiveContainer.
4
5
  * Each preset defines a specific set of breakpoints optimized for different use cases.
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
3
4
  type AboveProp = {
4
5
  above: Breakpoint;
@@ -1,6 +1,7 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  import type { ResponsiveContainerProps } from './ResponsiveContainer';
3
- import { type ViewEventEmitterProps } from './ViewEventEmitter';
4
+ import type { ViewEventEmitterProps } from './ViewEventEmitter';
4
5
  type ToolbarProps = {
5
6
  children?: ReactNode;
6
7
  /**
@@ -1,5 +1,6 @@
1
- import React, { type ReactNode } from 'react';
2
- import { type TriggerProps } from '@atlaskit/popup';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import type { TriggerProps } from '@atlaskit/popup';
3
4
  type ToolbarButtonProps = Partial<TriggerProps> & {
4
5
  ariaKeyshortcuts?: string;
5
6
  children?: ReactNode;
@@ -1,8 +1,4 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ReactNode } from 'react';
1
+ import type { ReactNode } from 'react';
6
2
  type ToolbarButtonGroupProps = {
7
3
  children?: ReactNode;
8
4
  };
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  type ToolbarColorSwatchProps = {
3
4
  children?: ReactNode;
4
5
  highlightColor?: string;
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode, type Ref } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode, Ref } from 'react';
2
3
  import type { CustomItemComponentProps } from '@atlaskit/menu/types';
3
4
  import type { DataAttributes } from '../types';
4
5
  type TextStyle = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
@@ -1,4 +1,5 @@
1
- import React, { type ReactNode } from 'react';
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
2
3
  type ToolbarDropdownItemSectionProps = {
3
4
  children?: ReactNode;
4
5
  hasSeparator?: boolean;
@@ -2,7 +2,8 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import React, { type ReactNode } from 'react';
5
+ import React from 'react';
6
+ import type { ReactNode } from 'react';
6
7
  type ToolbarDropdownMenuProps = {
7
8
  children?: ReactNode;
8
9
  /**
@@ -1,4 +1,5 @@
1
- import React, { type KeyboardEvent, type MouseEvent } from 'react';
1
+ import React from 'react';
2
+ import type { KeyboardEvent, MouseEvent } from 'react';
2
3
  interface ToolbarDropdownMenuContextValue {
3
4
  closeMenu: (event: Event | MouseEvent | KeyboardEvent | null) => void;
4
5
  isOpen: boolean;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type ReactNode } from 'react';
5
+ import type { ReactNode } from 'react';
6
6
  type ToolbarNestedDropdownMenuProps = {
7
7
  children?: ReactNode;
8
8
  dropdownTestId?: string;
@@ -2,7 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
- import { type ReactNode } from 'react';
5
+ import type { ReactNode } from 'react';
6
6
  export declare enum SeparatorPosition {
7
7
  START = "start",
8
8
  END = "end"
@@ -1,2 +1,2 @@
1
- import { type IconComponent } from '../../types';
1
+ import type { IconComponent } from '../../types';
2
2
  export declare const MoreItemsIcon: IconComponent;
@@ -1,2 +1,2 @@
1
- import { type IconComponent } from '../../types';
1
+ import type { IconComponent } from '../../types';
2
2
  export declare const NestedDropdownRightIcon: IconComponent;
@@ -1,2 +1,2 @@
1
- import { type IconComponent } from '../../types';
1
+ import type { IconComponent } from '../../types';
2
2
  export declare const ShowMoreHorizontalIcon: IconComponent;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type NewCoreIconProps } from '@atlaskit/icon/types';
3
- import { type IconColor } from '@atlaskit/tokens/css-type-schema';
2
+ import type { NewCoreIconProps } from '@atlaskit/icon/types';
3
+ import type { IconColor } from '@atlaskit/tokens/css-type-schema';
4
4
  type TextColorIconProps = NewCoreIconProps & {
5
5
  iconColor?: IconColor;
6
6
  isDisabled?: boolean;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.20.12",
6
+ "version": "0.20.13",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",