Skip to content

Commit 1cd9045

Browse files
update
1 parent 5e1d97e commit 1cd9045

File tree

20 files changed

+2979
-4181
lines changed

20 files changed

+2979
-4181
lines changed

package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"@git-diff-view/file": "workspace:*",
3939
"@rollup/plugin-alias": "^5.1.1",
4040
"@swc/core": "^1.10.15",
41-
"@types/lodash": "^4.17.15",
42-
"@types/node": "^22.13.1",
43-
"@types/react": "^18.2.79",
44-
"@types/react-dom": "^18.2.25",
45-
"autoprefixer": "^10.4.20",
41+
"@types/lodash": "^4.17.20",
42+
"@types/node": "^22.18.10",
43+
"@types/react": "^18.3.26",
44+
"@types/react-dom": "^18.3.7",
45+
"autoprefixer": "^10.4.21",
4646
"dts-bundle-generator": "^9.5.1",
4747
"eslint": "^8.57.0",
4848
"husky": "^8.0.2",
@@ -51,17 +51,19 @@
5151
"postcss-import": "^16.1.0",
5252
"postcss-prefix-selector": "^2.1.0",
5353
"prettier": "^3.6.2",
54-
"prettier-plugin-tailwindcss": "^0.6.11",
54+
"prettier-plugin-tailwindcss": "^0.6.14",
5555
"project-tool": "https://github.com/MrWangJustToDo/project-tool.git",
5656
"rollup-plugin-postcss": "^4.0.2",
57-
"tailwindcss": "^3.4.17",
57+
"tailwindcss": "^3.4.18",
5858
"ts-node": "^10.9.2",
5959
"tslib": "^2.8.0",
60-
"typescript": "5.3.3"
60+
"typescript": "^5.9.3"
6161
},
6262
"pnpm": {
6363
"onlyBuiltDependencies": [
64-
"esbuild"
64+
"esbuild",
65+
"@swc/core",
66+
"sharp"
6567
]
6668
}
6769
}

packages/cli/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@
5555
"highlight.js": "^11.11.0",
5656
"lowlight": "^3.3.0",
5757
"fast-diff": "^1.3.0",
58-
"reactivity-store": "^0.3.11",
59-
"use-sync-external-store": "^1.4.0"
58+
"reactivity-store": "^0.3.12",
59+
"use-sync-external-store": "^1.6.0"
6060
},
6161
"devDependencies": {
62-
"@my-react/react": "^0.3.17",
63-
"@my-react/react-terminal": "^0.0.11",
64-
"@types/react": "^19.1.8"
62+
"@my-react/react": "^0.3.20",
63+
"@my-react/react-terminal": "^0.0.14",
64+
"@types/react": "^19.2.2"
6565
},
6666
"peerDependencies": {
67-
"react": "^19.1.0",
67+
"react": "^19.2.0",
6868
"ink": "^6.1.0"
6969
}
7070
}

packages/core/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ declare class File$1 {
3939
doRaw(): void;
4040
}
4141
declare const lowlight: {
42-
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options>) => import("hast").Root;
43-
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions>) => import("hast").Root;
44-
listLanguages: () => string[];
42+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
43+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
44+
listLanguages: () => Array<string>;
4545
register: {
4646
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
4747
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
4848
};
4949
registerAlias: {
50-
(aliases: Readonly<Record<string, string | readonly string[]>>): undefined;
51-
(language: string, alias: string | readonly string[]): undefined;
50+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
51+
(language: string, alias: ReadonlyArray<string> | string): undefined;
5252
};
5353
registered: (aliasOrName: string) => boolean;
5454
};

packages/file/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ declare class File$1 {
3838
doRaw(): void;
3939
}
4040
declare const lowlight: {
41-
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options>) => import("hast").Root;
42-
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions>) => import("hast").Root;
43-
listLanguages: () => string[];
41+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
42+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
43+
listLanguages: () => Array<string>;
4444
register: {
4545
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
4646
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
4747
};
4848
registerAlias: {
49-
(aliases: Readonly<Record<string, string | readonly string[]>>): undefined;
50-
(language: string, alias: string | readonly string[]): undefined;
49+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
50+
(language: string, alias: ReadonlyArray<string> | string): undefined;
5151
};
5252
registered: (aliasOrName: string) => boolean;
5353
};

