@odigos/ui-kit 0.0.28 → 0.0.30

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 (34) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/lib/components/stepper/index.d.ts +1 -0
  3. package/lib/components.js +5 -5
  4. package/lib/constants/strings/index.d.ts +4 -0
  5. package/lib/constants.js +1 -1
  6. package/lib/containers/data-flow-actions-menu/data-stream-select/index.d.ts +3 -0
  7. package/lib/containers/data-flow-actions-menu/styled.d.ts +2 -0
  8. package/lib/containers/data-stream-drawer/data-stream-drawer.stories.d.ts +9 -0
  9. package/lib/containers/data-stream-drawer/index.d.ts +10 -0
  10. package/lib/containers/data-stream-form/data-stream-form.stories.d.ts +9 -0
  11. package/lib/containers/data-stream-form/index.d.ts +8 -0
  12. package/lib/containers/destination-modal/index.d.ts +1 -0
  13. package/lib/containers/index.d.ts +2 -0
  14. package/lib/containers/overview-drawer/index.d.ts +1 -0
  15. package/lib/containers.js +224 -117
  16. package/lib/functions.js +2 -2
  17. package/lib/hooks/index.d.ts +1 -0
  18. package/lib/hooks/useDataStreamFormData.d.ts +12 -0
  19. package/lib/hooks/useDestinationFormData.d.ts +1 -1
  20. package/lib/hooks.js +3 -3
  21. package/lib/icons.js +1 -1
  22. package/lib/{index-R9xRto5r.js → index-B46Mcu9H.js} +2 -2
  23. package/lib/{index-8BSRffGz.js → index-BGK1nMOD.js} +1 -1
  24. package/lib/{index-BRW_Nl-n.js → index-BbbCCewR.js} +1 -1
  25. package/lib/{index-CTgLYGo-.js → index-DGuOxbBR.js} +5 -1
  26. package/lib/{index-BfatCMWq.js → index-DYNMhZMX.js} +2 -1
  27. package/lib/{index-CX75oR-h.js → index-nltUpkWT.js} +8 -5
  28. package/lib/mock-data/sources/index.d.ts +1 -1
  29. package/lib/snippets.js +4 -4
  30. package/lib/types/destinations/index.d.ts +1 -0
  31. package/lib/types.js +1 -0
  32. package/lib/{useSourceSelectionFormData-CoaXePS_.js → useSourceSelectionFormData-BWz8fTJr.js} +45 -3
  33. package/lib/{useTransition-BSKilkmZ.js → useTransition-B65KBqdK.js} +1 -1
  34. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.30](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.29...ui-kit-v0.0.30) (2025-05-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * add action buttons for data streams dropdown ([#123](https://github.com/odigos-io/ui-kit/issues/123)) ([438635f](https://github.com/odigos-io/ui-kit/commit/438635fa308ed6070215a0afb353a026784f1fbb))
9
+ * add no-data to search results ([#128](https://github.com/odigos-io/ui-kit/issues/128)) ([d1f4d36](https://github.com/odigos-io/ui-kit/commit/d1f4d36e0c1ffa8261f88b62e178532a5c8fdc85))
10
+
11
+ ## [0.0.29](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.28...ui-kit-v0.0.29) (2025-05-20)
12
+
13
+
14
+ ### Features
15
+
16
+ * add icon for dynamic destination ([#125](https://github.com/odigos-io/ui-kit/issues/125)) ([19015f0](https://github.com/odigos-io/ui-kit/commit/19015f02948dbfb4397cc9ef0348211ed85761af))
17
+ * add namespace icon ([#127](https://github.com/odigos-io/ui-kit/issues/127)) ([c530096](https://github.com/odigos-io/ui-kit/commit/c5300961fe8b89938dfa1ad179bd8a70690f76ea))
18
+ * add notes "is for all streams" to actions and rules ([#122](https://github.com/odigos-io/ui-kit/issues/122)) ([d399704](https://github.com/odigos-io/ui-kit/commit/d39970425686817299af6dbe4300f7e37720ae21))
19
+ * allow custom subtitle texts in stepper ([#129](https://github.com/odigos-io/ui-kit/issues/129)) ([9ac62c8](https://github.com/odigos-io/ui-kit/commit/9ac62c8e5c42461777bbcc0fd06b95898d7c3dd3))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * add already-configured destination from overview page ([#126](https://github.com/odigos-io/ui-kit/issues/126)) ([40d9a71](https://github.com/odigos-io/ui-kit/commit/40d9a71d6714e1f88667f1cd4152cd431a20bc16))
25
+
3
26
  ## [0.0.28](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.27...ui-kit-v0.0.28) (2025-05-19)
4
27
 
5
28
 
@@ -4,6 +4,7 @@ interface StepperProps {
4
4
  data: {
5
5
  stepNumber: number;
6
6
  title: string;
7
+ subtitle?: string;
7
8
  }[];
8
9
  }
9
10
  declare const Stepper: FC<StepperProps>;
package/lib/components.js CHANGED
@@ -1,19 +1,19 @@
1
- import { B as Button } from './index-CX75oR-h.js';
2
- export { a as AutocompleteInput, b as Badge, a1 as CenterThis, C as Checkbox, c as Code, d as ConditionDetails, D as DataCard, f as DataCardFieldTypes, e as DataCardFields, g as DataTab, h as Divider, i as DocsButton, j as Drawer, l as DrawerFooter, k as DrawerHeader, m as Dropdown, E as ExtendArrow, F as FadeLoader, n as FieldError, o as FieldLabel, a0 as FlexColumn, $ as FlexRow, H as Header, I as IconButton, p as IconGroup, q as IconTitleBadge, r as IconWrapped, s as IconsNav, t as ImageControlled, u as Input, v as InputList, w as InputTable, x as InteractiveTable, K as KeyValueInputsList, M as Modal, a4 as ModalBody, y as MonitorsCheckboxes, z as MonitorsIcons, N as NavigationButtons, G as NoDataFound, J as NotificationNote, a3 as Overlay, S as ScrollX, L as SectionTitle, O as Segment, P as SelectionButton, Q as SkeletonLoader, R as Status, U as Stepper, a5 as TableContainer, a6 as TableTitleWrap, a7 as TableWrap, V as Text, W as TextArea, X as Toggle, T as ToggleCodeComponent, Y as Tooltip, Z as TraceLoader, a2 as VerticalScroll, _ as WarningModal } from './index-CX75oR-h.js';
3
- export { C as CancelWarning, D as DeleteWarning } from './index-8BSRffGz.js';
1
+ import { B as Button } from './index-nltUpkWT.js';
2
+ export { a as AutocompleteInput, b as Badge, a1 as CenterThis, C as Checkbox, c as Code, d as ConditionDetails, D as DataCard, f as DataCardFieldTypes, e as DataCardFields, g as DataTab, h as Divider, i as DocsButton, j as Drawer, l as DrawerFooter, k as DrawerHeader, m as Dropdown, E as ExtendArrow, F as FadeLoader, n as FieldError, o as FieldLabel, a0 as FlexColumn, $ as FlexRow, H as Header, I as IconButton, p as IconGroup, q as IconTitleBadge, r as IconWrapped, s as IconsNav, t as ImageControlled, u as Input, v as InputList, w as InputTable, x as InteractiveTable, K as KeyValueInputsList, M as Modal, a4 as ModalBody, y as MonitorsCheckboxes, z as MonitorsIcons, N as NavigationButtons, G as NoDataFound, J as NotificationNote, a3 as Overlay, S as ScrollX, L as SectionTitle, O as Segment, P as SelectionButton, Q as SkeletonLoader, R as Status, U as Stepper, a5 as TableContainer, a6 as TableTitleWrap, a7 as TableWrap, V as Text, W as TextArea, X as Toggle, T as ToggleCodeComponent, Y as Tooltip, Z as TraceLoader, a2 as VerticalScroll, _ as WarningModal } from './index-nltUpkWT.js';
3
+ export { C as CancelWarning, D as DeleteWarning } from './index-BGK1nMOD.js';
4
4
  import React, { Component, createElement, createContext } from 'react';
5
5
  import Theme from './theme.js';
6
6
  import 'styled-components';
7
7
  import './index-BJxaoI0G.js';
8
8
  import './types.js';
9
9
  import './index-BZS1ijMm.js';
10
- import './index-CTgLYGo-.js';
10
+ import './index-DGuOxbBR.js';
11
11
  import './index-CFnxjzaW.js';
12
12
  import './index-DGel4E-Z.js';
13
13
  import './index-DMXaEyAB.js';
14
14
  import './index-CJs4RDHU.js';
15
15
  import './index-IKusBlIE.js';
16
- import './useTransition-BSKilkmZ.js';
16
+ import './useTransition-B65KBqdK.js';
17
17
  import 'react-dom';
18
18
 
19
19
  const ErrorBoundaryContext = createContext(null);
@@ -1,8 +1,10 @@
1
+ export declare const DEFAULT_DATA_STREAM_NAME = "default";
1
2
  export declare const FORM_ALERTS: {
2
3
  REQUIRED_FIELDS: string;
3
4
  FIELD_IS_REQUIRED: string;
4
5
  FORBIDDEN: string;
5
6
  ENTERPRISE_ONLY: (str?: string) => string;
7
+ DEFINED_FOR_ALL_STREAMS: (str: string) => string;
6
8
  CANNOT_EDIT_RULE: string;
7
9
  CANNOT_DELETE_RULE: string;
8
10
  LATENCY_HTTP_ROUTE: string;
@@ -91,4 +93,6 @@ export declare const BUTTON_TEXTS: {
91
93
  NEXT: string;
92
94
  TEST: string;
93
95
  TEST_CONNECTION: string;
96
+ INSTRUMENT: string;
97
+ UNINSTRUMENT: string;
94
98
  };
package/lib/constants.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ACTION_OPTIONS, B as BUTTON_TEXTS, D as DISPLAY_TITLES, F as FORM_ALERTS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-CTgLYGo-.js';
1
+ export { A as ACTION_OPTIONS, B as BUTTON_TEXTS, D as DEFAULT_DATA_STREAM_NAME, a as DISPLAY_TITLES, F as FORM_ALERTS, I as INSTRUMENTATION_RULE_OPTIONS, M as MONITORS_OPTIONS } from './index-DGuOxbBR.js';
2
2
  export { D as DESTINATION_CATEGORIES } from './index-Dqief9td.js';
3
3
  import './types.js';
4
4
  import './index-CFnxjzaW.js';
@@ -1,6 +1,9 @@
1
1
  import { type FC } from 'react';
2
+ import type { DataStream } from '@/types';
2
3
  interface DataStreamSelectProps {
3
4
  onClickNewDataStream: () => void;
5
+ updateDataStream: (dataStreamName: string, dataStream: DataStream) => void;
6
+ deleteDataStream: (dataStreamName: string) => void;
4
7
  }
5
8
  declare const DataStreamSelect: FC<DataStreamSelectProps>;
6
9
  export { DataStreamSelect, type DataStreamSelectProps };
@@ -1,4 +1,6 @@
1
+ import { CSSProperties } from 'react';
1
2
  export declare const RelativeContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
3
  export declare const AbsoluteContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
4
  $hidden?: boolean;
5
+ $padding?: CSSProperties["padding"];
4
6
  }>> & string;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { StoryFn } from '@storybook/react';
3
+ import { type DataStreamDrawerProps } from '.';
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.FC<DataStreamDrawerProps>;
7
+ };
8
+ export default _default;
9
+ export declare const Default: StoryFn<DataStreamDrawerProps>;
@@ -0,0 +1,10 @@
1
+ import { type FC } from 'react';
2
+ import type { DataStream } from '@/types';
3
+ interface DataStreamDrawerProps {
4
+ isOpen: boolean;
5
+ onClose: () => void;
6
+ dataStreamName: string;
7
+ updateDataStream: (dataStreamName: string, dataStream: DataStream) => void;
8
+ }
9
+ declare const DataStreamDrawer: FC<DataStreamDrawerProps>;
10
+ export { DataStreamDrawer, type DataStreamDrawerProps };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { StoryFn } from '@storybook/react';
3
+ import { type DataStreamFormProps } from '.';
4
+ declare const _default: {
5
+ title: string;
6
+ component: React.FC<DataStreamFormProps>;
7
+ };
8
+ export default _default;
9
+ export declare const Default: StoryFn<DataStreamFormProps>;
@@ -0,0 +1,8 @@
1
+ import { type FC } from 'react';
2
+ import type { DataStream } from '@/types';
3
+ interface DataStreamFormProps {
4
+ formData: DataStream;
5
+ handleFormChange: (key: keyof DataStream, val: any) => void;
6
+ }
7
+ declare const DataStreamForm: FC<DataStreamFormProps>;
8
+ export { DataStreamForm, type DataStreamFormProps };
@@ -5,6 +5,7 @@ interface DestinationModalProps {
5
5
  categories: DestinationCategories;
6
6
  potentialDestinations: DestinationOption[];
7
7
  createDestination: (destination: DestinationFormData) => void;
8
+ updateDestination: (id: string, destination: DestinationFormData) => void;
8
9
  testConnection: TestConnectionFunc;
9
10
  }
10
11
  declare const DestinationModal: FC<DestinationModalProps>;
@@ -8,6 +8,8 @@ export * from './compute-platforms/index';
8
8
  export * from './compute-platforms-actions-menu/index';
9
9
  export * from './data-flow/index';
10
10
  export * from './data-flow-actions-menu/index';
11
+ export * from './data-stream-drawer/index';
12
+ export * from './data-stream-form/index';
11
13
  export * from './data-stream-selection-form/index';
12
14
  export * from './destination-drawer/index';
13
15
  export * from './destination-form/index';
@@ -5,6 +5,7 @@ interface OverviewDrawerProps extends PropsWithChildren {
5
5
  width?: number;
6
6
  title: string;
7
7
  titleTooltip?: string;
8
+ hideEditTitleFromEdit?: boolean;
8
9
  icons?: SVG[];
9
10
  iconSrcs?: string[];
10
11
  isEdit?: boolean;