@remit/web-client 0.0.262 → 0.0.263

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/web-client",
3
- "version": "0.0.262",
3
+ "version": "0.0.263",
4
4
  "type": "module",
5
5
  "description": "Remit web client, published as composable primitives — the app shell, auth shells, and runtime config. A distributor imports what it composes and bundles it.",
6
6
  "exports": {
@@ -12,6 +12,7 @@ import {
12
12
  type MatchMode,
13
13
  type RuleClause,
14
14
  type RunState,
15
+ ruleRestrictionFor,
15
16
  type SearchConversion,
16
17
  type SelectionRestriction,
17
18
  SelectionWizard,
@@ -513,11 +514,15 @@ function SelectionWizardSession({
513
514
  // preview behind a widened door has something to count against. The one-off
514
515
  // scope and the ticked rows act on the messages themselves and are unaffected.
515
516
  const wizardScope = wizardScopeFor(accountId, selectionRestriction);
517
+ // An escalated match is restricted on the same step for its own reason: the
518
+ // list resolved it before the wizard opened, and no door on the match step can
519
+ // give it a predicate to keep matching on (#1193).
520
+ const ruleRestriction = ruleRestrictionFor(mode, wizardScope);
516
521
  const restrictionFor = (step: StepId): string | undefined => {
517
522
  if (step === "folder") return wizardScope.destination;
518
523
  if (step !== "rule") return undefined;
519
524
  return named.scope === "standing" || named.scope === "until"
520
- ? wizardScope.rule
525
+ ? ruleRestriction
521
526
  : undefined;
522
527
  };
523
528
  const blockedReason =
@@ -1048,7 +1053,7 @@ function SelectionWizardSession({
1048
1053
  draft: named,
1049
1054
  onScopeChange: (scope) => setDraft((held) => ({ ...held, scope })),
1050
1055
  onUntilChange: (until) => setDraft((held) => ({ ...held, until })),
1051
- restriction: wizardScope.rule,
1056
+ restriction: ruleRestriction,
1052
1057
  }}
1053
1058
  name={{
1054
1059
  name: named.name ?? "",