lookbook 1.0.0.rc.3 → 1.0.2
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/README.md +23 -54
- data/app/components/lookbook/embed/component.html.erb +5 -5
- data/app/components/lookbook/embed/component.rb +1 -1
- data/app/components/lookbook/header/component.html.erb +4 -4
- data/app/components/lookbook/icon/component.html.erb +1 -1
- data/app/components/lookbook/inspector_panel/component.rb +1 -2
- data/app/controllers/lookbook/previews_controller.rb +20 -18
- data/app/helpers/lookbook/component_helper.rb +4 -0
- data/app/views/lookbook/index.html.erb +1 -1
- data/app/views/lookbook/previews/show.html.erb +2 -2
- data/config/routes.rb +1 -1
- data/lib/lookbook/component.rb +4 -0
- data/lib/lookbook/engine.rb +74 -52
- data/lib/lookbook/page.rb +4 -4
- data/lib/lookbook/preview.rb +6 -2
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/js/lookbook.js +53 -53
- data/public/lookbook-assets/js/lookbook.js.map +1 -1
- metadata +4 -4
@@ -7701,7 +7701,7 @@ function $5439cede634b2921$var$toCamel(s) {
|
|
7701
7701
|
}
|
7702
7702
|
|
7703
7703
|
|
7704
|
-
var $
|
7704
|
+
var $36691b4c02d81145$exports = {};
|
7705
7705
|
var $cbd28b10fa9798c7$exports = {};
|
7706
7706
|
|
7707
7707
|
$parcel$defineInteropFlag($cbd28b10fa9798c7$exports);
|
@@ -11354,16 +11354,6 @@ function $cbd28b10fa9798c7$export$2e2bcd8739ae039() {
|
|
11354
11354
|
}
|
11355
11355
|
|
11356
11356
|
|
11357
|
-
var $99486586f6691564$exports = {};
|
11358
|
-
|
11359
|
-
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11360
|
-
|
11361
|
-
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11362
|
-
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11363
|
-
return {};
|
11364
|
-
}
|
11365
|
-
|
11366
|
-
|
11367
11357
|
var $47a1c62621be0c54$exports = {};
|
11368
11358
|
|
11369
11359
|
$parcel$defineInteropFlag($47a1c62621be0c54$exports);
|
@@ -11420,34 +11410,36 @@ function $47a1c62621be0c54$export$2e2bcd8739ae039() {
|
|
11420
11410
|
}
|
11421
11411
|
|
11422
11412
|
|
11423
|
-
var $
|
11413
|
+
var $99486586f6691564$exports = {};
|
11424
11414
|
|
11425
|
-
$parcel$defineInteropFlag($
|
11415
|
+
$parcel$defineInteropFlag($99486586f6691564$exports);
|
11426
11416
|
|
11427
|
-
$parcel$export($
|
11417
|
+
$parcel$export($99486586f6691564$exports, "default", () => $99486586f6691564$export$2e2bcd8739ae039);
|
11418
|
+
function $99486586f6691564$export$2e2bcd8739ae039() {
|
11419
|
+
return {};
|
11420
|
+
}
|
11428
11421
|
|
11429
|
-
|
11422
|
+
|
11423
|
+
var $e9904a14dabf652d$exports = {};
|
11424
|
+
|
11425
|
+
$parcel$defineInteropFlag($e9904a14dabf652d$exports);
|
11426
|
+
|
11427
|
+
$parcel$export($e9904a14dabf652d$exports, "default", () => $e9904a14dabf652d$export$2e2bcd8739ae039);
|
11428
|
+
function $e9904a14dabf652d$export$2e2bcd8739ae039(store) {
|
11430
11429
|
return {
|
11431
|
-
|
11432
|
-
|
11433
|
-
|
11434
|
-
target: null,
|
11435
|
-
init () {
|
11436
|
-
this.target = document.querySelector(targetSelector);
|
11437
|
-
if (this.target) {
|
11438
|
-
this.width = Math.round(this.target.clientWidth);
|
11439
|
-
this.height = Math.round(this.target.clientHeight);
|
11440
|
-
this.createObserver();
|
11441
|
-
}
|
11430
|
+
focussed: false,
|
11431
|
+
get active () {
|
11432
|
+
return store.active;
|
11442
11433
|
},
|
11443
|
-
|
11444
|
-
|
11445
|
-
this.width = width;
|
11446
|
-
this.height = height;
|
11447
|
-
});
|
11434
|
+
get text () {
|
11435
|
+
return store.text;
|
11448
11436
|
},
|
11449
|
-
|
11450
|
-
if (
|
11437
|
+
clear () {
|
11438
|
+
if (store.raw === "") this.$refs.input.blur();
|
11439
|
+
else store.raw = "";
|
11440
|
+
},
|
11441
|
+
focus () {
|
11442
|
+
this.$refs.input.focus();
|
11451
11443
|
}
|
11452
11444
|
};
|
11453
11445
|
}
|
@@ -12318,26 +12310,34 @@ function $e1f51f020443edd4$export$2e2bcd8739ae039(id, embedStore) {
|
|
12318
12310
|
}
|
12319
12311
|
|
12320
12312
|
|
12321
|
-
var $
|
12313
|
+
var $e398acaded942bbe$exports = {};
|
12322
12314
|
|
12323
|
-
$parcel$defineInteropFlag($
|
12315
|
+
$parcel$defineInteropFlag($e398acaded942bbe$exports);
|
12324
12316
|
|
12325
|
-
$parcel$export($
|
12326
|
-
|
12317
|
+
$parcel$export($e398acaded942bbe$exports, "default", () => $e398acaded942bbe$export$2e2bcd8739ae039);
|
12318
|
+
|
12319
|
+
function $e398acaded942bbe$export$2e2bcd8739ae039(targetSelector) {
|
12327
12320
|
return {
|
12328
|
-
|
12329
|
-
|
12330
|
-
|
12331
|
-
|
12332
|
-
|
12333
|
-
|
12321
|
+
width: 0,
|
12322
|
+
height: 0,
|
12323
|
+
resizing: false,
|
12324
|
+
target: null,
|
12325
|
+
init () {
|
12326
|
+
this.target = document.querySelector(targetSelector);
|
12327
|
+
if (this.target) {
|
12328
|
+
this.width = Math.round(this.target.clientWidth);
|
12329
|
+
this.height = Math.round(this.target.clientHeight);
|
12330
|
+
this.createObserver();
|
12331
|
+
}
|
12334
12332
|
},
|
12335
|
-
|
12336
|
-
if (
|
12337
|
-
|
12333
|
+
createObserver () {
|
12334
|
+
if (this.target) this.observer = (0, $9930d46698775b42$export$a2214cc2adb2dc44)(document.querySelector(targetSelector), ({ width: width , height: height })=>{
|
12335
|
+
this.width = width;
|
12336
|
+
this.height = height;
|
12337
|
+
});
|
12338
12338
|
},
|
12339
|
-
|
12340
|
-
this
|
12339
|
+
tearDown () {
|
12340
|
+
if (this.observer) this.observer.disconnect();
|
12341
12341
|
}
|
12342
12342
|
};
|
12343
12343
|
}
|
@@ -13210,13 +13210,13 @@ function $6d64716f0b34fdf4$export$2e2bcd8739ae039(store) {
|
|
13210
13210
|
}
|
13211
13211
|
|
13212
13212
|
|
13213
|
-
$
|
13213
|
+
$36691b4c02d81145$exports = {
|
13214
13214
|
"button": $cbd28b10fa9798c7$exports,
|
13215
|
-
"code": $99486586f6691564$exports,
|
13216
13215
|
"copy_button": $47a1c62621be0c54$exports,
|
13217
|
-
"
|
13218
|
-
"embed": $e1f51f020443edd4$exports,
|
13216
|
+
"code": $99486586f6691564$exports,
|
13219
13217
|
"filter": $e9904a14dabf652d$exports,
|
13218
|
+
"embed": $e1f51f020443edd4$exports,
|
13219
|
+
"dimensions_display": $e398acaded942bbe$exports,
|
13220
13220
|
"icon": $36506012e0c6e9e3$exports,
|
13221
13221
|
"nav": $d92d9d5253f84566$exports,
|
13222
13222
|
"params_editor": $b63b9c6d236b3f65$exports,
|
@@ -13367,7 +13367,7 @@ const $d73574cc5e9b9e72$var$prefix = window.APP_NAME;
|
|
13367
13367
|
// Components
|
13368
13368
|
(0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $d709d0f4027033b2$export$2e2bcd8739ae039));
|
13369
13369
|
[
|
13370
|
-
$
|
13370
|
+
$36691b4c02d81145$exports,
|
13371
13371
|
$e4eab7529959b73b$exports,
|
13372
13372
|
$4979d2d897a1c01f$exports
|
13373
13373
|
].forEach((scripts)=>{
|