@alia.onl/sdk 21.5.1 → 21.5.2
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/CHANGELOG.md +15 -0
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/components/AliaChatSheet.tsx +0 -2
- package/src/components/thread/AliaThread.tsx +3 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @alia.onl/sdk
|
|
2
2
|
|
|
3
|
+
## 21.5.2
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Welcome and conversation sheets grow and shrink with their content up to Bloom’s
|
|
8
|
+
available-height limit, instead of filling the entire frame. Bloom owns the Screen
|
|
9
|
+
sizing, scrolling, keyboard clearance and safe areas.
|
|
10
|
+
- The empty thread no longer adds composer clearance a second time. Growing and
|
|
11
|
+
shrinking a draft now changes the sheet height by the composer’s actual change.
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- The Bloom peer is `>=15.10.1 <16.0.0`, which provides intrinsic Screen sizing
|
|
16
|
+
inside content-sized sheets and clips decorative chat backgrounds.
|
|
17
|
+
|
|
3
18
|
## 21.5.1
|
|
4
19
|
|
|
5
20
|
### Fixed
|
package/README.md
CHANGED
|
@@ -27,9 +27,9 @@ the default in Expo SDK 53+), because every icon import is a subpath.
|
|
|
27
27
|
|
|
28
28
|
The chat is built from Bloom (`@oxy.so/bloom`, a peer dependency): mount Bloom's
|
|
29
29
|
`BloomProvider` above it, with the one `KeyboardProvider` your app already has.
|
|
30
|
-
The main and conversation sheets
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
The main and conversation sheets use Bloom's default content sizing: they grow and
|
|
31
|
+
shrink with the chat up to the shared viewport limit. Bloom coordinates the Screen
|
|
32
|
+
content, safe areas and keyboard clearance. Hosts should not add window-height calculations or a second
|
|
33
33
|
scroll container to make an embedded chat visible.
|
|
34
34
|
|
|
35
35
|
Alia's avatar is Bloom's 3D character (`AgentAvatar`). It draws through a runtime of
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alia.onl/sdk",
|
|
3
|
-
"version": "21.5.
|
|
3
|
+
"version": "21.5.2",
|
|
4
4
|
"description": "Alia AI chat SDK — the conversation runtime, chat UI, voice calls and dictation for Oxy apps",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"react": "^19.2.3",
|
|
55
55
|
"react-native": "^0.86.0 || ^0.88.0",
|
|
56
56
|
"@expo/vector-icons": "^15.1.1",
|
|
57
|
-
"@oxy.so/bloom": ">=15.10.
|
|
57
|
+
"@oxy.so/bloom": ">=15.10.1 <16.0.0",
|
|
58
58
|
"@oxy.so/core": ">=3.0.0",
|
|
59
59
|
"@oxy.so/services": ">=12.1.0",
|
|
60
60
|
"@tanstack/react-query": "^5.101",
|
|
@@ -301,7 +301,6 @@ const AliaChatSheetBody = forwardRef<AliaChatSheetRef, AliaChatSheetProps>(
|
|
|
301
301
|
<AgentAvatarProvider runtimeUrl={characterRuntimeUrl}>
|
|
302
302
|
<BottomSheet
|
|
303
303
|
ref={mainRef}
|
|
304
|
-
sizing="fill"
|
|
305
304
|
detached={detached}
|
|
306
305
|
scrollable={false}
|
|
307
306
|
manualActivation
|
|
@@ -334,7 +333,6 @@ const AliaChatSheetBody = forwardRef<AliaChatSheetRef, AliaChatSheetProps>(
|
|
|
334
333
|
<BottomSheet
|
|
335
334
|
key={conversation.key}
|
|
336
335
|
ref={conversationRef}
|
|
337
|
-
sizing="fill"
|
|
338
336
|
detached={detached}
|
|
339
337
|
scrollable={false}
|
|
340
338
|
manualActivation
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { AgentThinking } from '@oxy.so/bloom/agent-thinking';
|
|
2
|
-
import {
|
|
3
|
-
AiChatThread,
|
|
4
|
-
type AiChatThreadHandle,
|
|
5
|
-
useAiChatChromeInsets,
|
|
6
|
-
} from '@oxy.so/bloom/ai-chat';
|
|
2
|
+
import { AiChatThread, type AiChatThreadHandle } from '@oxy.so/bloom/ai-chat';
|
|
7
3
|
import { ChatDateHeader } from '@oxy.so/bloom/chat-screen';
|
|
8
4
|
import { Divider } from '@oxy.so/bloom/divider';
|
|
9
5
|
import { Loading } from '@oxy.so/bloom/loading';
|
|
@@ -263,16 +259,12 @@ export const AliaThread = memo(function AliaThread({
|
|
|
263
259
|
onScroll,
|
|
264
260
|
});
|
|
265
261
|
|
|
266
|
-
const chromeInsets = useAiChatChromeInsets();
|
|
267
262
|
const nothingToShow =
|
|
268
263
|
rows.length === 0 && !conversationLoading && !isLoading && !loadingHistory && !voiceThinking;
|
|
269
264
|
if (nothingToShow) {
|
|
270
265
|
return (
|
|
271
|
-
//
|
|
272
|
-
<View
|
|
273
|
-
className="flex-1 justify-center px-4"
|
|
274
|
-
style={{ paddingBottom: chromeInsets?.bottom ?? 0 }}
|
|
275
|
-
>
|
|
266
|
+
// Screen reserves the composer; the empty state only owns its alignment.
|
|
267
|
+
<View className="flex-1 justify-center px-4">
|
|
276
268
|
<View className="w-full max-w-[768px] self-center">{empty}</View>
|
|
277
269
|
</View>
|
|
278
270
|
);
|