@odigos/ui-kit 0.0.53 → 0.0.56

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 (47) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/lib/components/code/index.d.ts +1 -1
  3. package/lib/components/index.d.ts +55 -55
  4. package/lib/components.js +8 -8
  5. package/lib/constants.js +1 -1
  6. package/lib/containers/dropdowns/condition-dropdown/index.d.ts +15 -0
  7. package/lib/containers/dropdowns/index.d.ts +8 -7
  8. package/lib/containers/index.d.ts +39 -39
  9. package/lib/containers.js +34 -18
  10. package/lib/functions/index.d.ts +1 -0
  11. package/lib/functions/is-string-a-boolean/index.d.ts +1 -0
  12. package/lib/functions/split-camel-string/index.d.ts +1 -1
  13. package/lib/functions.js +5 -5
  14. package/lib/hooks.js +3 -3
  15. package/lib/icons/actions/index.d.ts +5 -5
  16. package/lib/icons/brand/index.d.ts +2 -2
  17. package/lib/icons/common/index.d.ts +26 -26
  18. package/lib/icons/compute-platform/index.d.ts +2 -2
  19. package/lib/icons/destinations/index.d.ts +59 -59
  20. package/lib/icons/instrumentation-rules/index.d.ts +4 -4
  21. package/lib/icons/math/index.d.ts +4 -4
  22. package/lib/icons/monitors/index.d.ts +3 -3
  23. package/lib/icons/on-off/index.d.ts +6 -6
  24. package/lib/icons/overview/index.d.ts +10 -10
  25. package/lib/icons/social/index.d.ts +1 -1
  26. package/lib/icons/status/index.d.ts +8 -8
  27. package/lib/icons.js +38 -38
  28. package/lib/{index-159d94f2.js → index-016ca5d0.js} +8 -6
  29. package/lib/{index-4c55824c.js → index-03c3e255.js} +11 -4
  30. package/lib/{index-1b057bd1.js → index-1de4c5cd.js} +2 -2
  31. package/lib/{index-f64b0a7d.js → index-59f6374b.js} +23 -23
  32. package/lib/{index-4dd6a1ce.js → index-ad94963f.js} +17 -13
  33. package/lib/index-ad99c5fe.js +62 -0
  34. package/lib/index-b08f2a91.js +145 -0
  35. package/lib/{index-118aa476.js → index-cccea570.js} +24 -21
  36. package/lib/{index-b833b336.js → index-dc3c54b0.js} +18 -18
  37. package/lib/snippets/copy-text/index.d.ts +1 -0
  38. package/lib/snippets/index.d.ts +1 -1
  39. package/lib/snippets.js +7 -7
  40. package/lib/store/useFilterStore.d.ts +3 -0
  41. package/lib/store.js +1 -1
  42. package/lib/theme.js +1 -1
  43. package/lib/types/common/index.d.ts +7 -0
  44. package/lib/{useTransition-53e46214.js → useTransition-d4c82b6e.js} +1 -1
  45. package/package.json +7 -7
  46. package/lib/index-974c5344.js +0 -62
  47. package/lib/index-f40b593d.js +0 -145
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.56](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.55...ui-kit-v0.0.56) (2025-07-15)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * crash related to `parseBooleanFromString` ([#233](https://github.com/odigos-io/ui-kit/issues/233)) ([e8bbd5c](https://github.com/odigos-io/ui-kit/commit/e8bbd5cc07e88576c1997518da4d8447353dad35))
9
+ * icon button not clicking ([#236](https://github.com/odigos-io/ui-kit/issues/236)) ([5bcedd6](https://github.com/odigos-io/ui-kit/commit/5bcedd6be4e1de384c1d7efe221f22fca872b661))
10
+ * metric edges z-index ([#235](https://github.com/odigos-io/ui-kit/issues/235)) ([579093b](https://github.com/odigos-io/ui-kit/commit/579093b9261206a04c99491ea003d87eab1472da))
11
+
12
+ ## [0.0.55](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.54...ui-kit-v0.0.55) (2025-07-14)
13
+
14
+
15
+ ### Features
16
+
17
+ * add conditions to filters ([#232](https://github.com/odigos-io/ui-kit/issues/232)) ([9fe5718](https://github.com/odigos-io/ui-kit/commit/9fe5718d22b5c8ac917107121840b58afa9bd6d1))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * add ignore patterns to linter ([#230](https://github.com/odigos-io/ui-kit/issues/230)) ([b42e6c2](https://github.com/odigos-io/ui-kit/commit/b42e6c2086684ebf1d2fd58e10931f2f010e02e0))
23
+
24
+ ## [0.0.54](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.53...ui-kit-v0.0.54) (2025-07-13)
25
+
26
+
27
+ ### Features
28
+
29
+ * add callback for copy completion in CopyText component ([#225](https://github.com/odigos-io/ui-kit/issues/225)) ([bca1d94](https://github.com/odigos-io/ui-kit/commit/bca1d946739532b4d1aa827aaf6f52b31f2530dd))
30
+ * add strokeWidth prop to various icon components ([#228](https://github.com/odigos-io/ui-kit/issues/228)) ([a41df31](https://github.com/odigos-io/ui-kit/commit/a41df3117a2d1ea252fca034ab8966f6ae50c710))
31
+
3
32
  ## [0.0.53](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.52...ui-kit-v0.0.53) (2025-07-13)
4
33
 
5
34
 
@@ -7,4 +7,4 @@ interface CodeProps {
7
7
  }
8
8
  declare const Code: FC<CodeProps>;
9
9
  export { Code, type CodeProps };
10
- export * from './toggle-code-component/index';
10
+ export * from './toggle-code-component';
@@ -1,56 +1,56 @@
1
- export * from './auto-complete-input/index';
2
- export * from './badge/index';
3
- export * from './button/index';
4
- export * from './cancel-warning/index';
5
- export * from './checkbox/index';
6
- export * from './code/index';
7
- export * from './condition-details/index';
8
- export * from './data-card/index';
9
- export * from './data-finger/index';
10
- export * from './data-tab/index';
11
- export * from './delete-warning/index';
12
- export * from './describe-row/index';
13
- export * from './divider/index';
14
- export * from './docs-button/index';
15
- export * from './drawer/index';
16
- export * from './dropdown/index';
17
- export * from './error-boundary/index';
18
- export * from './extend-arrow/index';
19
- export * from './fade-loader/index';
20
- export * from './field-error/index';
21
- export * from './field-label/index';
22
- export * from './header/index';
23
- export * from './icon-button/index';
24
- export * from './icon-group/index';
25
- export * from './icon-title-badge/index';
26
- export * from './icon-wrapped/index';
27
- export * from './icons-nav/index';
28
- export * from './image-controlled/index';
29
- export * from './input/index';
30
- export * from './input-list/index';
31
- export * from './input-table/index';
32
- export * from './interactive-table/index';
33
- export * from './key-value-input-list/index';
34
- export * from './modal/index';
35
- export * from './monitors-checkboxes/index';
36
- export * from './monitors-icons/index';
37
- export * from './navigation-buttons/index';
38
- export * from './no-data-found/index';
39
- export * from './notification-note/index';
40
- export * from './popup/index';
41
- export * from './popup-form/index';
42
- export * from './scroll-x/index';
43
- export * from './section-title/index';
44
- export * from './segment/index';
45
- export * from './selection-button/index';
46
- export * from './skeleton-loader/index';
47
- export * from './status/index';
48
- export * from './stepper/index';
49
- export * from './tag/index';
50
- export * from './text/index';
51
- export * from './textarea/index';
52
- export * from './toggle/index';
53
- export * from './tooltip/index';
54
- export * from './trace-loader/index';
55
- export * from './warning-modal/index';
1
+ export * from './auto-complete-input';
2
+ export * from './badge';
3
+ export * from './button';
4
+ export * from './cancel-warning';
5
+ export * from './checkbox';
6
+ export * from './code';
7
+ export * from './condition-details';
8
+ export * from './data-card';
9
+ export * from './data-finger';
10
+ export * from './data-tab';
11
+ export * from './delete-warning';
12
+ export * from './describe-row';
13
+ export * from './divider';
14
+ export * from './docs-button';
15
+ export * from './drawer';
16
+ export * from './dropdown';
17
+ export * from './error-boundary';
18
+ export * from './extend-arrow';
19
+ export * from './fade-loader';
20
+ export * from './field-error';
21
+ export * from './field-label';
22
+ export * from './header';
23
+ export * from './icon-button';
24
+ export * from './icon-group';
25
+ export * from './icon-title-badge';
26
+ export * from './icon-wrapped';
27
+ export * from './icons-nav';
28
+ export * from './image-controlled';
29
+ export * from './input';
30
+ export * from './input-list';
31
+ export * from './input-table';
32
+ export * from './interactive-table';
33
+ export * from './key-value-input-list';
34
+ export * from './modal';
35
+ export * from './monitors-checkboxes';
36
+ export * from './monitors-icons';
37
+ export * from './navigation-buttons';
38
+ export * from './no-data-found';
39
+ export * from './notification-note';
40
+ export * from './popup';
41
+ export * from './popup-form';
42
+ export * from './scroll-x';
43
+ export * from './section-title';
44
+ export * from './segment';
45
+ export * from './selection-button';
46
+ export * from './skeleton-loader';
47
+ export * from './status';
48
+ export * from './stepper';
49
+ export * from './tag';
50
+ export * from './text';
51
+ export * from './textarea';
52
+ export * from './toggle';
53
+ export * from './tooltip';
54
+ export * from './trace-loader';
55
+ export * from './warning-modal';
56
56
  export * from './styled';
package/lib/components.js CHANGED
@@ -1,16 +1,16 @@
1
- import { B as Button } from './index-4dd6a1ce.js';
2
- export { A as AutocompleteInput, a as Badge, a5 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, a4 as FlexColumn, a3 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, a8 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a7 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, a9 as TableContainer, aa as TableTitleWrap, ab as TableWrap, Y as Tag, Z as Text, _ as TextArea, $ as Toggle, T as ToggleCodeComponent, a0 as Tooltip, a1 as TraceLoader, a6 as VerticalScroll, a2 as WarningModal } from './index-4dd6a1ce.js';
3
- export { C as CancelWarning, D as DeleteWarning } from './index-1b057bd1.js';
1
+ import { B as Button } from './index-ad94963f.js';
2
+ export { A as AutocompleteInput, a as Badge, a5 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, a4 as FlexColumn, a3 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, a8 as ModalBody, z as MonitorsCheckboxes, G as MonitorsIcons, N as NavigationButtons, J as NoDataFound, L as NotificationNote, a7 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, a9 as TableContainer, aa as TableTitleWrap, ab as TableWrap, Y as Tag, Z as Text, _ as TextArea, $ as Toggle, T as ToggleCodeComponent, a0 as Tooltip, a1 as TraceLoader, a6 as VerticalScroll, a2 as WarningModal } from './index-ad94963f.js';
3
+ export { C as CancelWarning, D as DeleteWarning } from './index-1de4c5cd.js';
4
4
  import React, { createContext, Component, createElement } from 'react';
5
- import { T as Theme } from './index-118aa476.js';
5
+ import { T as Theme } from './index-cccea570.js';
6
6
  import './types.js';
7
- import './index-f40b593d.js';
8
- import './index-4c55824c.js';
7
+ import './index-b08f2a91.js';
8
+ import './index-03c3e255.js';
9
9
  import 'styled-components';
10
- import './index-974c5344.js';
10
+ import './index-ad99c5fe.js';
11
11
  import './index-ec555530.js';
12
12
  import 'react-dom';
13
- import './useTransition-53e46214.js';
13
+ import './useTransition-d4c82b6e.js';
14
14
 
15
15
  const ErrorBoundaryContext = createContext(null);
16
16
 
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-118aa476.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-cccea570.js';
2
2
  export { D as DESTINATION_CATEGORIES } from './index-1cb4f9e2.js';
3
3
  import 'react';
4
4
  import './types.js';
@@ -0,0 +1,15 @@
1
+ import { type FC } from 'react';
2
+ import { Source } from '@/types';
3
+ import { type DropdownProps } from '@/components';
4
+ interface ConditionDropdownProps {
5
+ sources: Source[];
6
+ title?: string;
7
+ value?: DropdownProps['options'];
8
+ onSelect: (val: DropdownProps['options'][0]) => void;
9
+ onDeselect: (val: DropdownProps['options'][0]) => void;
10
+ isMulti?: boolean;
11
+ required?: boolean;
12
+ showSearch?: boolean;
13
+ }
14
+ declare const ConditionDropdown: FC<ConditionDropdownProps>;
15
+ export { ConditionDropdown, type ConditionDropdownProps };
@@ -1,7 +1,8 @@
1
- export * from './connection-status-dropdown/index';
2
- export * from './connection-type-dropdown/index';
3
- export * from './error-dropdown/index';
4
- export * from './language-dropdown/index';
5
- export * from './monitor-dropdown/index';
6
- export * from './namespace-dropdown/index';
7
- export * from './kind-dropdown/index';
1
+ export * from './condition-dropdown';
2
+ export * from './connection-status-dropdown';
3
+ export * from './connection-type-dropdown';
4
+ export * from './error-dropdown';
5
+ export * from './language-dropdown';
6
+ export * from './monitor-dropdown';
7
+ export * from './namespace-dropdown';
8
+ export * from './kind-dropdown';
@@ -1,39 +1,39 @@
1
- export * from './action-drawer/index';
2
- export * from './action-form/index';
3
- export * from './action-modal/index';
4
- export * from './action-table/index';
5
- export * from './await-pipeline/index';
6
- export * from './compute-platform-select/index';
7
- export * from './compute-platforms/index';
8
- export * from './compute-platforms-actions-menu/index';
9
- export * from './data-flow/index';
10
- export * from './data-flow-actions-menu/index';
11
- export * from './data-stream-drawer/index';
12
- export * from './data-stream-form/index';
13
- export * from './data-stream-selection-form/index';
14
- export * from './destination-drawer/index';
15
- export * from './destination-form/index';
16
- export * from './destination-modal/index';
17
- export * from './destination-selection-form/index';
18
- export * from './destination-table/index';
19
- export * from './dropdowns/index';
20
- export * from './instrumentation-rule-drawer/index';
21
- export * from './instrumentation-rule-form/index';
22
- export * from './instrumentation-rule-modal/index';
23
- export * from './instrumentation-rule-table/index';
24
- export * from './multi-source-control/index';
25
- export * from './notification-manager/index';
26
- export * from './overview-drawer/index';
27
- export * from './service-map/index';
28
- export * from './setup-summary/index';
29
- export * from './side-nav/index';
30
- export * from './slack-invite/index';
31
- export * from './source-drawer/index';
32
- export * from './source-form/index';
33
- export * from './source-modal/index';
34
- export * from './source-selection-form/index';
35
- export * from './source-table/index';
36
- export * from './system-overview/index';
37
- export * from './table-cell-conditions/index';
38
- export * from './toast-list/index';
39
- export * from './toggle-dark-mode/index';
1
+ export * from './action-drawer';
2
+ export * from './action-form';
3
+ export * from './action-modal';
4
+ export * from './action-table';
5
+ export * from './await-pipeline';
6
+ export * from './compute-platform-select';
7
+ export * from './compute-platforms';
8
+ export * from './compute-platforms-actions-menu';
9
+ export * from './data-flow';
10
+ export * from './data-flow-actions-menu';
11
+ export * from './data-stream-drawer';
12
+ export * from './data-stream-form';
13
+ export * from './data-stream-selection-form';
14
+ export * from './destination-drawer';
15
+ export * from './destination-form';
16
+ export * from './destination-modal';
17
+ export * from './destination-selection-form';
18
+ export * from './destination-table';
19
+ export * from './dropdowns';
20
+ export * from './instrumentation-rule-drawer';
21
+ export * from './instrumentation-rule-form';
22
+ export * from './instrumentation-rule-modal';
23
+ export * from './instrumentation-rule-table';
24
+ export * from './multi-source-control';
25
+ export * from './notification-manager';
26
+ export * from './overview-drawer';
27
+ export * from './service-map';
28
+ export * from './setup-summary';
29
+ export * from './side-nav';
30
+ export * from './slack-invite';
31
+ export * from './source-drawer';
32
+ export * from './source-form';
33
+ export * from './source-modal';
34
+ export * from './source-selection-form';
35
+ export * from './source-table';
36
+ export * from './system-overview';
37
+ export * from './table-cell-conditions';
38
+ export * from './toast-list';
39
+ export * from './toggle-dark-mode';
package/lib/containers.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import React, { useState, useEffect, forwardRef, useRef, useImperativeHandle, useMemo, Fragment, useCallback, Children } from 'react';
2
2
  import styled, { css } from 'styled-components';
3
- import { b as DISPLAY_TITLES, T as Theme, U as usePendingStore, V as useNotificationStore, O as useDrawerStore, B as BUTTON_TEXTS, W as useEntityStore, A as ACTION_OPTIONS, g as getActionIcon, z as useModalStore, F as FORM_ALERTS, X as useFilterStore, M as MONITORS_OPTIONS, d as getInstrumentationRuleIcon, Y as useDataStreamStore, Z as useInstrumentStore, c as getEntityId, S as STORAGE_KEYS, a as DEFAULT_DATA_STREAM_NAME, _ as useSetupStore, I as INSTRUMENTATION_RULE_OPTIONS, $ as useSelectedStore, j as ImageErrorIcon, a0 as useDarkMode } from './index-118aa476.js';
3
+ import { b as DISPLAY_TITLES, T as Theme, U as usePendingStore, V as useNotificationStore, O as useDrawerStore, B as BUTTON_TEXTS, W as useEntityStore, A as ACTION_OPTIONS, g as getActionIcon, z as useModalStore, F as FORM_ALERTS, X as useFilterStore, D as DISPLAY_LANGUAGES, M as MONITORS_OPTIONS, d as getInstrumentationRuleIcon, Y as useDataStreamStore, Z as useInstrumentStore, c as getEntityId, S as STORAGE_KEYS, a as DEFAULT_DATA_STREAM_NAME, _ as useSetupStore, I as INSTRUMENTATION_RULE_OPTIONS, $ as useSelectedStore, j as ImageErrorIcon, a0 as useDarkMode } from './index-cccea570.js';
4
4
  import { ActionType, ActionKeyTypes, InputTypes, FieldTypes, EntityTypes, StatusType, Crud, OtherStatus, NodeTypes, EdgeTypes, AddNodeTypes, SignalType, HeadersCollectionKeyTypes, CustomInstrumentationsKeyTypes, CodeAttributesKeyTypes, PayloadCollectionKeyTypes, InstrumentationRuleType, K8sResourceKind } from './types.js';
5
- import { e as DataCardFieldTypes, p as FieldLabel, C as Checkbox, o as FieldError, v as Input, x as InputTable, K as KeyValueInputsList, w as InputList, Z as Text, R as Segment, Q as SectionTitle, j as DocsButton, z as MonitorsCheckboxes, _ as TextArea, k as Drawer, c as ConditionDetails, D as DataCard, a4 as FlexColumn, M as Modal, N as NavigationButtons, a8 as ModalBody, L as NotificationNote, A as AutocompleteInput, i as Divider, W as Status, a3 as FlexRow, a0 as Tooltip, s as IconWrapped, G as MonitorsIcons, a9 as TableContainer, aa as TableTitleWrap, r as IconTitleBadge, ab as TableWrap, y as InteractiveTable, a5 as CenterThis, J as NoDataFound, a1 as TraceLoader, a as Badge, E as ExtendArrow, a6 as VerticalScroll, U as SelectionButton, B as Button, n as Dropdown, ac as nodeConfig, ad as useNodesState, ae as useEdgesState, af as Flow, ag as applyNodeChanges, P as Popup, $ as Toggle, I as IconButton, ah as AddButton, F as FadeLoader, g as DataTab, X as Stepper, d as DataCardFields, ai as MarkerType, t as IconsNav, aj as CopyText, h as DescribeRow, ak as PodContainer, al as SourceContainer, q as IconGroup, O as PopupForm } from './index-4dd6a1ce.js';
5
+ import { e as DataCardFieldTypes, p as FieldLabel, C as Checkbox, o as FieldError, v as Input, x as InputTable, K as KeyValueInputsList, w as InputList, Z as Text, R as Segment, Q as SectionTitle, j as DocsButton, z as MonitorsCheckboxes, _ as TextArea, k as Drawer, c as ConditionDetails, D as DataCard, a4 as FlexColumn, M as Modal, N as NavigationButtons, a8 as ModalBody, L as NotificationNote, A as AutocompleteInput, i as Divider, W as Status, a3 as FlexRow, a0 as Tooltip, s as IconWrapped, G as MonitorsIcons, a9 as TableContainer, aa as TableTitleWrap, r as IconTitleBadge, ab as TableWrap, y as InteractiveTable, a5 as CenterThis, J as NoDataFound, a1 as TraceLoader, a as Badge, E as ExtendArrow, a6 as VerticalScroll, U as SelectionButton, B as Button, n as Dropdown, ac as nodeConfig, ad as useNodesState, ae as useEdgesState, af as Flow, ag as applyNodeChanges, P as Popup, $ as Toggle, I as IconButton, ah as AddButton, F as FadeLoader, g as DataTab, X as Stepper, d as DataCardFields, ai as MarkerType, t as IconsNav, aj as CopyText, h as DescribeRow, ak as PodContainer, al as SourceContainer, q as IconGroup, O as PopupForm } from './index-ad94963f.js';
6
6
  import { i as isEmpty, s as safeJsonParse } from './index-ec555530.js';
7
- import { C as CheckCircledIcon, O as OdigosLogo } from './index-974c5344.js';
8
- import { C as CrossCircledIcon, O as OdigosLogoText, a as OverviewIcon, F as FilterIcon, D as DataStreamsIcon, R as RetryIcon, N as NotificationIcon, U as UserIcon, S as SlackLogo, K as KeyIcon, T as TerminalIcon } from './index-f64b0a7d.js';
7
+ import { C as CheckCircledIcon, O as OdigosLogo } from './index-ad99c5fe.js';
8
+ import { C as CrossCircledIcon, O as OdigosLogoText, a as OverviewIcon, F as FilterIcon, D as DataStreamsIcon, R as RetryIcon, N as NotificationIcon, U as UserIcon, S as SlackLogo, K as KeyIcon, T as TerminalIcon } from './index-59f6374b.js';
9
9
  import { useActionFormData, useSessionStorage, useDataStreamFormData, useDestinationFormData, useClickNotification, useSourceFormData, useSourceSelectionFormData } from './hooks.js';
10
- import { u as useKeyDown, a as useOnClickOutside, b as useContainerSize, c as useClickNode, d as usePopup, e as useInstrumentationRuleFormData, f as useTransition, g as useTimeAgo, h as useCopy, i as useGenericForm } from './useTransition-53e46214.js';
11
- import { E as EditIcon, T as TrashIcon, S as SearchIcon, h as CheckIcon, A as ArrowIcon, P as PlusIcon, a as CopyIcon } from './index-f40b593d.js';
12
- import { D as DeleteWarning, C as CancelWarning } from './index-1b057bd1.js';
13
- import { g as getConditionsBooleans, m as mapConditions, b as getStatusIcon, c as capitalizeFirstLetter, p as parseBooleanFromString } from './index-4c55824c.js';
14
- import { f as filterActions, m as getEntityLabel, l as getEntityIcon, w as sleep, o as getPlatformIcon, p as getPlatformLabel, h as formatBytes, j as getContainersIcons, q as getValueForRange, k as getDestinationIcon, g as filterSourcesByStream, e as filterSources, b as filterDestinationsByStream, a as filterDestinations, v as mapDestinationFieldsForDisplay, c as compareCondition, s as getYamlFieldsForDestination, d as deepClone, n as getMetricForEntity, r as getWorkloadId, t as hasUnhealthyInstances, i as getContainersInstrumentedCount, u as isOverTime } from './index-159d94f2.js';
10
+ import { u as useKeyDown, a as useOnClickOutside, b as useContainerSize, c as useClickNode, d as usePopup, e as useInstrumentationRuleFormData, f as useTransition, g as useTimeAgo, h as useCopy, i as useGenericForm } from './useTransition-d4c82b6e.js';
11
+ import { E as EditIcon, T as TrashIcon, S as SearchIcon, h as CheckIcon, A as ArrowIcon, P as PlusIcon, a as CopyIcon } from './index-b08f2a91.js';
12
+ import { D as DeleteWarning, C as CancelWarning } from './index-1de4c5cd.js';
13
+ import { g as getConditionsBooleans, m as mapConditions, b as getStatusIcon, h as splitCamelString, c as capitalizeFirstLetter, i as isStringABoolean, p as parseBooleanFromString } from './index-03c3e255.js';
14
+ import { f as filterActions, m as getEntityLabel, l as getEntityIcon, w as sleep, o as getPlatformIcon, p as getPlatformLabel, h as formatBytes, j as getContainersIcons, q as getValueForRange, k as getDestinationIcon, g as filterSourcesByStream, e as filterSources, b as filterDestinationsByStream, a as filterDestinations, v as mapDestinationFieldsForDisplay, c as compareCondition, s as getYamlFieldsForDestination, d as deepClone, n as getMetricForEntity, r as getWorkloadId, t as hasUnhealthyInstances, i as getContainersInstrumentedCount, u as isOverTime } from './index-016ca5d0.js';
15
15
  import { m as mapExportedSignals } from './index-6a6bea6e.js';
16
16
  import { NoteBackToSummary, EditButton } from './snippets.js';
17
17
  import { D as DESTINATION_CATEGORIES } from './index-1cb4f9e2.js';
18
- import { a6 as RulesIcon, a7 as SourcesIcon, a3 as ActionsIcon, a4 as DestinationsIcon } from './index-b833b336.js';
18
+ import { a6 as RulesIcon, a7 as SourcesIcon, a3 as ActionsIcon, a4 as DestinationsIcon } from './index-dc3c54b0.js';
19
19
  import 'react-dom';
20
20
 
21
21
  const buildCard$3 = (action) => {
@@ -1073,7 +1073,7 @@ const ComputePlatformSelect = ({ connections, selected, onSelect, onViewAll }) =
1073
1073
  isOpen && withSelect && (React.createElement(AbsoluteContainer, null,
1074
1074
  React.createElement(HeadWrap, null,
1075
1075
  React.createElement(Input, { placeholder: 'Search...', icon: SearchIcon, value: searchText, onChange: (e) => setSearchText(e.target.value.toLowerCase()) })),
1076
- React.createElement(VerticalScroll, { style: { maxHeight: '240px' } }, filtered.map(({ id, type, name, status }, idx) => (React.createElement(SelectionButton, { key: `platform-${id}`, icon: () => getPlatformIcon(type)({ fill: status === StatusType.Success ? theme.text.success : theme.text.error }), label: `${!!name ? name : getPlatformLabel(type)} (${id})`, isSelected: selected?.id === id, onClick: () => {
1076
+ React.createElement(VerticalScroll, { style: { maxHeight: '240px' } }, filtered.map(({ id, type, name, status }, idx) => (React.createElement(SelectionButton, { key: `platform-${id}`, icon: () => getPlatformIcon(type)?.({ fill: status === StatusType.Success ? theme.text.success : theme.text.error }), label: `${!!name ? name : getPlatformLabel(type)} (${id})`, isSelected: selected?.id === id, onClick: () => {
1077
1077
  if (status === StatusType.Success) {
1078
1078
  onSelect(filtered[idx]);
1079
1079
  }
@@ -1122,6 +1122,21 @@ const ComputePlatforms = ({ connections, onSelect }) => {
1122
1122
  React.createElement(NoDataFound, null)))));
1123
1123
  };
1124
1124
 
1125
+ const ConditionDropdown = ({ sources, title = 'Condition', value, onSelect, onDeselect, ...props }) => {
1126
+ const options = useMemo(() => {
1127
+ const payload = [];
1128
+ sources.forEach(({ conditions }) => {
1129
+ conditions?.forEach(({ type, reason }) => {
1130
+ if (!payload.find((opt) => opt.id === `${type}#${reason}`)) {
1131
+ payload.push({ id: `${type}#${reason}`, value: `${splitCamelString(type)} - ${splitCamelString(reason)}` });
1132
+ }
1133
+ });
1134
+ });
1135
+ return payload.sort((a, b) => a.id?.localeCompare(b.id || '') || 0);
1136
+ }, [sources]);
1137
+ return React.createElement(Dropdown, { disabled: !options?.length, title: title, placeholder: 'All', options: options, value: value, onSelect: onSelect, onDeselect: onDeselect, ...props });
1138
+ };
1139
+
1125
1140
  const ConnectionStatusDropdown = ({ connections, title = '', value, onSelect, onDeselect, ...props }) => {
1126
1141
  const options = useMemo(() => {
1127
1142
  const payload = [];
@@ -1179,7 +1194,7 @@ const LanguageDropdown = ({ sources, title = 'Programming Language', value, onSe
1179
1194
  sources.forEach(({ containers }) => {
1180
1195
  containers?.forEach(({ language }) => {
1181
1196
  if (!payload.find((opt) => opt.id === language)) {
1182
- payload.push({ id: language, value: language });
1197
+ payload.push({ id: language, value: DISPLAY_LANGUAGES[language] || language });
1183
1198
  }
1184
1199
  });
1185
1200
  });
@@ -2033,11 +2048,11 @@ const Filters$1 = () => {
2033
2048
  const { namespaces, sources } = useEntityStore();
2034
2049
  const { selectedStreamName } = useDataStreamStore();
2035
2050
  const { getItemSS, setItemSS, removeItemSS } = useSessionStorage();
2036
- const { namespaces: namespaceFilters, kinds, monitors, languages, errors, onlyErrors, setAll, clearAll, getEmptyState } = useFilterStore();
2037
2051
  const { popupRef, popupOpen, setPopupOpen, popupPosition, handlePosition } = usePopup();
2052
+ const { namespaces: namespaceFilters, kinds, monitors, languages, conditions, errors, onlyErrors, setAll, clearAll, getEmptyState } = useFilterStore();
2038
2053
  const sourcesByStream = useMemo(() => filterSourcesByStream(sources, selectedStreamName), [sources, selectedStreamName]);
2039
2054
  // We need local state, because we want to keep the filters in the store only when the user clicks on apply
2040
- const [filters, setFilters] = useState({ namespaces: namespaceFilters, kinds, monitors, languages, errors, onlyErrors });
2055
+ const [filters, setFilters] = useState({ namespaces: namespaceFilters, kinds, monitors, languages, conditions, errors, onlyErrors });
2041
2056
  const [filterCount, setFilterCount] = useState(getFilterCount(filters));
2042
2057
  useEffect(() => {
2043
2058
  const storedFilters = getItemSS(STORAGE_KEYS.OVERVIEW_FILTERS, getEmptyState());
@@ -2045,11 +2060,11 @@ const Filters$1 = () => {
2045
2060
  }, []);
2046
2061
  useEffect(() => {
2047
2062
  if (!popupOpen) {
2048
- const payload = { namespaces: namespaceFilters, kinds, monitors, languages, errors, onlyErrors };
2063
+ const payload = { namespaces: namespaceFilters, kinds, monitors, languages, conditions, errors, onlyErrors };
2049
2064
  setFilters(payload);
2050
2065
  setFilterCount(getFilterCount(payload));
2051
2066
  }
2052
- }, [popupOpen, namespaceFilters, kinds, monitors, errors, onlyErrors]);
2067
+ }, [popupOpen, namespaceFilters, kinds, monitors, languages, conditions, errors, onlyErrors]);
2053
2068
  const onApply = () => {
2054
2069
  setItemSS(STORAGE_KEYS.OVERVIEW_FILTERS, filters);
2055
2070
  setAll(filters);
@@ -2084,6 +2099,7 @@ const Filters$1 = () => {
2084
2099
  React.createElement(KindDropdown, { sources: sourcesByStream, value: filters['kinds'], onSelect: (val) => setFilters((prev) => ({ ...prev, kinds: [...(prev.kinds || []), val] })), onDeselect: (val) => setFilters((prev) => ({ ...prev, kinds: (prev.kinds || []).filter((opt) => opt.id !== val.id) })), showSearch: true, required: true, isMulti: true }),
2085
2100
  React.createElement(LanguageDropdown, { sources: sourcesByStream, value: filters['languages'], onSelect: (val) => setFilters((prev) => ({ ...prev, languages: [...(prev.languages || []), val] })), onDeselect: (val) => setFilters((prev) => ({ ...prev, languages: (prev.languages || []).filter((opt) => opt.id !== val.id) })), showSearch: true, required: true, isMulti: true }),
2086
2101
  React.createElement(MonitorDropdown, { value: filters['monitors'], onSelect: (val) => setFilters((prev) => ({ ...prev, monitors: [...(prev.monitors || []), val] })), onDeselect: (val) => setFilters((prev) => ({ ...prev, monitors: (prev.monitors || []).filter((opt) => opt.id !== val.id) })), showSearch: true, required: true, isMulti: true }),
2102
+ React.createElement(ConditionDropdown, { sources: sourcesByStream, value: filters['conditions'], onSelect: (val) => setFilters((prev) => ({ ...prev, conditions: [...(prev.conditions || []), val] })), onDeselect: (val) => setFilters((prev) => ({ ...prev, conditions: (prev.conditions || []).filter((opt) => opt.id !== val.id) })), showSearch: true, required: true, isMulti: true }),
2087
2103
  React.createElement(ToggleWrapper, null,
2088
2104
  React.createElement(Toggle, { title: 'Show only sources with errors', initialValue: filters['onlyErrors'], onChange: (bool) => setFilters((prev) => ({ ...prev, errors: [], onlyErrors: bool })) })),
2089
2105
  React.createElement(ErrorDropdown, { sources: sourcesByStream, value: filters['errors'], onSelect: (val) => setFilters((prev) => ({ ...prev, errors: [...(prev.errors || []), val] })), onDeselect: (val) => setFilters((prev) => ({ ...prev, errors: (prev.errors || []).filter((opt) => opt.id !== val.id) })), disabled: !filters['onlyErrors'], showSearch: true, required: true, isMulti: true })))));
@@ -4664,7 +4680,7 @@ const Describe = ({ fetchDescribeOdigos }) => {
4664
4680
  ? [
4665
4681
  React.createElement(Divider, { key: `divider-${obj.name}` }),
4666
4682
  React.createElement(DescribeRow, { key: `describe-row-${obj.name}`, title: obj.name, subTitle: obj.explain || undefined, value: {
4667
- status: obj.status || parseBooleanFromString(obj.value) ? StatusType.Success : StatusType.Error,
4683
+ status: obj.status || (isStringABoolean(obj.value) ? (parseBooleanFromString(obj.value) ? StatusType.Success : StatusType.Error) : StatusType.Default),
4668
4684
  text: obj.value,
4669
4685
  } }),
4670
4686
  ]
@@ -4784,4 +4800,4 @@ const ToggleDarkMode = () => {
4784
4800
  React.createElement(Background, { "$darkMode": darkMode })));
4785
4801
  };
4786
4802
 
4787
- export { ActionDrawer, ActionForm, ActionModal, ActionTable, AwaitPipeline, ComputePlatformSelect, ComputePlatforms, ComputePlatformsActionsMenu, ConnectionStatusDropdown, ConnectionTypeDropdown, DataFlow, DataFlowActionsMenu, DataStreamDrawer, DataStreamForm, DataStreamSelectionForm, DestinationDrawer, DestinationForm, DestinationModal, DestinationSelectionForm, DestinationTable, ErrorDropdown, InstrumentationRuleDrawer, InstrumentationRuleForm, InstrumentationRuleModal, InstrumentationRuleTable, KindDropdown, LanguageDropdown, MonitorDropdown, MultiSourceControl, NamespaceDropdown, NavIconIds, NotificationManager, OverviewDrawer, ServiceMap, SetupSummary, SideNav, SlackInvite, SourceDrawer, SourceForm, SourceModal, SourceSelectionForm, SourceTable, SystemOverview, TableCellConditions, ToastList, ToggleDarkMode };
4803
+ export { ActionDrawer, ActionForm, ActionModal, ActionTable, AwaitPipeline, ComputePlatformSelect, ComputePlatforms, ComputePlatformsActionsMenu, ConditionDropdown, ConnectionStatusDropdown, ConnectionTypeDropdown, DataFlow, DataFlowActionsMenu, DataStreamDrawer, DataStreamForm, DataStreamSelectionForm, DestinationDrawer, DestinationForm, DestinationModal, DestinationSelectionForm, DestinationTable, ErrorDropdown, InstrumentationRuleDrawer, InstrumentationRuleForm, InstrumentationRuleModal, InstrumentationRuleTable, KindDropdown, LanguageDropdown, MonitorDropdown, MultiSourceControl, NamespaceDropdown, NavIconIds, NotificationManager, OverviewDrawer, ServiceMap, SetupSummary, SideNav, SlackInvite, SourceDrawer, SourceForm, SourceModal, SourceSelectionForm, SourceTable, SystemOverview, TableCellConditions, ToastList, ToggleDarkMode };
@@ -34,6 +34,7 @@ export * from './has-unhealthy-instances';
34
34
  export * from './is-emtpy';
35
35
  export * from './is-legal-k8s-label';
36
36
  export * from './is-over-time';
37
+ export * from './is-string-a-boolean';
37
38
  export * from './is-time-elapsed';
38
39
  export * from './is-valid-version';
39
40
  export * from './map-conditions';
@@ -0,0 +1 @@
1
+ export declare const isStringABoolean: (value: boolean | string | number) => boolean;
@@ -1 +1 @@
1
- export declare const splitCamelString: (str: string) => string;
1
+ export declare const splitCamelString: (str?: string | null) => string;
package/lib/functions.js CHANGED
@@ -1,13 +1,13 @@
1
- export { c as capitalizeFirstLetter, f as flattenObjectKeys, g as getConditionsBooleans, a as getMonitorIcon, b as getStatusIcon, i as isValidVersion, m as mapConditions, n as numbersOnly, p as parseBooleanFromString, d as parseJsonStringToPrettyString, r as removeEmptyValuesFromObject, s as safeJsonStringify, e as splitCamelString } from './index-4c55824c.js';
2
- export { c as compareCondition, d as deepClone, f as filterActions, a as filterDestinations, b as filterDestinationsByStream, e as filterSources, g as filterSourcesByStream, h as formatBytes, j as getContainersIcons, i as getContainersInstrumentedCount, k as getDestinationIcon, l as getEntityIcon, m as getEntityLabel, n as getMetricForEntity, o as getPlatformIcon, p as getPlatformLabel, q as getValueForRange, r as getWorkloadId, s as getYamlFieldsForDestination, t as hasUnhealthyInstances, u as isOverTime, v as mapDestinationFieldsForDisplay, w as sleep } from './index-159d94f2.js';
3
- export { g as getActionIcon, c as getEntityId, d as getInstrumentationRuleIcon, e as getProgrammingLanguageIcon } from './index-118aa476.js';
1
+ export { c as capitalizeFirstLetter, f as flattenObjectKeys, g as getConditionsBooleans, a as getMonitorIcon, b as getStatusIcon, i as isStringABoolean, d as isValidVersion, m as mapConditions, n as numbersOnly, p as parseBooleanFromString, e as parseJsonStringToPrettyString, r as removeEmptyValuesFromObject, s as safeJsonStringify, h as splitCamelString } from './index-03c3e255.js';
2
+ export { c as compareCondition, d as deepClone, f as filterActions, a as filterDestinations, b as filterDestinationsByStream, e as filterSources, g as filterSourcesByStream, h as formatBytes, j as getContainersIcons, i as getContainersInstrumentedCount, k as getDestinationIcon, l as getEntityIcon, m as getEntityLabel, n as getMetricForEntity, o as getPlatformIcon, p as getPlatformLabel, q as getValueForRange, r as getWorkloadId, s as getYamlFieldsForDestination, t as hasUnhealthyInstances, u as isOverTime, v as mapDestinationFieldsForDisplay, w as sleep } from './index-016ca5d0.js';
3
+ export { g as getActionIcon, c as getEntityId, d as getInstrumentationRuleIcon, e as getProgrammingLanguageIcon } from './index-cccea570.js';
4
4
  export { g as getIdFromSseTarget, i as isLegalK8sLabel, m as mapExportedSignals } from './index-6a6bea6e.js';
5
5
  import { ProgrammingLanguages, EntityTypes } from './types.js';
6
6
  export { i as isEmpty, s as safeJsonParse } from './index-ec555530.js';
7
7
  import 'react';
8
8
  import 'styled-components';
9
- import './index-974c5344.js';
10
- import './index-b833b336.js';
9
+ import './index-ad99c5fe.js';
10
+ import './index-dc3c54b0.js';
11
11
 
12
12
  const cleanObjectEmptyStringsValues = (obj) => {
13
13
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/lib/hooks.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { ActionKeyTypes, ActionType, StatusType, EntityTypes, FieldTypes } from './types.js';
2
- import { V as useNotificationStore, F as FORM_ALERTS, O as useDrawerStore, W as useEntityStore, Y as useDataStreamStore, _ as useSetupStore } from './index-118aa476.js';
2
+ import { V as useNotificationStore, F as FORM_ALERTS, O as useDrawerStore, W as useEntityStore, Y as useDataStreamStore, _ as useSetupStore } from './index-cccea570.js';
3
3
  import { useState, useEffect, useMemo } from 'react';
4
4
  import 'styled-components';
5
5
  import { i as isEmpty, s as safeJsonParse } from './index-ec555530.js';
6
- import { i as useGenericForm } from './useTransition-53e46214.js';
7
- export { c as useClickNode, b as useContainerSize, h as useCopy, e as useInstrumentationRuleFormData, u as useKeyDown, a as useOnClickOutside, d as usePopup, g as useTimeAgo, f as useTransition } from './useTransition-53e46214.js';
6
+ import { i as useGenericForm } from './useTransition-d4c82b6e.js';
7
+ export { c as useClickNode, b as useContainerSize, h as useCopy, e as useInstrumentationRuleFormData, u as useKeyDown, a as useOnClickOutside, d as usePopup, g as useTimeAgo, f as useTransition } from './useTransition-d4c82b6e.js';
8
8
  import { g as getIdFromSseTarget, i as isLegalK8sLabel, m as mapExportedSignals } from './index-6a6bea6e.js';
9
9
 
10
10
  const INITIAL$2 = {
@@ -1,5 +1,5 @@
1
- export * from './add-cluster-info-icon/index';
2
- export * from './delete-attribute-icon/index';
3
- export * from './pii-masking-icon/index';
4
- export * from './rename-attribute-icon/index';
5
- export * from './sampler-icon/index';
1
+ export * from './add-cluster-info-icon';
2
+ export * from './delete-attribute-icon';
3
+ export * from './pii-masking-icon';
4
+ export * from './rename-attribute-icon';
5
+ export * from './sampler-icon';
@@ -1,2 +1,2 @@
1
- export * from './odigos-logo/index';
2
- export * from './odigos-logo-text/index';
1
+ export * from './odigos-logo';
2
+ export * from './odigos-logo-text';
@@ -1,26 +1,26 @@
1
- export * from './arrow-icon/index';
2
- export * from './avatar-icon/index';
3
- export * from './code-brackets-icon/index';
4
- export * from './code-icon/index';
5
- export * from './command-icon/index';
6
- export * from './copy-icon/index';
7
- export * from './edit-icon/index';
8
- export * from './edited-icon/index';
9
- export * from './extend-arrow-icon/index';
10
- export * from './filter-icon/index';
11
- export * from './folder-icon/index';
12
- export * from './image-error-icon/index';
13
- export * from './key-icon/index';
14
- export * from './list-icon/index';
15
- export * from './no-data-icon/index';
16
- export * from './notebook-icon/index';
17
- export * from './notification-icon/index';
18
- export * from './retry-icon/index';
19
- export * from './search-icon/index';
20
- export * from './sort-arrows-icon/index';
21
- export * from './terminal-icon/index';
22
- export * from './trash-icon/index';
23
- export * from './user-group-icon/index';
24
- export * from './user-settings-icon/index';
25
- export * from './user-icon/index';
26
- export * from './x-icon/index';
1
+ export * from './arrow-icon';
2
+ export * from './avatar-icon';
3
+ export * from './code-brackets-icon';
4
+ export * from './code-icon';
5
+ export * from './command-icon';
6
+ export * from './copy-icon';
7
+ export * from './edit-icon';
8
+ export * from './edited-icon';
9
+ export * from './extend-arrow-icon';
10
+ export * from './filter-icon';
11
+ export * from './folder-icon';
12
+ export * from './image-error-icon';
13
+ export * from './key-icon';
14
+ export * from './list-icon';
15
+ export * from './no-data-icon';
16
+ export * from './notebook-icon';
17
+ export * from './notification-icon';
18
+ export * from './retry-icon';
19
+ export * from './search-icon';
20
+ export * from './sort-arrows-icon';
21
+ export * from './terminal-icon';
22
+ export * from './trash-icon';
23
+ export * from './user-group-icon';
24
+ export * from './user-settings-icon';
25
+ export * from './user-icon';
26
+ export * from './x-icon';
@@ -1,2 +1,2 @@
1
- export * from './k8s-logo/index';
2
- export * from './vm-logo/index';
1
+ export * from './k8s-logo';
2
+ export * from './vm-logo';