lookbook 2.0.0.beta.9 → 2.0.0.rc.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/app/components/lookbook/filter/component.html.erb +14 -14
- data/app/components/lookbook/prose/component.css +4 -0
- data/app/components/lookbook/prose/component.html.erb +0 -1
- data/app/views/layouts/lookbook/application.html.erb +4 -4
- data/app/views/lookbook/inspector/inputs/_color.html.erb +2 -1
- data/app/views/lookbook/inspector/inputs/_text_two_step.html.erb +19 -0
- data/app/views/lookbook/pages/show.html.erb +1 -1
- data/config/app.yml +3 -1
- data/config/inputs.yml +2 -2
- data/lib/lookbook/engine.rb +11 -5
- data/lib/lookbook/entities/collections/preview_collection.rb +4 -1
- data/lib/lookbook/entities/concerns/locatable_entity.rb +7 -2
- data/lib/lookbook/entities/preview_entity.rb +4 -4
- data/lib/lookbook/entities/scenario_entity.rb +1 -1
- data/lib/lookbook/param.rb +7 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +28 -14
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/js/index.js +151 -151
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +3 -3
- data/lib/lookbook/features.rb +0 -24
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.0.0.
|
4
|
+
version: 2.0.0.rc.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: 2023-03
|
11
|
+
date: 2023-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: css_parser
|
@@ -289,6 +289,7 @@ files:
|
|
289
289
|
- app/views/lookbook/inspector/inputs/_range.html.erb
|
290
290
|
- app/views/lookbook/inspector/inputs/_select.html.erb
|
291
291
|
- app/views/lookbook/inspector/inputs/_text.html.erb
|
292
|
+
- app/views/lookbook/inspector/inputs/_text_two_step.html.erb
|
292
293
|
- app/views/lookbook/inspector/inputs/_textarea.html.erb
|
293
294
|
- app/views/lookbook/inspector/inputs/_toggle.html.erb
|
294
295
|
- app/views/lookbook/inspector/panels/_content.html.erb
|
@@ -1275,7 +1276,6 @@ files:
|
|
1275
1276
|
- lib/lookbook/entities/rendered_scenario_entity.rb
|
1276
1277
|
- lib/lookbook/entities/scenario_entity.rb
|
1277
1278
|
- lib/lookbook/entities/scenario_group_entity.rb
|
1278
|
-
- lib/lookbook/features.rb
|
1279
1279
|
- lib/lookbook/file_watcher.rb
|
1280
1280
|
- lib/lookbook/helpers/class_names_helper.rb
|
1281
1281
|
- lib/lookbook/helpers/page_helper.rb
|
data/lib/lookbook/features.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
module Lookbook
|
2
|
-
module Features
|
3
|
-
EXPERIMENTAL_FEATURES = []
|
4
|
-
|
5
|
-
def self.experimental_feature?(name)
|
6
|
-
EXPERIMENTAL_FEATURES.include?(name.to_sym)
|
7
|
-
end
|
8
|
-
|
9
|
-
def self.enabled?(name)
|
10
|
-
return true unless experimental_feature?(name)
|
11
|
-
enabled.include?(name.to_sym)
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.enabled
|
15
|
-
if Lookbook.config.experimental_features == true
|
16
|
-
EXPERIMENTAL_FEATURES
|
17
|
-
elsif Lookbook.config.experimental_features.blank?
|
18
|
-
[]
|
19
|
-
else
|
20
|
-
Lookbook.config.experimental_features.map(&:to_sym)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|