veo-sdk 0.3.5 → 0.3.7
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/builder-7MBMYL26.mjs +5 -0
- package/dist/{builder-FBNBSKCL.mjs.map → builder-7MBMYL26.mjs.map} +1 -1
- package/dist/builder.cjs +502 -151
- package/dist/builder.cjs.map +1 -1
- package/dist/builder.d.cts +2 -2
- package/dist/builder.d.ts +2 -2
- package/dist/builder.mjs +4 -4
- package/dist/{chunk-GHP7ZJCW.mjs → chunk-4VJIILXF.mjs} +504 -153
- package/dist/chunk-4VJIILXF.mjs.map +1 -0
- package/dist/{chunk-TAZXRQYY.mjs → chunk-734ORVMM.mjs} +3 -3
- package/dist/{chunk-TAZXRQYY.mjs.map → chunk-734ORVMM.mjs.map} +1 -1
- package/dist/{chunk-R4E3LIDB.mjs → chunk-RNHOBE2D.mjs} +34 -4
- package/dist/chunk-RNHOBE2D.mjs.map +1 -0
- package/dist/{guide-preview-CO5ShtNf.d.cts → guide-preview-DewCTa-B.d.cts} +26 -1
- package/dist/{guide-preview-CO5ShtNf.d.ts → guide-preview-DewCTa-B.d.ts} +26 -1
- package/dist/index.cjs +552 -158
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -5
- package/dist/veo-builder.js +49 -16
- package/dist/veo-builder.js.map +1 -1
- package/dist/veo-guides.js +44 -11
- package/dist/veo-guides.js.map +1 -1
- package/dist/veo.js +2 -2
- package/dist/veo.js.map +1 -1
- package/package.json +1 -1
- package/dist/builder-FBNBSKCL.mjs +0 -5
- package/dist/chunk-GHP7ZJCW.mjs.map +0 -1
- package/dist/chunk-R4E3LIDB.mjs.map +0 -1
|
@@ -47,6 +47,25 @@ interface ActivationRules {
|
|
|
47
47
|
eventName?: string;
|
|
48
48
|
delayMs?: number;
|
|
49
49
|
}
|
|
50
|
+
/** Tipo de un bloque de contenido (para pasos con varios títulos/textos/botones). */
|
|
51
|
+
type StepBlockType = 'title' | 'text' | 'button' | 'image';
|
|
52
|
+
/**
|
|
53
|
+
* Un bloque de contenido dentro de un paso. Permite componer un paso con VARIOS
|
|
54
|
+
* títulos/textos/botones/imágenes en orden (no solo un título + un texto + un
|
|
55
|
+
* CTA). Si `step.blocks` está presente, el renderer lo usa; si no, cae a los
|
|
56
|
+
* campos escalares (`title`/`content`/`ctaText`/`imageUrl`) — retrocompatible.
|
|
57
|
+
*/
|
|
58
|
+
interface StepBlock {
|
|
59
|
+
type: StepBlockType;
|
|
60
|
+
/** title/text/button: el texto. */
|
|
61
|
+
text?: string | null;
|
|
62
|
+
/** image: la URL; button con acción `url`: el destino. */
|
|
63
|
+
url?: string | null;
|
|
64
|
+
/** button: qué hace al hacer click. */
|
|
65
|
+
action?: CtaAction | null;
|
|
66
|
+
/** Estilo por-bloque (align/color/fontSize/margin…). Se aplica inline. */
|
|
67
|
+
style?: Record<string, unknown> | null;
|
|
68
|
+
}
|
|
50
69
|
interface GuideStep {
|
|
51
70
|
title: string;
|
|
52
71
|
content: string;
|
|
@@ -57,9 +76,15 @@ interface GuideStep {
|
|
|
57
76
|
/**
|
|
58
77
|
* Free-form JSONB. Convención: si `ctaAction === 'url'`, la URL destino
|
|
59
78
|
* se lee de `style.ctaUrl`. Otras keys que puede traer: `position`
|
|
60
|
-
* (`top` | `bottom` para banners), `theme
|
|
79
|
+
* (`top` | `bottom` para banners), `theme`, y `render` (tipo de presentación
|
|
80
|
+
* del paso dentro de un walkthrough heterogéneo: modal/banner/tooltip).
|
|
61
81
|
*/
|
|
62
82
|
style?: Record<string, unknown> | null;
|
|
83
|
+
/**
|
|
84
|
+
* Bloques de contenido ordenados (varios títulos/textos/botones/imágenes).
|
|
85
|
+
* Si está presente y no vacío, tiene prioridad sobre los campos escalares.
|
|
86
|
+
*/
|
|
87
|
+
blocks?: StepBlock[] | null;
|
|
63
88
|
/** Solo guías `custom`: código a renderizar en un iframe sandbox + ubicación. */
|
|
64
89
|
html?: string | null;
|
|
65
90
|
css?: string | null;
|
|
@@ -47,6 +47,25 @@ interface ActivationRules {
|
|
|
47
47
|
eventName?: string;
|
|
48
48
|
delayMs?: number;
|
|
49
49
|
}
|
|
50
|
+
/** Tipo de un bloque de contenido (para pasos con varios títulos/textos/botones). */
|
|
51
|
+
type StepBlockType = 'title' | 'text' | 'button' | 'image';
|
|
52
|
+
/**
|
|
53
|
+
* Un bloque de contenido dentro de un paso. Permite componer un paso con VARIOS
|
|
54
|
+
* títulos/textos/botones/imágenes en orden (no solo un título + un texto + un
|
|
55
|
+
* CTA). Si `step.blocks` está presente, el renderer lo usa; si no, cae a los
|
|
56
|
+
* campos escalares (`title`/`content`/`ctaText`/`imageUrl`) — retrocompatible.
|
|
57
|
+
*/
|
|
58
|
+
interface StepBlock {
|
|
59
|
+
type: StepBlockType;
|
|
60
|
+
/** title/text/button: el texto. */
|
|
61
|
+
text?: string | null;
|
|
62
|
+
/** image: la URL; button con acción `url`: el destino. */
|
|
63
|
+
url?: string | null;
|
|
64
|
+
/** button: qué hace al hacer click. */
|
|
65
|
+
action?: CtaAction | null;
|
|
66
|
+
/** Estilo por-bloque (align/color/fontSize/margin…). Se aplica inline. */
|
|
67
|
+
style?: Record<string, unknown> | null;
|
|
68
|
+
}
|
|
50
69
|
interface GuideStep {
|
|
51
70
|
title: string;
|
|
52
71
|
content: string;
|
|
@@ -57,9 +76,15 @@ interface GuideStep {
|
|
|
57
76
|
/**
|
|
58
77
|
* Free-form JSONB. Convención: si `ctaAction === 'url'`, la URL destino
|
|
59
78
|
* se lee de `style.ctaUrl`. Otras keys que puede traer: `position`
|
|
60
|
-
* (`top` | `bottom` para banners), `theme
|
|
79
|
+
* (`top` | `bottom` para banners), `theme`, y `render` (tipo de presentación
|
|
80
|
+
* del paso dentro de un walkthrough heterogéneo: modal/banner/tooltip).
|
|
61
81
|
*/
|
|
62
82
|
style?: Record<string, unknown> | null;
|
|
83
|
+
/**
|
|
84
|
+
* Bloques de contenido ordenados (varios títulos/textos/botones/imágenes).
|
|
85
|
+
* Si está presente y no vacío, tiene prioridad sobre los campos escalares.
|
|
86
|
+
*/
|
|
87
|
+
blocks?: StepBlock[] | null;
|
|
63
88
|
/** Solo guías `custom`: código a renderizar en un iframe sandbox + ubicación. */
|
|
64
89
|
html?: string | null;
|
|
65
90
|
css?: string | null;
|