spree_page_builder 5.4.3 → 5.4.6

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: 49a40e72afca5e6de681749dc12971ac57f4551b3735a299136492b817915b20
4
- data.tar.gz: 2747e99153d44982deff2a8361612a8184db21e2207834fea33e3d83741c176b
3
+ metadata.gz: 11c151841fbe3f4749815ad535f149685115ee7229ad45c91bdbd70ebbe4b44c
4
+ data.tar.gz: 83e70963631fcbc1b620784fe44dcfcfed3ff8714b643b26d42af41c95153292
5
5
  SHA512:
6
- metadata.gz: 7bf6c4a4db3a77add3bcf60e8040c687b8fbd53418550d78db09dcdb2804164469ba8cb7d21024dcc0fcdd5b015511aa139e4030f0b653e52c97cfab2f3186b7
7
- data.tar.gz: 045a726ecb3c67c3e5a5afd94b3d73ff8cfd0498ce82637224c67e2a68e06681b66556c765c389063459c2967cc1e092bb7d5a78ea80339af52fc14450a72f54
6
+ metadata.gz: 5395517466655be32aa5d525726124435113fbedc96418a48a94623d633ec25784d0d41b873cd96b2a414099e4fbdb4c15de3f6ffd72df84f41e19479d80775c
7
+ data.tar.gz: 84f328152de6ed447242ef58da90fd44a22fde09c3e0d3b68a97b9e7f444023bf42ffa505cd4ec648ff34ad1c75f9a95c56295e01298465abb54fa8e7ae09776
@@ -1,8 +1,8 @@
1
1
  module Spree
2
2
  module Admin
3
- class StorefrontController < BaseController
3
+ class StorefrontSettingsController < BaseController
4
4
  include StorefrontBreadcrumbConcern
5
- add_breadcrumb Spree.t(:settings), :edit_admin_storefront_path
5
+ add_breadcrumb Spree.t(:settings), :edit_admin_storefront_settings_path
6
6
 
7
7
  def edit
8
8
  @store = current_store
@@ -17,7 +17,7 @@ module Spree
17
17
  flash[:error] = @store.errors.full_messages.to_sentence
18
18
  end
19
19
 
20
- redirect_to spree.edit_admin_storefront_path
20
+ redirect_to spree.edit_admin_storefront_settings_path
21
21
  end
22
22
 
23
23
  private
@@ -13,7 +13,7 @@
13
13
 
14
14
  <%= render partial: 'spree/admin/shared/error_messages', locals: { target: @store }, class: 'mb-12 pb-12' %>
15
15
 
16
- <%= form_for @store, url: spree.admin_storefront_path, method: :patch do |f| %>
16
+ <%= form_for @store, url: spree.admin_storefront_settings_path, method: :patch do |f| %>
17
17
  <div class="grid grid-cols-12 gap-16">
18
18
  <div class="col-span-12 lg:col-span-6 lg:col-start-4">
19
19
  <div class="card mb-6">
@@ -25,7 +25,7 @@ Rails.application.config.after_initialize do
25
25
  # Storefront Settings
26
26
  storefront.add :storefront_settings,
27
27
  label: :settings,
28
- url: :edit_admin_storefront_path,
28
+ url: :edit_admin_storefront_settings_path,
29
29
  position: 40,
30
30
  if: -> { can?(:manage, current_store) }
31
31
  end
@@ -0,0 +1,18 @@
1
+ # Spree.t returns ActiveSupport::SafeBuffer, which Psych.safe_dump rejects when
2
+ # storing translated defaults in serialized preference columns.
3
+ if defined?(ActiveSupport::SafeBuffer)
4
+ ActiveSupport::SafeBuffer.class_eval do
5
+ unless method_defined?(:encode_with)
6
+ def encode_with(coder)
7
+ coder.represent_scalar(nil, to_s)
8
+ end
9
+ end
10
+ end
11
+ end
12
+
13
+ Rails.application.config.after_initialize do
14
+ permitted_classes = ActiveRecord.yaml_column_permitted_classes
15
+ next if permitted_classes.include?(ActiveSupport::SafeBuffer)
16
+
17
+ ActiveRecord.yaml_column_permitted_classes = permitted_classes + [ActiveSupport::SafeBuffer]
18
+ end
@@ -1,5 +1,18 @@
1
1
  en:
