@closedrouter/cli 1.1.17 → 1.1.18
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,CAyDrG;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CAKjF"}
|
package/dist/index.js
CHANGED
|
@@ -10971,6 +10971,9 @@ function installCursorProviderAccountUi(account, artwork) {
|
|
|
10971
10971
|
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()));
|
|
10972
10972
|
if (!target?.parentElement)
|
|
10973
10973
|
return;
|
|
10974
|
+
const nativeAvatar = target.parentElement.querySelector(":scope > .ui-sidebar-menu-button-icon-wrapper");
|
|
10975
|
+
if (nativeAvatar)
|
|
10976
|
+
nativeAvatar.dataset.closedrouterReplacedAccount = "true";
|
|
10974
10977
|
if (button.isConnected && button.nextElementSibling === target)
|
|
10975
10978
|
return;
|
|
10976
10979
|
close();
|
package/package.json
CHANGED