@ably/ui 8.7.0-dev.b3aa10e → 8.7.0-dev.bd84e91

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 (102) hide show
  1. package/README.md +16 -5
  2. package/core/.DS_Store +0 -0
  3. package/core/Code/component.css +3 -3
  4. package/core/Code/component.js +1 -1
  5. package/core/Code.jsx +353 -7273
  6. package/core/CompanyAutocomplete/component.js +1 -1
  7. package/core/ConnectStateWrapper.jsx +13 -4
  8. package/core/ContactFooter.jsx +13 -119
  9. package/core/CookieMessage.jsx +21 -293
  10. package/core/CustomerLogos.jsx +11 -115
  11. package/core/DropdownMenu/component.js +1 -0
  12. package/core/DropdownMenu.jsx +313 -0
  13. package/core/DropdownMenuPreview/component.js +6 -0
  14. package/core/DropdownMenuPreview.jsx +6 -0
  15. package/core/FeaturedLink.jsx +10 -116
  16. package/core/Flash.jsx +149 -1531
  17. package/core/Footer/component.css +21 -1
  18. package/core/Footer.jsx +155 -170
  19. package/core/Icon.jsx +9 -114
  20. package/core/Loader.jsx +9 -114
  21. package/core/Logo.jsx +36 -226
  22. package/core/Meganav/component.js +1 -2
  23. package/core/Meganav/component.json +1 -1
  24. package/core/Meganav.jsx +2202 -9546
  25. package/core/MeganavBlogPostsList/component.js +1 -1
  26. package/core/MeganavBlogPostsList.jsx +11 -118
  27. package/core/MeganavContentCompany.jsx +31 -124
  28. package/core/MeganavContentDevelopers.jsx +31 -125
  29. package/core/MeganavContentPlatform.jsx +11 -118
  30. package/core/MeganavContentUseCases.jsx +11 -117
  31. package/core/MeganavControl.jsx +10 -116
  32. package/core/MeganavControlMobileDropdown/component.js +1 -1
  33. package/core/MeganavControlMobileDropdown.jsx +10 -116
  34. package/core/MeganavControlMobilePanelClose.jsx +10 -116
  35. package/core/MeganavControlMobilePanelOpen.jsx +10 -116
  36. package/core/MeganavItemsDesktop.jsx +13 -121
  37. package/core/MeganavItemsMobile.jsx +18 -132
  38. package/core/MeganavItemsSignedIn.jsx +16 -129
  39. package/core/MeganavSearch.jsx +13 -123
  40. package/core/MeganavSearchAutocomplete/component.js +1 -2
  41. package/core/MeganavSearchPanel.jsx +12 -121
  42. package/core/MeganavSearchSuggestions.jsx +11 -118
  43. package/core/Notice/component.js +1 -2
  44. package/core/Notice.jsx +183 -2185
  45. package/core/SignOutLink.jsx +9 -114
  46. package/core/Slider/component.js +1 -1
  47. package/core/Slider.jsx +25 -582
  48. package/core/Uptime.jsx +15 -118
  49. package/core/images/ably-logo.png +0 -0
  50. package/core/images/high-performer-2022.png +0 -0
  51. package/core/images/highest-user-adoption-2022.png +0 -0
  52. package/core/images/users-love-us-2022.png +0 -0
  53. package/core/scripts.js +1 -1
  54. package/core/sprites.svg +42 -1
  55. package/core/styles.css +2 -0
  56. package/package.json +4 -4
  57. package/src/.DS_Store +0 -0
  58. package/src/core/.DS_Store +0 -0
  59. package/src/core/Code/component.css +1 -67
  60. package/src/core/Code/component.js +11 -46
  61. package/src/core/Code/component.jsx +7 -3
  62. package/src/core/CustomerLogos/component.jsx +1 -1
  63. package/src/core/DropdownMenu/component.js +0 -0
  64. package/src/core/DropdownMenu/component.jsx +112 -0
  65. package/src/core/FeatureFooter/component.html.erb +1 -1
  66. package/src/core/Flash/component.jsx +40 -14
  67. package/src/core/Footer/component.css +21 -1
  68. package/src/core/Footer/component.html.erb +118 -56
  69. package/src/core/Footer/component.jsx +125 -50
  70. package/src/core/Logo/component.html.erb +2 -27
  71. package/src/core/Logo/component.jsx +7 -40
  72. package/src/core/Logo/component.rb +15 -6
  73. package/src/core/Meganav/component.html.erb +1 -1
  74. package/src/core/Meganav/component.json +1 -1
  75. package/src/core/Meganav/component.jsx +1 -1
  76. package/src/core/Meganav/component.rb +3 -2
  77. package/src/core/MeganavContentDevelopers/component.html.erb +17 -8
  78. package/src/core/MeganavContentDevelopers/component.jsx +17 -8
  79. package/src/core/MeganavContentUseCases/component.html.erb +1 -1
  80. package/src/core/MeganavContentUseCases/component.jsx +1 -1
  81. package/src/core/MeganavSearchSuggestions/component.html.erb +1 -1
  82. package/src/core/core.rb +12 -4
  83. package/src/core/icons/github.svg +1 -1
  84. package/src/core/icons/google.svg +3 -0
  85. package/src/core/icons/icon-display-chat-col.svg +4 -0
  86. package/src/core/icons/icon-display-integrations-col.svg +8 -0
  87. package/src/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
  88. package/src/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
  89. package/src/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
  90. package/src/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
  91. package/src/core/icons/icon-gui-resources.svg +3 -0
  92. package/src/core/icons/stackoverflow.svg +3 -0
  93. package/src/core/icons/youtube.svg +11 -0
  94. package/src/core/images/ably-logo.png +0 -0
  95. package/src/core/images/high-performer-2022.png +0 -0
  96. package/src/core/images/highest-user-adoption-2022.png +0 -0
  97. package/src/core/images/users-love-us-2022.png +0 -0
  98. package/src/core/styles/properties.css +2 -0
  99. package/src/core/utils/syntax-highlighter-registry.js +61 -0
  100. package/src/core/utils/syntax-highlighter.css +69 -0
  101. package/src/core/utils/syntax-highlighter.js +98 -0
  102. package/tailwind.config.js +1 -0
