@vechain/vechain-kit 1.7.0 → 1.7.1
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.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -2587,13 +2587,15 @@ declare const decodeFunctionSignature: (input: string) => Promise<DecodedFunctio
|
|
|
2587
2587
|
*/
|
|
2588
2588
|
declare const useDecodeFunctionSignature: (input: string) => _tanstack_react_query.UseQueryResult<DecodedFunction, Error>;
|
|
2589
2589
|
|
|
2590
|
+
type AllowedCategories = 'defi' | 'games' | 'collectibles' | 'marketplaces' | 'utilities' | 'vebetter';
|
|
2591
|
+
|
|
2590
2592
|
type AppHubApp = {
|
|
2591
2593
|
id: string;
|
|
2592
2594
|
name: string;
|
|
2593
2595
|
description: string;
|
|
2594
2596
|
url: string;
|
|
2595
2597
|
logo: string;
|
|
2596
|
-
category:
|
|
2598
|
+
category: AllowedCategories;
|
|
2597
2599
|
tags: string[];
|
|
2598
2600
|
isVeWorldSupported: boolean;
|
|
2599
2601
|
repo?: string;
|
|
@@ -3388,7 +3390,7 @@ type AppOverviewContentProps = {
|
|
|
3388
3390
|
image: string;
|
|
3389
3391
|
url: string;
|
|
3390
3392
|
description: string;
|
|
3391
|
-
category?:
|
|
3393
|
+
category?: AllowedCategories;
|
|
3392
3394
|
selectedCategory?: CategoryFilter;
|
|
3393
3395
|
logoComponent?: JSX.Element;
|
|
3394
3396
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2587,13 +2587,15 @@ declare const decodeFunctionSignature: (input: string) => Promise<DecodedFunctio
|
|
|
2587
2587
|
*/
|
|
2588
2588
|
declare const useDecodeFunctionSignature: (input: string) => _tanstack_react_query.UseQueryResult<DecodedFunction, Error>;
|
|
2589
2589
|
|
|
2590
|
+
type AllowedCategories = 'defi' | 'games' | 'collectibles' | 'marketplaces' | 'utilities' | 'vebetter';
|
|
2591
|
+
|
|
2590
2592
|
type AppHubApp = {
|
|
2591
2593
|
id: string;
|
|
2592
2594
|
name: string;
|
|
2593
2595
|
description: string;
|
|
2594
2596
|
url: string;
|
|
2595
2597
|
logo: string;
|
|
2596
|
-
category:
|
|
2598
|
+
category: AllowedCategories;
|
|
2597
2599
|
tags: string[];
|
|
2598
2600
|
isVeWorldSupported: boolean;
|
|
2599
2601
|
repo?: string;
|
|
@@ -3388,7 +3390,7 @@ type AppOverviewContentProps = {
|
|
|
3388
3390
|
image: string;
|
|
3389
3391
|
url: string;
|
|
3390
3392
|
description: string;
|
|
3391
|
-
category?:
|
|
3393
|
+
category?: AllowedCategories;
|
|
3392
3394
|
selectedCategory?: CategoryFilter;
|
|
3393
3395
|
logoComponent?: JSX.Element;
|
|
3394
3396
|
};
|
package/dist/index.js
CHANGED
|
@@ -6236,7 +6236,7 @@ var AddressDisplay = ({
|
|
|
6236
6236
|
// package.json
|
|
6237
6237
|
var package_default = {
|
|
6238
6238
|
name: "@vechain/vechain-kit",
|
|
6239
|
-
version: "1.7.
|
|
6239
|
+
version: "1.7.1",
|
|
6240
6240
|
private: false,
|
|
6241
6241
|
homepage: "https://github.com/vechain/vechain-kit",
|
|
6242
6242
|
repository: "github:vechain/vechain-kit",
|
|
@@ -6252,12 +6252,13 @@ var package_default = {
|
|
|
6252
6252
|
"LICENSE"
|
|
6253
6253
|
],
|
|
6254
6254
|
scripts: {
|
|
6255
|
-
build: "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
6255
|
+
build: "tsc --noEmit && cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
6256
6256
|
watch: "cross-env NODE_OPTIONS='--max-old-space-size=8192' tsup --watch",
|
|
6257
6257
|
clean: "rm -rf dist .turbo",
|
|
6258
6258
|
lint: "eslint",
|
|
6259
6259
|
purge: "yarn clean && rm -rf node_modules",
|
|
6260
|
-
translate: "dotenv -e .env -- translo-cli"
|
|
6260
|
+
translate: "dotenv -e .env -- translo-cli",
|
|
6261
|
+
typecheck: "tsc --noEmit"
|
|
6261
6262
|
},
|
|
6262
6263
|
dependencies: {
|
|
6263
6264
|
"@adraffy/ens-normalize": "^1.11.0",
|
|
@@ -17120,7 +17121,7 @@ var NotificationsContent = ({ setCurrentContent }) => {
|
|
|
17120
17121
|
] });
|
|
17121
17122
|
};
|
|
17122
17123
|
var getCategoryColor = (category) => {
|
|
17123
|
-
switch (category
|
|
17124
|
+
switch (category) {
|
|
17124
17125
|
case "defi":
|
|
17125
17126
|
return "blue";
|
|
17126
17127
|
case "games":
|
|
@@ -17137,7 +17138,8 @@ var getCategoryColor = (category) => {
|
|
|
17137
17138
|
};
|
|
17138
17139
|
var CategoryLabel = ({ category, ...props }) => {
|
|
17139
17140
|
const { t } = useTranslation();
|
|
17140
|
-
const
|
|
17141
|
+
const categoryKey = category.toLowerCase();
|
|
17142
|
+
const color = getCategoryColor(categoryKey);
|
|
17141
17143
|
return /* @__PURE__ */ jsx(
|
|
17142
17144
|
Tag,
|
|
17143
17145
|
{
|
|
@@ -17146,7 +17148,7 @@ var CategoryLabel = ({ category, ...props }) => {
|
|
|
17146
17148
|
borderRadius: "full",
|
|
17147
17149
|
px: 2,
|
|
17148
17150
|
...props,
|
|
17149
|
-
children: t(
|
|
17151
|
+
children: t(categoryKey)
|
|
17150
17152
|
}
|
|
17151
17153
|
);
|
|
17152
17154
|
};
|