@kentico/xperience-admin-components 30.11.3 → 30.12.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/README.md +9 -0
- package/dist/entry.d.ts +64 -8
- package/dist/entry.js +113 -113
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Xperience by Kentico - Admin Client Package
|
|
2
|
+
|
|
3
|
+
This package is part of the Xperience by Kentico administration interface framework.
|
|
4
|
+
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
For setup instructions, usage guidelines, and customization options, please refer to the official Xperience by Kentico documentation:
|
|
8
|
+
|
|
9
|
+
**[Extend the administration interface](https://docs.kentico.com/x/GwKQC)**
|
package/dist/entry.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { DefineIconParameters } from 'froala-editor';
|
|
|
6
6
|
import { DraggableProvidedDragHandleProps } from '@hello-pangea/dnd';
|
|
7
7
|
import { DropResult } from '@hello-pangea/dnd';
|
|
8
8
|
import { ForwardRefExoticComponent } from 'react';
|
|
9
|
+
import { default as FroalaEditor } from 'froala-editor';
|
|
9
10
|
import { FroalaOptions } from 'froala-editor';
|
|
10
11
|
import { HTMLAttributeAnchorTarget } from 'react';
|
|
11
12
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -467,6 +468,10 @@ declare interface BaseTileProps extends BaseTileBaseProps, UITestProps {
|
|
|
467
468
|
* Function called when tile is clicked.
|
|
468
469
|
*/
|
|
469
470
|
readonly onClick?: () => void;
|
|
471
|
+
/**
|
|
472
|
+
* URL to navigate to when tile is clicked. If provided, tile will be rendered as NavLink.
|
|
473
|
+
*/
|
|
474
|
+
readonly href?: string;
|
|
470
475
|
/**
|
|
471
476
|
* Specifies if checkbox in tile info bar is visible.
|
|
472
477
|
*/
|
|
@@ -1196,10 +1201,10 @@ export declare const ContentItemTilePreview: React_2.ForwardRefExoticComponent<C
|
|
|
1196
1201
|
/**
|
|
1197
1202
|
* Selected props from ContentItemTileProps for Preview tile.
|
|
1198
1203
|
*/
|
|
1199
|
-
export declare interface ContentItemTilePreviewProps extends ContentItemTileExtendedProps, BaseTileBaseProps, Pick<ContentItemTileProps, 'onClick' | 'isSelected' | 'onChange' | 'isCheckboxVisible' | 'selectOnClick' | 'actions' | 'dataTestId' | 'inactiveMessage' | 'isDragging' | 'dragElement'> {
|
|
1204
|
+
export declare interface ContentItemTilePreviewProps extends ContentItemTileExtendedProps, BaseTileBaseProps, Pick<ContentItemTileProps, 'onClick' | 'isSelected' | 'onChange' | 'isCheckboxVisible' | 'selectOnClick' | 'actions' | 'href' | 'dataTestId' | 'inactiveMessage' | 'isDragging' | 'dragElement'> {
|
|
1200
1205
|
}
|
|
1201
1206
|
|
|
1202
|
-
declare interface ContentItemTileProps extends ContentItemTileExtendedProps, Pick<BaseTileProps, 'errorState' | 'url' | 'uploadState' | 'name' | 'disabled' | 'isCheckboxVisible' | 'selectOnClick' | 'isSelected' | 'isDragging' | 'onChange' | 'onClick' | 'dataTestId' | 'actions' | 'inactiveMessage'> {
|
|
1207
|
+
declare interface ContentItemTileProps extends ContentItemTileExtendedProps, Pick<BaseTileProps, 'errorState' | 'url' | 'uploadState' | 'name' | 'disabled' | 'isCheckboxVisible' | 'selectOnClick' | 'isSelected' | 'isDragging' | 'onChange' | 'onClick' | 'href' | 'dataTestId' | 'actions' | 'inactiveMessage'> {
|
|
1203
1208
|
/**
|
|
1204
1209
|
* Type of content item.
|
|
1205
1210
|
*/
|
|
@@ -1632,6 +1637,14 @@ export declare interface DropzoneOverlayProps extends DropzoneProps {
|
|
|
1632
1637
|
* The main title of the dropzone, which will be shown to the user in the center of the screen.
|
|
1633
1638
|
*/
|
|
1634
1639
|
readonly title?: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* Additional class name(s) to be added to the dropzone overlay container.
|
|
1642
|
+
*/
|
|
1643
|
+
readonly className?: string;
|
|
1644
|
+
/**
|
|
1645
|
+
* Additional class name(s) to be added to the overlay element.
|
|
1646
|
+
*/
|
|
1647
|
+
readonly overlayClassName?: string;
|
|
1635
1648
|
}
|
|
1636
1649
|
|
|
1637
1650
|
export declare interface DropzoneProps {
|
|
@@ -1764,6 +1777,8 @@ export declare interface FormItemWrapperProps extends UITestProps {
|
|
|
1764
1777
|
readonly labelActionsElement?: React_2.ReactNode;
|
|
1765
1778
|
}
|
|
1766
1779
|
|
|
1780
|
+
export { FroalaEditor }
|
|
1781
|
+
|
|
1767
1782
|
/** Configurator enables custom Froala Typescript plugins to use global Froala configuration methods, which would be unavailable due to different module context. */
|
|
1768
1783
|
export declare interface FroalaEditorConfigurator {
|
|
1769
1784
|
readonly defineIcon: (iconName: string, parameters: Partial<DefineIconParameters>) => void;
|
|
@@ -4792,6 +4807,10 @@ export declare interface TableProps extends UITestProps {
|
|
|
4792
4807
|
* Callback {@link TableProps.onRowClick} is invoked if defined.
|
|
4793
4808
|
*/
|
|
4794
4809
|
readonly toggleSelectionOnRowClick?: boolean;
|
|
4810
|
+
/**
|
|
4811
|
+
* Represents the index of the current page when table data is paginated.
|
|
4812
|
+
*/
|
|
4813
|
+
readonly pageIndex?: number;
|
|
4795
4814
|
}
|
|
4796
4815
|
|
|
4797
4816
|
export declare interface TableRow {
|
|
@@ -4893,7 +4912,7 @@ export declare interface TableRowProps extends UITestProps {
|
|
|
4893
4912
|
/**
|
|
4894
4913
|
* Callback when selectable row is selected.
|
|
4895
4914
|
*/
|
|
4896
|
-
readonly onRowSelect?: (selected: boolean) => void;
|
|
4915
|
+
readonly onRowSelect?: (selected: boolean, shiftKey?: boolean) => void;
|
|
4897
4916
|
/**
|
|
4898
4917
|
* Callback when row is clicked on.
|
|
4899
4918
|
*/
|
|
@@ -5038,9 +5057,11 @@ declare const testIds: {
|
|
|
5038
5057
|
Create_V2: "Create";
|
|
5039
5058
|
CreateFolder_V2: "createfolder-action";
|
|
5040
5059
|
CreateNewStage: "create-new-stage-button";
|
|
5041
|
-
|
|
5042
|
-
Delete_V4: "delete-action";
|
|
5060
|
+
DeleteContentItem: "button-Move to recycle bin";
|
|
5043
5061
|
DeleteFolder: "deletefolder-action";
|
|
5062
|
+
DeleteInListing: "button-Delete";
|
|
5063
|
+
DeleteInTree: "delete-action";
|
|
5064
|
+
DeleteMassAction: "Move to recycle bin-action";
|
|
5044
5065
|
EditRecipientListBasicData: "edit-recipient-list-basic-data-button";
|
|
5045
5066
|
EmailContentFieldsDropdown: "email-content-fields-dropdown-indicator";
|
|
5046
5067
|
EnableContentDelivery: "enablecontentdelivery-action";
|
|
@@ -5052,8 +5073,10 @@ declare const testIds: {
|
|
|
5052
5073
|
MoveFolder: "movefolder-action";
|
|
5053
5074
|
NestedActionMenuItemMassUpload: "nested-action-menu-item-mass-upload";
|
|
5054
5075
|
OpenBindingSidePanel: "button-open-binding-sidepanel";
|
|
5076
|
+
PermanentlyDelete: "button-Delete permanently";
|
|
5055
5077
|
RemoveBinding: "button-RemoveBinding";
|
|
5056
5078
|
RenameFolder: "renamefolder-action";
|
|
5079
|
+
Restore: "button-Restore";
|
|
5057
5080
|
RichTextEditorRefinements: "rich-text-editor-refinements-button";
|
|
5058
5081
|
Save: "button-save";
|
|
5059
5082
|
WebsiteChannel: "website-channel";
|
|
@@ -5089,10 +5112,10 @@ declare const testIds: {
|
|
|
5089
5112
|
CreateNewContentItem: "button-create-new-content-item";
|
|
5090
5113
|
CreateNewVersion: "content-item-menu-split-button-createnewversion";
|
|
5091
5114
|
CreatePage: "create-page-button";
|
|
5092
|
-
|
|
5093
|
-
Delete_V2: "button-delete";
|
|
5115
|
+
Delete: "delete-button";
|
|
5094
5116
|
DeleteAction: "Delete-action";
|
|
5095
5117
|
DeleteConditionButton: "delete-condition-button";
|
|
5118
|
+
DeleteCustomerJourneyStageBuilder: "button-delete";
|
|
5096
5119
|
DialogFooterAction: "dialog-footer-action";
|
|
5097
5120
|
Draggable: "draggable-button";
|
|
5098
5121
|
Edit_V1: "button-edit";
|
|
@@ -5119,7 +5142,6 @@ declare const testIds: {
|
|
|
5119
5142
|
Recalculate: "button-recalculate";
|
|
5120
5143
|
RecalculateAutomationsStatistics: "recalculate-automations-statistics-button";
|
|
5121
5144
|
RecalculateEmailStatistics: "recalculate-email-statistics-button";
|
|
5122
|
-
Restore: "restore-button";
|
|
5123
5145
|
SaveAutomation: "save-automation-button";
|
|
5124
5146
|
SavePermissions: "save-permissions-button";
|
|
5125
5147
|
SecondaryAction: "secondary-action";
|
|
@@ -5238,6 +5260,7 @@ declare const testIds: {
|
|
|
5238
5260
|
Logon: "logonForm";
|
|
5239
5261
|
Mfa: "mfaForm";
|
|
5240
5262
|
Properties: "properties-form";
|
|
5263
|
+
SmartAssetInlineUpload: "smart-asset-inline-upload-form";
|
|
5241
5264
|
SmartFolder: "smart-folder-form";
|
|
5242
5265
|
};
|
|
5243
5266
|
Headlines: {
|
|
@@ -5424,6 +5447,7 @@ declare const testIds: {
|
|
|
5424
5447
|
SelectedLanguage: "selected-language-item";
|
|
5425
5448
|
SelectLibrary: "select-library-item";
|
|
5426
5449
|
TreeNodeAction: "action";
|
|
5450
|
+
UploadFiles: "upload-files-menu-item";
|
|
5427
5451
|
};
|
|
5428
5452
|
NotificationBars: {
|
|
5429
5453
|
Alert: "notification-bar-alert-0";
|
|
@@ -5518,6 +5542,7 @@ declare const testIds: {
|
|
|
5518
5542
|
WebPage: "select-web-page";
|
|
5519
5543
|
Workspace: "select-workspace";
|
|
5520
5544
|
WorkspaceID: "WorkspaceID";
|
|
5545
|
+
WorkspaceId: "WorkspaceId";
|
|
5521
5546
|
WorkspaceItem: "workspace-item-selector";
|
|
5522
5547
|
};
|
|
5523
5548
|
SideMenus: {
|
|
@@ -6187,6 +6212,37 @@ export declare const useMediaBreakpoints: () => {
|
|
|
6187
6212
|
*/
|
|
6188
6213
|
export declare const useMobileKeyboard: (minKeyboardHeight?: number) => boolean;
|
|
6189
6214
|
|
|
6215
|
+
/**
|
|
6216
|
+
* Hook for handling range selection with shift+click multi-select functionality.
|
|
6217
|
+
* Allows selecting a range of items by holding shift and clicking.
|
|
6218
|
+
*/
|
|
6219
|
+
export declare function useRangeSelection<T = unknown>({ selectedItems, items, onSelectionChange, resetDependency }: UseRangeSelectionOptions<T>): {
|
|
6220
|
+
onSelectItem: (identifier: T, selected: boolean, shiftKey?: boolean) => void;
|
|
6221
|
+
resetLastClickedIndex: () => void;
|
|
6222
|
+
};
|
|
6223
|
+
|
|
6224
|
+
declare interface UseRangeSelectionOptions<T> {
|
|
6225
|
+
/**
|
|
6226
|
+
* Array of currently selected item identifiers.
|
|
6227
|
+
*/
|
|
6228
|
+
readonly selectedItems: T[];
|
|
6229
|
+
/**
|
|
6230
|
+
* Array of all available items.
|
|
6231
|
+
*/
|
|
6232
|
+
readonly items: Array<{
|
|
6233
|
+
identifier: T;
|
|
6234
|
+
disabled?: boolean;
|
|
6235
|
+
}> | undefined;
|
|
6236
|
+
/**
|
|
6237
|
+
* Callback when selection changes.
|
|
6238
|
+
*/
|
|
6239
|
+
readonly onSelectionChange: (selectedItems: T[]) => void;
|
|
6240
|
+
/**
|
|
6241
|
+
* Optional page index or other dependency to reset last clicked index.
|
|
6242
|
+
*/
|
|
6243
|
+
readonly resetDependency?: unknown;
|
|
6244
|
+
}
|
|
6245
|
+
|
|
6190
6246
|
export declare const useScrollDown: (throttleInterval?: number) => boolean;
|
|
6191
6247
|
|
|
6192
6248
|
export declare const useSidePanel: () => SidePanelManagerContextType;
|