packages/lowlight/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ export type DiffHighlighterLang = "arduino" | "bash" | "c" | "cpp" | "csharp" |
3232
export declare function _getAST(raw: string, fileName?: string, lang?: DiffHighlighterLang, theme?: "light" | "dark"): DiffAST;
3333
export declare function _getAST(raw: string, fileName?: string, lang?: string, theme?: "light" | "dark"): DiffAST;
3434
declare const lowlight: {
35-
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options>) => import("hast").Root;
36-
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions>) => import("hast").Root;
37-
listLanguages: () => string[];
35+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
36+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
37+
listLanguages: () => Array<string>;
3838
register: {
3939
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
4040
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
4141
};
4242
registerAlias: {
43-
(aliases: Readonly<Record<string, string | readonly string[]>>): undefined;
44-
(language: string, alias: string | readonly string[]): undefined;
43+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
44+
(language: string, alias: ReadonlyArray<string> | string): undefined;
4545
};
4646
registered: (aliasOrName: string) => boolean;
4747
};

packages/react/index.d.ts

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ declare class File$1 {
3838
doRaw(): void;
3939
}
4040
declare const lowlight: {
41-
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options>) => import("hast").Root;
42-
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions>) => import("hast").Root;
43-
listLanguages: () => string[];
41+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
42+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
43+
listLanguages: () => Array<string>;
4444
register: {
4545
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
4646
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
4747
};
4848
registerAlias: {
49-
(aliases: Readonly<Record<string, string | readonly string[]>>): undefined;
50-
(language: string, alias: string | readonly string[]): undefined;
49+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
50+
(language: string, alias: ReadonlyArray<string> | string): undefined;
5151
};
5252
registered: (aliasOrName: string) => boolean;
5353
};
@@ -905,36 +905,8 @@ declare const createDiffConfigStore: (props: DiffViewProps<any> & {
905905
setOnAddWidgetClick: (_onAddWidgetClick: {
906906
current: (lineNumber: number, side: SplitSide) => void;
907907
}) => (lineNumber: number, side: SplitSide) => void;
908-
onCreateUseWidgetHook: import("reactivity-store").Ref<(hook: import("reactivity-store").UseSelectorWithStore<{
909-
widgetSide: import("reactivity-store").Ref<SplitSide, SplitSide>;
910-
widgetLineNumber: import("reactivity-store").Ref<number, number>;
911-
setWidget: ({ side, lineNumber }: {
912-
side?: SplitSide;
913-
lineNumber?: number;
914-
}) => void;
915-
}>) => void, (hook: import("reactivity-store").UseSelectorWithStore<{
916-
widgetSide: import("reactivity-store").Ref<SplitSide, SplitSide>;
917-
widgetLineNumber: import("reactivity-store").Ref<number, number>;
918-
setWidget: ({ side, lineNumber }: {
919-
side?: SplitSide;
920-
lineNumber?: number;
921-
}) => void;
922-
}>) => void>;
923-
setOnCreateUseWidgetHook: (_onCreateUseWidgetHook: (hook: import("reactivity-store").UseSelectorWithStore<{
924-
widgetSide: import("reactivity-store").Ref<SplitSide, SplitSide>;
925-
widgetLineNumber: import("reactivity-store").Ref<number, number>;
926-
setWidget: ({ side, lineNumber }: {
927-
side?: SplitSide;
928-
lineNumber?: number;
929-
}) => void;
930-
}>) => void) => (hook: import("reactivity-store").UseSelectorWithStore<{
931-
widgetSide: import("reactivity-store").Ref<SplitSide, SplitSide>;
932-
widgetLineNumber: import("reactivity-store").Ref<number, number>;
933-
setWidget: ({ side, lineNumber }: {
934-
side?: SplitSide;
935-
lineNumber?: number;
936-
}) => void;
937-
}>) => void;
908+
onCreateUseWidgetHook: import("reactivity-store").Ref<(hook: ReturnType<typeof createDiffWidgetStore>) => void, (hook: ReturnType<typeof createDiffWidgetStore>) => void>;
909+
setOnCreateUseWidgetHook: (_onCreateUseWidgetHook: (hook: ReturnType<typeof createDiffWidgetStore>) => void) => (hook: ReturnType<typeof createDiffWidgetStore>) => void;
938910
}>;
939911
declare const createDiffWidgetStore: (useDiffContextRef: RefObject<ReturnType<typeof createDiffConfigStore>>) => import("reactivity-store").UseSelectorWithStore<{
940912
widgetSide: import("reactivity-store").Ref<SplitSide, SplitSide>;

packages/react/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@
7272
"fast-diff": "^1.3.0",
7373
"highlight.js": "^11.11.0",
7474
"lowlight": "^3.3.0",
75-
"reactivity-store": "^0.3.11",
76-
"use-sync-external-store": "^1.4.0"
75+
"reactivity-store": "^0.3.12",
76+
"use-sync-external-store": "^1.6.0"
7777
},
7878
"devDependencies": {
79-
"@types/use-sync-external-store": "^0.0.6",
80-
"autoprefixer": "^10.4.20",
79+
"@types/use-sync-external-store": "^1.5.0",
80+
"autoprefixer": "^10.4.21",
8181
"postcss": "^8.5.6",
82-
"react": "^18.0.0",
83-
"tailwindcss": "^3.4.17"
82+
"react": "^19.2.0",
83+
"tailwindcss": "^3.4.18"
8484
},
8585
"peerDependencies": {
8686
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",

packages/solid/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ declare class File$1 {
3838
doRaw(): void;
3939
}
4040
declare const lowlight: {
41-
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options>) => import("hast").Root;
42-
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions>) => import("hast").Root;
43-
listLanguages: () => string[];
41+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
42+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
43+
listLanguages: () => Array<string>;
4444
register: {
4545
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
4646
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
4747
};
4848
registerAlias: {
49-
(aliases: Readonly<Record<string, string | readonly string[]>>): undefined;
50-
(language: string, alias: string | readonly string[]): undefined;
49+
(aliases: Readonly<Record<string, ReadonlyArray<string> | string>>): undefined;
50+
(language: string, alias: ReadonlyArray<string> | string): undefined;
5151
};
5252
registered: (aliasOrName: string) => boolean;
5353
};

