@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,25 @@
1
+ import { IconName } from '@kentico/xperience-admin-components';
2
+ import { TemplateProperties } from '../../template-properties';
3
+ import { SiteSelectorProps } from './siteselector/SiteSelector.types';
4
+ export interface Application {
5
+ readonly name: string;
6
+ readonly icon: IconName;
7
+ readonly path: string;
8
+ }
9
+ export interface ApplicationCategory {
10
+ readonly name: string;
11
+ readonly icon: IconName;
12
+ readonly applications: Application[];
13
+ readonly codeName: string;
14
+ }
15
+ export interface UserProfile {
16
+ readonly userName: string;
17
+ readonly firstName: string;
18
+ readonly lastName: string;
19
+ readonly profileLink: string;
20
+ }
21
+ export interface AppTemplateProps extends TemplateProperties {
22
+ readonly categories: ApplicationCategory[];
23
+ readonly siteSelectorProperties: SiteSelectorProps;
24
+ readonly userProfile: UserProfile;
25
+ }
@@ -0,0 +1,3 @@
1
+ import { AppTemplateProps } from './App.types';
2
+ declare const AppTemplate: ({ categories }: AppTemplateProps) => JSX.Element;
3
+ export { AppTemplate };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ApplicationMenuProps } from './ApplicationMenu.types';
3
+ declare const ApplicationMenu: React.ForwardRefExoticComponent<ApplicationMenuProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { ApplicationMenu };
@@ -0,0 +1,5 @@
1
+ import { UITestProps } from '@kentico/xperience-admin-components';
2
+ import { ApplicationCategory } from '../App.types';
3
+ export interface ApplicationMenuProps extends UITestProps {
4
+ readonly categories: ApplicationCategory[];
5
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ApplicationListProps } from './ApplicationList.types';
3
+ declare const ApplicationList: React.ForwardRefExoticComponent<ApplicationListProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { ApplicationList };
@@ -0,0 +1,31 @@
1
+ import { MouseEvent, RefObject } from 'react';
2
+ import { UITestProps } from '@kentico/xperience-admin-components';
3
+ import { Application, ApplicationCategory } from '../../App.types';
4
+ export declare enum ApplicationListView {
5
+ List = "list",
6
+ Tiles = "tiles"
7
+ }
8
+ export interface ApplicationListProps extends UITestProps {
9
+ readonly categories: ApplicationCategory[];
10
+ readonly selectedCategory?: ApplicationCategory;
11
+ readonly applicationPath: string;
12
+ readonly handleClick: (selectedCategory: ApplicationCategory) => void;
13
+ readonly overlayRef: RefObject<HTMLDivElement>;
14
+ readonly className?: string;
15
+ }
16
+ export interface ApplicationListGroupProps {
17
+ readonly category?: ApplicationCategory;
18
+ readonly applicationPath: string;
19
+ readonly view: ApplicationListView;
20
+ readonly handleClick: (category: ApplicationCategory) => void;
21
+ readonly renderToggleButtons?: () => React.ReactNode;
22
+ }
23
+ export declare enum ApplicationListItemState {
24
+ Default = "Default",
25
+ Activated = "Activated"
26
+ }
27
+ export interface ApplicationListItemProps extends UITestProps {
28
+ readonly state: ApplicationListItemState;
29
+ readonly application: Application;
30
+ readonly handleClick: (event: MouseEvent<HTMLElement>) => void;
31
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ApplicationListGroupProps } from './ApplicationList.types';
3
+ declare const ApplicationListGroup: React.ForwardRefExoticComponent<ApplicationListGroupProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { ApplicationListGroup };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ApplicationListItemProps } from './ApplicationList.types';
3
+ declare const ApplicationListItem: React.ForwardRefExoticComponent<ApplicationListItemProps & React.RefAttributes<HTMLLIElement>>;
4
+ export { ApplicationListItem };
@@ -0,0 +1 @@
1
+ export { ApplicationList } from './ApplicationList';
@@ -0,0 +1,10 @@
1
+ import { ApplicationCategory } from '../../App.types';
2
+ /**
3
+ * Filters applications in list of categories. Applications are sorted according to best matching result.
4
+ * If no application of category match query, whole category is omitted.
5
+ *
6
+ * @param categories List of categories with applications to filter.
7
+ * @param filter Filter string to match.
8
+ * @returns FilteredCategories Categories with matched applications.
9
+ */
10
+ export declare const filterCategories: (categories: ApplicationCategory[], filter: string) => ApplicationCategory[];
@@ -0,0 +1 @@
1
+ export { ApplicationMenu } from './ApplicationMenu';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ApplicationMenuMobileProps } from './ApplicationMenuMobile.types';
3
+ declare const ApplicationMenuMobile: React.ForwardRefExoticComponent<ApplicationMenuMobileProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { ApplicationMenuMobile };
@@ -0,0 +1,5 @@
1
+ import { UITestProps } from '@kentico/xperience-admin-components';
2
+ import { ApplicationCategory } from '../App.types';
3
+ export interface ApplicationMenuMobileProps extends UITestProps {
4
+ readonly categories: ApplicationCategory[];
5
+ }
@@ -0,0 +1 @@
1
+ export { ApplicationMenuMobile } from './ApplicationMenuMobile';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { AvatarProps as AvatarComponentProps, DropdownPlacement } from '@kentico/xperience-admin-components';
3
+ import { UserProfile } from '../App.types';
4
+ interface AvatarProps {
5
+ readonly userProfile: UserProfile;
6
+ readonly menuPlacement?: DropdownPlacement;
7
+ readonly renderTrigger: (ref: React.RefObject<HTMLElement>, onTriggerClick: () => void, avatarProps: AvatarComponentProps, isOpen: boolean) => React.ReactNode;
8
+ }
9
+ declare const Avatar: {
10
+ ({ userProfile, menuPlacement, renderTrigger }: AvatarProps): JSX.Element;
11
+ displayName: string;
12
+ };
13
+ export { Avatar };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BreadcrumbsProps } from './Breadcrumbs.types';
3
+ declare const Breadcrumbs: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLDivElement>>;
4
+ export { Breadcrumbs };
@@ -0,0 +1,19 @@
1
+ import { RefObject } from 'react';
2
+ import { BreadcrumbProps as BreadcrumbComponentProps } from '@kentico/xperience-admin-components';
3
+ export interface BreadcrumbsContextType {
4
+ readonly breadcrumbs: BreadcrumbProps[];
5
+ readonly push: (path: string, isSignificant: boolean, text: string) => void;
6
+ readonly pop: () => void;
7
+ readonly refreshItem: (level: number, text: string) => void;
8
+ readonly statusNode: React.ReactNode;
9
+ readonly setStatusNode: (statusNode: React.ReactNode) => void;
10
+ }
11
+ export interface BreadcrumbsProviderProps {
12
+ readonly children: React.ReactNode;
13
+ }
14
+ export interface BreadcrumbProps extends BreadcrumbComponentProps {
15
+ readonly isSignificant: boolean;
16
+ }
17
+ export interface BreadcrumbsProps {
18
+ readonly containerRef?: RefObject<HTMLDivElement>;
19
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { BreadcrumbsContextType } from './Breadcrumbs.types';
3
+ export declare const BreadcrumbsContext: React.Context<BreadcrumbsContextType>;
4
+ export declare const useBreadcrumbs: () => BreadcrumbsContextType;
@@ -0,0 +1,2 @@
1
+ import { BreadcrumbsProviderProps } from './Breadcrumbs.types';
2
+ export declare const BreadcrumbsProvider: ({ children }: BreadcrumbsProviderProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './BreadcrumbsContext';
2
+ export * from './BreadcrumbsProvider';
@@ -0,0 +1,6 @@
1
+ import { ApplicationCategory } from '../App.types';
2
+ interface MainProps {
3
+ readonly categories: ApplicationCategory[];
4
+ }
5
+ declare const Main: ({ categories }: MainProps) => JSX.Element;
6
+ export { Main };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Navigation } from '../../../template-properties';
3
+ export interface SecondaryMenuNavigationContextType {
4
+ readonly navigation: Navigation[];
5
+ readonly push: (navigation: Navigation, pagePath: string) => void;
6
+ readonly pop: () => void;
7
+ readonly refreshItem: (level: number, headline: string) => void;
8
+ }
9
+ export interface SecondaryMenuNavigationProviderProps {
10
+ readonly children: React.ReactNode;
11
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SecondaryMenuNavigationContextType } from './SecondaryMenuNavigation.types';
3
+ export declare const SecondaryMenuNavigationContext: React.Context<SecondaryMenuNavigationContextType>;
4
+ export declare const useSecondaryMenuNavigation: () => SecondaryMenuNavigationContextType;
@@ -0,0 +1,2 @@
1
+ import { SecondaryMenuNavigationProviderProps } from './SecondaryMenuNavigation.types';
2
+ export declare const SecondaryMenuNavigationProvider: ({ children }: SecondaryMenuNavigationProviderProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './SecondaryMenuNavigationContext';
2
+ export * from './SecondaryMenuNavigationProvider';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SiteSelectorProps } from './SiteSelector.types';
3
+ declare const SiteSelector: React.FC<SiteSelectorProps>;
4
+ export { SiteSelector };
@@ -0,0 +1,27 @@
1
+ import { DropdownActionMenuProps, IconName } from '@kentico/xperience-admin-components';
2
+ import React from 'react';
3
+ export interface SiteSelectorProps {
4
+ sites: SiteSelectorItemModel[];
5
+ currentSiteName: string;
6
+ sitesApplication: ApplicationNavigationModel;
7
+ }
8
+ export interface SiteSelectorItemModel {
9
+ name: string;
10
+ url: string;
11
+ }
12
+ export interface ApplicationNavigationModel {
13
+ name: string;
14
+ path: string;
15
+ }
16
+ export interface SelectType {
17
+ readonly id: string;
18
+ readonly title: string;
19
+ readonly defaultLabel: string;
20
+ readonly noItemLabel: string;
21
+ readonly icon?: IconName;
22
+ readonly options: SiteSelectorItemModel[];
23
+ readonly footer: ApplicationNavigationModel;
24
+ }
25
+ export interface DropdownControlledType extends Omit<DropdownActionMenuProps, 'children'> {
26
+ renderMenu: (setOpen: (open: boolean) => void) => React.ReactNode;
27
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface CellProps {
3
+ readonly active?: boolean;
4
+ readonly link?: string;
5
+ readonly children: React.ReactNode;
6
+ readonly onClick?: () => void;
7
+ }
8
+ declare const Cell: React.ForwardRefExoticComponent<CellProps & React.RefAttributes<HTMLButtonElement>>;
9
+ export { Cell };
@@ -0,0 +1,5 @@
1
+ declare const SmallStatusBar: {
2
+ (): JSX.Element;
3
+ displayName: string;
4
+ };
5
+ export { SmallStatusBar };
@@ -0,0 +1 @@
1
+ export { SmallStatusBar } from './SmallStatusBar';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * StatusBar is upper part of application shell. It contains main navigation,
3
+ * like breadcrumbs, selects, avatar and application specific buttons.
4
+ */
5
+ declare const StatusBar: {
6
+ (): JSX.Element;
7
+ displayName: string;
8
+ };
9
+ export { StatusBar };
@@ -0,0 +1 @@
1
+ export { StatusBar } from './StatusBar';
@@ -0,0 +1,2 @@
1
+ import { ConditionBuilderTemplateProps } from './ConditionBuilderTemplate.types';
2
+ export declare const ConditionBuilderTemplate: ({ backLink, errorMessage, caption, submitLabel, initialConfiguration, availableMacroRuleConfigurations, availableMacroRules }: ConditionBuilderTemplateProps) => JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { ConditionBuilderProps } from '../../shared-components/ConditionBuilder/ConditionBuilder';
2
+ export interface ConditionBuilderTemplateProps extends Pick<ConditionBuilderProps, 'availableMacroRules' | 'availableMacroRuleConfigurations' | 'initialConfiguration'> {
3
+ readonly backLink?: string;
4
+ readonly errorMessage?: string;
5
+ readonly submitLabel: string;
6
+ readonly caption: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { Application } from '../app/App.types';
2
+ export interface DashboardProps {
3
+ readonly applications: Application[];
4
+ }
@@ -0,0 +1,2 @@
1
+ import { DashboardProps } from './Dashboard.types';
2
+ export declare const DashboardTemplate: ({ applications }: DashboardProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { EditSectionTemplateProps } from './EditSectionTemplate.types';
2
+ export declare const EditSectionTemplate: ({ items, submitLabel, errorMessage, readOnly, headline, backLink, callouts }: EditSectionTemplateProps) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { FormSubmissionResult, FormItems } from '../../forms';
2
+ import { CalloutConfiguration } from '../../shared-components';
3
+ export interface EditSectionTemplateProps {
4
+ readonly backLink?: string;
5
+ readonly readOnly: boolean;
6
+ readonly submitLabel: string;
7
+ readonly items: FormItems;
8
+ readonly headline: string;
9
+ readonly errorMessage?: string;
10
+ readonly callouts: CalloutConfiguration[];
11
+ }
12
+ export interface FormChangeResult {
13
+ readonly items: FormItems;
14
+ }
15
+ export interface EditPageSuccessFormSubmissionResult extends FormSubmissionResult {
16
+ readonly objectName: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ import { FieldEditorBarItemHeaderProps } from './FieldEditorBarItemHeader.types';
2
+ export declare const FieldEditorBarItemHeader: ({ fieldData }: FieldEditorBarItemHeaderProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { FieldData } from './FieldEditorTemplate.types';
2
+ export interface FieldEditorBarItemHeaderProps {
3
+ readonly fieldData: FieldData;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { FieldEditorFormProps } from './FieldEditorForm.types';
2
+ /**
3
+ * Form used in Field Editor for each displayed field.
4
+ */
5
+ export declare const FieldEditorForm: ({ name, subForms, onChange, onCancel, addingField }: FieldEditorFormProps) => JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { FormFieldChange, SubForm } from './FieldEditorTemplate.types';
2
+ /**
3
+ * Represents properties for each displayed field.
4
+ */
5
+ export interface FieldEditorFormProps {
6
+ readonly subForms: SubForm[];
7
+ readonly onChange: (event: FormFieldChange) => void;
8
+ readonly name: string;
9
+ readonly onCancel: () => void;
10
+ readonly addingField: boolean;
11
+ }
@@ -0,0 +1,14 @@
1
+ import { FieldEditorTemplateProps } from './FieldEditorTemplate.types';
2
+ export declare const FieldEditorCommands: {
3
+ CreateField: string;
4
+ GetFields: string;
5
+ GetFormFieldMetadata: string;
6
+ GetEmptyFormFieldMetadata: string;
7
+ MoveField: string;
8
+ SaveField: string;
9
+ DeleteField: string;
10
+ };
11
+ /**
12
+ * Field editor template.
13
+ */
14
+ export declare const FieldEditorTemplate: ({ caption }: FieldEditorTemplateProps) => JSX.Element;
@@ -0,0 +1,83 @@
1
+ import { FormComponentProps } from '../../forms/form-components';
2
+ export interface FieldEditorTemplateProps {
3
+ readonly caption: string;
4
+ }
5
+ /**
6
+ * Represents a field, edited by the field editor.
7
+ */
8
+ export interface FieldData {
9
+ readonly name: string;
10
+ readonly visible: boolean;
11
+ readonly required: boolean;
12
+ readonly dataType: string;
13
+ readonly deletable: boolean;
14
+ }
15
+ export interface FieldChangeResult {
16
+ readonly fieldData: FieldData;
17
+ readonly subForms: SubForm[];
18
+ readonly isValid: boolean;
19
+ }
20
+ export interface GetFieldsResult {
21
+ readonly fields: FieldData[];
22
+ }
23
+ export interface GetFormFieldMetadataArguments {
24
+ readonly name: string;
25
+ readonly subForms: Record<string, Record<string, any>>;
26
+ }
27
+ export interface SubForm {
28
+ readonly id: string;
29
+ readonly timeStamp: string;
30
+ readonly title: string;
31
+ readonly components: FormComponentProps[];
32
+ }
33
+ /**
34
+ * Represents command result for creating field.
35
+ * Matches backend implementation, helps to avoid breaking change in the future.
36
+ */
37
+ export interface CreateFieldResult extends FieldChangeResult {
38
+ }
39
+ /**
40
+ * Shared parameters for field change operation.
41
+ */
42
+ interface FieldChangeArguments {
43
+ readonly subForms: Record<string, Record<string, any>>;
44
+ }
45
+ /**
46
+ * Represents parameters for field update operation.
47
+ * Matches backend implementation, helps to avoid breaking change in the future.
48
+ */
49
+ export interface SaveFieldArguments extends FieldChangeArguments {
50
+ readonly name: string;
51
+ }
52
+ /**
53
+ * Represents parameters for field create operation.
54
+ * Matches backend implementation, helps to avoid breaking change in the future.
55
+ */
56
+ export interface CreateFieldArguments extends FieldChangeArguments {
57
+ }
58
+ export interface FormFieldChange {
59
+ readonly formName: string;
60
+ readonly fieldName: string;
61
+ readonly value: any;
62
+ }
63
+ /**
64
+ * Represents parameters for field move operation.
65
+ * Matches backend implementation, helps to avoid breaking change in the future.
66
+ */
67
+ export interface MoveFieldParameters {
68
+ readonly sourceIndex: number;
69
+ readonly destinationIndex: number;
70
+ }
71
+ /**
72
+ * Represents parameters for field deletion operation.
73
+ */
74
+ export interface DeleteFieldParameters {
75
+ readonly deletedFieldName: string;
76
+ }
77
+ /**
78
+ * Represents command result for deleting field.
79
+ * Matches backend implementation, helps to avoid breaking change in the future.
80
+ */
81
+ export interface DeleteFieldResult extends FieldChangeResult {
82
+ }
83
+ export {};
@@ -0,0 +1,13 @@
1
+ export * from './app/AppTemplate';
2
+ export * from './dashboard/DashboardTemplate';
3
+ export * from './edit/EditSectionTemplate';
4
+ export * from './no-license/NoLicenseTemplate';
5
+ export * from './condition-builder/ConditionBuilderTemplate';
6
+ export * from './overview/OverviewTemplate';
7
+ export * from './listing/ListingTemplate';
8
+ export * from './secondary-menu-layout';
9
+ export * from './field-editor/FieldEditorTemplate';
10
+ export * from './app/breadcrumbs';
11
+ export * from './app/secondary-menu-navigation';
12
+ export * from './side-navigation-layout/SideNavigationLayoutTemplate';
13
+ export * from './settings';
@@ -0,0 +1,25 @@
1
+ import { TableColumn, TableRow, SortType } from '@kentico/xperience-admin-components';
2
+ import { CalloutConfiguration } from '../../shared-components';
3
+ import { Action } from '../../types';
4
+ export interface ListingProps {
5
+ readonly columns: TableColumn[];
6
+ readonly headerActions?: Action[];
7
+ readonly pageSizes: number[];
8
+ readonly pageSize: number;
9
+ readonly caption: string;
10
+ readonly sortBy: string;
11
+ readonly sortType: SortType;
12
+ readonly pageSizesLabel: string;
13
+ readonly callouts?: CalloutConfiguration[];
14
+ readonly maxVisibleRowActions?: number;
15
+ }
16
+ export interface ListingRow extends TableRow {
17
+ readonly action: Action;
18
+ }
19
+ export interface LoadDataResult {
20
+ readonly rows?: ListingRow[];
21
+ readonly totalCount: number;
22
+ }
23
+ export interface RowActionResult {
24
+ reload: boolean;
25
+ }
@@ -0,0 +1,2 @@
1
+ import { ListingProps } from './Listing.types';
2
+ export declare const ListingTemplate: ({ headerActions, columns, caption, callouts, maxVisibleRowActions, ...props }: ListingProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NoLicenseTemplateProps } from './NoLicenseTemplate.types';
2
+ export declare const NoLicenseTemplate: ({ callouts, headline, content, actionButton }: NoLicenseTemplateProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { CalloutConfiguration } from '../../shared-components';
2
+ import { Action } from '../../types';
3
+ export interface NoLicenseTemplateProps {
4
+ readonly callouts: CalloutConfiguration[];
5
+ readonly headline: string;
6
+ readonly content: string;
7
+ readonly actionButton: Action;
8
+ }
@@ -0,0 +1,2 @@
1
+ import { OverviewTemplateProps } from './OverviewTemplate.types';
2
+ export declare const OverviewTemplate: ({ errorMessage, caption }: OverviewTemplateProps) => JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { Gradients, IconName } from '@kentico/xperience-admin-components';
2
+ import { CalloutConfiguration } from '../../shared-components/Callout/Callout.types';
3
+ import { OverviewCardComponentProps } from '../../shared-components/OverviewCard/OverviewCard.types';
4
+ import { Action } from '../../types';
5
+ export interface OverviewTemplateProps {
6
+ readonly errorMessage?: string;
7
+ readonly caption: string;
8
+ }
9
+ export interface LoadOverviewDataResult {
10
+ callouts: CalloutConfiguration[];
11
+ cardGroups: CardGroupConfiguration[];
12
+ }
13
+ export interface CardGroupConfiguration {
14
+ readonly cards: CardConfiguration[];
15
+ }
16
+ export interface CardConfiguration {
17
+ readonly headline: string;
18
+ readonly tags?: CardTagConfiguration[];
19
+ readonly content: string;
20
+ readonly action?: Action;
21
+ readonly component?: OverviewCardComponentProps;
22
+ }
23
+ export interface CardActionConfiguration {
24
+ readonly label: string;
25
+ readonly icon?: IconName;
26
+ readonly clickCommandName: string;
27
+ }
28
+ export interface CardTagConfiguration {
29
+ readonly gradient: keyof typeof Gradients;
30
+ readonly label: string;
31
+ }
@@ -0,0 +1 @@
1
+ export declare const SecondaryMenuLayout: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SecondaryMenuLayoutTemplate: () => JSX.Element;
@@ -0,0 +1 @@
1
+ export { SecondaryMenuLayoutTemplate } from './SecondaryMenuLayoutTemplate';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SettingsContextType } from './SettingsContext.types';
3
+ export declare const SettingsContext: React.Context<SettingsContextType>;
4
+ export declare function useSettingsContext(): SettingsContextType;
@@ -0,0 +1,11 @@
1
+ export declare type CategoryNamesDictionary = {
2
+ [key: number]: string;
3
+ };
4
+ export interface SettingsContextType {
5
+ invokeOnSubmitHandler: () => Promise<void>;
6
+ registerOnSubmitHandler: (handler: () => Promise<void>) => void;
7
+ registerClearSearchHandler: (handler: () => void) => void;
8
+ searchFilter: string;
9
+ setSearchFilter: (value: string) => void;
10
+ settingsCategoryNames: CategoryNamesDictionary;
11
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface SettingContextProps {
3
+ readonly categories: {
4
+ [key: number]: string;
5
+ };
6
+ readonly children: React.ReactNode;
7
+ }
8
+ export declare const SettingsContextProvider: {
9
+ ({ children, categories }: SettingContextProps): JSX.Element;
10
+ displayName: string;
11
+ };
12
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Category } from './SettingsDetails.types';
2
+ export declare const SettingsBreadcrumbs: ({ categoryId, categoryIdPath, displayName }: Category) => JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { FormComponentProps } from '../../../forms/form-components';
2
+ export interface SettingsDetailsTemplateProps {
3
+ readonly title: string;
4
+ readonly categories: Category[];
5
+ }
6
+ export interface SettingsNoResultPageProps {
7
+ readonly filter: string;
8
+ readonly clearSearchHandler: () => void;
9
+ }
10
+ export interface Category {
11
+ readonly categoryId: number;
12
+ readonly categoryParentId: number;
13
+ readonly categoryIdPath: string;
14
+ readonly displayName: string;
15
+ readonly components: FormComponentProps[];
16
+ }
17
+ export interface SaveKeysArguments {
18
+ readonly keyValues: Record<string, any>;
19
+ readonly filter: string;
20
+ }
21
+ export interface SaveKeysResult {
22
+ readonly isValid: boolean;
23
+ readonly categories: Category[];
24
+ }