@vcp-dev/site-edit-engine 0.10.1 → 0.10.2
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.
|
@@ -364,7 +364,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
364
364
|
refreshSourceForKey(key: string, composition: SiteEditCompositionSelector): Promise<void>;
|
|
365
365
|
executeOperation(request: Parameters<PreviewSiteEditEngineRuntime["executeOperation"]>[0], mutationContext?: SiteEditMutationContext): Promise<SiteEditCommandSuccess<{
|
|
366
366
|
requestId: string;
|
|
367
|
-
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
367
|
+
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
368
368
|
composition: {
|
|
369
369
|
routeId: string;
|
|
370
370
|
effectiveTemplateId?: string | undefined;
|
|
@@ -419,7 +419,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
419
419
|
} | undefined;
|
|
420
420
|
}> | 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<{
|
|
421
421
|
requestId: string;
|
|
422
|
-
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
422
|
+
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
423
423
|
composition: {
|
|
424
424
|
routeId: string;
|
|
425
425
|
effectiveTemplateId?: string | undefined;
|
|
@@ -485,7 +485,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
485
485
|
data: {
|
|
486
486
|
affectedFiles?: string[] | undefined;
|
|
487
487
|
requestId: string;
|
|
488
|
-
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
488
|
+
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
489
489
|
composition: {
|
|
490
490
|
routeId: string;
|
|
491
491
|
effectiveTemplateId?: string | undefined;
|
|
@@ -530,7 +530,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
530
530
|
};
|
|
531
531
|
data: {
|
|
532
532
|
requestId: string;
|
|
533
|
-
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
533
|
+
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
534
534
|
composition: {
|
|
535
535
|
routeId: string;
|
|
536
536
|
effectiveTemplateId?: string | undefined;
|
|
@@ -570,7 +570,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
570
570
|
};
|
|
571
571
|
data: {
|
|
572
572
|
requestId: string;
|
|
573
|
-
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
573
|
+
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
574
574
|
composition: {
|
|
575
575
|
routeId: string;
|
|
576
576
|
effectiveTemplateId?: string | undefined;
|
|
@@ -638,7 +638,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
638
638
|
};
|
|
639
639
|
data: {
|
|
640
640
|
requestId: string;
|
|
641
|
-
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
641
|
+
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
642
642
|
composition: {
|
|
643
643
|
routeId: string;
|
|
644
644
|
effectiveTemplateId?: string | undefined;
|
|
@@ -678,7 +678,7 @@ export declare class PreviewFileSystemSiteEditEngineRuntime implements PreviewSi
|
|
|
678
678
|
};
|
|
679
679
|
data: {
|
|
680
680
|
requestId: string;
|
|
681
|
-
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
681
|
+
kind: "set-props" | "insert-child" | "update-text" | "update-array-item" | "remove-node" | "replace-node" | "move-node" | "set-class-name-source" | "apply-style-draft" | "source-edit" | "insert-page-resource" | "delete-page-source";
|
|
682
682
|
composition: {
|
|
683
683
|
routeId: string;
|
|
684
684
|
effectiveTemplateId?: string | undefined;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
SiteEditInstrumentationOptions,
|
|
3
|
-
SiteEditInstrumentationResult,
|
|
4
|
-
} from "./site-edit-instrumentation.js";
|
|
5
|
-
|
|
6
|
-
declare function siteEditInstrumentationLoader(
|
|
7
|
-
this: {
|
|
8
|
-
cacheable?: () => void;
|
|
9
|
-
async?: () => (
|
|
10
|
-
error?: Error | null,
|
|
11
|
-
code?: string,
|
|
12
|
-
inputSourceMap?: unknown,
|
|
13
|
-
) => void;
|
|
14
|
-
resourcePath?: string;
|
|
15
|
-
getOptions?: () => { projectRoot?: string };
|
|
16
|
-
},
|
|
17
|
-
source: string,
|
|
18
|
-
inputSourceMap?: unknown,
|
|
19
|
-
): void;
|
|
20
|
-
|
|
21
|
-
declare namespace siteEditInstrumentationLoader {
|
|
22
|
-
function instrumentSiteEditRuntimeAttributes(
|
|
23
|
-
options: SiteEditInstrumentationOptions,
|
|
24
|
-
): SiteEditInstrumentationResult;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export = siteEditInstrumentationLoader;
|
|
1
|
+
import type {
|
|
2
|
+
SiteEditInstrumentationOptions,
|
|
3
|
+
SiteEditInstrumentationResult,
|
|
4
|
+
} from "./site-edit-instrumentation.js";
|
|
5
|
+
|
|
6
|
+
declare function siteEditInstrumentationLoader(
|
|
7
|
+
this: {
|
|
8
|
+
cacheable?: () => void;
|
|
9
|
+
async?: () => (
|
|
10
|
+
error?: Error | null,
|
|
11
|
+
code?: string,
|
|
12
|
+
inputSourceMap?: unknown,
|
|
13
|
+
) => void;
|
|
14
|
+
resourcePath?: string;
|
|
15
|
+
getOptions?: () => { projectRoot?: string };
|
|
16
|
+
},
|
|
17
|
+
source: string,
|
|
18
|
+
inputSourceMap?: unknown,
|
|
19
|
+
): void;
|
|
20
|
+
|
|
21
|
+
declare namespace siteEditInstrumentationLoader {
|
|
22
|
+
function instrumentSiteEditRuntimeAttributes(
|
|
23
|
+
options: SiteEditInstrumentationOptions,
|
|
24
|
+
): SiteEditInstrumentationResult;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export = siteEditInstrumentationLoader;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import siteEditInstrumentationLoader = require("./site-edit-instrumentation-loader.cjs");
|
|
2
|
-
|
|
3
|
-
export = siteEditInstrumentationLoader;
|
|
1
|
+
import siteEditInstrumentationLoader = require("./site-edit-instrumentation-loader.cjs");
|
|
2
|
+
|
|
3
|
+
export = siteEditInstrumentationLoader;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vcp-dev/site-edit-engine",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@babel/parser": "^7.29.3",
|
|
61
61
|
"@babel/traverse": "^7.29.0",
|
|
62
62
|
"@babel/types": "^7.29.0",
|
|
63
|
-
"@vcp-dev/contracts": "0.10.
|
|
63
|
+
"@vcp-dev/contracts": "0.10.2",
|
|
64
64
|
"yaml": "^2.9.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|