package/core/Loader.jsx CHANGED
@@ -1,131 +1,27 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"));
3
+ module.exports = factory(require("react"), require("prop-types"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define([], factory);
5
+ define([, ], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
7
+ var a = typeof exports === 'object' ? factory(require("react"), require("prop-types")) : factory(root[undefined], root[undefined]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE__9281__) {
10
+ })(this, function(__WEBPACK_EXTERNAL_MODULE__9281__, __WEBPACK_EXTERNAL_MODULE__3474__) {
11
11
  return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
12
13
  /******/ var __webpack_modules__ = ({
13
14
 
14
- /***/ 2703:
15
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
-
17
- "use strict";
18
- /**
19
- * Copyright (c) 2013-present, Facebook, Inc.
20
- *
21
- * This source code is licensed under the MIT license found in the
22
- * LICENSE file in the root directory of this source tree.
23
- */
24
-
25
-
26
-
27
- var ReactPropTypesSecret = __webpack_require__(414);
28
-
29
- function emptyFunction() {}
30
- function emptyFunctionWithReset() {}
31
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
32
-
33
- module.exports = function() {
34
- function shim(props, propName, componentName, location, propFullName, secret) {
35
- if (secret === ReactPropTypesSecret) {
36
- // It is still safe when called from React.
37
- return;
38
- }
39
- var err = new Error(
40
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
41
- 'Use PropTypes.checkPropTypes() to call them. ' +
42
- 'Read more at http://fb.me/use-check-prop-types'
43
- );
44
- err.name = 'Invariant Violation';
45
- throw err;
46
- };
47
- shim.isRequired = shim;
48
- function getShim() {
49
- return shim;
50
- };
51
- // Important!
52
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
53
- var ReactPropTypes = {
54
- array: shim,
55
- bool: shim,
56
- func: shim,
57
- number: shim,
58
- object: shim,
59
- string: shim,
60
- symbol: shim,
61
-
62
- any: shim,
63
- arrayOf: getShim,
64
- element: shim,
65
- elementType: shim,
66
- instanceOf: getShim,
67
- node: shim,
68
- objectOf: getShim,
69
- oneOf: getShim,
70
- oneOfType: getShim,
71
- shape: getShim,
72
- exact: getShim,
73
-
74
- checkPropTypes: emptyFunctionWithReset,
75
- resetWarningCache: emptyFunction
76
- };
77
-
78
- ReactPropTypes.PropTypes = ReactPropTypes;
79
-
80
- return ReactPropTypes;
81
- };
82
-
83
-
84
- /***/ }),
85
-
86
- /***/ 5697:
87
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
88
-
89
- /**
90
- * Copyright (c) 2013-present, Facebook, Inc.
91
- *
92
- * This source code is licensed under the MIT license found in the
93
- * LICENSE file in the root directory of this source tree.
94
- */
95
-
96
- if (false) { var throwOnDirectAccess, ReactIs; } else {
97
- // By explicitly using `prop-types` you are opting into new production behavior.
98
- // http://fb.me/prop-types-in-prod
99
- module.exports = __webpack_require__(2703)();
100
- }
101
-
102
-
103
- /***/ }),
104
-
105
- /***/ 414:
15
+ /***/ 3474:
106
16
  /***/ ((module) => {
107
17
 
108
- "use strict";
109
- /**
110
- * Copyright (c) 2013-present, Facebook, Inc.
111
- *
112
- * This source code is licensed under the MIT license found in the
113
- * LICENSE file in the root directory of this source tree.
114
- */
115
-
116
-
117
-
118
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
119
-
120
- module.exports = ReactPropTypesSecret;
121
-
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3474__;
122
19
 
123
20
  /***/ }),
124
21
 
125
22
  /***/ 9281:
126
23
  /***/ ((module) => {
127
24
 
128
- "use strict";
129
25
  module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
130
26
 
131
27
  /***/ })
@@ -199,16 +95,15 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
199
95
  /******/
200
96
  /************************************************************************/
201
97
  var __webpack_exports__ = {};
202
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
98
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
203
99
  (() => {
204
- "use strict";
205
100
  __webpack_require__.r(__webpack_exports__);
206
101
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
207
102
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
208
103
  /* harmony export */ });
209
104
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
210
105
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
211
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5697);
106
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
212
107
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
213
108
 
214
109
 
package/core/Logo.jsx CHANGED
@@ -1,131 +1,27 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react"));
3
+ module.exports = factory(require("react"), require("prop-types"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define([], factory);
5
+ define([, ], factory);
6
6
  else {
7
- var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
7
+ var a = typeof exports === 'object' ? factory(require("react"), require("prop-types")) : factory(root[undefined], root[undefined]);
8
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE__9281__) {
10
+ })(this, function(__WEBPACK_EXTERNAL_MODULE__9281__, __WEBPACK_EXTERNAL_MODULE__3474__) {
11
11
  return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
12
13
  /******/ var __webpack_modules__ = ({
13
14
 
14
- /***/ 2703:
15
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
16
-
17
- "use strict";
18
- /**
19
- * Copyright (c) 2013-present, Facebook, Inc.
20
- *
21
- * This source code is licensed under the MIT license found in the
22
- * LICENSE file in the root directory of this source tree.
23
- */
24
-
25
-
26
-
27
- var ReactPropTypesSecret = __webpack_require__(414);
28
-
29
- function emptyFunction() {}
30
- function emptyFunctionWithReset() {}
31
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
32
-
33
- module.exports = function() {
34
- function shim(props, propName, componentName, location, propFullName, secret) {
35
- if (secret === ReactPropTypesSecret) {
36
- // It is still safe when called from React.
37
- return;
38
- }
39
- var err = new Error(
40
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
41
- 'Use PropTypes.checkPropTypes() to call them. ' +
42
- 'Read more at http://fb.me/use-check-prop-types'
43
- );
44
- err.name = 'Invariant Violation';
45
- throw err;
46
- };
47
- shim.isRequired = shim;
48
- function getShim() {
49
- return shim;
50
- };
51
- // Important!
52
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
53
- var ReactPropTypes = {
54
- array: shim,
55
- bool: shim,
56
- func: shim,
57
- number: shim,
58
- object: shim,
59
- string: shim,
60
- symbol: shim,
61
-
62
- any: shim,
63
- arrayOf: getShim,
64
- element: shim,
65
- elementType: shim,
66
- instanceOf: getShim,
67
- node: shim,
68
- objectOf: getShim,
69
- oneOf: getShim,
70
- oneOfType: getShim,
71
- shape: getShim,
72
- exact: getShim,
73
-
74
- checkPropTypes: emptyFunctionWithReset,
75
- resetWarningCache: emptyFunction
76
- };
77
-
78
- ReactPropTypes.PropTypes = ReactPropTypes;
79
-
80
- return ReactPropTypes;
81
- };
82
-
83
-
84
- /***/ }),
85
-
86
- /***/ 5697:
87
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
88
-
89
- /**
90
- * Copyright (c) 2013-present, Facebook, Inc.
91
- *
92
- * This source code is licensed under the MIT license found in the
93
- * LICENSE file in the root directory of this source tree.
94
- */
95
-
96
- if (false) { var throwOnDirectAccess, ReactIs; } else {
97
- // By explicitly using `prop-types` you are opting into new production behavior.
98
- // http://fb.me/prop-types-in-prod
99
- module.exports = __webpack_require__(2703)();
100
- }
101
-
102
-
103
- /***/ }),
104
-
105
- /***/ 414:
15
+ /***/ 3474:
106
16
  /***/ ((module) => {
107
17
 
108
- "use strict";
109
- /**
110
- * Copyright (c) 2013-present, Facebook, Inc.
111
- *
112
- * This source code is licensed under the MIT license found in the
113
- * LICENSE file in the root directory of this source tree.
114
- */
115
-
116
-
117
-
118
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
119
-
120
- module.exports = ReactPropTypesSecret;
121
-
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3474__;
122
19
 
123
20
  /***/ }),
124
21
 
125
22
  /***/ 9281:
126
23
  /***/ ((module) => {
127
24
 
128
- "use strict";
129
25
  module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
130
26
 
131
27
  /***/ })
@@ -199,136 +95,50 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
199
95
  /******/
200
96
  /************************************************************************/
201
97
  var __webpack_exports__ = {};
202
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
98
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
203
99
  (() => {
204
- "use strict";
205
- // ESM COMPAT FLAG
206
100
  __webpack_require__.r(__webpack_exports__);
207
-
208
- // EXPORTS
209
- __webpack_require__.d(__webpack_exports__, {
210
- "default": () => (/* binding */ component)
211
- });
212
-
213
- // EXTERNAL MODULE: external {"commonjs":"react","commonjs2":"react"}
214
- var external_commonjs_react_commonjs2_react_ = __webpack_require__(9281);
215
- var external_commonjs_react_commonjs2_react_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_react_commonjs2_react_);
216
- // EXTERNAL MODULE: ./node_modules/prop-types/index.js
217
- var prop_types = __webpack_require__(5697);
218
- var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
219
- ;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
220
- let urlAlphabet =
221
- 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
222
- let customAlphabet = (alphabet, defaultSize = 21) => {
223
- return (size = defaultSize) => {
224
- let id = ''
225
- let i = size
226
- while (i--) {
227
- id += alphabet[(Math.random() * alphabet.length) | 0]
228
- }
229
- return id
230
- }
231
- }
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
- }
240
-
241
- ;// CONCATENATED MODULE: ./src/core/Logo/component.jsx
101
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
102
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
103
+ /* harmony export */ });
104
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
105
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
106
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
107
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
108
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
242
109
 
