@clusterenvision/ui-framework 1.0.0
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/LICENSE +21 -0
- package/README.md +295 -0
- package/dist/ai-assistant-Db002XYC.d.ts +92 -0
- package/dist/ai-assistant-EobSUV70.d.cts +92 -0
- package/dist/browser-DnHpnWwE.d.cts +354 -0
- package/dist/browser-Dx4oKf5e.d.ts +354 -0
- package/dist/browser-signals-07qodpYT.d.cts +66 -0
- package/dist/browser-signals-07qodpYT.d.ts +66 -0
- package/dist/browser-signals.cjs +32 -0
- package/dist/browser-signals.cjs.map +1 -0
- package/dist/browser-signals.d.cts +1 -0
- package/dist/browser-signals.d.ts +1 -0
- package/dist/browser-signals.js +3 -0
- package/dist/browser-signals.js.map +1 -0
- package/dist/browser.cjs +197 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +13 -0
- package/dist/browser.d.ts +13 -0
- package/dist/browser.js +12 -0
- package/dist/browser.js.map +1 -0
- package/dist/chunk-22HQL2Y4.js +568 -0
- package/dist/chunk-22HQL2Y4.js.map +1 -0
- package/dist/chunk-3ZBRNFEE.js +1525 -0
- package/dist/chunk-3ZBRNFEE.js.map +1 -0
- package/dist/chunk-4HRORR2Q.js +1953 -0
- package/dist/chunk-4HRORR2Q.js.map +1 -0
- package/dist/chunk-4L3UXVL5.cjs +68 -0
- package/dist/chunk-4L3UXVL5.cjs.map +1 -0
- package/dist/chunk-6BYWFGQY.cjs +226 -0
- package/dist/chunk-6BYWFGQY.cjs.map +1 -0
- package/dist/chunk-7SCIB5HP.js +57 -0
- package/dist/chunk-7SCIB5HP.js.map +1 -0
- package/dist/chunk-BBAUALNU.js +888 -0
- package/dist/chunk-BBAUALNU.js.map +1 -0
- package/dist/chunk-CHLDE4JQ.js +715 -0
- package/dist/chunk-CHLDE4JQ.js.map +1 -0
- package/dist/chunk-CXTAUXLG.cjs +71 -0
- package/dist/chunk-CXTAUXLG.cjs.map +1 -0
- package/dist/chunk-D2USIT6V.js +121 -0
- package/dist/chunk-D2USIT6V.js.map +1 -0
- package/dist/chunk-D3H5CGVD.js +36 -0
- package/dist/chunk-D3H5CGVD.js.map +1 -0
- package/dist/chunk-DQBX75NJ.js +92 -0
- package/dist/chunk-DQBX75NJ.js.map +1 -0
- package/dist/chunk-DRPG2DFX.js +208 -0
- package/dist/chunk-DRPG2DFX.js.map +1 -0
- package/dist/chunk-EFOOXCY7.cjs +41 -0
- package/dist/chunk-EFOOXCY7.cjs.map +1 -0
- package/dist/chunk-FFCZSYC7.cjs +906 -0
- package/dist/chunk-FFCZSYC7.cjs.map +1 -0
- package/dist/chunk-FNXIYAET.cjs +1593 -0
- package/dist/chunk-FNXIYAET.cjs.map +1 -0
- package/dist/chunk-I6GNUM3P.cjs +63 -0
- package/dist/chunk-I6GNUM3P.cjs.map +1 -0
- package/dist/chunk-IHAMVLRY.js +129 -0
- package/dist/chunk-IHAMVLRY.js.map +1 -0
- package/dist/chunk-IRBUKIRF.cjs +133 -0
- package/dist/chunk-IRBUKIRF.cjs.map +1 -0
- package/dist/chunk-KPG5HAHK.cjs +97 -0
- package/dist/chunk-KPG5HAHK.cjs.map +1 -0
- package/dist/chunk-N7Q2ESLG.cjs +130 -0
- package/dist/chunk-N7Q2ESLG.cjs.map +1 -0
- package/dist/chunk-PFBEIFVS.js +180 -0
- package/dist/chunk-PFBEIFVS.js.map +1 -0
- package/dist/chunk-PVZVFICK.cjs +318 -0
- package/dist/chunk-PVZVFICK.cjs.map +1 -0
- package/dist/chunk-Q3KH6HMU.js +305 -0
- package/dist/chunk-Q3KH6HMU.js.map +1 -0
- package/dist/chunk-QPAAV32J.cjs +1985 -0
- package/dist/chunk-QPAAV32J.cjs.map +1 -0
- package/dist/chunk-R6XQUMWT.cjs +61 -0
- package/dist/chunk-R6XQUMWT.cjs.map +1 -0
- package/dist/chunk-SA5UD5B6.js +92 -0
- package/dist/chunk-SA5UD5B6.js.map +1 -0
- package/dist/chunk-SM35JOYD.cjs +211 -0
- package/dist/chunk-SM35JOYD.cjs.map +1 -0
- package/dist/chunk-SZQNIMYI.cjs +592 -0
- package/dist/chunk-SZQNIMYI.cjs.map +1 -0
- package/dist/chunk-T6T7QE4J.js +224 -0
- package/dist/chunk-T6T7QE4J.js.map +1 -0
- package/dist/chunk-TIF372DZ.js +65 -0
- package/dist/chunk-TIF372DZ.js.map +1 -0
- package/dist/chunk-V6JCOBGY.js +69 -0
- package/dist/chunk-V6JCOBGY.js.map +1 -0
- package/dist/chunk-VHUXNDW2.cjs +189 -0
- package/dist/chunk-VHUXNDW2.cjs.map +1 -0
- package/dist/chunk-W3LNNY3U.cjs +729 -0
- package/dist/chunk-W3LNNY3U.cjs.map +1 -0
- package/dist/chunk-ZUWSU4OA.js +61 -0
- package/dist/chunk-ZUWSU4OA.js.map +1 -0
- package/dist/chunk-ZWUA2LPB.cjs +103 -0
- package/dist/chunk-ZWUA2LPB.cjs.map +1 -0
- package/dist/cli/index.cjs +566 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +558 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/compiler/index.cjs +80 -0
- package/dist/compiler/index.cjs.map +1 -0
- package/dist/compiler/index.d.cts +130 -0
- package/dist/compiler/index.d.ts +130 -0
- package/dist/compiler/index.js +3 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/component-BVzvepw9.d.cts +90 -0
- package/dist/component-wTxZ2BPD.d.ts +90 -0
- package/dist/index-CpxDa60m.d.cts +644 -0
- package/dist/index-CpxDa60m.d.ts +644 -0
- package/dist/index.cjs +1356 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +165 -0
- package/dist/index.d.ts +165 -0
- package/dist/index.js +772 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/dom.cjs +102 -0
- package/dist/lib/dom.cjs.map +1 -0
- package/dist/lib/dom.d.cts +373 -0
- package/dist/lib/dom.d.ts +373 -0
- package/dist/lib/dom.js +3 -0
- package/dist/lib/dom.js.map +1 -0
- package/dist/lib/icons.cjs +20 -0
- package/dist/lib/icons.cjs.map +1 -0
- package/dist/lib/icons.d.cts +64 -0
- package/dist/lib/icons.d.ts +64 -0
- package/dist/lib/icons.js +3 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/lib/index.cjs +247 -0
- package/dist/lib/index.cjs.map +1 -0
- package/dist/lib/index.d.cts +30 -0
- package/dist/lib/index.d.ts +30 -0
- package/dist/lib/index.js +92 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/theme.cjs +56 -0
- package/dist/lib/theme.cjs.map +1 -0
- package/dist/lib/theme.d.cts +27 -0
- package/dist/lib/theme.d.ts +27 -0
- package/dist/lib/theme.js +3 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/router-B9kms5XQ.d.ts +124 -0
- package/dist/router-YnpW_sIK.d.cts +124 -0
- package/dist/runtime/adapters/angular.cjs +48 -0
- package/dist/runtime/adapters/angular.cjs.map +1 -0
- package/dist/runtime/adapters/angular.d.cts +38 -0
- package/dist/runtime/adapters/angular.d.ts +38 -0
- package/dist/runtime/adapters/angular.js +46 -0
- package/dist/runtime/adapters/angular.js.map +1 -0
- package/dist/runtime/adapters/react.cjs +41 -0
- package/dist/runtime/adapters/react.cjs.map +1 -0
- package/dist/runtime/adapters/react.d.cts +26 -0
- package/dist/runtime/adapters/react.d.ts +26 -0
- package/dist/runtime/adapters/react.js +39 -0
- package/dist/runtime/adapters/react.js.map +1 -0
- package/dist/runtime/adapters/vue.cjs +44 -0
- package/dist/runtime/adapters/vue.cjs.map +1 -0
- package/dist/runtime/adapters/vue.d.cts +37 -0
- package/dist/runtime/adapters/vue.d.ts +37 -0
- package/dist/runtime/adapters/vue.js +42 -0
- package/dist/runtime/adapters/vue.js.map +1 -0
- package/dist/runtime/components/ai-assistant.cjs +18 -0
- package/dist/runtime/components/ai-assistant.cjs.map +1 -0
- package/dist/runtime/components/ai-assistant.d.cts +8 -0
- package/dist/runtime/components/ai-assistant.d.ts +8 -0
- package/dist/runtime/components/ai-assistant.js +9 -0
- package/dist/runtime/components/ai-assistant.js.map +1 -0
- package/dist/runtime/components/ai-summary-card.cjs +18 -0
- package/dist/runtime/components/ai-summary-card.cjs.map +1 -0
- package/dist/runtime/components/ai-summary-card.d.cts +19 -0
- package/dist/runtime/components/ai-summary-card.d.ts +19 -0
- package/dist/runtime/components/ai-summary-card.js +9 -0
- package/dist/runtime/components/ai-summary-card.js.map +1 -0
- package/dist/runtime/router.cjs +429 -0
- package/dist/runtime/router.cjs.map +1 -0
- package/dist/runtime/router.d.cts +2 -0
- package/dist/runtime/router.d.ts +2 -0
- package/dist/runtime/router.js +421 -0
- package/dist/runtime/router.js.map +1 -0
- package/dist/runtime/server.cjs +125 -0
- package/dist/runtime/server.cjs.map +1 -0
- package/dist/runtime/server.d.cts +27 -0
- package/dist/runtime/server.d.ts +27 -0
- package/dist/runtime/server.js +117 -0
- package/dist/runtime/server.js.map +1 -0
- package/dist/runtime/workflow/index.cjs +282 -0
- package/dist/runtime/workflow/index.cjs.map +1 -0
- package/dist/runtime/workflow/index.d.cts +1 -0
- package/dist/runtime/workflow/index.d.ts +1 -0
- package/dist/runtime/workflow/index.js +5 -0
- package/dist/runtime/workflow/index.js.map +1 -0
- package/dist/tracing-DGdvMCEl.d.cts +109 -0
- package/dist/tracing-DGdvMCEl.d.ts +109 -0
- package/dist/types-C4RXXKfk.d.cts +76 -0
- package/dist/types-C4RXXKfk.d.ts +76 -0
- package/package.json +166 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import './component-wTxZ2BPD.js';
|
|
2
|
+
import { S as SignalAccessor, e as SignalsInspectorSnapshot } from './browser-signals-07qodpYT.js';
|
|
3
|
+
import { b as RuntimeErrorInfo, l as RouteHandlerResult, a as RouteMatch, g as RouteDefinition, R as Router } from './router-B9kms5XQ.js';
|
|
4
|
+
import './ai-assistant-Db002XYC.js';
|
|
5
|
+
import './runtime/adapters/angular.js';
|
|
6
|
+
import './runtime/adapters/react.js';
|
|
7
|
+
import './runtime/adapters/vue.js';
|
|
8
|
+
import './runtime/components/ai-summary-card.js';
|
|
9
|
+
|
|
10
|
+
type ValidationMessage = string;
|
|
11
|
+
interface ValidationContext<T = unknown> {
|
|
12
|
+
name: string;
|
|
13
|
+
value: T;
|
|
14
|
+
values: Record<string, unknown>;
|
|
15
|
+
touched: boolean;
|
|
16
|
+
}
|
|
17
|
+
type Validator<T> = (value: T, context: ValidationContext<T>) => ValidationMessage | null | Promise<ValidationMessage | null>;
|
|
18
|
+
interface FieldValidationState {
|
|
19
|
+
name: string;
|
|
20
|
+
valid: boolean;
|
|
21
|
+
errors: string[];
|
|
22
|
+
}
|
|
23
|
+
interface FieldControl<T> {
|
|
24
|
+
name: string;
|
|
25
|
+
value: SignalAccessor<T>;
|
|
26
|
+
errors: SignalAccessor<string[]>;
|
|
27
|
+
touched: SignalAccessor<boolean>;
|
|
28
|
+
setValue(value: T): void;
|
|
29
|
+
markTouched(): void;
|
|
30
|
+
validate(): Promise<boolean>;
|
|
31
|
+
validateWithState(): Promise<FieldValidationState>;
|
|
32
|
+
}
|
|
33
|
+
interface FieldArrayControl<T> extends FieldControl<T[]> {
|
|
34
|
+
append(value: T): void;
|
|
35
|
+
insert(index: number, value: T): void;
|
|
36
|
+
remove(index: number): void;
|
|
37
|
+
swap(indexA: number, indexB: number): void;
|
|
38
|
+
move(fromIndex: number, toIndex: number): void;
|
|
39
|
+
}
|
|
40
|
+
type FormErrorLeaf = string[];
|
|
41
|
+
type FormErrorValue = FormErrorLeaf | FormErrorMap | FormErrorValue[];
|
|
42
|
+
type FormErrorMap = Record<string, FormErrorValue>;
|
|
43
|
+
interface FormValidationResult {
|
|
44
|
+
valid: boolean;
|
|
45
|
+
errors: FormErrorMap;
|
|
46
|
+
fields: Record<string, FieldValidationState>;
|
|
47
|
+
}
|
|
48
|
+
interface RegisterOptions<T> {
|
|
49
|
+
initialValue: T;
|
|
50
|
+
validators?: Validator<T>[];
|
|
51
|
+
}
|
|
52
|
+
interface FormController {
|
|
53
|
+
register<T>(name: string, options: RegisterOptions<T>): FieldControl<T>;
|
|
54
|
+
registerArray<T>(name: string, options: RegisterOptions<T[]>): FieldArrayControl<T>;
|
|
55
|
+
handleSubmit<T extends Event = Event>(handler: (values: Record<string, unknown>, event?: T) => void | Promise<void>): (event?: T) => Promise<void>;
|
|
56
|
+
validate(): Promise<FormValidationResult>;
|
|
57
|
+
validateFields(names: string[]): Promise<FormValidationResult>;
|
|
58
|
+
values(): Record<string, unknown>;
|
|
59
|
+
errors(): FormErrorMap;
|
|
60
|
+
}
|
|
61
|
+
declare function createFormController(): FormController;
|
|
62
|
+
interface FormWizardStep {
|
|
63
|
+
id: string;
|
|
64
|
+
title?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
fields?: string[];
|
|
67
|
+
validate?: (form: FormController) => boolean | Promise<boolean>;
|
|
68
|
+
}
|
|
69
|
+
interface FormWizardController {
|
|
70
|
+
steps: FormWizardStep[];
|
|
71
|
+
currentIndex: SignalAccessor<number>;
|
|
72
|
+
currentStep: SignalAccessor<FormWizardStep>;
|
|
73
|
+
isFirst: SignalAccessor<boolean>;
|
|
74
|
+
isLast: SignalAccessor<boolean>;
|
|
75
|
+
goTo(step: number | string): void;
|
|
76
|
+
next(): Promise<boolean>;
|
|
77
|
+
previous(): void;
|
|
78
|
+
validateCurrent(): Promise<boolean>;
|
|
79
|
+
reset(step?: number | string): void;
|
|
80
|
+
}
|
|
81
|
+
declare function createFormWizard(form: FormController, steps: FormWizardStep[], initialStep?: number | string): FormWizardController;
|
|
82
|
+
|
|
83
|
+
type ResourceKey = string | number | boolean | null | undefined | ResourceKey[] | Record<string, ResourceKey>;
|
|
84
|
+
|
|
85
|
+
type ResourceStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
86
|
+
|
|
87
|
+
type ResourceErrorType = 'network' | 'timeout' | 'abort' | 'server' | 'client' | 'unknown';
|
|
88
|
+
|
|
89
|
+
interface ClassifiedError extends Error {
|
|
90
|
+
type: ResourceErrorType;
|
|
91
|
+
retryable: boolean;
|
|
92
|
+
statusCode?: number;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface ResourceState<T = unknown> {
|
|
96
|
+
status: ResourceStatus;
|
|
97
|
+
data?: T;
|
|
98
|
+
error?: Error;
|
|
99
|
+
updatedAt?: number;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface ResourceCache {
|
|
103
|
+
read(key: string): ResourceState<unknown> | undefined;
|
|
104
|
+
write(key: string, state: ResourceState<unknown>): void;
|
|
105
|
+
delete(key: string): void;
|
|
106
|
+
clear(): void;
|
|
107
|
+
keys(): string[];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
interface ResourceContext {
|
|
111
|
+
signal?: AbortSignal;
|
|
112
|
+
force?: boolean;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
type ResourceFetcher<T> = (context: ResourceContext) => T | Promise<T>;
|
|
116
|
+
|
|
117
|
+
interface ResourceOptions<T> {
|
|
118
|
+
cache?: ResourceCache;
|
|
119
|
+
enabled?: boolean;
|
|
120
|
+
initialData?: T;
|
|
121
|
+
staleTimeMs?: number;
|
|
122
|
+
cacheTimeMs?: number;
|
|
123
|
+
refetchOnStale?: boolean;
|
|
124
|
+
retry?: boolean | number | ((attempt: number, error: ClassifiedError) => boolean);
|
|
125
|
+
retryDelayMs?: number | ((attempt: number) => number);
|
|
126
|
+
maxRetries?: number;
|
|
127
|
+
onSuccess?: (data: T) => void;
|
|
128
|
+
onError?: (error: Error) => void;
|
|
129
|
+
onSettled?: (data: T | undefined, error: Error | undefined) => void;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface OptimisticUpdateOptions<T> {
|
|
133
|
+
optimisticData: T;
|
|
134
|
+
rollbackOnError?: boolean;
|
|
135
|
+
onRollback?: (previousData: T | undefined) => void;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface Resource<T> {
|
|
139
|
+
key: SignalAccessor<string>;
|
|
140
|
+
state: SignalAccessor<ResourceState<T>>;
|
|
141
|
+
isStale(): boolean;
|
|
142
|
+
load(context?: ResourceContext): Promise<ResourceState<T>>;
|
|
143
|
+
refresh(context?: ResourceContext): Promise<ResourceState<T>>;
|
|
144
|
+
mutate(mutator: (data: T | undefined) => T | Promise<T>, options?: OptimisticUpdateOptions<T>): Promise<ResourceState<T>>;
|
|
145
|
+
setData(data: T): void;
|
|
146
|
+
setError(error: Error): void;
|
|
147
|
+
clear(): void;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare function createResourceCache(): ResourceCache;
|
|
151
|
+
declare function getResourceCache(): ResourceCache;
|
|
152
|
+
declare function normalizeResourceKey(key: ResourceKey): string;
|
|
153
|
+
declare function invalidateResource(key: ResourceKey, cache?: ResourceCache): void;
|
|
154
|
+
declare function isResourceStale(state: ResourceState<unknown>, staleTimeMs?: number): boolean;
|
|
155
|
+
declare function isResourceExpired(state: ResourceState<unknown>, cacheTimeMs?: number): boolean;
|
|
156
|
+
declare function classifyError(error: unknown): ClassifiedError;
|
|
157
|
+
declare function calculateRetryDelay(attempt: number, baseDelayMs?: number): number;
|
|
158
|
+
declare function createResource<T>(
|
|
159
|
+
key: ResourceKey,
|
|
160
|
+
fetcher: ResourceFetcher<T>,
|
|
161
|
+
options?: ResourceOptions<T>,
|
|
162
|
+
): Resource<T>;
|
|
163
|
+
|
|
164
|
+
interface RuntimeErrorReport {
|
|
165
|
+
error: Error;
|
|
166
|
+
info: RuntimeErrorInfo;
|
|
167
|
+
handled: boolean;
|
|
168
|
+
boundaryId?: string;
|
|
169
|
+
}
|
|
170
|
+
interface RuntimeErrorReporter {
|
|
171
|
+
name: string;
|
|
172
|
+
report: (report: RuntimeErrorReport) => void | Promise<void>;
|
|
173
|
+
}
|
|
174
|
+
declare function registerRuntimeErrorReporters(next: RuntimeErrorReporter[]): void;
|
|
175
|
+
declare function addRuntimeErrorReporter(reporter: RuntimeErrorReporter): void;
|
|
176
|
+
declare function clearRuntimeErrorReporters(): void;
|
|
177
|
+
declare function getRuntimeErrorReporters(): readonly RuntimeErrorReporter[];
|
|
178
|
+
declare function emitRuntimeErrorReport(report: RuntimeErrorReport): void;
|
|
179
|
+
|
|
180
|
+
type RouteDataCacheEntry = RouteHandlerResult;
|
|
181
|
+
|
|
182
|
+
interface DiagnosticsSnapshot {
|
|
183
|
+
reports: RuntimeErrorReport[];
|
|
184
|
+
routeData: Record<string, RouteDataCacheEntry>;
|
|
185
|
+
resources: Record<string, ResourceState<unknown>>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface RuntimeDiagnosticsStore {
|
|
189
|
+
reports: SignalAccessor<RuntimeErrorReport[]>;
|
|
190
|
+
attach(): void;
|
|
191
|
+
detach(): void;
|
|
192
|
+
clearReports(): void;
|
|
193
|
+
getSnapshot(): DiagnosticsSnapshot;
|
|
194
|
+
getRouteDataSnapshot(): Record<string, RouteDataCacheEntry>;
|
|
195
|
+
getResourceSnapshot(): Record<string, ResourceState<unknown>>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
interface DiagnosticsOptions {
|
|
199
|
+
maxReports?: number;
|
|
200
|
+
reporterName?: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare function createRuntimeDiagnosticsStore(options?: DiagnosticsOptions): RuntimeDiagnosticsStore;
|
|
204
|
+
|
|
205
|
+
interface RouteInspectorNode {
|
|
206
|
+
id: string;
|
|
207
|
+
path: string;
|
|
208
|
+
fullPath: string;
|
|
209
|
+
hasLoader: boolean;
|
|
210
|
+
hasAction: boolean;
|
|
211
|
+
hasGuards: boolean;
|
|
212
|
+
children: RouteInspectorNode[];
|
|
213
|
+
isActive: boolean;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
interface RouterInspectorSnapshot {
|
|
217
|
+
currentPath: string;
|
|
218
|
+
currentMatch: RouteMatch | null;
|
|
219
|
+
tree: RouteInspectorNode[];
|
|
220
|
+
routeData: Record<string, RouteDataCacheEntry>;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
interface RouterInspector {
|
|
224
|
+
tree: SignalAccessor<RouteInspectorNode[]>;
|
|
225
|
+
currentPath: SignalAccessor<string>;
|
|
226
|
+
currentMatch: SignalAccessor<RouteMatch | null>;
|
|
227
|
+
getSnapshot(): RouterInspectorSnapshot;
|
|
228
|
+
getRouteDataSnapshot(): Record<string, RouteDataCacheEntry>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
declare function buildRouteTree(routes: RouteDefinition[], parentPath?: string): RouteInspectorNode[];
|
|
232
|
+
declare function createRouterInspector(router: Router, routes: RouteDefinition[]): RouterInspector;
|
|
233
|
+
|
|
234
|
+
interface DevtoolsDashboardOptions {
|
|
235
|
+
className?: string;
|
|
236
|
+
routerInspector?: RouterInspector;
|
|
237
|
+
diagnosticsStore?: RuntimeDiagnosticsStore;
|
|
238
|
+
hydrationReport?: RuntimeErrorReport;
|
|
239
|
+
signalsSnapshot?: SignalsInspectorSnapshot;
|
|
240
|
+
showRefresh?: boolean;
|
|
241
|
+
showSummary?: boolean;
|
|
242
|
+
showHydrationTemplate?: boolean;
|
|
243
|
+
enableSummaryToggle?: boolean;
|
|
244
|
+
enablePanelsToggle?: boolean;
|
|
245
|
+
enableCompactToggle?: boolean;
|
|
246
|
+
enableThemeToggle?: boolean;
|
|
247
|
+
enableCopyDiagnostics?: boolean;
|
|
248
|
+
enableClearDiagnostics?: boolean;
|
|
249
|
+
showRouterSummary?: boolean;
|
|
250
|
+
enableExportDiagnostics?: boolean;
|
|
251
|
+
enableResetPanels?: boolean;
|
|
252
|
+
compact?: boolean;
|
|
253
|
+
theme?: 'default' | 'soft';
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
declare function createDevtoolsDashboard(options?: DevtoolsDashboardOptions): HTMLElement;
|
|
257
|
+
|
|
258
|
+
interface RouterInspectorPanelOptions {
|
|
259
|
+
className?: string;
|
|
260
|
+
showRouteData?: boolean;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
declare function createRouterInspectorPanel(
|
|
264
|
+
inspector: RouterInspector,
|
|
265
|
+
options?: RouterInspectorPanelOptions,
|
|
266
|
+
): HTMLElement;
|
|
267
|
+
|
|
268
|
+
interface SignalsInspectorStore {
|
|
269
|
+
snapshot: SignalAccessor<SignalsInspectorSnapshot>;
|
|
270
|
+
refresh(): SignalsInspectorSnapshot;
|
|
271
|
+
clear(): void;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface SignalsGraphNode {
|
|
275
|
+
id: string;
|
|
276
|
+
type: 'signal' | 'effect';
|
|
277
|
+
label: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
interface SignalsGraphEdge {
|
|
281
|
+
from: string;
|
|
282
|
+
to: string;
|
|
283
|
+
type: 'tracks';
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface SignalsGraph {
|
|
287
|
+
nodes: SignalsGraphNode[];
|
|
288
|
+
edges: SignalsGraphEdge[];
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare function createSignalsInspector(): SignalsInspectorStore;
|
|
292
|
+
declare function buildSignalsGraph(snapshot: SignalsInspectorSnapshot): SignalsGraph;
|
|
293
|
+
|
|
294
|
+
interface SignalsInspectorPanelOptions {
|
|
295
|
+
className?: string;
|
|
296
|
+
snapshot?: SignalsInspectorSnapshot;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare function createSignalsInspectorPanel(options?: SignalsInspectorPanelOptions): HTMLElement;
|
|
300
|
+
|
|
301
|
+
interface HydrationMismatchSummary {
|
|
302
|
+
total: number;
|
|
303
|
+
byTemplateId: Record<string, number>;
|
|
304
|
+
byComponentName: Record<string, number>;
|
|
305
|
+
byReason: Record<string, number>;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
declare function getHydrationReports(reports: RuntimeErrorReport[]): RuntimeErrorReport[];
|
|
309
|
+
declare function buildHydrationSummary(reports: RuntimeErrorReport[]): HydrationMismatchSummary;
|
|
310
|
+
|
|
311
|
+
interface HydrationDomPayload {
|
|
312
|
+
expectedDom?: string;
|
|
313
|
+
receivedDom?: string;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
interface HydrationDomDiff {
|
|
317
|
+
hasMismatch: boolean;
|
|
318
|
+
firstMismatchIndex: number;
|
|
319
|
+
expectedLength: number;
|
|
320
|
+
receivedLength: number;
|
|
321
|
+
expectedContext: string;
|
|
322
|
+
receivedContext: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
interface HydrationReplaySession {
|
|
326
|
+
payload: HydrationDomPayload;
|
|
327
|
+
diff: HydrationDomDiff | null;
|
|
328
|
+
applyExpected(target: Node): void;
|
|
329
|
+
applyReceived(target: Node): void;
|
|
330
|
+
clear(target: Node): void;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
declare function getHydrationDomPayload(report: RuntimeErrorReport): HydrationDomPayload;
|
|
334
|
+
declare function buildHydrationDomDiff(
|
|
335
|
+
expectedDom: string | undefined,
|
|
336
|
+
receivedDom: string | undefined,
|
|
337
|
+
contextRadius?: number,
|
|
338
|
+
): HydrationDomDiff;
|
|
339
|
+
declare function createHydrationReplaySession(
|
|
340
|
+
report: RuntimeErrorReport,
|
|
341
|
+
options?: { contextRadius?: number },
|
|
342
|
+
): HydrationReplaySession;
|
|
343
|
+
|
|
344
|
+
interface HydrationReplayPanelOptions {
|
|
345
|
+
contextRadius?: number;
|
|
346
|
+
className?: string;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
declare function createHydrationReplayPanel(
|
|
350
|
+
report: RuntimeErrorReport,
|
|
351
|
+
options?: HydrationReplayPanelOptions,
|
|
352
|
+
): HTMLElement;
|
|
353
|
+
|
|
354
|
+
export { createDevtoolsDashboard as $, type RouterInspectorPanelOptions as A, type RouterInspectorSnapshot as B, type ClassifiedError as C, type DevtoolsDashboardOptions as D, type RuntimeDiagnosticsStore as E, type FieldArrayControl as F, type RuntimeErrorReport as G, type HydrationDomDiff as H, type RuntimeErrorReporter as I, type SignalsGraphEdge as J, type SignalsGraphNode as K, type SignalsInspectorPanelOptions as L, type SignalsInspectorStore as M, type ValidationMessage as N, type OptimisticUpdateOptions as O, type Validator as P, addRuntimeErrorReporter as Q, type RegisterOptions as R, type SignalsGraph as S, buildHydrationDomDiff as T, buildHydrationSummary as U, type ValidationContext as V, buildRouteTree as W, buildSignalsGraph as X, calculateRetryDelay as Y, classifyError as Z, clearRuntimeErrorReporters as _, type DiagnosticsOptions as a, createFormController as a0, createFormWizard as a1, createHydrationReplayPanel as a2, createHydrationReplaySession as a3, createResource as a4, createResourceCache as a5, createRouterInspector as a6, createRouterInspectorPanel as a7, createRuntimeDiagnosticsStore as a8, createSignalsInspector as a9, createSignalsInspectorPanel as aa, emitRuntimeErrorReport as ab, getHydrationDomPayload as ac, getHydrationReports as ad, getResourceCache as ae, getRuntimeErrorReporters as af, invalidateResource as ag, isResourceExpired as ah, isResourceStale as ai, normalizeResourceKey as aj, registerRuntimeErrorReporters as ak, type DiagnosticsSnapshot as b, type FieldControl as c, type FieldValidationState as d, type FormController as e, type FormErrorLeaf as f, type FormErrorMap as g, type FormErrorValue as h, type FormValidationResult as i, type FormWizardController as j, type FormWizardStep as k, type HydrationDomPayload as l, type HydrationMismatchSummary as m, type HydrationReplayPanelOptions as n, type HydrationReplaySession as o, type Resource as p, type ResourceCache as q, type ResourceContext as r, type ResourceErrorType as s, type ResourceFetcher as t, type ResourceKey as u, type ResourceOptions as v, type ResourceState as w, type ResourceStatus as x, type RouteInspectorNode as y, type RouterInspector as z };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
type Dispose = () => void;
|
|
2
|
+
declare class Signal<T> {
|
|
3
|
+
private value;
|
|
4
|
+
private subscribers;
|
|
5
|
+
private readonly id;
|
|
6
|
+
private readonly traceSink?;
|
|
7
|
+
constructor(initial: T);
|
|
8
|
+
read(): T;
|
|
9
|
+
write(next: T): void;
|
|
10
|
+
update(updater: (current: T) => T): void;
|
|
11
|
+
subscribe(listener: (value: T) => void): Dispose;
|
|
12
|
+
private notify;
|
|
13
|
+
detach(effect: Effect): void;
|
|
14
|
+
}
|
|
15
|
+
declare class Effect {
|
|
16
|
+
private fn;
|
|
17
|
+
private teardown;
|
|
18
|
+
private trackedSignals;
|
|
19
|
+
private scheduled;
|
|
20
|
+
private readonly scheduler;
|
|
21
|
+
private readonly id;
|
|
22
|
+
private readonly name;
|
|
23
|
+
private readonly attributes?;
|
|
24
|
+
private readonly traceSink?;
|
|
25
|
+
constructor(fn: () => void, options?: EffectOptions);
|
|
26
|
+
run(): void;
|
|
27
|
+
track(signal: Signal<unknown>): void;
|
|
28
|
+
schedule(): void;
|
|
29
|
+
flush: () => void;
|
|
30
|
+
cleanup(): void;
|
|
31
|
+
setTeardown(cb: Dispose): void;
|
|
32
|
+
}
|
|
33
|
+
declare function batch<T>(fn: () => T): T;
|
|
34
|
+
type SignalAccessor<T> = (() => T) & {
|
|
35
|
+
set(value: T): void;
|
|
36
|
+
update(recipe: (current: T) => T): void;
|
|
37
|
+
};
|
|
38
|
+
declare function signal<T>(initial: T): SignalAccessor<T>;
|
|
39
|
+
declare function computed<T>(producer: () => T): SignalAccessor<T>;
|
|
40
|
+
interface EffectOptions {
|
|
41
|
+
name?: string;
|
|
42
|
+
scheduler?: (effect: Effect) => void;
|
|
43
|
+
attributes?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
declare function effect(fn: () => void, options?: EffectOptions): Dispose;
|
|
46
|
+
interface SignalSnapshot {
|
|
47
|
+
id: string;
|
|
48
|
+
value: unknown;
|
|
49
|
+
subscribers: number;
|
|
50
|
+
}
|
|
51
|
+
interface EffectSnapshot {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
scheduled: boolean;
|
|
55
|
+
trackedSignals: number;
|
|
56
|
+
trackedSignalIds: string[];
|
|
57
|
+
attributes?: Record<string, unknown>;
|
|
58
|
+
}
|
|
59
|
+
interface SignalsInspectorSnapshot {
|
|
60
|
+
signals: SignalSnapshot[];
|
|
61
|
+
effects: EffectSnapshot[];
|
|
62
|
+
}
|
|
63
|
+
declare function getSignalsInspectorSnapshot(): SignalsInspectorSnapshot;
|
|
64
|
+
declare function clearSignalsInspectorRegistry(): void;
|
|
65
|
+
|
|
66
|
+
export { type Dispose as D, Effect as E, type SignalAccessor as S, type EffectOptions as a, type EffectSnapshot as b, Signal as c, type SignalSnapshot as d, type SignalsInspectorSnapshot as e, batch as f, clearSignalsInspectorRegistry as g, computed as h, effect as i, getSignalsInspectorSnapshot as j, signal as s };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
type Dispose = () => void;
|
|
2
|
+
declare class Signal<T> {
|
|
3
|
+
private value;
|
|
4
|
+
private subscribers;
|
|
5
|
+
private readonly id;
|
|
6
|
+
private readonly traceSink?;
|
|
7
|
+
constructor(initial: T);
|
|
8
|
+
read(): T;
|
|
9
|
+
write(next: T): void;
|
|
10
|
+
update(updater: (current: T) => T): void;
|
|
11
|
+
subscribe(listener: (value: T) => void): Dispose;
|
|
12
|
+
private notify;
|
|
13
|
+
detach(effect: Effect): void;
|
|
14
|
+
}
|
|
15
|
+
declare class Effect {
|
|
16
|
+
private fn;
|
|
17
|
+
private teardown;
|
|
18
|
+
private trackedSignals;
|
|
19
|
+
private scheduled;
|
|
20
|
+
private readonly scheduler;
|
|
21
|
+
private readonly id;
|
|
22
|
+
private readonly name;
|
|
23
|
+
private readonly attributes?;
|
|
24
|
+
private readonly traceSink?;
|
|
25
|
+
constructor(fn: () => void, options?: EffectOptions);
|
|
26
|
+
run(): void;
|
|
27
|
+
track(signal: Signal<unknown>): void;
|
|
28
|
+
schedule(): void;
|
|
29
|
+
flush: () => void;
|
|
30
|
+
cleanup(): void;
|
|
31
|
+
setTeardown(cb: Dispose): void;
|
|
32
|
+
}
|
|
33
|
+
declare function batch<T>(fn: () => T): T;
|
|
34
|
+
type SignalAccessor<T> = (() => T) & {
|
|
35
|
+
set(value: T): void;
|
|
36
|
+
update(recipe: (current: T) => T): void;
|
|
37
|
+
};
|
|
38
|
+
declare function signal<T>(initial: T): SignalAccessor<T>;
|
|
39
|
+
declare function computed<T>(producer: () => T): SignalAccessor<T>;
|
|
40
|
+
interface EffectOptions {
|
|
41
|
+
name?: string;
|
|
42
|
+
scheduler?: (effect: Effect) => void;
|
|
43
|
+
attributes?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
declare function effect(fn: () => void, options?: EffectOptions): Dispose;
|
|
46
|
+
interface SignalSnapshot {
|
|
47
|
+
id: string;
|
|
48
|
+
value: unknown;
|
|
49
|
+
subscribers: number;
|
|
50
|
+
}
|
|
51
|
+
interface EffectSnapshot {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
scheduled: boolean;
|
|
55
|
+
trackedSignals: number;
|
|
56
|
+
trackedSignalIds: string[];
|
|
57
|
+
attributes?: Record<string, unknown>;
|
|
58
|
+
}
|
|
59
|
+
interface SignalsInspectorSnapshot {
|
|
60
|
+
signals: SignalSnapshot[];
|
|
61
|
+
effects: EffectSnapshot[];
|
|
62
|
+
}
|
|
63
|
+
declare function getSignalsInspectorSnapshot(): SignalsInspectorSnapshot;
|
|
64
|
+
declare function clearSignalsInspectorRegistry(): void;
|
|
65
|
+
|
|
66
|
+
export { type Dispose as D, Effect as E, type SignalAccessor as S, type EffectOptions as a, type EffectSnapshot as b, Signal as c, type SignalSnapshot as d, type SignalsInspectorSnapshot as e, batch as f, clearSignalsInspectorRegistry as g, computed as h, effect as i, getSignalsInspectorSnapshot as j, signal as s };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkVHUXNDW2_cjs = require('./chunk-VHUXNDW2.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "Effect", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunkVHUXNDW2_cjs.Effect; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "Signal", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkVHUXNDW2_cjs.Signal; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "batch", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunkVHUXNDW2_cjs.batch; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "computed", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunkVHUXNDW2_cjs.computed; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "effect", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkVHUXNDW2_cjs.effect; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "signal", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkVHUXNDW2_cjs.signal; }
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=browser-signals.cjs.map
|
|
32
|
+
//# sourceMappingURL=browser-signals.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"browser-signals.cjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { D as Dispose, E as Effect, a as EffectOptions, c as Signal, S as SignalAccessor, f as batch, h as computed, i as effect, s as signal } from './browser-signals-07qodpYT.cjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { D as Dispose, E as Effect, a as EffectOptions, c as Signal, S as SignalAccessor, f as batch, h as computed, i as effect, s as signal } from './browser-signals-07qodpYT.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"browser-signals.js"}
|