@uniformdev/assets 19.88.0 → 19.89.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.mts +22 -1
- package/dist/index.d.ts +22 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -332,6 +332,11 @@ interface external {
|
|
|
332
332
|
helpText?: string;
|
|
333
333
|
/** @description Type name of the parameter (provided by a Uniform integration) */
|
|
334
334
|
type: string;
|
|
335
|
+
/**
|
|
336
|
+
* @description If true, this property can have locale-specific values. If false or not defined,
|
|
337
|
+
* this property will have a single value that is shared for all locales.
|
|
338
|
+
*/
|
|
339
|
+
localizable?: boolean;
|
|
335
340
|
/** @description The configuration object for the type (type-specific) */
|
|
336
341
|
typeConfig?: unknown;
|
|
337
342
|
};
|
|
@@ -508,11 +513,18 @@ interface external {
|
|
|
508
513
|
/** @description Defines an editable parameter on a component. */
|
|
509
514
|
ComponentParameter: {
|
|
510
515
|
/** @description The value of the parameter. Any JSON-serializable value is acceptable. */
|
|
511
|
-
value
|
|
516
|
+
value?: unknown;
|
|
512
517
|
/** @description The type of the parameter. Determines how it is displayed when editing, and tells the consumer how to process it. */
|
|
513
518
|
type: string;
|
|
514
519
|
/** @deprecated */
|
|
515
520
|
connectedData?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
|
521
|
+
/**
|
|
522
|
+
* @description Locale-specific values for this parameter. Keys are locale codes, and values are the `value` in that locale.
|
|
523
|
+
* Note that locales must be registered on the entry/composition `_locales` before being used.
|
|
524
|
+
*/
|
|
525
|
+
locales?: {
|
|
526
|
+
[key: string]: unknown;
|
|
527
|
+
};
|
|
516
528
|
};
|
|
517
529
|
/** @description Defines a connection to a dynamic token on a data resource. */
|
|
518
530
|
DataElementConnectionDefinition: {
|
|
@@ -634,6 +646,8 @@ interface external {
|
|
|
634
646
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
635
647
|
*/
|
|
636
648
|
_overridability?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
|
649
|
+
/** @description Array of locales which have data defined on the composition. If empty, the current default locale implicitly has data. */
|
|
650
|
+
_locales?: string[];
|
|
637
651
|
};
|
|
638
652
|
/**
|
|
639
653
|
* @description Defines how to override a specific component.
|
|
@@ -700,6 +714,13 @@ interface external {
|
|
|
700
714
|
variables?: {
|
|
701
715
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariableDefinition"];
|
|
702
716
|
};
|
|
717
|
+
/**
|
|
718
|
+
* @description Mapping of locale codes to data source locale codes. Keys are Uniform locale codes, values are data source locale codes.
|
|
719
|
+
* If a locale is not mapped, it will be passed through to the data source as-is.
|
|
720
|
+
*/
|
|
721
|
+
localeMapping?: {
|
|
722
|
+
[key: string]: string;
|
|
723
|
+
};
|
|
703
724
|
/** @description Custom configuration specific to the data source being defined (used to maintain UI state for custom integrations) */
|
|
704
725
|
custom?: {
|
|
705
726
|
[key: string]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -332,6 +332,11 @@ interface external {
|
|
|
332
332
|
helpText?: string;
|
|
333
333
|
/** @description Type name of the parameter (provided by a Uniform integration) */
|
|
334
334
|
type: string;
|
|
335
|
+
/**
|
|
336
|
+
* @description If true, this property can have locale-specific values. If false or not defined,
|
|
337
|
+
* this property will have a single value that is shared for all locales.
|
|
338
|
+
*/
|
|
339
|
+
localizable?: boolean;
|
|
335
340
|
/** @description The configuration object for the type (type-specific) */
|
|
336
341
|
typeConfig?: unknown;
|
|
337
342
|
};
|
|
@@ -508,11 +513,18 @@ interface external {
|
|
|
508
513
|
/** @description Defines an editable parameter on a component. */
|
|
509
514
|
ComponentParameter: {
|
|
510
515
|
/** @description The value of the parameter. Any JSON-serializable value is acceptable. */
|
|
511
|
-
value
|
|
516
|
+
value?: unknown;
|
|
512
517
|
/** @description The type of the parameter. Determines how it is displayed when editing, and tells the consumer how to process it. */
|
|
513
518
|
type: string;
|
|
514
519
|
/** @deprecated */
|
|
515
520
|
connectedData?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataElementConnectionDefinition"];
|
|
521
|
+
/**
|
|
522
|
+
* @description Locale-specific values for this parameter. Keys are locale codes, and values are the `value` in that locale.
|
|
523
|
+
* Note that locales must be registered on the entry/composition `_locales` before being used.
|
|
524
|
+
*/
|
|
525
|
+
locales?: {
|
|
526
|
+
[key: string]: unknown;
|
|
527
|
+
};
|
|
516
528
|
};
|
|
517
529
|
/** @description Defines a connection to a dynamic token on a data resource. */
|
|
518
530
|
DataElementConnectionDefinition: {
|
|
@@ -634,6 +646,8 @@ interface external {
|
|
|
634
646
|
* Future updates that do not break the overrides-applied state of a composition may be made without notice.
|
|
635
647
|
*/
|
|
636
648
|
_overridability?: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["ComponentOverridability"];
|
|
649
|
+
/** @description Array of locales which have data defined on the composition. If empty, the current default locale implicitly has data. */
|
|
650
|
+
_locales?: string[];
|
|
637
651
|
};
|
|
638
652
|
/**
|
|
639
653
|
* @description Defines how to override a specific component.
|
|
@@ -700,6 +714,13 @@ interface external {
|
|
|
700
714
|
variables?: {
|
|
701
715
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariableDefinition"];
|
|
702
716
|
};
|
|
717
|
+
/**
|
|
718
|
+
* @description Mapping of locale codes to data source locale codes. Keys are Uniform locale codes, values are data source locale codes.
|
|
719
|
+
* If a locale is not mapped, it will be passed through to the data source as-is.
|
|
720
|
+
*/
|
|
721
|
+
localeMapping?: {
|
|
722
|
+
[key: string]: string;
|
|
723
|
+
};
|
|
703
724
|
/** @description Custom configuration specific to the data source being defined (used to maintain UI state for custom integrations) */
|
|
704
725
|
custom?: {
|
|
705
726
|
[key: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/assets",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.89.0",
|
|
4
4
|
"description": "Uniform Assets",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@uniformdev/context": "19.
|
|
39
|
+
"@uniformdev/context": "19.89.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "247189fb1039d0f81498949534646baaffb8bca7"
|
|
42
42
|
}
|