@mieweb/ui 0.10.0-dev.11 → 0.10.0-dev.13

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.
Files changed (130) hide show
  1. package/dist/Input-yN516s5_.d.cts +3 -0
  2. package/dist/Input-yN516s5_.d.ts +3 -0
  3. package/dist/ag-grid.d.cts +142 -1
  4. package/dist/ag-grid.d.ts +142 -1
  5. package/dist/{chunk-3M7TAXNR.js → chunk-3YFJBUX4.js} +3 -3
  6. package/dist/{chunk-3M7TAXNR.js.map → chunk-3YFJBUX4.js.map} +1 -1
  7. package/dist/{chunk-ACCAXVOG.js → chunk-4CXGT3P7.js} +61 -41
  8. package/dist/chunk-4CXGT3P7.js.map +1 -0
  9. package/dist/{chunk-OD47TTAW.cjs → chunk-V43ZFGCE.cjs} +9 -9
  10. package/dist/{chunk-OD47TTAW.cjs.map → chunk-V43ZFGCE.cjs.map} +1 -1
  11. package/dist/{chunk-X4XPNTCZ.cjs → chunk-YQ2NQV5C.cjs} +61 -41
  12. package/dist/chunk-YQ2NQV5C.cjs.map +1 -0
  13. package/dist/components/Alert/index.d.cts +1 -1
  14. package/dist/components/Alert/index.d.ts +1 -1
  15. package/dist/components/AlertDialog/index.d.cts +28 -3
  16. package/dist/components/AlertDialog/index.d.ts +28 -3
  17. package/dist/components/AudioRecorder/index.d.cts +2 -2
  18. package/dist/components/AudioRecorder/index.d.ts +2 -2
  19. package/dist/components/Autocomplete/index.d.cts +8 -2
  20. package/dist/components/Autocomplete/index.d.ts +8 -2
  21. package/dist/components/Avatar/index.d.cts +1 -1
  22. package/dist/components/Avatar/index.d.ts +1 -1
  23. package/dist/components/Badge/index.d.cts +1 -1
  24. package/dist/components/Badge/index.d.ts +1 -1
  25. package/dist/components/BoardView/index.d.cts +91 -4
  26. package/dist/components/BoardView/index.d.ts +91 -4
  27. package/dist/components/Button/index.d.cts +1 -1
  28. package/dist/components/Button/index.d.ts +1 -1
  29. package/dist/components/CalendarView/index.d.cts +1 -2
  30. package/dist/components/CalendarView/index.d.ts +1 -2
  31. package/dist/components/Card/index.d.cts +3 -3
  32. package/dist/components/Card/index.d.ts +3 -3
  33. package/dist/components/Dropdown/index.d.cts +2 -1
  34. package/dist/components/Dropdown/index.d.ts +2 -1
  35. package/dist/components/GanttView/index.d.cts +1 -2
  36. package/dist/components/GanttView/index.d.ts +1 -2
  37. package/dist/components/ListView/index.d.cts +2 -3
  38. package/dist/components/ListView/index.d.ts +2 -3
  39. package/dist/components/MediaEditor/index.d.cts +91 -2
  40. package/dist/components/MediaEditor/index.d.ts +91 -2
  41. package/dist/components/MediaPlayer/index.d.cts +1 -1
  42. package/dist/components/MediaPlayer/index.d.ts +1 -1
  43. package/dist/components/Pagination/index.d.cts +1 -1
  44. package/dist/components/Pagination/index.d.ts +1 -1
  45. package/dist/components/PhoneInput/index.d.cts +36 -3
  46. package/dist/components/PhoneInput/index.d.ts +36 -3
  47. package/dist/components/Progress/index.d.cts +1 -1
  48. package/dist/components/Progress/index.d.ts +1 -1
  49. package/dist/components/Q/index.d.cts +2 -2
  50. package/dist/components/Q/index.d.ts +2 -2
  51. package/dist/components/QuickAction/index.d.cts +1 -1
  52. package/dist/components/QuickAction/index.d.ts +1 -1
  53. package/dist/components/RecordButton/index.d.cts +1 -1
  54. package/dist/components/RecordButton/index.d.ts +1 -1
  55. package/dist/components/RichTextEditor/index.d.cts +7 -2
  56. package/dist/components/RichTextEditor/index.d.ts +7 -2
  57. package/dist/components/ScrollArea/index.d.cts +1 -1
  58. package/dist/components/ScrollArea/index.d.ts +1 -1
  59. package/dist/components/Select/index.d.cts +1 -2
  60. package/dist/components/Select/index.d.ts +1 -2
  61. package/dist/components/Skeleton/index.d.cts +1 -1
  62. package/dist/components/Skeleton/index.d.ts +1 -1
  63. package/dist/components/Slider/index.d.cts +2 -2
  64. package/dist/components/Slider/index.d.ts +2 -2
  65. package/dist/components/Spinner/index.d.cts +2 -2
  66. package/dist/components/Spinner/index.d.ts +2 -2
  67. package/dist/components/SuperChat/index.cjs +3 -3
  68. package/dist/components/SuperChat/index.d.cts +2 -4
  69. package/dist/components/SuperChat/index.d.ts +2 -4
  70. package/dist/components/SuperChat/index.js +1 -1
  71. package/dist/components/SuperChat/plugins/index.cjs +3 -3
  72. package/dist/components/SuperChat/plugins/index.d.cts +2 -3
  73. package/dist/components/SuperChat/plugins/index.d.ts +2 -3
  74. package/dist/components/SuperChat/plugins/index.js +2 -2
  75. package/dist/components/Text/index.d.cts +3 -3
  76. package/dist/components/Text/index.d.ts +3 -3
  77. package/dist/components/Textarea/index.d.cts +1 -2
  78. package/dist/components/Textarea/index.d.ts +1 -2
  79. package/dist/components/ThemeProvider/index.d.cts +3 -1
  80. package/dist/components/ThemeProvider/index.d.ts +3 -1
  81. package/dist/components/TranscriptView/index.d.cts +85 -4
  82. package/dist/components/TranscriptView/index.d.ts +85 -4
  83. package/dist/components/ViewSet/index.d.cts +120 -9
  84. package/dist/components/ViewSet/index.d.ts +120 -9
  85. package/dist/components/ViewSwitcher/index.d.cts +4 -40
  86. package/dist/components/ViewSwitcher/index.d.ts +4 -40
  87. package/dist/datavis.d.cts +167 -13
  88. package/dist/datavis.d.ts +167 -13
  89. package/dist/esheet.d.cts +183 -1
  90. package/dist/esheet.d.ts +183 -1
  91. package/dist/hooks/index.d.cts +383 -31
  92. package/dist/hooks/index.d.ts +383 -31
  93. package/dist/index-DoYYWsNc.d.cts +127 -0
  94. package/dist/index-DoYYWsNc.d.ts +127 -0
  95. package/dist/index.cjs +47 -47
  96. package/dist/index.d.cts +7600 -414
  97. package/dist/index.d.ts +7600 -414
  98. package/dist/index.js +4 -4
  99. package/dist/motion.d.cts +186 -2
  100. package/dist/motion.d.ts +186 -2
  101. package/dist/q.d.cts +25 -3
  102. package/dist/q.d.ts +25 -3
  103. package/dist/styles.css +1 -1
  104. package/dist/{types-B97JNRNQ.d.cts → types-DOxdTwmq.d.cts} +170 -2
  105. package/dist/{types-gZXrfLj6.d.ts → types-DOxdTwmq.d.ts} +170 -2
  106. package/dist/{types-CbWXIKbe.d.cts → types-DsdZvEI1.d.cts} +1 -28
  107. package/dist/{types-CbWXIKbe.d.ts → types-DsdZvEI1.d.ts} +1 -28
  108. package/dist/utils/index.d.cts +13 -2
  109. package/dist/utils/index.d.ts +13 -2
  110. package/package.json +3 -2
  111. package/dist/Animated-XmH6k8pZ.d.cts +0 -188
  112. package/dist/Animated-XmH6k8pZ.d.ts +0 -188
  113. package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
  114. package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
  115. package/dist/chunk-ACCAXVOG.js.map +0 -1
  116. package/dist/chunk-X4XPNTCZ.cjs.map +0 -1
  117. package/dist/html-MdxqSzjD.d.cts +0 -13
  118. package/dist/html-MdxqSzjD.d.ts +0 -13
  119. package/dist/orderRows-BUJYgSc7.d.cts +0 -221
  120. package/dist/orderRows-BUJYgSc7.d.ts +0 -221
  121. package/dist/transcript-Cg7uSW-C.d.cts +0 -84
  122. package/dist/transcript-Cg7uSW-C.d.ts +0 -84
  123. package/dist/types-CnPEwzlp.d.cts +0 -254
  124. package/dist/types-CnPEwzlp.d.ts +0 -254
  125. package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
  126. package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
  127. package/dist/useTheme-B9SWu6ui.d.cts +0 -24
  128. package/dist/useTheme-B9SWu6ui.d.ts +0 -24
  129. package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
  130. package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
