@marktiderman/genesis-chat 0.11.1 → 0.11.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marktiderman/genesis-chat",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"README.md"
|
|
87
87
|
],
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@marktiderman/genesis-
|
|
89
|
+
"@marktiderman/genesis-config": "^0.12.0",
|
|
90
90
|
"frimousse": "0.4.0"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
@@ -173,19 +173,19 @@
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
"devDependencies": {
|
|
176
|
-
"@ai-sdk/anthropic": "4.0.
|
|
177
|
-
"@marktiderman/genesis-ai": "^0.3.
|
|
178
|
-
"@marktiderman/genesis-core": "^2.
|
|
179
|
-
"@marktiderman/genesis-notifications": "^0.4.
|
|
180
|
-
"@marktiderman/genesis-ui": "^3.
|
|
181
|
-
"@marktiderman/genesis-ui-native": "^3.
|
|
176
|
+
"@ai-sdk/anthropic": "4.0.102",
|
|
177
|
+
"@marktiderman/genesis-ai": "^0.3.1",
|
|
178
|
+
"@marktiderman/genesis-core": "^2.20.0",
|
|
179
|
+
"@marktiderman/genesis-notifications": "^0.4.6",
|
|
180
|
+
"@marktiderman/genesis-ui": "^3.2.1",
|
|
181
|
+
"@marktiderman/genesis-ui-native": "^3.15.0",
|
|
182
182
|
"@supabase/supabase-js": "^2.118.0",
|
|
183
183
|
"@tanstack/react-query": "^5.105.0",
|
|
184
184
|
"@testing-library/react": "^16.3.2",
|
|
185
185
|
"@types/node": "^22",
|
|
186
186
|
"@types/react": "^19.2.14",
|
|
187
187
|
"@types/react-dom": "^19.2.3",
|
|
188
|
-
"ai": "7.0.
|
|
188
|
+
"ai": "7.0.170",
|
|
189
189
|
"happy-dom": "^21.0.4",
|
|
190
190
|
"hls.js": "1.7.4",
|
|
191
191
|
"lucide-react": "^1.28.0",
|
|
@@ -10,6 +10,8 @@ export const MEDIA_FRAME = "#111111";
|
|
|
10
10
|
/** Behind controls and labels laid over a picture. */
|
|
11
11
|
export const MEDIA_SCRIM = "rgba(0,0,0,0.5)";
|
|
12
12
|
export const MEDIA_SCRIM_LIGHT = "rgba(0,0,0,0.35)";
|
|
13
|
+
/** A notice laid over a picture (the photo viewer's "saved"): near-opaque, so it reads on any photo. */
|
|
14
|
+
export const MEDIA_NOTICE = "rgba(40,40,40,0.92)";
|
|
13
15
|
/** A tint-bubble card's fill, over the tint. */
|
|
14
16
|
export const ON_TINT_FILL = "rgba(255,255,255,0.16)";
|
|
15
17
|
export const ON_TINT_FILL_STRONG = "rgba(255,255,255,0.2)";
|
|
@@ -28,6 +28,7 @@ import type { ChatMessage } from "../core/types";
|
|
|
28
28
|
import { fill } from "./copy";
|
|
29
29
|
import { useChatNative } from "./context";
|
|
30
30
|
import { fromServer, type BubbleAttachment } from "./media";
|
|
31
|
+
import { MEDIA_NOTICE, MEDIA_SCRIM, ON_MEDIA } from "./media-colors";
|
|
31
32
|
import { haptic } from "./modules";
|
|
32
33
|
|
|
33
34
|
export interface ChatPhoto {
|
|
@@ -156,8 +157,8 @@ export function ChatPhotoViewer({ photos, initialIndex = 0, onClose, testID = "c
|
|
|
156
157
|
// The result of Save or Share shows where the caption goes.
|
|
157
158
|
renderCaption={() =>
|
|
158
159
|
notice ? (
|
|
159
|
-
<View accessibilityLiveRegion="assertive" testID={`${testID}-notice`} style={{ alignSelf: "center", backgroundColor:
|
|
160
|
-
<NativeText style={{ color:
|
|
160
|
+
<View accessibilityLiveRegion="assertive" testID={`${testID}-notice`} style={{ alignSelf: "center", backgroundColor: MEDIA_NOTICE, borderRadius: 14, paddingHorizontal: 16, paddingVertical: 10 }}>
|
|
161
|
+
<NativeText style={{ color: ON_MEDIA, textAlign: "center" }}>{notice}</NativeText>
|
|
161
162
|
</View>
|
|
162
163
|
) : null
|
|
163
164
|
}
|
|
@@ -176,9 +177,9 @@ function ViewerButton({ icon, label, onPress, disabled = false, testID }: { icon
|
|
|
176
177
|
disabled={disabled}
|
|
177
178
|
onPress={onPress}
|
|
178
179
|
hitSlop={6}
|
|
179
|
-
style={{ width: 44, height: 44, borderRadius: 22, alignItems: "center", justifyContent: "center", backgroundColor:
|
|
180
|
+
style={{ width: 44, height: 44, borderRadius: 22, alignItems: "center", justifyContent: "center", backgroundColor: MEDIA_SCRIM, opacity: disabled ? 0.5 : 1 }}
|
|
180
181
|
>
|
|
181
|
-
<NativeIcon name={icon} size={22} color=
|
|
182
|
+
<NativeIcon name={icon} size={22} color={ON_MEDIA} />
|
|
182
183
|
</Pressable>
|
|
183
184
|
);
|
|
184
185
|
}
|