@openshift-assisted/ui-lib 2.9.5-cim → 2.9.6-cim

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 (356) hide show
  1. package/build/@types/cim/components/ClusterDeployment/types.d.ts +2 -3
  2. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  4. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts +1 -1
  5. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts.map +1 -1
  6. package/build/@types/cim/components/InfraEnv/types.d.ts +3 -1
  7. package/build/@types/cim/components/InfraEnv/types.d.ts.map +1 -1
  8. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  9. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  10. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  11. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts +5 -0
  12. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts.map +1 -0
  13. package/build/@types/cim/components/modals/types.d.ts +2 -0
  14. package/build/@types/cim/components/modals/types.d.ts.map +1 -1
  15. package/build/@types/common/api/axiosClient.d.ts.map +1 -1
  16. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  17. package/build/@types/common/components/clusterWizard/types.d.ts +1 -0
  18. package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
  19. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts +4 -0
  20. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  21. package/build/@types/common/components/ui/formik/SingleNodeCheckbox.d.ts.map +1 -1
  22. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -1
  23. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  24. package/build/@types/common/config/constants.d.ts.map +1 -1
  25. package/build/@types/common/features/featureGate.d.ts +1 -2
  26. package/build/@types/common/features/featureGate.d.ts.map +1 -1
  27. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.d.ts.map +1 -1
  28. package/build/@types/ocm/components/Routes.d.ts +6 -0
  29. package/build/@types/ocm/components/Routes.d.ts.map +1 -0
  30. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageForm.d.ts.map +1 -1
  31. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
  32. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  33. package/build/@types/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.d.ts.map +1 -1
  34. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
  35. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  36. package/build/@types/ocm/components/clusterConfiguration/operators/CnvHostRequirements.d.ts.map +1 -1
  37. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts +13 -4
  38. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
  39. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
  40. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts +3 -0
  41. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts.map +1 -1
  42. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.d.ts.map +1 -1
  43. package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
  44. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  45. package/build/@types/ocm/components/clusterWizard/CustomManifestStep.d.ts.map +1 -1
  46. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  47. package/build/@types/ocm/components/clusterWizard/StaticIp.d.ts.map +1 -1
  48. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts +2 -0
  49. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -0
  50. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  51. package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
  52. package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
  53. package/build/@types/ocm/components/clusters/NewClusterPage.d.ts.map +1 -1
  54. package/build/@types/ocm/components/clusters/clusterPolling.d.ts +1 -1
  55. package/build/@types/ocm/components/clusters/clusterPolling.d.ts.map +1 -1
  56. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
  57. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  58. package/build/@types/ocm/components/index.d.ts +1 -1
  59. package/build/@types/ocm/index.d.ts +0 -1
  60. package/build/@types/ocm/index.d.ts.map +1 -1
  61. package/build/@types/ocm/store/hooks.d.ts +5 -1
  62. package/build/@types/ocm/store/hooks.d.ts.map +1 -1
  63. package/build/@types/ocm/store/index.d.ts +5 -36
  64. package/build/@types/ocm/store/index.d.ts.map +1 -1
  65. package/build/@types/ocm/{selectors/clusters.d.ts → store/slices/clusters/selectors.d.ts} +15 -11
  66. package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -0
  67. package/build/@types/ocm/{reducers/clusters/clustersSlice.d.ts → store/slices/clusters/slice.d.ts} +4 -4
  68. package/build/@types/ocm/store/slices/clusters/slice.d.ts.map +1 -0
  69. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts +14 -0
  70. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts.map +1 -0
  71. package/build/@types/ocm/{reducers/clusters/currentClusterSlice.d.ts → store/slices/current-cluster/slice.d.ts} +5 -5
  72. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -0
  73. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +9 -0
  74. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -0
  75. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts +7 -0
  76. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts.map +1 -0
  77. package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/selectors.d.ts +4 -3
  78. package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts.map +1 -0
  79. package/build/@types/ocm/store/slices/infra-envs/slice.d.ts.map +1 -0
  80. package/build/@types/ocm/store/slices/infra-envs/thunks.d.ts.map +1 -0
  81. package/build/@types/ocm/store/store-day1.d.ts +32 -0
  82. package/build/@types/ocm/store/store-day1.d.ts.map +1 -0
  83. package/build/@types/ocm/store/store-day2.d.ts +10 -0
  84. package/build/@types/ocm/store/store-day2.d.ts.map +1 -0
  85. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +9 -0
  86. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  87. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js +23 -10
  88. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js.map +1 -1
  89. package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
  90. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  91. package/build/cjs/cim/components/modals/AddBmcHostModal.js +3 -1
  92. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  93. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +3 -1
  94. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  95. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js +16 -0
  96. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js.map +1 -0
  97. package/build/cjs/common/api/axiosClient.js +2 -4
  98. package/build/cjs/common/api/axiosClient.js.map +1 -1
  99. package/build/cjs/common/components/clusterWizard/ReviewValidations.js +11 -3
  100. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  101. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +2 -2
  102. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +1 -1
  103. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  104. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js +1 -3
  105. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js.map +1 -1
  106. package/build/cjs/common/components/ui/formik/validationSchemas.js +8 -16
  107. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  108. package/build/cjs/common/config/constants.js +1 -3
  109. package/build/cjs/common/config/constants.js.map +1 -1
  110. package/build/cjs/common/features/featureGate.js +1 -11
  111. package/build/cjs/common/features/featureGate.js.map +1 -1
  112. package/build/cjs/common/utils.js +1 -1
  113. package/build/cjs/common/utils.js.map +1 -1
  114. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js +9 -5
  115. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js.map +1 -1
  116. package/build/cjs/ocm/components/Routes.js +29 -0
  117. package/build/cjs/ocm/components/Routes.js.map +1 -0
  118. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js +4 -4
  119. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
  120. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +1 -1
  121. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
  122. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +0 -1
  123. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  124. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -4
  125. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  126. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js +1 -2
  127. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js.map +1 -1
  128. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +1 -1
  129. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
  130. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +1 -1
  131. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  132. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +1 -1
  133. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
  134. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +1 -1
  135. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  136. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +4 -4
  137. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  138. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js +1 -1
  139. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +1 -1
  140. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +1 -1
  141. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +1 -1
  142. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js +1 -1
  143. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js.map +1 -1
  144. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +61 -17
  145. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  146. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +2 -2
  147. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
  148. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js +8 -1
  149. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js.map +1 -1
  150. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js +3 -3
  151. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js.map +1 -1
  152. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +1 -1
  153. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
  154. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js +1 -1
  155. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js.map +1 -1
  156. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js +1 -1
  157. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js.map +1 -1
  158. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +4 -4
  159. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  160. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -2
  161. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
  162. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +2 -2
  163. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
  164. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +2 -2
  165. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  166. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +2 -2
  167. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  168. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +4 -4
  169. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  170. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +4 -2
  171. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js +1 -1
  173. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js +4 -4
  175. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterWizard/Operators.js +3 -3
  177. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +4 -9
  179. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterWizard/StaticIp.js +1 -1
  181. package/build/cjs/ocm/components/clusterWizard/StaticIp.js.map +1 -1
  182. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +18 -0
  183. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -0
  184. package/build/cjs/ocm/components/clusters/ClusterPage.js +4 -9
  185. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  186. package/build/cjs/ocm/components/clusters/Clusters.js +8 -8
  187. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  188. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +6 -6
  189. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
  190. package/build/cjs/ocm/components/clusters/ClustersTable.js +2 -2
  191. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  192. package/build/cjs/ocm/components/clusters/NewClusterPage.js +2 -2
  193. package/build/cjs/ocm/components/clusters/NewClusterPage.js.map +1 -1
  194. package/build/cjs/ocm/components/clusters/clusterPolling.js +11 -11
  195. package/build/cjs/ocm/components/clusters/clusterPolling.js.map +1 -1
  196. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +20 -8
  197. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  198. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +1 -1
  199. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  200. package/build/cjs/ocm/components/hosts/use-hosts-table.js +20 -20
  201. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  202. package/build/cjs/ocm/components/hosts/utils.js +2 -2
  203. package/build/cjs/ocm/components/hosts/utils.js.map +1 -1
  204. package/build/cjs/ocm/components/index.js +1 -1
  205. package/build/cjs/ocm/components/ui/OcmFormFields.js +1 -1
  206. package/build/cjs/ocm/components/ui/OcmFormFields.js.map +1 -1
  207. package/build/cjs/ocm/hooks/useSetClusterPermissions.js +2 -2
  208. package/build/cjs/ocm/hooks/useSetClusterPermissions.js.map +1 -1
  209. package/build/cjs/ocm/index.js +1 -2
  210. package/build/cjs/ocm/index.js.map +1 -1
  211. package/build/cjs/ocm/store/hooks.js +3 -1
  212. package/build/cjs/ocm/store/hooks.js.map +1 -1
  213. package/build/cjs/ocm/store/index.js +10 -19
  214. package/build/cjs/ocm/store/index.js.map +1 -1
  215. package/build/cjs/ocm/{selectors/clusters.js → store/slices/clusters/selectors.js} +4 -4
  216. package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -0
  217. package/build/cjs/ocm/{reducers/clusters/clustersSlice.js → store/slices/clusters/slice.js} +8 -7
  218. package/build/cjs/ocm/store/slices/clusters/slice.js.map +1 -0
  219. package/build/cjs/ocm/{selectors/currentCluster.js → store/slices/current-cluster/selectors.js} +1 -1
  220. package/build/cjs/ocm/store/slices/current-cluster/selectors.js.map +1 -0
  221. package/build/cjs/ocm/{reducers/clusters/currentClusterSlice.js → store/slices/current-cluster/slice.js} +12 -13
  222. package/build/cjs/ocm/store/slices/current-cluster/slice.js.map +1 -0
  223. package/build/cjs/ocm/store/slices/feature-flags/selectors.js +11 -0
  224. package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -0
  225. package/build/cjs/ocm/store/slices/feature-flags/slice.js +16 -0
  226. package/build/cjs/ocm/store/slices/feature-flags/slice.js.map +1 -0
  227. package/build/cjs/ocm/store/slices/infra-envs/selectors.js.map +1 -0
  228. package/build/cjs/ocm/store/slices/infra-envs/slice.js.map +1 -0
  229. package/build/cjs/ocm/store/slices/infra-envs/thunks.js.map +1 -0
  230. package/build/cjs/ocm/store/store-day1.js +24 -0
  231. package/build/cjs/ocm/store/store-day1.js.map +1 -0
  232. package/build/cjs/ocm/store/store-day2.js +20 -0
  233. package/build/cjs/ocm/store/store-day2.js.map +1 -0
  234. package/lib/cim/components/ClusterDeployment/types.ts +2 -3
  235. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +10 -0
  236. package/lib/cim/components/InfraEnv/AddHostDropdown.tsx +45 -18
  237. package/lib/cim/components/InfraEnv/types.ts +4 -1
  238. package/lib/cim/components/helpers/toAssisted.ts +3 -0
  239. package/lib/cim/components/modals/AddBmcHostModal.tsx +3 -0
  240. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +3 -0
  241. package/lib/cim/components/modals/ProvisioningConfigErrorAlert.tsx +18 -0
  242. package/lib/cim/components/modals/types.ts +2 -0
  243. package/lib/common/api/axiosClient.ts +2 -3
  244. package/lib/common/components/clusterWizard/ReviewValidations.tsx +12 -1
  245. package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +2 -2
  246. package/lib/common/components/clusterWizard/types.ts +1 -0
  247. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +9 -0
  248. package/lib/common/components/ui/formik/SingleNodeCheckbox.tsx +1 -3
  249. package/lib/common/components/ui/formik/validationSchemas.test.ts +4 -22
  250. package/lib/common/components/ui/formik/validationSchemas.ts +13 -22
  251. package/lib/common/config/constants.ts +1 -3
  252. package/lib/common/features/featureGate.tsx +1 -19
  253. package/lib/common/utils.ts +2 -2
  254. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.tsx +16 -11
  255. package/lib/ocm/components/Routes.tsx +34 -0
  256. package/lib/ocm/components/clusterConfiguration/DiscoveryImageForm.tsx +5 -1
  257. package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +1 -1
  258. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +0 -2
  259. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +6 -10
  260. package/lib/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.tsx +2 -3
  261. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +1 -1
  262. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +1 -1
  263. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +1 -1
  264. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +1 -1
  265. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +5 -2
  266. package/lib/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx +1 -1
  267. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +1 -1
  268. package/lib/ocm/components/clusterConfiguration/operators/CnvHostRequirements.tsx +1 -1
  269. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +134 -35
  270. package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +10 -8
  271. package/lib/ocm/components/clusterConfiguration/platformIntegration/constants.tsx +8 -0
  272. package/lib/ocm/components/clusterConfiguration/review/ReviewStep.tsx +2 -2
  273. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +1 -1
  274. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.tsx +3 -3
  275. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.tsx +1 -1
  276. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +6 -4
  277. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +3 -3
  278. package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +1 -1
  279. package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +1 -1
  280. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +1 -1
  281. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +1 -1
  282. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +5 -3
  283. package/lib/ocm/components/clusterWizard/CustomManifestStep.tsx +1 -1
  284. package/lib/ocm/components/clusterWizard/HostDiscovery.tsx +2 -2
  285. package/lib/ocm/components/clusterWizard/Operators.tsx +1 -1
  286. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +6 -19
  287. package/lib/ocm/components/clusterWizard/StaticIp.tsx +1 -1
  288. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +25 -0
  289. package/lib/ocm/components/clusters/ClusterPage.tsx +4 -28
  290. package/lib/ocm/components/clusters/Clusters.tsx +9 -11
  291. package/lib/ocm/components/clusters/ClustersListToolbar.tsx +5 -5
  292. package/lib/ocm/components/clusters/ClustersTable.tsx +4 -1
  293. package/lib/ocm/components/clusters/NewClusterPage.tsx +3 -6
  294. package/lib/ocm/components/clusters/clusterPolling.ts +7 -7
  295. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +21 -7
  296. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +1 -1
  297. package/lib/ocm/components/hosts/use-hosts-table.tsx +5 -2
  298. package/lib/ocm/components/hosts/utils.ts +1 -1
  299. package/lib/ocm/components/index.ts +1 -1
  300. package/lib/ocm/components/ui/OcmFormFields.tsx +1 -1
  301. package/lib/ocm/hooks/useSetClusterPermissions.ts +1 -1
  302. package/lib/ocm/index.ts +0 -1
  303. package/lib/ocm/store/hooks.ts +6 -2
  304. package/lib/ocm/store/index.ts +5 -23
  305. package/lib/ocm/{selectors/clusters.tsx → store/slices/clusters/selectors.tsx} +10 -12
  306. package/lib/ocm/{reducers/clusters/clustersSlice.ts → store/slices/clusters/slice.ts} +6 -5
  307. package/lib/ocm/{selectors/currentCluster.ts → store/slices/current-cluster/selectors.ts} +7 -7
  308. package/lib/ocm/{reducers/clusters/currentClusterSlice.ts → store/slices/current-cluster/slice.ts} +10 -8
  309. package/lib/ocm/store/slices/feature-flags/selectors.ts +13 -0
  310. package/lib/ocm/store/slices/feature-flags/slice.ts +15 -0
  311. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/selectors.ts +3 -3
  312. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/thunks.ts +3 -3
  313. package/lib/ocm/store/store-day1.ts +23 -0
  314. package/lib/ocm/store/store-day2.ts +19 -0
  315. package/package.json +3 -3
  316. package/build/@types/ocm/components/Router.d.ts +0 -9
  317. package/build/@types/ocm/components/Router.d.ts.map +0 -1
  318. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts +0 -10
  319. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts.map +0 -1
  320. package/build/@types/ocm/reducers/clusters/clustersSlice.d.ts.map +0 -1
  321. package/build/@types/ocm/reducers/clusters/currentClusterSlice.d.ts.map +0 -1
  322. package/build/@types/ocm/reducers/clusters/index.d.ts +0 -3
  323. package/build/@types/ocm/reducers/clusters/index.d.ts.map +0 -1
  324. package/build/@types/ocm/selectors/clusters.d.ts.map +0 -1
  325. package/build/@types/ocm/selectors/currentCluster.d.ts +0 -14
  326. package/build/@types/ocm/selectors/currentCluster.d.ts.map +0 -1
  327. package/build/@types/ocm/selectors/index.d.ts +0 -3
  328. package/build/@types/ocm/selectors/index.d.ts.map +0 -1
  329. package/build/@types/ocm/store/slices/infraEnvs/selectors.d.ts.map +0 -1
  330. package/build/@types/ocm/store/slices/infraEnvs/slice.d.ts.map +0 -1
  331. package/build/@types/ocm/store/slices/infraEnvs/thunks.d.ts.map +0 -1
  332. package/build/cjs/ocm/components/Router.js +0 -25
  333. package/build/cjs/ocm/components/Router.js.map +0 -1
  334. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js +0 -30
  335. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js.map +0 -1
  336. package/build/cjs/ocm/reducers/clusters/clustersSlice.js.map +0 -1
  337. package/build/cjs/ocm/reducers/clusters/currentClusterSlice.js.map +0 -1
  338. package/build/cjs/ocm/reducers/clusters/index.js +0 -6
  339. package/build/cjs/ocm/reducers/clusters/index.js.map +0 -1
  340. package/build/cjs/ocm/selectors/clusters.js.map +0 -1
  341. package/build/cjs/ocm/selectors/currentCluster.js.map +0 -1
  342. package/build/cjs/ocm/selectors/index.js +0 -6
  343. package/build/cjs/ocm/selectors/index.js.map +0 -1
  344. package/build/cjs/ocm/store/slices/infraEnvs/selectors.js.map +0 -1
  345. package/build/cjs/ocm/store/slices/infraEnvs/slice.js.map +0 -1
  346. package/build/cjs/ocm/store/slices/infraEnvs/thunks.js.map +0 -1
  347. package/lib/ocm/components/Router.tsx +0 -29
  348. package/lib/ocm/hooks/useOracleDropdownItemState.ts +0 -45
  349. package/lib/ocm/reducers/clusters/index.ts +0 -2
  350. package/lib/ocm/selectors/index.ts +0 -2
  351. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/slice.d.ts +0 -0
  352. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/thunks.d.ts +0 -0
  353. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/selectors.js +0 -0
  354. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/slice.js +0 -0
  355. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/thunks.js +0 -0
  356. /package/lib/ocm/store/slices/{infraEnvs → infra-envs}/slice.ts +0 -0
