@avocadostudio-ai/site-sdk 0.1.0
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/LICENSE +201 -0
- package/README.md +145 -0
- package/dist/cli/register.d.ts +33 -0
- package/dist/cli/register.js +315 -0
- package/dist/create-site-page.d.ts +95 -0
- package/dist/create-site-page.js +127 -0
- package/dist/draft-common.d.ts +4 -0
- package/dist/draft-common.js +17 -0
- package/dist/draft-context-core.d.ts +11 -0
- package/dist/draft-context-core.js +26 -0
- package/dist/draft-context.d.ts +8 -0
- package/dist/draft-context.js +14 -0
- package/dist/draft-fetch.d.ts +14 -0
- package/dist/draft-fetch.js +115 -0
- package/dist/draft-routes-core.d.ts +11 -0
- package/dist/draft-routes-core.js +41 -0
- package/dist/draft-routes.d.ts +2 -0
- package/dist/draft-routes.js +27 -0
- package/dist/draft.d.ts +3 -0
- package/dist/draft.js +6 -0
- package/dist/editor-api-handler.d.ts +59 -0
- package/dist/editor-api-handler.js +89 -0
- package/dist/editor-cors.d.ts +3 -0
- package/dist/editor-cors.js +31 -0
- package/dist/editor-manifest.d.ts +3 -0
- package/dist/editor-manifest.js +65 -0
- package/dist/editor-overlay-inner.d.ts +5 -0
- package/dist/editor-overlay-inner.js +7 -0
- package/dist/editor-overlay.d.ts +4 -0
- package/dist/editor-overlay.js +14 -0
- package/dist/editor-query.d.ts +2 -0
- package/dist/editor-query.js +16 -0
- package/dist/editor-routes.d.ts +35 -0
- package/dist/editor-routes.js +66 -0
- package/dist/editor.d.ts +20 -0
- package/dist/editor.js +22 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/integration-check.d.ts +5 -0
- package/dist/integration-check.js +29 -0
- package/dist/live-preview-blocks.d.ts +5 -0
- package/dist/live-preview-blocks.js +30 -0
- package/dist/manifest-utils.d.ts +17 -0
- package/dist/manifest-utils.js +44 -0
- package/dist/middleware.d.ts +37 -0
- package/dist/middleware.js +34 -0
- package/dist/navigation.d.ts +48 -0
- package/dist/navigation.js +95 -0
- package/dist/publish-handlers/json-file.d.ts +24 -0
- package/dist/publish-handlers/json-file.js +40 -0
- package/dist/publish-utils.d.ts +28 -0
- package/dist/publish-utils.js +92 -0
- package/dist/render-blocks.d.ts +4 -0
- package/dist/render-blocks.js +26 -0
- package/dist/revalidate-handler.d.ts +42 -0
- package/dist/revalidate-handler.js +77 -0
- package/dist/routes.d.ts +10 -0
- package/dist/routes.js +12 -0
- package/dist/server/orchestrator.d.ts +117 -0
- package/dist/server/orchestrator.js +733 -0
- package/dist/types.d.ts +8 -0
- package/dist/types.js +1 -0
- package/package.json +104 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { PageDoc, PageMeta, BlockInstance } from "@avocadostudio-ai/shared";
|
|
2
|
+
export { pageDocSchema } from "@avocadostudio-ai/shared";
|
|
3
|
+
export type DraftContext = {
|
|
4
|
+
session: string;
|
|
5
|
+
siteId: string;
|
|
6
|
+
editorOrigin: string;
|
|
7
|
+
};
|
|
8
|
+
export type SearchParamsRecord = Record<string, string | string[] | undefined>;
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { pageDocSchema } from "@avocadostudio-ai/shared";
|
package/package.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@avocadostudio-ai/site-sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./package.json": "./package.json",
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./draft": {
|
|
14
|
+
"import": "./dist/draft.js",
|
|
15
|
+
"types": "./dist/draft.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./editor": {
|
|
18
|
+
"import": "./dist/editor.js",
|
|
19
|
+
"types": "./dist/editor.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./routes": {
|
|
22
|
+
"import": "./dist/routes.js",
|
|
23
|
+
"types": "./dist/routes.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./editor-manifest": {
|
|
26
|
+
"import": "./dist/editor-manifest.js",
|
|
27
|
+
"types": "./dist/editor-manifest.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./draft/core": {
|
|
30
|
+
"import": "./dist/draft-context-core.js",
|
|
31
|
+
"types": "./dist/draft-context-core.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"./routes/core": {
|
|
34
|
+
"import": "./dist/draft-routes-core.js",
|
|
35
|
+
"types": "./dist/draft-routes-core.d.ts"
|
|
36
|
+
},
|
|
37
|
+
"./publish-handlers/json-file": {
|
|
38
|
+
"import": "./dist/publish-handlers/json-file.js",
|
|
39
|
+
"types": "./dist/publish-handlers/json-file.d.ts"
|
|
40
|
+
},
|
|
41
|
+
"./middleware": {
|
|
42
|
+
"import": "./dist/middleware.js",
|
|
43
|
+
"types": "./dist/middleware.d.ts"
|
|
44
|
+
},
|
|
45
|
+
"./navigation": {
|
|
46
|
+
"import": "./dist/navigation.js",
|
|
47
|
+
"types": "./dist/navigation.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"./page": {
|
|
50
|
+
"import": "./dist/create-site-page.js",
|
|
51
|
+
"types": "./dist/create-site-page.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"./server": {
|
|
54
|
+
"import": "./dist/server/orchestrator.js",
|
|
55
|
+
"types": "./dist/server/orchestrator.d.ts"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/avocadostudio-ai/avocado.git",
|
|
61
|
+
"directory": "packages/site-sdk"
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"registry": "https://registry.npmjs.org",
|
|
65
|
+
"access": "public"
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"dist"
|
|
69
|
+
],
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"zod": "^4.3.6",
|
|
72
|
+
"@avocadostudio-ai/blocks": "0.1.0",
|
|
73
|
+
"@avocadostudio-ai/preview-adapter": "0.1.0",
|
|
74
|
+
"@avocadostudio-ai/shared": "0.1.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"next": ">=15.0.0",
|
|
78
|
+
"react": ">=19.0.0",
|
|
79
|
+
"react-dom": ">=19.0.0",
|
|
80
|
+
"@avocadostudio-ai/orchestrator-core": "^0.1.0"
|
|
81
|
+
},
|
|
82
|
+
"peerDependenciesMeta": {
|
|
83
|
+
"@avocadostudio-ai/orchestrator-core": {
|
|
84
|
+
"optional": true
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@types/react": "^19.0.10",
|
|
89
|
+
"typescript": "^5.7.3"
|
|
90
|
+
},
|
|
91
|
+
"description": "SDK for adding Avocado Studio AI editing and live preview to a Next.js site",
|
|
92
|
+
"license": "Apache-2.0",
|
|
93
|
+
"homepage": "https://github.com/avocadostudio-ai/avocado/tree/main/packages/site-sdk#readme",
|
|
94
|
+
"bugs": {
|
|
95
|
+
"url": "https://github.com/avocadostudio-ai/avocado/issues"
|
|
96
|
+
},
|
|
97
|
+
"scripts": {
|
|
98
|
+
"build": "tsc -p tsconfig.build.json",
|
|
99
|
+
"typecheck": "tsc --noEmit"
|
|
100
|
+
},
|
|
101
|
+
"bin": {
|
|
102
|
+
"avocado-register": "./dist/cli/register.js"
|
|
103
|
+
}
|
|
104
|
+
}
|