@kentico/xperience-admin-components 27.0.3 → 28.0.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.
package/dist/entry.d.ts CHANGED
@@ -7,6 +7,7 @@ import { DefineIconParameters } from 'froala-editor';
7
7
  import { DraggableProvidedDragHandleProps } from 'react-beautiful-dnd';
8
8
  import { DropResult } from 'react-beautiful-dnd';
9
9
  import { ForwardRefExoticComponent } from 'react';
10
+ import { FroalaOptions } from 'froala-editor';
10
11
  import { KeyboardEvent as KeyboardEvent_2 } from 'react';
11
12
  import { MouseEvent as MouseEvent_2 } from 'react';
12
13
  import { MouseEventHandler } from 'react';
@@ -326,7 +327,7 @@ declare interface BaseNotificationBarProps extends UITestProps {
326
327
  readonly childrenAsHtml?: boolean;
327
328
  }
328
329
 
329
- declare interface BaseSimpleStatusProps {
330
+ declare interface BaseSimpleStatusProps extends UITestProps {
330
331
  readonly spread?: boolean;
331
332
  readonly type: SimpleStatusType;
332
333
  readonly labelColor?: Colors;
@@ -703,7 +704,7 @@ export declare interface CheckboxProps extends CheckboxBaseProps {
703
704
  */
704
705
  readonly label?: string;
705
706
  /**
706
- * Indicates a checked state. Defaults to `false`.
707
+ * Indicates a checked state. Defaults to `false`. `undefined` when `indetermined` is true.
707
708
  */
708
709
  readonly checked?: boolean;
709
710
  /**
@@ -1610,6 +1611,11 @@ export declare enum HeadlineSize {
1610
1611
 
1611
1612
  declare type HTMLButtonProps = Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title' | 'onClick'>;
1612
1613
 
1614
+ /**
1615
+ * Represents html sanitizer configuration.
1616
+ */
1617
+ export declare type HTMLSanitizerConfig = Pick<FroalaOptions, 'htmlAllowedTags' | 'htmlAllowedAttrs'>;
1618
+
1613
1619
  export declare const Icon: React_2.ForwardRefExoticComponent<IconProps & React_2.RefAttributes<SVGSVGElement>>;
1614
1620
 
1615
1621
  declare interface IconButtonProps extends Pick<ToggleButtonBaseProps, 'onClick' | 'ariaLabel' | 'isSelected'> {
@@ -2231,7 +2237,7 @@ export declare interface LeadingButtonProps {
2231
2237
  readonly disabled?: boolean;
2232
2238
  readonly destructive?: boolean;
2233
2239
  readonly tooltip?: string;
2234
- readonly onClick?: (event: (MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>)) => void;
2240
+ readonly onClick?: (event: MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>) => void;
2235
2241
  }
2236
2242
 
2237
2243
  declare type LeadingElementType = 'icon' | 'avatar' | 'checkbox' | 'quinaryButton' | 'empty';
@@ -2306,7 +2312,7 @@ export declare interface MenuItemProps extends UITestProps {
2306
2312
  readonly type: TrailingElementType;
2307
2313
  readonly element: React_2.ReactNode;
2308
2314
  };
2309
- readonly onClick?: (e: (MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>)) => void;
2315
+ readonly onClick?: (e: MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>) => void;
2310
2316
  readonly value?: string;
2311
2317
  readonly large?: boolean;
2312
2318
  }
@@ -2633,6 +2639,10 @@ export declare interface RichTextEditorProps extends UITestProps {
2633
2639
  * Custom overriding configuration.
2634
2640
  */
2635
2641
  readonly customConfiguration?: object;
2642
+ /**
2643
+ * Html sanitizer configuration.
2644
+ */
2645
+ readonly htmlSanitizerConfiguration?: HTMLSanitizerConfig;
2636
2646
  /**
2637
2647
  * Height has higher priority than min-height.
2638
2648
  * If both are set then min-height will always be height.
@@ -3634,7 +3644,7 @@ export declare interface ThemeProps {
3634
3644
  }
3635
3645
 
3636
3646
  export declare const ThemeProvider: {
3637
- ({ children, customThemes, defaultTheme, }: ThemeProps): JSX.Element;
3647
+ ({ children, customThemes, defaultTheme }: ThemeProps): JSX.Element;
3638
3648
  displayName: string;
3639
3649
  };
3640
3650