@naviedu/room-platform-react 0.0.65 → 0.0.66
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 +13 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1249 -522
- package/package.json +5 -1
- package/room-control.d.ts +94 -0
- package/room-control.esm.js +438 -0
package/README.md
CHANGED
|
@@ -63,6 +63,19 @@ export function Room({ launchToken }: { launchToken: string }) {
|
|
|
63
63
|
|
|
64
64
|
`RoomPlatformProvider` is advanced composition only; a consumer using it instead of `RoomPlatformRoom` owns its own DOM and stylesheet boundary.
|
|
65
65
|
|
|
66
|
+
## Framework-neutral room control
|
|
67
|
+
|
|
68
|
+
Use the React-free subpath when a host needs the shared room-control contracts
|
|
69
|
+
and target helper:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import {
|
|
73
|
+
createRoomControlTarget,
|
|
74
|
+
type ClickPayload,
|
|
75
|
+
type ScrollPayload,
|
|
76
|
+
} from '@naviedu/room-platform-react/room-control'
|
|
77
|
+
```
|
|
78
|
+
|
|
66
79
|
`apiBaseUrl` is the URL prefix before `/rooms`. The package calls these routes
|
|
67
80
|
relative to it:
|
|
68
81
|
|
package/index.d.ts
CHANGED