@vcp-dev/site-edit-engine 0.11.39 → 0.11.41
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 +7 -29
- package/dist/index.js +18 -18
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -25,28 +25,6 @@ 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;
|
|
50
28
|
type ComponentI18nHostCompatibilityResult = {
|
|
51
29
|
ok: true;
|
|
52
30
|
} | {
|
|
@@ -1127,7 +1105,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1127
1105
|
refreshSourceForKey(key: string, composition: SiteEditCompositionSelector): Promise<void>;
|
|
1128
1106
|
executeOperation(request: Parameters<PreviewSiteEditEngineRuntime["executeOperation"]>[0], mutationContext?: SiteEditMutationContext): Promise<SiteEditCommandSuccess<{
|
|
1129
1107
|
requestId: string;
|
|
1130
|
-
kind: "
|
|
1108
|
+
kind: "set-props" | "insert-child" | "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";
|
|
1131
1109
|
composition: {
|
|
1132
1110
|
routeId: string;
|
|
1133
1111
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1193,7 +1171,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1193
1171
|
} | undefined;
|
|
1194
1172
|
}> | 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<{
|
|
1195
1173
|
requestId: string;
|
|
1196
|
-
kind: "
|
|
1174
|
+
kind: "set-props" | "insert-child" | "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";
|
|
1197
1175
|
composition: {
|
|
1198
1176
|
routeId: string;
|
|
1199
1177
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1271,7 +1249,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1271
1249
|
data: {
|
|
1272
1250
|
affectedFiles?: string[] | undefined;
|
|
1273
1251
|
requestId: string;
|
|
1274
|
-
kind: "
|
|
1252
|
+
kind: "set-props" | "insert-child" | "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";
|
|
1275
1253
|
composition: {
|
|
1276
1254
|
routeId: string;
|
|
1277
1255
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1323,7 +1301,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1323
1301
|
};
|
|
1324
1302
|
data: {
|
|
1325
1303
|
requestId: string;
|
|
1326
|
-
kind: "
|
|
1304
|
+
kind: "set-props" | "insert-child" | "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";
|
|
1327
1305
|
composition: {
|
|
1328
1306
|
routeId: string;
|
|
1329
1307
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1370,7 +1348,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1370
1348
|
};
|
|
1371
1349
|
data: {
|
|
1372
1350
|
requestId: string;
|
|
1373
|
-
kind: "
|
|
1351
|
+
kind: "set-props" | "insert-child" | "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";
|
|
1374
1352
|
composition: {
|
|
1375
1353
|
routeId: string;
|
|
1376
1354
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1449,7 +1427,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1449
1427
|
};
|
|
1450
1428
|
data: {
|
|
1451
1429
|
requestId: string;
|
|
1452
|
-
kind: "
|
|
1430
|
+
kind: "set-props" | "insert-child" | "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";
|
|
1453
1431
|
composition: {
|
|
1454
1432
|
routeId: string;
|
|
1455
1433
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1496,7 +1474,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1496
1474
|
};
|
|
1497
1475
|
data: {
|
|
1498
1476
|
requestId: string;
|
|
1499
|
-
kind: "
|
|
1477
|
+
kind: "set-props" | "insert-child" | "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";
|
|
1500
1478
|
composition: {
|
|
1501
1479
|
routeId: string;
|
|
1502
1480
|
effectiveTemplateId?: string | undefined;
|