Skip to content

Commit

Permalink
update core dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Nov 10, 2024
1 parent abfbe29 commit dbdbcca
Show file tree
Hide file tree
Showing 9 changed files with 2,062 additions and 1,782 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### [0.15.0](https://github.com/xdevguild/buildo.dev/releases/tag/v0.15.0) (2024-11-10)
- update useElven
- update Next
- updae other dependenecies

### [0.14.4](https://github.com/xdevguild/buildo.dev/releases/tag/v0.14.4) (2024-10-13)
- fix Herotags (DNS) - works only on the mainnet

Expand Down
2 changes: 1 addition & 1 deletion components/theme-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
Expand Down
34 changes: 16 additions & 18 deletions components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@ import * as React from 'react';

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

export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
'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',
className
)}
ref={ref}
{...props}
/>
);
}
);
const Input = React.forwardRef<
HTMLInputElement,
React.InputHTMLAttributes<HTMLInputElement>
>(({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
'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',
className
)}
ref={ref}
{...props}
/>
);
});
Input.displayName = 'Input';

export { Input };
32 changes: 15 additions & 17 deletions components/ui/textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@ import * as React from 'react';

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

export interface TextareaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}

const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
'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',
className
)}
ref={ref}
{...props}
/>
);
}
);
const Textarea = React.forwardRef<
HTMLTextAreaElement,
React.TextareaHTMLAttributes<HTMLTextAreaElement>
>(({ className, ...props }, ref) => {
return (
<textarea
className={cn(
'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',
className
)}
ref={ref}
{...props}
/>
);
});
Textarea.displayName = 'Textarea';

export { Textarea };
21 changes: 8 additions & 13 deletions hooks/use-creator-tokens-amount.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
import { useAccount, useApiCall } from '@useelven/core';
import { useEffect } from 'react';

const useAccountTokensTypes = [
'fungible',
'non-fungible',
'semi-fungible',
'meta',
] as const;

type AccountTokens = {
tokenType: (typeof useAccountTokensTypes)[number];
onlyOwner?: boolean;
txFinalized?: boolean;
};

const typesMap = {
fungible: 'FungibleESDT',
'non-fungible': 'NonFungibleESDT',
'semi-fungible': 'SemiFungibleESDT',
meta: 'MetaESDT',
};

type TokenType = keyof typeof typesMap;

type AccountTokens = {
tokenType: TokenType;
onlyOwner?: boolean;
txFinalized?: boolean;
};

/**
* Get tokens data where the logged-in address is an owner, and the address has more than 0 amount.
*/
Expand Down
19 changes: 7 additions & 12 deletions hooks/use-creator-tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,20 @@ import { isValidAddress } from '@/lib/is-valid-address';
import { useAccount, useApiCall } from '@useelven/core';
import { useEffect } from 'react';

const useAccountTokensTypes = [
'fungible',
'non-fungible',
'semi-fungible',
'meta',
] as const;

type AccountTokens = {
tokenType: (typeof useAccountTokensTypes)[number];
txFinalized?: boolean;
};

const typesMap = {
fungible: 'FungibleESDT',
'non-fungible': 'NonFungibleESDT',
'semi-fungible': 'SemiFungibleESDT',
meta: 'MetaESDT',
};

type TokenType = keyof typeof typesMap;

type AccountTokens = {
tokenType: TokenType;
txFinalized?: boolean;
};

/**
* Get tokens data where the logged-in address is an owner, even when the address has 0 amount.
*/
Expand Down
21 changes: 8 additions & 13 deletions hooks/use-token-roles-by-account.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
import { isValidAddress } from '@/lib/is-valid-address';
import { useApiCall } from '@useelven/core';

const useAccountTokensTypes = [
'fungible',
'non-fungible',
'semi-fungible',
'meta',
] as const;

type AccountTokens = {
tokenType: (typeof useAccountTokensTypes)[number];
tokenId: string;
address: string;
};

const typesMap = {
fungible: 'FungibleESDT',
'non-fungible': 'NonFungibleESDT',
'semi-fungible': 'SemiFungibleESDT',
meta: 'MetaESDT',
} as const;

type TokenType = keyof typeof typesMap;

type AccountTokens = {
tokenType: TokenType;
tokenId: string;
address: string;
};

/**
Expand Down
Loading

0 comments on commit dbdbcca

Please sign in to comment.