Skip to content

Commit e46df92

Browse files
authored
small wxt related fixes (#25866)
1 parent 35cf827 commit e46df92

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

companion/components/LoginScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function LoginScreen() {
3232
<View className="flex-1 bg-white">
3333
{/* Logo centered in the middle */}
3434
<View className="flex-1 items-center justify-center">
35-
<CalComLogo width={240} height={54} color="#111827" />
35+
<CalComLogo width={180} height={40} color="#111827" />
3636
</View>
3737

3838
{/* Bottom section with button */}

companion/extension/public/manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
"content_security_policy": {
88
"extension_pages": "script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com;"
99
},
10+
"data_collection_permissions": {
11+
"libraries": [
12+
{
13+
"name": "cal.com",
14+
"url": "https://cal.com/privacy",
15+
"purpose": "Booking and scheduling"
16+
}
17+
]
18+
},
1019
"action": {
1120
"default_title": "Cal.com Companion"
1221
},

companion/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"ios": "expo run:ios",
1010
"web": "expo start --web",
1111
"ext:build": "wxt build",
12+
"build:firefox": "wxt build -b firefox",
13+
"build:safari": "wxt build -b safari",
1214
"ext": "wxt",
1315
"ext:zip": "wxt zip",
1416
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",

companion/wxt.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
import { defineConfig } from "wxt";
22

33
export default defineConfig({
4+
hooks: {
5+
"build:manifestGenerated": (_wxt, manifest) => {
6+
manifest.browser_specific_settings ??= {};
7+
manifest.browser_specific_settings.gecko ??= {};
8+
manifest.browser_specific_settings.gecko.data_collection_permissions = {
9+
required: ["none"],
10+
};
11+
},
12+
},
413
srcDir: "extension",
514
entrypointsDir: "entrypoints",
615
publicDir: "extension/public",
@@ -20,6 +29,9 @@ export default defineConfig({
2029
extension_pages:
2130
"script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com",
2231
},
32+
data_collection_permissions: {
33+
collects_data: false,
34+
},
2335
action: {
2436
default_title: "Cal.com Companion",
2537
default_icon: {

0 commit comments

Comments
 (0)