@vcp-dev/site-edit-engine 0.6.10 → 0.7.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/README.md +5 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -11
- package/dist/internal/protocol/capability.d.ts +2 -0
- package/dist/internal/protocol/error.d.ts +2 -0
- package/dist/internal/protocol/event.d.ts +8 -4
- package/dist/internal/protocol/operation.d.ts +3 -1
- package/dist/internal/protocol/render.d.ts +4 -1
- package/dist/next-app-router.d.ts +2 -1
- package/dist/next-app-router.js +1 -1
- package/dist/page-template-managed-source.d.ts +59 -0
- package/dist/preview-runtime.d.ts +313 -28
- package/dist/runtime.d.ts +44 -15
- package/dist/types.d.ts +32 -20
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,13 +15,16 @@ npm install @vcp-dev/contracts @vcp-dev/site-edit-engine
|
|
|
15
15
|
|
|
16
16
|
## 主入口能力
|
|
17
17
|
|
|
18
|
-
主入口 `@vcp-dev/site-edit-engine`
|
|
18
|
+
主入口 `@vcp-dev/site-edit-engine` 暴露 runtime facade,以及 runtime 真正复用的样式策略扫描和
|
|
19
|
+
文件历史原语:
|
|
19
20
|
|
|
20
21
|
- `createSiteEditEngineRuntime`
|
|
21
22
|
- `SnapshotSiteEditEngineRuntime`
|
|
22
23
|
- `createPreviewSiteEditEngineRuntime`
|
|
23
24
|
- `PreviewFileSystemSiteEditEngineRuntime`
|
|
24
|
-
-
|
|
25
|
+
- `scanSiteEditThemeStyleViolations` / `SITE_EDIT_RAW_COLOR_LITERAL_RE`
|
|
26
|
+
- `openFileHistoryStore` / `FileHistoryStoreError`
|
|
27
|
+
- 相关 runtime、style policy 与 file history public types
|
|
25
28
|
|
|
26
29
|
## 子路径
|
|
27
30
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ export { scanSiteEditThemeStyleViolations, SITE_EDIT_RAW_COLOR_LITERAL_RE, } fro
|
|
|
4
4
|
export type { SiteEditColorMixPolicy, SiteEditThemeStyleScanOptions, SiteEditThemeStyleViolations, } from "./materialization-style-policy.js";
|
|
5
5
|
export type { PreviewSiteEditEngineRuntime, PreviewSiteEditEngineRuntimeOptions, SiteEditProjectFileSystem, SiteEditEngineRoute, SiteEditEngineHistoryStatus, SiteEditEngineRuntime, SiteEditEngineRuntimeOptions, SiteEditPlanOperationResult, SiteEditSnapshotFile, } from "./types.js";
|
|
6
6
|
export { FileHistoryStoreError, openFileHistoryStore, } from "./history/index.js";
|
|
7
|
+
export { assertNoPageTemplateSafeNameCollision, computeManagedPageTemplatePaths, computePageTemplateRouteKey, computePageTemplateSafeName, parseManagedPageTemplateManifest, resolveManagedPageTemplateComposition, scanSiteEditCompositionsFromFiles, PageTemplateManagedSourceError, } from "./page-template-managed-source.js";
|
|
8
|
+
export type { ManagedPageTemplateCompositionResolution, ManagedPageTemplatePaths, PageTemplateCompositionSelector, PageTemplateManagedSourceErrorCode, PageTemplateManagedSourceErrorDetails, SiteEditEngineComposition, SiteEditFileSystem, SiteEditManagedSourceFiles, } from "./page-template-managed-source.js";
|
|
7
9
|
export type { FileHistoryAppendInput, FileHistoryBlobInput, FileHistoryBlobRef, FileHistoryEntryRecord, FileHistoryIndexSnapshot, FileHistoryIndexTransition, FileHistoryStageResult, FileHistoryStore, FileHistoryStoreErrorCode, FileHistoryStoreLimits, FileHistoryStoreOptions, FileHistoryTransactionJournal, FileHistoryTransactionJournalFile, FileHistoryUndoRedoResult, JsonValue, Sha256Digest, } from "./history/index.js";
|