diff --git a/.gitignore b/.gitignore index cbc38be82c..5b5c88c4db 100644 --- a/.gitignore +++ b/.gitignore @@ -31,5 +31,7 @@ cypress.env.json workspace.code-workspace +.DS_Store + diff --git a/apps/builder/components/dashboard/FolderContent/TypebotButton.tsx b/apps/builder/components/dashboard/FolderContent/TypebotButton.tsx index f59b7f2ba0..536b67ae4b 100644 --- a/apps/builder/components/dashboard/FolderContent/TypebotButton.tsx +++ b/apps/builder/components/dashboard/FolderContent/TypebotButton.tsx @@ -11,7 +11,7 @@ import { } from '@chakra-ui/react' import { useDraggable } from '@dnd-kit/core' import { useRouter } from 'next/router' -import { Typebot } from '@typebot/prisma' +import { Typebot } from 'db' import { isMobile } from 'services/utils' import { MoreButton } from 'components/MoreButton' import { ConfirmModal } from 'components/modals/ConfirmModal' diff --git a/apps/builder/libs/prisma.ts b/apps/builder/libs/prisma.ts index ffc43a367c..f4e31f5b4e 100644 --- a/apps/builder/libs/prisma.ts +++ b/apps/builder/libs/prisma.ts @@ -1,4 +1,4 @@ -import { PrismaClient } from '@typebot/prisma' +import { PrismaClient } from 'db' declare const global: { prisma: PrismaClient } let prisma: PrismaClient diff --git a/apps/builder/package.json b/apps/builder/package.json index 551ab7dfb2..78cfd2e1e6 100644 --- a/apps/builder/package.json +++ b/apps/builder/package.json @@ -4,7 +4,7 @@ "scripts": { "dev": "dotenv -e ../../.env next dev", "build": "next build", - "build:prod": "yarn workspace @typebot/prisma deploy && next build", + "build:prod": "yarn workspace db deploy && next build", "start": "next start", "lint": "next lint", "cypress": "cypress open" diff --git a/apps/builder/pages/api/auth/[...nextauth].ts b/apps/builder/pages/api/auth/[...nextauth].ts index 3624148e54..ff90550899 100644 --- a/apps/builder/pages/api/auth/[...nextauth].ts +++ b/apps/builder/pages/api/auth/[...nextauth].ts @@ -7,7 +7,7 @@ import FacebookProvider from 'next-auth/providers/facebook' import CredentialsProvider from 'next-auth/providers/credentials' import prisma from 'libs/prisma' import { Provider } from 'next-auth/providers' -import { User } from '@typebot/prisma' +import { User } from 'db' const providers: Provider[] = [ EmailProvider({ diff --git a/apps/builder/pages/api/folders.ts b/apps/builder/pages/api/folders.ts index 22d981516a..8f96b6403d 100644 --- a/apps/builder/pages/api/folders.ts +++ b/apps/builder/pages/api/folders.ts @@ -1,4 +1,4 @@ -import { DashboardFolder, User } from '@typebot/prisma' +import { DashboardFolder, User } from 'db' import prisma from 'libs/prisma' import { NextApiRequest, NextApiResponse } from 'next' import { getSession } from 'next-auth/react' diff --git a/apps/builder/pages/api/folders/[id].ts b/apps/builder/pages/api/folders/[id].ts index 75c11b188c..3ec40299a0 100644 --- a/apps/builder/pages/api/folders/[id].ts +++ b/apps/builder/pages/api/folders/[id].ts @@ -1,4 +1,4 @@ -import { DashboardFolder } from '@typebot/prisma' +import { DashboardFolder } from 'db' import prisma from 'libs/prisma' import { NextApiRequest, NextApiResponse } from 'next' import { getSession } from 'next-auth/react' diff --git a/apps/builder/pages/api/typebots.ts b/apps/builder/pages/api/typebots.ts index d2237423e0..c2e919c173 100644 --- a/apps/builder/pages/api/typebots.ts +++ b/apps/builder/pages/api/typebots.ts @@ -1,4 +1,4 @@ -import { Typebot, User } from '@typebot/prisma' +import { Typebot, User } from 'db' import prisma from 'libs/prisma' import { NextApiRequest, NextApiResponse } from 'next' import { getSession } from 'next-auth/react' diff --git a/apps/builder/services/typebots.ts b/apps/builder/services/typebots.ts index 44c37e176b..1e54f839d2 100644 --- a/apps/builder/services/typebots.ts +++ b/apps/builder/services/typebots.ts @@ -1,4 +1,4 @@ -import { Typebot } from '@typebot/prisma' +import { Typebot } from 'db' import useSWR from 'swr' import { fetcher, sendRequest } from './utils' diff --git a/apps/builder/services/user.ts b/apps/builder/services/user.ts index 70169a32a1..52e895cc64 100644 --- a/apps/builder/services/user.ts +++ b/apps/builder/services/user.ts @@ -1,4 +1,4 @@ -import { User } from '@typebot/prisma' +import { User } from 'db' import { useSession } from 'next-auth/react' export const useUser = (): User | undefined => { diff --git a/package.json b/package.json index 2fc7a90829..a1d478eb34 100644 --- a/package.json +++ b/package.json @@ -7,14 +7,13 @@ "apps/*" ], "scripts": { - "db:up": "docker-compose up -d && yarn workspace @typebot/prisma prisma db push", + "builder": "yarn workspace builder", + "viewer": "yarn workspace viewer", + "db": "yarn workspace db", + "db:up": "docker-compose up -d && yarn db prisma db push", "db:nuke": "docker-compose down --volumes --remove-orphans", - "dev": "concurrently -n builder,viewer \"yarn dev:builder\" \"yarn dev:viewer\"", - "dev:builder": "yarn workspace builder dev", - "dev:viewer": "yarn workspace viewer dev", - "dx": "run-s db:up dev", - "cypress:builder": "yarn workspace builder cypress", - "cypress:viewer": "yarn workspace builder cypress" + "dev": "concurrently -n builder,viewer \"yarn builder dev\" \"yarn viewer dev\"", + "dx": "run-s db:up dev" }, "devDependencies": { "concurrently": "^6.4.0", diff --git a/packages/prisma/.gitignore b/packages/db/.gitignore similarity index 100% rename from packages/prisma/.gitignore rename to packages/db/.gitignore diff --git a/packages/prisma/README.md b/packages/db/README.md similarity index 100% rename from packages/prisma/README.md rename to packages/db/README.md diff --git a/packages/prisma/index.ts b/packages/db/index.ts similarity index 100% rename from packages/prisma/index.ts rename to packages/db/index.ts diff --git a/packages/prisma/package.json b/packages/db/package.json similarity index 92% rename from packages/prisma/package.json rename to packages/db/package.json index 134dbbb4a8..25f8c7329d 100644 --- a/packages/prisma/package.json +++ b/packages/db/package.json @@ -1,5 +1,5 @@ { - "name": "@typebot/prisma", + "name": "db", "packageManager": "yarn@3.1.0", "devDependencies": { "dotenv-cli": "^4.1.0", diff --git a/packages/prisma/prisma/migrations/20211129141723_add_next_auth_tables/migration.sql b/packages/db/prisma/migrations/20211129141723_add_next_auth_tables/migration.sql similarity index 100% rename from packages/prisma/prisma/migrations/20211129141723_add_next_auth_tables/migration.sql rename to packages/db/prisma/migrations/20211129141723_add_next_auth_tables/migration.sql diff --git a/packages/prisma/prisma/migrations/20211206144727_add_barebones/migration.sql b/packages/db/prisma/migrations/20211206144727_add_barebones/migration.sql similarity index 100% rename from packages/prisma/prisma/migrations/20211206144727_add_barebones/migration.sql rename to packages/db/prisma/migrations/20211206144727_add_barebones/migration.sql diff --git a/packages/prisma/prisma/migrations/migration_lock.toml b/packages/db/prisma/migrations/migration_lock.toml similarity index 100% rename from packages/prisma/prisma/migrations/migration_lock.toml rename to packages/db/prisma/migrations/migration_lock.toml diff --git a/packages/prisma/prisma/schema.draft.prisma b/packages/db/prisma/schema.draft.prisma similarity index 100% rename from packages/prisma/prisma/schema.draft.prisma rename to packages/db/prisma/schema.draft.prisma diff --git a/packages/prisma/prisma/schema.prisma b/packages/db/prisma/schema.prisma similarity index 98% rename from packages/prisma/prisma/schema.prisma rename to packages/db/prisma/schema.prisma index 4031950702..3e240dba5a 100644 --- a/packages/prisma/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -87,6 +87,7 @@ model Typebot { results Result[] folderId String? folder DashboardFolder? @relation(fields: [folderId], references: [id]) + blocks Json[] } model PublicTypebot { @@ -95,6 +96,7 @@ model PublicTypebot { typebot Typebot @relation(fields: [typebotId], references: [id], onDelete: Cascade) steps Json[] name String + blocks Json[] } model Result { diff --git a/packages/prisma/tsconfig.json b/packages/db/tsconfig.json similarity index 100% rename from packages/prisma/tsconfig.json rename to packages/db/tsconfig.json diff --git a/yarn.lock b/yarn.lock index 7079e8abcb..3942e3f0b1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1721,19 +1721,6 @@ __metadata: languageName: node linkType: hard -"@typebot/prisma@workspace:packages/prisma": - version: 0.0.0-use.local - resolution: "@typebot/prisma@workspace:packages/prisma" - dependencies: - "@prisma/client": latest - dotenv-cli: ^4.1.0 - npm-run-all: ^4.1.5 - prisma: latest - ts-node: ^10.4.0 - typescript: ^4.5.2 - languageName: unknown - linkType: soft - "@types/aria-query@npm:^4.2.0": version: 4.2.2 resolution: "@types/aria-query@npm:4.2.2" @@ -1849,6 +1836,17 @@ __metadata: languageName: node linkType: hard +"@types/react@npm:^17.0.37": + version: 17.0.37 + resolution: "@types/react@npm:17.0.37" + dependencies: + "@types/prop-types": "*" + "@types/scheduler": "*" + csstype: ^3.0.2 + checksum: e68b0d59aa69577fc6a6d654b25d5d8408625498f4c483f160b557fac21e840f6e8807cbde93e9f039949b6d624a019b1990d18499c1d65aecf3605c25e30242 + languageName: node + linkType: hard + "@types/scheduler@npm:*": version: 0.16.2 resolution: "@types/scheduler@npm:0.16.2" @@ -2082,6 +2080,24 @@ __metadata: languageName: node linkType: hard +"acorn-node@npm:^1.6.1": + version: 1.8.2 + resolution: "acorn-node@npm:1.8.2" + dependencies: + acorn: ^7.0.0 + acorn-walk: ^7.0.0 + xtend: ^4.0.2 + checksum: 02e1564a1ccf8bd1fcefcd01235398af4a9effaf032c5397994ddd275590a72894cb3e26e4b82579ccdda1e48ade7486aef61e771ddae3563ca452b927f443d8 + languageName: node + linkType: hard + +"acorn-walk@npm:^7.0.0": + version: 7.2.0 + resolution: "acorn-walk@npm:7.2.0" + checksum: 9252158a79b9d92f1bc0dd6acc0fcfb87a67339e84bcc301bb33d6078936d27e35d606b4d35626d2962cd43c256d6f27717e70cbe15c04fff999ab0b2260b21f + languageName: node + linkType: hard + "acorn-walk@npm:^8.1.1": version: 8.2.0 resolution: "acorn-walk@npm:8.2.0" @@ -2098,7 +2114,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^7.4.0": +"acorn@npm:^7.0.0, acorn@npm:^7.4.0": version: 7.4.1 resolution: "acorn@npm:7.4.1" bin: @@ -2239,7 +2255,7 @@ __metadata: languageName: node linkType: hard -"anymatch@npm:~3.1.1": +"anymatch@npm:~3.1.1, anymatch@npm:~3.1.2": version: 3.1.2 resolution: "anymatch@npm:3.1.2" dependencies: @@ -2280,6 +2296,13 @@ __metadata: languageName: node linkType: hard +"arg@npm:^5.0.1": + version: 5.0.1 + resolution: "arg@npm:5.0.1" + checksum: 9aefbcb1204f8dbd541a045bfe99b6515b4dc697c2f704ef2bb5e9fe5464575d97571e91e673a6f23ad72dd1cc24d7d8cf2d1d828e72c08e4d4f6f9237adc761 + languageName: node + linkType: hard + "argparse@npm:^1.0.7": version: 1.0.10 resolution: "argparse@npm:1.0.10" @@ -2550,6 +2573,17 @@ __metadata: languageName: node linkType: hard +"bot-engine@workspace:packages/bot-engine": + version: 0.0.0-use.local + resolution: "bot-engine@workspace:packages/bot-engine" + dependencies: + "@types/react": ^17.0.37 + react: ^17.0.2 + tailwindcss: ^2.2.19 + typescript: ^4.5.2 + languageName: unknown + linkType: soft + "brace-expansion@npm:^1.1.7": version: 1.1.11 resolution: "brace-expansion@npm:1.1.11" @@ -2748,6 +2782,13 @@ __metadata: languageName: node linkType: hard +"bytes@npm:^3.0.0": + version: 3.1.1 + resolution: "bytes@npm:3.1.1" + checksum: 949ab99a385d6acf4d2c69f1afc618615dc905936e0b0b9aa94a9e94d722baaba44d6a0851536585a0892ae4d462b5a270ccb1b04c774640742cbde5538ca328 + languageName: node + linkType: hard + "cacache@npm:^15.2.0": version: 15.3.0 resolution: "cacache@npm:15.3.0" @@ -2798,6 +2839,13 @@ __metadata: languageName: node linkType: hard +"camelcase-css@npm:^2.0.1": + version: 2.0.1 + resolution: "camelcase-css@npm:2.0.1" + checksum: 1cec2b3b3dcb5026688a470b00299a8db7d904c4802845c353dbd12d9d248d3346949a814d83bfd988d4d2e5b9904c07efe76fecd195a1d4f05b543e7c0b56b1 + languageName: node + linkType: hard + "caniuse-lite@npm:^1.0.30001202, caniuse-lite@npm:^1.0.30001219, caniuse-lite@npm:^1.0.30001228": version: 1.0.30001282 resolution: "caniuse-lite@npm:1.0.30001282" @@ -2833,7 +2881,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:^4.0.0, chalk@npm:^4.1.0": +"chalk@npm:^4.0.0, chalk@npm:^4.1.0, chalk@npm:^4.1.2": version: 4.1.2 resolution: "chalk@npm:4.1.2" dependencies: @@ -2869,6 +2917,25 @@ __metadata: languageName: node linkType: hard +"chokidar@npm:^3.5.2": + version: 3.5.2 + resolution: "chokidar@npm:3.5.2" + dependencies: + anymatch: ~3.1.2 + braces: ~3.0.2 + fsevents: ~2.3.2 + glob-parent: ~5.1.2 + is-binary-path: ~2.1.0 + is-glob: ~4.0.1 + normalize-path: ~3.0.0 + readdirp: ~3.6.0 + dependenciesMeta: + fsevents: + optional: true + checksum: d1fda32fcd67d9f6170a8468ad2630a3c6194949c9db3f6a91b16478c328b2800f433fb5d2592511b6cb145a47c013ea1cce60b432b1a001ae3ee978a8bffc2d + languageName: node + linkType: hard + "chownr@npm:^2.0.0": version: 2.0.0 resolution: "chownr@npm:2.0.0" @@ -2983,13 +3050,33 @@ __metadata: languageName: node linkType: hard -"color-name@npm:~1.1.4": +"color-name@npm:^1.0.0, color-name@npm:~1.1.4": version: 1.1.4 resolution: "color-name@npm:1.1.4" checksum: b0445859521eb4021cd0fb0cc1a75cecf67fceecae89b63f62b201cca8d345baf8b952c966862a9d9a2632987d4f6581f0ec8d957dfacece86f0a7919316f610 languageName: node linkType: hard +"color-string@npm:^1.9.0": + version: 1.9.0 + resolution: "color-string@npm:1.9.0" + dependencies: + color-name: ^1.0.0 + simple-swizzle: ^0.2.2 + checksum: 93c6678b847f8cfa47d19677fd19e1d4b19d7a33f100644400357c298266080b5bca64e5f874fa8ac8cc0aa0606ad44f7a838b4e6fd05e6affea190a68555bb4 + languageName: node + linkType: hard + +"color@npm:^4.0.1": + version: 4.1.0 + resolution: "color@npm:4.1.0" + dependencies: + color-convert: ^2.0.1 + color-string: ^1.9.0 + checksum: 9f2ca574f8453983ab549282962ccdb094d8b5d29de2d162f2bca81c0c82429d1dfac49d8dabf2c0c0369bb7ceae16ceabc9f523f9eaedcba38a464e72091458 + languageName: node + linkType: hard + "colorette@npm:^1.2.2": version: 1.4.0 resolution: "colorette@npm:1.4.0" @@ -3027,6 +3114,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^8.0.0": + version: 8.3.0 + resolution: "commander@npm:8.3.0" + checksum: 0f82321821fc27b83bd409510bb9deeebcfa799ff0bf5d102128b500b7af22872c0c92cb6a0ebc5a4cf19c6b550fba9cedfa7329d18c6442a625f851377bacf0 + languageName: node + linkType: hard + "common-tags@npm:^1.8.0": version: 1.8.2 resolution: "common-tags@npm:1.8.2" @@ -3167,6 +3261,19 @@ __metadata: languageName: node linkType: hard +"cosmiconfig@npm:^7.0.1": + version: 7.0.1 + resolution: "cosmiconfig@npm:7.0.1" + dependencies: + "@types/parse-json": ^4.0.0 + import-fresh: ^3.2.1 + parse-json: ^5.0.0 + path-type: ^4.0.0 + yaml: ^1.10.0 + checksum: 4be63e7117955fd88333d7460e4c466a90f556df6ef34efd59034d2463484e339666c41f02b523d574a797ec61f4a91918c5b89a316db2ea2f834e0d2d09465b + languageName: node + linkType: hard + "create-ecdh@npm:^4.0.0": version: 4.0.4 resolution: "create-ecdh@npm:4.0.4" @@ -3263,6 +3370,20 @@ __metadata: languageName: node linkType: hard +"css-color-names@npm:^0.0.4": + version: 0.0.4 + resolution: "css-color-names@npm:0.0.4" + checksum: 9c6106320430a9da3a13daab8d8b4def39113edbfb68042444585d9a214af5fd5cb384b9be45124bc75f88261d461b517e00e278f4d2e0ab5a619b182f9f0e2d + languageName: node + linkType: hard + +"css-unit-converter@npm:^1.1.1": + version: 1.1.2 + resolution: "css-unit-converter@npm:1.1.2" + checksum: 07888033346a5128f34dbe2f72884c966d24e9f29db24416dcde92860242490617ef9a178ac193a92f730834bbeea026cdc7027701d92ba9bbbe59db7a37eb2a + languageName: node + linkType: hard + "css.escape@npm:1.5.1": version: 1.5.1 resolution: "css.escape@npm:1.5.1" @@ -3270,6 +3391,15 @@ __metadata: languageName: node linkType: hard +"cssesc@npm:^3.0.0": + version: 3.0.0 + resolution: "cssesc@npm:3.0.0" + bin: + cssesc: bin/cssesc + checksum: f8c4ababffbc5e2ddf2fa9957dda1ee4af6048e22aeda1869d0d00843223c1b13ad3f5d88b51caa46c994225eacb636b764eb807a8883e2fb6f99b4f4e8c48b2 + languageName: node + linkType: hard + "cssnano-preset-simple@npm:^3.0.0": version: 3.0.0 resolution: "cssnano-preset-simple@npm:3.0.0" @@ -3400,6 +3530,19 @@ __metadata: languageName: node linkType: hard +"db@workspace:packages/db": + version: 0.0.0-use.local + resolution: "db@workspace:packages/db" + dependencies: + "@prisma/client": latest + dotenv-cli: ^4.1.0 + npm-run-all: ^4.1.5 + prisma: latest + ts-node: ^10.4.0 + typescript: ^4.5.2 + languageName: unknown + linkType: soft + "debug@npm:2, debug@npm:^2.6.9": version: 2.6.9 resolution: "debug@npm:2.6.9" @@ -3446,6 +3589,13 @@ __metadata: languageName: node linkType: hard +"defined@npm:^1.0.0": + version: 1.0.0 + resolution: "defined@npm:1.0.0" + checksum: 77672997c5001773371c4dbcce98da0b3dc43089d6da2ad87c4b800adb727633cea8723ea3889fe0c2112a2404e2fd07e3bfd0e55f7426aa6441d8992045dbd5 + languageName: node + linkType: hard + "delayed-stream@npm:~1.0.0": version: 1.0.0 resolution: "delayed-stream@npm:1.0.0" @@ -3491,6 +3641,26 @@ __metadata: languageName: node linkType: hard +"detective@npm:^5.2.0": + version: 5.2.0 + resolution: "detective@npm:5.2.0" + dependencies: + acorn-node: ^1.6.1 + defined: ^1.0.0 + minimist: ^1.1.1 + bin: + detective: bin/detective.js + checksum: 2ab266aecbd695b42e4703cfa560178ceac4308a74baece58185775426e65573d563d84f33e6a3b28ef3a544aa0c039c0730ada939c6458862e6643f66044f32 + languageName: node + linkType: hard + +"didyoumean@npm:^1.2.2": + version: 1.2.2 + resolution: "didyoumean@npm:1.2.2" + checksum: d5d98719d58b3c2fa59663c4c42ba9716f1fd01245c31d5fce31915bd3aa26e6aac149788e007358f778ebbd68a2256eb5973e8ca6f221df221ba060115acf2e + languageName: node + linkType: hard + "diff@npm:^4.0.1": version: 4.0.2 resolution: "diff@npm:4.0.2" @@ -3518,6 +3688,13 @@ __metadata: languageName: node linkType: hard +"dlv@npm:^1.1.3": + version: 1.1.3 + resolution: "dlv@npm:1.1.3" + checksum: d7381bca22ed11933a1ccf376db7a94bee2c57aa61e490f680124fa2d1cd27e94eba641d9f45be57caab4f9a6579de0983466f620a2cd6230d7ec93312105ae7 + languageName: node + linkType: hard + "doctrine@npm:^2.1.0": version: 2.1.0 resolution: "doctrine@npm:2.1.0" @@ -4209,7 +4386,7 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.1.1": +"fast-glob@npm:^3.1.1, fast-glob@npm:^3.2.7": version: 3.2.7 resolution: "fast-glob@npm:3.2.7" dependencies: @@ -4405,6 +4582,17 @@ __metadata: languageName: node linkType: hard +"fs-extra@npm:^10.0.0": + version: 10.0.0 + resolution: "fs-extra@npm:10.0.0" + dependencies: + graceful-fs: ^4.2.0 + jsonfile: ^6.0.1 + universalify: ^2.0.0 + checksum: 5285a3d8f34b917cf2b66af8c231a40c1623626e9d701a20051d3337be16c6d7cac94441c8b3732d47a92a2a027886ca93c69b6a4ae6aee3c89650d2a8880c0a + languageName: node + linkType: hard + "fs-extra@npm:^9.1.0": version: 9.1.0 resolution: "fs-extra@npm:9.1.0" @@ -4433,7 +4621,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:~2.3.1": +"fsevents@npm:~2.3.1, fsevents@npm:~2.3.2": version: 2.3.2 resolution: "fsevents@npm:2.3.2" dependencies: @@ -4443,7 +4631,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@~2.3.1#~builtin": +"fsevents@patch:fsevents@~2.3.1#~builtin, fsevents@patch:fsevents@~2.3.2#~builtin": version: 2.3.2 resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin::version=2.3.2&hash=18f3a7" dependencies: @@ -4553,7 +4741,7 @@ __metadata: languageName: node linkType: hard -"glob-parent@npm:^5.1.2, glob-parent@npm:~5.1.0": +"glob-parent@npm:^5.1.2, glob-parent@npm:~5.1.0, glob-parent@npm:~5.1.2": version: 5.1.2 resolution: "glob-parent@npm:5.1.2" dependencies: @@ -4562,6 +4750,15 @@ __metadata: languageName: node linkType: hard +"glob-parent@npm:^6.0.1": + version: 6.0.2 + resolution: "glob-parent@npm:6.0.2" + dependencies: + is-glob: ^4.0.3 + checksum: c13ee97978bef4f55106b71e66428eb1512e71a7466ba49025fc2aec59a5bfb0954d5abd58fc5ee6c9b076eef4e1f6d3375c2e964b88466ca390da4419a786a8 + languageName: node + linkType: hard + "glob-to-regexp@npm:^0.4.1": version: 0.4.1 resolution: "glob-to-regexp@npm:0.4.1" @@ -4743,6 +4940,13 @@ __metadata: languageName: node linkType: hard +"hex-color-regex@npm:^1.1.0": + version: 1.1.0 + resolution: "hex-color-regex@npm:1.1.0" + checksum: 44fa1b7a26d745012f3bfeeab8015f60514f72d2fcf10dce33068352456b8d71a2e6bc5a17f933ab470da2c5ab1e3e04b05caf3fefe3c1cabd7e02e516fc8784 + languageName: node + linkType: hard + "hey-listen@npm:^1.0.8": version: 1.0.8 resolution: "hey-listen@npm:1.0.8" @@ -4777,6 +4981,27 @@ __metadata: languageName: node linkType: hard +"hsl-regex@npm:^1.0.0": + version: 1.0.0 + resolution: "hsl-regex@npm:1.0.0" + checksum: de9ee1bf39de1b83cc3fa0fa1cc337f29f14911e79411d66347365c54fab6b109eea2dd741eaa02486e24de31627ad7bf4453f22224fb55a2fe2b58166fa63b8 + languageName: node + linkType: hard + +"hsla-regex@npm:^1.0.0": + version: 1.0.0 + resolution: "hsla-regex@npm:1.0.0" + checksum: 9aa6eb9ff6c102d2395435aa5d1d91eae20043c4b1497c543d8db501c05f3edacd9a07fb34a987059d7902dba415af4cb4e610f751859ae8e7525df4ffcd085f + languageName: node + linkType: hard + +"html-tags@npm:^3.1.0": + version: 3.1.0 + resolution: "html-tags@npm:3.1.0" + checksum: 67587f2d4022390d7bc34b1313773ecb0b0e0c79fb331aa3e20023eb4c862c7188a1ff775d126fcd75f4e4f08f956666a1c57688c4d24d85a77f9d4b1a42f345 + languageName: node + linkType: hard + "http-cache-semantics@npm:^4.1.0": version: 4.1.0 resolution: "http-cache-semantics@npm:4.1.0" @@ -4912,6 +5137,15 @@ __metadata: languageName: node linkType: hard +"import-cwd@npm:^3.0.0": + version: 3.0.0 + resolution: "import-cwd@npm:3.0.0" + dependencies: + import-from: ^3.0.0 + checksum: f2c4230e8389605154a390124381f9136811306ae4ba1c8017398c3c6926bc5cf75cf89350372b4938f79792ea373776b4efabd27506440ec301ce34c4e867eb + languageName: node + linkType: hard + "import-fresh@npm:^3.0.0, import-fresh@npm:^3.1.0, import-fresh@npm:^3.2.1": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" @@ -4922,6 +5156,15 @@ __metadata: languageName: node linkType: hard +"import-from@npm:^3.0.0": + version: 3.0.0 + resolution: "import-from@npm:3.0.0" + dependencies: + resolve-from: ^5.0.0 + checksum: 5040a7400e77e41e2c3bb6b1b123b52a15a284de1ffc03d605879942c00e3a87428499d8d031d554646108a0f77652549411167f6a7788e4fc7027eefccf3356 + languageName: node + linkType: hard + "imurmurhash@npm:^0.1.4": version: 0.1.4 resolution: "imurmurhash@npm:0.1.4" @@ -5011,6 +5254,13 @@ __metadata: languageName: node linkType: hard +"is-arrayish@npm:^0.3.1": + version: 0.3.2 + resolution: "is-arrayish@npm:0.3.2" + checksum: 977e64f54d91c8f169b59afcd80ff19227e9f5c791fa28fa2e5bce355cbaf6c2c356711b734656e80c9dd4a854dd7efcf7894402f1031dfc5de5d620775b4d5f + languageName: node + linkType: hard + "is-bigint@npm:^1.0.1": version: 1.0.4 resolution: "is-bigint@npm:1.0.4" @@ -5057,6 +5307,20 @@ __metadata: languageName: node linkType: hard +"is-color-stop@npm:^1.1.0": + version: 1.1.0 + resolution: "is-color-stop@npm:1.1.0" + dependencies: + css-color-names: ^0.0.4 + hex-color-regex: ^1.1.0 + hsl-regex: ^1.0.0 + hsla-regex: ^1.0.0 + rgb-regex: ^1.0.1 + rgba-regex: ^1.0.0 + checksum: 778dd52a603ab8da827925aa4200fe6733b667b216495a04110f038b925dc5ef58babe759b94ffc4e44fcf439328695770873937f59d6045f676322b97f3f92d + languageName: node + linkType: hard + "is-core-module@npm:^2.2.0, is-core-module@npm:^2.8.0": version: 2.8.0 resolution: "is-core-module@npm:2.8.0" @@ -5444,6 +5708,13 @@ __metadata: languageName: node linkType: hard +"lilconfig@npm:^2.0.3": + version: 2.0.4 + resolution: "lilconfig@npm:2.0.4" + checksum: 02ae530aa49218d782eb79e92c600ea5220828987f85aa3403fa512cadc7efe38c0ac7d0cd2edf600ad3fae1f6c1752f5b4bb78c0d9950435b044d53d507c9e1 + languageName: node + linkType: hard + "lines-and-columns@npm:^1.1.6": version: 1.2.4 resolution: "lines-and-columns@npm:1.2.4" @@ -5542,6 +5813,13 @@ __metadata: languageName: node linkType: hard +"lodash.topath@npm:^4.5.2": + version: 4.5.2 + resolution: "lodash.topath@npm:4.5.2" + checksum: 04583e220f4bb1c4ac0008ff8f46d9cb4ddce0ea1090085790da30a41f4cb1b904d885cb73257fca619fa825cd96f9bb97c67d039635cb76056e18f5e08bfdee + languageName: node + linkType: hard + "lodash.truncate@npm:^4.4.2": version: 4.4.2 resolution: "lodash.truncate@npm:4.4.2" @@ -5756,7 +6034,7 @@ __metadata: languageName: node linkType: hard -"minimist@npm:^1.1.3, minimist@npm:^1.2.0, minimist@npm:^1.2.5": +"minimist@npm:^1.1.1, minimist@npm:^1.1.3, minimist@npm:^1.2.0, minimist@npm:^1.2.5": version: 1.2.5 resolution: "minimist@npm:1.2.5" checksum: 86706ce5b36c16bfc35c5fe3dbb01d5acdc9a22f2b6cc810b6680656a1d2c0e44a0159c9a3ba51fb072bb5c203e49e10b51dcd0eec39c481f4c42086719bae52 @@ -5853,6 +6131,13 @@ __metadata: languageName: node linkType: hard +"modern-normalize@npm:^1.1.0": + version: 1.1.0 + resolution: "modern-normalize@npm:1.1.0" + checksum: edfd40650bd7250eb4761651886a02ca3c524effca41b9832932eab9ccf9f2cfa7e5da8491c7c8bc2d58e1696e5e765adebeaf90cd9d3376444bd6bc0b0f2c99 + languageName: node + linkType: hard + "ms@npm:2.0.0": version: 2.0.0 resolution: "ms@npm:2.0.0" @@ -5874,7 +6159,7 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^3.1.23": +"nanoid@npm:^3.1.23, nanoid@npm:^3.1.30": version: 3.1.30 resolution: "nanoid@npm:3.1.30" bin: @@ -6034,6 +6319,15 @@ __metadata: languageName: node linkType: hard +"node-emoji@npm:^1.11.0": + version: 1.11.0 + resolution: "node-emoji@npm:1.11.0" + dependencies: + lodash: ^4.17.21 + checksum: e8c856c04a1645062112a72e59a98b203505ed5111ff84a3a5f40611afa229b578c7d50f1e6a7f17aa62baeea4a640d2e2f61f63afc05423aa267af10977fb2b + languageName: node + linkType: hard + "node-fetch@npm:2.6.1": version: 2.6.1 resolution: "node-fetch@npm:2.6.1" @@ -6184,7 +6478,7 @@ __metadata: languageName: node linkType: hard -"object-hash@npm:^2.0.1": +"object-hash@npm:^2.0.1, object-hash@npm:^2.2.0": version: 2.2.0 resolution: "object-hash@npm:2.2.0" checksum: 55ba841e3adce9c4f1b9b46b41983eda40f854e0d01af2802d3ae18a7085a17168d6b81731d43fdf1d6bcbb3c9f9c56d22c8fea992203ad90a38d7d919bc28f1 @@ -6557,6 +6851,13 @@ __metadata: languageName: node linkType: hard +"picocolors@npm:^1.0.0": + version: 1.0.0 + resolution: "picocolors@npm:1.0.0" + checksum: a2e8092dd86c8396bdba9f2b5481032848525b3dc295ce9b57896f931e63fc16f79805144321f72976383fc249584672a75cc18d6777c6b757603f372f745981 + languageName: node + linkType: hard + "picomatch@npm:^2.0.4, picomatch@npm:^2.2.1, picomatch@npm:^2.2.3": version: 2.3.0 resolution: "picomatch@npm:2.3.0" @@ -6624,6 +6925,67 @@ __metadata: languageName: node linkType: hard +"postcss-js@npm:^3.0.3": + version: 3.0.3 + resolution: "postcss-js@npm:3.0.3" + dependencies: + camelcase-css: ^2.0.1 + postcss: ^8.1.6 + checksum: cc17f59f2b9bb22ed1cf9daab1f9944635b0713dce923ff7d9fd10b89393fc9aa1fab43a97f9a71295827fa32c9676d52661d7d6a693ecc0c41541ee928c781e + languageName: node + linkType: hard + +"postcss-load-config@npm:^3.1.0": + version: 3.1.0 + resolution: "postcss-load-config@npm:3.1.0" + dependencies: + import-cwd: ^3.0.0 + lilconfig: ^2.0.3 + yaml: ^1.10.2 + peerDependencies: + ts-node: ">=9.0.0" + peerDependenciesMeta: + ts-node: + optional: true + checksum: 7fd62064eab1e0e77ba315d9a782f09f4c62e1025630b53d38a936d5a2730bb632a3f259143115fc639e70d22f14744a75c7a6f471343ebdb03f6a3ef72d2f08 + languageName: node + linkType: hard + +"postcss-nested@npm:5.0.6": + version: 5.0.6 + resolution: "postcss-nested@npm:5.0.6" + dependencies: + postcss-selector-parser: ^6.0.6 + peerDependencies: + postcss: ^8.2.14 + checksum: dbcbfd11e514f485ac0d2b649b32bcbd855665a88a76f697f8be6c5017aa0260954ecccd2475bbd5865a5d248eae9a4e6e10d2d51927621d05430381aa37e43b + languageName: node + linkType: hard + +"postcss-selector-parser@npm:^6.0.6": + version: 6.0.6 + resolution: "postcss-selector-parser@npm:6.0.6" + dependencies: + cssesc: ^3.0.0 + util-deprecate: ^1.0.2 + checksum: 3602758798048bffbd6a97d6f009b32a993d6fd2cc70775bb59593e803d7fa8738822ecffb2fafc745edf7fad297dad53c30d2cfe78446a7d3f4a4a258cb15b2 + languageName: node + linkType: hard + +"postcss-value-parser@npm:^3.3.0": + version: 3.3.1 + resolution: "postcss-value-parser@npm:3.3.1" + checksum: 62cd26e1cdbcf2dcc6bcedf3d9b409c9027bc57a367ae20d31dd99da4e206f730689471fd70a2abe866332af83f54dc1fa444c589e2381bf7f8054c46209ce16 + languageName: node + linkType: hard + +"postcss-value-parser@npm:^4.1.0": + version: 4.2.0 + resolution: "postcss-value-parser@npm:4.2.0" + checksum: 819ffab0c9d51cf0acbabf8996dffbfafbafa57afc0e4c98db88b67f2094cb44488758f06e5da95d7036f19556a4a732525e84289a425f4f6fd8e412a9d7442f + languageName: node + linkType: hard + "postcss@npm:8.2.15": version: 8.2.15 resolution: "postcss@npm:8.2.15" @@ -6635,6 +6997,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:^8.1.6, postcss@npm:^8.3.5": + version: 8.4.4 + resolution: "postcss@npm:8.4.4" + dependencies: + nanoid: ^3.1.30 + picocolors: ^1.0.0 + source-map-js: ^1.0.1 + checksum: 6cf3fe0ecdf5a0d2aeb5e8404938c7eab968704e2e29dc5421e90b4014eb1975c1c0ad828425f2428807ef6e3fcfadd71f988ab55cb06c28ac2866f22403255b + languageName: node + linkType: hard + "preact-render-to-string@npm:^5.1.19": version: 5.1.19 resolution: "preact-render-to-string@npm:5.1.19" @@ -6716,6 +7089,13 @@ __metadata: languageName: node linkType: hard +"pretty-hrtime@npm:^1.0.3": + version: 1.0.3 + resolution: "pretty-hrtime@npm:1.0.3" + checksum: bae0e6832fe13c3de43d1a3d43df52bf6090499d74dc65a17f5552cb1a94f1f8019a23284ddf988c3c408a09678d743901e1d8f5b7a71bec31eeeac445bef371 + languageName: node + linkType: hard + "prisma@npm:latest": version: 3.6.0 resolution: "prisma@npm:3.6.0" @@ -6854,6 +7234,20 @@ __metadata: languageName: node linkType: hard +"purgecss@npm:^4.0.3": + version: 4.1.3 + resolution: "purgecss@npm:4.1.3" + dependencies: + commander: ^8.0.0 + glob: ^7.1.7 + postcss: ^8.3.5 + postcss-selector-parser: ^6.0.6 + bin: + purgecss: bin/purgecss.js + checksum: 508613f904b130401f2a403d3383533f703c6bcd56e1254c1e8f57818a5337db3a667f66f48355f86271b20dd576691357752f460eb2edd94c095e4178391c5f + languageName: node + linkType: hard + "qs@npm:~6.5.2": version: 6.5.2 resolution: "qs@npm:6.5.2" @@ -6891,6 +7285,13 @@ __metadata: languageName: node linkType: hard +"quick-lru@npm:^5.1.1": + version: 5.1.1 + resolution: "quick-lru@npm:5.1.1" + checksum: a516faa25574be7947969883e6068dbe4aa19e8ef8e8e0fd96cddd6d36485e9106d85c0041a27153286b0770b381328f4072aa40d3b18a19f5f7d2b78b94b5ed + languageName: node + linkType: hard + "randombytes@npm:^2.0.0, randombytes@npm:^2.0.1, randombytes@npm:^2.0.5": version: 2.1.0 resolution: "randombytes@npm:2.1.0" @@ -7098,6 +7499,25 @@ __metadata: languageName: node linkType: hard +"readdirp@npm:~3.6.0": + version: 3.6.0 + resolution: "readdirp@npm:3.6.0" + dependencies: + picomatch: ^2.2.1 + checksum: 1ced032e6e45670b6d7352d71d21ce7edf7b9b928494dcaba6f11fba63180d9da6cd7061ebc34175ffda6ff529f481818c962952004d273178acd70f7059b320 + languageName: node + linkType: hard + +"reduce-css-calc@npm:^2.1.8": + version: 2.1.8 + resolution: "reduce-css-calc@npm:2.1.8" + dependencies: + css-unit-converter: ^1.1.1 + postcss-value-parser: ^3.3.0 + checksum: 8fd27c06c4b443b84749a69a8b97d10e6ec7d142b625b41923a8807abb22b9e37e44df14e26cc606a802957be07bdce5e8ee2976a6952a7b438a7727007101e9 + languageName: node + linkType: hard + "regenerator-runtime@npm:0.13.4": version: 0.13.4 resolution: "regenerator-runtime@npm:0.13.4" @@ -7159,6 +7579,13 @@ __metadata: languageName: node linkType: hard +"resolve-from@npm:^5.0.0": + version: 5.0.0 + resolution: "resolve-from@npm:5.0.0" + checksum: 4ceeb9113e1b1372d0cd969f3468fa042daa1dd9527b1b6bb88acb6ab55d8b9cd65dbf18819f9f9ddf0db804990901dcdaade80a215e7b2c23daae38e64f5bdf + languageName: node + linkType: hard + "resolve@npm:^1.10.0, resolve@npm:^1.12.0, resolve@npm:^1.20.0": version: 1.20.0 resolution: "resolve@npm:1.20.0" @@ -7230,6 +7657,20 @@ __metadata: languageName: node linkType: hard +"rgb-regex@npm:^1.0.1": + version: 1.0.1 + resolution: "rgb-regex@npm:1.0.1" + checksum: b270ce8bc14782d2d21d3184c1e6c65b465476d8f03e72b93ef57c95710a452b2fe280e1d516c88873aec06efd7f71373e673f114b9d99f3a4f9a0393eb00126 + languageName: node + linkType: hard + +"rgba-regex@npm:^1.0.0": + version: 1.0.0 + resolution: "rgba-regex@npm:1.0.0" + checksum: 7f2cd271572700faea50753d82524cb2b98f17a5b9722965c7076f6cd674fe545f28145b7ef2cccabc9eca2475c793db16862cd5e7b3784a9f4b8d6496431057 + languageName: node + linkType: hard + "rimraf@npm:^2.6.1": version: 2.7.1 resolution: "rimraf@npm:2.7.1" @@ -7439,6 +7880,15 @@ __metadata: languageName: node linkType: hard +"simple-swizzle@npm:^0.2.2": + version: 0.2.2 + resolution: "simple-swizzle@npm:0.2.2" + dependencies: + is-arrayish: ^0.3.1 + checksum: a7f3f2ab5c76c4472d5c578df892e857323e452d9f392e1b5cf74b74db66e6294a1e1b8b390b519fa1b96b5b613f2a37db6cffef52c3f1f8f3c5ea64eb2d54c0 + languageName: node + linkType: hard + "slash@npm:^3.0.0": version: 3.0.0 resolution: "slash@npm:3.0.0" @@ -7496,6 +7946,13 @@ __metadata: languageName: node linkType: hard +"source-map-js@npm:^1.0.1": + version: 1.0.1 + resolution: "source-map-js@npm:1.0.1" + checksum: 22606113d62bbd468712b0cb0c46e9a8629de7eb081049c62a04d977a211abafd7d61455617f8b78daba0b6c0c7e7c88f8c6b5aaeacffac0a6676ecf5caac5ce + languageName: node + linkType: hard + "source-map@npm:0.7.3": version: 0.7.3 resolution: "source-map@npm:0.7.3" @@ -7889,6 +8346,52 @@ __metadata: languageName: node linkType: hard +"tailwindcss@npm:^2.2.19": + version: 2.2.19 + resolution: "tailwindcss@npm:2.2.19" + dependencies: + arg: ^5.0.1 + bytes: ^3.0.0 + chalk: ^4.1.2 + chokidar: ^3.5.2 + color: ^4.0.1 + cosmiconfig: ^7.0.1 + detective: ^5.2.0 + didyoumean: ^1.2.2 + dlv: ^1.1.3 + fast-glob: ^3.2.7 + fs-extra: ^10.0.0 + glob-parent: ^6.0.1 + html-tags: ^3.1.0 + is-color-stop: ^1.1.0 + is-glob: ^4.0.1 + lodash: ^4.17.21 + lodash.topath: ^4.5.2 + modern-normalize: ^1.1.0 + node-emoji: ^1.11.0 + normalize-path: ^3.0.0 + object-hash: ^2.2.0 + postcss-js: ^3.0.3 + postcss-load-config: ^3.1.0 + postcss-nested: 5.0.6 + postcss-selector-parser: ^6.0.6 + postcss-value-parser: ^4.1.0 + pretty-hrtime: ^1.0.3 + purgecss: ^4.0.3 + quick-lru: ^5.1.1 + reduce-css-calc: ^2.1.8 + resolve: ^1.20.0 + tmp: ^0.2.1 + peerDependencies: + autoprefixer: ^10.0.2 + postcss: ^8.0.9 + bin: + tailwind: lib/cli.js + tailwindcss: lib/cli.js + checksum: 660e8086fa2758f273b7ec87067c041185454374c5c916c236f9691b1c60c48166b2556b6327b3d912f018f48712105fa979b7f717b2db3111ea0850059a2b62 + languageName: node + linkType: hard + "tar@npm:^6.0.2, tar@npm:^6.1.2": version: 6.1.11 resolution: "tar@npm:6.1.11" @@ -7947,7 +8450,7 @@ __metadata: languageName: node linkType: hard -"tmp@npm:~0.2.1": +"tmp@npm:^0.2.1, tmp@npm:~0.2.1": version: 0.2.1 resolution: "tmp@npm:0.2.1" dependencies: @@ -8299,7 +8802,7 @@ __metadata: languageName: node linkType: hard -"util-deprecate@npm:^1.0.1, util-deprecate@npm:~1.0.1": +"util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" checksum: 474acf1146cb2701fe3b074892217553dfcf9a031280919ba1b8d651a068c9b15d863b7303cb15bd00a862b498e6cf4ad7b4a08fb134edd5a6f7641681cb54a2 @@ -8545,7 +9048,7 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^1.7.2": +"yaml@npm:^1.10.0, yaml@npm:^1.10.2, yaml@npm:^1.7.2": version: 1.10.2 resolution: "yaml@npm:1.10.2" checksum: ce4ada136e8a78a0b08dc10b4b900936912d15de59905b2bf415b4d33c63df1d555d23acb2a41b23cf9fb5da41c256441afca3d6509de7247daa062fd2c5ea5f