@refraction-ui/react 0.8.0 → 0.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.
|
@@ -21,7 +21,11 @@ interface TelemetryProviderProps extends TelemetryConfig {
|
|
|
21
21
|
declare function TelemetryProvider({ children, ...config }: TelemetryProviderProps): React.FunctionComponentElement<React.ProviderProps<TelemetryContextValue | null>>;
|
|
22
22
|
/**
|
|
23
23
|
* useTelemetry — access the root telemetry instance.
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
|
+
* If called outside a <TelemetryProvider> it does NOT throw: it returns a
|
|
26
|
+
* shared no-op telemetry (a dev-only warn-once hint is emitted so the missing
|
|
27
|
+
* provider is discoverable). This lets components instrumented with
|
|
28
|
+
* useLogger/useSpan/useTelemetry render safely without a provider.
|
|
25
29
|
*/
|
|
26
30
|
declare function useTelemetry(): Telemetry;
|
|
27
31
|
/**
|
|
@@ -21,7 +21,11 @@ interface TelemetryProviderProps extends TelemetryConfig {
|
|
|
21
21
|
declare function TelemetryProvider({ children, ...config }: TelemetryProviderProps): React.FunctionComponentElement<React.ProviderProps<TelemetryContextValue | null>>;
|
|
22
22
|
/**
|
|
23
23
|
* useTelemetry — access the root telemetry instance.
|
|
24
|
-
*
|
|
24
|
+
*
|
|
25
|
+
* If called outside a <TelemetryProvider> it does NOT throw: it returns a
|
|
26
|
+
* shared no-op telemetry (a dev-only warn-once hint is emitted so the missing
|
|
27
|
+
* provider is discoverable). This lets components instrumented with
|
|
28
|
+
* useLogger/useSpan/useTelemetry render safely without a provider.
|
|
25
29
|
*/
|
|
26
30
|
declare function useTelemetry(): Telemetry;
|
|
27
31
|
/**
|