openproject-primer_view_components 0.89.2 → 0.90.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 (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -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.css.map +1 -1
  8. data/app/components/primer/alpha/action_bar.pcss +0 -3
  9. data/app/components/primer/alpha/action_list.css.map +1 -1
  10. data/app/components/primer/alpha/action_list.pcss +0 -2
  11. data/app/components/primer/alpha/auto_complete.css +1 -1
  12. data/app/components/primer/alpha/auto_complete.css.json +2 -4
  13. data/app/components/primer/alpha/auto_complete.css.map +1 -1
  14. data/app/components/primer/alpha/auto_complete.pcss +3 -10
  15. data/app/components/primer/alpha/banner.css.map +1 -1
  16. data/app/components/primer/alpha/banner.pcss +0 -1
  17. data/app/components/primer/alpha/button_marketing.css.map +1 -1
  18. data/app/components/primer/alpha/button_marketing.pcss +4 -4
  19. data/app/components/primer/alpha/layout.css +1 -1
  20. data/app/components/primer/alpha/layout.css.map +1 -1
  21. data/app/components/primer/alpha/layout.pcss +3 -1
  22. data/app/components/primer/alpha/menu.css.map +1 -1
  23. data/app/components/primer/alpha/menu.pcss +0 -6
  24. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  25. data/app/components/primer/alpha/segmented_control.pcss +0 -2
  26. data/app/components/primer/alpha/tab_nav.css.map +1 -1
  27. data/app/components/primer/alpha/tab_nav.pcss +0 -5
  28. data/app/components/primer/alpha/text_field.css +1 -1
  29. data/app/components/primer/alpha/text_field.css.json +2 -1
  30. data/app/components/primer/alpha/text_field.css.map +1 -1
  31. data/app/components/primer/alpha/text_field.pcss +14 -7
  32. data/app/components/primer/alpha/toggle_switch.css +1 -1
  33. data/app/components/primer/alpha/toggle_switch.css.map +1 -1
  34. data/app/components/primer/alpha/toggle_switch.pcss +8 -6
  35. data/app/components/primer/alpha/tree_view.css.map +1 -1
  36. data/app/components/primer/alpha/tree_view.pcss +1 -0
  37. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  38. data/app/components/primer/alpha/underline_nav.pcss +0 -3
  39. data/app/components/primer/base_component.rb +1 -0
  40. data/app/components/primer/beta/blankslate.css +1 -1
  41. data/app/components/primer/beta/blankslate.css.map +1 -1
  42. data/app/components/primer/beta/blankslate.pcss +2 -53
  43. data/app/components/primer/beta/breadcrumbs.css +1 -1
  44. data/app/components/primer/beta/breadcrumbs.css.json +2 -1
  45. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  46. data/app/components/primer/beta/breadcrumbs.pcss +6 -5
  47. data/app/components/primer/beta/button.css.map +1 -1
  48. data/app/components/primer/beta/button.pcss +0 -1
  49. data/app/components/primer/beta/popover.css +1 -1
  50. data/app/components/primer/beta/popover.css.json +22 -16
  51. data/app/components/primer/beta/popover.css.map +1 -1
  52. data/app/components/primer/beta/popover.pcss +132 -101
  53. data/app/components/primer/beta/state.css.map +1 -1
  54. data/app/components/primer/beta/state.pcss +0 -1
  55. data/app/components/primer/beta/subhead.css.map +1 -1
  56. data/app/components/primer/beta/subhead.pcss +0 -2
  57. data/app/components/primer/beta/timeline_item.css.map +1 -1
  58. data/app/components/primer/beta/timeline_item.pcss +0 -5
  59. data/app/components/primer/beta/truncate.css.map +1 -1
  60. data/app/components/primer/beta/truncate.pcss +0 -1
  61. data/app/components/primer/component.rb +16 -0
  62. data/app/components/primer/open_project/border_box/collapsible_header.css.map +1 -1
  63. data/app/components/primer/open_project/border_box/collapsible_header.html.erb +1 -1
  64. data/app/components/primer/open_project/border_box/collapsible_header.pcss +3 -1
  65. data/app/components/primer/open_project/border_box/collapsible_header.rb +10 -9
  66. data/app/components/primer/open_project/border_grid.css +1 -1
  67. data/app/components/primer/open_project/border_grid.css.map +1 -1
  68. data/app/components/primer/open_project/border_grid.pcss +11 -9
  69. data/app/components/primer/open_project/collapsible.d.ts +1 -1
  70. data/app/components/primer/open_project/collapsible.js +8 -4
  71. data/app/components/primer/open_project/collapsible.ts +10 -4
  72. data/app/components/primer/open_project/collapsible_section.html.erb +6 -10
  73. data/app/components/primer/open_project/collapsible_section.rb +8 -0
  74. data/app/components/primer/open_project/filterable_tree_view.css.map +1 -1
  75. data/app/components/primer/open_project/filterable_tree_view.pcss +2 -0
  76. data/app/components/primer/open_project/page_header.css.map +1 -1
  77. data/app/components/primer/open_project/page_header.pcss +2 -0
  78. data/app/components/primer/open_project/pagination.css +1 -1
  79. data/app/components/primer/open_project/pagination.css.map +1 -1
  80. data/app/components/primer/open_project/pagination.pcss +4 -1
  81. data/app/components/primer/open_project/side_panel/section.css +1 -1
  82. data/app/components/primer/open_project/side_panel/section.css.map +1 -1
  83. data/app/components/primer/open_project/side_panel/section.pcss +3 -3
  84. data/app/lib/primer/forms/dsl/input.rb +5 -1
  85. data/app/lib/primer/safe_href_helper.rb +36 -0
  86. data/lib/primer/static/generate_previews.rb +1 -1
  87. data/lib/primer/view_components/version.rb +2 -2
  88. data/previews/primer/open_project/collapsible_section_preview/with_link_in_title.html.erb +6 -0
  89. data/previews/primer/open_project/collapsible_section_preview.rb +9 -0
  90. data/static/classes.json +21 -0
  91. data/static/classnames.cjs +507 -0
  92. data/static/classnames.d.ts +2 -0
  93. data/static/classnames.js +509 -0
  94. data/static/info_arch.json +13 -0
  95. data/static/previews.json +2425 -2412
  96. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0dce903b102811a7904bf39bde88aa92cbcbe136939e68c70b381cb75dcc69b3
4
- data.tar.gz: ea119d977bd23d82411631683131c12e4d5fa9ecfcb3c240d761ec1a303deb0f
3
+ metadata.gz: 2ef0f7482a2f05830e52f6bf79c82a255a5f93a6e0633254ef227cc0d9dac286
4
+ data.tar.gz: 97754d52c0c02941f138b71b1ca91a7de5e0fc62231984e488dc2ce06eed5695
5
5
  SHA512:
6
- metadata.gz: 7fc840f73a2fbe9273d1f12c704a48bad22d5ab5eeed741c43102ab624559d0a637691ec498b17973ecf579989eb8cfac963ac57edfa0504b865594c84dd467e
7
- data.tar.gz: 4167eb5b1c257932d82419eb1adc3f37f4bb17e287abf95e13e1795f5f6891d3adef374fa395876ec8f7585f1469910cb3bc826543e7fc39a5452ad3674039f9
6
+ metadata.gz: '08227413c52a33a55b8bb8cffd1796a77a5ad8b532aa46ce5eeab6fefc0811b1eae0be865c91e4201b63eeb55a3115cf9ef85f83d7fc15c15e51bf9d49c32e06'
7
+ data.tar.gz: a1298136e10b35f585cc468e020282cd7e3c2efe0578f10ff5700faa7adc6ce828113e9d3b7a162c3d7f7e19bb38a325961f31b2645f13bb059a6e3f2cd4d3ff
data/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.90.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#504](https://github.com/opf/primer_view_components/pull/504) [`b0ffd4a`](https://github.com/opf/primer_view_components/commit/b0ffd4ad1afb2c6ca16910c093e46ca8e7faf7f2) Thanks [@myabc](https://github.com/myabc)! - Fix stylelint violations across component pcss
8
+
9
+ ## 0.90.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#4110](https://github.com/primer/view_components/pull/4110) [`bf92d87`](https://github.com/opf/primer_view_components/commit/bf92d870743b8d683867e376379e67ebc79220cc) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - `Blankslate`: The heading and body text now use the smaller compact sizes by default, and the redundant responsive `@container` block has been removed since the compact typography it produced is now the default
14
+
15
+ - [#4096](https://github.com/primer/view_components/pull/4096) [`3ba48a2`](https://github.com/opf/primer_view_components/commit/3ba48a24494e2bb2bb4ed1aff5c612b55c237980) Thanks [@jonrohan](https://github.com/jonrohan)! - Add `static/classnames.js`, which default-exports a `Set` of every unique CSS class name in the library for consumers and tooling. It is available via the `@openproject/primer-view-components/classnames` import subpath.
16
+
17
+ ### Patch Changes
18
+
19
+ - [#3696](https://github.com/primer/view_components/pull/3696) [`8b8d542`](https://github.com/opf/primer_view_components/commit/8b8d54286d10f90b52030e9100f27f401121fe1f) Thanks [@myabc](https://github.com/myabc)! - Fix incorrect label `for` attribute value when `scope_id_to_model: false`
20
+
21
+ - [#508](https://github.com/opf/primer_view_components/pull/508) [`f5dc269`](https://github.com/opf/primer_view_components/commit/f5dc269e370a19c85f64f6e153e1393a25f2b3fd) Thanks [@myabc](https://github.com/myabc)! - Sort `static/previews.json` entries by `lookup_path` so the output order is deterministic across platforms, instead of following `Lookbook.previews`' filesystem glob order (which differs between macOS and Linux for previews sharing the same name across statuses, e.g. `beta/heading` and `open_project/heading`).
22
+
23
+ - [#4133](https://github.com/primer/view_components/pull/4133) [`0098814`](https://github.com/opf/primer_view_components/commit/009881433982689358d9b1de31ba74b74b2aa922) Thanks [@jonrohan](https://github.com/jonrohan)! - Downgrade `@oddbird/popover-polyfill` to `^0.5.2` and pin it via Dependabot ignore so it won't get bumped again.
24
+
25
+ - [#4095](https://github.com/primer/view_components/pull/4095) [`6733f3c`](https://github.com/opf/primer_view_components/commit/6733f3c0e902523dd23e5b94d3cd8fab7443aea2) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Improve CSS style-recalc performance by removing selectors with universal subjects and expanding merged `:is()` selector lists so the browser can fast-reject them. Affects `autocomplete-item`, `Popover-message--*`, `breadcrumb-item`, and `FormControl-checkbox-wrap`/`FormControl-radio-wrap` styles.
26
+
27
+ - [#501](https://github.com/opf/primer_view_components/pull/501) [`de5c8cf`](https://github.com/opf/primer_view_components/commit/de5c8cf4816414382d0f94393407f7e2bd6bfc3c) Thanks [@HDinger](https://github.com/HDinger)! - Links in collapsible areas do not trigger collapse anymore
28
+
29
+ - [#4113](https://github.com/primer/view_components/pull/4113) [`7c52375`](https://github.com/opf/primer_view_components/commit/7c523756a4edf46ce490da48c74f2c35ffb57f79) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - Reject `javascript:` and `vbscript:` URI schemes in `href` (defense in depth). When a component (e.g. `Primer::Beta::Label`, `Primer::Beta::Button`, `Primer::Beta::Link`) is rendered as an anchor with an unsafe `href`, the value is now rejected — raising in non-production environments and silently dropped (rendered as an anchor with no `href`) in production.
30
+
31
+ - [#4101](https://github.com/primer/view_components/pull/4101) [`ad81c6d`](https://github.com/opf/primer_view_components/commit/ad81c6d39dc7e9f413fd41098e4d983e4792167f) Thanks [@jonrohan](https://github.com/jonrohan)! - Update package.json import paths for app files
32
+
33
+ - [#4099](https://github.com/primer/view_components/pull/4099) [`91c1e26`](https://github.com/opf/primer_view_components/commit/91c1e261ae3a279feb1b9a2dac8975cf1c595c65) Thanks [@jonrohan](https://github.com/jonrohan)! - Add path mapping for app directory in package.json
34
+
35
+ - [#4107](https://github.com/primer/view_components/pull/4107) [`222a846`](https://github.com/opf/primer_view_components/commit/222a846247905892afd0f26c4410924a6450647d) Thanks [@dylanatsmith](https://github.com/dylanatsmith)! - Fix `ToggleSwitch` knob spacing and border-radius to match `primer/react`
36
+
3
37
  ## 0.89.2
4
38
 
5
39
  ### Patch Changes