@aragon/gov-ui-kit 1.11.0 → 1.13.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 +24 -0
- package/build.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/core/components/forms/textAreaRichText/textAreaRichText.d.ts +8 -0
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +7 -4
- package/dist/types/src/modules/components/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemSkeleton/smartContractFunctionDataListItemSkeleton.d.ts +8 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/smartContractFunctionDataListItemStructure/smartContractFunctionDataListItemStructure.d.ts +39 -0
- package/package.json +38 -38
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type IInputContainerProps } from '../inputContainer';
|
|
2
|
+
export type ValueFormat = 'html' | 'markdown' | 'text';
|
|
2
3
|
export interface ITextAreaRichTextProps extends Omit<IInputContainerProps, 'maxLength' | 'inputLength' | 'value' | 'onChange' | 'id'> {
|
|
3
4
|
/**
|
|
4
5
|
* Current value of the input.
|
|
@@ -20,5 +21,12 @@ export interface ITextAreaRichTextProps extends Omit<IInputContainerProps, 'maxL
|
|
|
20
21
|
* Whether to render the editor on the first render or not.
|
|
21
22
|
*/
|
|
22
23
|
immediatelyRender?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Format of the input value, which determines how content is interpreted and returned.
|
|
26
|
+
* Can be serialized HTML, markdown, or plain text.
|
|
27
|
+
*
|
|
28
|
+
* @default 'html'
|
|
29
|
+
*/
|
|
30
|
+
valueFormat?: ValueFormat;
|
|
23
31
|
}
|
|
24
32
|
export declare const TextAreaRichText: React.FC<ITextAreaRichTextProps>;
|
|
@@ -29,10 +29,6 @@ export declare const modulesCopy: {
|
|
|
29
29
|
dropdownLabel: string;
|
|
30
30
|
nativeSendAlert: string;
|
|
31
31
|
nativeSendDescription: (amount: string, symbol: string) => string;
|
|
32
|
-
notVerified: {
|
|
33
|
-
function: string;
|
|
34
|
-
contract: string;
|
|
35
|
-
};
|
|
36
32
|
menu: {
|
|
37
33
|
BASIC: string;
|
|
38
34
|
dropdownLabel: string;
|
|
@@ -179,5 +175,12 @@ export declare const modulesCopy: {
|
|
|
179
175
|
wallet: {
|
|
180
176
|
connect: string;
|
|
181
177
|
};
|
|
178
|
+
smartContractFunctionDataListItemStructure: {
|
|
179
|
+
remove: string;
|
|
180
|
+
notVerified: {
|
|
181
|
+
function: string;
|
|
182
|
+
contract: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
182
185
|
};
|
|
183
186
|
export type ModulesCopy = typeof modulesCopy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './smartContractFunctionDataListItem';
|
package/dist/types/src/modules/components/smartContract/smartContractFunctionDataListItem/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const SmartContractFunctionDataListItem: {
|
|
2
|
+
Skeleton: import("react").FC<import("./smartContractFunctionDataListItemSkeleton").ISmartContractFunctionDataListItemSkeletonProps>;
|
|
3
|
+
Structure: import("react").FC<import("./smartContractFunctionDataListItemStructure").ISmartContractFunctionDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './smartContractFunctionDataListItemSkeleton';
|
|
6
|
+
export * from './smartContractFunctionDataListItemStructure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SmartContractFunctionDataListItemSkeleton, type ISmartContractFunctionDataListItemSkeletonProps, } from './smartContractFunctionDataListItemSkeleton';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
2
|
+
export type ISmartContractFunctionDataListItemSkeletonProps = IDataListItemProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Flag to determine whether or not the item is a child of another component so we can apply the correct styles and remove accessibility attributes.
|
|
5
|
+
*/
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const SmartContractFunctionDataListItemSkeleton: React.FC<ISmartContractFunctionDataListItemSkeletonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SmartContractFunctionDataListItemStructure, type ISmartContractFunctionDataListItemProps, } from './smartContractFunctionDataListItemStructure';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { IProposalActionInputDataParameter } from '../../..';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export type ISmartContractFunctionDataListItemProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the smart contract function.
|
|
6
|
+
*/
|
|
7
|
+
functionName?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The name of the smart contract.
|
|
10
|
+
*/
|
|
11
|
+
contractName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The address of the smart contract.
|
|
14
|
+
*/
|
|
15
|
+
contractAddress: string;
|
|
16
|
+
/**
|
|
17
|
+
* The parameters to pass to the function.
|
|
18
|
+
*/
|
|
19
|
+
functionParameters?: IProposalActionInputDataParameter[];
|
|
20
|
+
/**
|
|
21
|
+
* Callback when function is removed.
|
|
22
|
+
*/
|
|
23
|
+
onRemove?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* The chain ID of the smart contract.
|
|
26
|
+
* @default mainnet.id (1)
|
|
27
|
+
*/
|
|
28
|
+
chainId?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Flag to determine whether or not the item is a child of another component so we can apply the correct styles.
|
|
31
|
+
*/
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Flag to determine whether or not to display warning icon.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
displayWarning?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare const SmartContractFunctionDataListItemStructure: React.FC<ISmartContractFunctionDataListItemProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.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",
|
|
@@ -54,19 +54,19 @@
|
|
|
54
54
|
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
55
55
|
"@radix-ui/react-tooltip": "^1.2.0",
|
|
56
56
|
"@radix-ui/react-visually-hidden": "^1.2.0",
|
|
57
|
-
"@tiptap/core": "^2.
|
|
58
|
-
"@tiptap/extension-code-block": "^2.
|
|
59
|
-
"@tiptap/extension-image": "^2.
|
|
60
|
-
"@tiptap/extension-link": "^2.
|
|
61
|
-
"@tiptap/extension-placeholder": "^2.
|
|
62
|
-
"@tiptap/extension-text-style": "^2.
|
|
63
|
-
"@tiptap/pm": "^2.
|
|
64
|
-
"@tiptap/react": "^2.
|
|
65
|
-
"@tiptap/starter-kit": "^2.
|
|
57
|
+
"@tiptap/core": "^2.26.0",
|
|
58
|
+
"@tiptap/extension-code-block": "^2.26.0",
|
|
59
|
+
"@tiptap/extension-image": "^2.26.0",
|
|
60
|
+
"@tiptap/extension-link": "^2.26.0",
|
|
61
|
+
"@tiptap/extension-placeholder": "^2.26.0",
|
|
62
|
+
"@tiptap/extension-text-style": "^2.26.0",
|
|
63
|
+
"@tiptap/pm": "^2.26.0",
|
|
64
|
+
"@tiptap/react": "^2.26.0",
|
|
65
|
+
"@tiptap/starter-kit": "^2.26.0",
|
|
66
66
|
"blockies-ts": "^1.0.0",
|
|
67
67
|
"classnames": "^2.5.0",
|
|
68
|
-
"framer-motion": "^12.
|
|
69
|
-
"luxon": "^3.
|
|
68
|
+
"framer-motion": "^12.23.0",
|
|
69
|
+
"luxon": "^3.7.0",
|
|
70
70
|
"react-dropzone": "^14.3.0",
|
|
71
71
|
"react-imask": "^7.6.0",
|
|
72
72
|
"sanitize-html": "^2.17.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.83.0",
|
|
78
78
|
"react": "^18.2.0 || ^19.0.0",
|
|
79
79
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
80
|
-
"react-hook-form": "^7.
|
|
80
|
+
"react-hook-form": "^7.60.0",
|
|
81
81
|
"tailwindcss": "^4.1.0",
|
|
82
|
-
"viem": "^2.
|
|
83
|
-
"wagmi": "^2.
|
|
82
|
+
"viem": "^2.33.0",
|
|
83
|
+
"wagmi": "^2.16.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@babel/core": "^7.
|
|
87
|
-
"@babel/preset-env": "^7.
|
|
86
|
+
"@babel/core": "^7.28.0",
|
|
87
|
+
"@babel/preset-env": "^7.28.0",
|
|
88
88
|
"@babel/preset-react": "^7.27.1",
|
|
89
89
|
"@babel/preset-typescript": "^7.27.1",
|
|
90
90
|
"@changesets/changelog-github": "^0.5.1",
|
|
@@ -95,12 +95,12 @@
|
|
|
95
95
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
96
96
|
"@rollup/plugin-terser": "^0.4.4",
|
|
97
97
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
98
|
-
"@storybook/addon-docs": "^9.0.
|
|
99
|
-
"@storybook/react-vite": "^9.0.
|
|
98
|
+
"@storybook/addon-docs": "^9.0.17",
|
|
99
|
+
"@storybook/react-vite": "^9.0.17",
|
|
100
100
|
"@svgr/rollup": "^8.1.0",
|
|
101
101
|
"@tailwindcss/postcss": "^4.1.11",
|
|
102
102
|
"@tailwindcss/typography": "^0.5.16",
|
|
103
|
-
"@tanstack/react-query": "^5.
|
|
103
|
+
"@tanstack/react-query": "^5.83.0",
|
|
104
104
|
"@testing-library/dom": "^10.4.0",
|
|
105
105
|
"@testing-library/jest-dom": "^6.6.3",
|
|
106
106
|
"@testing-library/react": "^16.3.0",
|
|
@@ -111,42 +111,42 @@
|
|
|
111
111
|
"@types/react-dom": "^19.1.6",
|
|
112
112
|
"@types/sanitize-html": "^2.16.0",
|
|
113
113
|
"cross-env": "^7.0.3",
|
|
114
|
-
"eslint": "^9.
|
|
114
|
+
"eslint": "^9.31.0",
|
|
115
115
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
116
116
|
"eslint-plugin-import": "^2.32.0",
|
|
117
117
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
118
118
|
"eslint-plugin-react": "^7.37.5",
|
|
119
119
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
120
|
-
"eslint-plugin-storybook": "^9.0.
|
|
121
|
-
"eslint-plugin-testing-library": "^7.
|
|
120
|
+
"eslint-plugin-storybook": "^9.0.17",
|
|
121
|
+
"eslint-plugin-testing-library": "^7.6.0",
|
|
122
122
|
"husky": "^9.1.7",
|
|
123
|
-
"jest": "^30.0.
|
|
124
|
-
"jest-environment-jsdom": "^30.0.
|
|
123
|
+
"jest": "^30.0.5",
|
|
124
|
+
"jest-environment-jsdom": "^30.0.5",
|
|
125
125
|
"lint-staged": "^16.1.2",
|
|
126
126
|
"postcss": "^8.5.6",
|
|
127
127
|
"postcss-loader": "^8.1.1",
|
|
128
128
|
"prettier": "^3.6.2",
|
|
129
129
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
130
|
-
"prettier-plugin-tailwindcss": "^0.6.
|
|
130
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
131
131
|
"react": "^19.1.0",
|
|
132
132
|
"react-dom": "^19.1.0",
|
|
133
|
-
"react-hook-form": "^7.
|
|
134
|
-
"rollup": "^4.
|
|
133
|
+
"react-hook-form": "^7.60.0",
|
|
134
|
+
"rollup": "^4.45.1",
|
|
135
135
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
136
136
|
"rollup-plugin-postcss": "^4.0.2",
|
|
137
137
|
"rollup-plugin-visualizer": "^6.0.3",
|
|
138
|
-
"storybook": "^9.0.
|
|
139
|
-
"tailwindcss": "^4.1.
|
|
138
|
+
"storybook": "^9.0.17",
|
|
139
|
+
"tailwindcss": "^4.1.11",
|
|
140
140
|
"ts-jest": "^29.4.0",
|
|
141
141
|
"typescript": "^5.8.3",
|
|
142
|
-
"typescript-eslint": "^8.
|
|
143
|
-
"vercel": "^44.
|
|
144
|
-
"viem": "^2.
|
|
145
|
-
"vite": "^7.0.
|
|
146
|
-
"vite-plugin-node-polyfills": "^0.
|
|
147
|
-
"vite-plugin-static-copy": "^3.1.
|
|
142
|
+
"typescript-eslint": "^8.38.0",
|
|
143
|
+
"vercel": "^44.5.1",
|
|
144
|
+
"viem": "^2.33.0",
|
|
145
|
+
"vite": "^7.0.5",
|
|
146
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
147
|
+
"vite-plugin-static-copy": "^3.1.1",
|
|
148
148
|
"vite-plugin-svgr": "^4.3.0",
|
|
149
|
-
"wagmi": "^2.
|
|
149
|
+
"wagmi": "^2.16.0"
|
|
150
150
|
},
|
|
151
151
|
"bugs": {
|
|
152
152
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|