@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
@@ -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" | "primary" | "warning" | "success" | "muted" | "destructive" | null | undefined;
7
- size?: "base" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "xs" | null | undefined;
8
- weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
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" | "primary" | "warning" | "success" | "muted" | "destructive" | null | undefined;
7
- size?: "base" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "xs" | null | undefined;
8
- weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
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 '../Input/index.cjs';
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 '../Input/index.js';
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
- import { T as Transcript } from '../../transcript-Cg7uSW-C.cjs';
5
- export { E as EditableWord, c as PLAYBACK_SPEEDS, a as PlaybackSegment, P as PlaybackSpeed, d as Speaker, S as SpeedMarker, e as TranscriptSegment, b as TranscriptWord, W as WordType } from '../../transcript-Cg7uSW-C.cjs';
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?: "card" | "plain" | null | undefined;
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
- import { T as Transcript } from '../../transcript-Cg7uSW-C.js';
5
- export { E as EditableWord, c as PLAYBACK_SPEEDS, a as PlaybackSegment, P as PlaybackSpeed, d as Speaker, S as SpeedMarker, e as TranscriptSegment, b as TranscriptWord, W as WordType } from '../../transcript-Cg7uSW-C.js';
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?: "card" | "plain" | null | undefined;
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,14 +1,125 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { ViewOption } from '../ViewSwitcher/index.cjs';
4
- import { ListViewProps } from '../ListView/index.cjs';
5
- import { BoardLabels, BoardViewProps } from '../BoardView/index.cjs';
6
- import { CalendarLabels, CalendarViewProps } from '../CalendarView/index.cjs';
7
- import { GanttLabels, GanttViewProps } from '../GanttView/index.cjs';
8
- import { a as ViewBaseProps, b as ViewId, S as Stage } from '../../types-CbWXIKbe.cjs';
9
- import 'class-variance-authority/types';
10
- import 'class-variance-authority';
11
- import 'luxon';
3
+ import { V as ViewBaseProps, S as Stage, a as ViewLabels, b as ViewId, c as ViewOption } from '../../index-DoYYWsNc.cjs';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type ListViewSlot = 'group' | 'groupHeader' | 'item' | 'selectedItem' | 'state';
8
+ interface ListViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof itemVariants> {
9
+ /**
10
+ * Group rows by `accessors.getStatus`, using these stages for order and
11
+ * labels. Items whose status matches no stage are appended under their own
12
+ * heading rather than dropped.
13
+ */
14
+ stages?: readonly Stage[];
15
+ /** Group by `accessors.getGroup` instead of by stage. */
16
+ groupBy?: 'status' | 'group' | 'none';
17
+ /** Groups that start collapsed. Uncontrolled; the user can reopen them. */
18
+ defaultCollapsedGroups?: readonly string[];
19
+ /** Retries the failed load. Renders the retry action only when provided. */
20
+ onRetry?: () => void;
21
+ classNames?: Partial<Record<ListViewSlot, string>>;
22
+ /** Heading level for group headers, under the page's own heading. */
23
+ headingLevel?: 'h2' | 'h3' | 'h4';
24
+ }
25
+ declare const itemVariants: (props?: ({
26
+ density?: "comfortable" | "compact" | null | undefined;
27
+ interactive?: boolean | null | undefined;
28
+ selected?: boolean | null | undefined;
29
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
30
+
31
+ type BoardViewSlot = 'column' | 'columnHeader' | 'card' | 'selectedCard' | 'state';
32
+ interface BoardLabels extends ViewLabels {
33
+ /** Accessible name of the scrollable board region. */
34
+ board: string;
35
+ /** Announced when a card starts moving. `{item}` and `{stage}` are substituted. */
36
+ moved: string;
37
+ /** Announced when `onMove` rejects. */
38
+ moveFailed: string;
39
+ /** Hint on a focusable card describing the keyboard move. */
40
+ moveHint: string;
41
+ }
42
+ interface BoardViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof cardVariants> {
43
+ /** Columns, in order. A board without stages has nothing to draw. */
44
+ stages: readonly Stage[];
45
+ /**
46
+ * Commits a move. The board shows the card in its new column while this is
47
+ * pending and puts it back if the promise rejects, so the caller never has to
48
+ * re-render it home.
49
+ */
50
+ onMove?: (id: string, toStage: string, item: T) => void | Promise<void>;
51
+ labels?: Partial<BoardLabels>;
52
+ classNames?: Partial<Record<BoardViewSlot, string>>;
53
+ /** Heading level for column headers, under the page's own heading. */
54
+ headingLevel?: 'h2' | 'h3' | 'h4';
55
+ }
56
+ declare const cardVariants: (props?: ({
57
+ density?: "comfortable" | "compact" | null | undefined;
58
+ interactive?: boolean | null | undefined;
59
+ selected?: boolean | null | undefined;
60
+ pending?: boolean | null | undefined;
61
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
62
+
63
+ type CalendarViewSlot = 'toolbar' | 'weekday' | 'day' | 'outsideDay' | 'today' | 'entry' | 'selectedEntry' | 'state';
64
+ interface CalendarLabels extends ViewLabels {
65
+ previousMonth: string;
66
+ nextMonth: string;
67
+ today: string;
68
+ /** Overflow affordance. `{count}` is substituted. */
69
+ more: string;
70
+ }
71
+ interface CalendarViewProps<T> extends ViewBaseProps<T> {
72
+ /** Controlled month. Any date inside the month works. */
73
+ month?: Date;
74
+ /** Starting month when uncontrolled. Defaults to the month containing `now`. */
75
+ defaultMonth?: Date;
76
+ onMonthChange?: (month: Date) => void;
77
+ /**
78
+ * IANA zone the grid is drawn in, e.g. `America/New_York`. Defaults to the
79
+ * runtime's. A day boundary is a business fact, so state it explicitly when
80
+ * the collection belongs to somewhere other than the viewer.
81
+ */
82
+ timeZone?: string;
83
+ /** 1 = Monday … 7 = Sunday. Defaults to Monday. */
84
+ weekStartsOn?: number;
85
+ /** Locale for month, weekday and day-number formatting. */
86
+ locale?: string;
87
+ /** Entries to show per day before collapsing into "{count} more". */
88
+ maxPerDay?: number;
89
+ labels?: Partial<CalendarLabels>;
90
+ classNames?: Partial<Record<CalendarViewSlot, string>>;
91
+ /** Hide the month toolbar when the host renders its own. */
92
+ hideToolbar?: boolean;
93
+ }
94
+
95
+ /**
96
+ * Column width in time. `month` and `quarter` are what a roadmap is — the
97
+ * family has no separate RoadmapView, because it would be this component with
98
+ * wider columns.
99
+ */
100
+ type GanttCadence = 'day' | 'week' | 'month' | 'quarter';
101
+ type GanttViewSlot = 'header' | 'groupLabel' | 'row' | 'bar' | 'selectedBar' | 'state';
102
+ interface GanttLabels extends ViewLabels {
103
+ /** Accessible name of the scrollable chart region. */
104
+ chart: string;
105
+ /** Footnote for records a time axis cannot place. `{count}` is substituted. */
106
+ undated: string;
107
+ }
108
+ interface GanttViewProps<T> extends ViewBaseProps<T> {
109
+ /** Column width in time. Defaults to `week`. */
110
+ cadence?: GanttCadence;
111
+ /** First column. Defaults to the earliest start in `items`. */
112
+ rangeStart?: Date;
113
+ /** Last column. Defaults to the latest end in `items`. */
114
+ rangeEnd?: Date;
115
+ /** Group rows into swimlanes by `accessors.getGroup`. */
116
+ groupByLane?: boolean;
117
+ timeZone?: string;
118
+ locale?: string;
119
+ labels?: Partial<GanttLabels>;
120
+ classNames?: Partial<Record<GanttViewSlot, string>>;
121
+ headingLevel?: 'h2' | 'h3' | 'h4';
122
+ }
12
123
 
13
124
  /**
14
125
  * Every string any layout in the set can render.
@@ -1,14 +1,125 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { ViewOption } from '../ViewSwitcher/index.js';
4
- import { ListViewProps } from '../ListView/index.js';
5
- import { BoardLabels, BoardViewProps } from '../BoardView/index.js';
6
- import { CalendarLabels, CalendarViewProps } from '../CalendarView/index.js';
7
- import { GanttLabels, GanttViewProps } from '../GanttView/index.js';
8
- import { a as ViewBaseProps, b as ViewId, S as Stage } from '../../types-CbWXIKbe.js';
9
- import 'class-variance-authority/types';
10
- import 'class-variance-authority';
11
- import 'luxon';
3
+ import { V as ViewBaseProps, S as Stage, a as ViewLabels, b as ViewId, c as ViewOption } from '../../index-DoYYWsNc.js';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { VariantProps } from 'class-variance-authority';
6
+
7
+ type ListViewSlot = 'group' | 'groupHeader' | 'item' | 'selectedItem' | 'state';
8
+ interface ListViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof itemVariants> {
9
+ /**
10
+ * Group rows by `accessors.getStatus`, using these stages for order and
11
+ * labels. Items whose status matches no stage are appended under their own
12
+ * heading rather than dropped.
13
+ */
14
+ stages?: readonly Stage[];
15
+ /** Group by `accessors.getGroup` instead of by stage. */
16
+ groupBy?: 'status' | 'group' | 'none';
17
+ /** Groups that start collapsed. Uncontrolled; the user can reopen them. */
18
+ defaultCollapsedGroups?: readonly string[];
19
+ /** Retries the failed load. Renders the retry action only when provided. */
20
+ onRetry?: () => void;
21
+ classNames?: Partial<Record<ListViewSlot, string>>;
22
+ /** Heading level for group headers, under the page's own heading. */
23
+ headingLevel?: 'h2' | 'h3' | 'h4';
24
+ }
25
+ declare const itemVariants: (props?: ({
26
+ density?: "comfortable" | "compact" | null | undefined;
27
+ interactive?: boolean | null | undefined;
28
+ selected?: boolean | null | undefined;
29
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
30
+
31
+ type BoardViewSlot = 'column' | 'columnHeader' | 'card' | 'selectedCard' | 'state';
32
+ interface BoardLabels extends ViewLabels {
33
+ /** Accessible name of the scrollable board region. */
34
+ board: string;
35
+ /** Announced when a card starts moving. `{item}` and `{stage}` are substituted. */
36
+ moved: string;
37
+ /** Announced when `onMove` rejects. */
38
+ moveFailed: string;
39
+ /** Hint on a focusable card describing the keyboard move. */
40
+ moveHint: string;
41
+ }
42
+ interface BoardViewProps<T> extends ViewBaseProps<T>, VariantProps<typeof cardVariants> {
43
+ /** Columns, in order. A board without stages has nothing to draw. */
44
+ stages: readonly Stage[];
45
+ /**
46
+ * Commits a move. The board shows the card in its new column while this is
47
+ * pending and puts it back if the promise rejects, so the caller never has to
48
+ * re-render it home.
49
+ */
50
+ onMove?: (id: string, toStage: string, item: T) => void | Promise<void>;
51
+ labels?: Partial<BoardLabels>;
52
+ classNames?: Partial<Record<BoardViewSlot, string>>;
53
+ /** Heading level for column headers, under the page's own heading. */
54
+ headingLevel?: 'h2' | 'h3' | 'h4';
55
+ }
56
+ declare const cardVariants: (props?: ({
57
+ density?: "comfortable" | "compact" | null | undefined;
58
+ interactive?: boolean | null | undefined;
59
+ selected?: boolean | null | undefined;
60
+ pending?: boolean | null | undefined;
61
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
62
+
63
+ type CalendarViewSlot = 'toolbar' | 'weekday' | 'day' | 'outsideDay' | 'today' | 'entry' | 'selectedEntry' | 'state';
64
+ interface CalendarLabels extends ViewLabels {
65
+ previousMonth: string;
66
+ nextMonth: string;
67
+ today: string;
68
+ /** Overflow affordance. `{count}` is substituted. */
69
+ more: string;
70
+ }
71
+ interface CalendarViewProps<T> extends ViewBaseProps<T> {
72
+ /** Controlled month. Any date inside the month works. */
73
+ month?: Date;
74
+ /** Starting month when uncontrolled. Defaults to the month containing `now`. */
75
+ defaultMonth?: Date;
76
+ onMonthChange?: (month: Date) => void;
77
+ /**
78
+ * IANA zone the grid is drawn in, e.g. `America/New_York`. Defaults to the
79
+ * runtime's. A day boundary is a business fact, so state it explicitly when
80
+ * the collection belongs to somewhere other than the viewer.
81
+ */
82
+ timeZone?: string;
83
+ /** 1 = Monday … 7 = Sunday. Defaults to Monday. */
84
+ weekStartsOn?: number;
85
+ /** Locale for month, weekday and day-number formatting. */
86
+ locale?: string;
87
+ /** Entries to show per day before collapsing into "{count} more". */
88
+ maxPerDay?: number;
89
+ labels?: Partial<CalendarLabels>;
90
+ classNames?: Partial<Record<CalendarViewSlot, string>>;
91
+ /** Hide the month toolbar when the host renders its own. */
92
+ hideToolbar?: boolean;
93
+ }
94
+
95
+ /**
96
+ * Column width in time. `month` and `quarter` are what a roadmap is — the
97
+ * family has no separate RoadmapView, because it would be this component with
98
+ * wider columns.
99
+ */
100
+ type GanttCadence = 'day' | 'week' | 'month' | 'quarter';
101
+ type GanttViewSlot = 'header' | 'groupLabel' | 'row' | 'bar' | 'selectedBar' | 'state';
102
+ interface GanttLabels extends ViewLabels {
103
+ /** Accessible name of the scrollable chart region. */
104
+ chart: string;
105
+ /** Footnote for records a time axis cannot place. `{count}` is substituted. */
106
+ undated: string;
107
+ }
108
+ interface GanttViewProps<T> extends ViewBaseProps<T> {
109
+ /** Column width in time. Defaults to `week`. */
110
+ cadence?: GanttCadence;
111
+ /** First column. Defaults to the earliest start in `items`. */
112
+ rangeStart?: Date;
113
+ /** Last column. Defaults to the latest end in `items`. */
114
+ rangeEnd?: Date;
115
+ /** Group rows into swimlanes by `accessors.getGroup`. */
116
+ groupByLane?: boolean;
117
+ timeZone?: string;
118
+ locale?: string;
119
+ labels?: Partial<GanttLabels>;
120
+ classNames?: Partial<Record<GanttViewSlot, string>>;
121
+ headingLevel?: 'h2' | 'h3' | 'h4';
122
+ }
12
123
 
13
124
  /**
14
125
  * Every string any layout in the set can render.
@@ -1,40 +1,4 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import { b as ViewId } from '../../types-CbWXIKbe.cjs';
5
- import 'luxon';
6
-
7
- interface ViewOption {
8
- id: ViewId;
9
- /** Overrides the built-in English label. */
10
- label?: string;
11
- /** Overrides the built-in icon. */
12
- icon?: React.ComponentType<{
13
- className?: string;
14
- 'aria-hidden'?: boolean;
15
- }>;
16
- disabled?: boolean;
17
- }
18
- interface ViewSwitcherProps extends VariantProps<typeof viewSwitcherVariants> {
19
- /** Views to offer, in order. Accepts bare ids or `ViewOption`s. */
20
- views: readonly (ViewId | ViewOption)[];
21
- value: ViewId;
22
- onValueChange: (view: ViewId) => void;
23
- /** Accessible name of the group. */
24
- label?: string;
25
- /** Show labels beside the icons. `responsive` hides them below `sm`. */
26
- showLabels?: boolean | 'responsive';
27
- className?: string;
28
- classNames?: Partial<Record<'option' | 'activeOption', string>>;
29
- }
30
- declare const viewSwitcherVariants: (props?: ({
31
- size?: "sm" | "md" | null | undefined;
32
- } & class_variance_authority_types.ClassProp) | undefined) => string;
33
- /**
34
- * Keyboard model is a radio group: one tab stop, arrows move *and* select.
35
- * Every option is visible, so moving the selection is the whole interaction —
36
- * there is nothing to "commit" afterwards.
37
- */
38
- declare const ViewSwitcher: React.ForwardRefExoticComponent<ViewSwitcherProps & React.RefAttributes<HTMLDivElement>>;
39
-
40
- export { type ViewOption, ViewSwitcher, type ViewSwitcherProps, viewSwitcherVariants };
1
+ export { c as ViewOption, d as ViewSwitcher, e as ViewSwitcherProps, v as viewSwitcherVariants } from '../../index-DoYYWsNc.cjs';
2
+ import 'class-variance-authority/types';
3
+ import 'react';
4
+ import 'class-variance-authority';
@@ -1,40 +1,4 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
- import { b as ViewId } from '../../types-CbWXIKbe.js';
5
- import 'luxon';
6
-
7
- interface ViewOption {
8
- id: ViewId;
9
- /** Overrides the built-in English label. */
10
- label?: string;
11
- /** Overrides the built-in icon. */
12
- icon?: React.ComponentType<{
13
- className?: string;
14
- 'aria-hidden'?: boolean;
15
- }>;
16
- disabled?: boolean;
17
- }
18
- interface ViewSwitcherProps extends VariantProps<typeof viewSwitcherVariants> {
19
- /** Views to offer, in order. Accepts bare ids or `ViewOption`s. */
20
- views: readonly (ViewId | ViewOption)[];
21
- value: ViewId;
22
- onValueChange: (view: ViewId) => void;
23
- /** Accessible name of the group. */
24
- label?: string;
25
- /** Show labels beside the icons. `responsive` hides them below `sm`. */
26
- showLabels?: boolean | 'responsive';
27
- className?: string;
28
- classNames?: Partial<Record<'option' | 'activeOption', string>>;
29
- }
30
- declare const viewSwitcherVariants: (props?: ({
31
- size?: "sm" | "md" | null | undefined;
32
- } & class_variance_authority_types.ClassProp) | undefined) => string;
33
- /**
34
- * Keyboard model is a radio group: one tab stop, arrows move *and* select.
35
- * Every option is visible, so moving the selection is the whole interaction —
36
- * there is nothing to "commit" afterwards.
37
- */
38
- declare const ViewSwitcher: React.ForwardRefExoticComponent<ViewSwitcherProps & React.RefAttributes<HTMLDivElement>>;
39
-
40
- export { type ViewOption, ViewSwitcher, type ViewSwitcherProps, viewSwitcherVariants };
1
+ export { c as ViewOption, d as ViewSwitcher, e as ViewSwitcherProps, v as viewSwitcherVariants } from '../../index-DoYYWsNc.js';
2
+ import 'class-variance-authority/types';
3
+ import 'react';
4
+ import 'class-variance-authority';