@kentico/xperience-admin-base 14.0.0-68025 → 22.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 +177 -12
- package/dist/entry.js +22 -2
- package/package.json +61 -47
- package/dist/8ce68503cd833f15dce1.png +0 -0
- package/dist/commands/CommandContext.d.ts +0 -27
- package/dist/commands/CommandProvider.d.ts +0 -12
- package/dist/commands/index.d.ts +0 -3
- package/dist/commands/useCommand.types.d.ts +0 -36
- package/dist/commands/useCommandInvoker.d.ts +0 -11
- package/dist/commands/usePageCommand.d.ts +0 -11
- package/dist/components/ActionList/ActionList.d.ts +0 -3
- package/dist/components/ActionList/ActionList.types.d.ts +0 -4
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
- package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +0 -9
- package/dist/components/index.d.ts +0 -5
- package/dist/components/loader/Loader.d.ts +0 -2
- package/dist/components/page-loader/PageLoader.d.ts +0 -2
- package/dist/components/page-message-pane/PageMessagePane.d.ts +0 -7
- package/dist/components/portal/Portal.d.ts +0 -8
- package/dist/forms/form/Form.d.ts +0 -3
- package/dist/forms/form/Form.types.d.ts +0 -88
- package/dist/forms/form/FormField.d.ts +0 -3
- package/dist/forms/form/FormField.types.d.ts +0 -6
- package/dist/forms/form/index.d.ts +0 -2
- package/dist/forms/form-components/FormComponent.types.d.ts +0 -22
- package/dist/forms/form-components/FormComponentLoader.d.ts +0 -3
- package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +0 -18
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +0 -3
- package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +0 -16
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +0 -3
- package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +0 -9
- package/dist/forms/form-components/formComponentUtils.d.ts +0 -5
- package/dist/forms/form-components/index.d.ts +0 -13
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +0 -3
- package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +0 -3
- package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +0 -3
- package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +0 -3
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +0 -3
- package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +0 -19
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +0 -3
- package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +0 -4
- package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +0 -3
- package/dist/forms/hooks/FormComponentCommand.types.d.ts +0 -7
- package/dist/forms/hooks/FormComponentCommandUtils.d.ts +0 -4
- package/dist/forms/hooks/index.d.ts +0 -3
- package/dist/forms/hooks/useFormComponentCommand.d.ts +0 -4
- package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +0 -4
- package/dist/forms/hooks/useValidationRule.d.ts +0 -2
- package/dist/forms/index.d.ts +0 -4
- package/dist/forms/validation-rules/ValidationRule.types.d.ts +0 -12
- package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +0 -2
- package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +0 -7
- package/dist/forms/validation-rules/index.d.ts +0 -8
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +0 -5
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +0 -5
- package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.Types.d.ts +0 -4
- package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.d.ts +0 -3
- package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +0 -2
- package/dist/hooks/index.d.ts +0 -4
- package/dist/hooks/useComponent.d.ts +0 -1
- package/dist/hooks/useInterval.d.ts +0 -1
- package/dist/hooks/useNotificationMessage.d.ts +0 -9
- package/dist/hooks/usePagePath.d.ts +0 -5
- package/dist/localization/Localization.types.d.ts +0 -7
- package/dist/localization/LocalizationContext.d.ts +0 -4
- package/dist/localization/LocalizationProvider.d.ts +0 -3
- package/dist/localization/index.d.ts +0 -4
- package/dist/notifications/NotificationsContext.d.ts +0 -5
- package/dist/notifications/NotificationsContext.types.d.ts +0 -13
- package/dist/notifications/index.d.ts +0 -2
- package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +0 -3
- package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +0 -4
- package/dist/shared-components/AppLinkButton/index.d.ts +0 -2
- package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.d.ts +0 -3
- package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.types.d.ts +0 -17
- package/dist/shared-components/AssetsFoldersTreeView/index.d.ts +0 -2
- package/dist/shared-components/AssetsPanel/AssetsPanel.d.ts +0 -3
- package/dist/shared-components/AssetsPanel/AssetsPanel.types.d.ts +0 -39
- package/dist/shared-components/AssetsPanel/index.d.ts +0 -2
- package/dist/shared-components/AssetsSelector/AssetsSelector.d.ts +0 -3
- package/dist/shared-components/AssetsSelector/AssetsSelector.types.d.ts +0 -35
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +0 -33
- package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +0 -16
- package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/TextInputFormParameterOverview.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +0 -23
- package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +0 -9
- package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +0 -3
- package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +0 -6
- package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/Operators.d.ts +0 -4
- package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/index.d.ts +0 -8
- package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +0 -2
- package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +0 -6
- package/dist/shared-components/OverviewCard/OverviewCard.d.ts +0 -3
- package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +0 -13
- package/dist/shared-components/OverviewCard/index.d.ts +0 -2
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +0 -3
- package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +0 -4
- package/dist/shared-components/OverviewCardGroup/index.d.ts +0 -2
- package/dist/shared-components/callout/Callout.d.ts +0 -3
- package/dist/shared-components/callout/Callout.types.d.ts +0 -9
- package/dist/shared-components/index.d.ts +0 -5
- package/dist/template-components/dialog/TemplateDialog.d.ts +0 -3
- package/dist/template-components/dialog/TemplateDialog.types.d.ts +0 -8
- package/dist/template-components/dialog/TemplateDialogContext.d.ts +0 -4
- package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +0 -32
- package/dist/template-components/index.d.ts +0 -4
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +0 -4
- package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +0 -7
- package/dist/template-components/template-loader/TemplateLoader.d.ts +0 -6
- package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +0 -9
- package/dist/template-properties/TemplateProperties.types.d.ts +0 -29
- package/dist/template-properties/TemplatePropertiesProvider.d.ts +0 -9
- package/dist/template-properties/index.d.ts +0 -2
- package/dist/templates/app/App.types.d.ts +0 -17
- package/dist/templates/app/AppTemplate.d.ts +0 -4
- package/dist/templates/app/avatar/Avatar.d.ts +0 -8
- package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +0 -18
- package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +0 -4
- package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +0 -3
- package/dist/templates/app/breadcrumbs/index.d.ts +0 -2
- package/dist/templates/app/header/Header.d.ts +0 -5
- package/dist/templates/app/header/index.d.ts +0 -1
- package/dist/templates/app/main/Main.d.ts +0 -8
- package/dist/templates/app/sidebar/Sidebar.d.ts +0 -7
- package/dist/templates/app/sidebar/index.d.ts +0 -1
- package/dist/templates/app/siteselector/SiteSelector.d.ts +0 -6
- package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +0 -3
- package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +0 -7
- package/dist/templates/dashboard/DashboardTemplate.d.ts +0 -3
- package/dist/templates/dashboard/tile/Tile.d.ts +0 -3
- package/dist/templates/dashboard/tile-category/TileCategory.d.ts +0 -3
- package/dist/templates/edit/EditTemplate.d.ts +0 -3
- package/dist/templates/edit/EditTemplate.types.d.ts +0 -12
- package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +0 -3
- package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +0 -4
- package/dist/templates/field-editor/FieldEditorForm.d.ts +0 -6
- package/dist/templates/field-editor/FieldEditorForm.types.d.ts +0 -11
- package/dist/templates/field-editor/FieldEditorTemplate.d.ts +0 -15
- package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +0 -83
- package/dist/templates/index.d.ts +0 -10
- package/dist/templates/listing/Listing.types.d.ts +0 -22
- package/dist/templates/listing/ListingTemplate.d.ts +0 -3
- package/dist/templates/overview/OverviewTemplate.d.ts +0 -3
- package/dist/templates/overview/OverviewTemplate.types.d.ts +0 -71
- package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +0 -2
- package/dist/templates/side-navigation-layout/vertical-menu/VerticalMenu.d.ts +0 -8
- package/dist/types/Action.types.d.ts +0 -14
- package/dist/types/NotificationMessage.types.d.ts +0 -11
- package/dist/types/index.d.ts +0 -4
- package/dist/utils/authentication/logonUrlProvider.d.ts +0 -10
- package/dist/utils/basePathUtils.d.ts +0 -8
- package/dist/utils/constants.d.ts +0 -2
- package/dist/utils/convertTagGradient.d.ts +0 -3
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/loadModule.d.ts +0 -10
- package/dist/utils/pathUtils/index.d.ts +0 -1
- package/dist/utils/pathUtils/pathUtils.d.ts +0 -9
- package/dist/utils/postToAdmin.d.ts +0 -21
- package/dist/utils/responseStatusActions.d.ts +0 -15
package/dist/types/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const LogonPath = "/logon";
|
|
2
|
-
/**
|
|
3
|
-
* Gets the logon page URL including the given return URL in a query parameter.
|
|
4
|
-
*/
|
|
5
|
-
declare const getLogonUrl: (returnUrl: string) => string;
|
|
6
|
-
/**
|
|
7
|
-
* Gets the return URL from a query parameter of the given URL.
|
|
8
|
-
*/
|
|
9
|
-
declare const getReturnUrl: (url: string) => string | null;
|
|
10
|
-
export { getLogonUrl, getReturnUrl, LogonPath };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Gradients } from '@kentico/xperience-admin-components';
|
|
2
|
-
import { TagGradient } from '../templates/overview/OverviewTemplate.types';
|
|
3
|
-
export declare const convertTagGradient: (gradient: TagGradient) => Gradients.CoolGrayDark | Gradients.GrayDark | Gradients.KenticoOrangeDark | Gradients.RedDark | Gradients.YellowDark | Gradients.NavyBlueDark | Gradients.NeonGreenDark | Gradients.PersianGreenDark | Gradients.SkyBlueDark | Gradients.XperienceBlueDark | Gradients.PurpleDark | Gradients.RoseDark;
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare type ModuleLoaderResultType = Promise<{
|
|
2
|
-
default: any;
|
|
3
|
-
}>;
|
|
4
|
-
declare type ModuleLoaderType = (packageName: string, importName: string) => ModuleLoaderResultType;
|
|
5
|
-
/**
|
|
6
|
-
* Loads external module based on fully qualified path in format:
|
|
7
|
-
* @scope/project/Component (e.g @kentico/xperience-admin-base/Listing)
|
|
8
|
-
*/
|
|
9
|
-
export declare const loadModule: (fileName: string, moduleLoader?: ModuleLoaderType | undefined) => ModuleLoaderResultType;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pathUtils';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Removes leading path from provided path and retunt path in format /{remainig-path} - without trailing slash
|
|
3
|
-
*/
|
|
4
|
-
export declare const trimLeadingPath: (path: string, leadingPathToBeRemoved: string) => string;
|
|
5
|
-
/**
|
|
6
|
-
* Normalizes path to the form: leading slash + path name
|
|
7
|
-
* Removes all trailing slashes except the root path and removes duplict leading slashes.
|
|
8
|
-
*/
|
|
9
|
-
export declare const normalizePath: (path: string) => string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error handler parameters used in handler methods.
|
|
3
|
-
* */
|
|
4
|
-
export interface ErrorHandlerParams {
|
|
5
|
-
/**
|
|
6
|
-
* Response status code. The status code 0 is used for network related error.
|
|
7
|
-
* */
|
|
8
|
-
readonly statusCode: number;
|
|
9
|
-
/**
|
|
10
|
-
* Error message.
|
|
11
|
-
* */
|
|
12
|
-
readonly message: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Invokes the request to the administration backend for specified path. Returns undefined in case of error.
|
|
16
|
-
*/
|
|
17
|
-
export declare const postToAdmin: <TResult>(path: string, requestData: FormData, errorHandler?: ((error: ErrorHandlerParams) => void) | undefined, handleUnauthenticatedResponse?: (() => void) | undefined) => Promise<TResult | undefined>;
|
|
18
|
-
/**
|
|
19
|
-
* Handles invalid response status codes.
|
|
20
|
-
*/
|
|
21
|
-
export declare const handleResponseStatus: (status: number, handleErrorMessage?: ((error: ErrorHandlerParams) => void) | undefined, handleUnauthenticatedResponse?: (() => void) | undefined) => Promise<boolean>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ErrorHandlerParams } from './postToAdmin';
|
|
2
|
-
/**
|
|
3
|
-
* Handles network related error (caused by rejected promise on fetch function, e.g connection reset, abort etc.)
|
|
4
|
-
*/
|
|
5
|
-
declare const handleNetworkError: (errorMessage: string, errorHandler?: ((error: ErrorHandlerParams) => void) | undefined) => void;
|
|
6
|
-
/**
|
|
7
|
-
* Handles error response based on the status code.
|
|
8
|
-
*/
|
|
9
|
-
declare const handleGenericError: (statusCode: number, errorHandler?: ((error: ErrorHandlerParams) => void) | undefined) => void;
|
|
10
|
-
/**
|
|
11
|
-
* Redirects to the logon page.
|
|
12
|
-
* Keeps the current URL in the 'returnUrl' query parameter.
|
|
13
|
-
*/
|
|
14
|
-
declare const handle401Response: () => void;
|
|
15
|
-
export { handle401Response, handleGenericError, handleNetworkError };
|