@onairosofficial/onairos-capacitor 0.1.0 → 0.1.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.
Files changed (202) hide show
  1. package/CAPACITOR_QUICK_START.md +379 -0
  2. package/CONNECTORS.md +122 -0
  3. package/LICENSE +194 -10
  4. package/OnairosofficialOnairosCapacitor.podspec +13 -0
  5. package/Package.swift +26 -0
  6. package/README.md +176 -25
  7. package/dist/onairos.capacitor.esm.js +1 -0
  8. package/dist/onairos.capacitor.esm.turbopack.js +1 -0
  9. package/docs/CAPACITOR_INTEGRATION_GUIDE.md +159 -0
  10. package/docs/CAPACITOR_MOCK_APP_TESTING.md +213 -0
  11. package/docs/CAPACITOR_SDK_FIXES_SUMMARY.md +65 -0
  12. package/docs/CROSS_SDK_PARITY.md +239 -0
  13. package/docs/DATA_FREQUENCY.md +57 -0
  14. package/docs/DEVELOPER_SDK_CHANGES.md +532 -0
  15. package/docs/INCIDENT_ENABLETRAINING_PIN_WEB_8.1.9.md +82 -0
  16. package/docs/ONAIROS_BUTTON_PROPS.md +152 -0
  17. package/docs/PLATFORM_APIS.md +559 -0
  18. package/docs/RAW_MEMORIES_API.md +305 -0
  19. package/docs/RAW_MEMORIES_SDK_UPDATE.md +54 -0
  20. package/docs/SDK_PARITY_ROLLUP_2026_04_24_to_05_02.md +96 -0
  21. package/docs/oldFixes.md +216 -0
  22. package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosChatGPTNativePlugin.swift +993 -0
  23. package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosNetflixNativePlugin.swift +33 -0
  24. package/ios/Sources/OnairosNativeConnectorsPlugin/OnairosSpotifyNativePlugin.swift +1082 -0
  25. package/onairos.d.ts +656 -0
  26. package/package.json +188 -37
  27. package/src/OnairosReconnectButton.jsx +272 -0
  28. package/src/RSA.jsx +57 -0
  29. package/src/assets/NewLogo.png +0 -0
  30. package/src/assets/OnairosNewLogo.png +0 -0
  31. package/src/assets/chatgpt-icon.png +0 -0
  32. package/src/assets/fire-horse.png +0 -0
  33. package/src/assets/fire-horse.transparent.png +0 -0
  34. package/src/assets/latest-firehorse.png +0 -0
  35. package/src/assets/perplexity.png +0 -0
  36. package/src/assets/persona.png +0 -0
  37. package/src/assets/persona1.png +0 -0
  38. package/src/assets/persona2.png +0 -0
  39. package/src/assets/persona3.png +0 -0
  40. package/src/assets/persona4.png +0 -0
  41. package/src/assets/persona5.png +0 -0
  42. package/src/capacitorConnectorCatalog.js +38 -0
  43. package/src/capacitorOAuthConfig.js +52 -0
  44. package/src/chatgptHostedImport/index.js +303 -0
  45. package/src/components/AuthButtons.jsx +48 -0
  46. package/src/components/ConnectChatGPTModal.jsx +666 -0
  47. package/src/components/ConnectClaudeModal.jsx +610 -0
  48. package/src/components/ConnectGeminiModal.jsx +639 -0
  49. package/src/components/ConnectGrokModal.jsx +701 -0
  50. package/src/components/ConnectPerplexityModal.jsx +726 -0
  51. package/src/components/DataExplainerScreen.jsx +349 -0
  52. package/src/components/DataRequest.js +885 -0
  53. package/src/components/DataRequest.jsx +1055 -0
  54. package/src/components/EmailAuth.js +1871 -0
  55. package/src/components/EmailAuth.jsx +2062 -0
  56. package/src/components/ExtensionInstallPrompt.jsx +142 -0
  57. package/src/components/GoogleButton.js +133 -0
  58. package/src/components/LLMConnectorManager.jsx +201 -0
  59. package/src/components/LoadingPage.jsx +19 -0
  60. package/src/components/LoadingScreen.jsx +81 -0
  61. package/src/components/LunarBirthdate.jsx +96 -0
  62. package/src/components/LunarLoadingPage.jsx +251 -0
  63. package/src/components/Notification.jsx +21 -0
  64. package/src/components/OnairosAppButton.jsx +85 -0
  65. package/src/components/OnairosSSO.jsx +645 -0
  66. package/src/components/OnairosTrigger.jsx +61 -0
  67. package/src/components/PerplexityLogo.jsx +43 -0
  68. package/src/components/PinSetup.js +200 -0
  69. package/src/components/PinSetup.jsx +228 -0
  70. package/src/components/SDK_PIN_INTEGRATION_REQUIRED_CHANGES.md +526 -0
  71. package/src/components/SdkErrorBoundary.jsx +36 -0
  72. package/src/components/SecuritySetup.js +81 -0
  73. package/src/components/SessionUserBar.jsx +83 -0
  74. package/src/components/SignUp.js +123 -0
  75. package/src/components/TestTelegramButton.js +53 -0
  76. package/src/components/TrainingComponent.jsx +200 -0
  77. package/src/components/TrainingScreen.jsx +897 -0
  78. package/src/components/UniversalOnboarding.js +306 -0
  79. package/src/components/UniversalOnboarding.jsx +4837 -0
  80. package/src/components/ValentineLoadingPage.jsx +502 -0
  81. package/src/components/ValentineModeSelector.jsx +162 -0
  82. package/src/components/WelcomeScreen.jsx +435 -0
  83. package/src/components/WrappedLoadingPage.jsx +205 -0
  84. package/src/components/connectors/ChatGPTConnector.js +348 -0
  85. package/src/components/connectors/ChatGPTConnector.jsx +348 -0
  86. package/src/components/connectors/ClaudeConnector.js +44 -0
  87. package/src/components/connectors/ClaudeConnector.jsx +44 -0
  88. package/src/components/connectors/GeminiConnector.js +170 -0
  89. package/src/components/connectors/GeminiConnector.jsx +170 -0
  90. package/src/components/connectors/GmailConnector.js +148 -0
  91. package/src/components/connectors/GmailConnector.jsx +148 -0
  92. package/src/components/connectors/GrokConnector.js +16 -0
  93. package/src/components/connectors/GrokConnector.jsx +16 -0
  94. package/src/components/connectors/HingeConnector.js +419 -0
  95. package/src/components/connectors/HingeConnector.jsx +419 -0
  96. package/src/components/connectors/InstagramDataConnector.js +726 -0
  97. package/src/components/connectors/InstagramDataConnector.jsx +726 -0
  98. package/src/components/connectors/LinkedInConnector.js +4 -0
  99. package/src/components/connectors/LinkedInConnector.jsx +296 -0
  100. package/src/components/connectors/PerplexityConnector.jsx +16 -0
  101. package/src/components/connectors/PinterestConnector.js +208 -0
  102. package/src/components/connectors/PinterestConnector.jsx +208 -0
  103. package/src/components/connectors/README.md +292 -0
  104. package/src/components/connectors/RedditConnector.js +229 -0
  105. package/src/components/connectors/RedditConnector.jsx +229 -0
  106. package/src/components/connectors/SephoraConnector.js +482 -0
  107. package/src/components/connectors/SephoraConnector.jsx +482 -0
  108. package/src/components/connectors/TikTokConnector.jsx +430 -0
  109. package/src/components/connectors/YoutubeConnector.js +361 -0
  110. package/src/components/connectors/YoutubeConnector.jsx +361 -0
  111. package/src/components/connectors/index.js +50 -0
  112. package/src/components/icons.jsx +46 -0
  113. package/src/components/icons.tsx +21 -0
  114. package/src/components/ui/PageLayout.jsx +1255 -0
  115. package/src/components/ui/PrimaryButton.jsx +162 -0
  116. package/src/components/ui/button.jsx +49 -0
  117. package/src/components/ui/card.jsx +61 -0
  118. package/src/components/ui/checkbox.jsx +33 -0
  119. package/src/components/ui/label.jsx +29 -0
  120. package/src/components/utils/UpdateConnections.js +45 -0
  121. package/src/components/utils/oauthHelper.js +97 -0
  122. package/src/config/api-config.js +138 -0
  123. package/src/deepLink.jsx +38 -0
  124. package/src/getPin.js +26 -0
  125. package/src/icons/Avatar.png +0 -0
  126. package/src/icons/Sentiment.png +0 -0
  127. package/src/icons/Trait.png +0 -0
  128. package/src/iframe/DataRequestPage.jsx +285 -0
  129. package/src/iframe/OnairosButtonIntegration.md +148 -0
  130. package/src/iframe/components/Box.jsx +56 -0
  131. package/src/iframe/components/IndividualConnection.jsx +88 -0
  132. package/src/iframe/dataRequestHandler.js +714 -0
  133. package/src/iframe/data_request_iframe.html +27 -0
  134. package/src/iframe/data_request_page.js +47 -0
  135. package/src/iframe/icons/Avatar.png +1 -0
  136. package/src/iframe/icons/Avatar2.png +1 -0
  137. package/src/iframe/icons/Sentiment.png +1 -0
  138. package/src/iframe/icons/Trait.png +1 -0
  139. package/src/iframe/icons/onairos_logo.png +0 -0
  140. package/src/iframe/utils/api.js +57 -0
  141. package/src/index.js +274 -0
  142. package/src/laravel/OnairosVue.vue +410 -0
  143. package/src/laravel/blade-helpers.js +320 -0
  144. package/src/laravel/vite-plugin.js +179 -0
  145. package/src/mobile/MobileDataRequestPage.jsx +233 -0
  146. package/src/mobile/components/MobileBox.jsx +71 -0
  147. package/src/mobile/components/MobileIndividualConnection.jsx +51 -0
  148. package/src/mobile/shims/browser-apis.js +78 -0
  149. package/src/mobile/shims/lucide-shim.js +85 -0
  150. package/src/nativeConnectors.js +5 -0
  151. package/src/newUI/EMAIL_VERIFICATION_API_SCHEMA.md +268 -0
  152. package/src/newUI/PlatformConnectorsStep.tsx +435 -0
  153. package/src/newUI/PrimaryButton.tsx +213 -0
  154. package/src/newUI/SignInStep.tsx +194 -0
  155. package/src/newUI/VerificationStep.tsx +133 -0
  156. package/src/newUI/WelcomeScreen.tsx +311 -0
  157. package/src/newUI/services/connectedAccountsService.js +129 -0
  158. package/src/onairos.capacitor.jsx +15 -0
  159. package/src/onairos.core.jsx +133 -0
  160. package/src/onairos.jsx +14 -0
  161. package/src/onairos.native.jsx +15 -0
  162. package/src/onairosButton.jsx +9000 -0
  163. package/src/overlay/CheckBox.jsx +114 -0
  164. package/src/overlay/IndividualConnection copy.js +86 -0
  165. package/src/overlay/IndividualConnection.js +191 -0
  166. package/src/overlay/IndividualConnectionNew.jsx +157 -0
  167. package/src/overlay/box.js +84 -0
  168. package/src/overlay/overlay.js +437 -0
  169. package/src/styles/onairos-scoped-preflight.css +97 -0
  170. package/src/styles/sdkCssRegistry.js +20 -0
  171. package/src/styles/styleLoaderInsertShadow.js +69 -0
  172. package/src/styles/tailwind.capacitor.css +395 -0
  173. package/src/styles/tailwind.css +395 -0
  174. package/src/theme/colors.js +40 -0
  175. package/src/utils/apiKeyValidation.js +341 -0
  176. package/src/utils/apiResponseLogger.js +316 -0
  177. package/src/utils/authHeaders.js +275 -0
  178. package/src/utils/biometrics.js +26 -0
  179. package/src/utils/bookmarkletUtils.js +28 -0
  180. package/src/utils/capacitorDetection.js +278 -0
  181. package/src/utils/capacitorLLMHelper.js +352 -0
  182. package/src/utils/capacitorPlugins.js +366 -0
  183. package/src/utils/crossDomainSSO.js +587 -0
  184. package/src/utils/deepLinking.js +27 -0
  185. package/src/utils/devLogger.js +46 -0
  186. package/src/utils/extensionDetection.js +418 -0
  187. package/src/utils/extractMemory.js +277 -0
  188. package/src/utils/framerBrandingOverrides.js +40 -0
  189. package/src/utils/googleWebClientId.js +55 -0
  190. package/src/utils/overlayHandler.js +224 -0
  191. package/src/utils/platformDisconnect.js +309 -0
  192. package/src/utils/pollTrainingStatus.js +200 -0
  193. package/src/utils/rawMemoriesAccess.js +211 -0
  194. package/src/utils/resolveBackendAppId.js +47 -0
  195. package/src/utils/responseFormatter.js +140 -0
  196. package/src/utils/sdkDebugStorage.js +113 -0
  197. package/src/utils/sdkInitialization.js +645 -0
  198. package/src/utils/sessionManager.js +1258 -0
  199. package/src/utils/startBackgroundTraining.js +100 -0
  200. package/src/utils/userDataFormatter.js +222 -0
  201. package/index.d.ts +0 -1
  202. package/index.js +0 -1
