@cambly/syntax-core 7.11.1 → 7.12.0
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1195,7 +1195,7 @@ function Layer({
|
|
|
1195
1195
|
children,
|
|
1196
1196
|
zIndex = 1
|
|
1197
1197
|
}) {
|
|
1198
|
-
return (0, import_react_dom.createPortal)(
|
|
1198
|
+
return typeof document !== "undefined" ? (0, import_react_dom.createPortal)(
|
|
1199
1199
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1200
1200
|
Box_default,
|
|
1201
1201
|
{
|
|
@@ -1208,7 +1208,7 @@ function Layer({
|
|
|
1208
1208
|
}
|
|
1209
1209
|
),
|
|
1210
1210
|
document.body
|
|
1211
|
-
);
|
|
1211
|
+
) : null;
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
1214
|
// css-module:./Modal.module.css#css-module
|