243
110
 
244
111
 
245
112
 
246
113
  var Logo = function Logo(_ref) {
247
114
  var dataId = _ref.dataId,
115
+ logoUrl = _ref.logoUrl,
248
116
  _ref$href = _ref.href,
249
- href = _ref$href === void 0 ? "/" : _ref$href;
250
- // This fixes a bug where if the logo is rendered more than once on the page, and one of the instances
251
- // if it is hidden, the other instance will not show the ably shape from the logo.
252
- // This is because the defs in this SVG reference ids that need to be unique ids. The browser discards the "newer"
253
- // linearGradients defined in the other logo, and inherits the `hidden` style from the first.
254
- var gradientIds = (0,external_commonjs_react_commonjs2_react_.useMemo)(function () {
255
- return [nanoid(), nanoid()];
256
- }, []);
257
- return /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
117
+ href = _ref$href === void 0 ? "/" : _ref$href,
118
+ additionalImgAttrs = _ref.additionalImgAttrs,
119
+ additionalLinkAttrs = _ref.additionalLinkAttrs;
120
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", _extends({
258
121
  href: href,
259
- className: "h-32"
260
- }, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("svg", {
261
122
  "data-id": dataId,
262
- className: "text-cool-black transition-colors",
263
- width: "108",
264
- height: "32",
265
- viewBox: "0 0 108 32",
266
- xmlns: "http://www.w3.org/2000/svg"
267
- }, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("path", {
268
- d: "M62.922 24.9786V4.08813H66.6933V11.6512C67.9709 10.435 69.6164 9.76044 71.3538 9.76044C75.4318 9.76044 79.0498 12.8674 79.0498 17.5484C79.0498 22.2293 75.4318 25.3465 71.3538 25.3465C69.5244 25.3465 67.7971 24.6209 66.5094 23.3024V24.9786H62.922ZM75.2785 17.5484C75.2785 14.932 73.4183 13.1025 70.9859 13.1025C68.6148 13.1025 66.7853 14.84 66.6933 17.3644V17.5484C66.6933 20.1648 68.5534 21.9942 70.9859 21.9942C73.4183 21.9942 75.2785 20.1648 75.2785 17.5484ZM80.7975 24.9786V4.08813H84.5688V24.9786H80.7975ZM89.8425 30.3954L92.0399 25.1523L86.0712 10.1284H90.1491L93.9511 20.6247L97.8144 10.1284H101.954L93.8591 30.4056H89.8425V30.3954ZM56.9329 10.1284V12.0191C55.6247 10.5883 53.7952 9.77066 51.9147 9.77066C47.8367 9.77066 44.2187 12.8777 44.2187 17.5586C44.2187 22.2497 47.8367 25.3465 51.9147 25.3465C53.8668 25.3465 55.7166 24.4982 57.0555 22.9754V24.9888H60.3465V10.1284H56.9329ZM56.5649 17.5484C56.5649 20.1341 54.7048 21.9942 52.2724 21.9942C49.8399 21.9942 47.9798 20.1341 47.9798 17.5484C47.9798 14.9626 49.8399 13.1025 52.2724 13.1025C54.6435 13.1025 56.473 14.8706 56.5649 17.3644V17.5484Z",
269
- fill: "currentColor"
270
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("path", {
271
- d: "M19.2858 0L3.14788 29.5369L0 27.3293L14.932 0H19.2858ZM19.5107 0L35.6487 29.5369L38.7965 27.3293L23.8646 0H19.5107Z",
272
- fill: "url(#".concat(gradientIds[0], ")")
273
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("path", {
274
- d: "M35.4238 29.7107L19.3983 17.16L3.37271 29.7107L6.64323 32L19.3983 22.0147L32.1533 32L35.4238 29.7107Z",
275
- fill: "url(#".concat(gradientIds[1], ")")
276
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("defs", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("linearGradient", {
277
- id: gradientIds[0],
278
- x1: "5.47361",
279
- y1: "37.4219",
280
- x2: "32.4603",
281
- y2: "7.45023",
282
- gradientUnits: "userSpaceOnUse"
283
- }, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
284
- stopColor: "#FF5416"
285
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
286
- offset: "0.2535",
287
- stopColor: "#FF5115"
288
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
289
- offset: "0.461",
290
- stopColor: "#FF4712"
291
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
292
- offset: "0.6523",
293
- stopColor: "#FF350E"
294
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
295
- offset: "0.8327",
296
- stopColor: "#FF1E08"
297
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
298
- offset: "1",
299
- stopColor: "#FF0000"
300
- })), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("linearGradient", {
301
- id: gradientIds[1],
302
- x1: "10.7084",
303
- y1: "39.3593",
304
- x2: "26.6583",
305
- y2: "21.6452",
306
- gradientUnits: "userSpaceOnUse"
307
- }, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
308
- stopColor: "#FF5416"
309
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
310
- offset: "0.2535",
311
- stopColor: "#FF5115"
312
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
313
- offset: "0.461",
314
- stopColor: "#FF4712"
315
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
316
- offset: "0.6523",
317
- stopColor: "#FF350E"
318
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
319
- offset: "0.8327",
320
- stopColor: "#FF1E08"
321
- }), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("stop", {
322
- offset: "1",
323
- stopColor: "#FF0000"
324
- })))));
123
+ className: "block",
124
+ style: {
125
+ height: "2.125rem"
126
+ }
127
+ }, additionalLinkAttrs), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("img", _extends({
128
+ src: logoUrl,
129
+ width: "108px",
130
+ alt: "Ably logo"
131
+ }, additionalImgAttrs)));
325
132
  };
326
133
 
327
134
  Logo.propTypes = {
328
- dataId: (prop_types_default()).string,
329
- href: (prop_types_default()).string
135
+ dataId: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
136
+ href: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
137
+ logoUrl: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
138
+ additionalImgAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
139
+ additionalLinkAttrs: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)
330
140
  };
331
- /* harmony default export */ const component = (/*#__PURE__*/external_commonjs_react_commonjs2_react_default().memo(Logo));
141
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(Logo));
332
142
  })();
333
143
 
334
144
  /******/ return __webpack_exports__;