@hot-updater/console 0.12.5 → 0.12.7
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/assets/index-CiYz-DpZ.js +585 -0
- package/dist/assets/index-y9HrkcYR.css +1 -0
- package/dist/index.cjs +2469 -1954
- package/dist/index.html +2 -2
- package/dist/index.js +971 -451
- package/dist/src/components/ui/button.d.ts +1 -1
- package/dist/src/components/ui/toast.d.ts +41 -0
- package/dist/src/lib/api.d.ts +2 -11
- package/dist/src-server/index.d.ts +2 -11
- package/dist/src-server/rpc.d.ts +3 -23
- package/package.json +7 -8
- package/dist/assets/index-B_xkX-3E.js +0 -585
- package/dist/assets/index-CvELDnIr.css +0 -1
- package/dist/src-server/type.spec.d.ts +0 -1
|
@@ -3,7 +3,7 @@ import * as ButtonPrimitive from "@kobalte/core/button";
|
|
|
3
3
|
import type { PolymorphicProps } from "@kobalte/core/polymorphic";
|
|
4
4
|
import type { VariantProps } from "class-variance-authority";
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
type ButtonProps<T extends ValidComponent = "button"> = ButtonPrimitive.ButtonRootProps<T> & VariantProps<typeof buttonVariants> & {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { JSX, ValidComponent } from "solid-js";
|
|
2
|
+
import type { PolymorphicProps } from "@kobalte/core/polymorphic";
|
|
3
|
+
import * as ToastPrimitive from "@kobalte/core/toast";
|
|
4
|
+
import type { VariantProps } from "class-variance-authority";
|
|
5
|
+
declare const toastVariants: (props?: ({
|
|
6
|
+
variant?: "default" | "destructive" | "success" | "warning" | "error" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
type ToastVariant = NonNullable<VariantProps<typeof toastVariants>["variant"]>;
|
|
9
|
+
type ToastListProps<T extends ValidComponent = "ol"> = ToastPrimitive.ToastListProps<T> & {
|
|
10
|
+
class?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
declare const Toaster: <T extends ValidComponent = "ol">(props: PolymorphicProps<T, ToastListProps<T>>) => JSX.Element;
|
|
13
|
+
type ToastRootProps<T extends ValidComponent = "li"> = ToastPrimitive.ToastRootProps<T> & VariantProps<typeof toastVariants> & {
|
|
14
|
+
class?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
declare const Toast: <T extends ValidComponent = "li">(props: PolymorphicProps<T, ToastRootProps<T>>) => JSX.Element;
|
|
17
|
+
type ToastCloseButtonProps<T extends ValidComponent = "button"> = ToastPrimitive.ToastCloseButtonProps<T> & {
|
|
18
|
+
class?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
declare const ToastClose: <T extends ValidComponent = "button">(props: PolymorphicProps<T, ToastCloseButtonProps<T>>) => JSX.Element;
|
|
21
|
+
type ToastTitleProps<T extends ValidComponent = "div"> = ToastPrimitive.ToastTitleProps<T> & {
|
|
22
|
+
class?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
declare const ToastTitle: <T extends ValidComponent = "div">(props: PolymorphicProps<T, ToastTitleProps<T>>) => JSX.Element;
|
|
25
|
+
type ToastDescriptionProps<T extends ValidComponent = "div"> = ToastPrimitive.ToastDescriptionProps<T> & {
|
|
26
|
+
class?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
declare const ToastDescription: <T extends ValidComponent = "div">(props: PolymorphicProps<T, ToastDescriptionProps<T>>) => JSX.Element;
|
|
29
|
+
declare function showToast(props: {
|
|
30
|
+
title?: JSX.Element;
|
|
31
|
+
description?: JSX.Element;
|
|
32
|
+
variant?: ToastVariant;
|
|
33
|
+
duration?: number;
|
|
34
|
+
}): void;
|
|
35
|
+
declare function showToastPromise<T, U>(promise: Promise<T> | (() => Promise<T>), options: {
|
|
36
|
+
loading?: JSX.Element;
|
|
37
|
+
success?: (data: T) => JSX.Element;
|
|
38
|
+
error?: (error: U) => JSX.Element;
|
|
39
|
+
duration?: number;
|
|
40
|
+
}): number;
|
|
41
|
+
export { Toaster, Toast, ToastClose, ToastTitle, ToastDescription, showToast, showToastPromise, };
|
package/dist/src/lib/api.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export declare const api: {
|
|
|
45
45
|
$get: {
|
|
46
46
|
input: {
|
|
47
47
|
query: {
|
|
48
|
-
bundleId: string
|
|
48
|
+
bundleId: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
output: {
|
|
@@ -68,17 +68,8 @@ export declare const api: {
|
|
|
68
68
|
$post: {
|
|
69
69
|
input: {
|
|
70
70
|
json: {
|
|
71
|
-
bundle: {
|
|
72
|
-
platform?: "ios" | "android" | undefined;
|
|
73
|
-
gitCommitHash?: string | null | undefined;
|
|
74
|
-
message?: string | null | undefined;
|
|
75
|
-
targetAppVersion?: string | undefined;
|
|
76
|
-
shouldForceUpdate?: boolean | undefined;
|
|
77
|
-
enabled?: boolean | undefined;
|
|
78
|
-
fileUrl?: string | undefined;
|
|
79
|
-
fileHash?: string | undefined;
|
|
80
|
-
};
|
|
81
71
|
targetBundleId: string;
|
|
72
|
+
bundle: Partial<import("@hot-updater/core").Bundle>;
|
|
82
73
|
};
|
|
83
74
|
};
|
|
84
75
|
output: true;
|
|
@@ -47,7 +47,7 @@ declare const app: Hono<{}, {
|
|
|
47
47
|
$get: {
|
|
48
48
|
input: {
|
|
49
49
|
query: {
|
|
50
|
-
bundleId: string
|
|
50
|
+
bundleId: string;
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
output: {
|
|
@@ -68,17 +68,8 @@ declare const app: Hono<{}, {
|
|
|
68
68
|
$post: {
|
|
69
69
|
input: {
|
|
70
70
|
json: {
|
|
71
|
-
bundle: {
|
|
72
|
-
platform?: "ios" | "android" | undefined;
|
|
73
|
-
gitCommitHash?: string | null | undefined;
|
|
74
|
-
message?: string | null | undefined;
|
|
75
|
-
targetAppVersion?: string | undefined;
|
|
76
|
-
shouldForceUpdate?: boolean | undefined;
|
|
77
|
-
enabled?: boolean | undefined;
|
|
78
|
-
fileUrl?: string | undefined;
|
|
79
|
-
fileHash?: string | undefined;
|
|
80
|
-
};
|
|
81
71
|
targetBundleId: string;
|
|
72
|
+
bundle: Partial<import("@hot-updater/core").Bundle>;
|
|
82
73
|
};
|
|
83
74
|
};
|
|
84
75
|
output: true;
|
package/dist/src-server/rpc.d.ts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
|
+
import { type Bundle } from "@hot-updater/plugin-core";
|
|
1
2
|
import { Hono } from "hono";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
export declare const bundleSchema: v.ObjectSchema<{
|
|
4
|
-
readonly platform: v.UnionSchema<[v.LiteralSchema<"ios", undefined>, v.LiteralSchema<"android", undefined>], undefined>;
|
|
5
|
-
readonly targetAppVersion: v.StringSchema<undefined>;
|
|
6
|
-
readonly id: v.StringSchema<undefined>;
|
|
7
|
-
readonly shouldForceUpdate: v.BooleanSchema<undefined>;
|
|
8
|
-
readonly enabled: v.BooleanSchema<undefined>;
|
|
9
|
-
readonly fileUrl: v.StringSchema<undefined>;
|
|
10
|
-
readonly fileHash: v.StringSchema<undefined>;
|
|
11
|
-
readonly gitCommitHash: v.NullableSchema<v.StringSchema<undefined>, never>;
|
|
12
|
-
readonly message: v.NullableSchema<v.StringSchema<undefined>, never>;
|
|
13
|
-
}, undefined>;
|
|
14
3
|
export declare const rpc: Hono<import("hono/types").BlankEnv, {
|
|
15
4
|
"/getConfig": {
|
|
16
5
|
$get: {
|
|
@@ -58,7 +47,7 @@ export declare const rpc: Hono<import("hono/types").BlankEnv, {
|
|
|
58
47
|
$get: {
|
|
59
48
|
input: {
|
|
60
49
|
query: {
|
|
61
|
-
bundleId: string
|
|
50
|
+
bundleId: string;
|
|
62
51
|
};
|
|
63
52
|
};
|
|
64
53
|
output: {
|
|
@@ -81,17 +70,8 @@ export declare const rpc: Hono<import("hono/types").BlankEnv, {
|
|
|
81
70
|
$post: {
|
|
82
71
|
input: {
|
|
83
72
|
json: {
|
|
84
|
-
bundle: {
|
|
85
|
-
platform?: "ios" | "android" | undefined;
|
|
86
|
-
gitCommitHash?: string | null | undefined;
|
|
87
|
-
message?: string | null | undefined;
|
|
88
|
-
targetAppVersion?: string | undefined;
|
|
89
|
-
shouldForceUpdate?: boolean | undefined;
|
|
90
|
-
enabled?: boolean | undefined;
|
|
91
|
-
fileUrl?: string | undefined;
|
|
92
|
-
fileHash?: string | undefined;
|
|
93
|
-
};
|
|
94
73
|
targetBundleId: string;
|
|
74
|
+
bundle: Partial<Bundle>;
|
|
95
75
|
};
|
|
96
76
|
};
|
|
97
77
|
output: true;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.7",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"package.json"
|
|
@@ -19,19 +19,18 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@biomejs/biome": "^1.9.4",
|
|
21
21
|
"@hono/node-server": "^1.13.4",
|
|
22
|
-
"@hono/
|
|
22
|
+
"@hono/typia-validator": "^0.1.0",
|
|
23
23
|
"@hono/vite-dev-server": "^0.18.1",
|
|
24
|
-
"@hot-updater/mock": "0.12.
|
|
24
|
+
"@hot-updater/mock": "0.12.7",
|
|
25
25
|
"@kobalte/core": "^0.13.7",
|
|
26
|
+
"@ryoppippi/unplugin-typia": "^2.0.3",
|
|
26
27
|
"@solidjs/meta": "^0.29.4",
|
|
27
28
|
"@solidjs/router": "^0.14.10",
|
|
28
29
|
"@tanstack/solid-form": "^0.34.0",
|
|
29
30
|
"@tanstack/solid-query": "^5.66.4",
|
|
30
31
|
"@tanstack/solid-table": "^8.20.5",
|
|
31
|
-
"@tanstack/valibot-form-adapter": "^0.34.0",
|
|
32
32
|
"@types/node": "^22.8.6",
|
|
33
33
|
"@types/semver": "^7.5.8",
|
|
34
|
-
"@typeschema/valibot": "^0.14.0",
|
|
35
34
|
"autoprefixer": "^10.4.19",
|
|
36
35
|
"class-variance-authority": "^0.7.0",
|
|
37
36
|
"clsx": "^2.1.1",
|
|
@@ -46,14 +45,14 @@
|
|
|
46
45
|
"tailwindcss": "^3.4.14",
|
|
47
46
|
"tailwindcss-animate": "^1.0.7",
|
|
48
47
|
"typescript": "^5.6.3",
|
|
49
|
-
"
|
|
48
|
+
"typia": "^8.0.3",
|
|
50
49
|
"vite": "^6.1.0",
|
|
51
50
|
"vite-plugin-solid": "^2.11.1",
|
|
52
51
|
"vite-tsconfig-paths": "^5.1.4"
|
|
53
52
|
},
|
|
54
53
|
"dependencies": {
|
|
55
|
-
"@hot-updater/core": "0.12.
|
|
56
|
-
"@hot-updater/plugin-core": "0.12.
|
|
54
|
+
"@hot-updater/core": "0.12.7",
|
|
55
|
+
"@hot-updater/plugin-core": "0.12.7"
|
|
57
56
|
},
|
|
58
57
|
"scripts": {
|
|
59
58
|
"build": "vite build --mode client && rslib build",
|