@arbidocs/react 0.5.67 → 0.5.69

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.
@@ -2113,31 +2113,20 @@ function postRecordingDocsToThread(arbi, params) {
2113
2113
  }
2114
2114
  async function saveRecordingFilesToThread(arbi, params) {
2115
2115
  const workspaceId = params.workspaceExtId;
2116
- const isOpen = arbi.hasWorkspace && arbi.getWorkspaceId() === workspaceId;
2117
- let result;
2118
- if (isOpen) {
2119
- const workspaceKey = await arbi.workspaces.key(workspaceId);
2120
- params.onUploading?.();
2121
- result = await arbi.documents.uploadDirect(
2122
- workspaceId,
2123
- workspaceKey,
2124
- await Promise.all(
2125
- params.files.map(async (file) => ({
2126
- name: file.name,
2127
- data: new Uint8Array(await file.arrayBuffer()),
2128
- contentType: file.type || documents.mimeFromName(file.name)
2129
- }))
2130
- ),
2131
- { shared: true }
2132
- );
2133
- } else {
2134
- await arbi.workspaces.open(workspaceId);
2135
- params.onUploading?.();
2136
- result = await arbi.documents.upload(params.files, {
2137
- shared: true,
2138
- workspaceExtId: workspaceId
2139
- });
2140
- }
2116
+ const workspaceKey = await arbi.workspaces.key(workspaceId).catch(() => null);
2117
+ params.onUploading?.();
2118
+ const result = workspaceKey ? await arbi.documents.uploadDirect(
2119
+ workspaceId,
2120
+ workspaceKey,
2121
+ await Promise.all(
2122
+ params.files.map(async (file) => ({
2123
+ name: file.name,
2124
+ data: new Uint8Array(await file.arrayBuffer()),
2125
+ contentType: file.type || documents.mimeFromName(file.name)
2126
+ }))
2127
+ ),
2128
+ { shared: true }
2129
+ ) : await arbi.documents.upload(params.files, { shared: true, workspaceExtId: workspaceId });
2141
2130
  const docExtIds = result.doc_ext_ids ?? [];
2142
2131
  const skipped = result.skipped ?? [];
2143
2132
  if (!docExtIds.length) {
@@ -2482,5 +2471,5 @@ function useOpenCallMeetingChat() {
2482
2471
  }
2483
2472
 
2484
2473
  export { AUDIENCE_CHOICES, CALL_CAPTION_TOPIC, CALL_CHAT_MAX_CHARS, CALL_CHAT_TOPIC, CALL_MODERATION_TOPIC, CALL_RECORDING_TOPIC, CALL_TRANSCRIPTION_TOPIC, CALL_WEBINAR_TOPIC, CAPTION_MAX_CHARS, COMPOSITE_AUDIO_BITS_PER_SECOND, COMPOSITE_VIDEO_BITS_PER_SECOND, DEFAULT_JOIN_CHOICES, EMPTY_CALL_SESSION, EXPORT_SAMPLE_RATE, HISTORY_LIMIT, LIVE_SEGMENTER, MAX_AVATAR_FILE_BYTES, MUTED_DEDUPE_MS, PLAYBACK_LOOKAHEAD_MS, READ_ONLY_MEETING_TEXT, RECORDING_CHUNK_MS, RECORDING_SEGMENTER, SEGMENT_FRAME_MS, SEGMENT_ID_PATTERN, SEGMENT_PRE_ROLL_MS, SHORT_PIECE_MERGE_GAP_MS, SPEAKER_AUDIO_BITS_PER_SECOND, TrackUploader, UPLOAD_ATTEMPTS, UPLOAD_BACKOFF_MS, acceptRing, addConversationToList, appendToThread, applyAgentDmStatus, applyCallEvent, applyChatEvent, applyChatMessage, applyChatRead, applyChatUpdated, arbiAccountClient, buildMeetingChatBody, cachedChat, cachedChats, callLink, callMemberKeys, callSession, chatByExtId, chatHasLiveCall, chatLiveCallId, chatTranscriptRef, clearMeetingChatCache, clearTrackUploaders, clockTime, compositeFiles, compositeTrack, conversationKeyForCall, createLocalFeatureStore, createMutedNotifier, createTrackCutter, cutAtPauses, declineRing, decodeCallChatPacket, decodeCaptionPacket, decodeMono16k, decryptPart, deleteChatMessage, dropFromThread, encodeCallChatPacket, encodeCaptionPacket, encodeWav, encryptPart, ensureMeetingChat, entitlementRefusal, extensionFor, fetchPart, fileSafe, findConversation, floatToWav, formatTranscriptMarkdown, getOpenChat, hasRecordingTranscript, invalidateCall, invalidateConversationDetails, invalidateConversationLists, isConversationListKey, isConversationShared, isRecordingOver, isRecordingSegmentId, isRetryable, isWorkspaceGuestOf, joinFromPreJoin, knownMeetingChat, loadMeetingHistory, markRejoining, meetingChatRefFrom, meetingRefForCall, mergeChatLines, mutedNoticeFromEvent, mutedNoticeFromPacket, mutedNoticeText, myChatId, newPacketId, newSegmentId, newTrackKey, nextSeqAfter, onCallEvent, openCall, openQuestion, openRecording, parseWebinarPacket, partKey, partOffsetMs, partsDue, patchConversation, patchConversationList, persistMeetingMessage, persistTranscriptSegment, playheadAt, postRecordingDocsToThread, postTranscriptToThread, readLocalFeature, recordingFiles, recordingWindowsOf, rejoinAsAudience, removeChat, removeConversationFromLists, resetCallSession, resolveMeetingChat, saveRecordingFilesToThread, schedulePart, sealQuestionText, serverCallsExperimental, setOpenChat, sortTranscriptMessages, sortedParts, speakerTracks, speakerWav, splitIntoFiles, standalone, startChatCall, startContactsCall, startDmCall, startThreadCall, startsMediaFile, storeTranscriptSegment, stripSpeakerPrefix, supersedeLiveTranscript, supersededTranscriptLines, threadHasLiveCall, threadLiveCallId, threadTranscriptLines, threadTranscriptRef, threadTranscriptText, timelineDurationMs, timelineOf, toProfileView, trackUploaderFor, transcribeRecording, transcriptPersistRole, transcriptSegmentOf, unwrapTrackKey, upsertChat, useAccountClient, useAvatarCrop, useCall, useCallInviteLinks, useCallRecording, useCallRecordings, useCallSession, useCallTranscriptionAvailable, useCallsConfig, useCallsEnabled, useCanHostCalls, useEntitlements, useFeature, useFeatureSwitch, useIsEntitled, useMeetingReadOnly, useNameEditor, useOpenCallMeetingChat, useProfile, useRecordingActions, useRecordingWindows, useRevokeCallInviteLink, useSaveToThread, useServerCallsEnabled, useServerCallsExperimental, useUpdateProfile, useUpdateUserSettings, useUserSettings, wrapTrackKey, writeSamples };
2485
- //# sourceMappingURL=chunk-MMINI57C.js.map
2486
- //# sourceMappingURL=chunk-MMINI57C.js.map
2474
+ //# sourceMappingURL=chunk-M3SB5TZB.js.map
2475
+ //# sourceMappingURL=chunk-M3SB5TZB.js.map