@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.
- package/README.md +34 -1
- package/dist/assets/assets/style.css +63 -14
- package/dist/{chunk-AN7JIVWB.mjs → chunk-W6MPSWMS.mjs} +352 -15
- package/dist/chunk-W6MPSWMS.mjs.map +1 -0
- package/dist/{chunk-Z3LLJMSH.mjs → chunk-WNIUIOKF.mjs} +332 -15
- package/dist/chunk-WNIUIOKF.mjs.map +1 -0
- package/dist/index.d.mts +99 -1
- package/dist/index.d.ts +99 -1
- package/dist/index.js +1647 -1366
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +200 -28
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.d.mts +13 -0
- package/dist/react-native.d.ts +13 -0
- package/dist/react-native.js +550 -55
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +189 -28
- package/dist/react-native.mjs.map +1 -1
- package/dist/{renderPopup-SELXQ3UE.mjs → renderPopup-EWGKG53W.mjs} +42 -18
- package/dist/renderPopup-EWGKG53W.mjs.map +1 -0
- package/dist/renderPopup-HHQMAW3G.mjs +3114 -0
- package/dist/renderPopup-HHQMAW3G.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/chunk-AN7JIVWB.mjs.map +0 -1
- package/dist/chunk-Z3LLJMSH.mjs.map +0 -1
- package/dist/renderPopup-M6MKTDEH.mjs +0 -3330
- package/dist/renderPopup-M6MKTDEH.mjs.map +0 -1
- package/dist/renderPopup-SELXQ3UE.mjs.map +0 -1
package/dist/react-native.d.mts
CHANGED
|
@@ -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;
|
package/dist/react-native.d.ts
CHANGED
|
@@ -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;
|