lookbook 1.0.0.beta.2 → 1.0.0.beta.3

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +180 -40
  3. data/app/components/lookbook/{component.rb → base_component.rb} +1 -1
  4. data/app/components/lookbook/button/component.rb +1 -1
  5. data/app/components/lookbook/button_group/component.rb +1 -1
  6. data/app/components/lookbook/code/component.rb +1 -1
  7. data/app/components/lookbook/copy_button/component.html.erb +1 -1
  8. data/app/components/lookbook/copy_button/component.rb +1 -1
  9. data/app/components/lookbook/dimensions_display/component.rb +1 -1
  10. data/app/components/lookbook/embed/component.html.erb +3 -2
  11. data/app/components/lookbook/embed/component.rb +1 -1
  12. data/app/components/lookbook/filter/component.html.erb +1 -1
  13. data/app/components/lookbook/filter/component.rb +1 -1
  14. data/app/components/lookbook/header/component.html.erb +5 -10
  15. data/app/components/lookbook/header/component.rb +1 -1
  16. data/app/components/lookbook/icon/component.rb +1 -1
  17. data/app/components/lookbook/nav/component.rb +1 -1
  18. data/app/components/lookbook/nav/item/component.html.erb +2 -2
  19. data/app/components/lookbook/nav/item/component.rb +1 -1
  20. data/app/components/lookbook/page_tabs/component.rb +1 -1
  21. data/app/components/lookbook/params_editor/component.rb +1 -1
  22. data/app/components/lookbook/params_editor/field/component.rb +1 -1
  23. data/app/components/lookbook/prose/component.rb +1 -1
  24. data/app/components/lookbook/split_layout/component.rb +1 -1
  25. data/app/components/lookbook/tab_panels/component.rb +1 -1
  26. data/app/components/lookbook/tab_panels/panel/component.rb +2 -2
  27. data/app/components/lookbook/tabs/component.js +6 -6
  28. data/app/components/lookbook/tabs/component.rb +1 -1
  29. data/app/components/lookbook/tabs/dropdown_tab/component.rb +1 -1
  30. data/app/components/lookbook/tabs/tab/component.rb +1 -1
  31. data/app/components/lookbook/toolbar/component.rb +1 -1
  32. data/app/components/lookbook/viewport/component.rb +1 -1
  33. data/app/controllers/lookbook/previews_controller.rb +24 -29
  34. data/app/helpers/lookbook/application_helper.rb +6 -0
  35. data/app/helpers/lookbook/component_helper.rb +4 -0
  36. data/app/helpers/lookbook/page_helper.rb +1 -1
  37. data/app/views/layouts/lookbook/application.html.erb +1 -1
  38. data/app/views/layouts/lookbook/shell.html.erb +1 -1
  39. data/app/views/layouts/lookbook/skeleton.html.erb +7 -1
  40. data/app/views/lookbook/404.html.erb +1 -1
  41. data/app/views/lookbook/index.html.erb +1 -1
  42. data/app/views/lookbook/pages/show.html.erb +2 -2
  43. data/app/views/lookbook/previews/panels/_notes.html.erb +1 -1
  44. data/app/views/lookbook/previews/show.html.erb +3 -3
  45. data/lib/lookbook/collection.rb +1 -1
  46. data/lib/lookbook/component.rb +31 -0
  47. data/lib/lookbook/config.rb +54 -9
  48. data/lib/lookbook/engine.rb +72 -12
  49. data/lib/lookbook/page.rb +2 -2
  50. data/lib/lookbook/parser.rb +1 -4
  51. data/lib/lookbook/preview.rb +24 -7
  52. data/lib/lookbook/preview_example.rb +1 -1
  53. data/lib/lookbook/source_inspector.rb +10 -0
  54. data/lib/lookbook/utils.rb +2 -2
  55. data/lib/lookbook/version.rb +1 -1
  56. data/lib/lookbook.rb +1 -12
  57. data/public/lookbook-assets/js/lookbook.js +105 -104
  58. data/public/lookbook-assets/js/lookbook.js.map +1 -1
  59. metadata +3 -2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.2
4
+ version: 1.0.0.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins
@@ -186,6 +186,7 @@ files:
186
186
  - app/assets/lookbook/js/stores/workbench.js
187
187
  - app/channels/lookbook/connection.rb
188
188
  - app/channels/lookbook/reload_channel.rb
189
+ - app/components/lookbook/base_component.rb
189
190
  - app/components/lookbook/button/component.html.erb
190
191
  - app/components/lookbook/button/component.js
191
192
  - app/components/lookbook/button/component.rb
@@ -196,7 +197,6 @@ files:
196
197
  - app/components/lookbook/code/component.js
197
198
  - app/components/lookbook/code/component.rb
198
199
  - app/components/lookbook/code/highlight_github_light.css
199
- - app/components/lookbook/component.rb
200
200
  - app/components/lookbook/copy_button/component.html.erb
201
201
  - app/components/lookbook/copy_button/component.js
202
202
  - app/components/lookbook/copy_button/component.rb
@@ -287,6 +287,7 @@ files:
287
287
  - lib/lookbook.rb
288
288
  - lib/lookbook/code_formatter.rb
289
289
  - lib/lookbook/collection.rb
290
+ - lib/lookbook/component.rb
290
291
  - lib/lookbook/config.rb
291
292
  - lib/lookbook/engine.rb
292
293
  - lib/lookbook/entity.rb