@aragon/gov-ui-kit 1.0.58 → 1.0.60
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 +28 -0
- package/README.md +41 -23
- package/build.css +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/core/components/collapsible/collapsible.api.d.ts +1 -1
- package/dist/types/src/core/utils/mergeRefs/mergeRefs.d.ts +2 -2
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +2 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/assetDataListItemStructure.d.ts +0 -5
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDefinitions.d.ts +2 -1
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.api.d.ts +10 -6
- package/package.json +33 -32
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentProps } from 'react';
|
|
2
2
|
export type CollapsedSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
export interface ICollapsibleProps extends ComponentProps<'div'> {
|
|
3
|
+
export interface ICollapsibleProps extends Omit<ComponentProps<'div'>, 'onToggle'> {
|
|
4
4
|
/**
|
|
5
5
|
* The initial height of the collapsible container while closed.
|
|
6
6
|
* @default md
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ForwardedRef, RefCallback, RefObject } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Utility to merge multiple React refs, inspired by https://github.com/gregberge/react-merge-refs
|
|
4
4
|
*/
|
|
5
|
-
export declare const mergeRefs: <T = unknown>(refs: Array<
|
|
5
|
+
export declare const mergeRefs: <T = unknown>(refs: Array<RefObject<T> | ForwardedRef<T> | undefined | null>) => RefCallback<T>;
|
|
@@ -21,10 +21,5 @@ export type IAssetDataListItemStructureProps = IDataListItemProps & {
|
|
|
21
21
|
* The fiat price of the asset.
|
|
22
22
|
*/
|
|
23
23
|
fiatPrice?: number | string;
|
|
24
|
-
/**
|
|
25
|
-
* The price change in percentage of the asset.
|
|
26
|
-
* @default 0
|
|
27
|
-
*/
|
|
28
|
-
priceChange?: number;
|
|
29
24
|
};
|
|
30
25
|
export declare const AssetDataListItemStructure: React.FC<IAssetDataListItemStructureProps>;
|
package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDefinitions.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export declare enum ProposalActionType {
|
|
|
7
7
|
UPDATE_METADATA = "UPDATE_METADATA",
|
|
8
8
|
TOKEN_MINT = "TOKEN_MINT",
|
|
9
9
|
CHANGE_SETTINGS_MULTISIG = "CHANGE_SETTINGS_MULTISIG",
|
|
10
|
-
CHANGE_SETTINGS_TOKENVOTE = "CHANGE_SETTINGS_TOKENVOTE"
|
|
10
|
+
CHANGE_SETTINGS_TOKENVOTE = "CHANGE_SETTINGS_TOKENVOTE",
|
|
11
|
+
UPDATE_PLUGIN_METADATA = "UPDATE_PLUGIN_METADATA"
|
|
11
12
|
}
|
|
12
13
|
export interface IProposalActionInputDataParameter {
|
|
13
14
|
/**
|
|
@@ -11,15 +11,19 @@ export interface IProposalActionUpdateMetadataDaoMetadataLink {
|
|
|
11
11
|
}
|
|
12
12
|
export interface IProposalActionUpdateMetadataDaoMetadata {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* URL of the logo, only set for DAO metadata.
|
|
15
15
|
*/
|
|
16
|
-
logo
|
|
16
|
+
logo?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Name of the DAO.
|
|
18
|
+
* Name of the DAO or Plugin.
|
|
19
19
|
*/
|
|
20
20
|
name: string;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Process key, only set for Plugin process metadata
|
|
23
|
+
*/
|
|
24
|
+
processKey?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Description of the DAO, plugin.
|
|
23
27
|
*/
|
|
24
28
|
description: string;
|
|
25
29
|
/**
|
|
@@ -29,9 +33,9 @@ export interface IProposalActionUpdateMetadataDaoMetadata {
|
|
|
29
33
|
}
|
|
30
34
|
export interface IProposalActionUpdateMetadata extends IProposalAction {
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
36
|
+
* Metadata action type.
|
|
33
37
|
*/
|
|
34
|
-
type: ProposalActionType.UPDATE_METADATA;
|
|
38
|
+
type: ProposalActionType.UPDATE_METADATA | ProposalActionType.UPDATE_PLUGIN_METADATA;
|
|
35
39
|
/**
|
|
36
40
|
* Proposed metadata.
|
|
37
41
|
*/
|
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.60",
|
|
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",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@tiptap/starter-kit": "^2.10.0",
|
|
67
67
|
"blockies-ts": "^1.0.0",
|
|
68
68
|
"classnames": "^2.0.0",
|
|
69
|
-
"framer-motion": "^11.
|
|
69
|
+
"framer-motion": "^11.15.0",
|
|
70
70
|
"luxon": "^3.5.0",
|
|
71
71
|
"react-dropzone": "^14.3.0",
|
|
72
72
|
"react-imask": "^7.6.1",
|
|
@@ -78,77 +78,78 @@
|
|
|
78
78
|
"@tanstack/react-query": "^5.62.0",
|
|
79
79
|
"react": "^18.2.0 || ^19.0.0",
|
|
80
80
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
81
|
-
"react-hook-form": "^7.
|
|
81
|
+
"react-hook-form": "^7.54.0",
|
|
82
82
|
"tailwindcss": "^3.4.0",
|
|
83
83
|
"viem": "^2.21.0",
|
|
84
|
-
"wagmi": "^2.
|
|
84
|
+
"wagmi": "^2.14.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@babel/core": "^7.26.0",
|
|
88
88
|
"@babel/preset-env": "^7.26.0",
|
|
89
|
-
"@babel/preset-react": "^7.
|
|
89
|
+
"@babel/preset-react": "^7.26.3",
|
|
90
90
|
"@babel/preset-typescript": "^7.26.0",
|
|
91
|
-
"@hookform/devtools": "^4.3.
|
|
92
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
91
|
+
"@hookform/devtools": "^4.3.2",
|
|
92
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
93
93
|
"@rollup/plugin-image": "^3.0.3",
|
|
94
|
-
"@rollup/plugin-node-resolve": "^
|
|
94
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
95
95
|
"@rollup/plugin-terser": "^0.4.4",
|
|
96
|
-
"@rollup/plugin-typescript": "^12.1.
|
|
96
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
97
97
|
"@storybook/addon-designs": "^8.0.4",
|
|
98
|
-
"@storybook/addon-essentials": "^8.4.
|
|
99
|
-
"@storybook/addon-links": "^8.4.
|
|
98
|
+
"@storybook/addon-essentials": "^8.4.7",
|
|
99
|
+
"@storybook/addon-links": "^8.4.7",
|
|
100
100
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
101
101
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
102
|
-
"@storybook/blocks": "^8.4.
|
|
103
|
-
"@storybook/react": "^8.4.
|
|
104
|
-
"@storybook/react-webpack5": "^8.4.
|
|
102
|
+
"@storybook/blocks": "^8.4.7",
|
|
103
|
+
"@storybook/react": "^8.4.7",
|
|
104
|
+
"@storybook/react-webpack5": "^8.4.7",
|
|
105
105
|
"@storybook/storybook-deployer": "^2.8.16",
|
|
106
106
|
"@svgr/rollup": "^8.1.0",
|
|
107
107
|
"@svgr/webpack": "^8.1.0",
|
|
108
108
|
"@tailwindcss/typography": "^0.5.15",
|
|
109
|
-
"@tanstack/react-query": "^5.62.
|
|
109
|
+
"@tanstack/react-query": "^5.62.7",
|
|
110
110
|
"@testing-library/dom": "^10.4.0",
|
|
111
111
|
"@testing-library/jest-dom": "^6.6.3",
|
|
112
|
-
"@testing-library/react": "^16.0
|
|
112
|
+
"@testing-library/react": "^16.1.0",
|
|
113
113
|
"@testing-library/user-event": "^14.5.2",
|
|
114
114
|
"@types/jest": "^29.5.14",
|
|
115
115
|
"@types/luxon": "^3.4.2",
|
|
116
|
-
"@types/react
|
|
116
|
+
"@types/react": "^19.0.1",
|
|
117
|
+
"@types/react-dom": "^19.0.1",
|
|
117
118
|
"@types/sanitize-html": "^2.13.0",
|
|
118
119
|
"autoprefixer": "^10.4.20",
|
|
119
120
|
"cross-env": "^7.0.3",
|
|
120
|
-
"eslint": "^9.
|
|
121
|
-
"eslint-import-resolver-typescript": "^3.
|
|
121
|
+
"eslint": "^9.17.0",
|
|
122
|
+
"eslint-import-resolver-typescript": "^3.7.0",
|
|
122
123
|
"eslint-plugin-import": "^2.31.0",
|
|
123
124
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
124
125
|
"eslint-plugin-react": "^7.37.2",
|
|
125
|
-
"eslint-plugin-react-hooks": "^5.
|
|
126
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
126
127
|
"eslint-plugin-storybook": "^0.11.1",
|
|
127
128
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
128
|
-
"eslint-plugin-testing-library": "^7.
|
|
129
|
+
"eslint-plugin-testing-library": "^7.1.1",
|
|
129
130
|
"husky": "^9.1.7",
|
|
130
131
|
"jest": "^29.7.0",
|
|
131
132
|
"jest-environment-jsdom": "^29.7.0",
|
|
132
|
-
"lint-staged": "^15.2.
|
|
133
|
+
"lint-staged": "^15.2.11",
|
|
133
134
|
"postcss": "^8.4.48",
|
|
134
135
|
"postcss-loader": "^8.1.1",
|
|
135
|
-
"prettier": "^3.4.
|
|
136
|
+
"prettier": "^3.4.2",
|
|
136
137
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
137
138
|
"prettier-plugin-tailwindcss": "^0.6.9",
|
|
138
|
-
"react": "^
|
|
139
|
-
"react-dom": "^
|
|
140
|
-
"react-hook-form": "^7.
|
|
141
|
-
"rollup": "^4.28.
|
|
139
|
+
"react": "^19.0.0",
|
|
140
|
+
"react-dom": "^19.0.0",
|
|
141
|
+
"react-hook-form": "^7.54.1",
|
|
142
|
+
"rollup": "^4.28.1",
|
|
142
143
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
143
144
|
"rollup-plugin-postcss": "^4.0.2",
|
|
144
145
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
145
|
-
"storybook": "^8.4.
|
|
146
|
-
"tailwindcss": "^3.4.
|
|
146
|
+
"storybook": "^8.4.7",
|
|
147
|
+
"tailwindcss": "^3.4.16",
|
|
147
148
|
"ts-jest": "^29.2.5",
|
|
148
149
|
"typescript": "^5.7.2",
|
|
149
|
-
"typescript-eslint": "^8.
|
|
150
|
-
"viem": "^2.21.
|
|
151
|
-
"wagmi": "^2.
|
|
150
|
+
"typescript-eslint": "^8.18.1",
|
|
151
|
+
"viem": "^2.21.55",
|
|
152
|
+
"wagmi": "^2.14.1"
|
|
152
153
|
},
|
|
153
154
|
"bugs": {
|
|
154
155
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|