openproject-primer_view_components 0.39.1 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts +4 -0
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -1
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_list.css +1 -1
  9. data/app/components/primer/alpha/action_list.css.map +1 -1
  10. data/app/components/primer/alpha/action_list.pcss +1 -1
  11. data/app/components/primer/alpha/select_panel_element.js +43 -8
  12. data/app/components/primer/alpha/select_panel_element.ts +50 -9
  13. data/app/components/primer/alpha/toggle_switch.d.ts +4 -0
  14. data/app/components/primer/alpha/toggle_switch.js +16 -4
  15. data/app/components/primer/alpha/toggle_switch.rb +4 -2
  16. data/app/components/primer/alpha/toggle_switch.ts +19 -4
  17. data/app/components/primer/open_project/page_header/title.html.erb +7 -0
  18. data/app/components/primer/open_project/page_header/title.rb +69 -0
  19. data/app/components/primer/open_project/page_header.html.erb +1 -1
  20. data/app/components/primer/open_project/page_header.rb +13 -7
  21. data/lib/primer/view_components/version.rb +2 -2
  22. data/previews/primer/alpha/toggle_switch_preview.rb +4 -0
  23. data/previews/primer/open_project/page_header_preview/playground.html.erb +7 -2
  24. data/previews/primer/open_project/page_header_preview.rb +17 -2
  25. data/static/arguments.json +22 -0
  26. data/static/audited_at.json +1 -0
  27. data/static/constants.json +19 -10
  28. data/static/info_arch.json +73 -0
  29. data/static/previews.json +27 -0
  30. data/static/statuses.json +1 -0
  31. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb37337d3063b095d568d2c8a89dafbcd1cece45010ab42b1e88664af53ce78b
4
- data.tar.gz: 3247969ec5c6fd71611330d450d95581b892043f25f2bfeb3a9d48fedfcd833a
3
+ metadata.gz: 14593fb2905980052a721c86d1b8b52a0f111166b477860d3edf7bf28310aa48
4
+ data.tar.gz: '0838140880dbe21f751bb20d65694d038e13f8af131196cb5bda047e49661b94'
5
5
  SHA512:
6
- metadata.gz: bd5d5c42323e4832f52d6b338e2393c0b1bdaf70c23e3d9d53de61e437e2e514e2c6ddcb897b6c4e1060454d1fbf3fe9cfce031916d6df47a748255bc0f5d8d5
7
- data.tar.gz: ae3d596a7f6e988843d847e2faa933a0e9fd751d1705eaaacf1ced46fe67a67b5fd5b9a7787ea9f599f5eb73fbf1c91feab9fdc131207f0dfeb55b1a0a4a3081
6
+ metadata.gz: e8d58bdd1701157d8a20e140b681a7e23f381a23c98bf03024ba53cb40689fbe76af9d6b08cef6c721710c5c819aa9c397c667d570598d4c0fd546d87b13f582
7
+ data.tar.gz: e87fac40947b33003faf5a91d9945ffa1527afe6f93b0c48fa0441b3af6b3a4aac09d2c6ec362599d70e4d3133b264e391d44746dfbfda32cebe3b2b1a977e26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.41.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#149](https://github.com/opf/primer_view_components/pull/149) [`63cd602`](https://github.com/opf/primer_view_components/commit/63cd6022bc2dda79b602ebefcffe6f1e0ed1436f) Thanks [@HDinger](https://github.com/HDinger)! - Add support for an editable state of Primer::OpenProject::PageHeader
8
+
9
+ ## 0.40.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#2964](https://github.com/primer/view_components/pull/2964) [`91f5a57`](https://github.com/opf/primer_view_components/commit/91f5a57e1b2df25844b96971b08d2a5a8370255f) Thanks [@klaustopher](https://github.com/klaustopher)! - Add `turbo: true` as an parameter for the `ToggleSwitch` component and treat the respoonse (when it has the correct MIME type) as a [Turbo Stream](https://turbo.hotwired.dev/handbook/streams). The new `turbo` paramater defaults to false
14
+ and with that the HTTP response is simply ignored as is the current behavior.
15
+
16
+ - [#2966](https://github.com/primer/view_components/pull/2966) [`05172fa`](https://github.com/opf/primer_view_components/commit/05172fa681df5a65c14e4f4a863c22eef7f28970) Thanks [@camertron](https://github.com/camertron)! - Ensure Down, Home, and End behave as expected when a SelectPanel's input field has focus
17
+
18
+ ### Patch Changes
19
+
20
+ - [#2972](https://github.com/primer/view_components/pull/2972) [`9b675a7`](https://github.com/opf/primer_view_components/commit/9b675a78408e1e262850029ee730ad0cd6ac0d23) Thanks [@TylerJDev](https://github.com/TylerJDev)! - Replace `align-items` with `align-self` and apply it on `ActionList` group headings directly.
21
+
3
22
  ## 0.39.1
4
23
 
5
24
  ### Patch Changes
@@ -2,6 +2,7 @@ declare class ToggleSwitchElement extends HTMLElement {
2
2
  switch: HTMLElement;
3
3
  loadingSpinner: HTMLElement;
4
4
  errorIcon: HTMLElement;
5
+ turbo: boolean;
5
6
  private toggling;
6
7
  get src(): string | null;
7
8
  get csrf(): string | null;
@@ -25,6 +26,9 @@ declare class ToggleSwitchElement extends HTMLElement {
25
26
  declare global {
26
27
  interface Window {
27
28
  ToggleSwitchElement: typeof ToggleSwitchElement;
29
+ Turbo: {
30
+ renderStreamMessage: (message: string) => void;
31
+ };
28
32
  }
29
33
  }
30
34
  export {};