From 3f28e75313f4bc349a30843871555d7830600226 Mon Sep 17 00:00:00 2001 From: abose Date: Tue, 13 Jan 2026 16:03:12 +0530 Subject: [PATCH 1/2] chore: expose live preview seelcted element globally --- src/LiveDevelopment/BrowserScripts/RemoteFunctions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js index deb6206b5..0256043f3 100644 --- a/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js +++ b/src/LiveDevelopment/BrowserScripts/RemoteFunctions.js @@ -36,6 +36,8 @@ function RemoteFunctions(config = {}) { // this will store the element that was clicked previously (before the new click) // we need this so that we can remove click styling from the previous element when a new element is clicked let previouslySelectedElement = null; + // Expose the currently selected element globally for external access + window.__current_ph_lp_selected = null; var req, timeout; function animateHighlight(time) { @@ -710,6 +712,7 @@ function RemoteFunctions(config = {}) { _clickHighlight.add(element, true); previouslySelectedElement = element; + window.__current_ph_lp_selected = element; } function disableHoverListeners() { @@ -1317,6 +1320,7 @@ function RemoteFunctions(config = {}) { } delete previouslySelectedElement._originalOutline; previouslySelectedElement = null; + window.__current_ph_lp_selected = null; } if (config.mode === 'edit') { From 4892b5dd9d01c360516ae5e33cf5839a95b262f7 Mon Sep 17 00:00:00 2001 From: abose Date: Tue, 13 Jan 2026 18:02:43 +0530 Subject: [PATCH 2/2] chore: update pro dep --- tracking-repos.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking-repos.json b/tracking-repos.json index de562cdb6..f1f7f23ad 100644 --- a/tracking-repos.json +++ b/tracking-repos.json @@ -1,5 +1,5 @@ { "phoenixPro": { - "commitID": "854053fa95b3b6d9cb2b17ca72bab14223aef000" + "commitID": "0838471fe2cc3883de47965c29999bd92de22e00" } }