@puckeditor/ai-types 0.1.0-canary.027b6f23
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/index.d.ts +35 -0
- package/index.js +0 -0
- package/package.json +27 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "@measured/puck";
|
|
2
|
+
|
|
3
|
+
import { JSONSchema } from "zod/v4/core/json-schema";
|
|
4
|
+
|
|
5
|
+
export type ComponentAiParams = {
|
|
6
|
+
instructions?: string;
|
|
7
|
+
schema?: JSONSchema;
|
|
8
|
+
defaultZone?: { allow?: string[]; disallow?: string[]; disabled?: boolean };
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type FieldAiParams = {
|
|
12
|
+
instructions?: string;
|
|
13
|
+
exclude?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
stream?: boolean;
|
|
16
|
+
schema?: JSONSchema;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
declare module "@measured/puck" {
|
|
20
|
+
export interface ComponentMetadata {
|
|
21
|
+
ai?: ComponentAiParams;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ComponentConfigExtensions {
|
|
25
|
+
ai?: ComponentAiParams;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface FieldMetadata {
|
|
29
|
+
ai?: FieldAiParams;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface BaseField {
|
|
33
|
+
ai?: FieldAiParams;
|
|
34
|
+
}
|
|
35
|
+
}
|
package/index.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@puckeditor/ai-types",
|
|
3
|
+
"version": "0.1.0-canary.027b6f23",
|
|
4
|
+
"author": "Chris Villa <chris@puckeditor.com>",
|
|
5
|
+
"repository": "puckeditor/puck",
|
|
6
|
+
"bugs": "https://github.com/puckeditor/puck/issues",
|
|
7
|
+
"homepage": "https://puckeditor.com",
|
|
8
|
+
"main": "./index.js",
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./index.js",
|
|
12
|
+
"types": "./index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"index.js",
|
|
16
|
+
"index.d.ts"
|
|
17
|
+
],
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@measured/puck": "0.21.0-canary.e9d5c0ea",
|
|
20
|
+
"tsconfig": "workspace:*",
|
|
21
|
+
"typescript": "^5.5.4",
|
|
22
|
+
"zod": "^4.1.12"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@measured/puck": "0.21.0-canary.7dca3a5a"
|
|
26
|
+
}
|
|
27
|
+
}
|