@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.
Files changed (337) hide show
  1. package/dist/commands/CommandContext.d.ts +27 -0
  2. package/dist/commands/CommandProvider.d.ts +12 -0
  3. package/dist/commands/index.d.ts +3 -0
  4. package/dist/commands/useCommand.types.d.ts +36 -0
  5. package/dist/commands/useCommandInvoker.d.ts +11 -0
  6. package/dist/commands/usePageCommand.d.ts +11 -0
  7. package/dist/components/ActionList/ActionList.d.ts +2 -0
  8. package/dist/components/ActionList/ActionList.types.d.ts +5 -0
  9. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +15 -0
  10. package/dist/components/ErrorBoundary/ErrorBoundary.types.d.ts +32 -0
  11. package/dist/components/ViewMenuItem/ViewMenuItem.d.ts +5 -0
  12. package/dist/components/ViewMenuItem/ViewMenuItem.types.d.ts +16 -0
  13. package/dist/components/index.d.ts +6 -0
  14. package/dist/components/loader/Loader.d.ts +1 -0
  15. package/dist/components/page-loader/PageLoader.d.ts +5 -0
  16. package/dist/components/page-message-pane/PageMessagePane.d.ts +7 -0
  17. package/dist/components/portal/Portal.d.ts +8 -0
  18. package/dist/entry.d.ts +15 -0
  19. package/dist/entry.js +28 -0
  20. package/dist/forms/form/Form.d.ts +6 -0
  21. package/dist/forms/form/Form.types.d.ts +129 -0
  22. package/dist/forms/form/FormField.d.ts +5 -0
  23. package/dist/forms/form/FormField.types.d.ts +15 -0
  24. package/dist/forms/form/formCategory/FormCategory.d.ts +2 -0
  25. package/dist/forms/form/formCategory/FormCategory.types.d.ts +11 -0
  26. package/dist/forms/form/index.d.ts +4 -0
  27. package/dist/forms/form/utils/parseFormCategories.d.ts +2 -0
  28. package/dist/forms/form-components/FormComponent.types.d.ts +24 -0
  29. package/dist/forms/form-components/FormComponentLoader.d.ts +2 -0
  30. package/dist/forms/form-components/asset-selector-form-component/AssetSelectorDropTile.d.ts +1 -0
  31. package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.d.ts +5 -0
  32. package/dist/forms/form-components/asset-selector-form-component/AssetSelectorFormComponent.types.d.ts +11 -0
  33. package/dist/forms/form-components/checkbox-form-component/CheckboxFormComponent.d.ts +2 -0
  34. package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.d.ts +2 -0
  35. package/dist/forms/form-components/condition-builder-form-component/ConditionBuilderFormComponent.types.d.ts +18 -0
  36. package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponent.d.ts +5 -0
  37. package/dist/forms/form-components/condition-builder-form-component/single-object-selector-form-component/SingleObjectSelectorFormComponentProps.types.d.ts +16 -0
  38. package/dist/forms/form-components/dropdown-form-component/DropDownFormComponent.d.ts +2 -0
  39. package/dist/forms/form-components/dropdown-form-component/DropDownFormComponentProps.types.d.ts +11 -0
  40. package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.d.ts +5 -0
  41. package/dist/forms/form-components/extension-selector-form-component/ExtensionSelectorFormComponent.types.d.ts +9 -0
  42. package/dist/forms/form-components/formComponentUtils.d.ts +5 -0
  43. package/dist/forms/form-components/index.d.ts +20 -0
  44. package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.d.ts +2 -0
  45. package/dist/forms/form-components/namespace-code-name-form-component/NamespaceCodeNameFormComponent.types.d.ts +3 -0
  46. package/dist/forms/form-components/number-input-form-component/NumberInputFormComponent.d.ts +2 -0
  47. package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.d.ts +5 -0
  48. package/dist/forms/form-components/object-selector-form-component/ObjectSelectorFormComponent.types.d.ts +23 -0
  49. package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.d.ts +2 -0
  50. package/dist/forms/form-components/object-selector-form-component/async-dropdown-selector/AsyncDropDownSelector.types.d.ts +9 -0
  51. package/dist/forms/form-components/password-form-component/PasswordFormComponent.d.ts +2 -0
  52. package/dist/forms/form-components/password-form-component/PasswordFormComponent.types.d.ts +14 -0
  53. package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.d.ts +2 -0
  54. package/dist/forms/form-components/radio-group-form-component/RadioGroupFormComponent.types.d.ts +15 -0
  55. package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponent.d.ts +5 -0
  56. package/dist/forms/form-components/rich-text-editor-form-component/RichTextEditorFormComponentProps.types.d.ts +6 -0
  57. package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.d.ts +10 -0
  58. package/dist/forms/form-components/rich-text-editor-form-component/hooks/useAssetPanel.types.d.ts +10 -0
  59. package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.d.ts +2 -0
  60. package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/AssetRichTextEditorPlugin.types.d.ts +3 -0
  61. package/dist/forms/form-components/rich-text-editor-form-component/plugins/asset/index.d.ts +2 -0
  62. package/dist/forms/form-components/rich-text-editor-form-component/plugins/index.d.ts +1 -0
  63. package/dist/forms/form-components/text-input-form-component/TextInputFormComponent.d.ts +2 -0
  64. package/dist/forms/form-components/text-input-form-component/TextInputFormComponentProps.types.d.ts +4 -0
  65. package/dist/forms/form-components/text-with-label-form-component/TextWithLabelFormComponent.d.ts +2 -0
  66. package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.d.ts +2 -0
  67. package/dist/forms/form-components/textarea-form-component/TextAreaFormComponent.types.d.ts +5 -0
  68. package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponent.d.ts +7 -0
  69. package/dist/forms/form-components/validation-rule-list-form-component/ValidationRuleListFormComponentProps.types.d.ts +43 -0
  70. package/dist/forms/hooks/FormComponentCommand.types.d.ts +7 -0
  71. package/dist/forms/hooks/FormComponentCommandUtils.d.ts +4 -0
  72. package/dist/forms/hooks/index.d.ts +4 -0
  73. package/dist/forms/hooks/useDisplayDialogInFullscreen.d.ts +1 -0
  74. package/dist/forms/hooks/useFormComponentCommand.d.ts +4 -0
  75. package/dist/forms/hooks/useFormComponentCommandProvider.d.ts +4 -0
  76. package/dist/forms/hooks/useValidationRule.d.ts +2 -0
  77. package/dist/forms/index.d.ts +4 -0
  78. package/dist/forms/validation-rules/ValidationRule.types.d.ts +13 -0
  79. package/dist/forms/validation-rules/ValidationRuleLoader.d.ts +2 -0
  80. package/dist/forms/validation-rules/ValidationRuleLoader.types.d.ts +7 -0
  81. package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.d.ts +11 -0
  82. package/dist/forms/validation-rules/asset-selector-rule/AssetSelectorValidationRule.types.d.ts +14 -0
  83. package/dist/forms/validation-rules/email-rule/EmailValidationRule.d.ts +9 -0
  84. package/dist/forms/validation-rules/email-rule/EmailValidationRule.types.d.ts +5 -0
  85. package/dist/forms/validation-rules/identifier-rule/IdentifierValidationRule.d.ts +8 -0
  86. package/dist/forms/validation-rules/index.d.ts +15 -0
  87. package/dist/forms/validation-rules/invalid-items-rule/InvalidItemsValidationRule.types.d.ts +4 -0
  88. package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.d.ts +9 -0
  89. package/dist/forms/validation-rules/max-items-rule/MaxItemsValidationRule.types.d.ts +4 -0
  90. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.d.ts +3 -0
  91. package/dist/forms/validation-rules/max-length-rule/MaxLengthValidationRule.types.d.ts +4 -0
  92. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.d.ts +3 -0
  93. package/dist/forms/validation-rules/min-length-rule/MinLengthValidationRule.types.d.ts +4 -0
  94. package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.d.ts +4 -0
  95. package/dist/forms/validation-rules/object-selector-rule/ObjectSelectorValidationRule.types.d.ts +3 -0
  96. package/dist/forms/validation-rules/required-value-rule/RequiredValueValidationRule.d.ts +2 -0
  97. package/dist/forms/validation-rules/server-rule/ServerValidationRule.d.ts +2 -0
  98. package/dist/hooks/index.d.ts +7 -0
  99. package/dist/hooks/useBlocker.d.ts +5 -0
  100. package/dist/hooks/useComponent.d.ts +2 -0
  101. package/dist/hooks/useFieldInfoObject.d.ts +2 -0
  102. package/dist/hooks/useInterval.d.ts +1 -0
  103. package/dist/hooks/useIsPathActive.d.ts +9 -0
  104. package/dist/hooks/useLoadDropdownOptions.d.ts +6 -0
  105. package/dist/hooks/useNotificationMessage.d.ts +9 -0
  106. package/dist/hooks/usePagePath.d.ts +5 -0
  107. package/dist/hooks/usePrompt.d.ts +5 -0
  108. package/dist/localization/Localization.types.d.ts +7 -0
  109. package/dist/localization/LocalizationContext.d.ts +4 -0
  110. package/dist/localization/LocalizationProvider.d.ts +2 -0
  111. package/dist/localization/index.d.ts +4 -0
  112. package/dist/notifications/NotificationsContext.d.ts +5 -0
  113. package/dist/notifications/NotificationsContext.types.d.ts +13 -0
  114. package/dist/notifications/index.d.ts +2 -0
  115. package/dist/providers/CustomRightSidebarProvider.d.ts +10 -0
  116. package/dist/providers/backgroundImageProvider.d.ts +11 -0
  117. package/dist/providers/index.d.ts +2 -0
  118. package/dist/shared-components/ActionButtons/ActionButton/ActionButton.d.ts +5 -0
  119. package/dist/shared-components/ActionButtons/ActionButton/ActionButton.types.d.ts +5 -0
  120. package/dist/shared-components/ActionButtons/ActionButton/index.d.ts +1 -0
  121. package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.d.ts +5 -0
  122. package/dist/shared-components/ActionButtons/ActionLink/ActionLinkButton.types.d.ts +5 -0
  123. package/dist/shared-components/ActionButtons/ActionLink/index.d.ts +2 -0
  124. package/dist/shared-components/ActionButtons/index.d.ts +2 -0
  125. package/dist/shared-components/AppLinkButton/AppLinkButton.d.ts +3 -0
  126. package/dist/shared-components/AppLinkButton/AppLinkButton.types.d.ts +4 -0
  127. package/dist/shared-components/AppLinkButton/index.d.ts +2 -0
  128. package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.d.ts +3 -0
  129. package/dist/shared-components/Assets/AssetFolderTreeView/AssetFolderTreeView.types.d.ts +50 -0
  130. package/dist/shared-components/Assets/AssetFolderTreeView/index.d.ts +2 -0
  131. package/dist/shared-components/Assets/AssetPanel/AssetPanel.d.ts +5 -0
  132. package/dist/shared-components/Assets/AssetPanel/AssetPanel.types.d.ts +70 -0
  133. package/dist/shared-components/Assets/AssetPanel/AssetPanelContext.d.ts +6 -0
  134. package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.d.ts +2 -0
  135. package/dist/shared-components/Assets/AssetPanelContent/AssetPanelContent.types.d.ts +85 -0
  136. package/dist/shared-components/Assets/AssetPanelContent/index.d.ts +2 -0
  137. package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.d.ts +5 -0
  138. package/dist/shared-components/Assets/AssetTileDraggable/AssetTileDraggable.types.d.ts +8 -0
  139. package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.d.ts +5 -0
  140. package/dist/shared-components/Assets/AssetTileHidden/AssetTileHidden.types.d.ts +6 -0
  141. package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.d.ts +2 -0
  142. package/dist/shared-components/Assets/AssetsLoader/AssetsLoader.types.d.ts +6 -0
  143. package/dist/shared-components/Assets/AssetsLoader/index.d.ts +2 -0
  144. package/dist/shared-components/Assets/hooks/index.d.ts +3 -0
  145. package/dist/shared-components/Assets/hooks/useAssetDataManager.d.ts +26 -0
  146. package/dist/shared-components/Assets/hooks/useAssetFolderManager.d.ts +13 -0
  147. package/dist/shared-components/Assets/hooks/useAssetFolderManager.types.d.ts +54 -0
  148. package/dist/shared-components/Assets/hooks/useAssetLibraryManager.d.ts +10 -0
  149. package/dist/shared-components/Assets/hooks/useAssetLibraryManager.types.d.ts +7 -0
  150. package/dist/shared-components/Assets/hooks/useAssetManager.d.ts +17 -0
  151. package/dist/shared-components/Assets/hooks/useAssetManager.types.d.ts +151 -0
  152. package/dist/shared-components/Assets/hooks/useAssetTilesColumnCount.d.ts +7 -0
  153. package/dist/shared-components/Assets/hooks/useAssetsInfiniteScroll.d.ts +9 -0
  154. package/dist/shared-components/Assets/index.d.ts +4 -0
  155. package/dist/shared-components/Assets/types/Assets.types.d.ts +10 -0
  156. package/dist/shared-components/Callout/Callout.d.ts +5 -0
  157. package/dist/shared-components/Callout/Callout.types.d.ts +22 -0
  158. package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.d.ts +2 -0
  159. package/dist/shared-components/ConditionBuilder/Condition/ConditionBuilderCondition.types.d.ts +33 -0
  160. package/dist/shared-components/ConditionBuilder/Condition/index.d.ts +2 -0
  161. package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.d.ts +2 -0
  162. package/dist/shared-components/ConditionBuilder/ConditionBuilder/ConditionBuilder.types.d.ts +16 -0
  163. package/dist/shared-components/ConditionBuilder/ConditionBuilder/index.d.ts +2 -0
  164. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.d.ts +5 -0
  165. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ConditionBuilderOverview.types.d.ts +4 -0
  166. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/ErrorFallbackAlert.d.ts +3 -0
  167. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/DropDownParameterOverview.d.ts +5 -0
  168. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/NumberInputParameterOverview.d.ts +5 -0
  169. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/SingleObjectSelectorParameterOverview.d.ts +5 -0
  170. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ComponentParameter/index.d.ts +3 -0
  171. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ConditionOverviewModuleLoader.d.ts +7 -0
  172. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterOverviewComponentLoader.d.ts +2 -0
  173. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/ParameterSimpleOverview.d.ts +5 -0
  174. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.d.ts +5 -0
  175. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/ParameterText.types.d.ts +4 -0
  176. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/Parameters/TextualParameter/index.d.ts +2 -0
  177. package/dist/shared-components/ConditionBuilder/ConditionBuilderOverview/index.d.ts +6 -0
  178. package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.d.ts +2 -0
  179. package/dist/shared-components/ConditionBuilder/ConditionGroup/ConditionBuilderConditionGroup.types.d.ts +24 -0
  180. package/dist/shared-components/ConditionBuilder/ConditionGroup/index.d.ts +2 -0
  181. package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.d.ts +5 -0
  182. package/dist/shared-components/ConditionBuilder/ConditionPicker/ConditionBuilderConditionPicker.types.d.ts +9 -0
  183. package/dist/shared-components/ConditionBuilder/ConditionPicker/index.d.ts +2 -0
  184. package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.d.ts +2 -0
  185. package/dist/shared-components/ConditionBuilder/OperatorSelect/OperatorSelect.types.d.ts +7 -0
  186. package/dist/shared-components/ConditionBuilder/OperatorSelect/index.d.ts +2 -0
  187. package/dist/shared-components/ConditionBuilder/Operators.d.ts +4 -0
  188. package/dist/shared-components/ConditionBuilder/Types/Constants.d.ts +1 -0
  189. package/dist/shared-components/ConditionBuilder/utils/convertModel.d.ts +2 -0
  190. package/dist/shared-components/ConditionBuilder/utils/findMacroRule.d.ts +2 -0
  191. package/dist/shared-components/ConditionBuilder/utils/getInitialSelectedParameterValues.d.ts +2 -0
  192. package/dist/shared-components/ConditionBuilder/utils/getOperatorName.d.ts +2 -0
  193. package/dist/shared-components/ConditionBuilder/utils/getOperatorText.d.ts +2 -0
  194. package/dist/shared-components/ConditionBuilder/utils/index.d.ts +8 -0
  195. package/dist/shared-components/ConditionBuilder/utils/isComponentParameter.d.ts +2 -0
  196. package/dist/shared-components/ConditionBuilder/utils/isTextualParameter.d.ts +2 -0
  197. package/dist/shared-components/ConditionBuilder/utils/mapArrayToKeys.d.ts +6 -0
  198. package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.d.ts +5 -0
  199. package/dist/shared-components/ConfirmationDialog/ConfirmationDialog.types.d.ts +27 -0
  200. package/dist/shared-components/ConfirmationDialog/index.d.ts +2 -0
  201. package/dist/shared-components/OverviewCard/OverviewCard.d.ts +3 -0
  202. package/dist/shared-components/OverviewCard/OverviewCard.types.d.ts +16 -0
  203. package/dist/shared-components/OverviewCard/card-components/OverviewCardComponentLoader.d.ts +2 -0
  204. package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.d.ts +2 -0
  205. package/dist/shared-components/OverviewCard/card-components/condition-builder-overview-card-component/ConditionBuilderOverviewCardComponent.types.d.ts +3 -0
  206. package/dist/shared-components/OverviewCard/card-components/index.d.ts +1 -0
  207. package/dist/shared-components/OverviewCard/index.d.ts +3 -0
  208. package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.d.ts +3 -0
  209. package/dist/shared-components/OverviewCardGroup/OverviewCardGroup.types.d.ts +4 -0
  210. package/dist/shared-components/OverviewCardGroup/index.d.ts +2 -0
  211. package/dist/shared-components/StickyHeader/StickyHeader.d.ts +2 -0
  212. package/dist/shared-components/StickyHeader/StickyHeader.types.d.ts +4 -0
  213. package/dist/shared-components/StickyHeader/index.d.ts +2 -0
  214. package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.d.ts +5 -0
  215. package/dist/shared-components/Textarea/TextareaActionButtons/Base/TextareaActionButton.types.d.ts +3 -0
  216. package/dist/shared-components/Textarea/TextareaActionButtons/Base/index.d.ts +2 -0
  217. package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.d.ts +5 -0
  218. package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/TextareaCopyButton.types.d.ts +4 -0
  219. package/dist/shared-components/Textarea/TextareaActionButtons/CopyButton/index.d.ts +2 -0
  220. package/dist/shared-components/Textarea/index.d.ts +2 -0
  221. package/dist/shared-components/index.d.ts +15 -0
  222. package/dist/template-components/builder/PropertiesDialog.d.ts +2 -0
  223. package/dist/template-components/builder/PropertiesDialog.types.d.ts +40 -0
  224. package/dist/template-components/builder/PropertiesDialogContext.d.ts +3 -0
  225. package/dist/template-components/builder/PropertiesDialogContext.types.d.ts +23 -0
  226. package/dist/template-components/builder/index.d.ts +5 -0
  227. package/dist/template-components/builder/utils/keysToCamelCase.d.ts +6 -0
  228. package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.d.ts +2 -0
  229. package/dist/template-components/content-with-sidebar-layout-wrapper/ContentWithSidebarLayoutWrapper.types.d.ts +5 -0
  230. package/dist/template-components/content-with-sidebar-layout-wrapper/index.d.ts +2 -0
  231. package/dist/template-components/dialog/TemplateDialog.d.ts +2 -0
  232. package/dist/template-components/dialog/TemplateDialog.types.d.ts +8 -0
  233. package/dist/template-components/dialog/TemplateDialogContext.d.ts +3 -0
  234. package/dist/template-components/dialog/TemplateDialogContext.types.d.ts +44 -0
  235. package/dist/template-components/index.d.ts +7 -0
  236. package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.d.ts +3 -0
  237. package/dist/template-components/routing-content-placeholder/RoutingContentPlaceholder.types.d.ts +7 -0
  238. package/dist/template-components/secondary-menu/SecondaryMenu.d.ts +5 -0
  239. package/dist/template-components/secondary-menu/SecondaryMenuCell.d.ts +7 -0
  240. package/dist/template-components/secondary-menu/SecondaryMenuHeadline.d.ts +9 -0
  241. package/dist/template-components/secondary-menu/SecondaryMenuWrapper.d.ts +10 -0
  242. package/dist/template-components/side-menu/TemplateSideMenu.d.ts +1 -0
  243. package/dist/template-components/side-menu/side-menu-item/SideMenuItem.d.ts +2 -0
  244. package/dist/template-components/side-menu/side-menu-item/SideMenuItem.types.d.ts +4 -0
  245. package/dist/template-components/side-panel/TemplateSidePanel.d.ts +2 -0
  246. package/dist/template-components/side-panel/TemplateSidePanel.types.d.ts +8 -0
  247. package/dist/template-components/side-panel/TemplateSidePanelContext.d.ts +3 -0
  248. package/dist/template-components/side-panel/TemplateSidePanelContext.types.d.ts +32 -0
  249. package/dist/template-components/template-loader/TemplateLoader.d.ts +5 -0
  250. package/dist/template-components/template-loader/useTemplateDataLoader.d.ts +13 -0
  251. package/dist/template-properties/TemplateProperties.types.d.ts +40 -0
  252. package/dist/template-properties/TemplatePropertiesProvider.d.ts +9 -0
  253. package/dist/template-properties/index.d.ts +2 -0
  254. package/dist/templates/app/App.types.d.ts +25 -0
  255. package/dist/templates/app/AppTemplate.d.ts +3 -0
  256. package/dist/templates/app/application-menu/ApplicationMenu.d.ts +4 -0
  257. package/dist/templates/app/application-menu/ApplicationMenu.types.d.ts +5 -0
  258. package/dist/templates/app/application-menu/application-list/ApplicationList.d.ts +4 -0
  259. package/dist/templates/app/application-menu/application-list/ApplicationList.types.d.ts +31 -0
  260. package/dist/templates/app/application-menu/application-list/ApplicationListGroup.d.ts +4 -0
  261. package/dist/templates/app/application-menu/application-list/ApplicationListItem.d.ts +4 -0
  262. package/dist/templates/app/application-menu/application-list/index.d.ts +1 -0
  263. package/dist/templates/app/application-menu/application-list/utils.d.ts +10 -0
  264. package/dist/templates/app/application-menu/index.d.ts +1 -0
  265. package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.d.ts +4 -0
  266. package/dist/templates/app/application-menu-mobile/ApplicationMenuMobile.types.d.ts +5 -0
  267. package/dist/templates/app/application-menu-mobile/index.d.ts +1 -0
  268. package/dist/templates/app/avatar/Avatar.d.ts +13 -0
  269. package/dist/templates/app/breadcrumbs/Breadcrumbs.d.ts +4 -0
  270. package/dist/templates/app/breadcrumbs/Breadcrumbs.types.d.ts +19 -0
  271. package/dist/templates/app/breadcrumbs/BreadcrumbsContext.d.ts +4 -0
  272. package/dist/templates/app/breadcrumbs/BreadcrumbsProvider.d.ts +2 -0
  273. package/dist/templates/app/breadcrumbs/index.d.ts +2 -0
  274. package/dist/templates/app/main/Main.d.ts +6 -0
  275. package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigation.types.d.ts +11 -0
  276. package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationContext.d.ts +4 -0
  277. package/dist/templates/app/secondary-menu-navigation/SecondaryMenuNavigationProvider.d.ts +2 -0
  278. package/dist/templates/app/secondary-menu-navigation/index.d.ts +2 -0
  279. package/dist/templates/app/siteselector/SiteSelector.d.ts +4 -0
  280. package/dist/templates/app/siteselector/SiteSelector.types.d.ts +27 -0
  281. package/dist/templates/app/small-status-bar/Cell.d.ts +9 -0
  282. package/dist/templates/app/small-status-bar/SmallStatusBar.d.ts +5 -0
  283. package/dist/templates/app/small-status-bar/index.d.ts +1 -0
  284. package/dist/templates/app/status-bar/StatusBar.d.ts +9 -0
  285. package/dist/templates/app/status-bar/index.d.ts +1 -0
  286. package/dist/templates/condition-builder/ConditionBuilderTemplate.d.ts +2 -0
  287. package/dist/templates/condition-builder/ConditionBuilderTemplate.types.d.ts +7 -0
  288. package/dist/templates/dashboard/Dashboard.types.d.ts +4 -0
  289. package/dist/templates/dashboard/DashboardTemplate.d.ts +2 -0
  290. package/dist/templates/edit/EditSectionTemplate.d.ts +2 -0
  291. package/dist/templates/edit/EditSectionTemplate.types.d.ts +17 -0
  292. package/dist/templates/field-editor/FieldEditorBarItemHeader.d.ts +2 -0
  293. package/dist/templates/field-editor/FieldEditorBarItemHeader.types.d.ts +4 -0
  294. package/dist/templates/field-editor/FieldEditorForm.d.ts +5 -0
  295. package/dist/templates/field-editor/FieldEditorForm.types.d.ts +11 -0
  296. package/dist/templates/field-editor/FieldEditorTemplate.d.ts +14 -0
  297. package/dist/templates/field-editor/FieldEditorTemplate.types.d.ts +83 -0
  298. package/dist/templates/index.d.ts +13 -0
  299. package/dist/templates/listing/Listing.types.d.ts +25 -0
  300. package/dist/templates/listing/ListingTemplate.d.ts +2 -0
  301. package/dist/templates/no-license/NoLicenseTemplate.d.ts +2 -0
  302. package/dist/templates/no-license/NoLicenseTemplate.types.d.ts +8 -0
  303. package/dist/templates/overview/OverviewTemplate.d.ts +2 -0
  304. package/dist/templates/overview/OverviewTemplate.types.d.ts +31 -0
  305. package/dist/templates/secondary-menu-layout/SecondaryMenuLayout.d.ts +1 -0
  306. package/dist/templates/secondary-menu-layout/SecondaryMenuLayoutTemplate.d.ts +1 -0
  307. package/dist/templates/secondary-menu-layout/index.d.ts +1 -0
  308. package/dist/templates/settings/context/SettingsContext.d.ts +4 -0
  309. package/dist/templates/settings/context/SettingsContext.types.d.ts +11 -0
  310. package/dist/templates/settings/context/SettingsContextProvider.d.ts +12 -0
  311. package/dist/templates/settings/detail/SettingsBreadcrumbs.d.ts +2 -0
  312. package/dist/templates/settings/detail/SettingsDetails.types.d.ts +24 -0
  313. package/dist/templates/settings/detail/SettingsDetailsTemplate.d.ts +2 -0
  314. package/dist/templates/settings/detail/SettingsNoResultPage.d.ts +2 -0
  315. package/dist/templates/settings/detail/SettingsNoResultPage.types.d.ts +4 -0
  316. package/dist/templates/settings/detail/SettingsSearchTemplate.d.ts +2 -0
  317. package/dist/templates/settings/index.d.ts +3 -0
  318. package/dist/templates/settings/layout/NodeComponent.d.ts +2 -0
  319. package/dist/templates/settings/layout/NodeComponentProps.d.ts +6 -0
  320. package/dist/templates/settings/layout/SettingsLayout.types.d.ts +9 -0
  321. package/dist/templates/settings/layout/SettingsLayoutTemplate.d.ts +2 -0
  322. package/dist/templates/settings/layout/SettingsSearchRowComponent.d.ts +1 -0
  323. package/dist/templates/side-navigation-layout/SideNavigationLayoutTemplate.d.ts +1 -0
  324. package/dist/types/Action.types.d.ts +15 -0
  325. package/dist/types/NotificationMessage.types.d.ts +11 -0
  326. package/dist/types/index.d.ts +4 -0
  327. package/dist/utils/authentication/logonUrlProvider.d.ts +10 -0
  328. package/dist/utils/basePathUtils.d.ts +8 -0
  329. package/dist/utils/constants.d.ts +5 -0
  330. package/dist/utils/formatString.d.ts +1 -0
  331. package/dist/utils/index.d.ts +4 -0
  332. package/dist/utils/loadModule.d.ts +9 -0
  333. package/dist/utils/pathUtils/index.d.ts +1 -0
  334. package/dist/utils/pathUtils/pathUtils.d.ts +9 -0
  335. package/dist/utils/postToAdmin.d.ts +21 -0
  336. package/dist/utils/responseStatusActions.d.ts +15 -0
  337. package/package.json +89 -0