@@ -1,45 +0,0 @@
1
- import type { NewFeatureSupportLevelMap } from '../../common/components/newFeatureSupportLevels';
2
- import { useNewFeatureSupportLevel } from '../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelContext';
3
- import { clusterExistsReason as CLUSTER_EXISTS_REASON } from '../components/featureSupportLevels/featureStateUtils';
4
- export const FEATURE_ID = 'EXTERNAL_PLATFORM_OCI';
5
-
6
- export interface OracleDropdownItemState {
7
- readonly featureId: string;
8
- readonly isSupported: boolean;
9
- readonly isDisabled: boolean;
10
- readonly disabledReason?: string;
11
- }
12
-
13
- export const useOracleDropdownItemState = (
14
- hasExistentCluster: boolean,
15
- featureSupportLevelData: NewFeatureSupportLevelMap | null,
16
- cpuArchitecture: string,
17
- ): OracleDropdownItemState | null => {
18
- const featureSupportLevelContext = useNewFeatureSupportLevel();
19
- if (!featureSupportLevelData) {
20
- return null;
21
- }
22
-
23
- const isSupported = featureSupportLevelData
24
- ? featureSupportLevelContext.isFeatureSupported(FEATURE_ID, featureSupportLevelData)
25
- : false;
26
-
27
- let disabledReason: string | undefined;
28
-
29
- if (hasExistentCluster) {
30
- disabledReason = CLUSTER_EXISTS_REASON;
31
- } else if (!isSupported) {
32
- disabledReason = featureSupportLevelContext.getFeatureDisabledReason(
33
- FEATURE_ID,
34
- undefined,
35
- cpuArchitecture,
36
- );
37
- }
38
-
39
- return {
40
- featureId: FEATURE_ID,
41
- isSupported,
42
- isDisabled: disabledReason !== undefined,
43
- disabledReason,
44
- };
45
- };
@@ -1,2 +0,0 @@
1
- export * from './clustersSlice';
2
- export * from './currentClusterSlice';
@@ -1,2 +0,0 @@
1
- export * from './currentCluster';
2
- export * from './clusters';