lookbook 2.3.12 → 2.3.13

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/components/lookbook/button/component.html.erb +11 -12
  3. data/app/components/lookbook/button/component.js +19 -31
  4. data/app/components/lookbook/button/component.rb +4 -0
  5. data/app/components/lookbook/button_group/component.html.erb +1 -1
  6. data/app/components/lookbook/code/component.html.erb +1 -1
  7. data/app/components/lookbook/copy_button/component.html.erb +1 -1
  8. data/app/components/lookbook/debug_menu/component.html.erb +1 -1
  9. data/app/components/lookbook/dimensions_display/component.html.erb +2 -2
  10. data/app/components/lookbook/display_options/editor/component.html.erb +2 -2
  11. data/app/components/lookbook/display_options/field/component.html.erb +1 -1
  12. data/app/components/lookbook/embed/component.html.erb +1 -1
  13. data/app/components/lookbook/file_source/component.html.erb +1 -1
  14. data/app/components/lookbook/icon_button/component.html.erb +2 -2
  15. data/app/components/lookbook/inspector_panel/component.html.erb +1 -1
  16. data/app/components/lookbook/logo/component.html.erb +1 -1
  17. data/app/components/lookbook/message/component.html.erb +1 -1
  18. data/app/components/lookbook/nav/component.html.erb +1 -1
  19. data/app/components/lookbook/nav/directory/component.html.erb +1 -1
  20. data/app/components/lookbook/nav/entity/component.html.erb +1 -1
  21. data/app/components/lookbook/page_tabs/component.html.erb +1 -1
  22. data/app/components/lookbook/params/editor/component.html.erb +1 -1
  23. data/app/components/lookbook/prose/component.html.erb +1 -1
  24. data/app/components/lookbook/split_layout/component.html.erb +1 -1
  25. data/app/components/lookbook/tab_panels/component.html.erb +1 -1
  26. data/app/components/lookbook/tab_panels/panel/component.html.erb +1 -1
  27. data/app/components/lookbook/tabs/component.html.erb +1 -1
  28. data/app/components/lookbook/tabs/dropdown_tab/component.html.erb +1 -1
  29. data/app/components/lookbook/tabs/tab/component.html.erb +1 -1
  30. data/app/components/lookbook/text_button/component.html.erb +2 -2
  31. data/app/components/lookbook/toolbar/component.html.erb +1 -1
  32. data/app/controllers/lookbook/application_controller.rb +17 -0
  33. data/app/views/layouts/lookbook/application.html.erb +3 -3
  34. data/app/views/layouts/lookbook/embed.html.erb +1 -1
  35. data/app/views/lookbook/embeds/show.html.erb +1 -1
  36. data/app/views/lookbook/errors/default.html.erb +1 -1
  37. data/app/views/lookbook/errors/not_found.html.erb +1 -1
  38. data/app/views/lookbook/index.html.erb +1 -1
  39. data/app/views/lookbook/inspector/inputs/_color.html.erb +1 -1
  40. data/app/views/lookbook/inspector/inputs/_range.html.erb +1 -1
  41. data/app/views/lookbook/inspector/inputs/_select.html.erb +1 -1
  42. data/app/views/lookbook/inspector/inputs/_text.html.erb +1 -1
  43. data/app/views/lookbook/inspector/inputs/_text_two_step.html.erb +1 -1
  44. data/app/views/lookbook/inspector/inputs/_textarea.html.erb +1 -1
  45. data/app/views/lookbook/inspector/panels/_notes.html.erb +1 -1
  46. data/app/views/lookbook/inspector/panels/_output.html.erb +1 -1
  47. data/app/views/lookbook/inspector/panels/_preview.html.erb +1 -1
  48. data/app/views/lookbook/inspector/panels/_source.html.erb +1 -1
  49. data/app/views/lookbook/inspector/show.html.erb +4 -4
  50. data/app/views/lookbook/pages/show.html.erb +1 -1
  51. data/app/views/lookbook/partials/_iframe_content_scripts.html.erb +1 -1
  52. data/app/views/lookbook/partials/_user_styles.html.erb +1 -1
  53. data/app/views/lookbook/previews/group.html.erb +1 -1
  54. data/app/views/lookbook/previews/preview.html.erb +3 -3
  55. data/app/views/lookbook/previews/show.html.erb +1 -1
  56. data/config/app.yml +0 -1
  57. data/lib/lookbook/preview_parser.rb +1 -1
  58. data/lib/lookbook/services/markdown_renderer.rb +12 -4
  59. data/lib/lookbook/version.rb +1 -1
  60. data/public/lookbook-assets/css/lookbook.css +74 -99
  61. data/public/lookbook-assets/css/lookbook.css.map +1 -1
  62. data/public/lookbook-assets/js/iframe.js +15 -6
  63. data/public/lookbook-assets/js/iframe.js.map +1 -1
  64. data/public/lookbook-assets/js/index.js +539 -399
  65. data/public/lookbook-assets/js/index.js.map +1 -1
  66. data/public/lookbook-assets/js/lookbook.js +26 -8
  67. metadata +1 -1
