@aragon/gov-ui-kit 1.3.0 → 1.4.0
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 +14 -0
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts +5 -0
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/index.d.ts +1 -1
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.api.d.ts +3 -12
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.api.d.ts +1 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/proposalVotingDetails.d.ts +2 -11
- package/dist/types/src/modules/types/definitionSetting.d.ts +7 -0
- package/dist/types/src/modules/types/index.d.ts +1 -0
- package/dist/types/src/modules/types/web3ComponentConfig.d.ts +2 -2
- package/package.json +11 -11
package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { type ILinkProps } from '../../link';
|
|
2
3
|
export interface IDefinitionListItemProps extends ComponentPropsWithRef<'div'> {
|
|
3
4
|
/**
|
|
4
5
|
* The term to be displayed in the definition list item.
|
|
5
6
|
*/
|
|
6
7
|
term: string;
|
|
8
|
+
/**
|
|
9
|
+
* The materials for a Link component if necessary.
|
|
10
|
+
*/
|
|
11
|
+
link?: ILinkProps;
|
|
7
12
|
}
|
|
8
13
|
export declare const DefinitionListItem: React.FC<IDefinitionListItemProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ProposalActionChangeSettings } from './proposalActionChangeSettings';
|
|
2
|
-
export type { IProposalActionChangeSettings, IProposalActionChangeSettingsProps,
|
|
2
|
+
export type { IProposalActionChangeSettings, IProposalActionChangeSettingsProps, } from './proposalActionChangeSettings.api';
|
|
3
3
|
export * from './proposalActionChangeSettings.testUtils';
|
|
@@ -1,23 +1,14 @@
|
|
|
1
|
+
import type { IDefinitionSetting } from '../../../../../types';
|
|
1
2
|
import type { IProposalAction, IProposalActionComponentProps } from '../../proposalActionsDefinitions';
|
|
2
|
-
export interface IProposalActionChangeSettingsSetting {
|
|
3
|
-
/**
|
|
4
|
-
* The term of the setting.
|
|
5
|
-
*/
|
|
6
|
-
term: string;
|
|
7
|
-
/**
|
|
8
|
-
* The definition of the setting.
|
|
9
|
-
*/
|
|
10
|
-
definition: string | number;
|
|
11
|
-
}
|
|
12
3
|
export interface IProposalActionChangeSettings extends IProposalAction {
|
|
13
4
|
/**
|
|
14
5
|
* The settings that are proposed to be changed
|
|
15
6
|
*/
|
|
16
|
-
proposedSettings:
|
|
7
|
+
proposedSettings: IDefinitionSetting[];
|
|
17
8
|
/**
|
|
18
9
|
* The settings that are currently in place.
|
|
19
10
|
*/
|
|
20
|
-
existingSettings:
|
|
11
|
+
existingSettings: IDefinitionSetting[];
|
|
21
12
|
}
|
|
22
13
|
export interface IProposalActionChangeSettingsProps extends IProposalActionComponentProps<IProposalActionChangeSettings> {
|
|
23
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IDataListItemProps } from '../../../../../core';
|
|
2
2
|
import { type ICompositeAddress, type IWeb3ComponentProps } from '../../../../types';
|
|
3
3
|
import { type ProposalStatus } from '../../proposalUtils';
|
|
4
|
-
export type IProposalDataListItemStructureProps = IDataListItemProps & IWeb3ComponentProps & {
|
|
4
|
+
export type IProposalDataListItemStructureProps = IDataListItemProps & Omit<IWeb3ComponentProps, 'chainId'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Proposal id
|
|
7
7
|
*/
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { type ITabsContentProps } from '../../../../../core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Term of the setting.
|
|
5
|
-
*/
|
|
6
|
-
term: string;
|
|
7
|
-
/**
|
|
8
|
-
* Value of the setting.
|
|
9
|
-
*/
|
|
10
|
-
definition: string;
|
|
11
|
-
}
|
|
2
|
+
import type { IDefinitionSetting } from '../../../../types';
|
|
12
3
|
export interface IProposalVotingDetailsProps extends Omit<ITabsContentProps, 'value'> {
|
|
13
4
|
/**
|
|
14
5
|
* Governance settings displayed on the details tab.
|
|
15
6
|
*/
|
|
16
|
-
settings?:
|
|
7
|
+
settings?: IDefinitionSetting[];
|
|
17
8
|
}
|
|
18
9
|
export declare const ProposalVotingDetails: React.FC<IProposalVotingDetailsProps>;
|
|
@@ -4,8 +4,8 @@ import type { Config } from 'wagmi';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface IWeb3ComponentProps {
|
|
6
6
|
/**
|
|
7
|
-
* ID of the chain to use when making RPC requests.
|
|
8
|
-
*
|
|
7
|
+
* ID of the chain to use when making RPC requests.
|
|
8
|
+
* @default mainnet.id (1)
|
|
9
9
|
*/
|
|
10
10
|
chainId?: number;
|
|
11
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
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.9.0",
|
|
69
69
|
"luxon": "^3.6.0",
|
|
70
70
|
"react-dropzone": "^14.3.0",
|
|
71
71
|
"react-imask": "^7.6.0",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
80
80
|
"react-hook-form": "^7.55.0",
|
|
81
81
|
"tailwindcss": "^3.4.0",
|
|
82
|
-
"viem": "^2.
|
|
83
|
-
"wagmi": "^2.
|
|
82
|
+
"viem": "^2.28.0",
|
|
83
|
+
"wagmi": "^2.15.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@babel/core": "^7.26.10",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@svgr/rollup": "^8.1.0",
|
|
108
108
|
"@svgr/webpack": "^8.1.0",
|
|
109
109
|
"@tailwindcss/typography": "^0.5.16",
|
|
110
|
-
"@tanstack/react-query": "^5.74.
|
|
110
|
+
"@tanstack/react-query": "^5.74.7",
|
|
111
111
|
"@testing-library/dom": "^10.4.0",
|
|
112
112
|
"@testing-library/jest-dom": "^6.6.3",
|
|
113
113
|
"@testing-library/react": "^16.3.0",
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
140
140
|
"react": "^19.1.0",
|
|
141
141
|
"react-dom": "^19.1.0",
|
|
142
|
-
"react-hook-form": "^7.56.
|
|
143
|
-
"rollup": "^4.40.
|
|
142
|
+
"react-hook-form": "^7.56.1",
|
|
143
|
+
"rollup": "^4.40.1",
|
|
144
144
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
145
145
|
"rollup-plugin-postcss": "^4.0.2",
|
|
146
146
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
"tailwindcss": "^3.4.17",
|
|
149
149
|
"ts-jest": "^29.3.2",
|
|
150
150
|
"typescript": "^5.8.3",
|
|
151
|
-
"typescript-eslint": "^8.31.
|
|
152
|
-
"vercel": "^41.6.
|
|
153
|
-
"viem": "^2.
|
|
154
|
-
"wagmi": "^2.
|
|
151
|
+
"typescript-eslint": "^8.31.1",
|
|
152
|
+
"vercel": "^41.6.2",
|
|
153
|
+
"viem": "^2.28.0",
|
|
154
|
+
"wagmi": "^2.15.0"
|
|
155
155
|
},
|
|
156
156
|
"bugs": {
|
|
157
157
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|