@toriistudio/v0-playground 0.2.0 → 0.2.1

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 CHANGED
@@ -540,6 +540,7 @@ var ControlPanel = () => {
540
540
  ([, control]) => control.type === "button"
541
541
  );
542
542
  const previewUrl = (0, import_react4.useMemo)(() => {
543
+ if (typeof window === "undefined") return "";
543
544
  const params = new URLSearchParams();
544
545
  params.set("nocontrols", "true");
545
546
  for (const [key, value] of Object.entries(values)) {
package/dist/index.mjs CHANGED
@@ -514,6 +514,7 @@ var ControlPanel = () => {
514
514
  ([, control]) => control.type === "button"
515
515
  );
516
516
  const previewUrl = useMemo2(() => {
517
+ if (typeof window === "undefined") return "";
517
518
  const params = new URLSearchParams();
518
519
  params.set("nocontrols", "true");
519
520
  for (const [key, value] of Object.entries(values)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toriistudio/v0-playground",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "V0 Playground",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",