@@ -0,0 +1,2 @@
1
+ import { SettingsDetailsTemplateProps } from './SettingsDetails.types';
2
+ export declare const SettingsDetailsTemplate: (props: SettingsDetailsTemplateProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SettingsNoResultPageProps } from './SettingsNoResultPage.types';
2
+ export declare const SettingsNoResultPage: ({ filter, clearSearchHandler }: SettingsNoResultPageProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ export interface SettingsNoResultPageProps {
2
+ readonly filter: string;
3
+ readonly clearSearchHandler: () => void;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { SettingsDetailsTemplateProps } from './SettingsDetails.types';
2
+ export declare const SettingsSearchTemplate: (props: SettingsDetailsTemplateProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { SettingsLayoutTemplate } from './layout/SettingsLayoutTemplate';
2
+ export { SettingsDetailsTemplate } from './detail/SettingsDetailsTemplate';
3
+ export { SettingsSearchTemplate } from './detail/SettingsSearchTemplate';
@@ -0,0 +1,2 @@
1
+ import { NodeComponentProps } from './NodeComponentProps';
2
+ export declare const NodeComponent: ({ name, id, children, level, onNodeToggle, expandedIds }: NodeComponentProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { CategoryNode } from './SettingsLayout.types';
2
+ export interface NodeComponentProps extends CategoryNode {
3
+ readonly level: number;
4
+ readonly expandedIds: number[];
5
+ readonly onNodeToggle: (isExpanded: boolean, id: number) => void;
6
+ }
@@ -0,0 +1,9 @@
1
+ export interface SettingsLayoutProps {
2
+ readonly root: CategoryNode;
3
+ }
4
+ export interface CategoryNode {
5
+ readonly name: string;
6
+ readonly id: number;
7
+ readonly categoryPath: number[];
8
+ readonly children: CategoryNode[];
9
+ }
@@ -0,0 +1,2 @@
1
+ import { SettingsLayoutProps } from './SettingsLayout.types';
2
+ export declare const SettingsLayoutTemplate: ({ root }: SettingsLayoutProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SettingsSearchRowComponent: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SideNavigationLayoutTemplate: () => JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { IconName } from '@kentico/xperience-admin-components';
2
+ export declare enum ActionType {
3
+ Link = "link",
4
+ Command = "command"
5
+ }
6
+ export interface Action {
7
+ readonly type: ActionType;
8
+ readonly parameter: string;
9
+ readonly label: string;
10
+ readonly icon: IconName;
11
+ readonly disabled: boolean;
12
+ readonly destructive: boolean;
13
+ readonly confirmation?: string;
14
+ readonly confirmationButton: string;
15
+ }
@@ -0,0 +1,11 @@
1
+ export interface NotificationMessage {
2
+ readonly id?: string | number;
3
+ readonly message: string;
4
+ readonly type: NotificationMessageType;
5
+ }
6
+ export declare enum NotificationMessageType {
7
+ Success = "success",
8
+ Error = "error",
9
+ Warning = "warning",
10
+ Info = "info"
11
+ }
@@ -0,0 +1,4 @@
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';
@@ -0,0 +1,10 @@
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 };
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,5 @@
1
+ export declare const conditionBuilderDialogMinWidth = "65vw";
2
+ export declare const conditionBuilderDialogHeight = "100%";
3
+ export declare const conditionBuilderDialogFullscreenBreakpoint = 1024;
4
+ export declare const editTemplateDialogMinWidth = "65vw";
5
+ export declare const editTemplateSidePanelMinWidth = "600px";
@@ -0,0 +1 @@
1
+ export declare const formatString: (text: string | null, ...values: string[] | number[]) => string | null;
@@ -0,0 +1,4 @@
1
+ export * from './authentication/logonUrlProvider';
2
+ export * from './postToAdmin';
3
+ export * from './basePathUtils';
4
+ export * from './formatString';
@@ -0,0 +1,9 @@
1
+ export declare type ModuleLoaderResultType = Promise<{
2
+ default: any;
3
+ }>;
4
+ export 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;
@@ -0,0 +1 @@
1
+ export * from './pathUtils';
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,21 @@
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>;
@@ -0,0 +1,15 @@
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 };
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "@kentico/xperience-admin-base",
3
+ "version": "14.0.0-109224",
4
+ "main": "dist/entry.js",
5
+ "types": "dist/entry.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "description": "Kentico Xperience administration base library.",
10
+ "keywords": [
11
+ "kentico",
12
+ "xperience",
13
+ "administration",
14
+ "admin",
15
+ "base"
16
+ ],
17
+ "license": "SEE LICENSE IN LICENSE.txt",
18
+ "dependencies": {
19
+ "@kentico/xperience-admin-components": "14.0.0-109224",
20
+ "classnames": "^2.3.1",
21
+ "history": "^5.2.0",
22
+ "react": "^17.0.2",
23
+ "react-cool-inview": "^2.0.9",
24
+ "react-dnd": "^15.1.1",
25
+ "react-dnd-html5-backend": "^15.1.2",
26
+ "react-dom": "^17.0.2",
27
+ "react-router-dom": "6.2.1",
28
+ "react-select": "^5.2.2",
29
+ "react-select-async-paginate": "^0.6.1",
30
+ "use-resize-observer": "8.0.0",
31
+ "uuid": "^8.3.2",
32
+ "@react-aria/visually-hidden": "^3.2.3",
33
+ "@react-aria/focus": "^3.5.0"
34
+ },
35
+ "devDependencies": {
36
+ "@babel/core": "^7.17.2",
37
+ "@babel/eslint-parser": "^7.17.0",
38
+ "@babel/plugin-transform-runtime": "^7.17.0",
39
+ "@babel/preset-env": "^7.16.11",
40
+ "@babel/preset-react": "^7.16.7",
41
+ "@babel/preset-typescript": "^7.16.7",
42
+ "@babel/runtime": "^7.17.2",
43
+ "@testing-library/jest-dom": "^5.16.2",
44
+ "@testing-library/react": "^12.1.2",
45
+ "@testing-library/react-hooks": "^7.0.2",
46
+ "@types/jest": "^27.4.0",
47
+ "@types/react": "^17.0.39",
48
+ "@types/react-beautiful-dnd": "^13.1.2",
49
+ "@types/react-dom": "^17.0.11",
50
+ "@types/react-router-dom": "^5.3.3",
51
+ "@types/systemjs": "^6.1.1",
52
+ "@types/webpack-env": "^1.16.3",
53
+ "@types/uuid": "^8.3.4",
54
+ "autoprefixer": "^10.4.2",
55
+ "babel-loader": "8.2.3",
56
+ "cross-env": "^7.0.3",
57
+ "css-loader": "^6.6.0",
58
+ "eslint": "^8.9.0",
59
+ "eslint-config-prettier": "^8.3.0",
60
+ "eslint-config-ts-react-important-stuff": "^3.0.0",
61
+ "eslint-plugin-prettier": "^4.0.0",
62
+ "eslint-plugin-react": "^7.28.0",
63
+ "file-loader": "^6.2.0",
64
+ "jest": "^27.5.1",
65
+ "jest-junit": "^13.0.0",
66
+ "postcss": "^8.4.6",
67
+ "postcss-loader": "^6.2.1",
68
+ "prettier": "^2.5.1",
69
+ "react-test-renderer": "^17.0.2",
70
+ "sass": "^1.49.7",
71
+ "sass-loader": "^12.4.0",
72
+ "style-loader": "^3.3.1",
73
+ "ts-jest": "^27.1.3",
74
+ "typescript": "^4.5.5",
75
+ "webpack": "^5.68.0",
76
+ "webpack-cli": "^4.9.2",
77
+ "webpack-dev-server": "^4.7.4",
78
+ "webpack-merge": "^5.8.0"
79
+ },
80
+ "scripts": {
81
+ "start": "webpack serve --mode development",
82
+ "dev:remote": "webpack serve --mode development --env remote",
83
+ "build": "webpack --mode=production",
84
+ "declaration": "tsc --project tsconfig.declaration.json",
85
+ "typecheck": "tsc --noEmit",
86
+ "analyze": "webpack --mode=production --env.analyze=true",
87
+ "test": "cross-env BABEL_ENV=test jest"
88
+ }
89
+ }