template-common 1.1.3 → 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.
@@ -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
  /**
@@ -4311,6 +4322,8 @@ declare type Props_12 = {
4311
4322
  customSummary?: ReactNode;
4312
4323
  customAfterJournalistComponent?: ReactNode;
4313
4324
  subtitleBeforeImage?: boolean;
4325
+ /** Si la nota renderiza la sección de comentarios (ancla #comentarios). */
4326
+ showComments?: boolean;
4314
4327
  headerSectionStyles?: {
4315
4328
  common: CSSProperties;
4316
4329
  liveblogs: CSSProperties;
@@ -4851,6 +4864,11 @@ declare type Props_56 = {
4851
4864
  noteShare?: NoteShare;
4852
4865
  texts: textsType;
4853
4866
  paths: RoutePathConfig;
4867
+ /**
4868
+ * Si la nota renderiza la sección de comentarios. El ancla a #comentarios
4869
+ * solo se pinta con `true`. Sin valor, cae a `news.config.showcomments`.
4870
+ */
4871
+ showComments?: boolean;
4854
4872
  };
4855
4873
 
4856
4874
  declare type Props_57 = {