@dxos/plugin-transcription 0.8.2-staging.7ac8446 → 0.8.2
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-PFKLKRPQ.mjs +11 -0
- package/dist/lib/browser/{chunk-YCZISX63.mjs → chunk-4KCUYW2F.mjs} +139 -95
- package/dist/lib/browser/chunk-4KCUYW2F.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6ZR5MDK3.mjs → chunk-GOF7MJNV.mjs} +3 -3
- package/dist/lib/browser/{chunk-6ZR5MDK3.mjs.map → chunk-GOF7MJNV.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-K7FOYAXO.mjs → chunk-IGEKO7ZU.mjs} +2 -2
- package/dist/lib/browser/chunk-NODIXNQP.mjs +54 -0
- package/dist/lib/browser/chunk-NODIXNQP.mjs.map +7 -0
- package/dist/lib/browser/chunk-TJPJBE45.mjs +764 -0
- package/dist/lib/browser/chunk-TJPJBE45.mjs.map +7 -0
- package/dist/lib/browser/{chunk-YEPT334A.mjs → chunk-W2KNYJD6.mjs} +4 -4
- package/dist/lib/browser/chunk-W2KNYJD6.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +30 -216
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/{intent-resolver-4R66ZCKT.mjs → intent-resolver-I2LJSQDR.mjs} +7 -11
- package/dist/lib/browser/intent-resolver-I2LJSQDR.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-FQUHU5G7.mjs → react-surface-ID2MLJHZ.mjs} +11 -9
- package/dist/lib/browser/react-surface-ID2MLJHZ.mjs.map +7 -0
- package/dist/lib/browser/transcriber-NA7CIFIT.mjs +56 -0
- package/dist/lib/browser/transcriber-NA7CIFIT.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -8
- package/dist/lib/node/{TranscriptContainer-QEYTTT2V.cjs → TranscriptContainer-LHMC7553.cjs} +9 -8
- package/dist/lib/node/TranscriptContainer-LHMC7553.cjs.map +7 -0
- package/dist/lib/node/chunk-3GS5UNO5.cjs +778 -0
- package/dist/lib/node/chunk-3GS5UNO5.cjs.map +7 -0
- package/dist/lib/node/{chunk-LP4FG423.cjs → chunk-5J3FBCON.cjs} +5 -5
- package/dist/lib/node/{chunk-NVZWGFJL.cjs → chunk-AFUZI63A.cjs} +6 -6
- package/dist/lib/node/{chunk-NVZWGFJL.cjs.map → chunk-AFUZI63A.cjs.map} +1 -1
- package/dist/lib/node/chunk-EIMUQYCZ.cjs +74 -0
- package/dist/lib/node/chunk-EIMUQYCZ.cjs.map +7 -0
- package/dist/lib/node/{chunk-CZMLKKWT.cjs → chunk-FKDJNJ57.cjs} +8 -8
- package/dist/lib/node/chunk-FKDJNJ57.cjs.map +7 -0
- package/dist/lib/node/{chunk-FCCJALOT.cjs → chunk-ZFTXJZXH.cjs} +138 -95
- package/dist/lib/node/chunk-ZFTXJZXH.cjs.map +7 -0
- package/dist/lib/node/index.cjs +59 -251
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/{intent-resolver-WMMCOUEH.cjs → intent-resolver-LLMGF5I5.cjs} +10 -11
- package/dist/lib/node/intent-resolver-LLMGF5I5.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-WI2MGWCC.cjs → react-surface-SEQLEL4K.cjs} +13 -11
- package/dist/lib/node/react-surface-SEQLEL4K.cjs.map +7 -0
- package/dist/lib/node/transcriber-RKKN7LDU.cjs +68 -0
- package/dist/lib/node/transcriber-RKKN7LDU.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +7 -11
- package/dist/lib/node/types/index.cjs.map +2 -2
- package/dist/lib/node-esm/{TranscriptContainer-ZXUCOWGY.mjs → TranscriptContainer-DLNRFVTA.mjs} +4 -3
- package/dist/lib/node-esm/chunk-BRPFVRAD.mjs +55 -0
- package/dist/lib/node-esm/chunk-BRPFVRAD.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-YQYBLFNI.mjs → chunk-EFIWBQDF.mjs} +139 -95
- package/dist/lib/node-esm/chunk-EFIWBQDF.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-J4D2RBBH.mjs → chunk-KUWWHMOA.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-PTZHDZ36.mjs → chunk-MFJPEIVB.mjs} +4 -4
- package/dist/lib/node-esm/chunk-MFJPEIVB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PR7EYODX.mjs +765 -0
- package/dist/lib/node-esm/chunk-PR7EYODX.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-X4DDJIVL.mjs → chunk-TXMDLLBR.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-X4DDJIVL.mjs.map → chunk-TXMDLLBR.mjs.map} +1 -1
- package/dist/lib/node-esm/index.mjs +30 -216
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/{intent-resolver-QN2LO5TX.mjs → intent-resolver-WOZKOEBW.mjs} +7 -11
- package/dist/lib/node-esm/intent-resolver-WOZKOEBW.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-PCH6NTVB.mjs → react-surface-7MXUUTAL.mjs} +11 -9
- package/dist/lib/node-esm/react-surface-7MXUUTAL.mjs.map +7 -0
- package/dist/lib/node-esm/transcriber-5WSI6DYK.mjs +57 -0
- package/dist/lib/node-esm/transcriber-5WSI6DYK.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -8
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +8 -10
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -183
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/transcriber.d.ts +2 -1
- package/dist/types/src/capabilities/transcriber.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.d.ts +14 -4
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +19 -4
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +27 -0
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -0
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +19 -0
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -0
- package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts +17 -0
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +10 -0
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -0
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +19 -0
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +11 -0
- package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -0
- package/dist/types/src/components/stories/useIsSpeaking.d.ts +3 -0
- package/dist/types/src/components/stories/useIsSpeaking.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioFile.d.ts +1 -1
- package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioTrack.d.ts +1 -1
- package/dist/types/src/hooks/useAudioTrack.d.ts.map +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts +7 -0
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -0
- package/dist/types/src/hooks/useTranscriber.d.ts +1 -1
- 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/model/index.d.ts +2 -0
- package/dist/types/src/model/index.d.ts.map +1 -0
- package/dist/types/src/model/model.d.ts +68 -0
- package/dist/types/src/model/model.d.ts.map +1 -0
- package/dist/types/src/model/model.test.d.ts +2 -0
- package/dist/types/src/model/model.test.d.ts.map +1 -0
- package/dist/types/src/segments-normalization/index.d.ts +4 -0
- package/dist/types/src/segments-normalization/index.d.ts.map +1 -0
- package/dist/types/src/segments-normalization/message-normalizer.d.ts +26 -0
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -0
- package/dist/types/src/segments-normalization/normalization.d.ts +520 -0
- package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -0
- package/dist/types/src/segments-normalization/normalization.test.d.ts +2 -0
- package/dist/types/src/segments-normalization/normalization.test.d.ts.map +1 -0
- package/dist/types/src/segments-normalization/utils.d.ts +3 -0
- package/dist/types/src/segments-normalization/utils.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts +40 -0
- package/dist/types/src/testing/testing.d.ts.map +1 -0
- package/dist/types/src/transcriber/media-stream-recorder.d.ts +8 -5
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.browser.test.d.ts +2 -0
- package/dist/types/src/transcriber/transcriber.browser.test.d.ts.map +1 -0
- package/dist/types/src/transcriber/transcriber.d.ts +6 -2
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcription-manager.d.ts +19 -15
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -20
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +23 -40
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +15 -8
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util/array.d.ts.map +1 -1
- package/dist/types/src/util/get-time-str.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +0 -1
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/monitor-audio-level.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +62 -41
- package/src/TranscriptionPlugin.tsx +13 -18
- package/src/capabilities/capabilities.ts +15 -8
- package/src/capabilities/index.ts +0 -2
- package/src/capabilities/intent-resolver.ts +7 -8
- package/src/capabilities/react-surface.tsx +5 -4
- package/src/capabilities/transcriber.ts +34 -6
- package/src/components/Transcript/Transcript.stories.tsx +201 -43
- package/src/components/Transcript/Transcript.tsx +83 -208
- package/src/components/Transcript/deprecated/OldTranscript.tsx +260 -0
- package/src/components/Transcript/transcript-extension.ts +236 -0
- package/src/components/TranscriptContainer.tsx +11 -6
- package/src/components/stories/FileTranscription.stories.tsx +240 -0
- package/src/components/stories/KeyWordRecognition.stories.tsx +128 -0
- package/src/components/stories/MicrophoneTranscription.stories.tsx +274 -0
- package/src/components/stories/TranscriptionStory.tsx +41 -0
- package/src/components/stories/useIsSpeaking.tsx +40 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useAudioFile.ts +39 -9
- package/src/hooks/useAudioTrack.ts +2 -2
- package/src/hooks/useQueueModelAdapter.ts +65 -0
- package/src/hooks/useTranscriber.ts +4 -2
- package/src/meta.ts +2 -2
- package/src/model/index.ts +5 -0
- package/src/model/model.test.ts +169 -0
- package/src/model/model.ts +229 -0
- package/src/segments-normalization/index.ts +7 -0
- package/src/segments-normalization/message-normalizer.ts +108 -0
- package/src/segments-normalization/normalization.test.ts +142 -0
- package/src/segments-normalization/normalization.ts +103 -0
- package/src/segments-normalization/utils.ts +9 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/testing.ts +216 -0
- package/src/transcriber/media-stream-recorder.ts +14 -7
- package/src/transcriber/{transcriber.test.ts → transcriber.browser.test.ts} +7 -7
- package/src/transcriber/transcriber.ts +33 -20
- package/src/transcriber/transcription-manager.ts +87 -71
- package/src/translations.ts +2 -3
- package/src/types/schema.ts +11 -33
- package/src/types/types.ts +8 -12
- package/src/util/index.ts +0 -1
- package/dist/lib/browser/TranscriptContainer-JQ3HFHLQ.mjs +0 -10
- package/dist/lib/browser/app-graph-builder-VDQOVX7P.mjs +0 -191
- package/dist/lib/browser/app-graph-builder-VDQOVX7P.mjs.map +0 -7
- package/dist/lib/browser/chunk-G4B6CPC2.mjs +0 -253
- package/dist/lib/browser/chunk-G4B6CPC2.mjs.map +0 -7
- package/dist/lib/browser/chunk-GU2BNYKZ.mjs +0 -35
- package/dist/lib/browser/chunk-GU2BNYKZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-OGNXNGJB.mjs +0 -73
- package/dist/lib/browser/chunk-OGNXNGJB.mjs.map +0 -7
- package/dist/lib/browser/chunk-YCZISX63.mjs.map +0 -7
- package/dist/lib/browser/chunk-YEPT334A.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-4R66ZCKT.mjs.map +0 -7
- package/dist/lib/browser/meeting-transcription-state-DLFHQK72.mjs +0 -18
- package/dist/lib/browser/meeting-transcription-state-DLFHQK72.mjs.map +0 -7
- package/dist/lib/browser/react-surface-FQUHU5G7.mjs.map +0 -7
- package/dist/lib/browser/transcriber-LGMIWDYI.mjs +0 -36
- package/dist/lib/browser/transcriber-LGMIWDYI.mjs.map +0 -7
- package/dist/lib/node/TranscriptContainer-QEYTTT2V.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-IFSIVNUR.cjs +0 -200
- package/dist/lib/node/app-graph-builder-IFSIVNUR.cjs.map +0 -7
- package/dist/lib/node/chunk-3KHUSQNW.cjs +0 -55
- package/dist/lib/node/chunk-3KHUSQNW.cjs.map +0 -7
- package/dist/lib/node/chunk-CZMLKKWT.cjs.map +0 -7
- package/dist/lib/node/chunk-FCCJALOT.cjs.map +0 -7
- package/dist/lib/node/chunk-P4VVD6ZO.cjs +0 -95
- package/dist/lib/node/chunk-P4VVD6ZO.cjs.map +0 -7
- package/dist/lib/node/chunk-UOFHT4GZ.cjs +0 -280
- package/dist/lib/node/chunk-UOFHT4GZ.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-WMMCOUEH.cjs.map +0 -7
- package/dist/lib/node/meeting-transcription-state-URIYILEQ.cjs +0 -34
- package/dist/lib/node/meeting-transcription-state-URIYILEQ.cjs.map +0 -7
- package/dist/lib/node/react-surface-WI2MGWCC.cjs.map +0 -7
- package/dist/lib/node/transcriber-QG5WPKX4.cjs +0 -49
- package/dist/lib/node/transcriber-QG5WPKX4.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-UL6XLIZY.mjs +0 -192
- package/dist/lib/node-esm/app-graph-builder-UL6XLIZY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6X7X2UZF.mjs +0 -254
- package/dist/lib/node-esm/chunk-6X7X2UZF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GIO6J6FE.mjs +0 -74
- package/dist/lib/node-esm/chunk-GIO6J6FE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HKATMD34.mjs +0 -37
- package/dist/lib/node-esm/chunk-HKATMD34.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PTZHDZ36.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YQYBLFNI.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-QN2LO5TX.mjs.map +0 -7
- package/dist/lib/node-esm/meeting-transcription-state-ZYVRAW6Y.mjs +0 -19
- package/dist/lib/node-esm/meeting-transcription-state-ZYVRAW6Y.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-PCH6NTVB.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-TMPYZ5L4.mjs +0 -37
- package/dist/lib/node-esm/transcriber-TMPYZ5L4.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -181
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/meeting-transcription-state.d.ts +0 -6
- package/dist/types/src/capabilities/meeting-transcription-state.d.ts.map +0 -1
- package/dist/types/src/components/transcription.stories.d.ts +0 -15
- package/dist/types/src/components/transcription.stories.d.ts.map +0 -1
- package/dist/types/src/transcriber/transcriber.test.d.ts +0 -2
- package/dist/types/src/transcriber/transcriber.test.d.ts.map +0 -1
- package/dist/types/src/util/random-queue-dxn.d.ts +0 -3
- package/dist/types/src/util/random-queue-dxn.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -152
- package/src/capabilities/meeting-transcription-state.ts +0 -16
- package/src/components/transcription.stories.tsx +0 -196
- package/src/util/random-queue-dxn.ts +0 -9
- /package/dist/lib/browser/{TranscriptContainer-JQ3HFHLQ.mjs.map → TranscriptContainer-PFKLKRPQ.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-K7FOYAXO.mjs.map → chunk-IGEKO7ZU.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-LP4FG423.cjs.map → chunk-5J3FBCON.cjs.map} +0 -0
- /package/dist/lib/node-esm/{TranscriptContainer-ZXUCOWGY.mjs.map → TranscriptContainer-DLNRFVTA.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-J4D2RBBH.mjs.map → chunk-KUWWHMOA.mjs.map} +0 -0
|
@@ -1,186 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
id: string;
|
|
3
|
-
position: import("@dxos/util").Position;
|
|
4
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
5
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
6
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
7
|
-
type?: string;
|
|
8
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
9
|
-
}> | Readonly<{
|
|
10
|
-
id: string;
|
|
11
|
-
position: import("@dxos/util").Position;
|
|
12
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
13
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
14
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
15
|
-
type?: string;
|
|
16
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
17
|
-
}>[] | (Readonly<{
|
|
18
|
-
id: string;
|
|
19
|
-
position: import("@dxos/util").Position;
|
|
20
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
21
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
22
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
23
|
-
type?: string;
|
|
24
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
25
|
-
}> | Readonly<{
|
|
26
|
-
id: string;
|
|
27
|
-
position: import("@dxos/util").Position;
|
|
28
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
29
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
30
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
31
|
-
type?: string;
|
|
32
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
33
|
-
}>[] | (Readonly<{
|
|
34
|
-
id: string;
|
|
35
|
-
position: import("@dxos/util").Position;
|
|
36
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
37
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
38
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
39
|
-
type?: string;
|
|
40
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
41
|
-
}> | Readonly<{
|
|
42
|
-
id: string;
|
|
43
|
-
position: import("@dxos/util").Position;
|
|
44
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
45
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
46
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
47
|
-
type?: string;
|
|
48
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
49
|
-
}>[] | (Readonly<{
|
|
50
|
-
id: string;
|
|
51
|
-
position: import("@dxos/util").Position;
|
|
52
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
53
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
54
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
55
|
-
type?: string;
|
|
56
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
57
|
-
}> | Readonly<{
|
|
58
|
-
id: string;
|
|
59
|
-
position: import("@dxos/util").Position;
|
|
60
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
61
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
62
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
63
|
-
type?: string;
|
|
64
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
65
|
-
}>[] | (Readonly<{
|
|
66
|
-
id: string;
|
|
67
|
-
position: import("@dxos/util").Position;
|
|
68
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
69
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
70
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
71
|
-
type?: string;
|
|
72
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
73
|
-
}> | Readonly<{
|
|
74
|
-
id: string;
|
|
75
|
-
position: import("@dxos/util").Position;
|
|
76
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
77
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
78
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
79
|
-
type?: string;
|
|
80
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
81
|
-
}>[] | (Readonly<{
|
|
82
|
-
id: string;
|
|
83
|
-
position: import("@dxos/util").Position;
|
|
84
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
85
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
86
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
87
|
-
type?: string;
|
|
88
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
89
|
-
}> | Readonly<{
|
|
90
|
-
id: string;
|
|
91
|
-
position: import("@dxos/util").Position;
|
|
92
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
93
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
94
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
95
|
-
type?: string;
|
|
96
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
97
|
-
}>[] | (Readonly<{
|
|
98
|
-
id: string;
|
|
99
|
-
position: import("@dxos/util").Position;
|
|
100
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
101
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
102
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
103
|
-
type?: string;
|
|
104
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
105
|
-
}> | Readonly<{
|
|
106
|
-
id: string;
|
|
107
|
-
position: import("@dxos/util").Position;
|
|
108
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
109
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
110
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
111
|
-
type?: string;
|
|
112
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
113
|
-
}>[] | (Readonly<{
|
|
114
|
-
id: string;
|
|
115
|
-
position: import("@dxos/util").Position;
|
|
116
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
117
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
118
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
119
|
-
type?: string;
|
|
120
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
121
|
-
}> | Readonly<{
|
|
122
|
-
id: string;
|
|
123
|
-
position: import("@dxos/util").Position;
|
|
124
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
125
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
126
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
127
|
-
type?: string;
|
|
128
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
129
|
-
}>[] | (Readonly<{
|
|
130
|
-
id: string;
|
|
131
|
-
position: import("@dxos/util").Position;
|
|
132
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
133
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
134
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
135
|
-
type?: string;
|
|
136
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
137
|
-
}> | Readonly<{
|
|
138
|
-
id: string;
|
|
139
|
-
position: import("@dxos/util").Position;
|
|
140
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
141
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
142
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
143
|
-
type?: string;
|
|
144
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
145
|
-
}>[] | (Readonly<{
|
|
146
|
-
id: string;
|
|
147
|
-
position: import("@dxos/util").Position;
|
|
148
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
149
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
150
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
151
|
-
type?: string;
|
|
152
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
153
|
-
}> | Readonly<{
|
|
154
|
-
id: string;
|
|
155
|
-
position: import("@dxos/util").Position;
|
|
156
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
157
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
158
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
159
|
-
type?: string;
|
|
160
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
161
|
-
}>[] | (any[] | Readonly<{
|
|
162
|
-
id: string;
|
|
163
|
-
position: import("@dxos/util").Position;
|
|
164
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
165
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
166
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
167
|
-
type?: string;
|
|
168
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
169
|
-
}> | Readonly<{
|
|
170
|
-
id: string;
|
|
171
|
-
position: import("@dxos/util").Position;
|
|
172
|
-
resolver?: import("@dxos/app-graph").ResolverExtension;
|
|
173
|
-
connector?: import("@dxos/app-graph").ConnectorExtension;
|
|
174
|
-
relation?: import("@dxos/app-graph").Relation;
|
|
175
|
-
type?: string;
|
|
176
|
-
filter?: (node: import("@dxos/app-graph").Node) => boolean;
|
|
177
|
-
}>[])[])[])[])[])[])[])[])[])[])[]> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
178
|
-
export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginsContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
179
|
-
export declare const MeetingTranscriptionState: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/live-object").ReactiveObject<import("@dxos/live-object").ReactiveObject<{
|
|
180
|
-
enabled: boolean;
|
|
181
|
-
transcriptionManager?: import("..").TranscriptionManager;
|
|
182
|
-
}>>> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
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[]>>;
|
|
183
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[]>>;
|
|
184
|
-
export declare const Transcriber: (props?:
|
|
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>>>;
|
|
185
4
|
export * from './capabilities';
|
|
186
5
|
//# 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,
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { Capabilities, type
|
|
2
|
-
declare const _default: (context:
|
|
1
|
+
import { Capabilities, type PluginContext } from '@dxos/app-framework';
|
|
2
|
+
declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<Capabilities.IntentResolver>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=intent-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAA+B,KAAK,
|
|
1
|
+
{"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAA+B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAOpF,SAAS,aAAa;AAAtC,wBAYK"}
|
|
@@ -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;;
|
|
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,7 +1,8 @@
|
|
|
1
|
+
import { type PluginContext } from '@dxos/app-framework';
|
|
1
2
|
import { TranscriptionCapabilities } from './capabilities';
|
|
2
3
|
/**
|
|
3
4
|
* Records audio while user is speaking and transcribes it after user is done speaking.
|
|
4
5
|
*/
|
|
5
|
-
declare const _default: () => import("@dxos/app-framework").Capability<TranscriptionCapabilities.GetTranscriber
|
|
6
|
+
declare const _default: (context: PluginContext) => (import("@dxos/app-framework").Capability<TranscriptionCapabilities.GetTranscriber> | import("@dxos/app-framework").Capability<TranscriptionCapabilities.GetTranscriptionManager>)[];
|
|
6
7
|
export default _default;
|
|
7
8
|
//# sourceMappingURL=transcriber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/transcriber.ts"],"names":[],"mappings":"
|
|
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,10 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
+
import { type Identity } from '@dxos/react-client/halo';
|
|
2
4
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
-
import { type
|
|
5
|
+
import { type DataType } from '@dxos/schema';
|
|
6
|
+
import { type SerializationModel } from '../../model';
|
|
7
|
+
import { type TranscriptType } from '../../types';
|
|
8
|
+
export declare const renderMarkdown: (identities: Identity[]) => (message: DataType.Message, index: number, debug?: boolean) => string[];
|
|
4
9
|
export type TranscriptProps = ThemedClassName<{
|
|
5
|
-
|
|
10
|
+
transcript?: TranscriptType;
|
|
11
|
+
space?: Space;
|
|
12
|
+
model: SerializationModel<DataType.Message>;
|
|
6
13
|
attendableId?: string;
|
|
7
14
|
ignoreAttention?: boolean;
|
|
8
15
|
}>;
|
|
9
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Transcript component implemented using the editor.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Transcript: ({ classNames, transcript: object, space, model, attendableId, ignoreAttention, }: TranscriptProps) => React.JSX.Element;
|
|
10
20
|
//# sourceMappingURL=Transcript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transcript.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.tsx"],"names":[],"mappings":"
|
|
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,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAc,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AAYnF,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAI7C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,cAAc,GACxB,YAAY,QAAQ,EAAE,MACtB,SAAS,QAAQ,CAAC,OAAO,EAAE,OAAO,MAAM,EAAE,eAAa,KAAG,MAAM,EAqBhE,CAAC;AAEJ,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;IAC5C,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAE5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,kFAOxB,eAAe,sBA4BjB,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
|
-
import { type
|
|
3
|
-
import
|
|
4
|
-
|
|
2
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ObjectId } from '@dxos/echo-schema';
|
|
5
|
+
import { DataType } from '@dxos/schema';
|
|
6
|
+
import { type TranscriptProps } from './Transcript';
|
|
7
|
+
type StoryProps = {
|
|
8
|
+
messages?: DataType.Message[];
|
|
9
|
+
} & Pick<TranscriptProps, 'ignoreAttention' | 'attendableId'>;
|
|
10
|
+
/**
|
|
11
|
+
* Queue story mutates queue with model adapter.
|
|
12
|
+
*/
|
|
13
|
+
declare const QueueStory: ({ messages: initialMessages, queueId, onReset, ...props }: StoryProps & {
|
|
14
|
+
queueId: ObjectId;
|
|
15
|
+
onReset: () => void;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
declare const meta: Meta<typeof QueueStory>;
|
|
5
18
|
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof
|
|
19
|
+
type Story = StoryObj<typeof QueueStory>;
|
|
7
20
|
export declare const Default: Story;
|
|
8
21
|
export declare const Empty: Story;
|
|
22
|
+
export declare const WithQueue: Story;
|
|
23
|
+
export declare const WithEntityExtractionQueue: Story;
|
|
9
24
|
//# 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,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Transcript.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAgD,MAAM,OAAO,CAAC;AAIrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAW7C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAIxC,OAAO,EAA8B,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AA6ChF,KAAK,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,eAAe,EAAE,iBAAiB,GAAG,cAAc,CAAC,CAAC;AA0DhH;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,2DAKjB,UAAU,GAAG;IAAE,OAAO,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,sBAiBzD,CAAC;AA0BF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAwBjC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KAMvC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { type FC } from 'react';
|
|
3
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
+
/**
|
|
5
|
+
* Transcription block (from single speaker).
|
|
6
|
+
*/
|
|
7
|
+
declare const TranscriptBlock: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
|
|
8
|
+
id: typeof Schema.String;
|
|
9
|
+
authorName: Schema.optional<typeof Schema.String>;
|
|
10
|
+
authorHue: Schema.optional<typeof Schema.String>;
|
|
11
|
+
segments: Schema.Array$<Schema.Struct<{
|
|
12
|
+
started: typeof Schema.String;
|
|
13
|
+
text: typeof Schema.String;
|
|
14
|
+
}>>;
|
|
15
|
+
}>, {}>;
|
|
16
|
+
type TranscriptBlock = Schema.Schema.Type<typeof TranscriptBlock>;
|
|
17
|
+
export type TranscriptProps = ThemedClassName<{
|
|
18
|
+
blocks?: TranscriptBlock[];
|
|
19
|
+
attendableId?: string;
|
|
20
|
+
ignoreAttention?: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @@deprecated
|
|
24
|
+
*/
|
|
25
|
+
export declare const Transcript: FC<TranscriptProps>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=OldTranscript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OldTranscript.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Transcript/deprecated/OldTranscript.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAc,EAAE,KAAK,EAAE,EAAsE,MAAM,OAAO,CAAC;AAI3G,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAyBlF;;GAEG;AACH,QAAA,MAAM,eAAe;;;;;;;;OAUpB,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAkElE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;IAC5C,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,eAAe,CAqI1C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Extension } from '@codemirror/state';
|
|
2
|
+
import { type RenderCallback } from '@dxos/react-ui-editor';
|
|
3
|
+
import { type DataType } from '@dxos/schema';
|
|
4
|
+
import { type SerializationModel } from '../../model';
|
|
5
|
+
/**
|
|
6
|
+
* Data structure that maps Chunks queue to lines with transcript state.
|
|
7
|
+
*/
|
|
8
|
+
export type TranscriptOptions = {
|
|
9
|
+
model: SerializationModel<DataType.Message>;
|
|
10
|
+
started?: Date;
|
|
11
|
+
renderButton?: RenderCallback<{
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Scrolling transcript with timestamps.
|
|
17
|
+
*/
|
|
18
|
+
export declare const transcript: ({ model, started, renderButton }: TranscriptOptions) => Extension;
|
|
19
|
+
//# sourceMappingURL=transcript-extension.d.ts.map
|
|
@@ -0,0 +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,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,YAAY,CAAC,EAAE,cAAc,CAAC;QAAE,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;CACxD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,kCAAkC,iBAAiB,KAAG,SA0JhF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,cAAc,CAAA;CAAE,CAYnF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
|
|
5
|
+
declare const AudioFile: ({ detectSpeaking, audioUrl, normalizeSentences, transcriberConfig, recorderConfig, audioConstraints, }: {
|
|
6
|
+
detectSpeaking?: boolean;
|
|
7
|
+
normalizeSentences?: boolean;
|
|
8
|
+
audioUrl: string;
|
|
9
|
+
transcriberConfig?: TranscriberParams["config"];
|
|
10
|
+
recorderConfig?: MediaStreamRecorderParams["config"];
|
|
11
|
+
audioConstraints?: MediaTrackConstraints;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
declare const meta: Meta<typeof AudioFile>;
|
|
14
|
+
export default meta;
|
|
15
|
+
export declare const Default: StoryObj<typeof AudioFile>;
|
|
16
|
+
export declare const WithSentenceNormalization: StoryObj<typeof AudioFile>;
|
|
17
|
+
//# sourceMappingURL=FileTranscription.stories.d.ts.map
|
|
@@ -0,0 +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,kBAAkB,CAAC;AAC5D,OAAO,KAA4D,MAAM,OAAO,CAAC;AA4BjF,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,sBAyHA,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
declare const SpeechRecognition: ({ keywords }: {
|
|
5
|
+
keywords: string[];
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
declare const meta: Meta<typeof SpeechRecognition>;
|
|
8
|
+
export default meta;
|
|
9
|
+
export declare const SpeechRecognitionAPI: StoryObj<typeof SpeechRecognition>;
|
|
10
|
+
//# sourceMappingURL=KeyWordRecognition.stories.d.ts.map
|
|
@@ -0,0 +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,kBAAkB,CAAC;AAC5D,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type Meta, type StoryObj } from '@storybook/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { type MediaStreamRecorderParams, type TranscriberParams } from '../../transcriber';
|
|
5
|
+
type StoryProps = {
|
|
6
|
+
detectSpeaking?: boolean;
|
|
7
|
+
transcriberConfig: TranscriberParams['config'];
|
|
8
|
+
recorderConfig: MediaStreamRecorderParams['config'];
|
|
9
|
+
audioConstraints?: MediaTrackConstraints;
|
|
10
|
+
entityExtraction: 'none' | 'ner' | 'llm';
|
|
11
|
+
};
|
|
12
|
+
declare const DefaultStory: ({ detectSpeaking, entityExtraction, transcriberConfig, recorderConfig, audioConstraints, }: StoryProps) => React.JSX.Element;
|
|
13
|
+
declare const meta: Meta<typeof DefaultStory>;
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof DefaultStory>;
|
|
16
|
+
export declare const Default: Story;
|
|
17
|
+
export declare const EntityExtraction: Story;
|
|
18
|
+
export declare const SpeechDetection: Story;
|
|
19
|
+
//# sourceMappingURL=MicrophoneTranscription.stories.d.ts.map
|
|
@@ -0,0 +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,kBAAkB,CAAC;AAC5D,OAAO,KAAoD,MAAM,OAAO,CAAC;AAkCzE,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,sBAqHZ,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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type Dispatch, type FC, type RefObject, type SetStateAction } from 'react';
|
|
3
|
+
import { type DataType } from '@dxos/schema';
|
|
4
|
+
import { type SerializationModel } from '../../model';
|
|
5
|
+
export declare const TranscriptionStory: FC<{
|
|
6
|
+
model: SerializationModel<DataType.Message>;
|
|
7
|
+
running: boolean;
|
|
8
|
+
onRunningChange: Dispatch<SetStateAction<boolean>>;
|
|
9
|
+
audioRef?: RefObject<HTMLAudioElement>;
|
|
10
|
+
}>;
|
|
11
|
+
//# sourceMappingURL=TranscriptionStory.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsSpeaking.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/useIsSpeaking.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAQrB,eAAO,MAAM,aAAa,GAAI,QAAQ,gBAAgB,YA2BrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
@@ -3,5 +3,5 @@ export type UseAudioState = {
|
|
|
3
3
|
stream?: MediaStream;
|
|
4
4
|
track?: MediaStreamTrack;
|
|
5
5
|
};
|
|
6
|
-
export declare const useAudioFile: (audioUrl: string) => UseAudioState;
|
|
6
|
+
export declare const useAudioFile: (audioUrl: string, constraints?: MediaTrackConstraints) => UseAudioState;
|
|
7
7
|
//# sourceMappingURL=useAudioFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAudioFile.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioFile.ts"],"names":[],"mappings":"
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
*
|
|
3
3
|
*/
|
|
4
|
-
export declare const useAudioTrack: (active?: boolean) => MediaStreamTrack | undefined;
|
|
4
|
+
export declare const useAudioTrack: (active?: boolean, constraints?: MediaTrackConstraints) => MediaStreamTrack | undefined;
|
|
5
5
|
//# sourceMappingURL=useAudioTrack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioTrack.ts"],"names":[],"mappings":"AAMA;;GAEG;AAEH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"useAudioTrack.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioTrack.ts"],"names":[],"mappings":"AAMA;;GAEG;AAEH,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,EAAE,cAAc,qBAAqB,KAAG,gBAAgB,GAAG,SAwBxG,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Queue } from '@dxos/react-client/echo';
|
|
2
|
+
import { type Chunk, type ChunkRenderer, SerializationModel } from '../model';
|
|
3
|
+
/**
|
|
4
|
+
* Model adapter for a queue.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useQueueModelAdapter: <T extends Chunk>(renderer: ChunkRenderer<T>, queue: Queue<T> | undefined, initialChunks?: T[]) => SerializationModel<T>;
|
|
7
|
+
//# sourceMappingURL=useQueueModelAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useQueueModelAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueueModelAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,KAAK,EAClD,UAAU,aAAa,CAAC,CAAC,CAAC,EAC1B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,EAC3B,gBAAe,CAAC,EAAO,KACtB,kBAAkB,CAAC,CAAC,CA+CtB,CAAC"}
|
|
@@ -3,5 +3,5 @@ import { type Transcriber } from '../transcriber';
|
|
|
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, onSegments, }: Partial<TranscriptionCapabilities.GetTranscriberProps>) => Transcriber | undefined;
|
|
6
|
+
export declare const useTranscriber: ({ audioStreamTrack, onSegments, transcriberConfig, recorderConfig, }: 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,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,cAAc,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"AAeA,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,
|
|
1
|
+
{"version":3,"file":"useVoiceInput.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useVoiceInput.ts"],"names":[],"mappings":"AAeA,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/model/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Text } from '@codemirror/state';
|
|
2
|
+
import { type EditorView } from '@codemirror/view';
|
|
3
|
+
import { Event } from '@dxos/async';
|
|
4
|
+
export type Chunk = {
|
|
5
|
+
id: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Covert block to a set of markdown lines.
|
|
9
|
+
*/
|
|
10
|
+
export type ChunkRenderer<T extends Chunk> = (chunk: T, index: number, debug?: boolean) => string[];
|
|
11
|
+
/**
|
|
12
|
+
* Abstract representation of the document model.
|
|
13
|
+
*/
|
|
14
|
+
export interface ChunkDocument {
|
|
15
|
+
lineCount(): number;
|
|
16
|
+
replaceLines(from: number, remove: number, insert: string[]): void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Codemirror document adapter.
|
|
20
|
+
*/
|
|
21
|
+
export declare class DocumentAdapter implements ChunkDocument {
|
|
22
|
+
private readonly _view;
|
|
23
|
+
constructor(_view: EditorView);
|
|
24
|
+
/** The document must always have at least one line. */
|
|
25
|
+
lineCount(): number;
|
|
26
|
+
replaceLines(from: number, remove: number, insert: string[]): void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Each Chunk can be converted into a set of lines.
|
|
30
|
+
* Chunks can be added, updated or deleted from the Queue.
|
|
31
|
+
* A Document is an immutable projection that represents a flat list of lines corresponding to the Queue.
|
|
32
|
+
*
|
|
33
|
+
* Ideally we would implement a custom virtual Text model for the View, but this currently isn't possible in Codemirror.
|
|
34
|
+
* Instead this model tracks changes and syncs them with the ChunkDocument.
|
|
35
|
+
*/
|
|
36
|
+
export declare class SerializationModel<T extends Chunk> {
|
|
37
|
+
private readonly _renderer;
|
|
38
|
+
/** Ordered set of chunks. */
|
|
39
|
+
private readonly _chunks;
|
|
40
|
+
/** Map of chunk IDs to their current line counts. */
|
|
41
|
+
private readonly _chunkLineCounts;
|
|
42
|
+
/** Map of line numbers to chunk IDs. */
|
|
43
|
+
private readonly _lineToChunk;
|
|
44
|
+
/** Track chunk changes since last sync. */
|
|
45
|
+
private readonly _changes;
|
|
46
|
+
/** Emits when the document is updated. */
|
|
47
|
+
readonly update: Event<void>;
|
|
48
|
+
constructor(_renderer: ChunkRenderer<T>, initialChunks?: T[]);
|
|
49
|
+
toJSON(): {
|
|
50
|
+
chunks: number;
|
|
51
|
+
changes: number;
|
|
52
|
+
};
|
|
53
|
+
get doc(): Text;
|
|
54
|
+
get chunks(): T[];
|
|
55
|
+
/**
|
|
56
|
+
* Get the block ID at the given line number.
|
|
57
|
+
*/
|
|
58
|
+
getChunkAtLine(line: number): T | undefined;
|
|
59
|
+
reset(): this;
|
|
60
|
+
appendChunk(chunk: T): this;
|
|
61
|
+
updateChunk(chunk: T): this;
|
|
62
|
+
deleteBlock(id: string): this;
|
|
63
|
+
/**
|
|
64
|
+
* Syncs the tracked changes with the ChunkDocument.
|
|
65
|
+
*/
|
|
66
|
+
sync(document: ChunkDocument): this;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../src/model/model.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,MAAM,MAAM,KAAK,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,MAAM,EAAE,CAAC;AAEpG;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,IAAI,MAAM,CAAC;IACpB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACpE;AAED;;GAEG;AACH,qBAAa,eAAgB,YAAW,aAAa;IACvC,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,UAAU;IAE9C,uDAAuD;IACvD,SAAS,IAAI,MAAM;IAInB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;CAiBnE;AAmBD;;;;;;;GAOG;AACH,qBAAa,kBAAkB,CAAC,CAAC,SAAS,KAAK;IAiB3C,OAAO,CAAC,QAAQ,CAAC,SAAS;IAhB5B,6BAA6B;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAW;IAEnC,qDAAqD;IACrD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAA6B;IAE9D,wCAAwC;IACxC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IAErD,2CAA2C;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEtD,0CAA0C;IAC1C,SAAgB,MAAM,cAAqB;gBAGxB,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAC5C,aAAa,GAAE,CAAC,EAAO;IAOzB,MAAM,IAAI;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAO7C,IAAI,GAAG,SAEN;IAED,IAAI,MAAM,QAET;IAED;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;IAI3C,KAAK,IAAI,IAAI;IAQb,WAAW,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAQ3B,WAAW,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAS3B,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAS7B;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;CA+DpC"}
|