@magicfeedback/popup-sdk 1.1.5 → 1.1.7

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.
@@ -3,8 +3,11 @@ import {
3
3
  __toESM,
4
4
  buildFontFaceCss,
5
5
  buildFontFamilyValue,
6
- buildSurveyIdentity
7
- } from "./chunk-7TOLYAFL.mjs";
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
- console.warn("[MagicFeedback] form() no disponible. Fallback manual.");
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
- console.log(s.startMessage);
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
- console.error("[MagicFeedback] Error generating form:", err);
3326
+ sdkError("[MagicFeedback] Error generating form:", err);
3324
3327
  setLoading(false);
3325
3328
  });
3326
3329
  } catch (e) {
3327
- console.error("[MagicFeedback] Exception initializing form:", e);
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-MES7IINW.mjs.map
3337
+ //# sourceMappingURL=renderPopup-EZKDMLVZ.mjs.map