@ably/ui 8.9.0 → 9.0.0
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/README.md +1 -1
- package/core/Code/component.css +3 -3
- package/core/Code/component.js +1 -1
- package/core/Code.jsx +353 -7273
- package/core/CompanyAutocomplete/component.js +1 -1
- package/core/ConnectStateWrapper.jsx +13 -4
- package/core/ContactFooter.jsx +13 -119
- package/core/CookieMessage.jsx +21 -293
- package/core/CustomerLogos.jsx +9 -114
- package/core/DropdownMenu/component.js +1 -0
- package/core/DropdownMenu.jsx +317 -0
- package/core/FeaturedLink.jsx +10 -116
- package/core/Flash.jsx +29 -1483
- package/core/Footer.jsx +17 -123
- package/core/Icon.jsx +9 -114
- package/core/Loader.jsx +9 -114
- package/core/Logo.jsx +13 -118
- package/core/Meganav/component.js +1 -2
- package/core/Meganav.jsx +2844 -10177
- package/core/MeganavBlogPostsList/component.js +1 -1
- package/core/MeganavBlogPostsList.jsx +11 -118
- package/core/MeganavContentCompany.jsx +31 -124
- package/core/MeganavContentDevelopers.jsx +23 -117
- package/core/MeganavContentPlatform.jsx +11 -118
- package/core/MeganavContentUseCases.jsx +11 -117
- package/core/MeganavControl.jsx +10 -116
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavControlMobileDropdown.jsx +10 -116
- package/core/MeganavControlMobilePanelClose.jsx +10 -116
- package/core/MeganavControlMobilePanelOpen.jsx +10 -116
- package/core/MeganavItemsDesktop.jsx +13 -121
- package/core/MeganavItemsMobile.jsx +18 -132
- package/core/MeganavItemsSignedIn.jsx +16 -129
- package/core/MeganavSearch.jsx +13 -123
- package/core/MeganavSearchAutocomplete/component.js +1 -2
- package/core/MeganavSearchPanel.jsx +12 -121
- package/core/MeganavSearchSuggestions.jsx +11 -118
- package/core/Notice/component.js +1 -2
- package/core/Notice.jsx +62 -2136
- package/core/SignOutLink.jsx +9 -114
- package/core/Slider/component.js +1 -1
- package/core/Slider.jsx +25 -582
- package/core/Uptime.jsx +15 -118
- package/core/scripts.js +1 -1
- package/core/sprites.svg +7 -0
- package/package.json +4 -4
- package/src/core/Code/component.css +1 -67
- package/src/core/Code/component.js +11 -46
- package/src/core/Code/component.jsx +7 -3
- package/src/core/DropdownMenu/component.js +0 -0
- package/src/core/DropdownMenu/component.jsx +114 -0
- package/src/core/FeatureFooter/component.html.erb +1 -1
- package/src/core/MeganavContentDevelopers/component.html.erb +9 -0
- package/src/core/MeganavContentDevelopers/component.jsx +9 -0
- package/src/core/MeganavContentUseCases/component.html.erb +1 -1
- package/src/core/MeganavContentUseCases/component.jsx +1 -1
- package/src/core/MeganavSearchSuggestions/component.html.erb +1 -1
- package/src/core/icons/icon-display-integrations-col.svg +8 -0
- package/src/core/utils/syntax-highlighter-registry.js +61 -0
- package/src/core/utils/syntax-highlighter.css +69 -0
- package/src/core/utils/syntax-highlighter.js +98 -0
- package/core/Meganav/component.js.LICENSE.txt +0 -7
- package/core/MeganavSearchAutocomplete/component.js.LICENSE.txt +0 -7
- package/core/Notice/component.js.LICENSE.txt +0 -9
|
@@ -1,26 +1,26 @@
|
|
|
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
15
|
/***/ 5751:
|
|
15
16
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
17
|
|
|
17
|
-
"use strict";
|
|
18
18
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
19
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20
20
|
/* harmony export */ });
|
|
21
21
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
22
22
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
23
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
|
|
24
24
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
25
|
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
|
|
26
26
|
|
|
@@ -64,13 +64,12 @@ FeaturedLink.propTypes = {
|
|
|
64
64
|
/***/ 9008:
|
|
65
65
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
66
66
|
|
|
67
|
-
"use strict";
|
|
68
67
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
69
68
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
70
69
|
/* harmony export */ });
|
|
71
70
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
72
71
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
73
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
72
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
|
|
74
73
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
75
74
|
var _excluded = ["name", "size", "color", "additionalCSS"];
|
|
76
75
|
|
|
@@ -114,121 +113,16 @@ Icon.propTypes = {
|
|
|
114
113
|
|
|
115
114
|
/***/ }),
|
|
116
115
|
|
|
117
|
-
/***/
|
|
118
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
119
|
-
|
|
120
|
-
"use strict";
|
|
121
|
-
/**
|
|
122
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the MIT license found in the
|
|
125
|
-
* LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var ReactPropTypesSecret = __webpack_require__(414);
|
|
131
|
-
|
|
132
|
-
function emptyFunction() {}
|
|
133
|
-
function emptyFunctionWithReset() {}
|
|
134
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
135
|
-
|
|
136
|
-
module.exports = function() {
|
|
137
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
138
|
-
if (secret === ReactPropTypesSecret) {
|
|
139
|
-
// It is still safe when called from React.
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
var err = new Error(
|
|
143
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
144
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
145
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
146
|
-
);
|
|
147
|
-
err.name = 'Invariant Violation';
|
|
148
|
-
throw err;
|
|
149
|
-
};
|
|
150
|
-
shim.isRequired = shim;
|
|
151
|
-
function getShim() {
|
|
152
|
-
return shim;
|
|
153
|
-
};
|
|
154
|
-
// Important!
|
|
155
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
156
|
-
var ReactPropTypes = {
|
|
157
|
-
array: shim,
|
|
158
|
-
bool: shim,
|
|
159
|
-
func: shim,
|
|
160
|
-
number: shim,
|
|
161
|
-
object: shim,
|
|
162
|
-
string: shim,
|
|
163
|
-
symbol: shim,
|
|
164
|
-
|
|
165
|
-
any: shim,
|
|
166
|
-
arrayOf: getShim,
|
|
167
|
-
element: shim,
|
|
168
|
-
elementType: shim,
|
|
169
|
-
instanceOf: getShim,
|
|
170
|
-
node: shim,
|
|
171
|
-
objectOf: getShim,
|
|
172
|
-
oneOf: getShim,
|
|
173
|
-
oneOfType: getShim,
|
|
174
|
-
shape: getShim,
|
|
175
|
-
exact: getShim,
|
|
176
|
-
|
|
177
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
178
|
-
resetWarningCache: emptyFunction
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
182
|
-
|
|
183
|
-
return ReactPropTypes;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
/***/ }),
|
|
188
|
-
|
|
189
|
-
/***/ 5697:
|
|
190
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the MIT license found in the
|
|
196
|
-
* LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/
|
|
198
|
-
|
|
199
|
-
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
200
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
201
|
-
// http://fb.me/prop-types-in-prod
|
|
202
|
-
module.exports = __webpack_require__(2703)();
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
/***/ }),
|
|
207
|
-
|
|
208
|
-
/***/ 414:
|
|
116
|
+
/***/ 3474:
|
|
209
117
|
/***/ ((module) => {
|
|
210
118
|
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
214
|
-
*
|
|
215
|
-
* This source code is licensed under the MIT license found in the
|
|
216
|
-
* LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
222
|
-
|
|
223
|
-
module.exports = ReactPropTypesSecret;
|
|
224
|
-
|
|
119
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3474__;
|
|
225
120
|
|
|
226
121
|
/***/ }),
|
|
227
122
|
|
|
228
123
|
/***/ 9281:
|
|
229
124
|
/***/ ((module) => {
|
|
230
125
|
|
|
231
|
-
"use strict";
|
|
232
126
|
module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
233
127
|
|
|
234
128
|
/***/ })
|
|
@@ -302,16 +196,15 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
|
302
196
|
/******/
|
|
303
197
|
/************************************************************************/
|
|
304
198
|
var __webpack_exports__ = {};
|
|
305
|
-
// This entry need to be wrapped in an IIFE because it need to be in
|
|
199
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
306
200
|
(() => {
|
|
307
|
-
"use strict";
|
|
308
201
|
__webpack_require__.r(__webpack_exports__);
|
|
309
202
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
310
203
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
311
204
|
/* harmony export */ });
|
|
312
205
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
313
206
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
314
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
207
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
|
|
315
208
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
316
209
|
/* harmony import */ var _FeaturedLink_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5751);
|
|
317
210
|
|
|
@@ -1,26 +1,26 @@
|
|
|
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
15
|
/***/ 9008:
|
|
15
16
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
17
|
|
|
17
|
-
"use strict";
|
|
18
18
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
19
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20
20
|
/* harmony export */ });
|
|
21
21
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
22
22
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
23
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
|
|
24
24
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
25
|
var _excluded = ["name", "size", "color", "additionalCSS"];
|
|
26
26
|
|
|
@@ -64,121 +64,16 @@ Icon.propTypes = {
|
|
|
64
64
|
|
|
65
65
|
/***/ }),
|
|
66
66
|
|
|
67
|
-
/***/
|
|
68
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
69
|
-
|
|
70
|
-
"use strict";
|
|
71
|
-
/**
|
|
72
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the MIT license found in the
|
|
75
|
-
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var ReactPropTypesSecret = __webpack_require__(414);
|
|
81
|
-
|
|
82
|
-
function emptyFunction() {}
|
|
83
|
-
function emptyFunctionWithReset() {}
|
|
84
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
85
|
-
|
|
86
|
-
module.exports = function() {
|
|
87
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
88
|
-
if (secret === ReactPropTypesSecret) {
|
|
89
|
-
// It is still safe when called from React.
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
var err = new Error(
|
|
93
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
94
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
95
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
96
|
-
);
|
|
97
|
-
err.name = 'Invariant Violation';
|
|
98
|
-
throw err;
|
|
99
|
-
};
|
|
100
|
-
shim.isRequired = shim;
|
|
101
|
-
function getShim() {
|
|
102
|
-
return shim;
|
|
103
|
-
};
|
|
104
|
-
// Important!
|
|
105
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
106
|
-
var ReactPropTypes = {
|
|
107
|
-
array: shim,
|
|
108
|
-
bool: shim,
|
|
109
|
-
func: shim,
|
|
110
|
-
number: shim,
|
|
111
|
-
object: shim,
|
|
112
|
-
string: shim,
|
|
113
|
-
symbol: shim,
|
|
114
|
-
|
|
115
|
-
any: shim,
|
|
116
|
-
arrayOf: getShim,
|
|
117
|
-
element: shim,
|
|
118
|
-
elementType: shim,
|
|
119
|
-
instanceOf: getShim,
|
|
120
|
-
node: shim,
|
|
121
|
-
objectOf: getShim,
|
|
122
|
-
oneOf: getShim,
|
|
123
|
-
oneOfType: getShim,
|
|
124
|
-
shape: getShim,
|
|
125
|
-
exact: getShim,
|
|
126
|
-
|
|
127
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
128
|
-
resetWarningCache: emptyFunction
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
132
|
-
|
|
133
|
-
return ReactPropTypes;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
/***/ }),
|
|
138
|
-
|
|
139
|
-
/***/ 5697:
|
|
140
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the MIT license found in the
|
|
146
|
-
* LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
150
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
151
|
-
// http://fb.me/prop-types-in-prod
|
|
152
|
-
module.exports = __webpack_require__(2703)();
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/***/ }),
|
|
157
|
-
|
|
158
|
-
/***/ 414:
|
|
67
|
+
/***/ 3474:
|
|
159
68
|
/***/ ((module) => {
|
|
160
69
|
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the MIT license found in the
|
|
166
|
-
* LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
172
|
-
|
|
173
|
-
module.exports = ReactPropTypesSecret;
|
|
174
|
-
|
|
70
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3474__;
|
|
175
71
|
|
|
176
72
|
/***/ }),
|
|
177
73
|
|
|
178
74
|
/***/ 9281:
|
|
179
75
|
/***/ ((module) => {
|
|
180
76
|
|
|
181
|
-
"use strict";
|
|
182
77
|
module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
183
78
|
|
|
184
79
|
/***/ })
|
|
@@ -252,16 +147,15 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
|
252
147
|
/******/
|
|
253
148
|
/************************************************************************/
|
|
254
149
|
var __webpack_exports__ = {};
|
|
255
|
-
// This entry need to be wrapped in an IIFE because it need to be in
|
|
150
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
256
151
|
(() => {
|
|
257
|
-
"use strict";
|
|
258
152
|
__webpack_require__.r(__webpack_exports__);
|
|
259
153
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
260
154
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
261
155
|
/* harmony export */ });
|
|
262
156
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
263
157
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
264
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
158
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
|
|
265
159
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
266
160
|
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
|
|
267
161
|
|
|
@@ -350,7 +244,7 @@ var MeganavContentUseCases = function MeganavContentUseCases(_ref) {
|
|
|
350
244
|
className: "ui-meganav-media group"
|
|
351
245
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
352
246
|
className: "ui-meganav-media-heading"
|
|
353
|
-
}, "
|
|
247
|
+
}, "FinTech"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("p", {
|
|
354
248
|
className: "ui-meganav-media-copy"
|
|
355
249
|
}, "Deliver personalised financial data in realtime."))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", {
|
|
356
250
|
href: absUrl("/solutions/automotive-logistics-and-mobility"),
|
package/core/MeganavControl.jsx
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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
15
|
/***/ 9008:
|
|
15
16
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16
17
|
|
|
17
|
-
"use strict";
|
|
18
18
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
19
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20
20
|
/* harmony export */ });
|
|
21
21
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
22
22
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
23
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
23
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
|
|
24
24
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
25
25
|
var _excluded = ["name", "size", "color", "additionalCSS"];
|
|
26
26
|
|
|
@@ -64,121 +64,16 @@ Icon.propTypes = {
|
|
|
64
64
|
|
|
65
65
|
/***/ }),
|
|
66
66
|
|
|
67
|
-
/***/
|
|
68
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
69
|
-
|
|
70
|
-
"use strict";
|
|
71
|
-
/**
|
|
72
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the MIT license found in the
|
|
75
|
-
* LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var ReactPropTypesSecret = __webpack_require__(414);
|
|
81
|
-
|
|
82
|
-
function emptyFunction() {}
|
|
83
|
-
function emptyFunctionWithReset() {}
|
|
84
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
85
|
-
|
|
86
|
-
module.exports = function() {
|
|
87
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
88
|
-
if (secret === ReactPropTypesSecret) {
|
|
89
|
-
// It is still safe when called from React.
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
var err = new Error(
|
|
93
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
94
|
-
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
95
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
96
|
-
);
|
|
97
|
-
err.name = 'Invariant Violation';
|
|
98
|
-
throw err;
|
|
99
|
-
};
|
|
100
|
-
shim.isRequired = shim;
|
|
101
|
-
function getShim() {
|
|
102
|
-
return shim;
|
|
103
|
-
};
|
|
104
|
-
// Important!
|
|
105
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
106
|
-
var ReactPropTypes = {
|
|
107
|
-
array: shim,
|
|
108
|
-
bool: shim,
|
|
109
|
-
func: shim,
|
|
110
|
-
number: shim,
|
|
111
|
-
object: shim,
|
|
112
|
-
string: shim,
|
|
113
|
-
symbol: shim,
|
|
114
|
-
|
|
115
|
-
any: shim,
|
|
116
|
-
arrayOf: getShim,
|
|
117
|
-
element: shim,
|
|
118
|
-
elementType: shim,
|
|
119
|
-
instanceOf: getShim,
|
|
120
|
-
node: shim,
|
|
121
|
-
objectOf: getShim,
|
|
122
|
-
oneOf: getShim,
|
|
123
|
-
oneOfType: getShim,
|
|
124
|
-
shape: getShim,
|
|
125
|
-
exact: getShim,
|
|
126
|
-
|
|
127
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
128
|
-
resetWarningCache: emptyFunction
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
132
|
-
|
|
133
|
-
return ReactPropTypes;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
/***/ }),
|
|
138
|
-
|
|
139
|
-
/***/ 5697:
|
|
140
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the MIT license found in the
|
|
146
|
-
* LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
150
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
151
|
-
// http://fb.me/prop-types-in-prod
|
|
152
|
-
module.exports = __webpack_require__(2703)();
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
/***/ }),
|
|
157
|
-
|
|
158
|
-
/***/ 414:
|
|
67
|
+
/***/ 3474:
|
|
159
68
|
/***/ ((module) => {
|
|
160
69
|
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the MIT license found in the
|
|
166
|
-
* LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
172
|
-
|
|
173
|
-
module.exports = ReactPropTypesSecret;
|
|
174
|
-
|
|
70
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3474__;
|
|
175
71
|
|
|
176
72
|
/***/ }),
|
|
177
73
|
|
|
178
74
|
/***/ 9281:
|
|
179
75
|
/***/ ((module) => {
|
|
180
76
|
|
|
181
|
-
"use strict";
|
|
182
77
|
module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
183
78
|
|
|
184
79
|
/***/ })
|
|
@@ -252,16 +147,15 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
|
252
147
|
/******/
|
|
253
148
|
/************************************************************************/
|
|
254
149
|
var __webpack_exports__ = {};
|
|
255
|
-
// This entry need to be wrapped in an IIFE because it need to be in
|
|
150
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
256
151
|
(() => {
|
|
257
|
-
"use strict";
|
|
258
152
|
__webpack_require__.r(__webpack_exports__);
|
|
259
153
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
260
154
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
261
155
|
/* harmony export */ });
|
|
262
156
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9281);
|
|
263
157
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
264
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
158
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3474);
|
|
265
159
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
266
160
|
/* harmony import */ var _Icon_component_jsx__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9008);
|
|
267
161
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavControlMobileDropdown=t())}(this,(function(){return(()=>{var e={9581:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector("[data-id=".concat(e,"]"))}},6265:function(e){var t;t=function(){return function(e){var t={};function r(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,l){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(l,o,function(t){return e[t]}.bind(null,o));return l},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);var l=function(e){return Array.isArray(e)?e:[e]},o=function(e){return e instanceof Node},n=function(e,t){if(e&&t){e=function(e){return e instanceof NodeList}(e)?e:[e];for(var r=0;r<e.length&&!0!==t(e[r],r,e.length);r++);}},c=function(e){return console.error("[scroll-lock] ".concat(e))},a=function(e){if(Array.isArray(e))return e.join(", ")},i=function(e){var t=[];return n(e,(function(e){return t.push(e)})),t},u=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document;if(r&&-1!==i(l.querySelectorAll(t)).indexOf(e))return e;for(;(e=e.parentElement)&&-1===i(l.querySelectorAll(t)).indexOf(e););return e},d=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,l=-1!==i(r.querySelectorAll(t)).indexOf(e);return l},s=function(e){if(e)return"hidden"===getComputedStyle(e).overflow},f=function(e){if(e)return!!s(e)||e.scrollTop<=0},p=function(e){if(e){if(s(e))return!0;var t=e.scrollTop,r=e.scrollHeight;return t+e.offsetHeight>=r}},g=function(e){if(e)return!!s(e)||e.scrollLeft<=0},b=function(e){if(e){if(s(e))return!0;var t=e.scrollLeft,r=e.scrollWidth;return t+e.offsetWidth>=r}},v=function(e){return d(e,'textarea, [contenteditable="true"]')},h=function(e){return d(e,'input[type="range"]')};function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"disablePageScroll",(function(){return k})),r.d(t,"enablePageScroll",(function(){return w})),r.d(t,"getScrollState",(function(){return A})),r.d(t,"clearQueueScrollLocks",(function(){return x})),r.d(t,"getTargetScrollBarWidth",(function(){return L})),r.d(t,"getCurrentTargetScrollBarWidth",(function(){return G})),r.d(t,"getPageScrollBarWidth",(function(){return T})),r.d(t,"getCurrentPageScrollBarWidth",(function(){return P})),r.d(t,"addScrollableTarget",(function(){return W})),r.d(t,"removeScrollableTarget",(function(){return F})),r.d(t,"addScrollableSelector",(function(){return O})),r.d(t,"removeScrollableSelector",(function(){return E})),r.d(t,"addLockableTarget",(function(){return Y})),r.d(t,"addLockableSelector",(function(){return j})),r.d(t,"setFillGapMethod",(function(){return q})),r.d(t,"addFillGapTarget",(function(){return M})),r.d(t,"removeFillGapTarget",(function(){return U})),r.d(t,"addFillGapSelector",(function(){return C})),r.d(t,"removeFillGapSelector",(function(){return N})),r.d(t,"refillGaps",(function(){return B}));var y=["padding","margin","width","max-width","none"],S={scroll:!0,queue:0,scrollableSelectors:["[data-scroll-lock-scrollable]"],lockableSelectors:["body","[data-scroll-lock-lockable]"],fillGapSelectors:["body","[data-scroll-lock-fill-gap]","[data-scroll-lock-lockable]"],fillGapMethod:y[0],startTouchY:0,startTouchX:0},k=function(e){S.queue<=0&&(S.scroll=!1,K(),H()),W(e),S.queue++},w=function(e){S.queue>0&&S.queue--,S.queue<=0&&(S.scroll=!0,R(),z()),F(e)},A=function(){return S.scroll},x=function(){S.queue=0},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o(e)){var r=e.style.overflowY;t?A()||(e.style.overflowY=e.getAttribute("data-scroll-lock-saved-overflow-y-property")):e.style.overflowY="scroll";var l=G(e);return e.style.overflowY=r,l}return 0},G=function(e){if(o(e)){if(e===document.body){var t=document.documentElement.clientWidth;return window.innerWidth-t}var r=e.style.borderLeftWidth,l=e.style.borderRightWidth;e.style.borderLeftWidth="0px",e.style.borderRightWidth="0px";var n=e.offsetWidth-e.clientWidth;return e.style.borderLeftWidth=r,e.style.borderRightWidth=l,n}return 0},T=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return L(document.body,e)},P=function(){return G(document.body)},W=function(e){e&&l(e).map((function(e){n(e,(function(e){o(e)?e.setAttribute("data-scroll-lock-scrollable",""):c('"'.concat(e,'" is not a Element.'))}))}))},F=function(e){e&&l(e).map((function(e){n(e,(function(e){o(e)?e.removeAttribute("data-scroll-lock-scrollable"):c('"'.concat(e,'" is not a Element.'))}))}))},O=function(e){e&&l(e).map((function(e){S.scrollableSelectors.push(e)}))},E=function(e){e&&l(e).map((function(e){S.scrollableSelectors=S.scrollableSelectors.filter((function(t){return t!==e}))}))},Y=function(e){e&&(l(e).map((function(e){n(e,(function(e){o(e)?e.setAttribute("data-scroll-lock-lockable",""):c('"'.concat(e,'" is not a Element.'))}))})),A()||K())},j=function(e){e&&(l(e).map((function(e){S.lockableSelectors.push(e)})),A()||K(),C(e))},q=function(e){if(e)if(-1!==y.indexOf(e))S.fillGapMethod=e,B();else{var t=y.join(", ");c('"'.concat(e,'" method is not available!\nAvailable fill gap methods: ').concat(t,"."))}},M=function(e){e&&l(e).map((function(e){n(e,(function(e){o(e)?(e.setAttribute("data-scroll-lock-fill-gap",""),S.scroll||J(e)):c('"'.concat(e,'" is not a Element.'))}))}))},U=function(e){e&&l(e).map((function(e){n(e,(function(e){o(e)?(e.removeAttribute("data-scroll-lock-fill-gap"),S.scroll||Z(e)):c('"'.concat(e,'" is not a Element.'))}))}))},C=function(e){e&&l(e).map((function(e){-1===S.fillGapSelectors.indexOf(e)&&(S.fillGapSelectors.push(e),S.scroll||I(e))}))},N=function(e){e&&l(e).map((function(e){S.fillGapSelectors=S.fillGapSelectors.filter((function(t){return t!==e})),S.scroll||V(e)}))},B=function(){S.scroll||H()},K=function(){var e=a(S.lockableSelectors);_(e)},R=function(){var e=a(S.lockableSelectors);X(e)},_=function(e){var t=document.querySelectorAll(e);n(t,(function(e){D(e)}))},X=function(e){var t=document.querySelectorAll(e);n(t,(function(e){Q(e)}))},D=function(e){if(o(e)&&"true"!==e.getAttribute("data-scroll-lock-locked")){var t=window.getComputedStyle(e);e.setAttribute("data-scroll-lock-saved-overflow-y-property",t.overflowY),e.setAttribute("data-scroll-lock-saved-inline-overflow-property",e.style.overflow),e.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",e.style.overflowY),e.style.overflow="hidden",e.setAttribute("data-scroll-lock-locked","true")}},Q=function(e){o(e)&&"true"===e.getAttribute("data-scroll-lock-locked")&&(e.style.overflow=e.getAttribute("data-scroll-lock-saved-inline-overflow-property"),e.style.overflowY=e.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),e.removeAttribute("data-scroll-lock-saved-overflow-property"),e.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),e.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),e.removeAttribute("data-scroll-lock-locked"))},H=function(){S.fillGapSelectors.map((function(e){I(e)}))},z=function(){S.fillGapSelectors.map((function(e){V(e)}))},I=function(e){var t=document.querySelectorAll(e),r=-1!==S.lockableSelectors.indexOf(e);n(t,(function(e){J(e,r)}))},J=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(o(e)){var r;if(""===e.getAttribute("data-scroll-lock-lockable")||t)r=L(e,!0);else{var l=u(e,a(S.lockableSelectors));r=L(l,!0)}"true"===e.getAttribute("data-scroll-lock-filled-gap")&&Z(e);var n=window.getComputedStyle(e);if(e.setAttribute("data-scroll-lock-filled-gap","true"),e.setAttribute("data-scroll-lock-current-fill-gap-method",S.fillGapMethod),"margin"===S.fillGapMethod){var c=parseFloat(n.marginRight);e.style.marginRight="".concat(c+r,"px")}else if("width"===S.fillGapMethod)e.style.width="calc(100% - ".concat(r,"px)");else if("max-width"===S.fillGapMethod)e.style.maxWidth="calc(100% - ".concat(r,"px)");else if("padding"===S.fillGapMethod){var i=parseFloat(n.paddingRight);e.style.paddingRight="".concat(i+r,"px")}}},V=function(e){var t=document.querySelectorAll(e);n(t,(function(e){Z(e)}))},Z=function(e){if(o(e)&&"true"===e.getAttribute("data-scroll-lock-filled-gap")){var t=e.getAttribute("data-scroll-lock-current-fill-gap-method");e.removeAttribute("data-scroll-lock-filled-gap"),e.removeAttribute("data-scroll-lock-current-fill-gap-method"),"margin"===t?e.style.marginRight="":"width"===t?e.style.width="":"max-width"===t?e.style.maxWidth="":"padding"===t&&(e.style.paddingRight="")}};"undefined"!=typeof window&&window.addEventListener("resize",(function(e){B()})),"undefined"!=typeof document&&(document.addEventListener("touchstart",(function(e){S.scroll||(S.startTouchY=e.touches[0].clientY,S.startTouchX=e.touches[0].clientX)})),document.addEventListener("touchmove",(function(e){if(!S.scroll){var t=S.startTouchY,r=S.startTouchX,l=e.touches[0].clientY,o=e.touches[0].clientX;if(e.touches.length<2){var n=a(S.scrollableSelectors),c={up:t<l,down:t>l,left:r<o,right:r>o},i={up:t+3<l,down:t-3>l,left:r+3<o,right:r-3>o};!function t(r){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r){var o=u(r,n,!1);if(h(r))return!1;if(l||v(r)&&u(r,n)||d(r,n)){var a=!1;g(r)&&b(r)?(c.up&&f(r)||c.down&&p(r))&&(a=!0):f(r)&&p(r)?(c.left&&g(r)||c.right&&b(r))&&(a=!0):(i.up&&f(r)||i.down&&p(r)||i.left&&g(r)||i.right&&b(r))&&(a=!0),a&&(o?t(o,!0):e.cancelable&&e.preventDefault())}else t(o)}else e.cancelable&&e.preventDefault()}(e.target)}}}),{passive:!1}),document.addEventListener("touchend",(function(e){S.scroll||(S.startTouchY=0,S.startTouchX=0)})));var $={hide:function(e){c('"hide" is deprecated! Use "disablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget'),k(e)},show:function(e){c('"show" is deprecated! Use "enablePageScroll" instead. \n https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget'),w(e)},toggle:function(e){c('"toggle" is deprecated! Do not use it.'),A()?k():w(e)},getState:function(){return c('"getState" is deprecated! Use "getScrollState" instead. \n https://github.com/FL3NKEY/scroll-lock#getscrollstate'),A()},getWidth:function(){return c('"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth'),T()},getCurrentWidth:function(){return c('"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead. \n https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth'),P()},setScrollableTargets:function(e){c('"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget'),W(e)},setFillGapSelectors:function(e){c('"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector'),C(e)},setFillGapTargets:function(e){c('"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead. \n https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget'),M(e)},clearQueue:function(){c('"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead. \n https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks'),x()}},ee=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},l=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),l.forEach((function(t){m(e,t,r[t])}))}return e}({disablePageScroll:k,enablePageScroll:w,getScrollState:A,clearQueueScrollLocks:x,getTargetScrollBarWidth:L,getCurrentTargetScrollBarWidth:G,getPageScrollBarWidth:T,getCurrentPageScrollBarWidth:P,addScrollableSelector:O,removeScrollableSelector:E,addScrollableTarget:W,removeScrollableTarget:F,addLockableSelector:j,addLockableTarget:Y,addFillGapSelector:C,removeFillGapSelector:N,addFillGapTarget:M,removeFillGapTarget:U,setFillGapMethod:q,refillGaps:B,_state:S},$);t.default=ee}]).default},e.exports=t()}},t={};function r(l){var o=t[l];if(void 0!==o)return o.exports;var n=t[l]={exports:{}};return e[l].call(n.exports,n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var l in t)r.o(t,l)&&!r.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};return(()=>{"use strict";r.d(l,{default:()=>n});var e=r(6265),t=r.n(e),o=r(9581);const n=function(e){var r=e.clearPanels,l=(0,o.A)("meganav-control-mobile-dropdown"),n=(0,o.A)("meganav-mobile-dropdown"),c=(0,o.A)("meganav-control-mobile-dropdown-menu"),a=(0,o.A)("meganav-control-mobile-dropdown-close"),i=function(){"false"===l.getAttribute("aria-expanded")?(n.classList.replace("invisible","visible"),l.setAttribute("aria-expanded",!0),t().disablePageScroll()):(n.classList.replace("visible","invisible"),l.setAttribute("aria-expanded",!1),t().enablePageScroll(),r()),c.classList.toggle("hidden"),a.classList.toggle("hidden")};return l.addEventListener("click",i),{teardown:function(){l.removeEventListener("click",i),t().enablePageScroll()},clear:function(){n.classList.replace("visible","invisible"),l.setAttribute("aria-expanded",!1),c.classList.remove("hidden"),a.classList.add("hidden"),t().enablePageScroll()}}}})(),l.default})()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("scroll-lock")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t(require("scroll-lock")):(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavControlMobileDropdown=t(e[void 0]))}(this,(function(e){return(()=>{"use strict";var t={9581:(e,t,o)=>{o.d(t,{A:()=>r});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector("[data-id=".concat(e,"]"))}},6833:t=>{t.exports=e}},o={};function r(e){var i=o[e];if(void 0!==i)return i.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{r.d(i,{default:()=>n});var e=r(6833),t=r.n(e),o=r(9581);const n=function(e){var r=e.clearPanels,i=(0,o.A)("meganav-control-mobile-dropdown"),n=(0,o.A)("meganav-mobile-dropdown"),l=(0,o.A)("meganav-control-mobile-dropdown-menu"),a=(0,o.A)("meganav-control-mobile-dropdown-close"),s=function(){"false"===i.getAttribute("aria-expanded")?(n.classList.replace("invisible","visible"),i.setAttribute("aria-expanded",!0),t().disablePageScroll()):(n.classList.replace("visible","invisible"),i.setAttribute("aria-expanded",!1),t().enablePageScroll(),r()),l.classList.toggle("hidden"),a.classList.toggle("hidden")};return i.addEventListener("click",s),{teardown:function(){i.removeEventListener("click",s),t().enablePageScroll()},clear:function(){n.classList.replace("visible","invisible"),i.setAttribute("aria-expanded",!1),l.classList.remove("hidden"),a.classList.add("hidden"),t().enablePageScroll()}}}})(),i.default})()}));
|