@avocadostudio-ai/site-sdk 0.29.1 → 0.30.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/dist/blocks.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { z } from "@avocadostudio-ai/shared";
|
|
2
2
|
export { registerBlock, declareBlockCatalogue, getBlockMeta, getAllBlockMeta, getChromeTypes, isChrome, IMAGE_PLACEHOLDER, isImagePlaceholder, blockTypeToCamel, camelToBlockType, blockTypeToLower, lowerToBlockType, } from "@avocadostudio-ai/shared";
|
|
3
|
-
export type { FieldKind, FieldMeta, ListFieldMeta, ImageSpec, BlockMeta, BlockType, BlockInstance, BlockRegistration, } from "@avocadostudio-ai/shared";
|
|
3
|
+
export type { BlockCatalogueConfig, BlockCatalogueInput, BlockRole, FieldKind, FieldMeta, ListFieldMeta, ImageSpec, BlockMeta, BlockType, BlockInstance, BlockRegistration, } from "@avocadostudio-ai/shared";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DraftRouteAdapter } from "./draft-routes-core.ts";
|
|
2
2
|
import type { EditorPageInput, OnPublishFn } from "./editor-routes.ts";
|
|
3
3
|
import { type BlockManifest } from "./editor-manifest.ts";
|
|
4
|
-
import { type SiteConfig } from "@avocadostudio-ai/shared";
|
|
4
|
+
import { type BlockCatalogueInput, type SiteConfig } from "@avocadostudio-ai/shared";
|
|
5
5
|
export interface EditorApiHandlerConfig {
|
|
6
6
|
getPages: () => EditorPageInput[] | Promise<EditorPageInput[]>;
|
|
7
7
|
/**
|
|
@@ -46,8 +46,11 @@ export interface EditorApiHandlerConfig {
|
|
|
46
46
|
* Declaring it here closes that window, and passing it to both handlers is
|
|
47
47
|
* harmless: the declaration records names and the manifest is rebuilt per
|
|
48
48
|
* request.
|
|
49
|
+
*
|
|
50
|
+
* Takes the object form too — `{ sections, elements, hidden, groups }` — to
|
|
51
|
+
* shape the add-block picker. See `BlockCatalogueConfig`.
|
|
49
52
|
*/
|
|
50
|
-
blockTypes?:
|
|
53
|
+
blockTypes?: BlockCatalogueInput;
|
|
51
54
|
/**
|
|
52
55
|
* Editor origins this app allows, for hosts that configure Avocado in code
|
|
53
56
|
* rather than through `EDITOR_CORS_ORIGINS`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avocadostudio-ai/site-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -159,17 +159,17 @@
|
|
|
159
159
|
],
|
|
160
160
|
"dependencies": {
|
|
161
161
|
"zod": "^4.3.6",
|
|
162
|
-
"@avocadostudio-ai/blocks": "^0.
|
|
163
|
-
"@avocadostudio-ai/preview-adapter": "^0.
|
|
164
|
-
"@avocadostudio-ai/
|
|
165
|
-
"@avocadostudio-ai/
|
|
162
|
+
"@avocadostudio-ai/blocks": "^0.30.0",
|
|
163
|
+
"@avocadostudio-ai/preview-adapter": "^0.30.0",
|
|
164
|
+
"@avocadostudio-ai/richtext": "^0.30.0",
|
|
165
|
+
"@avocadostudio-ai/shared": "^0.30.0"
|
|
166
166
|
},
|
|
167
167
|
"peerDependencies": {
|
|
168
168
|
"better-sqlite3": ">=12.0.0",
|
|
169
169
|
"next": ">=15.0.0",
|
|
170
170
|
"react": ">=19.0.0",
|
|
171
171
|
"react-dom": ">=19.0.0",
|
|
172
|
-
"@avocadostudio-ai/orchestrator-core": "^0.
|
|
172
|
+
"@avocadostudio-ai/orchestrator-core": "^0.30.0"
|
|
173
173
|
},
|
|
174
174
|
"peerDependenciesMeta": {
|
|
175
175
|
"next": {
|