@gravitee/gamma-lib-observability 2.0.0 → 2.1.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/data-sources/dashboard-errors.d.ts +42 -0
- package/dist/data-sources/dashboard-errors.d.ts.map +1 -0
- package/dist/data-sources/dashboard-wire.d.ts +85 -0
- package/dist/data-sources/dashboard-wire.d.ts.map +1 -0
- package/dist/data-sources/http-dashboard-persistence.d.ts +62 -0
- package/dist/data-sources/http-dashboard-persistence.d.ts.map +1 -0
- package/dist/data-sources/index.d.ts +2 -0
- package/dist/data-sources/index.d.ts.map +1 -1
- package/dist/hooks/use-custom-dashboards.d.ts +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +402 -217
- package/dist/persistence/local-storage-dashboard-persistence.d.ts +4 -4
- package/dist/providers/dashboard-persistence-provider.d.ts +4 -0
- package/dist/providers/dashboard-persistence-provider.d.ts.map +1 -1
- package/dist/providers/http-provider.d.ts +3 -2
- package/dist/providers/http-provider.d.ts.map +1 -1
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@ export interface LocalStorageDashboardPersistenceOptions {
|
|
|
11
11
|
readonly storage?: Pick<Storage, 'getItem' | 'setItem'>;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* Browser-local {@link DashboardPersistence}
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* Browser-local {@link DashboardPersistence}, for a host with no dashboards
|
|
15
|
+
* API to talk to. `ObservabilityRoutes` builds the HTTP implementation on its
|
|
16
|
+
* own, so reaching for this one is an explicit choice: mount it through
|
|
17
|
+
* `DashboardPersistenceProvider`, which overrides the built-in.
|
|
18
18
|
*/
|
|
19
19
|
export declare function createLocalStorageDashboardPersistence(options?: LocalStorageDashboardPersistenceOptions): DashboardPersistence;
|
|
20
20
|
//# sourceMappingURL=local-storage-dashboard-persistence.d.ts.map
|
|
@@ -8,6 +8,10 @@ export declare function DashboardPersistenceProvider({ persistence, children }:
|
|
|
8
8
|
/**
|
|
9
9
|
* Optional variant used by screens where custom dashboards are a progressive
|
|
10
10
|
* enhancement: without a provider the feature is hidden instead of throwing.
|
|
11
|
+
*
|
|
12
|
+
* Inside `ObservabilityRoutes` a provider is always in scope when the dashboards
|
|
13
|
+
* feature is on — the section mounts the HTTP implementation when the host
|
|
14
|
+
* mounts none — so this returns `null` only outside those routes.
|
|
11
15
|
*/
|
|
12
16
|
export declare function useOptionalDashboardPersistence(): DashboardPersistence | null;
|
|
13
17
|
export declare function useDashboardPersistence(): DashboardPersistence;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-persistence-provider.d.ts","sourceRoot":"","sources":["../../src/providers/dashboard-persistence-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAIlF,MAAM,WAAW,iCAAiC;IAChD,WAAW,EAAE,oBAAoB,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,4BAA4B,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,iCAAiC,2CAExG;AAED
|
|
1
|
+
{"version":3,"file":"dashboard-persistence-provider.d.ts","sourceRoot":"","sources":["../../src/providers/dashboard-persistence-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAIlF,MAAM,WAAW,iCAAiC;IAChD,WAAW,EAAE,oBAAoB,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,4BAA4B,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,iCAAiC,2CAExG;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,IAAI,oBAAoB,GAAG,IAAI,CAE7E;AAED,wBAAgB,uBAAuB,IAAI,oBAAoB,CAS9D"}
|
|
@@ -28,8 +28,9 @@ export interface HttpProviderProps {
|
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Provides a shared HTTP configuration to all observability sources built
|
|
31
|
-
* internally (metrics, filters, logs, traces). Wrap your
|
|
32
|
-
* with this provider to authenticate every request the lib
|
|
31
|
+
* internally (metrics, filters, logs, traces, dashboard persistence). Wrap your
|
|
32
|
+
* observability tree with this provider to authenticate every request the lib
|
|
33
|
+
* makes.
|
|
33
34
|
*
|
|
34
35
|
* Resolution order inside `ObservabilityRoutes`:
|
|
35
36
|
* 1. Explicit `http` prop on Routes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-provider.d.ts","sourceRoot":"","sources":["../../src/providers/http-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;IACrD;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAC3C;AAID,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED
|
|
1
|
+
{"version":3,"file":"http-provider.d.ts","sourceRoot":"","sources":["../../src/providers/http-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,CAAC;IACrD;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAC3C;AAID,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAEpE;AAED,wBAAgB,cAAc,IAAI,WAAW,GAAG,SAAS,CAExD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservabilityRoutes.d.ts","sourceRoot":"","sources":["../../src/routing/ObservabilityRoutes.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObservabilityRoutes.d.ts","sourceRoot":"","sources":["../../src/routing/ObservabilityRoutes.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAcjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAO9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAO/D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAkD3D,MAAM,WAAW,gCAAgC;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,eAAe,CAAC,EAAE,SAAS,cAAc,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,SAAS,mBAAmB,CAAC,OAAO,CAAC,EAAE,CAAC;IACtD,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,CAAC;IACxC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,CAAC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,MAAM,EAAE,2BAA2B,CAAC;CACrC;AAoHD,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,aAAa,EACb,IAAI,EACJ,UAAU,EACV,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,MAAM,GACP,EAAE,gCAAgC,2CAmRlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/gamma-lib-observability",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Shared observability library for Gamma modules — dashboards, logs, tracing UI components and integration with business rules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@4.14.1",
|