lookbook 2.1.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -10
- data/app/components/lookbook/header/component.html.erb +1 -1
- data/app/components/lookbook/icon/component.html.erb +4 -2
- data/app/components/lookbook/icon/component.rb +0 -16
- data/app/components/lookbook/nav/entity/component.html.erb +3 -0
- data/app/components/lookbook/nav/item/component.js +8 -10
- data/app/controllers/lookbook/application_controller.rb +11 -1
- data/app/controllers/lookbook/embeds_controller.rb +1 -1
- data/app/controllers/lookbook/page_controller.rb +1 -1
- data/app/controllers/lookbook/previews_controller.rb +1 -1
- data/app/helpers/lookbook/application_helper.rb +10 -0
- data/app/views/layouts/lookbook/application.html.erb +102 -82
- data/app/views/layouts/lookbook/embed.html.erb +29 -17
- data/app/views/lookbook/index.html.erb +21 -11
- data/assets/icons/activity-square.svg +1 -0
- data/assets/icons/ampersand.svg +1 -0
- data/assets/icons/ampersands.svg +1 -0
- data/assets/icons/antenna.svg +1 -0
- data/assets/icons/app-window.svg +1 -0
- data/assets/icons/archive-x.svg +1 -0
- data/assets/icons/area-chart.svg +1 -0
- data/assets/icons/arrow-big-down-dash.svg +1 -0
- data/assets/icons/arrow-big-left-dash.svg +1 -0
- data/assets/icons/arrow-big-right-dash.svg +1 -0
- data/assets/icons/arrow-big-up-dash.svg +1 -0
- data/assets/icons/arrow-down-0-1.svg +1 -0
- data/assets/icons/arrow-down-1-0.svg +1 -0
- data/assets/icons/arrow-down-a-z.svg +1 -0
- data/assets/icons/arrow-down-from-line.svg +1 -0
- data/assets/icons/arrow-down-left-from-circle.svg +1 -0
- data/assets/icons/arrow-down-left-square.svg +1 -0
- data/assets/icons/arrow-down-narrow-wide.svg +1 -0
- data/assets/icons/arrow-down-right-from-circle.svg +1 -0
- data/assets/icons/arrow-down-right-square.svg +1 -0
- data/assets/icons/arrow-down-square.svg +1 -0
- data/assets/icons/arrow-down-to-dot.svg +1 -0
- data/assets/icons/arrow-down-to-line.svg +1 -0
- data/assets/icons/arrow-down-up.svg +1 -0
- data/assets/icons/arrow-down-wide-narrow.svg +1 -0
- data/assets/icons/arrow-down-z-a.svg +1 -0
- data/assets/icons/arrow-left-from-line.svg +1 -0
- data/assets/icons/arrow-left-square.svg +1 -0
- data/assets/icons/arrow-left-to-line.svg +1 -0
- data/assets/icons/arrow-right-from-line.svg +1 -0
- data/assets/icons/arrow-right-left.svg +1 -0
- data/assets/icons/arrow-right-square.svg +1 -0
- data/assets/icons/arrow-right-to-line.svg +1 -0
- data/assets/icons/arrow-up-0-1.svg +1 -0
- data/assets/icons/arrow-up-1-0.svg +1 -0
- data/assets/icons/arrow-up-a-z.svg +1 -0
- data/assets/icons/arrow-up-from-dot.svg +1 -0
- data/assets/icons/arrow-up-from-line.svg +1 -0
- data/assets/icons/arrow-up-left-from-circle.svg +1 -0
- data/assets/icons/arrow-up-left-square.svg +1 -0
- data/assets/icons/arrow-up-narrow-wide.svg +1 -0
- data/assets/icons/arrow-up-right-from-circle.svg +1 -0
- data/assets/icons/arrow-up-right-square.svg +1 -0
- data/assets/icons/arrow-up-square.svg +1 -0
- data/assets/icons/arrow-up-to-line.svg +1 -0
- data/assets/icons/arrow-up-wide-narrow.svg +1 -0
- data/assets/icons/arrow-up-z-a.svg +1 -0
- data/assets/icons/arrows-up-from-line.svg +1 -0
- data/assets/icons/atom.svg +1 -0
- data/assets/icons/badge-alert.svg +1 -0
- data/assets/icons/badge-cent.svg +1 -0
- data/assets/icons/badge-check.svg +1 -0
- data/assets/icons/badge-dollar-sign.svg +1 -0
- data/assets/icons/badge-euro.svg +1 -0
- data/assets/icons/badge-help.svg +1 -0
- data/assets/icons/badge-indian-rupee.svg +1 -0
- data/assets/icons/badge-info.svg +1 -0
- data/assets/icons/badge-japanese-yen.svg +1 -0
- data/assets/icons/badge-minus.svg +1 -0
- data/assets/icons/badge-percent.svg +1 -0
- data/assets/icons/badge-plus.svg +1 -0
- data/assets/icons/badge-pound-sterling.svg +1 -0
- data/assets/icons/badge-russian-ruble.svg +1 -0
- data/assets/icons/badge-swiss-franc.svg +1 -0
- data/assets/icons/badge-x.svg +1 -0
- data/assets/icons/badge.svg +1 -0
- data/assets/icons/ban.svg +1 -0
- data/assets/icons/bar-chart-big.svg +1 -0
- data/assets/icons/bar-chart-horizontal-big.svg +1 -0
- data/assets/icons/bell-dot.svg +1 -0
- data/assets/icons/biohazard.svg +1 -0
- data/assets/icons/blocks.svg +1 -0
- data/assets/icons/book-copy.svg +1 -0
- data/assets/icons/book-down.svg +1 -0
- data/assets/icons/book-key.svg +1 -0
- data/assets/icons/book-lock.svg +1 -0
- data/assets/icons/book-marked.svg +1 -0
- data/assets/icons/book-minus.svg +1 -0
- data/assets/icons/book-plus.svg +1 -0
- data/assets/icons/book-template.svg +1 -0
- data/assets/icons/book-up-2.svg +1 -0
- data/assets/icons/book-up.svg +1 -0
- data/assets/icons/book-x.svg +1 -0
- data/assets/icons/bookmark-check.svg +1 -0
- data/assets/icons/bookmark-x.svg +1 -0
- data/assets/icons/boom-box.svg +1 -0
- data/assets/icons/braces.svg +1 -0
- data/assets/icons/brackets.svg +1 -0
- data/assets/icons/brain-circuit.svg +1 -0
- data/assets/icons/brain-cog.svg +1 -0
- data/assets/icons/brain.svg +1 -0
- data/assets/icons/bring-to-front.svg +1 -0
- data/assets/icons/bug-off.svg +1 -0
- data/assets/icons/bug-play.svg +1 -0
- data/assets/icons/bus-front.svg +1 -0
- data/assets/icons/cable-car.svg +1 -0
- data/assets/icons/cable.svg +1 -0
- data/assets/icons/cake-slice.svg +1 -0
- data/assets/icons/candlestick-chart.svg +1 -0
- data/assets/icons/candy-cane.svg +1 -0
- data/assets/icons/car-front.svg +1 -0
- data/assets/icons/car-taxi-front.svg +1 -0
- data/assets/icons/case-lower.svg +1 -0
- data/assets/icons/case-sensitive.svg +1 -0
- data/assets/icons/case-upper.svg +1 -0
- data/assets/icons/cassette-tape.svg +1 -0
- data/assets/icons/castle.svg +1 -0
- data/assets/icons/chevron-down-circle.svg +1 -0
- data/assets/icons/chevron-down-square.svg +1 -0
- data/assets/icons/chevron-left-circle.svg +1 -0
- data/assets/icons/chevron-left-square.svg +1 -0
- data/assets/icons/chevron-right-circle.svg +1 -0
- data/assets/icons/chevron-right-square.svg +1 -0
- data/assets/icons/chevron-up-circle.svg +1 -0
- data/assets/icons/chevron-up-square.svg +1 -0
- data/assets/icons/church.svg +1 -0
- data/assets/icons/circle-dashed.svg +1 -0
- data/assets/icons/circle-dollar-sign.svg +1 -0
- data/assets/icons/circle-dot-dashed.svg +1 -0
- data/assets/icons/circle-equal.svg +1 -0
- data/assets/icons/circle-off.svg +1 -0
- data/assets/icons/circle-slash-2.svg +1 -0
- data/assets/icons/circle-slash.svg +1 -0
- data/assets/icons/circuit-board.svg +1 -0
- data/assets/icons/clipboard-paste.svg +1 -0
- data/assets/icons/club.svg +1 -0
- data/assets/icons/combine.svg +1 -0
- data/assets/icons/computer.svg +1 -0
- data/assets/icons/contact-2.svg +1 -0
- data/assets/icons/container.svg +1 -0
- data/assets/icons/copy-check.svg +1 -0
- data/assets/icons/copy-minus.svg +1 -0
- data/assets/icons/copy-plus.svg +1 -0
- data/assets/icons/copy-slash.svg +1 -0
- data/assets/icons/copy-x.svg +1 -0
- data/assets/icons/database-zap.svg +1 -0
- data/assets/icons/dessert.svg +1 -0
- data/assets/icons/disc-2.svg +1 -0
- data/assets/icons/disc-3.svg +1 -0
- data/assets/icons/donut.svg +1 -0
- data/assets/icons/door-closed.svg +1 -0
- data/assets/icons/door-open.svg +1 -0
- data/assets/icons/dot.svg +1 -0
- data/assets/icons/drama.svg +1 -0
- data/assets/icons/ferris-wheel.svg +1 -0
- data/assets/icons/file-code-2.svg +1 -0
- data/assets/icons/file-stack.svg +1 -0
- data/assets/icons/fish-symbol.svg +1 -0
- data/assets/icons/fold-horizontal.svg +1 -0
- data/assets/icons/fold-vertical.svg +1 -0
- data/assets/icons/folder-dot.svg +1 -0
- data/assets/icons/folder-git-2.svg +1 -0
- data/assets/icons/folder-git.svg +1 -0
- data/assets/icons/folder-kanban.svg +1 -0
- data/assets/icons/folder-open-dot.svg +1 -0
- data/assets/icons/folder-root.svg +1 -0
- data/assets/icons/folder-sync.svg +1 -0
- data/assets/icons/gallery-horizontal-end.svg +1 -0
- data/assets/icons/gallery-horizontal.svg +1 -0
- data/assets/icons/gallery-thumbnails.svg +1 -0
- data/assets/icons/gallery-vertical-end.svg +1 -0
- data/assets/icons/gallery-vertical.svg +1 -0
- data/assets/icons/gantt-chart-square.svg +1 -0
- data/assets/icons/gantt-chart.svg +1 -0
- data/assets/icons/gauge-circle.svg +1 -0
- data/assets/icons/goal.svg +1 -0
- data/assets/icons/grid-2x2.svg +1 -0
- data/assets/icons/grid-3x3.svg +1 -0
- data/assets/icons/group.svg +1 -0
- data/assets/icons/hard-drive-download.svg +1 -0
- data/assets/icons/hard-drive-upload.svg +1 -0
- data/assets/icons/hdmi-port.svg +1 -0
- data/assets/icons/hotel.svg +1 -0
- data/assets/icons/iteration-ccw.svg +1 -0
- data/assets/icons/iteration-cw.svg +1 -0
- data/assets/icons/kanban-square-dashed.svg +1 -0
- data/assets/icons/kanban-square.svg +1 -0
- data/assets/icons/kanban.svg +1 -0
- data/assets/icons/key-round.svg +1 -0
- data/assets/icons/key-square.svg +1 -0
- data/assets/icons/layout-panel-left.svg +1 -0
- data/assets/icons/layout-panel-top.svg +1 -0
- data/assets/icons/leafy-green.svg +1 -0
- data/assets/icons/ligature.svg +1 -0
- data/assets/icons/list-filter.svg +1 -0
- data/assets/icons/list-restart.svg +1 -0
- data/assets/icons/list-todo.svg +1 -0
- data/assets/icons/list-tree.svg +1 -0
- data/assets/icons/lollipop.svg +1 -0
- data/assets/icons/m-square.svg +1 -0
- data/assets/icons/mailbox.svg +1 -0
- data/assets/icons/memory-stick.svg +1 -0
- data/assets/icons/menu-square.svg +1 -0
- data/assets/icons/merge.svg +1 -0
- data/assets/icons/message-square-dashed.svg +1 -0
- data/assets/icons/message-square-plus.svg +1 -0
- data/assets/icons/messages-square.svg +1 -0
- data/assets/icons/monitor-check.svg +1 -0
- data/assets/icons/monitor-dot.svg +1 -0
- data/assets/icons/monitor-down.svg +1 -0
- data/assets/icons/monitor-pause.svg +1 -0
- data/assets/icons/monitor-play.svg +1 -0
- data/assets/icons/monitor-stop.svg +1 -0
- data/assets/icons/monitor-up.svg +1 -0
- data/assets/icons/monitor-x.svg +1 -0
- data/assets/icons/moon-star.svg +1 -0
- data/assets/icons/mouse-pointer-square-dashed.svg +1 -0
- data/assets/icons/mouse-pointer-square.svg +1 -0
- data/assets/icons/move-down-left.svg +1 -0
- data/assets/icons/move-down-right.svg +1 -0
- data/assets/icons/move-down.svg +1 -0
- data/assets/icons/move-left.svg +1 -0
- data/assets/icons/move-right.svg +1 -0
- data/assets/icons/move-up-left.svg +1 -0
- data/assets/icons/move-up-right.svg +1 -0
- data/assets/icons/move-up.svg +1 -0
- data/assets/icons/orbit.svg +1 -0
- data/assets/icons/panel-bottom-close.svg +1 -0
- data/assets/icons/panel-bottom-inactive.svg +1 -0
- data/assets/icons/panel-bottom-open.svg +1 -0
- data/assets/icons/panel-bottom.svg +1 -0
- data/assets/icons/panel-left-close.svg +1 -0
- data/assets/icons/panel-left-inactive.svg +1 -0
- data/assets/icons/panel-left-open.svg +1 -0
- data/assets/icons/panel-left.svg +1 -0
- data/assets/icons/panel-right-close.svg +1 -0
- data/assets/icons/panel-right-inactive.svg +1 -0
- data/assets/icons/panel-right-open.svg +1 -0
- data/assets/icons/panel-right.svg +1 -0
- data/assets/icons/panel-top-close.svg +1 -0
- data/assets/icons/panel-top-inactive.svg +1 -0
- data/assets/icons/panel-top-open.svg +1 -0
- data/assets/icons/panel-top.svg +1 -0
- data/assets/icons/parentheses.svg +1 -0
- data/assets/icons/parking-circle-off.svg +1 -0
- data/assets/icons/parking-circle.svg +1 -0
- data/assets/icons/parking-meter.svg +1 -0
- data/assets/icons/parking-square-off.svg +1 -0
- data/assets/icons/parking-square.svg +1 -0
- data/assets/icons/paw-print.svg +1 -0
- data/assets/icons/pc-case.svg +1 -0
- data/assets/icons/pen-line.svg +1 -0
- data/assets/icons/pen-square.svg +1 -0
- data/assets/icons/pen.svg +1 -0
- data/assets/icons/pencil-line.svg +1 -0
- data/assets/icons/pencil-ruler.svg +1 -0
- data/assets/icons/percent-circle.svg +1 -0
- data/assets/icons/percent-diamond.svg +1 -0
- data/assets/icons/percent-square.svg +1 -0
- data/assets/icons/pi-square.svg +1 -0
- data/assets/icons/pi.svg +1 -0
- data/assets/icons/pilcrow-square.svg +1 -0
- data/assets/icons/plane-landing.svg +1 -0
- data/assets/icons/plane-takeoff.svg +1 -0
- data/assets/icons/play-square.svg +1 -0
- data/assets/icons/plug-zap-2.svg +1 -0
- data/assets/icons/pocket-knife.svg +1 -0
- data/assets/icons/popcorn.svg +1 -0
- data/assets/icons/popsicle.svg +1 -0
- data/assets/icons/presentation.svg +1 -0
- data/assets/icons/projector.svg +1 -0
- data/assets/icons/rabbit.svg +1 -0
- data/assets/icons/radar.svg +1 -0
- data/assets/icons/radiation.svg +1 -0
- data/assets/icons/radio-tower.svg +1 -0
- data/assets/icons/rail-symbol.svg +1 -0
- data/assets/icons/rainbow.svg +1 -0
- data/assets/icons/rat.svg +1 -0
- data/assets/icons/ratio.svg +1 -0
- data/assets/icons/receipt.svg +1 -0
- data/assets/icons/redo-dot.svg +1 -0
- data/assets/icons/refresh-ccw-dot.svg +1 -0
- data/assets/icons/refresh-cw-off.svg +1 -0
- data/assets/icons/repeat-2.svg +1 -0
- data/assets/icons/replace-all.svg +1 -0
- data/assets/icons/replace.svg +1 -0
- data/assets/icons/roller-coaster.svg +1 -0
- data/assets/icons/rows.svg +1 -0
- data/assets/icons/satellite-dish.svg +1 -0
- data/assets/icons/satellite.svg +1 -0
- data/assets/icons/save-all.svg +1 -0
- data/assets/icons/scatter-chart.svg +1 -0
- data/assets/icons/school-2.svg +1 -0
- data/assets/icons/school.svg +1 -0
- data/assets/icons/scissors-line-dashed.svg +1 -0
- data/assets/icons/scissors-square-dashed-bottom.svg +1 -0
- data/assets/icons/scissors-square.svg +1 -0
- data/assets/icons/scroll-text.svg +1 -0
- data/assets/icons/search-check.svg +1 -0
- data/assets/icons/search-code.svg +1 -0
- data/assets/icons/search-slash.svg +1 -0
- data/assets/icons/search-x.svg +1 -0
- data/assets/icons/send-horizontal.svg +1 -0
- data/assets/icons/send-to-back.svg +1 -0
- data/assets/icons/shapes.svg +1 -0
- data/assets/icons/shell.svg +1 -0
- data/assets/icons/shield-ban.svg +1 -0
- data/assets/icons/shield-ellipsis.svg +1 -0
- data/assets/icons/shield-half.svg +1 -0
- data/assets/icons/shield-minus.svg +1 -0
- data/assets/icons/shield-plus.svg +1 -0
- data/assets/icons/shield-question.svg +1 -0
- data/assets/icons/shield-x.svg +1 -0
- data/assets/icons/ship-wheel.svg +1 -0
- data/assets/icons/shopping-basket.svg +1 -0
- data/assets/icons/sigma-square.svg +1 -0
- data/assets/icons/snail.svg +1 -0
- data/assets/icons/space.svg +1 -0
- data/assets/icons/spade.svg +1 -0
- data/assets/icons/sparkle.svg +1 -0
- data/assets/icons/sparkles.svg +1 -0
- data/assets/icons/speech.svg +1 -0
- data/assets/icons/spell-check-2.svg +1 -0
- data/assets/icons/spell-check.svg +1 -0
- data/assets/icons/split.svg +1 -0
- data/assets/icons/spray-can.svg +1 -0
- data/assets/icons/square-asterisk.svg +1 -0
- data/assets/icons/square-code.svg +1 -0
- data/assets/icons/square-dashed-bottom-code.svg +1 -0
- data/assets/icons/square-dashed-bottom.svg +1 -0
- data/assets/icons/square-dot.svg +1 -0
- data/assets/icons/square-equal.svg +1 -0
- data/assets/icons/square-slash.svg +1 -0
- data/assets/icons/square-stack.svg +1 -0
- data/assets/icons/squirrel.svg +1 -0
- data/assets/icons/step-back.svg +1 -0
- data/assets/icons/step-forward.svg +1 -0
- data/assets/icons/store.svg +1 -0
- data/assets/icons/table-properties.svg +1 -0
- data/assets/icons/tablet-smartphone.svg +1 -0
- data/assets/icons/tally-1.svg +1 -0
- data/assets/icons/tally-2.svg +1 -0
- data/assets/icons/tally-3.svg +1 -0
- data/assets/icons/tally-4.svg +1 -0
- data/assets/icons/tally-5.svg +1 -0
- data/assets/icons/test-tube-2.svg +1 -0
- data/assets/icons/test-tube.svg +1 -0
- data/assets/icons/test-tubes.svg +1 -0
- data/assets/icons/text-quote.svg +1 -0
- data/assets/icons/text-select.svg +1 -0
- data/assets/icons/text.svg +1 -0
- data/assets/icons/theater.svg +1 -0
- data/assets/icons/touchpad-off.svg +1 -0
- data/assets/icons/touchpad.svg +1 -0
- data/assets/icons/tractor.svg +1 -0
- data/assets/icons/traffic-cone.svg +1 -0
- data/assets/icons/train-front-tunnel.svg +1 -0
- data/assets/icons/train-front.svg +1 -0
- data/assets/icons/train-track.svg +1 -0
- data/assets/icons/tram-front.svg +1 -0
- data/assets/icons/triangle-right.svg +1 -0
- data/assets/icons/turtle.svg +1 -0
- data/assets/icons/undo-dot.svg +1 -0
- data/assets/icons/unfold-horizontal.svg +1 -0
- data/assets/icons/unfold-vertical.svg +1 -0
- data/assets/icons/ungroup.svg +1 -0
- data/assets/icons/unplug.svg +1 -0
- data/assets/icons/user-2.svg +1 -0
- data/assets/icons/user-check-2.svg +1 -0
- data/assets/icons/user-circle-2.svg +1 -0
- data/assets/icons/user-circle.svg +1 -0
- data/assets/icons/user-cog-2.svg +1 -0
- data/assets/icons/user-minus-2.svg +1 -0
- data/assets/icons/user-plus-2.svg +1 -0
- data/assets/icons/user-square-2.svg +1 -0
- data/assets/icons/user-square.svg +1 -0
- data/assets/icons/user-x-2.svg +1 -0
- data/assets/icons/users-2.svg +1 -0
- data/assets/icons/variable.svg +1 -0
- data/assets/icons/videotape.svg +1 -0
- data/assets/icons/wallet-2.svg +1 -0
- data/assets/icons/wallet-cards.svg +1 -0
- data/assets/icons/wallpaper.svg +1 -0
- data/assets/icons/warehouse.svg +1 -0
- data/assets/icons/whole-word.svg +1 -0
- data/assets/icons/workflow.svg +1 -0
- data/assets/js/app.js +7 -4
- data/assets/js/helpers/request.js +2 -2
- data/config/app.yml +6 -1
- data/lib/lookbook/entities/page_entity.rb +1 -1
- data/lib/lookbook/preview.rb +1 -0
- data/lib/lookbook/preview_controller_actions.rb +18 -15
- data/lib/lookbook/services/data/resolvers/data_resolver.rb +1 -1
- data/lib/lookbook/services/templates/action_view_config_handler.rb +50 -0
- data/lib/lookbook/stores/config_store.rb +4 -0
- data/lib/lookbook/theme.rb +2 -6
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/css/lookbook.css +538 -395
- data/public/lookbook-assets/css/lookbook.css.map +1 -1
- data/public/lookbook-assets/img/lucide-sprite.svg +1 -1
- data/public/lookbook-assets/js/iframe.js.map +1 -1
- data/public/lookbook-assets/js/index.js +979 -827
- data/public/lookbook-assets/js/index.js.map +1 -1
- data/public/lookbook-assets/js/lookbook-core.js +38 -1
- data/public/lookbook-assets/js/lookbook.js +121 -84
- metadata +383 -7
- data/lib/lookbook/services/templates/action_view_annotations_handler.rb +0 -21
@@ -1,4 +1,39 @@
|
|
1
1
|
(() => {
|
2
|
+
|
3
|
+
var $parcel$global = globalThis;
|
4
|
+
|
5
|
+
var $parcel$modules = {};
|
6
|
+
var $parcel$inits = {};
|
7
|
+
|
8
|
+
var parcelRequire = $parcel$global["parcelRequirea49c"];
|
9
|
+
|
10
|
+
if (parcelRequire == null) {
|
11
|
+
parcelRequire = function(id) {
|
12
|
+
if (id in $parcel$modules) {
|
13
|
+
return $parcel$modules[id].exports;
|
14
|
+
}
|
15
|
+
if (id in $parcel$inits) {
|
16
|
+
var init = $parcel$inits[id];
|
17
|
+
delete $parcel$inits[id];
|
18
|
+
var module = {id: id, exports: {}};
|
19
|
+
$parcel$modules[id] = module;
|
20
|
+
init.call(module.exports, module, module.exports);
|
21
|
+
return module.exports;
|
22
|
+
}
|
23
|
+
var err = new Error("Cannot find module '" + id + "'");
|
24
|
+
err.code = 'MODULE_NOT_FOUND';
|
25
|
+
throw err;
|
26
|
+
};
|
27
|
+
|
28
|
+
parcelRequire.register = function register(id, init) {
|
29
|
+
$parcel$inits[id] = init;
|
30
|
+
};
|
31
|
+
|
32
|
+
$parcel$global["parcelRequirea49c"] = parcelRequire;
|
33
|
+
}
|
34
|
+
|
35
|
+
var parcelRegister = parcelRequire.register;
|
36
|
+
parcelRegister("6RQZy", function(module, exports) {
|
2
37
|
window.Lookbook = window.Lookbook || {};
|
3
38
|
window.Lookbook.initEmbeds = $5000cc5d1e9e824a$var$initEmbeds;
|
4
39
|
const $5000cc5d1e9e824a$var$embedUrlPrefix = "embed";
|
@@ -53,7 +88,7 @@ function $5000cc5d1e9e824a$var$createIframe(attrs) {
|
|
53
88
|
function $5000cc5d1e9e824a$var$buildSrc(attrs) {
|
54
89
|
const appPath = $5000cc5d1e9e824a$var$attrValue(attrs, "app") || $5000cc5d1e9e824a$var$guessBasePath();
|
55
90
|
const props = {};
|
56
|
-
$5000cc5d1e9e824a$var$permittedAttrs(attrs).forEach(({ name: name
|
91
|
+
$5000cc5d1e9e824a$var$permittedAttrs(attrs).forEach(({ name: name, value: value })=>{
|
57
92
|
name = name.replace("-", "_").toLowerCase();
|
58
93
|
props[name] = value;
|
59
94
|
});
|
@@ -82,6 +117,8 @@ function $5000cc5d1e9e824a$var$guessBasePath() {
|
|
82
117
|
}
|
83
118
|
document.addEventListener("DOMContentLoaded", ()=>$5000cc5d1e9e824a$var$initEmbeds());
|
84
119
|
|
120
|
+
});
|
85
121
|
|
122
|
+
parcelRequire("6RQZy");
|
86
123
|
|
87
124
|
})();
|
@@ -1,4 +1,124 @@
|
|
1
1
|
(() => {
|
2
|
+
|
3
|
+
var $parcel$global = globalThis;
|
4
|
+
|
5
|
+
var $parcel$modules = {};
|
6
|
+
var $parcel$inits = {};
|
7
|
+
|
8
|
+
var parcelRequire = $parcel$global["parcelRequirea49c"];
|
9
|
+
|
10
|
+
if (parcelRequire == null) {
|
11
|
+
parcelRequire = function(id) {
|
12
|
+
if (id in $parcel$modules) {
|
13
|
+
return $parcel$modules[id].exports;
|
14
|
+
}
|
15
|
+
if (id in $parcel$inits) {
|
16
|
+
var init = $parcel$inits[id];
|
17
|
+
delete $parcel$inits[id];
|
18
|
+
var module = {id: id, exports: {}};
|
19
|
+
$parcel$modules[id] = module;
|
20
|
+
init.call(module.exports, module, module.exports);
|
21
|
+
return module.exports;
|
22
|
+
}
|
23
|
+
var err = new Error("Cannot find module '" + id + "'");
|
24
|
+
err.code = 'MODULE_NOT_FOUND';
|
25
|
+
throw err;
|
26
|
+
};
|
27
|
+
|
28
|
+
parcelRequire.register = function register(id, init) {
|
29
|
+
$parcel$inits[id] = init;
|
30
|
+
};
|
31
|
+
|
32
|
+
$parcel$global["parcelRequirea49c"] = parcelRequire;
|
33
|
+
}
|
34
|
+
|
35
|
+
var parcelRegister = parcelRequire.register;
|
36
|
+
parcelRegister("6RQZy", function(module, exports) {
|
37
|
+
window.Lookbook = window.Lookbook || {};
|
38
|
+
window.Lookbook.initEmbeds = $5000cc5d1e9e824a$var$initEmbeds;
|
39
|
+
const $5000cc5d1e9e824a$var$embedUrlPrefix = "embed";
|
40
|
+
const $5000cc5d1e9e824a$var$whiteListedAttributes = [
|
41
|
+
"preview",
|
42
|
+
"scenario",
|
43
|
+
"panels",
|
44
|
+
"actions",
|
45
|
+
"param-*"
|
46
|
+
];
|
47
|
+
function $5000cc5d1e9e824a$var$initEmbeds(root = document) {
|
48
|
+
if (typeof window.iFrameResize !== "function") {
|
49
|
+
console.error("Lookbook embeds require the 'iframe-resizer' library to be available. Skipping embed instantiation.");
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
if (typeof root === "string") root = document.querySelector(root);
|
53
|
+
if (!root) return console.error("Could not initialize Lookbook embeds. Root node not found.");
|
54
|
+
const embeds = Array.from(root.querySelectorAll("lookbook-embed"));
|
55
|
+
embeds.forEach((embed)=>{
|
56
|
+
const attrs = Array.from(embed.attributes);
|
57
|
+
const wrapper = $5000cc5d1e9e824a$var$createWrapper();
|
58
|
+
const iframe = $5000cc5d1e9e824a$var$createIframe(attrs);
|
59
|
+
wrapper.appendChild(iframe);
|
60
|
+
embed.replaceWith(wrapper);
|
61
|
+
});
|
62
|
+
window.iFrameResize({
|
63
|
+
checkOrigin: false
|
64
|
+
}, "[data-lookbook-embed-iframe]");
|
65
|
+
}
|
66
|
+
function $5000cc5d1e9e824a$var$createWrapper() {
|
67
|
+
const wrapper = document.createElement("div");
|
68
|
+
wrapper.setAttribute("data-lookbook-embed", "");
|
69
|
+
wrapper.classList.add("lookbook-embed");
|
70
|
+
return wrapper;
|
71
|
+
}
|
72
|
+
function $5000cc5d1e9e824a$var$createIframe(attrs) {
|
73
|
+
const src = $5000cc5d1e9e824a$var$buildSrc(attrs);
|
74
|
+
const id = $5000cc5d1e9e824a$var$attrValue(attrs, "id");
|
75
|
+
const styles = $5000cc5d1e9e824a$var$attrValue(attrs, "style");
|
76
|
+
const classes = $5000cc5d1e9e824a$var$attrValue(attrs, "class", "").split(" ").map((c)=>c.trim()).filter((c)=>c.length);
|
77
|
+
const iframe = document.createElement("iframe");
|
78
|
+
iframe.src = src;
|
79
|
+
if (id) iframe.id = id;
|
80
|
+
iframe.setAttribute("frameborder", 0);
|
81
|
+
iframe.setAttribute("data-lookbook-embed-iframe", "");
|
82
|
+
if (classes.length) iframe.classList.add(...classes);
|
83
|
+
if (styles) iframe.style.cssText = styles;
|
84
|
+
iframe.style.width = "100%";
|
85
|
+
iframe.style.transition = "height 0.3s";
|
86
|
+
return iframe;
|
87
|
+
}
|
88
|
+
function $5000cc5d1e9e824a$var$buildSrc(attrs) {
|
89
|
+
const appPath = $5000cc5d1e9e824a$var$attrValue(attrs, "app") || $5000cc5d1e9e824a$var$guessBasePath();
|
90
|
+
const props = {};
|
91
|
+
$5000cc5d1e9e824a$var$permittedAttrs(attrs).forEach(({ name: name, value: value })=>{
|
92
|
+
name = name.replace("-", "_").toLowerCase();
|
93
|
+
props[name] = value;
|
94
|
+
});
|
95
|
+
return encodeURI([
|
96
|
+
appPath,
|
97
|
+
$5000cc5d1e9e824a$var$embedUrlPrefix
|
98
|
+
].join("/") + `?props=${JSON.stringify(props)}`);
|
99
|
+
}
|
100
|
+
function $5000cc5d1e9e824a$var$attrValue(attrs, name, fallback = null) {
|
101
|
+
const attr = attrs.find((attr)=>attr.name === name);
|
102
|
+
return attr ? attr.value : fallback;
|
103
|
+
}
|
104
|
+
function $5000cc5d1e9e824a$var$permittedAttrs(attrs) {
|
105
|
+
return attrs.filter((attr)=>{
|
106
|
+
return $5000cc5d1e9e824a$var$whiteListedAttributes.find((key)=>{
|
107
|
+
const name = attr.name;
|
108
|
+
return key === name || key.includes("*") && name.startsWith(key.replace("*", ""));
|
109
|
+
});
|
110
|
+
});
|
111
|
+
}
|
112
|
+
function $5000cc5d1e9e824a$var$guessBasePath() {
|
113
|
+
const script = document.currentScript || document.querySelector('script[src*="lookbook.js"]');
|
114
|
+
const scriptSrc = script.src;
|
115
|
+
if (scriptSrc && scriptSrc.includes("lookbook-assets")) return scriptSrc.split("?")[0].replace("lookbook-assets/js/lookbook.js", "lookbook");
|
116
|
+
return `//${location.host}/lookbook`;
|
117
|
+
}
|
118
|
+
document.addEventListener("DOMContentLoaded", ()=>$5000cc5d1e9e824a$var$initEmbeds());
|
119
|
+
|
120
|
+
});
|
121
|
+
|
2
122
|
var $5180433265c858be$exports = {};
|
3
123
|
/*
|
4
124
|
* File: iframeResizer.js
|
@@ -839,89 +959,6 @@ var $5180433265c858be$exports = {};
|
|
839
959
|
})();
|
840
960
|
|
841
961
|
|
842
|
-
|
843
|
-
window.Lookbook.initEmbeds = $5000cc5d1e9e824a$var$initEmbeds;
|
844
|
-
const $5000cc5d1e9e824a$var$embedUrlPrefix = "embed";
|
845
|
-
const $5000cc5d1e9e824a$var$whiteListedAttributes = [
|
846
|
-
"preview",
|
847
|
-
"scenario",
|
848
|
-
"panels",
|
849
|
-
"actions",
|
850
|
-
"param-*"
|
851
|
-
];
|
852
|
-
function $5000cc5d1e9e824a$var$initEmbeds(root = document) {
|
853
|
-
if (typeof window.iFrameResize !== "function") {
|
854
|
-
console.error("Lookbook embeds require the 'iframe-resizer' library to be available. Skipping embed instantiation.");
|
855
|
-
return;
|
856
|
-
}
|
857
|
-
if (typeof root === "string") root = document.querySelector(root);
|
858
|
-
if (!root) return console.error("Could not initialize Lookbook embeds. Root node not found.");
|
859
|
-
const embeds = Array.from(root.querySelectorAll("lookbook-embed"));
|
860
|
-
embeds.forEach((embed)=>{
|
861
|
-
const attrs = Array.from(embed.attributes);
|
862
|
-
const wrapper = $5000cc5d1e9e824a$var$createWrapper();
|
863
|
-
const iframe = $5000cc5d1e9e824a$var$createIframe(attrs);
|
864
|
-
wrapper.appendChild(iframe);
|
865
|
-
embed.replaceWith(wrapper);
|
866
|
-
});
|
867
|
-
window.iFrameResize({
|
868
|
-
checkOrigin: false
|
869
|
-
}, "[data-lookbook-embed-iframe]");
|
870
|
-
}
|
871
|
-
function $5000cc5d1e9e824a$var$createWrapper() {
|
872
|
-
const wrapper = document.createElement("div");
|
873
|
-
wrapper.setAttribute("data-lookbook-embed", "");
|
874
|
-
wrapper.classList.add("lookbook-embed");
|
875
|
-
return wrapper;
|
876
|
-
}
|
877
|
-
function $5000cc5d1e9e824a$var$createIframe(attrs) {
|
878
|
-
const src = $5000cc5d1e9e824a$var$buildSrc(attrs);
|
879
|
-
const id = $5000cc5d1e9e824a$var$attrValue(attrs, "id");
|
880
|
-
const styles = $5000cc5d1e9e824a$var$attrValue(attrs, "style");
|
881
|
-
const classes = $5000cc5d1e9e824a$var$attrValue(attrs, "class", "").split(" ").map((c)=>c.trim()).filter((c)=>c.length);
|
882
|
-
const iframe = document.createElement("iframe");
|
883
|
-
iframe.src = src;
|
884
|
-
if (id) iframe.id = id;
|
885
|
-
iframe.setAttribute("frameborder", 0);
|
886
|
-
iframe.setAttribute("data-lookbook-embed-iframe", "");
|
887
|
-
if (classes.length) iframe.classList.add(...classes);
|
888
|
-
if (styles) iframe.style.cssText = styles;
|
889
|
-
iframe.style.width = "100%";
|
890
|
-
iframe.style.transition = "height 0.3s";
|
891
|
-
return iframe;
|
892
|
-
}
|
893
|
-
function $5000cc5d1e9e824a$var$buildSrc(attrs) {
|
894
|
-
const appPath = $5000cc5d1e9e824a$var$attrValue(attrs, "app") || $5000cc5d1e9e824a$var$guessBasePath();
|
895
|
-
const props = {};
|
896
|
-
$5000cc5d1e9e824a$var$permittedAttrs(attrs).forEach(({ name: name , value: value })=>{
|
897
|
-
name = name.replace("-", "_").toLowerCase();
|
898
|
-
props[name] = value;
|
899
|
-
});
|
900
|
-
return encodeURI([
|
901
|
-
appPath,
|
902
|
-
$5000cc5d1e9e824a$var$embedUrlPrefix
|
903
|
-
].join("/") + `?props=${JSON.stringify(props)}`);
|
904
|
-
}
|
905
|
-
function $5000cc5d1e9e824a$var$attrValue(attrs, name, fallback = null) {
|
906
|
-
const attr = attrs.find((attr)=>attr.name === name);
|
907
|
-
return attr ? attr.value : fallback;
|
908
|
-
}
|
909
|
-
function $5000cc5d1e9e824a$var$permittedAttrs(attrs) {
|
910
|
-
return attrs.filter((attr)=>{
|
911
|
-
return $5000cc5d1e9e824a$var$whiteListedAttributes.find((key)=>{
|
912
|
-
const name = attr.name;
|
913
|
-
return key === name || key.includes("*") && name.startsWith(key.replace("*", ""));
|
914
|
-
});
|
915
|
-
});
|
916
|
-
}
|
917
|
-
function $5000cc5d1e9e824a$var$guessBasePath() {
|
918
|
-
const script = document.currentScript || document.querySelector('script[src*="lookbook.js"]');
|
919
|
-
const scriptSrc = script.src;
|
920
|
-
if (scriptSrc && scriptSrc.includes("lookbook-assets")) return scriptSrc.split("?")[0].replace("lookbook-assets/js/lookbook.js", "lookbook");
|
921
|
-
return `//${location.host}/lookbook`;
|
922
|
-
}
|
923
|
-
document.addEventListener("DOMContentLoaded", ()=>$5000cc5d1e9e824a$var$initEmbeds());
|
924
|
-
|
925
|
-
|
962
|
+
parcelRequire("6RQZy");
|
926
963
|
|
927
964
|
})();
|