@dxos/plugin-transcription 0.8.4-main.f9ba587 → 0.8.4-main.fcfe5033a5

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 (243) hide show
  1. package/dist/lib/browser/blueprints/index.mjs +31 -0
  2. package/dist/lib/browser/blueprints/index.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-5LWSJZTZ.mjs +17 -0
  4. package/dist/lib/browser/chunk-5LWSJZTZ.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-HOOPZ7EM.mjs +35 -0
  6. package/dist/lib/browser/chunk-HOOPZ7EM.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  8. package/dist/lib/browser/chunk-KOX4WNAR.mjs +111 -0
  9. package/dist/lib/browser/chunk-KOX4WNAR.mjs.map +7 -0
  10. package/dist/lib/browser/create-BTWYQ6IM.mjs +21 -0
  11. package/dist/lib/browser/create-BTWYQ6IM.mjs.map +7 -0
  12. package/dist/lib/browser/index.mjs +1181 -93
  13. package/dist/lib/browser/index.mjs.map +4 -4
  14. package/dist/lib/browser/meta.json +1 -1
  15. package/dist/lib/browser/open-CYRYIEZI.mjs +27 -0
  16. package/dist/lib/browser/open-CYRYIEZI.mjs.map +7 -0
  17. package/dist/lib/browser/operations/index.mjs +13 -0
  18. package/dist/lib/browser/operations/index.mjs.map +7 -0
  19. package/dist/lib/browser/summarize-X2ZYTN7S.mjs +79 -0
  20. package/dist/lib/browser/summarize-X2ZYTN7S.mjs.map +7 -0
  21. package/dist/lib/browser/types/index.mjs +4 -8
  22. package/dist/lib/node-esm/blueprints/index.mjs +32 -0
  23. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  24. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  25. package/dist/lib/node-esm/chunk-MT5I4NH5.mjs +112 -0
  26. package/dist/lib/node-esm/chunk-MT5I4NH5.mjs.map +7 -0
  27. package/dist/lib/node-esm/chunk-NVM2QUMX.mjs +37 -0
  28. package/dist/lib/node-esm/chunk-NVM2QUMX.mjs.map +7 -0
  29. package/dist/lib/node-esm/chunk-X74WYCCE.mjs +19 -0
  30. package/dist/lib/node-esm/chunk-X74WYCCE.mjs.map +7 -0
  31. package/dist/lib/node-esm/create-MLUFPST2.mjs +22 -0
  32. package/dist/lib/node-esm/create-MLUFPST2.mjs.map +7 -0
  33. package/dist/lib/node-esm/index.mjs +1181 -93
  34. package/dist/lib/node-esm/index.mjs.map +4 -4
  35. package/dist/lib/node-esm/meta.json +1 -1
  36. package/dist/lib/node-esm/open-5IOC2U4Z.mjs +28 -0
  37. package/dist/lib/node-esm/open-5IOC2U4Z.mjs.map +7 -0
  38. package/dist/lib/node-esm/operations/index.mjs +14 -0
  39. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  40. package/dist/lib/node-esm/summarize-IORITU7T.mjs +80 -0
  41. package/dist/lib/node-esm/summarize-IORITU7T.mjs.map +7 -0
  42. package/dist/lib/node-esm/types/index.mjs +4 -8
  43. package/dist/types/src/TranscriptionPlugin.d.ts +2 -1
  44. package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
  45. package/dist/types/src/blueprints/index.d.ts +2 -0
  46. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  47. package/dist/types/src/blueprints/transcription-blueprint.d.ts +4 -0
  48. package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  50. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  51. package/dist/types/src/capabilities/index.d.ts +6 -4
  52. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  53. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  54. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  55. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  56. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  57. package/dist/types/src/capabilities/transcriber.d.ts +4 -3
  58. package/dist/types/src/capabilities/transcriber.d.ts.map +1 -1
  59. package/dist/types/src/components/Transcription/Transcription.d.ts +18 -0
  60. package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
  61. package/dist/types/src/components/Transcription/Transcription.stories.d.ts +40 -0
  62. package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -0
  63. package/dist/types/src/components/Transcription/index.d.ts +2 -0
  64. package/dist/types/src/components/Transcription/index.d.ts.map +1 -0
  65. package/dist/types/src/components/Transcription/transcription-extension.d.ts +15 -0
  66. package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -0
  67. package/dist/types/src/components/index.d.ts +1 -3
  68. package/dist/types/src/components/index.d.ts.map +1 -1
  69. package/dist/types/src/components/stories/FileTranscription.stories.d.ts +8 -7
  70. package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
  71. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +10 -6
  72. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
  73. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +11 -10
  74. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
  75. package/dist/types/src/components/stories/TranscriptionStory.d.ts +4 -3
  76. package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -1
  77. package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts +6 -0
  78. package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts.map +1 -0
  79. package/dist/types/src/containers/TranscriptionContainer/index.d.ts +2 -0
  80. package/dist/types/src/containers/TranscriptionContainer/index.d.ts.map +1 -0
  81. package/dist/types/src/containers/index.d.ts +3 -0
  82. package/dist/types/src/containers/index.d.ts.map +1 -0
  83. package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
  84. package/dist/types/src/hooks/useQueueModelAdapter.d.ts +1 -1
  85. package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
  86. package/dist/types/src/hooks/useTranscriber.d.ts +1 -1
  87. package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
  88. package/dist/types/src/index.d.ts +1 -1
  89. package/dist/types/src/index.d.ts.map +1 -1
  90. package/dist/types/src/meta.d.ts +2 -3
  91. package/dist/types/src/meta.d.ts.map +1 -1
  92. package/dist/types/src/operations/create.d.ts +5 -0
  93. package/dist/types/src/operations/create.d.ts.map +1 -0
  94. package/dist/types/src/operations/definitions.d.ts +917 -0
  95. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  96. package/dist/types/src/operations/index.d.ts +4 -0
  97. package/dist/types/src/operations/index.d.ts.map +1 -0
  98. package/dist/types/src/operations/open.d.ts +5 -0
  99. package/dist/types/src/operations/open.d.ts.map +1 -0
  100. package/dist/types/src/operations/summarize.d.ts +8 -0
  101. package/dist/types/src/operations/summarize.d.ts.map +1 -0
  102. package/dist/types/src/segments-normalization/message-normalizer.d.ts +5 -5
  103. package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
  104. package/dist/types/src/segments-normalization/normalization.d.ts +363 -328
  105. package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
  106. package/dist/types/src/segments-normalization/utils.d.ts +2 -2
  107. package/dist/types/src/segments-normalization/utils.d.ts.map +1 -1
  108. package/dist/types/src/testing/testing.d.ts +10 -10
  109. package/dist/types/src/testing/testing.d.ts.map +1 -1
  110. package/dist/types/src/transcriber/index.d.ts +1 -1
  111. package/dist/types/src/transcriber/index.d.ts.map +1 -1
  112. package/dist/types/src/transcriber/media-stream-recorder.d.ts +3 -3
  113. package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
  114. package/dist/types/src/transcriber/transcriber.d.ts +4 -4
  115. package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
  116. package/dist/types/src/transcriber/transcription-manager.d.ts +12 -13
  117. package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
  118. package/dist/types/src/translations.d.ts +7 -7
  119. package/dist/types/src/translations.d.ts.map +1 -1
  120. package/dist/types/src/types/capabilities.d.ts +18 -0
  121. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  122. package/dist/types/src/types/index.d.ts +1 -1
  123. package/dist/types/src/types/index.d.ts.map +1 -1
  124. package/dist/types/src/types/types.d.ts +0 -26
  125. package/dist/types/src/types/types.d.ts.map +1 -1
  126. package/dist/types/src/util/index.d.ts +1 -0
  127. package/dist/types/src/util/index.d.ts.map +1 -1
  128. package/dist/types/src/util/render-byline.d.ts +4 -0
  129. package/dist/types/src/util/render-byline.d.ts.map +1 -0
  130. package/dist/types/tsconfig.tsbuildinfo +1 -1
  131. package/package.json +109 -73
  132. package/src/TranscriptionPlugin.tsx +46 -59
  133. package/src/blueprints/index.ts +5 -0
  134. package/src/blueprints/transcription-blueprint.ts +30 -0
  135. package/src/capabilities/blueprint-definition.ts +17 -0
  136. package/src/capabilities/index.ts +9 -6
  137. package/src/capabilities/operation-handler.ts +16 -0
  138. package/src/capabilities/react-surface.tsx +23 -14
  139. package/src/capabilities/transcriber.ts +52 -42
  140. package/src/components/{Transcript/Transcript.stories.tsx → Transcription/Transcription.stories.tsx} +73 -66
  141. package/src/components/Transcription/Transcription.tsx +64 -0
  142. package/src/components/{Transcript → Transcription}/index.ts +1 -1
  143. package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +15 -48
  144. package/src/components/index.ts +1 -6
  145. package/src/components/stories/FileTranscription.stories.tsx +78 -70
  146. package/src/components/stories/KeyWordRecognition.stories.tsx +17 -13
  147. package/src/components/stories/MicrophoneTranscription.stories.tsx +84 -100
  148. package/src/components/stories/TranscriptionStory.tsx +15 -13
  149. package/src/containers/TranscriptionContainer/TranscriptionContainer.tsx +35 -0
  150. package/src/containers/TranscriptionContainer/index.ts +5 -0
  151. package/src/containers/index.ts +7 -0
  152. package/src/hooks/useAudioFile.ts +49 -53
  153. package/src/hooks/useQueueModelAdapter.ts +1 -1
  154. package/src/hooks/useTranscriber.ts +9 -3
  155. package/src/hooks/useVoiceInput.ts +3 -3
  156. package/src/index.ts +1 -1
  157. package/src/meta.ts +9 -6
  158. package/src/model/model.test.ts +27 -21
  159. package/src/operations/create.ts +24 -0
  160. package/src/operations/definitions.ts +101 -0
  161. package/src/operations/index.ts +13 -0
  162. package/src/operations/open.ts +28 -0
  163. package/src/operations/summarize.ts +102 -0
  164. package/src/segments-normalization/message-normalizer.ts +19 -14
  165. package/src/segments-normalization/normalization.test.ts +26 -33
  166. package/src/segments-normalization/normalization.ts +67 -96
  167. package/src/segments-normalization/utils.ts +2 -2
  168. package/src/testing/testing.ts +41 -41
  169. package/src/transcriber/index.ts +1 -1
  170. package/src/transcriber/media-stream-recorder.ts +4 -4
  171. package/src/transcriber/transcriber.browser.test.ts +5 -5
  172. package/src/transcriber/transcriber.ts +10 -12
  173. package/src/transcriber/transcription-manager.ts +37 -52
  174. package/src/translations.ts +7 -7
  175. package/src/types/capabilities.ts +34 -0
  176. package/src/types/index.ts +1 -1
  177. package/src/types/types.ts +0 -23
  178. package/src/util/index.ts +1 -0
  179. package/src/util/render-byline.ts +33 -0
  180. package/dist/lib/browser/TranscriptContainer-E5NBJPAY.mjs +0 -11
  181. package/dist/lib/browser/chunk-5WH45KBY.mjs +0 -19
  182. package/dist/lib/browser/chunk-5WH45KBY.mjs.map +0 -7
  183. package/dist/lib/browser/chunk-EQBICGOD.mjs +0 -8
  184. package/dist/lib/browser/chunk-EQBICGOD.mjs.map +0 -7
  185. package/dist/lib/browser/chunk-F2WY3YTD.mjs +0 -764
  186. package/dist/lib/browser/chunk-F2WY3YTD.mjs.map +0 -7
  187. package/dist/lib/browser/chunk-R7INNNUQ.mjs +0 -55
  188. package/dist/lib/browser/chunk-R7INNNUQ.mjs.map +0 -7
  189. package/dist/lib/browser/chunk-U6QBOGTN.mjs +0 -16
  190. package/dist/lib/browser/chunk-U6QBOGTN.mjs.map +0 -7
  191. package/dist/lib/browser/chunk-VDKDOZRR.mjs +0 -495
  192. package/dist/lib/browser/chunk-VDKDOZRR.mjs.map +0 -7
  193. package/dist/lib/browser/intent-resolver-3O33MMP5.mjs +0 -30
  194. package/dist/lib/browser/intent-resolver-3O33MMP5.mjs.map +0 -7
  195. package/dist/lib/browser/react-surface-FJTMNF3K.mjs +0 -34
  196. package/dist/lib/browser/react-surface-FJTMNF3K.mjs.map +0 -7
  197. package/dist/lib/browser/transcriber-YVOTUBKQ.mjs +0 -56
  198. package/dist/lib/browser/transcriber-YVOTUBKQ.mjs.map +0 -7
  199. package/dist/lib/node-esm/TranscriptContainer-UOS7JG72.mjs +0 -12
  200. package/dist/lib/node-esm/chunk-DN522SAP.mjs +0 -10
  201. package/dist/lib/node-esm/chunk-DN522SAP.mjs.map +0 -7
  202. package/dist/lib/node-esm/chunk-HSCG4XPR.mjs +0 -496
  203. package/dist/lib/node-esm/chunk-HSCG4XPR.mjs.map +0 -7
  204. package/dist/lib/node-esm/chunk-Q3JKLPTW.mjs +0 -765
  205. package/dist/lib/node-esm/chunk-Q3JKLPTW.mjs.map +0 -7
  206. package/dist/lib/node-esm/chunk-RHF2ALML.mjs +0 -17
  207. package/dist/lib/node-esm/chunk-RHF2ALML.mjs.map +0 -7
  208. package/dist/lib/node-esm/chunk-U65ZWK3L.mjs +0 -56
  209. package/dist/lib/node-esm/chunk-U65ZWK3L.mjs.map +0 -7
  210. package/dist/lib/node-esm/chunk-XMUCZBP3.mjs +0 -21
  211. package/dist/lib/node-esm/chunk-XMUCZBP3.mjs.map +0 -7
  212. package/dist/lib/node-esm/intent-resolver-YMN5SXNC.mjs +0 -31
  213. package/dist/lib/node-esm/intent-resolver-YMN5SXNC.mjs.map +0 -7
  214. package/dist/lib/node-esm/react-surface-57TSIDR2.mjs +0 -35
  215. package/dist/lib/node-esm/react-surface-57TSIDR2.mjs.map +0 -7
  216. package/dist/lib/node-esm/transcriber-GPBV52ZR.mjs +0 -57
  217. package/dist/lib/node-esm/transcriber-GPBV52ZR.mjs.map +0 -7
  218. package/dist/types/src/capabilities/capabilities.d.ts +0 -17
  219. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  220. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  221. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  222. package/dist/types/src/components/Transcript/Transcript.d.ts +0 -20
  223. package/dist/types/src/components/Transcript/Transcript.d.ts.map +0 -1
  224. package/dist/types/src/components/Transcript/Transcript.stories.d.ts +0 -24
  225. package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +0 -1
  226. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +0 -28
  227. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +0 -1
  228. package/dist/types/src/components/Transcript/index.d.ts +0 -2
  229. package/dist/types/src/components/Transcript/index.d.ts.map +0 -1
  230. package/dist/types/src/components/Transcript/transcript-extension.d.ts +0 -19
  231. package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +0 -1
  232. package/dist/types/src/components/TranscriptContainer.d.ts +0 -9
  233. package/dist/types/src/components/TranscriptContainer.d.ts.map +0 -1
  234. package/dist/types/src/types/schema.d.ts +0 -41
  235. package/dist/types/src/types/schema.d.ts.map +0 -1
  236. package/src/capabilities/capabilities.ts +0 -33
  237. package/src/capabilities/intent-resolver.ts +0 -24
  238. package/src/components/Transcript/Transcript.tsx +0 -100
  239. package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
  240. package/src/components/TranscriptContainer.tsx +0 -35
  241. package/src/types/schema.ts +0 -41
  242. /package/dist/lib/browser/{TranscriptContainer-E5NBJPAY.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
  243. /package/dist/lib/node-esm/{TranscriptContainer-UOS7JG72.mjs.map → chunk-HSLMI22Q.mjs.map} +0 -0
@@ -1,15 +1,11 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  TRANSCRIPTION_URL,
4
- TranscriptSchema,
5
- TranscriptType,
6
- TranscriptionAction
7
- } from "../chunk-U65ZWK3L.mjs";
8
- import "../chunk-XMUCZBP3.mjs";
4
+ TranscriptionCapabilities
5
+ } from "../chunk-X74WYCCE.mjs";
6
+ import "../chunk-HSLMI22Q.mjs";
9
7
  export {
10
8
  TRANSCRIPTION_URL,
11
- TranscriptSchema,
12
- TranscriptType,
13
- TranscriptionAction
9
+ TranscriptionCapabilities
14
10
  };
