openproject-primer_view_components 0.69.0 → 0.69.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: 43bf764ed97905f9c6226a0f863c3a02a153663bf08d4b2c55a0f7af555bc095
4
- data.tar.gz: a970261d638430d7fbbda55eeb80032dc165d84fdb759e050bab65041a02ed2c
3
+ metadata.gz: abcb1c38b8cdcfda727224b7b7bb339b7da1336c43164d9635319a226655b6c4
4
+ data.tar.gz: 772f6d6d34d6db479cac163aa14f1d7555ba196cb2159b6a94f3425ba02c560b
5
5
  SHA512:
6
- metadata.gz: 20718b62cd0dd58529ba46d8ddfca0ffbff371917503a39fd4c5ce33886e268db115fb0057748107c73d737cd3c8aa59c59e8d3cda45e041674e6edd1187ed3d
7
- data.tar.gz: c3d3f3f37ea5c171cc4c93d3345f45444a9bc10b7f456c11ea2c23d1bf572bbb87be4bc8018474be5faa71300862d3fd2521674d7377f7c9aa08694c1f505e78
6
+ metadata.gz: 5c67b25d5d36ccedbeab7b58bcfbd805202e711cf1b0c4c5c33a9ea03fae5f318b1292f400b4af29b4e8f75680d5ae1096b836707eef3d1f87f962d479a5e2cc
7
+ data.tar.gz: 2f43177f6562ad6eca9a2dd2658f0c0588384c244dc0a8d200cb216cbaff78979373e17c7442700905efa4ed6894ef0c351c0898ae2030ea700ee0d5d81aa26b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.69.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#314](https://github.com/opf/primer_view_components/pull/314) [`1ad044d`](https://github.com/opf/primer_view_components/commit/1ad044d10bb8365a73b66bbb35b785a4db873d83) Thanks [@camertron](https://github.com/camertron)! - Enable specifying a custom menu_id: for ActionMenu sub menus
8
+
3
9
  ## 0.69.0
4
10
 
5
11
  ### Minor Changes
@@ -47,7 +47,7 @@ module Primer
47
47
  # @param overlay_arguments [Hash] Arguments to pass to the underlying <%= link_to_component(Primer::Alpha::Overlay) %>
48
48
  # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>.
49
49
  def initialize(
50
- menu_id:,
50
+ menu_id: self.class.generate_id,
51
51
  anchor_align: DEFAULT_ANCHOR_ALIGN,
52
52
  anchor_side: DEFAULT_ANCHOR_SIDE,
53
53
  overlay_arguments: {},
@@ -11,10 +11,9 @@ module Primer
11
11
  # ActionList::Item base class or to the SubMenu instance. Doing so prevents a form
12
12
  # input from being emitted for sub-menu items, which prevents an extra empty value
13
13
  # from being sent to the server on form submit.
14
- @menu_id = self.class.generate_id
15
14
  @sub_menu = SubMenu.allocate
16
- system_arguments = @sub_menu.send(:initialize, **system_arguments, menu_id: @menu_id)
17
- system_arguments[:id] = "#{@menu_id}-button"
15
+ system_arguments = @sub_menu.send(:initialize, **system_arguments)
16
+ system_arguments[:id] = "#{@sub_menu.menu_id}-button"
18
17
 
19
18
  @form_arguments = form_arguments
20
19
 
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 69
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
@@ -577,7 +577,7 @@
577
577
  {
578
578
  "name": "menu_id",
579
579
  "type": "String",
580
- "default": "N/A",
580
+ "default": "`self.class.generate_id`",
581
581
  "description": "Id of the menu."
582
582
  },
583
583
  {
@@ -2114,7 +2114,7 @@
2114
2114
  {
2115
2115
  "name": "menu_id",
2116
2116
  "type": "String",
2117
- "default": "N/A",
2117
+ "default": "`self.class.generate_id`",
2118
2118
  "description": "Id of the menu."
2119
2119
  },
2120
2120
  {
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.69.0
4
+ version: 0.69.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: 2025-06-02 00:00:00.000000000 Z
12
+ date: 2025-06-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview