libreria-astro-lefebvre 0.0.123 → 0.0.124

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libreria-astro-lefebvre",
3
- "version": "0.0.123",
3
+ "version": "0.0.124",
4
4
  "description": "Librería de componentes Astro, React y Vue para Lefebvre",
5
5
  "author": "Equipo web desarrollo Lefebvre",
6
6
  "type": "module",
@@ -8,5 +8,19 @@ export const metadata: ComponentMetadata = {
8
8
  framework: 'Astro',
9
9
  priority: 1,
10
10
  tags: ['contenido', 'imagen', 'genial'],
11
- fields: []
11
+ fields: [
12
+ {
13
+ name: 'items',
14
+ type: 'list',
15
+ label: 'Listado de cards',
16
+ mandatory: false,
17
+ items: {
18
+ type: 'object',
19
+ fields: [
20
+ { name: 'title', type: 'text', label: 'Texto del título' },
21
+ { name: 'link', type: 'text', label: 'URL de enlace' }
22
+ ]
23
+ }
24
+ }
25
+ ]
12
26
  };
@@ -31,6 +31,13 @@ export const metadata: ComponentMetadata = {
31
31
  options_labels: ['H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'Span'],
32
32
  example_value: 'h2'
33
33
  },
34
+ {
35
+ name: 'showIco',
36
+ type: 'boolean',
37
+ label: 'Mostrar icono',
38
+ mandatory: false,
39
+ example_value: true
40
+ },
34
41
  {
35
42
  name: 'icon',
36
43
  type: 'select',
@@ -51,6 +51,20 @@ export const metadata: ComponentMetadata = {
51
51
  mandatory: false,
52
52
  example_value: 'Lefebvre Preview'
53
53
  },
54
+ {
55
+ name: 'author',
56
+ type: 'text',
57
+ label: 'Nombre del autor',
58
+ mandatory: false,
59
+ example_value: 'Juan Pérez'
60
+ },
61
+ {
62
+ name: 'authorURL',
63
+ type: 'text',
64
+ label: 'URL del perfil del autor',
65
+ mandatory: false,
66
+ example_value: 'https://facebook.com/usuario'
67
+ }
54
68
 
55
69
  ]
56
70
  };
@@ -15,6 +15,19 @@ export const metadata: ComponentMetadata = {
15
15
  label: 'Texto del título',
16
16
  mandatory: false,
17
17
  example_value: 'Preguntas frecuentes'
18
+ },
19
+ {
20
+ name: 'items',
21
+ type: 'list',
22
+ label: 'Listado de FAQs',
23
+ mandatory: false,
24
+ items: {
25
+ type: 'object',
26
+ fields: [
27
+ { name: 'question', type: 'text', label: 'Texto de la pregunta' },
28
+ { name: 'answer', type: 'text', label: 'Texto de la respuesta' }
29
+ ]
30
+ }
18
31
  }
19
32
  ]
20
33
  };
@@ -8,5 +8,13 @@ export const metadata: ComponentMetadata = {
8
8
  framework: 'Astro',
9
9
  priority: 1,
10
10
  tags: ['footer', 'genial'],
11
- fields: []
11
+ fields: [
12
+ {
13
+ name: 'subdirectory',
14
+ type: 'text',
15
+ label: 'Subdirectorio',
16
+ mandatory: false,
17
+ example_value: '/genia-l'
18
+ },
19
+ ]
12
20
  };
@@ -37,6 +37,13 @@ export const metadata: ComponentMetadata = {
37
37
  mandatory: false,
38
38
  example_value: '27925 Formulario Vamos Más Allá'
39
39
  },
