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 +4 -4
- data/CHANGELOG.md +8 -1
- data/app/views/studio/modals/_host.html.erb +6 -31
- data/lib/studio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f8c3f3f0fc28618c7548ed3cc81722c97c9d0ec8aa2b2e80c8b66a659b12d31
|
|
4
|
+
data.tar.gz: 80d1c6c2caf077f2134155386ee0e239e7c110dad60aa5309b4f73de3c4941d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
2
|
+
Modal host. Single shared shell for any modal that opens through
|
|
3
3
|
Alpine.store('modals'). Owns the backdrop, scroll lock (via
|
|
4
|
-
|
|
5
|
-
ARIA dialog role. Bundles the scroll-lock CSS, bfcache
|
|
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
|
-
|
|
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.
|
data/lib/studio/version.rb
CHANGED