@prisma/studio-core 0.0.0-dev.202503272051 → 0.0.0-dev.202503280212

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/studio-core",
3
- "version": "0.0.0-dev.202503272051",
3
+ "version": "0.0.0-dev.202503280212",
4
4
  "description": "Modular Prisma Studio components",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -54,8 +54,7 @@
54
54
  "types": "./dist/ui/index.d.cts",
55
55
  "default": "./dist/ui/index.cjs"
56
56
  }
57
- },
58
- "./ui/index.css": "./dist/ui/index.css"
57
+ }
59
58
  },
60
59
  "keywords": [],
61
60
  "author": "",
@@ -65,13 +64,13 @@
65
64
  "@electric-sql/pglite": "0.2.17",
66
65
  "@prisma/client": "6.5.0",
67
66
  "@prisma/generator": "6.6.0-integration-push-xmzqvqxpztks.1",
68
- "@types/node": "22.3.0",
69
- "@types/react": "^19.0.12",
70
- "@types/react-dom": "^19.0.4",
67
+ "@tailwindcss/postcss": "4.0.14",
71
68
  "kysely": "0.27.4",
72
- "lucide-react": "0.427.0",
69
+ "postcss": "8.4.41",
73
70
  "std-env": "3.8.1",
74
- "tailwindcss": "3.4.17",
71
+ "tailwind-merge": "2.5.2",
72
+ "tailwindcss": "4.0.14",
73
+ "tailwindcss-animate": "1.0.7",
75
74
  "tsup": "8.0.2",
76
75
  "tsx": "4.17.0",
77
76
  "typescript": "5.5.4",
@@ -83,35 +82,10 @@
83
82
  "peerDependencies": {
84
83
  "@prisma/client": "6.5.0",
85
84
  "@types/react": "18.3.3",
86
- "react": "18.3.0",
87
- "react-dom": "18.3.0"
88
- },
89
- "dependencies": {
90
- "@dnd-kit/core": "6.3.1",
91
- "@dnd-kit/sortable": "10.0.0",
92
- "@dnd-kit/utilities": "3.2.2",
93
- "@radix-ui/react-checkbox": "1.1.4",
94
- "@radix-ui/react-context-menu": "2.2.6",
95
- "@radix-ui/react-dialog": "1.1.6",
96
- "@radix-ui/react-dropdown-menu": "2.1.6",
97
- "@radix-ui/react-popover": "1.1.6",
98
- "@radix-ui/react-select": "2.1.6",
99
- "@radix-ui/react-slot": "1.1.2",
100
- "@tanstack/react-table": "8.20.1",
101
- "@uiw/codemirror-theme-tokyo-night": "4.23.10",
102
- "@uiw/react-codemirror": "4.23.10",
103
- "autoprefixer": "10.4.21",
104
- "class-variance-authority": "0.7.0",
105
- "clsx": "2.1.1",
106
- "nuqs": "2.4.1",
107
- "postcss": "8.4.41",
108
- "tailwind-merge": "2.5.2",
109
- "tailwindcss-animate": "1.0.7",
110
- "zod": "3.24.2"
85
+ "react": "18.3.0-canary-a870b2d54-20240314"
111
86
  },
