@odigos/ui-kit 0.0.95 → 0.0.98

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/lib/components/data-card/data-card-fields/index.d.ts +2 -1
  3. package/lib/components/data-card/index.d.ts +2 -1
  4. package/lib/components/drawer/drawer-header/index.d.ts +2 -1
  5. package/lib/components/drawer/index.d.ts +2 -2
  6. package/lib/components/text/index.d.ts +2 -1
  7. package/lib/components.js +8 -8
  8. package/lib/constants/strings/index.d.ts +1 -0
  9. package/lib/constants.js +1 -1
  10. package/lib/containers/trace-view/index.d.ts +1 -0
  11. package/lib/containers/trace-view/span/index.d.ts +5 -0
  12. package/lib/containers/trace-view/span-drawer/build-details-card.d.ts +3 -0
  13. package/lib/containers/trace-view/span-drawer/build-logs-card.d.ts +3 -0
  14. package/lib/containers/trace-view/span-drawer/build-process-card.d.ts +3 -0
  15. package/lib/containers/trace-view/span-drawer/build-tags-card.d.ts +3 -0
  16. package/lib/containers/trace-view/span-drawer/index.d.ts +9 -0
  17. package/lib/containers.js +175 -53
  18. package/lib/functions.js +7 -7
  19. package/lib/hooks/useSourceSelectionFormData.d.ts +2 -0
  20. package/lib/hooks.js +43 -18
  21. package/lib/icons.js +8 -15
  22. package/lib/{index-333086d8.js → index-0a77c1be.js} +1 -1
  23. package/lib/{index-b0883db6.js → index-195415d4.js} +1 -1
  24. package/lib/{index-a53852b3.js → index-77cf7846.js} +9 -2
  25. package/lib/{index-40dfa720.js → index-89edd01d.js} +1 -0
  26. package/lib/{index-d92ef50b.js → index-9475009f.js} +2 -2
  27. package/lib/{index-9a7beddb.js → index-a3c0cecd.js} +2 -2
  28. package/lib/{index-bf427e64.js → index-c823fbfb.js} +3 -3
  29. package/lib/{index-c529b896.js → index-c8b542d8.js} +30 -21
  30. package/lib/{index-1bc2b507.js → index-d8fb5fed.js} +1 -1
  31. package/lib/{index-eff01b3d.js → index-f18c8530.js} +1 -1
  32. package/lib/snippets.js +7 -7
  33. package/lib/store.js +1 -1
  34. package/lib/theme.js +1 -1
  35. package/lib/types/traces/index.d.ts +1 -1
  36. package/lib/{useTransition-2df374a9.js → useTransition-159c9af8.js} +1 -1
  37. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.98](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.97...ui-kit-v0.0.98) (2025-08-27)
