@truly-you/trulyyou-web-sdk 0.1.24 → 0.1.25

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/src/types.ts DELETED
@@ -1,43 +0,0 @@
1
- export interface TrulyYouSDKConfig {
2
- frontendUrl?: string
3
- apiUrl?: string
4
- appId?: string
5
- authAppId?: string
6
- invisible?: boolean // Optional: render signing iframe invisibly (except on iOS/Safari)
7
- targetElement?: string | HTMLElement // Optional: Target element for SDK placement when not invisible
8
- spinnerColor?: string // Optional: Custom color for the loading spinner (default: #2563eb)
9
- spinnerBgColor?: string // Optional: Custom background color for the spinner ring (default: #e5e7eb)
10
- spinnerTextColor?: string // Optional: Custom color for the spinner text (default: #6b7280)
11
- realtimeUrl?: string // Optional: WebSocket URL for desktop handoff (default: inferred from frontendUrl)
12
- mockMobileDevice?: boolean // Optional: Simulate mobile device (force on-device signing, ignore platform detection)
13
- pusherAppKey?: string // Optional: Pusher app key (default: 'app-key' if not provided)
14
- pusherConfig?: {
15
- wsHost?: string
16
- wsPort?: number
17
- cluster?: string // Optional: Pusher cluster (required if using custom wsHost/wsPort, use empty string to disable default)
18
- forceTLS?: boolean
19
- encrypted?: boolean
20
- disableStats?: boolean
21
- enabledTransports?: string[]
22
- } // Optional: Custom Pusher configuration
23
- }
24
-
25
- export interface FetchOptions extends RequestInit {
26
- headers?: Record<string, string>
27
- onSigningStart?: () => void
28
- onSigningComplete?: () => void
29
- onRequestStart?: () => void
30
- }
31
-
32
- export interface SigningResult {
33
- signature: string
34
- keyId: string
35
- signatureId?: string
36
- }
37
-
38
- export interface FetchResult {
39
- response: Response
40
- signature?: string
41
- signatureId?: string
42
- }
43
-
package/tsconfig.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "module": "ESNext",
5
- "lib": ["ES2020", "DOM"],
6
- "declaration": true,
7
- "outDir": "./dist",
8
- "rootDir": "./src",
9
- "strict": true,
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "moduleResolution": "node",
14
- "resolveJsonModule": true,
15
- "allowSyntheticDefaultImports": true
16
- },
17
- "include": ["src/**/*"],
18
- "exclude": ["node_modules", "dist"]
19
- }
20
-