@vidtreo/recorder-vue 1.6.12 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +249 -20
  2. package/dist/components/MobileRecordingPrompt.vue.d.ts +8 -0
  3. package/dist/components/MobileRecordingPromptToggle.vue.d.ts +12 -0
  4. package/dist/components/MobileWebRecorderUIContent.vue.d.ts +7 -0
  5. package/dist/components/NativeCameraUIContent.vue.d.ts +7 -0
  6. package/dist/components/StandardRecorder.vue.d.ts +5 -10
  7. package/dist/components/StandardRecorderContent.vue.d.ts +24 -0
  8. package/dist/components/VidtreoRecorder.vue.d.ts +5 -10
  9. package/dist/components/ui/PermissionFlowSteps.vue.d.ts +0 -1
  10. package/dist/components/ui/PreviewContent.vue.d.ts +4 -2
  11. package/dist/components/ui/RecordingControlsButtons.vue.d.ts +3 -2
  12. package/dist/components/ui/TranscodingProgress.vue.d.ts +1 -0
  13. package/dist/components/ui/UploadErrorOverlay.vue.d.ts +13 -0
  14. package/dist/components/ui/UploadProgress.vue.d.ts +1 -0
  15. package/dist/components/ui/UploadProgressOverlay.vue.d.ts +7 -0
  16. package/dist/composables/use-credential-error.d.ts +9 -0
  17. package/dist/composables/use-native-camera.d.ts +4 -1
  18. package/dist/composables/use-recorder-translations.d.ts +2 -0
  19. package/dist/composables/use-vidtreo-recorder.d.ts +6 -0
  20. package/dist/i18n/translations.d.ts +31 -1
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.js +1 -1
  23. package/dist/recorder-vue.css +1 -1
  24. package/dist/types/index.d.ts +23 -15
  25. package/dist/utils/device-error-overlay-mapper.d.ts +27 -0
  26. package/dist/utils/env-utils.d.ts +2 -1
  27. package/dist/utils/mobile-recording-prompt.d.ts +14 -0
  28. package/dist/utils/progress-overlay.d.ts +31 -0
  29. package/dist/utils/upload-error-message.d.ts +13 -0
  30. package/dist/utils/upload-label.d.ts +11 -0
  31. package/package.json +3 -2
  32. package/dist/services/upload-service-wrapper.d.ts +0 -12
@@ -1,12 +1,15 @@
1
- import { type NativeCameraFile } from "@vidtreo/recorder";
1
+ import { type NativeCameraFile, type UploadErrorCode, type UploadProgressPhase } from "@vidtreo/recorder";
2
2
  import type { UseVidtreoRecorderConfig } from "../types";
3
3
  export type NativeCameraState = {
4
4
  file: NativeCameraFile | null;
5
5
  transcodingProgress: number | null;
6
6
  uploadProgress: number | null;
7
+ uploadPhase: UploadProgressPhase | null;
8
+ uploadRetryAttempt: number | null;
7
9
  isTranscoding: boolean;
8
10
  isConfigLoading: boolean;
9
11
  error: string | null;
12
+ uploadErrorCode: UploadErrorCode | null;
10
13
  transcodedBlob: Blob | null;
11
14
  };
