@openshift-assisted/ui-lib 2.18.1-cim → 2.18.3-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 (99) hide show
  1. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts +1 -1
  2. package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
  3. package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
  4. package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts.map +1 -1
  5. package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts +5 -0
  6. package/build/@types/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.d.ts.map +1 -0
  7. package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
  8. package/build/@types/cim/components/ClusterDeployment/types.d.ts +0 -1
  9. package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
  10. package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
  11. package/build/@types/cim/components/helpers/clusterDeployment.d.ts.map +1 -1
  12. package/build/@types/cim/hooks/index.d.ts +1 -0
  13. package/build/@types/cim/hooks/index.d.ts.map +1 -1
  14. package/build/@types/cim/hooks/useAgents.d.ts +4 -0
  15. package/build/@types/cim/hooks/useAgents.d.ts.map +1 -0
  16. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +1 -1
  17. package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
  18. package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts +6 -0
  19. package/build/@types/common/components/clusterWizard/customManifests/CustomManifestsAlert.d.ts.map +1 -0
  20. package/build/@types/common/components/clusterWizard/customManifests/index.d.ts +2 -0
  21. package/build/@types/common/components/clusterWizard/customManifests/index.d.ts.map +1 -0
  22. package/build/@types/common/components/clusterWizard/index.d.ts +2 -0
  23. package/build/@types/common/components/clusterWizard/index.d.ts.map +1 -1
  24. package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts +3 -0
  25. package/build/@types/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.d.ts.map +1 -0
  26. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +1 -0
  27. package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
  28. package/build/@types/common/types/networkType.d.ts +2 -1
  29. package/build/@types/common/types/networkType.d.ts.map +1 -1
  30. package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
  31. package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.d.ts.map +1 -1
  32. package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
  33. package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts +2 -1
  34. package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +1 -1
  35. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +9 -1
  36. package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
  37. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +2 -2
  38. package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
  39. package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js +24 -23
  40. package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -1
  41. package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js +35 -0
  42. package/build/cjs/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.js.map +1 -0
  43. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +4 -4
  44. package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
  45. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +5 -1
  46. package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
  47. package/build/cjs/cim/components/helpers/clusterDeployment.js +14 -10
  48. package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
  49. package/build/cjs/cim/hooks/index.js +1 -0
  50. package/build/cjs/cim/hooks/index.js.map +1 -1
  51. package/build/cjs/cim/hooks/useAgents.js +13 -0
  52. package/build/cjs/cim/hooks/useAgents.js.map +1 -0
  53. package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js +32 -0
  54. package/build/cjs/common/components/clusterWizard/customManifests/CustomManifestsAlert.js.map +1 -0
  55. package/build/cjs/common/components/clusterWizard/customManifests/index.js +5 -0
  56. package/build/cjs/common/components/clusterWizard/customManifests/index.js.map +1 -0
  57. package/build/cjs/common/components/clusterWizard/index.js +2 -0
  58. package/build/cjs/common/components/clusterWizard/index.js.map +1 -1
  59. package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js +20 -0
  60. package/build/cjs/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.js.map +1 -0
  61. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +3 -4
  62. package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
  63. package/build/cjs/common/types/networkType.js +9 -8
  64. package/build/cjs/common/types/networkType.js.map +1 -1
  65. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +1 -20
  66. package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
  67. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js +6 -9
  68. package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js.map +1 -1
  69. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +3 -2
  70. package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
  71. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +3 -3
  72. package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
  73. package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +10 -2
  74. package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +4 -3
  75. package/lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx +18 -2
  76. package/lib/cim/components/ClusterDeployment/networking/NetworkTypeDropdown.tsx +81 -0
  77. package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +18 -14
  78. package/lib/cim/components/ClusterDeployment/types.ts +0 -1
  79. package/lib/cim/components/ClusterDeployment/wizardTransition.ts +5 -1
  80. package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
  81. package/lib/cim/hooks/index.tsx +1 -0
  82. package/lib/cim/hooks/useAgents.tsx +15 -0
  83. package/lib/cim/types/k8s/agent-cluster-install.ts +1 -1
  84. package/lib/common/components/clusterWizard/customManifests/CustomManifestsAlert.tsx +39 -0
  85. package/lib/common/components/clusterWizard/customManifests/index.tsx +1 -0
  86. package/lib/common/components/clusterWizard/index.ts +2 -0
  87. package/lib/common/components/clusterWizard/networkingSteps/ThirdPartyCNIBanner.tsx +28 -0
  88. package/lib/common/components/clusterWizard/networkingSteps/index.ts +1 -0
  89. package/lib/common/types/networkType.ts +9 -8
  90. package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +10 -45
  91. package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.tsx +7 -24
  92. package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +9 -3
  93. package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +7 -3
  94. package/package.json +3 -3
  95. package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts +0 -7
  96. package/build/@types/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.d.ts.map +0 -1
  97. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js +0 -33
  98. package/build/cjs/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.js.map +0 -1
  99. package/lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx +0 -74
