From c4188c010d975264933b2c0e8b3182080c60aee9 Mon Sep 17 00:00:00 2001 From: Connor Burns Date: Mon, 19 Feb 2024 03:32:39 -0700 Subject: [PATCH 01/10] Fix #292 (#293) --- src/Builtins.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Builtins.jl b/src/Builtins.jl index 20ca49c1..5966472c 100644 --- a/src/Builtins.jl +++ b/src/Builtins.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.32 +# v0.19.38 using Markdown using InteractiveUtils @@ -667,7 +667,7 @@ begin Base.get(select::Select) = ismissing(select.default) ? first(select.options).first : select.default Bonds.initial_value(select::Select) = ismissing(select.default) ? first(select.options).first : select.default - Bonds.possible_values(select::Select) = (string(i) for i in 1:length(select.options)) + Bonds.possible_values(select::Select) = ("puiselect-$(i)" for i in 1:length(select.options)) function Bonds.transform_value(select::Select, val_from_js) if startswith(val_from_js, "puiselect-") From 59f76dedcfa4906e2b87379b552785a36ee2337f Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Mon, 19 Feb 2024 11:33:17 +0100 Subject: [PATCH 02/10] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 6178c8a0..19c18c8c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PlutoUI" uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8" authors = ["Fons van der Plas "] -version = "0.7.56" +version = "0.7.57" [deps] AbstractPlutoDingetjes = "6e696c72-6542-2067-7265-42206c756150" From 2b27235452c2fab4763d4c605f91687ac1580081 Mon Sep 17 00:00:00 2001 From: John Merkel Date: Thu, 22 Feb 2024 11:44:16 -0800 Subject: [PATCH 03/10] Add optional `label` kwarg to `confirm` (#294) --- src/Confirm.jl | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/src/Confirm.jl b/src/Confirm.jl index 6608367a..7853c632 100644 --- a/src/Confirm.jl +++ b/src/Confirm.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.12 +# v0.19.38 using Markdown using InteractiveUtils @@ -114,6 +114,7 @@ begin Base.@kwdef struct ConfirmBond element::Any secret_key::String=String(rand('a':'z', 10)) + label::Union{String, Nothing}=nothing end function Base.show(io::IO, m::MIME"text/html", cb::ConfirmBond) @@ -121,9 +122,10 @@ begin return Base.show(io, m, HTML("❌ You need to update Pluto to use this PlutoUI element.")) end output = @htl( - """$( - cb.element - )