@dynamic-labs/react-hooks 2.0.0-alpha.29
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/README.md +38 -0
- package/index.js +1648 -0
- package/package.json +14 -0
- package/src/index.d.ts +2 -0
- package/src/lib/context/DynamicClientContext.d.ts +11 -0
- package/src/lib/hooks/useReactivityProxy/index.d.ts +1 -0
- package/src/lib/hooks/useReactivityProxy/useReactivityProxy.d.ts +1 -0
- package/src/lib/types/DefaultClient.d.ts +2 -0
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamic-labs/react-hooks",
|
|
3
|
+
"version": "2.0.0-alpha.29",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"react": "^18.0.0",
|
|
6
|
+
"@vue/reactivity": "^3.4.21",
|
|
7
|
+
"@dynamic-labs/client": "2.0.0-alpha.29"
|
|
8
|
+
},
|
|
9
|
+
"module": "./index.js",
|
|
10
|
+
"main": "./index.js",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"types": "./src/index.d.ts",
|
|
13
|
+
"dependencies": {}
|
|
14
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { DefaultClient } from '../types/DefaultClient';
|
|
3
|
+
type DynamicClientProviderProps = {
|
|
4
|
+
client: DefaultClient;
|
|
5
|
+
};
|
|
6
|
+
export declare const DynamicClientProvider: FC<PropsWithChildren<DynamicClientProviderProps>>;
|
|
7
|
+
type UseDynamicClientProps = {
|
|
8
|
+
watch?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const useDynamicClient: ({ watch, }?: UseDynamicClientProps) => DefaultClient;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useReactivityProxy } from './useReactivityProxy';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useReactivityProxy: <T extends object>(target: T) => T;
|