katalyst-kpop 4.0.1 → 4.0.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b52223cc34ea1c689d99fbd7b71a9fce58abcaba9a4c59caa3bac5c1e25b7d8
|
|
4
|
+
data.tar.gz: 97d2de9405f958ae6ddbadf97d45ce3a327021f58935fae45c5d7423198870ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fe5bc8948c6cd701b8b210b2585c86babd04c2b509b72d35ca91d3572077cd702ed23f0fd7feb2e64d4454550f493f4b64dfbe2d563ff46e4209823f5e7b6d9
|
|
7
|
+
data.tar.gz: c95c72325bf1fcdf02b1742106da7197c5dc109d68e23ff10c7a94a4dda053d718223300afcc1d2c7aebbbaf74fa5b4185192985067041cd56905ea52aef2b82
|
|
@@ -13,6 +13,8 @@ module Katalyst
|
|
|
13
13
|
module FrameRequest
|
|
14
14
|
extend ActiveSupport::Concern
|
|
15
15
|
|
|
16
|
+
SUPPORTED_LOCATION_MAX_LENGTH = 1024
|
|
17
|
+
|
|
16
18
|
class_methods do
|
|
17
19
|
# Sets the expectation that these actions will be wrapped in a modal.
|
|
18
20
|
# Adds custom layouts, rendering, and redirect behaviours to make this
|
|
@@ -62,7 +64,11 @@ module Katalyst
|
|
|
62
64
|
|
|
63
65
|
return if !request.get? || turbo_frame_request? || kpop_stream_request? || hotwire_native_app?
|
|
64
66
|
|
|
65
|
-
|
|
67
|
+
kpop_redirect_options = { status: :see_other }.tap do |options|
|
|
68
|
+
options[:modal_location] = request.fullpath if request.fullpath.bytesize <= SUPPORTED_LOCATION_MAX_LENGTH
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
redirect_back_or_to(kpop_fallback_location, **kpop_redirect_options)
|
|
66
72
|
end
|
|
67
73
|
|
|
68
74
|
def render(...)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: katalyst-kpop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Katalyst Interactive
|
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '0'
|
|
118
118
|
requirements: []
|
|
119
|
-
rubygems_version: 4.0.
|
|
119
|
+
rubygems_version: 4.0.10
|
|
120
120
|
specification_version: 4
|
|
121
121
|
summary: Modal library that uses Turbo and Stimulus.
|
|
122
122
|
test_files: []
|