@prorobotech/openapi-k8s-toolkit 1.1.0-alpha.2 → 1.1.0-alpha.21

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 (249) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +2867 -1815
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +2876 -1819
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/api/bff/scopes/checkScopes.d.ts +6 -6
  6. package/dist/types/api/bff/scopes/filterScopes.d.ts +4 -4
  7. package/dist/types/api/bff/search/getKinds.d.ts +2 -2
  8. package/dist/types/api/bff/swagger/getSwagger.d.ts +2 -2
  9. package/dist/types/api/forms.d.ts +4 -0
  10. package/dist/types/api/getApiResource.d.ts +8 -8
  11. package/dist/types/api/getApiResourceTypes.d.ts +4 -4
  12. package/dist/types/api/getBuiltinResource.d.ts +8 -8
  13. package/dist/types/api/getBuiltinResourceTypes.d.ts +2 -2
  14. package/dist/types/api/getCrdData.d.ts +2 -2
  15. package/dist/types/api/getCrdResource.d.ts +5 -5
  16. package/dist/types/api/permissions.d.ts +4 -4
  17. package/dist/types/components/atoms/CursorDefaultDiv/CursorDefaultDiv.d.ts +2 -2
  18. package/dist/types/components/atoms/CursorDefaultDiv/index.d.ts +1 -1
  19. package/dist/types/components/atoms/CursorPointerTag/index.d.ts +1 -1
  20. package/dist/types/components/atoms/CursorPointerTagMinContent/index.d.ts +1 -1
  21. package/dist/types/components/atoms/CustomSelect/index.d.ts +1 -1
  22. package/dist/types/components/atoms/FlexGrow/index.d.ts +1 -1
  23. package/dist/types/components/atoms/PaddingContainer/index.d.ts +1 -1
  24. package/dist/types/components/atoms/ResourceLink/ResourceLink.d.ts +19 -0
  25. package/dist/types/components/atoms/ResourceLink/index.d.ts +1 -0
  26. package/dist/types/components/atoms/ResourceLink/styled.d.ts +8 -0
  27. package/dist/types/components/atoms/UncontrolledSelect/index.d.ts +1 -1
  28. package/dist/types/components/atoms/index.d.ts +19 -13
  29. package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/ArrayInsideContainer.d.ts +2 -2
  30. package/dist/types/components/molecules/BlackholeForm/atoms/ArrayInsideContainer/index.d.ts +1 -1
  31. package/dist/types/components/molecules/BlackholeForm/atoms/CustomCollapse/index.d.ts +1 -1
  32. package/dist/types/components/molecules/BlackholeForm/atoms/CustomSizeTitle/index.d.ts +1 -1
  33. package/dist/types/components/molecules/BlackholeForm/atoms/DebugNameViewer/index.d.ts +1 -1
  34. package/dist/types/components/molecules/BlackholeForm/atoms/HeightContainer/index.d.ts +1 -1
  35. package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/HiddenContainer.d.ts +4 -2
  36. package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/index.d.ts +1 -1
  37. package/dist/types/components/molecules/BlackholeForm/atoms/PersistedCheckbox/index.d.ts +1 -1
  38. package/dist/types/components/molecules/BlackholeForm/atoms/PossibleHiddenContainer/index.d.ts +1 -1
  39. package/dist/types/components/molecules/BlackholeForm/atoms/ResetedFormItem/index.d.ts +1 -1
  40. package/dist/types/components/molecules/BlackholeForm/atoms/index.d.ts +9 -9
  41. package/dist/types/components/molecules/BlackholeForm/index.d.ts +2 -2
  42. package/dist/types/components/molecules/BlackholeForm/molecules/FormArrayHeader/index.d.ts +1 -1
  43. package/dist/types/components/molecules/BlackholeForm/molecules/FormBooleanInput/index.d.ts +1 -1
  44. package/dist/types/components/molecules/BlackholeForm/molecules/FormEnumStringInput/index.d.ts +1 -1
  45. package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/FormInlineYamlEditor.d.ts +4 -2
  46. package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/index.d.ts +1 -1
  47. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/index.d.ts +1 -1
  48. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/index.d.ts +1 -1
  49. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/index.d.ts +1 -1
  50. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/index.d.ts +1 -1
  51. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/index.d.ts +1 -1
  52. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/RangeInput/index.d.ts +1 -1
  53. package/dist/types/components/molecules/BlackholeForm/molecules/FormRangeInput/molecules/index.d.ts +1 -1
  54. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/index.d.ts +1 -1
  55. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/index.d.ts +1 -1
  56. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/index.d.ts +1 -1
  57. package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +12 -13
  58. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/BlackholeForm.d.ts +5 -6
  59. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/index.d.ts +1 -0
  60. package/dist/types/components/molecules/BlackholeForm/organisms/{BlackholeFormDataProvider/BlackholeFormDataProvider.d.ts → BlackholeFormProvider/BlackholeFormProvider.d.ts} +5 -5
  61. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/index.d.ts +2 -0
  62. package/dist/types/components/molecules/BlackholeForm/organisms/index.d.ts +4 -2
  63. package/dist/types/components/molecules/EnrichedTable/index.d.ts +2 -1
  64. package/dist/types/components/molecules/EnrichedTable/molecules/index.d.ts +1 -1
  65. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/FilterDropdown/index.d.ts +1 -1
  66. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/ShortenedTextWithTooltip/index.d.ts +1 -1
  67. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TableComponents/index.d.ts +1 -1
  68. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TextAlignContainer/index.d.ts +1 -1
  69. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TinyButton/index.d.ts +1 -1
  70. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/TrimmedTags/index.d.ts +1 -1
  71. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/atoms/index.d.ts +6 -6
  72. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/types.d.ts +2 -2
  73. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +2 -2
  74. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/utils.d.ts +1 -1
  75. package/dist/types/components/molecules/EnrichedTable/organisms/index.d.ts +4 -2
  76. package/dist/types/components/molecules/Events/Events.d.ts +3 -2
  77. package/dist/types/components/molecules/Events/index.d.ts +1 -0
  78. package/dist/types/components/molecules/Events/molecules/EventRow/EventRow.d.ts +1 -0
  79. package/dist/types/components/molecules/Events/molecules/EventRow/utils.d.ts +0 -20
  80. package/dist/types/components/molecules/ManageableBreadcrumbs/index.d.ts +2 -3
  81. package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/CollapsibleBreadcrumb/index.d.ts +1 -1
  82. package/dist/types/components/molecules/ManageableBreadcrumbs/molecules/index.d.ts +1 -1
  83. package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +8 -0
  84. package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbs/index.d.ts +2 -0
  85. package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbsProvider/ManageableBreadcrumbsProvider.d.ts +12 -0
  86. package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbsProvider/index.d.ts +3 -0
  87. package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/ManageableBreadcrumbsProvider/styled.d.ts +276 -0
  88. package/dist/types/components/molecules/ManageableBreadcrumbs/organisms/index.d.ts +4 -0
  89. package/dist/types/components/molecules/ManageableSidebar/index.d.ts +2 -3
  90. package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebar/ManageableSidebar.d.ts +10 -0
  91. package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebar/index.d.ts +2 -0
  92. package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebarProvider/ManageableSidebarProvider.d.ts +16 -0
  93. package/dist/types/components/molecules/ManageableSidebar/organisms/ManageableSidebarProvider/index.d.ts +3 -0
  94. package/dist/types/components/molecules/ManageableSidebar/{utils.d.ts → organisms/ManageableSidebarProvider/utils.d.ts} +2 -1
  95. package/dist/types/components/molecules/ManageableSidebar/organisms/index.d.ts +4 -0
  96. package/dist/types/components/molecules/MarketPlace/MarketPlace.d.ts +3 -3
  97. package/dist/types/components/molecules/MarketPlace/atoms/AddCard/index.d.ts +1 -1
  98. package/dist/types/components/molecules/MarketPlace/atoms/index.d.ts +1 -1
  99. package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/AddEditFormModal.d.ts +3 -3
  100. package/dist/types/components/molecules/MarketPlace/molecules/AddEditFormModal/index.d.ts +1 -1
  101. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/MarketplaceCard.d.ts +1 -1
  102. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/index.d.ts +2 -1
  103. package/dist/types/components/molecules/MarketPlace/molecules/MarketplaceCard/utils.d.ts +9 -9
  104. package/dist/types/components/molecules/MarketPlace/molecules/SearchTextInput/index.d.ts +1 -1
  105. package/dist/types/components/molecules/MarketPlace/molecules/index.d.ts +4 -3
  106. package/dist/types/components/molecules/ProjectInfoCard/ProjectInfoCard.d.ts +3 -3
  107. package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownAccessGroups/index.d.ts +1 -1
  108. package/dist/types/components/molecules/ProjectInfoCard/molecules/DropdownActions/index.d.ts +1 -1
  109. package/dist/types/components/molecules/ProjectInfoCard/molecules/index.d.ts +2 -2
  110. package/dist/types/components/molecules/Search/Search.d.ts +1 -2
  111. package/dist/types/components/molecules/Search/index.d.ts +1 -0
  112. package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/XTerminal/index.d.ts +1 -1
  113. package/dist/types/components/molecules/Terminals/NodeTerminal/molecules/index.d.ts +1 -1
  114. package/dist/types/components/molecules/Terminals/PodLogs/molecules/XTerminal/index.d.ts +1 -1
  115. package/dist/types/components/molecules/Terminals/PodLogs/molecules/index.d.ts +1 -1
  116. package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/MonacoEditor/index.d.ts +1 -1
  117. package/dist/types/components/molecules/Terminals/PodLogsMonaco/molecules/index.d.ts +1 -1
  118. package/dist/types/components/molecules/Terminals/PodTerminal/molecules/XTerminal/index.d.ts +1 -1
  119. package/dist/types/components/molecules/Terminals/PodTerminal/molecules/index.d.ts +1 -1
  120. package/dist/types/components/molecules/Terminals/index.d.ts +8 -4
  121. package/dist/types/components/molecules/{BlackholeForm/molecules/YamlEditorSingleton → YamlEditorSingleton}/YamlEditorSingleton.d.ts +2 -2
  122. package/dist/types/components/molecules/YamlEditorSingleton/index.d.ts +1 -0
  123. package/dist/types/components/molecules/index.d.ts +19 -9
  124. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/index.d.ts +1 -1
  125. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/EditModal/index.d.ts +1 -1
  126. package/dist/types/components/organisms/DynamicComponents/molecules/Annotations/molecules/index.d.ts +1 -1
  127. package/dist/types/components/organisms/DynamicComponents/molecules/AntdButton/index.d.ts +1 -1
  128. package/dist/types/components/organisms/DynamicComponents/molecules/AntdCard/index.d.ts +1 -1
  129. package/dist/types/components/organisms/DynamicComponents/molecules/AntdCol/index.d.ts +1 -1
  130. package/dist/types/components/organisms/DynamicComponents/molecules/AntdFlex/index.d.ts +1 -1
  131. package/dist/types/components/organisms/DynamicComponents/molecules/AntdLink/index.d.ts +1 -1
  132. package/dist/types/components/organisms/DynamicComponents/molecules/AntdRow/index.d.ts +1 -1
  133. package/dist/types/components/organisms/DynamicComponents/molecules/AntdTabs/index.d.ts +1 -1
  134. package/dist/types/components/organisms/DynamicComponents/molecules/AntdText/index.d.ts +1 -1
  135. package/dist/types/components/organisms/DynamicComponents/molecules/ArrayOfObjectsToKeyValues/index.d.ts +1 -1
  136. package/dist/types/components/organisms/DynamicComponents/molecules/ContentCard/index.d.ts +1 -1
  137. package/dist/types/components/organisms/DynamicComponents/molecules/ConverterBytes/index.d.ts +1 -1
  138. package/dist/types/components/organisms/DynamicComponents/molecules/DefaultDiv/index.d.ts +1 -1
  139. package/dist/types/components/organisms/DynamicComponents/molecules/EnrichedTable/index.d.ts +1 -1
  140. package/dist/types/components/organisms/DynamicComponents/molecules/Events/index.d.ts +1 -1
  141. package/dist/types/components/organisms/DynamicComponents/molecules/ItemCounter/index.d.ts +1 -1
  142. package/dist/types/components/organisms/DynamicComponents/molecules/KeyCounter/index.d.ts +1 -1
  143. package/dist/types/components/organisms/DynamicComponents/molecules/Labels/index.d.ts +1 -1
  144. package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/EditModal/index.d.ts +1 -1
  145. package/dist/types/components/organisms/DynamicComponents/molecules/Labels/molecules/index.d.ts +1 -1
  146. package/dist/types/components/organisms/DynamicComponents/molecules/LabelsToSearchParams/index.d.ts +1 -1
  147. package/dist/types/components/organisms/DynamicComponents/molecules/MarketplaceCard/index.d.ts +1 -1
  148. package/dist/types/components/organisms/DynamicComponents/molecules/MultiQuery/index.d.ts +1 -1
  149. package/dist/types/components/organisms/DynamicComponents/molecules/NodeTerminal/index.d.ts +1 -1
  150. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/OwnerRefs.d.ts +6 -0
  151. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/guard.d.ts +2 -0
  152. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/index.d.ts +1 -0
  153. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/RefsList.d.ts +22 -0
  154. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/index.d.ts +1 -0
  155. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/RefElement.d.ts +21 -0
  156. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/index.d.ts +1 -0
  157. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/RefElement/utils.d.ts +5 -0
  158. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/organsisms/RefsList/molecules/index.d.ts +1 -0
  159. package/dist/types/components/organisms/DynamicComponents/molecules/OwnerRefs/types.d.ts +6 -0
  160. package/dist/types/components/organisms/DynamicComponents/molecules/ParsedText/index.d.ts +1 -1
  161. package/dist/types/components/organisms/DynamicComponents/molecules/PartsOfUrl/index.d.ts +1 -1
  162. package/dist/types/components/organisms/DynamicComponents/molecules/PodLogs/index.d.ts +1 -1
  163. package/dist/types/components/organisms/DynamicComponents/molecules/PodTerminal/index.d.ts +1 -1
  164. package/dist/types/components/organisms/DynamicComponents/molecules/ProjectInfoCard/index.d.ts +1 -1
  165. package/dist/types/components/organisms/DynamicComponents/molecules/ResourceBadge/index.d.ts +1 -1
  166. package/dist/types/components/organisms/DynamicComponents/molecules/SecretBase64Plain/index.d.ts +1 -1
  167. package/dist/types/components/organisms/DynamicComponents/molecules/SidebarProvider/index.d.ts +1 -1
  168. package/dist/types/components/organisms/DynamicComponents/molecules/Spacer/index.d.ts +1 -1
  169. package/dist/types/components/organisms/DynamicComponents/molecules/StatusText/index.d.ts +1 -1
  170. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/index.d.ts +1 -1
  171. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/EditModal/index.d.ts +1 -1
  172. package/dist/types/components/organisms/DynamicComponents/molecules/Taints/molecules/index.d.ts +1 -1
  173. package/dist/types/components/organisms/DynamicComponents/molecules/Toggler/Toggler.d.ts +6 -0
  174. package/dist/types/components/organisms/DynamicComponents/molecules/Toggler/index.d.ts +1 -0
  175. package/dist/types/components/organisms/DynamicComponents/molecules/TogglerSegmented/TogglerSegmented.d.ts +6 -0
  176. package/dist/types/components/organisms/DynamicComponents/molecules/TogglerSegmented/index.d.ts +1 -0
  177. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/index.d.ts +1 -1
  178. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/EditModal/index.d.ts +1 -1
  179. package/dist/types/components/organisms/DynamicComponents/molecules/Tolerations/molecules/index.d.ts +1 -1
  180. package/dist/types/components/organisms/DynamicComponents/molecules/VisibilityContainer/index.d.ts +1 -1
  181. package/dist/types/components/organisms/DynamicComponents/molecules/YamlEditorSingleton/index.d.ts +1 -1
  182. package/dist/types/components/organisms/DynamicComponents/molecules/YamlEditorSingleton/utils.d.ts +10 -0
  183. package/dist/types/components/organisms/DynamicComponents/molecules/index.d.ts +39 -36
  184. package/dist/types/components/organisms/DynamicComponents/types.d.ts +92 -16
  185. package/dist/types/components/organisms/DynamicRendererWithProviders/DynamicRendererWithProviders.d.ts +2 -1
  186. package/dist/types/components/organisms/DynamicRendererWithProviders/hybridDataProvider.d.ts +22 -0
  187. package/dist/types/components/organisms/DynamicRendererWithProviders/multiK8sProvider.d.ts +22 -0
  188. package/dist/types/components/organisms/index.d.ts +5 -3
  189. package/dist/types/hooks/useApiResource.d.ts +9 -8
  190. package/dist/types/hooks/useApisResourceTypes.d.ts +4 -4
  191. package/dist/types/hooks/useBuiltinResource.d.ts +9 -8
  192. package/dist/types/hooks/useBuiltinResourceTypes.d.ts +2 -2
  193. package/dist/types/hooks/useCrdData.d.ts +2 -2
  194. package/dist/types/hooks/useCrdResource.d.ts +6 -5
  195. package/dist/types/hooks/useK8sSmartResource/index.d.ts +4 -0
  196. package/dist/types/hooks/useK8sSmartResource/useK8sSmartResource.d.ts +28 -0
  197. package/dist/types/hooks/{useK8sSmartResource.d.ts → useK8sSmartResource/useK8sSmartResourceWithoutKinds.d.ts} +5 -5
  198. package/dist/types/hooks/useK8sSmartResource/useManyK8sSmartResource.d.ts +17 -0
  199. package/dist/types/hooks/useK8sSmartResource/useSmartResourceParams.d.ts +9 -0
  200. package/dist/types/hooks/useListThenWatch/types.d.ts +10 -1
  201. package/dist/types/hooks/useListThenWatch/useListWatch.d.ts +1 -0
  202. package/dist/types/hooks/usePermissions.d.ts +4 -4
  203. package/dist/types/index.d.ts +2 -1
  204. package/dist/types/localTypes/bff/form.d.ts +5 -5
  205. package/dist/types/localTypes/bff/scopes.d.ts +6 -6
  206. package/dist/types/localTypes/bff/table.d.ts +2 -1
  207. package/dist/types/localTypes/dynamicRender.d.ts +2 -1
  208. package/dist/types/localTypes/form.d.ts +2 -2
  209. package/dist/types/localTypes/k8s.d.ts +1 -0
  210. package/dist/types/localTypes/marketplace.d.ts +1 -1
  211. package/dist/types/localTypes/navigations.d.ts +24 -0
  212. package/dist/types/utils/createContextFactory/index.d.ts +1 -1
  213. package/dist/types/utils/deepMerge/index.d.ts +1 -1
  214. package/dist/types/utils/filterSelectOptions/index.d.ts +1 -1
  215. package/dist/types/utils/getAllPathsFromObj/index.d.ts +1 -1
  216. package/dist/types/utils/getGroupsByCategory/getGroupsByCategory.d.ts +2 -2
  217. package/dist/types/utils/getGroupsByCategory/index.d.ts +1 -1
  218. package/dist/types/utils/getPrefixSubArrays/index.d.ts +1 -1
  219. package/dist/types/utils/getResourceLink/getResourceLink.d.ts +27 -0
  220. package/dist/types/utils/getResourceLink/index.d.ts +1 -0
  221. package/dist/types/utils/getSortedKinds/index.d.ts +1 -1
  222. package/dist/types/utils/getSortedKindsAll/index.d.ts +1 -1
  223. package/dist/types/utils/getStringByName/index.d.ts +1 -1
  224. package/dist/types/utils/getUppercase/index.d.ts +1 -1
  225. package/dist/types/utils/groupsToTreeData/index.d.ts +2 -1
  226. package/dist/types/utils/hslFromString/index.d.ts +1 -1
  227. package/dist/types/utils/index.d.ts +25 -22
  228. package/dist/types/utils/isFlatObject/index.d.ts +1 -1
  229. package/dist/types/utils/kindByGvr/index.d.ts +1 -1
  230. package/dist/types/utils/namespacedByGvr/index.d.ts +1 -1
  231. package/dist/types/utils/nestedStringsArrayInclude/index.d.ts +1 -1
  232. package/dist/types/utils/normalizeValuesForQuotas/index.d.ts +1 -1
  233. package/dist/types/utils/parseForQuotaValues/index.d.ts +1 -1
  234. package/dist/types/utils/pluralByKind/index.d.ts +1 -1
  235. package/dist/types/utils/prepareTemplate/index.d.ts +1 -1
  236. package/dist/types/utils/prepareUrlsToFetchForDynamicRenderer/index.d.ts +1 -1
  237. package/dist/types/utils/tableLocations/index.d.ts +1 -1
  238. package/dist/types/utils/tableLocations/tableLocations.d.ts +5 -5
  239. package/package.json +1 -1
  240. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/index.d.ts +0 -1
  241. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormDataProvider/index.d.ts +0 -2
  242. package/dist/types/components/molecules/ManageableBreadcrumbs/ManageableBreadcrumbs.d.ts +0 -19
  243. package/dist/types/components/molecules/ManageableSidebar/ManageableSidebar.d.ts +0 -24
  244. /package/dist/types/components/molecules/ManageableBreadcrumbs/{styled.d.ts → organisms/ManageableBreadcrumbs/styled.d.ts} +0 -0
  245. /package/dist/types/components/molecules/ManageableBreadcrumbs/{types.d.ts → organisms/ManageableBreadcrumbsProvider/types.d.ts} +0 -0
  246. /package/dist/types/components/molecules/ManageableBreadcrumbs/{utils.d.ts → organisms/ManageableBreadcrumbsProvider/utils.d.ts} +0 -0
  247. /package/dist/types/components/molecules/ManageableSidebar/{styled.d.ts → organisms/ManageableSidebar/styled.d.ts} +0 -0
  248. /package/dist/types/components/molecules/ManageableSidebar/{types.d.ts → organisms/ManageableSidebarProvider/types.d.ts} +0 -0
  249. /package/dist/types/components/molecules/{BlackholeForm/molecules/YamlEditorSingleton → YamlEditorSingleton}/styled.d.ts +0 -0
@@ -2,9 +2,9 @@ import { CSSProperties } from 'react';
2
2
  import { CardProps, FlexProps, RowProps, ColProps, ButtonProps, TabsProps, SelectProps } from 'antd';
3
3
  import type { TextProps } from 'antd/es/typography/Text';
4
4
  import type { LinkProps } from 'antd/es/typography/Link';
5
- import { TContentCardProps, TSpacerProps } from '../../atoms';
6
- import { TManageableSidebarWithDataProviderProps, TEnrichedTableProviderProps } from '../../molecules';
7
- import { TUnitInput } from './molecules/ConverterBytes/types';
5
+ import type { TContentCardProps, TSpacerProps } from '../../atoms';
6
+ import type { TManageableSidebarProviderProps, TEnrichedTableProviderProps } from '../../molecules';
7
+ import type { TUnitInput } from './molecules/ConverterBytes/types';
8
8
  export type TDynamicComponentsAppTypeMap = {
9
9
  DefaultDiv: {
10
10
  id: number | string;
@@ -53,26 +53,26 @@ export type TDynamicComponentsAppTypeMap = {
53
53
  };
54
54
  ProjectInfoCard: {
55
55
  id: number | string;
56
- clusterNamePartOfUrl: string;
57
- namespacePartOfUrl: string;
56
+ cluster: string;
57
+ namespace: string;
58
58
  baseApiGroup: string;
59
59
  baseApiVersion: string;
60
60
  baseProjectApiGroup: string;
61
61
  baseProjectVersion: string;
62
- projectResourceName: string;
63
- mpResourceName: string;
62
+ projectPlural: string;
63
+ marketplacePlural: string;
64
64
  accessGroups: string[];
65
65
  baseprefix?: string;
66
66
  showZeroResources?: boolean;
67
67
  };
68
68
  MarketplaceCard: {
69
69
  id: number | string;
70
- clusterNamePartOfUrl: string;
71
- namespacePartOfUrl: string;
70
+ cluster: string;
71
+ namespace: string;
72
72
  baseApiGroup: string;
73
73
  baseApiVersion: string;
74
- mpResourceName: string;
75
- mpResourceKind: string;
74
+ marketplacePlural: string;
75
+ marketplaceKind: string;
76
76
  baseprefix?: string;
77
77
  standalone?: boolean;
78
78
  forceAddedMode?: boolean;
@@ -99,12 +99,19 @@ export type TDynamicComponentsAppTypeMap = {
99
99
  } & Omit<TextProps, 'id' | 'children'>;
100
100
  SidebarProvider: {
101
101
  id: number | string;
102
- } & Omit<TManageableSidebarWithDataProviderProps, 'replaceValues'>;
102
+ } & Omit<TManageableSidebarProviderProps, 'replaceValues'>;
103
103
  EnrichedTable: {
104
104
  id: number | string;
105
- fetchUrl: string;
105
+ fetchUrl?: string;
106
+ k8sResourceToFetch?: {
107
+ apiGroup?: string;
108
+ apiVersion: string;
109
+ plural: string;
110
+ namespace?: string;
111
+ };
106
112
  pathToItems: string | string[];
107
- clusterNamePartOfUrl: string;
113
+ additionalReqsDataToEachItem?: number[];
114
+ cluster: string;
108
115
  labelSelector?: Record<string, string>;
109
116
  labelSelectorFull?: {
110
117
  reqIndex: number;
@@ -139,8 +146,10 @@ export type TDynamicComponentsAppTypeMap = {
139
146
  type: 'builtin' | 'apis';
140
147
  apiGroup?: string;
141
148
  apiVersion?: string;
142
- typeName: string;
149
+ plural: string;
150
+ forcedKind?: string;
143
151
  prefillValuesRequestIndex: number;
152
+ pathToData?: string | string[];
144
153
  substractHeight?: number;
145
154
  readOnly?: boolean;
146
155
  };
@@ -305,7 +314,7 @@ export type TDynamicComponentsAppTypeMap = {
305
314
  Events: {
306
315
  id: number | string;
307
316
  baseprefix?: string;
308
- clusterNamePartOfUrl: string;
317
+ cluster: string;
309
318
  wsUrl: string;
310
319
  pageSize?: number;
311
320
  substractHeight?: number;
@@ -321,5 +330,72 @@ export type TDynamicComponentsAppTypeMap = {
321
330
  baseFactoryNamespacedBuiltinKey: string;
322
331
  baseFactoryClusterSceopedBuiltinKey: string;
323
332
  baseNamespaceFactoryKey: string;
333
+ baseNavigationPlural: string;
334
+ baseNavigationName: string;
335
+ };
336
+ OwnerRefs: {
337
+ id: number | string;
338
+ baseprefix?: string;
339
+ cluster: string;
340
+ reqIndex: string;
341
+ errorText: string;
342
+ notArrayErrorText: string;
343
+ emptyArrayErrorText: string;
344
+ isNotRefsArrayErrorText: string;
345
+ containerStyle?: CSSProperties;
346
+ listFlexProps?: FlexProps;
347
+ jsonPathToArrayOfRefs: string;
348
+ forcedApiVersion?: {
349
+ kind: string;
350
+ apiVersion: string;
351
+ }[];
352
+ forcedNamespace?: string;
353
+ keysToForcedLabel?: string | string[];
354
+ forcedRelatedValuePath?: string;
355
+ baseFactoryNamespacedAPIKey: string;
356
+ baseFactoryClusterSceopedAPIKey: string;
357
+ baseFactoryNamespacedBuiltinKey: string;
358
+ baseFactoryClusterSceopedBuiltinKey: string;
359
+ baseNavigationPlural: string;
360
+ baseNavigationName: string;
361
+ };
362
+ Toggler: {
363
+ id: number | string;
364
+ reqIndex: string;
365
+ jsonPathToValue: string;
366
+ criteria: {
367
+ type: 'forSuccess' | 'forError';
368
+ operator: 'exists' | 'equals';
369
+ valueToCompare?: string;
370
+ };
371
+ notificationSuccessMessage?: string;
372
+ notificationErrorMessage?: string;
373
+ notificationSuccessMessageDescription?: string;
374
+ notificationErrorMessageDescription?: string;
375
+ containerStyle?: CSSProperties;
376
+ endpoint: string;
377
+ pathToValue: string;
378
+ valueToSubmit: {
379
+ onValue: any;
380
+ offValue?: any;
381
+ toRemoveWhenOff?: boolean;
382
+ };
383
+ };
384
+ TogglerSegmented: {
385
+ id: number | string;
386
+ reqIndex: string;
387
+ jsonPathToValue: string;
388
+ notificationSuccessMessage?: string;
389
+ notificationErrorMessage?: string;
390
+ notificationSuccessMessageDescription?: string;
391
+ notificationErrorMessageDescription?: string;
392
+ containerStyle?: CSSProperties;
393
+ endpoint: string;
394
+ pathToValue: string;
395
+ possibleValues: any[];
396
+ valuesMap?: {
397
+ value: any;
398
+ renderedValue: string | number;
399
+ }[];
324
400
  };
325
401
  };
@@ -1,8 +1,9 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { TItemTypeMap } from '../../../localTypes/dynamicRender';
3
+ import { TUseK8sSmartResourceParams } from '../../../hooks/useK8sSmartResource';
3
4
  import { TDynamicRendererProps } from '../DynamicRenderer';
4
5
  export declare const DynamicRendererWithProviders: <T extends TItemTypeMap>(props: TDynamicRendererProps<T> & {
5
- urlsToFetch: string[];
6
+ urlsToFetch: (string | TUseK8sSmartResourceParams<any>)[];
6
7
  dataToApplyToContext?: unknown;
7
8
  theme: 'dark' | 'light';
8
9
  nodeTerminalDefaultProfile?: string | undefined;
@@ -0,0 +1,22 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { AxiosError } from 'axios';
3
+ import { TUseK8sSmartResourceParams } from '../../../hooks/useK8sSmartResource';
4
+ type DataMap = Record<string, unknown>;
5
+ type MultiQueryContextValue = {
6
+ data: DataMap;
7
+ isLoading: boolean;
8
+ isError: boolean;
9
+ errors: ReadonlyArray<AxiosError | Error | string | null>;
10
+ };
11
+ type MultiQueryProviderProps = {
12
+ /** Mixed array: first (any number of) K8s resources, then (any number of) URL strings */
13
+ items: ReadonlyArray<string | TUseK8sSmartResourceParams<unknown>>;
14
+ /** Optional short-circuit to set data.req0 directly */
15
+ dataToApplyToContext?: unknown;
16
+ children: ReactNode;
17
+ };
18
+ /** ------------------------------ Provider -------------------------------- */
19
+ export declare const MultiQueryProvider: FC<MultiQueryProviderProps>;
20
+ /** Consumer hook */
21
+ export declare const useMultiQuery: () => MultiQueryContextValue;
22
+ export {};
@@ -0,0 +1,22 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import type { AxiosError } from 'axios';
3
+ import { useK8sSmartResource } from '../../../hooks/useK8sSmartResource';
4
+ /** Reuse your hook's param type */
5
+ export type UseK8sSmartResourceParams<T> = Parameters<typeof useK8sSmartResource<T>>[0];
6
+ type DataMap = Record<string, unknown>;
7
+ type MultiK8sContextValue = {
8
+ data: DataMap;
9
+ isLoading: boolean;
10
+ isError: boolean;
11
+ errors: ReadonlyArray<AxiosError | Error | string | null>;
12
+ };
13
+ type MultiK8sProviderProps = {
14
+ resources: ReadonlyArray<UseK8sSmartResourceParams<unknown>>;
15
+ dataToApplyToContext?: unknown;
16
+ children: ReactNode;
17
+ };
18
+ /** --- Provider ----------------------------------------------------------- */
19
+ export declare const MultiK8sProvider: FC<MultiK8sProviderProps>;
20
+ /** --- Consumer Hook ------------------------------------------------------ */
21
+ export declare const useMultiK8s: () => MultiK8sContextValue;
22
+ export {};
@@ -1,3 +1,5 @@
1
- export * from './DynamicRenderer';
2
- export * from './DynamicComponents';
3
- export * from './DynamicRendererWithProviders';
1
+ export { DynamicRenderer } from './DynamicRenderer';
2
+ export type { TDynamicRendererProps } from './DynamicRenderer';
3
+ export { DynamicComponents } from './DynamicComponents';
4
+ export type { TDynamicComponentsAppTypeMap } from './DynamicComponents';
5
+ export { DynamicRendererWithProviders } from './DynamicRendererWithProviders';
@@ -1,29 +1,30 @@
1
1
  import { TApiResources } from '../localTypes/k8s';
2
- export declare const useApiResources: ({ clusterName, namespace, apiGroup, apiVersion, typeName, specificName, labels, fields, limit, refetchInterval, isEnabled, }: {
3
- clusterName: string;
2
+ export declare const useApiResources: ({ cluster, namespace, apiGroup, apiVersion, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
5
  apiGroup: string;
6
6
  apiVersion: string;
7
- typeName: string;
8
- specificName?: string | undefined;
7
+ plural: string;
8
+ name?: string | undefined;
9
9
  labels?: string[] | undefined;
10
10
  fields?: string[] | undefined;
11
11
  limit: string | null;
12
12
  refetchInterval?: number | false | undefined;
13
13
  isEnabled?: boolean | undefined;
14
14
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TApiResources, Error>;
15
- export declare const useApiResourceSingle: ({ clusterName, namespace, apiGroup, apiVersion, typeName, entryName, refetchInterval, }: {
16
- clusterName: string;
15
+ export declare const useApiResourceSingle: ({ cluster, namespace, apiGroup, apiVersion, plural, name, refetchInterval, }: {
16
+ cluster: string;
17
17
  namespace?: string | undefined;
18
18
  apiGroup: string;
19
19
  apiVersion: string;
20
- typeName: string;
21
- entryName: string;
20
+ plural: string;
21
+ name: string;
22
22
  refetchInterval?: number | false | undefined;
23
23
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
24
24
  metadata: {
25
25
  name: string;
26
26
  creationTimestamp: string;
27
+ uid?: string | undefined;
27
28
  namespace?: string | undefined;
28
29
  managedFields?: any;
29
30
  };
@@ -1,5 +1,5 @@
1
- export declare const useApisResourceTypes: ({ clusterName }: {
2
- clusterName: string;
1
+ export declare const useApisResourceTypes: ({ cluster }: {
2
+ cluster: string;
3
3
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
4
4
  apiVersion: string;
5
5
  kind: string;
@@ -15,8 +15,8 @@ export declare const useApisResourceTypes: ({ clusterName }: {
15
15
  };
16
16
  }[];
17
17
  }, Error>;
18
- export declare const useApiResourceTypesByGroup: ({ clusterName, apiGroup, apiVersion, }: {
19
- clusterName: string;
18
+ export declare const useApiResourceTypesByGroup: ({ cluster, apiGroup, apiVersion, }: {
19
+ cluster: string;
20
20
  apiGroup: string;
21
21
  apiVersion: string;
22
22
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
@@ -1,25 +1,26 @@
1
1
  import { TBuiltinResources } from '../localTypes/k8s';
2
- export declare const useBuiltinResources: ({ clusterName, namespace, typeName, specificName, labels, fields, limit, refetchInterval, isEnabled, }: {
3
- clusterName: string;
2
+ export declare const useBuiltinResources: ({ cluster, namespace, plural, name, labels, fields, limit, refetchInterval, isEnabled, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
- typeName: string;
6
- specificName?: string | undefined;
5
+ plural: string;
6
+ name?: string | undefined;
7
7
  labels?: string[] | undefined;
8
8
  fields?: string[] | undefined;
9
9
  limit: string | null;
10
10
  refetchInterval?: number | false | undefined;
11
11
  isEnabled?: boolean | undefined;
12
12
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResources, Error>;
13
- export declare const useBuiltinResourceSingle: ({ clusterName, namespace, typeName, entryName, refetchInterval, }: {
14
- clusterName: string;
13
+ export declare const useBuiltinResourceSingle: ({ cluster, namespace, plural, name, refetchInterval, }: {
14
+ cluster: string;
15
15
  namespace?: string | undefined;
16
- typeName: string;
17
- entryName: string;
16
+ plural: string;
17
+ name: string;
18
18
  refetchInterval?: number | false | undefined;
19
19
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
20
20
  metadata: {
21
21
  name: string;
22
22
  creationTimestamp: string;
23
+ uid?: string | undefined;
23
24
  namespace?: string | undefined;
24
25
  managedFields?: any;
25
26
  };
@@ -1,4 +1,4 @@
1
1
  import { TBuiltinResourceTypeList } from '../localTypes/k8s';
2
- export declare const useBuiltinResourceTypes: ({ clusterName }: {
3
- clusterName: string;
2
+ export declare const useBuiltinResourceTypes: ({ cluster }: {
3
+ cluster: string;
4
4
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResourceTypeList, Error>;
@@ -1,5 +1,5 @@
1
- export declare const useCrdData: ({ clusterName, apiExtensionVersion, crdName, }: {
2
- clusterName: string;
1
+ export declare const useCrdData: ({ cluster, apiExtensionVersion, crdName, }: {
2
+ cluster: string;
3
3
  apiExtensionVersion: string;
4
4
  crdName: string;
5
5
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
@@ -1,6 +1,6 @@
1
1
  import { TJSON } from '../localTypes/JSON';
2
- export declare const useCrdResources: <T = TJSON[]>({ clusterName, namespace, apiGroup, apiVersion, crdName, refetchInterval, isEnabled, }: {
3
- clusterName: string;
2
+ export declare const useCrdResources: <T = TJSON[]>({ cluster, namespace, apiGroup, apiVersion, crdName, refetchInterval, isEnabled, }: {
3
+ cluster: string;
4
4
  namespace?: string | undefined;
5
5
  apiGroup: string;
6
6
  apiVersion: string;
@@ -19,18 +19,19 @@ export declare const useCrdResources: <T = TJSON[]>({ clusterName, namespace, ap
19
19
  reason?: string | undefined;
20
20
  } | undefined;
21
21
  }, Error>;
22
- export declare const useCrdResourceSingle: ({ clusterName, namespace, apiGroup, apiVersion, crdName, entryName, refetchInterval, }: {
23
- clusterName: string;
22
+ export declare const useCrdResourceSingle: ({ cluster, namespace, apiGroup, apiVersion, crdName, name, refetchInterval, }: {
23
+ cluster: string;
24
24
  namespace?: string | undefined;
25
25
  apiGroup: string;
26
26
  apiVersion: string;
27
27
  crdName: string;
28
- entryName: string;
28
+ name: string;
29
29
  refetchInterval?: number | false | undefined;
30
30
  }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
31
31
  metadata: {
32
32
  name: string;
33
33
  creationTimestamp: string;
34
+ uid?: string | undefined;
34
35
  namespace?: string | undefined;
35
36
  managedFields?: any;
36
37
  };
@@ -0,0 +1,4 @@
1
+ export { useK8sSmartResource } from './useK8sSmartResource';
2
+ export type { TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
3
+ export { useManyK8sSmartResource } from './useManyK8sSmartResource';
4
+ export { useSmartResourceParams } from './useSmartResourceParams';
@@ -0,0 +1,28 @@
1
+ import { type TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
2
+ /**
3
+ * If T has an `{ items: U[] }` field, we add `kind?: string` and `apiVersion?: string` to each item.
4
+ * Otherwise T is left unchanged.
5
+ */
6
+ type TWithKindAndApiVersionOnItems<T> = T extends {
7
+ items: (infer U)[];
8
+ } ? Omit<T, 'items'> & {
9
+ items: (U & {
10
+ kind?: string;
11
+ apiVersion?: string;
12
+ })[];
13
+ } : T;
14
+ /**
15
+ * Same params as useK8sSmartResource.
16
+ * Returns the same shape as useK8sSmartResource,
17
+ * but if `data.items` exists, items are enriched with `kind`.
18
+ */
19
+ export declare const useK8sSmartResource: <T>(params: TUseK8sSmartResourceParams<T>) => {
20
+ data: TWithKindAndApiVersionOnItems<T> | undefined;
21
+ isLoading: boolean;
22
+ isError: boolean;
23
+ error: string | Error | import("axios").AxiosError<unknown, any> | undefined;
24
+ _meta?: {
25
+ used: "disabled" | "list" | "watch" | "verbs-loading" | "verbs-error";
26
+ } | undefined;
27
+ };
28
+ export {};
@@ -1,9 +1,9 @@
1
1
  import { AxiosError } from 'axios';
2
- import { TSingleResource } from '../localTypes/k8s';
3
- type UseK8sSmartResourceParams<T> = {
2
+ import { TSingleResource } from '../../localTypes/k8s';
3
+ export type TUseK8sSmartResourceParams<T> = {
4
4
  cluster: string;
5
- group?: string;
6
- version: string;
5
+ apiGroup?: string;
6
+ apiVersion: string;
7
7
  plural: string;
8
8
  namespace?: string;
9
9
  fieldSelector?: string;
@@ -25,5 +25,5 @@ type SmartResult<T> = {
25
25
  used: 'list' | 'watch' | 'disabled' | 'verbs-loading' | 'verbs-error';
26
26
  };
27
27
  };
28
- export declare const useK8sSmartResource: <T>({ cluster, group, version, plural, namespace, fieldSelector, labelSelector, isEnabled, listRefetchInterval, limit, mapListWatchState, }: UseK8sSmartResourceParams<T>) => SmartResult<T>;
28
+ export declare const useK8sSmartResourceWithoutKinds: <T>({ cluster, apiGroup, apiVersion, plural, namespace, fieldSelector, labelSelector, isEnabled, listRefetchInterval, limit, mapListWatchState, }: TUseK8sSmartResourceParams<T>) => SmartResult<T>;
29
29
  export {};
@@ -0,0 +1,17 @@
1
+ import type { TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
2
+ export declare const useManyK8sSmartResource: <T>(paramsList: readonly TUseK8sSmartResourceParams<T>[]) => {
3
+ data: (T extends {
4
+ items: (infer U)[];
5
+ } ? Omit<T, "items"> & {
6
+ items: (U & {
7
+ kind?: string | undefined;
8
+ apiVersion?: string | undefined;
9
+ })[];
10
+ } : T) | undefined;
11
+ isLoading: boolean;
12
+ isError: boolean;
13
+ error: string | Error | import("axios").AxiosError<unknown, any> | undefined;
14
+ _meta?: {
15
+ used: "disabled" | "list" | "watch" | "verbs-loading" | "verbs-error";
16
+ } | undefined;
17
+ }[];
@@ -0,0 +1,9 @@
1
+ import type { TUseK8sSmartResourceParams } from './useK8sSmartResourceWithoutKinds';
2
+ /**
3
+ * A single hook whose return value is a plain constant array,
4
+ * safe to pass to `useManyK8sSmartResource`.
5
+ */
6
+ export declare const useSmartResourceParams: ({ cluster, namespace }: {
7
+ cluster: string;
8
+ namespace?: string | undefined;
9
+ }) => TUseK8sSmartResourceParams<unknown>[];
@@ -21,7 +21,16 @@ type TDeltaFrame = {
21
21
  type: TWatchPhase;
22
22
  item: TSingleResource;
23
23
  };
24
- export type TServerFrame = TInitialFrame | TPageFrame | TPageErrorFrame | TDeltaFrame;
24
+ type TConsoleFrame = {
25
+ type: 'SERVER_LOG';
26
+ level: 'info' | 'warn' | 'error';
27
+ message: string;
28
+ };
29
+ type TInitialError = {
30
+ type: 'INITIAL_ERROR';
31
+ message: string;
32
+ };
33
+ export type TServerFrame = TInitialFrame | TPageFrame | TPageErrorFrame | TDeltaFrame | TConsoleFrame | TInitialError;
25
34
  export type TScrollMsg = {
26
35
  type: 'SCROLL';
27
36
  continue: string;
@@ -52,6 +52,7 @@ export type TUseListWatchReturn = {
52
52
  continueToken?: string;
53
53
  status: TConnStatus;
54
54
  lastError?: string;
55
+ hasInitial: boolean;
55
56
  setPaused: (v: boolean) => void;
56
57
  setIgnoreRemove: (v: boolean) => void;
57
58
  /** Ask the server for the next page (if any) */
@@ -1,7 +1,7 @@
1
- export declare const usePermissions: ({ clusterName, namespace, group, resource, verb, name, refetchInterval, enabler, }: {
2
- clusterName: string;
3
- group?: string | undefined;
4
- resource: string;
1
+ export declare const usePermissions: ({ cluster, namespace, apiGroup, plural, verb, name, refetchInterval, enabler, }: {
2
+ cluster: string;
3
+ apiGroup?: string | undefined;
4
+ plural: string;
5
5
  namespace?: string | undefined;
6
6
  name?: string | undefined;
7
7
  verb: 'create' | 'delete' | 'patch' | 'update';
@@ -26,7 +26,7 @@ export { usePermissions } from './hooks/usePermissions';
26
26
  export { useListWatch, useInfiniteSentinel } from './hooks/useListThenWatch';
27
27
  export type { TConnStatus, TUseListWatchQuery, TUseListWatchOptions, TUseListWatchReturn, } from './hooks/useListThenWatch';
28
28
  export { useK8sVerbs } from './hooks/useK8sVerbs';
29
- export { useK8sSmartResource } from './hooks/useK8sSmartResource';
29
+ export { useK8sSmartResource, useManyK8sSmartResource, useSmartResourceParams } from './hooks/useK8sSmartResource';
30
30
  export type { TRequestError } from './localTypes/api';
31
31
  export type { TClusterList } from './localTypes/clusterList';
32
32
  export type { TItemTypeMap, TRenderableItem, TRendererComponents, TFactoryDataK8s, TFactoryResponse, TFactoryResource, } from './localTypes/dynamicRender';
@@ -40,3 +40,4 @@ export type { TFilterIfApiInstanceNamespaceScopedReq, TFilterIfApiInstanceNamesp
40
40
  export type { TVersionEntry, TKindItem, TKindIndex } from './localTypes/bff/search';
41
41
  export type { TGetDerefedSwaggerRes } from './localTypes/bff/swagger';
42
42
  export type { TKindWithVersion } from './localTypes/search';
43
+ export type { TNavigationResource } from './localTypes/navigations';
@@ -5,24 +5,24 @@ import { TFormPrefill } from '../formExtensions';
5
5
  export type TPrepareFormReq = {
6
6
  data: {
7
7
  type: 'builtin';
8
- typeName: string;
8
+ plural: string;
9
9
  prefillValuesSchema?: TJSON;
10
10
  prefillValueNamespaceOnly?: string;
11
11
  } | {
12
12
  type: 'apis';
13
13
  apiGroup: string;
14
14
  apiVersion: string;
15
- typeName: string;
15
+ plural: string;
16
16
  prefillValuesSchema?: TJSON;
17
17
  prefillValueNamespaceOnly?: string;
18
18
  };
19
- clusterName: string;
19
+ cluster: string;
20
20
  customizationId?: string;
21
21
  };
22
22
  export type TPrepareFormRes = {
23
23
  result: 'error';
24
24
  error: string | undefined;
25
- kindName: string | undefined;
25
+ kind: string | undefined;
26
26
  fallbackToManualMode: true;
27
27
  isNamespaced: boolean;
28
28
  } | {
@@ -35,7 +35,7 @@ export type TPrepareFormRes = {
35
35
  expandedPaths: string[][] | undefined;
36
36
  persistedPaths: string[][] | undefined;
37
37
  sortPaths: string[][] | undefined;
38
- kindName: string | undefined;
38
+ kind: string | undefined;
39
39
  isNamespaced: boolean;
40
40
  formPrefills?: TFormPrefill;
41
41
  namespacesData?: string[];
@@ -1,17 +1,17 @@
1
1
  import { TApiGroupResourceTypeList, TBuiltinResourceTypeList } from '../k8s';
2
2
  export type TCheckIfApiInstanceNamespaceScopedReq = {
3
- typeName: string;
3
+ plural: string;
4
4
  apiGroup: string;
5
5
  apiVersion: string;
6
- clusterName: string;
6
+ cluster: string;
7
7
  };
8
8
  export type TCheckIfApiInstanceNamespaceScopedRes = {
9
9
  isClusterWide: boolean;
10
10
  isNamespaceScoped: boolean;
11
11
  };
12
12
  export type TCheckIfBuiltInInstanceNamespaceScopedReq = {
13
- typeName: string;
14
- clusterName: string;
13
+ plural: string;
14
+ cluster: string;
15
15
  };
16
16
  export type TCheckIfBuiltInInstanceNamespaceScopedRes = {
17
17
  isClusterWide: boolean;
@@ -22,12 +22,12 @@ export type TFilterIfApiInstanceNamespaceScopedReq = {
22
22
  data?: TApiGroupResourceTypeList;
23
23
  apiGroup: string;
24
24
  apiVersion: string;
25
- clusterName: string;
25
+ cluster: string;
26
26
  };
27
27
  export type TFilterIfApiInstanceNamespaceScopedRes = TApiGroupResourceTypeList['resources'] | undefined;
28
28
  export type TFilterIfBuiltInInstanceNamespaceScopedReq = {
29
29
  namespace?: string;
30
30
  data?: TBuiltinResourceTypeList;
31
- clusterName: string;
31
+ cluster: string;
32
32
  };
33
33
  export type TFilterIfBuiltInInstanceNamespaceScopedRes = TBuiltinResourceTypeList['resources'] | undefined;
@@ -3,9 +3,10 @@ export type TPrepareTableReq = {
3
3
  customizationId?: string;
4
4
  tableMappingsReplaceValues?: Record<string, string | undefined>;
5
5
  forceDefaultAdditionalPrinterColumns?: TAdditionalPrinterColumns;
6
+ cluster: string;
6
7
  namespace?: string;
7
8
  k8sResource?: {
8
- resource: string;
9
+ plural: string;
9
10
  apiGroup?: string;
10
11
  apiVersion: string;
11
12
  };
@@ -1,4 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
+ import { TUseK8sSmartResourceParams } from '../hooks/useK8sSmartResource';
2
3
  export type TItemTypeMap = Record<string, unknown>;
3
4
  export type TRenderableItem<T extends TItemTypeMap> = {
4
5
  [K in keyof T]: {
@@ -15,7 +16,7 @@ export type TRendererComponents<T extends TItemTypeMap> = {
15
16
  };
16
17
  export type TFactoryDataK8s<T extends TItemTypeMap> = {
17
18
  key: string;
18
- urlsToFetch: string[];
19
+ urlsToFetch: (string | TUseK8sSmartResourceParams<any>)[];
19
20
  withScrollableMainContentCard?: boolean;
20
21
  data: TRenderableItem<T>[];
21
22
  sidebarTags?: string[];
@@ -19,8 +19,8 @@ export type TPersistedControls = {
19
19
  persistedKeys: TFormName[];
20
20
  };
21
21
  export type TUrlParams = {
22
- clusterName?: string;
22
+ cluster?: string;
23
23
  namespace?: string;
24
24
  syntheticProject?: string;
25
- entryName?: string;
25
+ name?: string;
26
26
  };
@@ -39,6 +39,7 @@ export type TSingleResource = unknown & {
39
39
  metadata: {
40
40
  name: string;
41
41
  creationTimestamp: string;
42
+ uid?: string;
42
43
  namespace?: string;
43
44
  managedFields?: any;
44
45
  };