katalyst-content 1.1.0 → 1.1.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: 9add66f2ceddd578d133b679abf018fc4af299b100ab60b12c93e701e0681c3f
4
- data.tar.gz: 6432a682a93e61c38b3bbaecc3dc392c9be03070838094cbd195646e6a0bcdcf
3
+ metadata.gz: 87e4bd83eeac48370da7a9d48165db46776c97be76b76e08fccf16f7b3890493
4
+ data.tar.gz: ab1893973d8a60e5db8eddfaab2fe7251f7df21b7bcb2e5ba34f5408bf438d3a
5
5
  SHA512:
6
- metadata.gz: 74ef81a842d28873e577a245a84a97649814d2fdd1387e25cb2fcb273fca7edf4c5fee147bcfcddf3c556a66d11bb9d58705b73e9daae383271fd1ab93ed0362
7
- data.tar.gz: 1a8dd6463ff2146bf80ffaecb05adc76e866d956d89544c3257dc2a38be4f8f38d3c86090e464a2571d37108cf3a5d8ceb8e9ffa0223d83cdee435791cd5c7c6
6
+ metadata.gz: a0ea63540fe34c71e88405905054b5ed27d36d7232583f5fe5270d2daf1b40ce7c0a27d42a7fc0d6963c44f1353147d251d406ae1d4cdc4f4d231bfac49d6167
7
+ data.tar.gz: 2e41d43a9122257aab1df8c274c7ad09a77e253a48a0c34157fcd08d74ecafd4cc6a113d54cb56f2bc6bf44a53ac9f31755dbc5e835d842ec09d83f6145cc778
@@ -1,5 +1,10 @@
1
1
  import { Controller } from "@hotwired/stimulus";
2
- import Trix from "trix";
2
+ import "trix";
3
+
4
+ // Note, action_text 7.1.2 changes how Trix is bundled and loaded. This
5
+ // seems to have broken the default export from trix. This is a workaround
6
+ // that relies on the backwards compatibility of the old export to window.Trix.
7
+ const Trix = window.Trix;
3
8
 
4
9
  // Stimulus controller doesn't do anything, but having one ensures that trix
5
10
  // will be lazy loaded when a trix-editor is added to the dom.
@@ -5,7 +5,7 @@ module Katalyst
5
5
  module EditorHelper
6
6
  def content_editor_new_items(container:)
7
7
  Katalyst::Content.config.items.map do |item_class|
8
- item_class = item_class.is_a?(String) ? item_class.safe_constantize : item_class
8
+ item_class = item_class.safe_constantize if item_class.is_a?(String)
9
9
  item_class.new(container: container)
10
10
  end
11
11
  end
@@ -55,8 +55,8 @@ module Katalyst
55
55
  defaults.deep_merge(options)
56
56
  end
57
57
 
58
- def content_editor_image_field(item:, method:, **options, &block)
59
- Editor::ImageField.new(self, item.container).build(item, method, **options, &block)
58
+ def content_editor_image_field(...)
59
+ Editor::ImageField.new(self, item.container).build(...)
60
60
  end
61
61
 
62
62
  # When rendering item forms do not include the controller namespace prefix (katalyst/content)
@@ -25,8 +25,8 @@ module Katalyst
25
25
  end
26
26
  end
27
27
 
28
- def content_item_tag(item, **options, &block)
29
- FrontendBuilder.new(self, item).render(**options, &block)
28
+ def content_item_tag(item, ...)
29
+ FrontendBuilder.new(self, item).render(...)
30
30
  end
31
31
 
32
32
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Katalyst
4
4
  module Content
5
- VERSION = "1.1.0"
5
+ VERSION = "1.1.1"
6
6
  end
7
7
  end
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.3.7
137
+ rubygems_version: 3.4.20
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Rich content page builder and editor