lookbook 2.2.2 → 2.3.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 +4 -4
- data/README.md +9 -9
- data/app/components/lookbook/header/component.html.erb +1 -1
- data/app/components/lookbook/icon/component.html.erb +4 -2
- data/app/components/lookbook/icon/component.rb +0 -16
- data/app/components/lookbook/nav/entity/component.html.erb +3 -0
- data/app/components/lookbook/nav/item/component.js +8 -10
- data/app/controllers/lookbook/page_controller.rb +1 -1
- data/app/helpers/lookbook/application_helper.rb +10 -0
- data/app/views/layouts/lookbook/application.html.erb +98 -87
- data/app/views/layouts/lookbook/embed.html.erb +29 -17
- data/assets/js/app.js +7 -4
- data/assets/js/helpers/request.js +2 -2
- data/config/app.yml +2 -1
- data/lib/lookbook/preview_controller_actions.rb +17 -15
- data/lib/lookbook/services/templates/action_view_config_handler.rb +50 -0
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +432 -237
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/js/index.js +130 -92
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +5 -5
- data/lib/lookbook/services/templates/action_view_annotations_handler.rb +0 -21
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookbook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: css_parser
|
@@ -1699,8 +1699,8 @@ files:
|
|
1699
1699
|
- lib/lookbook/services/string_value_caster.rb
|
1700
1700
|
- lib/lookbook/services/tags/key_value_tag_parser.rb
|
1701
1701
|
- lib/lookbook/services/tags/tag_options_parser.rb
|
1702
|
-
- lib/lookbook/services/templates/action_view_annotations_handler.rb
|
1703
1702
|
- lib/lookbook/services/templates/action_view_annotations_stripper.rb
|
1703
|
+
- lib/lookbook/services/templates/action_view_config_handler.rb
|
1704
1704
|
- lib/lookbook/services/templates/frontmatter_extractor.rb
|
1705
1705
|
- lib/lookbook/services/templates/styles_extractor.rb
|
1706
1706
|
- lib/lookbook/services/urls/data_uri_encoder.rb
|
@@ -1778,7 +1778,7 @@ files:
|
|
1778
1778
|
- public/lookbook-assets/js/index.js.map
|
1779
1779
|
- public/lookbook-assets/js/lookbook-core.js
|
1780
1780
|
- public/lookbook-assets/js/lookbook.js
|
1781
|
-
homepage: https://github.com/
|
1781
|
+
homepage: https://github.com/lookbook-hq/lookbook
|
1782
1782
|
licenses:
|
1783
1783
|
- MIT
|
1784
1784
|
metadata:
|
@@ -1798,7 +1798,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1798
1798
|
- !ruby/object:Gem::Version
|
1799
1799
|
version: '0'
|
1800
1800
|
requirements: []
|
1801
|
-
rubygems_version: 3.
|
1801
|
+
rubygems_version: 3.5.10
|
1802
1802
|
signing_key:
|
1803
1803
|
specification_version: 4
|
1804
1804
|
summary: A native development UI for ViewComponent
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Lookbook
|
2
|
-
class ActionViewAnnotationsHandler < Service
|
3
|
-
attr_reader :disable_annotations
|
4
|
-
|
5
|
-
def initialize(disable_annotations: true)
|
6
|
-
@disable_annotations = disable_annotations
|
7
|
-
end
|
8
|
-
|
9
|
-
def call
|
10
|
-
if ActionView::Base.respond_to?(:annotate_rendered_view_with_filenames) && disable_annotations
|
11
|
-
original_value = ActionView::Base.annotate_rendered_view_with_filenames
|
12
|
-
ActionView::Base.annotate_rendered_view_with_filenames = false
|
13
|
-
res = yield
|
14
|
-
ActionView::Base.annotate_rendered_view_with_filenames = original_value
|
15
|
-
res
|
16
|
-
else
|
17
|
-
yield
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|