@ably/ui 8.7.0-dev.cbc127e → 8.7.0-dev.cf2bf50
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/.DS_Store +0 -0
- package/core/Footer.jsx +14 -19
- package/core/Meganav/component.css +41 -17
- package/core/Meganav/component.json +1 -1
- package/core/Meganav.jsx +395 -137
- package/core/MeganavContentDevelopers.jsx +366 -83
- package/core/MeganavContentPlatform.jsx +12 -36
- package/core/MeganavContentProducts/component.js +1 -0
- package/core/MeganavContentProducts.jsx +333 -0
- package/core/MeganavContentUseCases.jsx +4 -4
- package/core/MeganavItemsDesktop.jsx +2 -2
- package/core/MeganavItemsMobile.jsx +1 -1
- package/core/images/best-support-2023.svg +1 -0
- package/core/images/fastest-implementation-2023.svg +1 -0
- package/core/images/high-performer-2023.svg +1 -0
- package/core/images/highest-user-adoption-2023.svg +1 -0
- package/core/sprites.svg +29 -0
- package/package.json +3 -3
- package/src/.DS_Store +0 -0
- package/src/core/.DS_Store +0 -0
- package/src/core/Footer/component.html.erb +7 -12
- package/src/core/Footer/component.jsx +9 -17
- package/src/core/HeadwayWidget/HeadwayWidget.jsx +234 -0
- package/src/core/HeadwayWidget/index.js +5 -0
- package/src/core/Meganav/component.css +41 -17
- package/src/core/Meganav/component.json +1 -1
- package/src/core/Meganav/component.jsx +2 -2
- package/src/core/Meganav/component.rb +4 -4
- package/src/core/MeganavContentDevelopers/component.html.erb +9 -0
- package/src/core/MeganavContentDevelopers/component.jsx +139 -125
- package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.html.erb +15 -33
- package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.jsx +18 -39
- package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.rb +1 -1
- package/src/core/MeganavContentUseCases/component.html.erb +4 -4
- package/src/core/MeganavContentUseCases/component.jsx +4 -4
- package/src/core/MeganavItemsDesktop/component.jsx +1 -1
- package/src/core/MeganavItemsDesktop/component.rb +1 -1
- package/src/core/core.rb +8 -4
- package/src/core/icons/icon-display-asset-tracking-col.svg +18 -0
- package/src/core/icons/icon-display-examples-col.svg +11 -0
- package/src/core/icons/icon-social-x.svg +3 -0
- package/src/core/images/best-support-2023.svg +1 -0
- package/src/core/images/fastest-implementation-2023.svg +1 -0
- package/src/core/images/high-performer-2023.svg +1 -0
- package/src/core/images/highest-user-adoption-2023.svg +1 -0
- /package/src/core/{MeganavContentPlatform → MeganavContentProducts}/component.js +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("
|
|
3
|
+
module.exports = factory(require("prop-types"), require("react"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
5
|
define([, ], factory);
|
|
6
6
|
else {
|
|
7
|
-
var a = typeof exports === 'object' ? factory(require("
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("prop-types"), require("react")) : factory(root[undefined], root[undefined]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, (
|
|
10
|
+
})(this, (__WEBPACK_EXTERNAL_MODULE__6073__, __WEBPACK_EXTERNAL_MODULE__5225__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
@@ -149,171 +149,454 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__5225__;
|
|
|
149
149
|
var __webpack_exports__ = {};
|
|
150
150
|
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
151
151
|
(() => {
|
|
152
|
+
// ESM COMPAT FLAG
|
|
152
153
|
__webpack_require__.r(__webpack_exports__);
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
154
|
+
|
|
155
|
+
// EXPORTS
|
|
156
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
157
|
+
"default": () => (/* binding */ MeganavContentDevelopers_component)
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
// EXTERNAL MODULE: external {"commonjs":"prop-types","commonjs2":"prop-types"}
|
|
161
|
+
var external_commonjs_prop_types_commonjs2_prop_types_ = __webpack_require__(6073);
|
|
162
|
+
var external_commonjs_prop_types_commonjs2_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_prop_types_commonjs2_prop_types_);
|
|
163
|
+
// EXTERNAL MODULE: external {"commonjs":"react","commonjs2":"react"}
|
|
164
|
+
var external_commonjs_react_commonjs2_react_ = __webpack_require__(5225);
|
|
165
|
+
var external_commonjs_react_commonjs2_react_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_react_commonjs2_react_);
|
|
166
|
+
;// CONCATENATED MODULE: ./src/core/HeadwayWidget/HeadwayWidget.jsx
|
|
167
|
+
var _excluded = ["id", "account", "children", "widgetPosition", "badgePosition", "component", "trigger", "onWidgetReady", "onShowWidget", "onShowDetails", "onReadMore", "onHideWidget", "styles", "options", "translations"];
|
|
168
|
+
|
|
169
|
+
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); }
|
|
170
|
+
|
|
171
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
172
|
+
|
|
173
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
174
|
+
|
|
175
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
176
|
+
|
|
177
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
178
|
+
|
|
179
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
var HeadwayWidgetClassName = "HW_widget_component";
|
|
184
|
+
var HeadwayWidgetSelector = "." + HeadwayWidgetClassName;
|
|
185
|
+
var HeadwayWidgetTriggerClassName = "HW_trigger";
|
|
186
|
+
var HeadwayWidgetTriggerSelector = "." + HeadwayWidgetTriggerClassName;
|
|
187
|
+
|
|
188
|
+
var HeadwayWidgetTrigger = function HeadwayWidgetTrigger(_ref) {
|
|
189
|
+
var widgetId = _ref.widgetId,
|
|
190
|
+
component = _ref.component,
|
|
191
|
+
children = _ref.children;
|
|
192
|
+
var Component = component || "div";
|
|
193
|
+
var className = HeadwayWidgetTriggerClassName + "_".concat(widgetId);
|
|
194
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(Component, {
|
|
195
|
+
className: className
|
|
196
|
+
}, children);
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
HeadwayWidgetTrigger.defaultProps = {
|
|
200
|
+
widgetId: "widget-1"
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
var HeadwayWidget = function HeadwayWidget(_ref2) {
|
|
204
|
+
var id = _ref2.id,
|
|
205
|
+
account = _ref2.account,
|
|
206
|
+
children = _ref2.children,
|
|
207
|
+
widgetPosition = _ref2.widgetPosition,
|
|
208
|
+
badgePosition = _ref2.badgePosition,
|
|
209
|
+
component = _ref2.component,
|
|
210
|
+
trigger = _ref2.trigger,
|
|
211
|
+
onWidgetReady = _ref2.onWidgetReady,
|
|
212
|
+
onShowWidget = _ref2.onShowWidget,
|
|
213
|
+
onShowDetails = _ref2.onShowDetails,
|
|
214
|
+
onReadMore = _ref2.onReadMore,
|
|
215
|
+
onHideWidget = _ref2.onHideWidget,
|
|
216
|
+
styles = _ref2.styles,
|
|
217
|
+
options = _ref2.options,
|
|
218
|
+
translations = _ref2.translations,
|
|
219
|
+
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
220
|
+
|
|
221
|
+
var onWidgetReadyRef = (0,external_commonjs_react_commonjs2_react_.useRef)(onWidgetReady);
|
|
222
|
+
var onShowWidgetRef = (0,external_commonjs_react_commonjs2_react_.useRef)(onShowWidget);
|
|
223
|
+
var onShowDetailsRef = (0,external_commonjs_react_commonjs2_react_.useRef)(onShowDetails);
|
|
224
|
+
var onReadMoreRef = (0,external_commonjs_react_commonjs2_react_.useRef)(onReadMore);
|
|
225
|
+
var onHideWidgetRef = (0,external_commonjs_react_commonjs2_react_.useRef)(onHideWidget);
|
|
226
|
+
var optionsRef = (0,external_commonjs_react_commonjs2_react_.useRef)(options);
|
|
227
|
+
(0,external_commonjs_react_commonjs2_react_.useEffect)(function () {
|
|
228
|
+
onWidgetReadyRef.current = onWidgetReady || options.callbacks && options.callbacks.onWidgetReady;
|
|
229
|
+
onShowWidgetRef.current = onShowWidget || options.callbacks && options.callbacks.onShowWidget;
|
|
230
|
+
onShowDetailsRef.current = onShowDetails || options.callbacks && options.callbacks.onShowDetails;
|
|
231
|
+
onReadMoreRef.current = onReadMore || options.callbacks && options.callbacks.onReadMore;
|
|
232
|
+
onHideWidgetRef.current = onHideWidget || options.callbacks && options.callbacks.onHideWidget;
|
|
233
|
+
optionsRef.current = options;
|
|
234
|
+
});
|
|
235
|
+
var handleWidgetReady = (0,external_commonjs_react_commonjs2_react_.useCallback)(function () {
|
|
236
|
+
return onWidgetReadyRef.current && onWidgetReadyRef.current();
|
|
237
|
+
}, []);
|
|
238
|
+
var handleShowWidget = (0,external_commonjs_react_commonjs2_react_.useCallback)(function () {
|
|
239
|
+
return onShowWidgetRef.current && onShowWidgetRef.current();
|
|
240
|
+
}, []);
|
|
241
|
+
var handleShowDetails = (0,external_commonjs_react_commonjs2_react_.useCallback)(function () {
|
|
242
|
+
return onShowDetailsRef.current && onShowDetailsRef.current();
|
|
243
|
+
}, []);
|
|
244
|
+
var handleReadMore = (0,external_commonjs_react_commonjs2_react_.useCallback)(function () {
|
|
245
|
+
return onReadMoreRef.current && onReadMoreRef.current();
|
|
246
|
+
}, []);
|
|
247
|
+
var handleHideWidget = (0,external_commonjs_react_commonjs2_react_.useCallback)(function () {
|
|
248
|
+
return onHideWidgetRef.current && onHideWidgetRef.current();
|
|
249
|
+
}, []);
|
|
250
|
+
var initHeadway = (0,external_commonjs_react_commonjs2_react_.useCallback)(function () {
|
|
251
|
+
var hwConfig = _objectSpread({
|
|
252
|
+
selector: HeadwayWidgetSelector + "_".concat(id),
|
|
253
|
+
account: account || options.account,
|
|
254
|
+
trigger: trigger ? HeadwayWidgetSelector + "_".concat(id) : options.trigger || HeadwayWidgetTriggerSelector + "_".concat(id),
|
|
255
|
+
callbacks: {
|
|
256
|
+
onWidgetReady: handleWidgetReady,
|
|
257
|
+
onShowWidget: handleShowWidget,
|
|
258
|
+
onShowDetails: handleShowDetails,
|
|
259
|
+
onReadMore: handleReadMore,
|
|
260
|
+
onHideWidget: handleHideWidget
|
|
261
|
+
},
|
|
262
|
+
translations: translations,
|
|
263
|
+
widgetPosition: widgetPosition,
|
|
264
|
+
badgePosition: badgePosition,
|
|
265
|
+
__component: true,
|
|
266
|
+
styles: styles
|
|
267
|
+
}, options);
|
|
268
|
+
|
|
269
|
+
var widget = window.Headway.getNewWidget();
|
|
270
|
+
widget.init(hwConfig);
|
|
271
|
+
return function () {
|
|
272
|
+
widget.destroy();
|
|
273
|
+
};
|
|
274
|
+
}, [account, trigger, handleWidgetReady, handleShowWidget, handleShowDetails, handleReadMore, handleHideWidget, badgePosition, widgetPosition, translations]);
|
|
275
|
+
console.log(window.Headway);
|
|
276
|
+
(0,external_commonjs_react_commonjs2_react_.useEffect)(function () {
|
|
277
|
+
console.log("test");
|
|
278
|
+
var destroy;
|
|
279
|
+
|
|
280
|
+
if (window.Headway) {
|
|
281
|
+
console.log("destroy");
|
|
282
|
+
destroy = initHeadway();
|
|
283
|
+
} else {
|
|
284
|
+
console.log("else");
|
|
285
|
+
var head = document.getElementsByTagName("head")[0];
|
|
286
|
+
var script = document.createElement("script");
|
|
287
|
+
script.type = "text/javascript";
|
|
288
|
+
var p = new Promise(function (resolve) {
|
|
289
|
+
script.onload = function () {
|
|
290
|
+
var d = initHeadway();
|
|
291
|
+
resolve(d);
|
|
292
|
+
};
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
destroy = function destroy() {
|
|
296
|
+
p.then(function (d) {
|
|
297
|
+
return d();
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
script.src = "https://cdn.headwayapp.co/widget.js"; // "https://cdn.headwaystaging.com/widget.js"; //;
|
|
302
|
+
|
|
303
|
+
head.appendChild(script);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return destroy;
|
|
307
|
+
}, [initHeadway]);
|
|
308
|
+
var Component = component || "div";
|
|
309
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(Component, _extends({
|
|
310
|
+
className: HeadwayWidgetClassName + "_".concat(id)
|
|
311
|
+
}, rest, {
|
|
312
|
+
style: {
|
|
313
|
+
position: "relative",
|
|
314
|
+
display: "inline-block"
|
|
315
|
+
}
|
|
316
|
+
}), children);
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/* harmony default export */ const HeadwayWidget_HeadwayWidget = (HeadwayWidget);
|
|
320
|
+
HeadwayWidget.propTypes = {
|
|
321
|
+
/**
|
|
322
|
+
* account of your Headway.
|
|
323
|
+
*/
|
|
324
|
+
account: (external_commonjs_prop_types_commonjs2_prop_types_default()).string.isRequired,
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* id of the Widget. It is required if you have more than one widget instance on the page.
|
|
328
|
+
*/
|
|
329
|
+
id: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* position of a badge
|
|
333
|
+
*/
|
|
334
|
+
badgePosition: external_commonjs_prop_types_commonjs2_prop_types_default().oneOf(["top-left", "top-center", "top-right", "center-left", "center", "center-right", "bottom-left", "bottom-center", "bottom-right"]),
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* badge relative widget position
|
|
338
|
+
*/
|
|
339
|
+
widgetPosition: external_commonjs_prop_types_commonjs2_prop_types_default().oneOf(["top-left", "top-right", "center-left", "center-right", "bottom-left", "bottom-right"]),
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* callback fired when widget has loaded
|
|
343
|
+
*/
|
|
344
|
+
onWidgetReady: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* callback fired when widget is shown
|
|
348
|
+
*/
|
|
349
|
+
onShowWidget: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* callback fired when an item in the widget is clicked
|
|
353
|
+
*/
|
|
354
|
+
onShowDetails: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* callback fired when user clicks on readMore link
|
|
358
|
+
*/
|
|
359
|
+
onReadMore: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* callback fired when user closes the widget
|
|
363
|
+
*/
|
|
364
|
+
onHideWidget: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Translating the text inside of the widget
|
|
368
|
+
* */
|
|
369
|
+
translations: external_commonjs_prop_types_commonjs2_prop_types_default().shape({
|
|
370
|
+
title: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
371
|
+
labels: external_commonjs_prop_types_commonjs2_prop_types_default().shape({
|
|
372
|
+
"new": (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
373
|
+
update: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
374
|
+
improvement: (external_commonjs_prop_types_commonjs2_prop_types_default()).string
|
|
375
|
+
}),
|
|
376
|
+
readMore: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
377
|
+
footer: (external_commonjs_prop_types_commonjs2_prop_types_default()).string
|
|
378
|
+
}),
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* options defined in classic object format. Read more at https://docs.headwayapp.co/widget
|
|
382
|
+
*/
|
|
383
|
+
options: external_commonjs_prop_types_commonjs2_prop_types_default().shape({
|
|
384
|
+
account: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
385
|
+
callbacks: external_commonjs_prop_types_commonjs2_prop_types_default().shape({
|
|
386
|
+
onWidgetReady: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
387
|
+
onShowWidget: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
388
|
+
onShowDetails: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
389
|
+
onReadMore: (external_commonjs_prop_types_commonjs2_prop_types_default()).func,
|
|
390
|
+
onHideWidget: (external_commonjs_prop_types_commonjs2_prop_types_default()).func
|
|
391
|
+
}),
|
|
392
|
+
translations: external_commonjs_prop_types_commonjs2_prop_types_default().shape({
|
|
393
|
+
title: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
394
|
+
labels: external_commonjs_prop_types_commonjs2_prop_types_default().shape({
|
|
395
|
+
"new": (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
396
|
+
update: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
397
|
+
improvement: (external_commonjs_prop_types_commonjs2_prop_types_default()).string
|
|
398
|
+
}),
|
|
399
|
+
readMore: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
400
|
+
footer: (external_commonjs_prop_types_commonjs2_prop_types_default()).string
|
|
401
|
+
}),
|
|
402
|
+
trigger: (external_commonjs_prop_types_commonjs2_prop_types_default()).string
|
|
403
|
+
}),
|
|
404
|
+
component: external_commonjs_prop_types_commonjs2_prop_types_default().oneOfType([(external_commonjs_prop_types_commonjs2_prop_types_default()).string, (external_commonjs_prop_types_commonjs2_prop_types_default()).func]),
|
|
405
|
+
children: (external_commonjs_prop_types_commonjs2_prop_types_default()).node,
|
|
406
|
+
trigger: (external_commonjs_prop_types_commonjs2_prop_types_default()).string,
|
|
407
|
+
styles: (external_commonjs_prop_types_commonjs2_prop_types_default()).object
|
|
408
|
+
};
|
|
409
|
+
HeadwayWidget.defaultProps = {
|
|
410
|
+
account: "",
|
|
411
|
+
id: "widget-1",
|
|
412
|
+
badgePosition: "bottom-right",
|
|
413
|
+
widgetPosition: "bottom-right",
|
|
414
|
+
styles: {},
|
|
415
|
+
translations: {},
|
|
416
|
+
options: {}
|
|
417
|
+
};
|
|
418
|
+
HeadwayWidgetTrigger.propTypes = {
|
|
419
|
+
widgetId: (external_commonjs_prop_types_commonjs2_prop_types_default()).string.isRequired,
|
|
420
|
+
component: external_commonjs_prop_types_commonjs2_prop_types_default().oneOfType([(external_commonjs_prop_types_commonjs2_prop_types_default()).string, (external_commonjs_prop_types_commonjs2_prop_types_default()).func]),
|
|
421
|
+
children: (external_commonjs_prop_types_commonjs2_prop_types_default()).node
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
// EXTERNAL MODULE: ./src/core/Icon/component.jsx
|
|
425
|
+
var component = __webpack_require__(9008);
|
|
426
|
+
;// CONCATENATED MODULE: ./src/core/MeganavContentDevelopers/component.jsx
|
|
427
|
+
|
|
161
428
|
|
|
162
429
|
|
|
163
430
|
|
|
164
431
|
|
|
165
432
|
var MeganavContentDevelopers = function MeganavContentDevelopers(_ref) {
|
|
166
433
|
var absUrl = _ref.absUrl;
|
|
167
|
-
|
|
434
|
+
console.log("render MeganavContentDevelopers");
|
|
435
|
+
return /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
168
436
|
className: "flex max-w-screen-xl mx-auto"
|
|
169
|
-
}, /*#__PURE__*/
|
|
437
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
170
438
|
className: "ui-meganav-content-spacer"
|
|
171
|
-
}), /*#__PURE__*/
|
|
172
|
-
className: "grid grid-cols-12 ui-grid-gap-x
|
|
173
|
-
}, /*#__PURE__*/
|
|
174
|
-
className: "col-span-full md:col-span-4
|
|
175
|
-
}, /*#__PURE__*/
|
|
176
|
-
className: "ui-meganav-overline
|
|
439
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("section", {
|
|
440
|
+
className: "grid w-full grid-cols-12 ui-grid-gap-x"
|
|
441
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
442
|
+
className: "px-24 pt-24 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:pl-0 md:pr-24"
|
|
443
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("h3", {
|
|
444
|
+
className: "uppercase ui-meganav-overline",
|
|
177
445
|
id: "meganav-developers-panel-explore"
|
|
178
|
-
}, "Explore"), /*#__PURE__*/
|
|
446
|
+
}, "Explore"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("ul", {
|
|
179
447
|
"aria-labelledby": "meganav-developers-panel-explore"
|
|
180
|
-
}, /*#__PURE__*/
|
|
448
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
181
449
|
href: absUrl("/docs"),
|
|
182
450
|
className: "ui-meganav-media-with-image group"
|
|
183
|
-
}, /*#__PURE__*/
|
|
451
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
184
452
|
name: "icon-display-docs-col",
|
|
185
453
|
size: "2.5rem"
|
|
186
|
-
}), /*#__PURE__*/
|
|
454
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
187
455
|
className: "flex flex-col justify-center"
|
|
188
|
-
}, /*#__PURE__*/
|
|
456
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
189
457
|
className: "ui-meganav-media-heading"
|
|
190
|
-
}, "Documentation"), /*#__PURE__*/
|
|
458
|
+
}, "Documentation"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
191
459
|
className: "ui-meganav-media-copy"
|
|
192
|
-
}, "Technical guides to help you build with Ably.")))), /*#__PURE__*/
|
|
460
|
+
}, "Technical guides to help you build with Ably.")))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
193
461
|
href: absUrl("/docs/quick-start-guide"),
|
|
194
462
|
className: "ui-meganav-media-with-image group"
|
|
195
|
-
}, /*#__PURE__*/
|
|
463
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
196
464
|
name: "icon-display-quickstart-guides-col",
|
|
197
465
|
size: "2.5rem"
|
|
198
|
-
}), /*#__PURE__*/
|
|
466
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
199
467
|
className: "flex flex-col justify-center"
|
|
200
|
-
}, /*#__PURE__*/
|
|
468
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
201
469
|
className: "ui-meganav-media-heading"
|
|
202
|
-
}, "Quickstart guides"), /*#__PURE__*/
|
|
470
|
+
}, "Quickstart guides"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
203
471
|
className: "ui-meganav-media-copy"
|
|
204
|
-
}, "Documentation to help you get started quickly.")))), /*#__PURE__*/
|
|
472
|
+
}, "Documentation to help you get started quickly.")))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
205
473
|
href: absUrl("/integrations"),
|
|
206
474
|
className: "ui-meganav-media-with-image group"
|
|
207
|
-
}, /*#__PURE__*/
|
|
475
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
208
476
|
name: "icon-display-integrations-col",
|
|
209
477
|
size: "2.5rem"
|
|
210
|
-
}), /*#__PURE__*/
|
|
478
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
479
|
+
className: "flex flex-col justify-center"
|
|
480
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
481
|
+
className: "ui-meganav-media-heading"
|
|
482
|
+
}, "Integrations"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
483
|
+
className: "ui-meganav-media-copy"
|
|
484
|
+
}, "Find out more about Ably integrations. ")))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
485
|
+
href: absUrl("/examples"),
|
|
486
|
+
className: "ui-meganav-media-with-image group"
|
|
487
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
488
|
+
name: "icon-display-examples-col",
|
|
489
|
+
size: "2.5rem"
|
|
490
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
211
491
|
className: "flex flex-col justify-center"
|
|
212
|
-
}, /*#__PURE__*/
|
|
492
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
213
493
|
className: "ui-meganav-media-heading"
|
|
214
|
-
}, "
|
|
494
|
+
}, "Live examples"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
215
495
|
className: "ui-meganav-media-copy"
|
|
216
|
-
}, "
|
|
217
|
-
className: "col-span-full md:col-span-4
|
|
218
|
-
}, /*#__PURE__*/
|
|
496
|
+
}, "Discover our features and their use cases.")))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
497
|
+
className: "px-24 pb-8 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:px-0"
|
|
498
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("ul", {
|
|
219
499
|
className: "md:mt-40",
|
|
220
500
|
"aria-labelledby": "meganav-developers-panel-explore"
|
|
221
|
-
}, /*#__PURE__*/
|
|
501
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
222
502
|
href: absUrl("/download"),
|
|
223
503
|
className: "ui-meganav-media-with-image group"
|
|
224
|
-
}, /*#__PURE__*/
|
|
504
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
225
505
|
name: "icon-display-sdks-col",
|
|
226
506
|
size: "2.5rem"
|
|
227
|
-
}), /*#__PURE__*/
|
|
507
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
228
508
|
className: "flex flex-col justify-center"
|
|
229
|
-
}, /*#__PURE__*/
|
|
509
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
230
510
|
className: "ui-meganav-media-heading"
|
|
231
|
-
}, "SDKs"), /*#__PURE__*/
|
|
511
|
+
}, "SDKs"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
232
512
|
className: "ui-meganav-media-copy"
|
|
233
|
-
}, "Download an SDK to help you build realtime apps faster.")))), /*#__PURE__*/
|
|
513
|
+
}, "Download an SDK to help you build realtime apps faster.")))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
234
514
|
href: absUrl("/tutorials"),
|
|
235
515
|
className: "ui-meganav-media-with-image group"
|
|
236
|
-
}, /*#__PURE__*/
|
|
516
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
237
517
|
name: "icon-display-tutorials-demos-col",
|
|
238
518
|
size: "2.5rem"
|
|
239
|
-
}), /*#__PURE__*/
|
|
519
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
240
520
|
className: "flex flex-col justify-center"
|
|
241
|
-
}, /*#__PURE__*/
|
|
521
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
242
522
|
className: "ui-meganav-media-heading"
|
|
243
|
-
}, "Tutorials & Demos"), /*#__PURE__*/
|
|
523
|
+
}, "Tutorials & Demos"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
244
524
|
className: "ui-meganav-media-copy"
|
|
245
|
-
}, "Get stuck in with our hands-on resources.")))), /*#__PURE__*/
|
|
525
|
+
}, "Get stuck in with our hands-on resources.")))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
246
526
|
href: absUrl("/reference-guide-chat"),
|
|
247
527
|
className: "ui-meganav-media-with-image group"
|
|
248
|
-
}, /*#__PURE__*/
|
|
528
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
249
529
|
name: "icon-display-chat-col",
|
|
250
530
|
size: "2.5rem"
|
|
251
|
-
}), /*#__PURE__*/
|
|
531
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
252
532
|
className: "flex flex-col justify-center"
|
|
253
|
-
}, /*#__PURE__*/
|
|
533
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
254
534
|
className: "ui-meganav-media-heading"
|
|
255
|
-
}, "Chat apps reference guide"), /*#__PURE__*/
|
|
535
|
+
}, "Chat apps reference guide"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
256
536
|
className: "ui-meganav-media-copy"
|
|
257
|
-
}, "Learn how to build chat apps with Ably.")))), /*#__PURE__*/
|
|
537
|
+
}, "Learn how to build chat apps with Ably.")))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
258
538
|
href: absUrl("/reference-guide-multiplayer"),
|
|
259
539
|
className: "ui-meganav-media-with-image group"
|
|
260
|
-
}, /*#__PURE__*/
|
|
540
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(component["default"], {
|
|
261
541
|
name: "icon-multi-user-spaces-col",
|
|
262
542
|
size: "2.5rem"
|
|
263
|
-
}), /*#__PURE__*/
|
|
543
|
+
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
264
544
|
className: "flex flex-col justify-center"
|
|
265
|
-
}, /*#__PURE__*/
|
|
545
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
266
546
|
className: "ui-meganav-media-heading"
|
|
267
|
-
}, "Multiplayer reference guide"), /*#__PURE__*/
|
|
547
|
+
}, "Multiplayer reference guide"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
268
548
|
className: "ui-meganav-media-copy"
|
|
269
|
-
}, "Learn how to build collaborative features with Ably.")))))), /*#__PURE__*/
|
|
270
|
-
className: "col-span-full md:col-span-4
|
|
271
|
-
}, /*#__PURE__*/
|
|
272
|
-
className: "ui-meganav-overline
|
|
549
|
+
}, "Learn how to build collaborative features with Ably.")))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
550
|
+
className: "px-24 pt-8 pb-24 col-span-full md:col-span-4 md:py-24 lg:py-32 sm:px-32 md:px-0"
|
|
551
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("h3", {
|
|
552
|
+
className: "uppercase ui-meganav-overline",
|
|
273
553
|
id: "meganav-developers-panel-quick-links"
|
|
274
|
-
}, "Quick links"), /*#__PURE__*/
|
|
554
|
+
}, "Quick links"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("ul", {
|
|
275
555
|
"aria-labelledby": "meganav-developers-panel-quick-links"
|
|
276
|
-
}, /*#__PURE__*/
|
|
556
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
277
557
|
href: "https://discord.gg/jwBPhEZ9g5",
|
|
278
|
-
className: "group ui-meganav-media
|
|
279
|
-
}, /*#__PURE__*/
|
|
558
|
+
className: "py-12 group ui-meganav-media"
|
|
559
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
280
560
|
className: "ui-meganav-media-heading"
|
|
281
|
-
}, "Discord"))), /*#__PURE__*/
|
|
561
|
+
}, "Discord"))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
282
562
|
href: "https://github.com/ably",
|
|
283
|
-
className: "group ui-meganav-media
|
|
284
|
-
}, /*#__PURE__*/
|
|
563
|
+
className: "py-12 group ui-meganav-media"
|
|
564
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
285
565
|
className: "ui-meganav-media-heading"
|
|
286
|
-
}, "GitHub"))), /*#__PURE__*/
|
|
566
|
+
}, "GitHub"))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
287
567
|
href: "https://changelog.ably.com/",
|
|
288
|
-
className: "group ui-meganav-media
|
|
289
|
-
}, /*#__PURE__*/
|
|
568
|
+
className: "py-12 group ui-meganav-media"
|
|
569
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("span", {
|
|
290
570
|
className: "ui-meganav-media-heading"
|
|
291
|
-
}, "Changelog")
|
|
571
|
+
}, "Changelog"), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement(HeadwayWidget_HeadwayWidget, {
|
|
572
|
+
account: "yZ1rmJ",
|
|
573
|
+
badgePosition: "center-right"
|
|
574
|
+
}))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
292
575
|
href: "https://status.ably.com/",
|
|
293
|
-
className: "group ui-meganav-media
|
|
294
|
-
}, /*#__PURE__*/
|
|
576
|
+
className: "py-12 group ui-meganav-media"
|
|
577
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
295
578
|
className: "ui-meganav-media-heading"
|
|
296
|
-
}, "Status", /*#__PURE__*/
|
|
579
|
+
}, "Status", /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("iframe", {
|
|
297
580
|
title: "Ably status",
|
|
298
581
|
src: "https://status.ably.com/embed/icon",
|
|
299
582
|
allowtransparency: "true",
|
|
300
583
|
frameBorder: "0",
|
|
301
584
|
scrolling: "no",
|
|
302
|
-
className: "w-24 h-24 ml-4 border-none pointer-events-none
|
|
303
|
-
})))), /*#__PURE__*/
|
|
585
|
+
className: "w-24 h-24 ml-4 align-middle border-none pointer-events-none"
|
|
586
|
+
})))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("li", null, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("a", {
|
|
304
587
|
href: absUrl("/support"),
|
|
305
|
-
className: "group ui-meganav-media
|
|
306
|
-
}, /*#__PURE__*/
|
|
588
|
+
className: "py-12 group ui-meganav-media"
|
|
589
|
+
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("p", {
|
|
307
590
|
className: "ui-meganav-media-heading"
|
|
308
|
-
}, "Support & FAQs")))))), /*#__PURE__*/
|
|
591
|
+
}, "Support & FAQs")))))), /*#__PURE__*/external_commonjs_react_commonjs2_react_default().createElement("div", {
|
|
309
592
|
className: "ui-meganav-content-spacer"
|
|
310
593
|
}));
|
|
311
594
|
};
|
|
312
595
|
|
|
313
596
|
MeganavContentDevelopers.propTypes = {
|
|
314
|
-
absUrl: (
|
|
597
|
+
absUrl: (external_commonjs_prop_types_commonjs2_prop_types_default()).func
|
|
315
598
|
};
|
|
316
|
-
/* harmony default export */ const
|
|
599
|
+
/* harmony default export */ const MeganavContentDevelopers_component = (MeganavContentDevelopers);
|
|
317
600
|
})();
|
|
318
601
|
|
|
319
602
|
/******/ return __webpack_exports__;
|