carbon-addons-iot-react 5.10.10 → 5.10.11
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.
- package/package.json +2 -2
- package/umd/carbon-addons-iot-react.js +48 -54
package/package.json
CHANGED
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"thenby": "^1.3.4",
|
|
201
201
|
"use-deep-compare-effect": "^1.2.0",
|
|
202
202
|
"use-resize-observer": "^8.0.0",
|
|
203
|
-
"uuid": "^
|
|
203
|
+
"uuid": "^14.0.0",
|
|
204
204
|
"warning": "^4.0.3"
|
|
205
205
|
},
|
|
206
206
|
"peerDependencies": {
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
"whatwg-fetch": "^3.0.0"
|
|
354
354
|
},
|
|
355
355
|
"sideEffects": false,
|
|
356
|
-
"version": "5.10.
|
|
356
|
+
"version": "5.10.11",
|
|
357
357
|
"resolutions": {
|
|
358
358
|
"chokidar": "3.3.1",
|
|
359
359
|
"react-grid-layout": "1.2.2",
|
|
@@ -14976,69 +14976,63 @@
|
|
|
14976
14976
|
};
|
|
14977
14977
|
var BreadCrumb = Breadcrumb;
|
|
14978
14978
|
|
|
14979
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
14980
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
14981
|
-
// generators (like Math.random()).
|
|
14982
|
-
let getRandomValues;
|
|
14983
|
-
const rnds8 = new Uint8Array(16);
|
|
14984
|
-
function rng() {
|
|
14985
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
14986
|
-
if (!getRandomValues) {
|
|
14987
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
14988
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
14989
|
-
|
|
14990
|
-
if (!getRandomValues) {
|
|
14991
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
14992
|
-
}
|
|
14993
|
-
}
|
|
14994
|
-
|
|
14995
|
-
return getRandomValues(rnds8);
|
|
14996
|
-
}
|
|
14997
|
-
|
|
14998
|
-
/**
|
|
14999
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
15000
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
15001
|
-
*/
|
|
15002
|
-
|
|
15003
14979
|
const byteToHex = [];
|
|
15004
|
-
|
|
15005
14980
|
for (let i = 0; i < 256; ++i) {
|
|
15006
|
-
|
|
14981
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
15007
14982
|
}
|
|
15008
|
-
|
|
15009
14983
|
function unsafeStringify(arr, offset = 0) {
|
|
15010
|
-
|
|
15011
|
-
|
|
15012
|
-
|
|
14984
|
+
return (byteToHex[arr[offset + 0]] +
|
|
14985
|
+
byteToHex[arr[offset + 1]] +
|
|
14986
|
+
byteToHex[arr[offset + 2]] +
|
|
14987
|
+
byteToHex[arr[offset + 3]] +
|
|
14988
|
+
'-' +
|
|
14989
|
+
byteToHex[arr[offset + 4]] +
|
|
14990
|
+
byteToHex[arr[offset + 5]] +
|
|
14991
|
+
'-' +
|
|
14992
|
+
byteToHex[arr[offset + 6]] +
|
|
14993
|
+
byteToHex[arr[offset + 7]] +
|
|
14994
|
+
'-' +
|
|
14995
|
+
byteToHex[arr[offset + 8]] +
|
|
14996
|
+
byteToHex[arr[offset + 9]] +
|
|
14997
|
+
'-' +
|
|
14998
|
+
byteToHex[arr[offset + 10]] +
|
|
14999
|
+
byteToHex[arr[offset + 11]] +
|
|
15000
|
+
byteToHex[arr[offset + 12]] +
|
|
15001
|
+
byteToHex[arr[offset + 13]] +
|
|
15002
|
+
byteToHex[arr[offset + 14]] +
|
|
15003
|
+
byteToHex[arr[offset + 15]]).toLowerCase();
|
|
15013
15004
|
}
|
|
15014
15005
|
|
|
15015
|
-
const
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
}
|
|
15006
|
+
const rnds8 = new Uint8Array(16);
|
|
15007
|
+
function rng() {
|
|
15008
|
+
return crypto.getRandomValues(rnds8);
|
|
15009
|
+
}
|
|
15019
15010
|
|
|
15020
15011
|
function v4(options, buf, offset) {
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
}
|
|
15024
|
-
|
|
15025
|
-
options = options || {};
|
|
15026
|
-
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
15027
|
-
|
|
15028
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
15029
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
15030
|
-
|
|
15031
|
-
if (buf) {
|
|
15032
|
-
offset = offset || 0;
|
|
15033
|
-
|
|
15034
|
-
for (let i = 0; i < 16; ++i) {
|
|
15035
|
-
buf[offset + i] = rnds[i];
|
|
15012
|
+
if (!buf && !options && crypto.randomUUID) {
|
|
15013
|
+
return crypto.randomUUID();
|
|
15036
15014
|
}
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
|
|
15015
|
+
return _v4(options, buf, offset);
|
|
15016
|
+
}
|
|
15017
|
+
function _v4(options, buf, offset) {
|
|
15018
|
+
options = options || {};
|
|
15019
|
+
const rnds = options.random ?? options.rng?.() ?? rng();
|
|
15020
|
+
if (rnds.length < 16) {
|
|
15021
|
+
throw new Error('Random bytes length must be >= 16');
|
|
15022
|
+
}
|
|
15023
|
+
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
15024
|
+
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
15025
|
+
if (buf) {
|
|
15026
|
+
offset = offset || 0;
|
|
15027
|
+
if (offset < 0 || offset + 16 > buf.length) {
|
|
15028
|
+
throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
|
|
15029
|
+
}
|
|
15030
|
+
for (let i = 0; i < 16; ++i) {
|
|
15031
|
+
buf[offset + i] = rnds[i];
|
|
15032
|
+
}
|
|
15033
|
+
return buf;
|
|
15034
|
+
}
|
|
15035
|
+
return unsafeStringify(rnds);
|
|
15042
15036
|
}
|
|
15043
15037
|
|
|
15044
15038
|
/**
|