@closedrouter/cli 1.1.20 → 1.1.21
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-desktop-account.d.ts","sourceRoot":"","sources":["../../src/commands/cursor-desktop-account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE;8EAC8E;AAC9E,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"cursor-desktop-account.d.ts","sourceRoot":"","sources":["../../src/commands/cursor-desktop-account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAGhE;8EAC8E;AAC9E,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CA0DrG;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAKjF"}
|
package/dist/index.js
CHANGED
|
@@ -10903,7 +10903,7 @@ function installCursorProviderAccountUi(account, artwork) {
|
|
|
10903
10903
|
button.setAttribute("aria-label", `ClosedRouter account: ${account.name}`);
|
|
10904
10904
|
button.setAttribute("aria-haspopup", "menu");
|
|
10905
10905
|
button.setAttribute("aria-expanded", "false");
|
|
10906
|
-
button.style.cssText = "display:flex;align-items:center;gap:8px;width:100%;padding:8px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer";
|
|
10906
|
+
button.style.cssText = "display:flex;align-items:center;gap:8px;flex:1;min-width:0;width:100%;padding:8px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer";
|
|
10907
10907
|
const mark = image(24);
|
|
10908
10908
|
mark.dataset.closedrouterAccountLogo = "true";
|
|
10909
10909
|
const label = document.createElement("span");
|
|
@@ -10988,10 +10988,10 @@ function installCursorProviderAccountUi(account, artwork) {
|
|
|
10988
10988
|
const upgrade = document.querySelector('[aria-label="Upgrade to a Pro account"]');
|
|
10989
10989
|
if (upgrade)
|
|
10990
10990
|
upgrade.dataset.closedrouterReplacedAccount = "true";
|
|
10991
|
-
const target = document.querySelector('[aria-label="Loading account information"],[aria-label="Accounts"]') || upgrade || [...document.querySelectorAll("button,[role=button]")].find((node) => /^(Sign in|Sign In|Accounts)$/.test(node.innerText.trim()));
|
|
10991
|
+
const target = document.querySelector('[aria-label="Loading account information"],[aria-label="Accounts"]') || upgrade || document.querySelector(".unified-agents-sidebar .agent-sidebar-footer-text") || [...document.querySelectorAll("button,[role=button]")].find((node) => /^(Sign in|Sign In|Accounts)$/.test(node.innerText.trim()));
|
|
10992
10992
|
if (!target?.parentElement)
|
|
10993
10993
|
return;
|
|
10994
|
-
const nativeAvatar = target.parentElement.querySelector(":scope > .ui-sidebar-menu-button-icon-wrapper");
|
|
10994
|
+
const nativeAvatar = target.parentElement.querySelector(":scope > .ui-sidebar-menu-button-icon-wrapper,:scope > .agent-sidebar-footer-avatar-slot");
|
|
10995
10995
|
if (nativeAvatar)
|
|
10996
10996
|
nativeAvatar.dataset.closedrouterReplacedAccount = "true";
|
|
10997
10997
|
if (button.isConnected && button.nextElementSibling === target)
|
package/package.json
CHANGED