@prisma/studio-core 0.0.0-dev.202503211502 → 0.0.0-dev.202503211808

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ import { DialectAdapter, QueryCompiler } from 'kysely';
2
+
3
+ interface BuilderRequirements {
4
+ Adapter: {
5
+ new (): DialectAdapter;
6
+ };
7
+ noParameters?: boolean;
8
+ QueryCompiler: {
9
+ new (): QueryCompiler;
10
+ };
11
+ }
12
+ declare const queryType: unique symbol;
13
+ interface Query<T> {
14
+ [queryType]?: T;
15
+ parameters: readonly unknown[];
16
+ sql: string;
17
+ }
18
+ type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
19
+
20
+ export type { BuilderRequirements as B, Query as Q, QueryResult as a };
@@ -0,0 +1,20 @@
1
+ import { DialectAdapter, QueryCompiler } from 'kysely';
2
+
3
+ interface BuilderRequirements {
4
+ Adapter: {
5
+ new (): DialectAdapter;
6
+ };
7
+ noParameters?: boolean;
8
+ QueryCompiler: {
9
+ new (): QueryCompiler;
10
+ };
11
+ }
12
+ declare const queryType: unique symbol;
13
+ interface Query<T> {
14
+ [queryType]?: T;
15
+ parameters: readonly unknown[];
16
+ sql: string;
17
+ }
18
+ type QueryResult<T> = T extends Query<infer R> ? R[] : T extends (...args: any[]) => Query<infer R> ? R[] : never;
19
+
20
+ export type { BuilderRequirements as B, Query as Q, QueryResult as a };
package/dist/ui/index.js CHANGED
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";function e(){return t("h1",{className:"tw-preflight ps:p-10",children:"Hello, world!"})}export{e as default};
1
+ import"../chunk-TIBQMYJF.js";import{jsx as t}from"react/jsx-runtime";function e(){return t("h1",{className:"tw-preflight ps:p-10",children:"Hello, world!"})}export{e as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/studio-core",
3
- "version": "0.0.0-dev.202503211502",
3
+ "version": "0.0.0-dev.202503211808",
4
4
  "description": "Modular Prisma Studio components",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -15,6 +15,16 @@
15
15
  "default": "./dist/data/index.cjs"
16
16
  }
17
17
  },
18
+ "./data/accelerate": {
19
+ "import": {
20
+ "types": "./dist/data/accelerate/index.d.ts",
21
+ "default": "./dist/data/accelerate/index.js"
22
+ },
23
+ "require": {
24
+ "types": "./dist/data/accelerate/index.d.cts",
25
+ "default": "./dist/data/accelerate/index.cjs"
26
+ }
27
+ },
18
28
  "./data/postgres-core": {
19
29
  "import": {
20
30
  "types": "./dist/data/postgres-core/index.d.ts",
@@ -42,6 +52,7 @@
42
52
  "devDependencies": {
43
53
  "@arethetypeswrong/cli": "0.17.4",
44
54
  "@electric-sql/pglite": "0.2.17",
55
+ "@prisma/client": "6.5.0",
45
56
  "@tailwindcss/postcss": "4.0.14",
46
57
  "kysely": "0.27.4",
47
58
  "postcss": "8.4.41",
@@ -57,6 +68,7 @@
57
68
  "dist"
58
69
  ],
59
70
  "peerDependencies": {
71
+ "@prisma/client": "6.5.0",
60
72
  "@types/react": "18.3.3",
61
73
  "react": "18.3.0-canary-a870b2d54-20240314"
62
74
  },