@uniformdev/canvas 18.22.0 → 18.24.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 +217 -17
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +11 -13
package/dist/index.d.ts
CHANGED
@@ -30,9 +30,21 @@ interface components$2 {
|
|
30
30
|
allowedComponents: string[];
|
31
31
|
/**
|
32
32
|
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
33
|
+
* If allowAllComponents is true, this value is ignored.
|
34
|
+
*
|
33
35
|
* @default false
|
34
36
|
*/
|
35
37
|
inheritAllowedComponents: boolean;
|
38
|
+
/**
|
39
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
40
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
41
|
+
*/
|
42
|
+
allowAllComponents?: boolean;
|
43
|
+
/**
|
44
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
45
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
46
|
+
*/
|
47
|
+
patternsInAllowedComponents?: boolean;
|
36
48
|
/** @description Minimum valid number of components in this slot */
|
37
49
|
minComponents?: number;
|
38
50
|
/** @description Maximum valid number of components in this slot */
|
@@ -268,6 +280,7 @@ interface components$2 {
|
|
268
280
|
parameters?: {
|
269
281
|
[key: string]: components$2["schemas"]["ComponentParameter"];
|
270
282
|
};
|
283
|
+
variant?: string;
|
271
284
|
};
|
272
285
|
/**
|
273
286
|
* @deprecated
|
@@ -276,9 +289,12 @@ interface components$2 {
|
|
276
289
|
* NOTE: Data resources' overridability is defined in the data resource definition.
|
277
290
|
*/
|
278
291
|
ComponentOverridability: {
|
292
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
279
293
|
parameters?: {
|
280
294
|
[key: string]: components$2["schemas"]["OverrideOptions"];
|
281
295
|
};
|
296
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
297
|
+
variants?: boolean;
|
282
298
|
};
|
283
299
|
/**
|
284
300
|
* @deprecated
|
@@ -415,8 +431,14 @@ interface components$2 {
|
|
415
431
|
DataResourceDefinition: {
|
416
432
|
/** @description Public ID of the data type that provides this data */
|
417
433
|
type: string;
|
418
|
-
/** @description Whether this data is a pattern
|
434
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
419
435
|
isPatternParameter?: boolean;
|
436
|
+
/**
|
437
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
438
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
439
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
440
|
+
*/
|
441
|
+
ignorePatternParameterDefault?: boolean;
|
420
442
|
variables?: components$2["schemas"]["DataResourceVariables"];
|
421
443
|
};
|
422
444
|
/**
|
@@ -610,9 +632,21 @@ interface external$5 {
|
|
610
632
|
allowedComponents: string[];
|
611
633
|
/**
|
612
634
|
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
635
|
+
* If allowAllComponents is true, this value is ignored.
|
636
|
+
*
|
613
637
|
* @default false
|
614
638
|
*/
|
615
639
|
inheritAllowedComponents: boolean;
|
640
|
+
/**
|
641
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
642
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
643
|
+
*/
|
644
|
+
allowAllComponents?: boolean;
|
645
|
+
/**
|
646
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
647
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
648
|
+
*/
|
649
|
+
patternsInAllowedComponents?: boolean;
|
616
650
|
/** @description Minimum valid number of components in this slot */
|
617
651
|
minComponents?: number;
|
618
652
|
/** @description Maximum valid number of components in this slot */
|
@@ -848,6 +882,7 @@ interface external$5 {
|
|
848
882
|
parameters?: {
|
849
883
|
[key: string]: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
850
884
|
};
|
885
|
+
variant?: string;
|
851
886
|
};
|
852
887
|
/**
|
853
888
|
* @deprecated
|
@@ -856,9 +891,12 @@ interface external$5 {
|
|
856
891
|
* NOTE: Data resources' overridability is defined in the data resource definition.
|
857
892
|
*/
|
858
893
|
ComponentOverridability: {
|
894
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
859
895
|
parameters?: {
|
860
896
|
[key: string]: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
861
897
|
};
|
898
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
899
|
+
variants?: boolean;
|
862
900
|
};
|
863
901
|
/**
|
864
902
|
* @deprecated
|
@@ -995,8 +1033,14 @@ interface external$5 {
|
|
995
1033
|
DataResourceDefinition: {
|
996
1034
|
/** @description Public ID of the data type that provides this data */
|
997
1035
|
type: string;
|
998
|
-
/** @description Whether this data is a pattern
|
1036
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
999
1037
|
isPatternParameter?: boolean;
|
1038
|
+
/**
|
1039
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
1040
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
1041
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
1042
|
+
*/
|
1043
|
+
ignorePatternParameterDefault?: boolean;
|
1000
1044
|
variables?: external$5["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
1001
1045
|
};
|
1002
1046
|
/**
|
@@ -1444,9 +1488,21 @@ interface external$4 {
|
|
1444
1488
|
allowedComponents: string[];
|
1445
1489
|
/**
|
1446
1490
|
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
1491
|
+
* If allowAllComponents is true, this value is ignored.
|
1492
|
+
*
|
1447
1493
|
* @default false
|
1448
1494
|
*/
|
1449
1495
|
inheritAllowedComponents: boolean;
|
1496
|
+
/**
|
1497
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
1498
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
1499
|
+
*/
|
1500
|
+
allowAllComponents?: boolean;
|
1501
|
+
/**
|
1502
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
1503
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
1504
|
+
*/
|
1505
|
+
patternsInAllowedComponents?: boolean;
|
1450
1506
|
/** @description Minimum valid number of components in this slot */
|
1451
1507
|
minComponents?: number;
|
1452
1508
|
/** @description Maximum valid number of components in this slot */
|
@@ -1682,6 +1738,7 @@ interface external$4 {
|
|
1682
1738
|
parameters?: {
|
1683
1739
|
[key: string]: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
1684
1740
|
};
|
1741
|
+
variant?: string;
|
1685
1742
|
};
|
1686
1743
|
/**
|
1687
1744
|
* @deprecated
|
@@ -1690,9 +1747,12 @@ interface external$4 {
|
|
1690
1747
|
* NOTE: Data resources' overridability is defined in the data resource definition.
|
1691
1748
|
*/
|
1692
1749
|
ComponentOverridability: {
|
1750
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
1693
1751
|
parameters?: {
|
1694
1752
|
[key: string]: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
1695
1753
|
};
|
1754
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
1755
|
+
variants?: boolean;
|
1696
1756
|
};
|
1697
1757
|
/**
|
1698
1758
|
* @deprecated
|
@@ -1829,8 +1889,14 @@ interface external$4 {
|
|
1829
1889
|
DataResourceDefinition: {
|
1830
1890
|
/** @description Public ID of the data type that provides this data */
|
1831
1891
|
type: string;
|
1832
|
-
/** @description Whether this data is a pattern
|
1892
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
1833
1893
|
isPatternParameter?: boolean;
|
1894
|
+
/**
|
1895
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
1896
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
1897
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
1898
|
+
*/
|
1899
|
+
ignorePatternParameterDefault?: boolean;
|
1834
1900
|
variables?: external$4["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
1835
1901
|
};
|
1836
1902
|
/**
|
@@ -1897,9 +1963,32 @@ interface components {
|
|
1897
1963
|
};
|
1898
1964
|
data: unknown;
|
1899
1965
|
};
|
1966
|
+
CompositionDiagnostics: {
|
1967
|
+
/** @description Edge location where the request was processed */
|
1968
|
+
edgeLocation?: string;
|
1969
|
+
compositionFetch?: {
|
1970
|
+
/** @description How long it took to fetch the composition (ms) */
|
1971
|
+
duration: number;
|
1972
|
+
/** @description Indicates if the composition was fetched from the cache */
|
1973
|
+
cacheHit: boolean;
|
1974
|
+
/** @description Indicates if the request results in a valid composition */
|
1975
|
+
hasValidComposition: boolean;
|
1976
|
+
/** @description Edge cache location used */
|
1977
|
+
cacheLocation?: string;
|
1978
|
+
/** @description Uniform-specifc request identifiers */
|
1979
|
+
requestId?: string;
|
1980
|
+
};
|
1981
|
+
configRetrieval?: {
|
1982
|
+
/** @description How long it took to retrieve the config (ms, in parallel to composition fetch) */
|
1983
|
+
duration: number;
|
1984
|
+
/** @description How many data type configs were retrieved */
|
1985
|
+
dataTypeCount: number;
|
1986
|
+
};
|
1987
|
+
data?: components["schemas"]["DataDiagnostic"][];
|
1988
|
+
};
|
1900
1989
|
CompositionIssue: {
|
1901
|
-
componentPath
|
1902
|
-
componentType
|
1990
|
+
componentPath?: string;
|
1991
|
+
componentType?: string;
|
1903
1992
|
message: string;
|
1904
1993
|
type: string;
|
1905
1994
|
};
|
@@ -1960,7 +2049,7 @@ interface components {
|
|
1960
2049
|
CompositionResult: {
|
1961
2050
|
content: {
|
1962
2051
|
"application/json": {
|
1963
|
-
|
2052
|
+
diagnostics?: components["schemas"]["CompositionDiagnostics"];
|
1964
2053
|
errors?: components["schemas"]["CompositionIssue"][];
|
1965
2054
|
warnings?: components["schemas"]["CompositionIssue"][];
|
1966
2055
|
} & external$3["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["schemas"]["CompositionApiResponse"];
|
@@ -2050,9 +2139,21 @@ interface external$3 {
|
|
2050
2139
|
allowedComponents: string[];
|
2051
2140
|
/**
|
2052
2141
|
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
2142
|
+
* If allowAllComponents is true, this value is ignored.
|
2143
|
+
*
|
2053
2144
|
* @default false
|
2054
2145
|
*/
|
2055
2146
|
inheritAllowedComponents: boolean;
|
2147
|
+
/**
|
2148
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
2149
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
2150
|
+
*/
|
2151
|
+
allowAllComponents?: boolean;
|
2152
|
+
/**
|
2153
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
2154
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
2155
|
+
*/
|
2156
|
+
patternsInAllowedComponents?: boolean;
|
2056
2157
|
/** @description Minimum valid number of components in this slot */
|
2057
2158
|
minComponents?: number;
|
2058
2159
|
/** @description Maximum valid number of components in this slot */
|
@@ -2288,6 +2389,7 @@ interface external$3 {
|
|
2288
2389
|
parameters?: {
|
2289
2390
|
[key: string]: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
2290
2391
|
};
|
2392
|
+
variant?: string;
|
2291
2393
|
};
|
2292
2394
|
/**
|
2293
2395
|
* @deprecated
|
@@ -2296,9 +2398,12 @@ interface external$3 {
|
|
2296
2398
|
* NOTE: Data resources' overridability is defined in the data resource definition.
|
2297
2399
|
*/
|
2298
2400
|
ComponentOverridability: {
|
2401
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
2299
2402
|
parameters?: {
|
2300
2403
|
[key: string]: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
2301
2404
|
};
|
2405
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
2406
|
+
variants?: boolean;
|
2302
2407
|
};
|
2303
2408
|
/**
|
2304
2409
|
* @deprecated
|
@@ -2435,8 +2540,14 @@ interface external$3 {
|
|
2435
2540
|
DataResourceDefinition: {
|
2436
2541
|
/** @description Public ID of the data type that provides this data */
|
2437
2542
|
type: string;
|
2438
|
-
/** @description Whether this data is a pattern
|
2543
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
2439
2544
|
isPatternParameter?: boolean;
|
2545
|
+
/**
|
2546
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
2547
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
2548
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
2549
|
+
*/
|
2550
|
+
ignorePatternParameterDefault?: boolean;
|
2440
2551
|
variables?: external$3["../../../lambda/functions/uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
2441
2552
|
};
|
2442
2553
|
/**
|
@@ -2876,10 +2987,10 @@ type DataResolutionOptionPositive = {
|
|
2876
2987
|
};
|
2877
2988
|
type DataResolutionParameters = {
|
2878
2989
|
/**
|
2879
|
-
* Adds additional diagnostics
|
2990
|
+
* Adds additional diagnostics about edge request processing to the response (`diagnostics`).
|
2880
2991
|
* Because this adds a lot of data to the response, we do not recommend using this unless diagnosing performance issues.
|
2881
2992
|
*/
|
2882
|
-
|
2993
|
+
unstable_diagnostics?: boolean;
|
2883
2994
|
/**
|
2884
2995
|
* Pass dynamic variables to the composition that are required for resolving bindings and datas,
|
2885
2996
|
* such as language, detail page ID, etc.
|
@@ -2920,15 +3031,18 @@ type OverrideIssue = CompositionIssueCore & {
|
|
2920
3031
|
message: string;
|
2921
3032
|
type: 'override';
|
2922
3033
|
};
|
3034
|
+
/** Diagnostics about edge request processing */
|
3035
|
+
type CompositionDiagnostics = components['schemas']['CompositionDiagnostics'];
|
2923
3036
|
/** Diagnostic data about the load performance of attached composition datas */
|
2924
3037
|
type CompositionDataDiagnostic = components['schemas']['DataDiagnostic'];
|
2925
3038
|
/** Response as it comes from the data resolution endpoint */
|
2926
3039
|
type CompositionResolvedGetResponse = CompositionGetResponse & {
|
2927
3040
|
/**
|
2928
|
-
*
|
2929
|
-
*
|
3041
|
+
* Diagnostic information about request processing, including origin/config/data
|
3042
|
+
* timings, edge locations, cache statuses and raw data.
|
3043
|
+
* Only set when diagnostics=true is passed to the options.
|
2930
3044
|
*/
|
2931
|
-
|
3045
|
+
diagnostics?: CompositionDiagnostics;
|
2932
3046
|
/**
|
2933
3047
|
* Any failures to bind to data that occured on bindings marked 'must exist'.
|
2934
3048
|
* If no failures occurred, this will be undefined.
|
@@ -3002,6 +3116,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3002
3116
|
[key: string]: {
|
3003
3117
|
type: string;
|
3004
3118
|
isPatternParameter?: boolean | undefined;
|
3119
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
3005
3120
|
variables?: {
|
3006
3121
|
[key: string]: string;
|
3007
3122
|
} | undefined;
|
@@ -3011,6 +3126,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3011
3126
|
[key: string]: {
|
3012
3127
|
type: string;
|
3013
3128
|
isPatternParameter?: boolean | undefined;
|
3129
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
3014
3130
|
variables?: {
|
3015
3131
|
[key: string]: string;
|
3016
3132
|
} | undefined;
|
@@ -3030,12 +3146,14 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3030
3146
|
} | undefined;
|
3031
3147
|
};
|
3032
3148
|
} | undefined;
|
3149
|
+
variant?: string | undefined;
|
3033
3150
|
};
|
3034
3151
|
} | undefined;
|
3035
3152
|
_overridability?: {
|
3036
3153
|
parameters?: {
|
3037
3154
|
[key: string]: "no" | "yes";
|
3038
3155
|
} | undefined;
|
3156
|
+
variants?: boolean | undefined;
|
3039
3157
|
} | undefined;
|
3040
3158
|
}[];
|
3041
3159
|
} | undefined;
|
@@ -3046,6 +3164,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3046
3164
|
[key: string]: {
|
3047
3165
|
type: string;
|
3048
3166
|
isPatternParameter?: boolean | undefined;
|
3167
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
3049
3168
|
variables?: {
|
3050
3169
|
[key: string]: string;
|
3051
3170
|
} | undefined;
|
@@ -3064,12 +3183,14 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3064
3183
|
} | undefined;
|
3065
3184
|
};
|
3066
3185
|
} | undefined;
|
3186
|
+
variant?: string | undefined;
|
3067
3187
|
};
|
3068
3188
|
} | undefined;
|
3069
3189
|
_overridability?: {
|
3070
3190
|
parameters?: {
|
3071
3191
|
[key: string]: "no" | "yes";
|
3072
3192
|
} | undefined;
|
3193
|
+
variants?: boolean | undefined;
|
3073
3194
|
} | undefined;
|
3074
3195
|
};
|
3075
3196
|
}[];
|
@@ -3124,8 +3245,10 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3124
3245
|
slots?: {
|
3125
3246
|
id: string;
|
3126
3247
|
name: string;
|
3127
|
-
allowedComponents: string[];
|
3248
|
+
allowedComponents: string[];
|
3128
3249
|
inheritAllowedComponents: boolean;
|
3250
|
+
allowAllComponents?: boolean | undefined;
|
3251
|
+
patternsInAllowedComponents?: boolean | undefined;
|
3129
3252
|
minComponents?: number | undefined;
|
3130
3253
|
maxComponents?: number | undefined;
|
3131
3254
|
}[] | undefined;
|
@@ -3158,6 +3281,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3158
3281
|
[key: string]: {
|
3159
3282
|
type: string;
|
3160
3283
|
isPatternParameter?: boolean | undefined;
|
3284
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
3161
3285
|
variables?: {
|
3162
3286
|
[key: string]: string;
|
3163
3287
|
} | undefined;
|
@@ -3167,6 +3291,7 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3167
3291
|
[key: string]: {
|
3168
3292
|
type: string;
|
3169
3293
|
isPatternParameter?: boolean | undefined;
|
3294
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
3170
3295
|
variables?: {
|
3171
3296
|
[key: string]: string;
|
3172
3297
|
} | undefined;
|
@@ -3186,12 +3311,14 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
|
|
3186
3311
|
} | undefined;
|
3187
3312
|
};
|
3188
3313
|
} | undefined;
|
3314
|
+
variant?: string | undefined;
|
3189
3315
|
};
|
3190
3316
|
} | undefined;
|
3191
3317
|
_overridability?: {
|
3192
3318
|
parameters?: {
|
3193
3319
|
[key: string]: "no" | "yes";
|
3194
3320
|
} | undefined;
|
3321
|
+
variants?: boolean | undefined;
|
3195
3322
|
} | undefined;
|
3196
3323
|
} | null | undefined;
|
3197
3324
|
variants?: {
|
@@ -3360,9 +3487,21 @@ interface external$2 {
|
|
3360
3487
|
allowedComponents: string[];
|
3361
3488
|
/**
|
3362
3489
|
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
3490
|
+
* If allowAllComponents is true, this value is ignored.
|
3491
|
+
*
|
3363
3492
|
* @default false
|
3364
3493
|
*/
|
3365
3494
|
inheritAllowedComponents: boolean;
|
3495
|
+
/**
|
3496
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
3497
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
3498
|
+
*/
|
3499
|
+
allowAllComponents?: boolean;
|
3500
|
+
/**
|
3501
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
3502
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
3503
|
+
*/
|
3504
|
+
patternsInAllowedComponents?: boolean;
|
3366
3505
|
/** @description Minimum valid number of components in this slot */
|
3367
3506
|
minComponents?: number;
|
3368
3507
|
/** @description Maximum valid number of components in this slot */
|
@@ -3598,6 +3737,7 @@ interface external$2 {
|
|
3598
3737
|
parameters?: {
|
3599
3738
|
[key: string]: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
3600
3739
|
};
|
3740
|
+
variant?: string;
|
3601
3741
|
};
|
3602
3742
|
/**
|
3603
3743
|
* @deprecated
|
@@ -3606,9 +3746,12 @@ interface external$2 {
|
|
3606
3746
|
* NOTE: Data resources' overridability is defined in the data resource definition.
|
3607
3747
|
*/
|
3608
3748
|
ComponentOverridability: {
|
3749
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
3609
3750
|
parameters?: {
|
3610
3751
|
[key: string]: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
3611
3752
|
};
|
3753
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
3754
|
+
variants?: boolean;
|
3612
3755
|
};
|
3613
3756
|
/**
|
3614
3757
|
* @deprecated
|
@@ -3745,8 +3888,14 @@ interface external$2 {
|
|
3745
3888
|
DataResourceDefinition: {
|
3746
3889
|
/** @description Public ID of the data type that provides this data */
|
3747
3890
|
type: string;
|
3748
|
-
/** @description Whether this data is a pattern
|
3891
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
3749
3892
|
isPatternParameter?: boolean;
|
3893
|
+
/**
|
3894
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
3895
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
3896
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
3897
|
+
*/
|
3898
|
+
ignorePatternParameterDefault?: boolean;
|
3750
3899
|
variables?: external$2["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
3751
3900
|
};
|
3752
3901
|
/**
|
@@ -3882,9 +4031,21 @@ interface external$1 {
|
|
3882
4031
|
allowedComponents: string[];
|
3883
4032
|
/**
|
3884
4033
|
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
4034
|
+
* If allowAllComponents is true, this value is ignored.
|
4035
|
+
*
|
3885
4036
|
* @default false
|
3886
4037
|
*/
|
3887
4038
|
inheritAllowedComponents: boolean;
|
4039
|
+
/**
|
4040
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
4041
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
4042
|
+
*/
|
4043
|
+
allowAllComponents?: boolean;
|
4044
|
+
/**
|
4045
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
4046
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
4047
|
+
*/
|
4048
|
+
patternsInAllowedComponents?: boolean;
|
3888
4049
|
/** @description Minimum valid number of components in this slot */
|
3889
4050
|
minComponents?: number;
|
3890
4051
|
/** @description Maximum valid number of components in this slot */
|
@@ -4120,6 +4281,7 @@ interface external$1 {
|
|
4120
4281
|
parameters?: {
|
4121
4282
|
[key: string]: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
4122
4283
|
};
|
4284
|
+
variant?: string;
|
4123
4285
|
};
|
4124
4286
|
/**
|
4125
4287
|
* @deprecated
|
@@ -4128,9 +4290,12 @@ interface external$1 {
|
|
4128
4290
|
* NOTE: Data resources' overridability is defined in the data resource definition.
|
4129
4291
|
*/
|
4130
4292
|
ComponentOverridability: {
|
4293
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
4131
4294
|
parameters?: {
|
4132
4295
|
[key: string]: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
4133
4296
|
};
|
4297
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
4298
|
+
variants?: boolean;
|
4134
4299
|
};
|
4135
4300
|
/**
|
4136
4301
|
* @deprecated
|
@@ -4267,8 +4432,14 @@ interface external$1 {
|
|
4267
4432
|
DataResourceDefinition: {
|
4268
4433
|
/** @description Public ID of the data type that provides this data */
|
4269
4434
|
type: string;
|
4270
|
-
/** @description Whether this data is a pattern
|
4435
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
4271
4436
|
isPatternParameter?: boolean;
|
4437
|
+
/**
|
4438
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
4439
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
4440
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
4441
|
+
*/
|
4442
|
+
ignorePatternParameterDefault?: boolean;
|
4272
4443
|
variables?: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
4273
4444
|
};
|
4274
4445
|
/**
|
@@ -4439,9 +4610,21 @@ interface external {
|
|
4439
4610
|
allowedComponents: string[];
|
4440
4611
|
/**
|
4441
4612
|
* @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
|
4613
|
+
* If allowAllComponents is true, this value is ignored.
|
4614
|
+
*
|
4442
4615
|
* @default false
|
4443
4616
|
*/
|
4444
4617
|
inheritAllowedComponents: boolean;
|
4618
|
+
/**
|
4619
|
+
* @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
|
4620
|
+
* When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
|
4621
|
+
*/
|
4622
|
+
allowAllComponents?: boolean;
|
4623
|
+
/**
|
4624
|
+
* @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
|
4625
|
+
* When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
|
4626
|
+
*/
|
4627
|
+
patternsInAllowedComponents?: boolean;
|
4445
4628
|
/** @description Minimum valid number of components in this slot */
|
4446
4629
|
minComponents?: number;
|
4447
4630
|
/** @description Maximum valid number of components in this slot */
|
@@ -4677,6 +4860,7 @@ interface external {
|
|
4677
4860
|
parameters?: {
|
4678
4861
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentParameter"];
|
4679
4862
|
};
|
4863
|
+
variant?: string;
|
4680
4864
|
};
|
4681
4865
|
/**
|
4682
4866
|
* @deprecated
|
@@ -4685,9 +4869,12 @@ interface external {
|
|
4685
4869
|
* NOTE: Data resources' overridability is defined in the data resource definition.
|
4686
4870
|
*/
|
4687
4871
|
ComponentOverridability: {
|
4872
|
+
/** @description Defines component parameter value overrides. Keys are the parameter public ID. */
|
4688
4873
|
parameters?: {
|
4689
4874
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["OverrideOptions"];
|
4690
4875
|
};
|
4876
|
+
/** @description Allows overriding a display variant is allowed, if it is defined on the component the pattern is derived from. Default = false. */
|
4877
|
+
variants?: boolean;
|
4691
4878
|
};
|
4692
4879
|
/**
|
4693
4880
|
* @deprecated
|
@@ -4824,8 +5011,14 @@ interface external {
|
|
4824
5011
|
DataResourceDefinition: {
|
4825
5012
|
/** @description Public ID of the data type that provides this data */
|
4826
5013
|
type: string;
|
4827
|
-
/** @description Whether this data is a pattern
|
5014
|
+
/** @description Whether this data is a pattern data resource that can be overridden when a pattern is referenced on another composition. If this is not a pattern composition, this has no meaning and should not be used. If unspecified, the default is false. */
|
4828
5015
|
isPatternParameter?: boolean;
|
5016
|
+
/**
|
5017
|
+
* @description When true, the default data resource of a pattern data parameter (isPatternParameter=true) will be ignored when the pattern is referenced.
|
5018
|
+
* Unless specifically overridden, the pattern data parameter will be provided with a null default value - leaving any data connections to it unresolvable.
|
5019
|
+
* If isPatternParameter is false or undefined, this has no meaning.
|
5020
|
+
*/
|
5021
|
+
ignorePatternParameterDefault?: boolean;
|
4829
5022
|
variables?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataResourceVariables"];
|
4830
5023
|
};
|
4831
5024
|
/**
|
@@ -5449,6 +5642,7 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5449
5642
|
[key: string]: {
|
5450
5643
|
type: string;
|
5451
5644
|
isPatternParameter?: boolean | undefined;
|
5645
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
5452
5646
|
variables?: {
|
5453
5647
|
[key: string]: string;
|
5454
5648
|
} | undefined;
|
@@ -5458,6 +5652,7 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5458
5652
|
[key: string]: {
|
5459
5653
|
type: string;
|
5460
5654
|
isPatternParameter?: boolean | undefined;
|
5655
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
5461
5656
|
variables?: {
|
5462
5657
|
[key: string]: string;
|
5463
5658
|
} | undefined;
|
@@ -5477,12 +5672,14 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5477
5672
|
} | undefined;
|
5478
5673
|
};
|
5479
5674
|
} | undefined;
|
5675
|
+
variant?: string | undefined;
|
5480
5676
|
};
|
5481
5677
|
} | undefined;
|
5482
5678
|
_overridability?: {
|
5483
5679
|
parameters?: {
|
5484
5680
|
[key: string]: "no" | "yes";
|
5485
5681
|
} | undefined;
|
5682
|
+
variants?: boolean | undefined;
|
5486
5683
|
} | undefined;
|
5487
5684
|
}[];
|
5488
5685
|
} | undefined;
|
@@ -5493,6 +5690,7 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5493
5690
|
[key: string]: {
|
5494
5691
|
type: string;
|
5495
5692
|
isPatternParameter?: boolean | undefined;
|
5693
|
+
ignorePatternParameterDefault?: boolean | undefined;
|
5496
5694
|
variables?: {
|
5497
5695
|
[key: string]: string;
|
5498
5696
|
} | undefined;
|
@@ -5511,12 +5709,14 @@ declare const createUniformApiEnhancer: ({ apiUrl }: {
|
|
5511
5709
|
} | undefined;
|
5512
5710
|
};
|
5513
5711
|
} | undefined;
|
5712
|
+
variant?: string | undefined;
|
5514
5713
|
};
|
5515
5714
|
} | undefined;
|
5516
5715
|
_overridability?: {
|
5517
5716
|
parameters?: {
|
5518
5717
|
[key: string]: "no" | "yes";
|
5519
5718
|
} | undefined;
|
5719
|
+
variants?: boolean | undefined;
|
5520
5720
|
} | undefined;
|
5521
5721
|
}>;
|
5522
5722
|
|
@@ -5542,4 +5742,4 @@ declare function mapSlotToTestVariations(slot: ComponentInstance[] | undefined):
|
|
5542
5742
|
|
5543
5743
|
declare const CanvasClientError: typeof ApiClientError;
|
5544
5744
|
|
5545
|
-
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, 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, 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 };
|
5745
|
+
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, 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 };
|
package/dist/index.esm.js
CHANGED
@@ -490,7 +490,7 @@ var CanvasClient = class extends ApiClient {
|
|
490
490
|
getOneComposition({
|
491
491
|
unstable_resolveData: resolveData,
|
492
492
|
unstable_dynamicVariables: dynamicVariables,
|
493
|
-
|
493
|
+
unstable_diagnostics: diagnostics,
|
494
494
|
...params
|
495
495
|
}) {
|
496
496
|
const { projectId } = this.options;
|
@@ -501,7 +501,7 @@ var CanvasClient = class extends ApiClient {
|
|
501
501
|
...params,
|
502
502
|
projectId,
|
503
503
|
...dynamicVariables ? { dynamicVariables: JSON.stringify(dynamicVariables) } : {},
|
504
|
-
...
|
504
|
+
...diagnostics ? { diagnostics: "true" } : {}
|
505
505
|
};
|
506
506
|
const edgeUrl = this.createUrl("/api/v1/composition", edgeParams, this.edgeApiHost);
|
507
507
|
return this.apiClient(edgeUrl);
|
package/dist/index.js
CHANGED
@@ -561,7 +561,7 @@ var CanvasClient = class extends import_api.ApiClient {
|
|
561
561
|
getOneComposition({
|
562
562
|
unstable_resolveData: resolveData,
|
563
563
|
unstable_dynamicVariables: dynamicVariables,
|
564
|
-
|
564
|
+
unstable_diagnostics: diagnostics,
|
565
565
|
...params
|
566
566
|
}) {
|
567
567
|
const { projectId } = this.options;
|
@@ -572,7 +572,7 @@ var CanvasClient = class extends import_api.ApiClient {
|
|
572
572
|
...params,
|
573
573
|
projectId,
|
574
574
|
...dynamicVariables ? { dynamicVariables: JSON.stringify(dynamicVariables) } : {},
|
575
|
-
...
|
575
|
+
...diagnostics ? { diagnostics: "true" } : {}
|
576
576
|
};
|
577
577
|
const edgeUrl = this.createUrl("/api/v1/composition", edgeParams, this.edgeApiHost);
|
578
578
|
return this.apiClient(edgeUrl);
|
package/dist/index.mjs
CHANGED
@@ -490,7 +490,7 @@ var CanvasClient = class extends ApiClient {
|
|
490
490
|
getOneComposition({
|
491
491
|
unstable_resolveData: resolveData,
|
492
492
|
unstable_dynamicVariables: dynamicVariables,
|
493
|
-
|
493
|
+
unstable_diagnostics: diagnostics,
|
494
494
|
...params
|
495
495
|
}) {
|
496
496
|
const { projectId } = this.options;
|
@@ -501,7 +501,7 @@ var CanvasClient = class extends ApiClient {
|
|
501
501
|
...params,
|
502
502
|
projectId,
|
503
503
|
...dynamicVariables ? { dynamicVariables: JSON.stringify(dynamicVariables) } : {},
|
504
|
-
...
|
504
|
+
...diagnostics ? { diagnostics: "true" } : {}
|
505
505
|
};
|
506
506
|
const edgeUrl = this.createUrl("/api/v1/composition", edgeParams, this.edgeApiHost);
|
507
507
|
return this.apiClient(edgeUrl);
|
package/package.json
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "18.
|
3
|
+
"version": "18.24.0",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
7
7
|
"module": "./dist/index.esm.js",
|
8
8
|
"exports": {
|
9
|
-
"
|
10
|
-
"
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
"
|
16
|
-
|
17
|
-
"default": "./dist/index.js"
|
18
|
-
}
|
9
|
+
"import": {
|
10
|
+
"types": "./dist/index.d.ts",
|
11
|
+
"node": "./dist/index.mjs",
|
12
|
+
"default": "./dist/index.esm.js"
|
13
|
+
},
|
14
|
+
"require": {
|
15
|
+
"types": "./dist/index.d.ts",
|
16
|
+
"default": "./dist/index.js"
|
19
17
|
}
|
20
18
|
},
|
21
19
|
"types": "./dist/index.d.ts",
|
@@ -49,7 +47,7 @@
|
|
49
47
|
"pusher-js": "8.0.1"
|
50
48
|
},
|
51
49
|
"dependencies": {
|
52
|
-
"@uniformdev/context": "18.
|
50
|
+
"@uniformdev/context": "18.24.0"
|
53
51
|
},
|
54
52
|
"files": [
|
55
53
|
"/dist"
|
@@ -57,5 +55,5 @@
|
|
57
55
|
"publishConfig": {
|
58
56
|
"access": "public"
|
59
57
|
},
|
60
|
-
"gitHead": "
|
58
|
+
"gitHead": "1e3a51a48860f7ec5861307dcda7d75278ac1505"
|
61
59
|
}
|