@vcp-dev/site-edit-engine 0.11.4 → 0.11.5

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 CHANGED
@@ -24,6 +24,7 @@ npm install @vcp-dev/contracts @vcp-dev/site-edit-engine
24
24
  - `PreviewFileSystemSiteEditEngineRuntime`
25
25
  - `scanSiteEditThemeStyleViolations` / `SITE_EDIT_RAW_COLOR_LITERAL_RE`
26
26
  - `parseSourceModule` / `resolveImportBase`:复用引擎的 TSX 解析与本地 import 路径规则,公开类型由独立 facade 定义,不暴露 `internal/*` 模块路径。
27
+ - `provenRecordThumbnailRanges`:只读 AST 分析,返回可证明来自 `record.thumbnail` 数组的 JSX 表达式范围(`start:end`)。调用方仍须验证集合视图身份和完整记录媒体覆盖;范围集合不授予执行、写入或媒体下载权限。
27
28
  - `openFileHistoryStore` / `FileHistoryStoreError`
28
29
  - 相关 runtime、style policy 与 file history public types
29
30
 
package/dist/index.d.ts CHANGED
@@ -2692,7 +2692,9 @@ export interface PortableBlockSelection {
2692
2692
  readonly source_range: PortableInvocationSourceRange;
2693
2693
  readonly owner: ResolvedPageBlock["descriptor"]["owner"];
2694
2694
  readonly call_chain: readonly (PortableInvocationCall | PortableLocalInvocationCall)[];
2695
- readonly strategy: "reuse-entry" | "extract-jsx" | "managed-thin-entry";
2695
+ readonly strategy: "reuse-entry" | "extract-jsx" | "managed-thin-entry" | "collection-container";
2696
+ /** Only set after proving the selected root is the container's sole view. */
2697
+ readonly collection_container_file?: string;
2696
2698
  readonly entry_file: string;
2697
2699
  readonly entry_export: {
2698
2700
  readonly kind: "default";
@@ -2889,6 +2891,8 @@ export type PageBlockSnapshotResolution = BlockResolution & {
2889
2891
  index?: PageBlockIndex;
2890
2892
  };
2891
2893
  export declare function resolvePageBlockFromSnapshot(input: BlockSnapshotInput): Promise<PageBlockSnapshotResolution>;
2894
+ /** Exact JSX ranges proven to read the captured record.thumbnail array only. */
2895
+ export declare function provenRecordThumbnailRanges(source: string): ReadonlySet<string>;
2892
2896
  export type PortableMediaReferenceKind = "src" | "srcset" | "poster" | "thumbnail" | "object" | "array-item" | "import" | "manifest";
2893
2897
  export type PortableMediaReferenceSource = "jsx-attribute" | "object-property" | "array-item" | "import" | "media-manifest";
2894
2898
  export interface PortableMediaSourceRange {