katalyst-content 2.3.2 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c608b37a60d58ed60f34a143905ae5c84164059c69da0e169de5ae779c894637
4
- data.tar.gz: 13245a706e67570c67804e0c8eb2adccc2ae11beb3c41446c8a603a216a8d7a2
3
+ metadata.gz: 1bfb581f4ada2518243e91f8194efd3d150259633374726b2efc6329bdf7ec69
4
+ data.tar.gz: d87c6cddedd46a9a87adcecccd649b5b9f3e0253b2444bfbc36a3a7e02e9b62f
5
5
  SHA512:
6
- metadata.gz: a500f1bcac344837b71d99cc0487e81fe67c5c93aa262a7f1186f5b6c3098bab36a11468882542e26bd3c57e2a7e07fb9513dd7b30710bae85f7456e257f42fc
7
- data.tar.gz: e18353c797418dd4577b0216680fdb5a0c91acd0087de24303396c3c385b97010f34a3db35f4c882976a78609bb217a4ca92a3fd5fda4253a15b380ba7edadc5
6
+ metadata.gz: 9d425c40c9d3c52acf167f82ee2675127b4ab584c3745971fcd8257c4b01ca063fba5630e0388dcc3805fe71ac02b1d1402b610491e8475c3244e706e6eb5694
7
+ data.tar.gz: 11bed2d61c98e22433d8650a13e293cd3d3e522078854831fc3596c54ba8d6d3c9f0abda1e6255a9364b1864c433dc0cc7ef2eefc7d28818d9af2b4297a55a01
@@ -4,8 +4,6 @@ module Katalyst
4
4
  module Content
5
5
  module Editor
6
6
  class ErrorsComponent < BaseComponent
7
- include Katalyst::Tables::TurboReplaceable
8
-
9
7
  def id
10
8
  dom_id(container, :errors)
11
9
  end
@@ -13,7 +13,7 @@ module Katalyst
13
13
  ACTIONS
14
14
 
15
15
  def initialize(item:, container: item.container)
16
- super(item:, container:)
16
+ super
17
17
  end
18
18
 
19
19
  def item_component(**)
@@ -4,6 +4,6 @@
4
4
  <%= render errors %>
5
5
 
6
6
  <%= render Katalyst::Content::Editor::TableComponent.new(container:) do |list| %>
7
- <%= container.draft_items.each { |item| list.with_item(item) } %>
7
+ <%= container.draft_items&.each { |item| list.with_item(item) } %>
8
8
  <% end %>
9
9
  <% end %>
@@ -25,7 +25,7 @@ module Katalyst
25
25
  end
26
26
 
27
27
  def valid?(context = nil)
28
- super(context)
28
+ super
29
29
  end
30
30
 
31
31
  def to_plain_text
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Katalyst::Content::Engine.routes.draw do
2
4
  resources :direct_uploads, only: :create
3
5
  resources :items
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ChangeKatalystContentItemsShowHeadingColumn < ActiveRecord::Migration[7.0]
4
+ # rubocop:disable Rails/SkipsModelValidations
4
5
  def up
5
6
  add_column :katalyst_content_items, :heading_style, :integer, null: false, default: 0
6
7
  Katalyst::Content::Item.where(show_heading: true).update_all(heading_style: 1)
7
8
  remove_column :katalyst_content_items, :show_heading, :boolean
8
9
  end
10
+ # rubocop:enable Rails/SkipsModelValidations
9
11
 
10
12
  def down
11
13
  raise ActiveRecord::IrreversibleMigration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-content
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description:
69
+ description:
70
70
  email:
71
71
  - developers@katalyst.com.au
72
72
  executables: []
@@ -181,7 +181,7 @@ licenses:
181
181
  - MIT
182
182
  metadata:
183
183
  rubygems_mfa_required: 'true'
184
- post_install_message:
184
+ post_install_message:
185
185
  rdoc_options: []
186
186
  require_paths:
187
187
  - lib
@@ -196,8 +196,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  requirements: []
199
- rubygems_version: 3.4.19
200
- signing_key:
199
+ rubygems_version: 3.5.9
200
+ signing_key:
201
201
  specification_version: 4
202
202
  summary: Rich content page builder and editor
203
203
  test_files: []