@aragon/gov-ui-kit 1.0.65 → 1.0.66
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/CHANGELOG.md +13 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/core/components/alerts/alertCard/alertCard.d.ts +0 -8
- package/dist/types/src/core/components/alerts/alertInline/alertInline.d.ts +0 -1
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +1 -1
- package/dist/types/src/modules/hooks/useBlockExplorer/index.d.ts +2 -1
- package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.api.d.ts +57 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.d.ts +2 -45
- package/package.json +21 -21
- package/src/theme/tokens/primitives/typography.css +3 -3
|
@@ -16,12 +16,4 @@ export interface IAlertCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
16
|
*/
|
|
17
17
|
variant?: AlertVariant;
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
20
|
-
* AlertCard Component
|
|
21
|
-
*
|
|
22
|
-
* Displays an alert card with an icon, a main message, and an optional description.
|
|
23
|
-
*
|
|
24
|
-
* @param {IAlertCardProps} props - Component properties.
|
|
25
|
-
* @returns {React.ReactElement} Rendered AlertCard component.
|
|
26
|
-
*/
|
|
27
19
|
export declare const AlertCard: React.FC<IAlertCardProps>;
|
|
@@ -27,7 +27,7 @@ export declare const modulesCopy: {
|
|
|
27
27
|
proposalActionsItem: {
|
|
28
28
|
dropdownLabel: string;
|
|
29
29
|
nativeSendAlert: string;
|
|
30
|
-
nativeSendDescription: (amount: string) => string;
|
|
30
|
+
nativeSendDescription: (amount: string, symbol: string) => string;
|
|
31
31
|
notVerified: {
|
|
32
32
|
function: string;
|
|
33
33
|
contract: string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { useBlockExplorer } from './useBlockExplorer';
|
|
2
|
+
export { ChainEntityType, type IBlockExplorerDefinitions, type IBuildEntityUrlParams, type IUseBlockExplorerParams, type IUseBlockExplorerReturn, } from './useBlockExplorer.api';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Config } from 'wagmi';
|
|
2
|
+
export declare enum ChainEntityType {
|
|
3
|
+
ADDRESS = "address",
|
|
4
|
+
TRANSACTION = "tx",
|
|
5
|
+
TOKEN = "token"
|
|
6
|
+
}
|
|
7
|
+
export interface IUseBlockExplorerParams {
|
|
8
|
+
/**
|
|
9
|
+
* Chains definitions to use for returning the block explorer definitions and building the URLs. Defaults to the
|
|
10
|
+
* chains defined on the Wagmi context provider.
|
|
11
|
+
*/
|
|
12
|
+
chains?: Config['chains'];
|
|
13
|
+
/**
|
|
14
|
+
* Uses the block explorer definition of the specified Chain ID when set. Defaults to the ID of the first chain on
|
|
15
|
+
* the chains list.
|
|
16
|
+
*/
|
|
17
|
+
chainId?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IBlockExplorerDefinitions {
|
|
20
|
+
/**
|
|
21
|
+
* Name of the block explorer.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* URL of the block explorer.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IUseBlockExplorerReturn {
|
|
30
|
+
/**
|
|
31
|
+
* Definitions for the requested block explorer.
|
|
32
|
+
*/
|
|
33
|
+
blockExplorer?: IBlockExplorerDefinitions;
|
|
34
|
+
/**
|
|
35
|
+
* Function to retrieve the block explorer from the given chain id. Defaults to the first block explorer of the
|
|
36
|
+
* chain defined on the hook params or on the Wagmi context provider.
|
|
37
|
+
*/
|
|
38
|
+
getBlockExplorer: (chainId?: number) => IBlockExplorerDefinitions | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Function to build the url for the given entity.
|
|
41
|
+
*/
|
|
42
|
+
buildEntityUrl: (params: IBuildEntityUrlParams) => string | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface IBuildEntityUrlParams {
|
|
45
|
+
/**
|
|
46
|
+
* The type of the entity (e.g. address, transaction, token)
|
|
47
|
+
*/
|
|
48
|
+
type: ChainEntityType;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the chain related to the entity. When set, overrides the chainId set as hook parameter.
|
|
51
|
+
*/
|
|
52
|
+
chainId?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the entity (e.g. transaction hash for a transaction)
|
|
55
|
+
*/
|
|
56
|
+
id?: string;
|
|
57
|
+
}
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
3
|
-
ADDRESS = "address",
|
|
4
|
-
TRANSACTION = "tx",
|
|
5
|
-
TOKEN = "token"
|
|
6
|
-
}
|
|
7
|
-
export interface IUseBlockExplorerParams {
|
|
8
|
-
/**
|
|
9
|
-
* Chains definitions to use for returning the block explorer definitions and building the URLs. Defaults to the
|
|
10
|
-
* chains defined on the Wagmi context provider.
|
|
11
|
-
*/
|
|
12
|
-
chains?: Config['chains'];
|
|
13
|
-
/**
|
|
14
|
-
* Uses the block explorer definition of the specified Chain ID when set. Defaults to the ID of the first chain on
|
|
15
|
-
* the chains list.
|
|
16
|
-
*/
|
|
17
|
-
chainId?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface IBuildEntityUrlParams {
|
|
20
|
-
/**
|
|
21
|
-
* The type of the entity (e.g. address, transaction, token)
|
|
22
|
-
*/
|
|
23
|
-
type: ChainEntityType;
|
|
24
|
-
/**
|
|
25
|
-
* ID of the chain related to the entity. When set, overrides the chainId set as hook parameter.
|
|
26
|
-
*/
|
|
27
|
-
chainId?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The ID of the entity (e.g. transaction hash for a transaction)
|
|
30
|
-
*/
|
|
31
|
-
id?: string;
|
|
32
|
-
}
|
|
33
|
-
export declare const useBlockExplorer: (params?: IUseBlockExplorerParams) => {
|
|
34
|
-
blockExplorer: {
|
|
35
|
-
name: string;
|
|
36
|
-
url: string;
|
|
37
|
-
apiUrl?: string | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
getBlockExplorer: (chainId?: number) => {
|
|
40
|
-
name: string;
|
|
41
|
-
url: string;
|
|
42
|
-
apiUrl?: string | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
buildEntityUrl: ({ type, chainId, id }: IBuildEntityUrlParams) => string | undefined;
|
|
45
|
-
};
|
|
1
|
+
import type { IUseBlockExplorerParams, IUseBlockExplorerReturn } from './useBlockExplorer.api';
|
|
2
|
+
export declare const useBlockExplorer: (params?: IUseBlockExplorerParams) => IUseBlockExplorerReturn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.66",
|
|
4
4
|
"description": "Implementation of the Aragon's Governance UI Kit",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@tiptap/starter-kit": "^2.11.0",
|
|
66
66
|
"blockies-ts": "^1.0.0",
|
|
67
67
|
"classnames": "^2.5.0",
|
|
68
|
-
"framer-motion": "^12.
|
|
68
|
+
"framer-motion": "^12.4.0",
|
|
69
69
|
"luxon": "^3.5.0",
|
|
70
70
|
"react-dropzone": "^14.3.0",
|
|
71
71
|
"react-imask": "^7.6.0",
|
|
@@ -74,17 +74,17 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@tailwindcss/typography": "^0.5.0",
|
|
77
|
-
"@tanstack/react-query": "^5.
|
|
77
|
+
"@tanstack/react-query": "^5.66.0",
|
|
78
78
|
"react": "^18.2.0 || ^19.0.0",
|
|
79
79
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
80
80
|
"react-hook-form": "^7.54.0",
|
|
81
81
|
"tailwindcss": "^3.4.0",
|
|
82
|
-
"viem": "^2.
|
|
82
|
+
"viem": "^2.23.0",
|
|
83
83
|
"wagmi": "^2.14.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@babel/core": "^7.26.
|
|
87
|
-
"@babel/preset-env": "^7.26.
|
|
86
|
+
"@babel/core": "^7.26.8",
|
|
87
|
+
"@babel/preset-env": "^7.26.8",
|
|
88
88
|
"@babel/preset-react": "^7.26.3",
|
|
89
89
|
"@babel/preset-typescript": "^7.26.0",
|
|
90
90
|
"@hookform/devtools": "^4.3.3",
|
|
@@ -93,19 +93,19 @@
|
|
|
93
93
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
94
94
|
"@rollup/plugin-terser": "^0.4.4",
|
|
95
95
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
96
|
-
"@storybook/addon-designs": "^8.0
|
|
97
|
-
"@storybook/addon-essentials": "^8.5.
|
|
98
|
-
"@storybook/addon-links": "^8.5.
|
|
96
|
+
"@storybook/addon-designs": "^8.1.0",
|
|
97
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
98
|
+
"@storybook/addon-links": "^8.5.3",
|
|
99
99
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
100
100
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
101
|
-
"@storybook/blocks": "^8.5.
|
|
102
|
-
"@storybook/react": "^8.5.
|
|
103
|
-
"@storybook/react-webpack5": "^8.5.
|
|
104
|
-
"@storybook/test": "^8.5.
|
|
101
|
+
"@storybook/blocks": "^8.5.3",
|
|
102
|
+
"@storybook/react": "^8.5.3",
|
|
103
|
+
"@storybook/react-webpack5": "^8.5.3",
|
|
104
|
+
"@storybook/test": "^8.5.3",
|
|
105
105
|
"@svgr/rollup": "^8.1.0",
|
|
106
106
|
"@svgr/webpack": "^8.1.0",
|
|
107
107
|
"@tailwindcss/typography": "^0.5.16",
|
|
108
|
-
"@tanstack/react-query": "^5.
|
|
108
|
+
"@tanstack/react-query": "^5.66.0",
|
|
109
109
|
"@testing-library/dom": "^10.4.0",
|
|
110
110
|
"@testing-library/jest-dom": "^6.6.3",
|
|
111
111
|
"@testing-library/react": "^16.2.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@types/sanitize-html": "^2.13.0",
|
|
118
118
|
"autoprefixer": "^10.4.20",
|
|
119
119
|
"cross-env": "^7.0.3",
|
|
120
|
-
"eslint": "^9.
|
|
120
|
+
"eslint": "^9.20.0",
|
|
121
121
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
122
122
|
"eslint-plugin-import": "^2.31.0",
|
|
123
123
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
@@ -132,23 +132,23 @@
|
|
|
132
132
|
"lint-staged": "^15.4.3",
|
|
133
133
|
"postcss": "^8.5.1",
|
|
134
134
|
"postcss-loader": "^8.1.1",
|
|
135
|
-
"prettier": "^3.
|
|
135
|
+
"prettier": "^3.5.0",
|
|
136
136
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
137
137
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
138
138
|
"react": "^19.0.0",
|
|
139
139
|
"react-dom": "^19.0.0",
|
|
140
140
|
"react-hook-form": "^7.54.2",
|
|
141
|
-
"rollup": "^4.
|
|
141
|
+
"rollup": "^4.34.6",
|
|
142
142
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
143
143
|
"rollup-plugin-postcss": "^4.0.2",
|
|
144
144
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
145
|
-
"storybook": "^8.5.
|
|
145
|
+
"storybook": "^8.5.3",
|
|
146
146
|
"tailwindcss": "^3.4.17",
|
|
147
147
|
"ts-jest": "^29.2.5",
|
|
148
148
|
"typescript": "^5.7.3",
|
|
149
|
-
"typescript-eslint": "^8.
|
|
150
|
-
"viem": "^2.
|
|
151
|
-
"wagmi": "^2.14.
|
|
149
|
+
"typescript-eslint": "^8.24.0",
|
|
150
|
+
"viem": "^2.23.0",
|
|
151
|
+
"wagmi": "^2.14.11"
|
|
152
152
|
},
|
|
153
153
|
"bugs": {
|
|
154
154
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
--guk-line-height-relaxed: 1.65;
|
|
21
21
|
|
|
22
22
|
/******* Font Family *******/
|
|
23
|
-
--guk-font-family:
|
|
24
|
-
"
|
|
25
|
-
"Noto Color Emoji";
|
|
23
|
+
--guk-font-family:
|
|
24
|
+
"Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
|
|
25
|
+
"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@font-face {
|