pop_frame 0.1.0 → 0.1.1
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 +6 -0
- data/README.md +16 -4
- data/lib/pop_frame/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: 5801ad65b7512046769d2a716b26c0ec4b9ec0f6bd4c18e34ed645cf4d6658ad
|
|
4
|
+
data.tar.gz: 2c133e2a649a81a81b0b315b6829e1bd9bc73bfaf3fdc78cd1502b2a0908f4c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 764c79dd5cd9cff34669703a8244618c95418afb3b463c11b4b81b94ad046b78f2b1b707ba1aa1614ee0bb495585bfe266f8b41d496899ca6134b6cc980dbab0
|
|
7
|
+
data.tar.gz: 360ebb68c10b264c7a01fbf7d003f634a1607d3673e2e1c3a9ac2cdc30d1d819b54141a91e8e9640acfafb1e9f926bc12a9ac3f8a1428faf309fe1b4e0ba8600
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v0.1.1] Oct 12, 2026
|
|
4
|
+
|
|
5
|
+
- Add browser support details to the README (#1)
|
|
6
|
+
- Use the shared release workflow from RoleModel/actions (#2)
|
|
7
|
+
|
|
3
8
|
## [v0.1.0] Oct 9, 2026
|
|
4
9
|
|
|
5
10
|
- `pop_frame_tag(id, src) { trigger }` renders a button that opens a native popover holding a Turbo
|
|
@@ -7,4 +12,5 @@
|
|
|
7
12
|
reloads in place on a morph refresh, staying open. `pop_frame.css` anchors the popover to its
|
|
8
13
|
button.
|
|
9
14
|
|
|
15
|
+
[v0.1.1]: https://github.com/RoleModel/pop-frame/releases/tag/v0.1.1
|
|
10
16
|
[v0.1.0]: https://github.com/RoleModel/pop-frame/releases/tag/v0.1.0
|
data/README.md
CHANGED
|
@@ -121,9 +121,18 @@ page (or a broadcast) morphs it:
|
|
|
121
121
|
|
|
122
122
|
## Browser Support
|
|
123
123
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
Pop Frame leans on two browser features. Each one has its own [Baseline][baseline] status:
|
|
125
|
+
|
|
126
|
+
| Feature | Needs | Chrome / Edge | Safari | Firefox | Baseline |
|
|
127
|
+
| ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | ------------- | ------ | ------- | -------------------------------------------------------------- |
|
|
128
|
+
| Opens and closes, sits in the top layer, closes on Escape/outside click | [Popover API][mdn-popover] | 114 | 17 | 125 | Newly available Jan 2025; widely available around Jul 2027 |
|
|
129
|
+
| Anchored under its button, flips to fit | [CSS anchor positioning][mdn-anchor] ([`position-area`][mdn-position-area], [`position-try-fallbacks`][mdn-position-try]) | 129 | 26 | 147 | Newly available Jan 2026; widely available around Jul 2028 |
|
|
130
|
+
|
|
131
|
+
Browsers with the Popover API but no anchor positioning still open the popover, just centered on the
|
|
132
|
+
screen by the browser's default popover styles.
|
|
133
|
+
|
|
134
|
+
- **Full experience:** Chrome 129, Edge 129, Safari 26 (macOS and iOS), Firefox 147
|
|
135
|
+
- **Popover only, centered:** Chrome 114, Edge 114, Safari 17, Firefox 125
|
|
127
136
|
|
|
128
137
|
Opening a popover from your own JavaScript with `showPopover()` leaves it with nothing to anchor to.
|
|
129
138
|
Pass the button as its source, `popover.showPopover({ source: button })`, to keep it in place.
|
|
@@ -150,7 +159,7 @@ Lint with `bin/rubocop`.
|
|
|
150
159
|
Run the dummy app's server on port 3000 with `bin/dev` (set `PORT` to change it). It's a page of
|
|
151
160
|
popovers to try by hand.
|
|
152
161
|
|
|
153
|
-
Releases are cut from the **
|
|
162
|
+
Releases are cut from the **Release** workflow in the Actions tab. It takes the version bump and
|
|
154
163
|
a changelog entry, then tags the release, publishes it on GitHub, and pushes the gem to RubyGems.
|
|
155
164
|
|
|
156
165
|
## Acknowledgments
|
|
@@ -163,6 +172,9 @@ a changelog entry, then tags the release, publishes it on GitHub, and pushes the
|
|
|
163
172
|
[mdn-popover]: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API
|
|
164
173
|
[mdn-top-layer]: https://developer.mozilla.org/en-US/docs/Glossary/Top_layer
|
|
165
174
|
[mdn-anchor]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_anchor_positioning
|
|
175
|
+
[mdn-position-area]: https://developer.mozilla.org/en-US/docs/Web/CSS/position-area
|
|
176
|
+
[mdn-position-try]: https://developer.mozilla.org/en-US/docs/Web/CSS/position-try-fallbacks
|
|
177
|
+
[baseline]: https://web.dev/baseline
|
|
166
178
|
[url-for]: https://api.rubyonrails.org/classes/ActionView/RoutingUrlFor.html#method-i-url_for
|
|
167
179
|
[turbo-morph]: https://turbo.hotwired.dev/handbook/page_refreshes
|
|
168
180
|
[Cuprite]: https://github.com/rubycdp/cuprite
|
data/lib/pop_frame/version.rb
CHANGED