@dxos/plugin-transcription 0.8.3 → 0.8.4-main.1068cf700f
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/lib/browser/TranscriptContainer-MV3JBKLS.mjs +12 -0
- package/dist/lib/browser/blueprint-definition-K3E72ZBC.mjs +19 -0
- package/dist/lib/browser/blueprint-definition-K3E72ZBC.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +9 -0
- package/dist/lib/browser/chunk-AV44VISC.mjs +148 -0
- package/dist/lib/browser/chunk-AV44VISC.mjs.map +7 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs +35 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/{chunk-53AXUEIQ.mjs → chunk-K3JJ46VV.mjs} +367 -433
- package/dist/lib/browser/chunk-K3JJ46VV.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q5OC3WVG.mjs +72 -0
- package/dist/lib/browser/chunk-Q5OC3WVG.mjs.map +7 -0
- package/dist/lib/browser/{chunk-UDCCT32F.mjs → chunk-RUKY36XW.mjs} +3 -3
- package/dist/lib/browser/{chunk-IQ5ZRMHZ.mjs → chunk-TKFU53OZ.mjs} +70 -105
- package/dist/lib/browser/chunk-TKFU53OZ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +68 -75
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-GLEBGPKH.mjs +22 -0
- package/dist/lib/browser/operation-resolver-GLEBGPKH.mjs.map +7 -0
- package/dist/lib/browser/react-surface-AWZ2A5WZ.mjs +35 -0
- package/dist/lib/browser/react-surface-AWZ2A5WZ.mjs.map +7 -0
- package/dist/lib/browser/{transcriber-OYPLZFG5.mjs → transcriber-SLVQP76E.mjs} +17 -13
- package/dist/lib/browser/transcriber-SLVQP76E.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +8 -8
- package/dist/lib/node-esm/{TranscriptContainer-G75LDEO5.mjs → TranscriptContainer-7M43UAZ2.mjs} +5 -4
- package/dist/lib/node-esm/TranscriptContainer-7M43UAZ2.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-2WIDDA3Y.mjs +20 -0
- package/dist/lib/node-esm/blueprint-definition-2WIDDA3Y.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +10 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4BFY6P2D.mjs +73 -0
- package/dist/lib/node-esm/chunk-4BFY6P2D.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PRL64SRU.mjs → chunk-EPC27WWV.mjs} +70 -105
- package/dist/lib/node-esm/chunk-EPC27WWV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs +37 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-MFJO7EKD.mjs → chunk-SNZAN34I.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-56QHOX4A.mjs → chunk-TIUYXGQN.mjs} +367 -433
- package/dist/lib/node-esm/chunk-TIUYXGQN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-TTJBW7CY.mjs +149 -0
- package/dist/lib/node-esm/chunk-TTJBW7CY.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +68 -75
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-SMCFTUFM.mjs +23 -0
- package/dist/lib/node-esm/operation-resolver-SMCFTUFM.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-YBBXC4W5.mjs +36 -0
- package/dist/lib/node-esm/react-surface-YBBXC4W5.mjs.map +7 -0
- package/dist/lib/node-esm/{transcriber-TVG2MBBN.mjs → transcriber-BO2N3UQ4.mjs} +17 -13
- package/dist/lib/node-esm/transcriber-BO2N3UQ4.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +8 -8
- package/dist/types/src/TranscriptionPlugin.d.ts +2 -1
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts +21 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +10 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +4 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +5 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/transcriber/index.d.ts +3 -0
- package/dist/types/src/capabilities/transcriber/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts +9 -0
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts.map +1 -0
- package/dist/types/src/components/Transcript/Transcript.d.ts +7 -10
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +34 -18
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +12 -12
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +3 -7
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -1
- package/dist/types/src/components/TranscriptContainer.d.ts +5 -6
- package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -4
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts +8 -7
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +10 -6
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +10 -9
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +4 -3
- package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +3 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/functions/open.d.ts +11 -0
- package/dist/types/src/functions/open.d.ts.map +1 -0
- package/dist/types/src/functions/summarize.d.ts +11 -0
- package/dist/types/src/functions/summarize.d.ts.map +1 -0
- package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts +2 -2
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/hooks/useVoiceInput.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/message-normalizer.d.ts +5 -5
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/normalization.d.ts +503 -311
- package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/utils.d.ts +2 -2
- package/dist/types/src/segments-normalization/utils.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +10 -10
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/transcriber/index.d.ts +1 -1
- package/dist/types/src/transcriber/index.d.ts.map +1 -1
- package/dist/types/src/transcriber/media-stream-recorder.d.ts +3 -3
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +4 -4
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcription-manager.d.ts +12 -13
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +11 -11
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/TranscriptAction.d.ts +25 -0
- package/dist/types/src/types/TranscriptAction.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +18 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +0 -26
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -0
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/render-byline.d.ts +4 -0
- package/dist/types/src/util/render-byline.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +88 -72
- package/src/TranscriptionPlugin.tsx +40 -58
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/transcription-blueprint.ts +25 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +24 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/index.ts +4 -7
- package/src/capabilities/operation-handler/index.ts +7 -0
- package/src/capabilities/operation-handler/operation-handler.ts +25 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +25 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +28 -0
- package/src/capabilities/transcriber/index.ts +7 -0
- package/src/capabilities/transcriber/transcriber.ts +85 -0
- package/src/components/Transcript/Transcript.stories.tsx +61 -57
- package/src/components/Transcript/Transcript.tsx +25 -59
- package/src/components/Transcript/deprecated/OldTranscript.tsx +11 -11
- package/src/components/Transcript/transcript-extension.ts +13 -46
- package/src/components/TranscriptContainer.tsx +19 -15
- package/src/components/stories/FileTranscription.stories.tsx +80 -70
- package/src/components/stories/KeyWordRecognition.stories.tsx +17 -13
- package/src/components/stories/MicrophoneTranscription.stories.tsx +89 -87
- package/src/components/stories/TranscriptionStory.tsx +14 -14
- package/src/functions/index.ts +6 -0
- package/src/functions/open.ts +37 -0
- package/src/functions/summarize.ts +103 -0
- package/src/hooks/useAudioFile.ts +49 -53
- package/src/hooks/useQueueModelAdapter.ts +1 -1
- package/src/hooks/useTranscriber.ts +12 -7
- package/src/hooks/useVoiceInput.ts +4 -3
- package/src/index.ts +1 -1
- package/src/meta.ts +9 -6
- package/src/model/model.test.ts +27 -21
- package/src/segments-normalization/message-normalizer.ts +19 -14
- package/src/segments-normalization/normalization.test.ts +25 -32
- package/src/segments-normalization/normalization.ts +59 -49
- package/src/segments-normalization/utils.ts +2 -2
- package/src/testing/testing.ts +42 -32
- package/src/transcriber/index.ts +1 -1
- package/src/transcriber/media-stream-recorder.ts +4 -4
- package/src/transcriber/transcriber.browser.test.ts +6 -5
- package/src/transcriber/transcriber.ts +9 -11
- package/src/transcriber/transcription-manager.ts +37 -52
- package/src/translations.ts +6 -4
- package/src/types/TranscriptAction.ts +32 -0
- package/src/types/capabilities.ts +33 -0
- package/src/types/index.ts +3 -1
- package/src/types/types.ts +0 -23
- package/src/util/index.ts +1 -0
- package/src/util/render-byline.ts +33 -0
- package/dist/lib/browser/TranscriptContainer-H3AZQ4CQ.mjs +0 -11
- package/dist/lib/browser/chunk-53AXUEIQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-GOF7MJNV.mjs +0 -19
- package/dist/lib/browser/chunk-GOF7MJNV.mjs.map +0 -7
- package/dist/lib/browser/chunk-IQ5ZRMHZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-OSISJM2F.mjs +0 -55
- package/dist/lib/browser/chunk-OSISJM2F.mjs.map +0 -7
- package/dist/lib/browser/chunk-W2KNYJD6.mjs +0 -16
- package/dist/lib/browser/chunk-W2KNYJD6.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-BGADCHVM.mjs +0 -30
- package/dist/lib/browser/intent-resolver-BGADCHVM.mjs.map +0 -7
- package/dist/lib/browser/react-surface-HMJS5FSS.mjs +0 -34
- package/dist/lib/browser/react-surface-HMJS5FSS.mjs.map +0 -7
- package/dist/lib/browser/transcriber-OYPLZFG5.mjs.map +0 -7
- package/dist/lib/node/TranscriptContainer-KIG3GMAB.cjs +0 -32
- package/dist/lib/node/TranscriptContainer-KIG3GMAB.cjs.map +0 -7
- package/dist/lib/node/chunk-3PYT3BDM.cjs +0 -40
- package/dist/lib/node/chunk-3PYT3BDM.cjs.map +0 -7
- package/dist/lib/node/chunk-6LW5RA3K.cjs +0 -75
- package/dist/lib/node/chunk-6LW5RA3K.cjs.map +0 -7
- package/dist/lib/node/chunk-AFUZI63A.cjs +0 -42
- package/dist/lib/node/chunk-AFUZI63A.cjs.map +0 -7
- package/dist/lib/node/chunk-CVUN3UO7.cjs +0 -778
- package/dist/lib/node/chunk-CVUN3UO7.cjs.map +0 -7
- package/dist/lib/node/chunk-FKDJNJ57.cjs +0 -35
- package/dist/lib/node/chunk-FKDJNJ57.cjs.map +0 -7
- package/dist/lib/node/chunk-ZFAUMZXE.cjs +0 -518
- package/dist/lib/node/chunk-ZFAUMZXE.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -133
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-LL3TTI4H.cjs +0 -45
- package/dist/lib/node/intent-resolver-LL3TTI4H.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/react-surface-N25TBBG4.cjs +0 -56
- package/dist/lib/node/react-surface-N25TBBG4.cjs.map +0 -7
- package/dist/lib/node/transcriber-6J4FVFSZ.cjs +0 -68
- package/dist/lib/node/transcriber-6J4FVFSZ.cjs.map +0 -7
- package/dist/lib/node/types/index.cjs +0 -36
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-56QHOX4A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FH75X4JC.mjs +0 -56
- package/dist/lib/node-esm/chunk-FH75X4JC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MFJPEIVB.mjs +0 -17
- package/dist/lib/node-esm/chunk-MFJPEIVB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PRL64SRU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TXMDLLBR.mjs +0 -21
- package/dist/lib/node-esm/chunk-TXMDLLBR.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-5LVCYSJS.mjs +0 -31
- package/dist/lib/node-esm/intent-resolver-5LVCYSJS.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-JGQSYGRR.mjs +0 -35
- package/dist/lib/node-esm/react-surface-JGQSYGRR.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-TVG2MBBN.mjs.map +0 -7
- package/dist/types/src/capabilities/capabilities.d.ts +0 -17
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/transcriber.d.ts +0 -8
- package/dist/types/src/capabilities/transcriber.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -41
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -33
- package/src/capabilities/intent-resolver.ts +0 -24
- package/src/capabilities/react-surface.tsx +0 -22
- package/src/capabilities/transcriber.ts +0 -76
- package/src/types/schema.ts +0 -41
- /package/dist/lib/browser/{TranscriptContainer-H3AZQ4CQ.mjs.map → TranscriptContainer-MV3JBKLS.mjs.map} +0 -0
- /package/dist/lib/{node-esm/TranscriptContainer-G75LDEO5.mjs.map → browser/blueprints/index.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-UDCCT32F.mjs.map → chunk-RUKY36XW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-MFJO7EKD.mjs.map → chunk-SNZAN34I.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/transcriber/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,WAAW,uQAAgE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { TranscriptionCapabilities } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Records audio while user is speaking and transcribes it after user is done speaking.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: (props?: void | undefined) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriber>>, Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriptionManager>>], Error, Capability.Service>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=transcriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/transcriber/transcriber.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAI/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAoBxD;;GAEG;;AACH,wBAmDE"}
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
-
import { type Identity } from '@dxos/react-client/halo';
|
|
4
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
5
|
-
import { type
|
|
3
|
+
import { type Message, type Transcript } from '@dxos/types';
|
|
6
4
|
import { type SerializationModel } from '../../model';
|
|
7
|
-
import {
|
|
8
|
-
export
|
|
9
|
-
export type
|
|
10
|
-
transcript?:
|
|
11
|
-
|
|
12
|
-
model: SerializationModel<DataType.Message>;
|
|
5
|
+
import { renderByline } from '../../util';
|
|
6
|
+
export { renderByline };
|
|
7
|
+
export type TranscriptViewProps = ThemedClassName<{
|
|
8
|
+
transcript?: Transcript.Transcript;
|
|
9
|
+
model: SerializationModel<Message.Message>;
|
|
13
10
|
attendableId?: string;
|
|
14
11
|
ignoreAttention?: boolean;
|
|
15
12
|
}>;
|
|
16
13
|
/**
|
|
17
14
|
* Transcript component implemented using the editor.
|
|
18
15
|
*/
|
|
19
|
-
export declare const
|
|
16
|
+
export declare const TranscriptView: ({ classNames, transcript: object, model }: TranscriptViewProps) => React.JSX.Element;
|
|
20
17
|
//# sourceMappingURL=Transcript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transcript.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Transcript.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AAEvE,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;AAI1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,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,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,2CAA2C,mBAAmB,sBA0B5F,CAAC"}
|
|
@@ -1,24 +1,40 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/react';
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { type TranscriptProps } from './Transcript';
|
|
3
|
+
import { type Message } from '@dxos/types';
|
|
4
|
+
import { type TranscriptViewProps } from './Transcript';
|
|
7
5
|
type StoryProps = {
|
|
8
|
-
messages?:
|
|
9
|
-
} & Pick<
|
|
6
|
+
messages?: Message.Message[];
|
|
7
|
+
} & Pick<TranscriptViewProps, 'ignoreAttention' | 'attendableId'>;
|
|
10
8
|
/**
|
|
11
|
-
*
|
|
9
|
+
* Basic story mutates array of messages.
|
|
12
10
|
*/
|
|
13
|
-
declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
declare const
|
|
11
|
+
declare const BasicStory: ({ messages: initialMessages, ...props }: StoryProps) => 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
|
+
};
|
|
18
35
|
export default meta;
|
|
19
|
-
|
|
20
|
-
export declare const Default:
|
|
21
|
-
export declare const Empty:
|
|
22
|
-
export declare const WithQueue:
|
|
23
|
-
export declare const WithEntityExtractionQueue: Story;
|
|
36
|
+
declare const DefaultStory: (props: StoryProps) => 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>;
|
|
24
40
|
//# sourceMappingURL=Transcript.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transcript.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Transcript.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,KAAgD,MAAM,OAAO,CAAC;AAarE,OAAO,EAAqB,KAAK,OAAO,EAAwB,MAAM,aAAa,CAAC;AAapF,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAoCxE,KAAK,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAEnH;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,yCAA8C,UAAU,sBAoD3E,CAAC;AAiCF;;GAEG;AACH,QAAA,MAAM,iBAAiB,yBAQtB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;yBAtKa,CAAO,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;CA8LtB,CAAC;AAEjB,eAAe,IAAI,CAAC;AAGpB,QAAA,MAAM,YAAY,GAAI,OAAO,UAAU,sBAStC,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"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { type FC } from 'react';
|
|
3
3
|
import { Type } from '@dxos/echo';
|
|
4
4
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
5
5
|
/**
|
|
6
6
|
* Transcription block (from single speaker).
|
|
7
7
|
*/
|
|
8
|
-
declare const TranscriptBlock: Type.
|
|
9
|
-
id:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
8
|
+
declare const TranscriptBlock: Type.Obj<{
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly segments: readonly {
|
|
11
|
+
readonly text: string;
|
|
12
|
+
readonly started: string;
|
|
13
|
+
}[];
|
|
14
|
+
readonly authorName?: string | undefined;
|
|
15
|
+
readonly authorHue?: string | undefined;
|
|
16
|
+
}, Schema.Struct.Fields>;
|
|
17
17
|
type TranscriptBlock = Schema.Schema.Type<typeof TranscriptBlock>;
|
|
18
|
-
export type
|
|
18
|
+
export type TranscriptViewProps = ThemedClassName<{
|
|
19
19
|
blocks?: TranscriptBlock[];
|
|
20
20
|
attendableId?: string;
|
|
21
21
|
ignoreAttention?: boolean;
|
|
@@ -23,6 +23,6 @@ export type TranscriptProps = ThemedClassName<{
|
|
|
23
23
|
/**
|
|
24
24
|
* @@deprecated
|
|
25
25
|
*/
|
|
26
|
-
export declare const Transcript: FC<
|
|
26
|
+
export declare const Transcript: FC<TranscriptViewProps>;
|
|
27
27
|
export {};
|
|
28
28
|
//# sourceMappingURL=OldTranscript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OldTranscript.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Transcript/deprecated/OldTranscript.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"OldTranscript.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Transcript/deprecated/OldTranscript.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAc,EAAE,KAAK,EAAE,EAAsE,MAAM,OAAO,CAAC;AAG3G,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAyBlF;;GAEG;AACH,QAAA,MAAM,eAAe;;;;;;;;wBAUpB,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAkElE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,mBAAmB,CAqI9C,CAAC"}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { type Extension } from '@codemirror/state';
|
|
2
|
-
import { type
|
|
3
|
-
import { type DataType } from '@dxos/schema';
|
|
2
|
+
import { type Message } from '@dxos/types';
|
|
4
3
|
import { type SerializationModel } from '../../model';
|
|
5
4
|
/**
|
|
6
5
|
* Data structure that maps Chunks queue to lines with transcript state.
|
|
7
6
|
*/
|
|
8
7
|
export type TranscriptOptions = {
|
|
9
|
-
model: SerializationModel<
|
|
8
|
+
model: SerializationModel<Message.Message>;
|
|
10
9
|
started?: Date;
|
|
11
|
-
renderButton?: RenderCallback<{
|
|
12
|
-
onClick: () => void;
|
|
13
|
-
}>;
|
|
14
10
|
};
|
|
15
11
|
/**
|
|
16
12
|
* Scrolling transcript with timestamps.
|
|
17
13
|
*/
|
|
18
|
-
export declare const transcript: ({ model, started
|
|
14
|
+
export declare const transcript: ({ model, started }: TranscriptOptions) => Extension;
|
|
19
15
|
//# sourceMappingURL=transcript-extension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-extension.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/transcript-extension.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAMpE,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"transcript-extension.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/transcript-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,iBAAiB,GAAG;IAC9B,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,oBAAoB,iBAAiB,KAAG,SA2HlE,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { type Transcript } from '@dxos/types';
|
|
4
|
+
export type TranscriptionContainerProps = SurfaceComponentProps<Transcript.Transcript>;
|
|
5
|
+
export declare const TranscriptionContainer: ({ role, subject: transcript }: TranscriptionContainerProps) => React.JSX.Element;
|
|
7
6
|
export default TranscriptionContainer;
|
|
8
7
|
//# sourceMappingURL=TranscriptContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAIlE,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAO5D,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEvF,eAAO,MAAM,sBAAsB,GAAI,+BAA+B,2BAA2B,sBAYhG,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export * from './Transcript';
|
|
2
2
|
export * from './TranscriptContainer';
|
|
3
|
-
export declare const TranscriptContainer: import("react").LazyExoticComponent<import("react").
|
|
4
|
-
role: string;
|
|
5
|
-
transcript: import("../types").TranscriptType;
|
|
6
|
-
}>>;
|
|
3
|
+
export declare const TranscriptContainer: import("react").LazyExoticComponent<({ role, subject: transcript }: import("./TranscriptContainer").TranscriptionContainerProps) => import("react").JSX.Element>;
|
|
7
4
|
//# 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
|
|
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,kKAA8C,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/react';
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { type
|
|
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?:
|
|
10
|
-
recorderConfig?:
|
|
8
|
+
transcriberConfig?: TranscriberProps["config"];
|
|
9
|
+
recorderConfig?: MediaStreamRecorderProps["config"];
|
|
11
10
|
audioConstraints?: MediaTrackConstraints;
|
|
12
11
|
}) => React.JSX.Element;
|
|
13
|
-
declare const meta:
|
|
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,
|
|
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;AAsBjF,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAOzF,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;;;CA0BM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAcpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,SAAS,CAU9C,CAAC"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import { type StoryObj, type Meta } from '@storybook/react';
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
|
|
3
|
+
type StoryProps = {
|
|
5
4
|
keywords: string[];
|
|
6
|
-
}
|
|
7
|
-
declare const meta:
|
|
5
|
+
};
|
|
6
|
+
declare const meta: {
|
|
7
|
+
title: string;
|
|
8
|
+
render: ({ keywords }: StoryProps) => React.JSX.Element;
|
|
9
|
+
decorators: import("@storybook/react").Decorator[];
|
|
10
|
+
};
|
|
8
11
|
export default meta;
|
|
9
|
-
|
|
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,
|
|
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,UAAU,GAAG;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAkGF,QAAA,MAAM,IAAI;;2BAhG0B,UAAU;;CAoGT,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 '@
|
|
2
|
-
import { type Meta, type StoryObj } from '@storybook/react';
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { type
|
|
3
|
+
import { type MediaStreamRecorderProps, type TranscriberProps } from '../../transcriber';
|
|
5
4
|
type StoryProps = {
|
|
6
5
|
detectSpeaking?: boolean;
|
|
7
|
-
transcriberConfig:
|
|
8
|
-
recorderConfig:
|
|
6
|
+
transcriberConfig: TranscriberProps['config'];
|
|
7
|
+
recorderConfig: MediaStreamRecorderProps['config'];
|
|
9
8
|
audioConstraints?: MediaTrackConstraints;
|
|
10
9
|
entityExtraction: 'none' | 'ner' | 'llm';
|
|
11
10
|
};
|
|
12
|
-
declare const
|
|
13
|
-
|
|
11
|
+
declare const meta: {
|
|
12
|
+
title: string;
|
|
13
|
+
render: ({ detectSpeaking, entityExtraction, transcriberConfig, recorderConfig, audioConstraints, }: StoryProps) => React.JSX.Element;
|
|
14
|
+
decorators: import("@storybook/react").Decorator[];
|
|
15
|
+
};
|
|
14
16
|
export default meta;
|
|
15
|
-
type Story = StoryObj<typeof
|
|
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,
|
|
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;AA4BzE,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAgBzF,KAAK,UAAU,GAAG;IAChB,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;AAuIF,QAAA,MAAM,IAAI;;yGA/HP,UAAU;;CAyKwB,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
|
|
3
|
+
import { type Message } from '@dxos/types';
|
|
4
4
|
import { type SerializationModel } from '../../model';
|
|
5
5
|
export declare const TranscriptionStory: FC<{
|
|
6
|
-
model: SerializationModel<
|
|
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;
|
|
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,CAoBA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
+
readonly transcript: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
+
readonly started?: string | undefined;
|
|
4
|
+
readonly ended?: string | undefined;
|
|
5
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
6
|
+
}>;
|
|
7
|
+
}, {
|
|
8
|
+
readonly content: string;
|
|
9
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=open.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../../src/functions/open.ts"],"names":[],"mappings":";;;;;;;;;AAaA,wBAuBG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Summarize a transcript of a meeting.
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
5
|
+
readonly transcript: string;
|
|
6
|
+
readonly notes?: string | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
readonly summary: string;
|
|
9
|
+
}, import("@dxos/functions").FunctionServices>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=summarize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarize.d.ts","sourceRoot":"","sources":["../../../../src/functions/summarize.ts"],"names":[],"mappings":"AAgBA;;GAEG;;;;;;;AACH,wBAkDG"}
|
|
@@ -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,
|
|
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.
|
|
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,
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { TranscriptionCapabilities } from '../capabilities';
|
|
2
1
|
import { type Transcriber } from '../transcriber';
|
|
2
|
+
import { TranscriptionCapabilities } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Records audio while user is speaking and transcribes it after user is done speaking.
|
|
5
5
|
*/
|
|
6
|
-
export declare const useTranscriber: ({ audioStreamTrack,
|
|
6
|
+
export declare const useTranscriber: ({ audioStreamTrack, recorderConfig, transcriberConfig, onSegments, }: Partial<TranscriptionCapabilities.GetTranscriberProps>) => Transcriber | undefined;
|
|
7
7
|
//# sourceMappingURL=useTranscriber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,sEAK5B,OAAO,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,4BAwBxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,sBAAsB,kBAAkB;;CA0CrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,
|
|
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"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const
|
|
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,
|
|
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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Resource } from '@dxos/context';
|
|
2
2
|
import { type Queue } from '@dxos/echo-db';
|
|
3
|
-
import { type FunctionExecutor } from '@dxos/functions';
|
|
4
|
-
import { type
|
|
5
|
-
export type
|
|
3
|
+
import { type FunctionExecutor } from '@dxos/functions-runtime';
|
|
4
|
+
import { type Message } from '@dxos/types';
|
|
5
|
+
export type SegmentsNormalizerProps = {
|
|
6
6
|
functionExecutor: FunctionExecutor;
|
|
7
|
-
queue: Queue<
|
|
7
|
+
queue: Queue<Message.Message>;
|
|
8
8
|
startingCursor: QueueCursor;
|
|
9
9
|
};
|
|
10
10
|
export type QueueCursor = {
|
|
@@ -18,7 +18,7 @@ export declare class MessageNormalizer extends Resource {
|
|
|
18
18
|
private _messagesToProcess;
|
|
19
19
|
private _normalizationTask?;
|
|
20
20
|
private _lastProcessedMessageIds?;
|
|
21
|
-
constructor({ functionExecutor, queue, startingCursor }:
|
|
21
|
+
constructor({ functionExecutor, queue, startingCursor }: SegmentsNormalizerProps);
|
|
22
22
|
protected _open(): Promise<void>;
|
|
23
23
|
private _processMessages;
|
|
24
24
|
private _writeMessages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-normalizer.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/message-normalizer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-normalizer.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/message-normalizer.ts"],"names":[],"mappings":"AASA,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAQ3C,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;IACrD,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,kBAAkB,CAAC,CAAe;IAC1C,OAAO,CAAC,wBAAwB,CAAC,CAAW;gBAEhC,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,uBAAuB;cAOvD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAyBjC,gBAAgB;IAgC9B,OAAO,CAAC,cAAc;CAMvB"}
|