luna-one 3.1.459 → 3.1.462
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.
|
@@ -94,7 +94,7 @@ var NavBarTop = function NavBarTop(props) {
|
|
|
94
94
|
var toggleDesktopSearch = function toggleDesktopSearch(isDesktop) {
|
|
95
95
|
if (!desktopSearchDeployed) {
|
|
96
96
|
setSearchDeployed(true);
|
|
97
|
-
setGlobalSearch(false);
|
|
97
|
+
setGlobalSearch && setGlobalSearch(false);
|
|
98
98
|
setDesktopSearchDeployed(true);
|
|
99
99
|
|
|
100
100
|
if (!mouse) {
|
|
@@ -19,7 +19,7 @@ var SummaryCard = function SummaryCard(summaryCard, labels, version) {
|
|
|
19
19
|
productLine = summaryCard.productLine,
|
|
20
20
|
regions = summaryCard.regions,
|
|
21
21
|
cta = summaryCard.cta;
|
|
22
|
-
var external = (0, _checkForExternalLink["default"])(cta.url);
|
|
22
|
+
var external = (0, _checkForExternalLink["default"])(cta === null || cta === void 0 ? void 0 : cta.url);
|
|
23
23
|
|
|
24
24
|
var renderRegions = function renderRegions() {
|
|
25
25
|
if (!regions) {
|
|
@@ -58,14 +58,14 @@ var SummaryCard = function SummaryCard(summaryCard, labels, version) {
|
|
|
58
58
|
className: "product-summary-card--container__regions"
|
|
59
59
|
}, (labels === null || labels === void 0 ? void 0 : labels.regionsLabel) && /*#__PURE__*/_react["default"].createElement("h1", {
|
|
60
60
|
className: "product-summary-card--container__regions-label"
|
|
61
|
-
}, labels === null || labels === void 0 ? void 0 : labels.regionsLabel), renderRegions()), /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
}, labels === null || labels === void 0 ? void 0 : labels.regionsLabel), renderRegions()), cta && (cta === null || cta === void 0 ? void 0 : cta.url) && (cta === null || cta === void 0 ? void 0 : cta.text) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
62
|
className: "product-summary-card--container__link"
|
|
63
63
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
64
64
|
className: external ? "text-link-external" : "text-link",
|
|
65
65
|
target: external ? "_blank" : "_self",
|
|
66
|
-
href: cta.url,
|
|
66
|
+
href: cta === null || cta === void 0 ? void 0 : cta.url,
|
|
67
67
|
rel: "noreferrer"
|
|
68
|
-
}, cta.text))), version && /*#__PURE__*/_react["default"].createElement("div", {
|
|
68
|
+
}, cta === null || cta === void 0 ? void 0 : cta.text))), version && /*#__PURE__*/_react["default"].createElement("div", {
|
|
69
69
|
className: "product-summary-card__version"
|
|
70
70
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
71
71
|
className: "product-summary-card__version-text"
|
|
@@ -332,21 +332,29 @@ var NavBar = function NavBar(props) {
|
|
|
332
332
|
var getUrl = function getUrl(option) {
|
|
333
333
|
var _option$links;
|
|
334
334
|
|
|
335
|
-
if (option && option.url) {
|
|
336
|
-
return option.url;
|
|
335
|
+
if (option && option !== null && option !== void 0 && option.url) {
|
|
336
|
+
return option === null || option === void 0 ? void 0 : option.url;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
if (option && option !== null && option !== void 0 && (_option$links = option.links) !== null && _option$links !== void 0 && _option$links.length) {
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
var _option$links$, _option$links$3, _option$links$3$links, _option$links$5, _option$links$5$links, _option$links$5$links2;
|
|
341
|
+
|
|
342
|
+
if (option !== null && option !== void 0 && (_option$links$ = option.links[0]) !== null && _option$links$ !== void 0 && _option$links$.url) {
|
|
343
|
+
var _option$links$2;
|
|
344
|
+
|
|
345
|
+
return option === null || option === void 0 ? void 0 : (_option$links$2 = option.links[0]) === null || _option$links$2 === void 0 ? void 0 : _option$links$2.url;
|
|
342
346
|
}
|
|
343
347
|
|
|
344
|
-
if (option.links[0].links[0].url) {
|
|
345
|
-
|
|
348
|
+
if (option !== null && option !== void 0 && (_option$links$3 = option.links[0]) !== null && _option$links$3 !== void 0 && (_option$links$3$links = _option$links$3.links[0]) !== null && _option$links$3$links !== void 0 && _option$links$3$links.url) {
|
|
349
|
+
var _option$links$4, _option$links$4$links;
|
|
350
|
+
|
|
351
|
+
return option === null || option === void 0 ? void 0 : (_option$links$4 = option.links[0]) === null || _option$links$4 === void 0 ? void 0 : (_option$links$4$links = _option$links$4.links[0]) === null || _option$links$4$links === void 0 ? void 0 : _option$links$4$links.url;
|
|
346
352
|
}
|
|
347
353
|
|
|
348
|
-
if (option.links[0].links[0].links[0].url) {
|
|
349
|
-
|
|
354
|
+
if (option !== null && option !== void 0 && (_option$links$5 = option.links[0]) !== null && _option$links$5 !== void 0 && (_option$links$5$links = _option$links$5.links[0]) !== null && _option$links$5$links !== void 0 && (_option$links$5$links2 = _option$links$5$links.links[0]) !== null && _option$links$5$links2 !== void 0 && _option$links$5$links2.url) {
|
|
355
|
+
var _option$links$6, _option$links$6$links, _option$links$6$links2;
|
|
356
|
+
|
|
357
|
+
return option === null || option === void 0 ? void 0 : (_option$links$6 = option.links[0]) === null || _option$links$6 === void 0 ? void 0 : (_option$links$6$links = _option$links$6.links[0]) === null || _option$links$6$links === void 0 ? void 0 : (_option$links$6$links2 = _option$links$6$links.links[0]) === null || _option$links$6$links2 === void 0 ? void 0 : _option$links$6$links2.url;
|
|
350
358
|
}
|
|
351
359
|
}
|
|
352
360
|
};
|
|
@@ -393,7 +401,7 @@ var NavBar = function NavBar(props) {
|
|
|
393
401
|
currentOpenMenu: currentOpenMenu,
|
|
394
402
|
active: active
|
|
395
403
|
}) : /*#__PURE__*/_react["default"].createElement(LunaLink, {
|
|
396
|
-
to: option.url,
|
|
404
|
+
to: option === null || option === void 0 ? void 0 : option.url,
|
|
397
405
|
depth: 1,
|
|
398
406
|
tabIndex: mouse ? "" : "0",
|
|
399
407
|
href: option === null || option === void 0 ? void 0 : option.url,
|
|
@@ -421,17 +429,17 @@ var NavBar = function NavBar(props) {
|
|
|
421
429
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
422
430
|
className: "ter-navbar-top__pipe"
|
|
423
431
|
}, "|")), /*#__PURE__*/_react["default"].createElement(LunaLink, {
|
|
424
|
-
to: featuredLink.url,
|
|
432
|
+
to: featuredLink === null || featuredLink === void 0 ? void 0 : featuredLink.url,
|
|
425
433
|
tabIndex: mouse ? "" : "0",
|
|
426
|
-
href: featuredLink.url,
|
|
427
|
-
key: featuredLink.text,
|
|
434
|
+
href: featuredLink === null || featuredLink === void 0 ? void 0 : featuredLink.url,
|
|
435
|
+
key: featuredLink === null || featuredLink === void 0 ? void 0 : featuredLink.text,
|
|
428
436
|
className: mouse ? "ter-navbar__nav-link" : "ter-navbar__nav-link tabFocus",
|
|
429
|
-
target: featuredLink.external ? "_blank" : "_self",
|
|
430
|
-
id: (0, _formatID["default"])("".concat(featuredLink.text, "-navbar-nav-link")),
|
|
437
|
+
target: featuredLink !== null && featuredLink !== void 0 && featuredLink.external ? "_blank" : "_self",
|
|
438
|
+
id: (0, _formatID["default"])("".concat(featuredLink === null || featuredLink === void 0 ? void 0 : featuredLink.text, "-navbar-nav-link")),
|
|
431
439
|
Link: Link
|
|
432
440
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
433
441
|
className: "featured-link"
|
|
434
|
-
}, featuredLink.text)));
|
|
442
|
+
}, featuredLink === null || featuredLink === void 0 ? void 0 : featuredLink.text)));
|
|
435
443
|
};
|
|
436
444
|
|
|
437
445
|
var hamburgerClick = function hamburgerClick() {
|
|
@@ -466,7 +474,7 @@ var NavBar = function NavBar(props) {
|
|
|
466
474
|
closeHamburger: closeHamburger
|
|
467
475
|
}
|
|
468
476
|
}, /*#__PURE__*/_react["default"].createElement("nav", {
|
|
469
|
-
className: "ter-navbar ter-navbar".concat(isHidden && ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.scrollY) > 100 ? "--is-hidden" : "--is-showing"),
|
|
477
|
+
className: "ter-navbar ter-navbar".concat(isHidden && ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.scrollY) > 100 && !desktopSearchDeployed ? "--is-hidden" : "--is-showing"),
|
|
470
478
|
onClick: stopProp
|
|
471
479
|
}, /*#__PURE__*/_react["default"].createElement(NavBarTop, {
|
|
472
480
|
divisionName: divisionName,
|