@thibautrey/chatons-channel-whatsapp 1.0.0 → 1.0.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/chaton.extension.json +13 -4
- package/icon.svg +1 -24
- package/package.json +4 -1
package/chaton.extension.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "@thibautrey/chatons-channel-whatsapp",
|
|
3
3
|
"name": "WhatsApp Channel",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"kind": "channel",
|
|
6
6
|
"description": "WhatsApp channel bridge for Chatons. Connect via QR code scanning, automatically syncs messages, and runs in the background using the shared Chatons UI component library.",
|
|
7
7
|
"icon": "icon.svg",
|
|
@@ -27,9 +27,18 @@
|
|
|
27
27
|
},
|
|
28
28
|
"apis": {
|
|
29
29
|
"exposes": [
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
{
|
|
31
|
+
"name": "channels.upsertGlobalThread",
|
|
32
|
+
"version": "1.0.0"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "channels.ingestMessage",
|
|
36
|
+
"version": "1.0.0"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "conversations.getMessages",
|
|
40
|
+
"version": "1.0.0"
|
|
41
|
+
}
|
|
33
42
|
]
|
|
34
43
|
}
|
|
35
44
|
}
|
package/icon.svg
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg"
|
|
2
|
-
<!-- WhatsApp green background -->
|
|
3
|
-
<defs>
|
|
4
|
-
<style>
|
|
5
|
-
.wa-bg { fill: #25D366; }
|
|
6
|
-
.wa-white { fill: white; }
|
|
7
|
-
.wa-phone { fill: #25D366; }
|
|
8
|
-
</style>
|
|
9
|
-
</defs>
|
|
10
|
-
|
|
11
|
-
<rect class="wa-bg" width="192" height="192" rx="36"/>
|
|
12
|
-
|
|
13
|
-
<!-- Main chat bubble -->
|
|
14
|
-
<path class="wa-white" d="M 28 20 L 144 20 C 156.7 20 167 30.3 167 43 L 167 127 C 167 139.7 156.7 150 144 150 L 80 150 L 30 180 L 55 150 L 28 150 C 15.3 150 5 139.7 5 127 L 5 43 C 5 30.3 15.3 20 28 20 Z"/>
|
|
15
|
-
|
|
16
|
-
<!-- Phone handset icon inside bubble -->
|
|
17
|
-
<g transform="translate(50, 60)">
|
|
18
|
-
<!-- Left curved part of receiver -->
|
|
19
|
-
<path class="wa-phone" d="M 20 50 Q 8 42 8 28 Q 8 14 20 6 L 32 -6 Q 35 -8 38 -5 L 50 7 Q 52 9 52 12 Q 52 32 32 52 L 35 56 Q 55 36 55 12 Q 55 6 52 0 L 40 -12 Q 35 -16 32 -12 L 20 0 Q 2 10 2 28 Q 2 44 20 56 L 20 50"/>
|
|
20
|
-
|
|
21
|
-
<!-- Right curved part of receiver -->
|
|
22
|
-
<path class="wa-phone" d="M 60 50 Q 72 42 72 28 Q 72 14 60 6 L 48 -6 Q 45 -8 42 -5 L 30 7 Q 28 9 28 12 Q 28 32 48 52 L 45 56 Q 25 36 25 12 Q 25 6 28 0 L 40 -12 Q 45 -16 48 -12 L 60 0 Q 78 10 78 28 Q 78 44 60 56 L 60 50"/>
|
|
23
|
-
</g>
|
|
24
|
-
</svg>
|
|
1
|
+
<svg role="img" width="256" height="256" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thibautrey/chatons-channel-whatsapp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WhatsApp channel bridge for Chatons. Connect via QR code, automatically syncs messages, and runs in the background using the shared Chatons UI component library.",
|
|
6
6
|
"main": "index.js",
|
|
@@ -41,5 +41,8 @@
|
|
|
41
41
|
"host.conversations.read",
|
|
42
42
|
"host.conversations.write"
|
|
43
43
|
]
|
|
44
|
+
},
|
|
45
|
+
"chatons": {
|
|
46
|
+
"name": "WhatsApp Channel"
|
|
44
47
|
}
|
|
45
48
|
}
|