@@ -18,14 +18,18 @@ import { ClusterFeatureSupportLevelsDetailItem } from '../featureSupportLevels';
18
18
  import OpenShiftVersionDetail from './OpenShiftVersionDetail';
19
19
  import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
20
20
  import { Cluster, DiskEncryption } from '@openshift-assisted/types/assisted-installer-service';
21
+ import { TFunction } from 'i18next';
21
22
 
22
23
  type ClusterPropertiesProps = {
23
24
  cluster: Cluster;
24
25
  externalMode?: boolean;
25
26
  };
26
27
 
27
- export const getNetworkType = (clusterNetworkType: Cluster['networkType']): string => {
28
- return NETWORK_TYPE_LABELS[clusterNetworkType || ''];
28
+ export const getNetworkType = (
29
+ clusterNetworkType: Cluster['networkType'],
30
+ t: TFunction,
31
+ ): string => {
32
+ return NETWORK_TYPE_LABELS(t)[clusterNetworkType || ''];
29
33
  };
30
34
 
31
35
  export const getManagementType = ({ userManagedNetworking }: Cluster): string => {
@@ -111,7 +115,7 @@ const ClusterProperties = ({ cluster, externalMode = false }: ClusterPropertiesP
111
115
  />
112
116
  <DetailItem
113
117
  title="Networking Type"
114
- value={getNetworkType(cluster.networkType)}
118
+ value={getNetworkType(cluster.networkType, t)}
115
119
  testId="networking-type"
116
120
  />
117
121
  </DetailList>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@openshift-assisted/locales": "2.18.1-cim",
4
- "@openshift-assisted/types": "2.18.1-cim",
3
+ "@openshift-assisted/locales": "2.18.3-cim",
4
+ "@openshift-assisted/types": "2.18.3-cim",
5
5
  "@openshift-console/dynamic-plugin-sdk": "^4.19.1",
6
6
  "@patternfly/patternfly": "6.4.0",
7
7
  "@patternfly/react-code-editor": "6.4.1",
@@ -136,5 +136,5 @@
136
136
  ]
137
137
  }
138
138
  },
