valtech-components 2.0.598 → 2.0.600
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/esm2022/lib/components/molecules/content-reaction/content-reaction.component.mjs +15 -3
- package/esm2022/lib/components/molecules/content-reaction/types.mjs +1 -1
- package/esm2022/lib/components/molecules/docs-api-table/docs-api-table.component.mjs +3 -3
- package/esm2022/lib/components/molecules/footer-links/footer-links.component.mjs +81 -7
- package/esm2022/lib/components/molecules/footer-links/types.mjs +1 -1
- package/esm2022/lib/services/feedback/feedback.service.mjs +30 -1
- package/fesm2022/valtech-components.mjs +124 -10
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/content-reaction/content-reaction.component.d.ts +1 -0
- package/lib/components/molecules/content-reaction/types.d.ts +6 -0
- package/lib/components/molecules/footer-links/types.d.ts +2 -0
- package/lib/components/organisms/article/article.component.d.ts +1 -1
- package/lib/components/organisms/toolbar/toolbar.component.d.ts +1 -1
- package/lib/services/feedback/feedback.service.d.ts +19 -0
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ export declare class ContentReactionComponent implements OnInit, OnChanges {
|
|
|
20
20
|
private feedbackService;
|
|
21
21
|
private toast;
|
|
22
22
|
private i18n;
|
|
23
|
+
private auth;
|
|
23
24
|
props: Partial<ContentReactionMetadata>;
|
|
24
25
|
reactionSubmit: EventEmitter<ReactionSubmitEvent>;
|
|
25
26
|
reactionChange: EventEmitter<ReactionChangeEvent>;
|
|
@@ -35,6 +35,12 @@ export interface ContentReactionMetadata {
|
|
|
35
35
|
* Útil para Storybook o cuando se usa initialValue.
|
|
36
36
|
*/
|
|
37
37
|
skipInitialCheck?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Permitir feedback anónimo (sin autenticación).
|
|
40
|
+
* Usado para blogs, FAQs y contenido público.
|
|
41
|
+
* Default: false
|
|
42
|
+
*/
|
|
43
|
+
allowAnonymous?: boolean;
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
46
|
* Estado interno del componente.
|
|
@@ -22,6 +22,8 @@ export interface FooterLinksMetadata {
|
|
|
22
22
|
rightLinks: LinkCakeMetadata;
|
|
23
23
|
/** Optional logo URL */
|
|
24
24
|
logo?: string;
|
|
25
|
+
/** Logo URL for dark mode. If not set, uses logo with filter invert. */
|
|
26
|
+
logoDark?: string;
|
|
25
27
|
/** Logo alt text. Default: 'Logo' */
|
|
26
28
|
logoAlt?: string;
|
|
27
29
|
/** Route to navigate when logo is clicked */
|
|
@@ -91,7 +91,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
91
91
|
icon?: import("valtech-components").IconMetada;
|
|
92
92
|
shape?: "round";
|
|
93
93
|
size?: "small" | "large" | "default";
|
|
94
|
-
fill?: "default" | "
|
|
94
|
+
fill?: "default" | "outline" | "clear" | "solid";
|
|
95
95
|
type: "button" | "submit" | "reset";
|
|
96
96
|
token?: string;
|
|
97
97
|
ref?: any;
|
|
@@ -73,7 +73,7 @@ export declare class ToolbarComponent implements OnInit {
|
|
|
73
73
|
showFlags?: boolean;
|
|
74
74
|
color: import("@ionic/core").Color;
|
|
75
75
|
size?: "small" | "large" | "default";
|
|
76
|
-
fill?: "default" | "
|
|
76
|
+
fill?: "default" | "outline" | "clear" | "solid";
|
|
77
77
|
shape?: "round";
|
|
78
78
|
expand?: "full" | "block";
|
|
79
79
|
disabled?: boolean;
|
|
@@ -108,6 +108,25 @@ export declare class FeedbackService {
|
|
|
108
108
|
* ```
|
|
109
109
|
*/
|
|
110
110
|
createReaction(entityRef: EntityRef, value: ReactionValue, comment?: string): Promise<CreateFeedbackResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Crea feedback anónimo (sin autenticación requerida).
|
|
113
|
+
* Usado para blogs, FAQs y contenido público.
|
|
114
|
+
*
|
|
115
|
+
* @param entityRef - Referencia a la entidad
|
|
116
|
+
* @param value - Valor de la reacción (negative, neutral, positive)
|
|
117
|
+
* @param comment - Comentario opcional (máx 500 caracteres)
|
|
118
|
+
* @returns Promise con la respuesta
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```typescript
|
|
122
|
+
* // En un blog público
|
|
123
|
+
* const response = await this.feedbackService.createAnonymousReaction(
|
|
124
|
+
* { entityType: 'blog', entityId: 'my-post-slug' },
|
|
125
|
+
* 'positive'
|
|
126
|
+
* );
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
createAnonymousReaction(entityRef: EntityRef, value: ReactionValue, comment?: string): Promise<CreateFeedbackResponse>;
|
|
111
130
|
private detectBrowser;
|
|
112
131
|
private detectOS;
|
|
113
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeedbackService, never>;
|