@vcp-dev/contracts 0.9.6 → 0.10.1
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/application-template.d.ts +754 -0
- package/dist/cms-application-provisioning.d.ts +92 -0
- package/dist/cms-collection-binding.d.ts +1 -1
- package/dist/cms-page-directory.d.ts +7 -7
- package/dist/connect-dynamic-collection.d.ts +6 -6
- package/dist/connect-form.d.ts +2 -2
- package/dist/conversion-hints.d.ts +1 -1
- package/dist/custom-domain.d.ts +2 -2
- package/dist/deployment-progress.d.ts +3 -3
- package/dist/designer-page-library.d.ts +14 -14
- package/dist/external-site-edit.d.ts +9 -9
- package/dist/form-design.d.ts +40 -40
- package/dist/google-search-console.d.ts +15 -15
- package/dist/index.d.ts +160 -147
- package/dist/index.js +1 -1
- package/dist/input-context-bundle.d.ts +8 -8
- package/dist/knowledge-source-readiness.d.ts +5 -5
- package/dist/launcher-prompt-templates.d.ts +8 -8
- package/dist/product-search.d.ts +2 -2
- package/dist/site-build.d.ts +2 -2
- package/dist/site-edit-event.d.ts +1 -1
- package/dist/site-edit-operation-value.d.ts +5 -0
- package/dist/site-edit-operation.d.ts +49 -40
- package/dist/site-edit-property-change.d.ts +27 -0
- package/dist/site-edit-property-policy.d.ts +12 -0
- package/dist/site-edit-property-read.d.ts +225 -0
- package/dist/site-edit-render-document.d.ts +221 -59
- package/dist/site-edit-style-draft-property.d.ts +11 -0
- package/dist/site-edit-version.d.ts +1 -1
- package/dist/site-localization-fields.d.ts +6 -6
- package/dist/site-publish-domain.d.ts +42 -42
- package/dist/site-publish-workflow.d.ts +35 -35
- package/dist/site-workflow.d.ts +6 -6
- package/dist/step2-site-initialization.d.ts +6 -6
- package/dist/step3-digital-employee-analysis.d.ts +12 -12
- package/dist/step5-strategy.d.ts +76 -76
- package/dist/step6-design.d.ts +3 -3
- package/dist/step6-gpt-design.d.ts +3 -3
- package/dist/template-upgrade-observability.d.ts +4 -4
- package/dist/workspace-resource-operation.d.ts +33 -25
- package/package.json +1 -1
- package/dist/site-edit-element-property.d.ts +0 -10
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { SiteEditEffectiveWriteTargetSchema, SiteEditExternalSourceKindSchema, type SiteEditEffectiveWriteTarget, type SiteEditExternalSourceKind } from "./site-edit-property-read.js";
|
|
3
|
+
export { SiteEditEffectiveWriteTargetSchema, SiteEditExternalSourceKindSchema };
|
|
4
|
+
export type { SiteEditEffectiveWriteTarget, SiteEditExternalSourceKind };
|
|
2
5
|
export declare const SiteEditOperationSummarySchema: z.ZodObject<{
|
|
3
6
|
canUpdateText: z.ZodBoolean;
|
|
4
7
|
canInsertChild: z.ZodBoolean;
|
|
@@ -17,8 +20,8 @@ export declare const SiteEditDynamicSourceKindSchema: z.ZodEnum<{
|
|
|
17
20
|
}>;
|
|
18
21
|
export type SiteEditDynamicSourceKind = z.infer<typeof SiteEditDynamicSourceKindSchema>;
|
|
19
22
|
export declare const SiteEditDynamicSourceTypeSchema: z.ZodEnum<{
|
|
20
|
-
"cms-field": "cms-field";
|
|
21
23
|
"api-field": "api-field";
|
|
24
|
+
"cms-field": "cms-field";
|
|
22
25
|
}>;
|
|
23
26
|
export type SiteEditDynamicSourceType = z.infer<typeof SiteEditDynamicSourceTypeSchema>;
|
|
24
27
|
export declare const SiteEditDynamicTargetKindSchema: z.ZodEnum<{
|
|
@@ -54,8 +57,8 @@ export declare const SiteEditDynamicDataBindingSchema: z.ZodObject<{
|
|
|
54
57
|
"unknown-api": "unknown-api";
|
|
55
58
|
}>;
|
|
56
59
|
sourceType: z.ZodEnum<{
|
|
57
|
-
"cms-field": "cms-field";
|
|
58
60
|
"api-field": "api-field";
|
|
61
|
+
"cms-field": "cms-field";
|
|
59
62
|
}>;
|
|
60
63
|
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
61
64
|
operation: z.ZodOptional<z.ZodString>;
|
|
@@ -98,8 +101,8 @@ export declare const SiteEditDynamicDataDetailSchema: z.ZodObject<{
|
|
|
98
101
|
"unknown-api": "unknown-api";
|
|
99
102
|
}>;
|
|
100
103
|
sourceType: z.ZodEnum<{
|
|
101
|
-
"cms-field": "cms-field";
|
|
102
104
|
"api-field": "api-field";
|
|
105
|
+
"cms-field": "cms-field";
|
|
103
106
|
}>;
|
|
104
107
|
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
105
108
|
operation: z.ZodOptional<z.ZodString>;
|
|
@@ -185,6 +188,11 @@ export declare const SiteEditGetObjectEditContextInputSchema: z.ZodObject<{
|
|
|
185
188
|
routeId: z.ZodString;
|
|
186
189
|
templateId: z.ZodOptional<z.ZodString>;
|
|
187
190
|
}, z.core.$strict>;
|
|
191
|
+
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
key: z.ZodString;
|
|
193
|
+
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
188
196
|
}, z.core.$strict>;
|
|
189
197
|
export type SiteEditGetObjectEditContextInput = z.infer<typeof SiteEditGetObjectEditContextInputSchema>;
|
|
190
198
|
export declare const SiteEditRenderDocumentSchema: z.ZodObject<{
|
|
@@ -256,19 +264,12 @@ export declare const SiteEditRenderDocumentSchema: z.ZodObject<{
|
|
|
256
264
|
}, z.core.$strict>], "status">;
|
|
257
265
|
}, z.core.$strict>;
|
|
258
266
|
export type SiteEditRenderDocument = z.infer<typeof SiteEditRenderDocumentSchema>;
|
|
259
|
-
export declare const SiteEditExternalSourceKindSchema: z.ZodEnum<{
|
|
260
|
-
"cms-field": "cms-field";
|
|
261
|
-
"api-field": "api-field";
|
|
262
|
-
"i18n-message": "i18n-message";
|
|
263
|
-
"config-entry": "config-entry";
|
|
264
|
-
}>;
|
|
265
|
-
export type SiteEditExternalSourceKind = z.infer<typeof SiteEditExternalSourceKindSchema>;
|
|
266
267
|
export declare const SiteEditTextSourceSchema: z.ZodObject<{
|
|
267
268
|
kind: z.ZodEnum<{
|
|
268
269
|
literal: "literal";
|
|
269
270
|
binding: "binding";
|
|
270
|
-
"imported-binding": "imported-binding";
|
|
271
271
|
"repeat-template": "repeat-template";
|
|
272
|
+
"imported-binding": "imported-binding";
|
|
272
273
|
}>;
|
|
273
274
|
file: z.ZodString;
|
|
274
275
|
expression: z.ZodString;
|
|
@@ -284,8 +285,8 @@ export declare const SiteEditTextSegmentSchema: z.ZodObject<{
|
|
|
284
285
|
kind: z.ZodEnum<{
|
|
285
286
|
literal: "literal";
|
|
286
287
|
binding: "binding";
|
|
287
|
-
"imported-binding": "imported-binding";
|
|
288
288
|
"repeat-template": "repeat-template";
|
|
289
|
+
"imported-binding": "imported-binding";
|
|
289
290
|
}>;
|
|
290
291
|
file: z.ZodString;
|
|
291
292
|
expression: z.ZodString;
|
|
@@ -323,47 +324,28 @@ export type SiteEditObjectCapabilities = z.infer<typeof SiteEditObjectCapabiliti
|
|
|
323
324
|
export declare const SiteEditWriteTargetSchema: z.ZodObject<{
|
|
324
325
|
kind: z.ZodEnum<{
|
|
325
326
|
"jsx-node": "jsx-node";
|
|
327
|
+
"route-export": "route-export";
|
|
326
328
|
"component-proxy": "component-proxy";
|
|
327
329
|
"value-binding": "value-binding";
|
|
328
|
-
"route-export": "route-export";
|
|
329
330
|
}>;
|
|
330
331
|
file: z.ZodString;
|
|
331
332
|
componentName: z.ZodString;
|
|
332
333
|
isProxy: z.ZodBoolean;
|
|
333
334
|
}, z.core.$strip>;
|
|
334
335
|
export type SiteEditWriteTarget = z.infer<typeof SiteEditWriteTargetSchema>;
|
|
335
|
-
export declare const SiteEditEffectiveWriteTargetSchema: z.ZodObject<{
|
|
336
|
-
kind: z.ZodEnum<{
|
|
337
|
-
"jsx-node": "jsx-node";
|
|
338
|
-
"route-export": "route-export";
|
|
339
|
-
"value-path": "value-path";
|
|
340
|
-
"external-entry": "external-entry";
|
|
341
|
-
}>;
|
|
342
|
-
file: z.ZodOptional<z.ZodString>;
|
|
343
|
-
isProxy: z.ZodBoolean;
|
|
344
|
-
displayPath: z.ZodOptional<z.ZodString>;
|
|
345
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
346
|
-
"cms-field": "cms-field";
|
|
347
|
-
"api-field": "api-field";
|
|
348
|
-
"i18n-message": "i18n-message";
|
|
349
|
-
"config-entry": "config-entry";
|
|
350
|
-
}>>;
|
|
351
|
-
sourceId: z.ZodOptional<z.ZodString>;
|
|
352
|
-
}, z.core.$strip>;
|
|
353
|
-
export type SiteEditEffectiveWriteTarget = z.infer<typeof SiteEditEffectiveWriteTargetSchema>;
|
|
354
336
|
export declare const SiteEditSemanticSourceSchema: z.ZodObject<{
|
|
355
337
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
356
338
|
binding: "binding";
|
|
339
|
+
"repeat-template": "repeat-template";
|
|
357
340
|
"component-prop": "component-prop";
|
|
358
341
|
"imported-binding": "imported-binding";
|
|
359
|
-
"repeat-template": "repeat-template";
|
|
360
342
|
"jsx-literal": "jsx-literal";
|
|
361
343
|
"object-field": "object-field";
|
|
362
344
|
"array-item": "array-item";
|
|
363
345
|
"conditional-branch": "conditional-branch";
|
|
364
346
|
}>, z.ZodEnum<{
|
|
365
|
-
"cms-field": "cms-field";
|
|
366
347
|
"api-field": "api-field";
|
|
348
|
+
"cms-field": "cms-field";
|
|
367
349
|
"i18n-message": "i18n-message";
|
|
368
350
|
"config-entry": "config-entry";
|
|
369
351
|
}>]>;
|
|
@@ -371,8 +353,8 @@ export declare const SiteEditSemanticSourceSchema: z.ZodObject<{
|
|
|
371
353
|
displayPath: z.ZodString;
|
|
372
354
|
externalSource: z.ZodOptional<z.ZodObject<{
|
|
373
355
|
sourceType: z.ZodEnum<{
|
|
374
|
-
"cms-field": "cms-field";
|
|
375
356
|
"api-field": "api-field";
|
|
357
|
+
"cms-field": "cms-field";
|
|
376
358
|
"i18n-message": "i18n-message";
|
|
377
359
|
"config-entry": "config-entry";
|
|
378
360
|
}>;
|
|
@@ -384,16 +366,16 @@ export type SiteEditSemanticSource = z.infer<typeof SiteEditSemanticSourceSchema
|
|
|
384
366
|
export declare const SiteEditProvenanceHopSchema: z.ZodObject<{
|
|
385
367
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
386
368
|
binding: "binding";
|
|
369
|
+
"repeat-template": "repeat-template";
|
|
387
370
|
"component-prop": "component-prop";
|
|
388
371
|
"imported-binding": "imported-binding";
|
|
389
|
-
"repeat-template": "repeat-template";
|
|
390
372
|
"jsx-literal": "jsx-literal";
|
|
391
373
|
"object-field": "object-field";
|
|
392
374
|
"array-item": "array-item";
|
|
393
375
|
"conditional-branch": "conditional-branch";
|
|
394
376
|
}>, z.ZodEnum<{
|
|
395
|
-
"cms-field": "cms-field";
|
|
396
377
|
"api-field": "api-field";
|
|
378
|
+
"cms-field": "cms-field";
|
|
397
379
|
"i18n-message": "i18n-message";
|
|
398
380
|
"config-entry": "config-entry";
|
|
399
381
|
}>]>;
|
|
@@ -406,16 +388,16 @@ export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
|
406
388
|
finalSource: z.ZodNullable<z.ZodObject<{
|
|
407
389
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
408
390
|
binding: "binding";
|
|
391
|
+
"repeat-template": "repeat-template";
|
|
409
392
|
"component-prop": "component-prop";
|
|
410
393
|
"imported-binding": "imported-binding";
|
|
411
|
-
"repeat-template": "repeat-template";
|
|
412
394
|
"jsx-literal": "jsx-literal";
|
|
413
395
|
"object-field": "object-field";
|
|
414
396
|
"array-item": "array-item";
|
|
415
397
|
"conditional-branch": "conditional-branch";
|
|
416
398
|
}>, z.ZodEnum<{
|
|
417
|
-
"cms-field": "cms-field";
|
|
418
399
|
"api-field": "api-field";
|
|
400
|
+
"cms-field": "cms-field";
|
|
419
401
|
"i18n-message": "i18n-message";
|
|
420
402
|
"config-entry": "config-entry";
|
|
421
403
|
}>]>;
|
|
@@ -423,8 +405,8 @@ export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
|
423
405
|
displayPath: z.ZodString;
|
|
424
406
|
externalSource: z.ZodOptional<z.ZodObject<{
|
|
425
407
|
sourceType: z.ZodEnum<{
|
|
426
|
-
"cms-field": "cms-field";
|
|
427
408
|
"api-field": "api-field";
|
|
409
|
+
"cms-field": "cms-field";
|
|
428
410
|
"i18n-message": "i18n-message";
|
|
429
411
|
"config-entry": "config-entry";
|
|
430
412
|
}>;
|
|
@@ -435,16 +417,16 @@ export declare const SiteEditProvenanceChainSchema: z.ZodObject<{
|
|
|
435
417
|
chain: z.ZodArray<z.ZodObject<{
|
|
436
418
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
437
419
|
binding: "binding";
|
|
420
|
+
"repeat-template": "repeat-template";
|
|
438
421
|
"component-prop": "component-prop";
|
|
439
422
|
"imported-binding": "imported-binding";
|
|
440
|
-
"repeat-template": "repeat-template";
|
|
441
423
|
"jsx-literal": "jsx-literal";
|
|
442
424
|
"object-field": "object-field";
|
|
443
425
|
"array-item": "array-item";
|
|
444
426
|
"conditional-branch": "conditional-branch";
|
|
445
427
|
}>, z.ZodEnum<{
|
|
446
|
-
"cms-field": "cms-field";
|
|
447
428
|
"api-field": "api-field";
|
|
429
|
+
"cms-field": "cms-field";
|
|
448
430
|
"i18n-message": "i18n-message";
|
|
449
431
|
"config-entry": "config-entry";
|
|
450
432
|
}>]>;
|
|
@@ -475,8 +457,8 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
475
457
|
kind: z.ZodLiteral<"css-style-model">;
|
|
476
458
|
properties: z.ZodArray<z.ZodObject<{
|
|
477
459
|
property: z.ZodEnum<{
|
|
478
|
-
transform: "transform";
|
|
479
460
|
color: "color";
|
|
461
|
+
transform: "transform";
|
|
480
462
|
cursor: "cursor";
|
|
481
463
|
columns: "columns";
|
|
482
464
|
position: "position";
|
|
@@ -595,13 +577,13 @@ export declare const SiteEditStyleModelSchema: z.ZodUnion<readonly [z.ZodRecord<
|
|
|
595
577
|
message: z.ZodString;
|
|
596
578
|
}, z.core.$strip>>>;
|
|
597
579
|
operationBoundary: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
580
|
+
"set-props": "set-props";
|
|
598
581
|
"insert-child": "insert-child";
|
|
599
582
|
"update-text": "update-text";
|
|
600
583
|
"update-array-item": "update-array-item";
|
|
601
584
|
"remove-node": "remove-node";
|
|
602
585
|
"move-node": "move-node";
|
|
603
586
|
"set-class-name-source": "set-class-name-source";
|
|
604
|
-
"set-props": "set-props";
|
|
605
587
|
"apply-style-draft": "apply-style-draft";
|
|
606
588
|
"source-edit": "source-edit";
|
|
607
589
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -621,13 +603,13 @@ export declare const SiteEditStyleSourceSchema: z.ZodObject<{
|
|
|
621
603
|
}>;
|
|
622
604
|
editable: z.ZodBoolean;
|
|
623
605
|
operationBoundary: z.ZodArray<z.ZodEnum<{
|
|
606
|
+
"set-props": "set-props";
|
|
624
607
|
"insert-child": "insert-child";
|
|
625
608
|
"update-text": "update-text";
|
|
626
609
|
"update-array-item": "update-array-item";
|
|
627
610
|
"remove-node": "remove-node";
|
|
628
611
|
"move-node": "move-node";
|
|
629
612
|
"set-class-name-source": "set-class-name-source";
|
|
630
|
-
"set-props": "set-props";
|
|
631
613
|
"apply-style-draft": "apply-style-draft";
|
|
632
614
|
"source-edit": "source-edit";
|
|
633
615
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -755,9 +737,9 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
755
737
|
writeTarget: z.ZodObject<{
|
|
756
738
|
kind: z.ZodEnum<{
|
|
757
739
|
"jsx-node": "jsx-node";
|
|
740
|
+
"route-export": "route-export";
|
|
758
741
|
"component-proxy": "component-proxy";
|
|
759
742
|
"value-binding": "value-binding";
|
|
760
|
-
"route-export": "route-export";
|
|
761
743
|
}>;
|
|
762
744
|
file: z.ZodString;
|
|
763
745
|
componentName: z.ZodString;
|
|
@@ -766,16 +748,16 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
766
748
|
effectiveWriteTarget: z.ZodOptional<z.ZodObject<{
|
|
767
749
|
kind: z.ZodEnum<{
|
|
768
750
|
"jsx-node": "jsx-node";
|
|
769
|
-
"route-export": "route-export";
|
|
770
751
|
"value-path": "value-path";
|
|
752
|
+
"route-export": "route-export";
|
|
771
753
|
"external-entry": "external-entry";
|
|
772
754
|
}>;
|
|
773
755
|
file: z.ZodOptional<z.ZodString>;
|
|
774
756
|
isProxy: z.ZodBoolean;
|
|
775
757
|
displayPath: z.ZodOptional<z.ZodString>;
|
|
776
758
|
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
777
|
-
"cms-field": "cms-field";
|
|
778
759
|
"api-field": "api-field";
|
|
760
|
+
"cms-field": "cms-field";
|
|
779
761
|
"i18n-message": "i18n-message";
|
|
780
762
|
"config-entry": "config-entry";
|
|
781
763
|
}>>;
|
|
@@ -785,16 +767,16 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
785
767
|
finalSource: z.ZodNullable<z.ZodObject<{
|
|
786
768
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
787
769
|
binding: "binding";
|
|
770
|
+
"repeat-template": "repeat-template";
|
|
788
771
|
"component-prop": "component-prop";
|
|
789
772
|
"imported-binding": "imported-binding";
|
|
790
|
-
"repeat-template": "repeat-template";
|
|
791
773
|
"jsx-literal": "jsx-literal";
|
|
792
774
|
"object-field": "object-field";
|
|
793
775
|
"array-item": "array-item";
|
|
794
776
|
"conditional-branch": "conditional-branch";
|
|
795
777
|
}>, z.ZodEnum<{
|
|
796
|
-
"cms-field": "cms-field";
|
|
797
778
|
"api-field": "api-field";
|
|
779
|
+
"cms-field": "cms-field";
|
|
798
780
|
"i18n-message": "i18n-message";
|
|
799
781
|
"config-entry": "config-entry";
|
|
800
782
|
}>]>;
|
|
@@ -802,8 +784,8 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
802
784
|
displayPath: z.ZodString;
|
|
803
785
|
externalSource: z.ZodOptional<z.ZodObject<{
|
|
804
786
|
sourceType: z.ZodEnum<{
|
|
805
|
-
"cms-field": "cms-field";
|
|
806
787
|
"api-field": "api-field";
|
|
788
|
+
"cms-field": "cms-field";
|
|
807
789
|
"i18n-message": "i18n-message";
|
|
808
790
|
"config-entry": "config-entry";
|
|
809
791
|
}>;
|
|
@@ -814,16 +796,16 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
814
796
|
chain: z.ZodArray<z.ZodObject<{
|
|
815
797
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
816
798
|
binding: "binding";
|
|
799
|
+
"repeat-template": "repeat-template";
|
|
817
800
|
"component-prop": "component-prop";
|
|
818
801
|
"imported-binding": "imported-binding";
|
|
819
|
-
"repeat-template": "repeat-template";
|
|
820
802
|
"jsx-literal": "jsx-literal";
|
|
821
803
|
"object-field": "object-field";
|
|
822
804
|
"array-item": "array-item";
|
|
823
805
|
"conditional-branch": "conditional-branch";
|
|
824
806
|
}>, z.ZodEnum<{
|
|
825
|
-
"cms-field": "cms-field";
|
|
826
807
|
"api-field": "api-field";
|
|
808
|
+
"cms-field": "cms-field";
|
|
827
809
|
"i18n-message": "i18n-message";
|
|
828
810
|
"config-entry": "config-entry";
|
|
829
811
|
}>]>;
|
|
@@ -863,13 +845,13 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
863
845
|
}>;
|
|
864
846
|
editable: z.ZodBoolean;
|
|
865
847
|
operationBoundary: z.ZodArray<z.ZodEnum<{
|
|
848
|
+
"set-props": "set-props";
|
|
866
849
|
"insert-child": "insert-child";
|
|
867
850
|
"update-text": "update-text";
|
|
868
851
|
"update-array-item": "update-array-item";
|
|
869
852
|
"remove-node": "remove-node";
|
|
870
853
|
"move-node": "move-node";
|
|
871
854
|
"set-class-name-source": "set-class-name-source";
|
|
872
|
-
"set-props": "set-props";
|
|
873
855
|
"apply-style-draft": "apply-style-draft";
|
|
874
856
|
"source-edit": "source-edit";
|
|
875
857
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -899,8 +881,8 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
899
881
|
"unknown-api": "unknown-api";
|
|
900
882
|
}>;
|
|
901
883
|
sourceType: z.ZodEnum<{
|
|
902
|
-
"cms-field": "cms-field";
|
|
903
884
|
"api-field": "api-field";
|
|
885
|
+
"cms-field": "cms-field";
|
|
904
886
|
}>;
|
|
905
887
|
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
906
888
|
operation: z.ZodOptional<z.ZodString>;
|
|
@@ -930,6 +912,96 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
930
912
|
}, z.core.$strip>>;
|
|
931
913
|
}, z.core.$strip>>;
|
|
932
914
|
}, z.core.$strip>>;
|
|
915
|
+
properties: z.ZodOptional<z.ZodObject<{
|
|
916
|
+
documentVersion: z.ZodNumber;
|
|
917
|
+
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
918
|
+
key: z.ZodString;
|
|
919
|
+
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
920
|
+
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
921
|
+
}, z.core.$strip>>;
|
|
922
|
+
items: z.ZodArray<z.ZodObject<{
|
|
923
|
+
name: z.ZodString;
|
|
924
|
+
source: z.ZodObject<{
|
|
925
|
+
kind: z.ZodEnum<{
|
|
926
|
+
literal: "literal";
|
|
927
|
+
binding: "binding";
|
|
928
|
+
expression: "expression";
|
|
929
|
+
"boolean-shorthand": "boolean-shorthand";
|
|
930
|
+
"repeat-template": "repeat-template";
|
|
931
|
+
}>;
|
|
932
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
933
|
+
}, z.core.$strict>;
|
|
934
|
+
resolution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
935
|
+
status: z.ZodLiteral<"resolved">;
|
|
936
|
+
value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
|
|
937
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
938
|
+
status: z.ZodLiteral<"undefined">;
|
|
939
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
940
|
+
status: z.ZodLiteral<"unresolved">;
|
|
941
|
+
}, z.core.$strict>], "status">;
|
|
942
|
+
editMode: z.ZodEnum<{
|
|
943
|
+
readonly: "readonly";
|
|
944
|
+
unsupported: "unsupported";
|
|
945
|
+
direct: "direct";
|
|
946
|
+
proxy: "proxy";
|
|
947
|
+
upstream: "upstream";
|
|
948
|
+
}>;
|
|
949
|
+
sourceScope: z.ZodEnum<{
|
|
950
|
+
node: "node";
|
|
951
|
+
"repeat-template": "repeat-template";
|
|
952
|
+
"repeat-item": "repeat-item";
|
|
953
|
+
}>;
|
|
954
|
+
allowedWriteScopes: z.ZodArray<z.ZodEnum<{
|
|
955
|
+
template: "template";
|
|
956
|
+
selection: "selection";
|
|
957
|
+
}>>;
|
|
958
|
+
effectiveWriteTarget: z.ZodOptional<z.ZodObject<{
|
|
959
|
+
kind: z.ZodEnum<{
|
|
960
|
+
"jsx-node": "jsx-node";
|
|
961
|
+
"value-path": "value-path";
|
|
962
|
+
"route-export": "route-export";
|
|
963
|
+
"external-entry": "external-entry";
|
|
964
|
+
}>;
|
|
965
|
+
file: z.ZodOptional<z.ZodString>;
|
|
966
|
+
isProxy: z.ZodBoolean;
|
|
967
|
+
displayPath: z.ZodOptional<z.ZodString>;
|
|
968
|
+
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
969
|
+
"api-field": "api-field";
|
|
970
|
+
"cms-field": "cms-field";
|
|
971
|
+
"i18n-message": "i18n-message";
|
|
972
|
+
"config-entry": "config-entry";
|
|
973
|
+
}>>;
|
|
974
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
975
|
+
}, z.core.$strip>>;
|
|
976
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
977
|
+
code: z.ZodString;
|
|
978
|
+
message: z.ZodString;
|
|
979
|
+
}, z.core.$strict>>;
|
|
980
|
+
}, z.core.$strict>>;
|
|
981
|
+
spreads: z.ZodArray<z.ZodObject<{
|
|
982
|
+
raw: z.ZodString;
|
|
983
|
+
sourceRange: z.ZodObject<{
|
|
984
|
+
start: z.ZodNumber;
|
|
985
|
+
end: z.ZodNumber;
|
|
986
|
+
}, z.core.$strip>;
|
|
987
|
+
order: z.ZodNumber;
|
|
988
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
989
|
+
code: z.ZodString;
|
|
990
|
+
message: z.ZodString;
|
|
991
|
+
}, z.core.$strict>>;
|
|
992
|
+
}, z.core.$strict>>;
|
|
993
|
+
creation: z.ZodObject<{
|
|
994
|
+
selection: z.ZodEnum<{
|
|
995
|
+
unsupported: "unsupported";
|
|
996
|
+
direct: "direct";
|
|
997
|
+
materialize: "materialize";
|
|
998
|
+
}>;
|
|
999
|
+
template: z.ZodEnum<{
|
|
1000
|
+
unsupported: "unsupported";
|
|
1001
|
+
direct: "direct";
|
|
1002
|
+
}>;
|
|
1003
|
+
}, z.core.$strict>;
|
|
1004
|
+
}, z.core.$strict>>;
|
|
933
1005
|
textSegments: z.ZodArray<z.ZodObject<{
|
|
934
1006
|
index: z.ZodNumber;
|
|
935
1007
|
value: z.ZodString;
|
|
@@ -938,8 +1010,8 @@ export declare const SiteEditObjectDetailSchema: z.ZodObject<{
|
|
|
938
1010
|
kind: z.ZodEnum<{
|
|
939
1011
|
literal: "literal";
|
|
940
1012
|
binding: "binding";
|
|
941
|
-
"imported-binding": "imported-binding";
|
|
942
1013
|
"repeat-template": "repeat-template";
|
|
1014
|
+
"imported-binding": "imported-binding";
|
|
943
1015
|
}>;
|
|
944
1016
|
file: z.ZodString;
|
|
945
1017
|
expression: z.ZodString;
|
|
@@ -1156,8 +1228,8 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
|
1156
1228
|
sourceKind: z.ZodNullable<z.ZodEnum<{
|
|
1157
1229
|
literal: "literal";
|
|
1158
1230
|
binding: "binding";
|
|
1159
|
-
"imported-binding": "imported-binding";
|
|
1160
1231
|
"repeat-template": "repeat-template";
|
|
1232
|
+
"imported-binding": "imported-binding";
|
|
1161
1233
|
}>>;
|
|
1162
1234
|
}, z.core.$strip>>;
|
|
1163
1235
|
dynamicData: z.ZodOptional<z.ZodObject<{
|
|
@@ -1173,8 +1245,8 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
|
1173
1245
|
"unknown-api": "unknown-api";
|
|
1174
1246
|
}>;
|
|
1175
1247
|
sourceType: z.ZodEnum<{
|
|
1176
|
-
"cms-field": "cms-field";
|
|
1177
1248
|
"api-field": "api-field";
|
|
1249
|
+
"cms-field": "cms-field";
|
|
1178
1250
|
}>;
|
|
1179
1251
|
endpointPattern: z.ZodOptional<z.ZodString>;
|
|
1180
1252
|
operation: z.ZodOptional<z.ZodString>;
|
|
@@ -1204,6 +1276,96 @@ export declare const SiteEditObjectEditContextSchema: z.ZodObject<{
|
|
|
1204
1276
|
}, z.core.$strip>>;
|
|
1205
1277
|
}, z.core.$strip>>;
|
|
1206
1278
|
}, z.core.$strip>>;
|
|
1279
|
+
properties: z.ZodOptional<z.ZodObject<{
|
|
1280
|
+
documentVersion: z.ZodNumber;
|
|
1281
|
+
selectionRef: z.ZodOptional<z.ZodObject<{
|
|
1282
|
+
key: z.ZodString;
|
|
1283
|
+
instanceIndex: z.ZodOptional<z.ZodNumber>;
|
|
1284
|
+
instanceCount: z.ZodOptional<z.ZodNumber>;
|
|
1285
|
+
}, z.core.$strip>>;
|
|
1286
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1287
|
+
name: z.ZodString;
|
|
1288
|
+
source: z.ZodObject<{
|
|
1289
|
+
kind: z.ZodEnum<{
|
|
1290
|
+
literal: "literal";
|
|
1291
|
+
binding: "binding";
|
|
1292
|
+
expression: "expression";
|
|
1293
|
+
"boolean-shorthand": "boolean-shorthand";
|
|
1294
|
+
"repeat-template": "repeat-template";
|
|
1295
|
+
}>;
|
|
1296
|
+
raw: z.ZodOptional<z.ZodString>;
|
|
1297
|
+
}, z.core.$strict>;
|
|
1298
|
+
resolution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1299
|
+
status: z.ZodLiteral<"resolved">;
|
|
1300
|
+
value: z.ZodType<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown, z.core.$ZodTypeInternals<import("./site-edit-operation-value.js").SiteEditOperationValue, unknown>>;
|
|
1301
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1302
|
+
status: z.ZodLiteral<"undefined">;
|
|
1303
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1304
|
+
status: z.ZodLiteral<"unresolved">;
|
|
1305
|
+
}, z.core.$strict>], "status">;
|
|
1306
|
+
editMode: z.ZodEnum<{
|
|
1307
|
+
readonly: "readonly";
|
|
1308
|
+
unsupported: "unsupported";
|
|
1309
|
+
direct: "direct";
|
|
1310
|
+
proxy: "proxy";
|
|
1311
|
+
upstream: "upstream";
|
|
1312
|
+
}>;
|
|
1313
|
+
sourceScope: z.ZodEnum<{
|
|
1314
|
+
node: "node";
|
|
1315
|
+
"repeat-template": "repeat-template";
|
|
1316
|
+
"repeat-item": "repeat-item";
|
|
1317
|
+
}>;
|
|
1318
|
+
allowedWriteScopes: z.ZodArray<z.ZodEnum<{
|
|
1319
|
+
template: "template";
|
|
1320
|
+
selection: "selection";
|
|
1321
|
+
}>>;
|
|
1322
|
+
effectiveWriteTarget: z.ZodOptional<z.ZodObject<{
|
|
1323
|
+
kind: z.ZodEnum<{
|
|
1324
|
+
"jsx-node": "jsx-node";
|
|
1325
|
+
"value-path": "value-path";
|
|
1326
|
+
"route-export": "route-export";
|
|
1327
|
+
"external-entry": "external-entry";
|
|
1328
|
+
}>;
|
|
1329
|
+
file: z.ZodOptional<z.ZodString>;
|
|
1330
|
+
isProxy: z.ZodBoolean;
|
|
1331
|
+
displayPath: z.ZodOptional<z.ZodString>;
|
|
1332
|
+
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
1333
|
+
"api-field": "api-field";
|
|
1334
|
+
"cms-field": "cms-field";
|
|
1335
|
+
"i18n-message": "i18n-message";
|
|
1336
|
+
"config-entry": "config-entry";
|
|
1337
|
+
}>>;
|
|
1338
|
+
sourceId: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
}, z.core.$strip>>;
|
|
1340
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
1341
|
+
code: z.ZodString;
|
|
1342
|
+
message: z.ZodString;
|
|
1343
|
+
}, z.core.$strict>>;
|
|
1344
|
+
}, z.core.$strict>>;
|
|
1345
|
+
spreads: z.ZodArray<z.ZodObject<{
|
|
1346
|
+
raw: z.ZodString;
|
|
1347
|
+
sourceRange: z.ZodObject<{
|
|
1348
|
+
start: z.ZodNumber;
|
|
1349
|
+
end: z.ZodNumber;
|
|
1350
|
+
}, z.core.$strip>;
|
|
1351
|
+
order: z.ZodNumber;
|
|
1352
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
1353
|
+
code: z.ZodString;
|
|
1354
|
+
message: z.ZodString;
|
|
1355
|
+
}, z.core.$strict>>;
|
|
1356
|
+
}, z.core.$strict>>;
|
|
1357
|
+
creation: z.ZodObject<{
|
|
1358
|
+
selection: z.ZodEnum<{
|
|
1359
|
+
unsupported: "unsupported";
|
|
1360
|
+
direct: "direct";
|
|
1361
|
+
materialize: "materialize";
|
|
1362
|
+
}>;
|
|
1363
|
+
template: z.ZodEnum<{
|
|
1364
|
+
unsupported: "unsupported";
|
|
1365
|
+
direct: "direct";
|
|
1366
|
+
}>;
|
|
1367
|
+
}, z.core.$strict>;
|
|
1368
|
+
}, z.core.$strict>>;
|
|
1207
1369
|
boundaryKind: z.ZodNullable<z.ZodEnum<{
|
|
1208
1370
|
"component-boundary": "component-boundary";
|
|
1209
1371
|
"repeat-region": "repeat-region";
|
|
@@ -1231,13 +1393,13 @@ export declare const SiteEditObjectStyleDetailSchema: z.ZodObject<{
|
|
|
1231
1393
|
}>;
|
|
1232
1394
|
editable: z.ZodBoolean;
|
|
1233
1395
|
operationBoundary: z.ZodArray<z.ZodEnum<{
|
|
1396
|
+
"set-props": "set-props";
|
|
1234
1397
|
"insert-child": "insert-child";
|
|
1235
1398
|
"update-text": "update-text";
|
|
1236
1399
|
"update-array-item": "update-array-item";
|
|
1237
1400
|
"remove-node": "remove-node";
|
|
1238
1401
|
"move-node": "move-node";
|
|
1239
1402
|
"set-class-name-source": "set-class-name-source";
|
|
1240
|
-
"set-props": "set-props";
|
|
1241
1403
|
"apply-style-draft": "apply-style-draft";
|
|
1242
1404
|
"source-edit": "source-edit";
|
|
1243
1405
|
"insert-page-resource": "insert-page-resource";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Properties accepted by the legacy Style Panel draft transaction only. */
|
|
3
|
+
export declare const SiteEditStyleDraftPropertySchema: z.ZodEnum<{
|
|
4
|
+
src: "src";
|
|
5
|
+
alt: "alt";
|
|
6
|
+
poster: "poster";
|
|
7
|
+
href: "href";
|
|
8
|
+
width: "width";
|
|
9
|
+
height: "height";
|
|
10
|
+
}>;
|
|
11
|
+
export type SiteEditStyleDraftProperty = z.infer<typeof SiteEditStyleDraftPropertySchema>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* 由 release-edit-engine-packages.ts 在 bump 版本时自动更新。
|
|
7
7
|
*/
|
|
8
|
-
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.
|
|
8
|
+
export declare const CURRENT_EDIT_ENGINE_VERSION = "0.10.1";
|
|
9
9
|
export declare const EDIT_ENGINE_VERSION_HEADER = "x-vcp-edit-engine-version";
|
|
10
10
|
export declare const EDIT_ENGINE_VERSION_SOURCE_HEADER = "x-vcp-edit-engine-version-source";
|
|
11
11
|
export type EditEngineVersionSource = "explicit" | "fallback_current" | "system_current";
|
|
@@ -125,11 +125,11 @@ export declare const NavItemSchema: z.ZodObject<{
|
|
|
125
125
|
label: z.ZodString;
|
|
126
126
|
href: z.ZodOptional<z.ZodString>;
|
|
127
127
|
targetType: z.ZodOptional<z.ZodEnum<{
|
|
128
|
-
file: "file";
|
|
129
|
-
external: "external";
|
|
130
|
-
anchor: "anchor";
|
|
131
128
|
email: "email";
|
|
129
|
+
file: "file";
|
|
132
130
|
page: "page";
|
|
131
|
+
anchor: "anchor";
|
|
132
|
+
external: "external";
|
|
133
133
|
phone: "phone";
|
|
134
134
|
group: "group";
|
|
135
135
|
}>>;
|
|
@@ -146,11 +146,11 @@ export declare const NavItemSchema: z.ZodObject<{
|
|
|
146
146
|
label: z.ZodString;
|
|
147
147
|
href: z.ZodOptional<z.ZodString>;
|
|
148
148
|
targetType: z.ZodOptional<z.ZodEnum<{
|
|
149
|
-
file: "file";
|
|
150
|
-
external: "external";
|
|
151
|
-
anchor: "anchor";
|
|
152
149
|
email: "email";
|
|
150
|
+
file: "file";
|
|
153
151
|
page: "page";
|
|
152
|
+
anchor: "anchor";
|
|
153
|
+
external: "external";
|
|
154
154
|
phone: "phone";
|
|
155
155
|
group: "group";
|
|
156
156
|
}>>;
|