@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.
- package/README.md +7 -2
- package/dist-lib/{App-phpKmf_I.js → App-BE2sN74X.js} +1597 -1578
- package/dist-lib/pygmalion.js +1149 -1081
- package/dist-lib/testing.js +1 -1
- package/node/dev-mirror.mjs +4 -1
- package/package.json +1 -1
- package/types.d.ts +12 -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
|
@@ -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;
|