foris 6.10.0 → 6.11.0-beta.6da4949a

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.
@@ -91,6 +91,7 @@ function DeviceForm({
91
91
  }) {
92
92
  const deviceID = formData.id;
93
93
  const bnds = formData.available_bands;
94
+
94
95
  return (
95
96
  <>
96
97
  <Switch
@@ -169,13 +170,18 @@ function DeviceForm({
169
170
  // Get the last item in the available HT modes for the selected band
170
171
  const bestHtmode =
171
172
  selectedBand.available_htmodes.slice(-1)[0];
173
+ const deviceUpdate = {
174
+ band: { $set: value },
175
+ channel: { $set: "0" },
176
+ htmode: { $set: bestHtmode },
177
+ };
178
+ // The 6 GHz band supports only WPA3
179
+ if (value === "6g") {
180
+ deviceUpdate.encryption = { $set: "WPA3" };
181
+ }
172
182
  return {
173
183
  devices: {
174
- [deviceIndex]: {
175
- band: { $set: value },
176
- channel: { $set: "0" },
177
- htmode: { $set: bestHtmode },
178
- },
184
+ [deviceIndex]: deviceUpdate,
179
185
  },
180
186
  };
181
187
  })}
@@ -220,24 +226,27 @@ function DeviceForm({
220
226
  {...props}
221
227
  />
222
228
 
223
- {(formData.encryption === "WPA3" ||
224
- formData.encryption === "WPA2/3") && (
225
- <Switch
226
- label={_("Disable Management Frame Protection")}
227
- helpText={_(
228
- "In case you have trouble connecting to WiFi Access Point, try disabling Management Frame Protection."
229
- )}
230
- checked={formData.ieee80211w_disabled}
231
- onChange={setFormValue((value) => ({
232
- devices: {
233
- [deviceIndex]: {
234
- ieee80211w_disabled: { $set: value },
229
+ {formData.band !== "6g" &&
230
+ (formData.encryption === "WPA3" ||
231
+ formData.encryption === "WPA2/3") && (
232
+ <Switch
233
+ label={_("Disable Management Frame Protection")}
234
+ helpText={_(
235
+ "In case you have trouble connecting to WiFi Access Point, try disabling Management Frame Protection."
236
+ )}
237
+ checked={formData.ieee80211w_disabled}
238
+ onChange={setFormValue((value) => ({
239
+ devices: {
240
+ [deviceIndex]: {
241
+ ieee80211w_disabled: {
242
+ $set: value,
243
+ },
244
+ },
235
245
  },
236
- },
237
- }))}
238
- {...props}
239
- />
240
- )}
246
+ }))}
247
+ {...props}
248
+ />
249
+ )}
241
250
 
242
251
  {hasGuestNetwork && (
243
252
  <WifiGuestForm
@@ -302,5 +311,10 @@ function getEncryptionChoices(device) {
302
311
  if (device.encryption === "custom") {
303
312
  ENCRYPTIONMODES.custom = _("Custom");
304
313
  }
314
+ if (device.band === "6g") {
315
+ return {
316
+ WPA3: ENCRYPTIONMODES.WPA3,
317
+ };
318
+ }
305
319
  return ENCRYPTIONMODES;
306
320
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foris",
3
- "version": "6.10.0",
3
+ "version": "6.11.0-beta.6da4949a",
4
4
  "description": "Foris JS library is a set of components and utils for reForis application and plugins.",
5
5
  "author": "CZ.NIC, z.s.p.o.",
6
6
  "repository": {
@@ -20,7 +20,7 @@
20
20
  "@fortawesome/react-fontawesome": "^0.2.2",
21
21
  "@tanstack/match-sorter-utils": "^8.19.4",
22
22
  "@tanstack/react-table": "^8.21.3",
23
- "axios": "^1.13.5",
23
+ "axios": "^1.13.6",
24
24
  "immutability-helper": "^3.1.1",
25
25
  "moment": "^2.30.1",
26
26
  "qrcode.react": "^4.2.0",
@@ -38,7 +38,7 @@
38
38
  "@babel/cli": "^7.28.6",
39
39
  "@babel/core": "^7.29.0",
40
40
  "@babel/plugin-transform-runtime": "^7.29.0",
41
- "@babel/preset-env": "^7.29.0",
41
+ "@babel/preset-env": "^7.29.2",
42
42
  "@babel/preset-react": "^7.28.5",
43
43
  "@testing-library/react": "^12.1.5",
44
44
  "babel-loader": "^9.2.1",
@@ -51,7 +51,7 @@
51
51
  "jest": "^29.7.0",
52
52
  "jest-environment-jsdom": "^29.7.0",
53
53
  "jest-mock-axios": "^4.9.0",
54
- "moment-timezone": "^0.5.47",
54
+ "moment-timezone": "^0.6.1",
55
55
  "prettier": "^3.8.1",
56
56
  "prop-types": "15.8.1",
57
57
  "react": "16.9.0",
@@ -60,7 +60,7 @@
60
60
  "react-styleguidist": "^12.0.1",
61
61
  "snapshot-diff": "^0.10.0",
62
62
  "style-loader": "^4.0.0",
63
- "webpack": "^5.105.2"
63
+ "webpack": "^5.105.4"
64
64
  },
65
65
  "overrides": {
66
66
  "markdown-to-jsx": "^7.7.4"
package/foris-6.10.0.tgz DELETED
Binary file