@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
  }
@@ -14488,6 +14488,9 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
14488
14488
  done.style.cssText = `width:100%; text-align:center; padding:24px 0; color:${theme.textPrimary};`;
14489
14489
  main.insertBefore(done, errorHint);
14490
14490
  }
14491
+ done.style.color = theme.textPrimary;
14492
+ if (theme.colorScheme === "dark") done.style.setProperty("--mf-text-secondary", theme.textPrimary);
14493
+ else done.style.removeProperty("--mf-text-secondary");
14491
14494
  done.innerHTML = successMessageHtml || "<p>Thank you for your feedback!</p>";
14492
14495
  done.querySelectorAll("img").forEach((img) => {
14493
14496
  img.style.cssText = "max-width:100%; height:auto; margin:0 auto 16px auto; display:block;";
@@ -15293,7 +15296,7 @@ body.dd-ready #dd-popup{visibility:visible}
15293
15296
  .deepdots-load-error{display:none;width:100%;text-align:center;padding:24px 0;font-size:15px;color:var(--dd-text-primary,${textPrimary})}
15294
15297
  .deepdots-success{display:none;width:100%;text-align:center;padding:24px 0;color:var(--dd-text-primary,${textPrimary})}
15295
15298
  .deepdots-success img{max-width:100%;height:auto;margin:0 auto 16px auto;display:block}
15296
- .deepdots-success p{margin:0;font-size:16px;font-weight:600;line-height:1.4}
15299
+ .deepdots-success p{margin:0;font-size:16px;font-weight:600;line-height:1.4;color:var(--dd-success-text,var(--mf-text-secondary))}
15297
15300
  .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}
15298
15301
  .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}
15299
15302
  /* Secundario como bot\xF3n de texto: sin borde ni fondo, para que el primario sea la \xFAnica CTA. */
@@ -15549,6 +15552,8 @@ function ddApplyChromeContrast(bg){
15549
15552
  el.style.setProperty('--dd-text-primary', pal.textPrimary);
15550
15553
  el.style.setProperty('--dd-text-muted', pal.textMuted);
15551
15554
  el.style.setProperty('--dd-progress-track', pal.progressTrack);
15555
+ // DD-248: el gracias va fuera del contenedor del survey, donde el gris del survey es el claro.
15556
+ if(dark){ el.style.setProperty('--dd-success-text', pal.textPrimary); } else { el.style.removeProperty('--dd-success-text'); }
15552
15557
  var meta=document.querySelector('meta[name="color-scheme"]');
15553
15558
  if(meta){ meta.setAttribute('content', pal.colorScheme); }
15554
15559
  }