12
15
  export type NativeCameraActions = {
@@ -11,10 +11,12 @@ export type PreviewTranslations = {
11
11
  cameraInUse: string;
12
12
  cameraNotFound: string;
13
13
  cameraPermissionDenied: string;
14
+ cameraTimeout: string;
14
15
  failedToStartCamera: string;
15
16
  audioInUse: string;
16
17
  audioNotFound: string;
17
18
  audioPermissionDenied: string;
19
+ audioTimeout: string;
18
20
  failedToStartAudio: string;
19
21
  switchingDevice: string;
20
22
  recordingStartsIn: string;
@@ -1,2 +1,8 @@
1
1
  import type { UseVidtreoRecorderConfig, UseVidtreoRecorderReturn } from "../types";
2
+ export declare function resolveRecorderErrorCode(code: unknown): string | null;
3
+ export declare function isRecordingLifecycleBusy(options: {
4
+ isFinalizingRecording: boolean;
5
+ transcodingProgress: number | null;
6
+ uploadProgress: number | null;
7
+ }): boolean;
2
8
  export declare function useVidtreoRecorder(config: UseVidtreoRecorderConfig): UseVidtreoRecorderReturn;
@@ -9,10 +9,12 @@ export type TranslationKeys = {
9
9
  cameraInUse: string;
10
10
  cameraNotFound: string;
11
11
  cameraPermissionDenied: string;
12
+ cameraTimeout: string;
12
13
  failedToStartCamera: string;
13
14
  audioInUse: string;
14
15
  audioNotFound: string;
15
16
  audioPermissionDenied: string;
17
+ audioTimeout: string;
16
18
  failedToStartAudio: string;
17
19
  audioErrorTitle: string;
18
20
  audioErrorMessage: string;
@@ -41,6 +43,25 @@ export type TranslationKeys = {
41
43
  cameraErrorMessage: string;
42
44
  browserErrorTitle: string;
43
45
  browserErrorMessage: string;
46
+ recordingCodecUnsupportedTitle: string;
47
+ recordingCodecUnsupportedMessage: string;
48
+ recordingMediaEmptyTitle: string;
49
+ recordingMediaEmptyMessage: string;
50
+ recordingMediaErrorTitle: string;
51
+ recordingMediaErrorMessage: string;
52
+ recordingServerTranscodeFallbackTitle: string;
53
+ recordingServerTranscodeFallbackMessage: string;
54
+ recordingTrackEndedTitle: string;
55
+ recordingTrackEndedMessage: string;
56
+ recordingFinalizeTimeoutTitle: string;
57
+ recordingFinalizeTimeoutMessage: string;
58
+ recordingStateRaceTitle: string;
59
+ recordingStateRaceMessage: string;
60
+ recordingNoFramesTitle: string;
61
+ recordingNoFramesMessage: string;
62
+ recordingUnsupportedTitle: string;
63
+ recordingUnsupportedMessage: string;
64
+ recordingPipelineRetry: string;
44
65
  genericErrorTitle: string;
45
66
  genericErrorMessage: string;
46
67
  errorRetry: string;
@@ -61,12 +82,20 @@ export type TranslationKeys = {
61
82
  microphoneConnecting: string;
62
83
  minimumRecordingTimeNotReached: string;
63
84
  uploading: string;
85
+ finalizing: string;
86
+ retryingUpload: string;
87
+ uploadInsufficientCredits: string;
88
+ uploadInsufficientCreditsTitle: string;
89
+ uploadErrorClose: string;
90
+ finishing: string;
64
91
  userInAnotherTab: string;
65
92
  download: string;
66
93
  nativeCameraSelectVideo: string;
67
94
  nativeCameraRecordVideo: string;
68
95
  nativeCameraProcessing: string;
69
96
  nativeCameraConfigLoading: string;
97
+ nativeCameraConfigLoadError: string;
98
+ nativeCameraPreviewAlt: string;
70
99
  errorTitle: string;
71
100
  errorApiKeyRequired: string;
72
101
  errorGeneric: string;
@@ -74,6 +103,8 @@ export type TranslationKeys = {
74
103
  mobileOpenCameraTitle: string;
75
104
  mobileOpenCameraDescription: string;
76
105
  mobileCloseCamera: string;
106
+ mobileHideRecordingPrompt: string;
107
+ mobileShowRecordingPrompt: string;
77
108
  mobilePermissionDenied: string;
78
109
  mobilePermissionDeniedDescription: string;
79
110
  permissionFlowTitle: string;
@@ -90,7 +121,6 @@ export type TranslationKeys = {
90
121
  permissionFlowRetry: string;
91
122
  permissionFlowRecoveryTitle: string;
92
123
  permissionFlowRecoveryInstructions: string;
93
- permissionFlowRecoveryGuideHint: string;
94
124
  permissionFlowConnecting: string;
95
125
  };
96
126
  export declare const defaultTranslations: Record<string, TranslationKeys>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import "@vidtreo/ui-styles/recorder.css";
2
+ export { CONFIG_ERROR_CREDENTIAL_CONFLICT, getUploadErrorCode, isCredentialConflictError, UPLOAD_ERROR_INSUFFICIENT_CREDITS, } from "@vidtreo/recorder";
2
3
  export { default as MobileWebRecorderUI } from "./components/MobileWebRecorderUI.vue";
3
4
  export { default as NativeCameraUI } from "./components/NativeCameraUI.vue";
4
5
  export { default as StandardRecorder } from "./components/StandardRecorder.vue";
@@ -13,4 +14,4 @@ export type { ButtonTranslations, PreviewTranslations, RecorderTranslations, Set
13
14
  export { useRecorderTranslations } from "./composables/use-recorder-translations";
14
15
  export { useVidtreoRecorder } from "./composables/use-vidtreo-recorder";
15
16
  export { defaultTranslations, getTranslations, type PartialTranslations, type TranslationKeys, } from "./i18n/translations";
16
- export type { AudioWarning, MobileMode, RecordingPrompt, RecordingPromptCountdown, RecordingPromptCountdownPlacement, RecordingState, RecordingStopResult, SourceType, UseVidtreoRecorderConfig, UseVidtreoRecorderReturn, VidtreoRecorderActions, VidtreoRecorderEmits, VidtreoRecorderProps, VidtreoRecorderState, } from "./types";
17
+ export type { AccessTokenProvider, AudioWarning, MobileMode, RecordingPrompt, RecordingPromptCountdown, RecordingPromptCountdownPlacement, RecordingState, RecordingStopResult, RecordingUploadResult, SourceType, UploadErrorCode, UploadProgressPhase, UseVidtreoRecorderConfig, UseVidtreoRecorderReturn, VidtreoRecorderActions, VidtreoRecorderEmits, VidtreoRecorderProps, VidtreoRecorderState, } from "./types";