@royaloperahouse/harmonic 0.6.2-a → 0.6.2-c
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/dist/harmonic.cjs.development.js +5 -2
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +5 -2
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -8919,6 +8919,8 @@ var Information = function Information(_ref) {
|
|
|
8919
8919
|
cta = _ref.cta,
|
|
8920
8920
|
className = _ref.className,
|
|
8921
8921
|
theme = _ref.theme;
|
|
8922
|
+
var _useViewport = useViewport(),
|
|
8923
|
+
hydrated = _useViewport.hydrated;
|
|
8922
8924
|
var safeTitle = title || {
|
|
8923
8925
|
text: '',
|
|
8924
8926
|
textSize: 'medium'
|
|
@@ -8929,6 +8931,7 @@ var Information = function Information(_ref) {
|
|
|
8929
8931
|
});
|
|
8930
8932
|
var maxTitleWordLength = Math.max.apply(Math, titleWordLengths);
|
|
8931
8933
|
var titleColumnSpan = getColumnSpan(maxTitleWordLength);
|
|
8934
|
+
if (!hydrated) return null;
|
|
8932
8935
|
return /*#__PURE__*/React__default.createElement(InfoWrapper$1, {
|
|
8933
8936
|
"data-testid": "infoWrapper",
|
|
8934
8937
|
className: className
|
|
@@ -8946,11 +8949,11 @@ var Information = function Information(_ref) {
|
|
|
8946
8949
|
columnStartDevice: 2,
|
|
8947
8950
|
columnSpanDesktop: 14 - titleColumnSpan,
|
|
8948
8951
|
columnSpanDevice: 12
|
|
8949
|
-
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(InfoBodyWrapper, {
|
|
8952
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(InfoBodyWrapper, null, /*#__PURE__*/React__default.createElement("span", {
|
|
8950
8953
|
dangerouslySetInnerHTML: {
|
|
8951
8954
|
__html: body
|
|
8952
8955
|
}
|
|
8953
|
-
}), cta && (/*#__PURE__*/React__default.createElement(InfoCta, {
|
|
8956
|
+
})), cta && (/*#__PURE__*/React__default.createElement(InfoCta, {
|
|
8954
8957
|
link: cta.link,
|
|
8955
8958
|
variant: cta.variant,
|
|
8956
8959
|
text: cta.text,
|