@naviedu/room-platform-react 0.0.65 → 0.0.68

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 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
@@ -594,6 +594,7 @@ export declare type RoomPlatformRoomProps = {
594
594
  onLaunchTicketRequired: (reason: RoomLaunchTicketRenewalReason) => Promise<{
595
595
  launchToken: string;
596
596
  }>;
597
+ roomControlScopeId?: string;
597
598
  children?: ReactNode;
598
599
  };
599
600