@ably/ui 8.7.0-dev.471ada5 → 8.7.0-dev.47532ac

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 (154) hide show
  1. package/README.md +16 -5
  2. package/core/Code/component.css +3 -3
  3. package/core/Code/component.js +1 -1
  4. package/core/Code.jsx +373 -7273
  5. package/core/CompanyAutocomplete/component.js +1 -1
  6. package/core/ConnectStateWrapper/component.js +1 -1
  7. package/core/ConnectStateWrapper.jsx +16 -7
  8. package/core/ContactFooter/component.js +1 -1
  9. package/core/ContactFooter.jsx +20 -126
  10. package/core/CookieMessage/component.js +1 -1
  11. package/core/CookieMessage.jsx +24 -296
  12. package/core/CustomerLogos/component.js +1 -1
  13. package/core/CustomerLogos.jsx +12 -117
  14. package/core/DropdownMenu/component.js +1 -1
  15. package/core/DropdownMenu.jsx +16 -126
  16. package/core/FeatureFooter/component.js +1 -1
  17. package/core/FeatureFooter.jsx +17 -0
  18. package/core/FeaturedLink/component.js +1 -1
  19. package/core/FeaturedLink.jsx +15 -121
  20. package/core/Flash/component.js +1 -1
  21. package/core/Flash.jsx +151 -1533
  22. package/core/Footer/component.css +21 -1
  23. package/core/Footer/component.js +1 -1
  24. package/core/Footer.jsx +165 -190
  25. package/core/Icon/component.css +1 -0
  26. package/core/Icon/component.js +1 -1
  27. package/core/Icon.jsx +12 -117
  28. package/core/Loader/component.js +1 -1
  29. package/core/Loader.jsx +12 -117
  30. package/core/Logo/component.js +1 -1
  31. package/core/Logo.jsx +38 -228
  32. package/core/Meganav/component.css +1 -3
  33. package/core/Meganav/component.js +1 -2
  34. package/core/Meganav/component.json +2 -2
  35. package/core/Meganav.jsx +2228 -9551
  36. package/core/MeganavBlogPostsList/component.js +1 -1
  37. package/core/MeganavBlogPostsList.jsx +18 -125
  38. package/core/MeganavContentCompany/component.js +1 -1
  39. package/core/MeganavContentCompany.jsx +60 -141
  40. package/core/MeganavContentDevelopers/component.js +1 -1
  41. package/core/MeganavContentDevelopers.jsx +65 -134
  42. package/core/MeganavContentPlatform.jsx +41 -67
  43. package/core/MeganavContentProducts/component.js +1 -0
  44. package/core/MeganavContentProducts.jsx +333 -0
  45. package/core/MeganavContentUseCases/component.js +1 -1
  46. package/core/MeganavContentUseCases.jsx +68 -166
  47. package/core/MeganavContentWhyAbly/component.js +1 -0
  48. package/core/MeganavContentWhyAbly.jsx +1458 -0
  49. package/core/MeganavControl/component.js +1 -1
  50. package/core/MeganavControl.jsx +15 -121
  51. package/core/MeganavControlMobileDropdown/component.js +1 -1
  52. package/core/MeganavControlMobileDropdown.jsx +16 -122
  53. package/core/MeganavControlMobilePanelClose/component.js +1 -1
  54. package/core/MeganavControlMobilePanelClose.jsx +15 -121
  55. package/core/MeganavControlMobilePanelOpen/component.js +1 -1
  56. package/core/MeganavControlMobilePanelOpen.jsx +15 -121
  57. package/core/MeganavItemsDesktop/component.js +1 -1
  58. package/core/MeganavItemsDesktop.jsx +22 -130
  59. package/core/MeganavItemsMobile/component.js +1 -1
  60. package/core/MeganavItemsMobile.jsx +44 -158
  61. package/core/MeganavItemsSignedIn/component.js +1 -1
  62. package/core/MeganavItemsSignedIn.jsx +38 -151
  63. package/core/MeganavSearch/component.js +1 -1
  64. package/core/MeganavSearch.jsx +28 -138
  65. package/core/MeganavSearchAutocomplete/component.js +1 -2
  66. package/core/MeganavSearchAutocomplete.jsx +4 -4
  67. package/core/MeganavSearchPanel/component.js +1 -1
  68. package/core/MeganavSearchPanel.jsx +24 -133
  69. package/core/MeganavSearchSuggestions/component.js +1 -1
  70. package/core/MeganavSearchSuggestions.jsx +18 -125
  71. package/core/Notice/component.js +1 -2
  72. package/core/Notice.jsx +187 -2189
  73. package/core/Showcase/component.js +1 -1
  74. package/core/Showcase.jsx +1 -1
  75. package/core/SignOutLink/component.js +1 -1
  76. package/core/SignOutLink.jsx +12 -117
  77. package/core/Slider/component.js +1 -1
  78. package/core/Slider.jsx +31 -588
  79. package/core/Uptime/component.js +1 -1
  80. package/core/Uptime.jsx +24 -127
  81. package/core/images/ably-logo.png +0 -0
  82. package/core/images/high-performer-2022.png +0 -0
  83. package/core/images/highest-user-adoption-2022.png +0 -0
  84. package/core/images/users-love-us-2022.png +0 -0
  85. package/core/scripts.js +1 -1
  86. package/core/sprites.svg +133 -1
  87. package/core/styles.css +3 -7
  88. package/package.json +4 -4
  89. package/reset/scripts.js +1 -1
  90. package/reset/styles.css +1 -11
  91. package/src/core/Code/component.css +1 -67
  92. package/src/core/Code/component.js +11 -46
  93. package/src/core/Code/component.jsx +7 -3
  94. package/src/core/DropdownMenu/component.jsx +0 -2
  95. package/src/core/FeatureFooter/component.html.erb +1 -1
  96. package/src/core/Flash/component.jsx +40 -14
  97. package/src/core/Footer/component.css +21 -1
  98. package/src/core/Footer/component.html.erb +118 -62
  99. package/src/core/Footer/component.jsx +125 -60
  100. package/src/core/Logo/component.html.erb +2 -27
  101. package/src/core/Logo/component.jsx +7 -40
  102. package/src/core/Logo/component.rb +15 -6
  103. package/src/core/Meganav/component.css +1 -1
  104. package/src/core/Meganav/component.html.erb +1 -1
  105. package/src/core/Meganav/component.json +2 -2
  106. package/src/core/Meganav/component.jsx +3 -3
  107. package/src/core/Meganav/component.rb +7 -6
  108. package/src/core/MeganavContentCompany/component.html.erb +9 -0
  109. package/src/core/MeganavContentCompany/component.jsx +9 -0
  110. package/src/core/MeganavContentDevelopers/component.html.erb +35 -10
  111. package/src/core/MeganavContentDevelopers/component.jsx +37 -9
  112. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.html.erb +15 -33
  113. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.jsx +17 -38
  114. package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.rb +1 -1
  115. package/src/core/MeganavContentUseCases/component.html.erb +43 -39
  116. package/src/core/MeganavContentUseCases/component.jsx +42 -39
  117. package/src/core/MeganavItemsDesktop/component.jsx +1 -1
  118. package/src/core/MeganavItemsDesktop/component.rb +1 -1
  119. package/src/core/MeganavSearchSuggestions/component.html.erb +1 -1
  120. package/src/core/core.rb +12 -4
  121. package/src/core/icons/github.svg +1 -1
  122. package/src/core/icons/google.svg +3 -0
  123. package/src/core/icons/icon-display-asset-tracking-col.svg +18 -0
  124. package/src/core/icons/icon-display-chat-col.svg +4 -0
  125. package/src/core/icons/icon-display-data-broadcast-col.svg +26 -0
  126. package/src/core/icons/icon-display-data-synchronization-col.svg +14 -0
  127. package/src/core/icons/icon-display-events-col.svg +13 -0
  128. package/src/core/icons/icon-display-examples-col.svg +11 -0
  129. package/src/core/icons/icon-display-integrations-col.svg +8 -0
  130. package/src/core/icons/icon-display-kafka-at-the-edge-col.svg +8 -0
  131. package/src/core/icons/icon-display-push-notifications-col.svg +6 -0
  132. package/src/core/icons/icon-gui-check-circled-fill-black.svg +4 -0
  133. package/src/core/icons/icon-gui-filter-flow-step-1.svg +5 -0
  134. package/src/core/icons/icon-gui-filter-flow-step-2.svg +5 -0
  135. package/src/core/icons/icon-gui-filter-flow-step-3.svg +5 -0
  136. package/src/core/icons/icon-gui-resources.svg +3 -0
  137. package/src/core/icons/icon-tech-apachekafka.svg +3 -0
  138. package/src/core/icons/stackoverflow.svg +3 -0
  139. package/src/core/icons/youtube.svg +11 -0
  140. package/src/core/images/ably-logo.png +0 -0
  141. package/src/core/images/high-performer-2022.png +0 -0
  142. package/src/core/images/highest-user-adoption-2022.png +0 -0
  143. package/src/core/images/users-love-us-2022.png +0 -0
  144. package/src/core/styles/properties.css +2 -0
  145. package/src/core/styles/text.css +1 -1
  146. package/src/core/utils/syntax-highlighter-registry.js +63 -0
  147. package/src/core/utils/syntax-highlighter.css +69 -0
  148. package/src/core/utils/syntax-highlighter.js +103 -0
  149. package/tailwind.config.js +1 -0
  150. package/core/DropdownMenuPreview/component.js +0 -6
  151. package/core/DropdownMenuPreview.jsx +0 -6
  152. package/core/Meganav/component.js.LICENSE.txt +0 -7
  153. package/core/MeganavSearchAutocomplete/component.js.LICENSE.txt +0 -7
  154. /package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +0 -0
