@videosdk.live/react-sdk 0.1.100 → 0.1.101

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.
@@ -1010,6 +1010,41 @@ export function useFile(): {
1010
1010
  }) => Promise<string | null>;
1011
1011
  };
1012
1012
 
1013
+
1014
+ /**
1015
+ * @returns - This will return `startWhiteboard()`, `stopWhiteboard()` and `whiteboardUrl`.
1016
+ * ---
1017
+ * **useWhiteboard example**
1018
+ * ```javascript
1019
+ * const { startWhiteboard, stopWhiteboard, whiteboardUrl } = useWhiteboard();
1020
+ *
1021
+ * async function handleStartWhiteboard() {
1022
+ * await startWhiteboard();
1023
+ * }
1024
+ *
1025
+ * async function handleStopWhiteboard() {
1026
+ * await stopWhiteboard();
1027
+ * }
1028
+ * ```
1029
+ */
1030
+ export function useWhiteboard():
1031
+ {
1032
+ /**
1033
+ * @description Starts the whiteboard for the meeting.
1034
+ */
1035
+ startWhiteboard: () => Promise<void>;
1036
+
1037
+ /**
1038
+ * @description Stops the whiteboard session for the meeting.
1039
+ */
1040
+ stopWhiteboard: () => Promise<void>;
1041
+
1042
+ /**
1043
+ * @description The URL of the active whiteboard, or `null` if the whiteboard is not currently active.
1044
+ */
1045
+ whiteboardUrl: string | null;
1046
+ };
1047
+
1013
1048
  /**
1014
1049
  * @param onTranscriptionStateChanged - This will triggered when a realtime transcription state is changed.
1015
1050
  * ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videosdk.live/react-sdk",
3
- "version": "0.1.100",
3
+ "version": "0.1.101",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
@@ -27,6 +27,7 @@
27
27
  "author": "videosdk.live",
28
28
  "homepage": "https://docs.videosdk.live/docs/realtime-communication/sdk-reference/react-sdk/setup",
29
29
  "devDependencies": {
30
+ "@types/react": "^18.3.5",
30
31
  "babel-eslint": "^10.0.1",
31
32
  "eslint": "^5.16.0",
32
33
  "husky": "^2.3.0",
@@ -73,7 +74,7 @@
73
74
  }
74
75
  },
75
76
  "dependencies": {
76
- "@videosdk.live/js-sdk": "0.0.96",
77
+ "@videosdk.live/js-sdk": "0.0.97",
77
78
  "events": "^3.3.0"
78
79
  }
79
80
  }