@raystack/frontier 0.77.0 → 0.78.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/package.json +1 -1
- package/react/dist/index.d.ts +12 -6
- package/react/dist/index.js +329 -308
- package/react/dist/index.mjs +815 -791
package/package.json
CHANGED
package/react/dist/index.d.ts
CHANGED
|
@@ -5599,25 +5599,31 @@ interface CustomizationProviderProps {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
declare const CustomizationProvider: React.FC<CustomizationProviderProps>;
|
|
5601
5601
|
|
|
5602
|
-
|
|
5602
|
+
interface UseTokensReturn {
|
|
5603
5603
|
tokenBalance: number;
|
|
5604
5604
|
isTokensLoading: boolean;
|
|
5605
|
-
fetchTokenBalance: () =>
|
|
5606
|
-
}
|
|
5605
|
+
fetchTokenBalance: () => Promise<any>;
|
|
5606
|
+
}
|
|
5607
|
+
declare const useTokens: () => UseTokensReturn;
|
|
5607
5608
|
|
|
5608
5609
|
declare const useBillingPermission: () => {
|
|
5609
5610
|
isFetching: boolean;
|
|
5610
5611
|
isAllowed: boolean;
|
|
5611
5612
|
};
|
|
5612
5613
|
|
|
5613
|
-
type
|
|
5614
|
+
type Preference = {
|
|
5615
|
+
name?: string;
|
|
5616
|
+
value?: string;
|
|
5617
|
+
[key: string]: any;
|
|
5618
|
+
};
|
|
5619
|
+
type Preferences = Record<string, Preference>;
|
|
5614
5620
|
interface UsePreferences {
|
|
5615
5621
|
preferences: Preferences;
|
|
5616
5622
|
isLoading: boolean;
|
|
5617
5623
|
isFetching: boolean;
|
|
5618
5624
|
status: 'idle' | 'fetching' | 'loading';
|
|
5619
|
-
fetchPreferences: () =>
|
|
5620
|
-
updatePreferences: (preferences:
|
|
5625
|
+
fetchPreferences: () => void;
|
|
5626
|
+
updatePreferences: (preferences: Preference[]) => Promise<void>;
|
|
5621
5627
|
}
|
|
5622
5628
|
declare function usePreferences({ autoFetch }?: {
|
|
5623
5629
|
autoFetch?: boolean;
|