@magicfeedback/popup-sdk 1.22.0 → 1.22.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.
@@ -192,7 +192,7 @@ var SDK_VERSION, SDK_IDENTIFIER, POPUP_CHANNEL;
192
192
  var init_version = __esm({
193
193
  "src/version.ts"() {
194
194
  "use strict";
195
- SDK_VERSION = "1.22.0";
195
+ SDK_VERSION = "1.22.1";
196
196
  SDK_IDENTIFIER = `${"react-native"}@${SDK_VERSION}`;
197
197
  POPUP_CHANNEL = "popup";
198
198
  }
@@ -11424,6 +11424,9 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
11424
11424
  done.style.cssText = `width:100%; text-align:center; padding:24px 0; color:${theme.textPrimary};`;
11425
11425
  main.insertBefore(done, errorHint);
11426
11426
  }
11427
+ done.style.color = theme.textPrimary;
11428
+ if (theme.colorScheme === "dark") done.style.setProperty("--mf-text-secondary", theme.textPrimary);
11429
+ else done.style.removeProperty("--mf-text-secondary");
11427
11430
  done.innerHTML = successMessageHtml || "<p>Thank you for your feedback!</p>";
11428
11431
  done.querySelectorAll("img").forEach((img) => {
11429
11432
  img.style.cssText = "max-width:100%; height:auto; margin:0 auto 16px auto; display:block;";
@@ -12075,7 +12078,7 @@ body.dd-ready #dd-popup{visibility:visible}
12075
12078
  .deepdots-load-error{display:none;width:100%;text-align:center;padding:24px 0;font-size:15px;color:var(--dd-text-primary,${textPrimary})}
12076
12079
  .deepdots-success{display:none;width:100%;text-align:center;padding:24px 0;color:var(--dd-text-primary,${textPrimary})}
12077
12080
  .deepdots-success img{max-width:100%;height:auto;margin:0 auto 16px auto;display:block}
12078
- .deepdots-success p{margin:0;font-size:16px;font-weight:600;line-height:1.4}
12081
+ .deepdots-success p{margin:0;font-size:16px;font-weight:600;line-height:1.4;color:var(--dd-success-text,var(--mf-text-secondary))}
12079
12082
  .deepdots-popup-footer{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:4px;margin-top:auto;width:100%;padding-top:12px}
12080
12083
  .dd-nav-btn{display:none;border:none;min-height:44px;padding:12px 24px;border-radius:999px;cursor:pointer;font-size:15px;font-weight:600;align-items:center;justify-content:center;text-align:center}
12081
12084
  /* Secundario como bot\xF3n de texto: sin borde ni fondo, para que el primario sea la \xFAnica CTA. */
@@ -12331,6 +12334,8 @@ function ddApplyChromeContrast(bg){
12331
12334
  el.style.setProperty('--dd-text-primary', pal.textPrimary);
12332
12335
  el.style.setProperty('--dd-text-muted', pal.textMuted);
12333
12336
  el.style.setProperty('--dd-progress-track', pal.progressTrack);
12337
+ // DD-248: el gracias va fuera del contenedor del survey, donde el gris del survey es el claro.
12338
+ if(dark){ el.style.setProperty('--dd-success-text', pal.textPrimary); } else { el.style.removeProperty('--dd-success-text'); }
12334
12339
  var meta=document.querySelector('meta[name="color-scheme"]');
12335
12340
  if(meta){ meta.setAttribute('content', pal.colorScheme); }
12336
12341
  }