openproject-primer_view_components 0.82.1 → 0.83.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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/action_bar_element.js +68 -77
  8. data/app/components/primer/alpha/action_bar_element.ts +48 -70
  9. data/app/components/primer/alpha/action_list.js +1 -1
  10. data/app/components/primer/alpha/action_list.ts +1 -1
  11. data/app/components/primer/alpha/action_menu/action_menu_element.js +1 -1
  12. data/app/components/primer/alpha/action_menu/action_menu_element.ts +1 -1
  13. data/app/components/primer/alpha/action_menu/menu.rb +5 -1
  14. data/app/components/primer/alpha/action_menu/primary_menu.rb +4 -0
  15. data/app/components/primer/alpha/action_menu/sub_menu.rb +4 -0
  16. data/app/components/primer/alpha/banner.css +1 -1
  17. data/app/components/primer/alpha/banner.css.json +0 -1
  18. data/app/components/primer/alpha/banner.css.map +1 -1
  19. data/app/components/primer/alpha/banner.pcss +1 -5
  20. data/app/components/primer/alpha/dialog.css +1 -1
  21. data/app/components/primer/alpha/dialog.css.json +2 -1
  22. data/app/components/primer/alpha/dialog.css.map +1 -1
  23. data/app/components/primer/alpha/dialog.pcss +12 -0
  24. data/app/components/primer/alpha/layout.rb +6 -2
  25. data/app/components/primer/alpha/overlay.rb +14 -1
  26. data/app/components/primer/alpha/segmented_control.js +1 -1
  27. data/app/components/primer/alpha/segmented_control.ts +1 -1
  28. data/app/components/primer/alpha/select_panel_element.js +3 -1
  29. data/app/components/primer/alpha/select_panel_element.ts +4 -1
  30. data/app/components/primer/alpha/toggle_switch.js +1 -1
  31. data/app/components/primer/alpha/toggle_switch.rb +3 -0
  32. data/app/components/primer/alpha/toggle_switch.ts +1 -1
  33. data/app/components/primer/alpha/tool_tip.js +1 -1
  34. data/app/components/primer/alpha/tool_tip.ts +1 -1
  35. data/app/components/primer/alpha/tree_view/tree_view.js +1 -1
  36. data/app/components/primer/alpha/tree_view/tree_view.ts +1 -1
  37. data/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.js +1 -1
  38. data/app/components/primer/alpha/tree_view/tree_view_icon_pair_element.ts +1 -1
  39. data/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.js +1 -1
  40. data/app/components/primer/alpha/tree_view/tree_view_include_fragment_element.ts +1 -1
  41. data/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.js +25 -2
  42. data/app/components/primer/alpha/tree_view/tree_view_sub_tree_node_element.ts +27 -1
  43. data/app/components/primer/alpha/x_banner.js +1 -1
  44. data/app/components/primer/alpha/x_banner.ts +1 -1
  45. data/app/components/primer/beta/auto_complete/no_result_item.rb +23 -13
  46. data/app/components/primer/beta/blankslate.css +1 -1
  47. data/app/components/primer/beta/blankslate.css.json +1 -0
  48. data/app/components/primer/beta/blankslate.css.map +1 -1
  49. data/app/components/primer/beta/blankslate.pcss +5 -0
  50. data/app/components/primer/beta/blankslate.rb +1 -0
  51. data/app/components/primer/beta/details_toggle_element.js +1 -1
  52. data/app/components/primer/beta/details_toggle_element.ts +1 -1
  53. data/app/components/primer/beta/nav_list.js +1 -1
  54. data/app/components/primer/beta/nav_list.ts +1 -1
  55. data/app/components/primer/beta/nav_list_group_element.js +1 -1
  56. data/app/components/primer/beta/nav_list_group_element.ts +1 -1
  57. data/app/components/primer/dialog_helper.js +24 -9
  58. data/app/components/primer/dialog_helper.ts +24 -12
  59. data/app/components/primer/scrollable_region.js +1 -1
  60. data/app/components/primer/scrollable_region.ts +1 -1
  61. data/app/lib/primer/forms/primer_multi_input.js +1 -1
  62. data/app/lib/primer/forms/primer_multi_input.ts +1 -1
  63. data/app/lib/primer/forms/primer_text_area.js +1 -1
  64. data/app/lib/primer/forms/primer_text_area.ts +1 -1
  65. data/app/lib/primer/forms/primer_text_field.js +1 -1
  66. data/app/lib/primer/forms/primer_text_field.ts +1 -1
  67. data/app/lib/primer/forms/toggle_switch_input.js +1 -1
  68. data/app/lib/primer/forms/toggle_switch_input.ts +1 -1
  69. data/lib/primer/view_components/version.rb +1 -1
  70. data/previews/primer/alpha/action_menu_preview/sub_menus.html.erb +2 -2
  71. data/previews/primer/alpha/action_menu_preview.rb +35 -1
  72. data/previews/primer/beta/button_preview/summary_as_button.html.erb +0 -1
  73. data/previews/primer/beta/truncate_preview/advanced_multiple_items.html.erb +32 -0
  74. data/previews/primer/beta/truncate_preview/max_widths.html.erb +22 -0
  75. data/previews/primer/beta/truncate_preview/multiple_items.html.erb +14 -0
  76. data/previews/primer/beta/truncate_preview.rb +3 -26
  77. data/static/arguments.json +38 -1
  78. data/static/classes.json +3 -0
  79. data/static/constants.json +17 -0
  80. data/static/info_arch.json +77 -58
  81. data/static/previews.json +13 -0
  82. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9dd4c54817c82ee59983fbaab3c7aa8af717d8ad80cba8ff1b3ae758ad00177
4
- data.tar.gz: bccd643db8bd0aca42577f2608d08a23aaeb63de26f56ae388aa14bdc2fd58c6
3
+ metadata.gz: c793af5ea00a97f9323cc2cd227efbf19b048ffbd32b8aeef3c7ae6fa813d1ee
4
+ data.tar.gz: dd3e38bc42786f11cf64c368a634ebef694bc2b559992f64dc363ff4947bd6bf
5
5
  SHA512:
6
- metadata.gz: ff9a343816b3b35cfedcae80d7734dbe1192395159f6b339435e5c591b96ebb44a77bcbc9250363767b6cd551f08b6aa6c874905d631c956509c00c115ac1bbb
7
- data.tar.gz: a0ee32926c50378c595af4f693d148f3762cab820a0262c2334145d12ba7902a2c9e3eb59138d3fd48a5a34966634ba4add428dcbdc0514e616b4f70c0b49f59
6
+ metadata.gz: 794f5c2f5f44003bd0df0a36150db104ad29a4752bb422588fb9c080b3c02db0028ee5c37378cb5cc998cef040bb4deb98fe477ead0812cff22ca548ffa6ef0d
7
+ data.tar.gz: 533152bb36e753d1121486d22e694e75a8418924363a479e6a6d969932094cd8c36a11bf33b0179bc0b651c9bc851ea04cd9ae2d9dd0bf3dc119e1325f10c0f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.83.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#428](https://github.com/opf/primer_view_components/pull/428) [`cba7775`](https://github.com/opf/primer_view_components/commit/cba7775e683ed17abd5f6996127f7401ee9535b8) Thanks [@HDinger](https://github.com/HDinger)! - Revert changes to Banner component for better mobile responsiveness
8
+
9
+ ## 0.83.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#3938](https://github.com/primer/view_components/pull/3938) [`b7f61e2`](https://github.com/opf/primer_view_components/commit/b7f61e2a2403bf714e0f34975cb83174e5a8b517) Thanks [@acbreton](https://github.com/acbreton)! - Change `ToggleSwitch` ViewComponent `type` to `button`
14
+
15
+ ### Patch Changes
16
+
17
+ - [#3952](https://github.com/primer/view_components/pull/3952) [`02c89a5`](https://github.com/opf/primer_view_components/commit/02c89a5ddcf029c252ea6f1b51e5e12cfe71f891) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Performance improvements to `ActionBarElement`:
18
+ - 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.
19
+ - Cached the `#menuItems` `NodeListOf` query across each update pass instead of re-querying per item.
20
+ - Simplified `#firstItem` to a one-liner using `Array.find`.
21
+ - Coalesces rapid resize/intersection events via `requestAnimationFrame` so at most one layout pass runs per frame.
22
+ - `update()` remains the public entry point (coalescing scheduler); actual layout work is in the private `#performUpdate()`.
23
+ - `overflow: visible` is always applied in `connectedCallback` (no popover feature-detection gate), preserving the original behavior for CSS/tooltip positioning.
24
+
25
+ - [#3945](https://github.com/primer/view_components/pull/3945) [`983cc29`](https://github.com/opf/primer_view_components/commit/983cc290b199169181545a5518459640c2c212cf) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Blankslate: Add `text-wrap: balance` to heading and description
26
+
27
+ - [#3950](https://github.com/primer/view_components/pull/3950) [`ca926de`](https://github.com/opf/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.
28
+
29
+ - [#3955](https://github.com/primer/view_components/pull/3955) [`ed8bf4a`](https://github.com/opf/primer_view_components/commit/ed8bf4a6e8198473e3e3b004eb36256504b80035) Thanks [@TylerJDev](https://github.com/TylerJDev)! - ActionMenu: Add fullscreen option to ActionMenu
30
+
31
+ - [#3912](https://github.com/primer/view_components/pull/3912) [`1597a74`](https://github.com/opf/primer_view_components/commit/1597a742f693963db74f62721688bdc254d81ad1) Thanks [@llastflowers](https://github.com/llastflowers)! - Remove newline in file to revert accidental visual regression of Button
32
+
33
+ - [#3961](https://github.com/primer/view_components/pull/3961) [`16a2d75`](https://github.com/opf/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.
34
+
35
+ - [#3940](https://github.com/primer/view_components/pull/3940) [`b585532`](https://github.com/opf/primer_view_components/commit/b5855325cfac72e9ce34ad88a7c0e1b1c14bcb94) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Dialog: Fixes issue in `dialog_helper.ts` where focus could be lost
36
+
37
+ - [#3894](https://github.com/primer/view_components/pull/3894) [`4ddf815`](https://github.com/opf/primer_view_components/commit/4ddf815475c5da1c588f12a024c48defc621a719) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(treeview): add treeitem role to shadow dom node
38
+
39
+ - [#3919](https://github.com/primer/view_components/pull/3919) [`e060f4d`](https://github.com/opf/primer_view_components/commit/e060f4da7cf02d88477f9791fd1ed778b51dfa43) Thanks [@francinelucca](https://github.com/francinelucca)! - Chore: add custom "invokerClicked" selectpanel event
40
+
41
+ - [#3957](https://github.com/primer/view_components/pull/3957) [`3baaad2`](https://github.com/opf/primer_view_components/commit/3baaad2b69e973988a611eb2fa14e57c7057afb2) Thanks [@francinelucca](https://github.com/francinelucca)! - chore(AutoComplete): fix NoResultItem contrast ratio
42
+
43
+ - [#3930](https://github.com/primer/view_components/pull/3930) [`0ebf631`](https://github.com/opf/primer_view_components/commit/0ebf631648bb4e0a6ccdce2437fa91290636301c) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Update Catalyst to version 1.8.0 and hard-code controller/custom-element names via their @controller('...') decorators to allow for better minification
44
+
3
45
  ## 0.82.1
4
46
 
5
47
  ### Patch Changes