@openshift-assisted/ui-lib 5.0.1-cim → 5.0.2-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 (293) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +2 -2
  5. package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -1
  6. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  7. package/build/@types/cim/components/ClusterDeployment/types.d.ts +1 -2
  8. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  9. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +3 -2
  10. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  11. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
  12. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.d.ts.map +1 -1
  13. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts +6 -0
  14. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts.map +1 -0
  15. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts +4 -2
  16. package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
  17. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts +2 -1
  18. package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts.map +1 -1
  19. package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
  20. package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
  21. package/build/@types/cim/components/helpers/status.d.ts +5 -7
  22. package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
  23. package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
  24. package/build/@types/cim/components/helpers/versions.d.ts +3 -2
  25. package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
  26. package/build/@types/cim/components/index.d.ts +0 -1
  27. package/build/@types/cim/components/index.d.ts.map +1 -1
  28. package/build/@types/cim/components/modals/CimConfiguration/CimStorageMissingAlert.d.ts.map +1 -1
  29. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts +2 -3
  30. package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
  31. package/build/@types/cim/hooks/index.d.ts +1 -0
  32. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  33. package/build/@types/cim/hooks/useStorageClasses.d.ts +4 -0
  34. package/build/@types/cim/hooks/useStorageClasses.d.ts.map +1 -0
  35. package/build/@types/cim/index.d.ts +0 -1
  36. package/build/@types/cim/index.d.ts.map +1 -1
  37. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +2 -1
  38. package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
  39. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +7 -1
  40. package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
  41. package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
  42. package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
  43. package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
  44. package/build/@types/common/components/index.d.ts +1 -1
  45. package/build/@types/common/components/index.d.ts.map +1 -1
  46. package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
  47. package/build/@types/common/components/ui/formik/PullSecretField.d.ts +1 -0
  48. package/build/@types/common/components/ui/formik/PullSecretField.d.ts.map +1 -1
  49. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +2 -1
  50. package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -1
  51. package/build/@types/common/config/docs_links.d.ts.map +1 -1
  52. package/build/@types/common/types/clusters.d.ts +1 -1
  53. package/build/@types/common/types/clusters.d.ts.map +1 -1
  54. package/build/@types/common/utils.d.ts.map +1 -1
  55. package/build/@types/ocm/components/AddHosts/types.d.ts +4 -3
  56. package/build/@types/ocm/components/AddHosts/types.d.ts.map +1 -1
  57. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +10 -2
  58. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
  59. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -0
  60. package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
  61. package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
  62. package/build/@types/ocm/components/clusterWizard/NewClusterWizard.d.ts.map +1 -1
  63. package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
  64. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts +1 -0
  65. package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
  66. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts +4 -0
  67. package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -0
  68. package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
  69. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +1 -1
  70. package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
  71. package/build/@types/ocm/components/featureSupportLevels/index.d.ts +0 -1
  72. package/build/@types/ocm/components/featureSupportLevels/index.d.ts.map +1 -1
  73. package/build/@types/ocm/services/ClustersService.d.ts +2 -1
  74. package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
  75. package/build/@types/ocm/services/InfraEnvsService.d.ts +1 -1
  76. package/build/@types/ocm/services/NewFeatureSupportLevelsService.d.ts +1 -1
  77. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +1 -1
  78. package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
  79. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +13 -15
  80. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  81. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js +1 -1
  82. package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js.map +1 -1
  83. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js +3 -2
  84. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js.map +1 -1
  85. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +4 -5
  86. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
  87. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js +2 -2
  88. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -1
  89. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +2 -5
  90. package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
  91. package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -1
  92. package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -2
  93. package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
  94. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +1 -1
  95. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
  96. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js +2 -2
  97. package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
  98. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +2 -2
  99. package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
  100. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +4 -4
  101. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  102. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +21 -7
  103. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  104. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +3 -1
  105. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
  106. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +13 -3
  107. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
  108. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js +52 -0
  109. package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js.map +1 -0
  110. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +3 -3
  111. package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
  112. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
  113. package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
  114. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -2
  115. package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
  116. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +1 -1
  117. package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
  118. package/build/cjs/cim/components/helpers/status.js +4 -4
  119. package/build/cjs/cim/components/helpers/status.js.map +1 -1
  120. package/build/cjs/cim/components/helpers/toAssisted.js +2 -12
  121. package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
  122. package/build/cjs/cim/components/helpers/versions.js +6 -6
  123. package/build/cjs/cim/components/helpers/versions.js.map +1 -1
  124. package/build/cjs/cim/components/helpers/versions.test.js +19 -18
  125. package/build/cjs/cim/components/helpers/versions.test.js.map +1 -1
  126. package/build/cjs/cim/components/index.js +0 -1
  127. package/build/cjs/cim/components/index.js.map +1 -1
  128. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js +1 -1
  129. package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
  130. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
  131. package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
  132. package/build/cjs/cim/hooks/index.js +1 -0
  133. package/build/cjs/cim/hooks/index.js.map +1 -1
  134. package/build/cjs/cim/hooks/useStorageClasses.js +13 -0
  135. package/build/cjs/cim/hooks/useStorageClasses.js.map +1 -0
  136. package/build/cjs/cim/index.js +0 -1
  137. package/build/cjs/cim/index.js.map +1 -1
  138. package/build/cjs/common/api/assisted-service/ClustersAPI.js +3 -0
  139. package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
  140. package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
  141. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +2 -4
  142. package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
  143. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +1 -1
  144. package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
  145. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +1 -1
  146. package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
  147. package/build/cjs/common/components/clusterDetail/ConsoleModal.js +1 -1
  148. package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
  149. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js +11 -4
  150. package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
  151. package/build/cjs/common/components/index.js +1 -1
  152. package/build/cjs/common/components/index.js.map +1 -1
  153. package/build/cjs/common/components/operators/operatorSpecs.js +0 -3
  154. package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
  155. package/build/cjs/common/components/ui/formik/PullSecretField.js +2 -2
  156. package/build/cjs/common/components/ui/formik/PullSecretField.js.map +1 -1
  157. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js +2 -1
  158. package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -1
  159. package/build/cjs/common/config/docs_links.js +5 -4
  160. package/build/cjs/common/config/docs_links.js.map +1 -1
  161. package/build/cjs/common/utils.js +3 -0
  162. package/build/cjs/common/utils.js.map +1 -1
  163. package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
  164. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
  165. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +1 -1
  166. package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
  167. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +1 -1
  168. package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
  169. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +1 -1
  170. package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
  171. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
  172. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +9 -0
  173. package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
  174. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +3 -0
  175. package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
  176. package/build/cjs/ocm/components/clusterWizard/constants.js +1 -0
  177. package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
  178. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +16 -22
  179. package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
  180. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +102 -0
  181. package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -0
  182. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +7 -5
  183. package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
  184. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +3 -0
  185. package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
  186. package/build/cjs/ocm/components/featureSupportLevels/index.js +0 -1
  187. package/build/cjs/ocm/components/featureSupportLevels/index.js.map +1 -1
  188. package/build/cjs/ocm/services/ClustersService.js +3 -0
  189. package/build/cjs/ocm/services/ClustersService.js.map +1 -1
  190. package/lib/cim/components/Agent/AgentsSelectionTable.tsx +1 -1
  191. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +91 -99
  192. package/lib/cim/components/ClusterDeployment/ClusterInstallationError.tsx +1 -1
  193. package/lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx +4 -3
  194. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +6 -6
  195. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx +2 -2
  196. package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +2 -3
  197. package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +3 -2
  198. package/lib/cim/components/ClusterDeployment/constants.ts +2 -2
  199. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +1 -1
  200. package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx +2 -2
  201. package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +2 -2
  202. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +11 -11
  203. package/lib/cim/components/ClusterDeployment/types.ts +2 -3
  204. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +30 -19
  205. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +4 -0
  206. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +15 -2
  207. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.tsx +70 -0
  208. package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +10 -2
  209. package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +4 -2
  210. package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +9 -8
  211. package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +0 -2
  212. package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +1 -1
  213. package/lib/cim/components/helpers/status.ts +12 -13
  214. package/lib/cim/components/helpers/toAssisted.ts +3 -13
  215. package/lib/cim/components/helpers/versions.test.ts +21 -18
  216. package/lib/cim/components/helpers/versions.ts +7 -3
  217. package/lib/cim/components/index.ts +0 -1
  218. package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +4 -1
  219. package/lib/cim/components/modals/MassDeleteAgentModal.tsx +3 -14
  220. package/lib/cim/hooks/index.tsx +1 -0
  221. package/lib/cim/hooks/useStorageClasses.tsx +15 -0
  222. package/lib/cim/index.ts +0 -1
  223. package/lib/common/api/assisted-service/ClustersAPI.ts +8 -0
  224. package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +9 -4
  225. package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +5 -7
  226. package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +3 -1
  227. package/lib/common/components/clusterConfiguration/DownloadIso.tsx +1 -1
  228. package/lib/common/components/clusterDetail/ConsoleModal.tsx +1 -1
  229. package/lib/common/components/clusterWizard/validationsInfoUtils.ts +16 -3
  230. package/lib/common/components/index.ts +1 -1
  231. package/lib/common/components/operators/operatorSpecs.tsx +0 -16
  232. package/lib/common/components/ui/formik/PullSecretField.tsx +5 -2
  233. package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +3 -0
  234. package/lib/common/config/docs_links.ts +5 -4
  235. package/lib/common/types/clusters.ts +1 -1
  236. package/lib/common/utils.ts +3 -0
  237. package/lib/ocm/components/AddHosts/types.ts +6 -3
  238. package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +2 -2
  239. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +2 -2
  240. package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +1 -1
  241. package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +1 -1
  242. package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +1 -1
  243. package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -0
  244. package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +9 -0
  245. package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +3 -0
  246. package/lib/ocm/components/clusterWizard/constants.ts +1 -0
  247. package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +31 -52
  248. package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +173 -0
  249. package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +9 -7
  250. package/lib/ocm/components/clusterWizard/wizardTransition.ts +4 -0
  251. package/lib/ocm/components/featureSupportLevels/index.ts +0 -1
  252. package/lib/ocm/services/ClustersService.ts +5 -0
  253. package/package.json +5 -5
  254. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts +0 -9
  255. package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +0 -1
  256. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts +0 -6
  257. package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts.map +0 -1
  258. package/build/@types/cim/components/featureSupportLevels/index.d.ts +0 -2
  259. package/build/@types/cim/components/featureSupportLevels/index.d.ts.map +0 -1
  260. package/build/@types/cim/config/constants.d.ts +0 -16
  261. package/build/@types/cim/config/constants.d.ts.map +0 -1
  262. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts +0 -9
  263. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts.map +0 -1
  264. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts +0 -22
  265. package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts.map +0 -1
  266. package/build/@types/common/components/featureSupportLevels/index.d.ts +0 -3
  267. package/build/@types/common/components/featureSupportLevels/index.d.ts.map +0 -1
  268. package/build/@types/common/components/featureSupportLevels/types.d.ts +0 -8
  269. package/build/@types/common/components/featureSupportLevels/types.d.ts.map +0 -1
  270. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +0 -82
  271. package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +0 -1
  272. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js +0 -45
  273. package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js.map +0 -1
  274. package/build/cjs/cim/components/featureSupportLevels/index.js +0 -7
  275. package/build/cjs/cim/components/featureSupportLevels/index.js.map +0 -1
  276. package/build/cjs/cim/config/constants.js +0 -272
  277. package/build/cjs/cim/config/constants.js.map +0 -1
  278. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js +0 -26
  279. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js.map +0 -1
  280. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js +0 -21
  281. package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js.map +0 -1
  282. package/build/cjs/common/components/featureSupportLevels/index.js +0 -8
  283. package/build/cjs/common/components/featureSupportLevels/index.js.map +0 -1
  284. package/build/cjs/common/components/featureSupportLevels/types.js +0 -3
  285. package/build/cjs/common/components/featureSupportLevels/types.js.map +0 -1
  286. package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +0 -136
  287. package/lib/cim/components/featureSupportLevels/featureStateUtils.tsx +0 -61
  288. package/lib/cim/components/featureSupportLevels/index.ts +0 -1
  289. package/lib/cim/config/constants.ts +0 -285
  290. package/lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx +0 -37
  291. package/lib/common/components/featureSupportLevels/FeatureSupportLevelContext.tsx +0 -49
  292. package/lib/common/components/featureSupportLevels/index.ts +0 -2
  293. package/lib/common/components/featureSupportLevels/types.ts +0 -12
