@uniformdev/canvas 18.33.1-alpha.7 → 18.34.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 +386 -386
- package/dist/index.esm.js +48 -6
- package/dist/index.js +52 -6
- package/dist/index.mjs +48 -6
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -148,10 +148,8 @@ interface components$2 {
|
|
148
148
|
connectedData?: components$2["schemas"]["DataElementConnectionDefinition"];
|
149
149
|
};
|
150
150
|
/**
|
151
|
-
* @
|
152
|
-
*
|
153
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
154
|
-
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
151
|
+
* @deprecated
|
152
|
+
* @description Defines a connection to a data element on a data resource. Do not use.
|
155
153
|
*/
|
156
154
|
DataElementConnectionDefinition: {
|
157
155
|
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
@@ -161,14 +159,6 @@ interface components$2 {
|
|
161
159
|
* @enum {string}
|
162
160
|
*/
|
163
161
|
syntax: "jptr";
|
164
|
-
/**
|
165
|
-
* @description Whether an error should occur if the connected data element cannot be resolved (i.e. a missing property in the data resource).
|
166
|
-
* In all cases the binding process will remove the parameter data for the unresolvable data element.
|
167
|
-
* When this is true, and the data element failed to bind, the warning entry returned from the binding process will be changed to an error entry.
|
168
|
-
*
|
169
|
-
* @default false
|
170
|
-
*/
|
171
|
-
required?: boolean;
|
172
162
|
};
|
173
163
|
/** @description Defines the shape of a component instance served by the composition API. */
|
174
164
|
ComponentInstance: {
|
@@ -194,6 +184,7 @@ interface components$2 {
|
|
194
184
|
_pattern?: string;
|
195
185
|
_dataResources?: components$2["schemas"]["DataResourceDefinitions"];
|
196
186
|
/**
|
187
|
+
* @deprecated
|
197
188
|
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
198
189
|
* Means nothing for PUTs; it will be ignored.
|
199
190
|
*/
|
@@ -210,26 +201,20 @@ interface components$2 {
|
|
210
201
|
*/
|
211
202
|
_patternError?: "NOTFOUND" | "CYCLIC";
|
212
203
|
/**
|
213
|
-
* @
|
214
|
-
*
|
215
|
-
*
|
216
|
-
*
|
217
|
-
*
|
218
|
-
* and a pattern on the composition define an override on a nested pattern,
|
219
|
-
* the composition's override replaces the pattern's.
|
220
|
-
*
|
221
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
222
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
204
|
+
* @deprecated
|
205
|
+
* @description Experimental functionality subject to change without notice.
|
206
|
+
* Contains overrides that are defined on a pattern instance reference nested in a composition.
|
207
|
+
* This is always undefined unless `skipOverridesResolution` is true.
|
208
|
+
* See `_overrides` on `RootComponentInstance`.
|
223
209
|
*/
|
224
210
|
_overrides?: {
|
225
211
|
[key: string]: components$2["schemas"]["ComponentOverride"];
|
226
212
|
};
|
227
213
|
/**
|
228
|
-
* @
|
214
|
+
* @deprecated
|
215
|
+
* @description Experimental functionality subject to change without notice.
|
216
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
229
217
|
* by consumers of the pattern.
|
230
|
-
*
|
231
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
232
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
233
218
|
*/
|
234
219
|
_overridability?: components$2["schemas"]["ComponentOverridability"];
|
235
220
|
};
|
@@ -257,34 +242,31 @@ interface components$2 {
|
|
257
242
|
_name: string;
|
258
243
|
_dataResources?: components$2["schemas"]["DataResourceDefinitions"];
|
259
244
|
/**
|
260
|
-
* @
|
245
|
+
* @deprecated
|
246
|
+
* @description Experimental functionality subject to change without notice.
|
247
|
+
* Defines patch overrides to component IDs that live in the composition.
|
261
248
|
* This can be used to override parameters that are defined on patterns,
|
262
249
|
* including nested patterns, with values that are specific to this composition.
|
263
250
|
* The keys in this object are component IDs.
|
264
251
|
* Overrides are applied from the top down, so for example if both the composition
|
265
252
|
* and a pattern on the composition define an override on a nested pattern,
|
266
253
|
* the composition's override replaces the pattern's.
|
267
|
-
*
|
268
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
269
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
270
254
|
*/
|
271
255
|
_overrides?: {
|
272
256
|
[key: string]: components$2["schemas"]["ComponentOverride"];
|
273
257
|
};
|
274
258
|
/**
|
275
|
-
* @
|
259
|
+
* @deprecated
|
260
|
+
* @description Experimental functionality subject to change without notice.
|
261
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
276
262
|
* by consumers of the pattern.
|
277
|
-
*
|
278
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
279
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
280
263
|
*/
|
281
264
|
_overridability?: components$2["schemas"]["ComponentOverridability"];
|
282
265
|
};
|
283
266
|
/**
|
284
|
-
* @
|
285
|
-
*
|
286
|
-
*
|
287
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
267
|
+
* @deprecated
|
268
|
+
* @description Experimental functionality subject to change without notice.
|
269
|
+
* Defines how to override a specific component.
|
288
270
|
*/
|
289
271
|
ComponentOverride: {
|
290
272
|
parameters?: {
|
@@ -293,11 +275,10 @@ interface components$2 {
|
|
293
275
|
variant?: string;
|
294
276
|
};
|
295
277
|
/**
|
296
|
-
* @
|
297
|
-
*
|
298
|
-
*
|
299
|
-
* NOTE:
|
300
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
278
|
+
* @deprecated
|
279
|
+
* @description Experimental functionality subject to change without notice.
|
280
|
+
* Defines how a component on a pattern may have its values overridden.
|
281
|
+
* NOTE: Data resources' overridability is defined in the data resource definition.
|
301
282
|
*/
|
302
283
|
ComponentOverridability: {
|
303
284
|
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
@@ -308,15 +289,13 @@ interface components$2 {
|
|
308
289
|
variants?: boolean;
|
309
290
|
};
|
310
291
|
/**
|
311
|
-
* @
|
312
|
-
*
|
313
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
314
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
315
|
-
*
|
292
|
+
* @deprecated
|
293
|
+
* @description Experimental functionality subject to change without notice.
|
316
294
|
* @enum {string}
|
317
295
|
*/
|
318
296
|
OverrideOptions: "yes" | "no";
|
319
297
|
/**
|
298
|
+
* @deprecated
|
320
299
|
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
321
300
|
* These are created in the UI and shared across a whole project.
|
322
301
|
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
@@ -350,7 +329,10 @@ interface components$2 {
|
|
350
329
|
[key: string]: unknown;
|
351
330
|
};
|
352
331
|
};
|
353
|
-
/**
|
332
|
+
/**
|
333
|
+
* @deprecated
|
334
|
+
* @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
335
|
+
*/
|
354
336
|
DataType: {
|
355
337
|
/** @description Public ID of the data type */
|
356
338
|
id: string;
|
@@ -407,7 +389,10 @@ interface components$2 {
|
|
407
389
|
[key: string]: unknown;
|
408
390
|
};
|
409
391
|
};
|
410
|
-
/**
|
392
|
+
/**
|
393
|
+
* @deprecated
|
394
|
+
* @description Defines the shape of a data variable on a Data Source or Data Type
|
395
|
+
*/
|
411
396
|
DataVariableDefinition: {
|
412
397
|
/** @description Display name of the data variable */
|
413
398
|
displayName?: string;
|
@@ -424,13 +409,17 @@ interface components$2 {
|
|
424
409
|
order?: number;
|
425
410
|
};
|
426
411
|
/**
|
412
|
+
* @deprecated
|
427
413
|
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
428
414
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
429
415
|
*/
|
430
416
|
DataResourceDefinitions: {
|
431
417
|
[key: string]: components$2["schemas"]["DataResourceDefinition"];
|
432
418
|
};
|
433
|
-
/**
|
419
|
+
/**
|
420
|
+
* @deprecated
|
421
|
+
* @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters
|
422
|
+
*/
|
434
423
|
DataResourceDefinition: {
|
435
424
|
/** @description Public ID of the data type that provides this data */
|
436
425
|
type: string;
|
@@ -444,7 +433,10 @@ interface components$2 {
|
|
444
433
|
ignorePatternParameterDefault?: boolean;
|
445
434
|
variables?: components$2["schemas"]["DataResourceVariables"];
|
446
435
|
};
|
447
|
-
/**
|
436
|
+
/**
|
437
|
+
* @deprecated
|
438
|
+
* @description Variable values for a data resource.
|
439
|
+
*/
|
448
440
|
DataResourceVariables: {
|
449
441
|
[key: string]: string;
|
450
442
|
};
|
@@ -750,10 +742,8 @@ interface external$5 {
|
|
750
742
|
connectedData?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
751
743
|
};
|
752
744
|
/**
|
753
|
-
* @
|
754
|
-
*
|
755
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
756
|
-
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
745
|
+
* @deprecated
|
746
|
+
* @description Defines a connection to a data element on a data resource. Do not use.
|
757
747
|
*/
|
758
748
|
DataElementConnectionDefinition: {
|
759
749
|
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
@@ -763,14 +753,6 @@ interface external$5 {
|
|
763
753
|
* @enum {string}
|
764
754
|
*/
|
765
755
|
syntax: "jptr";
|
766
|
-
/**
|
767
|
-
* @description Whether an error should occur if the connected data element cannot be resolved (i.e. a missing property in the data resource).
|
768
|
-
* In all cases the binding process will remove the parameter data for the unresolvable data element.
|
769
|
-
* When this is true, and the data element failed to bind, the warning entry returned from the binding process will be changed to an error entry.
|
770
|
-
*
|
771
|
-
* @default false
|
772
|
-
*/
|
773
|
-
required?: boolean;
|
774
756
|
};
|
775
757
|
/** @description Defines the shape of a component instance served by the composition API. */
|
776
758
|
ComponentInstance: {
|
@@ -796,6 +778,7 @@ interface external$5 {
|
|
796
778
|
_pattern?: string;
|
797
779
|
_dataResources?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
798
780
|
/**
|
781
|
+
* @deprecated
|
799
782
|
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
800
783
|
* Means nothing for PUTs; it will be ignored.
|
801
784
|
*/
|
@@ -812,26 +795,20 @@ interface external$5 {
|
|
812
795
|
*/
|
813
796
|
_patternError?: "NOTFOUND" | "CYCLIC";
|
814
797
|
/**
|
815
|
-
* @
|
816
|
-
*
|
817
|
-
*
|
818
|
-
*
|
819
|
-
*
|
820
|
-
* and a pattern on the composition define an override on a nested pattern,
|
821
|
-
* the composition's override replaces the pattern's.
|
822
|
-
*
|
823
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
824
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
798
|
+
* @deprecated
|
799
|
+
* @description Experimental functionality subject to change without notice.
|
800
|
+
* Contains overrides that are defined on a pattern instance reference nested in a composition.
|
801
|
+
* This is always undefined unless `skipOverridesResolution` is true.
|
802
|
+
* See `_overrides` on `RootComponentInstance`.
|
825
803
|
*/
|
826
804
|
_overrides?: {
|
827
805
|
[key: string]: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
828
806
|
};
|
829
807
|
/**
|
830
|
-
* @
|
808
|
+
* @deprecated
|
809
|
+
* @description Experimental functionality subject to change without notice.
|
810
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
831
811
|
* by consumers of the pattern.
|
832
|
-
*
|
833
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
834
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
835
812
|
*/
|
836
813
|
_overridability?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
837
814
|
};
|
@@ -859,34 +836,31 @@ interface external$5 {
|
|
859
836
|
_name: string;
|
860
837
|
_dataResources?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
861
838
|
/**
|
862
|
-
* @
|
839
|
+
* @deprecated
|
840
|
+
* @description Experimental functionality subject to change without notice.
|
841
|
+
* Defines patch overrides to component IDs that live in the composition.
|
863
842
|
* This can be used to override parameters that are defined on patterns,
|
864
843
|
* including nested patterns, with values that are specific to this composition.
|
865
844
|
* The keys in this object are component IDs.
|
866
845
|
* Overrides are applied from the top down, so for example if both the composition
|
867
846
|
* and a pattern on the composition define an override on a nested pattern,
|
868
847
|
* the composition's override replaces the pattern's.
|
869
|
-
*
|
870
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
871
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
872
848
|
*/
|
873
849
|
_overrides?: {
|
874
850
|
[key: string]: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
875
851
|
};
|
876
852
|
/**
|
877
|
-
* @
|
853
|
+
* @deprecated
|
854
|
+
* @description Experimental functionality subject to change without notice.
|
855
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
878
856
|
* by consumers of the pattern.
|
879
|
-
*
|
880
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
881
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
882
857
|
*/
|
883
858
|
_overridability?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
884
859
|
};
|
885
860
|
/**
|
886
|
-
* @
|
887
|
-
*
|
888
|
-
*
|
889
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
861
|
+
* @deprecated
|
862
|
+
* @description Experimental functionality subject to change without notice.
|
863
|
+
* Defines how to override a specific component.
|
890
864
|
*/
|
891
865
|
ComponentOverride: {
|
892
866
|
parameters?: {
|
@@ -895,11 +869,10 @@ interface external$5 {
|
|
895
869
|
variant?: string;
|
896
870
|
};
|
897
871
|
/**
|
898
|
-
* @
|
899
|
-
*
|
900
|
-
*
|
901
|
-
* NOTE:
|
902
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
872
|
+
* @deprecated
|
873
|
+
* @description Experimental functionality subject to change without notice.
|
874
|
+
* Defines how a component on a pattern may have its values overridden.
|
875
|
+
* NOTE: Data resources' overridability is defined in the data resource definition.
|
903
876
|
*/
|
904
877
|
ComponentOverridability: {
|
905
878
|
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
@@ -910,15 +883,13 @@ interface external$5 {
|
|
910
883
|
variants?: boolean;
|
911
884
|
};
|
912
885
|
/**
|
913
|
-
* @
|
914
|
-
*
|
915
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
916
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
917
|
-
*
|
886
|
+
* @deprecated
|
887
|
+
* @description Experimental functionality subject to change without notice.
|
918
888
|
* @enum {string}
|
919
889
|
*/
|
920
890
|
OverrideOptions: "yes" | "no";
|
921
891
|
/**
|
892
|
+
* @deprecated
|
922
893
|
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
923
894
|
* These are created in the UI and shared across a whole project.
|
924
895
|
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
@@ -952,7 +923,10 @@ interface external$5 {
|
|
952
923
|
[key: string]: unknown;
|
953
924
|
};
|
954
925
|
};
|
955
|
-
/**
|
926
|
+
/**
|
927
|
+
* @deprecated
|
928
|
+
* @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
929
|
+
*/
|
956
930
|
DataType: {
|
957
931
|
/** @description Public ID of the data type */
|
958
932
|
id: string;
|
@@ -1009,7 +983,10 @@ interface external$5 {
|
|
1009
983
|
[key: string]: unknown;
|
1010
984
|
};
|
1011
985
|
};
|
1012
|
-
/**
|
986
|
+
/**
|
987
|
+
* @deprecated
|
988
|
+
* @description Defines the shape of a data variable on a Data Source or Data Type
|
989
|
+
*/
|
1013
990
|
DataVariableDefinition: {
|
1014
991
|
/** @description Display name of the data variable */
|
1015
992
|
displayName?: string;
|
@@ -1026,13 +1003,17 @@ interface external$5 {
|
|
1026
1003
|
order?: number;
|
1027
1004
|
};
|
1028
1005
|
/**
|
1006
|
+
* @deprecated
|
1029
1007
|
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
1030
1008
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
1031
1009
|
*/
|
1032
1010
|
DataResourceDefinitions: {
|
1033
1011
|
[key: string]: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
1034
1012
|
};
|
1035
|
-
/**
|
1013
|
+
/**
|
1014
|
+
* @deprecated
|
1015
|
+
* @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters
|
1016
|
+
*/
|
1036
1017
|
DataResourceDefinition: {
|
1037
1018
|
/** @description Public ID of the data type that provides this data */
|
1038
1019
|
type: string;
|
@@ -1046,7 +1027,10 @@ interface external$5 {
|
|
1046
1027
|
ignorePatternParameterDefault?: boolean;
|
1047
1028
|
variables?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
1048
1029
|
};
|
1049
|
-
/**
|
1030
|
+
/**
|
1031
|
+
* @deprecated
|
1032
|
+
* @description Variable values for a data resource.
|
1033
|
+
*/
|
1050
1034
|
DataResourceVariables: {
|
1051
1035
|
[key: string]: string;
|
1052
1036
|
};
|
@@ -1081,6 +1065,14 @@ type ComponentDefinitionPutParameters = Api$1['put']['requestBody']['content']['
|
|
1081
1065
|
type ComponentDefinitionDeleteParameters = Api$1['delete']['requestBody']['content']['application/json'];
|
1082
1066
|
/** Query parameter options for GET /api/v1/canvas-definitions */
|
1083
1067
|
type ComponentDefinitionGetParameters = Api$1['get']['parameters']['query'];
|
1068
|
+
/** @deprecated use ComponentDefinitionGetResponse instead */
|
1069
|
+
type ComponentDefinitionAPIResponse = ComponentDefinitionGetResponse;
|
1070
|
+
/** @deprecated use ComponentDefinitionPutParameters */
|
1071
|
+
type ComponentDefinitionAPIPutRequest = ComponentDefinitionPutParameters;
|
1072
|
+
/** @deprecated use ComponentDefinitionDeleteParameters */
|
1073
|
+
type ComponentDefinitionAPIDeleteRequest = ComponentDefinitionDeleteParameters;
|
1074
|
+
/** @deprecated use ComponentDefinitionGetParameters */
|
1075
|
+
type ComponentDefinitionListAPIOptions = ComponentDefinitionGetParameters;
|
1084
1076
|
/** The definition of a component parameter */
|
1085
1077
|
type ComponentDefinitionParameter<TConfig = unknown> = Omit<components$2['schemas']['ComponentDefinitionParameter'], 'typeConfig'> & {
|
1086
1078
|
typeConfig?: TConfig;
|
@@ -1095,6 +1087,8 @@ type ComponentDefinitionSlot = SharedComponents$1['ComponentDefinitionSlot'];
|
|
1095
1087
|
type ComponentDefinitionPermission = SharedComponents$1['ComponentDefinitionPermission'];
|
1096
1088
|
/** Defines a component type that can live on a Composition */
|
1097
1089
|
type ComponentDefinition = SharedComponents$1['ComponentDefinition'];
|
1090
|
+
/** @deprecated use ComponentDefinition instead */
|
1091
|
+
type CreatingComponentDefinition = Omit<Partial<ComponentDefinition>, 'created' | 'updated'>;
|
1098
1092
|
|
1099
1093
|
/**
|
1100
1094
|
* This file was auto-generated by openapi-typescript.
|
@@ -1152,7 +1146,7 @@ interface paths$3 {
|
|
1152
1146
|
/** If true, any dynamic parameters will be left with their raw data. Project map link path is a dynamic parameter. */
|
1153
1147
|
skipParameterResolution?: components$1["parameters"]["skipParameterResolution"];
|
1154
1148
|
/**
|
1155
|
-
* If true, any pattern override data is not resolved by the API.
|
1149
|
+
* @deprecated If true, any pattern override data is not resolved by the API.
|
1156
1150
|
* This is intended for internal use in the Canvas editor, and should not be used.
|
1157
1151
|
* Passing this parameter automatically implies withComponentIDs to be true.
|
1158
1152
|
*/
|
@@ -1361,6 +1355,7 @@ interface components$1 {
|
|
1361
1355
|
*/
|
1362
1356
|
skipPatternResolution: boolean;
|
1363
1357
|
/**
|
1358
|
+
* @deprecated
|
1364
1359
|
* @description If true, any pattern override data is not resolved by the API.
|
1365
1360
|
* This is intended for internal use in the Canvas editor, and should not be used.
|
1366
1361
|
* Passing this parameter automatically implies withComponentIDs to be true.
|
@@ -1605,10 +1600,8 @@ interface external$4 {
|
|
1605
1600
|
connectedData?: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
1606
1601
|
};
|
1607
1602
|
/**
|
1608
|
-
* @
|
1609
|
-
*
|
1610
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
1611
|
-
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
1603
|
+
* @deprecated
|
1604
|
+
* @description Defines a connection to a data element on a data resource. Do not use.
|
1612
1605
|
*/
|
1613
1606
|
DataElementConnectionDefinition: {
|
1614
1607
|
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
@@ -1618,14 +1611,6 @@ interface external$4 {
|
|
1618
1611
|
* @enum {string}
|
1619
1612
|
*/
|
1620
1613
|
syntax: "jptr";
|
1621
|
-
/**
|
1622
|
-
* @description Whether an error should occur if the connected data element cannot be resolved (i.e. a missing property in the data resource).
|
1623
|
-
* In all cases the binding process will remove the parameter data for the unresolvable data element.
|
1624
|
-
* When this is true, and the data element failed to bind, the warning entry returned from the binding process will be changed to an error entry.
|
1625
|
-
*
|
1626
|
-
* @default false
|
1627
|
-
*/
|
1628
|
-
required?: boolean;
|
1629
1614
|
};
|
1630
1615
|
/** @description Defines the shape of a component instance served by the composition API. */
|
1631
1616
|
ComponentInstance: {
|
@@ -1651,6 +1636,7 @@ interface external$4 {
|
|
1651
1636
|
_pattern?: string;
|
1652
1637
|
_dataResources?: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
1653
1638
|
/**
|
1639
|
+
* @deprecated
|
1654
1640
|
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
1655
1641
|
* Means nothing for PUTs; it will be ignored.
|
1656
1642
|
*/
|
@@ -1667,26 +1653,20 @@ interface external$4 {
|
|
1667
1653
|
*/
|
1668
1654
|
_patternError?: "NOTFOUND" | "CYCLIC";
|
1669
1655
|
/**
|
1670
|
-
* @
|
1671
|
-
*
|
1672
|
-
*
|
1673
|
-
*
|
1674
|
-
*
|
1675
|
-
* and a pattern on the composition define an override on a nested pattern,
|
1676
|
-
* the composition's override replaces the pattern's.
|
1677
|
-
*
|
1678
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
1679
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
1656
|
+
* @deprecated
|
1657
|
+
* @description Experimental functionality subject to change without notice.
|
1658
|
+
* Contains overrides that are defined on a pattern instance reference nested in a composition.
|
1659
|
+
* This is always undefined unless `skipOverridesResolution` is true.
|
1660
|
+
* See `_overrides` on `RootComponentInstance`.
|
1680
1661
|
*/
|
1681
1662
|
_overrides?: {
|
1682
1663
|
[key: string]: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
1683
1664
|
};
|
1684
1665
|
/**
|
1685
|
-
* @
|
1666
|
+
* @deprecated
|
1667
|
+
* @description Experimental functionality subject to change without notice.
|
1668
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
1686
1669
|
* by consumers of the pattern.
|
1687
|
-
*
|
1688
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
1689
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
1690
1670
|
*/
|
1691
1671
|
_overridability?: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
1692
1672
|
};
|
@@ -1714,34 +1694,31 @@ interface external$4 {
|
|
1714
1694
|
_name: string;
|
1715
1695
|
_dataResources?: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
1716
1696
|
/**
|
1717
|
-
* @
|
1697
|
+
* @deprecated
|
1698
|
+
* @description Experimental functionality subject to change without notice.
|
1699
|
+
* Defines patch overrides to component IDs that live in the composition.
|
1718
1700
|
* This can be used to override parameters that are defined on patterns,
|
1719
1701
|
* including nested patterns, with values that are specific to this composition.
|
1720
1702
|
* The keys in this object are component IDs.
|
1721
1703
|
* Overrides are applied from the top down, so for example if both the composition
|
1722
1704
|
* and a pattern on the composition define an override on a nested pattern,
|
1723
1705
|
* the composition's override replaces the pattern's.
|
1724
|
-
*
|
1725
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
1726
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
1727
1706
|
*/
|
1728
1707
|
_overrides?: {
|
1729
1708
|
[key: string]: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
1730
1709
|
};
|
1731
1710
|
/**
|
1732
|
-
* @
|
1711
|
+
* @deprecated
|
1712
|
+
* @description Experimental functionality subject to change without notice.
|
1713
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
1733
1714
|
* by consumers of the pattern.
|
1734
|
-
*
|
1735
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
1736
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
1737
1715
|
*/
|
1738
1716
|
_overridability?: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
1739
1717
|
};
|
1740
1718
|
/**
|
1741
|
-
* @
|
1742
|
-
*
|
1743
|
-
*
|
1744
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
1719
|
+
* @deprecated
|
1720
|
+
* @description Experimental functionality subject to change without notice.
|
1721
|
+
* Defines how to override a specific component.
|
1745
1722
|
*/
|
1746
1723
|
ComponentOverride: {
|
1747
1724
|
parameters?: {
|
@@ -1750,11 +1727,10 @@ interface external$4 {
|
|
1750
1727
|
variant?: string;
|
1751
1728
|
};
|
1752
1729
|
/**
|
1753
|
-
* @
|
1754
|
-
*
|
1755
|
-
*
|
1756
|
-
* NOTE:
|
1757
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
1730
|
+
* @deprecated
|
1731
|
+
* @description Experimental functionality subject to change without notice.
|
1732
|
+
* Defines how a component on a pattern may have its values overridden.
|
1733
|
+
* NOTE: Data resources' overridability is defined in the data resource definition.
|
1758
1734
|
*/
|
1759
1735
|
ComponentOverridability: {
|
1760
1736
|
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
@@ -1765,15 +1741,13 @@ interface external$4 {
|
|
1765
1741
|
variants?: boolean;
|
1766
1742
|
};
|
1767
1743
|
/**
|
1768
|
-
* @
|
1769
|
-
*
|
1770
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
1771
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
1772
|
-
*
|
1744
|
+
* @deprecated
|
1745
|
+
* @description Experimental functionality subject to change without notice.
|
1773
1746
|
* @enum {string}
|
1774
1747
|
*/
|
1775
1748
|
OverrideOptions: "yes" | "no";
|
1776
1749
|
/**
|
1750
|
+
* @deprecated
|
1777
1751
|
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
1778
1752
|
* These are created in the UI and shared across a whole project.
|
1779
1753
|
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
@@ -1807,7 +1781,10 @@ interface external$4 {
|
|
1807
1781
|
[key: string]: unknown;
|
1808
1782
|
};
|
1809
1783
|
};
|
1810
|
-
/**
|
1784
|
+
/**
|
1785
|
+
* @deprecated
|
1786
|
+
* @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
1787
|
+
*/
|
1811
1788
|
DataType: {
|
1812
1789
|
/** @description Public ID of the data type */
|
1813
1790
|
id: string;
|
@@ -1864,7 +1841,10 @@ interface external$4 {
|
|
1864
1841
|
[key: string]: unknown;
|
1865
1842
|
};
|
1866
1843
|
};
|
1867
|
-
/**
|
1844
|
+
/**
|
1845
|
+
* @deprecated
|
1846
|
+
* @description Defines the shape of a data variable on a Data Source or Data Type
|
1847
|
+
*/
|
1868
1848
|
DataVariableDefinition: {
|
1869
1849
|
/** @description Display name of the data variable */
|
1870
1850
|
displayName?: string;
|
@@ -1881,13 +1861,17 @@ interface external$4 {
|
|
1881
1861
|
order?: number;
|
1882
1862
|
};
|
1883
1863
|
/**
|
1864
|
+
* @deprecated
|
1884
1865
|
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
1885
1866
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
1886
1867
|
*/
|
1887
1868
|
DataResourceDefinitions: {
|
1888
1869
|
[key: string]: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
1889
1870
|
};
|
1890
|
-
/**
|
1871
|
+
/**
|
1872
|
+
* @deprecated
|
1873
|
+
* @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters
|
1874
|
+
*/
|
1891
1875
|
DataResourceDefinition: {
|
1892
1876
|
/** @description Public ID of the data type that provides this data */
|
1893
1877
|
type: string;
|
@@ -1901,7 +1885,10 @@ interface external$4 {
|
|
1901
1885
|
ignorePatternParameterDefault?: boolean;
|
1902
1886
|
variables?: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
1903
1887
|
};
|
1904
|
-
/**
|
1888
|
+
/**
|
1889
|
+
* @deprecated
|
1890
|
+
* @description Variable values for a data resource.
|
1891
|
+
*/
|
1905
1892
|
DataResourceVariables: {
|
1906
1893
|
[key: string]: string;
|
1907
1894
|
};
|
@@ -2256,10 +2243,8 @@ interface external$3 {
|
|
2256
2243
|
connectedData?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
2257
2244
|
};
|
2258
2245
|
/**
|
2259
|
-
* @
|
2260
|
-
*
|
2261
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
2262
|
-
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
2246
|
+
* @deprecated
|
2247
|
+
* @description Defines a connection to a data element on a data resource. Do not use.
|
2263
2248
|
*/
|
2264
2249
|
DataElementConnectionDefinition: {
|
2265
2250
|
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
@@ -2269,14 +2254,6 @@ interface external$3 {
|
|
2269
2254
|
* @enum {string}
|
2270
2255
|
*/
|
2271
2256
|
syntax: "jptr";
|
2272
|
-
/**
|
2273
|
-
* @description Whether an error should occur if the connected data element cannot be resolved (i.e. a missing property in the data resource).
|
2274
|
-
* In all cases the binding process will remove the parameter data for the unresolvable data element.
|
2275
|
-
* When this is true, and the data element failed to bind, the warning entry returned from the binding process will be changed to an error entry.
|
2276
|
-
*
|
2277
|
-
* @default false
|
2278
|
-
*/
|
2279
|
-
required?: boolean;
|
2280
2257
|
};
|
2281
2258
|
/** @description Defines the shape of a component instance served by the composition API. */
|
2282
2259
|
ComponentInstance: {
|
@@ -2302,6 +2279,7 @@ interface external$3 {
|
|
2302
2279
|
_pattern?: string;
|
2303
2280
|
_dataResources?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
2304
2281
|
/**
|
2282
|
+
* @deprecated
|
2305
2283
|
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
2306
2284
|
* Means nothing for PUTs; it will be ignored.
|
2307
2285
|
*/
|
@@ -2318,26 +2296,20 @@ interface external$3 {
|
|
2318
2296
|
*/
|
2319
2297
|
_patternError?: "NOTFOUND" | "CYCLIC";
|
2320
2298
|
/**
|
2321
|
-
* @
|
2322
|
-
*
|
2323
|
-
*
|
2324
|
-
*
|
2325
|
-
*
|
2326
|
-
* and a pattern on the composition define an override on a nested pattern,
|
2327
|
-
* the composition's override replaces the pattern's.
|
2328
|
-
*
|
2329
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
2330
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
2299
|
+
* @deprecated
|
2300
|
+
* @description Experimental functionality subject to change without notice.
|
2301
|
+
* Contains overrides that are defined on a pattern instance reference nested in a composition.
|
2302
|
+
* This is always undefined unless `skipOverridesResolution` is true.
|
2303
|
+
* See `_overrides` on `RootComponentInstance`.
|
2331
2304
|
*/
|
2332
2305
|
_overrides?: {
|
2333
2306
|
[key: string]: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
2334
2307
|
};
|
2335
2308
|
/**
|
2336
|
-
* @
|
2309
|
+
* @deprecated
|
2310
|
+
* @description Experimental functionality subject to change without notice.
|
2311
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
2337
2312
|
* by consumers of the pattern.
|
2338
|
-
*
|
2339
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
2340
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
2341
2313
|
*/
|
2342
2314
|
_overridability?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
2343
2315
|
};
|
@@ -2365,34 +2337,31 @@ interface external$3 {
|
|
2365
2337
|
_name: string;
|
2366
2338
|
_dataResources?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
2367
2339
|
/**
|
2368
|
-
* @
|
2340
|
+
* @deprecated
|
2341
|
+
* @description Experimental functionality subject to change without notice.
|
2342
|
+
* Defines patch overrides to component IDs that live in the composition.
|
2369
2343
|
* This can be used to override parameters that are defined on patterns,
|
2370
2344
|
* including nested patterns, with values that are specific to this composition.
|
2371
2345
|
* The keys in this object are component IDs.
|
2372
2346
|
* Overrides are applied from the top down, so for example if both the composition
|
2373
2347
|
* and a pattern on the composition define an override on a nested pattern,
|
2374
2348
|
* the composition's override replaces the pattern's.
|
2375
|
-
*
|
2376
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
2377
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
2378
2349
|
*/
|
2379
2350
|
_overrides?: {
|
2380
2351
|
[key: string]: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
2381
2352
|
};
|
2382
2353
|
/**
|
2383
|
-
* @
|
2354
|
+
* @deprecated
|
2355
|
+
* @description Experimental functionality subject to change without notice.
|
2356
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
2384
2357
|
* by consumers of the pattern.
|
2385
|
-
*
|
2386
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
2387
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
2388
2358
|
*/
|
2389
2359
|
_overridability?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
2390
2360
|
};
|
2391
2361
|
/**
|
2392
|
-
* @
|
2393
|
-
*
|
2394
|
-
*
|
2395
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
2362
|
+
* @deprecated
|
2363
|
+
* @description Experimental functionality subject to change without notice.
|
2364
|
+
* Defines how to override a specific component.
|
2396
2365
|
*/
|
2397
2366
|
ComponentOverride: {
|
2398
2367
|
parameters?: {
|
@@ -2401,11 +2370,10 @@ interface external$3 {
|
|
2401
2370
|
variant?: string;
|
2402
2371
|
};
|
2403
2372
|
/**
|
2404
|
-
* @
|
2405
|
-
*
|
2406
|
-
*
|
2407
|
-
* NOTE:
|
2408
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
2373
|
+
* @deprecated
|
2374
|
+
* @description Experimental functionality subject to change without notice.
|
2375
|
+
* Defines how a component on a pattern may have its values overridden.
|
2376
|
+
* NOTE: Data resources' overridability is defined in the data resource definition.
|
2409
2377
|
*/
|
2410
2378
|
ComponentOverridability: {
|
2411
2379
|
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
@@ -2416,15 +2384,13 @@ interface external$3 {
|
|
2416
2384
|
variants?: boolean;
|
2417
2385
|
};
|
2418
2386
|
/**
|
2419
|
-
* @
|
2420
|
-
*
|
2421
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
2422
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
2423
|
-
*
|
2387
|
+
* @deprecated
|
2388
|
+
* @description Experimental functionality subject to change without notice.
|
2424
2389
|
* @enum {string}
|
2425
2390
|
*/
|
2426
2391
|
OverrideOptions: "yes" | "no";
|
2427
2392
|
/**
|
2393
|
+
* @deprecated
|
2428
2394
|
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
2429
2395
|
* These are created in the UI and shared across a whole project.
|
2430
2396
|
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
@@ -2458,7 +2424,10 @@ interface external$3 {
|
|
2458
2424
|
[key: string]: unknown;
|
2459
2425
|
};
|
2460
2426
|
};
|
2461
|
-
/**
|
2427
|
+
/**
|
2428
|
+
* @deprecated
|
2429
|
+
* @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
2430
|
+
*/
|
2462
2431
|
DataType: {
|
2463
2432
|
/** @description Public ID of the data type */
|
2464
2433
|
id: string;
|
@@ -2515,7 +2484,10 @@ interface external$3 {
|
|
2515
2484
|
[key: string]: unknown;
|
2516
2485
|
};
|
2517
2486
|
};
|
2518
|
-
/**
|
2487
|
+
/**
|
2488
|
+
* @deprecated
|
2489
|
+
* @description Defines the shape of a data variable on a Data Source or Data Type
|
2490
|
+
*/
|
2519
2491
|
DataVariableDefinition: {
|
2520
2492
|
/** @description Display name of the data variable */
|
2521
2493
|
displayName?: string;
|
@@ -2532,13 +2504,17 @@ interface external$3 {
|
|
2532
2504
|
order?: number;
|
2533
2505
|
};
|
2534
2506
|
/**
|
2507
|
+
* @deprecated
|
2535
2508
|
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
2536
2509
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
2537
2510
|
*/
|
2538
2511
|
DataResourceDefinitions: {
|
2539
2512
|
[key: string]: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
2540
2513
|
};
|
2541
|
-
/**
|
2514
|
+
/**
|
2515
|
+
* @deprecated
|
2516
|
+
* @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters
|
2517
|
+
*/
|
2542
2518
|
DataResourceDefinition: {
|
2543
2519
|
/** @description Public ID of the data type that provides this data */
|
2544
2520
|
type: string;
|
@@ -2552,7 +2528,10 @@ interface external$3 {
|
|
2552
2528
|
ignorePatternParameterDefault?: boolean;
|
2553
2529
|
variables?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
2554
2530
|
};
|
2555
|
-
/**
|
2531
|
+
/**
|
2532
|
+
* @deprecated
|
2533
|
+
* @description Variable values for a data resource.
|
2534
|
+
*/
|
2556
2535
|
DataResourceVariables: {
|
2557
2536
|
[key: string]: string;
|
2558
2537
|
};
|
@@ -2628,7 +2607,7 @@ interface external$3 {
|
|
2628
2607
|
/** If true, any dynamic parameters will be left with their raw data. Project map link path is a dynamic parameter. */
|
2629
2608
|
skipParameterResolution?: external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["skipParameterResolution"];
|
2630
2609
|
/**
|
2631
|
-
* If true, any pattern override data is not resolved by the API.
|
2610
|
+
* @deprecated If true, any pattern override data is not resolved by the API.
|
2632
2611
|
* This is intended for internal use in the Canvas editor, and should not be used.
|
2633
2612
|
* Passing this parameter automatically implies withComponentIDs to be true.
|
2634
2613
|
*/
|
@@ -2837,6 +2816,7 @@ interface external$3 {
|
|
2837
2816
|
*/
|
2838
2817
|
skipPatternResolution: boolean;
|
2839
2818
|
/**
|
2819
|
+
* @deprecated
|
2840
2820
|
* @description If true, any pattern override data is not resolved by the API.
|
2841
2821
|
* This is intended for internal use in the Canvas editor, and should not be used.
|
2842
2822
|
* Passing this parameter automatically implies withComponentIDs to be true.
|
@@ -2915,6 +2895,14 @@ type CompositionGetListResponse = Components['CompositionListResponse'];
|
|
2915
2895
|
type CompositionPutParameters = Api['put']['requestBody']['content']['application/json'];
|
2916
2896
|
/** Shape of the DELETE request body for /api/v1/canvas */
|
2917
2897
|
type CompositionDeleteParameters = Api['delete']['requestBody']['content']['application/json'];
|
2898
|
+
/** @deprecated use CompositionGetResponse */
|
2899
|
+
type CompositionAPIResponse = CompositionGetResponse;
|
2900
|
+
/** @deprecated use CompositionDeleteParameters */
|
2901
|
+
type CompositionAPIDeleteRequest = CompositionDeleteParameters;
|
2902
|
+
/** @deprecated use CompositionGetParameters */
|
2903
|
+
type CompositionListAPIResponse = CompositionGetListResponse;
|
2904
|
+
/** @deprecated use CompositionGetParameters */
|
2905
|
+
type CompositionAPIOptions = CompositionGetParameters;
|
2918
2906
|
/** Defines an editable parameter on a component. */
|
2919
2907
|
type ComponentParameter<TValue = unknown> = Omit<SharedComponents['ComponentParameter'], 'value'> & {
|
2920
2908
|
/** The type of the parameter. Determines how it is displayed when editing, and tells the consumer how to process it. */
|
@@ -2940,18 +2928,22 @@ type ComponentInstance = SharedComponents['ComponentInstance'] & {
|
|
2940
2928
|
type RootComponentInstance = SharedComponents['RootComponentInstance'];
|
2941
2929
|
/**
|
2942
2930
|
* Defines the shape of a component override
|
2931
|
+
* @deprecated
|
2943
2932
|
*/
|
2944
2933
|
type OverrideOptions = SharedComponents['OverrideOptions'];
|
2945
2934
|
/**
|
2946
2935
|
* Defines the shape of a component override
|
2936
|
+
* @deprecated
|
2947
2937
|
*/
|
2948
2938
|
type ComponentOverride = SharedComponents['ComponentOverride'];
|
2949
2939
|
/**
|
2950
2940
|
* Defines a set of component overrides by component ID
|
2941
|
+
* @deprecated
|
2951
2942
|
*/
|
2952
2943
|
type ComponentOverrides = Record<string, ComponentOverride>;
|
2953
2944
|
/**
|
2954
2945
|
* Defines how a component on a pattern may have its values overridden
|
2946
|
+
* @deprecated
|
2955
2947
|
*/
|
2956
2948
|
type ComponentOverridability = SharedComponents['ComponentOverridability'];
|
2957
2949
|
/** Defines single structure to keep all canvas models (used in CLI commands and Starter content generations) */
|
@@ -2973,20 +2965,20 @@ type CompositionGetBySlugParameters = CompositionGetBy<'slug'>;
|
|
2973
2965
|
type CompositionGetByIdParameters = CompositionGetBy<'compositionId'>;
|
2974
2966
|
/** Switches for data resolution */
|
2975
2967
|
type DataResolutionOption = {
|
2976
|
-
|
2968
|
+
unstable_resolveData?: boolean;
|
2977
2969
|
};
|
2978
2970
|
type DataResolutionOptionNegative = {
|
2979
|
-
|
2971
|
+
unstable_resolveData?: false;
|
2980
2972
|
};
|
2981
2973
|
type DataResolutionOptionPositive = {
|
2982
|
-
|
2974
|
+
unstable_resolveData: true;
|
2983
2975
|
};
|
2984
2976
|
type DataResolutionParameters = {
|
2985
2977
|
/**
|
2986
2978
|
* Adds additional diagnostics about edge request processing to the response (`diagnostics`).
|
2987
2979
|
* Because this adds a lot of data to the response, we do not recommend using this unless diagnosing performance issues.
|
2988
2980
|
*/
|
2989
|
-
|
2981
|
+
unstable_diagnostics?: boolean;
|
2990
2982
|
/**
|
2991
2983
|
* Pass dynamic variables to the composition that are required for resolving bindings and datas,
|
2992
2984
|
* such as language, detail page ID, etc.
|
@@ -3078,7 +3070,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3078
3070
|
connectedData?: {
|
3079
3071
|
pointer: string;
|
3080
3072
|
syntax: "jptr";
|
3081
|
-
required?: boolean | undefined;
|
3082
3073
|
} | undefined;
|
3083
3074
|
};
|
3084
3075
|
} | undefined;
|
@@ -3098,7 +3089,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3098
3089
|
connectedData?: {
|
3099
3090
|
pointer: string;
|
3100
3091
|
syntax: "jptr";
|
3101
|
-
required?: boolean | undefined;
|
3102
3092
|
} | undefined;
|
3103
3093
|
};
|
3104
3094
|
} | undefined;
|
@@ -3138,7 +3128,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3138
3128
|
connectedData?: {
|
3139
3129
|
pointer: string;
|
3140
3130
|
syntax: "jptr";
|
3141
|
-
required?: boolean | undefined;
|
3142
3131
|
} | undefined;
|
3143
3132
|
};
|
3144
3133
|
} | undefined;
|
@@ -3175,7 +3164,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3175
3164
|
connectedData?: {
|
3176
3165
|
pointer: string;
|
3177
3166
|
syntax: "jptr";
|
3178
|
-
required?: boolean | undefined;
|
3179
3167
|
} | undefined;
|
3180
3168
|
};
|
3181
3169
|
} | undefined;
|
@@ -3196,10 +3184,14 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3196
3184
|
getCompositionByNodePath(options: CompositionGetByNodePathParameters & DataResolutionOptionNegative): Promise<CompositionGetResponse>;
|
3197
3185
|
getCompositionByNodePath(options: CompositionGetByNodePathParameters & DataResolutionOptionPositive & DataResolutionParameters): Promise<CompositionResolvedGetResponse>;
|
3198
3186
|
getCompositionByNodePath<T extends CompositionGetResponse = CompositionGetValidResponses>(options: CompositionGetByNodePathParameters & DataResolutionOption & DataResolutionParameters): Promise<T>;
|
3187
|
+
/** @deprecated use getCompositionByNodePath instead */
|
3188
|
+
unstable_getCompositionByNodePath(options: CompositionGetByNodePathParameters & DataResolutionOption & DataResolutionParameters): Promise<unknown>;
|
3199
3189
|
/** Fetches one composition by its project map node ID */
|
3200
3190
|
getCompositionByNodeId(options: CompositionGetByNodeIdParameters & DataResolutionOptionNegative): Promise<CompositionGetResponse>;
|
3201
3191
|
getCompositionByNodeId(options: CompositionGetByNodeIdParameters & DataResolutionOptionPositive & DataResolutionParameters): Promise<CompositionResolvedGetResponse>;
|
3202
3192
|
getCompositionByNodeId<T extends CompositionGetResponse = CompositionGetValidResponses>(options: CompositionGetByNodeIdParameters & DataResolutionOption & DataResolutionParameters): Promise<T>;
|
3193
|
+
/** @deprecated Use getCompositionByNodeId instead */
|
3194
|
+
unstable_getCompositionByNodeId(options: CompositionGetByNodeIdParameters & DataResolutionOption & DataResolutionParameters): Promise<unknown>;
|
3203
3195
|
/** Fetches one composition by its slug */
|
3204
3196
|
getCompositionBySlug(options: CompositionGetBySlugParameters & DataResolutionOptionNegative): Promise<CompositionGetResponse>;
|
3205
3197
|
getCompositionBySlug(options: CompositionGetBySlugParameters & DataResolutionOptionPositive & DataResolutionParameters): Promise<CompositionResolvedGetResponse>;
|
@@ -3259,7 +3251,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3259
3251
|
connectedData?: {
|
3260
3252
|
pointer: string;
|
3261
3253
|
syntax: "jptr";
|
3262
|
-
required?: boolean | undefined;
|
3263
3254
|
} | undefined;
|
3264
3255
|
};
|
3265
3256
|
} | undefined;
|
@@ -3299,7 +3290,6 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3299
3290
|
connectedData?: {
|
3300
3291
|
pointer: string;
|
3301
3292
|
syntax: "jptr";
|
3302
|
-
required?: boolean | undefined;
|
3303
3293
|
} | undefined;
|
3304
3294
|
};
|
3305
3295
|
} | undefined;
|
@@ -3330,6 +3320,10 @@ declare class UncachedCanvasClient extends CanvasClient {
|
|
3330
3320
|
constructor(options: Omit<CanvasClientOptions, 'bypassCache'>);
|
3331
3321
|
}
|
3332
3322
|
|
3323
|
+
type PreviewPanelSettings = {
|
3324
|
+
isInteractive: boolean;
|
3325
|
+
};
|
3326
|
+
|
3333
3327
|
/**
|
3334
3328
|
* This file was auto-generated by openapi-typescript.
|
3335
3329
|
* Do not make direct changes to the file.
|
@@ -3375,8 +3369,14 @@ interface paths$2 {
|
|
3375
3369
|
data: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataSource"];
|
3376
3370
|
/** Format: uuid */
|
3377
3371
|
projectId: string;
|
3372
|
+
/**
|
3373
|
+
* Format: uuid
|
3374
|
+
* @deprecated
|
3375
|
+
* @description Do not use. Will be removed in future.
|
3376
|
+
*/
|
3377
|
+
integrationId?: string;
|
3378
3378
|
/** @description The integration type that the data source is attached to. Must be installed in the project. */
|
3379
|
-
integrationType
|
3379
|
+
integrationType?: string;
|
3380
3380
|
};
|
3381
3381
|
};
|
3382
3382
|
};
|
@@ -3591,10 +3591,8 @@ interface external$2 {
|
|
3591
3591
|
connectedData?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
3592
3592
|
};
|
3593
3593
|
/**
|
3594
|
-
* @
|
3595
|
-
*
|
3596
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
3597
|
-
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
3594
|
+
* @deprecated
|
3595
|
+
* @description Defines a connection to a data element on a data resource. Do not use.
|
3598
3596
|
*/
|
3599
3597
|
DataElementConnectionDefinition: {
|
3600
3598
|
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
@@ -3604,14 +3602,6 @@ interface external$2 {
|
|
3604
3602
|
* @enum {string}
|
3605
3603
|
*/
|
3606
3604
|
syntax: "jptr";
|
3607
|
-
/**
|
3608
|
-
* @description Whether an error should occur if the connected data element cannot be resolved (i.e. a missing property in the data resource).
|
3609
|
-
* In all cases the binding process will remove the parameter data for the unresolvable data element.
|
3610
|
-
* When this is true, and the data element failed to bind, the warning entry returned from the binding process will be changed to an error entry.
|
3611
|
-
*
|
3612
|
-
* @default false
|
3613
|
-
*/
|
3614
|
-
required?: boolean;
|
3615
3605
|
};
|
3616
3606
|
/** @description Defines the shape of a component instance served by the composition API. */
|
3617
3607
|
ComponentInstance: {
|
@@ -3637,6 +3627,7 @@ interface external$2 {
|
|
3637
3627
|
_pattern?: string;
|
3638
3628
|
_dataResources?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
3639
3629
|
/**
|
3630
|
+
* @deprecated
|
3640
3631
|
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
3641
3632
|
* Means nothing for PUTs; it will be ignored.
|
3642
3633
|
*/
|
@@ -3653,26 +3644,20 @@ interface external$2 {
|
|
3653
3644
|
*/
|
3654
3645
|
_patternError?: "NOTFOUND" | "CYCLIC";
|
3655
3646
|
/**
|
3656
|
-
* @
|
3657
|
-
*
|
3658
|
-
*
|
3659
|
-
*
|
3660
|
-
*
|
3661
|
-
* and a pattern on the composition define an override on a nested pattern,
|
3662
|
-
* the composition's override replaces the pattern's.
|
3663
|
-
*
|
3664
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
3665
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
3647
|
+
* @deprecated
|
3648
|
+
* @description Experimental functionality subject to change without notice.
|
3649
|
+
* Contains overrides that are defined on a pattern instance reference nested in a composition.
|
3650
|
+
* This is always undefined unless `skipOverridesResolution` is true.
|
3651
|
+
* See `_overrides` on `RootComponentInstance`.
|
3666
3652
|
*/
|
3667
3653
|
_overrides?: {
|
3668
3654
|
[key: string]: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
3669
3655
|
};
|
3670
3656
|
/**
|
3671
|
-
* @
|
3657
|
+
* @deprecated
|
3658
|
+
* @description Experimental functionality subject to change without notice.
|
3659
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
3672
3660
|
* by consumers of the pattern.
|
3673
|
-
*
|
3674
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
3675
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
3676
3661
|
*/
|
3677
3662
|
_overridability?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
3678
3663
|
};
|
@@ -3700,34 +3685,31 @@ interface external$2 {
|
|
3700
3685
|
_name: string;
|
3701
3686
|
_dataResources?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
3702
3687
|
/**
|
3703
|
-
* @
|
3688
|
+
* @deprecated
|
3689
|
+
* @description Experimental functionality subject to change without notice.
|
3690
|
+
* Defines patch overrides to component IDs that live in the composition.
|
3704
3691
|
* This can be used to override parameters that are defined on patterns,
|
3705
3692
|
* including nested patterns, with values that are specific to this composition.
|
3706
3693
|
* The keys in this object are component IDs.
|
3707
3694
|
* Overrides are applied from the top down, so for example if both the composition
|
3708
3695
|
* and a pattern on the composition define an override on a nested pattern,
|
3709
3696
|
* the composition's override replaces the pattern's.
|
3710
|
-
*
|
3711
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
3712
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
3713
3697
|
*/
|
3714
3698
|
_overrides?: {
|
3715
3699
|
[key: string]: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
3716
3700
|
};
|
3717
3701
|
/**
|
3718
|
-
* @
|
3702
|
+
* @deprecated
|
3703
|
+
* @description Experimental functionality subject to change without notice.
|
3704
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
3719
3705
|
* by consumers of the pattern.
|
3720
|
-
*
|
3721
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
3722
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
3723
3706
|
*/
|
3724
3707
|
_overridability?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
3725
3708
|
};
|
3726
3709
|
/**
|
3727
|
-
* @
|
3728
|
-
*
|
3729
|
-
*
|
3730
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
3710
|
+
* @deprecated
|
3711
|
+
* @description Experimental functionality subject to change without notice.
|
3712
|
+
* Defines how to override a specific component.
|
3731
3713
|
*/
|
3732
3714
|
ComponentOverride: {
|
3733
3715
|
parameters?: {
|
@@ -3736,11 +3718,10 @@ interface external$2 {
|
|
3736
3718
|
variant?: string;
|
3737
3719
|
};
|
3738
3720
|
/**
|
3739
|
-
* @
|
3740
|
-
*
|
3741
|
-
*
|
3742
|
-
* NOTE:
|
3743
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
3721
|
+
* @deprecated
|
3722
|
+
* @description Experimental functionality subject to change without notice.
|
3723
|
+
* Defines how a component on a pattern may have its values overridden.
|
3724
|
+
* NOTE: Data resources' overridability is defined in the data resource definition.
|
3744
3725
|
*/
|
3745
3726
|
ComponentOverridability: {
|
3746
3727
|
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
@@ -3751,15 +3732,13 @@ interface external$2 {
|
|
3751
3732
|
variants?: boolean;
|
3752
3733
|
};
|
3753
3734
|
/**
|
3754
|
-
* @
|
3755
|
-
*
|
3756
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
3757
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
3758
|
-
*
|
3735
|
+
* @deprecated
|
3736
|
+
* @description Experimental functionality subject to change without notice.
|
3759
3737
|
* @enum {string}
|
3760
3738
|
*/
|
3761
3739
|
OverrideOptions: "yes" | "no";
|
3762
3740
|
/**
|
3741
|
+
* @deprecated
|
3763
3742
|
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
3764
3743
|
* These are created in the UI and shared across a whole project.
|
3765
3744
|
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
@@ -3793,7 +3772,10 @@ interface external$2 {
|
|
3793
3772
|
[key: string]: unknown;
|
3794
3773
|
};
|
3795
3774
|
};
|
3796
|
-
/**
|
3775
|
+
/**
|
3776
|
+
* @deprecated
|
3777
|
+
* @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
3778
|
+
*/
|
3797
3779
|
DataType: {
|
3798
3780
|
/** @description Public ID of the data type */
|
3799
3781
|
id: string;
|
@@ -3850,7 +3832,10 @@ interface external$2 {
|
|
3850
3832
|
[key: string]: unknown;
|
3851
3833
|
};
|
3852
3834
|
};
|
3853
|
-
/**
|
3835
|
+
/**
|
3836
|
+
* @deprecated
|
3837
|
+
* @description Defines the shape of a data variable on a Data Source or Data Type
|
3838
|
+
*/
|
3854
3839
|
DataVariableDefinition: {
|
3855
3840
|
/** @description Display name of the data variable */
|
3856
3841
|
displayName?: string;
|
@@ -3867,13 +3852,17 @@ interface external$2 {
|
|
3867
3852
|
order?: number;
|
3868
3853
|
};
|
3869
3854
|
/**
|
3855
|
+
* @deprecated
|
3870
3856
|
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
3871
3857
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
3872
3858
|
*/
|
3873
3859
|
DataResourceDefinitions: {
|
3874
3860
|
[key: string]: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
3875
3861
|
};
|
3876
|
-
/**
|
3862
|
+
/**
|
3863
|
+
* @deprecated
|
3864
|
+
* @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters
|
3865
|
+
*/
|
3877
3866
|
DataResourceDefinition: {
|
3878
3867
|
/** @description Public ID of the data type that provides this data */
|
3879
3868
|
type: string;
|
@@ -3887,7 +3876,10 @@ interface external$2 {
|
|
3887
3876
|
ignorePatternParameterDefault?: boolean;
|
3888
3877
|
variables?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
3889
3878
|
};
|
3890
|
-
/**
|
3879
|
+
/**
|
3880
|
+
* @deprecated
|
3881
|
+
* @description Variable values for a data resource.
|
3882
|
+
*/
|
3891
3883
|
DataResourceVariables: {
|
3892
3884
|
[key: string]: string;
|
3893
3885
|
};
|
@@ -4135,10 +4127,8 @@ interface external$1 {
|
|
4135
4127
|
connectedData?: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
4136
4128
|
};
|
4137
4129
|
/**
|
4138
|
-
* @
|
4139
|
-
*
|
4140
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4141
|
-
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
4130
|
+
* @deprecated
|
4131
|
+
* @description Defines a connection to a data element on a data resource. Do not use.
|
4142
4132
|
*/
|
4143
4133
|
DataElementConnectionDefinition: {
|
4144
4134
|
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
@@ -4148,14 +4138,6 @@ interface external$1 {
|
|
4148
4138
|
* @enum {string}
|
4149
4139
|
*/
|
4150
4140
|
syntax: "jptr";
|
4151
|
-
/**
|
4152
|
-
* @description Whether an error should occur if the connected data element cannot be resolved (i.e. a missing property in the data resource).
|
4153
|
-
* In all cases the binding process will remove the parameter data for the unresolvable data element.
|
4154
|
-
* When this is true, and the data element failed to bind, the warning entry returned from the binding process will be changed to an error entry.
|
4155
|
-
*
|
4156
|
-
* @default false
|
4157
|
-
*/
|
4158
|
-
required?: boolean;
|
4159
4141
|
};
|
4160
4142
|
/** @description Defines the shape of a component instance served by the composition API. */
|
4161
4143
|
ComponentInstance: {
|
@@ -4181,6 +4163,7 @@ interface external$1 {
|
|
4181
4163
|
_pattern?: string;
|
4182
4164
|
_dataResources?: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
4183
4165
|
/**
|
4166
|
+
* @deprecated
|
4184
4167
|
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
4185
4168
|
* Means nothing for PUTs; it will be ignored.
|
4186
4169
|
*/
|
@@ -4197,26 +4180,20 @@ interface external$1 {
|
|
4197
4180
|
*/
|
4198
4181
|
_patternError?: "NOTFOUND" | "CYCLIC";
|
4199
4182
|
/**
|
4200
|
-
* @
|
4201
|
-
*
|
4202
|
-
*
|
4203
|
-
*
|
4204
|
-
*
|
4205
|
-
* and a pattern on the composition define an override on a nested pattern,
|
4206
|
-
* the composition's override replaces the pattern's.
|
4207
|
-
*
|
4208
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4209
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4183
|
+
* @deprecated
|
4184
|
+
* @description Experimental functionality subject to change without notice.
|
4185
|
+
* Contains overrides that are defined on a pattern instance reference nested in a composition.
|
4186
|
+
* This is always undefined unless `skipOverridesResolution` is true.
|
4187
|
+
* See `_overrides` on `RootComponentInstance`.
|
4210
4188
|
*/
|
4211
4189
|
_overrides?: {
|
4212
4190
|
[key: string]: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
4213
4191
|
};
|
4214
4192
|
/**
|
4215
|
-
* @
|
4193
|
+
* @deprecated
|
4194
|
+
* @description Experimental functionality subject to change without notice.
|
4195
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
4216
4196
|
* by consumers of the pattern.
|
4217
|
-
*
|
4218
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4219
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4220
4197
|
*/
|
4221
4198
|
_overridability?: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
4222
4199
|
};
|
@@ -4244,34 +4221,31 @@ interface external$1 {
|
|
4244
4221
|
_name: string;
|
4245
4222
|
_dataResources?: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
4246
4223
|
/**
|
4247
|
-
* @
|
4224
|
+
* @deprecated
|
4225
|
+
* @description Experimental functionality subject to change without notice.
|
4226
|
+
* Defines patch overrides to component IDs that live in the composition.
|
4248
4227
|
* This can be used to override parameters that are defined on patterns,
|
4249
4228
|
* including nested patterns, with values that are specific to this composition.
|
4250
4229
|
* The keys in this object are component IDs.
|
4251
4230
|
* Overrides are applied from the top down, so for example if both the composition
|
4252
4231
|
* and a pattern on the composition define an override on a nested pattern,
|
4253
4232
|
* the composition's override replaces the pattern's.
|
4254
|
-
*
|
4255
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4256
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4257
4233
|
*/
|
4258
4234
|
_overrides?: {
|
4259
4235
|
[key: string]: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
4260
4236
|
};
|
4261
4237
|
/**
|
4262
|
-
* @
|
4238
|
+
* @deprecated
|
4239
|
+
* @description Experimental functionality subject to change without notice.
|
4240
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
4263
4241
|
* by consumers of the pattern.
|
4264
|
-
*
|
4265
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4266
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4267
4242
|
*/
|
4268
4243
|
_overridability?: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
4269
4244
|
};
|
4270
4245
|
/**
|
4271
|
-
* @
|
4272
|
-
*
|
4273
|
-
*
|
4274
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4246
|
+
* @deprecated
|
4247
|
+
* @description Experimental functionality subject to change without notice.
|
4248
|
+
* Defines how to override a specific component.
|
4275
4249
|
*/
|
4276
4250
|
ComponentOverride: {
|
4277
4251
|
parameters?: {
|
@@ -4280,11 +4254,10 @@ interface external$1 {
|
|
4280
4254
|
variant?: string;
|
4281
4255
|
};
|
4282
4256
|
/**
|
4283
|
-
* @
|
4284
|
-
*
|
4285
|
-
*
|
4286
|
-
* NOTE:
|
4287
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4257
|
+
* @deprecated
|
4258
|
+
* @description Experimental functionality subject to change without notice.
|
4259
|
+
* Defines how a component on a pattern may have its values overridden.
|
4260
|
+
* NOTE: Data resources' overridability is defined in the data resource definition.
|
4288
4261
|
*/
|
4289
4262
|
ComponentOverridability: {
|
4290
4263
|
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
@@ -4295,15 +4268,13 @@ interface external$1 {
|
|
4295
4268
|
variants?: boolean;
|
4296
4269
|
};
|
4297
4270
|
/**
|
4298
|
-
* @
|
4299
|
-
*
|
4300
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4301
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4302
|
-
*
|
4271
|
+
* @deprecated
|
4272
|
+
* @description Experimental functionality subject to change without notice.
|
4303
4273
|
* @enum {string}
|
4304
4274
|
*/
|
4305
4275
|
OverrideOptions: "yes" | "no";
|
4306
4276
|
/**
|
4277
|
+
* @deprecated
|
4307
4278
|
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
4308
4279
|
* These are created in the UI and shared across a whole project.
|
4309
4280
|
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
@@ -4337,7 +4308,10 @@ interface external$1 {
|
|
4337
4308
|
[key: string]: unknown;
|
4338
4309
|
};
|
4339
4310
|
};
|
4340
|
-
/**
|
4311
|
+
/**
|
4312
|
+
* @deprecated
|
4313
|
+
* @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
4314
|
+
*/
|
4341
4315
|
DataType: {
|
4342
4316
|
/** @description Public ID of the data type */
|
4343
4317
|
id: string;
|
@@ -4394,7 +4368,10 @@ interface external$1 {
|
|
4394
4368
|
[key: string]: unknown;
|
4395
4369
|
};
|
4396
4370
|
};
|
4397
|
-
/**
|
4371
|
+
/**
|
4372
|
+
* @deprecated
|
4373
|
+
* @description Defines the shape of a data variable on a Data Source or Data Type
|
4374
|
+
*/
|
4398
4375
|
DataVariableDefinition: {
|
4399
4376
|
/** @description Display name of the data variable */
|
4400
4377
|
displayName?: string;
|
@@ -4411,13 +4388,17 @@ interface external$1 {
|
|
4411
4388
|
order?: number;
|
4412
4389
|
};
|
4413
4390
|
/**
|
4391
|
+
* @deprecated
|
4414
4392
|
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
4415
4393
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
4416
4394
|
*/
|
4417
4395
|
DataResourceDefinitions: {
|
4418
4396
|
[key: string]: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
4419
4397
|
};
|
4420
|
-
/**
|
4398
|
+
/**
|
4399
|
+
* @deprecated
|
4400
|
+
* @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters
|
4401
|
+
*/
|
4421
4402
|
DataResourceDefinition: {
|
4422
4403
|
/** @description Public ID of the data type that provides this data */
|
4423
4404
|
type: string;
|
@@ -4431,7 +4412,10 @@ interface external$1 {
|
|
4431
4412
|
ignorePatternParameterDefault?: boolean;
|
4432
4413
|
variables?: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
4433
4414
|
};
|
4434
|
-
/**
|
4415
|
+
/**
|
4416
|
+
* @deprecated
|
4417
|
+
* @description Variable values for a data resource.
|
4418
|
+
*/
|
4435
4419
|
DataResourceVariables: {
|
4436
4420
|
[key: string]: string;
|
4437
4421
|
};
|
@@ -4714,10 +4698,8 @@ interface external {
|
|
4714
4698
|
connectedData?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
4715
4699
|
};
|
4716
4700
|
/**
|
4717
|
-
* @
|
4718
|
-
*
|
4719
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4720
|
-
* Future updates that do not break the edgehanced/data-bound state of a composition may be made without notice.
|
4701
|
+
* @deprecated
|
4702
|
+
* @description Defines a connection to a data element on a data resource. Do not use.
|
4721
4703
|
*/
|
4722
4704
|
DataElementConnectionDefinition: {
|
4723
4705
|
/** @description A JSON Pointer expression that defines the data element to connect the parameter to. */
|
@@ -4727,14 +4709,6 @@ interface external {
|
|
4727
4709
|
* @enum {string}
|
4728
4710
|
*/
|
4729
4711
|
syntax: "jptr";
|
4730
|
-
/**
|
4731
|
-
* @description Whether an error should occur if the connected data element cannot be resolved (i.e. a missing property in the data resource).
|
4732
|
-
* In all cases the binding process will remove the parameter data for the unresolvable data element.
|
4733
|
-
* When this is true, and the data element failed to bind, the warning entry returned from the binding process will be changed to an error entry.
|
4734
|
-
*
|
4735
|
-
* @default false
|
4736
|
-
*/
|
4737
|
-
required?: boolean;
|
4738
4712
|
};
|
4739
4713
|
/** @description Defines the shape of a component instance served by the composition API. */
|
4740
4714
|
ComponentInstance: {
|
@@ -4760,6 +4734,7 @@ interface external {
|
|
4760
4734
|
_pattern?: string;
|
4761
4735
|
_dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
4762
4736
|
/**
|
4737
|
+
* @deprecated
|
4763
4738
|
* @description Data definitions coming from a pattern resolved for this component. Merged with _dataResources during resolution.
|
4764
4739
|
* Means nothing for PUTs; it will be ignored.
|
4765
4740
|
*/
|
@@ -4776,26 +4751,20 @@ interface external {
|
|
4776
4751
|
*/
|
4777
4752
|
_patternError?: "NOTFOUND" | "CYCLIC";
|
4778
4753
|
/**
|
4779
|
-
* @
|
4780
|
-
*
|
4781
|
-
*
|
4782
|
-
*
|
4783
|
-
*
|
4784
|
-
* and a pattern on the composition define an override on a nested pattern,
|
4785
|
-
* the composition's override replaces the pattern's.
|
4786
|
-
*
|
4787
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4788
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4754
|
+
* @deprecated
|
4755
|
+
* @description Experimental functionality subject to change without notice.
|
4756
|
+
* Contains overrides that are defined on a pattern instance reference nested in a composition.
|
4757
|
+
* This is always undefined unless `skipOverridesResolution` is true.
|
4758
|
+
* See `_overrides` on `RootComponentInstance`.
|
4789
4759
|
*/
|
4790
4760
|
_overrides?: {
|
4791
4761
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
4792
4762
|
};
|
4793
4763
|
/**
|
4794
|
-
* @
|
4764
|
+
* @deprecated
|
4765
|
+
* @description Experimental functionality subject to change without notice.
|
4766
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
4795
4767
|
* by consumers of the pattern.
|
4796
|
-
*
|
4797
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4798
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4799
4768
|
*/
|
4800
4769
|
_overridability?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
4801
4770
|
};
|
@@ -4823,34 +4792,31 @@ interface external {
|
|
4823
4792
|
_name: string;
|
4824
4793
|
_dataResources?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinitions"];
|
4825
4794
|
/**
|
4826
|
-
* @
|
4795
|
+
* @deprecated
|
4796
|
+
* @description Experimental functionality subject to change without notice.
|
4797
|
+
* Defines patch overrides to component IDs that live in the composition.
|
4827
4798
|
* This can be used to override parameters that are defined on patterns,
|
4828
4799
|
* including nested patterns, with values that are specific to this composition.
|
4829
4800
|
* The keys in this object are component IDs.
|
4830
4801
|
* Overrides are applied from the top down, so for example if both the composition
|
4831
4802
|
* and a pattern on the composition define an override on a nested pattern,
|
4832
4803
|
* the composition's override replaces the pattern's.
|
4833
|
-
*
|
4834
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4835
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4836
4804
|
*/
|
4837
4805
|
_overrides?: {
|
4838
4806
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverride"];
|
4839
4807
|
};
|
4840
4808
|
/**
|
4841
|
-
* @
|
4809
|
+
* @deprecated
|
4810
|
+
* @description Experimental functionality subject to change without notice.
|
4811
|
+
* When used on a pattern, defines how the pattern's parameters may be overridden
|
4842
4812
|
* by consumers of the pattern.
|
4843
|
-
*
|
4844
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4845
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4846
4813
|
*/
|
4847
4814
|
_overridability?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
4848
4815
|
};
|
4849
4816
|
/**
|
4850
|
-
* @
|
4851
|
-
*
|
4852
|
-
*
|
4853
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4817
|
+
* @deprecated
|
4818
|
+
* @description Experimental functionality subject to change without notice.
|
4819
|
+
* Defines how to override a specific component.
|
4854
4820
|
*/
|
4855
4821
|
ComponentOverride: {
|
4856
4822
|
parameters?: {
|
@@ -4859,11 +4825,10 @@ interface external {
|
|
4859
4825
|
variant?: string;
|
4860
4826
|
};
|
4861
4827
|
/**
|
4862
|
-
* @
|
4863
|
-
*
|
4864
|
-
*
|
4865
|
-
* NOTE:
|
4866
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4828
|
+
* @deprecated
|
4829
|
+
* @description Experimental functionality subject to change without notice.
|
4830
|
+
* Defines how a component on a pattern may have its values overridden.
|
4831
|
+
* NOTE: Data resources' overridability is defined in the data resource definition.
|
4867
4832
|
*/
|
4868
4833
|
ComponentOverridability: {
|
4869
4834
|
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
@@ -4874,15 +4839,13 @@ interface external {
|
|
4874
4839
|
variants?: boolean;
|
4875
4840
|
};
|
4876
4841
|
/**
|
4877
|
-
* @
|
4878
|
-
*
|
4879
|
-
* NOTE: This is considered an internal data structure and is not guaranteed to be stable.
|
4880
|
-
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
4881
|
-
*
|
4842
|
+
* @deprecated
|
4843
|
+
* @description Experimental functionality subject to change without notice.
|
4882
4844
|
* @enum {string}
|
4883
4845
|
*/
|
4884
4846
|
OverrideOptions: "yes" | "no";
|
4885
4847
|
/**
|
4848
|
+
* @deprecated
|
4886
4849
|
* @description An instance of a data source (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset").
|
4887
4850
|
* These are created in the UI and shared across a whole project.
|
4888
4851
|
* NOTE: if you acquire a list of data sources or do not have manage permissions, you will receive "SECRET"
|
@@ -4916,7 +4879,10 @@ interface external {
|
|
4916
4879
|
[key: string]: unknown;
|
4917
4880
|
};
|
4918
4881
|
};
|
4919
|
-
/**
|
4882
|
+
/**
|
4883
|
+
* @deprecated
|
4884
|
+
* @description A specific type of data that a Data Source can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
4885
|
+
*/
|
4920
4886
|
DataType: {
|
4921
4887
|
/** @description Public ID of the data type */
|
4922
4888
|
id: string;
|
@@ -4973,7 +4939,10 @@ interface external {
|
|
4973
4939
|
[key: string]: unknown;
|
4974
4940
|
};
|
4975
4941
|
};
|
4976
|
-
/**
|
4942
|
+
/**
|
4943
|
+
* @deprecated
|
4944
|
+
* @description Defines the shape of a data variable on a Data Source or Data Type
|
4945
|
+
*/
|
4977
4946
|
DataVariableDefinition: {
|
4978
4947
|
/** @description Display name of the data variable */
|
4979
4948
|
displayName?: string;
|
@@ -4990,13 +4959,17 @@ interface external {
|
|
4990
4959
|
order?: number;
|
4991
4960
|
};
|
4992
4961
|
/**
|
4962
|
+
* @deprecated
|
4993
4963
|
* @description Data definitions attached to this component. The property name is the key of the data in the data document.
|
4994
4964
|
* Note: data definitions are inherited from ancestors at runtime (and may be overridden by descendants that use the same key).
|
4995
4965
|
*/
|
4996
4966
|
DataResourceDefinitions: {
|
4997
4967
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceDefinition"];
|
4998
4968
|
};
|
4999
|
-
/**
|
4969
|
+
/**
|
4970
|
+
* @deprecated
|
4971
|
+
* @description Defines a data resource, which is a named JSON document, usually from an API response, which may be projected onto parameters
|
4972
|
+
*/
|
5000
4973
|
DataResourceDefinition: {
|
5001
4974
|
/** @description Public ID of the data type that provides this data */
|
5002
4975
|
type: string;
|
@@ -5010,7 +4983,10 @@ interface external {
|
|
5010
4983
|
ignorePatternParameterDefault?: boolean;
|
5011
4984
|
variables?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
5012
4985
|
};
|
5013
|
-
/**
|
4986
|
+
/**
|
4987
|
+
* @deprecated
|
4988
|
+
* @description Variable values for a data resource.
|
4989
|
+
*/
|
5014
4990
|
DataResourceVariables: {
|
5015
4991
|
[key: string]: string;
|
5016
4992
|
};
|
@@ -5145,7 +5121,9 @@ type InvalidationPayload = schemas['InvalidationPayload'];
|
|
5145
5121
|
type InvalidationResult = schemas['InvalidationResult'];
|
5146
5122
|
type BatchInvalidationPayload = schemas['BatchInvalidationPayload'];
|
5147
5123
|
|
5148
|
-
/**
|
5124
|
+
/**
|
5125
|
+
* @deprecated
|
5126
|
+
*/
|
5149
5127
|
declare class DataSourceClient extends ApiClient {
|
5150
5128
|
constructor(options: ClientOptions);
|
5151
5129
|
/** Fetches all DataSources for a project */
|
@@ -5212,7 +5190,9 @@ declare class DataSourceClient extends ApiClient {
|
|
5212
5190
|
remove(body: ExceptProject<DataSourceDeleteParameters>): Promise<void>;
|
5213
5191
|
}
|
5214
5192
|
|
5215
|
-
/**
|
5193
|
+
/**
|
5194
|
+
* @deprecated
|
5195
|
+
*/
|
5216
5196
|
declare class DataTypeClient extends ApiClient {
|
5217
5197
|
#private;
|
5218
5198
|
constructor(options: ClientOptions);
|
@@ -5418,6 +5398,7 @@ declare function getComponentJsonPointer(ancestorsAndSelf: Array<ComponentLocati
|
|
5418
5398
|
|
5419
5399
|
interface ContextualEditingWindowData {
|
5420
5400
|
framework?: ReadyMessage['framework'];
|
5401
|
+
version?: ReadyMessage['version'];
|
5421
5402
|
}
|
5422
5403
|
declare global {
|
5423
5404
|
interface Window {
|
@@ -5431,6 +5412,8 @@ type SelectComponentMessage = {
|
|
5431
5412
|
type ReadyMessage = {
|
5432
5413
|
type: 'ready';
|
5433
5414
|
framework?: 'React' | 'Vue';
|
5415
|
+
/** A non-semantic version of the contextual editing SDK. */
|
5416
|
+
version?: number;
|
5434
5417
|
};
|
5435
5418
|
type UpdateCompositionMessage = {
|
5436
5419
|
type: 'update-composition';
|
@@ -5455,23 +5438,36 @@ type DismissPlaceholderMessage = {
|
|
5455
5438
|
parentId: string;
|
5456
5439
|
slotName: string;
|
5457
5440
|
};
|
5458
|
-
type
|
5441
|
+
type UpdatePreviewSettingsMessage = {
|
5442
|
+
type: 'update-preview-settings';
|
5443
|
+
settings: PreviewPanelSettings;
|
5444
|
+
};
|
5445
|
+
type ReportRenderedCompositionsMessage = {
|
5446
|
+
type: 'report-rendered-compositions';
|
5447
|
+
compositionIds: string[];
|
5448
|
+
url: string;
|
5449
|
+
};
|
5450
|
+
type ChannelMessage = SelectComponentMessage | ReadyMessage | UpdateCompositionMessage | AddComponentMessage | MoveComponentMessage | DismissPlaceholderMessage | UpdatePreviewSettingsMessage | ReportRenderedCompositionsMessage;
|
5459
5451
|
declare const isSelectComponentMessage: (message: ChannelMessage) => message is SelectComponentMessage;
|
5460
5452
|
declare const isReadyMessage: (message: ChannelMessage) => message is ReadyMessage;
|
5461
5453
|
declare const isUpdateCompositionMessage: (message: ChannelMessage) => message is UpdateCompositionMessage;
|
5462
5454
|
declare const isAddComponentMessage: (message: ChannelMessage) => message is AddComponentMessage;
|
5463
5455
|
declare const isMovingComponentMessage: (message: ChannelMessage) => message is MoveComponentMessage;
|
5464
5456
|
declare const isDismissPlaceholderMessage: (message: ChannelMessage) => message is DismissPlaceholderMessage;
|
5457
|
+
declare const isUpdatePreviewSettingsMessage: (message: ChannelMessage) => message is UpdatePreviewSettingsMessage;
|
5458
|
+
declare const isReportRenderedCompositionsMessage: (message: ChannelMessage) => message is ReportRenderedCompositionsMessage;
|
5465
5459
|
type MessageHandler = (message: ChannelMessage, originalEvent: MessageEvent) => void;
|
5466
5460
|
type Channel = {
|
5461
|
+
on: (types: ChannelMessage['type'][] | ChannelMessage['type'], handler: MessageHandler) => () => void;
|
5467
5462
|
ready: () => void;
|
5468
5463
|
destroy: () => void;
|
5469
5464
|
selectComponent: (id: string) => void;
|
5470
5465
|
updateComposition: (component: RootComponentInstance, secret?: string) => void;
|
5471
|
-
on: (types: ChannelMessage['type'][] | ChannelMessage['type'], handler: MessageHandler) => () => void;
|
5472
5466
|
addComponent: (options: Omit<AddComponentMessage, 'type'>) => void;
|
5473
5467
|
moveComponent: (options: Omit<MoveComponentMessage, 'type'>) => void;
|
5474
5468
|
dismissPlaceholder: (options: Omit<DismissPlaceholderMessage, 'type'>) => void;
|
5469
|
+
updatePreviewSettings: (options: Omit<UpdatePreviewSettingsMessage, 'type'>) => void;
|
5470
|
+
reportRenderedCompositions: (options: Omit<ReportRenderedCompositionsMessage, 'type'>) => void;
|
5475
5471
|
};
|
5476
5472
|
declare const createCanvasChannel: ({ listenTo, broadcastTo, }: {
|
5477
5473
|
listenTo: Window[];
|
@@ -5549,10 +5545,18 @@ declare const CANVAS_ENRICHMENT_TAG_PARAM = "$enr";
|
|
5549
5545
|
declare const IN_CONTEXT_EDITOR_QUERY_STRING_PARAM = "is_incontext_editing_mode";
|
5550
5546
|
/** The value of "data-role" in the component start `<script>` tag */
|
5551
5547
|
declare const IN_CONTEXT_EDITOR_COMPONENT_START_ROLE = "uniform-component-start";
|
5548
|
+
/** The value of "data-role" in the component end `<script>` tag */
|
5549
|
+
declare const IN_CONTEXT_EDITOR_COMPONENT_END_ROLE = "uniform-component-end";
|
5552
5550
|
/** The ID of the Contextual Editing script that gets embedded in frontend apps */
|
5553
5551
|
declare const IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID = "uniform-canvas-preview-script";
|
5554
5552
|
/** The ID we give to placeholder components */
|
5555
5553
|
declare const PLACEHOLDER_ID = "placeholder";
|
5554
|
+
/** Contextual editing empty composition, used as a placeholder while waiting for the composition to be send by the editor. */
|
5555
|
+
declare const EMPTY_COMPOSITION: {
|
5556
|
+
_id: string;
|
5557
|
+
_name: string;
|
5558
|
+
type: string;
|
5559
|
+
};
|
5556
5560
|
/** Minimal value for Edgehancers Cache TTL (in seconds) */
|
5557
5561
|
declare const EDGE_MIN_CACHE_TTL = 15;
|
5558
5562
|
/** Maximal value for Edgehancers Cache TTL (in seconds) */
|
@@ -5590,7 +5594,6 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5590
5594
|
connectedData?: {
|
5591
5595
|
pointer: string;
|
5592
5596
|
syntax: "jptr";
|
5593
|
-
required?: boolean | undefined;
|
5594
5597
|
} | undefined;
|
5595
5598
|
};
|
5596
5599
|
} | undefined;
|
@@ -5610,7 +5613,6 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5610
5613
|
connectedData?: {
|
5611
5614
|
pointer: string;
|
5612
5615
|
syntax: "jptr";
|
5613
|
-
required?: boolean | undefined;
|
5614
5616
|
} | undefined;
|
5615
5617
|
};
|
5616
5618
|
} | undefined;
|
@@ -5650,7 +5652,6 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5650
5652
|
connectedData?: {
|
5651
5653
|
pointer: string;
|
5652
5654
|
syntax: "jptr";
|
5653
|
-
required?: boolean | undefined;
|
5654
5655
|
} | undefined;
|
5655
5656
|
};
|
5656
5657
|
} | undefined;
|
@@ -5687,7 +5688,6 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5687
5688
|
connectedData?: {
|
5688
5689
|
pointer: string;
|
5689
5690
|
syntax: "jptr";
|
5690
|
-
required?: boolean | undefined;
|
5691
5691
|
} | undefined;
|
5692
5692
|
};
|
5693
5693
|
} | undefined;
|
@@ -5724,4 +5724,4 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
|
|
5724
5724
|
|
5725
5725
|
declare const CanvasClientError: typeof ApiClientError;
|
5726
5726
|
|
5727
|
-
export { AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, CANVAS_DRAFT_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionPatternIssue, CompositionPutParameters, CompositionResolvedGetResponse, CompositionUIStatus, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariableIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DismissPlaceholderMessage, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, InvalidationPayload, InvalidationResult, LimitPolicy, MessageHandler, MoveComponentMessage, OverrideIssue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, ReadyMessage, RootComponentInstance, SelectComponentMessage, SpecificProjectMap, SubscribeToCompositionOptions, UncachedCanvasClient, UniqueBatchEntries, UnsubscribeCallback, UpdateCompositionMessage, WalkComponentTreeActions, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isSelectComponentMessage, isSystemComponentDefinition, isUpdateCompositionMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, subscribeToComposition, walkComponentTree };
|
5727
|
+
export { AddComponentMessage, BatchEnhancer, BatchEntry, BatchInvalidationPayload, CANVAS_DRAFT_STATE, CANVAS_ENRICHMENT_TAG_PARAM, CANVAS_INTENT_TAG_PARAM, CANVAS_LOCALE_TAG_PARAM, CANVAS_LOCALIZATION_SLOT, CANVAS_LOCALIZATION_TYPE, CANVAS_PERSONALIZATION_PARAM, CANVAS_PERSONALIZE_SLOT, CANVAS_PERSONALIZE_TYPE, CANVAS_PUBLISHED_STATE, CANVAS_TEST_SLOT, CANVAS_TEST_TYPE, CANVAS_TEST_VARIANT_PARAM, CanvasClient, CanvasClientError, CanvasDefinitions, Channel, ChannelMessage, ChannelSubscription, ChildEnhancerBuilder, ComponentDefinition, ComponentDefinitionAPIDeleteRequest, ComponentDefinitionAPIPutRequest, ComponentDefinitionAPIResponse, ComponentDefinitionDeleteParameters, ComponentDefinitionGetParameters, ComponentDefinitionGetResponse, ComponentDefinitionListAPIOptions, ComponentDefinitionParameter, ComponentDefinitionPermission, ComponentDefinitionPutParameters, ComponentDefinitionSlot, ComponentDefinitionSlugSettings, ComponentDefinitionVariant, ComponentEnhancer, ComponentEnhancerFunction, ComponentEnhancerOptions, ComponentInstance, ComponentLocationReference, ComponentOverridability, ComponentOverride, ComponentOverrides, ComponentParameter, ComponentParameterEnhancer, ComponentParameterEnhancerFunction, ComponentParameterEnhancerOptions, CompositionAPIDeleteRequest, CompositionAPIOptions, CompositionAPIResponse, CompositionDataDiagnostic, CompositionDeleteParameters, CompositionDiagnostics, CompositionGetByIdParameters, CompositionGetByNodeIdParameters, CompositionGetByNodePathParameters, CompositionGetBySlugParameters, CompositionGetListResponse, CompositionGetOrderBy, CompositionGetParameters, CompositionGetResponse, CompositionGetValidResponses, CompositionIssue, CompositionListAPIResponse, CompositionPatternIssue, CompositionPutParameters, CompositionResolvedGetResponse, CompositionUIStatus, CreatingComponentDefinition, DataElementBindingIssue, DataElementConnectionDefinition, DataResolutionConfigIssue, DataResolutionOption, DataResolutionOptionNegative, DataResolutionOptionPositive, DataResolutionParameters, DataResourceDefinition, DataResourceDefinitions, DataResourceIssue, DataResourceVariableIssue, DataResourceVariables, DataSource, DataSourceClient, DataSourceDeleteParameters, DataSourceGetParameters, DataSourceGetResponse, DataSourcePutParameters, DataSourcesGetParameters, DataSourcesGetResponse, DataType, DataTypeClient, DataTypeDeleteParameters, DataTypeGetParameters, DataTypeGetResponse, DataTypePutParameters, DataVariableDefinition, DismissPlaceholderMessage, EDGE_CACHE_DISABLED, EDGE_DEFAULT_CACHE_TTL, EDGE_DEFAULT_L2_CACHE_TTL_IN_HOURS, EDGE_MAX_CACHE_TTL, EDGE_MAX_L2_CACHE_TTL_IN_HOURS, EDGE_MIN_CACHE_TTL, EDGE_MIN_L2_CACHE_TTL_IN_HOURS, EMPTY_COMPOSITION, EnhancerBuilder, EnhancerContext, EnhancerError, EventNames, IN_CONTEXT_EDITOR_COMPONENT_END_ROLE, IN_CONTEXT_EDITOR_COMPONENT_START_ROLE, IN_CONTEXT_EDITOR_EMBED_SCRIPT_ID, IN_CONTEXT_EDITOR_QUERY_STRING_PARAM, InvalidationPayload, InvalidationResult, LimitPolicy, MessageHandler, MoveComponentMessage, OverrideIssue, OverrideOptions, PLACEHOLDER_ID, PreviewEventBus, PreviewPanelSettings, ReadyMessage, ReportRenderedCompositionsMessage, RootComponentInstance, SelectComponentMessage, SpecificProjectMap, SubscribeToCompositionOptions, UncachedCanvasClient, UniqueBatchEntries, UnsubscribeCallback, UpdateCompositionMessage, UpdatePreviewSettingsMessage, WalkComponentTreeActions, compose, createBatchEnhancer, createCanvasChannel, createEventBus, createLimitPolicy, createUniformApiEnhancer, enhance, extractLocales, generateHash, getChannelName, getComponentJsonPointer, getComponentPath, isAddComponentMessage, isDismissPlaceholderMessage, isMovingComponentMessage, isReadyMessage, isReportRenderedCompositionsMessage, isSelectComponentMessage, isSystemComponentDefinition, isUpdateCompositionMessage, isUpdatePreviewSettingsMessage, localize, mapSlotToPersonalizedVariations, mapSlotToTestVariations, nullLimitPolicy, subscribeToComposition, walkComponentTree };
|