@ably/ui 7.9.3 → 7.9.4
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/core/Logo.jsx +16 -29
- package/core/Meganav.jsx +18 -31
- package/package.json +1 -1
- package/src/core/Logo/component.jsx +1 -1
package/core/Logo.jsx
CHANGED
|
@@ -216,40 +216,27 @@ var external_commonjs_react_commonjs2_react_default = /*#__PURE__*/__webpack_req
|
|
|
216
216
|
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
217
217
|
var prop_types = __webpack_require__(5697);
|
|
218
218
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
219
|
-
;// CONCATENATED MODULE: ./node_modules/nanoid/index.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
let
|
|
223
|
-
let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1
|
|
224
|
-
let step = -~((1.6 * mask * defaultSize) / alphabet.length)
|
|
219
|
+
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
|
|
220
|
+
let urlAlphabet =
|
|
221
|
+
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
|
|
222
|
+
let customAlphabet = (alphabet, defaultSize = 21) => {
|
|
225
223
|
return (size = defaultSize) => {
|
|
226
224
|
let id = ''
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
while (j--) {
|
|
231
|
-
id += alphabet[bytes[j] & mask] || ''
|
|
232
|
-
if (id.length === size) return id
|
|
233
|
-
}
|
|
225
|
+
let i = size
|
|
226
|
+
while (i--) {
|
|
227
|
+
id += alphabet[(Math.random() * alphabet.length) | 0]
|
|
234
228
|
}
|
|
229
|
+
return id
|
|
235
230
|
}
|
|
236
231
|
}
|
|
237
|
-
let
|
|
238
|
-
|
|
239
|
-
let
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
id += (byte - 26).toString(36).toUpperCase()
|
|
246
|
-
} else if (byte > 62) {
|
|
247
|
-
id += '-'
|
|
248
|
-
} else {
|
|
249
|
-
id += '_'
|
|
250
|
-
}
|
|
251
|
-
return id
|
|
252
|
-
}, '')
|
|
232
|
+
let nanoid = (size = 21) => {
|
|
233
|
+
let id = ''
|
|
234
|
+
let i = size
|
|
235
|
+
while (i--) {
|
|
236
|
+
id += urlAlphabet[(Math.random() * 64) | 0]
|
|
237
|
+
}
|
|
238
|
+
return id
|
|
239
|
+
}
|
|
253
240
|
|
|
254
241
|
;// CONCATENATED MODULE: ./src/core/Logo/component.jsx
|
|
255
242
|
|
package/core/Meganav.jsx
CHANGED
|
@@ -463,7 +463,7 @@ Icon.propTypes = {
|
|
|
463
463
|
|
|
464
464
|
/***/ }),
|
|
465
465
|
|
|
466
|
-
/***/
|
|
466
|
+
/***/ 7697:
|
|
467
467
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
468
468
|
|
|
469
469
|
"use strict";
|
|
@@ -479,40 +479,27 @@ var external_commonjs_react_commonjs2_react_default = /*#__PURE__*/__webpack_req
|
|
|
479
479
|
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
480
480
|
var prop_types = __webpack_require__(5697);
|
|
481
481
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
482
|
-
;// CONCATENATED MODULE: ./node_modules/nanoid/index.
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
let
|
|
486
|
-
let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1
|
|
487
|
-
let step = -~((1.6 * mask * defaultSize) / alphabet.length)
|
|
482
|
+
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
|
|
483
|
+
let urlAlphabet =
|
|
484
|
+
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
|
|
485
|
+
let customAlphabet = (alphabet, defaultSize = 21) => {
|
|
488
486
|
return (size = defaultSize) => {
|
|
489
487
|
let id = ''
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
while (j--) {
|
|
494
|
-
id += alphabet[bytes[j] & mask] || ''
|
|
495
|
-
if (id.length === size) return id
|
|
496
|
-
}
|
|
488
|
+
let i = size
|
|
489
|
+
while (i--) {
|
|
490
|
+
id += alphabet[(Math.random() * alphabet.length) | 0]
|
|
497
491
|
}
|
|
492
|
+
return id
|
|
498
493
|
}
|
|
499
494
|
}
|
|
500
|
-
let
|
|
501
|
-
|
|
502
|
-
let
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
id += (byte - 26).toString(36).toUpperCase()
|
|
509
|
-
} else if (byte > 62) {
|
|
510
|
-
id += '-'
|
|
511
|
-
} else {
|
|
512
|
-
id += '_'
|
|
513
|
-
}
|
|
514
|
-
return id
|
|
515
|
-
}, '')
|
|
495
|
+
let nanoid = (size = 21) => {
|
|
496
|
+
let id = ''
|
|
497
|
+
let i = size
|
|
498
|
+
while (i--) {
|
|
499
|
+
id += urlAlphabet[(Math.random() * 64) | 0]
|
|
500
|
+
}
|
|
501
|
+
return id
|
|
502
|
+
}
|
|
516
503
|
|
|
517
504
|
;// CONCATENATED MODULE: ./src/core/Logo/component.jsx
|
|
518
505
|
|
|
@@ -5999,7 +5986,7 @@ var selectSessionData = function selectSessionData(store) {
|
|
|
5999
5986
|
|
|
6000
5987
|
|
|
6001
5988
|
// EXTERNAL MODULE: ./src/core/Logo/component.jsx + 1 modules
|
|
6002
|
-
var component = __webpack_require__(
|
|
5989
|
+
var component = __webpack_require__(7697);
|
|
6003
5990
|
// EXTERNAL MODULE: ./node_modules/lodash.throttle/index.js
|
|
6004
5991
|
var lodash_throttle = __webpack_require__(3096);
|
|
6005
5992
|
var lodash_throttle_default = /*#__PURE__*/__webpack_require__.n(lodash_throttle);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "7.9.
|
|
3
|
+
"version": "7.9.4",
|
|
4
4
|
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import T from "prop-types";
|
|
3
|
-
import { nanoid } from "nanoid";
|
|
3
|
+
import { nanoid } from "nanoid/non-secure";
|
|
4
4
|
|
|
5
5
|
const Logo = ({ dataId, href = "/" }) => {
|
|
6
6
|
// This fixes a bug where if the logo is rendered more than once on the page, and one of the instances
|