template-common 1.1.1 → 1.1.2

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.
@@ -20,7 +20,7 @@ export declare const ACCOUNT_PROFILE_NAV_ITEMS: Record<'es' | 'en', (AccountProf
20
20
 
21
21
  export declare const ACCOUNT_PROFILE_TEXTS: Record<'es' | 'en', AccountProfileTexts>;
22
22
 
23
- export declare function AccountProfileConfig({ API_ENV, socials, texts, navItems, section: requestedSection, preferenceItems, preferenceSuggestionsLimit, newsletterItems, debug, }: AccountProfileConfigProps): JSX.Element | null;
23
+ export declare function AccountProfileConfig({ API_ENV, socials, texts, navItems, section: requestedSection, preferenceItems, preferenceSuggestionsLimit, preferenceCollapseAt, newsletterItems, debug, }: AccountProfileConfigProps): JSX.Element | null;
24
24
 
25
25
  export declare type AccountProfileConfigProps = {
26
26
  /** Subconjunto de config (`pickCoreAuthConfig`). Default: `getConfig()`. */
@@ -41,13 +41,15 @@ export declare type AccountProfileConfigProps = {
41
41
  section?: AccountProfileSection;
42
42
  /** Temas de "Mis preferencias". Default: lista genérica de la lib. */
43
43
  preferenceItems?: AccountProfilePreferenceItem[];
44
- /** Tarjetas en "Sugerencias para vos". Default 6. */
44
+ /** Chips sugeridos (+) en "Lo que querés ver más". Default 3. */
45
45
  preferenceSuggestionsLimit?: number;
46
+ /** Chips visibles por lista antes de "Mostrar más N". Default 8. */
47
+ preferenceCollapseAt?: number;
46
48
  /** Opciones de "Newsletters". Default: lista genérica de la lib. */
47
49
  newsletterItems?: AccountProfileNewsletterItem[];
48
50
  /**
49
- * Panel debug de "Newsletters". Default: visible fuera de prod, o con
50
- * `?debug` en la URL.
51
+ * Panel debug de "Mis preferencias" y "Newsletters". Default: visible fuera
52
+ * de prod, o con `?debug` en la URL.
51
53
  */
52
54
  debug?: boolean;
53
55
  };
@@ -73,12 +75,13 @@ export declare type AccountProfilePreferenceItem = {
73
75
  id: string;
74
76
  label: string;
75
77
  kind: AccountProfilePreferenceKind;
76
- /** Afinidad para recomendar: seguir un ítem sube a los del mismo grupo. */
78
+ /** Afinidad: lo que comparte grupo con lo que te interesa se sugiere primero. */
77
79
  group?: string;
78
- /** Foto (autores). Sin imagen: iniciales. */
79
- image?: string;
80
- /** Marca "Nuevo" en la sugerencia. */
81
- isNew?: boolean;
80
+ /**
81
+ * Interés detectado por actividad, de -1 a 1 (hoy es mock: lo trae la lista).
82
+ * > 0: aparece en "ver más" sin ícono (inferido). < 0: en "ver menos".
83
+ */
84
+ activity?: number;
82
85
  };
83
86
 
84
87
  /**
@@ -117,26 +120,25 @@ export declare type AccountProfileTexts = {
117
120
  gnewsHintPrefix: string;
118
121
  gnewsHintSuffix: string;
119
122
  prefsTitle: string;
120
- prefsDesc: string;
121
- prefsFollowingTitle: string;
122
- prefsFollowingEmpty: string;
123
- prefsSuggestionsTitle: string;
124
- prefsSuggestionsEmpty: string;
125
- prefsResetSuggestions: string;
126
- prefsExploreTitle: string;
127
- prefsFilterAll: string;
128
- prefsKindSection: string;
129
- prefsKindTag: string;
130
- prefsKindAuthor: string;
131
- prefsFollow: string;
132
- prefsFollowing: string;
133
- prefsDismiss: string;
134
- prefsUnfollow: string;
135
- /** `{{label}}` se reemplaza por el tema seguido relacionado. */
136
- prefsReasonRelated: string;
137
- prefsReasonNew: string;
138
- prefsReasonPopular: string;
139
- prefsNewBadge: string;
123
+ /** `{{topics}}` se reemplaza por la lista de temas ("A, B y C"). */
124
+ prefsSummary: string;
125
+ prefsSummaryEmpty: string;
126
+ prefsMoreTitle: string;
127
+ prefsMoreHint: string;
128
+ prefsLessTitle: string;
129
+ prefsLessHint: string;
130
+ prefsExpand: string;
131
+ prefsCollapse: string;
132
+ prefsAdd: string;
133
+ prefsAddPlaceholder: string;
134
+ prefsSuggestedAria: string;
135
+ prefsEditAria: string;
136
+ prefsSourceAdded: string;
137
+ prefsSourceActivity: string;
138
+ prefsMoveToLess: string;
139
+ prefsMoveToMore: string;
140
+ prefsRemove: string;
141
+ prefsCancel: string;
140
142
  newslettersTitle: string;
141
143
  newslettersDesc: string;
142
144
  newslettersFootnote: string;
@@ -147,6 +149,7 @@ export declare type AccountProfileTexts = {
147
149
  debugStorageKey: string;
148
150
  debugUpdatedAt: string;
149
151
  debugNever: string;
152
+ debugReset: string;
150
153
  changePasswordButton: string;
151
154
  /** `{{email}}` se reemplaza por el email enmascarado. */
152
155
  changePasswordMessage: string;