jazz-svelte 0.10.14 → 0.11.0

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.
@@ -2,7 +2,6 @@ export type Props<Acc extends Account = Account> = JazzContextManagerProps<Acc>
2
2
  children?: Snippet;
3
3
  };
4
4
  import { type JazzContextManagerProps } from 'jazz-browser';
5
- import { Account } from 'jazz-tools';
6
5
  import { type Snippet } from 'svelte';
7
6
  declare class __sveltets_Render<Acc extends Account> {
8
7
  props(): Props<Acc>;
@@ -2,9 +2,9 @@
2
2
  export declare function usePassphraseAuth({ wordlist, }: {
3
3
  wordlist: string[];
4
4
  }): {
5
- logIn: (passphrase: string) => Promise<void>;
6
- signUp: (name?: string) => Promise<string>;
7
- registerNewAccount: (passphrase: string, name: string) => Promise<import("jazz-tools").ID<import("jazz-tools").Account>>;
5
+ logIn: (passphrase: any) => Promise<void>;
6
+ signUp: (name: any) => Promise<string>;
7
+ registerNewAccount: (passphrase: any, name: any) => Promise<any>;
8
8
  generateRandomPassphrase: () => string;
9
9
  readonly passphrase: string;
10
10
  readonly state: "anonymous" | "signedIn";
@@ -1,3 +1,3 @@
1
1
  export declare function useIsAuthenticated(): {
2
- readonly value: boolean;
2
+ readonly value: any;
3
3
  };
@@ -1,5 +1,4 @@
1
- import type { AnonymousJazzAgent, AuthSecretStorage, CoValue, CoValueClass, DeeplyLoaded, DepthsIn, ID, JazzContextType } from 'jazz-tools';
2
- import { Account } from 'jazz-tools';
1
+ import type { CoValue, CoValueClass, DeeplyLoaded, DepthsIn, ID, JazzContextType } from 'jazz-tools';
3
2
  import Provider from './Provider.svelte';
4
3
  export { Provider as JazzProvider };
5
4
  /**
@@ -20,12 +19,17 @@ export type JazzContext<Acc extends Account> = {
20
19
  export declare function getJazzContext<Acc extends Account>(): {
21
20
  current: JazzContextType<Acc>;
22
21
  };
23
- export declare function getAuthSecretStorage(): AuthSecretStorage;
22
+ export declare function getAuthSecretStorage(): any;
24
23
  export interface Register {
25
24
  }
26
25
  export type RegisteredAccount = Register extends {
27
26
  Account: infer Acc;
28
27
  } ? Acc : Account;
28
+ declare module "jazz-tools" {
29
+ interface Register {
30
+ Account: RegisteredAccount;
31
+ }
32
+ }
29
33
  export declare function useAccount(): {
30
34
  me: RegisteredAccount;
31
35
  logOut: () => void;
package/dist/testing.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- import { Account, AnonymousJazzAgent, AuthSecretStorage } from "jazz-tools";
2
- import { type JazzContext } from './jazz.svelte.js';
3
1
  export declare function createJazzTestContext<Acc extends Account>(opts?: {
4
2
  account?: Acc | {
5
3
  guest: AnonymousJazzAgent;
6
4
  };
7
5
  isAuthenticated?: boolean;
8
- }): Map<{} | {}, AuthSecretStorage | JazzContext<Acc>>;
6
+ }): Map<{} | {}, any>;
9
7
  export { createJazzTestAccount, createJazzTestGuest, linkAccounts, setActiveAccount, setupJazzTestSync, } from "jazz-tools/testing";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jazz-svelte",
3
- "version": "0.10.14",
3
+ "version": "0.11.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",
@@ -51,9 +51,9 @@
51
51
  "vitest": "3.0.5"
52
52
  },
53
53
  "dependencies": {
54
- "jazz-tools": "0.10.14",
55
- "jazz-browser": "0.10.14",
56
- "cojson": "0.10.8"
54
+ "jazz-browser": "0.11.0",
55
+ "cojson": "0.11.0",
56
+ "jazz-tools": "0.11.0"
57
57
  },
58
58
  "scripts": {
59
59
  "dev": "vite dev",