@pygmalionjs/pygmalion 0.6.10 → 0.6.12

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-CPnB5j1D.js";
1
+ import { F as s, N as a, e as r, s as i, a as t } from "./FrozenRoutePreview-CGxN_gIm.js";
2
2
  export {
3
3
  s as FrozenRoutePreviewView,
4
4
  a as NodeModel,
@@ -43,6 +43,12 @@ export interface CanvasTree {
43
43
  loose: readonly CanvasTreeLeaf[];
44
44
  groups: readonly CanvasTreeGroup[];
45
45
  }
46
+ /**
47
+ * Pages available in the current runtime, including state variants held behind
48
+ * a screen-state control. The Pages badge names frames, not the smaller number
49
+ * of canvases used to arrange them.
50
+ */
51
+ export declare function countCanvasTreePages(tree: CanvasTree): number;
46
52
  interface CanvasTreePage {
47
53
  canvas?: string;
48
54
  section?: string;
@@ -351,10 +351,11 @@ export declare class EditorStore {
351
351
  private screenStateSelections;
352
352
  private screenStateSlotKey;
353
353
  /**
354
- * Declared state variants sharing a scenario on one canvas, in declaration
355
- * order. Folding never crosses canvases: a scenario that also names a
356
- * screen on another canvas (a flow's entry point, say) keeps that screen
357
- * as a normal frame there otherwise a canvas could fold down to nothing.
354
+ * Declared state variants sharing a scenario on one canvas and in the
355
+ * current runtime, in declaration order. Folding never crosses either
356
+ * boundary: a state from another canvas or runtime is not an alternate the
357
+ * reader can reveal here, and letting it hold the slot can fold the current
358
+ * runtime down to nothing.
358
359
  */
359
360
  screenStateGroup(scenario: string, canvas: string): PageModel[];
360
361
  /** The group member holding the group's canvas slot, or null for non-groups. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pygmalionjs/pygmalion",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
4
4
  "description": "Code-backed DOM design sandbox and visual QA editor",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {