@vcp-dev/site-edit-engine 0.11.3 → 0.11.4
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/index.d.ts +43 -2
- package/dist/index.js +16 -16
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1890,6 +1890,13 @@ export interface PortableInvocationCall {
|
|
|
1890
1890
|
readonly ordinal: number;
|
|
1891
1891
|
readonly source_range: PortableInvocationSourceRange;
|
|
1892
1892
|
}
|
|
1893
|
+
export interface PortableLocalInvocationCall {
|
|
1894
|
+
readonly kind: "local";
|
|
1895
|
+
readonly source_file: string;
|
|
1896
|
+
readonly local_name: string;
|
|
1897
|
+
readonly ordinal: number;
|
|
1898
|
+
readonly source_range: PortableInvocationSourceRange;
|
|
1899
|
+
}
|
|
1893
1900
|
export type PortableInvocationAnalyzerErrorCode = "INVOCATION_PARSE_FAILED" | "INVOCATION_RENDER_GRAPH_INCOMPLETE" | "INVOCATION_TARGET_NOT_RENDERED" | "INVOCATION_TARGET_AMBIGUOUS" | "INVOCATION_PAGE_UNIT_NOT_FOUND" | "INVOCATION_PAGE_UNIT_UNSUPPORTED" | "INVOCATION_SPREAD_UNRESOLVED" | "INVOCATION_VALUE_UNRESOLVED" | "INVOCATION_DUPLICATE_PROP" | "INVOCATION_BLOCK_ID_UNRESOLVED" | "INVOCATION_ORDER_UNRESOLVED" | "INVOCATION_CHILDREN_UNRESOLVED" | "COLLECTION_SOURCE_CLOSURE_INCOMPLETE" | "COLLECTION_LIST_CONTAINER_UNPROVEN" | "COLLECTION_PAGINATION_UNPROVEN" | "COLLECTION_SEARCH_PARAMS_MISMATCH" | "COLLECTION_VIEW_UNPROVEN" | "COLLECTION_DETAIL_CONSUMER_UNPROVEN" | "COLLECTION_SCHEMA_UNPROVEN" | "COLLECTION_RECIPE_INVALID";
|
|
1894
1901
|
export interface PortableInvocationAnalyzerError {
|
|
1895
1902
|
readonly code: PortableInvocationAnalyzerErrorCode;
|
|
@@ -1908,6 +1915,31 @@ export interface PortableInvocationAnalyzerResult {
|
|
|
1908
1915
|
readonly semantic_props: Readonly<Record<string, PortableJsonValue>>;
|
|
1909
1916
|
readonly errors: readonly PortableInvocationAnalyzerError[];
|
|
1910
1917
|
}
|
|
1918
|
+
export interface PortableLocalInvocationAnalyzerInput {
|
|
1919
|
+
readonly file_path: string;
|
|
1920
|
+
readonly source: string;
|
|
1921
|
+
readonly target: {
|
|
1922
|
+
readonly kind: "local";
|
|
1923
|
+
readonly local_name: string;
|
|
1924
|
+
readonly original_block_id?: string;
|
|
1925
|
+
};
|
|
1926
|
+
/** Exact local component opening proven by the call-site lexical binding. */
|
|
1927
|
+
readonly call_source_range?: {
|
|
1928
|
+
readonly start_line: number;
|
|
1929
|
+
readonly start_column: number;
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
export interface PortableLocalInvocationAnalyzerResult {
|
|
1933
|
+
readonly complete: boolean;
|
|
1934
|
+
readonly entry_file: string;
|
|
1935
|
+
readonly target: PortableLocalInvocationAnalyzerInput["target"];
|
|
1936
|
+
readonly call: PortableLocalInvocationCall | null;
|
|
1937
|
+
readonly bindings: readonly PortableInvocationBinding[];
|
|
1938
|
+
readonly original_block_id: string | null;
|
|
1939
|
+
readonly original_order: number | null;
|
|
1940
|
+
readonly semantic_props: Readonly<Record<string, PortableJsonValue>>;
|
|
1941
|
+
readonly errors: readonly PortableInvocationAnalyzerError[];
|
|
1942
|
+
}
|
|
1911
1943
|
export interface PortablePageUnitInvocationSelectionInput {
|
|
1912
1944
|
readonly route: string;
|
|
1913
1945
|
readonly composition: SiteEditCompositionSelector;
|
|
@@ -2285,6 +2317,13 @@ export interface PortableBlockMetadataInput {
|
|
|
2285
2317
|
readonly jsx?: string;
|
|
2286
2318
|
/** A full TS/TSX source module, when the caller is normalizing a materialized file. */
|
|
2287
2319
|
readonly source?: string;
|
|
2320
|
+
/** Exact materialization entry export; omitted retains legacy single-JSX behavior. */
|
|
2321
|
+
readonly entryExport?: {
|
|
2322
|
+
readonly kind: "default";
|
|
2323
|
+
} | {
|
|
2324
|
+
readonly kind: "named";
|
|
2325
|
+
readonly name: string;
|
|
2326
|
+
};
|
|
2288
2327
|
readonly targetBlockId: string;
|
|
2289
2328
|
readonly targetOrder: number;
|
|
2290
2329
|
}
|
|
@@ -2576,6 +2615,8 @@ interface ProvenBlockCall {
|
|
|
2576
2615
|
structuralPath: string;
|
|
2577
2616
|
sourceRange: SourceRange;
|
|
2578
2617
|
};
|
|
2618
|
+
/** Equivalent conditional call sites, not simultaneous render occurrences. */
|
|
2619
|
+
alternativeLocators?: readonly ProvenBlockCall["callLocator"][];
|
|
2579
2620
|
}
|
|
2580
2621
|
interface ProvenBlockOwner {
|
|
2581
2622
|
kind: "route-member" | "component-definition";
|
|
@@ -2650,7 +2691,7 @@ export interface PortableBlockSelection {
|
|
|
2650
2691
|
readonly content_hash: string;
|
|
2651
2692
|
readonly source_range: PortableInvocationSourceRange;
|
|
2652
2693
|
readonly owner: ResolvedPageBlock["descriptor"]["owner"];
|
|
2653
|
-
readonly call_chain: readonly PortableInvocationCall[];
|
|
2694
|
+
readonly call_chain: readonly (PortableInvocationCall | PortableLocalInvocationCall)[];
|
|
2654
2695
|
readonly strategy: "reuse-entry" | "extract-jsx" | "managed-thin-entry";
|
|
2655
2696
|
readonly entry_file: string;
|
|
2656
2697
|
readonly entry_export: {
|
|
@@ -2659,7 +2700,7 @@ export interface PortableBlockSelection {
|
|
|
2659
2700
|
readonly kind: "named";
|
|
2660
2701
|
readonly name: string;
|
|
2661
2702
|
};
|
|
2662
|
-
readonly invocation: PortableInvocationAnalyzerResult | null;
|
|
2703
|
+
readonly invocation: PortableInvocationAnalyzerResult | PortableLocalInvocationAnalyzerResult | null;
|
|
2663
2704
|
}
|
|
2664
2705
|
export interface ResolvePortableBlockSelectionInput {
|
|
2665
2706
|
readonly binding: ResolvedPageBlock;
|