@xipkg/calls-store 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +20 -12
  2. package/package.json +7 -7
package/dist/index.d.ts CHANGED
@@ -73,7 +73,9 @@ type useCallStoreT = {
73
73
  clearAllRaisedHands: () => void;
74
74
  isHandRaisedByParticipant: (participantId: string) => boolean;
75
75
  };
76
- declare const useCallStore: zustand.UseBoundStore<Omit<zustand.StoreApi<useCallStoreT>, "persist"> & {
76
+ declare const useCallStore: zustand.UseBoundStore<Omit<zustand.StoreApi<useCallStoreT>, "setState" | "persist"> & {
77
+ setState(partial: useCallStoreT | Partial<useCallStoreT> | ((state: useCallStoreT) => useCallStoreT | Partial<useCallStoreT>), replace?: false | undefined): unknown;
78
+ setState(state: useCallStoreT | ((state: useCallStoreT) => useCallStoreT), replace: true): unknown;
77
79
  persist: {
78
80
  setOptions: (options: Partial<zustand_middleware.PersistOptions<useCallStoreT, {
79
81
  isCameraPermission: boolean | null;
@@ -87,7 +89,7 @@ declare const useCallStore: zustand.UseBoundStore<Omit<zustand.StoreApi<useCallS
87
89
  activeCorner: CornerT;
88
90
  compactViewMode: CompactViewModeT;
89
91
  pinnedByClassroom: Record<string, PinnedParticipantT[]>;
90
- }>>) => void;
92
+ }, unknown>>) => void;
91
93
  clearStorage: () => void;
92
94
  rehydrate: () => Promise<void> | void;
93
95
  hasHydrated: () => boolean;
@@ -105,7 +107,7 @@ declare const useCallStore: zustand.UseBoundStore<Omit<zustand.StoreApi<useCallS
105
107
  activeCorner: CornerT;
106
108
  compactViewMode: CompactViewModeT;
107
109
  pinnedByClassroom: Record<string, PinnedParticipantT[]>;
108
- }>>;
110
+ }, unknown>>;
109
111
  };
110
112
  }>;
111
113
 
@@ -125,12 +127,14 @@ type DerivedStateT = {
125
127
  isMicrophonePrompted: boolean;
126
128
  };
127
129
  type State = BaseStateT & DerivedStateT;
128
- declare const usePermissionsStore: zustand.UseBoundStore<Omit<zustand.StoreApi<State>, "persist"> & {
130
+ declare const usePermissionsStore: zustand.UseBoundStore<Omit<zustand.StoreApi<State>, "setState" | "persist"> & {
131
+ setState(partial: State | Partial<State> | ((state: State) => State | Partial<State>), replace?: false | undefined): unknown;
132
+ setState(state: State | ((state: State) => State), replace: true): unknown;
129
133
  persist: {
130
134
  setOptions: (options: Partial<zustand_middleware.PersistOptions<State, {
131
135
  cameraPermission: PermissionStateT;
132
136
  microphonePermission: PermissionStateT;
133
- }>>) => void;
137
+ }, unknown>>) => void;
134
138
  clearStorage: () => void;
135
139
  rehydrate: () => Promise<void> | void;
136
140
  hasHydrated: () => boolean;
@@ -139,7 +143,7 @@ declare const usePermissionsStore: zustand.UseBoundStore<Omit<zustand.StoreApi<S
139
143
  getOptions: () => Partial<zustand_middleware.PersistOptions<State, {
140
144
  cameraPermission: PermissionStateT;
141
145
  microphonePermission: PermissionStateT;
142
- }>>;
146
+ }, unknown>>;
143
147
  };
144
148
  }>;
145
149
  declare const openPermissionsDialog: () => void;
@@ -157,7 +161,9 @@ type LocalUserChoices = LocalUserChoices$1 & {
157
161
  /** Режим шумоподавления: off | webrtc | krisp. */
158
162
  noiseCancellationMode?: NoiseCancellationMode;
159
163
  };
