@pygmalionjs/pygmalion 0.2.36 → 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.
@@ -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.36",
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
@@ -1885,12 +1885,16 @@ export interface PygmalionSourceRefs {
1885
1885
 
1886
1886
  export interface SourceRefControlProps {
1887
1887
  value: string | null;
1888
+ /** Commit currently rendered by the mirror. Used to expose a newer ref tip. */
1889
+ currentCommit?: string | null;
1888
1890
  refs: readonly PygmalionSourceRef[];
1889
1891
  onChange(ref: string): void;
1890
1892
  busy?: boolean;
1891
1893
  defaultRef?: string | null;
1892
1894
  worktreeRef?: string | null;
1893
1895
  label?: string;
1896
+ /** Menu label for reloading the selected revision after its tip moves. */
1897
+ refreshLabel?: string;
1894
1898
  /** Trigger content. Defaults to the selected revision. */
1895
1899
  children?: ReactNode;
1896
1900
  className?: string;