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.

Dashboard redesign - project cards (#817)

Oleg Isonen72073cb30ae3
diff --git a/apps/designer/app/auth/login.tsx b/apps/designer/app/auth/login.tsx
index ff9c58a2af..7c1c9abb6d 100644
--- a/apps/designer/app/auth/login.tsx
+++ b/apps/designer/app/auth/login.tsx
@@ -3,7 +3,7 @@ import { Form, useLoaderData } from "@remix-run/react";
import { useState } from "react";
import { Flex, Button, Text, TextField } from "@webstudio-is/design-system";
// eslint-disable-next-line import/no-internal-modules
-import interFont from "@fontsource/inter/index.css";
+import interFont from "@fontsource/inter/variable.css";
import { GithubIcon, CommitIcon, GoogleIcon } from "@webstudio-is/icons";
import { LoginButton } from "./login-button";
import loginStyles from "./login.css";
diff --git a/apps/designer/app/dashboard/dashboard.tsx b/apps/designer/app/dashboard/dashboard.tsx
index c3ddd99be3..155c79533d 100644
--- a/apps/designer/app/dashboard/dashboard.tsx
+++ b/apps/designer/app/dashboard/dashboard.tsx
@@ -2,7 +2,7 @@ import { useActionData } from "@remix-run/react";
import { Flex } from "@webstudio-is/design-system";
// eslint-disable-next-line import/no-internal-modules
-import interFont from "@fontsource/inter/index.css";
+import interFont from "@fontsource/inter/variable.css";
import dashboardStyles from "./dashboard.css";
import { User as DbUser } from "@webstudio-is/prisma-client";
import { DashboardHeader } from "./components/header";
diff --git a/apps/designer/app/dashboard2/dashboard.tsx b/apps/designer/app/dashboard2/dashboard.tsx
index a7d85b117d..3645804477 100644
--- a/apps/designer/app/dashboard2/dashboard.tsx
+++ b/apps/designer/app/dashboard2/dashboard.tsx
@@ -1,8 +1,11 @@
-import { globalCss } from "@webstudio-is/design-system";
-import { User as DbUser } from "@webstudio-is/prisma-client";
+import { Flex, globalCss, theme } from "@webstudio-is/design-system";
+import type {
+ DashboardProject,
+ User as DbUser,
+} from "@webstudio-is/prisma-client";
import { Header } from "./header";
// eslint-disable-next-line import/no-internal-modules
-import interFont from "@fontsource/inter/index.css";
+import interFont from "@fontsource/inter/variable.css";
// eslint-disable-next-line import/no-internal-modules
import manropeVariableFont from "@fontsource/manrope/variable.css";
import { Projects } from "./projects";
@@ -19,21 +22,25 @@ type User = Omit<DbUser, "createdAt"> & {
const globalStyles = globalCss({
body: {
margin: 0,
- // @todo need a token
- background: "#ababab",
+ background: theme.colors.brandBackgroundDashboard,
},
});
type DashboardProps = {
user: User;
+ projects: Array<DashboardProject>;
};
-export const Dashboard = ({ user }: DashboardProps) => {
+export const Dashboard = ({ user, projects }: DashboardProps) => {
globalStyles();
return (
<>
<Header user={user} />
- <Projects />
+ <main>
+ <Flex justify="center" as="section" css={{ minWidth: "min-content" }}>
+ <Projects projects={projects} />
+ </Flex>
+ </main>
</>
);
};
diff --git a/apps/designer/app/dashboard2/empty-state.tsx b/apps/designer/app/dashboard2/empty-state.tsx
index 804aaabe14..cc3be9e852 100644
--- a/apps/designer/app/dashboard2/empty-state.tsx
+++ b/apps/designer/app/dashboard2/empty-state.tsx
@@ -7,6 +7,7 @@ const containerStyle = css({
color: theme.colors.foregroundContrastMain,
borderRadius: theme.borderRadius[4],
height: theme.spacing[29],
+ minWidth: 600,
});
const EmptyStateContainer = (props: ComponentProps<typeof Flex>) => (
diff --git a/apps/designer/app/dashboard2/header.tsx b/apps/designer/app/dashboard2/header.tsx
index 516b1d5d70..641ae4e333 100644
--- a/apps/designer/app/dashboard2/header.tsx
+++ b/apps/designer/app/dashboard2/header.tsx
@@ -4,13 +4,14 @@ import {
DropdownMenuTrigger,
DropdownMenuContent,
DropdownMenuItem,
- DeprecatedButton,
+ DropdownMenuLabel,
Text,
Flex,
Avatar,
css,
rawTheme,
theme,
+ Button,
} from "@webstudio-is/design-system";
import { User as DbUser } from "@webstudio-is/prisma-client";
import { useNavigate } from "react-router-dom";
@@ -27,13 +28,40 @@ const getAvatarLetter = (user: User) => {
return (user?.username || user?.email || "X").charAt(0).toLocaleUpperCase();
};
+const Menu = ({ user }: { user: User }) => {
+ const navigate = useNavigate();
+ return (
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="ghost" aria-label="Menu Button">
+ <Flex gap="1" align="center" css={{ height: theme.spacing[11] }}>
+ <Avatar
+ src={user?.image || undefined}
+ fallback={getAvatarLetter(user)}
+ />
+ <ChevronDownIcon
+ width={15}
+ height={15}
+ color={rawTheme.colors.foregroundMain}
+ />
+ </Flex>
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent>
+ <DropdownMenuLabel>{user?.username || user?.email}</DropdownMenuLabel>
+ <DropdownMenuItem onSelect={() => navigate(logoutPath())}>
+ <Text>Logout</Text>
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ );
+};
+
type User = Omit<DbUser, "createdAt"> & {
createdAt: string;
};
export const Header = ({ user }: { user: User }) => {
- const navigate = useNavigate();
-
return (
<Flex
as="header"
@@ -43,28 +71,7 @@ export const Header = ({ user }: { user: User }) => {
>
<WebstudioIcon width={30} height={23} />
<Flex gap="1" align="center">
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <DeprecatedButton variant="raw" aria-label="Menu Button">
- <Flex gap="1" align="center" css={{ height: theme.spacing[11] }}>
- <Avatar
- src={user?.image || undefined}
- fallback={getAvatarLetter(user)}
- />
- <ChevronDownIcon
- width={15}
- height={15}
- color={rawTheme.colors.foregroundMain}
- />
- </Flex>
- </DeprecatedButton>
- </DropdownMenuTrigger>
- <DropdownMenuContent>
- <DropdownMenuItem onSelect={() => navigate(logoutPath())}>
- <Text>Logout</Text>
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
+ <Menu user={user} />
</Flex>
</Flex>
);
diff --git a/apps/designer/app/dashboard2/heading.tsx b/apps/designer/app/dashboard2/heading.tsx
index 40a5eec2b0..eedf06c6d2 100644
--- a/apps/designer/app/dashboard2/heading.tsx
+++ b/apps/designer/app/dashboard2/heading.tsx
@@ -8,14 +8,12 @@ const variantTagMap = {
} as const;
const headingStyle = css({
- // @todo use theme
- fontFamily: "ManropeVariable, sans-serif",
+ fontFamily: theme.fonts.manrope,
lineHeight: 1,
margin: 0,
variants: {
variant: {
large: {
- // @todo use theme and ask Mark to add it to tokens
fontSize: 48,
fontWeight: 700,
},
@@ -35,7 +33,7 @@ type HeadingProps = ComponentProps<typeof Box> & {
variant: "large" | "small" | "tiny";
};
-// @todo decide if this should be in design system
+// @todo this thing should be gone and we would just use text component or styles from text component
export const Heading = (props: HeadingProps) => {
return (
<Box
diff --git a/apps/designer/app/dashboard2/panel.tsx b/apps/designer/app/dashboard2/panel.tsx
index 898144d2f9..6ba253a8ba 100644
--- a/apps/designer/app/dashboard2/panel.tsx
+++ b/apps/designer/app/dashboard2/panel.tsx
@@ -6,10 +6,10 @@ const panelStyle = css({
padding: theme.spacing[13],
margin: theme.spacing[13],
borderRadius: theme.borderRadius[6],
- minWidth: 600,
color: theme.colors.foregroundMain,
- // @todo - use theme
- //boxShadow: theme.boxShadow.brandElevationBig
+ minWidth: "min-content",
+ maxWidth: "max-content",
+ boxShadow: theme.shadows.brandElevationBig,
});
export const Panel = (props: ComponentProps<typeof Box>) => (
diff --git a/apps/designer/app/dashboard2/project-card.tsx b/apps/designer/app/dashboard2/project-card.tsx
new file mode 100644
index 0000000000..b903ec6a2a
--- /dev/null
+++ b/apps/designer/app/dashboard2/project-card.tsx
@@ -0,0 +1,165 @@
+import {
+ DropdownMenu,
+ DropdownMenuTrigger,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ IconButton,
+ css,
+ Flex,
+ Text,
+ theme,
+} from "@webstudio-is/design-system";
+import { MenuIcon } from "@webstudio-is/icons";
+import type { DashboardProject } from "@webstudio-is/prisma-client";
+import { useState } from "react";
+import { designerPath, getPublishedUrl } from "~/shared/router-utils";
+import { Link as RemixLink } from "@remix-run/react";
+
+const projectCardContainerStyle = css({
+ overflow: "hidden",
+ width: theme.spacing[31],
+ height: theme.spacing[29],
+ borderWidth: 1,
+ borderStyle: "solid",
+ borderColor: theme.colors.borderMain,
+ borderRadius: theme.borderRadius[4],
+ background: "linear-gradient(0deg, #FBF8FF 0%, #C7C7C7 100%)",
+ "&:hover, &:focus-within": {
+ boxShadow: theme.shadows.brandElevationBig,
+ },
+});
+
+const projectCardFooterStyle = css({
+ background: theme.colors.brandBackgroundProjectCardTextArea,
+ height: theme.spacing[17],
+ py: theme.spacing[5],
+ px: theme.spacing[7],
+});
+
+const projectNameAvatarStyle = css({
+ fontFamily: theme.fonts.manrope,
+ fontWeight: 200,
+ fontSize: 360,
+ alignSelf: "center",
+ letterSpacing: "-0.05em",
+ marginLeft: "-0.5em",
+ background: "linear-gradient(0deg, #FBF8FF 25%, #E2E2E2 66%)",
+ WebkitBackgroundClip: "text",
+ backgroundClip: "text",
+ color: "transparent",
+ // @todo figure out the effect from figma in text-shadow
+ //textShadow: "0px 5px 3px rgba(251, 248, 255, 1)",
+ userSelect: "none",
+ "&:hover, &:focus": {
+ fontWeight: 800,
+ transition: "100ms",
+ },
+});
+
+// My Next Project > MN
+const getAbbreviation = (title: string) =>
+ title
+ .split(/\s+/)
+ .slice(0, 2)
+ .map((word) => word.charAt(0).toUpperCase())
+ .join("");
+
+const Domain = ({
+ domain,
+ isPublished,
+}: {
+ domain: string;
+ isPublished: boolean;
+}) => {
+ if (isPublished) {
+ const url = new URL(getPublishedUrl(domain));
+ return (
+ <Text
+ as="a"
+ href={url.href}
+ target="_blank"
+ truncate
+ color="hint"
+ css={{
+ "&:not(:hover)": {
+ textDecoration: "none",
+ },
+ }}
+ >
+ {url.host}
+ </Text>
+ );
+ }
+ return <Text color="hint">Not Published</Text>;
+};
+
+const Menu = () => {
+ const [isOpen, setIsOpen] = useState(false);
+ return (
+ <DropdownMenu open={isOpen} onOpenChange={setIsOpen}>
+ <DropdownMenuTrigger asChild>
+ <IconButton
+ variant={isOpen ? "active" : "default"}
+ aria-label="Menu Button"
+ css={{ alignSelf: "center" }}
+ >
+ <MenuIcon width={15} height={15} />
+ </IconButton>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuItem>
+ <Text>Duplicate</Text>
+ </DropdownMenuItem>
+ <DropdownMenuItem>
+ <Text>Rename</Text>
+ </DropdownMenuItem>
+ <DropdownMenuItem>
+ <Text>Share</Text>
+ </DropdownMenuItem>
+ <DropdownMenuItem>
+ <Text>Delete</Text>
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ );
+};
+
+export const ProjectCard = ({
+ id,
+ title,
+ domain,
+ isPublished,
+}: DashboardProject) => {
+ return (
+ <Flex
+ direction="column"
+ shrink={false}
+ as="article"
+ className={projectCardContainerStyle()}
+ >
+ <Flex
+ grow
+ align="center"
+ as={RemixLink}
+ to={designerPath({ projectId: id })}
+ className={projectNameAvatarStyle()}
+ >
+ {getAbbreviation(title)}
+ </Flex>
+ <Flex
+ justify="between"
+ shrink={false}
+ gap="1"
+ className={projectCardFooterStyle()}
+ >
+ <Flex direction="column" justify="around">
+ <Text variant="title" truncate>
+ {title}
+ </Text>
+ <Domain domain={domain} isPublished={isPublished} />
+ </Flex>
+ <Menu />
+ </Flex>
+ </Flex>
+ );
+};
diff --git a/apps/designer/app/dashboard2/projects.tsx b/apps/designer/app/dashboard2/projects.tsx
index 7277a5e354..f59bcd8845 100644
--- a/apps/designer/app/dashboard2/projects.tsx
+++ b/apps/designer/app/dashboard2/projects.tsx
@@ -3,8 +3,14 @@ import { EmptyState } from "./empty-state";
import { Panel } from "./panel";
import { Heading } from "./heading";
import { PlusIcon } from "@webstudio-is/icons";
+import type { DashboardProject } from "@webstudio-is/prisma-client";
+import { ProjectCard } from "./project-card";
-export const Projects = () => {
+type ProjectsProps = {
+ projects: Array<DashboardProject>;
+};
+
+export const Projects = ({ projects }: ProjectsProps) => {
return (
<Panel>
<Flex direction="column" gap="3">
@@ -12,7 +18,12 @@ export const Projects = () => {
<Heading variant="small">Projects</Heading>
<Button prefix={<PlusIcon />}>New Project</Button>
</Flex>
- <EmptyState />
+ {projects.length === 0 && <EmptyState />}
+ <Flex gap="6" wrap="wrap">
+ {projects.map((project) => {
+ return <ProjectCard {...project} key={project.id} />;
+ })}
+ </Flex>
</Flex>
</Panel>
);
diff --git a/apps/designer/app/designer/designer.tsx b/apps/designer/app/designer/designer.tsx
index 2550a37593..56d91c7762 100644
--- a/apps/designer/app/designer/designer.tsx
+++ b/apps/designer/app/designer/designer.tsx
@@ -9,7 +9,7 @@ import { Box, type CSS, Flex, Grid } from "@webstudio-is/design-system";
import { registerContainers, useDesignerStore } from "~/shared/sync";
import { useSyncServer } from "./shared/sync-server";
// eslint-disable-next-line import/no-internal-modules
-import interFont from "@fontsource/inter/index.css";
+import interFont from "@fontsource/inter/variable.css";
import { SidebarLeft } from "./features/sidebar-left";
import { Inspector } from "./features/inspector";
import {
diff --git a/apps/designer/app/designer/features/topbar/publish.tsx b/apps/designer/app/designer/features/topbar/publish.tsx
index 7612420d61..1108b1b734 100644
--- a/apps/designer/app/designer/features/topbar/publish.tsx
+++ b/apps/designer/app/designer/features/topbar/publish.tsx
@@ -16,20 +16,11 @@ import {
useId,
} from "@webstudio-is/design-system";
import { useIsPublishDialogOpen } from "../../shared/nano-states";
-import env from "~/shared/env";
import type { Project } from "@webstudio-is/project";
-import { restPublishPath } from "~/shared/router-utils";
+import { getPublishedUrl, restPublishPath } from "~/shared/router-utils";
import { theme } from "@webstudio-is/design-system";
type PublishButtonProps = { project: Project };
-const getHost = () => {
- if (env.PUBLISHER_ENDPOINT && env.PUBLISHER_HOST) {
- return env.PUBLISHER_HOST;
- }
- // We use location.host to get the hostname and port in development mode and to not break local testing.
- return env.DESIGNER_HOST || location.host;
-};
-
const Content = ({ project }: PublishButtonProps) => {
const id = useId();
const fetcher = useFetcher();
@@ -40,7 +31,7 @@ const Content = ({ project }: PublishButtonProps) => {
if (typeof location !== "object" || !domain) {
return;
}
- setUrl(`${location.protocol}//${domain}.${getHost()}`);
+ setUrl(getPublishedUrl(domain));
}, [domain]);
return (
@@ -63,7 +54,7 @@ const Content = ({ project }: PublishButtonProps) => {
gap: theme.spacing[0],
}}
>
- <Text truncate>{`${domain}.${getHost()}`}</Text>
+ <Text truncate>{new URL(getPublishedUrl(domain)).host}</Text>
<ExternalLinkIcon />
</Link>
)}
diff --git a/apps/designer/app/routes/dashboard2/index.tsx b/apps/designer/app/routes/dashboard2/index.tsx
index 5dc767d67a..89a5deea7f 100644
--- a/apps/designer/app/routes/dashboard2/index.tsx
+++ b/apps/designer/app/routes/dashboard2/index.tsx
@@ -3,21 +3,17 @@ import type { LoaderArgs } from "@remix-run/node";
import { json, redirect } from "@remix-run/node";
import { Dashboard } from "~/dashboard2";
import { findAuthenticatedUser } from "~/services/auth.server";
-import { User as DbUser } from "@webstudio-is/prisma-client";
import { loginPath } from "~/shared/router-utils";
+import { ComponentProps } from "react";
+import { prisma } from "@webstudio-is/prisma-client";
export { links } from "~/dashboard2";
-type User = Omit<DbUser, "createdAt"> & {
- createdAt: string;
-};
-
-type Data = {
- user: User;
-};
+type Data = ComponentProps<typeof Dashboard>;
export const loader = async ({ request }: LoaderArgs) => {
const user = await findAuthenticatedUser(request);
+
if (!user) {
const url = new URL(request.url);
return redirect(
@@ -26,12 +22,19 @@ export const loader = async ({ request }: LoaderArgs) => {
})
);
}
- return json({ user });
+
+ const projects = await prisma.dashboardProject.findMany({
+ where: {
+ userId: user.id,
+ },
+ });
+
+ return json({ user, projects });
};
const DashboardRoute = () => {
- const { user } = useLoaderData<Data>();
- return <Dashboard user={user} />;
+ const data = useLoaderData<Data>();
+ return <Dashboard {...data} />;
};
export default DashboardRoute;
diff --git a/apps/designer/app/shared/router-utils/path-utils.ts b/apps/designer/app/shared/router-utils/path-utils.ts
index 247652de63..eeed6a792d 100644
--- a/apps/designer/app/shared/router-utils/path-utils.ts
+++ b/apps/designer/app/shared/router-utils/path-utils.ts
@@ -84,3 +84,17 @@ export const getBuildUrl = ({
return url.toString();
};
+
+export const getPublishedUrl = (domain: string) => {
+ const protocol = typeof location === "object" ? location.protocol : "https:";
+
+ const publisherHost =
+ env.PUBLISHER_ENDPOINT && env.PUBLISHER_HOST ? env.PUBLISHER_HOST : "";
+
+ // We use location.host to get the hostname and port in development mode and to not break local testing.
+ const localhost = typeof location === "object" ? location.host : "";
+
+ const host = publisherHost || env.DESIGNER_HOST || localhost;
+
+ return `${protocol}//${domain}.${host}`;
+};
diff --git a/packages/design-system/src/components/flex.tsx b/packages/design-system/src/components/flex.tsx
index bce8cdf92d..5713ea0473 100644
--- a/packages/design-system/src/components/flex.tsx
+++ b/packages/design-system/src/components/flex.tsx
@@ -52,6 +52,9 @@ export const Flex = styled("div", {
between: {
justifyContent: "space-between",
},
+ around: {
+ justifyContent: "space-around",
+ },
},
wrap: {
noWrap: {
diff --git a/packages/design-system/src/stitches.config.ts b/packages/design-system/src/stitches.config.ts
index e852234de0..1bc04a16cb 100644
--- a/packages/design-system/src/stitches.config.ts
+++ b/packages/design-system/src/stitches.config.ts
@@ -253,8 +253,9 @@ const {
transparentExtreme: "transparent",
},
fonts: {
- sans: "Inter, -apple-system, system-ui, sans-serif",
+ sans: "InterVariable, -apple-system, system-ui, sans-serif",
mono: "Roboto, menlo, monospace",
+ manrope: "ManropeVariable, sans-serif",
},
opacity: {
1: "0.4",
diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.json
index 25fc064903..b66690285e 100644
--- a/packages/prisma-client/package.json
+++ b/packages/prisma-client/package.json
@@ -21,7 +21,7 @@
"@types/uuid": "^8.3.4",
"@webstudio-is/scripts": "workspace:^",
"@webstudio-is/tsconfig": "workspace:^",
- "prisma": "^4.3.1",
+ "prisma": "^4.9.0",
"typescript": "4.7.4",
"zod": "^3.19.1"
},
@@ -31,7 +31,7 @@
"private": false,
"dependencies": {
"@inquirer/confirm": "^0.0.25-alpha.0",
- "@prisma/client": "^4.3.1",
+ "@prisma/client": "^4.9.0",
"@types/minimist": "^1.2.2",
"dotenv": "^16.0.0",
"execa": "^6.1.0",
diff --git a/packages/prisma-client/prisma/migrations/20230120130130_dashboard-project/migration.sql b/packages/prisma-client/prisma/migrations/20230120130130_dashboard-project/migration.sql
new file mode 100644
index 0000000000..17118c9e51
--- /dev/null
+++ b/packages/prisma-client/prisma/migrations/20230120130130_dashboard-project/migration.sql
@@ -0,0 +1,14 @@
+-- AlterTable
+CREATE VIEW "DashboardProject" AS
+SELECT
+ *,
+ EXISTS (
+ SELECT
+ 1
+ from
+ "Build"
+ WHERE
+ "Build"."projectId" = "Project".id
+ ) AS "isPublished"
+FROM
+ "Project";
\ No newline at end of file
diff --git a/packages/prisma-client/prisma/schema.prisma b/packages/prisma-client/prisma/schema.prisma
index fcdad67396..2e80cfc566 100644
--- a/packages/prisma-client/prisma/schema.prisma
+++ b/packages/prisma-client/prisma/schema.prisma
@@ -3,7 +3,7 @@
generator client {
provider = "prisma-client-js"
- previewFeatures = ["interactiveTransactions"]
+ previewFeatures = ["views"]
// <output-placeholder-for-migrations>
}
@@ -105,3 +105,12 @@ model DesignTokens {
buildId String @id
value String @default("[]")
}
+
+// Dashboard
+view DashboardProject {
+ id String @id @default(uuid())
+ title String
+ domain String
+ userId String?
+ isPublished Boolean
+}
diff --git a/packages/prisma-client/src/types.ts b/packages/prisma-client/src/types.ts
index 754294950b..fcb47cd28a 100644
--- a/packages/prisma-client/src/types.ts
+++ b/packages/prisma-client/src/types.ts
@@ -8,4 +8,5 @@ export type {
Project,
Asset,
Tree,
+ DashboardProject,
} from "@prisma/client";
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 12db921ee6..7253bce86e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -696,7 +696,7 @@ importers:
packages/prisma-client:
specifiers:
'@inquirer/confirm': ^0.0.25-alpha.0
- '@prisma/client': ^4.3.1
+ '@prisma/client': ^4.9.0
'@types/minimist': ^1.2.2
'@types/node': ^17.0.21
'@types/uuid': ^8.3.4
@@ -705,7 +705,7 @@ importers:
dotenv: ^16.0.0
execa: ^6.1.0
minimist: ^1.2.6
- prisma: ^4.3.1
+ prisma: ^4.9.0
tsx: ^3.9.0
typescript: 4.7.4
umzug: ^3.2.1
@@ -713,7 +713,7 @@ importers:
zod: ^3.19.1
dependencies:
'@inquirer/confirm': 0.0.25-alpha.0
- '@prisma/client': [email protected]
+ '@prisma/client': [email protected]
'@types/minimist': 1.2.2
dotenv: 16.0.1
execa: 6.1.0
@@ -726,7 +726,7 @@ importers:
'@types/uuid': 8.3.4
'@webstudio-is/scripts': link:../scripts
'@webstudio-is/tsconfig': link:../tsconfig
- prisma: 4.6.1
+ prisma: 4.9.0
typescript: 4.7.4
zod: 3.19.1
@@ -5038,8 +5038,8 @@ packages:
webpack: 5.75.0
dev: true
- /@prisma/client/[email protected]:
- resolution: {integrity: sha512-FA0/d1VMJNWqzU7WVWTNWJ+lGOLR9JUBnF73GdIPAEVo/6dWk4gHx0EmgeU+SMv4MZoxgOeTBJF2azhg7x0hMw==}
+ /@prisma/client/[email protected]:
+ resolution: {integrity: sha512-bz6QARw54sWcbyR1lLnF2QHvRW5R/Jxnbbmwh3u+969vUKXtBkXgSgjDA85nji31ZBlf7+FrHDy5x+5ydGyQDg==}
engines: {node: '>=14.17'}
requiresBuild: true
peerDependencies:
@@ -5048,16 +5048,16 @@ packages:
prisma:
optional: true
dependencies:
- '@prisma/engines-version': 4.3.0-32.c875e43600dfe042452e0b868f7a48b817b9640b
- prisma: 4.6.1
+ '@prisma/engines-version': 4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5
+ prisma: 4.9.0
dev: false
- /@prisma/engines-version/4.3.0-32.c875e43600dfe042452e0b868f7a48b817b9640b:
- resolution: {integrity: sha512-8yWpXkQRmiSfsi2Wb/ZS5D3RFbeu/btL9Pm/gdF4phB0Lo5KGsDFMxFMgaD64mwED2nHc8ZaEJg/+4Jymb9Znw==}
+ /@prisma/engines-version/4.9.0-42.ceb5c99003b99c9ee2c1d2e618e359c14aef2ea5:
+ resolution: {integrity: sha512-M16aibbxi/FhW7z1sJCX8u+0DriyQYY5AyeTH7plQm9MLnURoiyn3CZBqAyIoQ+Z1pS77usCIibYJWSgleBMBA==}
dev: false
- /@prisma/engines/4.6.1:
- resolution: {integrity: sha512-3u2/XxvxB+Q7cMXHnKU0CpBiUK1QWqpgiBv28YDo1zOIJE3FCF8DI2vrp6vuwjGt5h0JGXDSvmSf4D4maVjJdw==}
+ /@prisma/engines/4.9.0:
+ resolution: {integrity: sha512-t1pt0Gsp+HcgPJrHFc+d/ZSAaKKWar2G/iakrE07yeKPNavDP3iVKPpfXP22OTCHZUWf7OelwKJxQgKAm5hkgw==}
requiresBuild: true
/@radix-ui/colors/0.1.8:
@@ -18523,13 +18523,13 @@ packages:
dependencies:
parse-ms: 2.1.0
- /prisma/4.6.1:
- resolution: {integrity: sha512-BR4itMCuzrDV4tn3e2TF+nh1zIX/RVU0isKtKoN28ADeoJ9nYaMhiuRRkFd2TZN8+l/XfYzoRKyHzUFXLQhmBQ==}
+ /prisma/4.9.0:
+ resolution: {integrity: sha512-bS96oZ5oDFXYgoF2l7PJ3Mp1wWWfLOo8B/jAfbA2Pn0Wm5Z/owBHzaMQKS3i1CzVBDWWPVnOohmbJmjvkcHS5w==}
engines: {node: '>=14.17'}
hasBin: true
requiresBuild: true
dependencies:
- '@prisma/engines': 4.6.1
+ '@prisma/engines': 4.9.0
/prismjs/1.28.0:
resolution: {integrity: sha512-8aaXdYvl1F7iC7Xm1spqSaY/OJBpYW3v+KJ+F17iYxvdc8sfjW194COK5wVhMZX45tGteiBQgdvD/nhxcRwylw==}