katalyst-content 3.0.0.alpha.5 → 3.0.0.alpha.7

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/builds/katalyst/content.esm.js +1 -1
  3. data/app/assets/builds/katalyst/content.js +1 -1
  4. data/app/assets/builds/katalyst/content.min.js +1 -1
  5. data/app/assets/builds/katalyst/content.min.js.map +1 -1
  6. data/app/assets/stylesheets/katalyst/content/_editor.scss +1 -0
  7. data/app/assets/stylesheets/katalyst/content/editor/statuses.css +14 -0
  8. data/app/assets/stylesheets/katalyst/content/editor/table.css +66 -32
  9. data/app/assets/stylesheets/katalyst/content/editor.css +1 -0
  10. data/app/assets/stylesheets/katalyst/content/frontend/frontend.css +87 -9
  11. data/app/controllers/katalyst/content/items_controller.rb +4 -19
  12. data/app/helpers/katalyst/content/editor_helper.rb +44 -0
  13. data/app/javascript/content/editor/table_controller.js +1 -1
  14. data/app/models/concerns/katalyst/content/has_tree.rb +6 -0
  15. data/app/models/katalyst/content/item.rb +1 -4
  16. data/app/views/katalyst/content/asides/_aside.html+form.erb +4 -26
  17. data/app/views/katalyst/content/asides/_aside.html.erb +8 -6
  18. data/app/views/katalyst/content/columns/_column.html+form.erb +3 -21
  19. data/app/views/katalyst/content/columns/_column.html.erb +5 -5
  20. data/app/views/katalyst/content/contents/_content.html+form.erb +4 -26
  21. data/app/views/katalyst/content/figures/_figure.html+form.erb +6 -30
  22. data/app/views/katalyst/content/groups/_group.html+form.erb +3 -21
  23. data/app/views/katalyst/content/groups/_group.html.erb +2 -2
  24. data/app/views/katalyst/content/items/_form.html.erb +1 -1
  25. data/app/views/katalyst/content/items/_form_errors.html.erb +3 -5
  26. data/app/views/katalyst/content/items/_hidden_fields.html.erb +2 -0
  27. data/app/views/katalyst/content/items/_item.html+form.erb +3 -21
  28. data/app/views/katalyst/content/sections/_section.html+form.erb +3 -21
  29. data/app/views/katalyst/content/sections/_section.html.erb +1 -1
  30. data/app/views/katalyst/content/tables/_table.html+form.erb +32 -39
  31. data/db/migrate/20230515151440_change_katalyst_content_items_show_heading_column.rb +3 -1
  32. data/db/migrate/20250619122652_remove_not_null_on_katalyst_content_items_theme.rb +7 -0
  33. data/lib/katalyst/content/config.rb +1 -0
  34. data/lib/katalyst/content/engine.rb +1 -0
  35. metadata +17 -1
@@ -8,6 +8,7 @@ module Katalyst
8
8
  include ActiveSupport::Configurable
9
9
 
10
10
  config_accessor(:themes) { %w[light dark] }
11
+ config_accessor(:default_theme) { themes.first }
11
12
  alias_method :backgrounds, :themes
12
13
  alias_method :backgrounds=, :themes=
13
14
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "katalyst-govuk-formbuilder"
3
4
  require "katalyst/html_attributes"
4
5
  require "rails/engine"
5
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-content
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.5
4
+ version: 3.0.0.alpha.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
@@ -37,6 +37,20 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: katalyst-govuk-formbuilder
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
40
54
  - !ruby/object:Gem::Dependency
41
55
  name: katalyst-html-attributes
42
56
  requirement: !ruby/object:Gem::Requirement
@@ -99,6 +113,7 @@ files:
99
113
  - app/assets/stylesheets/katalyst/content/editor/editor.css
100
114
  - app/assets/stylesheets/katalyst/content/editor/icons.css
101
115
  - app/assets/stylesheets/katalyst/content/editor/status-bar.css
116
+ - app/assets/stylesheets/katalyst/content/editor/statuses.css
102
117
  - app/assets/stylesheets/katalyst/content/editor/table.css
103
118
  - app/assets/stylesheets/katalyst/content/frontend.css
104
119
  - app/assets/stylesheets/katalyst/content/frontend/frontend.css
@@ -189,6 +204,7 @@ files:
189
204
  - db/migrate/20230515151440_change_katalyst_content_items_show_heading_column.rb
190
205
  - db/migrate/20240826042004_add_style_to_content_items.rb
191
206
  - db/migrate/20250321045027_rename_background_to_theme.rb
207
+ - db/migrate/20250619122652_remove_not_null_on_katalyst_content_items_theme.rb
192
208
  - lib/katalyst/content.rb
193
209
  - lib/katalyst/content/config.rb
194
210
  - lib/katalyst/content/engine.rb