2
2
  spree:
3
+ automatic_taxon_names:
4
+ new_arrivals: New arrivals
5
+ on_sale: On sale
6
+ blog: Blog
7
+ changes_published: Changes published!
8
+ pages_defaults:
9
+ homepage:
10
+ featured_taxon_heading_new_arrivals: New arrivals
11
+ featured_taxon_heading_on_sale: On sale
12
+ image_with_text_heading: About us
13
+ image_with_text_text: Welcome to our shop! We carefully curate high-quality products that we believe in. Our process involves rigorous testing and selection to ensure we only offer items that meet our standards. We're passionate about delivering exceptional value and service to our customers.
14
+ shop_all: Shop All
15
+ theme_is_now_live: Theme is now live
3
16
  admin:
4
17
  edit_theme: Edit theme
5
18
  page_builder:
data/config/routes.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  Spree::Core::Engine.add_routes do
2
2
  namespace :admin, path: Spree.admin_path do
3
3
  # storefront / page builder
4
- resource :storefront, only: [:edit, :update], controller: :storefront
4
+ resource :storefront_settings, only: [:edit, :update], controller: :storefront_settings
5
5
  resources :themes, except: [:new, :show] do
6
6
  member do
7
7
  put :update_with_page
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_page_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.3
4
+ version: 5.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vendo Connect Inc.
@@ -80,7 +80,7 @@ files:
80
80
  - app/controllers/spree/admin/page_links_controller.rb
81
81
  - app/controllers/spree/admin/page_sections_controller.rb
82
82
  - app/controllers/spree/admin/pages_controller.rb
83
- - app/controllers/spree/admin/storefront_controller.rb
83
+ - app/controllers/spree/admin/storefront_settings_controller.rb
84
84
  - app/controllers/spree/admin/themes_controller.rb
85
85
  - app/helpers/spree/admin/page_builder_helper.rb
86
86
  - app/helpers/spree/admin/themes_helper.rb
@@ -270,7 +270,7 @@ files:
270
270
  - app/views/spree/admin/pages/index.html.erb
271
271
  - app/views/spree/admin/pages/new.html.erb
272
272
  - app/views/spree/admin/shared/_page_section_logo.html.erb
273
- - app/views/spree/admin/storefront/edit.html.erb
273
+ - app/views/spree/admin/storefront_settings/edit.html.erb
274
274
  - app/views/spree/admin/stores/form/_checkout_links.html.erb
275
275
  - app/views/spree/admin/themes/_theme.html.erb
276
276
  - app/views/spree/admin/themes/_theme_preview_image.html.erb
@@ -279,6 +279,7 @@ files:
279
279
  - app/views/spree/admin/themes/update.turbo_stream.erb
280
280
  - config/initializers/spree_admin_navigation.rb
281
281
  - config/initializers/spree_admin_partials.rb
282
+ - config/initializers/yaml_column_safe_buffer.rb
282
283
  - config/locales/en.yml
283
284
  - config/routes.rb
284
285
  - db/migrate/20250120094216_create_page_builder_models.rb
@@ -300,9 +301,9 @@ licenses:
300
301
  - AGPL-3.0-or-later
301
302
  metadata:
302
303
  bug_tracker_uri: https://github.com/spree/spree-rails-storefront/issues
303
- changelog_uri: https://github.com/spree/spree-rails-storefront/releases/tag/v5.4.3
304
+ changelog_uri: https://github.com/spree/spree-rails-storefront/releases/tag/v5.4.6
304
305
  documentation_uri: https://docs.spreecommerce.org/
305
- source_code_uri: https://github.com/spree/spree-rails-storefront/tree/v5.4.3
306
+ source_code_uri: https://github.com/spree/spree-rails-storefront/tree/v5.4.6
306
307
  rdoc_options: []
307
308
  require_paths:
308
309
  - lib