@unifold/ui-react 0.1.23 → 0.1.24

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
@@ -288,13 +288,13 @@ interface AllowedCountryResult {
288
288
  * Combines the IP geolocation API with the project's blocked countries configuration
289
289
  * to determine if the user should be allowed to access geo-restricted features.
290
290
  *
291
- * @param publishableKey - Optional publishable key for API calls
291
+ * @param publishableKey - Publishable key for API calls (required)
292
292
  * @returns AllowedCountryResult with isAllowed status and location info
293
293
  *
294
294
  * @example
295
295
  * ```tsx
296
- * function MyComponent() {
297
- * const { isAllowed, alpha2, country, isLoading, error } = useAllowedCountry();
296
+ * function MyComponent({ publishableKey }: { publishableKey: string }) {
297
+ * const { isAllowed, alpha2, country, isLoading, error } = useAllowedCountry(publishableKey);
298
298
  *
299
299
  * if (isLoading) return <LoadingSpinner />;
300
300
  * if (error) return <ErrorMessage error={error} />;
@@ -304,7 +304,7 @@ interface AllowedCountryResult {
304
304
  * }
305
305
  * ```
306
306
  */
307
- declare function useAllowedCountry(publishableKey?: string): AllowedCountryResult;
307
+ declare function useAllowedCountry(publishableKey: string): AllowedCountryResult;
308
308
 
309
309
  /**
310
310
  * Unifold color palette for React (Web)
package/dist/index.d.ts CHANGED
@@ -288,13 +288,13 @@ interface AllowedCountryResult {
288
288
  * Combines the IP geolocation API with the project's blocked countries configuration
289
289
  * to determine if the user should be allowed to access geo-restricted features.
290
290
  *
291
- * @param publishableKey - Optional publishable key for API calls
291
+ * @param publishableKey - Publishable key for API calls (required)
292
292
  * @returns AllowedCountryResult with isAllowed status and location info
293
293
  *
294
294
  * @example
295
295
  * ```tsx
296
- * function MyComponent() {
297
- * const { isAllowed, alpha2, country, isLoading, error } = useAllowedCountry();
296
+ * function MyComponent({ publishableKey }: { publishableKey: string }) {
297
+ * const { isAllowed, alpha2, country, isLoading, error } = useAllowedCountry(publishableKey);
298
298
  *
299
299
  * if (isLoading) return <LoadingSpinner />;
300
300
  * if (error) return <ErrorMessage error={error} />;
@@ -304,7 +304,7 @@ interface AllowedCountryResult {
304
304
  * }
305
305
  * ```
306
306
  */
307
- declare function useAllowedCountry(publishableKey?: string): AllowedCountryResult;
307
+ declare function useAllowedCountry(publishableKey: string): AllowedCountryResult;
308
308
 
309
309
  /**
310
310
  * Unifold color palette for React (Web)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/ui-react",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "Unifold UI React - Deposit and onramp components for React applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -32,7 +32,7 @@
32
32
  "lucide-react": "^0.454.0",
33
33
  "qr-code-styling": "^1.6.0-rc.1",
34
34
  "tailwind-merge": "^2.0.0",
35
- "@unifold/core": "0.1.23"
35
+ "@unifold/core": "0.1.24"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/react": "^19.0.0",