@pygmalionjs/pygmalion 0.2.36 → 0.2.38
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.
- package/README.md +7 -2
- package/dist-lib/{App-BE2sN74X.js → App-DTeXtV9b.js} +476 -470
- package/dist-lib/pygmalion.js +720 -703
- package/dist-lib/testing.js +1 -1
- package/node/dev-mirror.mjs +4 -1
- package/package.json +1 -1
- package/types.d.ts +4 -0
package/dist-lib/testing.js
CHANGED
package/node/dev-mirror.mjs
CHANGED
|
@@ -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
|
-
|
|
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
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;
|