spree_frontend 4.4.0 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +18 -17
  3. data/.eslintrc +1 -1
  4. data/Gemfile +4 -8
  5. data/README.md +55 -2
  6. data/app/assets/config/spree_frontend_manifest.js +1 -0
  7. data/app/assets/javascripts/spree/{api → frontend/api}/main.js +4 -4
  8. data/app/assets/javascripts/spree/{api → frontend/api}/storefront/cart.js +1 -1
  9. data/app/assets/javascripts/spree/frontend/checkout/address.js +3 -3
  10. data/app/assets/javascripts/spree/frontend/currency.js +6 -7
  11. data/app/assets/javascripts/spree/frontend/locale.es6 +1 -2
  12. data/app/assets/javascripts/{spree.js → spree/frontend/main.js} +5 -5
  13. data/app/assets/javascripts/spree/frontend/{turbolinks_scroll_fix.js → turbo_scroll_fix.js} +3 -3
  14. data/app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js +1 -1
  15. data/app/assets/javascripts/spree/frontend/views/spree/product/related.js +1 -1
  16. data/app/assets/javascripts/spree/frontend/views/spree/products/cart_form.js +8 -8
  17. data/app/assets/javascripts/spree/frontend/views/spree/products/description.js +1 -1
  18. data/app/assets/javascripts/spree/frontend/views/spree/products/index.js +1 -1
  19. data/app/assets/javascripts/spree/frontend/views/spree/shared/mobile_navigation.js +4 -4
  20. data/app/assets/javascripts/spree/frontend/views/spree/shared/variant_select.js +3 -3
  21. data/app/assets/javascripts/spree/frontend.js +10 -17
  22. data/app/controllers/spree/addresses_controller.rb +2 -2
  23. data/app/controllers/spree/checkout_controller.rb +2 -2
  24. data/app/controllers/spree/locale_controller.rb +2 -1
  25. data/app/controllers/spree/orders_controller.rb +1 -1
  26. data/app/helpers/spree/frontend_helper.rb +14 -8
  27. data/app/helpers/spree/navigation_helper.rb +1 -1
  28. data/app/helpers/spree/products_filters_helper.rb +1 -1
  29. data/app/views/spree/checkout/edit.html.erb +1 -1
  30. data/app/views/spree/checkout/registration.html.erb +1 -1
  31. data/app/views/spree/orders/_line_item.html.erb +1 -1
  32. data/app/views/spree/orders/_line_item_data.html.erb +1 -1
  33. data/app/views/spree/products/_color_option_type.html.erb +2 -2
  34. data/app/views/spree/products/_filters_desktop.html.erb +3 -3
  35. data/app/views/spree/products/_filters_mobile.html.erb +2 -2
  36. data/app/views/spree/products/_thumbnails.html.erb +2 -2
  37. data/app/views/spree/shared/_head.html.erb +3 -2
  38. data/app/views/spree/shared/_line_item.html.erb +1 -1
  39. data/app/views/spree/shared/_link_to_account.html.erb +1 -1
  40. data/app/views/spree/shared/_login.html.erb +1 -1
  41. data/app/views/spree/shared/_main_nav_bar.html.erb +1 -1
  42. data/app/views/spree/shared/_nav_bar.html.erb +1 -1
  43. data/app/views/spree/shared/_order_details.html.erb +1 -1
  44. data/app/views/spree/shared/_translations.html.erb +1 -1
  45. data/app/views/spree/shared/carousel/_single.html.erb +2 -2
  46. data/app/views/spree/shared/carousel/_thumbnails.html.erb +1 -1
  47. data/app/views/spree/shared/cms/sections/_hero_image.html.erb +9 -9
  48. data/app/views/spree/shared/cms/sections/_image_gallery.html.erb +21 -21
  49. data/app/views/spree/shared/cms/sections/_side_by_side_images.html.erb +14 -14
  50. data/app/views/spree/taxons/_header.html.erb +1 -1
  51. data/app/views/spree/users/_address_controls.html.erb +1 -1
  52. data/lib/generators/spree/frontend/install/install_generator.rb +1 -1
  53. data/lib/spree/frontend/configuration.rb +18 -0
  54. data/lib/spree/frontend/engine.rb +3 -8
  55. data/lib/spree/frontend/version.rb +1 -1
  56. data/lib/spree/frontend.rb +2 -1
  57. data/spree_frontend.gemspec +3 -2
  58. metadata +35 -21
  59. data/app/models/spree/frontend_configuration.rb +0 -16
