rivia 0.0.106 → 0.0.108
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.js +22 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4647,6 +4647,18 @@ var ProductManagement = /* @__PURE__ */ function() {
|
|
|
4647
4647
|
const div = document.createElement("div");
|
|
4648
4648
|
div.className = "pm-lite-item";
|
|
4649
4649
|
const date = it.created_at ? new Date(it.created_at).toLocaleDateString() : "";
|
|
4650
|
+
div.style.cursor = "pointer";
|
|
4651
|
+
div.addEventListener("click", () => {
|
|
4652
|
+
const baseUrl = `https://${state.config.workspace}.rivia.ai/users/changelog`;
|
|
4653
|
+
const params = new URLSearchParams({
|
|
4654
|
+
changelogId: it.changelog_id || it.id || "",
|
|
4655
|
+
// adjust based on your API
|
|
4656
|
+
pm_user_id: state.pmUserId || ""
|
|
4657
|
+
});
|
|
4658
|
+
console.log("it.id", it.id);
|
|
4659
|
+
const finalUrl = `${baseUrl}?${params.toString()}`;
|
|
4660
|
+
window.open(finalUrl, "_blank");
|
|
4661
|
+
});
|
|
4650
4662
|
if (it.label) {
|
|
4651
4663
|
const tag = document.createElement("span");
|
|
4652
4664
|
tag.className = "pm-lite-tags";
|
|
@@ -4672,7 +4684,16 @@ var ProductManagement = /* @__PURE__ */ function() {
|
|
|
4672
4684
|
header.style.textOverflow = "ellipsis";
|
|
4673
4685
|
header.style.fontSize = state.titleFontSize;
|
|
4674
4686
|
const content = document.createElement("div");
|
|
4675
|
-
|
|
4687
|
+
const temp = document.createElement("div");
|
|
4688
|
+
temp.innerHTML = it.text || "";
|
|
4689
|
+
temp.querySelectorAll("img").forEach((img) => img.remove());
|
|
4690
|
+
const paragraphs = temp.querySelectorAll("p");
|
|
4691
|
+
content.innerHTML = "";
|
|
4692
|
+
paragraphs.forEach((p) => {
|
|
4693
|
+
const cleanP = document.createElement("p");
|
|
4694
|
+
cleanP.textContent = p.textContent;
|
|
4695
|
+
content.appendChild(cleanP);
|
|
4696
|
+
});
|
|
4676
4697
|
content.style.display = "-webkit-box";
|
|
4677
4698
|
content.style.webkitLineClamp = "3";
|
|
4678
4699
|
content.style.webkitBoxOrient = "vertical";
|