@leather.io/analytics 2.0.1 → 3.0.0
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/dist/index.d.ts +31 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { DefaultNetworkConfigurations } from '@leather.io/models';
|
|
2
|
+
|
|
1
3
|
interface Events extends HistoricalEvents {
|
|
2
|
-
|
|
4
|
+
user_setting_updated: UserSettingValue;
|
|
5
|
+
wallet_created: WalletCreatedValue;
|
|
6
|
+
wallet_restored: WalletCreatedValue;
|
|
7
|
+
app_unlocked: undefined;
|
|
8
|
+
app_locked: undefined;
|
|
3
9
|
}
|
|
4
10
|
interface HistoricalEvents {
|
|
5
11
|
add_network: undefined;
|
|
@@ -164,6 +170,30 @@ interface HistoricalEvents {
|
|
|
164
170
|
};
|
|
165
171
|
}
|
|
166
172
|
type EventName = keyof Events;
|
|
173
|
+
type UserSettingValue = {
|
|
174
|
+
account_display: 'stacks' | 'native-segwit' | 'taproot' | 'bns';
|
|
175
|
+
} | {
|
|
176
|
+
analytics: 'consent-given' | 'rejects-tracking';
|
|
177
|
+
} | {
|
|
178
|
+
bitcoin_unit: 'bitcoin' | 'satoshi';
|
|
179
|
+
} | {
|
|
180
|
+
email_address: string;
|
|
181
|
+
} | {
|
|
182
|
+
fiat_currency: string;
|
|
183
|
+
} | {
|
|
184
|
+
network: DefaultNetworkConfigurations;
|
|
185
|
+
} | {
|
|
186
|
+
privacy_mode: 'hidden' | 'visible';
|
|
187
|
+
} | {
|
|
188
|
+
haptics: 'disabled' | 'enabled';
|
|
189
|
+
} | {
|
|
190
|
+
theme: 'light' | 'dark' | 'system';
|
|
191
|
+
} | {
|
|
192
|
+
security_level: 'insecure' | 'secure' | 'not-selected';
|
|
193
|
+
};
|
|
194
|
+
interface WalletCreatedValue {
|
|
195
|
+
type: 'software' | 'ledger';
|
|
196
|
+
}
|
|
167
197
|
|
|
168
198
|
interface DefaultProperties {
|
|
169
199
|
platform: 'web' | 'extension' | 'mobile';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@leather.io/analytics",
|
|
3
3
|
"author": "Leather.io contact@leather.io",
|
|
4
4
|
"description": "Analytics package for Leather using Segment",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "3.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/leather.io/mono/tree/dev/packages/analytics",
|
|
8
8
|
"repository": {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"tsup": "8.1.0",
|
|
28
28
|
"typescript": "5.5.4",
|
|
29
29
|
"vitest": "2.1.5",
|
|
30
|
+
"@leather.io/models": "0.24.0",
|
|
30
31
|
"@leather.io/eslint-config": "0.7.0"
|
|
31
32
|
},
|
|
32
33
|
"files": [
|