app/components/lookbook/base_component.rb in lookbook-1.5.5 vs app/components/lookbook/base_component.rb in lookbook-2.0.0.beta.0

- old
+ new

@@ -1,7 +1,9 @@ module Lookbook class BaseComponent < ViewComponent::Base - include Lookbook::ComponentHelper + include Lookbook::Engine.routes.url_helpers + include Lookbook::UiElementsHelper + include Lookbook::ClassNamesHelper if Engine.runtime_context.rails_older_than?("6.1.0") def initialize(alpine_data: [], **html_attrs) @alpine_data ||= alpine_data @html_attrs = html_attrs @html_attrs[:class] = {"#{@html_attrs[:class]}": true} if @html_attrs[:class].is_a? String