@@ -1,285 +0,0 @@
1
- import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
2
- import { FeatureId } from '../../common';
3
-
4
- type FeatureConfig = {
5
- featureId: FeatureId;
6
- supportLevel: SupportLevel;
7
- };
8
-
9
- type FeaturesConfig = {
10
- openshiftVersion: string;
11
- features: FeatureConfig[];
12
- };
13
-
14
- type FeatureSupportLevelsConfig = {
15
- supportLevels: FeaturesConfig[];
16
- };
17
-
18
- // source: https://github.com/openshift/assisted-service/blob/master/internal/featuresupport/support_levels_list.go
19
- export const featureSupportLevelsACM: FeatureSupportLevelsConfig = {
20
- supportLevels: [
21
- {
22
- features: [
23
- {
24
- featureId: 'VIP_AUTO_ALLOC',
25
- supportLevel: 'dev-preview',
26
- },
27
- {
28
- featureId: 'SNO',
29
- supportLevel: 'unsupported',
30
- },
31
- {
32
- featureId: 'ARM64_ARCHITECTURE',
33
- supportLevel: 'unsupported',
34
- },
35
- {
36
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
37
- supportLevel: 'unsupported',
38
- },
39
- {
40
- featureId: 'SINGLE_NODE_EXPANSION',
41
- supportLevel: 'unsupported',
42
- },
43
- {
44
- featureId: 'LVM',
45
- supportLevel: 'unsupported',
46
- },
47
- {
48
- featureId: 'DUAL_STACK_NETWORKING',
49
- supportLevel: 'unsupported',
50
- },
51
- {
52
- featureId: 'MULTIARCH_RELEASE_IMAGE',
53
- supportLevel: 'unsupported',
54
- },
55
- {
56
- featureId: 'NUTANIX_INTEGRATION',
57
- supportLevel: 'unsupported',
58
- },
59
- ],
60
- openshiftVersion: '4.6',
61
- },
62
- {
63
- features: [
64
- {
65
- featureId: 'DUAL_STACK_NETWORKING',
66
- supportLevel: 'unsupported',
67
- },
68
- {
69
- featureId: 'MULTIARCH_RELEASE_IMAGE',
70
- supportLevel: 'unsupported',
71
- },
72
- {
73
- featureId: 'NUTANIX_INTEGRATION',
74
- supportLevel: 'unsupported',
75
- },
76
- ],
77
- openshiftVersion: '4.7',
78
- },
79
- {
80
- features: [
81
- {
82
- featureId: 'DUAL_STACK_NETWORKING',
83
- supportLevel: 'supported',
84
- },
85
- {
86
- featureId: 'VIP_AUTO_ALLOC',
87
- supportLevel: 'dev-preview',
88
- },
89
- {
90
- featureId: 'SNO',
91
- supportLevel: 'dev-preview',
92
- },
93
- {
94
- featureId: 'ARM64_ARCHITECTURE',
95
- supportLevel: 'unsupported',
96
- },
97
- {
98
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
99
- supportLevel: 'unsupported',
100
- },
101
- {
102
- featureId: 'SINGLE_NODE_EXPANSION',
103
- supportLevel: 'unsupported',
104
- },
105
- {
106
- featureId: 'LVM',
107
- supportLevel: 'unsupported',
108
- },
109
- {
110
- featureId: 'MULTIARCH_RELEASE_IMAGE',
111
- supportLevel: 'unsupported',
112
- },
113
- {
114
- featureId: 'NUTANIX_INTEGRATION',
115
- supportLevel: 'unsupported',
116
- },
117
- ],
118
- openshiftVersion: '4.8',
119
- },
120
- {
121
- features: [
122
- {
123
- featureId: 'SNO',
124
- supportLevel: 'supported',
125
- },
126
- {
127
- featureId: 'DUAL_STACK_NETWORKING',
128
- supportLevel: 'supported',
129
- },
130
- {
131
- featureId: 'VIP_AUTO_ALLOC',
132
- supportLevel: 'dev-preview',
133
- },
134
- {
135
- featureId: 'ARM64_ARCHITECTURE',
136
- supportLevel: 'unsupported',
137
- },
138
- {
139
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
140
- supportLevel: 'unsupported',
141
- },
142
- {
143
- featureId: 'SINGLE_NODE_EXPANSION',
144
- supportLevel: 'unsupported',
145
- },
146
- {
147
- featureId: 'LVM',
148
- supportLevel: 'unsupported',
149
- },
150
- {
151
- featureId: 'MULTIARCH_RELEASE_IMAGE',
152
- supportLevel: 'unsupported',
153
- },
154
- {
155
- featureId: 'NUTANIX_INTEGRATION',
156
- supportLevel: 'unsupported',
157
- },
158
- ],
159
- openshiftVersion: '4.9',
160
- },
161
- {
162
- features: [
163
- {
164
- featureId: 'SNO',
165
- supportLevel: 'supported',
166
- },
167
- {
168
- featureId: 'ARM64_ARCHITECTURE',
169
- supportLevel: 'supported',
170
- },
171
- {
172
- featureId: 'DUAL_STACK_NETWORKING',
173
- supportLevel: 'supported',
174
- },
175
- {
176
- featureId: 'VIP_AUTO_ALLOC',
177
- supportLevel: 'dev-preview',
178
- },
179
- {
180
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
181
- supportLevel: 'unsupported',
182
- },
183
- {
184
- featureId: 'SINGLE_NODE_EXPANSION',
185
- supportLevel: 'unsupported',
186
- },
187
- {
188
- featureId: 'LVM',
189
- supportLevel: 'unsupported',
190
- },
191
- {
192
- featureId: 'MULTIARCH_RELEASE_IMAGE',
193
- supportLevel: 'unsupported',
194
- },
195
- {
196
- featureId: 'NUTANIX_INTEGRATION',
197
- supportLevel: 'unsupported',
198
- },
199
- ],
200
- openshiftVersion: '4.10',
201
- },
202
- {
203
- features: [
204
- {
205
- featureId: 'SNO',
206
- supportLevel: 'supported',
207
- },
208
- {
209
- featureId: 'ARM64_ARCHITECTURE',
210
- supportLevel: 'supported',
211
- },
212
- {
213
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
214
- supportLevel: 'supported',
215
- },
216
- {
217
- featureId: 'SINGLE_NODE_EXPANSION',
218
- supportLevel: 'supported',
219
- },
220
- {
221
- featureId: 'DUAL_STACK_NETWORKING',
222
- supportLevel: 'supported',
223
- },
224
- {
225
- featureId: 'MULTIARCH_RELEASE_IMAGE',
226
- supportLevel: 'tech-preview',
227
- },
228
- {
229
- featureId: 'VIP_AUTO_ALLOC',
230
- supportLevel: 'dev-preview',
231
- },
232
- {
233
- featureId: 'LVM',
234
- supportLevel: 'dev-preview',
235
- },
236
- {
237
- featureId: 'NUTANIX_INTEGRATION',
238
- supportLevel: 'dev-preview',
239
- },
240
- ],
241
- openshiftVersion: '4.11',
242
- },
243
- {
244
- features: [
245
- {
246
- featureId: 'SNO',
247
- supportLevel: 'supported',
248
- },
249
- {
250
- featureId: 'ARM64_ARCHITECTURE',
251
- supportLevel: 'supported',
252
- },
253
- {
254
- featureId: 'ARM64_ARCHITECTURE_WITH_CLUSTER_MANAGED_NETWORKING',
255
- supportLevel: 'supported',
256
- },
257
- {
258
- featureId: 'SINGLE_NODE_EXPANSION',
259
- supportLevel: 'supported',
260
- },
261
- {
262
- featureId: 'LVM',
263
- supportLevel: 'supported',
264
- },
265
- {
266
- featureId: 'DUAL_STACK_NETWORKING',
267
- supportLevel: 'supported',
268
- },
269
- {
270
- featureId: 'NUTANIX_INTEGRATION',
271
- supportLevel: 'supported',
272
- },
273
- {
274
- featureId: 'MULTIARCH_RELEASE_IMAGE',
275
- supportLevel: 'tech-preview',
276
- },
277
- {
278
- featureId: 'VIP_AUTO_ALLOC',
279
- supportLevel: 'dev-preview',
280
- },
281
- ],
282
- openshiftVersion: '4.12',
283
- },
284
- ],
285
- };
@@ -1,37 +0,0 @@
1
- import React from 'react';
2
- import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
3
- import { FeatureId, isPreviewSupportLevel } from '../../types';
4
- import { TechnologyPreview } from '../ui/TechnologyPreview';
5
- import { DeveloperPreview } from '../ui/DeveloperPreview';
6
- import { useFeatureSupportLevel } from './FeatureSupportLevelContext';
7
-
8
- export type SupportLevelBadgeProps = {
9
- featureId: FeatureId;
10
- openshiftVersion: string | undefined;
11
- };
12
-
13
- const FeatureSupportLevelBadge: React.FC<SupportLevelBadgeProps> = ({
14
- featureId,
15
- openshiftVersion,
16
- }) => {
17
- const featureSupportLevelData = useFeatureSupportLevel();
18
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
19
- const supportLevel: SupportLevel | undefined = React.useMemo(() => {
20
- if (!openshiftVersion) {
21
- return undefined;
22
- }
23
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
24
- return featureSupportLevelData.getFeatureSupportLevel(openshiftVersion, featureId);
25
- }, [openshiftVersion, featureId, featureSupportLevelData]);
26
- if (!isPreviewSupportLevel(supportLevel)) {
27
- return null;
28
- }
29
- const testId = `${featureId}-support-level`;
30
- return supportLevel === 'tech-preview' ? (
31
- <TechnologyPreview testId={testId} />
32
- ) : (
33
- <DeveloperPreview testId={testId} />
34
- );
35
- };
36
-
37
- export default FeatureSupportLevelBadge;
@@ -1,49 +0,0 @@
1
- import React from 'react';
2
- import { TFunction } from 'i18next';
3
-
4
- import { CpuArchitecture, FeatureId, FeatureIdToSupportLevel } from '../../types';
5
- import { useTranslation } from '../../hooks/use-translation-wrapper';
6
- import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
7
-
8
- export type ActiveFeatureConfiguration = {
9
- underlyingCpuArchitecture: CpuArchitecture;
10
- hasStaticIpNetworking: boolean;
11
- };
12
-
13
- export type FeatureSupportLevelData = {
14
- getVersionSupportLevelsMap(version: string): FeatureIdToSupportLevel | undefined;
15
- getFeatureSupportLevel(version: string, featureId: FeatureId): SupportLevel | undefined;
16
- isFeatureDisabled(version: string, featureId: FeatureId): boolean;
17
- getFeatureDisabledReason(
18
- version: string,
19
- featureId: FeatureId,
20
- t?: TFunction,
21
- ): string | undefined;
22
- isFeatureSupported(version: string, featureId: FeatureId): boolean;
23
- activeFeatureConfiguration?: ActiveFeatureConfiguration;
24
- };
25
-
26
- const FeatureSupportLevelContext = React.createContext<FeatureSupportLevelData | null>(null);
27
-
28
- export const FeatureSupportLevelContextProvider: React.FC<{
29
- children: React.ReactNode;
30
- value: FeatureSupportLevelData;
31
- }> = ({ value, children }) => {
32
- return (
33
- <FeatureSupportLevelContext.Provider value={value}>
34
- {children}
35
- </FeatureSupportLevelContext.Provider>
36
- );
37
- };
38
-
39
- export const useFeatureSupportLevel = () => {
40
- const context = React.useContext(FeatureSupportLevelContext);
41
-
42
- const { t } = useTranslation();
43
- if (!context) {
44
- throw new Error(
45
- t('ai:useFeatureSupportLevel must be used within FeatureSupportLevelContextProvider.'),
46
- );
47
- }
48
- return context;
49
- };
@@ -1,2 +0,0 @@
1
- export { default as FeatureSupportLevelBadge } from './FeatureSupportLevelBadge';
2
- export * from './FeatureSupportLevelContext';
@@ -1,12 +0,0 @@
1
- import {
2
- ArchitectureSupportLevelMap,
3
- NewFeatureSupportLevelMap,
4
- } from '../newFeatureSupportLevels/types';
5
-
6
- export interface ArchitecturesSupportsLevel {
7
- architectures: ArchitectureSupportLevelMap;
8
- }
9
-
10
- export interface FeaturesSupportsLevel {
11
- features: NewFeatureSupportLevelMap;
12
- }