@openshift-assisted/ui-lib 2.9.5-cim → 2.9.7-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 (422) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts +1 -0
  2. package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts +1 -0
  4. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts +2 -1
  6. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
  8. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.d.ts.map +1 -1
  9. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts +1 -0
  10. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +1 -1
  11. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +1 -1
  12. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  13. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts +1 -0
  14. package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
  15. package/build/@types/cim/components/ClusterDeployment/types.d.ts +6 -3
  16. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  17. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  18. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts +1 -1
  19. package/build/@types/cim/components/InfraEnv/AddHostDropdown.d.ts.map +1 -1
  20. package/build/@types/cim/components/InfraEnv/types.d.ts +3 -1
  21. package/build/@types/cim/components/InfraEnv/types.d.ts.map +1 -1
  22. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  23. package/build/@types/cim/components/helpers/versions.d.ts +1 -1
  24. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  25. package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
  26. package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
  27. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts +5 -0
  28. package/build/@types/cim/components/modals/ProvisioningConfigErrorAlert.d.ts.map +1 -0
  29. package/build/@types/cim/components/modals/types.d.ts +2 -0
  30. package/build/@types/cim/components/modals/types.d.ts.map +1 -1
  31. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +1 -3
  32. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  33. package/build/@types/common/api/axiosClient.d.ts.map +1 -1
  34. package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
  35. package/build/@types/common/components/clusterWizard/types.d.ts +1 -0
  36. package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
  37. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts +4 -0
  38. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  39. package/build/@types/common/components/ui/formik/SingleNodeCheckbox.d.ts.map +1 -1
  40. package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -1
  41. package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
  42. package/build/@types/common/config/constants.d.ts.map +1 -1
  43. package/build/@types/common/features/featureGate.d.ts +1 -2
  44. package/build/@types/common/features/featureGate.d.ts.map +1 -1
  45. package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.d.ts.map +1 -1
  46. package/build/@types/ocm/components/Routes.d.ts +6 -0
  47. package/build/@types/ocm/components/Routes.d.ts.map +1 -0
  48. package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageForm.d.ts.map +1 -1
  49. package/build/@types/ocm/components/clusterConfiguration/OcmBaseDomainField.d.ts.map +1 -1
  50. package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
  51. package/build/@types/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.d.ts.map +1 -1
  52. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
  53. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
  54. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
  55. package/build/@types/ocm/components/clusterConfiguration/operators/CnvHostRequirements.d.ts.map +1 -1
  56. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts +13 -5
  57. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
  58. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts +2 -2
  60. package/build/@types/ocm/components/clusterConfiguration/platformIntegration/constants.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
  65. package/build/@types/ocm/components/clusterWizard/CustomManifestStep.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
  67. package/build/@types/ocm/components/clusterWizard/StaticIp.d.ts.map +1 -1
  68. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts +2 -0
  69. package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -0
  70. package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
  71. package/build/@types/ocm/components/clusters/Clusters.d.ts.map +1 -1
  72. package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
  73. package/build/@types/ocm/components/clusters/NewClusterPage.d.ts.map +1 -1
  74. package/build/@types/ocm/components/clusters/clusterPolling.d.ts +1 -1
  75. package/build/@types/ocm/components/clusters/clusterPolling.d.ts.map +1 -1
  76. package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
  77. package/build/@types/ocm/components/hosts/use-hosts-table.d.ts.map +1 -1
  78. package/build/@types/ocm/components/index.d.ts +1 -1
  79. package/build/@types/ocm/hooks/index.d.ts +0 -1
  80. package/build/@types/ocm/hooks/index.d.ts.map +1 -1
  81. package/build/@types/ocm/index.d.ts +0 -1
  82. package/build/@types/ocm/index.d.ts.map +1 -1
  83. package/build/@types/ocm/store/hooks.d.ts +5 -1
  84. package/build/@types/ocm/store/hooks.d.ts.map +1 -1
  85. package/build/@types/ocm/store/index.d.ts +5 -36
  86. package/build/@types/ocm/store/index.d.ts.map +1 -1
  87. package/build/@types/ocm/{selectors/clusters.d.ts → store/slices/clusters/selectors.d.ts} +15 -11
  88. package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -0
  89. package/build/@types/ocm/{reducers/clusters/clustersSlice.d.ts → store/slices/clusters/slice.d.ts} +4 -4
  90. package/build/@types/ocm/store/slices/clusters/slice.d.ts.map +1 -0
  91. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts +14 -0
  92. package/build/@types/ocm/store/slices/current-cluster/selectors.d.ts.map +1 -0
  93. package/build/@types/ocm/{reducers/clusters/currentClusterSlice.d.ts → store/slices/current-cluster/slice.d.ts} +5 -5
  94. package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -0
  95. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +9 -0
  96. package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -0
  97. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts +7 -0
  98. package/build/@types/ocm/store/slices/feature-flags/slice.d.ts.map +1 -0
  99. package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/selectors.d.ts +4 -3
  100. package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts.map +1 -0
  101. package/build/@types/ocm/store/slices/infra-envs/slice.d.ts.map +1 -0
  102. package/build/@types/ocm/store/slices/infra-envs/thunks.d.ts.map +1 -0
  103. package/build/@types/ocm/store/store-day1.d.ts +32 -0
  104. package/build/@types/ocm/store/store-day1.d.ts.map +1 -0
  105. package/build/@types/ocm/store/store-day2.d.ts +10 -0
  106. package/build/@types/ocm/store/store-day2.d.ts.map +1 -0
  107. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js +3 -2
  108. package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +1 -1
  109. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js +3 -3
  110. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +1 -1
  111. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +5 -4
  112. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
  113. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js +2 -2
  114. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +1 -1
  115. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js +14 -9
  116. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js.map +1 -1
  117. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js +2 -2
  118. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +1 -1
  119. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js +2 -2
  120. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +1 -1
  121. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +4 -4
  122. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  123. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +4 -3
  124. package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
  125. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +9 -0
  126. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  127. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +1 -1
  128. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  129. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js +23 -10
  130. package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js.map +1 -1
  131. package/build/cjs/cim/components/helpers/toAssisted.js +2 -1
  132. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  133. package/build/cjs/cim/components/helpers/versions.js +9 -2
  134. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  135. package/build/cjs/cim/components/modals/AddBmcHostModal.js +3 -1
  136. package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
  137. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +3 -1
  138. package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
  139. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js +16 -0
  140. package/build/cjs/cim/components/modals/ProvisioningConfigErrorAlert.js.map +1 -0
  141. package/build/cjs/common/api/assisted-service/ClustersAPI.js +0 -6
  142. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  143. package/build/cjs/common/api/axiosClient.js +2 -4
  144. package/build/cjs/common/api/axiosClient.js.map +1 -1
  145. package/build/cjs/common/components/clusterWizard/ReviewValidations.js +11 -3
  146. package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
  147. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +2 -2
  148. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +1 -1
  149. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  150. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js +1 -3
  151. package/build/cjs/common/components/ui/formik/SingleNodeCheckbox.js.map +1 -1
  152. package/build/cjs/common/components/ui/formik/validationSchemas.js +8 -16
  153. package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
  154. package/build/cjs/common/config/constants.js +1 -3
  155. package/build/cjs/common/config/constants.js.map +1 -1
  156. package/build/cjs/common/features/featureGate.js +1 -11
  157. package/build/cjs/common/features/featureGate.js.map +1 -1
  158. package/build/cjs/common/utils.js +1 -1
  159. package/build/cjs/common/utils.js.map +1 -1
  160. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js +9 -5
  161. package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js.map +1 -1
  162. package/build/cjs/ocm/components/Routes.js +29 -0
  163. package/build/cjs/ocm/components/Routes.js.map +1 -0
  164. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js +4 -4
  165. package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +1 -1
  167. package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
  168. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +0 -1
  169. package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
  170. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -4
  171. package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js +1 -2
  173. package/build/cjs/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +1 -1
  175. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +1 -1
  177. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +1 -1
  179. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +8 -12
  181. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
  182. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +5 -6
  183. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js +1 -1
  185. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +1 -1
  186. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +1 -1
  187. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +1 -1
  188. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js +1 -1
  189. package/build/cjs/ocm/components/clusterConfiguration/operators/CnvHostRequirements.js.map +1 -1
  190. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +61 -18
  191. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  192. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +2 -2
  193. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
  194. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js +8 -4
  195. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js.map +1 -1
  196. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js +3 -3
  197. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js.map +1 -1
  198. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +1 -1
  199. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
  200. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js +1 -1
  201. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js.map +1 -1
  202. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js +1 -1
  203. package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js.map +1 -1
  204. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +4 -4
  205. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
  206. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -2
  207. package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
  208. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +2 -2
  209. package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
  210. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +2 -2
  211. package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
  212. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +2 -2
  213. package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
  214. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +10 -9
  215. package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
  216. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +4 -2
  217. package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
  218. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js +1 -1
  219. package/build/cjs/ocm/components/clusterWizard/CustomManifestStep.js.map +1 -1
  220. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js +4 -4
  221. package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
  222. package/build/cjs/ocm/components/clusterWizard/Operators.js +3 -3
  223. package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
  224. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +4 -9
  225. package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
  226. package/build/cjs/ocm/components/clusterWizard/StaticIp.js +1 -1
  227. package/build/cjs/ocm/components/clusterWizard/StaticIp.js.map +1 -1
  228. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +18 -0
  229. package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -0
  230. package/build/cjs/ocm/components/clusters/ClusterPage.js +4 -9
  231. package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
  232. package/build/cjs/ocm/components/clusters/Clusters.js +8 -8
  233. package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
  234. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +6 -6
  235. package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
  236. package/build/cjs/ocm/components/clusters/ClustersTable.js +2 -2
  237. package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
  238. package/build/cjs/ocm/components/clusters/NewClusterPage.js +2 -2
  239. package/build/cjs/ocm/components/clusters/NewClusterPage.js.map +1 -1
  240. package/build/cjs/ocm/components/clusters/clusterPolling.js +11 -11
  241. package/build/cjs/ocm/components/clusters/clusterPolling.js.map +1 -1
  242. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +20 -8
  243. package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
  244. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +1 -1
  245. package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
  246. package/build/cjs/ocm/components/hosts/use-hosts-table.js +20 -20
  247. package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
  248. package/build/cjs/ocm/components/hosts/utils.js +2 -2
  249. package/build/cjs/ocm/components/hosts/utils.js.map +1 -1
  250. package/build/cjs/ocm/components/index.js +1 -1
  251. package/build/cjs/ocm/components/ui/OcmFormFields.js +1 -1
  252. package/build/cjs/ocm/components/ui/OcmFormFields.js.map +1 -1
  253. package/build/cjs/ocm/hooks/index.js +1 -3
  254. package/build/cjs/ocm/hooks/index.js.map +1 -1
  255. package/build/cjs/ocm/hooks/useSetClusterPermissions.js +2 -2
  256. package/build/cjs/ocm/hooks/useSetClusterPermissions.js.map +1 -1
  257. package/build/cjs/ocm/index.js +1 -2
  258. package/build/cjs/ocm/index.js.map +1 -1
  259. package/build/cjs/ocm/store/hooks.js +3 -1
  260. package/build/cjs/ocm/store/hooks.js.map +1 -1
  261. package/build/cjs/ocm/store/index.js +10 -19
  262. package/build/cjs/ocm/store/index.js.map +1 -1
  263. package/build/cjs/ocm/{selectors/clusters.js → store/slices/clusters/selectors.js} +4 -4
  264. package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -0
  265. package/build/cjs/ocm/{reducers/clusters/clustersSlice.js → store/slices/clusters/slice.js} +8 -7
  266. package/build/cjs/ocm/store/slices/clusters/slice.js.map +1 -0
  267. package/build/cjs/ocm/{selectors/currentCluster.js → store/slices/current-cluster/selectors.js} +1 -1
  268. package/build/cjs/ocm/store/slices/current-cluster/selectors.js.map +1 -0
  269. package/build/cjs/ocm/{reducers/clusters/currentClusterSlice.js → store/slices/current-cluster/slice.js} +12 -13
  270. package/build/cjs/ocm/store/slices/current-cluster/slice.js.map +1 -0
  271. package/build/cjs/ocm/store/slices/feature-flags/selectors.js +11 -0
  272. package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -0
  273. package/build/cjs/ocm/store/slices/feature-flags/slice.js +16 -0
  274. package/build/cjs/ocm/store/slices/feature-flags/slice.js.map +1 -0
  275. package/build/cjs/ocm/store/slices/infra-envs/selectors.js.map +1 -0
  276. package/build/cjs/ocm/store/slices/infra-envs/slice.js.map +1 -0
  277. package/build/cjs/ocm/store/slices/infra-envs/thunks.js.map +1 -0
  278. package/build/cjs/ocm/store/store-day1.js +24 -0
  279. package/build/cjs/ocm/store/store-day1.js.map +1 -0
  280. package/build/cjs/ocm/store/store-day2.js +20 -0
  281. package/build/cjs/ocm/store/store-day2.js.map +1 -0
  282. package/lib/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.tsx +8 -1
  283. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +7 -1
  284. package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +6 -1
  285. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.tsx +2 -0
  286. package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.tsx +14 -12
  287. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.tsx +3 -1
  288. package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx +3 -0
  289. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +4 -0
  290. package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +8 -2
  291. package/lib/cim/components/ClusterDeployment/types.ts +6 -3
  292. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +10 -0
  293. package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +1 -1
  294. package/lib/cim/components/InfraEnv/AddHostDropdown.tsx +45 -18
  295. package/lib/cim/components/InfraEnv/types.ts +4 -1
  296. package/lib/cim/components/helpers/toAssisted.ts +3 -0
  297. package/lib/cim/components/helpers/versions.ts +8 -1
  298. package/lib/cim/components/modals/AddBmcHostModal.tsx +3 -0
  299. package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +3 -0
  300. package/lib/cim/components/modals/ProvisioningConfigErrorAlert.tsx +18 -0
  301. package/lib/cim/components/modals/types.ts +2 -0
  302. package/lib/common/api/assisted-service/ClustersAPI.ts +0 -9
  303. package/lib/common/api/axiosClient.ts +2 -3
  304. package/lib/common/components/clusterWizard/ReviewValidations.tsx +12 -1
  305. package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +2 -2
  306. package/lib/common/components/clusterWizard/types.ts +1 -0
  307. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +9 -0
  308. package/lib/common/components/ui/formik/SingleNodeCheckbox.tsx +1 -3
  309. package/lib/common/components/ui/formik/validationSchemas.test.ts +4 -22
  310. package/lib/common/components/ui/formik/validationSchemas.ts +13 -22
  311. package/lib/common/config/constants.ts +1 -3
  312. package/lib/common/features/featureGate.tsx +1 -19
  313. package/lib/common/utils.ts +2 -2
  314. package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.tsx +16 -11
  315. package/lib/ocm/components/Routes.tsx +34 -0
  316. package/lib/ocm/components/clusterConfiguration/DiscoveryImageForm.tsx +5 -1
  317. package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +1 -1
  318. package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +0 -2
  319. package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +6 -10
  320. package/lib/ocm/components/clusterConfiguration/OcmSingleNodeCheckbox.tsx +2 -3
  321. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +1 -1
  322. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +1 -1
  323. package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +1 -1
  324. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +6 -19
  325. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +8 -6
  326. package/lib/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx +1 -1
  327. package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +1 -1
  328. package/lib/ocm/components/clusterConfiguration/operators/CnvHostRequirements.tsx +1 -1
  329. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +129 -42
  330. package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +10 -8
  331. package/lib/ocm/components/clusterConfiguration/platformIntegration/constants.tsx +7 -3
  332. package/lib/ocm/components/clusterConfiguration/review/ReviewStep.tsx +2 -2
  333. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +1 -1
  334. package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.tsx +3 -3
  335. package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.tsx +1 -1
  336. package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +6 -4
  337. package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +3 -3
  338. package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +1 -1
  339. package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +1 -1
  340. package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +1 -1
  341. package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +12 -7
  342. package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +5 -3
  343. package/lib/ocm/components/clusterWizard/CustomManifestStep.tsx +1 -1
  344. package/lib/ocm/components/clusterWizard/HostDiscovery.tsx +2 -2
  345. package/lib/ocm/components/clusterWizard/Operators.tsx +1 -1
  346. package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +6 -19
  347. package/lib/ocm/components/clusterWizard/StaticIp.tsx +1 -1
  348. package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +25 -0
  349. package/lib/ocm/components/clusters/ClusterPage.tsx +4 -28
  350. package/lib/ocm/components/clusters/Clusters.tsx +9 -11
  351. package/lib/ocm/components/clusters/ClustersListToolbar.tsx +5 -5
  352. package/lib/ocm/components/clusters/ClustersTable.tsx +4 -1
  353. package/lib/ocm/components/clusters/NewClusterPage.tsx +3 -6
  354. package/lib/ocm/components/clusters/clusterPolling.ts +7 -7
  355. package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +21 -7
  356. package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +1 -1
  357. package/lib/ocm/components/hosts/use-hosts-table.tsx +5 -2
  358. package/lib/ocm/components/hosts/utils.ts +1 -1
  359. package/lib/ocm/components/index.ts +1 -1
  360. package/lib/ocm/components/ui/OcmFormFields.tsx +1 -1
  361. package/lib/ocm/hooks/index.ts +0 -1
  362. package/lib/ocm/hooks/useSetClusterPermissions.ts +1 -1
  363. package/lib/ocm/index.ts +0 -1
  364. package/lib/ocm/store/hooks.ts +6 -2
  365. package/lib/ocm/store/index.ts +5 -23
  366. package/lib/ocm/{selectors/clusters.tsx → store/slices/clusters/selectors.tsx} +10 -12
  367. package/lib/ocm/{reducers/clusters/clustersSlice.ts → store/slices/clusters/slice.ts} +6 -5
  368. package/lib/ocm/{selectors/currentCluster.ts → store/slices/current-cluster/selectors.ts} +7 -7
  369. package/lib/ocm/{reducers/clusters/currentClusterSlice.ts → store/slices/current-cluster/slice.ts} +10 -8
  370. package/lib/ocm/store/slices/feature-flags/selectors.ts +13 -0
  371. package/lib/ocm/store/slices/feature-flags/slice.ts +15 -0
  372. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/selectors.ts +3 -3
  373. package/lib/ocm/store/slices/{infraEnvs → infra-envs}/thunks.ts +3 -3
  374. package/lib/ocm/store/store-day1.ts +23 -0
  375. package/lib/ocm/store/store-day2.ts +19 -0
  376. package/package.json +3 -4
  377. package/build/@types/ocm/components/Router.d.ts +0 -9
  378. package/build/@types/ocm/components/Router.d.ts.map +0 -1
  379. package/build/@types/ocm/hooks/useClusterSupportedPlatforms.d.ts +0 -11
  380. package/build/@types/ocm/hooks/useClusterSupportedPlatforms.d.ts.map +0 -1
  381. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts +0 -10
  382. package/build/@types/ocm/hooks/useOracleDropdownItemState.d.ts.map +0 -1
  383. package/build/@types/ocm/reducers/clusters/clustersSlice.d.ts.map +0 -1
  384. package/build/@types/ocm/reducers/clusters/currentClusterSlice.d.ts.map +0 -1
  385. package/build/@types/ocm/reducers/clusters/index.d.ts +0 -3
  386. package/build/@types/ocm/reducers/clusters/index.d.ts.map +0 -1
  387. package/build/@types/ocm/selectors/clusters.d.ts.map +0 -1
  388. package/build/@types/ocm/selectors/currentCluster.d.ts +0 -14
  389. package/build/@types/ocm/selectors/currentCluster.d.ts.map +0 -1
  390. package/build/@types/ocm/selectors/index.d.ts +0 -3
  391. package/build/@types/ocm/selectors/index.d.ts.map +0 -1
  392. package/build/@types/ocm/store/slices/infraEnvs/selectors.d.ts.map +0 -1
  393. package/build/@types/ocm/store/slices/infraEnvs/slice.d.ts.map +0 -1
  394. package/build/@types/ocm/store/slices/infraEnvs/thunks.d.ts.map +0 -1
  395. package/build/cjs/ocm/components/Router.js +0 -25
  396. package/build/cjs/ocm/components/Router.js.map +0 -1
  397. package/build/cjs/ocm/hooks/useClusterSupportedPlatforms.js +0 -53
  398. package/build/cjs/ocm/hooks/useClusterSupportedPlatforms.js.map +0 -1
  399. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js +0 -30
  400. package/build/cjs/ocm/hooks/useOracleDropdownItemState.js.map +0 -1
  401. package/build/cjs/ocm/reducers/clusters/clustersSlice.js.map +0 -1
  402. package/build/cjs/ocm/reducers/clusters/currentClusterSlice.js.map +0 -1
  403. package/build/cjs/ocm/reducers/clusters/index.js +0 -6
  404. package/build/cjs/ocm/reducers/clusters/index.js.map +0 -1
  405. package/build/cjs/ocm/selectors/clusters.js.map +0 -1
  406. package/build/cjs/ocm/selectors/currentCluster.js.map +0 -1
  407. package/build/cjs/ocm/selectors/index.js +0 -6
  408. package/build/cjs/ocm/selectors/index.js.map +0 -1
  409. package/build/cjs/ocm/store/slices/infraEnvs/selectors.js.map +0 -1
  410. package/build/cjs/ocm/store/slices/infraEnvs/slice.js.map +0 -1
  411. package/build/cjs/ocm/store/slices/infraEnvs/thunks.js.map +0 -1
  412. package/lib/ocm/components/Router.tsx +0 -29
  413. package/lib/ocm/hooks/useClusterSupportedPlatforms.ts +0 -70
  414. package/lib/ocm/hooks/useOracleDropdownItemState.ts +0 -45
  415. package/lib/ocm/reducers/clusters/index.ts +0 -2
  416. package/lib/ocm/selectors/index.ts +0 -2
  417. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/slice.d.ts +0 -0
  418. /package/build/@types/ocm/store/slices/{infraEnvs → infra-envs}/thunks.d.ts +0 -0
  419. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/selectors.js +0 -0
  420. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/slice.js +0 -0
  421. /package/build/cjs/ocm/store/slices/{infraEnvs → infra-envs}/thunks.js +0 -0
  422. /package/lib/ocm/store/slices/{infraEnvs → infra-envs}/slice.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { createAsyncThunk } from '@reduxjs/toolkit';
