@ably/ui 5.0.1-dev.baf5b97.0 → 5.3.0-dev.3c981a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/.gitignore +1 -0
- package/core/Code/component.css +70 -0
- package/core/Code/component.js +1 -0
- package/core/Code.jsx +7578 -0
- package/core/ConnectStateWrapper/component.js +1 -0
- package/core/ConnectStateWrapper.jsx +213 -0
- package/core/ContactFooter/component.css +12 -0
- package/core/ContactFooter/component.js +1 -0
- package/core/ContactFooter.jsx +448 -0
- package/core/CookieMessage/component.css +14 -0
- package/core/CookieMessage/component.js +1 -0
- package/core/CookieMessage.jsx +476 -0
- package/core/CustomerLogos/component.js +1 -0
- package/core/CustomerLogos.jsx +246 -0
- package/core/FeatureFooter/component.css +13 -0
- package/core/FeatureFooter/component.js +1 -0
- package/core/FeatureFooter.jsx +17 -0
- package/core/FeaturedLink/component.css +16 -0
- package/core/FeaturedLink/component.js +1 -0
- package/core/FeaturedLink.jsx +307 -0
- package/core/Flash/component.css +30 -0
- package/core/Flash/component.js +1 -0
- package/core/Flash.jsx +2002 -0
- package/core/Footer/component.css +14 -0
- package/core/Footer/component.js +1 -0
- package/core/Footer.jsx +593 -0
- package/core/Icon/component.css +1 -0
- package/core/Icon/component.js +1 -0
- package/core/Icon.jsx +257 -0
- package/core/Logo/component.js +1 -0
- package/core/Logo.jsx +302 -0
- package/core/Meganav/component.css +103 -0
- package/core/Meganav/component.js +1 -0
- package/core/Meganav/component.json +37 -0
- package/core/Meganav.jsx +6514 -0
- package/core/MeganavBlogPostsList/component.js +1 -0
- package/core/MeganavBlogPostsList.jsx +360 -0
- package/core/MeganavContentDevelopers/component.js +1 -0
- package/core/MeganavContentDevelopers.jsx +418 -0
- package/core/MeganavContentPlatform/component.js +1 -0
- package/core/MeganavContentPlatform.jsx +440 -0
- package/core/MeganavContentUseCases/component.js +1 -0
- package/core/MeganavContentUseCases.jsx +309 -0
- package/core/MeganavContentWhyAbly/component.js +1 -0
- package/core/MeganavContentWhyAbly.jsx +1471 -0
- package/core/MeganavControl/component.js +1 -0
- package/core/MeganavControl.jsx +301 -0
- package/core/MeganavControlMobileDropdown/component.js +1 -0
- package/core/MeganavControlMobileDropdown.jsx +303 -0
- package/core/MeganavControlMobilePanelClose/component.js +1 -0
- package/core/MeganavControlMobilePanelClose.jsx +301 -0
- package/core/MeganavControlMobilePanelOpen/component.js +1 -0
- package/core/MeganavControlMobilePanelOpen.jsx +299 -0
- package/core/MeganavItemsDesktop/component.js +1 -0
- package/core/MeganavItemsDesktop.jsx +377 -0
- package/core/MeganavItemsMobile/component.js +1 -0
- package/core/MeganavItemsMobile.jsx +581 -0
- package/core/MeganavItemsSignedIn/component.js +1 -0
- package/core/MeganavItemsSignedIn.jsx +461 -0
- package/core/Notice/component.css +8 -0
- package/core/Notice/component.js +2 -0
- package/core/Notice/component.js.LICENSE.txt +9 -0
- package/core/Notice.jsx +2915 -0
- package/core/Showcase/component.css +31 -0
- package/core/Showcase/component.js +1 -0
- package/core/Showcase.jsx +17 -0
- package/core/SignOutLink/component.js +1 -0
- package/core/SignOutLink.jsx +262 -0
- package/core/Slider/component.css +9 -0
- package/core/Slider/component.js +1 -0
- package/core/Slider.jsx +957 -0
- package/core/Test/component.js +59 -0
- package/core/Test.jsx +4 -0
- package/core/Uptime/component.css +129 -0
- package/core/Uptime/component.js +1 -0
- package/core/Uptime.jsx +1373 -0
- package/core/core.base.css +1 -0
- package/core/core.components.css +49 -0
- package/core/fonts/.DS_Store +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.eot +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.otf +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.woff +0 -0
- package/core/fonts/NEXT-Book-Light-Italic.woff2 +0 -0
- package/core/fonts/NEXT-Book-Light.eot +0 -0
- package/core/fonts/NEXT-Book-Light.otf +0 -0
- package/core/fonts/NEXT-Book-Light.woff +0 -0
- package/core/fonts/NEXT-Book-Light.woff2 +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.eot +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.otf +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.woff +0 -0
- package/core/fonts/NEXT-Book-Medium-Italic.woff2 +0 -0
- package/core/fonts/NEXT-Book-Medium.eot +0 -0
- package/core/fonts/NEXT-Book-Medium.otf +0 -0
- package/core/fonts/NEXT-Book-Medium.woff +0 -0
- package/core/fonts/NEXT-Book-Medium.woff2 +0 -0
- package/core/fonts/next.css +59 -0
- package/core/images/.DS_Store +0 -0
- package/core/images/ably-logo.svg +15 -0
- package/core/images/ably-stack.svg +14 -0
- package/core/images/blog-thumb1.jpg +0 -0
- package/core/images/blog-thumb2.jpg +0 -0
- package/core/images/blog-thumb3.jpg +0 -0
- package/core/images/cust-logo-ao-col-pos.png +0 -0
- package/core/images/cust-logo-ao-col-pos@2x.png +0 -0
- package/core/images/cust-logo-ausopen-col-pos.png +0 -0
- package/core/images/cust-logo-ausopen-col-pos@2x.png +0 -0
- package/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
- package/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
- package/core/images/cust-logo-hopin-mono-pos.svg +4 -0
- package/core/images/cust-logo-hubspot-col-pos.png +0 -0
- package/core/images/cust-logo-hubspot-col-pos@2x.png +0 -0
- package/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
- package/core/images/cust-logo-lightspeed-col-pos.png +0 -0
- package/core/images/cust-logo-lightspeed-col-pos@2x.png +0 -0
- package/core/images/cust-logo-lightspeed-syst-col-pos.png +0 -0
- package/core/images/cust-logo-lightspeed-syst-col-pos@2x.png +0 -0
- package/core/images/cust-logo-split-col-pos.png +0 -0
- package/core/images/cust-logo-split-col-pos@2x.png +0 -0
- package/core/images/cust-logo-split-mono-pos.svg +9 -0
- package/core/images/cust-logo-toyota-mono-pos.svg +18 -0
- package/core/images/cust-logo-vitac-col-pos.png +0 -0
- package/core/images/cust-logo-vitac-col-pos@2x.png +0 -0
- package/core/images/cust-photo-hubspot-max-freiert.jpg +0 -0
- package/core/images/cust-photo-split-pato-echague.jpg +0 -0
- package/core/images/cust-photo-vitac-joe-antonio.jpg +0 -0
- package/core/images/flexible-companies.png +0 -0
- package/core/images/rocket-list-2021.png +0 -0
- package/core/images/scale-motif-open-empathetic.svg +1 -0
- package/core/images/technical-support-01-800x533.jpg +0 -0
- package/core/scripts.js +1 -0
- package/core/sprites.svg +130 -0
- package/core/styles.base.css +1 -0
- package/core/styles.components.css +49 -0
- package/core/styles.css +560 -0
- package/package.json +1 -1
- package/preview/log/.keep +0 -0
- package/preview/tmp/.keep +0 -0
- package/preview/tmp/pids/.keep +0 -0
- package/reset/.gitignore +1 -0
- package/reset/scripts.js +1 -0
- package/reset/styles.css +487 -0
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Code/component.html.erb +3 -3
- package/src/core/Code/component.jsx +3 -2
- package/src/core/Code/component.rb +2 -1
- package/src/core/CustomerLogos/component.html.erb +9 -0
- package/src/core/CustomerLogos/component.js +0 -0
- package/src/core/CustomerLogos/component.jsx +27 -0
- package/src/core/CustomerLogos/component.rb +13 -0
- package/src/core/FeaturedLink/component.css +1 -2
- package/src/core/FeaturedLink/component.html.erb +1 -1
- package/src/core/FeaturedLink/component.rb +3 -1
- package/src/core/MeganavItemsSignedIn/component.html.erb +1 -1
- package/src/core/MeganavItemsSignedIn/component.jsx +1 -1
- package/src/core/Slider/component.html.erb +2 -2
- package/src/core/Slider/component.js +2 -2
- package/src/core/Slider/component.jsx +2 -2
- package/src/core/icons/icon-display-api-keys.svg +3 -0
- package/src/core/icons/icon-display-cloud-servers.svg +3 -0
- package/src/core/icons/icon-display-map-pin.svg +1 -1
- package/src/core/icons/icon-display-servers.svg +3 -0
- package/src/core/icons/icon-gui-history.svg +3 -0
- package/src/core/icons/icon-gui-refresh.svg +10 -0
- package/src/core/images/cust-logo-ausopen-mono-pos.svg +5 -0
- package/src/core/images/cust-logo-bloomberg-mono-pos.svg +11 -0
- package/src/core/images/cust-logo-hopin-mono-pos.svg +4 -0
- package/src/core/images/cust-logo-hubspot-mono-pos.svg +4 -0
- package/src/core/images/cust-logo-split-mono-pos.svg +9 -0
- package/src/core/images/cust-logo-toyota-mono-pos.svg +18 -0
- package/src/core/styles/buttons.css +91 -4
- package/src/core/styles/forms.css +50 -0
- package/src/core/styles/properties.css +34 -6
- package/src/core/styles/text.css +62 -1
- package/src/core/styles.components.css +1 -0
- package/tailwind.config.js +22 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.ui-cookie-message {
|
|
3
|
+
@apply rounded-lg bg-white font-sans;
|
|
4
|
+
@apply justify-between items-center;
|
|
5
|
+
@apply opacity-100 z-50 bottom-0 fixed sm:flex;
|
|
6
|
+
@apply p-16 mb-16 ml-16;
|
|
7
|
+
max-width: 70vw;
|
|
8
|
+
box-shadow: 0px 24px 32px 0px #0000000d;
|
|
9
|
+
border: 1px solid var(--color-mid-grey);
|
|
10
|
+
border-left: 0.5rem solid var(--color-electric-cyan);
|
|
11
|
+
transition: bottom 250ms ease-out, opacity 150ms ease-out;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
@@ -0,0 +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.CookieMessage=o())}(this,(function(){return(()=>{"use strict";var e={};return e.default})()}));
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("react")) : factory(root[undefined]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__9281__) {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ var __webpack_modules__ = ({
|
|
13
|
+
|
|
14
|
+
/***/ 6808:
|
|
15
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
16
|
+
|
|
17
|
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
18
|
+
* JavaScript Cookie v2.2.1
|
|
19
|
+
* https://github.com/js-cookie/js-cookie
|
|
20
|
+
*
|
|
21
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
22
|
+
* Released under the MIT license
|
|
23
|
+
*/
|
|
24
|
+
;(function (factory) {
|
|
25
|
+
var registeredInModuleLoader;
|
|
26
|
+
if (true) {
|
|
27
|
+
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
28
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
29
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
30
|
+
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
31
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
32
|
+
registeredInModuleLoader = true;
|
|
33
|
+
}
|
|
34
|
+
if (true) {
|
|
35
|
+
module.exports = factory();
|
|
36
|
+
registeredInModuleLoader = true;
|
|
37
|
+
}
|
|
38
|
+
if (!registeredInModuleLoader) {
|
|
39
|
+
var OldCookies = window.Cookies;
|
|
40
|
+
var api = window.Cookies = factory();
|
|
41
|
+
api.noConflict = function () {
|
|
42
|
+
window.Cookies = OldCookies;
|
|
43
|
+
return api;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}(function () {
|
|
47
|
+
function extend () {
|
|
48
|
+
var i = 0;
|
|
49
|
+
var result = {};
|
|
50
|
+
for (; i < arguments.length; i++) {
|
|
51
|
+
var attributes = arguments[ i ];
|
|
52
|
+
for (var key in attributes) {
|
|
53
|
+
result[key] = attributes[key];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function decode (s) {
|
|
60
|
+
return s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function init (converter) {
|
|
64
|
+
function api() {}
|
|
65
|
+
|
|
66
|
+
function set (key, value, attributes) {
|
|
67
|
+
if (typeof document === 'undefined') {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
attributes = extend({
|
|
72
|
+
path: '/'
|
|
73
|
+
}, api.defaults, attributes);
|
|
74
|
+
|
|
75
|
+
if (typeof attributes.expires === 'number') {
|
|
76
|
+
attributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// We're using "expires" because "max-age" is not supported by IE
|
|
80
|
+
attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';
|
|
81
|
+
|
|
82
|
+
try {
|
|
83
|
+
var result = JSON.stringify(value);
|
|
84
|
+
if (/^[\{\[]/.test(result)) {
|
|
85
|
+
value = result;
|
|
86
|
+
}
|
|
87
|
+
} catch (e) {}
|
|
88
|
+
|
|
89
|
+
value = converter.write ?
|
|
90
|
+
converter.write(value, key) :
|
|
91
|
+
encodeURIComponent(String(value))
|
|
92
|
+
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
|
|
93
|
+
|
|
94
|
+
key = encodeURIComponent(String(key))
|
|
95
|
+
.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
|
|
96
|
+
.replace(/[\(\)]/g, escape);
|
|
97
|
+
|
|
98
|
+
var stringifiedAttributes = '';
|
|
99
|
+
for (var attributeName in attributes) {
|
|
100
|
+
if (!attributes[attributeName]) {
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
stringifiedAttributes += '; ' + attributeName;
|
|
104
|
+
if (attributes[attributeName] === true) {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Considers RFC 6265 section 5.2:
|
|
109
|
+
// ...
|
|
110
|
+
// 3. If the remaining unparsed-attributes contains a %x3B (";")
|
|
111
|
+
// character:
|
|
112
|
+
// Consume the characters of the unparsed-attributes up to,
|
|
113
|
+
// not including, the first %x3B (";") character.
|
|
114
|
+
// ...
|
|
115
|
+
stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return (document.cookie = key + '=' + value + stringifiedAttributes);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function get (key, json) {
|
|
122
|
+
if (typeof document === 'undefined') {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
var jar = {};
|
|
127
|
+
// To prevent the for loop in the first place assign an empty array
|
|
128
|
+
// in case there are no cookies at all.
|
|
129
|
+
var cookies = document.cookie ? document.cookie.split('; ') : [];
|
|
130
|
+
var i = 0;
|
|
131
|
+
|
|
132
|
+
for (; i < cookies.length; i++) {
|
|
133
|
+
var parts = cookies[i].split('=');
|
|
134
|
+
var cookie = parts.slice(1).join('=');
|
|
135
|
+
|
|
136
|
+
if (!json && cookie.charAt(0) === '"') {
|
|
137
|
+
cookie = cookie.slice(1, -1);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
try {
|
|
141
|
+
var name = decode(parts[0]);
|
|
142
|
+
cookie = (converter.read || converter)(cookie, name) ||
|
|
143
|
+
decode(cookie);
|
|
144
|
+
|
|
145
|
+
if (json) {
|
|
146
|
+
try {
|
|
147
|
+
cookie = JSON.parse(cookie);
|
|
148
|
+
} catch (e) {}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
jar[name] = cookie;
|
|
152
|
+
|
|
153
|
+
if (key === name) {
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
} catch (e) {}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return key ? jar[key] : jar;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
api.set = set;
|
|
163
|
+
api.get = function (key) {
|
|
164
|
+
return get(key, false /* read as raw */);
|
|
165
|
+
};
|
|
166
|
+
api.getJSON = function (key) {
|
|
167
|
+
return get(key, true /* read as json */);
|
|
168
|
+
};
|
|
169
|
+
api.remove = function (key, attributes) {
|
|
170
|
+
set(key, '', extend(attributes, {
|
|
171
|
+
expires: -1
|
|
172
|
+
}));
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
api.defaults = {};
|
|
176
|
+
|
|
177
|
+
api.withConverter = init;
|
|
178
|
+
|
|
179
|
+
return api;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return init(function () {});
|
|
183
|
+
}));
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/***/ }),
|
|
187
|
+
|
|
188
|
+
/***/ 2703:
|
|
189
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
190
|
+
|
|
191
|
+
"use strict";
|
|
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
|
+
|
|
200
|
+
|
|
201
|
+
var ReactPropTypesSecret = __webpack_require__(414);
|
|
202
|
+
|
|
203
|
+
function emptyFunction() {}
|
|
204
|
+
function emptyFunctionWithReset() {}
|
|
205
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
206
|
+
|
|
207
|
+
module.exports = function() {
|
|
208
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
209
|
+
if (secret === ReactPropTypesSecret) {
|
|
210
|
+
// It is still safe when called from React.
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
var err = new Error(
|
|
214
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
215
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
216
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
217
|
+
);
|
|
218
|
+
err.name = 'Invariant Violation';
|
|
219
|
+
throw err;
|
|
220
|
+
};
|
|
221
|
+
shim.isRequired = shim;
|
|
222
|
+
function getShim() {
|
|
223
|
+
return shim;
|
|
224
|
+
};
|
|
225
|
+
// Important!
|
|
226
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
227
|
+
var ReactPropTypes = {
|
|
228
|
+
array: shim,
|
|
229
|
+
bool: shim,
|
|
230
|
+
func: shim,
|
|
231
|
+
number: shim,
|
|
232
|
+
object: shim,
|
|
233
|
+
string: shim,
|
|
234
|
+
symbol: shim,
|
|
235
|
+
|
|
236
|
+
any: shim,
|
|
237
|
+
arrayOf: getShim,
|
|
238
|
+
element: shim,
|
|
239
|
+
elementType: shim,
|
|
240
|
+
instanceOf: getShim,
|
|
241
|
+
node: shim,
|
|
242
|
+
objectOf: getShim,
|
|
243
|
+
oneOf: getShim,
|
|
244
|
+
oneOfType: getShim,
|
|
245
|
+
shape: getShim,
|
|
246
|
+
exact: getShim,
|
|
247
|
+
|
|
248
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
249
|
+
resetWarningCache: emptyFunction
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
253
|
+
|
|
254
|
+
return ReactPropTypes;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
/***/ }),
|
|
259
|
+
|
|
260
|
+
/***/ 5697:
|
|
261
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the MIT license found in the
|
|
267
|
+
* LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
if (false) { var throwOnDirectAccess, ReactIs; } else {
|
|
271
|
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
272
|
+
// http://fb.me/prop-types-in-prod
|
|
273
|
+
module.exports = __webpack_require__(2703)();
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/***/ }),
|
|
278
|
+
|
|
279
|
+
/***/ 414:
|
|
280
|
+
/***/ ((module) => {
|
|
281
|
+
|
|
282
|
+
"use strict";
|
|
283
|
+
/**
|
|
284
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
285
|
+
*
|
|
286
|
+
* This source code is licensed under the MIT license found in the
|
|
287
|
+
* LICENSE file in the root directory of this source tree.
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
293
|
+
|
|
294
|
+
module.exports = ReactPropTypesSecret;
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
/***/ }),
|
|
298
|
+
|
|
299
|
+
/***/ 9281:
|
|
300
|
+
/***/ ((module) => {
|
|
301
|
+
|
|
302
|
+
"use strict";
|
|
303
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9281__;
|
|
304
|
+
|
|
305
|
+
/***/ })
|
|
306
|
+
|
|
307
|
+
/******/ });
|
|
308
|
+
/************************************************************************/
|
|
309
|
+
/******/ // The module cache
|
|
310
|
+
/******/ var __webpack_module_cache__ = {};
|
|
311
|
+
/******/
|
|
312
|
+
/******/ // The require function
|
|
313
|
+
/******/ function __webpack_require__(moduleId) {
|
|
314
|
+
/******/ // Check if module is in cache
|
|
315
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
316
|
+
/******/ if (cachedModule !== undefined) {
|
|
317
|
+
/******/ return cachedModule.exports;
|
|
318
|
+
/******/ }
|
|
319
|
+
/******/ // Create a new module (and put it into the cache)
|
|
320
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
321
|
+
/******/ // no module.id needed
|
|
322
|
+
/******/ // no module.loaded needed
|
|
323
|
+
/******/ exports: {}
|
|
324
|
+
/******/ };
|
|
325
|
+
/******/
|
|
326
|
+
/******/ // Execute the module function
|
|
327
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
328
|
+
/******/
|
|
329
|
+
/******/ // Return the exports of the module
|
|
330
|
+
/******/ return module.exports;
|
|
331
|
+
/******/ }
|
|
332
|
+
/******/
|
|
333
|
+
/************************************************************************/
|
|
334
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
335
|
+
/******/ (() => {
|
|
336
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
337
|
+
/******/ __webpack_require__.n = (module) => {
|
|
338
|
+
/******/ var getter = module && module.__esModule ?
|
|
339
|
+
/******/ () => (module['default']) :
|
|
340
|
+
/******/ () => (module);
|
|
341
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
342
|
+
/******/ return getter;
|
|
343
|
+
/******/ };
|
|
344
|
+
/******/ })();
|
|
345
|
+
/******/
|
|
346
|
+
/******/ /* webpack/runtime/define property getters */
|
|
347
|
+
/******/ (() => {
|
|
348
|
+
/******/ // define getter functions for harmony exports
|
|
349
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
350
|
+
/******/ for(var key in definition) {
|
|
351
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
352
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
353
|
+
/******/ }
|
|
354
|
+
/******/ }
|
|
355
|
+
/******/ };
|
|
356
|
+
/******/ })();
|
|
357
|
+
/******/
|
|
358
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
359
|
+
/******/ (() => {
|
|
360
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
361
|
+
/******/ })();
|
|
362
|
+
/******/
|
|
363
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
364
|
+
/******/ (() => {
|
|
365
|
+
/******/ // define __esModule on exports
|
|
366
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
367
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
368
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
369
|
+
/******/ }
|
|
370
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
371
|
+
/******/ };
|
|
372
|
+
/******/ })();
|
|
373
|
+
/******/
|
|
374
|
+
/************************************************************************/
|
|
375
|
+
var __webpack_exports__ = {};
|
|
376
|
+
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
377
|
+
(() => {
|
|
378
|
+
"use strict";
|
|
379
|
+
// ESM COMPAT FLAG
|
|
380
|
+
__webpack_require__.r(__webpack_exports__);
|
|
381
|
+
|
|
382
|
+
// EXPORTS
|
|
383
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
384
|
+
"default": () => (/* binding */ CookieMessage)
|
|
385
|
+
});
|
|
386
|
+
|
|
387
|
+
// EXTERNAL MODULE: external {"commonjs":"react","commonjs2":"react"}
|
|
388
|
+
var external_commonjs_react_commonjs2_react_ = __webpack_require__(9281);
|
|
389
|
+
var external_commonjs_react_commonjs2_react_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_react_commonjs2_react_);
|
|
390
|
+
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
391
|
+
var prop_types = __webpack_require__(5697);
|
|
392
|
+
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
393
|
+
// EXTERNAL MODULE: ./node_modules/js-cookie/src/js.cookie.js
|
|
394
|
+
var js_cookie = __webpack_require__(6808);
|
|
395
|
+
var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie);
|
|
396
|
+
;// CONCATENATED MODULE: ./src/core/url-base.js
|
|
397
|
+
var DEFAULT_URL_BASE = "";
|
|
398
|
+
|
|
399
|
+
var absUrl = function absUrl(path) {
|
|
400
|
+
var urlBase = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_URL_BASE;
|
|
401
|
+
return "".concat(urlBase).concat(path);
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
/* harmony default export */ const url_base = (absUrl);
|
|
405
|
+
;// CONCATENATED MODULE: ./src/core/CookieMessage/component.jsx
|
|
406
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
407
|
+
|
|
408
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
409
|
+
|
|
410
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
411
|
+
|
|
412
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
413
|
+
|
|
414
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
415
|
+
|
|
416
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
var COOKIE_EXPIRY = 365;
|
|
423
|
+
function CookieMessage(_ref) {
|
|
424
|
+
var cookieId = _ref.cookieId,
|
|
425
|
+
urlBase = _ref.urlBase;
|
|
426
|
+
var ref = (0,external_commonjs_react_commonjs2_react_.useRef)(null);
|
|
427
|
+
|
|
428
|
+
var _useState = (0,external_commonjs_react_commonjs2_react_.useState)(true),
|
|
429
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
430
|
+
hideCookieMessage = _useState2[0],
|
|
431
|
+
setHideCookieMessage = _useState2[1];
|
|
432
|
+
|
|
433
|
+
(0,external_commonjs_react_commonjs2_react_.useEffect)(function () {
|
|
434
|
+
var isCookieSet = js_cookie_default().get(cookieId) ? true : false;
|
|
435
|
+
setHideCookieMessage(isCookieSet);
|
|
436
|
+
}, []);
|
|
437
|
+
|
|
438
|
+
var handleClose = function handleClose() {
|
|
439
|
+
js_cookie_default().set(cookieId, "1", {
|
|
440
|
+
expires: COOKIE_EXPIRY
|
|
441
|
+
});
|
|
442
|
+
ref.current.classList.add("bottom-1", "opacity-0");
|
|
443
|
+
setTimeout(function () {
|
|
444
|
+
return setHideCookieMessage(true);
|
|
445
|
+
}, 500);
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
var absUrl = function absUrl(path) {
|
|
449
|
+
return url_base(path, urlBase);
|
|
450
|
+
}; // Presume the message is hidden by default
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
if (hideCookieMessage) return null;
|
|
454
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
455
|
+
className: "ui-cookie-message",
|
|
456
|
+
ref: ref
|
|
457
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
458
|
+
className: "ui-text-p2 pr-32"
|
|
459
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
460
|
+
href: absUrl("/privacy"),
|
|
461
|
+
className: "underline"
|
|
462
|
+
}, "How we use cookies"), " ", "to improve your experience."), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("button", {
|
|
463
|
+
className: "ui-btn-secondary mt-12 sm:mt-0 whitespace-nowrap",
|
|
464
|
+
onClick: handleClose
|
|
465
|
+
}, "Accept and close"));
|
|
466
|
+
}
|
|
467
|
+
CookieMessage.propTypes = {
|
|
468
|
+
cookieId: (prop_types_default()).string,
|
|
469
|
+
urlBase: (prop_types_default()).string
|
|
470
|
+
};
|
|
471
|
+
})();
|
|
472
|
+
|
|
473
|
+
/******/ return __webpack_exports__;
|
|
474
|
+
/******/ })()
|
|
475
|
+
;
|
|
476
|
+
});
|
|
@@ -0,0 +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.CustomerLogos=o())}(this,(function(){return{}.default}));
|