blacklight 9.0.0.beta5 → 9.0.0.beta7

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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.github/matrix.json +8 -1
  3. data/.solr_wrapper.yml +1 -1
  4. data/VERSION +1 -1
  5. data/app/assets/javascripts/blacklight/blacklight.esm.js +12 -3
  6. data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
  7. data/app/assets/javascripts/blacklight/blacklight.js +12 -3
  8. data/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
  9. data/app/components/blacklight/constraint_component.html.erb +1 -5
  10. data/app/components/blacklight/constraint_component.rb +11 -0
  11. data/app/components/blacklight/constraints_component.html.erb +3 -8
  12. data/app/components/blacklight/constraints_component.rb +57 -12
  13. data/app/components/blacklight/document/bookmark_component.rb +1 -1
  14. data/app/components/blacklight/document/page_header_component.rb +1 -1
  15. data/app/components/blacklight/document_component.rb +15 -16
  16. data/app/components/blacklight/facet_item_pivot_component.rb +4 -0
  17. data/app/components/blacklight/facets/item_component.rb +3 -0
  18. data/app/components/blacklight/facets/list_component.rb +2 -1
  19. data/app/components/blacklight/facets/selected_value_component.rb +1 -1
  20. data/app/components/blacklight/header_component.rb +2 -2
  21. data/app/controllers/concerns/blacklight/catalog.rb +8 -4
  22. data/app/helpers/blacklight/catalog_helper_behavior.rb +4 -2
  23. data/app/helpers/blacklight/facets_helper_behavior.rb +0 -14
  24. data/app/javascript/blacklight-frontend/checkbox_submit.js +2 -2
  25. data/app/javascript/blacklight-frontend/facet_suggest.js +2 -1
  26. data/app/javascript/blacklight-frontend/modal.js +8 -0
  27. data/app/presenters/blacklight/constraint_presenter.rb +22 -0
  28. data/app/presenters/blacklight/facet_field_presenter.rb +9 -0
  29. data/app/presenters/blacklight/facet_grouped_item_presenter.rb +6 -0
  30. data/app/presenters/blacklight/facet_item_pivot_presenter.rb +1 -5
  31. data/app/presenters/blacklight/facet_item_presenter.rb +5 -18
  32. data/app/views/catalog/_document.atom.builder +1 -1
  33. data/app/views/catalog/_document.html.erb +1 -1
  34. data/app/views/catalog/_show_main_content.html.erb +1 -1
  35. data/app/views/catalog/index.json.jbuilder +5 -3
  36. data/blacklight.gemspec +1 -1
  37. data/config/locales/blacklight.ar.yml +1 -2
  38. data/config/locales/blacklight.ca.yml +1 -2
  39. data/config/locales/blacklight.de.yml +1 -2
  40. data/config/locales/blacklight.en.yml +1 -2
  41. data/config/locales/blacklight.es.yml +1 -2
  42. data/config/locales/blacklight.fr.yml +1 -2
  43. data/config/locales/blacklight.hu.yml +1 -2
  44. data/config/locales/blacklight.it.yml +1 -2
  45. data/config/locales/blacklight.nl.yml +1 -2
  46. data/config/locales/blacklight.pt-BR.yml +1 -2
  47. data/config/locales/blacklight.sq.yml +1 -2
  48. data/config/locales/blacklight.zh.yml +1 -2
  49. data/lib/blacklight/component.rb +5 -1
  50. data/lib/blacklight/configuration/facet_field.rb +2 -0
  51. data/lib/blacklight/configuration.rb +2 -0
  52. data/lib/generators/blacklight/templates/.solr_wrapper.yml +1 -1
  53. data/package.json +1 -1
  54. data/spec/components/blacklight/constraints_component_spec.rb +2 -2
  55. data/spec/components/blacklight/document_component_spec.rb +9 -9
  56. data/spec/components/blacklight/facets/index_navigation_component_spec.rb +2 -1
  57. data/spec/components/blacklight/facets/list_component_spec.rb +6 -0
  58. data/spec/components/blacklight/facets/pivot_list_component_spec.rb +6 -0
  59. data/spec/components/blacklight/facets/suggest_component_spec.rb +2 -1
  60. data/spec/features/search_filters_spec.rb +3 -3
  61. data/spec/features/search_spec.rb +3 -3
  62. data/spec/presenters/blacklight/constraint_presenter_spec.rb +32 -0
  63. data/spec/presenters/blacklight/facet_item_presenter_spec.rb +0 -7
  64. data/spec/support/presenter_test_helpers.rb +1 -1
  65. data/spec/views/catalog/index.atom.builder_spec.rb +2 -0
  66. metadata +14 -5