@@ -1,9 +1,78 @@
1
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
2
  import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { T as Transcript, E as EditableWord, S as SpeedMarker, P as PlaybackSpeed } from '../../transcript-Cg7uSW-C.js';
5
4
  import { MediaKind, MediaPlayerRef } from '../MediaPlayer/index.js';
6
- import { S as SilenceThresholdCount } from '../../useTranscriptEdits-D32bLs0l.js';
5
+
6
+ /**
7
+ * Transcript schema for @mieweb/ui media components.
8
+ *
9
+ * Provider-agnostic and persistence-agnostic. Canonical time unit is
10
+ * **milliseconds** (consumers with seconds-based data, e.g. osheet, adapt
11
+ * at the boundary).
12
+ *
13
+ * Shared by TranscriptView, MediaEditor, and useTranscriptEdits.
14
+ */
15
+ /** Type of transcript word - 'word' for spoken content, 'silence' for detected gaps, 'silence-newline' for longer pauses */
16
+ type WordType = 'word' | 'silence' | 'silence-newline';
17
+ interface TranscriptWord {
18
+ text: string;
19
+ startMs: number;
20
+ endMs: number;
21
+ /** References Speaker.id when diarization is available */
22
+ speakerId?: string;
23
+ confidence?: number;
24
+ /** Type of word: 'word' for spoken content, 'silence' for detected gaps. Defaults to 'word' */
25
+ wordType?: WordType;
26
+ }
27
+ /** A diarized segment of contiguous speech (osheet-style granularity) */
28
+ interface TranscriptSegment {
29
+ text: string;
30
+ startMs: number;
31
+ endMs: number;
32
+ /** References Speaker.id when diarization is available */
33
+ speakerId?: string;
34
+ words: TranscriptWord[];
35
+ }
36
+ interface Speaker {
37
+ id: string;
38
+ /** Display name (e.g. 'Clinician', 'Patient'). Hosts may remap via speakerLabels props. */
39
+ name?: string;
40
+ }
41
+ interface Transcript {
42
+ durationMs: number;
43
+ speakers?: Speaker[];
44
+ words: TranscriptWord[];
45
+ segments?: TranscriptSegment[];
46
+ }
47
+ /**
48
+ * An editable word that references the original transcript word.
49
+ * Used in the edited timeline to track deletions and reordering.
50
+ */
51
+ interface EditableWord {
52
+ /** Index into the SILENCE-INSERTED baseline timeline (transcript.words
53
+ * with detected silence pseudo-words interleaved) — NOT into
54
+ * transcript.words. -1 for split/inserted entries with no baseline slot.
55
+ * Consumers persisting edits should key by this timeline. */
56
+ originalIndex: number;
57
+ /** The word data (from original transcript) */
58
+ word: TranscriptWord;
59
+ /** Whether this word is marked as deleted */
60
+ deleted: boolean;
61
+ /** Whether this word was inserted (pasted from clipboard) */
62
+ inserted?: boolean;
63
+ }
64
+ /** Available playback speed multipliers */
65
+ type PlaybackSpeed = 0.5 | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2;
66
+ /**
67
+ * A speed marker applied to a word in the transcript.
68
+ * The speed applies from this word until the next speed marker or end of transcript.
69
+ */
70
+ interface SpeedMarker {
71
+ /** Index in the editedWords array where the speed marker is placed */
72
+ wordIndex: number;
73
+ /** The playback speed multiplier */
74
+ speed: PlaybackSpeed;
75
+ }
7
76
 
