@openfin/workspace-platform 20.1.6 → 20.1.7

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BookmarkNode } from '../../../../../common/src/api/pages/shapes';
3
- import { Props as BaseButtonProps } from '../../../../../common/src/components/BaseButton/BaseButton';
3
+ import { BaseButtonProps } from '../../../../../common/src/components/BaseButton/BaseButton';
4
4
  interface BookmarkItemProps {
5
5
  bookmark: BookmarkNode;
6
6
  isRenaming: boolean;
@@ -9,7 +9,12 @@ interface BookmarkItemProps {
9
9
  }
10
10
  declare const _default: import("react").NamedExoticComponent<BookmarkItemProps>;
11
11
  export default _default;
12
- export declare const BookmarkItemButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<BaseButtonProps & import("react").HTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, BaseButtonProps & {
12
+ export declare const BookmarkItemButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<BaseButtonProps & {
13
+ sizeOverride?: {
14
+ width: number;
15
+ height: number;
16
+ };
17
+ } & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, BaseButtonProps & {
13
18
  isRenaming?: boolean;
14
19
  }, never>;
15
20
  export declare const BookmarkItemButtonContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -120,6 +120,12 @@ export type DockButton = {
120
120
  * Optional button identifier, if not provided will be automatically generated by the provider
121
121
  */
122
122
  id?: string;
123
+ /**
124
+ * Specifies button context menu, if present and has one of the options enabled, the button will have a context menu on right click.
125
+ */
126
+ contextMenu?: {
127
+ removeOption?: boolean;
128
+ };
123
129
  } & (DockButtonConfig | DockDropdownConfig);
124
130
  /**
125
131
  * The names of the buttons for the workspace components on the Dock.
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SizeType } from '@openfin/ui-library';
3
- export interface Props {
3
+ export interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
4
4
  /**
5
5
  * Icon to be shown for the control.
6
6
  *
@@ -51,5 +51,10 @@ export interface Props {
51
51
  *
52
52
  * Note: This relies on global CSS and is written to run within the context of the Browser window which contains these globals.
53
53
  */
54
- declare const BaseButton: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
54
+ declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & {
55
+ sizeOverride?: {
56
+ width: number;
57
+ height: number;
58
+ };
59
+ } & React.RefAttributes<HTMLButtonElement>>;
55
60
  export default BaseButton;