@kentico/xperience-admin-base 14.0.0-109224
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/commands/CommandContext.d.ts +27 -0
- package/dist/commands/CommandProvider.d.ts +12 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/useCommand.types.d.ts +36 -0
- package/dist/commands/useCommandInvoker.d.ts +11 -0
- package/dist/commands/usePageCommand.d.ts +11 -0
- package/dist/components/ActionList/ActionList.d.ts +2 -0
- package/dist/components/ActionList/ActionList.types.d.ts +5 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +32 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.d.ts +5 -0
- package/dist/components/ViewMenuItem/ViewMenuItem.types.d.ts +16 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/loader/Loader.d.ts +1 -0
- package/dist/components/page-loader/PageLoader.d.ts +5 -0
- package/dist/components/page-message-pane/PageMessagePane.d.ts +7 -0
- package/dist/components/portal/Portal.d.ts +8 -0
- package/dist/entry.d.ts +15 -0
- package/dist/entry.js +28 -0
- package/dist/forms/form/Form.d.ts +6 -0
- package/dist/forms/form/Form.types.d.ts +129 -0
- package/dist/forms/form/FormField.d.ts +5 -0
- package/dist/forms/form/FormField.types.d.ts +15 -0
- package/dist/forms/form/formCategory/FormCategory.d.ts +2 -0
- package/dist/forms/form/formCategory/FormCategory.types.d.ts +11 -0
- package/dist/forms/form/index.d.ts +4 -0
- package/dist/forms/form/utils/parseFormCategories.d.ts +2 -0
- package/dist/forms/form-components/FormComponent.types.d.ts +24 -0
- package/dist/forms/form-components/FormComponentLoader.d.ts +2 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorDropTile.d.ts +1 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.types.d.ts +11 -0
- package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +2 -0
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +2 -0
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +18 -0
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +16 -0
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +2 -0
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +11 -0
- package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.types.d.ts +9 -0
- package/dist/forms/form-components/formComponentUtils.d.ts +5 -0
- package/dist/forms/form-components/index.d.ts +20 -0
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +2 -0
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +3 -0
- package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +2 -0
- package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.types.d.ts +23 -0
- package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.d.ts +2 -0
- package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.types.d.ts +9 -0
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +2 -0
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.types.d.ts +14 -0
- package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.d.ts +2 -0
- package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.types.d.ts +15 -0
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +5 -0
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +6 -0
- package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.d.ts +10 -0
- package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.types.d.ts +10 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.d.ts +2 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.types.d.ts +3 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/index.d.ts +2 -0
- package/dist/forms/form-components/rich-text-editor-form-component/plugins/index.d.ts +1 -0
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +2 -0
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +4 -0
- package/dist/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.d.ts +2 -0
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +2 -0
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.types.d.ts +5 -0
- package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponent.d.ts +7 -0
- package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponentProps.types.d.ts +43 -0
- package/dist/forms/hooks/FormComponentCommand.types.d.ts +7 -0
- package/dist/forms/hooks/FormComponentCommandUtils.d.ts +4 -0
- package/dist/forms/hooks/index.d.ts +4 -0
- package/dist/forms/hooks/useDisplayDialogInFullscreen.d.ts +1 -0
- package/dist/forms/hooks/useFormComponentCommand.d.ts +4 -0
- package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +4 -0
- package/dist/forms/hooks/useValidationRule.d.ts +2 -0
- package/dist/forms/index.d.ts +4 -0
- package/dist/forms/validation-rules/ValidationRule.types.d.ts +13 -0
- package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +2 -0
- package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +7 -0
- package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.d.ts +11 -0
- package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.types.d.ts +14 -0
- package/dist/forms/validation-rules/email-rule/EmailValidationRule.d.ts +9 -0
- package/dist/forms/validation-rules/email-rule/EmailValidationRule.types.d.ts +5 -0
- package/dist/forms/validation-rules/identifier-rule/IdentifierValidationRule.d.ts +8 -0
- package/dist/forms/validation-rules/index.d.ts +15 -0
- package/dist/forms/validation-rules/invalid-items-rule/InvalidItemsValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.d.ts +9 -0
- package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +3 -0
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +3 -0
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +4 -0
- package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.d.ts +4 -0
- package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.types.d.ts +3 -0
- package/dist/forms/validation-rules/required-value-rule/RequiredValueValidationRule.d.ts +2 -0
- package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +2 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/useBlocker.d.ts +5 -0
- package/dist/hooks/useComponent.d.ts +2 -0
- package/dist/hooks/useFieldInfoObject.d.ts +2 -0
- package/dist/hooks/useInterval.d.ts +1 -0
- package/dist/hooks/useIsPathActive.d.ts +9 -0
- package/dist/hooks/useLoadDropdownOptions.d.ts +6 -0
- package/dist/hooks/useNotificationMessage.d.ts +9 -0
- package/dist/hooks/usePagePath.d.ts +5 -0
- package/dist/hooks/usePrompt.d.ts +5 -0
- package/dist/localization/Localization.types.d.ts +7 -0
- package/dist/localization/LocalizationContext.d.ts +4 -0
- package/dist/localization/LocalizationProvider.d.ts +2 -0
- package/dist/localization/index.d.ts +4 -0
- package/dist/notifications/NotificationsContext.d.ts +5 -0
- package/dist/notifications/NotificationsContext.types.d.ts +13 -0
- package/dist/notifications/index.d.ts +2 -0
- package/dist/providers/CustomRightSidebarProvider.d.ts +10 -0
- package/dist/providers/backgroundImageProvider.d.ts +11 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/shared-components/ActionButtons/ActionButton/ActionButton.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionButton/ActionButton.types.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionButton/index.d.ts +1 -0
- package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.types.d.ts +5 -0
- package/dist/shared-components/ActionButtons/ActionLink/index.d.ts +2 -0
- package/dist/shared-components/ActionButtons/index.d.ts +2 -0
- package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +3 -0
- package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +4 -0
- package/dist/shared-components/AppLinkButton/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.d.ts +3 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.types.d.ts +50 -0
- package/dist/shared-components/Assets/AssetFolderTreeView/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanel.d.ts +5 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanel.types.d.ts +70 -0
- package/dist/shared-components/Assets/AssetPanel/AssetPanelContext.d.ts +6 -0
- package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.d.ts +2 -0
- package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.types.d.ts +85 -0
- package/dist/shared-components/Assets/AssetPanelContent/index.d.ts +2 -0
- package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.d.ts +5 -0
- package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.types.d.ts +8 -0
- package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.d.ts +5 -0
- package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.types.d.ts +6 -0
- package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.d.ts +2 -0
- package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.types.d.ts +6 -0
- package/dist/shared-components/Assets/AssetsLoader/index.d.ts +2 -0
- package/dist/shared-components/Assets/hooks/index.d.ts +3 -0
- package/dist/shared-components/Assets/hooks/useAssetDataManager.d.ts +26 -0
- package/dist/shared-components/Assets/hooks/useAssetFolderManager.d.ts +13 -0
- package/dist/shared-components/Assets/hooks/useAssetFolderManager.types.d.ts +54 -0
- package/dist/shared-components/Assets/hooks/useAssetLibraryManager.d.ts +10 -0
- package/dist/shared-components/Assets/hooks/useAssetLibraryManager.types.d.ts +7 -0
- package/dist/shared-components/Assets/hooks/useAssetManager.d.ts +17 -0
- package/dist/shared-components/Assets/hooks/useAssetManager.types.d.ts +151 -0
- package/dist/shared-components/Assets/hooks/useAssetTilesColumnCount.d.ts +7 -0
- package/dist/shared-components/Assets/hooks/useAssetsInfiniteScroll.d.ts +9 -0
- package/dist/shared-components/Assets/index.d.ts +4 -0
- package/dist/shared-components/Assets/types/Assets.types.d.ts +10 -0
- package/dist/shared-components/Callout/Callout.d.ts +5 -0
- package/dist/shared-components/Callout/Callout.types.d.ts +22 -0
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +33 -0
- package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +16 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ErrorFallbackAlert.d.ts +3 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/index.d.ts +3 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ConditionOverviewModuleLoader.d.ts +7 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterSimpleOverview.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +6 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +24 -0
- package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +5 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +9 -0
- package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +7 -0
- package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/Operators.d.ts +4 -0
- package/dist/shared-components/ConditionBuilder/Types/Constants.d.ts +1 -0
- package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/index.d.ts +8 -0
- package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +2 -0
- package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +6 -0
- package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.d.ts +5 -0
- package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.types.d.ts +27 -0
- package/dist/shared-components/ConfirmationDialog/index.d.ts +2 -0
- package/dist/shared-components/OverviewCard/OverviewCard.d.ts +3 -0
- package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +16 -0
- package/dist/shared-components/OverviewCard/card-components/OverviewCardComponentLoader.d.ts +2 -0
- package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.d.ts +2 -0
- package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.types.d.ts +3 -0
- package/dist/shared-components/OverviewCard/card-components/index.d.ts +1 -0
- package/dist/shared-components/OverviewCard/index.d.ts +3 -0
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +3 -0
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +4 -0
- package/dist/shared-components/OverviewCardGroup/index.d.ts +2 -0
- package/dist/shared-components/StickyHeader/StickyHeader.d.ts +2 -0
- package/dist/shared-components/StickyHeader/StickyHeader.types.d.ts +4 -0
- package/dist/shared-components/StickyHeader/index.d.ts +2 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.d.ts +5 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.types.d.ts +3 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/Base/index.d.ts +2 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.d.ts +5 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.types.d.ts +4 -0
- package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/index.d.ts +2 -0
- package/dist/shared-components/Textarea/index.d.ts +2 -0
- package/dist/shared-components/index.d.ts +15 -0
- package/dist/template-components/builder/PropertiesDialog.d.ts +2 -0
- package/dist/template-components/builder/PropertiesDialog.types.d.ts +40 -0
- package/dist/template-components/builder/PropertiesDialogContext.d.ts +3 -0
- package/dist/template-components/builder/PropertiesDialogContext.types.d.ts +23 -0
- package/dist/template-components/builder/index.d.ts +5 -0
- package/dist/template-components/builder/utils/keysToCamelCase.d.ts +6 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.d.ts +2 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.types.d.ts +5 -0
- package/dist/template-components/content-with-sidebar-layout-wrapper/index.d.ts +2 -0
- package/dist/template-components/dialog/TemplateDialog.d.ts +2 -0
- package/dist/template-components/dialog/TemplateDialog.types.d.ts +8 -0
- package/dist/template-components/dialog/TemplateDialogContext.d.ts +3 -0
- package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +44 -0
- package/dist/template-components/index.d.ts +7 -0
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +3 -0
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +7 -0
- package/dist/template-components/secondary-menu/SecondaryMenu.d.ts +5 -0
- package/dist/template-components/secondary-menu/SecondaryMenuCell.d.ts +7 -0
- package/dist/template-components/secondary-menu/SecondaryMenuHeadline.d.ts +9 -0
- package/dist/template-components/secondary-menu/SecondaryMenuWrapper.d.ts +10 -0
- package/dist/template-components/side-menu/TemplateSideMenu.d.ts +1 -0
- package/dist/template-components/side-menu/side-menu-item/SideMenuItem.d.ts +2 -0
- package/dist/template-components/side-menu/side-menu-item/SideMenuItem.types.d.ts +4 -0
- package/dist/template-components/side-panel/TemplateSidePanel.d.ts +2 -0
- package/dist/template-components/side-panel/TemplateSidePanel.types.d.ts +8 -0
- package/dist/template-components/side-panel/TemplateSidePanelContext.d.ts +3 -0
- package/dist/template-components/side-panel/TemplateSidePanelContext.types.d.ts +32 -0
- package/dist/template-components/template-loader/TemplateLoader.d.ts +5 -0
- package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +13 -0
- package/dist/template-properties/TemplateProperties.types.d.ts +40 -0
- package/dist/template-properties/TemplatePropertiesProvider.d.ts +9 -0
- package/dist/template-properties/index.d.ts +2 -0
- package/dist/templates/app/App.types.d.ts +25 -0
- package/dist/templates/app/AppTemplate.d.ts +3 -0
- package/dist/templates/app/application-menu/ApplicationMenu.d.ts +4 -0
- package/dist/templates/app/application-menu/ApplicationMenu.types.d.ts +5 -0
- package/dist/templates/app/application-menu/application-list/ApplicationList.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/ApplicationList.types.d.ts +31 -0
- package/dist/templates/app/application-menu/application-list/ApplicationListGroup.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/ApplicationListItem.d.ts +4 -0
- package/dist/templates/app/application-menu/application-list/index.d.ts +1 -0
- package/dist/templates/app/application-menu/application-list/utils.d.ts +10 -0
- package/dist/templates/app/application-menu/index.d.ts +1 -0
- package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.d.ts +4 -0
- package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.types.d.ts +5 -0
- package/dist/templates/app/application-menu-mobile/index.d.ts +1 -0
- package/dist/templates/app/avatar/Avatar.d.ts +13 -0
- package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +19 -0
- package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +4 -0
- package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +2 -0
- package/dist/templates/app/breadcrumbs/index.d.ts +2 -0
- package/dist/templates/app/main/Main.d.ts +6 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigation.types.d.ts +11 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationContext.d.ts +4 -0
- package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationProvider.d.ts +2 -0
- package/dist/templates/app/secondary-menu-navigation/index.d.ts +2 -0
- package/dist/templates/app/siteselector/SiteSelector.d.ts +4 -0
- package/dist/templates/app/siteselector/SiteSelector.types.d.ts +27 -0
- package/dist/templates/app/small-status-bar/Cell.d.ts +9 -0
- package/dist/templates/app/small-status-bar/SmallStatusBar.d.ts +5 -0
- package/dist/templates/app/small-status-bar/index.d.ts +1 -0
- package/dist/templates/app/status-bar/StatusBar.d.ts +9 -0
- package/dist/templates/app/status-bar/index.d.ts +1 -0
- package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +2 -0
- package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +7 -0
- package/dist/templates/dashboard/Dashboard.types.d.ts +4 -0
- package/dist/templates/dashboard/DashboardTemplate.d.ts +2 -0
- package/dist/templates/edit/EditSectionTemplate.d.ts +2 -0
- package/dist/templates/edit/EditSectionTemplate.types.d.ts +17 -0
- package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +2 -0
- package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +4 -0
- package/dist/templates/field-editor/FieldEditorForm.d.ts +5 -0
- package/dist/templates/field-editor/FieldEditorForm.types.d.ts +11 -0
- package/dist/templates/field-editor/FieldEditorTemplate.d.ts +14 -0
- package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +83 -0
- package/dist/templates/index.d.ts +13 -0
- package/dist/templates/listing/Listing.types.d.ts +25 -0
- package/dist/templates/listing/ListingTemplate.d.ts +2 -0
- package/dist/templates/no-license/NoLicenseTemplate.d.ts +2 -0
- package/dist/templates/no-license/NoLicenseTemplate.types.d.ts +8 -0
- package/dist/templates/overview/OverviewTemplate.d.ts +2 -0
- package/dist/templates/overview/OverviewTemplate.types.d.ts +31 -0
- package/dist/templates/secondary-menu-layout/SecondaryMenuLayout.d.ts +1 -0
- package/dist/templates/secondary-menu-layout/SecondaryMenuLayoutTemplate.d.ts +1 -0
- package/dist/templates/secondary-menu-layout/index.d.ts +1 -0
- package/dist/templates/settings/context/SettingsContext.d.ts +4 -0
- package/dist/templates/settings/context/SettingsContext.types.d.ts +11 -0
- package/dist/templates/settings/context/SettingsContextProvider.d.ts +12 -0
- package/dist/templates/settings/detail/SettingsBreadcrumbs.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsDetails.types.d.ts +24 -0
- package/dist/templates/settings/detail/SettingsDetailsTemplate.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsNoResultPage.d.ts +2 -0
- package/dist/templates/settings/detail/SettingsNoResultPage.types.d.ts +4 -0
- package/dist/templates/settings/detail/SettingsSearchTemplate.d.ts +2 -0
- package/dist/templates/settings/index.d.ts +3 -0
- package/dist/templates/settings/layout/NodeComponent.d.ts +2 -0
- package/dist/templates/settings/layout/NodeComponentProps.d.ts +6 -0
- package/dist/templates/settings/layout/SettingsLayout.types.d.ts +9 -0
- package/dist/templates/settings/layout/SettingsLayoutTemplate.d.ts +2 -0
- package/dist/templates/settings/layout/SettingsSearchRowComponent.d.ts +1 -0
- package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +1 -0
- package/dist/types/Action.types.d.ts +15 -0
- package/dist/types/NotificationMessage.types.d.ts +11 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/utils/authentication/logonUrlProvider.d.ts +10 -0
- package/dist/utils/basePathUtils.d.ts +8 -0
- package/dist/utils/constants.d.ts +5 -0
- package/dist/utils/formatString.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/loadModule.d.ts +9 -0
- package/dist/utils/pathUtils/index.d.ts +1 -0
- package/dist/utils/pathUtils/pathUtils.d.ts +9 -0
- package/dist/utils/postToAdmin.d.ts +21 -0
- package/dist/utils/responseStatusActions.d.ts +15 -0
- package/package.json +89 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Instance of command context type.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CommandContext: React.Context<CommandContextType>;
|
|
6
|
+
/**
|
|
7
|
+
* Defines a command context type.
|
|
8
|
+
*/
|
|
9
|
+
export interface CommandContextType {
|
|
10
|
+
/**
|
|
11
|
+
* Executes page command.
|
|
12
|
+
* @param name Name of the command to be executed.
|
|
13
|
+
* @param data Data passed to the command.
|
|
14
|
+
* @param files Files to be uploaded by the command.
|
|
15
|
+
*/
|
|
16
|
+
executeCommand: <TCommandResult = void, TData = void>(name: string, data?: TData, files?: FileList) => Promise<TCommandResult | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* Registers command into the current provider.
|
|
19
|
+
* @param name Name of the command to be registered.
|
|
20
|
+
* @param execute Callback that executes the command.
|
|
21
|
+
*/
|
|
22
|
+
registerCommand: <T>(name: string, execute: (data: T, files?: FileList) => Promise<void>) => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the command provider for the current page.
|
|
26
|
+
*/
|
|
27
|
+
export declare const usePageCommandProvider: () => CommandContextType;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CommandProviderProps {
|
|
3
|
+
readonly children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Ensures the command context for current template.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CommandProvider: {
|
|
9
|
+
({ children }: CommandProviderProps): JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Command result interface.
|
|
3
|
+
*/
|
|
4
|
+
export interface Command<T = any> {
|
|
5
|
+
/**
|
|
6
|
+
* Invocation callback.
|
|
7
|
+
*/
|
|
8
|
+
execute: CommandExecutor<T, void>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Command execution configuration.
|
|
12
|
+
*/
|
|
13
|
+
export declare type UseCommandConfig<TCommandResult, TCommandData> = {
|
|
14
|
+
/**
|
|
15
|
+
* Command data.
|
|
16
|
+
*/
|
|
17
|
+
data?: TCommandData;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates whether command should be invoked automatically on component mount.
|
|
20
|
+
* Defaults to `false`.
|
|
21
|
+
*/
|
|
22
|
+
executeOnMount?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Custom action executed before the command execution.
|
|
25
|
+
* If the function returns `false` the command will not be executed.
|
|
26
|
+
*/
|
|
27
|
+
before?: () => boolean | void;
|
|
28
|
+
/**
|
|
29
|
+
* Custom action executed after the command execution.
|
|
30
|
+
*/
|
|
31
|
+
after?: (commandResult: TCommandResult | undefined) => void;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Command invocation callback.
|
|
35
|
+
*/
|
|
36
|
+
export declare type CommandExecutor<TData, TResponse> = (data?: TData, files?: FileList) => Promise<TResponse>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface CommandInvokerResponse<T> {
|
|
2
|
+
result: T;
|
|
3
|
+
command: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Defines a command invocation function with messaging and navigation support.
|
|
7
|
+
*
|
|
8
|
+
* @returns Command invocation function.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useCommandInvoker<T>(): (name: string, data?: any, files?: FileList | undefined) => Promise<CommandInvokerResponse<T> | undefined>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Command, UseCommandConfig } from './useCommand.types';
|
|
3
|
+
/**
|
|
4
|
+
* Registers command into the current command provider and returns its invocation callback.
|
|
5
|
+
*
|
|
6
|
+
* @param commandName Name of the command.
|
|
7
|
+
* @param config Command options.
|
|
8
|
+
* @param dependencies If present, command will only activate if the values in the list change.
|
|
9
|
+
* @returns Invocation callback to be executed manually.
|
|
10
|
+
*/
|
|
11
|
+
export declare function usePageCommand<TCommandResult, TCommandData = void>(commandName: string, config?: UseCommandConfig<TCommandResult, TCommandData>, dependencies?: React.DependencyList): Command<TCommandData>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { Component, ErrorInfo } from 'react';
|
|
2
|
+
import { ErrorBoundaryProps, ErrorBoundaryState } from './ErrorBoundary.types';
|
|
3
|
+
/**
|
|
4
|
+
* ErrorBoundary component allows to catch the unhandled errors and display a fallback component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
7
|
+
state: ErrorBoundaryState;
|
|
8
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
9
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
10
|
+
/**
|
|
11
|
+
* Ensures that previous error state is cleared on dependencies change.
|
|
12
|
+
*/
|
|
13
|
+
componentDidUpdate(previousProps: ErrorBoundaryProps, previousState: ErrorBoundaryState): void;
|
|
14
|
+
render(): React.ReactNode;
|
|
15
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Error boundary component properties.
|
|
4
|
+
*/
|
|
5
|
+
export interface ErrorBoundaryProps {
|
|
6
|
+
/**
|
|
7
|
+
* Component children.
|
|
8
|
+
*/
|
|
9
|
+
readonly children: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Fallback function allows to render custom error elements.
|
|
12
|
+
*/
|
|
13
|
+
readonly fallback: (error: Error | null) => ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Error boundary dependencies.
|
|
16
|
+
* Used for re-evaluation of error state based on array of dependencies.
|
|
17
|
+
*/
|
|
18
|
+
readonly dependencies?: unknown[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Error boundary inner state.
|
|
22
|
+
*/
|
|
23
|
+
export interface ErrorBoundaryState {
|
|
24
|
+
/**
|
|
25
|
+
* Indicates whether error has occurred.
|
|
26
|
+
*/
|
|
27
|
+
readonly hasError: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Error object.
|
|
30
|
+
*/
|
|
31
|
+
readonly error: Error | null;
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { ApplicationTileProps } from '@kentico/xperience-admin-components';
|
|
3
|
+
export interface ViewMenuItemProps extends Pick<ApplicationTileProps, 'label' | 'iconName' | 'tooltip' | 'dataTestId'> {
|
|
4
|
+
/**
|
|
5
|
+
* Indicates if the menu item is disabled.
|
|
6
|
+
*/
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Path to navigate to.
|
|
10
|
+
*/
|
|
11
|
+
path: string;
|
|
12
|
+
/**
|
|
13
|
+
* Allows consumer to bind an extra `onClick` event handler raised before the navigation.
|
|
14
|
+
*/
|
|
15
|
+
readonly onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ActionList } from './ActionList/ActionList';
|
|
2
|
+
export { Loader } from './loader/Loader';
|
|
3
|
+
export { PageLoader } from './page-loader/PageLoader';
|
|
4
|
+
export { PageMessagePane } from './page-message-pane/PageMessagePane';
|
|
5
|
+
export { Portal } from './portal/Portal';
|
|
6
|
+
export { ViewMenuItem } from './ViewMenuItem/ViewMenuItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Loader: () => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PageMessagePaneProps {
|
|
3
|
+
readonly title: string;
|
|
4
|
+
readonly text?: string;
|
|
5
|
+
readonly children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const PageMessagePane: ({ title, text, children }: PageMessagePaneProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface PortalProps {
|
|
3
|
+
readonly children: React.ReactNode;
|
|
4
|
+
readonly container: HTMLElement | null;
|
|
5
|
+
readonly key?: string | null | undefined;
|
|
6
|
+
}
|
|
7
|
+
declare const Portal: ({ children, container, key }: PortalProps) => JSX.Element;
|
|
8
|
+
export { Portal };
|
package/dist/entry.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './templates';
|
|
2
|
+
export * from './template-components';
|
|
3
|
+
export * from './forms';
|
|
4
|
+
export * from './hooks';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './template-properties';
|
|
7
|
+
export * from './localization';
|
|
8
|
+
export * from './components/loader/Loader';
|
|
9
|
+
export * from './components/portal/Portal';
|
|
10
|
+
export * from './components/ViewMenuItem/ViewMenuItem';
|
|
11
|
+
export * from './components/page-message-pane/PageMessagePane';
|
|
12
|
+
export * from './commands';
|
|
13
|
+
export * from './shared-components';
|
|
14
|
+
export * from './notifications';
|
|
15
|
+
export * from './providers';
|