@kentico/xperience-admin-components 25.0.1 → 26.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
@@ -2459,7 +2459,7 @@ export declare interface RichTextEditorProps extends UITestProps {
2459
2459
  */
2460
2460
  readonly onChange?: (value?: string) => void;
2461
2461
  /**
2462
- * Indicates if the rich text editor is dsiabled.
2462
+ * Indicates if the rich text editor is disabled.
2463
2463
  */
2464
2464
  readonly disabled?: boolean;
2465
2465
  /**
@@ -2538,6 +2538,12 @@ export declare interface RichTextEditorRef {
2538
2538
  readonly insertImage: (imageUrl: string, imageAttributes: {
2539
2539
  [key: string]: string;
2540
2540
  }) => void;
2541
+ /**
2542
+ * Replace image with a different one.
2543
+ */
2544
+ readonly replaceImage: (imageUrl: string, imageAttributes: {
2545
+ [key: string]: string;
2546
+ }, imageToReplace: any) => void;
2541
2547
  /**
2542
2548
  * Insert link into the text on current caret position (required).
2543
2549
  */
@@ -2553,9 +2559,13 @@ export declare interface RichTextEditorRef {
2553
2559
  */
2554
2560
  readonly insertHtml?: (htmlContent: string) => void;
2555
2561
  /**
2556
- * Ensure change.
2562
+ * Ensure onChange event.
2557
2563
  */
2558
2564
  readonly ensureChange?: () => void;
2565
+ /**
2566
+ * Indicates if the rich text editor is disabled.
2567
+ */
2568
+ readonly isDisabled?: () => boolean;
2559
2569
  }
2560
2570
 
2561
2571
  export declare const Row: React_2.ForwardRefExoticComponent<RowProps & React_2.RefAttributes<HTMLDivElement>>;
@@ -2821,9 +2831,10 @@ export declare const SimpleStatusSuccess: React_2.ForwardRefExoticComponent<Simp
2821
2831
  export declare interface SimpleStatusSuccessProps extends Omit<BaseSimpleStatusProps, 'type' | 'labelColor' | 'iconColor'> {
2822
2832
  }
2823
2833
 
2824
- export declare const SimpleStatusTableCellComponent: ({ iconName, label, iconColor, labelColor }: SimpleStatusTableCellComponentProps) => JSX.Element;
2834
+ export declare const SimpleStatusTableCellComponent: ({ iconName, label, iconColor, labelColor, tooltipText }: SimpleStatusTableCellComponentProps) => JSX.Element;
2825
2835
 
2826
2836
  export declare interface SimpleStatusTableCellComponentProps extends StatusComponentProps {
2837
+ readonly tooltipText?: string;
2827
2838
  }
2828
2839
 
2829
2840
  declare enum SimpleStatusType {
@@ -3374,6 +3385,10 @@ export declare const TreeNode: {
3374
3385
  };
3375
3386
 
3376
3387
  export declare interface TreeNodeAction {
3388
+ /**
3389
+ * Action name.
3390
+ */
3391
+ readonly name: string;
3377
3392
  /**
3378
3393
  * Label of the action.
3379
3394
  */
@@ -3387,6 +3402,10 @@ export declare interface TreeNodeAction {
3387
3402
  * @param action Action that was executed.
3388
3403
  */
3389
3404
  readonly actionExecutor: (action: TreeNodeAction) => void;
3405
+ /**
3406
+ * Actions tooltip.
3407
+ */
3408
+ readonly tooltip?: string;
3390
3409
  }
3391
3410
 
3392
3411
  declare interface TreeNodeContentSharedProps extends UITestProps {
@@ -3466,6 +3485,14 @@ export declare interface TreeNodeLeadingIconProps extends TreeNodeContentSharedP
3466
3485
  readonly children: React.ReactNode;
3467
3486
  }
3468
3487
 
3488
+ /**
3489
+ * Component representing a tree node menu with actions.
3490
+ */
3491
+ export declare const TreeNodeMenu: {
3492
+ <TActions extends TreeNodeAction>({ disabled, isOpen, actions, onToggle, actionExecutor, menuButtonTooltip }: TreeNodeMenuProps<TActions>): JSX.Element;
3493
+ displayName: string;
3494
+ };
3495
+
3469
3496
  /**
3470
3497
  * Tree node menu action component.
3471
3498
  */
@@ -3530,6 +3557,39 @@ export declare interface TreeNodeMenuActionsProps {
3530
3557
  readonly dataTestIdMenuButton?: string;
3531
3558
  }
3532
3559
 
3560
+ export declare interface TreeNodeMenuProps<TActionType extends TreeNodeAction> {
3561
+ /**
3562
+ * Indicates if the actions menu is disabled. Defaults to `false`.
3563
+ */
3564
+ readonly disabled?: boolean;
3565
+ /**
3566
+ * Indicates if the menu is opened. Defaults to `false`.
3567
+ */
3568
+ readonly isOpen: boolean;
3569
+ /**
3570
+ * Collection of the node actions.
3571
+ */
3572
+ readonly actions: TActionType[];
3573
+ /**
3574
+ * Event fired when menu is toggled.
3575
+ * @param isOpen Indicates if the menu is opened.
3576
+ */
3577
+ readonly onToggle?: (isOpen: boolean) => void;
3578
+ /**
3579
+ * Event handler fired when action of certain type is executed.
3580
+ * @param action Action that was executed.
3581
+ */
3582
+ readonly actionExecutor: (action: TActionType) => void;
3583
+ /**
3584
+ * Reference to the first action in the actions list.
3585
+ */
3586
+ readonly firstActionRef?: React.RefObject<HTMLDivElement>;
3587
+ /**
3588
+ * Tooltip of the button which opens the menu.
3589
+ */
3590
+ readonly menuButtonTooltip: string;
3591
+ }
3592
+
3533
3593
  export declare type TreeNodeProps<TIsDraggable = boolean> = TIsDraggable extends true ? {
3534
3594
  /** Indicates if node is draggable. */
3535
3595
  isDraggable: TIsDraggable;
@@ -3731,9 +3791,9 @@ export declare enum Zindex {
3731
3791
  DropDown = "100",
3732
3792
  Statusbar = "1000",
3733
3793
  StickyHeader = "200",
3734
- Sidepanel = "3000",
3735
- AppMenu = "4000",
3736
- Dialog = "2000",
3794
+ Sidepanel = "2000",
3795
+ AppMenu = "3000",
3796
+ Dialog = "4000",
3737
3797
  Snackbar = "6000",
3738
3798
  Tooltip = "5000",
3739
3799
  Prompt = "10000"