@docyrus/rn-assistant 0.0.1
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 +477 -0
- package/dist/commonjs/components/agent-selector/agent-selector.js +300 -0
- package/dist/commonjs/components/agent-selector/agent-selector.js.map +1 -0
- package/dist/commonjs/components/agent-selector/index.js +17 -0
- package/dist/commonjs/components/agent-selector/index.js.map +1 -0
- package/dist/commonjs/components/assistant-animations/assistant-animations.js +169 -0
- package/dist/commonjs/components/assistant-animations/assistant-animations.js.map +1 -0
- package/dist/commonjs/components/assistant-animations/index.js +17 -0
- package/dist/commonjs/components/assistant-animations/index.js.map +1 -0
- package/dist/commonjs/components/assistant-screen/assistant-screen.js +809 -0
- package/dist/commonjs/components/assistant-screen/assistant-screen.js.map +1 -0
- package/dist/commonjs/components/assistant-screen/index.js +17 -0
- package/dist/commonjs/components/assistant-screen/index.js.map +1 -0
- package/dist/commonjs/components/index.js +116 -0
- package/dist/commonjs/components/index.js.map +1 -0
- package/dist/commonjs/components/message-parts/index.js +13 -0
- package/dist/commonjs/components/message-parts/index.js.map +1 -0
- package/dist/commonjs/components/message-parts/message-parts.js +209 -0
- package/dist/commonjs/components/message-parts/message-parts.js.map +1 -0
- package/dist/commonjs/components/new-chat/index.js +17 -0
- package/dist/commonjs/components/new-chat/index.js.map +1 -0
- package/dist/commonjs/components/new-chat/new-chat.js +100 -0
- package/dist/commonjs/components/new-chat/new-chat.js.map +1 -0
- package/dist/commonjs/components/prompt-input/attachment-picker.js +341 -0
- package/dist/commonjs/components/prompt-input/attachment-picker.js.map +1 -0
- package/dist/commonjs/components/prompt-input/attachment-preview.js +229 -0
- package/dist/commonjs/components/prompt-input/attachment-preview.js.map +1 -0
- package/dist/commonjs/components/prompt-input/index.js +41 -0
- package/dist/commonjs/components/prompt-input/index.js.map +1 -0
- package/dist/commonjs/components/prompt-input/prompt-input.js +288 -0
- package/dist/commonjs/components/prompt-input/prompt-input.js.map +1 -0
- package/dist/commonjs/components/prompt-input/provider-selector.js +542 -0
- package/dist/commonjs/components/prompt-input/provider-selector.js.map +1 -0
- package/dist/commonjs/components/prompt-input/reasoning-level-selector.js +350 -0
- package/dist/commonjs/components/prompt-input/reasoning-level-selector.js.map +1 -0
- package/dist/commonjs/components/prompt-input/voice-recorder.js +260 -0
- package/dist/commonjs/components/prompt-input/voice-recorder.js.map +1 -0
- package/dist/commonjs/components/sessions-list/index.js +17 -0
- package/dist/commonjs/components/sessions-list/index.js.map +1 -0
- package/dist/commonjs/components/sessions-list/sessions-list.js +820 -0
- package/dist/commonjs/components/sessions-list/sessions-list.js.map +1 -0
- package/dist/commonjs/hooks/index.js +34 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/use-agent-models.js +104 -0
- package/dist/commonjs/hooks/use-agent-models.js.map +1 -0
- package/dist/commonjs/hooks/use-assistant.js +402 -0
- package/dist/commonjs/hooks/use-assistant.js.map +1 -0
- package/dist/commonjs/hooks/use-attachment-picker.js +308 -0
- package/dist/commonjs/hooks/use-attachment-picker.js.map +1 -0
- package/dist/commonjs/hooks/use-voice-recorder.js +217 -0
- package/dist/commonjs/hooks/use-voice-recorder.js.map +1 -0
- package/dist/commonjs/index.js +112 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/theme/assistant-theme.js +105 -0
- package/dist/commonjs/theme/assistant-theme.js.map +1 -0
- package/dist/commonjs/theme/index.js +19 -0
- package/dist/commonjs/theme/index.js.map +1 -0
- package/dist/commonjs/types/index.js +2 -0
- package/dist/commonjs/types/index.js.map +1 -0
- package/dist/commonjs/ui/action-sheet.js +348 -0
- package/dist/commonjs/ui/action-sheet.js.map +1 -0
- package/dist/commonjs/ui/alert-dialog.js +134 -0
- package/dist/commonjs/ui/alert-dialog.js.map +1 -0
- package/dist/commonjs/ui/docyrus-brand-mark.js +52 -0
- package/dist/commonjs/ui/docyrus-brand-mark.js.map +1 -0
- package/dist/commonjs/ui/docyrus-icon.js +298 -0
- package/dist/commonjs/ui/docyrus-icon.js.map +1 -0
- package/dist/commonjs/ui/index.js +34 -0
- package/dist/commonjs/ui/index.js.map +1 -0
- package/dist/commonjs/utils/api-client.js +99 -0
- package/dist/commonjs/utils/api-client.js.map +1 -0
- package/dist/commonjs/utils/default-api-config.js +195 -0
- package/dist/commonjs/utils/default-api-config.js.map +1 -0
- package/dist/commonjs/utils/index.js +39 -0
- package/dist/commonjs/utils/index.js.map +1 -0
- package/dist/commonjs/utils/resolve-api-headers.js +16 -0
- package/dist/commonjs/utils/resolve-api-headers.js.map +1 -0
- package/dist/module/components/agent-selector/agent-selector.js +296 -0
- package/dist/module/components/agent-selector/agent-selector.js.map +1 -0
- package/dist/module/components/agent-selector/index.js +4 -0
- package/dist/module/components/agent-selector/index.js.map +1 -0
- package/dist/module/components/assistant-animations/assistant-animations.js +164 -0
- package/dist/module/components/assistant-animations/assistant-animations.js.map +1 -0
- package/dist/module/components/assistant-animations/index.js +4 -0
- package/dist/module/components/assistant-animations/index.js.map +1 -0
- package/dist/module/components/assistant-screen/assistant-screen.js +801 -0
- package/dist/module/components/assistant-screen/assistant-screen.js.map +1 -0
- package/dist/module/components/assistant-screen/index.js +4 -0
- package/dist/module/components/assistant-screen/index.js.map +1 -0
- package/dist/module/components/index.js +23 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/message-parts/index.js +4 -0
- package/dist/module/components/message-parts/index.js.map +1 -0
- package/dist/module/components/message-parts/message-parts.js +205 -0
- package/dist/module/components/message-parts/message-parts.js.map +1 -0
- package/dist/module/components/new-chat/index.js +4 -0
- package/dist/module/components/new-chat/index.js.map +1 -0
- package/dist/module/components/new-chat/new-chat.js +96 -0
- package/dist/module/components/new-chat/new-chat.js.map +1 -0
- package/dist/module/components/prompt-input/attachment-picker.js +337 -0
- package/dist/module/components/prompt-input/attachment-picker.js.map +1 -0
- package/dist/module/components/prompt-input/attachment-preview.js +225 -0
- package/dist/module/components/prompt-input/attachment-preview.js.map +1 -0
- package/dist/module/components/prompt-input/index.js +15 -0
- package/dist/module/components/prompt-input/index.js.map +1 -0
- package/dist/module/components/prompt-input/prompt-input.js +284 -0
- package/dist/module/components/prompt-input/prompt-input.js.map +1 -0
- package/dist/module/components/prompt-input/provider-selector.js +538 -0
- package/dist/module/components/prompt-input/provider-selector.js.map +1 -0
- package/dist/module/components/prompt-input/reasoning-level-selector.js +346 -0
- package/dist/module/components/prompt-input/reasoning-level-selector.js.map +1 -0
- package/dist/module/components/prompt-input/voice-recorder.js +256 -0
- package/dist/module/components/prompt-input/voice-recorder.js.map +1 -0
- package/dist/module/components/sessions-list/index.js +4 -0
- package/dist/module/components/sessions-list/index.js.map +1 -0
- package/dist/module/components/sessions-list/sessions-list.js +816 -0
- package/dist/module/components/sessions-list/sessions-list.js.map +1 -0
- package/dist/module/hooks/index.js +18 -0
- package/dist/module/hooks/index.js.map +1 -0
- package/dist/module/hooks/use-agent-models.js +100 -0
- package/dist/module/hooks/use-agent-models.js.map +1 -0
- package/dist/module/hooks/use-assistant.js +398 -0
- package/dist/module/hooks/use-assistant.js.map +1 -0
- package/dist/module/hooks/use-attachment-picker.js +303 -0
- package/dist/module/hooks/use-attachment-picker.js.map +1 -0
- package/dist/module/hooks/use-voice-recorder.js +214 -0
- package/dist/module/hooks/use-voice-recorder.js.map +1 -0
- package/dist/module/index.js +59 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/theme/assistant-theme.js +100 -0
- package/dist/module/theme/assistant-theme.js.map +1 -0
- package/dist/module/theme/index.js +4 -0
- package/dist/module/theme/index.js.map +1 -0
- package/dist/module/types/index.js +2 -0
- package/dist/module/types/index.js.map +1 -0
- package/dist/module/ui/action-sheet.js +344 -0
- package/dist/module/ui/action-sheet.js.map +1 -0
- package/dist/module/ui/alert-dialog.js +130 -0
- package/dist/module/ui/alert-dialog.js.map +1 -0
- package/dist/module/ui/docyrus-brand-mark.js +48 -0
- package/dist/module/ui/docyrus-brand-mark.js.map +1 -0
- package/dist/module/ui/docyrus-icon.js +294 -0
- package/dist/module/ui/docyrus-icon.js.map +1 -0
- package/dist/module/ui/index.js +7 -0
- package/dist/module/ui/index.js.map +1 -0
- package/dist/module/utils/api-client.js +95 -0
- package/dist/module/utils/api-client.js.map +1 -0
- package/dist/module/utils/default-api-config.js +190 -0
- package/dist/module/utils/default-api-config.js.map +1 -0
- package/dist/module/utils/index.js +12 -0
- package/dist/module/utils/index.js.map +1 -0
- package/dist/module/utils/resolve-api-headers.js +12 -0
- package/dist/module/utils/resolve-api-headers.js.map +1 -0
- package/dist/typescript/commonjs/eslint.config.d.mts +4 -0
- package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/package.json +1 -0
- package/dist/typescript/commonjs/src/components/agent-selector/agent-selector.d.ts +49 -0
- package/dist/typescript/commonjs/src/components/agent-selector/agent-selector.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/agent-selector/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/agent-selector/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/assistant-animations.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/assistant-animations.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/assistant-animations/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/assistant-screen.d.ts +122 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/assistant-screen.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/assistant-screen/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +11 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/message-parts/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/message-parts/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/message-parts/message-parts.d.ts +22 -0
- package/dist/typescript/commonjs/src/components/message-parts/message-parts.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/new-chat/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/new-chat/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/new-chat/new-chat.d.ts +34 -0
- package/dist/typescript/commonjs/src/components/new-chat/new-chat.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-picker.d.ts +53 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-picker.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-preview.d.ts +42 -0
- package/dist/typescript/commonjs/src/components/prompt-input/attachment-preview.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/index.d.ts +9 -0
- package/dist/typescript/commonjs/src/components/prompt-input/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/prompt-input.d.ts +139 -0
- package/dist/typescript/commonjs/src/components/prompt-input/prompt-input.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/provider-selector.d.ts +11 -0
- package/dist/typescript/commonjs/src/components/prompt-input/provider-selector.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/reasoning-level-selector.d.ts +35 -0
- package/dist/typescript/commonjs/src/components/prompt-input/reasoning-level-selector.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/prompt-input/voice-recorder.d.ts +48 -0
- package/dist/typescript/commonjs/src/components/prompt-input/voice-recorder.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/sessions-list/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/components/sessions-list/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/sessions-list/sessions-list.d.ts +59 -0
- package/dist/typescript/commonjs/src/components/sessions-list/sessions-list.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/index.d.ts +8 -0
- package/dist/typescript/commonjs/src/hooks/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-agent-models.d.ts +68 -0
- package/dist/typescript/commonjs/src/hooks/use-agent-models.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts +55 -0
- package/dist/typescript/commonjs/src/hooks/use-assistant.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-attachment-picker.d.ts +99 -0
- package/dist/typescript/commonjs/src/hooks/use-attachment-picker.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/hooks/use-voice-recorder.d.ts +101 -0
- package/dist/typescript/commonjs/src/hooks/use-voice-recorder.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/index.d.ts +47 -0
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/theme/assistant-theme.d.ts +51 -0
- package/dist/typescript/commonjs/src/theme/assistant-theme.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/theme/index.d.ts +2 -0
- package/dist/typescript/commonjs/src/theme/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/types/index.d.ts +167 -0
- package/dist/typescript/commonjs/src/types/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/action-sheet.d.ts +29 -0
- package/dist/typescript/commonjs/src/ui/action-sheet.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/alert-dialog.d.ts +12 -0
- package/dist/typescript/commonjs/src/ui/alert-dialog.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/docyrus-brand-mark.d.ts +5 -0
- package/dist/typescript/commonjs/src/ui/docyrus-brand-mark.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/docyrus-icon.d.ts +11 -0
- package/dist/typescript/commonjs/src/ui/docyrus-icon.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/ui/index.d.ts +5 -0
- package/dist/typescript/commonjs/src/ui/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/api-client.d.ts +35 -0
- package/dist/typescript/commonjs/src/utils/api-client.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/default-api-config.d.ts +38 -0
- package/dist/typescript/commonjs/src/utils/default-api-config.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/index.d.ts +9 -0
- package/dist/typescript/commonjs/src/utils/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/utils/resolve-api-headers.d.ts +3 -0
- package/dist/typescript/commonjs/src/utils/resolve-api-headers.d.ts.map +1 -0
- package/dist/typescript/module/eslint.config.d.mts +4 -0
- package/dist/typescript/module/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/package.json +1 -0
- package/dist/typescript/module/src/components/agent-selector/agent-selector.d.ts +49 -0
- package/dist/typescript/module/src/components/agent-selector/agent-selector.d.ts.map +1 -0
- package/dist/typescript/module/src/components/agent-selector/index.d.ts +2 -0
- package/dist/typescript/module/src/components/agent-selector/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-animations/assistant-animations.d.ts +8 -0
- package/dist/typescript/module/src/components/assistant-animations/assistant-animations.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-animations/index.d.ts +2 -0
- package/dist/typescript/module/src/components/assistant-animations/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-screen/assistant-screen.d.ts +122 -0
- package/dist/typescript/module/src/components/assistant-screen/assistant-screen.d.ts.map +1 -0
- package/dist/typescript/module/src/components/assistant-screen/index.d.ts +2 -0
- package/dist/typescript/module/src/components/assistant-screen/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +11 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/message-parts/index.d.ts +2 -0
- package/dist/typescript/module/src/components/message-parts/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/message-parts/message-parts.d.ts +22 -0
- package/dist/typescript/module/src/components/message-parts/message-parts.d.ts.map +1 -0
- package/dist/typescript/module/src/components/new-chat/index.d.ts +2 -0
- package/dist/typescript/module/src/components/new-chat/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/new-chat/new-chat.d.ts +34 -0
- package/dist/typescript/module/src/components/new-chat/new-chat.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-picker.d.ts +53 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-picker.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-preview.d.ts +42 -0
- package/dist/typescript/module/src/components/prompt-input/attachment-preview.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/index.d.ts +9 -0
- package/dist/typescript/module/src/components/prompt-input/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/prompt-input.d.ts +139 -0
- package/dist/typescript/module/src/components/prompt-input/prompt-input.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/provider-selector.d.ts +11 -0
- package/dist/typescript/module/src/components/prompt-input/provider-selector.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/reasoning-level-selector.d.ts +35 -0
- package/dist/typescript/module/src/components/prompt-input/reasoning-level-selector.d.ts.map +1 -0
- package/dist/typescript/module/src/components/prompt-input/voice-recorder.d.ts +48 -0
- package/dist/typescript/module/src/components/prompt-input/voice-recorder.d.ts.map +1 -0
- package/dist/typescript/module/src/components/sessions-list/index.d.ts +2 -0
- package/dist/typescript/module/src/components/sessions-list/index.d.ts.map +1 -0
- package/dist/typescript/module/src/components/sessions-list/sessions-list.d.ts +59 -0
- package/dist/typescript/module/src/components/sessions-list/sessions-list.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/index.d.ts +8 -0
- package/dist/typescript/module/src/hooks/index.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-agent-models.d.ts +68 -0
- package/dist/typescript/module/src/hooks/use-agent-models.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-assistant.d.ts +55 -0
- package/dist/typescript/module/src/hooks/use-assistant.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-attachment-picker.d.ts +99 -0
- package/dist/typescript/module/src/hooks/use-attachment-picker.d.ts.map +1 -0
- package/dist/typescript/module/src/hooks/use-voice-recorder.d.ts +101 -0
- package/dist/typescript/module/src/hooks/use-voice-recorder.d.ts.map +1 -0
- package/dist/typescript/module/src/index.d.ts +47 -0
- package/dist/typescript/module/src/index.d.ts.map +1 -0
- package/dist/typescript/module/src/theme/assistant-theme.d.ts +51 -0
- package/dist/typescript/module/src/theme/assistant-theme.d.ts.map +1 -0
- package/dist/typescript/module/src/theme/index.d.ts +2 -0
- package/dist/typescript/module/src/theme/index.d.ts.map +1 -0
- package/dist/typescript/module/src/types/index.d.ts +167 -0
- package/dist/typescript/module/src/types/index.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/action-sheet.d.ts +29 -0
- package/dist/typescript/module/src/ui/action-sheet.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/alert-dialog.d.ts +12 -0
- package/dist/typescript/module/src/ui/alert-dialog.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/docyrus-brand-mark.d.ts +5 -0
- package/dist/typescript/module/src/ui/docyrus-brand-mark.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/docyrus-icon.d.ts +11 -0
- package/dist/typescript/module/src/ui/docyrus-icon.d.ts.map +1 -0
- package/dist/typescript/module/src/ui/index.d.ts +5 -0
- package/dist/typescript/module/src/ui/index.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/api-client.d.ts +35 -0
- package/dist/typescript/module/src/utils/api-client.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/default-api-config.d.ts +38 -0
- package/dist/typescript/module/src/utils/default-api-config.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/index.d.ts +9 -0
- package/dist/typescript/module/src/utils/index.d.ts.map +1 -0
- package/dist/typescript/module/src/utils/resolve-api-headers.d.ts +3 -0
- package/dist/typescript/module/src/utils/resolve-api-headers.d.ts.map +1 -0
- package/package.json +176 -0
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ProviderSelector = ProviderSelector;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _expoImage = require("expo-image");
|
|
10
|
+
var _lucideReactNative = require("lucide-react-native");
|
|
11
|
+
var _rn = require("@docyrus/i18n/rn");
|
|
12
|
+
var _index = require("../../theme/index.js");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
const PROVIDER_COLORS = {
|
|
15
|
+
openai: '#10A37F',
|
|
16
|
+
anthropic: '#D97757',
|
|
17
|
+
google: '#4285F4',
|
|
18
|
+
'google gemini': '#4285F4',
|
|
19
|
+
cerebras: '#FF6B35',
|
|
20
|
+
groq: '#F55036',
|
|
21
|
+
mistral: '#FF7000',
|
|
22
|
+
cohere: '#39594D',
|
|
23
|
+
meta: '#0668E1',
|
|
24
|
+
other: '#6B7280'
|
|
25
|
+
};
|
|
26
|
+
const PROVIDER_ICONS = {
|
|
27
|
+
openai: 'bot',
|
|
28
|
+
anthropic: 'bot',
|
|
29
|
+
google: 'sparkles',
|
|
30
|
+
'google gemini': 'sparkles',
|
|
31
|
+
cerebras: 'cpu',
|
|
32
|
+
groq: 'cpu',
|
|
33
|
+
mistral: 'sparkles',
|
|
34
|
+
cohere: 'bot',
|
|
35
|
+
meta: 'bot',
|
|
36
|
+
other: 'sparkles'
|
|
37
|
+
};
|
|
38
|
+
function getProviderColor(provider) {
|
|
39
|
+
const key = provider.toLowerCase();
|
|
40
|
+
return PROVIDER_COLORS[key] ?? PROVIDER_COLORS.other ?? '#6B7280';
|
|
41
|
+
}
|
|
42
|
+
function getProviderIcon(provider) {
|
|
43
|
+
const key = provider.toLowerCase();
|
|
44
|
+
return PROVIDER_ICONS[key] ?? PROVIDER_ICONS.other ?? 'sparkles';
|
|
45
|
+
}
|
|
46
|
+
function ProviderSelector({
|
|
47
|
+
models,
|
|
48
|
+
selectedModel,
|
|
49
|
+
onSelect,
|
|
50
|
+
disabled = false,
|
|
51
|
+
compact = false,
|
|
52
|
+
variant = 'chip'
|
|
53
|
+
}) {
|
|
54
|
+
const theme = (0, _index.useDocyrusRNAssistantTheme)();
|
|
55
|
+
const {
|
|
56
|
+
t
|
|
57
|
+
} = (0, _rn.useI18n)();
|
|
58
|
+
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
59
|
+
const [anchorFrame, setAnchorFrame] = (0, _react.useState)(null);
|
|
60
|
+
const triggerRef = (0, _react.useRef)(null);
|
|
61
|
+
const dropdownAnim = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
62
|
+
const screen = _reactNative.Dimensions.get('window');
|
|
63
|
+
const dropdownHeight = Math.min(screen.height * 0.52, 360);
|
|
64
|
+
const measureAnchor = (0, _react.useCallback)(() => {
|
|
65
|
+
triggerRef.current?.measureInWindow((x, y, width, height) => {
|
|
66
|
+
setAnchorFrame({
|
|
67
|
+
x,
|
|
68
|
+
y,
|
|
69
|
+
width,
|
|
70
|
+
height
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
}, []);
|
|
74
|
+
(0, _react.useEffect)(() => {
|
|
75
|
+
if (isOpen) {
|
|
76
|
+
requestAnimationFrame(() => {
|
|
77
|
+
measureAnchor();
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}, [isOpen, measureAnchor]);
|
|
81
|
+
(0, _react.useEffect)(() => {
|
|
82
|
+
_reactNative.Animated.spring(dropdownAnim, {
|
|
83
|
+
toValue: isOpen ? 1 : 0,
|
|
84
|
+
useNativeDriver: true,
|
|
85
|
+
damping: 22,
|
|
86
|
+
stiffness: 260,
|
|
87
|
+
mass: 0.9
|
|
88
|
+
}).start();
|
|
89
|
+
}, [dropdownAnim, isOpen]);
|
|
90
|
+
const handleClose = (0, _react.useCallback)(() => {
|
|
91
|
+
setIsOpen(false);
|
|
92
|
+
}, []);
|
|
93
|
+
const handleSelect = (0, _react.useCallback)(model => {
|
|
94
|
+
onSelect(model);
|
|
95
|
+
setIsOpen(false);
|
|
96
|
+
}, [onSelect]);
|
|
97
|
+
const groupedModels = models.reduce((acc, model) => {
|
|
98
|
+
const provider = model.providerName || 'Other';
|
|
99
|
+
if (!acc[provider]) {
|
|
100
|
+
acc[provider] = [];
|
|
101
|
+
}
|
|
102
|
+
acc[provider].push(model);
|
|
103
|
+
return acc;
|
|
104
|
+
}, {});
|
|
105
|
+
const providers = Object.keys(groupedModels);
|
|
106
|
+
const renderModelItem = (model, isLast) => {
|
|
107
|
+
const isSelected = selectedModel?.id === model.id;
|
|
108
|
+
const providerColor = getProviderColor(model.providerName || 'other');
|
|
109
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
110
|
+
onPress: () => handleSelect(model),
|
|
111
|
+
activeOpacity: 0.7,
|
|
112
|
+
style: [styles.modelItem, {
|
|
113
|
+
backgroundColor: isSelected ? `${providerColor}12` : 'transparent',
|
|
114
|
+
borderRadius: theme.borderRadius.lg,
|
|
115
|
+
marginBottom: isLast ? 0 : 4
|
|
116
|
+
}],
|
|
117
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
118
|
+
style: styles.modelContent,
|
|
119
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
120
|
+
style: [styles.selectionIndicator, {
|
|
121
|
+
backgroundColor: isSelected ? providerColor : 'transparent',
|
|
122
|
+
borderColor: isSelected ? providerColor : theme.colors.border,
|
|
123
|
+
borderWidth: isSelected ? 0 : 1.5
|
|
124
|
+
}],
|
|
125
|
+
children: isSelected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Check, {
|
|
126
|
+
size: 12,
|
|
127
|
+
color: "#ffffff",
|
|
128
|
+
strokeWidth: 2.8
|
|
129
|
+
}) : null
|
|
130
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
131
|
+
style: styles.modelInfo,
|
|
132
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
133
|
+
style: [styles.modelName, {
|
|
134
|
+
color: theme.colors.foreground,
|
|
135
|
+
fontWeight: isSelected ? '600' : '500'
|
|
136
|
+
}],
|
|
137
|
+
children: model.name
|
|
138
|
+
}), model.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
139
|
+
style: [styles.modelDescription, {
|
|
140
|
+
color: theme.colors.mutedForeground
|
|
141
|
+
}],
|
|
142
|
+
numberOfLines: 1,
|
|
143
|
+
children: model.description
|
|
144
|
+
}) : null]
|
|
145
|
+
}), isSelected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
146
|
+
style: [styles.selectedBadge, {
|
|
147
|
+
backgroundColor: `${providerColor}20`
|
|
148
|
+
}],
|
|
149
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
150
|
+
style: [styles.selectedBadgeText, {
|
|
151
|
+
color: providerColor
|
|
152
|
+
}],
|
|
153
|
+
children: t('common.status-active', 'Active')
|
|
154
|
+
})
|
|
155
|
+
}) : null]
|
|
156
|
+
})
|
|
157
|
+
}, model.id);
|
|
158
|
+
};
|
|
159
|
+
const renderProviderSection = (provider, index) => {
|
|
160
|
+
const providerModels = groupedModels[provider] || [];
|
|
161
|
+
const providerColor = getProviderColor(provider);
|
|
162
|
+
const providerIcon = getProviderIcon(provider);
|
|
163
|
+
const firstModel = providerModels[0];
|
|
164
|
+
const hasLogo = firstModel?.providerLogoUrl;
|
|
165
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
166
|
+
style: [styles.providerSection, {
|
|
167
|
+
marginBottom: index < providers.length - 1 ? 18 : 0
|
|
168
|
+
}],
|
|
169
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
170
|
+
style: styles.providerHeader,
|
|
171
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
172
|
+
style: [styles.providerIconContainer, {
|
|
173
|
+
backgroundColor: `${providerColor}15`
|
|
174
|
+
}],
|
|
175
|
+
children: hasLogo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_expoImage.Image, {
|
|
176
|
+
source: {
|
|
177
|
+
uri: firstModel.providerLogoUrl
|
|
178
|
+
},
|
|
179
|
+
style: styles.providerLogo,
|
|
180
|
+
contentFit: "contain"
|
|
181
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(ProviderToneIcon, {
|
|
182
|
+
tone: providerIcon,
|
|
183
|
+
size: 16,
|
|
184
|
+
color: providerColor
|
|
185
|
+
})
|
|
186
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
187
|
+
style: [styles.providerName, {
|
|
188
|
+
color: theme.colors.foreground
|
|
189
|
+
}],
|
|
190
|
+
children: provider
|
|
191
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
192
|
+
style: [styles.modelCountBadge, {
|
|
193
|
+
backgroundColor: theme.colors.muted
|
|
194
|
+
}],
|
|
195
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
196
|
+
style: [styles.modelCountText, {
|
|
197
|
+
color: theme.colors.mutedForeground
|
|
198
|
+
}],
|
|
199
|
+
children: providerModels.length
|
|
200
|
+
})
|
|
201
|
+
})]
|
|
202
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
203
|
+
style: [styles.modelsList, {
|
|
204
|
+
marginLeft: 36
|
|
205
|
+
}],
|
|
206
|
+
children: providerModels.map((model, idx) => renderModelItem(model, idx === providerModels.length - 1))
|
|
207
|
+
})]
|
|
208
|
+
}, provider);
|
|
209
|
+
};
|
|
210
|
+
if (models.length === 0) {
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
const selectedProviderColor = getProviderColor(selectedModel?.providerName || 'other');
|
|
214
|
+
const selectedProviderIcon = getProviderIcon(selectedModel?.providerName || 'other');
|
|
215
|
+
const hasProviderLogo = selectedModel?.providerLogoUrl;
|
|
216
|
+
const isToolbar = variant === 'toolbar';
|
|
217
|
+
const maxLeft = Math.max(12, screen.width - 332);
|
|
218
|
+
const dropdownLeft = anchorFrame ? Math.min(Math.max(anchorFrame.x - 12, 12), maxLeft) : 12;
|
|
219
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
220
|
+
ref: triggerRef,
|
|
221
|
+
collapsable: false,
|
|
222
|
+
style: styles.anchorRoot,
|
|
223
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
224
|
+
onPress: () => {
|
|
225
|
+
if (disabled || models.length <= 1) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (isOpen) {
|
|
229
|
+
setIsOpen(false);
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
measureAnchor();
|
|
233
|
+
setIsOpen(true);
|
|
234
|
+
},
|
|
235
|
+
disabled: disabled || models.length <= 1,
|
|
236
|
+
activeOpacity: 0.7,
|
|
237
|
+
style: [styles.trigger, {
|
|
238
|
+
backgroundColor: isToolbar ? 'transparent' : `${selectedProviderColor}10`,
|
|
239
|
+
borderRadius: theme.borderRadius.full,
|
|
240
|
+
paddingVertical: isToolbar ? 0 : 6,
|
|
241
|
+
paddingHorizontal: isToolbar ? 0 : compact ? 8 : 12,
|
|
242
|
+
opacity: disabled ? 0.5 : 1,
|
|
243
|
+
borderWidth: isToolbar ? 0 : 1,
|
|
244
|
+
borderColor: `${selectedProviderColor}20`
|
|
245
|
+
}],
|
|
246
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
247
|
+
style: [styles.triggerIconContainer, {
|
|
248
|
+
backgroundColor: isToolbar ? 'transparent' : `${selectedProviderColor}20`
|
|
249
|
+
}],
|
|
250
|
+
children: hasProviderLogo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_expoImage.Image, {
|
|
251
|
+
source: {
|
|
252
|
+
uri: selectedModel?.providerLogoUrl
|
|
253
|
+
},
|
|
254
|
+
style: styles.triggerLogo,
|
|
255
|
+
contentFit: "contain"
|
|
256
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(ProviderToneIcon, {
|
|
257
|
+
tone: selectedProviderIcon,
|
|
258
|
+
size: 14,
|
|
259
|
+
color: selectedProviderColor
|
|
260
|
+
})
|
|
261
|
+
}), !compact && selectedModel ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
262
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
263
|
+
style: [styles.selectedModelText, {
|
|
264
|
+
color: theme.colors.foreground,
|
|
265
|
+
marginLeft: isToolbar ? 6 : 8,
|
|
266
|
+
marginRight: models.length > 1 ? 4 : 0
|
|
267
|
+
}],
|
|
268
|
+
numberOfLines: 1,
|
|
269
|
+
children: selectedModel.name
|
|
270
|
+
}), models.length > 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.ChevronDown, {
|
|
271
|
+
size: 14,
|
|
272
|
+
color: theme.colors.mutedForeground,
|
|
273
|
+
strokeWidth: 2.4
|
|
274
|
+
}) : null]
|
|
275
|
+
}) : null]
|
|
276
|
+
}), isOpen && anchorFrame ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
277
|
+
pointerEvents: "box-none",
|
|
278
|
+
style: [styles.portalLayer, {
|
|
279
|
+
left: -anchorFrame.x,
|
|
280
|
+
top: -anchorFrame.y,
|
|
281
|
+
width: screen.width,
|
|
282
|
+
height: screen.height
|
|
283
|
+
}],
|
|
284
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
285
|
+
activeOpacity: 1,
|
|
286
|
+
onPress: handleClose,
|
|
287
|
+
style: styles.portalBackdrop
|
|
288
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
289
|
+
pointerEvents: "auto",
|
|
290
|
+
style: [styles.dropdown, {
|
|
291
|
+
backgroundColor: theme.colors.card,
|
|
292
|
+
borderColor: theme.colors.border,
|
|
293
|
+
left: dropdownLeft,
|
|
294
|
+
bottom: screen.height - anchorFrame.y + 10,
|
|
295
|
+
maxHeight: dropdownHeight,
|
|
296
|
+
opacity: dropdownAnim,
|
|
297
|
+
transform: [{
|
|
298
|
+
translateY: dropdownAnim.interpolate({
|
|
299
|
+
inputRange: [0, 1],
|
|
300
|
+
outputRange: [10, 0]
|
|
301
|
+
})
|
|
302
|
+
}, {
|
|
303
|
+
scale: dropdownAnim.interpolate({
|
|
304
|
+
inputRange: [0, 1],
|
|
305
|
+
outputRange: [0.97, 1]
|
|
306
|
+
})
|
|
307
|
+
}]
|
|
308
|
+
}],
|
|
309
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
310
|
+
style: [styles.dropdownHeader, {
|
|
311
|
+
borderBottomWidth: 1,
|
|
312
|
+
borderBottomColor: theme.colors.border
|
|
313
|
+
}],
|
|
314
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
315
|
+
style: styles.headerLeft,
|
|
316
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
317
|
+
style: [styles.headerIconBadge, {
|
|
318
|
+
backgroundColor: `${theme.colors.primary}14`
|
|
319
|
+
}],
|
|
320
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Sparkles, {
|
|
321
|
+
size: 16,
|
|
322
|
+
color: theme.colors.primary,
|
|
323
|
+
strokeWidth: 2.2
|
|
324
|
+
})
|
|
325
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
326
|
+
style: [styles.dropdownTitle, {
|
|
327
|
+
color: theme.colors.foreground
|
|
328
|
+
}],
|
|
329
|
+
children: t('assistant.select-model', 'Select Model')
|
|
330
|
+
})]
|
|
331
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
332
|
+
onPress: handleClose,
|
|
333
|
+
hitSlop: {
|
|
334
|
+
top: 10,
|
|
335
|
+
bottom: 10,
|
|
336
|
+
left: 10,
|
|
337
|
+
right: 10
|
|
338
|
+
},
|
|
339
|
+
style: [styles.closeButton, {
|
|
340
|
+
backgroundColor: theme.colors.muted
|
|
341
|
+
}],
|
|
342
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.X, {
|
|
343
|
+
size: 16,
|
|
344
|
+
color: theme.colors.mutedForeground,
|
|
345
|
+
strokeWidth: 2.2
|
|
346
|
+
})
|
|
347
|
+
})]
|
|
348
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
349
|
+
showsVerticalScrollIndicator: false,
|
|
350
|
+
contentContainerStyle: [styles.scrollContent, {
|
|
351
|
+
paddingHorizontal: 14,
|
|
352
|
+
paddingVertical: 14
|
|
353
|
+
}],
|
|
354
|
+
bounces: _reactNative.Platform.OS === 'ios',
|
|
355
|
+
children: providers.map((provider, index) => renderProviderSection(provider, index))
|
|
356
|
+
})]
|
|
357
|
+
})]
|
|
358
|
+
}) : null]
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
const styles = _reactNative.StyleSheet.create({
|
|
362
|
+
anchorRoot: {
|
|
363
|
+
position: 'relative',
|
|
364
|
+
zIndex: 42
|
|
365
|
+
},
|
|
366
|
+
portalLayer: {
|
|
367
|
+
position: 'absolute',
|
|
368
|
+
zIndex: 140
|
|
369
|
+
},
|
|
370
|
+
portalBackdrop: {
|
|
371
|
+
..._reactNative.StyleSheet.absoluteFillObject
|
|
372
|
+
},
|
|
373
|
+
trigger: {
|
|
374
|
+
flexDirection: 'row',
|
|
375
|
+
alignItems: 'center',
|
|
376
|
+
alignSelf: 'flex-start'
|
|
377
|
+
},
|
|
378
|
+
triggerIconContainer: {
|
|
379
|
+
width: 22,
|
|
380
|
+
height: 22,
|
|
381
|
+
borderRadius: 6,
|
|
382
|
+
alignItems: 'center',
|
|
383
|
+
justifyContent: 'center'
|
|
384
|
+
},
|
|
385
|
+
triggerLogo: {
|
|
386
|
+
width: 14,
|
|
387
|
+
height: 14
|
|
388
|
+
},
|
|
389
|
+
selectedModelText: {
|
|
390
|
+
fontSize: 13,
|
|
391
|
+
fontWeight: '500',
|
|
392
|
+
maxWidth: 140
|
|
393
|
+
},
|
|
394
|
+
dropdown: {
|
|
395
|
+
position: 'absolute',
|
|
396
|
+
width: 320,
|
|
397
|
+
borderRadius: 24,
|
|
398
|
+
borderWidth: 1,
|
|
399
|
+
shadowColor: '#0f172a',
|
|
400
|
+
shadowOffset: {
|
|
401
|
+
width: 0,
|
|
402
|
+
height: 14
|
|
403
|
+
},
|
|
404
|
+
shadowOpacity: 0.18,
|
|
405
|
+
shadowRadius: 28,
|
|
406
|
+
elevation: 20
|
|
407
|
+
},
|
|
408
|
+
dropdownHeader: {
|
|
409
|
+
alignItems: 'center',
|
|
410
|
+
flexDirection: 'row',
|
|
411
|
+
justifyContent: 'space-between',
|
|
412
|
+
paddingHorizontal: 14,
|
|
413
|
+
paddingVertical: 12
|
|
414
|
+
},
|
|
415
|
+
headerLeft: {
|
|
416
|
+
alignItems: 'center',
|
|
417
|
+
flexDirection: 'row',
|
|
418
|
+
flex: 1
|
|
419
|
+
},
|
|
420
|
+
headerIconBadge: {
|
|
421
|
+
alignItems: 'center',
|
|
422
|
+
borderRadius: 999,
|
|
423
|
+
height: 28,
|
|
424
|
+
justifyContent: 'center',
|
|
425
|
+
marginRight: 10,
|
|
426
|
+
width: 28
|
|
427
|
+
},
|
|
428
|
+
dropdownTitle: {
|
|
429
|
+
fontSize: 15,
|
|
430
|
+
fontWeight: '700'
|
|
431
|
+
},
|
|
432
|
+
closeButton: {
|
|
433
|
+
alignItems: 'center',
|
|
434
|
+
borderRadius: 999,
|
|
435
|
+
height: 30,
|
|
436
|
+
justifyContent: 'center',
|
|
437
|
+
width: 30
|
|
438
|
+
},
|
|
439
|
+
scrollContent: {
|
|
440
|
+
paddingBottom: 6
|
|
441
|
+
},
|
|
442
|
+
providerSection: {},
|
|
443
|
+
providerHeader: {
|
|
444
|
+
flexDirection: 'row',
|
|
445
|
+
alignItems: 'center',
|
|
446
|
+
marginBottom: 10
|
|
447
|
+
},
|
|
448
|
+
providerIconContainer: {
|
|
449
|
+
width: 28,
|
|
450
|
+
height: 28,
|
|
451
|
+
borderRadius: 8,
|
|
452
|
+
alignItems: 'center',
|
|
453
|
+
justifyContent: 'center',
|
|
454
|
+
marginRight: 8
|
|
455
|
+
},
|
|
456
|
+
providerLogo: {
|
|
457
|
+
width: 16,
|
|
458
|
+
height: 16
|
|
459
|
+
},
|
|
460
|
+
providerName: {
|
|
461
|
+
fontSize: 14,
|
|
462
|
+
fontWeight: '700',
|
|
463
|
+
flex: 1
|
|
464
|
+
},
|
|
465
|
+
modelCountBadge: {
|
|
466
|
+
borderRadius: 999,
|
|
467
|
+
minWidth: 24,
|
|
468
|
+
alignItems: 'center',
|
|
469
|
+
justifyContent: 'center',
|
|
470
|
+
paddingHorizontal: 8,
|
|
471
|
+
height: 22
|
|
472
|
+
},
|
|
473
|
+
modelCountText: {
|
|
474
|
+
fontSize: 12,
|
|
475
|
+
fontWeight: '600'
|
|
476
|
+
},
|
|
477
|
+
modelsList: {
|
|
478
|
+
gap: 4
|
|
479
|
+
},
|
|
480
|
+
modelItem: {
|
|
481
|
+
paddingHorizontal: 12,
|
|
482
|
+
paddingVertical: 10
|
|
483
|
+
},
|
|
484
|
+
modelContent: {
|
|
485
|
+
alignItems: 'center',
|
|
486
|
+
flexDirection: 'row'
|
|
487
|
+
},
|
|
488
|
+
selectionIndicator: {
|
|
489
|
+
width: 18,
|
|
490
|
+
height: 18,
|
|
491
|
+
borderRadius: 999,
|
|
492
|
+
alignItems: 'center',
|
|
493
|
+
justifyContent: 'center',
|
|
494
|
+
marginRight: 10
|
|
495
|
+
},
|
|
496
|
+
modelInfo: {
|
|
497
|
+
flex: 1
|
|
498
|
+
},
|
|
499
|
+
modelName: {
|
|
500
|
+
fontSize: 14
|
|
501
|
+
},
|
|
502
|
+
modelDescription: {
|
|
503
|
+
fontSize: 12,
|
|
504
|
+
lineHeight: 16,
|
|
505
|
+
marginTop: 2
|
|
506
|
+
},
|
|
507
|
+
selectedBadge: {
|
|
508
|
+
borderRadius: 999,
|
|
509
|
+
paddingHorizontal: 8,
|
|
510
|
+
paddingVertical: 4
|
|
511
|
+
},
|
|
512
|
+
selectedBadgeText: {
|
|
513
|
+
fontSize: 11,
|
|
514
|
+
fontWeight: '700'
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
function ProviderToneIcon({
|
|
518
|
+
tone,
|
|
519
|
+
size,
|
|
520
|
+
color
|
|
521
|
+
}) {
|
|
522
|
+
if (tone === 'cpu') {
|
|
523
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Cpu, {
|
|
524
|
+
size: size,
|
|
525
|
+
color: color,
|
|
526
|
+
strokeWidth: 2.2
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
if (tone === 'bot') {
|
|
530
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Bot, {
|
|
531
|
+
size: size,
|
|
532
|
+
color: color,
|
|
533
|
+
strokeWidth: 2.2
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_lucideReactNative.Sparkles, {
|
|
537
|
+
size: size,
|
|
538
|
+
color: color,
|
|
539
|
+
strokeWidth: 2.2
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
//# sourceMappingURL=provider-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_expoImage","_lucideReactNative","_rn","_index","_jsxRuntime","PROVIDER_COLORS","openai","anthropic","google","cerebras","groq","mistral","cohere","meta","other","PROVIDER_ICONS","getProviderColor","provider","key","toLowerCase","getProviderIcon","ProviderSelector","models","selectedModel","onSelect","disabled","compact","variant","theme","useDocyrusRNAssistantTheme","t","useI18n","isOpen","setIsOpen","useState","anchorFrame","setAnchorFrame","triggerRef","useRef","dropdownAnim","Animated","Value","current","screen","Dimensions","get","dropdownHeight","Math","min","height","measureAnchor","useCallback","measureInWindow","x","y","width","useEffect","requestAnimationFrame","spring","toValue","useNativeDriver","damping","stiffness","mass","start","handleClose","handleSelect","model","groupedModels","reduce","acc","providerName","push","providers","Object","keys","renderModelItem","isLast","isSelected","id","providerColor","jsx","TouchableOpacity","onPress","activeOpacity","style","styles","modelItem","backgroundColor","borderRadius","lg","marginBottom","children","jsxs","View","modelContent","selectionIndicator","borderColor","colors","border","borderWidth","Check","size","color","strokeWidth","modelInfo","Text","modelName","foreground","fontWeight","name","description","modelDescription","mutedForeground","numberOfLines","selectedBadge","selectedBadgeText","renderProviderSection","index","providerModels","providerIcon","firstModel","hasLogo","providerLogoUrl","providerSection","length","providerHeader","providerIconContainer","Image","source","uri","providerLogo","contentFit","ProviderToneIcon","tone","modelCountBadge","muted","modelCountText","modelsList","marginLeft","map","idx","selectedProviderColor","selectedProviderIcon","hasProviderLogo","isToolbar","maxLeft","max","dropdownLeft","ref","collapsable","anchorRoot","trigger","full","paddingVertical","paddingHorizontal","opacity","triggerIconContainer","triggerLogo","Fragment","selectedModelText","marginRight","ChevronDown","pointerEvents","portalLayer","left","top","portalBackdrop","dropdown","card","bottom","maxHeight","transform","translateY","interpolate","inputRange","outputRange","scale","dropdownHeader","borderBottomWidth","borderBottomColor","headerLeft","headerIconBadge","primary","Sparkles","dropdownTitle","hitSlop","right","closeButton","X","ScrollView","showsVerticalScrollIndicator","contentContainerStyle","scrollContent","bounces","Platform","OS","StyleSheet","create","position","zIndex","absoluteFillObject","flexDirection","alignItems","alignSelf","justifyContent","fontSize","maxWidth","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","flex","paddingBottom","minWidth","gap","lineHeight","marginTop","Cpu","Bot"],"sourceRoot":"../../../../src","sources":["components/prompt-input/provider-selector.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AASA,IAAAI,GAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AAAyD,IAAAM,WAAA,GAAAN,OAAA;AAUzD,MAAMO,eAAuC,GAAG;EAC9CC,MAAM,EAAE,SAAS;EACjBC,SAAS,EAAE,SAAS;EACpBC,MAAM,EAAE,SAAS;EACjB,eAAe,EAAE,SAAS;EAC1BC,QAAQ,EAAE,SAAS;EACnBC,IAAI,EAAE,SAAS;EACfC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE,SAAS;EACfC,KAAK,EAAE;AACT,CAAC;AAED,MAAMC,cAA0D,GAAG;EACjET,MAAM,EAAE,KAAK;EACbC,SAAS,EAAE,KAAK;EAChBC,MAAM,EAAE,UAAU;EAClB,eAAe,EAAE,UAAU;EAC3BC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,KAAK;EACXC,OAAO,EAAE,UAAU;EACnBC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,gBAAgBA,CAACC,QAAgB,EAAU;EAClD,MAAMC,GAAG,GAAGD,QAAQ,CAACE,WAAW,CAAC,CAAC;EAElC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