@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/assets/assets/style.css +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1734,7 +1734,7 @@ function ensureMagicFeedbackStyles(popup) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
const link = document.createElement("link");
|
|
1736
1736
|
link.rel = "stylesheet";
|
|
1737
|
-
link.href = "https://cdn.jsdelivr.net/npm/@magicfeedback/popup-sdk/dist/assets/style.css";
|
|
1737
|
+
link.href = "https://cdn.jsdelivr.net/npm/@magicfeedback/popup-sdk/dist/assets/assets/style.css";
|
|
1738
1738
|
link.setAttribute(DATA_ATTR, "true");
|
|
1739
1739
|
popup.appendChild(link);
|
|
1740
1740
|
}
|
|
@@ -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);
|