Sha256: 12c2455a58b3cdd90142044988ead58bc6ece888c97e4c88f8bcd6cec4c98d1a

Contents?: true

Size: 597 Bytes

Versions: 29

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  # Shim to support ViewComponent v2 slots using the content_areas API for backwards compatibility
  module ContentAreasShim
    # Shim the `with` helper to write content into slots instead
    def with(slot_name, *args, **kwargs, &block)
      Deprecation.warn(Blacklight::ContentAreasShim,
                       'ViewComponents deprecated `with` and it will be removed in ViewComponents 3.0. content_areas. Use slots (https://viewcomponent.org/guide/slots.html) instead.')
      public_send(slot_name, *args, **kwargs, &block)
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
blacklight-7.33.1 app/components/blacklight/content_areas_shim.rb
blacklight-7.33.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.32.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.31.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.30.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.29.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.28.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.27.1 app/components/blacklight/content_areas_shim.rb
blacklight-7.27.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.26.1 app/components/blacklight/content_areas_shim.rb
blacklight-7.26.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.25.3 app/components/blacklight/content_areas_shim.rb
blacklight-7.25.2 app/components/blacklight/content_areas_shim.rb
blacklight-7.25.1 app/components/blacklight/content_areas_shim.rb
blacklight-7.25.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.24.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.23.0.1 app/components/blacklight/content_areas_shim.rb
blacklight-7.23.0 app/components/blacklight/content_areas_shim.rb
blacklight-7.22.2 app/components/blacklight/content_areas_shim.rb
blacklight-7.22.1 app/components/blacklight/content_areas_shim.rb