Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Merge branch 'main' into 54-multi-page-sites-and-routing

Roman Pominov2273a9b146b2
diff --cc apps/designer/app/designer/designer.tsx
index 426ec7fa36,e29bd7aa0f..7d10af0be2
--- a/apps/designer/app/designer/designer.tsx
+++ b/apps/designer/app/designer/designer.tsx
@@@ -1,14 -1,7 +1,15 @@@
import { useCallback } from "react";
++
+import {
+ useSubscribe,
+ usePublish,
+ type Publish,
+} from "@webstudio-is/react-sdk";
++
+ import { useSubscribe, usePublish, type Publish } from "~/shared/pubsub";
+ import * as db from "~/shared/db";
++
import type { Config } from "~/config";
- import type {
- HoveredInstanceData,
- SelectedInstanceData,
- } from "~/shared/canvas-components";
import { Box, Flex, Grid, type CSS } from "@webstudio-is/design-system";
import interStyles from "~/shared/font-faces/inter.css";
import { SidebarLeft } from "./features/sidebar-left";
@@@ -41,8 -33,8 +41,12 @@@ import
import { useClientSettings } from "./shared/client-settings";
import { Navigator } from "./features/sidebar-left";
import { PANEL_WIDTH } from "./shared/constants";
++
+import * as db from "~/shared/db";
+
+ import { Asset } from "@webstudio-is/asset-uploader";
+
++
export const links = () => {
return [
{ rel: "stylesheet", href: interStyles },
diff --cc packages/prisma-client/src/types.ts
index 2d38303458,98361955b4..42c982c50f
--- a/packages/prisma-client/src/types.ts
+++ b/packages/prisma-client/src/types.ts
@@@ -1,10 -1,6 +1,6 @@@
- import type { Asset as DbAsset, Project as BaseProject } from "@prisma/client";
+ import type { Asset, Project as BaseProject } from "@prisma/client";
export { Location } from "@prisma/client";
-export type { InstanceProps, User, Breakpoints } from "@prisma/client";
+export type { InstanceProps, User, Breakpoints, Build } from "@prisma/client";
- export type Asset = DbAsset & {
- path?: string;
- status?: "uploading" | "uploaded";
- };
export type Project = BaseProject & { assets?: Asset[] };
- export type { DbAsset };
+ export type { Asset };