@alia.onl/sdk 3.1.1 → 3.1.3

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.
Files changed (34) hide show
  1. package/alia.onl-sdk-3.1.3.tgz +0 -0
  2. package/package.json +80 -69
  3. package/src/animations.ts +6 -0
  4. package/src/components/AliaChatContent.tsx +215 -253
  5. package/src/components/AliaChatMessageList.tsx +9 -4
  6. package/src/components/AliaChatScreen.tsx +28 -42
  7. package/src/components/AliaChatSheet.tsx +40 -55
  8. package/src/components/AliaMark.tsx +144 -0
  9. package/src/components/AliaWelcomeMessage.tsx +5 -5
  10. package/src/components/Markdown.tsx +18 -18
  11. package/src/components/PlanPreviewCard.tsx +3 -2
  12. package/src/components/ThinkingIndicator.tsx +6 -27
  13. package/src/components/ui/chat-text-input.tsx +4 -3
  14. package/src/components/ui/dropdown-menu.web.tsx +9 -8
  15. package/src/components/ui/prompt-input/autocomplete.tsx +1 -1
  16. package/src/components/ui/prompt-input/context.tsx +1 -1
  17. package/src/components/ui/prompt-input/prompt-input.tsx +3 -1
  18. package/src/components/voice/AudioWaveVisualizer.tsx +27 -10
  19. package/src/components/voice/VoiceOverlay.tsx +37 -9
  20. package/src/hooks/useAliaChat.ts +6 -6
  21. package/src/hooks/useAmbientWave.ts +142 -0
  22. package/src/hooks/useAudioLevelMonitor.ts +6 -6
  23. package/src/hooks/useDocumentPicker.ts +1 -1
  24. package/src/hooks/useImagePicker.ts +1 -1
  25. package/src/hooks/useSoundEffects.ts +6 -5
  26. package/src/hooks/useSpeechToText.ts +21 -7
  27. package/src/hooks/useTTS.ts +6 -4
  28. package/src/hooks/useVoiceRoom.ts +52 -7
  29. package/src/index.ts +4 -2
  30. package/src/lib/content-utils.ts +18 -6
  31. package/src/lib/utils.ts +11 -0
  32. package/src/optional-deps.d.ts +76 -15
  33. package/src/types.ts +4 -4
  34. package/src/components/AliaFace.tsx +0 -452
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alia.onl/sdk",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "Alia AI chat SDK — reusable chat UI, voice, and streaming components for Oxy apps",
5
5
  "main": "src/index.ts",
6
6
  "react-native": "src/index.ts",
@@ -11,78 +11,89 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "react-native-markdown-display": "^7.0.2-0",
15
- "zustand": ">=4"
14
+ "@radix-ui/react-icons": "^1.3.2",
15
+ "@tanstack/query-async-storage-persister": "^5.101.2",
16
+ "@tanstack/react-query": "^5.101.2",
17
+ "@tanstack/react-query-persist-client": "^5.101.2",
18
+ "react-native-markdown-display": "^7.0.2",
19
+ "zustand": "^5.0.14"
16
20
  },
