@arbidocs/react 0.4.85 → 0.4.86
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/README.md +1 -1
- package/dist/document-tools/index.cjs +2 -2
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.js +3 -3
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -22
- package/dist/index.d.ts +15 -22
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -3605,28 +3605,21 @@ interface EmailChange {
|
|
|
3605
3605
|
declare function useEmailChange({ requestCode, confirm, cooldownSeconds: cooldownLength, }: UseEmailChangeOptions): EmailChange;
|
|
3606
3606
|
|
|
3607
3607
|
/**
|
|
3608
|
-
* Password change:
|
|
3608
|
+
* Password change: a new master password for the same account identity.
|
|
3609
3609
|
*
|
|
3610
|
-
*
|
|
3611
|
-
*
|
|
3612
|
-
*
|
|
3613
|
-
*
|
|
3614
|
-
* `ArbiProvider` binds the same dialog.
|
|
3610
|
+
* The password only wraps the identity keypair, so a change is one request that re-encrypts nothing
|
|
3611
|
+
* and leaves the recovery key as it was (see `Arbi.account.changePassword`). `usePasswordChange` is
|
|
3612
|
+
* the SDK-bound mutation. `usePasswordChangeForm` is the controller behind `PasswordChangeDialog`:
|
|
3613
|
+
* fields, validation, error wording and the success state. It takes the submit as a function, so an
|
|
3614
|
+
* app without an `ArbiProvider` binds the same dialog.
|
|
3615
3615
|
*/
|
|
3616
|
-
/** What a finished password change reports. */
|
|
3617
|
-
interface PasswordChangeResult {
|
|
3618
|
-
/** The new Ed25519 signing key: its recovery file is what the user should save now. */
|
|
3619
|
-
newSigningPrivateKey: Uint8Array;
|
|
3620
|
-
workspacesUpdated: number;
|
|
3621
|
-
messagesReEncrypted: number;
|
|
3622
|
-
}
|
|
3623
3616
|
interface PasswordChangeVars {
|
|
3624
3617
|
newPassword: string;
|
|
3625
3618
|
/** Omit in recovery mode (after signing in with a recovery key). */
|
|
3626
3619
|
currentPassword?: string;
|
|
3627
3620
|
}
|
|
3628
3621
|
/** Change (or, in recovery mode, set) the master password. Needs an `ArbiProvider`. */
|
|
3629
|
-
declare function usePasswordChange(): _tanstack_react_query.UseMutationResult<
|
|
3622
|
+
declare function usePasswordChange(): _tanstack_react_query.UseMutationResult<void, Error, PasswordChangeVars, unknown>;
|
|
3630
3623
|
interface PasswordChangeFormMessages {
|
|
3631
3624
|
required: string;
|
|
3632
3625
|
mismatch: string;
|
|
@@ -3635,20 +3628,20 @@ interface PasswordChangeFormMessages {
|
|
|
3635
3628
|
wrongRecoveryKey: string;
|
|
3636
3629
|
}
|
|
3637
3630
|
declare const DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES: PasswordChangeFormMessages;
|
|
3638
|
-
interface UsePasswordChangeFormOptions
|
|
3631
|
+
interface UsePasswordChangeFormOptions {
|
|
3639
3632
|
/** After recovery with a key: no current password is asked for. */
|
|
3640
3633
|
recoveryMode?: boolean;
|
|
3641
3634
|
/** The host's password policy: the first unmet requirement, or `null` when the password is fine. */
|
|
3642
3635
|
getUnmetRequirement: (password: string) => string | null;
|
|
3643
|
-
/** Do the change.
|
|
3644
|
-
submit: (vars: PasswordChangeVars) => Promise<
|
|
3636
|
+
/** Do the change. */
|
|
3637
|
+
submit: (vars: PasswordChangeVars) => Promise<void>;
|
|
3645
3638
|
/** The dialog should close (cancel, or done). */
|
|
3646
3639
|
onClose: () => void;
|
|
3647
3640
|
/** Recovery finished: continue into the app. Recovery closes itself, with no success screen. */
|
|
3648
3641
|
onRecoveryComplete?: () => void;
|
|
3649
3642
|
messages?: Partial<PasswordChangeFormMessages>;
|
|
3650
3643
|
}
|
|
3651
|
-
interface PasswordChangeForm
|
|
3644
|
+
interface PasswordChangeForm {
|
|
3652
3645
|
currentPassword: string;
|
|
3653
3646
|
onCurrentPasswordChange: (value: string) => void;
|
|
3654
3647
|
newPassword: string;
|
|
@@ -3659,15 +3652,15 @@ interface PasswordChangeForm<R> {
|
|
|
3659
3652
|
isProcessing: boolean;
|
|
3660
3653
|
isSubmitDisabled: boolean;
|
|
3661
3654
|
onSubmit: () => void;
|
|
3662
|
-
/** The
|
|
3663
|
-
|
|
3655
|
+
/** The change went through (normal mode): the dialog shows its success state. */
|
|
3656
|
+
isChanged: boolean;
|
|
3664
3657
|
/** Cancel and clear the form. */
|
|
3665
3658
|
onCancel: () => void;
|
|
3666
3659
|
/** Leave the success screen. */
|
|
3667
3660
|
onDone: () => void;
|
|
3668
3661
|
}
|
|
3669
3662
|
/** The state machine of `PasswordChangeDialog`; spread it into the dialog's props. */
|
|
3670
|
-
declare function usePasswordChangeForm
|
|
3663
|
+
declare function usePasswordChangeForm({ recoveryMode, getUnmetRequirement, submit, onClose, onRecoveryComplete, messages, }: UsePasswordChangeFormOptions): PasswordChangeForm;
|
|
3671
3664
|
|
|
3672
3665
|
/**
|
|
3673
3666
|
* Notification preferences: which email categories the user wants (the `email_notifications`
|
|
@@ -6590,4 +6583,4 @@ interface ArbiUiState {
|
|
|
6590
6583
|
}
|
|
6591
6584
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
6592
6585
|
|
|
6593
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DEFAULT_USD_PER_CREDIT, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FormatCreditsOptions, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type
|
|
6586
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DEFAULT_USD_PER_CREDIT, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FormatCreditsOptions, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, XlsIcon, accountPath, aliasTakenMessage, annotateThread, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createMailClient, creditsToUsd, cropImage, dayKey, defaultMailAlias, describeActivity, fileAttachment, formatCredits, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, resolveActiveWorkspace, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useActOnStep, useActivity, useAddContacts, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateWork, useCreateWorkflow, useCurrentSessionId, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useLogoutAllSessions, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRemoveContacts, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceDocs, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
|
package/dist/index.d.ts
CHANGED
|
@@ -3605,28 +3605,21 @@ interface EmailChange {
|
|
|
3605
3605
|
declare function useEmailChange({ requestCode, confirm, cooldownSeconds: cooldownLength, }: UseEmailChangeOptions): EmailChange;
|
|
3606
3606
|
|
|
3607
3607
|
/**
|
|
3608
|
-
* Password change:
|
|
3608
|
+
* Password change: a new master password for the same account identity.
|
|
3609
3609
|
*
|
|
3610
|
-
*
|
|
3611
|
-
*
|
|
3612
|
-
*
|
|
3613
|
-
*
|
|
3614
|
-
* `ArbiProvider` binds the same dialog.
|
|
3610
|
+
* The password only wraps the identity keypair, so a change is one request that re-encrypts nothing
|
|
3611
|
+
* and leaves the recovery key as it was (see `Arbi.account.changePassword`). `usePasswordChange` is
|
|
3612
|
+
* the SDK-bound mutation. `usePasswordChangeForm` is the controller behind `PasswordChangeDialog`:
|
|
3613
|
+
* fields, validation, error wording and the success state. It takes the submit as a function, so an
|
|
3614
|
+
* app without an `ArbiProvider` binds the same dialog.
|
|
3615
3615
|
*/
|
|
3616
|
-
/** What a finished password change reports. */
|
|
3617
|
-
interface PasswordChangeResult {
|
|
3618
|
-
/** The new Ed25519 signing key: its recovery file is what the user should save now. */
|
|
3619
|
-
newSigningPrivateKey: Uint8Array;
|
|
3620
|
-
workspacesUpdated: number;
|
|
3621
|
-
messagesReEncrypted: number;
|
|
3622
|
-
}
|
|
3623
3616
|
interface PasswordChangeVars {
|
|
3624
3617
|
newPassword: string;
|
|
3625
3618
|
/** Omit in recovery mode (after signing in with a recovery key). */
|
|
3626
3619
|
currentPassword?: string;
|
|
3627
3620
|
}
|
|
3628
3621
|
/** Change (or, in recovery mode, set) the master password. Needs an `ArbiProvider`. */
|
|
3629
|
-
declare function usePasswordChange(): _tanstack_react_query.UseMutationResult<
|
|
3622
|
+
declare function usePasswordChange(): _tanstack_react_query.UseMutationResult<void, Error, PasswordChangeVars, unknown>;
|
|
3630
3623
|
interface PasswordChangeFormMessages {
|
|
3631
3624
|
required: string;
|
|
3632
3625
|
mismatch: string;
|
|
@@ -3635,20 +3628,20 @@ interface PasswordChangeFormMessages {
|
|
|
3635
3628
|
wrongRecoveryKey: string;
|
|
3636
3629
|
}
|
|
3637
3630
|
declare const DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES: PasswordChangeFormMessages;
|
|
3638
|
-
interface UsePasswordChangeFormOptions
|
|
3631
|
+
interface UsePasswordChangeFormOptions {
|
|
3639
3632
|
/** After recovery with a key: no current password is asked for. */
|
|
3640
3633
|
recoveryMode?: boolean;
|
|
3641
3634
|
/** The host's password policy: the first unmet requirement, or `null` when the password is fine. */
|
|
3642
3635
|
getUnmetRequirement: (password: string) => string | null;
|
|
3643
|
-
/** Do the change.
|
|
3644
|
-
submit: (vars: PasswordChangeVars) => Promise<
|
|
3636
|
+
/** Do the change. */
|
|
3637
|
+
submit: (vars: PasswordChangeVars) => Promise<void>;
|
|
3645
3638
|
/** The dialog should close (cancel, or done). */
|
|
3646
3639
|
onClose: () => void;
|
|
3647
3640
|
/** Recovery finished: continue into the app. Recovery closes itself, with no success screen. */
|
|
3648
3641
|
onRecoveryComplete?: () => void;
|
|
3649
3642
|
messages?: Partial<PasswordChangeFormMessages>;
|
|
3650
3643
|
}
|
|
3651
|
-
interface PasswordChangeForm
|
|
3644
|
+
interface PasswordChangeForm {
|
|
3652
3645
|
currentPassword: string;
|
|
3653
3646
|
onCurrentPasswordChange: (value: string) => void;
|
|
3654
3647
|
newPassword: string;
|
|
@@ -3659,15 +3652,15 @@ interface PasswordChangeForm<R> {
|
|
|
3659
3652
|
isProcessing: boolean;
|
|
3660
3653
|
isSubmitDisabled: boolean;
|
|
3661
3654
|
onSubmit: () => void;
|
|
3662
|
-
/** The
|
|
3663
|
-
|
|
3655
|
+
/** The change went through (normal mode): the dialog shows its success state. */
|
|
3656
|
+
isChanged: boolean;
|
|
3664
3657
|
/** Cancel and clear the form. */
|
|
3665
3658
|
onCancel: () => void;
|
|
3666
3659
|
/** Leave the success screen. */
|
|
3667
3660
|
onDone: () => void;
|
|
3668
3661
|
}
|
|
3669
3662
|
/** The state machine of `PasswordChangeDialog`; spread it into the dialog's props. */
|
|
3670
|
-
declare function usePasswordChangeForm
|
|
3663
|
+
declare function usePasswordChangeForm({ recoveryMode, getUnmetRequirement, submit, onClose, onRecoveryComplete, messages, }: UsePasswordChangeFormOptions): PasswordChangeForm;
|
|
3671
3664
|
|
|
3672
3665
|
/**
|
|
3673
3666
|
* Notification preferences: which email categories the user wants (the `email_notifications`
|
|
@@ -6590,4 +6583,4 @@ interface ArbiUiState {
|
|
|
6590
6583
|
}
|
|
6591
6584
|
declare const useArbiUiStore: zustand.UseBoundStore<zustand.StoreApi<ArbiUiState>>;
|
|
6592
6585
|
|
|
6593
|
-
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DEFAULT_USD_PER_CREDIT, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FormatCreditsOptions, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type
|
|
6586
|
+
export { type ActivityContent, type ActivityDescription, ActivityFeed, type ActivityFeedProps, type AgentAccessMode, type AgentConfigSections, type AggregatedDailyUsage, type AggregatedModelGroupUsage, AiActionCard, AiAnswer, type AiRunOptions, type AiTaskStatus, AppleIcon, ArbiBotHeadIcon, ArbiBotIcon, type ArbiChat, type ArbiChatCitation, type ArbiChatDocument, type ArbiChatMessage, type ArbiChatMessageStatus, type ArbiChatPassage, type ArbiChatRole, type ArbiChatThread, ArbiIcon, ArbiProvider, type ArbiProviderProps, type ArbiUiState, ArbiWebSocketProvider, type ArbiWebSocketProviderProps, type ArbiWsState, type ArbiWsStatus, ArtifactCanvas, type AspectOption, AudIcon, type AudioRecorderState, type AvatarCrop, type AvatarFileProblem, ChatBubble, type ChatBubbleProps, type Chunk, type ChunkActivation, CitationRenderer, type CitationRendererProps, type CitationState, ClaudeIcon, CommandPalette, type CommandPaletteClassNames, type CommandPaletteProps, CommandPaletteProvider, type CommandPaletteProviderProps, type CommandPaletteValue, ConversationList, type ConversationListProps, type CropArea, type CropOutput, type CropResult, DEFAULT_ASPECT_OPTIONS, DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES, DEFAULT_START_BY_EMAIL_LABELS, DEFAULT_USD_PER_CREDIT, DateSeparator, type DateSeparatorProps, type DeleteAccountBlocker, type DeleteAccountFlow, DirectMessages, type DirectMessagesProps, DmAvatar, type DmAvatarProps, type DmClassNames, DmComposer, type DmComposerProps, type DmConversation, type DmMessage, type DmNotification, type DmUser, DocIcon, DocQaPanel, DocSearch, DocumentCardMenu, type DocumentCardMenuProps, DocumentGallery, type DocumentGalleryProps, DocumentReview, type DocumentReviewProps, DocumentTable, type DocumentTableProps, DraftTitleControls, type DraftTitleControlsProps, type EmailChange, type EmailPreferences, EmlIcon, EntityIconComponent, FILE_TYPE_COLORS, FileIcon, FireworksIcon, type FormatCreditsOptions, GeminiIcon, GitHubIcon, GoogleIcon, type GrantAgentAccessVars, HtmlIcon, IdentityPurchase, IdentityStatus, IdentityStep, type IdentityVerificationApi, IdentityVerificationFlow, ImageCropModal, type ImageCropModalProps, ImageCropper, type ImageCropperProps, ImgIcon, InlineMicButton, type InlineMicButtonProps, LinkedInIcon, MAX_AVATAR_FILE_BYTES, type MailAccount, type MailAddress, type MailAttachment, type MailClient, type MailClientContextValue, MailClientProvider, type MailClientProviderProps, type MailCompose, type MailDeliveryRecipient, type MailDeliveryStatus, type MailDeviceFallback, type MailFetch, type MailFolder, type MailMessage, type MailMessageUpdate, MailOfflineUnavailableError, type MailPage, type MailPolicy, type MessageArtifact, MessageArtifactCard, MessageBubble, type MessageBubbleProps, MessageThread, type MessageThreadProps, MicRecordingOverlay, type MicRecordingOverlayProps, MicWaveformIndicator, type MicWaveformIndicatorProps, type MountDiditOptions, type NameEditor, type NotificationPreferencesModel, type NotificationTypeMeta, OpenAIIcon, type PaletteNavItem, type ParsedChunk, type ParsedChunkMetadata, type ParsedDocument, type ParsedDocumentMetadata, type PasswordChangeForm, type PasswordChangeFormMessages, type PasswordChangeVars, PdfIcon, PhotoCapture, type PhotoCaptureProps, type ProfileView, type ProjectsUsageAggregate, ProviderIcon, RUN_WINDOW_MS, type RenderMarkdown, type SaveAgentConfigVars, type SearchChunk, SemanticSearch, type SemanticSearchProps, type ShellRecentWorkspaceItem, type ShellWorkspaceItem, type ShellWorkspaceKind, type ShellWorkspaceMember, type ShellWorkspaceSeed, type ShellWorkspaceSource, StartByEmail, type StartByEmailLabels, type StartByEmailProps, type ThreadAccessors, type ThreadItem, type ToolResponses, TxtIcon, TypingIndicator, type UpdateProfileVars, type UsageTotals, type UseArbiChatOptions, type UseArbiShellWorkspacesOptions, type UseAudioRecorderResult, type UseAvatarCropOptions, type UseCameraStreamResult, type UseDeleteAccountFlowOptions, type UseDirectMessagesResult, type UseEmailChangeOptions, type UseIdentityVerificationFlowOptions, type UseNameEditorOptions, type UsePasswordChangeFormOptions, type UseShellWorkspacesOptions, type UseShellWorkspacesResult, type UseVideoRecorderResult, VidIcon, VideoCapture, type VideoCaptureProps, type VideoRecorderState, VoiceNoteRecorder, type VoiceNoteRecorderProps, XlsIcon, accountPath, aliasTakenMessage, annotateThread, arbiMailClient, arbiQueryKeys, captureFrameAsBlob, classifyMediaError, createMailClient, creditsToUsd, cropImage, dayKey, defaultMailAlias, describeActivity, fileAttachment, formatCredits, formatElapsed, formatIdentityPrice, formatRelativeTime, getNotificationTypeMeta, getWorkspaceActionText, getWorkspaceKind, getWorkspaceSentPhrase, hasVideoTrack, identityStepFor, invalidateTagData, isAliasTakenError, isUsageMetered, isWorkspaceNotificationType, mailDraftIdFromContent, mailJson, mailQueryKeys, mountDiditVerification, nextAliasSuggestion, parseActivityContent, parseDeleteAccountBlockers, pickRecentWorkspaces, redlineStats, resolveActiveWorkspace, textToArtifact, titleFromQuestion, toChatCitations, toNotificationPreferences, toProfileView, toRedlineMarkdown, toShellWorkspace, useActOnStep, useActivity, useAddContacts, useAgentChats, useAgentConfig, useAgentModels, useAgentSession, useAgentWorkspaces, useAgents, useAiTask, useArbi, useArbiChat, useArbiConnected, useArbiDocumentSync, useArbiShellWorkspaces, useArbiUiStore, useArbiWebSocket, useArbiWsContext, useArbiWsMessage, useArbiWsStatus, useArbiWsStore, useArbiWsTask, useArbiWsTasks, useAssistantQuery, useAudioRecorder, useAvatarCrop, useCameraStream, useClaimNativeAlias, useCloseAgentSession, useCommandPalette, useConfigs, useConfirmEmailChange, useConnectMailAccount, useContacts, useConversationActivity, useConversationPendingAuth, useConversationThreads, useConversationUsage, useConversations, useCreateAgent, useCreateWork, useCreateWorkflow, useCurrentSessionId, useDeleteAccount, useDeleteAccountFlow, useDeleteAgents, useDeleteWorkflow, useDeploymentDomain, useDirectMessages, useDisconnectMailAccount, useDocuments, useEmailChange, useFacts, useFilteredProjects, useGrantAgentAccess, useHealth, useIdentityVerification, useIdentityVerificationFlow, useInvalidateTagData, useLogoutAllSessions, useMailAccounts, useMailCache, useMailClient, useMailDraftCompose, useMailFolders, useMailMessage, useMailMessages, useMailOnline, useMailPolicy, useMailUnlock, useNameEditor, useNotificationPreferences, useParsedDocument, usePasswordChange, usePasswordChangeForm, usePendingContacts, usePlanWork, useProfile, useProjectConversationUsage, useProjectEvents, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useRemoveContacts, useRequestEmailChange, useRevokeAgentAccess, useRunConversation, useRunWorkflow, useSaveAgentConfig, useSaveMailDraft, useSemanticSearch, useSendBackStep, useSendMail, useSessions, useSetTagValues, useShellWorkspaces, useSkills, useStartAgentSession, useStartWorkQuery, useTagKindSchema, useTags, useTerminateSession, useThumbnails, useUpdateConversation, useUpdateMailMessage, useUpdateProfile, useUpdateProjectFields, useUpdateTagKindSchema, useUpdateWorkflow, useUploadSkillFiles, useUserSettings, useUserUsageToday, useVideoRecorder, useWorkNotifications, useWorkflows, useWorkspaceDocs, useWorkspaceUsers, useWorkspaces, userDisplayName, userInitials, workflowStepOf };
|
package/dist/index.js
CHANGED
|
@@ -1822,7 +1822,7 @@ function usePasswordChangeForm({
|
|
|
1822
1822
|
const [confirmPassword, setConfirmPassword] = useState("");
|
|
1823
1823
|
const [error, setError] = useState(null);
|
|
1824
1824
|
const [isProcessing, setIsProcessing] = useState(false);
|
|
1825
|
-
const [
|
|
1825
|
+
const [isChanged, setIsChanged] = useState(false);
|
|
1826
1826
|
const clear = useCallback(() => {
|
|
1827
1827
|
setCurrentPassword("");
|
|
1828
1828
|
setNewPassword("");
|
|
@@ -1839,13 +1839,13 @@ function usePasswordChangeForm({
|
|
|
1839
1839
|
if (unmet !== null) return setError(unmet);
|
|
1840
1840
|
if (!recoveryMode && currentPassword === newPassword) return setError(m.sameAsCurrent);
|
|
1841
1841
|
setIsProcessing(true);
|
|
1842
|
-
void submit({ newPassword, currentPassword: recoveryMode ? void 0 : currentPassword }).then((
|
|
1842
|
+
void submit({ newPassword, currentPassword: recoveryMode ? void 0 : currentPassword }).then(() => {
|
|
1843
1843
|
clear();
|
|
1844
1844
|
if (recoveryMode) {
|
|
1845
1845
|
onClose();
|
|
1846
1846
|
onRecoveryComplete?.();
|
|
1847
1847
|
} else {
|
|
1848
|
-
|
|
1848
|
+
setIsChanged(true);
|
|
1849
1849
|
}
|
|
1850
1850
|
}).catch((e) => {
|
|
1851
1851
|
const message = passwordChangeErrorMessage(e);
|
|
@@ -1875,15 +1875,15 @@ function usePasswordChangeForm({
|
|
|
1875
1875
|
isProcessing,
|
|
1876
1876
|
isSubmitDisabled,
|
|
1877
1877
|
onSubmit,
|
|
1878
|
-
|
|
1878
|
+
isChanged,
|
|
1879
1879
|
onCancel: () => {
|
|
1880
1880
|
clear();
|
|
1881
1881
|
setError(null);
|
|
1882
|
-
|
|
1882
|
+
setIsChanged(false);
|
|
1883
1883
|
onClose();
|
|
1884
1884
|
},
|
|
1885
1885
|
onDone: () => {
|
|
1886
|
-
|
|
1886
|
+
setIsChanged(false);
|
|
1887
1887
|
onClose();
|
|
1888
1888
|
}
|
|
1889
1889
|
};
|