openproject-primer_view_components 0.89.2 → 0.91.0

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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -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/sub_tree_node.rb +2 -2
  36. data/app/components/primer/alpha/tree_view.css.map +1 -1
  37. data/app/components/primer/alpha/tree_view.pcss +1 -0
  38. data/app/components/primer/alpha/underline_nav.css.map +1 -1
  39. data/app/components/primer/alpha/underline_nav.pcss +0 -3
  40. data/app/components/primer/base_component.rb +1 -0
  41. data/app/components/primer/beta/blankslate.css +1 -1
  42. data/app/components/primer/beta/blankslate.css.map +1 -1
  43. data/app/components/primer/beta/blankslate.pcss +2 -53
  44. data/app/components/primer/beta/breadcrumbs.css +1 -1
  45. data/app/components/primer/beta/breadcrumbs.css.json +2 -1
  46. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  47. data/app/components/primer/beta/breadcrumbs.pcss +6 -5
  48. data/app/components/primer/beta/button.css.map +1 -1
  49. data/app/components/primer/beta/button.pcss +0 -1
  50. data/app/components/primer/beta/popover.css +1 -1
  51. data/app/components/primer/beta/popover.css.json +22 -16
  52. data/app/components/primer/beta/popover.css.map +1 -1
  53. data/app/components/primer/beta/popover.pcss +132 -101
  54. data/app/components/primer/beta/state.css.map +1 -1
  55. data/app/components/primer/beta/state.pcss +0 -1
  56. data/app/components/primer/beta/subhead.css.map +1 -1
  57. data/app/components/primer/beta/subhead.pcss +0 -2
  58. data/app/components/primer/beta/timeline_item.css.map +1 -1
  59. data/app/components/primer/beta/timeline_item.pcss +0 -5
  60. data/app/components/primer/beta/truncate.css.map +1 -1
  61. data/app/components/primer/beta/truncate.pcss +0 -1
  62. data/app/components/primer/component.rb +16 -0
  63. data/app/components/primer/open_project/border_box/collapsible_header.css.map +1 -1
  64. data/app/components/primer/open_project/border_box/collapsible_header.html.erb +1 -1
  65. data/app/components/primer/open_project/border_box/collapsible_header.pcss +3 -1
  66. data/app/components/primer/open_project/border_box/collapsible_header.rb +10 -9
  67. data/app/components/primer/open_project/border_grid.css +1 -1
  68. data/app/components/primer/open_project/border_grid.css.map +1 -1
  69. data/app/components/primer/open_project/border_grid.pcss +11 -9
  70. data/app/components/primer/open_project/collapsible.d.ts +1 -1
  71. data/app/components/primer/open_project/collapsible.js +8 -4
  72. data/app/components/primer/open_project/collapsible.ts +10 -4
  73. data/app/components/primer/open_project/collapsible_section.html.erb +6 -10
  74. data/app/components/primer/open_project/collapsible_section.rb +8 -0
  75. data/app/components/primer/open_project/filterable_tree_view.css.map +1 -1
  76. data/app/components/primer/open_project/filterable_tree_view.pcss +2 -0
  77. data/app/components/primer/open_project/page_header.css.map +1 -1
  78. data/app/components/primer/open_project/page_header.pcss +2 -0
  79. data/app/components/primer/open_project/pagination.css +1 -1
  80. data/app/components/primer/open_project/pagination.css.map +1 -1
  81. data/app/components/primer/open_project/pagination.pcss +4 -1
  82. data/app/components/primer/open_project/side_panel/section.css +1 -1
  83. data/app/components/primer/open_project/side_panel/section.css.map +1 -1
  84. data/app/components/primer/open_project/side_panel/section.pcss +3 -3
  85. data/app/controllers/primer/view_components/tree_view_items_controller.rb +2 -1
  86. data/app/lib/primer/forms/dsl/input.rb +5 -1
  87. data/app/lib/primer/safe_href_helper.rb +36 -0
  88. data/app/views/primer/view_components/tree_view_items/async_alpha.html_fragment.erb +4 -4
  89. data/lib/primer/static/generate_previews.rb +1 -1
  90. data/lib/primer/view_components/version.rb +2 -2
  91. data/previews/primer/alpha/tree_view_preview/async_alpha.html.erb +2 -2
  92. data/previews/primer/alpha/tree_view_preview/async_form_input.html.erb +16 -0
  93. data/previews/primer/alpha/tree_view_preview.rb +13 -2
  94. data/previews/primer/open_project/collapsible_section_preview/with_link_in_title.html.erb +6 -0
  95. data/previews/primer/open_project/collapsible_section_preview.rb +9 -0
  96. data/static/classes.json +21 -0
  97. data/static/classnames.cjs +507 -0
  98. data/static/classnames.d.ts +2 -0
  99. data/static/classnames.js +509 -0
  100. data/static/info_arch.json +26 -0
  101. data/static/previews.json +2404 -2378
  102. metadata +9 -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: 9ece162d4bb90c9a0ff47147f17ca78a9f912d60278ae9bcc1c2c2158c443313
4
+ data.tar.gz: e171dfb9237266657147896d20fe7ca5be60b50b8787b37f95fdcce75136d586
5
5
  SHA512:
6
- metadata.gz: 7fc840f73a2fbe9273d1f12c704a48bad22d5ab5eeed741c43102ab624559d0a637691ec498b17973ecf579989eb8cfac963ac57edfa0504b865594c84dd467e
7
- data.tar.gz: 4167eb5b1c257932d82419eb1adc3f37f4bb17e287abf95e13e1795f5f6891d3adef374fa395876ec8f7585f1469910cb3bc826543e7fc39a5452ad3674039f9
6
+ metadata.gz: 569f889fe63f22c6f9ecef37ebdd5627734d5e600fc65b5f806d4dfb445cc3d27c0748b3813c255ebb75f29bd5137684d61e140b87a24ad1bb873e3f2ba2dcb9
7
+ data.tar.gz: 35feb5d650bf1676a5af0aa088d224b87d7626cc91440a9562756a5a69157548885a90fdbc91c4d54b4a0311aac24a5edaeeddc9e62dccf4dbd3c1666b316311
data/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.91.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#512](https://github.com/opf/primer_view_components/pull/512) [`22fbe59`](https://github.com/opf/primer_view_components/commit/22fbe5973c85d47a2d9c6369e6b769076b997190) Thanks [@HDinger](https://github.com/HDinger)! - Support async TreeViews for select variant :single and :multiple for select strategy :self
8
+
9
+ ## 0.90.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
15
+ ## 0.90.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#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
20
+
21
+ - [#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.
22
+
23
+ ### Patch Changes
24
+
25
+ - [#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`
26
+
27
+ - [#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`).
28
+
29
+ - [#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.
30
+
31
+ - [#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.
32
+
33
+ - [#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
34
+
35
+ - [#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.
36
+
37
+ - [#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
38
+
39
+ - [#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
40
+
41
+ - [#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`
42
+
3
43
  ## 0.89.2
4
44
 
5
45
  ### Patch Changes