lookbook 2.3.11 → 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.
- checksums.yaml +4 -4
- data/app/components/lookbook/button/component.html.erb +11 -12
- data/app/components/lookbook/button/component.js +19 -31
- data/app/components/lookbook/button/component.rb +4 -0
- data/app/components/lookbook/button_group/component.html.erb +1 -1
- data/app/components/lookbook/code/component.html.erb +1 -1
- data/app/components/lookbook/copy_button/component.html.erb +1 -1
- data/app/components/lookbook/debug_menu/component.html.erb +1 -1
- data/app/components/lookbook/dimensions_display/component.html.erb +2 -2
- data/app/components/lookbook/display_options/editor/component.html.erb +2 -2
- data/app/components/lookbook/display_options/field/component.html.erb +1 -1
- data/app/components/lookbook/embed/component.html.erb +1 -1
- data/app/components/lookbook/file_source/component.html.erb +1 -1
- data/app/components/lookbook/icon_button/component.html.erb +2 -2
- data/app/components/lookbook/inspector_panel/component.html.erb +1 -1
- data/app/components/lookbook/logo/component.html.erb +1 -1
- data/app/components/lookbook/message/component.html.erb +1 -1
- data/app/components/lookbook/nav/component.html.erb +1 -1
- data/app/components/lookbook/nav/directory/component.html.erb +1 -1
- data/app/components/lookbook/nav/entity/component.html.erb +1 -1
- data/app/components/lookbook/page_tabs/component.html.erb +1 -1
- data/app/components/lookbook/params/editor/component.html.erb +1 -1
- data/app/components/lookbook/prose/component.html.erb +1 -1
- data/app/components/lookbook/split_layout/component.html.erb +1 -1
- data/app/components/lookbook/tab_panels/component.html.erb +1 -1
- data/app/components/lookbook/tab_panels/panel/component.html.erb +1 -1
- data/app/components/lookbook/tabs/component.html.erb +1 -1
- data/app/components/lookbook/tabs/dropdown_tab/component.html.erb +1 -1
- data/app/components/lookbook/tabs/tab/component.html.erb +1 -1
- data/app/components/lookbook/text_button/component.html.erb +2 -2
- data/app/components/lookbook/toolbar/component.html.erb +1 -1
- data/app/controllers/lookbook/application_controller.rb +17 -0
- data/app/views/layouts/lookbook/application.html.erb +3 -3
- data/app/views/layouts/lookbook/embed.html.erb +1 -1
- data/app/views/lookbook/embeds/show.html.erb +1 -1
- data/app/views/lookbook/errors/default.html.erb +1 -1
- data/app/views/lookbook/errors/not_found.html.erb +1 -1
- data/app/views/lookbook/index.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_color.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_range.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_select.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_text.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_text_two_step.html.erb +1 -1
- data/app/views/lookbook/inspector/inputs/_textarea.html.erb +1 -1
- data/app/views/lookbook/inspector/panels/_notes.html.erb +1 -1
- data/app/views/lookbook/inspector/panels/_output.html.erb +1 -1
- data/app/views/lookbook/inspector/panels/_preview.html.erb +1 -1
- data/app/views/lookbook/inspector/panels/_source.html.erb +1 -1
- data/app/views/lookbook/inspector/show.html.erb +4 -4
- data/app/views/lookbook/pages/show.html.erb +1 -1
- data/app/views/lookbook/partials/_iframe_content_scripts.html.erb +1 -1
- data/app/views/lookbook/partials/_user_styles.html.erb +1 -1
- data/app/views/lookbook/previews/group.html.erb +1 -1
- data/app/views/lookbook/previews/preview.html.erb +3 -3
- data/app/views/lookbook/previews/show.html.erb +1 -1
- data/config/app.yml +0 -1
- data/lib/lookbook/preview_parser.rb +2 -4
- data/lib/lookbook/services/markdown_renderer.rb +12 -4
- data/lib/lookbook/tags/param_tag.rb +4 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +74 -99
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/js/iframe.js +15 -6
- data/public/lookbook-assets/js/iframe.js.map +1 -1
- data/public/lookbook-assets/js/index.js +510 -370
- data/public/lookbook-assets/js/index.js.map +1 -1
- data/public/lookbook-assets/js/lookbook.js +26 -8
- metadata +2 -2
@@ -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://
|
8
|
-
* Author: David J. Bradshaw -
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
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.
|
4
|
+
version: 2.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
@@ -1418,7 +1418,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1418
1418
|
- !ruby/object:Gem::Version
|
1419
1419
|
version: '0'
|
1420
1420
|
requirements: []
|
1421
|
-
rubygems_version: 3.6.
|
1421
|
+
rubygems_version: 3.6.9
|
1422
1422
|
specification_version: 4
|
1423
1423
|
summary: Lookbook is a UI development environment for Ruby on Rails applications
|
1424
1424
|
test_files: []
|