From 1a6e77ea629c55870ea43236fd039a3cf88badd9 Mon Sep 17 00:00:00 2001 From: Pluto Date: Fri, 26 Dec 2025 13:33:44 +0530 Subject: [PATCH 1/8] refactor: update strings --- src/nls/root/strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js index 40729ac67..209087889 100644 --- a/src/nls/root/strings.js +++ b/src/nls/root/strings.js @@ -197,7 +197,7 @@ define({ "LIVE_DEV_MORE_OPTIONS_CUT": "Cut", "LIVE_DEV_MORE_OPTIONS_COPY": "Copy", "LIVE_DEV_MORE_OPTIONS_PASTE": "Paste", - "LIVE_DEV_IMAGE_GALLERY_USE_IMAGE": "Use this image", + "LIVE_DEV_IMAGE_GALLERY_USE_IMAGE": "Download image", "LIVE_DEV_IMAGE_GALLERY_SELECT_DOWNLOAD_FOLDER": "Choose image download folder", "LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER": "Search images\u2026", "LIVE_DEV_IMAGE_GALLERY_SEARCH_BUTTON": "Search", From b6ce6c1d0c0330bbf3bd62e2cbbc3e3239d5ee3f Mon Sep 17 00:00:00 2001 From: Pluto Date: Sun, 28 Dec 2025 15:04:06 +0530 Subject: [PATCH 2/8] build: update pro deps --- tracking-repos.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking-repos.json b/tracking-repos.json index e797404a6..335aeef12 100644 --- a/tracking-repos.json +++ b/tracking-repos.json @@ -1,5 +1,5 @@ { "phoenixPro": { - "commitID": "ea051edcddd93b121aada770588fb948b7227ba4" + "commitID": "10c1aab6c35c4d45981b8c47febcacc420017e07" } } From 813c07c2d2df6e33ac0b0d201ff5024bc10981ad Mon Sep 17 00:00:00 2001 From: Pluto Date: Fri, 26 Dec 2025 13:59:40 +0530 Subject: [PATCH 3/8] build: update pro deps --- tracking-repos.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking-repos.json b/tracking-repos.json index 335aeef12..83285ae1d 100644 --- a/tracking-repos.json +++ b/tracking-repos.json @@ -1,5 +1,5 @@ { "phoenixPro": { - "commitID": "10c1aab6c35c4d45981b8c47febcacc420017e07" + "commitID": "ca32cf57c34543b10eebcc076764317833c17196" } } From faccdca8e3e71aa4b919f72b8c414f1b5b4bf790 Mon Sep 17 00:00:00 2001 From: Pluto Date: Fri, 26 Dec 2025 17:27:30 +0530 Subject: [PATCH 4/8] build: update pro deps --- tracking-repos.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking-repos.json b/tracking-repos.json index 83285ae1d..94b38d801 100644 --- a/tracking-repos.json +++ b/tracking-repos.json @@ -1,5 +1,5 @@ { "phoenixPro": { - "commitID": "ca32cf57c34543b10eebcc076764317833c17196" + "commitID": "8fd0b6f9067fda92dd08eb931267e94af2136b70" } } From e00b4e06e22d63adb70431151ec47c69e50ff964 Mon Sep 17 00:00:00 2001 From: Pluto Date: Fri, 26 Dec 2025 19:42:39 +0530 Subject: [PATCH 5/8] chore: localize image gallery string --- src/nls/root/strings.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js index 209087889..4dde2555f 100644 --- a/src/nls/root/strings.js +++ b/src/nls/root/strings.js @@ -213,6 +213,7 @@ define({ "LIVE_DEV_IMAGE_GALLERY_OFFLINE_RETRY": "Retry", "LIVE_DEV_IMAGE_GALLERY_CHECKING_CONNECTION": "Checking connection", "LIVE_DEV_IMAGE_GALLERY_STILL_OFFLINE": "Still offline. Please check your connection.", + "LIVE_DEV_IMAGE_GALLERY_SELECT_SIZE": "Select image size", "LIVE_DEV_TOAST_NOT_EDITABLE": "Element not editable - generated by script", "LIVE_DEV_COPY_TOAST_MESSAGE": "Element copied. Use 'Paste' to add it below the selected element", "LIVE_DEV_TOAST_FIXED_ELEMENT_DISMISSED": "Element doesn't scroll with page - edit boxes hidden", From 06d0564bd056d07c32cefd681ab7b908db79fb6d Mon Sep 17 00:00:00 2001 From: Pluto Date: Sun, 28 Dec 2025 17:33:41 +0530 Subject: [PATCH 6/8] feat: pass is logged in to config --- src/LiveDevelopment/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/LiveDevelopment/main.js b/src/LiveDevelopment/main.js index 6d9ba333a..ae3069b37 100644 --- a/src/LiveDevelopment/main.js +++ b/src/LiveDevelopment/main.js @@ -53,6 +53,7 @@ define(function main(require, exports, module) { // this will later be assigned its correct values once entitlementsManager loads let hasLiveEditCapability = false; let isPaidUser = false; + let isLoggedIn = false; const PREFERENCE_LIVE_PREVIEW_MODE = CONSTANTS.PREFERENCE_LIVE_PREVIEW_MODE; @@ -98,6 +99,7 @@ define(function main(require, exports, module) { showRulerLines: false, // default value, this will get updated when the extension loads imageGalleryState: _getImageGalleryState(), // image gallery selected state isPaidUser: false, // will be updated when we fetch entitlements + isLoggedIn: false, // will be updated when we fetch entitlements hasLiveEditCapability: false // handled inside _liveEditCapabilityChanged function }; @@ -259,6 +261,15 @@ define(function main(require, exports, module) { } } + function _isLoggedInChanged(newStatus) { + if(newStatus !== isLoggedIn){ + isLoggedIn = newStatus; + const config = MultiBrowserLiveDev.getConfig(); + config.isLoggedIn = isLoggedIn; + MultiBrowserLiveDev.updateConfig(config); + } + } + function setMode(mode) { if (mode === LIVE_EDIT_MODE && !hasLiveEditCapability) { return false; @@ -346,6 +357,7 @@ define(function main(require, exports, module) { // private api exports._liveEditCapabilityChanged = _liveEditCapabilityChanged; exports._isPaidUserChanged = _isPaidUserChanged; + exports._isLoggedInChanged = _isLoggedInChanged; // public events exports.EVENT_OPEN_PREVIEW_URL = MultiBrowserLiveDev.EVENT_OPEN_PREVIEW_URL; From cf5d24816c5dba5a90ec77ddf66e607b5ea5a9c6 Mon Sep 17 00:00:00 2001 From: Pluto Date: Sun, 28 Dec 2025 17:45:46 +0530 Subject: [PATCH 7/8] feat: localize the image gallery strings --- src/nls/root/strings.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js index 4dde2555f..129e677a5 100644 --- a/src/nls/root/strings.js +++ b/src/nls/root/strings.js @@ -214,6 +214,14 @@ define({ "LIVE_DEV_IMAGE_GALLERY_CHECKING_CONNECTION": "Checking connection", "LIVE_DEV_IMAGE_GALLERY_STILL_OFFLINE": "Still offline. Please check your connection.", "LIVE_DEV_IMAGE_GALLERY_SELECT_SIZE": "Select image size", + "LIVE_DEV_IMAGE_GALLERY_SIZE_CARD": "Card 400px", + "LIVE_DEV_IMAGE_GALLERY_SIZE_HERO": "Hero 1080px", + "LIVE_DEV_IMAGE_GALLERY_SIZE_RETINA": "Retina 2200px", + "LIVE_DEV_IMAGE_GALLERY_LIMIT_EXCEEDED_LOGGED_IN": "Your free tier limits are exhausted. Please Subscribe to Pro to continue", + "LIVE_DEV_IMAGE_GALLERY_LIMIT_EXCEEDED_ANONYMOUS": "Your limits are exhausted. Please log in to continue", + "LIVE_DEV_IMAGE_GALLERY_LOGIN_BUTTON": "Log In", + "LIVE_DEV_IMAGE_GALLERY_SUBSCRIBE_BUTTON": "Subscribe to Pro", + "LIVE_DEV_IMAGE_GALLERY_ATTRIBUTION_ON": "on", "LIVE_DEV_TOAST_NOT_EDITABLE": "Element not editable - generated by script", "LIVE_DEV_COPY_TOAST_MESSAGE": "Element copied. Use 'Paste' to add it below the selected element", "LIVE_DEV_TOAST_FIXED_ELEMENT_DISMISSED": "Element doesn't scroll with page - edit boxes hidden", From ec9bc8bd3865f43ef4c5bd6270d5acce4456f589 Mon Sep 17 00:00:00 2001 From: Pluto Date: Sun, 28 Dec 2025 18:06:37 +0530 Subject: [PATCH 8/8] feat: add paid user throttling string --- src/nls/root/strings.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nls/root/strings.js b/src/nls/root/strings.js index 129e677a5..678bea86f 100644 --- a/src/nls/root/strings.js +++ b/src/nls/root/strings.js @@ -219,6 +219,7 @@ define({ "LIVE_DEV_IMAGE_GALLERY_SIZE_RETINA": "Retina 2200px", "LIVE_DEV_IMAGE_GALLERY_LIMIT_EXCEEDED_LOGGED_IN": "Your free tier limits are exhausted. Please Subscribe to Pro to continue", "LIVE_DEV_IMAGE_GALLERY_LIMIT_EXCEEDED_ANONYMOUS": "Your limits are exhausted. Please log in to continue", + "LIVE_DEV_IMAGE_GALLERY_LIMIT_EXCEEDED_PAID_HOURLY": "Your hourly query limit has been reached. Please try again later", "LIVE_DEV_IMAGE_GALLERY_LOGIN_BUTTON": "Log In", "LIVE_DEV_IMAGE_GALLERY_SUBSCRIBE_BUTTON": "Subscribe to Pro", "LIVE_DEV_IMAGE_GALLERY_ATTRIBUTION_ON": "on",