@magicfeedback/popup-sdk 1.0.6 → 1.0.8

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/index.mjs CHANGED
@@ -1721,7 +1721,7 @@ function ensureMagicFeedbackStyles(popup) {
1721
1721
  }
1722
1722
  const link = document.createElement("link");
1723
1723
  link.rel = "stylesheet";
1724
- link.href = "https://cdn.jsdelivr.net/npm/@magicfeedback/popup-sdk/dist/assets/style.css";
1724
+ link.href = "https://cdn.jsdelivr.net/npm/@magicfeedback/popup-sdk/dist/assets/assets/style.css";
1725
1725
  link.setAttribute(DATA_ATTR, "true");
1726
1726
  popup.appendChild(link);
1727
1727
  }
@@ -1868,7 +1868,7 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
1868
1868
  footer.setAttribute("data-actions-wrapper", "true");
1869
1869
  footer.style.cssText = "display:flex; flex-direction: row-reverse ;justify-content:space-between; align-items:center; gap:8px; margin-top:auto; width:100%; padding-top:16px;";
1870
1870
  const backButton = document.createElement("button");
1871
- backButton.textContent = "Back";
1871
+ backButton.textContent = actions?.back ? actions.back.label : "Back";
1872
1872
  backButton.style.cssText = `
1873
1873
  background: transparent;
1874
1874
  color: #333;
@@ -1969,9 +1969,9 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
1969
1969
  startButton.style.display = "none";
1970
1970
  submitButton.style.display = "none";
1971
1971
  closeButton.style.display = "none";
1972
+ footer.appendChild(submitButton);
1972
1973
  footer.appendChild(backButton);
1973
1974
  footer.appendChild(closeButton);
1974
- footer.appendChild(submitButton);
1975
1975
  footer.appendChild(startButton);
1976
1976
  main.appendChild(footer);
1977
1977
  containerContent.appendChild(main);