Skip to content

Commit b8a29c4

Browse files
authored
Merge branch 'main' into missing-color
2 parents 8abee7f + 37d6e40 commit b8a29c4

19 files changed

Lines changed: 457 additions & 93 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aragon/gov-ui-kit": patch
3+
---
4+
5+
Allow empty strings on `ProposalActionsDecoder` string parameters (empty strings are valid Solidity values, including elements inside `string[]` inputs), skip validation on hidden tuple registration fields to avoid invisible submit-blocking errors, and keep the array index label and remove button aligned to the input when a validation alert is displayed.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aragon/gov-ui-kit": minor
3+
---
4+
5+
Enforce EVM-stringent validation on `ProposalActionsDecoder` inputs: validate signed `int*` values (previously unvalidated), check that numeric values fit the bit-width of their type (e.g. `uint8` must be 0-255), verify EIP-55 address checksums (all-lowercase addresses are still accepted), and strip negative signs from unsigned number inputs. Adds `signedNumber` and `numberRange` messages to the `proposalActionsDecoder.validation` copy.

.changeset/giant-oranges-like.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aragon/gov-ui-kit": patch
3+
---
4+
5+
Fix SVG build config with missing `prefixIds` plugin

.github/workflows/library-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
const readChangelog = require('./.github/workflows/scripts/readChangelog.js');
6969
readChangelog({ github, context, core });
7070
- name: Create release
71-
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
71+
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
7272
with:
7373
prerelease: false
7474
tag_name: "v${{ steps.package-version.outputs.current-version}}"

.storybook/main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { RollupOptions } from 'rollup';
55
import { mergeConfig } from 'vite';
66
import { viteStaticCopy } from 'vite-plugin-static-copy';
77
import svgr from 'vite-plugin-svgr';
8+
import svgoConfig from '../svgo.config.js';
89

910
const config: StorybookConfig = {
1011
stories: ['../docs/**/*.@(md|mdx)', '../src/**/*.stories.@(js|jsx|ts|tsx)', '../src/**/*.@(md|mdx)'],
@@ -24,7 +25,12 @@ const config: StorybookConfig = {
2425
viteFinal: (viteConfig) => {
2526
// Add source-map-js alias and plugins for importing svg files and copying fonts
2627
const plugins = [
27-
svgr({ include: '**/*.svg' }),
28+
// Run the same SVGO pass (including id namespacing, see svgo.config.js) as the
29+
// published library build, so Storybook previews match production markup.
30+
svgr({
31+
include: '**/*.svg',
32+
svgrOptions: { plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx'], svgoConfig },
33+
}),
2834
viteStaticCopy({ targets: [{ src: './src/theme/fonts/*.ttf', dest: './fonts' }] }),
2935
];
3036
const resolve = { alias: { 'source-map-js': 'source-map' } };

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@
104104
"@rollup/plugin-typescript": "^12.3.0",
105105
"@storybook/addon-docs": "^10.4.6",
106106
"@storybook/react-vite": "^10.4.6",
107+
"@svgr/plugin-jsx": "^8.1.0",
108+
"@svgr/plugin-svgo": "^8.1.0",
107109
"@svgr/rollup": "^8.1.0",
108110
"@tailwindcss/postcss": "^4.3.1",
109111
"@tailwindcss/typography": "^0.5.20",
@@ -122,7 +124,7 @@
122124
"husky": "^9.1.7",
123125
"jest": "^30.4.2",
124126
"jest-environment-jsdom": "^30.4.1",
125-
"lint-staged": "^16.4.0",
127+
"lint-staged": "^17.0.8",
126128
"postcss": "^8.5.15",
127129
"postcss-loader": "^8.2.1",
128130
"react": "^19.2.7",
@@ -133,6 +135,7 @@
133135
"rollup-plugin-postcss": "^4.0.2",
134136
"rollup-plugin-visualizer": "^7.0.1",
135137
"storybook": "^10.4.6",
138+
"svgo": "^3.3.3",
136139
"tailwindcss": "^4.3.1",
137140
"ts-jest": "^29.4.11",
138141
"tslib": "^2.8.1",

0 commit comments

Comments
 (0)