railsui 3.3.0 → 3.3.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: 1bb7678277542f5768bfb43e48f033b00b7de92ae4c508a04b026ab962822c13
4
- data.tar.gz: b1a78f138f8db6883895d6db010066f47c0bfb2a0601205549ef90087a56749d
3
+ metadata.gz: a4c5ca81239ee52d312f3b03bb3e32b95b02f8786d54e69e56e2060fc5ce5fa3
4
+ data.tar.gz: f5a49b4b9e12c23607dfde84853cd9ed1c86d7afdab0697e4eb7e9e676f0f3da
5
5
  SHA512:
6
- metadata.gz: 4f230aced332a51e53fe127baa1271e2b27cab8a627f6563a3e4794b69bfdbf9df965b5e22b9417684b1fa1586a392621de6fb9ba2d43940e5c9d34849599c2b
7
- data.tar.gz: df4d529d5d271d9a83737b3d3ac824a8408d5ed614c2cabeb9c831cabe168bdaa07f54c51bd76c945bc9f85a9161a07bbeb46403e5766727a401c801dd67d35d
6
+ metadata.gz: d398a86c738a596630d6a58c67ab1ab9997dd329e8de146be5795ea9d90a3e0ebe8973ed7161d94d504909bf387a407caecadf9f8426d59d1604ea8e4bb1dda7
7
+ data.tar.gz: 15c798b050aede26300b6d045e64d62abf6a0d1745e29d21056d7b93d79a0b4d889b0275fc3a727eadd50c209bb1d6f4dc88972438cdf9e2de15f49750ba8b92
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- railsui (3.3.0)
4
+ railsui (3.3.2)
5
5
  meta-tags
6
6
  psych
7
7
  rails (>= 7.0)
@@ -1,4 +1,4 @@
1
1
  <%= render "rui/shared/meta" %>
2
2
  <%= render "rui/shared/fonts" %>
3
- <%= stylesheet_link_tag "https://unpkg.com/photoswipe@5.4.4/dist/photoswipe.css", "https://unpkg.com/tippy.js@6.3.7/dist/tippy.css", "data-turbo-track": "reload" %>
3
+ <%= stylesheet_link_tag "https://unpkg.com/photoswipe@5.4.4/dist/photoswipe.css", "https://unpkg.com/tippy.js@6.3.7/dist/tippy.css", "https://unpkg.com/flatpickr@4.6.13/dist/flatpickr.min.css", "data-turbo-track": "reload" %>
4
4
  <%= yield :head %>
@@ -14,13 +14,6 @@ module Railsui
14
14
  end
15
15
  end
16
16
 
17
- initializer "my_engine.view_helpers" do
18
- ActiveSupport.on_load(:action_view) do
19
- # automatic main_app where it counts
20
- include Railsui::HostRouteFallbackHelper
21
- end
22
- end
23
-
24
17
  initializer "railsui.setup" do |app|
25
18
  config.assets.precompile << "railsui_manifest.js" if Rails.env.development?
26
19
  end
@@ -337,7 +337,6 @@ module Railsui
337
337
  end
338
338
 
339
339
  pin_importmap_dependencies(theme)
340
- add_importmap_css_dependencies(theme)
341
340
  end
342
341
 
343
342
  # Legacy method for backward compatibility
@@ -463,37 +462,6 @@ module Railsui
463
462
  }
464
463
  end
465
464
 
466
- def add_importmap_css_dependencies(theme)
467
- application_css_path = Rails.root.join("app/assets/tailwind/application.css")
468
- return unless File.exist?(application_css_path)
469
-
470
- css_content = File.read(application_css_path)
471
-
472
- # Required CSS dependencies for railsui-stimulus components
473
- css_imports = []
474
- css_imports << '@import "https://unpkg.com/tippy.js@6.3.7/dist/tippy.css";'
475
-
476
- # Add flatpickr CSS for themes that use date picker
477
- if ["shepherd"].include?(theme)
478
- css_imports << '@import "https://unpkg.com/flatpickr@4.6.13/dist/flatpickr.min.css";'
479
- end
480
-
481
- css_imports.each do |import_statement|
482
- unless css_content.include?(import_statement)
483
- # Add after @import "tailwindcss" if it exists, otherwise at the top
484
- if css_content.include?('@import "tailwindcss"')
485
- css_content.sub!('@import "tailwindcss";', "@import \"tailwindcss\";\n#{import_statement}")
486
- else
487
- css_content = "#{import_statement}\n#{css_content}"
488
- end
489
- say "✓ Added CSS import: #{import_statement}", :green
490
- end
491
- end
492
-
493
- File.write(application_css_path, css_content)
494
- say "✅ CSS dependencies added for importmap mode", :green
495
- end
496
-
497
465
  def add_yarn_packages(packages)
498
466
  package_manager = detect_package_manager
499
467
  say "Using #{package_manager} to install packages...", :green
@@ -1,3 +1,3 @@
1
1
  module Railsui
2
- VERSION = "3.3.0"
2
+ VERSION = "3.3.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railsui
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Leverenz
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-10-25 00:00:00.000000000 Z
10
+ date: 2026-01-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails
@@ -777,7 +777,6 @@ files:
777
777
  - app/controllers/railsui/systems_controller.rb
778
778
  - app/helpers/railsui/application_helper.rb
779
779
  - app/helpers/railsui/framework_helper.rb
780
- - app/helpers/railsui/host_route_fallback_helper.rb
781
780
  - app/helpers/railsui/mail_helper.rb
782
781
  - app/javascript/application.js
783
782
  - app/javascript/controllers/alert_controller.js
@@ -1,18 +0,0 @@
1
- module Railsui
2
- module HostRouteFallbackHelper
3
- def main_app
4
- Rails.application.routes.url_helpers
5
- end
6
-
7
- def method_missing(name, *args, &blk)
8
- if name.to_s.end_with?('_path', '_url') && main_app.respond_to?(name)
9
- return main_app.public_send(name, *args, &blk)
10
- end
11
- super
12
- end
13
-
14
- def respond_to_missing?(name, include_private = false)
15
- (name.to_s.end_with?('_path', '_url') && main_app.respond_to?(name)) || super
16
- end
17
- end
18
- end