15
11
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,3 @@
1
- export declare const TranscriptionPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const TranscriptionPlugin: Plugin.PluginFactory<void>;
2
3
  //# sourceMappingURL=TranscriptionPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TranscriptionPlugin.d.ts","sourceRoot":"","sources":["../../../src/TranscriptionPlugin.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,mBAAmB,4CAkD5B,CAAC"}
1
+ {"version":3,"file":"TranscriptionPlugin.d.ts","sourceRoot":"","sources":["../../../src/TranscriptionPlugin.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAY7C,eAAO,MAAM,mBAAmB,4BAmC/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as TranscriptionBlueprint } from './transcription-blueprint';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type AppCapabilities } from '@dxos/app-toolkit';
2
+ declare const blueprint: AppCapabilities.BlueprintDefinition;
3
+ export default blueprint;
4
+ //# sourceMappingURL=transcription-blueprint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcription-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/transcription-blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAoBzD,QAAA,MAAM,SAAS,EAAE,eAAe,CAAC,mBAGhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { AppCapabilities } from '@dxos/app-toolkit';
4
+ declare const blueprintDefinition: (props: []) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<AppCapabilities.BlueprintDefinition>>[], Error, Capability.Service>;
5
+ export default blueprintDefinition;
6
+ //# sourceMappingURL=blueprint-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,QAAA,MAAM,mBAAmB,gJAGqF,CAAC;AAE/G,eAAe,mBAAmB,CAAC"}
@@ -1,5 +1,7 @@
1
- export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
3
- export declare const Transcriber: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").AnyCapability[] | import("@dxos/app-framework").Capability<unknown>>>;
4
- export * from './capabilities';
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { OperationHandlerSet } from '@dxos/operation';
3
+ export declare const BlueprintDefinition: Capability.LazyCapability<[], Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.BlueprintDefinition>>[], Error>;
4
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
5
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
6
+ export declare const Transcriber: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("..").TranscriptionCapabilities.GetTranscriber>>, Capability.Capability<Capability.InterfaceDef<import("..").TranscriptionCapabilities.GetTranscriptionManager>>], Error>;
5
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kPAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAClE,eAAO,MAAM,WAAW,gMAAsC,CAAC;AAE/D,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,yJAAiF,CAAC;AAClH,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,WAAW,iQAAgE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import type { OperationHandlerSet } from '@dxos/operation';
4
+ declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=operation-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;;AAI3D,wBAIE"}
@@ -1,4 +1,5 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
3
4
  export default _default;
4
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAO/E,wBAQK"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAO/D,wBAgBE"}
@@ -1,8 +1,9 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- import { TranscriptionCapabilities } from './capabilities';
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { TranscriptionCapabilities } from '#types';
3
4
  /**
4
5
  * Records audio while user is speaking and transcribes it after user is done speaking.
5
6
  */
