@gravitee/gamma-lib-observability 1.35.0 → 1.35.1

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.
@@ -1,7 +1,7 @@
1
1
  import { FilterCondition } from '../types/domain';
2
2
  export interface WireFilter {
3
3
  name: string;
4
- operator: 'EQ' | 'IN' | 'LTE' | 'GTE';
4
+ operator: 'EQ' | 'IN' | 'LTE' | 'GTE' | 'CONTAINS';
5
5
  value: string | string[] | number;
6
6
  }
7
7
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"filter-serialization.d.ts","sourceRoot":"","sources":["../../src/data-sources/filter-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAqBvE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;IACtC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,UAAU,CAkChE;AA6BD,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS,GAAG,UAAU,EAAE,GAAG,SAAS,CAG9F"}
1
+ {"version":3,"file":"filter-serialization.d.ts","sourceRoot":"","sources":["../../src/data-sources/filter-serialization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,iBAAiB,CAAC;AAsBvE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,UAAU,CAAC;IACnD,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,UAAU,CAqChE;AAiCD,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS,GAAG,UAAU,EAAE,GAAG,SAAS,CAG9F"}
@@ -1 +1 @@
1
- {"version":3,"file":"http-filter-source.d.ts","sourceRoot":"","sources":["../../src/data-sources/http-filter-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,4BAA4B,CAAC;AACxG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAsD9D,MAAM,WAAW,YAAY;IAC3B,sBAAsB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACxE,aAAa,CACX,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,EAChD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACpD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,YAAY,CAiI3F"}
1
+ {"version":3,"file":"http-filter-source.d.ts","sourceRoot":"","sources":["../../src/data-sources/http-filter-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,4BAA4B,CAAC;AACxG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAsD9D,MAAM,WAAW,YAAY;IAC3B,sBAAsB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACxE,aAAa,CACX,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,EAChD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CACpD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,YAAY,CAkI3F"}
@@ -1 +1 @@
1
- {"version":3,"file":"http-traces-filter-source.d.ts","sourceRoot":"","sources":["../../src/data-sources/http-traces-filter-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AA0CzD,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,YAAY,CA4G/G"}
1
+ {"version":3,"file":"http-traces-filter-source.d.ts","sourceRoot":"","sources":["../../src/data-sources/http-traces-filter-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AA2CzD,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,yBAAyB,GAAG,YAAY,CA6G/G"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g, v as _, y as v } from "./filter-providers-context.js";
2
- import { AlertCircleIcon as y, AlignRightIcon as b, ArrowLeftIcon as x, ArrowRightIcon as S, BoxesIcon as C, BrainCircuitIcon as w, CableIcon as ee, CalendarIcon as te, ChartLineIcon as ne, ChevronDownIcon as re, ChevronRightIcon as ie, CircleHelpIcon as ae, CopyIcon as T, ExpandIcon as oe, FileTextIcon as se, FilterIcon as ce, FunnelXIcon as le, GlobeIcon as ue, InfoIcon as de, MessageSquareIcon as fe, PanelLeftIcon as E, PlusIcon as D, RefreshCwIcon as pe, SearchIcon as me, WebhookIcon as he, XIcon as ge } from "@gravitee/graphene-core/icons";
3
- import { Component as _e, Fragment as ve, Suspense as ye, createContext as be, createElement as xe, forwardRef as Se, lazy as Ce, memo as we, useCallback as O, useContext as Te, useEffect as k, useId as Ee, useMemo as A, useRef as j, useState as M } from "react";
2
+ import { AlertCircleIcon as y, AlignRightIcon as b, ArrowLeftIcon as x, ArrowRightIcon as S, BoxesIcon as C, BrainCircuitIcon as w, CableIcon as ee, CalendarIcon as te, ChartLineIcon as ne, ChevronDownIcon as re, ChevronRightIcon as ie, CircleHelpIcon as ae, CopyIcon as oe, ExpandIcon as se, FileTextIcon as ce, FilterIcon as le, FunnelXIcon as ue, GlobeIcon as de, InfoIcon as fe, MessageSquareIcon as pe, PanelLeftIcon as T, PlusIcon as E, RefreshCwIcon as me, SearchIcon as he, WebhookIcon as ge, XIcon as _e } from "@gravitee/graphene-core/icons";
3
+ import { Component as ve, Fragment as ye, Suspense as be, createContext as D, createElement as xe, forwardRef as Se, lazy as Ce, memo as we, useCallback as O, useContext as Te, useEffect as k, useId as Ee, useMemo as A, useRef as j, useState as M } from "react";
4
4
  import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
5
5
  import { keepPreviousData as De, useInfiniteQuery as Oe, useQueries as ke, useQuery as I, useQueryClient as Ae } from "@tanstack/react-query";
6
6
  import { Accordion as je, AccordionContent as Me, AccordionItem as Ne, AccordionTrigger as Pe, Alert as Fe, AlertDescription as Ie, Badge as L, Button as R, Calendar as Le, Card as Re, Combobox as ze, ComboboxChip as Be, ComboboxChips as Ve, ComboboxChipsInput as He, ComboboxContent as Ue, ComboboxEmpty as We, ComboboxInput as Ge, ComboboxItem as Ke, ComboboxList as qe, ComboboxValue as Je, DataTable as Ye, DataTablePagination as Xe, Empty as Ze, EmptyDescription as Qe, EmptyHeader as $e, EmptyMedia as et, EmptyTitle as tt, Field as nt, FieldError as rt, FieldLabel as it, Input as at, Label as ot, Popover as st, PopoverAnchor as ct, PopoverContent as lt, PopoverTrigger as ut, ScrollArea as dt, Select as ft, SelectContent as pt, SelectItem as mt, SelectTrigger as ht, SelectValue as gt, Separator as _t, Sheet as vt, SheetContent as yt, SheetDescription as bt, SheetTitle as xt, Skeleton as z, Spinner as St, Tabs as Ct, TabsContent as wt, TabsList as Tt, TabsTrigger as Et, Textarea as Dt, ToggleGroup as Ot, ToggleGroupItem as kt, Tooltip as B, TooltipContent as V, TooltipProvider as H, TooltipTrigger as U, cn as W, toast as At, useComboboxAnchor as jt } from "@gravitee/graphene-core";
@@ -12,7 +12,7 @@ var fn = [
12
12
  {
13
13
  id: "HTTP_PROXY",
14
14
  label: "HTTP Proxy",
15
- icon: ue,
15
+ icon: de,
16
16
  colorClass: "text-chart-1",
17
17
  bgClass: "bg-chart-1/10"
18
18
  },
@@ -33,14 +33,14 @@ var fn = [
33
33
  {
34
34
  id: "MESSAGE",
35
35
  label: "Message",
36
- icon: fe,
36
+ icon: pe,
37
37
  colorClass: "text-chart-7",
38
38
  bgClass: "bg-chart-7/10"
39
39
  },
40
40
  {
41
41
  id: "WEBHOOK",
42
42
  label: "Webhook",
43
- icon: he,
43
+ icon: ge,
44
44
  colorClass: "text-chart-9",
45
45
  bgClass: "bg-chart-9/10"
46
46
  }
@@ -66,7 +66,7 @@ var _n = [
66
66
  {
67
67
  id: "LOGS",
68
68
  label: "Logs",
69
- icon: se,
69
+ icon: ce,
70
70
  colorClass: "text-chart-8"
71
71
  },
72
72
  {
@@ -110,7 +110,7 @@ function G(e) {
110
110
  }
111
111
  //#endregion
112
112
  //#region src/providers/live-refresh-provider.tsx
113
- var En = 6e4, Dn = be(null);
113
+ var En = 6e4, Dn = D(null);
114
114
  function On({ config: e, children: t }) {
115
115
  let n = e?.intervalMs ?? 6e4, r = e?.onResume, [i, a] = M(e?.defaultEnabled ?? !0), [o, s] = M(!1), c = O(() => a((e) => !e), []), l = j(i);
116
116
  k(() => {
@@ -143,7 +143,7 @@ function An() {
143
143
  }
144
144
  //#endregion
145
145
  //#region src/providers/FilterSourceProvider.tsx
146
- var jn = be(void 0);
146
+ var jn = D(void 0);
147
147
  function Mn({ source: e, children: t }) {
148
148
  return /* @__PURE__ */ P(jn.Provider, {
149
149
  value: e,
@@ -155,7 +155,7 @@ function Nn() {
155
155
  }
156
156
  //#endregion
157
157
  //#region src/providers/http-provider.tsx
158
- var Pn = be(void 0);
158
+ var Pn = D(void 0);
159
159
  function Fn({ options: e, children: t }) {
160
160
  return /* @__PURE__ */ P(Pn.Provider, {
161
161
  value: e,
@@ -382,7 +382,7 @@ function J(...e) {
382
382
  }
383
383
  //#endregion
384
384
  //#region src/providers/ContextFiltersProvider.tsx
385
- var qn = be([]);
385
+ var qn = D([]);
386
386
  function Jn({ filters: e, children: t }) {
387
387
  let n = A(() => e, [e]);
388
388
  return /* @__PURE__ */ P(qn.Provider, {
@@ -1219,7 +1219,7 @@ function Xr({ options: e, selected: t, onSelectedChange: n, multiple: r, onSearc
1219
1219
  onValueChange: (e) => n(Array.isArray(e) ? e : []),
1220
1220
  children: [/* @__PURE__ */ P(Ve, {
1221
1221
  ref: u,
1222
- children: /* @__PURE__ */ P(Je, { children: (e) => /* @__PURE__ */ F(ve, { children: [e.map((e) => /* @__PURE__ */ P(Be, {
1222
+ children: /* @__PURE__ */ P(Je, { children: (e) => /* @__PURE__ */ F(ye, { children: [e.map((e) => /* @__PURE__ */ P(Be, {
1223
1223
  removeAriaLabel: `Remove ${e.label}`,
1224
1224
  children: e.label
1225
1225
  }, e.value)), /* @__PURE__ */ P(He, {
@@ -1852,7 +1852,7 @@ var Bi = we(Se(function({ condition: e, onEdit: t, onRemove: n, editable: r = !0
1852
1852
  "aria-label": `Remove filter ${u.name}`,
1853
1853
  onClick: g,
1854
1854
  tabIndex: 0,
1855
- children: /* @__PURE__ */ P(ge, {
1855
+ children: /* @__PURE__ */ P(_e, {
1856
1856
  className: "size-3",
1857
1857
  "aria-hidden": "true"
1858
1858
  })
@@ -1979,7 +1979,7 @@ function Xi({ filters: e, onFiltersChange: t, editable: n = !0, scopeFilterField
1979
1979
  size: "sm",
1980
1980
  onClick: b,
1981
1981
  className: "shrink-0",
1982
- children: [/* @__PURE__ */ P(D, {
1982
+ children: [/* @__PURE__ */ P(E, {
1983
1983
  className: "size-4",
1984
1984
  "aria-hidden": "true"
1985
1985
  }), "Add filter"]
@@ -2003,7 +2003,7 @@ function Xi({ filters: e, onFiltersChange: t, editable: n = !0, scopeFilterField
2003
2003
  onClick: ne,
2004
2004
  className: "ml-1 shrink-0 rounded p-1 text-muted-foreground hover:bg-muted hover:text-foreground",
2005
2005
  "aria-label": "Clear all filters",
2006
- children: /* @__PURE__ */ P(le, { className: "size-3.5" })
2006
+ children: /* @__PURE__ */ P(ue, { className: "size-3.5" })
2007
2007
  }) : null
2008
2008
  ]
2009
2009
  }),
@@ -2028,7 +2028,7 @@ function Xi({ filters: e, onFiltersChange: t, editable: n = !0, scopeFilterField
2028
2028
  }
2029
2029
  //#endregion
2030
2030
  //#region src/dashboards/WidgetGroupContext.tsx
2031
- var Zi = [], Qi = be(null), $i = Qi.Provider;
2031
+ var Zi = [], Qi = D(null), $i = Qi.Provider;
2032
2032
  function ea() {
2033
2033
  return Te(Qi);
2034
2034
  }
@@ -3095,7 +3095,7 @@ function No(e, t) {
3095
3095
  }
3096
3096
  //#endregion
3097
3097
  //#region src/dashboards/templates/DashboardTemplatesProvider.tsx
3098
- var Po = be(null);
3098
+ var Po = D(null);
3099
3099
  function Fo({ templates: e, children: t }) {
3100
3100
  let n = A(() => e, [e]);
3101
3101
  return /* @__PURE__ */ P(Po.Provider, {
@@ -3266,7 +3266,7 @@ function Uo({ message: e, onRetry: t, className: n }) {
3266
3266
  variant: "outline",
3267
3267
  size: "sm",
3268
3268
  onClick: t,
3269
- children: [/* @__PURE__ */ P(pe, { className: "size-3.5" }), "Retry"]
3269
+ children: [/* @__PURE__ */ P(me, { className: "size-3.5" }), "Retry"]
3270
3270
  })
3271
3271
  ]
3272
3272
  });
@@ -3464,7 +3464,7 @@ function as({ columns: e, data: t, loading: n, totalCount: r, page: i, pageSize:
3464
3464
  emptyMessage: /* @__PURE__ */ P(Ze, { children: /* @__PURE__ */ F($e, { children: [
3465
3465
  /* @__PURE__ */ P(et, {
3466
3466
  variant: "icon",
3467
- children: /* @__PURE__ */ P(se, {})
3467
+ children: /* @__PURE__ */ P(ce, {})
3468
3468
  }),
3469
3469
  /* @__PURE__ */ P(tt, { children: "No logs found" }),
3470
3470
  /* @__PURE__ */ P(Qe, { children: "Try adjusting your filters or time range to see log entries." })
@@ -3477,7 +3477,7 @@ function os() {
3477
3477
  return /* @__PURE__ */ F(Fe, {
3478
3478
  variant: "default",
3479
3479
  style: { borderColor: "light-dark(oklch(0.79 0.11 230), oklch(0.55 0.11 230))" },
3480
- children: [/* @__PURE__ */ P(de, { style: { color: "light-dark(oklch(0.62 0.14 230), oklch(0.72 0.14 230))" } }), /* @__PURE__ */ P(Ie, { children: "Some active filters only apply to one view — totals may differ between the histogram and the table." })]
3480
+ children: [/* @__PURE__ */ P(fe, { style: { color: "light-dark(oklch(0.62 0.14 230), oklch(0.72 0.14 230))" } }), /* @__PURE__ */ P(Ie, { children: "Some active filters only apply to one view — totals may differ between the histogram and the table." })]
3481
3481
  });
3482
3482
  }
3483
3483
  //#endregion
@@ -3603,7 +3603,7 @@ function Ss({ columns: e, onRowClick: t, pageSize: n = 25, getRowId: r, selected
3603
3603
  }, [b.data]);
3604
3604
  let S = /* @__PURE__ */ F("div", {
3605
3605
  className: "relative flex-1",
3606
- children: [/* @__PURE__ */ P(me, { className: "absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ P(at, {
3606
+ children: [/* @__PURE__ */ P(he, { className: "absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground" }), /* @__PURE__ */ P(at, {
3607
3607
  type: "search",
3608
3608
  placeholder: "Search logs…",
3609
3609
  value: v,
@@ -3847,7 +3847,7 @@ function Z({ code: e, language: t = "json", maxHeight: n = Os }) {
3847
3847
  navigator.clipboard.writeText(a).then(() => At.success("Copied to clipboard"), () => At.error("Failed to copy to clipboard"));
3848
3848
  },
3849
3849
  "aria-label": "Copy body",
3850
- children: /* @__PURE__ */ P(T, { className: "size-3.5" })
3850
+ children: /* @__PURE__ */ P(oe, { className: "size-3.5" })
3851
3851
  })
3852
3852
  }), /* @__PURE__ */ P(V, { children: "Copy" })] }) })
3853
3853
  }),
@@ -3936,7 +3936,7 @@ function js({ data: e, onCopyAll: t }) {
3936
3936
  className: "size-7",
3937
3937
  onClick: r,
3938
3938
  "aria-label": "Copy JSON",
3939
- children: /* @__PURE__ */ P(T, { className: "size-3.5" })
3939
+ children: /* @__PURE__ */ P(oe, { className: "size-3.5" })
3940
3940
  })
3941
3941
  }), /* @__PURE__ */ P(V, { children: "Copy full JSON" })] }) })
3942
3942
  }), /* @__PURE__ */ P("div", {
@@ -4132,7 +4132,7 @@ function Ps({ item: e, onFilter: t, wrap: n }) {
4132
4132
  navigator.clipboard.writeText(r).then(() => At.success("Copied to clipboard"), () => At.error("Failed to copy to clipboard"));
4133
4133
  },
4134
4134
  "aria-label": "Copy value",
4135
- children: /* @__PURE__ */ P(T, { className: "size-3" })
4135
+ children: /* @__PURE__ */ P(oe, { className: "size-3" })
4136
4136
  })
4137
4137
  }), /* @__PURE__ */ P(V, { children: "Copy" })] }) }), e.filterable && e.filterField && t && /* @__PURE__ */ P(H, { children: /* @__PURE__ */ F(B, { children: [/* @__PURE__ */ P(U, {
4138
4138
  asChild: !0,
@@ -4144,7 +4144,7 @@ function Ps({ item: e, onFilter: t, wrap: n }) {
4144
4144
  t && e.filterField && t(e.filterField, e.filterValue ?? r);
4145
4145
  },
4146
4146
  "aria-label": "Filter by this value",
4147
- children: /* @__PURE__ */ P(ce, { className: "size-3" })
4147
+ children: /* @__PURE__ */ P(le, { className: "size-3" })
4148
4148
  })
4149
4149
  }), /* @__PURE__ */ P(V, { children: "Filter" })] }) })]
4150
4150
  })]
@@ -4967,7 +4967,7 @@ function sc({ apiId: e, timestamp: t, metric: n = ic, measure: r = ac, filterFie
4967
4967
  }
4968
4968
  //#endregion
4969
4969
  //#region src/logs/detail/components/LogDetailDrawerShell.tsx
4970
- var cc = be({
4970
+ var cc = D({
4971
4971
  expanded: !1,
4972
4972
  setExpanded: () => {}
4973
4973
  });
@@ -5113,7 +5113,7 @@ function gc({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
5113
5113
  size: "icon",
5114
5114
  onClick: s,
5115
5115
  "aria-label": "Copy JSON",
5116
- children: /* @__PURE__ */ P(T, { className: "size-4" })
5116
+ children: /* @__PURE__ */ P(oe, { className: "size-4" })
5117
5117
  })
5118
5118
  }), /* @__PURE__ */ P(V, { children: "Copy as JSON" })] }) }),
5119
5119
  u && /* @__PURE__ */ P(H, { children: /* @__PURE__ */ F(B, { children: [/* @__PURE__ */ P(U, {
@@ -5123,7 +5123,7 @@ function gc({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
5123
5123
  size: "icon",
5124
5124
  onClick: () => f(!d),
5125
5125
  "aria-label": d ? "Exit full screen" : "Full screen",
5126
- children: P(d ? E : oe, { className: "size-4" })
5126
+ children: P(d ? T : se, { className: "size-4" })
5127
5127
  })
5128
5128
  }), /* @__PURE__ */ P(V, { children: d ? "Exit full screen" : "Full screen" })] }) }),
5129
5129
  i && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(_t, {
@@ -5134,7 +5134,7 @@ function gc({ method: e, status: t, uri: n, timestamp: r, onClose: i, onNavigate
5134
5134
  size: "icon",
5135
5135
  onClick: i,
5136
5136
  "aria-label": "Close",
5137
- children: /* @__PURE__ */ P(ge, { className: "size-4" })
5137
+ children: /* @__PURE__ */ P(_e, { className: "size-4" })
5138
5138
  })] })
5139
5139
  ]
5140
5140
  })]
@@ -5913,7 +5913,7 @@ function Kc({ options: e = [], paginatedLoader: t, resolveApiLabel: n, value: r,
5913
5913
  variant: "outline",
5914
5914
  size: "sm",
5915
5915
  onClick: s,
5916
- children: [/* @__PURE__ */ P(pe, { className: "size-3.5" }), "Retry"]
5916
+ children: [/* @__PURE__ */ P(me, { className: "size-3.5" }), "Retry"]
5917
5917
  })
5918
5918
  ]
5919
5919
  }) : t ? /* @__PURE__ */ P(Wc, {
@@ -6216,7 +6216,7 @@ function gl({ span: e, onClose: t }) {
6216
6216
  className: "size-7 shrink-0",
6217
6217
  onClick: t,
6218
6218
  "aria-label": "Close span detail",
6219
- children: /* @__PURE__ */ P(ge, { className: "size-4" })
6219
+ children: /* @__PURE__ */ P(_e, { className: "size-4" })
6220
6220
  })]
6221
6221
  }), /* @__PURE__ */ F("div", {
6222
6222
  className: "grid gap-x-8 gap-y-6 p-5 @2xl:grid-cols-2 @2xl:items-start",
@@ -6379,7 +6379,7 @@ function Tl({ trace: e, onSpanClick: t, selectedSpanId: n, state: r, edgeAnimati
6379
6379
  }, [c, t]), u = a ?? "h-[28rem]";
6380
6380
  return /* @__PURE__ */ P(Ol, {
6381
6381
  fallback: /* @__PURE__ */ P(Dl, { className: u }),
6382
- children: /* @__PURE__ */ P(ye, {
6382
+ children: /* @__PURE__ */ P(be, {
6383
6383
  fallback: /* @__PURE__ */ P(El, { className: u }),
6384
6384
  children: /* @__PURE__ */ P(Sl, {
6385
6385
  nodes: o,
@@ -6421,7 +6421,7 @@ function Dl({ className: e }) {
6421
6421
  })]
6422
6422
  });
6423
6423
  }
6424
- var Ol = class extends _e {
6424
+ var Ol = class extends ve {
6425
6425
  state = { hasError: !1 };
6426
6426
  static getDerivedStateFromError() {
6427
6427
  return { hasError: !0 };
@@ -6680,7 +6680,7 @@ function Bl({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasN
6680
6680
  className: "size-7",
6681
6681
  onClick: () => o(!a),
6682
6682
  "aria-label": a ? "Exit full screen" : "Full screen",
6683
- children: P(a ? E : oe, { className: "size-4" })
6683
+ children: P(a ? T : se, { className: "size-4" })
6684
6684
  })
6685
6685
  }), /* @__PURE__ */ P(V, { children: a ? "Exit full screen" : "Full screen" })] }) }), /* @__PURE__ */ P(R, {
6686
6686
  variant: "ghost",
@@ -6688,7 +6688,7 @@ function Bl({ onClose: e, onNavigatePrev: t, onNavigateNext: n, hasPrev: r, hasN
6688
6688
  className: "size-7",
6689
6689
  onClick: e,
6690
6690
  "aria-label": "Close trace detail",
6691
- children: /* @__PURE__ */ P(ge, { className: "size-4" })
6691
+ children: /* @__PURE__ */ P(_e, { className: "size-4" })
6692
6692
  })]
6693
6693
  })]
6694
6694
  });
@@ -6699,7 +6699,8 @@ var Vl = [
6699
6699
  "eq",
6700
6700
  "in",
6701
6701
  "lte",
6702
- "gte"
6702
+ "gte",
6703
+ "contains"
6703
6704
  ];
6704
6705
  function Hl(e) {
6705
6706
  return Vl.includes(e);
@@ -6708,7 +6709,8 @@ var Ul = {
6708
6709
  eq: "EQ",
6709
6710
  in: "IN",
6710
6711
  lte: "LTE",
6711
- gte: "GTE"
6712
+ gte: "GTE",
6713
+ contains: "CONTAINS"
6712
6714
  };
6713
6715
  function Wl(e) {
6714
6716
  if (!Hl(e.operator)) throw Error(`[gamma-lib-observability] Filter operator "${e.operator}" on field "${e.field}" is not supported by the Gravitee Management v2 API. Supported operators: ${Vl.join(", ")}.`);
@@ -6735,6 +6737,11 @@ function Wl(e) {
6735
6737
  value: n
6736
6738
  };
6737
6739
  }
6740
+ case "contains": return Gl(e, "contains"), {
6741
+ name: e.field,
6742
+ operator: Ul[e.operator],
6743
+ value: t
6744
+ };
6738
6745
  default: {
6739
6746
  let t = e.operator;
6740
6747
  throw Error(`[gamma-lib-observability] Unhandled supported operator: ${String(t)}`);
@@ -6914,7 +6921,7 @@ function cu(e) {
6914
6921
  }[e] ?? e.toLowerCase();
6915
6922
  }
6916
6923
  function lu(e) {
6917
- return e === "ENUM" ? "enum" : "async";
6924
+ return e.toUpperCase() === "ENUM" ? "enum" : "async";
6918
6925
  }
6919
6926
  function uu(e, t) {
6920
6927
  let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials;
@@ -6946,9 +6953,9 @@ function uu(e, t) {
6946
6953
  let r = await n(`${e}/observability/filters/definition`, i({ signal: t }));
6947
6954
  if (!r.ok) throw Error(`[gamma-lib-observability] HTTP ${r.status} on GET filters/definition`);
6948
6955
  return (await r.json()).data.map((e) => {
6949
- let t = lu(e.type), n = e.operators.map(cu), r = e.apiTypes, i = e.signals;
6956
+ let t = lu(e.type), n = e.operators.map(cu), r = e.type.toUpperCase(), i = e.apiTypes, o = e.signals;
6950
6957
  if (t === "enum") {
6951
- let a = (e.enumValues ?? []).map((e) => typeof e == "string" ? {
6958
+ let r = (e.enumValues ?? []).map((e) => typeof e == "string" ? {
6952
6959
  value: e,
6953
6960
  label: e
6954
6961
  } : {
@@ -6960,27 +6967,27 @@ function uu(e, t) {
6960
6967
  label: e.label,
6961
6968
  kind: t,
6962
6969
  operators: n,
6963
- options: a,
6964
- scopes: r,
6965
- signals: i
6970
+ options: r,
6971
+ scopes: i,
6972
+ signals: o
6966
6973
  };
6967
6974
  }
6968
- return e.type === "NUMBER" || e.type === "STRING" ? {
6975
+ return r === "NUMBER" || r === "STRING" ? {
6969
6976
  field: e.name,
6970
6977
  label: e.label,
6971
6978
  kind: t,
6972
6979
  operators: n,
6973
- scopes: r,
6974
- signals: i,
6980
+ scopes: i,
6981
+ signals: o,
6975
6982
  allowFreeText: !0,
6976
- inputHint: e.type === "STRING" ? "long-text" : "number"
6983
+ inputHint: r === "STRING" ? "long-text" : "number"
6977
6984
  } : {
6978
6985
  field: e.name,
6979
6986
  label: e.label,
6980
6987
  kind: t,
6981
6988
  operators: n,
6982
- scopes: r,
6983
- signals: i,
6989
+ scopes: i,
6990
+ signals: o,
6984
6991
  valueLoader: a(e.name)
6985
6992
  };
6986
6993
  });
@@ -7418,7 +7425,8 @@ function Mu(e) {
7418
7425
  }[e] ?? e.toLowerCase();
7419
7426
  }
7420
7427
  function Nu(e) {
7421
- return e === "ENUM" || e === "BOOLEAN" ? "enum" : "async";
7428
+ let t = e.toUpperCase();
7429
+ return t === "ENUM" || t === "BOOLEAN" ? "enum" : "async";
7422
7430
  }
7423
7431
  function Pu(e, t) {
7424
7432
  let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.module;
@@ -7450,8 +7458,8 @@ function Pu(e, t) {
7450
7458
  let r = await n(`${e}/observability/traces/filters/definition`, a({ signal: t }));
7451
7459
  if (!r.ok) throw Error(`[gamma-lib-observability] HTTP ${r.status} on GET traces/filters/definition`);
7452
7460
  return (await r.json()).data.map((e) => {
7453
- let t = Nu(e.type), n = e.operators.map(Mu);
7454
- if (e.type === "BOOLEAN") return {
7461
+ let t = Nu(e.type), n = e.operators.map(Mu), r = e.type.toUpperCase();
7462
+ if (r === "BOOLEAN") return {
7455
7463
  field: e.name,
7456
7464
  label: e.label,
7457
7465
  kind: t,
@@ -7477,13 +7485,13 @@ function Pu(e, t) {
7477
7485
  options: r
7478
7486
  };
7479
7487
  }
7480
- return e.type === "NUMBER" || e.type === "STRING" ? {
7488
+ return r === "NUMBER" || r === "STRING" ? {
7481
7489
  field: e.name,
7482
7490
  label: e.label,
7483
7491
  kind: t,
7484
7492
  operators: n,
7485
7493
  allowFreeText: !0,
7486
- inputHint: e.type === "STRING" ? "long-text" : "number"
7494
+ inputHint: r === "STRING" ? "long-text" : "number"
7487
7495
  } : {
7488
7496
  field: e.name,
7489
7497
  label: e.label,
@@ -7703,104 +7711,104 @@ function Xu({ baseUrl: e, tracesBaseUrl: n, http: r, dataSource: o, filterProvid
7703
7711
  e,
7704
7712
  S,
7705
7713
  b.features.logs?.enabled
7706
- ]), T = u ?? ie ?? ae, oe = u !== void 0 || ie === null, se = t(), ce = n ?? e, le = A(() => b.features.tracing?.enabled ? Su(ce, S) : void 0, [
7707
- ce,
7714
+ ]), oe = u ?? ie ?? ae, se = u !== void 0 || ie === null, ce = t(), le = n ?? e, ue = A(() => b.features.tracing?.enabled ? Su(le, S) : void 0, [
7715
+ le,
7708
7716
  S,
7709
7717
  b.features.tracing?.enabled
7710
- ]), ue = v ?? se ?? le, de = v !== void 0 || se === null, fe = b.features.dashboards, E = b.features.logs, D = b.features.tracing, pe = Uu(fe, b.scopeApiTypes), me = Uu(E, b.scopeApiTypes), he = E?.enabled, ge = E?.logDetail, _e = A(() => {
7711
- if (he) return ge || nc({ basePath: _ ?? "" });
7718
+ ]), de = v ?? ce ?? ue, fe = v !== void 0 || ce === null, pe = b.features.dashboards, T = b.features.logs, E = b.features.tracing, me = Uu(pe, b.scopeApiTypes), he = Uu(T, b.scopeApiTypes), ge = T?.enabled, _e = T?.logDetail, ve = A(() => {
7719
+ if (ge) return _e || nc({ basePath: _ ?? "" });
7712
7720
  }, [
7713
- he,
7714
7721
  ge,
7722
+ _e,
7715
7723
  _
7716
- ]), ve = E?.detailMode ?? "drawer", ye = A(() => d ?? Ds(_ ?? ""), [d, _]), be = p ?? ((e) => e.requestId), xe = g ?? ((e) => e.apiId), Se = (e) => /* @__PURE__ */ P(h, {
7724
+ ]), ye = T?.detailMode ?? "drawer", be = A(() => d ?? Ds(_ ?? ""), [d, _]), D = p ?? ((e) => e.requestId), xe = g ?? ((e) => e.apiId), Se = (e) => /* @__PURE__ */ P(h, {
7717
7725
  providers: e,
7718
7726
  children: /* @__PURE__ */ F(sn, { children: [
7719
- fe?.enabled && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(on, {
7727
+ pe?.enabled && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(on, {
7720
7728
  path: "dashboards",
7721
7729
  element: /* @__PURE__ */ P(Yu, {
7722
- templates: fe.templates,
7723
- contextFilters: pe.contextFilters
7730
+ templates: pe.templates,
7731
+ contextFilters: me.contextFilters
7724
7732
  })
7725
7733
  }), /* @__PURE__ */ P(on, {
7726
7734
  path: "dashboards/:dashboardId",
7727
7735
  element: /* @__PURE__ */ P(Jn, {
7728
- filters: pe.contextFilters,
7736
+ filters: me.contextFilters,
7729
7737
  children: /* @__PURE__ */ P(Au, {
7730
- templates: fe.templates,
7731
- scopeFilterField: pe.scopeFilterField,
7732
- externalLinks: fe.externalLinks
7738
+ templates: pe.templates,
7739
+ scopeFilterField: me.scopeFilterField,
7740
+ externalLinks: pe.externalLinks
7733
7741
  })
7734
7742
  })
7735
7743
  })] }),
7736
7744
  b.features.logs?.enabled && /* @__PURE__ */ P(on, {
7737
7745
  path: "logs",
7738
7746
  element: /* @__PURE__ */ P(Jn, {
7739
- filters: me.contextFilters,
7740
- children: l ?? (T ? Wu(oe, T, /* @__PURE__ */ P(Eu, {
7741
- columns: ye,
7742
- getRowId: be,
7747
+ filters: he.contextFilters,
7748
+ children: l ?? (oe ? Wu(se, oe, /* @__PURE__ */ P(Eu, {
7749
+ columns: be,
7750
+ getRowId: D,
7743
7751
  getApiId: xe,
7744
7752
  onRowClickOverride: f,
7745
- detailConfig: _e,
7746
- detailMode: ve,
7747
- pageSize: E?.pageSize,
7748
- scopeFilterField: me.scopeFilterField,
7749
- columnVisibilityStorageKey: E?.columnVisibilityStorageKey
7753
+ detailConfig: ve,
7754
+ detailMode: ye,
7755
+ pageSize: T?.pageSize,
7756
+ scopeFilterField: he.scopeFilterField,
7757
+ columnVisibilityStorageKey: T?.columnVisibilityStorageKey
7750
7758
  })) : /* @__PURE__ */ P("div", {
7751
7759
  className: "flex items-center justify-center p-8 text-muted-foreground",
7752
7760
  children: "Logs feature enabled but no page provided."
7753
7761
  }))
7754
7762
  })
7755
7763
  }),
7756
- b.features.logs?.enabled && _e && T && /* @__PURE__ */ P(on, {
7764
+ b.features.logs?.enabled && ve && oe && /* @__PURE__ */ P(on, {
7757
7765
  path: "logs/:logId",
7758
7766
  element: /* @__PURE__ */ P(Jn, {
7759
- filters: me.contextFilters,
7760
- children: Wu(oe, T, /* @__PURE__ */ P(Zu, { config: _e }))
7767
+ filters: he.contextFilters,
7768
+ children: Wu(se, oe, /* @__PURE__ */ P(Zu, { config: ve }))
7761
7769
  })
7762
7770
  }),
7763
- D?.enabled && C["observability.traces.read"] && ue && /* @__PURE__ */ F(N, { children: [
7771
+ E?.enabled && C["observability.traces.read"] && de && /* @__PURE__ */ F(N, { children: [
7764
7772
  /* @__PURE__ */ P(on, {
7765
7773
  path: "tracing",
7766
- element: Gu(de, ue, /* @__PURE__ */ P(Ju, {
7767
- baseUrl: ce,
7774
+ element: Gu(fe, de, /* @__PURE__ */ P(Ju, {
7775
+ baseUrl: le,
7768
7776
  http: S,
7769
7777
  children: /* @__PURE__ */ P(Vu, {
7770
7778
  loadTracingApis: y,
7771
- detailMode: D.detailMode ?? "drawer",
7772
- pageSize: D.pageSize,
7773
- columnVisibilityStorageKey: D.columnVisibilityStorageKey
7779
+ detailMode: E.detailMode ?? "drawer",
7780
+ pageSize: E.pageSize,
7781
+ columnVisibilityStorageKey: E.columnVisibilityStorageKey
7774
7782
  })
7775
7783
  }))
7776
7784
  }),
7777
7785
  /* @__PURE__ */ P(on, {
7778
7786
  path: "tracing/:apiId",
7779
- element: Gu(de, ue, /* @__PURE__ */ P(Ju, {
7780
- baseUrl: ce,
7787
+ element: Gu(fe, de, /* @__PURE__ */ P(Ju, {
7788
+ baseUrl: le,
7781
7789
  http: S,
7782
7790
  children: /* @__PURE__ */ P(Vu, {
7783
7791
  loadTracingApis: y,
7784
- detailMode: D.detailMode ?? "drawer",
7785
- pageSize: D.pageSize,
7786
- columnVisibilityStorageKey: D.columnVisibilityStorageKey
7792
+ detailMode: E.detailMode ?? "drawer",
7793
+ pageSize: E.pageSize,
7794
+ columnVisibilityStorageKey: E.columnVisibilityStorageKey
7787
7795
  })
7788
7796
  }))
7789
7797
  }),
7790
7798
  /* @__PURE__ */ P(on, {
7791
7799
  path: "tracing/:apiId/:traceId",
7792
- element: Gu(de, ue, /* @__PURE__ */ P(Rl, {}))
7800
+ element: Gu(fe, de, /* @__PURE__ */ P(Rl, {}))
7793
7801
  })
7794
7802
  ] }),
7795
7803
  /* @__PURE__ */ P(on, {
7796
7804
  path: "*",
7797
- element: fe?.enabled ? /* @__PURE__ */ P(an, {
7805
+ element: pe?.enabled ? /* @__PURE__ */ P(an, {
7798
7806
  to: "dashboards",
7799
7807
  replace: !0
7800
7808
  }) : b.features.logs?.enabled ? /* @__PURE__ */ P(an, {
7801
7809
  to: "logs",
7802
7810
  replace: !0
7803
- }) : D?.enabled ? /* @__PURE__ */ P(an, {
7811
+ }) : E?.enabled ? /* @__PURE__ */ P(an, {
7804
7812
  to: "tracing",
7805
7813
  replace: !0
7806
7814
  }) : /* @__PURE__ */ P("div", {
@@ -7809,7 +7817,7 @@ function Xu({ baseUrl: e, tracesBaseUrl: n, http: r, dataSource: o, filterProvid
7809
7817
  })
7810
7818
  })
7811
7819
  ] })
7812
- }), Ce = fe?.enabled || E?.enabled ? /* @__PURE__ */ P(Mn, {
7820
+ }), Ce = pe?.enabled || T?.enabled ? /* @__PURE__ */ P(Mn, {
7813
7821
  source: re,
7814
7822
  children: s ? Se(s) : /* @__PURE__ */ P(Ku, { children: (e) => Se(e) })
7815
7823
  }) : Se(s ?? []);
@@ -7844,7 +7852,7 @@ var Qu = {
7844
7852
  showInNav: !0
7845
7853
  },
7846
7854
  logs: {
7847
- icon: se,
7855
+ icon: ce,
7848
7856
  title: "Logs",
7849
7857
  order: 1,
7850
7858
  showInNav: !0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/gamma-lib-observability",
3
- "version": "1.35.0",
3
+ "version": "1.35.1",
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",