@@ -4,14 +4,26 @@ var $5180433265c858be$exports = {};
4
4
  * File: iframeResizer.js
5
5
  * Desc: Force iframes to size to content.
6
6
  * Requires: iframeResizer.contentWindow.js to be loaded into the target frame.
7
- * Doc: https://github.com/davidjbradshaw/iframe-resizer
8
- * Author: David J. Bradshaw - dave@bradshaw.net
9
- * Contributor: Jure Mav - jure.mav@gmail.com
10
- * Contributor: Reed Dadoune - reed@dadoune.com
11
- */ // eslint-disable-next-line sonarjs/cognitive-complexity, no-shadow-restricted-names
7
+ * Doc: https://iframe-resizer.com
8
+ * Author: David J. Bradshaw - info@iframe-resizer.com
9
+ */ console.info(`
10
+ IFRAME-RESIZER
11
+
12
+ Iframe-Resizer 5 is now available via the following two packages:
13
+
14
+ * @iframe-resizer/parent
15
+ * @iframe-resizer/child
16
+
17
+ Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery.
18
+
19
+ Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.
20
+
21
+ Please see https://iframe-resizer.com/upgrade for more details.
22
+ `);
12
23
  (function(undefined) {
13
24
  if (typeof window === 'undefined') return; // don't run for server side render
14
- var count = 0, logEnabled = false, hiddenCheckEnabled = false, msgHeader = 'message', msgHeaderLen = msgHeader.length, msgId = '[iFrameSizer]', msgIdLen = msgId.length, pagePosition = null, requestAnimationFrame = window.requestAnimationFrame, resetRequiredMethods = Object.freeze({
25
+ // var VERSION = '4.3.11'
26
+ var count = 0, destroyObserver, logEnabled = false, hiddenCheckEnabled = false, msgHeader = 'message', msgHeaderLen = msgHeader.length, msgId = '[iFrameSizer]', msgIdLen = msgId.length, pagePosition = null, requestAnimationFrame = window.requestAnimationFrame, resetRequiredMethods = Object.freeze({
15
27
  max: 1,
16
28
  scroll: 1,
17
29
  bodyScroll: 1,
@@ -28,6 +40,7 @@ var $5180433265c858be$exports = {};
28
40
  heightCalculationMethod: 'bodyOffset',
29
41
  id: 'iFrameResizer',
30
42
  interval: 32,
43
+ license: '1jqr0si6pnt',
31
44
  log: false,
32
45
  maxHeight: Infinity,
33
46
  maxWidth: Infinity,
@@ -445,6 +458,10 @@ var $5180433265c858be$exports = {};
445
458
  chkEvent(iframeId, 'onClosed', iframeId);
446
459
  log(iframeId, '--');
447
460
  removeIframeListeners(iframe);
461
+ if (destroyObserver) {
462
+ destroyObserver.disconnect();
463
+ destroyObserver = null;
464
+ }
448
465
  }
449
466
  function getPagePosition(iframeId) {
450
467
  if (null === pagePosition) {
@@ -642,7 +659,7 @@ var $5180433265c858be$exports = {};
642
659
  checkReset();
643
660
  }
644
661
  function createDestroyObserver(MutationObserver) {
645
- if (!iframe.parentNode) return;
662
+ if (!iframe.parentNode) return null;
646
663
  var destroyObserver = new MutationObserver(function(mutations) {
647
664
  mutations.forEach(function(mutation) {
648
665
  var removedNodes = Array.prototype.slice.call(mutation.removedNodes) // Transform NodeList into an Array
@@ -655,9 +672,10 @@ var $5180433265c858be$exports = {};
655
672
  destroyObserver.observe(iframe.parentNode, {
656
673
  childList: true
657
674
  });
675
+ return destroyObserver;
658
676
  }
659
677
  var MutationObserver = getMutationObserver();
660
- if (MutationObserver) createDestroyObserver(MutationObserver);
678
+ if (MutationObserver) destroyObserver = createDestroyObserver(MutationObserver);
661
679
  addEventListener(iframe, 'load', iFrameLoaded);
662
680
  trigger('init', msg, iframe, undefined, true);
663
681
  }
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: 2.3.12
4
+ version: 2.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins