Skip to content

Commit 3247997

Browse files
committed
deploy: 606b7d0
1 parent 2fdac2e commit 3247997

File tree

89 files changed

+7044
-1800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+7044
-1800
lines changed

LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 666 additions & 249 deletions
Large diffs are not rendered by default.

LiveDevelopment/LiveDevMultiBrowser.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -714,17 +714,8 @@ define(function (require, exports, module) {
714714
*/
715715
function dismissLivePreviewBoxes() {
716716
if (_protocol) {
717+
_protocol.evaluate("_LD.enableHoverListeners()"); // so that if hover lock is there it will get cleared
717718
_protocol.evaluate("_LD.dismissUIAndCleanupState()");
718-
_protocol.evaluate("_LD.dismissImageRibbonGallery()");
719-
}
720-
}
721-
722-
/**
723-
* Dismiss image ribbon gallery if it's open
724-
*/
725-
function dismissImageRibbonGallery() {
726-
if (_protocol) {
727-
_protocol.evaluate("_LD.dismissImageRibbonGallery()");
728719
}
729720
}
730721

@@ -814,7 +805,6 @@ define(function (require, exports, module) {
814805
exports.redrawHighlight = redrawHighlight;
815806
exports.hasVisibleLivePreviewBoxes = hasVisibleLivePreviewBoxes;
816807
exports.dismissLivePreviewBoxes = dismissLivePreviewBoxes;
817-
exports.dismissImageRibbonGallery = dismissImageRibbonGallery;
818808
exports.registerHandlers = registerHandlers;
819809
exports.updateConfig = updateConfig;
820810
exports.init = init;

LiveDevelopment/LivePreviewEdit.js

Lines changed: 428 additions & 27 deletions
Large diffs are not rendered by default.

LiveDevelopment/main.js

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ define(function main(require, exports, module) {
7070
},
7171
isProUser: isProUser,
7272
elemHighlights: "hover", // default value, this will get updated when the extension loads
73-
imageRibbon: true, // default value, this will get updated when the extension loads
7473
// this strings are used in RemoteFunctions.js
7574
// we need to pass this through config as remoteFunctions runs in browser context and cannot
7675
// directly reference Strings file
@@ -80,11 +79,17 @@ define(function main(require, exports, module) {
8079
duplicate: Strings.LIVE_DEV_MORE_OPTIONS_DUPLICATE,
8180
delete: Strings.LIVE_DEV_MORE_OPTIONS_DELETE,
8281
ai: Strings.LIVE_DEV_MORE_OPTIONS_AI,
82+
imageGallery: Strings.LIVE_DEV_MORE_OPTIONS_IMAGE_GALLERY,
8383
aiPromptPlaceholder: Strings.LIVE_DEV_AI_PROMPT_PLACEHOLDER,
8484
imageGalleryUseImage: Strings.LIVE_DEV_IMAGE_GALLERY_USE_IMAGE,
8585
imageGallerySelectFromComputer: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_FROM_COMPUTER,
86-
imageGalleryChooseFolder: Strings.LIVE_DEV_IMAGE_GALLERY_CHOOSE_FOLDER,
87-
imageGallerySearchPlaceholder: Strings.LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER
86+
imageGallerySelectDownloadFolder: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_DOWNLOAD_FOLDER,
87+
imageGallerySearchPlaceholder: Strings.LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER,
88+
imageGallerySearchButton: Strings.LIVE_DEV_IMAGE_GALLERY_SEARCH_BUTTON,
89+
imageGalleryLoadingInitial: Strings.LIVE_DEV_IMAGE_GALLERY_LOADING_INITIAL,
90+
imageGalleryLoadingMore: Strings.LIVE_DEV_IMAGE_GALLERY_LOADING_MORE,
91+
imageGalleryNoImages: Strings.LIVE_DEV_IMAGE_GALLERY_NO_IMAGES,
92+
imageGalleryLoadError: Strings.LIVE_DEV_IMAGE_GALLERY_LOAD_ERROR
8893
}
8994
};
9095
// Status labels/styles are ordered: error, not connected, progress1, progress2, connected.
@@ -370,20 +375,6 @@ define(function main(require, exports, module) {
370375
}
371376
}
372377

373-
// this function is responsible to update image picker config
374-
// called from live preview extension when preference changes
375-
function updateImageRibbonConfig() {
376-
const prefValue = PreferencesManager.get("livePreviewImagePicker");
377-
config.imageRibbon = prefValue !== false; // default to true if undefined
378-
379-
if (MultiBrowserLiveDev && MultiBrowserLiveDev.status >= MultiBrowserLiveDev.STATUS_ACTIVE) {
380-
if (!prefValue) { MultiBrowserLiveDev.dismissImageRibbonGallery(); } // to remove any existing image ribbons
381-
382-
MultiBrowserLiveDev.updateConfig(JSON.stringify(config));
383-
MultiBrowserLiveDev.registerHandlers();
384-
}
385-
}
386-
387378
// init commands
388379
CommandManager.register(Strings.CMD_LIVE_HIGHLIGHT, Commands.FILE_LIVE_HIGHLIGHT, togglePreviewHighlight);
389380
CommandManager.register(Strings.CMD_RELOAD_LIVE_PREVIEW, Commands.CMD_RELOAD_LIVE_PREVIEW, _handleReloadLivePreviewCommand);
@@ -412,7 +403,6 @@ define(function main(require, exports, module) {
412403
exports.togglePreviewHighlight = togglePreviewHighlight;
413404
exports.setLivePreviewEditFeaturesActive = setLivePreviewEditFeaturesActive;
414405
exports.updateElementHighlightConfig = updateElementHighlightConfig;
415-
exports.updateImageRibbonConfig = updateImageRibbonConfig;
416406
exports.getConnectionIds = MultiBrowserLiveDev.getConnectionIds;
417407
exports.getLivePreviewDetails = MultiBrowserLiveDev.getLivePreviewDetails;
418408
exports.hideHighlight = MultiBrowserLiveDev.hideHighlight;

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ window.AppConfig = {
3333
"app_update_url": "https://updates.phcode.io/tauri/update-latest-experimental-build.json",
3434
"extensionTakedownURL": "https://updates.phcode.io/extension_takedown.json",
3535
"linting.enabled_by_default": true,
36-
"build_timestamp": "2025-10-24T12:58:28.574Z",
36+
"build_timestamp": "2025-10-25T02:34:00.101Z",
3737
"googleAnalyticsID": "G-P4HJFPDB76",
3838
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
3939
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -45,7 +45,7 @@ window.AppConfig = {
4545
"bugsnagEnv": "development"
4646
},
4747
"name": "Phoenix Code",
48-
"version": "4.1.2-21620",
48+
"version": "4.1.2-21662",
4949
"apiVersion": "4.1.2",
5050
"homepage": "https://core.ai",
5151
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

assets/sample-projects/HTML5.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

assets/sample-projects/explore.zip

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)