diff --git a/.env.example b/.env.example index 05f648a..803426c 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,5 @@ -AUTH_SECRET= \ No newline at end of file +AUTH_SECRET= +DB_HOST= +DB_USERNAME= +DB_PASSWORD= +DB_NAME= \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index 8441509..6a1909d 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,14 +1,11 @@ import { defineConfig } from "astro/config"; import node from "@astrojs/node"; import tailwind from "@astrojs/tailwind"; -import db from "@astrojs/db"; - import react from "@astrojs/react"; // https://astro.build/config export default defineConfig({ integrations: [ - db(), tailwind({ applyBaseStyles: false, }), diff --git a/db/config.ts b/db/config.ts deleted file mode 100644 index 65bf0bd..0000000 --- a/db/config.ts +++ /dev/null @@ -1,203 +0,0 @@ -import { defineDb, defineTable, column, NOW } from "astro:db"; - -const User = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - email: column.text({ - unique: true, - }), - name: column.text(), - created: column.date({ - default: NOW, - }), - modified: column.date({ - default: NOW, - }), - }, -}); - -const UserAuth = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - userId: column.text({ - references: () => User.columns.id, - }), - type: column.text(), - identifier: column.text(), - }, - indexes: [ - { - on: ["userId", "type"], - unique: true, - }, - ], -}); - -const Team = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - userId: column.text({ - references: () => User.columns.id, - unique: true, - }), - storageSize: column.number({ - default: 0, - }), - }, -}); - -const Form = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - teamId: column.text({ - references: () => Team.columns.id, - }), - title: column.text(), - schema: column.json(), - config: column.json(), - created: column.date({ - default: NOW, - }), - modified: column.date({ - default: NOW, - }), - privilenge: column.text(), - }, -}); - -const Format = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - formId: column.text({ - references: () => Form.columns.id, - }), - title: column.text(), - teamId: column.text({ - references: () => Team.columns.id, - }), - type: column.text(), - schema: column.json(), - privilenge: column.text(), - created: column.date({ - default: NOW, - }), - modified: column.date({ - default: NOW, - }), - }, -}) - -const Hook = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - formId: column.text({ - references: () => Form.columns.id, - }), - teamId: column.text({ - references: () => Team.columns.id, - }), - formatId: column.text({ - references: () => Format.columns.id, - }), - title: column.text(), - type: column.text(), - status: column.text(), - created: column.date({ - default: NOW, - }), - modified: column.date({ - default: NOW, - }), - } -}) - -const File = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - formId: column.text({ - references: () => Form.columns.id, - }), - authorId: column.text({ - references: () => User.columns.id, - optional: true, - }), - teamId: column.text({ - references: () => Team.columns.id, - }), - size: column.number(), - type: column.text(), - name: column.text(), - path: column.text(), - created: column.date({ - default: NOW, - }), - modified: column.date({ - default: NOW, - }), - }, -}); - -const Entry = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - formId: column.text({ - references: () => Form.columns.id, - }), - authorId: column.text({ - references: () => User.columns.id, - optional: true, - }), - data: column.json({ - references: () => User.columns.id, - optional: true, - }), - created: column.date({ - default: NOW, - }), - modified: column.date({ - default: NOW, - }), - }, -}); - -const EntryHook = defineTable({ - columns: { - id: column.text({ - primaryKey: true, - }), - entryId: column.text({ - references: () => Form.columns.id, - }), - hookId: column.text({ - references: () => Hook.columns.id, - }), - status: column.text(), - created: column.date({ - default: NOW, - }), - modified: column.date({ - default: NOW, - }) - } -}) - -// https://astro.build/db/config -export default defineDb({ - tables: { User, UserAuth, Team, Form, File, Entry, Format, Hook, EntryHook }, -}) diff --git a/drizzle.config.ts b/drizzle.config.ts new file mode 100644 index 0000000..ab195bb --- /dev/null +++ b/drizzle.config.ts @@ -0,0 +1,14 @@ +import {defineConfig} from 'drizzle-kit'; + +export default defineConfig({ + schema: './src/db/schema.ts', + out: './drizzle', + dialect: 'mysql', + dbCredentials: { + user: process.env.DB_USERNAME || 'root', + password: process.env.DB_PASSWORD || '', + host: process.env.DB_HOST || 'localhost', + port: parseInt(process.env.DB_PORT || '3306'), + database: process.env.DB_NAME || 'oneform_db', + }, +}); diff --git a/package.json b/package.json index 7c74ee0..29f0481 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ }, "dependencies": { "@astrojs/check": "^0.7.0", - "@astrojs/db": "^0.11.7", "@astrojs/node": "^8.3.2", "@astrojs/react": "^3.6.0", "@astrojs/tailwind": "^5.1.0", @@ -20,6 +19,7 @@ "@hookform/resolvers": "^3.9.0", "@libsql/client": "^0.7.0", "@material-tailwind/html": "^2.2.2", + "@measured/puck": "^0.15.0", "@radix-ui/react-checkbox": "^1.1.1", "@radix-ui/react-dropdown-menu": "^2.1.1", "@radix-ui/react-label": "^2.1.0", @@ -32,11 +32,14 @@ "bcryptjs": "^2.4.3", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", + "drizzle-kit": "^0.23.0", + "drizzle-orm": "^0.32.0", "flat": "^6.0.1", "hono": "^4.4.12", "jexl": "^2.3.0", "jsonwebtoken": "^9.0.2", "lucide-react": "^0.403.0", + "mysql2": "^3.10.3", "next-themes": "^0.3.0", "papaparse": "^5.4.1", "react": "^18.3.1", diff --git a/src/api/auth.ts b/src/api/auth.ts index dbbb147..fd54132 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -1,6 +1,7 @@ import { Hono, type Context } from "hono"; import { z, ZodError } from "zod"; -import { Team, User, UserAuth, and, db, eq } from "astro:db"; +import { User, UserAuth, Team } from "@/db/schema"; +import db from "@/lib/db"; import query from "../lib/query"; import { encryptPW, rError, rOK } from "./helper"; import * as cookie from "hono/cookie"; diff --git a/src/db/schema.mysql.ts b/src/db/schema.mysql.ts new file mode 100644 index 0000000..ac053d1 --- /dev/null +++ b/src/db/schema.mysql.ts @@ -0,0 +1,100 @@ +import { mysqlTable, varchar, text, timestamp, index, uniqueIndex, int, json } from "drizzle-orm/mysql-core"; + +export const User = mysqlTable("user", { + id: varchar("id", { length: 26 }).primaryKey(), + email: varchar("email", { length: 45 }).notNull().unique(), + name: text("name").notNull(), + created: timestamp("created", { + mode: 'string' + }).defaultNow(), + modified: timestamp("modified", { + mode: 'string' + }).defaultNow(), +}); + +export const UserAuth = mysqlTable("user_auth", { + id: varchar("id", { length: 26 }).primaryKey(), + userId: varchar("user_id", { length: 26 }).references(() => User.id).notNull(), + type: varchar("type", { length: 255 }).notNull(), + identifier: varchar("identifier", { length: 255 }).notNull(), +}, + (table) => { + return { + identiferIdx: uniqueIndex("type_indefier_idx").on( + table.type, + table.identifier + ), + userTypeIdx: uniqueIndex("user_type_idx").on(table.userId, table.type), + }; + }); + + +export const Team = mysqlTable("team", { + id: varchar("id", { length: 26 }).primaryKey(), + userId: varchar("user_id", { length: 26 }).references(() => User.id).unique(), + storageSize: int("storage_size").default(0), +}); + +export const Form = mysqlTable("form", { + id: varchar("id", { length: 26 }).primaryKey(), + teamId: varchar("team_id", { length: 26 }).references(() => Team.id).notNull(), + title: text("title"), + schema: json("schema"), + config: json("config"), + created: timestamp("created").defaultNow(), + modified: timestamp("modified").defaultNow(), + privilenge: text("privilenge"), +}); + +export const Format = mysqlTable("format", { + id: varchar("id", { length: 26 }).primaryKey(), + formId: varchar("form_id", { length: 26 }).references(() => Form.id).notNull(), + title: text("title"), + teamId: varchar("team_id", { length: 26 }).references(() => Team.id).notNull(), + type: text("type"), + schema: json("schema"), + privilenge: text("privilenge"), + created: timestamp("created").defaultNow(), + modified: timestamp("modified").defaultNow(), +}); +export const Hook = mysqlTable("hook", { + id: varchar("id", { length: 26 }).primaryKey(), + formId: varchar("form_id", { length: 26 }).references(() => Form.id).notNull(), + teamId: varchar("team_id", { length: 26 }).references(() => Team.id).notNull(), + formatId: varchar("format_id", { length: 26 }).references(() => Format.id).notNull(), + title: text("title"), + type: text("type"), + status: text("status"), + created: timestamp("created").defaultNow(), + modified: timestamp("modified").defaultNow(), +}); + +export const File = mysqlTable("file", { + id: varchar("id", { length: 26 }).primaryKey(), + formId: varchar("form_id", { length: 26 }).references(() => Form.id).notNull(), + authorId: varchar("author_id", { length: 26 }).references(() => User.id).notNull(), + teamId: varchar("team_id", { length: 26 }).references(() => Team.id).notNull(), + size: int("size"), + type: text("type"), + name: text("name"), + path: text("path"), + created: timestamp("created").defaultNow(), + modified: timestamp("modified").defaultNow(), +}); +export const Entry = mysqlTable("entry", { + id: varchar("id", { length: 26 }).primaryKey(), + formId: varchar("form_id", { length: 26 }).references(() => Form.id).notNull(), + authorId: varchar("author_id", { length: 26 }).references(() => User.id), + data: json("data"), + created: timestamp("created").defaultNow(), + modified: timestamp("modified").defaultNow(), +}); +export const EntryHook = mysqlTable("entry_hook", { + id: varchar("id", { length: 26 }).primaryKey(), + entryId: varchar("entry_id", { length: 26 }).references(() => Entry.id).notNull(), + hookId: varchar("hook_id", { length: 26 }).references(() => Hook.id).notNull(), + status: text("status"), + created: timestamp("created").defaultNow(), + modified: timestamp("modified").defaultNow(), +}); + diff --git a/src/db/schema.ts b/src/db/schema.ts new file mode 100644 index 0000000..9524bf8 --- /dev/null +++ b/src/db/schema.ts @@ -0,0 +1 @@ +export * from './schema.mysql'; diff --git a/db/seed.ts b/src/db/seed.ts similarity index 95% rename from db/seed.ts rename to src/db/seed.ts index bcf48f3..ec6ad05 100644 --- a/db/seed.ts +++ b/src/db/seed.ts @@ -1,6 +1,7 @@ -import { User, UserAuth, Team, Form, db, Entry, Format } from "astro:db"; +import { User, UserAuth, Team, Form, Entry, Format } from "./schema"; import { ulid } from "ulid"; import { encryptPW } from "@/api/helper"; +import db from "@/lib/db"; // https://astro.build/db/seed export default async function seed() { diff --git a/src/lib/db.ts b/src/lib/db.ts new file mode 100644 index 0000000..59a66b2 --- /dev/null +++ b/src/lib/db.ts @@ -0,0 +1,19 @@ +import {drizzle} from 'drizzle-orm/mysql2'; +import {migrate} from 'drizzle-orm/mysql2/migrator'; + +import * as schema from '@/db/schema'; +import mysql from 'mysql2/promise'; + +const mySqlConfig = { + host: process.env.DB_HOST || 'localhost', + user: process.env.DB_USER || 'root', + password: process.env.DB_PASSWORD || '', + database: process.env.DB_NAME || 'lokal_db', + port: parseInt(process.env.DB_PORT || '3306'), +}; + +const sql = mysql.createPool(mySqlConfig); +const db = drizzle(sql, {schema: schema, mode: 'default'}); +await migrate(db, {migrationsFolder: 'drizzle'}); + +export default db; diff --git a/src/lib/query.ts b/src/lib/query.ts index d0f1e0f..82e5a84 100644 --- a/src/lib/query.ts +++ b/src/lib/query.ts @@ -1,4 +1,6 @@ -import { db, User, and, UserAuth, eq, Team, Form, Entry } from "astro:db"; +import { User, UserAuth, Team, Form, Entry } from "@/db/schema"; +import db from "@/lib/db"; +import { and, eq } from "drizzle-orm"; const query = { async getUserByEmail(email: string) { diff --git a/yarn.lock b/yarn.lock index ab94fab..3551a5b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -53,29 +53,6 @@ __metadata: languageName: node linkType: hard -"@astrojs/db@npm:^0.11.7": - version: 0.11.7 - resolution: "@astrojs/db@npm:0.11.7" - dependencies: - "@astrojs/studio": "npm:0.1.1" - "@libsql/client": "npm:^0.6.2" - async-listen: "npm:^3.0.1" - ci-info: "npm:^4.0.0" - deep-diff: "npm:^1.0.2" - drizzle-orm: "npm:^0.31.2" - github-slugger: "npm:^2.0.0" - kleur: "npm:^4.1.5" - nanoid: "npm:^5.0.7" - open: "npm:^10.1.0" - ora: "npm:^8.0.1" - prompts: "npm:^2.4.2" - strip-ansi: "npm:^7.1.0" - yargs-parser: "npm:^21.1.1" - zod: "npm:^3.23.8" - checksum: 10c0/b44ef2a946725869b8bf09b179460db5d116d453175f7e04da3ea85571f7dc289f61f25cf0ef84c383f772458184d39412d2e2b271a52c2c6619a7a94607e11d - languageName: node - linkType: hard - "@astrojs/internal-helpers@npm:0.4.1": version: 0.4.1 resolution: "@astrojs/internal-helpers@npm:0.4.1" @@ -179,17 +156,6 @@ __metadata: languageName: node linkType: hard -"@astrojs/studio@npm:0.1.1": - version: 0.1.1 - resolution: "@astrojs/studio@npm:0.1.1" - dependencies: - ci-info: "npm:^4.0.0" - kleur: "npm:^4.1.5" - ora: "npm:^8.0.1" - checksum: 10c0/5bf2b097e7d9b91921fb465713f0b90b533d1218bb68965323760939fa274de8a79c3e4039a21e37cdfb84b043035c5e627dfe2d5b38f8f1b75d2263443c2613 - languageName: node - linkType: hard - "@astrojs/tailwind@npm:^5.1.0": version: 5.1.0 resolution: "@astrojs/tailwind@npm:5.1.0" @@ -521,6 +487,15 @@ __metadata: languageName: node linkType: hard +"@babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.9.2": + version: 7.24.8 + resolution: "@babel/runtime@npm:7.24.8" + dependencies: + regenerator-runtime: "npm:^0.14.0" + checksum: 10c0/f24b30af6b3ecae19165b3b032f9bc37b2d1769677bd63b69a6f81061967cfc847aa822518402ea6616b1d301d7eb46986b99c9f69cdb5880834fca2e6b34881 + languageName: node + linkType: hard + "@babel/template@npm:^7.24.7": version: 7.24.7 resolution: "@babel/template@npm:7.24.7" @@ -628,6 +603,33 @@ __metadata: languageName: node linkType: hard +"@esbuild-kit/core-utils@npm:^3.3.2": + version: 3.3.2 + resolution: "@esbuild-kit/core-utils@npm:3.3.2" + dependencies: + esbuild: "npm:~0.18.20" + source-map-support: "npm:^0.5.21" + checksum: 10c0/d856f5bd720814593f911d781ed7558a3f8ec1a39802f3831d0eea0d1306e0e2dc11b7b2443af621c413ec6557f1f3034a9a4f1472a4cb40e52cd6e3b356aa05 + languageName: node + linkType: hard + +"@esbuild-kit/esm-loader@npm:^2.5.5": + version: 2.6.5 + resolution: "@esbuild-kit/esm-loader@npm:2.6.5" + dependencies: + "@esbuild-kit/core-utils": "npm:^3.3.2" + get-tsconfig: "npm:^4.7.0" + checksum: 10c0/6894b29176eda62bdce0d458d57f32daed5cb8fcff14cb3ddfbc995cfe3e2fa8599f3b0b1af66db446903b30167f57069f27e9cf79a69cf9b41f557115811cde + languageName: node + linkType: hard + +"@esbuild/aix-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/aix-ppc64@npm:0.19.12" + conditions: os=aix & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/aix-ppc64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/aix-ppc64@npm:0.21.5" @@ -635,6 +637,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/android-arm64@npm:0.18.20" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/android-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm64@npm:0.19.12" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/android-arm64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/android-arm64@npm:0.21.5" @@ -642,6 +658,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/android-arm@npm:0.18.20" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@esbuild/android-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-arm@npm:0.19.12" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@esbuild/android-arm@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/android-arm@npm:0.21.5" @@ -649,6 +679,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/android-x64@npm:0.18.20" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/android-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/android-x64@npm:0.19.12" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + "@esbuild/android-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/android-x64@npm:0.21.5" @@ -656,6 +700,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-arm64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/darwin-arm64@npm:0.18.20" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/darwin-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-arm64@npm:0.19.12" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/darwin-arm64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/darwin-arm64@npm:0.21.5" @@ -663,6 +721,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/darwin-x64@npm:0.18.20" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/darwin-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/darwin-x64@npm:0.19.12" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@esbuild/darwin-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/darwin-x64@npm:0.21.5" @@ -670,6 +742,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-arm64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/freebsd-arm64@npm:0.18.20" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/freebsd-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-arm64@npm:0.19.12" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/freebsd-arm64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/freebsd-arm64@npm:0.21.5" @@ -677,6 +763,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/freebsd-x64@npm:0.18.20" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/freebsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/freebsd-x64@npm:0.19.12" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/freebsd-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/freebsd-x64@npm:0.21.5" @@ -684,6 +784,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-arm64@npm:0.18.20" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/linux-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm64@npm:0.19.12" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/linux-arm64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-arm64@npm:0.21.5" @@ -691,6 +805,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-arm@npm:0.18.20" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@esbuild/linux-arm@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-arm@npm:0.19.12" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@esbuild/linux-arm@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-arm@npm:0.21.5" @@ -698,6 +826,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ia32@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-ia32@npm:0.18.20" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + +"@esbuild/linux-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ia32@npm:0.19.12" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/linux-ia32@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-ia32@npm:0.21.5" @@ -705,6 +847,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-loong64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-loong64@npm:0.18.20" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + +"@esbuild/linux-loong64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-loong64@npm:0.19.12" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + "@esbuild/linux-loong64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-loong64@npm:0.21.5" @@ -712,6 +868,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-mips64el@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-mips64el@npm:0.18.20" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + +"@esbuild/linux-mips64el@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-mips64el@npm:0.19.12" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + "@esbuild/linux-mips64el@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-mips64el@npm:0.21.5" @@ -719,6 +889,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ppc64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-ppc64@npm:0.18.20" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + +"@esbuild/linux-ppc64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-ppc64@npm:0.19.12" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/linux-ppc64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-ppc64@npm:0.21.5" @@ -726,6 +910,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-riscv64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-riscv64@npm:0.18.20" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + +"@esbuild/linux-riscv64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-riscv64@npm:0.19.12" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + "@esbuild/linux-riscv64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-riscv64@npm:0.21.5" @@ -733,6 +931,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-s390x@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-s390x@npm:0.18.20" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + +"@esbuild/linux-s390x@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-s390x@npm:0.19.12" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + "@esbuild/linux-s390x@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-s390x@npm:0.21.5" @@ -740,6 +952,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/linux-x64@npm:0.18.20" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/linux-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/linux-x64@npm:0.19.12" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + "@esbuild/linux-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/linux-x64@npm:0.21.5" @@ -747,6 +973,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/netbsd-x64@npm:0.18.20" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/netbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/netbsd-x64@npm:0.19.12" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/netbsd-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/netbsd-x64@npm:0.21.5" @@ -754,6 +994,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/openbsd-x64@npm:0.18.20" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/openbsd-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/openbsd-x64@npm:0.19.12" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/openbsd-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/openbsd-x64@npm:0.21.5" @@ -761,6 +1015,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/sunos-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/sunos-x64@npm:0.18.20" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/sunos-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/sunos-x64@npm:0.19.12" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + "@esbuild/sunos-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/sunos-x64@npm:0.21.5" @@ -768,6 +1036,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-arm64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/win32-arm64@npm:0.18.20" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@esbuild/win32-arm64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-arm64@npm:0.19.12" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/win32-arm64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/win32-arm64@npm:0.21.5" @@ -775,6 +1057,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-ia32@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/win32-ia32@npm:0.18.20" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@esbuild/win32-ia32@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-ia32@npm:0.19.12" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/win32-ia32@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/win32-ia32@npm:0.21.5" @@ -782,6 +1078,20 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-x64@npm:0.18.20": + version: 0.18.20 + resolution: "@esbuild/win32-x64@npm:0.18.20" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@esbuild/win32-x64@npm:0.19.12": + version: 0.19.12 + resolution: "@esbuild/win32-x64@npm:0.19.12" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@esbuild/win32-x64@npm:0.21.5": version: 0.21.5 resolution: "@esbuild/win32-x64@npm:0.21.5" @@ -1067,18 +1377,6 @@ __metadata: languageName: node linkType: hard -"@libsql/client@npm:^0.6.2": - version: 0.6.2 - resolution: "@libsql/client@npm:0.6.2" - dependencies: - "@libsql/core": "npm:^0.6.2" - "@libsql/hrana-client": "npm:^0.6.0" - js-base64: "npm:^3.7.5" - libsql: "npm:^0.3.10" - checksum: 10c0/b53380fd8bb0a071c3d1beef0bdbfcebbd7d87f38be521eba6be0eb47de3bae42cf37ff1684880fd3cee12e22891fbdf6faae0bbd49fd5a50982fa8f459eb7fa - languageName: node - linkType: hard - "@libsql/client@npm:^0.7.0": version: 0.7.0 resolution: "@libsql/client@npm:0.7.0" @@ -1092,15 +1390,6 @@ __metadata: languageName: node linkType: hard -"@libsql/core@npm:^0.6.2": - version: 0.6.2 - resolution: "@libsql/core@npm:0.6.2" - dependencies: - js-base64: "npm:^3.7.5" - checksum: 10c0/dd18a6f023f3368958c7e278199c14e44098820efd3b13b3b83b94b1342d2e270999a30ad42394bd999f6351bc3e78c2bd63265fc5a2d4d61f35c3ab553ef2e0 - languageName: node - linkType: hard - "@libsql/core@npm:^0.7.0": version: 0.7.0 resolution: "@libsql/core@npm:0.7.0" @@ -1198,6 +1487,43 @@ __metadata: languageName: node linkType: hard +"@measured/dnd@npm:16.6.0-canary.4cba1d1": + version: 16.6.0-canary.4cba1d1 + resolution: "@measured/dnd@npm:16.6.0-canary.4cba1d1" + dependencies: + "@babel/runtime": "npm:^7.23.2" + css-box-model: "npm:^1.2.1" + lru-cache: "npm:^10.2.0" + memoize-one: "npm:^6.0.0" + raf-schd: "npm:^4.0.3" + react-redux: "npm:^8.1.3" + redux: "npm:^4.2.1" + use-memo-one: "npm:^1.1.3" + peerDependencies: + react: ^16.8.5 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.5 || ^17.0.0 || ^18.0.0 + checksum: 10c0/6a8d3f2c72475fa566fff12f63de54b8b2f5f0a8b5793d715e8c95adf0a202289934c4b57c1957b9c1e77288733f0bce4580ac8a64ebd5cf40de4397d568602c + languageName: node + linkType: hard + +"@measured/puck@npm:^0.15.0": + version: 0.15.0 + resolution: "@measured/puck@npm:0.15.0" + dependencies: + "@measured/dnd": "npm:16.6.0-canary.4cba1d1" + deep-diff: "npm:^1.0.2" + object-hash: "npm:^3.0.0" + react-frame-component: "npm:^5.2.6" + react-hotkeys-hook: "npm:^4.4.1" + ua-parser-js: "npm:^1.0.37" + use-debounce: "npm:^9.0.4" + uuid: "npm:^9.0.1" + peerDependencies: + react: ^17.0.0 || ^18.0.0 + checksum: 10c0/37d6b92c3639b527fe28392c18614388b3220356a9714f54782a0f498742b1d2eff23dbf8e0cc902b207a1dd4b6c5a70ee5e40cdf2b4a4503b9af6f6c66f201a + languageName: node + linkType: hard + "@neon-rs/load@npm:^0.0.4": version: 0.0.4 resolution: "@neon-rs/load@npm:0.0.4" @@ -2064,6 +2390,16 @@ __metadata: languageName: node linkType: hard +"@types/hoist-non-react-statics@npm:^3.3.1": + version: 3.3.5 + resolution: "@types/hoist-non-react-statics@npm:3.3.5" + dependencies: + "@types/react": "npm:*" + hoist-non-react-statics: "npm:^3.3.0" + checksum: 10c0/2a3b64bf3d9817d7830afa60ee314493c475fb09570a64e7737084cd482d2177ebdddf888ce837350bac51741278b077683facc9541f052d4bbe8487b4e3e618 + languageName: node + linkType: hard + "@types/jexl@npm:^2": version: 2.3.4 resolution: "@types/jexl@npm:2.3.4" @@ -2156,6 +2492,13 @@ __metadata: languageName: node linkType: hard +"@types/use-sync-external-store@npm:^0.0.3": + version: 0.0.3 + resolution: "@types/use-sync-external-store@npm:0.0.3" + checksum: 10c0/82824c1051ba40a00e3d47964cdf4546a224e95f172e15a9c62aa3f118acee1c7518b627a34f3aa87298a2039f982e8509f92bfcc18bea7c255c189c293ba547 + languageName: node + linkType: hard + "@types/ws@npm:^8.5.4": version: 8.5.10 resolution: "@types/ws@npm:8.5.10" @@ -2522,13 +2865,6 @@ __metadata: languageName: node linkType: hard -"async-listen@npm:^3.0.1": - version: 3.0.1 - resolution: "async-listen@npm:3.0.1" - checksum: 10c0/bb05095530b0237fa31e5dbb7127fb5787266c2279bed18588aa092f27aab0999286746bd42d97a0c495d8dc53e964fbcf556851491eb2057edbe813af93bf7b - languageName: node - linkType: hard - "autoprefixer@npm:^10.4.15": version: 10.4.19 resolution: "autoprefixer@npm:10.4.19" @@ -2547,6 +2883,13 @@ __metadata: languageName: node linkType: hard +"aws-ssl-profiles@npm:^1.1.1": + version: 1.1.1 + resolution: "aws-ssl-profiles@npm:1.1.1" + checksum: 10c0/a2889bae943fed1629350cbe7979e9da507c89c57b554b159844f369fa92bd9b0a344e63540f40770a0957d4f58f80a98a83c300cd86b163d3f30cbdc7edb8bd + languageName: node + linkType: hard + "axobject-query@npm:^4.0.0": version: 4.0.0 resolution: "axobject-query@npm:4.0.0" @@ -2646,12 +2989,10 @@ __metadata: languageName: node linkType: hard -"bundle-name@npm:^4.1.0": - version: 4.1.0 - resolution: "bundle-name@npm:4.1.0" - dependencies: - run-applescript: "npm:^7.0.0" - checksum: 10c0/8e575981e79c2bcf14d8b1c027a3775c095d362d1382312f444a7c861b0e21513c0bd8db5bd2b16e50ba0709fa622d4eab6b53192d222120305e68359daece29 +"buffer-from@npm:^1.0.0": + version: 1.1.2 + resolution: "buffer-from@npm:1.1.2" + checksum: 10c0/124fff9d66d691a86d3b062eff4663fe437a9d9ee4b47b1b9e97f5a5d14f6d5399345db80f796827be7c95e70a8e765dd404b7c3ff3b3324f98e9b0c8826cc34 languageName: node linkType: hard @@ -2944,6 +3285,15 @@ __metadata: languageName: node linkType: hard +"css-box-model@npm:^1.2.1": + version: 1.2.1 + resolution: "css-box-model@npm:1.2.1" + dependencies: + tiny-invariant: "npm:^1.0.6" + checksum: 10c0/611e56d76b16e4e21956ed9fa53f1936fbbfaccd378659587e9c929f342037fc6c062f8af9447226e11fe7c95e31e6c007a37e592f9bff4c2d40e6915553104a + languageName: node + linkType: hard + "cssesc@npm:^3.0.0": version: 3.0.0 resolution: "cssesc@npm:3.0.0" @@ -3006,32 +3356,15 @@ __metadata: "deepmerge@npm:^4.2.2": version: 4.3.1 - resolution: "deepmerge@npm:4.3.1" - checksum: 10c0/e53481aaf1aa2c4082b5342be6b6d8ad9dfe387bc92ce197a66dea08bd4265904a087e75e464f14d1347cf2ac8afe1e4c16b266e0561cc5df29382d3c5f80044 - languageName: node - linkType: hard - -"default-browser-id@npm:^5.0.0": - version: 5.0.0 - resolution: "default-browser-id@npm:5.0.0" - checksum: 10c0/957fb886502594c8e645e812dfe93dba30ed82e8460d20ce39c53c5b0f3e2afb6ceaec2249083b90bdfbb4cb0f34e1f73fde3d68cac00becdbcfd894156b5ead - languageName: node - linkType: hard - -"default-browser@npm:^5.2.1": - version: 5.2.1 - resolution: "default-browser@npm:5.2.1" - dependencies: - bundle-name: "npm:^4.1.0" - default-browser-id: "npm:^5.0.0" - checksum: 10c0/73f17dc3c58026c55bb5538749597db31f9561c0193cd98604144b704a981c95a466f8ecc3c2db63d8bfd04fb0d426904834cfc91ae510c6aeb97e13c5167c4d + resolution: "deepmerge@npm:4.3.1" + checksum: 10c0/e53481aaf1aa2c4082b5342be6b6d8ad9dfe387bc92ce197a66dea08bd4265904a087e75e464f14d1347cf2ac8afe1e4c16b266e0561cc5df29382d3c5f80044 languageName: node linkType: hard -"define-lazy-prop@npm:^3.0.0": - version: 3.0.0 - resolution: "define-lazy-prop@npm:3.0.0" - checksum: 10c0/5ab0b2bf3fa58b3a443140bbd4cd3db1f91b985cc8a246d330b9ac3fc0b6a325a6d82bddc0b055123d745b3f9931afeea74a5ec545439a1630b9c8512b0eeb49 +"denque@npm:^2.1.0": + version: 2.1.0 + resolution: "denque@npm:2.1.0" + checksum: 10c0/f9ef81aa0af9c6c614a727cb3bd13c5d7db2af1abf9e6352045b86e85873e629690f6222f4edd49d10e4ccf8f078bbeec0794fafaf61b659c0589d0c511ec363 languageName: node linkType: hard @@ -3123,9 +3456,22 @@ __metadata: languageName: node linkType: hard -"drizzle-orm@npm:^0.31.2": - version: 0.31.2 - resolution: "drizzle-orm@npm:0.31.2" +"drizzle-kit@npm:^0.23.0": + version: 0.23.0 + resolution: "drizzle-kit@npm:0.23.0" + dependencies: + "@esbuild-kit/esm-loader": "npm:^2.5.5" + esbuild: "npm:^0.19.7" + esbuild-register: "npm:^3.5.0" + bin: + drizzle-kit: bin.cjs + checksum: 10c0/9939eeb29f2aa93b73560a9a7df4ebe487c30bddf7e6f0e6ab0550989f0c6afc150f587bf65a9c8c263dea41737b8ce8dcee09f830d6992fe78909f4d3469b12 + languageName: node + linkType: hard + +"drizzle-orm@npm:^0.32.0": + version: 0.32.0 + resolution: "drizzle-orm@npm:0.32.0" peerDependencies: "@aws-sdk/client-rds-data": ">=3" "@cloudflare/workers-types": ">=3" @@ -3135,6 +3481,7 @@ __metadata: "@op-engineering/op-sqlite": ">=2" "@opentelemetry/api": ^1.4.1 "@planetscale/database": ">=1" + "@prisma/client": "*" "@tidbcloud/serverless": "*" "@types/better-sqlite3": "*" "@types/pg": "*" @@ -3170,6 +3517,8 @@ __metadata: optional: true "@planetscale/database": optional: true + "@prisma/client": + optional: true "@tidbcloud/serverless": optional: true "@types/better-sqlite3": @@ -3200,13 +3549,15 @@ __metadata: optional: true postgres: optional: true + prisma: + optional: true react: optional: true sql.js: optional: true sqlite3: optional: true - checksum: 10c0/7fb7604dc50204047fc78745c1a956f395dd582f05db9dbf76cfcc658fb180fc3012cfec03fd669140e67184d2ca32419bb3c09aafeb5db5dbe0c2db73f2fe5a + checksum: 10c0/0aa915ec0a59efb6ac29817b57bc1a5a250b72650170fc1a3486efe7cad77062d893e14038a597e25cd59f256eafb36a512f36979f522ac0bd24b6b9864b7120 languageName: node linkType: hard @@ -3322,6 +3673,97 @@ __metadata: languageName: node linkType: hard +"esbuild-register@npm:^3.5.0": + version: 3.5.0 + resolution: "esbuild-register@npm:3.5.0" + dependencies: + debug: "npm:^4.3.4" + peerDependencies: + esbuild: ">=0.12 <1" + checksum: 10c0/9ccd0573cb66018e4cce3c1416eed0f5f3794c7026ce469a94e2f8761335abed8e363fc8e8bb036ab9ad7e579bb4296b8568a04ae5626596c123576b0d9c9bde + languageName: node + linkType: hard + +"esbuild@npm:^0.19.7": + version: 0.19.12 + resolution: "esbuild@npm:0.19.12" + dependencies: + "@esbuild/aix-ppc64": "npm:0.19.12" + "@esbuild/android-arm": "npm:0.19.12" + "@esbuild/android-arm64": "npm:0.19.12" + "@esbuild/android-x64": "npm:0.19.12" + "@esbuild/darwin-arm64": "npm:0.19.12" + "@esbuild/darwin-x64": "npm:0.19.12" + "@esbuild/freebsd-arm64": "npm:0.19.12" + "@esbuild/freebsd-x64": "npm:0.19.12" + "@esbuild/linux-arm": "npm:0.19.12" + "@esbuild/linux-arm64": "npm:0.19.12" + "@esbuild/linux-ia32": "npm:0.19.12" + "@esbuild/linux-loong64": "npm:0.19.12" + "@esbuild/linux-mips64el": "npm:0.19.12" + "@esbuild/linux-ppc64": "npm:0.19.12" + "@esbuild/linux-riscv64": "npm:0.19.12" + "@esbuild/linux-s390x": "npm:0.19.12" + "@esbuild/linux-x64": "npm:0.19.12" + "@esbuild/netbsd-x64": "npm:0.19.12" + "@esbuild/openbsd-x64": "npm:0.19.12" + "@esbuild/sunos-x64": "npm:0.19.12" + "@esbuild/win32-arm64": "npm:0.19.12" + "@esbuild/win32-ia32": "npm:0.19.12" + "@esbuild/win32-x64": "npm:0.19.12" + dependenciesMeta: + "@esbuild/aix-ppc64": + optional: true + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: 10c0/0f2d21ffe24ebead64843f87c3aebe2e703a5ed9feb086a0728b24907fac2eb9923e4a79857d3df9059c915739bd7a870dd667972eae325c67f478b592b8582d + languageName: node + linkType: hard + "esbuild@npm:^0.21.3, esbuild@npm:^0.21.5": version: 0.21.5 resolution: "esbuild@npm:0.21.5" @@ -3402,6 +3844,83 @@ __metadata: languageName: node linkType: hard +"esbuild@npm:~0.18.20": + version: 0.18.20 + resolution: "esbuild@npm:0.18.20" + dependencies: + "@esbuild/android-arm": "npm:0.18.20" + "@esbuild/android-arm64": "npm:0.18.20" + "@esbuild/android-x64": "npm:0.18.20" + "@esbuild/darwin-arm64": "npm:0.18.20" + "@esbuild/darwin-x64": "npm:0.18.20" + "@esbuild/freebsd-arm64": "npm:0.18.20" + "@esbuild/freebsd-x64": "npm:0.18.20" + "@esbuild/linux-arm": "npm:0.18.20" + "@esbuild/linux-arm64": "npm:0.18.20" + "@esbuild/linux-ia32": "npm:0.18.20" + "@esbuild/linux-loong64": "npm:0.18.20" + "@esbuild/linux-mips64el": "npm:0.18.20" + "@esbuild/linux-ppc64": "npm:0.18.20" + "@esbuild/linux-riscv64": "npm:0.18.20" + "@esbuild/linux-s390x": "npm:0.18.20" + "@esbuild/linux-x64": "npm:0.18.20" + "@esbuild/netbsd-x64": "npm:0.18.20" + "@esbuild/openbsd-x64": "npm:0.18.20" + "@esbuild/sunos-x64": "npm:0.18.20" + "@esbuild/win32-arm64": "npm:0.18.20" + "@esbuild/win32-ia32": "npm:0.18.20" + "@esbuild/win32-x64": "npm:0.18.20" + dependenciesMeta: + "@esbuild/android-arm": + optional: true + "@esbuild/android-arm64": + optional: true + "@esbuild/android-x64": + optional: true + "@esbuild/darwin-arm64": + optional: true + "@esbuild/darwin-x64": + optional: true + "@esbuild/freebsd-arm64": + optional: true + "@esbuild/freebsd-x64": + optional: true + "@esbuild/linux-arm": + optional: true + "@esbuild/linux-arm64": + optional: true + "@esbuild/linux-ia32": + optional: true + "@esbuild/linux-loong64": + optional: true + "@esbuild/linux-mips64el": + optional: true + "@esbuild/linux-ppc64": + optional: true + "@esbuild/linux-riscv64": + optional: true + "@esbuild/linux-s390x": + optional: true + "@esbuild/linux-x64": + optional: true + "@esbuild/netbsd-x64": + optional: true + "@esbuild/openbsd-x64": + optional: true + "@esbuild/sunos-x64": + optional: true + "@esbuild/win32-arm64": + optional: true + "@esbuild/win32-ia32": + optional: true + "@esbuild/win32-x64": + optional: true + bin: + esbuild: bin/esbuild + checksum: 10c0/473b1d92842f50a303cf948a11ebd5f69581cd254d599dd9d62f9989858e0533f64e83b723b5e1398a5b488c0f5fd088795b4235f65ecaf4f007d4b79f04bc88 + languageName: node + linkType: hard + "escalade@npm:^3.1.1, escalade@npm:^3.1.2": version: 3.1.2 resolution: "escalade@npm:3.1.2" @@ -3667,6 +4186,15 @@ __metadata: languageName: node linkType: hard +"generate-function@npm:^2.3.1": + version: 2.3.1 + resolution: "generate-function@npm:2.3.1" + dependencies: + is-property: "npm:^1.0.2" + checksum: 10c0/4645cf1da90375e46a6f1dc51abc9933e5eafa4cd1a44c2f7e3909a30a4e9a1a08c14cd7d5b32da039da2dba2a085e1ed4597b580c196c3245b2d35d8bc0de5d + languageName: node + linkType: hard + "gensync@npm:^1.0.0-beta.2": version: 1.0.0-beta.2 resolution: "gensync@npm:1.0.0-beta.2" @@ -3702,6 +4230,15 @@ __metadata: languageName: node linkType: hard +"get-tsconfig@npm:^4.7.0": + version: 4.7.6 + resolution: "get-tsconfig@npm:4.7.6" + dependencies: + resolve-pkg-maps: "npm:^1.0.0" + checksum: 10c0/2240e1b13e996dfbb947d177f422f83d09d1f93c9ce16959ebb3c2bdf8bdf4f04f98eba043859172da1685f9c7071091f0acfa964ebbe4780394d83b7dc3f58a + languageName: node + linkType: hard + "github-slugger@npm:^2.0.0": version: 2.0.0 resolution: "github-slugger@npm:2.0.0" @@ -3923,6 +4460,15 @@ __metadata: languageName: node linkType: hard +"hoist-non-react-statics@npm:^3.3.0, hoist-non-react-statics@npm:^3.3.2": + version: 3.3.2 + resolution: "hoist-non-react-statics@npm:3.3.2" + dependencies: + react-is: "npm:^16.7.0" + checksum: 10c0/fe0889169e845d738b59b64badf5e55fa3cf20454f9203d1eb088df322d49d4318df774828e789898dcb280e8a5521bb59b3203385662ca5e9218a6ca5820e74 + languageName: node + linkType: hard + "hono@npm:^4.4.12": version: 4.4.12 resolution: "hono@npm:4.4.12" @@ -3991,7 +4537,7 @@ __metadata: languageName: node linkType: hard -"iconv-lite@npm:^0.6.2": +"iconv-lite@npm:^0.6.2, iconv-lite@npm:^0.6.3": version: 0.6.3 resolution: "iconv-lite@npm:0.6.3" dependencies: @@ -4150,6 +4696,13 @@ __metadata: languageName: node linkType: hard +"is-property@npm:^1.0.2": + version: 1.0.2 + resolution: "is-property@npm:1.0.2" + checksum: 10c0/33ab65a136e4ba3f74d4f7d9d2a013f1bd207082e11cedb160698e8d5394644e873c39668d112a402175ccbc58a087cef87198ed46829dbddb479115a0257283 + languageName: node + linkType: hard + "is-stream@npm:^3.0.0": version: 3.0.0 resolution: "is-stream@npm:3.0.0" @@ -4171,7 +4724,7 @@ __metadata: languageName: node linkType: hard -"is-wsl@npm:^3.0.0, is-wsl@npm:^3.1.0": +"is-wsl@npm:^3.0.0": version: 3.1.0 resolution: "is-wsl@npm:3.1.0" dependencies: @@ -4505,6 +5058,13 @@ __metadata: languageName: node linkType: hard +"long@npm:^5.2.1": + version: 5.2.3 + resolution: "long@npm:5.2.3" + checksum: 10c0/6a0da658f5ef683b90330b1af76f06790c623e148222da9d75b60e266bbf88f803232dd21464575681638894a84091616e7f89557aa087fd14116c0f4e0e43d9 + languageName: node + linkType: hard + "longest-streak@npm:^3.0.0": version: 3.1.0 resolution: "longest-streak@npm:3.1.0" @@ -4539,6 +5099,20 @@ __metadata: languageName: node linkType: hard +"lru-cache@npm:^7.14.1": + version: 7.18.3 + resolution: "lru-cache@npm:7.18.3" + checksum: 10c0/b3a452b491433db885beed95041eb104c157ef7794b9c9b4d647be503be91769d11206bb573849a16b4cc0d03cbd15ffd22df7960997788b74c1d399ac7a4fed + languageName: node + linkType: hard + +"lru-cache@npm:^8.0.0": + version: 8.0.5 + resolution: "lru-cache@npm:8.0.5" + checksum: 10c0/cd95a9c38497611c5a6453de39a881f6eb5865851a2a01b5f14104ff3fee515362a7b1e7de28606028f423802910ba05bdb8ae1aa7b0d54eae70c92f0cec10b2 + languageName: node + linkType: hard + "lucide-react@npm:^0.403.0": version: 0.403.0 resolution: "lucide-react@npm:0.403.0" @@ -4763,6 +5337,13 @@ __metadata: languageName: node linkType: hard +"memoize-one@npm:^6.0.0": + version: 6.0.0 + resolution: "memoize-one@npm:6.0.0" + checksum: 10c0/45c88e064fd715166619af72e8cf8a7a17224d6edf61f7a8633d740ed8c8c0558a4373876c9b8ffc5518c2b65a960266adf403cc215cb1e90f7e262b58991f54 + languageName: node + linkType: hard + "merge-stream@npm:^2.0.0": version: 2.0.0 resolution: "merge-stream@npm:2.0.0" @@ -5276,6 +5857,23 @@ __metadata: languageName: node linkType: hard +"mysql2@npm:^3.10.3": + version: 3.10.3 + resolution: "mysql2@npm:3.10.3" + dependencies: + aws-ssl-profiles: "npm:^1.1.1" + denque: "npm:^2.1.0" + generate-function: "npm:^2.3.1" + iconv-lite: "npm:^0.6.3" + long: "npm:^5.2.1" + lru-cache: "npm:^8.0.0" + named-placeholders: "npm:^1.1.3" + seq-queue: "npm:^0.0.5" + sqlstring: "npm:^2.3.2" + checksum: 10c0/20fd51c1f7998e10bf670ba9440e656652b6286d9504a2fd65f2181543867823ca4f1d720a783db0d8cf37eddb7addb9fce4ab421a9054114a97f59a1ddadd7d + languageName: node + linkType: hard + "mz@npm:^2.7.0": version: 2.7.0 resolution: "mz@npm:2.7.0" @@ -5287,6 +5885,15 @@ __metadata: languageName: node linkType: hard +"named-placeholders@npm:^1.1.3": + version: 1.1.3 + resolution: "named-placeholders@npm:1.1.3" + dependencies: + lru-cache: "npm:^7.14.1" + checksum: 10c0/cd83b4bbdf358b2285e3c51260fac2039c9d0546632b8a856b3eeabd3bfb3d5b597507ab319b97c281a4a70d748f38bc66fa218a61cb44f55ad997ad5d9c9935 + languageName: node + linkType: hard + "nanoid@npm:^3.3.7": version: 3.3.7 resolution: "nanoid@npm:3.3.7" @@ -5296,15 +5903,6 @@ __metadata: languageName: node linkType: hard -"nanoid@npm:^5.0.7": - version: 5.0.7 - resolution: "nanoid@npm:5.0.7" - bin: - nanoid: bin/nanoid.js - checksum: 10c0/a3fb1c157e3e35378f44e5a7130c70f80c9037f66c9a37285e5e3d8298e8405fcb2399baaa420980b0fe5fd9c2e4186a6a31c3526f21de03cf34c1b459871401 - languageName: node - linkType: hard - "negotiator@npm:^0.6.3": version: 0.6.3 resolution: "negotiator@npm:0.6.3" @@ -5458,18 +6056,6 @@ __metadata: languageName: node linkType: hard -"open@npm:^10.1.0": - version: 10.1.0 - resolution: "open@npm:10.1.0" - dependencies: - default-browser: "npm:^5.2.1" - define-lazy-prop: "npm:^3.0.0" - is-inside-container: "npm:^1.0.0" - is-wsl: "npm:^3.1.0" - checksum: 10c0/c86d0b94503d5f735f674158d5c5d339c25ec2927562f00ee74590727292ed23e1b8d9336cb41ffa7e1fa4d3641d29b199b4ea37c78cb557d72b511743e90ebb - languageName: node - linkType: hard - "ora@npm:^8.0.1": version: 8.0.1 resolution: "ora@npm:8.0.1" @@ -5909,6 +6495,13 @@ __metadata: languageName: node linkType: hard +"raf-schd@npm:^4.0.3": + version: 4.0.3 + resolution: "raf-schd@npm:4.0.3" + checksum: 10c0/ecabf0957c05fad059779bddcd992f1a9d3a35dfea439a6f0935c382fcf4f7f7fa60489e467b4c2db357a3665167d2a379782586b59712bb36c766e02824709b + languageName: node + linkType: hard + "range-parser@npm:~1.2.1": version: 1.2.1 resolution: "range-parser@npm:1.2.1" @@ -5928,6 +6521,17 @@ __metadata: languageName: node linkType: hard +"react-frame-component@npm:^5.2.6": + version: 5.2.7 + resolution: "react-frame-component@npm:5.2.7" + peerDependencies: + prop-types: ^15.5.9 + react: ">= 16.3" + react-dom: ">= 16.3" + checksum: 10c0/e138602aa98557c021ae825f51468026c53b9939140c5961d5371b65ad07ff9a5adaf2cd4e4a8a77414a05ae0f95a842939c8e102aa576ef21ff096368b905a3 + languageName: node + linkType: hard + "react-hook-form@npm:^7.52.1": version: 7.52.1 resolution: "react-hook-form@npm:7.52.1" @@ -5937,6 +6541,16 @@ __metadata: languageName: node linkType: hard +"react-hotkeys-hook@npm:^4.4.1": + version: 4.5.0 + resolution: "react-hotkeys-hook@npm:4.5.0" + peerDependencies: + react: ">=16.8.1" + react-dom: ">=16.8.1" + checksum: 10c0/ae3ee47c623aaece4c21ce8027b0fff18caaee8c6cb22fafcbebbb54cee27ef7d0097145f04da1bd67b5af1d89cb4f983ae6a72b32451de81dca193255187480 + languageName: node + linkType: hard + "react-icons@npm:^5.2.1": version: 5.2.1 resolution: "react-icons@npm:5.2.1" @@ -5946,6 +6560,52 @@ __metadata: languageName: node linkType: hard +"react-is@npm:^16.7.0": + version: 16.13.1 + resolution: "react-is@npm:16.13.1" + checksum: 10c0/33977da7a5f1a287936a0c85639fec6ca74f4f15ef1e59a6bc20338fc73dc69555381e211f7a3529b8150a1f71e4225525b41b60b52965bda53ce7d47377ada1 + languageName: node + linkType: hard + +"react-is@npm:^18.0.0": + version: 18.3.1 + resolution: "react-is@npm:18.3.1" + checksum: 10c0/f2f1e60010c683479e74c63f96b09fb41603527cd131a9959e2aee1e5a8b0caf270b365e5ca77d4a6b18aae659b60a86150bb3979073528877029b35aecd2072 + languageName: node + linkType: hard + +"react-redux@npm:^8.1.3": + version: 8.1.3 + resolution: "react-redux@npm:8.1.3" + dependencies: + "@babel/runtime": "npm:^7.12.1" + "@types/hoist-non-react-statics": "npm:^3.3.1" + "@types/use-sync-external-store": "npm:^0.0.3" + hoist-non-react-statics: "npm:^3.3.2" + react-is: "npm:^18.0.0" + use-sync-external-store: "npm:^1.0.0" + peerDependencies: + "@types/react": ^16.8 || ^17.0 || ^18.0 + "@types/react-dom": ^16.8 || ^17.0 || ^18.0 + react: ^16.8 || ^17.0 || ^18.0 + react-dom: ^16.8 || ^17.0 || ^18.0 + react-native: ">=0.59" + redux: ^4 || ^5.0.0-beta.0 + peerDependenciesMeta: + "@types/react": + optional: true + "@types/react-dom": + optional: true + react-dom: + optional: true + react-native: + optional: true + redux: + optional: true + checksum: 10c0/64c8be2765568dc66a3c442a41dd0ed74fe048d5ceb7a4fe72e5bac3d3687996a7115f57b5156af7406521087065a0e60f9194318c8ca99c55e9ce48558980ce + languageName: node + linkType: hard + "react-refresh@npm:^0.14.2": version: 0.14.2 resolution: "react-refresh@npm:0.14.2" @@ -6032,6 +6692,15 @@ __metadata: languageName: node linkType: hard +"redux@npm:^4.2.1": + version: 4.2.1 + resolution: "redux@npm:4.2.1" + dependencies: + "@babel/runtime": "npm:^7.9.2" + checksum: 10c0/136d98b3d5dbed1cd6279c8c18a6a74c416db98b8a432a46836bdd668475de6279a2d4fd9d1363f63904e00f0678a8a3e7fa532c897163340baf1e71bb42c742 + languageName: node + linkType: hard + "regenerator-runtime@npm:^0.14.0": version: 0.14.1 resolution: "regenerator-runtime@npm:0.14.1" @@ -6160,6 +6829,13 @@ __metadata: languageName: node linkType: hard +"resolve-pkg-maps@npm:^1.0.0": + version: 1.0.0 + resolution: "resolve-pkg-maps@npm:1.0.0" + checksum: 10c0/fb8f7bbe2ca281a73b7ef423a1cbc786fb244bd7a95cbe5c3fba25b27d327150beca8ba02f622baea65919a57e061eb5005204daa5f93ed590d9b77463a567ab + languageName: node + linkType: hard + "resolve@npm:^1.1.7, resolve@npm:^1.22.2": version: 1.22.8 resolution: "resolve@npm:1.22.8" @@ -6260,7 +6936,6 @@ __metadata: resolution: "rockit@workspace:." dependencies: "@astrojs/check": "npm:^0.7.0" - "@astrojs/db": "npm:^0.11.7" "@astrojs/node": "npm:^8.3.2" "@astrojs/react": "npm:^3.6.0" "@astrojs/tailwind": "npm:^5.1.0" @@ -6269,6 +6944,7 @@ __metadata: "@hookform/resolvers": "npm:^3.9.0" "@libsql/client": "npm:^0.7.0" "@material-tailwind/html": "npm:^2.2.2" + "@measured/puck": "npm:^0.15.0" "@radix-ui/react-checkbox": "npm:^1.1.1" "@radix-ui/react-dropdown-menu": "npm:^2.1.1" "@radix-ui/react-label": "npm:^2.1.0" @@ -6285,11 +6961,14 @@ __metadata: bcryptjs: "npm:^2.4.3" class-variance-authority: "npm:^0.7.0" clsx: "npm:^2.1.1" + drizzle-kit: "npm:^0.23.0" + drizzle-orm: "npm:^0.32.0" flat: "npm:^6.0.1" hono: "npm:^4.4.12" jexl: "npm:^2.3.0" jsonwebtoken: "npm:^9.0.2" lucide-react: "npm:^0.403.0" + mysql2: "npm:^3.10.3" next-themes: "npm:^0.3.0" papaparse: "npm:^5.4.1" prettier: "npm:^3.3.2" @@ -6371,13 +7050,6 @@ __metadata: languageName: node linkType: hard -"run-applescript@npm:^7.0.0": - version: 7.0.0 - resolution: "run-applescript@npm:7.0.0" - checksum: 10c0/bd821bbf154b8e6c8ecffeaf0c33cebbb78eb2987476c3f6b420d67ab4c5301faa905dec99ded76ebb3a7042b4e440189ae6d85bbbd3fc6e8d493347ecda8bfe - languageName: node - linkType: hard - "run-parallel@npm:^1.1.9": version: 1.2.0 resolution: "run-parallel@npm:1.2.0" @@ -6475,6 +7147,13 @@ __metadata: languageName: node linkType: hard +"seq-queue@npm:^0.0.5": + version: 0.0.5 + resolution: "seq-queue@npm:0.0.5" + checksum: 10c0/ec870fc392f0e6e99ec0e551c3041c1a66144d1580efabae7358e572de127b0ad2f844c95a4861d2e6203f836adea4c8196345b37bed55331ead8f22d99ac84c + languageName: node + linkType: hard + "server-destroy@npm:^1.0.1": version: 1.0.1 resolution: "server-destroy@npm:1.0.1" @@ -6658,6 +7337,23 @@ __metadata: languageName: node linkType: hard +"source-map-support@npm:^0.5.21": + version: 0.5.21 + resolution: "source-map-support@npm:0.5.21" + dependencies: + buffer-from: "npm:^1.0.0" + source-map: "npm:^0.6.0" + checksum: 10c0/9ee09942f415e0f721d6daad3917ec1516af746a8120bba7bb56278707a37f1eb8642bde456e98454b8a885023af81a16e646869975f06afc1a711fb90484e7d + languageName: node + linkType: hard + +"source-map@npm:^0.6.0": + version: 0.6.1 + resolution: "source-map@npm:0.6.1" + checksum: 10c0/ab55398007c5e5532957cb0beee2368529618ac0ab372d789806f5718123cc4367d57de3904b4e6a4170eb5a0b0f41373066d02ca0735a0c4d75c7d328d3e011 + languageName: node + linkType: hard + "space-separated-tokens@npm:^2.0.0": version: 2.0.2 resolution: "space-separated-tokens@npm:2.0.2" @@ -6679,6 +7375,13 @@ __metadata: languageName: node linkType: hard +"sqlstring@npm:^2.3.2": + version: 2.3.3 + resolution: "sqlstring@npm:2.3.3" + checksum: 10c0/3b5dd7badb3d6312f494cfa6c9a381ee630fbe3dbd571c4c9eb8ecdb99a7bf5a1f7a5043191d768797f6b3c04eed5958ac6a5f948b998f0a138294c6d3125fbd + languageName: node + linkType: hard + "ssri@npm:^10.0.0": version: 10.0.6 resolution: "ssri@npm:10.0.6" @@ -6908,6 +7611,13 @@ __metadata: languageName: node linkType: hard +"tiny-invariant@npm:^1.0.6": + version: 1.3.3 + resolution: "tiny-invariant@npm:1.3.3" + checksum: 10c0/65af4a07324b591a059b35269cd696aba21bef2107f29b9f5894d83cc143159a204b299553435b03874ebb5b94d019afa8b8eff241c8a4cfee95872c2e1c1c4a + languageName: node + linkType: hard + "to-fast-properties@npm:^2.0.0": version: 2.0.0 resolution: "to-fast-properties@npm:2.0.0" @@ -7016,6 +7726,13 @@ __metadata: languageName: node linkType: hard +"ua-parser-js@npm:^1.0.37": + version: 1.0.38 + resolution: "ua-parser-js@npm:1.0.38" + checksum: 10c0/b1dd11b87e1784c79f7129e9aec679753fccf8a9b22f5202b79b19492635b5b46b779607a3cfae0270999a0d48da223bf94015642d2abee69d83c9069ab37bd0 + languageName: node + linkType: hard + "ulid@npm:^2.3.0": version: 2.3.0 resolution: "ulid@npm:2.3.0" @@ -7188,6 +7905,24 @@ __metadata: languageName: node linkType: hard +"use-debounce@npm:^9.0.4": + version: 9.0.4 + resolution: "use-debounce@npm:9.0.4" + peerDependencies: + react: ">=16.8.0" + checksum: 10c0/97096fd3a0987beef190978c05affacb63c04ffd2d2132340bd2d161edf4f1695d9077c71ad5845b0e86b6cfec994ba141af0b62985a4e793166cac5a5c7d116 + languageName: node + linkType: hard + +"use-memo-one@npm:^1.1.3": + version: 1.1.3 + resolution: "use-memo-one@npm:1.1.3" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 10c0/3d596e65a6b47b2f1818061599738e00daad1f9a9bb4e5ce1f014b20a35b297e50fe4bf1d8c1699ab43ea97f01f84649a736c15ceff96de83bfa696925f6cc6b + languageName: node + linkType: hard + "use-sidecar@npm:^1.1.2": version: 1.1.2 resolution: "use-sidecar@npm:1.1.2" @@ -7204,6 +7939,15 @@ __metadata: languageName: node linkType: hard +"use-sync-external-store@npm:^1.0.0": + version: 1.2.2 + resolution: "use-sync-external-store@npm:1.2.2" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 10c0/23b1597c10adf15b26ade9e8c318d8cc0abc9ec0ab5fc7ca7338da92e89c2536abd150a5891bf076836c352fdfa104fc7231fb48f806fd9960e0cbe03601abaf + languageName: node + linkType: hard + "util-deprecate@npm:^1.0.2": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -7211,6 +7955,15 @@ __metadata: languageName: node linkType: hard +"uuid@npm:^9.0.1": + version: 9.0.1 + resolution: "uuid@npm:9.0.1" + bin: + uuid: dist/bin/uuid + checksum: 10c0/1607dd32ac7fc22f2d8f77051e6a64845c9bce5cd3dd8aa0070c074ec73e666a1f63c7b4e0f4bf2bc8b9d59dc85a15e17807446d9d2b17c8485fbc2147b27f9b + languageName: node + linkType: hard + "vfile-location@npm:^5.0.0": version: 5.0.2 resolution: "vfile-location@npm:5.0.2"