@kentico/xperience-admin-components 30.2.1 → 30.3.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
@@ -3,8 +3,8 @@ import { ConnectDragSource } from 'react-dnd';
3
3
  import { ConnectDropTarget } from 'react-dnd';
4
4
  import { CSSProperties } from 'react';
5
5
  import { DefineIconParameters } from 'froala-editor';
6
- import { DraggableProvidedDragHandleProps } from 'react-beautiful-dnd';
7
- import { DropResult } from 'react-beautiful-dnd';
6
+ import { DraggableProvidedDragHandleProps } from '@hello-pangea/dnd';
7
+ import { DropResult } from '@hello-pangea/dnd';
8
8
  import { ForwardRefExoticComponent } from 'react';
9
9
  import { FroalaOptions } from 'froala-editor';
10
10
  import { HTMLAttributeAnchorTarget } from 'react';
@@ -352,6 +352,10 @@ declare interface BaseNotificationBarProps extends UITestProps {
352
352
  * Disables the bold weight of the text.
353
353
  */
354
354
  readonly noBoldWeight?: boolean;
355
+ /**
356
+ * Additional class name for the notification bar.
357
+ */
358
+ readonly className?: string;
355
359
  readonly children: string | React.ReactNode;
356
360
  }
357
361
 
@@ -997,6 +1001,45 @@ export declare enum Cols {
997
1001
 
998
1002
  export declare const Column: React_2.ForwardRefExoticComponent<ColumnProps & React_2.RefAttributes<HTMLDivElement>>;
999
1003
 
1004
+ export declare const ColumnChart: {
1005
+ ({ data, legendTitle, getColumnLabel, getBetweenColumnLabel }: ColumnChartProps): JSX_2.Element;
1006
+ displayName: string;
1007
+ };
1008
+
1009
+ export declare type ColumnChartData = {
1010
+ /**
1011
+ * The ID of the column.
1012
+ */
1013
+ columnId: string;
1014
+ /**
1015
+ * The value of the column.
1016
+ */
1017
+ columnValue: number;
1018
+ /**
1019
+ * The tooltip for the column label.
1020
+ */
1021
+ columnLabelTooltip?: string;
1022
+ };
1023
+
1024
+ export declare type ColumnChartProps = {
1025
+ /**
1026
+ * The data for the chart.
1027
+ */
1028
+ data: ColumnChartData[];
1029
+ /**
1030
+ * The legend title.
1031
+ */
1032
+ legendTitle: string;
1033
+ /**
1034
+ * The label for the column.
1035
+ */
1036
+ getColumnLabel: (dataContext: ColumnChartData) => string;
1037
+ /**
1038
+ * The label between the columns.
1039
+ */
1040
+ getBetweenColumnLabel: (dataContext: ColumnChartData) => string;
1041
+ };
1042
+
1000
1043
  export declare enum ColumnContentType {
1001
1044
  Action = "action",
1002
1045
  Text = "text",
@@ -1553,6 +1596,8 @@ declare enum FileSizeUnit {
1553
1596
 
1554
1597
  export declare function forceClickOutside(e?: MouseEvent): void;
1555
1598
 
1599
+ export declare const FormatChartText: (text: string, bold: boolean | undefined, fontSize: number | undefined) => string;
1600
+
1556
1601
  /**
1557
1602
  * Formats file size to a readable string.
1558
1603
  * @param fileSizeObject Object containing formatted file size and units.
@@ -2143,6 +2188,7 @@ export declare const KXIcons: {
2143
2188
  'xp-crosshair-o': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2144
2189
  'xp-cup': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2145
2190
  'xp-custom-element': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2191
+ 'xp-customer-journey': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2146
2192
  'xp-database': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2147
2193
  'xp-desktop': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2148
2194
  'xp-dialog-window-cogwheel': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
@@ -2593,6 +2639,7 @@ export declare const KXIconSets: {
2593
2639
  'xp-crosshair-o': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2594
2640
  'xp-cup': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2595
2641
  'xp-custom-element': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2642
+ 'xp-customer-journey': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2596
2643
  'xp-database': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2597
2644
  'xp-desktop': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
2598
2645
  'xp-dialog-window-cogwheel': ForwardRefExoticComponent<GeneratedIconProps & RefAttributes<SVGSVGElement>>;
@@ -3336,13 +3383,13 @@ declare type NativeInputProps = Pick<React.InputHTMLAttributes<HTMLInputElement>
3336
3383
 
3337
3384
  export declare const NotificationBarAlert: ForwardRefExoticComponent<NotificationBarAlertProps & RefAttributes<HTMLDivElement>>;
3338
3385
 
3339
- export declare interface NotificationBarAlertProps extends Pick<BaseNotificationBarProps, 'noAutoIncrease' | 'children' | 'childrenAsHtml' | 'dataTestId' | 'noBoldWeight'> {
3386
+ export declare interface NotificationBarAlertProps extends Pick<BaseNotificationBarProps, 'noAutoIncrease' | 'children' | 'childrenAsHtml' | 'dataTestId' | 'noBoldWeight' | 'className'> {
3340
3387
  readonly onDismiss?: () => void;
3341
3388
  }
3342
3389
 
3343
3390
  export declare const NotificationBarInfo: ForwardRefExoticComponent<NotificationBarInfoProps & RefAttributes<HTMLDivElement>>;
3344
3391
 
3345
- export declare interface NotificationBarInfoProps extends Pick<BaseNotificationBarProps, 'noAutoIncrease' | 'children' | 'childrenAsHtml' | 'dataTestId' | 'noBoldWeight'> {
3392
+ export declare interface NotificationBarInfoProps extends Pick<BaseNotificationBarProps, 'noAutoIncrease' | 'children' | 'childrenAsHtml' | 'dataTestId' | 'noBoldWeight' | 'className'> {
3346
3393
  readonly onDismiss?: () => void;
3347
3394
  }
3348
3395
 
@@ -3354,7 +3401,7 @@ declare enum NotificationBarType {
3354
3401
 
3355
3402
  export declare const NotificationBarWarning: ForwardRefExoticComponent<NotificationBarWarningProps & RefAttributes<HTMLDivElement>>;
3356
3403
 
3357
- export declare interface NotificationBarWarningProps extends Pick<BaseNotificationBarProps, 'noAutoIncrease' | 'children' | 'childrenAsHtml' | 'dataTestId' | 'noBoldWeight'> {
3404
+ export declare interface NotificationBarWarningProps extends Pick<BaseNotificationBarProps, 'noAutoIncrease' | 'children' | 'childrenAsHtml' | 'dataTestId' | 'noBoldWeight' | 'className'> {
3358
3405
  readonly onDismiss?: () => void;
3359
3406
  }
3360
3407
 
@@ -4718,6 +4765,8 @@ export declare interface TagTableCellComponentProps {
4718
4765
  export declare enum TestIds {
4719
4766
  Chevron = "chevron",
4720
4767
  ConfirmAction = "confirm-action",
4768
+ ContentType = "ContentType",
4769
+ Create = "Create",
4721
4770
  DeleteFolderActionButton = "deletefolder-action",
4722
4771
  EnableFolderActionButton = "enablecontentdelivery-action",
4723
4772
  DisplayName = "DisplayName",
@@ -4731,8 +4780,18 @@ export declare enum TestIds {
4731
4780
  SmartFolderFilterForm = "smart-folder-form",
4732
4781
  SmartFolderLabel = "smart-folder-label",
4733
4782
  SubmitButton = "submit-button",
4783
+ CreateEmailForm = "create-email-form",
4734
4784
  TreeItemMenuButton = "tree-item-menu-button",
4735
4785
  Button = "button",
4786
+ AddButton = "button-add",
4787
+ FieldName = "field-name",
4788
+ Email = "Email",
4789
+ EmailTemplate = "EmailTemplate",
4790
+ EmailTemplateDisplayName = "EmailTemplateDisplayName",
4791
+ EmailTemplateCode = "EmailTemplateCode",
4792
+ EmailTemplateDescription = "EmailTemplateDescription",
4793
+ EmailPurpose = "EmailPurpose",
4794
+ ButtonActionMenu = "button-action-menu",
4736
4795
  DeleteButton = "button-Delete",
4737
4796
  SaveSmartFolderDialog = "save-smart-folder-dialog",
4738
4797
  UserNameInputField = "userName",
@@ -4751,6 +4810,7 @@ export declare enum TestIds {
4751
4810
  PasswordInputField = "password",
4752
4811
  ChannelNameCell = "table-cell-ChannelDisplayName",
4753
4812
  TableRow = "table-row",
4813
+ Table = "table",
4754
4814
  AvatarButton = "AvatarButton",
4755
4815
  EnabledForDeliveryIcon = "xp-truck-moving",
4756
4816
  Callout = "callout",
@@ -4758,8 +4818,70 @@ export declare enum TestIds {
4758
4818
  BreadcrumbApplication = "breadcrumb-application",
4759
4819
  EditForm = "edit-form",
4760
4820
  ConfirmationForm = "confirmation-form",
4761
- ItemTile = "item-tile",
4821
+ ApplicationTile = "application-tile",
4822
+ ViewMenuItem = "view-menu-item",
4762
4823
  TemplateLoaderErrorPane = "templateLoaderErrorPane",
4824
+ SnackbarErrorMessage = "snackbar-item-error",
4825
+ SnackbarSuccessMessage = "snackbar-item-success",
4826
+ SideNavigationVerticalMenu = "side-navigation-vertical-menu",
4827
+ AutomationNodeStatisticsCount = "statistics-count",
4828
+ AutomationProcessDisplayName = "WorkflowDisplayName",
4829
+ AutomationProcessRecurrenceType = "WorkflowRecurrenceType",
4830
+ AutomationSaveButton = "save-automation-button",
4831
+ AutomationAddTriggerButton = "rf__node-startPlaceholder",
4832
+ AutomationAddStepButton = "rf__node-endPlaceholder-1",
4833
+ AutomationFormTrigger = "item-tile-form",
4834
+ AutomationRegistrationTrigger = "item-tile-registration",
4835
+ ItemTileWait = "item-tile-wait",
4836
+ ItemTileSendEmail = "item-tile-send-email",
4837
+ ItemTileCondition = "item-tile-condition",
4838
+ ItemTileFinish = "item-tile-finish",
4839
+ StepDisplayName = "StepDisplayName",
4840
+ SelectForm = "select-a-form",
4841
+ AfterTime = "AfterTime",
4842
+ AutomationStepForm = "automation-step-form",
4843
+ AutomationProcessSidePanel = "automation-process-side-panel",
4844
+ AddCondition = "add-condition",
4845
+ AddConditionGroup = "add-condition-group",
4846
+ DeleteConditionButton = "delete-condition-button",
4847
+ ContactIsMember = "cmscontactismember",
4848
+ EmailChannelSendingDomain = "EmailChannelSendingDomain",
4849
+ EmailChannelServiceDomain = "EmailChannelServiceDomain",
4850
+ ContentTypeName = "ClassDisplayName",
4851
+ ContentTypeCodeNameSpace = "code-name-namespace",
4852
+ ContentTypeCodeName = "code-name",
4853
+ Icon = "icon-value",
4854
+ ClassContentTypeType = "ClassContentTypeType",
4855
+ OpenBindingSidepanel = "open-binding-sidepanel",
4856
+ ButtonOpenSidepanel = "button-open-binding-sidepanel",
4857
+ ContentItemSplitButtonContinue = "content-item-menu-split-button-continue",
4858
+ ContentItemSplitButtonPublish = "content-item-menu-split-button-publish",
4859
+ ExpandSplitButton = "expand-split-button",
4860
+ EmailConfigurationMenuActions = "email-configuration-menu-actions",
4861
+ MenuActions = "menu-actions",
4862
+ ContentItemActionButton = "content-item-action-button",
4863
+ ContentItemDiscard = "content-item-action-button-discard",
4864
+ ContentItemButtonCreate = "content-item-action-button-create",
4865
+ ContentItemContinueButton = "content-item-action-button-continue",
4866
+ ContentItemSavecontent = "content-item-action-button-save",
4867
+ ContentItemConfirmFirstSelection = "content-item-action-button-confirmfirstselection",
4868
+ ContentItemActionMenu = "content-item-action-menu",
4869
+ ContentItemSendDraft = "content-item-action-menu-senddraft",
4870
+ ContentItemDelete = "content-item-action-menu-delete",
4871
+ ContetItemRevertToPublished = "content-item-action-menu-item-discardchanges",
4872
+ ContentItemClone = "content-item-action-menu-item-clone",
4873
+ EmailSubject = "EmailSubject",
4874
+ EmailName = "EmailName",
4875
+ EmailTemplateProperties = "email-template",
4876
+ EmailSender = "sender",
4877
+ EmailPanelContent = "email-panel-content",
4878
+ EmailChannelSenderDisplayName = "EmailChannelSenderDisplayName",
4879
+ EmailChannelSenderEmailAddress = "EmailChannelSenderEmailAddress",
4880
+ SenderAndRecipients = "Sender and recipients",
4881
+ ButtonSelectEmail = "button-select-email",
4882
+ SelectEmail = "SelectEmail",
4883
+ PageMenuActions = "page-menu-actions",
4884
+ ItemTile = "item-tile",
4763
4885
  GoToDashboardButton = "button-goToDashboard",
4764
4886
  Snackbar = "snackbar",
4765
4887
  SendingDomain = "EmailChannelSendingDomain",
@@ -4785,8 +4907,6 @@ export declare enum TestIds {
4785
4907
  DraggableButton = "draggable-button",
4786
4908
  EmailContentFieldsChevron = "email-content-fields-dropdown-indicator",
4787
4909
  BindingSidePanelButton = "button-open-binding-sidepanel",
4788
- SideNavigationVerticalMenu = "side-navigation-vertical-menu",
4789
- EmailTemplateDisplayName = "EmailTemplateDisplayName",
4790
4910
  EmailTemplateSelector = "EmailTemplate",
4791
4911
  ContinueButton = "content-item-action-button-continue",
4792
4912
  CreateEmailPage = "create-email-page",
@@ -4799,7 +4919,6 @@ export declare enum TestIds {
4799
4919
  RteRefinementSuggestionsList = "rte-refinement-suggestions-list",
4800
4920
  SubjectSuggestionsList = "email-subject-suggestions-list",
4801
4921
  BodySuggestionsList = "email-body-suggestions-list",
4802
- EmailSubject = "EmailSubject",
4803
4922
  ProvideAdditionalParametersCheckbox = "ProvideAdditionalParametersCheckbox",
4804
4923
  GenerateWebsiteChannelCheckbox = "GenerateWebsiteChannelCheckbox",
4805
4924
  TopicAndMainMessage = "TopicAndMainMessage",
@@ -4812,7 +4931,6 @@ export declare enum TestIds {
4812
4931
  ContentSource = "Source",
4813
4932
  MaximumNumberOfWords = "MaximumNumberOfWords",
4814
4933
  SnackbarMessage = "snackbar-item-message",
4815
- AutomationNodeStatisticsCount = "statistics-count",
4816
4934
  AutomationNode = "automation-node",
4817
4935
  WorkspaceSelectorDropdownGroup = "WorkspaceSelectionDropdown",
4818
4936
  WorkspaceSelectorDropdownActionMenu = "WorkspaceSelectorDropdownActionMenu",
@@ -5443,12 +5561,33 @@ export declare const VerticalTab: React_2.ForwardRefExoticComponent<VerticalTabP
5443
5561
  * @extends UITestProps
5444
5562
  */
5445
5563
  export declare interface VerticalTabProps extends UITestProps {
5564
+ /**
5565
+ * Primary text of the vertical tab.
5566
+ */
5446
5567
  readonly primaryText: string;
5568
+ /**
5569
+ * Secondary text of the vertical tab. Use new line character if you need texts for multiple lines.
5570
+ */
5447
5571
  readonly secondaryText?: string;
5572
+ /**
5573
+ * Indicates if the vertical tab is disabled.
5574
+ */
5448
5575
  readonly disabled?: boolean;
5576
+ /**
5577
+ * Indicates if the vertical tab is selected.
5578
+ */
5449
5579
  readonly selected?: boolean;
5580
+ /**
5581
+ * Leading element of the vertical tab.
5582
+ */
5450
5583
  readonly leadingElement?: React_2.ReactNode;
5584
+ /**
5585
+ * Trailing element of the vertical tab.
5586
+ */
5451
5587
  readonly trailingElement?: React_2.ReactNode;
5588
+ /**
5589
+ * On click event handler.
5590
+ */
5452
5591
  readonly onClick?: (e: MouseEvent_2<HTMLElement> | KeyboardEvent_2<HTMLElement>) => void;
5453
5592
  }
5454
5593