@apptegy/nuxt-navigation 0.1.124 → 0.1.126

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "nuxt": ">=3.0.0"
5
5
  },
6
6
  "configKey": "@apptegy/nuxt-navigation",
7
- "version": "0.1.124",
7
+ "version": "0.1.126",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.1",
10
10
  "unbuild": "unknown"
@@ -216,6 +216,9 @@ function patchNotifications(patch) {
216
216
  }
217
217
  emit("update:notifications", {
218
218
  ...props.notifications,
219
+ panelOpen: panelOpen.value,
220
+ activeTabId: activeTabId.value,
221
+ activeFilterId: activeFilterId.value,
219
222
  ...patch
220
223
  });
221
224
  }
@@ -1,8 +1,8 @@
1
1
  import type { INotificationApiActor, INotificationApiRecord, INotificationGroup, INotificationItem, INotificationsApiResponse, INotificationsPanelData, INotificationTab, NotificationType } from '../types/index.js';
2
2
  import { type INotificationDateLabels } from './notification-dates.js';
3
3
  /**
4
- * Expand `reaction_counts` into a list of emojis (one entry per count).
5
- * Unknown reaction keys are skipped.
4
+ * Map `reaction_counts` to unique display emojis (one per reaction type).
5
+ * Count is ignored beyond requiring it to be >= 1. Unknown keys are skipped.
6
6
  */
7
7
  export declare function mapReactionCountsToEmojis(reactionCounts: Record<string, number> | null | undefined): string[];
8
8
  export declare const DEFAULT_NOTIFICATION_TABS: INotificationTab[];
@@ -34,9 +34,7 @@ export function mapReactionCountsToEmojis(reactionCounts) {
34
34
  if (!emoji || !Number.isFinite(safeCount) || safeCount < 1) {
35
35
  continue;
36
36
  }
37
- for (let i = 0; i < Math.floor(safeCount); i += 1) {
38
- emojis.push(emoji);
39
- }
37
+ emojis.push(emoji);
40
38
  }
41
39
  return emojis;
42
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apptegy/nuxt-navigation",
3
- "version": "0.1.124",
3
+ "version": "0.1.126",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {