mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Empty Nx library at frontend/libs/components/pagescene/ mirroring the @storyteller/ui-pagedraw shape (package.json with development export, tsconfig.lib.json with workspace lib references, vite.config.ts). Defines the platform-abstraction surface PageSceneAdapter: - Generation enqueue (model/provider/prompt/tokens/aspect/resolution) - Scene I/O (saveScene, loadScene, fetchAsset, host CDN/API getters) - Slot renderers for host-owned modals (renderAssetBrowser, renderSceneLoader) - Optional event hooks (onError, onSceneSaved, onSceneTitleChange, onEnqueueMeta, onSelectionChange, onSceneDirty) - Tab-cache integration (cacheJsonString + onSceneSerialized) so the artcraft useTabStore can roundtrip serialized scene JSON without the lib knowing about tabs Library code is empty for now -- file migrations (PageSceneStore + engine + comps + actions + hooks etc.) land in follow-up commits on this branch.
18 lines
398 B
JSON
18 lines
398 B
JSON
{
|
|
"name": "@storyteller/ui-pagescene",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"development": "./src/index.ts",
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"default": "./dist/index.js"
|
|
}
|
|
}
|
|
}
|