template-common 1.1.4 → 1.1.5
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/sass-template-common.d.ts +12 -1
- package/dist/sass-template-common.js +5328 -5148
- package/dist/sass-template-common.umd.cjs +45 -45
- package/package.json +82 -81
|
@@ -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, preferencesApiUrl, preferenceCollapseAt, newsletterItems, debug, }: AccountProfileConfigProps): JSX.Element | null;
|
|
23
|
+
export declare function AccountProfileConfig({ API_ENV, socials, texts, navItems, section: requestedSection, preferencesApiUrl, preferenceCollapseAt, prefsSource, syncPath, newsletterItems, debug, }: AccountProfileConfigProps): JSX.Element | null;
|
|
24
24
|
|
|
25
25
|
export declare type AccountProfileConfigProps = {
|
|
26
26
|
/** Subconjunto de config (`pickCoreAuthConfig`). Default: `getConfig()`. */
|
|
@@ -48,6 +48,17 @@ export declare type AccountProfileConfigProps = {
|
|
|
48
48
|
preferencesApiUrl?: string;
|
|
49
49
|
/** Chips visibles por lista antes de "Mostrar más N". Default 8. */
|
|
50
50
|
preferenceCollapseAt?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Fuente de "Mis preferencias". `backend` (default): `perfil-get`, solo lectura.
|
|
53
|
+
* `client`: el scoring del navegador del sitio (`window.__bsp`), con edición; no usa
|
|
54
|
+
* `preferencesApiUrl`.
|
|
55
|
+
*/
|
|
56
|
+
prefsSource?: 'client' | 'backend';
|
|
57
|
+
/**
|
|
58
|
+
* Solo con `prefsSource = 'client'`: endpoint same-origin al que se mandan los cambios
|
|
59
|
+
* (`POST { kind: 'preferences', data: snapshot }`, debounce de 2 s). Vacío: no envía.
|
|
60
|
+
*/
|
|
61
|
+
syncPath?: string;
|
|
51
62
|
/** Opciones de "Newsletters". Default: lista genérica de la lib. */
|
|
52
63
|
newsletterItems?: AccountProfileNewsletterItem[];
|
|
53
64
|
/**
|