katalyst-content 1.1.0 → 1.1.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e4bd83eeac48370da7a9d48165db46776c97be76b76e08fccf16f7b3890493
|
4
|
+
data.tar.gz: ab1893973d8a60e5db8eddfaab2fe7251f7df21b7bcb2e5ba34f5408bf438d3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0ea63540fe34c71e88405905054b5ed27d36d7232583f5fe5270d2daf1b40ce7c0a27d42a7fc0d6963c44f1353147d251d406ae1d4cdc4f4d231bfac49d6167
|
7
|
+
data.tar.gz: 2e41d43a9122257aab1df8c274c7ad09a77e253a48a0c34157fcd08d74ecafd4cc6a113d54cb56f2bc6bf44a53ac9f31755dbc5e835d842ec09d83f6145cc778
|
@@ -1,5 +1,10 @@
|
|
1
1
|
import { Controller } from "@hotwired/stimulus";
|
2
|
-
import
|
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)
|
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(
|
59
|
-
Editor::ImageField.new(self, item.container).build(
|
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)
|
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.
|
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-
|
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.
|
137
|
+
rubygems_version: 3.4.20
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: Rich content page builder and editor
|