@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.
Files changed (188) hide show
  1. package/dist/entry.d.ts +177 -12
  2. package/dist/entry.js +22 -2
  3. package/package.json +61 -47
  4. package/dist/8ce68503cd833f15dce1.png +0 -0
  5. package/dist/commands/CommandContext.d.ts +0 -27
  6. package/dist/commands/CommandProvider.d.ts +0 -12
  7. package/dist/commands/index.d.ts +0 -3
  8. package/dist/commands/useCommand.types.d.ts +0 -36
  9. package/dist/commands/useCommandInvoker.d.ts +0 -11
  10. package/dist/commands/usePageCommand.d.ts +0 -11
  11. package/dist/components/ActionList/ActionList.d.ts +0 -3
  12. package/dist/components/ActionList/ActionList.types.d.ts +0 -4
  13. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +0 -11
  14. package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +0 -9
  15. package/dist/components/index.d.ts +0 -5
  16. package/dist/components/loader/Loader.d.ts +0 -2
  17. package/dist/components/page-loader/PageLoader.d.ts +0 -2
  18. package/dist/components/page-message-pane/PageMessagePane.d.ts +0 -7
  19. package/dist/components/portal/Portal.d.ts +0 -8
  20. package/dist/forms/form/Form.d.ts +0 -3
  21. package/dist/forms/form/Form.types.d.ts +0 -88
  22. package/dist/forms/form/FormField.d.ts +0 -3
  23. package/dist/forms/form/FormField.types.d.ts +0 -6
  24. package/dist/forms/form/index.d.ts +0 -2
  25. package/dist/forms/form-components/FormComponent.types.d.ts +0 -22
  26. package/dist/forms/form-components/FormComponentLoader.d.ts +0 -3
  27. package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +0 -3
  28. package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +0 -3
  29. package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +0 -18
  30. package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +0 -3
  31. package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +0 -16
  32. package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +0 -3
  33. package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +0 -9
  34. package/dist/forms/form-components/formComponentUtils.d.ts +0 -5
  35. package/dist/forms/form-components/index.d.ts +0 -13
  36. package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +0 -3
  37. package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +0 -3
  38. package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +0 -3
  39. package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +0 -3
  40. package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +0 -3
  41. package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +0 -19
  42. package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +0 -3
  43. package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +0 -4
  44. package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +0 -3
  45. package/dist/forms/hooks/FormComponentCommand.types.d.ts +0 -7
  46. package/dist/forms/hooks/FormComponentCommandUtils.d.ts +0 -4
  47. package/dist/forms/hooks/index.d.ts +0 -3
  48. package/dist/forms/hooks/useFormComponentCommand.d.ts +0 -4
  49. package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +0 -4
  50. package/dist/forms/hooks/useValidationRule.d.ts +0 -2
  51. package/dist/forms/index.d.ts +0 -4
  52. package/dist/forms/validation-rules/ValidationRule.types.d.ts +0 -12
  53. package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +0 -2
  54. package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +0 -7
  55. package/dist/forms/validation-rules/index.d.ts +0 -8
  56. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +0 -3
  57. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +0 -5
  58. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +0 -3
  59. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +0 -5
  60. package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.Types.d.ts +0 -4
  61. package/dist/forms/validation-rules/required-value-rule/RequiredStringValueValidationRule.d.ts +0 -3
  62. package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +0 -2
  63. package/dist/hooks/index.d.ts +0 -4
  64. package/dist/hooks/useComponent.d.ts +0 -1
  65. package/dist/hooks/useInterval.d.ts +0 -1
  66. package/dist/hooks/useNotificationMessage.d.ts +0 -9
  67. package/dist/hooks/usePagePath.d.ts +0 -5
  68. package/dist/localization/Localization.types.d.ts +0 -7
  69. package/dist/localization/LocalizationContext.d.ts +0 -4
  70. package/dist/localization/LocalizationProvider.d.ts +0 -3
  71. package/dist/localization/index.d.ts +0 -4
  72. package/dist/notifications/NotificationsContext.d.ts +0 -5
  73. package/dist/notifications/NotificationsContext.types.d.ts +0 -13
  74. package/dist/notifications/index.d.ts +0 -2
  75. package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +0 -3
  76. package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +0 -4
  77. package/dist/shared-components/AppLinkButton/index.d.ts +0 -2
  78. package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.d.ts +0 -3
  79. package/dist/shared-components/AssetsFoldersTreeView/AssetsFoldersTreeView.types.d.ts +0 -17
  80. package/dist/shared-components/AssetsFoldersTreeView/index.d.ts +0 -2
  81. package/dist/shared-components/AssetsPanel/AssetsPanel.d.ts +0 -3
  82. package/dist/shared-components/AssetsPanel/AssetsPanel.types.d.ts +0 -39
  83. package/dist/shared-components/AssetsPanel/index.d.ts +0 -2
  84. package/dist/shared-components/AssetsSelector/AssetsSelector.d.ts +0 -3
  85. package/dist/shared-components/AssetsSelector/AssetsSelector.types.d.ts +0 -35
  86. package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +0 -3
  87. package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +0 -33
  88. package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +0 -2
  89. package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +0 -3
  90. package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +0 -16
  91. package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +0 -2
  92. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +0 -6
  93. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +0 -4
  94. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +0 -3
  95. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +0 -3
  96. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +0 -3
  97. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/TextInputFormParameterOverview.d.ts +0 -3
  98. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +0 -3
  99. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +0 -6
  100. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +0 -4
  101. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +0 -6
  102. package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +0 -3
  103. package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +0 -23
  104. package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +0 -2
  105. package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +0 -6
  106. package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +0 -9
  107. package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +0 -2
  108. package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +0 -3
  109. package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +0 -6
  110. package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +0 -2
  111. package/dist/shared-components/ConditionBuilder/Operators.d.ts +0 -4
  112. package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +0 -2
  113. package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +0 -2
  114. package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +0 -2
  115. package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +0 -2
  116. package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +0 -2
  117. package/dist/shared-components/ConditionBuilder/utils/index.d.ts +0 -8
  118. package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +0 -2
  119. package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +0 -2
  120. package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +0 -6
  121. package/dist/shared-components/OverviewCard/OverviewCard.d.ts +0 -3
  122. package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +0 -13
  123. package/dist/shared-components/OverviewCard/index.d.ts +0 -2
  124. package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +0 -3
  125. package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +0 -4
  126. package/dist/shared-components/OverviewCardGroup/index.d.ts +0 -2
  127. package/dist/shared-components/callout/Callout.d.ts +0 -3
  128. package/dist/shared-components/callout/Callout.types.d.ts +0 -9
  129. package/dist/shared-components/index.d.ts +0 -5
  130. package/dist/template-components/dialog/TemplateDialog.d.ts +0 -3
  131. package/dist/template-components/dialog/TemplateDialog.types.d.ts +0 -8
  132. package/dist/template-components/dialog/TemplateDialogContext.d.ts +0 -4
  133. package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +0 -32
  134. package/dist/template-components/index.d.ts +0 -4
  135. package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +0 -4
  136. package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +0 -7
  137. package/dist/template-components/template-loader/TemplateLoader.d.ts +0 -6
  138. package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +0 -9
  139. package/dist/template-properties/TemplateProperties.types.d.ts +0 -29
  140. package/dist/template-properties/TemplatePropertiesProvider.d.ts +0 -9
  141. package/dist/template-properties/index.d.ts +0 -2
  142. package/dist/templates/app/App.types.d.ts +0 -17
  143. package/dist/templates/app/AppTemplate.d.ts +0 -4
  144. package/dist/templates/app/avatar/Avatar.d.ts +0 -8
  145. package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +0 -4
  146. package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +0 -18
  147. package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +0 -4
  148. package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +0 -3
  149. package/dist/templates/app/breadcrumbs/index.d.ts +0 -2
  150. package/dist/templates/app/header/Header.d.ts +0 -5
  151. package/dist/templates/app/header/index.d.ts +0 -1
  152. package/dist/templates/app/main/Main.d.ts +0 -8
  153. package/dist/templates/app/sidebar/Sidebar.d.ts +0 -7
  154. package/dist/templates/app/sidebar/index.d.ts +0 -1
  155. package/dist/templates/app/siteselector/SiteSelector.d.ts +0 -6
  156. package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +0 -3
  157. package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +0 -7
  158. package/dist/templates/dashboard/DashboardTemplate.d.ts +0 -3
  159. package/dist/templates/dashboard/tile/Tile.d.ts +0 -3
  160. package/dist/templates/dashboard/tile-category/TileCategory.d.ts +0 -3
  161. package/dist/templates/edit/EditTemplate.d.ts +0 -3
  162. package/dist/templates/edit/EditTemplate.types.d.ts +0 -12
  163. package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +0 -3
  164. package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +0 -4
  165. package/dist/templates/field-editor/FieldEditorForm.d.ts +0 -6
  166. package/dist/templates/field-editor/FieldEditorForm.types.d.ts +0 -11
  167. package/dist/templates/field-editor/FieldEditorTemplate.d.ts +0 -15
  168. package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +0 -83
  169. package/dist/templates/index.d.ts +0 -10
  170. package/dist/templates/listing/Listing.types.d.ts +0 -22
  171. package/dist/templates/listing/ListingTemplate.d.ts +0 -3
  172. package/dist/templates/overview/OverviewTemplate.d.ts +0 -3
  173. package/dist/templates/overview/OverviewTemplate.types.d.ts +0 -71
  174. package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +0 -2
  175. package/dist/templates/side-navigation-layout/vertical-menu/VerticalMenu.d.ts +0 -8
  176. package/dist/types/Action.types.d.ts +0 -14
  177. package/dist/types/NotificationMessage.types.d.ts +0 -11
  178. package/dist/types/index.d.ts +0 -4
  179. package/dist/utils/authentication/logonUrlProvider.d.ts +0 -10
  180. package/dist/utils/basePathUtils.d.ts +0 -8
  181. package/dist/utils/constants.d.ts +0 -2
  182. package/dist/utils/convertTagGradient.d.ts +0 -3
  183. package/dist/utils/index.d.ts +0 -4
  184. package/dist/utils/loadModule.d.ts +0 -10
  185. package/dist/utils/pathUtils/index.d.ts +0 -1
  186. package/dist/utils/pathUtils/pathUtils.d.ts +0 -9
  187. package/dist/utils/postToAdmin.d.ts +0 -21
  188. package/dist/utils/responseStatusActions.d.ts +0 -15
@@ -1,4 +0,0 @@
1
- export { ActionType } from './Action.types';
2
- export type { Action } from './Action.types';
3
- export { NotificationMessageType } from './NotificationMessage.types';
4
- export type { NotificationMessage } from './NotificationMessage.types';
@@ -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,8 +0,0 @@
1
- /**
2
- * Gets base path (without domain) obtained from html document
3
- */
4
- export declare const getBaseUri: () => URL;
5
- /**
6
- * Removes the base path from the provided path
7
- */
8
- export declare const getPathWithoutBasePath: (path: string) => string;
@@ -1,2 +0,0 @@
1
- export declare const conditionBuilderDialogMinWidth = "65vw";
2
- export declare const editTemplateDialogMinWidth = "65vw";
@@ -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;
@@ -1,4 +0,0 @@
1
- export * from './authentication/logonUrlProvider';
2
- export * from './postToAdmin';
3
- export * from './basePathUtils';
4
- export * from './convertTagGradient';
@@ -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 };