112
87
  "scripts": {
113
88
  "build": "tsup",
114
- "dev": "tsup --watch",
115
89
  "check:exports": "attw --pack . --profile node16",
116
90
  "typecheck": "tsc",
117
91
  "lint": "eslint --fix .",
@@ -1,119 +0,0 @@
1
- type Either<E, R> = [E] | [null, R];
2
- interface Adapter {
3
- introspect(): Promise<Either<Error, InstrospectResult>>;
4
- query(input: QueryInput): Promise<Either<Error, QueryResult>>;
5
- mutate(inputs: MutateInput[]): Promise<Either<Error, MutateResult>>;
6
- alter(inputs: AlterInput[]): Promise<Either<Error, AlterResult>>;
7
- rawQuery(input: RawQueryInput): Promise<Either<Error, RawQueryResult>>;
8
- }
9
- type EnumName = string;
10
- type TableName = string;
11
- type ColumnName = string;
12
- type SchemaName = string;
13
- type InstrospectResult = {
14
- schemas: Record<SchemaName, InstrospectSchemaMeta>;
15
- filters: Record<QueryFilterOperator, boolean>;
16
- };
17
- type InstrospectSchemaMeta = {
18
- tables: Record<TableName, InstrospectTableMeta>;
19
- enums: Record<EnumName, EnumMeta>;
20
- };
21
- type InstrospectTableMeta = {
22
- schema: SchemaName;
23
- name: TableName;
24
- columns: Record<ColumnName, InstrospectColumnMeta>;
25
- };
26
- type InstrospectColumnMeta = {
27
- schema: SchemaName;
28
- table: TableName;
29
- name: ColumnName;
30
- dataType: IntrospectDataType;
31
- uiType: IntrospectUiType;
32
- defaults: unknown;
33
- nullable: boolean;
34
- partOfPk: boolean;
35
- reference: InstrospectTableMeta | null;
36
- };
37
- type IntrospectDataType = {
38
- name: string;
39
- args: (string | number)[];
40
- };
41
- type IntrospectUiType = {
42
- kind: "string";
43
- isList: boolean;
44
- max: number;
45
- min: number;
46
- } | {
47
- kind: "number";
48
- isList: boolean;
49
- max: number;
50
- min: number;
51
- } | {
52
- kind: "decimal";
53
- isList: boolean;
54
- max: number;
55
- min: number;
56
- decimalPlaces: number;
57
- } | {
58
- kind: "boolean";
59
- isList: boolean;
60
- } | {
61
- kind: "datetime";
62
- isList: boolean;
63
- } | {
64
- kind: "json";
65
- isList: boolean;
66
- } | {
67
- kind: "blob";
68
- isList: boolean;
69
- } | {
70
- kind: "enum";
71
- isList: boolean;
72
- name: EnumName;
73
- values: string[];
74
- };
75
- type EnumMeta = {
76
- name: EnumName;
77
- values: string[];
78
- };
79
- type QueryInput = {
80
- schema: SchemaName;
81
- table: TableName;
82
- filters: QueryFilter[][];
83
- sortings: QuerySorting[];
84
- limit?: number;
85
- offset?: number;
86
- };
87
- type QueryFilter = {
88
- column: ColumnName;
89
- operator: QueryFilterOperator;
90
- value: unknown[] | InstrospectColumnMeta[];
91
- not?: boolean;
92
- };
93
- type QuerySorting = {
94
- column: ColumnName;
95
- order: "asc" | "desc";
96
- };
97
- type QueryFilterOperator = "=" | ">=" | ">" | "<=" | "<" | "like" | "ilike" | "is null" | (string & {});
98
- type QueryResult = {
99
- schema: SchemaName;
100
- table: TableName;
101
- fetchedAt: number;
102
- duration: number;
103
- rows: Record<ColumnName, QueryResultColumn>[];
104
- count: number;
105
- };
106
- type QueryResultColumn = {
107
- column: ColumnName;
108
- value: unknown;
109
- dataType?: IntrospectDataType;
110
- uiType?: IntrospectUiType;
111
- };
112
- type MutateInput = {};
113
- type MutateResult = {};
114
- type AlterInput = {};
115
- type AlterResult = {};
116
- type RawQueryInput = {};
117
- type RawQueryResult = {};
118
-
119
- export type { Adapter as A, Either as E, InstrospectResult as I, MutateInput as M, QueryInput as Q, RawQueryInput as R, QueryResult as a, MutateResult as b, AlterInput as c, AlterResult as d, RawQueryResult as e };
@@ -1,119 +0,0 @@
1
- type Either<E, R> = [E] | [null, R];
2
- interface Adapter {
3
- introspect(): Promise<Either<Error, InstrospectResult>>;
4
- query(input: QueryInput): Promise<Either<Error, QueryResult>>;
5
- mutate(inputs: MutateInput[]): Promise<Either<Error, MutateResult>>;
6
- alter(inputs: AlterInput[]): Promise<Either<Error, AlterResult>>;
7
- rawQuery(input: RawQueryInput): Promise<Either<Error, RawQueryResult>>;
8
- }
9
- type EnumName = string;
10
- type TableName = string;
11
- type ColumnName = string;
12
- type SchemaName = string;
13
- type InstrospectResult = {
14
- schemas: Record<SchemaName, InstrospectSchemaMeta>;
15
- filters: Record<QueryFilterOperator, boolean>;
16
- };
17
- type InstrospectSchemaMeta = {
18
- tables: Record<TableName, InstrospectTableMeta>;
19
- enums: Record<EnumName, EnumMeta>;
20
- };
21
- type InstrospectTableMeta = {
22
- schema: SchemaName;
23
- name: TableName;
24
- columns: Record<ColumnName, InstrospectColumnMeta>;
25
- };
26
- type InstrospectColumnMeta = {
27
- schema: SchemaName;
28
- table: TableName;
29
- name: ColumnName;
30
- dataType: IntrospectDataType;
31
- uiType: IntrospectUiType;
32
- defaults: unknown;
33
- nullable: boolean;
34
- partOfPk: boolean;
35
- reference: InstrospectTableMeta | null;
36
- };
37
- type IntrospectDataType = {
38
- name: string;
39
- args: (string | number)[];
40
- };
41
- type IntrospectUiType = {
42
- kind: "string";
43
- isList: boolean;
44
- max: number;
45
- min: number;
46
- } | {
47
- kind: "number";
48
- isList: boolean;
49
- max: number;
50
- min: number;
51
- } | {
52
- kind: "decimal";
53
- isList: boolean;
54
- max: number;
55
- min: number;
56
- decimalPlaces: number;
57
- } | {
58
- kind: "boolean";
59
- isList: boolean;
60
- } | {
61
- kind: "datetime";
62
- isList: boolean;
63
- } | {
64
- kind: "json";
65
- isList: boolean;
66
- } | {
67
- kind: "blob";
68
- isList: boolean;
69
- } | {
70
- kind: "enum";
71
- isList: boolean;
72
- name: EnumName;
73
- values: string[];
74
- };
75
- type EnumMeta = {
76
- name: EnumName;
77
- values: string[];
78
- };
79
- type QueryInput = {
80
- schema: SchemaName;
81
- table: TableName;
82
- filters: QueryFilter[][];
83
- sortings: QuerySorting[];
84
- limit?: number;
85
- offset?: number;
86
- };
87
- type QueryFilter = {
88
- column: ColumnName;
89
- operator: QueryFilterOperator;
90
- value: unknown[] | InstrospectColumnMeta[];
91
- not?: boolean;
92
- };
93
- type QuerySorting = {
94
- column: ColumnName;
95
- order: "asc" | "desc";
96
- };
97
- type QueryFilterOperator = "=" | ">=" | ">" | "<=" | "<" | "like" | "ilike" | "is null" | (string & {});
98
- type QueryResult = {
99
- schema: SchemaName;
100
- table: TableName;
101
- fetchedAt: number;
102
- duration: number;
103
- rows: Record<ColumnName, QueryResultColumn>[];
104
- count: number;
105
- };
106
- type QueryResultColumn = {
107
- column: ColumnName;
108
- value: unknown;
109
- dataType?: IntrospectDataType;
110
- uiType?: IntrospectUiType;
111
- };
112
- type MutateInput = {};
113
- type MutateResult = {};
114
- type AlterInput = {};
115
- type AlterResult = {};
116
- type RawQueryInput = {};
117
- type RawQueryResult = {};
118
-
119
- export type { Adapter as A, Either as E, InstrospectResult as I, MutateInput as M, QueryInput as Q, RawQueryInput as R, QueryResult as a, MutateResult as b, AlterInput as c, AlterResult as d, RawQueryResult as e };