@campnetwork/origin 1.0.0-alpha.14 → 1.0.0-alpha.15

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.
@@ -303,16 +303,12 @@ declare class Auth {
303
303
  * @param {object} options The options object.
304
304
  * @param {string} options.clientId The client ID.
305
305
  * @param {string|object} options.redirectUri The redirect URI used for oauth. Leave empty if you want to use the current URL. If you want different redirect URIs for different socials, pass an object with the socials as keys and the redirect URIs as values.
306
- * @param {boolean} [options.allowAnalytics=true] Whether to allow analytics to be sent.
307
- * @param {object} [options.ackeeInstance] The Ackee instance.
308
306
  * @param {("DEVELOPMENT"|"PRODUCTION")} [options.environment="DEVELOPMENT"] The environment to use.
309
307
  * @throws {APIError} - Throws an error if the clientId is not provided.
310
308
  */
311
- constructor({ clientId, redirectUri, allowAnalytics, ackeeInstance, environment, }: {
309
+ constructor({ clientId, redirectUri, environment, }: {
312
310
  clientId: string;
313
311
  redirectUri: string | Record<string, string>;
314
- allowAnalytics?: boolean;
315
- ackeeInstance?: any;
316
312
  environment?: "DEVELOPMENT" | "PRODUCTION";
317
313
  });
318
314
  /**
@@ -326,6 +322,13 @@ declare class Auth {
326
322
  * });
327
323
  */
328
324
  on(event: "state" | "provider" | "providers" | "viem", callback: Function): void;
325
+ /**
326
+ * Unsubscribe from an event. Possible events are "state", "provider", "providers", and "viem".
327
+ * @param {("state"|"provider"|"providers"|"viem")} event The event.
328
+ * @param {function} callback The callback function.
329
+ * @returns {void}
330
+ */
331
+ off(event: "state" | "provider" | "providers" | "viem", callback: Function): void;
329
332
  /**
330
333
  * Set the loading state.
331
334
  * @param {boolean} loading The loading state.
@@ -470,8 +473,6 @@ interface CampContextType {
470
473
  auth: Auth | null;
471
474
  setAuth: React.Dispatch<React.SetStateAction<Auth | null>>;
472
475
  wagmiAvailable: boolean;
473
- ackee: any;
474
- setAckee: any;
475
476
  environment: Environment;
476
477
  }
477
478
  declare const CampContext: React.Context<CampContextType>;