openproject-primer_view_components 0.44.0 → 0.44.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/components/primer/open_project/feedback_message.rb +2 -0
- data/lib/primer/view_components/version.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: 4070976cb5e56ee3459252e07c3fd1ca3544841315d96c5f4c05d57cad5eeeee
|
4
|
+
data.tar.gz: 1a4cafe7ca3769c7ffaab32f19981d27323948c54416c870548d7cca7ea6ef9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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.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-
|
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.
|
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
|