@magicfeedback/popup-sdk 1.0.5 → 1.0.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.
package/dist/index.d.mts CHANGED
@@ -104,6 +104,7 @@ interface PopupActions {
104
104
  decline?: PopupActionDecline;
105
105
  complete?: PopupActionComplete;
106
106
  start?: PopupActionStart;
107
+ back?: PopupActionDecline;
107
108
  }
108
109
  /** Estilos configurables del popup */
109
110
  interface PopupStyle {
package/dist/index.d.ts CHANGED
@@ -104,6 +104,7 @@ interface PopupActions {
104
104
  decline?: PopupActionDecline;
105
105
  complete?: PopupActionComplete;
106
106
  start?: PopupActionStart;
107
+ back?: PopupActionDecline;
107
108
  }
108
109
  /** Estilos configurables del popup */
109
110
  interface PopupStyle {
package/dist/index.js CHANGED
@@ -1881,7 +1881,7 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
1881
1881
  footer.setAttribute("data-actions-wrapper", "true");
1882
1882
  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;";
1883
1883
  const backButton = document.createElement("button");
1884
- backButton.textContent = "Back";
1884
+ backButton.textContent = actions?.back ? actions.back.label : "Back";
1885
1885
  backButton.style.cssText = `
1886
1886
  background: transparent;
1887
1887
  color: #333;
@@ -1982,9 +1982,9 @@ async function renderPopup(container, surveyId, productId, actions, emit, onClos
1982
1982
  startButton.style.display = "none";
1983
1983
  submitButton.style.display = "none";
1984
1984
  closeButton.style.display = "none";
1985
+ footer.appendChild(submitButton);
1985
1986
  footer.appendChild(backButton);
1986
1987
  footer.appendChild(closeButton);
1987
- footer.appendChild(submitButton);
1988
1988
  footer.appendChild(startButton);
1989
1989
  main.appendChild(footer);
1990
1990
  containerContent.appendChild(main);