@pygmalionjs/pygmalion 0.6.15 → 0.6.16

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.
@@ -1,4 +1,4 @@
1
- import { F as s, N as a, e as r, s as i, a as t } from "./FrozenRoutePreview-D47SJjji.js";
1
+ import { F as s, N as a, e as r, s as i, a as t } from "./FrozenRoutePreview-DtELf1P1.js";
2
2
  export {
3
3
  s as FrozenRoutePreviewView,
4
4
  a as NodeModel,
@@ -17,6 +17,15 @@ export interface AdaptiveFrameLayoutOptions {
17
17
  targetAspectRatio?: number;
18
18
  maxRowWidth?: number;
19
19
  }
20
+ export interface AdaptiveMasonryLayoutOptions {
21
+ gap?: number;
22
+ targetAspectRatio?: number;
23
+ maxColumns?: number;
24
+ maxWidth?: number;
25
+ }
26
+ export interface AdaptiveMasonryLayout extends AdaptiveFrameLayout {
27
+ columnCount: number;
28
+ }
20
29
  export interface LaneInput {
21
30
  laneId: string;
22
31
  frames: readonly AdaptiveFrameSize[];
@@ -65,3 +74,15 @@ export declare function layoutLaneRows(lanes: readonly LaneInput[], options?: La
65
74
  * maximum when their canvas has a known horizontal constraint.
66
75
  */
67
76
  export declare function layoutAdaptiveFrames(frames: readonly AdaptiveFrameSize[], options?: AdaptiveFrameLayoutOptions): AdaptiveFrameLayout;
77
+ /**
78
+ * Packs independent, content-sized sheets into geometry-aware columns.
79
+ *
80
+ * A normal storyboard keeps authored order in horizontal rows. Catalog sheets
81
+ * are different: their heights can vary by thousands of pixels, so a single
82
+ * tall sheet must not reserve that height underneath every neighbour in its
83
+ * row. This layout tries several column counts, places each next sheet in the
84
+ * shortest column, then chooses the compact result closest to the requested
85
+ * aspect ratio. The result can be two, four, or five columns; three is never a
86
+ * hard-coded layout rule.
87
+ */
88
+ export declare function layoutAdaptiveMasonryFrames(frames: readonly AdaptiveFrameSize[], options?: AdaptiveMasonryLayoutOptions): AdaptiveMasonryLayout;
@@ -32,6 +32,7 @@ export interface DesignGalleryCatalogOptions<T extends DesignCatalogItem> {
32
32
  secondaryLabel?: (item: T) => ReactNode;
33
33
  frame?: DesignCatalogFrame | ((page: DesignCatalogPageDescriptor, items: readonly T[]) => DesignCatalogFrame);
34
34
  minimumColumnWidth?: number;
35
+ maximumColumns?: number;
35
36
  registryPrefix?: string;
36
37
  }
37
38
  export interface DesignComponentCatalogOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pygmalionjs/pygmalion",
3
- "version": "0.6.15",
3
+ "version": "0.6.16",
4
4
  "description": "Code-backed DOM design sandbox and visual QA editor",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {