@primer/styled-react 1.1.0-rc.972c04f26 → 1.1.0-rc.9dc2e199b
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/dist/components/BaseStyles.js +1 -1
- package/dist/components/FeatureFlaggedTheming.d.ts +0 -4
- package/dist/components/FeatureFlaggedTheming.d.ts.map +1 -1
- package/dist/components/FeatureFlaggedTheming.js +3 -13
- package/dist/components/ThemeContext.d.ts +15 -0
- package/dist/components/ThemeContext.d.ts.map +1 -0
- package/dist/components/ThemeContext.js +9 -0
- package/dist/components/ThemeProvider.d.ts +1 -14
- package/dist/components/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider.js +3 -16
- package/dist/components/useFeatureFlaggedTheme.d.ts +4 -0
- package/dist/components/useFeatureFlaggedTheme.d.ts.map +1 -0
- package/dist/components/useFeatureFlaggedTheme.js +21 -0
- package/dist/components/useTheme.d.ts +15 -0
- package/dist/components/useTheme.d.ts.map +1 -0
- package/dist/components/useTheme.js +14 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/package.json +6 -3
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { useTheme as primerUseTheme } from '@primer/react';
|
|
3
|
-
import { useColorSchemeVar } from './ThemeProvider';
|
|
4
2
|
import type { ThemeProviderProps as StyledThemeProviderProps } from './ThemeProvider';
|
|
5
3
|
import type { BaseStylesProps as StyledBaseStylesProps } from './BaseStyles';
|
|
6
4
|
export type ThemeProviderProps = StyledThemeProviderProps;
|
|
7
5
|
export type BaseStylesProps = StyledBaseStylesProps;
|
|
8
6
|
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
9
|
-
export declare function useTheme(): ReturnType<typeof primerUseTheme>;
|
|
10
|
-
export { useColorSchemeVar };
|
|
11
7
|
export declare function BaseStyles(props: BaseStylesProps): React.JSX.Element;
|
|
12
8
|
//# sourceMappingURL=FeatureFlaggedTheming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FeatureFlaggedTheming.d.ts","sourceRoot":"","sources":["../../src/components/FeatureFlaggedTheming.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,OAAO,KAAK,EAAC,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,iBAAiB,CAAA;AAEnF,OAAO,KAAK,EAAC,eAAe,IAAI,qBAAqB,EAAC,MAAM,cAAc,CAAA;AAE1E,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAA;AAEzD,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAA;AAEnD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAM/E,CAAA;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAMhD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BaseStyles as BaseStyles$1, ThemeProvider as ThemeProvider$1
|
|
1
|
+
import { BaseStyles as BaseStyles$1, ThemeProvider as ThemeProvider$1 } from '@primer/react';
|
|
2
2
|
import { useFeatureFlag } from '@primer/react/experimental';
|
|
3
|
-
import { ThemeProvider as ThemeProvider$2
|
|
4
|
-
export { useColorSchemeVar } from './ThemeProvider.js';
|
|
3
|
+
import { ThemeProvider as ThemeProvider$2 } from './ThemeProvider.js';
|
|
5
4
|
import { BaseStyles as BaseStyles$2 } from './BaseStyles.js';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
@@ -21,15 +20,6 @@ const ThemeProvider = ({
|
|
|
21
20
|
children: children
|
|
22
21
|
});
|
|
23
22
|
};
|
|
24
|
-
function useTheme() {
|
|
25
|
-
const enabled = useFeatureFlag('primer_react_styled_react_use_primer_theme_providers');
|
|
26
|
-
const styledTheme = useTheme$1();
|
|
27
|
-
const primerTheme = useTheme$2();
|
|
28
|
-
if (enabled) {
|
|
29
|
-
return primerTheme;
|
|
30
|
-
}
|
|
31
|
-
return styledTheme;
|
|
32
|
-
}
|
|
33
23
|
function BaseStyles(props) {
|
|
34
24
|
const enabled = useFeatureFlag('primer_react_styled_react_use_primer_theme_providers');
|
|
35
25
|
if (enabled) {
|
|
@@ -42,4 +32,4 @@ function BaseStyles(props) {
|
|
|
42
32
|
});
|
|
43
33
|
}
|
|
44
34
|
|
|
45
|
-
export { BaseStyles, ThemeProvider
|
|
35
|
+
export { BaseStyles, ThemeProvider };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColorMode, ColorModeWithAuto, Theme } from './ThemeProvider';
|
|
3
|
+
export declare const ThemeContext: React.Context<{
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
colorScheme?: string;
|
|
6
|
+
colorMode?: ColorModeWithAuto;
|
|
7
|
+
resolvedColorMode?: ColorMode;
|
|
8
|
+
resolvedColorScheme?: string;
|
|
9
|
+
dayScheme?: string;
|
|
10
|
+
nightScheme?: string;
|
|
11
|
+
setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>;
|
|
12
|
+
setDayScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
+
setNightScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/components/ThemeContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAC,SAAS,EAAE,iBAAiB,EAAE,KAAK,EAAC,MAAM,iBAAiB,CAAA;AAExE,eAAO,MAAM,YAAY;YACf,KAAK;kBACC,MAAM;gBACR,iBAAiB;wBACT,SAAS;0BACP,MAAM;gBAChB,MAAM;kBACJ,MAAM;kBACN,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;kBACvD,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;oBAC1C,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;EAK5D,CAAA"}
|
|
@@ -3,7 +3,7 @@ export declare const defaultColorMode = "day";
|
|
|
3
3
|
export type Theme = {
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
};
|
|
6
|
-
type ColorMode = 'day' | 'night' | 'light' | 'dark';
|
|
6
|
+
export type ColorMode = 'day' | 'night' | 'light' | 'dark';
|
|
7
7
|
export type ColorModeWithAuto = ColorMode | 'auto';
|
|
8
8
|
export type ThemeProviderProps = {
|
|
9
9
|
theme?: Theme;
|
|
@@ -18,18 +18,5 @@ export type ThemeProviderProps = {
|
|
|
18
18
|
contextOnly?: boolean;
|
|
19
19
|
};
|
|
20
20
|
export declare const ThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderProps>>;
|
|
21
|
-
export declare function useTheme(): {
|
|
22
|
-
theme?: Theme;
|
|
23
|
-
colorScheme?: string;
|
|
24
|
-
colorMode?: ColorModeWithAuto;
|
|
25
|
-
resolvedColorMode?: ColorMode;
|
|
26
|
-
resolvedColorScheme?: string;
|
|
27
|
-
dayScheme?: string;
|
|
28
|
-
nightScheme?: string;
|
|
29
|
-
setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>;
|
|
30
|
-
setDayScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
31
|
-
setNightScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
32
|
-
};
|
|
33
|
-
export declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
|
|
34
21
|
export default ThemeProvider;
|
|
35
22
|
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/components/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/components/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AAKrC,MAAM,MAAM,KAAK,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,CAAA;AACxC,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAA;AAC1D,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,MAAM,CAAA;AAElD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,SAAS,CAAC,EAAE,iBAAiB,CAAA;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AA6BD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAyE/E,CAAA;AAqED,eAAe,aAAa,CAAA"}
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { ThemeProvider as ThemeProvider$1 } from 'styled-components';
|
|
3
3
|
import { theme, useId, useSyncedState } from '@primer/react';
|
|
4
4
|
import deepmerge from 'deepmerge';
|
|
5
|
+
import { ThemeContext } from './ThemeContext.js';
|
|
6
|
+
import { useTheme } from './useTheme.js';
|
|
5
7
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
8
|
|
|
7
9
|
const defaultColorMode = 'day';
|
|
@@ -10,12 +12,6 @@ const defaultNightScheme = 'dark';
|
|
|
10
12
|
|
|
11
13
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
14
|
|
|
13
|
-
const ThemeContext = /*#__PURE__*/React.createContext({
|
|
14
|
-
setColorMode: () => null,
|
|
15
|
-
setDayScheme: () => null,
|
|
16
|
-
setNightScheme: () => null
|
|
17
|
-
});
|
|
18
|
-
|
|
19
15
|
// inspired from __NEXT_DATA__, we use application/json to avoid CSRF policy with inline scripts
|
|
20
16
|
const serverHandoffCache = new Map();
|
|
21
17
|
const emptyHandoff = {};
|
|
@@ -94,15 +90,6 @@ const ThemeProvider = ({
|
|
|
94
90
|
})
|
|
95
91
|
});
|
|
96
92
|
};
|
|
97
|
-
function useTheme() {
|
|
98
|
-
return React.useContext(ThemeContext);
|
|
99
|
-
}
|
|
100
|
-
function useColorSchemeVar(values, fallback) {
|
|
101
|
-
const {
|
|
102
|
-
colorScheme = ''
|
|
103
|
-
} = useTheme();
|
|
104
|
-
return values[colorScheme] ?? fallback;
|
|
105
|
-
}
|
|
106
93
|
function subscribeToSystemColorMode(callback) {
|
|
107
94
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
108
95
|
const media = window?.matchMedia?.('(prefers-color-scheme: dark)');
|
|
@@ -160,4 +147,4 @@ function applyColorScheme(theme, colorScheme) {
|
|
|
160
147
|
};
|
|
161
148
|
}
|
|
162
149
|
|
|
163
|
-
export { ThemeProvider, defaultColorMode
|
|
150
|
+
export { ThemeProvider, defaultColorMode };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { useTheme as primerUseTheme } from '@primer/react';
|
|
2
|
+
export declare function useTheme(): ReturnType<typeof primerUseTheme>;
|
|
3
|
+
export declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
|
|
4
|
+
//# sourceMappingURL=useFeatureFlaggedTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFeatureFlaggedTheme.d.ts","sourceRoot":"","sources":["../../src/components/useFeatureFlaggedTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,QAAQ,IAAI,cAAc,EAAC,MAAM,eAAe,CAAA;AAItG,wBAAgB,QAAQ,IAAI,UAAU,CAAC,OAAO,cAAc,CAAC,CAQ5D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,UAK1F"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useColorSchemeVar as useColorSchemeVar$2, useTheme as useTheme$2 } from '@primer/react';
|
|
2
|
+
import { useFeatureFlag } from '@primer/react/experimental';
|
|
3
|
+
import { useColorSchemeVar as useColorSchemeVar$1, useTheme as useTheme$1 } from './useTheme.js';
|
|
4
|
+
|
|
5
|
+
function useTheme() {
|
|
6
|
+
const enabled = useFeatureFlag('primer_react_styled_react_use_primer_theme_providers');
|
|
7
|
+
const styledTheme = useTheme$1();
|
|
8
|
+
const primerTheme = useTheme$2();
|
|
9
|
+
if (enabled) {
|
|
10
|
+
return primerTheme;
|
|
11
|
+
}
|
|
12
|
+
return styledTheme;
|
|
13
|
+
}
|
|
14
|
+
function useColorSchemeVar(values, fallback) {
|
|
15
|
+
const enabled = useFeatureFlag('primer_react_styled_react_use_primer_theme_providers');
|
|
16
|
+
const styledValue = useColorSchemeVar$1(values, fallback);
|
|
17
|
+
const primerValue = useColorSchemeVar$2(values, fallback);
|
|
18
|
+
return enabled ? primerValue : styledValue;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { useColorSchemeVar, useTheme };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function useTheme(): {
|
|
3
|
+
theme?: import("./ThemeProvider").Theme;
|
|
4
|
+
colorScheme?: string;
|
|
5
|
+
colorMode?: import("./ThemeProvider").ColorModeWithAuto;
|
|
6
|
+
resolvedColorMode?: import("./ThemeProvider").ColorMode;
|
|
7
|
+
resolvedColorScheme?: string;
|
|
8
|
+
dayScheme?: string;
|
|
9
|
+
nightScheme?: string;
|
|
10
|
+
setColorMode: React.Dispatch<React.SetStateAction<import("./ThemeProvider").ColorModeWithAuto>>;
|
|
11
|
+
setDayScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
12
|
+
setNightScheme: React.Dispatch<React.SetStateAction<string>>;
|
|
13
|
+
};
|
|
14
|
+
export declare function useColorSchemeVar(values: Partial<Record<string, string>>, fallback: string): string;
|
|
15
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/components/useTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,wBAAgB,QAAQ;;;;;;;;;;;EAEvB;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,UAG1F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeContext } from './ThemeContext.js';
|
|
3
|
+
|
|
4
|
+
function useTheme() {
|
|
5
|
+
return React.useContext(ThemeContext);
|
|
6
|
+
}
|
|
7
|
+
function useColorSchemeVar(values, fallback) {
|
|
8
|
+
const {
|
|
9
|
+
colorScheme = ''
|
|
10
|
+
} = useTheme();
|
|
11
|
+
return values[colorScheme] ?? fallback;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { useColorSchemeVar, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,17 +8,18 @@ ThemeProvider,
|
|
|
8
8
|
* @deprecated Theming in JavaScript is no longer supported. Prefer using
|
|
9
9
|
* `@primer/primitives` and CSS Modules instead.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type ThemeProviderProps, } from './components/FeatureFlaggedTheming';
|
|
12
|
+
export {
|
|
12
13
|
/**
|
|
13
14
|
* @deprecated Theming in JavaScript is no longer supported. Prefer using
|
|
14
15
|
* `@primer/primitives` and CSS Modules instead.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
useTheme,
|
|
17
18
|
/**
|
|
18
19
|
* @deprecated Theming in JavaScript is no longer supported. Prefer using
|
|
19
20
|
* `@primer/primitives` and CSS Modules instead.
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
+
useColorSchemeVar, } from './components/useFeatureFlaggedTheme';
|
|
22
23
|
export {
|
|
23
24
|
/**
|
|
24
25
|
* @deprecated Usage of the `sx` prop with this component is no longer
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO;AACL;;;GAGG;AACH,aAAa;AAEb;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO;AACL;;;GAGG;AACH,aAAa;AAEb;;;GAGG;AACH,KAAK,kBAAkB,GACxB,MAAM,oCAAoC,CAAA;AAE3C,OAAO;AACL;;;GAGG;AACH,QAAQ;AAER;;;GAGG;AACH,iBAAiB,GAClB,MAAM,qCAAqC,CAAA;AAE5C,OAAO;AACL;;;GAGG;AACH,UAAU;AAEV;;;GAGG;AACH,KAAK,eAAe,GACrB,MAAM,oCAAoC,CAAA;AAE3C,OAAO;AACL;;;GAGG;AACH,KAAK,GACN,MAAM,eAAe,CAAA;AAEtB,OAAO;AACL;;;GAGG;AACH,GAAG,IAAI,QAAQ,GAChB,MAAM,aAAa,CAAA;AAEpB,OAAO;AACL;;;GAGG;AACH,KAAK;AAEL;;;GAGG;AACH,EAAE;AAEF;;;GAGG;AACH,KAAK,MAAM,GACZ,MAAM,MAAM,CAAA;AAEb,OAAO;AACL;;;GAGG;AACH,KAAK,uBAAuB,GAC7B,MAAM,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { BaseStyles, ThemeProvider
|
|
2
|
+
export { BaseStyles, ThemeProvider } from './components/FeatureFlaggedTheming.js';
|
|
3
|
+
export { useColorSchemeVar, useTheme } from './components/useFeatureFlaggedTheme.js';
|
|
3
4
|
export { theme } from '@primer/react';
|
|
4
5
|
export { get as themeGet } from './theme-get.js';
|
|
5
6
|
export { sx } from './sx.js';
|
|
6
7
|
export { default as merge } from 'deepmerge';
|
|
7
|
-
export { useColorSchemeVar } from './components/ThemeProvider.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/styled-react",
|
|
3
|
-
"version": "1.1.0-rc.
|
|
3
|
+
"version": "1.1.0-rc.9dc2e199b",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -38,16 +38,19 @@
|
|
|
38
38
|
"styled-system": "^5.1.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
+
"@babel/core": "^7.29.7",
|
|
41
42
|
"@babel/preset-react": "^7.28.5",
|
|
42
43
|
"@babel/preset-typescript": "^7.28.5",
|
|
43
44
|
"@primer/primitives": "10.x || 11.x",
|
|
44
45
|
"@primer/react": "^38.26.0",
|
|
46
|
+
"@rolldown/plugin-babel": "^0.2.3",
|
|
45
47
|
"@rollup/plugin-babel": "^6.1.0",
|
|
46
|
-
"@storybook/react-vite": "^10.
|
|
48
|
+
"@storybook/react-vite": "^10.4.2",
|
|
49
|
+
"@types/babel__core": "^7.20.5",
|
|
47
50
|
"@types/react": "18.3.11",
|
|
48
51
|
"@types/react-dom": "18.3.1",
|
|
49
52
|
"@types/styled-components": "^5.1.26",
|
|
50
|
-
"@vitejs/plugin-react": "^
|
|
53
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
51
54
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
52
55
|
"babel-plugin-styled-components": "2.1.4",
|
|
53
56
|
"postcss-preset-primer": "^0.0.0",
|