@mieweb/ui 0.10.0-dev.10 → 0.10.0-dev.12
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/Input-yN516s5_.d.cts +3 -0
- package/dist/Input-yN516s5_.d.ts +3 -0
- package/dist/ag-grid.d.cts +142 -1
- package/dist/ag-grid.d.ts +142 -1
- package/dist/components/Alert/index.d.cts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/index.d.cts +28 -3
- package/dist/components/AlertDialog/index.d.ts +28 -3
- package/dist/components/AudioRecorder/index.d.cts +2 -2
- package/dist/components/AudioRecorder/index.d.ts +2 -2
- package/dist/components/Autocomplete/index.d.cts +8 -2
- package/dist/components/Autocomplete/index.d.ts +8 -2
- package/dist/components/Avatar/index.d.cts +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BoardView/index.d.cts +91 -4
- package/dist/components/BoardView/index.d.ts +91 -4
- package/dist/components/Button/index.d.cts +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/CalendarView/index.d.cts +1 -2
- package/dist/components/CalendarView/index.d.ts +1 -2
- package/dist/components/Card/index.d.cts +3 -3
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Dropdown/index.d.cts +2 -1
- package/dist/components/Dropdown/index.d.ts +2 -1
- package/dist/components/GanttView/index.d.cts +1 -2
- package/dist/components/GanttView/index.d.ts +1 -2
- package/dist/components/ListView/index.d.cts +2 -3
- package/dist/components/ListView/index.d.ts +2 -3
- package/dist/components/MediaEditor/index.d.cts +91 -2
- package/dist/components/MediaEditor/index.d.ts +91 -2
- package/dist/components/MediaPlayer/index.d.cts +1 -1
- package/dist/components/MediaPlayer/index.d.ts +1 -1
- package/dist/components/Pagination/index.d.cts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PhoneInput/index.d.cts +36 -3
- package/dist/components/PhoneInput/index.d.ts +36 -3
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Q/index.d.cts +2 -2
- package/dist/components/Q/index.d.ts +2 -2
- package/dist/components/QuickAction/index.d.cts +1 -1
- package/dist/components/QuickAction/index.d.ts +1 -1
- package/dist/components/RecordButton/index.d.cts +1 -1
- package/dist/components/RecordButton/index.d.ts +1 -1
- package/dist/components/RichTextEditor/index.d.cts +7 -2
- package/dist/components/RichTextEditor/index.d.ts +7 -2
- package/dist/components/ScrollArea/index.d.cts +1 -1
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/Select/index.d.cts +1 -2
- package/dist/components/Select/index.d.ts +1 -2
- package/dist/components/Skeleton/index.d.cts +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/index.d.cts +2 -2
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Spinner/index.d.cts +2 -2
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/SuperChat/index.d.cts +2 -4
- package/dist/components/SuperChat/index.d.ts +2 -4
- package/dist/components/SuperChat/plugins/index.d.cts +2 -3
- package/dist/components/SuperChat/plugins/index.d.ts +2 -3
- package/dist/components/Text/index.d.cts +3 -3
- package/dist/components/Text/index.d.ts +3 -3
- package/dist/components/Textarea/index.d.cts +1 -2
- package/dist/components/Textarea/index.d.ts +1 -2
- package/dist/components/ThemeProvider/index.d.cts +3 -1
- package/dist/components/ThemeProvider/index.d.ts +3 -1
- package/dist/components/TranscriptView/index.d.cts +85 -4
- package/dist/components/TranscriptView/index.d.ts +85 -4
- package/dist/components/ViewSet/index.d.cts +120 -9
- package/dist/components/ViewSet/index.d.ts +120 -9
- package/dist/components/ViewSwitcher/index.d.cts +4 -40
- package/dist/components/ViewSwitcher/index.d.ts +4 -40
- package/dist/datavis.d.cts +167 -13
- package/dist/datavis.d.ts +167 -13
- package/dist/esheet.d.cts +183 -1
- package/dist/esheet.d.ts +183 -1
- package/dist/hooks/index.d.cts +383 -31
- package/dist/hooks/index.d.ts +383 -31
- package/dist/index-DoYYWsNc.d.cts +127 -0
- package/dist/index-DoYYWsNc.d.ts +127 -0
- package/dist/index.d.cts +7592 -414
- package/dist/index.d.ts +7592 -414
- package/dist/motion.d.cts +186 -2
- package/dist/motion.d.ts +186 -2
- package/dist/q.d.cts +25 -3
- package/dist/q.d.ts +25 -3
- package/dist/{types-B97JNRNQ.d.cts → types-DOxdTwmq.d.cts} +170 -2
- package/dist/{types-gZXrfLj6.d.ts → types-DOxdTwmq.d.ts} +170 -2
- package/dist/{types-CbWXIKbe.d.cts → types-DsdZvEI1.d.cts} +1 -28
- package/dist/{types-CbWXIKbe.d.ts → types-DsdZvEI1.d.ts} +1 -28
- package/dist/utils/index.d.cts +13 -2
- package/dist/utils/index.d.ts +13 -2
- package/package.json +3 -2
- package/dist/Animated-XmH6k8pZ.d.cts +0 -188
- package/dist/Animated-XmH6k8pZ.d.ts +0 -188
- package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
- package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
- package/dist/html-MdxqSzjD.d.cts +0 -13
- package/dist/html-MdxqSzjD.d.ts +0 -13
- package/dist/orderRows-BUJYgSc7.d.cts +0 -221
- package/dist/orderRows-BUJYgSc7.d.ts +0 -221
- package/dist/transcript-Cg7uSW-C.d.cts +0 -84
- package/dist/transcript-Cg7uSW-C.d.ts +0 -84
- package/dist/types-CnPEwzlp.d.cts +0 -254
- package/dist/types-CnPEwzlp.d.ts +0 -254
- package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
- package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
- package/dist/useTheme-B9SWu6ui.d.cts +0 -24
- package/dist/useTheme-B9SWu6ui.d.ts +0 -24
- package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
- package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
|
@@ -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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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?: "
|
|
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?: "
|
|
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 '
|
|
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 '
|
|
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?: "
|
|
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?: "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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" | "
|
|
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?: "
|
|
8
|
-
variant?: "default" | "
|
|
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?: "
|
|
8
|
-
variant?: "default" | "
|
|
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 */
|
|
@@ -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
|
|
3
|
-
export { G as GenUIBlockPayload,
|
|
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
|
|
3
|
-
export { G as GenUIBlockPayload,
|
|
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,6 @@
|
|
|
1
|
-
import { a as SuperChatRenderPlugin,
|
|
2
|
-
export {
|
|
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,
|
|
2
|
-
export {
|
|
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).
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const textVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
7
|
-
size?: "
|
|
8
|
-
weight?: "
|
|
6
|
+
variant?: "default" | "muted" | "primary" | "destructive" | "success" | "warning" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
8
|
+
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
9
9
|
align?: "left" | "start" | "right" | "end" | "center" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
type TextElement = 'p' | 'span' | 'div' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const textVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
7
|
-
size?: "
|
|
8
|
-
weight?: "
|
|
6
|
+
variant?: "default" | "muted" | "primary" | "destructive" | "success" | "warning" | null | undefined;
|
|
7
|
+
size?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
8
|
+
weight?: "normal" | "medium" | "semibold" | "bold" | null | undefined;
|
|
9
9
|
align?: "left" | "start" | "right" | "end" | "center" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
type TextElement = 'p' | 'span' | 'div' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
@@ -1,8 +1,7 @@
|
|
|
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 { RequiredMarkVariant } from '
|
|
5
|
-
import 'react/jsx-runtime';
|
|
4
|
+
import { R as RequiredMarkVariant } from '../../Input-yN516s5_.cjs';
|
|
6
5
|
|
|
7
6
|
declare const textareaVariants: (props?: ({
|
|
8
7
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
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 { RequiredMarkVariant } from '
|
|
5
|
-
import 'react/jsx-runtime';
|
|
4
|
+
import { R as RequiredMarkVariant } from '../../Input-yN516s5_.js';
|
|
6
5
|
|
|
7
6
|
declare const textareaVariants: (props?: ({
|
|
8
7
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { T as Theme, R as ResolvedTheme } from '../../useTheme-B9SWu6ui.cjs';
|
|
4
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
4
|
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
|
|
6
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
7
|
+
type ResolvedTheme = 'light' | 'dark';
|
|
8
|
+
|
|
7
9
|
interface ThemeProviderContextValue {
|
|
8
10
|
theme: Theme;
|
|
9
11
|
setTheme: (theme: Theme) => void;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { T as Theme, R as ResolvedTheme } from '../../useTheme-B9SWu6ui.js';
|
|
4
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
4
|
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
|
|
6
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
7
|
+
type ResolvedTheme = 'light' | 'dark';
|
|
8
|
+
|
|
7
9
|
interface ThemeProviderContextValue {
|
|
8
10
|
theme: Theme;
|
|
9
11
|
setTheme: (theme: Theme) => void;
|
|
@@ -1,8 +1,89 @@
|
|
|
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
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Transcript schema for @mieweb/ui media components.
|
|
7
|
+
*
|
|
8
|
+
* Provider-agnostic and persistence-agnostic. Canonical time unit is
|
|
9
|
+
* **milliseconds** (consumers with seconds-based data, e.g. osheet, adapt
|
|
10
|
+
* at the boundary).
|
|
11
|
+
*
|
|
12
|
+
* Shared by TranscriptView, MediaEditor, and useTranscriptEdits.
|
|
13
|
+
*/
|
|
14
|
+
/** Type of transcript word - 'word' for spoken content, 'silence' for detected gaps, 'silence-newline' for longer pauses */
|
|
15
|
+
type WordType = 'word' | 'silence' | 'silence-newline';
|
|
16
|
+
interface TranscriptWord {
|
|
17
|
+
text: string;
|
|
18
|
+
startMs: number;
|
|
19
|
+
endMs: number;
|
|
20
|
+
/** References Speaker.id when diarization is available */
|
|
21
|
+
speakerId?: string;
|
|
22
|
+
confidence?: number;
|
|
23
|
+
/** Type of word: 'word' for spoken content, 'silence' for detected gaps. Defaults to 'word' */
|
|
24
|
+
wordType?: WordType;
|
|
25
|
+
}
|
|
26
|
+
/** A diarized segment of contiguous speech (osheet-style granularity) */
|
|
27
|
+
interface TranscriptSegment {
|
|
28
|
+
text: string;
|
|
29
|
+
startMs: number;
|
|
30
|
+
endMs: number;
|
|
31
|
+
/** References Speaker.id when diarization is available */
|
|
32
|
+
speakerId?: string;
|
|
33
|
+
words: TranscriptWord[];
|
|
34
|
+
}
|
|
35
|
+
interface Speaker {
|
|
36
|
+
id: string;
|
|
37
|
+
/** Display name (e.g. 'Clinician', 'Patient'). Hosts may remap via speakerLabels props. */
|
|
38
|
+
name?: string;
|
|
39
|
+
}
|
|
40
|
+
interface Transcript {
|
|
41
|
+
durationMs: number;
|
|
42
|
+
speakers?: Speaker[];
|
|
43
|
+
words: TranscriptWord[];
|
|
44
|
+
segments?: TranscriptSegment[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* An editable word that references the original transcript word.
|
|
48
|
+
* Used in the edited timeline to track deletions and reordering.
|
|
49
|
+
*/
|
|
50
|
+
interface EditableWord {
|
|
51
|
+
/** Index into the SILENCE-INSERTED baseline timeline (transcript.words
|
|
52
|
+
* with detected silence pseudo-words interleaved) — NOT into
|
|
53
|
+
* transcript.words. -1 for split/inserted entries with no baseline slot.
|
|
54
|
+
* Consumers persisting edits should key by this timeline. */
|
|
55
|
+
originalIndex: number;
|
|
56
|
+
/** The word data (from original transcript) */
|
|
57
|
+
word: TranscriptWord;
|
|
58
|
+
/** Whether this word is marked as deleted */
|
|
59
|
+
deleted: boolean;
|
|
60
|
+
/** Whether this word was inserted (pasted from clipboard) */
|
|
61
|
+
inserted?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Represents a contiguous segment of playback from the original media.
|
|
65
|
+
* Used when playing back an edited timeline with potentially reordered/deleted words.
|
|
66
|
+
*/
|
|
67
|
+
interface PlaybackSegment {
|
|
68
|
+
startMs: number;
|
|
69
|
+
endMs: number;
|
|
70
|
+
/** Indices into the editedWords array that this segment covers */
|
|
71
|
+
editedIndices: number[];
|
|
72
|
+
}
|
|
73
|
+
/** Available playback speed multipliers */
|
|
74
|
+
type PlaybackSpeed = 0.5 | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2;
|
|
75
|
+
/** Array of all available speed options for dropdowns */
|
|
76
|
+
declare const PLAYBACK_SPEEDS: PlaybackSpeed[];
|
|
77
|
+
/**
|
|
78
|
+
* A speed marker applied to a word in the transcript.
|
|
79
|
+
* The speed applies from this word until the next speed marker or end of transcript.
|
|
80
|
+
*/
|
|
81
|
+
interface SpeedMarker {
|
|
82
|
+
/** Index in the editedWords array where the speed marker is placed */
|
|
83
|
+
wordIndex: number;
|
|
84
|
+
/** The playback speed multiplier */
|
|
85
|
+
speed: PlaybackSpeed;
|
|
86
|
+
}
|
|
6
87
|
|
|
7
88
|
type TranscriptGranularity = 'word' | 'segment';
|
|
8
89
|
interface TranscriptViewProps extends VariantProps<typeof transcriptViewVariants> {
|
|
@@ -36,7 +117,7 @@ interface TranscriptViewProps extends VariantProps<typeof transcriptViewVariants
|
|
|
36
117
|
'aria-label'?: string;
|
|
37
118
|
}
|
|
38
119
|
declare const transcriptViewVariants: (props?: ({
|
|
39
|
-
variant?: "
|
|
120
|
+
variant?: "plain" | "card" | null | undefined;
|
|
40
121
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
41
122
|
/** Format milliseconds as m:ss (osheet timestamp style) */
|
|
42
123
|
declare function formatTimestampMs(ms: number): string;
|
|
@@ -52,4 +133,4 @@ declare function formatTimestampMs(ms: number): string;
|
|
|
52
133
|
*/
|
|
53
134
|
declare const TranscriptView: React.ForwardRefExoticComponent<TranscriptViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
135
|
|
|
55
|
-
export { Transcript, type TranscriptGranularity, TranscriptView, type TranscriptViewProps, formatTimestampMs };
|
|
136
|
+
export { type EditableWord, PLAYBACK_SPEEDS, type PlaybackSegment, type PlaybackSpeed, type Speaker, type SpeedMarker, type Transcript, type TranscriptGranularity, type TranscriptSegment, TranscriptView, type TranscriptViewProps, type TranscriptWord, type WordType, formatTimestampMs };
|
|
@@ -1,8 +1,89 @@
|
|
|
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
|
-
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Transcript schema for @mieweb/ui media components.
|
|
7
|
+
*
|
|
8
|
+
* Provider-agnostic and persistence-agnostic. Canonical time unit is
|
|
9
|
+
* **milliseconds** (consumers with seconds-based data, e.g. osheet, adapt
|
|
10
|
+
* at the boundary).
|
|
11
|
+
*
|
|
12
|
+
* Shared by TranscriptView, MediaEditor, and useTranscriptEdits.
|
|
13
|
+
*/
|
|
14
|
+
/** Type of transcript word - 'word' for spoken content, 'silence' for detected gaps, 'silence-newline' for longer pauses */
|
|
15
|
+
type WordType = 'word' | 'silence' | 'silence-newline';
|
|
16
|
+
interface TranscriptWord {
|
|
17
|
+
text: string;
|
|
18
|
+
startMs: number;
|
|
19
|
+
endMs: number;
|
|
20
|
+
/** References Speaker.id when diarization is available */
|
|
21
|
+
speakerId?: string;
|
|
22
|
+
confidence?: number;
|
|
23
|
+
/** Type of word: 'word' for spoken content, 'silence' for detected gaps. Defaults to 'word' */
|
|
24
|
+
wordType?: WordType;
|
|
25
|
+
}
|
|
26
|
+
/** A diarized segment of contiguous speech (osheet-style granularity) */
|
|
27
|
+
interface TranscriptSegment {
|
|
28
|
+
text: string;
|
|
29
|
+
startMs: number;
|
|
30
|
+
endMs: number;
|
|
31
|
+
/** References Speaker.id when diarization is available */
|
|
32
|
+
speakerId?: string;
|
|
33
|
+
words: TranscriptWord[];
|
|
34
|
+
}
|
|
35
|
+
interface Speaker {
|
|
36
|
+
id: string;
|
|
37
|
+
/** Display name (e.g. 'Clinician', 'Patient'). Hosts may remap via speakerLabels props. */
|
|
38
|
+
name?: string;
|
|
39
|
+
}
|
|
40
|
+
interface Transcript {
|
|
41
|
+
durationMs: number;
|
|
42
|
+
speakers?: Speaker[];
|
|
43
|
+
words: TranscriptWord[];
|
|
44
|
+
segments?: TranscriptSegment[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* An editable word that references the original transcript word.
|
|
48
|
+
* Used in the edited timeline to track deletions and reordering.
|
|
49
|
+
*/
|
|
50
|
+
interface EditableWord {
|
|
51
|
+
/** Index into the SILENCE-INSERTED baseline timeline (transcript.words
|
|
52
|
+
* with detected silence pseudo-words interleaved) — NOT into
|
|
53
|
+
* transcript.words. -1 for split/inserted entries with no baseline slot.
|
|
54
|
+
* Consumers persisting edits should key by this timeline. */
|
|
55
|
+
originalIndex: number;
|
|
56
|
+
/** The word data (from original transcript) */
|
|
57
|
+
word: TranscriptWord;
|
|
58
|
+
/** Whether this word is marked as deleted */
|
|
59
|
+
deleted: boolean;
|
|
60
|
+
/** Whether this word was inserted (pasted from clipboard) */
|
|
61
|
+
inserted?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Represents a contiguous segment of playback from the original media.
|
|
65
|
+
* Used when playing back an edited timeline with potentially reordered/deleted words.
|
|
66
|
+
*/
|
|
67
|
+
interface PlaybackSegment {
|
|
68
|
+
startMs: number;
|
|
69
|
+
endMs: number;
|
|
70
|
+
/** Indices into the editedWords array that this segment covers */
|
|
71
|
+
editedIndices: number[];
|
|
72
|
+
}
|
|
73
|
+
/** Available playback speed multipliers */
|
|
74
|
+
type PlaybackSpeed = 0.5 | 0.75 | 1 | 1.25 | 1.5 | 1.75 | 2;
|
|
75
|
+
/** Array of all available speed options for dropdowns */
|
|
76
|
+
declare const PLAYBACK_SPEEDS: PlaybackSpeed[];
|
|
77
|
+
/**
|
|
78
|
+
* A speed marker applied to a word in the transcript.
|
|
79
|
+
* The speed applies from this word until the next speed marker or end of transcript.
|
|
80
|
+
*/
|
|
81
|
+
interface SpeedMarker {
|
|
82
|
+
/** Index in the editedWords array where the speed marker is placed */
|
|
83
|
+
wordIndex: number;
|
|
84
|
+
/** The playback speed multiplier */
|
|
85
|
+
speed: PlaybackSpeed;
|
|
86
|
+
}
|
|
6
87
|
|
|
7
88
|
type TranscriptGranularity = 'word' | 'segment';
|
|
8
89
|
interface TranscriptViewProps extends VariantProps<typeof transcriptViewVariants> {
|
|
@@ -36,7 +117,7 @@ interface TranscriptViewProps extends VariantProps<typeof transcriptViewVariants
|
|
|
36
117
|
'aria-label'?: string;
|
|
37
118
|
}
|
|
38
119
|
declare const transcriptViewVariants: (props?: ({
|
|
39
|
-
variant?: "
|
|
120
|
+
variant?: "plain" | "card" | null | undefined;
|
|
40
121
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
41
122
|
/** Format milliseconds as m:ss (osheet timestamp style) */
|
|
42
123
|
declare function formatTimestampMs(ms: number): string;
|
|
@@ -52,4 +133,4 @@ declare function formatTimestampMs(ms: number): string;
|
|
|
52
133
|
*/
|
|
53
134
|
declare const TranscriptView: React.ForwardRefExoticComponent<TranscriptViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
54
135
|
|
|
55
|
-
export { Transcript, type TranscriptGranularity, TranscriptView, type TranscriptViewProps, formatTimestampMs };
|
|
136
|
+
export { type EditableWord, PLAYBACK_SPEEDS, type PlaybackSegment, type PlaybackSpeed, type Speaker, type SpeedMarker, type Transcript, type TranscriptGranularity, type TranscriptSegment, TranscriptView, type TranscriptViewProps, type TranscriptWord, type WordType, formatTimestampMs };
|