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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c97cbc621cda0a6f45a67e3eefd506adc5a5f3afa77d8f772b046e47a9eeb6f5
4
- data.tar.gz: f897c73e4d3d9dc7a56bbe31456d6c3ef9794fbd9908ad2fb1c011f809b04419
3
+ metadata.gz: 5801ad65b7512046769d2a716b26c0ec4b9ec0f6bd4c18e34ed645cf4d6658ad
4
+ data.tar.gz: 2c133e2a649a81a81b0b315b6829e1bd9bc73bfaf3fdc78cd1502b2a0908f4c2
5
5
  SHA512:
6
- metadata.gz: 3cc96e33d4d42113337b7e158f67a6069c076bcd382f780bed30be103457e26709ad636baa80c73b67dd4856138c17a7a826dd0e87d3ea37a6231f7b2746d245
7
- data.tar.gz: 16a5bdd0e5e4c0f8c470bda16dbfc10f1c3e4f7a33a51d3337ffd1adaf3dd33152f9a108b70c407d7387e5f44b90444baaed7d3b6cd1b607517d9d31f3e998c5
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
- The popover itself works anywhere the Popover API does (Baseline 2024). Positioning it under its
125
- button needs CSS anchor positioning: Chrome 125, Safari 26, Firefox 147. Older browsers still open
126
- the popover, just centered on the screen by the browser's default popover styles.
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 **Bump Version** workflow in the Actions tab. It takes the version bump and
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
@@ -1,3 +1,3 @@
1
1
  module PopFrame
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pop_frame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Cohen