ultimate_turbo_modal 3.1.2 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +3 -7
  5. data/VERSION +1 -1
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4d5ac23c5a9f60d8106bbbc0298d5c9077adf2fff733d650c69b64cfca43fc0
4
- data.tar.gz: c49fce6b629d85895271d5ed1feca395ffeb715652269705bab0575763323ebe
3
+ metadata.gz: 34e3efd561fcd9f694e52a040502a1f045beb16ef982ac0cc78c98e7aa48cbab
4
+ data.tar.gz: c090cf48ba8f4af707369747a008897da3b8678b136fb5c92b23e90d3f78472e
5
5
  SHA512:
6
- metadata.gz: f8d81256366eb343f6c67806ff635a818fe9660d288189f93ed37d21f03e10252f346578b50cdab320a62fc956f33ac32cd4c2fbbaa0d88bc0cd27cc8ddc1ef3
7
- data.tar.gz: dd4ad52607db65e05ee7cdd9b2201a6d3190c2217d78ddf88391fa79040d9008eb4e20b090b4997855fc7c53e0a36327c2836af83349973b921dced7e41d2e47
6
+ metadata.gz: 23c8b90eb4df8e7482b35b1619f353901f8d11405f9039f57d3bb512d8e7aefb489814e8169b06e3fb33ec2ecc7dac41c83a00c3154ec0395e8b53e3fc1ea393
7
+ data.tar.gz: 8998b6858873bd44b0f2aa18e3f9a82642a9c71a44402e7ef29a2ba0d4107908ea5c4f4e951c3c1dd16a098aef03993acf21b4432ff5acbfe109c0a2bde6279c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [3.2.0] - 2026-05-05
4
+
5
+ - Links and forms inside a drawer can now use `data-turbo-frame="modal"` to open a stacked modal — the same partial works inside or outside a drawer with no changes.
6
+ - Fixed scroll-lock not releasing after a same-page morph reconnected the modal controller, which could leave the page padded and right-anchored fixed elements offset until refresh.
7
+
3
8
  ## [3.1.2] - 2026-05-01
4
9
 
5
10
  - Fixed page content shifting right when a modal or drawer opens.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ultimate_turbo_modal (3.1.2)
4
+ ultimate_turbo_modal (3.2.0)
5
5
  actionpack (>= 8.0)
6
6
  activesupport (>= 8.0)
7
7
  phlex-rails (>= 2.0)
data/README.md CHANGED
@@ -205,28 +205,24 @@ Link to it the same way as a modal:
205
205
 
206
206
  ## Opening a Modal from a Drawer
207
207
 
208
- You can open a regular modal that stacks on top of an open drawer. This is built in — no setup or opt-in required.
209
-
210
- Inside any drawer, link to a modal action with `data-turbo-frame="drawer-modal"`:
208
+ You don't need to do anything special. Use `data-turbo-frame="modal"` like you would anywhere else, and UTMR handles the rest:
211
209
 
212
210
  ```erb
213
211
  <%= drawer(title: "Notifications") do %>
214
212
  <p>Activity list here…</p>
215
213
  <%= link_to "Edit preferences",
216
214
  edit_preferences_path,
217
- data: { turbo_frame: "drawer-modal" } %>
215
+ data: { turbo_frame: "modal" } %>
218
216
  <% end %>
219
217
  ```
220
218
 
221
- The destination is rendered with the same `modal()` helper you use elsewhere:
222
-
223
219
  ```erb
224
220
  <%= modal(title: "Notification preferences") do %>
225
221
  <p>Form here…</p>
226
222
  <% end %>
227
223
  ```
228
224
 
229
- The gem detects the request and renders the modal into a stacked `<dialog>` that sits visually on top of the drawer.
225
+ The same partial works inside a drawer or out outside, it opens a regular modal; inside, it stacks on top of the drawer.
230
226
 
231
227
  ### Behavior
232
228
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultimate_turbo_modal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Mercier