@michengai/dsh-automation 0.1.48 → 0.1.49
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/CHANGELOG.md +5 -0
- package/CHANGELOG.zh-CN.md +5 -0
- package/lib/client.js +38 -38
- package/lib/client.js.map +2 -2
- package/lib/types/client/native-session-menu.d.ts +11 -1
- package/package.json +1 -1
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import type { CSSProperties } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import type { Translate } from './contracts.js';
|
|
3
|
+
type SlotRenderer = (name: string, props?: Record<string, unknown>, opts?: {
|
|
4
|
+
readonly hookContext?: unknown;
|
|
5
|
+
readonly only?: string;
|
|
6
|
+
}) => ReactNode;
|
|
7
|
+
/** 旧宿主的 renderSlot 在条目未声明该子插槽时抛 SlotOwnershipError。接住它,避免定时页整页失败。 */
|
|
8
|
+
export declare function renderOwnedSlot(renderSlot: SlotRenderer | undefined, name: string, props?: Record<string, unknown>, opts?: {
|
|
9
|
+
readonly hookContext?: unknown;
|
|
10
|
+
readonly only?: string;
|
|
11
|
+
}): ReactNode;
|
|
3
12
|
export declare function nativeSessionHoverStyle(row: {
|
|
4
13
|
readonly right: number;
|
|
5
14
|
readonly top: number;
|
|
@@ -37,3 +46,4 @@ export declare function sessionRowTime(value: string, t: Translate, now?: number
|
|
|
37
46
|
/** 悬停卡用官方 hoverTimeLabel:刚刚保持原样,其余套「前」。 */
|
|
38
47
|
export declare function sessionHoverTime(value: string, t: Translate, now?: number): string;
|
|
39
48
|
export declare function relativeTime(value: string, t: Translate, now?: number): string;
|
|
49
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-automation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49",
|
|
4
4
|
"description": "DSH Automation — 在独立 DSH Session 中按计划执行和管理编码任务 · Schedule and manage coding tasks in isolated DSH sessions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@11.22.0",
|