139
- "version": "2.18.1-cim"
139
+ "version": "2.18.3-cim"
140
140
  }
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- export interface NetworkTypeControlGroupProps {
3
- isDisabled?: boolean;
4
- isSDNSelectable: boolean;
5
- }
6
- export declare const NetworkTypeControlGroup: ({ isDisabled, isSDNSelectable, }: NetworkTypeControlGroupProps) => React.JSX.Element;
7
- //# sourceMappingURL=NetworkTypeControlGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkTypeControlGroup.d.ts","sourceRoot":"","sources":["../../../../../../lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,uBAAuB,qCAGjC,4BAA4B,sBAwD9B,CAAC"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NetworkTypeControlGroup = void 0;
4
- const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importDefault(require("react"));
6
- const react_core_1 = require("@patternfly/react-core");
7
- const formik_1 = require("../../ui/formik");
8
- const ui_1 = require("../../../components/ui");
9
- const networkType_1 = require("../../../types/networkType");
10
- const use_translation_wrapper_1 = require("../../../hooks/use-translation-wrapper");
11
- const GROUP_NAME = 'networkType';
12
- const NetworkTypeControlGroup = ({ isDisabled = false, isSDNSelectable, }) => {
13
- const { t } = (0, use_translation_wrapper_1.useTranslation)();
14
- return (react_1.default.createElement(react_core_1.FormGroup, { isInline: true, fieldId: GROUP_NAME, label: t('ai:Network type') },
15
- react_1.default.createElement(react_core_1.Split, null,
16
- react_1.default.createElement(react_core_1.SplitItem, null,
17
- react_1.default.createElement(react_core_1.Tooltip, { hidden: isSDNSelectable, content: t('ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.') },
18
- react_1.default.createElement(formik_1.RadioField, { id: GROUP_NAME, name: GROUP_NAME, isDisabled: isDisabled || !isSDNSelectable, value: networkType_1.NETWORK_TYPE_OVN, label: react_1.default.createElement(react_1.default.Fragment, null,
19
- t('ai:Open Virtual Networking (OVN)'),
20
- "\u00A0") }))),
21
- react_1.default.createElement(react_core_1.SplitItem, null,
22
- react_1.default.createElement(ui_1.PopoverIcon, { bodyContent: t("ai:OVN separates the physical network topology from the logical one and is recommended if you're using new or telco features."), buttonStyle: { top: '-4px' } }))),
23
- react_1.default.createElement(react_core_1.Split, null,
24
- react_1.default.createElement(react_core_1.SplitItem, null,
25
- react_1.default.createElement(react_core_1.Tooltip, { hidden: isSDNSelectable, content: t('ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.') },
26
- react_1.default.createElement(formik_1.RadioField, { id: GROUP_NAME, name: GROUP_NAME, isDisabled: isDisabled || !isSDNSelectable, value: networkType_1.NETWORK_TYPE_SDN, label: react_1.default.createElement(react_1.default.Fragment, null,
27
- t('ai:Software-Defined Networking (SDN)'),
28
- "\u00A0") }))),
29
- react_1.default.createElement(react_core_1.SplitItem, null,
30
- react_1.default.createElement(ui_1.PopoverIcon, { bodyContent: t('ai:The classic bullet-proof networking type'), buttonStyle: { top: '-4px' } })))));
31
- };
32
- exports.NetworkTypeControlGroup = NetworkTypeControlGroup;
33
- //# sourceMappingURL=NetworkTypeControlGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkTypeControlGroup.js","sourceRoot":"","sources":["../../../../../../lib/common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAA8E;AAC9E,4CAA6C;AAC7C,+CAAqD;AACrD,4DAAgF;AAChF,oFAAwE;AAExE,MAAM,UAAU,GAA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AE,GAC5B,CACQ,CACN,CACE,CACb,CAAC;AACJ,CAAC,CAAC;AA3DW,QAAA,uBAAuB,2BA2DlC"}
@@ -1,74 +0,0 @@
1
- import React from 'react';
2
- import { Split, SplitItem, Tooltip, FormGroup } from '@patternfly/react-core';
3
- import { RadioField } from '../../ui/formik';
4
- import { PopoverIcon } from '../../../components/ui';
5
- import { NETWORK_TYPE_OVN, NETWORK_TYPE_SDN } from '../../../types/networkType';
6
- import { useTranslation } from '../../../hooks/use-translation-wrapper';
7
-
8
- const GROUP_NAME = 'networkType';
9
-
10
- export interface NetworkTypeControlGroupProps {
11
- isDisabled?: boolean;
12
- isSDNSelectable: boolean;
13
- }
14
-
15
- export const NetworkTypeControlGroup = ({
16
- isDisabled = false,
17
- isSDNSelectable,
18
- }: NetworkTypeControlGroupProps) => {
19
- const { t } = useTranslation();
20
- return (
21
- <FormGroup isInline fieldId={GROUP_NAME} label={t('ai:Network type')}>
22
- <Split>
23
- <SplitItem>
24
- <Tooltip
25
- hidden={isSDNSelectable}
26
- content={t(
27
- 'ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.',
28
- )}
29
- >
30
- <RadioField
31
- id={GROUP_NAME}
32
- name={GROUP_NAME}
33
- isDisabled={isDisabled || !isSDNSelectable}
34
- value={NETWORK_TYPE_OVN}
35
- label={<>{t('ai:Open Virtual Networking (OVN)')}&nbsp;</>}
36
- />
37
- </Tooltip>
38
- </SplitItem>
39
- <SplitItem>
40
- <PopoverIcon
41
- bodyContent={t(
42
- "ai:OVN separates the physical network topology from the logical one and is recommended if you're using new or telco features.",
43
- )}
44
- buttonStyle={{ top: '-4px' }}
45
- />
46
- </SplitItem>
47
- </Split>
48
- <Split>
49
- <SplitItem>
50
- <Tooltip
51
- hidden={isSDNSelectable}
52
- content={t(
53
- 'ai:Network type selection is not supported for SNO clusters or when IPv6 is detected.',
54
- )}
55
- >
56
- <RadioField
57
- id={GROUP_NAME}
58
- name={GROUP_NAME}
59
- isDisabled={isDisabled || !isSDNSelectable}
60
- value={NETWORK_TYPE_SDN}
61
- label={<>{t('ai:Software-Defined Networking (SDN)')}&nbsp;</>}
62
- />
63
- </Tooltip>
64
- </SplitItem>
65
- <SplitItem>
66
- <PopoverIcon
67
- bodyContent={t('ai:The classic bullet-proof networking type')}
68
- buttonStyle={{ top: '-4px' }}
69
- />
70
- </SplitItem>
71
- </Split>
72
- </FormGroup>
73
- );
74
- };