@pygmalionjs/pygmalion 0.20.1 → 0.21.0

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.
@@ -0,0 +1,30 @@
1
+ /** Panel geometry is a workspace preference: it never enters the document or the navigation snapshot. */
2
+ export interface StoryboardPanelLayout {
3
+ navigationWidth: number;
4
+ inspectorWidth: number;
5
+ navigationHidden: boolean;
6
+ inspectorHidden: boolean;
7
+ }
8
+ export declare const STORYBOARD_PANEL_RANGES: Readonly<{
9
+ navigation: Readonly<{
10
+ min: 180;
11
+ max: 400;
12
+ initial: 232;
13
+ }>;
14
+ inspector: Readonly<{
15
+ min: 240;
16
+ max: 480;
17
+ initial: 304;
18
+ }>;
19
+ /** The canvas column never shrinks below this width to make room for a panel. */
20
+ canvas: 180;
21
+ }>;
22
+ export declare const DEFAULT_STORYBOARD_PANELS: Readonly<StoryboardPanelLayout>;
23
+ /** The layout survives leaving and re-entering View while the same workspace controller lives; a reload starts over. */
24
+ export declare function readStoryboardPanels(owner: object): StoryboardPanelLayout;
25
+ export declare function writeStoryboardPanels(owner: object, layout: StoryboardPanelLayout): void;
26
+ /** Both panels yield before the canvas does, and a hidden panel frees its column for the other one. */
27
+ export declare function storyboardPanelLimits(layout: StoryboardPanelLayout, workspaceWidth: number): {
28
+ navigation: number;
29
+ inspector: number;
30
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pygmalionjs/pygmalion",
3
- "version": "0.20.1",
3
+ "version": "0.21.0",
4
4
  "description": "Code-backed DOM design sandbox and visual QA editor",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {