openproject-primer_view_components 0.44.0 → 0.44.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/app/components/primer/open_project/feedback_message.rb +2 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/rubocop/cop/primer/primer_octicon.rb +1 -1
- data/previews/primer/open_project/feedback_message_preview.rb +8 -0
- data/static/info_arch.json +13 -0
- data/static/previews.json +13 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c8c0f7f24d54cdfcce3bcb9c1623fa25c9d89d66a72534e7de455a0860a70de
|
4
|
+
data.tar.gz: f1b2b1b0871e2fb5d9a567e409b23e8d1c4e85255fec0821377a98fddf5e9ede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2aa571fdaf4760b71e7fb5cb74f4112e5de5b4902ad3a8ed0985de4a3f30c5aac74d5ad9264826ae9ffc5a6b938afc9f0331728b8e3495026ae120431e3fcb54
|
7
|
+
data.tar.gz: ffdf0ed995a4abce7f9275cca4c0507a6877326411827897cb2a26f33c7e88592fc926ed31a6c97547490ce8d17eef021e16d4d0aaaf06bac142dd1d90a17fe8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.44.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#178](https://github.com/opf/primer_view_components/pull/178) [`3429d42`](https://github.com/opf/primer_view_components/commit/3429d42114df30550f588a94f6e5577f6f3b710c) Thanks [@HDinger](https://github.com/HDinger)! - Remove OpenStruct from primer_octicon cop
|
8
|
+
|
9
|
+
- [#175](https://github.com/opf/primer_view_components/pull/175) [`015b6dc`](https://github.com/opf/primer_view_components/commit/015b6dc1bcc18878e173ca4a524a91d57756d654) Thanks [@HDinger](https://github.com/HDinger)! - Precompile loading svg
|
10
|
+
|
11
|
+
## 0.44.1
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- [#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`
|
16
|
+
|
3
17
|
## 0.44.0
|
4
18
|
|
5
19
|
### 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
|
@@ -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
|
data/static/info_arch.json
CHANGED
@@ -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.
|
4
|
+
version: 0.44.2
|
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-
|
12
|
+
date: 2024-09-05 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.
|
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
|