package/core/Icon.jsx CHANGED
@@ -1,132 +1,28 @@
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, (__WEBPACK_EXTERNAL_MODULE__5225__, __WEBPACK_EXTERNAL_MODULE__6073__) => {
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
+ /***/ 6073:
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__6073__;
122
19
 
123
20
  /***/ }),
124
21
 
125
- /***/ 9281:
22
+ /***/ 5225:
126
23
  /***/ ((module) => {
127
24
 
128
- "use strict";
129
- module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
25
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
130
26
 
131
27
  /***/ })
132
28
 
@@ -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
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
104
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
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__(6073);
212
107
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
213
108
  var _excluded = ["name", "size", "color", "additionalCSS"];
214
109
 
@@ -1 +1 @@
1
- !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.Loader=o())}(this,(function(){return{}.default}));
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.Loader=o())}(this,(()=>({}.default)));
package/core/Loader.jsx CHANGED
@@ -1,132 +1,28 @@
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, (__WEBPACK_EXTERNAL_MODULE__5225__, __WEBPACK_EXTERNAL_MODULE__6073__) => {
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
+ /***/ 6073:
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__6073__;
122
19
 
123
20
  /***/ }),
124
21
 
125
- /***/ 9281:
22
+ /***/ 5225:
126
23
  /***/ ((module) => {
127
24
 
128
- "use strict";
129
- module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
25
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
130
26
 
131
27
  /***/ })
