@griddo/core 10.4.25 → 10.4.27

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.
@@ -98,14 +98,24 @@ interface FixedColorPicker extends GenericColorPicker {
98
98
  colors: Array<ThemeFixedColors>;
99
99
  }
100
100
  export type BaseColorPicker = DynamicColorPicker | FixedColorPicker;
101
- export interface BaseComponentArray extends GenericComponentField {
101
+ interface SimpleComponentArray {
102
+ /** key of the VisualUniqueSelection for the `elementUniqueSelection` property */
103
+ reference?: never;
104
+ /** Forces all elements of the Array in the `reference` prop (required) to be of the same type. This option must also be set on the `ComponentArray` with the `reference` key */
105
+ elementUniqueSelection?: false;
106
+ }
107
+ interface WithUniqueElementUniqueSelectionComponentArray {
108
+ /** key of the VisualUniqueSelection for the `elementUniqueSelection` property */
109
+ reference: string;
110
+ /** Forces all elements of the Array in the `reference` prop (required) to be of the same type. This option must also be set on the `ComponentArray` with the `reference` key */
111
+ elementUniqueSelection: true;
112
+ }
113
+ export type BaseComponentArray = GenericComponentField & {
102
114
  /** Campo para añadir múltiples componentes a un módulo. */
103
115
  type: "ComponentArray";
104
- /** Forces all elements of the Array to be of the same type. Default: false. If this option is enabled the schema should include a VisualUniqueSelection to choose the type. */
105
- elementUniqueSelection?: boolean;
106
116
  /** Indica si el field contiene modulos o componentes */
107
117
  contentType: "modules" | "components";
108
- }
118
+ } & (SimpleComponentArray | WithUniqueElementUniqueSelectionComponentArray);
109
119
  export interface BaseComponentContainer extends GenericComponentField {
110
120
  /** Field to add a single component to a module. */
111
121
  type: "ComponentContainer";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@griddo/core",
3
3
  "description": "Reload version of Griddo Core",
4
4
  "license": "UNLICENSED",
5
- "version": "10.4.25",
5
+ "version": "10.4.27",
6
6
  "authors": [
7
7
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
8
8
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "53c53fd6aab61303456fdb49a23ecd5aca2dec97"
76
+ "gitHead": "6185dbf170ba4bbe1a1d63873b06e6fd9624fd75"
77
77
  }