katalyst-kpop 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84fe678713b4a545e1478d99a5e73a91b548851bf6a2bcfe3c8e67ab23fbb315
4
- data.tar.gz: f4c6b37be0afc39b7a6fcae208931dcb52e0c3913ca32bc667952db0ba3a2401
3
+ metadata.gz: 132ccf15922a7201b808f5e05d0ebfa5294a80fb52fbffd9394b17620ef7e841
4
+ data.tar.gz: ab016bd132de1ad7e039e4eca8e0e5aeb5668442a26d08be233625b864d34754
5
5
  SHA512:
6
- metadata.gz: 4323592acd0b9d809de039ab067911082898a48c0756c8e8474847713da7331c3433ec383e7b3d17f1edde035ef67726121847c83f382f0c92c7175c8b0ec3e0
7
- data.tar.gz: 6411d745afe72669777ece7a440100f1d3e67764483c2fd64653be429e561891224cc2dcc8d20634ac71fa2590f413961a0d2d4fb5185e0175e2a01037a260c2
6
+ metadata.gz: e46ae5a99a83e236123445f6273a0d5aa44a7e7d42676ed775d2fe523629f6ba7dcde29ceec1a8c650e7ec77d1d6460fa62abdf296e342335270f79aeb2b4a4e
7
+ data.tar.gz: 63e704500714934863e32822335956c3896bea1670ff141ddfb32679369c4087e028077fbb487f24b9639cca30ec89099c44f76b8b4a507c9e3d77bd00332227
data/README.md CHANGED
@@ -96,7 +96,7 @@ frame. The targeted action will need to generate content in a `kpop_frame_tag`,
96
96
  ```
97
97
 
98
98
  Note that, because kpop modals render in a turbo frame, if you want to navigate the parent frame you will need to use
99
- `target: "_top"` on your links and forms.
99
+ `target: "_top"` on your links and forms, or add `target: "_top"` to the `kpop_frame_tag` call in your body.
100
100
 
101
101
  ## Development
102
102
 
@@ -13,10 +13,13 @@ module KpopHelper
13
13
  end
14
14
 
15
15
  # Render a turbo frame tag that can be targeted for rendering kpop modals.
16
- def kpop_frame_tag(&block)
17
- turbo_frame_tag "kpop",
18
- class: "kpop-container",
19
- data: { controller: "kpop", action: "scrim:hide@window->kpop#dismiss" } do
16
+ def kpop_frame_tag(**html_attributes, &block)
17
+ html_attributes[:class] ||= "kpop-container"
18
+ html_attributes[:data] ||= {}
19
+ html_attributes[:data][:controller] = "kpop"
20
+ html_attributes[:data][:action] = "scrim:hide@window->kpop#dismiss"
21
+
22
+ turbo_frame_tag("kpop", **html_attributes) do
20
23
  capture(&block) if block
21
24
  end
22
25
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Katalyst
4
4
  module Kpop
5
- VERSION = "2.0.4"
5
+ VERSION = "2.0.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-kpop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-15 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: