@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,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,3 @@
1
+ export { usePageCommand } from './usePageCommand';
2
+ export { usePageCommandProvider } from './CommandContext';
3
+ export type { Command, CommandExecutor, UseCommandConfig } from './useCommand.types';
@@ -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,2 @@
1
+ import { ActionListProps } from './ActionList.types';
2
+ export declare const ActionList: ({ actions, dataTestId }: ActionListProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { UITestProps } from '@kentico/xperience-admin-components';
2
+ import { Action } from '../../types';
3
+ export interface ActionListProps extends UITestProps {
4
+ actions?: Action[];
5
+ }
@@ -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,5 @@
1
+ import { ViewMenuItemProps } from './ViewMenuItem.types';
2
+ /**
3
+ * View menu item component. Automatically handles whether is active by comparing current location with provided path.
4
+ */
5
+ export declare const ViewMenuItem: (props: ViewMenuItemProps) => JSX.Element;
@@ -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,5 @@
1
+ interface PageLoaderProps {
2
+ titleVisible?: boolean;
3
+ }
4
+ export declare const PageLoader: ({ titleVisible }: PageLoaderProps) => JSX.Element;
5
+ export {};
@@ -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 };
@@ -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';