Skip to content

Commit 9776ea0

Browse files
✨ feat: Update React 19
1 parent 8c6de85 commit 9776ea0

File tree

103 files changed

+3115
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+3115
-80
lines changed

.github/workflows/issue-close-require.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
token: ${{ secrets.GH_TOKEN }}
2222
inactive-label: 'Inactive'
2323
inactive-day: 30
24-
24+
2525
issue-close-require:
2626
permissions:
2727
issues: write # for actions-cool/issues-helper to update issues

.github/workflows/issues-translate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Issue Translate
2-
on:
3-
issue_comment:
2+
on:
3+
issue_comment:
44
types: [created]
5-
issues:
5+
issues:
66
types: [opened]
77

88
jobs:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Install bun
1414
uses: oven-sh/setup-bun@v2
1515
with:
16-
bun-version: 1.0.31
16+
bun-version: 1.0.31
1717

1818
- name: Install deps
1919
run: bun i

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- name: Install bun
1515
uses: oven-sh/setup-bun@v2
1616
with:
17-
bun-version: 1.0.31
18-
17+
bun-version: 1.0.31
18+
1919
- name: Install deps
2020
run: bun i
2121

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"commitlint": "^19.8.1",
7373
"eslint": "^8.57.1",
7474
"husky": "^9.1.7",
75-
"ink-testing-library": "^3.0.0",
75+
"ink-testing-library": "^4.0.0",
7676
"lerna": "^8.2.2",
7777
"lint-staged": "^15.5.2",
7878
"lodash-es": "^4.17.21",
@@ -89,6 +89,7 @@
8989
"vite-tsconfig-paths": "^5.1.4",
9090
"vitest": "~1.2.2"
9191
},
92+
"packageManager": "[email protected]",
9293
"engines": {
9394
"node": ">=18"
9495
},

packages/lobe-cli-shebang/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"devDependencies": {
4646
"clean-package": "^2.2.0"
4747
},
48+
"packageManager": "[email protected]",
4849
"engines": {
4950
"node": ">=18"
5051
},

packages/lobe-cli-ui/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,20 @@
3939
"type-check": "tsc --noEmit"
4040
},
4141
"dependencies": {
42-
"@inkjs/ui": "^1.0.0",
4342
"arr-rotate": "^1.0.0",
43+
"chalk": "^5.3.0",
44+
"cli-spinners": "^3.0.0",
4445
"consola": "^3.3.3",
46+
"deepmerge": "^4.3.1",
4547
"fast-deep-equal": "^3.1.3",
4648
"figures": "^6.1.0",
47-
"ink": "^4.4.1",
48-
"react": "^18.3.1"
49+
"ink": "^6.0.0",
50+
"react": "^19.0.0"
4951
},
5052
"devDependencies": {
5153
"clean-package": "^2.2.0"
5254
},
55+
"packageManager": "[email protected]",
5356
"engines": {
5457
"node": ">=18"
5558
},

packages/lobe-cli-ui/src/ConfigPanel/ConfigSelectLabel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Badge } from '@inkjs/ui';
21
import { Text } from 'ink';
32
import { memo, useMemo } from 'react';
43

54
import { useTheme } from '@/hooks/useTheme';
65

6+
import { Badge } from '../components/badge';
7+
78
export interface ConfigSelectLabelProps {
89
defaultValue: any;
910
label: string;

packages/lobe-cli-ui/src/SelectInput/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { useCallback, useEffect, useRef, useState } from 'react';
66

77
import { useTheme } from '@/hooks/useTheme';
88

9-
import Indicator from './Indicator.js';
10-
import type { IndicatorProps } from './Indicator.js';
11-
import ItemComponent from './Item.js';
12-
import type { ItemProps } from './Item.js';
9+
import Indicator from './Indicator';
10+
import type { IndicatorProps } from './Indicator';
11+
import ItemComponent from './Item';
12+
import type { ItemProps } from './Item';
1313

1414
export interface SelectInputItem {
1515
key?: string;

packages/lobe-cli-ui/src/ThemeProvider/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { ThemeProvider as InkThemeProvider, defaultTheme, extendTheme } from '@inkjs/ui';
21
import { ReactNode, memo, useEffect } from 'react';
32

43
import { useTheme } from '@/hooks/useTheme';
54

5+
import { ThemeProvider as InkThemeProvider, defaultTheme, extendTheme } from '../theme';
6+
67
const ThemeProvider = memo<{ children: ReactNode }>(({ children }) => {
78
const theme = useTheme();
89

0 commit comments

Comments
 (0)