Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
eeead1b
build(deps): DEP-7 — redux 5 + react-redux 9 + reselect 5 + redux-sag…
ost-ptk Jul 2, 2026
ebf5aac
build(deps): DEP-8 — bump react-router-dom 7 + yup 1 + resolvers 5 + …
ost-ptk Jul 2, 2026
eae8b4b
fix(forms): DEP-8 — yup 1 type reconciliation for password/phrase/buy…
ost-ptk Jul 2, 2026
e415706
fix(forms): DEP-8 — yup 1 type reconciliation for transfer amount uni…
ost-ptk Jul 2, 2026
810b17c
fix(forms): DEP-8 — yup 1 type reconciliation for file import + Strin…
ost-ptk Jul 2, 2026
45c66f5
test(e2e): DEP-8 — fix router-v7-exposed rename-account flake + revie…
ost-ptk Jul 2, 2026
c4070ea
Merge branch 'release/2.6.0' into WALLET-1333-dep-7-redux-5-react-red…
Comp0te Jul 2, 2026
08463b8
Merge branch 'WALLET-1333-dep-7-redux-5-react-redux-9-reselect-5-redu…
Comp0te Jul 2, 2026
9fa6b6b
Merge remote-tracking branch 'origin/release/2.6.0' into WALLET-1335-…
ost-ptk Jul 2, 2026
eb3a201
Merge remote-tracking branch 'origin/release/2.6.0' into WALLET-1334-…
ost-ptk Jul 2, 2026
f4cb4e0
build(deps): DEP-9 — i18n + formatting stack (i18next 26, react-i18ne…
ost-ptk Jul 2, 2026
024dac6
build(deps): bump styled-components to v6, add @emotion/is-prop-valid
ost-ptk Jul 2, 2026
b4b48e3
feat(ui): add shared StyleSheetManager with global prop filtering
ost-ptk Jul 2, 2026
0d345c9
fix(ui): update styled-components v6 API/type usages across UI library
ost-ptk Jul 2, 2026
5aa885c
feat(security): replace unsafe-inline with per-build nonce in style-s…
ost-ptk Jul 2, 2026
17fa16a
feat(ui): wrap app trees in CspStyleSheetManager
ost-ptk Jul 2, 2026
7b33d2b
fix(ui): compose isPropValid into local shouldForwardProp overrides
ost-ptk Jul 2, 2026
309fa44
revert: defer CSP style-src nonce hardening (P1.5a) out of DEP-10
ost-ptk Jul 2, 2026
d10dd74
docs(ui): clarify CSP_NONCE prop is a no-op until follow-up ticket
ost-ptk Jul 2, 2026
d18f8ff
Merge remote-tracking branch 'origin/release/2.6.0' into WALLET-1337-…
ost-ptk Jul 3, 2026
30850e4
fix(ui): add missing & to Button pseudo-selectors
ost-ptk Jul 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 57 additions & 107 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@
"npm run format:write"
]
},
"resolutions": {
"styled-components": "^5"
},
"//dependencyNotes": "@scure/bip32 and @scure/bip39 are intentionally held at v1 (1.6.2 / 1.2.1): casper-js-sdk@5.0.12 pins @scure/* ^1 and shares the top-level copy. Bumping to v2 would fork BIP32/39 into two impls and pull @noble/curves@2/@noble/hashes@2 (wrong-address risk, no upside). Bump in lockstep only when the SDK/core move off @scure ^1. See WALLET-1330.",
"dependencies": {
"@bringweb3/chrome-extension-kit": "1.7.0",
"@emotion/is-prop-valid": "^1.4.0",
"@formatjs/intl": "^4.1.14",
"@hookform/resolvers": "^5.4.0",
"@lapo/asn1js": "^2.1.3",
Expand Down Expand Up @@ -106,7 +104,7 @@
"redux": "^5.0.1",
"redux-saga": "^1.5.0",
"reselect": "^5.2.0",
"styled-components": "5.3.11",
"styled-components": "6.4.3",
"typesafe-actions": "5.1.0",
"yup": "^1.7.1"
},
Expand Down Expand Up @@ -145,7 +143,6 @@
"@types/react": "^18.2.55",
"@types/react-dom": "^18.3.0",
"@types/react-virtualized": "^9.21.30",
"@types/styled-components": "^5.1.36",
"@typescript-eslint/parser": "^5.62.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^10.0.0",
Expand Down
29 changes: 18 additions & 11 deletions src/apps/connect-to-app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ import { useSystemThemeDetector } from '@hooks/use-system-theme-detector';
import '@libs/i18n/i18n';
import { ErrorBoundary } from '@libs/layout';
import { newQueryClient } from '@libs/services/query-client';
import { GlobalStyle, darkTheme, lightTheme } from '@libs/ui';
import {
CspStyleSheetManager,
GlobalStyle,
darkTheme,
lightTheme
} from '@libs/ui';