132
28
 
@@ -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
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
104
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5225);
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__(6073);
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
 
@@ -1 +1 @@
1
- !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.Logo=o())}(this,(function(){return{}.default}));
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.Logo=o())}(this,(()=>({}.default)));
package/core/Logo.jsx CHANGED
@@ -1,132 +1,28 @@
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, (__WEBPACK_EXTERNAL_MODULE__5225__, __WEBPACK_EXTERNAL_MODULE__6073__) => {
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
+ /***/ 6073:
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__6073__;
122
19
 
123
20
  /***/ }),
124
21
 
125
- /***/ 9281:
22
+ /***/ 5225:
126
23
  /***/ ((module) => {
127
24
 
128
- "use strict";
129
- module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
25
+ module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
130
26
 
131
27
  /***/ })
132
28
 
@@ -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__(5225);
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__(6073);
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__;
@@ -89,13 +89,11 @@
89
89
  }
90
90
 
91
91
  .ui-meganav-media-with-image {
92
- grid-template-columns: -webkit-max-content 1fr;
93
92
  grid-template-columns: max-content 1fr;
94
- grid-template-rows: -webkit-min-content 1fr;
95
93
  grid-template-rows: min-content 1fr;
96
94
 
97
95
  @apply block px-8 py-8 hover:bg-light-grey rounded relative -left-8 w-extend-8;
98
- @apply grid gap-x-8;
96
+ @apply grid gap-x-16;
99
97
  }
100
98
 
101
99
  .ui-meganav-media-heading {