@prisma/studio-core 0.0.0-dev.202503210039 → 0.0.0-dev.202503211142
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/dist/data/index.cjs +1 -1
- package/dist/data/index.js +1 -1
- package/dist/data/postgres-core/index.cjs +1 -1
- package/dist/data/postgres-core/index.d.cts +18 -2
- package/dist/data/postgres-core/index.d.ts +18 -2
- package/dist/data/postgres-core/index.js +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +7 -16
- package/dist/chunk-TIBQMYJF.js +0 -1
- package/dist/data/accelerate/index.cjs +0 -1
- package/dist/data/accelerate/index.d.cts +0 -29
- package/dist/data/accelerate/index.d.ts +0 -29
- package/dist/data/accelerate/index.js +0 -1
- package/dist/query-YoAEw-K9.d.cts +0 -20
- package/dist/query-YoAEw-K9.d.ts +0 -20
package/dist/ui/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/studio-core",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.202503211142",
|
|
4
4
|
"description": "Modular Prisma Studio components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -15,16 +15,6 @@
|
|
|
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
|
-
},
|
|
28
18
|
"./data/postgres-core": {
|
|
29
19
|
"import": {
|
|
30
20
|
"types": "./dist/data/postgres-core/index.d.ts",
|
|
@@ -51,9 +41,7 @@
|
|
|
51
41
|
"license": "ISC",
|
|
52
42
|
"devDependencies": {
|
|
53
43
|
"@arethetypeswrong/cli": "0.17.4",
|
|
54
|
-
"@prisma/client": "6.5.0",
|
|
55
44
|
"@tailwindcss/postcss": "4.0.14",
|
|
56
|
-
"@types/node": "22.3.0",
|
|
57
45
|
"kysely": "0.27.4",
|
|
58
46
|
"postcss": "8.4.41",
|
|
59
47
|
"tailwind-merge": "2.5.2",
|
|
@@ -61,13 +49,13 @@
|
|
|
61
49
|
"tailwindcss-animate": "1.0.7",
|
|
62
50
|
"tsup": "8.0.2",
|
|
63
51
|
"tsx": "4.17.0",
|
|
64
|
-
"typescript": "5.5.4"
|
|
52
|
+
"typescript": "5.5.4",
|
|
53
|
+
"vitest": "3.0.9"
|
|
65
54
|
},
|
|
66
55
|
"files": [
|
|
67
56
|
"dist"
|
|
68
57
|
],
|
|
69
58
|
"peerDependencies": {
|
|
70
|
-
"@prisma/client": "6.5.0",
|
|
71
59
|
"@types/react": "18.3.3",
|
|
72
60
|
"react": "18.3.0-canary-a870b2d54-20240314"
|
|
73
61
|
},
|
|
@@ -76,6 +64,9 @@
|
|
|
76
64
|
"check:exports": "attw --pack . --profile node16",
|
|
77
65
|
"typecheck": "tsc",
|
|
78
66
|
"lint": "eslint --fix .",
|
|
79
|
-
"test": ""
|
|
67
|
+
"test": "vitest --passWithNoTests",
|
|
68
|
+
"test:data": "vitest --passWithNoTests --project data",
|
|
69
|
+
"test:ui": "vitest --passWithNoTests --project ui",
|
|
70
|
+
"test:e2e": "vitest --passWithNoTests --project e2e"
|
|
80
71
|
}
|
|
81
72
|
}
|
package/dist/chunk-TIBQMYJF.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c={mysql:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJteXNxbCIKICAgIHVybCAgICAgID0gZW52KCJEQVRBQkFTRV9VUkwiKQp9CiAgICAKZ2VuZXJhdG9yIGNsaWVudCB7CiAgICBwcm92aWRlciA9ICJwcmlzbWEtY2xpZW50LWpzIgp9",hash:"8157ef0f68a62b93385f659d0df3eb630f54b49387d67be1e69cc376bc2e0901"},postgres:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJwb3N0Z3JlcyIKICAgIHVybCAgICAgID0gZW52KCJEQVRBQkFTRV9VUkwiKQp9CiAgICAKZ2VuZXJhdG9yIGNsaWVudCB7CiAgICBwcm92aWRlciA9ICJwcmlzbWEtY2xpZW50LWpzIgp9",hash:"54195896aeafa3318ca33f5a8bb44c6b4d89c368cb15288f3bd5ace35a3f9227"}};export{c as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var y=Object.create;var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var A=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},u=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of d(t))!m.call(e,s)&&s!==r&&n(e,s,{get:()=>t[s],enumerable:!(a=p(t,s))||a.enumerable});return e};var E=(e,t,r)=>(r=e!=null?y(h(e)):{},u(t||!e||!e.__esModule?n(r,"default",{value:e,enumerable:!0}):r,e)),f=e=>u(n({},"__esModule",{value:!0}),e);var Q={};A(Q,{createAccelerateHttpClient:()=>S});module.exports=f(Q);var o={mysql:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJteXNxbCIKICAgIHVybCAgICAgID0gZW52KCJEQVRBQkFTRV9VUkwiKQp9CiAgICAKZ2VuZXJhdG9yIGNsaWVudCB7CiAgICBwcm92aWRlciA9ICJwcmlzbWEtY2xpZW50LWpzIgp9",hash:"8157ef0f68a62b93385f659d0df3eb630f54b49387d67be1e69cc376bc2e0901"},postgres:{encoded:"ZGF0YXNvdXJjZSBkYiB7CiAgICBwcm92aWRlciA9ICJwb3N0Z3JlcyIKICAgIHVybCAgICAgID0gZW52KCJEQVRBQkFTRV9VUkwiKQp9CiAgICAKZ2VuZXJhdG9yIGNsaWVudCB7CiAgICBwcm92aWRlciA9ICJwcmlzbWEtY2xpZW50LWpzIgp9",hash:"54195896aeafa3318ca33f5a8bb44c6b4d89c368cb15288f3bd5ace35a3f9227"}};var c=E(require("@prisma/client/package.json"),1),R=require("@prisma/client/runtime/library"),g="accelerate.prisma-data.net",P=c.default.devDependencies["@prisma/engines-version"],w=c.default.version,C=P.split("-")[1].split(".")[1],l=o;function S(e){let t=H(e);return{sendQueryRequest:I(e,t)}}function H(e){let t=`https://${e.host||g}/${w}/${l[e.provider].hash}`,r=e.fetch||fetch,a={Authorization:`Bearer ${e.apiKey}`,"Prisma-Engine-Hash":C};return s=>r(`${t}/${s.path}`,{body:s.body,headers:a,method:s.method})}async function _(e,t){let r=await t({body:l[e.provider].encoded,method:"PUT",path:"schema"});if(!r.ok){try{console.error(await r.text())}catch{}throw new Error(`Failed to upload schema to query engine: ${r.statusText}`)}}async function T(e,t){let r=await t({body:JSON.stringify(e),method:"POST",path:"graphql"});if(!r.ok){try{console.error(await r.text())}catch{}throw new Error(`Failed to execute query: ${r.statusText}`)}return await r.json()}function I(e,t){let r=null;return async a=>{await(r||=_(e,t));let{data:s,errors:i}=await T({action:"queryRaw",query:{arguments:{parameters:a.parameters,query:a.sql},selection:{}}},t);if(i)throw new AggregateError(i,"Errors occurred while executing the query");return(0,R.deserializeRawResult)(s.queryRaw)}}0&&(module.exports={createAccelerateHttpClient});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Q as Query } from '../../query-YoAEw-K9.cjs';
|
|
2
|
-
import 'kysely';
|
|
3
|
-
|
|
4
|
-
interface AccelerateHttpClientParams {
|
|
5
|
-
/**
|
|
6
|
-
* Accelerate API key.
|
|
7
|
-
*/
|
|
8
|
-
apiKey: string;
|
|
9
|
-
/**
|
|
10
|
-
* Optional fetch implementation.
|
|
11
|
-
*/
|
|
12
|
-
fetch?: typeof globalThis.fetch;
|
|
13
|
-
/**
|
|
14
|
-
* Optional host.
|
|
15
|
-
*
|
|
16
|
-
* Defaults to `accelerate.prisma-data.net`.
|
|
17
|
-
*/
|
|
18
|
-
host?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Database provider.
|
|
21
|
-
*/
|
|
22
|
-
provider: "mysql" | "postgres";
|
|
23
|
-
}
|
|
24
|
-
interface AccelerateHttpClient {
|
|
25
|
-
sendQueryRequest<R>(query: Query<R>): Promise<R[]>;
|
|
26
|
-
}
|
|
27
|
-
declare function createAccelerateHttpClient(props: AccelerateHttpClientParams): AccelerateHttpClient;
|
|
28
|
-
|
|
29
|
-
export { type AccelerateHttpClient, type AccelerateHttpClientParams, createAccelerateHttpClient };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Q as Query } from '../../query-YoAEw-K9.js';
|
|
2
|
-
import 'kysely';
|
|
3
|
-
|
|
4
|
-
interface AccelerateHttpClientParams {
|
|
5
|
-
/**
|
|
6
|
-
* Accelerate API key.
|
|
7
|
-
*/
|
|
8
|
-
apiKey: string;
|
|
9
|
-
/**
|
|
10
|
-
* Optional fetch implementation.
|
|
11
|
-
*/
|
|
12
|
-
fetch?: typeof globalThis.fetch;
|
|
13
|
-
/**
|
|
14
|
-
* Optional host.
|
|
15
|
-
*
|
|
16
|
-
* Defaults to `accelerate.prisma-data.net`.
|
|
17
|
-
*/
|
|
18
|
-
host?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Database provider.
|
|
21
|
-
*/
|
|
22
|
-
provider: "mysql" | "postgres";
|
|
23
|
-
}
|
|
24
|
-
interface AccelerateHttpClient {
|
|
25
|
-
sendQueryRequest<R>(query: Query<R>): Promise<R[]>;
|
|
26
|
-
}
|
|
27
|
-
declare function createAccelerateHttpClient(props: AccelerateHttpClientParams): AccelerateHttpClient;
|
|
28
|
-
|
|
29
|
-
export { type AccelerateHttpClient, type AccelerateHttpClientParams, createAccelerateHttpClient };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"../../chunk-TIBQMYJF.js";import c from"@prisma/client/package.json";import{deserializeRawResult as u}from"@prisma/client/runtime/library";var R="accelerate.prisma-data.net",l=c.devDependencies["@prisma/engines-version"],y=c.version,p=l.split("-")[1].split(".")[1],i=n;function q(e){let r=d(e);return{sendQueryRequest:A(e,r)}}function d(e){let r=`https://${e.host||R}/${y}/${i[e.provider].hash}`,t=e.fetch||fetch,a={Authorization:`Bearer ${e.apiKey}`,"Prisma-Engine-Hash":p};return s=>t(`${r}/${s.path}`,{body:s.body,headers:a,method:s.method})}async function h(e,r){let t=await r({body:i[e.provider].encoded,method:"PUT",path:"schema"});if(!t.ok){try{console.error(await t.text())}catch{}throw new Error(`Failed to upload schema to query engine: ${t.statusText}`)}}async function m(e,r){let t=await r({body:JSON.stringify(e),method:"POST",path:"graphql"});if(!t.ok){try{console.error(await t.text())}catch{}throw new Error(`Failed to execute query: ${t.statusText}`)}return await t.json()}function A(e,r){let t=null;return async a=>{await(t||=h(e,r));let{data:s,errors:o}=await m({action:"queryRaw",query:{arguments:{parameters:a.parameters,query:a.sql},selection:{}}},r);if(o)throw new AggregateError(o,"Errors occurred while executing the query");return u(s.queryRaw)}}export{q as createAccelerateHttpClient};
|
|
@@ -1,20 +0,0 @@
|
|
|
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/query-YoAEw-K9.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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 };
|