@aurum-sdk/types 0.2.1 → 0.2.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.
package/dist/index.d.mts CHANGED
@@ -63,9 +63,7 @@ declare enum WalletName {
63
63
  Phantom = "Phantom",
64
64
  WalletConnect = "WalletConnect",
65
65
  Rabby = "Rabby",
66
- Brave = "Brave Wallet",
67
- Ledger = "Ledger",
68
- AppKit = "AppKit"
66
+ Brave = "Brave"
69
67
  }
70
68
  declare enum WalletId {
71
69
  Email = "email",
@@ -74,9 +72,7 @@ declare enum WalletId {
74
72
  Phantom = "phantom",
75
73
  WalletConnect = "walletconnect",
76
74
  Rabby = "rabby",
77
- Brave = "brave",
78
- Ledger = "ledger",
79
- AppKit = "appkit"
75
+ Brave = "brave"
80
76
  }
81
77
 
82
78
  type Theme = 'light' | 'dark';
@@ -127,7 +123,7 @@ interface WalletConnectConfig {
127
123
  projectId: string;
128
124
  }
129
125
  /**
130
- * walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets
126
+ * walletConnect projectId is used for WalletConnect
131
127
  */
132
128
  interface WalletsConfig {
133
129
  embedded?: EmbeddedWalletsConfig;
package/dist/index.d.ts CHANGED
@@ -63,9 +63,7 @@ declare enum WalletName {
63
63
  Phantom = "Phantom",
64
64
  WalletConnect = "WalletConnect",
65
65
  Rabby = "Rabby",
66
- Brave = "Brave Wallet",
67
- Ledger = "Ledger",
68
- AppKit = "AppKit"
66
+ Brave = "Brave"
69
67
  }
70
68
  declare enum WalletId {
71
69
  Email = "email",
@@ -74,9 +72,7 @@ declare enum WalletId {
74
72
  Phantom = "phantom",
75
73
  WalletConnect = "walletconnect",
76
74
  Rabby = "rabby",
77
- Brave = "brave",
78
- Ledger = "ledger",
79
- AppKit = "appkit"
75
+ Brave = "brave"
80
76
  }
81
77
 
82
78
  type Theme = 'light' | 'dark';
@@ -127,7 +123,7 @@ interface WalletConnectConfig {
127
123
  projectId: string;
128
124
  }
129
125
  /**
130
- * walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets
126
+ * walletConnect projectId is used for WalletConnect
131
127
  */
132
128
  interface WalletsConfig {
133
129
  embedded?: EmbeddedWalletsConfig;
package/dist/index.js CHANGED
@@ -17,9 +17,7 @@ var WalletName = /* @__PURE__ */ ((WalletName2) => {
17
17
  WalletName2["Phantom"] = "Phantom";
18
18
  WalletName2["WalletConnect"] = "WalletConnect";
19
19
  WalletName2["Rabby"] = "Rabby";
20
- WalletName2["Brave"] = "Brave Wallet";
21
- WalletName2["Ledger"] = "Ledger";
22
- WalletName2["AppKit"] = "AppKit";
20
+ WalletName2["Brave"] = "Brave";
23
21
  return WalletName2;
24
22
  })(WalletName || {});
25
23
  var WalletId = /* @__PURE__ */ ((WalletId2) => {
@@ -30,8 +28,6 @@ var WalletId = /* @__PURE__ */ ((WalletId2) => {
30
28
  WalletId2["WalletConnect"] = "walletconnect";
31
29
  WalletId2["Rabby"] = "rabby";
32
30
  WalletId2["Brave"] = "brave";
33
- WalletId2["Ledger"] = "ledger";
34
- WalletId2["AppKit"] = "appkit";
35
31
  return WalletId2;
36
32
  })(WalletId || {});
37
33
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";;;AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF,IAAA,EAAM,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAE;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EA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UAAA,QAAA,CAAA,GAAS,QAAA;AACT,EAAAA,UAAA,QAAA,CAAA,GAAS,QAAA;AATC,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"index.js","sourcesContent":["import { WalletId } from './wallet';\n\nexport type Theme = 'light' | 'dark';\nexport type BorderRadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface EmbeddedWalletsConfig {\n projectId: string;\n}\n\nexport interface WalletConnectConfig {\n projectId: string;\n}\n\n/**\n * walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets\n */\nexport interface WalletsConfig {\n embedded?: EmbeddedWalletsConfig;\n walletConnect?: WalletConnectConfig;\n exclude?: WalletId[] | `${WalletId}`[];\n}\n\nexport interface AurumConfig {\n brand?: BrandConfig;\n wallets?: WalletsConfig;\n telemetry?: boolean;\n}\n","export enum WalletName {\n Email = 'Email',\n MetaMask = 'MetaMask',\n CoinbaseWallet = 'Coinbase Wallet',\n Phantom = 'Phantom',\n WalletConnect = 'WalletConnect',\n Rabby = 'Rabby',\n Brave = 'Brave Wallet',\n Ledger = 'Ledger',\n AppKit = 'AppKit',\n}\n\nexport enum WalletId {\n Email = 'email',\n MetaMask = 'metamask',\n CoinbaseWallet = 'coinbase-wallet',\n Phantom = 'phantom',\n WalletConnect = 'walletconnect',\n Rabby = 'rabby',\n Brave = 'brave',\n Ledger = 'ledger',\n AppKit = 'appkit',\n}\n"]}
1
+ {"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";;;AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF,IAAA,EAAM,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAE;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA;AAC5C;;;AC5BO,IAAK,UAAA,qBAAAA,WAAAA,KAAL;AACL,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,YAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,YAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,YAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AAPE,EAAA,OAAAA,WAAAA;AAAA,CAAA,EAAA,UAAA,IAAA,EAAA;AAUL,IAAK,QAAA,qBAAAC,SAAAA,KAAL;AACL,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,UAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,UAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,UAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AAPE,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"index.js","sourcesContent":["import { WalletId } from './wallet';\n\nexport type Theme = 'light' | 'dark';\nexport type BorderRadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface EmbeddedWalletsConfig {\n projectId: string;\n}\n\nexport interface WalletConnectConfig {\n projectId: string;\n}\n\n/**\n * walletConnect projectId is used for WalletConnect\n */\nexport interface WalletsConfig {\n embedded?: EmbeddedWalletsConfig;\n walletConnect?: WalletConnectConfig;\n exclude?: WalletId[] | `${WalletId}`[];\n}\n\nexport interface AurumConfig {\n brand?: BrandConfig;\n wallets?: WalletsConfig;\n telemetry?: boolean;\n}\n","export enum WalletName {\n Email = 'Email',\n MetaMask = 'MetaMask',\n CoinbaseWallet = 'Coinbase Wallet',\n Phantom = 'Phantom',\n WalletConnect = 'WalletConnect',\n Rabby = 'Rabby',\n Brave = 'Brave',\n}\n\nexport enum WalletId {\n Email = 'email',\n MetaMask = 'metamask',\n CoinbaseWallet = 'coinbase-wallet',\n Phantom = 'phantom',\n WalletConnect = 'walletconnect',\n Rabby = 'rabby',\n Brave = 'brave',\n}\n"]}
package/dist/index.mjs CHANGED
@@ -15,9 +15,7 @@ var WalletName = /* @__PURE__ */ ((WalletName2) => {
15
15
  WalletName2["Phantom"] = "Phantom";
16
16
  WalletName2["WalletConnect"] = "WalletConnect";
17
17
  WalletName2["Rabby"] = "Rabby";
18
- WalletName2["Brave"] = "Brave Wallet";
19
- WalletName2["Ledger"] = "Ledger";
20
- WalletName2["AppKit"] = "AppKit";
18
+ WalletName2["Brave"] = "Brave";
21
19
  return WalletName2;
22
20
  })(WalletName || {});
23
21
  var WalletId = /* @__PURE__ */ ((WalletId2) => {
@@ -28,8 +26,6 @@ var WalletId = /* @__PURE__ */ ((WalletId2) => {
28
26
  WalletId2["WalletConnect"] = "walletconnect";
29
27
  WalletId2["Rabby"] = "rabby";
30
28
  WalletId2["Brave"] = "brave";
31
- WalletId2["Ledger"] = "ledger";
32
- WalletId2["AppKit"] = "appkit";
33
29
  return WalletId2;
34
30
  })(WalletId || {});
35
31
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF,IAAA,EAAM,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAE;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAA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AAA,QAAA,CAAA,GAAS,QAAA;AATC,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"index.mjs","sourcesContent":["import { WalletId } from './wallet';\n\nexport type Theme = 'light' | 'dark';\nexport type BorderRadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface EmbeddedWalletsConfig {\n projectId: string;\n}\n\nexport interface WalletConnectConfig {\n projectId: string;\n}\n\n/**\n * walletConnect projectId is used for WalletConnect, AppKit, and Ledger wallets\n */\nexport interface WalletsConfig {\n embedded?: EmbeddedWalletsConfig;\n walletConnect?: WalletConnectConfig;\n exclude?: WalletId[] | `${WalletId}`[];\n}\n\nexport interface AurumConfig {\n brand?: BrandConfig;\n wallets?: WalletsConfig;\n telemetry?: boolean;\n}\n","export enum WalletName {\n Email = 'Email',\n MetaMask = 'MetaMask',\n CoinbaseWallet = 'Coinbase Wallet',\n Phantom = 'Phantom',\n WalletConnect = 'WalletConnect',\n Rabby = 'Rabby',\n Brave = 'Brave Wallet',\n Ledger = 'Ledger',\n AppKit = 'AppKit',\n}\n\nexport enum WalletId {\n Email = 'email',\n MetaMask = 'metamask',\n CoinbaseWallet = 'coinbase-wallet',\n Phantom = 'phantom',\n WalletConnect = 'walletconnect',\n Rabby = 'rabby',\n Brave = 'brave',\n Ledger = 'ledger',\n AppKit = 'appkit',\n}\n"]}
1
+ {"version":3,"sources":["../src/sdk-config.ts","../src/wallet.ts"],"names":["WalletName","WalletId"],"mappings":";AAsBO,IAAM,oBAAA,GAAqE;AAAA,EAChF,IAAA,EAAM,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAE;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC1C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,CAAA,EAAG,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAG;AAAA,EAC5C,EAAA,EAAI,EAAE,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA,EAAI,EAAA;AAC5C;;;AC5BO,IAAK,UAAA,qBAAAA,WAAAA,KAAL;AACL,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,YAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,YAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,YAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,YAAA,OAAA,CAAA,GAAQ,OAAA;AAPE,EAAA,OAAAA,WAAAA;AAAA,CAAA,EAAA,UAAA,IAAA,EAAA;AAUL,IAAK,QAAA,qBAAAC,SAAAA,KAAL;AACL,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,UAAA,CAAA,GAAW,UAAA;AACX,EAAAA,UAAA,gBAAA,CAAA,GAAiB,iBAAA;AACjB,EAAAA,UAAA,SAAA,CAAA,GAAU,SAAA;AACV,EAAAA,UAAA,eAAA,CAAA,GAAgB,eAAA;AAChB,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AACR,EAAAA,UAAA,OAAA,CAAA,GAAQ,OAAA;AAPE,EAAA,OAAAA,SAAAA;AAAA,CAAA,EAAA,QAAA,IAAA,EAAA","file":"index.mjs","sourcesContent":["import { WalletId } from './wallet';\n\nexport type Theme = 'light' | 'dark';\nexport type BorderRadiusToken = 'none' | 'sm' | 'md' | 'lg' | 'xl';\nexport type WalletLayout = 'stacked' | 'grid';\n\n/**\n * Border radius scale for each size slot (xs through xl).\n * Values are in pixels.\n */\nexport interface BorderRadiusScale {\n xs: number;\n sm: number;\n md: number;\n lg: number;\n xl: number;\n}\n\n/**\n * Complete border radius scales for each token.\n * Each token provides a consistent scale of pixel values.\n */\nexport const BORDER_RADIUS_SCALES: Record<BorderRadiusToken, BorderRadiusScale> = {\n none: { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 },\n sm: { xs: 4, sm: 6, md: 8, lg: 10, xl: 12 },\n md: { xs: 6, sm: 10, md: 14, lg: 18, xl: 22 },\n lg: { xs: 8, sm: 14, md: 20, lg: 26, xl: 32 },\n xl: { xs: 10, sm: 18, md: 26, lg: 34, xl: 42 },\n};\n\nexport type BorderRadiusSizeSlot = keyof BorderRadiusScale;\n\nexport interface BrandConfig {\n theme?: Theme;\n logo?: string;\n primaryColor?: string;\n borderRadius?: BorderRadiusToken;\n modalZIndex?: number;\n appName?: string;\n hideFooter?: boolean;\n font?: string;\n walletLayout?: WalletLayout;\n}\n\nexport interface NonNullableBrandConfig\n extends Omit<\n BrandConfig,\n 'theme' | 'primaryColor' | 'borderRadius' | 'modalZIndex' | 'appName' | 'hideFooter' | 'font' | 'walletLayout'\n > {\n theme: Theme;\n primaryColor: string;\n borderRadius: BorderRadiusToken;\n modalZIndex: number;\n appName: string;\n hideFooter: boolean;\n font: string;\n walletLayout: WalletLayout;\n}\n\nexport interface EmbeddedWalletsConfig {\n projectId: string;\n}\n\nexport interface WalletConnectConfig {\n projectId: string;\n}\n\n/**\n * walletConnect projectId is used for WalletConnect\n */\nexport interface WalletsConfig {\n embedded?: EmbeddedWalletsConfig;\n walletConnect?: WalletConnectConfig;\n exclude?: WalletId[] | `${WalletId}`[];\n}\n\nexport interface AurumConfig {\n brand?: BrandConfig;\n wallets?: WalletsConfig;\n telemetry?: boolean;\n}\n","export enum WalletName {\n Email = 'Email',\n MetaMask = 'MetaMask',\n CoinbaseWallet = 'Coinbase Wallet',\n Phantom = 'Phantom',\n WalletConnect = 'WalletConnect',\n Rabby = 'Rabby',\n Brave = 'Brave',\n}\n\nexport enum WalletId {\n Email = 'email',\n MetaMask = 'metamask',\n CoinbaseWallet = 'coinbase-wallet',\n Phantom = 'phantom',\n WalletConnect = 'walletconnect',\n Rabby = 'rabby',\n Brave = 'brave',\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurum-sdk/types",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript types for Aurum SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",