studio-engine 0.4.7 → 0.4.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63e2696b020195f3525570ece2fa4ee527d4d4e3af6e3f16eb969243be87d107
4
- data.tar.gz: 735d3d150f0af04de66de164655fbc644f0657c05343cdffbdbc68b7c851aeb1
3
+ metadata.gz: 8f8c3f3f0fc28618c7548ed3cc81722c97c9d0ec8aa2b2e80c8b66a659b12d31
4
+ data.tar.gz: 80d1c6c2caf077f2134155386ee0e239e7c110dad60aa5309b4f73de3c4941d9
5
5
  SHA512:
6
- metadata.gz: d46aea917a51d91c42fb93e554e6ce2e13ba5d33f28896b04d842bea969dd061802e79fec8c52d21aa916a7c533c9d44e35e487e50fe6a5ae371a20f25648a46
7
- data.tar.gz: e4384713fde2f34a7edfb4d2e0e41efb50716d30d2145ca5967e148e0a904429d77fbab34ce8a76363a96e3173c4fe34c75d9597a70a296cd6c3853d15ab2455
6
+ metadata.gz: 14e91053bde82771db8a5d2034688efd1ccf08802bc29c2b95d27a5b875fb93c281bb3cb511cf53e6f29f201a96bbc6ef932ed59160ca3c10efa7b342c26a813
7
+ data.tar.gz: e2bbf87278406c6ab7e7a4953d2f409f2407eda0f03439fc514c5db00c263d8660215ce3379f4114d7b3cfdbf44ca943d35f2a5563394c422be5661ae2ab8389
data/CHANGELOG.md CHANGED
@@ -2,12 +2,19 @@
2
2
 
3
3
  The format is [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html) — `MAJOR.MINOR.PATCH`. Both consumer Rails apps pin to a tag in their `Gemfile`; bumping the tag is a release.
4
4
 
5
+ ## v0.4.8 (2026-05-23)
6
+
7
+ Bugfix follow-up to v0.4.7. The v0.4.7 fix removed the ERB-escape example from the doc comment, but the same comment still referenced the bug it had just fixed using literal ERB-tag characters (the words "ERB <%# %> terminates at the first %> sequence" sit inside an ERB comment that uses `%>` as its terminator — recursive footgun). The first inline `%>` ended the outer comment and the rest leaked again.
8
+
9
+ ### Fixed
10
+ - **`studio/modals/host` comment leak (v0.4.6 + v0.4.7).** Rewrote the doc comment to contain zero `%` characters; ERB now sees the entire block as a single comment. No API change.
11
+
5
12
  ## v0.4.7 (2026-05-23)
6
13
 
7
14
  Bugfix — modal host doc-comment was leaking into rendered pages.
8
15
 
9
16
  ### Fixed
10
- - **`studio/modals/host` comment block terminated early.** The leading `<%# %>` comment in `_host.html.erb` contained a worked example of the consumer's render-block syntax (`<%%= render ... %%>`). ERB scans for the first `%>` sequence to close the comment, and `%%>` ends in `%>`, so the comment terminated mid-escape leaving the example markup AND the prose after it as literal output at the bottom of every page that rendered the host. Now any docblock with ERB escapes is removed; the consumer example lives in the gem's README / CHANGELOG instead. No API change.
17
+ - **`studio/modals/host` comment block terminated early.** The leading comment in `_host.html.erb` contained a worked example of the consumer render-block syntax using literal ERB escape sequences. ERB scans for the first tag-close to close the comment, and the escape sequences end in one so the comment terminated mid-escape, leaving the rest as literal output at the bottom of every page. (See v0.4.8 this v0.4.7 fix was itself incomplete.)
11
18
 
12
19
  ## v0.4.6 (2026-05-23)
13
20
 
@@ -1,37 +1,12 @@
1
1
  <%#
2
- Modal host single shared shell for any modal that opens through
2
+ Modal host. Single shared shell for any modal that opens through
3
3
  Alpine.store('modals'). Owns the backdrop, scroll lock (via
4
- .modal-open on body), escape key, click-outside, transitions, and
5
- ARIA dialog role. Bundles the scroll-lock CSS, bfcache + Turbo
4
+ modal-open on body), escape key, click-outside, transitions, and
5
+ ARIA dialog role. Bundles the scroll-lock CSS, bfcache and Turbo
6
6
  Drive snapshot cleanup, store registration, and the
7
- window.StudioModals.holdAtLeast(ms) helper.
8
-
9
- Render ONCE from the application layout, passing a block that
10
- registers content partials by modal id (see this gem's README /
11
- CHANGELOG for the consumer-side example — kept out of this comment
12
- on purpose because ERB <%# %> terminates at the first %> sequence,
13
- so embedded <%%= %%> escapes would leak the rest of the comment
14
- into the page output).
15
-
16
- Modal CONTENT partials live in the consumer app (each app's auth /
17
- checkout / tx / etc. is product-specific). The reusable content
18
- BLOCKS live next to this partial in studio/modals/blocks/.
19
-
20
- API surface (window.StudioModals + the Alpine 'modals' store):
21
-
22
- $store.modals.open(id, props, opts)
23
- opts.replace true swaps top of stack (no stack flicker)
24
- props.dismissible false suppresses escape + click-outside close
25
- $store.modals.close() — pop top
26
- $store.modals.closeAll()
27
- $store.modals.isOpen(id)
28
- $store.modals.current()
29
-
30
- StudioModals.holdAtLeast(ms) — returns { then(cb) }. Stamps
31
- mount time, delays cb so a fast operation can't flash past the
32
- loading state. Mirrors the _navSpinnerMinMs pattern.
33
-
34
- z-[120] sits above the navbar (z-[110]) and above toasts (z-60).
7
+ window.StudioModals.holdAtLeast(ms) helper. See the gem README for
8
+ the consumer integration example and API reference; documentation
9
+ intentionally kept brief here.
35
10
  %>
36
11
  <style>
37
12
  /* Scroll lock applied by $store.modals._sync() when the stack is non-empty.
@@ -1,3 +1,3 @@
1
1
  module Studio
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: studio-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex McRitchie