4
+
5
+
6
+ ### Features
7
+
8
+ * **source-selection:** add 'Select All' toggle functionality to source selection form ([#365](https://github.com/odigos-io/ui-kit/issues/365)) ([14d82d4](https://github.com/odigos-io/ui-kit/commit/14d82d4ab6e35a17bffc98131782587799dce88a))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * optimize single namespace query ([#364](https://github.com/odigos-io/ui-kit/issues/364)) ([13df621](https://github.com/odigos-io/ui-kit/commit/13df621f2681e3dfe0d4322559e01dea5646ce98))
14
+ * **source-table:** improve loading state handling and no data display logic ([#362](https://github.com/odigos-io/ui-kit/issues/362)) ([572826d](https://github.com/odigos-io/ui-kit/commit/572826da04932e1485c34adb48cbc50c2e91cb0c))
15
+
16
+ ## [0.0.97](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.96...ui-kit-v0.0.97) (2025-08-26)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * release of 0.0.97 ([#359](https://github.com/odigos-io/ui-kit/issues/359)) ([67659cc](https://github.com/odigos-io/ui-kit/commit/67659cc785acbf6934293098be331274b9d0fa13))
22
+
23
+ ## [0.0.96](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.95...ui-kit-v0.0.96) (2025-08-26)
24
+
25
+
26
+ ### Features
27
+
28
+ * **trace-view:** add loading state to TraceView component ([#356](https://github.com/odigos-io/ui-kit/issues/356)) ([12d811c](https://github.com/odigos-io/ui-kit/commit/12d811c6b3bd4ae0b5773d4f8aa488f88a08322e))
29
+ * **trace-view:** add SpanDrawer with detailed span and process information ([#358](https://github.com/odigos-io/ui-kit/issues/358)) ([861635e](https://github.com/odigos-io/ui-kit/commit/861635ea0de73535a778b4a54d0cac2ed5cf8594))
30
+
3
31
  ## [0.0.95](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.94...ui-kit-v0.0.95) (2025-08-26)
4
32
 
5
33
 
@@ -1,5 +1,5 @@
1
1
  import { type FC } from 'react';
2
- import { AnyObj } from '@/types';
2
+ import { AnyObj, SVG } from '@/types';
3
3
  declare enum DataCardFieldTypes {
4
4
  Code = "code",
5
5
  Table = "table",
@@ -13,6 +13,7 @@ declare enum DataCardFieldTypes {
13
13
  interface DataCardField {
14
14
  type?: DataCardFieldTypes;
15
15
  title?: string;
16
+ titleIcon?: SVG;
16
17
  tooltip?: string;
17
18
  value?: string | AnyObj;
18
19
  }
@@ -1,9 +1,10 @@
1
1
  import { type ReactNode, type FC, type PropsWithChildren } from 'react';
2
- import { OtherStatus } from '@/types';
2
+ import { OtherStatus, SVG } from '@/types';
3
3
  import { DataCardFields, type DataCardFieldsProps, DataCardFieldTypes } from './data-card-fields';
4
4
  interface DataCardProps extends PropsWithChildren {
5
5
  title?: string;
6
6
  titleBadge?: string | number | OtherStatus.Loading;
7
+ titleIcon?: SVG;
7
8
  description?: string;
8
9
  action?: ReactNode | (() => ReactNode);
9
10
  withExtend?: boolean;
@@ -1,8 +1,9 @@
1
- import { type FC, type ReactNode } from 'react';
1
+ import { CSSProperties, type FC, type ReactNode } from 'react';
2
2
  import type { SVG } from '@/types';
3
3
  import { type ButtonProps } from '@/components/button';
4
4
  interface DrawerHeaderProps {
5
5
  onClose: () => void;
6
+ width?: CSSProperties['width'];
6
7
  icons?: SVG[];
7
8
  iconSrcs?: string[];
8
9
  title?: string;
@@ -1,4 +1,4 @@
1
- import { type ReactNode, type FC } from 'react';
1
+ import { type ReactNode, type FC, CSSProperties } from 'react';
2
2
  import { DrawerHeader, DrawerHeaderProps } from './drawer-header';
3
3
  import { DrawerFooter, DrawerFooterProps } from './drawer-footer';
4
4
  interface DrawerProps {
@@ -6,7 +6,7 @@ interface DrawerProps {
6
6
  onClose: () => void;
7
7
  closeOnEscape?: boolean;
8
8
  position?: 'right' | 'left';
9
- width?: string;
9
+ width?: CSSProperties['width'];
10
10
  children: ReactNode;
11
11
  header: Omit<DrawerHeaderProps, 'onClose'>;
12
12
  footer: DrawerFooterProps;
@@ -1,4 +1,4 @@
1
- import { type DetailedHTMLProps, type FC, type HTMLAttributes, type ReactNode } from 'react';
1
+ import { type DetailedHTMLProps, type FC, type HTMLAttributes, type ReactNode, CSSProperties } from 'react';
2
2
  import { DefaultTheme } from 'styled-components';
3
3
  interface TextProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
4
4
  children?: ReactNode;
@@ -9,6 +9,7 @@ interface TextProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HT
9
9
  family?: 'primary' | 'secondary';
10
10
  opacity?: number;
11
11
  decoration?: string;
12
+ transform?: CSSProperties['textTransform'];
12
13
  }
13
14
  declare const getLinksFromText: (text: string) => {
14
15
  original: string;
package/lib/components.js CHANGED
@@ -1,16 +1,16 @@
1
- import { B as Button } from './index-c529b896.js';
2
- export { A as AutocompleteInput, a as Badge, a9 as CenterThis, C as Checkbox, b as Code, c as ConditionDetails, D as DataCard, e as DataCardFieldTypes, d as DataCardFields, f as DataFinger, g as DataTab, h as DescribeRow, i as Divider, j as DocsButton, k as Drawer, m as DrawerFooter, l as DrawerHeader, n as Dropdown, E as ExtendArrow, F as FadeLoader, o as FieldError, p as FieldLabel, a8 as FlexColumn, a7 as FlexRow, H as Header, I as IconButton, q as IconGroup, r as IconTitleBadge, s as IconWrapped, t as IconsNav, u as ImageControlled, v as Input, w as InputList, x as InputTable, y as InteractiveTable, K as KeyValueInputsList, M as Modal, ac as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, ab as Overlay, P as Popup, O as PopupForm, S as ScrollX, Q as SectionTitle, R as Segment, U as SelectionButton, V as SkeletonLoader, W as Status, X as Stepper, Y as TabList, ad as TableContainer, ae as TableTitleWrap, af as TableWrap, Z as Tag, _ as Text, a2 as TextArea, a3 as Toggle, T as ToggleCodeComponent, a4 as Tooltip, a5 as TraceLoader, aa as VerticalScroll, a6 as WarningModal, $ as getLinksFromText, a0 as getStrongsFromText, a1 as renderText } from './index-c529b896.js';
3
- export { C as CancelWarning, D as DeleteWarning } from './index-9a7beddb.js';
1
+ import { B as Button } from './index-c8b542d8.js';
2
+ export { A as AutocompleteInput, a as Badge, a9 as CenterThis, C as Checkbox, b as Code, c as ConditionDetails, D as DataCard, e as DataCardFieldTypes, d as DataCardFields, f as DataFinger, g as DataTab, h as DescribeRow, i as Divider, j as DocsButton, k as Drawer, m as DrawerFooter, l as DrawerHeader, n as Dropdown, E as ExtendArrow, F as FadeLoader, o as FieldError, p as FieldLabel, a8 as FlexColumn, a7 as FlexRow, H as Header, I as IconButton, q as IconGroup, r as IconTitleBadge, s as IconWrapped, t as IconsNav, u as ImageControlled, v as Input, w as InputList, x as InputTable, y as InteractiveTable, K as KeyValueInputsList, M as Modal, ac as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, ab as Overlay, P as Popup, O as PopupForm, S as ScrollX, Q as SectionTitle, R as Segment, U as SelectionButton, V as SkeletonLoader, W as Status, X as Stepper, Y as TabList, ad as TableContainer, ae as TableTitleWrap, af as TableWrap, Z as Tag, _ as Text, a2 as TextArea, a3 as Toggle, T as ToggleCodeComponent, a4 as Tooltip, a5 as TraceLoader, aa as VerticalScroll, a6 as WarningModal, $ as getLinksFromText, a0 as getStrongsFromText, a1 as renderText } from './index-c8b542d8.js';
3
+ export { C as CancelWarning, D as DeleteWarning } from './index-a3c0cecd.js';
4
4
  import React, { createContext, Component, createElement } from 'react';
5
- import { T as Theme } from './index-40dfa720.js';
5
+ import { T as Theme } from './index-89edd01d.js';
6
6
  import 'styled-components';
7
- import './index-1bc2b507.js';
7
+ import './index-d8fb5fed.js';
8
8
  import './types.js';
9
9
  import './index-5e5f7bda.js';
10
- import './index-d92ef50b.js';
11
- import './index-eff01b3d.js';
10
+ import './index-9475009f.js';
11
+ import './index-f18c8530.js';
12
12
  import 'react-dom';
13
- import './useTransition-2df374a9.js';
13
+ import './useTransition-159c9af8.js';
14
14
 
15
15
  const ErrorBoundaryContext = createContext(null);
16
16
 
@@ -88,6 +88,7 @@ export declare const DISPLAY_TITLES: {
88
88
  FILTERED_COUNT_TOOLTIP: string;
89
89
  SEARCH_NAMESPACES: string;
90
90
  SEARCH_SOURCES: string;
91
+ SELECT_ALL: string;
91
92
  ONLY_SELECTED: string;
92
93
  ONLY_RUNNING_INSTANCES: string;
93
94
  TO_COLLECT_OTEL_DATA: string;
package/lib/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ACTION_OPTIONS, B as BUTTON_TEXTS, a as DEFAULT_DATA_STREAM_NAME, D as DISPLAY_LANGUAGES, b as DISPLAY_TITLES, F as FORM_ALERTS, I as INSTRUMENTATION_RULE_OPTIONS, L as LANGUAGE_OPTIONS, M as MONITORS_OPTIONS, S as STORAGE_KEYS } from './index-40dfa720.js';
1
+ export { A as ACTION_OPTIONS, B as BUTTON_TEXTS, a as DEFAULT_DATA_STREAM_NAME, D as DISPLAY_LANGUAGES, b as DISPLAY_TITLES, F as FORM_ALERTS, I as INSTRUMENTATION_RULE_OPTIONS, L as LANGUAGE_OPTIONS, M as MONITORS_OPTIONS, S as STORAGE_KEYS } from './index-89edd01d.js';
2
2
  export { D as DESTINATION_CATEGORIES } from './index-1cb4f9e2.js';
3
3
  import 'react';
4
4
  import './types.js';
@@ -3,6 +3,7 @@ import type { Trace } from '@/types';
3
3
  interface TraceViewProps {
4
4
  heightToRemove: number;
5
5
  traces: Trace[];
6
+ isLoading: boolean;
6
7
  }
7
8
  declare const TraceView: FC<TraceViewProps>;
8
9
  export { TraceView, type TraceViewProps };
@@ -13,6 +13,7 @@ interface SpanProps {
13
13
  isOpen?: boolean;
14
14
  withToggle?: boolean;
15
15
  onToggleOpen?: () => void;
16
+ onSelect: () => void;
16
17
  }
17
18
  interface RecursiveSpansProps {
18
19
  spans: TraceSpan[];
@@ -26,6 +27,10 @@ interface RecursiveSpansProps {
26
27
  value: string[];
27
28
  set: React.Dispatch<React.SetStateAction<string[]>>;
28
29
  };
30
+ selectedSpanState: {
31
+ value: TraceSpan | null;
32
+ set: React.Dispatch<React.SetStateAction<TraceSpan | null>>;
33
+ };
29
34
  }
30
35
  export declare const LEFT_MAX_WIDTH = 370;
31
36
  declare const Span: FC<SpanProps>;
@@ -0,0 +1,3 @@
1
+ import type { TraceSpan } from '@/types';
2
+ declare const buildDetailsCard: (span: TraceSpan) => import("../../../components/data-card/data-card-fields").DataCardField[];
3
+ export { buildDetailsCard };
@@ -0,0 +1,3 @@
1
+ import type { TraceSpan } from '@/types';
2
+ declare const buildLogsCard: (span: TraceSpan) => import("../../../components/data-card/data-card-fields").DataCardField[];
3
+ export { buildLogsCard };
@@ -0,0 +1,3 @@
1
+ import type { TraceProcess } from '@/types';
2
+ declare const buildProcessCard: (process: TraceProcess, isPrettyMode: boolean) => import("../../../components/data-card/data-card-fields").DataCardField[];
3
+ export { buildProcessCard };
@@ -0,0 +1,3 @@
1
+ import type { TraceSpan } from '@/types';
2
+ declare const buildTagsCard: (span: TraceSpan, isPrettyMode: boolean) => import("../../../components/data-card/data-card-fields").DataCardField[];
3
+ export { buildTagsCard };
@@ -0,0 +1,9 @@
1
+ import { type FC } from 'react';
2
+ import { TraceProcess, type TraceSpan } from '@/types';
3
+ interface SpanDrawerProps {
4
+ span: TraceSpan;
5
+ process?: TraceProcess;
6
+ onClose: () => void;
7
+ }
8
+ declare const SpanDrawer: FC<SpanDrawerProps>;
9
+ export { SpanDrawer, type SpanDrawerProps };