Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(prompt): add prompt support #250

Merged
merged 38 commits into from
Dec 4, 2024
Merged

feat(prompt): add prompt support #250

merged 38 commits into from
Dec 4, 2024

Conversation

pewsheen
Copy link
Collaborator

@pewsheen pewsheen commented Dec 2, 2024

  • add window.alert() window.confirm() and window.prompt() support
  • moved context_menu and prompt under a components mod
  • verso:// custom protocol now reads files under a directory
  • not sure when the YES/NO prompt will be called
  • navigate to verso://resources/components/prompt/prompt_test.html for testing

@wusyong
Copy link
Member

wusyong commented Dec 3, 2024

So if yes/no variant isn't actually used. Perhaps we could remove it in upstream too.

src/lib.rs Outdated
@@ -30,4 +30,4 @@ pub use verso::Verso;
/// Re-exporting Winit for the sake of convenience.
pub use winit;
/// Context
pub mod context_menu;
pub mod components;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can reuse webivew module I think and move context_menu, panel, and prompt under there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to webview and moved WebView Panel into it

@pewsheen pewsheen marked this pull request as ready for review December 4, 2024 08:29
@wusyong
Copy link
Member

wusyong commented Dec 4, 2024

Verified on macOS. All prompt types seem to work!

Screen.Recording.2024-12-04.at.8.53.41.PM.mov

@wusyong wusyong added this pull request to the merge queue Dec 4, 2024
Merged via the queue into main with commit 6ca28dd Dec 4, 2024
6 checks passed
@wusyong wusyong deleted the prompt branch December 4, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants