@nar-bus/ui-shared 1.7.0 → 1.9.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/dist/components/SlugLink.d.ts +8 -3
- package/dist/components/SlugLink.d.ts.map +1 -1
- package/dist/components/form-sheet/FormSheet.d.ts +13 -1
- package/dist/components/form-sheet/FormSheet.d.ts.map +1 -1
- package/dist/components/form-sheet/ReadonlySheet.d.ts +13 -1
- package/dist/components/form-sheet/ReadonlySheet.d.ts.map +1 -1
- package/dist/components/monitoring/HealthScoreGauge.d.ts +6 -1
- package/dist/components/monitoring/HealthScoreGauge.d.ts.map +1 -1
- package/dist/components/monitoring/TimeWindowToggle.d.ts +6 -1
- package/dist/components/monitoring/TimeWindowToggle.d.ts.map +1 -1
- package/dist/components/monitoring/TopErrorCodesMini.d.ts +6 -1
- package/dist/components/monitoring/TopErrorCodesMini.d.ts.map +1 -1
- package/dist/hooks/useSSE.d.ts +6 -0
- package/dist/hooks/useSSE.d.ts.map +1 -1
- package/dist/index.js +3376 -3357
- package/package.json +2 -2
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export interface SlugLinkProps {
|
|
3
3
|
slug: string;
|
|
4
|
-
type
|
|
4
|
+
/** Entity type — free-form; consumer maps it to a route via `buildHref`. */
|
|
5
|
+
type: string;
|
|
5
6
|
id: number;
|
|
6
7
|
className?: string;
|
|
7
|
-
onClick?: (id: number, type:
|
|
8
|
+
onClick?: (id: number, type: string) => void;
|
|
9
|
+
/** Explicit href — full escape hatch; wins over `buildHref`/`ROUTE_MAP`. */
|
|
10
|
+
href?: string;
|
|
11
|
+
/** Route builder — the generic routing hook. Preferred over the deprecated `ROUTE_MAP`. */
|
|
12
|
+
buildHref?: (type: string, id: number) => string;
|
|
8
13
|
children?: ReactNode;
|
|
9
14
|
}
|
|
10
|
-
export declare function SlugLink({ slug, type, id, className, onClick, children }: SlugLinkProps): import("react").JSX.Element;
|
|
15
|
+
export declare function SlugLink({ slug, type, id, className, onClick, href, buildHref, children }: SlugLinkProps): import("react").JSX.Element;
|
|
11
16
|
//# sourceMappingURL=SlugLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SlugLink.d.ts","sourceRoot":"","sources":["../../src/components/SlugLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"SlugLink.d.ts","sourceRoot":"","sources":["../../src/components/SlugLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,4EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAaD,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,aAAa,+BAsCxG"}
|
|
@@ -25,6 +25,18 @@ export interface FormSheetProps {
|
|
|
25
25
|
/** `"gradient"` renders a dark entity-colored header (needs `headerGradient`). */
|
|
26
26
|
variant?: "default" | "gradient";
|
|
27
27
|
headerGradient?: FormSheetGradient;
|
|
28
|
+
/**
|
|
29
|
+
* Right-panel body surface, forwarded to inner ui-kit `Sheet` (1.5.0+).
|
|
30
|
+
* `"glass"` (default) keeps the translucent Glass Veil; `"solid"` renders an
|
|
31
|
+
* opaque card body — the package-native replacement for a consumer overriding
|
|
32
|
+
* `--sheet-glass-body` in global CSS (GAP-FS-SURFACE). No effect on `side="left"`.
|
|
33
|
+
*/
|
|
34
|
+
surface?: "glass" | "solid";
|
|
35
|
+
/**
|
|
36
|
+
* Forwarded to inner `Sheet` — renders the close (X) button at resting
|
|
37
|
+
* `--color-text-primary` for stronger contrast over dense content.
|
|
38
|
+
*/
|
|
39
|
+
closeButtonProminent?: boolean;
|
|
28
40
|
}
|
|
29
|
-
export declare function FormSheet({ open, onOpenChange, title, description, children, onSubmit, onCancel, isSubmitting, submitLabel, cancelLabel, side, className, variant, headerGradient, }: FormSheetProps): import("react").JSX.Element;
|
|
41
|
+
export declare function FormSheet({ open, onOpenChange, title, description, children, onSubmit, onCancel, isSubmitting, submitLabel, cancelLabel, side, className, variant, headerGradient, surface, closeButtonProminent, }: FormSheetProps): import("react").JSX.Element;
|
|
30
42
|
//# sourceMappingURL=FormSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSheet.d.ts","sourceRoot":"","sources":["../../../src/components/form-sheet/FormSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,cAAc,CAAC,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormSheet.d.ts","sourceRoot":"","sources":["../../../src/components/form-sheet/FormSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,WAAW,EACX,IAAc,EACd,SAAS,EACT,OAAmB,EACnB,cAAc,EACd,OAAO,EACP,oBAAoB,GACrB,EAAE,cAAc,+BAwChB"}
|
|
@@ -21,7 +21,19 @@ export interface ReadonlySheetProps {
|
|
|
21
21
|
variant?: "default" | "gradient";
|
|
22
22
|
headerGradient?: FormSheetGradient;
|
|
23
23
|
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Right-panel body surface, forwarded to inner ui-kit `Sheet` (1.5.0+).
|
|
26
|
+
* `"glass"` (default) keeps the translucent Glass Veil; `"solid"` renders an
|
|
27
|
+
* opaque card body — the package-native replacement for a consumer overriding
|
|
28
|
+
* `--sheet-glass-body` in global CSS (GAP-FS-SURFACE). No effect on `side="left"`.
|
|
29
|
+
*/
|
|
30
|
+
surface?: "glass" | "solid";
|
|
31
|
+
/**
|
|
32
|
+
* Forwarded to inner `Sheet` — renders the close (X) button at resting
|
|
33
|
+
* `--color-text-primary` for stronger contrast over dense content.
|
|
34
|
+
*/
|
|
35
|
+
closeButtonProminent?: boolean;
|
|
24
36
|
children: ReactNode;
|
|
25
37
|
}
|
|
26
|
-
export declare function ReadonlySheet({ open, onOpenChange, title, description, side, variant, headerGradient, className, children, }: ReadonlySheetProps): import("react").JSX.Element;
|
|
38
|
+
export declare function ReadonlySheet({ open, onOpenChange, title, description, side, variant, headerGradient, className, surface, closeButtonProminent, children, }: ReadonlySheetProps): import("react").JSX.Element;
|
|
27
39
|
//# sourceMappingURL=ReadonlySheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadonlySheet.d.ts","sourceRoot":"","sources":["../../../src/components/form-sheet/ReadonlySheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,IAAc,EACd,OAAoB,EACpB,cAAc,EACd,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,+
|
|
1
|
+
{"version":3,"file":"ReadonlySheet.d.ts","sourceRoot":"","sources":["../../../src/components/form-sheet/ReadonlySheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAuB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IACjC,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,WAAW,EACX,IAAc,EACd,OAAoB,EACpB,cAAc,EACd,SAAS,EACT,OAAO,EACP,oBAAoB,EACpB,QAAQ,GACT,EAAE,kBAAkB,+BAmBpB"}
|
|
@@ -8,8 +8,13 @@ export interface HealthScoreGaugeProps {
|
|
|
8
8
|
onDetailsClick?: () => void;
|
|
9
9
|
ariaLabel?: string;
|
|
10
10
|
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* i18next namespace of the labels. Default `"common"` — pass your app's
|
|
13
|
+
* namespace if the strings live elsewhere (PKG-HES-009: generic, not HES-locked).
|
|
14
|
+
*/
|
|
15
|
+
namespace?: string;
|
|
11
16
|
}
|
|
12
17
|
/** Score → band mapping (D-231 AD-MONITORING-6 thresholds: 39/40, 69/70, 89/90). */
|
|
13
18
|
export declare function scoreToBand(score: number | null): HealthBand;
|
|
14
|
-
export declare function HealthScoreGauge({ score, band, size, state, onDetailsClick, ariaLabel, className, }: HealthScoreGaugeProps): import("react").JSX.Element;
|
|
19
|
+
export declare function HealthScoreGauge({ score, band, size, state, onDetailsClick, ariaLabel, className, namespace, }: HealthScoreGaugeProps): import("react").JSX.Element;
|
|
15
20
|
//# sourceMappingURL=HealthScoreGauge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HealthScoreGauge.d.ts","sourceRoot":"","sources":["../../../src/components/monitoring/HealthScoreGauge.tsx"],"names":[],"mappings":"AAmBA,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,CAM5D;AAwCD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,IAAI,EACJ,IAAW,EACX,KAAiB,EACjB,cAAc,EACd,SAAS,EACT,SAAS,
|
|
1
|
+
{"version":3,"file":"HealthScoreGauge.d.ts","sourceRoot":"","sources":["../../../src/components/monitoring/HealthScoreGauge.tsx"],"names":[],"mappings":"AAmBA,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhF,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiBD,oFAAoF;AACpF,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,CAM5D;AAwCD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,IAAI,EACJ,IAAW,EACX,KAAiB,EACjB,cAAc,EACd,SAAS,EACT,SAAS,EACT,SAAoB,GACrB,EAAE,qBAAqB,+BAyNvB"}
|
|
@@ -5,6 +5,11 @@ export interface TimeWindowToggleProps {
|
|
|
5
5
|
state?: "default" | "loading" | "empty" | "error" | "critical";
|
|
6
6
|
errorTooltip?: string;
|
|
7
7
|
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* i18next namespace of the labels. Default `"common"` — pass your app's
|
|
10
|
+
* namespace if the strings live elsewhere (PKG-HES-009: generic, not HES-locked).
|
|
11
|
+
*/
|
|
12
|
+
namespace?: string;
|
|
8
13
|
}
|
|
9
|
-
export declare function TimeWindowToggle({ value, onChange, state, errorTooltip, className, }: TimeWindowToggleProps): import("react").JSX.Element;
|
|
14
|
+
export declare function TimeWindowToggle({ value, onChange, state, errorTooltip, className, namespace, }: TimeWindowToggleProps): import("react").JSX.Element;
|
|
10
15
|
//# sourceMappingURL=TimeWindowToggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeWindowToggle.d.ts","sourceRoot":"","sources":["../../../src/components/monitoring/TimeWindowToggle.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AAW3D,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,KAAiB,EACjB,YAAY,EACZ,SAAS,
|
|
1
|
+
{"version":3,"file":"TimeWindowToggle.d.ts","sourceRoot":"","sources":["../../../src/components/monitoring/TimeWindowToggle.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;AAW3D,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,gBAAgB,CAAC;IACxB,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC7C,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,KAAiB,EACjB,YAAY,EACZ,SAAS,EACT,SAAoB,GACrB,EAAE,qBAAqB,+BAiDvB"}
|
|
@@ -12,6 +12,11 @@ export interface TopErrorCodesMiniProps {
|
|
|
12
12
|
errorMessage?: string;
|
|
13
13
|
onRetry?: () => void;
|
|
14
14
|
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* i18next namespace of the labels. Default `"common"` — pass your app's
|
|
17
|
+
* namespace if the strings live elsewhere (PKG-HES-009: generic, not HES-locked).
|
|
18
|
+
*/
|
|
19
|
+
namespace?: string;
|
|
15
20
|
}
|
|
16
|
-
export declare function TopErrorCodesMini({ codes, onCodeClick, state, errorMessage, onRetry, className, }: TopErrorCodesMiniProps): import("react").JSX.Element;
|
|
21
|
+
export declare function TopErrorCodesMini({ codes, onCodeClick, state, errorMessage, onRetry, className, namespace, }: TopErrorCodesMiniProps): import("react").JSX.Element;
|
|
17
22
|
//# sourceMappingURL=TopErrorCodesMini.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopErrorCodesMini.d.ts","sourceRoot":"","sources":["../../../src/components/monitoring/TopErrorCodesMini.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAC9B,SAAS,GACT,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiDD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,KAAiB,EACjB,YAAY,EACZ,OAAO,EACP,SAAS,
|
|
1
|
+
{"version":3,"file":"TopErrorCodesMini.d.ts","sourceRoot":"","sources":["../../../src/components/monitoring/TopErrorCodesMini.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAC9B,SAAS,GACT,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,CAAC;AAEf,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiDD,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,KAAiB,EACjB,YAAY,EACZ,OAAO,EACP,SAAS,EACT,SAAoB,GACrB,EAAE,sBAAsB,+BAkGxB"}
|
package/dist/hooks/useSSE.d.ts
CHANGED
|
@@ -18,6 +18,12 @@ export interface SSEOptions {
|
|
|
18
18
|
* (`useHeaderStream`, `useNotificationList`, `LiveMonitorPanel`) are unaffected.
|
|
19
19
|
*/
|
|
20
20
|
events?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Mock-mode event factory. Defaults to a built-in generic sample generator;
|
|
23
|
+
* inject to control mock payloads (transport-only consumers override this so
|
|
24
|
+
* the hook carries no domain-specific mock content — PKG-HES-007 / LUG-08).
|
|
25
|
+
*/
|
|
26
|
+
createMockEvent?: (index: number) => SSEEvent;
|
|
21
27
|
}
|
|
22
28
|
export declare function useSSE<T = unknown>(url: string | null, options?: SSEOptions): {
|
|
23
29
|
data: T | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSSE.d.ts","sourceRoot":"","sources":["../../src/hooks/useSSE.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5E,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"useSSE.d.ts","sourceRoot":"","sources":["../../src/hooks/useSSE.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5E,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,QAAQ,CAAC;CAC/C;AA6BD,wBAAgB,MAAM,CAAC,CAAC,GAAG,OAAO,EAChC,GAAG,EAAE,MAAM,GAAG,IAAI,EAClB,OAAO,GAAE,UAAe;;;;;;EAgJzB"}
|