Skip to content

Commit 24aedc0

Browse files
committed
chore: update tsnapi
1 parent 478fc0f commit 24aedc0

22 files changed

Lines changed: 1183 additions & 315 deletions

tests/__snapshots__/tsnapi/@devframes/hub/index.snapshot.d.ts

Lines changed: 355 additions & 63 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
/**
22
* Generated by tsnapi — public API snapshot of `@devframes/hub`
33
*/
4-
// #region Other
5-
export { DEFAULT_CATEGORIES_ORDER }
6-
export { defineCommand }
7-
export { defineDockEntry }
8-
export { defineHubRpcFunction }
9-
export { defineJsonRenderSpec }
4+
// #region Functions
5+
export function defineCommand(_) {}
6+
export function defineDockEntry(_) {}
7+
export function defineJsonRenderSpec(_) {}
8+
// #endregion
9+
10+
// #region Variables
11+
export var DEFAULT_CATEGORIES_ORDER /* const */
12+
export var defineHubRpcFunction /* const */
1013
// #endregion

tests/__snapshots__/tsnapi/@devframes/json-render-ui/index.snapshot.d.ts

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface JsonRenderDockRendererOptions {
3232
// #endregion
3333

3434
// #region Types
35+
export type JrComponent<P = Record<string, unknown>> = (_: BaseComponentProps<P>) => VNodeChild;
3536
export type JsonRenderDockRenderer = (_: JsonRenderDockMountOptions) => Promise<{
3637
dispose?: () => void;
3738
}>;
@@ -49,8 +50,17 @@ export declare function sanitizeSpec(_: Spec, _?: ComponentRegistry): Spec;
4950
// #endregion
5051

5152
// #region Variables
53+
export declare const Badge: JrComponent<BadgeProps>;
5254
export declare const baseRegistry: ComponentRegistry;
55+
export declare const Button: JrComponent<ButtonProps>;
56+
export declare const Card: JrComponent<CardProps>;
57+
export declare const CodeBlock: JrComponent<CodeBlockProps>;
58+
export declare const DataTable: JrComponent<DataTableProps>;
59+
export declare const Divider: JrComponent<{
60+
label?: string;
61+
}>;
5362
export declare const ERROR_COMPONENT_TYPE: string;
63+
export declare const Icon: JrComponent<IconProps>;
5464
export declare const JsonRenderView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5565
spec: {
5666
type: PropType<Spec | null>;
@@ -119,23 +129,12 @@ export declare const JsonRenderView: import("vue").DefineComponent<import("vue")
119129
loading: boolean;
120130
connectionError: string | null;
121131
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
132+
export declare const KeyValueTable: JrComponent<KeyValueTableProps>;
133+
export declare const Progress: JrComponent<ProgressProps>;
134+
export declare const Stack: JrComponent<StackProps>;
135+
export declare const Switch: JrComponent<SwitchProps>;
136+
export declare const Text: JrComponent<TextProps>;
137+
export declare const TextInput: JrComponent<TextInputProps>;
138+
export declare const Tree: JrComponent<TreeProps>;
122139
export declare const UNSUPPORTED_COMPONENT_TYPE: string;
123-
// #endregion
124-
125-
// #region Other
126-
export { Badge }
127-
export { Button }
128-
export { Card }
129-
export { CodeBlock }
130-
export { DataTable }
131-
export { Divider }
132-
export { Icon }
133-
export { JrComponent }
134-
export { KeyValueTable }
135-
export { Progress }
136-
export { Stack }
137-
export { Switch }
138-
export { Text }
139-
export { TextInput }
140-
export { Tree }
141140
// #endregion

tests/__snapshots__/tsnapi/@devframes/json-render-ui/index.snapshot.js

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,22 @@ export function sanitizeSpec(_, _) {}
99
// #endregion
1010

1111
// #region Variables
12+
export var Badge /* const */
1213
export var baseRegistry /* const */
14+
export var Button /* const */
15+
export var Card /* const */
16+
export var CodeBlock /* const */
17+
export var DataTable /* const */
18+
export var Divider /* const */
1319
export var ERROR_COMPONENT_TYPE /* const */
20+
export var Icon /* const */
1421
export var JsonRenderView /* const */
22+
export var KeyValueTable /* const */
23+
export var Progress /* const */
24+
export var Stack /* const */
25+
export var Switch /* const */
26+
export var Text /* const */
27+
export var TextInput /* const */
28+
export var Tree /* const */
1529
export var UNSUPPORTED_COMPONENT_TYPE /* const */
16-
// #endregion
17-
18-
// #region Other
19-
export { Badge }
20-
export { Button }
21-
export { Card }
22-
export { CodeBlock }
23-
export { DataTable }
24-
export { Divider }
25-
export { Icon }
26-
export { KeyValueTable }
27-
export { Progress }
28-
export { Stack }
29-
export { Switch }
30-
export { Text }
31-
export { TextInput }
32-
export { Tree }
3330
// #endregion

tests/__snapshots__/tsnapi/@devframes/json-render/index.snapshot.d.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,28 @@ export interface JsonRenderIndexEntry {
88
stateKey: string;
99
title: string;
1010
}
11+
export interface JsonRenderView {
12+
readonly id: string;
13+
readonly title: string;
14+
readonly ref: JsonRenderViewStateRef;
15+
update: (_: DevframeJsonRenderSpec) => void;
16+
patchState: (_: JsonRenderStatePatch[]) => void;
17+
value: () => DevframeJsonRenderSpec;
18+
dispose: () => void;
19+
}
20+
export interface JsonRenderViewInlineRef {
21+
spec: DevframeJsonRenderSpec;
22+
}
23+
export interface JsonRenderViewStateRef {
24+
stateKey: string;
25+
}
1126
// #endregion
1227

1328
// #region Types
1429
export type BaseComponentName = keyof typeof basePropSchemas;
30+
export type DevframeJsonRenderSpec = Spec;
1531
export type JsonRenderIndex = Record<string, JsonRenderIndexEntry>;
32+
export type JsonRenderViewRef = JsonRenderViewStateRef | JsonRenderViewInlineRef;
1633
// #endregion
1734

1835
// #region Variables
@@ -330,12 +347,7 @@ export declare const TreePropsSchema: z.ZodObject<{
330347

331348
// #region Other
332349
export { Catalog }
333-
export { DevframeJsonRenderSpec }
334350
export { InferComponentProps }
335-
export { JsonRenderView }
336-
export { JsonRenderViewInlineRef }
337-
export { JsonRenderViewRef }
338-
export { JsonRenderViewStateRef }
339351
export { Spec }
340352
export { StateModel }
341353
export { StateStore }

tests/__snapshots__/tsnapi/@devframes/json-render/index.snapshot.js

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@
22
* Generated by tsnapi — public API snapshot of `@devframes/json-render`
33
*/
44
// #region Variables
5+
export var BadgePropsSchema /* const */
56
export var baseCatalog /* const */
7+
export var baseComponentNames /* const */
8+
export var basePropSchemas /* const */
69
export var baseSchema /* const */
7-
// #endregion
8-
9-
// #region Other
10-
export { BadgePropsSchema }
11-
export { baseComponentNames }
12-
export { basePropSchemas }
13-
export { ButtonPropsSchema }
14-
export { CardPropsSchema }
15-
export { CodeBlockPropsSchema }
16-
export { DataTablePropsSchema }
17-
export { DividerPropsSchema }
18-
export { IconPropsSchema }
19-
export { JSON_RENDER_INDEX_KEY }
20-
export { KeyValueTablePropsSchema }
21-
export { ProgressPropsSchema }
22-
export { StackPropsSchema }
23-
export { SwitchPropsSchema }
24-
export { TextInputPropsSchema }
25-
export { TextPropsSchema }
26-
export { TreePropsSchema }
10+
export var ButtonPropsSchema /* const */
11+
export var CardPropsSchema /* const */
12+
export var CodeBlockPropsSchema /* const */
13+
export var DataTablePropsSchema /* const */
14+
export var DividerPropsSchema /* const */
15+
export var IconPropsSchema /* const */
16+
export var JSON_RENDER_INDEX_KEY /* const */
17+
export var KeyValueTablePropsSchema /* const */
18+
export var ProgressPropsSchema /* const */
19+
export var StackPropsSchema /* const */
20+
export var SwitchPropsSchema /* const */
21+
export var TextInputPropsSchema /* const */
22+
export var TextPropsSchema /* const */
23+
export var TreePropsSchema /* const */
2724
// #endregion

tests/__snapshots__/tsnapi/@devframes/plugin-a11y/index.snapshot.d.ts

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,32 @@ export interface A11yDevframeOptions {
99
basePath?: string;
1010
port?: number;
1111
}
12+
export interface ScanReport {
13+
url: string;
14+
scannedAt: number;
15+
engine: string;
16+
violations: Violation[];
17+
counts: Record<Impact, number>;
18+
}
19+
export interface Violation {
20+
ruleId: string;
21+
impact: Impact;
22+
help: string;
23+
description: string;
24+
helpUrl: string;
25+
tags?: string[];
26+
nodes: ViolationNode[];
27+
}
28+
export interface ViolationNode {
29+
id: string;
30+
target: string[];
31+
html: string;
32+
failureSummary: string;
33+
}
34+
// #endregion
35+
36+
// #region Types
37+
export type Impact = (typeof IMPACT_ORDER)[number];
1238
// #endregion
1339

1440
// #region Functions
@@ -22,11 +48,4 @@ export declare const a11yAgentBundlePath: string;
2248
// #region Default Export
2349
declare const _default: DevframeDefinition;
2450
export default _default
25-
// #endregion
26-
27-
// #region Other
28-
export { Impact }
29-
export { ScanReport }
30-
export { Violation }
31-
export { ViolationNode }
3251
// #endregion
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
/**
22
* Generated by tsnapi — public API snapshot of `@devframes/plugin-a11y`
33
*/
4-
// #region Default Export
5-
export default a11yDevframe
4+
// #region Functions
5+
export function createA11yDevframe(_) {}
6+
// #endregion
7+
8+
// #region Variables
9+
export var a11yAgentBundlePath /* const */
610
// #endregion
711

8-
// #region Other
9-
export { a11yAgentBundlePath }
10-
export { createA11yDevframe }
12+
// #region Default Export
13+
var _default /* const */
14+
export default _default
1115
// #endregion
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
/**
22
* Generated by tsnapi — public API snapshot of `@devframes/plugin-code-server/constants`
33
*/
4-
// #region Other
5-
export { DEFAULT_CODE_SERVER_PORT }
6-
export { DEFAULT_PORT }
7-
export { DEFAULT_START_TIMEOUT }
8-
export { getCookieSessionName }
9-
export { PLUGIN_ID }
10-
export { SESSION_COOKIE_BASE }
11-
export { STATE_KEY }
12-
export { TERMINAL_SESSION_ICON }
13-
export { TERMINAL_SESSION_TITLE }
4+
// #region Functions
5+
export declare function getCookieSessionName(_?: string): string;
6+
// #endregion
7+
8+
// #region Variables
9+
export declare const DEFAULT_CODE_SERVER_PORT: number;
10+
export declare const DEFAULT_PORT: number;
11+
export declare const DEFAULT_START_TIMEOUT: number;
12+
export declare const PLUGIN_ID: string;
13+
export declare const SESSION_COOKIE_BASE: string;
14+
export declare const STATE_KEY: string;
15+
export declare const TERMINAL_SESSION_ICON: string;
16+
export declare const TERMINAL_SESSION_TITLE: string;
1417
// #endregion

0 commit comments

Comments
 (0)