2
2
  import { CpuArchitecture, WithRequired } from '../../../../common';
3
3
  import { InfraEnvsAPI } from '../../../services/apis';
4
- import { RootState } from '../../index';
4
+ import { RootStateDay1 } from '../../store-day1';
5
5
  import { selectInfraEnvByCpuArchitecture } from './selectors';
6
6
  import {
7
7
  Cluster,
@@ -28,7 +28,7 @@ export const createInfraEnv = createAsyncThunk(
28
28
  );
29
29
 
30
30
  export const removeAllInfraEnvs = createAsyncThunk('infraEnvs/removeAll', async (_, thunkAPI) => {
31
- const state = thunkAPI.getState() as RootState;
31
+ const state = thunkAPI.getState() as RootStateDay1;
32
32
  const infraEnvIds = state.infraEnvs.map((infraEnv) => infraEnv.id);
33
33
  const promises = [];
34
34
  for (const infraEnvId of infraEnvIds) {
@@ -49,7 +49,7 @@ export const updateInfraEnv = createAsyncThunk(
49
49
  export const getImageUrl = createAsyncThunk(
50
50
  'infraEnvs/getImageUrl',
51
51
  async (cpuArchitecture: CpuArchitecture, thunkAPI) => {
52
- const state = thunkAPI.getState() as RootState;
52
+ const state = thunkAPI.getState() as RootStateDay1;
53
53
  // In OCM there is no late-binding, therefore every cluster created through the UI
54
54
  // will have at least one infra-env bound to it and its cpuArchitecture initialized
55
55
  // by default (to x86_64).
@@ -0,0 +1,23 @@
1
+ import { configureStore } from '@reduxjs/toolkit';
2
+ import { clustersReducer } from './slices/clusters/slice';
3
+ import { currentClusterReducer } from './slices/current-cluster/slice';
4
+ import { infraEnvsReducer } from './slices/infra-envs/slice';
5
+ import { featureFlagsReducer } from './slices/feature-flags/slice';
6
+ import { STANDALONE_DEPLOYMENT_ENABLED_FEATURES } from '../../common';
7
+
8
+ export const storeDay1 = configureStore({
9
+ devTools: {
10
+ name: 'Assisted Installer - Day 1',
11
+ },
12
+ reducer: {
13
+ clusters: clustersReducer,
14
+ currentCluster: currentClusterReducer,
15
+ infraEnvs: infraEnvsReducer,
16
+ featureFlags: featureFlagsReducer,
17
+ },
18
+ preloadedState: {
19
+ featureFlags: STANDALONE_DEPLOYMENT_ENABLED_FEATURES,
20
+ },
21
+ });
22
+ export type RootStateDay1 = ReturnType<typeof storeDay1.getState>;
23
+ export type DispatchDay1 = typeof storeDay1.dispatch;
@@ -0,0 +1,19 @@
1
+ import { configureStore } from '@reduxjs/toolkit';
2
+ import { infraEnvsReducer } from './slices/infra-envs/slice';
3
+ import { featureFlagsReducer } from './slices/feature-flags/slice';
4
+ import { STANDALONE_DEPLOYMENT_ENABLED_FEATURES } from '../../common';
5
+
6
+ export const storeDay2 = configureStore({
7
+ devTools: {
8
+ name: 'Assisted Installer - Day 2',
9
+ },
10
+ reducer: {
11
+ infraEnvs: infraEnvsReducer,
12
+ featureFlags: featureFlagsReducer,
13
+ },
14
+ preloadedState: {
15
+ featureFlags: STANDALONE_DEPLOYMENT_ENABLED_FEATURES,
16
+ },
17
+ });
18
+ export type RootStateDay2 = ReturnType<typeof storeDay2.getState>;
19
+ export type DispatchDay2 = typeof storeDay2.dispatch;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@openshift-assisted/locales": "2.9.5-cim",
4
- "@openshift-assisted/types": "2.9.5-cim",
3
+ "@openshift-assisted/locales": "2.9.7-cim",
4
+ "@openshift-assisted/types": "2.9.7-cim",
5
5
  "axios-case-converter": "^0.11.1",
6
6
  "camel-case": "^4.1.2",
7
7
  "cidr-tools": "^4.3.0",
@@ -26,7 +26,6 @@
26
26
  },
27
27
  "description": "React component library for the Assisted Installer UI",
28
28
  "devDependencies": {
29
- "@openshift-assisted/eslint-config-assisted-ui": "^1.0.0",
30
29
  "@tsconfig/recommended": "^1.0.2",
31
30
  "@types/file-saver": "^2.0.1",
32
31
  "@types/human-date": "^1.4.0",
@@ -128,5 +127,5 @@
128
127
  ]
129
128
  }
130
129
  },
131
- "version": "2.9.5-cim"
130
+ "version": "2.9.7-cim"
132
131
  }
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { FeatureListType } from '../../common';
3
- export declare const AssistedUiRouter: React.FC<{
4
- allEnabledFeatures: FeatureListType;
5
- }>;
6
- export declare const Router: React.FC<{
7
- features: FeatureListType;
8
- }>;
9
- //# sourceMappingURL=Router.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../../../lib/ocm/components/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAA8B,eAAe,EAAE,MAAM,cAAc,CAAC;AAI3E,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,kBAAkB,EAAE,eAAe,CAAA;CAAE,CAM9E,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAW1D,CAAC"}
@@ -1,11 +0,0 @@
1
- import { AxiosError } from 'axios';
2
- import { SupportedPlatformType } from '../../common';
3
- import { APIErrorMixin } from '../../common/api/utils';
4
- export type SupportedPlatformIntegrationType = 'no-active-integrations' | SupportedPlatformType;
5
- export default function useClusterSupportedPlatforms(clusterId: string): {
6
- isPlatformIntegrationSupported: boolean;
7
- supportedPlatformIntegration: SupportedPlatformIntegrationType;
8
- isLoading: boolean;
9
- error: AxiosError<APIErrorMixin, any> | undefined;
10
- };
11
- //# sourceMappingURL=useClusterSupportedPlatforms.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useClusterSupportedPlatforms.d.ts","sourceRoot":"","sources":["../../../../lib/ocm/hooks/useClusterSupportedPlatforms.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,OAAO,EAKL,qBAAqB,EACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAGvD,MAAM,MAAM,gCAAgC,GAAG,wBAAwB,GAAG,qBAAqB,CAAC;AAgBhG,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,SAAS,EAAE,MAAM;;;;;EAsCrE"}
@@ -1,10 +0,0 @@
1
- import type { NewFeatureSupportLevelMap } from '../../common/components/newFeatureSupportLevels';
2
- export declare const FEATURE_ID = "EXTERNAL_PLATFORM_OCI";
3
- export interface OracleDropdownItemState {
4
- readonly featureId: string;
5
- readonly isSupported: boolean;
6
- readonly isDisabled: boolean;
7
- readonly disabledReason?: string;
8
- }
9
- export declare const useOracleDropdownItemState: (hasExistentCluster: boolean, featureSupportLevelData: NewFeatureSupportLevelMap | null, cpuArchitecture: string) => OracleDropdownItemState | null;
10
- //# sourceMappingURL=useOracleDropdownItemState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOracleDropdownItemState.d.ts","sourceRoot":"","sources":["../../../../lib/ocm/hooks/useOracleDropdownItemState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AAGjG,eAAO,MAAM,UAAU,0BAA0B,CAAC;AAElD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,0BAA0B,uBACjB,OAAO,2BACF,yBAAyB,GAAG,IAAI,mBACxC,MAAM,KACtB,uBAAuB,GAAG,IA4B5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"clustersSlice.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/reducers/clusters/clustersSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EACb,aAAa,EACb,SAAS,EACT,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAsD,CAAC;AAE/E,eAAO,MAAM,kBAAkB;;;;;;;;;EAU9B,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,OA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;;;;;;;;;;;;;;iBAzClD,eAAe;2BACL,MAAM;;;;0GA6CQ,cAAc,OAAO,CAAC;;iBA9C9C,eAAe;2BACL,MAAM;;;;uGAgDK,cAAc,IAAI,CAAC;;;;2BAhD9B,MAAM;;;;;;;;iBADhB,eAAe;;;;;;;iBAAf,eAAe;;;;qHAuEZ,cAAc,wCAAwC,CAAC;;;iBAvE1D,eAAe;2BACL,MAAM;;;oBA+GzB,CAAC;AAEH,eAAO,MACL,aAAa,gGACb,iBAAiB,oGACjB,UAAU,0FACV,oBAAoB,iGACpB,YAAY,yFACZ,WAAW,wFACX,iBAAiB,8FACjB,wBAAwB,0IACK,CAAC;;AAChC,wBAA2C"}
@@ -1,3 +0,0 @@
1
- export * from './clustersSlice';
2
- export * from './currentClusterSlice';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/reducers/clusters/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"clusters.d.ts","sourceRoot":"","sources":["../../../../lib/ocm/selectors/clusters.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAML,gBAAgB,EAEhB,iBAAiB,EACjB,eAAe,EAChB,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,OAAO,EAAE,MAAM,sDAAsD,CAAC;AAK/E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;CAMjC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AA0DF,eAAO,MAAM,yBAAyB,YAAa,QAAQ,sBACjB,CAAC;AAE3C,eAAO,MAAM,sBAAsB,MAAO,SAAS;;;;;;;;;;;;;;;;;CAKlD,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAE9B,CAAC"}
@@ -1,14 +0,0 @@
1
- import { AssistedInstallerPermissionTypesListType } from '../../common';
2
- import { RootState } from '../store';
3
- export declare const selectCurrentClusterState: (state: RootState) => {
4
- data?: import("@openshift-assisted/types/./assisted-installer-service").Cluster | undefined;
5
- uiState: import("../../common").ResourceUIState;
6
- isReloadScheduled: number;
7
- permissions: AssistedInstallerPermissionTypesListType;
8
- errorDetail?: import("../reducers/clusters").FetchErrorType | undefined;
9
- };
10
- export declare const selectCurrentCluster: (state: RootState) => import("@openshift-assisted/types/./assisted-installer-service").Cluster | undefined;
11
- export declare const selectCurrentClusterUIState: (state: RootState) => import("../../common").ResourceUIState;
12
- export declare const selectIsCurrentClusterSNO: (state: RootState) => boolean;
13
- export declare const selectCurrentClusterPermissionsState: (state: RootState) => AssistedInstallerPermissionTypesListType;
14
- //# sourceMappingURL=currentCluster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currentCluster.d.ts","sourceRoot":"","sources":["../../../../lib/ocm/selectors/currentCluster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,yBAAyB,UAAW,SAAS;;;;;;CAAyB,CAAC;AACpF,eAAO,MAAM,oBAAoB,UAAW,SAAS,yFAA8B,CAAC;AACpF,eAAO,MAAM,2BAA2B,UAAW,SAAS,2CAAiC,CAAC;AAC9F,eAAO,MAAM,yBAAyB,UAAW,SAAS,YACE,CAAC;AAC7D,eAAO,MAAM,oCAAoC,UACxC,SAAS,KACf,wCAMF,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './currentCluster';
2
- export * from './clusters';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/ocm/selectors/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infraEnvs/selectors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,eAAO,MAAM,oBAAoB,UAAW,SAAS,gFAAoB,CAAC;AAC1E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;CAI3C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infraEnvs/slice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sDAAsD,CAAC;AAWrF,eAAO,MAAM,gBAAgB,gEAAyB,CAAC;AACvD,eAAO,MAAM,gBAAgB,gEAAyB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"thunks.d.ts","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infraEnvs/thunks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAInE,OAAO,EAEL,QAAQ,EACR,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,sDAAsD,CAAC;AAE9D,eAAO,MAAM,wBAAwB;;;;;;;;;EAMpC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;EAO1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;EAQ7B,CAAC;AAEH,eAAO,MAAM,cAAc;gBAE8C,QAAQ,CAAC,IAAI,CAAC;;;;;;;;;;EAKtF,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;EAWvB,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Router = exports.AssistedUiRouter = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const react_redux_1 = require("react-redux");
7
- const react_router_dom_1 = require("react-router-dom");
8
- const clusters_1 = require("./clusters");
9
- const store_1 = require("../store");
10
- const common_1 = require("../../common");
11
- const config_1 = require("../config");
12
- const ui_1 = require("./ui");
13
- const AssistedUiRouter = ({ allEnabledFeatures, }) => (react_1.default.createElement(react_redux_1.Provider, { store: store_1.store },
14
- react_1.default.createElement(exports.Router, { features: allEnabledFeatures })));
15
- exports.AssistedUiRouter = AssistedUiRouter;
16
- const Router = ({ features, children }) => (react_1.default.createElement(common_1.FeatureGateContextProvider, { features: features },
17
- react_1.default.createElement(ui_1.AssistedUILibVersion, null),
18
- react_1.default.createElement(react_router_dom_1.Switch, null,
19
- react_1.default.createElement(react_router_dom_1.Route, { path: `${config_1.routeBasePath}/clusters/~new`, component: clusters_1.NewClusterPage }),
20
- react_1.default.createElement(react_router_dom_1.Route, { path: `${config_1.routeBasePath}/clusters/:clusterId`, component: clusters_1.ClusterPage }),
21
- react_1.default.createElement(react_router_dom_1.Route, { path: `${config_1.routeBasePath}/clusters`, component: clusters_1.Clusters }),
22
- children,
23
- react_1.default.createElement(react_router_dom_1.Redirect, { to: `${config_1.routeBasePath}/clusters` }))));
24
- exports.Router = Router;
25
- //# sourceMappingURL=Router.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Router.js","sourceRoot":"","sources":["../../../../lib/ocm/components/Router.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,6CAAuC;AACvC,uDAA2D;AAC3D,yCAAmE;AACnE,oCAAiC;AACjC,yCAA2E;AAC3E,sCAA0C;AAC1C,6BAA4C;AAErC,MAAM,gBAAgB,GAAsD,CAAC,EAClF,kBAAkB,GACnB,EAAE,EAAE,CAAC,CACJ,8BAAC,sBAAQ,IAAC,KAAK,EAAE,aAAK;IACpB,8BAAC,cAAM,IAAC,QAAQ,EAAE,kBAAkB,GAAI,CAC/B,CACZ,CAAC;AANW,QAAA,gBAAgB,oBAM3B;AAEK,MAAM,MAAM,GAA4C,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACzF,8BAAC,mCAA0B,IAAC,QAAQ,EAAE,QAAQ;IAC5C,8BAAC,yBAAoB,OAAG;IACxB,8BAAC,yBAAM;QACL,8BAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,sBAAa,gBAAgB,EAAE,SAAS,EAAE,yBAAc,GAAI;QAC5E,8BAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,sBAAa,sBAAsB,EAAE,SAAS,EAAE,sBAAW,GAAI;QAC/E,8BAAC,wBAAK,IAAC,IAAI,EAAE,GAAG,sBAAa,WAAW,EAAE,SAAS,EAAE,mBAAQ,GAAI;QAChE,QAAQ;QACT,8BAAC,2BAAQ,IAAC,EAAE,EAAE,GAAG,sBAAa,WAAW,GAAI,CACtC,CACkB,CAC9B,CAAC;AAXW,QAAA,MAAM,UAWjB"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
5
- const swr_1 = tslib_1.__importDefault(require("swr"));
6
- const api_1 = require("../api");
7
- const apis_1 = require("../services/apis");
8
- const common_1 = require("../../common");
9
- function getIntegrablePlatformIntegration(allClusterPlatforms) {
10
- const integrationPlatforms = allClusterPlatforms.filter((platform) => !common_1.NonPlatformIntegrations.includes(platform));
11
- const uniqueIntegrationPlatforms = Array.from(new Set(integrationPlatforms));
12
- if (integrationPlatforms.length === 1) {
13
- const [exclusivelyAvailablePlatform] = uniqueIntegrationPlatforms;
14
- return (0, common_1.isClusterPlatformTypeVM)({ platform: { type: exclusivelyAvailablePlatform } })
15
- ? exclusivelyAvailablePlatform
16
- : undefined;
17
- }
18
- return undefined;
19
- }
20
- function useClusterSupportedPlatforms(clusterId) {
21
- const { addAlert, alerts } = (0, common_1.useAlerts)();
22
- const url = apis_1.ClustersAPI.makeSupportedPlatformsBaseURI(clusterId);
23
- const fetcher = () => apis_1.ClustersAPI.getSupportedPlatforms(clusterId).then((res) => res.data);
24
- const { data, error } = (0, swr_1.default)(url, fetcher, {
25
- refreshInterval: common_1.POLLING_INTERVAL,
26
- errorRetryCount: 0,
27
- revalidateOnFocus: false,
28
- });
29
- const isLoading = !error && !data;
30
- const supportedPlatformIntegration = isLoading || !data ? undefined : getIntegrablePlatformIntegration(data);
31
- react_1.default.useEffect(() => {
32
- if (error) {
33
- const title = `Failed to retrieve supported platforms (clusterId: ${clusterId})`;
34
- //TODO(brotman) add handling of existing errors to alerts context
35
- if (alerts.find((alert) => alert.title === title)) {
36
- return;
37
- }
38
- (0, api_1.handleApiError)(error, () => addAlert({
39
- title,
40
- message: (0, api_1.getApiErrorMessage)(error),
41
- }));
42
- }
43
- }, [error, addAlert, clusterId, alerts]);
44
- return {
45
- isPlatformIntegrationSupported: supportedPlatformIntegration !== undefined,
46
- supportedPlatformIntegration: (supportedPlatformIntegration ||
47
- 'no-active-integrations'),
48
- isLoading,
49
- error,
50
- };
51
- }
52
- exports.default = useClusterSupportedPlatforms;
53
- //# sourceMappingURL=useClusterSupportedPlatforms.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useClusterSupportedPlatforms.js","sourceRoot":"","sources":["../../../../lib/ocm/hooks/useClusterSupportedPlatforms.ts"],"names":[],"mappings":";;;AAAA,0DAA0B;AAE1B,sDAAyB;AACzB,gCAA4D;AAC5D,2CAA+C;AAC/C,yCAMsB;AAMtB,SAAS,gCAAgC,CAAC,mBAAmC;IAC3E,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,MAAM,CACrD,CAAC,QAAQ,EAAE,EAAE,CAA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;YACT,MAAM,KAAK,GAAG,sDAAsD,SAAS,GAAG,CAAC;YACjF,iEAAiE;YACjE,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,EAAE;gBACjD,OAAO;aACR;YACD,IAAA,oBAAc,EAAC,KAAK,EAAE,GAAG,EAAE,CACzB,QAAQ,CAAC;gBACP,KAAK;gBACL,OAAO,EAAE,IAAA,wBAAkB,EAAC,KAAK,CAAC;aACnC,CAAC,CACH,CAAC;SACH;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IAEzC,OAAO;QACL,8BAA8B,EAAE,4BAA4B,KAAK,SAAS;QAC1E,4BAA4B,EAAE,CAAC,4BAA4B;YACzD,wBAAwB,CAAqC;QAC/D,SAAS;QACT,KAAK;KACN,CAAC;AACJ,CAAC;AAtCD,+CAsCC"}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useOracleDropdownItemState = exports.FEATURE_ID = void 0;
4
- const NewFeatureSupportLevelContext_1 = require("../../common/components/newFeatureSupportLevels/NewFeatureSupportLevelContext");
5
- const featureStateUtils_1 = require("../components/featureSupportLevels/featureStateUtils");
6
- exports.FEATURE_ID = 'EXTERNAL_PLATFORM_OCI';
7
- const useOracleDropdownItemState = (hasExistentCluster, featureSupportLevelData, cpuArchitecture) => {
8
- const featureSupportLevelContext = (0, NewFeatureSupportLevelContext_1.useNewFeatureSupportLevel)();
9
- if (!featureSupportLevelData) {
10
- return null;
11
- }
12
- const isSupported = featureSupportLevelData
13
- ? featureSupportLevelContext.isFeatureSupported(exports.FEATURE_ID, featureSupportLevelData)
14
- : false;
15
- let disabledReason;
16
- if (hasExistentCluster) {
17
- disabledReason = featureStateUtils_1.clusterExistsReason;
18
- }
19
- else if (!isSupported) {
20
- disabledReason = featureSupportLevelContext.getFeatureDisabledReason(exports.FEATURE_ID, undefined, cpuArchitecture);
21
- }
22
- return {
23
- featureId: exports.FEATURE_ID,
24
- isSupported,
25
- isDisabled: disabledReason !== undefined,
26
- disabledReason,
27
- };
28
- };
29
- exports.useOracleDropdownItemState = useOracleDropdownItemState;
30
- //# sourceMappingURL=useOracleDropdownItemState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useOracleDropdownItemState.js","sourceRoot":"","sources":["../../../../lib/ocm/hooks/useOracleDropdownItemState.ts"],"names":[],"mappings":";;;AACA,iIAA0H;AAC1H,4FAAoH;AACvG,QAAA,UAAU,GAAG,uBAAuB,CAAC;AAS3C,MAAM,0BAA0B,GAAG,CACxC,kBAA2B,EAC3B,uBAAyD,EACzD,eAAuB,EACS,EAAE;IAClC,MAAM,0BAA0B,GAAG,IAAA,yDAAyB,GAAE,CAAC;IAC/D,IAAI,CAAC,uBAAuB,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IAED,MAAM,WAAW,GAAG,uBAAuB;QACzC,CAAC,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,kBAAU,EAAE,uBAAuB,CAAC;QACpF,CAAC,CAAC,KAAK,CAAC;IAEV,IAAI,cAAkC,CAAC;IAEvC,IAAI,kBAAkB,EAAE;QACtB,cAAc,GAAG,uCAAqB,CAAC;KACxC;SAAM,IAAI,CAAC,WAAW,EAAE;QACvB,cAAc,GAAG,0BAA0B,CAAC,wBAAwB,CAClE,kBAAU,EACV,SAAS,EACT,eAAe,CAChB,CAAC;KACH;IAED,OAAO;QACL,SAAS,EAAE,kBAAU;QACrB,WAAW;QACX,UAAU,EAAE,cAAc,KAAK,SAAS;QACxC,cAAc;KACf,CAAC;AACJ,CAAC,CAAC;AAhCW,QAAA,0BAA0B,8BAgCrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"clustersSlice.js","sourceRoot":"","sources":["../../../../../lib/ocm/reducers/clusters/clustersSlice.ts"],"names":[],"mappings":";;;;AAAA,8CAO0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AAO,KAAK,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;YAC/D,uCAAY,KAAK,KAAE,OAAO,IAAG;QAC/B,CAAC,CAAC;aACD,OAAO,CAAC,0BAAkB,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,iCACrD,KAAK,KACR,IAAI,EAAE,CAAC,GAAI,MAAM,CAAC,OAAqB,CAAC,EACxC,OAAO,EAAE,MAAM,IACf,CAAC;aACF,OAAO,CAAC,0BAAkB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,iCAC5C,KAAK,KACR,OAAO,EAAE,aAAa,IACtB,CAAC,CAAC;IACR,CAAC;CACF,CAAC,CAAC;AAEY,qBAAa,GAAK,qBAAa,CAAC,OAAO,eAAC;AACvD,kBAAe,qBAAa,CAAC,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"currentClusterSlice.js","sourceRoot":"","sources":["../../../../../lib/ocm/reducers/clusters/currentClusterSlice.ts"],"names":[],"mappings":";;;;;AAAA,kFAA+C;AAC/C,sEAAmC;AAEnC,8CAO0B;AAC1B,4CAA4F;AAC5F,mCAKmB;AACnB,6CAAiD;AAmBpC,QAAA,iBAAiB,GAAG,IAAA,0BAAgB,EAM/C,kCAAkC,EAAE,CAAO,SAAS,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE;IAC7E,IAAI;QACF,MAAM,OAAO,GAAG,MAAM,0BAAe,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACrD,OAAO,OAAO,CAAC;KAChB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,IAAA,oBAAc,EAAC,CAAC,EAAE,GAAG,EAAE;YAC5B,OAAO,eAAe,CAAC;gBACrB,IAAI,EAAE,IAAA,qBAAe,EAAC,CAAuB,CAAC;gBAC9C,OAAO,EAAE,IAAA,wBAAkB,EAAC,CAAC,CAAC;aAC/B,CAAC,CAAC;QACL,C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CAAC,IAAI,EAAE;gBAC3D,4GAA4G;gBAC5G,+EAA+E;gBAC/E,uCACK,KAAK,KACR,OAAO,EAAE,wBAAe,CAAC,MAAM,IAC/B;aACH;YACD,uCACK,KAAK,KACR,OAAO,EAAE,wBAAe,CAAC,aAAa,EACtC,WAAW,EAAE,KAAK,IAClB;QACJ,CAAC,CAAC,CAAC;IACP,CAAC;CACF,CAAC,CAAC;AAEU,KAST,2BAAmB,CAAC,OAAO,EAR7B,qBAAa,qBACb,yBAAiB,yBACjB,kBAAU,kBACV,4BAAoB,4BACpB,oBAAY,oBACZ,mBAAW,mBACX,yBAAiB,yBACjB,gCAAwB,+BACM;AAChC,kBAAe,2BAAmB,CAAC,OAAO,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./clustersSlice"), exports);
5
- tslib_1.__exportStar(require("./currentClusterSlice"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/ocm/reducers/clusters/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,gEAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"clusters.js","sourceRoot":"","sources":["../../../../lib/ocm/selectors/clusters.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,8CAAkD;AAElD,uDAAwC;AAGxC,yCAUsB;AACtB,8FAA2F;AAC3F,sCAA0C;AAI1C,MAAM,cAAc,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;AACjE,MAAM,eAAe,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC;AAExD,QAAA,qBAAqB,GAAG,IAAA,wBAAc,EACjD,CAAC,cAAc,EAAE,eAAe,CAAC,EACjC,CAAC,Q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Ac,EAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,EAAE,CAC5E,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAC5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"currentCluster.js","sourceRoot":"","sources":["../../../../lib/ocm/selectors/currentCluster.ts"],"names":[],"mappings":";;;AAGO,MAAM,yBAAyB,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;AAAvE,QAAA,yBAAyB,6BAA8C;AAC7E,MAAM,oBAAoB,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC;AAAvE,QAAA,oBAAoB,wBAAmD;AAC7E,MAAM,2BAA2B,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;AAAjF,QAAA,2BAA2B,+BAAsD;AACvF,MAAM,yBAAyB,GAAG,CAAC,KAAgB,EAAE,EAAE,WAC5D,OAAA,CAAA,MAAA,KAAK,CAAC,cAAc,CAAC,IAAI,0CAAE,oBAAoB,MAAK,MAAM,CAAA,EAAA,CAAC;AADhD,QAAA,yBAAyB,6BACuB;AACtD,MAAM,oCAAoC,GAAG,CAClD,KAAgB,EAC0B,EAAE;IAC5C,IAAI,KAAK,CAAC,cAAc,EAAE;QACxB,OAAO,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;KACzC;IACD,oFAAoF;IACpF,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AACjC,CAAC,CAAC;AARW,QAAA,oCAAoC,wCAQ/C"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./currentCluster"), exports);
5
- tslib_1.__exportStar(require("./clusters"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/ocm/selectors/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,qDAA2B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infraEnvs/selectors.ts"],"names":[],"mappings":";;;AAAA,8CAAkD;AAI3C,MAAM,oBAAoB,GAAG,CAAC,KAAgB,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;AAA7D,QAAA,oBAAoB,wBAAyC;AAC7D,QAAA,+BAA+B,GAAG,IAAA,wBAAc,EAC3D,CAAC,4BAAoB,EAAE,CAAC,CAAY,EAAE,eAAgC,EAAE,EAAE,CAAC,eAAe,CAAC,EAC3F,CAAC,SAAS,EAAE,eAAe,EAAE,EAAE,CAC7B,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,eAAe,KAAK,eAAe,CAAC,CAC7E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"slice.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infraEnvs/slice.ts"],"names":[],"mappings":";;;AACA,8CAA+C;AAE/C,wFAAwF;AACxF,kCAAkC;AAClC,MAAM,cAAc,GAAG,IAAA,qBAAW,EAAC;IACjC,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE,EAAgB;IAC9B,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC;AAC1C,QAAA,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"thunks.js","sourceRoot":"","sources":["../../../../../../lib/ocm/store/slices/infraEnvs/thunks.ts"],"names":[],"mappings":";;;;AAAA,8CAAoD;AAEpD,iDAAsD;AAEtD,2CAA8D;AAQjD,QAAA,wBAAwB,GAAG,IAAA,0BAAgB,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CAAC,CAAC;IACzE,wGAAwG;IACxG,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAA,CACF,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,0BAAgB,EACzC,uBAAuB,EACvB,CAAO,eAAgC,EAAE,QAAQ,EAAE,EAAE;IACnD,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,EAAe,CAAC;IAC/C,kFAAkF;IAClF,mFAAmF;IACnF,0BAA0B;IAC1B,MAAM,QAAQ,GAAG,IAAA,2CAA+B,EAAC,KAAK,EAAE,eAAe,CAAa,CAAC;IACrF,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,MAAM,mBAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3E,OAAO,YAAY,CAAC;AACtB,CAAC,CAAA,CACF,CAAC"}
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { Provider } from 'react-redux';
3
- import { Switch, Route, Redirect } from 'react-router-dom';
4
- import { Clusters, ClusterPage, NewClusterPage } from './clusters';
5
- import { store } from '../store';
6
- import { FeatureGateContextProvider, FeatureListType } from '../../common';
7
- import { routeBasePath } from '../config';
8
- import { AssistedUILibVersion } from './ui';
9
-
10
- export const AssistedUiRouter: React.FC<{ allEnabledFeatures: FeatureListType }> = ({
11
- allEnabledFeatures,
12
- }) => (
13
- <Provider store={store}>
14
- <Router features={allEnabledFeatures} />
15
- </Provider>
16
- );
17
-
18
- export const Router: React.FC<{ features: FeatureListType }> = ({ features, children }) => (
19
- <FeatureGateContextProvider features={features}>
20
- <AssistedUILibVersion />
21
- <Switch>
22
- <Route path={`${routeBasePath}/clusters/~new`} component={NewClusterPage} />
23
- <Route path={`${routeBasePath}/clusters/:clusterId`} component={ClusterPage} />
24
- <Route path={`${routeBasePath}/clusters`} component={Clusters} />
25
- {children}
26
- <Redirect to={`${routeBasePath}/clusters`} />
27
- </Switch>
28
- </FeatureGateContextProvider>
29
- );
@@ -1,70 +0,0 @@
1
- import React from 'react';
2
- import { AxiosError } from 'axios';
3
- import useSWR from 'swr';
4
- import { getApiErrorMessage, handleApiError } from '../api';
5
- import { ClustersAPI } from '../services/apis';
6
- import {
7
- POLLING_INTERVAL,
8
- NonPlatformIntegrations,
9
- isClusterPlatformTypeVM,
10
- useAlerts,
11
- SupportedPlatformType,
12
- } from '../../common';
13
- import { APIErrorMixin } from '../../common/api/utils';
14
- import { PlatformType } from '@openshift-assisted/types/assisted-installer-service';
15
-
16
- export type SupportedPlatformIntegrationType = 'no-active-integrations' | SupportedPlatformType;
17
-
18
- function getIntegrablePlatformIntegration(allClusterPlatforms: PlatformType[]) {
19
- const integrationPlatforms = allClusterPlatforms.filter(
20
- (platform) => !NonPlatformIntegrations.includes(platform),
21
- );
22
- const uniqueIntegrationPlatforms = Array.from(new Set(integrationPlatforms));
23
- if (integrationPlatforms.length === 1) {
24
- const [exclusivelyAvailablePlatform] = uniqueIntegrationPlatforms;
25
- return isClusterPlatformTypeVM({ platform: { type: exclusivelyAvailablePlatform } })
26
- ? exclusivelyAvailablePlatform
27
- : undefined;
28
- }
29
- return undefined;
30
- }
31
-
32
- export default function useClusterSupportedPlatforms(clusterId: string) {
33
- const { addAlert, alerts } = useAlerts();
34
- const url = ClustersAPI.makeSupportedPlatformsBaseURI(clusterId);
35
- const fetcher = () => ClustersAPI.getSupportedPlatforms(clusterId).then((res) => res.data);
36
- const { data, error } = useSWR<PlatformType[], AxiosError<APIErrorMixin>>(url, fetcher, {
37
- refreshInterval: POLLING_INTERVAL,
38
- errorRetryCount: 0,
39
- revalidateOnFocus: false,
40
- });
41
-
42
- const isLoading = !error && !data;
43
-
44
- const supportedPlatformIntegration =
45
- isLoading || !data ? undefined : getIntegrablePlatformIntegration(data);
46
-
47
- React.useEffect(() => {
48
- if (error) {
49
- const title = `Failed to retrieve supported platforms (clusterId: ${clusterId})`;
50
- //TODO(brotman) add handling of existing errors to alerts context
51
- if (alerts.find((alert) => alert.title === title)) {
52
- return;
53
- }
54
- handleApiError(error, () =>
55
- addAlert({
56
- title,
57
- message: getApiErrorMessage(error),
58
- }),
59
- );
60
- }
61
- }, [error, addAlert, clusterId, alerts]);
62
-
63
- return {
64
- isPlatformIntegrationSupported: supportedPlatformIntegration !== undefined,
65
- supportedPlatformIntegration: (supportedPlatformIntegration ||
66
- 'no-active-integrations') as SupportedPlatformIntegrationType,
67
- isLoading,
68
- error,
69
- };
70
- }
@@ -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';