app/assets/lookbook/js/stores/inspector.js in lookbook-0.4.8 vs app/assets/lookbook/js/stores/inspector.js in lookbook-0.5.0.beta.0

- old
+ new

@@ -1,17 +1,24 @@ import config from "../config"; export default function createInspectorStore(Alpine) { - const { tabs } = config.inspector; + const { drawer, preview } = config.inspector; return { - panels: { - active: Alpine.$persist(tabs.default).as("inspector-panel-active"), - height: Alpine.$persist(tabs.defaultHeight).as("inspector-height"), + drawer: { + hidden: Alpine.$persist(false).as("drawer-hidden"), + orientation: Alpine.$persist(drawer.orientation).as("drawer-orientation"), + active: Alpine.$persist(drawer.defaultPanel).as("drawer-active"), + height: Alpine.$persist(drawer.defaultHeight).as("drawer-height"), + width: Alpine.$persist(drawer.defaultWidth).as("drawer-width"), + minWidth: drawer.minWidth, + visibleTabCount: Infinity, }, preview: { width: Alpine.$persist("100%").as("preview-width"), height: Alpine.$persist("100%").as("preview-height"), - source: Alpine.$persist(false).as("preview-source"), + view: Alpine.$persist(preview.view).as("preview-view"), lastWidth: null, + lastHeight: null, + resizing: false, }, }; }