@onairosofficial/onairos-capacitor 0.1.0 โ 0.1.1
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/LICENSE +194 -10
- package/README.md +182 -25
- package/dist/onairos.capacitor.esm.js +1 -0
- package/dist/onairos.capacitor.esm.turbopack.js +1 -0
- package/onairos.d.ts +656 -0
- package/package.json +186 -38
- package/src/OnairosReconnectButton.jsx +272 -0
- package/src/RSA.jsx +57 -0
- package/src/assets/NewLogo.png +0 -0
- package/src/assets/OnairosNewLogo.png +0 -0
- package/src/assets/chatgpt-icon.png +0 -0
- package/src/assets/fire-horse.png +0 -0
- package/src/assets/fire-horse.transparent.png +0 -0
- package/src/assets/latest-firehorse.png +0 -0
- package/src/assets/perplexity.png +0 -0
- package/src/assets/persona.png +0 -0
- package/src/assets/persona1.png +0 -0
- package/src/assets/persona2.png +0 -0
- package/src/assets/persona3.png +0 -0
- package/src/assets/persona4.png +0 -0
- package/src/assets/persona5.png +0 -0
- package/src/capacitorConnectorCatalog.js +38 -0
- package/src/capacitorOAuthConfig.js +52 -0
- package/src/chatgptHostedImport/index.js +303 -0
- package/src/components/AuthButtons.jsx +48 -0
- package/src/components/ConnectChatGPTModal.jsx +666 -0
- package/src/components/ConnectClaudeModal.jsx +610 -0
- package/src/components/ConnectGeminiModal.jsx +639 -0
- package/src/components/ConnectGrokModal.jsx +701 -0
- package/src/components/ConnectPerplexityModal.jsx +726 -0
- package/src/components/DataExplainerScreen.jsx +349 -0
- package/src/components/DataRequest.js +885 -0
- package/src/components/DataRequest.jsx +1055 -0
- package/src/components/EmailAuth.js +1871 -0
- package/src/components/EmailAuth.jsx +2062 -0
- package/src/components/ExtensionInstallPrompt.jsx +142 -0
- package/src/components/GoogleButton.js +133 -0
- package/src/components/LLMConnectorManager.jsx +201 -0
- package/src/components/LoadingPage.jsx +19 -0
- package/src/components/LoadingScreen.jsx +81 -0
- package/src/components/LunarBirthdate.jsx +96 -0
- package/src/components/LunarLoadingPage.jsx +251 -0
- package/src/components/Notification.jsx +21 -0
- package/src/components/OnairosAppButton.jsx +85 -0
- package/src/components/OnairosSSO.jsx +645 -0
- package/src/components/OnairosTrigger.jsx +61 -0
- package/src/components/PerplexityLogo.jsx +43 -0
- package/src/components/PinSetup.js +200 -0
- package/src/components/PinSetup.jsx +228 -0
- package/src/components/SDK_PIN_INTEGRATION_REQUIRED_CHANGES.md +526 -0
- package/src/components/SdkErrorBoundary.jsx +36 -0
- package/src/components/SecuritySetup.js +81 -0
- package/src/components/SessionUserBar.jsx +83 -0
- package/src/components/SignUp.js +123 -0
- package/src/components/TestTelegramButton.js +53 -0
- package/src/components/TrainingComponent.jsx +200 -0
- package/src/components/TrainingScreen.jsx +897 -0
- package/src/components/UniversalOnboarding.js +306 -0
- package/src/components/UniversalOnboarding.jsx +4837 -0
- package/src/components/ValentineLoadingPage.jsx +502 -0
- package/src/components/ValentineModeSelector.jsx +162 -0
- package/src/components/WelcomeScreen.jsx +435 -0
- package/src/components/WrappedLoadingPage.jsx +205 -0
- package/src/components/connectors/ChatGPTConnector.js +348 -0
- package/src/components/connectors/ChatGPTConnector.jsx +348 -0
- package/src/components/connectors/ClaudeConnector.js +44 -0
- package/src/components/connectors/ClaudeConnector.jsx +44 -0
- package/src/components/connectors/GeminiConnector.js +170 -0
- package/src/components/connectors/GeminiConnector.jsx +170 -0
- package/src/components/connectors/GmailConnector.js +148 -0
- package/src/components/connectors/GmailConnector.jsx +148 -0
- package/src/components/connectors/GrokConnector.js +16 -0
- package/src/components/connectors/GrokConnector.jsx +16 -0
- package/src/components/connectors/HingeConnector.js +419 -0
- package/src/components/connectors/HingeConnector.jsx +419 -0
- package/src/components/connectors/InstagramDataConnector.js +726 -0
- package/src/components/connectors/InstagramDataConnector.jsx +726 -0
- package/src/components/connectors/LinkedInConnector.js +4 -0
- package/src/components/connectors/LinkedInConnector.jsx +296 -0
- package/src/components/connectors/PerplexityConnector.jsx +16 -0
- package/src/components/connectors/PinterestConnector.js +208 -0
- package/src/components/connectors/PinterestConnector.jsx +208 -0
- package/src/components/connectors/README.md +292 -0
- package/src/components/connectors/RedditConnector.js +229 -0
- package/src/components/connectors/RedditConnector.jsx +229 -0
- package/src/components/connectors/SephoraConnector.js +482 -0
- package/src/components/connectors/SephoraConnector.jsx +482 -0
- package/src/components/connectors/TikTokConnector.jsx +430 -0
- package/src/components/connectors/YoutubeConnector.js +361 -0
- package/src/components/connectors/YoutubeConnector.jsx +361 -0
- package/src/components/connectors/index.js +50 -0
- package/src/components/icons.jsx +46 -0
- package/src/components/icons.tsx +21 -0
- package/src/components/ui/PageLayout.jsx +1255 -0
- package/src/components/ui/PrimaryButton.jsx +162 -0
- package/src/components/ui/button.jsx +49 -0
- package/src/components/ui/card.jsx +61 -0
- package/src/components/ui/checkbox.jsx +33 -0
- package/src/components/ui/label.jsx +29 -0
- package/src/components/utils/UpdateConnections.js +45 -0
- package/src/components/utils/oauthHelper.js +97 -0
- package/src/config/api-config.js +138 -0
- package/src/deepLink.jsx +38 -0
- package/src/getPin.js +26 -0
- package/src/icons/Avatar.png +0 -0
- package/src/icons/Sentiment.png +0 -0
- package/src/icons/Trait.png +0 -0
- package/src/iframe/DataRequestPage.jsx +285 -0
- package/src/iframe/OnairosButtonIntegration.md +148 -0
- package/src/iframe/components/Box.jsx +56 -0
- package/src/iframe/components/IndividualConnection.jsx +88 -0
- package/src/iframe/dataRequestHandler.js +714 -0
- package/src/iframe/data_request_iframe.html +27 -0
- package/src/iframe/data_request_page.js +47 -0
- package/src/iframe/icons/Avatar.png +1 -0
- package/src/iframe/icons/Avatar2.png +1 -0
- package/src/iframe/icons/Sentiment.png +1 -0
- package/src/iframe/icons/Trait.png +1 -0
- package/src/iframe/icons/onairos_logo.png +0 -0
- package/src/iframe/utils/api.js +57 -0
- package/src/index.js +274 -0
- package/src/laravel/OnairosVue.vue +410 -0
- package/src/laravel/blade-helpers.js +320 -0
- package/src/laravel/vite-plugin.js +179 -0
- package/src/mobile/MobileDataRequestPage.jsx +233 -0
- package/src/mobile/components/MobileBox.jsx +71 -0
- package/src/mobile/components/MobileIndividualConnection.jsx +51 -0
- package/src/mobile/shims/browser-apis.js +78 -0
- package/src/mobile/shims/lucide-shim.js +85 -0
- package/src/newUI/EMAIL_VERIFICATION_API_SCHEMA.md +268 -0
- package/src/newUI/PlatformConnectorsStep.tsx +435 -0
- package/src/newUI/PrimaryButton.tsx +213 -0
- package/src/newUI/SignInStep.tsx +194 -0
- package/src/newUI/VerificationStep.tsx +133 -0
- package/src/newUI/WelcomeScreen.tsx +311 -0
- package/src/newUI/services/connectedAccountsService.js +129 -0
- package/src/onairos.capacitor.jsx +16 -0
- package/src/onairos.core.jsx +133 -0
- package/src/onairos.jsx +14 -0
- package/src/onairos.native.jsx +15 -0
- package/src/onairosButton.jsx +9000 -0
- package/src/overlay/CheckBox.jsx +114 -0
- package/src/overlay/IndividualConnection copy.js +86 -0
- package/src/overlay/IndividualConnection.js +191 -0
- package/src/overlay/IndividualConnectionNew.jsx +157 -0
- package/src/overlay/box.js +84 -0
- package/src/overlay/overlay.js +437 -0
- package/src/styles/onairos-scoped-preflight.css +97 -0
- package/src/styles/sdkCssRegistry.js +20 -0
- package/src/styles/styleLoaderInsertShadow.js +69 -0
- package/src/styles/tailwind.capacitor.css +395 -0
- package/src/styles/tailwind.css +395 -0
- package/src/theme/colors.js +40 -0
- package/src/utils/apiKeyValidation.js +341 -0
- package/src/utils/apiResponseLogger.js +316 -0
- package/src/utils/authHeaders.js +275 -0
- package/src/utils/biometrics.js +26 -0
- package/src/utils/bookmarkletUtils.js +28 -0
- package/src/utils/capacitorDetection.js +278 -0
- package/src/utils/capacitorLLMHelper.js +352 -0
- package/src/utils/capacitorPlugins.js +366 -0
- package/src/utils/crossDomainSSO.js +587 -0
- package/src/utils/deepLinking.js +27 -0
- package/src/utils/devLogger.js +46 -0
- package/src/utils/extensionDetection.js +418 -0
- package/src/utils/extractMemory.js +277 -0
- package/src/utils/framerBrandingOverrides.js +40 -0
- package/src/utils/googleWebClientId.js +55 -0
- package/src/utils/overlayHandler.js +224 -0
- package/src/utils/platformDisconnect.js +309 -0
- package/src/utils/pollTrainingStatus.js +200 -0
- package/src/utils/rawMemoriesAccess.js +211 -0
- package/src/utils/resolveBackendAppId.js +47 -0
- package/src/utils/responseFormatter.js +140 -0
- package/src/utils/sdkDebugStorage.js +113 -0
- package/src/utils/sdkInitialization.js +645 -0
- package/src/utils/sessionManager.js +1258 -0
- package/src/utils/startBackgroundTraining.js +100 -0
- package/src/utils/userDataFormatter.js +222 -0
- package/index.d.ts +0 -1
- package/index.js +0 -1
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import ChatGPTConnector from './connectors/ChatGPTConnector';
|
|
3
|
+
import ConnectChatGPTModal from './ConnectChatGPTModal.jsx';
|
|
4
|
+
import YoutubeConnector from './connectors/YoutubeConnector';
|
|
5
|
+
import LinkedInConnector from './connectors/LinkedInConnector.jsx';
|
|
6
|
+
import InstagramDataConnector from './connectors/InstagramDataConnector';
|
|
7
|
+
import PinterestConnector from './connectors/PinterestConnector';
|
|
8
|
+
import RedditConnector from './connectors/RedditConnector';
|
|
9
|
+
import GmailConnector from './connectors/GmailConnector';
|
|
10
|
+
import PrimaryButton from './ui/PrimaryButton.jsx';
|
|
11
|
+
import { COLORS } from '../theme/colors.js';
|
|
12
|
+
|
|
13
|
+
const platforms = [
|
|
14
|
+
{
|
|
15
|
+
name: 'ChatGPT',
|
|
16
|
+
icon: (
|
|
17
|
+
<img
|
|
18
|
+
src="/chatgpt-icon.png"
|
|
19
|
+
alt="ChatGPT"
|
|
20
|
+
className="w-full h-full object-contain"
|
|
21
|
+
onError={(e) => {
|
|
22
|
+
// Fallback to emoji if image fails to load
|
|
23
|
+
e.target.outerHTML = '๐ค';
|
|
24
|
+
}}
|
|
25
|
+
/>
|
|
26
|
+
),
|
|
27
|
+
color: 'bg-green-600',
|
|
28
|
+
connector: 'chatgpt'
|
|
29
|
+
},
|
|
30
|
+
{ name: 'YouTube', icon: '๐บ', color: 'bg-red-500', connector: 'youtube' },
|
|
31
|
+
{ name: 'Reddit', icon: '๐ฅ', color: 'bg-orange-500', connector: 'reddit' },
|
|
32
|
+
// Instagram is bookmarklet-only (NO OAuth anywhere)
|
|
33
|
+
{ name: 'Instagram', icon: '๐ท', color: 'bg-pink-500', connector: 'instagram-data' },
|
|
34
|
+
{ name: 'Pinterest', icon: '๐', color: 'bg-red-600', connector: 'pinterest' },
|
|
35
|
+
{ name: 'LinkedIn', icon: '๐ผ', color: 'bg-blue-700', connector: 'linkedin' },
|
|
36
|
+
{ name: 'Gmail', icon: '๐ง', color: 'bg-red-500', connector: 'gmail' }
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
export default function UniversalOnboarding({ onComplete, appIcon, appName = 'App', username, testMode = false, initialConnectedAccounts = [] }) {
|
|
40
|
+
const [connectedAccounts, setConnectedAccounts] = useState(() => {
|
|
41
|
+
const initial = {};
|
|
42
|
+
if (Array.isArray(initialConnectedAccounts)) {
|
|
43
|
+
initialConnectedAccounts.forEach(acc => {
|
|
44
|
+
initial[acc] = true;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
return initial;
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Sync with prop updates (e.g. when parent re-renders with new userData)
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
if (Array.isArray(initialConnectedAccounts)) {
|
|
53
|
+
setConnectedAccounts(prev => {
|
|
54
|
+
const next = { ...prev };
|
|
55
|
+
let changed = false;
|
|
56
|
+
initialConnectedAccounts.forEach(acc => {
|
|
57
|
+
if (!next[acc]) {
|
|
58
|
+
next[acc] = true;
|
|
59
|
+
changed = true;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
return changed ? next : prev;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}, [initialConnectedAccounts]);
|
|
66
|
+
const [isConnecting, setIsConnecting] = useState(false);
|
|
67
|
+
const [activeConnector, setActiveConnector] = useState(null);
|
|
68
|
+
const [showChatGPTModal, setShowChatGPTModal] = useState(false);
|
|
69
|
+
|
|
70
|
+
// Debug log on component mount
|
|
71
|
+
useEffect(() => {
|
|
72
|
+
console.log('๐ฏ UniversalOnboarding.js component mounted');
|
|
73
|
+
console.log('๐ง Props:', { onComplete, appIcon, appName, username });
|
|
74
|
+
console.log('๐ง Platforms loaded:', platforms.length);
|
|
75
|
+
}, []);
|
|
76
|
+
|
|
77
|
+
const handleConnectionChange = (platformName, isConnected) => {
|
|
78
|
+
setConnectedAccounts(prev => ({
|
|
79
|
+
...prev,
|
|
80
|
+
[platformName]: isConnected
|
|
81
|
+
}));
|
|
82
|
+
setActiveConnector(null);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const handleToggle = async (platformName, connectorType) => {
|
|
86
|
+
console.log(`๐ฅ TOGGLE CLICKED: ${platformName} (${connectorType})`);
|
|
87
|
+
console.log(`๐ง isConnecting: ${isConnecting}`);
|
|
88
|
+
console.log(`๐ง Current connection state:`, connectedAccounts[platformName]);
|
|
89
|
+
|
|
90
|
+
if (isConnecting) {
|
|
91
|
+
console.log(`โ ๏ธ Already connecting, ignoring click`);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const isCurrentlyConnected = connectedAccounts[platformName];
|
|
96
|
+
|
|
97
|
+
if (isCurrentlyConnected) {
|
|
98
|
+
// Disconnect - call the connector's disconnect method
|
|
99
|
+
console.log(`๐ Disconnecting from ${platformName}...`);
|
|
100
|
+
setConnectedAccounts(prev => ({
|
|
101
|
+
...prev,
|
|
102
|
+
[platformName]: false
|
|
103
|
+
}));
|
|
104
|
+
console.log(`โ
Disconnected from ${platformName}`);
|
|
105
|
+
} else {
|
|
106
|
+
// Connect
|
|
107
|
+
// Special behavior for ChatGPT: Show modal instead of opening tab
|
|
108
|
+
if (connectorType === 'chatgpt') {
|
|
109
|
+
console.log(`๐ค ChatGPT: Opening Connect Modal...`);
|
|
110
|
+
setShowChatGPTModal(true);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (testMode) {
|
|
115
|
+
// Test mode: Simulate instant connection without OAuth dialog
|
|
116
|
+
console.log(`๐งช Test mode: Simulating instant connection to ${platformName}...`);
|
|
117
|
+
setIsConnecting(true);
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
setConnectedAccounts(prev => ({
|
|
120
|
+
...prev,
|
|
121
|
+
[platformName]: true
|
|
122
|
+
}));
|
|
123
|
+
setIsConnecting(false);
|
|
124
|
+
console.log(`๐งช Test mode: Simulated connection to ${platformName} successful`);
|
|
125
|
+
}, 300); // Quick simulation delay
|
|
126
|
+
} else {
|
|
127
|
+
// Production mode: Open the OAuth dialog
|
|
128
|
+
console.log(`๐ Opening OAuth for ${platformName}...`);
|
|
129
|
+
setActiveConnector(connectorType);
|
|
130
|
+
console.log(`๐ง Set activeConnector to: ${connectorType}`);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const handleContinue = () => {
|
|
136
|
+
const connected = Object.entries(connectedAccounts)
|
|
137
|
+
.filter(([platform, isConnected]) => isConnected)
|
|
138
|
+
.map(([platform]) => platform);
|
|
139
|
+
|
|
140
|
+
onComplete({
|
|
141
|
+
connectedAccounts: connected,
|
|
142
|
+
totalConnections: connected.length
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const connectedCount = Object.values(connectedAccounts).filter(Boolean).length;
|
|
147
|
+
|
|
148
|
+
return (
|
|
149
|
+
<div className="w-full space-y-6">
|
|
150
|
+
{/* Test Mode Notice */}
|
|
151
|
+
{testMode && (
|
|
152
|
+
<div
|
|
153
|
+
className="p-3 rounded-lg border mb-4"
|
|
154
|
+
style={{
|
|
155
|
+
backgroundColor: '#FEF3C7',
|
|
156
|
+
borderColor: '#F59E0B',
|
|
157
|
+
color: '#D97706'
|
|
158
|
+
}}
|
|
159
|
+
>
|
|
160
|
+
<p className="text-sm">
|
|
161
|
+
๐งช <strong>Test Mode:</strong> Connections are simulated for design testing. Toggle any platform to simulate instant connection.
|
|
162
|
+
</p>
|
|
163
|
+
</div>
|
|
164
|
+
)}
|
|
165
|
+
|
|
166
|
+
{/* Privacy Notice */}
|
|
167
|
+
<div
|
|
168
|
+
className="p-3 rounded-lg border"
|
|
169
|
+
style={{
|
|
170
|
+
backgroundColor: '#EBF8FF',
|
|
171
|
+
borderColor: '#BEE3F8',
|
|
172
|
+
color: '#2B6CB0'
|
|
173
|
+
}}
|
|
174
|
+
>
|
|
175
|
+
<p className="text-sm">
|
|
176
|
+
๐ Your data is never shared with anyone. It's only used to train your personal model and is stored securely.
|
|
177
|
+
</p>
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
{/* Platform List - Vertical Layout with Toggles */}
|
|
181
|
+
<div className="space-y-2 sm:space-y-3 mb-4 sm:mb-6">
|
|
182
|
+
{platforms.map((platform) => {
|
|
183
|
+
const isConnected = connectedAccounts[platform.name] || false;
|
|
184
|
+
|
|
185
|
+
return (
|
|
186
|
+
<div
|
|
187
|
+
key={platform.name}
|
|
188
|
+
className="flex items-center justify-between p-3 sm:p-4 border rounded-lg hover:bg-gray-50 transition-colors"
|
|
189
|
+
>
|
|
190
|
+
<div className="flex items-center space-x-3">
|
|
191
|
+
<div className={`w-8 h-8 sm:w-10 sm:h-10 rounded-lg ${platform.color} flex items-center justify-center text-white text-base sm:text-lg`}>
|
|
192
|
+
{platform.icon}
|
|
193
|
+
</div>
|
|
194
|
+
<div>
|
|
195
|
+
<h3 className="font-medium text-gray-900 text-sm sm:text-base">{platform.name}</h3>
|
|
196
|
+
<p className="text-xs sm:text-sm text-gray-500">
|
|
197
|
+
{isConnected ? 'Connected' : 'Not connected'}
|
|
198
|
+
</p>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
{/* Toggle Switch */}
|
|
203
|
+
<button
|
|
204
|
+
onClick={() => handleToggle(platform.name, platform.connector)}
|
|
205
|
+
disabled={isConnecting}
|
|
206
|
+
className={`relative inline-flex h-5 sm:h-6 w-9 sm:w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 ${
|
|
207
|
+
isConnected ? 'bg-blue-600' : 'bg-gray-200'
|
|
208
|
+
} ${isConnecting ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'}`}
|
|
209
|
+
>
|
|
210
|
+
<span
|
|
211
|
+
className={`inline-block h-3 sm:h-4 w-3 sm:w-4 transform rounded-full bg-white transition-transform ${
|
|
212
|
+
isConnected ? 'translate-x-5 sm:translate-x-6' : 'translate-x-1'
|
|
213
|
+
}`}
|
|
214
|
+
/>
|
|
215
|
+
</button>
|
|
216
|
+
</div>
|
|
217
|
+
);
|
|
218
|
+
})}
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
{/* Connection Status */}
|
|
222
|
+
{connectedCount > 0 && (
|
|
223
|
+
<div className="mb-3 sm:mb-4 p-2 sm:p-3 bg-green-50 border border-green-200 rounded-lg">
|
|
224
|
+
<p className="text-green-800 text-xs sm:text-sm">
|
|
225
|
+
โ
{connectedCount} account{connectedCount > 1 ? 's' : ''} connected
|
|
226
|
+
</p>
|
|
227
|
+
</div>
|
|
228
|
+
)}
|
|
229
|
+
|
|
230
|
+
{/* Continue Button */}
|
|
231
|
+
<div className="mb-4">
|
|
232
|
+
<PrimaryButton
|
|
233
|
+
label={connectedCount > 0 ? `Continue with ${connectedCount} account${connectedCount > 1 ? 's' : ''}` : 'Continue'}
|
|
234
|
+
onClick={handleContinue}
|
|
235
|
+
disabled={connectedCount === 0}
|
|
236
|
+
testId="continue-button"
|
|
237
|
+
/>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
{/* Skip Option */}
|
|
241
|
+
<button
|
|
242
|
+
onClick={() => onComplete({ connectedAccounts: [], totalConnections: 0 })}
|
|
243
|
+
className="w-full mt-2 py-2 font-medium transition-colors text-sm"
|
|
244
|
+
style={{ color: COLORS.textSecondary }}
|
|
245
|
+
>
|
|
246
|
+
Skip for now
|
|
247
|
+
</button>
|
|
248
|
+
|
|
249
|
+
{/* OAuth Connector Dialogs - Only show in production mode */}
|
|
250
|
+
{!testMode && (
|
|
251
|
+
<>
|
|
252
|
+
<ChatGPTConnector
|
|
253
|
+
open={activeConnector === 'chatgpt'}
|
|
254
|
+
onClose={() => setActiveConnector(null)}
|
|
255
|
+
onConnectionChange={handleConnectionChange}
|
|
256
|
+
username={username}
|
|
257
|
+
/>
|
|
258
|
+
<YoutubeConnector
|
|
259
|
+
open={activeConnector === 'youtube'}
|
|
260
|
+
onClose={() => setActiveConnector(null)}
|
|
261
|
+
onConnectionChange={handleConnectionChange}
|
|
262
|
+
username={username}
|
|
263
|
+
/>
|
|
264
|
+
<LinkedInConnector
|
|
265
|
+
open={activeConnector === 'linkedin'}
|
|
266
|
+
onClose={() => setActiveConnector(null)}
|
|
267
|
+
onConnectionChange={handleConnectionChange}
|
|
268
|
+
username={username}
|
|
269
|
+
/>
|
|
270
|
+
<InstagramDataConnector
|
|
271
|
+
open={activeConnector === 'instagram-data' || activeConnector === 'instagram'}
|
|
272
|
+
onClose={() => setActiveConnector(null)}
|
|
273
|
+
onConnectionChange={handleConnectionChange}
|
|
274
|
+
username={username}
|
|
275
|
+
/>
|
|
276
|
+
<PinterestConnector
|
|
277
|
+
open={activeConnector === 'pinterest'}
|
|
278
|
+
onClose={() => setActiveConnector(null)}
|
|
279
|
+
onConnectionChange={handleConnectionChange}
|
|
280
|
+
username={username}
|
|
281
|
+
/>
|
|
282
|
+
<RedditConnector
|
|
283
|
+
open={activeConnector === 'reddit'}
|
|
284
|
+
onClose={() => setActiveConnector(null)}
|
|
285
|
+
onConnectionChange={handleConnectionChange}
|
|
286
|
+
username={username}
|
|
287
|
+
/>
|
|
288
|
+
<GmailConnector
|
|
289
|
+
open={activeConnector === 'gmail'}
|
|
290
|
+
onClose={() => setActiveConnector(null)}
|
|
291
|
+
onConnectionChange={handleConnectionChange}
|
|
292
|
+
username={username}
|
|
293
|
+
/>
|
|
294
|
+
</>
|
|
295
|
+
)}
|
|
296
|
+
|
|
297
|
+
<ConnectChatGPTModal
|
|
298
|
+
open={showChatGPTModal}
|
|
299
|
+
onClose={() => setShowChatGPTModal(false)}
|
|
300
|
+
onConnected={() => {
|
|
301
|
+
setConnectedAccounts((s) => ({ ...s, ChatGPT: true }));
|
|
302
|
+
}}
|
|
303
|
+
/>
|
|
304
|
+
</div>
|
|
305
|
+
);
|
|
306
|
+
}
|