@parcae/sdk 0.0.6 → 0.0.7
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 +14 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -198,7 +198,7 @@ client.send("some:event", data);
|
|
|
198
198
|
|
|
199
199
|
### useConnectionStatus
|
|
200
200
|
|
|
201
|
-
Connection state for the transport.
|
|
201
|
+
Connection state snapshot for the transport.
|
|
202
202
|
|
|
203
203
|
```tsx
|
|
204
204
|
import { useConnectionStatus } from "@parcae/sdk/react";
|
|
@@ -234,21 +234,29 @@ function ThemeToggle() {
|
|
|
234
234
|
```typescript
|
|
235
235
|
// Main
|
|
236
236
|
import { createClient, SocketTransport, SSETransport } from "@parcae/sdk";
|
|
237
|
-
import type {
|
|
237
|
+
import type {
|
|
238
|
+
ClientConfig,
|
|
239
|
+
ParcaeClient,
|
|
240
|
+
SocketTransportConfig,
|
|
241
|
+
SSETransportConfig,
|
|
242
|
+
Transport,
|
|
243
|
+
} from "@parcae/sdk";
|
|
244
|
+
|
|
245
|
+
// Re-exports from @parcae/model
|
|
246
|
+
import { Model, FrontendAdapter } from "@parcae/sdk";
|
|
238
247
|
|
|
239
248
|
// React
|
|
240
249
|
import {
|
|
241
250
|
ParcaeProvider,
|
|
251
|
+
ParcaeContext,
|
|
252
|
+
useParcae,
|
|
242
253
|
useQuery,
|
|
243
254
|
useApi,
|
|
244
255
|
useSDK,
|
|
245
256
|
useConnectionStatus,
|
|
246
257
|
useSetting,
|
|
247
|
-
useParcae,
|
|
248
258
|
} from "@parcae/sdk/react";
|
|
249
|
-
|
|
250
|
-
// Re-exports from @parcae/model
|
|
251
|
-
import { Model, FrontendAdapter } from "@parcae/sdk";
|
|
259
|
+
import type { ParcaeProviderProps } from "@parcae/sdk/react";
|
|
252
260
|
```
|
|
253
261
|
|
|
254
262
|
## License
|