@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/README.md
CHANGED
|
@@ -124,10 +124,12 @@ const { sourceRefs, switchSource, mirror } = usePygmalionProject();
|
|
|
124
124
|
|
|
125
125
|
<SourceRefControl
|
|
126
126
|
value={mirror.sourceRef}
|
|
127
|
+
currentCommit={mirror.shortCommit}
|
|
127
128
|
refs={sourceRefs.refs}
|
|
128
129
|
defaultRef={sourceRefs.defaultRef}
|
|
129
130
|
worktreeRef={sourceRefs.worktreeRef}
|
|
130
131
|
busy={mirror.state === 'syncing'}
|
|
132
|
+
refreshLabel="Refresh this branch"
|
|
131
133
|
onChange={(ref) => void switchSource(ref)}
|
|
132
134
|
>
|
|
133
135
|
{/* Optional: your own trigger, so the control reads as part of the toolbar. */}
|
|
@@ -137,8 +139,11 @@ const { sourceRefs, switchSource, mirror } = usePygmalionProject();
|
|
|
137
139
|
|
|
138
140
|
The menu is a native select layered over that trigger, so keyboard access,
|
|
139
141
|
mobile behavior, and placement stay with the platform while the painted trigger
|
|
140
|
-
stays yours.
|
|
141
|
-
|
|
142
|
+
stays yours. Its first item explicitly reloads the selected revision, including
|
|
143
|
+
when a branch tip moved while that same branch remained selected. Passing
|
|
144
|
+
`currentCommit` marks the control with `[data-update-available]` and
|
|
145
|
+
`[data-latest-commit]` when the listed ref is newer. `[data-pygmalion-source-ref]`
|
|
146
|
+
and `[data-busy]` are also available for styling.
|
|
142
147
|
|
|
143
148
|
`GET /__pygmalion-dev-control/refs` backs this list with local branches, remote
|
|
144
149
|
tracking branches, the default revision, and the worktree ref. `loadSourceRefs()`
|