@rango-dev/widget-embedded 0.14.1-next.14 → 0.14.1-next.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Widget.d.ts","sourceRoot":"","sources":["../src/Widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAmD,MAAM,OAAO,CAAC;AAgCxE,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,wBAAgB,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBA4CzD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBAsB3D"}
1
+ {"version":3,"file":"Widget.d.ts","sourceRoot":"","sources":["../src/Widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAmD,MAAM,OAAO,CAAC;AAiCxE,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,wBAAgB,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBAoDzD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBAsB3D"}
@@ -1,5 +1,5 @@
1
1
  import type { ConfirmSwapError } from '../types';
2
- export declare const errorMessages: {
2
+ export declare const errorMessages: () => {
3
3
  genericServerError: string;
4
4
  liquiditySourcesError: {
5
5
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAMjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCzB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,UAWjE"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAMjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCzB,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,gBAAgB,UAWjE"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { FlagPropTypes, Language } from '@rango-dev/ui';
3
+ export type LanguageItem = {
4
+ title: string;
5
+ label: string;
6
+ local: Language;
7
+ SVGFlag: React.ComponentType<FlagPropTypes>;
8
+ };
9
+ export declare const LANGUAGES: LanguageItem[];
10
+ export declare const DEFAULT_LANGUAGE = "en";
11
+ //# sourceMappingURL=languages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/constants/languages.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI7D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,YAAY,EAKnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,OAAO,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const swapButtonTitles: {
1
+ export declare const swapButtonTitles: () => {
2
2
  connectWallet: string;
3
3
  swap: string;
4
4
  swapAnyway: string;
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/constants/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/constants/messages.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;CAO5B,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { LanguageItem } from '../constants/languages';
2
+ import { type Language } from '@rango-dev/ui';
3
+ interface UseLanguage {
4
+ languages: LanguageItem[];
5
+ defaultLanguage: Language;
6
+ activeLanguage: Language;
7
+ changeLanguage: (language: Language) => void;
8
+ }
9
+ export declare function useLanguage(): UseLanguage;
10
+ export {};
11
+ //# sourceMappingURL=useLanguage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLanguage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK9C,UAAU,WAAW;IACnB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,QAAQ,CAAC;IAC1B,cAAc,EAAE,QAAQ,CAAC;IACzB,cAAc,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC9C;AAED,wBAAgB,WAAW,IAAI,WAAW,CAYzC"}