@paymanai/payman-ask-sdk 1.2.3 → 1.2.4

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
@@ -153,6 +153,38 @@ function MyApp() {
153
153
  - **[ENDPOINTS.md](./ENDPOINTS.md)** - API endpoints guide
154
154
  - **[CHANGELOG.md](./CHANGELOG.md)** - Version history
155
155
 
156
+ ## Theming: Shimmer (active step text)
157
+
158
+ The active-step shimmer uses **full color values** only. Define these CSS variables in your app (e.g. in `:root` or your theme file) so the shimmer matches your theme:
159
+
160
+ | Variable | Description |
161
+ |----------|-------------|
162
+ | `--payman-shimmer-muted` | Muted color (gradient ends) |
163
+ | `--payman-shimmer-foreground` | Main text color (gradient sides) |
164
+ | `--payman-shimmer-primary` | Accent color (gradient center) |
165
+
166
+ **Example (hex theme):**
167
+
168
+ ```css
169
+ :root {
170
+ --payman-shimmer-muted: var(--muted-foreground);
171
+ --payman-shimmer-foreground: var(--foreground);
172
+ --payman-shimmer-primary: var(--primary);
173
+ }
174
+ ```
175
+
176
+ **Example (HSL-component theme):**
177
+
178
+ ```css
179
+ :root {
180
+ --payman-shimmer-muted: hsl(var(--muted-foreground));
181
+ --payman-shimmer-foreground: hsl(var(--foreground));
182
+ --payman-shimmer-primary: hsl(var(--primary));
183
+ }
184
+ ```
185
+
186
+ If these are not set, the widget falls back to neutral gray/blue.
187
+
156
188
  ## Common Issues
157
189
 
158
190
  ### 401 Error: "Workflow stage is not set"
package/dist/index.d.mts CHANGED
@@ -192,6 +192,14 @@ type ChatInputProps = {
192
192
  voiceAvailable?: boolean;
193
193
  /** Is currently recording voice */
194
194
  isRecording?: boolean;
195
+ /** Recording duration in seconds (for voice bar timer) */
196
+ recordingDurationSeconds?: number;
197
+ /** Confirm voice recording (stop and apply transcript to input) */
198
+ onConfirmRecording?: () => void;
199
+ /** Cancel voice recording (stop without applying transcript) */
200
+ onCancelRecording?: () => void;
201
+ /** Live transcript while recording (used to animate waveforms only when user is talking) */
202
+ transcribedText?: string;
195
203
  };
196
204
  type MessageListProps = {
197
205
  /** Messages to display */
package/dist/index.d.ts CHANGED
@@ -192,6 +192,14 @@ type ChatInputProps = {
192
192
  voiceAvailable?: boolean;
193
193
  /** Is currently recording voice */
194
194
  isRecording?: boolean;
195
+ /** Recording duration in seconds (for voice bar timer) */
196
+ recordingDurationSeconds?: number;
197
+ /** Confirm voice recording (stop and apply transcript to input) */
198
+ onConfirmRecording?: () => void;
199
+ /** Cancel voice recording (stop without applying transcript) */
200
+ onCancelRecording?: () => void;
201
+ /** Live transcript while recording (used to animate waveforms only when user is talking) */
202
+ transcribedText?: string;
195
203
  };
196
204
  type MessageListProps = {
197
205
  /** Messages to display */