@simfinity/constellation-ui 1.0.8 → 1.0.10

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/dist/index.cjs CHANGED
@@ -83,7 +83,8 @@ function useConstellationSession() {
83
83
  if (!ctx) throw new Error("Must be used inside ConstellationProvider");
84
84
  return {
85
85
  sessionId: ctx.sessionId,
86
- connected: ctx.connected
86
+ connected: ctx.connected,
87
+ voiceEnabled: ctx.voiceEnabled
87
88
  };
88
89
  }
89
90
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.d.cts CHANGED
@@ -139,6 +139,7 @@ declare function useConstellationClient(): any;
139
139
  * {
140
140
  * sessionId: string | null
141
141
  * connected: boolean
142
+ * voiceEnabled: boolean
142
143
  * }
143
144
  *
144
145
  * sessionId
@@ -147,9 +148,12 @@ declare function useConstellationClient(): any;
147
148
  * connected
148
149
  * - True after successful joinSession().
149
150
  *
151
+ * voiceEnabled
152
+ * - True if startSession() was called with voiceEnabled=true
153
+ *
150
154
  * @example
151
155
  * ```tsx
152
- * const { connected, sessionId } = useConstellationSession();
156
+ * const { connected, sessionId, voiceEnabled } = useConstellationSession();
153
157
  *
154
158
  * if (!connected) return <p>Disconnected</p>;
155
159
  * ```
package/dist/index.d.ts CHANGED
@@ -139,6 +139,7 @@ declare function useConstellationClient(): any;
139
139
  * {
140
140
  * sessionId: string | null
141
141
  * connected: boolean
142
+ * voiceEnabled: boolean
142
143
  * }
143
144
  *
144
145
  * sessionId
@@ -147,9 +148,12 @@ declare function useConstellationClient(): any;
147
148
  * connected
148
149
  * - True after successful joinSession().
149
150
  *
151
+ * voiceEnabled
152
+ * - True if startSession() was called with voiceEnabled=true
153
+ *
150
154
  * @example
151
155
  * ```tsx
152
- * const { connected, sessionId } = useConstellationSession();
156
+ * const { connected, sessionId, voiceEnabled } = useConstellationSession();
153
157
  *
154
158
  * if (!connected) return <p>Disconnected</p>;
155
159
  * ```
package/dist/index.js CHANGED
@@ -45,7 +45,8 @@ function useConstellationSession() {
45
45
  if (!ctx) throw new Error("Must be used inside ConstellationProvider");
46
46
  return {
47
47
  sessionId: ctx.sessionId,
48
- connected: ctx.connected
48
+ connected: ctx.connected,
49
+ voiceEnabled: ctx.voiceEnabled
49
50
  };
50
51
  }
51
52
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simfinity/constellation-ui",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -25,7 +25,7 @@
25
25
  "author": "Simfinity",
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "@simfinity/constellation-client": "^1.0.15"
28
+ "@simfinity/constellation-client": "^1.0.18"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/react": "^19.2.11",