@@ -0,0 +1,349 @@
1
+ import React, { useEffect, useRef, useState } from 'react';
2
+ import PerplexityLogo from './PerplexityLogo.jsx';
3
+
4
+ // ─── Platform icons ────────────────────────────────────────────────────────────
5
+
6
+ const SOCIAL_PLATFORMS = [
7
+ {
8
+ name: 'Instagram',
9
+ icon: (
10
+ <svg viewBox="0 0 24 24" aria-hidden width="100%" height="100%">
11
+ <defs>
12
+ <radialGradient id="deIg" cx="0.5" cy="1" r="1">
13
+ <stop offset="0%" stopColor="#FDBB4B" />
14
+ <stop offset="40%" stopColor="#E95950" />
15
+ <stop offset="70%" stopColor="#BC2A8D" />
16
+ <stop offset="100%" stopColor="#4C68D7" />
17
+ </radialGradient>
18
+ </defs>
19
+ <path
20
+ fill="url(#deIg)"
21
+ d="M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5.5A4.5 4.5 0 1 0 16.5 12 4.5 4.5 0 0 0 12 7.5zm0 7.4A2.9 2.9 0 1 1 14.9 12 2.9 2.9 0 0 1 12 14.9Zm5.35-8.25a1.15 1.15 0 1 0 1.15 1.15 1.15 1.15 0 0 0-1.15-1.15Z"
22
+ />
23
+ </svg>
24
+ ),
25
+ },
26
+ {
27
+ name: 'YouTube',
28
+ icon: (
29
+ <svg viewBox="0 0 24 24" aria-hidden width="100%" height="100%">
30
+ <path fill="#FF0000" d="M22.54 6.42a3 3 0 0 0-2.11-2.12C18.49 3.75 12 3.75 12 3.75s-6.49 0-8.43.55A3 3 0 0 0 1.46 6.42 31.63 31.63 0 0 0 1 12a31.63 31.63 0 0 0 .46 5.58 3 3 0 0 0 2.11 2.12C5.51 20.25 12 20.25 12 20.25s6.49 0 8.43-.55a3 3 0 0 0 2.11-2.12A31.63 31.63 0 0 0 23 12a31.63 31.63 0 0 0-.46-5.58z" />
31
+ <path fill="#fff" d="M10 8.75v6.5l6-3.25-6-3.25z" />
32
+ </svg>
33
+ ),
34
+ },
35
+ {
36
+ name: 'Reddit',
37
+ icon: (
38
+ <img src="https://upload.wikimedia.org/wikipedia/en/b/bd/Reddit_Logo_Icon.svg" alt="Reddit" width="100%" height="100%" />
39
+ ),
40
+ },
41
+ {
42
+ name: 'LinkedIn',
43
+ icon: (
44
+ <img src="https://upload.wikimedia.org/wikipedia/commons/c/ca/LinkedIn_logo_initials.png" alt="LinkedIn" width="100%" height="100%" />
45
+ ),
46
+ },
47
+ {
48
+ name: 'Pinterest',
49
+ icon: (
50
+ <img src="https://upload.wikimedia.org/wikipedia/commons/0/08/Pinterest-logo.png" alt="Pinterest" width="100%" height="100%" />
51
+ ),
52
+ },
53
+ ];
54
+
55
+ const AI_PLATFORMS = [
56
+ {
57
+ name: 'ChatGPT',
58
+ icon: (
59
+ <img src="https://anushkasirv.sirv.com/openai.png" alt="ChatGPT" style={{ width: '100%', height: '100%', objectFit: 'contain' }} />
60
+ ),
61
+ },
62
+ {
63
+ name: 'Claude',
64
+ icon: (
65
+ <img src="https://anushkasirv.sirv.com/claude-color.png" alt="Claude" style={{ width: '100%', height: '100%', objectFit: 'contain' }} />
66
+ ),
67
+ },
68
+ {
69
+ name: 'Gemini',
70
+ icon: (
71
+ <img src="https://anushkasirv.sirv.com/gemini-color.png" alt="Gemini" style={{ width: '100%', height: '100%', objectFit: 'contain' }} />
72
+ ),
73
+ },
74
+ {
75
+ name: 'Grok',
76
+ icon: (
77
+ <img src="https://anushkasirv.sirv.com/grok.png" alt="Grok" style={{ width: '100%', height: '100%', objectFit: 'contain' }} />
78
+ ),
79
+ },
80
+ {
81
+ name: 'Perplexity',
82
+ icon: (
83
+ <PerplexityLogo />
84
+ ),
85
+ },
86
+ ];
87
+
88
+ // ─── Sub-components ────────────────────────────────────────────────────────────
89
+
90
+ function PlatformItem({ platform, iconSize, fontSize }) {
91
+ return (
92
+ <div
93
+ style={{
94
+ display: 'flex',
95
+ flexDirection: 'column',
96
+ alignItems: 'center',
97
+ gap: 5,
98
+ flex: '0 0 auto',
99
+ }}
100
+ >
101
+ {/* Flat icon circle — no border, no shadow */}
102
+ <div
103
+ aria-label={platform.name}
104
+ style={{
105
+ width: iconSize,
106
+ height: iconSize,
107
+ borderRadius: '50%',
108
+ backgroundColor: '#F2F4F7',
109
+ display: 'flex',
110
+ alignItems: 'center',
111
+ justifyContent: 'center',
112
+ padding: Math.round(iconSize * 0.19),
113
+ }}
114
+ >
115
+ {platform.icon}
116
+ </div>
117
+ <span
118
+ style={{
119
+ fontFamily: 'Inter, system-ui, sans-serif',
120
+ fontSize,
121
+ fontWeight: 500,
122
+ color: '#6B7280',
123
+ lineHeight: 1,
124
+ textAlign: 'center',
125
+ whiteSpace: 'nowrap',
126
+ }}
127
+ >
128
+ {platform.name}
129
+ </span>
130
+ </div>
131
+ );
132
+ }
133
+
134
+ // ─── Main component ────────────────────────────────────────────────────────────
135
+
136
+ const DEFAULT_DATA_USAGE = 'Your data trains a private AI model that powers personalized experiences.';
137
+
138
+
139
+ export default function DataExplainerScreen({
140
+ onContinue,
141
+ theme = 'default',
142
+ dataUsageDescription = null,
143
+ allowedPlatforms = null, // array of platform names to show, null = show all
144
+ }) {
145
+ const usageText = (typeof dataUsageDescription === 'string' && dataUsageDescription.trim())
146
+ ? dataUsageDescription.trim()
147
+ : DEFAULT_DATA_USAGE;
148
+
149
+ // Filter platform lists — when allowedPlatforms is null show everything
150
+ const allowedSet = Array.isArray(allowedPlatforms) && allowedPlatforms.length > 0
151
+ ? new Set(allowedPlatforms.map((n) => String(n).trim()))
152
+ : null;
153
+
154
+ const visibleSocial = allowedSet
155
+ ? SOCIAL_PLATFORMS.filter((p) => allowedSet.has(p.name))
156
+ : SOCIAL_PLATFORMS;
157
+
158
+ const visibleAI = allowedSet
159
+ ? AI_PLATFORMS.filter((p) => allowedSet.has(p.name))
160
+ : AI_PLATFORMS;
161
+ const isGlass = theme === 'glass';
162
+ const rootRef = useRef(null);
163
+ const [containerHeight, setContainerHeight] = useState(0);
164
+
165
+ const isTight = containerHeight > 0 && containerHeight <= 620;
166
+ const isVeryTight = containerHeight > 0 && containerHeight <= 510;
167
+
168
+ useEffect(() => {
169
+ if (!rootRef.current || typeof ResizeObserver === 'undefined') return;
170
+ const el = rootRef.current;
171
+ const ro = new ResizeObserver((entries) => {
172
+ const h = entries[0]?.contentRect?.height;
173
+ if (typeof h === 'number' && Number.isFinite(h)) setContainerHeight(Math.round(h));
174
+ });
175
+ ro.observe(el);
176
+ try { setContainerHeight(Math.round(el.getBoundingClientRect().height || 0)); } catch {}
177
+ return () => ro.disconnect();
178
+ }, []);
179
+
180
+ const iconSize = isVeryTight ? 40 : isTight ? 44 : 48;
181
+ const labelSize = isVeryTight ? 10 : 11;
182
+ const bg = isGlass ? 'transparent' : '#ffffff';
183
+ const divider = isGlass ? 'rgba(255,255,255,0.1)' : '#F3F4F6';
184
+
185
+ return (
186
+ <div
187
+ ref={rootRef}
188
+ style={{
189
+ height: '100%',
190
+ display: 'flex',
191
+ flexDirection: 'column',
192
+ backgroundColor: bg,
193
+ overflow: 'hidden',
194
+ }}
195
+ >
196
+ {/* ── Scrollable body ── */}
197
+ <div
198
+ style={{
199
+ flex: 1,
200
+ overflowY: 'auto',
201
+ overflowX: 'hidden',
202
+ paddingTop: isVeryTight ? 20 : isTight ? 24 : 32,
203
+ paddingLeft: 24,
204
+ paddingRight: 24,
205
+ paddingBottom: 16,
206
+ }}
207
+ >
208
+ {/* Title */}
209
+ <h1
210
+ style={{
211
+ fontFamily: 'IBM Plex Sans, system-ui, sans-serif',
212
+ fontWeight: 700,
213
+ fontSize: isVeryTight ? 22 : isTight ? 25 : 28,
214
+ color: isGlass ? '#ffffff' : '#111827',
215
+ lineHeight: 1.2,
216
+ letterSpacing: '-0.4px',
217
+ marginBottom: isVeryTight ? 18 : isTight ? 22 : 28,
218
+ }}
219
+ >
220
+ What Onairos connects
221
+ </h1>
222
+
223
+ {/* Social media row — hidden if none are allowed */}
224
+ {visibleSocial.length > 0 && (
225
+ <>
226
+ <div
227
+ style={{
228
+ fontFamily: 'Inter, system-ui, sans-serif',
229
+ fontSize: 11,
230
+ fontWeight: 600,
231
+ letterSpacing: '0.06em',
232
+ textTransform: 'uppercase',
233
+ color: isGlass ? 'rgba(255,255,255,0.4)' : '#9CA3AF',
234
+ marginBottom: 12,
235
+ }}
236
+ >
237
+ Social media
238
+ </div>
239
+ <div
240
+ style={{
241
+ display: 'flex',
242
+ gap: isVeryTight ? 10 : 14,
243
+ flexWrap: 'wrap',
244
+ marginBottom: isVeryTight ? 18 : isTight ? 22 : 26,
245
+ }}
246
+ >
247
+ {visibleSocial.map((p) => (
248
+ <PlatformItem key={p.name} platform={p} iconSize={iconSize} fontSize={labelSize} />
249
+ ))}
250
+ </div>
251
+ </>
252
+ )}
253
+
254
+ {/* AI tools row — hidden if none are allowed */}
255
+ {visibleAI.length > 0 && (
256
+ <>
257
+ <div
258
+ style={{
259
+ fontFamily: 'Inter, system-ui, sans-serif',
260
+ fontSize: 11,
261
+ fontWeight: 600,
262
+ letterSpacing: '0.06em',
263
+ textTransform: 'uppercase',
264
+ color: isGlass ? 'rgba(255,255,255,0.4)' : '#9CA3AF',
265
+ marginBottom: 12,
266
+ }}
267
+ >
268
+ AI tools
269
+ </div>
270
+ <div
271
+ style={{
272
+ display: 'flex',
273
+ gap: isVeryTight ? 10 : 14,
274
+ flexWrap: 'wrap',
275
+ marginBottom: isVeryTight ? 18 : isTight ? 22 : 26,
276
+ }}
277
+ >
278
+ {visibleAI.map((p) => (
279
+ <PlatformItem key={p.name} platform={p} iconSize={iconSize} fontSize={labelSize} />
280
+ ))}
281
+ </div>
282
+ </>
283
+ )}
284
+
285
+ {/* Divider */}
286
+ <div style={{ height: 1, backgroundColor: divider, marginBottom: isVeryTight ? 14 : isTight ? 16 : 20 }} />
287
+
288
+ {/* Customisable data-usage callout */}
289
+ <div
290
+ style={{
291
+ borderLeft: `3px solid ${isGlass ? 'rgba(255,255,255,0.4)' : '#3B82F6'}`,
292
+ paddingLeft: 12,
293
+ }}
294
+ >
295
+ <p
296
+ style={{
297
+ fontFamily: 'Inter, system-ui, sans-serif',
298
+ fontSize: isVeryTight ? 13 : 14,
299
+ fontWeight: 500,
300
+ color: isGlass ? 'rgba(255,255,255,0.8)' : '#374151',
301
+ lineHeight: 1.55,
302
+ margin: 0,
303
+ }}
304
+ >
305
+ {usageText}
306
+ </p>
307
+ </div>
308
+ </div>
309
+
310
+ {/* ── Fixed footer ── */}
311
+ <div
312
+ style={{
313
+ flexShrink: 0,
314
+ paddingTop: isTight ? 10 : 14,
315
+ paddingBottom: `calc(${isVeryTight ? 14 : isTight ? 16 : 20}px + env(safe-area-inset-bottom))`,
316
+ paddingLeft: 24,
317
+ paddingRight: 24,
318
+ backgroundColor: isGlass ? 'transparent' : '#ffffff',
319
+ }}
320
+ >
321
+ <button
322
+ onClick={onContinue}
323
+ aria-label="Continue to connect your apps"
324
+ style={{
325
+ display: 'flex',
326
+ width: '100%',
327
+ minHeight: 52,
328
+ borderRadius: 9999,
329
+ alignItems: 'center',
330
+ justifyContent: 'center',
331
+ gap: 8,
332
+ cursor: 'pointer',
333
+ background: isGlass ? 'rgba(255,255,255,0.15)' : '#111827',
334
+ color: '#ffffff',
335
+ border: isGlass ? '1px solid rgba(255,255,255,0.2)' : 'none',
336
+ fontFamily: 'Inter, system-ui, sans-serif',
337
+ fontSize: 16,
338
+ fontWeight: 500,
339
+ }}
340
+ >
341
+ Continue
342
+ <svg width="16" height="16" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden>
343
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
344
+ </svg>
345
+ </button>
346
+ </div>
347
+ </div>
348
+ );
349
+ }