@gravitee/gamma-lib-observability 2.2.1 → 2.2.2-fix-obs-61-stop-false-editor-conflicts.0deb9bf
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/INTEGRATION.md +34 -2
- package/dist/dashboards/editor/DashboardEditorPage.d.ts.map +1 -1
- package/dist/data-sources/dashboard-persistence.d.ts +20 -0
- package/dist/data-sources/dashboard-persistence.d.ts.map +1 -1
- package/dist/data-sources/dashboard-revision-store.d.ts +112 -0
- package/dist/data-sources/dashboard-revision-store.d.ts.map +1 -0
- package/dist/data-sources/http-dashboard-persistence.d.ts +29 -19
- package/dist/data-sources/http-dashboard-persistence.d.ts.map +1 -1
- package/dist/data-sources/index.d.ts +1 -0
- package/dist/data-sources/index.d.ts.map +1 -1
- package/dist/hooks/use-custom-dashboards.d.ts +15 -0
- package/dist/hooks/use-custom-dashboards.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1971 -1891
- package/dist/providers/http-provider.d.ts +22 -0
- package/dist/providers/http-provider.d.ts.map +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -39,4 +39,26 @@ export interface HttpProviderProps {
|
|
|
39
39
|
*/
|
|
40
40
|
export declare function HttpProvider({ options, children }: HttpProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
export declare function useHttpOptions(): HttpOptions | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The same HTTP configuration, behind an identity that survives host
|
|
44
|
+
* re-renders, so anything a `useMemo` builds from it survives them too.
|
|
45
|
+
*
|
|
46
|
+
* Hosts are documented to pass `http` as an inline object literal, which hands
|
|
47
|
+
* this section a fresh identity on every render of the host, for reasons that
|
|
48
|
+
* have nothing to do with observability. Rebuilding the stateless sources on
|
|
49
|
+
* each of those is waste. Rebuilding the dashboard persistence costs
|
|
50
|
+
* correctness, because the revision it quotes back as `If-Match` lives on the
|
|
51
|
+
* instance: a rebuilt one has forgotten which revision the author's draft was
|
|
52
|
+
* based on, reads back whatever is current at save time, and overwrites the
|
|
53
|
+
* edit that landed in between without either author seeing it.
|
|
54
|
+
*
|
|
55
|
+
* Stability here does not mean freezing the host's configuration at mount.
|
|
56
|
+
* `fetch` is wrapped so every call reaches the implementation the host holds
|
|
57
|
+
* *now*, and `headers` is handed over as a factory, which the sources already
|
|
58
|
+
* re-evaluate per request. `credentials` is the exception (a plain value the
|
|
59
|
+
* sources read once, when they are built), so it stays part of the identity.
|
|
60
|
+
* Being a primitive, it only breaks memoization when the host really changes
|
|
61
|
+
* it, and a source rebuilt for that reason is the correct outcome.
|
|
62
|
+
*/
|
|
63
|
+
export declare function useStableHttpOptions(options: HttpOptions | undefined): HttpOptions;
|
|
42
64
|
//# sourceMappingURL=http-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-provider.d.ts","sourceRoot":"","sources":["../../src/providers/http-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"http-provider.d.ts","sourceRoot":"","sources":["../../src/providers/http-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGpG;;;;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;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,WAAW,CAyBlF"}
|
|
@@ -2,7 +2,7 @@ export { CapabilityProvider, useCapabilities, useCapability, type CapabilityProv
|
|
|
2
2
|
export { LiveRefreshProvider, useLiveRefresh, useOptionalLiveRefresh, DEFAULT_REFRESH_INTERVAL_MS, type LiveRefreshConfig, type LiveRefreshProviderProps, type LiveRefreshState, } from './live-refresh-provider';
|
|
3
3
|
export { DashboardPersistenceProvider, useDashboardPersistence, useOptionalDashboardPersistence, type DashboardPersistenceProviderProps, } from './dashboard-persistence-provider';
|
|
4
4
|
export { FilterSourceProvider, useFilterSource, type FilterSourceProviderProps } from './FilterSourceProvider';
|
|
5
|
-
export { HttpProvider, useHttpOptions, type HttpOptions, type HttpProviderProps } from './http-provider';
|
|
5
|
+
export { HttpProvider, useHttpOptions, useStableHttpOptions, type HttpOptions, type HttpProviderProps, } from './http-provider';
|
|
6
6
|
export { LogsDataSourceProvider, useLogsDataSource, useOptionalLogsDataSource, type LogsDataSourceProviderProps, } from './logs-data-source-provider';
|
|
7
7
|
export { MetricsDataSourceProvider, useMetricsDataSource, useOptionalMetricsDataSource, type MetricsDataSourceProviderProps, } from './metrics-data-source-provider';
|
|
8
8
|
export { TracesDataSourceProvider, useTracesDataSource, useOptionalTracesDataSource, type TracesDataSourceProviderProps, } from './traces-data-source-provider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,KAAK,uBAAuB,GAC7B,MAA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L,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC3B,KAAK,6BAA6B,GACnC,MAAM,+BAA+B,CAAC"}
|
|
@@ -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":"AAYA,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,2CAuSlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/gamma-lib-observability",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2-fix-obs-61-stop-false-editor-conflicts.0deb9bf",
|
|
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",
|