proscenium 0.13.0-x86_64-darwin → 0.15.0.beta.1-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +63 -54
- data/lib/proscenium/builder.rb +62 -19
- data/lib/proscenium/css_module/transformer.rb +4 -2
- data/lib/proscenium/ensure_loaded.rb +6 -6
- data/lib/proscenium/ext/proscenium +0 -0
- data/lib/proscenium/ext/proscenium.h +16 -1
- data/lib/proscenium/helper.rb +23 -70
- data/lib/proscenium/importer.rb +2 -6
- data/lib/proscenium/libs/react-manager/index.jsx +56 -36
- data/lib/proscenium/log_subscriber.rb +14 -2
- data/lib/proscenium/middleware/esbuild.rb +2 -2
- data/lib/proscenium/monkey.rb +67 -32
- data/lib/proscenium/phlex/asset_inclusions.rb +4 -83
- data/lib/proscenium/phlex.rb +9 -1
- data/lib/proscenium/railtie.rb +21 -16
- data/lib/proscenium/react_componentable.rb +3 -3
- data/lib/proscenium/side_load.rb +120 -6
- data/lib/proscenium/version.rb +1 -1
- data/lib/proscenium/view_component.rb +7 -1
- data/lib/proscenium.rb +10 -0
- metadata +3 -3
@@ -14,12 +14,14 @@ class Proscenium::ViewComponent < ViewComponent::Base
|
|
14
14
|
|
15
15
|
module Sideload
|
16
16
|
def before_render
|
17
|
-
Proscenium::SideLoad.sideload_inheritance_chain self
|
17
|
+
Proscenium::SideLoad.sideload_inheritance_chain self, controller.sideload_assets_options
|
18
18
|
|
19
19
|
super
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
class_attribute :sideload_assets_options
|
24
|
+
|
23
25
|
class << self
|
24
26
|
attr_accessor :abstract_class
|
25
27
|
|
@@ -28,5 +30,9 @@ class Proscenium::ViewComponent < ViewComponent::Base
|
|
28
30
|
|
29
31
|
super
|
30
32
|
end
|
33
|
+
|
34
|
+
def sideload_assets(value)
|
35
|
+
self.sideload_assets_options = value
|
36
|
+
end
|
31
37
|
end
|
32
38
|
end
|
data/lib/proscenium.rb
CHANGED
@@ -46,6 +46,16 @@ module Proscenium
|
|
46
46
|
"Path #{@path.inspect} cannot be resolved"
|
47
47
|
end
|
48
48
|
end
|
49
|
+
|
50
|
+
class << self
|
51
|
+
def config
|
52
|
+
@config ||= Railtie.config.proscenium
|
53
|
+
end
|
54
|
+
|
55
|
+
def cache
|
56
|
+
@cache ||= config.cache || ActiveSupport::Cache::NullStore.new
|
57
|
+
end
|
58
|
+
end
|
49
59
|
end
|
50
60
|
|
51
61
|
require 'proscenium/railtie'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proscenium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0.beta.1
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- Joel Moss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.5.5
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: The engine powering your Rails frontend
|