@pygmalionjs/pygmalion 0.2.35 → 0.2.37

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 "./App-phpKmf_I.js";
1
+ import { F as s, N as a, e as r, s as i, a as t } from "./App-BE2sN74X.js";
2
2
  export {
3
3
  s as FrozenRoutePreviewView,
4
4
  a as NodeModel,
@@ -254,7 +254,10 @@ export async function listSourceRefs(repoRoot, remote = 'origin') {
254
254
  };
255
255
  const locals = (await read('refs/heads')).map((item) => ({ ...item, kind: 'local' }));
256
256
  const remotes = (await read(`refs/remotes/${remote}`))
257
- .filter((item) => !item.name.endsWith('/HEAD'))
257
+ // `%(refname:short)` may abbreviate refs/remotes/origin/HEAD to just
258
+ // `origin`, so the full ref is the only reliable way to remove the
259
+ // symbolic remote default from the branch picker.
260
+ .filter((item) => !item.fullName.endsWith('/HEAD'))
258
261
  .map((item) => ({ ...item, kind: 'remote' }));
259
262
  const seen = new Set();
260
263
  return [...locals, ...remotes].filter((item) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pygmalionjs/pygmalion",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "description": "Code-backed DOM design sandbox and visual QA editor",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
package/types.d.ts CHANGED
@@ -1196,6 +1196,10 @@ export interface StoryboardGraphEdgeInput {
1196
1196
  id?: string;
1197
1197
  from: string;
1198
1198
  to: string;
1199
+ /** Screen or node identities that inherit this outgoing route connection. */
1200
+ fromScope?: readonly string[];
1201
+ /** Screen or node identities that inherit this incoming route connection. */
1202
+ toScope?: readonly string[];
1199
1203
  kind?: string;
1200
1204
  label?: string;
1201
1205
  }
@@ -1228,6 +1232,10 @@ export interface StoryboardGraphEdge {
1228
1232
  id: string;
1229
1233
  from: string;
1230
1234
  to: string;
1235
+ /** Canonical nodes that expose this edge as an outgoing connection. */
1236
+ fromNodeIds?: readonly string[];
1237
+ /** Canonical nodes that expose this edge as an incoming connection. */
1238
+ toNodeIds?: readonly string[];
1231
1239
  kind?: string;
1232
1240
  label?: string;
1233
1241
  origin: StoryboardGraphEdgeOrigin;
@@ -1877,12 +1885,16 @@ export interface PygmalionSourceRefs {
1877
1885
 
1878
1886
  export interface SourceRefControlProps {
1879
1887
  value: string | null;
1888
+ /** Commit currently rendered by the mirror. Used to expose a newer ref tip. */
1889
+ currentCommit?: string | null;
1880
1890
  refs: readonly PygmalionSourceRef[];
1881
1891
  onChange(ref: string): void;
1882
1892
  busy?: boolean;
1883
1893
  defaultRef?: string | null;
1884
1894
  worktreeRef?: string | null;
1885
1895
  label?: string;
1896
+ /** Menu label for reloading the selected revision after its tip moves. */
1897
+ refreshLabel?: string;
1886
1898
  /** Trigger content. Defaults to the selected revision. */
1887
1899
  children?: ReactNode;
1888
1900
  className?: string;