@remit/web-client 0.0.295 → 0.0.296
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.
|
|
3
|
+
"version": "0.0.296",
|
|
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": {
|
|
@@ -323,11 +323,6 @@ function WiredPanel({
|
|
|
323
323
|
updateFlags({ muted: { value: next } });
|
|
324
324
|
}, [data?.flags?.muted, updateFlags]);
|
|
325
325
|
|
|
326
|
-
const handleToggleUnsubscribe = useCallback(() => {
|
|
327
|
-
const next = !(data?.flags?.unsubscribed === true);
|
|
328
|
-
updateFlags({ unsubscribed: { value: next } });
|
|
329
|
-
}, [data?.flags?.unsubscribed, updateFlags]);
|
|
330
|
-
|
|
331
326
|
const handleReclassifySelect = useCallback(
|
|
332
327
|
(category: CategoryOverride) => {
|
|
333
328
|
setReclassifyOpen(false);
|
|
@@ -349,7 +344,6 @@ function WiredPanel({
|
|
|
349
344
|
const actions: IntelligenceQuickActions = {
|
|
350
345
|
onToggleVip: canUpdateFlags ? handleToggleVip : undefined,
|
|
351
346
|
onToggleMute: canUpdateFlags ? handleToggleMute : undefined,
|
|
352
|
-
onToggleUnsubscribe: canUpdateFlags ? handleToggleUnsubscribe : undefined,
|
|
353
347
|
onReclassify: canUpdateFlags ? () => setReclassifyOpen(true) : undefined,
|
|
354
348
|
onNotSpam: spamAction === "notSpam" ? handleNotSpam : undefined,
|
|
355
349
|
onReportSpam: spamAction === "reportSpam" ? handleReportSpam : undefined,
|
|
@@ -55,7 +55,7 @@ function applyFlagPatch(
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* Optimistic PATCH for per-sender flags (VIP / Mute / Block
|
|
58
|
+
* Optimistic PATCH for per-sender flags (VIP / Mute / Block).
|
|
59
59
|
* Mirrors the `useToggleTrusted` pattern: patch the cached
|
|
60
60
|
* address-search response so the toggle flips instantly, roll back on error,
|
|
61
61
|
* and invalidate on settle to reconcile with the server.
|