@gravitee/gamma-lib-observability 1.40.0 → 2.0.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/QUERYING.md +15 -3
- package/dist/dashboards/DashboardFilterChip.d.ts +32 -0
- package/dist/dashboards/DashboardFilterChip.d.ts.map +1 -0
- package/dist/dashboards/DashboardFilterChipPopover.d.ts +19 -0
- package/dist/dashboards/DashboardFilterChipPopover.d.ts.map +1 -0
- package/dist/dashboards/DashboardFilterChips.d.ts +29 -0
- package/dist/dashboards/DashboardFilterChips.d.ts.map +1 -0
- package/dist/dashboards/DashboardFilterValueForm.d.ts +32 -0
- package/dist/dashboards/DashboardFilterValueForm.d.ts.map +1 -0
- package/dist/dashboards/dashboard-filters.d.ts +79 -0
- package/dist/dashboards/dashboard-filters.d.ts.map +1 -0
- package/dist/dashboards/editor/DashboardEditorPage.d.ts +9 -1
- package/dist/dashboards/editor/DashboardEditorPage.d.ts.map +1 -1
- package/dist/dashboards/editor/DashboardFiltersEditor.d.ts +26 -0
- package/dist/dashboards/editor/DashboardFiltersEditor.d.ts.map +1 -0
- package/dist/dashboards/editor/dashboard-editor-state.d.ts +3 -0
- package/dist/dashboards/editor/dashboard-editor-state.d.ts.map +1 -1
- package/dist/dashboards/editor/locked-filter-conflicts.d.ts +29 -0
- package/dist/dashboards/editor/locked-filter-conflicts.d.ts.map +1 -0
- package/dist/dashboards/merge-filters.d.ts +12 -3
- package/dist/dashboards/merge-filters.d.ts.map +1 -1
- package/dist/dashboards/renderers/CartesianWidgetRenderer.d.ts.map +1 -1
- package/dist/dashboards/use-merged-widget-filters.d.ts +9 -4
- package/dist/dashboards/use-merged-widget-filters.d.ts.map +1 -1
- package/dist/filters/FilterBar.d.ts +8 -1
- package/dist/filters/FilterBar.d.ts.map +1 -1
- package/dist/filters/FilterChip.d.ts +16 -0
- package/dist/filters/FilterChip.d.ts.map +1 -1
- package/dist/filters/FilterPopoverForm.d.ts +21 -1
- package/dist/filters/FilterPopoverForm.d.ts.map +1 -1
- package/dist/filters/FilterValueField.d.ts +26 -0
- package/dist/filters/FilterValueField.d.ts.map +1 -0
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/index.d.ts.map +1 -1
- package/dist/filters/resolve-filter-label.d.ts +25 -0
- package/dist/filters/resolve-filter-label.d.ts.map +1 -0
- package/dist/filters/scope-ceiling.d.ts +33 -0
- package/dist/filters/scope-ceiling.d.ts.map +1 -0
- package/dist/filters/use-active-api-types.d.ts +18 -0
- package/dist/filters/use-active-api-types.d.ts.map +1 -0
- package/dist/filters/utils/build-filter-condition.d.ts.map +1 -1
- package/dist/filters/utils/filter-display.d.ts.map +1 -1
- package/dist/hooks/use-logs-query.d.ts.map +1 -1
- package/dist/index.js +3329 -2807
- package/dist/logs/detail/components/LogDetailContextChart.d.ts.map +1 -1
- package/dist/routing/ObservabilityDashboardPage.d.ts.map +1 -1
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/dist/styles/observability.css +1 -1
- package/dist/testing/graphene-core-icons-mock.d.ts +2 -0
- package/dist/testing/graphene-core-icons-mock.d.ts.map +1 -1
- package/dist/testing/graphene-core-mock.d.ts +6 -0
- package/dist/testing/graphene-core-mock.d.ts.map +1 -1
- package/dist/types/domain.d.ts +30 -1
- package/dist/types/domain.d.ts.map +1 -1
- package/dist/url-state/codec.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FilterCondition } from '../types/domain';
|
|
2
|
+
/**
|
|
3
|
+
* Applies the host's context filters as a **ceiling** rather than a default.
|
|
4
|
+
*
|
|
5
|
+
* A module mounts this library scoped to what it owns, for instance API
|
|
6
|
+
* management showing only LLM and MCP APIs. Until now that scope was merely the
|
|
7
|
+
* first source of `mergeFilters`, which makes it the weakest: any dashboard
|
|
8
|
+
* definition, widget or query-string filter on the same field replaced it
|
|
9
|
+
* outright, and the module happily rendered data belonging to another one.
|
|
10
|
+
*
|
|
11
|
+
* The scope is now always present and never exceeded:
|
|
12
|
+
*
|
|
13
|
+
* - a field the host scopes always carries that scope, even when nothing
|
|
14
|
+
* downstream mentions it (unchanged, `mergeFilters` already did this);
|
|
15
|
+
* - a downstream condition on a scoped field is **intersected** with it, so
|
|
16
|
+
* narrowing keeps working. That matters: pinning a widget to one API type
|
|
17
|
+
* inside a two-type module is a normal thing to do and several dashboards
|
|
18
|
+
* rely on it;
|
|
19
|
+
* - an empty intersection falls back to the host's own values. It must never
|
|
20
|
+
* produce an empty condition, because a value-less filter is dropped before
|
|
21
|
+
* the request and the query would come back *unscoped*, which is the widest
|
|
22
|
+
* possible result from the narrowest possible request;
|
|
23
|
+
* - a condition whose operator cannot be intersected loses to the host's, since
|
|
24
|
+
* letting it stand is the leak this exists to close.
|
|
25
|
+
*
|
|
26
|
+
* Fields the host does not scope are untouched. So are fields whose ceiling is
|
|
27
|
+
* not itself a value set: only an `eq` or `in` context filter can be
|
|
28
|
+
* intersected, and any other one still behaves as the weak default it used to
|
|
29
|
+
* be. `resolveScopeConfig` only ever emits `in`, so the shipped modules are
|
|
30
|
+
* covered, but a host passing its own `contextFilters` should know the limit.
|
|
31
|
+
*/
|
|
32
|
+
export declare function clampToScope(ceilings: readonly FilterCondition[], filters: readonly FilterCondition[] | undefined): FilterCondition[];
|
|
33
|
+
//# sourceMappingURL=scope-ceiling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope-ceiling.d.ts","sourceRoot":"","sources":["../../src/filters/scope-ceiling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AASvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,SAAS,eAAe,EAAE,EACpC,OAAO,EAAE,SAAS,eAAe,EAAE,GAAG,SAAS,GAC9C,eAAe,EAAE,CA6BnB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The API types the host has scoped its module to, as the value loaders expect
|
|
3
|
+
* them.
|
|
4
|
+
*
|
|
5
|
+
* This is the *value* half of scoping, and it is easy to forget: without it a
|
|
6
|
+
* loader is asked for every API the tenant owns, so a module scoped to LLM and
|
|
7
|
+
* MCP offers HTTP proxies in its pickers and lets an author build a filter that
|
|
8
|
+
* points outside their own module. `useScopedFilterProviders` covers the other
|
|
9
|
+
* half, which fields are offered at all. Every surface that opens a filter
|
|
10
|
+
* popover needs both, so the derivation lives here rather than being rebuilt at
|
|
11
|
+
* each call site.
|
|
12
|
+
*
|
|
13
|
+
* `visibleScopes` wins when the caller states one explicitly; otherwise the
|
|
14
|
+
* scope is read from the context filter the host injected on `scopeFilterField`
|
|
15
|
+
* (see `resolveScopeConfig`).
|
|
16
|
+
*/
|
|
17
|
+
export declare function useActiveApiTypes(scopeFilterField: string | undefined, visibleScopes?: readonly string[]): readonly string[] | undefined;
|
|
18
|
+
//# sourceMappingURL=use-active-api-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-active-api-types.d.ts","sourceRoot":"","sources":["../../src/filters/use-active-api-types.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,GAChC,SAAS,MAAM,EAAE,GAAG,SAAS,CAS/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-filter-condition.d.ts","sourceRoot":"","sources":["../../../src/filters/utils/build-filter-condition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAS5E,MAAM,WAAW,eAAe;IAC9B,QAAQ,C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C,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG,OAAO,CAwBV;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,eAAe,GAAG,eAAe,CA+B5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-display.d.ts","sourceRoot":"","sources":["../../../src/filters/utils/filter-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,oBAAoB,CAAC;AAG1E,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM7F;
|
|
1
|
+
{"version":3,"file":"filter-display.d.ts","sourceRoot":"","sources":["../../../src/filters/utils/filter-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,oBAAoB,CAAC;AAG1E,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAM7F;AAyBD,wBAAgB,cAAc,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAKjE;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,eAAe,GAAG,cAAc,CAc9E;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM,CAQnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-logs-query.d.ts","sourceRoot":"","sources":["../../src/hooks/use-logs-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-logs-query.d.ts","sourceRoot":"","sources":["../../src/hooks/use-logs-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAKlE,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAC/B,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,yFAmBtF"}
|