@copilotkit/react-native 2.0.0-rc.22 → 2.0.0-rc.24
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotkit/react-native",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@ag-ui/client": "1.0.2",
|
|
80
|
-
"@copilotkit/core": "2.0.0-rc.
|
|
81
|
-
"@copilotkit/markdown": "2.0.0-rc.
|
|
82
|
-
"@copilotkit/react-core": "2.0.0-rc.
|
|
83
|
-
"@copilotkit/shared": "2.0.0-rc.
|
|
80
|
+
"@copilotkit/core": "2.0.0-rc.24",
|
|
81
|
+
"@copilotkit/markdown": "2.0.0-rc.24",
|
|
82
|
+
"@copilotkit/react-core": "2.0.0-rc.24",
|
|
83
|
+
"@copilotkit/shared": "2.0.0-rc.24",
|
|
84
84
|
"web-streams-polyfill": "^4.2.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
@@ -30,6 +30,36 @@ export const ScrollView = createMockComponent("ScrollView");
|
|
|
30
30
|
export const ActivityIndicator = createMockComponent("ActivityIndicator");
|
|
31
31
|
export const Image = createMockComponent("Image");
|
|
32
32
|
|
|
33
|
+
// A no-op Animated API. Components such as TypingIndicator create
|
|
34
|
+
// Animated.Value instances and start timing loops at render time; in tests the
|
|
35
|
+
// values never change and the animations never run.
|
|
36
|
+
class AnimatedValue {
|
|
37
|
+
constructor(private value: number) {}
|
|
38
|
+
setValue(value: number) {
|
|
39
|
+
this.value = value;
|
|
40
|
+
}
|
|
41
|
+
interpolate({ outputRange }: { outputRange: unknown[] }) {
|
|
42
|
+
return outputRange[0];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const noopAnimation = () => ({
|
|
47
|
+
start: () => {},
|
|
48
|
+
stop: () => {},
|
|
49
|
+
reset: () => {},
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export const Animated = {
|
|
53
|
+
Value: AnimatedValue,
|
|
54
|
+
View: createMockComponent("Animated.View"),
|
|
55
|
+
Text: createMockComponent("Animated.Text"),
|
|
56
|
+
timing: noopAnimation,
|
|
57
|
+
sequence: noopAnimation,
|
|
58
|
+
parallel: noopAnimation,
|
|
59
|
+
loop: noopAnimation,
|
|
60
|
+
delay: noopAnimation,
|
|
61
|
+
};
|
|
62
|
+
|
|
33
63
|
export const Platform = {
|
|
34
64
|
OS: "ios" as const,
|
|
35
65
|
select: <T>(obj: { ios?: T; android?: T; default?: T }): T | undefined =>
|
|
@@ -49,4 +79,5 @@ export default {
|
|
|
49
79
|
ActivityIndicator,
|
|
50
80
|
Image,
|
|
51
81
|
Platform,
|
|
82
|
+
Animated,
|
|
52
83
|
};
|