@kentico/xperience-admin-components 25.0.2 → 26.0.1
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
|
@@ -2267,9 +2267,16 @@ export declare interface NotificationBarInfoProps extends Pick<BaseNotificationB
|
|
|
2267
2267
|
|
|
2268
2268
|
declare enum NotificationBarType {
|
|
2269
2269
|
Alert = "alert",
|
|
2270
|
+
Warning = "warning",
|
|
2270
2271
|
Info = "info"
|
|
2271
2272
|
}
|
|
2272
2273
|
|
|
2274
|
+
export declare const NotificationBarWarning: ForwardRefExoticComponent<NotificationBarWarningProps & RefAttributes<HTMLDivElement>>;
|
|
2275
|
+
|
|
2276
|
+
export declare interface NotificationBarWarningProps extends Pick<BaseNotificationBarProps, 'children' | 'childrenAsHtml' | 'dataTestId'> {
|
|
2277
|
+
readonly onDismiss?: () => void;
|
|
2278
|
+
}
|
|
2279
|
+
|
|
2273
2280
|
export declare const OptionalTooltip: {
|
|
2274
2281
|
({ customRenderText, text, tooltipText, children, ...restProps }: OptionalTooltipProps): JSX.Element;
|
|
2275
2282
|
displayName: string;
|
|
@@ -2459,7 +2466,7 @@ export declare interface RichTextEditorProps extends UITestProps {
|
|
|
2459
2466
|
*/
|
|
2460
2467
|
readonly onChange?: (value?: string) => void;
|
|
2461
2468
|
/**
|
|
2462
|
-
* Indicates if the rich text editor is
|
|
2469
|
+
* Indicates if the rich text editor is disabled.
|
|
2463
2470
|
*/
|
|
2464
2471
|
readonly disabled?: boolean;
|
|
2465
2472
|
/**
|
|
@@ -2538,6 +2545,12 @@ export declare interface RichTextEditorRef {
|
|
|
2538
2545
|
readonly insertImage: (imageUrl: string, imageAttributes: {
|
|
2539
2546
|
[key: string]: string;
|
|
2540
2547
|
}) => void;
|
|
2548
|
+
/**
|
|
2549
|
+
* Replace image with a different one.
|
|
2550
|
+
*/
|
|
2551
|
+
readonly replaceImage: (imageUrl: string, imageAttributes: {
|
|
2552
|
+
[key: string]: string;
|
|
2553
|
+
}, imageToReplace: any) => void;
|
|
2541
2554
|
/**
|
|
2542
2555
|
* Insert link into the text on current caret position (required).
|
|
2543
2556
|
*/
|
|
@@ -2553,9 +2566,13 @@ export declare interface RichTextEditorRef {
|
|
|
2553
2566
|
*/
|
|
2554
2567
|
readonly insertHtml?: (htmlContent: string) => void;
|
|
2555
2568
|
/**
|
|
2556
|
-
* Ensure
|
|
2569
|
+
* Ensure onChange event.
|
|
2557
2570
|
*/
|
|
2558
2571
|
readonly ensureChange?: () => void;
|
|
2572
|
+
/**
|
|
2573
|
+
* Indicates if the rich text editor is disabled.
|
|
2574
|
+
*/
|
|
2575
|
+
readonly isDisabled?: () => boolean;
|
|
2559
2576
|
}
|
|
2560
2577
|
|
|
2561
2578
|
export declare const Row: React_2.ForwardRefExoticComponent<RowProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -2821,9 +2838,10 @@ export declare const SimpleStatusSuccess: React_2.ForwardRefExoticComponent<Simp
|
|
|
2821
2838
|
export declare interface SimpleStatusSuccessProps extends Omit<BaseSimpleStatusProps, 'type' | 'labelColor' | 'iconColor'> {
|
|
2822
2839
|
}
|
|
2823
2840
|
|
|
2824
|
-
export declare const SimpleStatusTableCellComponent: ({ iconName, label, iconColor, labelColor }: SimpleStatusTableCellComponentProps) => JSX.Element;
|
|
2841
|
+
export declare const SimpleStatusTableCellComponent: ({ iconName, label, iconColor, labelColor, tooltipText }: SimpleStatusTableCellComponentProps) => JSX.Element;
|
|
2825
2842
|
|
|
2826
2843
|
export declare interface SimpleStatusTableCellComponentProps extends StatusComponentProps {
|
|
2844
|
+
readonly tooltipText?: string;
|
|
2827
2845
|
}
|
|
2828
2846
|
|
|
2829
2847
|
declare enum SimpleStatusType {
|
|
@@ -3374,6 +3392,10 @@ export declare const TreeNode: {
|
|
|
3374
3392
|
};
|
|
3375
3393
|
|
|
3376
3394
|
export declare interface TreeNodeAction {
|
|
3395
|
+
/**
|
|
3396
|
+
* Action name.
|
|
3397
|
+
*/
|
|
3398
|
+
readonly name: string;
|
|
3377
3399
|
/**
|
|
3378
3400
|
* Label of the action.
|
|
3379
3401
|
*/
|
|
@@ -3387,6 +3409,10 @@ export declare interface TreeNodeAction {
|
|
|
3387
3409
|
* @param action Action that was executed.
|
|
3388
3410
|
*/
|
|
3389
3411
|
readonly actionExecutor: (action: TreeNodeAction) => void;
|
|
3412
|
+
/**
|
|
3413
|
+
* Actions tooltip.
|
|
3414
|
+
*/
|
|
3415
|
+
readonly tooltip?: string;
|
|
3390
3416
|
}
|
|
3391
3417
|
|
|
3392
3418
|
declare interface TreeNodeContentSharedProps extends UITestProps {
|
|
@@ -3466,6 +3492,14 @@ export declare interface TreeNodeLeadingIconProps extends TreeNodeContentSharedP
|
|
|
3466
3492
|
readonly children: React.ReactNode;
|
|
3467
3493
|
}
|
|
3468
3494
|
|
|
3495
|
+
/**
|
|
3496
|
+
* Component representing a tree node menu with actions.
|
|
3497
|
+
*/
|
|
3498
|
+
export declare const TreeNodeMenu: {
|
|
3499
|
+
<TActions extends TreeNodeAction>({ disabled, isOpen, actions, onToggle, actionExecutor, menuButtonTooltip }: TreeNodeMenuProps<TActions>): JSX.Element;
|
|
3500
|
+
displayName: string;
|
|
3501
|
+
};
|
|
3502
|
+
|
|
3469
3503
|
/**
|
|
3470
3504
|
* Tree node menu action component.
|
|
3471
3505
|
*/
|
|
@@ -3530,6 +3564,39 @@ export declare interface TreeNodeMenuActionsProps {
|
|
|
3530
3564
|
readonly dataTestIdMenuButton?: string;
|
|
3531
3565
|
}
|
|
3532
3566
|
|
|
3567
|
+
export declare interface TreeNodeMenuProps<TActionType extends TreeNodeAction> {
|
|
3568
|
+
/**
|
|
3569
|
+
* Indicates if the actions menu is disabled. Defaults to `false`.
|
|
3570
|
+
*/
|
|
3571
|
+
readonly disabled?: boolean;
|
|
3572
|
+
/**
|
|
3573
|
+
* Indicates if the menu is opened. Defaults to `false`.
|
|
3574
|
+
*/
|
|
3575
|
+
readonly isOpen: boolean;
|
|
3576
|
+
/**
|
|
3577
|
+
* Collection of the node actions.
|
|
3578
|
+
*/
|
|
3579
|
+
readonly actions: TActionType[];
|
|
3580
|
+
/**
|
|
3581
|
+
* Event fired when menu is toggled.
|
|
3582
|
+
* @param isOpen Indicates if the menu is opened.
|
|
3583
|
+
*/
|
|
3584
|
+
readonly onToggle?: (isOpen: boolean) => void;
|
|
3585
|
+
/**
|
|
3586
|
+
* Event handler fired when action of certain type is executed.
|
|
3587
|
+
* @param action Action that was executed.
|
|
3588
|
+
*/
|
|
3589
|
+
readonly actionExecutor: (action: TActionType) => void;
|
|
3590
|
+
/**
|
|
3591
|
+
* Reference to the first action in the actions list.
|
|
3592
|
+
*/
|
|
3593
|
+
readonly firstActionRef?: React.RefObject<HTMLDivElement>;
|
|
3594
|
+
/**
|
|
3595
|
+
* Tooltip of the button which opens the menu.
|
|
3596
|
+
*/
|
|
3597
|
+
readonly menuButtonTooltip: string;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3533
3600
|
export declare type TreeNodeProps<TIsDraggable = boolean> = TIsDraggable extends true ? {
|
|
3534
3601
|
/** Indicates if node is draggable. */
|
|
3535
3602
|
isDraggable: TIsDraggable;
|