lookbook 2.0.0.beta.8 → 2.0.0.rc.1
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/filter/component.html.erb +14 -14
- data/app/components/lookbook/prose/component.css +4 -0
- data/app/components/lookbook/prose/component.html.erb +0 -1
- data/app/controllers/concerns/lookbook/targetable_concern.rb +1 -1
- data/app/views/layouts/lookbook/application.html.erb +4 -4
- data/app/views/lookbook/inspector/inputs/_color.html.erb +2 -1
- data/app/views/lookbook/inspector/inputs/_text_two_step.html.erb +19 -0
- data/app/views/lookbook/inspector/panels/_preview.html.erb +1 -1
- data/app/views/lookbook/pages/show.html.erb +1 -1
- data/config/app.yml +3 -1
- data/config/inputs.yml +2 -2
- data/config/tags.yml +4 -0
- data/lib/lookbook/engine.rb +13 -5
- data/lib/lookbook/entities/collections/preview_collection.rb +4 -1
- data/lib/lookbook/entities/concerns/locatable_entity.rb +7 -2
- data/lib/lookbook/entities/preview_entity.rb +10 -5
- data/lib/lookbook/entities/scenario_entity.rb +6 -1
- data/lib/lookbook/param.rb +7 -1
- data/lib/lookbook/preview.rb +1 -0
- data/lib/lookbook/preview_after_render.rb +13 -0
- data/lib/lookbook/preview_controller_actions.rb +18 -3
- data/lib/lookbook/tags/after_render_tag.rb +7 -0
- data/lib/lookbook/tags/param_tag.rb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +28 -14
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/js/index.js +39 -39
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +5 -3
- data/lib/lookbook/features.rb +0 -24
| @@ -12351,7 +12351,7 @@ $52abf2efa3492135$exports = { | |
| 12351 12351 | 
             
            };
         | 
| 12352 12352 |  | 
| 12353 12353 |  | 
| 12354 | 
            -
            var $ | 
| 12354 | 
            +
            var $3b154185c6273749$exports = {};
         | 
| 12355 12355 | 
             
            var $6a9b69d9cc7f810f$exports = {};
         | 
| 12356 12356 |  | 
| 12357 12357 | 
             
            $parcel$defineInteropFlag($6a9b69d9cc7f810f$exports);
         | 
| @@ -13352,38 +13352,6 @@ function $c299e36fa9e271bc$export$2e2bcd8739ae039(id, embedStore) { | |
| 13352 13352 | 
             
            }
         | 
| 13353 13353 |  | 
| 13354 13354 |  | 
| 13355 | 
            -
            var $1a7a7298eec5b755$exports = {};
         | 
| 13356 | 
            -
             | 
| 13357 | 
            -
            $parcel$defineInteropFlag($1a7a7298eec5b755$exports);
         | 
| 13358 | 
            -
             | 
| 13359 | 
            -
            $parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
         | 
| 13360 | 
            -
             | 
| 13361 | 
            -
            function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
         | 
| 13362 | 
            -
                return {
         | 
| 13363 | 
            -
                    narrow: false,
         | 
| 13364 | 
            -
                    init () {
         | 
| 13365 | 
            -
                        (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$el, ({ width: width  })=>{
         | 
| 13366 | 
            -
                            this.narrow = width < 500;
         | 
| 13367 | 
            -
                        });
         | 
| 13368 | 
            -
                    }
         | 
| 13369 | 
            -
                };
         | 
| 13370 | 
            -
            }
         | 
| 13371 | 
            -
             | 
| 13372 | 
            -
             | 
| 13373 | 
            -
            var $e773f8ef556b41ff$exports = {};
         | 
| 13374 | 
            -
             | 
| 13375 | 
            -
            $parcel$defineInteropFlag($e773f8ef556b41ff$exports);
         | 
| 13376 | 
            -
             | 
| 13377 | 
            -
            $parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
         | 
| 13378 | 
            -
            function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
         | 
| 13379 | 
            -
                return {
         | 
| 13380 | 
            -
                    get isNarrowLayout () {
         | 
| 13381 | 
            -
                        return this.narrow || false;
         | 
| 13382 | 
            -
                    }
         | 
| 13383 | 
            -
                };
         | 
| 13384 | 
            -
            }
         | 
| 13385 | 
            -
             | 
| 13386 | 
            -
             | 
| 13387 13355 | 
             
            var $9b24cbeb3a465447$exports = {};
         | 
| 13388 13356 |  | 
| 13389 13357 | 
             
            $parcel$defineInteropFlag($9b24cbeb3a465447$exports);
         | 