6
- declare const _default: (context: PluginContext) => (import("@dxos/app-framework").Capability<TranscriptionCapabilities.GetTranscriber> | import("@dxos/app-framework").Capability<TranscriptionCapabilities.GetTranscriptionManager>)[];
7
+ declare const _default: (props: void) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriber>>, Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriptionManager>>], Error, Capability.Service>;
7
8
  export default _default;
8
9
  //# sourceMappingURL=transcriber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/transcriber.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAqB3D;;GAEG;yBACa,SAAS,aAAa;AAAtC,wBA4CE"}
1
+ {"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/transcriber.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAsBnD;;GAEG;;AACH,wBAmDE"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { type Message, type Transcript } from '@dxos/types';
3
+ import { type SerializationModel } from '../../model';
4
+ import { renderByline } from '../../util';
5
+ export { renderByline };
6
+ export type TranscriptionProps = {
7
+ transcript?: Transcript.Transcript;
8
+ model: SerializationModel<Message.Message>;
9
+ attendableId?: string;
10
+ ignoreAttention?: boolean;
11
+ };
12
+ /**
13
+ * Transcript component implemented using the editor.
14
+ */
15
+ export declare const Transcription: React.ForwardRefExoticComponent<Omit<TranscriptionProps, "className"> & {
16
+ classNames?: import("@dxos/ui-types").ClassNameValue;
17
+ } & Pick<React.HTMLAttributes<Element>, "style" | "className" | "children" | "role"> & React.RefAttributes<HTMLDivElement>>;
18
+ //# sourceMappingURL=Transcription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transcription.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcription/Transcription.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAa5D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;IACnC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;2HAyBzB,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ import { type Message } from '@dxos/types';
4
+ import { type TranscriptionProps } from './Transcription';
5
+ type DefaultStoryProps = {
6
+ messages?: Message.Message[];
7
+ } & Pick<TranscriptionProps, 'ignoreAttention' | 'attendableId'>;
8
+ /**
9
+ * Basic story mutates array of messages.
10
+ */
11
+ declare const BasicStory: ({ messages: initialMessages, ...props }: DefaultStoryProps) => React.JSX.Element;
12
+ /**
13
+ * Wrapper remounts on refresh to reload queue.
14
+ */
15
+ declare const QueueStoryWrapper: () => React.JSX.Element;
16
+ declare const meta: {
17
+ title: string;
18
+ decorators: import("@storybook/react").Decorator[];
19
+ parameters: {
20
+ layout: string;
21
+ translations: [{
22
+ readonly 'en-US': {
23
+ readonly [meta.id]: {
24
+ readonly 'plugin.name': "Transcription";
25
+ readonly 'transcript-companion.label': "Transcript";
26
+ readonly 'delete.button': "Delete";
27
+ readonly 'bookmark.button': "Bookmark";
28
+ readonly 'scroll-to-end.label': "Scroll to latest";
29
+ readonly 'settings.entity-extraction.label': "Entity extraction";
30
+ };
31
+ };
32
+ }];
33
+ };
34
+ };
35
+ export default meta;
36
+ declare const DefaultStory: (props: DefaultStoryProps) => React.JSX.Element;
37
+ export declare const Default: StoryObj<typeof DefaultStory>;
38
+ export declare const Empty: StoryObj<typeof BasicStory>;
39
+ export declare const WithQueue: StoryObj<typeof QueueStoryWrapper>;
40
+ //# sourceMappingURL=Transcription.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transcription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcription/Transcription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,KAAgD,MAAM,OAAO,CAAC;AAcrE,OAAO,EAAqB,KAAK,OAAO,EAAwB,MAAM,aAAa,CAAC;AAapF,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAoCzE,KAAK,iBAAiB,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,IAAI,CAC9D,kBAAkB,EAClB,iBAAiB,GAAG,cAAc,CACnC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,yCAA8C,iBAAiB,sBAoDlF,CAAC;AAiCF;;GAEG;AACH,QAAA,MAAM,iBAAiB,yBAQtB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;yBA1KW,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;CAkMrB,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAS7C,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,YAAY,CAMjD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,OAAO,UAAU,CAM7C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,OAAO,iBAAiB,CAMxD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Transcription';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcription/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type Extension } from '@codemirror/state';
2
+ import { type Message } from '@dxos/types';
3
+ import { type SerializationModel } from '../../model';
4
+ /**
5
+ * Data structure that maps Chunks queue to lines with transcript state.
6
+ */
7
+ export type TranscriptionOptions = {
8
+ model: SerializationModel<Message.Message>;
9
+ started?: Date;
10
+ };
11
+ /**
12
+ * Scrolling transcript with timestamps.
13
+ */
14
+ export declare const transcription: ({ model, started }: TranscriptionOptions) => Extension;
15
+ //# sourceMappingURL=transcription-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcription-extension.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcription/transcription-extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAMpE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,oBAAoB,oBAAoB,KAAG,SA2HxE,CAAC"}
@@ -1,4 +1,2 @@
1
- export * from './Transcript';
2
- export * from './TranscriptContainer';
3
- export declare const TranscriptContainer: import("react").LazyExoticComponent<({ role, transcript }: import("./TranscriptContainer").TranscriptionContainerProps) => import("react").JSX.Element>;
1
+ export * from './Transcription';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,mBAAmB,yJAA8C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC"}
@@ -1,17 +1,18 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react-vite';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
3
+ import { type MediaStreamRecorderProps, type TranscriberProps } from '../../transcriber';
5
4
  declare const AudioFile: ({ detectSpeaking, audioUrl, normalizeSentences, transcriberConfig, recorderConfig, audioConstraints, }: {
6
5
  detectSpeaking?: boolean;
7
6
  normalizeSentences?: boolean;
8
7
  audioUrl: string;
9
- transcriberConfig?: TranscriberParams["config"];
10
- recorderConfig?: MediaStreamRecorderParams["config"];
8
+ transcriberConfig?: TranscriberProps["config"];
9
+ recorderConfig?: MediaStreamRecorderProps["config"];
11
10
  audioConstraints?: MediaTrackConstraints;
12
11
  }) => React.JSX.Element;
13
- declare const meta: Meta<typeof AudioFile>;
12
+ declare const meta: {
13
+ title: string;
14
+ decorators: import("@storybook/react").Decorator[];
15
+ };
14
16
  export default meta;
15
17
  export declare const Default: StoryObj<typeof AudioFile>;
16
- export declare const WithSentenceNormalization: StoryObj<typeof AudioFile>;
17
18
  //# sourceMappingURL=FileTranscription.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/FileTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAA4D,MAAM,OAAO,CAAC;AA6BjF,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3F,QAAA,MAAM,SAAS,GAAI,wGAOhB;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACrD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CAC1C,sBA0HA,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA2BhC,CAAC;AAEF,eAAe,IAAI,CAAC;AAYpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,SAAS,CAU9C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,OAAO,SAAS,CAWhE,CAAC"}
1
+ {"version":3,"file":"FileTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/FileTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA4D,MAAM,OAAO,CAAC;AAwBjF,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAMzF,QAAA,MAAM,SAAS,GAAI,wGAOhB;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACpD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CAC1C,sBAsIA,CAAC;AAEF,QAAA,MAAM,IAAI;;;CAuBM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAcpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,SAAS,CAU9C,CAAC"}
@@ -1,10 +1,14 @@
1
- import '@dxos-theme';
2
- import { type StoryObj, type Meta } from '@storybook/react-vite';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- declare const SpeechRecognition: ({ keywords }: {
3
+ type DefaultStoryProps = {
5
4
  keywords: string[];
6
- }) => React.JSX.Element;
7
- declare const meta: Meta<typeof SpeechRecognition>;
5
+ };
6
+ declare const meta: {
7
+ title: string;
8
+ render: ({ keywords }: DefaultStoryProps) => React.JSX.Element;
9
+ decorators: import("@storybook/react").Decorator[];
10
+ };
8
11
  export default meta;
9
- export declare const SpeechRecognitionAPI: StoryObj<typeof SpeechRecognition>;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const SpeechRecognitionAPI: Story;
10
14
  //# sourceMappingURL=KeyWordRecognition.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KeyWordRecognition.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/KeyWordRecognition.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,QAAA,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,sBA8F9D,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAGxC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,OAAO,iBAAiB,CAKnE,CAAC"}
1
+ {"version":3,"file":"KeyWordRecognition.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/KeyWordRecognition.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAkGF,QAAA,MAAM,IAAI;;2BAhG0B,iBAAiB;;CAoGhB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,oBAAoB,EAAE,KAIlC,CAAC"}
@@ -1,19 +1,20 @@
1
- import '@dxos-theme';
2
- import { type Meta, type StoryObj } from '@storybook/react-vite';
1
+ import { type StoryObj } from '@storybook/react-vite';
3
2
  import React from 'react';
4
- import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
5
- type StoryProps = {
3
+ import { type MediaStreamRecorderProps, type TranscriberProps } from '../../transcriber';
4
+ type DefaultStoryProps = {
6
5
  detectSpeaking?: boolean;
7
- transcriberConfig: TranscriberParams['config'];
8
- recorderConfig: MediaStreamRecorderParams['config'];
6
+ transcriberConfig: TranscriberProps['config'];
7
+ recorderConfig: MediaStreamRecorderProps['config'];
9
8
  audioConstraints?: MediaTrackConstraints;
10
9
  entityExtraction: 'none' | 'ner' | 'llm';
11
10
  };
12
- declare const DefaultStory: ({ detectSpeaking, entityExtraction, transcriberConfig, recorderConfig, audioConstraints, }: StoryProps) => React.JSX.Element;
13
- declare const meta: Meta<typeof DefaultStory>;
11
+ declare const meta: {
12
+ title: string;
13
+ render: ({ detectSpeaking, entityExtraction, transcriberConfig, recorderConfig, audioConstraints, }: DefaultStoryProps) => React.JSX.Element;
14
+ decorators: import("@storybook/react").Decorator[];
15
+ };
14
16
  export default meta;
15
- type Story = StoryObj<typeof DefaultStory>;
17
+ type Story = StoryObj<typeof meta>;
16
18
  export declare const Default: Story;
17
- export declare const EntityExtraction: Story;
18
19
  export declare const SpeechDetection: Story;
19
20
  //# sourceMappingURL=MicrophoneTranscription.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MicrophoneTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/MicrophoneTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AAmCzE,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAY3F,KAAK,UAAU,GAAG;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC/C,cAAc,EAAE,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IACpD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,4FAMnB,UAAU,sBA0HZ,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAyCnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAY9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC"}
1
+ {"version":3,"file":"MicrophoneTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/MicrophoneTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA6BzE,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAezF,KAAK,iBAAiB,GAAG;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,cAAc,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC1C,CAAC;AAwHF,QAAA,MAAM,IAAI;;yGAhHP,iBAAiB;;CAuJiB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAkBF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import '@dxos-theme';
2
2
  import { type Dispatch, type FC, type RefObject, type SetStateAction } from 'react';
3
- import { type DataType } from '@dxos/schema';
3
+ import { type Message } from '@dxos/types';
4
4
  import { type SerializationModel } from '../../model';
5
5
  export declare const TranscriptionStory: FC<{
6
- model: SerializationModel<DataType.Message>;
6
+ model: SerializationModel<Message.Message>;
7
+ disabled?: boolean;
7
8
  running: boolean;
8
9
  onRunningChange: Dispatch<SetStateAction<boolean>>;
9
- audioRef?: RefObject<HTMLAudioElement>;
10
+ audioRef?: RefObject<HTMLAudioElement | null>;
10
11
  }>;
11
12
  //# sourceMappingURL=TranscriptionStory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TranscriptionStory.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/TranscriptionStory.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAK3F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACxC,CAmBA,CAAC"}
1
+ {"version":3,"file":"TranscriptionStory.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/TranscriptionStory.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG3F,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC/C,CAsBA,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { type Transcript } from '@dxos/types';
4
+ export type TranscriptionContainerProps = AppSurface.ObjectArticleProps<Transcript.Transcript>;
5
+ export declare const TranscriptionContainer: ({ role, subject: transcript, attendableId }: TranscriptionContainerProps) => React.JSX.Element;
6
+ //# sourceMappingURL=TranscriptionContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranscriptionContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/TranscriptionContainer/TranscriptionContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAIvD,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAO5D,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAE/F,eAAO,MAAM,sBAAsB,GAAI,6CAA6C,2BAA2B,sBAe9G,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { TranscriptionContainer as default } from './TranscriptionContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/TranscriptionContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ComponentType } from 'react';
2
+ export declare const TranscriptionContainer: ComponentType<any>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,sBAAsB,EAAE,aAAa,CAAC,GAAG,CAAkD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAudioFile.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioFile.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,cAAc,qBAAqB,KAAG,aA2EpF,CAAC"}
1
+ {"version":3,"file":"useAudioFile.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioFile.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,cAAc,qBAAqB,KAAG,aAuEpF,CAAC"}
@@ -4,5 +4,5 @@ import { type ChunkRenderer, SerializationModel } from '../model';
4
4
  /**
5
5
  * Model adapter for a queue.
6
6
  */
7
- export declare const useQueueModelAdapter: <T extends Obj.Any>(renderer: ChunkRenderer<T>, queue: Queue<T> | undefined, initialChunks?: T[]) => SerializationModel<T>;
7
+ export declare const useQueueModelAdapter: <T extends Obj.Unknown>(renderer: ChunkRenderer<T>, queue: Queue<T> | undefined, initialChunks?: T[]) => SerializationModel<T>;
8
8
  //# sourceMappingURL=useQueueModelAdapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useQueueModelAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueueModelAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,GAAG,CAAC,GAAG,EACpD,UAAU,aAAa,CAAC,CAAC,CAAC,EAC1B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,EAC3B,gBAAe,CAAC,EAAO,KACtB,kBAAkB,CAAC,CAAC,CA+CtB,CAAC"}
1
+ {"version":3,"file":"useQueueModelAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueueModelAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,GAAG,CAAC,OAAO,EACxD,UAAU,aAAa,CAAC,CAAC,CAAC,EAC1B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,EAC3B,gBAAe,CAAC,EAAO,KACtB,kBAAkB,CAAC,CAAC,CA+CtB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { TranscriptionCapabilities } from '../capabilities';
1
+ import { TranscriptionCapabilities } from '#types';
2
2
  import { type Transcriber } from '../transcriber';
3
3
  /**
4
4
  * Records audio while user is speaking and transcribes it after user is done speaking.
@@ -1 +1 @@
1
- {"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,sEAK5B,OAAO,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,4BAmBxD,CAAC"}
1
+ {"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,sEAK5B,OAAO,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,4BAwBxD,CAAC"}
@@ -1,4 +1,4 @@
1
- export { TranscriptionCapabilities } from './capabilities';
1
+ export { TranscriptionCapabilities } from './types';
2
2
  export * from './components';
3
3
  export * from './hooks';
4
4
  export * from './meta';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B,cAAc,uBAAuB,CAAC"}
@@ -1,4 +1,3 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const TRANSCRIPTION_PLUGIN = "dxos.org/plugin/transcription";
3
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
4
3
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,oBAAoB,kCAAkC,CAAC;AAEpE,eAAO,MAAM,IAAI,EAAE,UAQlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAYzB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Operation } from '@dxos/operation';
2
+ import { Create } from './definitions';
3
+ declare const handler: Operation.WithHandler<typeof Create>;
4
+ export default handler;
5
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,MAAM,CASjD,CAAC;AAEF,eAAe,OAAO,CAAC"}