@swmansion/argent 0.12.0 → 0.13.0

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.
@@ -4296,24 +4296,14 @@
4296
4296
  const allChosen = vp.proposals.length > 0 && vp.proposals.every((p) => vp.staged[p.id]);
4297
4297
  footEl.classList.toggle("ready", allChosen && !vp.submitting);
4298
4298
 
4299
- // Off-screen proposals stay folded away (the "N hidden" badge) until the
4300
- // user opts in. Once every ON-screen choice is staged, offer to reveal
4301
- // the rest via a prompt above the footbar. Dismissing it collapses to a
4302
- // persistent pill the hidden choices are always one click from visible.
4299
+ // Whenever ANY proposal's element is off-screen, surface the reveal
4300
+ // prompt above the footbar so the user can always bring the hidden
4301
+ // choices into view. (Previously this was gated on every on-screen
4302
+ // choice already being staged, which stranded the user with a "N hidden"
4303
+ // count and no affordance to act on it.) `offscreenPromptCollapsed` only
4304
+ // selects between the full card and the collapsed pill (see below).
4303
4305
  const offScreenCount = vp.proposals.filter((p) => !p._node).length;
4304
- // Every currently-on-screen choice is staged. `every` is vacuously true
4305
- // when NONE are on screen (e.g. all proposals target another screen), so
4306
- // the reveal prompt still appears in that case instead of stranding the
4307
- // user with inert "N hidden" cards and no way to surface them.
4308
- const onScreenStaged = vp.proposals.every((p) => !p._node || vp.staged[p.id]);
4309
- // Latch on `offscreenPromptCollapsed`: once dismissed to the pill, keep it
4310
- // shown even if an on-screen pick is later un-staged — the hidden choices
4311
- // must ALWAYS stay one click from visible (the pill never disappears).
4312
- const showPrompt =
4313
- offScreenCount > 0 &&
4314
- !vp.revealOffscreen &&
4315
- !vp.submitting &&
4316
- (onScreenStaged || vp.offscreenPromptCollapsed);
4306
+ const showPrompt = offScreenCount > 0 && !vp.revealOffscreen && !vp.submitting;
4317
4307
  offscreenPrompt.hidden = !showPrompt;
4318
4308
  if (showPrompt) {
4319
4309
  offscreenPrompt.classList.toggle("collapsed", !!vp.offscreenPromptCollapsed);