@lightsparkdev/core 1.4.3 → 1.4.5

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.
@@ -29,6 +29,7 @@ declare const CurrencyUnit: {
29
29
  readonly EUR: "EUR";
30
30
  readonly GBP: "GBP";
31
31
  readonly INR: "INR";
32
+ readonly USDT: "USDT";
32
33
  readonly Bitcoin: "BITCOIN";
33
34
  readonly Microbitcoin: "MICROBITCOIN";
34
35
  readonly Millibitcoin: "MILLIBITCOIN";
@@ -40,6 +41,7 @@ declare const CurrencyUnit: {
40
41
  readonly Php: "PHP";
41
42
  readonly Gbp: "GBP";
42
43
  readonly Inr: "INR";
44
+ readonly Usdt: "USDT";
43
45
  };
44
46
  type CurrencyUnitType = (typeof CurrencyUnit)[keyof typeof CurrencyUnit];
45
47
  type SDKCurrencyAmountType = {
@@ -67,6 +69,7 @@ type CurrencyMap = {
67
69
  [CurrencyUnit.EUR]: number;
68
70
  [CurrencyUnit.GBP]: number;
69
71
  [CurrencyUnit.INR]: number;
72
+ [CurrencyUnit.USDT]: number;
70
73
  [CurrencyUnit.FUTURE_VALUE]: number;
71
74
  formatted: {
72
75
  sats: string;
@@ -84,6 +87,7 @@ type CurrencyMap = {
84
87
  [CurrencyUnit.EUR]: string;
85
88
  [CurrencyUnit.GBP]: string;
86
89
  [CurrencyUnit.INR]: string;
90
+ [CurrencyUnit.USDT]: string;
87
91
  [CurrencyUnit.FUTURE_VALUE]: string;
88
92
  };
89
93
  isZero: boolean;
@@ -139,7 +143,7 @@ declare function getCurrencyAmount(currencyAmountArg: CurrencyAmountArg): {
139
143
  };
140
144
  declare function mapCurrencyAmount(currencyAmountArg: CurrencyAmountArg, unitsPerBtc?: number): CurrencyMap;
141
145
  declare const isCurrencyMap: (currencyMap: unknown) => currencyMap is CurrencyMap;
142
- declare const abbrCurrencyUnit: (unit: CurrencyUnitType) => "EUR" | "USD" | "GBP" | "INR" | "MXN" | "PHP" | "BTC" | "SAT" | "MSAT" | "mBTC" | "μBTC" | "Unsupported CurrencyUnit";
146
+ declare const abbrCurrencyUnit: (unit: CurrencyUnitType) => "EUR" | "USD" | "GBP" | "INR" | "MXN" | "PHP" | "USDT" | "BTC" | "SAT" | "MSAT" | "mBTC" | "μBTC" | "Unsupported CurrencyUnit";
143
147
  type AppendUnitsOptions = {
144
148
  plural?: boolean | undefined;
145
149
  lowercase?: boolean | undefined;
@@ -172,6 +176,7 @@ declare const isBrowser: boolean;
172
176
  declare const isNode: boolean;
173
177
  declare const isTest: boolean;
174
178
  declare const isBare: boolean;
179
+ declare const isReactNative: boolean;
175
180
 
176
181
  type Maybe<T> = T | null | undefined;
177
182
  type ExpandRecursively<T> = T extends object ? T extends infer O ? {
@@ -336,4 +341,4 @@ declare const zipcodeToStateCode: Record<string, StateCode>;
336
341
  */
337
342
  declare function zipcodeToState(zipcode: string): StateCode | null;
338
343
 
339
- export { setLocalStorageBoolean as $, type AppendUnitsOptions as A, formatCurrencyStr as B, ConfigKeys as C, type DeprecatedCurrencyAmountObj as D, separateCurrencyStrParts as E, localeToCurrencySymbol as F, formatInviteAmount as G, isBrowser as H, isNode as I, isTest as J, isBare as K, isError as L, isErrorWithMessage as M, getErrorMsg as N, isErrorMsg as O, errorToJSON as P, bytesToHex as Q, hexToBytes as R, type SDKCurrencyAmountType as S, getCurrentLocale as T, type UmaCurrency as U, countryCodesToCurrencyCodes as V, type CurrencyLocales as W, type CurrencyCodes as X, localeToCurrencyCode as Y, getLocalStorageConfigItem as Z, getLocalStorageBoolean as _, b64encode as a, deleteLocalStorageItem as a0, clamp as a1, linearInterpolate as a2, round as a3, isNumber as a4, pollUntil as a5, sleep as a6, lsidToUUID as a7, isUint8Array as a8, isObject as a9, isRecord as aa, type Maybe as ab, type ExpandRecursively as ac, type ById as ad, type OmitTypename as ae, isType as af, type ExtractByTypename as ag, type DeepPartial as ah, type JSONLiteral as ai, type JSONType as aj, type JSONObject as ak, type NN as al, notNullUndefined as am, type PartialBy as an, type Complete as ao, type RequiredKeys as ap, type StateCode as aq, zipcodeToStateCode as ar, zipcodeToState as as, b64decode as b, createSha256Hash as c, defaultCurrencyCode as d, ensureArray as e, CurrencyUnit as f, type CurrencyUnitType as g, convertCurrencyAmountValue as h, convertCurrencyAmount as i, type CurrencyMap as j, type CurrencyAmountInputObj as k, type UmaCurrencyAmount as l, type CurrencyAmountObj as m, type CurrencyAmountPreferenceObj as n, type CurrencyAmountArg as o, isCurrencyAmountInputObj as p, isUmaCurrencyAmount as q, isDeprecatedCurrencyAmountObj as r, isCurrencyAmountObj as s, isCurrencyAmountPreferenceObj as t, urlsafe_b64decode as u, isSDKCurrencyAmount as v, getCurrencyAmount as w, mapCurrencyAmount as x, isCurrencyMap as y, abbrCurrencyUnit as z };
344
+ export { getLocalStorageBoolean as $, type AppendUnitsOptions as A, formatCurrencyStr as B, ConfigKeys as C, type DeprecatedCurrencyAmountObj as D, separateCurrencyStrParts as E, localeToCurrencySymbol as F, formatInviteAmount as G, isBrowser as H, isNode as I, isTest as J, isBare as K, isReactNative as L, isError as M, isErrorWithMessage as N, getErrorMsg as O, isErrorMsg as P, errorToJSON as Q, bytesToHex as R, type SDKCurrencyAmountType as S, hexToBytes as T, type UmaCurrency as U, getCurrentLocale as V, countryCodesToCurrencyCodes as W, type CurrencyLocales as X, type CurrencyCodes as Y, localeToCurrencyCode as Z, getLocalStorageConfigItem as _, b64encode as a, setLocalStorageBoolean as a0, deleteLocalStorageItem as a1, clamp as a2, linearInterpolate as a3, round as a4, isNumber as a5, pollUntil as a6, sleep as a7, lsidToUUID as a8, isUint8Array as a9, isObject as aa, isRecord as ab, type Maybe as ac, type ExpandRecursively as ad, type ById as ae, type OmitTypename as af, isType as ag, type ExtractByTypename as ah, type DeepPartial as ai, type JSONLiteral as aj, type JSONType as ak, type JSONObject as al, type NN as am, notNullUndefined as an, type PartialBy as ao, type Complete as ap, type RequiredKeys as aq, type StateCode as ar, zipcodeToStateCode as as, zipcodeToState as at, b64decode as b, createSha256Hash as c, defaultCurrencyCode as d, ensureArray as e, CurrencyUnit as f, type CurrencyUnitType as g, convertCurrencyAmountValue as h, convertCurrencyAmount as i, type CurrencyMap as j, type CurrencyAmountInputObj as k, type UmaCurrencyAmount as l, type CurrencyAmountObj as m, type CurrencyAmountPreferenceObj as n, type CurrencyAmountArg as o, isCurrencyAmountInputObj as p, isUmaCurrencyAmount as q, isDeprecatedCurrencyAmountObj as r, isCurrencyAmountObj as s, isCurrencyAmountPreferenceObj as t, urlsafe_b64decode as u, isSDKCurrencyAmount as v, getCurrencyAmount as w, mapCurrencyAmount as x, isCurrencyMap as y, abbrCurrencyUnit as z };
@@ -29,6 +29,7 @@ declare const CurrencyUnit: {
29
29
  readonly EUR: "EUR";
30
30
  readonly GBP: "GBP";
31
31
  readonly INR: "INR";
32
+ readonly USDT: "USDT";
32
33
  readonly Bitcoin: "BITCOIN";
33
34
  readonly Microbitcoin: "MICROBITCOIN";
34
35
  readonly Millibitcoin: "MILLIBITCOIN";
@@ -40,6 +41,7 @@ declare const CurrencyUnit: {
40
41
  readonly Php: "PHP";
41
42
  readonly Gbp: "GBP";
42
43
  readonly Inr: "INR";
44
+ readonly Usdt: "USDT";
43
45
  };
44
46
  type CurrencyUnitType = (typeof CurrencyUnit)[keyof typeof CurrencyUnit];
45
47
  type SDKCurrencyAmountType = {
@@ -67,6 +69,7 @@ type CurrencyMap = {
67
69
  [CurrencyUnit.EUR]: number;
68
70
  [CurrencyUnit.GBP]: number;
69
71
  [CurrencyUnit.INR]: number;
72
+ [CurrencyUnit.USDT]: number;
70
73
  [CurrencyUnit.FUTURE_VALUE]: number;
71
74
  formatted: {
72
75
  sats: string;
@@ -84,6 +87,7 @@ type CurrencyMap = {
84
87
  [CurrencyUnit.EUR]: string;
85
88
  [CurrencyUnit.GBP]: string;
86
89
  [CurrencyUnit.INR]: string;
90
+ [CurrencyUnit.USDT]: string;
87
91
  [CurrencyUnit.FUTURE_VALUE]: string;
88
92
  };
89
93
  isZero: boolean;
@@ -139,7 +143,7 @@ declare function getCurrencyAmount(currencyAmountArg: CurrencyAmountArg): {
139
143
  };
140
144
  declare function mapCurrencyAmount(currencyAmountArg: CurrencyAmountArg, unitsPerBtc?: number): CurrencyMap;
141
145
  declare const isCurrencyMap: (currencyMap: unknown) => currencyMap is CurrencyMap;
142
- declare const abbrCurrencyUnit: (unit: CurrencyUnitType) => "EUR" | "USD" | "GBP" | "INR" | "MXN" | "PHP" | "BTC" | "SAT" | "MSAT" | "mBTC" | "μBTC" | "Unsupported CurrencyUnit";
146
+ declare const abbrCurrencyUnit: (unit: CurrencyUnitType) => "EUR" | "USD" | "GBP" | "INR" | "MXN" | "PHP" | "USDT" | "BTC" | "SAT" | "MSAT" | "mBTC" | "μBTC" | "Unsupported CurrencyUnit";
143
147
  type AppendUnitsOptions = {
144
148
  plural?: boolean | undefined;
145
149
  lowercase?: boolean | undefined;
@@ -172,6 +176,7 @@ declare const isBrowser: boolean;
172
176
  declare const isNode: boolean;
173
177
  declare const isTest: boolean;
174
178
  declare const isBare: boolean;
179
+ declare const isReactNative: boolean;
175
180
 
176
181
  type Maybe<T> = T | null | undefined;
177
182
  type ExpandRecursively<T> = T extends object ? T extends infer O ? {
@@ -336,4 +341,4 @@ declare const zipcodeToStateCode: Record<string, StateCode>;
336
341
  */
337
342
  declare function zipcodeToState(zipcode: string): StateCode | null;
338
343
 
339
- export { setLocalStorageBoolean as $, type AppendUnitsOptions as A, formatCurrencyStr as B, ConfigKeys as C, type DeprecatedCurrencyAmountObj as D, separateCurrencyStrParts as E, localeToCurrencySymbol as F, formatInviteAmount as G, isBrowser as H, isNode as I, isTest as J, isBare as K, isError as L, isErrorWithMessage as M, getErrorMsg as N, isErrorMsg as O, errorToJSON as P, bytesToHex as Q, hexToBytes as R, type SDKCurrencyAmountType as S, getCurrentLocale as T, type UmaCurrency as U, countryCodesToCurrencyCodes as V, type CurrencyLocales as W, type CurrencyCodes as X, localeToCurrencyCode as Y, getLocalStorageConfigItem as Z, getLocalStorageBoolean as _, b64encode as a, deleteLocalStorageItem as a0, clamp as a1, linearInterpolate as a2, round as a3, isNumber as a4, pollUntil as a5, sleep as a6, lsidToUUID as a7, isUint8Array as a8, isObject as a9, isRecord as aa, type Maybe as ab, type ExpandRecursively as ac, type ById as ad, type OmitTypename as ae, isType as af, type ExtractByTypename as ag, type DeepPartial as ah, type JSONLiteral as ai, type JSONType as aj, type JSONObject as ak, type NN as al, notNullUndefined as am, type PartialBy as an, type Complete as ao, type RequiredKeys as ap, type StateCode as aq, zipcodeToStateCode as ar, zipcodeToState as as, b64decode as b, createSha256Hash as c, defaultCurrencyCode as d, ensureArray as e, CurrencyUnit as f, type CurrencyUnitType as g, convertCurrencyAmountValue as h, convertCurrencyAmount as i, type CurrencyMap as j, type CurrencyAmountInputObj as k, type UmaCurrencyAmount as l, type CurrencyAmountObj as m, type CurrencyAmountPreferenceObj as n, type CurrencyAmountArg as o, isCurrencyAmountInputObj as p, isUmaCurrencyAmount as q, isDeprecatedCurrencyAmountObj as r, isCurrencyAmountObj as s, isCurrencyAmountPreferenceObj as t, urlsafe_b64decode as u, isSDKCurrencyAmount as v, getCurrencyAmount as w, mapCurrencyAmount as x, isCurrencyMap as y, abbrCurrencyUnit as z };
344
+ export { getLocalStorageBoolean as $, type AppendUnitsOptions as A, formatCurrencyStr as B, ConfigKeys as C, type DeprecatedCurrencyAmountObj as D, separateCurrencyStrParts as E, localeToCurrencySymbol as F, formatInviteAmount as G, isBrowser as H, isNode as I, isTest as J, isBare as K, isReactNative as L, isError as M, isErrorWithMessage as N, getErrorMsg as O, isErrorMsg as P, errorToJSON as Q, bytesToHex as R, type SDKCurrencyAmountType as S, hexToBytes as T, type UmaCurrency as U, getCurrentLocale as V, countryCodesToCurrencyCodes as W, type CurrencyLocales as X, type CurrencyCodes as Y, localeToCurrencyCode as Z, getLocalStorageConfigItem as _, b64encode as a, setLocalStorageBoolean as a0, deleteLocalStorageItem as a1, clamp as a2, linearInterpolate as a3, round as a4, isNumber as a5, pollUntil as a6, sleep as a7, lsidToUUID as a8, isUint8Array as a9, isObject as aa, isRecord as ab, type Maybe as ac, type ExpandRecursively as ad, type ById as ae, type OmitTypename as af, isType as ag, type ExtractByTypename as ah, type DeepPartial as ai, type JSONLiteral as aj, type JSONType as ak, type JSONObject as al, type NN as am, notNullUndefined as an, type PartialBy as ao, type Complete as ap, type RequiredKeys as aq, type StateCode as ar, zipcodeToStateCode as as, zipcodeToState as at, b64decode as b, createSha256Hash as c, defaultCurrencyCode as d, ensureArray as e, CurrencyUnit as f, type CurrencyUnitType as g, convertCurrencyAmountValue as h, convertCurrencyAmount as i, type CurrencyMap as j, type CurrencyAmountInputObj as k, type UmaCurrencyAmount as l, type CurrencyAmountObj as m, type CurrencyAmountPreferenceObj as n, type CurrencyAmountArg as o, isCurrencyAmountInputObj as p, isUmaCurrencyAmount as q, isDeprecatedCurrencyAmountObj as r, isCurrencyAmountObj as s, isCurrencyAmountPreferenceObj as t, urlsafe_b64decode as u, isSDKCurrencyAmount as v, getCurrencyAmount as w, mapCurrencyAmount as x, isCurrencyMap as y, abbrCurrencyUnit as z };