openproject-primer_view_components 0.26.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/app/assets/javascripts/app/components/primer/open_project/zen_mode_button.d.ts +13 -0
  4. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  5. data/app/assets/javascripts/primer_view_components.js +1 -1
  6. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  7. data/app/components/primer/open_project/page_header/dialog.rb +38 -0
  8. data/app/components/primer/open_project/page_header/menu.rb +38 -0
  9. data/app/components/primer/open_project/page_header.rb +16 -27
  10. data/app/components/primer/open_project/zen_mode_button.d.ts +13 -0
  11. data/app/components/primer/open_project/zen_mode_button.html.erb +11 -0
  12. data/app/components/primer/open_project/zen_mode_button.js +45 -0
  13. data/app/components/primer/open_project/zen_mode_button.rb +23 -0
  14. data/app/components/primer/open_project/zen_mode_button.ts +42 -0
  15. data/app/components/primer/primer.d.ts +1 -0
  16. data/app/components/primer/primer.js +1 -0
  17. data/app/components/primer/primer.ts +1 -0
  18. data/lib/primer/view_components/version.rb +1 -1
  19. data/previews/primer/open_project/page_header_preview/actions.html.erb +0 -8
  20. data/previews/primer/open_project/page_header_preview.rb +48 -0
  21. data/previews/primer/open_project/zen_mode_button_preview.rb +22 -0
  22. data/static/arguments.json +42 -4
  23. data/static/audited_at.json +3 -1
  24. data/static/constants.json +7 -2
  25. data/static/info_arch.json +131 -6
  26. data/static/previews.json +60 -0
  27. data/static/statuses.json +3 -1
  28. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd022f29c1114ea5a9d623375508711db6dee8e76310dc5ff103b52bed59cea9
4
- data.tar.gz: 1721ce41503113d10d2946835b4484af29ddccac807cd31b07b4bddf5efd0b6f
3
+ metadata.gz: 625ef28c9bb40b00a14026f72eeb9fb7627c446a69c6735528f8ce5ced1b7ab7
4
+ data.tar.gz: 34ef12fb54dde389edc3607367977b6f344341e6f04f98007b8b1abe97d71716
5
5
  SHA512:
6
- metadata.gz: ea84cf60b2a72921b01425b64408ea95e79ef80f5d767754057e88579211d8bbe41d4942c9509eee2bf42b75dc75d406e35409dea2f4607ee6a6638bf6651185
7
- data.tar.gz: 80a9f6c63b01e4447db7c8b40d423341ca8086088b98a4f71a8c941b8f9b1c0b4af180b1527c22f0580068c06ad6a6d265d56928fb3cf4fe68d0eee7241431cb
6
+ metadata.gz: b471b62da42a63ba9df30cb2eafe51fb39a841c2b7e2bf504c758f168bda857529b2d9ace734790d07c65e35a3e83f1bbfad1dcb9cf29e106a38d49b1ab3db8e
7
+ data.tar.gz: c72334e36b1107f8f6c2ac9b06026de4d8954d9d3d69413c25e80f24f799cdca0be0c1e4a9b1bd7329455a0d3a2c185dc80fff84f0b0a42b25242e490c52dad4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#96](https://github.com/opf/primer_view_components/pull/96) [`f52bbfa`](https://github.com/opf/primer_view_components/commit/f52bbfafcba707bd24e76495e84dc9e5128b0284) Thanks [@HDinger](https://github.com/HDinger)! - \* Add support for Dialogs inside the Primer::OpenProject::PageHeader component
8
+
9
+ - Limit the number of allowed actions to 5
10
+
11
+ - [#69](https://github.com/opf/primer_view_components/pull/69) [`81bb4b7`](https://github.com/opf/primer_view_components/commit/81bb4b7f746da1e076d085387a4ef2000067b946) Thanks [@bsatarnejad](https://github.com/bsatarnejad)! - Add `Primer::OpenProject::ZenModeButton` component. By clicking on the button, screen will be in full-mode or back in normal-mode.
12
+
3
13
  ## 0.26.0
4
14
 
5
15
  ### Minor Changes
@@ -0,0 +1,13 @@
1
+ declare class ZenModeButtonElement extends HTMLElement {
2
+ button: HTMLElement;
3
+ inZenMode: boolean;
4
+ private deactivateZenMode;
5
+ private activateZenMode;
6
+ performAction(): void;
7
+ }
8
+ declare global {
9
+ interface Window {
10
+ ZenModeButtonElement: typeof ZenModeButtonElement;
11
+ }
12
+ }
13
+ export {};
@@ -23,3 +23,4 @@ import '../../../lib/primer/forms/primer_text_field';
23
23
  import '../../../lib/primer/forms/toggle_switch_input';
24
24
  import './alpha/action_menu/action_menu_element';
25
25
  import './open_project/page_header_element';
26
+ import './open_project/zen_mode_button';