@brickkit/cli 0.11.0 → 0.13.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/dashboard-dist/CollapsiblePanel-CbUysOp5.js +2 -0
- package/dashboard-dist/CompositeRoot-D4sRkYq3.js +1 -0
- package/dashboard-dist/Geist-Variable.woff2 +0 -0
- package/dashboard-dist/GeistMono-Variable.woff2 +0 -0
- package/dashboard-dist/PopoverPopup-CiI2avT_.js +1 -0
- package/dashboard-dist/api-reference-mT9VNcPb.js +265 -0
- package/dashboard-dist/app.css +2 -2
- package/dashboard-dist/app.js +12 -13
- package/dashboard-dist/ccount-CcG1m-Yh.js +1 -0
- package/dashboard-dist/client-CwATkLJa.js +1 -0
- package/dashboard-dist/core-BEUWp6B5.js +1 -0
- package/dashboard-dist/docs-BRrtyxDB.js +4 -0
- package/dashboard-dist/docs.css +1 -1
- package/dashboard-dist/kit.js +1 -1
- package/dashboard-dist/popover-Bj9x-88h.js +1 -0
- package/dist/bin.d.ts +0 -2
- package/dist/bin.js +309 -211
- package/dist/bin.js.map +1 -1
- package/dist/build.js +463 -0
- package/dist/build.js.map +1 -0
- package/dist/client-contract-file.js +356 -1
- package/dist/client-contract-file.js.map +1 -0
- package/dist/compiler.d.ts +12 -3
- package/dist/compiler.js +1 -1
- package/dist/compiler2.js +13 -7
- package/dist/compiler2.js.map +1 -1
- package/dist/config.d.ts +3 -0
- package/dist/config.js +1 -252
- package/dist/config2.d.ts +122 -0
- package/dist/config2.js +207 -0
- package/dist/config2.js.map +1 -0
- package/dist/dashboard-extension.d.ts +3 -2
- package/dist/{dev-telemetry-store.js → dashboard-host.js} +1381 -1432
- package/dist/dashboard-host.js.map +1 -0
- package/dist/dashboard-protocol.js +189 -0
- package/dist/dashboard-protocol.js.map +1 -0
- package/dist/dashboard.d.ts +8 -135
- package/dist/definitions.js +33 -0
- package/dist/definitions.js.map +1 -0
- package/dist/dev-application.js +34 -0
- package/dist/dev-application.js.map +1 -0
- package/dist/dev-protocol.js +21 -0
- package/dist/dev-protocol.js.map +1 -0
- package/dist/dev-reporter.d.ts +0 -2
- package/dist/dev-reporter.js +3 -3
- package/dist/dev-reporter.js.map +1 -1
- package/dist/dev-telemetry.js +8 -24
- package/dist/dev-telemetry.js.map +1 -1
- package/dist/dev-worker.js +80 -21
- package/dist/dev-worker.js.map +1 -1
- package/dist/index.d.ts +18 -87
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -0
- package/dist/lint/oxlint.d.ts +0 -2
- package/dist/lint/oxlint.js +6 -5
- package/dist/lint/oxlint.js.map +1 -1
- package/dist/own-module.js +7 -0
- package/dist/own-module.js.map +1 -0
- package/dist/plugin.d.ts +6 -11
- package/dist/plugin.js +6 -42
- package/dist/plugin.js.map +1 -1
- package/dist/production-dashboard.d.ts +2 -0
- package/dist/production-dashboard.js +51 -0
- package/dist/production-dashboard.js.map +1 -0
- package/dist/production-dashboard2.d.ts +34 -0
- package/dist/{presets.js → project.js} +107 -113
- package/dist/project.js.map +1 -0
- package/dist/serve.d.ts +24 -0
- package/dist/serve.js +1 -0
- package/dist/serve2.js +49 -0
- package/dist/serve2.js.map +1 -0
- package/dist/vite.d.ts +0 -2
- package/dist/vite.js +28 -51
- package/dist/vite.js.map +1 -1
- package/dist/workflows.d.ts +2 -4
- package/dist/workflows2.js +60 -39
- package/dist/workflows2.js.map +1 -1
- package/inspector-dist/client/assets/api.rpc-BvRk9kiK.js +0 -0
- package/inspector-dist/client/assets/api.stream._streamId-BvRk9kiK.js +0 -0
- package/inspector-dist/client/assets/app-CeSwVsRm.css +2 -0
- package/inspector-dist/client/assets/dist-BK8w6xOr.js +3930 -0
- package/inspector-dist/client/assets/dist-CG2aVufI.js +197 -0
- package/inspector-dist/client/assets/entry.client-D9jbgmTR.js +9391 -0
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-CfRnuITN.js +34 -0
- package/inspector-dist/client/assets/home-hwPlkNhv.js +4034 -0
- package/inspector-dist/client/assets/jsx-runtime-CPEah4WQ.js +7084 -0
- package/inspector-dist/client/assets/manifest-0e76e9ac.js +1 -0
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-ZDR2PNY_.js +1 -0
- package/inspector-dist/client/assets/root-ChBNTZd2.css +2 -0
- package/inspector-dist/client/assets/root-SLeEf-sT.js +320 -0
- package/inspector-dist/client/assets/run-detail-DYbVkIFH.js +1871 -0
- package/inspector-dist/client/assets/tabs-CaJisoyb.js +73751 -0
- package/inspector-dist/client/assets/tabs-L5XKzOpP.css +1 -0
- package/inspector-dist/client/assets/zstd-browser-decoder-D94wmfAU.js +41 -0
- package/inspector-dist/server/assets/app-DGlfWVUI.js +99330 -0
- package/inspector-dist/server/assets/chunk-RLXIAIE6-F0SJZlei.js +42975 -0
- package/inspector-dist/server/assets/dist-BCbwm6jl.js +10325 -0
- package/inspector-dist/server/assets/dist-CG2aVufI.js +197 -0
- package/inspector-dist/server/assets/dist-Ce0I2PUv.js +1137 -0
- package/inspector-dist/server/assets/dist-DY0UlahA.js +1642 -0
- package/inspector-dist/server/assets/encryption-DdQgC8Rk.js +886 -0
- package/inspector-dist/server/assets/event-metadata-n7E4zEmT.js +145 -0
- package/inspector-dist/server/assets/functions-CNVQtbgg.js +1170 -0
- package/inspector-dist/server/assets/global-singleton-D8sIN5du.js +80 -0
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-CWRzMxYD.js +34 -0
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-D0v0ngVr.js +1 -0
- package/inspector-dist/server/assets/parse-Begau9cA.js +469 -0
- package/inspector-dist/server/assets/rolldown-runtime-C1I3wEg2.js +43 -0
- package/inspector-dist/server/assets/serialization-format-BbuGfHog.js +476 -0
- package/inspector-dist/server/assets/token-BgMmJNP5.js +60 -0
- package/inspector-dist/server/assets/token-BrUX0bxz.js +55 -0
- package/inspector-dist/server/assets/token-util-DZN32qmT.js +455 -0
- package/inspector-dist/server/assets/wrapper-CIC3w0oC.js +3624 -0
- package/inspector-dist/server/assets/ws-transport-CxTYB11n.js +29476 -0
- package/inspector-dist/server/assets/zstd-browser-decoder-D7bCXbGg.js +38 -0
- package/inspector-dist/server/index.js +1 -58
- package/package.json +39 -28
- package/vite-client.d.ts +1 -1
- package/dashboard-dist/CollapsiblePanel-BX79_W-b.js +0 -2
- package/dashboard-dist/CompositeRoot-xzybXjnx.js +0 -1
- package/dashboard-dist/PopoverPopup-CvlmC7EL.js +0 -1
- package/dashboard-dist/api-reference-BcAYVYwJ.js +0 -260
- package/dashboard-dist/core-BGO9JZ1r.js +0 -1
- package/dashboard-dist/docs-DHikPD2v.js +0 -4
- package/dashboard-dist/popover-DG498XHH.js +0 -1
- package/dist/app-entry.js +0 -1
- package/dist/app-entry2.js +0 -19
- package/dist/app-entry2.js.map +0 -1
- package/dist/bin.d.ts.map +0 -1
- package/dist/client-contract-file2.js +0 -34
- package/dist/client-contract-file2.js.map +0 -1
- package/dist/client-contract.js +0 -1
- package/dist/client-contract2.js +0 -294
- package/dist/client-contract2.js.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/dashboard-extension.d.ts.map +0 -1
- package/dist/dev-reporter.d.ts.map +0 -1
- package/dist/dev-telemetry-store.js.map +0 -1
- package/dist/emit.d.ts +0 -7
- package/dist/emit.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lint/oxlint.d.ts.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/presets.js.map +0 -1
- package/dist/runner.js +0 -523
- package/dist/runner.js.map +0 -1
- package/dist/vite.d.ts.map +0 -1
- package/dist/workflows.d.ts.map +0 -1
- package/inspector-dist/client/assets/api.rpc-l0sNRNKZ.js +0 -1
- package/inspector-dist/client/assets/api.stream._streamId-l0sNRNKZ.js +0 -1
- package/inspector-dist/client/assets/app-CvoGgWcV.css +0 -1
- package/inspector-dist/client/assets/entry.client-BJ6G3n5t.js +0 -11697
- package/inspector-dist/client/assets/highlighted-body-B3W2YXNL-C-3wZnxf.js +0 -19
- package/inspector-dist/client/assets/home-CSKAS4P2.js +0 -4979
- package/inspector-dist/client/assets/index-DECCyMR0.js +0 -4482
- package/inspector-dist/client/assets/index-Dot7CgrA.js +0 -9837
- package/inspector-dist/client/assets/index-HqNj_XIX.js +0 -200
- package/inspector-dist/client/assets/manifest-139c9319.js +0 -1
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-DC0K8uTy.js +0 -58626
- package/inspector-dist/client/assets/mermaid-3ZIDBTTL-F88p7PFX.css +0 -1
- package/inspector-dist/client/assets/root-BMHd_XHz.css +0 -1
- package/inspector-dist/client/assets/root-cbi6iYwg.js +0 -305
- package/inspector-dist/client/assets/run-detail-CWoGxu_0.css +0 -1
- package/inspector-dist/client/assets/run-detail-Cc7tSGNq.js +0 -6237
- package/inspector-dist/client/assets/world-config-context-BAD1QCrR.js +0 -26
- package/inspector-dist/client/assets/zstd-browser-decoder-BQoRpP7L.js +0 -28
- package/inspector-dist/server/assets/app-DUP5RybL.js +0 -174880
- package/inspector-dist/server/assets/highlighted-body-B3W2YXNL-D2g4hL2-.js +0 -71
- package/inspector-dist/server/assets/index-BfLBLRRi.js +0 -204
- package/inspector-dist/server/assets/index-BzrGWk7J.js +0 -1164
- package/inspector-dist/server/assets/index-D71yP6AL.js +0 -191
- package/inspector-dist/server/assets/index-wGSWRns3.js +0 -1296
- package/inspector-dist/server/assets/mermaid-3ZIDBTTL-DsvuKoEV.js +0 -58
- package/inspector-dist/server/assets/token-ClUZZwXl.js +0 -95
- package/inspector-dist/server/assets/token-util-DSxMZ6nI.js +0 -33
- package/inspector-dist/server/assets/wrapper-B3vstpCO.js +0 -67
- package/inspector-dist/server/assets/zstd-browser-decoder-Dn82m2BU.js +0 -77
package/dist/dashboard.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import { Attributes } from "@opentelemetry/api";
|
|
|
4
4
|
import { ArchitectureSchema } from "@brickkit/core";
|
|
5
5
|
import { BrickClient, BrickClientOptions } from "@brickkit/core/client";
|
|
6
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
|
-
//#region src/dev-telemetry.d.ts
|
|
8
7
|
interface SpanEventRecord {
|
|
9
8
|
name: string;
|
|
10
9
|
timeMs: number;
|
|
11
10
|
attributes: Attributes;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
/** The dashboard's built-in views; `#/<view>/…` opens one. */
|
|
13
|
+
declare const VIEW_NAMES: readonly ["requests", "logs", "overview", "apis", "docs", "workflows", "errors", "reloads"];
|
|
14
|
+
type ViewName = (typeof VIEW_NAMES)[number];
|
|
15
15
|
type SpanOutcome = "running" | "ok" | "error" | "interrupted";
|
|
16
16
|
interface TraceSpan {
|
|
17
17
|
spanId: string;
|
|
@@ -43,13 +43,9 @@ interface TraceSummary {
|
|
|
43
43
|
action?: string;
|
|
44
44
|
/** Why it failed, when it did. */
|
|
45
45
|
message?: string;
|
|
46
|
-
/** The request used a v0.10 path that `brick({ legacyRoutes: true })` still serves. */
|
|
47
|
-
legacyRoute?: boolean;
|
|
48
46
|
spans: TraceSpan[];
|
|
49
47
|
}
|
|
50
|
-
|
|
51
|
-
//#region dashboard/state.d.ts
|
|
52
|
-
type View = "requests" | "logs" | "overview" | "apis" | "docs" | "workflows" | "errors" | "reloads" |
|
|
48
|
+
type View = ViewName |
|
|
53
49
|
/** An extension's page, at `#/x/<id>/…`, so it never clashes with a built-in one. */
|
|
54
50
|
"x";
|
|
55
51
|
interface Route {
|
|
@@ -62,8 +58,6 @@ interface Route {
|
|
|
62
58
|
/** The extension page's id, for `x`. */
|
|
63
59
|
page?: string;
|
|
64
60
|
}
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region dashboard/extension-registry.d.ts
|
|
67
61
|
/** What every slot, page and drawer tab receives. */
|
|
68
62
|
interface SlotContext {
|
|
69
63
|
/** Where the dashboard is: `#/x/queues/42` is `{ view: "x", page: "queues", path: ["42"] }`. */
|
|
@@ -144,8 +138,6 @@ interface DashboardExtension {
|
|
|
144
138
|
}
|
|
145
139
|
/** Declare the dashboard extension; the module's default export. */
|
|
146
140
|
export declare function defineDashboard<T extends DashboardExtension>(extension: T): T;
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region dashboard/extension.d.ts
|
|
149
141
|
/** The requests the dashboard holds live, newest first. */
|
|
150
142
|
export declare function useRequests(): TraceSummary[];
|
|
151
143
|
/** The app's services, actions and routes as last started; null before it starts. */
|
|
@@ -182,8 +174,6 @@ export declare function useAppQuery<T>(query: ((signal: AbortSignal) => Promise<
|
|
|
182
174
|
* component mounts and whenever `path` changes. A `null` path waits.
|
|
183
175
|
*/
|
|
184
176
|
export declare function useAppFetch<T = unknown>(path: string | null, init?: RequestInit): AppFetchResult<T>;
|
|
185
|
-
//#endregion
|
|
186
|
-
//#region dashboard/components/panel.d.ts
|
|
187
177
|
/**
|
|
188
178
|
* Efferd's card: a square, 1px-bordered surface with a plus mark on each
|
|
189
179
|
* corner, built on the shadcn Card with its radius and ring removed. A `title`
|
|
@@ -192,8 +182,6 @@ export declare function useAppFetch<T = unknown>(path: string | null, init?: Req
|
|
|
192
182
|
export declare function Panel({ className, children, title, ...props }: Omit<ComponentProps<"div">, "title"> & {
|
|
193
183
|
title?: ReactNode;
|
|
194
184
|
}): import("react").JSX.Element;
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region dashboard/components/metric.d.ts
|
|
197
185
|
/** Miniature stacked-block bar chart, with the newest column emphasized. */
|
|
198
186
|
export declare function SparkBars({ values }: {
|
|
199
187
|
values: number[];
|
|
@@ -207,8 +195,6 @@ export declare function Metric({ icon, label, value, note, spark }: {
|
|
|
207
195
|
/** Recent values for the miniature chart; omit for none. */
|
|
208
196
|
spark?: number[];
|
|
209
197
|
}): import("react").JSX.Element;
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region dashboard/components/page-header.d.ts
|
|
212
198
|
export declare function PageHeader({ title, description, actions }: {
|
|
213
199
|
title: string;
|
|
214
200
|
description?: string;
|
|
@@ -218,16 +204,10 @@ export declare function Empty({ title, hint }: {
|
|
|
218
204
|
title: string;
|
|
219
205
|
hint?: string;
|
|
220
206
|
}): import("react").JSX.Element;
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/clsx.d.mts
|
|
223
207
|
type ClassValue = ClassArray | ClassDictionary | string | number | bigint | null | boolean | undefined;
|
|
224
208
|
type ClassDictionary = Record<string, any>;
|
|
225
209
|
type ClassArray = ClassValue[];
|
|
226
|
-
//#endregion
|
|
227
|
-
//#region dashboard/lib/utils.d.ts
|
|
228
210
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/internals/reason-parts.d.mts
|
|
231
211
|
declare const none: 'none';
|
|
232
212
|
declare const triggerPress: 'trigger-press';
|
|
233
213
|
declare const triggerHover: 'trigger-hover';
|
|
@@ -263,8 +243,6 @@ declare const initial: 'initial';
|
|
|
263
243
|
declare const imperativeAction: 'imperative-action';
|
|
264
244
|
declare const swipe: 'swipe';
|
|
265
245
|
declare const windowResize: 'window-resize';
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/internals/createBaseUIEventDetails.d.mts
|
|
268
246
|
interface ReasonToEventMap {
|
|
269
247
|
[none]: Event;
|
|
270
248
|
[triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
|
|
@@ -340,8 +318,6 @@ type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends obj
|
|
|
340
318
|
* Details of custom change events emitted by Base UI components.
|
|
341
319
|
*/
|
|
342
320
|
type BaseUIChangeEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIChangeEventDetail<Reason, CustomProperties> & {} : never;
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/types/index.d.mts
|
|
345
321
|
type HTMLProps<T = any> = React$1.HTMLAttributes<T> & {
|
|
346
322
|
ref?: React$1.Ref<T> | undefined;
|
|
347
323
|
};
|
|
@@ -356,8 +332,6 @@ type BaseUIEvent<E extends React$1.SyntheticEvent<Element, Event>> = E & {
|
|
|
356
332
|
preventBaseUIHandler: () => void;
|
|
357
333
|
readonly baseUIHandlerPrevented?: boolean | undefined;
|
|
358
334
|
};
|
|
359
|
-
//#endregion
|
|
360
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/internals/types.d.mts
|
|
361
335
|
type WithPreventBaseUIHandler<T> = T extends ((event: infer E) => any) ? E extends React$1.SyntheticEvent<Element, Event> ? (event: BaseUIEvent<E>) => ReturnType<T> : T : T extends undefined ? undefined : T;
|
|
362
336
|
/**
|
|
363
337
|
* Adds a `preventBaseUIHandler` method to all event handlers.
|
|
@@ -405,11 +379,7 @@ interface NonNativeButtonProps {
|
|
|
405
379
|
nativeButton?: boolean | undefined;
|
|
406
380
|
}
|
|
407
381
|
type Orientation = 'horizontal' | 'vertical';
|
|
408
|
-
//#endregion
|
|
409
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/internals/getStateAttributesProps.d.mts
|
|
410
382
|
type StateAttributesMapping<State> = { [Property in keyof State]?: (state: State[Property]) => Record<string, string> | null; };
|
|
411
|
-
//#endregion
|
|
412
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/use-render/useRender.d.mts
|
|
413
383
|
/**
|
|
414
384
|
* Renders a Base UI element.
|
|
415
385
|
*
|
|
@@ -476,14 +446,10 @@ declare namespace useRender {
|
|
|
476
446
|
type Parameters<TState, RenderedElementType extends Element, Enabled extends boolean | undefined> = UseRenderParameters<TState, RenderedElementType, Enabled>;
|
|
477
447
|
type ReturnValue<Enabled extends boolean | undefined> = UseRenderReturnValue<Enabled>;
|
|
478
448
|
}
|
|
479
|
-
//#endregion
|
|
480
|
-
//#region dashboard/components/ui/badge.d.ts
|
|
481
449
|
declare const badgeVariants: (props?: ({
|
|
482
|
-
variant?: "default" | "
|
|
450
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
483
451
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
484
452
|
declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
485
|
-
//#endregion
|
|
486
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/button/Button.d.mts
|
|
487
453
|
/**
|
|
488
454
|
* A button component that can be used to trigger actions.
|
|
489
455
|
* Renders a `<button>` element.
|
|
@@ -508,15 +474,11 @@ declare namespace Button$1 {
|
|
|
508
474
|
type State = ButtonState;
|
|
509
475
|
type Props = ButtonProps;
|
|
510
476
|
}
|
|
511
|
-
//#endregion
|
|
512
|
-
//#region dashboard/components/ui/button.d.ts
|
|
513
477
|
declare const buttonVariants: (props?: ({
|
|
514
|
-
variant?: "default" | "
|
|
515
|
-
size?: "default" | "
|
|
478
|
+
variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
|
|
479
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xs" | "lg" | "sm" | "xs" | null | undefined;
|
|
516
480
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
517
481
|
declare function Button({ className, variant, size, ...props }: Button$1.Props & VariantProps<typeof buttonVariants>): import("react").JSX.Element;
|
|
518
|
-
//#endregion
|
|
519
|
-
//#region dashboard/components/ui/card.d.ts
|
|
520
482
|
declare function Card({ className, size, ...props }: React$1.ComponentProps<"div"> & {
|
|
521
483
|
size?: "default" | "sm";
|
|
522
484
|
}): React$1.JSX.Element;
|
|
@@ -526,8 +488,6 @@ declare function CardDescription({ className, ...props }: React$1.ComponentProps
|
|
|
526
488
|
declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
527
489
|
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
528
490
|
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
529
|
-
//#endregion
|
|
530
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/field/root/FieldRoot.d.mts
|
|
531
491
|
interface FieldRootState {
|
|
532
492
|
/**
|
|
533
493
|
* Whether the component should ignore user interaction.
|
|
@@ -554,8 +514,6 @@ interface FieldRootState {
|
|
|
554
514
|
*/
|
|
555
515
|
focused: boolean;
|
|
556
516
|
}
|
|
557
|
-
//#endregion
|
|
558
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/checkbox/root/CheckboxRoot.d.mts
|
|
559
517
|
/**
|
|
560
518
|
* Represents the checkbox itself.
|
|
561
519
|
* Renders a `<span>` element and a hidden `<input>` beside.
|
|
@@ -668,21 +626,11 @@ declare namespace CheckboxRoot {
|
|
|
668
626
|
type ChangeEventReason = CheckboxRootChangeEventReason;
|
|
669
627
|
type ChangeEventDetails = CheckboxRootChangeEventDetails;
|
|
670
628
|
}
|
|
671
|
-
//#endregion
|
|
672
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/internals/useTransitionStatus.d.mts
|
|
673
629
|
type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
|
|
674
|
-
//#endregion
|
|
675
|
-
//#region dashboard/components/ui/checkbox.d.ts
|
|
676
630
|
declare function Checkbox({ className, ...props }: CheckboxRoot.Props): import("react").JSX.Element;
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region dashboard/components/ui/input.d.ts
|
|
679
631
|
declare function Input({ className, type, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
680
|
-
//#endregion
|
|
681
|
-
//#region dashboard/components/ui/kbd.d.ts
|
|
682
632
|
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("react").JSX.Element;
|
|
683
633
|
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
684
|
-
//#endregion
|
|
685
|
-
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts
|
|
686
634
|
declare type AlignedPlacement = `${Side$1}-${Alignment}`;
|
|
687
635
|
declare type Alignment = 'start' | 'end';
|
|
688
636
|
declare type Axis = 'x' | 'y';
|
|
@@ -697,8 +645,6 @@ declare type Rect = Prettify$1<Coords & Dimensions>;
|
|
|
697
645
|
declare type Side$1 = 'top' | 'right' | 'bottom' | 'left';
|
|
698
646
|
declare type SideObject = { [key in Side$1]: number; };
|
|
699
647
|
declare type Strategy = 'absolute' | 'fixed';
|
|
700
|
-
//#endregion
|
|
701
|
-
//#region ../../node_modules/.bun/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts
|
|
702
648
|
declare interface ComputePositionReturn extends Coords {
|
|
703
649
|
/**
|
|
704
650
|
* The final chosen placement of the floating element.
|
|
@@ -746,8 +692,6 @@ declare interface MiddlewareData {
|
|
|
746
692
|
enabled: { [key in Axis]: boolean; };
|
|
747
693
|
}) | undefined;
|
|
748
694
|
}
|
|
749
|
-
//#endregion
|
|
750
|
-
//#region ../../node_modules/.bun/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.mts
|
|
751
695
|
/**
|
|
752
696
|
* Custom positioning reference element.
|
|
753
697
|
* @see https://floating-ui.com/docs/virtual-elements
|
|
@@ -757,8 +701,6 @@ declare interface VirtualElement {
|
|
|
757
701
|
getClientRects?: (() => Array<ClientRectObject> | DOMRectList) | undefined;
|
|
758
702
|
contextElement?: Element | undefined;
|
|
759
703
|
}
|
|
760
|
-
//#endregion
|
|
761
|
-
//#region ../../node_modules/.bun/@floating-ui+react-dom@2.1.9+ab9c01e4ccdf52df/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.d.mts
|
|
762
704
|
declare type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
763
705
|
declare type ReferenceType$1 = Element | VirtualElement;
|
|
764
706
|
declare type UseFloatingData = Prettify<ComputePositionReturn & {
|
|
@@ -803,8 +745,6 @@ declare type UseFloatingReturn<RT extends ReferenceType$1 = ReferenceType$1> = P
|
|
|
803
745
|
floating: HTMLElement | null;
|
|
804
746
|
};
|
|
805
747
|
}>;
|
|
806
|
-
//#endregion
|
|
807
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.5.0+2fde69a3fd50c568/node_modules/@base-ui/utils/store/Store.d.mts
|
|
808
748
|
type Listener<T> = (state: T) => void;
|
|
809
749
|
/**
|
|
810
750
|
* A data store implementation that allows subscribing to state changes and updating the state.
|
|
@@ -869,8 +809,6 @@ declare class Store<State> {
|
|
|
869
809
|
}
|
|
870
810
|
type SelectorArgs$1<Selector> = Selector extends ((...params: infer Params) => any) ? Tail$1<Params> : never;
|
|
871
811
|
type Tail$1<T extends readonly any[]> = T extends readonly [any, ...infer Rest] ? Rest : [];
|
|
872
|
-
//#endregion
|
|
873
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.5.0+2fde69a3fd50c568/node_modules/@base-ui/utils/store/ReactStore.d.mts
|
|
874
812
|
/**
|
|
875
813
|
* A Store that supports controlled state keys, non-reactive values and provides utility methods for React.
|
|
876
814
|
*/
|
|
@@ -964,8 +902,6 @@ type ObserveSelector<State> = (state: State) => any;
|
|
|
964
902
|
type SelectorFunction<State> = (state: State, ...args: any[]) => any;
|
|
965
903
|
type Tail<T extends readonly any[]> = T extends readonly [any, ...infer Rest] ? Rest : [];
|
|
966
904
|
type SelectorArgs<Selector> = Selector extends ((...params: infer Params) => any) ? Tail<Params> : never;
|
|
967
|
-
//#endregion
|
|
968
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/utils/popups/popupTriggerMap.d.mts
|
|
969
905
|
/**
|
|
970
906
|
* Data structure to keep track of popup trigger elements by their IDs.
|
|
971
907
|
*
|
|
@@ -1009,8 +945,6 @@ declare class PopupTriggerMap {
|
|
|
1009
945
|
*/
|
|
1010
946
|
get size(): number;
|
|
1011
947
|
}
|
|
1012
|
-
//#endregion
|
|
1013
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/utils/popups/popupHandle.d.mts
|
|
1014
948
|
/**
|
|
1015
949
|
* Store shape holding a trigger registry, required by `BasePopupHandle.openByTrigger` to resolve a
|
|
1016
950
|
* trigger element by id on both the attached root's store and the fallback store.
|
|
@@ -1100,11 +1034,7 @@ declare class BasePopupHandle<HandleStore extends PopupHandleStoreWithTriggers,
|
|
|
1100
1034
|
*/
|
|
1101
1035
|
protected closePopup(): void;
|
|
1102
1036
|
}
|
|
1103
|
-
//#endregion
|
|
1104
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.5.0+2fde69a3fd50c568/node_modules/@base-ui/utils/useEnhancedClickHandler.d.mts
|
|
1105
1037
|
type InteractionType = 'mouse' | 'touch' | 'pen' | 'keyboard' | '';
|
|
1106
|
-
//#endregion
|
|
1107
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/utils/popups/store.d.mts
|
|
1108
1038
|
/**
|
|
1109
1039
|
* State common to all popup stores.
|
|
1110
1040
|
*/
|
|
@@ -1207,13 +1137,9 @@ type PopupStoreContext<ChangeEventDetails> = {
|
|
|
1207
1137
|
* context and selectors) and add any component-specific trigger-invoked members such as `setOpen`.
|
|
1208
1138
|
*/
|
|
1209
1139
|
type PopupTriggerStoreKeys = 'context' | 'select' | 'set' | 'state' | 'update' | 'useState';
|
|
1210
|
-
//#endregion
|
|
1211
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/utils/popups/popupStoreUtils.d.mts
|
|
1212
1140
|
type PayloadChildRenderFunction<Payload> = (arg: {
|
|
1213
1141
|
payload: Payload | undefined;
|
|
1214
1142
|
}) => React$1.ReactNode;
|
|
1215
|
-
//#endregion
|
|
1216
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.d.mts
|
|
1217
1143
|
interface FloatingRootState {
|
|
1218
1144
|
open: boolean;
|
|
1219
1145
|
transitionStatus: TransitionStatus | undefined;
|
|
@@ -1275,8 +1201,6 @@ declare class FloatingRootStore extends ReactStore<Readonly<FloatingRootState>,
|
|
|
1275
1201
|
*/
|
|
1276
1202
|
setOpen: (newOpen: boolean, eventDetails: BaseUIChangeEventDetails<string>) => void;
|
|
1277
1203
|
}
|
|
1278
|
-
//#endregion
|
|
1279
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/floating-ui-react/types.d.mts
|
|
1280
1204
|
type NarrowedElement<T> = T extends Element ? T : Element;
|
|
1281
1205
|
interface ExtendedRefs {
|
|
1282
1206
|
reference: React$1.RefObject<ReferenceType | null>;
|
|
@@ -1314,8 +1238,6 @@ type FloatingContext = Omit<UseFloatingReturn<ReferenceType>, 'refs' | 'elements
|
|
|
1314
1238
|
rootStore: FloatingRootContext;
|
|
1315
1239
|
};
|
|
1316
1240
|
type ReferenceType = Element | VirtualElement;
|
|
1317
|
-
//#endregion
|
|
1318
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/internals/useAnchorPositioning.d.mts
|
|
1319
1241
|
type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
|
|
1320
1242
|
type Align = 'start' | 'center' | 'end';
|
|
1321
1243
|
type Boundary = 'clipping-ancestors' | Element | Element[] | Rect;
|
|
@@ -1518,14 +1440,10 @@ interface UseAnchorPositioningSharedParameters {
|
|
|
1518
1440
|
*/
|
|
1519
1441
|
collisionAvoidance?: CollisionAvoidance | undefined;
|
|
1520
1442
|
}
|
|
1521
|
-
//#endregion
|
|
1522
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/utils/adaptiveOriginConstants.d.mts
|
|
1523
1443
|
type AdaptiveOriginMiddleware = {
|
|
1524
1444
|
name: string;
|
|
1525
1445
|
fn: (...args: any[]) => any;
|
|
1526
1446
|
};
|
|
1527
|
-
//#endregion
|
|
1528
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/separator/Separator.d.mts
|
|
1529
1447
|
/**
|
|
1530
1448
|
* A separator element accessible to screen readers.
|
|
1531
1449
|
* Renders a `<div>` element.
|
|
@@ -1550,8 +1468,6 @@ declare namespace Separator$1 {
|
|
|
1550
1468
|
type Props = SeparatorProps;
|
|
1551
1469
|
type State = SeparatorState;
|
|
1552
1470
|
}
|
|
1553
|
-
//#endregion
|
|
1554
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/toggle/Toggle.d.mts
|
|
1555
1471
|
/**
|
|
1556
1472
|
* A two-state button that can be on or off.
|
|
1557
1473
|
* Renders a `<button>` element.
|
|
@@ -1606,8 +1522,6 @@ declare namespace Toggle$1 {
|
|
|
1606
1522
|
type ChangeEventReason = ToggleChangeEventReason;
|
|
1607
1523
|
type ChangeEventDetails = ToggleChangeEventDetails;
|
|
1608
1524
|
}
|
|
1609
|
-
//#endregion
|
|
1610
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/toggle-group/ToggleGroup.d.mts
|
|
1611
1525
|
/**
|
|
1612
1526
|
* Provides a shared state to a series of toggle buttons.
|
|
1613
1527
|
*
|
|
@@ -1681,8 +1595,6 @@ declare namespace ToggleGroup$1 {
|
|
|
1681
1595
|
type ChangeEventReason = ToggleGroupChangeEventReason;
|
|
1682
1596
|
type ChangeEventDetails = ToggleGroupChangeEventDetails;
|
|
1683
1597
|
}
|
|
1684
|
-
//#endregion
|
|
1685
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/tooltip/store/TooltipStore.d.mts
|
|
1686
1598
|
type State$1<Payload> = PopupStoreState<Payload> & {
|
|
1687
1599
|
disabled: boolean;
|
|
1688
1600
|
instantType: 'delay' | 'dismiss' | 'focus' | undefined;
|
|
@@ -2084,8 +1996,6 @@ declare class TooltipStore<Payload> extends ReactStore<Readonly<State$1<Payload>
|
|
|
2084
1996
|
setOpen: (nextOpen: boolean, eventDetails: Omit<TooltipRoot.ChangeEventDetails, 'preventUnmountOnClose'>) => void;
|
|
2085
1997
|
cancelPendingOpen(event: MouseEvent | PointerEvent): void;
|
|
2086
1998
|
}
|
|
2087
|
-
//#endregion
|
|
2088
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/tooltip/store/TooltipHandle.d.mts
|
|
2089
1999
|
/**
|
|
2090
2000
|
* Controls a Tooltip imperatively and associates detached `Tooltip.Trigger` components with a
|
|
2091
2001
|
* `Tooltip.Root`. Create one with `Tooltip.createHandle()` and pass it to the `handle` prop of the
|
|
@@ -2116,8 +2026,6 @@ declare class TooltipHandle<Payload> extends BasePopupHandle<TooltipHandleStore<
|
|
|
2116
2026
|
*/
|
|
2117
2027
|
get isOpen(): boolean;
|
|
2118
2028
|
}
|
|
2119
|
-
//#endregion
|
|
2120
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/tooltip/root/TooltipRoot.d.mts
|
|
2121
2029
|
/**
|
|
2122
2030
|
* Groups all parts of the tooltip.
|
|
2123
2031
|
* Doesn't render its own HTML element.
|
|
@@ -2208,8 +2116,6 @@ declare namespace TooltipRoot {
|
|
|
2208
2116
|
type ChangeEventReason = TooltipRootChangeEventReason;
|
|
2209
2117
|
type ChangeEventDetails = TooltipRootChangeEventDetails;
|
|
2210
2118
|
}
|
|
2211
|
-
//#endregion
|
|
2212
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/tooltip/trigger/TooltipTrigger.d.mts
|
|
2213
2119
|
/**
|
|
2214
2120
|
* An element to attach the tooltip to.
|
|
2215
2121
|
* Renders a `<button>` element.
|
|
@@ -2262,8 +2168,6 @@ declare namespace TooltipTrigger$1 {
|
|
|
2262
2168
|
type State = TooltipTriggerState;
|
|
2263
2169
|
type Props<Payload = unknown> = TooltipTriggerProps<Payload>;
|
|
2264
2170
|
}
|
|
2265
|
-
//#endregion
|
|
2266
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/tooltip/positioner/TooltipPositioner.d.mts
|
|
2267
2171
|
/**
|
|
2268
2172
|
* Positions the tooltip against the trigger.
|
|
2269
2173
|
* Renders a `<div>` element.
|
|
@@ -2305,8 +2209,6 @@ declare namespace TooltipPositioner {
|
|
|
2305
2209
|
type State = TooltipPositionerState;
|
|
2306
2210
|
type Props = TooltipPositionerProps;
|
|
2307
2211
|
}
|
|
2308
|
-
//#endregion
|
|
2309
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/tooltip/popup/TooltipPopup.d.mts
|
|
2310
2212
|
/**
|
|
2311
2213
|
* A container for the tooltip contents.
|
|
2312
2214
|
* Renders a `<div>` element.
|
|
@@ -2341,8 +2243,6 @@ declare namespace TooltipPopup {
|
|
|
2341
2243
|
type State = TooltipPopupState;
|
|
2342
2244
|
type Props = TooltipPopupProps;
|
|
2343
2245
|
}
|
|
2344
|
-
//#endregion
|
|
2345
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/tooltip/provider/TooltipProvider.d.mts
|
|
2346
2246
|
/**
|
|
2347
2247
|
* Provides a shared delay for multiple tooltips. The grouping logic ensures that
|
|
2348
2248
|
* once a tooltip becomes visible, the adjacent tooltips will be shown instantly.
|
|
@@ -2372,8 +2272,6 @@ declare namespace TooltipProvider$1 {
|
|
|
2372
2272
|
type State = TooltipProviderState;
|
|
2373
2273
|
type Props = TooltipProviderProps;
|
|
2374
2274
|
}
|
|
2375
|
-
//#endregion
|
|
2376
|
-
//#region ../../node_modules/.bun/@base-ui+utils@0.5.0+2fde69a3fd50c568/node_modules/@base-ui/utils/useTimeout.d.mts
|
|
2377
2275
|
type TimeoutId = number;
|
|
2378
2276
|
declare class Timeout {
|
|
2379
2277
|
static create(): Timeout;
|
|
@@ -2386,8 +2284,6 @@ declare class Timeout {
|
|
|
2386
2284
|
clear: () => void;
|
|
2387
2285
|
disposeEffect: () => () => void;
|
|
2388
2286
|
}
|
|
2389
|
-
//#endregion
|
|
2390
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/popover/store/PopoverStore.d.mts
|
|
2391
2287
|
type State<Payload> = PopupStoreState<Payload> & {
|
|
2392
2288
|
disabled: boolean;
|
|
2393
2289
|
instantType: 'dismiss' | 'click' | 'focus' | 'trigger-change' | undefined;
|
|
@@ -2797,8 +2693,6 @@ declare class PopoverStore<Payload> extends ReactStore<Readonly<State<Payload>>,
|
|
|
2797
2693
|
constructor(initialState: Partial<State<Payload>>, floatingId: string | undefined, nested: boolean);
|
|
2798
2694
|
setOpen: (nextOpen: boolean, eventDetails: Omit<PopoverRoot.ChangeEventDetails, 'preventUnmountOnClose'>) => void;
|
|
2799
2695
|
}
|
|
2800
|
-
//#endregion
|
|
2801
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/popover/store/PopoverHandle.d.mts
|
|
2802
2696
|
/**
|
|
2803
2697
|
* Controls a Popover imperatively and associates detached `Popover.Trigger` components with a
|
|
2804
2698
|
* `Popover.Root`. Create one with `Popover.createHandle()` and pass it to the `handle` prop of the
|
|
@@ -2829,8 +2723,6 @@ declare class PopoverHandle<Payload> extends BasePopupHandle<PopoverHandleStore<
|
|
|
2829
2723
|
*/
|
|
2830
2724
|
get isOpen(): boolean;
|
|
2831
2725
|
}
|
|
2832
|
-
//#endregion
|
|
2833
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/popover/root/PopoverRoot.d.mts
|
|
2834
2726
|
/**
|
|
2835
2727
|
* Groups all parts of the popover.
|
|
2836
2728
|
* Doesn't render its own HTML element.
|
|
@@ -2922,8 +2814,6 @@ declare namespace PopoverRoot {
|
|
|
2922
2814
|
type ChangeEventReason = PopoverRootChangeEventReason;
|
|
2923
2815
|
type ChangeEventDetails = PopoverRootChangeEventDetails;
|
|
2924
2816
|
}
|
|
2925
|
-
//#endregion
|
|
2926
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/popover/trigger/PopoverTrigger.d.mts
|
|
2927
2817
|
/**
|
|
2928
2818
|
* A button that opens the popover.
|
|
2929
2819
|
* Renders a `<button>` element.
|
|
@@ -2990,8 +2880,6 @@ declare namespace PopoverTrigger$1 {
|
|
|
2990
2880
|
type State = PopoverTriggerState;
|
|
2991
2881
|
type Props<Payload = unknown> = PopoverTriggerProps<Payload>;
|
|
2992
2882
|
}
|
|
2993
|
-
//#endregion
|
|
2994
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/popover/positioner/PopoverPositioner.d.mts
|
|
2995
2883
|
/**
|
|
2996
2884
|
* Positions the popover against the trigger.
|
|
2997
2885
|
* Renders a `<div>` element.
|
|
@@ -3026,8 +2914,6 @@ declare namespace PopoverPositioner {
|
|
|
3026
2914
|
type State = PopoverPositionerState;
|
|
3027
2915
|
type Props = PopoverPositionerProps;
|
|
3028
2916
|
}
|
|
3029
|
-
//#endregion
|
|
3030
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.9.0+2fba225ddfdb7506/node_modules/@base-ui/react/popover/popup/PopoverPopup.d.mts
|
|
3031
2917
|
/**
|
|
3032
2918
|
* A container for the popover contents.
|
|
3033
2919
|
* Renders a `<div>` element.
|
|
@@ -3085,16 +2971,10 @@ declare namespace PopoverPopup {
|
|
|
3085
2971
|
type State = PopoverPopupState;
|
|
3086
2972
|
type Props = PopoverPopupProps;
|
|
3087
2973
|
}
|
|
3088
|
-
//#endregion
|
|
3089
|
-
//#region dashboard/components/ui/popover.d.ts
|
|
3090
2974
|
declare function Popover({ ...props }: PopoverRoot.Props): import("react").JSX.Element;
|
|
3091
2975
|
declare function PopoverTrigger({ ...props }: PopoverTrigger$1.Props): import("react").JSX.Element;
|
|
3092
2976
|
declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: PopoverPopup.Props & Pick<PopoverPositioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react").JSX.Element;
|
|
3093
|
-
//#endregion
|
|
3094
|
-
//#region dashboard/components/ui/separator.d.ts
|
|
3095
2977
|
declare function Separator({ className, orientation, ...props }: Separator$1.Props): import("react").JSX.Element;
|
|
3096
|
-
//#endregion
|
|
3097
|
-
//#region dashboard/components/ui/table.d.ts
|
|
3098
2978
|
declare function Table({ className, ...props }: React$1.ComponentProps<"table">): React$1.JSX.Element;
|
|
3099
2979
|
declare function TableHeader({ className, ...props }: React$1.ComponentProps<"thead">): React$1.JSX.Element;
|
|
3100
2980
|
declare function TableBody({ className, ...props }: React$1.ComponentProps<"tbody">): React$1.JSX.Element;
|
|
@@ -3103,25 +2983,18 @@ declare function TableRow({ className, ...props }: React$1.ComponentProps<"tr">)
|
|
|
3103
2983
|
declare function TableHead({ className, ...props }: React$1.ComponentProps<"th">): React$1.JSX.Element;
|
|
3104
2984
|
declare function TableCell({ className, ...props }: React$1.ComponentProps<"td">): React$1.JSX.Element;
|
|
3105
2985
|
declare function TableCaption({ className, ...props }: React$1.ComponentProps<"caption">): React$1.JSX.Element;
|
|
3106
|
-
//#endregion
|
|
3107
|
-
//#region dashboard/components/ui/toggle.d.ts
|
|
3108
2986
|
declare const toggleVariants: (props?: ({
|
|
3109
2987
|
variant?: "default" | "outline" | null | undefined;
|
|
3110
|
-
size?: "default" | "
|
|
2988
|
+
size?: "default" | "lg" | "sm" | null | undefined;
|
|
3111
2989
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
3112
2990
|
declare function Toggle({ className, variant, size, ...props }: Toggle$1.Props & VariantProps<typeof toggleVariants>): import("react").JSX.Element;
|
|
3113
|
-
//#endregion
|
|
3114
|
-
//#region dashboard/components/ui/toggle-group.d.ts
|
|
3115
2991
|
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: ToggleGroup$1.Props & VariantProps<typeof toggleVariants> & {
|
|
3116
2992
|
spacing?: number;
|
|
3117
2993
|
orientation?: "horizontal" | "vertical";
|
|
3118
2994
|
}): React$1.JSX.Element;
|
|
3119
2995
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: Toggle$1.Props & VariantProps<typeof toggleVariants>): React$1.JSX.Element;
|
|
3120
|
-
//#endregion
|
|
3121
|
-
//#region dashboard/components/ui/tooltip.d.ts
|
|
3122
2996
|
declare function TooltipProvider({ delay, ...props }: TooltipProvider$1.Props): import("react").JSX.Element;
|
|
3123
2997
|
declare function Tooltip({ ...props }: TooltipRoot.Props): import("react").JSX.Element;
|
|
3124
2998
|
declare function TooltipTrigger({ ...props }: TooltipTrigger$1.Props): import("react").JSX.Element;
|
|
3125
2999
|
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPopup.Props & Pick<TooltipPositioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react").JSX.Element;
|
|
3126
|
-
//#endregion
|
|
3127
3000
|
export { type AppFetchResult, Badge, Button, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type DashboardExtension, type DashboardSlots, type DrawerTab, type DrawerTabContext, type ExtensionPage, Input, Kbd, KbdGroup, type PageProps, type Placement, Popover, PopoverContent, PopoverTrigger, type Route, Separator, type SidebarLink, type SidebarSlotContext, type SlotContext, type SlotName, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TraceSpan, type TraceSummary, badgeVariants, buttonVariants, toggleVariants };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// src/definitions.ts
|
|
2
|
+
/** Definition file kinds: `<name>.<kind>.ts`. */
|
|
3
|
+
const DEFINITION_KINDS = [
|
|
4
|
+
"service",
|
|
5
|
+
"events",
|
|
6
|
+
"resource",
|
|
7
|
+
"table",
|
|
8
|
+
"action",
|
|
9
|
+
"command",
|
|
10
|
+
"tool",
|
|
11
|
+
"socket",
|
|
12
|
+
"listener",
|
|
13
|
+
"workflow",
|
|
14
|
+
"step"
|
|
15
|
+
];
|
|
16
|
+
/** The extensions a definition file may have. */
|
|
17
|
+
const DEFINITION_EXTENSIONS = [
|
|
18
|
+
"ts",
|
|
19
|
+
"tsx",
|
|
20
|
+
"mts",
|
|
21
|
+
"js",
|
|
22
|
+
"jsx",
|
|
23
|
+
"mjs"
|
|
24
|
+
];
|
|
25
|
+
/** A definition file name: the name, then the kind, then the extension. */
|
|
26
|
+
const DEFINITION_FILE = new RegExp(`^(.*)\\.(${DEFINITION_KINDS.join("|")})\\.(${DEFINITION_EXTENSIONS.join("|")})$`);
|
|
27
|
+
/** A test file name: `*.test.ts`, `*.spec.mjs` and the like. */
|
|
28
|
+
const TEST_FILE = /\.(test|spec)\.[cm]?[jt]sx?$/;
|
|
29
|
+
/** The generated file that imports every definition file. */
|
|
30
|
+
const MANIFEST_FILE = "services.gen.ts";
|
|
31
|
+
export { TEST_FILE as a, MANIFEST_FILE as i, DEFINITION_FILE as n, DEFINITION_KINDS as r, DEFINITION_EXTENSIONS as t };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","names":[],"sources":["../src/definitions.ts"],"sourcesContent":["// The project structure's file names, shared by the manifest and the lint.\n// A leaf: the lint plugin bundles it to run under Node.\n\n/** Definition file kinds: `<name>.<kind>.ts`. */\nexport const DEFINITION_KINDS = [\n \"service\",\n \"events\",\n \"resource\",\n \"table\",\n \"action\",\n \"command\",\n \"tool\",\n \"socket\",\n \"listener\",\n \"workflow\",\n \"step\",\n] as const;\nexport type DefinitionKind = (typeof DEFINITION_KINDS)[number];\n\n/** The extensions a definition file may have. */\nexport const DEFINITION_EXTENSIONS = [\"ts\", \"tsx\", \"mts\", \"js\", \"jsx\", \"mjs\"];\n\n/** A definition file name: the name, then the kind, then the extension. */\nexport const DEFINITION_FILE = new RegExp(\n `^(.*)\\\\.(${DEFINITION_KINDS.join(\"|\")})\\\\.(${DEFINITION_EXTENSIONS.join(\"|\")})$`,\n);\n\n/** A test file name: `*.test.ts`, `*.spec.mjs` and the like. */\nexport const TEST_FILE = /\\.(test|spec)\\.[cm]?[jt]sx?$/;\n\n/** The generated file that imports every definition file. */\nexport const MANIFEST_FILE = \"services.gen.ts\";\n"],"mappings":";;AAIA,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;AAIA,MAAa,wBAAwB;CAAC;CAAM;CAAO;CAAO;CAAM;CAAO;AAAK;;AAG5E,MAAa,kBAAkB,IAAI,OACjC,YAAY,iBAAiB,KAAK,GAAG,EAAE,OAAO,sBAAsB,KAAK,GAAG,EAAE,GAChF;;AAGA,MAAa,YAAY;;AAGzB,MAAa,gBAAgB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { n as writeAppContract, o as importEntry } from "./client-contract-file.js";
|
|
2
|
+
import { t as sendToSupervisor } from "./dev-protocol.js";
|
|
3
|
+
import { n as serveApp, t as printBanner } from "./serve2.js";
|
|
4
|
+
import { t as buildAppWorkflows } from "./workflows2.js";
|
|
5
|
+
import { brick, isBrickApp } from "@brickkit/core";
|
|
6
|
+
// src/dev-application.ts
|
|
7
|
+
/**
|
|
8
|
+
* Start the app `brick dev` runs: the entry's default-exported app, else one
|
|
9
|
+
* with the registered services. Its own dashboard option is ignored: `brick
|
|
10
|
+
* dev` serves the dev dashboard.
|
|
11
|
+
*/
|
|
12
|
+
async function startDevApplication(options) {
|
|
13
|
+
const exported = options.entry ? await importEntry(options.entry, { run: true }) : void 0;
|
|
14
|
+
if (isBrickApp(exported) && options.prefix !== void 0) console.warn(`[Brick-TS] Ignoring prefix ${options.prefix}: exported BrickApp prefix ${exported.definition.prefix} takes precedence.`);
|
|
15
|
+
if (options.clientOutput) {
|
|
16
|
+
if (!isBrickApp(exported) || !options.entry) throw new Error("Brick: client generation requires a default-exported BrickApp.");
|
|
17
|
+
await writeAppContract(exported, options.entry, options.clientOutput);
|
|
18
|
+
sendToSupervisor({ type: "brick:contract-ready" });
|
|
19
|
+
}
|
|
20
|
+
const app = isBrickApp(exported) ? exported : brick({ prefix: options.prefix });
|
|
21
|
+
await buildAppWorkflows(app, { reuse: true });
|
|
22
|
+
await serveApp(app, {
|
|
23
|
+
port: options.port,
|
|
24
|
+
dashboard: false
|
|
25
|
+
});
|
|
26
|
+
printBanner(app, {
|
|
27
|
+
label: "Development",
|
|
28
|
+
port: options.port
|
|
29
|
+
});
|
|
30
|
+
return app;
|
|
31
|
+
}
|
|
32
|
+
export { startDevApplication as t };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=dev-application.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-application.js","names":[],"sources":["../src/dev-application.ts"],"sourcesContent":["import { brick, isBrickApp } from \"@brickkit/core\";\nimport { importEntry } from \"./app-entry\";\nimport { writeAppContract } from \"./client-contract-file\";\nimport { sendToSupervisor, type WorkerOptions } from \"./dev-protocol\";\nimport { printBanner, serveApp } from \"./serve\";\nimport { buildAppWorkflows } from \"./workflows\";\n\n/**\n * Start the app `brick dev` runs: the entry's default-exported app, else one\n * with the registered services. Its own dashboard option is ignored: `brick\n * dev` serves the dev dashboard.\n */\nexport async function startDevApplication(\n options: Omit<WorkerOptions, \"entry\" | \"telemetry\"> & { entry?: string },\n) {\n const exported = options.entry\n ? await importEntry(options.entry, { run: true })\n : undefined;\n if (isBrickApp(exported) && options.prefix !== undefined) {\n console.warn(\n `[Brick-TS] Ignoring prefix ${options.prefix}: exported BrickApp prefix ${exported.definition.prefix} takes precedence.`,\n );\n }\n if (options.clientOutput) {\n if (!isBrickApp(exported) || !options.entry)\n throw new Error(\n \"Brick: client generation requires a default-exported BrickApp.\",\n );\n await writeAppContract(exported, options.entry, options.clientOutput);\n void sendToSupervisor({ type: \"brick:contract-ready\" });\n }\n const app = isBrickApp(exported)\n ? exported\n : brick({ prefix: options.prefix });\n await buildAppWorkflows(app, { reuse: true });\n await serveApp(app, { port: options.port, dashboard: false });\n printBanner(app, { label: \"Development\", port: options.port });\n return app;\n}\n"],"mappings":";;;;;;;;;;;AAYA,eAAsB,oBACpB,SACA;CACA,MAAM,WAAW,QAAQ,QACrB,MAAM,YAAY,QAAQ,OAAO,EAAE,KAAK,KAAK,CAAC,IAC9C,KAAA;CACJ,IAAI,WAAW,QAAQ,KAAK,QAAQ,WAAW,KAAA,GAC7C,QAAQ,KACN,8BAA8B,QAAQ,OAAO,6BAA6B,SAAS,WAAW,OAAO,mBACvG;CAEF,IAAI,QAAQ,cAAc;EACxB,IAAI,CAAC,WAAW,QAAQ,KAAK,CAAC,QAAQ,OACpC,MAAM,IAAI,MACR,gEACF;EACF,MAAM,iBAAiB,UAAU,QAAQ,OAAO,QAAQ,YAAY;EACpE,iBAAsB,EAAE,MAAM,uBAAuB,CAAC;CACxD;CACA,MAAM,MAAM,WAAW,QAAQ,IAC3B,WACA,MAAM,EAAE,QAAQ,QAAQ,OAAO,CAAC;CACpC,MAAM,kBAAkB,KAAK,EAAE,OAAO,KAAK,CAAC;CAC5C,MAAM,SAAS,KAAK;EAAE,MAAM,QAAQ;EAAM,WAAW;CAAM,CAAC;CAC5D,YAAY,KAAK;EAAE,OAAO;EAAe,MAAM,QAAQ;CAAK,CAAC;CAC7D,OAAO;AACT"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/dev-protocol.ts
|
|
2
|
+
const SEND_TIMEOUT_MS = 1e3;
|
|
3
|
+
/** Resolves once the message is written, or after a short timeout if the channel is gone. */
|
|
4
|
+
function sendToSupervisor(message) {
|
|
5
|
+
if (!process.send) return Promise.resolve();
|
|
6
|
+
return new Promise((resolve) => {
|
|
7
|
+
const timer = setTimeout(resolve, SEND_TIMEOUT_MS);
|
|
8
|
+
try {
|
|
9
|
+
process.send(message, () => {
|
|
10
|
+
clearTimeout(timer);
|
|
11
|
+
resolve();
|
|
12
|
+
});
|
|
13
|
+
} catch {
|
|
14
|
+
clearTimeout(timer);
|
|
15
|
+
resolve();
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export { sendToSupervisor as t };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=dev-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-protocol.js","names":[],"sources":["../src/dev-protocol.ts"],"sourcesContent":["import type {\n ApiDocument,\n ArchitectureSchema,\n DocumentationOptions,\n} from \"@brickkit/core\";\nimport type {\n SerializedError,\n TelemetryRecord,\n WorkerErrorPhase,\n} from \"./dashboard-protocol\";\n\nconst SEND_TIMEOUT_MS = 1000;\n\n/*\n * What `brick dev`'s supervisor and its worker process agree on: the options\n * the worker starts with, and the messages it sends back over IPC.\n */\n\n/** The worker's one argument, as JSON. */\nexport interface WorkerOptions {\n /** Absolute path of the app entry. */\n entry: string;\n port: number;\n prefix?: string;\n /** Absolute path of the browser contract to write before serving. */\n clientOutput?: string;\n /** The supervisor serves the dashboard, so the worker reports its spans. */\n telemetry: boolean;\n}\n\n/** Messages the dev worker sends to the supervisor over the IPC channel. */\nexport type WorkerMessage =\n | { type: \"brick:telemetry\"; records: TelemetryRecord[] }\n | { type: \"brick:error\"; phase: WorkerErrorPhase; error: SerializedError }\n | { type: \"brick:architecture\"; architecture: ArchitectureSchema }\n | { type: \"brick:api-documents\"; documents: ApiDocument[] }\n | {\n type: \"brick:inspector\";\n /** The loopback port the workflow inspector listens on. */\n port: number;\n /** What the dashboard sends with each request to prove who it is. */\n token: string;\n }\n | {\n type: \"brick:documentation\";\n /** The app's `documentation` option; absent when it has none. */\n documentation?: DocumentationOptions;\n }\n /** The local files the entry imports, for the supervisor to watch. */\n | { type: \"brick:dependencies\"; files: string[] }\n /** The browser contract is written; the frontend may start. */\n | { type: \"brick:contract-ready\" };\n\n/** Resolves once the message is written, or after a short timeout if the channel is gone. */\nexport function sendToSupervisor(message: WorkerMessage): Promise<void> {\n if (!process.send) return Promise.resolve();\n return new Promise((resolve) => {\n const timer = setTimeout(resolve, SEND_TIMEOUT_MS);\n try {\n process.send!(message, () => {\n clearTimeout(timer);\n resolve();\n });\n } catch {\n clearTimeout(timer);\n resolve();\n }\n });\n}\n"],"mappings":";AAWA,MAAM,kBAAkB;;AA2CxB,SAAgB,iBAAiB,SAAuC;CACtE,IAAI,CAAC,QAAQ,MAAM,OAAO,QAAQ,QAAQ;CAC1C,OAAO,IAAI,SAAS,YAAY;EAC9B,MAAM,QAAQ,WAAW,SAAS,eAAe;EACjD,IAAI;GACF,QAAQ,KAAM,eAAe;IAC3B,aAAa,KAAK;IAClB,QAAQ;GACV,CAAC;EACH,QAAQ;GACN,aAAa,KAAK;GAClB,QAAQ;EACV;CACF,CAAC;AACH"}
|
package/dist/dev-reporter.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/dev-reporter.d.ts
|
|
2
1
|
export interface DevReporterOptions {
|
|
3
2
|
/** The dashboard's ingest endpoint, for example http://127.0.0.1:9400/api/ingest. */
|
|
4
3
|
url: string;
|
|
@@ -11,5 +10,4 @@ export interface DevReporterOptions {
|
|
|
11
10
|
* not running never affects the app.
|
|
12
11
|
*/
|
|
13
12
|
export declare function installDevReporter(options: DevReporterOptions): boolean;
|
|
14
|
-
//#endregion
|
|
15
13
|
//# sourceMappingURL=dev-reporter.d.ts.map
|