From d1cffe50872fe0a15a42e00c42722bb0c7f77fcc Mon Sep 17 00:00:00 2001 From: Jackson Pires Date: Mon, 15 Jul 2024 23:29:58 +0000 Subject: [PATCH] update turbo rails --- Gemfile.lock | 32 ++++++++++++++--------------- app/views/components/shared/head.rb | 3 +++ package.json | 2 +- yarn.lock | 18 ++++++++-------- 4 files changed, 29 insertions(+), 26 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ab8c90c..43ec5d7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -84,7 +84,7 @@ GEM bindex (0.8.1) bootsnap (1.17.0) msgpack (~> 1.2) - builder (3.2.4) + builder (3.3.0) capybara (3.39.2) addressable matrix @@ -95,7 +95,7 @@ GEM regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) coderay (1.1.3) - concurrent-ruby (1.2.3) + concurrent-ruby (1.3.3) crass (1.0.6) cssbundling-rails (1.3.3) railties (>= 6.0.0) @@ -107,7 +107,7 @@ GEM dotenv-rails (2.8.1) dotenv (= 2.8.1) railties (>= 3.2) - erubi (1.12.0) + erubi (1.13.0) faraday (2.8.1) base64 faraday-net_http (>= 2.0, < 3.1) @@ -117,7 +117,7 @@ GEM faraday (~> 2.0) globalid (1.2.1) activesupport (>= 6.1) - i18n (1.14.4) + i18n (1.14.5) concurrent-ruby (~> 1.0) io-console (0.7.1) irb (1.11.0) @@ -145,9 +145,9 @@ GEM net-smtp marcel (1.0.2) matrix (0.4.2) - method_source (1.0.0) + method_source (1.1.0) mini_mime (1.1.5) - minitest (5.22.3) + minitest (5.24.1) msgpack (1.7.2) net-imap (0.4.9) date @@ -159,17 +159,17 @@ GEM net-smtp (0.4.0) net-protocol nio4r (2.7.0) - nokogiri (1.16.4-aarch64-linux) + nokogiri (1.16.6-aarch64-linux) racc (~> 1.4) - nokogiri (1.16.4-arm-linux) + nokogiri (1.16.6-arm-linux) racc (~> 1.4) - nokogiri (1.16.4-arm64-darwin) + nokogiri (1.16.6-arm64-darwin) racc (~> 1.4) - nokogiri (1.16.4-x86-linux) + nokogiri (1.16.6-x86-linux) racc (~> 1.4) - nokogiri (1.16.4-x86_64-darwin) + nokogiri (1.16.6-x86_64-darwin) racc (~> 1.4) - nokogiri (1.16.4-x86_64-linux) + nokogiri (1.16.6-x86_64-linux) racc (~> 1.4) octokit (5.6.1) faraday (>= 1, < 3) @@ -196,7 +196,7 @@ GEM public_suffix (5.0.4) puma (5.6.7) nio4r (~> 2.0) - racc (1.7.3) + racc (1.8.0) rack (2.2.9) rack-test (2.1.0) rack (>= 1.3) @@ -286,13 +286,13 @@ GEM standard-performance (1.3.1) lint_roller (~> 1.1) rubocop-performance (~> 1.20.2) - stimulus-rails (1.3.0) + stimulus-rails (1.3.3) railties (>= 6.0.0) stringio (3.1.0) stripe (10.4.0) thor (1.3.1) timeout (0.4.1) - turbo-rails (1.5.0) + turbo-rails (2.0.5) actionpack (>= 6.0.0) activejob (>= 6.0.0) railties (>= 6.0.0) @@ -310,7 +310,7 @@ GEM websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.6.13) + zeitwerk (2.6.16) PLATFORMS aarch64-linux diff --git a/app/views/components/shared/head.rb b/app/views/components/shared/head.rb index de03d8c..c82968a 100644 --- a/app/views/components/shared/head.rb +++ b/app/views/components/shared/head.rb @@ -7,6 +7,9 @@ def view_template head do title { "PhlexUI - Component Library" } meta name: "viewport", content: "width=device-width,initial-scale=1" + meta name: "turbo-refresh-method", content: "morph" + meta name: "turbo-refresh-scroll", content: "preserve" + meta name: "view-transition", content: "same-origin" csp_meta_tag csrf_meta_tags stylesheet_link_tag "https://api.fontshare.com/v2/css?f[]=general-sans@1&display=swap", data_turbo_track: "reload" diff --git a/package.json b/package.json index a37bff3..ebe9108 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": "true", "dependencies": { "@hotwired/stimulus": "^3.2.2", - "@hotwired/turbo-rails": "^7.3.0", + "@hotwired/turbo-rails": "^8.0.4", "autoprefixer": "^10.4.16", "chart.js": "^4.4.1", "class-variance-authority": "^0.7.0", diff --git a/yarn.lock b/yarn.lock index 5a0aeec..51b7f02 100644 --- a/yarn.lock +++ b/yarn.lock @@ -129,18 +129,18 @@ resolved "https://registry.npmjs.org/@hotwired/stimulus/-/stimulus-3.2.2.tgz" integrity sha512-eGeIqNOQpXoPAIP7tC1+1Yc1yl1xnwYqg+3mzqxyrbE5pg5YFBZcA6YoTiByJB6DKAEsiWtl6tjTJS4IYtbB7A== -"@hotwired/turbo-rails@^7.3.0": - version "7.3.0" - resolved "https://registry.npmjs.org/@hotwired/turbo-rails/-/turbo-rails-7.3.0.tgz" - integrity sha512-fvhO64vp/a2UVQ3jue9WTc2JisMv9XilIC7ViZmXAREVwiQ2S4UC7Go8f9A1j4Xu7DBI6SbFdqILk5ImqVoqyA== +"@hotwired/turbo-rails@^8.0.4": + version "8.0.4" + resolved "https://registry.yarnpkg.com/@hotwired/turbo-rails/-/turbo-rails-8.0.4.tgz#d224f524a9e33fe687cec5d706054eb6fe13fa5b" + integrity sha512-GHCv5+B2VzYZZvMFpg/g9JLx/8pl/8chcubSB7T+Xn1zYOMqAKB6cT80vvWUzxdwfm/2KfaRysfDz+BmvtjFaw== dependencies: - "@hotwired/turbo" "^7.3.0" + "@hotwired/turbo" "^8.0.4" "@rails/actioncable" "^7.0" -"@hotwired/turbo@^7.3.0": - version "7.3.0" - resolved "https://registry.npmjs.org/@hotwired/turbo/-/turbo-7.3.0.tgz" - integrity sha512-Dcu+NaSvHLT7EjrDrkEmH4qET2ZJZ5IcCWmNXxNQTBwlnE5tBZfN6WxZ842n5cHV52DH/AKNirbPBtcEXDLW4g== +"@hotwired/turbo@^8.0.4": + version "8.0.4" + resolved "https://registry.yarnpkg.com/@hotwired/turbo/-/turbo-8.0.4.tgz#5c5361c06a37cdf10dcba4223f1afd0ca1c75091" + integrity sha512-mlZEFUZrJnpfj+g/XeCWWuokvQyN68WvM78JM+0jfSFc98wegm259vCbC1zSllcspRwbgXK31ibehCy5PA78/Q== "@jridgewell/gen-mapping@^0.3.2": version "0.3.3"