@trojanbox-vcp-test/contracts 0.1.0 → 0.2.0
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 +1493 -132
- package/dist/index.js +62 -2349
- package/dist/site-edit-class-name-source.d.ts +62 -77
- package/dist/site-edit-command-result.d.ts +50 -0
- package/dist/site-edit-event.d.ts +1 -22
- package/dist/site-edit-operation.d.ts +56 -24
- package/dist/site-edit-render-document.d.ts +0 -304
- package/package.json +1 -1
- package/dist/site-edit-capability.js +0 -49
- package/dist/site-edit-class-name-source.js +0 -118
- package/dist/site-edit-event.js +0 -41
- package/dist/site-edit-identity.js +0 -33
- package/dist/site-edit-operation.js +0 -379
- package/dist/site-edit-patch-plan.js +0 -62
- package/dist/site-edit-render-document.js +0 -236
- package/dist/user-facing-copy.js +0 -56
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type SiteEditCommandResult, type SiteEditCommandSuccess } from "./site-edit-command-result.js";
|
|
2
3
|
export declare const SiteEditClassNameSourceRangeSchema: z.ZodObject<{
|
|
3
4
|
start: z.ZodNumber;
|
|
4
5
|
end: z.ZodNumber;
|
|
@@ -128,6 +129,63 @@ export declare const SiteEditGetClassNameSourceResultSchema: z.ZodObject<{
|
|
|
128
129
|
}, z.core.$strip>>;
|
|
129
130
|
}, z.core.$strip>;
|
|
130
131
|
export type SiteEditGetClassNameSourceResult = z.infer<typeof SiteEditGetClassNameSourceResultSchema>;
|
|
132
|
+
export declare const SiteEditGetClassNameSourceCommandResultSchema: z.ZodObject<{
|
|
133
|
+
ok: z.ZodLiteral<true>;
|
|
134
|
+
data: z.ZodObject<{
|
|
135
|
+
key: z.ZodString;
|
|
136
|
+
routeId: z.ZodString;
|
|
137
|
+
filePath: z.ZodString;
|
|
138
|
+
componentName: z.ZodString;
|
|
139
|
+
sourceKind: z.ZodEnum<{
|
|
140
|
+
missing: "missing";
|
|
141
|
+
stringLiteral: "stringLiteral";
|
|
142
|
+
expression: "expression";
|
|
143
|
+
}>;
|
|
144
|
+
attrRaw: z.ZodNullable<z.ZodString>;
|
|
145
|
+
valueRaw: z.ZodNullable<z.ZodString>;
|
|
146
|
+
attrRange: z.ZodNullable<z.ZodObject<{
|
|
147
|
+
start: z.ZodNumber;
|
|
148
|
+
end: z.ZodNumber;
|
|
149
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
151
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
valueRange: z.ZodNullable<z.ZodObject<{
|
|
155
|
+
start: z.ZodNumber;
|
|
156
|
+
end: z.ZodNumber;
|
|
157
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
openingElementRange: z.ZodObject<{
|
|
163
|
+
start: z.ZodNumber;
|
|
164
|
+
end: z.ZodNumber;
|
|
165
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
166
|
+
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
167
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
version: z.ZodObject<{
|
|
171
|
+
documentVersion: z.ZodNumber;
|
|
172
|
+
contentHash: z.ZodString;
|
|
173
|
+
parserVersion: z.ZodString;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
176
|
+
code: z.ZodEnum<{
|
|
177
|
+
"missing-class-name": "missing-class-name";
|
|
178
|
+
"unsupported-attribute-name": "unsupported-attribute-name";
|
|
179
|
+
"source-locator-warning": "source-locator-warning";
|
|
180
|
+
"invalid-new-attr": "invalid-new-attr";
|
|
181
|
+
"version-conflict": "version-conflict";
|
|
182
|
+
"write-failed": "write-failed";
|
|
183
|
+
}>;
|
|
184
|
+
message: z.ZodString;
|
|
185
|
+
}, z.core.$strip>>;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
export type SiteEditGetClassNameSourceCommandResult = SiteEditCommandSuccess<SiteEditClassNameSource>;
|
|
131
189
|
export declare const SiteEditSetClassNameSourceIntentSchema: z.ZodObject<{
|
|
132
190
|
source: z.ZodEnum<{
|
|
133
191
|
"style-panel": "style-panel";
|
|
@@ -194,7 +252,7 @@ export declare const SiteEditSetClassNameSourceFailureReasonSchema: z.ZodEnum<{
|
|
|
194
252
|
export type SiteEditSetClassNameSourceFailureReason = z.infer<typeof SiteEditSetClassNameSourceFailureReasonSchema>;
|
|
195
253
|
export declare const SiteEditSetClassNameSourceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
196
254
|
ok: z.ZodLiteral<true>;
|
|
197
|
-
|
|
255
|
+
data: z.ZodObject<{
|
|
198
256
|
key: z.ZodString;
|
|
199
257
|
routeId: z.ZodString;
|
|
200
258
|
filePath: z.ZodString;
|
|
@@ -248,80 +306,7 @@ export declare const SiteEditSetClassNameSourceResultSchema: z.ZodDiscriminatedU
|
|
|
248
306
|
}, z.core.$strip>>;
|
|
249
307
|
}, z.core.$strip>;
|
|
250
308
|
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
-
|
|
252
|
-
reason: z.ZodEnum<{
|
|
253
|
-
node_not_found: "node_not_found";
|
|
254
|
-
document_version_stale: "document_version_stale";
|
|
255
|
-
file_hash_mismatch: "file_hash_mismatch";
|
|
256
|
-
range_mismatch: "range_mismatch";
|
|
257
|
-
old_attr_mismatch: "old_attr_mismatch";
|
|
258
|
-
invalid_new_attr: "invalid_new_attr";
|
|
259
|
-
unsupported_target: "unsupported_target";
|
|
260
|
-
write_failed: "write_failed";
|
|
261
|
-
}>;
|
|
262
|
-
current: z.ZodOptional<z.ZodObject<{
|
|
263
|
-
key: z.ZodString;
|
|
264
|
-
routeId: z.ZodString;
|
|
265
|
-
filePath: z.ZodString;
|
|
266
|
-
componentName: z.ZodString;
|
|
267
|
-
sourceKind: z.ZodEnum<{
|
|
268
|
-
missing: "missing";
|
|
269
|
-
stringLiteral: "stringLiteral";
|
|
270
|
-
expression: "expression";
|
|
271
|
-
}>;
|
|
272
|
-
attrRaw: z.ZodNullable<z.ZodString>;
|
|
273
|
-
valueRaw: z.ZodNullable<z.ZodString>;
|
|
274
|
-
attrRange: z.ZodNullable<z.ZodObject<{
|
|
275
|
-
start: z.ZodNumber;
|
|
276
|
-
end: z.ZodNumber;
|
|
277
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
278
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
279
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
280
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
281
|
-
}, z.core.$strip>>;
|
|
282
|
-
valueRange: z.ZodNullable<z.ZodObject<{
|
|
283
|
-
start: z.ZodNumber;
|
|
284
|
-
end: z.ZodNumber;
|
|
285
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
286
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
288
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
}, z.core.$strip>>;
|
|
290
|
-
openingElementRange: z.ZodObject<{
|
|
291
|
-
start: z.ZodNumber;
|
|
292
|
-
end: z.ZodNumber;
|
|
293
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
294
|
-
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
295
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
296
|
-
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
}, z.core.$strip>;
|
|
298
|
-
version: z.ZodObject<{
|
|
299
|
-
documentVersion: z.ZodNumber;
|
|
300
|
-
contentHash: z.ZodString;
|
|
301
|
-
parserVersion: z.ZodString;
|
|
302
|
-
}, z.core.$strip>;
|
|
303
|
-
diagnostics: z.ZodArray<z.ZodObject<{
|
|
304
|
-
code: z.ZodEnum<{
|
|
305
|
-
"missing-class-name": "missing-class-name";
|
|
306
|
-
"unsupported-attribute-name": "unsupported-attribute-name";
|
|
307
|
-
"source-locator-warning": "source-locator-warning";
|
|
308
|
-
"invalid-new-attr": "invalid-new-attr";
|
|
309
|
-
"version-conflict": "version-conflict";
|
|
310
|
-
"write-failed": "write-failed";
|
|
311
|
-
}>;
|
|
312
|
-
message: z.ZodString;
|
|
313
|
-
}, z.core.$strip>>;
|
|
314
|
-
}, z.core.$strip>>;
|
|
315
|
-
diagnostics: z.ZodArray<z.ZodObject<{
|
|
316
|
-
code: z.ZodEnum<{
|
|
317
|
-
"missing-class-name": "missing-class-name";
|
|
318
|
-
"unsupported-attribute-name": "unsupported-attribute-name";
|
|
319
|
-
"source-locator-warning": "source-locator-warning";
|
|
320
|
-
"invalid-new-attr": "invalid-new-attr";
|
|
321
|
-
"version-conflict": "version-conflict";
|
|
322
|
-
"write-failed": "write-failed";
|
|
323
|
-
}>;
|
|
324
|
-
message: z.ZodString;
|
|
325
|
-
}, z.core.$strip>>;
|
|
309
|
+
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
326
310
|
}, z.core.$strip>], "ok">;
|
|
327
|
-
export type SiteEditSetClassNameSourceResult =
|
|
311
|
+
export type SiteEditSetClassNameSourceResult = SiteEditCommandResult<SiteEditClassNameSource, SiteEditSetClassNameSourceFailureReason, SiteEditClassNameSource, SiteEditClassNameSourceDiagnostic>;
|
|
312
|
+
export type SiteEditSetClassNameSourceCommandResult = SiteEditSetClassNameSourceResult;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SiteEditCommandErrorSchema: z.ZodObject<{
|
|
3
|
+
code: z.ZodString;
|
|
4
|
+
message: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type SiteEditCommandError = z.infer<typeof SiteEditCommandErrorSchema>;
|
|
7
|
+
export declare const SiteEditCommandDiagnosticSchema: z.ZodObject<{
|
|
8
|
+
code: z.ZodString;
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type SiteEditCommandDiagnostic = z.infer<typeof SiteEditCommandDiagnosticSchema>;
|
|
12
|
+
export declare function createSiteEditCommandSuccessSchema<TData extends z.ZodTypeAny>(dataSchema: TData): z.ZodObject<{
|
|
13
|
+
ok: z.ZodLiteral<true>;
|
|
14
|
+
data: TData;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare function createSiteEditCommandFailureSchema<TCode extends z.ZodTypeAny, TCurrent extends z.ZodTypeAny = z.ZodUnknown, TDiagnostics extends z.ZodTypeAny = typeof SiteEditCommandDiagnosticSchema>(input: {
|
|
17
|
+
codeSchema: TCode;
|
|
18
|
+
currentSchema?: TCurrent;
|
|
19
|
+
diagnosticsSchema?: TDiagnostics;
|
|
20
|
+
dataSchema?: z.ZodTypeAny;
|
|
21
|
+
}): z.ZodObject<{
|
|
22
|
+
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare function createSiteEditCommandResultSchema<TData extends z.ZodTypeAny, TCode extends z.ZodTypeAny, TCurrent extends z.ZodTypeAny = z.ZodUnknown, TDiagnostics extends z.ZodTypeAny = typeof SiteEditCommandDiagnosticSchema>(input: {
|
|
25
|
+
dataSchema: TData;
|
|
26
|
+
codeSchema: TCode;
|
|
27
|
+
currentSchema?: TCurrent;
|
|
28
|
+
diagnosticsSchema?: TDiagnostics;
|
|
29
|
+
failureDataSchema?: z.ZodTypeAny;
|
|
30
|
+
}): z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
31
|
+
ok: z.ZodLiteral<true>;
|
|
32
|
+
data: TData;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
35
|
+
}, z.core.$strip>], "ok">;
|
|
36
|
+
export type SiteEditCommandSuccess<TData> = {
|
|
37
|
+
ok: true;
|
|
38
|
+
data: TData;
|
|
39
|
+
};
|
|
40
|
+
export type SiteEditCommandFailure<TCode extends string = string, TCurrent = unknown, TDiagnostic = SiteEditCommandDiagnostic, TData = never> = {
|
|
41
|
+
ok: false;
|
|
42
|
+
error: {
|
|
43
|
+
code: TCode;
|
|
44
|
+
message: string;
|
|
45
|
+
};
|
|
46
|
+
current?: TCurrent;
|
|
47
|
+
diagnostics?: TDiagnostic[];
|
|
48
|
+
data?: TData;
|
|
49
|
+
};
|
|
50
|
+
export type SiteEditCommandResult<TData, TCode extends string = string, TCurrent = unknown, TDiagnostic = SiteEditCommandDiagnostic, TFailureData = never> = SiteEditCommandSuccess<TData> | SiteEditCommandFailure<TCode, TCurrent, TDiagnostic, TFailureData>;
|
|
@@ -58,29 +58,8 @@ export declare const SiteEditEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
58
58
|
kind: z.ZodLiteral<"route">;
|
|
59
59
|
routeId: z.ZodString;
|
|
60
60
|
}, z.core.$strip>], "kind">;
|
|
61
|
-
ok: z.ZodBoolean;
|
|
62
61
|
resultVersion: z.ZodNumber;
|
|
63
|
-
|
|
64
|
-
code: z.ZodEnum<{
|
|
65
|
-
NODE_NOT_FOUND: "NODE_NOT_FOUND";
|
|
66
|
-
ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
|
|
67
|
-
CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
|
|
68
|
-
CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
|
|
69
|
-
INVALID_PARAMS: "INVALID_PARAMS";
|
|
70
|
-
PLAN_FAILED: "PLAN_FAILED";
|
|
71
|
-
VERSION_STALE: "VERSION_STALE";
|
|
72
|
-
AST_PARSE_ERROR: "AST_PARSE_ERROR";
|
|
73
|
-
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
|
|
74
|
-
LOCATOR_FAILED: "LOCATOR_FAILED";
|
|
75
|
-
INVALID_TARGET: "INVALID_TARGET";
|
|
76
|
-
WRITE_IO_ERROR: "WRITE_IO_ERROR";
|
|
77
|
-
CONCURRENT_MODIFIED: "CONCURRENT_MODIFIED";
|
|
78
|
-
ROLLBACK_FAILED: "ROLLBACK_FAILED";
|
|
79
|
-
INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
80
|
-
}>;
|
|
81
|
-
message: z.ZodString;
|
|
82
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
83
|
-
}, z.core.$strip>>;
|
|
62
|
+
affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
84
63
|
}, z.core.$strip>;
|
|
85
64
|
at: z.ZodString;
|
|
86
65
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type SiteEditCommandResult } from "./site-edit-command-result.js";
|
|
2
3
|
export declare const SiteEditOperationTypeSchema: z.ZodEnum<{
|
|
3
4
|
"update-text": "update-text";
|
|
4
5
|
"remove-node": "remove-node";
|
|
@@ -615,7 +616,7 @@ export declare const SiteEditOperationRequestSchema: z.ZodObject<{
|
|
|
615
616
|
}, z.core.$strip>], "kind">;
|
|
616
617
|
}, z.core.$strip>;
|
|
617
618
|
export type SiteEditOperationRequest = z.infer<typeof SiteEditOperationRequestSchema>;
|
|
618
|
-
export declare const
|
|
619
|
+
export declare const SiteEditOperationPayloadSchema: z.ZodObject<{
|
|
619
620
|
requestId: z.ZodString;
|
|
620
621
|
kind: z.ZodEnum<{
|
|
621
622
|
"update-text": "update-text";
|
|
@@ -657,28 +658,59 @@ export declare const SiteEditOperationResultSchema: z.ZodObject<{
|
|
|
657
658
|
kind: z.ZodLiteral<"route">;
|
|
658
659
|
routeId: z.ZodString;
|
|
659
660
|
}, z.core.$strip>], "kind">;
|
|
660
|
-
ok: z.ZodBoolean;
|
|
661
661
|
resultVersion: z.ZodNumber;
|
|
662
|
-
|
|
663
|
-
code: z.ZodEnum<{
|
|
664
|
-
NODE_NOT_FOUND: "NODE_NOT_FOUND";
|
|
665
|
-
ROUTE_NOT_FOUND: "ROUTE_NOT_FOUND";
|
|
666
|
-
CAPABILITY_REJECTED: "CAPABILITY_REJECTED";
|
|
667
|
-
CONSTRAINT_VIOLATED: "CONSTRAINT_VIOLATED";
|
|
668
|
-
INVALID_PARAMS: "INVALID_PARAMS";
|
|
669
|
-
PLAN_FAILED: "PLAN_FAILED";
|
|
670
|
-
VERSION_STALE: "VERSION_STALE";
|
|
671
|
-
AST_PARSE_ERROR: "AST_PARSE_ERROR";
|
|
672
|
-
UNSUPPORTED_OPERATION: "UNSUPPORTED_OPERATION";
|
|
673
|
-
LOCATOR_FAILED: "LOCATOR_FAILED";
|
|
674
|
-
INVALID_TARGET: "INVALID_TARGET";
|
|
675
|
-
WRITE_IO_ERROR: "WRITE_IO_ERROR";
|
|
676
|
-
CONCURRENT_MODIFIED: "CONCURRENT_MODIFIED";
|
|
677
|
-
ROLLBACK_FAILED: "ROLLBACK_FAILED";
|
|
678
|
-
INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
679
|
-
}>;
|
|
680
|
-
message: z.ZodString;
|
|
681
|
-
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
682
|
-
}, z.core.$strip>>;
|
|
662
|
+
affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
683
663
|
}, z.core.$strip>;
|
|
684
|
-
export type
|
|
664
|
+
export type SiteEditOperationPayload = z.infer<typeof SiteEditOperationPayloadSchema>;
|
|
665
|
+
export declare const SiteEditOperationCommandResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
666
|
+
ok: z.ZodLiteral<true>;
|
|
667
|
+
data: z.ZodObject<{
|
|
668
|
+
requestId: z.ZodString;
|
|
669
|
+
kind: z.ZodEnum<{
|
|
670
|
+
"update-text": "update-text";
|
|
671
|
+
"remove-node": "remove-node";
|
|
672
|
+
"insert-child": "insert-child";
|
|
673
|
+
"move-node": "move-node";
|
|
674
|
+
"replace-rich-text-content": "replace-rich-text-content";
|
|
675
|
+
"insert-rich-text-block": "insert-rich-text-block";
|
|
676
|
+
"remove-rich-text-block": "remove-rich-text-block";
|
|
677
|
+
"set-media-field": "set-media-field";
|
|
678
|
+
"set-component-slot-content": "set-component-slot-content";
|
|
679
|
+
"set-object-field": "set-object-field";
|
|
680
|
+
"insert-object-field": "insert-object-field";
|
|
681
|
+
"remove-object-field": "remove-object-field";
|
|
682
|
+
"update-array-item": "update-array-item";
|
|
683
|
+
"insert-array-item": "insert-array-item";
|
|
684
|
+
"remove-array-item": "remove-array-item";
|
|
685
|
+
"move-array-item": "move-array-item";
|
|
686
|
+
"replace-conditional-expression": "replace-conditional-expression";
|
|
687
|
+
"set-conditional-branch-content": "set-conditional-branch-content";
|
|
688
|
+
"set-jsx-prop": "set-jsx-prop";
|
|
689
|
+
"remove-jsx-prop": "remove-jsx-prop";
|
|
690
|
+
"set-class-name": "set-class-name";
|
|
691
|
+
"add-class-token": "add-class-token";
|
|
692
|
+
"remove-class-token": "remove-class-token";
|
|
693
|
+
"set-style-property": "set-style-property";
|
|
694
|
+
"set-style-properties": "set-style-properties";
|
|
695
|
+
"set-css-module-class": "set-css-module-class";
|
|
696
|
+
"set-directive": "set-directive";
|
|
697
|
+
"remove-directive": "remove-directive";
|
|
698
|
+
"set-route-export": "set-route-export";
|
|
699
|
+
"set-metadata-field": "set-metadata-field";
|
|
700
|
+
"set-generate-metadata": "set-generate-metadata";
|
|
701
|
+
}>;
|
|
702
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
703
|
+
kind: z.ZodLiteral<"node">;
|
|
704
|
+
key: z.ZodString;
|
|
705
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
706
|
+
kind: z.ZodLiteral<"route">;
|
|
707
|
+
routeId: z.ZodString;
|
|
708
|
+
}, z.core.$strip>], "kind">;
|
|
709
|
+
resultVersion: z.ZodNumber;
|
|
710
|
+
affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
713
|
+
[x: string]: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
714
|
+
}, z.core.$strip>], "ok">;
|
|
715
|
+
export type SiteEditOperationCommandResult = SiteEditCommandResult<SiteEditOperationPayload, SiteEditOperationErrorCode, unknown, never, Partial<SiteEditOperationPayload>>;
|
|
716
|
+
export type SiteEditOperationResult = SiteEditOperationPayload;
|
|
@@ -680,158 +680,6 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
680
680
|
message: z.ZodString;
|
|
681
681
|
}, z.core.$strip>>>;
|
|
682
682
|
}, z.core.$strip>>;
|
|
683
|
-
styleModel: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
|
|
684
|
-
kind: z.ZodLiteral<"css-style-model">;
|
|
685
|
-
properties: z.ZodArray<z.ZodObject<{
|
|
686
|
-
property: z.ZodEnum<{
|
|
687
|
-
transform: "transform";
|
|
688
|
-
display: "display";
|
|
689
|
-
position: "position";
|
|
690
|
-
top: "top";
|
|
691
|
-
right: "right";
|
|
692
|
-
bottom: "bottom";
|
|
693
|
-
left: "left";
|
|
694
|
-
zIndex: "zIndex";
|
|
695
|
-
flexDirection: "flexDirection";
|
|
696
|
-
flexWrap: "flexWrap";
|
|
697
|
-
flexGrow: "flexGrow";
|
|
698
|
-
flexShrink: "flexShrink";
|
|
699
|
-
flexBasis: "flexBasis";
|
|
700
|
-
order: "order";
|
|
701
|
-
gridTemplateColumns: "gridTemplateColumns";
|
|
702
|
-
gridTemplateRows: "gridTemplateRows";
|
|
703
|
-
columns: "columns";
|
|
704
|
-
gridColumn: "gridColumn";
|
|
705
|
-
gridRow: "gridRow";
|
|
706
|
-
gap: "gap";
|
|
707
|
-
gapX: "gapX";
|
|
708
|
-
gapY: "gapY";
|
|
709
|
-
spaceX: "spaceX";
|
|
710
|
-
spaceY: "spaceY";
|
|
711
|
-
alignItems: "alignItems";
|
|
712
|
-
justifyContent: "justifyContent";
|
|
713
|
-
marginTop: "marginTop";
|
|
714
|
-
marginRight: "marginRight";
|
|
715
|
-
marginBottom: "marginBottom";
|
|
716
|
-
marginLeft: "marginLeft";
|
|
717
|
-
paddingTop: "paddingTop";
|
|
718
|
-
paddingRight: "paddingRight";
|
|
719
|
-
paddingBottom: "paddingBottom";
|
|
720
|
-
paddingLeft: "paddingLeft";
|
|
721
|
-
width: "width";
|
|
722
|
-
height: "height";
|
|
723
|
-
minWidth: "minWidth";
|
|
724
|
-
minHeight: "minHeight";
|
|
725
|
-
maxWidth: "maxWidth";
|
|
726
|
-
maxHeight: "maxHeight";
|
|
727
|
-
overflow: "overflow";
|
|
728
|
-
fontFamily: "fontFamily";
|
|
729
|
-
fontSize: "fontSize";
|
|
730
|
-
fontWeight: "fontWeight";
|
|
731
|
-
lineHeight: "lineHeight";
|
|
732
|
-
letterSpacing: "letterSpacing";
|
|
733
|
-
textAlign: "textAlign";
|
|
734
|
-
textTransform: "textTransform";
|
|
735
|
-
textDecoration: "textDecoration";
|
|
736
|
-
textOverflow: "textOverflow";
|
|
737
|
-
textIndent: "textIndent";
|
|
738
|
-
writingMode: "writingMode";
|
|
739
|
-
whiteSpace: "whiteSpace";
|
|
740
|
-
wordBreak: "wordBreak";
|
|
741
|
-
lineClamp: "lineClamp";
|
|
742
|
-
fontVariantNumeric: "fontVariantNumeric";
|
|
743
|
-
screenReaderOnly: "screenReaderOnly";
|
|
744
|
-
color: "color";
|
|
745
|
-
backgroundColor: "backgroundColor";
|
|
746
|
-
backgroundImage: "backgroundImage";
|
|
747
|
-
borderStyle: "borderStyle";
|
|
748
|
-
borderWidth: "borderWidth";
|
|
749
|
-
borderRadius: "borderRadius";
|
|
750
|
-
borderColor: "borderColor";
|
|
751
|
-
objectFit: "objectFit";
|
|
752
|
-
objectPosition: "objectPosition";
|
|
753
|
-
aspectRatio: "aspectRatio";
|
|
754
|
-
opacity: "opacity";
|
|
755
|
-
boxShadow: "boxShadow";
|
|
756
|
-
transformOrigin: "transformOrigin";
|
|
757
|
-
transitionProperty: "transitionProperty";
|
|
758
|
-
transitionDuration: "transitionDuration";
|
|
759
|
-
transitionTimingFunction: "transitionTimingFunction";
|
|
760
|
-
animation: "animation";
|
|
761
|
-
pointerEvents: "pointerEvents";
|
|
762
|
-
cursor: "cursor";
|
|
763
|
-
userSelect: "userSelect";
|
|
764
|
-
fontStyle: "fontStyle";
|
|
765
|
-
textUnderlineOffset: "textUnderlineOffset";
|
|
766
|
-
scrollMarginTop: "scrollMarginTop";
|
|
767
|
-
alignSelf: "alignSelf";
|
|
768
|
-
flex: "flex";
|
|
769
|
-
outlineStyle: "outlineStyle";
|
|
770
|
-
resize: "resize";
|
|
771
|
-
ringWidth: "ringWidth";
|
|
772
|
-
ringColor: "ringColor";
|
|
773
|
-
backdropFilter: "backdropFilter";
|
|
774
|
-
overscrollBehavior: "overscrollBehavior";
|
|
775
|
-
divideWidth: "divideWidth";
|
|
776
|
-
divideColor: "divideColor";
|
|
777
|
-
}>;
|
|
778
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
779
|
-
resolvedValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
780
|
-
breakpoint: z.ZodOptional<z.ZodEnum<{
|
|
781
|
-
sm: "sm";
|
|
782
|
-
md: "md";
|
|
783
|
-
lg: "lg";
|
|
784
|
-
xl: "xl";
|
|
785
|
-
"2xl": "2xl";
|
|
786
|
-
}>>;
|
|
787
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
788
|
-
hover: "hover";
|
|
789
|
-
active: "active";
|
|
790
|
-
focus: "focus";
|
|
791
|
-
disabled: "disabled";
|
|
792
|
-
}>>;
|
|
793
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
794
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
795
|
-
editable: z.ZodBoolean;
|
|
796
|
-
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
797
|
-
code: z.ZodString;
|
|
798
|
-
message: z.ZodString;
|
|
799
|
-
}, z.core.$strip>>>;
|
|
800
|
-
operationBoundary: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
801
|
-
"update-text": "update-text";
|
|
802
|
-
"remove-node": "remove-node";
|
|
803
|
-
"insert-child": "insert-child";
|
|
804
|
-
"move-node": "move-node";
|
|
805
|
-
"replace-rich-text-content": "replace-rich-text-content";
|
|
806
|
-
"insert-rich-text-block": "insert-rich-text-block";
|
|
807
|
-
"remove-rich-text-block": "remove-rich-text-block";
|
|
808
|
-
"set-media-field": "set-media-field";
|
|
809
|
-
"set-component-slot-content": "set-component-slot-content";
|
|
810
|
-
"set-object-field": "set-object-field";
|
|
811
|
-
"insert-object-field": "insert-object-field";
|
|
812
|
-
"remove-object-field": "remove-object-field";
|
|
813
|
-
"update-array-item": "update-array-item";
|
|
814
|
-
"insert-array-item": "insert-array-item";
|
|
815
|
-
"remove-array-item": "remove-array-item";
|
|
816
|
-
"move-array-item": "move-array-item";
|
|
817
|
-
"replace-conditional-expression": "replace-conditional-expression";
|
|
818
|
-
"set-conditional-branch-content": "set-conditional-branch-content";
|
|
819
|
-
"set-jsx-prop": "set-jsx-prop";
|
|
820
|
-
"remove-jsx-prop": "remove-jsx-prop";
|
|
821
|
-
"set-class-name": "set-class-name";
|
|
822
|
-
"add-class-token": "add-class-token";
|
|
823
|
-
"remove-class-token": "remove-class-token";
|
|
824
|
-
"set-style-property": "set-style-property";
|
|
825
|
-
"set-style-properties": "set-style-properties";
|
|
826
|
-
"set-css-module-class": "set-css-module-class";
|
|
827
|
-
"set-directive": "set-directive";
|
|
828
|
-
"remove-directive": "remove-directive";
|
|
829
|
-
"set-route-export": "set-route-export";
|
|
830
|
-
"set-metadata-field": "set-metadata-field";
|
|
831
|
-
"set-generate-metadata": "set-generate-metadata";
|
|
832
|
-
}>>>;
|
|
833
|
-
}, z.core.$strip>>;
|
|
834
|
-
}, z.core.$strip>]>>;
|
|
835
683
|
conditional: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
836
684
|
textSegments: z.ZodArray<z.ZodObject<{
|
|
837
685
|
index: z.ZodNumber;
|
|
@@ -1170,158 +1018,6 @@ export declare const SiteEditObjectStyleDetailSchema: z.ZodObject<{
|
|
|
1170
1018
|
message: z.ZodString;
|
|
1171
1019
|
}, z.core.$strip>>>;
|
|
1172
1020
|
}, z.core.$strip>>;
|
|
1173
|
-
styleModel: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
|
|
1174
|
-
kind: z.ZodLiteral<"css-style-model">;
|
|
1175
|
-
properties: z.ZodArray<z.ZodObject<{
|
|
1176
|
-
property: z.ZodEnum<{
|
|
1177
|
-
transform: "transform";
|
|
1178
|
-
display: "display";
|
|
1179
|
-
position: "position";
|
|
1180
|
-
top: "top";
|
|
1181
|
-
right: "right";
|
|
1182
|
-
bottom: "bottom";
|
|
1183
|
-
left: "left";
|
|
1184
|
-
zIndex: "zIndex";
|
|
1185
|
-
flexDirection: "flexDirection";
|
|
1186
|
-
flexWrap: "flexWrap";
|
|
1187
|
-
flexGrow: "flexGrow";
|
|
1188
|
-
flexShrink: "flexShrink";
|
|
1189
|
-
flexBasis: "flexBasis";
|
|
1190
|
-
order: "order";
|
|
1191
|
-
gridTemplateColumns: "gridTemplateColumns";
|
|
1192
|
-
gridTemplateRows: "gridTemplateRows";
|
|
1193
|
-
columns: "columns";
|
|
1194
|
-
gridColumn: "gridColumn";
|
|
1195
|
-
gridRow: "gridRow";
|
|
1196
|
-
gap: "gap";
|
|
1197
|
-
gapX: "gapX";
|
|
1198
|
-
gapY: "gapY";
|
|
1199
|
-
spaceX: "spaceX";
|
|
1200
|
-
spaceY: "spaceY";
|
|
1201
|
-
alignItems: "alignItems";
|
|
1202
|
-
justifyContent: "justifyContent";
|
|
1203
|
-
marginTop: "marginTop";
|
|
1204
|
-
marginRight: "marginRight";
|
|
1205
|
-
marginBottom: "marginBottom";
|
|
1206
|
-
marginLeft: "marginLeft";
|
|
1207
|
-
paddingTop: "paddingTop";
|
|
1208
|
-
paddingRight: "paddingRight";
|
|
1209
|
-
paddingBottom: "paddingBottom";
|
|
1210
|
-
paddingLeft: "paddingLeft";
|
|
1211
|
-
width: "width";
|
|
1212
|
-
height: "height";
|
|
1213
|
-
minWidth: "minWidth";
|
|
1214
|
-
minHeight: "minHeight";
|
|
1215
|
-
maxWidth: "maxWidth";
|
|
1216
|
-
maxHeight: "maxHeight";
|
|
1217
|
-
overflow: "overflow";
|
|
1218
|
-
fontFamily: "fontFamily";
|
|
1219
|
-
fontSize: "fontSize";
|
|
1220
|
-
fontWeight: "fontWeight";
|
|
1221
|
-
lineHeight: "lineHeight";
|
|
1222
|
-
letterSpacing: "letterSpacing";
|
|
1223
|
-
textAlign: "textAlign";
|
|
1224
|
-
textTransform: "textTransform";
|
|
1225
|
-
textDecoration: "textDecoration";
|
|
1226
|
-
textOverflow: "textOverflow";
|
|
1227
|
-
textIndent: "textIndent";
|
|
1228
|
-
writingMode: "writingMode";
|
|
1229
|
-
whiteSpace: "whiteSpace";
|
|
1230
|
-
wordBreak: "wordBreak";
|
|
1231
|
-
lineClamp: "lineClamp";
|
|
1232
|
-
fontVariantNumeric: "fontVariantNumeric";
|
|
1233
|
-
screenReaderOnly: "screenReaderOnly";
|
|
1234
|
-
color: "color";
|
|
1235
|
-
backgroundColor: "backgroundColor";
|
|
1236
|
-
backgroundImage: "backgroundImage";
|
|
1237
|
-
borderStyle: "borderStyle";
|
|
1238
|
-
borderWidth: "borderWidth";
|
|
1239
|
-
borderRadius: "borderRadius";
|
|
1240
|
-
borderColor: "borderColor";
|
|
1241
|
-
objectFit: "objectFit";
|
|
1242
|
-
objectPosition: "objectPosition";
|
|
1243
|
-
aspectRatio: "aspectRatio";
|
|
1244
|
-
opacity: "opacity";
|
|
1245
|
-
boxShadow: "boxShadow";
|
|
1246
|
-
transformOrigin: "transformOrigin";
|
|
1247
|
-
transitionProperty: "transitionProperty";
|
|
1248
|
-
transitionDuration: "transitionDuration";
|
|
1249
|
-
transitionTimingFunction: "transitionTimingFunction";
|
|
1250
|
-
animation: "animation";
|
|
1251
|
-
pointerEvents: "pointerEvents";
|
|
1252
|
-
cursor: "cursor";
|
|
1253
|
-
userSelect: "userSelect";
|
|
1254
|
-
fontStyle: "fontStyle";
|
|
1255
|
-
textUnderlineOffset: "textUnderlineOffset";
|
|
1256
|
-
scrollMarginTop: "scrollMarginTop";
|
|
1257
|
-
alignSelf: "alignSelf";
|
|
1258
|
-
flex: "flex";
|
|
1259
|
-
outlineStyle: "outlineStyle";
|
|
1260
|
-
resize: "resize";
|
|
1261
|
-
ringWidth: "ringWidth";
|
|
1262
|
-
ringColor: "ringColor";
|
|
1263
|
-
backdropFilter: "backdropFilter";
|
|
1264
|
-
overscrollBehavior: "overscrollBehavior";
|
|
1265
|
-
divideWidth: "divideWidth";
|
|
1266
|
-
divideColor: "divideColor";
|
|
1267
|
-
}>;
|
|
1268
|
-
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1269
|
-
resolvedValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1270
|
-
breakpoint: z.ZodOptional<z.ZodEnum<{
|
|
1271
|
-
sm: "sm";
|
|
1272
|
-
md: "md";
|
|
1273
|
-
lg: "lg";
|
|
1274
|
-
xl: "xl";
|
|
1275
|
-
"2xl": "2xl";
|
|
1276
|
-
}>>;
|
|
1277
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
1278
|
-
hover: "hover";
|
|
1279
|
-
active: "active";
|
|
1280
|
-
focus: "focus";
|
|
1281
|
-
disabled: "disabled";
|
|
1282
|
-
}>>;
|
|
1283
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1284
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1285
|
-
editable: z.ZodBoolean;
|
|
1286
|
-
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1287
|
-
code: z.ZodString;
|
|
1288
|
-
message: z.ZodString;
|
|
1289
|
-
}, z.core.$strip>>>;
|
|
1290
|
-
operationBoundary: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1291
|
-
"update-text": "update-text";
|
|
1292
|
-
"remove-node": "remove-node";
|
|
1293
|
-
"insert-child": "insert-child";
|
|
1294
|
-
"move-node": "move-node";
|
|
1295
|
-
"replace-rich-text-content": "replace-rich-text-content";
|
|
1296
|
-
"insert-rich-text-block": "insert-rich-text-block";
|
|
1297
|
-
"remove-rich-text-block": "remove-rich-text-block";
|
|
1298
|
-
"set-media-field": "set-media-field";
|
|
1299
|
-
"set-component-slot-content": "set-component-slot-content";
|
|
1300
|
-
"set-object-field": "set-object-field";
|
|
1301
|
-
"insert-object-field": "insert-object-field";
|
|
1302
|
-
"remove-object-field": "remove-object-field";
|
|
1303
|
-
"update-array-item": "update-array-item";
|
|
1304
|
-
"insert-array-item": "insert-array-item";
|
|
1305
|
-
"remove-array-item": "remove-array-item";
|
|
1306
|
-
"move-array-item": "move-array-item";
|
|
1307
|
-
"replace-conditional-expression": "replace-conditional-expression";
|
|
1308
|
-
"set-conditional-branch-content": "set-conditional-branch-content";
|
|
1309
|
-
"set-jsx-prop": "set-jsx-prop";
|
|
1310
|
-
"remove-jsx-prop": "remove-jsx-prop";
|
|
1311
|
-
"set-class-name": "set-class-name";
|
|
1312
|
-
"add-class-token": "add-class-token";
|
|
1313
|
-
"remove-class-token": "remove-class-token";
|
|
1314
|
-
"set-style-property": "set-style-property";
|
|
1315
|
-
"set-style-properties": "set-style-properties";
|
|
1316
|
-
"set-css-module-class": "set-css-module-class";
|
|
1317
|
-
"set-directive": "set-directive";
|
|
1318
|
-
"remove-directive": "remove-directive";
|
|
1319
|
-
"set-route-export": "set-route-export";
|
|
1320
|
-
"set-metadata-field": "set-metadata-field";
|
|
1321
|
-
"set-generate-metadata": "set-generate-metadata";
|
|
1322
|
-
}>>>;
|
|
1323
|
-
}, z.core.$strip>>;
|
|
1324
|
-
}, z.core.$strip>]>>;
|
|
1325
1021
|
}, z.core.$strip>;
|
|
1326
1022
|
export type SiteEditObjectStyleDetail = z.infer<typeof SiteEditObjectStyleDetailSchema>;
|
|
1327
1023
|
export declare const SiteEditObjectContentDetailSchema: z.ZodObject<{
|