@@ -111,7 +111,7 @@ de:
111
111
  remove:
112
112
  label_value: "Filter %{label}: %{value} entfernen"
113
113
  value: Filter %{value} entfernen
114
- title: "Sie suchten nach:"
114
+ title: "Ihre Auswahl:"
115
115
  form:
116
116
  search:
117
117
  label: suchen nach
@@ -147,7 +147,6 @@ de:
147
147
  submit: Aktualisieren
148
148
  title: Anzahl der Ergebnisse, die pro Seite angezeigt werden
149
149
  rss_feed: RSS für Ergebnisse
150
- search_constraints_header: Suchen
151
150
  search_results: Suchergebnisse
152
151
  show:
153
152
  label: "%{label}:"
@@ -129,7 +129,7 @@ en:
129
129
  remove:
130
130
  label_value: "Remove constraint %{label}: %{value}"
131
131
  value: Remove constraint %{value}
132
- title: "You searched for:"
132
+ title: "Your selections:"
133
133
  form:
134
134
  search:
135
135
  label: search for
@@ -165,7 +165,6 @@ en:
165
165
  submit: Update
166
166
  title: Number of results to display per page
167
167
  rss_feed: RSS for results
168
- search_constraints_header: Search Constraints
169
168
  search_results: Search Results
170
169
  show:
171
170
  label: "%{label}:"
@@ -110,7 +110,7 @@ es:
110
110
  remove:
111
111
  label_value: "Eliminar la restricción%{label}: %{value}"
112
112
  value: Eliminar la restricción %{value}
113
- title: "Usted ha buscado:"
113
+ title: "Tus selecciones:"
114
114
  form:
115
115
  search:
116
116
  label: buscar
@@ -146,7 +146,6 @@ es:
146
146
  submit: Actualización
147
147
  title: El número de resultados a mostrar por página
148
148
  rss_feed: RSS de los resultados
149
- search_constraints_header: Buscar
150
149
  search_results: Resultados de la búsqueda
151
150
  show:
152
151
  label: "%{label}:"
@@ -110,7 +110,7 @@ fr:
110
110
  remove:
111
111
  label_value: "Supprimer la restriction %{label}: %{value}"
112
112
  value: Supprimer la restriction %{value}
113
- title: "Vous avez demandé :"
113
+ title: "Vos sélections:"
114
114
  form:
115
115
  search:
116
116
  label: Rechercher
@@ -146,7 +146,6 @@ fr:
146
146
  submit: mettre à jour
147
147
  title: Nombre de résultats à afficher par page
148
148
  rss_feed: RSS pour les résultats
149
- search_constraints_header: Recherche
150
149
  search_results: Résultats de recherche
151
150
  show:
152
151
  label: "%{label}:"
@@ -108,7 +108,7 @@ hu:
108
108
  remove:
109
109
  label_value: "Feltétel eltávolítása %{label}: %{value}"
110
110
  value: Feltételek eltávolítása %{value}
111
- title: "Ön ezt kereste:"
111
+ title: "Az Ön választása:"
112
112
  form:
113
113
  search:
114
114
  label: keresés
@@ -144,7 +144,6 @@ hu:
144
144
  submit: Frissítés
145
145
  title: Az eredmények száma oldalanként
