@kentico/xperience-admin-base 23.0.2 → 23.0.4

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.
Files changed (2) hide show
  1. package/dist/entry.d.ts +90 -2
  2. package/package.json +2 -2
package/dist/entry.d.ts CHANGED
@@ -614,30 +614,113 @@ export declare interface RoutingContentPlaceholderProps {
614
614
  * Represents properties for Dialog context component.
615
615
  */
616
616
  export declare interface TemplateDialogContextProps {
617
+ /**
618
+ * Indicates whether the dialog is displayed.
619
+ */
617
620
  readonly isInDialog: boolean;
621
+ /**
622
+ * Title of the dialog.
623
+ */
618
624
  readonly title: string;
625
+ /**
626
+ * Sets the title of the dialog.
627
+ */
619
628
  readonly setTitle: (title: string) => void;
629
+ /**
630
+ * Minimal width of the dialog.
631
+ */
620
632
  readonly minWidth?: string | number;
633
+ /**
634
+ * Sets minimal width of the dialog.
635
+ */
621
636
  readonly setMinWidth: (width: string | number) => void;
637
+ /**
638
+ * Width of the dialog.
639
+ */
622
640
  readonly width?: string | number;
641
+ /**
642
+ * Sets width of the dialog.
643
+ */
623
644
  readonly setWidth: (width: string | number) => void;
645
+ /**
646
+ * Maximal width of the dialog.
647
+ */
624
648
  readonly maxWidth?: string | number;
649
+ /**
650
+ * Sets maximal width of the dialog.
651
+ */
625
652
  readonly setMaxWidth: (width: string | number) => void;
653
+ /**
654
+ * Minimal height of the dialog.
655
+ */
626
656
  readonly minHeight?: string | number;
657
+ /**
658
+ * Sets minimal height of the dialog.
659
+ */
627
660
  readonly setMinHeight: (height: string | number) => void;
661
+ /**
662
+ * Height of the dialog.
663
+ */
628
664
  readonly height?: string | number;
665
+ /**
666
+ * Sets height of the dialog.
667
+ */
629
668
  readonly setHeight: (height: string | number) => void;
669
+ /**
670
+ * Maximal height of the dialog.
671
+ */
630
672
  readonly maxHeight?: string | number;
673
+ /**
674
+ * Sets maximal height of the dialog.
675
+ */
631
676
  readonly setMaxHeight: (height: string | number) => void;
677
+ /**
678
+ * Indicates whether the dialog is displayed in fullscreen view.
679
+ */
680
+ readonly isFullscreen: boolean;
681
+ /**
682
+ * Sets whether the dialog has dimensions of the fullscreen.
683
+ */
684
+ readonly setIsFullscreen: (isFullscreen: boolean) => void;
685
+ /**
686
+ * Represents handlers for dialog actions.
687
+ */
632
688
  readonly dialogHandlers: DialogHandlers;
689
+ /**
690
+ * @deprecated Property is deprecated and will be removed in the next version.
691
+ *
692
+ * Dialog messages.
693
+ */
633
694
  readonly messages: NotificationMessage[];
695
+ /**
696
+ * @deprecated Property is deprecated and will be removed in the next version.
697
+ *
698
+ * Adds dialog message.
699
+ */
634
700
  readonly addDialogMessage: (message: NotificationMessage) => void;
701
+ /**
702
+ * @deprecated Property is deprecated and will be removed in the next version.
703
+ *
704
+ * Removes dialog message.
705
+ */
635
706
  readonly removeDialogMessage: (id: string | number) => void;
707
+ /**
708
+ * @deprecated Property is deprecated and will be removed in the next version.
709
+ *
710
+ * Determines whether message should be displayed inside of the dialog instead of the standard snackbar.
711
+ */
636
712
  readonly canProcessMessageType: (messageVariant: NotificationMessageType) => boolean;
713
+ /**
714
+ * Closes the dialog.
715
+ */
637
716
  readonly closeDialog: () => void;
638
- readonly isFullscreen: boolean;
639
- readonly setIsFullscreen: (isFullscreen: boolean) => void;
717
+ /**
718
+ * Indicates whether dialog action is currently in progress.
719
+ */
640
720
  readonly actionInProgress: boolean;
721
+ /**
722
+ * Sets whether dialog action is currently in progress.
723
+ */
641
724
  readonly setActionInProgress: (prevent: boolean) => void;
642
725
  }
643
726
 
@@ -705,6 +788,11 @@ export declare function usePageCommand<TCommandResult, TCommandData = void>(comm
705
788
  */
706
789
  export declare const usePageCommandProvider: () => CommandContextType;
707
790
 
791
+ /**
792
+ * Allows access to dialog properties.
793
+ *
794
+ * @returns Members to customize the dialog.
795
+ */
708
796
  export declare const useTemplateDialog: () => TemplateDialogContextProps;
709
797
 
710
798
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kentico/xperience-admin-base",
3
- "version": "23.0.2",
3
+ "version": "23.0.4",
4
4
  "main": "dist/entry.js",
5
5
  "types": "dist/entry.d.ts",
6
6
  "files": [
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "license": "SEE LICENSE IN LICENSE.txt",
18
18
  "dependencies": {
19
- "@kentico/xperience-admin-components": "23.0.2",
19
+ "@kentico/xperience-admin-components": "23.0.4",
20
20
  "@react-aria/focus": "^3.9.0",
21
21
  "@react-aria/visually-hidden": "^3.5.0",
22
22
  "classnames": "^2.3.2",