primer_view_components 0.51.0 → 0.51.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 +20 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_bar_element.js +67 -76
- data/app/components/primer/alpha/action_bar_element.ts +47 -69
- data/app/components/primer/alpha/action_menu.rb +3 -0
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.json +2 -1
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +12 -0
- data/app/components/primer/alpha/overlay.rb +14 -1
- data/app/components/primer/alpha/tool_tip.js +1 -1
- data/app/components/primer/alpha/tool_tip.ts +1 -1
- data/app/components/primer/beta/auto_complete/no_result_item.rb +23 -13
- data/app/components/primer/dialog_helper.js +7 -1
- data/app/components/primer/dialog_helper.ts +7 -4
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/action_menu_preview.rb +32 -1
- data/previews/primer/beta/truncate_preview/advanced_multiple_items.html.erb +32 -0
- data/previews/primer/beta/truncate_preview/max_widths.html.erb +22 -0
- data/previews/primer/beta/truncate_preview/multiple_items.html.erb +14 -0
- data/previews/primer/beta/truncate_preview.rb +3 -26
- data/static/arguments.json +20 -1
- data/static/classes.json +3 -0
- data/static/constants.json +15 -0
- data/static/info_arch.json +51 -56
- data/static/previews.json +13 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 786b13ef554f1630043b8526d9e1a51f8e9ae7ba84aee5c7c82129dbc2b3e8a0
|
|
4
|
+
data.tar.gz: a98080e9bd0384c6f3ea0c0f2b194305d4fb73761e60a611d0ca7e1851e134ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9904f0ab6c6a7cd63cc246abae60c888714157c8895fbadae81332ca68d64e6b3f0644a6d72c4cbca0c82fabf4ca3111f6165a0c1caf7f0c0608422d4dbcdc1b
|
|
7
|
+
data.tar.gz: 6e51bc0e4c6d3611410173c1cc8788568f7d4cb58506bbefd46ab45b4062b1dda1ca4e56f32224f5138fd975e3b192665b8f6872e0871773e341d6c8a8254669
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.51.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3952](https://github.com/primer/view_components/pull/3952) [`02c89a5`](https://github.com/primer/view_components/commit/02c89a5ddcf029c252ea6f1b51e5e12cfe71f891) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Performance improvements to `ActionBarElement`:
|
|
8
|
+
- Replaced the `#eachItem` / `ItemType` abstraction with a two-pass read-then-write loop that snapshots all element geometry before mutating the DOM, eliminating forced synchronous reflow.
|
|
9
|
+
- Cached the `#menuItems` `NodeListOf` query across each update pass instead of re-querying per item.
|
|
10
|
+
- Simplified `#firstItem` to a one-liner using `Array.find`.
|
|
11
|
+
- Coalesces rapid resize/intersection events via `requestAnimationFrame` so at most one layout pass runs per frame.
|
|
12
|
+
- `update()` remains the public entry point (coalescing scheduler); actual layout work is in the private `#performUpdate()`.
|
|
13
|
+
- `overflow: visible` is always applied in `connectedCallback` (no popover feature-detection gate), preserving the original behavior for CSS/tooltip positioning.
|
|
14
|
+
|
|
15
|
+
- [#3950](https://github.com/primer/view_components/pull/3950) [`ca926de`](https://github.com/primer/view_components/commit/ca926de90555a130cbc8dc1b427261417759bfd7) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Defer `--dialog-scrollgutter` computation in `DialogHelperElement` to the moment a dialog is first opened, avoiding a forced synchronous layout reflow during page load.
|
|
16
|
+
|
|
17
|
+
- [#3955](https://github.com/primer/view_components/pull/3955) [`ed8bf4a`](https://github.com/primer/view_components/commit/ed8bf4a6e8198473e3e3b004eb36256504b80035) Thanks [@TylerJDev](https://github.com/TylerJDev)! - ActionMenu: Add fullscreen option to ActionMenu
|
|
18
|
+
|
|
19
|
+
- [#3961](https://github.com/primer/view_components/pull/3961) [`16a2d75`](https://github.com/primer/view_components/commit/16a2d7547f9a527248fa303a21303a0df3d71ddd) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Tooltip: Fix tooltip overflow on narrow viewports by capping max-width to viewport width.
|
|
20
|
+
|
|
21
|
+
- [#3957](https://github.com/primer/view_components/pull/3957) [`3baaad2`](https://github.com/primer/view_components/commit/3baaad2b69e973988a611eb2fa14e57c7057afb2) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(AutoComplete): fix NoResultItem contrast ratio
|
|
22
|
+
|
|
3
23
|
## 0.51.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|