@@ -9,7 +9,8 @@ require 'inline_svg'
9
9
  require 'popper_js'
10
10
  require 'canonical-rails'
11
11
  require 'jquery-rails'
12
- require 'turbolinks'
12
+ require 'jsbundling-rails'
13
+ require 'turbo-rails'
13
14
  require 'responders'
14
15
 
15
16
  require 'spree/frontend/middleware/seo_assist'
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Spree::Frontend.version
8
8
  s.authors = ['Sean Schofield', 'Spark Solutions']
9
9
  s.email = 'hello@spreecommerce.org'
10
- s.summary = 'The default Storefront built with Rails and Turbolinks for Spree eCommerce platform'
10
+ s.summary = 'The default Storefront built with Rails and Turbo/Hotwire for Spree eCommerce platform'
11
11
  s.description = s.summary
12
12
  s.homepage = 'https://spreecommerce.org'
13
13
  s.license = 'BSD-3-Clause'
@@ -33,9 +33,10 @@ Gem::Specification.new do |s|
33
33
  s.add_dependency 'glyphicons', '~> 1.0'
34
34
  s.add_dependency 'canonical-rails', '~> 0.2', '>= 0.2.10'
35
35
  s.add_dependency 'inline_svg', '~> 1.5'
36
+ s.add_dependency 'jsbundling-rails'
36
37
  s.add_dependency 'jquery-rails', '~> 4.3'
37
38
  s.add_dependency 'sass-rails', '>= 5'
38
- s.add_dependency 'turbolinks', '~> 5.2'
39
+ s.add_dependency 'turbo-rails'
39
40
  s.add_dependency 'responders'
40
41
  s.add_dependency 'sprockets', '~> 4.0'
41
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-16 00:00:00.000000000 Z
12
+ date: 2022-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_api
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 4.4.0
20
+ version: 4.5.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 4.4.0
27
+ version: 4.5.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: spree_core
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 4.4.0
34
+ version: 4.5.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 4.4.0
41
+ version: 4.5.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: babel-transpiler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -115,6 +115,20 @@ dependencies:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '1.5'
118
+ - !ruby/object:Gem::Dependency
119
+ name: jsbundling-rails
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :runtime
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
118
132
  - !ruby/object:Gem::Dependency
119
133
  name: jquery-rails
120
134
  requirement: !ruby/object:Gem::Requirement
@@ -144,19 +158,19 @@ dependencies:
144
158
  - !ruby/object:Gem::Version
145
159
  version: '5'
146
160
  - !ruby/object:Gem::Dependency
147
- name: turbolinks
161
+ name: turbo-rails
148
162
  requirement: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - "~>"
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
- version: '5.2'
166
+ version: '0'
153
167
  type: :runtime
154
168
  prerelease: false
155
169
  version_requirements: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - "~>"
171
+ - - ">="
158
172
  - !ruby/object:Gem::Version
159
- version: '5.2'
173
+ version: '0'
160
174
  - !ruby/object:Gem::Dependency
161
175
  name: responders
162
176
  requirement: !ruby/object:Gem::Requirement
@@ -199,7 +213,7 @@ dependencies:
199
213
  - - ">="
200
214
  - !ruby/object:Gem::Version
201
215
  version: '0'
202
- description: The default Storefront built with Rails and Turbolinks for Spree eCommerce
216
+ description: The default Storefront built with Rails and Turbo/Hotwire for Spree eCommerce
203
217
  platform
204
218
  email: hello@spreecommerce.org
205
219
  executables: []
@@ -571,11 +585,10 @@ files:
571
585
  - app/assets/images/search.svg
572
586
  - app/assets/images/twitter.svg
573
587
  - app/assets/images/vimeo.svg
574
- - app/assets/javascripts/spree.js
575
- - app/assets/javascripts/spree/api/main.js
576
- - app/assets/javascripts/spree/api/storefront/cart.js
577
588
  - app/assets/javascripts/spree/frontend.js
578
589
  - app/assets/javascripts/spree/frontend/account.js
590
+ - app/assets/javascripts/spree/frontend/api/main.js
591
+ - app/assets/javascripts/spree/frontend/api/storefront/cart.js
579
592
  - app/assets/javascripts/spree/frontend/api_tokens.js
