Skip to content

Commit dbdbcca

Browse files
committed
update core dependencies
1 parent abfbe29 commit dbdbcca

File tree

9 files changed

+2062
-1782
lines changed

9 files changed

+2062
-1782
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### [0.15.0](https://github.com/xdevguild/buildo.dev/releases/tag/v0.15.0) (2024-11-10)
2+
- update useElven
3+
- update Next
4+
- updae other dependenecies
5+
16
### [0.14.4](https://github.com/xdevguild/buildo.dev/releases/tag/v0.14.4) (2024-10-13)
27
- fix Herotags (DNS) - works only on the mainnet
38

components/theme-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as React from 'react';
44
import { ThemeProvider as NextThemesProvider } from 'next-themes';
5-
import { type ThemeProviderProps } from 'next-themes/dist/types';
5+
import { type ThemeProviderProps } from 'next-themes';
66

77
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
88
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;

components/ui/input.tsx

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,22 @@ import * as React from 'react';
22

33
import { cn } from '@/lib/utils';
44

5-
export interface InputProps
6-
extends React.InputHTMLAttributes<HTMLInputElement> {}
7-
8-
const Input = React.forwardRef<HTMLInputElement, InputProps>(
9-
({ className, type, ...props }, ref) => {
10-
return (
11-
<input
12-
type={type}
13-
className={cn(
14-
'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
15-
className
16-
)}
17-
ref={ref}
18-
{...props}
19-
/>
20-
);
21-
}
22-
);
5+
const Input = React.forwardRef<
6+
HTMLInputElement,
7+
React.InputHTMLAttributes<HTMLInputElement>
8+
>(({ className, type, ...props }, ref) => {
9+
return (
10+
<input
11+
type={type}
12+
className={cn(
13+
'flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
14+
className
15+
)}
16+
ref={ref}
17+
{...props}
18+
/>
19+
);
20+
});
2321
Input.displayName = 'Input';
2422

2523
export { Input };

components/ui/textarea.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,21 @@ import * as React from 'react';
22

33
import { cn } from '@/lib/utils';
44

5-
export interface TextareaProps
6-
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
7-
8-
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
9-
({ className, ...props }, ref) => {
10-
return (
11-
<textarea
12-
className={cn(
13-
'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
14-
className
15-
)}
16-
ref={ref}
17-
{...props}
18-
/>
19-
);
20-
}
21-
);
5+
const Textarea = React.forwardRef<
6+
HTMLTextAreaElement,
7+
React.TextareaHTMLAttributes<HTMLTextAreaElement>
8+
>(({ className, ...props }, ref) => {
9+
return (
10+
<textarea
11+
className={cn(
12+
'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
13+
className
14+
)}
15+
ref={ref}
16+
{...props}
17+
/>
18+
);
19+
});
2220
Textarea.displayName = 'Textarea';
2321

2422
export { Textarea };

hooks/use-creator-tokens-amount.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
import { useAccount, useApiCall } from '@useelven/core';
22
import { useEffect } from 'react';
33

4-
const useAccountTokensTypes = [
5-
'fungible',
6-
'non-fungible',
7-
'semi-fungible',
8-
'meta',
9-
] as const;
10-
11-
type AccountTokens = {
12-
tokenType: (typeof useAccountTokensTypes)[number];
13-
onlyOwner?: boolean;
14-
txFinalized?: boolean;
15-
};
16-
174
const typesMap = {
185
fungible: 'FungibleESDT',
196
'non-fungible': 'NonFungibleESDT',
207
'semi-fungible': 'SemiFungibleESDT',
218
meta: 'MetaESDT',
229
};
2310

11+
type TokenType = keyof typeof typesMap;
12+
13+
type AccountTokens = {
14+
tokenType: TokenType;
15+
onlyOwner?: boolean;
16+
txFinalized?: boolean;
17+
};
18+
2419
/**
2520
* Get tokens data where the logged-in address is an owner, and the address has more than 0 amount.
2621
*/

hooks/use-creator-tokens.tsx

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,20 @@ import { isValidAddress } from '@/lib/is-valid-address';
22
import { useAccount, useApiCall } from '@useelven/core';
33
import { useEffect } from 'react';
44

5-
const useAccountTokensTypes = [
6-
'fungible',
7-
'non-fungible',
8-
'semi-fungible',
9-
'meta',
10-
] as const;
11-
12-
type AccountTokens = {
13-
tokenType: (typeof useAccountTokensTypes)[number];
14-
txFinalized?: boolean;
15-
};
16-
175
const typesMap = {
186
fungible: 'FungibleESDT',
197
'non-fungible': 'NonFungibleESDT',
208
'semi-fungible': 'SemiFungibleESDT',
219
meta: 'MetaESDT',
2210
};
2311

12+
type TokenType = keyof typeof typesMap;
13+
14+
type AccountTokens = {
15+
tokenType: TokenType;
16+
txFinalized?: boolean;
17+
};
18+
2419
/**
2520
* Get tokens data where the logged-in address is an owner, even when the address has 0 amount.
2621
*/

hooks/use-token-roles-by-account.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
import { isValidAddress } from '@/lib/is-valid-address';
22
import { useApiCall } from '@useelven/core';
33

4-
const useAccountTokensTypes = [
5-
'fungible',
6-
'non-fungible',
7-
'semi-fungible',
8-
'meta',
9-
] as const;
10-
11-
type AccountTokens = {
12-
tokenType: (typeof useAccountTokensTypes)[number];
13-
tokenId: string;
14-
address: string;
15-
};
16-
174
const typesMap = {
185
fungible: 'FungibleESDT',
196
'non-fungible': 'NonFungibleESDT',
207
'semi-fungible': 'SemiFungibleESDT',
218
meta: 'MetaESDT',
9+
} as const;
10+
11+
type TokenType = keyof typeof typesMap;
12+
13+
type AccountTokens = {
14+
tokenType: TokenType;
15+
tokenId: string;
16+
address: string;
2217
};
2318

2419
/**

0 commit comments

Comments
 (0)