-
- {showPlusPopover && !isAssistantsEndpoint(endpoint) && (
-
- )}
- {showMentionPopover && (
-
- )}
-
-
-
-
-
- {endpoint && (
- <>
-
- {
- ref(e);
- textAreaRef.current = e;
- }}
- disabled={disableInputs}
- onPaste={handlePaste}
- onKeyDown={handleKeyDown}
- onKeyUp={handleKeyUp}
- onHeightChange={() => {
- if (textAreaRef.current) {
- const scrollable = checkIfScrollable(textAreaRef.current);
- setIsScrollable(scrollable);
- }
- }}
- onCompositionStart={handleCompositionStart}
- onCompositionEnd={handleCompositionEnd}
- id={mainTextareaId}
- tabIndex={0}
- data-testid="text-input"
- rows={1}
- onFocus={() => isCollapsed && setIsCollapsed(false)}
- onClick={() => isCollapsed && setIsCollapsed(false)}
- style={{ height: 44, overflowY: 'auto' }}
- className={cn(
- baseClasses,
- speechClass,
- removeFocusRings,
- 'transition-[max-height] duration-200',
- )}
- />
- >
- )}
-
- {SpeechToText && (
-
+
-
-
+
+
+ >
);
};
diff --git a/client/vite.config.ts b/client/vite.config.ts
index 745e4897f6..809601e990 100644
--- a/client/vite.config.ts
+++ b/client/vite.config.ts
@@ -62,7 +62,7 @@ export default defineConfig({
useCredentials: true,
workbox: {
globPatterns: ['assets/**/*.{png,jpg,svg,ico}', '**/*.{js,css,html,ico,woff2}'],
- maximumFileSizeToCacheInBytes: 4 * 1024 * 1024,
+ maximumFileSizeToCacheInBytes: 5 * 1024 * 1024,
navigateFallbackDenylist: [/^\/oauth/],
},
manifest: {