@magicfeedback/popup-sdk 1.1.5 → 1.1.6
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-LSTKGFU7.mjs → chunk-4UXOEIAB.mjs} +21 -2
- package/dist/chunk-4UXOEIAB.mjs.map +1 -0
- package/dist/{chunk-7TOLYAFL.mjs → chunk-XOTM5CHX.mjs} +21 -2
- package/dist/chunk-XOTM5CHX.mjs.map +1 -0
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +44 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -12
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.d.mts +15 -0
- package/dist/react-native.d.ts +15 -0
- package/dist/react-native.js +44 -12
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +20 -12
- package/dist/react-native.mjs.map +1 -1
- package/dist/{renderPopup-MES7IINW.mjs → renderPopup-EZKDMLVZ.mjs} +10 -7
- package/dist/renderPopup-EZKDMLVZ.mjs.map +1 -0
- package/dist/{renderPopup-YNH2TD3B.mjs → renderPopup-PS3NJDUR.mjs} +10 -7
- package/dist/renderPopup-PS3NJDUR.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-7TOLYAFL.mjs.map +0 -1
- package/dist/chunk-LSTKGFU7.mjs.map +0 -1
- package/dist/renderPopup-MES7IINW.mjs.map +0 -1
- package/dist/renderPopup-YNH2TD3B.mjs.map +0 -1
|
@@ -3,8 +3,11 @@ import {
|
|
|
3
3
|
__toESM,
|
|
4
4
|
buildFontFaceCss,
|
|
5
5
|
buildFontFamilyValue,
|
|
6
|
-
buildSurveyIdentity
|
|
7
|
-
|
|
6
|
+
buildSurveyIdentity,
|
|
7
|
+
sdkError,
|
|
8
|
+
sdkLog,
|
|
9
|
+
sdkWarn
|
|
10
|
+
} from "./chunk-XOTM5CHX.mjs";
|
|
8
11
|
|
|
9
12
|
// node_modules/@magicfeedback/native/dist/magicfeedback-sdk.browser.js
|
|
10
13
|
var require_magicfeedback_sdk_browser = __commonJS({
|
|
@@ -3178,7 +3181,7 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
|
|
|
3178
3181
|
let formInstance = null;
|
|
3179
3182
|
try {
|
|
3180
3183
|
if (!import_native.default || typeof import_native.default.form !== "function") {
|
|
3181
|
-
|
|
3184
|
+
sdkWarn("[MagicFeedback] form() no disponible. Fallback manual.");
|
|
3182
3185
|
setLoading(false);
|
|
3183
3186
|
return;
|
|
3184
3187
|
}
|
|
@@ -3265,7 +3268,7 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
|
|
|
3265
3268
|
}
|
|
3266
3269
|
}
|
|
3267
3270
|
if (s.startMessage && s.startMessage !== "") {
|
|
3268
|
-
|
|
3271
|
+
sdkLog(s.startMessage);
|
|
3269
3272
|
updateButtons("start");
|
|
3270
3273
|
} else {
|
|
3271
3274
|
updateButtons("in_progress_first");
|
|
@@ -3320,15 +3323,15 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
|
|
|
3320
3323
|
}
|
|
3321
3324
|
};
|
|
3322
3325
|
formInstance.generate(formDivId, generateOptions).catch((err) => {
|
|
3323
|
-
|
|
3326
|
+
sdkError("[MagicFeedback] Error generating form:", err);
|
|
3324
3327
|
setLoading(false);
|
|
3325
3328
|
});
|
|
3326
3329
|
} catch (e) {
|
|
3327
|
-
|
|
3330
|
+
sdkError("[MagicFeedback] Exception initializing form:", e);
|
|
3328
3331
|
setLoading(false);
|
|
3329
3332
|
}
|
|
3330
3333
|
}
|
|
3331
3334
|
export {
|
|
3332
3335
|
renderPopup
|
|
3333
3336
|
};
|
|
3334
|
-
//# sourceMappingURL=renderPopup-
|
|
3337
|
+
//# sourceMappingURL=renderPopup-EZKDMLVZ.mjs.map
|