@equinor/echo-framework 0.12.13 → 0.13.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.
@@ -8,9 +8,11 @@ type SyncButtonProps = BaseProps & {
8
8
  linkTo: string;
9
9
  getUrlToOpen?: never;
10
10
  };
11
+ type ButtonIcon = 'Fusion' | 'TR2000' | 'ProCoSys' | 'PermitVision' | 'Stid' | 'VivaEngage' | '3DModel' | 'Tag' | 'Launch' | 'Media' | 'McApp' | 'CommApp' | 'Sap' | 'Semi' | 'SafeX' | 'TrendingApp' | 'ConditionAdviser' | 'Satos' | 'GoToApp' | 'Tr2000' | 'Notification' | 'WorkOrder' | 'Robim' | 'Ayelix';
12
+ type ButtonIconBackwardCompatible = ButtonIcon | 'Yammer';
11
13
  type BaseProps = {
12
14
  buttonName: string;
13
- buttonIcon: string;
15
+ buttonIcon?: ButtonIconBackwardCompatible;
14
16
  hideText?: boolean;
15
17
  redirect?: boolean;
16
18
  buttonStyle?: ExternalLinkButtonStyle;
@@ -27,7 +29,7 @@ export declare enum ExternalLinkButtonStyle {
27
29
  *
28
30
  * @param {ExternalLinkButtonProps} props
29
31
  * @param {string} props.buttonName If the button isn't in Rounded button style, this will be the button's label.
30
- * @param {string} props.buttonIcon Name of the icon to render.
32
+ * @param {string} props.buttonIcon Optional. Name of the icon to render.
31
33
  * @param {string} props.linkTo Link to open, if `getUrlToOpen` isn't passed.
32
34
  * @param {boolean} props.hideText Optional. If set to `true`, will hide `buttonName`.
33
35
  * @param {boolean} props.redirect Optional. If set to `true`, the app will not open in a new tab / window, but in the current one.