@livekit/components-js-docs 0.1.24 → 0.1.25

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.
@@ -0,0 +1,16 @@
1
+ ---
2
+ {
3
+ "title": "createEmailRegExp",
4
+ "linkToSource": "https://github.com/livekit/components-js/blob/main/packages/core/src/helper/emailRegex.ts"
5
+ }
6
+ ---
7
+
8
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
9
+
10
+ # createEmailRegExp
11
+
12
+ **Signature:**
13
+
14
+ ```typescript
15
+ declare function createEmailRegExp({ exact }?: { exact?: boolean }): RegExp;
16
+ ```
@@ -31,6 +31,7 @@
31
31
  | [createConnectionQualityObserver(participant)](./core/createconnectionqualityobserver.md) | |
32
32
  | [createDataObserver(room)](./core/createdataobserver.md) | |
33
33
  | [createDefaultGrammar()](./core/createdefaultgrammar.md) | |
34
+ | [createEmailRegExp({ exact })](./core/createemailregexp.md) | |
34
35
  | [createIsSpeakingObserver(participant)](./core/createisspeakingobserver.md) | |
35
36
  | [createMediaDeviceObserver(kind, onError, requestPermissions)](./core/createmediadeviceobserver.md) | |
36
37
  | [createTrackObserver(participant, options)](./core/createtrackobserver.md) | |
@@ -25,7 +25,9 @@ There is only one data channel. Passing a `topic` does not open a new data chann
25
25
 
26
26
  ```tsx
27
27
  // Send messages to all participants via the 'chat' topic.
28
- const { message, send } = useDataChannel("chat");
28
+ const { message: latestMessage, send } = useDataChannel("chat", (msg) =>
29
+ console.log("message received", msg)
30
+ );
29
31
  ```
30
32
 
31
33
  {% partial file="p_usage.md" variables={exampleCount: 1} /%}
@@ -25,7 +25,9 @@ There is only one data channel. Passing a `topic` does not open a new data chann
25
25
 
26
26
  ```tsx
27
27
  // Send messages to all participants
28
- const { message, send } = useDataChannel(callback);
28
+ const { message: latestMessage, send } = useDataChannel("chat", (msg) =>
29
+ console.log("message received", msg)
30
+ );
29
31
  ```
30
32
 
31
33
  {% partial file="p_usage.md" variables={exampleCount: 1} /%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/components-js-docs",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "Automatically generated documentation pages for LiveKit Components JS. Intended to be consumed by the documentation page.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,7 @@
8
8
  "directory": "/docs/beta-docs"
9
9
  },
10
10
  "dependencies": {
11
- "@livekit/components-react": "2.3.2"
11
+ "@livekit/components-react": "2.3.3"
12
12
  },
13
13
  "author": "",
14
14
  "license": "Apache-2.0",