| @@ -13441,19 +13409,51 @@ function $9b24cbeb3a465447$export$2e2bcd8739ae039({ id: id , matchers: matchers | |
| 13441 13409 | 
             
            }
         | 
| 13442 13410 |  | 
| 13443 13411 |  | 
| 13444 | 
            -
            $ | 
| 13412 | 
            +
            var $e773f8ef556b41ff$exports = {};
         | 
| 13413 | 
            +
             | 
| 13414 | 
            +
            $parcel$defineInteropFlag($e773f8ef556b41ff$exports);
         | 
| 13415 | 
            +
             | 
| 13416 | 
            +
            $parcel$export($e773f8ef556b41ff$exports, "default", () => $e773f8ef556b41ff$export$2e2bcd8739ae039);
         | 
| 13417 | 
            +
            function $e773f8ef556b41ff$export$2e2bcd8739ae039() {
         | 
| 13418 | 
            +
                return {
         | 
| 13419 | 
            +
                    get isNarrowLayout () {
         | 
| 13420 | 
            +
                        return this.narrow || false;
         | 
| 13421 | 
            +
                    }
         | 
| 13422 | 
            +
                };
         | 
| 13423 | 
            +
            }
         | 
| 13424 | 
            +
             | 
| 13425 | 
            +
             | 
| 13426 | 
            +
            var $1a7a7298eec5b755$exports = {};
         | 
| 13427 | 
            +
             | 
| 13428 | 
            +
            $parcel$defineInteropFlag($1a7a7298eec5b755$exports);
         | 
| 13429 | 
            +
             | 
| 13430 | 
            +
            $parcel$export($1a7a7298eec5b755$exports, "default", () => $1a7a7298eec5b755$export$2e2bcd8739ae039);
         | 
| 13431 | 
            +
             | 
| 13432 | 
            +
            function $1a7a7298eec5b755$export$2e2bcd8739ae039() {
         | 
| 13433 | 
            +
                return {
         | 
| 13434 | 
            +
                    narrow: false,
         | 
| 13435 | 
            +
                    init () {
         | 
| 13436 | 
            +
                        (0, $7ecd1fc3a6b35e5c$export$a2214cc2adb2dc44)(this.$el, ({ width: width  })=>{
         | 
| 13437 | 
            +
                            this.narrow = width < 500;
         | 
| 13438 | 
            +
                        });
         | 
| 13439 | 
            +
                    }
         | 
| 13440 | 
            +
                };
         | 
| 13441 | 
            +
            }
         | 
| 13442 | 
            +
             | 
| 13443 | 
            +
             | 
| 13444 | 
            +
            $3b154185c6273749$exports = {
         | 
| 13445 13445 | 
             
                "display_options": {
         | 
| 13446 13446 | 
             
                    "field": $6a9b69d9cc7f810f$exports
         | 
| 13447 13447 | 
             
                },
         | 
| 13448 13448 | 
             
                "embed": {
         | 
| 13449 13449 | 
             
                    "inspector": $c299e36fa9e271bc$exports
         | 
| 13450 13450 | 
             
                },
         | 
| 13451 | 
            -
                "params": {
         | 
| 13452 | 
            -
                    "editor": $1a7a7298eec5b755$exports,
         | 
| 13453 | 
            -
                    "field": $e773f8ef556b41ff$exports
         | 
| 13454 | 
            -
                },
         | 
| 13455 13451 | 
             
                "nav": {
         | 
| 13456 13452 | 
             
                    "item": $9b24cbeb3a465447$exports
         | 
| 13453 | 
            +
                },
         | 
| 13454 | 
            +
                "params": {
         | 
| 13455 | 
            +
                    "field": $e773f8ef556b41ff$exports,
         | 
| 13456 | 
            +
                    "editor": $1a7a7298eec5b755$exports
         | 
| 13457 13457 | 
             
                }
         | 
| 13458 13458 | 
             
            };
         | 
| 13459 13459 |  | 
| @@ -13522,7 +13522,7 @@ const $22969b543678f572$var$prefix = window.APP_NAME; | |
| 13522 13522 | 
             
            (0, $caa9439642c6336c$export$2e2bcd8739ae039).data("app", (0, $5792afa4170ed552$export$2e2bcd8739ae039));
         | 
| 13523 13523 | 
             
            [
         | 
| 13524 13524 | 
             
                $52abf2efa3492135$exports,
         | 
| 13525 | 
            -
                $ | 
| 13525 | 
            +
                $3b154185c6273749$exports,
         | 
| 13526 13526 | 
             
                $338da9a25bc5c332$exports
         | 
| 13527 13527 | 
             
            ].forEach((scripts)=>{
         | 
| 13528 13528 | 
             
                const components = (0, $12b7aa006b8a97e1$export$4e811121b221213b)(scripts);
         |