astro-tractstack 2.0.1 → 2.0.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.
@@ -1,6 +1,16 @@
1
1
  import { atom } from 'nanostores';
2
2
  import { TractStackAPI } from '@/utils/api';
3
3
 
4
+ interface AvailableFilter {
5
+ beliefSlug: string;
6
+ values: string[];
7
+ }
8
+
9
+ export interface AppliedFilter {
10
+ beliefSlug: string;
11
+ value: string;
12
+ }
13
+
4
14
  // Internal tenant-keyed storage
5
15
  const tenantEpinetCustomFilters = atom<
6
16
  Record<
@@ -22,6 +32,8 @@ const tenantEpinetCustomFilters = atom<
22
32
  }
23
33
  >
24
34
  >;
35
+ availableFilters: AvailableFilter[];
36
+ appliedFilters: AppliedFilter[];
25
37
  }
26
38
  >
27
39
  >({});
@@ -53,6 +65,8 @@ const defaultEpinetFilters = {
53
65
  endTimeUTC: null,
54
66
  userCounts: [],
55
67
  hourlyNodeActivity: {},
68
+ availableFilters: [],
69
+ appliedFilters: [],
56
70
  };
57
71
 
58
72
  // Create tenant-aware atoms that work with useStore