openproject-primer_view_components 0.44.0 → 0.44.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2c8b72cee2a4e5d81359374555888262643967a991bcfaee6f03abd73f0c4db
4
- data.tar.gz: cd1858331f693d28d9e02c4a5aef2dcc6ca24b8f9deec6f39b58900b79eb2282
3
+ metadata.gz: 4070976cb5e56ee3459252e07c3fd1ca3544841315d96c5f4c05d57cad5eeeee
4
+ data.tar.gz: 1a4cafe7ca3769c7ffaab32f19981d27323948c54416c870548d7cca7ea6ef9d
5
5
  SHA512:
6
- metadata.gz: 178952d872a6290f49a9503cfa82851300bf88aef45f01543e8f52eb1664974854416948f60643101dd01ffbc26aa2f0a0af1aa8891d811d9b50163696552dab
7
- data.tar.gz: 1ec117ba4b39632420f716559d6d3bd100b5c3bf4564b35479ef3af566ba7a31deef0e3f753fcb94f832a52f58f15727aad45e2d8f43c48f6beb5041354d7c48
6
+ metadata.gz: 1a1fdf6170b51b055da049ded17920b44cabfd528a10020d36f0d9281a04eba575f9bf85b90f47827fb15f5cb6eacf0c7471e7f792ab6c6face6f6476dc4d40d
7
+ data.tar.gz: 5f4f687e0b02c3d2f206b6bcb1c2019524b55550ad02f9c94150ef13ee5e4ba0203291c0034beee7f0f2c437a2e189c325683617ed11d1085ee7f23c4c0373fe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.44.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#172](https://github.com/opf/primer_view_components/pull/172) [`2a500c9`](https://github.com/opf/primer_view_components/commit/2a500c95c359033253dec429da012b675da60099) Thanks [@HDinger](https://github.com/HDinger)! - Delegate calls for `primary_action` and `secondary_action` from FeedbackMessage to the `Blankslate`
8
+
3
9
  ## 0.44.0
4
10
 
5
11
  ### Minor Changes
@@ -31,6 +31,8 @@ module Primer
31
31
 
32
32
  delegate :description?, :description, :with_description, :with_description_content,
33
33
  :heading?, :heading, :with_heading, :with_heading_content,
34
+ :primary_action?, :primary_action, :with_primary_action, :with_primary_action_content,
35
+ :secondary_action?, :secondary_action, :with_secondary_action, :with_secondary_action_content,
34
36
  to: :@blankslate
35
37
 
36
38
  private
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 44
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
@@ -53,6 +53,14 @@ module Primer
53
53
  component.with_heading(tag: :h2) { "Please wait, your request is being processed." }
54
54
  end
55
55
  end
56
+
57
+ # @label With secondary action
58
+ def secondary_action
59
+ render(Primer::OpenProject::FeedbackMessage.new(loading: true)) do |component|
60
+ component.with_heading(tag: :h2) { "Please wait, your request is being processed." }
61
+ component.with_secondary_action(href: "#").with_content("Skip")
62
+ end
63
+ end
56
64
  end
57
65
  end
58
66
  end
@@ -17557,6 +17557,19 @@
17557
17557
  "color-contrast"
17558
17558
  ]
17559
17559
  }
17560
+ },
17561
+ {
17562
+ "preview_path": "primer/open_project/feedback_message/secondary_action",
17563
+ "name": "secondary_action",
17564
+ "snapshot": "false",
17565
+ "skip_rules": {
17566
+ "wont_fix": [
17567
+ "region"
17568
+ ],
17569
+ "will_fix": [
17570
+ "color-contrast"
17571
+ ]
17572
+ }
17560
17573
  }
17561
17574
  ],
17562
17575
  "subcomponents": [
data/static/previews.json CHANGED
@@ -3803,6 +3803,19 @@
3803
3803
  "color-contrast"
3804
3804
  ]
3805
3805
  }
3806
+ },
3807
+ {
3808
+ "preview_path": "primer/open_project/feedback_message/secondary_action",
3809
+ "name": "secondary_action",
3810
+ "snapshot": "false",
3811
+ "skip_rules": {
3812
+ "wont_fix": [
3813
+ "region"
3814
+ ],
3815
+ "will_fix": [
3816
+ "color-contrast"
3817
+ ]
3818
+ }
3806
3819
  }
3807
3820
  ]
3808
3821
  },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.44.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-09-03 00:00:00.000000000 Z
12
+ date: 2024-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -1042,7 +1042,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1042
1042
  - !ruby/object:Gem::Version
1043
1043
  version: '0'
1044
1044
  requirements: []
1045
- rubygems_version: 3.5.11
1045
+ rubygems_version: 3.5.16
1046
1046
  signing_key:
1047
1047
  specification_version: 4
1048
1048
  summary: ViewComponents of the Primer Design System for OpenProject