40
+ {
41
+ name: 'businessAction',
42
+ type: 'text',
43
+ label: 'businessAction del formulario en LF2',
44
+ mandatory: false,
45
+ example_value: '27925'
46
+ },
40
47
  {
41
48
  name: 'orientation',
42
49
  type: 'select',
@@ -16,6 +16,13 @@ export const metadata: ComponentMetadata = {
16
16
  mandatory: false,
17
17
  example_value: 'Nuevo gato juez del Tribunal Supremo'
18
18
  },
19
+ {
20
+ name: 'description',
21
+ type: 'text',
22
+ label: 'Texto de la descripción',
23
+ mandatory: false,
24
+ example_value: 'Nuevo gato juez del Tribunal Supremo'
25
+ },
19
26
  {
20
27
  name: 'image',
21
28
  type: 'image',
@@ -30,6 +37,20 @@ export const metadata: ComponentMetadata = {
30
37
  mandatory: false,
31
38
  example_value: '2025-01-01'
32
39
  },
40
+ {
41
+ name: 'nameAuthor',
42
+ type: 'text',
43
+ label: 'Nombre del autor del contenido',
44
+ mandatory: false,
45
+ example_value: 'Juan Pérez'
46
+ },
47
+ {
48
+ name: 'descriptionAuthor',
49
+ type: 'text',
50
+ label: 'Resumen del cargo del autor del contenido',
51
+ mandatory: false,
52
+ example_value: 'Juez del Tribunal Supremo'
53
+ },
33
54
  {
34
55
  name: 'imageAuthor',
35
56
  type: 'image',
@@ -50,6 +71,25 @@ export const metadata: ComponentMetadata = {
50
71
  label: 'Enriquecido',
51
72
  mandatory: false,
52
73
  example_value: true
74
+ },
75
+ {
76
+ name: 'minutes',
77
+ type: 'text',
78
+ label: 'Duración en minutos del tiempo de lectura del contenido',
79
+ mandatory: false,
80
+ example_value: '20'
81
+ },
82
+ {
83
+ name: 'itemsTagPost',
84
+ type: 'list',
85
+ label: 'Listado de tags relacionados con el contenido',
86
+ mandatory: false,
87
+ items: {
88
+ type: 'object',
89
+ fields: [
90
+ { name: 'tag', type: 'text', label: 'Nombre del tag' }
91
+ ]
92
+ }
53
93
  }
54
94
  ]
55
95
  };
@@ -8,5 +8,26 @@ export const metadata: ComponentMetadata = {
8
8
  framework: 'Astro',
9
9
  priority: 1,
10
10
  tags: ['contenido', 'genial'],
11
- fields: []
11
+ fields: [
12
+ {
13
+ name: 'title',
14
+ type: 'text',
15
+ label: 'Texto del título',
16
+ mandatory: false,
17
+ example_value: 'Índice de contenidos'
18
+ },
19
+ {
20
+ name: 'items',
21
+ type: 'list',
22
+ label: 'Listado de items del índice',
23
+ mandatory: false,
24
+ items: {
25
+ type: 'object',
26
+ fields: [
27
+ { name: 'titulo', type: 'text', label: 'Texto del ítem' },
28
+ { name: 'enlace', type: 'text', label: 'URL del ítem' }
29
+ ]
30
+ }
31
+ }
32
+ ]
12
33
  };
@@ -15,6 +15,22 @@ export const metadata: ComponentMetadata = {
15
15
  label: 'Texto del título',
16
16
  mandatory: false,
17
17
  example_value: 'Título de prueba'
18
+ },
19
+ {
20
+ name: 'contentSumario',
21
+ type: 'html',
22
+ label: 'Sumario HTML order and unorder list',
23
+ mandatory: false,
24
+ example_value: '<ul><li>Texto de ejemplo</li></ul>'
25
+ },
26
+ {
27
+ name: 'items',
28
+ type: 'list',
29
+ label: 'Items del sumario sin html',
30
+ mandatory: false,
31
+ items: {
32
+ type: 'text',
33
+ }
18
34
  }
19
35
  ]
20
36
  };
@@ -35,27 +35,9 @@ export const metadata: ComponentMetadata = {
35
35
  type: 'list',
36
36
  label: 'Texto de los elementos de la primera columna',
37
37
  mandatory: false,
38
- // items: {
39
- // type: 'text'
40
- // }
41
- // items: {
42
- // type: 'object',
43
- // fields: [
44
- // { name: 'label', type: 'text', label: 'Texto' },
45
- // { name: 'tipo', type: 'select', label: 'Tipo', options: ['h1', 'h2'], options_labels: ['H1', 'H2'] },
46
- // { name: 'descripcion', type: 'textArea', label: 'Descripción' },
47
- // { name: 'activo', type: 'boolean', label: 'Activo' }
48
- // ]
49
- // }
50
38
  items: {
51
39
  type: 'text',
52
40
  }
53
- // items: {
54
- // type: 'object',
55
- // fields: [
56
- // { name: 'frase', type: 'text', label: 'Texto' },
57
- // ]
58
- // }
59
41
  },
60
42
  {
61
43
  name: 'rightTitle',
@@ -47,6 +47,13 @@ export const metadata: ComponentMetadata = {
47
47
  options_labels: ['1/3', '3/5', 'Completo'],
48
48
  example_value: '1/3'
49
49
  },
50
+ {
51
+ name: 'h1Subtitle',
52
+ type: 'text',
53
+ label: 'Subtitulo del h1',
54
+ mandatory: false,
55
+ example_value: 'Esto es un titulo'
56
+ },
50
57
  {
51
58
  name: 'subdescription',
52
59
  type: 'text',
@@ -37,7 +37,7 @@ const structuredData = `<script type="application/ld+json">
37
37
  ---
38
38
 
39
39
  <div class={`w-full flex ${image ? `flex-col ${imagePosition === 'left' ? 'md:flex-row-reverse' : 'md:flex-row'} items-start gap-8` : ''} px-8 md:px-0`}>
40
- <div class={`w-full flex ${flexJustify === 'justify-center' ? 'justify-center' : 'justify-start'} flex-col order-2 md:order-1`}>
40
+ <div class={`w-full flex ${flexJustify === 'justify-center' ? 'justify-center' : 'justify-start'} flex-col`}>
41
41
  {
42
42
  tipo === "h1-blog-categoria" ? <h1 class="font-poppins text-[#262626] text-[40px] mb-4 font-normal text-center leading-[48px] tracking-[-0.5px]" set:html={title}></h1>
43
43
  : tipo === "h1-blog-autor" ? <h1 class="font-poppins text-[#262626] text-[40px] mb-1 font-semibold text-left leading-[48px] tracking-[-0.5px]" set:html={title}></h1>
@@ -84,8 +84,7 @@ const structuredData = `<script type="application/ld+json">
84
84
  )}
85
85
  </div>
86
86
  {image && (
87
- <img src={image} alt={imageAlt} class="order-1 md:order-2 w-[240px] aspect-square object-cover rounded-lg" loading="lazy" />
88
-
87
+ <img src={image} alt={imageAlt} class="w-full md:w-[240px] aspect-square object-cover rounded-lg" loading="lazy" />
89
88
  )}
90
89
  </div>
91
90