libreria-astro-lefebvre 0.0.32 → 0.0.34
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/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export const metadata: ComponentMetadata = {
|
|
|
8
8
|
framework: 'Astro',
|
|
9
9
|
priority: 1,
|
|
10
10
|
tags: ['boton', 'interactivo', 'ejemplo'],
|
|
11
|
-
|
|
11
|
+
fields: [
|
|
12
12
|
{
|
|
13
13
|
name: 'label',
|
|
14
14
|
type: 'text',
|
|
@@ -23,6 +23,25 @@ export const metadata: ComponentMetadata = {
|
|
|
23
23
|
mandatory: true,
|
|
24
24
|
example_value: 'https://lefebvre.es'
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
name: 'imagen',
|
|
28
|
+
type: 'image',
|
|
29
|
+
label: 'Imagen de prueba',
|
|
30
|
+
mandatory: true,
|
|
31
|
+
example_value: '',
|
|
32
|
+
image_cuts: [
|
|
33
|
+
{
|
|
34
|
+
label: "mobile",
|
|
35
|
+
width: "300",
|
|
36
|
+
height: "100"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "desktop",
|
|
40
|
+
width: "400",
|
|
41
|
+
height: "400"
|
|
42
|
+
},
|
|
43
|
+
]
|
|
44
|
+
},
|
|
26
45
|
{
|
|
27
46
|
name: 'target',
|
|
28
47
|
type: 'text',
|
|
@@ -31,4 +50,5 @@ export const metadata: ComponentMetadata = {
|
|
|
31
50
|
example_value: '_blank'
|
|
32
51
|
},
|
|
33
52
|
],
|
|
53
|
+
repeat_data: null
|
|
34
54
|
};
|
package/src/interfaces/types.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notas: en image_cuts, la idea es que sea un array de objetos con las propiedades que tenga sergio en limbo
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
1
5
|
export interface ComponentMetadata {
|
|
2
6
|
name: string;
|
|
3
7
|
description: string;
|
|
@@ -15,6 +19,8 @@ export interface ComponentMetadata {
|
|
|
15
19
|
options?: (string | number)[];
|
|
16
20
|
options_labels?: string[];
|
|
17
21
|
example_value?: string | number | boolean;
|
|
22
|
+
image_cuts?: object[];
|
|
18
23
|
}>;
|
|
19
24
|
view?: string;
|
|
25
|
+
repeat_data?: object|null;
|
|
20
26
|
}
|