@royaloperahouse/harmonic 0.12.1-a → 0.12.1-b
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/components/molecules/SkipToMain/SkipToMain.d.ts +1 -1
- package/dist/harmonic.cjs.development.js +1 -1
- 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 +1 -1
- package/dist/harmonic.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ISkipToMainProps } from '../../../types/types';
|
|
3
|
-
declare const SkipToMain: ({ className, skipToTag }: ISkipToMainProps) => React.JSX.Element
|
|
3
|
+
declare const SkipToMain: ({ className, skipToTag }: ISkipToMainProps) => React.JSX.Element;
|
|
4
4
|
export default SkipToMain;
|
|
5
5
|
/** TODO:
|
|
6
6
|
* - make robust with SSR - might be solved with moving logic to FE.
|
|
@@ -11065,7 +11065,7 @@ var SkipToMain = function SkipToMain(_ref) {
|
|
|
11065
11065
|
targetElement = _useState[0],
|
|
11066
11066
|
setTargetElement = _useState[1];
|
|
11067
11067
|
// TODO: Implement SSR behaviour.
|
|
11068
|
-
if (typeof document === 'undefined') return null;
|
|
11068
|
+
if (typeof document === 'undefined') return /*#__PURE__*/React__default.createElement("div", null, "Im being server-side rendered");
|
|
11069
11069
|
React.useEffect(function () {
|
|
11070
11070
|
var checkForTarget = function checkForTarget() {
|
|
11071
11071
|
var element = document.getElementById(skipToTag);
|