@magicfeedback/popup-sdk 1.6.0 → 1.7.1

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.
@@ -276,6 +276,12 @@ interface PopupRenderOptions {
276
276
  showProgressBar?: boolean;
277
277
  /** CSS del host, inyectado el último: gana sobre el del SDK y el de `@magicfeedback/native`. */
278
278
  surveyCss?: string;
279
+ /**
280
+ * Idioma con el que arranca el chrome del popup (botones, progreso, aria-labels, errores).
281
+ * Es el idioma resuelto en `init()` (host > navigator > Intl). Lo pisa el idioma del survey
282
+ * (`formData.lang[0]`) en cuanto este carga, y ambos los pisa `actions.*.label` de la API.
283
+ */
284
+ language?: string;
279
285
  }
280
286
  interface PopupRenderer {
281
287
  /** Preparar recursos si aplica */
@@ -570,6 +576,13 @@ declare class DeepdotsPopups {
570
576
  private safeParseUrl;
571
577
  private mapPopupTriggerType;
572
578
  private markSurveyProgress;
579
+ /**
580
+ * Rehidrata el estado de redisplay desde el storage. `answeredSurveys` se reconstruye
581
+ * desde las entradas COMPLETED: es exactamente lo que persiste `markSurveyAnswered`.
582
+ */
583
+ private loadPopupState;
584
+ /** Vuelca el estado de redisplay al storage. Sin storage (o bloqueado) degrada a memoria. */
585
+ private persistPopupState;
573
586
  private isPopupDefinition;
574
587
  private isPopupTrigger;
575
588
  private isPopupTriggerType;
@@ -276,6 +276,12 @@ interface PopupRenderOptions {
276
276
  showProgressBar?: boolean;
277
277
  /** CSS del host, inyectado el último: gana sobre el del SDK y el de `@magicfeedback/native`. */
278
278
  surveyCss?: string;
279
+ /**
280
+ * Idioma con el que arranca el chrome del popup (botones, progreso, aria-labels, errores).
281
+ * Es el idioma resuelto en `init()` (host > navigator > Intl). Lo pisa el idioma del survey
282
+ * (`formData.lang[0]`) en cuanto este carga, y ambos los pisa `actions.*.label` de la API.
283
+ */
284
+ language?: string;
279
285
  }
280
286
  interface PopupRenderer {
281
287
  /** Preparar recursos si aplica */
@@ -570,6 +576,13 @@ declare class DeepdotsPopups {
570
576
  private safeParseUrl;
571
577
  private mapPopupTriggerType;
572
578
  private markSurveyProgress;
579
+ /**
580
+ * Rehidrata el estado de redisplay desde el storage. `answeredSurveys` se reconstruye
581
+ * desde las entradas COMPLETED: es exactamente lo que persiste `markSurveyAnswered`.
582
+ */
583
+ private loadPopupState;
584
+ /** Vuelca el estado de redisplay al storage. Sin storage (o bloqueado) degrada a memoria. */
585
+ private persistPopupState;
573
586
  private isPopupDefinition;
574
587
  private isPopupTrigger;
575
588
  private isPopupTriggerType;