@h-ai/ui 0.1.0-alpha.72 → 0.1.0-alpha.74
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/README.en.md +43 -3
- package/README.ja.md +44 -4
- package/README.md +44 -4
- package/auto-import.d.ts +3 -0
- package/auto-import.js +3 -0
- package/dist/components/scenes/app/FeedbackDetail.svelte +11 -1
- package/dist/components/scenes/app/FeedbackDetail.svelte.d.ts +6 -0
- package/dist/components/scenes/app/FeedbackForm.svelte +1 -1
- package/dist/components/scenes/iam/AuthPanel.svelte +75 -11
- package/dist/components/scenes/iam/AuthShell.svelte +6 -1
- package/dist/components/scenes/iam/AuthShell.svelte.d.ts +2 -0
- package/dist/components/scenes/iam/ChangePasswordForm.svelte +1 -1
- package/dist/components/scenes/iam/ForgotPasswordForm.svelte +1 -1
- package/dist/components/scenes/iam/LoginForm.svelte +4 -2
- package/dist/components/scenes/iam/ReauthenticationDialog.svelte +68 -0
- package/dist/components/scenes/iam/ReauthenticationDialog.svelte.d.ts +17 -0
- package/dist/components/scenes/iam/RegisterForm.svelte +1 -1
- package/dist/components/scenes/iam/SensitiveOperationsForm.svelte +70 -0
- package/dist/components/scenes/iam/SensitiveOperationsForm.svelte.d.ts +21 -0
- package/dist/components/scenes/iam/SessionRecoveryDialog.svelte +64 -0
- package/dist/components/scenes/iam/SessionRecoveryDialog.svelte.d.ts +22 -0
- package/dist/components/scenes/iam/auth-captcha.d.ts +21 -0
- package/dist/components/scenes/iam/auth-captcha.js +23 -0
- package/dist/components/scenes/iam/auth-error-message.js +4 -0
- package/dist/components/scenes/iam/index.d.ts +7 -0
- package/dist/components/scenes/iam/index.js +5 -0
- package/dist/components/scenes/iam/password-utils.js +5 -0
- package/dist/components/scenes/iam/sensitive-actions.svelte.d.ts +68 -0
- package/dist/components/scenes/iam/sensitive-actions.svelte.js +100 -0
- package/dist/components/scenes/iam/session-recovery.svelte.d.ts +44 -0
- package/dist/components/scenes/iam/session-recovery.svelte.js +57 -0
- package/dist/components/scenes/types.d.ts +51 -3
- package/dist/messages/en-US.json +19 -1
- package/dist/messages/ja-JP.json +19 -1
- package/dist/messages/zh-CN.json +19 -1
- package/dist/types.d.ts +2 -2
- package/package.json +3 -2
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { untrack } from 'svelte';
|
|
2
|
+
/**
|
|
3
|
+
* 创建与SessionRecoveryDialog配套的页面级恢复控制器,不依赖具体业务路由。
|
|
4
|
+
* @returns 只保留公开配置、原主体及单个等待Promise的控制器。
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { createSessionRecovery } from '@h-ai/ui'
|
|
8
|
+
* const recovery = createSessionRecovery()
|
|
9
|
+
* // 布局以 configure(publicConfig, currentUser) 装配;销毁时 cancel()。
|
|
10
|
+
* recovery.cancel()
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export function createSessionRecovery() {
|
|
14
|
+
class Recovery {
|
|
15
|
+
open = $state(false);
|
|
16
|
+
config = $state(null);
|
|
17
|
+
user = $state();
|
|
18
|
+
pending;
|
|
19
|
+
resolve;
|
|
20
|
+
generation = 0;
|
|
21
|
+
get version() { return this.generation; }
|
|
22
|
+
configure(config, user) {
|
|
23
|
+
untrack(() => {
|
|
24
|
+
if (this.user?.id !== user?.id)
|
|
25
|
+
this.cancel();
|
|
26
|
+
});
|
|
27
|
+
this.config = config;
|
|
28
|
+
this.user = user;
|
|
29
|
+
}
|
|
30
|
+
recover = async () => {
|
|
31
|
+
if (!this.user || !this.config)
|
|
32
|
+
return false;
|
|
33
|
+
if (this.pending)
|
|
34
|
+
return this.pending;
|
|
35
|
+
this.generation++;
|
|
36
|
+
this.open = true;
|
|
37
|
+
this.pending = new Promise((resolve) => {
|
|
38
|
+
this.resolve = resolve;
|
|
39
|
+
});
|
|
40
|
+
return this.pending;
|
|
41
|
+
};
|
|
42
|
+
complete(userId, version) {
|
|
43
|
+
if (this.open && userId === this.user?.id && version === this.generation)
|
|
44
|
+
this.finish(true);
|
|
45
|
+
}
|
|
46
|
+
cancel() { this.finish(false); }
|
|
47
|
+
finish(restored) {
|
|
48
|
+
this.generation++;
|
|
49
|
+
const resolve = this.resolve;
|
|
50
|
+
this.resolve = undefined;
|
|
51
|
+
this.pending = undefined;
|
|
52
|
+
this.open = false;
|
|
53
|
+
resolve?.(restored);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return new Recovery();
|
|
57
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* @module types
|
|
6
6
|
*/
|
|
7
7
|
import type { HaiResult } from '@h-ai/core';
|
|
8
|
+
import type { Challenge } from 'altcha/lib';
|
|
8
9
|
import type { Snippet } from 'svelte';
|
|
9
10
|
import type { DataAttributes, FormLayoutOptions, FormText, InputProps, Size } from '../../types.js';
|
|
10
11
|
/**
|
|
@@ -106,6 +107,8 @@ export interface LoginFormData {
|
|
|
106
107
|
* ```
|
|
107
108
|
*/
|
|
108
109
|
export interface LoginFormProps extends FormLayoutOptions, DataAttributes {
|
|
110
|
+
/** 初始登录标识;原地恢复时预填原用户名,仍走正常鉴别。 */
|
|
111
|
+
initialIdentifier?: string;
|
|
109
112
|
/** 实际可用的方式;空数组表示无可用登录方式。 */
|
|
110
113
|
methods?: AuthLoginMethod[];
|
|
111
114
|
/** 验证码长度 */
|
|
@@ -238,6 +241,21 @@ export interface ChangePasswordFormData {
|
|
|
238
241
|
newPassword: string;
|
|
239
242
|
confirmPassword: string;
|
|
240
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* 敏感操作再鉴别对话框属性;宿主只在服务端选定操作前请求密码。
|
|
246
|
+
* @example
|
|
247
|
+
* ```ts
|
|
248
|
+
* import type { ReauthenticationDialogProps } from '@h-ai/ui'
|
|
249
|
+
* const props: ReauthenticationDialogProps = { open: false, onsubmit: async (password) => { void password }, onclose: () => {} }
|
|
250
|
+
* ```
|
|
251
|
+
*/
|
|
252
|
+
export interface ReauthenticationDialogProps {
|
|
253
|
+
open: boolean;
|
|
254
|
+
loading?: boolean;
|
|
255
|
+
error?: string;
|
|
256
|
+
onsubmit: (password: string) => void | Promise<void>;
|
|
257
|
+
onclose: () => void;
|
|
258
|
+
}
|
|
241
259
|
/**
|
|
242
260
|
* 修改密码表单属性
|
|
243
261
|
*
|
|
@@ -408,6 +426,8 @@ export interface PasswordPolicy {
|
|
|
408
426
|
requireLowercase: boolean;
|
|
409
427
|
requireNumber: boolean;
|
|
410
428
|
requireSpecialChar: boolean;
|
|
429
|
+
/** 至少满足的字符类别数;0 或未提供时仅应用各项独立要求。 */
|
|
430
|
+
minCharacterClasses?: number;
|
|
411
431
|
}
|
|
412
432
|
/**
|
|
413
433
|
* 仅消费安全公开配置,不能将 iam.config 或连接密钥传入浏览器。
|
|
@@ -431,6 +451,9 @@ export interface PasswordPolicy {
|
|
|
431
451
|
* ```
|
|
432
452
|
*/
|
|
433
453
|
export interface AuthPanelConfig {
|
|
454
|
+
captcha?: {
|
|
455
|
+
enabled: boolean;
|
|
456
|
+
};
|
|
434
457
|
/** 只有已启用且具备运行时依赖的方式才应为 true。 */
|
|
435
458
|
login: {
|
|
436
459
|
password: boolean;
|
|
@@ -488,12 +511,21 @@ export interface AuthPanelConfig {
|
|
|
488
511
|
* ```
|
|
489
512
|
*/
|
|
490
513
|
export interface AuthPanelActions {
|
|
514
|
+
/** 仅启用交互挑战时需要;动作返回可公开挑战,签名秘密保留在服务端。 */
|
|
515
|
+
createCaptcha?: (input: {
|
|
516
|
+
operation: 'login' | 'register' | 'sendOtp' | 'passwordReset' | 'renewPassword';
|
|
517
|
+
}) => Promise<HaiResult<{
|
|
518
|
+
id: string;
|
|
519
|
+
challenge: Challenge;
|
|
520
|
+
}>>;
|
|
491
521
|
/** password/ldap 使用 password,email/sms 使用 code;成功后由工厂保存凭证。 */
|
|
492
522
|
login: (input: {
|
|
493
523
|
identifier: string;
|
|
494
524
|
password: string;
|
|
495
525
|
method?: AuthLoginMethod;
|
|
496
526
|
code?: string;
|
|
527
|
+
captcha?: string;
|
|
528
|
+
expectedUserId?: string;
|
|
497
529
|
}) => Promise<HaiResult<unknown>>;
|
|
498
530
|
/** 注册并登录;禁用新账户的待启用状态由面板单独提示。 */
|
|
499
531
|
register: (input: {
|
|
@@ -502,10 +534,22 @@ export interface AuthPanelActions {
|
|
|
502
534
|
email?: string;
|
|
503
535
|
phone?: string;
|
|
504
536
|
displayName?: string;
|
|
537
|
+
captcha?: string;
|
|
538
|
+
}) => Promise<HaiResult<unknown>>;
|
|
539
|
+
sendOtp: (identifier: string, options?: {
|
|
540
|
+
captcha?: string;
|
|
541
|
+
}) => Promise<HaiResult<unknown>>;
|
|
542
|
+
requestPasswordReset: (identifier: string, options?: {
|
|
543
|
+
captcha?: string;
|
|
505
544
|
}) => Promise<HaiResult<unknown>>;
|
|
506
|
-
sendOtp: (identifier: string) => Promise<HaiResult<unknown>>;
|
|
507
|
-
requestPasswordReset: (identifier: string) => Promise<HaiResult<unknown>>;
|
|
508
545
|
confirmPasswordReset: (token: string, newPassword: string) => Promise<HaiResult<unknown>>;
|
|
546
|
+
/** 首次或密码过期时,验证原密码并换新;完成后重新登录。 */
|
|
547
|
+
renewPassword?: (input: {
|
|
548
|
+
identifier: string;
|
|
549
|
+
password: string;
|
|
550
|
+
newPassword: string;
|
|
551
|
+
captcha?: string;
|
|
552
|
+
}) => Promise<HaiResult<unknown>>;
|
|
509
553
|
}
|
|
510
554
|
/**
|
|
511
555
|
* AuthPanel 的初始页面;未传独立路由时由组件内部导航。
|
|
@@ -516,7 +560,7 @@ export interface AuthPanelActions {
|
|
|
516
560
|
* const example: AuthPanelMode = 'login'
|
|
517
561
|
* ```
|
|
518
562
|
*/
|
|
519
|
-
export type AuthPanelMode = 'login' | 'register' | 'forgot' | 'reset';
|
|
563
|
+
export type AuthPanelMode = 'login' | 'register' | 'forgot' | 'reset' | 'renew';
|
|
520
564
|
/**
|
|
521
565
|
* 配置驱动认证场景;网络、通知和令牌存储由应用注入 actions。
|
|
522
566
|
*
|
|
@@ -539,6 +583,10 @@ export type AuthPanelMode = 'login' | 'register' | 'forgot' | 'reset';
|
|
|
539
583
|
* ```
|
|
540
584
|
*/
|
|
541
585
|
export interface AuthPanelProps extends FormLayoutOptions, DataAttributes {
|
|
586
|
+
/** 嵌入弹窗等已有布局,省略整页背景和重复标题。 */
|
|
587
|
+
embedded?: boolean;
|
|
588
|
+
/** 登录标识初始值;不能替代服务端主体约束。 */
|
|
589
|
+
initialIdentifier?: string;
|
|
542
590
|
/** 未取得配置时显示加载状态,只消费 IAM 的公开配置。 */
|
|
543
591
|
config: AuthPanelConfig | null;
|
|
544
592
|
/** 由 Kit 或 API client 提供标准动作,组件不处理底层传输。 */
|
package/dist/messages/en-US.json
CHANGED
|
@@ -350,6 +350,7 @@
|
|
|
350
350
|
"auth_unavailable": "This authentication feature is unavailable.",
|
|
351
351
|
"auth_reset_sent": "If the account exists, a reset notification has been sent. Check your email or SMS.",
|
|
352
352
|
"auth_reset_done": "Password reset. Sign in with your new password.",
|
|
353
|
+
"auth_renew_title": "Update your sign-in password",
|
|
353
354
|
"auth_have_token": "I have a reset token",
|
|
354
355
|
"auth_brand": "Account center",
|
|
355
356
|
"password_policy_length": "Use {min}–{max} characters",
|
|
@@ -357,6 +358,7 @@
|
|
|
357
358
|
"password_policy_lowercase": "Include lowercase letters",
|
|
358
359
|
"password_policy_number": "Include numbers",
|
|
359
360
|
"password_policy_special": "Include special characters",
|
|
361
|
+
"password_policy_classes": "Include at least {count} of uppercase, lowercase, numbers and special characters",
|
|
360
362
|
"guide_welcome": "Welcome",
|
|
361
363
|
"guide_start": "Start tour",
|
|
362
364
|
"guide_later": "Remind me later",
|
|
@@ -421,6 +423,9 @@
|
|
|
421
423
|
"feedback_processing": "Processing status",
|
|
422
424
|
"feedback_collection": "Collection status",
|
|
423
425
|
"feedback_notification": "Notification status",
|
|
426
|
+
"feedback_webhook": "Webhook",
|
|
427
|
+
"feedback_business": "Business evidence",
|
|
428
|
+
"feedback_attempts": "Attempts",
|
|
424
429
|
"feedback_notification_pending": "Notification pending",
|
|
425
430
|
"feedback_notification_sending": "Sending notification",
|
|
426
431
|
"feedback_notification_sent": "Accepted by notification channel",
|
|
@@ -478,5 +483,18 @@
|
|
|
478
483
|
"feedback_notification_disabled": "Notifications disabled",
|
|
479
484
|
"feedback_capacity_hint": "Attachments {used}/{total} MiB · {single} MiB each · up to {count}",
|
|
480
485
|
"json_viewer_copy": "Copy",
|
|
481
|
-
"json_viewer_copied": "Copied"
|
|
486
|
+
"json_viewer_copied": "Copied",
|
|
487
|
+
"auth_captcha_error": "Security check is incomplete or unavailable. Try again.",
|
|
488
|
+
"auth_captcha_verifying": "Verifying security challenge",
|
|
489
|
+
"reauthentication_title": "Verify your identity again",
|
|
490
|
+
"reauthentication_hint": "You are signed in. Enter this account's password again to continue this sensitive action. Canceling will not submit it.",
|
|
491
|
+
"reauthentication_password": "Current password",
|
|
492
|
+
"reauthentication_confirm": "Verify and continue",
|
|
493
|
+
"session_recovery_title": "Session expired — sign in again",
|
|
494
|
+
"session_recovery_hint": "Your page and input are preserved. Sign in to the same account using the normal controls to continue the rejected operation.",
|
|
495
|
+
"session_recovery_later": "Sign in later",
|
|
496
|
+
"session_recovery_account_error": "Sign in to the original account. The pending action has not continued.",
|
|
497
|
+
"sensitive_operations_label": "Operation IDs requiring reauthentication",
|
|
498
|
+
"sensitive_operations_hint": "One operation ID per line, matching the server guard. Database and file rules are combined. Clearing removes only this permission’s rules. The master switch must be enabled.",
|
|
499
|
+
"sensitive_operations_invalid": "Use at most 1000 operation IDs, each no longer than 128 characters."
|
|
482
500
|
}
|
package/dist/messages/ja-JP.json
CHANGED
|
@@ -350,6 +350,7 @@
|
|
|
350
350
|
"auth_unavailable": "この認証機能は利用できません。",
|
|
351
351
|
"auth_reset_sent": "アカウントが存在する場合、リセット通知を送信しました。メールまたはSMSをご確認ください。",
|
|
352
352
|
"auth_reset_done": "パスワードをリセットしました。新しいパスワードでログインしてください。",
|
|
353
|
+
"auth_renew_title": "ログインパスワードの更新",
|
|
353
354
|
"auth_have_token": "リセットトークンを持っています",
|
|
354
355
|
"auth_brand": "アカウントセンター",
|
|
355
356
|
"password_policy_length": "{min}~{max}文字で入力",
|
|
@@ -357,6 +358,7 @@
|
|
|
357
358
|
"password_policy_lowercase": "英小文字を含める",
|
|
358
359
|
"password_policy_number": "数字を含める",
|
|
359
360
|
"password_policy_special": "特殊文字を含める",
|
|
361
|
+
"password_policy_classes": "大文字、小文字、数字、特殊文字のうち {count} 種類以上を含める",
|
|
360
362
|
"guide_welcome": "ようこそ",
|
|
361
363
|
"guide_start": "ツアーを開始",
|
|
362
364
|
"guide_later": "後で通知",
|
|
@@ -421,6 +423,9 @@
|
|
|
421
423
|
"feedback_processing": "処理状況",
|
|
422
424
|
"feedback_collection": "収集状況",
|
|
423
425
|
"feedback_notification": "通知状況",
|
|
426
|
+
"feedback_webhook": "Webhook コールバック",
|
|
427
|
+
"feedback_business": "業務情報",
|
|
428
|
+
"feedback_attempts": "試行回数",
|
|
424
429
|
"feedback_notification_pending": "通知待ち",
|
|
425
430
|
"feedback_notification_sending": "送信中",
|
|
426
431
|
"feedback_notification_sent": "通知チャネルで受理済み",
|
|
@@ -478,5 +483,18 @@
|
|
|
478
483
|
"feedback_notification_disabled": "通知は無効です",
|
|
479
484
|
"feedback_capacity_hint": "添付 {used}/{total} MiB · 各 {single} MiB まで · 最大 {count} 件",
|
|
480
485
|
"json_viewer_copy": "コピー",
|
|
481
|
-
"json_viewer_copied": "コピーしました"
|
|
486
|
+
"json_viewer_copied": "コピーしました",
|
|
487
|
+
"auth_captcha_error": "セキュリティ確認が未完了または利用できません。再試行してください",
|
|
488
|
+
"auth_captcha_verifying": "セキュリティ確認中",
|
|
489
|
+
"reauthentication_title": "本人確認を再実行",
|
|
490
|
+
"reauthentication_hint": "現在のアカウントでログイン済みです。この重要な操作を続けるには、同じアカウントのパスワードを再入力してください。キャンセルすると操作は送信されません。",
|
|
491
|
+
"reauthentication_password": "現在のパスワード",
|
|
492
|
+
"reauthentication_confirm": "認証して続行",
|
|
493
|
+
"session_recovery_title": "セッションの期限切れ・再ログイン",
|
|
494
|
+
"session_recovery_hint": "ページと入力内容を保持しています。通常の認証で元のアカウントにログインすると、拒否された操作を続けます。",
|
|
495
|
+
"session_recovery_later": "後でログイン",
|
|
496
|
+
"session_recovery_account_error": "元のアカウントでログインしてください。操作はまだ続行していません。",
|
|
497
|
+
"sensitive_operations_label": "再認証が必要な操作 ID",
|
|
498
|
+
"sensitive_operations_hint": "サーバーのガードと一致する操作 ID を1行ずつ入力します。DB とファイルの規則は和集合です。空欄はこの権限の規則だけを削除します。主スイッチが有効な場合に適用されます。",
|
|
499
|
+
"sensitive_operations_invalid": "操作 ID は最大1000件、各128文字以内です。"
|
|
482
500
|
}
|
package/dist/messages/zh-CN.json
CHANGED
|
@@ -350,6 +350,7 @@
|
|
|
350
350
|
"auth_unavailable": "此认证功能暂不可用",
|
|
351
351
|
"auth_reset_sent": "如果账号存在,重置通知已发送,请查看邮箱或短信。",
|
|
352
352
|
"auth_reset_done": "密码已重置,请使用新密码登录。",
|
|
353
|
+
"auth_renew_title": "更新登录密码",
|
|
353
354
|
"auth_have_token": "已有重置令牌",
|
|
354
355
|
"auth_brand": "账号中心",
|
|
355
356
|
"password_policy_length": "密码长度为 {min}–{max} 个字符",
|
|
@@ -357,6 +358,7 @@
|
|
|
357
358
|
"password_policy_lowercase": "包含小写字母",
|
|
358
359
|
"password_policy_number": "包含数字",
|
|
359
360
|
"password_policy_special": "包含特殊字符",
|
|
361
|
+
"password_policy_classes": "大写、小写、数字、特殊字符中至少满足 {count} 类",
|
|
360
362
|
"guide_welcome": "欢迎使用",
|
|
361
363
|
"guide_start": "开始引导",
|
|
362
364
|
"guide_later": "稍后提醒",
|
|
@@ -421,6 +423,9 @@
|
|
|
421
423
|
"feedback_processing": "处理状态",
|
|
422
424
|
"feedback_collection": "采集状态",
|
|
423
425
|
"feedback_notification": "通知状态",
|
|
426
|
+
"feedback_webhook": "Webhook 回调",
|
|
427
|
+
"feedback_business": "业务信息",
|
|
428
|
+
"feedback_attempts": "尝试次数",
|
|
424
429
|
"feedback_notification_pending": "等待通知",
|
|
425
430
|
"feedback_notification_sending": "正在发送",
|
|
426
431
|
"feedback_notification_sent": "通知通道已受理",
|
|
@@ -478,5 +483,18 @@
|
|
|
478
483
|
"feedback_notification_disabled": "未启用通知",
|
|
479
484
|
"feedback_capacity_hint": "附件 {used}/{total} MiB · 单个最多 {single} MiB · 最多 {count} 项",
|
|
480
485
|
"json_viewer_copy": "复制",
|
|
481
|
-
"json_viewer_copied": "已复制"
|
|
486
|
+
"json_viewer_copied": "已复制",
|
|
487
|
+
"auth_captcha_error": "安全验证未完成或暂不可用,请重试",
|
|
488
|
+
"auth_captcha_verifying": "正在进行安全验证",
|
|
489
|
+
"reauthentication_title": "二次身份验证",
|
|
490
|
+
"reauthentication_hint": "当前账号已登录。请再次输入当前账号的密码,验证后继续本次敏感操作;取消不会提交操作。",
|
|
491
|
+
"reauthentication_password": "当前密码",
|
|
492
|
+
"reauthentication_confirm": "验证并继续",
|
|
493
|
+
"session_recovery_title": "会话已过期,请重新登录",
|
|
494
|
+
"session_recovery_hint": "当前页面和输入已保留。请按正常登录流程验证原账号,成功后继续刚才未提交的操作。",
|
|
495
|
+
"session_recovery_later": "稍后登录",
|
|
496
|
+
"session_recovery_account_error": "请使用原账号完成登录,当前操作尚未继续。",
|
|
497
|
+
"sensitive_operations_label": "需要重新认证的操作 ID",
|
|
498
|
+
"sensitive_operations_hint": "每行一个操作 ID,与服务端守卫一致。数据库与文件配置取并集;清空只移除本权限的规则。主开关关闭时不要求二次认证。",
|
|
499
|
+
"sensitive_operations_invalid": "最多 1000 项,每个操作 ID 不超过 128 字符。"
|
|
482
500
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -160,8 +160,8 @@ export interface InputProps extends DataAttributes {
|
|
|
160
160
|
value?: string;
|
|
161
161
|
/** 占位符 */
|
|
162
162
|
placeholder?: string;
|
|
163
|
-
/**
|
|
164
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';
|
|
163
|
+
/** 类型;datetime-local 使用浏览器本地时区,服务层应转换为明确的时间戳。 */
|
|
164
|
+
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'datetime-local';
|
|
165
165
|
/** 尺寸 */
|
|
166
166
|
size?: Size;
|
|
167
167
|
/** 是否禁用 */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-ai/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-alpha.
|
|
4
|
+
"version": "0.1.0-alpha.74",
|
|
5
5
|
"description": "Hai Framework UI component library for Svelte 5 Runes.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"svelte": "./dist/index.js",
|
|
@@ -119,10 +119,11 @@
|
|
|
119
119
|
"svelte": "^5.57.2"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@h-ai/core": "0.1.0-alpha.
|
|
122
|
+
"@h-ai/core": "0.1.0-alpha.74",
|
|
123
123
|
"@internationalized/date": "^3.12.4",
|
|
124
124
|
"@rrweb/replay": "^2.1.7",
|
|
125
125
|
"@shikijs/langs": "^4.5.0",
|
|
126
|
+
"altcha": "^3.5.0",
|
|
126
127
|
"bits-ui": "^2.19.5",
|
|
127
128
|
"driver.js": "1.9.0",
|
|
128
129
|
"html2canvas": "^1.4.1",
|