From e46df92492d575289fc1fb8411beb93f9d771f5f Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Sun, 14 Dec 2025 21:01:08 +0100 Subject: [PATCH] small wxt related fixes (#25866) --- companion/components/LoginScreen.tsx | 2 +- companion/extension/public/manifest.json | 9 +++++++++ companion/package.json | 2 ++ companion/wxt.config.ts | 12 ++++++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) diff --git a/companion/components/LoginScreen.tsx b/companion/components/LoginScreen.tsx index a5f765af15..bdeb47bd3e 100644 --- a/companion/components/LoginScreen.tsx +++ b/companion/components/LoginScreen.tsx @@ -32,7 +32,7 @@ export function LoginScreen() { {/* Logo centered in the middle */} - + {/* Bottom section with button */} diff --git a/companion/extension/public/manifest.json b/companion/extension/public/manifest.json index 615cf81690..97a39d5eac 100644 --- a/companion/extension/public/manifest.json +++ b/companion/extension/public/manifest.json @@ -7,6 +7,15 @@ "content_security_policy": { "extension_pages": "script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com;" }, + "data_collection_permissions": { + "libraries": [ + { + "name": "cal.com", + "url": "https://cal.com/privacy", + "purpose": "Booking and scheduling" + } + ] + }, "action": { "default_title": "Cal.com Companion" }, diff --git a/companion/package.json b/companion/package.json index c7ec2deaff..89ada9ddf8 100644 --- a/companion/package.json +++ b/companion/package.json @@ -9,6 +9,8 @@ "ios": "expo run:ios", "web": "expo start --web", "ext:build": "wxt build", + "build:firefox": "wxt build -b firefox", + "build:safari": "wxt build -b safari", "ext": "wxt", "ext:zip": "wxt zip", "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"", diff --git a/companion/wxt.config.ts b/companion/wxt.config.ts index fa58ee3461..cf1fc88aa4 100644 --- a/companion/wxt.config.ts +++ b/companion/wxt.config.ts @@ -1,6 +1,15 @@ import { defineConfig } from "wxt"; export default defineConfig({ + hooks: { + "build:manifestGenerated": (_wxt, manifest) => { + manifest.browser_specific_settings ??= {}; + manifest.browser_specific_settings.gecko ??= {}; + manifest.browser_specific_settings.gecko.data_collection_permissions = { + required: ["none"], + }; + }, + }, srcDir: "extension", entrypointsDir: "entrypoints", publicDir: "extension/public", @@ -20,6 +29,9 @@ export default defineConfig({ extension_pages: "script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com", }, + data_collection_permissions: { + collects_data: false, + }, action: { default_title: "Cal.com Companion", default_icon: {