@pmate/account-sdk 0.5.4 → 0.5.5

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/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as _pmate_meta from '@pmate/meta';
4
4
  import { AccountState, Profile, UserSettings, LocalProfileState, RoomPeerInfo, LangShort, VCodeIssueRequest, VCodeIssueResult, AuthRequest, AuthLoginResponse, AuthSession, CreateProfileRequest, UpdateProfileRequest, ProfileScope, GroupInfo } from '@pmate/meta';
5
5
  import { AtomFamily } from 'jotai-family';
6
6
  import * as _pmate_utils from '@pmate/utils';
7
- import { Emitter, Maybe } from '@pmate/utils';
7
+ import { EmitterV2, Maybe } from '@pmate/utils';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
  import * as react from 'react';
10
10
  import { PropsWithChildren } from 'react';
@@ -192,7 +192,10 @@ declare const useAppBackgroundStyle: () => {
192
192
  declare enum AccountManagerEvent {
193
193
  StateChange = "stateChange"
194
194
  }
195
- declare class AccountManagerV2 extends Emitter<AccountManagerEvent> {
195
+ type AccountManagerEventMap = {
196
+ [AccountManagerEvent.StateChange]: void;
197
+ };
198
+ declare class AccountManagerV2 extends EmitterV2<AccountManagerEventMap> {
196
199
  private readonly app;
197
200
  private static instances;
198
201
  constructor(app: string);
@@ -299,4 +302,4 @@ declare class EntityService {
299
302
  }
300
303
 
301
304
  export { AccountManagerEvent, AccountManagerV2, AccountService, Api, AuthProviderV2, DEFAULT_APP_ID, EntityService, LSKEYS, NotAuthenticatedError, ProfileService, Redirect, accountAtom, accountStateAtom, createProfileAtom, getAppConfig, i18n, isProfileStepType, learningLangAtom, localStorageJsonAtom, loginAtom, motherTongueAtom, profileAtom, profileByIdAtom, profileDraftAtom, profilesAtom, resolveAppId, sessionCheckAtom, switchProfileAtom, updateProfileAtom, uploadAvatarAtom, useAppBackgroundStyle, useAuthApp, useProfileStepFlow, useTranslation, userLogoutAtom, userSettingsAtom };
302
- export type { AccountSnapshot, AppConfig, AuthRoute, ProfileDraft, ProfileStep, ProfileStepType };
305
+ export type { AccountManagerEventMap, AccountSnapshot, AppConfig, AuthRoute, ProfileDraft, ProfileStep, ProfileStepType };