146
146
  rss_feed: Eredmények RSS-ként
147
- search_constraints_header: Keresés feltételei
148
147
  search_results: Keresés eredményei
149
148
  show:
150
149
  label: "%{label}:"
@@ -111,7 +111,7 @@ it:
111
111
  remove:
112
112
  label_value: "Cancella il filtro %{label}: %{value}"
113
113
  value: Cancella il filtro %{value}
114
- title: "Hai cercato per:"
114
+ title: "Le tue selezioni:"
115
115
  form:
116
116
  search:
117
117
  label: cerca per
@@ -147,7 +147,6 @@ it:
147
147
  submit: Aggiorna
148
148
  title: Risultati per pagina
149
149
  rss_feed: RSS per i risultati
150
- search_constraints_header: Ricerca
151
150
  search_results: Risultati della ricerca
152
151
  show:
153
152
  label: "%{label}:"
@@ -108,7 +108,7 @@ nl:
108
108
  remove:
109
109
  label_value: "Verwijder zoekfilter %{label}: %{value}"
110
110
  value: Verwijder zoekfilter %{value}
111
- title: "U zocht op:"
111
+ title: "Uw selecties:"
112
112
  form:
113
113
  search:
114
114
  label: zoeken op
@@ -144,7 +144,6 @@ nl:
144
144
  submit: Update
145
145
  title: Toon aantal zoekresultaten per pagina
146
146
  rss_feed: RSS voor zoekresultaten
147
- search_constraints_header: Zoek filters
148
147
  search_results: Zoek resultaten
149
148
  show:
150
149
  label: "%{label}:"
@@ -109,7 +109,7 @@ pt-BR:
109
109
  remove:
110
110
  label_value: "Remover %{label}: %{value}"
111
111
  value: Remover filtro %{value}
112
- title: "Sua busca por:"
112
+ title: "Suas seleções:"
113
113
  form:
114
114
  search:
115
115
  label: busca
@@ -145,7 +145,6 @@ pt-BR:
145
145
  submit: Atualizar
146
146
  title: Número de resultados para mostrar por página
147
147
  rss_feed: RSS para resultadoss
148
- search_constraints_header: Busca
149
148
  search_results: Resultados da Busca
150
149
  show:
151
150
  label: "%{label}:"
@@ -108,7 +108,7 @@ sq:
108
108
  remove:
109
109
  label_value: "Fshij kufizimin %{label}: %{value}"
110
110
  value: Fshij kufizimin %{value}
111
- title: "Ju keni kërkuar për:"
111
+ title: "Zgjedhjet tuaja:"
112
112
  form:
113
113
  search:
114
114
  label: kërko për
@@ -144,7 +144,6 @@ sq:
144
144
  submit: Përditëso
145
145
  title: Numri i rezultateve që do të shfaqen për faqe
146
146
  rss_feed: RSS për rezultatet
147
- search_constraints_header: Kufizimet e kërkimit
148
147
  search_results: Rezultatet e kërkimit
149
148
  show:
150
149
  label: "%{label}:"
@@ -108,7 +108,7 @@ zh:
108
108
  remove:
109
109
  label_value: "删除限定条件 %{label}: %{value}"
110
110
  value: 删除限定条件 %{value}
111
- title: 你在搜索:
111
+ title: 您的选择:
112
112
  form:
113
113
  search:
114
114
  label: 搜索
@@ -144,7 +144,6 @@ zh:
144
144
  submit: 更新
145
145
  title: 每页显示结果数
146
146
  rss_feed: 搜索结果RSS
147
- search_constraints_header: 搜索条件
148
147
  search_results: 搜索结果
149
148
  show:
150
149
  label: "%{label}:"
@@ -9,9 +9,13 @@ module Blacklight
9
9
  @__vc_compiler = nil
10
10
  end
11
11
 
12
+ # This allows the host application to provide erb templates that override the templates
13
+ # provided by Blacklight.
12
14
  def sidecar_files(*args, **kwargs)
