lookbook 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/controllers/lookbook/previews_controller.rb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/js/index.js +31 -31
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3433173da72195659b47da6abab72328d8954e8093281431fde9897b2a287a2f
|
4
|
+
data.tar.gz: d1a256196fc8a71de8e3e398c6b5ef4d46ac75c56a777e16ed5caa0c225041a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb938670af6e7f781130ec3f193a4552baf7c69aae28891de5e62acb56a927b2906cf84f24007915793ba668507f5b461534ec1f996a9bb06110f9ed4daff821
|
7
|
+
data.tar.gz: e32ba2f2bb1bc13431432ff16a115d38f3ee13836226360c753b6b5adbd0d789fd6f8ead2d0d2abc588a9f8f14fc332619191da9995a71a8a11b024288bb10c3
|
data/README.md
CHANGED
@@ -14,10 +14,14 @@
|
|
14
14
|
---
|
15
15
|
|
16
16
|
<div align="center">
|
17
|
-
Lookbook combines a powerful <strong>component browser</strong> and <strong>preview system</strong> with an <strong>integrated documentation engine</strong> to help teams build robust, modular, maintainable user interfaces
|
17
|
+
Lookbook combines a powerful <strong>component browser</strong> and <strong>preview system</strong> with an <strong>integrated documentation engine</strong> to help teams build robust, modular, maintainable user interfaces.<br><br>
|
18
|
+
It's compatible with <a href="https://viewcomponent.org/">ViewComponent</a>, <a href="https://www.phlex.fun/">Phlex</a>, ActionView partials and more.
|
19
|
+
<br><br>
|
20
|
+
<a href="https://lookbook.build"><strong>Read the docs →</strong></a>
|
18
21
|
|
19
22
|
</div>
|
20
23
|
|
24
|
+
|
21
25
|
---
|
22
26
|
|
23
27
|
[![Lookbook UI](.github/assets/lookbook_ui.png)](http://lookbook.build/)
|
@@ -68,7 +68,7 @@ module Lookbook
|
|
68
68
|
|
69
69
|
def permit_framing
|
70
70
|
headers["X-Frame-Options"] = Lookbook.config.preview_embeds.policy if embedded?
|
71
|
-
headers["X-Frame-Options"] = "SAMEORIGIN" if headers["X-Frame-Options"]
|
71
|
+
headers["X-Frame-Options"] = "SAMEORIGIN" if headers["X-Frame-Options"]&.upcase == "DENY"
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
data/lib/lookbook/version.rb
CHANGED
@@ -7972,7 +7972,7 @@ function $12b7aa006b8a97e1$var$toCamel(s) {
|
|
7972
7972
|
}
|
7973
7973
|
|
7974
7974
|
|
7975
|
-
var $
|
7975
|
+
var $c9dfaeb25bf110ce$exports = {};
|
7976
7976
|
var $cbd28b10fa9798c7$exports = {};
|
7977
7977
|
|
7978
7978
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -12219,6 +12219,33 @@ function $506dabb2bf255b38$var$sizeSplits(sizes) {
|
|
12219
12219
|
}
|
12220
12220
|
|
12221
12221
|
|
12222
|
+
var $a87dacf5139b5e2f$exports = {};
|
12223
|
+
|
12224
|
+
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12225
|
+
|
12226
|
+
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12227
|
+
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12228
|
+
return {
|
12229
|
+
get store () {
|
12230
|
+
return store || this;
|
12231
|
+
},
|
12232
|
+
get id () {
|
12233
|
+
return this.$root.id;
|
12234
|
+
},
|
12235
|
+
get panels () {
|
12236
|
+
return Array.from(this.$refs.panels.children);
|
12237
|
+
},
|
12238
|
+
isActive (el) {
|
12239
|
+
return this.store.activeTab === this._getRef(el);
|
12240
|
+
},
|
12241
|
+
// protected
|
12242
|
+
_getRef (el) {
|
12243
|
+
return el.getAttribute("x-ref");
|
12244
|
+
}
|
12245
|
+
};
|
12246
|
+
}
|
12247
|
+
|
12248
|
+
|
12222
12249
|
var $0db07828cadc68e0$exports = {};
|
12223
12250
|
|
12224
12251
|
$parcel$defineInteropFlag($0db07828cadc68e0$exports);
|
@@ -12312,33 +12339,6 @@ function $0db07828cadc68e0$export$2e2bcd8739ae039(store) {
|
|
12312
12339
|
}
|
12313
12340
|
|
12314
12341
|
|
12315
|
-
var $a87dacf5139b5e2f$exports = {};
|
12316
|
-
|
12317
|
-
$parcel$defineInteropFlag($a87dacf5139b5e2f$exports);
|
12318
|
-
|
12319
|
-
$parcel$export($a87dacf5139b5e2f$exports, "default", () => $a87dacf5139b5e2f$export$2e2bcd8739ae039);
|
12320
|
-
function $a87dacf5139b5e2f$export$2e2bcd8739ae039(store) {
|
12321
|
-
return {
|
12322
|
-
get store () {
|
12323
|
-
return store || this;
|
12324
|
-
},
|
12325
|
-
get id () {
|
12326
|
-
return this.$root.id;
|
12327
|
-
},
|
12328
|
-
get panels () {
|
12329
|
-
return Array.from(this.$refs.panels.children);
|
12330
|
-
},
|
12331
|
-
isActive (el) {
|
12332
|
-
return this.store.activeTab === this._getRef(el);
|
12333
|
-
},
|
12334
|
-
// protected
|
12335
|
-
_getRef (el) {
|
12336
|
-
return el.getAttribute("x-ref");
|
12337
|
-
}
|
12338
|
-
};
|
12339
|
-
}
|
12340
|
-
|
12341
|
-
|
12342
12342
|
var $6d64716f0b34fdf4$exports = {};
|
12343
12343
|
|
12344
12344
|
$parcel$defineInteropFlag($6d64716f0b34fdf4$exports);
|
@@ -12466,7 +12466,7 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
12466
12466
|
}
|
12467
12467
|
|
12468
12468
|
|
12469
|
-
$
|
12469
|
+
$c9dfaeb25bf110ce$exports = {
|
12470
12470
|
"button": $cbd28b10fa9798c7$exports,
|
12471
12471
|
"code": $99486586f6691564$exports,
|
12472
12472
|
"copy_button": $47a1c62621be0c54$exports,
|
@@ -12475,8 +12475,8 @@ $9defc7a1a17ecfb0$exports = {
|
|
12475
12475
|
"filter": $e9904a14dabf652d$exports,
|
12476
12476
|
"nav": $d92d9d5253f84566$exports,
|
12477
12477
|
"split_layout": $506dabb2bf255b38$exports,
|
12478
|
-
"tabs": $0db07828cadc68e0$exports,
|
12479
12478
|
"tab_panels": $a87dacf5139b5e2f$exports,
|
12479
|
+
"tabs": $0db07828cadc68e0$exports,
|
12480
12480
|
"viewport": $6d64716f0b34fdf4$exports
|
12481
12481
|
};
|
12482
12482
|
|
@@ -13661,7 +13661,7 @@ const $22969b543678f572$var$prefix = window.APP_NAME;
|
|
13661
13661
|
// Components
|
13662
13662
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
|
13663
13663
|
[
|
13664
|
-
$
|
13664
|
+
$c9dfaeb25bf110ce$exports,
|
13665
13665
|
$6178ee12f80cbf68$exports,
|
13666
13666
|
$d56e5cced44001d2$exports
|
13667
13667
|
].forEach((scripts)=>{
|