applesauce-react 0.0.0-next-20250217174538 → 0.0.0-next-20250217190527
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useActiveAccount(): unknown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QueryStore } from "applesauce-core";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
export declare const QueryStoreContext: import("react").Context<QueryStore | null>;
|
|
4
|
+
/** Provides a QueryStore to the component tree */
|
|
5
|
+
export declare function QueryStoreProvider({ store, children }: PropsWithChildren<{
|
|
6
|
+
store: QueryStore;
|
|
7
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext } from "react";
|
|
3
|
+
export const QueryStoreContext = createContext(null);
|
|
4
|
+
/** Provides a QueryStore to the component tree */
|
|
5
|
+
export function QueryStoreProvider({ store, children }) {
|
|
6
|
+
return _jsx(QueryStoreContext.Provider, { value: store, children: children });
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { QueryStore } from "applesauce-core";
|
|
2
|
+
import { PropsWithChildren } from "react";
|
|
3
|
+
export declare const QueryStoreContext: import("react").Context<QueryStore | null>;
|
|
4
|
+
/** Provides a QueryStore to the component tree */
|
|
5
|
+
export declare function QueryStoreProvider({ store, children }: PropsWithChildren<{
|
|
6
|
+
store: QueryStore;
|
|
7
|
+
}>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext } from "react";
|
|
3
|
+
export const QueryStoreContext = createContext(null);
|
|
4
|
+
/** Provides a QueryStore to the component tree */
|
|
5
|
+
export function QueryStoreProvider({ store, children }) {
|
|
6
|
+
return _jsx(QueryStoreContext.Provider, { value: store, children: children });
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-react",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250217190527",
|
|
4
4
|
"description": "React hooks for applesauce",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"applesauce-accounts": "0.0.0-next-
|
|
52
|
-
"applesauce-content": "0.0.0-next-
|
|
53
|
-
"applesauce-core": "0.0.0-next-
|
|
54
|
-
"applesauce-factory": "0.0.0-next-
|
|
51
|
+
"applesauce-accounts": "0.0.0-next-20250217190527",
|
|
52
|
+
"applesauce-content": "0.0.0-next-20250217190527",
|
|
53
|
+
"applesauce-core": "0.0.0-next-20250217190527",
|
|
54
|
+
"applesauce-factory": "0.0.0-next-20250217190527",
|
|
55
55
|
"nostr-tools": "^2.10.4",
|
|
56
56
|
"observable-hooks": "^4.2.4",
|
|
57
57
|
"react": "^18.3.1",
|