17
21
  "peerDependencies": {
18
- "react": ">=18",
19
- "react-native": ">=0.73",
20
- "@oxyhq/services": "6.10.7",
21
- "expo-blur": "*",
22
- "react-native-reanimated": ">=3",
23
- "react-native-gesture-handler": ">=2",
24
- "react-native-safe-area-context": ">=4",
25
- "react-native-keyboard-controller": ">=1",
26
- "react-native-svg": ">=13",
27
- "livekit-client": ">=2.0.0",
28
- "expo-audio": ">=0.1.0",
29
- "nativewind": ">=4",
30
- "clsx": ">=2",
31
- "tailwind-merge": ">=2",
32
- "class-variance-authority": ">=0.7",
33
- "zeego": ">=3",
34
- "expo-image": ">=1",
35
- "expo-image-picker": ">=15",
36
- "expo-document-picker": ">=12",
37
- "expo-clipboard": ">=6",
38
- "lucide-react-native": ">=0.300",
39
- "@radix-ui/react-dropdown-menu": ">=2"
22
+ "react": "^19.2.3",
23
+ "react-native": "^0.86.0",
24
+ "@oxyhq/services": "^20.0.0",
25
+ "@react-native-async-storage/async-storage": "^2.2.0",
26
+ "socket.io-client": "^4.8.3",
27
+ "expo-font": "^57.0.0",
28
+ "expo-blur": "^57.0.0",
29
+ "react-native-reanimated": "^4.5.0",
30
+ "react-native-gesture-handler": "^2.32.0",
31
+ "react-native-safe-area-context": "^5.8.0",
32
+ "react-native-keyboard-controller": "^1.21.9",
33
+ "react-native-svg": "^15.15.4",
34
+ "livekit-client": "^2.20.1",
35
+ "expo-audio": "^57.0.0",
36
+ "nativewind": "^5.0.0-preview.3",
37
+ "clsx": "^2.1.1",
38
+ "tailwind-merge": "^3.6.0",
39
+ "class-variance-authority": "^0.7.1",
40
+ "zeego": "^3.0.6",
41
+ "expo-image": "^57.0.0",
42
+ "expo-image-picker": "^57.0.2",
43
+ "expo-document-picker": "^57.0.0",
44
+ "expo-clipboard": "^57.0.0",
45
+ "lucide-react-native": "^0.562.0",
46
+ "@radix-ui/react-dropdown-menu": "^2.1.20",
47
+ "expo-haptics": "*"
40
48
  },
41
49
  "peerDependenciesMeta": {
42
50
  "livekit-client": {
43
- "optional": true
51
+ "optional": true
52
+ },
53
+ "expo-audio": {
54
+ "optional": true
55
+ },
56
+ "react-native-svg": {
57
+ "optional": true
58
+ },
59
+ "nativewind": {
60
+ "optional": true
61
+ },
62
+ "clsx": {
63
+ "optional": true
64
+ },
65
+ "tailwind-merge": {
66
+ "optional": true
67
+ },
68
+ "class-variance-authority": {
69
+ "optional": true
70
+ },
71
+ "zeego": {
72
+ "optional": true
73
+ },
74
+ "expo-image": {
75
+ "optional": true
76
+ },
77
+ "expo-image-picker": {
78
+ "optional": true
79
+ },
80
+ "expo-document-picker": {
81
+ "optional": true
82
+ },
83
+ "expo-clipboard": {
84
+ "optional": true
85
+ },
86
+ "lucide-react-native": {
87
+ "optional": true
88
+ },
89
+ "@radix-ui/react-dropdown-menu": {
90
+ "optional": true
91
+ },
92
+ "expo-haptics": {
93
+ "optional": true
94
+ }
44
95
  },
45
- "expo-audio": {
46
- "optional": true
47
- },
48
- "react-native-svg": {
49
- "optional": true
50
- },
51
- "nativewind": {
52
- "optional": true
53
- },
54
- "clsx": {
55
- "optional": true
56
- },
57
- "tailwind-merge": {
58
- "optional": true
59
- },
60
- "class-variance-authority": {
61
- "optional": true
62
- },
63
- "zeego": {
64
- "optional": true
65
- },
66
- "expo-image": {
67
- "optional": true
68
- },
69
- "expo-image-picker": {
70
- "optional": true
71
- },
72
- "expo-document-picker": {
73
- "optional": true
74
- },
75
- "expo-clipboard": {
76
- "optional": true
77
- },
78
- "lucide-react-native": {
79
- "optional": true
80
- },
81
- "@radix-ui/react-dropdown-menu": {
82
- "optional": true
83
- }
84
- },
85
- "devDependencies": {
86
- "typescript": "^5.9.3"
87
- }
96
+ "devDependencies": {
97
+ "typescript": "^5.9.3"
98
+ }
88
99
  }
@@ -0,0 +1,6 @@
1
+ import { Easing, FadeInUp } from 'react-native-reanimated';
2
+
3
+ const easeOut = Easing.bezier(0.16, 1, 0.3, 1);
4
+
5
+ export const planPreviewEnter = FadeInUp.duration(220).easing(easeOut);
6
+ export const chatMessageEnter = FadeInUp.duration(220).easing(easeOut);