@magicfeedback/popup-sdk 1.8.0 → 1.8.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/dist/{chunk-XHR3MHJO.mjs → chunk-AV2TTQXB.mjs} +20 -1
- package/dist/chunk-AV2TTQXB.mjs.map +1 -0
- package/dist/{chunk-322DDMX6.mjs → chunk-EBJZDVC6.mjs} +20 -1
- package/dist/chunk-EBJZDVC6.mjs.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -4
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.js +33 -0
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +12 -4
- package/dist/react-native.mjs.map +1 -1
- package/dist/{renderPopup-HTNVACFV.mjs → renderPopup-3CZ6WTXF.mjs} +4 -2
- package/dist/renderPopup-3CZ6WTXF.mjs.map +1 -0
- package/dist/{renderPopup-SNDPX5RX.mjs → renderPopup-E2OLIXIQ.mjs} +4 -2
- package/dist/renderPopup-E2OLIXIQ.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-322DDMX6.mjs.map +0 -1
- package/dist/chunk-XHR3MHJO.mjs.map +0 -1
- package/dist/renderPopup-HTNVACFV.mjs.map +0 -1
- package/dist/renderPopup-SNDPX5RX.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BUSY_JS,
|
|
2
3
|
InMemoryStorage,
|
|
3
4
|
LABELS,
|
|
4
5
|
PRIMARY_COLOR_JS,
|
|
@@ -20,7 +21,7 @@ import {
|
|
|
20
21
|
sdkWarn,
|
|
21
22
|
setLogger,
|
|
22
23
|
style_default
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AV2TTQXB.mjs";
|
|
24
25
|
|
|
25
26
|
// src/types/index.ts
|
|
26
27
|
var POPUP_TRIGGER_CONDITION_STATUSES = [
|
|
@@ -429,6 +430,7 @@ ${customCss}
|
|
|
429
430
|
var footer=document.getElementById('dd-footer');
|
|
430
431
|
var spinner=document.getElementById('dd-spinner');
|
|
431
432
|
var formHost=document.getElementById('mf');
|
|
433
|
+
var formWrapper=document.getElementById('dd-form-wrapper');
|
|
432
434
|
var errorHint=document.getElementById('dd-error');
|
|
433
435
|
var backBtn=document.getElementById('dd-back');
|
|
434
436
|
var startBtn=document.getElementById('dd-start');
|
|
@@ -588,6 +590,7 @@ ${customCss}
|
|
|
588
590
|
}
|
|
589
591
|
|
|
590
592
|
${PRIMARY_COLOR_JS}
|
|
593
|
+
${BUSY_JS}
|
|
591
594
|
${REVEAL_JS}
|
|
592
595
|
// El popup se ense\xF1a cuando el survey est\xE1 pintado; \`ready\` deja al host abrir su propio
|
|
593
596
|
// Modal en ese momento en vez de montar un WebView en blanco.
|
|
@@ -598,6 +601,11 @@ ${REVEAL_JS}
|
|
|
598
601
|
|
|
599
602
|
function setLoading(isLoading){
|
|
600
603
|
spinner.style.display=isLoading?'flex':'none';
|
|
604
|
+
// El spinner no tapa el survey (28px en posicion absoluta), asi que sin esto el usuario
|
|
605
|
+
// puede seguir cambiando de opcion mientras se envia la pagina, y ese cambio ya no viaja
|
|
606
|
+
// con ella. Se bloquea el wrapper, que es el elemento estable: el div de dentro lo
|
|
607
|
+
// sustituye @magicfeedback/native por su propio contenedor al generar el survey.
|
|
608
|
+
ddSetSurveyBusy(formWrapper, isLoading);
|
|
601
609
|
if(!isLoading){
|
|
602
610
|
formHost.style.visibility='visible';
|
|
603
611
|
// Fin de la carga, sea por survey cargado o por error. Entre p\xE1ginas es no-op: la
|
|
@@ -860,7 +868,7 @@ function createReactNativeRenderer() {
|
|
|
860
868
|
}
|
|
861
869
|
|
|
862
870
|
// src/ui/preload.ts
|
|
863
|
-
var defaultLoader = () => import("./renderPopup-
|
|
871
|
+
var defaultLoader = () => import("./renderPopup-3CZ6WTXF.mjs");
|
|
864
872
|
var pending = null;
|
|
865
873
|
function preloadRenderPopup(loader = defaultLoader) {
|
|
866
874
|
if (pending) return pending;
|
|
@@ -933,7 +941,7 @@ var BrowserPopupRenderer = class {
|
|
|
933
941
|
if (!this.container) return;
|
|
934
942
|
this.visible = true;
|
|
935
943
|
const container = this.container;
|
|
936
|
-
void import("./renderPopup-
|
|
944
|
+
void import("./renderPopup-3CZ6WTXF.mjs").then(({ renderPopup }) => {
|
|
937
945
|
renderPopup(container, surveyId, productId, actions, emit, onClose, env, userId, style, sessionId, miniService, analyticsFeedbackSessionId, options);
|
|
938
946
|
});
|
|
939
947
|
}
|
|
@@ -2779,7 +2787,7 @@ var DeepdotsPopups = class {
|
|
|
2779
2787
|
}
|
|
2780
2788
|
if (!this.popupContainer) return;
|
|
2781
2789
|
const container = this.popupContainer;
|
|
2782
|
-
void import("./renderPopup-
|
|
2790
|
+
void import("./renderPopup-3CZ6WTXF.mjs").then(({ renderPopup }) => {
|
|
2783
2791
|
renderPopup(
|
|
2784
2792
|
container,
|
|
2785
2793
|
surveyId,
|