lookbook 2.0.0.beta.8 → 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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/components/lookbook/filter/component.html.erb +14 -14
  3. data/app/components/lookbook/prose/component.css +4 -0
  4. data/app/components/lookbook/prose/component.html.erb +0 -1
  5. data/app/controllers/concerns/lookbook/targetable_concern.rb +1 -1
  6. data/app/views/layouts/lookbook/application.html.erb +4 -4
  7. data/app/views/lookbook/inspector/inputs/_color.html.erb +2 -1
  8. data/app/views/lookbook/inspector/inputs/_text_two_step.html.erb +19 -0
  9. data/app/views/lookbook/inspector/panels/_preview.html.erb +1 -1
  10. data/app/views/lookbook/pages/show.html.erb +1 -1
  11. data/config/app.yml +3 -1
  12. data/config/inputs.yml +2 -2
  13. data/config/tags.yml +4 -0
  14. data/lib/lookbook/engine.rb +13 -5
  15. data/lib/lookbook/entities/collections/preview_collection.rb +4 -1
  16. data/lib/lookbook/entities/concerns/locatable_entity.rb +7 -2
  17. data/lib/lookbook/entities/preview_entity.rb +10 -5
  18. data/lib/lookbook/entities/scenario_entity.rb +6 -1
  19. data/lib/lookbook/param.rb +7 -1
  20. data/lib/lookbook/preview.rb +1 -0
  21. data/lib/lookbook/preview_after_render.rb +13 -0
  22. data/lib/lookbook/preview_controller_actions.rb +18 -3
  23. data/lib/lookbook/tags/after_render_tag.rb +7 -0
  24. data/lib/lookbook/tags/param_tag.rb +1 -1
  25. data/lib/lookbook/version.rb +1 -1
  26. data/public/lookbook-assets/css/lookbook.css +28 -14
  27. data/public/lookbook-assets/css/lookbook.css.map +1 -1
  28. data/public/lookbook-assets/js/index.js +39 -39
  29. data/public/lookbook-assets/js/index.js.map +1 -1
  30. metadata +5 -3
  31. 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.beta.8
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-21 00:00:00.000000000 Z
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
@@ -1284,6 +1284,7 @@ files:
1284
1284
  - lib/lookbook/lang.rb
1285
1285
  - lib/lookbook/param.rb
1286
1286
  - lib/lookbook/preview.rb
1287
+ - lib/lookbook/preview_after_render.rb
1287
1288
  - lib/lookbook/preview_controller_actions.rb
1288
1289
  - lib/lookbook/preview_parser.rb
1289
1290
  - lib/lookbook/reloaders.rb
@@ -1335,6 +1336,7 @@ files:
1335
1336
  - lib/lookbook/support/tree_node.rb
1336
1337
  - lib/lookbook/support/utils/path_utils.rb
1337
1338
  - lib/lookbook/support/utils/utils.rb
1339
+ - lib/lookbook/tags/after_render_tag.rb
1338
1340
  - lib/lookbook/tags/custom_tag.rb
1339
1341
  - lib/lookbook/tags/display_tag.rb
1340
1342
  - lib/lookbook/tags/hidden_tag.rb
@@ -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