@vcp-dev/site-edit-engine 0.11.40 → 0.11.42
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 +1 -1
- package/dist/index.d.ts +17 -13
- package/dist/index.js +18 -18
- package/dist/internal/protocol/capability.d.ts +1 -1
- package/dist/internal/protocol/error.d.ts +2 -2
- package/dist/internal/protocol/event.d.ts +1 -1
- package/dist/internal/protocol/operation.d.ts +1 -1
- package/dist/internal/protocol/render.d.ts +1 -1
- package/dist/runtime-sync.d.ts +1 -1
- package/dist/site-edit-instrumentation-loader.cjs +1 -1
- package/dist/site-edit-instrumentation-loader.d.cts +1 -1
- package/dist/site-edit-instrumentation.d.ts +2 -0
- package/dist/webpack-loader.cjs +1 -1
- package/package.json +3 -8
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { File as File$1 } from '@babel/types';
|
|
4
|
-
import { BlockDirectory, BlockRenderRef, GeneratedSiteCapabilities, PortableAssetBinding, PortableCollectionRecipeFacts, PortableCollectionViewReference, PortableInvocationBinding, PortableJsonValue, PortableResourceAsset, ResolvedField, SiteEditClassNameSourceStyleContext, SiteEditCommandSuccess, SiteEditCompositionContext, SiteEditCompositionSelector, SiteEditEvent, SiteEditGetClassNameSourceCommandResult, SiteEditGetClassNameSourceResult, SiteEditMaterialization, SiteEditMaterializationExport, SiteEditMutationContext, SiteEditObjectEditContext, SiteEditOperationCommandResult, SiteEditOperationRequest, SiteEditOperationSelectionRef, SiteEditPageBlockDescriptor, SiteEditPageBlockPosition, SiteEditPageBlockTarget, SiteEditPageCompositionErrorCode, SiteEditPatchPlan, SiteEditRenderDocument, SiteEditResolveSourceLocationInput, SiteEditSourceFileResponse, SiteEditSourceLocation, SiteEditSourceTreeResponse, SnapshotManifest } from '@vcp-dev/contracts';
|
|
4
|
+
import { BlockDirectory, BlockRenderRef, GeneratedSiteCapabilities, PortableAssetBinding, PortableCollectionRecipeFacts, PortableCollectionViewReference, PortableInvocationBinding, PortableJsonValue, PortableResourceAsset, ResolvedField, SiteEditClassNameSourceStyleContext, SiteEditCommandSuccess, SiteEditCompositionContext, SiteEditCompositionSelector, SiteEditEvent, SiteEditGetClassNameSourceCommandResult, SiteEditGetClassNameSourceResult, SiteEditMaterialization, SiteEditMaterializationExport, SiteEditMutationContext, SiteEditObjectEditContext, SiteEditOperationCommandResult, SiteEditOperationRequest, SiteEditOperationSelectionRef, SiteEditPageBlockDescriptor, SiteEditPageBlockPosition, SiteEditPageBlockTarget, SiteEditPageCompositionErrorCode, SiteEditPatchPlan, SiteEditRenderDocument, SiteEditResolveSourceLocationInput, SiteEditSourceFileResponse, SiteEditSourceLocation, SiteEditSourceTreeResponse, SnapshotManifest } from '@vcp-dev/platform-shared/contracts';
|
|
5
5
|
|
|
6
6
|
type SiteEditSourceModuleResult = {
|
|
7
7
|
ok: true;
|
|
@@ -69,6 +69,8 @@ type SiteEditInstrumentationOptions = {
|
|
|
69
69
|
source: string;
|
|
70
70
|
file: string;
|
|
71
71
|
projectRoot?: string;
|
|
72
|
+
/** Platform-controlled preview compilation; emits actual Babel opening ranges. */
|
|
73
|
+
sourceLocations?: boolean;
|
|
72
74
|
attributes?: SiteEditRuntimeAttributes;
|
|
73
75
|
};
|
|
74
76
|
type SiteEditInstrumentedElement = {
|
|
@@ -553,7 +555,7 @@ export declare class SnapshotSiteEditEngineRuntime implements SiteEditEngineRunt
|
|
|
553
555
|
};
|
|
554
556
|
resolution: {
|
|
555
557
|
status: "resolved";
|
|
556
|
-
value: import("@vcp-dev/contracts").SiteEditOperationValue;
|
|
558
|
+
value: import("@vcp-dev/platform-shared/contracts").SiteEditOperationValue;
|
|
557
559
|
} | {
|
|
558
560
|
status: "undefined";
|
|
559
561
|
} | {
|
|
@@ -633,7 +635,7 @@ export declare class SnapshotSiteEditEngineRuntime implements SiteEditEngineRunt
|
|
|
633
635
|
routeId: string;
|
|
634
636
|
effectiveTemplateId?: string | undefined;
|
|
635
637
|
};
|
|
636
|
-
nodes: import("@vcp-dev/contracts").SiteEditSourceTreeNode[];
|
|
638
|
+
nodes: import("@vcp-dev/platform-shared/contracts").SiteEditSourceTreeNode[];
|
|
637
639
|
totalFiles: number;
|
|
638
640
|
defaultPath?: string | undefined;
|
|
639
641
|
truncated?: {
|
|
@@ -936,7 +938,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
936
938
|
};
|
|
937
939
|
resolution: {
|
|
938
940
|
status: "resolved";
|
|
939
|
-
value: import("@vcp-dev/contracts").SiteEditOperationValue;
|
|
941
|
+
value: import("@vcp-dev/platform-shared/contracts").SiteEditOperationValue;
|
|
940
942
|
} | {
|
|
941
943
|
status: "undefined";
|
|
942
944
|
} | {
|
|
@@ -1030,7 +1032,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1030
1032
|
routeId: string;
|
|
1031
1033
|
effectiveTemplateId?: string | undefined;
|
|
1032
1034
|
};
|
|
1033
|
-
nodes: import("@vcp-dev/contracts").SiteEditSourceTreeNode[];
|
|
1035
|
+
nodes: import("@vcp-dev/platform-shared/contracts").SiteEditSourceTreeNode[];
|
|
1034
1036
|
totalFiles: number;
|
|
1035
1037
|
defaultPath?: string | undefined;
|
|
1036
1038
|
truncated?: {
|
|
@@ -1105,7 +1107,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1105
1107
|
refreshSourceForKey(key: string, composition: SiteEditCompositionSelector): Promise<void>;
|
|
1106
1108
|
executeOperation(request: Parameters<PreviewSiteEditEngineRuntime["executeOperation"]>[0], mutationContext?: SiteEditMutationContext): Promise<SiteEditCommandSuccess<{
|
|
1107
1109
|
requestId: string;
|
|
1108
|
-
kind: "
|
|
1110
|
+
kind: "update-text" | "update-array-item" | "remove-node" | "insert-child" | "replace-node" | "move-node" | "set-class-name-source" | "set-props" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1109
1111
|
composition: {
|
|
1110
1112
|
routeId: string;
|
|
1111
1113
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1169,9 +1171,9 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1169
1171
|
preserved_shared_files: string[];
|
|
1170
1172
|
warnings: string[];
|
|
1171
1173
|
} | undefined;
|
|
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<{
|
|
1174
|
+
}> | import("@vcp-dev/platform-shared/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
1175
|
requestId: string;
|
|
1174
|
-
kind: "
|
|
1176
|
+
kind: "update-text" | "update-array-item" | "remove-node" | "insert-child" | "replace-node" | "move-node" | "set-class-name-source" | "set-props" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1175
1177
|
composition: {
|
|
1176
1178
|
routeId: string;
|
|
1177
1179
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1249,7 +1251,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1249
1251
|
data: {
|
|
1250
1252
|
affectedFiles?: string[] | undefined;
|
|
1251
1253
|
requestId: string;
|
|
1252
|
-
kind: "
|
|
1254
|
+
kind: "update-text" | "update-array-item" | "remove-node" | "insert-child" | "replace-node" | "move-node" | "set-class-name-source" | "set-props" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1253
1255
|
composition: {
|
|
1254
1256
|
routeId: string;
|
|
1255
1257
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1301,7 +1303,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1301
1303
|
};
|
|
1302
1304
|
data: {
|
|
1303
1305
|
requestId: string;
|
|
1304
|
-
kind: "
|
|
1306
|
+
kind: "update-text" | "update-array-item" | "remove-node" | "insert-child" | "replace-node" | "move-node" | "set-class-name-source" | "set-props" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1305
1307
|
composition: {
|
|
1306
1308
|
routeId: string;
|
|
1307
1309
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1348,7 +1350,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1348
1350
|
};
|
|
1349
1351
|
data: {
|
|
1350
1352
|
requestId: string;
|
|
1351
|
-
kind: "
|
|
1353
|
+
kind: "update-text" | "update-array-item" | "remove-node" | "insert-child" | "replace-node" | "move-node" | "set-class-name-source" | "set-props" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1352
1354
|
composition: {
|
|
1353
1355
|
routeId: string;
|
|
1354
1356
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1427,7 +1429,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1427
1429
|
};
|
|
1428
1430
|
data: {
|
|
1429
1431
|
requestId: string;
|
|
1430
|
-
kind: "
|
|
1432
|
+
kind: "update-text" | "update-array-item" | "remove-node" | "insert-child" | "replace-node" | "move-node" | "set-class-name-source" | "set-props" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1431
1433
|
composition: {
|
|
1432
1434
|
routeId: string;
|
|
1433
1435
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1474,7 +1476,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
1474
1476
|
};
|
|
1475
1477
|
data: {
|
|
1476
1478
|
requestId: string;
|
|
1477
|
-
kind: "
|
|
1479
|
+
kind: "update-text" | "update-array-item" | "remove-node" | "insert-child" | "replace-node" | "move-node" | "set-class-name-source" | "set-props" | "set-link-target" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
1478
1480
|
composition: {
|
|
1479
1481
|
routeId: string;
|
|
1480
1482
|
effectiveTemplateId?: string | undefined;
|
|
@@ -2069,6 +2071,8 @@ export declare function readPortableBlockLocalAssetChunk(input: {
|
|
|
2069
2071
|
* read authority and deliberately returns no partial source on failure.
|
|
2070
2072
|
*/
|
|
2071
2073
|
export declare function exportPortableBlockFromSnapshot(input: PortableBlockExportInput): Promise<PortableBlockExportResult>;
|
|
2074
|
+
export declare function computePortableSnapshotContentDigest(files: ReadonlyMap<string, PortableSourceFileContent>): string;
|
|
2075
|
+
export declare function loadPackagedHostCapabilities(): GeneratedSiteCapabilities | null;
|
|
2072
2076
|
export interface PortableInvocationAnalyzerInput {
|
|
2073
2077
|
readonly file_path: string;
|
|
2074
2078
|
readonly source: string;
|