580
593
  - app/assets/javascripts/spree/frontend/carousel-noconflict.js
581
594
  - app/assets/javascripts/spree/frontend/cart.js
@@ -590,8 +603,9 @@ files:
590
603
  - app/assets/javascripts/spree/frontend/currency.js
591
604
  - app/assets/javascripts/spree/frontend/locale.es6
592
605
  - app/assets/javascripts/spree/frontend/login.js
606
+ - app/assets/javascripts/spree/frontend/main.js
593
607
  - app/assets/javascripts/spree/frontend/main_nav_bar.js
594
- - app/assets/javascripts/spree/frontend/turbolinks_scroll_fix.js
608
+ - app/assets/javascripts/spree/frontend/turbo_scroll_fix.js
595
609
  - app/assets/javascripts/spree/frontend/viewport.js
596
610
  - app/assets/javascripts/spree/frontend/views/spree/home/product_carousels.js
597
611
  - app/assets/javascripts/spree/frontend/views/spree/layouts/spree_application.js
@@ -704,7 +718,6 @@ files:
704
718
  - app/helpers/spree/store_helper.rb
705
719
  - app/helpers/spree/structured_data_helper.rb
706
720
  - app/helpers/spree/taxons_helper.rb
707
- - app/models/spree/frontend_configuration.rb
708
721
  - app/services/spree/build_localized_redirect_url.rb
709
722
  - app/views/kaminari/twitter-bootstrap-4/_first_page.html.erb
710
723
  - app/views/kaminari/twitter-bootstrap-4/_gap.html.erb
@@ -840,6 +853,7 @@ files:
840
853
  - lib/generators/spree/frontend/install/templates/vendor/assets/javascripts/spree/frontend/all.js
841
854
  - lib/generators/spree/frontend/install/templates/vendor/assets/stylesheets/spree/frontend/all.css
842
855
  - lib/spree/frontend.rb
856
+ - lib/spree/frontend/configuration.rb
843
857
  - lib/spree/frontend/engine.rb
844
858
  - lib/spree/frontend/middleware/seo_assist.rb
845
859
  - lib/spree/frontend/version.rb
@@ -861,9 +875,9 @@ licenses:
861
875
  - BSD-3-Clause
862
876
  metadata:
863
877
  bug_tracker_uri: https://github.com/spree/spree/issues
864
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.4.0
878
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.5.0
865
879
  documentation_uri: https://dev-docs.spreecommerce.org/
866
- source_code_uri: https://github.com/spree/spree/tree/v4.4.0
880
+ source_code_uri: https://github.com/spree/spree/tree/v4.5.0
867
881
  post_install_message:
868
882
  rdoc_options: []
869
883
  require_paths:
@@ -880,9 +894,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
880
894
  version: '0'
881
895
  requirements:
882
896
  - none
883
- rubygems_version: 3.2.32
897
+ rubygems_version: 3.0.9
884
898
  signing_key:
885
899
  specification_version: 4
886
- summary: The default Storefront built with Rails and Turbolinks for Spree eCommerce
900
+ summary: The default Storefront built with Rails and Turbo/Hotwire for Spree eCommerce
887
901
  platform
888
902
  test_files: []
@@ -1,16 +0,0 @@
1
- module Spree
2
- class FrontendConfiguration < Preferences::Configuration
3
- preference :additional_filters_partials, :array, default: %w()
4
- preference :always_put_site_name_in_title, :boolean, default: true
5
- preference :coupon_codes_enabled, :boolean, default: true # Determines if we show coupon code form at cart and checkout
6
- preference :http_cache_enabled, :boolean, default: true
7
- preference :layout, :string, default: 'spree/layouts/spree_application'
8
- preference :locale, :string, default: nil
9
- preference :products_filters, :array, default: %w(keywords price sort_by)
10
- preference :remember_me_enabled, :boolean, default: true
11
- preference :shipping_instructions, :boolean, default: false # Request instructions/info for shipping
12
- preference :show_raw_product_description, :boolean, default: false
13
- preference :show_store_selector, :boolean, default: false
14
- preference :title_site_name_separator, :string, default: '-' # When always_put_site_name_in_title is true, insert a separator character before the site name in the title
15
- end
16
- end