8
77
  interface MediaEditorProps extends VariantProps<typeof mediaEditorVariants> {
9
78
  /** Media URL */
@@ -85,6 +154,26 @@ declare const mediaEditorVariants: (props?: ({
85
154
  */
86
155
  declare const MediaEditor: React.ForwardRefExoticComponent<MediaEditorProps & React.RefAttributes<HTMLDivElement>>;
87
156
 
157
+ /**
158
+ * useTranscriptEdits — headless transcript-editing state hook.
159
+ *
160
+ * Extracted from pulseclip's TranscriptViewer for @mieweb/ui. Holds the
161
+ * edited word timeline (deletions, insertions, text edits, silence
162
+ * splitting), a single-level undo stack, an internal clipboard, speed
163
+ * markers, and derived playback/statistics data.
164
+ *
165
+ * Controlled + persistence-agnostic: no DOM, no fetches. Selection lives in
166
+ * the UI layer — mutations take explicit indices. State flows out via
167
+ * `onChange` and back in via `initialEditedWords` / `initialUndoStack`.
168
+ */
169
+
170
+ /** Count and total duration of silences above a given threshold (seconds) */
171
+ interface SilenceThresholdCount {
172
+ threshold: number;
173
+ count: number;
174
+ durationMs: number;
175
+ }
176
+
88
177
  /**
89
178
  * FillerWordsModal — select filler words (and long silences) to mark deleted.
90
179
  *
@@ -53,7 +53,7 @@ interface MediaPlayerProps extends VariantProps<typeof mediaPlayerVariants> {
53
53
  mediaElementRef?: React.RefObject<HTMLVideoElement | HTMLAudioElement | null>;
54
54
  }
55
55
  declare const mediaPlayerVariants: (props?: ({
56
- variant?: "card" | "plain" | null | undefined;
56
+ variant?: "plain" | "card" | null | undefined;
57
57
  } & class_variance_authority_types.ClassProp) | undefined) => string;
58
58
  /** Infer media kind from a URL's file extension; defaults to audio. */
59
59
  declare function inferMediaKind(src: string): MediaKind;
@@ -53,7 +53,7 @@ interface MediaPlayerProps extends VariantProps<typeof mediaPlayerVariants> {
53
53
  mediaElementRef?: React.RefObject<HTMLVideoElement | HTMLAudioElement | null>;
54
54
  }
55
55
  declare const mediaPlayerVariants: (props?: ({
56
- variant?: "card" | "plain" | null | undefined;
56
+ variant?: "plain" | "card" | null | undefined;
57
57
  } & class_variance_authority_types.ClassProp) | undefined) => string;
58
58
  /** Infer media kind from a URL's file extension; defaults to audio. */
59
59
  declare function inferMediaKind(src: string): MediaKind;
@@ -3,7 +3,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const paginationButtonVariants: (props?: ({
6
- variant?: "default" | "ghost" | "outline" | null | undefined;
6
+ variant?: "default" | "outline" | "ghost" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface PaginationProps extends VariantProps<typeof paginationButtonVariants> {
@@ -3,7 +3,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const paginationButtonVariants: (props?: ({
6
- variant?: "default" | "ghost" | "outline" | null | undefined;
6
+ variant?: "default" | "outline" | "ghost" | null | undefined;
7
7
  size?: "sm" | "md" | "lg" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface PaginationProps extends VariantProps<typeof paginationButtonVariants> {
@@ -1,8 +1,41 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { InputProps } from '../Input/index.cjs';
4
- import 'class-variance-authority/types';
5
- import 'class-variance-authority';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare const inputVariants: (props?: ({
7
+ size?: "sm" | "md" | "lg" | null | undefined;
8
+ hasError?: boolean | null | undefined;
9
+ labelVariant?: "stacked" | "floating" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, Omit<VariantProps<typeof inputVariants>, 'labelVariant'> {
12
+ /** Error message to display below the input */
13
+ error?: string;
14
+ /** Helper text to display below the input */
15
+ helperText?: string;
16
+ /** Label for the input */
17
+ label?: string;
18
+ /**
19
+ * How the label is rendered.
20
+ * - `stacked` (default): label above the input.
21
+ * - `floating`: label rests inside the input like a placeholder and floats
22
+ * to the top of the field (staying inside it) when focused or filled.
23
+ * Ignores `placeholder`; when `hideLabel` is set, falls back to a
24
+ * visually-hidden stacked label.
25
+ */
26
+ labelVariant?: 'stacked' | 'floating';
27
+ /** Whether the label should be visually hidden (still accessible) */
28
+ hideLabel?: boolean;
29
+ /** Whether the input is required */
30
+ required?: boolean;
31
+ /**
32
+ * Color of the required asterisk.
33
+ * - `default`: destructive (hard requirement).
34
+ * - `warning`: warning color (soft requirement / recommended).
35
+ */
36
+ requiredVariant?: RequiredMarkVariant;
37
+ }
38
+ type RequiredMarkVariant = 'default' | 'warning';
6
39
 
7
40
  interface PhoneInputProps extends Omit<InputProps, 'type' | 'onChange' | 'value'> {
8
41
  /** The phone number value (can be formatted or unformatted) */
@@ -1,8 +1,41 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { InputProps } from '../Input/index.js';
4
- import 'class-variance-authority/types';
5
- import 'class-variance-authority';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import { VariantProps } from 'class-variance-authority';
5
+
6
+ declare const inputVariants: (props?: ({
7
+ size?: "sm" | "md" | "lg" | null | undefined;
8
+ hasError?: boolean | null | undefined;
9
+ labelVariant?: "stacked" | "floating" | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, Omit<VariantProps<typeof inputVariants>, 'labelVariant'> {
12
+ /** Error message to display below the input */
13
+ error?: string;
14
+ /** Helper text to display below the input */
15
+ helperText?: string;
16
+ /** Label for the input */
17
+ label?: string;
18
+ /**
19
+ * How the label is rendered.
20
+ * - `stacked` (default): label above the input.
21
+ * - `floating`: label rests inside the input like a placeholder and floats
22
+ * to the top of the field (staying inside it) when focused or filled.
23
+ * Ignores `placeholder`; when `hideLabel` is set, falls back to a
24
+ * visually-hidden stacked label.
25
+ */
26
+ labelVariant?: 'stacked' | 'floating';
27
+ /** Whether the label should be visually hidden (still accessible) */
28
+ hideLabel?: boolean;
29
+ /** Whether the input is required */
30
+ required?: boolean;
31
+ /**
32
+ * Color of the required asterisk.
33
+ * - `default`: destructive (hard requirement).
34
+ * - `warning`: warning color (soft requirement / recommended).
35
+ */
36
+ requiredVariant?: RequiredMarkVariant;
37
+ }
38
+ type RequiredMarkVariant = 'default' | 'warning';
6
39
 
7
40
  interface PhoneInputProps extends Omit<InputProps, 'type' | 'onChange' | 'value'> {
8
41
  /** The phone number value (can be formatted or unformatted) */
@@ -6,7 +6,7 @@ declare const progressBarTrackVariants: (props?: ({
6
6
  size?: "sm" | "md" | "lg" | "xl" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const progressBarFillVariants: (props?: ({
9
- variant?: "default" | "danger" | "warning" | "success" | null | undefined;
9
+ variant?: "default" | "success" | "warning" | "danger" | null | undefined;
10
10
  animated?: boolean | null | undefined;
11
11
  striped?: boolean | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -6,7 +6,7 @@ declare const progressBarTrackVariants: (props?: ({
6
6
  size?: "sm" | "md" | "lg" | "xl" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const progressBarFillVariants: (props?: ({
9
- variant?: "default" | "danger" | "warning" | "success" | null | undefined;
9
+ variant?: "default" | "success" | "warning" | "danger" | null | undefined;
10
10
  animated?: boolean | null | undefined;
11
11
  striped?: boolean | null | undefined;
12
12
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -1,8 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
1
3
  import { AgentConfigGeneratorProps, QConfig, QSchema } from '@mieweb/q';
2
4
  export { AgentConfigGenerator, AgentConfigGeneratorProps, ConfigEditor, ConfigEditorProps, FormBuilder, FormBuilderProps, GENERIC_TOOLS, Header, HeaderProps, QConfig, QDownloadMode, QSchema, TIMEZONES, ToolBuilder, ToolBuilderProps, configToQuestionnaire, configToYaml, copyToClipboard, defaultSchema, deriveDefaultConfig, downloadConfig, questionnaireToConfig, validateConfig, yamlToConfig } from '@mieweb/q';
3
5
  export { UniversalAgentConfigGenerator, UniversalAgentConfigGeneratorOptions, brands, generateBrandCSS } from '@mieweb/q/universal';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import * as React from 'react';
6
6
 
7
7
  interface QProps extends AgentConfigGeneratorProps {
8
8
  /** Additional class name for the Q container. */
@@ -1,8 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React from 'react';
1
3
  import { AgentConfigGeneratorProps, QConfig, QSchema } from '@mieweb/q';
2
4
  export { AgentConfigGenerator, AgentConfigGeneratorProps, ConfigEditor, ConfigEditorProps, FormBuilder, FormBuilderProps, GENERIC_TOOLS, Header, HeaderProps, QConfig, QDownloadMode, QSchema, TIMEZONES, ToolBuilder, ToolBuilderProps, configToQuestionnaire, configToYaml, copyToClipboard, defaultSchema, deriveDefaultConfig, downloadConfig, questionnaireToConfig, validateConfig, yamlToConfig } from '@mieweb/q';
3
5
  export { UniversalAgentConfigGenerator, UniversalAgentConfigGeneratorOptions, brands, generateBrandCSS } from '@mieweb/q/universal';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import * as React from 'react';
6
6
 
7
7
  interface QProps extends AgentConfigGeneratorProps {
8
8
  /** Additional class name for the Q container. */
@@ -3,7 +3,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
3
3
  import * as React from 'react';
4
4
 
5
5
  declare const quickActionIconVariants: (props?: ({
6
- color?: "primary" | "blue" | "green" | "orange" | "purple" | "red" | "neutral" | "amber" | null | undefined;
6
+ color?: "primary" | "green" | "purple" | "orange" | "blue" | "red" | "amber" | "neutral" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const quickActionVariants: (props?: ({
9
9
  disabled?: boolean | null | undefined;
@@ -3,7 +3,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
3
3
  import * as React from 'react';
4
4
 
5
5
  declare const quickActionIconVariants: (props?: ({
6
- color?: "primary" | "blue" | "green" | "orange" | "purple" | "red" | "neutral" | "amber" | null | undefined;
6
+ color?: "primary" | "green" | "purple" | "orange" | "blue" | "red" | "amber" | "neutral" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const quickActionVariants: (props?: ({
9
9
  disabled?: boolean | null | undefined;
@@ -47,7 +47,7 @@ interface RecordButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonEl
47
47
  mimeType?: string;
48
48
  }
49
49
  declare const recordButtonVariants: (props?: ({
50
- variant?: "default" | "ghost" | "outline" | "minimal" | null | undefined;
50
+ variant?: "default" | "outline" | "ghost" | "minimal" | null | undefined;
51
51
  size?: "sm" | "md" | "lg" | null | undefined;
52
52
  } & class_variance_authority_types.ClassProp) | undefined) => string;
53
53
  declare function formatDuration(seconds: number): string;
@@ -47,7 +47,7 @@ interface RecordButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonEl
47
47
  mimeType?: string;
48
48
  }
49
49
  declare const recordButtonVariants: (props?: ({
50
- variant?: "default" | "ghost" | "outline" | "minimal" | null | undefined;
50
+ variant?: "default" | "outline" | "ghost" | "minimal" | null | undefined;
51
51
  size?: "sm" | "md" | "lg" | null | undefined;
52
52
  } & class_variance_authority_types.ClassProp) | undefined) => string;
53
53
  declare function formatDuration(seconds: number): string;
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- export { i as isHtmlEmpty } from '../../html-MdxqSzjD.cjs';
3
2
 
4
3
  interface RichTextVariable {
5
4
  /** Human-readable label shown in the variable menu. */
@@ -46,6 +45,12 @@ interface RichTextEditorProps {
46
45
  */
47
46
  declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<HTMLDivElement>>;
48
47
 
48
+ /**
49
+ * Returns true when an HTML string has no visible text content.
50
+ * This is a visibility check, not a sanitizer — do NOT use for XSS prevention.
51
+ */
52
+ declare function isHtmlEmpty(html: string): boolean;
53
+
49
54
  /**
50
55
  * Converts spoken punctuation words (e.g. "period", "comma") into the
51
56
  * corresponding characters, using lightweight context heuristics so that words
@@ -59,4 +64,4 @@ declare function processDictation(text: string): string;
59
64
  */
60
65
  declare function convertAngleBracketsToMustache(html: string): string;
61
66
 
62
- export { RichTextEditor, type RichTextEditorProps, type RichTextVariable, type RichTextVariableGroup, convertAngleBracketsToMustache, processDictation };
67
+ export { RichTextEditor, type RichTextEditorProps, type RichTextVariable, type RichTextVariableGroup, convertAngleBracketsToMustache, isHtmlEmpty, processDictation };
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- export { i as isHtmlEmpty } from '../../html-MdxqSzjD.js';
3
2
 
4
3
  interface RichTextVariable {
5
4
  /** Human-readable label shown in the variable menu. */
@@ -46,6 +45,12 @@ interface RichTextEditorProps {
46
45
  */
47
46
  declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<HTMLDivElement>>;
48
47
 
48
+ /**
49
+ * Returns true when an HTML string has no visible text content.
50
+ * This is a visibility check, not a sanitizer — do NOT use for XSS prevention.
51
+ */
52
+ declare function isHtmlEmpty(html: string): boolean;
53
+
49
54
  /**
50
55
  * Converts spoken punctuation words (e.g. "period", "comma") into the
51
56
  * corresponding characters, using lightweight context heuristics so that words
@@ -59,4 +64,4 @@ declare function processDictation(text: string): string;
59
64
  */
60
65
  declare function convertAngleBracketsToMustache(html: string): string;
61
66
 
62
- export { RichTextEditor, type RichTextEditorProps, type RichTextVariable, type RichTextVariableGroup, convertAngleBracketsToMustache, processDictation };
67
+ export { RichTextEditor, type RichTextEditorProps, type RichTextVariable, type RichTextVariableGroup, convertAngleBracketsToMustache, isHtmlEmpty, processDictation };
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const scrollAreaVariants: (props?: ({
6
- orientation?: "both" | "horizontal" | "vertical" | null | undefined;
6
+ orientation?: "vertical" | "horizontal" | "both" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof scrollAreaVariants> {
9
9
  }
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
 
5
5
  declare const scrollAreaVariants: (props?: ({
6
- orientation?: "both" | "horizontal" | "vertical" | null | undefined;
6
+ orientation?: "vertical" | "horizontal" | "both" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof scrollAreaVariants> {
9
9
  }
@@ -1,8 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { RequiredMarkVariant } from '../Input/index.cjs';
5
- import 'react';
4
+ import { R as RequiredMarkVariant } from '../../Input-yN516s5_.cjs';
6
5
 
7
6
  interface SelectOption {
8
7
  /** Unique value for the option */
@@ -1,8 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import { RequiredMarkVariant } from '../Input/index.js';
5
- import 'react';
4
+ import { R as RequiredMarkVariant } from '../../Input-yN516s5_.js';
6
5
 
7
6
  interface SelectOption {
8
7
  /** Unique value for the option */
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const skeletonVariants: (props?: ({
7
- variant?: "button" | "title" | "image" | "text" | "default" | "avatar" | "card" | null | undefined;
7
+ variant?: "default" | "text" | "title" | "avatar" | "button" | "card" | "image" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
10
10
  /** Width of the skeleton */
@@ -4,7 +4,7 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const skeletonVariants: (props?: ({
7
- variant?: "button" | "title" | "image" | "text" | "default" | "avatar" | "card" | null | undefined;
7
+ variant?: "default" | "text" | "title" | "avatar" | "button" | "card" | "image" | null | undefined;
8
8
  } & class_variance_authority_types.ClassProp) | undefined) => string;
9
9
  interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
10
10
  /** Width of the skeleton */
@@ -6,11 +6,11 @@ declare const sliderTrackVariants: (props?: ({
6
6
  size?: "sm" | "md" | "lg" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const sliderRangeVariants: (props?: ({
9
- variant?: "default" | "danger" | "warning" | "success" | "neutral" | null | undefined;
9
+ variant?: "default" | "success" | "warning" | "danger" | "neutral" | null | undefined;
10
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
11
11
  declare const sliderThumbVariants: (props?: ({
12
12
  size?: "sm" | "md" | "lg" | null | undefined;
13
- variant?: "default" | "danger" | "warning" | "success" | "neutral" | null | undefined;
13
+ variant?: "default" | "success" | "warning" | "danger" | "neutral" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SliderProps extends VariantProps<typeof sliderTrackVariants>, VariantProps<typeof sliderRangeVariants> {
16
16
  /** Current value (controlled) */
@@ -6,11 +6,11 @@ declare const sliderTrackVariants: (props?: ({
6
6
  size?: "sm" | "md" | "lg" | null | undefined;
7
7
  } & class_variance_authority_types.ClassProp) | undefined) => string;
8
8
  declare const sliderRangeVariants: (props?: ({
9
- variant?: "default" | "danger" | "warning" | "success" | "neutral" | null | undefined;
9
+ variant?: "default" | "success" | "warning" | "danger" | "neutral" | null | undefined;
10
10
  } & class_variance_authority_types.ClassProp) | undefined) => string;
11
11
  declare const sliderThumbVariants: (props?: ({
12
12
  size?: "sm" | "md" | "lg" | null | undefined;
13
- variant?: "default" | "danger" | "warning" | "success" | "neutral" | null | undefined;
13
+ variant?: "default" | "success" | "warning" | "danger" | "neutral" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  interface SliderProps extends VariantProps<typeof sliderTrackVariants>, VariantProps<typeof sliderRangeVariants> {
16
16
  /** Current value (controlled) */
@@ -4,8 +4,8 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const spinnerVariants: (props?: ({
7
- size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
8
- variant?: "default" | "white" | "muted" | null | undefined;
7
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
8
+ variant?: "default" | "muted" | "white" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
11
11
  /** Accessible label for the spinner */
@@ -4,8 +4,8 @@ import * as React from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
6
6
  declare const spinnerVariants: (props?: ({
7
- size?: "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
8
- variant?: "default" | "white" | "muted" | null | undefined;
7
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
8
+ variant?: "default" | "muted" | "white" | null | undefined;
9
9
  } & class_variance_authority_types.ClassProp) | undefined) => string;
10
10
  interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
11
11
  /** Accessible label for the spinner */
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkJFLC7SHM_cjs = require('../../chunk-JFLC7SHM.cjs');
4
4
  var chunkMYHV2ND3_cjs = require('../../chunk-MYHV2ND3.cjs');
5
- var chunkX4XPNTCZ_cjs = require('../../chunk-X4XPNTCZ.cjs');
5
+ var chunkYQ2NQV5C_cjs = require('../../chunk-YQ2NQV5C.cjs');
6
6
  var chunkSGFYA22I_cjs = require('../../chunk-SGFYA22I.cjs');
7
7
  var chunkJEIW7BSV_cjs = require('../../chunk-JEIW7BSV.cjs');
8
8
  require('../../chunk-VBWRH4UW.cjs');
@@ -1156,7 +1156,7 @@ function SuperChat({
1156
1156
  }) {
1157
1157
  const headingId = React3__namespace.useId();
1158
1158
  React3__namespace.useEffect(() => {
1159
- chunkX4XPNTCZ_cjs.notifyComposerMigrationOnce("SuperChat");
1159
+ chunkYQ2NQV5C_cjs.notifyComposerMigrationOnce("SuperChat");
1160
1160
  }, []);
1161
1161
  const renderText = React3__namespace.useMemo(
1162
1162
  () => renderTextContent ?? createMarkdownRenderer({
@@ -1518,7 +1518,7 @@ function SuperChat({
1518
1518
  }
1519
1519
  ),
1520
1520
  /* @__PURE__ */ jsxRuntime.jsx(
1521
- chunkX4XPNTCZ_cjs.ChatComposer,
1521
+ chunkYQ2NQV5C_cjs.ChatComposer,
1522
1522
  {
1523
1523
  value: draft,
1524
1524
  onValueChange: handleDraftChange,
@@ -1,8 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AttachmentKind, b as SuperChatLinkBuilder, c as SuperChatCopyFormat, C as ComposerAttachment, d as SuperChatRef } from '../../types-B97JNRNQ.cjs';
3
- export { G as GenUIBlockPayload, e as GenUIPrefetchPolicy, f as GenUIRegistry, g as GenUIWidgetEntry, h as GenUIWidgetProps, P as Participant, i as ParticipantKind, j as ParticipantStatus, k as StandardSchemaV1, l as SuperChatChannel, m as SuperChatItemType, n as SuperChatMessage, o as SuperChatPluggable, p as SuperChatPluggableList } from '../../types-B97JNRNQ.cjs';
4
- import { b as AIRenderTextContent } from '../../types-CnPEwzlp.cjs';
5
- export { A as AIMessageContent, a as AIMessageStatus, c as AITextRenderContext, M as MCPResourceLink } from '../../types-CnPEwzlp.cjs';
2
+ import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AIRenderTextContent, b as AttachmentKind, c as SuperChatLinkBuilder, d as SuperChatCopyFormat, C as ComposerAttachment, e as SuperChatRef } from '../../types-DOxdTwmq.cjs';
3
+ export { f as AIMessageContent, g as AIMessageStatus, h as AITextRenderContext, G as GenUIBlockPayload, i as GenUIPrefetchPolicy, j as GenUIRegistry, k as GenUIWidgetEntry, l as GenUIWidgetProps, M as MCPResourceLink, P as Participant, m as ParticipantKind, n as ParticipantStatus, o as StandardSchemaV1, p as SuperChatChannel, q as SuperChatItemType, r as SuperChatMessage, s as SuperChatPluggable, t as SuperChatPluggableList } from '../../types-DOxdTwmq.cjs';
6
4
  import * as React from 'react';
7
5
 
8
6
  interface SuperChatProps {
@@ -1,8 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AttachmentKind, b as SuperChatLinkBuilder, c as SuperChatCopyFormat, C as ComposerAttachment, d as SuperChatRef } from '../../types-gZXrfLj6.js';
3
- export { G as GenUIBlockPayload, e as GenUIPrefetchPolicy, f as GenUIRegistry, g as GenUIWidgetEntry, h as GenUIWidgetProps, P as Participant, i as ParticipantKind, j as ParticipantStatus, k as StandardSchemaV1, l as SuperChatChannel, m as SuperChatItemType, n as SuperChatMessage, o as SuperChatPluggable, p as SuperChatPluggableList } from '../../types-gZXrfLj6.js';
4
- import { b as AIRenderTextContent } from '../../types-CnPEwzlp.js';
5
- export { A as AIMessageContent, a as AIMessageStatus, c as AITextRenderContext, M as MCPResourceLink } from '../../types-CnPEwzlp.js';
2
+ import { S as SuperChatConversation, a as SuperChatRenderPlugin, A as AIRenderTextContent, b as AttachmentKind, c as SuperChatLinkBuilder, d as SuperChatCopyFormat, C as ComposerAttachment, e as SuperChatRef } from '../../types-DOxdTwmq.js';
3
+ export { f as AIMessageContent, g as AIMessageStatus, h as AITextRenderContext, G as GenUIBlockPayload, i as GenUIPrefetchPolicy, j as GenUIRegistry, k as GenUIWidgetEntry, l as GenUIWidgetProps, M as MCPResourceLink, P as Participant, m as ParticipantKind, n as ParticipantStatus, o as StandardSchemaV1, p as SuperChatChannel, q as SuperChatItemType, r as SuperChatMessage, s as SuperChatPluggable, t as SuperChatPluggableList } from '../../types-DOxdTwmq.js';
6
4
  import * as React from 'react';
7
5
 
8
6
  interface SuperChatProps {
@@ -1,7 +1,7 @@
1
1
  import { TextRenderContext } from '../../chunk-I6CY5C6A.js';
2
2
  export { TextRenderContext, useTextRenderContext } from '../../chunk-I6CY5C6A.js';
3
3
  import { ChatBubble, MCPToolCallDisplay, AITypingIndicator, SparklesIcon, CloseIcon, JumpToBottomButton } from '../../chunk-TZJQB4P2.js';
4
- import { notifyComposerMigrationOnce, ChatComposer } from '../../chunk-ACCAXVOG.js';
4
+ import { notifyComposerMigrationOnce, ChatComposer } from '../../chunk-4CXGT3P7.js';
5
5
  import { Dropdown, DropdownSubmenu, DropdownItem } from '../../chunk-ZGRCSNPK.js';
6
6
  import { Avatar } from '../../chunk-HZ4MBUC3.js';
7
7
  import '../../chunk-IQ4KQJAO.js';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkJFLC7SHM_cjs = require('../../../chunk-JFLC7SHM.cjs');
4
- var chunkOD47TTAW_cjs = require('../../../chunk-OD47TTAW.cjs');
5
- require('../../../chunk-X4XPNTCZ.cjs');
4
+ var chunkV43ZFGCE_cjs = require('../../../chunk-V43ZFGCE.cjs');
5
+ require('../../../chunk-YQ2NQV5C.cjs');
6
6
  require('../../../chunk-SGFYA22I.cjs');
7
7
  require('../../../chunk-I44YNYI6.cjs');
8
8
  require('../../../chunk-Z5S5JEJD.cjs');
@@ -613,7 +613,7 @@ function ZoomableImage({
613
613
  ),
614
614
  open && typeof document !== "undefined" && reactDom.createPortal(
615
615
  /* @__PURE__ */ jsxRuntime.jsx(
616
- chunkOD47TTAW_cjs.LightboxModal,
616
+ chunkV43ZFGCE_cjs.LightboxModal,
617
617
  {
618
618
  attachment,
619
619
  onClose: () => setOpen(false)
@@ -1,7 +1,6 @@
1
- import { a as SuperChatRenderPlugin, f as GenUIRegistry } from '../../../types-B97JNRNQ.cjs';
2
- export { g as GenUIWidgetEntry, h as GenUIWidgetProps } from '../../../types-B97JNRNQ.cjs';
1
+ import { a as SuperChatRenderPlugin, j as GenUIRegistry } from '../../../types-DOxdTwmq.cjs';
2
+ export { k as GenUIWidgetEntry, l as GenUIWidgetProps } from '../../../types-DOxdTwmq.cjs';
3
3
  import 'react';
4
- import '../../../types-CnPEwzlp.cjs';
5
4
 
6
5
  /**
7
6
  * SuperChat code plugin (opt-in).
@@ -1,7 +1,6 @@
1
- import { a as SuperChatRenderPlugin, f as GenUIRegistry } from '../../../types-gZXrfLj6.js';
2
- export { g as GenUIWidgetEntry, h as GenUIWidgetProps } from '../../../types-gZXrfLj6.js';
1
+ import { a as SuperChatRenderPlugin, j as GenUIRegistry } from '../../../types-DOxdTwmq.js';
2
+ export { k as GenUIWidgetEntry, l as GenUIWidgetProps } from '../../../types-DOxdTwmq.js';
3
3
  import 'react';
4
- import '../../../types-CnPEwzlp.js';
5
4
 
6
5
  /**
7
6
  * SuperChat code plugin (opt-in).
@@ -1,6 +1,6 @@
1
1
  import { useTextRenderContext } from '../../../chunk-I6CY5C6A.js';
2
- import { LightboxModal } from '../../../chunk-3M7TAXNR.js';
3
- import '../../../chunk-ACCAXVOG.js';
2
+ import { LightboxModal } from '../../../chunk-3YFJBUX4.js';
3
+ import '../../../chunk-4CXGT3P7.js';
4
4
  import '../../../chunk-ZGRCSNPK.js';
5
5
  import '../../../chunk-6NZXWKUE.js';
6
6
  import '../../../chunk-3IMM2PM4.js';