applesauce-react 0.0.0-next-20250312113207 → 0.0.0-next-20250312162115

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,5 +1,6 @@
1
+ import { IEventStore } from "applesauce-core/event-store";
1
2
  /**
2
3
  * Gets the EventStore from a parent {@link EventStoreProvider} component
3
4
  * If there is none it throws an error
4
5
  */
5
- export declare function useEventStore(): import("applesauce-core").EventStore;
6
+ export declare function useEventStore(): IEventStore;
@@ -1,10 +1,10 @@
1
1
  import { PropsWithChildren } from "react";
2
- import { EventStore, QueryStore } from "applesauce-core";
2
+ import { IEventStore, QueryStore } from "applesauce-core";
3
3
  export declare const QueryStoreContext: import("react").Context<QueryStore | null>;
4
- export declare const EventStoreContext: import("react").Context<EventStore | null>;
4
+ export declare const EventStoreContext: import("react").Context<IEventStore | null>;
5
5
  /** Provides a EventStore to the component tree */
6
6
  export declare function EventStoreProvider({ eventStore, children }: PropsWithChildren<{
7
- eventStore: EventStore;
7
+ eventStore: IEventStore;
8
8
  }>): import("react/jsx-runtime").JSX.Element;
9
9
  /** Provides a QueryStore and EventStore to the component tree */
10
10
  export declare function QueryStoreProvider({ queryStore, children }: PropsWithChildren<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-react",
3
- "version": "0.0.0-next-20250312113207",
3
+ "version": "0.0.0-next-20250312162115",
4
4
  "description": "React hooks for applesauce",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -49,10 +49,10 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "applesauce-accounts": "0.0.0-next-20250312113207",
53
- "applesauce-content": "0.0.0-next-20250312113207",
54
- "applesauce-core": "0.0.0-next-20250312113207",
55
- "applesauce-factory": "0.0.0-next-20250312113207",
52
+ "applesauce-accounts": "0.0.0-next-20250312162115",
53
+ "applesauce-content": "0.0.0-next-20250312162115",
54
+ "applesauce-core": "0.0.0-next-20250312162115",
55
+ "applesauce-factory": "0.0.0-next-20250312162115",
56
56
  "nostr-tools": "^2.10.4",
57
57
  "observable-hooks": "^4.2.4",
58
58
  "react": "^18.3.1",