13
15
  upstream_sidecar_files(*args, **kwargs).map do |path|
14
- app_path = Rails.root.join(path.slice(path.index(view_component_path)..-1).to_s).to_s
16
+ components_path = ViewComponent::VERSION::MAJOR == 3 ? view_component_path : config.generate.path
17
+
18
+ app_path = Rails.root.join(path.slice(path.index(components_path)..-1).to_s).to_s
15
19
 
16
20
  if File.exist?(app_path)
17
21
  app_path
@@ -76,6 +76,8 @@ module Blacklight
76
76
  self.index_range = 'A'..'Z' if index_range == true
77
77
  self.presenter ||= Blacklight::FacetFieldPresenter
78
78
  self.item_presenter ||= Blacklight::FacetItemPresenter
79
+ self.constraint_presenter ||= Blacklight::ConstraintPresenter
80
+
79
81
  self.component = Blacklight::Facets::ListComponent if component.nil? || component == true
80
82
  self.advanced_search_component ||= Blacklight::Facets::CheckboxesComponent
81
83
  self.item_component ||= Blacklight::Facets::ItemComponent
@@ -148,6 +148,8 @@ module Blacklight
148
148
  property :index, default: ViewConfig::Index.new(
149
149
  # document presenter class used by helpers and views
150
150
  document_presenter_class: nil,
151
+ # document presenter used for json responses
152
+ json_presenter_class: Blacklight::JsonPresenter,
151
153
  # component class used to render a document
152
154
  document_component: Blacklight::DocumentComponent,
153
155
  sidebar_component: Blacklight::Search::SidebarComponent,
@@ -3,5 +3,5 @@
3
3
  env:
4
4
  SOLR_MODULES: analysis-extras
5
5
  collection:
6
- dir: solr/conf/
6
+ dir: solr/
7
7
  name: blacklight-core
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blacklight-frontend",
3
- "version": "9.0.0-beta5",
3
+ "version": "9.0.0-beta7",
4
4
  "description": "The frontend code and styles for Blacklight",
5
5
  "exports": {
6
6
  "./blacklight.esm.js": "./app/assets/javascripts/blacklight/blacklight.esm.js",
@@ -36,7 +36,7 @@ RSpec.describe Blacklight::ConstraintsComponent, type: :component do
36
36
  end
37
37
 
38
38
  it 'has a header' do
39
- expect(page).to have_css('h2', text: 'Search Constraints')
39
+ expect(page).to have_css('h2', text: 'Your selections:')
40
40
  end
41
41
 
42
42
  it 'wraps the output in a div' do
@@ -79,7 +79,7 @@ RSpec.describe Blacklight::ConstraintsComponent, type: :component do
79
79
  end
80
80
 
81
81
  it 'omits the headers' do
82
- expect(page).to have_no_css('h2', text: 'Search Constraints')
82
+ expect(page).to have_no_css('h2', text: 'Your selections:')
83
83
  end
84
84
  end
85
85
  end
@@ -34,11 +34,11 @@ RSpec.describe Blacklight::DocumentComponent, type: :component do
34
34
  end
35
35
 
36
36
  it 'has some defined content areas' do
37
- component.set_slot(:title) { 'Title' }
38
- component.set_slot(:embed, nil, 'Embed')
39
- component.set_slot(:metadata, nil, 'Metadata')
40
- component.set_slot(:thumbnail, nil, 'Thumbnail')
41
- component.set_slot(:actions) { 'Actions' }
37
+ component.with_title { 'Title' }
38
+ component.with_embed('Embed')
39
+ component.with_metadata('Metadata')
40
+ component.with_thumbnail('Thumbnail')
41
+ component.with_actions { 'Actions' }
42
42
  render_inline component
43
43
 
44
44
  expect(page).to have_content 'Title'
@@ -49,7 +49,7 @@ RSpec.describe Blacklight::DocumentComponent, type: :component do
49
49
  end
50
50
 
51
51
  it 'has schema.org properties' do
52
- component.set_slot(:body) { '-' }
52
+ component.with_body { '-' }
53
53
  render_inline component
54
54
 
55
55
  expect(page).to have_css 'article[@itemtype="http://schema.org/Thing"]'
@@ -58,7 +58,7 @@ RSpec.describe Blacklight::DocumentComponent, type: :component do
58
58
 
59
59
  context 'with a provided body' do
60
60
  it 'opts-out of normal component content' do
61
- component.set_slot(:body) { 'Body content' }
61
+ component.with_body { 'Body content' }
62
62
  render_inline component
63
63
 
64
64
  expect(page).to have_content 'Body content'
@@ -75,7 +75,7 @@ RSpec.describe Blacklight::DocumentComponent, type: :component do
75
75
  let(:attr) { { counter: 5 } }
76
76
 
77
77
  it 'has data properties' do
78
- component.set_slot(:body) { '-' }
78
+ component.with_body { '-' }
79
79
  render_inline component
80
80
 
81
81
  expect(page).to have_css 'article[@data-document-id="x"]'
@@ -137,7 +137,7 @@ RSpec.describe Blacklight::DocumentComponent, type: :component do
137
137
  end
138
138
 
139
139
  it 'renders with an id' do
140
- component.set_slot(:body) { '-' }
140
+ component.with_body { '-' }
141
141
  render_inline component
142
142
 
143
143
  expect(page).to have_css 'article#document'
@@ -16,7 +16,8 @@ RSpec.describe Blacklight::Facets::IndexNavigationComponent, type: :component do
16
16
 
17
17
  it 'renders the facet index navigation range' do
18
18
  expect(page).to have_css '.pagination'
19
- expect(page).to have_link '0', href: '/catalog/facet/language.html?facet.prefix=0&facet.sort=index'
19
+ facet_path = ViewComponent::VERSION::MAJOR == 3 ? '/catalog/facet/language.html' : '/catalog/facet/language'
20
+ expect(page).to have_link '0', href: "#{facet_path}?facet.prefix=0&facet.sort=index"
20
21
  expect(page).to have_link '1'
21
22
  expect(page).to have_link '8'
22
23
  expect(page).to have_link '9'
@@ -4,9 +4,15 @@ require 'spec_helper'
4
4
 
5
5
  RSpec.describe Blacklight::Facets::ListComponent, type: :component do
6
6
  before do
7
+ allow(facet_field).to receive(:item_presenter).and_return(item_presenter)
8
+
7
9
  render_inline(described_class.new(facet_field: facet_field))
8
10
  end
9
11
 
12
+ let(:item_presenter) do
13
+ facet_config.item_presenter.new('stuff', facet_config, vc_test_controller.view_context, facet_field.key)
14
+ end
15
+
10
16
  let(:facet_field) do
11
17
  instance_double(
12
18
  Blacklight::FacetFieldPresenter,
@@ -4,9 +4,15 @@ require 'spec_helper'
4
4
 
5
5
  RSpec.describe Blacklight::Facets::PivotListComponent, type: :component do
6
6
  before do
7
+ allow(facet_field).to receive(:item_presenter).and_return(item_presenter)
8
+
7
9
  render_inline(described_class.new(facet_field: facet_field))
8
10
  end
9
11
 
12
+ let(:item_presenter) do
13
+ facet_config.item_presenter.new('stuff', facet_config, vc_test_controller.view_context, facet_field.key)
14
+ end
15
+
10
16
  let(:facet_field) do
11
17
  instance_double(
12
18
  Blacklight::FacetFieldPresenter,
@@ -28,7 +28,8 @@ RSpec.describe Blacklight::Facets::SuggestComponent, type: :component do
28
28
  it 'has an input with the data-facet-search-context attribute, which the javascript needs to determine the current search context' do
29
29
  with_request_url "/catalog/facet/language_facet?f%5Bformat%5D%5B%5D=Book&facet.prefix=R&facet.sort=index&q=tibet&search_field=all_fields" do
30
30
  rendered = render_inline component
31
- expect(rendered.css('input[data-facet-search-context="/catalog/facet/language_facet.html?f%5Bformat%5D%5B%5D=Book&facet.prefix=R&facet.sort=index&q=tibet&search_field=all_fields"]').count).to eq 1
31
+ facet_path = ViewComponent::VERSION::MAJOR == 3 ? '/catalog/facet/language_facet.html' : '/catalog/facet/language_facet'
32
+ expect(rendered.css("input[data-facet-search-context=\"#{facet_path}?f%5Bformat%5D%5B%5D=Book&facet.prefix=R&facet.sort=index&q=tibet&search_field=all_fields\"]").count).to eq 1
32
33
  end
33
34
  end
34
35
 
@@ -53,7 +53,7 @@ RSpec.describe "Facets" do
53
53
  expect(page).to have_css("span.facet-count.selected", text: "2")
54
54
  end
55
55
  within "#appliedParams" do
56
- expect(page).to have_content "You searched for:"
56
+ expect(page).to have_content "Your selections:"
57
57
  expect(page).to have_content "history"
58
58
  end
59
59
 
@@ -140,7 +140,7 @@ RSpec.describe "Facets" do
140
140
  expect(page).to have_css("span.facet-count.selected", text: "2")
141
141
  end
142
142
  within "#appliedParams" do
143
- expect(page).to have_content "You searched for:"
143
+ expect(page).to have_content "Your selections:"
144
144
  expect(page).to have_content "history"
145
145
  end
146
146
  end
@@ -164,7 +164,7 @@ RSpec.describe "Facets" do
164
164
  expect(page).to have_css("span.facet-count.selected", text: "2")
165
165
  end
166
166
  within "#appliedParams" do
167
- expect(page).to have_content "You searched for:"
167
+ expect(page).to have_content "Your selections:"
168
168
  expect(page).to have_content "history"
169
169
  end
170
170
  end
@@ -44,7 +44,7 @@ RSpec.describe "Search Page" do
44
44
  Capybara.ignore_hidden_elements = tmp_value
45
45
 
46
46
  within "#appliedParams" do
47
- expect(page).to have_content "You searched for:"
47
+ expect(page).to have_content "Your selections:"
48
48
  expect(page).to have_content "history"
49
49
  end
50
50
 
@@ -74,7 +74,7 @@ RSpec.describe "Search Page" do
74
74
  click_on 'search'
75
75
 
76
76
  within "#appliedParams" do
77
- expect(page).to have_content "You searched for:"
77
+ expect(page).to have_content "Your selections:"
78
78
  expect(page).to have_content "Title"
79
79
  expect(page).to have_content "inmul"
80
80
  end
@@ -104,7 +104,7 @@ RSpec.describe "Search Page" do
104
104
  fill_in "q", with: 'history'
105
105
  click_on 'search'
106
106
  within "#appliedParams" do
107
- expect(page).to have_content "You searched for:"
107
+ expect(page).to have_content "Your selections:"
108
108
  expect(page).to have_content "history"
109
109
  end
110
110
 
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe Blacklight::ConstraintPresenter, type: :presenter do
6
+ subject(:presenter) do
7
+ described_class.new(facet_item_presenter: facet_item_presenter, field_label: field_label)
8
+ end
9
+
10
+ let(:facet_item_presenter) do
11
+ instance_double(Blacklight::FacetItemPresenter, label: 'item 1', remove_href: '/catalog')
12
+ end
13
+ let(:field_label) { 'field 1' }
14
+
15
+ describe '#constraint_label' do
16
+ subject { presenter.constraint_label }
17
+
18
+ it { is_expected.to eq 'item 1' }
19
+ end
20
+
21
+ describe '#field_label' do
22
+ subject { presenter.field_label }
23
+
24
+ it { is_expected.to eq 'field 1' }
25
+ end
26
+
27
+ describe '#remove_href' do
28
+ subject { presenter.remove_href }
29
+
30
+ it { is_expected.to eq '/catalog' }
31
+ end
32
+ end
@@ -56,13 +56,6 @@ RSpec.describe Blacklight::FacetItemPresenter, type: :presenter do
56
56
  end
57
57
  end
58
58
 
59
- describe '#constraint_label' do
60
- it 'provides the label for the constraint' do
61
- allow(facet_config).to receive_messages(query: nil, date: nil, helper_method: nil, url_method: nil)
62
- expect(presenter.constraint_label).to eq presenter.label
63
- end
64
- end
65
-
66
59
  describe '#href' do
67
60
  let(:filter_field) { instance_double(Blacklight::SearchState::FilterField, include?: false) }
68
61
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module PresenterTestHelpers
4
4
  def controller
5
- @controller ||= ViewComponent::Base.test_controller.constantize.new.tap { |c| c.request = request }.extend(Rails.application.routes.url_helpers)
5
+ @controller ||= ApplicationController.new.tap { |c| c.request = request }.extend(Rails.application.routes.url_helpers)
6
6
  end
7
7
 
8
8
  def request
@@ -96,6 +96,8 @@ RSpec.describe "catalog/index" do
96
96
  context 'with a custom template' do
97
97
  before do
98
98
  my_template = Class.new(ViewComponent::Base) do
99
+ def initialize(**); end
100
+
99
101
  def call
100
102
  'whatever content'.html_safe
101
103
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.0.beta5
4
+ version: 9.0.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
@@ -112,16 +112,22 @@ dependencies:
112
112
  name: view_component
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '3.0'
118
+ - - "<"
116
119
  - !ruby/object:Gem::Version
117
- version: '3.9'
120
+ version: '5.0'
118
121
  type: :runtime
119
122
  prerelease: false
120
123
  version_requirements: !ruby/object:Gem::Requirement
121
124
  requirements:
122
- - - "~>"
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '3.0'
128
+ - - "<"
123
129
  - !ruby/object:Gem::Version
124
- version: '3.9'
130
+ version: '5.0'
125
131
  - !ruby/object:Gem::Dependency
126
132
  name: zeitwerk
127
133
  requirement: !ruby/object:Gem::Requirement
@@ -632,6 +638,7 @@ files:
632
638
  - app/models/search_builder.rb
633
639
  - app/models/solr_document.rb
634
640
  - app/presenters/blacklight/clause_presenter.rb
641
+ - app/presenters/blacklight/constraint_presenter.rb
635
642
  - app/presenters/blacklight/document_presenter.rb
636
643
  - app/presenters/blacklight/facet_checkbox_item_presenter.rb
637
644
  - app/presenters/blacklight/facet_field_presenter.rb
@@ -960,6 +967,7 @@ files:
960
967
  - spec/models/search_spec.rb
961
968
  - spec/models/solr_document_spec.rb
962
969
  - spec/presenters/blacklight/clause_presenter_spec.rb
970
+ - spec/presenters/blacklight/constraint_presenter_spec.rb
963
971
  - spec/presenters/blacklight/document_presenter_spec.rb
964
972
  - spec/presenters/blacklight/facet_checkbox_item_presenter_spec.rb
965
973
  - spec/presenters/blacklight/facet_field_presenter_spec.rb
@@ -1144,6 +1152,7 @@ test_files:
1144
1152
  - spec/models/search_spec.rb
1145
1153
  - spec/models/solr_document_spec.rb
1146
1154
  - spec/presenters/blacklight/clause_presenter_spec.rb
1155
+ - spec/presenters/blacklight/constraint_presenter_spec.rb
1147
1156
  - spec/presenters/blacklight/document_presenter_spec.rb
1148
1157
  - spec/presenters/blacklight/facet_checkbox_item_presenter_spec.rb
1149
1158
  - spec/presenters/blacklight/facet_field_presenter_spec.rb