inertia_rails-contrib 0.5.1 → 0.5.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: 5ec53af6a5beb83966465a09c7bc59fd50b9a85cec69d938c9ce83f12b962cff
|
|
4
|
+
data.tar.gz: f85b030f6d33b40fe683d4d0d7ce47521cb59052bb52fedc2da99b5b58e1da02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c75158866200cf29d9dc8ab16e91341bede93af559b0e59ea0bb7cbf46958afe10c4a8c05f8d005b0cd73bd1c62c49d1e576991aad0f4265012620b04fe72be
|
|
7
|
+
data.tar.gz: 0ccbf482e9c1e6bad62b40829d317717698c2c7bdef57887f729f2b7e055eb4e79119e4f13f88c4280166826b3862e5886deaa156b921b77fe7aa4efa25ea352
|
data/CHANGELOG.md
CHANGED
|
@@ -7,28 +7,33 @@ and this project adheres to [Semantic Versioning].
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.2] - 2026-01-05
|
|
11
|
+
|
|
12
|
+
### Fixed:
|
|
13
|
+
|
|
14
|
+
- Return the modal ID in InertiaUI Modal responses ([@nicklozon])
|
|
15
|
+
|
|
10
16
|
## [0.5.1] - 2025-07-31
|
|
11
17
|
|
|
12
|
-
Fixed:
|
|
18
|
+
### Fixed:
|
|
13
19
|
|
|
14
20
|
- Fix params mismatch error when base URL uses other param names ([@skryukov])
|
|
15
21
|
|
|
16
|
-
|
|
17
22
|
## [0.5.0] - 2025-06-11
|
|
18
23
|
|
|
19
|
-
Added:
|
|
24
|
+
### Added:
|
|
20
25
|
|
|
21
26
|
- [InertiaUI Modal](https://github.com/inertiaui/modal) support ([@skryukov])
|
|
22
27
|
|
|
23
28
|
## [0.4.0] - 2024-12-23
|
|
24
29
|
|
|
25
|
-
Changed:
|
|
30
|
+
### Changed:
|
|
26
31
|
|
|
27
32
|
- Generators are upstreamed to the `inertia_rails` gem ([@skryukov])
|
|
28
33
|
|
|
29
34
|
## [0.3.0] - 2024-10-25
|
|
30
35
|
|
|
31
|
-
Added:
|
|
36
|
+
### Added:
|
|
32
37
|
|
|
33
38
|
- [BREAKING] Svelte 5 support ([@skryukov])
|
|
34
39
|
- The `--framework=svelte` option now installs Svelte 5
|
|
@@ -38,7 +43,7 @@ Added:
|
|
|
38
43
|
|
|
39
44
|
## [0.2.2] - 2024-10-09
|
|
40
45
|
|
|
41
|
-
Added:
|
|
46
|
+
### Added:
|
|
42
47
|
|
|
43
48
|
- TypeScript support for the installation generator ([@skryukov])
|
|
44
49
|
Note that it doesn't include scaffold templates yet.
|
|
@@ -48,7 +53,7 @@ Added:
|
|
|
48
53
|
|
|
49
54
|
- Support `tailwind.config.ts` for Tailwind CSS template guessing ([@Shaglock])
|
|
50
55
|
|
|
51
|
-
Fixed:
|
|
56
|
+
### Fixed:
|
|
52
57
|
|
|
53
58
|
- Correct examples for default layouts in inertia entrypoints ([@skryukov])
|
|
54
59
|
- Inertia attribute added to the head tag in the layout for vue ([@skryukov])
|
|
@@ -56,18 +61,18 @@ Fixed:
|
|
|
56
61
|
|
|
57
62
|
## [0.2.1] - 2024-08-11
|
|
58
63
|
|
|
59
|
-
Added:
|
|
64
|
+
### Added:
|
|
60
65
|
|
|
61
66
|
- Support `pnpm` package manager ([@skryukov])
|
|
62
67
|
- New `--verbose` option for the installation generator ([@skryukov])
|
|
63
68
|
|
|
64
|
-
Fixed:
|
|
69
|
+
### Fixed:
|
|
65
70
|
|
|
66
71
|
- Support installation alongside Webpacker ([@skryukov])
|
|
67
72
|
|
|
68
73
|
## [0.2.0] - 2024-08-10
|
|
69
74
|
|
|
70
|
-
Added:
|
|
75
|
+
### Added:
|
|
71
76
|
|
|
72
77
|
- Improve installation generator ([@skryukov])
|
|
73
78
|
- option to install Vite Rails gem (`--install-vite`)
|
|
@@ -85,13 +90,17 @@ Added:
|
|
|
85
90
|
|
|
86
91
|
## [0.1.0] - 2024-06-11
|
|
87
92
|
|
|
93
|
+
### Added:
|
|
94
|
+
|
|
88
95
|
- Initial release ([@iurev], [@skryukov])
|
|
89
96
|
|
|
90
97
|
[@iurev]: https://github.com/iurev
|
|
98
|
+
[@nicklozon]: https://github.com/nicklozon
|
|
91
99
|
[@Shaglock]: https://github.com/Shaglock
|
|
92
100
|
[@skryukov]: https://github.com/skryukov
|
|
93
101
|
|
|
94
|
-
[Unreleased]: https://github.com/skryukov/inertia_rails-contrib/compare/v0.5.
|
|
102
|
+
[Unreleased]: https://github.com/skryukov/inertia_rails-contrib/compare/v0.5.2...HEAD
|
|
103
|
+
[0.5.2]: https://github.com/skryukov/inertia_rails-contrib/compare/v0.5.1...v0.5.2
|
|
95
104
|
[0.5.1]: https://github.com/skryukov/inertia_rails-contrib/compare/v0.5.0...v0.5.1
|
|
96
105
|
[0.5.0]: https://github.com/skryukov/inertia_rails-contrib/compare/v0.4.0...v0.5.0
|
|
97
106
|
[0.4.0]: https://github.com/skryukov/inertia_rails-contrib/compare/v0.3.0...v0.4.0
|
|
@@ -18,6 +18,7 @@ module InertiaRailsContrib
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
page = @inertia_renderer.page
|
|
21
|
+
page[:id] = modal_id if modal_id.present?
|
|
21
22
|
page[:baseUrl] = base_url
|
|
22
23
|
page[:meta] = {
|
|
23
24
|
deferredProps: page.delete(:deferredProps),
|
|
@@ -33,6 +34,10 @@ module InertiaRailsContrib
|
|
|
33
34
|
@request.headers[HEADER_BASE_URL] || @base_url
|
|
34
35
|
end
|
|
35
36
|
|
|
37
|
+
def modal_id
|
|
38
|
+
@modal_id ||= @request.headers[HEADER_MODAL]
|
|
39
|
+
end
|
|
40
|
+
|
|
36
41
|
def render_base_url
|
|
37
42
|
original_env = Rack::MockRequest.env_for(base_url)
|
|
38
43
|
@request.each_header do |k, v|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inertia_rails-contrib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Svyatoslav Kryukov
|
|
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
67
|
version: '0'
|
|
68
68
|
requirements: []
|
|
69
|
-
rubygems_version: 3.6.
|
|
69
|
+
rubygems_version: 3.6.9
|
|
70
70
|
specification_version: 4
|
|
71
71
|
summary: A collection of extensions and developer tools for Rails Inertia adapter
|
|
72
72
|
test_files: []
|