@mundogamernetwork/shared-ui 1.8.2 → 1.8.3

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": "@mundogamernetwork/shared-ui",
3
- "version": "1.8.2",
3
+ "version": "1.8.3",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -422,16 +422,19 @@ export const revealKey = (requestId: number) => {
422
422
  }
423
423
 
424
424
  /**
425
- * Explicit opt-in to key campaign alerts — same endpoint used by
426
- * KeyBrowser.vue's notification prompt (GET/PUT /public/user/notification-preferences).
425
+ * Explicit opt-in to key campaign alerts — canonical, cross-product
426
+ * preferences endpoint (same one KeyBrowser.vue, network-accounts, and
427
+ * mobile use). No mg_network_system_id, so the opt-in is global.
427
428
  */
428
429
  export const enableKeyCampaignNotifications = () => {
429
- return authClient.put("/public/user/notification-preferences", {
430
- category: "key_campaigns",
431
- enabled: true,
432
- channel_email: true,
433
- channel_push: true,
434
- channel_in_app: true,
430
+ return authClient.post("/account-management/notification-preferences", {
431
+ preferences: [{
432
+ category: "key_campaigns",
433
+ enabled: true,
434
+ channel_email: true,
435
+ channel_push: true,
436
+ channel_in_app: true,
437
+ }],
435
438
  })
436
439
  }
437
440