chat-js 1.0.0-alpha.7 → 1.0.0-beta.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.
- package/README.md +8 -6
- package/dist/index.js +7487 -6859
- package/package.json +2 -2
- package/templates/chat-app/AGENTS.md +1 -1
- package/templates/chat-app/agent/agent.ts +0 -2
- package/templates/chat-app/agent/hooks/followup-suggestions.ts +1 -1
- package/templates/chat-app/agent/hooks/projects.ts +1 -1
- package/templates/chat-app/agent/hooks/search.ts +1 -1
- package/templates/chat-app/agent/instructions/projects.ts +1 -1
- package/templates/chat-app/agent/tools/mcp.ts +1 -1
- package/templates/chat-app/app/(auth)/device-login/page.tsx +1 -1
- package/templates/chat-app/app/(chat)/api/files/upload/route.ts +1 -1
- package/templates/chat-app/app/(chat)/chat/{[id] → [chatId]}/page.tsx +4 -4
- package/templates/chat-app/app/(chat)/project/[projectId]/chat/[chatId]/page.tsx +1 -1
- package/templates/chat-app/app/(chat)/project/[projectId]/page.tsx +1 -1
- package/templates/chat-app/app/(chat)/settings/connectors/[connectorId]/page.tsx +1 -1
- package/templates/chat-app/app/(chat)/settings/connectors/page.tsx +1 -1
- package/templates/chat-app/app/(chat)/settings/models/page.tsx +1 -1
- package/templates/chat-app/app/(chat)/share/[id]/page.tsx +1 -1
- package/templates/chat-app/app/api/agent-conversations/route.test.ts +5 -5
- package/templates/chat-app/app/api/agent-conversations/route.ts +2 -2
- package/templates/chat-app/app/api/agent-response-groups/route.test.ts +5 -5
- package/templates/chat-app/app/api/agent-response-groups/route.ts +1 -1
- package/templates/chat-app/app/api/eve/[...path]/route.test.ts +133 -4
- package/templates/chat-app/app/api/eve/[...path]/route.ts +175 -49
- package/templates/chat-app/app/api/eve-guest/route.ts +1 -1
- package/templates/chat-app/app/api/mcp/oauth/callback/route.ts +1 -1
- package/templates/chat-app/app/editor.css +0 -6
- package/templates/chat-app/app/layout.tsx +11 -18
- package/templates/chat-app/app/opengraph-image.png +0 -0
- package/templates/chat-app/chat.config.ts +0 -44
- package/templates/chat-app/chatjs/core/chat/compose.ts +4 -4
- package/templates/chat-app/chatjs/core/chat/contracts.ts +6 -6
- package/templates/chat-app/chatjs/core/gateway/runtime.ts +0 -7
- package/templates/chat-app/chatjs/core/installation/contracts.ts +0 -7
- package/templates/chat-app/chatjs/core/ui/slots.tsx +15 -5
- package/templates/chat-app/chatjs/generated/installed-auth-ui.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed-auth.ts +4 -2
- package/templates/chat-app/chatjs/generated/installed-billing.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed-chat-ui.ts +28 -24
- package/templates/chat-app/chatjs/generated/installed-chat.ts +12 -12
- package/templates/chat-app/chatjs/generated/installed-cleanup.ts +4 -4
- package/templates/chat-app/chatjs/generated/installed-instrumentation.ts +8 -2
- package/templates/chat-app/chatjs/generated/installed-layout.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed-model-visibility.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed-navigation.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed-routers.ts +18 -19
- package/templates/chat-app/chatjs/generated/installed-session-profiles.ts +5 -3
- package/templates/chat-app/chatjs/generated/installed-sign-out.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed-signed-out.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed-uploads.ts +2 -2
- package/templates/chat-app/chatjs/generated/installed.ts +2 -0
- package/templates/chat-app/chatjs/plugins/ai-titles/{chat.ts → chat-server.ts} +3 -1
- package/templates/chat-app/chatjs/plugins/ai-titles/generate-title.ts +7 -9
- package/templates/chat-app/chatjs/plugins/ai-titles/{chatjs.json → plugin.json} +3 -4
- package/templates/chat-app/chatjs/plugins/ai-titles/title-queries.ts +4 -4
- package/templates/chat-app/chatjs/plugins/attachment-uploads/{client-plugin.ts → chat-ui.ts} +1 -3
- package/templates/chat-app/chatjs/plugins/attachment-uploads/plugin.json +16 -0
- package/templates/chat-app/chatjs/plugins/credits/billing.ts +3 -1
- package/templates/chat-app/chatjs/plugins/credits/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/credits/{chatjs.json → plugin.json} +4 -13
- package/templates/chat-app/chatjs/plugins/credits/router.ts +4 -2
- package/templates/chat-app/chatjs/plugins/desktop/auth-form.tsx +3 -1
- package/templates/chat-app/chatjs/plugins/desktop/auth-server.ts +3 -1
- package/templates/chat-app/chatjs/plugins/desktop/{client-plugin.ts → layout-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/desktop/navigation.ts +3 -1
- package/templates/chat-app/chatjs/plugins/desktop/{chatjs.json → plugin.json} +4 -16
- package/templates/chat-app/chatjs/plugins/desktop/sign-out.ts +3 -1
- package/templates/chat-app/chatjs/plugins/feedback/chat-server.ts +13 -0
- package/templates/chat-app/chatjs/plugins/feedback/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/feedback/feedback-actions.tsx +4 -4
- package/templates/chat-app/chatjs/plugins/feedback/feedback-queries.ts +11 -11
- package/templates/chat-app/chatjs/plugins/feedback/feedback-schema.ts +2 -2
- package/templates/chat-app/chatjs/plugins/feedback/{chatjs.json → plugin.json} +5 -14
- package/templates/chat-app/chatjs/plugins/feedback/router.ts +9 -7
- package/templates/chat-app/chatjs/plugins/feedback/vote-message.ts +3 -6
- package/templates/chat-app/chatjs/plugins/followup-suggestions/{chat.ts → chat-server.ts} +3 -1
- package/templates/chat-app/chatjs/plugins/followup-suggestions/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-queries.ts +2 -2
- package/templates/chat-app/chatjs/plugins/followup-suggestions/{chatjs.json → plugin.json} +5 -17
- package/templates/chat-app/chatjs/plugins/followup-suggestions/router.ts +8 -9
- package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestions.tsx +2 -7
- package/templates/chat-app/chatjs/plugins/followup-suggestions/use-followups.ts +2 -2
- package/templates/chat-app/chatjs/plugins/guest-chat/cleanup.ts +1 -7
- package/templates/chat-app/chatjs/plugins/guest-chat/guest-auth.ts +1 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/instrumentation.ts +6 -0
- package/templates/chat-app/chatjs/plugins/guest-chat/{chatjs.json → plugin.json} +6 -12
- package/templates/chat-app/chatjs/plugins/guest-chat/session-profile.ts +3 -1
- package/templates/chat-app/chatjs/plugins/guest-chat/signed-out.tsx +53 -24
- package/templates/chat-app/chatjs/plugins/image-viewer/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/image-viewer/plugin.json +11 -0
- package/templates/chat-app/chatjs/plugins/mcp/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/mcp/db/encrypted-text.ts +1 -1
- package/templates/chat-app/chatjs/plugins/mcp/{chatjs.json → plugin.json} +5 -13
- package/templates/chat-app/chatjs/plugins/mcp/router.ts +4 -2
- package/templates/chat-app/chatjs/plugins/mcp/routes/connectors-page.tsx +4 -1
- package/templates/chat-app/chatjs/plugins/mcp/setup.ts +2 -2
- package/templates/chat-app/chatjs/plugins/mcp/ui/connectors-settings.tsx +1 -1
- package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-connect-dialog.tsx +1 -1
- package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-create-dialog.tsx +1 -1
- package/templates/chat-app/chatjs/plugins/mcp/{mcp-env.ts → validate-env.ts} +2 -1
- package/templates/chat-app/chatjs/plugins/model-preferences/{client-plugin.ts → chat-ui.ts} +1 -3
- package/templates/chat-app/chatjs/plugins/model-preferences/model-row.tsx +3 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/{use-model-preferences.ts → model-visibility.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/model-preferences/models-settings.tsx +1 -0
- package/templates/chat-app/chatjs/plugins/model-preferences/{chatjs.json → plugin.json} +5 -13
- package/templates/chat-app/chatjs/plugins/model-preferences/router.ts +5 -1
- package/templates/chat-app/chatjs/plugins/projects/{chat.ts → chat-server.ts} +3 -1
- package/templates/chat-app/chatjs/plugins/projects/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/projects/conversation-hook.ts +1 -1
- package/templates/chat-app/chatjs/plugins/projects/db/project-queries.ts +2 -2
- package/templates/chat-app/chatjs/plugins/projects/{chatjs.json → plugin.json} +5 -14
- package/templates/chat-app/chatjs/plugins/projects/router.ts +7 -7
- package/templates/chat-app/chatjs/plugins/projects/routes/project-page.tsx +10 -1
- package/templates/chat-app/chatjs/plugins/projects/ui/chat-contributions.tsx +3 -3
- package/templates/chat-app/chatjs/plugins/projects/ui/delete-project-dialog.tsx +0 -3
- package/templates/chat-app/chatjs/plugins/projects/ui/eve-move-project-dialog.tsx +1 -1
- package/templates/chat-app/chatjs/plugins/projects/ui/project-icon-picker.tsx +1 -0
- package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-projects.tsx +12 -11
- package/templates/chat-app/chatjs/plugins/search/{chat.ts → chat-server.ts} +8 -6
- package/templates/chat-app/chatjs/plugins/search/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/search/{chatjs.json → plugin.json} +5 -14
- package/templates/chat-app/chatjs/plugins/search/router.ts +4 -2
- package/templates/chat-app/chatjs/plugins/search/search-backfill.ts +4 -4
- package/templates/chat-app/chatjs/plugins/search/search-chats.tsx +1 -1
- package/templates/chat-app/chatjs/plugins/search/search-hook.ts +2 -2
- package/templates/chat-app/chatjs/plugins/search/search-queries.ts +13 -13
- package/templates/chat-app/chatjs/plugins/search/search-results-view.tsx +2 -2
- package/templates/chat-app/chatjs/plugins/search/search-schema.ts +3 -3
- package/templates/chat-app/chatjs/plugins/sharing/{chat.ts → chat-server.ts} +3 -1
- package/templates/chat-app/chatjs/plugins/sharing/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/sharing/{chatjs.json → plugin.json} +5 -14
- package/templates/chat-app/chatjs/plugins/sharing/router.ts +4 -2
- package/templates/chat-app/chatjs/plugins/sharing/ui/chat-contributions.tsx +9 -11
- package/templates/chat-app/chatjs/plugins/sharing/ui/share-button.tsx +6 -6
- package/templates/chat-app/chatjs/plugins/sharing/ui/share-dialog.tsx +9 -9
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/plugin.json +12 -0
- package/templates/chat-app/chatjs/plugins/streamdown-math/chat-ui.ts +11 -0
- package/templates/chat-app/chatjs/plugins/streamdown-math/plugin.json +6 -0
- package/templates/chat-app/chatjs/plugins/streamdown-mermaid/chat-ui.ts +10 -0
- package/templates/chat-app/chatjs/plugins/streamdown-mermaid/plugin.json +6 -0
- package/templates/chat-app/chatjs/plugins/video-viewer/{client-plugin.ts → chat-ui.ts} +1 -1
- package/templates/chat-app/chatjs/plugins/video-viewer/plugin.json +10 -0
- package/templates/chat-app/chatjs/providers/gateway.ts +49 -55
- package/templates/chat-app/chatjs/tools/attach-workspace-file/tool.ts +2 -2
- package/templates/chat-app/chatjs/tools/generate-image/tool.test.ts +3 -14
- package/templates/chat-app/components/ai-elements/response.tsx +16 -15
- package/templates/chat-app/components/auth-form-view.tsx +35 -43
- package/templates/chat-app/components/chat/chat-composer.tsx +90 -27
- package/templates/chat-app/components/chat/chat-conversation-screen.tsx +3 -3
- package/templates/chat-app/components/chat/chat-navigation.tsx +11 -1
- package/templates/chat-app/components/chat/chat-sidebar.tsx +8 -9
- package/templates/chat-app/components/chat/chat-transcript.tsx +52 -23
- package/templates/chat-app/components/chat-slots.tsx +1 -1
- package/templates/chat-app/components/composer/composer-menu.tsx +5 -4
- package/templates/chat-app/components/composer/prompt-form.tsx +7 -1
- package/templates/chat-app/components/eve/eve-chat-error.tsx +12 -2
- package/templates/chat-app/components/eve/eve-chat-header.tsx +5 -7
- package/templates/chat-app/components/eve/eve-chat-page.tsx +9 -9
- package/templates/chat-app/components/eve/eve-composer.tsx +16 -5
- package/templates/chat-app/components/eve/eve-conversation.tsx +342 -209
- package/templates/chat-app/components/eve/eve-creation-recovery.tsx +53 -3
- package/templates/chat-app/components/eve/eve-deletion-provider.tsx +10 -12
- package/templates/chat-app/components/eve/eve-history-list.tsx +4 -9
- package/templates/chat-app/components/eve/eve-logical-context.tsx +1 -0
- package/templates/chat-app/components/eve/eve-logical-navigation.tsx +3 -3
- package/templates/chat-app/components/eve/eve-message-content.tsx +252 -0
- package/templates/chat-app/components/eve/eve-message-part.tsx +13 -58
- package/templates/chat-app/components/eve/eve-pending-input.tsx +82 -5
- package/templates/chat-app/components/eve/eve-runtime-provider.tsx +74 -15
- package/templates/chat-app/components/eve/use-eve-composer-draft.ts +64 -26
- package/templates/chat-app/components/eve/use-eve-fork.ts +14 -16
- package/templates/chat-app/components/eve/use-logical-commands.ts +3 -3
- package/templates/chat-app/components/eve/use-new-eve-conversation.tsx +42 -7
- package/templates/chat-app/components/model-selection-indicator.tsx +12 -10
- package/templates/chat-app/components/model-selector-view.tsx +211 -186
- package/templates/chat-app/components/new-chat-button.tsx +1 -1
- package/templates/chat-app/components/parallel-responses/model-picker.tsx +5 -1
- package/templates/chat-app/components/parallel-responses/responses.tsx +2 -2
- package/templates/chat-app/components/settings/settings-nav.tsx +1 -1
- package/templates/chat-app/components/settings/settings-navigation-link.tsx +1 -0
- package/templates/chat-app/components/sidebar-top-row.tsx +1 -1
- package/templates/chat-app/components/ui/sidebar.tsx +1 -1
- package/templates/chat-app/components/ui/trace.tsx +1 -1
- package/templates/chat-app/hooks/use-auto-focus.ts +12 -13
- package/templates/chat-app/integrations/routers.ts +1 -1
- package/templates/chat-app/lib/ai/active-gateway.ts +0 -9
- package/templates/chat-app/lib/ai/app-models.test.ts +0 -4
- package/templates/chat-app/lib/ai/app-models.ts +11 -6
- package/templates/chat-app/lib/ai/gateways/registry.ts +4 -31
- package/templates/chat-app/lib/ai/model-catalog.ts +50 -0
- package/templates/chat-app/lib/ai/models.ts +4 -39
- package/templates/chat-app/lib/ai/providers.ts +2 -16
- package/templates/chat-app/lib/chat-after-create.test.ts +1 -1
- package/templates/chat-app/lib/chat-after-create.ts +1 -1
- package/templates/chat-app/lib/config-schema.ts +0 -96
- package/templates/chat-app/lib/db/eve-creation-failure.ts +3 -3
- package/templates/chat-app/lib/db/eve-current-copy.ts +11 -11
- package/templates/chat-app/lib/db/eve-deletion.ts +19 -19
- package/templates/chat-app/lib/db/eve-dispatch.ts +115 -18
- package/templates/chat-app/lib/db/eve-file-purge.ts +4 -4
- package/templates/chat-app/lib/db/eve-files.ts +13 -13
- package/templates/chat-app/lib/db/eve-queries.ts +28 -43
- package/templates/chat-app/lib/db/eve-response-groups.ts +30 -112
- package/templates/chat-app/lib/db/eve-subagents.ts +8 -8
- package/templates/chat-app/lib/db/eve-title.ts +2 -2
- package/templates/chat-app/lib/db/eve-workspace-deletion.ts +3 -3
- package/templates/chat-app/lib/db/eve-workspace-turns.ts +37 -5
- package/templates/chat-app/lib/db/eve-workspaces.ts +3 -3
- package/templates/chat-app/lib/db/migrations/0029_branch_identifiers.sql +23 -0
- package/templates/chat-app/lib/db/migrations/meta/0029_snapshot.json +2547 -0
- package/templates/chat-app/lib/db/migrations/meta/_journal.json +7 -0
- package/templates/chat-app/lib/db/schema.ts +19 -25
- package/templates/chat-app/lib/devtools-disabled.ts +1 -0
- package/templates/chat-app/lib/eve/completed-copy-source.test.ts +12 -2
- package/templates/chat-app/lib/eve/completed-copy-source.ts +5 -2
- package/templates/chat-app/lib/eve/contracts.test.ts +5 -5
- package/templates/chat-app/lib/eve/contracts.ts +1 -1
- package/templates/chat-app/lib/eve/conversation-scope.test.ts +2 -2
- package/templates/chat-app/lib/eve/conversation-scope.ts +4 -4
- package/templates/chat-app/lib/eve/create-conversation-operation.test.ts +1 -1
- package/templates/chat-app/lib/eve/create-response-group.test.ts +3 -3
- package/templates/chat-app/lib/eve/delete-local-conversation.ts +3 -3
- package/templates/chat-app/lib/eve/generated-files.test.ts +1 -1
- package/templates/chat-app/lib/eve/generated-files.ts +2 -2
- package/templates/chat-app/lib/eve/logical-chat.test.ts +17 -17
- package/templates/chat-app/lib/eve/logical-chat.ts +27 -31
- package/templates/chat-app/lib/eve/logical-response-slots.ts +4 -7
- package/templates/chat-app/lib/eve/message-delivery.ts +1 -0
- package/templates/chat-app/lib/eve/model-selection.test.ts +47 -50
- package/templates/chat-app/lib/eve/model-selection.ts +5 -37
- package/templates/chat-app/lib/eve/pending-create.test.ts +46 -7
- package/templates/chat-app/lib/eve/pending-create.ts +36 -4
- package/templates/chat-app/lib/eve/persisted-wire-order.test.ts +2 -2
- package/templates/chat-app/lib/eve/prepare-deletion.ts +3 -3
- package/templates/chat-app/lib/eve/purge-local-resources.ts +3 -3
- package/templates/chat-app/lib/eve/reconcile-workspace-turn.ts +2 -2
- package/templates/chat-app/lib/eve/request-policy.ts +1 -0
- package/templates/chat-app/lib/eve/resolve-creation-request.ts +1 -1
- package/templates/chat-app/lib/eve/response-group-contracts.ts +1 -1
- package/templates/chat-app/lib/eve/response-group-lineage.test.ts +12 -12
- package/templates/chat-app/lib/eve/response-group-lineage.ts +21 -24
- package/templates/chat-app/lib/eve/response-group.test.ts +2 -2
- package/templates/chat-app/lib/eve/response-group.ts +1 -1
- package/templates/chat-app/lib/eve/response-model.ts +11 -1
- package/templates/chat-app/lib/eve/restore-message-attachments.test.ts +1 -1
- package/templates/chat-app/lib/eve/restore-message-attachments.ts +3 -3
- package/templates/chat-app/lib/eve/retire-session.ts +3 -3
- package/templates/chat-app/lib/eve/steer-rejected.ts +7 -0
- package/templates/chat-app/lib/eve/tool-cost.test.ts +18 -6
- package/templates/chat-app/lib/eve/tool-cost.ts +10 -18
- package/templates/chat-app/lib/eve/workspace-turn-evidence.test.ts +27 -0
- package/templates/chat-app/lib/eve/workspace-turn-evidence.ts +20 -13
- package/templates/chat-app/oxfmt.config.ts +0 -2
- package/templates/chat-app/package.json +7 -9
- package/templates/chat-app/playwright.config.ts +5 -1
- package/templates/chat-app/proxy.ts +2 -4
- package/templates/chat-app/scripts/agent-status.ts +6 -19
- package/templates/chat-app/scripts/build-eve.test.ts +56 -0
- package/templates/chat-app/scripts/build-eve.ts +12 -5
- package/templates/chat-app/scripts/check-env.ts +77 -73
- package/templates/chat-app/scripts/environment-validation-report.ts +1 -20
- package/templates/chat-app/scripts/installed-environment-validation.ts +14 -15
- package/templates/chat-app/trpc/init.ts +2 -0
- package/templates/chat-app/trpc/react.tsx +2 -2
- package/templates/chat-app/trpc/routers/_app.test.ts +56 -0
- package/templates/chat-app/trpc/routers/_app.ts +12 -11
- package/templates/chat-app/trpc/routers/eve.router.ts +2 -2
- package/templates/electron/forge.config.ts +1 -19
- package/templates/electron/scripts/write-branding.ts +1 -5
- package/templates/chat-app/app/privacy/page.tsx +0 -153
- package/templates/chat-app/app/terms/page.tsx +0 -270
- package/templates/chat-app/chatjs/core/installation/plugin.ts +0 -13
- package/templates/chat-app/chatjs/plugins/attachment-uploads/chatjs.json +0 -22
- package/templates/chat-app/chatjs/plugins/credits/server-plugin.ts +0 -5
- package/templates/chat-app/chatjs/plugins/feedback/chat.ts +0 -13
- package/templates/chat-app/chatjs/plugins/feedback/server-plugin.ts +0 -8
- package/templates/chat-app/chatjs/plugins/followup-suggestions/server-plugin.ts +0 -8
- package/templates/chat-app/chatjs/plugins/guest-chat/server-plugin.ts +0 -12
- package/templates/chat-app/chatjs/plugins/image-viewer/chatjs.json +0 -17
- package/templates/chat-app/chatjs/plugins/mcp/server-plugin.ts +0 -5
- package/templates/chat-app/chatjs/plugins/model-preferences/server-plugin.ts +0 -8
- package/templates/chat-app/chatjs/plugins/projects/server-plugin.ts +0 -8
- package/templates/chat-app/chatjs/plugins/search/server-plugin.ts +0 -5
- package/templates/chat-app/chatjs/plugins/sharing/server-plugin.ts +0 -5
- package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/chatjs.json +0 -18
- package/templates/chat-app/chatjs/plugins/video-viewer/chatjs.json +0 -16
- package/templates/chat-app/components/ai-elements/context-hover.radix.tsx +0 -15
- package/templates/chat-app/components/ai-elements/context-hover.tsx +0 -17
- package/templates/chat-app/components/ai-elements/context.tsx +0 -405
- package/templates/chat-app/components/composer/editor.css +0 -96
- package/templates/chat-app/components/lexical-chat-input.tsx +0 -276
- package/templates/chat-app/components/model-selection-indicator.radix.tsx +0 -17
- package/templates/chat-app/components/ui/resizable.tsx +0 -49
- package/templates/chat-app/lib/ai/gateways/fallback-models.ts +0 -29
- package/templates/chat-app/lib/ai/models.generated.ts +0 -4242
- package/templates/chat-app/lib/ai/usage-token-details.test.ts +0 -76
- package/templates/chat-app/lib/ai/usage-token-details.ts +0 -33
- package/templates/chat-app/lib/chat-route.ts +0 -18
- package/templates/chat-app/providers/parse-chat-id-from-pathname.test.ts +0 -126
- package/templates/chat-app/providers/parse-chat-id-from-pathname.ts +0 -51
- package/templates/chat-app/scripts/fetch-models.ts +0 -30
- package/templates/chat-app/scripts/gateway-snapshot-warning.test.ts +0 -9
- /package/templates/chat-app/chatjs/plugins/attachment-uploads/{integration.tsx → uploads.ts} +0 -0
|
@@ -1,405 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { hasCustomContent } from "@/components/custom-content";
|
|
4
|
-
|
|
5
|
-
import type { ComponentProps, JSX as ReactJSX } from "react";
|
|
6
|
-
import React, { createContext, useContext, useMemo } from "react";
|
|
7
|
-
import { getUsage } from "tokenlens";
|
|
8
|
-
import { Button } from "@/components/ui/button";
|
|
9
|
-
import {
|
|
10
|
-
HoverCardContent,
|
|
11
|
-
} from "@/components/ui/hover-card";
|
|
12
|
-
import { ContextHover, ContextHoverTrigger } from "./context-hover";
|
|
13
|
-
import { Progress } from "@/components/ui/progress";
|
|
14
|
-
import type { ReadonlyNativeSurface } from "@/lib/readonly-native-surface";
|
|
15
|
-
import type { StoredLanguageModelUsage } from "@/lib/ai/usage-token-details";
|
|
16
|
-
import { cn } from "@/lib/utils";
|
|
17
|
-
import { getUsageTokenDetails } from "@/lib/ai/usage-token-details";
|
|
18
|
-
|
|
19
|
-
const PERCENT_MAX = 100;
|
|
20
|
-
const NO_KNOWN_TOKENS = 0;
|
|
21
|
-
const NO_KNOWN_COST = 0;
|
|
22
|
-
|
|
23
|
-
type ModelId = string;
|
|
24
|
-
|
|
25
|
-
interface ContextSchema {
|
|
26
|
-
usedTokens: number;
|
|
27
|
-
maxTokens: number;
|
|
28
|
-
usage?: StoredLanguageModelUsage;
|
|
29
|
-
modelId?: ModelId;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const ContextContext = createContext<ContextSchema | null>(null);
|
|
33
|
-
|
|
34
|
-
const useContextValue = (): ContextSchema => {
|
|
35
|
-
const context = useContext(ContextContext);
|
|
36
|
-
|
|
37
|
-
if (!context) {
|
|
38
|
-
throw new Error("Context components must be used within Context");
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return context;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
type ContextProps = ComponentProps<typeof ContextHover> & ContextSchema;
|
|
45
|
-
|
|
46
|
-
const Context = ({
|
|
47
|
-
usedTokens,
|
|
48
|
-
maxTokens,
|
|
49
|
-
usage,
|
|
50
|
-
modelId,
|
|
51
|
-
...props
|
|
52
|
-
}: ContextProps): ReactJSX.Element => {
|
|
53
|
-
const contextValue = useMemo(
|
|
54
|
-
() => ({ maxTokens, modelId, usage, usedTokens }),
|
|
55
|
-
[maxTokens, modelId, usage, usedTokens]
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
<ContextContext.Provider value={contextValue}>
|
|
60
|
-
<ContextHover {...props} />
|
|
61
|
-
</ContextContext.Provider>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
type ContextTriggerProps = ComponentProps<typeof Button>;
|
|
66
|
-
|
|
67
|
-
const ContextTrigger = ({
|
|
68
|
-
children,
|
|
69
|
-
...props
|
|
70
|
-
}: ContextTriggerProps): React.JSX.Element => {
|
|
71
|
-
const { usedTokens, maxTokens } = useContextValue();
|
|
72
|
-
const usedPercent = usedTokens / maxTokens;
|
|
73
|
-
const renderedPercent = new Intl.NumberFormat("en-US", {
|
|
74
|
-
maximumFractionDigits: 1,
|
|
75
|
-
style: "percent",
|
|
76
|
-
}).format(usedPercent);
|
|
77
|
-
|
|
78
|
-
return (
|
|
79
|
-
<ContextHoverTrigger button={
|
|
80
|
-
<Button type="button" variant="outline" size="sm" {...props}>
|
|
81
|
-
{children ?? <span>{renderedPercent} context</span>}
|
|
82
|
-
</Button>
|
|
83
|
-
} />
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
type ContextContentProps = (Omit<ComponentProps<typeof HoverCardContent>, "className"> & { className?: string });
|
|
88
|
-
|
|
89
|
-
const ContextContent = ({
|
|
90
|
-
className,
|
|
91
|
-
...props
|
|
92
|
-
}: ContextContentProps): React.JSX.Element => (
|
|
93
|
-
<HoverCardContent
|
|
94
|
-
className={cn("min-w-60 divide-y overflow-hidden p-0", className)}
|
|
95
|
-
{...props}
|
|
96
|
-
/>
|
|
97
|
-
);
|
|
98
|
-
|
|
99
|
-
type ContextContentHeaderProps = ComponentProps<"div">;
|
|
100
|
-
|
|
101
|
-
const ContextContentHeader = ({
|
|
102
|
-
children,
|
|
103
|
-
className,
|
|
104
|
-
...props
|
|
105
|
-
}: ContextContentHeaderProps): React.JSX.Element => {
|
|
106
|
-
const { usedTokens, maxTokens } = useContextValue();
|
|
107
|
-
const usedPercent = usedTokens / maxTokens;
|
|
108
|
-
const displayPct = new Intl.NumberFormat("en-US", {
|
|
109
|
-
maximumFractionDigits: 1,
|
|
110
|
-
style: "percent",
|
|
111
|
-
}).format(usedPercent);
|
|
112
|
-
const used = new Intl.NumberFormat("en-US", {
|
|
113
|
-
notation: "compact",
|
|
114
|
-
}).format(usedTokens);
|
|
115
|
-
const total = new Intl.NumberFormat("en-US", {
|
|
116
|
-
notation: "compact",
|
|
117
|
-
}).format(maxTokens);
|
|
118
|
-
|
|
119
|
-
return (
|
|
120
|
-
<div className={cn("w-full space-y-2 p-3", className)} {...props}>
|
|
121
|
-
{children ?? (
|
|
122
|
-
<>
|
|
123
|
-
<div className="flex items-center justify-between gap-3 text-xs">
|
|
124
|
-
<p>{displayPct}</p>
|
|
125
|
-
<p className="text-muted-foreground font-mono">
|
|
126
|
-
{used} / {total}
|
|
127
|
-
</p>
|
|
128
|
-
</div>
|
|
129
|
-
<div className="space-y-2">
|
|
130
|
-
<Progress aria-label="Context used" value={usedPercent * PERCENT_MAX} />
|
|
131
|
-
</div>
|
|
132
|
-
</>
|
|
133
|
-
)}
|
|
134
|
-
</div>
|
|
135
|
-
);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
type ContextContentBodyProps = ComponentProps<"div">;
|
|
139
|
-
|
|
140
|
-
const ContextContentBody = ({
|
|
141
|
-
children,
|
|
142
|
-
className,
|
|
143
|
-
...props
|
|
144
|
-
}: ContextContentBodyProps): React.JSX.Element => (
|
|
145
|
-
<div className={cn("w-full p-3", className)} {...props}>
|
|
146
|
-
{children}
|
|
147
|
-
</div>
|
|
148
|
-
);
|
|
149
|
-
|
|
150
|
-
type ContextContentFooterProps = ComponentProps<"div">;
|
|
151
|
-
|
|
152
|
-
const ContextContentFooter = ({
|
|
153
|
-
children,
|
|
154
|
-
className,
|
|
155
|
-
...props
|
|
156
|
-
}: ContextContentFooterProps): React.JSX.Element => {
|
|
157
|
-
const { modelId, usage } = useContextValue();
|
|
158
|
-
const costUSD =
|
|
159
|
-
typeof modelId === "string" && modelId !== ""
|
|
160
|
-
? getUsage({
|
|
161
|
-
modelId,
|
|
162
|
-
usage: {
|
|
163
|
-
input: usage?.inputTokens ?? NO_KNOWN_TOKENS,
|
|
164
|
-
output: usage?.outputTokens ?? NO_KNOWN_TOKENS,
|
|
165
|
-
},
|
|
166
|
-
}).costUSD?.totalUSD
|
|
167
|
-
: undefined;
|
|
168
|
-
const totalCost = new Intl.NumberFormat("en-US", {
|
|
169
|
-
currency: "USD",
|
|
170
|
-
style: "currency",
|
|
171
|
-
}).format(costUSD ?? NO_KNOWN_COST);
|
|
172
|
-
|
|
173
|
-
return (
|
|
174
|
-
<div
|
|
175
|
-
className={cn(
|
|
176
|
-
"bg-secondary flex w-full items-center justify-between gap-3 p-3 text-xs",
|
|
177
|
-
className
|
|
178
|
-
)}
|
|
179
|
-
{...props}
|
|
180
|
-
>
|
|
181
|
-
{children ?? (
|
|
182
|
-
<>
|
|
183
|
-
<span className="text-muted-foreground">Total cost</span>
|
|
184
|
-
<span>{totalCost}</span>
|
|
185
|
-
</>
|
|
186
|
-
)}
|
|
187
|
-
</div>
|
|
188
|
-
);
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
type ContextInputUsageProps = ComponentProps<"div">;
|
|
192
|
-
type ContextUsageResult =
|
|
193
|
-
| Exclude<React.ReactNode, false | undefined>
|
|
194
|
-
| React.JSX.Element
|
|
195
|
-
| null;
|
|
196
|
-
|
|
197
|
-
const TokensWithCost = ({
|
|
198
|
-
tokens,
|
|
199
|
-
costText,
|
|
200
|
-
}: {
|
|
201
|
-
readonly tokens?: number;
|
|
202
|
-
readonly costText?: string;
|
|
203
|
-
}): React.JSX.Element => (
|
|
204
|
-
<span>
|
|
205
|
-
{tokens === undefined
|
|
206
|
-
? "—"
|
|
207
|
-
: new Intl.NumberFormat("en-US", {
|
|
208
|
-
notation: "compact",
|
|
209
|
-
}).format(tokens)}
|
|
210
|
-
{typeof costText === "string" && costText !== "" ? (
|
|
211
|
-
<span className="text-muted-foreground ml-2">• {costText}</span>
|
|
212
|
-
) : null}
|
|
213
|
-
</span>
|
|
214
|
-
);
|
|
215
|
-
|
|
216
|
-
const ContextInputUsage = ({
|
|
217
|
-
className,
|
|
218
|
-
children,
|
|
219
|
-
...props
|
|
220
|
-
}: ContextInputUsageProps): ContextUsageResult => {
|
|
221
|
-
const { usage, modelId } = useContextValue();
|
|
222
|
-
const inputTokens = usage?.inputTokens ?? NO_KNOWN_TOKENS;
|
|
223
|
-
|
|
224
|
-
if (hasCustomContent(children)) {
|
|
225
|
-
return children;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (!inputTokens) {
|
|
229
|
-
return null;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
const inputCost =
|
|
233
|
-
typeof modelId === "string" && modelId !== ""
|
|
234
|
-
? getUsage({
|
|
235
|
-
modelId,
|
|
236
|
-
usage: { input: inputTokens, output: NO_KNOWN_TOKENS },
|
|
237
|
-
}).costUSD?.totalUSD
|
|
238
|
-
: undefined;
|
|
239
|
-
const inputCostText = new Intl.NumberFormat("en-US", {
|
|
240
|
-
currency: "USD",
|
|
241
|
-
style: "currency",
|
|
242
|
-
}).format(inputCost ?? NO_KNOWN_COST);
|
|
243
|
-
|
|
244
|
-
return (
|
|
245
|
-
<div
|
|
246
|
-
className={cn("flex items-center justify-between text-xs", className)}
|
|
247
|
-
{...props}
|
|
248
|
-
>
|
|
249
|
-
<span className="text-muted-foreground">Input</span>
|
|
250
|
-
<TokensWithCost costText={inputCostText} tokens={inputTokens} />
|
|
251
|
-
</div>
|
|
252
|
-
);
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
type ContextOutputUsageProps = ComponentProps<"div">;
|
|
256
|
-
|
|
257
|
-
const ContextOutputUsage = ({
|
|
258
|
-
className,
|
|
259
|
-
children,
|
|
260
|
-
...props
|
|
261
|
-
}: ContextOutputUsageProps): ContextUsageResult => {
|
|
262
|
-
const { usage, modelId } = useContextValue();
|
|
263
|
-
const outputTokens = usage?.outputTokens ?? NO_KNOWN_TOKENS;
|
|
264
|
-
|
|
265
|
-
if (hasCustomContent(children)) {
|
|
266
|
-
return children;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (!outputTokens) {
|
|
270
|
-
return null;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
const outputCost =
|
|
274
|
-
typeof modelId === "string" && modelId !== ""
|
|
275
|
-
? getUsage({
|
|
276
|
-
modelId,
|
|
277
|
-
usage: { input: NO_KNOWN_TOKENS, output: outputTokens },
|
|
278
|
-
}).costUSD?.totalUSD
|
|
279
|
-
: undefined;
|
|
280
|
-
const outputCostText = new Intl.NumberFormat("en-US", {
|
|
281
|
-
currency: "USD",
|
|
282
|
-
style: "currency",
|
|
283
|
-
}).format(outputCost ?? NO_KNOWN_COST);
|
|
284
|
-
|
|
285
|
-
return (
|
|
286
|
-
<div
|
|
287
|
-
className={cn("flex items-center justify-between text-xs", className)}
|
|
288
|
-
{...props}
|
|
289
|
-
>
|
|
290
|
-
<span className="text-muted-foreground">Output</span>
|
|
291
|
-
<TokensWithCost costText={outputCostText} tokens={outputTokens} />
|
|
292
|
-
</div>
|
|
293
|
-
);
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
type ContextReasoningUsageProps = ComponentProps<"div">;
|
|
297
|
-
|
|
298
|
-
const ContextReasoningUsage = ({
|
|
299
|
-
className,
|
|
300
|
-
children,
|
|
301
|
-
...props
|
|
302
|
-
}: ContextReasoningUsageProps): ContextUsageResult => {
|
|
303
|
-
const { usage, modelId } = useContextValue();
|
|
304
|
-
const { reasoningTokens } = getUsageTokenDetails(usage);
|
|
305
|
-
|
|
306
|
-
if (hasCustomContent(children)) {
|
|
307
|
-
return children;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
if (!reasoningTokens) {
|
|
311
|
-
return null;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
const reasoningCost =
|
|
315
|
-
typeof modelId === "string" && modelId !== ""
|
|
316
|
-
? getUsage({
|
|
317
|
-
modelId,
|
|
318
|
-
usage: { reasoningTokens },
|
|
319
|
-
}).costUSD?.totalUSD
|
|
320
|
-
: undefined;
|
|
321
|
-
const reasoningCostText = new Intl.NumberFormat("en-US", {
|
|
322
|
-
currency: "USD",
|
|
323
|
-
style: "currency",
|
|
324
|
-
}).format(reasoningCost ?? NO_KNOWN_COST);
|
|
325
|
-
|
|
326
|
-
return (
|
|
327
|
-
<div
|
|
328
|
-
className={cn("flex items-center justify-between text-xs", className)}
|
|
329
|
-
{...props}
|
|
330
|
-
>
|
|
331
|
-
<span className="text-muted-foreground">Reasoning</span>
|
|
332
|
-
<TokensWithCost costText={reasoningCostText} tokens={reasoningTokens} />
|
|
333
|
-
</div>
|
|
334
|
-
);
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
type ContextCacheUsageProps = ComponentProps<"div">;
|
|
338
|
-
|
|
339
|
-
const ContextCacheUsage = ({
|
|
340
|
-
className,
|
|
341
|
-
children,
|
|
342
|
-
...props
|
|
343
|
-
}: ContextCacheUsageProps): ContextUsageResult => {
|
|
344
|
-
const { usage, modelId } = useContextValue();
|
|
345
|
-
const cacheTokens = getUsageTokenDetails(usage).cachedInputTokens;
|
|
346
|
-
|
|
347
|
-
if (hasCustomContent(children)) {
|
|
348
|
-
return children;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
if (!cacheTokens) {
|
|
352
|
-
return null;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
const cacheCost =
|
|
356
|
-
typeof modelId === "string" && modelId !== ""
|
|
357
|
-
? getUsage({
|
|
358
|
-
modelId,
|
|
359
|
-
usage: {
|
|
360
|
-
cacheReads: cacheTokens,
|
|
361
|
-
input: NO_KNOWN_TOKENS,
|
|
362
|
-
output: NO_KNOWN_TOKENS,
|
|
363
|
-
},
|
|
364
|
-
}).costUSD?.totalUSD
|
|
365
|
-
: undefined;
|
|
366
|
-
const cacheCostText = new Intl.NumberFormat("en-US", {
|
|
367
|
-
currency: "USD",
|
|
368
|
-
style: "currency",
|
|
369
|
-
}).format(cacheCost ?? NO_KNOWN_COST);
|
|
370
|
-
|
|
371
|
-
return (
|
|
372
|
-
<div
|
|
373
|
-
className={cn("flex items-center justify-between text-xs", className)}
|
|
374
|
-
{...props}
|
|
375
|
-
>
|
|
376
|
-
<span className="text-muted-foreground">Cache</span>
|
|
377
|
-
<TokensWithCost costText={cacheCostText} tokens={cacheTokens} />
|
|
378
|
-
</div>
|
|
379
|
-
);
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
export {
|
|
383
|
-
Context,
|
|
384
|
-
ContextCacheUsage,
|
|
385
|
-
ContextContent,
|
|
386
|
-
ContextContentBody,
|
|
387
|
-
ContextContentFooter,
|
|
388
|
-
ContextContentHeader,
|
|
389
|
-
ContextInputUsage,
|
|
390
|
-
ContextOutputUsage,
|
|
391
|
-
ContextReasoningUsage,
|
|
392
|
-
ContextTrigger,
|
|
393
|
-
};
|
|
394
|
-
export type {
|
|
395
|
-
ContextCacheUsageProps,
|
|
396
|
-
ContextContentBodyProps,
|
|
397
|
-
ContextContentFooterProps,
|
|
398
|
-
ContextContentHeaderProps,
|
|
399
|
-
ContextContentProps,
|
|
400
|
-
ContextInputUsageProps,
|
|
401
|
-
ContextOutputUsageProps,
|
|
402
|
-
ContextProps,
|
|
403
|
-
ContextReasoningUsageProps,
|
|
404
|
-
ContextTriggerProps,
|
|
405
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/* Lexical Editor Styles */
|
|
2
|
-
.lexical-editor-container {
|
|
3
|
-
position: relative;
|
|
4
|
-
width: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.lexical-content-editable {
|
|
8
|
-
position: relative;
|
|
9
|
-
overflow-y: auto;
|
|
10
|
-
font-family: inherit;
|
|
11
|
-
font-size: inherit;
|
|
12
|
-
line-height: 1.5;
|
|
13
|
-
color: inherit;
|
|
14
|
-
word-break: break-word;
|
|
15
|
-
white-space: pre-wrap;
|
|
16
|
-
resize: none;
|
|
17
|
-
user-select: text;
|
|
18
|
-
outline: none;
|
|
19
|
-
scrollbar-width: thin;
|
|
20
|
-
background: transparent;
|
|
21
|
-
border: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.lexical-content-editable::-webkit-scrollbar {
|
|
25
|
-
width: 4px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.lexical-content-editable::-webkit-scrollbar-track {
|
|
29
|
-
background: transparent;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.lexical-content-editable::-webkit-scrollbar-thumb {
|
|
33
|
-
background: color-mix(in oklch, var(--muted-foreground) 30%, transparent);
|
|
34
|
-
border-radius: 2px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.lexical-content-editable::-webkit-scrollbar-thumb:hover {
|
|
38
|
-
background: color-mix(in oklch, var(--muted-foreground) 50%, transparent);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.lexical-placeholder {
|
|
42
|
-
position: absolute;
|
|
43
|
-
top: 0;
|
|
44
|
-
right: 0;
|
|
45
|
-
bottom: 0;
|
|
46
|
-
left: 0;
|
|
47
|
-
z-index: 1;
|
|
48
|
-
color: var(--muted-foreground);
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
user-select: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.lexical-root {
|
|
54
|
-
position: relative;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.lexical-root p {
|
|
58
|
-
padding: 0;
|
|
59
|
-
margin: 0;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.lexical-root p:first-child {
|
|
63
|
-
margin-top: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.lexical-root p:last-child {
|
|
67
|
-
margin-bottom: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* Focus styles */
|
|
71
|
-
.lexical-content-editable:focus {
|
|
72
|
-
outline: none;
|
|
73
|
-
box-shadow: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Ensure proper text selection */
|
|
77
|
-
.lexical-content-editable::selection {
|
|
78
|
-
background: color-mix(in oklch, var(--primary) 30%, transparent);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* Responsive adjustments */
|
|
82
|
-
@media (max-width: 768px) {
|
|
83
|
-
.lexical-content-editable {
|
|
84
|
-
font-size: 16px; /* Prevent zoom on iOS */
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.editor-input {
|
|
89
|
-
position: relative;
|
|
90
|
-
padding: 10px 10px 5px;
|
|
91
|
-
font-size: 15px;
|
|
92
|
-
tab-size: 1;
|
|
93
|
-
caret-color: currentColor;
|
|
94
|
-
resize: none;
|
|
95
|
-
outline: 0;
|
|
96
|
-
}
|