160
- declare const useUserChoicesStore: zustand.UseBoundStore<Omit<zustand.StoreApi<LocalUserChoices>, "persist"> & {
164
+ declare const useUserChoicesStore: zustand.UseBoundStore<Omit<zustand.StoreApi<LocalUserChoices>, "setState" | "persist"> & {
165
+ setState(partial: LocalUserChoices | Partial<LocalUserChoices> | ((state: LocalUserChoices) => LocalUserChoices | Partial<LocalUserChoices>), replace?: false | undefined): unknown;
166
+ setState(state: LocalUserChoices | ((state: LocalUserChoices) => LocalUserChoices), replace: true): unknown;
161
167
  persist: {
162
168
  setOptions: (options: Partial<zustand_middleware.PersistOptions<LocalUserChoices, {
163
169
  videoEnabled: boolean;
@@ -174,7 +180,7 @@ declare const useUserChoicesStore: zustand.UseBoundStore<Omit<zustand.StoreApi<L
174
180
  noiseCancellationEnabled?: boolean;
175
181
  /** Режим шумоподавления: off | webrtc | krisp. */
176
182
  noiseCancellationMode?: NoiseCancellationMode;
177
- }>>) => void;
183
+ }, unknown>>) => void;
178
184
  clearStorage: () => void;
179
185
  rehydrate: () => Promise<void> | void;
180
186
  hasHydrated: () => boolean;
@@ -195,7 +201,7 @@ declare const useUserChoicesStore: zustand.UseBoundStore<Omit<zustand.StoreApi<L
195
201
  noiseCancellationEnabled?: boolean;
196
202
  /** Режим шумоподавления: off | webrtc | krisp. */
197
203
  noiseCancellationMode?: NoiseCancellationMode;
198
- }>>;
204
+ }, unknown>>;
199
205
  };
200
206
  }>;
201
207
 
@@ -210,7 +216,9 @@ interface SoundEffectsState {
210
216
  setSoundVolume: (key: SoundKey, volume: number) => void;
211
217
  getEffectiveVolume: (key: SoundKey) => number;
212
218
  }
213
- declare const useSoundEffectsStore: zustand.UseBoundStore<Omit<zustand.StoreApi<SoundEffectsState>, "persist"> & {
219
+ declare const useSoundEffectsStore: zustand.UseBoundStore<Omit<zustand.StoreApi<SoundEffectsState>, "setState" | "persist"> & {
220
+ setState(partial: SoundEffectsState | Partial<SoundEffectsState> | ((state: SoundEffectsState) => SoundEffectsState | Partial<SoundEffectsState>), replace?: false | undefined): unknown;
221
+ setState(state: SoundEffectsState | ((state: SoundEffectsState) => SoundEffectsState), replace: true): unknown;
214
222
  persist: {
215
223
  setOptions: (options: Partial<zustand_middleware.PersistOptions<SoundEffectsState, {
216
224
  chatMessageVolume: number;
@@ -219,7 +227,7 @@ declare const useSoundEffectsStore: zustand.UseBoundStore<Omit<zustand.StoreApi<
219
227
  userLeftVolume: number;
220
228
  boardTimerEndVolume: number;
221
229
  boardTimerWarnVolume: number;
222
- }>>) => void;
230
+ }, unknown>>) => void;
223
231
  clearStorage: () => void;
224
232
  rehydrate: () => Promise<void> | void;
225
233
  hasHydrated: () => boolean;
@@ -232,7 +240,7 @@ declare const useSoundEffectsStore: zustand.UseBoundStore<Omit<zustand.StoreApi<
232
240
  userLeftVolume: number;
233
241
  boardTimerEndVolume: number;
234
242
  boardTimerWarnVolume: number;
235
- }>>;
243
+ }, unknown>>;
236
244
  };
237
245
  }>;
238
246
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xipkg/calls-store",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -12,15 +12,15 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "zustand": "5.0.3",
16
- "@xipkg/calls-types": "^0.1.9"
15
+ "zustand": "5.0.14",
16
+ "@xipkg/calls-types": "^0.1.10"
17
17
  },
18
18
  "devDependencies": {
19
- "@tanstack/react-query-devtools": "5.73.3",
19
+ "@tanstack/react-query-devtools": "5.101.4",
20
20
  "@eslint/js": "^9.19.0",
21
21
  "common.typescript": "*",
22
22
  "@types/node": "^20.3.1",
23
- "@types/react": "^19.0.2",
23
+ "@types/react": "^19.2.17",
24
24
  "@types/react-dom": "^19.0.2",
25
25
  "@xipkg/eslint": "4.6.0",
26
26
  "@xipkg/typescript": "0.2.0",
@@ -30,10 +30,10 @@
30
30
  "eslint-plugin-react-refresh": "^0.4.18",
31
31
  "globals": "^15.14.0",
32
32
  "typescript": "~5.7.2",
33
- "typescript-eslint": "^8.22.0"
33
+ "typescript-eslint": "^8.65.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "react": "19"
36
+ "react": "^19.2.8"
37
37
  },
38
38
  "description": "@xipkg/calls-store",
39
39
  "author": "xi.effect",