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