packages/solid/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@
4646
"highlight.js": "^11.11.0",
4747
"lowlight": "^3.3.0",
4848
"fast-diff": "^1.3.0",
49-
"reactivity-store": "^0.3.11"
49+
"reactivity-store": "^0.3.12"
5050
},
5151
"devDependencies": {
5252
"solid-js": "^1.9.0",
5353
"vite-plugin-solid": "^2.11.0",
54-
"autoprefixer": "^10.4.20",
54+
"autoprefixer": "^10.4.21",
5555
"eslint-plugin-solid": "^0.14.5",
5656
"postcss": "^8.5.6",
57-
"tailwindcss": "^3.4.17",
58-
"vite": "^5.4.19",
59-
"vite-plugin-dts": "^4.5.0"
57+
"tailwindcss": "^3.4.18",
58+
"vite": "^5.4.20",
59+
"vite-plugin-dts": "^4.5.4"
6060
},
6161
"peerDependencies": {
6262
"solid-js": "^1.9.0"

packages/svelte/package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,27 @@
4747
"svelte": "^5.0.0"
4848
},
4949
"devDependencies": {
50-
"@eslint/compat": "^1.2.5",
51-
"@eslint/js": "^9.18.0",
50+
"@eslint/compat": "^1.4.0",
51+
"@eslint/js": "^9.37.0",
5252
"@sveltejs/adapter-auto": "^6.0.0",
5353
"@sveltejs/kit": "^2.16.0",
5454
"@sveltejs/package": "^2.0.0",
5555
"@sveltejs/vite-plugin-svelte": "^5.0.0",
56-
"autoprefixer": "^10.4.20",
57-
"eslint": "^9.18.0",
58-
"eslint-config-prettier": "^10.0.1",
59-
"eslint-plugin-svelte": "^3.0.0",
56+
"autoprefixer": "^10.4.21",
57+
"eslint": "^9.37.0",
58+
"eslint-config-prettier": "^10.1.8",
59+
"eslint-plugin-svelte": "^3.12.4",
6060
"globals": "^16.0.0",
6161
"postcss": "^8.5.6",
6262
"prettier": "^3.6.2",
63-
"prettier-plugin-svelte": "^3.3.3",
63+
"prettier-plugin-svelte": "^3.4.0",
6464
"publint": "^0.3.2",
6565
"svelte": "^5.0.0",
6666
"svelte-check": "^4.0.0",
67-
"tailwindcss": "^3.4.17",
68-
"typescript": "^5.0.0",
69-
"typescript-eslint": "^8.20.0",
67+
"tailwindcss": "^3.4.18",
68+
"typescript-eslint": "^8.46.1",
7069
"vite": "^6.2.6",
71-
"vite-plugin-devtools-json": "^0.2.0"
70+
"vite-plugin-devtools-json": "^1.0.0"
7271
},
7372
"keywords": [
7473
"diff component",

0 commit comments

Comments
 (0)