@vcp-dev/site-edit-engine 0.11.36 → 0.11.37
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 +29 -7
- package/dist/index.js +16 -16
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,28 @@ type SiteEditSourceModuleResult = {
|
|
|
25
25
|
};
|
|
26
26
|
export declare function parseSourceModule(file: string, source: string): SiteEditSourceModuleResult;
|
|
27
27
|
export declare function resolveImportBase(fromFile: string, specifier: string): string;
|
|
28
|
+
/** Proves finite navigation targets without consulting captured record values.
|
|
29
|
+
* Record URLs are destination-site identities and cannot attest a missing route. */
|
|
30
|
+
export declare function inspectPortableSourceNavigation(file: string, source: string): {
|
|
31
|
+
complete: boolean;
|
|
32
|
+
targets: string[];
|
|
33
|
+
};
|
|
34
|
+
/** Includes external/dynamic module access, unlike the local ownership graph. */
|
|
35
|
+
export declare function portableExecutionImports(file: string, source: string): string[] | null;
|
|
36
|
+
/** A binary import has no portable module at the destination. Replace its
|
|
37
|
+
* proven default binding with the managed URL; object spreads/dimensions need
|
|
38
|
+
* additional image metadata and are deliberately rejected before mutations. */
|
|
39
|
+
export declare function planPortableModuleAsset(input: {
|
|
40
|
+
file: string;
|
|
41
|
+
source: string;
|
|
42
|
+
start: number;
|
|
43
|
+
end: number;
|
|
44
|
+
url: string;
|
|
45
|
+
}): Array<{
|
|
46
|
+
start: number;
|
|
47
|
+
end: number;
|
|
48
|
+
replacement: string;
|
|
49
|
+
}> | null;
|
|
28
50
|
type ComponentI18nHostCompatibilityResult = {
|
|
29
51
|
ok: true;
|
|
30
52
|
} | {
|
|
@@ -1105,7 +1127,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1105
1127
|
refreshSourceForKey(key: string, composition: SiteEditCompositionSelector): Promise<void>;
|
|
1106
1128
|
executeOperation(request: Parameters<PreviewSiteEditEngineRuntime["executeOperation"]>[0], mutationContext?: SiteEditMutationContext): Promise<SiteEditCommandSuccess<{
|
|
1107
1129
|
requestId: string;
|
|
1108
|
-
kind: "
|
|
1130
|
+
kind: "insert-child" | "set-props" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1109
1131
|
composition: {
|
|
1110
1132
|
routeId: string;
|
|
1111
1133
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1171,7 +1193,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1171
1193
|
} | undefined;
|
|
1172
1194
|
}> | import("@vcp-dev/contracts").SiteEditCommandFailure<"VERSION_STALE" | "RECOVERY_REQUIRED" | "NODE_NOT_FOUND" | "HOME_PAGE_LOCKED" | "ROUTE_NOT_FOUND" | "CAPABILITY_REJECTED" | "CONSTRAINT_VIOLATED" | "INVALID_PARAMS" | "PLAN_FAILED" | "TRANSACTION_PREFLIGHT_FAILED" | "ROUTE_REBUILD_FAILED" | "HISTORY_COMMIT_FAILED" | "MATERIALIZATION_CONFLICT" | "MATERIALIZATION_REJECTED" | "MUTATION_ASSERTION_REQUIRED" | "MUTATION_ASSERTION_INVALID" | "AST_PARSE_ERROR" | "UNSUPPORTED_OPERATION" | "LOCATOR_FAILED" | "INVALID_TARGET" | "WRITE_IO_ERROR" | "CONCURRENT_MODIFIED" | "ROLLBACK_FAILED" | "RECOVERY_PERSIST_FAILED" | "MUTATION_SESSION_REQUIRED" | "LEASE_ASSERTION_INVALID" | "LEASE_ASSERTION_EXPIRED" | "LEASE_ASSERTION_SCOPE_MISMATCH" | "CROSS_PAGE_MOVE_UNSUPPORTED" | "INTERNAL_ERROR", unknown, never, Partial<{
|
|
1173
1195
|
requestId: string;
|
|
1174
|
-
kind: "
|
|
1196
|
+
kind: "insert-child" | "set-props" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1175
1197
|
composition: {
|
|
1176
1198
|
routeId: string;
|
|
1177
1199
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1249,7 +1271,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1249
1271
|
data: {
|
|
1250
1272
|
affectedFiles?: string[] | undefined;
|
|
1251
1273
|
requestId: string;
|
|
1252
|
-
kind: "
|
|
1274
|
+
kind: "insert-child" | "set-props" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1253
1275
|
composition: {
|
|
1254
1276
|
routeId: string;
|
|
1255
1277
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1301,7 +1323,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1301
1323
|
};
|
|
1302
1324
|
data: {
|
|
1303
1325
|
requestId: string;
|
|
1304
|
-
kind: "
|
|
1326
|
+
kind: "insert-child" | "set-props" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1305
1327
|
composition: {
|
|
1306
1328
|
routeId: string;
|
|
1307
1329
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1348,7 +1370,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1348
1370
|
};
|
|
1349
1371
|
data: {
|
|
1350
1372
|
requestId: string;
|
|
1351
|
-
kind: "
|
|
1373
|
+
kind: "insert-child" | "set-props" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1352
1374
|
composition: {
|
|
1353
1375
|
routeId: string;
|
|
1354
1376
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1427,7 +1449,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1427
1449
|
};
|
|
1428
1450
|
data: {
|
|
1429
1451
|
requestId: string;
|
|
1430
|
-
kind: "
|
|
1452
|
+
kind: "insert-child" | "set-props" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1431
1453
|
composition: {
|
|
1432
1454
|
routeId: string;
|
|
1433
1455
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1474,7 +1496,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1474
1496
|
};
|
|
1475
1497
|
data: {
|
|
1476
1498
|
requestId: string;
|
|
1477
|
-
kind: "
|
|
1499
|
+
kind: "insert-child" | "set-props" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1478
1500
|
composition: {
|
|
1479
1501
|
routeId: string;
|
|
1480
1502
|
effectiveTemplateId?: string | undefined;
|