const Tree = () => {
const [state, setState] = useState<PopupState | null>(null);
Expand Down Expand Up @@ -58,16 +63,18 @@ const Tree = () => {

return (
<Suspense fallback={null}>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
<CspStyleSheetManager>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
</CspStyleSheetManager>
</Suspense>
);
};
Expand Down
29 changes: 18 additions & 11 deletions src/apps/import-account-with-file/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ import { useSystemThemeDetector } from '@hooks/use-system-theme-detector';
import '@libs/i18n/i18n';
import { ErrorBoundary } from '@libs/layout';
import { newQueryClient } from '@libs/services/query-client';
import { GlobalStyle, darkTheme, lightTheme } from '@libs/ui';
import {
CspStyleSheetManager,
GlobalStyle,
darkTheme,
lightTheme
} from '@libs/ui';

import { AppRouter } from './app-router';

Expand Down Expand Up @@ -56,16 +61,18 @@ const Tree = () => {

return (
<Suspense fallback={null}>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
<CspStyleSheetManager>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
</CspStyleSheetManager>
</Suspense>
);
};
Expand Down
24 changes: 13 additions & 11 deletions src/apps/onboarding/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { onboardingAppInit } from '@background/redux/windowManagement/actions';
import '@libs/i18n/i18n';
import { ErrorBoundary } from '@libs/layout';
import { newQueryClient } from '@libs/services/query-client';
import { GlobalStyle, lightTheme } from '@libs/ui';
import { CspStyleSheetManager, GlobalStyle, lightTheme } from '@libs/ui';

const Tree = () => {
const [state, setState] = useState<PopupState | null>(null);
Expand All @@ -36,16 +36,18 @@ const Tree = () => {

return (
<Suspense fallback={null}>
<ThemeProvider theme={lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
<CspStyleSheetManager>
<ThemeProvider theme={lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
</CspStyleSheetManager>
</Suspense>
);
};
Expand Down
29 changes: 18 additions & 11 deletions src/apps/popup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ import { useSystemThemeDetector } from '@hooks/use-system-theme-detector';

import { ErrorBoundary } from '@libs/layout';
import { newQueryClient } from '@libs/services/query-client';
import { GlobalStyle, darkTheme, lightTheme } from '@libs/ui';
import {
CspStyleSheetManager,
GlobalStyle,
darkTheme,
lightTheme
} from '@libs/ui';

import { AppRouter } from './app-router';

Expand Down Expand Up @@ -59,16 +64,18 @@ const Tree = () => {

return (
<Suspense fallback={null}>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
<CspStyleSheetManager>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
</CspStyleSheetManager>
</Suspense>
);
};
Expand Down
29 changes: 18 additions & 11 deletions src/apps/signature-request/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ import { useSystemThemeDetector } from '@hooks/use-system-theme-detector';
import '@libs/i18n/i18n';
import { ErrorBoundary } from '@libs/layout';
import { newQueryClient } from '@libs/services/query-client';
import { GlobalStyle, darkTheme, lightTheme } from '@libs/ui';
import {
CspStyleSheetManager,
GlobalStyle,
darkTheme,
lightTheme
} from '@libs/ui';

import { AppRouter } from './app-router';

Expand Down Expand Up @@ -60,16 +65,18 @@ const Tree = () => {

return (
<Suspense fallback={null}>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
<CspStyleSheetManager>
<ThemeProvider theme={isDarkMode ? darkTheme : lightTheme}>
<GlobalStyle />
<ReduxProvider store={store}>
<QueryClientProvider client={newQueryClient}>
<ErrorBoundary>
<AppRouter />
</ErrorBoundary>
</QueryClientProvider>
</ReduxProvider>
</ThemeProvider>
</CspStyleSheetManager>
</Suspense>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/libs/layout/containers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const activityBottomPseudoElementRules = css<BorderBottomPseudoElementPro
background: ${({ theme }) => theme.color.backgroundSecondary};
`;

export const BorderContainer = styled.div`
export const BorderContainer = styled.div<BorderBottomPseudoElementProps>`
& > *:last-child {
${borderBottomPseudoElementRules};
}
Expand Down
6 changes: 3 additions & 3 deletions src/libs/ui/components/avatar/avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Maybe } from 'casper-wallet-core/src/typings/common';
import React from 'react';
import styled, { DefaultTheme, useTheme } from 'styled-components';
import styled, { useTheme } from 'styled-components';

import { isValidAccountHash, isValidPublicKey } from '@src/utils';

Expand All @@ -24,8 +24,8 @@ const ConnectionStatusBadgeContainer = styled(AlignedFlexRow)`
z-index: 1;
`;

export const BackgroundWrapper = styled.div(
({ size, theme }: { size: number; theme: DefaultTheme }) => ({
export const BackgroundWrapper = styled.div<{ size: number }>(
({ size, theme }) => ({
borderRadius: theme.borderRadius.eight,
height: `${size}px`,
width: `${size}px`,
Expand Down
24 changes: 12 additions & 12 deletions src/libs/ui/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ const BaseButton = styled.button<BaseButtonProps>(
padding: '12px'
}),

':focus': {
'&:focus': {
outline: 'none'
},

':hover': {
'&:hover': {
cursor: 'pointer'
},

Expand All @@ -64,10 +64,10 @@ const PrimaryBlueButton = styled(BaseButton)<BaseButtonProps>(
color: theme.color.contentOnFill,
background: theme.color.fillPrimary,

': hover': {
'&:hover': {
background: theme.color.fillPrimaryHover
},
': active': {
'&:active': {
background: theme.color.fillPrimaryClick
},

Expand All @@ -83,10 +83,10 @@ const PrimaryRedButton = styled(BaseButton)<BaseButtonProps>(
color: theme.color.contentOnFill,
background: theme.color.fillCritical,

': hover': {
'&:hover': {
background: theme.color.fillCriticalHover
},
': active': {
'&:active': {
background: theme.color.fillCriticalClick
},

Expand All @@ -102,10 +102,10 @@ const SecondaryBlueButton = styled(BaseButton)<BaseButtonProps>(
color: theme.color.contentAction,
background: getLinearGradientColor(theme.color.fillSecondary),

': hover': {
'&:hover': {
background: getLinearGradientColor(theme.color.fillSecondaryHover)
},
': active': {
'&:active': {
background: theme.color.fillNeutral
},

Expand All @@ -121,10 +121,10 @@ const SecondaryRedButton = styled(BaseButton)<BaseButtonProps>(
color: theme.color.fillCritical,
background: getLinearGradientColor(theme.color.fillSecondary),

': hover': {
'&:hover': {
background: getLinearGradientColor(theme.color.fillSecondaryHover)
},
': active': {
'&:active': {
background: theme.color.fillNeutral
},

Expand All @@ -140,10 +140,10 @@ const UtilityButton = styled(BaseButton)<BaseButtonProps>(
color: theme.color.contentOnFill,
background: theme.color.fillPrimary,

': hover': {
'&:hover': {
background: theme.color.fillPrimaryHover
},
': active': {
'&:active': {
background: theme.color.fillPrimaryClick
},

Expand Down
11 changes: 3 additions & 8 deletions src/libs/ui/components/list/list.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { MacScrollbar } from 'mac-scrollbar';
import React from 'react';
import styled, {
DefaultTheme,
FlattenInterpolation,
ThemeProps
} from 'styled-components';
import styled, { Interpolation } from 'styled-components';

import {
BorderBottomPseudoElementProps,
Expand All @@ -14,9 +10,8 @@ import {
} from '@libs/layout';
import { Tile, Typography } from '@libs/ui/components';

type BorderBottomPseudoElementRulesType = FlattenInterpolation<
ThemeProps<DefaultTheme> & BorderBottomPseudoElementProps
>;
type BorderBottomPseudoElementRulesType =
Interpolation<BorderBottomPseudoElementProps>;

interface ListHeaderContainerProps extends BorderBottomPseudoElementProps {
borderBottomPseudoElementRules: BorderBottomPseudoElementRulesType;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/ui/components/svg-icon/svg-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import isPropValid from '@emotion/is-prop-valid';
import React, { HTMLAttributes, forwardRef } from 'react';
import ReactSVG from 'react-inlinesvg';
import styled from 'styled-components';
Expand Down Expand Up @@ -36,8 +37,7 @@ const getMargin = (size?: 'small' | 'medium') => {
};

const Container = styled('div').withConfig({
shouldForwardProp: (prop, defaultValidatorFn) =>
!['flipByAxis'].includes(prop) && defaultValidatorFn(prop)
shouldForwardProp: prop => !['flipByAxis'].includes(prop) && isPropValid(prop)
})<{
size: number;
width?: string | number;
Expand Down
Loading
Loading