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.

revert files with merge issues

Sara Vieira5ae04a828111
diff --git a/apps/designer/app/designer/features/topbar/publish.tsx b/apps/designer/app/designer/features/topbar/publish.tsx
index 0e58d51e73..6ccab30c12 100644
--- a/apps/designer/app/designer/features/topbar/publish.tsx
+++ b/apps/designer/app/designer/features/topbar/publish.tsx
@@ -1,7 +1,7 @@
import { useState, useEffect } from "react";
import { useFetcher } from "@remix-run/react";
import { RocketIcon, ExternalLinkIcon } from "@webstudio-is/icons";
-import * as db from "~/shared/db";
+import { type Project } from "@webstudio-is/prisma-client";
import {
Button,
Flex,
@@ -17,7 +17,7 @@ import {
import { useIsPublishDialogOpen } from "../../shared/nano-states";
import env from "~/shared/env";
-type PublishButtonProps = { project: db.project.Project };
+type PublishButtonProps = { project: Project };
const getHost = () => {
if (env.PUBLISHER_ENDPOINT && env.PUBLISHER_HOST) {
diff --git a/apps/designer/app/designer/features/topbar/share.tsx b/apps/designer/app/designer/features/topbar/share.tsx
index 2d926fe111..6581e792d3 100644
--- a/apps/designer/app/designer/features/topbar/share.tsx
+++ b/apps/designer/app/designer/features/topbar/share.tsx
@@ -8,10 +8,10 @@ import {
TextField,
} from "@webstudio-is/design-system";
import { Share1Icon } from "@webstudio-is/icons";
-import * as db from "~/shared/db";
+import { type Project } from "@webstudio-is/prisma-client";
import { useIsShareDialogOpen } from "../../shared/nano-states";
-type ShareButtonProps = { path: string; project: db.project.Project };
+type ShareButtonProps = { path: string; project: Project };
const Content = ({ path, project }: ShareButtonProps) => {
if (typeof location === "undefined") {
diff --git a/apps/designer/app/designer/features/topbar/topbar.tsx b/apps/designer/app/designer/features/topbar/topbar.tsx
index 4bb54f1d65..824f7b2568 100644
--- a/apps/designer/app/designer/features/topbar/topbar.tsx
+++ b/apps/designer/app/designer/features/topbar/topbar.tsx
@@ -1,7 +1,7 @@
-import type { Publish } from "@webstudio-is/react-sdk";
+import type { Publish } from "~/shared/pubsub";
+import type { Project } from "@webstudio-is/prisma-client";
import { darkTheme, Flex, type CSS } from "@webstudio-is/design-system";
import type { Config } from "~/config";
-import * as db from "~/shared/db";
import { PreviewButton } from "./preview";
import { ShareButton } from "./share";
import { PublishButton } from "./publish";
@@ -12,7 +12,7 @@ import { Breakpoints } from "../breakpoints";
type TopbarProps = {
config: Config;
css: CSS;
- project: db.project.Project;
+ project: Project;
publish: Publish;
};
export const Topbar = ({ config, css, project, publish }: TopbarProps) => {
diff --git a/apps/designer/app/routes/designer/$id.tsx b/apps/designer/app/routes/designer/$id.tsx
index 1dae33f318..325f21a285 100644
--- a/apps/designer/app/routes/designer/$id.tsx
+++ b/apps/designer/app/routes/designer/$id.tsx
@@ -2,7 +2,7 @@ import { useActionData, useLoaderData } from "@remix-run/react";
import { ActionFunction, LoaderFunction } from "@remix-run/node";
import { toast } from "@webstudio-is/design-system";
import { Designer, links } from "~/designer";
-import * as db from "~/shared/db";
+import type { Project } from "@webstudio-is/prisma-client";
import config from "~/config";
import env from "~/env.server";
import { uploadAssets } from "~/shared/db/misc.server";
@@ -26,7 +26,7 @@ export const loader: LoaderFunction = async ({ params }) => {
type Data = {
config: typeof config;
- project: db.project.Project;
+ project: Project;
};
type Error = {
diff --git a/packages/asset-uploader/src/index.ts b/packages/asset-uploader/src/index.ts
index 9bc1dad5f7..0b4e764c6f 100644
--- a/packages/asset-uploader/src/index.ts
+++ b/packages/asset-uploader/src/index.ts
@@ -1,4 +1,4 @@
export * from "./upload";
export * from "./delete";
export * from "./db";
-export { formatAsset } from "./utils/format-asset";
+export * from "./utils/format-asset";